1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 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 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81# Support unset when possible. 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83 as_unset=unset 84else 85 as_unset=false 86fi 87 88 89# IFS 90# We need space, tab and new line, in precisely that order. Quoting is 91# there to prevent editors from complaining about space-tab. 92# (If _AS_PATH_WALK were called with IFS unset, it would disable word 93# splitting by setting IFS to empty value.) 94IFS=" "" $as_nl" 95 96# Find who we are. Look in the path if we contain no directory separator. 97case $0 in 98 *[\\/]* ) as_myself=$0 ;; 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 100for as_dir in $PATH 101do 102 IFS=$as_save_IFS 103 test -z "$as_dir" && as_dir=. 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 105done 106IFS=$as_save_IFS 107 108 ;; 109esac 110# We did not find ourselves, most probably we were run as `sh COMMAND' 111# in which case we are not to be found in the path. 112if test "x$as_myself" = x; then 113 as_myself=$0 114fi 115if test ! -f "$as_myself"; then 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 117 { (exit 1); exit 1; } 118fi 119 120# Work around bugs in pre-3.0 UWIN ksh. 121for as_var in ENV MAIL MAILPATH 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# Required to use basename. 135if expr a : '\(a\)' >/dev/null 2>&1 && 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 137 as_expr=expr 138else 139 as_expr=false 140fi 141 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 143 as_basename=basename 144else 145 as_basename=false 146fi 147 148 149# Name of the executable. 150as_me=`$as_basename -- "$0" || 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 152 X"$0" : 'X\(//\)$' \| \ 153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 154$as_echo X/"$0" | 155 sed '/^.*\/\([^/][^/]*\)\/*$/{ 156 s//\1/ 157 q 158 } 159 /^X\/\(\/\/\)$/{ 160 s//\1/ 161 q 162 } 163 /^X\/\(\/\).*/{ 164 s//\1/ 165 q 166 } 167 s/.*/./; q'` 168 169# CDPATH. 170$as_unset CDPATH 171 172 173if test "x$CONFIG_SHELL" = x; then 174 if (eval ":") 2>/dev/null; then 175 as_have_required=yes 176else 177 as_have_required=no 178fi 179 180 if test $as_have_required = yes && (eval ": 181(as_func_return () { 182 (exit \$1) 183} 184as_func_success () { 185 as_func_return 0 186} 187as_func_failure () { 188 as_func_return 1 189} 190as_func_ret_success () { 191 return 0 192} 193as_func_ret_failure () { 194 return 1 195} 196 197exitcode=0 198if as_func_success; then 199 : 200else 201 exitcode=1 202 echo as_func_success failed. 203fi 204 205if as_func_failure; then 206 exitcode=1 207 echo as_func_failure succeeded. 208fi 209 210if as_func_ret_success; then 211 : 212else 213 exitcode=1 214 echo as_func_ret_success failed. 215fi 216 217if as_func_ret_failure; then 218 exitcode=1 219 echo as_func_ret_failure succeeded. 220fi 221 222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 223 : 224else 225 exitcode=1 226 echo positional parameters were not saved. 227fi 228 229test \$exitcode = 0) || { (exit 1); exit 1; } 230 231( 232 as_lineno_1=\$LINENO 233 as_lineno_2=\$LINENO 234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 236") 2> /dev/null; then 237 : 238else 239 as_candidate_shells= 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 242do 243 IFS=$as_save_IFS 244 test -z "$as_dir" && as_dir=. 245 case $as_dir in 246 /*) 247 for as_base in sh bash ksh sh5; do 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 249 done;; 250 esac 251done 252IFS=$as_save_IFS 253 254 255 for as_shell in $as_candidate_shells $SHELL; do 256 # Try only shells that exist, to save several forks. 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 258 { ("$as_shell") 2> /dev/null <<\_ASEOF 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in 268 *posix*) set -o posix ;; 269esac 270 271fi 272 273 274: 275_ASEOF 276}; then 277 CONFIG_SHELL=$as_shell 278 as_have_required=yes 279 if { "$as_shell" 2> /dev/null <<\_ASEOF 280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 281 emulate sh 282 NULLCMD=: 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 284 # is contrary to our usage. Disable this feature. 285 alias -g '${1+"$@"}'='"$@"' 286 setopt NO_GLOB_SUBST 287else 288 case `(set -o) 2>/dev/null` in 289 *posix*) set -o posix ;; 290esac 291 292fi 293 294 295: 296(as_func_return () { 297 (exit $1) 298} 299as_func_success () { 300 as_func_return 0 301} 302as_func_failure () { 303 as_func_return 1 304} 305as_func_ret_success () { 306 return 0 307} 308as_func_ret_failure () { 309 return 1 310} 311 312exitcode=0 313if as_func_success; then 314 : 315else 316 exitcode=1 317 echo as_func_success failed. 318fi 319 320if as_func_failure; then 321 exitcode=1 322 echo as_func_failure succeeded. 323fi 324 325if as_func_ret_success; then 326 : 327else 328 exitcode=1 329 echo as_func_ret_success failed. 330fi 331 332if as_func_ret_failure; then 333 exitcode=1 334 echo as_func_ret_failure succeeded. 335fi 336 337if ( set x; as_func_ret_success y && test x = "$1" ); then 338 : 339else 340 exitcode=1 341 echo positional parameters were not saved. 342fi 343 344test $exitcode = 0) || { (exit 1); exit 1; } 345 346( 347 as_lineno_1=$LINENO 348 as_lineno_2=$LINENO 349 test "x$as_lineno_1" != "x$as_lineno_2" && 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 351 352_ASEOF 353}; then 354 break 355fi 356 357fi 358 359 done 360 361 if test "x$CONFIG_SHELL" != x; then 362 for as_var in BASH_ENV ENV 363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 364 done 365 export CONFIG_SHELL 366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 367fi 368 369 370 if test $as_have_required = no; then 371 echo This script requires a shell more modern than all the 372 echo shells that I found on your system. Please install a 373 echo modern shell, or manually run the script under such a 374 echo shell if you do have one. 375 { (exit 1); exit 1; } 376fi 377 378 379fi 380 381fi 382 383 384 385(eval "as_func_return () { 386 (exit \$1) 387} 388as_func_success () { 389 as_func_return 0 390} 391as_func_failure () { 392 as_func_return 1 393} 394as_func_ret_success () { 395 return 0 396} 397as_func_ret_failure () { 398 return 1 399} 400 401exitcode=0 402if as_func_success; then 403 : 404else 405 exitcode=1 406 echo as_func_success failed. 407fi 408 409if as_func_failure; then 410 exitcode=1 411 echo as_func_failure succeeded. 412fi 413 414if as_func_ret_success; then 415 : 416else 417 exitcode=1 418 echo as_func_ret_success failed. 419fi 420 421if as_func_ret_failure; then 422 exitcode=1 423 echo as_func_ret_failure succeeded. 424fi 425 426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 427 : 428else 429 exitcode=1 430 echo positional parameters were not saved. 431fi 432 433test \$exitcode = 0") || { 434 echo No shell found that supports shell functions. 435 echo Please tell bug-autoconf@gnu.org about your system, 436 echo including any error possibly output before this message. 437 echo This can help us improve future autoconf versions. 438 echo Configuration will now proceed without shell functions. 439} 440 441 442 443 as_lineno_1=$LINENO 444 as_lineno_2=$LINENO 445 test "x$as_lineno_1" != "x$as_lineno_2" && 446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 447 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a 450 # line-number line after each line using $LINENO; the second 'sed' 451 # does the real work. The second script uses 'N' to pair each 452 # line-number line with the line containing $LINENO, and appends 453 # trailing '-' during substitution so that $LINENO is not a special 454 # case at line end. 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 456 # scripts with optimization help from Paolo Bonzini. Blame Lee 457 # E. McMahon (1931-1989) for sed's syntax. :-) 458 sed -n ' 459 p 460 /[$]LINENO/= 461 ' <$as_myself | 462 sed ' 463 s/[$]LINENO.*/&-/ 464 t lineno 465 b 466 :lineno 467 N 468 :loop 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 470 t loop 471 s/-\n.*// 472 ' >$as_me.lineno && 473 chmod +x "$as_me.lineno" || 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 475 { (exit 1); exit 1; }; } 476 477 # Don't try to exec as it changes $[0], causing all sort of problems 478 # (the dirname of $[0] is not the place where we might find the 479 # original and so on. Autoconf is especially sensitive to this). 480 . "./$as_me.lineno" 481 # Exit status is that of the last command. 482 exit 483} 484 485 486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 487 as_dirname=dirname 488else 489 as_dirname=false 490fi 491 492ECHO_C= ECHO_N= ECHO_T= 493case `echo -n x` in 494-n*) 495 case `echo 'x\c'` in 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 497 *) ECHO_C='\c';; 498 esac;; 499*) 500 ECHO_N='-n';; 501esac 502if expr a : '\(a\)' >/dev/null 2>&1 && 503 test "X`expr 00001 : '.*\(...\)'`" = X001; then 504 as_expr=expr 505else 506 as_expr=false 507fi 508 509rm -f conf$$ conf$$.exe conf$$.file 510if test -d conf$$.dir; then 511 rm -f conf$$.dir/conf$$.file 512else 513 rm -f conf$$.dir 514 mkdir conf$$.dir 2>/dev/null 515fi 516if (echo >conf$$.file) 2>/dev/null; then 517 if ln -s conf$$.file conf$$ 2>/dev/null; then 518 as_ln_s='ln -s' 519 # ... but there are two gotchas: 520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 522 # In both cases, we have to default to `cp -p'. 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 524 as_ln_s='cp -p' 525 elif ln conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s=ln 527 else 528 as_ln_s='cp -p' 529 fi 530else 531 as_ln_s='cp -p' 532fi 533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 534rmdir conf$$.dir 2>/dev/null 535 536if mkdir -p . 2>/dev/null; then 537 as_mkdir_p=: 538else 539 test -d ./-p && rmdir ./-p 540 as_mkdir_p=false 541fi 542 543if test -x / >/dev/null 2>&1; then 544 as_test_x='test -x' 545else 546 if ls -dL / >/dev/null 2>&1; then 547 as_ls_L_option=L 548 else 549 as_ls_L_option= 550 fi 551 as_test_x=' 552 eval sh -c '\'' 553 if test -d "$1"; then 554 test -d "$1/."; 555 else 556 case $1 in 557 -*)set "./$1";; 558 esac; 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 560 ???[sx]*):;;*)false;;esac;fi 561 '\'' sh 562 ' 563fi 564as_executable_p=$as_test_x 565 566# Sed expression to map a string onto a valid CPP name. 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 568 569# Sed expression to map a string onto a valid variable name. 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 571 572 573 574 575# Check that we are running under the correct shell. 576SHELL=${CONFIG_SHELL-/bin/sh} 577 578case X$lt_ECHO in 579X*--fallback-echo) 580 # Remove one level of quotation (which was required for Make). 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 582 ;; 583esac 584 585ECHO=${lt_ECHO-echo} 586if test "X$1" = X--no-reexec; then 587 # Discard the --no-reexec flag, and continue. 588 shift 589elif test "X$1" = X--fallback-echo; then 590 # Avoid inline document here, it may be left over 591 : 592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 593 # Yippee, $ECHO works! 594 : 595else 596 # Restart under the correct shell. 597 exec $SHELL "$0" --no-reexec ${1+"$@"} 598fi 599 600if test "X$1" = X--fallback-echo; then 601 # used as fallback echo 602 shift 603 cat <<_LT_EOF 604$* 605_LT_EOF 606 exit 0 607fi 608 609# The HP-UX ksh and POSIX shell print the target directory to stdout 610# if CDPATH is set. 611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 612 613if test -z "$lt_ECHO"; then 614 if test "X${echo_test_string+set}" != Xset; then 615 # find a string as large as possible, as long as the shell can cope with it 616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 618 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 620 then 621 break 622 fi 623 done 624 fi 625 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 : 630 else 631 # The Solaris, AIX, and Digital Unix default echo programs unquote 632 # backslashes. This makes it impossible to quote backslashes using 633 # echo "$something" | sed 's/\\/\\\\/g' 634 # 635 # So, first we look for a working echo in the user's PATH. 636 637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 638 for dir in $PATH /usr/ucb; do 639 IFS="$lt_save_ifs" 640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$dir/echo" 645 break 646 fi 647 done 648 IFS="$lt_save_ifs" 649 650 if test "X$ECHO" = Xecho; then 651 # We didn't find a better echo, so look for alternatives. 652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 654 test "X$echo_testing_string" = "X$echo_test_string"; then 655 # This shell has a builtin print -r that does the trick. 656 ECHO='print -r' 657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 658 test "X$CONFIG_SHELL" != X/bin/ksh; then 659 # If we have ksh, try running configure again with it. 660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 661 export ORIGINAL_CONFIG_SHELL 662 CONFIG_SHELL=/bin/ksh 663 export CONFIG_SHELL 664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 665 else 666 # Try using printf. 667 ECHO='printf %s\n' 668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 670 test "X$echo_testing_string" = "X$echo_test_string"; then 671 # Cool, printf works 672 : 673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 674 test "X$echo_testing_string" = 'X\t' && 675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 676 test "X$echo_testing_string" = "X$echo_test_string"; then 677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 678 export CONFIG_SHELL 679 SHELL="$CONFIG_SHELL" 680 export SHELL 681 ECHO="$CONFIG_SHELL $0 --fallback-echo" 682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 683 test "X$echo_testing_string" = 'X\t' && 684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 685 test "X$echo_testing_string" = "X$echo_test_string"; then 686 ECHO="$CONFIG_SHELL $0 --fallback-echo" 687 else 688 # maybe with a smaller string... 689 prev=: 690 691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 693 then 694 break 695 fi 696 prev="$cmd" 697 done 698 699 if test "$prev" != 'sed 50q "$0"'; then 700 echo_test_string=`eval $prev` 701 export echo_test_string 702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 703 else 704 # Oops. We lost completely, so just stick with echo. 705 ECHO=echo 706 fi 707 fi 708 fi 709 fi 710 fi 711fi 712 713# Copy echo and quote the copy suitably for passing to libtool from 714# the Makefile, instead of quoting the original, which is used later. 715lt_ECHO=$ECHO 716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 718fi 719 720 721 722 723exec 7<&0 </dev/null 6>&1 724 725# Name of the host. 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 727# so uname gets run too. 728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 729 730# 731# Initializations. 732# 733ac_default_prefix=/usr/local 734ac_clean_files= 735ac_config_libobj_dir=. 736LIBOBJS= 737cross_compiling=no 738subdirs= 739MFLAGS= 740MAKEFLAGS= 741SHELL=${CONFIG_SHELL-/bin/sh} 742 743# Identity of this package. 744PACKAGE_NAME= 745PACKAGE_TARNAME= 746PACKAGE_VERSION= 747PACKAGE_STRING= 748PACKAGE_BUGREPORT= 749 750ac_unique_file="encoder/encmain.cpp" 751# Factoring default headers for most tests. 752ac_includes_default="\ 753#include <stdio.h> 754#ifdef HAVE_SYS_TYPES_H 755# include <sys/types.h> 756#endif 757#ifdef HAVE_SYS_STAT_H 758# include <sys/stat.h> 759#endif 760#ifdef STDC_HEADERS 761# include <stdlib.h> 762# include <stddef.h> 763#else 764# ifdef HAVE_STDLIB_H 765# include <stdlib.h> 766# endif 767#endif 768#ifdef HAVE_STRING_H 769# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 770# include <memory.h> 771# endif 772# include <string.h> 773#endif 774#ifdef HAVE_STRINGS_H 775# include <strings.h> 776#endif 777#ifdef HAVE_INTTYPES_H 778# include <inttypes.h> 779#endif 780#ifdef HAVE_STDINT_H 781# include <stdint.h> 782#endif 783#ifdef HAVE_UNISTD_H 784# include <unistd.h> 785#endif" 786 787ac_subst_vars='LTLIBOBJS 788LIBOBJS 789CONFIG_MATH_LIB 790VALGRIND 791USE_STATIC_FALSE 792USE_STATIC_TRUE 793HAVE_CPPUNIT_FALSE 794HAVE_CPPUNIT_TRUE 795AUTOM4TE 796OVERLAY_FALSE 797OVERLAY_TRUE 798HAVE_DVIPDFM_FALSE 799HAVE_DVIPDFM_TRUE 800HAVE_DVIPDFM 801HAVE_LATEX_FALSE 802HAVE_LATEX_TRUE 803HAVE_LATEX 804HAVE_DOT_FALSE 805HAVE_DOT_TRUE 806HAVE_DOT 807HAVE_DOXYGEN_FALSE 808HAVE_DOXYGEN_TRUE 809HAVE_DOXYGEN 810USE_MSVC_FALSE 811USE_MSVC_TRUE 812LIBEXT 813LIBFLAGS 814ACLOCAL_AMFLAGS 815CXXCPP 816CPP 817OTOOL64 818OTOOL 819LIPO 820NMEDIT 821DSYMUTIL 822lt_ECHO 823RANLIB 824AR 825LN_S 826NM 827ac_ct_DUMPBIN 828DUMPBIN 829LD 830FGREP 831EGREP 832GREP 833SED 834am__fastdepCC_FALSE 835am__fastdepCC_TRUE 836CCDEPMODE 837ac_ct_CC 838CFLAGS 839CC 840LIBTOOL 841OBJDUMP 842DLLTOOL 843AS 844host_os 845host_vendor 846host_cpu 847host 848build_os 849build_vendor 850build_cpu 851build 852am__fastdepCXX_FALSE 853am__fastdepCXX_TRUE 854CXXDEPMODE 855AMDEPBACKSLASH 856AMDEP_FALSE 857AMDEP_TRUE 858am__quote 859am__include 860DEPDIR 861OBJEXT 862EXEEXT 863ac_ct_CXX 864CPPFLAGS 865LDFLAGS 866CXXFLAGS 867CXX 868am__untar 869am__tar 870AMTAR 871am__leading_dot 872SET_MAKE 873AWK 874mkdir_p 875MKDIR_P 876INSTALL_STRIP_PROGRAM 877STRIP 878install_sh 879MAKEINFO 880AUTOHEADER 881AUTOMAKE 882AUTOCONF 883ACLOCAL 884VERSION 885PACKAGE 886CYGPATH_W 887am__isrc 888INSTALL_DATA 889INSTALL_SCRIPT 890INSTALL_PROGRAM 891GENERIC_VERSION 892GENERIC_RELEASE 893GENERIC_LIBRARY_NAME 894GENERIC_LIBRARY_VERSION 895target_alias 896host_alias 897build_alias 898LIBS 899ECHO_T 900ECHO_N 901ECHO_C 902DEFS 903mandir 904localedir 905libdir 906psdir 907pdfdir 908dvidir 909htmldir 910infodir 911docdir 912oldincludedir 913includedir 914localstatedir 915sharedstatedir 916sysconfdir 917datadir 918datarootdir 919libexecdir 920sbindir 921bindir 922program_transform_name 923prefix 924exec_prefix 925PACKAGE_BUGREPORT 926PACKAGE_STRING 927PACKAGE_VERSION 928PACKAGE_TARNAME 929PACKAGE_NAME 930PATH_SEPARATOR 931SHELL' 932ac_subst_files='' 933ac_user_opts=' 934enable_option_checking 935enable_dependency_tracking 936enable_shared 937enable_static 938with_pic 939enable_fast_install 940with_gnu_ld 941enable_libtool_lock 942enable_largefile 943enable_overlay 944enable_profile 945enable_debug 946enable_mmx 947' 948 ac_precious_vars='build_alias 949host_alias 950target_alias 951CXX 952CXXFLAGS 953LDFLAGS 954LIBS 955CPPFLAGS 956CCC 957CC 958CFLAGS 959CPP 960CXXCPP' 961 962 963# Initialize some variables set by options. 964ac_init_help= 965ac_init_version=false 966ac_unrecognized_opts= 967ac_unrecognized_sep= 968# The variables have the same names as the options, with 969# dashes changed to underlines. 970cache_file=/dev/null 971exec_prefix=NONE 972no_create= 973no_recursion= 974prefix=NONE 975program_prefix=NONE 976program_suffix=NONE 977program_transform_name=s,x,x, 978silent= 979site= 980srcdir= 981verbose= 982x_includes=NONE 983x_libraries=NONE 984 985# Installation directory options. 986# These are left unexpanded so users can "make install exec_prefix=/foo" 987# and all the variables that are supposed to be based on exec_prefix 988# by default will actually change. 989# Use braces instead of parens because sh, perl, etc. also accept them. 990# (The list follows the same order as the GNU Coding Standards.) 991bindir='${exec_prefix}/bin' 992sbindir='${exec_prefix}/sbin' 993libexecdir='${exec_prefix}/libexec' 994datarootdir='${prefix}/share' 995datadir='${datarootdir}' 996sysconfdir='${prefix}/etc' 997sharedstatedir='${prefix}/com' 998localstatedir='${prefix}/var' 999includedir='${prefix}/include' 1000oldincludedir='/usr/include' 1001docdir='${datarootdir}/doc/${PACKAGE}' 1002infodir='${datarootdir}/info' 1003htmldir='${docdir}' 1004dvidir='${docdir}' 1005pdfdir='${docdir}' 1006psdir='${docdir}' 1007libdir='${exec_prefix}/lib' 1008localedir='${datarootdir}/locale' 1009mandir='${datarootdir}/man' 1010 1011ac_prev= 1012ac_dashdash= 1013for ac_option 1014do 1015 # If the previous option needs an argument, assign it. 1016 if test -n "$ac_prev"; then 1017 eval $ac_prev=\$ac_option 1018 ac_prev= 1019 continue 1020 fi 1021 1022 case $ac_option in 1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1024 *) ac_optarg=yes ;; 1025 esac 1026 1027 # Accept the important Cygnus configure options, so we can diagnose typos. 1028 1029 case $ac_dashdash$ac_option in 1030 --) 1031 ac_dashdash=yes ;; 1032 1033 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1034 ac_prev=bindir ;; 1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1036 bindir=$ac_optarg ;; 1037 1038 -build | --build | --buil | --bui | --bu) 1039 ac_prev=build_alias ;; 1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1041 build_alias=$ac_optarg ;; 1042 1043 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1045 ac_prev=cache_file ;; 1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1048 cache_file=$ac_optarg ;; 1049 1050 --config-cache | -C) 1051 cache_file=config.cache ;; 1052 1053 -datadir | --datadir | --datadi | --datad) 1054 ac_prev=datadir ;; 1055 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1056 datadir=$ac_optarg ;; 1057 1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1059 | --dataroo | --dataro | --datar) 1060 ac_prev=datarootdir ;; 1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1063 datarootdir=$ac_optarg ;; 1064 1065 -disable-* | --disable-*) 1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1067 # Reject names that are not valid shell variable names. 1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1070 { (exit 1); exit 1; }; } 1071 ac_useropt_orig=$ac_useropt 1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1073 case $ac_user_opts in 1074 *" 1075"enable_$ac_useropt" 1076"*) ;; 1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1078 ac_unrecognized_sep=', ';; 1079 esac 1080 eval enable_$ac_useropt=no ;; 1081 1082 -docdir | --docdir | --docdi | --doc | --do) 1083 ac_prev=docdir ;; 1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1085 docdir=$ac_optarg ;; 1086 1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1088 ac_prev=dvidir ;; 1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1090 dvidir=$ac_optarg ;; 1091 1092 -enable-* | --enable-*) 1093 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1094 # Reject names that are not valid shell variable names. 1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1097 { (exit 1); exit 1; }; } 1098 ac_useropt_orig=$ac_useropt 1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1100 case $ac_user_opts in 1101 *" 1102"enable_$ac_useropt" 1103"*) ;; 1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1105 ac_unrecognized_sep=', ';; 1106 esac 1107 eval enable_$ac_useropt=\$ac_optarg ;; 1108 1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1111 | --exec | --exe | --ex) 1112 ac_prev=exec_prefix ;; 1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1115 | --exec=* | --exe=* | --ex=*) 1116 exec_prefix=$ac_optarg ;; 1117 1118 -gas | --gas | --ga | --g) 1119 # Obsolete; use --with-gas. 1120 with_gas=yes ;; 1121 1122 -help | --help | --hel | --he | -h) 1123 ac_init_help=long ;; 1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1125 ac_init_help=recursive ;; 1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1127 ac_init_help=short ;; 1128 1129 -host | --host | --hos | --ho) 1130 ac_prev=host_alias ;; 1131 -host=* | --host=* | --hos=* | --ho=*) 1132 host_alias=$ac_optarg ;; 1133 1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1135 ac_prev=htmldir ;; 1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1137 | --ht=*) 1138 htmldir=$ac_optarg ;; 1139 1140 -includedir | --includedir | --includedi | --included | --include \ 1141 | --includ | --inclu | --incl | --inc) 1142 ac_prev=includedir ;; 1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1144 | --includ=* | --inclu=* | --incl=* | --inc=*) 1145 includedir=$ac_optarg ;; 1146 1147 -infodir | --infodir | --infodi | --infod | --info | --inf) 1148 ac_prev=infodir ;; 1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1150 infodir=$ac_optarg ;; 1151 1152 -libdir | --libdir | --libdi | --libd) 1153 ac_prev=libdir ;; 1154 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1155 libdir=$ac_optarg ;; 1156 1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1158 | --libexe | --libex | --libe) 1159 ac_prev=libexecdir ;; 1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1161 | --libexe=* | --libex=* | --libe=*) 1162 libexecdir=$ac_optarg ;; 1163 1164 -localedir | --localedir | --localedi | --localed | --locale) 1165 ac_prev=localedir ;; 1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1167 localedir=$ac_optarg ;; 1168 1169 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1170 | --localstate | --localstat | --localsta | --localst | --locals) 1171 ac_prev=localstatedir ;; 1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1174 localstatedir=$ac_optarg ;; 1175 1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1177 ac_prev=mandir ;; 1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1179 mandir=$ac_optarg ;; 1180 1181 -nfp | --nfp | --nf) 1182 # Obsolete; use --without-fp. 1183 with_fp=no ;; 1184 1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1186 | --no-cr | --no-c | -n) 1187 no_create=yes ;; 1188 1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1191 no_recursion=yes ;; 1192 1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1195 | --oldin | --oldi | --old | --ol | --o) 1196 ac_prev=oldincludedir ;; 1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1200 oldincludedir=$ac_optarg ;; 1201 1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1203 ac_prev=prefix ;; 1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1205 prefix=$ac_optarg ;; 1206 1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1208 | --program-pre | --program-pr | --program-p) 1209 ac_prev=program_prefix ;; 1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1212 program_prefix=$ac_optarg ;; 1213 1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1215 | --program-suf | --program-su | --program-s) 1216 ac_prev=program_suffix ;; 1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1219 program_suffix=$ac_optarg ;; 1220 1221 -program-transform-name | --program-transform-name \ 1222 | --program-transform-nam | --program-transform-na \ 1223 | --program-transform-n | --program-transform- \ 1224 | --program-transform | --program-transfor \ 1225 | --program-transfo | --program-transf \ 1226 | --program-trans | --program-tran \ 1227 | --progr-tra | --program-tr | --program-t) 1228 ac_prev=program_transform_name ;; 1229 -program-transform-name=* | --program-transform-name=* \ 1230 | --program-transform-nam=* | --program-transform-na=* \ 1231 | --program-transform-n=* | --program-transform-=* \ 1232 | --program-transform=* | --program-transfor=* \ 1233 | --program-transfo=* | --program-transf=* \ 1234 | --program-trans=* | --program-tran=* \ 1235 | --progr-tra=* | --program-tr=* | --program-t=*) 1236 program_transform_name=$ac_optarg ;; 1237 1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1239 ac_prev=pdfdir ;; 1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1241 pdfdir=$ac_optarg ;; 1242 1243 -psdir | --psdir | --psdi | --psd | --ps) 1244 ac_prev=psdir ;; 1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1246 psdir=$ac_optarg ;; 1247 1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1249 | -silent | --silent | --silen | --sile | --sil) 1250 silent=yes ;; 1251 1252 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1253 ac_prev=sbindir ;; 1254 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1255 | --sbi=* | --sb=*) 1256 sbindir=$ac_optarg ;; 1257 1258 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1259 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1260 | --sharedst | --shareds | --shared | --share | --shar \ 1261 | --sha | --sh) 1262 ac_prev=sharedstatedir ;; 1263 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1264 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1265 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1266 | --sha=* | --sh=*) 1267 sharedstatedir=$ac_optarg ;; 1268 1269 -site | --site | --sit) 1270 ac_prev=site ;; 1271 -site=* | --site=* | --sit=*) 1272 site=$ac_optarg ;; 1273 1274 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1275 ac_prev=srcdir ;; 1276 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1277 srcdir=$ac_optarg ;; 1278 1279 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1280 | --syscon | --sysco | --sysc | --sys | --sy) 1281 ac_prev=sysconfdir ;; 1282 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1283 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1284 sysconfdir=$ac_optarg ;; 1285 1286 -target | --target | --targe | --targ | --tar | --ta | --t) 1287 ac_prev=target_alias ;; 1288 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1289 target_alias=$ac_optarg ;; 1290 1291 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1292 verbose=yes ;; 1293 1294 -version | --version | --versio | --versi | --vers | -V) 1295 ac_init_version=: ;; 1296 1297 -with-* | --with-*) 1298 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1299 # Reject names that are not valid shell variable names. 1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1301 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1302 { (exit 1); exit 1; }; } 1303 ac_useropt_orig=$ac_useropt 1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1305 case $ac_user_opts in 1306 *" 1307"with_$ac_useropt" 1308"*) ;; 1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1310 ac_unrecognized_sep=', ';; 1311 esac 1312 eval with_$ac_useropt=\$ac_optarg ;; 1313 1314 -without-* | --without-*) 1315 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1316 # Reject names that are not valid shell variable names. 1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1319 { (exit 1); exit 1; }; } 1320 ac_useropt_orig=$ac_useropt 1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1322 case $ac_user_opts in 1323 *" 1324"with_$ac_useropt" 1325"*) ;; 1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1327 ac_unrecognized_sep=', ';; 1328 esac 1329 eval with_$ac_useropt=no ;; 1330 1331 --x) 1332 # Obsolete; use --with-x. 1333 with_x=yes ;; 1334 1335 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1336 | --x-incl | --x-inc | --x-in | --x-i) 1337 ac_prev=x_includes ;; 1338 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1339 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1340 x_includes=$ac_optarg ;; 1341 1342 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1343 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1344 ac_prev=x_libraries ;; 1345 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1346 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1347 x_libraries=$ac_optarg ;; 1348 1349 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1350Try \`$0 --help' for more information." >&2 1351 { (exit 1); exit 1; }; } 1352 ;; 1353 1354 *=*) 1355 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1356 # Reject names that are not valid shell variable names. 1357 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1358 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1359 { (exit 1); exit 1; }; } 1360 eval $ac_envvar=\$ac_optarg 1361 export $ac_envvar ;; 1362 1363 *) 1364 # FIXME: should be removed in autoconf 3.0. 1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1369 ;; 1370 1371 esac 1372done 1373 1374if test -n "$ac_prev"; then 1375 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1376 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1377 { (exit 1); exit 1; }; } 1378fi 1379 1380if test -n "$ac_unrecognized_opts"; then 1381 case $enable_option_checking in 1382 no) ;; 1383 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1384 { (exit 1); exit 1; }; } ;; 1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1386 esac 1387fi 1388 1389# Check all directory arguments for consistency. 1390for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1391 datadir sysconfdir sharedstatedir localstatedir includedir \ 1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1393 libdir localedir mandir 1394do 1395 eval ac_val=\$$ac_var 1396 # Remove trailing slashes. 1397 case $ac_val in 1398 */ ) 1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1400 eval $ac_var=\$ac_val;; 1401 esac 1402 # Be sure to have absolute directory names. 1403 case $ac_val in 1404 [\\/$]* | ?:[\\/]* ) continue;; 1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1406 esac 1407 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1408 { (exit 1); exit 1; }; } 1409done 1410 1411# There might be people who depend on the old broken behavior: `$host' 1412# used to hold the argument of --host etc. 1413# FIXME: To remove some day. 1414build=$build_alias 1415host=$host_alias 1416target=$target_alias 1417 1418# FIXME: To remove some day. 1419if test "x$host_alias" != x; then 1420 if test "x$build_alias" = x; then 1421 cross_compiling=maybe 1422 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1423 If a cross compiler is detected then cross compile mode will be used." >&2 1424 elif test "x$build_alias" != "x$host_alias"; then 1425 cross_compiling=yes 1426 fi 1427fi 1428 1429ac_tool_prefix= 1430test -n "$host_alias" && ac_tool_prefix=$host_alias- 1431 1432test "$silent" = yes && exec 6>/dev/null 1433 1434 1435ac_pwd=`pwd` && test -n "$ac_pwd" && 1436ac_ls_di=`ls -di .` && 1437ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1438 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1439 { (exit 1); exit 1; }; } 1440test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1441 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1442 { (exit 1); exit 1; }; } 1443 1444 1445# Find the source files, if location was not specified. 1446if test -z "$srcdir"; then 1447 ac_srcdir_defaulted=yes 1448 # Try the directory containing this script, then the parent directory. 1449 ac_confdir=`$as_dirname -- "$as_myself" || 1450$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1451 X"$as_myself" : 'X\(//\)[^/]' \| \ 1452 X"$as_myself" : 'X\(//\)$' \| \ 1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1454$as_echo X"$as_myself" | 1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)[^/].*/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\/\)$/{ 1464 s//\1/ 1465 q 1466 } 1467 /^X\(\/\).*/{ 1468 s//\1/ 1469 q 1470 } 1471 s/.*/./; q'` 1472 srcdir=$ac_confdir 1473 if test ! -r "$srcdir/$ac_unique_file"; then 1474 srcdir=.. 1475 fi 1476else 1477 ac_srcdir_defaulted=no 1478fi 1479if test ! -r "$srcdir/$ac_unique_file"; then 1480 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1481 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1482 { (exit 1); exit 1; }; } 1483fi 1484ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1485ac_abs_confdir=`( 1486 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1487 { (exit 1); exit 1; }; } 1488 pwd)` 1489# When building in place, set srcdir=. 1490if test "$ac_abs_confdir" = "$ac_pwd"; then 1491 srcdir=. 1492fi 1493# Remove unnecessary trailing slashes from srcdir. 1494# Double slashes in file names in object file debugging info 1495# mess up M-x gdb in Emacs. 1496case $srcdir in 1497*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1498esac 1499for ac_var in $ac_precious_vars; do 1500 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1501 eval ac_env_${ac_var}_value=\$${ac_var} 1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1503 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1504done 1505 1506# 1507# Report the --help message. 1508# 1509if test "$ac_init_help" = "long"; then 1510 # Omit some internal or obsolete options to make the list less imposing. 1511 # This message is too long to be a string in the A/UX 3.1 sh. 1512 cat <<_ACEOF 1513\`configure' configures this package to adapt to many kinds of systems. 1514 1515Usage: $0 [OPTION]... [VAR=VALUE]... 1516 1517To assign environment variables (e.g., CC, CFLAGS...), specify them as 1518VAR=VALUE. See below for descriptions of some of the useful variables. 1519 1520Defaults for the options are specified in brackets. 1521 1522Configuration: 1523 -h, --help display this help and exit 1524 --help=short display options specific to this package 1525 --help=recursive display the short help of all the included packages 1526 -V, --version display version information and exit 1527 -q, --quiet, --silent do not print \`checking...' messages 1528 --cache-file=FILE cache test results in FILE [disabled] 1529 -C, --config-cache alias for \`--cache-file=config.cache' 1530 -n, --no-create do not create output files 1531 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1532 1533Installation directories: 1534 --prefix=PREFIX install architecture-independent files in PREFIX 1535 [$ac_default_prefix] 1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1537 [PREFIX] 1538 1539By default, \`make install' will install all the files in 1540\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1541an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1542for instance \`--prefix=\$HOME'. 1543 1544For better control, use the options below. 1545 1546Fine tuning of the installation directories: 1547 --bindir=DIR user executables [EPREFIX/bin] 1548 --sbindir=DIR system admin executables [EPREFIX/sbin] 1549 --libexecdir=DIR program executables [EPREFIX/libexec] 1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1553 --libdir=DIR object code libraries [EPREFIX/lib] 1554 --includedir=DIR C header files [PREFIX/include] 1555 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1558 --infodir=DIR info documentation [DATAROOTDIR/info] 1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1560 --mandir=DIR man documentation [DATAROOTDIR/man] 1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1562 --htmldir=DIR html documentation [DOCDIR] 1563 --dvidir=DIR dvi documentation [DOCDIR] 1564 --pdfdir=DIR pdf documentation [DOCDIR] 1565 --psdir=DIR ps documentation [DOCDIR] 1566_ACEOF 1567 1568 cat <<\_ACEOF 1569 1570Program names: 1571 --program-prefix=PREFIX prepend PREFIX to installed program names 1572 --program-suffix=SUFFIX append SUFFIX to installed program names 1573 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1574 1575System types: 1576 --build=BUILD configure for building on BUILD [guessed] 1577 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1578_ACEOF 1579fi 1580 1581if test -n "$ac_init_help"; then 1582 1583 cat <<\_ACEOF 1584 1585Optional Features: 1586 --disable-option-checking ignore unrecognized --enable/--with options 1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1589 --disable-dependency-tracking speeds up one-time build 1590 --enable-dependency-tracking do not reject slow dependency extractors 1591 --enable-shared[=PKGS] build shared libraries [default=yes] 1592 --enable-static[=PKGS] build static libraries [default=yes] 1593 --enable-fast-install[=PKGS] 1594 optimize for fast installation [default=yes] 1595 --disable-libtool-lock avoid locking (might break parallel builds) 1596 --disable-largefile omit support for large files 1597 --enable-overlay Turns onDirectory instrumentation 1598 --enable-profile enable profile flags (no) 1599 --enable-debug enable extra debug flags (no) 1600 --enable-mmx enable MMX optimization (default=yes) 1601 1602Optional Packages: 1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1605 --with-pic try to use only PIC/non-PIC objects [default=use 1606 both] 1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1608 1609Some influential environment variables: 1610 CXX C++ compiler command 1611 CXXFLAGS C++ compiler flags 1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1613 nonstandard directory <lib dir> 1614 LIBS libraries to pass to the linker, e.g. -l<library> 1615 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1616 you have headers in a nonstandard directory <include dir> 1617 CC C compiler command 1618 CFLAGS C compiler flags 1619 CPP C preprocessor 1620 CXXCPP C++ preprocessor 1621 1622Use these variables to override the choices made by `configure' or to help 1623it to find libraries and programs with nonstandard names/locations. 1624 1625_ACEOF 1626ac_status=$? 1627fi 1628 1629if test "$ac_init_help" = "recursive"; then 1630 # If there are subdirs, report their specific --help. 1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1632 test -d "$ac_dir" || 1633 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1634 continue 1635 ac_builddir=. 1636 1637case "$ac_dir" in 1638.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1639*) 1640 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1641 # A ".." for each directory in $ac_dir_suffix. 1642 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1643 case $ac_top_builddir_sub in 1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1646 esac ;; 1647esac 1648ac_abs_top_builddir=$ac_pwd 1649ac_abs_builddir=$ac_pwd$ac_dir_suffix 1650# for backward compatibility: 1651ac_top_builddir=$ac_top_build_prefix 1652 1653case $srcdir in 1654 .) # We are building in place. 1655 ac_srcdir=. 1656 ac_top_srcdir=$ac_top_builddir_sub 1657 ac_abs_top_srcdir=$ac_pwd ;; 1658 [\\/]* | ?:[\\/]* ) # Absolute name. 1659 ac_srcdir=$srcdir$ac_dir_suffix; 1660 ac_top_srcdir=$srcdir 1661 ac_abs_top_srcdir=$srcdir ;; 1662 *) # Relative name. 1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1664 ac_top_srcdir=$ac_top_build_prefix$srcdir 1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1666esac 1667ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1668 1669 cd "$ac_dir" || { ac_status=$?; continue; } 1670 # Check for guested configure. 1671 if test -f "$ac_srcdir/configure.gnu"; then 1672 echo && 1673 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1674 elif test -f "$ac_srcdir/configure"; then 1675 echo && 1676 $SHELL "$ac_srcdir/configure" --help=recursive 1677 else 1678 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1679 fi || ac_status=$? 1680 cd "$ac_pwd" || { ac_status=$?; break; } 1681 done 1682fi 1683 1684test -n "$ac_init_help" && exit $ac_status 1685if $ac_init_version; then 1686 cat <<\_ACEOF 1687configure 1688generated by GNU Autoconf 2.63 1689 1690Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16912002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1692This configure script is free software; the Free Software Foundation 1693gives unlimited permission to copy, distribute and modify it. 1694_ACEOF 1695 exit 1696fi 1697cat >config.log <<_ACEOF 1698This file contains any messages produced by compilers while 1699running configure, to aid debugging if configure makes a mistake. 1700 1701It was created by $as_me, which was 1702generated by GNU Autoconf 2.63. Invocation command line was 1703 1704 $ $0 $@ 1705 1706_ACEOF 1707exec 5>>config.log 1708{ 1709cat <<_ASUNAME 1710## --------- ## 1711## Platform. ## 1712## --------- ## 1713 1714hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1715uname -m = `(uname -m) 2>/dev/null || echo unknown` 1716uname -r = `(uname -r) 2>/dev/null || echo unknown` 1717uname -s = `(uname -s) 2>/dev/null || echo unknown` 1718uname -v = `(uname -v) 2>/dev/null || echo unknown` 1719 1720/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1721/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1722 1723/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1724/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1725/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1726/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1727/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1728/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1729/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1730 1731_ASUNAME 1732 1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1734for as_dir in $PATH 1735do 1736 IFS=$as_save_IFS 1737 test -z "$as_dir" && as_dir=. 1738 $as_echo "PATH: $as_dir" 1739done 1740IFS=$as_save_IFS 1741 1742} >&5 1743 1744cat >&5 <<_ACEOF 1745 1746 1747## ----------- ## 1748## Core tests. ## 1749## ----------- ## 1750 1751_ACEOF 1752 1753 1754# Keep a trace of the command line. 1755# Strip out --no-create and --no-recursion so they do not pile up. 1756# Strip out --silent because we don't want to record it for future runs. 1757# Also quote any args containing shell meta-characters. 1758# Make two passes to allow for proper duplicate-argument suppression. 1759ac_configure_args= 1760ac_configure_args0= 1761ac_configure_args1= 1762ac_must_keep_next=false 1763for ac_pass in 1 2 1764do 1765 for ac_arg 1766 do 1767 case $ac_arg in 1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1770 | -silent | --silent | --silen | --sile | --sil) 1771 continue ;; 1772 *\'*) 1773 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1774 esac 1775 case $ac_pass in 1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1777 2) 1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1779 if test $ac_must_keep_next = true; then 1780 ac_must_keep_next=false # Got value, back to normal. 1781 else 1782 case $ac_arg in 1783 *=* | --config-cache | -C | -disable-* | --disable-* \ 1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1786 | -with-* | --with-* | -without-* | --without-* | --x) 1787 case "$ac_configure_args0 " in 1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1789 esac 1790 ;; 1791 -* ) ac_must_keep_next=true ;; 1792 esac 1793 fi 1794 ac_configure_args="$ac_configure_args '$ac_arg'" 1795 ;; 1796 esac 1797 done 1798done 1799$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1800$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1801 1802# When interrupted or exit'd, cleanup temporary files, and complete 1803# config.log. We remove comments because anyway the quotes in there 1804# would cause problems or look ugly. 1805# WARNING: Use '\'' to represent an apostrophe within the trap. 1806# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1807trap 'exit_status=$? 1808 # Save into config.log some information that might help in debugging. 1809 { 1810 echo 1811 1812 cat <<\_ASBOX 1813## ---------------- ## 1814## Cache variables. ## 1815## ---------------- ## 1816_ASBOX 1817 echo 1818 # The following way of writing the cache mishandles newlines in values, 1819( 1820 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1821 eval ac_val=\$$ac_var 1822 case $ac_val in #( 1823 *${as_nl}*) 1824 case $ac_var in #( 1825 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1826$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1827 esac 1828 case $ac_var in #( 1829 _ | IFS | as_nl) ;; #( 1830 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1831 *) $as_unset $ac_var ;; 1832 esac ;; 1833 esac 1834 done 1835 (set) 2>&1 | 1836 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1837 *${as_nl}ac_space=\ *) 1838 sed -n \ 1839 "s/'\''/'\''\\\\'\'''\''/g; 1840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1841 ;; #( 1842 *) 1843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1844 ;; 1845 esac | 1846 sort 1847) 1848 echo 1849 1850 cat <<\_ASBOX 1851## ----------------- ## 1852## Output variables. ## 1853## ----------------- ## 1854_ASBOX 1855 echo 1856 for ac_var in $ac_subst_vars 1857 do 1858 eval ac_val=\$$ac_var 1859 case $ac_val in 1860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1861 esac 1862 $as_echo "$ac_var='\''$ac_val'\''" 1863 done | sort 1864 echo 1865 1866 if test -n "$ac_subst_files"; then 1867 cat <<\_ASBOX 1868## ------------------- ## 1869## File substitutions. ## 1870## ------------------- ## 1871_ASBOX 1872 echo 1873 for ac_var in $ac_subst_files 1874 do 1875 eval ac_val=\$$ac_var 1876 case $ac_val in 1877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1878 esac 1879 $as_echo "$ac_var='\''$ac_val'\''" 1880 done | sort 1881 echo 1882 fi 1883 1884 if test -s confdefs.h; then 1885 cat <<\_ASBOX 1886## ----------- ## 1887## confdefs.h. ## 1888## ----------- ## 1889_ASBOX 1890 echo 1891 cat confdefs.h 1892 echo 1893 fi 1894 test "$ac_signal" != 0 && 1895 $as_echo "$as_me: caught signal $ac_signal" 1896 $as_echo "$as_me: exit $exit_status" 1897 } >&5 1898 rm -f core *.core core.conftest.* && 1899 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1900 exit $exit_status 1901' 0 1902for ac_signal in 1 2 13 15; do 1903 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1904done 1905ac_signal=0 1906 1907# confdefs.h avoids OS command line length limits that DEFS can exceed. 1908rm -f -r conftest* confdefs.h 1909 1910# Predefined preprocessor variables. 1911 1912cat >>confdefs.h <<_ACEOF 1913#define PACKAGE_NAME "$PACKAGE_NAME" 1914_ACEOF 1915 1916 1917cat >>confdefs.h <<_ACEOF 1918#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1919_ACEOF 1920 1921 1922cat >>confdefs.h <<_ACEOF 1923#define PACKAGE_VERSION "$PACKAGE_VERSION" 1924_ACEOF 1925 1926 1927cat >>confdefs.h <<_ACEOF 1928#define PACKAGE_STRING "$PACKAGE_STRING" 1929_ACEOF 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1934_ACEOF 1935 1936 1937# Let the site file select an alternate cache file if it wants to. 1938# Prefer an explicitly selected file to automatically selected ones. 1939ac_site_file1=NONE 1940ac_site_file2=NONE 1941if test -n "$CONFIG_SITE"; then 1942 ac_site_file1=$CONFIG_SITE 1943elif test "x$prefix" != xNONE; then 1944 ac_site_file1=$prefix/share/config.site 1945 ac_site_file2=$prefix/etc/config.site 1946else 1947 ac_site_file1=$ac_default_prefix/share/config.site 1948 ac_site_file2=$ac_default_prefix/etc/config.site 1949fi 1950for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1951do 1952 test "x$ac_site_file" = xNONE && continue 1953 if test -r "$ac_site_file"; then 1954 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1955$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1956 sed 's/^/| /' "$ac_site_file" >&5 1957 . "$ac_site_file" 1958 fi 1959done 1960 1961if test -r "$cache_file"; then 1962 # Some versions of bash will fail to source /dev/null (special 1963 # files actually), so we avoid doing that. 1964 if test -f "$cache_file"; then 1965 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1966$as_echo "$as_me: loading cache $cache_file" >&6;} 1967 case $cache_file in 1968 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1969 *) . "./$cache_file";; 1970 esac 1971 fi 1972else 1973 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1974$as_echo "$as_me: creating cache $cache_file" >&6;} 1975 >$cache_file 1976fi 1977 1978# Check that the precious variables saved in the cache have kept the same 1979# value. 1980ac_cache_corrupted=false 1981for ac_var in $ac_precious_vars; do 1982 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1983 eval ac_new_set=\$ac_env_${ac_var}_set 1984 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1985 eval ac_new_val=\$ac_env_${ac_var}_value 1986 case $ac_old_set,$ac_new_set in 1987 set,) 1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1989$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1990 ac_cache_corrupted=: ;; 1991 ,set) 1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1993$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1994 ac_cache_corrupted=: ;; 1995 ,);; 1996 *) 1997 if test "x$ac_old_val" != "x$ac_new_val"; then 1998 # differences in whitespace do not lead to failure. 1999 ac_old_val_w=`echo x $ac_old_val` 2000 ac_new_val_w=`echo x $ac_new_val` 2001 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2002 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2003$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2004 ac_cache_corrupted=: 2005 else 2006 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2007$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2008 eval $ac_var=\$ac_old_val 2009 fi 2010 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2011$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2012 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2013$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2014 fi;; 2015 esac 2016 # Pass precious variables to config.status. 2017 if test "$ac_new_set" = set; then 2018 case $ac_new_val in 2019 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2020 *) ac_arg=$ac_var=$ac_new_val ;; 2021 esac 2022 case " $ac_configure_args " in 2023 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2024 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2025 esac 2026 fi 2027done 2028if $ac_cache_corrupted; then 2029 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2031 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2032$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2033 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2034$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2035 { (exit 1); exit 1; }; } 2036fi 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054ac_ext=c 2055ac_cpp='$CPP $CPPFLAGS' 2056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2058ac_compiler_gnu=$ac_cv_c_compiler_gnu 2059 2060 2061 2062 2063GENERIC_LIBRARY_NAME=dirac 2064 2065#release versioning 2066GENERIC_MAJOR_VERSION=1 2067GENERIC_MINOR_VERSION=0 2068GENERIC_MICRO_VERSION=2 2069 2070#shared library versioning 2071GENERIC_LIBRARY_VERSION=1:0:1 2072# | | | 2073# +------+ | +---+ 2074# | | | 2075# current:revision:age 2076# | | | 2077# | | +- increment if interfaces have been added 2078# | | set to zero if interfaces have been removed 2079# or changed 2080# | +- increment if source code has changed 2081# | set to zero if current is incremented 2082# +- increment if interfaces have been added, removed or changed 2083 2084 2085 2086 2087 2088PACKAGE=$GENERIC_LIBRARY_NAME 2089 2090 2091GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION 2092GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION 2093 2094 2095 2096VERSION=$GENERIC_VERSION 2097 2098am__api_version='1.10' 2099 2100ac_aux_dir= 2101for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2102 if test -f "$ac_dir/install-sh"; then 2103 ac_aux_dir=$ac_dir 2104 ac_install_sh="$ac_aux_dir/install-sh -c" 2105 break 2106 elif test -f "$ac_dir/install.sh"; then 2107 ac_aux_dir=$ac_dir 2108 ac_install_sh="$ac_aux_dir/install.sh -c" 2109 break 2110 elif test -f "$ac_dir/shtool"; then 2111 ac_aux_dir=$ac_dir 2112 ac_install_sh="$ac_aux_dir/shtool install -c" 2113 break 2114 fi 2115done 2116if test -z "$ac_aux_dir"; then 2117 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2118$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2119 { (exit 1); exit 1; }; } 2120fi 2121 2122# These three variables are undocumented and unsupported, 2123# and are intended to be withdrawn in a future Autoconf release. 2124# They can cause serious problems if a builder's source tree is in a directory 2125# whose full name contains unusual characters. 2126ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2127ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2128ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2129 2130 2131# Find a good install program. We prefer a C program (faster), 2132# so one script is as good as another. But avoid the broken or 2133# incompatible versions: 2134# SysV /etc/install, /usr/sbin/install 2135# SunOS /usr/etc/install 2136# IRIX /sbin/install 2137# AIX /bin/install 2138# AmigaOS /C/install, which installs bootblocks on floppy discs 2139# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2140# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2141# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2142# OS/2's system install, which has a completely different semantic 2143# ./install, which can be erroneously created by make from ./install.sh. 2144# Reject install programs that cannot install multiple files. 2145{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2146$as_echo_n "checking for a BSD-compatible install... " >&6; } 2147if test -z "$INSTALL"; then 2148if test "${ac_cv_path_install+set}" = set; then 2149 $as_echo_n "(cached) " >&6 2150else 2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2152for as_dir in $PATH 2153do 2154 IFS=$as_save_IFS 2155 test -z "$as_dir" && as_dir=. 2156 # Account for people who put trailing slashes in PATH elements. 2157case $as_dir/ in 2158 ./ | .// | /cC/* | \ 2159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2160 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2161 /usr/ucb/* ) ;; 2162 *) 2163 # OSF1 and SCO ODT 3.0 have their own names for install. 2164 # Don't use installbsd from OSF since it installs stuff as root 2165 # by default. 2166 for ac_prog in ginstall scoinst install; do 2167 for ac_exec_ext in '' $ac_executable_extensions; do 2168 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2169 if test $ac_prog = install && 2170 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2171 # AIX install. It has an incompatible calling convention. 2172 : 2173 elif test $ac_prog = install && 2174 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2175 # program-specific install script used by HP pwplus--don't use. 2176 : 2177 else 2178 rm -rf conftest.one conftest.two conftest.dir 2179 echo one > conftest.one 2180 echo two > conftest.two 2181 mkdir conftest.dir 2182 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2183 test -s conftest.one && test -s conftest.two && 2184 test -s conftest.dir/conftest.one && 2185 test -s conftest.dir/conftest.two 2186 then 2187 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2188 break 3 2189 fi 2190 fi 2191 fi 2192 done 2193 done 2194 ;; 2195esac 2196 2197done 2198IFS=$as_save_IFS 2199 2200rm -rf conftest.one conftest.two conftest.dir 2201 2202fi 2203 if test "${ac_cv_path_install+set}" = set; then 2204 INSTALL=$ac_cv_path_install 2205 else 2206 # As a last resort, use the slow shell script. Don't cache a 2207 # value for INSTALL within a source directory, because that will 2208 # break other packages using the cache if that directory is 2209 # removed, or if the value is a relative name. 2210 INSTALL=$ac_install_sh 2211 fi 2212fi 2213{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2214$as_echo "$INSTALL" >&6; } 2215 2216# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2217# It thinks the first close brace ends the variable substitution. 2218test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2219 2220test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2221 2222test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2223 2224{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2225$as_echo_n "checking whether build environment is sane... " >&6; } 2226# Just in case 2227sleep 1 2228echo timestamp > conftest.file 2229# Do `set' in a subshell so we don't clobber the current shell's 2230# arguments. Must try -L first in case configure is actually a 2231# symlink; some systems play weird games with the mod time of symlinks 2232# (eg FreeBSD returns the mod time of the symlink's containing 2233# directory). 2234if ( 2235 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2236 if test "$*" = "X"; then 2237 # -L didn't work. 2238 set X `ls -t $srcdir/configure conftest.file` 2239 fi 2240 rm -f conftest.file 2241 if test "$*" != "X $srcdir/configure conftest.file" \ 2242 && test "$*" != "X conftest.file $srcdir/configure"; then 2243 2244 # If neither matched, then we have a broken ls. This can happen 2245 # if, for instance, CONFIG_SHELL is bash and it inherits a 2246 # broken ls alias from the environment. This has actually 2247 # happened. Such a system could not be considered "sane". 2248 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2249alias in your environment" >&5 2250$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2251alias in your environment" >&2;} 2252 { (exit 1); exit 1; }; } 2253 fi 2254 2255 test "$2" = conftest.file 2256 ) 2257then 2258 # Ok. 2259 : 2260else 2261 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2262Check your system clock" >&5 2263$as_echo "$as_me: error: newly created file is older than distributed files! 2264Check your system clock" >&2;} 2265 { (exit 1); exit 1; }; } 2266fi 2267{ $as_echo "$as_me:$LINENO: result: yes" >&5 2268$as_echo "yes" >&6; } 2269test "$program_prefix" != NONE && 2270 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2271# Use a double $ so make ignores it. 2272test "$program_suffix" != NONE && 2273 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2274# Double any \ or $. 2275# By default was `s,x,x', remove it if useless. 2276ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2277program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2278 2279# expand $ac_aux_dir to an absolute path 2280am_aux_dir=`cd $ac_aux_dir && pwd` 2281 2282test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2283# Use eval to expand $SHELL 2284if eval "$MISSING --run true"; then 2285 am_missing_run="$MISSING --run " 2286else 2287 am_missing_run= 2288 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2289$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2290fi 2291 2292{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2293$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2294if test -z "$MKDIR_P"; then 2295 if test "${ac_cv_path_mkdir+set}" = set; then 2296 $as_echo_n "(cached) " >&6 2297else 2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 for ac_prog in mkdir gmkdir; do 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2306 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2307 'mkdir (GNU coreutils) '* | \ 2308 'mkdir (coreutils) '* | \ 2309 'mkdir (fileutils) '4.1*) 2310 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2311 break 3;; 2312 esac 2313 done 2314 done 2315done 2316IFS=$as_save_IFS 2317 2318fi 2319 2320 if test "${ac_cv_path_mkdir+set}" = set; then 2321 MKDIR_P="$ac_cv_path_mkdir -p" 2322 else 2323 # As a last resort, use the slow shell script. Don't cache a 2324 # value for MKDIR_P within a source directory, because that will 2325 # break other packages using the cache if that directory is 2326 # removed, or if the value is a relative name. 2327 test -d ./--version && rmdir ./--version 2328 MKDIR_P="$ac_install_sh -d" 2329 fi 2330fi 2331{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2332$as_echo "$MKDIR_P" >&6; } 2333 2334mkdir_p="$MKDIR_P" 2335case $mkdir_p in 2336 [\\/$]* | ?:[\\/]*) ;; 2337 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2338esac 2339 2340for ac_prog in gawk mawk nawk awk 2341do 2342 # Extract the first word of "$ac_prog", so it can be a program name with args. 2343set dummy $ac_prog; ac_word=$2 2344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2345$as_echo_n "checking for $ac_word... " >&6; } 2346if test "${ac_cv_prog_AWK+set}" = set; then 2347 $as_echo_n "(cached) " >&6 2348else 2349 if test -n "$AWK"; then 2350 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2351else 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 ac_cv_prog_AWK="$ac_prog" 2360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363done 2364done 2365IFS=$as_save_IFS 2366 2367fi 2368fi 2369AWK=$ac_cv_prog_AWK 2370if test -n "$AWK"; then 2371 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2372$as_echo "$AWK" >&6; } 2373else 2374 { $as_echo "$as_me:$LINENO: result: no" >&5 2375$as_echo "no" >&6; } 2376fi 2377 2378 2379 test -n "$AWK" && break 2380done 2381 2382{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2383$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2384set x ${MAKE-make} 2385ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2386if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2387 $as_echo_n "(cached) " >&6 2388else 2389 cat >conftest.make <<\_ACEOF 2390SHELL = /bin/sh 2391all: 2392 @echo '@@@%%%=$(MAKE)=@@@%%%' 2393_ACEOF 2394# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2395case `${MAKE-make} -f conftest.make 2>/dev/null` in 2396 *@@@%%%=?*=@@@%%%*) 2397 eval ac_cv_prog_make_${ac_make}_set=yes;; 2398 *) 2399 eval ac_cv_prog_make_${ac_make}_set=no;; 2400esac 2401rm -f conftest.make 2402fi 2403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2404 { $as_echo "$as_me:$LINENO: result: yes" >&5 2405$as_echo "yes" >&6; } 2406 SET_MAKE= 2407else 2408 { $as_echo "$as_me:$LINENO: result: no" >&5 2409$as_echo "no" >&6; } 2410 SET_MAKE="MAKE=${MAKE-make}" 2411fi 2412 2413rm -rf .tst 2>/dev/null 2414mkdir .tst 2>/dev/null 2415if test -d .tst; then 2416 am__leading_dot=. 2417else 2418 am__leading_dot=_ 2419fi 2420rmdir .tst 2>/dev/null 2421 2422if test "`cd $srcdir && pwd`" != "`pwd`"; then 2423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2424 # is not polluted with repeated "-I." 2425 am__isrc=' -I$(srcdir)' 2426 # test to see if srcdir already configured 2427 if test -f $srcdir/config.status; then 2428 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2429$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2430 { (exit 1); exit 1; }; } 2431 fi 2432fi 2433 2434# test whether we have cygpath 2435if test -z "$CYGPATH_W"; then 2436 if (cygpath --version) >/dev/null 2>/dev/null; then 2437 CYGPATH_W='cygpath -w' 2438 else 2439 CYGPATH_W=echo 2440 fi 2441fi 2442 2443 2444# Define the identity of the package. 2445 PACKAGE=$PACKAGE 2446 VERSION=$VERSION 2447 2448 2449# Some tools Automake needs. 2450 2451ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2452 2453 2454AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2455 2456 2457AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2458 2459 2460AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2461 2462 2463MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2464 2465install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2466 2467# Installed binaries are usually stripped using `strip' when the user 2468# run `make install-strip'. However `strip' might not be the right 2469# tool to use in cross-compilation environments, therefore Automake 2470# will honor the `STRIP' environment variable to overrule this program. 2471if test "$cross_compiling" != no; then 2472 if test -n "$ac_tool_prefix"; then 2473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2474set dummy ${ac_tool_prefix}strip; ac_word=$2 2475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2476$as_echo_n "checking for $ac_word... " >&6; } 2477if test "${ac_cv_prog_STRIP+set}" = set; then 2478 $as_echo_n "(cached) " >&6 2479else 2480 if test -n "$STRIP"; then 2481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2482else 2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484for as_dir in $PATH 2485do 2486 IFS=$as_save_IFS 2487 test -z "$as_dir" && as_dir=. 2488 for ac_exec_ext in '' $ac_executable_extensions; do 2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2490 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2492 break 2 2493 fi 2494done 2495done 2496IFS=$as_save_IFS 2497 2498fi 2499fi 2500STRIP=$ac_cv_prog_STRIP 2501if test -n "$STRIP"; then 2502 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2503$as_echo "$STRIP" >&6; } 2504else 2505 { $as_echo "$as_me:$LINENO: result: no" >&5 2506$as_echo "no" >&6; } 2507fi 2508 2509 2510fi 2511if test -z "$ac_cv_prog_STRIP"; then 2512 ac_ct_STRIP=$STRIP 2513 # Extract the first word of "strip", so it can be a program name with args. 2514set dummy strip; ac_word=$2 2515{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2516$as_echo_n "checking for $ac_word... " >&6; } 2517if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2518 $as_echo_n "(cached) " >&6 2519else 2520 if test -n "$ac_ct_STRIP"; then 2521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2522else 2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2524for as_dir in $PATH 2525do 2526 IFS=$as_save_IFS 2527 test -z "$as_dir" && as_dir=. 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2530 ac_cv_prog_ac_ct_STRIP="strip" 2531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2532 break 2 2533 fi 2534done 2535done 2536IFS=$as_save_IFS 2537 2538fi 2539fi 2540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2541if test -n "$ac_ct_STRIP"; then 2542 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2543$as_echo "$ac_ct_STRIP" >&6; } 2544else 2545 { $as_echo "$as_me:$LINENO: result: no" >&5 2546$as_echo "no" >&6; } 2547fi 2548 2549 if test "x$ac_ct_STRIP" = x; then 2550 STRIP=":" 2551 else 2552 case $cross_compiling:$ac_tool_warned in 2553yes:) 2554{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2556ac_tool_warned=yes ;; 2557esac 2558 STRIP=$ac_ct_STRIP 2559 fi 2560else 2561 STRIP="$ac_cv_prog_STRIP" 2562fi 2563 2564fi 2565INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2566 2567# We need awk for the "check" target. The system "awk" is bad on 2568# some platforms. 2569# Always define AMTAR for backward compatibility. 2570 2571AMTAR=${AMTAR-"${am_missing_run}tar"} 2572 2573am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2574 2575 2576 2577 2578 2579 2580ac_ext=cpp 2581ac_cpp='$CXXCPP $CPPFLAGS' 2582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2585if test -z "$CXX"; then 2586 if test -n "$CCC"; then 2587 CXX=$CCC 2588 else 2589 if test -n "$ac_tool_prefix"; then 2590 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2591 do 2592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2593set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2594{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2595$as_echo_n "checking for $ac_word... " >&6; } 2596if test "${ac_cv_prog_CXX+set}" = set; then 2597 $as_echo_n "(cached) " >&6 2598else 2599 if test -n "$CXX"; then 2600 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2601else 2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2603for as_dir in $PATH 2604do 2605 IFS=$as_save_IFS 2606 test -z "$as_dir" && as_dir=. 2607 for ac_exec_ext in '' $ac_executable_extensions; do 2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2609 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2611 break 2 2612 fi 2613done 2614done 2615IFS=$as_save_IFS 2616 2617fi 2618fi 2619CXX=$ac_cv_prog_CXX 2620if test -n "$CXX"; then 2621 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 2622$as_echo "$CXX" >&6; } 2623else 2624 { $as_echo "$as_me:$LINENO: result: no" >&5 2625$as_echo "no" >&6; } 2626fi 2627 2628 2629 test -n "$CXX" && break 2630 done 2631fi 2632if test -z "$CXX"; then 2633 ac_ct_CXX=$CXX 2634 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2635do 2636 # Extract the first word of "$ac_prog", so it can be a program name with args. 2637set dummy $ac_prog; ac_word=$2 2638{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$ac_ct_CXX"; then 2644 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2653 ac_cv_prog_ac_ct_CXX="$ac_prog" 2654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2664if test -n "$ac_ct_CXX"; then 2665 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2666$as_echo "$ac_ct_CXX" >&6; } 2667else 2668 { $as_echo "$as_me:$LINENO: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 2673 test -n "$ac_ct_CXX" && break 2674done 2675 2676 if test "x$ac_ct_CXX" = x; then 2677 CXX="g++" 2678 else 2679 case $cross_compiling:$ac_tool_warned in 2680yes:) 2681{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2683ac_tool_warned=yes ;; 2684esac 2685 CXX=$ac_ct_CXX 2686 fi 2687fi 2688 2689 fi 2690fi 2691# Provide some information about the compiler. 2692$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2693set X $ac_compile 2694ac_compiler=$2 2695{ (ac_try="$ac_compiler --version >&5" 2696case "(($ac_try" in 2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2698 *) ac_try_echo=$ac_try;; 2699esac 2700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2701$as_echo "$ac_try_echo") >&5 2702 (eval "$ac_compiler --version >&5") 2>&5 2703 ac_status=$? 2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2705 (exit $ac_status); } 2706{ (ac_try="$ac_compiler -v >&5" 2707case "(($ac_try" in 2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2709 *) ac_try_echo=$ac_try;; 2710esac 2711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2712$as_echo "$ac_try_echo") >&5 2713 (eval "$ac_compiler -v >&5") 2>&5 2714 ac_status=$? 2715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2716 (exit $ac_status); } 2717{ (ac_try="$ac_compiler -V >&5" 2718case "(($ac_try" in 2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2720 *) ac_try_echo=$ac_try;; 2721esac 2722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2723$as_echo "$ac_try_echo") >&5 2724 (eval "$ac_compiler -V >&5") 2>&5 2725 ac_status=$? 2726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); } 2728 2729cat >conftest.$ac_ext <<_ACEOF 2730/* confdefs.h. */ 2731_ACEOF 2732cat confdefs.h >>conftest.$ac_ext 2733cat >>conftest.$ac_ext <<_ACEOF 2734/* end confdefs.h. */ 2735 2736int 2737main () 2738{ 2739 2740 ; 2741 return 0; 2742} 2743_ACEOF 2744ac_clean_files_save=$ac_clean_files 2745ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2746# Try to create an executable without -o first, disregard a.out. 2747# It will help us diagnose broken compilers, and finding out an intuition 2748# of exeext. 2749{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2750$as_echo_n "checking for C++ compiler default output file name... " >&6; } 2751ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2752 2753# The possible output files: 2754ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2755 2756ac_rmfiles= 2757for ac_file in $ac_files 2758do 2759 case $ac_file in 2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2762 esac 2763done 2764rm -f $ac_rmfiles 2765 2766if { (ac_try="$ac_link_default" 2767case "(($ac_try" in 2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2769 *) ac_try_echo=$ac_try;; 2770esac 2771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2772$as_echo "$ac_try_echo") >&5 2773 (eval "$ac_link_default") 2>&5 2774 ac_status=$? 2775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2776 (exit $ac_status); }; then 2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2778# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2779# in a Makefile. We should not override ac_cv_exeext if it was cached, 2780# so that the user can short-circuit this test for compilers unknown to 2781# Autoconf. 2782for ac_file in $ac_files '' 2783do 2784 test -f "$ac_file" || continue 2785 case $ac_file in 2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2787 ;; 2788 [ab].out ) 2789 # We found the default executable, but exeext='' is most 2790 # certainly right. 2791 break;; 2792 *.* ) 2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2794 then :; else 2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2796 fi 2797 # We set ac_cv_exeext here because the later test for it is not 2798 # safe: cross compilers may not add the suffix if given an `-o' 2799 # argument, so we may need to know it at that point already. 2800 # Even if this section looks crufty: it has the advantage of 2801 # actually working. 2802 break;; 2803 * ) 2804 break;; 2805 esac 2806done 2807test "$ac_cv_exeext" = no && ac_cv_exeext= 2808 2809else 2810 ac_file='' 2811fi 2812 2813{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2814$as_echo "$ac_file" >&6; } 2815if test -z "$ac_file"; then 2816 $as_echo "$as_me: failed program was:" >&5 2817sed 's/^/| /' conftest.$ac_ext >&5 2818 2819{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2821{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2822See \`config.log' for more details." >&5 2823$as_echo "$as_me: error: C++ compiler cannot create executables 2824See \`config.log' for more details." >&2;} 2825 { (exit 77); exit 77; }; }; } 2826fi 2827 2828ac_exeext=$ac_cv_exeext 2829 2830# Check that the compiler produces executables we can run. If not, either 2831# the compiler is broken, or we cross compile. 2832{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2833$as_echo_n "checking whether the C++ compiler works... " >&6; } 2834# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2835# If not cross compiling, check that we can run a simple program. 2836if test "$cross_compiling" != yes; then 2837 if { ac_try='./$ac_file' 2838 { (case "(($ac_try" in 2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2840 *) ac_try_echo=$ac_try;; 2841esac 2842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2843$as_echo "$ac_try_echo") >&5 2844 (eval "$ac_try") 2>&5 2845 ac_status=$? 2846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847 (exit $ac_status); }; }; then 2848 cross_compiling=no 2849 else 2850 if test "$cross_compiling" = maybe; then 2851 cross_compiling=yes 2852 else 2853 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2855{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2856If you meant to cross compile, use \`--host'. 2857See \`config.log' for more details." >&5 2858$as_echo "$as_me: error: cannot run C++ compiled programs. 2859If you meant to cross compile, use \`--host'. 2860See \`config.log' for more details." >&2;} 2861 { (exit 1); exit 1; }; }; } 2862 fi 2863 fi 2864fi 2865{ $as_echo "$as_me:$LINENO: result: yes" >&5 2866$as_echo "yes" >&6; } 2867 2868rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2869ac_clean_files=$ac_clean_files_save 2870# Check that the compiler produces executables we can run. If not, either 2871# the compiler is broken, or we cross compile. 2872{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2873$as_echo_n "checking whether we are cross compiling... " >&6; } 2874{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2875$as_echo "$cross_compiling" >&6; } 2876 2877{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2878$as_echo_n "checking for suffix of executables... " >&6; } 2879if { (ac_try="$ac_link" 2880case "(($ac_try" in 2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2882 *) ac_try_echo=$ac_try;; 2883esac 2884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2885$as_echo "$ac_try_echo") >&5 2886 (eval "$ac_link") 2>&5 2887 ac_status=$? 2888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2889 (exit $ac_status); }; then 2890 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2892# work properly (i.e., refer to `conftest.exe'), while it won't with 2893# `rm'. 2894for ac_file in conftest.exe conftest conftest.*; do 2895 test -f "$ac_file" || continue 2896 case $ac_file in 2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2899 break;; 2900 * ) break;; 2901 esac 2902done 2903else 2904 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2906{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2907See \`config.log' for more details." >&5 2908$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2909See \`config.log' for more details." >&2;} 2910 { (exit 1); exit 1; }; }; } 2911fi 2912 2913rm -f conftest$ac_cv_exeext 2914{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2915$as_echo "$ac_cv_exeext" >&6; } 2916 2917rm -f conftest.$ac_ext 2918EXEEXT=$ac_cv_exeext 2919ac_exeext=$EXEEXT 2920{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2921$as_echo_n "checking for suffix of object files... " >&6; } 2922if test "${ac_cv_objext+set}" = set; then 2923 $as_echo_n "(cached) " >&6 2924else 2925 cat >conftest.$ac_ext <<_ACEOF 2926/* confdefs.h. */ 2927_ACEOF 2928cat confdefs.h >>conftest.$ac_ext 2929cat >>conftest.$ac_ext <<_ACEOF 2930/* end confdefs.h. */ 2931 2932int 2933main () 2934{ 2935 2936 ; 2937 return 0; 2938} 2939_ACEOF 2940rm -f conftest.o conftest.obj 2941if { (ac_try="$ac_compile" 2942case "(($ac_try" in 2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2944 *) ac_try_echo=$ac_try;; 2945esac 2946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2947$as_echo "$ac_try_echo") >&5 2948 (eval "$ac_compile") 2>&5 2949 ac_status=$? 2950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); }; then 2952 for ac_file in conftest.o conftest.obj conftest.*; do 2953 test -f "$ac_file" || continue; 2954 case $ac_file in 2955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2957 break;; 2958 esac 2959done 2960else 2961 $as_echo "$as_me: failed program was:" >&5 2962sed 's/^/| /' conftest.$ac_ext >&5 2963 2964{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2966{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2967See \`config.log' for more details." >&5 2968$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2969See \`config.log' for more details." >&2;} 2970 { (exit 1); exit 1; }; }; } 2971fi 2972 2973rm -f conftest.$ac_cv_objext conftest.$ac_ext 2974fi 2975{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2976$as_echo "$ac_cv_objext" >&6; } 2977OBJEXT=$ac_cv_objext 2978ac_objext=$OBJEXT 2979{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2980$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 2981if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2982 $as_echo_n "(cached) " >&6 2983else 2984 cat >conftest.$ac_ext <<_ACEOF 2985/* confdefs.h. */ 2986_ACEOF 2987cat confdefs.h >>conftest.$ac_ext 2988cat >>conftest.$ac_ext <<_ACEOF 2989/* end confdefs.h. */ 2990 2991int 2992main () 2993{ 2994#ifndef __GNUC__ 2995 choke me 2996#endif 2997 2998 ; 2999 return 0; 3000} 3001_ACEOF 3002rm -f conftest.$ac_objext 3003if { (ac_try="$ac_compile" 3004case "(($ac_try" in 3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3006 *) ac_try_echo=$ac_try;; 3007esac 3008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3009$as_echo "$ac_try_echo") >&5 3010 (eval "$ac_compile") 2>conftest.er1 3011 ac_status=$? 3012 grep -v '^ *+' conftest.er1 >conftest.err 3013 rm -f conftest.er1 3014 cat conftest.err >&5 3015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); } && { 3017 test -z "$ac_cxx_werror_flag" || 3018 test ! -s conftest.err 3019 } && test -s conftest.$ac_objext; then 3020 ac_compiler_gnu=yes 3021else 3022 $as_echo "$as_me: failed program was:" >&5 3023sed 's/^/| /' conftest.$ac_ext >&5 3024 3025 ac_compiler_gnu=no 3026fi 3027 3028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3029ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3030 3031fi 3032{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3033$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3034if test $ac_compiler_gnu = yes; then 3035 GXX=yes 3036else 3037 GXX= 3038fi 3039ac_test_CXXFLAGS=${CXXFLAGS+set} 3040ac_save_CXXFLAGS=$CXXFLAGS 3041{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3042$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3043if test "${ac_cv_prog_cxx_g+set}" = set; then 3044 $as_echo_n "(cached) " >&6 3045else 3046 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3047 ac_cxx_werror_flag=yes 3048 ac_cv_prog_cxx_g=no 3049 CXXFLAGS="-g" 3050 cat >conftest.$ac_ext <<_ACEOF 3051/* confdefs.h. */ 3052_ACEOF 3053cat confdefs.h >>conftest.$ac_ext 3054cat >>conftest.$ac_ext <<_ACEOF 3055/* end confdefs.h. */ 3056 3057int 3058main () 3059{ 3060 3061 ; 3062 return 0; 3063} 3064_ACEOF 3065rm -f conftest.$ac_objext 3066if { (ac_try="$ac_compile" 3067case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3072$as_echo "$ac_try_echo") >&5 3073 (eval "$ac_compile") 2>conftest.er1 3074 ac_status=$? 3075 grep -v '^ *+' conftest.er1 >conftest.err 3076 rm -f conftest.er1 3077 cat conftest.err >&5 3078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); } && { 3080 test -z "$ac_cxx_werror_flag" || 3081 test ! -s conftest.err 3082 } && test -s conftest.$ac_objext; then 3083 ac_cv_prog_cxx_g=yes 3084else 3085 $as_echo "$as_me: failed program was:" >&5 3086sed 's/^/| /' conftest.$ac_ext >&5 3087 3088 CXXFLAGS="" 3089 cat >conftest.$ac_ext <<_ACEOF 3090/* confdefs.h. */ 3091_ACEOF 3092cat confdefs.h >>conftest.$ac_ext 3093cat >>conftest.$ac_ext <<_ACEOF 3094/* end confdefs.h. */ 3095 3096int 3097main () 3098{ 3099 3100 ; 3101 return 0; 3102} 3103_ACEOF 3104rm -f conftest.$ac_objext 3105if { (ac_try="$ac_compile" 3106case "(($ac_try" in 3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3108 *) ac_try_echo=$ac_try;; 3109esac 3110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3111$as_echo "$ac_try_echo") >&5 3112 (eval "$ac_compile") 2>conftest.er1 3113 ac_status=$? 3114 grep -v '^ *+' conftest.er1 >conftest.err 3115 rm -f conftest.er1 3116 cat conftest.err >&5 3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 (exit $ac_status); } && { 3119 test -z "$ac_cxx_werror_flag" || 3120 test ! -s conftest.err 3121 } && test -s conftest.$ac_objext; then 3122 : 3123else 3124 $as_echo "$as_me: failed program was:" >&5 3125sed 's/^/| /' conftest.$ac_ext >&5 3126 3127 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3128 CXXFLAGS="-g" 3129 cat >conftest.$ac_ext <<_ACEOF 3130/* confdefs.h. */ 3131_ACEOF 3132cat confdefs.h >>conftest.$ac_ext 3133cat >>conftest.$ac_ext <<_ACEOF 3134/* end confdefs.h. */ 3135 3136int 3137main () 3138{ 3139 3140 ; 3141 return 0; 3142} 3143_ACEOF 3144rm -f conftest.$ac_objext 3145if { (ac_try="$ac_compile" 3146case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149esac 3150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3151$as_echo "$ac_try_echo") >&5 3152 (eval "$ac_compile") 2>conftest.er1 3153 ac_status=$? 3154 grep -v '^ *+' conftest.er1 >conftest.err 3155 rm -f conftest.er1 3156 cat conftest.err >&5 3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3158 (exit $ac_status); } && { 3159 test -z "$ac_cxx_werror_flag" || 3160 test ! -s conftest.err 3161 } && test -s conftest.$ac_objext; then 3162 ac_cv_prog_cxx_g=yes 3163else 3164 $as_echo "$as_me: failed program was:" >&5 3165sed 's/^/| /' conftest.$ac_ext >&5 3166 3167 3168fi 3169 3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3171fi 3172 3173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3174fi 3175 3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3178fi 3179{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3180$as_echo "$ac_cv_prog_cxx_g" >&6; } 3181if test "$ac_test_CXXFLAGS" = set; then 3182 CXXFLAGS=$ac_save_CXXFLAGS 3183elif test $ac_cv_prog_cxx_g = yes; then 3184 if test "$GXX" = yes; then 3185 CXXFLAGS="-g -O2" 3186 else 3187 CXXFLAGS="-g" 3188 fi 3189else 3190 if test "$GXX" = yes; then 3191 CXXFLAGS="-O2" 3192 else 3193 CXXFLAGS= 3194 fi 3195fi 3196ac_ext=c 3197ac_cpp='$CPP $CPPFLAGS' 3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3200ac_compiler_gnu=$ac_cv_c_compiler_gnu 3201DEPDIR="${am__leading_dot}deps" 3202 3203ac_config_commands="$ac_config_commands depfiles" 3204 3205 3206am_make=${MAKE-make} 3207cat > confinc << 'END' 3208am__doit: 3209 @echo done 3210.PHONY: am__doit 3211END 3212# If we don't find an include directive, just comment out the code. 3213{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3214$as_echo_n "checking for style of include used by $am_make... " >&6; } 3215am__include="#" 3216am__quote= 3217_am_result=none 3218# First try GNU make style include. 3219echo "include confinc" > confmf 3220# We grep out `Entering directory' and `Leaving directory' 3221# messages which can occur if `w' ends up in MAKEFLAGS. 3222# In particular we don't look at `^make:' because GNU make might 3223# be invoked under some other name (usually "gmake"), in which 3224# case it prints its new name instead of `make'. 3225if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3226 am__include=include 3227 am__quote= 3228 _am_result=GNU 3229fi 3230# Now try BSD make style include. 3231if test "$am__include" = "#"; then 3232 echo '.include "confinc"' > confmf 3233 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3234 am__include=.include 3235 am__quote="\"" 3236 _am_result=BSD 3237 fi 3238fi 3239 3240 3241{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3242$as_echo "$_am_result" >&6; } 3243rm -f confinc confmf 3244 3245# Check whether --enable-dependency-tracking was given. 3246if test "${enable_dependency_tracking+set}" = set; then 3247 enableval=$enable_dependency_tracking; 3248fi 3249 3250if test "x$enable_dependency_tracking" != xno; then 3251 am_depcomp="$ac_aux_dir/depcomp" 3252 AMDEPBACKSLASH='\' 3253fi 3254 if test "x$enable_dependency_tracking" != xno; then 3255 AMDEP_TRUE= 3256 AMDEP_FALSE='#' 3257else 3258 AMDEP_TRUE='#' 3259 AMDEP_FALSE= 3260fi 3261 3262 3263 3264depcc="$CXX" am_compiler_list= 3265 3266{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3267$as_echo_n "checking dependency style of $depcc... " >&6; } 3268if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3269 $as_echo_n "(cached) " >&6 3270else 3271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3272 # We make a subdir and do the tests there. Otherwise we can end up 3273 # making bogus files that we don't know about and never remove. For 3274 # instance it was reported that on HP-UX the gcc test will end up 3275 # making a dummy file named `D' -- because `-MD' means `put the output 3276 # in D'. 3277 mkdir conftest.dir 3278 # Copy depcomp to subdir because otherwise we won't find it if we're 3279 # using a relative directory. 3280 cp "$am_depcomp" conftest.dir 3281 cd conftest.dir 3282 # We will build objects and dependencies in a subdirectory because 3283 # it helps to detect inapplicable dependency modes. For instance 3284 # both Tru64's cc and ICC support -MD to output dependencies as a 3285 # side effect of compilation, but ICC will put the dependencies in 3286 # the current directory while Tru64 will put them in the object 3287 # directory. 3288 mkdir sub 3289 3290 am_cv_CXX_dependencies_compiler_type=none 3291 if test "$am_compiler_list" = ""; then 3292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3293 fi 3294 for depmode in $am_compiler_list; do 3295 # Setup a source with many dependencies, because some compilers 3296 # like to wrap large dependency lists on column 80 (with \), and 3297 # we should not choose a depcomp mode which is confused by this. 3298 # 3299 # We need to recreate these files for each test, as the compiler may 3300 # overwrite some of them when testing with obscure command lines. 3301 # This happens at least with the AIX C compiler. 3302 : > sub/conftest.c 3303 for i in 1 2 3 4 5 6; do 3304 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3305 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3306 # Solaris 8's {/usr,}/bin/sh. 3307 touch sub/conftst$i.h 3308 done 3309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3310 3311 case $depmode in 3312 nosideeffect) 3313 # after this tag, mechanisms are not by side-effect, so they'll 3314 # only be used when explicitly requested 3315 if test "x$enable_dependency_tracking" = xyes; then 3316 continue 3317 else 3318 break 3319 fi 3320 ;; 3321 none) break ;; 3322 esac 3323 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3324 # mode. It turns out that the SunPro C++ compiler does not properly 3325 # handle `-M -o', and we need to detect this. 3326 if depmode=$depmode \ 3327 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3328 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3329 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3330 >/dev/null 2>conftest.err && 3331 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3332 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3333 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3334 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3335 # icc doesn't choke on unknown options, it will just issue warnings 3336 # or remarks (even with -Werror). So we grep stderr for any message 3337 # that says an option was ignored or not supported. 3338 # When given -MP, icc 7.0 and 7.1 complain thusly: 3339 # icc: Command line warning: ignoring option '-M'; no argument required 3340 # The diagnosis changed in icc 8.0: 3341 # icc: Command line remark: option '-MP' not supported 3342 if (grep 'ignoring option' conftest.err || 3343 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3344 am_cv_CXX_dependencies_compiler_type=$depmode 3345 break 3346 fi 3347 fi 3348 done 3349 3350 cd .. 3351 rm -rf conftest.dir 3352else 3353 am_cv_CXX_dependencies_compiler_type=none 3354fi 3355 3356fi 3357{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3358$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3359CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3360 3361 if 3362 test "x$enable_dependency_tracking" != xno \ 3363 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3364 am__fastdepCXX_TRUE= 3365 am__fastdepCXX_FALSE='#' 3366else 3367 am__fastdepCXX_TRUE='#' 3368 am__fastdepCXX_FALSE= 3369fi 3370 3371 3372{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 3373$as_echo_n "checking whether build environment is sane... " >&6; } 3374# Just in case 3375sleep 1 3376echo timestamp > conftest.file 3377# Do `set' in a subshell so we don't clobber the current shell's 3378# arguments. Must try -L first in case configure is actually a 3379# symlink; some systems play weird games with the mod time of symlinks 3380# (eg FreeBSD returns the mod time of the symlink's containing 3381# directory). 3382if ( 3383 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3384 if test "$*" = "X"; then 3385 # -L didn't work. 3386 set X `ls -t $srcdir/configure conftest.file` 3387 fi 3388 rm -f conftest.file 3389 if test "$*" != "X $srcdir/configure conftest.file" \ 3390 && test "$*" != "X conftest.file $srcdir/configure"; then 3391 3392 # If neither matched, then we have a broken ls. This can happen 3393 # if, for instance, CONFIG_SHELL is bash and it inherits a 3394 # broken ls alias from the environment. This has actually 3395 # happened. Such a system could not be considered "sane". 3396 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 3397alias in your environment" >&5 3398$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 3399alias in your environment" >&2;} 3400 { (exit 1); exit 1; }; } 3401 fi 3402 3403 test "$2" = conftest.file 3404 ) 3405then 3406 # Ok. 3407 : 3408else 3409 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 3410Check your system clock" >&5 3411$as_echo "$as_me: error: newly created file is older than distributed files! 3412Check your system clock" >&2;} 3413 { (exit 1); exit 1; }; } 3414fi 3415{ $as_echo "$as_me:$LINENO: result: yes" >&5 3416$as_echo "yes" >&6; } 3417# Make sure we can run config.sub. 3418$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3419 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3420$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3421 { (exit 1); exit 1; }; } 3422 3423{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3424$as_echo_n "checking build system type... " >&6; } 3425if test "${ac_cv_build+set}" = set; then 3426 $as_echo_n "(cached) " >&6 3427else 3428 ac_build_alias=$build_alias 3429test "x$ac_build_alias" = x && 3430 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3431test "x$ac_build_alias" = x && 3432 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3433$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3434 { (exit 1); exit 1; }; } 3435ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3436 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3437$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3438 { (exit 1); exit 1; }; } 3439 3440fi 3441{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3442$as_echo "$ac_cv_build" >&6; } 3443case $ac_cv_build in 3444*-*-*) ;; 3445*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3446$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3447 { (exit 1); exit 1; }; };; 3448esac 3449build=$ac_cv_build 3450ac_save_IFS=$IFS; IFS='-' 3451set x $ac_cv_build 3452shift 3453build_cpu=$1 3454build_vendor=$2 3455shift; shift 3456# Remember, the first character of IFS is used to create $*, 3457# except with old shells: 3458build_os=$* 3459IFS=$ac_save_IFS 3460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3461 3462 3463{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3464$as_echo_n "checking host system type... " >&6; } 3465if test "${ac_cv_host+set}" = set; then 3466 $as_echo_n "(cached) " >&6 3467else 3468 if test "x$host_alias" = x; then 3469 ac_cv_host=$ac_cv_build 3470else 3471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3472 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3473$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3474 { (exit 1); exit 1; }; } 3475fi 3476 3477fi 3478{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3479$as_echo "$ac_cv_host" >&6; } 3480case $ac_cv_host in 3481*-*-*) ;; 3482*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3483$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3484 { (exit 1); exit 1; }; };; 3485esac 3486host=$ac_cv_host 3487ac_save_IFS=$IFS; IFS='-' 3488set x $ac_cv_host 3489shift 3490host_cpu=$1 3491host_vendor=$2 3492shift; shift 3493# Remember, the first character of IFS is used to create $*, 3494# except with old shells: 3495host_os=$* 3496IFS=$ac_save_IFS 3497case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3498 3499 3500enable_win32_dll=yes 3501 3502case $host in 3503*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 3504 if test -n "$ac_tool_prefix"; then 3505 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3506set dummy ${ac_tool_prefix}as; ac_word=$2 3507{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3508$as_echo_n "checking for $ac_word... " >&6; } 3509if test "${ac_cv_prog_AS+set}" = set; then 3510 $as_echo_n "(cached) " >&6 3511else 3512 if test -n "$AS"; then 3513 ac_cv_prog_AS="$AS" # Let the user override the test. 3514else 3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3516for as_dir in $PATH 3517do 3518 IFS=$as_save_IFS 3519 test -z "$as_dir" && as_dir=. 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3522 ac_cv_prog_AS="${ac_tool_prefix}as" 3523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3524 break 2 3525 fi 3526done 3527done 3528IFS=$as_save_IFS 3529 3530fi 3531fi 3532AS=$ac_cv_prog_AS 3533if test -n "$AS"; then 3534 { $as_echo "$as_me:$LINENO: result: $AS" >&5 3535$as_echo "$AS" >&6; } 3536else 3537 { $as_echo "$as_me:$LINENO: result: no" >&5 3538$as_echo "no" >&6; } 3539fi 3540 3541 3542fi 3543if test -z "$ac_cv_prog_AS"; then 3544 ac_ct_AS=$AS 3545 # Extract the first word of "as", so it can be a program name with args. 3546set dummy as; ac_word=$2 3547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3548$as_echo_n "checking for $ac_word... " >&6; } 3549if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 3550 $as_echo_n "(cached) " >&6 3551else 3552 if test -n "$ac_ct_AS"; then 3553 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3554else 3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556for as_dir in $PATH 3557do 3558 IFS=$as_save_IFS 3559 test -z "$as_dir" && as_dir=. 3560 for ac_exec_ext in '' $ac_executable_extensions; do 3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3562 ac_cv_prog_ac_ct_AS="as" 3563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3564 break 2 3565 fi 3566done 3567done 3568IFS=$as_save_IFS 3569 3570fi 3571fi 3572ac_ct_AS=$ac_cv_prog_ac_ct_AS 3573if test -n "$ac_ct_AS"; then 3574 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 3575$as_echo "$ac_ct_AS" >&6; } 3576else 3577 { $as_echo "$as_me:$LINENO: result: no" >&5 3578$as_echo "no" >&6; } 3579fi 3580 3581 if test "x$ac_ct_AS" = x; then 3582 AS="false" 3583 else 3584 case $cross_compiling:$ac_tool_warned in 3585yes:) 3586{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3588ac_tool_warned=yes ;; 3589esac 3590 AS=$ac_ct_AS 3591 fi 3592else 3593 AS="$ac_cv_prog_AS" 3594fi 3595 3596 if test -n "$ac_tool_prefix"; then 3597 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3598set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3599{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3600$as_echo_n "checking for $ac_word... " >&6; } 3601if test "${ac_cv_prog_DLLTOOL+set}" = set; then 3602 $as_echo_n "(cached) " >&6 3603else 3604 if test -n "$DLLTOOL"; then 3605 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3614 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624DLLTOOL=$ac_cv_prog_DLLTOOL 3625if test -n "$DLLTOOL"; then 3626 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5 3627$as_echo "$DLLTOOL" >&6; } 3628else 3629 { $as_echo "$as_me:$LINENO: result: no" >&5 3630$as_echo "no" >&6; } 3631fi 3632 3633 3634fi 3635if test -z "$ac_cv_prog_DLLTOOL"; then 3636 ac_ct_DLLTOOL=$DLLTOOL 3637 # Extract the first word of "dlltool", so it can be a program name with args. 3638set dummy dlltool; ac_word=$2 3639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3640$as_echo_n "checking for $ac_word... " >&6; } 3641if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -n "$ac_ct_DLLTOOL"; then 3645 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3646else 3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3648for as_dir in $PATH 3649do 3650 IFS=$as_save_IFS 3651 test -z "$as_dir" && as_dir=. 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3654 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3656 break 2 3657 fi 3658done 3659done 3660IFS=$as_save_IFS 3661 3662fi 3663fi 3664ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 3665if test -n "$ac_ct_DLLTOOL"; then 3666 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 3667$as_echo "$ac_ct_DLLTOOL" >&6; } 3668else 3669 { $as_echo "$as_me:$LINENO: result: no" >&5 3670$as_echo "no" >&6; } 3671fi 3672 3673 if test "x$ac_ct_DLLTOOL" = x; then 3674 DLLTOOL="false" 3675 else 3676 case $cross_compiling:$ac_tool_warned in 3677yes:) 3678{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3680ac_tool_warned=yes ;; 3681esac 3682 DLLTOOL=$ac_ct_DLLTOOL 3683 fi 3684else 3685 DLLTOOL="$ac_cv_prog_DLLTOOL" 3686fi 3687 3688 if test -n "$ac_tool_prefix"; then 3689 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3690set dummy ${ac_tool_prefix}objdump; ac_word=$2 3691{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3692$as_echo_n "checking for $ac_word... " >&6; } 3693if test "${ac_cv_prog_OBJDUMP+set}" = set; then 3694 $as_echo_n "(cached) " >&6 3695else 3696 if test -n "$OBJDUMP"; then 3697 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3698else 3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3700for as_dir in $PATH 3701do 3702 IFS=$as_save_IFS 3703 test -z "$as_dir" && as_dir=. 3704 for ac_exec_ext in '' $ac_executable_extensions; do 3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3706 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 3707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3708 break 2 3709 fi 3710done 3711done 3712IFS=$as_save_IFS 3713 3714fi 3715fi 3716OBJDUMP=$ac_cv_prog_OBJDUMP 3717if test -n "$OBJDUMP"; then 3718 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 3719$as_echo "$OBJDUMP" >&6; } 3720else 3721 { $as_echo "$as_me:$LINENO: result: no" >&5 3722$as_echo "no" >&6; } 3723fi 3724 3725 3726fi 3727if test -z "$ac_cv_prog_OBJDUMP"; then 3728 ac_ct_OBJDUMP=$OBJDUMP 3729 # Extract the first word of "objdump", so it can be a program name with args. 3730set dummy objdump; ac_word=$2 3731{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3732$as_echo_n "checking for $ac_word... " >&6; } 3733if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 3734 $as_echo_n "(cached) " >&6 3735else 3736 if test -n "$ac_ct_OBJDUMP"; then 3737 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 3738else 3739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3740for as_dir in $PATH 3741do 3742 IFS=$as_save_IFS 3743 test -z "$as_dir" && as_dir=. 3744 for ac_exec_ext in '' $ac_executable_extensions; do 3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3746 ac_cv_prog_ac_ct_OBJDUMP="objdump" 3747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3748 break 2 3749 fi 3750done 3751done 3752IFS=$as_save_IFS 3753 3754fi 3755fi 3756ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 3757if test -n "$ac_ct_OBJDUMP"; then 3758 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 3759$as_echo "$ac_ct_OBJDUMP" >&6; } 3760else 3761 { $as_echo "$as_me:$LINENO: result: no" >&5 3762$as_echo "no" >&6; } 3763fi 3764 3765 if test "x$ac_ct_OBJDUMP" = x; then 3766 OBJDUMP="false" 3767 else 3768 case $cross_compiling:$ac_tool_warned in 3769yes:) 3770{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3772ac_tool_warned=yes ;; 3773esac 3774 OBJDUMP=$ac_ct_OBJDUMP 3775 fi 3776else 3777 OBJDUMP="$ac_cv_prog_OBJDUMP" 3778fi 3779 3780 ;; 3781esac 3782 3783test -z "$AS" && AS=as 3784 3785 3786 3787 3788 3789test -z "$DLLTOOL" && DLLTOOL=dlltool 3790 3791 3792 3793 3794 3795test -z "$OBJDUMP" && OBJDUMP=objdump 3796 3797 3798 3799 3800 3801 3802 3803case `pwd` in 3804 *\ * | *\ *) 3805 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3806$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3807esac 3808 3809 3810 3811macro_version='2.2.6' 3812macro_revision='1.3012' 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826ltmain="$ac_aux_dir/ltmain.sh" 3827 3828ac_ext=c 3829ac_cpp='$CPP $CPPFLAGS' 3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3832ac_compiler_gnu=$ac_cv_c_compiler_gnu 3833if test -n "$ac_tool_prefix"; then 3834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3835set dummy ${ac_tool_prefix}gcc; ac_word=$2 3836{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3837$as_echo_n "checking for $ac_word... " >&6; } 3838if test "${ac_cv_prog_CC+set}" = set; then 3839 $as_echo_n "(cached) " >&6 3840else 3841 if test -n "$CC"; then 3842 ac_cv_prog_CC="$CC" # Let the user override the test. 3843else 3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3845for as_dir in $PATH 3846do 3847 IFS=$as_save_IFS 3848 test -z "$as_dir" && as_dir=. 3849 for ac_exec_ext in '' $ac_executable_extensions; do 3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3851 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3853 break 2 3854 fi 3855done 3856done 3857IFS=$as_save_IFS 3858 3859fi 3860fi 3861CC=$ac_cv_prog_CC 3862if test -n "$CC"; then 3863 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3864$as_echo "$CC" >&6; } 3865else 3866 { $as_echo "$as_me:$LINENO: result: no" >&5 3867$as_echo "no" >&6; } 3868fi 3869 3870 3871fi 3872if test -z "$ac_cv_prog_CC"; then 3873 ac_ct_CC=$CC 3874 # Extract the first word of "gcc", so it can be a program name with args. 3875set dummy gcc; ac_word=$2 3876{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3877$as_echo_n "checking for $ac_word... " >&6; } 3878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3879 $as_echo_n "(cached) " >&6 3880else 3881 if test -n "$ac_ct_CC"; then 3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3883else 3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3885for as_dir in $PATH 3886do 3887 IFS=$as_save_IFS 3888 test -z "$as_dir" && as_dir=. 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3891 ac_cv_prog_ac_ct_CC="gcc" 3892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3893 break 2 3894 fi 3895done 3896done 3897IFS=$as_save_IFS 3898 3899fi 3900fi 3901ac_ct_CC=$ac_cv_prog_ac_ct_CC 3902if test -n "$ac_ct_CC"; then 3903 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3904$as_echo "$ac_ct_CC" >&6; } 3905else 3906 { $as_echo "$as_me:$LINENO: result: no" >&5 3907$as_echo "no" >&6; } 3908fi 3909 3910 if test "x$ac_ct_CC" = x; then 3911 CC="" 3912 else 3913 case $cross_compiling:$ac_tool_warned in 3914yes:) 3915{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3917ac_tool_warned=yes ;; 3918esac 3919 CC=$ac_ct_CC 3920 fi 3921else 3922 CC="$ac_cv_prog_CC" 3923fi 3924 3925if test -z "$CC"; then 3926 if test -n "$ac_tool_prefix"; then 3927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3928set dummy ${ac_tool_prefix}cc; ac_word=$2 3929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3930$as_echo_n "checking for $ac_word... " >&6; } 3931if test "${ac_cv_prog_CC+set}" = set; then 3932 $as_echo_n "(cached) " >&6 3933else 3934 if test -n "$CC"; then 3935 ac_cv_prog_CC="$CC" # Let the user override the test. 3936else 3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938for as_dir in $PATH 3939do 3940 IFS=$as_save_IFS 3941 test -z "$as_dir" && as_dir=. 3942 for ac_exec_ext in '' $ac_executable_extensions; do 3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3944 ac_cv_prog_CC="${ac_tool_prefix}cc" 3945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3946 break 2 3947 fi 3948done 3949done 3950IFS=$as_save_IFS 3951 3952fi 3953fi 3954CC=$ac_cv_prog_CC 3955if test -n "$CC"; then 3956 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3957$as_echo "$CC" >&6; } 3958else 3959 { $as_echo "$as_me:$LINENO: result: no" >&5 3960$as_echo "no" >&6; } 3961fi 3962 3963 3964 fi 3965fi 3966if test -z "$CC"; then 3967 # Extract the first word of "cc", so it can be a program name with args. 3968set dummy cc; ac_word=$2 3969{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3970$as_echo_n "checking for $ac_word... " >&6; } 3971if test "${ac_cv_prog_CC+set}" = set; then 3972 $as_echo_n "(cached) " >&6 3973else 3974 if test -n "$CC"; then 3975 ac_cv_prog_CC="$CC" # Let the user override the test. 3976else 3977 ac_prog_rejected=no 3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3979for as_dir in $PATH 3980do 3981 IFS=$as_save_IFS 3982 test -z "$as_dir" && as_dir=. 3983 for ac_exec_ext in '' $ac_executable_extensions; do 3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3986 ac_prog_rejected=yes 3987 continue 3988 fi 3989 ac_cv_prog_CC="cc" 3990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3991 break 2 3992 fi 3993done 3994done 3995IFS=$as_save_IFS 3996 3997if test $ac_prog_rejected = yes; then 3998 # We found a bogon in the path, so make sure we never use it. 3999 set dummy $ac_cv_prog_CC 4000 shift 4001 if test $# != 0; then 4002 # We chose a different compiler from the bogus one. 4003 # However, it has the same basename, so the bogon will be chosen 4004 # first if we set CC to just the basename; use the full file name. 4005 shift 4006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4007 fi 4008fi 4009fi 4010fi 4011CC=$ac_cv_prog_CC 4012if test -n "$CC"; then 4013 { $as_echo "$as_me:$LINENO: result: $CC" >&5 4014$as_echo "$CC" >&6; } 4015else 4016 { $as_echo "$as_me:$LINENO: result: no" >&5 4017$as_echo "no" >&6; } 4018fi 4019 4020 4021fi 4022if test -z "$CC"; then 4023 if test -n "$ac_tool_prefix"; then 4024 for ac_prog in cl.exe 4025 do 4026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4027set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4029$as_echo_n "checking for $ac_word... " >&6; } 4030if test "${ac_cv_prog_CC+set}" = set; then 4031 $as_echo_n "(cached) " >&6 4032else 4033 if test -n "$CC"; then 4034 ac_cv_prog_CC="$CC" # Let the user override the test. 4035else 4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4037for as_dir in $PATH 4038do 4039 IFS=$as_save_IFS 4040 test -z "$as_dir" && as_dir=. 4041 for ac_exec_ext in '' $ac_executable_extensions; do 4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4044 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4045 break 2 4046 fi 4047done 4048done 4049IFS=$as_save_IFS 4050 4051fi 4052fi 4053CC=$ac_cv_prog_CC 4054if test -n "$CC"; then 4055 { $as_echo "$as_me:$LINENO: result: $CC" >&5 4056$as_echo "$CC" >&6; } 4057else 4058 { $as_echo "$as_me:$LINENO: result: no" >&5 4059$as_echo "no" >&6; } 4060fi 4061 4062 4063 test -n "$CC" && break 4064 done 4065fi 4066if test -z "$CC"; then 4067 ac_ct_CC=$CC 4068 for ac_prog in cl.exe 4069do 4070 # Extract the first word of "$ac_prog", so it can be a program name with args. 4071set dummy $ac_prog; ac_word=$2 4072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4073$as_echo_n "checking for $ac_word... " >&6; } 4074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4075 $as_echo_n "(cached) " >&6 4076else 4077 if test -n "$ac_ct_CC"; then 4078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4079else 4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4081for as_dir in $PATH 4082do 4083 IFS=$as_save_IFS 4084 test -z "$as_dir" && as_dir=. 4085 for ac_exec_ext in '' $ac_executable_extensions; do 4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4087 ac_cv_prog_ac_ct_CC="$ac_prog" 4088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4089 break 2 4090 fi 4091done 4092done 4093IFS=$as_save_IFS 4094 4095fi 4096fi 4097ac_ct_CC=$ac_cv_prog_ac_ct_CC 4098if test -n "$ac_ct_CC"; then 4099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 4100$as_echo "$ac_ct_CC" >&6; } 4101else 4102 { $as_echo "$as_me:$LINENO: result: no" >&5 4103$as_echo "no" >&6; } 4104fi 4105 4106 4107 test -n "$ac_ct_CC" && break 4108done 4109 4110 if test "x$ac_ct_CC" = x; then 4111 CC="" 4112 else 4113 case $cross_compiling:$ac_tool_warned in 4114yes:) 4115{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4117ac_tool_warned=yes ;; 4118esac 4119 CC=$ac_ct_CC 4120 fi 4121fi 4122 4123fi 4124 4125 4126test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4128{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 4129See \`config.log' for more details." >&5 4130$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 4131See \`config.log' for more details." >&2;} 4132 { (exit 1); exit 1; }; }; } 4133 4134# Provide some information about the compiler. 4135$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 4136set X $ac_compile 4137ac_compiler=$2 4138{ (ac_try="$ac_compiler --version >&5" 4139case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142esac 4143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4144$as_echo "$ac_try_echo") >&5 4145 (eval "$ac_compiler --version >&5") 2>&5 4146 ac_status=$? 4147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4148 (exit $ac_status); } 4149{ (ac_try="$ac_compiler -v >&5" 4150case "(($ac_try" in 4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4152 *) ac_try_echo=$ac_try;; 4153esac 4154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4155$as_echo "$ac_try_echo") >&5 4156 (eval "$ac_compiler -v >&5") 2>&5 4157 ac_status=$? 4158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); } 4160{ (ac_try="$ac_compiler -V >&5" 4161case "(($ac_try" in 4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4163 *) ac_try_echo=$ac_try;; 4164esac 4165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4166$as_echo "$ac_try_echo") >&5 4167 (eval "$ac_compiler -V >&5") 2>&5 4168 ac_status=$? 4169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); } 4171 4172{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4173$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4174if test "${ac_cv_c_compiler_gnu+set}" = set; then 4175 $as_echo_n "(cached) " >&6 4176else 4177 cat >conftest.$ac_ext <<_ACEOF 4178/* confdefs.h. */ 4179_ACEOF 4180cat confdefs.h >>conftest.$ac_ext 4181cat >>conftest.$ac_ext <<_ACEOF 4182/* end confdefs.h. */ 4183 4184int 4185main () 4186{ 4187#ifndef __GNUC__ 4188 choke me 4189#endif 4190 4191 ; 4192 return 0; 4193} 4194_ACEOF 4195rm -f conftest.$ac_objext 4196if { (ac_try="$ac_compile" 4197case "(($ac_try" in 4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4199 *) ac_try_echo=$ac_try;; 4200esac 4201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4202$as_echo "$ac_try_echo") >&5 4203 (eval "$ac_compile") 2>conftest.er1 4204 ac_status=$? 4205 grep -v '^ *+' conftest.er1 >conftest.err 4206 rm -f conftest.er1 4207 cat conftest.err >&5 4208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4209 (exit $ac_status); } && { 4210 test -z "$ac_c_werror_flag" || 4211 test ! -s conftest.err 4212 } && test -s conftest.$ac_objext; then 4213 ac_compiler_gnu=yes 4214else 4215 $as_echo "$as_me: failed program was:" >&5 4216sed 's/^/| /' conftest.$ac_ext >&5 4217 4218 ac_compiler_gnu=no 4219fi 4220 4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4222ac_cv_c_compiler_gnu=$ac_compiler_gnu 4223 4224fi 4225{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4226$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4227if test $ac_compiler_gnu = yes; then 4228 GCC=yes 4229else 4230 GCC= 4231fi 4232ac_test_CFLAGS=${CFLAGS+set} 4233ac_save_CFLAGS=$CFLAGS 4234{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4235$as_echo_n "checking whether $CC accepts -g... " >&6; } 4236if test "${ac_cv_prog_cc_g+set}" = set; then 4237 $as_echo_n "(cached) " >&6 4238else 4239 ac_save_c_werror_flag=$ac_c_werror_flag 4240 ac_c_werror_flag=yes 4241 ac_cv_prog_cc_g=no 4242 CFLAGS="-g" 4243 cat >conftest.$ac_ext <<_ACEOF 4244/* confdefs.h. */ 4245_ACEOF 4246cat confdefs.h >>conftest.$ac_ext 4247cat >>conftest.$ac_ext <<_ACEOF 4248/* end confdefs.h. */ 4249 4250int 4251main () 4252{ 4253 4254 ; 4255 return 0; 4256} 4257_ACEOF 4258rm -f conftest.$ac_objext 4259if { (ac_try="$ac_compile" 4260case "(($ac_try" in 4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4262 *) ac_try_echo=$ac_try;; 4263esac 4264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4265$as_echo "$ac_try_echo") >&5 4266 (eval "$ac_compile") 2>conftest.er1 4267 ac_status=$? 4268 grep -v '^ *+' conftest.er1 >conftest.err 4269 rm -f conftest.er1 4270 cat conftest.err >&5 4271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4272 (exit $ac_status); } && { 4273 test -z "$ac_c_werror_flag" || 4274 test ! -s conftest.err 4275 } && test -s conftest.$ac_objext; then 4276 ac_cv_prog_cc_g=yes 4277else 4278 $as_echo "$as_me: failed program was:" >&5 4279sed 's/^/| /' conftest.$ac_ext >&5 4280 4281 CFLAGS="" 4282 cat >conftest.$ac_ext <<_ACEOF 4283/* confdefs.h. */ 4284_ACEOF 4285cat confdefs.h >>conftest.$ac_ext 4286cat >>conftest.$ac_ext <<_ACEOF 4287/* end confdefs.h. */ 4288 4289int 4290main () 4291{ 4292 4293 ; 4294 return 0; 4295} 4296_ACEOF 4297rm -f conftest.$ac_objext 4298if { (ac_try="$ac_compile" 4299case "(($ac_try" in 4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4301 *) ac_try_echo=$ac_try;; 4302esac 4303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4304$as_echo "$ac_try_echo") >&5 4305 (eval "$ac_compile") 2>conftest.er1 4306 ac_status=$? 4307 grep -v '^ *+' conftest.er1 >conftest.err 4308 rm -f conftest.er1 4309 cat conftest.err >&5 4310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4311 (exit $ac_status); } && { 4312 test -z "$ac_c_werror_flag" || 4313 test ! -s conftest.err 4314 } && test -s conftest.$ac_objext; then 4315 : 4316else 4317 $as_echo "$as_me: failed program was:" >&5 4318sed 's/^/| /' conftest.$ac_ext >&5 4319 4320 ac_c_werror_flag=$ac_save_c_werror_flag 4321 CFLAGS="-g" 4322 cat >conftest.$ac_ext <<_ACEOF 4323/* confdefs.h. */ 4324_ACEOF 4325cat confdefs.h >>conftest.$ac_ext 4326cat >>conftest.$ac_ext <<_ACEOF 4327/* end confdefs.h. */ 4328 4329int 4330main () 4331{ 4332 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337rm -f conftest.$ac_objext 4338if { (ac_try="$ac_compile" 4339case "(($ac_try" in 4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4341 *) ac_try_echo=$ac_try;; 4342esac 4343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4344$as_echo "$ac_try_echo") >&5 4345 (eval "$ac_compile") 2>conftest.er1 4346 ac_status=$? 4347 grep -v '^ *+' conftest.er1 >conftest.err 4348 rm -f conftest.er1 4349 cat conftest.err >&5 4350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4351 (exit $ac_status); } && { 4352 test -z "$ac_c_werror_flag" || 4353 test ! -s conftest.err 4354 } && test -s conftest.$ac_objext; then 4355 ac_cv_prog_cc_g=yes 4356else 4357 $as_echo "$as_me: failed program was:" >&5 4358sed 's/^/| /' conftest.$ac_ext >&5 4359 4360 4361fi 4362 4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4364fi 4365 4366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4367fi 4368 4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4370 ac_c_werror_flag=$ac_save_c_werror_flag 4371fi 4372{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4373$as_echo "$ac_cv_prog_cc_g" >&6; } 4374if test "$ac_test_CFLAGS" = set; then 4375 CFLAGS=$ac_save_CFLAGS 4376elif test $ac_cv_prog_cc_g = yes; then 4377 if test "$GCC" = yes; then 4378 CFLAGS="-g -O2" 4379 else 4380 CFLAGS="-g" 4381 fi 4382else 4383 if test "$GCC" = yes; then 4384 CFLAGS="-O2" 4385 else 4386 CFLAGS= 4387 fi 4388fi 4389{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4390$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4391if test "${ac_cv_prog_cc_c89+set}" = set; then 4392 $as_echo_n "(cached) " >&6 4393else 4394 ac_cv_prog_cc_c89=no 4395ac_save_CC=$CC 4396cat >conftest.$ac_ext <<_ACEOF 4397/* confdefs.h. */ 4398_ACEOF 4399cat confdefs.h >>conftest.$ac_ext 4400cat >>conftest.$ac_ext <<_ACEOF 4401/* end confdefs.h. */ 4402#include <stdarg.h> 4403#include <stdio.h> 4404#include <sys/types.h> 4405#include <sys/stat.h> 4406/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4407struct buf { int x; }; 4408FILE * (*rcsopen) (struct buf *, struct stat *, int); 4409static char *e (p, i) 4410 char **p; 4411 int i; 4412{ 4413 return p[i]; 4414} 4415static char *f (char * (*g) (char **, int), char **p, ...) 4416{ 4417 char *s; 4418 va_list v; 4419 va_start (v,p); 4420 s = g (p, va_arg (v,int)); 4421 va_end (v); 4422 return s; 4423} 4424 4425/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4426 function prototypes and stuff, but not '\xHH' hex character constants. 4427 These don't provoke an error unfortunately, instead are silently treated 4428 as 'x'. The following induces an error, until -std is added to get 4429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4430 array size at least. It's necessary to write '\x00'==0 to get something 4431 that's true only with -std. */ 4432int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4433 4434/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4435 inside strings and character constants. */ 4436#define FOO(x) 'x' 4437int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4438 4439int test (int i, double x); 4440struct s1 {int (*f) (int a);}; 4441struct s2 {int (*f) (double a);}; 4442int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4443int argc; 4444char **argv; 4445int 4446main () 4447{ 4448return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4449 ; 4450 return 0; 4451} 4452_ACEOF 4453for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4455do 4456 CC="$ac_save_CC $ac_arg" 4457 rm -f conftest.$ac_objext 4458if { (ac_try="$ac_compile" 4459case "(($ac_try" in 4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4461 *) ac_try_echo=$ac_try;; 4462esac 4463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4464$as_echo "$ac_try_echo") >&5 4465 (eval "$ac_compile") 2>conftest.er1 4466 ac_status=$? 4467 grep -v '^ *+' conftest.er1 >conftest.err 4468 rm -f conftest.er1 4469 cat conftest.err >&5 4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); } && { 4472 test -z "$ac_c_werror_flag" || 4473 test ! -s conftest.err 4474 } && test -s conftest.$ac_objext; then 4475 ac_cv_prog_cc_c89=$ac_arg 4476else 4477 $as_echo "$as_me: failed program was:" >&5 4478sed 's/^/| /' conftest.$ac_ext >&5 4479 4480 4481fi 4482 4483rm -f core conftest.err conftest.$ac_objext 4484 test "x$ac_cv_prog_cc_c89" != "xno" && break 4485done 4486rm -f conftest.$ac_ext 4487CC=$ac_save_CC 4488 4489fi 4490# AC_CACHE_VAL 4491case "x$ac_cv_prog_cc_c89" in 4492 x) 4493 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4494$as_echo "none needed" >&6; } ;; 4495 xno) 4496 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4497$as_echo "unsupported" >&6; } ;; 4498 *) 4499 CC="$CC $ac_cv_prog_cc_c89" 4500 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4501$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4502esac 4503 4504 4505ac_ext=c 4506ac_cpp='$CPP $CPPFLAGS' 4507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4509ac_compiler_gnu=$ac_cv_c_compiler_gnu 4510 4511depcc="$CC" am_compiler_list= 4512 4513{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4514$as_echo_n "checking dependency style of $depcc... " >&6; } 4515if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4516 $as_echo_n "(cached) " >&6 4517else 4518 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4519 # We make a subdir and do the tests there. Otherwise we can end up 4520 # making bogus files that we don't know about and never remove. For 4521 # instance it was reported that on HP-UX the gcc test will end up 4522 # making a dummy file named `D' -- because `-MD' means `put the output 4523 # in D'. 4524 mkdir conftest.dir 4525 # Copy depcomp to subdir because otherwise we won't find it if we're 4526 # using a relative directory. 4527 cp "$am_depcomp" conftest.dir 4528 cd conftest.dir 4529 # We will build objects and dependencies in a subdirectory because 4530 # it helps to detect inapplicable dependency modes. For instance 4531 # both Tru64's cc and ICC support -MD to output dependencies as a 4532 # side effect of compilation, but ICC will put the dependencies in 4533 # the current directory while Tru64 will put them in the object 4534 # directory. 4535 mkdir sub 4536 4537 am_cv_CC_dependencies_compiler_type=none 4538 if test "$am_compiler_list" = ""; then 4539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4540 fi 4541 for depmode in $am_compiler_list; do 4542 # Setup a source with many dependencies, because some compilers 4543 # like to wrap large dependency lists on column 80 (with \), and 4544 # we should not choose a depcomp mode which is confused by this. 4545 # 4546 # We need to recreate these files for each test, as the compiler may 4547 # overwrite some of them when testing with obscure command lines. 4548 # This happens at least with the AIX C compiler. 4549 : > sub/conftest.c 4550 for i in 1 2 3 4 5 6; do 4551 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4552 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4553 # Solaris 8's {/usr,}/bin/sh. 4554 touch sub/conftst$i.h 4555 done 4556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4557 4558 case $depmode in 4559 nosideeffect) 4560 # after this tag, mechanisms are not by side-effect, so they'll 4561 # only be used when explicitly requested 4562 if test "x$enable_dependency_tracking" = xyes; then 4563 continue 4564 else 4565 break 4566 fi 4567 ;; 4568 none) break ;; 4569 esac 4570 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4571 # mode. It turns out that the SunPro C++ compiler does not properly 4572 # handle `-M -o', and we need to detect this. 4573 if depmode=$depmode \ 4574 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4576 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4577 >/dev/null 2>conftest.err && 4578 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4580 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4582 # icc doesn't choke on unknown options, it will just issue warnings 4583 # or remarks (even with -Werror). So we grep stderr for any message 4584 # that says an option was ignored or not supported. 4585 # When given -MP, icc 7.0 and 7.1 complain thusly: 4586 # icc: Command line warning: ignoring option '-M'; no argument required 4587 # The diagnosis changed in icc 8.0: 4588 # icc: Command line remark: option '-MP' not supported 4589 if (grep 'ignoring option' conftest.err || 4590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4591 am_cv_CC_dependencies_compiler_type=$depmode 4592 break 4593 fi 4594 fi 4595 done 4596 4597 cd .. 4598 rm -rf conftest.dir 4599else 4600 am_cv_CC_dependencies_compiler_type=none 4601fi 4602 4603fi 4604{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4605$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4606CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4607 4608 if 4609 test "x$enable_dependency_tracking" != xno \ 4610 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4611 am__fastdepCC_TRUE= 4612 am__fastdepCC_FALSE='#' 4613else 4614 am__fastdepCC_TRUE='#' 4615 am__fastdepCC_FALSE= 4616fi 4617 4618 4619{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4620$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4621if test "${ac_cv_path_SED+set}" = set; then 4622 $as_echo_n "(cached) " >&6 4623else 4624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4625 for ac_i in 1 2 3 4 5 6 7; do 4626 ac_script="$ac_script$as_nl$ac_script" 4627 done 4628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4629 $as_unset ac_script || ac_script= 4630 if test -z "$SED"; then 4631 ac_path_SED_found=false 4632 # Loop through the user's path and test for each of PROGNAME-LIST 4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4634for as_dir in $PATH 4635do 4636 IFS=$as_save_IFS 4637 test -z "$as_dir" && as_dir=. 4638 for ac_prog in sed gsed; do 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4641 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4642# Check for GNU ac_path_SED and select it if it is found. 4643 # Check for GNU $ac_path_SED 4644case `"$ac_path_SED" --version 2>&1` in 4645*GNU*) 4646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4647*) 4648 ac_count=0 4649 $as_echo_n 0123456789 >"conftest.in" 4650 while : 4651 do 4652 cat "conftest.in" "conftest.in" >"conftest.tmp" 4653 mv "conftest.tmp" "conftest.in" 4654 cp "conftest.in" "conftest.nl" 4655 $as_echo '' >> "conftest.nl" 4656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4658 ac_count=`expr $ac_count + 1` 4659 if test $ac_count -gt ${ac_path_SED_max-0}; then 4660 # Best one so far, save it but keep looking for a better one 4661 ac_cv_path_SED="$ac_path_SED" 4662 ac_path_SED_max=$ac_count 4663 fi 4664 # 10*(2^10) chars as input seems more than enough 4665 test $ac_count -gt 10 && break 4666 done 4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4668esac 4669 4670 $ac_path_SED_found && break 3 4671 done 4672 done 4673done 4674IFS=$as_save_IFS 4675 if test -z "$ac_cv_path_SED"; then 4676 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4677$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4678 { (exit 1); exit 1; }; } 4679 fi 4680else 4681 ac_cv_path_SED=$SED 4682fi 4683 4684fi 4685{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4686$as_echo "$ac_cv_path_SED" >&6; } 4687 SED="$ac_cv_path_SED" 4688 rm -f conftest.sed 4689 4690test -z "$SED" && SED=sed 4691Xsed="$SED -e 1s/^X//" 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4704$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4705if test "${ac_cv_path_GREP+set}" = set; then 4706 $as_echo_n "(cached) " >&6 4707else 4708 if test -z "$GREP"; then 4709 ac_path_GREP_found=false 4710 # Loop through the user's path and test for each of PROGNAME-LIST 4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4713do 4714 IFS=$as_save_IFS 4715 test -z "$as_dir" && as_dir=. 4716 for ac_prog in grep ggrep; do 4717 for ac_exec_ext in '' $ac_executable_extensions; do 4718 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4719 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4720# Check for GNU ac_path_GREP and select it if it is found. 4721 # Check for GNU $ac_path_GREP 4722case `"$ac_path_GREP" --version 2>&1` in 4723*GNU*) 4724 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4725*) 4726 ac_count=0 4727 $as_echo_n 0123456789 >"conftest.in" 4728 while : 4729 do 4730 cat "conftest.in" "conftest.in" >"conftest.tmp" 4731 mv "conftest.tmp" "conftest.in" 4732 cp "conftest.in" "conftest.nl" 4733 $as_echo 'GREP' >> "conftest.nl" 4734 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4736 ac_count=`expr $ac_count + 1` 4737 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4738 # Best one so far, save it but keep looking for a better one 4739 ac_cv_path_GREP="$ac_path_GREP" 4740 ac_path_GREP_max=$ac_count 4741 fi 4742 # 10*(2^10) chars as input seems more than enough 4743 test $ac_count -gt 10 && break 4744 done 4745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4746esac 4747 4748 $ac_path_GREP_found && break 3 4749 done 4750 done 4751done 4752IFS=$as_save_IFS 4753 if test -z "$ac_cv_path_GREP"; then 4754 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4755$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4756 { (exit 1); exit 1; }; } 4757 fi 4758else 4759 ac_cv_path_GREP=$GREP 4760fi 4761 4762fi 4763{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4764$as_echo "$ac_cv_path_GREP" >&6; } 4765 GREP="$ac_cv_path_GREP" 4766 4767 4768{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4769$as_echo_n "checking for egrep... " >&6; } 4770if test "${ac_cv_path_EGREP+set}" = set; then 4771 $as_echo_n "(cached) " >&6 4772else 4773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4774 then ac_cv_path_EGREP="$GREP -E" 4775 else 4776 if test -z "$EGREP"; then 4777 ac_path_EGREP_found=false 4778 # Loop through the user's path and test for each of PROGNAME-LIST 4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4781do 4782 IFS=$as_save_IFS 4783 test -z "$as_dir" && as_dir=. 4784 for ac_prog in egrep; do 4785 for ac_exec_ext in '' $ac_executable_extensions; do 4786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4787 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4788# Check for GNU ac_path_EGREP and select it if it is found. 4789 # Check for GNU $ac_path_EGREP 4790case `"$ac_path_EGREP" --version 2>&1` in 4791*GNU*) 4792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4793*) 4794 ac_count=0 4795 $as_echo_n 0123456789 >"conftest.in" 4796 while : 4797 do 4798 cat "conftest.in" "conftest.in" >"conftest.tmp" 4799 mv "conftest.tmp" "conftest.in" 4800 cp "conftest.in" "conftest.nl" 4801 $as_echo 'EGREP' >> "conftest.nl" 4802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4804 ac_count=`expr $ac_count + 1` 4805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4806 # Best one so far, save it but keep looking for a better one 4807 ac_cv_path_EGREP="$ac_path_EGREP" 4808 ac_path_EGREP_max=$ac_count 4809 fi 4810 # 10*(2^10) chars as input seems more than enough 4811 test $ac_count -gt 10 && break 4812 done 4813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4814esac 4815 4816 $ac_path_EGREP_found && break 3 4817 done 4818 done 4819done 4820IFS=$as_save_IFS 4821 if test -z "$ac_cv_path_EGREP"; then 4822 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4823$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4824 { (exit 1); exit 1; }; } 4825 fi 4826else 4827 ac_cv_path_EGREP=$EGREP 4828fi 4829 4830 fi 4831fi 4832{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4833$as_echo "$ac_cv_path_EGREP" >&6; } 4834 EGREP="$ac_cv_path_EGREP" 4835 4836 4837{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4838$as_echo_n "checking for fgrep... " >&6; } 4839if test "${ac_cv_path_FGREP+set}" = set; then 4840 $as_echo_n "(cached) " >&6 4841else 4842 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4843 then ac_cv_path_FGREP="$GREP -F" 4844 else 4845 if test -z "$FGREP"; then 4846 ac_path_FGREP_found=false 4847 # Loop through the user's path and test for each of PROGNAME-LIST 4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4849for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4850do 4851 IFS=$as_save_IFS 4852 test -z "$as_dir" && as_dir=. 4853 for ac_prog in fgrep; do 4854 for ac_exec_ext in '' $ac_executable_extensions; do 4855 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4856 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4857# Check for GNU ac_path_FGREP and select it if it is found. 4858 # Check for GNU $ac_path_FGREP 4859case `"$ac_path_FGREP" --version 2>&1` in 4860*GNU*) 4861 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4862*) 4863 ac_count=0 4864 $as_echo_n 0123456789 >"conftest.in" 4865 while : 4866 do 4867 cat "conftest.in" "conftest.in" >"conftest.tmp" 4868 mv "conftest.tmp" "conftest.in" 4869 cp "conftest.in" "conftest.nl" 4870 $as_echo 'FGREP' >> "conftest.nl" 4871 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4873 ac_count=`expr $ac_count + 1` 4874 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4875 # Best one so far, save it but keep looking for a better one 4876 ac_cv_path_FGREP="$ac_path_FGREP" 4877 ac_path_FGREP_max=$ac_count 4878 fi 4879 # 10*(2^10) chars as input seems more than enough 4880 test $ac_count -gt 10 && break 4881 done 4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4883esac 4884 4885 $ac_path_FGREP_found && break 3 4886 done 4887 done 4888done 4889IFS=$as_save_IFS 4890 if test -z "$ac_cv_path_FGREP"; then 4891 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4892$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4893 { (exit 1); exit 1; }; } 4894 fi 4895else 4896 ac_cv_path_FGREP=$FGREP 4897fi 4898 4899 fi 4900fi 4901{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4902$as_echo "$ac_cv_path_FGREP" >&6; } 4903 FGREP="$ac_cv_path_FGREP" 4904 4905 4906test -z "$GREP" && GREP=grep 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926# Check whether --with-gnu-ld was given. 4927if test "${with_gnu_ld+set}" = set; then 4928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4929else 4930 with_gnu_ld=no 4931fi 4932 4933ac_prog=ld 4934if test "$GCC" = yes; then 4935 # Check if gcc -print-prog-name=ld gives a path. 4936 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4937$as_echo_n "checking for ld used by $CC... " >&6; } 4938 case $host in 4939 *-*-mingw*) 4940 # gcc leaves a trailing carriage return which upsets mingw 4941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4942 *) 4943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4944 esac 4945 case $ac_prog in 4946 # Accept absolute paths. 4947 [\\/]* | ?:[\\/]*) 4948 re_direlt='/[^/][^/]*/\.\./' 4949 # Canonicalize the pathname of ld 4950 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4951 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4952 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4953 done 4954 test -z "$LD" && LD="$ac_prog" 4955 ;; 4956 "") 4957 # If it fails, then pretend we aren't using GCC. 4958 ac_prog=ld 4959 ;; 4960 *) 4961 # If it is relative, then search for the first ld in PATH. 4962 with_gnu_ld=unknown 4963 ;; 4964 esac 4965elif test "$with_gnu_ld" = yes; then 4966 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4967$as_echo_n "checking for GNU ld... " >&6; } 4968else 4969 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4970$as_echo_n "checking for non-GNU ld... " >&6; } 4971fi 4972if test "${lt_cv_path_LD+set}" = set; then 4973 $as_echo_n "(cached) " >&6 4974else 4975 if test -z "$LD"; then 4976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4977 for ac_dir in $PATH; do 4978 IFS="$lt_save_ifs" 4979 test -z "$ac_dir" && ac_dir=. 4980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4981 lt_cv_path_LD="$ac_dir/$ac_prog" 4982 # Check to see if the program is GNU ld. I'd rather use --version, 4983 # but apparently some variants of GNU ld only accept -v. 4984 # Break only if it was the GNU/non-GNU ld that we prefer. 4985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4986 *GNU* | *'with BFD'*) 4987 test "$with_gnu_ld" != no && break 4988 ;; 4989 *) 4990 test "$with_gnu_ld" != yes && break 4991 ;; 4992 esac 4993 fi 4994 done 4995 IFS="$lt_save_ifs" 4996else 4997 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4998fi 4999fi 5000 5001LD="$lt_cv_path_LD" 5002if test -n "$LD"; then 5003 { $as_echo "$as_me:$LINENO: result: $LD" >&5 5004$as_echo "$LD" >&6; } 5005else 5006 { $as_echo "$as_me:$LINENO: result: no" >&5 5007$as_echo "no" >&6; } 5008fi 5009test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5010$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5011 { (exit 1); exit 1; }; } 5012{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5013$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5014if test "${lt_cv_prog_gnu_ld+set}" = set; then 5015 $as_echo_n "(cached) " >&6 5016else 5017 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5018case `$LD -v 2>&1 </dev/null` in 5019*GNU* | *'with BFD'*) 5020 lt_cv_prog_gnu_ld=yes 5021 ;; 5022*) 5023 lt_cv_prog_gnu_ld=no 5024 ;; 5025esac 5026fi 5027{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5028$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5029with_gnu_ld=$lt_cv_prog_gnu_ld 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5040$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5041if test "${lt_cv_path_NM+set}" = set; then 5042 $as_echo_n "(cached) " >&6 5043else 5044 if test -n "$NM"; then 5045 # Let the user override the test. 5046 lt_cv_path_NM="$NM" 5047else 5048 lt_nm_to_check="${ac_tool_prefix}nm" 5049 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5050 lt_nm_to_check="$lt_nm_to_check nm" 5051 fi 5052 for lt_tmp_nm in $lt_nm_to_check; do 5053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5054 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5055 IFS="$lt_save_ifs" 5056 test -z "$ac_dir" && ac_dir=. 5057 tmp_nm="$ac_dir/$lt_tmp_nm" 5058 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5059 # Check to see if the nm accepts a BSD-compat flag. 5060 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5061 # nm: unknown option "B" ignored 5062 # Tru64's nm complains that /dev/null is an invalid object file 5063 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5064 */dev/null* | *'Invalid file or object type'*) 5065 lt_cv_path_NM="$tmp_nm -B" 5066 break 5067 ;; 5068 *) 5069 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5070 */dev/null*) 5071 lt_cv_path_NM="$tmp_nm -p" 5072 break 5073 ;; 5074 *) 5075 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5076 continue # so that we can try to find one that supports BSD flags 5077 ;; 5078 esac 5079 ;; 5080 esac 5081 fi 5082 done 5083 IFS="$lt_save_ifs" 5084 done 5085 : ${lt_cv_path_NM=no} 5086fi 5087fi 5088{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5089$as_echo "$lt_cv_path_NM" >&6; } 5090if test "$lt_cv_path_NM" != "no"; then 5091 NM="$lt_cv_path_NM" 5092else 5093 # Didn't find any BSD compatible name lister, look for dumpbin. 5094 if test -n "$ac_tool_prefix"; then 5095 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5096 do 5097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5098set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5100$as_echo_n "checking for $ac_word... " >&6; } 5101if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5102 $as_echo_n "(cached) " >&6 5103else 5104 if test -n "$DUMPBIN"; then 5105 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5106else 5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5108for as_dir in $PATH 5109do 5110 IFS=$as_save_IFS 5111 test -z "$as_dir" && as_dir=. 5112 for ac_exec_ext in '' $ac_executable_extensions; do 5113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5114 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5116 break 2 5117 fi 5118done 5119done 5120IFS=$as_save_IFS 5121 5122fi 5123fi 5124DUMPBIN=$ac_cv_prog_DUMPBIN 5125if test -n "$DUMPBIN"; then 5126 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5127$as_echo "$DUMPBIN" >&6; } 5128else 5129 { $as_echo "$as_me:$LINENO: result: no" >&5 5130$as_echo "no" >&6; } 5131fi 5132 5133 5134 test -n "$DUMPBIN" && break 5135 done 5136fi 5137if test -z "$DUMPBIN"; then 5138 ac_ct_DUMPBIN=$DUMPBIN 5139 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5140do 5141 # Extract the first word of "$ac_prog", so it can be a program name with args. 5142set dummy $ac_prog; ac_word=$2 5143{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5144$as_echo_n "checking for $ac_word... " >&6; } 5145if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5146 $as_echo_n "(cached) " >&6 5147else 5148 if test -n "$ac_ct_DUMPBIN"; then 5149 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5150else 5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5152for as_dir in $PATH 5153do 5154 IFS=$as_save_IFS 5155 test -z "$as_dir" && as_dir=. 5156 for ac_exec_ext in '' $ac_executable_extensions; do 5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5158 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5160 break 2 5161 fi 5162done 5163done 5164IFS=$as_save_IFS 5165 5166fi 5167fi 5168ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5169if test -n "$ac_ct_DUMPBIN"; then 5170 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5171$as_echo "$ac_ct_DUMPBIN" >&6; } 5172else 5173 { $as_echo "$as_me:$LINENO: result: no" >&5 5174$as_echo "no" >&6; } 5175fi 5176 5177 5178 test -n "$ac_ct_DUMPBIN" && break 5179done 5180 5181 if test "x$ac_ct_DUMPBIN" = x; then 5182 DUMPBIN=":" 5183 else 5184 case $cross_compiling:$ac_tool_warned in 5185yes:) 5186{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5188ac_tool_warned=yes ;; 5189esac 5190 DUMPBIN=$ac_ct_DUMPBIN 5191 fi 5192fi 5193 5194 5195 if test "$DUMPBIN" != ":"; then 5196 NM="$DUMPBIN" 5197 fi 5198fi 5199test -z "$NM" && NM=nm 5200 5201 5202 5203 5204 5205 5206{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5207$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5208if test "${lt_cv_nm_interface+set}" = set; then 5209 $as_echo_n "(cached) " >&6 5210else 5211 lt_cv_nm_interface="BSD nm" 5212 echo "int some_variable = 0;" > conftest.$ac_ext 5213 (eval echo "\"\$as_me:5213: $ac_compile\"" >&5) 5214 (eval "$ac_compile" 2>conftest.err) 5215 cat conftest.err >&5 5216 (eval echo "\"\$as_me:5216: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5217 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5218 cat conftest.err >&5 5219 (eval echo "\"\$as_me:5219: output\"" >&5) 5220 cat conftest.out >&5 5221 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5222 lt_cv_nm_interface="MS dumpbin" 5223 fi 5224 rm -f conftest* 5225fi 5226{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5227$as_echo "$lt_cv_nm_interface" >&6; } 5228 5229{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5230$as_echo_n "checking whether ln -s works... " >&6; } 5231LN_S=$as_ln_s 5232if test "$LN_S" = "ln -s"; then 5233 { $as_echo "$as_me:$LINENO: result: yes" >&5 5234$as_echo "yes" >&6; } 5235else 5236 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5237$as_echo "no, using $LN_S" >&6; } 5238fi 5239 5240# find the maximum length of command line arguments 5241{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5242$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5243if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5244 $as_echo_n "(cached) " >&6 5245else 5246 i=0 5247 teststring="ABCD" 5248 5249 case $build_os in 5250 msdosdjgpp*) 5251 # On DJGPP, this test can blow up pretty badly due to problems in libc 5252 # (any single argument exceeding 2000 bytes causes a buffer overrun 5253 # during glob expansion). Even if it were fixed, the result of this 5254 # check would be larger than it should be. 5255 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5256 ;; 5257 5258 gnu*) 5259 # Under GNU Hurd, this test is not required because there is 5260 # no limit to the length of command line arguments. 5261 # Libtool will interpret -1 as no limit whatsoever 5262 lt_cv_sys_max_cmd_len=-1; 5263 ;; 5264 5265 cygwin* | mingw* | cegcc*) 5266 # On Win9x/ME, this test blows up -- it succeeds, but takes 5267 # about 5 minutes as the teststring grows exponentially. 5268 # Worse, since 9x/ME are not pre-emptively multitasking, 5269 # you end up with a "frozen" computer, even though with patience 5270 # the test eventually succeeds (with a max line length of 256k). 5271 # Instead, let's just punt: use the minimum linelength reported by 5272 # all of the supported platforms: 8192 (on NT/2K/XP). 5273 lt_cv_sys_max_cmd_len=8192; 5274 ;; 5275 5276 amigaos*) 5277 # On AmigaOS with pdksh, this test takes hours, literally. 5278 # So we just punt and use a minimum line length of 8192. 5279 lt_cv_sys_max_cmd_len=8192; 5280 ;; 5281 5282 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5283 # This has been around since 386BSD, at least. Likely further. 5284 if test -x /sbin/sysctl; then 5285 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5286 elif test -x /usr/sbin/sysctl; then 5287 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5288 else 5289 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5290 fi 5291 # And add a safety zone 5292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5294 ;; 5295 5296 interix*) 5297 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5298 lt_cv_sys_max_cmd_len=196608 5299 ;; 5300 5301 osf*) 5302 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5303 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5304 # nice to cause kernel panics so lets avoid the loop below. 5305 # First set a reasonable default. 5306 lt_cv_sys_max_cmd_len=16384 5307 # 5308 if test -x /sbin/sysconfig; then 5309 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5310 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5311 esac 5312 fi 5313 ;; 5314 sco3.2v5*) 5315 lt_cv_sys_max_cmd_len=102400 5316 ;; 5317 sysv5* | sco5v6* | sysv4.2uw2*) 5318 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5319 if test -n "$kargmax"; then 5320 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5321 else 5322 lt_cv_sys_max_cmd_len=32768 5323 fi 5324 ;; 5325 *) 5326 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5327 if test -n "$lt_cv_sys_max_cmd_len"; then 5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5330 else 5331 # Make teststring a little bigger before we do anything with it. 5332 # a 1K string should be a reasonable start. 5333 for i in 1 2 3 4 5 6 7 8 ; do 5334 teststring=$teststring$teststring 5335 done 5336 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5337 # If test is not a shell built-in, we'll probably end up computing a 5338 # maximum length that is only half of the actual maximum length, but 5339 # we can't tell. 5340 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5341 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5342 test $i != 17 # 1/2 MB should be enough 5343 do 5344 i=`expr $i + 1` 5345 teststring=$teststring$teststring 5346 done 5347 # Only check the string length outside the loop. 5348 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5349 teststring= 5350 # Add a significant safety factor because C++ compilers can tack on 5351 # massive amounts of additional arguments before passing them to the 5352 # linker. It appears as though 1/2 is a usable value. 5353 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5354 fi 5355 ;; 5356 esac 5357 5358fi 5359 5360if test -n $lt_cv_sys_max_cmd_len ; then 5361 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5362$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5363else 5364 { $as_echo "$as_me:$LINENO: result: none" >&5 5365$as_echo "none" >&6; } 5366fi 5367max_cmd_len=$lt_cv_sys_max_cmd_len 5368 5369 5370 5371 5372 5373 5374: ${CP="cp -f"} 5375: ${MV="mv -f"} 5376: ${RM="rm -f"} 5377 5378{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5379$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5380# Try some XSI features 5381xsi_shell=no 5382( _lt_dummy="a/b/c" 5383 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5384 = c,a/b,, \ 5385 && eval 'test $(( 1 + 1 )) -eq 2 \ 5386 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5387 && xsi_shell=yes 5388{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5389$as_echo "$xsi_shell" >&6; } 5390 5391 5392{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5393$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5394lt_shell_append=no 5395( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5396 >/dev/null 2>&1 \ 5397 && lt_shell_append=yes 5398{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5399$as_echo "$lt_shell_append" >&6; } 5400 5401 5402if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5403 lt_unset=unset 5404else 5405 lt_unset=false 5406fi 5407 5408 5409 5410 5411 5412# test EBCDIC or ASCII 5413case `echo X|tr X '\101'` in 5414 A) # ASCII based system 5415 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5416 lt_SP2NL='tr \040 \012' 5417 lt_NL2SP='tr \015\012 \040\040' 5418 ;; 5419 *) # EBCDIC based system 5420 lt_SP2NL='tr \100 \n' 5421 lt_NL2SP='tr \r\n \100\100' 5422 ;; 5423esac 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5434$as_echo_n "checking for $LD option to reload object files... " >&6; } 5435if test "${lt_cv_ld_reload_flag+set}" = set; then 5436 $as_echo_n "(cached) " >&6 5437else 5438 lt_cv_ld_reload_flag='-r' 5439fi 5440{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5441$as_echo "$lt_cv_ld_reload_flag" >&6; } 5442reload_flag=$lt_cv_ld_reload_flag 5443case $reload_flag in 5444"" | " "*) ;; 5445*) reload_flag=" $reload_flag" ;; 5446esac 5447reload_cmds='$LD$reload_flag -o $output$reload_objs' 5448case $host_os in 5449 darwin*) 5450 if test "$GCC" = yes; then 5451 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5452 else 5453 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5454 fi 5455 ;; 5456esac 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466if test -n "$ac_tool_prefix"; then 5467 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5468set dummy ${ac_tool_prefix}objdump; ac_word=$2 5469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5470$as_echo_n "checking for $ac_word... " >&6; } 5471if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5472 $as_echo_n "(cached) " >&6 5473else 5474 if test -n "$OBJDUMP"; then 5475 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5476else 5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478for as_dir in $PATH 5479do 5480 IFS=$as_save_IFS 5481 test -z "$as_dir" && as_dir=. 5482 for ac_exec_ext in '' $ac_executable_extensions; do 5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5484 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5486 break 2 5487 fi 5488done 5489done 5490IFS=$as_save_IFS 5491 5492fi 5493fi 5494OBJDUMP=$ac_cv_prog_OBJDUMP 5495if test -n "$OBJDUMP"; then 5496 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5497$as_echo "$OBJDUMP" >&6; } 5498else 5499 { $as_echo "$as_me:$LINENO: result: no" >&5 5500$as_echo "no" >&6; } 5501fi 5502 5503 5504fi 5505if test -z "$ac_cv_prog_OBJDUMP"; then 5506 ac_ct_OBJDUMP=$OBJDUMP 5507 # Extract the first word of "objdump", so it can be a program name with args. 5508set dummy objdump; ac_word=$2 5509{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5510$as_echo_n "checking for $ac_word... " >&6; } 5511if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5512 $as_echo_n "(cached) " >&6 5513else 5514 if test -n "$ac_ct_OBJDUMP"; then 5515 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5516else 5517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5518for as_dir in $PATH 5519do 5520 IFS=$as_save_IFS 5521 test -z "$as_dir" && as_dir=. 5522 for ac_exec_ext in '' $ac_executable_extensions; do 5523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5524 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5526 break 2 5527 fi 5528done 5529done 5530IFS=$as_save_IFS 5531 5532fi 5533fi 5534ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5535if test -n "$ac_ct_OBJDUMP"; then 5536 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5537$as_echo "$ac_ct_OBJDUMP" >&6; } 5538else 5539 { $as_echo "$as_me:$LINENO: result: no" >&5 5540$as_echo "no" >&6; } 5541fi 5542 5543 if test "x$ac_ct_OBJDUMP" = x; then 5544 OBJDUMP="false" 5545 else 5546 case $cross_compiling:$ac_tool_warned in 5547yes:) 5548{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5550ac_tool_warned=yes ;; 5551esac 5552 OBJDUMP=$ac_ct_OBJDUMP 5553 fi 5554else 5555 OBJDUMP="$ac_cv_prog_OBJDUMP" 5556fi 5557 5558test -z "$OBJDUMP" && OBJDUMP=objdump 5559 5560 5561 5562 5563 5564 5565{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5566$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5567if test "${lt_cv_deplibs_check_method+set}" = set; then 5568 $as_echo_n "(cached) " >&6 5569else 5570 lt_cv_file_magic_cmd='$MAGIC_CMD' 5571lt_cv_file_magic_test_file= 5572lt_cv_deplibs_check_method='unknown' 5573# Need to set the preceding variable on all platforms that support 5574# interlibrary dependencies. 5575# 'none' -- dependencies not supported. 5576# `unknown' -- same as none, but documents that we really don't know. 5577# 'pass_all' -- all dependencies passed with no checks. 5578# 'test_compile' -- check by making test program. 5579# 'file_magic [[regex]]' -- check by looking for files in library path 5580# which responds to the $file_magic_cmd with a given extended regex. 5581# If you have `file' or equivalent on your system and you're not sure 5582# whether `pass_all' will *always* work, you probably want this one. 5583 5584case $host_os in 5585aix[4-9]*) 5586 lt_cv_deplibs_check_method=pass_all 5587 ;; 5588 5589beos*) 5590 lt_cv_deplibs_check_method=pass_all 5591 ;; 5592 5593bsdi[45]*) 5594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5595 lt_cv_file_magic_cmd='/usr/bin/file -L' 5596 lt_cv_file_magic_test_file=/shlib/libc.so 5597 ;; 5598 5599cygwin*) 5600 # func_win32_libid is a shell function defined in ltmain.sh 5601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5602 lt_cv_file_magic_cmd='func_win32_libid' 5603 ;; 5604 5605mingw* | pw32*) 5606 # Base MSYS/MinGW do not provide the 'file' command needed by 5607 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5608 # unless we find 'file', for example because we are cross-compiling. 5609 if ( file / ) >/dev/null 2>&1; then 5610 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5611 lt_cv_file_magic_cmd='func_win32_libid' 5612 else 5613 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5614 lt_cv_file_magic_cmd='$OBJDUMP -f' 5615 fi 5616 ;; 5617 5618cegcc) 5619 # use the weaker test based on 'objdump'. See mingw*. 5620 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5621 lt_cv_file_magic_cmd='$OBJDUMP -f' 5622 ;; 5623 5624darwin* | rhapsody*) 5625 lt_cv_deplibs_check_method=pass_all 5626 ;; 5627 5628freebsd* | dragonfly*) 5629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5630 case $host_cpu in 5631 i*86 ) 5632 # Not sure whether the presence of OpenBSD here was a mistake. 5633 # Let's accept both of them until this is cleared up. 5634 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5635 lt_cv_file_magic_cmd=/usr/bin/file 5636 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5637 ;; 5638 esac 5639 else 5640 lt_cv_deplibs_check_method=pass_all 5641 fi 5642 ;; 5643 5644gnu*) 5645 lt_cv_deplibs_check_method=pass_all 5646 ;; 5647 5648hpux10.20* | hpux11*) 5649 lt_cv_file_magic_cmd=/usr/bin/file 5650 case $host_cpu in 5651 ia64*) 5652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5653 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5654 ;; 5655 hppa*64*) 5656 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]' 5657 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5658 ;; 5659 *) 5660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5661 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5662 ;; 5663 esac 5664 ;; 5665 5666interix[3-9]*) 5667 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5669 ;; 5670 5671irix5* | irix6* | nonstopux*) 5672 case $LD in 5673 *-32|*"-32 ") libmagic=32-bit;; 5674 *-n32|*"-n32 ") libmagic=N32;; 5675 *-64|*"-64 ") libmagic=64-bit;; 5676 *) libmagic=never-match;; 5677 esac 5678 lt_cv_deplibs_check_method=pass_all 5679 ;; 5680 5681# This must be Linux ELF. 5682linux* | k*bsd*-gnu) 5683 lt_cv_deplibs_check_method=pass_all 5684 ;; 5685 5686netbsd*) 5687 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5689 else 5690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5691 fi 5692 ;; 5693 5694newos6*) 5695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5696 lt_cv_file_magic_cmd=/usr/bin/file 5697 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5698 ;; 5699 5700*nto* | *qnx*) 5701 lt_cv_deplibs_check_method=pass_all 5702 ;; 5703 5704openbsd*) 5705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5707 else 5708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5709 fi 5710 ;; 5711 5712osf3* | osf4* | osf5*) 5713 lt_cv_deplibs_check_method=pass_all 5714 ;; 5715 5716rdos*) 5717 lt_cv_deplibs_check_method=pass_all 5718 ;; 5719 5720solaris*) 5721 lt_cv_deplibs_check_method=pass_all 5722 ;; 5723 5724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5725 lt_cv_deplibs_check_method=pass_all 5726 ;; 5727 5728sysv4 | sysv4.3*) 5729 case $host_vendor in 5730 motorola) 5731 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]' 5732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5733 ;; 5734 ncr) 5735 lt_cv_deplibs_check_method=pass_all 5736 ;; 5737 sequent) 5738 lt_cv_file_magic_cmd='/bin/file' 5739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5740 ;; 5741 sni) 5742 lt_cv_file_magic_cmd='/bin/file' 5743 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5744 lt_cv_file_magic_test_file=/lib/libc.so 5745 ;; 5746 siemens) 5747 lt_cv_deplibs_check_method=pass_all 5748 ;; 5749 pc) 5750 lt_cv_deplibs_check_method=pass_all 5751 ;; 5752 esac 5753 ;; 5754 5755tpf*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758esac 5759 5760fi 5761{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5762$as_echo "$lt_cv_deplibs_check_method" >&6; } 5763file_magic_cmd=$lt_cv_file_magic_cmd 5764deplibs_check_method=$lt_cv_deplibs_check_method 5765test -z "$deplibs_check_method" && deplibs_check_method=unknown 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778if test -n "$ac_tool_prefix"; then 5779 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5780set dummy ${ac_tool_prefix}ar; ac_word=$2 5781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5782$as_echo_n "checking for $ac_word... " >&6; } 5783if test "${ac_cv_prog_AR+set}" = set; then 5784 $as_echo_n "(cached) " >&6 5785else 5786 if test -n "$AR"; then 5787 ac_cv_prog_AR="$AR" # Let the user override the test. 5788else 5789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5790for as_dir in $PATH 5791do 5792 IFS=$as_save_IFS 5793 test -z "$as_dir" && as_dir=. 5794 for ac_exec_ext in '' $ac_executable_extensions; do 5795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5796 ac_cv_prog_AR="${ac_tool_prefix}ar" 5797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5798 break 2 5799 fi 5800done 5801done 5802IFS=$as_save_IFS 5803 5804fi 5805fi 5806AR=$ac_cv_prog_AR 5807if test -n "$AR"; then 5808 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5809$as_echo "$AR" >&6; } 5810else 5811 { $as_echo "$as_me:$LINENO: result: no" >&5 5812$as_echo "no" >&6; } 5813fi 5814 5815 5816fi 5817if test -z "$ac_cv_prog_AR"; then 5818 ac_ct_AR=$AR 5819 # Extract the first word of "ar", so it can be a program name with args. 5820set dummy ar; ac_word=$2 5821{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5824 $as_echo_n "(cached) " >&6 5825else 5826 if test -n "$ac_ct_AR"; then 5827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5836 ac_cv_prog_ac_ct_AR="ar" 5837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846ac_ct_AR=$ac_cv_prog_ac_ct_AR 5847if test -n "$ac_ct_AR"; then 5848 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5849$as_echo "$ac_ct_AR" >&6; } 5850else 5851 { $as_echo "$as_me:$LINENO: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854 5855 if test "x$ac_ct_AR" = x; then 5856 AR="false" 5857 else 5858 case $cross_compiling:$ac_tool_warned in 5859yes:) 5860{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5862ac_tool_warned=yes ;; 5863esac 5864 AR=$ac_ct_AR 5865 fi 5866else 5867 AR="$ac_cv_prog_AR" 5868fi 5869 5870test -z "$AR" && AR=ar 5871test -z "$AR_FLAGS" && AR_FLAGS=cru 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883if test -n "$ac_tool_prefix"; then 5884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5885set dummy ${ac_tool_prefix}strip; ac_word=$2 5886{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5887$as_echo_n "checking for $ac_word... " >&6; } 5888if test "${ac_cv_prog_STRIP+set}" = set; then 5889 $as_echo_n "(cached) " >&6 5890else 5891 if test -n "$STRIP"; then 5892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5893else 5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5895for as_dir in $PATH 5896do 5897 IFS=$as_save_IFS 5898 test -z "$as_dir" && as_dir=. 5899 for ac_exec_ext in '' $ac_executable_extensions; do 5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5901 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5903 break 2 5904 fi 5905done 5906done 5907IFS=$as_save_IFS 5908 5909fi 5910fi 5911STRIP=$ac_cv_prog_STRIP 5912if test -n "$STRIP"; then 5913 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5914$as_echo "$STRIP" >&6; } 5915else 5916 { $as_echo "$as_me:$LINENO: result: no" >&5 5917$as_echo "no" >&6; } 5918fi 5919 5920 5921fi 5922if test -z "$ac_cv_prog_STRIP"; then 5923 ac_ct_STRIP=$STRIP 5924 # Extract the first word of "strip", so it can be a program name with args. 5925set dummy strip; ac_word=$2 5926{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5927$as_echo_n "checking for $ac_word... " >&6; } 5928if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5929 $as_echo_n "(cached) " >&6 5930else 5931 if test -n "$ac_ct_STRIP"; then 5932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5941 ac_cv_prog_ac_ct_STRIP="strip" 5942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5952if test -n "$ac_ct_STRIP"; then 5953 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5954$as_echo "$ac_ct_STRIP" >&6; } 5955else 5956 { $as_echo "$as_me:$LINENO: result: no" >&5 5957$as_echo "no" >&6; } 5958fi 5959 5960 if test "x$ac_ct_STRIP" = x; then 5961 STRIP=":" 5962 else 5963 case $cross_compiling:$ac_tool_warned in 5964yes:) 5965{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5967ac_tool_warned=yes ;; 5968esac 5969 STRIP=$ac_ct_STRIP 5970 fi 5971else 5972 STRIP="$ac_cv_prog_STRIP" 5973fi 5974 5975test -z "$STRIP" && STRIP=: 5976 5977 5978 5979 5980 5981 5982if test -n "$ac_tool_prefix"; then 5983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5984set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5986$as_echo_n "checking for $ac_word... " >&6; } 5987if test "${ac_cv_prog_RANLIB+set}" = set; then 5988 $as_echo_n "(cached) " >&6 5989else 5990 if test -n "$RANLIB"; then 5991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5992else 5993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5994for as_dir in $PATH 5995do 5996 IFS=$as_save_IFS 5997 test -z "$as_dir" && as_dir=. 5998 for ac_exec_ext in '' $ac_executable_extensions; do 5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6002 break 2 6003 fi 6004done 6005done 6006IFS=$as_save_IFS 6007 6008fi 6009fi 6010RANLIB=$ac_cv_prog_RANLIB 6011if test -n "$RANLIB"; then 6012 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6013$as_echo "$RANLIB" >&6; } 6014else 6015 { $as_echo "$as_me:$LINENO: result: no" >&5 6016$as_echo "no" >&6; } 6017fi 6018 6019 6020fi 6021if test -z "$ac_cv_prog_RANLIB"; then 6022 ac_ct_RANLIB=$RANLIB 6023 # Extract the first word of "ranlib", so it can be a program name with args. 6024set dummy ranlib; ac_word=$2 6025{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6026$as_echo_n "checking for $ac_word... " >&6; } 6027if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6028 $as_echo_n "(cached) " >&6 6029else 6030 if test -n "$ac_ct_RANLIB"; then 6031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6032else 6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034for as_dir in $PATH 6035do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6040 ac_cv_prog_ac_ct_RANLIB="ranlib" 6041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044done 6045done 6046IFS=$as_save_IFS 6047 6048fi 6049fi 6050ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6051if test -n "$ac_ct_RANLIB"; then 6052 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6053$as_echo "$ac_ct_RANLIB" >&6; } 6054else 6055 { $as_echo "$as_me:$LINENO: result: no" >&5 6056$as_echo "no" >&6; } 6057fi 6058 6059 if test "x$ac_ct_RANLIB" = x; then 6060 RANLIB=":" 6061 else 6062 case $cross_compiling:$ac_tool_warned in 6063yes:) 6064{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6066ac_tool_warned=yes ;; 6067esac 6068 RANLIB=$ac_ct_RANLIB 6069 fi 6070else 6071 RANLIB="$ac_cv_prog_RANLIB" 6072fi 6073 6074test -z "$RANLIB" && RANLIB=: 6075 6076 6077 6078 6079 6080 6081# Determine commands to create old-style static archives. 6082old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6083old_postinstall_cmds='chmod 644 $oldlib' 6084old_postuninstall_cmds= 6085 6086if test -n "$RANLIB"; then 6087 case $host_os in 6088 openbsd*) 6089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6090 ;; 6091 *) 6092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6093 ;; 6094 esac 6095 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6096fi 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131# If no C compiler was specified, use CC. 6132LTCC=${LTCC-"$CC"} 6133 6134# If no C compiler flags were specified, use CFLAGS. 6135LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6136 6137# Allow CC to be a program name with arguments. 6138compiler=$CC 6139 6140 6141# Check for command to grab the raw symbol name followed by C symbol from nm. 6142{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6143$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6144if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6145 $as_echo_n "(cached) " >&6 6146else 6147 6148# These are sane defaults that work on at least a few old systems. 6149# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6150 6151# Character class describing NM global symbol codes. 6152symcode='[BCDEGRST]' 6153 6154# Regexp to match symbols that can be accessed directly from C. 6155sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6156 6157# Define system-specific variables. 6158case $host_os in 6159aix*) 6160 symcode='[BCDT]' 6161 ;; 6162cygwin* | mingw* | pw32* | cegcc*) 6163 symcode='[ABCDGISTW]' 6164 ;; 6165hpux*) 6166 if test "$host_cpu" = ia64; then 6167 symcode='[ABCDEGRST]' 6168 fi 6169 ;; 6170irix* | nonstopux*) 6171 symcode='[BCDEGRST]' 6172 ;; 6173osf*) 6174 symcode='[BCDEGQRST]' 6175 ;; 6176solaris*) 6177 symcode='[BDRT]' 6178 ;; 6179sco3.2v5*) 6180 symcode='[DT]' 6181 ;; 6182sysv4.2uw2*) 6183 symcode='[DT]' 6184 ;; 6185sysv5* | sco5v6* | unixware* | OpenUNIX*) 6186 symcode='[ABDT]' 6187 ;; 6188sysv4) 6189 symcode='[DFNSTU]' 6190 ;; 6191esac 6192 6193# If we're using GNU nm, then use its standard symbol codes. 6194case `$NM -V 2>&1` in 6195*GNU* | *'with BFD'*) 6196 symcode='[ABCDGIRSTW]' ;; 6197esac 6198 6199# Transform an extracted symbol line into a proper C declaration. 6200# Some systems (esp. on ia64) link data and code symbols differently, 6201# so use this general approach. 6202lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6203 6204# Transform an extracted symbol line into symbol name and symbol address 6205lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6206lt_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'" 6207 6208# Handle CRLF in mingw tool chain 6209opt_cr= 6210case $build_os in 6211mingw*) 6212 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6213 ;; 6214esac 6215 6216# Try without a prefix underscore, then with it. 6217for ac_symprfx in "" "_"; do 6218 6219 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6220 symxfrm="\\1 $ac_symprfx\\2 \\2" 6221 6222 # Write the raw and C identifiers. 6223 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6224 # Fake it for dumpbin and say T for any non-static function 6225 # and D for any global variable. 6226 # Also find C++ and __fastcall symbols from MSVC++, 6227 # which start with @ or ?. 6228 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6229" {last_section=section; section=\$ 3};"\ 6230" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6231" \$ 0!~/External *\|/{next};"\ 6232" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6233" {if(hide[section]) next};"\ 6234" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6235" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6236" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6237" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6238" ' prfx=^$ac_symprfx" 6239 else 6240 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6241 fi 6242 6243 # Check to see that the pipe works correctly. 6244 pipe_works=no 6245 6246 rm -f conftest* 6247 cat > conftest.$ac_ext <<_LT_EOF 6248#ifdef __cplusplus 6249extern "C" { 6250#endif 6251char nm_test_var; 6252void nm_test_func(void); 6253void nm_test_func(void){} 6254#ifdef __cplusplus 6255} 6256#endif 6257int main(){nm_test_var='a';nm_test_func();return(0);} 6258_LT_EOF 6259 6260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6261 (eval $ac_compile) 2>&5 6262 ac_status=$? 6263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6264 (exit $ac_status); }; then 6265 # Now try to grab the symbols. 6266 nlist=conftest.nm 6267 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6268 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6269 ac_status=$? 6270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6271 (exit $ac_status); } && test -s "$nlist"; then 6272 # Try sorting and uniquifying the output. 6273 if sort "$nlist" | uniq > "$nlist"T; then 6274 mv -f "$nlist"T "$nlist" 6275 else 6276 rm -f "$nlist"T 6277 fi 6278 6279 # Make sure that we snagged all the symbols we need. 6280 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6281 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6282 cat <<_LT_EOF > conftest.$ac_ext 6283#ifdef __cplusplus 6284extern "C" { 6285#endif 6286 6287_LT_EOF 6288 # Now generate the symbol file. 6289 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6290 6291 cat <<_LT_EOF >> conftest.$ac_ext 6292 6293/* The mapping between symbol names and symbols. */ 6294const struct { 6295 const char *name; 6296 void *address; 6297} 6298lt__PROGRAM__LTX_preloaded_symbols[] = 6299{ 6300 { "@PROGRAM@", (void *) 0 }, 6301_LT_EOF 6302 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6303 cat <<\_LT_EOF >> conftest.$ac_ext 6304 {0, (void *) 0} 6305}; 6306 6307/* This works around a problem in FreeBSD linker */ 6308#ifdef FREEBSD_WORKAROUND 6309static const void *lt_preloaded_setup() { 6310 return lt__PROGRAM__LTX_preloaded_symbols; 6311} 6312#endif 6313 6314#ifdef __cplusplus 6315} 6316#endif 6317_LT_EOF 6318 # Now try linking the two files. 6319 mv conftest.$ac_objext conftstm.$ac_objext 6320 lt_save_LIBS="$LIBS" 6321 lt_save_CFLAGS="$CFLAGS" 6322 LIBS="conftstm.$ac_objext" 6323 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6325 (eval $ac_link) 2>&5 6326 ac_status=$? 6327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6328 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6329 pipe_works=yes 6330 fi 6331 LIBS="$lt_save_LIBS" 6332 CFLAGS="$lt_save_CFLAGS" 6333 else 6334 echo "cannot find nm_test_func in $nlist" >&5 6335 fi 6336 else 6337 echo "cannot find nm_test_var in $nlist" >&5 6338 fi 6339 else 6340 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6341 fi 6342 else 6343 echo "$progname: failed program was:" >&5 6344 cat conftest.$ac_ext >&5 6345 fi 6346 rm -rf conftest* conftst* 6347 6348 # Do not use the global_symbol_pipe unless it works. 6349 if test "$pipe_works" = yes; then 6350 break 6351 else 6352 lt_cv_sys_global_symbol_pipe= 6353 fi 6354done 6355 6356fi 6357 6358if test -z "$lt_cv_sys_global_symbol_pipe"; then 6359 lt_cv_sys_global_symbol_to_cdecl= 6360fi 6361if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6362 { $as_echo "$as_me:$LINENO: result: failed" >&5 6363$as_echo "failed" >&6; } 6364else 6365 { $as_echo "$as_me:$LINENO: result: ok" >&5 6366$as_echo "ok" >&6; } 6367fi 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391# Check whether --enable-libtool-lock was given. 6392if test "${enable_libtool_lock+set}" = set; then 6393 enableval=$enable_libtool_lock; 6394fi 6395 6396test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6397 6398# Some flags need to be propagated to the compiler or linker for good 6399# libtool support. 6400case $host in 6401ia64-*-hpux*) 6402 # Find out which ABI we are using. 6403 echo 'int i;' > conftest.$ac_ext 6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6405 (eval $ac_compile) 2>&5 6406 ac_status=$? 6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); }; then 6409 case `/usr/bin/file conftest.$ac_objext` in 6410 *ELF-32*) 6411 HPUX_IA64_MODE="32" 6412 ;; 6413 *ELF-64*) 6414 HPUX_IA64_MODE="64" 6415 ;; 6416 esac 6417 fi 6418 rm -rf conftest* 6419 ;; 6420*-*-irix6*) 6421 # Find out which ABI we are using. 6422 echo '#line 6422 "configure"' > conftest.$ac_ext 6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6424 (eval $ac_compile) 2>&5 6425 ac_status=$? 6426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6427 (exit $ac_status); }; then 6428 if test "$lt_cv_prog_gnu_ld" = yes; then 6429 case `/usr/bin/file conftest.$ac_objext` in 6430 *32-bit*) 6431 LD="${LD-ld} -melf32bsmip" 6432 ;; 6433 *N32*) 6434 LD="${LD-ld} -melf32bmipn32" 6435 ;; 6436 *64-bit*) 6437 LD="${LD-ld} -melf64bmip" 6438 ;; 6439 esac 6440 else 6441 case `/usr/bin/file conftest.$ac_objext` in 6442 *32-bit*) 6443 LD="${LD-ld} -32" 6444 ;; 6445 *N32*) 6446 LD="${LD-ld} -n32" 6447 ;; 6448 *64-bit*) 6449 LD="${LD-ld} -64" 6450 ;; 6451 esac 6452 fi 6453 fi 6454 rm -rf conftest* 6455 ;; 6456 6457x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6458s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6459 # Find out which ABI we are using. 6460 echo 'int i;' > conftest.$ac_ext 6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6462 (eval $ac_compile) 2>&5 6463 ac_status=$? 6464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6465 (exit $ac_status); }; then 6466 case `/usr/bin/file conftest.o` in 6467 *32-bit*) 6468 case $host in 6469 x86_64-*kfreebsd*-gnu) 6470 LD="${LD-ld} -m elf_i386_fbsd" 6471 ;; 6472 x86_64-*linux*) 6473 LD="${LD-ld} -m elf_i386" 6474 ;; 6475 ppc64-*linux*|powerpc64-*linux*) 6476 LD="${LD-ld} -m elf32ppclinux" 6477 ;; 6478 s390x-*linux*) 6479 LD="${LD-ld} -m elf_s390" 6480 ;; 6481 sparc64-*linux*) 6482 LD="${LD-ld} -m elf32_sparc" 6483 ;; 6484 esac 6485 ;; 6486 *64-bit*) 6487 case $host in 6488 x86_64-*kfreebsd*-gnu) 6489 LD="${LD-ld} -m elf_x86_64_fbsd" 6490 ;; 6491 x86_64-*linux*) 6492 LD="${LD-ld} -m elf_x86_64" 6493 ;; 6494 ppc*-*linux*|powerpc*-*linux*) 6495 LD="${LD-ld} -m elf64ppc" 6496 ;; 6497 s390*-*linux*|s390*-*tpf*) 6498 LD="${LD-ld} -m elf64_s390" 6499 ;; 6500 sparc*-*linux*) 6501 LD="${LD-ld} -m elf64_sparc" 6502 ;; 6503 esac 6504 ;; 6505 esac 6506 fi 6507 rm -rf conftest* 6508 ;; 6509 6510*-*-sco3.2v5*) 6511 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6512 SAVE_CFLAGS="$CFLAGS" 6513 CFLAGS="$CFLAGS -belf" 6514 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6515$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6516if test "${lt_cv_cc_needs_belf+set}" = set; then 6517 $as_echo_n "(cached) " >&6 6518else 6519 ac_ext=c 6520ac_cpp='$CPP $CPPFLAGS' 6521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6523ac_compiler_gnu=$ac_cv_c_compiler_gnu 6524 6525 cat >conftest.$ac_ext <<_ACEOF 6526/* confdefs.h. */ 6527_ACEOF 6528cat confdefs.h >>conftest.$ac_ext 6529cat >>conftest.$ac_ext <<_ACEOF 6530/* end confdefs.h. */ 6531 6532int 6533main () 6534{ 6535 6536 ; 6537 return 0; 6538} 6539_ACEOF 6540rm -f conftest.$ac_objext conftest$ac_exeext 6541if { (ac_try="$ac_link" 6542case "(($ac_try" in 6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6544 *) ac_try_echo=$ac_try;; 6545esac 6546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6547$as_echo "$ac_try_echo") >&5 6548 (eval "$ac_link") 2>conftest.er1 6549 ac_status=$? 6550 grep -v '^ *+' conftest.er1 >conftest.err 6551 rm -f conftest.er1 6552 cat conftest.err >&5 6553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6554 (exit $ac_status); } && { 6555 test -z "$ac_c_werror_flag" || 6556 test ! -s conftest.err 6557 } && test -s conftest$ac_exeext && { 6558 test "$cross_compiling" = yes || 6559 $as_test_x conftest$ac_exeext 6560 }; then 6561 lt_cv_cc_needs_belf=yes 6562else 6563 $as_echo "$as_me: failed program was:" >&5 6564sed 's/^/| /' conftest.$ac_ext >&5 6565 6566 lt_cv_cc_needs_belf=no 6567fi 6568 6569rm -rf conftest.dSYM 6570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6571 conftest$ac_exeext conftest.$ac_ext 6572 ac_ext=c 6573ac_cpp='$CPP $CPPFLAGS' 6574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6576ac_compiler_gnu=$ac_cv_c_compiler_gnu 6577 6578fi 6579{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6580$as_echo "$lt_cv_cc_needs_belf" >&6; } 6581 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6583 CFLAGS="$SAVE_CFLAGS" 6584 fi 6585 ;; 6586sparc*-*solaris*) 6587 # Find out which ABI we are using. 6588 echo 'int i;' > conftest.$ac_ext 6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6590 (eval $ac_compile) 2>&5 6591 ac_status=$? 6592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); }; then 6594 case `/usr/bin/file conftest.o` in 6595 *64-bit*) 6596 case $lt_cv_prog_gnu_ld in 6597 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6598 *) 6599 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6600 LD="${LD-ld} -64" 6601 fi 6602 ;; 6603 esac 6604 ;; 6605 esac 6606 fi 6607 rm -rf conftest* 6608 ;; 6609esac 6610 6611need_locks="$enable_libtool_lock" 6612 6613 6614 case $host_os in 6615 rhapsody* | darwin*) 6616 if test -n "$ac_tool_prefix"; then 6617 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6618set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6620$as_echo_n "checking for $ac_word... " >&6; } 6621if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6622 $as_echo_n "(cached) " >&6 6623else 6624 if test -n "$DSYMUTIL"; then 6625 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6626else 6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6628for as_dir in $PATH 6629do 6630 IFS=$as_save_IFS 6631 test -z "$as_dir" && as_dir=. 6632 for ac_exec_ext in '' $ac_executable_extensions; do 6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6634 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6636 break 2 6637 fi 6638done 6639done 6640IFS=$as_save_IFS 6641 6642fi 6643fi 6644DSYMUTIL=$ac_cv_prog_DSYMUTIL 6645if test -n "$DSYMUTIL"; then 6646 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6647$as_echo "$DSYMUTIL" >&6; } 6648else 6649 { $as_echo "$as_me:$LINENO: result: no" >&5 6650$as_echo "no" >&6; } 6651fi 6652 6653 6654fi 6655if test -z "$ac_cv_prog_DSYMUTIL"; then 6656 ac_ct_DSYMUTIL=$DSYMUTIL 6657 # Extract the first word of "dsymutil", so it can be a program name with args. 6658set dummy dsymutil; ac_word=$2 6659{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6660$as_echo_n "checking for $ac_word... " >&6; } 6661if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6662 $as_echo_n "(cached) " >&6 6663else 6664 if test -n "$ac_ct_DSYMUTIL"; then 6665 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6666else 6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6668for as_dir in $PATH 6669do 6670 IFS=$as_save_IFS 6671 test -z "$as_dir" && as_dir=. 6672 for ac_exec_ext in '' $ac_executable_extensions; do 6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6674 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6676 break 2 6677 fi 6678done 6679done 6680IFS=$as_save_IFS 6681 6682fi 6683fi 6684ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6685if test -n "$ac_ct_DSYMUTIL"; then 6686 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6687$as_echo "$ac_ct_DSYMUTIL" >&6; } 6688else 6689 { $as_echo "$as_me:$LINENO: result: no" >&5 6690$as_echo "no" >&6; } 6691fi 6692 6693 if test "x$ac_ct_DSYMUTIL" = x; then 6694 DSYMUTIL=":" 6695 else 6696 case $cross_compiling:$ac_tool_warned in 6697yes:) 6698{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6700ac_tool_warned=yes ;; 6701esac 6702 DSYMUTIL=$ac_ct_DSYMUTIL 6703 fi 6704else 6705 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6706fi 6707 6708 if test -n "$ac_tool_prefix"; then 6709 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6710set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6711{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6712$as_echo_n "checking for $ac_word... " >&6; } 6713if test "${ac_cv_prog_NMEDIT+set}" = set; then 6714 $as_echo_n "(cached) " >&6 6715else 6716 if test -n "$NMEDIT"; then 6717 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6718else 6719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6720for as_dir in $PATH 6721do 6722 IFS=$as_save_IFS 6723 test -z "$as_dir" && as_dir=. 6724 for ac_exec_ext in '' $ac_executable_extensions; do 6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6726 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6728 break 2 6729 fi 6730done 6731done 6732IFS=$as_save_IFS 6733 6734fi 6735fi 6736NMEDIT=$ac_cv_prog_NMEDIT 6737if test -n "$NMEDIT"; then 6738 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6739$as_echo "$NMEDIT" >&6; } 6740else 6741 { $as_echo "$as_me:$LINENO: result: no" >&5 6742$as_echo "no" >&6; } 6743fi 6744 6745 6746fi 6747if test -z "$ac_cv_prog_NMEDIT"; then 6748 ac_ct_NMEDIT=$NMEDIT 6749 # Extract the first word of "nmedit", so it can be a program name with args. 6750set dummy nmedit; ac_word=$2 6751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6752$as_echo_n "checking for $ac_word... " >&6; } 6753if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6754 $as_echo_n "(cached) " >&6 6755else 6756 if test -n "$ac_ct_NMEDIT"; then 6757 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6758else 6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6760for as_dir in $PATH 6761do 6762 IFS=$as_save_IFS 6763 test -z "$as_dir" && as_dir=. 6764 for ac_exec_ext in '' $ac_executable_extensions; do 6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6766 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6768 break 2 6769 fi 6770done 6771done 6772IFS=$as_save_IFS 6773 6774fi 6775fi 6776ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6777if test -n "$ac_ct_NMEDIT"; then 6778 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6779$as_echo "$ac_ct_NMEDIT" >&6; } 6780else 6781 { $as_echo "$as_me:$LINENO: result: no" >&5 6782$as_echo "no" >&6; } 6783fi 6784 6785 if test "x$ac_ct_NMEDIT" = x; then 6786 NMEDIT=":" 6787 else 6788 case $cross_compiling:$ac_tool_warned in 6789yes:) 6790{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6792ac_tool_warned=yes ;; 6793esac 6794 NMEDIT=$ac_ct_NMEDIT 6795 fi 6796else 6797 NMEDIT="$ac_cv_prog_NMEDIT" 6798fi 6799 6800 if test -n "$ac_tool_prefix"; then 6801 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6802set dummy ${ac_tool_prefix}lipo; ac_word=$2 6803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6804$as_echo_n "checking for $ac_word... " >&6; } 6805if test "${ac_cv_prog_LIPO+set}" = set; then 6806 $as_echo_n "(cached) " >&6 6807else 6808 if test -n "$LIPO"; then 6809 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6810else 6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812for as_dir in $PATH 6813do 6814 IFS=$as_save_IFS 6815 test -z "$as_dir" && as_dir=. 6816 for ac_exec_ext in '' $ac_executable_extensions; do 6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6818 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6820 break 2 6821 fi 6822done 6823done 6824IFS=$as_save_IFS 6825 6826fi 6827fi 6828LIPO=$ac_cv_prog_LIPO 6829if test -n "$LIPO"; then 6830 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6831$as_echo "$LIPO" >&6; } 6832else 6833 { $as_echo "$as_me:$LINENO: result: no" >&5 6834$as_echo "no" >&6; } 6835fi 6836 6837 6838fi 6839if test -z "$ac_cv_prog_LIPO"; then 6840 ac_ct_LIPO=$LIPO 6841 # Extract the first word of "lipo", so it can be a program name with args. 6842set dummy lipo; ac_word=$2 6843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6844$as_echo_n "checking for $ac_word... " >&6; } 6845if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6846 $as_echo_n "(cached) " >&6 6847else 6848 if test -n "$ac_ct_LIPO"; then 6849 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6850else 6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6852for as_dir in $PATH 6853do 6854 IFS=$as_save_IFS 6855 test -z "$as_dir" && as_dir=. 6856 for ac_exec_ext in '' $ac_executable_extensions; do 6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6858 ac_cv_prog_ac_ct_LIPO="lipo" 6859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6860 break 2 6861 fi 6862done 6863done 6864IFS=$as_save_IFS 6865 6866fi 6867fi 6868ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6869if test -n "$ac_ct_LIPO"; then 6870 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6871$as_echo "$ac_ct_LIPO" >&6; } 6872else 6873 { $as_echo "$as_me:$LINENO: result: no" >&5 6874$as_echo "no" >&6; } 6875fi 6876 6877 if test "x$ac_ct_LIPO" = x; then 6878 LIPO=":" 6879 else 6880 case $cross_compiling:$ac_tool_warned in 6881yes:) 6882{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6884ac_tool_warned=yes ;; 6885esac 6886 LIPO=$ac_ct_LIPO 6887 fi 6888else 6889 LIPO="$ac_cv_prog_LIPO" 6890fi 6891 6892 if test -n "$ac_tool_prefix"; then 6893 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6894set dummy ${ac_tool_prefix}otool; ac_word=$2 6895{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6896$as_echo_n "checking for $ac_word... " >&6; } 6897if test "${ac_cv_prog_OTOOL+set}" = set; then 6898 $as_echo_n "(cached) " >&6 6899else 6900 if test -n "$OTOOL"; then 6901 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6902else 6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904for as_dir in $PATH 6905do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_exec_ext in '' $ac_executable_extensions; do 6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6910 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6912 break 2 6913 fi 6914done 6915done 6916IFS=$as_save_IFS 6917 6918fi 6919fi 6920OTOOL=$ac_cv_prog_OTOOL 6921if test -n "$OTOOL"; then 6922 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6923$as_echo "$OTOOL" >&6; } 6924else 6925 { $as_echo "$as_me:$LINENO: result: no" >&5 6926$as_echo "no" >&6; } 6927fi 6928 6929 6930fi 6931if test -z "$ac_cv_prog_OTOOL"; then 6932 ac_ct_OTOOL=$OTOOL 6933 # Extract the first word of "otool", so it can be a program name with args. 6934set dummy otool; ac_word=$2 6935{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6936$as_echo_n "checking for $ac_word... " >&6; } 6937if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6938 $as_echo_n "(cached) " >&6 6939else 6940 if test -n "$ac_ct_OTOOL"; then 6941 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6942else 6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6944for as_dir in $PATH 6945do 6946 IFS=$as_save_IFS 6947 test -z "$as_dir" && as_dir=. 6948 for ac_exec_ext in '' $ac_executable_extensions; do 6949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6950 ac_cv_prog_ac_ct_OTOOL="otool" 6951 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6952 break 2 6953 fi 6954done 6955done 6956IFS=$as_save_IFS 6957 6958fi 6959fi 6960ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6961if test -n "$ac_ct_OTOOL"; then 6962 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6963$as_echo "$ac_ct_OTOOL" >&6; } 6964else 6965 { $as_echo "$as_me:$LINENO: result: no" >&5 6966$as_echo "no" >&6; } 6967fi 6968 6969 if test "x$ac_ct_OTOOL" = x; then 6970 OTOOL=":" 6971 else 6972 case $cross_compiling:$ac_tool_warned in 6973yes:) 6974{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6976ac_tool_warned=yes ;; 6977esac 6978 OTOOL=$ac_ct_OTOOL 6979 fi 6980else 6981 OTOOL="$ac_cv_prog_OTOOL" 6982fi 6983 6984 if test -n "$ac_tool_prefix"; then 6985 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6986set dummy ${ac_tool_prefix}otool64; ac_word=$2 6987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6988$as_echo_n "checking for $ac_word... " >&6; } 6989if test "${ac_cv_prog_OTOOL64+set}" = set; then 6990 $as_echo_n "(cached) " >&6 6991else 6992 if test -n "$OTOOL64"; then 6993 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6994else 6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6996for as_dir in $PATH 6997do 6998 IFS=$as_save_IFS 6999 test -z "$as_dir" && as_dir=. 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7002 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7004 break 2 7005 fi 7006done 7007done 7008IFS=$as_save_IFS 7009 7010fi 7011fi 7012OTOOL64=$ac_cv_prog_OTOOL64 7013if test -n "$OTOOL64"; then 7014 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 7015$as_echo "$OTOOL64" >&6; } 7016else 7017 { $as_echo "$as_me:$LINENO: result: no" >&5 7018$as_echo "no" >&6; } 7019fi 7020 7021 7022fi 7023if test -z "$ac_cv_prog_OTOOL64"; then 7024 ac_ct_OTOOL64=$OTOOL64 7025 # Extract the first word of "otool64", so it can be a program name with args. 7026set dummy otool64; ac_word=$2 7027{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7028$as_echo_n "checking for $ac_word... " >&6; } 7029if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7030 $as_echo_n "(cached) " >&6 7031else 7032 if test -n "$ac_ct_OTOOL64"; then 7033 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7034else 7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7036for as_dir in $PATH 7037do 7038 IFS=$as_save_IFS 7039 test -z "$as_dir" && as_dir=. 7040 for ac_exec_ext in '' $ac_executable_extensions; do 7041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7042 ac_cv_prog_ac_ct_OTOOL64="otool64" 7043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7044 break 2 7045 fi 7046done 7047done 7048IFS=$as_save_IFS 7049 7050fi 7051fi 7052ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7053if test -n "$ac_ct_OTOOL64"; then 7054 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7055$as_echo "$ac_ct_OTOOL64" >&6; } 7056else 7057 { $as_echo "$as_me:$LINENO: result: no" >&5 7058$as_echo "no" >&6; } 7059fi 7060 7061 if test "x$ac_ct_OTOOL64" = x; then 7062 OTOOL64=":" 7063 else 7064 case $cross_compiling:$ac_tool_warned in 7065yes:) 7066{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7068ac_tool_warned=yes ;; 7069esac 7070 OTOOL64=$ac_ct_OTOOL64 7071 fi 7072else 7073 OTOOL64="$ac_cv_prog_OTOOL64" 7074fi 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7103$as_echo_n "checking for -single_module linker flag... " >&6; } 7104if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7105 $as_echo_n "(cached) " >&6 7106else 7107 lt_cv_apple_cc_single_mod=no 7108 if test -z "${LT_MULTI_MODULE}"; then 7109 # By default we will add the -single_module flag. You can override 7110 # by either setting the environment variable LT_MULTI_MODULE 7111 # non-empty at configure time, or by adding -multi_module to the 7112 # link flags. 7113 rm -rf libconftest.dylib* 7114 echo "int foo(void){return 1;}" > conftest.c 7115 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7116-dynamiclib -Wl,-single_module conftest.c" >&5 7117 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7118 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7119 _lt_result=$? 7120 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7121 lt_cv_apple_cc_single_mod=yes 7122 else 7123 cat conftest.err >&5 7124 fi 7125 rm -rf libconftest.dylib* 7126 rm -f conftest.* 7127 fi 7128fi 7129{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7130$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7131 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7132$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7133if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7134 $as_echo_n "(cached) " >&6 7135else 7136 lt_cv_ld_exported_symbols_list=no 7137 save_LDFLAGS=$LDFLAGS 7138 echo "_main" > conftest.sym 7139 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7140 cat >conftest.$ac_ext <<_ACEOF 7141/* confdefs.h. */ 7142_ACEOF 7143cat confdefs.h >>conftest.$ac_ext 7144cat >>conftest.$ac_ext <<_ACEOF 7145/* end confdefs.h. */ 7146 7147int 7148main () 7149{ 7150 7151 ; 7152 return 0; 7153} 7154_ACEOF 7155rm -f conftest.$ac_objext conftest$ac_exeext 7156if { (ac_try="$ac_link" 7157case "(($ac_try" in 7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7159 *) ac_try_echo=$ac_try;; 7160esac 7161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7162$as_echo "$ac_try_echo") >&5 7163 (eval "$ac_link") 2>conftest.er1 7164 ac_status=$? 7165 grep -v '^ *+' conftest.er1 >conftest.err 7166 rm -f conftest.er1 7167 cat conftest.err >&5 7168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7169 (exit $ac_status); } && { 7170 test -z "$ac_c_werror_flag" || 7171 test ! -s conftest.err 7172 } && test -s conftest$ac_exeext && { 7173 test "$cross_compiling" = yes || 7174 $as_test_x conftest$ac_exeext 7175 }; then 7176 lt_cv_ld_exported_symbols_list=yes 7177else 7178 $as_echo "$as_me: failed program was:" >&5 7179sed 's/^/| /' conftest.$ac_ext >&5 7180 7181 lt_cv_ld_exported_symbols_list=no 7182fi 7183 7184rm -rf conftest.dSYM 7185rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7186 conftest$ac_exeext conftest.$ac_ext 7187 LDFLAGS="$save_LDFLAGS" 7188 7189fi 7190{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7191$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7192 case $host_os in 7193 rhapsody* | darwin1.[012]) 7194 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7195 darwin1.*) 7196 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7197 darwin*) # darwin 5.x on 7198 # if running on 10.5 or later, the deployment target defaults 7199 # to the OS version, if on x86, and 10.4, the deployment 7200 # target defaults to 10.4. Don't you love it? 7201 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7202 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7203 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7204 10.[012]*) 7205 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7206 10.*) 7207 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7208 esac 7209 ;; 7210 esac 7211 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7212 _lt_dar_single_mod='$single_module' 7213 fi 7214 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7215 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7216 else 7217 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7218 fi 7219 if test "$DSYMUTIL" != ":"; then 7220 _lt_dsymutil='~$DSYMUTIL $lib || :' 7221 else 7222 _lt_dsymutil= 7223 fi 7224 ;; 7225 esac 7226 7227ac_ext=c 7228ac_cpp='$CPP $CPPFLAGS' 7229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7231ac_compiler_gnu=$ac_cv_c_compiler_gnu 7232{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 7233$as_echo_n "checking how to run the C preprocessor... " >&6; } 7234# On Suns, sometimes $CPP names a directory. 7235if test -n "$CPP" && test -d "$CPP"; then 7236 CPP= 7237fi 7238if test -z "$CPP"; then 7239 if test "${ac_cv_prog_CPP+set}" = set; then 7240 $as_echo_n "(cached) " >&6 7241else 7242 # Double quotes because CPP needs to be expanded 7243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7244 do 7245 ac_preproc_ok=false 7246for ac_c_preproc_warn_flag in '' yes 7247do 7248 # Use a header file that comes with gcc, so configuring glibc 7249 # with a fresh cross-compiler works. 7250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7251 # <limits.h> exists even on freestanding compilers. 7252 # On the NeXT, cc -E runs the code through the compiler's parser, 7253 # not just through cpp. "Syntax error" is here to catch this case. 7254 cat >conftest.$ac_ext <<_ACEOF 7255/* confdefs.h. */ 7256_ACEOF 7257cat confdefs.h >>conftest.$ac_ext 7258cat >>conftest.$ac_ext <<_ACEOF 7259/* end confdefs.h. */ 7260#ifdef __STDC__ 7261# include <limits.h> 7262#else 7263# include <assert.h> 7264#endif 7265 Syntax error 7266_ACEOF 7267if { (ac_try="$ac_cpp conftest.$ac_ext" 7268case "(($ac_try" in 7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7270 *) ac_try_echo=$ac_try;; 7271esac 7272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7273$as_echo "$ac_try_echo") >&5 7274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7275 ac_status=$? 7276 grep -v '^ *+' conftest.er1 >conftest.err 7277 rm -f conftest.er1 7278 cat conftest.err >&5 7279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7280 (exit $ac_status); } >/dev/null && { 7281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7282 test ! -s conftest.err 7283 }; then 7284 : 7285else 7286 $as_echo "$as_me: failed program was:" >&5 7287sed 's/^/| /' conftest.$ac_ext >&5 7288 7289 # Broken: fails on valid input. 7290continue 7291fi 7292 7293rm -f conftest.err conftest.$ac_ext 7294 7295 # OK, works on sane cases. Now check whether nonexistent headers 7296 # can be detected and how. 7297 cat >conftest.$ac_ext <<_ACEOF 7298/* confdefs.h. */ 7299_ACEOF 7300cat confdefs.h >>conftest.$ac_ext 7301cat >>conftest.$ac_ext <<_ACEOF 7302/* end confdefs.h. */ 7303#include <ac_nonexistent.h> 7304_ACEOF 7305if { (ac_try="$ac_cpp conftest.$ac_ext" 7306case "(($ac_try" in 7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7308 *) ac_try_echo=$ac_try;; 7309esac 7310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7311$as_echo "$ac_try_echo") >&5 7312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7313 ac_status=$? 7314 grep -v '^ *+' conftest.er1 >conftest.err 7315 rm -f conftest.er1 7316 cat conftest.err >&5 7317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7318 (exit $ac_status); } >/dev/null && { 7319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7320 test ! -s conftest.err 7321 }; then 7322 # Broken: success on invalid input. 7323continue 7324else 7325 $as_echo "$as_me: failed program was:" >&5 7326sed 's/^/| /' conftest.$ac_ext >&5 7327 7328 # Passes both tests. 7329ac_preproc_ok=: 7330break 7331fi 7332 7333rm -f conftest.err conftest.$ac_ext 7334 7335done 7336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7337rm -f conftest.err conftest.$ac_ext 7338if $ac_preproc_ok; then 7339 break 7340fi 7341 7342 done 7343 ac_cv_prog_CPP=$CPP 7344 7345fi 7346 CPP=$ac_cv_prog_CPP 7347else 7348 ac_cv_prog_CPP=$CPP 7349fi 7350{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 7351$as_echo "$CPP" >&6; } 7352ac_preproc_ok=false 7353for ac_c_preproc_warn_flag in '' yes 7354do 7355 # Use a header file that comes with gcc, so configuring glibc 7356 # with a fresh cross-compiler works. 7357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7358 # <limits.h> exists even on freestanding compilers. 7359 # On the NeXT, cc -E runs the code through the compiler's parser, 7360 # not just through cpp. "Syntax error" is here to catch this case. 7361 cat >conftest.$ac_ext <<_ACEOF 7362/* confdefs.h. */ 7363_ACEOF 7364cat confdefs.h >>conftest.$ac_ext 7365cat >>conftest.$ac_ext <<_ACEOF 7366/* end confdefs.h. */ 7367#ifdef __STDC__ 7368# include <limits.h> 7369#else 7370# include <assert.h> 7371#endif 7372 Syntax error 7373_ACEOF 7374if { (ac_try="$ac_cpp conftest.$ac_ext" 7375case "(($ac_try" in 7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7377 *) ac_try_echo=$ac_try;; 7378esac 7379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7380$as_echo "$ac_try_echo") >&5 7381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7382 ac_status=$? 7383 grep -v '^ *+' conftest.er1 >conftest.err 7384 rm -f conftest.er1 7385 cat conftest.err >&5 7386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7387 (exit $ac_status); } >/dev/null && { 7388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7389 test ! -s conftest.err 7390 }; then 7391 : 7392else 7393 $as_echo "$as_me: failed program was:" >&5 7394sed 's/^/| /' conftest.$ac_ext >&5 7395 7396 # Broken: fails on valid input. 7397continue 7398fi 7399 7400rm -f conftest.err conftest.$ac_ext 7401 7402 # OK, works on sane cases. Now check whether nonexistent headers 7403 # can be detected and how. 7404 cat >conftest.$ac_ext <<_ACEOF 7405/* confdefs.h. */ 7406_ACEOF 7407cat confdefs.h >>conftest.$ac_ext 7408cat >>conftest.$ac_ext <<_ACEOF 7409/* end confdefs.h. */ 7410#include <ac_nonexistent.h> 7411_ACEOF 7412if { (ac_try="$ac_cpp conftest.$ac_ext" 7413case "(($ac_try" in 7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7415 *) ac_try_echo=$ac_try;; 7416esac 7417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7418$as_echo "$ac_try_echo") >&5 7419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7420 ac_status=$? 7421 grep -v '^ *+' conftest.er1 >conftest.err 7422 rm -f conftest.er1 7423 cat conftest.err >&5 7424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7425 (exit $ac_status); } >/dev/null && { 7426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7427 test ! -s conftest.err 7428 }; then 7429 # Broken: success on invalid input. 7430continue 7431else 7432 $as_echo "$as_me: failed program was:" >&5 7433sed 's/^/| /' conftest.$ac_ext >&5 7434 7435 # Passes both tests. 7436ac_preproc_ok=: 7437break 7438fi 7439 7440rm -f conftest.err conftest.$ac_ext 7441 7442done 7443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7444rm -f conftest.err conftest.$ac_ext 7445if $ac_preproc_ok; then 7446 : 7447else 7448 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 7449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7450{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 7451See \`config.log' for more details." >&5 7452$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 7453See \`config.log' for more details." >&2;} 7454 { (exit 1); exit 1; }; }; } 7455fi 7456 7457ac_ext=c 7458ac_cpp='$CPP $CPPFLAGS' 7459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7461ac_compiler_gnu=$ac_cv_c_compiler_gnu 7462 7463 7464{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7465$as_echo_n "checking for ANSI C header files... " >&6; } 7466if test "${ac_cv_header_stdc+set}" = set; then 7467 $as_echo_n "(cached) " >&6 7468else 7469 cat >conftest.$ac_ext <<_ACEOF 7470/* confdefs.h. */ 7471_ACEOF 7472cat confdefs.h >>conftest.$ac_ext 7473cat >>conftest.$ac_ext <<_ACEOF 7474/* end confdefs.h. */ 7475#include <stdlib.h> 7476#include <stdarg.h> 7477#include <string.h> 7478#include <float.h> 7479 7480int 7481main () 7482{ 7483 7484 ; 7485 return 0; 7486} 7487_ACEOF 7488rm -f conftest.$ac_objext 7489if { (ac_try="$ac_compile" 7490case "(($ac_try" in 7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7492 *) ac_try_echo=$ac_try;; 7493esac 7494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7495$as_echo "$ac_try_echo") >&5 7496 (eval "$ac_compile") 2>conftest.er1 7497 ac_status=$? 7498 grep -v '^ *+' conftest.er1 >conftest.err 7499 rm -f conftest.er1 7500 cat conftest.err >&5 7501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7502 (exit $ac_status); } && { 7503 test -z "$ac_c_werror_flag" || 7504 test ! -s conftest.err 7505 } && test -s conftest.$ac_objext; then 7506 ac_cv_header_stdc=yes 7507else 7508 $as_echo "$as_me: failed program was:" >&5 7509sed 's/^/| /' conftest.$ac_ext >&5 7510 7511 ac_cv_header_stdc=no 7512fi 7513 7514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7515 7516if test $ac_cv_header_stdc = yes; then 7517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7518 cat >conftest.$ac_ext <<_ACEOF 7519/* confdefs.h. */ 7520_ACEOF 7521cat confdefs.h >>conftest.$ac_ext 7522cat >>conftest.$ac_ext <<_ACEOF 7523/* end confdefs.h. */ 7524#include <string.h> 7525 7526_ACEOF 7527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7528 $EGREP "memchr" >/dev/null 2>&1; then 7529 : 7530else 7531 ac_cv_header_stdc=no 7532fi 7533rm -f conftest* 7534 7535fi 7536 7537if test $ac_cv_header_stdc = yes; then 7538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7539 cat >conftest.$ac_ext <<_ACEOF 7540/* confdefs.h. */ 7541_ACEOF 7542cat confdefs.h >>conftest.$ac_ext 7543cat >>conftest.$ac_ext <<_ACEOF 7544/* end confdefs.h. */ 7545#include <stdlib.h> 7546 7547_ACEOF 7548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7549 $EGREP "free" >/dev/null 2>&1; then 7550 : 7551else 7552 ac_cv_header_stdc=no 7553fi 7554rm -f conftest* 7555 7556fi 7557 7558if test $ac_cv_header_stdc = yes; then 7559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7560 if test "$cross_compiling" = yes; then 7561 : 7562else 7563 cat >conftest.$ac_ext <<_ACEOF 7564/* confdefs.h. */ 7565_ACEOF 7566cat confdefs.h >>conftest.$ac_ext 7567cat >>conftest.$ac_ext <<_ACEOF 7568/* end confdefs.h. */ 7569#include <ctype.h> 7570#include <stdlib.h> 7571#if ((' ' & 0x0FF) == 0x020) 7572# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7573# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7574#else 7575# define ISLOWER(c) \ 7576 (('a' <= (c) && (c) <= 'i') \ 7577 || ('j' <= (c) && (c) <= 'r') \ 7578 || ('s' <= (c) && (c) <= 'z')) 7579# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7580#endif 7581 7582#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7583int 7584main () 7585{ 7586 int i; 7587 for (i = 0; i < 256; i++) 7588 if (XOR (islower (i), ISLOWER (i)) 7589 || toupper (i) != TOUPPER (i)) 7590 return 2; 7591 return 0; 7592} 7593_ACEOF 7594rm -f conftest$ac_exeext 7595if { (ac_try="$ac_link" 7596case "(($ac_try" in 7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7598 *) ac_try_echo=$ac_try;; 7599esac 7600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7601$as_echo "$ac_try_echo") >&5 7602 (eval "$ac_link") 2>&5 7603 ac_status=$? 7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7606 { (case "(($ac_try" in 7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7608 *) ac_try_echo=$ac_try;; 7609esac 7610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7611$as_echo "$ac_try_echo") >&5 7612 (eval "$ac_try") 2>&5 7613 ac_status=$? 7614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7615 (exit $ac_status); }; }; then 7616 : 7617else 7618 $as_echo "$as_me: program exited with status $ac_status" >&5 7619$as_echo "$as_me: failed program was:" >&5 7620sed 's/^/| /' conftest.$ac_ext >&5 7621 7622( exit $ac_status ) 7623ac_cv_header_stdc=no 7624fi 7625rm -rf conftest.dSYM 7626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7627fi 7628 7629 7630fi 7631fi 7632{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7633$as_echo "$ac_cv_header_stdc" >&6; } 7634if test $ac_cv_header_stdc = yes; then 7635 7636cat >>confdefs.h <<\_ACEOF 7637#define STDC_HEADERS 1 7638_ACEOF 7639 7640fi 7641 7642# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7653 inttypes.h stdint.h unistd.h 7654do 7655as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7656{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7657$as_echo_n "checking for $ac_header... " >&6; } 7658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat >conftest.$ac_ext <<_ACEOF 7662/* confdefs.h. */ 7663_ACEOF 7664cat confdefs.h >>conftest.$ac_ext 7665cat >>conftest.$ac_ext <<_ACEOF 7666/* end confdefs.h. */ 7667$ac_includes_default 7668 7669#include <$ac_header> 7670_ACEOF 7671rm -f conftest.$ac_objext 7672if { (ac_try="$ac_compile" 7673case "(($ac_try" in 7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7675 *) ac_try_echo=$ac_try;; 7676esac 7677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7678$as_echo "$ac_try_echo") >&5 7679 (eval "$ac_compile") 2>conftest.er1 7680 ac_status=$? 7681 grep -v '^ *+' conftest.er1 >conftest.err 7682 rm -f conftest.er1 7683 cat conftest.err >&5 7684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7685 (exit $ac_status); } && { 7686 test -z "$ac_c_werror_flag" || 7687 test ! -s conftest.err 7688 } && test -s conftest.$ac_objext; then 7689 eval "$as_ac_Header=yes" 7690else 7691 $as_echo "$as_me: failed program was:" >&5 7692sed 's/^/| /' conftest.$ac_ext >&5 7693 7694 eval "$as_ac_Header=no" 7695fi 7696 7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7698fi 7699ac_res=`eval 'as_val=${'$as_ac_Header'} 7700 $as_echo "$as_val"'` 7701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7702$as_echo "$ac_res" >&6; } 7703as_val=`eval 'as_val=${'$as_ac_Header'} 7704 $as_echo "$as_val"'` 7705 if test "x$as_val" = x""yes; then 7706 cat >>confdefs.h <<_ACEOF 7707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7708_ACEOF 7709 7710fi 7711 7712done 7713 7714 7715 7716for ac_header in dlfcn.h 7717do 7718as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7719{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7720$as_echo_n "checking for $ac_header... " >&6; } 7721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7722 $as_echo_n "(cached) " >&6 7723else 7724 cat >conftest.$ac_ext <<_ACEOF 7725/* confdefs.h. */ 7726_ACEOF 7727cat confdefs.h >>conftest.$ac_ext 7728cat >>conftest.$ac_ext <<_ACEOF 7729/* end confdefs.h. */ 7730$ac_includes_default 7731 7732#include <$ac_header> 7733_ACEOF 7734rm -f conftest.$ac_objext 7735if { (ac_try="$ac_compile" 7736case "(($ac_try" in 7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7738 *) ac_try_echo=$ac_try;; 7739esac 7740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7741$as_echo "$ac_try_echo") >&5 7742 (eval "$ac_compile") 2>conftest.er1 7743 ac_status=$? 7744 grep -v '^ *+' conftest.er1 >conftest.err 7745 rm -f conftest.er1 7746 cat conftest.err >&5 7747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7748 (exit $ac_status); } && { 7749 test -z "$ac_c_werror_flag" || 7750 test ! -s conftest.err 7751 } && test -s conftest.$ac_objext; then 7752 eval "$as_ac_Header=yes" 7753else 7754 $as_echo "$as_me: failed program was:" >&5 7755sed 's/^/| /' conftest.$ac_ext >&5 7756 7757 eval "$as_ac_Header=no" 7758fi 7759 7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7761fi 7762ac_res=`eval 'as_val=${'$as_ac_Header'} 7763 $as_echo "$as_val"'` 7764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7765$as_echo "$ac_res" >&6; } 7766as_val=`eval 'as_val=${'$as_ac_Header'} 7767 $as_echo "$as_val"'` 7768 if test "x$as_val" = x""yes; then 7769 cat >>confdefs.h <<_ACEOF 7770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7771_ACEOF 7772 7773fi 7774 7775done 7776 7777 7778 7779ac_ext=cpp 7780ac_cpp='$CXXCPP $CPPFLAGS' 7781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7784if test -z "$CXX"; then 7785 if test -n "$CCC"; then 7786 CXX=$CCC 7787 else 7788 if test -n "$ac_tool_prefix"; then 7789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7790 do 7791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7792set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7793{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7794$as_echo_n "checking for $ac_word... " >&6; } 7795if test "${ac_cv_prog_CXX+set}" = set; then 7796 $as_echo_n "(cached) " >&6 7797else 7798 if test -n "$CXX"; then 7799 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7800else 7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7802for as_dir in $PATH 7803do 7804 IFS=$as_save_IFS 7805 test -z "$as_dir" && as_dir=. 7806 for ac_exec_ext in '' $ac_executable_extensions; do 7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7810 break 2 7811 fi 7812done 7813done 7814IFS=$as_save_IFS 7815 7816fi 7817fi 7818CXX=$ac_cv_prog_CXX 7819if test -n "$CXX"; then 7820 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 7821$as_echo "$CXX" >&6; } 7822else 7823 { $as_echo "$as_me:$LINENO: result: no" >&5 7824$as_echo "no" >&6; } 7825fi 7826 7827 7828 test -n "$CXX" && break 7829 done 7830fi 7831if test -z "$CXX"; then 7832 ac_ct_CXX=$CXX 7833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7834do 7835 # Extract the first word of "$ac_prog", so it can be a program name with args. 7836set dummy $ac_prog; ac_word=$2 7837{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7838$as_echo_n "checking for $ac_word... " >&6; } 7839if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7840 $as_echo_n "(cached) " >&6 7841else 7842 if test -n "$ac_ct_CXX"; then 7843 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7844else 7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7846for as_dir in $PATH 7847do 7848 IFS=$as_save_IFS 7849 test -z "$as_dir" && as_dir=. 7850 for ac_exec_ext in '' $ac_executable_extensions; do 7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7852 ac_cv_prog_ac_ct_CXX="$ac_prog" 7853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7854 break 2 7855 fi 7856done 7857done 7858IFS=$as_save_IFS 7859 7860fi 7861fi 7862ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7863if test -n "$ac_ct_CXX"; then 7864 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7865$as_echo "$ac_ct_CXX" >&6; } 7866else 7867 { $as_echo "$as_me:$LINENO: result: no" >&5 7868$as_echo "no" >&6; } 7869fi 7870 7871 7872 test -n "$ac_ct_CXX" && break 7873done 7874 7875 if test "x$ac_ct_CXX" = x; then 7876 CXX="g++" 7877 else 7878 case $cross_compiling:$ac_tool_warned in 7879yes:) 7880{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7882ac_tool_warned=yes ;; 7883esac 7884 CXX=$ac_ct_CXX 7885 fi 7886fi 7887 7888 fi 7889fi 7890# Provide some information about the compiler. 7891$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 7892set X $ac_compile 7893ac_compiler=$2 7894{ (ac_try="$ac_compiler --version >&5" 7895case "(($ac_try" in 7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7897 *) ac_try_echo=$ac_try;; 7898esac 7899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7900$as_echo "$ac_try_echo") >&5 7901 (eval "$ac_compiler --version >&5") 2>&5 7902 ac_status=$? 7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7904 (exit $ac_status); } 7905{ (ac_try="$ac_compiler -v >&5" 7906case "(($ac_try" in 7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7908 *) ac_try_echo=$ac_try;; 7909esac 7910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7911$as_echo "$ac_try_echo") >&5 7912 (eval "$ac_compiler -v >&5") 2>&5 7913 ac_status=$? 7914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7915 (exit $ac_status); } 7916{ (ac_try="$ac_compiler -V >&5" 7917case "(($ac_try" in 7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7919 *) ac_try_echo=$ac_try;; 7920esac 7921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7922$as_echo "$ac_try_echo") >&5 7923 (eval "$ac_compiler -V >&5") 2>&5 7924 ac_status=$? 7925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7926 (exit $ac_status); } 7927 7928{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7929$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7930if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7931 $as_echo_n "(cached) " >&6 7932else 7933 cat >conftest.$ac_ext <<_ACEOF 7934/* confdefs.h. */ 7935_ACEOF 7936cat confdefs.h >>conftest.$ac_ext 7937cat >>conftest.$ac_ext <<_ACEOF 7938/* end confdefs.h. */ 7939 7940int 7941main () 7942{ 7943#ifndef __GNUC__ 7944 choke me 7945#endif 7946 7947 ; 7948 return 0; 7949} 7950_ACEOF 7951rm -f conftest.$ac_objext 7952if { (ac_try="$ac_compile" 7953case "(($ac_try" in 7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7955 *) ac_try_echo=$ac_try;; 7956esac 7957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7958$as_echo "$ac_try_echo") >&5 7959 (eval "$ac_compile") 2>conftest.er1 7960 ac_status=$? 7961 grep -v '^ *+' conftest.er1 >conftest.err 7962 rm -f conftest.er1 7963 cat conftest.err >&5 7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7965 (exit $ac_status); } && { 7966 test -z "$ac_cxx_werror_flag" || 7967 test ! -s conftest.err 7968 } && test -s conftest.$ac_objext; then 7969 ac_compiler_gnu=yes 7970else 7971 $as_echo "$as_me: failed program was:" >&5 7972sed 's/^/| /' conftest.$ac_ext >&5 7973 7974 ac_compiler_gnu=no 7975fi 7976 7977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7978ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7979 7980fi 7981{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7982$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7983if test $ac_compiler_gnu = yes; then 7984 GXX=yes 7985else 7986 GXX= 7987fi 7988ac_test_CXXFLAGS=${CXXFLAGS+set} 7989ac_save_CXXFLAGS=$CXXFLAGS 7990{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7991$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7992if test "${ac_cv_prog_cxx_g+set}" = set; then 7993 $as_echo_n "(cached) " >&6 7994else 7995 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7996 ac_cxx_werror_flag=yes 7997 ac_cv_prog_cxx_g=no 7998 CXXFLAGS="-g" 7999 cat >conftest.$ac_ext <<_ACEOF 8000/* confdefs.h. */ 8001_ACEOF 8002cat confdefs.h >>conftest.$ac_ext 8003cat >>conftest.$ac_ext <<_ACEOF 8004/* end confdefs.h. */ 8005 8006int 8007main () 8008{ 8009 8010 ; 8011 return 0; 8012} 8013_ACEOF 8014rm -f conftest.$ac_objext 8015if { (ac_try="$ac_compile" 8016case "(($ac_try" in 8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8018 *) ac_try_echo=$ac_try;; 8019esac 8020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8021$as_echo "$ac_try_echo") >&5 8022 (eval "$ac_compile") 2>conftest.er1 8023 ac_status=$? 8024 grep -v '^ *+' conftest.er1 >conftest.err 8025 rm -f conftest.er1 8026 cat conftest.err >&5 8027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8028 (exit $ac_status); } && { 8029 test -z "$ac_cxx_werror_flag" || 8030 test ! -s conftest.err 8031 } && test -s conftest.$ac_objext; then 8032 ac_cv_prog_cxx_g=yes 8033else 8034 $as_echo "$as_me: failed program was:" >&5 8035sed 's/^/| /' conftest.$ac_ext >&5 8036 8037 CXXFLAGS="" 8038 cat >conftest.$ac_ext <<_ACEOF 8039/* confdefs.h. */ 8040_ACEOF 8041cat confdefs.h >>conftest.$ac_ext 8042cat >>conftest.$ac_ext <<_ACEOF 8043/* end confdefs.h. */ 8044 8045int 8046main () 8047{ 8048 8049 ; 8050 return 0; 8051} 8052_ACEOF 8053rm -f conftest.$ac_objext 8054if { (ac_try="$ac_compile" 8055case "(($ac_try" in 8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8057 *) ac_try_echo=$ac_try;; 8058esac 8059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8060$as_echo "$ac_try_echo") >&5 8061 (eval "$ac_compile") 2>conftest.er1 8062 ac_status=$? 8063 grep -v '^ *+' conftest.er1 >conftest.err 8064 rm -f conftest.er1 8065 cat conftest.err >&5 8066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8067 (exit $ac_status); } && { 8068 test -z "$ac_cxx_werror_flag" || 8069 test ! -s conftest.err 8070 } && test -s conftest.$ac_objext; then 8071 : 8072else 8073 $as_echo "$as_me: failed program was:" >&5 8074sed 's/^/| /' conftest.$ac_ext >&5 8075 8076 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8077 CXXFLAGS="-g" 8078 cat >conftest.$ac_ext <<_ACEOF 8079/* confdefs.h. */ 8080_ACEOF 8081cat confdefs.h >>conftest.$ac_ext 8082cat >>conftest.$ac_ext <<_ACEOF 8083/* end confdefs.h. */ 8084 8085int 8086main () 8087{ 8088 8089 ; 8090 return 0; 8091} 8092_ACEOF 8093rm -f conftest.$ac_objext 8094if { (ac_try="$ac_compile" 8095case "(($ac_try" in 8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8097 *) ac_try_echo=$ac_try;; 8098esac 8099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8100$as_echo "$ac_try_echo") >&5 8101 (eval "$ac_compile") 2>conftest.er1 8102 ac_status=$? 8103 grep -v '^ *+' conftest.er1 >conftest.err 8104 rm -f conftest.er1 8105 cat conftest.err >&5 8106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8107 (exit $ac_status); } && { 8108 test -z "$ac_cxx_werror_flag" || 8109 test ! -s conftest.err 8110 } && test -s conftest.$ac_objext; then 8111 ac_cv_prog_cxx_g=yes 8112else 8113 $as_echo "$as_me: failed program was:" >&5 8114sed 's/^/| /' conftest.$ac_ext >&5 8115 8116 8117fi 8118 8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8120fi 8121 8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8123fi 8124 8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8126 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8127fi 8128{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8129$as_echo "$ac_cv_prog_cxx_g" >&6; } 8130if test "$ac_test_CXXFLAGS" = set; then 8131 CXXFLAGS=$ac_save_CXXFLAGS 8132elif test $ac_cv_prog_cxx_g = yes; then 8133 if test "$GXX" = yes; then 8134 CXXFLAGS="-g -O2" 8135 else 8136 CXXFLAGS="-g" 8137 fi 8138else 8139 if test "$GXX" = yes; then 8140 CXXFLAGS="-O2" 8141 else 8142 CXXFLAGS= 8143 fi 8144fi 8145ac_ext=c 8146ac_cpp='$CPP $CPPFLAGS' 8147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8149ac_compiler_gnu=$ac_cv_c_compiler_gnu 8150 8151depcc="$CXX" am_compiler_list= 8152 8153{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8154$as_echo_n "checking dependency style of $depcc... " >&6; } 8155if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8156 $as_echo_n "(cached) " >&6 8157else 8158 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8159 # We make a subdir and do the tests there. Otherwise we can end up 8160 # making bogus files that we don't know about and never remove. For 8161 # instance it was reported that on HP-UX the gcc test will end up 8162 # making a dummy file named `D' -- because `-MD' means `put the output 8163 # in D'. 8164 mkdir conftest.dir 8165 # Copy depcomp to subdir because otherwise we won't find it if we're 8166 # using a relative directory. 8167 cp "$am_depcomp" conftest.dir 8168 cd conftest.dir 8169 # We will build objects and dependencies in a subdirectory because 8170 # it helps to detect inapplicable dependency modes. For instance 8171 # both Tru64's cc and ICC support -MD to output dependencies as a 8172 # side effect of compilation, but ICC will put the dependencies in 8173 # the current directory while Tru64 will put them in the object 8174 # directory. 8175 mkdir sub 8176 8177 am_cv_CXX_dependencies_compiler_type=none 8178 if test "$am_compiler_list" = ""; then 8179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8180 fi 8181 for depmode in $am_compiler_list; do 8182 # Setup a source with many dependencies, because some compilers 8183 # like to wrap large dependency lists on column 80 (with \), and 8184 # we should not choose a depcomp mode which is confused by this. 8185 # 8186 # We need to recreate these files for each test, as the compiler may 8187 # overwrite some of them when testing with obscure command lines. 8188 # This happens at least with the AIX C compiler. 8189 : > sub/conftest.c 8190 for i in 1 2 3 4 5 6; do 8191 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8193 # Solaris 8's {/usr,}/bin/sh. 8194 touch sub/conftst$i.h 8195 done 8196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8197 8198 case $depmode in 8199 nosideeffect) 8200 # after this tag, mechanisms are not by side-effect, so they'll 8201 # only be used when explicitly requested 8202 if test "x$enable_dependency_tracking" = xyes; then 8203 continue 8204 else 8205 break 8206 fi 8207 ;; 8208 none) break ;; 8209 esac 8210 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8211 # mode. It turns out that the SunPro C++ compiler does not properly 8212 # handle `-M -o', and we need to detect this. 8213 if depmode=$depmode \ 8214 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8216 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8217 >/dev/null 2>conftest.err && 8218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8220 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8222 # icc doesn't choke on unknown options, it will just issue warnings 8223 # or remarks (even with -Werror). So we grep stderr for any message 8224 # that says an option was ignored or not supported. 8225 # When given -MP, icc 7.0 and 7.1 complain thusly: 8226 # icc: Command line warning: ignoring option '-M'; no argument required 8227 # The diagnosis changed in icc 8.0: 8228 # icc: Command line remark: option '-MP' not supported 8229 if (grep 'ignoring option' conftest.err || 8230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8231 am_cv_CXX_dependencies_compiler_type=$depmode 8232 break 8233 fi 8234 fi 8235 done 8236 8237 cd .. 8238 rm -rf conftest.dir 8239else 8240 am_cv_CXX_dependencies_compiler_type=none 8241fi 8242 8243fi 8244{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8245$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 8246CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8247 8248 if 8249 test "x$enable_dependency_tracking" != xno \ 8250 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 8251 am__fastdepCXX_TRUE= 8252 am__fastdepCXX_FALSE='#' 8253else 8254 am__fastdepCXX_TRUE='#' 8255 am__fastdepCXX_FALSE= 8256fi 8257 8258 8259if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8260 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8261 (test "X$CXX" != "Xg++"))) ; then 8262 ac_ext=cpp 8263ac_cpp='$CXXCPP $CPPFLAGS' 8264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8267{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8268$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 8269if test -z "$CXXCPP"; then 8270 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8271 $as_echo_n "(cached) " >&6 8272else 8273 # Double quotes because CXXCPP needs to be expanded 8274 for CXXCPP in "$CXX -E" "/lib/cpp" 8275 do 8276 ac_preproc_ok=false 8277for ac_cxx_preproc_warn_flag in '' yes 8278do 8279 # Use a header file that comes with gcc, so configuring glibc 8280 # with a fresh cross-compiler works. 8281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8282 # <limits.h> exists even on freestanding compilers. 8283 # On the NeXT, cc -E runs the code through the compiler's parser, 8284 # not just through cpp. "Syntax error" is here to catch this case. 8285 cat >conftest.$ac_ext <<_ACEOF 8286/* confdefs.h. */ 8287_ACEOF 8288cat confdefs.h >>conftest.$ac_ext 8289cat >>conftest.$ac_ext <<_ACEOF 8290/* end confdefs.h. */ 8291#ifdef __STDC__ 8292# include <limits.h> 8293#else 8294# include <assert.h> 8295#endif 8296 Syntax error 8297_ACEOF 8298if { (ac_try="$ac_cpp conftest.$ac_ext" 8299case "(($ac_try" in 8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8301 *) ac_try_echo=$ac_try;; 8302esac 8303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8304$as_echo "$ac_try_echo") >&5 8305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8306 ac_status=$? 8307 grep -v '^ *+' conftest.er1 >conftest.err 8308 rm -f conftest.er1 8309 cat conftest.err >&5 8310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8311 (exit $ac_status); } >/dev/null && { 8312 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8313 test ! -s conftest.err 8314 }; then 8315 : 8316else 8317 $as_echo "$as_me: failed program was:" >&5 8318sed 's/^/| /' conftest.$ac_ext >&5 8319 8320 # Broken: fails on valid input. 8321continue 8322fi 8323 8324rm -f conftest.err conftest.$ac_ext 8325 8326 # OK, works on sane cases. Now check whether nonexistent headers 8327 # can be detected and how. 8328 cat >conftest.$ac_ext <<_ACEOF 8329/* confdefs.h. */ 8330_ACEOF 8331cat confdefs.h >>conftest.$ac_ext 8332cat >>conftest.$ac_ext <<_ACEOF 8333/* end confdefs.h. */ 8334#include <ac_nonexistent.h> 8335_ACEOF 8336if { (ac_try="$ac_cpp conftest.$ac_ext" 8337case "(($ac_try" in 8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8339 *) ac_try_echo=$ac_try;; 8340esac 8341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8342$as_echo "$ac_try_echo") >&5 8343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8344 ac_status=$? 8345 grep -v '^ *+' conftest.er1 >conftest.err 8346 rm -f conftest.er1 8347 cat conftest.err >&5 8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8349 (exit $ac_status); } >/dev/null && { 8350 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8351 test ! -s conftest.err 8352 }; then 8353 # Broken: success on invalid input. 8354continue 8355else 8356 $as_echo "$as_me: failed program was:" >&5 8357sed 's/^/| /' conftest.$ac_ext >&5 8358 8359 # Passes both tests. 8360ac_preproc_ok=: 8361break 8362fi 8363 8364rm -f conftest.err conftest.$ac_ext 8365 8366done 8367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8368rm -f conftest.err conftest.$ac_ext 8369if $ac_preproc_ok; then 8370 break 8371fi 8372 8373 done 8374 ac_cv_prog_CXXCPP=$CXXCPP 8375 8376fi 8377 CXXCPP=$ac_cv_prog_CXXCPP 8378else 8379 ac_cv_prog_CXXCPP=$CXXCPP 8380fi 8381{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 8382$as_echo "$CXXCPP" >&6; } 8383ac_preproc_ok=false 8384for ac_cxx_preproc_warn_flag in '' yes 8385do 8386 # Use a header file that comes with gcc, so configuring glibc 8387 # with a fresh cross-compiler works. 8388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8389 # <limits.h> exists even on freestanding compilers. 8390 # On the NeXT, cc -E runs the code through the compiler's parser, 8391 # not just through cpp. "Syntax error" is here to catch this case. 8392 cat >conftest.$ac_ext <<_ACEOF 8393/* confdefs.h. */ 8394_ACEOF 8395cat confdefs.h >>conftest.$ac_ext 8396cat >>conftest.$ac_ext <<_ACEOF 8397/* end confdefs.h. */ 8398#ifdef __STDC__ 8399# include <limits.h> 8400#else 8401# include <assert.h> 8402#endif 8403 Syntax error 8404_ACEOF 8405if { (ac_try="$ac_cpp conftest.$ac_ext" 8406case "(($ac_try" in 8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8408 *) ac_try_echo=$ac_try;; 8409esac 8410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8411$as_echo "$ac_try_echo") >&5 8412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8413 ac_status=$? 8414 grep -v '^ *+' conftest.er1 >conftest.err 8415 rm -f conftest.er1 8416 cat conftest.err >&5 8417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8418 (exit $ac_status); } >/dev/null && { 8419 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8420 test ! -s conftest.err 8421 }; then 8422 : 8423else 8424 $as_echo "$as_me: failed program was:" >&5 8425sed 's/^/| /' conftest.$ac_ext >&5 8426 8427 # Broken: fails on valid input. 8428continue 8429fi 8430 8431rm -f conftest.err conftest.$ac_ext 8432 8433 # OK, works on sane cases. Now check whether nonexistent headers 8434 # can be detected and how. 8435 cat >conftest.$ac_ext <<_ACEOF 8436/* confdefs.h. */ 8437_ACEOF 8438cat confdefs.h >>conftest.$ac_ext 8439cat >>conftest.$ac_ext <<_ACEOF 8440/* end confdefs.h. */ 8441#include <ac_nonexistent.h> 8442_ACEOF 8443if { (ac_try="$ac_cpp conftest.$ac_ext" 8444case "(($ac_try" in 8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8446 *) ac_try_echo=$ac_try;; 8447esac 8448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8449$as_echo "$ac_try_echo") >&5 8450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8451 ac_status=$? 8452 grep -v '^ *+' conftest.er1 >conftest.err 8453 rm -f conftest.er1 8454 cat conftest.err >&5 8455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8456 (exit $ac_status); } >/dev/null && { 8457 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8458 test ! -s conftest.err 8459 }; then 8460 # Broken: success on invalid input. 8461continue 8462else 8463 $as_echo "$as_me: failed program was:" >&5 8464sed 's/^/| /' conftest.$ac_ext >&5 8465 8466 # Passes both tests. 8467ac_preproc_ok=: 8468break 8469fi 8470 8471rm -f conftest.err conftest.$ac_ext 8472 8473done 8474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8475rm -f conftest.err conftest.$ac_ext 8476if $ac_preproc_ok; then 8477 : 8478else 8479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8481_lt_caught_CXX_error=yes; } 8482fi 8483 8484ac_ext=c 8485ac_cpp='$CPP $CPPFLAGS' 8486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8488ac_compiler_gnu=$ac_cv_c_compiler_gnu 8489 8490else 8491 _lt_caught_CXX_error=yes 8492fi 8493 8494 8495 8496 8497 8498# Set options 8499 8500 8501 8502 enable_dlopen=no 8503 8504 8505 8506 # Check whether --enable-shared was given. 8507if test "${enable_shared+set}" = set; then 8508 enableval=$enable_shared; p=${PACKAGE-default} 8509 case $enableval in 8510 yes) enable_shared=yes ;; 8511 no) enable_shared=no ;; 8512 *) 8513 enable_shared=no 8514 # Look at the argument we got. We use all the common list separators. 8515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8516 for pkg in $enableval; do 8517 IFS="$lt_save_ifs" 8518 if test "X$pkg" = "X$p"; then 8519 enable_shared=yes 8520 fi 8521 done 8522 IFS="$lt_save_ifs" 8523 ;; 8524 esac 8525else 8526 enable_shared=yes 8527fi 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 # Check whether --enable-static was given. 8538if test "${enable_static+set}" = set; then 8539 enableval=$enable_static; p=${PACKAGE-default} 8540 case $enableval in 8541 yes) enable_static=yes ;; 8542 no) enable_static=no ;; 8543 *) 8544 enable_static=no 8545 # Look at the argument we got. We use all the common list separators. 8546 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8547 for pkg in $enableval; do 8548 IFS="$lt_save_ifs" 8549 if test "X$pkg" = "X$p"; then 8550 enable_static=yes 8551 fi 8552 done 8553 IFS="$lt_save_ifs" 8554 ;; 8555 esac 8556else 8557 enable_static=yes 8558fi 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569# Check whether --with-pic was given. 8570if test "${with_pic+set}" = set; then 8571 withval=$with_pic; pic_mode="$withval" 8572else 8573 pic_mode=default 8574fi 8575 8576 8577test -z "$pic_mode" && pic_mode=default 8578 8579 8580 8581 8582 8583 8584 8585 # Check whether --enable-fast-install was given. 8586if test "${enable_fast_install+set}" = set; then 8587 enableval=$enable_fast_install; p=${PACKAGE-default} 8588 case $enableval in 8589 yes) enable_fast_install=yes ;; 8590 no) enable_fast_install=no ;; 8591 *) 8592 enable_fast_install=no 8593 # Look at the argument we got. We use all the common list separators. 8594 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8595 for pkg in $enableval; do 8596 IFS="$lt_save_ifs" 8597 if test "X$pkg" = "X$p"; then 8598 enable_fast_install=yes 8599 fi 8600 done 8601 IFS="$lt_save_ifs" 8602 ;; 8603 esac 8604else 8605 enable_fast_install=yes 8606fi 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618# This can be used to rebuild libtool when needed 8619LIBTOOL_DEPS="$ltmain" 8620 8621# Always use our own libtool. 8622LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648test -z "$LN_S" && LN_S="ln -s" 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663if test -n "${ZSH_VERSION+set}" ; then 8664 setopt NO_GLOB_SUBST 8665fi 8666 8667{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8668$as_echo_n "checking for objdir... " >&6; } 8669if test "${lt_cv_objdir+set}" = set; then 8670 $as_echo_n "(cached) " >&6 8671else 8672 rm -f .libs 2>/dev/null 8673mkdir .libs 2>/dev/null 8674if test -d .libs; then 8675 lt_cv_objdir=.libs 8676else 8677 # MS-DOS does not allow filenames that begin with a dot. 8678 lt_cv_objdir=_libs 8679fi 8680rmdir .libs 2>/dev/null 8681fi 8682{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8683$as_echo "$lt_cv_objdir" >&6; } 8684objdir=$lt_cv_objdir 8685 8686 8687 8688 8689 8690cat >>confdefs.h <<_ACEOF 8691#define LT_OBJDIR "$lt_cv_objdir/" 8692_ACEOF 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710case $host_os in 8711aix3*) 8712 # AIX sometimes has problems with the GCC collect2 program. For some 8713 # reason, if we set the COLLECT_NAMES environment variable, the problems 8714 # vanish in a puff of smoke. 8715 if test "X${COLLECT_NAMES+set}" != Xset; then 8716 COLLECT_NAMES= 8717 export COLLECT_NAMES 8718 fi 8719 ;; 8720esac 8721 8722# Sed substitution that helps us do robust quoting. It backslashifies 8723# metacharacters that are still active within double-quoted strings. 8724sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8725 8726# Same as above, but do not quote variable references. 8727double_quote_subst='s/\(["`\\]\)/\\\1/g' 8728 8729# Sed substitution to delay expansion of an escaped shell variable in a 8730# double_quote_subst'ed string. 8731delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8732 8733# Sed substitution to delay expansion of an escaped single quote. 8734delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8735 8736# Sed substitution to avoid accidental globbing in evaled expressions 8737no_glob_subst='s/\*/\\\*/g' 8738 8739# Global variables: 8740ofile=libtool 8741can_build_shared=yes 8742 8743# All known linkers require a `.a' archive for static linking (except MSVC, 8744# which needs '.lib'). 8745libext=a 8746 8747with_gnu_ld="$lt_cv_prog_gnu_ld" 8748 8749old_CC="$CC" 8750old_CFLAGS="$CFLAGS" 8751 8752# Set sane defaults for various variables 8753test -z "$CC" && CC=cc 8754test -z "$LTCC" && LTCC=$CC 8755test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8756test -z "$LD" && LD=ld 8757test -z "$ac_objext" && ac_objext=o 8758 8759for cc_temp in $compiler""; do 8760 case $cc_temp in 8761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8763 \-*) ;; 8764 *) break;; 8765 esac 8766done 8767cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8768 8769 8770# Only perform the check for file, if the check method requires it 8771test -z "$MAGIC_CMD" && MAGIC_CMD=file 8772case $deplibs_check_method in 8773file_magic*) 8774 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8775 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8776$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8777if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8778 $as_echo_n "(cached) " >&6 8779else 8780 case $MAGIC_CMD in 8781[\\/*] | ?:[\\/]*) 8782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8783 ;; 8784*) 8785 lt_save_MAGIC_CMD="$MAGIC_CMD" 8786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8787 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8788 for ac_dir in $ac_dummy; do 8789 IFS="$lt_save_ifs" 8790 test -z "$ac_dir" && ac_dir=. 8791 if test -f $ac_dir/${ac_tool_prefix}file; then 8792 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8793 if test -n "$file_magic_test_file"; then 8794 case $deplibs_check_method in 8795 "file_magic "*) 8796 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8799 $EGREP "$file_magic_regex" > /dev/null; then 8800 : 8801 else 8802 cat <<_LT_EOF 1>&2 8803 8804*** Warning: the command libtool uses to detect shared libraries, 8805*** $file_magic_cmd, produces output that libtool cannot recognize. 8806*** The result is that libtool may fail to recognize shared libraries 8807*** as such. This will affect the creation of libtool libraries that 8808*** depend on shared libraries, but programs linked with such libtool 8809*** libraries will work regardless of this problem. Nevertheless, you 8810*** may want to report the problem to your system manager and/or to 8811*** bug-libtool@gnu.org 8812 8813_LT_EOF 8814 fi ;; 8815 esac 8816 fi 8817 break 8818 fi 8819 done 8820 IFS="$lt_save_ifs" 8821 MAGIC_CMD="$lt_save_MAGIC_CMD" 8822 ;; 8823esac 8824fi 8825 8826MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8827if test -n "$MAGIC_CMD"; then 8828 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8829$as_echo "$MAGIC_CMD" >&6; } 8830else 8831 { $as_echo "$as_me:$LINENO: result: no" >&5 8832$as_echo "no" >&6; } 8833fi 8834 8835 8836 8837 8838 8839if test -z "$lt_cv_path_MAGIC_CMD"; then 8840 if test -n "$ac_tool_prefix"; then 8841 { $as_echo "$as_me:$LINENO: checking for file" >&5 8842$as_echo_n "checking for file... " >&6; } 8843if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8844 $as_echo_n "(cached) " >&6 8845else 8846 case $MAGIC_CMD in 8847[\\/*] | ?:[\\/]*) 8848 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8849 ;; 8850*) 8851 lt_save_MAGIC_CMD="$MAGIC_CMD" 8852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8853 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8854 for ac_dir in $ac_dummy; do 8855 IFS="$lt_save_ifs" 8856 test -z "$ac_dir" && ac_dir=. 8857 if test -f $ac_dir/file; then 8858 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8859 if test -n "$file_magic_test_file"; then 8860 case $deplibs_check_method in 8861 "file_magic "*) 8862 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8864 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8865 $EGREP "$file_magic_regex" > /dev/null; then 8866 : 8867 else 8868 cat <<_LT_EOF 1>&2 8869 8870*** Warning: the command libtool uses to detect shared libraries, 8871*** $file_magic_cmd, produces output that libtool cannot recognize. 8872*** The result is that libtool may fail to recognize shared libraries 8873*** as such. This will affect the creation of libtool libraries that 8874*** depend on shared libraries, but programs linked with such libtool 8875*** libraries will work regardless of this problem. Nevertheless, you 8876*** may want to report the problem to your system manager and/or to 8877*** bug-libtool@gnu.org 8878 8879_LT_EOF 8880 fi ;; 8881 esac 8882 fi 8883 break 8884 fi 8885 done 8886 IFS="$lt_save_ifs" 8887 MAGIC_CMD="$lt_save_MAGIC_CMD" 8888 ;; 8889esac 8890fi 8891 8892MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8893if test -n "$MAGIC_CMD"; then 8894 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8895$as_echo "$MAGIC_CMD" >&6; } 8896else 8897 { $as_echo "$as_me:$LINENO: result: no" >&5 8898$as_echo "no" >&6; } 8899fi 8900 8901 8902 else 8903 MAGIC_CMD=: 8904 fi 8905fi 8906 8907 fi 8908 ;; 8909esac 8910 8911# Use C for the default configuration in the libtool script 8912 8913lt_save_CC="$CC" 8914ac_ext=c 8915ac_cpp='$CPP $CPPFLAGS' 8916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8918ac_compiler_gnu=$ac_cv_c_compiler_gnu 8919 8920 8921# Source file extension for C test sources. 8922ac_ext=c 8923 8924# Object file extension for compiled C test sources. 8925objext=o 8926objext=$objext 8927 8928# Code to be used in simple compile tests 8929lt_simple_compile_test_code="int some_variable = 0;" 8930 8931# Code to be used in simple link tests 8932lt_simple_link_test_code='int main(){return(0);}' 8933 8934 8935 8936 8937 8938 8939 8940# If no C compiler was specified, use CC. 8941LTCC=${LTCC-"$CC"} 8942 8943# If no C compiler flags were specified, use CFLAGS. 8944LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8945 8946# Allow CC to be a program name with arguments. 8947compiler=$CC 8948 8949# Save the default compiler, since it gets overwritten when the other 8950# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8951compiler_DEFAULT=$CC 8952 8953# save warnings/boilerplate of simple test code 8954ac_outfile=conftest.$ac_objext 8955echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8957_lt_compiler_boilerplate=`cat conftest.err` 8958$RM conftest* 8959 8960ac_outfile=conftest.$ac_objext 8961echo "$lt_simple_link_test_code" >conftest.$ac_ext 8962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8963_lt_linker_boilerplate=`cat conftest.err` 8964$RM -r conftest* 8965 8966 8967if test -n "$compiler"; then 8968 8969lt_prog_compiler_no_builtin_flag= 8970 8971if test "$GCC" = yes; then 8972 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8973 8974 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8975$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8976if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8977 $as_echo_n "(cached) " >&6 8978else 8979 lt_cv_prog_compiler_rtti_exceptions=no 8980 ac_outfile=conftest.$ac_objext 8981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8982 lt_compiler_flag="-fno-rtti -fno-exceptions" 8983 # Insert the option either (1) after the last *FLAGS variable, or 8984 # (2) before a word containing "conftest.", or (3) at the end. 8985 # Note that $ac_compile itself does not contain backslashes and begins 8986 # with a dollar sign (not a hyphen), so the echo should work correctly. 8987 # The option is referenced via a variable to avoid confusing sed. 8988 lt_compile=`echo "$ac_compile" | $SED \ 8989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8991 -e 's:$: $lt_compiler_flag:'` 8992 (eval echo "\"\$as_me:8992: $lt_compile\"" >&5) 8993 (eval "$lt_compile" 2>conftest.err) 8994 ac_status=$? 8995 cat conftest.err >&5 8996 echo "$as_me:8996: \$? = $ac_status" >&5 8997 if (exit $ac_status) && test -s "$ac_outfile"; then 8998 # The compiler can only warn and ignore the option if not recognized 8999 # So say no if there are warnings other than the usual output. 9000 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9003 lt_cv_prog_compiler_rtti_exceptions=yes 9004 fi 9005 fi 9006 $RM conftest* 9007 9008fi 9009{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9010$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9011 9012if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9013 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9014else 9015 : 9016fi 9017 9018fi 9019 9020 9021 9022 9023 9024 9025 lt_prog_compiler_wl= 9026lt_prog_compiler_pic= 9027lt_prog_compiler_static= 9028 9029{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9030$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9031 9032 if test "$GCC" = yes; then 9033 lt_prog_compiler_wl='-Wl,' 9034 lt_prog_compiler_static='-static' 9035 9036 case $host_os in 9037 aix*) 9038 # All AIX code is PIC. 9039 if test "$host_cpu" = ia64; then 9040 # AIX 5 now supports IA64 processor 9041 lt_prog_compiler_static='-Bstatic' 9042 fi 9043 ;; 9044 9045 amigaos*) 9046 case $host_cpu in 9047 powerpc) 9048 # see comment about AmigaOS4 .so support 9049 lt_prog_compiler_pic='-fPIC' 9050 ;; 9051 m68k) 9052 # FIXME: we need at least 68020 code to build shared libraries, but 9053 # adding the `-m68020' flag to GCC prevents building anything better, 9054 # like `-m68040'. 9055 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9056 ;; 9057 esac 9058 ;; 9059 9060 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9061 # PIC is the default for these OSes. 9062 ;; 9063 9064 mingw* | cygwin* | pw32* | os2* | cegcc*) 9065 # This hack is so that the source file can tell whether it is being 9066 # built for inclusion in a dll (and should export symbols for example). 9067 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9068 # (--disable-auto-import) libraries 9069 lt_prog_compiler_pic='-DDLL_EXPORT' 9070 ;; 9071 9072 darwin* | rhapsody*) 9073 # PIC is the default on this platform 9074 # Common symbols not allowed in MH_DYLIB files 9075 lt_prog_compiler_pic='-fno-common' 9076 ;; 9077 9078 hpux*) 9079 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9080 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9081 # sets the default TLS model and affects inlining. 9082 case $host_cpu in 9083 hppa*64*) 9084 # +Z the default 9085 ;; 9086 *) 9087 lt_prog_compiler_pic='-fPIC' 9088 ;; 9089 esac 9090 ;; 9091 9092 interix[3-9]*) 9093 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9094 # Instead, we relocate shared libraries at runtime. 9095 ;; 9096 9097 msdosdjgpp*) 9098 # Just because we use GCC doesn't mean we suddenly get shared libraries 9099 # on systems that don't support them. 9100 lt_prog_compiler_can_build_shared=no 9101 enable_shared=no 9102 ;; 9103 9104 *nto* | *qnx*) 9105 # QNX uses GNU C++, but need to define -shared option too, otherwise 9106 # it will coredump. 9107 lt_prog_compiler_pic='-fPIC -shared' 9108 ;; 9109 9110 sysv4*MP*) 9111 if test -d /usr/nec; then 9112 lt_prog_compiler_pic=-Kconform_pic 9113 fi 9114 ;; 9115 9116 *) 9117 lt_prog_compiler_pic='-fPIC' 9118 ;; 9119 esac 9120 else 9121 # PORTME Check for flag to pass linker flags through the system compiler. 9122 case $host_os in 9123 aix*) 9124 lt_prog_compiler_wl='-Wl,' 9125 if test "$host_cpu" = ia64; then 9126 # AIX 5 now supports IA64 processor 9127 lt_prog_compiler_static='-Bstatic' 9128 else 9129 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9130 fi 9131 ;; 9132 9133 mingw* | cygwin* | pw32* | os2* | cegcc*) 9134 # This hack is so that the source file can tell whether it is being 9135 # built for inclusion in a dll (and should export symbols for example). 9136 lt_prog_compiler_pic='-DDLL_EXPORT' 9137 ;; 9138 9139 hpux9* | hpux10* | hpux11*) 9140 lt_prog_compiler_wl='-Wl,' 9141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9142 # not for PA HP-UX. 9143 case $host_cpu in 9144 hppa*64*|ia64*) 9145 # +Z the default 9146 ;; 9147 *) 9148 lt_prog_compiler_pic='+Z' 9149 ;; 9150 esac 9151 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9152 lt_prog_compiler_static='${wl}-a ${wl}archive' 9153 ;; 9154 9155 irix5* | irix6* | nonstopux*) 9156 lt_prog_compiler_wl='-Wl,' 9157 # PIC (with -KPIC) is the default. 9158 lt_prog_compiler_static='-non_shared' 9159 ;; 9160 9161 linux* | k*bsd*-gnu) 9162 case $cc_basename in 9163 # old Intel for x86_64 which still supported -KPIC. 9164 ecc*) 9165 lt_prog_compiler_wl='-Wl,' 9166 lt_prog_compiler_pic='-KPIC' 9167 lt_prog_compiler_static='-static' 9168 ;; 9169 # icc used to be incompatible with GCC. 9170 # ICC 10 doesn't accept -KPIC any more. 9171 icc* | ifort*) 9172 lt_prog_compiler_wl='-Wl,' 9173 lt_prog_compiler_pic='-fPIC' 9174 lt_prog_compiler_static='-static' 9175 ;; 9176 # Lahey Fortran 8.1. 9177 lf95*) 9178 lt_prog_compiler_wl='-Wl,' 9179 lt_prog_compiler_pic='--shared' 9180 lt_prog_compiler_static='--static' 9181 ;; 9182 pgcc* | pgf77* | pgf90* | pgf95*) 9183 # Portland Group compilers (*not* the Pentium gcc compiler, 9184 # which looks to be a dead project) 9185 lt_prog_compiler_wl='-Wl,' 9186 lt_prog_compiler_pic='-fpic' 9187 lt_prog_compiler_static='-Bstatic' 9188 ;; 9189 ccc*) 9190 lt_prog_compiler_wl='-Wl,' 9191 # All Alpha code is PIC. 9192 lt_prog_compiler_static='-non_shared' 9193 ;; 9194 xl*) 9195 # IBM XL C 8.0/Fortran 10.1 on PPC 9196 lt_prog_compiler_wl='-Wl,' 9197 lt_prog_compiler_pic='-qpic' 9198 lt_prog_compiler_static='-qstaticlink' 9199 ;; 9200 *) 9201 case `$CC -V 2>&1 | sed 5q` in 9202 *Sun\ C*) 9203 # Sun C 5.9 9204 lt_prog_compiler_pic='-KPIC' 9205 lt_prog_compiler_static='-Bstatic' 9206 lt_prog_compiler_wl='-Wl,' 9207 ;; 9208 *Sun\ F*) 9209 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9210 lt_prog_compiler_pic='-KPIC' 9211 lt_prog_compiler_static='-Bstatic' 9212 lt_prog_compiler_wl='' 9213 ;; 9214 esac 9215 ;; 9216 esac 9217 ;; 9218 9219 newsos6) 9220 lt_prog_compiler_pic='-KPIC' 9221 lt_prog_compiler_static='-Bstatic' 9222 ;; 9223 9224 *nto* | *qnx*) 9225 # QNX uses GNU C++, but need to define -shared option too, otherwise 9226 # it will coredump. 9227 lt_prog_compiler_pic='-fPIC -shared' 9228 ;; 9229 9230 osf3* | osf4* | osf5*) 9231 lt_prog_compiler_wl='-Wl,' 9232 # All OSF/1 code is PIC. 9233 lt_prog_compiler_static='-non_shared' 9234 ;; 9235 9236 rdos*) 9237 lt_prog_compiler_static='-non_shared' 9238 ;; 9239 9240 solaris*) 9241 lt_prog_compiler_pic='-KPIC' 9242 lt_prog_compiler_static='-Bstatic' 9243 case $cc_basename in 9244 f77* | f90* | f95*) 9245 lt_prog_compiler_wl='-Qoption ld ';; 9246 *) 9247 lt_prog_compiler_wl='-Wl,';; 9248 esac 9249 ;; 9250 9251 sunos4*) 9252 lt_prog_compiler_wl='-Qoption ld ' 9253 lt_prog_compiler_pic='-PIC' 9254 lt_prog_compiler_static='-Bstatic' 9255 ;; 9256 9257 sysv4 | sysv4.2uw2* | sysv4.3*) 9258 lt_prog_compiler_wl='-Wl,' 9259 lt_prog_compiler_pic='-KPIC' 9260 lt_prog_compiler_static='-Bstatic' 9261 ;; 9262 9263 sysv4*MP*) 9264 if test -d /usr/nec ;then 9265 lt_prog_compiler_pic='-Kconform_pic' 9266 lt_prog_compiler_static='-Bstatic' 9267 fi 9268 ;; 9269 9270 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9271 lt_prog_compiler_wl='-Wl,' 9272 lt_prog_compiler_pic='-KPIC' 9273 lt_prog_compiler_static='-Bstatic' 9274 ;; 9275 9276 unicos*) 9277 lt_prog_compiler_wl='-Wl,' 9278 lt_prog_compiler_can_build_shared=no 9279 ;; 9280 9281 uts4*) 9282 lt_prog_compiler_pic='-pic' 9283 lt_prog_compiler_static='-Bstatic' 9284 ;; 9285 9286 *) 9287 lt_prog_compiler_can_build_shared=no 9288 ;; 9289 esac 9290 fi 9291 9292case $host_os in 9293 # For platforms which do not support PIC, -DPIC is meaningless: 9294 *djgpp*) 9295 lt_prog_compiler_pic= 9296 ;; 9297 *) 9298 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9299 ;; 9300esac 9301{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9302$as_echo "$lt_prog_compiler_pic" >&6; } 9303 9304 9305 9306 9307 9308 9309# 9310# Check to make sure the PIC flag actually works. 9311# 9312if test -n "$lt_prog_compiler_pic"; then 9313 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9314$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9315if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 9316 $as_echo_n "(cached) " >&6 9317else 9318 lt_cv_prog_compiler_pic_works=no 9319 ac_outfile=conftest.$ac_objext 9320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9321 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9322 # Insert the option either (1) after the last *FLAGS variable, or 9323 # (2) before a word containing "conftest.", or (3) at the end. 9324 # Note that $ac_compile itself does not contain backslashes and begins 9325 # with a dollar sign (not a hyphen), so the echo should work correctly. 9326 # The option is referenced via a variable to avoid confusing sed. 9327 lt_compile=`echo "$ac_compile" | $SED \ 9328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9330 -e 's:$: $lt_compiler_flag:'` 9331 (eval echo "\"\$as_me:9331: $lt_compile\"" >&5) 9332 (eval "$lt_compile" 2>conftest.err) 9333 ac_status=$? 9334 cat conftest.err >&5 9335 echo "$as_me:9335: \$? = $ac_status" >&5 9336 if (exit $ac_status) && test -s "$ac_outfile"; then 9337 # The compiler can only warn and ignore the option if not recognized 9338 # So say no if there are warnings other than the usual output. 9339 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9342 lt_cv_prog_compiler_pic_works=yes 9343 fi 9344 fi 9345 $RM conftest* 9346 9347fi 9348{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 9349$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9350 9351if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9352 case $lt_prog_compiler_pic in 9353 "" | " "*) ;; 9354 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9355 esac 9356else 9357 lt_prog_compiler_pic= 9358 lt_prog_compiler_can_build_shared=no 9359fi 9360 9361fi 9362 9363 9364 9365 9366 9367 9368# 9369# Check to make sure the static flag actually works. 9370# 9371wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9372{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9373$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9374if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9375 $as_echo_n "(cached) " >&6 9376else 9377 lt_cv_prog_compiler_static_works=no 9378 save_LDFLAGS="$LDFLAGS" 9379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9380 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9382 # The linker can only warn and ignore the option if not recognized 9383 # So say no if there are warnings 9384 if test -s conftest.err; then 9385 # Append any errors to the config.log. 9386 cat conftest.err 1>&5 9387 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9389 if diff conftest.exp conftest.er2 >/dev/null; then 9390 lt_cv_prog_compiler_static_works=yes 9391 fi 9392 else 9393 lt_cv_prog_compiler_static_works=yes 9394 fi 9395 fi 9396 $RM -r conftest* 9397 LDFLAGS="$save_LDFLAGS" 9398 9399fi 9400{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9401$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9402 9403if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9404 : 9405else 9406 lt_prog_compiler_static= 9407fi 9408 9409 9410 9411 9412 9413 9414 9415 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9416$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9417if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9418 $as_echo_n "(cached) " >&6 9419else 9420 lt_cv_prog_compiler_c_o=no 9421 $RM -r conftest 2>/dev/null 9422 mkdir conftest 9423 cd conftest 9424 mkdir out 9425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9426 9427 lt_compiler_flag="-o out/conftest2.$ac_objext" 9428 # Insert the option either (1) after the last *FLAGS variable, or 9429 # (2) before a word containing "conftest.", or (3) at the end. 9430 # Note that $ac_compile itself does not contain backslashes and begins 9431 # with a dollar sign (not a hyphen), so the echo should work correctly. 9432 lt_compile=`echo "$ac_compile" | $SED \ 9433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9435 -e 's:$: $lt_compiler_flag:'` 9436 (eval echo "\"\$as_me:9436: $lt_compile\"" >&5) 9437 (eval "$lt_compile" 2>out/conftest.err) 9438 ac_status=$? 9439 cat out/conftest.err >&5 9440 echo "$as_me:9440: \$? = $ac_status" >&5 9441 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9442 then 9443 # The compiler can only warn and ignore the option if not recognized 9444 # So say no if there are warnings 9445 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9448 lt_cv_prog_compiler_c_o=yes 9449 fi 9450 fi 9451 chmod u+w . 2>&5 9452 $RM conftest* 9453 # SGI C++ compiler will create directory out/ii_files/ for 9454 # template instantiation 9455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9456 $RM out/* && rmdir out 9457 cd .. 9458 $RM -r conftest 9459 $RM conftest* 9460 9461fi 9462{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9463$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9464 9465 9466 9467 9468 9469 9470 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9471$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9472if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9473 $as_echo_n "(cached) " >&6 9474else 9475 lt_cv_prog_compiler_c_o=no 9476 $RM -r conftest 2>/dev/null 9477 mkdir conftest 9478 cd conftest 9479 mkdir out 9480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9481 9482 lt_compiler_flag="-o out/conftest2.$ac_objext" 9483 # Insert the option either (1) after the last *FLAGS variable, or 9484 # (2) before a word containing "conftest.", or (3) at the end. 9485 # Note that $ac_compile itself does not contain backslashes and begins 9486 # with a dollar sign (not a hyphen), so the echo should work correctly. 9487 lt_compile=`echo "$ac_compile" | $SED \ 9488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9490 -e 's:$: $lt_compiler_flag:'` 9491 (eval echo "\"\$as_me:9491: $lt_compile\"" >&5) 9492 (eval "$lt_compile" 2>out/conftest.err) 9493 ac_status=$? 9494 cat out/conftest.err >&5 9495 echo "$as_me:9495: \$? = $ac_status" >&5 9496 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9497 then 9498 # The compiler can only warn and ignore the option if not recognized 9499 # So say no if there are warnings 9500 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9503 lt_cv_prog_compiler_c_o=yes 9504 fi 9505 fi 9506 chmod u+w . 2>&5 9507 $RM conftest* 9508 # SGI C++ compiler will create directory out/ii_files/ for 9509 # template instantiation 9510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9511 $RM out/* && rmdir out 9512 cd .. 9513 $RM -r conftest 9514 $RM conftest* 9515 9516fi 9517{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9518$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9519 9520 9521 9522 9523hard_links="nottested" 9524if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9525 # do not overwrite the value of need_locks provided by the user 9526 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9527$as_echo_n "checking if we can lock with hard links... " >&6; } 9528 hard_links=yes 9529 $RM conftest* 9530 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9531 touch conftest.a 9532 ln conftest.a conftest.b 2>&5 || hard_links=no 9533 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9534 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 9535$as_echo "$hard_links" >&6; } 9536 if test "$hard_links" = no; then 9537 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9538$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9539 need_locks=warn 9540 fi 9541else 9542 need_locks=no 9543fi 9544 9545 9546 9547 9548 9549 9550 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9551$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9552 9553 runpath_var= 9554 allow_undefined_flag= 9555 always_export_symbols=no 9556 archive_cmds= 9557 archive_expsym_cmds= 9558 compiler_needs_object=no 9559 enable_shared_with_static_runtimes=no 9560 export_dynamic_flag_spec= 9561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9562 hardcode_automatic=no 9563 hardcode_direct=no 9564 hardcode_direct_absolute=no 9565 hardcode_libdir_flag_spec= 9566 hardcode_libdir_flag_spec_ld= 9567 hardcode_libdir_separator= 9568 hardcode_minus_L=no 9569 hardcode_shlibpath_var=unsupported 9570 inherit_rpath=no 9571 link_all_deplibs=unknown 9572 module_cmds= 9573 module_expsym_cmds= 9574 old_archive_from_new_cmds= 9575 old_archive_from_expsyms_cmds= 9576 thread_safe_flag_spec= 9577 whole_archive_flag_spec= 9578 # include_expsyms should be a list of space-separated symbols to be *always* 9579 # included in the symbol list 9580 include_expsyms= 9581 # exclude_expsyms can be an extended regexp of symbols to exclude 9582 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9584 # as well as any symbol that contains `d'. 9585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9587 # platforms (ab)use it in PIC code, but their linkers get confused if 9588 # the symbol is explicitly referenced. Since portable code cannot 9589 # rely on this symbol name, it's probably fine to never include it in 9590 # preloaded symbol tables. 9591 # Exclude shared library initialization/finalization symbols. 9592 extract_expsyms_cmds= 9593 9594 case $host_os in 9595 cygwin* | mingw* | pw32* | cegcc*) 9596 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9597 # When not using gcc, we currently assume that we are using 9598 # Microsoft Visual C++. 9599 if test "$GCC" != yes; then 9600 with_gnu_ld=no 9601 fi 9602 ;; 9603 interix*) 9604 # we just hope/assume this is gcc and not c89 (= MSVC++) 9605 with_gnu_ld=yes 9606 ;; 9607 openbsd*) 9608 with_gnu_ld=no 9609 ;; 9610 esac 9611 9612 ld_shlibs=yes 9613 if test "$with_gnu_ld" = yes; then 9614 # If archive_cmds runs LD, not CC, wlarc should be empty 9615 wlarc='${wl}' 9616 9617 # Set some defaults for GNU ld with shared library support. These 9618 # are reset later if shared libraries are not supported. Putting them 9619 # here allows them to be overridden if necessary. 9620 runpath_var=LD_RUN_PATH 9621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9622 export_dynamic_flag_spec='${wl}--export-dynamic' 9623 # ancient GNU ld didn't support --whole-archive et. al. 9624 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9625 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9626 else 9627 whole_archive_flag_spec= 9628 fi 9629 supports_anon_versioning=no 9630 case `$LD -v 2>&1` in 9631 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9632 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9633 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9634 *\ 2.11.*) ;; # other 2.11 versions 9635 *) supports_anon_versioning=yes ;; 9636 esac 9637 9638 # See if GNU ld supports shared libraries. 9639 case $host_os in 9640 aix[3-9]*) 9641 # On AIX/PPC, the GNU linker is very broken 9642 if test "$host_cpu" != ia64; then 9643 ld_shlibs=no 9644 cat <<_LT_EOF 1>&2 9645 9646*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9647*** to be unable to reliably create shared libraries on AIX. 9648*** Therefore, libtool is disabling shared libraries support. If you 9649*** really care for shared libraries, you may want to modify your PATH 9650*** so that a non-GNU linker is found, and then restart. 9651 9652_LT_EOF 9653 fi 9654 ;; 9655 9656 amigaos*) 9657 case $host_cpu in 9658 powerpc) 9659 # see comment about AmigaOS4 .so support 9660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9661 archive_expsym_cmds='' 9662 ;; 9663 m68k) 9664 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)' 9665 hardcode_libdir_flag_spec='-L$libdir' 9666 hardcode_minus_L=yes 9667 ;; 9668 esac 9669 ;; 9670 9671 beos*) 9672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9673 allow_undefined_flag=unsupported 9674 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9675 # support --undefined. This deserves some investigation. FIXME 9676 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9677 else 9678 ld_shlibs=no 9679 fi 9680 ;; 9681 9682 cygwin* | mingw* | pw32* | cegcc*) 9683 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9684 # as there is no search path for DLLs. 9685 hardcode_libdir_flag_spec='-L$libdir' 9686 allow_undefined_flag=unsupported 9687 always_export_symbols=no 9688 enable_shared_with_static_runtimes=yes 9689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9690 9691 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9693 # If the export-symbols file already is a .def file (1st line 9694 # is EXPORTS), use it as is; otherwise, prepend... 9695 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9696 cp $export_symbols $output_objdir/$soname.def; 9697 else 9698 echo EXPORTS > $output_objdir/$soname.def; 9699 cat $export_symbols >> $output_objdir/$soname.def; 9700 fi~ 9701 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9702 else 9703 ld_shlibs=no 9704 fi 9705 ;; 9706 9707 interix[3-9]*) 9708 hardcode_direct=no 9709 hardcode_shlibpath_var=no 9710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9711 export_dynamic_flag_spec='${wl}-E' 9712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9713 # Instead, shared libraries are loaded at an image base (0x10000000 by 9714 # default) and relocated if they conflict, which is a slow very memory 9715 # consuming and fragmenting process. To avoid this, we pick a random, 9716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9717 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9719 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' 9720 ;; 9721 9722 gnu* | linux* | tpf* | k*bsd*-gnu) 9723 tmp_diet=no 9724 if test "$host_os" = linux-dietlibc; then 9725 case $cc_basename in 9726 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9727 esac 9728 fi 9729 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9730 && test "$tmp_diet" = no 9731 then 9732 tmp_addflag= 9733 tmp_sharedflag='-shared' 9734 case $cc_basename,$host_cpu in 9735 pgcc*) # Portland Group C compiler 9736 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' 9737 tmp_addflag=' $pic_flag' 9738 ;; 9739 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9740 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' 9741 tmp_addflag=' $pic_flag -Mnomain' ;; 9742 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9743 tmp_addflag=' -i_dynamic' ;; 9744 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9745 tmp_addflag=' -i_dynamic -nofor_main' ;; 9746 ifc* | ifort*) # Intel Fortran compiler 9747 tmp_addflag=' -nofor_main' ;; 9748 lf95*) # Lahey Fortran 8.1 9749 whole_archive_flag_spec= 9750 tmp_sharedflag='--shared' ;; 9751 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9752 tmp_sharedflag='-qmkshrobj' 9753 tmp_addflag= ;; 9754 esac 9755 case `$CC -V 2>&1 | sed 5q` in 9756 *Sun\ C*) # Sun C 5.9 9757 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' 9758 compiler_needs_object=yes 9759 tmp_sharedflag='-G' ;; 9760 *Sun\ F*) # Sun Fortran 8.3 9761 tmp_sharedflag='-G' ;; 9762 esac 9763 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9764 9765 if test "x$supports_anon_versioning" = xyes; then 9766 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9768 echo "local: *; };" >> $output_objdir/$libname.ver~ 9769 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9770 fi 9771 9772 case $cc_basename in 9773 xlf*) 9774 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9775 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9776 hardcode_libdir_flag_spec= 9777 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9778 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9779 if test "x$supports_anon_versioning" = xyes; then 9780 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9782 echo "local: *; };" >> $output_objdir/$libname.ver~ 9783 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9784 fi 9785 ;; 9786 esac 9787 else 9788 ld_shlibs=no 9789 fi 9790 ;; 9791 9792 netbsd*) 9793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9794 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9795 wlarc= 9796 else 9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9799 fi 9800 ;; 9801 9802 solaris*) 9803 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9804 ld_shlibs=no 9805 cat <<_LT_EOF 1>&2 9806 9807*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9808*** create shared libraries on Solaris systems. Therefore, libtool 9809*** is disabling shared libraries support. We urge you to upgrade GNU 9810*** binutils to release 2.9.1 or newer. Another option is to modify 9811*** your PATH or compiler configuration so that the native linker is 9812*** used, and then restart. 9813 9814_LT_EOF 9815 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9817 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9818 else 9819 ld_shlibs=no 9820 fi 9821 ;; 9822 9823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9824 case `$LD -v 2>&1` in 9825 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9826 ld_shlibs=no 9827 cat <<_LT_EOF 1>&2 9828 9829*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9830*** reliably create shared libraries on SCO systems. Therefore, libtool 9831*** is disabling shared libraries support. We urge you to upgrade GNU 9832*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9833*** your PATH or compiler configuration so that the native linker is 9834*** used, and then restart. 9835 9836_LT_EOF 9837 ;; 9838 *) 9839 # For security reasons, it is highly recommended that you always 9840 # use absolute paths for naming shared libraries, and exclude the 9841 # DT_RUNPATH tag from executables and libraries. But doing so 9842 # requires that you compile everything twice, which is a pain. 9843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9847 else 9848 ld_shlibs=no 9849 fi 9850 ;; 9851 esac 9852 ;; 9853 9854 sunos4*) 9855 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9856 wlarc= 9857 hardcode_direct=yes 9858 hardcode_shlibpath_var=no 9859 ;; 9860 9861 *) 9862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9865 else 9866 ld_shlibs=no 9867 fi 9868 ;; 9869 esac 9870 9871 if test "$ld_shlibs" = no; then 9872 runpath_var= 9873 hardcode_libdir_flag_spec= 9874 export_dynamic_flag_spec= 9875 whole_archive_flag_spec= 9876 fi 9877 else 9878 # PORTME fill in a description of your system's linker (not GNU ld) 9879 case $host_os in 9880 aix3*) 9881 allow_undefined_flag=unsupported 9882 always_export_symbols=yes 9883 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' 9884 # Note: this linker hardcodes the directories in LIBPATH if there 9885 # are no directories specified by -L. 9886 hardcode_minus_L=yes 9887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9888 # Neither direct hardcoding nor static linking is supported with a 9889 # broken collect2. 9890 hardcode_direct=unsupported 9891 fi 9892 ;; 9893 9894 aix[4-9]*) 9895 if test "$host_cpu" = ia64; then 9896 # On IA64, the linker does run time linking by default, so we don't 9897 # have to do anything special. 9898 aix_use_runtimelinking=no 9899 exp_sym_flag='-Bexport' 9900 no_entry_flag="" 9901 else 9902 # If we're using GNU nm, then we don't want the "-C" option. 9903 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9904 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9905 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' 9906 else 9907 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' 9908 fi 9909 aix_use_runtimelinking=no 9910 9911 # Test if we are trying to use run time linking or normal 9912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9913 # need to do runtime linking. 9914 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9915 for ld_flag in $LDFLAGS; do 9916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9917 aix_use_runtimelinking=yes 9918 break 9919 fi 9920 done 9921 ;; 9922 esac 9923 9924 exp_sym_flag='-bexport' 9925 no_entry_flag='-bnoentry' 9926 fi 9927 9928 # When large executables or shared objects are built, AIX ld can 9929 # have problems creating the table of contents. If linking a library 9930 # or program results in "error TOC overflow" add -mminimal-toc to 9931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9933 9934 archive_cmds='' 9935 hardcode_direct=yes 9936 hardcode_direct_absolute=yes 9937 hardcode_libdir_separator=':' 9938 link_all_deplibs=yes 9939 file_list_spec='${wl}-f,' 9940 9941 if test "$GCC" = yes; then 9942 case $host_os in aix4.[012]|aix4.[012].*) 9943 # We only want to do this on AIX 4.2 and lower, the check 9944 # below for broken collect2 doesn't work under 4.3+ 9945 collect2name=`${CC} -print-prog-name=collect2` 9946 if test -f "$collect2name" && 9947 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9948 then 9949 # We have reworked collect2 9950 : 9951 else 9952 # We have old collect2 9953 hardcode_direct=unsupported 9954 # It fails to find uninstalled libraries when the uninstalled 9955 # path is not listed in the libpath. Setting hardcode_minus_L 9956 # to unsupported forces relinking 9957 hardcode_minus_L=yes 9958 hardcode_libdir_flag_spec='-L$libdir' 9959 hardcode_libdir_separator= 9960 fi 9961 ;; 9962 esac 9963 shared_flag='-shared' 9964 if test "$aix_use_runtimelinking" = yes; then 9965 shared_flag="$shared_flag "'${wl}-G' 9966 fi 9967 else 9968 # not using gcc 9969 if test "$host_cpu" = ia64; then 9970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9971 # chokes on -Wl,-G. The following line is correct: 9972 shared_flag='-G' 9973 else 9974 if test "$aix_use_runtimelinking" = yes; then 9975 shared_flag='${wl}-G' 9976 else 9977 shared_flag='${wl}-bM:SRE' 9978 fi 9979 fi 9980 fi 9981 9982 export_dynamic_flag_spec='${wl}-bexpall' 9983 # It seems that -bexpall does not export symbols beginning with 9984 # underscore (_), so it is better to generate a list of symbols to export. 9985 always_export_symbols=yes 9986 if test "$aix_use_runtimelinking" = yes; then 9987 # Warning - without using the other runtime loading flags (-brtl), 9988 # -berok will link without error, but may produce a broken library. 9989 allow_undefined_flag='-berok' 9990 # Determine the default libpath from the value encoded in an 9991 # empty executable. 9992 cat >conftest.$ac_ext <<_ACEOF 9993/* confdefs.h. */ 9994_ACEOF 9995cat confdefs.h >>conftest.$ac_ext 9996cat >>conftest.$ac_ext <<_ACEOF 9997/* end confdefs.h. */ 9998 9999int 10000main () 10001{ 10002 10003 ; 10004 return 0; 10005} 10006_ACEOF 10007rm -f conftest.$ac_objext conftest$ac_exeext 10008if { (ac_try="$ac_link" 10009case "(($ac_try" in 10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10011 *) ac_try_echo=$ac_try;; 10012esac 10013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10014$as_echo "$ac_try_echo") >&5 10015 (eval "$ac_link") 2>conftest.er1 10016 ac_status=$? 10017 grep -v '^ *+' conftest.er1 >conftest.err 10018 rm -f conftest.er1 10019 cat conftest.err >&5 10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10021 (exit $ac_status); } && { 10022 test -z "$ac_c_werror_flag" || 10023 test ! -s conftest.err 10024 } && test -s conftest$ac_exeext && { 10025 test "$cross_compiling" = yes || 10026 $as_test_x conftest$ac_exeext 10027 }; then 10028 10029lt_aix_libpath_sed=' 10030 /Import File Strings/,/^$/ { 10031 /^0/ { 10032 s/^0 *\(.*\)$/\1/ 10033 p 10034 } 10035 }' 10036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10037# Check for a 64-bit object if we didn't find anything. 10038if test -z "$aix_libpath"; then 10039 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10040fi 10041else 10042 $as_echo "$as_me: failed program was:" >&5 10043sed 's/^/| /' conftest.$ac_ext >&5 10044 10045 10046fi 10047 10048rm -rf conftest.dSYM 10049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10050 conftest$ac_exeext conftest.$ac_ext 10051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10052 10053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10054 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" 10055 else 10056 if test "$host_cpu" = ia64; then 10057 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10058 allow_undefined_flag="-z nodefs" 10059 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" 10060 else 10061 # Determine the default libpath from the value encoded in an 10062 # empty executable. 10063 cat >conftest.$ac_ext <<_ACEOF 10064/* confdefs.h. */ 10065_ACEOF 10066cat confdefs.h >>conftest.$ac_ext 10067cat >>conftest.$ac_ext <<_ACEOF 10068/* end confdefs.h. */ 10069 10070int 10071main () 10072{ 10073 10074 ; 10075 return 0; 10076} 10077_ACEOF 10078rm -f conftest.$ac_objext conftest$ac_exeext 10079if { (ac_try="$ac_link" 10080case "(($ac_try" in 10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10082 *) ac_try_echo=$ac_try;; 10083esac 10084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10085$as_echo "$ac_try_echo") >&5 10086 (eval "$ac_link") 2>conftest.er1 10087 ac_status=$? 10088 grep -v '^ *+' conftest.er1 >conftest.err 10089 rm -f conftest.er1 10090 cat conftest.err >&5 10091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10092 (exit $ac_status); } && { 10093 test -z "$ac_c_werror_flag" || 10094 test ! -s conftest.err 10095 } && test -s conftest$ac_exeext && { 10096 test "$cross_compiling" = yes || 10097 $as_test_x conftest$ac_exeext 10098 }; then 10099 10100lt_aix_libpath_sed=' 10101 /Import File Strings/,/^$/ { 10102 /^0/ { 10103 s/^0 *\(.*\)$/\1/ 10104 p 10105 } 10106 }' 10107aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10108# Check for a 64-bit object if we didn't find anything. 10109if test -z "$aix_libpath"; then 10110 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10111fi 10112else 10113 $as_echo "$as_me: failed program was:" >&5 10114sed 's/^/| /' conftest.$ac_ext >&5 10115 10116 10117fi 10118 10119rm -rf conftest.dSYM 10120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10121 conftest$ac_exeext conftest.$ac_ext 10122if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10123 10124 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10125 # Warning - without using the other run time loading flags, 10126 # -berok will link without error, but may produce a broken library. 10127 no_undefined_flag=' ${wl}-bernotok' 10128 allow_undefined_flag=' ${wl}-berok' 10129 # Exported symbols can be pulled into shared objects from archives 10130 whole_archive_flag_spec='$convenience' 10131 archive_cmds_need_lc=yes 10132 # This is similar to how AIX traditionally builds its shared libraries. 10133 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' 10134 fi 10135 fi 10136 ;; 10137 10138 amigaos*) 10139 case $host_cpu in 10140 powerpc) 10141 # see comment about AmigaOS4 .so support 10142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10143 archive_expsym_cmds='' 10144 ;; 10145 m68k) 10146 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)' 10147 hardcode_libdir_flag_spec='-L$libdir' 10148 hardcode_minus_L=yes 10149 ;; 10150 esac 10151 ;; 10152 10153 bsdi[45]*) 10154 export_dynamic_flag_spec=-rdynamic 10155 ;; 10156 10157 cygwin* | mingw* | pw32* | cegcc*) 10158 # When not using gcc, we currently assume that we are using 10159 # Microsoft Visual C++. 10160 # hardcode_libdir_flag_spec is actually meaningless, as there is 10161 # no search path for DLLs. 10162 hardcode_libdir_flag_spec=' ' 10163 allow_undefined_flag=unsupported 10164 # Tell ltmain to make .lib files, not .a files. 10165 libext=lib 10166 # Tell ltmain to make .dll files, not .so files. 10167 shrext_cmds=".dll" 10168 # FIXME: Setting linknames here is a bad hack. 10169 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10170 # The linker will automatically build a .lib file if we build a DLL. 10171 old_archive_from_new_cmds='true' 10172 # FIXME: Should let the user specify the lib program. 10173 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10174 fix_srcfile_path='`cygpath -w "$srcfile"`' 10175 enable_shared_with_static_runtimes=yes 10176 ;; 10177 10178 darwin* | rhapsody*) 10179 10180 10181 archive_cmds_need_lc=no 10182 hardcode_direct=no 10183 hardcode_automatic=yes 10184 hardcode_shlibpath_var=unsupported 10185 whole_archive_flag_spec='' 10186 link_all_deplibs=yes 10187 allow_undefined_flag="$_lt_dar_allow_undefined" 10188 case $cc_basename in 10189 ifort*) _lt_dar_can_shared=yes ;; 10190 *) _lt_dar_can_shared=$GCC ;; 10191 esac 10192 if test "$_lt_dar_can_shared" = "yes"; then 10193 output_verbose_link_cmd=echo 10194 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10195 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10196 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}" 10197 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}" 10198 10199 else 10200 ld_shlibs=no 10201 fi 10202 10203 ;; 10204 10205 dgux*) 10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10207 hardcode_libdir_flag_spec='-L$libdir' 10208 hardcode_shlibpath_var=no 10209 ;; 10210 10211 freebsd1*) 10212 ld_shlibs=no 10213 ;; 10214 10215 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10216 # support. Future versions do this automatically, but an explicit c++rt0.o 10217 # does not break anything, and helps significantly (at the cost of a little 10218 # extra space). 10219 freebsd2.2*) 10220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10221 hardcode_libdir_flag_spec='-R$libdir' 10222 hardcode_direct=yes 10223 hardcode_shlibpath_var=no 10224 ;; 10225 10226 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10227 freebsd2*) 10228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10229 hardcode_direct=yes 10230 hardcode_minus_L=yes 10231 hardcode_shlibpath_var=no 10232 ;; 10233 10234 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10235 freebsd* | dragonfly*) 10236 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10237 hardcode_libdir_flag_spec='-R$libdir' 10238 hardcode_direct=yes 10239 hardcode_shlibpath_var=no 10240 ;; 10241 10242 hpux9*) 10243 if test "$GCC" = yes; then 10244 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' 10245 else 10246 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' 10247 fi 10248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10249 hardcode_libdir_separator=: 10250 hardcode_direct=yes 10251 10252 # hardcode_minus_L: Not really in the search PATH, 10253 # but as the default location of the library. 10254 hardcode_minus_L=yes 10255 export_dynamic_flag_spec='${wl}-E' 10256 ;; 10257 10258 hpux10*) 10259 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10260 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10261 else 10262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10263 fi 10264 if test "$with_gnu_ld" = no; then 10265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10266 hardcode_libdir_flag_spec_ld='+b $libdir' 10267 hardcode_libdir_separator=: 10268 hardcode_direct=yes 10269 hardcode_direct_absolute=yes 10270 export_dynamic_flag_spec='${wl}-E' 10271 # hardcode_minus_L: Not really in the search PATH, 10272 # but as the default location of the library. 10273 hardcode_minus_L=yes 10274 fi 10275 ;; 10276 10277 hpux11*) 10278 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10279 case $host_cpu in 10280 hppa*64*) 10281 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10282 ;; 10283 ia64*) 10284 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10285 ;; 10286 *) 10287 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10288 ;; 10289 esac 10290 else 10291 case $host_cpu in 10292 hppa*64*) 10293 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10294 ;; 10295 ia64*) 10296 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10297 ;; 10298 *) 10299 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10300 ;; 10301 esac 10302 fi 10303 if test "$with_gnu_ld" = no; then 10304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10305 hardcode_libdir_separator=: 10306 10307 case $host_cpu in 10308 hppa*64*|ia64*) 10309 hardcode_direct=no 10310 hardcode_shlibpath_var=no 10311 ;; 10312 *) 10313 hardcode_direct=yes 10314 hardcode_direct_absolute=yes 10315 export_dynamic_flag_spec='${wl}-E' 10316 10317 # hardcode_minus_L: Not really in the search PATH, 10318 # but as the default location of the library. 10319 hardcode_minus_L=yes 10320 ;; 10321 esac 10322 fi 10323 ;; 10324 10325 irix5* | irix6* | nonstopux*) 10326 if test "$GCC" = yes; then 10327 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' 10328 # Try to use the -exported_symbol ld option, if it does not 10329 # work, assume that -exports_file does not work either and 10330 # implicitly export all symbols. 10331 save_LDFLAGS="$LDFLAGS" 10332 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10333 cat >conftest.$ac_ext <<_ACEOF 10334int foo(void) {} 10335_ACEOF 10336rm -f conftest.$ac_objext conftest$ac_exeext 10337if { (ac_try="$ac_link" 10338case "(($ac_try" in 10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10340 *) ac_try_echo=$ac_try;; 10341esac 10342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10343$as_echo "$ac_try_echo") >&5 10344 (eval "$ac_link") 2>conftest.er1 10345 ac_status=$? 10346 grep -v '^ *+' conftest.er1 >conftest.err 10347 rm -f conftest.er1 10348 cat conftest.err >&5 10349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10350 (exit $ac_status); } && { 10351 test -z "$ac_c_werror_flag" || 10352 test ! -s conftest.err 10353 } && test -s conftest$ac_exeext && { 10354 test "$cross_compiling" = yes || 10355 $as_test_x conftest$ac_exeext 10356 }; then 10357 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' 10358 10359else 10360 $as_echo "$as_me: failed program was:" >&5 10361sed 's/^/| /' conftest.$ac_ext >&5 10362 10363 10364fi 10365 10366rm -rf conftest.dSYM 10367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10368 conftest$ac_exeext conftest.$ac_ext 10369 LDFLAGS="$save_LDFLAGS" 10370 else 10371 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' 10372 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' 10373 fi 10374 archive_cmds_need_lc='no' 10375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10376 hardcode_libdir_separator=: 10377 inherit_rpath=yes 10378 link_all_deplibs=yes 10379 ;; 10380 10381 netbsd*) 10382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10384 else 10385 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10386 fi 10387 hardcode_libdir_flag_spec='-R$libdir' 10388 hardcode_direct=yes 10389 hardcode_shlibpath_var=no 10390 ;; 10391 10392 newsos6) 10393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10394 hardcode_direct=yes 10395 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10396 hardcode_libdir_separator=: 10397 hardcode_shlibpath_var=no 10398 ;; 10399 10400 *nto* | *qnx*) 10401 ;; 10402 10403 openbsd*) 10404 if test -f /usr/libexec/ld.so; then 10405 hardcode_direct=yes 10406 hardcode_shlibpath_var=no 10407 hardcode_direct_absolute=yes 10408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10410 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10412 export_dynamic_flag_spec='${wl}-E' 10413 else 10414 case $host_os in 10415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10417 hardcode_libdir_flag_spec='-R$libdir' 10418 ;; 10419 *) 10420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10422 ;; 10423 esac 10424 fi 10425 else 10426 ld_shlibs=no 10427 fi 10428 ;; 10429 10430 os2*) 10431 hardcode_libdir_flag_spec='-L$libdir' 10432 hardcode_minus_L=yes 10433 allow_undefined_flag=unsupported 10434 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' 10435 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10436 ;; 10437 10438 osf3*) 10439 if test "$GCC" = yes; then 10440 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10441 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' 10442 else 10443 allow_undefined_flag=' -expect_unresolved \*' 10444 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' 10445 fi 10446 archive_cmds_need_lc='no' 10447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10448 hardcode_libdir_separator=: 10449 ;; 10450 10451 osf4* | osf5*) # as osf3* with the addition of -msym flag 10452 if test "$GCC" = yes; then 10453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10454 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' 10455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10456 else 10457 allow_undefined_flag=' -expect_unresolved \*' 10458 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' 10459 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~ 10460 $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' 10461 10462 # Both c and cxx compiler support -rpath directly 10463 hardcode_libdir_flag_spec='-rpath $libdir' 10464 fi 10465 archive_cmds_need_lc='no' 10466 hardcode_libdir_separator=: 10467 ;; 10468 10469 solaris*) 10470 no_undefined_flag=' -z defs' 10471 if test "$GCC" = yes; then 10472 wlarc='${wl}' 10473 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10475 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10476 else 10477 case `$CC -V 2>&1` in 10478 *"Compilers 5.0"*) 10479 wlarc='' 10480 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10481 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10482 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10483 ;; 10484 *) 10485 wlarc='${wl}' 10486 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10488 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10489 ;; 10490 esac 10491 fi 10492 hardcode_libdir_flag_spec='-R$libdir' 10493 hardcode_shlibpath_var=no 10494 case $host_os in 10495 solaris2.[0-5] | solaris2.[0-5].*) ;; 10496 *) 10497 # The compiler driver will combine and reorder linker options, 10498 # but understands `-z linker_flag'. GCC discards it without `$wl', 10499 # but is careful enough not to reorder. 10500 # Supported since Solaris 2.6 (maybe 2.5.1?) 10501 if test "$GCC" = yes; then 10502 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10503 else 10504 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10505 fi 10506 ;; 10507 esac 10508 link_all_deplibs=yes 10509 ;; 10510 10511 sunos4*) 10512 if test "x$host_vendor" = xsequent; then 10513 # Use $CC to link under sequent, because it throws in some extra .o 10514 # files that make .init and .fini sections work. 10515 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10516 else 10517 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10518 fi 10519 hardcode_libdir_flag_spec='-L$libdir' 10520 hardcode_direct=yes 10521 hardcode_minus_L=yes 10522 hardcode_shlibpath_var=no 10523 ;; 10524 10525 sysv4) 10526 case $host_vendor in 10527 sni) 10528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10529 hardcode_direct=yes # is this really true??? 10530 ;; 10531 siemens) 10532 ## LD is ld it makes a PLAMLIB 10533 ## CC just makes a GrossModule. 10534 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10535 reload_cmds='$CC -r -o $output$reload_objs' 10536 hardcode_direct=no 10537 ;; 10538 motorola) 10539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10540 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10541 ;; 10542 esac 10543 runpath_var='LD_RUN_PATH' 10544 hardcode_shlibpath_var=no 10545 ;; 10546 10547 sysv4.3*) 10548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10549 hardcode_shlibpath_var=no 10550 export_dynamic_flag_spec='-Bexport' 10551 ;; 10552 10553 sysv4*MP*) 10554 if test -d /usr/nec; then 10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10556 hardcode_shlibpath_var=no 10557 runpath_var=LD_RUN_PATH 10558 hardcode_runpath_var=yes 10559 ld_shlibs=yes 10560 fi 10561 ;; 10562 10563 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10564 no_undefined_flag='${wl}-z,text' 10565 archive_cmds_need_lc=no 10566 hardcode_shlibpath_var=no 10567 runpath_var='LD_RUN_PATH' 10568 10569 if test "$GCC" = yes; then 10570 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10571 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10572 else 10573 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10574 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10575 fi 10576 ;; 10577 10578 sysv5* | sco3.2v5* | sco5v6*) 10579 # Note: We can NOT use -z defs as we might desire, because we do not 10580 # link with -lc, and that would cause any symbols used from libc to 10581 # always be unresolved, which means just about no library would 10582 # ever link correctly. If we're not using GNU ld we use -z text 10583 # though, which does catch some bad symbols but isn't as heavy-handed 10584 # as -z defs. 10585 no_undefined_flag='${wl}-z,text' 10586 allow_undefined_flag='${wl}-z,nodefs' 10587 archive_cmds_need_lc=no 10588 hardcode_shlibpath_var=no 10589 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10590 hardcode_libdir_separator=':' 10591 link_all_deplibs=yes 10592 export_dynamic_flag_spec='${wl}-Bexport' 10593 runpath_var='LD_RUN_PATH' 10594 10595 if test "$GCC" = yes; then 10596 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10597 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10598 else 10599 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10600 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10601 fi 10602 ;; 10603 10604 uts4*) 10605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10606 hardcode_libdir_flag_spec='-L$libdir' 10607 hardcode_shlibpath_var=no 10608 ;; 10609 10610 *) 10611 ld_shlibs=no 10612 ;; 10613 esac 10614 10615 if test x$host_vendor = xsni; then 10616 case $host in 10617 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10618 export_dynamic_flag_spec='${wl}-Blargedynsym' 10619 ;; 10620 esac 10621 fi 10622 fi 10623 10624{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10625$as_echo "$ld_shlibs" >&6; } 10626test "$ld_shlibs" = no && can_build_shared=no 10627 10628with_gnu_ld=$with_gnu_ld 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644# 10645# Do we need to explicitly link libc? 10646# 10647case "x$archive_cmds_need_lc" in 10648x|xyes) 10649 # Assume -lc should be added 10650 archive_cmds_need_lc=yes 10651 10652 if test "$enable_shared" = yes && test "$GCC" = yes; then 10653 case $archive_cmds in 10654 *'~'*) 10655 # FIXME: we may have to deal with multi-command sequences. 10656 ;; 10657 '$CC '*) 10658 # Test whether the compiler implicitly links with -lc since on some 10659 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10660 # to ld, don't add -lc before -lgcc. 10661 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10662$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10663 $RM conftest* 10664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10665 10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10667 (eval $ac_compile) 2>&5 10668 ac_status=$? 10669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10670 (exit $ac_status); } 2>conftest.err; then 10671 soname=conftest 10672 lib=conftest 10673 libobjs=conftest.$ac_objext 10674 deplibs= 10675 wl=$lt_prog_compiler_wl 10676 pic_flag=$lt_prog_compiler_pic 10677 compiler_flags=-v 10678 linker_flags=-v 10679 verstring= 10680 output_objdir=. 10681 libname=conftest 10682 lt_save_allow_undefined_flag=$allow_undefined_flag 10683 allow_undefined_flag= 10684 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10685 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10686 ac_status=$? 10687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10688 (exit $ac_status); } 10689 then 10690 archive_cmds_need_lc=no 10691 else 10692 archive_cmds_need_lc=yes 10693 fi 10694 allow_undefined_flag=$lt_save_allow_undefined_flag 10695 else 10696 cat conftest.err 1>&5 10697 fi 10698 $RM conftest* 10699 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10700$as_echo "$archive_cmds_need_lc" >&6; } 10701 ;; 10702 esac 10703 fi 10704 ;; 10705esac 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10864$as_echo_n "checking dynamic linker characteristics... " >&6; } 10865 10866if test "$GCC" = yes; then 10867 case $host_os in 10868 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10869 *) lt_awk_arg="/^libraries:/" ;; 10870 esac 10871 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10872 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10873 # if the path contains ";" then we assume it to be the separator 10874 # otherwise default to the standard path separator (i.e. ":") - it is 10875 # assumed that no part of a normal pathname contains ";" but that should 10876 # okay in the real world where ";" in dirpaths is itself problematic. 10877 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10878 else 10879 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10880 fi 10881 # Ok, now we have the path, separated by spaces, we can step through it 10882 # and add multilib dir if necessary. 10883 lt_tmp_lt_search_path_spec= 10884 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10885 for lt_sys_path in $lt_search_path_spec; do 10886 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10887 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10888 else 10889 test -d "$lt_sys_path" && \ 10890 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10891 fi 10892 done 10893 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10894BEGIN {RS=" "; FS="/|\n";} { 10895 lt_foo=""; 10896 lt_count=0; 10897 for (lt_i = NF; lt_i > 0; lt_i--) { 10898 if ($lt_i != "" && $lt_i != ".") { 10899 if ($lt_i == "..") { 10900 lt_count++; 10901 } else { 10902 if (lt_count == 0) { 10903 lt_foo="/" $lt_i lt_foo; 10904 } else { 10905 lt_count--; 10906 } 10907 } 10908 } 10909 } 10910 if (lt_foo != "") { lt_freq[lt_foo]++; } 10911 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10912}'` 10913 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10914else 10915 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10916fi 10917library_names_spec= 10918libname_spec='lib$name' 10919soname_spec= 10920shrext_cmds=".so" 10921postinstall_cmds= 10922postuninstall_cmds= 10923finish_cmds= 10924finish_eval= 10925shlibpath_var= 10926shlibpath_overrides_runpath=unknown 10927version_type=none 10928dynamic_linker="$host_os ld.so" 10929sys_lib_dlsearch_path_spec="/lib /usr/lib" 10930need_lib_prefix=unknown 10931hardcode_into_libs=no 10932 10933# when you set need_version to no, make sure it does not cause -set_version 10934# flags to be left without arguments 10935need_version=unknown 10936 10937case $host_os in 10938aix3*) 10939 version_type=linux 10940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10941 shlibpath_var=LIBPATH 10942 10943 # AIX 3 has no versioning support, so we append a major version to the name. 10944 soname_spec='${libname}${release}${shared_ext}$major' 10945 ;; 10946 10947aix[4-9]*) 10948 version_type=linux 10949 need_lib_prefix=no 10950 need_version=no 10951 hardcode_into_libs=yes 10952 if test "$host_cpu" = ia64; then 10953 # AIX 5 supports IA64 10954 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10955 shlibpath_var=LD_LIBRARY_PATH 10956 else 10957 # With GCC up to 2.95.x, collect2 would create an import file 10958 # for dependence libraries. The import file would start with 10959 # the line `#! .'. This would cause the generated library to 10960 # depend on `.', always an invalid library. This was fixed in 10961 # development snapshots of GCC prior to 3.0. 10962 case $host_os in 10963 aix4 | aix4.[01] | aix4.[01].*) 10964 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10965 echo ' yes ' 10966 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10967 : 10968 else 10969 can_build_shared=no 10970 fi 10971 ;; 10972 esac 10973 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10974 # soname into executable. Probably we can add versioning support to 10975 # collect2, so additional links can be useful in future. 10976 if test "$aix_use_runtimelinking" = yes; then 10977 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10978 # instead of lib<name>.a to let people know that these are not 10979 # typical AIX shared libraries. 10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10981 else 10982 # We preserve .a as extension for shared libraries through AIX4.2 10983 # and later when we are not doing run time linking. 10984 library_names_spec='${libname}${release}.a $libname.a' 10985 soname_spec='${libname}${release}${shared_ext}$major' 10986 fi 10987 shlibpath_var=LIBPATH 10988 fi 10989 ;; 10990 10991amigaos*) 10992 case $host_cpu in 10993 powerpc) 10994 # Since July 2007 AmigaOS4 officially supports .so libraries. 10995 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10997 ;; 10998 m68k) 10999 library_names_spec='$libname.ixlibrary $libname.a' 11000 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11001 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' 11002 ;; 11003 esac 11004 ;; 11005 11006beos*) 11007 library_names_spec='${libname}${shared_ext}' 11008 dynamic_linker="$host_os ld.so" 11009 shlibpath_var=LIBRARY_PATH 11010 ;; 11011 11012bsdi[45]*) 11013 version_type=linux 11014 need_version=no 11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11016 soname_spec='${libname}${release}${shared_ext}$major' 11017 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11018 shlibpath_var=LD_LIBRARY_PATH 11019 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11020 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11021 # the default ld.so.conf also contains /usr/contrib/lib and 11022 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11023 # libtool to hard-code these into programs 11024 ;; 11025 11026cygwin* | mingw* | pw32* | cegcc*) 11027 version_type=windows 11028 shrext_cmds=".dll" 11029 need_version=no 11030 need_lib_prefix=no 11031 11032 case $GCC,$host_os in 11033 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11034 library_names_spec='$libname.dll.a' 11035 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11036 postinstall_cmds='base_file=`basename \${file}`~ 11037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11038 dldir=$destdir/`dirname \$dlpath`~ 11039 test -d \$dldir || mkdir -p \$dldir~ 11040 $install_prog $dir/$dlname \$dldir/$dlname~ 11041 chmod a+x \$dldir/$dlname~ 11042 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11043 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11044 fi' 11045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11046 dlpath=$dir/\$dldll~ 11047 $RM \$dlpath' 11048 shlibpath_overrides_runpath=yes 11049 11050 case $host_os in 11051 cygwin*) 11052 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11053 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11054 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11055 ;; 11056 mingw* | cegcc*) 11057 # MinGW DLLs use traditional 'lib' prefix 11058 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11059 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11060 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11061 # It is most probably a Windows format PATH printed by 11062 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11063 # path with ; separators, and with drive letters. We can handle the 11064 # drive letters (cygwin fileutils understands them), so leave them, 11065 # especially as we might pass files found there to a mingw objdump, 11066 # which wouldn't understand a cygwinified path. Ahh. 11067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11068 else 11069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11070 fi 11071 ;; 11072 pw32*) 11073 # pw32 DLLs use 'pw' prefix rather than 'lib' 11074 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11075 ;; 11076 esac 11077 ;; 11078 11079 *) 11080 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11081 ;; 11082 esac 11083 dynamic_linker='Win32 ld.exe' 11084 # FIXME: first we should search . and the directory the executable is in 11085 shlibpath_var=PATH 11086 ;; 11087 11088darwin* | rhapsody*) 11089 dynamic_linker="$host_os dyld" 11090 version_type=darwin 11091 need_lib_prefix=no 11092 need_version=no 11093 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11094 soname_spec='${libname}${release}${major}$shared_ext' 11095 shlibpath_overrides_runpath=yes 11096 shlibpath_var=DYLD_LIBRARY_PATH 11097 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11098 11099 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11101 ;; 11102 11103dgux*) 11104 version_type=linux 11105 need_lib_prefix=no 11106 need_version=no 11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11108 soname_spec='${libname}${release}${shared_ext}$major' 11109 shlibpath_var=LD_LIBRARY_PATH 11110 ;; 11111 11112freebsd1*) 11113 dynamic_linker=no 11114 ;; 11115 11116freebsd* | dragonfly*) 11117 # DragonFly does not have aout. When/if they implement a new 11118 # versioning mechanism, adjust this. 11119 if test -x /usr/bin/objformat; then 11120 objformat=`/usr/bin/objformat` 11121 else 11122 case $host_os in 11123 freebsd[123]*) objformat=aout ;; 11124 *) objformat=elf ;; 11125 esac 11126 fi 11127 version_type=freebsd-$objformat 11128 case $version_type in 11129 freebsd-elf*) 11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11131 need_version=no 11132 need_lib_prefix=no 11133 ;; 11134 freebsd-*) 11135 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11136 need_version=yes 11137 ;; 11138 esac 11139 shlibpath_var=LD_LIBRARY_PATH 11140 case $host_os in 11141 freebsd2*) 11142 shlibpath_overrides_runpath=yes 11143 ;; 11144 freebsd3.[01]* | freebsdelf3.[01]*) 11145 shlibpath_overrides_runpath=yes 11146 hardcode_into_libs=yes 11147 ;; 11148 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11149 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11150 shlibpath_overrides_runpath=no 11151 hardcode_into_libs=yes 11152 ;; 11153 *) # from 4.6 on, and DragonFly 11154 shlibpath_overrides_runpath=yes 11155 hardcode_into_libs=yes 11156 ;; 11157 esac 11158 ;; 11159 11160gnu*) 11161 version_type=linux 11162 need_lib_prefix=no 11163 need_version=no 11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11165 soname_spec='${libname}${release}${shared_ext}$major' 11166 shlibpath_var=LD_LIBRARY_PATH 11167 hardcode_into_libs=yes 11168 ;; 11169 11170hpux9* | hpux10* | hpux11*) 11171 # Give a soname corresponding to the major version so that dld.sl refuses to 11172 # link against other versions. 11173 version_type=sunos 11174 need_lib_prefix=no 11175 need_version=no 11176 case $host_cpu in 11177 ia64*) 11178 shrext_cmds='.so' 11179 hardcode_into_libs=yes 11180 dynamic_linker="$host_os dld.so" 11181 shlibpath_var=LD_LIBRARY_PATH 11182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11184 soname_spec='${libname}${release}${shared_ext}$major' 11185 if test "X$HPUX_IA64_MODE" = X32; then 11186 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11187 else 11188 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11189 fi 11190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11191 ;; 11192 hppa*64*) 11193 shrext_cmds='.sl' 11194 hardcode_into_libs=yes 11195 dynamic_linker="$host_os dld.sl" 11196 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11199 soname_spec='${libname}${release}${shared_ext}$major' 11200 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11202 ;; 11203 *) 11204 shrext_cmds='.sl' 11205 dynamic_linker="$host_os dld.sl" 11206 shlibpath_var=SHLIB_PATH 11207 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11209 soname_spec='${libname}${release}${shared_ext}$major' 11210 ;; 11211 esac 11212 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11213 postinstall_cmds='chmod 555 $lib' 11214 ;; 11215 11216interix[3-9]*) 11217 version_type=linux 11218 need_lib_prefix=no 11219 need_version=no 11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11221 soname_spec='${libname}${release}${shared_ext}$major' 11222 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11223 shlibpath_var=LD_LIBRARY_PATH 11224 shlibpath_overrides_runpath=no 11225 hardcode_into_libs=yes 11226 ;; 11227 11228irix5* | irix6* | nonstopux*) 11229 case $host_os in 11230 nonstopux*) version_type=nonstopux ;; 11231 *) 11232 if test "$lt_cv_prog_gnu_ld" = yes; then 11233 version_type=linux 11234 else 11235 version_type=irix 11236 fi ;; 11237 esac 11238 need_lib_prefix=no 11239 need_version=no 11240 soname_spec='${libname}${release}${shared_ext}$major' 11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11242 case $host_os in 11243 irix5* | nonstopux*) 11244 libsuff= shlibsuff= 11245 ;; 11246 *) 11247 case $LD in # libtool.m4 will add one of these switches to LD 11248 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11249 libsuff= shlibsuff= libmagic=32-bit;; 11250 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11251 libsuff=32 shlibsuff=N32 libmagic=N32;; 11252 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11253 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11254 *) libsuff= shlibsuff= libmagic=never-match;; 11255 esac 11256 ;; 11257 esac 11258 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11259 shlibpath_overrides_runpath=no 11260 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11261 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11262 hardcode_into_libs=yes 11263 ;; 11264 11265# No shared lib support for Linux oldld, aout, or coff. 11266linux*oldld* | linux*aout* | linux*coff*) 11267 dynamic_linker=no 11268 ;; 11269 11270# This must be Linux ELF. 11271linux* | k*bsd*-gnu) 11272 version_type=linux 11273 need_lib_prefix=no 11274 need_version=no 11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11276 soname_spec='${libname}${release}${shared_ext}$major' 11277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11278 shlibpath_var=LD_LIBRARY_PATH 11279 shlibpath_overrides_runpath=no 11280 # Some binutils ld are patched to set DT_RUNPATH 11281 save_LDFLAGS=$LDFLAGS 11282 save_libdir=$libdir 11283 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11284 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11285 cat >conftest.$ac_ext <<_ACEOF 11286/* confdefs.h. */ 11287_ACEOF 11288cat confdefs.h >>conftest.$ac_ext 11289cat >>conftest.$ac_ext <<_ACEOF 11290/* end confdefs.h. */ 11291 11292int 11293main () 11294{ 11295 11296 ; 11297 return 0; 11298} 11299_ACEOF 11300rm -f conftest.$ac_objext conftest$ac_exeext 11301if { (ac_try="$ac_link" 11302case "(($ac_try" in 11303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11304 *) ac_try_echo=$ac_try;; 11305esac 11306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11307$as_echo "$ac_try_echo") >&5 11308 (eval "$ac_link") 2>conftest.er1 11309 ac_status=$? 11310 grep -v '^ *+' conftest.er1 >conftest.err 11311 rm -f conftest.er1 11312 cat conftest.err >&5 11313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11314 (exit $ac_status); } && { 11315 test -z "$ac_c_werror_flag" || 11316 test ! -s conftest.err 11317 } && test -s conftest$ac_exeext && { 11318 test "$cross_compiling" = yes || 11319 $as_test_x conftest$ac_exeext 11320 }; then 11321 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 11322 shlibpath_overrides_runpath=yes 11323fi 11324 11325else 11326 $as_echo "$as_me: failed program was:" >&5 11327sed 's/^/| /' conftest.$ac_ext >&5 11328 11329 11330fi 11331 11332rm -rf conftest.dSYM 11333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11334 conftest$ac_exeext conftest.$ac_ext 11335 LDFLAGS=$save_LDFLAGS 11336 libdir=$save_libdir 11337 11338 # This implies no fast_install, which is unacceptable. 11339 # Some rework will be needed to allow for fast_install 11340 # before this can be enabled. 11341 hardcode_into_libs=yes 11342 11343 # Append ld.so.conf contents to the search path 11344 if test -f /etc/ld.so.conf; then 11345 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' ' '` 11346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11347 fi 11348 11349 # We used to test for /lib/ld.so.1 and disable shared libraries on 11350 # powerpc, because MkLinux only supported shared libraries with the 11351 # GNU dynamic linker. Since this was broken with cross compilers, 11352 # most powerpc-linux boxes support dynamic linking these days and 11353 # people can always --disable-shared, the test was removed, and we 11354 # assume the GNU/Linux dynamic linker is in use. 11355 dynamic_linker='GNU/Linux ld.so' 11356 ;; 11357 11358netbsd*) 11359 version_type=sunos 11360 need_lib_prefix=no 11361 need_version=no 11362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11365 dynamic_linker='NetBSD (a.out) ld.so' 11366 else 11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11368 soname_spec='${libname}${release}${shared_ext}$major' 11369 dynamic_linker='NetBSD ld.elf_so' 11370 fi 11371 shlibpath_var=LD_LIBRARY_PATH 11372 shlibpath_overrides_runpath=yes 11373 hardcode_into_libs=yes 11374 ;; 11375 11376newsos6) 11377 version_type=linux 11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11379 shlibpath_var=LD_LIBRARY_PATH 11380 shlibpath_overrides_runpath=yes 11381 ;; 11382 11383*nto* | *qnx*) 11384 version_type=qnx 11385 need_lib_prefix=no 11386 need_version=no 11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11388 soname_spec='${libname}${release}${shared_ext}$major' 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=no 11391 hardcode_into_libs=yes 11392 dynamic_linker='ldqnx.so' 11393 ;; 11394 11395openbsd*) 11396 version_type=sunos 11397 sys_lib_dlsearch_path_spec="/usr/lib" 11398 need_lib_prefix=no 11399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11400 case $host_os in 11401 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11402 *) need_version=no ;; 11403 esac 11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11406 shlibpath_var=LD_LIBRARY_PATH 11407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11408 case $host_os in 11409 openbsd2.[89] | openbsd2.[89].*) 11410 shlibpath_overrides_runpath=no 11411 ;; 11412 *) 11413 shlibpath_overrides_runpath=yes 11414 ;; 11415 esac 11416 else 11417 shlibpath_overrides_runpath=yes 11418 fi 11419 ;; 11420 11421os2*) 11422 libname_spec='$name' 11423 shrext_cmds=".dll" 11424 need_lib_prefix=no 11425 library_names_spec='$libname${shared_ext} $libname.a' 11426 dynamic_linker='OS/2 ld.exe' 11427 shlibpath_var=LIBPATH 11428 ;; 11429 11430osf3* | osf4* | osf5*) 11431 version_type=osf 11432 need_lib_prefix=no 11433 need_version=no 11434 soname_spec='${libname}${release}${shared_ext}$major' 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11436 shlibpath_var=LD_LIBRARY_PATH 11437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11439 ;; 11440 11441rdos*) 11442 dynamic_linker=no 11443 ;; 11444 11445solaris*) 11446 version_type=linux 11447 need_lib_prefix=no 11448 need_version=no 11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11450 soname_spec='${libname}${release}${shared_ext}$major' 11451 shlibpath_var=LD_LIBRARY_PATH 11452 shlibpath_overrides_runpath=yes 11453 hardcode_into_libs=yes 11454 # ldd complains unless libraries are executable 11455 postinstall_cmds='chmod +x $lib' 11456 ;; 11457 11458sunos4*) 11459 version_type=sunos 11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11462 shlibpath_var=LD_LIBRARY_PATH 11463 shlibpath_overrides_runpath=yes 11464 if test "$with_gnu_ld" = yes; then 11465 need_lib_prefix=no 11466 fi 11467 need_version=yes 11468 ;; 11469 11470sysv4 | sysv4.3*) 11471 version_type=linux 11472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11473 soname_spec='${libname}${release}${shared_ext}$major' 11474 shlibpath_var=LD_LIBRARY_PATH 11475 case $host_vendor in 11476 sni) 11477 shlibpath_overrides_runpath=no 11478 need_lib_prefix=no 11479 runpath_var=LD_RUN_PATH 11480 ;; 11481 siemens) 11482 need_lib_prefix=no 11483 ;; 11484 motorola) 11485 need_lib_prefix=no 11486 need_version=no 11487 shlibpath_overrides_runpath=no 11488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11489 ;; 11490 esac 11491 ;; 11492 11493sysv4*MP*) 11494 if test -d /usr/nec ;then 11495 version_type=linux 11496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11497 soname_spec='$libname${shared_ext}.$major' 11498 shlibpath_var=LD_LIBRARY_PATH 11499 fi 11500 ;; 11501 11502sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11503 version_type=freebsd-elf 11504 need_lib_prefix=no 11505 need_version=no 11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11507 soname_spec='${libname}${release}${shared_ext}$major' 11508 shlibpath_var=LD_LIBRARY_PATH 11509 shlibpath_overrides_runpath=yes 11510 hardcode_into_libs=yes 11511 if test "$with_gnu_ld" = yes; then 11512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11513 else 11514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11515 case $host_os in 11516 sco3.2v5*) 11517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11518 ;; 11519 esac 11520 fi 11521 sys_lib_dlsearch_path_spec='/usr/lib' 11522 ;; 11523 11524tpf*) 11525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11526 version_type=linux 11527 need_lib_prefix=no 11528 need_version=no 11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11530 shlibpath_var=LD_LIBRARY_PATH 11531 shlibpath_overrides_runpath=no 11532 hardcode_into_libs=yes 11533 ;; 11534 11535uts4*) 11536 version_type=linux 11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11538 soname_spec='${libname}${release}${shared_ext}$major' 11539 shlibpath_var=LD_LIBRARY_PATH 11540 ;; 11541 11542*) 11543 dynamic_linker=no 11544 ;; 11545esac 11546{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11547$as_echo "$dynamic_linker" >&6; } 11548test "$dynamic_linker" = no && can_build_shared=no 11549 11550variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11551if test "$GCC" = yes; then 11552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11553fi 11554 11555if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11557fi 11558if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11560fi 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11649$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11650hardcode_action= 11651if test -n "$hardcode_libdir_flag_spec" || 11652 test -n "$runpath_var" || 11653 test "X$hardcode_automatic" = "Xyes" ; then 11654 11655 # We can hardcode non-existent directories. 11656 if test "$hardcode_direct" != no && 11657 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11658 # have to relink, otherwise we might link with an installed library 11659 # when we should be linking with a yet-to-be-installed one 11660 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11661 test "$hardcode_minus_L" != no; then 11662 # Linking always hardcodes the temporary library directory. 11663 hardcode_action=relink 11664 else 11665 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11666 hardcode_action=immediate 11667 fi 11668else 11669 # We cannot hardcode anything, or else we can only hardcode existing 11670 # directories. 11671 hardcode_action=unsupported 11672fi 11673{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11674$as_echo "$hardcode_action" >&6; } 11675 11676if test "$hardcode_action" = relink || 11677 test "$inherit_rpath" = yes; then 11678 # Fast installation is not supported 11679 enable_fast_install=no 11680elif test "$shlibpath_overrides_runpath" = yes || 11681 test "$enable_shared" = no; then 11682 # Fast installation is not necessary 11683 enable_fast_install=needless 11684fi 11685 11686 11687 11688 11689 11690 11691 if test "x$enable_dlopen" != xyes; then 11692 enable_dlopen=unknown 11693 enable_dlopen_self=unknown 11694 enable_dlopen_self_static=unknown 11695else 11696 lt_cv_dlopen=no 11697 lt_cv_dlopen_libs= 11698 11699 case $host_os in 11700 beos*) 11701 lt_cv_dlopen="load_add_on" 11702 lt_cv_dlopen_libs= 11703 lt_cv_dlopen_self=yes 11704 ;; 11705 11706 mingw* | pw32* | cegcc*) 11707 lt_cv_dlopen="LoadLibrary" 11708 lt_cv_dlopen_libs= 11709 ;; 11710 11711 cygwin*) 11712 lt_cv_dlopen="dlopen" 11713 lt_cv_dlopen_libs= 11714 ;; 11715 11716 darwin*) 11717 # if libdl is installed we need to link against it 11718 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11719$as_echo_n "checking for dlopen in -ldl... " >&6; } 11720if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11721 $as_echo_n "(cached) " >&6 11722else 11723 ac_check_lib_save_LIBS=$LIBS 11724LIBS="-ldl $LIBS" 11725cat >conftest.$ac_ext <<_ACEOF 11726/* confdefs.h. */ 11727_ACEOF 11728cat confdefs.h >>conftest.$ac_ext 11729cat >>conftest.$ac_ext <<_ACEOF 11730/* end confdefs.h. */ 11731 11732/* Override any GCC internal prototype to avoid an error. 11733 Use char because int might match the return type of a GCC 11734 builtin and then its argument prototype would still apply. */ 11735#ifdef __cplusplus 11736extern "C" 11737#endif 11738char dlopen (); 11739int 11740main () 11741{ 11742return dlopen (); 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747rm -f conftest.$ac_objext conftest$ac_exeext 11748if { (ac_try="$ac_link" 11749case "(($ac_try" in 11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11751 *) ac_try_echo=$ac_try;; 11752esac 11753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11754$as_echo "$ac_try_echo") >&5 11755 (eval "$ac_link") 2>conftest.er1 11756 ac_status=$? 11757 grep -v '^ *+' conftest.er1 >conftest.err 11758 rm -f conftest.er1 11759 cat conftest.err >&5 11760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11761 (exit $ac_status); } && { 11762 test -z "$ac_c_werror_flag" || 11763 test ! -s conftest.err 11764 } && test -s conftest$ac_exeext && { 11765 test "$cross_compiling" = yes || 11766 $as_test_x conftest$ac_exeext 11767 }; then 11768 ac_cv_lib_dl_dlopen=yes 11769else 11770 $as_echo "$as_me: failed program was:" >&5 11771sed 's/^/| /' conftest.$ac_ext >&5 11772 11773 ac_cv_lib_dl_dlopen=no 11774fi 11775 11776rm -rf conftest.dSYM 11777rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11778 conftest$ac_exeext conftest.$ac_ext 11779LIBS=$ac_check_lib_save_LIBS 11780fi 11781{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11782$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11783if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11784 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11785else 11786 11787 lt_cv_dlopen="dyld" 11788 lt_cv_dlopen_libs= 11789 lt_cv_dlopen_self=yes 11790 11791fi 11792 11793 ;; 11794 11795 *) 11796 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11797$as_echo_n "checking for shl_load... " >&6; } 11798if test "${ac_cv_func_shl_load+set}" = set; then 11799 $as_echo_n "(cached) " >&6 11800else 11801 cat >conftest.$ac_ext <<_ACEOF 11802/* confdefs.h. */ 11803_ACEOF 11804cat confdefs.h >>conftest.$ac_ext 11805cat >>conftest.$ac_ext <<_ACEOF 11806/* end confdefs.h. */ 11807/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11809#define shl_load innocuous_shl_load 11810 11811/* System header to define __stub macros and hopefully few prototypes, 11812 which can conflict with char shl_load (); below. 11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11814 <limits.h> exists even on freestanding compilers. */ 11815 11816#ifdef __STDC__ 11817# include <limits.h> 11818#else 11819# include <assert.h> 11820#endif 11821 11822#undef shl_load 11823 11824/* Override any GCC internal prototype to avoid an error. 11825 Use char because int might match the return type of a GCC 11826 builtin and then its argument prototype would still apply. */ 11827#ifdef __cplusplus 11828extern "C" 11829#endif 11830char shl_load (); 11831/* The GNU C library defines this for functions which it implements 11832 to always fail with ENOSYS. Some functions are actually named 11833 something starting with __ and the normal name is an alias. */ 11834#if defined __stub_shl_load || defined __stub___shl_load 11835choke me 11836#endif 11837 11838int 11839main () 11840{ 11841return shl_load (); 11842 ; 11843 return 0; 11844} 11845_ACEOF 11846rm -f conftest.$ac_objext conftest$ac_exeext 11847if { (ac_try="$ac_link" 11848case "(($ac_try" in 11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11850 *) ac_try_echo=$ac_try;; 11851esac 11852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11853$as_echo "$ac_try_echo") >&5 11854 (eval "$ac_link") 2>conftest.er1 11855 ac_status=$? 11856 grep -v '^ *+' conftest.er1 >conftest.err 11857 rm -f conftest.er1 11858 cat conftest.err >&5 11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11860 (exit $ac_status); } && { 11861 test -z "$ac_c_werror_flag" || 11862 test ! -s conftest.err 11863 } && test -s conftest$ac_exeext && { 11864 test "$cross_compiling" = yes || 11865 $as_test_x conftest$ac_exeext 11866 }; then 11867 ac_cv_func_shl_load=yes 11868else 11869 $as_echo "$as_me: failed program was:" >&5 11870sed 's/^/| /' conftest.$ac_ext >&5 11871 11872 ac_cv_func_shl_load=no 11873fi 11874 11875rm -rf conftest.dSYM 11876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11877 conftest$ac_exeext conftest.$ac_ext 11878fi 11879{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11880$as_echo "$ac_cv_func_shl_load" >&6; } 11881if test "x$ac_cv_func_shl_load" = x""yes; then 11882 lt_cv_dlopen="shl_load" 11883else 11884 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11885$as_echo_n "checking for shl_load in -ldld... " >&6; } 11886if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11887 $as_echo_n "(cached) " >&6 11888else 11889 ac_check_lib_save_LIBS=$LIBS 11890LIBS="-ldld $LIBS" 11891cat >conftest.$ac_ext <<_ACEOF 11892/* confdefs.h. */ 11893_ACEOF 11894cat confdefs.h >>conftest.$ac_ext 11895cat >>conftest.$ac_ext <<_ACEOF 11896/* end confdefs.h. */ 11897 11898/* Override any GCC internal prototype to avoid an error. 11899 Use char because int might match the return type of a GCC 11900 builtin and then its argument prototype would still apply. */ 11901#ifdef __cplusplus 11902extern "C" 11903#endif 11904char shl_load (); 11905int 11906main () 11907{ 11908return shl_load (); 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913rm -f conftest.$ac_objext conftest$ac_exeext 11914if { (ac_try="$ac_link" 11915case "(($ac_try" in 11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11917 *) ac_try_echo=$ac_try;; 11918esac 11919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11920$as_echo "$ac_try_echo") >&5 11921 (eval "$ac_link") 2>conftest.er1 11922 ac_status=$? 11923 grep -v '^ *+' conftest.er1 >conftest.err 11924 rm -f conftest.er1 11925 cat conftest.err >&5 11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); } && { 11928 test -z "$ac_c_werror_flag" || 11929 test ! -s conftest.err 11930 } && test -s conftest$ac_exeext && { 11931 test "$cross_compiling" = yes || 11932 $as_test_x conftest$ac_exeext 11933 }; then 11934 ac_cv_lib_dld_shl_load=yes 11935else 11936 $as_echo "$as_me: failed program was:" >&5 11937sed 's/^/| /' conftest.$ac_ext >&5 11938 11939 ac_cv_lib_dld_shl_load=no 11940fi 11941 11942rm -rf conftest.dSYM 11943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11944 conftest$ac_exeext conftest.$ac_ext 11945LIBS=$ac_check_lib_save_LIBS 11946fi 11947{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11948$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11949if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11951else 11952 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11953$as_echo_n "checking for dlopen... " >&6; } 11954if test "${ac_cv_func_dlopen+set}" = set; then 11955 $as_echo_n "(cached) " >&6 11956else 11957 cat >conftest.$ac_ext <<_ACEOF 11958/* confdefs.h. */ 11959_ACEOF 11960cat confdefs.h >>conftest.$ac_ext 11961cat >>conftest.$ac_ext <<_ACEOF 11962/* end confdefs.h. */ 11963/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11964 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11965#define dlopen innocuous_dlopen 11966 11967/* System header to define __stub macros and hopefully few prototypes, 11968 which can conflict with char dlopen (); below. 11969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11970 <limits.h> exists even on freestanding compilers. */ 11971 11972#ifdef __STDC__ 11973# include <limits.h> 11974#else 11975# include <assert.h> 11976#endif 11977 11978#undef dlopen 11979 11980/* Override any GCC internal prototype to avoid an error. 11981 Use char because int might match the return type of a GCC 11982 builtin and then its argument prototype would still apply. */ 11983#ifdef __cplusplus 11984extern "C" 11985#endif 11986char dlopen (); 11987/* The GNU C library defines this for functions which it implements 11988 to always fail with ENOSYS. Some functions are actually named 11989 something starting with __ and the normal name is an alias. */ 11990#if defined __stub_dlopen || defined __stub___dlopen 11991choke me 11992#endif 11993 11994int 11995main () 11996{ 11997return dlopen (); 11998 ; 11999 return 0; 12000} 12001_ACEOF 12002rm -f conftest.$ac_objext conftest$ac_exeext 12003if { (ac_try="$ac_link" 12004case "(($ac_try" in 12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12006 *) ac_try_echo=$ac_try;; 12007esac 12008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12009$as_echo "$ac_try_echo") >&5 12010 (eval "$ac_link") 2>conftest.er1 12011 ac_status=$? 12012 grep -v '^ *+' conftest.er1 >conftest.err 12013 rm -f conftest.er1 12014 cat conftest.err >&5 12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12016 (exit $ac_status); } && { 12017 test -z "$ac_c_werror_flag" || 12018 test ! -s conftest.err 12019 } && test -s conftest$ac_exeext && { 12020 test "$cross_compiling" = yes || 12021 $as_test_x conftest$ac_exeext 12022 }; then 12023 ac_cv_func_dlopen=yes 12024else 12025 $as_echo "$as_me: failed program was:" >&5 12026sed 's/^/| /' conftest.$ac_ext >&5 12027 12028 ac_cv_func_dlopen=no 12029fi 12030 12031rm -rf conftest.dSYM 12032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12033 conftest$ac_exeext conftest.$ac_ext 12034fi 12035{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12036$as_echo "$ac_cv_func_dlopen" >&6; } 12037if test "x$ac_cv_func_dlopen" = x""yes; then 12038 lt_cv_dlopen="dlopen" 12039else 12040 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12041$as_echo_n "checking for dlopen in -ldl... " >&6; } 12042if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12043 $as_echo_n "(cached) " >&6 12044else 12045 ac_check_lib_save_LIBS=$LIBS 12046LIBS="-ldl $LIBS" 12047cat >conftest.$ac_ext <<_ACEOF 12048/* confdefs.h. */ 12049_ACEOF 12050cat confdefs.h >>conftest.$ac_ext 12051cat >>conftest.$ac_ext <<_ACEOF 12052/* end confdefs.h. */ 12053 12054/* Override any GCC internal prototype to avoid an error. 12055 Use char because int might match the return type of a GCC 12056 builtin and then its argument prototype would still apply. */ 12057#ifdef __cplusplus 12058extern "C" 12059#endif 12060char dlopen (); 12061int 12062main () 12063{ 12064return dlopen (); 12065 ; 12066 return 0; 12067} 12068_ACEOF 12069rm -f conftest.$ac_objext conftest$ac_exeext 12070if { (ac_try="$ac_link" 12071case "(($ac_try" in 12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12073 *) ac_try_echo=$ac_try;; 12074esac 12075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12076$as_echo "$ac_try_echo") >&5 12077 (eval "$ac_link") 2>conftest.er1 12078 ac_status=$? 12079 grep -v '^ *+' conftest.er1 >conftest.err 12080 rm -f conftest.er1 12081 cat conftest.err >&5 12082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12083 (exit $ac_status); } && { 12084 test -z "$ac_c_werror_flag" || 12085 test ! -s conftest.err 12086 } && test -s conftest$ac_exeext && { 12087 test "$cross_compiling" = yes || 12088 $as_test_x conftest$ac_exeext 12089 }; then 12090 ac_cv_lib_dl_dlopen=yes 12091else 12092 $as_echo "$as_me: failed program was:" >&5 12093sed 's/^/| /' conftest.$ac_ext >&5 12094 12095 ac_cv_lib_dl_dlopen=no 12096fi 12097 12098rm -rf conftest.dSYM 12099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12100 conftest$ac_exeext conftest.$ac_ext 12101LIBS=$ac_check_lib_save_LIBS 12102fi 12103{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12104$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12105if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 12106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12107else 12108 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12109$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12110if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12111 $as_echo_n "(cached) " >&6 12112else 12113 ac_check_lib_save_LIBS=$LIBS 12114LIBS="-lsvld $LIBS" 12115cat >conftest.$ac_ext <<_ACEOF 12116/* confdefs.h. */ 12117_ACEOF 12118cat confdefs.h >>conftest.$ac_ext 12119cat >>conftest.$ac_ext <<_ACEOF 12120/* end confdefs.h. */ 12121 12122/* Override any GCC internal prototype to avoid an error. 12123 Use char because int might match the return type of a GCC 12124 builtin and then its argument prototype would still apply. */ 12125#ifdef __cplusplus 12126extern "C" 12127#endif 12128char dlopen (); 12129int 12130main () 12131{ 12132return dlopen (); 12133 ; 12134 return 0; 12135} 12136_ACEOF 12137rm -f conftest.$ac_objext conftest$ac_exeext 12138if { (ac_try="$ac_link" 12139case "(($ac_try" in 12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12141 *) ac_try_echo=$ac_try;; 12142esac 12143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12144$as_echo "$ac_try_echo") >&5 12145 (eval "$ac_link") 2>conftest.er1 12146 ac_status=$? 12147 grep -v '^ *+' conftest.er1 >conftest.err 12148 rm -f conftest.er1 12149 cat conftest.err >&5 12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12151 (exit $ac_status); } && { 12152 test -z "$ac_c_werror_flag" || 12153 test ! -s conftest.err 12154 } && test -s conftest$ac_exeext && { 12155 test "$cross_compiling" = yes || 12156 $as_test_x conftest$ac_exeext 12157 }; then 12158 ac_cv_lib_svld_dlopen=yes 12159else 12160 $as_echo "$as_me: failed program was:" >&5 12161sed 's/^/| /' conftest.$ac_ext >&5 12162 12163 ac_cv_lib_svld_dlopen=no 12164fi 12165 12166rm -rf conftest.dSYM 12167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12168 conftest$ac_exeext conftest.$ac_ext 12169LIBS=$ac_check_lib_save_LIBS 12170fi 12171{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12172$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12173if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 12174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12175else 12176 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12177$as_echo_n "checking for dld_link in -ldld... " >&6; } 12178if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12179 $as_echo_n "(cached) " >&6 12180else 12181 ac_check_lib_save_LIBS=$LIBS 12182LIBS="-ldld $LIBS" 12183cat >conftest.$ac_ext <<_ACEOF 12184/* confdefs.h. */ 12185_ACEOF 12186cat confdefs.h >>conftest.$ac_ext 12187cat >>conftest.$ac_ext <<_ACEOF 12188/* end confdefs.h. */ 12189 12190/* Override any GCC internal prototype to avoid an error. 12191 Use char because int might match the return type of a GCC 12192 builtin and then its argument prototype would still apply. */ 12193#ifdef __cplusplus 12194extern "C" 12195#endif 12196char dld_link (); 12197int 12198main () 12199{ 12200return dld_link (); 12201 ; 12202 return 0; 12203} 12204_ACEOF 12205rm -f conftest.$ac_objext conftest$ac_exeext 12206if { (ac_try="$ac_link" 12207case "(($ac_try" in 12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12209 *) ac_try_echo=$ac_try;; 12210esac 12211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12212$as_echo "$ac_try_echo") >&5 12213 (eval "$ac_link") 2>conftest.er1 12214 ac_status=$? 12215 grep -v '^ *+' conftest.er1 >conftest.err 12216 rm -f conftest.er1 12217 cat conftest.err >&5 12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12219 (exit $ac_status); } && { 12220 test -z "$ac_c_werror_flag" || 12221 test ! -s conftest.err 12222 } && test -s conftest$ac_exeext && { 12223 test "$cross_compiling" = yes || 12224 $as_test_x conftest$ac_exeext 12225 }; then 12226 ac_cv_lib_dld_dld_link=yes 12227else 12228 $as_echo "$as_me: failed program was:" >&5 12229sed 's/^/| /' conftest.$ac_ext >&5 12230 12231 ac_cv_lib_dld_dld_link=no 12232fi 12233 12234rm -rf conftest.dSYM 12235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12236 conftest$ac_exeext conftest.$ac_ext 12237LIBS=$ac_check_lib_save_LIBS 12238fi 12239{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12240$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12241if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 12242 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12243fi 12244 12245 12246fi 12247 12248 12249fi 12250 12251 12252fi 12253 12254 12255fi 12256 12257 12258fi 12259 12260 ;; 12261 esac 12262 12263 if test "x$lt_cv_dlopen" != xno; then 12264 enable_dlopen=yes 12265 else 12266 enable_dlopen=no 12267 fi 12268 12269 case $lt_cv_dlopen in 12270 dlopen) 12271 save_CPPFLAGS="$CPPFLAGS" 12272 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12273 12274 save_LDFLAGS="$LDFLAGS" 12275 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12276 12277 save_LIBS="$LIBS" 12278 LIBS="$lt_cv_dlopen_libs $LIBS" 12279 12280 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12281$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12282if test "${lt_cv_dlopen_self+set}" = set; then 12283 $as_echo_n "(cached) " >&6 12284else 12285 if test "$cross_compiling" = yes; then : 12286 lt_cv_dlopen_self=cross 12287else 12288 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12289 lt_status=$lt_dlunknown 12290 cat > conftest.$ac_ext <<_LT_EOF 12291#line 12291 "configure" 12292#include "confdefs.h" 12293 12294#if HAVE_DLFCN_H 12295#include <dlfcn.h> 12296#endif 12297 12298#include <stdio.h> 12299 12300#ifdef RTLD_GLOBAL 12301# define LT_DLGLOBAL RTLD_GLOBAL 12302#else 12303# ifdef DL_GLOBAL 12304# define LT_DLGLOBAL DL_GLOBAL 12305# else 12306# define LT_DLGLOBAL 0 12307# endif 12308#endif 12309 12310/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12311 find out it does not work in some platform. */ 12312#ifndef LT_DLLAZY_OR_NOW 12313# ifdef RTLD_LAZY 12314# define LT_DLLAZY_OR_NOW RTLD_LAZY 12315# else 12316# ifdef DL_LAZY 12317# define LT_DLLAZY_OR_NOW DL_LAZY 12318# else 12319# ifdef RTLD_NOW 12320# define LT_DLLAZY_OR_NOW RTLD_NOW 12321# else 12322# ifdef DL_NOW 12323# define LT_DLLAZY_OR_NOW DL_NOW 12324# else 12325# define LT_DLLAZY_OR_NOW 0 12326# endif 12327# endif 12328# endif 12329# endif 12330#endif 12331 12332void fnord() { int i=42;} 12333int main () 12334{ 12335 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12336 int status = $lt_dlunknown; 12337 12338 if (self) 12339 { 12340 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12341 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12342 /* dlclose (self); */ 12343 } 12344 else 12345 puts (dlerror ()); 12346 12347 return status; 12348} 12349_LT_EOF 12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12351 (eval $ac_link) 2>&5 12352 ac_status=$? 12353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12354 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12355 (./conftest; exit; ) >&5 2>/dev/null 12356 lt_status=$? 12357 case x$lt_status in 12358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12361 esac 12362 else : 12363 # compilation failed 12364 lt_cv_dlopen_self=no 12365 fi 12366fi 12367rm -fr conftest* 12368 12369 12370fi 12371{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12372$as_echo "$lt_cv_dlopen_self" >&6; } 12373 12374 if test "x$lt_cv_dlopen_self" = xyes; then 12375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12376 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12377$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12378if test "${lt_cv_dlopen_self_static+set}" = set; then 12379 $as_echo_n "(cached) " >&6 12380else 12381 if test "$cross_compiling" = yes; then : 12382 lt_cv_dlopen_self_static=cross 12383else 12384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12385 lt_status=$lt_dlunknown 12386 cat > conftest.$ac_ext <<_LT_EOF 12387#line 12387 "configure" 12388#include "confdefs.h" 12389 12390#if HAVE_DLFCN_H 12391#include <dlfcn.h> 12392#endif 12393 12394#include <stdio.h> 12395 12396#ifdef RTLD_GLOBAL 12397# define LT_DLGLOBAL RTLD_GLOBAL 12398#else 12399# ifdef DL_GLOBAL 12400# define LT_DLGLOBAL DL_GLOBAL 12401# else 12402# define LT_DLGLOBAL 0 12403# endif 12404#endif 12405 12406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12407 find out it does not work in some platform. */ 12408#ifndef LT_DLLAZY_OR_NOW 12409# ifdef RTLD_LAZY 12410# define LT_DLLAZY_OR_NOW RTLD_LAZY 12411# else 12412# ifdef DL_LAZY 12413# define LT_DLLAZY_OR_NOW DL_LAZY 12414# else 12415# ifdef RTLD_NOW 12416# define LT_DLLAZY_OR_NOW RTLD_NOW 12417# else 12418# ifdef DL_NOW 12419# define LT_DLLAZY_OR_NOW DL_NOW 12420# else 12421# define LT_DLLAZY_OR_NOW 0 12422# endif 12423# endif 12424# endif 12425# endif 12426#endif 12427 12428void fnord() { int i=42;} 12429int main () 12430{ 12431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12432 int status = $lt_dlunknown; 12433 12434 if (self) 12435 { 12436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12437 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12438 /* dlclose (self); */ 12439 } 12440 else 12441 puts (dlerror ()); 12442 12443 return status; 12444} 12445_LT_EOF 12446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12447 (eval $ac_link) 2>&5 12448 ac_status=$? 12449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12450 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12451 (./conftest; exit; ) >&5 2>/dev/null 12452 lt_status=$? 12453 case x$lt_status in 12454 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12455 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12456 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12457 esac 12458 else : 12459 # compilation failed 12460 lt_cv_dlopen_self_static=no 12461 fi 12462fi 12463rm -fr conftest* 12464 12465 12466fi 12467{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12468$as_echo "$lt_cv_dlopen_self_static" >&6; } 12469 fi 12470 12471 CPPFLAGS="$save_CPPFLAGS" 12472 LDFLAGS="$save_LDFLAGS" 12473 LIBS="$save_LIBS" 12474 ;; 12475 esac 12476 12477 case $lt_cv_dlopen_self in 12478 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12479 *) enable_dlopen_self=unknown ;; 12480 esac 12481 12482 case $lt_cv_dlopen_self_static in 12483 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12484 *) enable_dlopen_self_static=unknown ;; 12485 esac 12486fi 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504striplib= 12505old_striplib= 12506{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12507$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12508if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12510 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12511 { $as_echo "$as_me:$LINENO: result: yes" >&5 12512$as_echo "yes" >&6; } 12513else 12514# FIXME - insert some real tests, host_os isn't really good enough 12515 case $host_os in 12516 darwin*) 12517 if test -n "$STRIP" ; then 12518 striplib="$STRIP -x" 12519 old_striplib="$STRIP -S" 12520 { $as_echo "$as_me:$LINENO: result: yes" >&5 12521$as_echo "yes" >&6; } 12522 else 12523 { $as_echo "$as_me:$LINENO: result: no" >&5 12524$as_echo "no" >&6; } 12525 fi 12526 ;; 12527 *) 12528 { $as_echo "$as_me:$LINENO: result: no" >&5 12529$as_echo "no" >&6; } 12530 ;; 12531 esac 12532fi 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 # Report which library types will actually be built 12546 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12547$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12548 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 12549$as_echo "$can_build_shared" >&6; } 12550 12551 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12552$as_echo_n "checking whether to build shared libraries... " >&6; } 12553 test "$can_build_shared" = "no" && enable_shared=no 12554 12555 # On AIX, shared libraries and static libraries use the same namespace, and 12556 # are all built from PIC. 12557 case $host_os in 12558 aix3*) 12559 test "$enable_shared" = yes && enable_static=no 12560 if test -n "$RANLIB"; then 12561 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12562 postinstall_cmds='$RANLIB $lib' 12563 fi 12564 ;; 12565 12566 aix[4-9]*) 12567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12568 test "$enable_shared" = yes && enable_static=no 12569 fi 12570 ;; 12571 esac 12572 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 12573$as_echo "$enable_shared" >&6; } 12574 12575 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12576$as_echo_n "checking whether to build static libraries... " >&6; } 12577 # Make sure either enable_shared or enable_static is yes. 12578 test "$enable_shared" = yes || enable_static=yes 12579 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 12580$as_echo "$enable_static" >&6; } 12581 12582 12583 12584 12585fi 12586ac_ext=c 12587ac_cpp='$CPP $CPPFLAGS' 12588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12590ac_compiler_gnu=$ac_cv_c_compiler_gnu 12591 12592CC="$lt_save_CC" 12593 12594 12595ac_ext=cpp 12596ac_cpp='$CXXCPP $CPPFLAGS' 12597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12600 12601archive_cmds_need_lc_CXX=no 12602allow_undefined_flag_CXX= 12603always_export_symbols_CXX=no 12604archive_expsym_cmds_CXX= 12605compiler_needs_object_CXX=no 12606export_dynamic_flag_spec_CXX= 12607hardcode_direct_CXX=no 12608hardcode_direct_absolute_CXX=no 12609hardcode_libdir_flag_spec_CXX= 12610hardcode_libdir_flag_spec_ld_CXX= 12611hardcode_libdir_separator_CXX= 12612hardcode_minus_L_CXX=no 12613hardcode_shlibpath_var_CXX=unsupported 12614hardcode_automatic_CXX=no 12615inherit_rpath_CXX=no 12616module_cmds_CXX= 12617module_expsym_cmds_CXX= 12618link_all_deplibs_CXX=unknown 12619old_archive_cmds_CXX=$old_archive_cmds 12620no_undefined_flag_CXX= 12621whole_archive_flag_spec_CXX= 12622enable_shared_with_static_runtimes_CXX=no 12623 12624# Source file extension for C++ test sources. 12625ac_ext=cpp 12626 12627# Object file extension for compiled C++ test sources. 12628objext=o 12629objext_CXX=$objext 12630 12631# No sense in running all these tests if we already determined that 12632# the CXX compiler isn't working. Some variables (like enable_shared) 12633# are currently assumed to apply to all compilers on this platform, 12634# and will be corrupted by setting them based on a non-working compiler. 12635if test "$_lt_caught_CXX_error" != yes; then 12636 # Code to be used in simple compile tests 12637 lt_simple_compile_test_code="int some_variable = 0;" 12638 12639 # Code to be used in simple link tests 12640 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12641 12642 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12643 12644 12645 12646 12647 12648 12649# If no C compiler was specified, use CC. 12650LTCC=${LTCC-"$CC"} 12651 12652# If no C compiler flags were specified, use CFLAGS. 12653LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12654 12655# Allow CC to be a program name with arguments. 12656compiler=$CC 12657 12658 12659 # save warnings/boilerplate of simple test code 12660 ac_outfile=conftest.$ac_objext 12661echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12662eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12663_lt_compiler_boilerplate=`cat conftest.err` 12664$RM conftest* 12665 12666 ac_outfile=conftest.$ac_objext 12667echo "$lt_simple_link_test_code" >conftest.$ac_ext 12668eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12669_lt_linker_boilerplate=`cat conftest.err` 12670$RM -r conftest* 12671 12672 12673 # Allow CC to be a program name with arguments. 12674 lt_save_CC=$CC 12675 lt_save_LD=$LD 12676 lt_save_GCC=$GCC 12677 GCC=$GXX 12678 lt_save_with_gnu_ld=$with_gnu_ld 12679 lt_save_path_LD=$lt_cv_path_LD 12680 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12682 else 12683 $as_unset lt_cv_prog_gnu_ld 12684 fi 12685 if test -n "${lt_cv_path_LDCXX+set}"; then 12686 lt_cv_path_LD=$lt_cv_path_LDCXX 12687 else 12688 $as_unset lt_cv_path_LD 12689 fi 12690 test -z "${LDCXX+set}" || LD=$LDCXX 12691 CC=${CXX-"c++"} 12692 compiler=$CC 12693 compiler_CXX=$CC 12694 for cc_temp in $compiler""; do 12695 case $cc_temp in 12696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12698 \-*) ;; 12699 *) break;; 12700 esac 12701done 12702cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12703 12704 12705 if test -n "$compiler"; then 12706 # We don't want -fno-exception when compiling C++ code, so set the 12707 # no_builtin_flag separately 12708 if test "$GXX" = yes; then 12709 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12710 else 12711 lt_prog_compiler_no_builtin_flag_CXX= 12712 fi 12713 12714 if test "$GXX" = yes; then 12715 # Set up default GNU C++ configuration 12716 12717 12718 12719# Check whether --with-gnu-ld was given. 12720if test "${with_gnu_ld+set}" = set; then 12721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12722else 12723 with_gnu_ld=no 12724fi 12725 12726ac_prog=ld 12727if test "$GCC" = yes; then 12728 # Check if gcc -print-prog-name=ld gives a path. 12729 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12730$as_echo_n "checking for ld used by $CC... " >&6; } 12731 case $host in 12732 *-*-mingw*) 12733 # gcc leaves a trailing carriage return which upsets mingw 12734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12735 *) 12736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12737 esac 12738 case $ac_prog in 12739 # Accept absolute paths. 12740 [\\/]* | ?:[\\/]*) 12741 re_direlt='/[^/][^/]*/\.\./' 12742 # Canonicalize the pathname of ld 12743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12746 done 12747 test -z "$LD" && LD="$ac_prog" 12748 ;; 12749 "") 12750 # If it fails, then pretend we aren't using GCC. 12751 ac_prog=ld 12752 ;; 12753 *) 12754 # If it is relative, then search for the first ld in PATH. 12755 with_gnu_ld=unknown 12756 ;; 12757 esac 12758elif test "$with_gnu_ld" = yes; then 12759 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 12760$as_echo_n "checking for GNU ld... " >&6; } 12761else 12762 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12763$as_echo_n "checking for non-GNU ld... " >&6; } 12764fi 12765if test "${lt_cv_path_LD+set}" = set; then 12766 $as_echo_n "(cached) " >&6 12767else 12768 if test -z "$LD"; then 12769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12770 for ac_dir in $PATH; do 12771 IFS="$lt_save_ifs" 12772 test -z "$ac_dir" && ac_dir=. 12773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12774 lt_cv_path_LD="$ac_dir/$ac_prog" 12775 # Check to see if the program is GNU ld. I'd rather use --version, 12776 # but apparently some variants of GNU ld only accept -v. 12777 # Break only if it was the GNU/non-GNU ld that we prefer. 12778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12779 *GNU* | *'with BFD'*) 12780 test "$with_gnu_ld" != no && break 12781 ;; 12782 *) 12783 test "$with_gnu_ld" != yes && break 12784 ;; 12785 esac 12786 fi 12787 done 12788 IFS="$lt_save_ifs" 12789else 12790 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12791fi 12792fi 12793 12794LD="$lt_cv_path_LD" 12795if test -n "$LD"; then 12796 { $as_echo "$as_me:$LINENO: result: $LD" >&5 12797$as_echo "$LD" >&6; } 12798else 12799 { $as_echo "$as_me:$LINENO: result: no" >&5 12800$as_echo "no" >&6; } 12801fi 12802test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12803$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12804 { (exit 1); exit 1; }; } 12805{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12806$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12807if test "${lt_cv_prog_gnu_ld+set}" = set; then 12808 $as_echo_n "(cached) " >&6 12809else 12810 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12811case `$LD -v 2>&1 </dev/null` in 12812*GNU* | *'with BFD'*) 12813 lt_cv_prog_gnu_ld=yes 12814 ;; 12815*) 12816 lt_cv_prog_gnu_ld=no 12817 ;; 12818esac 12819fi 12820{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12821$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12822with_gnu_ld=$lt_cv_prog_gnu_ld 12823 12824 12825 12826 12827 12828 12829 12830 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12831 # archiving commands below assume that GNU ld is being used. 12832 if test "$with_gnu_ld" = yes; then 12833 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12834 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' 12835 12836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12838 12839 # If archive_cmds runs LD, not CC, wlarc should be empty 12840 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12841 # investigate it a little bit more. (MM) 12842 wlarc='${wl}' 12843 12844 # ancient GNU ld didn't support --whole-archive et. al. 12845 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12846 $GREP 'no-whole-archive' > /dev/null; then 12847 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12848 else 12849 whole_archive_flag_spec_CXX= 12850 fi 12851 else 12852 with_gnu_ld=no 12853 wlarc= 12854 12855 # A generic and very simple default shared library creation 12856 # command for GNU C++ for the case where it uses the native 12857 # linker, instead of GNU ld. If possible, this setting should 12858 # overridden to take advantage of the native linker features on 12859 # the platform it is being used on. 12860 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12861 fi 12862 12863 # Commands to make compiler produce verbose output that lists 12864 # what "hidden" libraries, object files and flags are used when 12865 # linking a shared library. 12866 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12867 12868 else 12869 GXX=no 12870 with_gnu_ld=no 12871 wlarc= 12872 fi 12873 12874 # PORTME: fill in a description of your system's C++ link characteristics 12875 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12876$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12877 ld_shlibs_CXX=yes 12878 case $host_os in 12879 aix3*) 12880 # FIXME: insert proper C++ library support 12881 ld_shlibs_CXX=no 12882 ;; 12883 aix[4-9]*) 12884 if test "$host_cpu" = ia64; then 12885 # On IA64, the linker does run time linking by default, so we don't 12886 # have to do anything special. 12887 aix_use_runtimelinking=no 12888 exp_sym_flag='-Bexport' 12889 no_entry_flag="" 12890 else 12891 aix_use_runtimelinking=no 12892 12893 # Test if we are trying to use run time linking or normal 12894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12895 # need to do runtime linking. 12896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12897 for ld_flag in $LDFLAGS; do 12898 case $ld_flag in 12899 *-brtl*) 12900 aix_use_runtimelinking=yes 12901 break 12902 ;; 12903 esac 12904 done 12905 ;; 12906 esac 12907 12908 exp_sym_flag='-bexport' 12909 no_entry_flag='-bnoentry' 12910 fi 12911 12912 # When large executables or shared objects are built, AIX ld can 12913 # have problems creating the table of contents. If linking a library 12914 # or program results in "error TOC overflow" add -mminimal-toc to 12915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12917 12918 archive_cmds_CXX='' 12919 hardcode_direct_CXX=yes 12920 hardcode_direct_absolute_CXX=yes 12921 hardcode_libdir_separator_CXX=':' 12922 link_all_deplibs_CXX=yes 12923 file_list_spec_CXX='${wl}-f,' 12924 12925 if test "$GXX" = yes; then 12926 case $host_os in aix4.[012]|aix4.[012].*) 12927 # We only want to do this on AIX 4.2 and lower, the check 12928 # below for broken collect2 doesn't work under 4.3+ 12929 collect2name=`${CC} -print-prog-name=collect2` 12930 if test -f "$collect2name" && 12931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12932 then 12933 # We have reworked collect2 12934 : 12935 else 12936 # We have old collect2 12937 hardcode_direct_CXX=unsupported 12938 # It fails to find uninstalled libraries when the uninstalled 12939 # path is not listed in the libpath. Setting hardcode_minus_L 12940 # to unsupported forces relinking 12941 hardcode_minus_L_CXX=yes 12942 hardcode_libdir_flag_spec_CXX='-L$libdir' 12943 hardcode_libdir_separator_CXX= 12944 fi 12945 esac 12946 shared_flag='-shared' 12947 if test "$aix_use_runtimelinking" = yes; then 12948 shared_flag="$shared_flag "'${wl}-G' 12949 fi 12950 else 12951 # not using gcc 12952 if test "$host_cpu" = ia64; then 12953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12954 # chokes on -Wl,-G. The following line is correct: 12955 shared_flag='-G' 12956 else 12957 if test "$aix_use_runtimelinking" = yes; then 12958 shared_flag='${wl}-G' 12959 else 12960 shared_flag='${wl}-bM:SRE' 12961 fi 12962 fi 12963 fi 12964 12965 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12966 # It seems that -bexpall does not export symbols beginning with 12967 # underscore (_), so it is better to generate a list of symbols to 12968 # export. 12969 always_export_symbols_CXX=yes 12970 if test "$aix_use_runtimelinking" = yes; then 12971 # Warning - without using the other runtime loading flags (-brtl), 12972 # -berok will link without error, but may produce a broken library. 12973 allow_undefined_flag_CXX='-berok' 12974 # Determine the default libpath from the value encoded in an empty 12975 # executable. 12976 cat >conftest.$ac_ext <<_ACEOF 12977/* confdefs.h. */ 12978_ACEOF 12979cat confdefs.h >>conftest.$ac_ext 12980cat >>conftest.$ac_ext <<_ACEOF 12981/* end confdefs.h. */ 12982 12983int 12984main () 12985{ 12986 12987 ; 12988 return 0; 12989} 12990_ACEOF 12991rm -f conftest.$ac_objext conftest$ac_exeext 12992if { (ac_try="$ac_link" 12993case "(($ac_try" in 12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12995 *) ac_try_echo=$ac_try;; 12996esac 12997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12998$as_echo "$ac_try_echo") >&5 12999 (eval "$ac_link") 2>conftest.er1 13000 ac_status=$? 13001 grep -v '^ *+' conftest.er1 >conftest.err 13002 rm -f conftest.er1 13003 cat conftest.err >&5 13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13005 (exit $ac_status); } && { 13006 test -z "$ac_cxx_werror_flag" || 13007 test ! -s conftest.err 13008 } && test -s conftest$ac_exeext && { 13009 test "$cross_compiling" = yes || 13010 $as_test_x conftest$ac_exeext 13011 }; then 13012 13013lt_aix_libpath_sed=' 13014 /Import File Strings/,/^$/ { 13015 /^0/ { 13016 s/^0 *\(.*\)$/\1/ 13017 p 13018 } 13019 }' 13020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13021# Check for a 64-bit object if we didn't find anything. 13022if test -z "$aix_libpath"; then 13023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13024fi 13025else 13026 $as_echo "$as_me: failed program was:" >&5 13027sed 's/^/| /' conftest.$ac_ext >&5 13028 13029 13030fi 13031 13032rm -rf conftest.dSYM 13033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13034 conftest$ac_exeext conftest.$ac_ext 13035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13036 13037 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13038 13039 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" 13040 else 13041 if test "$host_cpu" = ia64; then 13042 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13043 allow_undefined_flag_CXX="-z nodefs" 13044 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" 13045 else 13046 # Determine the default libpath from the value encoded in an 13047 # empty executable. 13048 cat >conftest.$ac_ext <<_ACEOF 13049/* confdefs.h. */ 13050_ACEOF 13051cat confdefs.h >>conftest.$ac_ext 13052cat >>conftest.$ac_ext <<_ACEOF 13053/* end confdefs.h. */ 13054 13055int 13056main () 13057{ 13058 13059 ; 13060 return 0; 13061} 13062_ACEOF 13063rm -f conftest.$ac_objext conftest$ac_exeext 13064if { (ac_try="$ac_link" 13065case "(($ac_try" in 13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13067 *) ac_try_echo=$ac_try;; 13068esac 13069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 13070$as_echo "$ac_try_echo") >&5 13071 (eval "$ac_link") 2>conftest.er1 13072 ac_status=$? 13073 grep -v '^ *+' conftest.er1 >conftest.err 13074 rm -f conftest.er1 13075 cat conftest.err >&5 13076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13077 (exit $ac_status); } && { 13078 test -z "$ac_cxx_werror_flag" || 13079 test ! -s conftest.err 13080 } && test -s conftest$ac_exeext && { 13081 test "$cross_compiling" = yes || 13082 $as_test_x conftest$ac_exeext 13083 }; then 13084 13085lt_aix_libpath_sed=' 13086 /Import File Strings/,/^$/ { 13087 /^0/ { 13088 s/^0 *\(.*\)$/\1/ 13089 p 13090 } 13091 }' 13092aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13093# Check for a 64-bit object if we didn't find anything. 13094if test -z "$aix_libpath"; then 13095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13096fi 13097else 13098 $as_echo "$as_me: failed program was:" >&5 13099sed 's/^/| /' conftest.$ac_ext >&5 13100 13101 13102fi 13103 13104rm -rf conftest.dSYM 13105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13106 conftest$ac_exeext conftest.$ac_ext 13107if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13108 13109 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13110 # Warning - without using the other run time loading flags, 13111 # -berok will link without error, but may produce a broken library. 13112 no_undefined_flag_CXX=' ${wl}-bernotok' 13113 allow_undefined_flag_CXX=' ${wl}-berok' 13114 # Exported symbols can be pulled into shared objects from archives 13115 whole_archive_flag_spec_CXX='$convenience' 13116 archive_cmds_need_lc_CXX=yes 13117 # This is similar to how AIX traditionally builds its shared 13118 # libraries. 13119 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' 13120 fi 13121 fi 13122 ;; 13123 13124 beos*) 13125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13126 allow_undefined_flag_CXX=unsupported 13127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13128 # support --undefined. This deserves some investigation. FIXME 13129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13130 else 13131 ld_shlibs_CXX=no 13132 fi 13133 ;; 13134 13135 chorus*) 13136 case $cc_basename in 13137 *) 13138 # FIXME: insert proper C++ library support 13139 ld_shlibs_CXX=no 13140 ;; 13141 esac 13142 ;; 13143 13144 cygwin* | mingw* | pw32* | cegcc*) 13145 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13146 # as there is no search path for DLLs. 13147 hardcode_libdir_flag_spec_CXX='-L$libdir' 13148 allow_undefined_flag_CXX=unsupported 13149 always_export_symbols_CXX=no 13150 enable_shared_with_static_runtimes_CXX=yes 13151 13152 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13153 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' 13154 # If the export-symbols file already is a .def file (1st line 13155 # is EXPORTS), use it as is; otherwise, prepend... 13156 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13157 cp $export_symbols $output_objdir/$soname.def; 13158 else 13159 echo EXPORTS > $output_objdir/$soname.def; 13160 cat $export_symbols >> $output_objdir/$soname.def; 13161 fi~ 13162 $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' 13163 else 13164 ld_shlibs_CXX=no 13165 fi 13166 ;; 13167 darwin* | rhapsody*) 13168 13169 13170 archive_cmds_need_lc_CXX=no 13171 hardcode_direct_CXX=no 13172 hardcode_automatic_CXX=yes 13173 hardcode_shlibpath_var_CXX=unsupported 13174 whole_archive_flag_spec_CXX='' 13175 link_all_deplibs_CXX=yes 13176 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13177 case $cc_basename in 13178 ifort*) _lt_dar_can_shared=yes ;; 13179 *) _lt_dar_can_shared=$GCC ;; 13180 esac 13181 if test "$_lt_dar_can_shared" = "yes"; then 13182 output_verbose_link_cmd=echo 13183 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}" 13184 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13185 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}" 13186 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}" 13187 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13188 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}" 13189 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}" 13190 fi 13191 13192 else 13193 ld_shlibs_CXX=no 13194 fi 13195 13196 ;; 13197 13198 dgux*) 13199 case $cc_basename in 13200 ec++*) 13201 # FIXME: insert proper C++ library support 13202 ld_shlibs_CXX=no 13203 ;; 13204 ghcx*) 13205 # Green Hills C++ Compiler 13206 # FIXME: insert proper C++ library support 13207 ld_shlibs_CXX=no 13208 ;; 13209 *) 13210 # FIXME: insert proper C++ library support 13211 ld_shlibs_CXX=no 13212 ;; 13213 esac 13214 ;; 13215 13216 freebsd[12]*) 13217 # C++ shared libraries reported to be fairly broken before 13218 # switch to ELF 13219 ld_shlibs_CXX=no 13220 ;; 13221 13222 freebsd-elf*) 13223 archive_cmds_need_lc_CXX=no 13224 ;; 13225 13226 freebsd* | dragonfly*) 13227 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13228 # conventions 13229 ld_shlibs_CXX=yes 13230 ;; 13231 13232 gnu*) 13233 ;; 13234 13235 hpux9*) 13236 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13237 hardcode_libdir_separator_CXX=: 13238 export_dynamic_flag_spec_CXX='${wl}-E' 13239 hardcode_direct_CXX=yes 13240 hardcode_minus_L_CXX=yes # Not in the search PATH, 13241 # but as the default 13242 # location of the library. 13243 13244 case $cc_basename in 13245 CC*) 13246 # FIXME: insert proper C++ library support 13247 ld_shlibs_CXX=no 13248 ;; 13249 aCC*) 13250 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' 13251 # Commands to make compiler produce verbose output that lists 13252 # what "hidden" libraries, object files and flags are used when 13253 # linking a shared library. 13254 # 13255 # There doesn't appear to be a way to prevent this compiler from 13256 # explicitly linking system object files so we need to strip them 13257 # from the output so that they don't get included in the library 13258 # dependencies. 13259 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' 13260 ;; 13261 *) 13262 if test "$GXX" = yes; then 13263 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' 13264 else 13265 # FIXME: insert proper C++ library support 13266 ld_shlibs_CXX=no 13267 fi 13268 ;; 13269 esac 13270 ;; 13271 13272 hpux10*|hpux11*) 13273 if test $with_gnu_ld = no; then 13274 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13275 hardcode_libdir_separator_CXX=: 13276 13277 case $host_cpu in 13278 hppa*64*|ia64*) 13279 ;; 13280 *) 13281 export_dynamic_flag_spec_CXX='${wl}-E' 13282 ;; 13283 esac 13284 fi 13285 case $host_cpu in 13286 hppa*64*|ia64*) 13287 hardcode_direct_CXX=no 13288 hardcode_shlibpath_var_CXX=no 13289 ;; 13290 *) 13291 hardcode_direct_CXX=yes 13292 hardcode_direct_absolute_CXX=yes 13293 hardcode_minus_L_CXX=yes # Not in the search PATH, 13294 # but as the default 13295 # location of the library. 13296 ;; 13297 esac 13298 13299 case $cc_basename in 13300 CC*) 13301 # FIXME: insert proper C++ library support 13302 ld_shlibs_CXX=no 13303 ;; 13304 aCC*) 13305 case $host_cpu in 13306 hppa*64*) 13307 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13308 ;; 13309 ia64*) 13310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13311 ;; 13312 *) 13313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13314 ;; 13315 esac 13316 # Commands to make compiler produce verbose output that lists 13317 # what "hidden" libraries, object files and flags are used when 13318 # linking a shared library. 13319 # 13320 # There doesn't appear to be a way to prevent this compiler from 13321 # explicitly linking system object files so we need to strip them 13322 # from the output so that they don't get included in the library 13323 # dependencies. 13324 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' 13325 ;; 13326 *) 13327 if test "$GXX" = yes; then 13328 if test $with_gnu_ld = no; then 13329 case $host_cpu in 13330 hppa*64*) 13331 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13332 ;; 13333 ia64*) 13334 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13335 ;; 13336 *) 13337 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' 13338 ;; 13339 esac 13340 fi 13341 else 13342 # FIXME: insert proper C++ library support 13343 ld_shlibs_CXX=no 13344 fi 13345 ;; 13346 esac 13347 ;; 13348 13349 interix[3-9]*) 13350 hardcode_direct_CXX=no 13351 hardcode_shlibpath_var_CXX=no 13352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13353 export_dynamic_flag_spec_CXX='${wl}-E' 13354 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13355 # Instead, shared libraries are loaded at an image base (0x10000000 by 13356 # default) and relocated if they conflict, which is a slow very memory 13357 # consuming and fragmenting process. To avoid this, we pick a random, 13358 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13359 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13360 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' 13361 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' 13362 ;; 13363 irix5* | irix6*) 13364 case $cc_basename in 13365 CC*) 13366 # SGI C++ 13367 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' 13368 13369 # Archives containing C++ object files must be created using 13370 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13371 # necessary to make sure instantiated templates are included 13372 # in the archive. 13373 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13374 ;; 13375 *) 13376 if test "$GXX" = yes; then 13377 if test "$with_gnu_ld" = no; then 13378 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' 13379 else 13380 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' 13381 fi 13382 fi 13383 link_all_deplibs_CXX=yes 13384 ;; 13385 esac 13386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13387 hardcode_libdir_separator_CXX=: 13388 inherit_rpath_CXX=yes 13389 ;; 13390 13391 linux* | k*bsd*-gnu) 13392 case $cc_basename in 13393 KCC*) 13394 # Kuck and Associates, Inc. (KAI) C++ Compiler 13395 13396 # KCC will only create a shared library if the output file 13397 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13398 # to its proper name (with version) after linking. 13399 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' 13400 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' 13401 # Commands to make compiler produce verbose output that lists 13402 # what "hidden" libraries, object files and flags are used when 13403 # linking a shared library. 13404 # 13405 # There doesn't appear to be a way to prevent this compiler from 13406 # explicitly linking system object files so we need to strip them 13407 # from the output so that they don't get included in the library 13408 # dependencies. 13409 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' 13410 13411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13413 13414 # Archives containing C++ object files must be created using 13415 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13417 ;; 13418 icpc* | ecpc* ) 13419 # Intel C++ 13420 with_gnu_ld=yes 13421 # version 8.0 and above of icpc choke on multiply defined symbols 13422 # if we add $predep_objects and $postdep_objects, however 7.1 and 13423 # earlier do not add the objects themselves. 13424 case `$CC -V 2>&1` in 13425 *"Version 7."*) 13426 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13427 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' 13428 ;; 13429 *) # Version 8.0 or newer 13430 tmp_idyn= 13431 case $host_cpu in 13432 ia64*) tmp_idyn=' -i_dynamic';; 13433 esac 13434 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13435 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' 13436 ;; 13437 esac 13438 archive_cmds_need_lc_CXX=no 13439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13440 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13441 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13442 ;; 13443 pgCC* | pgcpp*) 13444 # Portland Group C++ compiler 13445 case `$CC -V` in 13446 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 13447 prelink_cmds_CXX='tpldir=Template.dir~ 13448 rm -rf $tpldir~ 13449 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13450 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13451 old_archive_cmds_CXX='tpldir=Template.dir~ 13452 rm -rf $tpldir~ 13453 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13454 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13455 $RANLIB $oldlib' 13456 archive_cmds_CXX='tpldir=Template.dir~ 13457 rm -rf $tpldir~ 13458 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13459 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13460 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13461 rm -rf $tpldir~ 13462 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13463 $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' 13464 ;; 13465 *) # Version 6 will use weak symbols 13466 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13467 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' 13468 ;; 13469 esac 13470 13471 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13473 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' 13474 ;; 13475 cxx*) 13476 # Compaq C++ 13477 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13478 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' 13479 13480 runpath_var=LD_RUN_PATH 13481 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13482 hardcode_libdir_separator_CXX=: 13483 13484 # Commands to make compiler produce verbose output that lists 13485 # what "hidden" libraries, object files and flags are used when 13486 # linking a shared library. 13487 # 13488 # There doesn't appear to be a way to prevent this compiler from 13489 # explicitly linking system object files so we need to strip them 13490 # from the output so that they don't get included in the library 13491 # dependencies. 13492 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' 13493 ;; 13494 xl*) 13495 # IBM XL 8.0 on PPC, with GNU ld 13496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13498 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13499 if test "x$supports_anon_versioning" = xyes; then 13500 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13501 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13502 echo "local: *; };" >> $output_objdir/$libname.ver~ 13503 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13504 fi 13505 ;; 13506 *) 13507 case `$CC -V 2>&1 | sed 5q` in 13508 *Sun\ C*) 13509 # Sun C++ 5.9 13510 no_undefined_flag_CXX=' -zdefs' 13511 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13512 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' 13513 hardcode_libdir_flag_spec_CXX='-R$libdir' 13514 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' 13515 compiler_needs_object_CXX=yes 13516 13517 # Not sure whether something based on 13518 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13519 # would be better. 13520 output_verbose_link_cmd='echo' 13521 13522 # Archives containing C++ object files must be created using 13523 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13524 # necessary to make sure instantiated templates are included 13525 # in the archive. 13526 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13527 ;; 13528 esac 13529 ;; 13530 esac 13531 ;; 13532 13533 lynxos*) 13534 # FIXME: insert proper C++ library support 13535 ld_shlibs_CXX=no 13536 ;; 13537 13538 m88k*) 13539 # FIXME: insert proper C++ library support 13540 ld_shlibs_CXX=no 13541 ;; 13542 13543 mvs*) 13544 case $cc_basename in 13545 cxx*) 13546 # FIXME: insert proper C++ library support 13547 ld_shlibs_CXX=no 13548 ;; 13549 *) 13550 # FIXME: insert proper C++ library support 13551 ld_shlibs_CXX=no 13552 ;; 13553 esac 13554 ;; 13555 13556 netbsd*) 13557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13558 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13559 wlarc= 13560 hardcode_libdir_flag_spec_CXX='-R$libdir' 13561 hardcode_direct_CXX=yes 13562 hardcode_shlibpath_var_CXX=no 13563 fi 13564 # Workaround some broken pre-1.5 toolchains 13565 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13566 ;; 13567 13568 *nto* | *qnx*) 13569 ld_shlibs_CXX=yes 13570 ;; 13571 13572 openbsd2*) 13573 # C++ shared libraries are fairly broken 13574 ld_shlibs_CXX=no 13575 ;; 13576 13577 openbsd*) 13578 if test -f /usr/libexec/ld.so; then 13579 hardcode_direct_CXX=yes 13580 hardcode_shlibpath_var_CXX=no 13581 hardcode_direct_absolute_CXX=yes 13582 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13583 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13585 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13586 export_dynamic_flag_spec_CXX='${wl}-E' 13587 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13588 fi 13589 output_verbose_link_cmd=echo 13590 else 13591 ld_shlibs_CXX=no 13592 fi 13593 ;; 13594 13595 osf3* | osf4* | osf5*) 13596 case $cc_basename in 13597 KCC*) 13598 # Kuck and Associates, Inc. (KAI) C++ Compiler 13599 13600 # KCC will only create a shared library if the output file 13601 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13602 # to its proper name (with version) after linking. 13603 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' 13604 13605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13606 hardcode_libdir_separator_CXX=: 13607 13608 # Archives containing C++ object files must be created using 13609 # the KAI C++ compiler. 13610 case $host in 13611 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13612 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13613 esac 13614 ;; 13615 RCC*) 13616 # Rational C++ 2.4.1 13617 # FIXME: insert proper C++ library support 13618 ld_shlibs_CXX=no 13619 ;; 13620 cxx*) 13621 case $host in 13622 osf3*) 13623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13624 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' 13625 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13626 ;; 13627 *) 13628 allow_undefined_flag_CXX=' -expect_unresolved \*' 13629 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' 13630 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13631 echo "-hidden">> $lib.exp~ 13632 $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~ 13633 $RM $lib.exp' 13634 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13635 ;; 13636 esac 13637 13638 hardcode_libdir_separator_CXX=: 13639 13640 # Commands to make compiler produce verbose output that lists 13641 # what "hidden" libraries, object files and flags are used when 13642 # linking a shared library. 13643 # 13644 # There doesn't appear to be a way to prevent this compiler from 13645 # explicitly linking system object files so we need to strip them 13646 # from the output so that they don't get included in the library 13647 # dependencies. 13648 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' 13649 ;; 13650 *) 13651 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13652 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13653 case $host in 13654 osf3*) 13655 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' 13656 ;; 13657 *) 13658 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' 13659 ;; 13660 esac 13661 13662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13663 hardcode_libdir_separator_CXX=: 13664 13665 # Commands to make compiler produce verbose output that lists 13666 # what "hidden" libraries, object files and flags are used when 13667 # linking a shared library. 13668 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13669 13670 else 13671 # FIXME: insert proper C++ library support 13672 ld_shlibs_CXX=no 13673 fi 13674 ;; 13675 esac 13676 ;; 13677 13678 psos*) 13679 # FIXME: insert proper C++ library support 13680 ld_shlibs_CXX=no 13681 ;; 13682 13683 sunos4*) 13684 case $cc_basename in 13685 CC*) 13686 # Sun C++ 4.x 13687 # FIXME: insert proper C++ library support 13688 ld_shlibs_CXX=no 13689 ;; 13690 lcc*) 13691 # Lucid 13692 # FIXME: insert proper C++ library support 13693 ld_shlibs_CXX=no 13694 ;; 13695 *) 13696 # FIXME: insert proper C++ library support 13697 ld_shlibs_CXX=no 13698 ;; 13699 esac 13700 ;; 13701 13702 solaris*) 13703 case $cc_basename in 13704 CC*) 13705 # Sun C++ 4.2, 5.x and Centerline C++ 13706 archive_cmds_need_lc_CXX=yes 13707 no_undefined_flag_CXX=' -zdefs' 13708 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13709 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13710 $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' 13711 13712 hardcode_libdir_flag_spec_CXX='-R$libdir' 13713 hardcode_shlibpath_var_CXX=no 13714 case $host_os in 13715 solaris2.[0-5] | solaris2.[0-5].*) ;; 13716 *) 13717 # The compiler driver will combine and reorder linker options, 13718 # but understands `-z linker_flag'. 13719 # Supported since Solaris 2.6 (maybe 2.5.1?) 13720 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13721 ;; 13722 esac 13723 link_all_deplibs_CXX=yes 13724 13725 output_verbose_link_cmd='echo' 13726 13727 # Archives containing C++ object files must be created using 13728 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13729 # necessary to make sure instantiated templates are included 13730 # in the archive. 13731 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13732 ;; 13733 gcx*) 13734 # Green Hills C++ Compiler 13735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13736 13737 # The C++ compiler must be used to create the archive. 13738 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13739 ;; 13740 *) 13741 # GNU C++ compiler with Solaris linker 13742 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13743 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13744 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13745 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13746 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13747 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13748 13749 # Commands to make compiler produce verbose output that lists 13750 # what "hidden" libraries, object files and flags are used when 13751 # linking a shared library. 13752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13753 else 13754 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13755 # platform. 13756 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13757 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13758 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13759 13760 # Commands to make compiler produce verbose output that lists 13761 # what "hidden" libraries, object files and flags are used when 13762 # linking a shared library. 13763 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13764 fi 13765 13766 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13767 case $host_os in 13768 solaris2.[0-5] | solaris2.[0-5].*) ;; 13769 *) 13770 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13771 ;; 13772 esac 13773 fi 13774 ;; 13775 esac 13776 ;; 13777 13778 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13779 no_undefined_flag_CXX='${wl}-z,text' 13780 archive_cmds_need_lc_CXX=no 13781 hardcode_shlibpath_var_CXX=no 13782 runpath_var='LD_RUN_PATH' 13783 13784 case $cc_basename in 13785 CC*) 13786 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13787 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13788 ;; 13789 *) 13790 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13791 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13792 ;; 13793 esac 13794 ;; 13795 13796 sysv5* | sco3.2v5* | sco5v6*) 13797 # Note: We can NOT use -z defs as we might desire, because we do not 13798 # link with -lc, and that would cause any symbols used from libc to 13799 # always be unresolved, which means just about no library would 13800 # ever link correctly. If we're not using GNU ld we use -z text 13801 # though, which does catch some bad symbols but isn't as heavy-handed 13802 # as -z defs. 13803 no_undefined_flag_CXX='${wl}-z,text' 13804 allow_undefined_flag_CXX='${wl}-z,nodefs' 13805 archive_cmds_need_lc_CXX=no 13806 hardcode_shlibpath_var_CXX=no 13807 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13808 hardcode_libdir_separator_CXX=':' 13809 link_all_deplibs_CXX=yes 13810 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13811 runpath_var='LD_RUN_PATH' 13812 13813 case $cc_basename in 13814 CC*) 13815 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13816 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13817 ;; 13818 *) 13819 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13820 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13821 ;; 13822 esac 13823 ;; 13824 13825 tandem*) 13826 case $cc_basename in 13827 NCC*) 13828 # NonStop-UX NCC 3.20 13829 # FIXME: insert proper C++ library support 13830 ld_shlibs_CXX=no 13831 ;; 13832 *) 13833 # FIXME: insert proper C++ library support 13834 ld_shlibs_CXX=no 13835 ;; 13836 esac 13837 ;; 13838 13839 vxworks*) 13840 # FIXME: insert proper C++ library support 13841 ld_shlibs_CXX=no 13842 ;; 13843 13844 *) 13845 # FIXME: insert proper C++ library support 13846 ld_shlibs_CXX=no 13847 ;; 13848 esac 13849 13850 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13851$as_echo "$ld_shlibs_CXX" >&6; } 13852 test "$ld_shlibs_CXX" = no && can_build_shared=no 13853 13854 GCC_CXX="$GXX" 13855 LD_CXX="$LD" 13856 13857 ## CAVEAT EMPTOR: 13858 ## There is no encapsulation within the following macros, do not change 13859 ## the running order or otherwise move them around unless you know exactly 13860 ## what you are doing... 13861 # Dependencies to place before and after the object being linked: 13862predep_objects_CXX= 13863postdep_objects_CXX= 13864predeps_CXX= 13865postdeps_CXX= 13866compiler_lib_search_path_CXX= 13867 13868cat > conftest.$ac_ext <<_LT_EOF 13869class Foo 13870{ 13871public: 13872 Foo (void) { a = 0; } 13873private: 13874 int a; 13875}; 13876_LT_EOF 13877 13878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13879 (eval $ac_compile) 2>&5 13880 ac_status=$? 13881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13882 (exit $ac_status); }; then 13883 # Parse the compiler output and extract the necessary 13884 # objects, libraries and library flags. 13885 13886 # Sentinel used to keep track of whether or not we are before 13887 # the conftest object file. 13888 pre_test_object_deps_done=no 13889 13890 for p in `eval "$output_verbose_link_cmd"`; do 13891 case $p in 13892 13893 -L* | -R* | -l*) 13894 # Some compilers place space between "-{L,R}" and the path. 13895 # Remove the space. 13896 if test $p = "-L" || 13897 test $p = "-R"; then 13898 prev=$p 13899 continue 13900 else 13901 prev= 13902 fi 13903 13904 if test "$pre_test_object_deps_done" = no; then 13905 case $p in 13906 -L* | -R*) 13907 # Internal compiler library paths should come after those 13908 # provided the user. The postdeps already come after the 13909 # user supplied libs so there is no need to process them. 13910 if test -z "$compiler_lib_search_path_CXX"; then 13911 compiler_lib_search_path_CXX="${prev}${p}" 13912 else 13913 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13914 fi 13915 ;; 13916 # The "-l" case would never come before the object being 13917 # linked, so don't bother handling this case. 13918 esac 13919 else 13920 if test -z "$postdeps_CXX"; then 13921 postdeps_CXX="${prev}${p}" 13922 else 13923 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13924 fi 13925 fi 13926 ;; 13927 13928 *.$objext) 13929 # This assumes that the test object file only shows up 13930 # once in the compiler output. 13931 if test "$p" = "conftest.$objext"; then 13932 pre_test_object_deps_done=yes 13933 continue 13934 fi 13935 13936 if test "$pre_test_object_deps_done" = no; then 13937 if test -z "$predep_objects_CXX"; then 13938 predep_objects_CXX="$p" 13939 else 13940 predep_objects_CXX="$predep_objects_CXX $p" 13941 fi 13942 else 13943 if test -z "$postdep_objects_CXX"; then 13944 postdep_objects_CXX="$p" 13945 else 13946 postdep_objects_CXX="$postdep_objects_CXX $p" 13947 fi 13948 fi 13949 ;; 13950 13951 *) ;; # Ignore the rest. 13952 13953 esac 13954 done 13955 13956 # Clean up. 13957 rm -f a.out a.exe 13958else 13959 echo "libtool.m4: error: problem compiling CXX test program" 13960fi 13961 13962$RM -f confest.$objext 13963 13964# PORTME: override above test on systems where it is broken 13965case $host_os in 13966interix[3-9]*) 13967 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13968 # hack all around it, let's just trust "g++" to DTRT. 13969 predep_objects_CXX= 13970 postdep_objects_CXX= 13971 postdeps_CXX= 13972 ;; 13973 13974linux*) 13975 case `$CC -V 2>&1 | sed 5q` in 13976 *Sun\ C*) 13977 # Sun C++ 5.9 13978 13979 # The more standards-conforming stlport4 library is 13980 # incompatible with the Cstd library. Avoid specifying 13981 # it if it's in CXXFLAGS. Ignore libCrun as 13982 # -library=stlport4 depends on it. 13983 case " $CXX $CXXFLAGS " in 13984 *" -library=stlport4 "*) 13985 solaris_use_stlport4=yes 13986 ;; 13987 esac 13988 13989 if test "$solaris_use_stlport4" != yes; then 13990 postdeps_CXX='-library=Cstd -library=Crun' 13991 fi 13992 ;; 13993 esac 13994 ;; 13995 13996solaris*) 13997 case $cc_basename in 13998 CC*) 13999 # The more standards-conforming stlport4 library is 14000 # incompatible with the Cstd library. Avoid specifying 14001 # it if it's in CXXFLAGS. Ignore libCrun as 14002 # -library=stlport4 depends on it. 14003 case " $CXX $CXXFLAGS " in 14004 *" -library=stlport4 "*) 14005 solaris_use_stlport4=yes 14006 ;; 14007 esac 14008 14009 # Adding this requires a known-good setup of shared libraries for 14010 # Sun compiler versions before 5.6, else PIC objects from an old 14011 # archive will be linked into the output, leading to subtle bugs. 14012 if test "$solaris_use_stlport4" != yes; then 14013 postdeps_CXX='-library=Cstd -library=Crun' 14014 fi 14015 ;; 14016 esac 14017 ;; 14018esac 14019 14020 14021case " $postdeps_CXX " in 14022*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14023esac 14024 compiler_lib_search_dirs_CXX= 14025if test -n "${compiler_lib_search_path_CXX}"; then 14026 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14027fi 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 lt_prog_compiler_wl_CXX= 14060lt_prog_compiler_pic_CXX= 14061lt_prog_compiler_static_CXX= 14062 14063{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14064$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14065 14066 # C++ specific cases for pic, static, wl, etc. 14067 if test "$GXX" = yes; then 14068 lt_prog_compiler_wl_CXX='-Wl,' 14069 lt_prog_compiler_static_CXX='-static' 14070 14071 case $host_os in 14072 aix*) 14073 # All AIX code is PIC. 14074 if test "$host_cpu" = ia64; then 14075 # AIX 5 now supports IA64 processor 14076 lt_prog_compiler_static_CXX='-Bstatic' 14077 fi 14078 ;; 14079 14080 amigaos*) 14081 case $host_cpu in 14082 powerpc) 14083 # see comment about AmigaOS4 .so support 14084 lt_prog_compiler_pic_CXX='-fPIC' 14085 ;; 14086 m68k) 14087 # FIXME: we need at least 68020 code to build shared libraries, but 14088 # adding the `-m68020' flag to GCC prevents building anything better, 14089 # like `-m68040'. 14090 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14091 ;; 14092 esac 14093 ;; 14094 14095 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14096 # PIC is the default for these OSes. 14097 ;; 14098 mingw* | cygwin* | os2* | pw32* | cegcc*) 14099 # This hack is so that the source file can tell whether it is being 14100 # built for inclusion in a dll (and should export symbols for example). 14101 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14102 # (--disable-auto-import) libraries 14103 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14104 ;; 14105 darwin* | rhapsody*) 14106 # PIC is the default on this platform 14107 # Common symbols not allowed in MH_DYLIB files 14108 lt_prog_compiler_pic_CXX='-fno-common' 14109 ;; 14110 *djgpp*) 14111 # DJGPP does not support shared libraries at all 14112 lt_prog_compiler_pic_CXX= 14113 ;; 14114 interix[3-9]*) 14115 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14116 # Instead, we relocate shared libraries at runtime. 14117 ;; 14118 sysv4*MP*) 14119 if test -d /usr/nec; then 14120 lt_prog_compiler_pic_CXX=-Kconform_pic 14121 fi 14122 ;; 14123 hpux*) 14124 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14125 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14126 # sets the default TLS model and affects inlining. 14127 case $host_cpu in 14128 hppa*64*) 14129 ;; 14130 *) 14131 lt_prog_compiler_pic_CXX='-fPIC' 14132 ;; 14133 esac 14134 ;; 14135 *qnx* | *nto*) 14136 # QNX uses GNU C++, but need to define -shared option too, otherwise 14137 # it will coredump. 14138 lt_prog_compiler_pic_CXX='-fPIC -shared' 14139 ;; 14140 *) 14141 lt_prog_compiler_pic_CXX='-fPIC' 14142 ;; 14143 esac 14144 else 14145 case $host_os in 14146 aix[4-9]*) 14147 # All AIX code is PIC. 14148 if test "$host_cpu" = ia64; then 14149 # AIX 5 now supports IA64 processor 14150 lt_prog_compiler_static_CXX='-Bstatic' 14151 else 14152 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14153 fi 14154 ;; 14155 chorus*) 14156 case $cc_basename in 14157 cxch68*) 14158 # Green Hills C++ Compiler 14159 # _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" 14160 ;; 14161 esac 14162 ;; 14163 dgux*) 14164 case $cc_basename in 14165 ec++*) 14166 lt_prog_compiler_pic_CXX='-KPIC' 14167 ;; 14168 ghcx*) 14169 # Green Hills C++ Compiler 14170 lt_prog_compiler_pic_CXX='-pic' 14171 ;; 14172 *) 14173 ;; 14174 esac 14175 ;; 14176 freebsd* | dragonfly*) 14177 # FreeBSD uses GNU C++ 14178 ;; 14179 hpux9* | hpux10* | hpux11*) 14180 case $cc_basename in 14181 CC*) 14182 lt_prog_compiler_wl_CXX='-Wl,' 14183 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14184 if test "$host_cpu" != ia64; then 14185 lt_prog_compiler_pic_CXX='+Z' 14186 fi 14187 ;; 14188 aCC*) 14189 lt_prog_compiler_wl_CXX='-Wl,' 14190 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14191 case $host_cpu in 14192 hppa*64*|ia64*) 14193 # +Z the default 14194 ;; 14195 *) 14196 lt_prog_compiler_pic_CXX='+Z' 14197 ;; 14198 esac 14199 ;; 14200 *) 14201 ;; 14202 esac 14203 ;; 14204 interix*) 14205 # This is c89, which is MS Visual C++ (no shared libs) 14206 # Anyone wants to do a port? 14207 ;; 14208 irix5* | irix6* | nonstopux*) 14209 case $cc_basename in 14210 CC*) 14211 lt_prog_compiler_wl_CXX='-Wl,' 14212 lt_prog_compiler_static_CXX='-non_shared' 14213 # CC pic flag -KPIC is the default. 14214 ;; 14215 *) 14216 ;; 14217 esac 14218 ;; 14219 linux* | k*bsd*-gnu) 14220 case $cc_basename in 14221 KCC*) 14222 # KAI C++ Compiler 14223 lt_prog_compiler_wl_CXX='--backend -Wl,' 14224 lt_prog_compiler_pic_CXX='-fPIC' 14225 ;; 14226 ecpc* ) 14227 # old Intel C++ for x86_64 which still supported -KPIC. 14228 lt_prog_compiler_wl_CXX='-Wl,' 14229 lt_prog_compiler_pic_CXX='-KPIC' 14230 lt_prog_compiler_static_CXX='-static' 14231 ;; 14232 icpc* ) 14233 # Intel C++, used to be incompatible with GCC. 14234 # ICC 10 doesn't accept -KPIC any more. 14235 lt_prog_compiler_wl_CXX='-Wl,' 14236 lt_prog_compiler_pic_CXX='-fPIC' 14237 lt_prog_compiler_static_CXX='-static' 14238 ;; 14239 pgCC* | pgcpp*) 14240 # Portland Group C++ compiler 14241 lt_prog_compiler_wl_CXX='-Wl,' 14242 lt_prog_compiler_pic_CXX='-fpic' 14243 lt_prog_compiler_static_CXX='-Bstatic' 14244 ;; 14245 cxx*) 14246 # Compaq C++ 14247 # Make sure the PIC flag is empty. It appears that all Alpha 14248 # Linux and Compaq Tru64 Unix objects are PIC. 14249 lt_prog_compiler_pic_CXX= 14250 lt_prog_compiler_static_CXX='-non_shared' 14251 ;; 14252 xlc* | xlC*) 14253 # IBM XL 8.0 on PPC 14254 lt_prog_compiler_wl_CXX='-Wl,' 14255 lt_prog_compiler_pic_CXX='-qpic' 14256 lt_prog_compiler_static_CXX='-qstaticlink' 14257 ;; 14258 *) 14259 case `$CC -V 2>&1 | sed 5q` in 14260 *Sun\ C*) 14261 # Sun C++ 5.9 14262 lt_prog_compiler_pic_CXX='-KPIC' 14263 lt_prog_compiler_static_CXX='-Bstatic' 14264 lt_prog_compiler_wl_CXX='-Qoption ld ' 14265 ;; 14266 esac 14267 ;; 14268 esac 14269 ;; 14270 lynxos*) 14271 ;; 14272 m88k*) 14273 ;; 14274 mvs*) 14275 case $cc_basename in 14276 cxx*) 14277 lt_prog_compiler_pic_CXX='-W c,exportall' 14278 ;; 14279 *) 14280 ;; 14281 esac 14282 ;; 14283 netbsd*) 14284 ;; 14285 *qnx* | *nto*) 14286 # QNX uses GNU C++, but need to define -shared option too, otherwise 14287 # it will coredump. 14288 lt_prog_compiler_pic_CXX='-fPIC -shared' 14289 ;; 14290 osf3* | osf4* | osf5*) 14291 case $cc_basename in 14292 KCC*) 14293 lt_prog_compiler_wl_CXX='--backend -Wl,' 14294 ;; 14295 RCC*) 14296 # Rational C++ 2.4.1 14297 lt_prog_compiler_pic_CXX='-pic' 14298 ;; 14299 cxx*) 14300 # Digital/Compaq C++ 14301 lt_prog_compiler_wl_CXX='-Wl,' 14302 # Make sure the PIC flag is empty. It appears that all Alpha 14303 # Linux and Compaq Tru64 Unix objects are PIC. 14304 lt_prog_compiler_pic_CXX= 14305 lt_prog_compiler_static_CXX='-non_shared' 14306 ;; 14307 *) 14308 ;; 14309 esac 14310 ;; 14311 psos*) 14312 ;; 14313 solaris*) 14314 case $cc_basename in 14315 CC*) 14316 # Sun C++ 4.2, 5.x and Centerline C++ 14317 lt_prog_compiler_pic_CXX='-KPIC' 14318 lt_prog_compiler_static_CXX='-Bstatic' 14319 lt_prog_compiler_wl_CXX='-Qoption ld ' 14320 ;; 14321 gcx*) 14322 # Green Hills C++ Compiler 14323 lt_prog_compiler_pic_CXX='-PIC' 14324 ;; 14325 *) 14326 ;; 14327 esac 14328 ;; 14329 sunos4*) 14330 case $cc_basename in 14331 CC*) 14332 # Sun C++ 4.x 14333 lt_prog_compiler_pic_CXX='-pic' 14334 lt_prog_compiler_static_CXX='-Bstatic' 14335 ;; 14336 lcc*) 14337 # Lucid 14338 lt_prog_compiler_pic_CXX='-pic' 14339 ;; 14340 *) 14341 ;; 14342 esac 14343 ;; 14344 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14345 case $cc_basename in 14346 CC*) 14347 lt_prog_compiler_wl_CXX='-Wl,' 14348 lt_prog_compiler_pic_CXX='-KPIC' 14349 lt_prog_compiler_static_CXX='-Bstatic' 14350 ;; 14351 esac 14352 ;; 14353 tandem*) 14354 case $cc_basename in 14355 NCC*) 14356 # NonStop-UX NCC 3.20 14357 lt_prog_compiler_pic_CXX='-KPIC' 14358 ;; 14359 *) 14360 ;; 14361 esac 14362 ;; 14363 vxworks*) 14364 ;; 14365 *) 14366 lt_prog_compiler_can_build_shared_CXX=no 14367 ;; 14368 esac 14369 fi 14370 14371case $host_os in 14372 # For platforms which do not support PIC, -DPIC is meaningless: 14373 *djgpp*) 14374 lt_prog_compiler_pic_CXX= 14375 ;; 14376 *) 14377 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14378 ;; 14379esac 14380{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14381$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14382 14383 14384 14385# 14386# Check to make sure the PIC flag actually works. 14387# 14388if test -n "$lt_prog_compiler_pic_CXX"; then 14389 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14390$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14391if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 14392 $as_echo_n "(cached) " >&6 14393else 14394 lt_cv_prog_compiler_pic_works_CXX=no 14395 ac_outfile=conftest.$ac_objext 14396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14397 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14398 # Insert the option either (1) after the last *FLAGS variable, or 14399 # (2) before a word containing "conftest.", or (3) at the end. 14400 # Note that $ac_compile itself does not contain backslashes and begins 14401 # with a dollar sign (not a hyphen), so the echo should work correctly. 14402 # The option is referenced via a variable to avoid confusing sed. 14403 lt_compile=`echo "$ac_compile" | $SED \ 14404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14406 -e 's:$: $lt_compiler_flag:'` 14407 (eval echo "\"\$as_me:14407: $lt_compile\"" >&5) 14408 (eval "$lt_compile" 2>conftest.err) 14409 ac_status=$? 14410 cat conftest.err >&5 14411 echo "$as_me:14411: \$? = $ac_status" >&5 14412 if (exit $ac_status) && test -s "$ac_outfile"; then 14413 # The compiler can only warn and ignore the option if not recognized 14414 # So say no if there are warnings other than the usual output. 14415 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14418 lt_cv_prog_compiler_pic_works_CXX=yes 14419 fi 14420 fi 14421 $RM conftest* 14422 14423fi 14424{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14425$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14426 14427if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14428 case $lt_prog_compiler_pic_CXX in 14429 "" | " "*) ;; 14430 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14431 esac 14432else 14433 lt_prog_compiler_pic_CXX= 14434 lt_prog_compiler_can_build_shared_CXX=no 14435fi 14436 14437fi 14438 14439 14440 14441# 14442# Check to make sure the static flag actually works. 14443# 14444wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14445{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14446$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14447if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 14448 $as_echo_n "(cached) " >&6 14449else 14450 lt_cv_prog_compiler_static_works_CXX=no 14451 save_LDFLAGS="$LDFLAGS" 14452 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14453 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14455 # The linker can only warn and ignore the option if not recognized 14456 # So say no if there are warnings 14457 if test -s conftest.err; then 14458 # Append any errors to the config.log. 14459 cat conftest.err 1>&5 14460 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14462 if diff conftest.exp conftest.er2 >/dev/null; then 14463 lt_cv_prog_compiler_static_works_CXX=yes 14464 fi 14465 else 14466 lt_cv_prog_compiler_static_works_CXX=yes 14467 fi 14468 fi 14469 $RM -r conftest* 14470 LDFLAGS="$save_LDFLAGS" 14471 14472fi 14473{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14474$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14475 14476if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14477 : 14478else 14479 lt_prog_compiler_static_CXX= 14480fi 14481 14482 14483 14484 14485 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14486$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14487if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14488 $as_echo_n "(cached) " >&6 14489else 14490 lt_cv_prog_compiler_c_o_CXX=no 14491 $RM -r conftest 2>/dev/null 14492 mkdir conftest 14493 cd conftest 14494 mkdir out 14495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14496 14497 lt_compiler_flag="-o out/conftest2.$ac_objext" 14498 # Insert the option either (1) after the last *FLAGS variable, or 14499 # (2) before a word containing "conftest.", or (3) at the end. 14500 # Note that $ac_compile itself does not contain backslashes and begins 14501 # with a dollar sign (not a hyphen), so the echo should work correctly. 14502 lt_compile=`echo "$ac_compile" | $SED \ 14503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14505 -e 's:$: $lt_compiler_flag:'` 14506 (eval echo "\"\$as_me:14506: $lt_compile\"" >&5) 14507 (eval "$lt_compile" 2>out/conftest.err) 14508 ac_status=$? 14509 cat out/conftest.err >&5 14510 echo "$as_me:14510: \$? = $ac_status" >&5 14511 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14512 then 14513 # The compiler can only warn and ignore the option if not recognized 14514 # So say no if there are warnings 14515 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14518 lt_cv_prog_compiler_c_o_CXX=yes 14519 fi 14520 fi 14521 chmod u+w . 2>&5 14522 $RM conftest* 14523 # SGI C++ compiler will create directory out/ii_files/ for 14524 # template instantiation 14525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14526 $RM out/* && rmdir out 14527 cd .. 14528 $RM -r conftest 14529 $RM conftest* 14530 14531fi 14532{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14533$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14534 14535 14536 14537 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14538$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14539if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14540 $as_echo_n "(cached) " >&6 14541else 14542 lt_cv_prog_compiler_c_o_CXX=no 14543 $RM -r conftest 2>/dev/null 14544 mkdir conftest 14545 cd conftest 14546 mkdir out 14547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14548 14549 lt_compiler_flag="-o out/conftest2.$ac_objext" 14550 # Insert the option either (1) after the last *FLAGS variable, or 14551 # (2) before a word containing "conftest.", or (3) at the end. 14552 # Note that $ac_compile itself does not contain backslashes and begins 14553 # with a dollar sign (not a hyphen), so the echo should work correctly. 14554 lt_compile=`echo "$ac_compile" | $SED \ 14555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14557 -e 's:$: $lt_compiler_flag:'` 14558 (eval echo "\"\$as_me:14558: $lt_compile\"" >&5) 14559 (eval "$lt_compile" 2>out/conftest.err) 14560 ac_status=$? 14561 cat out/conftest.err >&5 14562 echo "$as_me:14562: \$? = $ac_status" >&5 14563 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14564 then 14565 # The compiler can only warn and ignore the option if not recognized 14566 # So say no if there are warnings 14567 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14568 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14569 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14570 lt_cv_prog_compiler_c_o_CXX=yes 14571 fi 14572 fi 14573 chmod u+w . 2>&5 14574 $RM conftest* 14575 # SGI C++ compiler will create directory out/ii_files/ for 14576 # template instantiation 14577 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14578 $RM out/* && rmdir out 14579 cd .. 14580 $RM -r conftest 14581 $RM conftest* 14582 14583fi 14584{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14585$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14586 14587 14588 14589 14590hard_links="nottested" 14591if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14592 # do not overwrite the value of need_locks provided by the user 14593 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14594$as_echo_n "checking if we can lock with hard links... " >&6; } 14595 hard_links=yes 14596 $RM conftest* 14597 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14598 touch conftest.a 14599 ln conftest.a conftest.b 2>&5 || hard_links=no 14600 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14601 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14602$as_echo "$hard_links" >&6; } 14603 if test "$hard_links" = no; then 14604 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14605$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14606 need_locks=warn 14607 fi 14608else 14609 need_locks=no 14610fi 14611 14612 14613 14614 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14615$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14616 14617 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14618 case $host_os in 14619 aix[4-9]*) 14620 # If we're using GNU nm, then we don't want the "-C" option. 14621 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14622 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14623 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' 14624 else 14625 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' 14626 fi 14627 ;; 14628 pw32*) 14629 export_symbols_cmds_CXX="$ltdll_cmds" 14630 ;; 14631 cygwin* | mingw* | cegcc*) 14632 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' 14633 ;; 14634 *) 14635 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14636 ;; 14637 esac 14638 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14639 14640{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14641$as_echo "$ld_shlibs_CXX" >&6; } 14642test "$ld_shlibs_CXX" = no && can_build_shared=no 14643 14644with_gnu_ld_CXX=$with_gnu_ld 14645 14646 14647 14648 14649 14650 14651# 14652# Do we need to explicitly link libc? 14653# 14654case "x$archive_cmds_need_lc_CXX" in 14655x|xyes) 14656 # Assume -lc should be added 14657 archive_cmds_need_lc_CXX=yes 14658 14659 if test "$enable_shared" = yes && test "$GCC" = yes; then 14660 case $archive_cmds_CXX in 14661 *'~'*) 14662 # FIXME: we may have to deal with multi-command sequences. 14663 ;; 14664 '$CC '*) 14665 # Test whether the compiler implicitly links with -lc since on some 14666 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14667 # to ld, don't add -lc before -lgcc. 14668 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14669$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14670 $RM conftest* 14671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14672 14673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14674 (eval $ac_compile) 2>&5 14675 ac_status=$? 14676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14677 (exit $ac_status); } 2>conftest.err; then 14678 soname=conftest 14679 lib=conftest 14680 libobjs=conftest.$ac_objext 14681 deplibs= 14682 wl=$lt_prog_compiler_wl_CXX 14683 pic_flag=$lt_prog_compiler_pic_CXX 14684 compiler_flags=-v 14685 linker_flags=-v 14686 verstring= 14687 output_objdir=. 14688 libname=conftest 14689 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14690 allow_undefined_flag_CXX= 14691 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 14692 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14693 ac_status=$? 14694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14695 (exit $ac_status); } 14696 then 14697 archive_cmds_need_lc_CXX=no 14698 else 14699 archive_cmds_need_lc_CXX=yes 14700 fi 14701 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14702 else 14703 cat conftest.err 1>&5 14704 fi 14705 $RM conftest* 14706 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14707$as_echo "$archive_cmds_need_lc_CXX" >&6; } 14708 ;; 14709 esac 14710 fi 14711 ;; 14712esac 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14778$as_echo_n "checking dynamic linker characteristics... " >&6; } 14779 14780library_names_spec= 14781libname_spec='lib$name' 14782soname_spec= 14783shrext_cmds=".so" 14784postinstall_cmds= 14785postuninstall_cmds= 14786finish_cmds= 14787finish_eval= 14788shlibpath_var= 14789shlibpath_overrides_runpath=unknown 14790version_type=none 14791dynamic_linker="$host_os ld.so" 14792sys_lib_dlsearch_path_spec="/lib /usr/lib" 14793need_lib_prefix=unknown 14794hardcode_into_libs=no 14795 14796# when you set need_version to no, make sure it does not cause -set_version 14797# flags to be left without arguments 14798need_version=unknown 14799 14800case $host_os in 14801aix3*) 14802 version_type=linux 14803 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14804 shlibpath_var=LIBPATH 14805 14806 # AIX 3 has no versioning support, so we append a major version to the name. 14807 soname_spec='${libname}${release}${shared_ext}$major' 14808 ;; 14809 14810aix[4-9]*) 14811 version_type=linux 14812 need_lib_prefix=no 14813 need_version=no 14814 hardcode_into_libs=yes 14815 if test "$host_cpu" = ia64; then 14816 # AIX 5 supports IA64 14817 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14818 shlibpath_var=LD_LIBRARY_PATH 14819 else 14820 # With GCC up to 2.95.x, collect2 would create an import file 14821 # for dependence libraries. The import file would start with 14822 # the line `#! .'. This would cause the generated library to 14823 # depend on `.', always an invalid library. This was fixed in 14824 # development snapshots of GCC prior to 3.0. 14825 case $host_os in 14826 aix4 | aix4.[01] | aix4.[01].*) 14827 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14828 echo ' yes ' 14829 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14830 : 14831 else 14832 can_build_shared=no 14833 fi 14834 ;; 14835 esac 14836 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14837 # soname into executable. Probably we can add versioning support to 14838 # collect2, so additional links can be useful in future. 14839 if test "$aix_use_runtimelinking" = yes; then 14840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14841 # instead of lib<name>.a to let people know that these are not 14842 # typical AIX shared libraries. 14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14844 else 14845 # We preserve .a as extension for shared libraries through AIX4.2 14846 # and later when we are not doing run time linking. 14847 library_names_spec='${libname}${release}.a $libname.a' 14848 soname_spec='${libname}${release}${shared_ext}$major' 14849 fi 14850 shlibpath_var=LIBPATH 14851 fi 14852 ;; 14853 14854amigaos*) 14855 case $host_cpu in 14856 powerpc) 14857 # Since July 2007 AmigaOS4 officially supports .so libraries. 14858 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14860 ;; 14861 m68k) 14862 library_names_spec='$libname.ixlibrary $libname.a' 14863 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14864 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' 14865 ;; 14866 esac 14867 ;; 14868 14869beos*) 14870 library_names_spec='${libname}${shared_ext}' 14871 dynamic_linker="$host_os ld.so" 14872 shlibpath_var=LIBRARY_PATH 14873 ;; 14874 14875bsdi[45]*) 14876 version_type=linux 14877 need_version=no 14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14879 soname_spec='${libname}${release}${shared_ext}$major' 14880 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14881 shlibpath_var=LD_LIBRARY_PATH 14882 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14883 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14884 # the default ld.so.conf also contains /usr/contrib/lib and 14885 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14886 # libtool to hard-code these into programs 14887 ;; 14888 14889cygwin* | mingw* | pw32* | cegcc*) 14890 version_type=windows 14891 shrext_cmds=".dll" 14892 need_version=no 14893 need_lib_prefix=no 14894 14895 case $GCC,$host_os in 14896 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14897 library_names_spec='$libname.dll.a' 14898 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14899 postinstall_cmds='base_file=`basename \${file}`~ 14900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14901 dldir=$destdir/`dirname \$dlpath`~ 14902 test -d \$dldir || mkdir -p \$dldir~ 14903 $install_prog $dir/$dlname \$dldir/$dlname~ 14904 chmod a+x \$dldir/$dlname~ 14905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14907 fi' 14908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14909 dlpath=$dir/\$dldll~ 14910 $RM \$dlpath' 14911 shlibpath_overrides_runpath=yes 14912 14913 case $host_os in 14914 cygwin*) 14915 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14916 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14917 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14918 ;; 14919 mingw* | cegcc*) 14920 # MinGW DLLs use traditional 'lib' prefix 14921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14922 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14923 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14924 # It is most probably a Windows format PATH printed by 14925 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14926 # path with ; separators, and with drive letters. We can handle the 14927 # drive letters (cygwin fileutils understands them), so leave them, 14928 # especially as we might pass files found there to a mingw objdump, 14929 # which wouldn't understand a cygwinified path. Ahh. 14930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14931 else 14932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14933 fi 14934 ;; 14935 pw32*) 14936 # pw32 DLLs use 'pw' prefix rather than 'lib' 14937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14938 ;; 14939 esac 14940 ;; 14941 14942 *) 14943 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14944 ;; 14945 esac 14946 dynamic_linker='Win32 ld.exe' 14947 # FIXME: first we should search . and the directory the executable is in 14948 shlibpath_var=PATH 14949 ;; 14950 14951darwin* | rhapsody*) 14952 dynamic_linker="$host_os dyld" 14953 version_type=darwin 14954 need_lib_prefix=no 14955 need_version=no 14956 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14957 soname_spec='${libname}${release}${major}$shared_ext' 14958 shlibpath_overrides_runpath=yes 14959 shlibpath_var=DYLD_LIBRARY_PATH 14960 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14961 14962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14963 ;; 14964 14965dgux*) 14966 version_type=linux 14967 need_lib_prefix=no 14968 need_version=no 14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14970 soname_spec='${libname}${release}${shared_ext}$major' 14971 shlibpath_var=LD_LIBRARY_PATH 14972 ;; 14973 14974freebsd1*) 14975 dynamic_linker=no 14976 ;; 14977 14978freebsd* | dragonfly*) 14979 # DragonFly does not have aout. When/if they implement a new 14980 # versioning mechanism, adjust this. 14981 if test -x /usr/bin/objformat; then 14982 objformat=`/usr/bin/objformat` 14983 else 14984 case $host_os in 14985 freebsd[123]*) objformat=aout ;; 14986 *) objformat=elf ;; 14987 esac 14988 fi 14989 version_type=freebsd-$objformat 14990 case $version_type in 14991 freebsd-elf*) 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14993 need_version=no 14994 need_lib_prefix=no 14995 ;; 14996 freebsd-*) 14997 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14998 need_version=yes 14999 ;; 15000 esac 15001 shlibpath_var=LD_LIBRARY_PATH 15002 case $host_os in 15003 freebsd2*) 15004 shlibpath_overrides_runpath=yes 15005 ;; 15006 freebsd3.[01]* | freebsdelf3.[01]*) 15007 shlibpath_overrides_runpath=yes 15008 hardcode_into_libs=yes 15009 ;; 15010 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15011 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15012 shlibpath_overrides_runpath=no 15013 hardcode_into_libs=yes 15014 ;; 15015 *) # from 4.6 on, and DragonFly 15016 shlibpath_overrides_runpath=yes 15017 hardcode_into_libs=yes 15018 ;; 15019 esac 15020 ;; 15021 15022gnu*) 15023 version_type=linux 15024 need_lib_prefix=no 15025 need_version=no 15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15027 soname_spec='${libname}${release}${shared_ext}$major' 15028 shlibpath_var=LD_LIBRARY_PATH 15029 hardcode_into_libs=yes 15030 ;; 15031 15032hpux9* | hpux10* | hpux11*) 15033 # Give a soname corresponding to the major version so that dld.sl refuses to 15034 # link against other versions. 15035 version_type=sunos 15036 need_lib_prefix=no 15037 need_version=no 15038 case $host_cpu in 15039 ia64*) 15040 shrext_cmds='.so' 15041 hardcode_into_libs=yes 15042 dynamic_linker="$host_os dld.so" 15043 shlibpath_var=LD_LIBRARY_PATH 15044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15046 soname_spec='${libname}${release}${shared_ext}$major' 15047 if test "X$HPUX_IA64_MODE" = X32; then 15048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15049 else 15050 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15051 fi 15052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15053 ;; 15054 hppa*64*) 15055 shrext_cmds='.sl' 15056 hardcode_into_libs=yes 15057 dynamic_linker="$host_os dld.sl" 15058 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15061 soname_spec='${libname}${release}${shared_ext}$major' 15062 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15064 ;; 15065 *) 15066 shrext_cmds='.sl' 15067 dynamic_linker="$host_os dld.sl" 15068 shlibpath_var=SHLIB_PATH 15069 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15071 soname_spec='${libname}${release}${shared_ext}$major' 15072 ;; 15073 esac 15074 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15075 postinstall_cmds='chmod 555 $lib' 15076 ;; 15077 15078interix[3-9]*) 15079 version_type=linux 15080 need_lib_prefix=no 15081 need_version=no 15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15083 soname_spec='${libname}${release}${shared_ext}$major' 15084 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15085 shlibpath_var=LD_LIBRARY_PATH 15086 shlibpath_overrides_runpath=no 15087 hardcode_into_libs=yes 15088 ;; 15089 15090irix5* | irix6* | nonstopux*) 15091 case $host_os in 15092 nonstopux*) version_type=nonstopux ;; 15093 *) 15094 if test "$lt_cv_prog_gnu_ld" = yes; then 15095 version_type=linux 15096 else 15097 version_type=irix 15098 fi ;; 15099 esac 15100 need_lib_prefix=no 15101 need_version=no 15102 soname_spec='${libname}${release}${shared_ext}$major' 15103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15104 case $host_os in 15105 irix5* | nonstopux*) 15106 libsuff= shlibsuff= 15107 ;; 15108 *) 15109 case $LD in # libtool.m4 will add one of these switches to LD 15110 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15111 libsuff= shlibsuff= libmagic=32-bit;; 15112 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15113 libsuff=32 shlibsuff=N32 libmagic=N32;; 15114 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15115 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15116 *) libsuff= shlibsuff= libmagic=never-match;; 15117 esac 15118 ;; 15119 esac 15120 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15121 shlibpath_overrides_runpath=no 15122 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15123 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15124 hardcode_into_libs=yes 15125 ;; 15126 15127# No shared lib support for Linux oldld, aout, or coff. 15128linux*oldld* | linux*aout* | linux*coff*) 15129 dynamic_linker=no 15130 ;; 15131 15132# This must be Linux ELF. 15133linux* | k*bsd*-gnu) 15134 version_type=linux 15135 need_lib_prefix=no 15136 need_version=no 15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15138 soname_spec='${libname}${release}${shared_ext}$major' 15139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15140 shlibpath_var=LD_LIBRARY_PATH 15141 shlibpath_overrides_runpath=no 15142 # Some binutils ld are patched to set DT_RUNPATH 15143 save_LDFLAGS=$LDFLAGS 15144 save_libdir=$libdir 15145 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15146 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15147 cat >conftest.$ac_ext <<_ACEOF 15148/* confdefs.h. */ 15149_ACEOF 15150cat confdefs.h >>conftest.$ac_ext 15151cat >>conftest.$ac_ext <<_ACEOF 15152/* end confdefs.h. */ 15153 15154int 15155main () 15156{ 15157 15158 ; 15159 return 0; 15160} 15161_ACEOF 15162rm -f conftest.$ac_objext conftest$ac_exeext 15163if { (ac_try="$ac_link" 15164case "(($ac_try" in 15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15166 *) ac_try_echo=$ac_try;; 15167esac 15168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15169$as_echo "$ac_try_echo") >&5 15170 (eval "$ac_link") 2>conftest.er1 15171 ac_status=$? 15172 grep -v '^ *+' conftest.er1 >conftest.err 15173 rm -f conftest.er1 15174 cat conftest.err >&5 15175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15176 (exit $ac_status); } && { 15177 test -z "$ac_cxx_werror_flag" || 15178 test ! -s conftest.err 15179 } && test -s conftest$ac_exeext && { 15180 test "$cross_compiling" = yes || 15181 $as_test_x conftest$ac_exeext 15182 }; then 15183 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 15184 shlibpath_overrides_runpath=yes 15185fi 15186 15187else 15188 $as_echo "$as_me: failed program was:" >&5 15189sed 's/^/| /' conftest.$ac_ext >&5 15190 15191 15192fi 15193 15194rm -rf conftest.dSYM 15195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15196 conftest$ac_exeext conftest.$ac_ext 15197 LDFLAGS=$save_LDFLAGS 15198 libdir=$save_libdir 15199 15200 # This implies no fast_install, which is unacceptable. 15201 # Some rework will be needed to allow for fast_install 15202 # before this can be enabled. 15203 hardcode_into_libs=yes 15204 15205 # Append ld.so.conf contents to the search path 15206 if test -f /etc/ld.so.conf; then 15207 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' ' '` 15208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15209 fi 15210 15211 # We used to test for /lib/ld.so.1 and disable shared libraries on 15212 # powerpc, because MkLinux only supported shared libraries with the 15213 # GNU dynamic linker. Since this was broken with cross compilers, 15214 # most powerpc-linux boxes support dynamic linking these days and 15215 # people can always --disable-shared, the test was removed, and we 15216 # assume the GNU/Linux dynamic linker is in use. 15217 dynamic_linker='GNU/Linux ld.so' 15218 ;; 15219 15220netbsd*) 15221 version_type=sunos 15222 need_lib_prefix=no 15223 need_version=no 15224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15227 dynamic_linker='NetBSD (a.out) ld.so' 15228 else 15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15230 soname_spec='${libname}${release}${shared_ext}$major' 15231 dynamic_linker='NetBSD ld.elf_so' 15232 fi 15233 shlibpath_var=LD_LIBRARY_PATH 15234 shlibpath_overrides_runpath=yes 15235 hardcode_into_libs=yes 15236 ;; 15237 15238newsos6) 15239 version_type=linux 15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15241 shlibpath_var=LD_LIBRARY_PATH 15242 shlibpath_overrides_runpath=yes 15243 ;; 15244 15245*nto* | *qnx*) 15246 version_type=qnx 15247 need_lib_prefix=no 15248 need_version=no 15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15250 soname_spec='${libname}${release}${shared_ext}$major' 15251 shlibpath_var=LD_LIBRARY_PATH 15252 shlibpath_overrides_runpath=no 15253 hardcode_into_libs=yes 15254 dynamic_linker='ldqnx.so' 15255 ;; 15256 15257openbsd*) 15258 version_type=sunos 15259 sys_lib_dlsearch_path_spec="/usr/lib" 15260 need_lib_prefix=no 15261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15262 case $host_os in 15263 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15264 *) need_version=no ;; 15265 esac 15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15268 shlibpath_var=LD_LIBRARY_PATH 15269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15270 case $host_os in 15271 openbsd2.[89] | openbsd2.[89].*) 15272 shlibpath_overrides_runpath=no 15273 ;; 15274 *) 15275 shlibpath_overrides_runpath=yes 15276 ;; 15277 esac 15278 else 15279 shlibpath_overrides_runpath=yes 15280 fi 15281 ;; 15282 15283os2*) 15284 libname_spec='$name' 15285 shrext_cmds=".dll" 15286 need_lib_prefix=no 15287 library_names_spec='$libname${shared_ext} $libname.a' 15288 dynamic_linker='OS/2 ld.exe' 15289 shlibpath_var=LIBPATH 15290 ;; 15291 15292osf3* | osf4* | osf5*) 15293 version_type=osf 15294 need_lib_prefix=no 15295 need_version=no 15296 soname_spec='${libname}${release}${shared_ext}$major' 15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15298 shlibpath_var=LD_LIBRARY_PATH 15299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15301 ;; 15302 15303rdos*) 15304 dynamic_linker=no 15305 ;; 15306 15307solaris*) 15308 version_type=linux 15309 need_lib_prefix=no 15310 need_version=no 15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15312 soname_spec='${libname}${release}${shared_ext}$major' 15313 shlibpath_var=LD_LIBRARY_PATH 15314 shlibpath_overrides_runpath=yes 15315 hardcode_into_libs=yes 15316 # ldd complains unless libraries are executable 15317 postinstall_cmds='chmod +x $lib' 15318 ;; 15319 15320sunos4*) 15321 version_type=sunos 15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15324 shlibpath_var=LD_LIBRARY_PATH 15325 shlibpath_overrides_runpath=yes 15326 if test "$with_gnu_ld" = yes; then 15327 need_lib_prefix=no 15328 fi 15329 need_version=yes 15330 ;; 15331 15332sysv4 | sysv4.3*) 15333 version_type=linux 15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15335 soname_spec='${libname}${release}${shared_ext}$major' 15336 shlibpath_var=LD_LIBRARY_PATH 15337 case $host_vendor in 15338 sni) 15339 shlibpath_overrides_runpath=no 15340 need_lib_prefix=no 15341 runpath_var=LD_RUN_PATH 15342 ;; 15343 siemens) 15344 need_lib_prefix=no 15345 ;; 15346 motorola) 15347 need_lib_prefix=no 15348 need_version=no 15349 shlibpath_overrides_runpath=no 15350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15351 ;; 15352 esac 15353 ;; 15354 15355sysv4*MP*) 15356 if test -d /usr/nec ;then 15357 version_type=linux 15358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15359 soname_spec='$libname${shared_ext}.$major' 15360 shlibpath_var=LD_LIBRARY_PATH 15361 fi 15362 ;; 15363 15364sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15365 version_type=freebsd-elf 15366 need_lib_prefix=no 15367 need_version=no 15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15369 soname_spec='${libname}${release}${shared_ext}$major' 15370 shlibpath_var=LD_LIBRARY_PATH 15371 shlibpath_overrides_runpath=yes 15372 hardcode_into_libs=yes 15373 if test "$with_gnu_ld" = yes; then 15374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15375 else 15376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15377 case $host_os in 15378 sco3.2v5*) 15379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15380 ;; 15381 esac 15382 fi 15383 sys_lib_dlsearch_path_spec='/usr/lib' 15384 ;; 15385 15386tpf*) 15387 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15388 version_type=linux 15389 need_lib_prefix=no 15390 need_version=no 15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15392 shlibpath_var=LD_LIBRARY_PATH 15393 shlibpath_overrides_runpath=no 15394 hardcode_into_libs=yes 15395 ;; 15396 15397uts4*) 15398 version_type=linux 15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15400 soname_spec='${libname}${release}${shared_ext}$major' 15401 shlibpath_var=LD_LIBRARY_PATH 15402 ;; 15403 15404*) 15405 dynamic_linker=no 15406 ;; 15407esac 15408{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15409$as_echo "$dynamic_linker" >&6; } 15410test "$dynamic_linker" = no && can_build_shared=no 15411 15412variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15413if test "$GCC" = yes; then 15414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15415fi 15416 15417if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15418 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15419fi 15420if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15421 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15422fi 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15460$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15461hardcode_action_CXX= 15462if test -n "$hardcode_libdir_flag_spec_CXX" || 15463 test -n "$runpath_var_CXX" || 15464 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15465 15466 # We can hardcode non-existent directories. 15467 if test "$hardcode_direct_CXX" != no && 15468 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15469 # have to relink, otherwise we might link with an installed library 15470 # when we should be linking with a yet-to-be-installed one 15471 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15472 test "$hardcode_minus_L_CXX" != no; then 15473 # Linking always hardcodes the temporary library directory. 15474 hardcode_action_CXX=relink 15475 else 15476 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15477 hardcode_action_CXX=immediate 15478 fi 15479else 15480 # We cannot hardcode anything, or else we can only hardcode existing 15481 # directories. 15482 hardcode_action_CXX=unsupported 15483fi 15484{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15485$as_echo "$hardcode_action_CXX" >&6; } 15486 15487if test "$hardcode_action_CXX" = relink || 15488 test "$inherit_rpath_CXX" = yes; then 15489 # Fast installation is not supported 15490 enable_fast_install=no 15491elif test "$shlibpath_overrides_runpath" = yes || 15492 test "$enable_shared" = no; then 15493 # Fast installation is not necessary 15494 enable_fast_install=needless 15495fi 15496 15497 15498 15499 15500 15501 15502 15503 fi # test -n "$compiler" 15504 15505 CC=$lt_save_CC 15506 LDCXX=$LD 15507 LD=$lt_save_LD 15508 GCC=$lt_save_GCC 15509 with_gnu_ld=$lt_save_with_gnu_ld 15510 lt_cv_path_LDCXX=$lt_cv_path_LD 15511 lt_cv_path_LD=$lt_save_path_LD 15512 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15513 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15514fi # test "$_lt_caught_CXX_error" != yes 15515 15516ac_ext=c 15517ac_cpp='$CPP $CPPFLAGS' 15518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15520ac_compiler_gnu=$ac_cv_c_compiler_gnu 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 ac_config_commands="$ac_config_commands libtool" 15535 15536 15537 15538 15539# Only expand once: 15540 15541 15542# Check whether --enable-largefile was given. 15543if test "${enable_largefile+set}" = set; then 15544 enableval=$enable_largefile; 15545fi 15546 15547if test "$enable_largefile" != no; then 15548 15549 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 15550$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15551if test "${ac_cv_sys_largefile_CC+set}" = set; then 15552 $as_echo_n "(cached) " >&6 15553else 15554 ac_cv_sys_largefile_CC=no 15555 if test "$GCC" != yes; then 15556 ac_save_CC=$CC 15557 while :; do 15558 # IRIX 6.2 and later do not support large files by default, 15559 # so use the C compiler's -n32 option if that helps. 15560 cat >conftest.$ac_ext <<_ACEOF 15561/* confdefs.h. */ 15562_ACEOF 15563cat confdefs.h >>conftest.$ac_ext 15564cat >>conftest.$ac_ext <<_ACEOF 15565/* end confdefs.h. */ 15566#include <sys/types.h> 15567 /* Check that off_t can represent 2**63 - 1 correctly. 15568 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15569 since some C++ compilers masquerading as C compilers 15570 incorrectly reject 9223372036854775807. */ 15571#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15573 && LARGE_OFF_T % 2147483647 == 1) 15574 ? 1 : -1]; 15575int 15576main () 15577{ 15578 15579 ; 15580 return 0; 15581} 15582_ACEOF 15583 rm -f conftest.$ac_objext 15584if { (ac_try="$ac_compile" 15585case "(($ac_try" in 15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15587 *) ac_try_echo=$ac_try;; 15588esac 15589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15590$as_echo "$ac_try_echo") >&5 15591 (eval "$ac_compile") 2>conftest.er1 15592 ac_status=$? 15593 grep -v '^ *+' conftest.er1 >conftest.err 15594 rm -f conftest.er1 15595 cat conftest.err >&5 15596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15597 (exit $ac_status); } && { 15598 test -z "$ac_c_werror_flag" || 15599 test ! -s conftest.err 15600 } && test -s conftest.$ac_objext; then 15601 break 15602else 15603 $as_echo "$as_me: failed program was:" >&5 15604sed 's/^/| /' conftest.$ac_ext >&5 15605 15606 15607fi 15608 15609rm -f core conftest.err conftest.$ac_objext 15610 CC="$CC -n32" 15611 rm -f conftest.$ac_objext 15612if { (ac_try="$ac_compile" 15613case "(($ac_try" in 15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15615 *) ac_try_echo=$ac_try;; 15616esac 15617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15618$as_echo "$ac_try_echo") >&5 15619 (eval "$ac_compile") 2>conftest.er1 15620 ac_status=$? 15621 grep -v '^ *+' conftest.er1 >conftest.err 15622 rm -f conftest.er1 15623 cat conftest.err >&5 15624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15625 (exit $ac_status); } && { 15626 test -z "$ac_c_werror_flag" || 15627 test ! -s conftest.err 15628 } && test -s conftest.$ac_objext; then 15629 ac_cv_sys_largefile_CC=' -n32'; break 15630else 15631 $as_echo "$as_me: failed program was:" >&5 15632sed 's/^/| /' conftest.$ac_ext >&5 15633 15634 15635fi 15636 15637rm -f core conftest.err conftest.$ac_objext 15638 break 15639 done 15640 CC=$ac_save_CC 15641 rm -f conftest.$ac_ext 15642 fi 15643fi 15644{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 15645$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15646 if test "$ac_cv_sys_largefile_CC" != no; then 15647 CC=$CC$ac_cv_sys_largefile_CC 15648 fi 15649 15650 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15651$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15652if test "${ac_cv_sys_file_offset_bits+set}" = set; then 15653 $as_echo_n "(cached) " >&6 15654else 15655 while :; do 15656 cat >conftest.$ac_ext <<_ACEOF 15657/* confdefs.h. */ 15658_ACEOF 15659cat confdefs.h >>conftest.$ac_ext 15660cat >>conftest.$ac_ext <<_ACEOF 15661/* end confdefs.h. */ 15662#include <sys/types.h> 15663 /* Check that off_t can represent 2**63 - 1 correctly. 15664 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15665 since some C++ compilers masquerading as C compilers 15666 incorrectly reject 9223372036854775807. */ 15667#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15669 && LARGE_OFF_T % 2147483647 == 1) 15670 ? 1 : -1]; 15671int 15672main () 15673{ 15674 15675 ; 15676 return 0; 15677} 15678_ACEOF 15679rm -f conftest.$ac_objext 15680if { (ac_try="$ac_compile" 15681case "(($ac_try" in 15682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15683 *) ac_try_echo=$ac_try;; 15684esac 15685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15686$as_echo "$ac_try_echo") >&5 15687 (eval "$ac_compile") 2>conftest.er1 15688 ac_status=$? 15689 grep -v '^ *+' conftest.er1 >conftest.err 15690 rm -f conftest.er1 15691 cat conftest.err >&5 15692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15693 (exit $ac_status); } && { 15694 test -z "$ac_c_werror_flag" || 15695 test ! -s conftest.err 15696 } && test -s conftest.$ac_objext; then 15697 ac_cv_sys_file_offset_bits=no; break 15698else 15699 $as_echo "$as_me: failed program was:" >&5 15700sed 's/^/| /' conftest.$ac_ext >&5 15701 15702 15703fi 15704 15705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15706 cat >conftest.$ac_ext <<_ACEOF 15707/* confdefs.h. */ 15708_ACEOF 15709cat confdefs.h >>conftest.$ac_ext 15710cat >>conftest.$ac_ext <<_ACEOF 15711/* end confdefs.h. */ 15712#define _FILE_OFFSET_BITS 64 15713#include <sys/types.h> 15714 /* Check that off_t can represent 2**63 - 1 correctly. 15715 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15716 since some C++ compilers masquerading as C compilers 15717 incorrectly reject 9223372036854775807. */ 15718#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15719 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15720 && LARGE_OFF_T % 2147483647 == 1) 15721 ? 1 : -1]; 15722int 15723main () 15724{ 15725 15726 ; 15727 return 0; 15728} 15729_ACEOF 15730rm -f conftest.$ac_objext 15731if { (ac_try="$ac_compile" 15732case "(($ac_try" in 15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15734 *) ac_try_echo=$ac_try;; 15735esac 15736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15737$as_echo "$ac_try_echo") >&5 15738 (eval "$ac_compile") 2>conftest.er1 15739 ac_status=$? 15740 grep -v '^ *+' conftest.er1 >conftest.err 15741 rm -f conftest.er1 15742 cat conftest.err >&5 15743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15744 (exit $ac_status); } && { 15745 test -z "$ac_c_werror_flag" || 15746 test ! -s conftest.err 15747 } && test -s conftest.$ac_objext; then 15748 ac_cv_sys_file_offset_bits=64; break 15749else 15750 $as_echo "$as_me: failed program was:" >&5 15751sed 's/^/| /' conftest.$ac_ext >&5 15752 15753 15754fi 15755 15756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15757 ac_cv_sys_file_offset_bits=unknown 15758 break 15759done 15760fi 15761{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 15762$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15763case $ac_cv_sys_file_offset_bits in #( 15764 no | unknown) ;; 15765 *) 15766cat >>confdefs.h <<_ACEOF 15767#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15768_ACEOF 15769;; 15770esac 15771rm -rf conftest* 15772 if test $ac_cv_sys_file_offset_bits = unknown; then 15773 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 15774$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15775if test "${ac_cv_sys_large_files+set}" = set; then 15776 $as_echo_n "(cached) " >&6 15777else 15778 while :; do 15779 cat >conftest.$ac_ext <<_ACEOF 15780/* confdefs.h. */ 15781_ACEOF 15782cat confdefs.h >>conftest.$ac_ext 15783cat >>conftest.$ac_ext <<_ACEOF 15784/* end confdefs.h. */ 15785#include <sys/types.h> 15786 /* Check that off_t can represent 2**63 - 1 correctly. 15787 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15788 since some C++ compilers masquerading as C compilers 15789 incorrectly reject 9223372036854775807. */ 15790#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15792 && LARGE_OFF_T % 2147483647 == 1) 15793 ? 1 : -1]; 15794int 15795main () 15796{ 15797 15798 ; 15799 return 0; 15800} 15801_ACEOF 15802rm -f conftest.$ac_objext 15803if { (ac_try="$ac_compile" 15804case "(($ac_try" in 15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15806 *) ac_try_echo=$ac_try;; 15807esac 15808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15809$as_echo "$ac_try_echo") >&5 15810 (eval "$ac_compile") 2>conftest.er1 15811 ac_status=$? 15812 grep -v '^ *+' conftest.er1 >conftest.err 15813 rm -f conftest.er1 15814 cat conftest.err >&5 15815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15816 (exit $ac_status); } && { 15817 test -z "$ac_c_werror_flag" || 15818 test ! -s conftest.err 15819 } && test -s conftest.$ac_objext; then 15820 ac_cv_sys_large_files=no; break 15821else 15822 $as_echo "$as_me: failed program was:" >&5 15823sed 's/^/| /' conftest.$ac_ext >&5 15824 15825 15826fi 15827 15828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15829 cat >conftest.$ac_ext <<_ACEOF 15830/* confdefs.h. */ 15831_ACEOF 15832cat confdefs.h >>conftest.$ac_ext 15833cat >>conftest.$ac_ext <<_ACEOF 15834/* end confdefs.h. */ 15835#define _LARGE_FILES 1 15836#include <sys/types.h> 15837 /* Check that off_t can represent 2**63 - 1 correctly. 15838 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15839 since some C++ compilers masquerading as C compilers 15840 incorrectly reject 9223372036854775807. */ 15841#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15843 && LARGE_OFF_T % 2147483647 == 1) 15844 ? 1 : -1]; 15845int 15846main () 15847{ 15848 15849 ; 15850 return 0; 15851} 15852_ACEOF 15853rm -f conftest.$ac_objext 15854if { (ac_try="$ac_compile" 15855case "(($ac_try" in 15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15857 *) ac_try_echo=$ac_try;; 15858esac 15859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15860$as_echo "$ac_try_echo") >&5 15861 (eval "$ac_compile") 2>conftest.er1 15862 ac_status=$? 15863 grep -v '^ *+' conftest.er1 >conftest.err 15864 rm -f conftest.er1 15865 cat conftest.err >&5 15866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15867 (exit $ac_status); } && { 15868 test -z "$ac_c_werror_flag" || 15869 test ! -s conftest.err 15870 } && test -s conftest.$ac_objext; then 15871 ac_cv_sys_large_files=1; break 15872else 15873 $as_echo "$as_me: failed program was:" >&5 15874sed 's/^/| /' conftest.$ac_ext >&5 15875 15876 15877fi 15878 15879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15880 ac_cv_sys_large_files=unknown 15881 break 15882done 15883fi 15884{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 15885$as_echo "$ac_cv_sys_large_files" >&6; } 15886case $ac_cv_sys_large_files in #( 15887 no | unknown) ;; 15888 *) 15889cat >>confdefs.h <<_ACEOF 15890#define _LARGE_FILES $ac_cv_sys_large_files 15891_ACEOF 15892;; 15893esac 15894rm -rf conftest* 15895 fi 15896fi 15897 15898 15899ACLOCAL_AMFLAGS="-I m4 $ACLOCAL_AMFLAGS" 15900 15901 15902 15903use_msvc=no 15904 15905 15906case "$CXX" in 15907 clang*) ;; 15908 cl*|CL*) 15909 CXXFLAGS="-nologo -W1 -EHsc -DWIN32" 15910 if test x"$enable_shared" = "xyes"; then 15911 LIBEXT=".dll"; 15912 LIBFLAGS="-DLL -INCREMENTAL:NO" 15913 CXXFLAGS="$CXXFLAGS -D_WINDLL" 15914 else 15915 LIBEXT=".lib"; 15916 LIBFLAGS="-lib" 15917 fi 15918 RANLIB="echo" 15919 use_msvc=yes 15920 ;; 15921 *) 15922 ;; 15923esac 15924 if test x"$use_msvc" = "xyes"; then 15925 USE_MSVC_TRUE= 15926 USE_MSVC_FALSE='#' 15927else 15928 USE_MSVC_TRUE='#' 15929 USE_MSVC_FALSE= 15930fi 15931 15932 15933 15934{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 15935$as_echo_n "checking for ANSI C header files... " >&6; } 15936if test "${ac_cv_header_stdc+set}" = set; then 15937 $as_echo_n "(cached) " >&6 15938else 15939 cat >conftest.$ac_ext <<_ACEOF 15940/* confdefs.h. */ 15941_ACEOF 15942cat confdefs.h >>conftest.$ac_ext 15943cat >>conftest.$ac_ext <<_ACEOF 15944/* end confdefs.h. */ 15945#include <stdlib.h> 15946#include <stdarg.h> 15947#include <string.h> 15948#include <float.h> 15949 15950int 15951main () 15952{ 15953 15954 ; 15955 return 0; 15956} 15957_ACEOF 15958rm -f conftest.$ac_objext 15959if { (ac_try="$ac_compile" 15960case "(($ac_try" in 15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15962 *) ac_try_echo=$ac_try;; 15963esac 15964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15965$as_echo "$ac_try_echo") >&5 15966 (eval "$ac_compile") 2>conftest.er1 15967 ac_status=$? 15968 grep -v '^ *+' conftest.er1 >conftest.err 15969 rm -f conftest.er1 15970 cat conftest.err >&5 15971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15972 (exit $ac_status); } && { 15973 test -z "$ac_c_werror_flag" || 15974 test ! -s conftest.err 15975 } && test -s conftest.$ac_objext; then 15976 ac_cv_header_stdc=yes 15977else 15978 $as_echo "$as_me: failed program was:" >&5 15979sed 's/^/| /' conftest.$ac_ext >&5 15980 15981 ac_cv_header_stdc=no 15982fi 15983 15984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15985 15986if test $ac_cv_header_stdc = yes; then 15987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15988 cat >conftest.$ac_ext <<_ACEOF 15989/* confdefs.h. */ 15990_ACEOF 15991cat confdefs.h >>conftest.$ac_ext 15992cat >>conftest.$ac_ext <<_ACEOF 15993/* end confdefs.h. */ 15994#include <string.h> 15995 15996_ACEOF 15997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15998 $EGREP "memchr" >/dev/null 2>&1; then 15999 : 16000else 16001 ac_cv_header_stdc=no 16002fi 16003rm -f conftest* 16004 16005fi 16006 16007if test $ac_cv_header_stdc = yes; then 16008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16009 cat >conftest.$ac_ext <<_ACEOF 16010/* confdefs.h. */ 16011_ACEOF 16012cat confdefs.h >>conftest.$ac_ext 16013cat >>conftest.$ac_ext <<_ACEOF 16014/* end confdefs.h. */ 16015#include <stdlib.h> 16016 16017_ACEOF 16018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16019 $EGREP "free" >/dev/null 2>&1; then 16020 : 16021else 16022 ac_cv_header_stdc=no 16023fi 16024rm -f conftest* 16025 16026fi 16027 16028if test $ac_cv_header_stdc = yes; then 16029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16030 if test "$cross_compiling" = yes; then 16031 : 16032else 16033 cat >conftest.$ac_ext <<_ACEOF 16034/* confdefs.h. */ 16035_ACEOF 16036cat confdefs.h >>conftest.$ac_ext 16037cat >>conftest.$ac_ext <<_ACEOF 16038/* end confdefs.h. */ 16039#include <ctype.h> 16040#include <stdlib.h> 16041#if ((' ' & 0x0FF) == 0x020) 16042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16044#else 16045# define ISLOWER(c) \ 16046 (('a' <= (c) && (c) <= 'i') \ 16047 || ('j' <= (c) && (c) <= 'r') \ 16048 || ('s' <= (c) && (c) <= 'z')) 16049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16050#endif 16051 16052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16053int 16054main () 16055{ 16056 int i; 16057 for (i = 0; i < 256; i++) 16058 if (XOR (islower (i), ISLOWER (i)) 16059 || toupper (i) != TOUPPER (i)) 16060 return 2; 16061 return 0; 16062} 16063_ACEOF 16064rm -f conftest$ac_exeext 16065if { (ac_try="$ac_link" 16066case "(($ac_try" in 16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16068 *) ac_try_echo=$ac_try;; 16069esac 16070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16071$as_echo "$ac_try_echo") >&5 16072 (eval "$ac_link") 2>&5 16073 ac_status=$? 16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16076 { (case "(($ac_try" in 16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16078 *) ac_try_echo=$ac_try;; 16079esac 16080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16081$as_echo "$ac_try_echo") >&5 16082 (eval "$ac_try") 2>&5 16083 ac_status=$? 16084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16085 (exit $ac_status); }; }; then 16086 : 16087else 16088 $as_echo "$as_me: program exited with status $ac_status" >&5 16089$as_echo "$as_me: failed program was:" >&5 16090sed 's/^/| /' conftest.$ac_ext >&5 16091 16092( exit $ac_status ) 16093ac_cv_header_stdc=no 16094fi 16095rm -rf conftest.dSYM 16096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16097fi 16098 16099 16100fi 16101fi 16102{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 16103$as_echo "$ac_cv_header_stdc" >&6; } 16104if test $ac_cv_header_stdc = yes; then 16105 16106cat >>confdefs.h <<\_ACEOF 16107#define STDC_HEADERS 1 16108_ACEOF 16109 16110fi 16111 16112{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 16113$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 16114if test "${ac_cv_header_stdbool_h+set}" = set; then 16115 $as_echo_n "(cached) " >&6 16116else 16117 cat >conftest.$ac_ext <<_ACEOF 16118/* confdefs.h. */ 16119_ACEOF 16120cat confdefs.h >>conftest.$ac_ext 16121cat >>conftest.$ac_ext <<_ACEOF 16122/* end confdefs.h. */ 16123 16124#include <stdbool.h> 16125#ifndef bool 16126 "error: bool is not defined" 16127#endif 16128#ifndef false 16129 "error: false is not defined" 16130#endif 16131#if false 16132 "error: false is not 0" 16133#endif 16134#ifndef true 16135 "error: true is not defined" 16136#endif 16137#if true != 1 16138 "error: true is not 1" 16139#endif 16140#ifndef __bool_true_false_are_defined 16141 "error: __bool_true_false_are_defined is not defined" 16142#endif 16143 16144 struct s { _Bool s: 1; _Bool t; } s; 16145 16146 char a[true == 1 ? 1 : -1]; 16147 char b[false == 0 ? 1 : -1]; 16148 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 16149 char d[(bool) 0.5 == true ? 1 : -1]; 16150 bool e = &s; 16151 char f[(_Bool) 0.0 == false ? 1 : -1]; 16152 char g[true]; 16153 char h[sizeof (_Bool)]; 16154 char i[sizeof s.t]; 16155 enum { j = false, k = true, l = false * true, m = true * 256 }; 16156 /* The following fails for 16157 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 16158 _Bool n[m]; 16159 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 16160 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 16161# if defined __xlc__ || defined __GNUC__ 16162 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 16163 reported by James Lemley on 2005-10-05; see 16164 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 16165 This test is not quite right, since xlc is allowed to 16166 reject this program, as the initializer for xlcbug is 16167 not one of the forms that C requires support for. 16168 However, doing the test right would require a runtime 16169 test, and that would make cross-compilation harder. 16170 Let us hope that IBM fixes the xlc bug, and also adds 16171 support for this kind of constant expression. In the 16172 meantime, this test will reject xlc, which is OK, since 16173 our stdbool.h substitute should suffice. We also test 16174 this with GCC, where it should work, to detect more 16175 quickly whether someone messes up the test in the 16176 future. */ 16177 char digs[] = "0123456789"; 16178 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 16179# endif 16180 /* Catch a bug in an HP-UX C compiler. See 16181 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 16182 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 16183 */ 16184 _Bool q = true; 16185 _Bool *pq = &q; 16186 16187int 16188main () 16189{ 16190 16191 *pq |= q; 16192 *pq |= ! q; 16193 /* Refer to every declared value, to avoid compiler optimizations. */ 16194 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 16195 + !m + !n + !o + !p + !q + !pq); 16196 16197 ; 16198 return 0; 16199} 16200_ACEOF 16201rm -f conftest.$ac_objext 16202if { (ac_try="$ac_compile" 16203case "(($ac_try" in 16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16205 *) ac_try_echo=$ac_try;; 16206esac 16207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16208$as_echo "$ac_try_echo") >&5 16209 (eval "$ac_compile") 2>conftest.er1 16210 ac_status=$? 16211 grep -v '^ *+' conftest.er1 >conftest.err 16212 rm -f conftest.er1 16213 cat conftest.err >&5 16214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16215 (exit $ac_status); } && { 16216 test -z "$ac_c_werror_flag" || 16217 test ! -s conftest.err 16218 } && test -s conftest.$ac_objext; then 16219 ac_cv_header_stdbool_h=yes 16220else 16221 $as_echo "$as_me: failed program was:" >&5 16222sed 's/^/| /' conftest.$ac_ext >&5 16223 16224 ac_cv_header_stdbool_h=no 16225fi 16226 16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16228fi 16229{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 16230$as_echo "$ac_cv_header_stdbool_h" >&6; } 16231{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5 16232$as_echo_n "checking for _Bool... " >&6; } 16233if test "${ac_cv_type__Bool+set}" = set; then 16234 $as_echo_n "(cached) " >&6 16235else 16236 ac_cv_type__Bool=no 16237cat >conftest.$ac_ext <<_ACEOF 16238/* confdefs.h. */ 16239_ACEOF 16240cat confdefs.h >>conftest.$ac_ext 16241cat >>conftest.$ac_ext <<_ACEOF 16242/* end confdefs.h. */ 16243$ac_includes_default 16244int 16245main () 16246{ 16247if (sizeof (_Bool)) 16248 return 0; 16249 ; 16250 return 0; 16251} 16252_ACEOF 16253rm -f conftest.$ac_objext 16254if { (ac_try="$ac_compile" 16255case "(($ac_try" in 16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16257 *) ac_try_echo=$ac_try;; 16258esac 16259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16260$as_echo "$ac_try_echo") >&5 16261 (eval "$ac_compile") 2>conftest.er1 16262 ac_status=$? 16263 grep -v '^ *+' conftest.er1 >conftest.err 16264 rm -f conftest.er1 16265 cat conftest.err >&5 16266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16267 (exit $ac_status); } && { 16268 test -z "$ac_c_werror_flag" || 16269 test ! -s conftest.err 16270 } && test -s conftest.$ac_objext; then 16271 cat >conftest.$ac_ext <<_ACEOF 16272/* confdefs.h. */ 16273_ACEOF 16274cat confdefs.h >>conftest.$ac_ext 16275cat >>conftest.$ac_ext <<_ACEOF 16276/* end confdefs.h. */ 16277$ac_includes_default 16278int 16279main () 16280{ 16281if (sizeof ((_Bool))) 16282 return 0; 16283 ; 16284 return 0; 16285} 16286_ACEOF 16287rm -f conftest.$ac_objext 16288if { (ac_try="$ac_compile" 16289case "(($ac_try" in 16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16291 *) ac_try_echo=$ac_try;; 16292esac 16293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16294$as_echo "$ac_try_echo") >&5 16295 (eval "$ac_compile") 2>conftest.er1 16296 ac_status=$? 16297 grep -v '^ *+' conftest.er1 >conftest.err 16298 rm -f conftest.er1 16299 cat conftest.err >&5 16300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16301 (exit $ac_status); } && { 16302 test -z "$ac_c_werror_flag" || 16303 test ! -s conftest.err 16304 } && test -s conftest.$ac_objext; then 16305 : 16306else 16307 $as_echo "$as_me: failed program was:" >&5 16308sed 's/^/| /' conftest.$ac_ext >&5 16309 16310 ac_cv_type__Bool=yes 16311fi 16312 16313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16314else 16315 $as_echo "$as_me: failed program was:" >&5 16316sed 's/^/| /' conftest.$ac_ext >&5 16317 16318 16319fi 16320 16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16322fi 16323{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 16324$as_echo "$ac_cv_type__Bool" >&6; } 16325if test "x$ac_cv_type__Bool" = x""yes; then 16326 16327cat >>confdefs.h <<_ACEOF 16328#define HAVE__BOOL 1 16329_ACEOF 16330 16331 16332fi 16333 16334if test $ac_cv_header_stdbool_h = yes; then 16335 16336cat >>confdefs.h <<\_ACEOF 16337#define HAVE_STDBOOL_H 1 16338_ACEOF 16339 16340fi 16341 16342 16343ac_ext=cpp 16344ac_cpp='$CXXCPP $CPPFLAGS' 16345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16348 16349 16350if test "${ac_cv_header_streambuf+set}" = set; then 16351 { $as_echo "$as_me:$LINENO: checking for streambuf" >&5 16352$as_echo_n "checking for streambuf... " >&6; } 16353if test "${ac_cv_header_streambuf+set}" = set; then 16354 $as_echo_n "(cached) " >&6 16355fi 16356{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_streambuf" >&5 16357$as_echo "$ac_cv_header_streambuf" >&6; } 16358else 16359 # Is the header compilable? 16360{ $as_echo "$as_me:$LINENO: checking streambuf usability" >&5 16361$as_echo_n "checking streambuf usability... " >&6; } 16362cat >conftest.$ac_ext <<_ACEOF 16363/* confdefs.h. */ 16364_ACEOF 16365cat confdefs.h >>conftest.$ac_ext 16366cat >>conftest.$ac_ext <<_ACEOF 16367/* end confdefs.h. */ 16368$ac_includes_default 16369#include <streambuf> 16370_ACEOF 16371rm -f conftest.$ac_objext 16372if { (ac_try="$ac_compile" 16373case "(($ac_try" in 16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16375 *) ac_try_echo=$ac_try;; 16376esac 16377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16378$as_echo "$ac_try_echo") >&5 16379 (eval "$ac_compile") 2>conftest.er1 16380 ac_status=$? 16381 grep -v '^ *+' conftest.er1 >conftest.err 16382 rm -f conftest.er1 16383 cat conftest.err >&5 16384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16385 (exit $ac_status); } && { 16386 test -z "$ac_cxx_werror_flag" || 16387 test ! -s conftest.err 16388 } && test -s conftest.$ac_objext; then 16389 ac_header_compiler=yes 16390else 16391 $as_echo "$as_me: failed program was:" >&5 16392sed 's/^/| /' conftest.$ac_ext >&5 16393 16394 ac_header_compiler=no 16395fi 16396 16397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16398{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16399$as_echo "$ac_header_compiler" >&6; } 16400 16401# Is the header present? 16402{ $as_echo "$as_me:$LINENO: checking streambuf presence" >&5 16403$as_echo_n "checking streambuf presence... " >&6; } 16404cat >conftest.$ac_ext <<_ACEOF 16405/* confdefs.h. */ 16406_ACEOF 16407cat confdefs.h >>conftest.$ac_ext 16408cat >>conftest.$ac_ext <<_ACEOF 16409/* end confdefs.h. */ 16410#include <streambuf> 16411_ACEOF 16412if { (ac_try="$ac_cpp conftest.$ac_ext" 16413case "(($ac_try" in 16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16415 *) ac_try_echo=$ac_try;; 16416esac 16417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16418$as_echo "$ac_try_echo") >&5 16419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16420 ac_status=$? 16421 grep -v '^ *+' conftest.er1 >conftest.err 16422 rm -f conftest.er1 16423 cat conftest.err >&5 16424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16425 (exit $ac_status); } >/dev/null && { 16426 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 16427 test ! -s conftest.err 16428 }; then 16429 ac_header_preproc=yes 16430else 16431 $as_echo "$as_me: failed program was:" >&5 16432sed 's/^/| /' conftest.$ac_ext >&5 16433 16434 ac_header_preproc=no 16435fi 16436 16437rm -f conftest.err conftest.$ac_ext 16438{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16439$as_echo "$ac_header_preproc" >&6; } 16440 16441# So? What about this header? 16442case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 16443 yes:no: ) 16444 { $as_echo "$as_me:$LINENO: WARNING: streambuf: accepted by the compiler, rejected by the preprocessor!" >&5 16445$as_echo "$as_me: WARNING: streambuf: accepted by the compiler, rejected by the preprocessor!" >&2;} 16446 { $as_echo "$as_me:$LINENO: WARNING: streambuf: proceeding with the compiler's result" >&5 16447$as_echo "$as_me: WARNING: streambuf: proceeding with the compiler's result" >&2;} 16448 ac_header_preproc=yes 16449 ;; 16450 no:yes:* ) 16451 { $as_echo "$as_me:$LINENO: WARNING: streambuf: present but cannot be compiled" >&5 16452$as_echo "$as_me: WARNING: streambuf: present but cannot be compiled" >&2;} 16453 { $as_echo "$as_me:$LINENO: WARNING: streambuf: check for missing prerequisite headers?" >&5 16454$as_echo "$as_me: WARNING: streambuf: check for missing prerequisite headers?" >&2;} 16455 { $as_echo "$as_me:$LINENO: WARNING: streambuf: see the Autoconf documentation" >&5 16456$as_echo "$as_me: WARNING: streambuf: see the Autoconf documentation" >&2;} 16457 { $as_echo "$as_me:$LINENO: WARNING: streambuf: section \"Present But Cannot Be Compiled\"" >&5 16458$as_echo "$as_me: WARNING: streambuf: section \"Present But Cannot Be Compiled\"" >&2;} 16459 { $as_echo "$as_me:$LINENO: WARNING: streambuf: proceeding with the preprocessor's result" >&5 16460$as_echo "$as_me: WARNING: streambuf: proceeding with the preprocessor's result" >&2;} 16461 { $as_echo "$as_me:$LINENO: WARNING: streambuf: in the future, the compiler will take precedence" >&5 16462$as_echo "$as_me: WARNING: streambuf: in the future, the compiler will take precedence" >&2;} 16463 16464 ;; 16465esac 16466{ $as_echo "$as_me:$LINENO: checking for streambuf" >&5 16467$as_echo_n "checking for streambuf... " >&6; } 16468if test "${ac_cv_header_streambuf+set}" = set; then 16469 $as_echo_n "(cached) " >&6 16470else 16471 ac_cv_header_streambuf=$ac_header_preproc 16472fi 16473{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_streambuf" >&5 16474$as_echo "$ac_cv_header_streambuf" >&6; } 16475 16476fi 16477if test "x$ac_cv_header_streambuf" = x""yes; then 16478 : 16479else 16480 { { $as_echo "$as_me:$LINENO: error: \"Unsupported Compiler version\"" >&5 16481$as_echo "$as_me: error: \"Unsupported Compiler version\"" >&2;} 16482 { (exit 1); exit 1; }; } 16483fi 16484 16485 16486ac_ext=c 16487ac_cpp='$CPP $CPPFLAGS' 16488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16490ac_compiler_gnu=$ac_cv_c_compiler_gnu 16491 16492 16493# ------ AX CREATE STDINT H ------------------------------------- 16494{ $as_echo "$as_me:$LINENO: checking for stdint types" >&5 16495$as_echo_n "checking for stdint types... " >&6; } 16496ac_stdint_h=`echo libdirac_common/dirac-stdint.h` 16497# try to shortcircuit - if the default include path of the compiler 16498# can find a "stdint.h" header then we assume that all compilers can. 16499if test "${ac_cv_header_stdint_t+set}" = set; then 16500 $as_echo_n "(cached) " >&6 16501else 16502 16503old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" 16504old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" 16505old_CFLAGS="$CFLAGS" ; CFLAGS="" 16506cat >conftest.$ac_ext <<_ACEOF 16507/* confdefs.h. */ 16508_ACEOF 16509cat confdefs.h >>conftest.$ac_ext 16510cat >>conftest.$ac_ext <<_ACEOF 16511/* end confdefs.h. */ 16512#include <stdint.h> 16513int 16514main () 16515{ 16516int_least32_t v = 0; 16517 ; 16518 return 0; 16519} 16520_ACEOF 16521rm -f conftest.$ac_objext 16522if { (ac_try="$ac_compile" 16523case "(($ac_try" in 16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16525 *) ac_try_echo=$ac_try;; 16526esac 16527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16528$as_echo "$ac_try_echo") >&5 16529 (eval "$ac_compile") 2>conftest.er1 16530 ac_status=$? 16531 grep -v '^ *+' conftest.er1 >conftest.err 16532 rm -f conftest.er1 16533 cat conftest.err >&5 16534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16535 (exit $ac_status); } && { 16536 test -z "$ac_c_werror_flag" || 16537 test ! -s conftest.err 16538 } && test -s conftest.$ac_objext; then 16539 ac_cv_stdint_result="(assuming C99 compatible system)" 16540 ac_cv_header_stdint_t="stdint.h"; 16541else 16542 $as_echo "$as_me: failed program was:" >&5 16543sed 's/^/| /' conftest.$ac_ext >&5 16544 16545 ac_cv_header_stdint_t="" 16546fi 16547 16548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16549if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then 16550CFLAGS="-std=c99" 16551cat >conftest.$ac_ext <<_ACEOF 16552/* confdefs.h. */ 16553_ACEOF 16554cat confdefs.h >>conftest.$ac_ext 16555cat >>conftest.$ac_ext <<_ACEOF 16556/* end confdefs.h. */ 16557#include <stdint.h> 16558int 16559main () 16560{ 16561int_least32_t v = 0; 16562 ; 16563 return 0; 16564} 16565_ACEOF 16566rm -f conftest.$ac_objext 16567if { (ac_try="$ac_compile" 16568case "(($ac_try" in 16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16570 *) ac_try_echo=$ac_try;; 16571esac 16572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16573$as_echo "$ac_try_echo") >&5 16574 (eval "$ac_compile") 2>conftest.er1 16575 ac_status=$? 16576 grep -v '^ *+' conftest.er1 >conftest.err 16577 rm -f conftest.er1 16578 cat conftest.err >&5 16579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16580 (exit $ac_status); } && { 16581 test -z "$ac_c_werror_flag" || 16582 test ! -s conftest.err 16583 } && test -s conftest.$ac_objext; then 16584 { $as_echo "$as_me:$LINENO: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 16585$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} 16586else 16587 $as_echo "$as_me: failed program was:" >&5 16588sed 's/^/| /' conftest.$ac_ext >&5 16589 16590 16591fi 16592 16593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16594fi 16595CXXFLAGS="$old_CXXFLAGS" 16596CPPFLAGS="$old_CPPFLAGS" 16597CFLAGS="$old_CFLAGS" 16598fi 16599 16600 16601v="... $ac_cv_header_stdint_h" 16602if test "$ac_stdint_h" = "stdint.h" ; then 16603 { $as_echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5 16604$as_echo "(are you sure you want them in ./stdint.h?)" >&6; } 16605elif test "$ac_stdint_h" = "inttypes.h" ; then 16606 { $as_echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5 16607$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; } 16608elif test "_$ac_cv_header_stdint_t" = "_" ; then 16609 { $as_echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5 16610$as_echo "(putting them into $ac_stdint_h)$v" >&6; } 16611else 16612 ac_cv_header_stdint="$ac_cv_header_stdint_t" 16613 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5 16614$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; } 16615fi 16616 16617if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. 16618 16619 16620inttype_headers=`echo | sed -e 's/,/ /g'` 16621 16622ac_cv_stdint_result="(no helpful system typedefs seen)" 16623 16624{ $as_echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5 16625$as_echo_n "checking for stdint uintptr_t... " >&6; } 16626if test "${ac_cv_header_stdint_x+set}" = set; then 16627 $as_echo_n "(cached) " >&6 16628else 16629 16630 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) 16631 { $as_echo "$as_me:$LINENO: result: (..)" >&5 16632$as_echo "(..)" >&6; } 16633 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers 16634 do 16635 unset ac_cv_type_uintptr_t 16636 unset ac_cv_type_uint64_t 16637 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 16638$as_echo_n "checking for uintptr_t... " >&6; } 16639if test "${ac_cv_type_uintptr_t+set}" = set; then 16640 $as_echo_n "(cached) " >&6 16641else 16642 ac_cv_type_uintptr_t=no 16643cat >conftest.$ac_ext <<_ACEOF 16644/* confdefs.h. */ 16645_ACEOF 16646cat confdefs.h >>conftest.$ac_ext 16647cat >>conftest.$ac_ext <<_ACEOF 16648/* end confdefs.h. */ 16649#include <$i> 16650 16651int 16652main () 16653{ 16654if (sizeof (uintptr_t)) 16655 return 0; 16656 ; 16657 return 0; 16658} 16659_ACEOF 16660rm -f conftest.$ac_objext 16661if { (ac_try="$ac_compile" 16662case "(($ac_try" in 16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16664 *) ac_try_echo=$ac_try;; 16665esac 16666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16667$as_echo "$ac_try_echo") >&5 16668 (eval "$ac_compile") 2>conftest.er1 16669 ac_status=$? 16670 grep -v '^ *+' conftest.er1 >conftest.err 16671 rm -f conftest.er1 16672 cat conftest.err >&5 16673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16674 (exit $ac_status); } && { 16675 test -z "$ac_c_werror_flag" || 16676 test ! -s conftest.err 16677 } && test -s conftest.$ac_objext; then 16678 cat >conftest.$ac_ext <<_ACEOF 16679/* confdefs.h. */ 16680_ACEOF 16681cat confdefs.h >>conftest.$ac_ext 16682cat >>conftest.$ac_ext <<_ACEOF 16683/* end confdefs.h. */ 16684#include <$i> 16685 16686int 16687main () 16688{ 16689if (sizeof ((uintptr_t))) 16690 return 0; 16691 ; 16692 return 0; 16693} 16694_ACEOF 16695rm -f conftest.$ac_objext 16696if { (ac_try="$ac_compile" 16697case "(($ac_try" in 16698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16699 *) ac_try_echo=$ac_try;; 16700esac 16701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16702$as_echo "$ac_try_echo") >&5 16703 (eval "$ac_compile") 2>conftest.er1 16704 ac_status=$? 16705 grep -v '^ *+' conftest.er1 >conftest.err 16706 rm -f conftest.er1 16707 cat conftest.err >&5 16708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16709 (exit $ac_status); } && { 16710 test -z "$ac_c_werror_flag" || 16711 test ! -s conftest.err 16712 } && test -s conftest.$ac_objext; then 16713 : 16714else 16715 $as_echo "$as_me: failed program was:" >&5 16716sed 's/^/| /' conftest.$ac_ext >&5 16717 16718 ac_cv_type_uintptr_t=yes 16719fi 16720 16721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16722else 16723 $as_echo "$as_me: failed program was:" >&5 16724sed 's/^/| /' conftest.$ac_ext >&5 16725 16726 16727fi 16728 16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16730fi 16731{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 16732$as_echo "$ac_cv_type_uintptr_t" >&6; } 16733if test "x$ac_cv_type_uintptr_t" = x""yes; then 16734 ac_cv_header_stdint_x=$i 16735else 16736 continue 16737fi 16738 16739 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 16740$as_echo_n "checking for uint64_t... " >&6; } 16741if test "${ac_cv_type_uint64_t+set}" = set; then 16742 $as_echo_n "(cached) " >&6 16743else 16744 ac_cv_type_uint64_t=no 16745cat >conftest.$ac_ext <<_ACEOF 16746/* confdefs.h. */ 16747_ACEOF 16748cat confdefs.h >>conftest.$ac_ext 16749cat >>conftest.$ac_ext <<_ACEOF 16750/* end confdefs.h. */ 16751#include<$i> 16752 16753int 16754main () 16755{ 16756if (sizeof (uint64_t)) 16757 return 0; 16758 ; 16759 return 0; 16760} 16761_ACEOF 16762rm -f conftest.$ac_objext 16763if { (ac_try="$ac_compile" 16764case "(($ac_try" in 16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16766 *) ac_try_echo=$ac_try;; 16767esac 16768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16769$as_echo "$ac_try_echo") >&5 16770 (eval "$ac_compile") 2>conftest.er1 16771 ac_status=$? 16772 grep -v '^ *+' conftest.er1 >conftest.err 16773 rm -f conftest.er1 16774 cat conftest.err >&5 16775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16776 (exit $ac_status); } && { 16777 test -z "$ac_c_werror_flag" || 16778 test ! -s conftest.err 16779 } && test -s conftest.$ac_objext; then 16780 cat >conftest.$ac_ext <<_ACEOF 16781/* confdefs.h. */ 16782_ACEOF 16783cat confdefs.h >>conftest.$ac_ext 16784cat >>conftest.$ac_ext <<_ACEOF 16785/* end confdefs.h. */ 16786#include<$i> 16787 16788int 16789main () 16790{ 16791if (sizeof ((uint64_t))) 16792 return 0; 16793 ; 16794 return 0; 16795} 16796_ACEOF 16797rm -f conftest.$ac_objext 16798if { (ac_try="$ac_compile" 16799case "(($ac_try" in 16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16801 *) ac_try_echo=$ac_try;; 16802esac 16803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16804$as_echo "$ac_try_echo") >&5 16805 (eval "$ac_compile") 2>conftest.er1 16806 ac_status=$? 16807 grep -v '^ *+' conftest.er1 >conftest.err 16808 rm -f conftest.er1 16809 cat conftest.err >&5 16810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16811 (exit $ac_status); } && { 16812 test -z "$ac_c_werror_flag" || 16813 test ! -s conftest.err 16814 } && test -s conftest.$ac_objext; then 16815 : 16816else 16817 $as_echo "$as_me: failed program was:" >&5 16818sed 's/^/| /' conftest.$ac_ext >&5 16819 16820 ac_cv_type_uint64_t=yes 16821fi 16822 16823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16824else 16825 $as_echo "$as_me: failed program was:" >&5 16826sed 's/^/| /' conftest.$ac_ext >&5 16827 16828 16829fi 16830 16831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16832fi 16833{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16834$as_echo "$ac_cv_type_uint64_t" >&6; } 16835if test "x$ac_cv_type_uint64_t" = x""yes; then 16836 and64="/uint64_t" 16837else 16838 and64="" 16839fi 16840 16841 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)" 16842 break 16843 done 16844 { $as_echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5 16845$as_echo_n "checking for stdint uintptr_t... " >&6; } 16846 16847fi 16848{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5 16849$as_echo "$ac_cv_header_stdint_x" >&6; } 16850 16851 16852if test "_$ac_cv_header_stdint_x" = "_" ; then 16853 16854{ $as_echo "$as_me:$LINENO: checking for stdint uint32_t" >&5 16855$as_echo_n "checking for stdint uint32_t... " >&6; } 16856if test "${ac_cv_header_stdint_o+set}" = set; then 16857 $as_echo_n "(cached) " >&6 16858else 16859 16860 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) 16861 { $as_echo "$as_me:$LINENO: result: (..)" >&5 16862$as_echo "(..)" >&6; } 16863 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers 16864 do 16865 unset ac_cv_type_uint32_t 16866 unset ac_cv_type_uint64_t 16867 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 16868$as_echo_n "checking for uint32_t... " >&6; } 16869if test "${ac_cv_type_uint32_t+set}" = set; then 16870 $as_echo_n "(cached) " >&6 16871else 16872 ac_cv_type_uint32_t=no 16873cat >conftest.$ac_ext <<_ACEOF 16874/* confdefs.h. */ 16875_ACEOF 16876cat confdefs.h >>conftest.$ac_ext 16877cat >>conftest.$ac_ext <<_ACEOF 16878/* end confdefs.h. */ 16879#include <$i> 16880 16881int 16882main () 16883{ 16884if (sizeof (uint32_t)) 16885 return 0; 16886 ; 16887 return 0; 16888} 16889_ACEOF 16890rm -f conftest.$ac_objext 16891if { (ac_try="$ac_compile" 16892case "(($ac_try" in 16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16894 *) ac_try_echo=$ac_try;; 16895esac 16896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16897$as_echo "$ac_try_echo") >&5 16898 (eval "$ac_compile") 2>conftest.er1 16899 ac_status=$? 16900 grep -v '^ *+' conftest.er1 >conftest.err 16901 rm -f conftest.er1 16902 cat conftest.err >&5 16903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16904 (exit $ac_status); } && { 16905 test -z "$ac_c_werror_flag" || 16906 test ! -s conftest.err 16907 } && test -s conftest.$ac_objext; then 16908 cat >conftest.$ac_ext <<_ACEOF 16909/* confdefs.h. */ 16910_ACEOF 16911cat confdefs.h >>conftest.$ac_ext 16912cat >>conftest.$ac_ext <<_ACEOF 16913/* end confdefs.h. */ 16914#include <$i> 16915 16916int 16917main () 16918{ 16919if (sizeof ((uint32_t))) 16920 return 0; 16921 ; 16922 return 0; 16923} 16924_ACEOF 16925rm -f conftest.$ac_objext 16926if { (ac_try="$ac_compile" 16927case "(($ac_try" in 16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16929 *) ac_try_echo=$ac_try;; 16930esac 16931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16932$as_echo "$ac_try_echo") >&5 16933 (eval "$ac_compile") 2>conftest.er1 16934 ac_status=$? 16935 grep -v '^ *+' conftest.er1 >conftest.err 16936 rm -f conftest.er1 16937 cat conftest.err >&5 16938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16939 (exit $ac_status); } && { 16940 test -z "$ac_c_werror_flag" || 16941 test ! -s conftest.err 16942 } && test -s conftest.$ac_objext; then 16943 : 16944else 16945 $as_echo "$as_me: failed program was:" >&5 16946sed 's/^/| /' conftest.$ac_ext >&5 16947 16948 ac_cv_type_uint32_t=yes 16949fi 16950 16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16952else 16953 $as_echo "$as_me: failed program was:" >&5 16954sed 's/^/| /' conftest.$ac_ext >&5 16955 16956 16957fi 16958 16959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16960fi 16961{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 16962$as_echo "$ac_cv_type_uint32_t" >&6; } 16963if test "x$ac_cv_type_uint32_t" = x""yes; then 16964 ac_cv_header_stdint_o=$i 16965else 16966 continue 16967fi 16968 16969 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 16970$as_echo_n "checking for uint64_t... " >&6; } 16971if test "${ac_cv_type_uint64_t+set}" = set; then 16972 $as_echo_n "(cached) " >&6 16973else 16974 ac_cv_type_uint64_t=no 16975cat >conftest.$ac_ext <<_ACEOF 16976/* confdefs.h. */ 16977_ACEOF 16978cat confdefs.h >>conftest.$ac_ext 16979cat >>conftest.$ac_ext <<_ACEOF 16980/* end confdefs.h. */ 16981#include<$i> 16982 16983int 16984main () 16985{ 16986if (sizeof (uint64_t)) 16987 return 0; 16988 ; 16989 return 0; 16990} 16991_ACEOF 16992rm -f conftest.$ac_objext 16993if { (ac_try="$ac_compile" 16994case "(($ac_try" in 16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16996 *) ac_try_echo=$ac_try;; 16997esac 16998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16999$as_echo "$ac_try_echo") >&5 17000 (eval "$ac_compile") 2>conftest.er1 17001 ac_status=$? 17002 grep -v '^ *+' conftest.er1 >conftest.err 17003 rm -f conftest.er1 17004 cat conftest.err >&5 17005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17006 (exit $ac_status); } && { 17007 test -z "$ac_c_werror_flag" || 17008 test ! -s conftest.err 17009 } && test -s conftest.$ac_objext; then 17010 cat >conftest.$ac_ext <<_ACEOF 17011/* confdefs.h. */ 17012_ACEOF 17013cat confdefs.h >>conftest.$ac_ext 17014cat >>conftest.$ac_ext <<_ACEOF 17015/* end confdefs.h. */ 17016#include<$i> 17017 17018int 17019main () 17020{ 17021if (sizeof ((uint64_t))) 17022 return 0; 17023 ; 17024 return 0; 17025} 17026_ACEOF 17027rm -f conftest.$ac_objext 17028if { (ac_try="$ac_compile" 17029case "(($ac_try" in 17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17031 *) ac_try_echo=$ac_try;; 17032esac 17033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17034$as_echo "$ac_try_echo") >&5 17035 (eval "$ac_compile") 2>conftest.er1 17036 ac_status=$? 17037 grep -v '^ *+' conftest.er1 >conftest.err 17038 rm -f conftest.er1 17039 cat conftest.err >&5 17040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17041 (exit $ac_status); } && { 17042 test -z "$ac_c_werror_flag" || 17043 test ! -s conftest.err 17044 } && test -s conftest.$ac_objext; then 17045 : 17046else 17047 $as_echo "$as_me: failed program was:" >&5 17048sed 's/^/| /' conftest.$ac_ext >&5 17049 17050 ac_cv_type_uint64_t=yes 17051fi 17052 17053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17054else 17055 $as_echo "$as_me: failed program was:" >&5 17056sed 's/^/| /' conftest.$ac_ext >&5 17057 17058 17059fi 17060 17061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17062fi 17063{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17064$as_echo "$ac_cv_type_uint64_t" >&6; } 17065if test "x$ac_cv_type_uint64_t" = x""yes; then 17066 and64="/uint64_t" 17067else 17068 and64="" 17069fi 17070 17071 ac_cv_stdint_result="(seen uint32_t$and64 in $i)" 17072 break 17073 break; 17074 done 17075 { $as_echo "$as_me:$LINENO: checking for stdint uint32_t" >&5 17076$as_echo_n "checking for stdint uint32_t... " >&6; } 17077 17078fi 17079{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5 17080$as_echo "$ac_cv_header_stdint_o" >&6; } 17081 17082fi 17083 17084if test "_$ac_cv_header_stdint_x" = "_" ; then 17085if test "_$ac_cv_header_stdint_o" = "_" ; then 17086 17087{ $as_echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5 17088$as_echo_n "checking for stdint u_int32_t... " >&6; } 17089if test "${ac_cv_header_stdint_u+set}" = set; then 17090 $as_echo_n "(cached) " >&6 17091else 17092 17093 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) 17094 { $as_echo "$as_me:$LINENO: result: (..)" >&5 17095$as_echo "(..)" >&6; } 17096 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do 17097 unset ac_cv_type_u_int32_t 17098 unset ac_cv_type_u_int64_t 17099 { $as_echo "$as_me:$LINENO: checking for u_int32_t" >&5 17100$as_echo_n "checking for u_int32_t... " >&6; } 17101if test "${ac_cv_type_u_int32_t+set}" = set; then 17102 $as_echo_n "(cached) " >&6 17103else 17104 ac_cv_type_u_int32_t=no 17105cat >conftest.$ac_ext <<_ACEOF 17106/* confdefs.h. */ 17107_ACEOF 17108cat confdefs.h >>conftest.$ac_ext 17109cat >>conftest.$ac_ext <<_ACEOF 17110/* end confdefs.h. */ 17111#include <$i> 17112 17113int 17114main () 17115{ 17116if (sizeof (u_int32_t)) 17117 return 0; 17118 ; 17119 return 0; 17120} 17121_ACEOF 17122rm -f conftest.$ac_objext 17123if { (ac_try="$ac_compile" 17124case "(($ac_try" in 17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17126 *) ac_try_echo=$ac_try;; 17127esac 17128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17129$as_echo "$ac_try_echo") >&5 17130 (eval "$ac_compile") 2>conftest.er1 17131 ac_status=$? 17132 grep -v '^ *+' conftest.er1 >conftest.err 17133 rm -f conftest.er1 17134 cat conftest.err >&5 17135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17136 (exit $ac_status); } && { 17137 test -z "$ac_c_werror_flag" || 17138 test ! -s conftest.err 17139 } && test -s conftest.$ac_objext; then 17140 cat >conftest.$ac_ext <<_ACEOF 17141/* confdefs.h. */ 17142_ACEOF 17143cat confdefs.h >>conftest.$ac_ext 17144cat >>conftest.$ac_ext <<_ACEOF 17145/* end confdefs.h. */ 17146#include <$i> 17147 17148int 17149main () 17150{ 17151if (sizeof ((u_int32_t))) 17152 return 0; 17153 ; 17154 return 0; 17155} 17156_ACEOF 17157rm -f conftest.$ac_objext 17158if { (ac_try="$ac_compile" 17159case "(($ac_try" in 17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17161 *) ac_try_echo=$ac_try;; 17162esac 17163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17164$as_echo "$ac_try_echo") >&5 17165 (eval "$ac_compile") 2>conftest.er1 17166 ac_status=$? 17167 grep -v '^ *+' conftest.er1 >conftest.err 17168 rm -f conftest.er1 17169 cat conftest.err >&5 17170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17171 (exit $ac_status); } && { 17172 test -z "$ac_c_werror_flag" || 17173 test ! -s conftest.err 17174 } && test -s conftest.$ac_objext; then 17175 : 17176else 17177 $as_echo "$as_me: failed program was:" >&5 17178sed 's/^/| /' conftest.$ac_ext >&5 17179 17180 ac_cv_type_u_int32_t=yes 17181fi 17182 17183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17184else 17185 $as_echo "$as_me: failed program was:" >&5 17186sed 's/^/| /' conftest.$ac_ext >&5 17187 17188 17189fi 17190 17191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17192fi 17193{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 17194$as_echo "$ac_cv_type_u_int32_t" >&6; } 17195if test "x$ac_cv_type_u_int32_t" = x""yes; then 17196 ac_cv_header_stdint_u=$i 17197else 17198 continue 17199fi 17200 17201 { $as_echo "$as_me:$LINENO: checking for u_int64_t" >&5 17202$as_echo_n "checking for u_int64_t... " >&6; } 17203if test "${ac_cv_type_u_int64_t+set}" = set; then 17204 $as_echo_n "(cached) " >&6 17205else 17206 ac_cv_type_u_int64_t=no 17207cat >conftest.$ac_ext <<_ACEOF 17208/* confdefs.h. */ 17209_ACEOF 17210cat confdefs.h >>conftest.$ac_ext 17211cat >>conftest.$ac_ext <<_ACEOF 17212/* end confdefs.h. */ 17213#include<$i> 17214 17215int 17216main () 17217{ 17218if (sizeof (u_int64_t)) 17219 return 0; 17220 ; 17221 return 0; 17222} 17223_ACEOF 17224rm -f conftest.$ac_objext 17225if { (ac_try="$ac_compile" 17226case "(($ac_try" in 17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17228 *) ac_try_echo=$ac_try;; 17229esac 17230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17231$as_echo "$ac_try_echo") >&5 17232 (eval "$ac_compile") 2>conftest.er1 17233 ac_status=$? 17234 grep -v '^ *+' conftest.er1 >conftest.err 17235 rm -f conftest.er1 17236 cat conftest.err >&5 17237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17238 (exit $ac_status); } && { 17239 test -z "$ac_c_werror_flag" || 17240 test ! -s conftest.err 17241 } && test -s conftest.$ac_objext; then 17242 cat >conftest.$ac_ext <<_ACEOF 17243/* confdefs.h. */ 17244_ACEOF 17245cat confdefs.h >>conftest.$ac_ext 17246cat >>conftest.$ac_ext <<_ACEOF 17247/* end confdefs.h. */ 17248#include<$i> 17249 17250int 17251main () 17252{ 17253if (sizeof ((u_int64_t))) 17254 return 0; 17255 ; 17256 return 0; 17257} 17258_ACEOF 17259rm -f conftest.$ac_objext 17260if { (ac_try="$ac_compile" 17261case "(($ac_try" in 17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17263 *) ac_try_echo=$ac_try;; 17264esac 17265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17266$as_echo "$ac_try_echo") >&5 17267 (eval "$ac_compile") 2>conftest.er1 17268 ac_status=$? 17269 grep -v '^ *+' conftest.er1 >conftest.err 17270 rm -f conftest.er1 17271 cat conftest.err >&5 17272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17273 (exit $ac_status); } && { 17274 test -z "$ac_c_werror_flag" || 17275 test ! -s conftest.err 17276 } && test -s conftest.$ac_objext; then 17277 : 17278else 17279 $as_echo "$as_me: failed program was:" >&5 17280sed 's/^/| /' conftest.$ac_ext >&5 17281 17282 ac_cv_type_u_int64_t=yes 17283fi 17284 17285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17286else 17287 $as_echo "$as_me: failed program was:" >&5 17288sed 's/^/| /' conftest.$ac_ext >&5 17289 17290 17291fi 17292 17293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17294fi 17295{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17296$as_echo "$ac_cv_type_u_int64_t" >&6; } 17297if test "x$ac_cv_type_u_int64_t" = x""yes; then 17298 and64="/u_int64_t" 17299else 17300 and64="" 17301fi 17302 17303 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)" 17304 break 17305 break; 17306 done 17307 { $as_echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5 17308$as_echo_n "checking for stdint u_int32_t... " >&6; } 17309 17310fi 17311{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5 17312$as_echo "$ac_cv_header_stdint_u" >&6; } 17313 17314fi fi 17315 17316if test "_$ac_cv_header_stdint_x" = "_" ; then 17317 { $as_echo "$as_me:$LINENO: checking for stdint datatype model" >&5 17318$as_echo_n "checking for stdint datatype model... " >&6; } 17319 { $as_echo "$as_me:$LINENO: result: (..)" >&5 17320$as_echo "(..)" >&6; } 17321 17322 # The cast to long int works around a bug in the HP C Compiler 17323# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17324# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17325# This bug is HP SR number 8606223364. 17326{ $as_echo "$as_me:$LINENO: checking size of char" >&5 17327$as_echo_n "checking size of char... " >&6; } 17328if test "${ac_cv_sizeof_char+set}" = set; then 17329 $as_echo_n "(cached) " >&6 17330else 17331 if test "$cross_compiling" = yes; then 17332 # Depending upon the size, compute the lo and hi bounds. 17333cat >conftest.$ac_ext <<_ACEOF 17334/* confdefs.h. */ 17335_ACEOF 17336cat confdefs.h >>conftest.$ac_ext 17337cat >>conftest.$ac_ext <<_ACEOF 17338/* end confdefs.h. */ 17339$ac_includes_default 17340int 17341main () 17342{ 17343static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)]; 17344test_array [0] = 0 17345 17346 ; 17347 return 0; 17348} 17349_ACEOF 17350rm -f conftest.$ac_objext 17351if { (ac_try="$ac_compile" 17352case "(($ac_try" in 17353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17354 *) ac_try_echo=$ac_try;; 17355esac 17356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17357$as_echo "$ac_try_echo") >&5 17358 (eval "$ac_compile") 2>conftest.er1 17359 ac_status=$? 17360 grep -v '^ *+' conftest.er1 >conftest.err 17361 rm -f conftest.er1 17362 cat conftest.err >&5 17363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17364 (exit $ac_status); } && { 17365 test -z "$ac_c_werror_flag" || 17366 test ! -s conftest.err 17367 } && test -s conftest.$ac_objext; then 17368 ac_lo=0 ac_mid=0 17369 while :; do 17370 cat >conftest.$ac_ext <<_ACEOF 17371/* confdefs.h. */ 17372_ACEOF 17373cat confdefs.h >>conftest.$ac_ext 17374cat >>conftest.$ac_ext <<_ACEOF 17375/* end confdefs.h. */ 17376$ac_includes_default 17377int 17378main () 17379{ 17380static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; 17381test_array [0] = 0 17382 17383 ; 17384 return 0; 17385} 17386_ACEOF 17387rm -f conftest.$ac_objext 17388if { (ac_try="$ac_compile" 17389case "(($ac_try" in 17390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17391 *) ac_try_echo=$ac_try;; 17392esac 17393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17394$as_echo "$ac_try_echo") >&5 17395 (eval "$ac_compile") 2>conftest.er1 17396 ac_status=$? 17397 grep -v '^ *+' conftest.er1 >conftest.err 17398 rm -f conftest.er1 17399 cat conftest.err >&5 17400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17401 (exit $ac_status); } && { 17402 test -z "$ac_c_werror_flag" || 17403 test ! -s conftest.err 17404 } && test -s conftest.$ac_objext; then 17405 ac_hi=$ac_mid; break 17406else 17407 $as_echo "$as_me: failed program was:" >&5 17408sed 's/^/| /' conftest.$ac_ext >&5 17409 17410 ac_lo=`expr $ac_mid + 1` 17411 if test $ac_lo -le $ac_mid; then 17412 ac_lo= ac_hi= 17413 break 17414 fi 17415 ac_mid=`expr 2 '*' $ac_mid + 1` 17416fi 17417 17418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17419 done 17420else 17421 $as_echo "$as_me: failed program was:" >&5 17422sed 's/^/| /' conftest.$ac_ext >&5 17423 17424 cat >conftest.$ac_ext <<_ACEOF 17425/* confdefs.h. */ 17426_ACEOF 17427cat confdefs.h >>conftest.$ac_ext 17428cat >>conftest.$ac_ext <<_ACEOF 17429/* end confdefs.h. */ 17430$ac_includes_default 17431int 17432main () 17433{ 17434static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)]; 17435test_array [0] = 0 17436 17437 ; 17438 return 0; 17439} 17440_ACEOF 17441rm -f conftest.$ac_objext 17442if { (ac_try="$ac_compile" 17443case "(($ac_try" in 17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17445 *) ac_try_echo=$ac_try;; 17446esac 17447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17448$as_echo "$ac_try_echo") >&5 17449 (eval "$ac_compile") 2>conftest.er1 17450 ac_status=$? 17451 grep -v '^ *+' conftest.er1 >conftest.err 17452 rm -f conftest.er1 17453 cat conftest.err >&5 17454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17455 (exit $ac_status); } && { 17456 test -z "$ac_c_werror_flag" || 17457 test ! -s conftest.err 17458 } && test -s conftest.$ac_objext; then 17459 ac_hi=-1 ac_mid=-1 17460 while :; do 17461 cat >conftest.$ac_ext <<_ACEOF 17462/* confdefs.h. */ 17463_ACEOF 17464cat confdefs.h >>conftest.$ac_ext 17465cat >>conftest.$ac_ext <<_ACEOF 17466/* end confdefs.h. */ 17467$ac_includes_default 17468int 17469main () 17470{ 17471static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)]; 17472test_array [0] = 0 17473 17474 ; 17475 return 0; 17476} 17477_ACEOF 17478rm -f conftest.$ac_objext 17479if { (ac_try="$ac_compile" 17480case "(($ac_try" in 17481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17482 *) ac_try_echo=$ac_try;; 17483esac 17484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17485$as_echo "$ac_try_echo") >&5 17486 (eval "$ac_compile") 2>conftest.er1 17487 ac_status=$? 17488 grep -v '^ *+' conftest.er1 >conftest.err 17489 rm -f conftest.er1 17490 cat conftest.err >&5 17491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17492 (exit $ac_status); } && { 17493 test -z "$ac_c_werror_flag" || 17494 test ! -s conftest.err 17495 } && test -s conftest.$ac_objext; then 17496 ac_lo=$ac_mid; break 17497else 17498 $as_echo "$as_me: failed program was:" >&5 17499sed 's/^/| /' conftest.$ac_ext >&5 17500 17501 ac_hi=`expr '(' $ac_mid ')' - 1` 17502 if test $ac_mid -le $ac_hi; then 17503 ac_lo= ac_hi= 17504 break 17505 fi 17506 ac_mid=`expr 2 '*' $ac_mid` 17507fi 17508 17509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17510 done 17511else 17512 $as_echo "$as_me: failed program was:" >&5 17513sed 's/^/| /' conftest.$ac_ext >&5 17514 17515 ac_lo= ac_hi= 17516fi 17517 17518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17519fi 17520 17521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17522# Binary search between lo and hi bounds. 17523while test "x$ac_lo" != "x$ac_hi"; do 17524 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 17525 cat >conftest.$ac_ext <<_ACEOF 17526/* confdefs.h. */ 17527_ACEOF 17528cat confdefs.h >>conftest.$ac_ext 17529cat >>conftest.$ac_ext <<_ACEOF 17530/* end confdefs.h. */ 17531$ac_includes_default 17532int 17533main () 17534{ 17535static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)]; 17536test_array [0] = 0 17537 17538 ; 17539 return 0; 17540} 17541_ACEOF 17542rm -f conftest.$ac_objext 17543if { (ac_try="$ac_compile" 17544case "(($ac_try" in 17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17546 *) ac_try_echo=$ac_try;; 17547esac 17548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17549$as_echo "$ac_try_echo") >&5 17550 (eval "$ac_compile") 2>conftest.er1 17551 ac_status=$? 17552 grep -v '^ *+' conftest.er1 >conftest.err 17553 rm -f conftest.er1 17554 cat conftest.err >&5 17555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17556 (exit $ac_status); } && { 17557 test -z "$ac_c_werror_flag" || 17558 test ! -s conftest.err 17559 } && test -s conftest.$ac_objext; then 17560 ac_hi=$ac_mid 17561else 17562 $as_echo "$as_me: failed program was:" >&5 17563sed 's/^/| /' conftest.$ac_ext >&5 17564 17565 ac_lo=`expr '(' $ac_mid ')' + 1` 17566fi 17567 17568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17569done 17570case $ac_lo in 17571?*) ac_cv_sizeof_char=$ac_lo;; 17572'') if test "$ac_cv_type_char" = yes; then 17573 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 17574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17575{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) 17576See \`config.log' for more details." >&5 17577$as_echo "$as_me: error: cannot compute sizeof (char) 17578See \`config.log' for more details." >&2;} 17579 { (exit 77); exit 77; }; }; } 17580 else 17581 ac_cv_sizeof_char=0 17582 fi ;; 17583esac 17584else 17585 cat >conftest.$ac_ext <<_ACEOF 17586/* confdefs.h. */ 17587_ACEOF 17588cat confdefs.h >>conftest.$ac_ext 17589cat >>conftest.$ac_ext <<_ACEOF 17590/* end confdefs.h. */ 17591$ac_includes_default 17592static long int longval () { return (long int) (sizeof (char)); } 17593static unsigned long int ulongval () { return (long int) (sizeof (char)); } 17594#include <stdio.h> 17595#include <stdlib.h> 17596int 17597main () 17598{ 17599 17600 FILE *f = fopen ("conftest.val", "w"); 17601 if (! f) 17602 return 1; 17603 if (((long int) (sizeof (char))) < 0) 17604 { 17605 long int i = longval (); 17606 if (i != ((long int) (sizeof (char)))) 17607 return 1; 17608 fprintf (f, "%ld", i); 17609 } 17610 else 17611 { 17612 unsigned long int i = ulongval (); 17613 if (i != ((long int) (sizeof (char)))) 17614 return 1; 17615 fprintf (f, "%lu", i); 17616 } 17617 /* Do not output a trailing newline, as this causes \r\n confusion 17618 on some platforms. */ 17619 return ferror (f) || fclose (f) != 0; 17620 17621 ; 17622 return 0; 17623} 17624_ACEOF 17625rm -f conftest$ac_exeext 17626if { (ac_try="$ac_link" 17627case "(($ac_try" in 17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17629 *) ac_try_echo=$ac_try;; 17630esac 17631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17632$as_echo "$ac_try_echo") >&5 17633 (eval "$ac_link") 2>&5 17634 ac_status=$? 17635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17637 { (case "(($ac_try" in 17638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17639 *) ac_try_echo=$ac_try;; 17640esac 17641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17642$as_echo "$ac_try_echo") >&5 17643 (eval "$ac_try") 2>&5 17644 ac_status=$? 17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17646 (exit $ac_status); }; }; then 17647 ac_cv_sizeof_char=`cat conftest.val` 17648else 17649 $as_echo "$as_me: program exited with status $ac_status" >&5 17650$as_echo "$as_me: failed program was:" >&5 17651sed 's/^/| /' conftest.$ac_ext >&5 17652 17653( exit $ac_status ) 17654if test "$ac_cv_type_char" = yes; then 17655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 17656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17657{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char) 17658See \`config.log' for more details." >&5 17659$as_echo "$as_me: error: cannot compute sizeof (char) 17660See \`config.log' for more details." >&2;} 17661 { (exit 77); exit 77; }; }; } 17662 else 17663 ac_cv_sizeof_char=0 17664 fi 17665fi 17666rm -rf conftest.dSYM 17667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17668fi 17669rm -f conftest.val 17670fi 17671{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 17672$as_echo "$ac_cv_sizeof_char" >&6; } 17673 17674 17675 17676cat >>confdefs.h <<_ACEOF 17677#define SIZEOF_CHAR $ac_cv_sizeof_char 17678_ACEOF 17679 17680 17681 # The cast to long int works around a bug in the HP C Compiler 17682# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17683# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17684# This bug is HP SR number 8606223364. 17685{ $as_echo "$as_me:$LINENO: checking size of short" >&5 17686$as_echo_n "checking size of short... " >&6; } 17687if test "${ac_cv_sizeof_short+set}" = set; then 17688 $as_echo_n "(cached) " >&6 17689else 17690 if test "$cross_compiling" = yes; then 17691 # Depending upon the size, compute the lo and hi bounds. 17692cat >conftest.$ac_ext <<_ACEOF 17693/* confdefs.h. */ 17694_ACEOF 17695cat confdefs.h >>conftest.$ac_ext 17696cat >>conftest.$ac_ext <<_ACEOF 17697/* end confdefs.h. */ 17698$ac_includes_default 17699int 17700main () 17701{ 17702static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)]; 17703test_array [0] = 0 17704 17705 ; 17706 return 0; 17707} 17708_ACEOF 17709rm -f conftest.$ac_objext 17710if { (ac_try="$ac_compile" 17711case "(($ac_try" in 17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17713 *) ac_try_echo=$ac_try;; 17714esac 17715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17716$as_echo "$ac_try_echo") >&5 17717 (eval "$ac_compile") 2>conftest.er1 17718 ac_status=$? 17719 grep -v '^ *+' conftest.er1 >conftest.err 17720 rm -f conftest.er1 17721 cat conftest.err >&5 17722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17723 (exit $ac_status); } && { 17724 test -z "$ac_c_werror_flag" || 17725 test ! -s conftest.err 17726 } && test -s conftest.$ac_objext; then 17727 ac_lo=0 ac_mid=0 17728 while :; do 17729 cat >conftest.$ac_ext <<_ACEOF 17730/* confdefs.h. */ 17731_ACEOF 17732cat confdefs.h >>conftest.$ac_ext 17733cat >>conftest.$ac_ext <<_ACEOF 17734/* end confdefs.h. */ 17735$ac_includes_default 17736int 17737main () 17738{ 17739static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; 17740test_array [0] = 0 17741 17742 ; 17743 return 0; 17744} 17745_ACEOF 17746rm -f conftest.$ac_objext 17747if { (ac_try="$ac_compile" 17748case "(($ac_try" in 17749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17750 *) ac_try_echo=$ac_try;; 17751esac 17752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17753$as_echo "$ac_try_echo") >&5 17754 (eval "$ac_compile") 2>conftest.er1 17755 ac_status=$? 17756 grep -v '^ *+' conftest.er1 >conftest.err 17757 rm -f conftest.er1 17758 cat conftest.err >&5 17759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17760 (exit $ac_status); } && { 17761 test -z "$ac_c_werror_flag" || 17762 test ! -s conftest.err 17763 } && test -s conftest.$ac_objext; then 17764 ac_hi=$ac_mid; break 17765else 17766 $as_echo "$as_me: failed program was:" >&5 17767sed 's/^/| /' conftest.$ac_ext >&5 17768 17769 ac_lo=`expr $ac_mid + 1` 17770 if test $ac_lo -le $ac_mid; then 17771 ac_lo= ac_hi= 17772 break 17773 fi 17774 ac_mid=`expr 2 '*' $ac_mid + 1` 17775fi 17776 17777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17778 done 17779else 17780 $as_echo "$as_me: failed program was:" >&5 17781sed 's/^/| /' conftest.$ac_ext >&5 17782 17783 cat >conftest.$ac_ext <<_ACEOF 17784/* confdefs.h. */ 17785_ACEOF 17786cat confdefs.h >>conftest.$ac_ext 17787cat >>conftest.$ac_ext <<_ACEOF 17788/* end confdefs.h. */ 17789$ac_includes_default 17790int 17791main () 17792{ 17793static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)]; 17794test_array [0] = 0 17795 17796 ; 17797 return 0; 17798} 17799_ACEOF 17800rm -f conftest.$ac_objext 17801if { (ac_try="$ac_compile" 17802case "(($ac_try" in 17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17804 *) ac_try_echo=$ac_try;; 17805esac 17806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17807$as_echo "$ac_try_echo") >&5 17808 (eval "$ac_compile") 2>conftest.er1 17809 ac_status=$? 17810 grep -v '^ *+' conftest.er1 >conftest.err 17811 rm -f conftest.er1 17812 cat conftest.err >&5 17813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17814 (exit $ac_status); } && { 17815 test -z "$ac_c_werror_flag" || 17816 test ! -s conftest.err 17817 } && test -s conftest.$ac_objext; then 17818 ac_hi=-1 ac_mid=-1 17819 while :; do 17820 cat >conftest.$ac_ext <<_ACEOF 17821/* confdefs.h. */ 17822_ACEOF 17823cat confdefs.h >>conftest.$ac_ext 17824cat >>conftest.$ac_ext <<_ACEOF 17825/* end confdefs.h. */ 17826$ac_includes_default 17827int 17828main () 17829{ 17830static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)]; 17831test_array [0] = 0 17832 17833 ; 17834 return 0; 17835} 17836_ACEOF 17837rm -f conftest.$ac_objext 17838if { (ac_try="$ac_compile" 17839case "(($ac_try" in 17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17841 *) ac_try_echo=$ac_try;; 17842esac 17843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17844$as_echo "$ac_try_echo") >&5 17845 (eval "$ac_compile") 2>conftest.er1 17846 ac_status=$? 17847 grep -v '^ *+' conftest.er1 >conftest.err 17848 rm -f conftest.er1 17849 cat conftest.err >&5 17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17851 (exit $ac_status); } && { 17852 test -z "$ac_c_werror_flag" || 17853 test ! -s conftest.err 17854 } && test -s conftest.$ac_objext; then 17855 ac_lo=$ac_mid; break 17856else 17857 $as_echo "$as_me: failed program was:" >&5 17858sed 's/^/| /' conftest.$ac_ext >&5 17859 17860 ac_hi=`expr '(' $ac_mid ')' - 1` 17861 if test $ac_mid -le $ac_hi; then 17862 ac_lo= ac_hi= 17863 break 17864 fi 17865 ac_mid=`expr 2 '*' $ac_mid` 17866fi 17867 17868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17869 done 17870else 17871 $as_echo "$as_me: failed program was:" >&5 17872sed 's/^/| /' conftest.$ac_ext >&5 17873 17874 ac_lo= ac_hi= 17875fi 17876 17877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17878fi 17879 17880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17881# Binary search between lo and hi bounds. 17882while test "x$ac_lo" != "x$ac_hi"; do 17883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 17884 cat >conftest.$ac_ext <<_ACEOF 17885/* confdefs.h. */ 17886_ACEOF 17887cat confdefs.h >>conftest.$ac_ext 17888cat >>conftest.$ac_ext <<_ACEOF 17889/* end confdefs.h. */ 17890$ac_includes_default 17891int 17892main () 17893{ 17894static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)]; 17895test_array [0] = 0 17896 17897 ; 17898 return 0; 17899} 17900_ACEOF 17901rm -f conftest.$ac_objext 17902if { (ac_try="$ac_compile" 17903case "(($ac_try" in 17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17905 *) ac_try_echo=$ac_try;; 17906esac 17907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17908$as_echo "$ac_try_echo") >&5 17909 (eval "$ac_compile") 2>conftest.er1 17910 ac_status=$? 17911 grep -v '^ *+' conftest.er1 >conftest.err 17912 rm -f conftest.er1 17913 cat conftest.err >&5 17914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17915 (exit $ac_status); } && { 17916 test -z "$ac_c_werror_flag" || 17917 test ! -s conftest.err 17918 } && test -s conftest.$ac_objext; then 17919 ac_hi=$ac_mid 17920else 17921 $as_echo "$as_me: failed program was:" >&5 17922sed 's/^/| /' conftest.$ac_ext >&5 17923 17924 ac_lo=`expr '(' $ac_mid ')' + 1` 17925fi 17926 17927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17928done 17929case $ac_lo in 17930?*) ac_cv_sizeof_short=$ac_lo;; 17931'') if test "$ac_cv_type_short" = yes; then 17932 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 17933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17934{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) 17935See \`config.log' for more details." >&5 17936$as_echo "$as_me: error: cannot compute sizeof (short) 17937See \`config.log' for more details." >&2;} 17938 { (exit 77); exit 77; }; }; } 17939 else 17940 ac_cv_sizeof_short=0 17941 fi ;; 17942esac 17943else 17944 cat >conftest.$ac_ext <<_ACEOF 17945/* confdefs.h. */ 17946_ACEOF 17947cat confdefs.h >>conftest.$ac_ext 17948cat >>conftest.$ac_ext <<_ACEOF 17949/* end confdefs.h. */ 17950$ac_includes_default 17951static long int longval () { return (long int) (sizeof (short)); } 17952static unsigned long int ulongval () { return (long int) (sizeof (short)); } 17953#include <stdio.h> 17954#include <stdlib.h> 17955int 17956main () 17957{ 17958 17959 FILE *f = fopen ("conftest.val", "w"); 17960 if (! f) 17961 return 1; 17962 if (((long int) (sizeof (short))) < 0) 17963 { 17964 long int i = longval (); 17965 if (i != ((long int) (sizeof (short)))) 17966 return 1; 17967 fprintf (f, "%ld", i); 17968 } 17969 else 17970 { 17971 unsigned long int i = ulongval (); 17972 if (i != ((long int) (sizeof (short)))) 17973 return 1; 17974 fprintf (f, "%lu", i); 17975 } 17976 /* Do not output a trailing newline, as this causes \r\n confusion 17977 on some platforms. */ 17978 return ferror (f) || fclose (f) != 0; 17979 17980 ; 17981 return 0; 17982} 17983_ACEOF 17984rm -f conftest$ac_exeext 17985if { (ac_try="$ac_link" 17986case "(($ac_try" in 17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17988 *) ac_try_echo=$ac_try;; 17989esac 17990eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17991$as_echo "$ac_try_echo") >&5 17992 (eval "$ac_link") 2>&5 17993 ac_status=$? 17994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17996 { (case "(($ac_try" in 17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17998 *) ac_try_echo=$ac_try;; 17999esac 18000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18001$as_echo "$ac_try_echo") >&5 18002 (eval "$ac_try") 2>&5 18003 ac_status=$? 18004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18005 (exit $ac_status); }; }; then 18006 ac_cv_sizeof_short=`cat conftest.val` 18007else 18008 $as_echo "$as_me: program exited with status $ac_status" >&5 18009$as_echo "$as_me: failed program was:" >&5 18010sed 's/^/| /' conftest.$ac_ext >&5 18011 18012( exit $ac_status ) 18013if test "$ac_cv_type_short" = yes; then 18014 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 18015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18016{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short) 18017See \`config.log' for more details." >&5 18018$as_echo "$as_me: error: cannot compute sizeof (short) 18019See \`config.log' for more details." >&2;} 18020 { (exit 77); exit 77; }; }; } 18021 else 18022 ac_cv_sizeof_short=0 18023 fi 18024fi 18025rm -rf conftest.dSYM 18026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18027fi 18028rm -f conftest.val 18029fi 18030{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 18031$as_echo "$ac_cv_sizeof_short" >&6; } 18032 18033 18034 18035cat >>confdefs.h <<_ACEOF 18036#define SIZEOF_SHORT $ac_cv_sizeof_short 18037_ACEOF 18038 18039 18040 # The cast to long int works around a bug in the HP C Compiler 18041# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18042# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18043# This bug is HP SR number 8606223364. 18044{ $as_echo "$as_me:$LINENO: checking size of int" >&5 18045$as_echo_n "checking size of int... " >&6; } 18046if test "${ac_cv_sizeof_int+set}" = set; then 18047 $as_echo_n "(cached) " >&6 18048else 18049 if test "$cross_compiling" = yes; then 18050 # Depending upon the size, compute the lo and hi bounds. 18051cat >conftest.$ac_ext <<_ACEOF 18052/* confdefs.h. */ 18053_ACEOF 18054cat confdefs.h >>conftest.$ac_ext 18055cat >>conftest.$ac_ext <<_ACEOF 18056/* end confdefs.h. */ 18057$ac_includes_default 18058int 18059main () 18060{ 18061static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)]; 18062test_array [0] = 0 18063 18064 ; 18065 return 0; 18066} 18067_ACEOF 18068rm -f conftest.$ac_objext 18069if { (ac_try="$ac_compile" 18070case "(($ac_try" in 18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18072 *) ac_try_echo=$ac_try;; 18073esac 18074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18075$as_echo "$ac_try_echo") >&5 18076 (eval "$ac_compile") 2>conftest.er1 18077 ac_status=$? 18078 grep -v '^ *+' conftest.er1 >conftest.err 18079 rm -f conftest.er1 18080 cat conftest.err >&5 18081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18082 (exit $ac_status); } && { 18083 test -z "$ac_c_werror_flag" || 18084 test ! -s conftest.err 18085 } && test -s conftest.$ac_objext; then 18086 ac_lo=0 ac_mid=0 18087 while :; do 18088 cat >conftest.$ac_ext <<_ACEOF 18089/* confdefs.h. */ 18090_ACEOF 18091cat confdefs.h >>conftest.$ac_ext 18092cat >>conftest.$ac_ext <<_ACEOF 18093/* end confdefs.h. */ 18094$ac_includes_default 18095int 18096main () 18097{ 18098static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 18099test_array [0] = 0 18100 18101 ; 18102 return 0; 18103} 18104_ACEOF 18105rm -f conftest.$ac_objext 18106if { (ac_try="$ac_compile" 18107case "(($ac_try" in 18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18109 *) ac_try_echo=$ac_try;; 18110esac 18111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18112$as_echo "$ac_try_echo") >&5 18113 (eval "$ac_compile") 2>conftest.er1 18114 ac_status=$? 18115 grep -v '^ *+' conftest.er1 >conftest.err 18116 rm -f conftest.er1 18117 cat conftest.err >&5 18118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18119 (exit $ac_status); } && { 18120 test -z "$ac_c_werror_flag" || 18121 test ! -s conftest.err 18122 } && test -s conftest.$ac_objext; then 18123 ac_hi=$ac_mid; break 18124else 18125 $as_echo "$as_me: failed program was:" >&5 18126sed 's/^/| /' conftest.$ac_ext >&5 18127 18128 ac_lo=`expr $ac_mid + 1` 18129 if test $ac_lo -le $ac_mid; then 18130 ac_lo= ac_hi= 18131 break 18132 fi 18133 ac_mid=`expr 2 '*' $ac_mid + 1` 18134fi 18135 18136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18137 done 18138else 18139 $as_echo "$as_me: failed program was:" >&5 18140sed 's/^/| /' conftest.$ac_ext >&5 18141 18142 cat >conftest.$ac_ext <<_ACEOF 18143/* confdefs.h. */ 18144_ACEOF 18145cat confdefs.h >>conftest.$ac_ext 18146cat >>conftest.$ac_ext <<_ACEOF 18147/* end confdefs.h. */ 18148$ac_includes_default 18149int 18150main () 18151{ 18152static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)]; 18153test_array [0] = 0 18154 18155 ; 18156 return 0; 18157} 18158_ACEOF 18159rm -f conftest.$ac_objext 18160if { (ac_try="$ac_compile" 18161case "(($ac_try" in 18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18163 *) ac_try_echo=$ac_try;; 18164esac 18165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18166$as_echo "$ac_try_echo") >&5 18167 (eval "$ac_compile") 2>conftest.er1 18168 ac_status=$? 18169 grep -v '^ *+' conftest.er1 >conftest.err 18170 rm -f conftest.er1 18171 cat conftest.err >&5 18172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18173 (exit $ac_status); } && { 18174 test -z "$ac_c_werror_flag" || 18175 test ! -s conftest.err 18176 } && test -s conftest.$ac_objext; then 18177 ac_hi=-1 ac_mid=-1 18178 while :; do 18179 cat >conftest.$ac_ext <<_ACEOF 18180/* confdefs.h. */ 18181_ACEOF 18182cat confdefs.h >>conftest.$ac_ext 18183cat >>conftest.$ac_ext <<_ACEOF 18184/* end confdefs.h. */ 18185$ac_includes_default 18186int 18187main () 18188{ 18189static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)]; 18190test_array [0] = 0 18191 18192 ; 18193 return 0; 18194} 18195_ACEOF 18196rm -f conftest.$ac_objext 18197if { (ac_try="$ac_compile" 18198case "(($ac_try" in 18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18200 *) ac_try_echo=$ac_try;; 18201esac 18202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18203$as_echo "$ac_try_echo") >&5 18204 (eval "$ac_compile") 2>conftest.er1 18205 ac_status=$? 18206 grep -v '^ *+' conftest.er1 >conftest.err 18207 rm -f conftest.er1 18208 cat conftest.err >&5 18209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18210 (exit $ac_status); } && { 18211 test -z "$ac_c_werror_flag" || 18212 test ! -s conftest.err 18213 } && test -s conftest.$ac_objext; then 18214 ac_lo=$ac_mid; break 18215else 18216 $as_echo "$as_me: failed program was:" >&5 18217sed 's/^/| /' conftest.$ac_ext >&5 18218 18219 ac_hi=`expr '(' $ac_mid ')' - 1` 18220 if test $ac_mid -le $ac_hi; then 18221 ac_lo= ac_hi= 18222 break 18223 fi 18224 ac_mid=`expr 2 '*' $ac_mid` 18225fi 18226 18227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18228 done 18229else 18230 $as_echo "$as_me: failed program was:" >&5 18231sed 's/^/| /' conftest.$ac_ext >&5 18232 18233 ac_lo= ac_hi= 18234fi 18235 18236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18237fi 18238 18239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18240# Binary search between lo and hi bounds. 18241while test "x$ac_lo" != "x$ac_hi"; do 18242 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 18243 cat >conftest.$ac_ext <<_ACEOF 18244/* confdefs.h. */ 18245_ACEOF 18246cat confdefs.h >>conftest.$ac_ext 18247cat >>conftest.$ac_ext <<_ACEOF 18248/* end confdefs.h. */ 18249$ac_includes_default 18250int 18251main () 18252{ 18253static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)]; 18254test_array [0] = 0 18255 18256 ; 18257 return 0; 18258} 18259_ACEOF 18260rm -f conftest.$ac_objext 18261if { (ac_try="$ac_compile" 18262case "(($ac_try" in 18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18264 *) ac_try_echo=$ac_try;; 18265esac 18266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18267$as_echo "$ac_try_echo") >&5 18268 (eval "$ac_compile") 2>conftest.er1 18269 ac_status=$? 18270 grep -v '^ *+' conftest.er1 >conftest.err 18271 rm -f conftest.er1 18272 cat conftest.err >&5 18273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18274 (exit $ac_status); } && { 18275 test -z "$ac_c_werror_flag" || 18276 test ! -s conftest.err 18277 } && test -s conftest.$ac_objext; then 18278 ac_hi=$ac_mid 18279else 18280 $as_echo "$as_me: failed program was:" >&5 18281sed 's/^/| /' conftest.$ac_ext >&5 18282 18283 ac_lo=`expr '(' $ac_mid ')' + 1` 18284fi 18285 18286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18287done 18288case $ac_lo in 18289?*) ac_cv_sizeof_int=$ac_lo;; 18290'') if test "$ac_cv_type_int" = yes; then 18291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 18292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18293{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 18294See \`config.log' for more details." >&5 18295$as_echo "$as_me: error: cannot compute sizeof (int) 18296See \`config.log' for more details." >&2;} 18297 { (exit 77); exit 77; }; }; } 18298 else 18299 ac_cv_sizeof_int=0 18300 fi ;; 18301esac 18302else 18303 cat >conftest.$ac_ext <<_ACEOF 18304/* confdefs.h. */ 18305_ACEOF 18306cat confdefs.h >>conftest.$ac_ext 18307cat >>conftest.$ac_ext <<_ACEOF 18308/* end confdefs.h. */ 18309$ac_includes_default 18310static long int longval () { return (long int) (sizeof (int)); } 18311static unsigned long int ulongval () { return (long int) (sizeof (int)); } 18312#include <stdio.h> 18313#include <stdlib.h> 18314int 18315main () 18316{ 18317 18318 FILE *f = fopen ("conftest.val", "w"); 18319 if (! f) 18320 return 1; 18321 if (((long int) (sizeof (int))) < 0) 18322 { 18323 long int i = longval (); 18324 if (i != ((long int) (sizeof (int)))) 18325 return 1; 18326 fprintf (f, "%ld", i); 18327 } 18328 else 18329 { 18330 unsigned long int i = ulongval (); 18331 if (i != ((long int) (sizeof (int)))) 18332 return 1; 18333 fprintf (f, "%lu", i); 18334 } 18335 /* Do not output a trailing newline, as this causes \r\n confusion 18336 on some platforms. */ 18337 return ferror (f) || fclose (f) != 0; 18338 18339 ; 18340 return 0; 18341} 18342_ACEOF 18343rm -f conftest$ac_exeext 18344if { (ac_try="$ac_link" 18345case "(($ac_try" in 18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18347 *) ac_try_echo=$ac_try;; 18348esac 18349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18350$as_echo "$ac_try_echo") >&5 18351 (eval "$ac_link") 2>&5 18352 ac_status=$? 18353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18355 { (case "(($ac_try" in 18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18357 *) ac_try_echo=$ac_try;; 18358esac 18359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18360$as_echo "$ac_try_echo") >&5 18361 (eval "$ac_try") 2>&5 18362 ac_status=$? 18363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18364 (exit $ac_status); }; }; then 18365 ac_cv_sizeof_int=`cat conftest.val` 18366else 18367 $as_echo "$as_me: program exited with status $ac_status" >&5 18368$as_echo "$as_me: failed program was:" >&5 18369sed 's/^/| /' conftest.$ac_ext >&5 18370 18371( exit $ac_status ) 18372if test "$ac_cv_type_int" = yes; then 18373 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 18374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18375{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 18376See \`config.log' for more details." >&5 18377$as_echo "$as_me: error: cannot compute sizeof (int) 18378See \`config.log' for more details." >&2;} 18379 { (exit 77); exit 77; }; }; } 18380 else 18381 ac_cv_sizeof_int=0 18382 fi 18383fi 18384rm -rf conftest.dSYM 18385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18386fi 18387rm -f conftest.val 18388fi 18389{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 18390$as_echo "$ac_cv_sizeof_int" >&6; } 18391 18392 18393 18394cat >>confdefs.h <<_ACEOF 18395#define SIZEOF_INT $ac_cv_sizeof_int 18396_ACEOF 18397 18398 18399 # The cast to long int works around a bug in the HP C Compiler 18400# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18401# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18402# This bug is HP SR number 8606223364. 18403{ $as_echo "$as_me:$LINENO: checking size of long" >&5 18404$as_echo_n "checking size of long... " >&6; } 18405if test "${ac_cv_sizeof_long+set}" = set; then 18406 $as_echo_n "(cached) " >&6 18407else 18408 if test "$cross_compiling" = yes; then 18409 # Depending upon the size, compute the lo and hi bounds. 18410cat >conftest.$ac_ext <<_ACEOF 18411/* confdefs.h. */ 18412_ACEOF 18413cat confdefs.h >>conftest.$ac_ext 18414cat >>conftest.$ac_ext <<_ACEOF 18415/* end confdefs.h. */ 18416$ac_includes_default 18417int 18418main () 18419{ 18420static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)]; 18421test_array [0] = 0 18422 18423 ; 18424 return 0; 18425} 18426_ACEOF 18427rm -f conftest.$ac_objext 18428if { (ac_try="$ac_compile" 18429case "(($ac_try" in 18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18431 *) ac_try_echo=$ac_try;; 18432esac 18433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18434$as_echo "$ac_try_echo") >&5 18435 (eval "$ac_compile") 2>conftest.er1 18436 ac_status=$? 18437 grep -v '^ *+' conftest.er1 >conftest.err 18438 rm -f conftest.er1 18439 cat conftest.err >&5 18440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18441 (exit $ac_status); } && { 18442 test -z "$ac_c_werror_flag" || 18443 test ! -s conftest.err 18444 } && test -s conftest.$ac_objext; then 18445 ac_lo=0 ac_mid=0 18446 while :; do 18447 cat >conftest.$ac_ext <<_ACEOF 18448/* confdefs.h. */ 18449_ACEOF 18450cat confdefs.h >>conftest.$ac_ext 18451cat >>conftest.$ac_ext <<_ACEOF 18452/* end confdefs.h. */ 18453$ac_includes_default 18454int 18455main () 18456{ 18457static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 18458test_array [0] = 0 18459 18460 ; 18461 return 0; 18462} 18463_ACEOF 18464rm -f conftest.$ac_objext 18465if { (ac_try="$ac_compile" 18466case "(($ac_try" in 18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18468 *) ac_try_echo=$ac_try;; 18469esac 18470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18471$as_echo "$ac_try_echo") >&5 18472 (eval "$ac_compile") 2>conftest.er1 18473 ac_status=$? 18474 grep -v '^ *+' conftest.er1 >conftest.err 18475 rm -f conftest.er1 18476 cat conftest.err >&5 18477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18478 (exit $ac_status); } && { 18479 test -z "$ac_c_werror_flag" || 18480 test ! -s conftest.err 18481 } && test -s conftest.$ac_objext; then 18482 ac_hi=$ac_mid; break 18483else 18484 $as_echo "$as_me: failed program was:" >&5 18485sed 's/^/| /' conftest.$ac_ext >&5 18486 18487 ac_lo=`expr $ac_mid + 1` 18488 if test $ac_lo -le $ac_mid; then 18489 ac_lo= ac_hi= 18490 break 18491 fi 18492 ac_mid=`expr 2 '*' $ac_mid + 1` 18493fi 18494 18495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18496 done 18497else 18498 $as_echo "$as_me: failed program was:" >&5 18499sed 's/^/| /' conftest.$ac_ext >&5 18500 18501 cat >conftest.$ac_ext <<_ACEOF 18502/* confdefs.h. */ 18503_ACEOF 18504cat confdefs.h >>conftest.$ac_ext 18505cat >>conftest.$ac_ext <<_ACEOF 18506/* end confdefs.h. */ 18507$ac_includes_default 18508int 18509main () 18510{ 18511static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)]; 18512test_array [0] = 0 18513 18514 ; 18515 return 0; 18516} 18517_ACEOF 18518rm -f conftest.$ac_objext 18519if { (ac_try="$ac_compile" 18520case "(($ac_try" in 18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18522 *) ac_try_echo=$ac_try;; 18523esac 18524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18525$as_echo "$ac_try_echo") >&5 18526 (eval "$ac_compile") 2>conftest.er1 18527 ac_status=$? 18528 grep -v '^ *+' conftest.er1 >conftest.err 18529 rm -f conftest.er1 18530 cat conftest.err >&5 18531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18532 (exit $ac_status); } && { 18533 test -z "$ac_c_werror_flag" || 18534 test ! -s conftest.err 18535 } && test -s conftest.$ac_objext; then 18536 ac_hi=-1 ac_mid=-1 18537 while :; do 18538 cat >conftest.$ac_ext <<_ACEOF 18539/* confdefs.h. */ 18540_ACEOF 18541cat confdefs.h >>conftest.$ac_ext 18542cat >>conftest.$ac_ext <<_ACEOF 18543/* end confdefs.h. */ 18544$ac_includes_default 18545int 18546main () 18547{ 18548static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)]; 18549test_array [0] = 0 18550 18551 ; 18552 return 0; 18553} 18554_ACEOF 18555rm -f conftest.$ac_objext 18556if { (ac_try="$ac_compile" 18557case "(($ac_try" in 18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18559 *) ac_try_echo=$ac_try;; 18560esac 18561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18562$as_echo "$ac_try_echo") >&5 18563 (eval "$ac_compile") 2>conftest.er1 18564 ac_status=$? 18565 grep -v '^ *+' conftest.er1 >conftest.err 18566 rm -f conftest.er1 18567 cat conftest.err >&5 18568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18569 (exit $ac_status); } && { 18570 test -z "$ac_c_werror_flag" || 18571 test ! -s conftest.err 18572 } && test -s conftest.$ac_objext; then 18573 ac_lo=$ac_mid; break 18574else 18575 $as_echo "$as_me: failed program was:" >&5 18576sed 's/^/| /' conftest.$ac_ext >&5 18577 18578 ac_hi=`expr '(' $ac_mid ')' - 1` 18579 if test $ac_mid -le $ac_hi; then 18580 ac_lo= ac_hi= 18581 break 18582 fi 18583 ac_mid=`expr 2 '*' $ac_mid` 18584fi 18585 18586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18587 done 18588else 18589 $as_echo "$as_me: failed program was:" >&5 18590sed 's/^/| /' conftest.$ac_ext >&5 18591 18592 ac_lo= ac_hi= 18593fi 18594 18595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18596fi 18597 18598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18599# Binary search between lo and hi bounds. 18600while test "x$ac_lo" != "x$ac_hi"; do 18601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 18602 cat >conftest.$ac_ext <<_ACEOF 18603/* confdefs.h. */ 18604_ACEOF 18605cat confdefs.h >>conftest.$ac_ext 18606cat >>conftest.$ac_ext <<_ACEOF 18607/* end confdefs.h. */ 18608$ac_includes_default 18609int 18610main () 18611{ 18612static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)]; 18613test_array [0] = 0 18614 18615 ; 18616 return 0; 18617} 18618_ACEOF 18619rm -f conftest.$ac_objext 18620if { (ac_try="$ac_compile" 18621case "(($ac_try" in 18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18623 *) ac_try_echo=$ac_try;; 18624esac 18625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18626$as_echo "$ac_try_echo") >&5 18627 (eval "$ac_compile") 2>conftest.er1 18628 ac_status=$? 18629 grep -v '^ *+' conftest.er1 >conftest.err 18630 rm -f conftest.er1 18631 cat conftest.err >&5 18632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18633 (exit $ac_status); } && { 18634 test -z "$ac_c_werror_flag" || 18635 test ! -s conftest.err 18636 } && test -s conftest.$ac_objext; then 18637 ac_hi=$ac_mid 18638else 18639 $as_echo "$as_me: failed program was:" >&5 18640sed 's/^/| /' conftest.$ac_ext >&5 18641 18642 ac_lo=`expr '(' $ac_mid ')' + 1` 18643fi 18644 18645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18646done 18647case $ac_lo in 18648?*) ac_cv_sizeof_long=$ac_lo;; 18649'') if test "$ac_cv_type_long" = yes; then 18650 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 18651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18652{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 18653See \`config.log' for more details." >&5 18654$as_echo "$as_me: error: cannot compute sizeof (long) 18655See \`config.log' for more details." >&2;} 18656 { (exit 77); exit 77; }; }; } 18657 else 18658 ac_cv_sizeof_long=0 18659 fi ;; 18660esac 18661else 18662 cat >conftest.$ac_ext <<_ACEOF 18663/* confdefs.h. */ 18664_ACEOF 18665cat confdefs.h >>conftest.$ac_ext 18666cat >>conftest.$ac_ext <<_ACEOF 18667/* end confdefs.h. */ 18668$ac_includes_default 18669static long int longval () { return (long int) (sizeof (long)); } 18670static unsigned long int ulongval () { return (long int) (sizeof (long)); } 18671#include <stdio.h> 18672#include <stdlib.h> 18673int 18674main () 18675{ 18676 18677 FILE *f = fopen ("conftest.val", "w"); 18678 if (! f) 18679 return 1; 18680 if (((long int) (sizeof (long))) < 0) 18681 { 18682 long int i = longval (); 18683 if (i != ((long int) (sizeof (long)))) 18684 return 1; 18685 fprintf (f, "%ld", i); 18686 } 18687 else 18688 { 18689 unsigned long int i = ulongval (); 18690 if (i != ((long int) (sizeof (long)))) 18691 return 1; 18692 fprintf (f, "%lu", i); 18693 } 18694 /* Do not output a trailing newline, as this causes \r\n confusion 18695 on some platforms. */ 18696 return ferror (f) || fclose (f) != 0; 18697 18698 ; 18699 return 0; 18700} 18701_ACEOF 18702rm -f conftest$ac_exeext 18703if { (ac_try="$ac_link" 18704case "(($ac_try" in 18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18706 *) ac_try_echo=$ac_try;; 18707esac 18708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18709$as_echo "$ac_try_echo") >&5 18710 (eval "$ac_link") 2>&5 18711 ac_status=$? 18712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18714 { (case "(($ac_try" in 18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18716 *) ac_try_echo=$ac_try;; 18717esac 18718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18719$as_echo "$ac_try_echo") >&5 18720 (eval "$ac_try") 2>&5 18721 ac_status=$? 18722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18723 (exit $ac_status); }; }; then 18724 ac_cv_sizeof_long=`cat conftest.val` 18725else 18726 $as_echo "$as_me: program exited with status $ac_status" >&5 18727$as_echo "$as_me: failed program was:" >&5 18728sed 's/^/| /' conftest.$ac_ext >&5 18729 18730( exit $ac_status ) 18731if test "$ac_cv_type_long" = yes; then 18732 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 18733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18734{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 18735See \`config.log' for more details." >&5 18736$as_echo "$as_me: error: cannot compute sizeof (long) 18737See \`config.log' for more details." >&2;} 18738 { (exit 77); exit 77; }; }; } 18739 else 18740 ac_cv_sizeof_long=0 18741 fi 18742fi 18743rm -rf conftest.dSYM 18744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18745fi 18746rm -f conftest.val 18747fi 18748{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 18749$as_echo "$ac_cv_sizeof_long" >&6; } 18750 18751 18752 18753cat >>confdefs.h <<_ACEOF 18754#define SIZEOF_LONG $ac_cv_sizeof_long 18755_ACEOF 18756 18757 18758 # The cast to long int works around a bug in the HP C Compiler 18759# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18760# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18761# This bug is HP SR number 8606223364. 18762{ $as_echo "$as_me:$LINENO: checking size of void*" >&5 18763$as_echo_n "checking size of void*... " >&6; } 18764if test "${ac_cv_sizeof_voidp+set}" = set; then 18765 $as_echo_n "(cached) " >&6 18766else 18767 if test "$cross_compiling" = yes; then 18768 # Depending upon the size, compute the lo and hi bounds. 18769cat >conftest.$ac_ext <<_ACEOF 18770/* confdefs.h. */ 18771_ACEOF 18772cat confdefs.h >>conftest.$ac_ext 18773cat >>conftest.$ac_ext <<_ACEOF 18774/* end confdefs.h. */ 18775$ac_includes_default 18776int 18777main () 18778{ 18779static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)]; 18780test_array [0] = 0 18781 18782 ; 18783 return 0; 18784} 18785_ACEOF 18786rm -f conftest.$ac_objext 18787if { (ac_try="$ac_compile" 18788case "(($ac_try" in 18789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18790 *) ac_try_echo=$ac_try;; 18791esac 18792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18793$as_echo "$ac_try_echo") >&5 18794 (eval "$ac_compile") 2>conftest.er1 18795 ac_status=$? 18796 grep -v '^ *+' conftest.er1 >conftest.err 18797 rm -f conftest.er1 18798 cat conftest.err >&5 18799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18800 (exit $ac_status); } && { 18801 test -z "$ac_c_werror_flag" || 18802 test ! -s conftest.err 18803 } && test -s conftest.$ac_objext; then 18804 ac_lo=0 ac_mid=0 18805 while :; do 18806 cat >conftest.$ac_ext <<_ACEOF 18807/* confdefs.h. */ 18808_ACEOF 18809cat confdefs.h >>conftest.$ac_ext 18810cat >>conftest.$ac_ext <<_ACEOF 18811/* end confdefs.h. */ 18812$ac_includes_default 18813int 18814main () 18815{ 18816static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)]; 18817test_array [0] = 0 18818 18819 ; 18820 return 0; 18821} 18822_ACEOF 18823rm -f conftest.$ac_objext 18824if { (ac_try="$ac_compile" 18825case "(($ac_try" in 18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18827 *) ac_try_echo=$ac_try;; 18828esac 18829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18830$as_echo "$ac_try_echo") >&5 18831 (eval "$ac_compile") 2>conftest.er1 18832 ac_status=$? 18833 grep -v '^ *+' conftest.er1 >conftest.err 18834 rm -f conftest.er1 18835 cat conftest.err >&5 18836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18837 (exit $ac_status); } && { 18838 test -z "$ac_c_werror_flag" || 18839 test ! -s conftest.err 18840 } && test -s conftest.$ac_objext; then 18841 ac_hi=$ac_mid; break 18842else 18843 $as_echo "$as_me: failed program was:" >&5 18844sed 's/^/| /' conftest.$ac_ext >&5 18845 18846 ac_lo=`expr $ac_mid + 1` 18847 if test $ac_lo -le $ac_mid; then 18848 ac_lo= ac_hi= 18849 break 18850 fi 18851 ac_mid=`expr 2 '*' $ac_mid + 1` 18852fi 18853 18854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18855 done 18856else 18857 $as_echo "$as_me: failed program was:" >&5 18858sed 's/^/| /' conftest.$ac_ext >&5 18859 18860 cat >conftest.$ac_ext <<_ACEOF 18861/* confdefs.h. */ 18862_ACEOF 18863cat confdefs.h >>conftest.$ac_ext 18864cat >>conftest.$ac_ext <<_ACEOF 18865/* end confdefs.h. */ 18866$ac_includes_default 18867int 18868main () 18869{ 18870static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)]; 18871test_array [0] = 0 18872 18873 ; 18874 return 0; 18875} 18876_ACEOF 18877rm -f conftest.$ac_objext 18878if { (ac_try="$ac_compile" 18879case "(($ac_try" in 18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18881 *) ac_try_echo=$ac_try;; 18882esac 18883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18884$as_echo "$ac_try_echo") >&5 18885 (eval "$ac_compile") 2>conftest.er1 18886 ac_status=$? 18887 grep -v '^ *+' conftest.er1 >conftest.err 18888 rm -f conftest.er1 18889 cat conftest.err >&5 18890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18891 (exit $ac_status); } && { 18892 test -z "$ac_c_werror_flag" || 18893 test ! -s conftest.err 18894 } && test -s conftest.$ac_objext; then 18895 ac_hi=-1 ac_mid=-1 18896 while :; do 18897 cat >conftest.$ac_ext <<_ACEOF 18898/* confdefs.h. */ 18899_ACEOF 18900cat confdefs.h >>conftest.$ac_ext 18901cat >>conftest.$ac_ext <<_ACEOF 18902/* end confdefs.h. */ 18903$ac_includes_default 18904int 18905main () 18906{ 18907static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)]; 18908test_array [0] = 0 18909 18910 ; 18911 return 0; 18912} 18913_ACEOF 18914rm -f conftest.$ac_objext 18915if { (ac_try="$ac_compile" 18916case "(($ac_try" in 18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18918 *) ac_try_echo=$ac_try;; 18919esac 18920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18921$as_echo "$ac_try_echo") >&5 18922 (eval "$ac_compile") 2>conftest.er1 18923 ac_status=$? 18924 grep -v '^ *+' conftest.er1 >conftest.err 18925 rm -f conftest.er1 18926 cat conftest.err >&5 18927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18928 (exit $ac_status); } && { 18929 test -z "$ac_c_werror_flag" || 18930 test ! -s conftest.err 18931 } && test -s conftest.$ac_objext; then 18932 ac_lo=$ac_mid; break 18933else 18934 $as_echo "$as_me: failed program was:" >&5 18935sed 's/^/| /' conftest.$ac_ext >&5 18936 18937 ac_hi=`expr '(' $ac_mid ')' - 1` 18938 if test $ac_mid -le $ac_hi; then 18939 ac_lo= ac_hi= 18940 break 18941 fi 18942 ac_mid=`expr 2 '*' $ac_mid` 18943fi 18944 18945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18946 done 18947else 18948 $as_echo "$as_me: failed program was:" >&5 18949sed 's/^/| /' conftest.$ac_ext >&5 18950 18951 ac_lo= ac_hi= 18952fi 18953 18954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18955fi 18956 18957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18958# Binary search between lo and hi bounds. 18959while test "x$ac_lo" != "x$ac_hi"; do 18960 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 18961 cat >conftest.$ac_ext <<_ACEOF 18962/* confdefs.h. */ 18963_ACEOF 18964cat confdefs.h >>conftest.$ac_ext 18965cat >>conftest.$ac_ext <<_ACEOF 18966/* end confdefs.h. */ 18967$ac_includes_default 18968int 18969main () 18970{ 18971static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)]; 18972test_array [0] = 0 18973 18974 ; 18975 return 0; 18976} 18977_ACEOF 18978rm -f conftest.$ac_objext 18979if { (ac_try="$ac_compile" 18980case "(($ac_try" in 18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18982 *) ac_try_echo=$ac_try;; 18983esac 18984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18985$as_echo "$ac_try_echo") >&5 18986 (eval "$ac_compile") 2>conftest.er1 18987 ac_status=$? 18988 grep -v '^ *+' conftest.er1 >conftest.err 18989 rm -f conftest.er1 18990 cat conftest.err >&5 18991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18992 (exit $ac_status); } && { 18993 test -z "$ac_c_werror_flag" || 18994 test ! -s conftest.err 18995 } && test -s conftest.$ac_objext; then 18996 ac_hi=$ac_mid 18997else 18998 $as_echo "$as_me: failed program was:" >&5 18999sed 's/^/| /' conftest.$ac_ext >&5 19000 19001 ac_lo=`expr '(' $ac_mid ')' + 1` 19002fi 19003 19004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19005done 19006case $ac_lo in 19007?*) ac_cv_sizeof_voidp=$ac_lo;; 19008'') if test "$ac_cv_type_voidp" = yes; then 19009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 19010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19011{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*) 19012See \`config.log' for more details." >&5 19013$as_echo "$as_me: error: cannot compute sizeof (void*) 19014See \`config.log' for more details." >&2;} 19015 { (exit 77); exit 77; }; }; } 19016 else 19017 ac_cv_sizeof_voidp=0 19018 fi ;; 19019esac 19020else 19021 cat >conftest.$ac_ext <<_ACEOF 19022/* confdefs.h. */ 19023_ACEOF 19024cat confdefs.h >>conftest.$ac_ext 19025cat >>conftest.$ac_ext <<_ACEOF 19026/* end confdefs.h. */ 19027$ac_includes_default 19028static long int longval () { return (long int) (sizeof (void*)); } 19029static unsigned long int ulongval () { return (long int) (sizeof (void*)); } 19030#include <stdio.h> 19031#include <stdlib.h> 19032int 19033main () 19034{ 19035 19036 FILE *f = fopen ("conftest.val", "w"); 19037 if (! f) 19038 return 1; 19039 if (((long int) (sizeof (void*))) < 0) 19040 { 19041 long int i = longval (); 19042 if (i != ((long int) (sizeof (void*)))) 19043 return 1; 19044 fprintf (f, "%ld", i); 19045 } 19046 else 19047 { 19048 unsigned long int i = ulongval (); 19049 if (i != ((long int) (sizeof (void*)))) 19050 return 1; 19051 fprintf (f, "%lu", i); 19052 } 19053 /* Do not output a trailing newline, as this causes \r\n confusion 19054 on some platforms. */ 19055 return ferror (f) || fclose (f) != 0; 19056 19057 ; 19058 return 0; 19059} 19060_ACEOF 19061rm -f conftest$ac_exeext 19062if { (ac_try="$ac_link" 19063case "(($ac_try" in 19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19065 *) ac_try_echo=$ac_try;; 19066esac 19067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19068$as_echo "$ac_try_echo") >&5 19069 (eval "$ac_link") 2>&5 19070 ac_status=$? 19071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19073 { (case "(($ac_try" in 19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19075 *) ac_try_echo=$ac_try;; 19076esac 19077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19078$as_echo "$ac_try_echo") >&5 19079 (eval "$ac_try") 2>&5 19080 ac_status=$? 19081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19082 (exit $ac_status); }; }; then 19083 ac_cv_sizeof_voidp=`cat conftest.val` 19084else 19085 $as_echo "$as_me: program exited with status $ac_status" >&5 19086$as_echo "$as_me: failed program was:" >&5 19087sed 's/^/| /' conftest.$ac_ext >&5 19088 19089( exit $ac_status ) 19090if test "$ac_cv_type_voidp" = yes; then 19091 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 19092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19093{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*) 19094See \`config.log' for more details." >&5 19095$as_echo "$as_me: error: cannot compute sizeof (void*) 19096See \`config.log' for more details." >&2;} 19097 { (exit 77); exit 77; }; }; } 19098 else 19099 ac_cv_sizeof_voidp=0 19100 fi 19101fi 19102rm -rf conftest.dSYM 19103rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19104fi 19105rm -f conftest.val 19106fi 19107{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 19108$as_echo "$ac_cv_sizeof_voidp" >&6; } 19109 19110 19111 19112cat >>confdefs.h <<_ACEOF 19113#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 19114_ACEOF 19115 19116 19117 ac_cv_char_data_model="" 19118 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" 19119 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" 19120 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" 19121 ac_cv_long_data_model="" 19122 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" 19123 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" 19124 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" 19125 { $as_echo "$as_me:$LINENO: checking data model" >&5 19126$as_echo_n "checking data model... " >&6; } 19127 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in 19128 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;; 19129 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;; 19130 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;; 19131 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; 19132 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;; 19133 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; 19134 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;; 19135 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; 19136 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;; 19137 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; 19138 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; 19139 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; 19140 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; 19141 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; 19142 222/*|333/*|444/*|666/*|888/*) : 19143 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;; 19144 *) ac_cv_data_model="none" ; n="very unusual model" ;; 19145 esac 19146 { $as_echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 19147$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } 19148 19149fi 19150 19151if test "_$ac_cv_header_stdint_x" != "_" ; then 19152 ac_cv_header_stdint="$ac_cv_header_stdint_x" 19153elif test "_$ac_cv_header_stdint_o" != "_" ; then 19154 ac_cv_header_stdint="$ac_cv_header_stdint_o" 19155elif test "_$ac_cv_header_stdint_u" != "_" ; then 19156 ac_cv_header_stdint="$ac_cv_header_stdint_u" 19157else 19158 ac_cv_header_stdint="stddef.h" 19159fi 19160 19161{ $as_echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5 19162$as_echo_n "checking for extra inttypes in chosen header... " >&6; } 19163{ $as_echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5 19164$as_echo "($ac_cv_header_stdint)" >&6; } 19165unset ac_cv_type_int_least32_t 19166unset ac_cv_type_int_fast32_t 19167{ $as_echo "$as_me:$LINENO: checking for int_least32_t" >&5 19168$as_echo_n "checking for int_least32_t... " >&6; } 19169if test "${ac_cv_type_int_least32_t+set}" = set; then 19170 $as_echo_n "(cached) " >&6 19171else 19172 ac_cv_type_int_least32_t=no 19173cat >conftest.$ac_ext <<_ACEOF 19174/* confdefs.h. */ 19175_ACEOF 19176cat confdefs.h >>conftest.$ac_ext 19177cat >>conftest.$ac_ext <<_ACEOF 19178/* end confdefs.h. */ 19179#include <$ac_cv_header_stdint> 19180 19181int 19182main () 19183{ 19184if (sizeof (int_least32_t)) 19185 return 0; 19186 ; 19187 return 0; 19188} 19189_ACEOF 19190rm -f conftest.$ac_objext 19191if { (ac_try="$ac_compile" 19192case "(($ac_try" in 19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19194 *) ac_try_echo=$ac_try;; 19195esac 19196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19197$as_echo "$ac_try_echo") >&5 19198 (eval "$ac_compile") 2>conftest.er1 19199 ac_status=$? 19200 grep -v '^ *+' conftest.er1 >conftest.err 19201 rm -f conftest.er1 19202 cat conftest.err >&5 19203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19204 (exit $ac_status); } && { 19205 test -z "$ac_c_werror_flag" || 19206 test ! -s conftest.err 19207 } && test -s conftest.$ac_objext; then 19208 cat >conftest.$ac_ext <<_ACEOF 19209/* confdefs.h. */ 19210_ACEOF 19211cat confdefs.h >>conftest.$ac_ext 19212cat >>conftest.$ac_ext <<_ACEOF 19213/* end confdefs.h. */ 19214#include <$ac_cv_header_stdint> 19215 19216int 19217main () 19218{ 19219if (sizeof ((int_least32_t))) 19220 return 0; 19221 ; 19222 return 0; 19223} 19224_ACEOF 19225rm -f conftest.$ac_objext 19226if { (ac_try="$ac_compile" 19227case "(($ac_try" in 19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19229 *) ac_try_echo=$ac_try;; 19230esac 19231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19232$as_echo "$ac_try_echo") >&5 19233 (eval "$ac_compile") 2>conftest.er1 19234 ac_status=$? 19235 grep -v '^ *+' conftest.er1 >conftest.err 19236 rm -f conftest.er1 19237 cat conftest.err >&5 19238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19239 (exit $ac_status); } && { 19240 test -z "$ac_c_werror_flag" || 19241 test ! -s conftest.err 19242 } && test -s conftest.$ac_objext; then 19243 : 19244else 19245 $as_echo "$as_me: failed program was:" >&5 19246sed 's/^/| /' conftest.$ac_ext >&5 19247 19248 ac_cv_type_int_least32_t=yes 19249fi 19250 19251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19252else 19253 $as_echo "$as_me: failed program was:" >&5 19254sed 's/^/| /' conftest.$ac_ext >&5 19255 19256 19257fi 19258 19259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19260fi 19261{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 19262$as_echo "$ac_cv_type_int_least32_t" >&6; } 19263 19264{ $as_echo "$as_me:$LINENO: checking for int_fast32_t" >&5 19265$as_echo_n "checking for int_fast32_t... " >&6; } 19266if test "${ac_cv_type_int_fast32_t+set}" = set; then 19267 $as_echo_n "(cached) " >&6 19268else 19269 ac_cv_type_int_fast32_t=no 19270cat >conftest.$ac_ext <<_ACEOF 19271/* confdefs.h. */ 19272_ACEOF 19273cat confdefs.h >>conftest.$ac_ext 19274cat >>conftest.$ac_ext <<_ACEOF 19275/* end confdefs.h. */ 19276#include<$ac_cv_header_stdint> 19277 19278int 19279main () 19280{ 19281if (sizeof (int_fast32_t)) 19282 return 0; 19283 ; 19284 return 0; 19285} 19286_ACEOF 19287rm -f conftest.$ac_objext 19288if { (ac_try="$ac_compile" 19289case "(($ac_try" in 19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19291 *) ac_try_echo=$ac_try;; 19292esac 19293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19294$as_echo "$ac_try_echo") >&5 19295 (eval "$ac_compile") 2>conftest.er1 19296 ac_status=$? 19297 grep -v '^ *+' conftest.er1 >conftest.err 19298 rm -f conftest.er1 19299 cat conftest.err >&5 19300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19301 (exit $ac_status); } && { 19302 test -z "$ac_c_werror_flag" || 19303 test ! -s conftest.err 19304 } && test -s conftest.$ac_objext; then 19305 cat >conftest.$ac_ext <<_ACEOF 19306/* confdefs.h. */ 19307_ACEOF 19308cat confdefs.h >>conftest.$ac_ext 19309cat >>conftest.$ac_ext <<_ACEOF 19310/* end confdefs.h. */ 19311#include<$ac_cv_header_stdint> 19312 19313int 19314main () 19315{ 19316if (sizeof ((int_fast32_t))) 19317 return 0; 19318 ; 19319 return 0; 19320} 19321_ACEOF 19322rm -f conftest.$ac_objext 19323if { (ac_try="$ac_compile" 19324case "(($ac_try" in 19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19326 *) ac_try_echo=$ac_try;; 19327esac 19328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19329$as_echo "$ac_try_echo") >&5 19330 (eval "$ac_compile") 2>conftest.er1 19331 ac_status=$? 19332 grep -v '^ *+' conftest.er1 >conftest.err 19333 rm -f conftest.er1 19334 cat conftest.err >&5 19335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19336 (exit $ac_status); } && { 19337 test -z "$ac_c_werror_flag" || 19338 test ! -s conftest.err 19339 } && test -s conftest.$ac_objext; then 19340 : 19341else 19342 $as_echo "$as_me: failed program was:" >&5 19343sed 's/^/| /' conftest.$ac_ext >&5 19344 19345 ac_cv_type_int_fast32_t=yes 19346fi 19347 19348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19349else 19350 $as_echo "$as_me: failed program was:" >&5 19351sed 's/^/| /' conftest.$ac_ext >&5 19352 19353 19354fi 19355 19356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19357fi 19358{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 19359$as_echo "$ac_cv_type_int_fast32_t" >&6; } 19360 19361{ $as_echo "$as_me:$LINENO: checking for intmax_t" >&5 19362$as_echo_n "checking for intmax_t... " >&6; } 19363if test "${ac_cv_type_intmax_t+set}" = set; then 19364 $as_echo_n "(cached) " >&6 19365else 19366 ac_cv_type_intmax_t=no 19367cat >conftest.$ac_ext <<_ACEOF 19368/* confdefs.h. */ 19369_ACEOF 19370cat confdefs.h >>conftest.$ac_ext 19371cat >>conftest.$ac_ext <<_ACEOF 19372/* end confdefs.h. */ 19373#include <$ac_cv_header_stdint> 19374 19375int 19376main () 19377{ 19378if (sizeof (intmax_t)) 19379 return 0; 19380 ; 19381 return 0; 19382} 19383_ACEOF 19384rm -f conftest.$ac_objext 19385if { (ac_try="$ac_compile" 19386case "(($ac_try" in 19387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19388 *) ac_try_echo=$ac_try;; 19389esac 19390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19391$as_echo "$ac_try_echo") >&5 19392 (eval "$ac_compile") 2>conftest.er1 19393 ac_status=$? 19394 grep -v '^ *+' conftest.er1 >conftest.err 19395 rm -f conftest.er1 19396 cat conftest.err >&5 19397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19398 (exit $ac_status); } && { 19399 test -z "$ac_c_werror_flag" || 19400 test ! -s conftest.err 19401 } && test -s conftest.$ac_objext; then 19402 cat >conftest.$ac_ext <<_ACEOF 19403/* confdefs.h. */ 19404_ACEOF 19405cat confdefs.h >>conftest.$ac_ext 19406cat >>conftest.$ac_ext <<_ACEOF 19407/* end confdefs.h. */ 19408#include <$ac_cv_header_stdint> 19409 19410int 19411main () 19412{ 19413if (sizeof ((intmax_t))) 19414 return 0; 19415 ; 19416 return 0; 19417} 19418_ACEOF 19419rm -f conftest.$ac_objext 19420if { (ac_try="$ac_compile" 19421case "(($ac_try" in 19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19423 *) ac_try_echo=$ac_try;; 19424esac 19425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19426$as_echo "$ac_try_echo") >&5 19427 (eval "$ac_compile") 2>conftest.er1 19428 ac_status=$? 19429 grep -v '^ *+' conftest.er1 >conftest.err 19430 rm -f conftest.er1 19431 cat conftest.err >&5 19432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19433 (exit $ac_status); } && { 19434 test -z "$ac_c_werror_flag" || 19435 test ! -s conftest.err 19436 } && test -s conftest.$ac_objext; then 19437 : 19438else 19439 $as_echo "$as_me: failed program was:" >&5 19440sed 's/^/| /' conftest.$ac_ext >&5 19441 19442 ac_cv_type_intmax_t=yes 19443fi 19444 19445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19446else 19447 $as_echo "$as_me: failed program was:" >&5 19448sed 's/^/| /' conftest.$ac_ext >&5 19449 19450 19451fi 19452 19453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19454fi 19455{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 19456$as_echo "$ac_cv_type_intmax_t" >&6; } 19457 19458 19459fi # shortcircut to system "stdint.h" 19460# ------------------ PREPARE VARIABLES ------------------------------ 19461if test "$GCC" = "yes" ; then 19462ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` 19463else 19464ac_cv_stdint_message="using $CC" 19465fi 19466 19467{ $as_echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 19468$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } 19469 19470# ----------------- DONE inttypes.h checks START header ------------- 19471ac_config_commands="$ac_config_commands $ac_stdint_h" 19472 19473 19474 19475 19476# Extract the first word of "doxygen", so it can be a program name with args. 19477set dummy doxygen; ac_word=$2 19478{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19479$as_echo_n "checking for $ac_word... " >&6; } 19480if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then 19481 $as_echo_n "(cached) " >&6 19482else 19483 if test -n "$HAVE_DOXYGEN"; then 19484 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. 19485else 19486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19487for as_dir in $PATH 19488do 19489 IFS=$as_save_IFS 19490 test -z "$as_dir" && as_dir=. 19491 for ac_exec_ext in '' $ac_executable_extensions; do 19492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19493 ac_cv_prog_HAVE_DOXYGEN="true" 19494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19495 break 2 19496 fi 19497done 19498done 19499IFS=$as_save_IFS 19500 19501 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="false" 19502fi 19503fi 19504HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN 19505if test -n "$HAVE_DOXYGEN"; then 19506 { $as_echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5 19507$as_echo "$HAVE_DOXYGEN" >&6; } 19508else 19509 { $as_echo "$as_me:$LINENO: result: no" >&5 19510$as_echo "no" >&6; } 19511fi 19512 19513 19514 if test $HAVE_DOXYGEN = "false"; then 19515 { $as_echo "$as_me:$LINENO: WARNING: *** doxygen not found, code documentation will not be built" >&5 19516$as_echo "$as_me: WARNING: *** doxygen not found, code documentation will not be built" >&2;} 19517 fi 19518 if $HAVE_DOXYGEN; then 19519 HAVE_DOXYGEN_TRUE= 19520 HAVE_DOXYGEN_FALSE='#' 19521else 19522 HAVE_DOXYGEN_TRUE='#' 19523 HAVE_DOXYGEN_FALSE= 19524fi 19525 19526 19527# Extract the first word of "dot", so it can be a program name with args. 19528set dummy dot; ac_word=$2 19529{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19530$as_echo_n "checking for $ac_word... " >&6; } 19531if test "${ac_cv_prog_HAVE_DOT+set}" = set; then 19532 $as_echo_n "(cached) " >&6 19533else 19534 if test -n "$HAVE_DOT"; then 19535 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test. 19536else 19537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19538for as_dir in $PATH 19539do 19540 IFS=$as_save_IFS 19541 test -z "$as_dir" && as_dir=. 19542 for ac_exec_ext in '' $ac_executable_extensions; do 19543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19544 ac_cv_prog_HAVE_DOT="true" 19545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19546 break 2 19547 fi 19548done 19549done 19550IFS=$as_save_IFS 19551 19552 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="false" 19553fi 19554fi 19555HAVE_DOT=$ac_cv_prog_HAVE_DOT 19556if test -n "$HAVE_DOT"; then 19557 { $as_echo "$as_me:$LINENO: result: $HAVE_DOT" >&5 19558$as_echo "$HAVE_DOT" >&6; } 19559else 19560 { $as_echo "$as_me:$LINENO: result: no" >&5 19561$as_echo "no" >&6; } 19562fi 19563 19564 19565 if test $HAVE_DOT = "false"; then 19566 { $as_echo "$as_me:$LINENO: WARNING: *** dot not found, inheritance diagrams will not be generated in code documentation" >&5 19567$as_echo "$as_me: WARNING: *** dot not found, inheritance diagrams will not be generated in code documentation" >&2;} 19568 fi 19569 if $HAVE_DOT; then 19570 HAVE_DOT_TRUE= 19571 HAVE_DOT_FALSE='#' 19572else 19573 HAVE_DOT_TRUE='#' 19574 HAVE_DOT_FALSE= 19575fi 19576 19577 19578# Extract the first word of "latex", so it can be a program name with args. 19579set dummy latex; ac_word=$2 19580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19581$as_echo_n "checking for $ac_word... " >&6; } 19582if test "${ac_cv_prog_HAVE_LATEX+set}" = set; then 19583 $as_echo_n "(cached) " >&6 19584else 19585 if test -n "$HAVE_LATEX"; then 19586 ac_cv_prog_HAVE_LATEX="$HAVE_LATEX" # Let the user override the test. 19587else 19588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19589for as_dir in $PATH 19590do 19591 IFS=$as_save_IFS 19592 test -z "$as_dir" && as_dir=. 19593 for ac_exec_ext in '' $ac_executable_extensions; do 19594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19595 ac_cv_prog_HAVE_LATEX="true" 19596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19597 break 2 19598 fi 19599done 19600done 19601IFS=$as_save_IFS 19602 19603 test -z "$ac_cv_prog_HAVE_LATEX" && ac_cv_prog_HAVE_LATEX="false" 19604fi 19605fi 19606HAVE_LATEX=$ac_cv_prog_HAVE_LATEX 19607if test -n "$HAVE_LATEX"; then 19608 { $as_echo "$as_me:$LINENO: result: $HAVE_LATEX" >&5 19609$as_echo "$HAVE_LATEX" >&6; } 19610else 19611 { $as_echo "$as_me:$LINENO: result: no" >&5 19612$as_echo "no" >&6; } 19613fi 19614 19615 19616 if test $HAVE_LATEX = "false"; then 19617 { $as_echo "$as_me:$LINENO: WARNING: *** latex not found, algorithm documentation will not be built" >&5 19618$as_echo "$as_me: WARNING: *** latex not found, algorithm documentation will not be built" >&2;} 19619 fi 19620 if $HAVE_LATEX; then 19621 HAVE_LATEX_TRUE= 19622 HAVE_LATEX_FALSE='#' 19623else 19624 HAVE_LATEX_TRUE='#' 19625 HAVE_LATEX_FALSE= 19626fi 19627 19628 19629# Extract the first word of "dvipdfm", so it can be a program name with args. 19630set dummy dvipdfm; ac_word=$2 19631{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 19632$as_echo_n "checking for $ac_word... " >&6; } 19633if test "${ac_cv_prog_HAVE_DVIPDFM+set}" = set; then 19634 $as_echo_n "(cached) " >&6 19635else 19636 if test -n "$HAVE_DVIPDFM"; then 19637 ac_cv_prog_HAVE_DVIPDFM="$HAVE_DVIPDFM" # Let the user override the test. 19638else 19639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19640for as_dir in $PATH 19641do 19642 IFS=$as_save_IFS 19643 test -z "$as_dir" && as_dir=. 19644 for ac_exec_ext in '' $ac_executable_extensions; do 19645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19646 ac_cv_prog_HAVE_DVIPDFM="true" 19647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19648 break 2 19649 fi 19650done 19651done 19652IFS=$as_save_IFS 19653 19654 test -z "$ac_cv_prog_HAVE_DVIPDFM" && ac_cv_prog_HAVE_DVIPDFM="false" 19655fi 19656fi 19657HAVE_DVIPDFM=$ac_cv_prog_HAVE_DVIPDFM 19658if test -n "$HAVE_DVIPDFM"; then 19659 { $as_echo "$as_me:$LINENO: result: $HAVE_DVIPDFM" >&5 19660$as_echo "$HAVE_DVIPDFM" >&6; } 19661else 19662 { $as_echo "$as_me:$LINENO: result: no" >&5 19663$as_echo "no" >&6; } 19664fi 19665 19666 19667 if test $HAVE_DVIPDFM = "false"; then 19668 { $as_echo "$as_me:$LINENO: WARNING: *** dvipdfm not found, programmer documentation will not be built" >&5 19669$as_echo "$as_me: WARNING: *** dvipdfm not found, programmer documentation will not be built" >&2;} 19670 fi 19671 if $HAVE_DVIPDFM; then 19672 HAVE_DVIPDFM_TRUE= 19673 HAVE_DVIPDFM_FALSE='#' 19674else 19675 HAVE_DVIPDFM_TRUE='#' 19676 HAVE_DVIPDFM_FALSE= 19677fi 19678 19679 19680# Check whether --enable-overlay was given. 19681if test "${enable_overlay+set}" = set; then 19682 enableval=$enable_overlay; case "${enableval}" in 19683 yes) overlay=true ;; 19684 no) overlay=false ;; 19685 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-overlay" >&5 19686$as_echo "$as_me: error: bad value ${enableval} for --enable-overlay" >&2;} 19687 { (exit 1); exit 1; }; } ;; 19688esac 19689else 19690 overlay=false 19691fi 19692 19693 if test x$overlay = xtrue; then 19694 OVERLAY_TRUE= 19695 OVERLAY_FALSE='#' 19696else 19697 OVERLAY_TRUE='#' 19698 OVERLAY_FALSE= 19699fi 19700 19701 19702ac_config_commands="$ac_config_commands tests/atconfig" 19703 19704 19705ac_config_files="$ac_config_files tests/Makefile" 19706 19707ac_config_files="$ac_config_files tests/at_wrap" 19708 19709 19710AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"} 19711 19712 19713{ $as_echo "$as_me:$LINENO: checking whether gprof flags are to be used when compiling" >&5 19714$as_echo_n "checking whether gprof flags are to be used when compiling... " >&6; } 19715# Check whether --enable-profile was given. 19716if test "${enable_profile+set}" = set; then 19717 enableval=$enable_profile; 19718if test x"${enableval}" = x"yes" ; then 19719 { $as_echo "$as_me:$LINENO: result: yes" >&5 19720$as_echo "yes" >&6; } 19721 case "$CXX" in 19722 g++*|icc) 19723 CXXFLAGS="$CXXFLAGS -pg" 19724 ;; 19725 *) 19726 # do nothing 19727 ;; 19728 esac 19729else 19730 { $as_echo "$as_me:$LINENO: result: no" >&5 19731$as_echo "no" >&6; } 19732fi 19733else 19734 { $as_echo "$as_me:$LINENO: result: no" >&5 19735$as_echo "no" >&6; } 19736 19737fi 19738 19739 19740ac_ext=cpp 19741ac_cpp='$CXXCPP $CPPFLAGS' 19742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19745 19746OPT_CFLAGS="" 19747case "$CXX" in 19748 nomatch) 19749 TRY_CFLAGS="$OPT_CFLAGS -g" 19750 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 19751$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 19752 SAVE_CXXFLAGS="$CXXFLAGS" 19753 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 19754 cat >conftest.$ac_ext <<_ACEOF 19755/* confdefs.h. */ 19756_ACEOF 19757cat confdefs.h >>conftest.$ac_ext 19758cat >>conftest.$ac_ext <<_ACEOF 19759/* end confdefs.h. */ 19760 19761int 19762main () 19763{ 19764 19765 ; 19766 return 0; 19767} 19768_ACEOF 19769rm -f conftest.$ac_objext 19770if { (ac_try="$ac_compile" 19771case "(($ac_try" in 19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19773 *) ac_try_echo=$ac_try;; 19774esac 19775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19776$as_echo "$ac_try_echo") >&5 19777 (eval "$ac_compile") 2>conftest.er1 19778 ac_status=$? 19779 grep -v '^ *+' conftest.er1 >conftest.err 19780 rm -f conftest.er1 19781 cat conftest.err >&5 19782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19783 (exit $ac_status); } && { 19784 test -z "$ac_cxx_werror_flag" || 19785 test ! -s conftest.err 19786 } && test -s conftest.$ac_objext; then 19787 ac_cv_try_cxxflags_ok=yes 19788else 19789 $as_echo "$as_me: failed program was:" >&5 19790sed 's/^/| /' conftest.$ac_ext >&5 19791 19792 ac_cv_try_cxxflags_ok=no 19793fi 19794 19795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19796 CXXFLAGS="$SAVE_CXXFLAGS" 19797 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 19798$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 19799 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 19800 OPT_CFLAGS="$TRY_CFLAGS" 19801 else 19802 : 19803 fi 19804 TRY_CFLAGS="$OPT_CFLAGS -pedantic" 19805 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 19806$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 19807 SAVE_CXXFLAGS="$CXXFLAGS" 19808 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 19809 cat >conftest.$ac_ext <<_ACEOF 19810/* confdefs.h. */ 19811_ACEOF 19812cat confdefs.h >>conftest.$ac_ext 19813cat >>conftest.$ac_ext <<_ACEOF 19814/* end confdefs.h. */ 19815 19816int 19817main () 19818{ 19819 19820 ; 19821 return 0; 19822} 19823_ACEOF 19824rm -f conftest.$ac_objext 19825if { (ac_try="$ac_compile" 19826case "(($ac_try" in 19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19828 *) ac_try_echo=$ac_try;; 19829esac 19830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19831$as_echo "$ac_try_echo") >&5 19832 (eval "$ac_compile") 2>conftest.er1 19833 ac_status=$? 19834 grep -v '^ *+' conftest.er1 >conftest.err 19835 rm -f conftest.er1 19836 cat conftest.err >&5 19837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19838 (exit $ac_status); } && { 19839 test -z "$ac_cxx_werror_flag" || 19840 test ! -s conftest.err 19841 } && test -s conftest.$ac_objext; then 19842 ac_cv_try_cxxflags_ok=yes 19843else 19844 $as_echo "$as_me: failed program was:" >&5 19845sed 's/^/| /' conftest.$ac_ext >&5 19846 19847 ac_cv_try_cxxflags_ok=no 19848fi 19849 19850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19851 CXXFLAGS="$SAVE_CXXFLAGS" 19852 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 19853$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 19854 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 19855 OPT_CFLAGS="$TRY_CFLAGS" 19856 else 19857 : 19858 fi 19859 TRY_CFLAGS="$OPT_CFLAGS -Wall" 19860 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 19861$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 19862 SAVE_CXXFLAGS="$CXXFLAGS" 19863 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 19864 cat >conftest.$ac_ext <<_ACEOF 19865/* confdefs.h. */ 19866_ACEOF 19867cat confdefs.h >>conftest.$ac_ext 19868cat >>conftest.$ac_ext <<_ACEOF 19869/* end confdefs.h. */ 19870 19871int 19872main () 19873{ 19874 19875 ; 19876 return 0; 19877} 19878_ACEOF 19879rm -f conftest.$ac_objext 19880if { (ac_try="$ac_compile" 19881case "(($ac_try" in 19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19883 *) ac_try_echo=$ac_try;; 19884esac 19885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19886$as_echo "$ac_try_echo") >&5 19887 (eval "$ac_compile") 2>conftest.er1 19888 ac_status=$? 19889 grep -v '^ *+' conftest.er1 >conftest.err 19890 rm -f conftest.er1 19891 cat conftest.err >&5 19892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19893 (exit $ac_status); } && { 19894 test -z "$ac_cxx_werror_flag" || 19895 test ! -s conftest.err 19896 } && test -s conftest.$ac_objext; then 19897 ac_cv_try_cxxflags_ok=yes 19898else 19899 $as_echo "$as_me: failed program was:" >&5 19900sed 's/^/| /' conftest.$ac_ext >&5 19901 19902 ac_cv_try_cxxflags_ok=no 19903fi 19904 19905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19906 CXXFLAGS="$SAVE_CXXFLAGS" 19907 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 19908$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 19909 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 19910 OPT_CFLAGS="$TRY_CFLAGS" 19911 else 19912 : 19913 fi 19914 TRY_CFLAGS="$OPT_CFLAGS -Werror" 19915 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 19916$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 19917 SAVE_CXXFLAGS="$CXXFLAGS" 19918 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 19919 cat >conftest.$ac_ext <<_ACEOF 19920/* confdefs.h. */ 19921_ACEOF 19922cat confdefs.h >>conftest.$ac_ext 19923cat >>conftest.$ac_ext <<_ACEOF 19924/* end confdefs.h. */ 19925 19926int 19927main () 19928{ 19929 19930 ; 19931 return 0; 19932} 19933_ACEOF 19934rm -f conftest.$ac_objext 19935if { (ac_try="$ac_compile" 19936case "(($ac_try" in 19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19938 *) ac_try_echo=$ac_try;; 19939esac 19940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19941$as_echo "$ac_try_echo") >&5 19942 (eval "$ac_compile") 2>conftest.er1 19943 ac_status=$? 19944 grep -v '^ *+' conftest.er1 >conftest.err 19945 rm -f conftest.er1 19946 cat conftest.err >&5 19947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19948 (exit $ac_status); } && { 19949 test -z "$ac_cxx_werror_flag" || 19950 test ! -s conftest.err 19951 } && test -s conftest.$ac_objext; then 19952 ac_cv_try_cxxflags_ok=yes 19953else 19954 $as_echo "$as_me: failed program was:" >&5 19955sed 's/^/| /' conftest.$ac_ext >&5 19956 19957 ac_cv_try_cxxflags_ok=no 19958fi 19959 19960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19961 CXXFLAGS="$SAVE_CXXFLAGS" 19962 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 19963$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 19964 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 19965 OPT_CFLAGS="$TRY_CFLAGS" 19966 else 19967 : 19968 fi 19969 TRY_CFLAGS="$OPT_CFLAGS -W" 19970 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 19971$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 19972 SAVE_CXXFLAGS="$CXXFLAGS" 19973 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 19974 cat >conftest.$ac_ext <<_ACEOF 19975/* confdefs.h. */ 19976_ACEOF 19977cat confdefs.h >>conftest.$ac_ext 19978cat >>conftest.$ac_ext <<_ACEOF 19979/* end confdefs.h. */ 19980 19981int 19982main () 19983{ 19984 19985 ; 19986 return 0; 19987} 19988_ACEOF 19989rm -f conftest.$ac_objext 19990if { (ac_try="$ac_compile" 19991case "(($ac_try" in 19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19993 *) ac_try_echo=$ac_try;; 19994esac 19995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19996$as_echo "$ac_try_echo") >&5 19997 (eval "$ac_compile") 2>conftest.er1 19998 ac_status=$? 19999 grep -v '^ *+' conftest.er1 >conftest.err 20000 rm -f conftest.er1 20001 cat conftest.err >&5 20002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20003 (exit $ac_status); } && { 20004 test -z "$ac_cxx_werror_flag" || 20005 test ! -s conftest.err 20006 } && test -s conftest.$ac_objext; then 20007 ac_cv_try_cxxflags_ok=yes 20008else 20009 $as_echo "$as_me: failed program was:" >&5 20010sed 's/^/| /' conftest.$ac_ext >&5 20011 20012 ac_cv_try_cxxflags_ok=no 20013fi 20014 20015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20016 CXXFLAGS="$SAVE_CXXFLAGS" 20017 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20018$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20019 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20020 OPT_CFLAGS="$TRY_CFLAGS" 20021 else 20022 : 20023 fi 20024 TRY_CFLAGS="$OPT_CFLAGS -Woverloaded-virtual" 20025 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20026$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20027 SAVE_CXXFLAGS="$CXXFLAGS" 20028 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20029 cat >conftest.$ac_ext <<_ACEOF 20030/* confdefs.h. */ 20031_ACEOF 20032cat confdefs.h >>conftest.$ac_ext 20033cat >>conftest.$ac_ext <<_ACEOF 20034/* end confdefs.h. */ 20035 20036int 20037main () 20038{ 20039 20040 ; 20041 return 0; 20042} 20043_ACEOF 20044rm -f conftest.$ac_objext 20045if { (ac_try="$ac_compile" 20046case "(($ac_try" in 20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20048 *) ac_try_echo=$ac_try;; 20049esac 20050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20051$as_echo "$ac_try_echo") >&5 20052 (eval "$ac_compile") 2>conftest.er1 20053 ac_status=$? 20054 grep -v '^ *+' conftest.er1 >conftest.err 20055 rm -f conftest.er1 20056 cat conftest.err >&5 20057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20058 (exit $ac_status); } && { 20059 test -z "$ac_cxx_werror_flag" || 20060 test ! -s conftest.err 20061 } && test -s conftest.$ac_objext; then 20062 ac_cv_try_cxxflags_ok=yes 20063else 20064 $as_echo "$as_me: failed program was:" >&5 20065sed 's/^/| /' conftest.$ac_ext >&5 20066 20067 ac_cv_try_cxxflags_ok=no 20068fi 20069 20070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20071 CXXFLAGS="$SAVE_CXXFLAGS" 20072 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20073$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20074 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20075 OPT_CFLAGS="$TRY_CFLAGS" 20076 else 20077 : 20078 fi 20079 #TRY_CFLAGS="-Wno-long-double" 20080 #AC_TRY_CXXFLAGS([#include <math.h>],[long double lw;], [$TRY_CFLAGS $CXXFLAGS],[OPT_CFLAGS="$OPT_CFLAGS $TRY_CFLAGS"]) 20081 TRY_CFLAGS="$OPT_CFLAGS -Wextra" 20082 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20083$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20084 SAVE_CXXFLAGS="$CXXFLAGS" 20085 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20086 cat >conftest.$ac_ext <<_ACEOF 20087/* confdefs.h. */ 20088_ACEOF 20089cat confdefs.h >>conftest.$ac_ext 20090cat >>conftest.$ac_ext <<_ACEOF 20091/* end confdefs.h. */ 20092 20093int 20094main () 20095{ 20096 20097 ; 20098 return 0; 20099} 20100_ACEOF 20101rm -f conftest.$ac_objext 20102if { (ac_try="$ac_compile" 20103case "(($ac_try" in 20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20105 *) ac_try_echo=$ac_try;; 20106esac 20107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20108$as_echo "$ac_try_echo") >&5 20109 (eval "$ac_compile") 2>conftest.er1 20110 ac_status=$? 20111 grep -v '^ *+' conftest.er1 >conftest.err 20112 rm -f conftest.er1 20113 cat conftest.err >&5 20114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20115 (exit $ac_status); } && { 20116 test -z "$ac_cxx_werror_flag" || 20117 test ! -s conftest.err 20118 } && test -s conftest.$ac_objext; then 20119 ac_cv_try_cxxflags_ok=yes 20120else 20121 $as_echo "$as_me: failed program was:" >&5 20122sed 's/^/| /' conftest.$ac_ext >&5 20123 20124 ac_cv_try_cxxflags_ok=no 20125fi 20126 20127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20128 CXXFLAGS="$SAVE_CXXFLAGS" 20129 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20130$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20131 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20132 OPT_CFLAGS="$TRY_CFLAGS" 20133 else 20134 : 20135 fi 20136 CXXFLAGS="$OPT_CFLAGS $CXXFLAGS" 20137 ;; 20138 *) 20139 # do nothing at the moment 20140 ;; 20141esac 20142{ $as_echo "$as_me:$LINENO: checking whether extra debug flags are to be used when compiling" >&5 20143$as_echo_n "checking whether extra debug flags are to be used when compiling... " >&6; } 20144# Check whether --enable-debug was given. 20145if test "${enable_debug+set}" = set; then 20146 enableval=$enable_debug; 20147if test x"${enableval}" = x"yes" ; then 20148 { $as_echo "$as_me:$LINENO: result: yes" >&5 20149$as_echo "yes" >&6; } 20150 case "$CXX" in 20151 g++*|c++*|clang*) 20152 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9]*//g'` 20153 OPT_CFLAGS="" 20154 TRY_CFLAGS="-O0" 20155 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20156$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20157 SAVE_CXXFLAGS="$CXXFLAGS" 20158 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20159 cat >conftest.$ac_ext <<_ACEOF 20160/* confdefs.h. */ 20161_ACEOF 20162cat confdefs.h >>conftest.$ac_ext 20163cat >>conftest.$ac_ext <<_ACEOF 20164/* end confdefs.h. */ 20165 20166int 20167main () 20168{ 20169 20170 ; 20171 return 0; 20172} 20173_ACEOF 20174rm -f conftest.$ac_objext 20175if { (ac_try="$ac_compile" 20176case "(($ac_try" in 20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20178 *) ac_try_echo=$ac_try;; 20179esac 20180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20181$as_echo "$ac_try_echo") >&5 20182 (eval "$ac_compile") 2>conftest.er1 20183 ac_status=$? 20184 grep -v '^ *+' conftest.er1 >conftest.err 20185 rm -f conftest.er1 20186 cat conftest.err >&5 20187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20188 (exit $ac_status); } && { 20189 test -z "$ac_cxx_werror_flag" || 20190 test ! -s conftest.err 20191 } && test -s conftest.$ac_objext; then 20192 ac_cv_try_cxxflags_ok=yes 20193else 20194 $as_echo "$as_me: failed program was:" >&5 20195sed 's/^/| /' conftest.$ac_ext >&5 20196 20197 ac_cv_try_cxxflags_ok=no 20198fi 20199 20200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20201 CXXFLAGS="$SAVE_CXXFLAGS" 20202 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20203$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20204 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20205 OPT_CFLAGS="$TRY_CFLAGS" 20206 else 20207 : 20208 fi 20209 CXXFLAGS="$OPT_CFLAGS $CXXFLAGS -DDIRAC_DEBUG" 20210 ;; 20211 icc) 20212 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9]*//g'` 20213 CXXFLAGS="-DDIRAC_DEBUG -g -O0 $CXXFLAGS" 20214 # report only errors and warnings as errors 20215 CXXFLAGS="$CXXFLAGS -w1 -Werror -wr964 -wr963" 20216 ;; 20217 cl*|CL*) 20218 # -Od turn off optimisation, -Z7 turn on debugging info 20219 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9]*//g'` 20220 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[a-z]*//g'` 20221 CXXFLAGS=`echo $CXXFLAGS | sed 's/-W[0-9]*//g'` 20222 CXXFLAGS="$CXXFLAGS -Od -Z7 -W2" 20223 if test x"$enable_shared" = "xyes"; then 20224 LIBFLAGS="$LIBFLAGS -DEBUG"; 20225 fi 20226 ;; 20227 *) 20228 # do nothing at the moment 20229 ;; 20230 esac 20231else 20232 { $as_echo "$as_me:$LINENO: result: no" >&5 20233$as_echo "no" >&6; } 20234fi 20235else 20236 20237 { $as_echo "$as_me:$LINENO: result: no" >&5 20238$as_echo "no" >&6; } 20239 OPT_CFLAGS="" 20240 case "$CXX" in 20241 nomatch) 20242 TRY_CFLAGS="-O3" 20243 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20244$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20245 SAVE_CXXFLAGS="$CXXFLAGS" 20246 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20247 cat >conftest.$ac_ext <<_ACEOF 20248/* confdefs.h. */ 20249_ACEOF 20250cat confdefs.h >>conftest.$ac_ext 20251cat >>conftest.$ac_ext <<_ACEOF 20252/* end confdefs.h. */ 20253 20254int 20255main () 20256{ 20257 20258 ; 20259 return 0; 20260} 20261_ACEOF 20262rm -f conftest.$ac_objext 20263if { (ac_try="$ac_compile" 20264case "(($ac_try" in 20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20266 *) ac_try_echo=$ac_try;; 20267esac 20268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20269$as_echo "$ac_try_echo") >&5 20270 (eval "$ac_compile") 2>conftest.er1 20271 ac_status=$? 20272 grep -v '^ *+' conftest.er1 >conftest.err 20273 rm -f conftest.er1 20274 cat conftest.err >&5 20275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20276 (exit $ac_status); } && { 20277 test -z "$ac_cxx_werror_flag" || 20278 test ! -s conftest.err 20279 } && test -s conftest.$ac_objext; then 20280 ac_cv_try_cxxflags_ok=yes 20281else 20282 $as_echo "$as_me: failed program was:" >&5 20283sed 's/^/| /' conftest.$ac_ext >&5 20284 20285 ac_cv_try_cxxflags_ok=no 20286fi 20287 20288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20289 CXXFLAGS="$SAVE_CXXFLAGS" 20290 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20291$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20292 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20293 OPT_CFLAGS="$TRY_CFLAGS" 20294 else 20295 : 20296 fi 20297 TRY_CFLAGS="$OPT_CFLAGS -Wuninitialized" 20298 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20299$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20300 SAVE_CXXFLAGS="$CXXFLAGS" 20301 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20302 cat >conftest.$ac_ext <<_ACEOF 20303/* confdefs.h. */ 20304_ACEOF 20305cat confdefs.h >>conftest.$ac_ext 20306cat >>conftest.$ac_ext <<_ACEOF 20307/* end confdefs.h. */ 20308 20309int 20310main () 20311{ 20312 20313 ; 20314 return 0; 20315} 20316_ACEOF 20317rm -f conftest.$ac_objext 20318if { (ac_try="$ac_compile" 20319case "(($ac_try" in 20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20321 *) ac_try_echo=$ac_try;; 20322esac 20323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20324$as_echo "$ac_try_echo") >&5 20325 (eval "$ac_compile") 2>conftest.er1 20326 ac_status=$? 20327 grep -v '^ *+' conftest.er1 >conftest.err 20328 rm -f conftest.er1 20329 cat conftest.err >&5 20330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20331 (exit $ac_status); } && { 20332 test -z "$ac_cxx_werror_flag" || 20333 test ! -s conftest.err 20334 } && test -s conftest.$ac_objext; then 20335 ac_cv_try_cxxflags_ok=yes 20336else 20337 $as_echo "$as_me: failed program was:" >&5 20338sed 's/^/| /' conftest.$ac_ext >&5 20339 20340 ac_cv_try_cxxflags_ok=no 20341fi 20342 20343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20344 CXXFLAGS="$SAVE_CXXFLAGS" 20345 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20346$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20347 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20348 OPT_CFLAGS="$TRY_CFLAGS" 20349 else 20350 : 20351 fi 20352 case "$host" in 20353 i386-*) TRY_CFLAGS="$OPT_CFLAGS -march=i386";; 20354 i486-*) TRY_CFLAGS="$OPT_CFLAGS -march=i486";; 20355 i586-*) TRY_CFLAGS="$OPT_CFLAGS -march=pentium";; 20356 i686-*) TRY_CFLAGS="$OPT_CFLAGS -march=pentiumpro";; 20357 k6-*) TRY_CFLAGS="$OPT_CFLAGS -march=k6";; 20358 esac 20359 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20360$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20361 SAVE_CXXFLAGS="$CXXFLAGS" 20362 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20363 cat >conftest.$ac_ext <<_ACEOF 20364/* confdefs.h. */ 20365_ACEOF 20366cat confdefs.h >>conftest.$ac_ext 20367cat >>conftest.$ac_ext <<_ACEOF 20368/* end confdefs.h. */ 20369 20370int 20371main () 20372{ 20373 20374 ; 20375 return 0; 20376} 20377_ACEOF 20378rm -f conftest.$ac_objext 20379if { (ac_try="$ac_compile" 20380case "(($ac_try" in 20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20382 *) ac_try_echo=$ac_try;; 20383esac 20384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20385$as_echo "$ac_try_echo") >&5 20386 (eval "$ac_compile") 2>conftest.er1 20387 ac_status=$? 20388 grep -v '^ *+' conftest.er1 >conftest.err 20389 rm -f conftest.er1 20390 cat conftest.err >&5 20391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20392 (exit $ac_status); } && { 20393 test -z "$ac_cxx_werror_flag" || 20394 test ! -s conftest.err 20395 } && test -s conftest.$ac_objext; then 20396 ac_cv_try_cxxflags_ok=yes 20397else 20398 $as_echo "$as_me: failed program was:" >&5 20399sed 's/^/| /' conftest.$ac_ext >&5 20400 20401 ac_cv_try_cxxflags_ok=no 20402fi 20403 20404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20405 CXXFLAGS="$SAVE_CXXFLAGS" 20406 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20407$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20408 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20409 OPT_CFLAGS="$TRY_CFLAGS" 20410 else 20411 : 20412 fi 20413 ;; 20414 *) 20415 ;; 20416 esac 20417 20418 #Try more optimising flags if supported 20419 case "$CXX" in 20420 nomatch) 20421 TRY_CFLAGS="$OPT_CFLAGS -fexpensive-optimizations" 20422 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20423$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20424 SAVE_CXXFLAGS="$CXXFLAGS" 20425 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20426 cat >conftest.$ac_ext <<_ACEOF 20427/* confdefs.h. */ 20428_ACEOF 20429cat confdefs.h >>conftest.$ac_ext 20430cat >>conftest.$ac_ext <<_ACEOF 20431/* end confdefs.h. */ 20432 20433int 20434main () 20435{ 20436 20437 ; 20438 return 0; 20439} 20440_ACEOF 20441rm -f conftest.$ac_objext 20442if { (ac_try="$ac_compile" 20443case "(($ac_try" in 20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20445 *) ac_try_echo=$ac_try;; 20446esac 20447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20448$as_echo "$ac_try_echo") >&5 20449 (eval "$ac_compile") 2>conftest.er1 20450 ac_status=$? 20451 grep -v '^ *+' conftest.er1 >conftest.err 20452 rm -f conftest.er1 20453 cat conftest.err >&5 20454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20455 (exit $ac_status); } && { 20456 test -z "$ac_cxx_werror_flag" || 20457 test ! -s conftest.err 20458 } && test -s conftest.$ac_objext; then 20459 ac_cv_try_cxxflags_ok=yes 20460else 20461 $as_echo "$as_me: failed program was:" >&5 20462sed 's/^/| /' conftest.$ac_ext >&5 20463 20464 ac_cv_try_cxxflags_ok=no 20465fi 20466 20467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20468 CXXFLAGS="$SAVE_CXXFLAGS" 20469 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20470$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20471 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20472 OPT_CFLAGS="$TRY_CFLAGS" 20473 else 20474 : 20475 fi 20476 TRY_CFLAGS="$OPT_CFLAGS -frerun-cse-after-loop" 20477 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20478$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20479 SAVE_CXXFLAGS="$CXXFLAGS" 20480 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20481 cat >conftest.$ac_ext <<_ACEOF 20482/* confdefs.h. */ 20483_ACEOF 20484cat confdefs.h >>conftest.$ac_ext 20485cat >>conftest.$ac_ext <<_ACEOF 20486/* end confdefs.h. */ 20487 20488int 20489main () 20490{ 20491 20492 ; 20493 return 0; 20494} 20495_ACEOF 20496rm -f conftest.$ac_objext 20497if { (ac_try="$ac_compile" 20498case "(($ac_try" in 20499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20500 *) ac_try_echo=$ac_try;; 20501esac 20502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20503$as_echo "$ac_try_echo") >&5 20504 (eval "$ac_compile") 2>conftest.er1 20505 ac_status=$? 20506 grep -v '^ *+' conftest.er1 >conftest.err 20507 rm -f conftest.er1 20508 cat conftest.err >&5 20509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20510 (exit $ac_status); } && { 20511 test -z "$ac_cxx_werror_flag" || 20512 test ! -s conftest.err 20513 } && test -s conftest.$ac_objext; then 20514 ac_cv_try_cxxflags_ok=yes 20515else 20516 $as_echo "$as_me: failed program was:" >&5 20517sed 's/^/| /' conftest.$ac_ext >&5 20518 20519 ac_cv_try_cxxflags_ok=no 20520fi 20521 20522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20523 CXXFLAGS="$SAVE_CXXFLAGS" 20524 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20525$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20526 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20527 OPT_CFLAGS="$TRY_CFLAGS" 20528 else 20529 : 20530 fi 20531 TRY_CFLAGS="$OPT_CFLAGS -frerun-loop-opt" 20532 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20533$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20534 SAVE_CXXFLAGS="$CXXFLAGS" 20535 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20536 cat >conftest.$ac_ext <<_ACEOF 20537/* confdefs.h. */ 20538_ACEOF 20539cat confdefs.h >>conftest.$ac_ext 20540cat >>conftest.$ac_ext <<_ACEOF 20541/* end confdefs.h. */ 20542 20543int 20544main () 20545{ 20546 20547 ; 20548 return 0; 20549} 20550_ACEOF 20551rm -f conftest.$ac_objext 20552if { (ac_try="$ac_compile" 20553case "(($ac_try" in 20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20555 *) ac_try_echo=$ac_try;; 20556esac 20557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20558$as_echo "$ac_try_echo") >&5 20559 (eval "$ac_compile") 2>conftest.er1 20560 ac_status=$? 20561 grep -v '^ *+' conftest.er1 >conftest.err 20562 rm -f conftest.er1 20563 cat conftest.err >&5 20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20565 (exit $ac_status); } && { 20566 test -z "$ac_cxx_werror_flag" || 20567 test ! -s conftest.err 20568 } && test -s conftest.$ac_objext; then 20569 ac_cv_try_cxxflags_ok=yes 20570else 20571 $as_echo "$as_me: failed program was:" >&5 20572sed 's/^/| /' conftest.$ac_ext >&5 20573 20574 ac_cv_try_cxxflags_ok=no 20575fi 20576 20577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20578 CXXFLAGS="$SAVE_CXXFLAGS" 20579 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20580$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20581 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20582 OPT_CFLAGS="$TRY_CFLAGS" 20583 else 20584 : 20585 fi 20586 TRY_CFLAGS="$OPT_CFLAGS -fomit-frame-pointer" 20587 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20588$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20589 SAVE_CXXFLAGS="$CXXFLAGS" 20590 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20591 cat >conftest.$ac_ext <<_ACEOF 20592/* confdefs.h. */ 20593_ACEOF 20594cat confdefs.h >>conftest.$ac_ext 20595cat >>conftest.$ac_ext <<_ACEOF 20596/* end confdefs.h. */ 20597 20598int 20599main () 20600{ 20601 20602 ; 20603 return 0; 20604} 20605_ACEOF 20606rm -f conftest.$ac_objext 20607if { (ac_try="$ac_compile" 20608case "(($ac_try" in 20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20610 *) ac_try_echo=$ac_try;; 20611esac 20612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20613$as_echo "$ac_try_echo") >&5 20614 (eval "$ac_compile") 2>conftest.er1 20615 ac_status=$? 20616 grep -v '^ *+' conftest.er1 >conftest.err 20617 rm -f conftest.er1 20618 cat conftest.err >&5 20619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20620 (exit $ac_status); } && { 20621 test -z "$ac_cxx_werror_flag" || 20622 test ! -s conftest.err 20623 } && test -s conftest.$ac_objext; then 20624 ac_cv_try_cxxflags_ok=yes 20625else 20626 $as_echo "$as_me: failed program was:" >&5 20627sed 's/^/| /' conftest.$ac_ext >&5 20628 20629 ac_cv_try_cxxflags_ok=no 20630fi 20631 20632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20633 CXXFLAGS="$SAVE_CXXFLAGS" 20634 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20635$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20636 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20637 OPT_CFLAGS="$TRY_CFLAGS" 20638 else 20639 : 20640 fi 20641 TRY_CFLAGS="$OPT_CFLAGS -minline-all-stringops" 20642 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20643$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20644 SAVE_CXXFLAGS="$CXXFLAGS" 20645 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20646 cat >conftest.$ac_ext <<_ACEOF 20647/* confdefs.h. */ 20648_ACEOF 20649cat confdefs.h >>conftest.$ac_ext 20650cat >>conftest.$ac_ext <<_ACEOF 20651/* end confdefs.h. */ 20652 20653int 20654main () 20655{ 20656 20657 ; 20658 return 0; 20659} 20660_ACEOF 20661rm -f conftest.$ac_objext 20662if { (ac_try="$ac_compile" 20663case "(($ac_try" in 20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20665 *) ac_try_echo=$ac_try;; 20666esac 20667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20668$as_echo "$ac_try_echo") >&5 20669 (eval "$ac_compile") 2>conftest.er1 20670 ac_status=$? 20671 grep -v '^ *+' conftest.er1 >conftest.err 20672 rm -f conftest.er1 20673 cat conftest.err >&5 20674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20675 (exit $ac_status); } && { 20676 test -z "$ac_cxx_werror_flag" || 20677 test ! -s conftest.err 20678 } && test -s conftest.$ac_objext; then 20679 ac_cv_try_cxxflags_ok=yes 20680else 20681 $as_echo "$as_me: failed program was:" >&5 20682sed 's/^/| /' conftest.$ac_ext >&5 20683 20684 ac_cv_try_cxxflags_ok=no 20685fi 20686 20687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20688 CXXFLAGS="$SAVE_CXXFLAGS" 20689 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20690$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20691 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20692 OPT_CFLAGS="$TRY_CFLAGS" 20693 else 20694 : 20695 fi 20696 TRY_CFLAGS="$OPT_CFLAGS -fschedule-insns2" 20697 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20698$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20699 SAVE_CXXFLAGS="$CXXFLAGS" 20700 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20701 cat >conftest.$ac_ext <<_ACEOF 20702/* confdefs.h. */ 20703_ACEOF 20704cat confdefs.h >>conftest.$ac_ext 20705cat >>conftest.$ac_ext <<_ACEOF 20706/* end confdefs.h. */ 20707 20708int 20709main () 20710{ 20711 20712 ; 20713 return 0; 20714} 20715_ACEOF 20716rm -f conftest.$ac_objext 20717if { (ac_try="$ac_compile" 20718case "(($ac_try" in 20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20720 *) ac_try_echo=$ac_try;; 20721esac 20722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20723$as_echo "$ac_try_echo") >&5 20724 (eval "$ac_compile") 2>conftest.er1 20725 ac_status=$? 20726 grep -v '^ *+' conftest.er1 >conftest.err 20727 rm -f conftest.er1 20728 cat conftest.err >&5 20729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20730 (exit $ac_status); } && { 20731 test -z "$ac_cxx_werror_flag" || 20732 test ! -s conftest.err 20733 } && test -s conftest.$ac_objext; then 20734 ac_cv_try_cxxflags_ok=yes 20735else 20736 $as_echo "$as_me: failed program was:" >&5 20737sed 's/^/| /' conftest.$ac_ext >&5 20738 20739 ac_cv_try_cxxflags_ok=no 20740fi 20741 20742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20743 CXXFLAGS="$SAVE_CXXFLAGS" 20744 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20745$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20746 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20747 OPT_CFLAGS="$TRY_CFLAGS" 20748 else 20749 : 20750 fi 20751 TRY_CFLAGS="$OPT_CFLAGS -falign-functions=4" 20752 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20753$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20754 SAVE_CXXFLAGS="$CXXFLAGS" 20755 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20756 cat >conftest.$ac_ext <<_ACEOF 20757/* confdefs.h. */ 20758_ACEOF 20759cat confdefs.h >>conftest.$ac_ext 20760cat >>conftest.$ac_ext <<_ACEOF 20761/* end confdefs.h. */ 20762 20763int 20764main () 20765{ 20766 20767 ; 20768 return 0; 20769} 20770_ACEOF 20771rm -f conftest.$ac_objext 20772if { (ac_try="$ac_compile" 20773case "(($ac_try" in 20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20775 *) ac_try_echo=$ac_try;; 20776esac 20777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20778$as_echo "$ac_try_echo") >&5 20779 (eval "$ac_compile") 2>conftest.er1 20780 ac_status=$? 20781 grep -v '^ *+' conftest.er1 >conftest.err 20782 rm -f conftest.er1 20783 cat conftest.err >&5 20784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20785 (exit $ac_status); } && { 20786 test -z "$ac_cxx_werror_flag" || 20787 test ! -s conftest.err 20788 } && test -s conftest.$ac_objext; then 20789 ac_cv_try_cxxflags_ok=yes 20790else 20791 $as_echo "$as_me: failed program was:" >&5 20792sed 's/^/| /' conftest.$ac_ext >&5 20793 20794 ac_cv_try_cxxflags_ok=no 20795fi 20796 20797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20798 CXXFLAGS="$SAVE_CXXFLAGS" 20799 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20800$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20801 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20802 OPT_CFLAGS="$TRY_CFLAGS" 20803 else 20804 : 20805 fi 20806 TRY_CFLAGS="$OPT_CFLAGS -fforce-addr" 20807 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20808$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20809 SAVE_CXXFLAGS="$CXXFLAGS" 20810 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20811 cat >conftest.$ac_ext <<_ACEOF 20812/* confdefs.h. */ 20813_ACEOF 20814cat confdefs.h >>conftest.$ac_ext 20815cat >>conftest.$ac_ext <<_ACEOF 20816/* end confdefs.h. */ 20817 20818int 20819main () 20820{ 20821 20822 ; 20823 return 0; 20824} 20825_ACEOF 20826rm -f conftest.$ac_objext 20827if { (ac_try="$ac_compile" 20828case "(($ac_try" in 20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20830 *) ac_try_echo=$ac_try;; 20831esac 20832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20833$as_echo "$ac_try_echo") >&5 20834 (eval "$ac_compile") 2>conftest.er1 20835 ac_status=$? 20836 grep -v '^ *+' conftest.er1 >conftest.err 20837 rm -f conftest.er1 20838 cat conftest.err >&5 20839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20840 (exit $ac_status); } && { 20841 test -z "$ac_cxx_werror_flag" || 20842 test ! -s conftest.err 20843 } && test -s conftest.$ac_objext; then 20844 ac_cv_try_cxxflags_ok=yes 20845else 20846 $as_echo "$as_me: failed program was:" >&5 20847sed 's/^/| /' conftest.$ac_ext >&5 20848 20849 ac_cv_try_cxxflags_ok=no 20850fi 20851 20852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20853 CXXFLAGS="$SAVE_CXXFLAGS" 20854 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20855$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20856 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20857 OPT_CFLAGS="$TRY_CFLAGS" 20858 else 20859 : 20860 fi 20861 TRY_CFLAGS="$OPT_CFLAGS -pipe" 20862 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20863$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20864 SAVE_CXXFLAGS="$CXXFLAGS" 20865 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20866 cat >conftest.$ac_ext <<_ACEOF 20867/* confdefs.h. */ 20868_ACEOF 20869cat confdefs.h >>conftest.$ac_ext 20870cat >>conftest.$ac_ext <<_ACEOF 20871/* end confdefs.h. */ 20872 20873int 20874main () 20875{ 20876 20877 ; 20878 return 0; 20879} 20880_ACEOF 20881rm -f conftest.$ac_objext 20882if { (ac_try="$ac_compile" 20883case "(($ac_try" in 20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20885 *) ac_try_echo=$ac_try;; 20886esac 20887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20888$as_echo "$ac_try_echo") >&5 20889 (eval "$ac_compile") 2>conftest.er1 20890 ac_status=$? 20891 grep -v '^ *+' conftest.er1 >conftest.err 20892 rm -f conftest.er1 20893 cat conftest.err >&5 20894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20895 (exit $ac_status); } && { 20896 test -z "$ac_cxx_werror_flag" || 20897 test ! -s conftest.err 20898 } && test -s conftest.$ac_objext; then 20899 ac_cv_try_cxxflags_ok=yes 20900else 20901 $as_echo "$as_me: failed program was:" >&5 20902sed 's/^/| /' conftest.$ac_ext >&5 20903 20904 ac_cv_try_cxxflags_ok=no 20905fi 20906 20907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20908 CXXFLAGS="$SAVE_CXXFLAGS" 20909 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 20910$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 20911 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 20912 OPT_CFLAGS="$TRY_CFLAGS" 20913 else 20914 : 20915 fi 20916 ;; 20917 *) 20918 # do nothing at the moment 20919 ;; 20920 esac 20921 CXXFLAGS="$OPT_CFLAGS $CXXFLAGS" 20922 20923 20924fi 20925 20926ac_ext=c 20927ac_cpp='$CPP $CPPFLAGS' 20928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20930ac_compiler_gnu=$ac_cv_c_compiler_gnu 20931 20932 20933{ $as_echo "$as_me:$LINENO: checking whether optimizations using MMX instructions are enabled" >&5 20934$as_echo_n "checking whether optimizations using MMX instructions are enabled... " >&6; } 20935# Check whether --enable-mmx was given. 20936if test "${enable_mmx+set}" = set; then 20937 enableval=$enable_mmx; enable_mmx="${enableval}" 20938else 20939 enable_mmx="yes" 20940fi 20941 20942 20943if test x"${enable_mmx}" = x"yes" ; then 20944 case "$CXX" in 20945 g++*|c++*|clang*) 20946 ac_ext=cpp 20947ac_cpp='$CXXCPP $CPPFLAGS' 20948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20951 20952 TRY_CFLAGS="-mmmx" 20953 { $as_echo "$as_me:$LINENO: checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags" >&5 20954$as_echo_n "checking if $CXX supports $TRY_CFLAGS $CXXFLAGS flags... " >&6; } 20955 SAVE_CXXFLAGS="$CXXFLAGS" 20956 CXXFLAGS="$TRY_CFLAGS $CXXFLAGS" 20957 cat >conftest.$ac_ext <<_ACEOF 20958/* confdefs.h. */ 20959_ACEOF 20960cat confdefs.h >>conftest.$ac_ext 20961cat >>conftest.$ac_ext <<_ACEOF 20962/* end confdefs.h. */ 20963#include <mmintrin.h> 20964int 20965main () 20966{ 20967 20968 ; 20969 return 0; 20970} 20971_ACEOF 20972rm -f conftest.$ac_objext 20973if { (ac_try="$ac_compile" 20974case "(($ac_try" in 20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20976 *) ac_try_echo=$ac_try;; 20977esac 20978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20979$as_echo "$ac_try_echo") >&5 20980 (eval "$ac_compile") 2>conftest.er1 20981 ac_status=$? 20982 grep -v '^ *+' conftest.er1 >conftest.err 20983 rm -f conftest.er1 20984 cat conftest.err >&5 20985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20986 (exit $ac_status); } && { 20987 test -z "$ac_cxx_werror_flag" || 20988 test ! -s conftest.err 20989 } && test -s conftest.$ac_objext; then 20990 ac_cv_try_cxxflags_ok=yes 20991else 20992 $as_echo "$as_me: failed program was:" >&5 20993sed 's/^/| /' conftest.$ac_ext >&5 20994 20995 ac_cv_try_cxxflags_ok=no 20996fi 20997 20998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20999 CXXFLAGS="$SAVE_CXXFLAGS" 21000 { $as_echo "$as_me:$LINENO: result: $ac_cv_try_cxxflags_ok" >&5 21001$as_echo "$ac_cv_try_cxxflags_ok" >&6; } 21002 if test x"$ac_cv_try_cxxflags_ok" = x"yes"; then 21003 CXXFLAGS="$CXXFLAGS $TRY_CFLAGS -DHAVE_MMX" 21004 else 21005 : 21006 fi 21007 ac_ext=c 21008ac_cpp='$CPP $CPPFLAGS' 21009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21011ac_compiler_gnu=$ac_cv_c_compiler_gnu 21012 21013 ;; 21014 icc) 21015 ac_ext=cpp 21016ac_cpp='$CXXCPP $CPPFLAGS' 21017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21020 21021 if test "${ac_cv_header_mmintrin_h+set}" = set; then 21022 { $as_echo "$as_me:$LINENO: checking for mmintrin.h" >&5 21023$as_echo_n "checking for mmintrin.h... " >&6; } 21024if test "${ac_cv_header_mmintrin_h+set}" = set; then 21025 $as_echo_n "(cached) " >&6 21026fi 21027{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mmintrin_h" >&5 21028$as_echo "$ac_cv_header_mmintrin_h" >&6; } 21029else 21030 # Is the header compilable? 21031{ $as_echo "$as_me:$LINENO: checking mmintrin.h usability" >&5 21032$as_echo_n "checking mmintrin.h usability... " >&6; } 21033cat >conftest.$ac_ext <<_ACEOF 21034/* confdefs.h. */ 21035_ACEOF 21036cat confdefs.h >>conftest.$ac_ext 21037cat >>conftest.$ac_ext <<_ACEOF 21038/* end confdefs.h. */ 21039$ac_includes_default 21040#include <mmintrin.h> 21041_ACEOF 21042rm -f conftest.$ac_objext 21043if { (ac_try="$ac_compile" 21044case "(($ac_try" in 21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21046 *) ac_try_echo=$ac_try;; 21047esac 21048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21049$as_echo "$ac_try_echo") >&5 21050 (eval "$ac_compile") 2>conftest.er1 21051 ac_status=$? 21052 grep -v '^ *+' conftest.er1 >conftest.err 21053 rm -f conftest.er1 21054 cat conftest.err >&5 21055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21056 (exit $ac_status); } && { 21057 test -z "$ac_cxx_werror_flag" || 21058 test ! -s conftest.err 21059 } && test -s conftest.$ac_objext; then 21060 ac_header_compiler=yes 21061else 21062 $as_echo "$as_me: failed program was:" >&5 21063sed 's/^/| /' conftest.$ac_ext >&5 21064 21065 ac_header_compiler=no 21066fi 21067 21068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21069{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21070$as_echo "$ac_header_compiler" >&6; } 21071 21072# Is the header present? 21073{ $as_echo "$as_me:$LINENO: checking mmintrin.h presence" >&5 21074$as_echo_n "checking mmintrin.h presence... " >&6; } 21075cat >conftest.$ac_ext <<_ACEOF 21076/* confdefs.h. */ 21077_ACEOF 21078cat confdefs.h >>conftest.$ac_ext 21079cat >>conftest.$ac_ext <<_ACEOF 21080/* end confdefs.h. */ 21081#include <mmintrin.h> 21082_ACEOF 21083if { (ac_try="$ac_cpp conftest.$ac_ext" 21084case "(($ac_try" in 21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21086 *) ac_try_echo=$ac_try;; 21087esac 21088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21089$as_echo "$ac_try_echo") >&5 21090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21091 ac_status=$? 21092 grep -v '^ *+' conftest.er1 >conftest.err 21093 rm -f conftest.er1 21094 cat conftest.err >&5 21095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21096 (exit $ac_status); } >/dev/null && { 21097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 21098 test ! -s conftest.err 21099 }; then 21100 ac_header_preproc=yes 21101else 21102 $as_echo "$as_me: failed program was:" >&5 21103sed 's/^/| /' conftest.$ac_ext >&5 21104 21105 ac_header_preproc=no 21106fi 21107 21108rm -f conftest.err conftest.$ac_ext 21109{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21110$as_echo "$ac_header_preproc" >&6; } 21111 21112# So? What about this header? 21113case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 21114 yes:no: ) 21115 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: accepted by the compiler, rejected by the preprocessor!" >&5 21116$as_echo "$as_me: WARNING: mmintrin.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21117 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: proceeding with the compiler's result" >&5 21118$as_echo "$as_me: WARNING: mmintrin.h: proceeding with the compiler's result" >&2;} 21119 ac_header_preproc=yes 21120 ;; 21121 no:yes:* ) 21122 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: present but cannot be compiled" >&5 21123$as_echo "$as_me: WARNING: mmintrin.h: present but cannot be compiled" >&2;} 21124 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: check for missing prerequisite headers?" >&5 21125$as_echo "$as_me: WARNING: mmintrin.h: check for missing prerequisite headers?" >&2;} 21126 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: see the Autoconf documentation" >&5 21127$as_echo "$as_me: WARNING: mmintrin.h: see the Autoconf documentation" >&2;} 21128 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: section \"Present But Cannot Be Compiled\"" >&5 21129$as_echo "$as_me: WARNING: mmintrin.h: section \"Present But Cannot Be Compiled\"" >&2;} 21130 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: proceeding with the preprocessor's result" >&5 21131$as_echo "$as_me: WARNING: mmintrin.h: proceeding with the preprocessor's result" >&2;} 21132 { $as_echo "$as_me:$LINENO: WARNING: mmintrin.h: in the future, the compiler will take precedence" >&5 21133$as_echo "$as_me: WARNING: mmintrin.h: in the future, the compiler will take precedence" >&2;} 21134 21135 ;; 21136esac 21137{ $as_echo "$as_me:$LINENO: checking for mmintrin.h" >&5 21138$as_echo_n "checking for mmintrin.h... " >&6; } 21139if test "${ac_cv_header_mmintrin_h+set}" = set; then 21140 $as_echo_n "(cached) " >&6 21141else 21142 ac_cv_header_mmintrin_h=$ac_header_preproc 21143fi 21144{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_mmintrin_h" >&5 21145$as_echo "$ac_cv_header_mmintrin_h" >&6; } 21146 21147fi 21148if test "x$ac_cv_header_mmintrin_h" = x""yes; then 21149 { $as_echo "$as_me:$LINENO: result: yes" >&5 21150$as_echo "yes" >&6; }; CXXFLAGS="$CXXFLAGS -DHAVE_MMX=1" 21151else 21152 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 21153$as_echo "\"no\"" >&6; } 21154fi 21155 21156 21157 ac_ext=c 21158ac_cpp='$CPP $CPPFLAGS' 21159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21161ac_compiler_gnu=$ac_cv_c_compiler_gnu 21162 21163 ;; 21164 *) 21165 # do nothing 21166 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5 21167$as_echo "\"no\"" >&6; } 21168 ;; 21169 esac 21170else 21171 { $as_echo "$as_me:$LINENO: result: no" >&5 21172$as_echo "no" >&6; } 21173fi 21174 21175ac_ext=cpp 21176ac_cpp='$CXXCPP $CPPFLAGS' 21177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21180 21181if test "${ac_cv_header_cppunit_TestRunner_h+set}" = set; then 21182 { $as_echo "$as_me:$LINENO: checking for cppunit/TestRunner.h" >&5 21183$as_echo_n "checking for cppunit/TestRunner.h... " >&6; } 21184if test "${ac_cv_header_cppunit_TestRunner_h+set}" = set; then 21185 $as_echo_n "(cached) " >&6 21186fi 21187{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_TestRunner_h" >&5 21188$as_echo "$ac_cv_header_cppunit_TestRunner_h" >&6; } 21189else 21190 # Is the header compilable? 21191{ $as_echo "$as_me:$LINENO: checking cppunit/TestRunner.h usability" >&5 21192$as_echo_n "checking cppunit/TestRunner.h usability... " >&6; } 21193cat >conftest.$ac_ext <<_ACEOF 21194/* confdefs.h. */ 21195_ACEOF 21196cat confdefs.h >>conftest.$ac_ext 21197cat >>conftest.$ac_ext <<_ACEOF 21198/* end confdefs.h. */ 21199$ac_includes_default 21200#include <cppunit/TestRunner.h> 21201_ACEOF 21202rm -f conftest.$ac_objext 21203if { (ac_try="$ac_compile" 21204case "(($ac_try" in 21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21206 *) ac_try_echo=$ac_try;; 21207esac 21208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21209$as_echo "$ac_try_echo") >&5 21210 (eval "$ac_compile") 2>conftest.er1 21211 ac_status=$? 21212 grep -v '^ *+' conftest.er1 >conftest.err 21213 rm -f conftest.er1 21214 cat conftest.err >&5 21215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21216 (exit $ac_status); } && { 21217 test -z "$ac_cxx_werror_flag" || 21218 test ! -s conftest.err 21219 } && test -s conftest.$ac_objext; then 21220 ac_header_compiler=yes 21221else 21222 $as_echo "$as_me: failed program was:" >&5 21223sed 's/^/| /' conftest.$ac_ext >&5 21224 21225 ac_header_compiler=no 21226fi 21227 21228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21229{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21230$as_echo "$ac_header_compiler" >&6; } 21231 21232# Is the header present? 21233{ $as_echo "$as_me:$LINENO: checking cppunit/TestRunner.h presence" >&5 21234$as_echo_n "checking cppunit/TestRunner.h presence... " >&6; } 21235cat >conftest.$ac_ext <<_ACEOF 21236/* confdefs.h. */ 21237_ACEOF 21238cat confdefs.h >>conftest.$ac_ext 21239cat >>conftest.$ac_ext <<_ACEOF 21240/* end confdefs.h. */ 21241#include <cppunit/TestRunner.h> 21242_ACEOF 21243if { (ac_try="$ac_cpp conftest.$ac_ext" 21244case "(($ac_try" in 21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21246 *) ac_try_echo=$ac_try;; 21247esac 21248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21249$as_echo "$ac_try_echo") >&5 21250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21251 ac_status=$? 21252 grep -v '^ *+' conftest.er1 >conftest.err 21253 rm -f conftest.er1 21254 cat conftest.err >&5 21255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21256 (exit $ac_status); } >/dev/null && { 21257 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 21258 test ! -s conftest.err 21259 }; then 21260 ac_header_preproc=yes 21261else 21262 $as_echo "$as_me: failed program was:" >&5 21263sed 's/^/| /' conftest.$ac_ext >&5 21264 21265 ac_header_preproc=no 21266fi 21267 21268rm -f conftest.err conftest.$ac_ext 21269{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21270$as_echo "$ac_header_preproc" >&6; } 21271 21272# So? What about this header? 21273case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 21274 yes:no: ) 21275 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: accepted by the compiler, rejected by the preprocessor!" >&5 21276$as_echo "$as_me: WARNING: cppunit/TestRunner.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21277 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: proceeding with the compiler's result" >&5 21278$as_echo "$as_me: WARNING: cppunit/TestRunner.h: proceeding with the compiler's result" >&2;} 21279 ac_header_preproc=yes 21280 ;; 21281 no:yes:* ) 21282 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: present but cannot be compiled" >&5 21283$as_echo "$as_me: WARNING: cppunit/TestRunner.h: present but cannot be compiled" >&2;} 21284 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: check for missing prerequisite headers?" >&5 21285$as_echo "$as_me: WARNING: cppunit/TestRunner.h: check for missing prerequisite headers?" >&2;} 21286 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: see the Autoconf documentation" >&5 21287$as_echo "$as_me: WARNING: cppunit/TestRunner.h: see the Autoconf documentation" >&2;} 21288 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: section \"Present But Cannot Be Compiled\"" >&5 21289$as_echo "$as_me: WARNING: cppunit/TestRunner.h: section \"Present But Cannot Be Compiled\"" >&2;} 21290 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: proceeding with the preprocessor's result" >&5 21291$as_echo "$as_me: WARNING: cppunit/TestRunner.h: proceeding with the preprocessor's result" >&2;} 21292 { $as_echo "$as_me:$LINENO: WARNING: cppunit/TestRunner.h: in the future, the compiler will take precedence" >&5 21293$as_echo "$as_me: WARNING: cppunit/TestRunner.h: in the future, the compiler will take precedence" >&2;} 21294 21295 ;; 21296esac 21297{ $as_echo "$as_me:$LINENO: checking for cppunit/TestRunner.h" >&5 21298$as_echo_n "checking for cppunit/TestRunner.h... " >&6; } 21299if test "${ac_cv_header_cppunit_TestRunner_h+set}" = set; then 21300 $as_echo_n "(cached) " >&6 21301else 21302 ac_cv_header_cppunit_TestRunner_h=$ac_header_preproc 21303fi 21304{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_TestRunner_h" >&5 21305$as_echo "$ac_cv_header_cppunit_TestRunner_h" >&6; } 21306 21307fi 21308if test "x$ac_cv_header_cppunit_TestRunner_h" = x""yes; then 21309 HAVE_CPPUNIT="true" 21310else 21311 HAVE_CPPUNIT="false" 21312fi 21313 21314 21315 if test $HAVE_CPPUNIT = "true"; then 21316 { $as_echo "$as_me:$LINENO: checking whether unit tests code will compile and link" >&5 21317$as_echo_n "checking whether unit tests code will compile and link... " >&6; } 21318 SAVE_LIBS=$LIBS 21319 SAVE_CXXFLAGS=$CXXFLAGS 21320 LIBS="$LIBS -lcppunit -ldl" 21321 case `$LD -v 2>&1 < /dev/null` in 21322 *GNU* | *'with BFD'*) 21323 CXXFLAGS="$CXXFLAGS -Wl,--fatal-warnings" 21324 ;; 21325 esac; 21326 if test "$cross_compiling" = yes; then 21327 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 21328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21329{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21330See \`config.log' for more details." >&5 21331$as_echo "$as_me: error: cannot run test program while cross compiling 21332See \`config.log' for more details." >&2;} 21333 { (exit 1); exit 1; }; }; } 21334else 21335 cat >conftest.$ac_ext <<_ACEOF 21336/* confdefs.h. */ 21337_ACEOF 21338cat confdefs.h >>conftest.$ac_ext 21339cat >>conftest.$ac_ext <<_ACEOF 21340/* end confdefs.h. */ 21341#include <string> 21342 #include <cppunit/TestResult.h> 21343 #include <cppunit/TestRunner.h> 21344int 21345main () 21346{ 21347CPPUNIT_NS::TestResult controller; CPPUNIT_NS::TestRunner runner; 21348 ; 21349 return 0; 21350} 21351_ACEOF 21352rm -f conftest$ac_exeext 21353if { (ac_try="$ac_link" 21354case "(($ac_try" in 21355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21356 *) ac_try_echo=$ac_try;; 21357esac 21358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21359$as_echo "$ac_try_echo") >&5 21360 (eval "$ac_link") 2>&5 21361 ac_status=$? 21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21364 { (case "(($ac_try" in 21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21366 *) ac_try_echo=$ac_try;; 21367esac 21368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21369$as_echo "$ac_try_echo") >&5 21370 (eval "$ac_try") 2>&5 21371 ac_status=$? 21372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21373 (exit $ac_status); }; }; then 21374 { $as_echo "$as_me:$LINENO: result: yes" >&5 21375$as_echo "yes" >&6; } 21376else 21377 $as_echo "$as_me: program exited with status $ac_status" >&5 21378$as_echo "$as_me: failed program was:" >&5 21379sed 's/^/| /' conftest.$ac_ext >&5 21380 21381( exit $ac_status ) 21382{ $as_echo "$as_me:$LINENO: result: no" >&5 21383$as_echo "no" >&6; }; HAVE_CPPUNIT="false" 21384fi 21385rm -rf conftest.dSYM 21386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21387fi 21388 21389 21390 LIBS=$SAVE_LIBS 21391 CXXFLAGS=$SAVE_CXXFLAGS 21392 fi 21393 if $HAVE_CPPUNIT; then 21394 HAVE_CPPUNIT_TRUE= 21395 HAVE_CPPUNIT_FALSE='#' 21396else 21397 HAVE_CPPUNIT_TRUE='#' 21398 HAVE_CPPUNIT_FALSE= 21399fi 21400 21401ac_ext=c 21402ac_cpp='$CPP $CPPFLAGS' 21403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21405ac_compiler_gnu=$ac_cv_c_compiler_gnu 21406 21407 21408 if test x"$enable_static" = "xyes"; then 21409 USE_STATIC_TRUE= 21410 USE_STATIC_FALSE='#' 21411else 21412 USE_STATIC_TRUE='#' 21413 USE_STATIC_FALSE= 21414fi 21415 21416 21417for ac_prog in valgrind 21418do 21419 # Extract the first word of "$ac_prog", so it can be a program name with args. 21420set dummy $ac_prog; ac_word=$2 21421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 21422$as_echo_n "checking for $ac_word... " >&6; } 21423if test "${ac_cv_prog_VALGRIND+set}" = set; then 21424 $as_echo_n "(cached) " >&6 21425else 21426 if test -n "$VALGRIND"; then 21427 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 21428else 21429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21430for as_dir in $PATH 21431do 21432 IFS=$as_save_IFS 21433 test -z "$as_dir" && as_dir=. 21434 for ac_exec_ext in '' $ac_executable_extensions; do 21435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21436 ac_cv_prog_VALGRIND="$ac_prog" 21437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21438 break 2 21439 fi 21440done 21441done 21442IFS=$as_save_IFS 21443 21444fi 21445fi 21446VALGRIND=$ac_cv_prog_VALGRIND 21447if test -n "$VALGRIND"; then 21448 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5 21449$as_echo "$VALGRIND" >&6; } 21450else 21451 { $as_echo "$as_me:$LINENO: result: no" >&5 21452$as_echo "no" >&6; } 21453fi 21454 21455 21456 test -n "$VALGRIND" && break 21457done 21458 21459if test x"$VALGRIND" != "x" ; then 21460 if $VALGRIND -q --tool=memcheck true 2>/dev/null; then 21461 VALGRIND="valgrind --tool=memcheck --leak-check=yes" 21462 fi 21463fi 21464 21465ac_ext=cpp 21466ac_cpp='$CXXCPP $CPPFLAGS' 21467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21470 21471 21472{ $as_echo "$as_me:$LINENO: checking whether we need to link math lib" >&5 21473$as_echo_n "checking whether we need to link math lib... " >&6; } 21474cat >conftest.$ac_ext <<_ACEOF 21475/* confdefs.h. */ 21476_ACEOF 21477cat confdefs.h >>conftest.$ac_ext 21478cat >>conftest.$ac_ext <<_ACEOF 21479/* end confdefs.h. */ 21480#include <cmath> 21481int 21482main () 21483{ 21484double lw = std::pow(2.0, 2.0); 21485 ; 21486 return 0; 21487} 21488_ACEOF 21489rm -f conftest.$ac_objext conftest$ac_exeext 21490if { (ac_try="$ac_link" 21491case "(($ac_try" in 21492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21493 *) ac_try_echo=$ac_try;; 21494esac 21495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21496$as_echo "$ac_try_echo") >&5 21497 (eval "$ac_link") 2>conftest.er1 21498 ac_status=$? 21499 grep -v '^ *+' conftest.er1 >conftest.err 21500 rm -f conftest.er1 21501 cat conftest.err >&5 21502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21503 (exit $ac_status); } && { 21504 test -z "$ac_cxx_werror_flag" || 21505 test ! -s conftest.err 21506 } && test -s conftest$ac_exeext && { 21507 test "$cross_compiling" = yes || 21508 $as_test_x conftest$ac_exeext 21509 }; then 21510 { $as_echo "$as_me:$LINENO: result: no" >&5 21511$as_echo "no" >&6; } 21512else 21513 $as_echo "$as_me: failed program was:" >&5 21514sed 's/^/| /' conftest.$ac_ext >&5 21515 21516 CONFIG_MATH_LIB="-lm";{ $as_echo "$as_me:$LINENO: result: yes" >&5 21517$as_echo "yes" >&6; } 21518fi 21519 21520rm -rf conftest.dSYM 21521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21522 conftest$ac_exeext conftest.$ac_ext 21523ac_ext=c 21524ac_cpp='$CPP $CPPFLAGS' 21525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21527ac_compiler_gnu=$ac_cv_c_compiler_gnu 21528 21529 21530ac_config_files="$ac_config_files Makefile dirac.pc doc/Makefile libdirac_byteio/Makefile libdirac_common/Makefile libdirac_motionest/Makefile libdirac_encoder/Makefile libdirac_decoder/Makefile encoder/Makefile decoder/Makefile unit_tests/Makefile util/Makefile util/conversion/Makefile util/conversion/common/Makefile util/instrumentation/Makefile util/instrumentation/libdirac_instrument/Makefile win32/Makefile win32/VisualStudio/Makefile" 21531 21532cat >confcache <<\_ACEOF 21533# This file is a shell script that caches the results of configure 21534# tests run on this system so they can be shared between configure 21535# scripts and configure runs, see configure's option --config-cache. 21536# It is not useful on other systems. If it contains results you don't 21537# want to keep, you may remove or edit it. 21538# 21539# config.status only pays attention to the cache file if you give it 21540# the --recheck option to rerun configure. 21541# 21542# `ac_cv_env_foo' variables (set or unset) will be overridden when 21543# loading this file, other *unset* `ac_cv_foo' will be assigned the 21544# following values. 21545 21546_ACEOF 21547 21548# The following way of writing the cache mishandles newlines in values, 21549# but we know of no workaround that is simple, portable, and efficient. 21550# So, we kill variables containing newlines. 21551# Ultrix sh set writes to stderr and can't be redirected directly, 21552# and sets the high bit in the cache file unless we assign to the vars. 21553( 21554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21555 eval ac_val=\$$ac_var 21556 case $ac_val in #( 21557 *${as_nl}*) 21558 case $ac_var in #( 21559 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 21560$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21561 esac 21562 case $ac_var in #( 21563 _ | IFS | as_nl) ;; #( 21564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21565 *) $as_unset $ac_var ;; 21566 esac ;; 21567 esac 21568 done 21569 21570 (set) 2>&1 | 21571 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21572 *${as_nl}ac_space=\ *) 21573 # `set' does not quote correctly, so add quotes (double-quote 21574 # substitution turns \\\\ into \\, and sed turns \\ into \). 21575 sed -n \ 21576 "s/'/'\\\\''/g; 21577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21578 ;; #( 21579 *) 21580 # `set' quotes correctly as required by POSIX, so do not add quotes. 21581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21582 ;; 21583 esac | 21584 sort 21585) | 21586 sed ' 21587 /^ac_cv_env_/b end 21588 t clear 21589 :clear 21590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21591 t end 21592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21593 :end' >>confcache 21594if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21595 if test -w "$cache_file"; then 21596 test "x$cache_file" != "x/dev/null" && 21597 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21598$as_echo "$as_me: updating cache $cache_file" >&6;} 21599 cat confcache >$cache_file 21600 else 21601 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21602$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21603 fi 21604fi 21605rm -f confcache 21606 21607test "x$prefix" = xNONE && prefix=$ac_default_prefix 21608# Let make expand exec_prefix. 21609test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21610 21611# Transform confdefs.h into DEFS. 21612# Protect against shell expansion while executing Makefile rules. 21613# Protect against Makefile macro expansion. 21614# 21615# If the first sed substitution is executed (which looks for macros that 21616# take arguments), then branch to the quote section. Otherwise, 21617# look for a macro that doesn't take arguments. 21618ac_script=' 21619:mline 21620/\\$/{ 21621 N 21622 s,\\\n,, 21623 b mline 21624} 21625t clear 21626:clear 21627s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 21628t quote 21629s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 21630t quote 21631b any 21632:quote 21633s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 21634s/\[/\\&/g 21635s/\]/\\&/g 21636s/\$/$$/g 21637H 21638:any 21639${ 21640 g 21641 s/^\n// 21642 s/\n/ /g 21643 p 21644} 21645' 21646DEFS=`sed -n "$ac_script" confdefs.h` 21647 21648 21649ac_libobjs= 21650ac_ltlibobjs= 21651for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21652 # 1. Remove the extension, and $U if already installed. 21653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21656 # will be set to the directory where LIBOBJS objects are built. 21657 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21658 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21659done 21660LIBOBJS=$ac_libobjs 21661 21662LTLIBOBJS=$ac_ltlibobjs 21663 21664 21665if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21666 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21667Usually this means the macro was only invoked conditionally." >&5 21668$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21669Usually this means the macro was only invoked conditionally." >&2;} 21670 { (exit 1); exit 1; }; } 21671fi 21672if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21673 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21674Usually this means the macro was only invoked conditionally." >&5 21675$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21676Usually this means the macro was only invoked conditionally." >&2;} 21677 { (exit 1); exit 1; }; } 21678fi 21679if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21680 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21681Usually this means the macro was only invoked conditionally." >&5 21682$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21683Usually this means the macro was only invoked conditionally." >&2;} 21684 { (exit 1); exit 1; }; } 21685fi 21686if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21687 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21688Usually this means the macro was only invoked conditionally." >&5 21689$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21690Usually this means the macro was only invoked conditionally." >&2;} 21691 { (exit 1); exit 1; }; } 21692fi 21693if test -z "${USE_MSVC_TRUE}" && test -z "${USE_MSVC_FALSE}"; then 21694 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_MSVC\" was never defined. 21695Usually this means the macro was only invoked conditionally." >&5 21696$as_echo "$as_me: error: conditional \"USE_MSVC\" was never defined. 21697Usually this means the macro was only invoked conditionally." >&2;} 21698 { (exit 1); exit 1; }; } 21699fi 21700if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 21701 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined. 21702Usually this means the macro was only invoked conditionally." >&5 21703$as_echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined. 21704Usually this means the macro was only invoked conditionally." >&2;} 21705 { (exit 1); exit 1; }; } 21706fi 21707if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 21708 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DOT\" was never defined. 21709Usually this means the macro was only invoked conditionally." >&5 21710$as_echo "$as_me: error: conditional \"HAVE_DOT\" was never defined. 21711Usually this means the macro was only invoked conditionally." >&2;} 21712 { (exit 1); exit 1; }; } 21713fi 21714if test -z "${HAVE_LATEX_TRUE}" && test -z "${HAVE_LATEX_FALSE}"; then 21715 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LATEX\" was never defined. 21716Usually this means the macro was only invoked conditionally." >&5 21717$as_echo "$as_me: error: conditional \"HAVE_LATEX\" was never defined. 21718Usually this means the macro was only invoked conditionally." >&2;} 21719 { (exit 1); exit 1; }; } 21720fi 21721if test -z "${HAVE_DVIPDFM_TRUE}" && test -z "${HAVE_DVIPDFM_FALSE}"; then 21722 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DVIPDFM\" was never defined. 21723Usually this means the macro was only invoked conditionally." >&5 21724$as_echo "$as_me: error: conditional \"HAVE_DVIPDFM\" was never defined. 21725Usually this means the macro was only invoked conditionally." >&2;} 21726 { (exit 1); exit 1; }; } 21727fi 21728if test -z "${OVERLAY_TRUE}" && test -z "${OVERLAY_FALSE}"; then 21729 { { $as_echo "$as_me:$LINENO: error: conditional \"OVERLAY\" was never defined. 21730Usually this means the macro was only invoked conditionally." >&5 21731$as_echo "$as_me: error: conditional \"OVERLAY\" was never defined. 21732Usually this means the macro was only invoked conditionally." >&2;} 21733 { (exit 1); exit 1; }; } 21734fi 21735if test -z "${HAVE_CPPUNIT_TRUE}" && test -z "${HAVE_CPPUNIT_FALSE}"; then 21736 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CPPUNIT\" was never defined. 21737Usually this means the macro was only invoked conditionally." >&5 21738$as_echo "$as_me: error: conditional \"HAVE_CPPUNIT\" was never defined. 21739Usually this means the macro was only invoked conditionally." >&2;} 21740 { (exit 1); exit 1; }; } 21741fi 21742if test -z "${USE_STATIC_TRUE}" && test -z "${USE_STATIC_FALSE}"; then 21743 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_STATIC\" was never defined. 21744Usually this means the macro was only invoked conditionally." >&5 21745$as_echo "$as_me: error: conditional \"USE_STATIC\" was never defined. 21746Usually this means the macro was only invoked conditionally." >&2;} 21747 { (exit 1); exit 1; }; } 21748fi 21749 21750: ${CONFIG_STATUS=./config.status} 21751ac_write_fail=0 21752ac_clean_files_save=$ac_clean_files 21753ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21754{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21755$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21756cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21757#! $SHELL 21758# Generated by $as_me. 21759# Run this file to recreate the current configuration. 21760# Compiler output produced by configure, useful for debugging 21761# configure, is in config.log if it exists. 21762 21763debug=false 21764ac_cs_recheck=false 21765ac_cs_silent=false 21766SHELL=\${CONFIG_SHELL-$SHELL} 21767_ACEOF 21768 21769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21770## --------------------- ## 21771## M4sh Initialization. ## 21772## --------------------- ## 21773 21774# Be more Bourne compatible 21775DUALCASE=1; export DUALCASE # for MKS sh 21776if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21777 emulate sh 21778 NULLCMD=: 21779 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21780 # is contrary to our usage. Disable this feature. 21781 alias -g '${1+"$@"}'='"$@"' 21782 setopt NO_GLOB_SUBST 21783else 21784 case `(set -o) 2>/dev/null` in 21785 *posix*) set -o posix ;; 21786esac 21787 21788fi 21789 21790 21791 21792 21793# PATH needs CR 21794# Avoid depending upon Character Ranges. 21795as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21796as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21797as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21798as_cr_digits='0123456789' 21799as_cr_alnum=$as_cr_Letters$as_cr_digits 21800 21801as_nl=' 21802' 21803export as_nl 21804# Printing a long string crashes Solaris 7 /usr/bin/printf. 21805as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21806as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21807as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21808if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21809 as_echo='printf %s\n' 21810 as_echo_n='printf %s' 21811else 21812 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21813 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21814 as_echo_n='/usr/ucb/echo -n' 21815 else 21816 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21817 as_echo_n_body='eval 21818 arg=$1; 21819 case $arg in 21820 *"$as_nl"*) 21821 expr "X$arg" : "X\\(.*\\)$as_nl"; 21822 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21823 esac; 21824 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21825 ' 21826 export as_echo_n_body 21827 as_echo_n='sh -c $as_echo_n_body as_echo' 21828 fi 21829 export as_echo_body 21830 as_echo='sh -c $as_echo_body as_echo' 21831fi 21832 21833# The user is always right. 21834if test "${PATH_SEPARATOR+set}" != set; then 21835 PATH_SEPARATOR=: 21836 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21837 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21838 PATH_SEPARATOR=';' 21839 } 21840fi 21841 21842# Support unset when possible. 21843if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21844 as_unset=unset 21845else 21846 as_unset=false 21847fi 21848 21849 21850# IFS 21851# We need space, tab and new line, in precisely that order. Quoting is 21852# there to prevent editors from complaining about space-tab. 21853# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21854# splitting by setting IFS to empty value.) 21855IFS=" "" $as_nl" 21856 21857# Find who we are. Look in the path if we contain no directory separator. 21858case $0 in 21859 *[\\/]* ) as_myself=$0 ;; 21860 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21861for as_dir in $PATH 21862do 21863 IFS=$as_save_IFS 21864 test -z "$as_dir" && as_dir=. 21865 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21866done 21867IFS=$as_save_IFS 21868 21869 ;; 21870esac 21871# We did not find ourselves, most probably we were run as `sh COMMAND' 21872# in which case we are not to be found in the path. 21873if test "x$as_myself" = x; then 21874 as_myself=$0 21875fi 21876if test ! -f "$as_myself"; then 21877 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21878 { (exit 1); exit 1; } 21879fi 21880 21881# Work around bugs in pre-3.0 UWIN ksh. 21882for as_var in ENV MAIL MAILPATH 21883do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21884done 21885PS1='$ ' 21886PS2='> ' 21887PS4='+ ' 21888 21889# NLS nuisances. 21890LC_ALL=C 21891export LC_ALL 21892LANGUAGE=C 21893export LANGUAGE 21894 21895# Required to use basename. 21896if expr a : '\(a\)' >/dev/null 2>&1 && 21897 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21898 as_expr=expr 21899else 21900 as_expr=false 21901fi 21902 21903if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21904 as_basename=basename 21905else 21906 as_basename=false 21907fi 21908 21909 21910# Name of the executable. 21911as_me=`$as_basename -- "$0" || 21912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21913 X"$0" : 'X\(//\)$' \| \ 21914 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21915$as_echo X/"$0" | 21916 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21917 s//\1/ 21918 q 21919 } 21920 /^X\/\(\/\/\)$/{ 21921 s//\1/ 21922 q 21923 } 21924 /^X\/\(\/\).*/{ 21925 s//\1/ 21926 q 21927 } 21928 s/.*/./; q'` 21929 21930# CDPATH. 21931$as_unset CDPATH 21932 21933 21934 21935 as_lineno_1=$LINENO 21936 as_lineno_2=$LINENO 21937 test "x$as_lineno_1" != "x$as_lineno_2" && 21938 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21939 21940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21941 # uniformly replaced by the line number. The first 'sed' inserts a 21942 # line-number line after each line using $LINENO; the second 'sed' 21943 # does the real work. The second script uses 'N' to pair each 21944 # line-number line with the line containing $LINENO, and appends 21945 # trailing '-' during substitution so that $LINENO is not a special 21946 # case at line end. 21947 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21948 # scripts with optimization help from Paolo Bonzini. Blame Lee 21949 # E. McMahon (1931-1989) for sed's syntax. :-) 21950 sed -n ' 21951 p 21952 /[$]LINENO/= 21953 ' <$as_myself | 21954 sed ' 21955 s/[$]LINENO.*/&-/ 21956 t lineno 21957 b 21958 :lineno 21959 N 21960 :loop 21961 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21962 t loop 21963 s/-\n.*// 21964 ' >$as_me.lineno && 21965 chmod +x "$as_me.lineno" || 21966 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21967 { (exit 1); exit 1; }; } 21968 21969 # Don't try to exec as it changes $[0], causing all sort of problems 21970 # (the dirname of $[0] is not the place where we might find the 21971 # original and so on. Autoconf is especially sensitive to this). 21972 . "./$as_me.lineno" 21973 # Exit status is that of the last command. 21974 exit 21975} 21976 21977 21978if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21979 as_dirname=dirname 21980else 21981 as_dirname=false 21982fi 21983 21984ECHO_C= ECHO_N= ECHO_T= 21985case `echo -n x` in 21986-n*) 21987 case `echo 'x\c'` in 21988 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21989 *) ECHO_C='\c';; 21990 esac;; 21991*) 21992 ECHO_N='-n';; 21993esac 21994if expr a : '\(a\)' >/dev/null 2>&1 && 21995 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21996 as_expr=expr 21997else 21998 as_expr=false 21999fi 22000 22001rm -f conf$$ conf$$.exe conf$$.file 22002if test -d conf$$.dir; then 22003 rm -f conf$$.dir/conf$$.file 22004else 22005 rm -f conf$$.dir 22006 mkdir conf$$.dir 2>/dev/null 22007fi 22008if (echo >conf$$.file) 2>/dev/null; then 22009 if ln -s conf$$.file conf$$ 2>/dev/null; then 22010 as_ln_s='ln -s' 22011 # ... but there are two gotchas: 22012 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22013 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22014 # In both cases, we have to default to `cp -p'. 22015 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22016 as_ln_s='cp -p' 22017 elif ln conf$$.file conf$$ 2>/dev/null; then 22018 as_ln_s=ln 22019 else 22020 as_ln_s='cp -p' 22021 fi 22022else 22023 as_ln_s='cp -p' 22024fi 22025rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22026rmdir conf$$.dir 2>/dev/null 22027 22028if mkdir -p . 2>/dev/null; then 22029 as_mkdir_p=: 22030else 22031 test -d ./-p && rmdir ./-p 22032 as_mkdir_p=false 22033fi 22034 22035if test -x / >/dev/null 2>&1; then 22036 as_test_x='test -x' 22037else 22038 if ls -dL / >/dev/null 2>&1; then 22039 as_ls_L_option=L 22040 else 22041 as_ls_L_option= 22042 fi 22043 as_test_x=' 22044 eval sh -c '\'' 22045 if test -d "$1"; then 22046 test -d "$1/."; 22047 else 22048 case $1 in 22049 -*)set "./$1";; 22050 esac; 22051 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22052 ???[sx]*):;;*)false;;esac;fi 22053 '\'' sh 22054 ' 22055fi 22056as_executable_p=$as_test_x 22057 22058# Sed expression to map a string onto a valid CPP name. 22059as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22060 22061# Sed expression to map a string onto a valid variable name. 22062as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22063 22064 22065exec 6>&1 22066 22067# Save the log message, to keep $[0] and so on meaningful, and to 22068# report actual input values of CONFIG_FILES etc. instead of their 22069# values after options handling. 22070ac_log=" 22071This file was extended by $as_me, which was 22072generated by GNU Autoconf 2.63. Invocation command line was 22073 22074 CONFIG_FILES = $CONFIG_FILES 22075 CONFIG_HEADERS = $CONFIG_HEADERS 22076 CONFIG_LINKS = $CONFIG_LINKS 22077 CONFIG_COMMANDS = $CONFIG_COMMANDS 22078 $ $0 $@ 22079 22080on `(hostname || uname -n) 2>/dev/null | sed 1q` 22081" 22082 22083_ACEOF 22084 22085case $ac_config_files in *" 22086"*) set x $ac_config_files; shift; ac_config_files=$*;; 22087esac 22088 22089 22090 22091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22092# Files that config.status was made for. 22093config_files="$ac_config_files" 22094config_commands="$ac_config_commands" 22095 22096_ACEOF 22097 22098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22099ac_cs_usage="\ 22100\`$as_me' instantiates files from templates according to the 22101current configuration. 22102 22103Usage: $0 [OPTION]... [FILE]... 22104 22105 -h, --help print this help, then exit 22106 -V, --version print version number and configuration settings, then exit 22107 -q, --quiet, --silent 22108 do not print progress messages 22109 -d, --debug don't remove temporary files 22110 --recheck update $as_me by reconfiguring in the same conditions 22111 --file=FILE[:TEMPLATE] 22112 instantiate the configuration file FILE 22113 22114Configuration files: 22115$config_files 22116 22117Configuration commands: 22118$config_commands 22119 22120Report bugs to <bug-autoconf@gnu.org>." 22121 22122_ACEOF 22123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22124ac_cs_version="\\ 22125config.status 22126configured by $0, generated by GNU Autoconf 2.63, 22127 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22128 22129Copyright (C) 2008 Free Software Foundation, Inc. 22130This config.status script is free software; the Free Software Foundation 22131gives unlimited permission to copy, distribute and modify it." 22132 22133ac_pwd='$ac_pwd' 22134srcdir='$srcdir' 22135INSTALL='$INSTALL' 22136MKDIR_P='$MKDIR_P' 22137AWK='$AWK' 22138test -n "\$AWK" || AWK=awk 22139_ACEOF 22140 22141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22142# The default lists apply if the user does not specify any file. 22143ac_need_defaults=: 22144while test $# != 0 22145do 22146 case $1 in 22147 --*=*) 22148 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22150 ac_shift=: 22151 ;; 22152 *) 22153 ac_option=$1 22154 ac_optarg=$2 22155 ac_shift=shift 22156 ;; 22157 esac 22158 22159 case $ac_option in 22160 # Handling of the options. 22161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22162 ac_cs_recheck=: ;; 22163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22164 $as_echo "$ac_cs_version"; exit ;; 22165 --debug | --debu | --deb | --de | --d | -d ) 22166 debug=: ;; 22167 --file | --fil | --fi | --f ) 22168 $ac_shift 22169 case $ac_optarg in 22170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22171 esac 22172 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 22173 ac_need_defaults=false;; 22174 --he | --h | --help | --hel | -h ) 22175 $as_echo "$ac_cs_usage"; exit ;; 22176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22177 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22178 ac_cs_silent=: ;; 22179 22180 # This is an error. 22181 -*) { $as_echo "$as_me: error: unrecognized option: $1 22182Try \`$0 --help' for more information." >&2 22183 { (exit 1); exit 1; }; } ;; 22184 22185 *) ac_config_targets="$ac_config_targets $1" 22186 ac_need_defaults=false ;; 22187 22188 esac 22189 shift 22190done 22191 22192ac_configure_extra_args= 22193 22194if $ac_cs_silent; then 22195 exec 6>/dev/null 22196 ac_configure_extra_args="$ac_configure_extra_args --silent" 22197fi 22198 22199_ACEOF 22200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22201if \$ac_cs_recheck; then 22202 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22203 shift 22204 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22205 CONFIG_SHELL='$SHELL' 22206 export CONFIG_SHELL 22207 exec "\$@" 22208fi 22209 22210_ACEOF 22211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22212exec 5>>config.log 22213{ 22214 echo 22215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22216## Running $as_me. ## 22217_ASBOX 22218 $as_echo "$ac_log" 22219} >&5 22220 22221_ACEOF 22222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22223# 22224# INIT-COMMANDS 22225# 22226AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22227 22228 22229# The HP-UX ksh and POSIX shell print the target directory to stdout 22230# if CDPATH is set. 22231(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22232 22233sed_quote_subst='$sed_quote_subst' 22234double_quote_subst='$double_quote_subst' 22235delay_variable_subst='$delay_variable_subst' 22236AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 22237DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 22238OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 22239macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 22240macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 22241enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 22242enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 22243pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 22244enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 22245host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 22246host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 22247host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 22248build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 22249build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 22250build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 22251SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 22252Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 22253GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 22254EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 22255FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 22256LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 22257NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 22258LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 22259max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 22260ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 22261exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 22262lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 22263lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 22264lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 22265reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 22266reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22267deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 22268file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 22269AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 22270AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22271STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 22272RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 22273old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22274old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22275old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22276CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 22277CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22278compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 22279GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 22280lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 22281lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 22282lt_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"`' 22283lt_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"`' 22284objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 22285SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 22286ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 22287MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 22288lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 22289lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 22290lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 22291lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 22292lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 22293need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 22294DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 22295NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 22296LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 22297OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 22298OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 22299libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 22300shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22301extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22302archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 22303enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 22304export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22305whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22306compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 22307old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22308old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22309archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22310archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22311module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22312module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22313with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 22314allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22315no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22316hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22317hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 22318hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 22319hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 22320hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 22321hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 22322hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22323hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 22324inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 22325link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 22326fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 22327always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 22328export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22329exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22330include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22331prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22332file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 22333variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 22334need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 22335need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 22336version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 22337runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22338shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22339shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 22340libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22341library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 22342soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22343postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22344postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22345finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22346finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 22347hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 22348sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22349sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22350hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 22351enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 22352enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 22353enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 22354old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 22355striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 22356compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 22357predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22358postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22359predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 22360postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 22361compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 22362LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22363old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22364compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22365GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22366lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22367lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22368lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22369lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22370lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22371archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22372enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22373export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22374whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22375compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22376old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22377old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22378archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22379archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22380module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22381module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22382with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22383allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22384no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22385hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22386hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22387hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22388hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22389hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22390hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22391hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22392hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22393inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22394link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22395fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22396always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22397export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22398exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22399include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22400prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22401file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22402hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22403compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22404predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22405postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22406predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22407postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22408compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22409 22410LTCC='$LTCC' 22411LTCFLAGS='$LTCFLAGS' 22412compiler='$compiler_DEFAULT' 22413 22414# Quote evaled strings. 22415for var in SED \ 22416GREP \ 22417EGREP \ 22418FGREP \ 22419LD \ 22420NM \ 22421LN_S \ 22422lt_SP2NL \ 22423lt_NL2SP \ 22424reload_flag \ 22425deplibs_check_method \ 22426file_magic_cmd \ 22427AR \ 22428AR_FLAGS \ 22429STRIP \ 22430RANLIB \ 22431CC \ 22432CFLAGS \ 22433compiler \ 22434lt_cv_sys_global_symbol_pipe \ 22435lt_cv_sys_global_symbol_to_cdecl \ 22436lt_cv_sys_global_symbol_to_c_name_address \ 22437lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22438SHELL \ 22439ECHO \ 22440lt_prog_compiler_no_builtin_flag \ 22441lt_prog_compiler_wl \ 22442lt_prog_compiler_pic \ 22443lt_prog_compiler_static \ 22444lt_cv_prog_compiler_c_o \ 22445need_locks \ 22446DSYMUTIL \ 22447NMEDIT \ 22448LIPO \ 22449OTOOL \ 22450OTOOL64 \ 22451shrext_cmds \ 22452export_dynamic_flag_spec \ 22453whole_archive_flag_spec \ 22454compiler_needs_object \ 22455with_gnu_ld \ 22456allow_undefined_flag \ 22457no_undefined_flag \ 22458hardcode_libdir_flag_spec \ 22459hardcode_libdir_flag_spec_ld \ 22460hardcode_libdir_separator \ 22461fix_srcfile_path \ 22462exclude_expsyms \ 22463include_expsyms \ 22464file_list_spec \ 22465variables_saved_for_relink \ 22466libname_spec \ 22467library_names_spec \ 22468soname_spec \ 22469finish_eval \ 22470old_striplib \ 22471striplib \ 22472compiler_lib_search_dirs \ 22473predep_objects \ 22474postdep_objects \ 22475predeps \ 22476postdeps \ 22477compiler_lib_search_path \ 22478LD_CXX \ 22479compiler_CXX \ 22480lt_prog_compiler_no_builtin_flag_CXX \ 22481lt_prog_compiler_wl_CXX \ 22482lt_prog_compiler_pic_CXX \ 22483lt_prog_compiler_static_CXX \ 22484lt_cv_prog_compiler_c_o_CXX \ 22485export_dynamic_flag_spec_CXX \ 22486whole_archive_flag_spec_CXX \ 22487compiler_needs_object_CXX \ 22488with_gnu_ld_CXX \ 22489allow_undefined_flag_CXX \ 22490no_undefined_flag_CXX \ 22491hardcode_libdir_flag_spec_CXX \ 22492hardcode_libdir_flag_spec_ld_CXX \ 22493hardcode_libdir_separator_CXX \ 22494fix_srcfile_path_CXX \ 22495exclude_expsyms_CXX \ 22496include_expsyms_CXX \ 22497file_list_spec_CXX \ 22498compiler_lib_search_dirs_CXX \ 22499predep_objects_CXX \ 22500postdep_objects_CXX \ 22501predeps_CXX \ 22502postdeps_CXX \ 22503compiler_lib_search_path_CXX; do 22504 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22505 *[\\\\\\\`\\"\\\$]*) 22506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22507 ;; 22508 *) 22509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22510 ;; 22511 esac 22512done 22513 22514# Double-quote double-evaled strings. 22515for var in reload_cmds \ 22516old_postinstall_cmds \ 22517old_postuninstall_cmds \ 22518old_archive_cmds \ 22519extract_expsyms_cmds \ 22520old_archive_from_new_cmds \ 22521old_archive_from_expsyms_cmds \ 22522archive_cmds \ 22523archive_expsym_cmds \ 22524module_cmds \ 22525module_expsym_cmds \ 22526export_symbols_cmds \ 22527prelink_cmds \ 22528postinstall_cmds \ 22529postuninstall_cmds \ 22530finish_cmds \ 22531sys_lib_search_path_spec \ 22532sys_lib_dlsearch_path_spec \ 22533old_archive_cmds_CXX \ 22534old_archive_from_new_cmds_CXX \ 22535old_archive_from_expsyms_cmds_CXX \ 22536archive_cmds_CXX \ 22537archive_expsym_cmds_CXX \ 22538module_cmds_CXX \ 22539module_expsym_cmds_CXX \ 22540export_symbols_cmds_CXX \ 22541prelink_cmds_CXX; do 22542 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22543 *[\\\\\\\`\\"\\\$]*) 22544 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22545 ;; 22546 *) 22547 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22548 ;; 22549 esac 22550done 22551 22552# Fix-up fallback echo if it was mangled by the above quoting rules. 22553case \$lt_ECHO in 22554*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 22555 ;; 22556esac 22557 22558ac_aux_dir='$ac_aux_dir' 22559xsi_shell='$xsi_shell' 22560lt_shell_append='$lt_shell_append' 22561 22562# See if we are running on zsh, and set the options which allow our 22563# commands through without removal of \ escapes INIT. 22564if test -n "\${ZSH_VERSION+set}" ; then 22565 setopt NO_GLOB_SUBST 22566fi 22567 22568 22569 PACKAGE='$PACKAGE' 22570 VERSION='$VERSION' 22571 TIMESTAMP='$TIMESTAMP' 22572 RM='$RM' 22573 ofile='$ofile' 22574 22575 22576 22577 22578 22579# variables for create stdint.h replacement 22580PACKAGE="$PACKAGE" 22581VERSION="$VERSION" 22582ac_stdint_h="$ac_stdint_h" 22583_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` 22584ac_cv_stdint_message="$ac_cv_stdint_message" 22585ac_cv_header_stdint_t="$ac_cv_header_stdint_t" 22586ac_cv_header_stdint_x="$ac_cv_header_stdint_x" 22587ac_cv_header_stdint_o="$ac_cv_header_stdint_o" 22588ac_cv_header_stdint_u="$ac_cv_header_stdint_u" 22589ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 22590ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 22591ac_cv_char_data_model="$ac_cv_char_data_model" 22592ac_cv_long_data_model="$ac_cv_long_data_model" 22593ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 22594ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 22595ac_cv_type_intmax_t="$ac_cv_type_intmax_t" 22596 22597 22598_ACEOF 22599 22600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22601 22602# Handling of arguments. 22603for ac_config_target in $ac_config_targets 22604do 22605 case $ac_config_target in 22606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22607 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22608 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;; 22609 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;; 22610 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22611 "tests/at_wrap") CONFIG_FILES="$CONFIG_FILES tests/at_wrap" ;; 22612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22613 "dirac.pc") CONFIG_FILES="$CONFIG_FILES dirac.pc" ;; 22614 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22615 "libdirac_byteio/Makefile") CONFIG_FILES="$CONFIG_FILES libdirac_byteio/Makefile" ;; 22616 "libdirac_common/Makefile") CONFIG_FILES="$CONFIG_FILES libdirac_common/Makefile" ;; 22617 "libdirac_motionest/Makefile") CONFIG_FILES="$CONFIG_FILES libdirac_motionest/Makefile" ;; 22618 "libdirac_encoder/Makefile") CONFIG_FILES="$CONFIG_FILES libdirac_encoder/Makefile" ;; 22619 "libdirac_decoder/Makefile") CONFIG_FILES="$CONFIG_FILES libdirac_decoder/Makefile" ;; 22620 "encoder/Makefile") CONFIG_FILES="$CONFIG_FILES encoder/Makefile" ;; 22621 "decoder/Makefile") CONFIG_FILES="$CONFIG_FILES decoder/Makefile" ;; 22622 "unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit_tests/Makefile" ;; 22623 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 22624 "util/conversion/Makefile") CONFIG_FILES="$CONFIG_FILES util/conversion/Makefile" ;; 22625 "util/conversion/common/Makefile") CONFIG_FILES="$CONFIG_FILES util/conversion/common/Makefile" ;; 22626 "util/instrumentation/Makefile") CONFIG_FILES="$CONFIG_FILES util/instrumentation/Makefile" ;; 22627 "util/instrumentation/libdirac_instrument/Makefile") CONFIG_FILES="$CONFIG_FILES util/instrumentation/libdirac_instrument/Makefile" ;; 22628 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;; 22629 "win32/VisualStudio/Makefile") CONFIG_FILES="$CONFIG_FILES win32/VisualStudio/Makefile" ;; 22630 22631 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22632$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22633 { (exit 1); exit 1; }; };; 22634 esac 22635done 22636 22637 22638# If the user did not use the arguments to specify the items to instantiate, 22639# then the envvar interface is used. Set only those that are not. 22640# We use the long form for the default assignment because of an extremely 22641# bizarre bug on SunOS 4.1.3. 22642if $ac_need_defaults; then 22643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22645fi 22646 22647# Have a temporary directory for convenience. Make it in the build tree 22648# simply because there is no reason against having it here, and in addition, 22649# creating and moving files from /tmp can sometimes cause problems. 22650# Hook for its removal unless debugging. 22651# Note that there is a small window in which the directory will not be cleaned: 22652# after its creation but before its name has been assigned to `$tmp'. 22653$debug || 22654{ 22655 tmp= 22656 trap 'exit_status=$? 22657 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22658' 0 22659 trap '{ (exit 1); exit 1; }' 1 2 13 15 22660} 22661# Create a (secure) tmp directory for tmp files. 22662 22663{ 22664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22665 test -n "$tmp" && test -d "$tmp" 22666} || 22667{ 22668 tmp=./conf$$-$RANDOM 22669 (umask 077 && mkdir "$tmp") 22670} || 22671{ 22672 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22673 { (exit 1); exit 1; } 22674} 22675 22676# Set up the scripts for CONFIG_FILES section. 22677# No need to generate them if there are no CONFIG_FILES. 22678# This happens for instance with `./config.status config.h'. 22679if test -n "$CONFIG_FILES"; then 22680 22681 22682ac_cr=' 22683' 22684ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22685if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22686 ac_cs_awk_cr='\\r' 22687else 22688 ac_cs_awk_cr=$ac_cr 22689fi 22690 22691echo 'BEGIN {' >"$tmp/subs1.awk" && 22692_ACEOF 22693 22694 22695{ 22696 echo "cat >conf$$subs.awk <<_ACEOF" && 22697 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22698 echo "_ACEOF" 22699} >conf$$subs.sh || 22700 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22701$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22702 { (exit 1); exit 1; }; } 22703ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22704ac_delim='%!_!# ' 22705for ac_last_try in false false false false false :; do 22706 . ./conf$$subs.sh || 22707 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22708$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22709 { (exit 1); exit 1; }; } 22710 22711 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22712 if test $ac_delim_n = $ac_delim_num; then 22713 break 22714 elif $ac_last_try; then 22715 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22716$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22717 { (exit 1); exit 1; }; } 22718 else 22719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22720 fi 22721done 22722rm -f conf$$subs.sh 22723 22724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22725cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22726_ACEOF 22727sed -n ' 22728h 22729s/^/S["/; s/!.*/"]=/ 22730p 22731g 22732s/^[^!]*!// 22733:repl 22734t repl 22735s/'"$ac_delim"'$// 22736t delim 22737:nl 22738h 22739s/\(.\{148\}\).*/\1/ 22740t more1 22741s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22742p 22743n 22744b repl 22745:more1 22746s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22747p 22748g 22749s/.\{148\}// 22750t nl 22751:delim 22752h 22753s/\(.\{148\}\).*/\1/ 22754t more2 22755s/["\\]/\\&/g; s/^/"/; s/$/"/ 22756p 22757b 22758:more2 22759s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22760p 22761g 22762s/.\{148\}// 22763t delim 22764' <conf$$subs.awk | sed ' 22765/^[^""]/{ 22766 N 22767 s/\n// 22768} 22769' >>$CONFIG_STATUS || ac_write_fail=1 22770rm -f conf$$subs.awk 22771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22772_ACAWK 22773cat >>"\$tmp/subs1.awk" <<_ACAWK && 22774 for (key in S) S_is_set[key] = 1 22775 FS = "" 22776 22777} 22778{ 22779 line = $ 0 22780 nfields = split(line, field, "@") 22781 substed = 0 22782 len = length(field[1]) 22783 for (i = 2; i < nfields; i++) { 22784 key = field[i] 22785 keylen = length(key) 22786 if (S_is_set[key]) { 22787 value = S[key] 22788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22789 len += length(value) + length(field[++i]) 22790 substed = 1 22791 } else 22792 len += 1 + keylen 22793 } 22794 22795 print line 22796} 22797 22798_ACAWK 22799_ACEOF 22800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22801if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22802 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22803else 22804 cat 22805fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22806 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22807$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22808 { (exit 1); exit 1; }; } 22809_ACEOF 22810 22811# VPATH may cause trouble with some makes, so we remove $(srcdir), 22812# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22813# trailing colons and then remove the whole line if VPATH becomes empty 22814# (actually we leave an empty line to preserve line numbers). 22815if test "x$srcdir" = x.; then 22816 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22817s/:*\$(srcdir):*/:/ 22818s/:*\${srcdir}:*/:/ 22819s/:*@srcdir@:*/:/ 22820s/^\([^=]*=[ ]*\):*/\1/ 22821s/:*$// 22822s/^[^=]*=[ ]*$// 22823}' 22824fi 22825 22826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22827fi # test -n "$CONFIG_FILES" 22828 22829 22830eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 22831shift 22832for ac_tag 22833do 22834 case $ac_tag in 22835 :[FHLC]) ac_mode=$ac_tag; continue;; 22836 esac 22837 case $ac_mode$ac_tag in 22838 :[FHL]*:*);; 22839 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22840$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22841 { (exit 1); exit 1; }; };; 22842 :[FH]-) ac_tag=-:-;; 22843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22844 esac 22845 ac_save_IFS=$IFS 22846 IFS=: 22847 set x $ac_tag 22848 IFS=$ac_save_IFS 22849 shift 22850 ac_file=$1 22851 shift 22852 22853 case $ac_mode in 22854 :L) ac_source=$1;; 22855 :[FH]) 22856 ac_file_inputs= 22857 for ac_f 22858 do 22859 case $ac_f in 22860 -) ac_f="$tmp/stdin";; 22861 *) # Look for the file first in the build tree, then in the source tree 22862 # (if the path is not absolute). The absolute path cannot be DOS-style, 22863 # because $ac_f cannot contain `:'. 22864 test -f "$ac_f" || 22865 case $ac_f in 22866 [\\/$]*) false;; 22867 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22868 esac || 22869 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22870$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22871 { (exit 1); exit 1; }; };; 22872 esac 22873 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22874 ac_file_inputs="$ac_file_inputs '$ac_f'" 22875 done 22876 22877 # Let's still pretend it is `configure' which instantiates (i.e., don't 22878 # use $as_me), people would be surprised to read: 22879 # /* config.h. Generated by config.status. */ 22880 configure_input='Generated from '` 22881 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22882 `' by configure.' 22883 if test x"$ac_file" != x-; then 22884 configure_input="$ac_file. $configure_input" 22885 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22886$as_echo "$as_me: creating $ac_file" >&6;} 22887 fi 22888 # Neutralize special characters interpreted by sed in replacement strings. 22889 case $configure_input in #( 22890 *\&* | *\|* | *\\* ) 22891 ac_sed_conf_input=`$as_echo "$configure_input" | 22892 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22893 *) ac_sed_conf_input=$configure_input;; 22894 esac 22895 22896 case $ac_tag in 22897 *:-:* | *:-) cat >"$tmp/stdin" \ 22898 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22899$as_echo "$as_me: error: could not create $ac_file" >&2;} 22900 { (exit 1); exit 1; }; } ;; 22901 esac 22902 ;; 22903 esac 22904 22905 ac_dir=`$as_dirname -- "$ac_file" || 22906$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22907 X"$ac_file" : 'X\(//\)[^/]' \| \ 22908 X"$ac_file" : 'X\(//\)$' \| \ 22909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22910$as_echo X"$ac_file" | 22911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22912 s//\1/ 22913 q 22914 } 22915 /^X\(\/\/\)[^/].*/{ 22916 s//\1/ 22917 q 22918 } 22919 /^X\(\/\/\)$/{ 22920 s//\1/ 22921 q 22922 } 22923 /^X\(\/\).*/{ 22924 s//\1/ 22925 q 22926 } 22927 s/.*/./; q'` 22928 { as_dir="$ac_dir" 22929 case $as_dir in #( 22930 -*) as_dir=./$as_dir;; 22931 esac 22932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22933 as_dirs= 22934 while :; do 22935 case $as_dir in #( 22936 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22937 *) as_qdir=$as_dir;; 22938 esac 22939 as_dirs="'$as_qdir' $as_dirs" 22940 as_dir=`$as_dirname -- "$as_dir" || 22941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22942 X"$as_dir" : 'X\(//\)[^/]' \| \ 22943 X"$as_dir" : 'X\(//\)$' \| \ 22944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22945$as_echo X"$as_dir" | 22946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22947 s//\1/ 22948 q 22949 } 22950 /^X\(\/\/\)[^/].*/{ 22951 s//\1/ 22952 q 22953 } 22954 /^X\(\/\/\)$/{ 22955 s//\1/ 22956 q 22957 } 22958 /^X\(\/\).*/{ 22959 s//\1/ 22960 q 22961 } 22962 s/.*/./; q'` 22963 test -d "$as_dir" && break 22964 done 22965 test -z "$as_dirs" || eval "mkdir $as_dirs" 22966 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22967$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22968 { (exit 1); exit 1; }; }; } 22969 ac_builddir=. 22970 22971case "$ac_dir" in 22972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22973*) 22974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22975 # A ".." for each directory in $ac_dir_suffix. 22976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22977 case $ac_top_builddir_sub in 22978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22980 esac ;; 22981esac 22982ac_abs_top_builddir=$ac_pwd 22983ac_abs_builddir=$ac_pwd$ac_dir_suffix 22984# for backward compatibility: 22985ac_top_builddir=$ac_top_build_prefix 22986 22987case $srcdir in 22988 .) # We are building in place. 22989 ac_srcdir=. 22990 ac_top_srcdir=$ac_top_builddir_sub 22991 ac_abs_top_srcdir=$ac_pwd ;; 22992 [\\/]* | ?:[\\/]* ) # Absolute name. 22993 ac_srcdir=$srcdir$ac_dir_suffix; 22994 ac_top_srcdir=$srcdir 22995 ac_abs_top_srcdir=$srcdir ;; 22996 *) # Relative name. 22997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22998 ac_top_srcdir=$ac_top_build_prefix$srcdir 22999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23000esac 23001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23002 23003 23004 case $ac_mode in 23005 :F) 23006 # 23007 # CONFIG_FILE 23008 # 23009 23010 case $INSTALL in 23011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23013 esac 23014 ac_MKDIR_P=$MKDIR_P 23015 case $MKDIR_P in 23016 [\\/$]* | ?:[\\/]* ) ;; 23017 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23018 esac 23019_ACEOF 23020 23021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23022# If the template does not know about datarootdir, expand it. 23023# FIXME: This hack should be removed a few years after 2.60. 23024ac_datarootdir_hack=; ac_datarootdir_seen= 23025 23026ac_sed_dataroot=' 23027/datarootdir/ { 23028 p 23029 q 23030} 23031/@datadir@/p 23032/@docdir@/p 23033/@infodir@/p 23034/@localedir@/p 23035/@mandir@/p 23036' 23037case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23038*datarootdir*) ac_datarootdir_seen=yes;; 23039*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23040 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23041$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23042_ACEOF 23043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23044 ac_datarootdir_hack=' 23045 s&@datadir@&$datadir&g 23046 s&@docdir@&$docdir&g 23047 s&@infodir@&$infodir&g 23048 s&@localedir@&$localedir&g 23049 s&@mandir@&$mandir&g 23050 s&\\\${datarootdir}&$datarootdir&g' ;; 23051esac 23052_ACEOF 23053 23054# Neutralize VPATH when `$srcdir' = `.'. 23055# Shell code in configure.ac might set extrasub. 23056# FIXME: do we really want to maintain this feature? 23057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23058ac_sed_extra="$ac_vpsub 23059$extrasub 23060_ACEOF 23061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23062:t 23063/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23064s|@configure_input@|$ac_sed_conf_input|;t t 23065s&@top_builddir@&$ac_top_builddir_sub&;t t 23066s&@top_build_prefix@&$ac_top_build_prefix&;t t 23067s&@srcdir@&$ac_srcdir&;t t 23068s&@abs_srcdir@&$ac_abs_srcdir&;t t 23069s&@top_srcdir@&$ac_top_srcdir&;t t 23070s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23071s&@builddir@&$ac_builddir&;t t 23072s&@abs_builddir@&$ac_abs_builddir&;t t 23073s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23074s&@INSTALL@&$ac_INSTALL&;t t 23075s&@MKDIR_P@&$ac_MKDIR_P&;t t 23076$ac_datarootdir_hack 23077" 23078eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 23079 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23080$as_echo "$as_me: error: could not create $ac_file" >&2;} 23081 { (exit 1); exit 1; }; } 23082 23083test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23084 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23086 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23087which seems to be undefined. Please make sure it is defined." >&5 23088$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23089which seems to be undefined. Please make sure it is defined." >&2;} 23090 23091 rm -f "$tmp/stdin" 23092 case $ac_file in 23093 -) cat "$tmp/out" && rm -f "$tmp/out";; 23094 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 23095 esac \ 23096 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23097$as_echo "$as_me: error: could not create $ac_file" >&2;} 23098 { (exit 1); exit 1; }; } 23099 ;; 23100 23101 23102 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 23103$as_echo "$as_me: executing $ac_file commands" >&6;} 23104 ;; 23105 esac 23106 23107 23108 case $ac_file$ac_mode in 23109 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23110 # Strip MF so we end up with the name of the file. 23111 mf=`echo "$mf" | sed -e 's/:.*$//'` 23112 # Check whether this is an Automake generated Makefile or not. 23113 # We used to match only the files named `Makefile.in', but 23114 # some people rename them; so instead we look at the file content. 23115 # Grep'ing the first line is not enough: some people post-process 23116 # each Makefile.in and add a new line on top of each file to say so. 23117 # Grep'ing the whole file is not good either: AIX grep has a line 23118 # limit of 2048, but all sed's we know have understand at least 4000. 23119 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23120 dirpart=`$as_dirname -- "$mf" || 23121$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23122 X"$mf" : 'X\(//\)[^/]' \| \ 23123 X"$mf" : 'X\(//\)$' \| \ 23124 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23125$as_echo X"$mf" | 23126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23127 s//\1/ 23128 q 23129 } 23130 /^X\(\/\/\)[^/].*/{ 23131 s//\1/ 23132 q 23133 } 23134 /^X\(\/\/\)$/{ 23135 s//\1/ 23136 q 23137 } 23138 /^X\(\/\).*/{ 23139 s//\1/ 23140 q 23141 } 23142 s/.*/./; q'` 23143 else 23144 continue 23145 fi 23146 # Extract the definition of DEPDIR, am__include, and am__quote 23147 # from the Makefile without running `make'. 23148 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23149 test -z "$DEPDIR" && continue 23150 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23151 test -z "am__include" && continue 23152 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23153 # When using ansi2knr, U may be empty or an underscore; expand it 23154 U=`sed -n 's/^U = //p' < "$mf"` 23155 # Find all dependency output files, they are included files with 23156 # $(DEPDIR) in their names. We invoke sed twice because it is the 23157 # simplest approach to changing $(DEPDIR) to its actual value in the 23158 # expansion. 23159 for file in `sed -n " 23160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23162 # Make sure the directory exists. 23163 test -f "$dirpart/$file" && continue 23164 fdir=`$as_dirname -- "$file" || 23165$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23166 X"$file" : 'X\(//\)[^/]' \| \ 23167 X"$file" : 'X\(//\)$' \| \ 23168 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23169$as_echo X"$file" | 23170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23171 s//\1/ 23172 q 23173 } 23174 /^X\(\/\/\)[^/].*/{ 23175 s//\1/ 23176 q 23177 } 23178 /^X\(\/\/\)$/{ 23179 s//\1/ 23180 q 23181 } 23182 /^X\(\/\).*/{ 23183 s//\1/ 23184 q 23185 } 23186 s/.*/./; q'` 23187 { as_dir=$dirpart/$fdir 23188 case $as_dir in #( 23189 -*) as_dir=./$as_dir;; 23190 esac 23191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23192 as_dirs= 23193 while :; do 23194 case $as_dir in #( 23195 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23196 *) as_qdir=$as_dir;; 23197 esac 23198 as_dirs="'$as_qdir' $as_dirs" 23199 as_dir=`$as_dirname -- "$as_dir" || 23200$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23201 X"$as_dir" : 'X\(//\)[^/]' \| \ 23202 X"$as_dir" : 'X\(//\)$' \| \ 23203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23204$as_echo X"$as_dir" | 23205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23206 s//\1/ 23207 q 23208 } 23209 /^X\(\/\/\)[^/].*/{ 23210 s//\1/ 23211 q 23212 } 23213 /^X\(\/\/\)$/{ 23214 s//\1/ 23215 q 23216 } 23217 /^X\(\/\).*/{ 23218 s//\1/ 23219 q 23220 } 23221 s/.*/./; q'` 23222 test -d "$as_dir" && break 23223 done 23224 test -z "$as_dirs" || eval "mkdir $as_dirs" 23225 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23226$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23227 { (exit 1); exit 1; }; }; } 23228 # echo "creating $dirpart/$file" 23229 echo '# dummy' > "$dirpart/$file" 23230 done 23231done 23232 ;; 23233 "libtool":C) 23234 23235 # See if we are running on zsh, and set the options which allow our 23236 # commands through without removal of \ escapes. 23237 if test -n "${ZSH_VERSION+set}" ; then 23238 setopt NO_GLOB_SUBST 23239 fi 23240 23241 cfgfile="${ofile}T" 23242 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23243 $RM "$cfgfile" 23244 23245 cat <<_LT_EOF >> "$cfgfile" 23246#! $SHELL 23247 23248# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 23249# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 23250# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23251# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23252# 23253# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 23254# 2006, 2007, 2008 Free Software Foundation, Inc. 23255# Written by Gordon Matzigkeit, 1996 23256# 23257# This file is part of GNU Libtool. 23258# 23259# GNU Libtool is free software; you can redistribute it and/or 23260# modify it under the terms of the GNU General Public License as 23261# published by the Free Software Foundation; either version 2 of 23262# the License, or (at your option) any later version. 23263# 23264# As a special exception to the GNU General Public License, 23265# if you distribute this file as part of a program or library that 23266# is built using GNU Libtool, you may include this file under the 23267# same distribution terms that you use for the rest of that program. 23268# 23269# GNU Libtool is distributed in the hope that it will be useful, 23270# but WITHOUT ANY WARRANTY; without even the implied warranty of 23271# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23272# GNU General Public License for more details. 23273# 23274# You should have received a copy of the GNU General Public License 23275# along with GNU Libtool; see the file COPYING. If not, a copy 23276# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 23277# obtained by writing to the Free Software Foundation, Inc., 23278# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23279 23280 23281# The names of the tagged configurations supported by this script. 23282available_tags="CXX " 23283 23284# ### BEGIN LIBTOOL CONFIG 23285 23286# Assembler program. 23287AS=$AS 23288 23289# DLL creation program. 23290DLLTOOL=$DLLTOOL 23291 23292# Object dumper program. 23293OBJDUMP=$OBJDUMP 23294 23295# Which release of libtool.m4 was used? 23296macro_version=$macro_version 23297macro_revision=$macro_revision 23298 23299# Whether or not to build shared libraries. 23300build_libtool_libs=$enable_shared 23301 23302# Whether or not to build static libraries. 23303build_old_libs=$enable_static 23304 23305# What type of objects to build. 23306pic_mode=$pic_mode 23307 23308# Whether or not to optimize for fast installation. 23309fast_install=$enable_fast_install 23310 23311# The host system. 23312host_alias=$host_alias 23313host=$host 23314host_os=$host_os 23315 23316# The build system. 23317build_alias=$build_alias 23318build=$build 23319build_os=$build_os 23320 23321# A sed program that does not truncate output. 23322SED=$lt_SED 23323 23324# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23325Xsed="\$SED -e 1s/^X//" 23326 23327# A grep program that handles long lines. 23328GREP=$lt_GREP 23329 23330# An ERE matcher. 23331EGREP=$lt_EGREP 23332 23333# A literal string matcher. 23334FGREP=$lt_FGREP 23335 23336# A BSD- or MS-compatible name lister. 23337NM=$lt_NM 23338 23339# Whether we need soft or hard links. 23340LN_S=$lt_LN_S 23341 23342# What is the maximum length of a command? 23343max_cmd_len=$max_cmd_len 23344 23345# Object file suffix (normally "o"). 23346objext=$ac_objext 23347 23348# Executable file suffix (normally ""). 23349exeext=$exeext 23350 23351# whether the shell understands "unset". 23352lt_unset=$lt_unset 23353 23354# turn spaces into newlines. 23355SP2NL=$lt_lt_SP2NL 23356 23357# turn newlines into spaces. 23358NL2SP=$lt_lt_NL2SP 23359 23360# How to create reloadable object files. 23361reload_flag=$lt_reload_flag 23362reload_cmds=$lt_reload_cmds 23363 23364# Method to check whether dependent libraries are shared objects. 23365deplibs_check_method=$lt_deplibs_check_method 23366 23367# Command to use when deplibs_check_method == "file_magic". 23368file_magic_cmd=$lt_file_magic_cmd 23369 23370# The archiver. 23371AR=$lt_AR 23372AR_FLAGS=$lt_AR_FLAGS 23373 23374# A symbol stripping program. 23375STRIP=$lt_STRIP 23376 23377# Commands used to install an old-style archive. 23378RANLIB=$lt_RANLIB 23379old_postinstall_cmds=$lt_old_postinstall_cmds 23380old_postuninstall_cmds=$lt_old_postuninstall_cmds 23381 23382# A C compiler. 23383LTCC=$lt_CC 23384 23385# LTCC compiler flags. 23386LTCFLAGS=$lt_CFLAGS 23387 23388# Take the output of nm and produce a listing of raw symbols and C names. 23389global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23390 23391# Transform the output of nm in a proper C declaration. 23392global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23393 23394# Transform the output of nm in a C name address pair. 23395global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23396 23397# Transform the output of nm in a C name address pair when lib prefix is needed. 23398global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23399 23400# The name of the directory that contains temporary libtool files. 23401objdir=$objdir 23402 23403# Shell to use when invoking shell scripts. 23404SHELL=$lt_SHELL 23405 23406# An echo program that does not interpret backslashes. 23407ECHO=$lt_ECHO 23408 23409# Used to examine libraries when file_magic_cmd begins with "file". 23410MAGIC_CMD=$MAGIC_CMD 23411 23412# Must we lock files when doing compilation? 23413need_locks=$lt_need_locks 23414 23415# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23416DSYMUTIL=$lt_DSYMUTIL 23417 23418# Tool to change global to local symbols on Mac OS X. 23419NMEDIT=$lt_NMEDIT 23420 23421# Tool to manipulate fat objects and archives on Mac OS X. 23422LIPO=$lt_LIPO 23423 23424# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23425OTOOL=$lt_OTOOL 23426 23427# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23428OTOOL64=$lt_OTOOL64 23429 23430# Old archive suffix (normally "a"). 23431libext=$libext 23432 23433# Shared library suffix (normally ".so"). 23434shrext_cmds=$lt_shrext_cmds 23435 23436# The commands to extract the exported symbol list from a shared archive. 23437extract_expsyms_cmds=$lt_extract_expsyms_cmds 23438 23439# Variables whose values should be saved in libtool wrapper scripts and 23440# restored at link time. 23441variables_saved_for_relink=$lt_variables_saved_for_relink 23442 23443# Do we need the "lib" prefix for modules? 23444need_lib_prefix=$need_lib_prefix 23445 23446# Do we need a version for libraries? 23447need_version=$need_version 23448 23449# Library versioning type. 23450version_type=$version_type 23451 23452# Shared library runtime path variable. 23453runpath_var=$runpath_var 23454 23455# Shared library path variable. 23456shlibpath_var=$shlibpath_var 23457 23458# Is shlibpath searched before the hard-coded library search path? 23459shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23460 23461# Format of library name prefix. 23462libname_spec=$lt_libname_spec 23463 23464# List of archive names. First name is the real one, the rest are links. 23465# The last name is the one that the linker finds with -lNAME 23466library_names_spec=$lt_library_names_spec 23467 23468# The coded name of the library, if different from the real name. 23469soname_spec=$lt_soname_spec 23470 23471# Command to use after installation of a shared archive. 23472postinstall_cmds=$lt_postinstall_cmds 23473 23474# Command to use after uninstallation of a shared archive. 23475postuninstall_cmds=$lt_postuninstall_cmds 23476 23477# Commands used to finish a libtool library installation in a directory. 23478finish_cmds=$lt_finish_cmds 23479 23480# As "finish_cmds", except a single script fragment to be evaled but 23481# not shown. 23482finish_eval=$lt_finish_eval 23483 23484# Whether we should hardcode library paths into libraries. 23485hardcode_into_libs=$hardcode_into_libs 23486 23487# Compile-time system search path for libraries. 23488sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23489 23490# Run-time system search path for libraries. 23491sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23492 23493# Whether dlopen is supported. 23494dlopen_support=$enable_dlopen 23495 23496# Whether dlopen of programs is supported. 23497dlopen_self=$enable_dlopen_self 23498 23499# Whether dlopen of statically linked programs is supported. 23500dlopen_self_static=$enable_dlopen_self_static 23501 23502# Commands to strip libraries. 23503old_striplib=$lt_old_striplib 23504striplib=$lt_striplib 23505 23506 23507# The linker used to build libraries. 23508LD=$lt_LD 23509 23510# Commands used to build an old-style archive. 23511old_archive_cmds=$lt_old_archive_cmds 23512 23513# A language specific compiler. 23514CC=$lt_compiler 23515 23516# Is the compiler the GNU compiler? 23517with_gcc=$GCC 23518 23519# Compiler flag to turn off builtin functions. 23520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23521 23522# How to pass a linker flag through the compiler. 23523wl=$lt_lt_prog_compiler_wl 23524 23525# Additional compiler flags for building library objects. 23526pic_flag=$lt_lt_prog_compiler_pic 23527 23528# Compiler flag to prevent dynamic linking. 23529link_static_flag=$lt_lt_prog_compiler_static 23530 23531# Does compiler simultaneously support -c and -o options? 23532compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23533 23534# Whether or not to add -lc for building shared libraries. 23535build_libtool_need_lc=$archive_cmds_need_lc 23536 23537# Whether or not to disallow shared libs when runtime libs are static. 23538allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23539 23540# Compiler flag to allow reflexive dlopens. 23541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23542 23543# Compiler flag to generate shared objects directly from archives. 23544whole_archive_flag_spec=$lt_whole_archive_flag_spec 23545 23546# Whether the compiler copes with passing no objects directly. 23547compiler_needs_object=$lt_compiler_needs_object 23548 23549# Create an old-style archive from a shared archive. 23550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23551 23552# Create a temporary old-style archive to link instead of a shared archive. 23553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23554 23555# Commands used to build a shared archive. 23556archive_cmds=$lt_archive_cmds 23557archive_expsym_cmds=$lt_archive_expsym_cmds 23558 23559# Commands used to build a loadable module if different from building 23560# a shared archive. 23561module_cmds=$lt_module_cmds 23562module_expsym_cmds=$lt_module_expsym_cmds 23563 23564# Whether we are building with GNU ld or not. 23565with_gnu_ld=$lt_with_gnu_ld 23566 23567# Flag that allows shared libraries with undefined symbols to be built. 23568allow_undefined_flag=$lt_allow_undefined_flag 23569 23570# Flag that enforces no undefined symbols. 23571no_undefined_flag=$lt_no_undefined_flag 23572 23573# Flag to hardcode \$libdir into a binary during linking. 23574# This must work even if \$libdir does not exist 23575hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23576 23577# If ld is used when linking, flag to hardcode \$libdir into a binary 23578# during linking. This must work even if \$libdir does not exist. 23579hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 23580 23581# Whether we need a single "-rpath" flag with a separated argument. 23582hardcode_libdir_separator=$lt_hardcode_libdir_separator 23583 23584# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23585# DIR into the resulting binary. 23586hardcode_direct=$hardcode_direct 23587 23588# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23589# DIR into the resulting binary and the resulting library dependency is 23590# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23591# library is relocated. 23592hardcode_direct_absolute=$hardcode_direct_absolute 23593 23594# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23595# into the resulting binary. 23596hardcode_minus_L=$hardcode_minus_L 23597 23598# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23599# into the resulting binary. 23600hardcode_shlibpath_var=$hardcode_shlibpath_var 23601 23602# Set to "yes" if building a shared library automatically hardcodes DIR 23603# into the library and all subsequent libraries and executables linked 23604# against it. 23605hardcode_automatic=$hardcode_automatic 23606 23607# Set to yes if linker adds runtime paths of dependent libraries 23608# to runtime path list. 23609inherit_rpath=$inherit_rpath 23610 23611# Whether libtool must link a program against all its dependency libraries. 23612link_all_deplibs=$link_all_deplibs 23613 23614# Fix the shell variable \$srcfile for the compiler. 23615fix_srcfile_path=$lt_fix_srcfile_path 23616 23617# Set to "yes" if exported symbols are required. 23618always_export_symbols=$always_export_symbols 23619 23620# The commands to list exported symbols. 23621export_symbols_cmds=$lt_export_symbols_cmds 23622 23623# Symbols that should not be listed in the preloaded symbols. 23624exclude_expsyms=$lt_exclude_expsyms 23625 23626# Symbols that must always be exported. 23627include_expsyms=$lt_include_expsyms 23628 23629# Commands necessary for linking programs (against libraries) with templates. 23630prelink_cmds=$lt_prelink_cmds 23631 23632# Specify filename containing input files. 23633file_list_spec=$lt_file_list_spec 23634 23635# How to hardcode a shared library path into an executable. 23636hardcode_action=$hardcode_action 23637 23638# The directories searched by this compiler when creating a shared library. 23639compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23640 23641# Dependencies to place before and after the objects being linked to 23642# create a shared library. 23643predep_objects=$lt_predep_objects 23644postdep_objects=$lt_postdep_objects 23645predeps=$lt_predeps 23646postdeps=$lt_postdeps 23647 23648# The library search path used internally by the compiler when linking 23649# a shared library. 23650compiler_lib_search_path=$lt_compiler_lib_search_path 23651 23652# ### END LIBTOOL CONFIG 23653 23654_LT_EOF 23655 23656 case $host_os in 23657 aix3*) 23658 cat <<\_LT_EOF >> "$cfgfile" 23659# AIX sometimes has problems with the GCC collect2 program. For some 23660# reason, if we set the COLLECT_NAMES environment variable, the problems 23661# vanish in a puff of smoke. 23662if test "X${COLLECT_NAMES+set}" != Xset; then 23663 COLLECT_NAMES= 23664 export COLLECT_NAMES 23665fi 23666_LT_EOF 23667 ;; 23668 esac 23669 23670 23671ltmain="$ac_aux_dir/ltmain.sh" 23672 23673 23674 # We use sed instead of cat because bash on DJGPP gets confused if 23675 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23676 # text mode, it properly converts lines to CR/LF. This bash problem 23677 # is reportedly fixed, but why not run on old versions too? 23678 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 23679 || (rm -f "$cfgfile"; exit 1) 23680 23681 case $xsi_shell in 23682 yes) 23683 cat << \_LT_EOF >> "$cfgfile" 23684 23685# func_dirname file append nondir_replacement 23686# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23687# otherwise set result to NONDIR_REPLACEMENT. 23688func_dirname () 23689{ 23690 case ${1} in 23691 */*) func_dirname_result="${1%/*}${2}" ;; 23692 * ) func_dirname_result="${3}" ;; 23693 esac 23694} 23695 23696# func_basename file 23697func_basename () 23698{ 23699 func_basename_result="${1##*/}" 23700} 23701 23702# func_dirname_and_basename file append nondir_replacement 23703# perform func_basename and func_dirname in a single function 23704# call: 23705# dirname: Compute the dirname of FILE. If nonempty, 23706# add APPEND to the result, otherwise set result 23707# to NONDIR_REPLACEMENT. 23708# value returned in "$func_dirname_result" 23709# basename: Compute filename of FILE. 23710# value retuned in "$func_basename_result" 23711# Implementation must be kept synchronized with func_dirname 23712# and func_basename. For efficiency, we do not delegate to 23713# those functions but instead duplicate the functionality here. 23714func_dirname_and_basename () 23715{ 23716 case ${1} in 23717 */*) func_dirname_result="${1%/*}${2}" ;; 23718 * ) func_dirname_result="${3}" ;; 23719 esac 23720 func_basename_result="${1##*/}" 23721} 23722 23723# func_stripname prefix suffix name 23724# strip PREFIX and SUFFIX off of NAME. 23725# PREFIX and SUFFIX must not contain globbing or regex special 23726# characters, hashes, percent signs, but SUFFIX may contain a leading 23727# dot (in which case that matches only a dot). 23728func_stripname () 23729{ 23730 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 23731 # positional parameters, so assign one to ordinary parameter first. 23732 func_stripname_result=${3} 23733 func_stripname_result=${func_stripname_result#"${1}"} 23734 func_stripname_result=${func_stripname_result%"${2}"} 23735} 23736 23737# func_opt_split 23738func_opt_split () 23739{ 23740 func_opt_split_opt=${1%%=*} 23741 func_opt_split_arg=${1#*=} 23742} 23743 23744# func_lo2o object 23745func_lo2o () 23746{ 23747 case ${1} in 23748 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 23749 *) func_lo2o_result=${1} ;; 23750 esac 23751} 23752 23753# func_xform libobj-or-source 23754func_xform () 23755{ 23756 func_xform_result=${1%.*}.lo 23757} 23758 23759# func_arith arithmetic-term... 23760func_arith () 23761{ 23762 func_arith_result=$(( $* )) 23763} 23764 23765# func_len string 23766# STRING may not start with a hyphen. 23767func_len () 23768{ 23769 func_len_result=${#1} 23770} 23771 23772_LT_EOF 23773 ;; 23774 *) # Bourne compatible functions. 23775 cat << \_LT_EOF >> "$cfgfile" 23776 23777# func_dirname file append nondir_replacement 23778# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23779# otherwise set result to NONDIR_REPLACEMENT. 23780func_dirname () 23781{ 23782 # Extract subdirectory from the argument. 23783 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 23784 if test "X$func_dirname_result" = "X${1}"; then 23785 func_dirname_result="${3}" 23786 else 23787 func_dirname_result="$func_dirname_result${2}" 23788 fi 23789} 23790 23791# func_basename file 23792func_basename () 23793{ 23794 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 23795} 23796 23797 23798# func_stripname prefix suffix name 23799# strip PREFIX and SUFFIX off of NAME. 23800# PREFIX and SUFFIX must not contain globbing or regex special 23801# characters, hashes, percent signs, but SUFFIX may contain a leading 23802# dot (in which case that matches only a dot). 23803# func_strip_suffix prefix name 23804func_stripname () 23805{ 23806 case ${2} in 23807 .*) func_stripname_result=`$ECHO "X${3}" \ 23808 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 23809 *) func_stripname_result=`$ECHO "X${3}" \ 23810 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 23811 esac 23812} 23813 23814# sed scripts: 23815my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 23816my_sed_long_arg='1s/^-[^=]*=//' 23817 23818# func_opt_split 23819func_opt_split () 23820{ 23821 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 23822 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 23823} 23824 23825# func_lo2o object 23826func_lo2o () 23827{ 23828 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 23829} 23830 23831# func_xform libobj-or-source 23832func_xform () 23833{ 23834 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 23835} 23836 23837# func_arith arithmetic-term... 23838func_arith () 23839{ 23840 func_arith_result=`expr "$@"` 23841} 23842 23843# func_len string 23844# STRING may not start with a hyphen. 23845func_len () 23846{ 23847 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 23848} 23849 23850_LT_EOF 23851esac 23852 23853case $lt_shell_append in 23854 yes) 23855 cat << \_LT_EOF >> "$cfgfile" 23856 23857# func_append var value 23858# Append VALUE to the end of shell variable VAR. 23859func_append () 23860{ 23861 eval "$1+=\$2" 23862} 23863_LT_EOF 23864 ;; 23865 *) 23866 cat << \_LT_EOF >> "$cfgfile" 23867 23868# func_append var value 23869# Append VALUE to the end of shell variable VAR. 23870func_append () 23871{ 23872 eval "$1=\$$1\$2" 23873} 23874 23875_LT_EOF 23876 ;; 23877 esac 23878 23879 23880 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 23881 || (rm -f "$cfgfile"; exit 1) 23882 23883 mv -f "$cfgfile" "$ofile" || 23884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23885 chmod +x "$ofile" 23886 23887 23888 cat <<_LT_EOF >> "$ofile" 23889 23890# ### BEGIN LIBTOOL TAG CONFIG: CXX 23891 23892# The linker used to build libraries. 23893LD=$lt_LD_CXX 23894 23895# Commands used to build an old-style archive. 23896old_archive_cmds=$lt_old_archive_cmds_CXX 23897 23898# A language specific compiler. 23899CC=$lt_compiler_CXX 23900 23901# Is the compiler the GNU compiler? 23902with_gcc=$GCC_CXX 23903 23904# Compiler flag to turn off builtin functions. 23905no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23906 23907# How to pass a linker flag through the compiler. 23908wl=$lt_lt_prog_compiler_wl_CXX 23909 23910# Additional compiler flags for building library objects. 23911pic_flag=$lt_lt_prog_compiler_pic_CXX 23912 23913# Compiler flag to prevent dynamic linking. 23914link_static_flag=$lt_lt_prog_compiler_static_CXX 23915 23916# Does compiler simultaneously support -c and -o options? 23917compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23918 23919# Whether or not to add -lc for building shared libraries. 23920build_libtool_need_lc=$archive_cmds_need_lc_CXX 23921 23922# Whether or not to disallow shared libs when runtime libs are static. 23923allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23924 23925# Compiler flag to allow reflexive dlopens. 23926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23927 23928# Compiler flag to generate shared objects directly from archives. 23929whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23930 23931# Whether the compiler copes with passing no objects directly. 23932compiler_needs_object=$lt_compiler_needs_object_CXX 23933 23934# Create an old-style archive from a shared archive. 23935old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23936 23937# Create a temporary old-style archive to link instead of a shared archive. 23938old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23939 23940# Commands used to build a shared archive. 23941archive_cmds=$lt_archive_cmds_CXX 23942archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23943 23944# Commands used to build a loadable module if different from building 23945# a shared archive. 23946module_cmds=$lt_module_cmds_CXX 23947module_expsym_cmds=$lt_module_expsym_cmds_CXX 23948 23949# Whether we are building with GNU ld or not. 23950with_gnu_ld=$lt_with_gnu_ld_CXX 23951 23952# Flag that allows shared libraries with undefined symbols to be built. 23953allow_undefined_flag=$lt_allow_undefined_flag_CXX 23954 23955# Flag that enforces no undefined symbols. 23956no_undefined_flag=$lt_no_undefined_flag_CXX 23957 23958# Flag to hardcode \$libdir into a binary during linking. 23959# This must work even if \$libdir does not exist 23960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23961 23962# If ld is used when linking, flag to hardcode \$libdir into a binary 23963# during linking. This must work even if \$libdir does not exist. 23964hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 23965 23966# Whether we need a single "-rpath" flag with a separated argument. 23967hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23968 23969# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23970# DIR into the resulting binary. 23971hardcode_direct=$hardcode_direct_CXX 23972 23973# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23974# DIR into the resulting binary and the resulting library dependency is 23975# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23976# library is relocated. 23977hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23978 23979# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23980# into the resulting binary. 23981hardcode_minus_L=$hardcode_minus_L_CXX 23982 23983# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23984# into the resulting binary. 23985hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23986 23987# Set to "yes" if building a shared library automatically hardcodes DIR 23988# into the library and all subsequent libraries and executables linked 23989# against it. 23990hardcode_automatic=$hardcode_automatic_CXX 23991 23992# Set to yes if linker adds runtime paths of dependent libraries 23993# to runtime path list. 23994inherit_rpath=$inherit_rpath_CXX 23995 23996# Whether libtool must link a program against all its dependency libraries. 23997link_all_deplibs=$link_all_deplibs_CXX 23998 23999# Fix the shell variable \$srcfile for the compiler. 24000fix_srcfile_path=$lt_fix_srcfile_path_CXX 24001 24002# Set to "yes" if exported symbols are required. 24003always_export_symbols=$always_export_symbols_CXX 24004 24005# The commands to list exported symbols. 24006export_symbols_cmds=$lt_export_symbols_cmds_CXX 24007 24008# Symbols that should not be listed in the preloaded symbols. 24009exclude_expsyms=$lt_exclude_expsyms_CXX 24010 24011# Symbols that must always be exported. 24012include_expsyms=$lt_include_expsyms_CXX 24013 24014# Commands necessary for linking programs (against libraries) with templates. 24015prelink_cmds=$lt_prelink_cmds_CXX 24016 24017# Specify filename containing input files. 24018file_list_spec=$lt_file_list_spec_CXX 24019 24020# How to hardcode a shared library path into an executable. 24021hardcode_action=$hardcode_action_CXX 24022 24023# The directories searched by this compiler when creating a shared library. 24024compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 24025 24026# Dependencies to place before and after the objects being linked to 24027# create a shared library. 24028predep_objects=$lt_predep_objects_CXX 24029postdep_objects=$lt_postdep_objects_CXX 24030predeps=$lt_predeps_CXX 24031postdeps=$lt_postdeps_CXX 24032 24033# The library search path used internally by the compiler when linking 24034# a shared library. 24035compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 24036 24037# ### END LIBTOOL TAG CONFIG: CXX 24038_LT_EOF 24039 24040 ;; 24041 "$ac_stdint_h":C) 24042{ $as_echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5 24043$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} 24044ac_stdint=$tmp/_stdint.h 24045 24046echo "#ifndef" $_ac_stdint_h >$ac_stdint 24047echo "#define" $_ac_stdint_h "1" >>$ac_stdint 24048echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint 24049echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint 24050echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint 24051if test "_$ac_cv_header_stdint_t" != "_" ; then 24052echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint 24053echo "#include <stdint.h>" >>$ac_stdint 24054echo "#endif" >>$ac_stdint 24055echo "#endif" >>$ac_stdint 24056else 24057 24058cat >>$ac_stdint <<STDINT_EOF 24059 24060/* ................... shortcircuit part ........................... */ 24061 24062#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H 24063#include <stdint.h> 24064#else 24065#include <stddef.h> 24066 24067/* .................... configured part ............................ */ 24068 24069STDINT_EOF 24070 24071echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint 24072if test "_$ac_cv_header_stdint_x" != "_" ; then 24073 ac_header="$ac_cv_header_stdint_x" 24074 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint 24075else 24076 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint 24077fi 24078 24079echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint 24080if test "_$ac_cv_header_stdint_o" != "_" ; then 24081 ac_header="$ac_cv_header_stdint_o" 24082 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint 24083else 24084 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint 24085fi 24086 24087echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint 24088if test "_$ac_cv_header_stdint_u" != "_" ; then 24089 ac_header="$ac_cv_header_stdint_u" 24090 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint 24091else 24092 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint 24093fi 24094 24095echo "" >>$ac_stdint 24096 24097if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then 24098 echo "#include <$ac_header>" >>$ac_stdint 24099 echo "" >>$ac_stdint 24100fi fi 24101 24102echo "/* which 64bit typedef has been found */" >>$ac_stdint 24103if test "$ac_cv_type_uint64_t" = "yes" ; then 24104echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint 24105else 24106echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint 24107fi 24108if test "$ac_cv_type_u_int64_t" = "yes" ; then 24109echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint 24110else 24111echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint 24112fi 24113echo "" >>$ac_stdint 24114 24115echo "/* which type model has been detected */" >>$ac_stdint 24116if test "_$ac_cv_char_data_model" != "_" ; then 24117echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint 24118echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint 24119else 24120echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint 24121echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint 24122fi 24123echo "" >>$ac_stdint 24124 24125echo "/* whether int_least types were detected */" >>$ac_stdint 24126if test "$ac_cv_type_int_least32_t" = "yes"; then 24127echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint 24128else 24129echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint 24130fi 24131echo "/* whether int_fast types were detected */" >>$ac_stdint 24132if test "$ac_cv_type_int_fast32_t" = "yes"; then 24133echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint 24134else 24135echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint 24136fi 24137echo "/* whether intmax_t type was detected */" >>$ac_stdint 24138if test "$ac_cv_type_intmax_t" = "yes"; then 24139echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint 24140else 24141echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint 24142fi 24143echo "" >>$ac_stdint 24144 24145 cat >>$ac_stdint <<STDINT_EOF 24146/* .................... detections part ............................ */ 24147 24148/* whether we need to define bitspecific types from compiler base types */ 24149#ifndef _STDINT_HEADER_INTPTR 24150#ifndef _STDINT_HEADER_UINT32 24151#ifndef _STDINT_HEADER_U_INT32 24152#define _STDINT_NEED_INT_MODEL_T 24153#else 24154#define _STDINT_HAVE_U_INT_TYPES 24155#endif 24156#endif 24157#endif 24158 24159#ifdef _STDINT_HAVE_U_INT_TYPES 24160#undef _STDINT_NEED_INT_MODEL_T 24161#endif 24162 24163#ifdef _STDINT_CHAR_MODEL 24164#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 24165#ifndef _STDINT_BYTE_MODEL 24166#define _STDINT_BYTE_MODEL 12 24167#endif 24168#endif 24169#endif 24170 24171#ifndef _STDINT_HAVE_INT_LEAST32_T 24172#define _STDINT_NEED_INT_LEAST_T 24173#endif 24174 24175#ifndef _STDINT_HAVE_INT_FAST32_T 24176#define _STDINT_NEED_INT_FAST_T 24177#endif 24178 24179#ifndef _STDINT_HEADER_INTPTR 24180#define _STDINT_NEED_INTPTR_T 24181#ifndef _STDINT_HAVE_INTMAX_T 24182#define _STDINT_NEED_INTMAX_T 24183#endif 24184#endif 24185 24186 24187/* .................... definition part ............................ */ 24188 24189/* some system headers have good uint64_t */ 24190#ifndef _HAVE_UINT64_T 24191#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T 24192#define _HAVE_UINT64_T 24193#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T 24194#define _HAVE_UINT64_T 24195typedef u_int64_t uint64_t; 24196#endif 24197#endif 24198 24199#ifndef _HAVE_UINT64_T 24200/* .. here are some common heuristics using compiler runtime specifics */ 24201#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L 24202#define _HAVE_UINT64_T 24203#define _HAVE_LONGLONG_UINT64_T 24204typedef long long int64_t; 24205typedef unsigned long long uint64_t; 24206 24207#elif !defined __STRICT_ANSI__ 24208#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 24209#define _HAVE_UINT64_T 24210typedef __int64 int64_t; 24211typedef unsigned __int64 uint64_t; 24212 24213#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 24214/* note: all ELF-systems seem to have loff-support which needs 64-bit */ 24215#if !defined _NO_LONGLONG 24216#define _HAVE_UINT64_T 24217#define _HAVE_LONGLONG_UINT64_T 24218typedef long long int64_t; 24219typedef unsigned long long uint64_t; 24220#endif 24221 24222#elif defined __alpha || (defined __mips && defined _ABIN32) 24223#if !defined _NO_LONGLONG 24224typedef long int64_t; 24225typedef unsigned long uint64_t; 24226#endif 24227 /* compiler/cpu type to define int64_t */ 24228#endif 24229#endif 24230#endif 24231 24232#if defined _STDINT_HAVE_U_INT_TYPES 24233/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 24234typedef u_int8_t uint8_t; 24235typedef u_int16_t uint16_t; 24236typedef u_int32_t uint32_t; 24237 24238/* glibc compatibility */ 24239#ifndef __int8_t_defined 24240#define __int8_t_defined 24241#endif 24242#endif 24243 24244#ifdef _STDINT_NEED_INT_MODEL_T 24245/* we must guess all the basic types. Apart from byte-adressable system, */ 24246/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ 24247/* (btw, those nibble-addressable systems are way off, or so we assume) */ 24248 24249 24250#if defined _STDINT_BYTE_MODEL 24251#if _STDINT_LONG_MODEL+0 == 242 24252/* 2:4:2 = IP16 = a normal 16-bit system */ 24253typedef unsigned char uint8_t; 24254typedef unsigned short uint16_t; 24255typedef unsigned long uint32_t; 24256#ifndef __int8_t_defined 24257#define __int8_t_defined 24258typedef char int8_t; 24259typedef short int16_t; 24260typedef long int32_t; 24261#endif 24262#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 24263/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ 24264/* 4:4:4 = ILP32 = a normal 32-bit system */ 24265typedef unsigned char uint8_t; 24266typedef unsigned short uint16_t; 24267typedef unsigned int uint32_t; 24268#ifndef __int8_t_defined 24269#define __int8_t_defined 24270typedef char int8_t; 24271typedef short int16_t; 24272typedef int int32_t; 24273#endif 24274#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 24275/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ 24276/* 4:8:8 = LP64 = a normal 64-bit system */ 24277typedef unsigned char uint8_t; 24278typedef unsigned short uint16_t; 24279typedef unsigned int uint32_t; 24280#ifndef __int8_t_defined 24281#define __int8_t_defined 24282typedef char int8_t; 24283typedef short int16_t; 24284typedef int int32_t; 24285#endif 24286/* this system has a "long" of 64bit */ 24287#ifndef _HAVE_UINT64_T 24288#define _HAVE_UINT64_T 24289typedef unsigned long uint64_t; 24290typedef long int64_t; 24291#endif 24292#elif _STDINT_LONG_MODEL+0 == 448 24293/* LLP64 a 64-bit system derived from a 32-bit system */ 24294typedef unsigned char uint8_t; 24295typedef unsigned short uint16_t; 24296typedef unsigned int uint32_t; 24297#ifndef __int8_t_defined 24298#define __int8_t_defined 24299typedef char int8_t; 24300typedef short int16_t; 24301typedef int int32_t; 24302#endif 24303/* assuming the system has a "long long" */ 24304#ifndef _HAVE_UINT64_T 24305#define _HAVE_UINT64_T 24306#define _HAVE_LONGLONG_UINT64_T 24307typedef unsigned long long uint64_t; 24308typedef long long int64_t; 24309#endif 24310#else 24311#define _STDINT_NO_INT32_T 24312#endif 24313#else 24314#define _STDINT_NO_INT8_T 24315#define _STDINT_NO_INT32_T 24316#endif 24317#endif 24318 24319/* 24320 * quote from SunOS-5.8 sys/inttypes.h: 24321 * Use at your own risk. As of February 1996, the committee is squarely 24322 * behind the fixed sized types; the "least" and "fast" types are still being 24323 * discussed. The probability that the "fast" types may be removed before 24324 * the standard is finalized is high enough that they are not currently 24325 * implemented. 24326 */ 24327 24328#if defined _STDINT_NEED_INT_LEAST_T 24329typedef int8_t int_least8_t; 24330typedef int16_t int_least16_t; 24331typedef int32_t int_least32_t; 24332#ifdef _HAVE_UINT64_T 24333typedef int64_t int_least64_t; 24334#endif 24335 24336typedef uint8_t uint_least8_t; 24337typedef uint16_t uint_least16_t; 24338typedef uint32_t uint_least32_t; 24339#ifdef _HAVE_UINT64_T 24340typedef uint64_t uint_least64_t; 24341#endif 24342 /* least types */ 24343#endif 24344 24345#if defined _STDINT_NEED_INT_FAST_T 24346typedef int8_t int_fast8_t; 24347typedef int int_fast16_t; 24348typedef int32_t int_fast32_t; 24349#ifdef _HAVE_UINT64_T 24350typedef int64_t int_fast64_t; 24351#endif 24352 24353typedef uint8_t uint_fast8_t; 24354typedef unsigned uint_fast16_t; 24355typedef uint32_t uint_fast32_t; 24356#ifdef _HAVE_UINT64_T 24357typedef uint64_t uint_fast64_t; 24358#endif 24359 /* fast types */ 24360#endif 24361 24362#ifdef _STDINT_NEED_INTMAX_T 24363#ifdef _HAVE_UINT64_T 24364typedef int64_t intmax_t; 24365typedef uint64_t uintmax_t; 24366#else 24367typedef long intmax_t; 24368typedef unsigned long uintmax_t; 24369#endif 24370#endif 24371 24372#ifdef _STDINT_NEED_INTPTR_T 24373#ifndef __intptr_t_defined 24374#define __intptr_t_defined 24375/* we encourage using "long" to store pointer values, never use "int" ! */ 24376#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 24377typedef unsigned int uintptr_t; 24378typedef int intptr_t; 24379#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 24380typedef unsigned long uintptr_t; 24381typedef long intptr_t; 24382#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T 24383typedef uint64_t uintptr_t; 24384typedef int64_t intptr_t; 24385#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ 24386typedef unsigned long uintptr_t; 24387typedef long intptr_t; 24388#endif 24389#endif 24390#endif 24391 24392/* The ISO C99 standard specifies that in C++ implementations these 24393 should only be defined if explicitly requested. */ 24394#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS 24395#ifndef UINT32_C 24396 24397/* Signed. */ 24398# define INT8_C(c) c 24399# define INT16_C(c) c 24400# define INT32_C(c) c 24401# ifdef _HAVE_LONGLONG_UINT64_T 24402# define INT64_C(c) c ## L 24403# else 24404# define INT64_C(c) c ## LL 24405# endif 24406 24407/* Unsigned. */ 24408# define UINT8_C(c) c ## U 24409# define UINT16_C(c) c ## U 24410# define UINT32_C(c) c ## U 24411# ifdef _HAVE_LONGLONG_UINT64_T 24412# define UINT64_C(c) c ## UL 24413# else 24414# define UINT64_C(c) c ## ULL 24415# endif 24416 24417/* Maximal type. */ 24418# ifdef _HAVE_LONGLONG_UINT64_T 24419# define INTMAX_C(c) c ## L 24420# define UINTMAX_C(c) c ## UL 24421# else 24422# define INTMAX_C(c) c ## LL 24423# define UINTMAX_C(c) c ## ULL 24424# endif 24425 24426 /* literalnumbers */ 24427#endif 24428#endif 24429 24430/* These limits are merily those of a two complement byte-oriented system */ 24431 24432/* Minimum of signed integral types. */ 24433# define INT8_MIN (-128) 24434# define INT16_MIN (-32767-1) 24435# define INT32_MIN (-2147483647-1) 24436# define INT64_MIN (-__INT64_C(9223372036854775807)-1) 24437/* Maximum of signed integral types. */ 24438# define INT8_MAX (127) 24439# define INT16_MAX (32767) 24440# define INT32_MAX (2147483647) 24441# define INT64_MAX (__INT64_C(9223372036854775807)) 24442 24443/* Maximum of unsigned integral types. */ 24444# define UINT8_MAX (255) 24445# define UINT16_MAX (65535) 24446# define UINT32_MAX (4294967295U) 24447# define UINT64_MAX (__UINT64_C(18446744073709551615)) 24448 24449/* Minimum of signed integral types having a minimum size. */ 24450# define INT_LEAST8_MIN INT8_MIN 24451# define INT_LEAST16_MIN INT16_MIN 24452# define INT_LEAST32_MIN INT32_MIN 24453# define INT_LEAST64_MIN INT64_MIN 24454/* Maximum of signed integral types having a minimum size. */ 24455# define INT_LEAST8_MAX INT8_MAX 24456# define INT_LEAST16_MAX INT16_MAX 24457# define INT_LEAST32_MAX INT32_MAX 24458# define INT_LEAST64_MAX INT64_MAX 24459 24460/* Maximum of unsigned integral types having a minimum size. */ 24461# define UINT_LEAST8_MAX UINT8_MAX 24462# define UINT_LEAST16_MAX UINT16_MAX 24463# define UINT_LEAST32_MAX UINT32_MAX 24464# define UINT_LEAST64_MAX UINT64_MAX 24465 24466 /* shortcircuit*/ 24467#endif 24468 /* once */ 24469#endif 24470#endif 24471STDINT_EOF 24472fi 24473 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then 24474 { $as_echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5 24475$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;} 24476 else 24477 ac_dir=`$as_dirname -- "$ac_stdint_h" || 24478$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24479 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ 24480 X"$ac_stdint_h" : 'X\(//\)$' \| \ 24481 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || 24482$as_echo X"$ac_stdint_h" | 24483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24484 s//\1/ 24485 q 24486 } 24487 /^X\(\/\/\)[^/].*/{ 24488 s//\1/ 24489 q 24490 } 24491 /^X\(\/\/\)$/{ 24492 s//\1/ 24493 q 24494 } 24495 /^X\(\/\).*/{ 24496 s//\1/ 24497 q 24498 } 24499 s/.*/./; q'` 24500 { as_dir="$ac_dir" 24501 case $as_dir in #( 24502 -*) as_dir=./$as_dir;; 24503 esac 24504 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24505 as_dirs= 24506 while :; do 24507 case $as_dir in #( 24508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24509 *) as_qdir=$as_dir;; 24510 esac 24511 as_dirs="'$as_qdir' $as_dirs" 24512 as_dir=`$as_dirname -- "$as_dir" || 24513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24514 X"$as_dir" : 'X\(//\)[^/]' \| \ 24515 X"$as_dir" : 'X\(//\)$' \| \ 24516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24517$as_echo X"$as_dir" | 24518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24519 s//\1/ 24520 q 24521 } 24522 /^X\(\/\/\)[^/].*/{ 24523 s//\1/ 24524 q 24525 } 24526 /^X\(\/\/\)$/{ 24527 s//\1/ 24528 q 24529 } 24530 /^X\(\/\).*/{ 24531 s//\1/ 24532 q 24533 } 24534 s/.*/./; q'` 24535 test -d "$as_dir" && break 24536 done 24537 test -z "$as_dirs" || eval "mkdir $as_dirs" 24538 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24539$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 24540 { (exit 1); exit 1; }; }; } 24541 rm -f $ac_stdint_h 24542 mv $ac_stdint $ac_stdint_h 24543 fi 24544 ;; 24545 "tests/atconfig":C) cat >tests/atconfig <<ATEOF 24546# Configurable variable values for building test suites. 24547# Generated by $0. 24548# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc. 24549 24550# The test suite will define top_srcdir=$at_top_srcdir/../.. etc. 24551at_testdir='tests' 24552abs_builddir='$ac_abs_builddir' 24553at_srcdir='$ac_srcdir' 24554abs_srcdir='$ac_abs_srcdir' 24555at_top_srcdir='$ac_top_srcdir' 24556abs_top_srcdir='$ac_abs_top_srcdir' 24557at_top_build_prefix='$ac_top_build_prefix' 24558abs_top_builddir='$ac_abs_top_builddir' 24559 24560# Backward compatibility with Autotest <= 2.59b: 24561at_top_builddir=\$at_top_build_prefix 24562 24563AUTOTEST_PATH='tests:encoder:decoder:unit_tests:util/instrumentation' 24564 24565SHELL=\${CONFIG_SHELL-'$SHELL'} 24566ATEOF 24567 ;; 24568 "tests/at_wrap":F) chmod +x tests/at_wrap ;; 24569 24570 esac 24571done # for ac_tag 24572 24573 24574{ (exit 0); exit 0; } 24575_ACEOF 24576chmod +x $CONFIG_STATUS 24577ac_clean_files=$ac_clean_files_save 24578 24579test $ac_write_fail = 0 || 24580 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 24581$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 24582 { (exit 1); exit 1; }; } 24583 24584 24585# configure is writing to config.log, and then calls config.status. 24586# config.status does its own redirection, appending to config.log. 24587# Unfortunately, on DOS this fails, as config.log is still kept open 24588# by configure, so config.status won't be able to write to it; its 24589# output is simply discarded. So we exec the FD to /dev/null, 24590# effectively closing config.log, so it can be properly (re)opened and 24591# appended to by config.status. When coming back to configure, we 24592# need to make the FD available again. 24593if test "$no_create" != yes; then 24594 ac_cs_success=: 24595 ac_config_status_args= 24596 test "$silent" = yes && 24597 ac_config_status_args="$ac_config_status_args --quiet" 24598 exec 5>/dev/null 24599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24600 exec 5>>config.log 24601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24602 # would make configure fail if this is the last instruction. 24603 $ac_cs_success || { (exit 1); exit 1; } 24604fi 24605if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24606 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24607$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24608fi 24609 24610