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="src/common/global.h" 751ac_default_prefix=/opt/pixie 752# Factoring default headers for most tests. 753ac_includes_default="\ 754#include <stdio.h> 755#ifdef HAVE_SYS_TYPES_H 756# include <sys/types.h> 757#endif 758#ifdef HAVE_SYS_STAT_H 759# include <sys/stat.h> 760#endif 761#ifdef STDC_HEADERS 762# include <stdlib.h> 763# include <stddef.h> 764#else 765# ifdef HAVE_STDLIB_H 766# include <stdlib.h> 767# endif 768#endif 769#ifdef HAVE_STRING_H 770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 771# include <memory.h> 772# endif 773# include <string.h> 774#endif 775#ifdef HAVE_STRINGS_H 776# include <strings.h> 777#endif 778#ifdef HAVE_INTTYPES_H 779# include <inttypes.h> 780#endif 781#ifdef HAVE_STDINT_H 782# include <stdint.h> 783#endif 784#ifdef HAVE_UNISTD_H 785# include <unistd.h> 786#endif" 787 788ac_subst_vars='LTLIBOBJS 789LIBOBJS 790modulesdir 791PIXIE_MODULES 792proceduraldir 793PIXIE_PROCEDURALS 794displaysdir 795PIXIE_DISPLAYS 796texturedir 797PIXIE_TEXTURES 798ribdir 799PIXIE_RIBS 800shaderdir 801PIXIE_SHADERS 802PIXIE_DOCS 803FLTK_LDFLAGS 804FLTK_CXXFLAGS 805ZLIB_LIBS 806BUILD_SHOW 807PNG_LIBS 808TIFF_LIBS 809X_LDFLAGS 810HAVE_BISON_FALSE 811HAVE_BISON_TRUE 812BISON 813HAVE_FLEX_FALSE 814HAVE_FLEX_TRUE 815FLEX 816ALLOCA 817BUILD_OPENEXR_FALSE 818BUILD_OPENEXR_TRUE 819OPENEXR_LDFLAGS 820OPENEXR_LIBS 821OPENEXR_INCLUDES 822BUILD_SHOW_FALSE 823BUILD_SHOW_TRUE 824FLTK_CONFIG 825BUILD_FRAMEBUFFER_FALSE 826BUILD_FRAMEBUFFER_TRUE 827X_EXTRA_LIBS 828X_LIBS 829X_PRE_LIBS 830X_CFLAGS 831XMKMF 832CXXCPP 833OTOOL64 834OTOOL 835LIPO 836NMEDIT 837DSYMUTIL 838lt_ECHO 839RANLIB 840AR 841OBJDUMP 842LN_S 843NM 844ac_ct_DUMPBIN 845DUMPBIN 846LD 847FGREP 848EGREP 849GREP 850SED 851host_os 852host_vendor 853host_cpu 854host 855build_os 856build_vendor 857build_cpu 858build 859LIBTOOL 860am__fastdepCXX_FALSE 861am__fastdepCXX_TRUE 862CXXDEPMODE 863ac_ct_CXX 864CXXFLAGS 865CXX 866CPP 867am__fastdepCC_FALSE 868am__fastdepCC_TRUE 869CCDEPMODE 870AMDEPBACKSLASH 871AMDEP_FALSE 872AMDEP_TRUE 873am__quote 874am__include 875DEPDIR 876OBJEXT 877EXEEXT 878ac_ct_CC 879CPPFLAGS 880LDFLAGS 881CFLAGS 882CC 883am__untar 884am__tar 885AMTAR 886am__leading_dot 887SET_MAKE 888AWK 889mkdir_p 890MKDIR_P 891INSTALL_STRIP_PROGRAM 892STRIP 893install_sh 894MAKEINFO 895AUTOHEADER 896AUTOMAKE 897AUTOCONF 898ACLOCAL 899VERSION 900PACKAGE 901CYGPATH_W 902am__isrc 903INSTALL_DATA 904INSTALL_SCRIPT 905INSTALL_PROGRAM 906target_alias 907host_alias 908build_alias 909LIBS 910ECHO_T 911ECHO_N 912ECHO_C 913DEFS 914mandir 915localedir 916libdir 917psdir 918pdfdir 919dvidir 920htmldir 921infodir 922docdir 923oldincludedir 924includedir 925localstatedir 926sharedstatedir 927sysconfdir 928datadir 929datarootdir 930libexecdir 931sbindir 932bindir 933program_transform_name 934prefix 935exec_prefix 936PACKAGE_BUGREPORT 937PACKAGE_STRING 938PACKAGE_VERSION 939PACKAGE_TARNAME 940PACKAGE_NAME 941PATH_SEPARATOR 942SHELL' 943ac_subst_files='' 944ac_user_opts=' 945enable_option_checking 946enable_dependency_tracking 947enable_static 948enable_shared 949with_pic 950enable_fast_install 951with_gnu_ld 952enable_libtool_lock 953with_x 954with_fltk_config 955enable_static_fltk 956with_openexr_prefix 957enable_openexrtest 958enable_static_openexr 959enable_openexr_threads 960enable_selfcontained 961with_docdir 962with_shaderdir 963with_ribdir 964with_texturedir 965with_proceduraldir 966with_displaysdir 967with_modulesdir 968' 969 ac_precious_vars='build_alias 970host_alias 971target_alias 972CC 973CFLAGS 974LDFLAGS 975LIBS 976CPPFLAGS 977CPP 978CXX 979CXXFLAGS 980CCC 981CXXCPP 982XMKMF 983FLTK_CONFIG' 984 985 986# Initialize some variables set by options. 987ac_init_help= 988ac_init_version=false 989ac_unrecognized_opts= 990ac_unrecognized_sep= 991# The variables have the same names as the options, with 992# dashes changed to underlines. 993cache_file=/dev/null 994exec_prefix=NONE 995no_create= 996no_recursion= 997prefix=NONE 998program_prefix=NONE 999program_suffix=NONE 1000program_transform_name=s,x,x, 1001silent= 1002site= 1003srcdir= 1004verbose= 1005x_includes=NONE 1006x_libraries=NONE 1007 1008# Installation directory options. 1009# These are left unexpanded so users can "make install exec_prefix=/foo" 1010# and all the variables that are supposed to be based on exec_prefix 1011# by default will actually change. 1012# Use braces instead of parens because sh, perl, etc. also accept them. 1013# (The list follows the same order as the GNU Coding Standards.) 1014bindir='${exec_prefix}/bin' 1015sbindir='${exec_prefix}/sbin' 1016libexecdir='${exec_prefix}/libexec' 1017datarootdir='${prefix}/share' 1018datadir='${datarootdir}' 1019sysconfdir='${prefix}/etc' 1020sharedstatedir='${prefix}/com' 1021localstatedir='${prefix}/var' 1022includedir='${prefix}/include' 1023oldincludedir='/usr/include' 1024docdir='${datarootdir}/doc/${PACKAGE}' 1025infodir='${datarootdir}/info' 1026htmldir='${docdir}' 1027dvidir='${docdir}' 1028pdfdir='${docdir}' 1029psdir='${docdir}' 1030libdir='${exec_prefix}/lib' 1031localedir='${datarootdir}/locale' 1032mandir='${datarootdir}/man' 1033 1034ac_prev= 1035ac_dashdash= 1036for ac_option 1037do 1038 # If the previous option needs an argument, assign it. 1039 if test -n "$ac_prev"; then 1040 eval $ac_prev=\$ac_option 1041 ac_prev= 1042 continue 1043 fi 1044 1045 case $ac_option in 1046 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1047 *) ac_optarg=yes ;; 1048 esac 1049 1050 # Accept the important Cygnus configure options, so we can diagnose typos. 1051 1052 case $ac_dashdash$ac_option in 1053 --) 1054 ac_dashdash=yes ;; 1055 1056 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1057 ac_prev=bindir ;; 1058 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1059 bindir=$ac_optarg ;; 1060 1061 -build | --build | --buil | --bui | --bu) 1062 ac_prev=build_alias ;; 1063 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1064 build_alias=$ac_optarg ;; 1065 1066 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1068 ac_prev=cache_file ;; 1069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1071 cache_file=$ac_optarg ;; 1072 1073 --config-cache | -C) 1074 cache_file=config.cache ;; 1075 1076 -datadir | --datadir | --datadi | --datad) 1077 ac_prev=datadir ;; 1078 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1079 datadir=$ac_optarg ;; 1080 1081 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1082 | --dataroo | --dataro | --datar) 1083 ac_prev=datarootdir ;; 1084 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1085 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1086 datarootdir=$ac_optarg ;; 1087 1088 -disable-* | --disable-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1093 { (exit 1); exit 1; }; } 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"enable_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval enable_$ac_useropt=no ;; 1104 1105 -docdir | --docdir | --docdi | --doc | --do) 1106 ac_prev=docdir ;; 1107 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1108 docdir=$ac_optarg ;; 1109 1110 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1111 ac_prev=dvidir ;; 1112 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1113 dvidir=$ac_optarg ;; 1114 1115 -enable-* | --enable-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1120 { (exit 1); exit 1; }; } 1121 ac_useropt_orig=$ac_useropt 1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1123 case $ac_user_opts in 1124 *" 1125"enable_$ac_useropt" 1126"*) ;; 1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1128 ac_unrecognized_sep=', ';; 1129 esac 1130 eval enable_$ac_useropt=\$ac_optarg ;; 1131 1132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1134 | --exec | --exe | --ex) 1135 ac_prev=exec_prefix ;; 1136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1138 | --exec=* | --exe=* | --ex=*) 1139 exec_prefix=$ac_optarg ;; 1140 1141 -gas | --gas | --ga | --g) 1142 # Obsolete; use --with-gas. 1143 with_gas=yes ;; 1144 1145 -help | --help | --hel | --he | -h) 1146 ac_init_help=long ;; 1147 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1148 ac_init_help=recursive ;; 1149 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1150 ac_init_help=short ;; 1151 1152 -host | --host | --hos | --ho) 1153 ac_prev=host_alias ;; 1154 -host=* | --host=* | --hos=* | --ho=*) 1155 host_alias=$ac_optarg ;; 1156 1157 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1158 ac_prev=htmldir ;; 1159 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1160 | --ht=*) 1161 htmldir=$ac_optarg ;; 1162 1163 -includedir | --includedir | --includedi | --included | --include \ 1164 | --includ | --inclu | --incl | --inc) 1165 ac_prev=includedir ;; 1166 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1167 | --includ=* | --inclu=* | --incl=* | --inc=*) 1168 includedir=$ac_optarg ;; 1169 1170 -infodir | --infodir | --infodi | --infod | --info | --inf) 1171 ac_prev=infodir ;; 1172 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1173 infodir=$ac_optarg ;; 1174 1175 -libdir | --libdir | --libdi | --libd) 1176 ac_prev=libdir ;; 1177 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1178 libdir=$ac_optarg ;; 1179 1180 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1181 | --libexe | --libex | --libe) 1182 ac_prev=libexecdir ;; 1183 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1184 | --libexe=* | --libex=* | --libe=*) 1185 libexecdir=$ac_optarg ;; 1186 1187 -localedir | --localedir | --localedi | --localed | --locale) 1188 ac_prev=localedir ;; 1189 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1190 localedir=$ac_optarg ;; 1191 1192 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1193 | --localstate | --localstat | --localsta | --localst | --locals) 1194 ac_prev=localstatedir ;; 1195 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1196 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1197 localstatedir=$ac_optarg ;; 1198 1199 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1200 ac_prev=mandir ;; 1201 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1202 mandir=$ac_optarg ;; 1203 1204 -nfp | --nfp | --nf) 1205 # Obsolete; use --without-fp. 1206 with_fp=no ;; 1207 1208 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1209 | --no-cr | --no-c | -n) 1210 no_create=yes ;; 1211 1212 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1213 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1214 no_recursion=yes ;; 1215 1216 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1217 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1218 | --oldin | --oldi | --old | --ol | --o) 1219 ac_prev=oldincludedir ;; 1220 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1221 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1222 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1223 oldincludedir=$ac_optarg ;; 1224 1225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1226 ac_prev=prefix ;; 1227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1228 prefix=$ac_optarg ;; 1229 1230 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1231 | --program-pre | --program-pr | --program-p) 1232 ac_prev=program_prefix ;; 1233 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1234 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1235 program_prefix=$ac_optarg ;; 1236 1237 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1238 | --program-suf | --program-su | --program-s) 1239 ac_prev=program_suffix ;; 1240 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1241 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1242 program_suffix=$ac_optarg ;; 1243 1244 -program-transform-name | --program-transform-name \ 1245 | --program-transform-nam | --program-transform-na \ 1246 | --program-transform-n | --program-transform- \ 1247 | --program-transform | --program-transfor \ 1248 | --program-transfo | --program-transf \ 1249 | --program-trans | --program-tran \ 1250 | --progr-tra | --program-tr | --program-t) 1251 ac_prev=program_transform_name ;; 1252 -program-transform-name=* | --program-transform-name=* \ 1253 | --program-transform-nam=* | --program-transform-na=* \ 1254 | --program-transform-n=* | --program-transform-=* \ 1255 | --program-transform=* | --program-transfor=* \ 1256 | --program-transfo=* | --program-transf=* \ 1257 | --program-trans=* | --program-tran=* \ 1258 | --progr-tra=* | --program-tr=* | --program-t=*) 1259 program_transform_name=$ac_optarg ;; 1260 1261 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1262 ac_prev=pdfdir ;; 1263 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1264 pdfdir=$ac_optarg ;; 1265 1266 -psdir | --psdir | --psdi | --psd | --ps) 1267 ac_prev=psdir ;; 1268 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1269 psdir=$ac_optarg ;; 1270 1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1272 | -silent | --silent | --silen | --sile | --sil) 1273 silent=yes ;; 1274 1275 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1276 ac_prev=sbindir ;; 1277 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1278 | --sbi=* | --sb=*) 1279 sbindir=$ac_optarg ;; 1280 1281 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1282 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1283 | --sharedst | --shareds | --shared | --share | --shar \ 1284 | --sha | --sh) 1285 ac_prev=sharedstatedir ;; 1286 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1287 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1288 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1289 | --sha=* | --sh=*) 1290 sharedstatedir=$ac_optarg ;; 1291 1292 -site | --site | --sit) 1293 ac_prev=site ;; 1294 -site=* | --site=* | --sit=*) 1295 site=$ac_optarg ;; 1296 1297 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1298 ac_prev=srcdir ;; 1299 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1300 srcdir=$ac_optarg ;; 1301 1302 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1303 | --syscon | --sysco | --sysc | --sys | --sy) 1304 ac_prev=sysconfdir ;; 1305 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1306 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1307 sysconfdir=$ac_optarg ;; 1308 1309 -target | --target | --targe | --targ | --tar | --ta | --t) 1310 ac_prev=target_alias ;; 1311 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1312 target_alias=$ac_optarg ;; 1313 1314 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1315 verbose=yes ;; 1316 1317 -version | --version | --versio | --versi | --vers | -V) 1318 ac_init_version=: ;; 1319 1320 -with-* | --with-*) 1321 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1322 # Reject names that are not valid shell variable names. 1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1324 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1325 { (exit 1); exit 1; }; } 1326 ac_useropt_orig=$ac_useropt 1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1328 case $ac_user_opts in 1329 *" 1330"with_$ac_useropt" 1331"*) ;; 1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1333 ac_unrecognized_sep=', ';; 1334 esac 1335 eval with_$ac_useropt=\$ac_optarg ;; 1336 1337 -without-* | --without-*) 1338 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1339 # Reject names that are not valid shell variable names. 1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1341 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1342 { (exit 1); exit 1; }; } 1343 ac_useropt_orig=$ac_useropt 1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1345 case $ac_user_opts in 1346 *" 1347"with_$ac_useropt" 1348"*) ;; 1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1350 ac_unrecognized_sep=', ';; 1351 esac 1352 eval with_$ac_useropt=no ;; 1353 1354 --x) 1355 # Obsolete; use --with-x. 1356 with_x=yes ;; 1357 1358 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1359 | --x-incl | --x-inc | --x-in | --x-i) 1360 ac_prev=x_includes ;; 1361 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1362 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1363 x_includes=$ac_optarg ;; 1364 1365 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1366 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1367 ac_prev=x_libraries ;; 1368 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1369 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1370 x_libraries=$ac_optarg ;; 1371 1372 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1373Try \`$0 --help' for more information." >&2 1374 { (exit 1); exit 1; }; } 1375 ;; 1376 1377 *=*) 1378 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1379 # Reject names that are not valid shell variable names. 1380 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1381 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1382 { (exit 1); exit 1; }; } 1383 eval $ac_envvar=\$ac_optarg 1384 export $ac_envvar ;; 1385 1386 *) 1387 # FIXME: should be removed in autoconf 3.0. 1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1391 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1392 ;; 1393 1394 esac 1395done 1396 1397if test -n "$ac_prev"; then 1398 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1399 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1400 { (exit 1); exit 1; }; } 1401fi 1402 1403if test -n "$ac_unrecognized_opts"; then 1404 case $enable_option_checking in 1405 no) ;; 1406 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1407 { (exit 1); exit 1; }; } ;; 1408 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1409 esac 1410fi 1411 1412# Check all directory arguments for consistency. 1413for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1414 datadir sysconfdir sharedstatedir localstatedir includedir \ 1415 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1416 libdir localedir mandir 1417do 1418 eval ac_val=\$$ac_var 1419 # Remove trailing slashes. 1420 case $ac_val in 1421 */ ) 1422 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1423 eval $ac_var=\$ac_val;; 1424 esac 1425 # Be sure to have absolute directory names. 1426 case $ac_val in 1427 [\\/$]* | ?:[\\/]* ) continue;; 1428 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1429 esac 1430 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1431 { (exit 1); exit 1; }; } 1432done 1433 1434# There might be people who depend on the old broken behavior: `$host' 1435# used to hold the argument of --host etc. 1436# FIXME: To remove some day. 1437build=$build_alias 1438host=$host_alias 1439target=$target_alias 1440 1441# FIXME: To remove some day. 1442if test "x$host_alias" != x; then 1443 if test "x$build_alias" = x; then 1444 cross_compiling=maybe 1445 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1446 If a cross compiler is detected then cross compile mode will be used." >&2 1447 elif test "x$build_alias" != "x$host_alias"; then 1448 cross_compiling=yes 1449 fi 1450fi 1451 1452ac_tool_prefix= 1453test -n "$host_alias" && ac_tool_prefix=$host_alias- 1454 1455test "$silent" = yes && exec 6>/dev/null 1456 1457 1458ac_pwd=`pwd` && test -n "$ac_pwd" && 1459ac_ls_di=`ls -di .` && 1460ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1461 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1462 { (exit 1); exit 1; }; } 1463test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1464 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1465 { (exit 1); exit 1; }; } 1466 1467 1468# Find the source files, if location was not specified. 1469if test -z "$srcdir"; then 1470 ac_srcdir_defaulted=yes 1471 # Try the directory containing this script, then the parent directory. 1472 ac_confdir=`$as_dirname -- "$as_myself" || 1473$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1474 X"$as_myself" : 'X\(//\)[^/]' \| \ 1475 X"$as_myself" : 'X\(//\)$' \| \ 1476 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1477$as_echo X"$as_myself" | 1478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1479 s//\1/ 1480 q 1481 } 1482 /^X\(\/\/\)[^/].*/{ 1483 s//\1/ 1484 q 1485 } 1486 /^X\(\/\/\)$/{ 1487 s//\1/ 1488 q 1489 } 1490 /^X\(\/\).*/{ 1491 s//\1/ 1492 q 1493 } 1494 s/.*/./; q'` 1495 srcdir=$ac_confdir 1496 if test ! -r "$srcdir/$ac_unique_file"; then 1497 srcdir=.. 1498 fi 1499else 1500 ac_srcdir_defaulted=no 1501fi 1502if test ! -r "$srcdir/$ac_unique_file"; then 1503 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1504 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1505 { (exit 1); exit 1; }; } 1506fi 1507ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1508ac_abs_confdir=`( 1509 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1510 { (exit 1); exit 1; }; } 1511 pwd)` 1512# When building in place, set srcdir=. 1513if test "$ac_abs_confdir" = "$ac_pwd"; then 1514 srcdir=. 1515fi 1516# Remove unnecessary trailing slashes from srcdir. 1517# Double slashes in file names in object file debugging info 1518# mess up M-x gdb in Emacs. 1519case $srcdir in 1520*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1521esac 1522for ac_var in $ac_precious_vars; do 1523 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1524 eval ac_env_${ac_var}_value=\$${ac_var} 1525 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1526 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1527done 1528 1529# 1530# Report the --help message. 1531# 1532if test "$ac_init_help" = "long"; then 1533 # Omit some internal or obsolete options to make the list less imposing. 1534 # This message is too long to be a string in the A/UX 3.1 sh. 1535 cat <<_ACEOF 1536\`configure' configures this package to adapt to many kinds of systems. 1537 1538Usage: $0 [OPTION]... [VAR=VALUE]... 1539 1540To assign environment variables (e.g., CC, CFLAGS...), specify them as 1541VAR=VALUE. See below for descriptions of some of the useful variables. 1542 1543Defaults for the options are specified in brackets. 1544 1545Configuration: 1546 -h, --help display this help and exit 1547 --help=short display options specific to this package 1548 --help=recursive display the short help of all the included packages 1549 -V, --version display version information and exit 1550 -q, --quiet, --silent do not print \`checking...' messages 1551 --cache-file=FILE cache test results in FILE [disabled] 1552 -C, --config-cache alias for \`--cache-file=config.cache' 1553 -n, --no-create do not create output files 1554 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1555 1556Installation directories: 1557 --prefix=PREFIX install architecture-independent files in PREFIX 1558 [$ac_default_prefix] 1559 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1560 [PREFIX] 1561 1562By default, \`make install' will install all the files in 1563\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1564an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1565for instance \`--prefix=\$HOME'. 1566 1567For better control, use the options below. 1568 1569Fine tuning of the installation directories: 1570 --bindir=DIR user executables [EPREFIX/bin] 1571 --sbindir=DIR system admin executables [EPREFIX/sbin] 1572 --libexecdir=DIR program executables [EPREFIX/libexec] 1573 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1574 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1575 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1576 --libdir=DIR object code libraries [EPREFIX/lib] 1577 --includedir=DIR C header files [PREFIX/include] 1578 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1579 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1580 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1581 --infodir=DIR info documentation [DATAROOTDIR/info] 1582 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1583 --mandir=DIR man documentation [DATAROOTDIR/man] 1584 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1585 --htmldir=DIR html documentation [DOCDIR] 1586 --dvidir=DIR dvi documentation [DOCDIR] 1587 --pdfdir=DIR pdf documentation [DOCDIR] 1588 --psdir=DIR ps documentation [DOCDIR] 1589_ACEOF 1590 1591 cat <<\_ACEOF 1592 1593Program names: 1594 --program-prefix=PREFIX prepend PREFIX to installed program names 1595 --program-suffix=SUFFIX append SUFFIX to installed program names 1596 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1597 1598X features: 1599 --x-includes=DIR X include files are in DIR 1600 --x-libraries=DIR X library files are in DIR 1601 1602System types: 1603 --build=BUILD configure for building on BUILD [guessed] 1604 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1605_ACEOF 1606fi 1607 1608if test -n "$ac_init_help"; then 1609 1610 cat <<\_ACEOF 1611 1612Optional Features: 1613 --disable-option-checking ignore unrecognized --enable/--with options 1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1616 --disable-dependency-tracking speeds up one-time build 1617 --enable-dependency-tracking do not reject slow dependency extractors 1618 --enable-static[=PKGS] build static libraries [default=no] 1619 --enable-shared[=PKGS] build shared libraries [default=yes] 1620 --enable-fast-install[=PKGS] 1621 optimize for fast installation [default=yes] 1622 --disable-libtool-lock avoid locking (might break parallel builds) 1623 --enable-static-fltk Specify whether to link fltk statically (optional) 1624 --disable-openexrtest Do not try to compile and run a test Openexr program 1625 --enable-static-openexr Statically link against OpenEXR libs 1626 --enable-openexr-threads Include OpenEXR threading 1627 --disable-selfcontained Build for a selfcontained setup (overrides custom 1628 directory settings) 1629 1630Optional Packages: 1631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1633 --with-pic try to use only PIC/non-PIC objects [default=use 1634 both] 1635 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1636 --with-x use the X Window System 1637 --with-fltk-config=PATH Specify which fltk-config to use (optional) 1638 --with-openexr-prefix=PFX Prefix where libopenexr is installed (optional) 1639 --with-docdir=DIR directory where we install documentation (Default: 1640 DATADIR/doc/Pixie) 1641 --with-shaderdir=DIR directory where we store shaders (Default: 1642 DATADIR/Pixie/shaders) 1643 --with-ribdir=DIR directory where we store rib files (Default: 1644 DATADIR/Pixie/ribs) 1645 --with-texturedir=DIR directory where we store textures (Default: 1646 DATADIR/Pixie/textures) 1647 --with-shaderdir=DIR directory to store shaders (Default: 1648 LIBDIR/Pixie/procedurals) 1649 --with-displaysdir=DIR directory to store displays (Default: 1650 LIBDIR/Pixie/displays) 1651 --with-modulesdir=DIR directory to store modules (Default: 1652 LIBDIR/Pixie/modules) 1653 1654Some influential environment variables: 1655 CC C compiler command 1656 CFLAGS C compiler flags 1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1658 nonstandard directory <lib dir> 1659 LIBS libraries to pass to the linker, e.g. -l<library> 1660 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1661 you have headers in a nonstandard directory <include dir> 1662 CPP C preprocessor 1663 CXX C++ compiler command 1664 CXXFLAGS C++ compiler flags 1665 CXXCPP C++ preprocessor 1666 XMKMF Path to xmkmf, Makefile generator for X Window System 1667 FLTK_CONFIG Path to fltk-config command 1668 1669Use these variables to override the choices made by `configure' or to help 1670it to find libraries and programs with nonstandard names/locations. 1671 1672_ACEOF 1673ac_status=$? 1674fi 1675 1676if test "$ac_init_help" = "recursive"; then 1677 # If there are subdirs, report their specific --help. 1678 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1679 test -d "$ac_dir" || 1680 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1681 continue 1682 ac_builddir=. 1683 1684case "$ac_dir" in 1685.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1686*) 1687 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1688 # A ".." for each directory in $ac_dir_suffix. 1689 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1690 case $ac_top_builddir_sub in 1691 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1692 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1693 esac ;; 1694esac 1695ac_abs_top_builddir=$ac_pwd 1696ac_abs_builddir=$ac_pwd$ac_dir_suffix 1697# for backward compatibility: 1698ac_top_builddir=$ac_top_build_prefix 1699 1700case $srcdir in 1701 .) # We are building in place. 1702 ac_srcdir=. 1703 ac_top_srcdir=$ac_top_builddir_sub 1704 ac_abs_top_srcdir=$ac_pwd ;; 1705 [\\/]* | ?:[\\/]* ) # Absolute name. 1706 ac_srcdir=$srcdir$ac_dir_suffix; 1707 ac_top_srcdir=$srcdir 1708 ac_abs_top_srcdir=$srcdir ;; 1709 *) # Relative name. 1710 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1711 ac_top_srcdir=$ac_top_build_prefix$srcdir 1712 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1713esac 1714ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1715 1716 cd "$ac_dir" || { ac_status=$?; continue; } 1717 # Check for guested configure. 1718 if test -f "$ac_srcdir/configure.gnu"; then 1719 echo && 1720 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1721 elif test -f "$ac_srcdir/configure"; then 1722 echo && 1723 $SHELL "$ac_srcdir/configure" --help=recursive 1724 else 1725 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1726 fi || ac_status=$? 1727 cd "$ac_pwd" || { ac_status=$?; break; } 1728 done 1729fi 1730 1731test -n "$ac_init_help" && exit $ac_status 1732if $ac_init_version; then 1733 cat <<\_ACEOF 1734configure 1735generated by GNU Autoconf 2.63 1736 1737Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17382002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1739This configure script is free software; the Free Software Foundation 1740gives unlimited permission to copy, distribute and modify it. 1741_ACEOF 1742 exit 1743fi 1744cat >config.log <<_ACEOF 1745This file contains any messages produced by compilers while 1746running configure, to aid debugging if configure makes a mistake. 1747 1748It was created by $as_me, which was 1749generated by GNU Autoconf 2.63. Invocation command line was 1750 1751 $ $0 $@ 1752 1753_ACEOF 1754exec 5>>config.log 1755{ 1756cat <<_ASUNAME 1757## --------- ## 1758## Platform. ## 1759## --------- ## 1760 1761hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1762uname -m = `(uname -m) 2>/dev/null || echo unknown` 1763uname -r = `(uname -r) 2>/dev/null || echo unknown` 1764uname -s = `(uname -s) 2>/dev/null || echo unknown` 1765uname -v = `(uname -v) 2>/dev/null || echo unknown` 1766 1767/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1768/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1769 1770/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1771/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1772/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1773/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1774/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1775/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1776/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1777 1778_ASUNAME 1779 1780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1781for as_dir in $PATH 1782do 1783 IFS=$as_save_IFS 1784 test -z "$as_dir" && as_dir=. 1785 $as_echo "PATH: $as_dir" 1786done 1787IFS=$as_save_IFS 1788 1789} >&5 1790 1791cat >&5 <<_ACEOF 1792 1793 1794## ----------- ## 1795## Core tests. ## 1796## ----------- ## 1797 1798_ACEOF 1799 1800 1801# Keep a trace of the command line. 1802# Strip out --no-create and --no-recursion so they do not pile up. 1803# Strip out --silent because we don't want to record it for future runs. 1804# Also quote any args containing shell meta-characters. 1805# Make two passes to allow for proper duplicate-argument suppression. 1806ac_configure_args= 1807ac_configure_args0= 1808ac_configure_args1= 1809ac_must_keep_next=false 1810for ac_pass in 1 2 1811do 1812 for ac_arg 1813 do 1814 case $ac_arg in 1815 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1817 | -silent | --silent | --silen | --sile | --sil) 1818 continue ;; 1819 *\'*) 1820 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1821 esac 1822 case $ac_pass in 1823 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1824 2) 1825 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1826 if test $ac_must_keep_next = true; then 1827 ac_must_keep_next=false # Got value, back to normal. 1828 else 1829 case $ac_arg in 1830 *=* | --config-cache | -C | -disable-* | --disable-* \ 1831 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1832 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1833 | -with-* | --with-* | -without-* | --without-* | --x) 1834 case "$ac_configure_args0 " in 1835 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1836 esac 1837 ;; 1838 -* ) ac_must_keep_next=true ;; 1839 esac 1840 fi 1841 ac_configure_args="$ac_configure_args '$ac_arg'" 1842 ;; 1843 esac 1844 done 1845done 1846$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1847$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1848 1849# When interrupted or exit'd, cleanup temporary files, and complete 1850# config.log. We remove comments because anyway the quotes in there 1851# would cause problems or look ugly. 1852# WARNING: Use '\'' to represent an apostrophe within the trap. 1853# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1854trap 'exit_status=$? 1855 # Save into config.log some information that might help in debugging. 1856 { 1857 echo 1858 1859 cat <<\_ASBOX 1860## ---------------- ## 1861## Cache variables. ## 1862## ---------------- ## 1863_ASBOX 1864 echo 1865 # The following way of writing the cache mishandles newlines in values, 1866( 1867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1868 eval ac_val=\$$ac_var 1869 case $ac_val in #( 1870 *${as_nl}*) 1871 case $ac_var in #( 1872 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1873$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1874 esac 1875 case $ac_var in #( 1876 _ | IFS | as_nl) ;; #( 1877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1878 *) $as_unset $ac_var ;; 1879 esac ;; 1880 esac 1881 done 1882 (set) 2>&1 | 1883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1884 *${as_nl}ac_space=\ *) 1885 sed -n \ 1886 "s/'\''/'\''\\\\'\'''\''/g; 1887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1888 ;; #( 1889 *) 1890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1891 ;; 1892 esac | 1893 sort 1894) 1895 echo 1896 1897 cat <<\_ASBOX 1898## ----------------- ## 1899## Output variables. ## 1900## ----------------- ## 1901_ASBOX 1902 echo 1903 for ac_var in $ac_subst_vars 1904 do 1905 eval ac_val=\$$ac_var 1906 case $ac_val in 1907 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1908 esac 1909 $as_echo "$ac_var='\''$ac_val'\''" 1910 done | sort 1911 echo 1912 1913 if test -n "$ac_subst_files"; then 1914 cat <<\_ASBOX 1915## ------------------- ## 1916## File substitutions. ## 1917## ------------------- ## 1918_ASBOX 1919 echo 1920 for ac_var in $ac_subst_files 1921 do 1922 eval ac_val=\$$ac_var 1923 case $ac_val in 1924 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1925 esac 1926 $as_echo "$ac_var='\''$ac_val'\''" 1927 done | sort 1928 echo 1929 fi 1930 1931 if test -s confdefs.h; then 1932 cat <<\_ASBOX 1933## ----------- ## 1934## confdefs.h. ## 1935## ----------- ## 1936_ASBOX 1937 echo 1938 cat confdefs.h 1939 echo 1940 fi 1941 test "$ac_signal" != 0 && 1942 $as_echo "$as_me: caught signal $ac_signal" 1943 $as_echo "$as_me: exit $exit_status" 1944 } >&5 1945 rm -f core *.core core.conftest.* && 1946 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1947 exit $exit_status 1948' 0 1949for ac_signal in 1 2 13 15; do 1950 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1951done 1952ac_signal=0 1953 1954# confdefs.h avoids OS command line length limits that DEFS can exceed. 1955rm -f -r conftest* confdefs.h 1956 1957# Predefined preprocessor variables. 1958 1959cat >>confdefs.h <<_ACEOF 1960#define PACKAGE_NAME "$PACKAGE_NAME" 1961_ACEOF 1962 1963 1964cat >>confdefs.h <<_ACEOF 1965#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1966_ACEOF 1967 1968 1969cat >>confdefs.h <<_ACEOF 1970#define PACKAGE_VERSION "$PACKAGE_VERSION" 1971_ACEOF 1972 1973 1974cat >>confdefs.h <<_ACEOF 1975#define PACKAGE_STRING "$PACKAGE_STRING" 1976_ACEOF 1977 1978 1979cat >>confdefs.h <<_ACEOF 1980#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1981_ACEOF 1982 1983 1984# Let the site file select an alternate cache file if it wants to. 1985# Prefer an explicitly selected file to automatically selected ones. 1986ac_site_file1=NONE 1987ac_site_file2=NONE 1988if test -n "$CONFIG_SITE"; then 1989 ac_site_file1=$CONFIG_SITE 1990elif test "x$prefix" != xNONE; then 1991 ac_site_file1=$prefix/share/config.site 1992 ac_site_file2=$prefix/etc/config.site 1993else 1994 ac_site_file1=$ac_default_prefix/share/config.site 1995 ac_site_file2=$ac_default_prefix/etc/config.site 1996fi 1997for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1998do 1999 test "x$ac_site_file" = xNONE && continue 2000 if test -r "$ac_site_file"; then 2001 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2002$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2003 sed 's/^/| /' "$ac_site_file" >&5 2004 . "$ac_site_file" 2005 fi 2006done 2007 2008if test -r "$cache_file"; then 2009 # Some versions of bash will fail to source /dev/null (special 2010 # files actually), so we avoid doing that. 2011 if test -f "$cache_file"; then 2012 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2013$as_echo "$as_me: loading cache $cache_file" >&6;} 2014 case $cache_file in 2015 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2016 *) . "./$cache_file";; 2017 esac 2018 fi 2019else 2020 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2021$as_echo "$as_me: creating cache $cache_file" >&6;} 2022 >$cache_file 2023fi 2024 2025# Check that the precious variables saved in the cache have kept the same 2026# value. 2027ac_cache_corrupted=false 2028for ac_var in $ac_precious_vars; do 2029 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2030 eval ac_new_set=\$ac_env_${ac_var}_set 2031 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2032 eval ac_new_val=\$ac_env_${ac_var}_value 2033 case $ac_old_set,$ac_new_set in 2034 set,) 2035 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2036$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2037 ac_cache_corrupted=: ;; 2038 ,set) 2039 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2040$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2041 ac_cache_corrupted=: ;; 2042 ,);; 2043 *) 2044 if test "x$ac_old_val" != "x$ac_new_val"; then 2045 # differences in whitespace do not lead to failure. 2046 ac_old_val_w=`echo x $ac_old_val` 2047 ac_new_val_w=`echo x $ac_new_val` 2048 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2049 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2050$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2051 ac_cache_corrupted=: 2052 else 2053 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2054$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2055 eval $ac_var=\$ac_old_val 2056 fi 2057 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2058$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2059 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2060$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2061 fi;; 2062 esac 2063 # Pass precious variables to config.status. 2064 if test "$ac_new_set" = set; then 2065 case $ac_new_val in 2066 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2067 *) ac_arg=$ac_var=$ac_new_val ;; 2068 esac 2069 case " $ac_configure_args " in 2070 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2071 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2072 esac 2073 fi 2074done 2075if $ac_cache_corrupted; then 2076 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2078 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2079$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2080 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2081$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2082 { (exit 1); exit 1; }; } 2083fi 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101ac_ext=c 2102ac_cpp='$CPP $CPPFLAGS' 2103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2105ac_compiler_gnu=$ac_cv_c_compiler_gnu 2106 2107 2108am__api_version='1.10' 2109 2110ac_aux_dir= 2111for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2112 if test -f "$ac_dir/install-sh"; then 2113 ac_aux_dir=$ac_dir 2114 ac_install_sh="$ac_aux_dir/install-sh -c" 2115 break 2116 elif test -f "$ac_dir/install.sh"; then 2117 ac_aux_dir=$ac_dir 2118 ac_install_sh="$ac_aux_dir/install.sh -c" 2119 break 2120 elif test -f "$ac_dir/shtool"; then 2121 ac_aux_dir=$ac_dir 2122 ac_install_sh="$ac_aux_dir/shtool install -c" 2123 break 2124 fi 2125done 2126if test -z "$ac_aux_dir"; then 2127 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2128$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2129 { (exit 1); exit 1; }; } 2130fi 2131 2132# These three variables are undocumented and unsupported, 2133# and are intended to be withdrawn in a future Autoconf release. 2134# They can cause serious problems if a builder's source tree is in a directory 2135# whose full name contains unusual characters. 2136ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2137ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2138ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2139 2140 2141# Find a good install program. We prefer a C program (faster), 2142# so one script is as good as another. But avoid the broken or 2143# incompatible versions: 2144# SysV /etc/install, /usr/sbin/install 2145# SunOS /usr/etc/install 2146# IRIX /sbin/install 2147# AIX /bin/install 2148# AmigaOS /C/install, which installs bootblocks on floppy discs 2149# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2150# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2151# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2152# OS/2's system install, which has a completely different semantic 2153# ./install, which can be erroneously created by make from ./install.sh. 2154# Reject install programs that cannot install multiple files. 2155{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2156$as_echo_n "checking for a BSD-compatible install... " >&6; } 2157if test -z "$INSTALL"; then 2158if test "${ac_cv_path_install+set}" = set; then 2159 $as_echo_n "(cached) " >&6 2160else 2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2162for as_dir in $PATH 2163do 2164 IFS=$as_save_IFS 2165 test -z "$as_dir" && as_dir=. 2166 # Account for people who put trailing slashes in PATH elements. 2167case $as_dir/ in 2168 ./ | .// | /cC/* | \ 2169 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2170 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2171 /usr/ucb/* ) ;; 2172 *) 2173 # OSF1 and SCO ODT 3.0 have their own names for install. 2174 # Don't use installbsd from OSF since it installs stuff as root 2175 # by default. 2176 for ac_prog in ginstall scoinst install; do 2177 for ac_exec_ext in '' $ac_executable_extensions; do 2178 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2179 if test $ac_prog = install && 2180 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2181 # AIX install. It has an incompatible calling convention. 2182 : 2183 elif test $ac_prog = install && 2184 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2185 # program-specific install script used by HP pwplus--don't use. 2186 : 2187 else 2188 rm -rf conftest.one conftest.two conftest.dir 2189 echo one > conftest.one 2190 echo two > conftest.two 2191 mkdir conftest.dir 2192 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2193 test -s conftest.one && test -s conftest.two && 2194 test -s conftest.dir/conftest.one && 2195 test -s conftest.dir/conftest.two 2196 then 2197 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2198 break 3 2199 fi 2200 fi 2201 fi 2202 done 2203 done 2204 ;; 2205esac 2206 2207done 2208IFS=$as_save_IFS 2209 2210rm -rf conftest.one conftest.two conftest.dir 2211 2212fi 2213 if test "${ac_cv_path_install+set}" = set; then 2214 INSTALL=$ac_cv_path_install 2215 else 2216 # As a last resort, use the slow shell script. Don't cache a 2217 # value for INSTALL within a source directory, because that will 2218 # break other packages using the cache if that directory is 2219 # removed, or if the value is a relative name. 2220 INSTALL=$ac_install_sh 2221 fi 2222fi 2223{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2224$as_echo "$INSTALL" >&6; } 2225 2226# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2227# It thinks the first close brace ends the variable substitution. 2228test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2229 2230test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2231 2232test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2233 2234{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2235$as_echo_n "checking whether build environment is sane... " >&6; } 2236# Just in case 2237sleep 1 2238echo timestamp > conftest.file 2239# Do `set' in a subshell so we don't clobber the current shell's 2240# arguments. Must try -L first in case configure is actually a 2241# symlink; some systems play weird games with the mod time of symlinks 2242# (eg FreeBSD returns the mod time of the symlink's containing 2243# directory). 2244if ( 2245 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2246 if test "$*" = "X"; then 2247 # -L didn't work. 2248 set X `ls -t $srcdir/configure conftest.file` 2249 fi 2250 rm -f conftest.file 2251 if test "$*" != "X $srcdir/configure conftest.file" \ 2252 && test "$*" != "X conftest.file $srcdir/configure"; then 2253 2254 # If neither matched, then we have a broken ls. This can happen 2255 # if, for instance, CONFIG_SHELL is bash and it inherits a 2256 # broken ls alias from the environment. This has actually 2257 # happened. Such a system could not be considered "sane". 2258 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2259alias in your environment" >&5 2260$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2261alias in your environment" >&2;} 2262 { (exit 1); exit 1; }; } 2263 fi 2264 2265 test "$2" = conftest.file 2266 ) 2267then 2268 # Ok. 2269 : 2270else 2271 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2272Check your system clock" >&5 2273$as_echo "$as_me: error: newly created file is older than distributed files! 2274Check your system clock" >&2;} 2275 { (exit 1); exit 1; }; } 2276fi 2277{ $as_echo "$as_me:$LINENO: result: yes" >&5 2278$as_echo "yes" >&6; } 2279test "$program_prefix" != NONE && 2280 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2281# Use a double $ so make ignores it. 2282test "$program_suffix" != NONE && 2283 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2284# Double any \ or $. 2285# By default was `s,x,x', remove it if useless. 2286ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2287program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2288 2289# expand $ac_aux_dir to an absolute path 2290am_aux_dir=`cd $ac_aux_dir && pwd` 2291 2292test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2293# Use eval to expand $SHELL 2294if eval "$MISSING --run true"; then 2295 am_missing_run="$MISSING --run " 2296else 2297 am_missing_run= 2298 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2299$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2300fi 2301 2302{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2303$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2304if test -z "$MKDIR_P"; then 2305 if test "${ac_cv_path_mkdir+set}" = set; then 2306 $as_echo_n "(cached) " >&6 2307else 2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2310do 2311 IFS=$as_save_IFS 2312 test -z "$as_dir" && as_dir=. 2313 for ac_prog in mkdir gmkdir; do 2314 for ac_exec_ext in '' $ac_executable_extensions; do 2315 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2316 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2317 'mkdir (GNU coreutils) '* | \ 2318 'mkdir (coreutils) '* | \ 2319 'mkdir (fileutils) '4.1*) 2320 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2321 break 3;; 2322 esac 2323 done 2324 done 2325done 2326IFS=$as_save_IFS 2327 2328fi 2329 2330 if test "${ac_cv_path_mkdir+set}" = set; then 2331 MKDIR_P="$ac_cv_path_mkdir -p" 2332 else 2333 # As a last resort, use the slow shell script. Don't cache a 2334 # value for MKDIR_P within a source directory, because that will 2335 # break other packages using the cache if that directory is 2336 # removed, or if the value is a relative name. 2337 test -d ./--version && rmdir ./--version 2338 MKDIR_P="$ac_install_sh -d" 2339 fi 2340fi 2341{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2342$as_echo "$MKDIR_P" >&6; } 2343 2344mkdir_p="$MKDIR_P" 2345case $mkdir_p in 2346 [\\/$]* | ?:[\\/]*) ;; 2347 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2348esac 2349 2350for ac_prog in gawk mawk nawk awk 2351do 2352 # Extract the first word of "$ac_prog", so it can be a program name with args. 2353set dummy $ac_prog; ac_word=$2 2354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2355$as_echo_n "checking for $ac_word... " >&6; } 2356if test "${ac_cv_prog_AWK+set}" = set; then 2357 $as_echo_n "(cached) " >&6 2358else 2359 if test -n "$AWK"; then 2360 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2361else 2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2363for as_dir in $PATH 2364do 2365 IFS=$as_save_IFS 2366 test -z "$as_dir" && as_dir=. 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2369 ac_cv_prog_AWK="$ac_prog" 2370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2371 break 2 2372 fi 2373done 2374done 2375IFS=$as_save_IFS 2376 2377fi 2378fi 2379AWK=$ac_cv_prog_AWK 2380if test -n "$AWK"; then 2381 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2382$as_echo "$AWK" >&6; } 2383else 2384 { $as_echo "$as_me:$LINENO: result: no" >&5 2385$as_echo "no" >&6; } 2386fi 2387 2388 2389 test -n "$AWK" && break 2390done 2391 2392{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2393$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2394set x ${MAKE-make} 2395ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2396if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2397 $as_echo_n "(cached) " >&6 2398else 2399 cat >conftest.make <<\_ACEOF 2400SHELL = /bin/sh 2401all: 2402 @echo '@@@%%%=$(MAKE)=@@@%%%' 2403_ACEOF 2404# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2405case `${MAKE-make} -f conftest.make 2>/dev/null` in 2406 *@@@%%%=?*=@@@%%%*) 2407 eval ac_cv_prog_make_${ac_make}_set=yes;; 2408 *) 2409 eval ac_cv_prog_make_${ac_make}_set=no;; 2410esac 2411rm -f conftest.make 2412fi 2413if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2414 { $as_echo "$as_me:$LINENO: result: yes" >&5 2415$as_echo "yes" >&6; } 2416 SET_MAKE= 2417else 2418 { $as_echo "$as_me:$LINENO: result: no" >&5 2419$as_echo "no" >&6; } 2420 SET_MAKE="MAKE=${MAKE-make}" 2421fi 2422 2423rm -rf .tst 2>/dev/null 2424mkdir .tst 2>/dev/null 2425if test -d .tst; then 2426 am__leading_dot=. 2427else 2428 am__leading_dot=_ 2429fi 2430rmdir .tst 2>/dev/null 2431 2432if test "`cd $srcdir && pwd`" != "`pwd`"; then 2433 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2434 # is not polluted with repeated "-I." 2435 am__isrc=' -I$(srcdir)' 2436 # test to see if srcdir already configured 2437 if test -f $srcdir/config.status; then 2438 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2439$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2440 { (exit 1); exit 1; }; } 2441 fi 2442fi 2443 2444# test whether we have cygpath 2445if test -z "$CYGPATH_W"; then 2446 if (cygpath --version) >/dev/null 2>/dev/null; then 2447 CYGPATH_W='cygpath -w' 2448 else 2449 CYGPATH_W=echo 2450 fi 2451fi 2452 2453 2454# Define the identity of the package. 2455 PACKAGE=Pixie 2456 VERSION=2.2.6 2457 2458 2459cat >>confdefs.h <<_ACEOF 2460#define PACKAGE "$PACKAGE" 2461_ACEOF 2462 2463 2464cat >>confdefs.h <<_ACEOF 2465#define VERSION "$VERSION" 2466_ACEOF 2467 2468# Some tools Automake needs. 2469 2470ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2471 2472 2473AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2474 2475 2476AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2477 2478 2479AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2480 2481 2482MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2483 2484install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2485 2486# Installed binaries are usually stripped using `strip' when the user 2487# run `make install-strip'. However `strip' might not be the right 2488# tool to use in cross-compilation environments, therefore Automake 2489# will honor the `STRIP' environment variable to overrule this program. 2490if test "$cross_compiling" != no; then 2491 if test -n "$ac_tool_prefix"; then 2492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2493set dummy ${ac_tool_prefix}strip; ac_word=$2 2494{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2495$as_echo_n "checking for $ac_word... " >&6; } 2496if test "${ac_cv_prog_STRIP+set}" = set; then 2497 $as_echo_n "(cached) " >&6 2498else 2499 if test -n "$STRIP"; then 2500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2501else 2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503for as_dir in $PATH 2504do 2505 IFS=$as_save_IFS 2506 test -z "$as_dir" && as_dir=. 2507 for ac_exec_ext in '' $ac_executable_extensions; do 2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2509 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2511 break 2 2512 fi 2513done 2514done 2515IFS=$as_save_IFS 2516 2517fi 2518fi 2519STRIP=$ac_cv_prog_STRIP 2520if test -n "$STRIP"; then 2521 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2522$as_echo "$STRIP" >&6; } 2523else 2524 { $as_echo "$as_me:$LINENO: result: no" >&5 2525$as_echo "no" >&6; } 2526fi 2527 2528 2529fi 2530if test -z "$ac_cv_prog_STRIP"; then 2531 ac_ct_STRIP=$STRIP 2532 # Extract the first word of "strip", so it can be a program name with args. 2533set dummy strip; ac_word=$2 2534{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2535$as_echo_n "checking for $ac_word... " >&6; } 2536if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2537 $as_echo_n "(cached) " >&6 2538else 2539 if test -n "$ac_ct_STRIP"; then 2540 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2541else 2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2549 ac_cv_prog_ac_ct_STRIP="strip" 2550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2551 break 2 2552 fi 2553done 2554done 2555IFS=$as_save_IFS 2556 2557fi 2558fi 2559ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2560if test -n "$ac_ct_STRIP"; then 2561 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2562$as_echo "$ac_ct_STRIP" >&6; } 2563else 2564 { $as_echo "$as_me:$LINENO: result: no" >&5 2565$as_echo "no" >&6; } 2566fi 2567 2568 if test "x$ac_ct_STRIP" = x; then 2569 STRIP=":" 2570 else 2571 case $cross_compiling:$ac_tool_warned in 2572yes:) 2573{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2575ac_tool_warned=yes ;; 2576esac 2577 STRIP=$ac_ct_STRIP 2578 fi 2579else 2580 STRIP="$ac_cv_prog_STRIP" 2581fi 2582 2583fi 2584INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2585 2586# We need awk for the "check" target. The system "awk" is bad on 2587# some platforms. 2588# Always define AMTAR for backward compatibility. 2589 2590AMTAR=${AMTAR-"${am_missing_run}tar"} 2591 2592am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2593 2594 2595 2596 2597 2598ac_config_headers="$ac_config_headers config.h" 2599 2600 2601 2602 2603ac_ext=c 2604ac_cpp='$CPP $CPPFLAGS' 2605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2607ac_compiler_gnu=$ac_cv_c_compiler_gnu 2608if test -n "$ac_tool_prefix"; then 2609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2610set dummy ${ac_tool_prefix}gcc; ac_word=$2 2611{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2612$as_echo_n "checking for $ac_word... " >&6; } 2613if test "${ac_cv_prog_CC+set}" = set; then 2614 $as_echo_n "(cached) " >&6 2615else 2616 if test -n "$CC"; then 2617 ac_cv_prog_CC="$CC" # Let the user override the test. 2618else 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 for ac_exec_ext in '' $ac_executable_extensions; do 2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2626 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2628 break 2 2629 fi 2630done 2631done 2632IFS=$as_save_IFS 2633 2634fi 2635fi 2636CC=$ac_cv_prog_CC 2637if test -n "$CC"; then 2638 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2639$as_echo "$CC" >&6; } 2640else 2641 { $as_echo "$as_me:$LINENO: result: no" >&5 2642$as_echo "no" >&6; } 2643fi 2644 2645 2646fi 2647if test -z "$ac_cv_prog_CC"; then 2648 ac_ct_CC=$CC 2649 # Extract the first word of "gcc", so it can be a program name with args. 2650set dummy gcc; ac_word=$2 2651{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2652$as_echo_n "checking for $ac_word... " >&6; } 2653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2654 $as_echo_n "(cached) " >&6 2655else 2656 if test -n "$ac_ct_CC"; then 2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2658else 2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660for as_dir in $PATH 2661do 2662 IFS=$as_save_IFS 2663 test -z "$as_dir" && as_dir=. 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2666 ac_cv_prog_ac_ct_CC="gcc" 2667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2668 break 2 2669 fi 2670done 2671done 2672IFS=$as_save_IFS 2673 2674fi 2675fi 2676ac_ct_CC=$ac_cv_prog_ac_ct_CC 2677if test -n "$ac_ct_CC"; then 2678 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2679$as_echo "$ac_ct_CC" >&6; } 2680else 2681 { $as_echo "$as_me:$LINENO: result: no" >&5 2682$as_echo "no" >&6; } 2683fi 2684 2685 if test "x$ac_ct_CC" = x; then 2686 CC="" 2687 else 2688 case $cross_compiling:$ac_tool_warned in 2689yes:) 2690{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2692ac_tool_warned=yes ;; 2693esac 2694 CC=$ac_ct_CC 2695 fi 2696else 2697 CC="$ac_cv_prog_CC" 2698fi 2699 2700if test -z "$CC"; then 2701 if test -n "$ac_tool_prefix"; then 2702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2703set dummy ${ac_tool_prefix}cc; ac_word=$2 2704{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2705$as_echo_n "checking for $ac_word... " >&6; } 2706if test "${ac_cv_prog_CC+set}" = set; then 2707 $as_echo_n "(cached) " >&6 2708else 2709 if test -n "$CC"; then 2710 ac_cv_prog_CC="$CC" # Let the user override the test. 2711else 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 test -z "$as_dir" && as_dir=. 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2719 ac_cv_prog_CC="${ac_tool_prefix}cc" 2720 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2721 break 2 2722 fi 2723done 2724done 2725IFS=$as_save_IFS 2726 2727fi 2728fi 2729CC=$ac_cv_prog_CC 2730if test -n "$CC"; then 2731 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2732$as_echo "$CC" >&6; } 2733else 2734 { $as_echo "$as_me:$LINENO: result: no" >&5 2735$as_echo "no" >&6; } 2736fi 2737 2738 2739 fi 2740fi 2741if test -z "$CC"; then 2742 # Extract the first word of "cc", so it can be a program name with args. 2743set dummy cc; ac_word=$2 2744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2745$as_echo_n "checking for $ac_word... " >&6; } 2746if test "${ac_cv_prog_CC+set}" = set; then 2747 $as_echo_n "(cached) " >&6 2748else 2749 if test -n "$CC"; then 2750 ac_cv_prog_CC="$CC" # Let the user override the test. 2751else 2752 ac_prog_rejected=no 2753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2754for as_dir in $PATH 2755do 2756 IFS=$as_save_IFS 2757 test -z "$as_dir" && as_dir=. 2758 for ac_exec_ext in '' $ac_executable_extensions; do 2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2761 ac_prog_rejected=yes 2762 continue 2763 fi 2764 ac_cv_prog_CC="cc" 2765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2766 break 2 2767 fi 2768done 2769done 2770IFS=$as_save_IFS 2771 2772if test $ac_prog_rejected = yes; then 2773 # We found a bogon in the path, so make sure we never use it. 2774 set dummy $ac_cv_prog_CC 2775 shift 2776 if test $# != 0; then 2777 # We chose a different compiler from the bogus one. 2778 # However, it has the same basename, so the bogon will be chosen 2779 # first if we set CC to just the basename; use the full file name. 2780 shift 2781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2782 fi 2783fi 2784fi 2785fi 2786CC=$ac_cv_prog_CC 2787if test -n "$CC"; then 2788 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2789$as_echo "$CC" >&6; } 2790else 2791 { $as_echo "$as_me:$LINENO: result: no" >&5 2792$as_echo "no" >&6; } 2793fi 2794 2795 2796fi 2797if test -z "$CC"; then 2798 if test -n "$ac_tool_prefix"; then 2799 for ac_prog in cl.exe 2800 do 2801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2802set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2803{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2804$as_echo_n "checking for $ac_word... " >&6; } 2805if test "${ac_cv_prog_CC+set}" = set; then 2806 $as_echo_n "(cached) " >&6 2807else 2808 if test -n "$CC"; then 2809 ac_cv_prog_CC="$CC" # Let the user override the test. 2810else 2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812for as_dir in $PATH 2813do 2814 IFS=$as_save_IFS 2815 test -z "$as_dir" && as_dir=. 2816 for ac_exec_ext in '' $ac_executable_extensions; do 2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2819 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2820 break 2 2821 fi 2822done 2823done 2824IFS=$as_save_IFS 2825 2826fi 2827fi 2828CC=$ac_cv_prog_CC 2829if test -n "$CC"; then 2830 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2831$as_echo "$CC" >&6; } 2832else 2833 { $as_echo "$as_me:$LINENO: result: no" >&5 2834$as_echo "no" >&6; } 2835fi 2836 2837 2838 test -n "$CC" && break 2839 done 2840fi 2841if test -z "$CC"; then 2842 ac_ct_CC=$CC 2843 for ac_prog in cl.exe 2844do 2845 # Extract the first word of "$ac_prog", so it can be a program name with args. 2846set dummy $ac_prog; ac_word=$2 2847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2848$as_echo_n "checking for $ac_word... " >&6; } 2849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2850 $as_echo_n "(cached) " >&6 2851else 2852 if test -n "$ac_ct_CC"; then 2853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2854else 2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856for as_dir in $PATH 2857do 2858 IFS=$as_save_IFS 2859 test -z "$as_dir" && as_dir=. 2860 for ac_exec_ext in '' $ac_executable_extensions; do 2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2862 ac_cv_prog_ac_ct_CC="$ac_prog" 2863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2864 break 2 2865 fi 2866done 2867done 2868IFS=$as_save_IFS 2869 2870fi 2871fi 2872ac_ct_CC=$ac_cv_prog_ac_ct_CC 2873if test -n "$ac_ct_CC"; then 2874 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2875$as_echo "$ac_ct_CC" >&6; } 2876else 2877 { $as_echo "$as_me:$LINENO: result: no" >&5 2878$as_echo "no" >&6; } 2879fi 2880 2881 2882 test -n "$ac_ct_CC" && break 2883done 2884 2885 if test "x$ac_ct_CC" = x; then 2886 CC="" 2887 else 2888 case $cross_compiling:$ac_tool_warned in 2889yes:) 2890{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2892ac_tool_warned=yes ;; 2893esac 2894 CC=$ac_ct_CC 2895 fi 2896fi 2897 2898fi 2899 2900 2901test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2903{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2904See \`config.log' for more details." >&5 2905$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2906See \`config.log' for more details." >&2;} 2907 { (exit 1); exit 1; }; }; } 2908 2909# Provide some information about the compiler. 2910$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2911set X $ac_compile 2912ac_compiler=$2 2913{ (ac_try="$ac_compiler --version >&5" 2914case "(($ac_try" in 2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2916 *) ac_try_echo=$ac_try;; 2917esac 2918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2919$as_echo "$ac_try_echo") >&5 2920 (eval "$ac_compiler --version >&5") 2>&5 2921 ac_status=$? 2922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2923 (exit $ac_status); } 2924{ (ac_try="$ac_compiler -v >&5" 2925case "(($ac_try" in 2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2927 *) ac_try_echo=$ac_try;; 2928esac 2929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2930$as_echo "$ac_try_echo") >&5 2931 (eval "$ac_compiler -v >&5") 2>&5 2932 ac_status=$? 2933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); } 2935{ (ac_try="$ac_compiler -V >&5" 2936case "(($ac_try" in 2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2938 *) ac_try_echo=$ac_try;; 2939esac 2940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2941$as_echo "$ac_try_echo") >&5 2942 (eval "$ac_compiler -V >&5") 2>&5 2943 ac_status=$? 2944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); } 2946 2947cat >conftest.$ac_ext <<_ACEOF 2948/* confdefs.h. */ 2949_ACEOF 2950cat confdefs.h >>conftest.$ac_ext 2951cat >>conftest.$ac_ext <<_ACEOF 2952/* end confdefs.h. */ 2953 2954int 2955main () 2956{ 2957 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962ac_clean_files_save=$ac_clean_files 2963ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2964# Try to create an executable without -o first, disregard a.out. 2965# It will help us diagnose broken compilers, and finding out an intuition 2966# of exeext. 2967{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2968$as_echo_n "checking for C compiler default output file name... " >&6; } 2969ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2970 2971# The possible output files: 2972ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2973 2974ac_rmfiles= 2975for ac_file in $ac_files 2976do 2977 case $ac_file in 2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2979 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2980 esac 2981done 2982rm -f $ac_rmfiles 2983 2984if { (ac_try="$ac_link_default" 2985case "(($ac_try" in 2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2987 *) ac_try_echo=$ac_try;; 2988esac 2989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2990$as_echo "$ac_try_echo") >&5 2991 (eval "$ac_link_default") 2>&5 2992 ac_status=$? 2993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); }; then 2995 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2996# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2997# in a Makefile. We should not override ac_cv_exeext if it was cached, 2998# so that the user can short-circuit this test for compilers unknown to 2999# Autoconf. 3000for ac_file in $ac_files '' 3001do 3002 test -f "$ac_file" || continue 3003 case $ac_file in 3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3005 ;; 3006 [ab].out ) 3007 # We found the default executable, but exeext='' is most 3008 # certainly right. 3009 break;; 3010 *.* ) 3011 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3012 then :; else 3013 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3014 fi 3015 # We set ac_cv_exeext here because the later test for it is not 3016 # safe: cross compilers may not add the suffix if given an `-o' 3017 # argument, so we may need to know it at that point already. 3018 # Even if this section looks crufty: it has the advantage of 3019 # actually working. 3020 break;; 3021 * ) 3022 break;; 3023 esac 3024done 3025test "$ac_cv_exeext" = no && ac_cv_exeext= 3026 3027else 3028 ac_file='' 3029fi 3030 3031{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3032$as_echo "$ac_file" >&6; } 3033if test -z "$ac_file"; then 3034 $as_echo "$as_me: failed program was:" >&5 3035sed 's/^/| /' conftest.$ac_ext >&5 3036 3037{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3039{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3040See \`config.log' for more details." >&5 3041$as_echo "$as_me: error: C compiler cannot create executables 3042See \`config.log' for more details." >&2;} 3043 { (exit 77); exit 77; }; }; } 3044fi 3045 3046ac_exeext=$ac_cv_exeext 3047 3048# Check that the compiler produces executables we can run. If not, either 3049# the compiler is broken, or we cross compile. 3050{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3051$as_echo_n "checking whether the C compiler works... " >&6; } 3052# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3053# If not cross compiling, check that we can run a simple program. 3054if test "$cross_compiling" != yes; then 3055 if { ac_try='./$ac_file' 3056 { (case "(($ac_try" in 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *) ac_try_echo=$ac_try;; 3059esac 3060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3061$as_echo "$ac_try_echo") >&5 3062 (eval "$ac_try") 2>&5 3063 ac_status=$? 3064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); }; }; then 3066 cross_compiling=no 3067 else 3068 if test "$cross_compiling" = maybe; then 3069 cross_compiling=yes 3070 else 3071 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3073{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3074If you meant to cross compile, use \`--host'. 3075See \`config.log' for more details." >&5 3076$as_echo "$as_me: error: cannot run C compiled programs. 3077If you meant to cross compile, use \`--host'. 3078See \`config.log' for more details." >&2;} 3079 { (exit 1); exit 1; }; }; } 3080 fi 3081 fi 3082fi 3083{ $as_echo "$as_me:$LINENO: result: yes" >&5 3084$as_echo "yes" >&6; } 3085 3086rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3087ac_clean_files=$ac_clean_files_save 3088# Check that the compiler produces executables we can run. If not, either 3089# the compiler is broken, or we cross compile. 3090{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3091$as_echo_n "checking whether we are cross compiling... " >&6; } 3092{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3093$as_echo "$cross_compiling" >&6; } 3094 3095{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3096$as_echo_n "checking for suffix of executables... " >&6; } 3097if { (ac_try="$ac_link" 3098case "(($ac_try" in 3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100 *) ac_try_echo=$ac_try;; 3101esac 3102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3103$as_echo "$ac_try_echo") >&5 3104 (eval "$ac_link") 2>&5 3105 ac_status=$? 3106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); }; then 3108 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3109# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3110# work properly (i.e., refer to `conftest.exe'), while it won't with 3111# `rm'. 3112for ac_file in conftest.exe conftest conftest.*; do 3113 test -f "$ac_file" || continue 3114 case $ac_file in 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3117 break;; 3118 * ) break;; 3119 esac 3120done 3121else 3122 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3124{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3125See \`config.log' for more details." >&5 3126$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3127See \`config.log' for more details." >&2;} 3128 { (exit 1); exit 1; }; }; } 3129fi 3130 3131rm -f conftest$ac_cv_exeext 3132{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3133$as_echo "$ac_cv_exeext" >&6; } 3134 3135rm -f conftest.$ac_ext 3136EXEEXT=$ac_cv_exeext 3137ac_exeext=$EXEEXT 3138{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3139$as_echo_n "checking for suffix of object files... " >&6; } 3140if test "${ac_cv_objext+set}" = set; then 3141 $as_echo_n "(cached) " >&6 3142else 3143 cat >conftest.$ac_ext <<_ACEOF 3144/* confdefs.h. */ 3145_ACEOF 3146cat confdefs.h >>conftest.$ac_ext 3147cat >>conftest.$ac_ext <<_ACEOF 3148/* end confdefs.h. */ 3149 3150int 3151main () 3152{ 3153 3154 ; 3155 return 0; 3156} 3157_ACEOF 3158rm -f conftest.o conftest.obj 3159if { (ac_try="$ac_compile" 3160case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163esac 3164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3165$as_echo "$ac_try_echo") >&5 3166 (eval "$ac_compile") 2>&5 3167 ac_status=$? 3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3169 (exit $ac_status); }; then 3170 for ac_file in conftest.o conftest.obj conftest.*; do 3171 test -f "$ac_file" || continue; 3172 case $ac_file in 3173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3175 break;; 3176 esac 3177done 3178else 3179 $as_echo "$as_me: failed program was:" >&5 3180sed 's/^/| /' conftest.$ac_ext >&5 3181 3182{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3184{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3185See \`config.log' for more details." >&5 3186$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3187See \`config.log' for more details." >&2;} 3188 { (exit 1); exit 1; }; }; } 3189fi 3190 3191rm -f conftest.$ac_cv_objext conftest.$ac_ext 3192fi 3193{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3194$as_echo "$ac_cv_objext" >&6; } 3195OBJEXT=$ac_cv_objext 3196ac_objext=$OBJEXT 3197{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3198$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3199if test "${ac_cv_c_compiler_gnu+set}" = set; then 3200 $as_echo_n "(cached) " >&6 3201else 3202 cat >conftest.$ac_ext <<_ACEOF 3203/* confdefs.h. */ 3204_ACEOF 3205cat confdefs.h >>conftest.$ac_ext 3206cat >>conftest.$ac_ext <<_ACEOF 3207/* end confdefs.h. */ 3208 3209int 3210main () 3211{ 3212#ifndef __GNUC__ 3213 choke me 3214#endif 3215 3216 ; 3217 return 0; 3218} 3219_ACEOF 3220rm -f conftest.$ac_objext 3221if { (ac_try="$ac_compile" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3227$as_echo "$ac_try_echo") >&5 3228 (eval "$ac_compile") 2>conftest.er1 3229 ac_status=$? 3230 grep -v '^ *+' conftest.er1 >conftest.err 3231 rm -f conftest.er1 3232 cat conftest.err >&5 3233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); } && { 3235 test -z "$ac_c_werror_flag" || 3236 test ! -s conftest.err 3237 } && test -s conftest.$ac_objext; then 3238 ac_compiler_gnu=yes 3239else 3240 $as_echo "$as_me: failed program was:" >&5 3241sed 's/^/| /' conftest.$ac_ext >&5 3242 3243 ac_compiler_gnu=no 3244fi 3245 3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3247ac_cv_c_compiler_gnu=$ac_compiler_gnu 3248 3249fi 3250{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3251$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3252if test $ac_compiler_gnu = yes; then 3253 GCC=yes 3254else 3255 GCC= 3256fi 3257ac_test_CFLAGS=${CFLAGS+set} 3258ac_save_CFLAGS=$CFLAGS 3259{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3260$as_echo_n "checking whether $CC accepts -g... " >&6; } 3261if test "${ac_cv_prog_cc_g+set}" = set; then 3262 $as_echo_n "(cached) " >&6 3263else 3264 ac_save_c_werror_flag=$ac_c_werror_flag 3265 ac_c_werror_flag=yes 3266 ac_cv_prog_cc_g=no 3267 CFLAGS="-g" 3268 cat >conftest.$ac_ext <<_ACEOF 3269/* confdefs.h. */ 3270_ACEOF 3271cat confdefs.h >>conftest.$ac_ext 3272cat >>conftest.$ac_ext <<_ACEOF 3273/* end confdefs.h. */ 3274 3275int 3276main () 3277{ 3278 3279 ; 3280 return 0; 3281} 3282_ACEOF 3283rm -f conftest.$ac_objext 3284if { (ac_try="$ac_compile" 3285case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288esac 3289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3290$as_echo "$ac_try_echo") >&5 3291 (eval "$ac_compile") 2>conftest.er1 3292 ac_status=$? 3293 grep -v '^ *+' conftest.er1 >conftest.err 3294 rm -f conftest.er1 3295 cat conftest.err >&5 3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3297 (exit $ac_status); } && { 3298 test -z "$ac_c_werror_flag" || 3299 test ! -s conftest.err 3300 } && test -s conftest.$ac_objext; then 3301 ac_cv_prog_cc_g=yes 3302else 3303 $as_echo "$as_me: failed program was:" >&5 3304sed 's/^/| /' conftest.$ac_ext >&5 3305 3306 CFLAGS="" 3307 cat >conftest.$ac_ext <<_ACEOF 3308/* confdefs.h. */ 3309_ACEOF 3310cat confdefs.h >>conftest.$ac_ext 3311cat >>conftest.$ac_ext <<_ACEOF 3312/* end confdefs.h. */ 3313 3314int 3315main () 3316{ 3317 3318 ; 3319 return 0; 3320} 3321_ACEOF 3322rm -f conftest.$ac_objext 3323if { (ac_try="$ac_compile" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3329$as_echo "$ac_try_echo") >&5 3330 (eval "$ac_compile") 2>conftest.er1 3331 ac_status=$? 3332 grep -v '^ *+' conftest.er1 >conftest.err 3333 rm -f conftest.er1 3334 cat conftest.err >&5 3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } && { 3337 test -z "$ac_c_werror_flag" || 3338 test ! -s conftest.err 3339 } && test -s conftest.$ac_objext; then 3340 : 3341else 3342 $as_echo "$as_me: failed program was:" >&5 3343sed 's/^/| /' conftest.$ac_ext >&5 3344 3345 ac_c_werror_flag=$ac_save_c_werror_flag 3346 CFLAGS="-g" 3347 cat >conftest.$ac_ext <<_ACEOF 3348/* confdefs.h. */ 3349_ACEOF 3350cat confdefs.h >>conftest.$ac_ext 3351cat >>conftest.$ac_ext <<_ACEOF 3352/* end confdefs.h. */ 3353 3354int 3355main () 3356{ 3357 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362rm -f conftest.$ac_objext 3363if { (ac_try="$ac_compile" 3364case "(($ac_try" in 3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3366 *) ac_try_echo=$ac_try;; 3367esac 3368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3369$as_echo "$ac_try_echo") >&5 3370 (eval "$ac_compile") 2>conftest.er1 3371 ac_status=$? 3372 grep -v '^ *+' conftest.er1 >conftest.err 3373 rm -f conftest.er1 3374 cat conftest.err >&5 3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3376 (exit $ac_status); } && { 3377 test -z "$ac_c_werror_flag" || 3378 test ! -s conftest.err 3379 } && test -s conftest.$ac_objext; then 3380 ac_cv_prog_cc_g=yes 3381else 3382 $as_echo "$as_me: failed program was:" >&5 3383sed 's/^/| /' conftest.$ac_ext >&5 3384 3385 3386fi 3387 3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3389fi 3390 3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3392fi 3393 3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3395 ac_c_werror_flag=$ac_save_c_werror_flag 3396fi 3397{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3398$as_echo "$ac_cv_prog_cc_g" >&6; } 3399if test "$ac_test_CFLAGS" = set; then 3400 CFLAGS=$ac_save_CFLAGS 3401elif test $ac_cv_prog_cc_g = yes; then 3402 if test "$GCC" = yes; then 3403 CFLAGS="-g -O2" 3404 else 3405 CFLAGS="-g" 3406 fi 3407else 3408 if test "$GCC" = yes; then 3409 CFLAGS="-O2" 3410 else 3411 CFLAGS= 3412 fi 3413fi 3414{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3415$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3416if test "${ac_cv_prog_cc_c89+set}" = set; then 3417 $as_echo_n "(cached) " >&6 3418else 3419 ac_cv_prog_cc_c89=no 3420ac_save_CC=$CC 3421cat >conftest.$ac_ext <<_ACEOF 3422/* confdefs.h. */ 3423_ACEOF 3424cat confdefs.h >>conftest.$ac_ext 3425cat >>conftest.$ac_ext <<_ACEOF 3426/* end confdefs.h. */ 3427#include <stdarg.h> 3428#include <stdio.h> 3429#include <sys/types.h> 3430#include <sys/stat.h> 3431/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3432struct buf { int x; }; 3433FILE * (*rcsopen) (struct buf *, struct stat *, int); 3434static char *e (p, i) 3435 char **p; 3436 int i; 3437{ 3438 return p[i]; 3439} 3440static char *f (char * (*g) (char **, int), char **p, ...) 3441{ 3442 char *s; 3443 va_list v; 3444 va_start (v,p); 3445 s = g (p, va_arg (v,int)); 3446 va_end (v); 3447 return s; 3448} 3449 3450/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3451 function prototypes and stuff, but not '\xHH' hex character constants. 3452 These don't provoke an error unfortunately, instead are silently treated 3453 as 'x'. The following induces an error, until -std is added to get 3454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3455 array size at least. It's necessary to write '\x00'==0 to get something 3456 that's true only with -std. */ 3457int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3458 3459/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3460 inside strings and character constants. */ 3461#define FOO(x) 'x' 3462int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3463 3464int test (int i, double x); 3465struct s1 {int (*f) (int a);}; 3466struct s2 {int (*f) (double a);}; 3467int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3468int argc; 3469char **argv; 3470int 3471main () 3472{ 3473return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3474 ; 3475 return 0; 3476} 3477_ACEOF 3478for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3480do 3481 CC="$ac_save_CC $ac_arg" 3482 rm -f conftest.$ac_objext 3483if { (ac_try="$ac_compile" 3484case "(($ac_try" in 3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3486 *) ac_try_echo=$ac_try;; 3487esac 3488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3489$as_echo "$ac_try_echo") >&5 3490 (eval "$ac_compile") 2>conftest.er1 3491 ac_status=$? 3492 grep -v '^ *+' conftest.er1 >conftest.err 3493 rm -f conftest.er1 3494 cat conftest.err >&5 3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3496 (exit $ac_status); } && { 3497 test -z "$ac_c_werror_flag" || 3498 test ! -s conftest.err 3499 } && test -s conftest.$ac_objext; then 3500 ac_cv_prog_cc_c89=$ac_arg 3501else 3502 $as_echo "$as_me: failed program was:" >&5 3503sed 's/^/| /' conftest.$ac_ext >&5 3504 3505 3506fi 3507 3508rm -f core conftest.err conftest.$ac_objext 3509 test "x$ac_cv_prog_cc_c89" != "xno" && break 3510done 3511rm -f conftest.$ac_ext 3512CC=$ac_save_CC 3513 3514fi 3515# AC_CACHE_VAL 3516case "x$ac_cv_prog_cc_c89" in 3517 x) 3518 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3519$as_echo "none needed" >&6; } ;; 3520 xno) 3521 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3522$as_echo "unsupported" >&6; } ;; 3523 *) 3524 CC="$CC $ac_cv_prog_cc_c89" 3525 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3526$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3527esac 3528 3529 3530ac_ext=c 3531ac_cpp='$CPP $CPPFLAGS' 3532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3534ac_compiler_gnu=$ac_cv_c_compiler_gnu 3535DEPDIR="${am__leading_dot}deps" 3536 3537ac_config_commands="$ac_config_commands depfiles" 3538 3539 3540am_make=${MAKE-make} 3541cat > confinc << 'END' 3542am__doit: 3543 @echo done 3544.PHONY: am__doit 3545END 3546# If we don't find an include directive, just comment out the code. 3547{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3548$as_echo_n "checking for style of include used by $am_make... " >&6; } 3549am__include="#" 3550am__quote= 3551_am_result=none 3552# First try GNU make style include. 3553echo "include confinc" > confmf 3554# We grep out `Entering directory' and `Leaving directory' 3555# messages which can occur if `w' ends up in MAKEFLAGS. 3556# In particular we don't look at `^make:' because GNU make might 3557# be invoked under some other name (usually "gmake"), in which 3558# case it prints its new name instead of `make'. 3559if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3560 am__include=include 3561 am__quote= 3562 _am_result=GNU 3563fi 3564# Now try BSD make style include. 3565if test "$am__include" = "#"; then 3566 echo '.include "confinc"' > confmf 3567 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3568 am__include=.include 3569 am__quote="\"" 3570 _am_result=BSD 3571 fi 3572fi 3573 3574 3575{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3576$as_echo "$_am_result" >&6; } 3577rm -f confinc confmf 3578 3579# Check whether --enable-dependency-tracking was given. 3580if test "${enable_dependency_tracking+set}" = set; then 3581 enableval=$enable_dependency_tracking; 3582fi 3583 3584if test "x$enable_dependency_tracking" != xno; then 3585 am_depcomp="$ac_aux_dir/depcomp" 3586 AMDEPBACKSLASH='\' 3587fi 3588 if test "x$enable_dependency_tracking" != xno; then 3589 AMDEP_TRUE= 3590 AMDEP_FALSE='#' 3591else 3592 AMDEP_TRUE='#' 3593 AMDEP_FALSE= 3594fi 3595 3596 3597 3598depcc="$CC" am_compiler_list= 3599 3600{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3601$as_echo_n "checking dependency style of $depcc... " >&6; } 3602if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3603 $as_echo_n "(cached) " >&6 3604else 3605 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3606 # We make a subdir and do the tests there. Otherwise we can end up 3607 # making bogus files that we don't know about and never remove. For 3608 # instance it was reported that on HP-UX the gcc test will end up 3609 # making a dummy file named `D' -- because `-MD' means `put the output 3610 # in D'. 3611 mkdir conftest.dir 3612 # Copy depcomp to subdir because otherwise we won't find it if we're 3613 # using a relative directory. 3614 cp "$am_depcomp" conftest.dir 3615 cd conftest.dir 3616 # We will build objects and dependencies in a subdirectory because 3617 # it helps to detect inapplicable dependency modes. For instance 3618 # both Tru64's cc and ICC support -MD to output dependencies as a 3619 # side effect of compilation, but ICC will put the dependencies in 3620 # the current directory while Tru64 will put them in the object 3621 # directory. 3622 mkdir sub 3623 3624 am_cv_CC_dependencies_compiler_type=none 3625 if test "$am_compiler_list" = ""; then 3626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3627 fi 3628 for depmode in $am_compiler_list; do 3629 # Setup a source with many dependencies, because some compilers 3630 # like to wrap large dependency lists on column 80 (with \), and 3631 # we should not choose a depcomp mode which is confused by this. 3632 # 3633 # We need to recreate these files for each test, as the compiler may 3634 # overwrite some of them when testing with obscure command lines. 3635 # This happens at least with the AIX C compiler. 3636 : > sub/conftest.c 3637 for i in 1 2 3 4 5 6; do 3638 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3639 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3640 # Solaris 8's {/usr,}/bin/sh. 3641 touch sub/conftst$i.h 3642 done 3643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3644 3645 case $depmode in 3646 nosideeffect) 3647 # after this tag, mechanisms are not by side-effect, so they'll 3648 # only be used when explicitly requested 3649 if test "x$enable_dependency_tracking" = xyes; then 3650 continue 3651 else 3652 break 3653 fi 3654 ;; 3655 none) break ;; 3656 esac 3657 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3658 # mode. It turns out that the SunPro C++ compiler does not properly 3659 # handle `-M -o', and we need to detect this. 3660 if depmode=$depmode \ 3661 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3662 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3663 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3664 >/dev/null 2>conftest.err && 3665 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3667 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3669 # icc doesn't choke on unknown options, it will just issue warnings 3670 # or remarks (even with -Werror). So we grep stderr for any message 3671 # that says an option was ignored or not supported. 3672 # When given -MP, icc 7.0 and 7.1 complain thusly: 3673 # icc: Command line warning: ignoring option '-M'; no argument required 3674 # The diagnosis changed in icc 8.0: 3675 # icc: Command line remark: option '-MP' not supported 3676 if (grep 'ignoring option' conftest.err || 3677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3678 am_cv_CC_dependencies_compiler_type=$depmode 3679 break 3680 fi 3681 fi 3682 done 3683 3684 cd .. 3685 rm -rf conftest.dir 3686else 3687 am_cv_CC_dependencies_compiler_type=none 3688fi 3689 3690fi 3691{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3692$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3693CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3694 3695 if 3696 test "x$enable_dependency_tracking" != xno \ 3697 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3698 am__fastdepCC_TRUE= 3699 am__fastdepCC_FALSE='#' 3700else 3701 am__fastdepCC_TRUE='#' 3702 am__fastdepCC_FALSE= 3703fi 3704 3705 3706ac_ext=c 3707ac_cpp='$CPP $CPPFLAGS' 3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3710ac_compiler_gnu=$ac_cv_c_compiler_gnu 3711{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3712$as_echo_n "checking how to run the C preprocessor... " >&6; } 3713# On Suns, sometimes $CPP names a directory. 3714if test -n "$CPP" && test -d "$CPP"; then 3715 CPP= 3716fi 3717if test -z "$CPP"; then 3718 if test "${ac_cv_prog_CPP+set}" = set; then 3719 $as_echo_n "(cached) " >&6 3720else 3721 # Double quotes because CPP needs to be expanded 3722 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3723 do 3724 ac_preproc_ok=false 3725for ac_c_preproc_warn_flag in '' yes 3726do 3727 # Use a header file that comes with gcc, so configuring glibc 3728 # with a fresh cross-compiler works. 3729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3730 # <limits.h> exists even on freestanding compilers. 3731 # On the NeXT, cc -E runs the code through the compiler's parser, 3732 # not just through cpp. "Syntax error" is here to catch this case. 3733 cat >conftest.$ac_ext <<_ACEOF 3734/* confdefs.h. */ 3735_ACEOF 3736cat confdefs.h >>conftest.$ac_ext 3737cat >>conftest.$ac_ext <<_ACEOF 3738/* end confdefs.h. */ 3739#ifdef __STDC__ 3740# include <limits.h> 3741#else 3742# include <assert.h> 3743#endif 3744 Syntax error 3745_ACEOF 3746if { (ac_try="$ac_cpp conftest.$ac_ext" 3747case "(($ac_try" in 3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3749 *) ac_try_echo=$ac_try;; 3750esac 3751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3752$as_echo "$ac_try_echo") >&5 3753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3754 ac_status=$? 3755 grep -v '^ *+' conftest.er1 >conftest.err 3756 rm -f conftest.er1 3757 cat conftest.err >&5 3758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3759 (exit $ac_status); } >/dev/null && { 3760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3761 test ! -s conftest.err 3762 }; then 3763 : 3764else 3765 $as_echo "$as_me: failed program was:" >&5 3766sed 's/^/| /' conftest.$ac_ext >&5 3767 3768 # Broken: fails on valid input. 3769continue 3770fi 3771 3772rm -f conftest.err conftest.$ac_ext 3773 3774 # OK, works on sane cases. Now check whether nonexistent headers 3775 # can be detected and how. 3776 cat >conftest.$ac_ext <<_ACEOF 3777/* confdefs.h. */ 3778_ACEOF 3779cat confdefs.h >>conftest.$ac_ext 3780cat >>conftest.$ac_ext <<_ACEOF 3781/* end confdefs.h. */ 3782#include <ac_nonexistent.h> 3783_ACEOF 3784if { (ac_try="$ac_cpp conftest.$ac_ext" 3785case "(($ac_try" in 3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3787 *) ac_try_echo=$ac_try;; 3788esac 3789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3790$as_echo "$ac_try_echo") >&5 3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3792 ac_status=$? 3793 grep -v '^ *+' conftest.er1 >conftest.err 3794 rm -f conftest.er1 3795 cat conftest.err >&5 3796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3797 (exit $ac_status); } >/dev/null && { 3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3799 test ! -s conftest.err 3800 }; then 3801 # Broken: success on invalid input. 3802continue 3803else 3804 $as_echo "$as_me: failed program was:" >&5 3805sed 's/^/| /' conftest.$ac_ext >&5 3806 3807 # Passes both tests. 3808ac_preproc_ok=: 3809break 3810fi 3811 3812rm -f conftest.err conftest.$ac_ext 3813 3814done 3815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3816rm -f conftest.err conftest.$ac_ext 3817if $ac_preproc_ok; then 3818 break 3819fi 3820 3821 done 3822 ac_cv_prog_CPP=$CPP 3823 3824fi 3825 CPP=$ac_cv_prog_CPP 3826else 3827 ac_cv_prog_CPP=$CPP 3828fi 3829{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3830$as_echo "$CPP" >&6; } 3831ac_preproc_ok=false 3832for ac_c_preproc_warn_flag in '' yes 3833do 3834 # Use a header file that comes with gcc, so configuring glibc 3835 # with a fresh cross-compiler works. 3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3837 # <limits.h> exists even on freestanding compilers. 3838 # On the NeXT, cc -E runs the code through the compiler's parser, 3839 # not just through cpp. "Syntax error" is here to catch this case. 3840 cat >conftest.$ac_ext <<_ACEOF 3841/* confdefs.h. */ 3842_ACEOF 3843cat confdefs.h >>conftest.$ac_ext 3844cat >>conftest.$ac_ext <<_ACEOF 3845/* end confdefs.h. */ 3846#ifdef __STDC__ 3847# include <limits.h> 3848#else 3849# include <assert.h> 3850#endif 3851 Syntax error 3852_ACEOF 3853if { (ac_try="$ac_cpp conftest.$ac_ext" 3854case "(($ac_try" in 3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3856 *) ac_try_echo=$ac_try;; 3857esac 3858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3859$as_echo "$ac_try_echo") >&5 3860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3861 ac_status=$? 3862 grep -v '^ *+' conftest.er1 >conftest.err 3863 rm -f conftest.er1 3864 cat conftest.err >&5 3865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3866 (exit $ac_status); } >/dev/null && { 3867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3868 test ! -s conftest.err 3869 }; then 3870 : 3871else 3872 $as_echo "$as_me: failed program was:" >&5 3873sed 's/^/| /' conftest.$ac_ext >&5 3874 3875 # Broken: fails on valid input. 3876continue 3877fi 3878 3879rm -f conftest.err conftest.$ac_ext 3880 3881 # OK, works on sane cases. Now check whether nonexistent headers 3882 # can be detected and how. 3883 cat >conftest.$ac_ext <<_ACEOF 3884/* confdefs.h. */ 3885_ACEOF 3886cat confdefs.h >>conftest.$ac_ext 3887cat >>conftest.$ac_ext <<_ACEOF 3888/* end confdefs.h. */ 3889#include <ac_nonexistent.h> 3890_ACEOF 3891if { (ac_try="$ac_cpp conftest.$ac_ext" 3892case "(($ac_try" in 3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3894 *) ac_try_echo=$ac_try;; 3895esac 3896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3897$as_echo "$ac_try_echo") >&5 3898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3899 ac_status=$? 3900 grep -v '^ *+' conftest.er1 >conftest.err 3901 rm -f conftest.er1 3902 cat conftest.err >&5 3903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } >/dev/null && { 3905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3906 test ! -s conftest.err 3907 }; then 3908 # Broken: success on invalid input. 3909continue 3910else 3911 $as_echo "$as_me: failed program was:" >&5 3912sed 's/^/| /' conftest.$ac_ext >&5 3913 3914 # Passes both tests. 3915ac_preproc_ok=: 3916break 3917fi 3918 3919rm -f conftest.err conftest.$ac_ext 3920 3921done 3922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3923rm -f conftest.err conftest.$ac_ext 3924if $ac_preproc_ok; then 3925 : 3926else 3927 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3929{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3930See \`config.log' for more details." >&5 3931$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3932See \`config.log' for more details." >&2;} 3933 { (exit 1); exit 1; }; }; } 3934fi 3935 3936ac_ext=c 3937ac_cpp='$CPP $CPPFLAGS' 3938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3940ac_compiler_gnu=$ac_cv_c_compiler_gnu 3941 3942ac_ext=cpp 3943ac_cpp='$CXXCPP $CPPFLAGS' 3944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3947if test -z "$CXX"; then 3948 if test -n "$CCC"; then 3949 CXX=$CCC 3950 else 3951 if test -n "$ac_tool_prefix"; then 3952 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3953 do 3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3955set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3956{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3957$as_echo_n "checking for $ac_word... " >&6; } 3958if test "${ac_cv_prog_CXX+set}" = set; then 3959 $as_echo_n "(cached) " >&6 3960else 3961 if test -n "$CXX"; then 3962 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3963else 3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3965for as_dir in $PATH 3966do 3967 IFS=$as_save_IFS 3968 test -z "$as_dir" && as_dir=. 3969 for ac_exec_ext in '' $ac_executable_extensions; do 3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3971 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3973 break 2 3974 fi 3975done 3976done 3977IFS=$as_save_IFS 3978 3979fi 3980fi 3981CXX=$ac_cv_prog_CXX 3982if test -n "$CXX"; then 3983 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 3984$as_echo "$CXX" >&6; } 3985else 3986 { $as_echo "$as_me:$LINENO: result: no" >&5 3987$as_echo "no" >&6; } 3988fi 3989 3990 3991 test -n "$CXX" && break 3992 done 3993fi 3994if test -z "$CXX"; then 3995 ac_ct_CXX=$CXX 3996 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3997do 3998 # Extract the first word of "$ac_prog", so it can be a program name with args. 3999set dummy $ac_prog; ac_word=$2 4000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4001$as_echo_n "checking for $ac_word... " >&6; } 4002if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4003 $as_echo_n "(cached) " >&6 4004else 4005 if test -n "$ac_ct_CXX"; then 4006 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4007else 4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4009for as_dir in $PATH 4010do 4011 IFS=$as_save_IFS 4012 test -z "$as_dir" && as_dir=. 4013 for ac_exec_ext in '' $ac_executable_extensions; do 4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4015 ac_cv_prog_ac_ct_CXX="$ac_prog" 4016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4017 break 2 4018 fi 4019done 4020done 4021IFS=$as_save_IFS 4022 4023fi 4024fi 4025ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4026if test -n "$ac_ct_CXX"; then 4027 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4028$as_echo "$ac_ct_CXX" >&6; } 4029else 4030 { $as_echo "$as_me:$LINENO: result: no" >&5 4031$as_echo "no" >&6; } 4032fi 4033 4034 4035 test -n "$ac_ct_CXX" && break 4036done 4037 4038 if test "x$ac_ct_CXX" = x; then 4039 CXX="g++" 4040 else 4041 case $cross_compiling:$ac_tool_warned in 4042yes:) 4043{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4045ac_tool_warned=yes ;; 4046esac 4047 CXX=$ac_ct_CXX 4048 fi 4049fi 4050 4051 fi 4052fi 4053# Provide some information about the compiler. 4054$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 4055set X $ac_compile 4056ac_compiler=$2 4057{ (ac_try="$ac_compiler --version >&5" 4058case "(($ac_try" in 4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4060 *) ac_try_echo=$ac_try;; 4061esac 4062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4063$as_echo "$ac_try_echo") >&5 4064 (eval "$ac_compiler --version >&5") 2>&5 4065 ac_status=$? 4066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067 (exit $ac_status); } 4068{ (ac_try="$ac_compiler -v >&5" 4069case "(($ac_try" in 4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4071 *) ac_try_echo=$ac_try;; 4072esac 4073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4074$as_echo "$ac_try_echo") >&5 4075 (eval "$ac_compiler -v >&5") 2>&5 4076 ac_status=$? 4077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4078 (exit $ac_status); } 4079{ (ac_try="$ac_compiler -V >&5" 4080case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083esac 4084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4085$as_echo "$ac_try_echo") >&5 4086 (eval "$ac_compiler -V >&5") 2>&5 4087 ac_status=$? 4088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089 (exit $ac_status); } 4090 4091{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4092$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4093if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4094 $as_echo_n "(cached) " >&6 4095else 4096 cat >conftest.$ac_ext <<_ACEOF 4097/* confdefs.h. */ 4098_ACEOF 4099cat confdefs.h >>conftest.$ac_ext 4100cat >>conftest.$ac_ext <<_ACEOF 4101/* end confdefs.h. */ 4102 4103int 4104main () 4105{ 4106#ifndef __GNUC__ 4107 choke me 4108#endif 4109 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114rm -f conftest.$ac_objext 4115if { (ac_try="$ac_compile" 4116case "(($ac_try" in 4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4118 *) ac_try_echo=$ac_try;; 4119esac 4120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4121$as_echo "$ac_try_echo") >&5 4122 (eval "$ac_compile") 2>conftest.er1 4123 ac_status=$? 4124 grep -v '^ *+' conftest.er1 >conftest.err 4125 rm -f conftest.er1 4126 cat conftest.err >&5 4127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4128 (exit $ac_status); } && { 4129 test -z "$ac_cxx_werror_flag" || 4130 test ! -s conftest.err 4131 } && test -s conftest.$ac_objext; then 4132 ac_compiler_gnu=yes 4133else 4134 $as_echo "$as_me: failed program was:" >&5 4135sed 's/^/| /' conftest.$ac_ext >&5 4136 4137 ac_compiler_gnu=no 4138fi 4139 4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4141ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4142 4143fi 4144{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4145$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4146if test $ac_compiler_gnu = yes; then 4147 GXX=yes 4148else 4149 GXX= 4150fi 4151ac_test_CXXFLAGS=${CXXFLAGS+set} 4152ac_save_CXXFLAGS=$CXXFLAGS 4153{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4154$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4155if test "${ac_cv_prog_cxx_g+set}" = set; then 4156 $as_echo_n "(cached) " >&6 4157else 4158 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4159 ac_cxx_werror_flag=yes 4160 ac_cv_prog_cxx_g=no 4161 CXXFLAGS="-g" 4162 cat >conftest.$ac_ext <<_ACEOF 4163/* confdefs.h. */ 4164_ACEOF 4165cat confdefs.h >>conftest.$ac_ext 4166cat >>conftest.$ac_ext <<_ACEOF 4167/* end confdefs.h. */ 4168 4169int 4170main () 4171{ 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177rm -f conftest.$ac_objext 4178if { (ac_try="$ac_compile" 4179case "(($ac_try" in 4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4181 *) ac_try_echo=$ac_try;; 4182esac 4183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4184$as_echo "$ac_try_echo") >&5 4185 (eval "$ac_compile") 2>conftest.er1 4186 ac_status=$? 4187 grep -v '^ *+' conftest.er1 >conftest.err 4188 rm -f conftest.er1 4189 cat conftest.err >&5 4190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); } && { 4192 test -z "$ac_cxx_werror_flag" || 4193 test ! -s conftest.err 4194 } && test -s conftest.$ac_objext; then 4195 ac_cv_prog_cxx_g=yes 4196else 4197 $as_echo "$as_me: failed program was:" >&5 4198sed 's/^/| /' conftest.$ac_ext >&5 4199 4200 CXXFLAGS="" 4201 cat >conftest.$ac_ext <<_ACEOF 4202/* confdefs.h. */ 4203_ACEOF 4204cat confdefs.h >>conftest.$ac_ext 4205cat >>conftest.$ac_ext <<_ACEOF 4206/* end confdefs.h. */ 4207 4208int 4209main () 4210{ 4211 4212 ; 4213 return 0; 4214} 4215_ACEOF 4216rm -f conftest.$ac_objext 4217if { (ac_try="$ac_compile" 4218case "(($ac_try" in 4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4220 *) ac_try_echo=$ac_try;; 4221esac 4222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4223$as_echo "$ac_try_echo") >&5 4224 (eval "$ac_compile") 2>conftest.er1 4225 ac_status=$? 4226 grep -v '^ *+' conftest.er1 >conftest.err 4227 rm -f conftest.er1 4228 cat conftest.err >&5 4229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4230 (exit $ac_status); } && { 4231 test -z "$ac_cxx_werror_flag" || 4232 test ! -s conftest.err 4233 } && test -s conftest.$ac_objext; then 4234 : 4235else 4236 $as_echo "$as_me: failed program was:" >&5 4237sed 's/^/| /' conftest.$ac_ext >&5 4238 4239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4240 CXXFLAGS="-g" 4241 cat >conftest.$ac_ext <<_ACEOF 4242/* confdefs.h. */ 4243_ACEOF 4244cat confdefs.h >>conftest.$ac_ext 4245cat >>conftest.$ac_ext <<_ACEOF 4246/* end confdefs.h. */ 4247 4248int 4249main () 4250{ 4251 4252 ; 4253 return 0; 4254} 4255_ACEOF 4256rm -f conftest.$ac_objext 4257if { (ac_try="$ac_compile" 4258case "(($ac_try" in 4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4260 *) ac_try_echo=$ac_try;; 4261esac 4262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4263$as_echo "$ac_try_echo") >&5 4264 (eval "$ac_compile") 2>conftest.er1 4265 ac_status=$? 4266 grep -v '^ *+' conftest.er1 >conftest.err 4267 rm -f conftest.er1 4268 cat conftest.err >&5 4269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); } && { 4271 test -z "$ac_cxx_werror_flag" || 4272 test ! -s conftest.err 4273 } && test -s conftest.$ac_objext; then 4274 ac_cv_prog_cxx_g=yes 4275else 4276 $as_echo "$as_me: failed program was:" >&5 4277sed 's/^/| /' conftest.$ac_ext >&5 4278 4279 4280fi 4281 4282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4283fi 4284 4285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4286fi 4287 4288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4289 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4290fi 4291{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4292$as_echo "$ac_cv_prog_cxx_g" >&6; } 4293if test "$ac_test_CXXFLAGS" = set; then 4294 CXXFLAGS=$ac_save_CXXFLAGS 4295elif test $ac_cv_prog_cxx_g = yes; then 4296 if test "$GXX" = yes; then 4297 CXXFLAGS="-g -O2" 4298 else 4299 CXXFLAGS="-g" 4300 fi 4301else 4302 if test "$GXX" = yes; then 4303 CXXFLAGS="-O2" 4304 else 4305 CXXFLAGS= 4306 fi 4307fi 4308ac_ext=c 4309ac_cpp='$CPP $CPPFLAGS' 4310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4312ac_compiler_gnu=$ac_cv_c_compiler_gnu 4313 4314depcc="$CXX" am_compiler_list= 4315 4316{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4317$as_echo_n "checking dependency style of $depcc... " >&6; } 4318if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4319 $as_echo_n "(cached) " >&6 4320else 4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4322 # We make a subdir and do the tests there. Otherwise we can end up 4323 # making bogus files that we don't know about and never remove. For 4324 # instance it was reported that on HP-UX the gcc test will end up 4325 # making a dummy file named `D' -- because `-MD' means `put the output 4326 # in D'. 4327 mkdir conftest.dir 4328 # Copy depcomp to subdir because otherwise we won't find it if we're 4329 # using a relative directory. 4330 cp "$am_depcomp" conftest.dir 4331 cd conftest.dir 4332 # We will build objects and dependencies in a subdirectory because 4333 # it helps to detect inapplicable dependency modes. For instance 4334 # both Tru64's cc and ICC support -MD to output dependencies as a 4335 # side effect of compilation, but ICC will put the dependencies in 4336 # the current directory while Tru64 will put them in the object 4337 # directory. 4338 mkdir sub 4339 4340 am_cv_CXX_dependencies_compiler_type=none 4341 if test "$am_compiler_list" = ""; then 4342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4343 fi 4344 for depmode in $am_compiler_list; do 4345 # Setup a source with many dependencies, because some compilers 4346 # like to wrap large dependency lists on column 80 (with \), and 4347 # we should not choose a depcomp mode which is confused by this. 4348 # 4349 # We need to recreate these files for each test, as the compiler may 4350 # overwrite some of them when testing with obscure command lines. 4351 # This happens at least with the AIX C compiler. 4352 : > sub/conftest.c 4353 for i in 1 2 3 4 5 6; do 4354 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4355 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4356 # Solaris 8's {/usr,}/bin/sh. 4357 touch sub/conftst$i.h 4358 done 4359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4360 4361 case $depmode in 4362 nosideeffect) 4363 # after this tag, mechanisms are not by side-effect, so they'll 4364 # only be used when explicitly requested 4365 if test "x$enable_dependency_tracking" = xyes; then 4366 continue 4367 else 4368 break 4369 fi 4370 ;; 4371 none) break ;; 4372 esac 4373 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4374 # mode. It turns out that the SunPro C++ compiler does not properly 4375 # handle `-M -o', and we need to detect this. 4376 if depmode=$depmode \ 4377 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4378 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4379 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4380 >/dev/null 2>conftest.err && 4381 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4382 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4383 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4384 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4385 # icc doesn't choke on unknown options, it will just issue warnings 4386 # or remarks (even with -Werror). So we grep stderr for any message 4387 # that says an option was ignored or not supported. 4388 # When given -MP, icc 7.0 and 7.1 complain thusly: 4389 # icc: Command line warning: ignoring option '-M'; no argument required 4390 # The diagnosis changed in icc 8.0: 4391 # icc: Command line remark: option '-MP' not supported 4392 if (grep 'ignoring option' conftest.err || 4393 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4394 am_cv_CXX_dependencies_compiler_type=$depmode 4395 break 4396 fi 4397 fi 4398 done 4399 4400 cd .. 4401 rm -rf conftest.dir 4402else 4403 am_cv_CXX_dependencies_compiler_type=none 4404fi 4405 4406fi 4407{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4408$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4409CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4410 4411 if 4412 test "x$enable_dependency_tracking" != xno \ 4413 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4414 am__fastdepCXX_TRUE= 4415 am__fastdepCXX_FALSE='#' 4416else 4417 am__fastdepCXX_TRUE='#' 4418 am__fastdepCXX_FALSE= 4419fi 4420 4421 4422# Check whether --enable-static was given. 4423if test "${enable_static+set}" = set; then 4424 enableval=$enable_static; p=${PACKAGE-default} 4425 case $enableval in 4426 yes) enable_static=yes ;; 4427 no) enable_static=no ;; 4428 *) 4429 enable_static=no 4430 # Look at the argument we got. We use all the common list separators. 4431 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4432 for pkg in $enableval; do 4433 IFS="$lt_save_ifs" 4434 if test "X$pkg" = "X$p"; then 4435 enable_static=yes 4436 fi 4437 done 4438 IFS="$lt_save_ifs" 4439 ;; 4440 esac 4441else 4442 enable_static=no 4443fi 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453case `pwd` in 4454 *\ * | *\ *) 4455 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4456$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4457esac 4458 4459 4460 4461macro_version='2.2.6' 4462macro_revision='1.3012' 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476ltmain="$ac_aux_dir/ltmain.sh" 4477 4478# Make sure we can run config.sub. 4479$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4480 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4481$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4482 { (exit 1); exit 1; }; } 4483 4484{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4485$as_echo_n "checking build system type... " >&6; } 4486if test "${ac_cv_build+set}" = set; then 4487 $as_echo_n "(cached) " >&6 4488else 4489 ac_build_alias=$build_alias 4490test "x$ac_build_alias" = x && 4491 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4492test "x$ac_build_alias" = x && 4493 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4494$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4495 { (exit 1); exit 1; }; } 4496ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4497 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4498$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4499 { (exit 1); exit 1; }; } 4500 4501fi 4502{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4503$as_echo "$ac_cv_build" >&6; } 4504case $ac_cv_build in 4505*-*-*) ;; 4506*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4507$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4508 { (exit 1); exit 1; }; };; 4509esac 4510build=$ac_cv_build 4511ac_save_IFS=$IFS; IFS='-' 4512set x $ac_cv_build 4513shift 4514build_cpu=$1 4515build_vendor=$2 4516shift; shift 4517# Remember, the first character of IFS is used to create $*, 4518# except with old shells: 4519build_os=$* 4520IFS=$ac_save_IFS 4521case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4522 4523 4524{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4525$as_echo_n "checking host system type... " >&6; } 4526if test "${ac_cv_host+set}" = set; then 4527 $as_echo_n "(cached) " >&6 4528else 4529 if test "x$host_alias" = x; then 4530 ac_cv_host=$ac_cv_build 4531else 4532 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4533 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4534$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4535 { (exit 1); exit 1; }; } 4536fi 4537 4538fi 4539{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4540$as_echo "$ac_cv_host" >&6; } 4541case $ac_cv_host in 4542*-*-*) ;; 4543*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4544$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4545 { (exit 1); exit 1; }; };; 4546esac 4547host=$ac_cv_host 4548ac_save_IFS=$IFS; IFS='-' 4549set x $ac_cv_host 4550shift 4551host_cpu=$1 4552host_vendor=$2 4553shift; shift 4554# Remember, the first character of IFS is used to create $*, 4555# except with old shells: 4556host_os=$* 4557IFS=$ac_save_IFS 4558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4559 4560 4561{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4562$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4563if test "${ac_cv_path_SED+set}" = set; then 4564 $as_echo_n "(cached) " >&6 4565else 4566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4567 for ac_i in 1 2 3 4 5 6 7; do 4568 ac_script="$ac_script$as_nl$ac_script" 4569 done 4570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4571 $as_unset ac_script || ac_script= 4572 if test -z "$SED"; then 4573 ac_path_SED_found=false 4574 # Loop through the user's path and test for each of PROGNAME-LIST 4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4576for as_dir in $PATH 4577do 4578 IFS=$as_save_IFS 4579 test -z "$as_dir" && as_dir=. 4580 for ac_prog in sed gsed; do 4581 for ac_exec_ext in '' $ac_executable_extensions; do 4582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4583 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4584# Check for GNU ac_path_SED and select it if it is found. 4585 # Check for GNU $ac_path_SED 4586case `"$ac_path_SED" --version 2>&1` in 4587*GNU*) 4588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4589*) 4590 ac_count=0 4591 $as_echo_n 0123456789 >"conftest.in" 4592 while : 4593 do 4594 cat "conftest.in" "conftest.in" >"conftest.tmp" 4595 mv "conftest.tmp" "conftest.in" 4596 cp "conftest.in" "conftest.nl" 4597 $as_echo '' >> "conftest.nl" 4598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4600 ac_count=`expr $ac_count + 1` 4601 if test $ac_count -gt ${ac_path_SED_max-0}; then 4602 # Best one so far, save it but keep looking for a better one 4603 ac_cv_path_SED="$ac_path_SED" 4604 ac_path_SED_max=$ac_count 4605 fi 4606 # 10*(2^10) chars as input seems more than enough 4607 test $ac_count -gt 10 && break 4608 done 4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4610esac 4611 4612 $ac_path_SED_found && break 3 4613 done 4614 done 4615done 4616IFS=$as_save_IFS 4617 if test -z "$ac_cv_path_SED"; then 4618 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 4619$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 4620 { (exit 1); exit 1; }; } 4621 fi 4622else 4623 ac_cv_path_SED=$SED 4624fi 4625 4626fi 4627{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4628$as_echo "$ac_cv_path_SED" >&6; } 4629 SED="$ac_cv_path_SED" 4630 rm -f conftest.sed 4631 4632test -z "$SED" && SED=sed 4633Xsed="$SED -e 1s/^X//" 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4646$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4647if test "${ac_cv_path_GREP+set}" = set; then 4648 $as_echo_n "(cached) " >&6 4649else 4650 if test -z "$GREP"; then 4651 ac_path_GREP_found=false 4652 # Loop through the user's path and test for each of PROGNAME-LIST 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_prog in grep ggrep; do 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4661 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4662# Check for GNU ac_path_GREP and select it if it is found. 4663 # Check for GNU $ac_path_GREP 4664case `"$ac_path_GREP" --version 2>&1` in 4665*GNU*) 4666 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4667*) 4668 ac_count=0 4669 $as_echo_n 0123456789 >"conftest.in" 4670 while : 4671 do 4672 cat "conftest.in" "conftest.in" >"conftest.tmp" 4673 mv "conftest.tmp" "conftest.in" 4674 cp "conftest.in" "conftest.nl" 4675 $as_echo 'GREP' >> "conftest.nl" 4676 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4678 ac_count=`expr $ac_count + 1` 4679 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4680 # Best one so far, save it but keep looking for a better one 4681 ac_cv_path_GREP="$ac_path_GREP" 4682 ac_path_GREP_max=$ac_count 4683 fi 4684 # 10*(2^10) chars as input seems more than enough 4685 test $ac_count -gt 10 && break 4686 done 4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4688esac 4689 4690 $ac_path_GREP_found && break 3 4691 done 4692 done 4693done 4694IFS=$as_save_IFS 4695 if test -z "$ac_cv_path_GREP"; then 4696 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4697$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4698 { (exit 1); exit 1; }; } 4699 fi 4700else 4701 ac_cv_path_GREP=$GREP 4702fi 4703 4704fi 4705{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4706$as_echo "$ac_cv_path_GREP" >&6; } 4707 GREP="$ac_cv_path_GREP" 4708 4709 4710{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4711$as_echo_n "checking for egrep... " >&6; } 4712if test "${ac_cv_path_EGREP+set}" = set; then 4713 $as_echo_n "(cached) " >&6 4714else 4715 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4716 then ac_cv_path_EGREP="$GREP -E" 4717 else 4718 if test -z "$EGREP"; then 4719 ac_path_EGREP_found=false 4720 # Loop through the user's path and test for each of PROGNAME-LIST 4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4722for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4723do 4724 IFS=$as_save_IFS 4725 test -z "$as_dir" && as_dir=. 4726 for ac_prog in egrep; do 4727 for ac_exec_ext in '' $ac_executable_extensions; do 4728 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4729 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4730# Check for GNU ac_path_EGREP and select it if it is found. 4731 # Check for GNU $ac_path_EGREP 4732case `"$ac_path_EGREP" --version 2>&1` in 4733*GNU*) 4734 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4735*) 4736 ac_count=0 4737 $as_echo_n 0123456789 >"conftest.in" 4738 while : 4739 do 4740 cat "conftest.in" "conftest.in" >"conftest.tmp" 4741 mv "conftest.tmp" "conftest.in" 4742 cp "conftest.in" "conftest.nl" 4743 $as_echo 'EGREP' >> "conftest.nl" 4744 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4746 ac_count=`expr $ac_count + 1` 4747 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4748 # Best one so far, save it but keep looking for a better one 4749 ac_cv_path_EGREP="$ac_path_EGREP" 4750 ac_path_EGREP_max=$ac_count 4751 fi 4752 # 10*(2^10) chars as input seems more than enough 4753 test $ac_count -gt 10 && break 4754 done 4755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4756esac 4757 4758 $ac_path_EGREP_found && break 3 4759 done 4760 done 4761done 4762IFS=$as_save_IFS 4763 if test -z "$ac_cv_path_EGREP"; then 4764 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4765$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4766 { (exit 1); exit 1; }; } 4767 fi 4768else 4769 ac_cv_path_EGREP=$EGREP 4770fi 4771 4772 fi 4773fi 4774{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4775$as_echo "$ac_cv_path_EGREP" >&6; } 4776 EGREP="$ac_cv_path_EGREP" 4777 4778 4779{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4780$as_echo_n "checking for fgrep... " >&6; } 4781if test "${ac_cv_path_FGREP+set}" = set; then 4782 $as_echo_n "(cached) " >&6 4783else 4784 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4785 then ac_cv_path_FGREP="$GREP -F" 4786 else 4787 if test -z "$FGREP"; then 4788 ac_path_FGREP_found=false 4789 # Loop through the user's path and test for each of PROGNAME-LIST 4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4792do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_prog in fgrep; do 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4798 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4799# Check for GNU ac_path_FGREP and select it if it is found. 4800 # Check for GNU $ac_path_FGREP 4801case `"$ac_path_FGREP" --version 2>&1` in 4802*GNU*) 4803 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4804*) 4805 ac_count=0 4806 $as_echo_n 0123456789 >"conftest.in" 4807 while : 4808 do 4809 cat "conftest.in" "conftest.in" >"conftest.tmp" 4810 mv "conftest.tmp" "conftest.in" 4811 cp "conftest.in" "conftest.nl" 4812 $as_echo 'FGREP' >> "conftest.nl" 4813 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4815 ac_count=`expr $ac_count + 1` 4816 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4817 # Best one so far, save it but keep looking for a better one 4818 ac_cv_path_FGREP="$ac_path_FGREP" 4819 ac_path_FGREP_max=$ac_count 4820 fi 4821 # 10*(2^10) chars as input seems more than enough 4822 test $ac_count -gt 10 && break 4823 done 4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4825esac 4826 4827 $ac_path_FGREP_found && break 3 4828 done 4829 done 4830done 4831IFS=$as_save_IFS 4832 if test -z "$ac_cv_path_FGREP"; then 4833 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4834$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4835 { (exit 1); exit 1; }; } 4836 fi 4837else 4838 ac_cv_path_FGREP=$FGREP 4839fi 4840 4841 fi 4842fi 4843{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4844$as_echo "$ac_cv_path_FGREP" >&6; } 4845 FGREP="$ac_cv_path_FGREP" 4846 4847 4848test -z "$GREP" && GREP=grep 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868# Check whether --with-gnu-ld was given. 4869if test "${with_gnu_ld+set}" = set; then 4870 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4871else 4872 with_gnu_ld=no 4873fi 4874 4875ac_prog=ld 4876if test "$GCC" = yes; then 4877 # Check if gcc -print-prog-name=ld gives a path. 4878 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4879$as_echo_n "checking for ld used by $CC... " >&6; } 4880 case $host in 4881 *-*-mingw*) 4882 # gcc leaves a trailing carriage return which upsets mingw 4883 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4884 *) 4885 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4886 esac 4887 case $ac_prog in 4888 # Accept absolute paths. 4889 [\\/]* | ?:[\\/]*) 4890 re_direlt='/[^/][^/]*/\.\./' 4891 # Canonicalize the pathname of ld 4892 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4893 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4894 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4895 done 4896 test -z "$LD" && LD="$ac_prog" 4897 ;; 4898 "") 4899 # If it fails, then pretend we aren't using GCC. 4900 ac_prog=ld 4901 ;; 4902 *) 4903 # If it is relative, then search for the first ld in PATH. 4904 with_gnu_ld=unknown 4905 ;; 4906 esac 4907elif test "$with_gnu_ld" = yes; then 4908 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4909$as_echo_n "checking for GNU ld... " >&6; } 4910else 4911 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4912$as_echo_n "checking for non-GNU ld... " >&6; } 4913fi 4914if test "${lt_cv_path_LD+set}" = set; then 4915 $as_echo_n "(cached) " >&6 4916else 4917 if test -z "$LD"; then 4918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4919 for ac_dir in $PATH; do 4920 IFS="$lt_save_ifs" 4921 test -z "$ac_dir" && ac_dir=. 4922 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4923 lt_cv_path_LD="$ac_dir/$ac_prog" 4924 # Check to see if the program is GNU ld. I'd rather use --version, 4925 # but apparently some variants of GNU ld only accept -v. 4926 # Break only if it was the GNU/non-GNU ld that we prefer. 4927 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4928 *GNU* | *'with BFD'*) 4929 test "$with_gnu_ld" != no && break 4930 ;; 4931 *) 4932 test "$with_gnu_ld" != yes && break 4933 ;; 4934 esac 4935 fi 4936 done 4937 IFS="$lt_save_ifs" 4938else 4939 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4940fi 4941fi 4942 4943LD="$lt_cv_path_LD" 4944if test -n "$LD"; then 4945 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4946$as_echo "$LD" >&6; } 4947else 4948 { $as_echo "$as_me:$LINENO: result: no" >&5 4949$as_echo "no" >&6; } 4950fi 4951test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4952$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4953 { (exit 1); exit 1; }; } 4954{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4955$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4956if test "${lt_cv_prog_gnu_ld+set}" = set; then 4957 $as_echo_n "(cached) " >&6 4958else 4959 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4960case `$LD -v 2>&1 </dev/null` in 4961*GNU* | *'with BFD'*) 4962 lt_cv_prog_gnu_ld=yes 4963 ;; 4964*) 4965 lt_cv_prog_gnu_ld=no 4966 ;; 4967esac 4968fi 4969{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4970$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4971with_gnu_ld=$lt_cv_prog_gnu_ld 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4982$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4983if test "${lt_cv_path_NM+set}" = set; then 4984 $as_echo_n "(cached) " >&6 4985else 4986 if test -n "$NM"; then 4987 # Let the user override the test. 4988 lt_cv_path_NM="$NM" 4989else 4990 lt_nm_to_check="${ac_tool_prefix}nm" 4991 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4992 lt_nm_to_check="$lt_nm_to_check nm" 4993 fi 4994 for lt_tmp_nm in $lt_nm_to_check; do 4995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4996 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4997 IFS="$lt_save_ifs" 4998 test -z "$ac_dir" && ac_dir=. 4999 tmp_nm="$ac_dir/$lt_tmp_nm" 5000 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5001 # Check to see if the nm accepts a BSD-compat flag. 5002 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5003 # nm: unknown option "B" ignored 5004 # Tru64's nm complains that /dev/null is an invalid object file 5005 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5006 */dev/null* | *'Invalid file or object type'*) 5007 lt_cv_path_NM="$tmp_nm -B" 5008 break 5009 ;; 5010 *) 5011 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5012 */dev/null*) 5013 lt_cv_path_NM="$tmp_nm -p" 5014 break 5015 ;; 5016 *) 5017 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5018 continue # so that we can try to find one that supports BSD flags 5019 ;; 5020 esac 5021 ;; 5022 esac 5023 fi 5024 done 5025 IFS="$lt_save_ifs" 5026 done 5027 : ${lt_cv_path_NM=no} 5028fi 5029fi 5030{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5031$as_echo "$lt_cv_path_NM" >&6; } 5032if test "$lt_cv_path_NM" != "no"; then 5033 NM="$lt_cv_path_NM" 5034else 5035 # Didn't find any BSD compatible name lister, look for dumpbin. 5036 if test -n "$ac_tool_prefix"; then 5037 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5038 do 5039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5040set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5041{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5042$as_echo_n "checking for $ac_word... " >&6; } 5043if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5044 $as_echo_n "(cached) " >&6 5045else 5046 if test -n "$DUMPBIN"; then 5047 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5048else 5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5050for as_dir in $PATH 5051do 5052 IFS=$as_save_IFS 5053 test -z "$as_dir" && as_dir=. 5054 for ac_exec_ext in '' $ac_executable_extensions; do 5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5056 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5058 break 2 5059 fi 5060done 5061done 5062IFS=$as_save_IFS 5063 5064fi 5065fi 5066DUMPBIN=$ac_cv_prog_DUMPBIN 5067if test -n "$DUMPBIN"; then 5068 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5069$as_echo "$DUMPBIN" >&6; } 5070else 5071 { $as_echo "$as_me:$LINENO: result: no" >&5 5072$as_echo "no" >&6; } 5073fi 5074 5075 5076 test -n "$DUMPBIN" && break 5077 done 5078fi 5079if test -z "$DUMPBIN"; then 5080 ac_ct_DUMPBIN=$DUMPBIN 5081 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5082do 5083 # Extract the first word of "$ac_prog", so it can be a program name with args. 5084set dummy $ac_prog; ac_word=$2 5085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5086$as_echo_n "checking for $ac_word... " >&6; } 5087if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5088 $as_echo_n "(cached) " >&6 5089else 5090 if test -n "$ac_ct_DUMPBIN"; then 5091 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5092else 5093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5094for as_dir in $PATH 5095do 5096 IFS=$as_save_IFS 5097 test -z "$as_dir" && as_dir=. 5098 for ac_exec_ext in '' $ac_executable_extensions; do 5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5100 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5101 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5102 break 2 5103 fi 5104done 5105done 5106IFS=$as_save_IFS 5107 5108fi 5109fi 5110ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5111if test -n "$ac_ct_DUMPBIN"; then 5112 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5113$as_echo "$ac_ct_DUMPBIN" >&6; } 5114else 5115 { $as_echo "$as_me:$LINENO: result: no" >&5 5116$as_echo "no" >&6; } 5117fi 5118 5119 5120 test -n "$ac_ct_DUMPBIN" && break 5121done 5122 5123 if test "x$ac_ct_DUMPBIN" = x; then 5124 DUMPBIN=":" 5125 else 5126 case $cross_compiling:$ac_tool_warned in 5127yes:) 5128{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5130ac_tool_warned=yes ;; 5131esac 5132 DUMPBIN=$ac_ct_DUMPBIN 5133 fi 5134fi 5135 5136 5137 if test "$DUMPBIN" != ":"; then 5138 NM="$DUMPBIN" 5139 fi 5140fi 5141test -z "$NM" && NM=nm 5142 5143 5144 5145 5146 5147 5148{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5149$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5150if test "${lt_cv_nm_interface+set}" = set; then 5151 $as_echo_n "(cached) " >&6 5152else 5153 lt_cv_nm_interface="BSD nm" 5154 echo "int some_variable = 0;" > conftest.$ac_ext 5155 (eval echo "\"\$as_me:5155: $ac_compile\"" >&5) 5156 (eval "$ac_compile" 2>conftest.err) 5157 cat conftest.err >&5 5158 (eval echo "\"\$as_me:5158: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5159 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5160 cat conftest.err >&5 5161 (eval echo "\"\$as_me:5161: output\"" >&5) 5162 cat conftest.out >&5 5163 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5164 lt_cv_nm_interface="MS dumpbin" 5165 fi 5166 rm -f conftest* 5167fi 5168{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5169$as_echo "$lt_cv_nm_interface" >&6; } 5170 5171{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 5172$as_echo_n "checking whether ln -s works... " >&6; } 5173LN_S=$as_ln_s 5174if test "$LN_S" = "ln -s"; then 5175 { $as_echo "$as_me:$LINENO: result: yes" >&5 5176$as_echo "yes" >&6; } 5177else 5178 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5179$as_echo "no, using $LN_S" >&6; } 5180fi 5181 5182# find the maximum length of command line arguments 5183{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5184$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5185if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5186 $as_echo_n "(cached) " >&6 5187else 5188 i=0 5189 teststring="ABCD" 5190 5191 case $build_os in 5192 msdosdjgpp*) 5193 # On DJGPP, this test can blow up pretty badly due to problems in libc 5194 # (any single argument exceeding 2000 bytes causes a buffer overrun 5195 # during glob expansion). Even if it were fixed, the result of this 5196 # check would be larger than it should be. 5197 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5198 ;; 5199 5200 gnu*) 5201 # Under GNU Hurd, this test is not required because there is 5202 # no limit to the length of command line arguments. 5203 # Libtool will interpret -1 as no limit whatsoever 5204 lt_cv_sys_max_cmd_len=-1; 5205 ;; 5206 5207 cygwin* | mingw* | cegcc*) 5208 # On Win9x/ME, this test blows up -- it succeeds, but takes 5209 # about 5 minutes as the teststring grows exponentially. 5210 # Worse, since 9x/ME are not pre-emptively multitasking, 5211 # you end up with a "frozen" computer, even though with patience 5212 # the test eventually succeeds (with a max line length of 256k). 5213 # Instead, let's just punt: use the minimum linelength reported by 5214 # all of the supported platforms: 8192 (on NT/2K/XP). 5215 lt_cv_sys_max_cmd_len=8192; 5216 ;; 5217 5218 amigaos*) 5219 # On AmigaOS with pdksh, this test takes hours, literally. 5220 # So we just punt and use a minimum line length of 8192. 5221 lt_cv_sys_max_cmd_len=8192; 5222 ;; 5223 5224 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5225 # This has been around since 386BSD, at least. Likely further. 5226 if test -x /sbin/sysctl; then 5227 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5228 elif test -x /usr/sbin/sysctl; then 5229 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5230 else 5231 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5232 fi 5233 # And add a safety zone 5234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5236 ;; 5237 5238 interix*) 5239 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5240 lt_cv_sys_max_cmd_len=196608 5241 ;; 5242 5243 osf*) 5244 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5245 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5246 # nice to cause kernel panics so lets avoid the loop below. 5247 # First set a reasonable default. 5248 lt_cv_sys_max_cmd_len=16384 5249 # 5250 if test -x /sbin/sysconfig; then 5251 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5252 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5253 esac 5254 fi 5255 ;; 5256 sco3.2v5*) 5257 lt_cv_sys_max_cmd_len=102400 5258 ;; 5259 sysv5* | sco5v6* | sysv4.2uw2*) 5260 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5261 if test -n "$kargmax"; then 5262 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5263 else 5264 lt_cv_sys_max_cmd_len=32768 5265 fi 5266 ;; 5267 *) 5268 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5269 if test -n "$lt_cv_sys_max_cmd_len"; then 5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5272 else 5273 # Make teststring a little bigger before we do anything with it. 5274 # a 1K string should be a reasonable start. 5275 for i in 1 2 3 4 5 6 7 8 ; do 5276 teststring=$teststring$teststring 5277 done 5278 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5279 # If test is not a shell built-in, we'll probably end up computing a 5280 # maximum length that is only half of the actual maximum length, but 5281 # we can't tell. 5282 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5283 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5284 test $i != 17 # 1/2 MB should be enough 5285 do 5286 i=`expr $i + 1` 5287 teststring=$teststring$teststring 5288 done 5289 # Only check the string length outside the loop. 5290 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5291 teststring= 5292 # Add a significant safety factor because C++ compilers can tack on 5293 # massive amounts of additional arguments before passing them to the 5294 # linker. It appears as though 1/2 is a usable value. 5295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5296 fi 5297 ;; 5298 esac 5299 5300fi 5301 5302if test -n $lt_cv_sys_max_cmd_len ; then 5303 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5304$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5305else 5306 { $as_echo "$as_me:$LINENO: result: none" >&5 5307$as_echo "none" >&6; } 5308fi 5309max_cmd_len=$lt_cv_sys_max_cmd_len 5310 5311 5312 5313 5314 5315 5316: ${CP="cp -f"} 5317: ${MV="mv -f"} 5318: ${RM="rm -f"} 5319 5320{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5321$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5322# Try some XSI features 5323xsi_shell=no 5324( _lt_dummy="a/b/c" 5325 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5326 = c,a/b,, \ 5327 && eval 'test $(( 1 + 1 )) -eq 2 \ 5328 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5329 && xsi_shell=yes 5330{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 5331$as_echo "$xsi_shell" >&6; } 5332 5333 5334{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5335$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5336lt_shell_append=no 5337( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5338 >/dev/null 2>&1 \ 5339 && lt_shell_append=yes 5340{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5341$as_echo "$lt_shell_append" >&6; } 5342 5343 5344if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5345 lt_unset=unset 5346else 5347 lt_unset=false 5348fi 5349 5350 5351 5352 5353 5354# test EBCDIC or ASCII 5355case `echo X|tr X '\101'` in 5356 A) # ASCII based system 5357 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5358 lt_SP2NL='tr \040 \012' 5359 lt_NL2SP='tr \015\012 \040\040' 5360 ;; 5361 *) # EBCDIC based system 5362 lt_SP2NL='tr \100 \n' 5363 lt_NL2SP='tr \r\n \100\100' 5364 ;; 5365esac 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5376$as_echo_n "checking for $LD option to reload object files... " >&6; } 5377if test "${lt_cv_ld_reload_flag+set}" = set; then 5378 $as_echo_n "(cached) " >&6 5379else 5380 lt_cv_ld_reload_flag='-r' 5381fi 5382{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5383$as_echo "$lt_cv_ld_reload_flag" >&6; } 5384reload_flag=$lt_cv_ld_reload_flag 5385case $reload_flag in 5386"" | " "*) ;; 5387*) reload_flag=" $reload_flag" ;; 5388esac 5389reload_cmds='$LD$reload_flag -o $output$reload_objs' 5390case $host_os in 5391 darwin*) 5392 if test "$GCC" = yes; then 5393 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5394 else 5395 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5396 fi 5397 ;; 5398esac 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408if test -n "$ac_tool_prefix"; then 5409 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5410set dummy ${ac_tool_prefix}objdump; ac_word=$2 5411{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5412$as_echo_n "checking for $ac_word... " >&6; } 5413if test "${ac_cv_prog_OBJDUMP+set}" = set; then 5414 $as_echo_n "(cached) " >&6 5415else 5416 if test -n "$OBJDUMP"; then 5417 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5418else 5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5420for as_dir in $PATH 5421do 5422 IFS=$as_save_IFS 5423 test -z "$as_dir" && as_dir=. 5424 for ac_exec_ext in '' $ac_executable_extensions; do 5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5426 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5428 break 2 5429 fi 5430done 5431done 5432IFS=$as_save_IFS 5433 5434fi 5435fi 5436OBJDUMP=$ac_cv_prog_OBJDUMP 5437if test -n "$OBJDUMP"; then 5438 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 5439$as_echo "$OBJDUMP" >&6; } 5440else 5441 { $as_echo "$as_me:$LINENO: result: no" >&5 5442$as_echo "no" >&6; } 5443fi 5444 5445 5446fi 5447if test -z "$ac_cv_prog_OBJDUMP"; then 5448 ac_ct_OBJDUMP=$OBJDUMP 5449 # Extract the first word of "objdump", so it can be a program name with args. 5450set dummy objdump; ac_word=$2 5451{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5452$as_echo_n "checking for $ac_word... " >&6; } 5453if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 5454 $as_echo_n "(cached) " >&6 5455else 5456 if test -n "$ac_ct_OBJDUMP"; then 5457 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5458else 5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5466 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471done 5472IFS=$as_save_IFS 5473 5474fi 5475fi 5476ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5477if test -n "$ac_ct_OBJDUMP"; then 5478 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 5479$as_echo "$ac_ct_OBJDUMP" >&6; } 5480else 5481 { $as_echo "$as_me:$LINENO: result: no" >&5 5482$as_echo "no" >&6; } 5483fi 5484 5485 if test "x$ac_ct_OBJDUMP" = x; then 5486 OBJDUMP="false" 5487 else 5488 case $cross_compiling:$ac_tool_warned in 5489yes:) 5490{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5492ac_tool_warned=yes ;; 5493esac 5494 OBJDUMP=$ac_ct_OBJDUMP 5495 fi 5496else 5497 OBJDUMP="$ac_cv_prog_OBJDUMP" 5498fi 5499 5500test -z "$OBJDUMP" && OBJDUMP=objdump 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5511$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5512if test "${lt_cv_deplibs_check_method+set}" = set; then 5513 $as_echo_n "(cached) " >&6 5514else 5515 lt_cv_file_magic_cmd='$MAGIC_CMD' 5516lt_cv_file_magic_test_file= 5517lt_cv_deplibs_check_method='unknown' 5518# Need to set the preceding variable on all platforms that support 5519# interlibrary dependencies. 5520# 'none' -- dependencies not supported. 5521# `unknown' -- same as none, but documents that we really don't know. 5522# 'pass_all' -- all dependencies passed with no checks. 5523# 'test_compile' -- check by making test program. 5524# 'file_magic [[regex]]' -- check by looking for files in library path 5525# which responds to the $file_magic_cmd with a given extended regex. 5526# If you have `file' or equivalent on your system and you're not sure 5527# whether `pass_all' will *always* work, you probably want this one. 5528 5529case $host_os in 5530aix[4-9]*) 5531 lt_cv_deplibs_check_method=pass_all 5532 ;; 5533 5534beos*) 5535 lt_cv_deplibs_check_method=pass_all 5536 ;; 5537 5538bsdi[45]*) 5539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5540 lt_cv_file_magic_cmd='/usr/bin/file -L' 5541 lt_cv_file_magic_test_file=/shlib/libc.so 5542 ;; 5543 5544cygwin*) 5545 # func_win32_libid is a shell function defined in ltmain.sh 5546 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5547 lt_cv_file_magic_cmd='func_win32_libid' 5548 ;; 5549 5550mingw* | pw32*) 5551 # Base MSYS/MinGW do not provide the 'file' command needed by 5552 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5553 # unless we find 'file', for example because we are cross-compiling. 5554 if ( file / ) >/dev/null 2>&1; then 5555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5556 lt_cv_file_magic_cmd='func_win32_libid' 5557 else 5558 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5559 lt_cv_file_magic_cmd='$OBJDUMP -f' 5560 fi 5561 ;; 5562 5563cegcc) 5564 # use the weaker test based on 'objdump'. See mingw*. 5565 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5566 lt_cv_file_magic_cmd='$OBJDUMP -f' 5567 ;; 5568 5569darwin* | rhapsody*) 5570 lt_cv_deplibs_check_method=pass_all 5571 ;; 5572 5573freebsd* | dragonfly*) 5574 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5575 case $host_cpu in 5576 i*86 ) 5577 # Not sure whether the presence of OpenBSD here was a mistake. 5578 # Let's accept both of them until this is cleared up. 5579 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5580 lt_cv_file_magic_cmd=/usr/bin/file 5581 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5582 ;; 5583 esac 5584 else 5585 lt_cv_deplibs_check_method=pass_all 5586 fi 5587 ;; 5588 5589gnu*) 5590 lt_cv_deplibs_check_method=pass_all 5591 ;; 5592 5593hpux10.20* | hpux11*) 5594 lt_cv_file_magic_cmd=/usr/bin/file 5595 case $host_cpu in 5596 ia64*) 5597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5598 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5599 ;; 5600 hppa*64*) 5601 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]' 5602 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5603 ;; 5604 *) 5605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5606 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5607 ;; 5608 esac 5609 ;; 5610 5611interix[3-9]*) 5612 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5614 ;; 5615 5616irix5* | irix6* | nonstopux*) 5617 case $LD in 5618 *-32|*"-32 ") libmagic=32-bit;; 5619 *-n32|*"-n32 ") libmagic=N32;; 5620 *-64|*"-64 ") libmagic=64-bit;; 5621 *) libmagic=never-match;; 5622 esac 5623 lt_cv_deplibs_check_method=pass_all 5624 ;; 5625 5626# This must be Linux ELF. 5627linux* | k*bsd*-gnu) 5628 lt_cv_deplibs_check_method=pass_all 5629 ;; 5630 5631netbsd* | netbsdelf*-gnu) 5632 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5634 else 5635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5636 fi 5637 ;; 5638 5639newos6*) 5640 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5641 lt_cv_file_magic_cmd=/usr/bin/file 5642 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5643 ;; 5644 5645*nto* | *qnx*) 5646 lt_cv_deplibs_check_method=pass_all 5647 ;; 5648 5649openbsd*) 5650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5652 else 5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5654 fi 5655 ;; 5656 5657osf3* | osf4* | osf5*) 5658 lt_cv_deplibs_check_method=pass_all 5659 ;; 5660 5661rdos*) 5662 lt_cv_deplibs_check_method=pass_all 5663 ;; 5664 5665solaris*) 5666 lt_cv_deplibs_check_method=pass_all 5667 ;; 5668 5669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5670 lt_cv_deplibs_check_method=pass_all 5671 ;; 5672 5673sysv4 | sysv4.3*) 5674 case $host_vendor in 5675 motorola) 5676 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]' 5677 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5678 ;; 5679 ncr) 5680 lt_cv_deplibs_check_method=pass_all 5681 ;; 5682 sequent) 5683 lt_cv_file_magic_cmd='/bin/file' 5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5685 ;; 5686 sni) 5687 lt_cv_file_magic_cmd='/bin/file' 5688 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5689 lt_cv_file_magic_test_file=/lib/libc.so 5690 ;; 5691 siemens) 5692 lt_cv_deplibs_check_method=pass_all 5693 ;; 5694 pc) 5695 lt_cv_deplibs_check_method=pass_all 5696 ;; 5697 esac 5698 ;; 5699 5700tpf*) 5701 lt_cv_deplibs_check_method=pass_all 5702 ;; 5703esac 5704 5705fi 5706{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5707$as_echo "$lt_cv_deplibs_check_method" >&6; } 5708file_magic_cmd=$lt_cv_file_magic_cmd 5709deplibs_check_method=$lt_cv_deplibs_check_method 5710test -z "$deplibs_check_method" && deplibs_check_method=unknown 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723if test -n "$ac_tool_prefix"; then 5724 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5725set dummy ${ac_tool_prefix}ar; ac_word=$2 5726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5727$as_echo_n "checking for $ac_word... " >&6; } 5728if test "${ac_cv_prog_AR+set}" = set; then 5729 $as_echo_n "(cached) " >&6 5730else 5731 if test -n "$AR"; then 5732 ac_cv_prog_AR="$AR" # Let the user override the test. 5733else 5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735for as_dir in $PATH 5736do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_exec_ext in '' $ac_executable_extensions; do 5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5741 ac_cv_prog_AR="${ac_tool_prefix}ar" 5742 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745done 5746done 5747IFS=$as_save_IFS 5748 5749fi 5750fi 5751AR=$ac_cv_prog_AR 5752if test -n "$AR"; then 5753 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5754$as_echo "$AR" >&6; } 5755else 5756 { $as_echo "$as_me:$LINENO: result: no" >&5 5757$as_echo "no" >&6; } 5758fi 5759 5760 5761fi 5762if test -z "$ac_cv_prog_AR"; then 5763 ac_ct_AR=$AR 5764 # Extract the first word of "ar", so it can be a program name with args. 5765set dummy ar; ac_word=$2 5766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5767$as_echo_n "checking for $ac_word... " >&6; } 5768if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5769 $as_echo_n "(cached) " >&6 5770else 5771 if test -n "$ac_ct_AR"; then 5772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5773else 5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5775for as_dir in $PATH 5776do 5777 IFS=$as_save_IFS 5778 test -z "$as_dir" && as_dir=. 5779 for ac_exec_ext in '' $ac_executable_extensions; do 5780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5781 ac_cv_prog_ac_ct_AR="ar" 5782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5783 break 2 5784 fi 5785done 5786done 5787IFS=$as_save_IFS 5788 5789fi 5790fi 5791ac_ct_AR=$ac_cv_prog_ac_ct_AR 5792if test -n "$ac_ct_AR"; then 5793 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5794$as_echo "$ac_ct_AR" >&6; } 5795else 5796 { $as_echo "$as_me:$LINENO: result: no" >&5 5797$as_echo "no" >&6; } 5798fi 5799 5800 if test "x$ac_ct_AR" = x; then 5801 AR="false" 5802 else 5803 case $cross_compiling:$ac_tool_warned in 5804yes:) 5805{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5807ac_tool_warned=yes ;; 5808esac 5809 AR=$ac_ct_AR 5810 fi 5811else 5812 AR="$ac_cv_prog_AR" 5813fi 5814 5815test -z "$AR" && AR=ar 5816test -z "$AR_FLAGS" && AR_FLAGS=cru 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828if test -n "$ac_tool_prefix"; then 5829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5830set dummy ${ac_tool_prefix}strip; ac_word=$2 5831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5832$as_echo_n "checking for $ac_word... " >&6; } 5833if test "${ac_cv_prog_STRIP+set}" = set; then 5834 $as_echo_n "(cached) " >&6 5835else 5836 if test -n "$STRIP"; then 5837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5838else 5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5840for as_dir in $PATH 5841do 5842 IFS=$as_save_IFS 5843 test -z "$as_dir" && as_dir=. 5844 for ac_exec_ext in '' $ac_executable_extensions; do 5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5846 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5848 break 2 5849 fi 5850done 5851done 5852IFS=$as_save_IFS 5853 5854fi 5855fi 5856STRIP=$ac_cv_prog_STRIP 5857if test -n "$STRIP"; then 5858 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5859$as_echo "$STRIP" >&6; } 5860else 5861 { $as_echo "$as_me:$LINENO: result: no" >&5 5862$as_echo "no" >&6; } 5863fi 5864 5865 5866fi 5867if test -z "$ac_cv_prog_STRIP"; then 5868 ac_ct_STRIP=$STRIP 5869 # Extract the first word of "strip", so it can be a program name with args. 5870set dummy strip; ac_word=$2 5871{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5872$as_echo_n "checking for $ac_word... " >&6; } 5873if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5874 $as_echo_n "(cached) " >&6 5875else 5876 if test -n "$ac_ct_STRIP"; then 5877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5878else 5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5880for as_dir in $PATH 5881do 5882 IFS=$as_save_IFS 5883 test -z "$as_dir" && as_dir=. 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5886 ac_cv_prog_ac_ct_STRIP="strip" 5887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890done 5891done 5892IFS=$as_save_IFS 5893 5894fi 5895fi 5896ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5897if test -n "$ac_ct_STRIP"; then 5898 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5899$as_echo "$ac_ct_STRIP" >&6; } 5900else 5901 { $as_echo "$as_me:$LINENO: result: no" >&5 5902$as_echo "no" >&6; } 5903fi 5904 5905 if test "x$ac_ct_STRIP" = x; then 5906 STRIP=":" 5907 else 5908 case $cross_compiling:$ac_tool_warned in 5909yes:) 5910{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5912ac_tool_warned=yes ;; 5913esac 5914 STRIP=$ac_ct_STRIP 5915 fi 5916else 5917 STRIP="$ac_cv_prog_STRIP" 5918fi 5919 5920test -z "$STRIP" && STRIP=: 5921 5922 5923 5924 5925 5926 5927if test -n "$ac_tool_prefix"; then 5928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5929set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5930{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5931$as_echo_n "checking for $ac_word... " >&6; } 5932if test "${ac_cv_prog_RANLIB+set}" = set; then 5933 $as_echo_n "(cached) " >&6 5934else 5935 if test -n "$RANLIB"; then 5936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5937else 5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939for as_dir in $PATH 5940do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 break 2 5948 fi 5949done 5950done 5951IFS=$as_save_IFS 5952 5953fi 5954fi 5955RANLIB=$ac_cv_prog_RANLIB 5956if test -n "$RANLIB"; then 5957 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5958$as_echo "$RANLIB" >&6; } 5959else 5960 { $as_echo "$as_me:$LINENO: result: no" >&5 5961$as_echo "no" >&6; } 5962fi 5963 5964 5965fi 5966if test -z "$ac_cv_prog_RANLIB"; then 5967 ac_ct_RANLIB=$RANLIB 5968 # Extract the first word of "ranlib", so it can be a program name with args. 5969set dummy ranlib; ac_word=$2 5970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5971$as_echo_n "checking for $ac_word... " >&6; } 5972if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5973 $as_echo_n "(cached) " >&6 5974else 5975 if test -n "$ac_ct_RANLIB"; then 5976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5977else 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5979for as_dir in $PATH 5980do 5981 IFS=$as_save_IFS 5982 test -z "$as_dir" && as_dir=. 5983 for ac_exec_ext in '' $ac_executable_extensions; do 5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5985 ac_cv_prog_ac_ct_RANLIB="ranlib" 5986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 break 2 5988 fi 5989done 5990done 5991IFS=$as_save_IFS 5992 5993fi 5994fi 5995ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5996if test -n "$ac_ct_RANLIB"; then 5997 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5998$as_echo "$ac_ct_RANLIB" >&6; } 5999else 6000 { $as_echo "$as_me:$LINENO: result: no" >&5 6001$as_echo "no" >&6; } 6002fi 6003 6004 if test "x$ac_ct_RANLIB" = x; then 6005 RANLIB=":" 6006 else 6007 case $cross_compiling:$ac_tool_warned in 6008yes:) 6009{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6011ac_tool_warned=yes ;; 6012esac 6013 RANLIB=$ac_ct_RANLIB 6014 fi 6015else 6016 RANLIB="$ac_cv_prog_RANLIB" 6017fi 6018 6019test -z "$RANLIB" && RANLIB=: 6020 6021 6022 6023 6024 6025 6026# Determine commands to create old-style static archives. 6027old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6028old_postinstall_cmds='chmod 644 $oldlib' 6029old_postuninstall_cmds= 6030 6031if test -n "$RANLIB"; then 6032 case $host_os in 6033 openbsd*) 6034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6035 ;; 6036 *) 6037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6038 ;; 6039 esac 6040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6041fi 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076# If no C compiler was specified, use CC. 6077LTCC=${LTCC-"$CC"} 6078 6079# If no C compiler flags were specified, use CFLAGS. 6080LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6081 6082# Allow CC to be a program name with arguments. 6083compiler=$CC 6084 6085 6086# Check for command to grab the raw symbol name followed by C symbol from nm. 6087{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6088$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6089if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6090 $as_echo_n "(cached) " >&6 6091else 6092 6093# These are sane defaults that work on at least a few old systems. 6094# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6095 6096# Character class describing NM global symbol codes. 6097symcode='[BCDEGRST]' 6098 6099# Regexp to match symbols that can be accessed directly from C. 6100sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6101 6102# Define system-specific variables. 6103case $host_os in 6104aix*) 6105 symcode='[BCDT]' 6106 ;; 6107cygwin* | mingw* | pw32* | cegcc*) 6108 symcode='[ABCDGISTW]' 6109 ;; 6110hpux*) 6111 if test "$host_cpu" = ia64; then 6112 symcode='[ABCDEGRST]' 6113 fi 6114 ;; 6115irix* | nonstopux*) 6116 symcode='[BCDEGRST]' 6117 ;; 6118osf*) 6119 symcode='[BCDEGQRST]' 6120 ;; 6121solaris*) 6122 symcode='[BDRT]' 6123 ;; 6124sco3.2v5*) 6125 symcode='[DT]' 6126 ;; 6127sysv4.2uw2*) 6128 symcode='[DT]' 6129 ;; 6130sysv5* | sco5v6* | unixware* | OpenUNIX*) 6131 symcode='[ABDT]' 6132 ;; 6133sysv4) 6134 symcode='[DFNSTU]' 6135 ;; 6136esac 6137 6138# If we're using GNU nm, then use its standard symbol codes. 6139case `$NM -V 2>&1` in 6140*GNU* | *'with BFD'*) 6141 symcode='[ABCDGIRSTW]' ;; 6142esac 6143 6144# Transform an extracted symbol line into a proper C declaration. 6145# Some systems (esp. on ia64) link data and code symbols differently, 6146# so use this general approach. 6147lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6148 6149# Transform an extracted symbol line into symbol name and symbol address 6150lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6151lt_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'" 6152 6153# Handle CRLF in mingw tool chain 6154opt_cr= 6155case $build_os in 6156mingw*) 6157 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6158 ;; 6159esac 6160 6161# Try without a prefix underscore, then with it. 6162for ac_symprfx in "" "_"; do 6163 6164 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6165 symxfrm="\\1 $ac_symprfx\\2 \\2" 6166 6167 # Write the raw and C identifiers. 6168 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6169 # Fake it for dumpbin and say T for any non-static function 6170 # and D for any global variable. 6171 # Also find C++ and __fastcall symbols from MSVC++, 6172 # which start with @ or ?. 6173 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6174" {last_section=section; section=\$ 3};"\ 6175" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6176" \$ 0!~/External *\|/{next};"\ 6177" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6178" {if(hide[section]) next};"\ 6179" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6180" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6181" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6182" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6183" ' prfx=^$ac_symprfx" 6184 else 6185 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6186 fi 6187 6188 # Check to see that the pipe works correctly. 6189 pipe_works=no 6190 6191 rm -f conftest* 6192 cat > conftest.$ac_ext <<_LT_EOF 6193#ifdef __cplusplus 6194extern "C" { 6195#endif 6196char nm_test_var; 6197void nm_test_func(void); 6198void nm_test_func(void){} 6199#ifdef __cplusplus 6200} 6201#endif 6202int main(){nm_test_var='a';nm_test_func();return(0);} 6203_LT_EOF 6204 6205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6206 (eval $ac_compile) 2>&5 6207 ac_status=$? 6208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6209 (exit $ac_status); }; then 6210 # Now try to grab the symbols. 6211 nlist=conftest.nm 6212 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6213 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6214 ac_status=$? 6215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6216 (exit $ac_status); } && test -s "$nlist"; then 6217 # Try sorting and uniquifying the output. 6218 if sort "$nlist" | uniq > "$nlist"T; then 6219 mv -f "$nlist"T "$nlist" 6220 else 6221 rm -f "$nlist"T 6222 fi 6223 6224 # Make sure that we snagged all the symbols we need. 6225 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6226 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6227 cat <<_LT_EOF > conftest.$ac_ext 6228#ifdef __cplusplus 6229extern "C" { 6230#endif 6231 6232_LT_EOF 6233 # Now generate the symbol file. 6234 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6235 6236 cat <<_LT_EOF >> conftest.$ac_ext 6237 6238/* The mapping between symbol names and symbols. */ 6239const struct { 6240 const char *name; 6241 void *address; 6242} 6243lt__PROGRAM__LTX_preloaded_symbols[] = 6244{ 6245 { "@PROGRAM@", (void *) 0 }, 6246_LT_EOF 6247 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6248 cat <<\_LT_EOF >> conftest.$ac_ext 6249 {0, (void *) 0} 6250}; 6251 6252/* This works around a problem in FreeBSD linker */ 6253#ifdef FREEBSD_WORKAROUND 6254static const void *lt_preloaded_setup() { 6255 return lt__PROGRAM__LTX_preloaded_symbols; 6256} 6257#endif 6258 6259#ifdef __cplusplus 6260} 6261#endif 6262_LT_EOF 6263 # Now try linking the two files. 6264 mv conftest.$ac_objext conftstm.$ac_objext 6265 lt_save_LIBS="$LIBS" 6266 lt_save_CFLAGS="$CFLAGS" 6267 LIBS="conftstm.$ac_objext" 6268 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6270 (eval $ac_link) 2>&5 6271 ac_status=$? 6272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6273 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6274 pipe_works=yes 6275 fi 6276 LIBS="$lt_save_LIBS" 6277 CFLAGS="$lt_save_CFLAGS" 6278 else 6279 echo "cannot find nm_test_func in $nlist" >&5 6280 fi 6281 else 6282 echo "cannot find nm_test_var in $nlist" >&5 6283 fi 6284 else 6285 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6286 fi 6287 else 6288 echo "$progname: failed program was:" >&5 6289 cat conftest.$ac_ext >&5 6290 fi 6291 rm -rf conftest* conftst* 6292 6293 # Do not use the global_symbol_pipe unless it works. 6294 if test "$pipe_works" = yes; then 6295 break 6296 else 6297 lt_cv_sys_global_symbol_pipe= 6298 fi 6299done 6300 6301fi 6302 6303if test -z "$lt_cv_sys_global_symbol_pipe"; then 6304 lt_cv_sys_global_symbol_to_cdecl= 6305fi 6306if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6307 { $as_echo "$as_me:$LINENO: result: failed" >&5 6308$as_echo "failed" >&6; } 6309else 6310 { $as_echo "$as_me:$LINENO: result: ok" >&5 6311$as_echo "ok" >&6; } 6312fi 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336# Check whether --enable-libtool-lock was given. 6337if test "${enable_libtool_lock+set}" = set; then 6338 enableval=$enable_libtool_lock; 6339fi 6340 6341test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6342 6343# Some flags need to be propagated to the compiler or linker for good 6344# libtool support. 6345case $host in 6346ia64-*-hpux*) 6347 # Find out which ABI we are using. 6348 echo 'int i;' > conftest.$ac_ext 6349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6350 (eval $ac_compile) 2>&5 6351 ac_status=$? 6352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353 (exit $ac_status); }; then 6354 case `/usr/bin/file conftest.$ac_objext` in 6355 *ELF-32*) 6356 HPUX_IA64_MODE="32" 6357 ;; 6358 *ELF-64*) 6359 HPUX_IA64_MODE="64" 6360 ;; 6361 esac 6362 fi 6363 rm -rf conftest* 6364 ;; 6365*-*-irix6*) 6366 # Find out which ABI we are using. 6367 echo '#line 6367 "configure"' > conftest.$ac_ext 6368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6369 (eval $ac_compile) 2>&5 6370 ac_status=$? 6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6372 (exit $ac_status); }; then 6373 if test "$lt_cv_prog_gnu_ld" = yes; then 6374 case `/usr/bin/file conftest.$ac_objext` in 6375 *32-bit*) 6376 LD="${LD-ld} -melf32bsmip" 6377 ;; 6378 *N32*) 6379 LD="${LD-ld} -melf32bmipn32" 6380 ;; 6381 *64-bit*) 6382 LD="${LD-ld} -melf64bmip" 6383 ;; 6384 esac 6385 else 6386 case `/usr/bin/file conftest.$ac_objext` in 6387 *32-bit*) 6388 LD="${LD-ld} -32" 6389 ;; 6390 *N32*) 6391 LD="${LD-ld} -n32" 6392 ;; 6393 *64-bit*) 6394 LD="${LD-ld} -64" 6395 ;; 6396 esac 6397 fi 6398 fi 6399 rm -rf conftest* 6400 ;; 6401 6402x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6403s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6404 # Find out which ABI we are using. 6405 echo 'int i;' > conftest.$ac_ext 6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6407 (eval $ac_compile) 2>&5 6408 ac_status=$? 6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); }; then 6411 case `/usr/bin/file conftest.o` in 6412 *32-bit*) 6413 case $host in 6414 x86_64-*kfreebsd*-gnu) 6415 LD="${LD-ld} -m elf_i386_fbsd" 6416 ;; 6417 x86_64-*linux*) 6418 LD="${LD-ld} -m elf_i386" 6419 ;; 6420 ppc64-*linux*|powerpc64-*linux*) 6421 LD="${LD-ld} -m elf32ppclinux" 6422 ;; 6423 s390x-*linux*) 6424 LD="${LD-ld} -m elf_s390" 6425 ;; 6426 sparc64-*linux*) 6427 LD="${LD-ld} -m elf32_sparc" 6428 ;; 6429 esac 6430 ;; 6431 *64-bit*) 6432 case $host in 6433 x86_64-*kfreebsd*-gnu) 6434 LD="${LD-ld} -m elf_x86_64_fbsd" 6435 ;; 6436 x86_64-*linux*) 6437 LD="${LD-ld} -m elf_x86_64" 6438 ;; 6439 ppc*-*linux*|powerpc*-*linux*) 6440 LD="${LD-ld} -m elf64ppc" 6441 ;; 6442 s390*-*linux*|s390*-*tpf*) 6443 LD="${LD-ld} -m elf64_s390" 6444 ;; 6445 sparc*-*linux*) 6446 LD="${LD-ld} -m elf64_sparc" 6447 ;; 6448 esac 6449 ;; 6450 esac 6451 fi 6452 rm -rf conftest* 6453 ;; 6454 6455*-*-sco3.2v5*) 6456 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6457 SAVE_CFLAGS="$CFLAGS" 6458 CFLAGS="$CFLAGS -belf" 6459 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6460$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6461if test "${lt_cv_cc_needs_belf+set}" = set; then 6462 $as_echo_n "(cached) " >&6 6463else 6464 ac_ext=c 6465ac_cpp='$CPP $CPPFLAGS' 6466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6468ac_compiler_gnu=$ac_cv_c_compiler_gnu 6469 6470 cat >conftest.$ac_ext <<_ACEOF 6471/* confdefs.h. */ 6472_ACEOF 6473cat confdefs.h >>conftest.$ac_ext 6474cat >>conftest.$ac_ext <<_ACEOF 6475/* end confdefs.h. */ 6476 6477int 6478main () 6479{ 6480 6481 ; 6482 return 0; 6483} 6484_ACEOF 6485rm -f conftest.$ac_objext conftest$ac_exeext 6486if { (ac_try="$ac_link" 6487case "(($ac_try" in 6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6489 *) ac_try_echo=$ac_try;; 6490esac 6491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6492$as_echo "$ac_try_echo") >&5 6493 (eval "$ac_link") 2>conftest.er1 6494 ac_status=$? 6495 grep -v '^ *+' conftest.er1 >conftest.err 6496 rm -f conftest.er1 6497 cat conftest.err >&5 6498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6499 (exit $ac_status); } && { 6500 test -z "$ac_c_werror_flag" || 6501 test ! -s conftest.err 6502 } && test -s conftest$ac_exeext && { 6503 test "$cross_compiling" = yes || 6504 $as_test_x conftest$ac_exeext 6505 }; then 6506 lt_cv_cc_needs_belf=yes 6507else 6508 $as_echo "$as_me: failed program was:" >&5 6509sed 's/^/| /' conftest.$ac_ext >&5 6510 6511 lt_cv_cc_needs_belf=no 6512fi 6513 6514rm -rf conftest.dSYM 6515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6516 conftest$ac_exeext conftest.$ac_ext 6517 ac_ext=c 6518ac_cpp='$CPP $CPPFLAGS' 6519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6521ac_compiler_gnu=$ac_cv_c_compiler_gnu 6522 6523fi 6524{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6525$as_echo "$lt_cv_cc_needs_belf" >&6; } 6526 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6527 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6528 CFLAGS="$SAVE_CFLAGS" 6529 fi 6530 ;; 6531sparc*-*solaris*) 6532 # Find out which ABI we are using. 6533 echo 'int i;' > conftest.$ac_ext 6534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6535 (eval $ac_compile) 2>&5 6536 ac_status=$? 6537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6538 (exit $ac_status); }; then 6539 case `/usr/bin/file conftest.o` in 6540 *64-bit*) 6541 case $lt_cv_prog_gnu_ld in 6542 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6543 *) 6544 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6545 LD="${LD-ld} -64" 6546 fi 6547 ;; 6548 esac 6549 ;; 6550 esac 6551 fi 6552 rm -rf conftest* 6553 ;; 6554esac 6555 6556need_locks="$enable_libtool_lock" 6557 6558 6559 case $host_os in 6560 rhapsody* | darwin*) 6561 if test -n "$ac_tool_prefix"; then 6562 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6563set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6565$as_echo_n "checking for $ac_word... " >&6; } 6566if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 6567 $as_echo_n "(cached) " >&6 6568else 6569 if test -n "$DSYMUTIL"; then 6570 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6571else 6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6573for as_dir in $PATH 6574do 6575 IFS=$as_save_IFS 6576 test -z "$as_dir" && as_dir=. 6577 for ac_exec_ext in '' $ac_executable_extensions; do 6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6579 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6581 break 2 6582 fi 6583done 6584done 6585IFS=$as_save_IFS 6586 6587fi 6588fi 6589DSYMUTIL=$ac_cv_prog_DSYMUTIL 6590if test -n "$DSYMUTIL"; then 6591 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 6592$as_echo "$DSYMUTIL" >&6; } 6593else 6594 { $as_echo "$as_me:$LINENO: result: no" >&5 6595$as_echo "no" >&6; } 6596fi 6597 6598 6599fi 6600if test -z "$ac_cv_prog_DSYMUTIL"; then 6601 ac_ct_DSYMUTIL=$DSYMUTIL 6602 # Extract the first word of "dsymutil", so it can be a program name with args. 6603set dummy dsymutil; ac_word=$2 6604{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6605$as_echo_n "checking for $ac_word... " >&6; } 6606if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 6607 $as_echo_n "(cached) " >&6 6608else 6609 if test -n "$ac_ct_DSYMUTIL"; then 6610 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6611else 6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6619 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624done 6625IFS=$as_save_IFS 6626 6627fi 6628fi 6629ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6630if test -n "$ac_ct_DSYMUTIL"; then 6631 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 6632$as_echo "$ac_ct_DSYMUTIL" >&6; } 6633else 6634 { $as_echo "$as_me:$LINENO: result: no" >&5 6635$as_echo "no" >&6; } 6636fi 6637 6638 if test "x$ac_ct_DSYMUTIL" = x; then 6639 DSYMUTIL=":" 6640 else 6641 case $cross_compiling:$ac_tool_warned in 6642yes:) 6643{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6645ac_tool_warned=yes ;; 6646esac 6647 DSYMUTIL=$ac_ct_DSYMUTIL 6648 fi 6649else 6650 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6651fi 6652 6653 if test -n "$ac_tool_prefix"; then 6654 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6655set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6656{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6657$as_echo_n "checking for $ac_word... " >&6; } 6658if test "${ac_cv_prog_NMEDIT+set}" = set; then 6659 $as_echo_n "(cached) " >&6 6660else 6661 if test -n "$NMEDIT"; then 6662 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6671 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676done 6677IFS=$as_save_IFS 6678 6679fi 6680fi 6681NMEDIT=$ac_cv_prog_NMEDIT 6682if test -n "$NMEDIT"; then 6683 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 6684$as_echo "$NMEDIT" >&6; } 6685else 6686 { $as_echo "$as_me:$LINENO: result: no" >&5 6687$as_echo "no" >&6; } 6688fi 6689 6690 6691fi 6692if test -z "$ac_cv_prog_NMEDIT"; then 6693 ac_ct_NMEDIT=$NMEDIT 6694 # Extract the first word of "nmedit", so it can be a program name with args. 6695set dummy nmedit; ac_word=$2 6696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6697$as_echo_n "checking for $ac_word... " >&6; } 6698if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6699 $as_echo_n "(cached) " >&6 6700else 6701 if test -n "$ac_ct_NMEDIT"; then 6702 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6703else 6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH 6706do 6707 IFS=$as_save_IFS 6708 test -z "$as_dir" && as_dir=. 6709 for ac_exec_ext in '' $ac_executable_extensions; do 6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6711 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6713 break 2 6714 fi 6715done 6716done 6717IFS=$as_save_IFS 6718 6719fi 6720fi 6721ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6722if test -n "$ac_ct_NMEDIT"; then 6723 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6724$as_echo "$ac_ct_NMEDIT" >&6; } 6725else 6726 { $as_echo "$as_me:$LINENO: result: no" >&5 6727$as_echo "no" >&6; } 6728fi 6729 6730 if test "x$ac_ct_NMEDIT" = x; then 6731 NMEDIT=":" 6732 else 6733 case $cross_compiling:$ac_tool_warned in 6734yes:) 6735{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6737ac_tool_warned=yes ;; 6738esac 6739 NMEDIT=$ac_ct_NMEDIT 6740 fi 6741else 6742 NMEDIT="$ac_cv_prog_NMEDIT" 6743fi 6744 6745 if test -n "$ac_tool_prefix"; then 6746 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6747set dummy ${ac_tool_prefix}lipo; ac_word=$2 6748{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6749$as_echo_n "checking for $ac_word... " >&6; } 6750if test "${ac_cv_prog_LIPO+set}" = set; then 6751 $as_echo_n "(cached) " >&6 6752else 6753 if test -n "$LIPO"; then 6754 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6755else 6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6757for as_dir in $PATH 6758do 6759 IFS=$as_save_IFS 6760 test -z "$as_dir" && as_dir=. 6761 for ac_exec_ext in '' $ac_executable_extensions; do 6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6763 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6764 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6765 break 2 6766 fi 6767done 6768done 6769IFS=$as_save_IFS 6770 6771fi 6772fi 6773LIPO=$ac_cv_prog_LIPO 6774if test -n "$LIPO"; then 6775 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6776$as_echo "$LIPO" >&6; } 6777else 6778 { $as_echo "$as_me:$LINENO: result: no" >&5 6779$as_echo "no" >&6; } 6780fi 6781 6782 6783fi 6784if test -z "$ac_cv_prog_LIPO"; then 6785 ac_ct_LIPO=$LIPO 6786 # Extract the first word of "lipo", so it can be a program name with args. 6787set dummy lipo; ac_word=$2 6788{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6789$as_echo_n "checking for $ac_word... " >&6; } 6790if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6791 $as_echo_n "(cached) " >&6 6792else 6793 if test -n "$ac_ct_LIPO"; then 6794 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6795else 6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6797for as_dir in $PATH 6798do 6799 IFS=$as_save_IFS 6800 test -z "$as_dir" && as_dir=. 6801 for ac_exec_ext in '' $ac_executable_extensions; do 6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6803 ac_cv_prog_ac_ct_LIPO="lipo" 6804 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6805 break 2 6806 fi 6807done 6808done 6809IFS=$as_save_IFS 6810 6811fi 6812fi 6813ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6814if test -n "$ac_ct_LIPO"; then 6815 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6816$as_echo "$ac_ct_LIPO" >&6; } 6817else 6818 { $as_echo "$as_me:$LINENO: result: no" >&5 6819$as_echo "no" >&6; } 6820fi 6821 6822 if test "x$ac_ct_LIPO" = x; then 6823 LIPO=":" 6824 else 6825 case $cross_compiling:$ac_tool_warned in 6826yes:) 6827{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6829ac_tool_warned=yes ;; 6830esac 6831 LIPO=$ac_ct_LIPO 6832 fi 6833else 6834 LIPO="$ac_cv_prog_LIPO" 6835fi 6836 6837 if test -n "$ac_tool_prefix"; then 6838 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6839set dummy ${ac_tool_prefix}otool; ac_word=$2 6840{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if test "${ac_cv_prog_OTOOL+set}" = set; then 6843 $as_echo_n "(cached) " >&6 6844else 6845 if test -n "$OTOOL"; then 6846 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6847else 6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_exec_ext in '' $ac_executable_extensions; do 6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6855 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6857 break 2 6858 fi 6859done 6860done 6861IFS=$as_save_IFS 6862 6863fi 6864fi 6865OTOOL=$ac_cv_prog_OTOOL 6866if test -n "$OTOOL"; then 6867 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6868$as_echo "$OTOOL" >&6; } 6869else 6870 { $as_echo "$as_me:$LINENO: result: no" >&5 6871$as_echo "no" >&6; } 6872fi 6873 6874 6875fi 6876if test -z "$ac_cv_prog_OTOOL"; then 6877 ac_ct_OTOOL=$OTOOL 6878 # Extract the first word of "otool", so it can be a program name with args. 6879set dummy otool; ac_word=$2 6880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6881$as_echo_n "checking for $ac_word... " >&6; } 6882if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6883 $as_echo_n "(cached) " >&6 6884else 6885 if test -n "$ac_ct_OTOOL"; then 6886 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6887else 6888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6889for as_dir in $PATH 6890do 6891 IFS=$as_save_IFS 6892 test -z "$as_dir" && as_dir=. 6893 for ac_exec_ext in '' $ac_executable_extensions; do 6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6895 ac_cv_prog_ac_ct_OTOOL="otool" 6896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6897 break 2 6898 fi 6899done 6900done 6901IFS=$as_save_IFS 6902 6903fi 6904fi 6905ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6906if test -n "$ac_ct_OTOOL"; then 6907 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6908$as_echo "$ac_ct_OTOOL" >&6; } 6909else 6910 { $as_echo "$as_me:$LINENO: result: no" >&5 6911$as_echo "no" >&6; } 6912fi 6913 6914 if test "x$ac_ct_OTOOL" = x; then 6915 OTOOL=":" 6916 else 6917 case $cross_compiling:$ac_tool_warned in 6918yes:) 6919{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6921ac_tool_warned=yes ;; 6922esac 6923 OTOOL=$ac_ct_OTOOL 6924 fi 6925else 6926 OTOOL="$ac_cv_prog_OTOOL" 6927fi 6928 6929 if test -n "$ac_tool_prefix"; then 6930 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6931set dummy ${ac_tool_prefix}otool64; ac_word=$2 6932{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6933$as_echo_n "checking for $ac_word... " >&6; } 6934if test "${ac_cv_prog_OTOOL64+set}" = set; then 6935 $as_echo_n "(cached) " >&6 6936else 6937 if test -n "$OTOOL64"; then 6938 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6939else 6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941for as_dir in $PATH 6942do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6947 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951done 6952done 6953IFS=$as_save_IFS 6954 6955fi 6956fi 6957OTOOL64=$ac_cv_prog_OTOOL64 6958if test -n "$OTOOL64"; then 6959 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6960$as_echo "$OTOOL64" >&6; } 6961else 6962 { $as_echo "$as_me:$LINENO: result: no" >&5 6963$as_echo "no" >&6; } 6964fi 6965 6966 6967fi 6968if test -z "$ac_cv_prog_OTOOL64"; then 6969 ac_ct_OTOOL64=$OTOOL64 6970 # Extract the first word of "otool64", so it can be a program name with args. 6971set dummy otool64; ac_word=$2 6972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6973$as_echo_n "checking for $ac_word... " >&6; } 6974if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6975 $as_echo_n "(cached) " >&6 6976else 6977 if test -n "$ac_ct_OTOOL64"; then 6978 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6979else 6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6981for as_dir in $PATH 6982do 6983 IFS=$as_save_IFS 6984 test -z "$as_dir" && as_dir=. 6985 for ac_exec_ext in '' $ac_executable_extensions; do 6986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6987 ac_cv_prog_ac_ct_OTOOL64="otool64" 6988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6989 break 2 6990 fi 6991done 6992done 6993IFS=$as_save_IFS 6994 6995fi 6996fi 6997ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6998if test -n "$ac_ct_OTOOL64"; then 6999 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7000$as_echo "$ac_ct_OTOOL64" >&6; } 7001else 7002 { $as_echo "$as_me:$LINENO: result: no" >&5 7003$as_echo "no" >&6; } 7004fi 7005 7006 if test "x$ac_ct_OTOOL64" = x; then 7007 OTOOL64=":" 7008 else 7009 case $cross_compiling:$ac_tool_warned in 7010yes:) 7011{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7013ac_tool_warned=yes ;; 7014esac 7015 OTOOL64=$ac_ct_OTOOL64 7016 fi 7017else 7018 OTOOL64="$ac_cv_prog_OTOOL64" 7019fi 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7048$as_echo_n "checking for -single_module linker flag... " >&6; } 7049if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7050 $as_echo_n "(cached) " >&6 7051else 7052 lt_cv_apple_cc_single_mod=no 7053 if test -z "${LT_MULTI_MODULE}"; then 7054 # By default we will add the -single_module flag. You can override 7055 # by either setting the environment variable LT_MULTI_MODULE 7056 # non-empty at configure time, or by adding -multi_module to the 7057 # link flags. 7058 rm -rf libconftest.dylib* 7059 echo "int foo(void){return 1;}" > conftest.c 7060 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7061-dynamiclib -Wl,-single_module conftest.c" >&5 7062 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7063 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7064 _lt_result=$? 7065 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7066 lt_cv_apple_cc_single_mod=yes 7067 else 7068 cat conftest.err >&5 7069 fi 7070 rm -rf libconftest.dylib* 7071 rm -f conftest.* 7072 fi 7073fi 7074{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7075$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7076 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7077$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7078if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7079 $as_echo_n "(cached) " >&6 7080else 7081 lt_cv_ld_exported_symbols_list=no 7082 save_LDFLAGS=$LDFLAGS 7083 echo "_main" > conftest.sym 7084 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7085 cat >conftest.$ac_ext <<_ACEOF 7086/* confdefs.h. */ 7087_ACEOF 7088cat confdefs.h >>conftest.$ac_ext 7089cat >>conftest.$ac_ext <<_ACEOF 7090/* end confdefs.h. */ 7091 7092int 7093main () 7094{ 7095 7096 ; 7097 return 0; 7098} 7099_ACEOF 7100rm -f conftest.$ac_objext conftest$ac_exeext 7101if { (ac_try="$ac_link" 7102case "(($ac_try" in 7103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7104 *) ac_try_echo=$ac_try;; 7105esac 7106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7107$as_echo "$ac_try_echo") >&5 7108 (eval "$ac_link") 2>conftest.er1 7109 ac_status=$? 7110 grep -v '^ *+' conftest.er1 >conftest.err 7111 rm -f conftest.er1 7112 cat conftest.err >&5 7113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7114 (exit $ac_status); } && { 7115 test -z "$ac_c_werror_flag" || 7116 test ! -s conftest.err 7117 } && test -s conftest$ac_exeext && { 7118 test "$cross_compiling" = yes || 7119 $as_test_x conftest$ac_exeext 7120 }; then 7121 lt_cv_ld_exported_symbols_list=yes 7122else 7123 $as_echo "$as_me: failed program was:" >&5 7124sed 's/^/| /' conftest.$ac_ext >&5 7125 7126 lt_cv_ld_exported_symbols_list=no 7127fi 7128 7129rm -rf conftest.dSYM 7130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7131 conftest$ac_exeext conftest.$ac_ext 7132 LDFLAGS="$save_LDFLAGS" 7133 7134fi 7135{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7136$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7137 case $host_os in 7138 rhapsody* | darwin1.[012]) 7139 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7140 darwin1.*) 7141 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7142 darwin*) # darwin 5.x on 7143 # if running on 10.5 or later, the deployment target defaults 7144 # to the OS version, if on x86, and 10.4, the deployment 7145 # target defaults to 10.4. Don't you love it? 7146 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7147 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7148 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7149 10.[012]*) 7150 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7151 10.*) 7152 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7153 esac 7154 ;; 7155 esac 7156 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7157 _lt_dar_single_mod='$single_module' 7158 fi 7159 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7160 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7161 else 7162 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7163 fi 7164 if test "$DSYMUTIL" != ":"; then 7165 _lt_dsymutil='~$DSYMUTIL $lib || :' 7166 else 7167 _lt_dsymutil= 7168 fi 7169 ;; 7170 esac 7171 7172 7173{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7174$as_echo_n "checking for ANSI C header files... " >&6; } 7175if test "${ac_cv_header_stdc+set}" = set; then 7176 $as_echo_n "(cached) " >&6 7177else 7178 cat >conftest.$ac_ext <<_ACEOF 7179/* confdefs.h. */ 7180_ACEOF 7181cat confdefs.h >>conftest.$ac_ext 7182cat >>conftest.$ac_ext <<_ACEOF 7183/* end confdefs.h. */ 7184#include <stdlib.h> 7185#include <stdarg.h> 7186#include <string.h> 7187#include <float.h> 7188 7189int 7190main () 7191{ 7192 7193 ; 7194 return 0; 7195} 7196_ACEOF 7197rm -f conftest.$ac_objext 7198if { (ac_try="$ac_compile" 7199case "(($ac_try" in 7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7201 *) ac_try_echo=$ac_try;; 7202esac 7203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7204$as_echo "$ac_try_echo") >&5 7205 (eval "$ac_compile") 2>conftest.er1 7206 ac_status=$? 7207 grep -v '^ *+' conftest.er1 >conftest.err 7208 rm -f conftest.er1 7209 cat conftest.err >&5 7210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7211 (exit $ac_status); } && { 7212 test -z "$ac_c_werror_flag" || 7213 test ! -s conftest.err 7214 } && test -s conftest.$ac_objext; then 7215 ac_cv_header_stdc=yes 7216else 7217 $as_echo "$as_me: failed program was:" >&5 7218sed 's/^/| /' conftest.$ac_ext >&5 7219 7220 ac_cv_header_stdc=no 7221fi 7222 7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7224 7225if test $ac_cv_header_stdc = yes; then 7226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7227 cat >conftest.$ac_ext <<_ACEOF 7228/* confdefs.h. */ 7229_ACEOF 7230cat confdefs.h >>conftest.$ac_ext 7231cat >>conftest.$ac_ext <<_ACEOF 7232/* end confdefs.h. */ 7233#include <string.h> 7234 7235_ACEOF 7236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7237 $EGREP "memchr" >/dev/null 2>&1; then 7238 : 7239else 7240 ac_cv_header_stdc=no 7241fi 7242rm -f conftest* 7243 7244fi 7245 7246if test $ac_cv_header_stdc = yes; then 7247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7248 cat >conftest.$ac_ext <<_ACEOF 7249/* confdefs.h. */ 7250_ACEOF 7251cat confdefs.h >>conftest.$ac_ext 7252cat >>conftest.$ac_ext <<_ACEOF 7253/* end confdefs.h. */ 7254#include <stdlib.h> 7255 7256_ACEOF 7257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7258 $EGREP "free" >/dev/null 2>&1; then 7259 : 7260else 7261 ac_cv_header_stdc=no 7262fi 7263rm -f conftest* 7264 7265fi 7266 7267if test $ac_cv_header_stdc = yes; then 7268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7269 if test "$cross_compiling" = yes; then 7270 : 7271else 7272 cat >conftest.$ac_ext <<_ACEOF 7273/* confdefs.h. */ 7274_ACEOF 7275cat confdefs.h >>conftest.$ac_ext 7276cat >>conftest.$ac_ext <<_ACEOF 7277/* end confdefs.h. */ 7278#include <ctype.h> 7279#include <stdlib.h> 7280#if ((' ' & 0x0FF) == 0x020) 7281# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7282# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7283#else 7284# define ISLOWER(c) \ 7285 (('a' <= (c) && (c) <= 'i') \ 7286 || ('j' <= (c) && (c) <= 'r') \ 7287 || ('s' <= (c) && (c) <= 'z')) 7288# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7289#endif 7290 7291#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7292int 7293main () 7294{ 7295 int i; 7296 for (i = 0; i < 256; i++) 7297 if (XOR (islower (i), ISLOWER (i)) 7298 || toupper (i) != TOUPPER (i)) 7299 return 2; 7300 return 0; 7301} 7302_ACEOF 7303rm -f conftest$ac_exeext 7304if { (ac_try="$ac_link" 7305case "(($ac_try" in 7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7307 *) ac_try_echo=$ac_try;; 7308esac 7309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7310$as_echo "$ac_try_echo") >&5 7311 (eval "$ac_link") 2>&5 7312 ac_status=$? 7313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7315 { (case "(($ac_try" in 7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7317 *) ac_try_echo=$ac_try;; 7318esac 7319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7320$as_echo "$ac_try_echo") >&5 7321 (eval "$ac_try") 2>&5 7322 ac_status=$? 7323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7324 (exit $ac_status); }; }; then 7325 : 7326else 7327 $as_echo "$as_me: program exited with status $ac_status" >&5 7328$as_echo "$as_me: failed program was:" >&5 7329sed 's/^/| /' conftest.$ac_ext >&5 7330 7331( exit $ac_status ) 7332ac_cv_header_stdc=no 7333fi 7334rm -rf conftest.dSYM 7335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7336fi 7337 7338 7339fi 7340fi 7341{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7342$as_echo "$ac_cv_header_stdc" >&6; } 7343if test $ac_cv_header_stdc = yes; then 7344 7345cat >>confdefs.h <<\_ACEOF 7346#define STDC_HEADERS 1 7347_ACEOF 7348 7349fi 7350 7351# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7362 inttypes.h stdint.h unistd.h 7363do 7364as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7365{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7366$as_echo_n "checking for $ac_header... " >&6; } 7367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7368 $as_echo_n "(cached) " >&6 7369else 7370 cat >conftest.$ac_ext <<_ACEOF 7371/* confdefs.h. */ 7372_ACEOF 7373cat confdefs.h >>conftest.$ac_ext 7374cat >>conftest.$ac_ext <<_ACEOF 7375/* end confdefs.h. */ 7376$ac_includes_default 7377 7378#include <$ac_header> 7379_ACEOF 7380rm -f conftest.$ac_objext 7381if { (ac_try="$ac_compile" 7382case "(($ac_try" in 7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7384 *) ac_try_echo=$ac_try;; 7385esac 7386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7387$as_echo "$ac_try_echo") >&5 7388 (eval "$ac_compile") 2>conftest.er1 7389 ac_status=$? 7390 grep -v '^ *+' conftest.er1 >conftest.err 7391 rm -f conftest.er1 7392 cat conftest.err >&5 7393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7394 (exit $ac_status); } && { 7395 test -z "$ac_c_werror_flag" || 7396 test ! -s conftest.err 7397 } && test -s conftest.$ac_objext; then 7398 eval "$as_ac_Header=yes" 7399else 7400 $as_echo "$as_me: failed program was:" >&5 7401sed 's/^/| /' conftest.$ac_ext >&5 7402 7403 eval "$as_ac_Header=no" 7404fi 7405 7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7407fi 7408ac_res=`eval 'as_val=${'$as_ac_Header'} 7409 $as_echo "$as_val"'` 7410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7411$as_echo "$ac_res" >&6; } 7412as_val=`eval 'as_val=${'$as_ac_Header'} 7413 $as_echo "$as_val"'` 7414 if test "x$as_val" = x""yes; then 7415 cat >>confdefs.h <<_ACEOF 7416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7417_ACEOF 7418 7419fi 7420 7421done 7422 7423 7424 7425for ac_header in dlfcn.h 7426do 7427as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7428{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7429$as_echo_n "checking for $ac_header... " >&6; } 7430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7431 $as_echo_n "(cached) " >&6 7432else 7433 cat >conftest.$ac_ext <<_ACEOF 7434/* confdefs.h. */ 7435_ACEOF 7436cat confdefs.h >>conftest.$ac_ext 7437cat >>conftest.$ac_ext <<_ACEOF 7438/* end confdefs.h. */ 7439$ac_includes_default 7440 7441#include <$ac_header> 7442_ACEOF 7443rm -f conftest.$ac_objext 7444if { (ac_try="$ac_compile" 7445case "(($ac_try" in 7446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7447 *) ac_try_echo=$ac_try;; 7448esac 7449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7450$as_echo "$ac_try_echo") >&5 7451 (eval "$ac_compile") 2>conftest.er1 7452 ac_status=$? 7453 grep -v '^ *+' conftest.er1 >conftest.err 7454 rm -f conftest.er1 7455 cat conftest.err >&5 7456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7457 (exit $ac_status); } && { 7458 test -z "$ac_c_werror_flag" || 7459 test ! -s conftest.err 7460 } && test -s conftest.$ac_objext; then 7461 eval "$as_ac_Header=yes" 7462else 7463 $as_echo "$as_me: failed program was:" >&5 7464sed 's/^/| /' conftest.$ac_ext >&5 7465 7466 eval "$as_ac_Header=no" 7467fi 7468 7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7470fi 7471ac_res=`eval 'as_val=${'$as_ac_Header'} 7472 $as_echo "$as_val"'` 7473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7474$as_echo "$ac_res" >&6; } 7475as_val=`eval 'as_val=${'$as_ac_Header'} 7476 $as_echo "$as_val"'` 7477 if test "x$as_val" = x""yes; then 7478 cat >>confdefs.h <<_ACEOF 7479#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7480_ACEOF 7481 7482fi 7483 7484done 7485 7486 7487 7488ac_ext=cpp 7489ac_cpp='$CXXCPP $CPPFLAGS' 7490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7493if test -z "$CXX"; then 7494 if test -n "$CCC"; then 7495 CXX=$CCC 7496 else 7497 if test -n "$ac_tool_prefix"; then 7498 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7499 do 7500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7501set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7503$as_echo_n "checking for $ac_word... " >&6; } 7504if test "${ac_cv_prog_CXX+set}" = set; then 7505 $as_echo_n "(cached) " >&6 7506else 7507 if test -n "$CXX"; then 7508 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7509else 7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7511for as_dir in $PATH 7512do 7513 IFS=$as_save_IFS 7514 test -z "$as_dir" && as_dir=. 7515 for ac_exec_ext in '' $ac_executable_extensions; do 7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7517 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7519 break 2 7520 fi 7521done 7522done 7523IFS=$as_save_IFS 7524 7525fi 7526fi 7527CXX=$ac_cv_prog_CXX 7528if test -n "$CXX"; then 7529 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 7530$as_echo "$CXX" >&6; } 7531else 7532 { $as_echo "$as_me:$LINENO: result: no" >&5 7533$as_echo "no" >&6; } 7534fi 7535 7536 7537 test -n "$CXX" && break 7538 done 7539fi 7540if test -z "$CXX"; then 7541 ac_ct_CXX=$CXX 7542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7543do 7544 # Extract the first word of "$ac_prog", so it can be a program name with args. 7545set dummy $ac_prog; ac_word=$2 7546{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7547$as_echo_n "checking for $ac_word... " >&6; } 7548if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7549 $as_echo_n "(cached) " >&6 7550else 7551 if test -n "$ac_ct_CXX"; then 7552 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7553else 7554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7555for as_dir in $PATH 7556do 7557 IFS=$as_save_IFS 7558 test -z "$as_dir" && as_dir=. 7559 for ac_exec_ext in '' $ac_executable_extensions; do 7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7561 ac_cv_prog_ac_ct_CXX="$ac_prog" 7562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7563 break 2 7564 fi 7565done 7566done 7567IFS=$as_save_IFS 7568 7569fi 7570fi 7571ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7572if test -n "$ac_ct_CXX"; then 7573 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7574$as_echo "$ac_ct_CXX" >&6; } 7575else 7576 { $as_echo "$as_me:$LINENO: result: no" >&5 7577$as_echo "no" >&6; } 7578fi 7579 7580 7581 test -n "$ac_ct_CXX" && break 7582done 7583 7584 if test "x$ac_ct_CXX" = x; then 7585 CXX="g++" 7586 else 7587 case $cross_compiling:$ac_tool_warned in 7588yes:) 7589{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7591ac_tool_warned=yes ;; 7592esac 7593 CXX=$ac_ct_CXX 7594 fi 7595fi 7596 7597 fi 7598fi 7599# Provide some information about the compiler. 7600$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 7601set X $ac_compile 7602ac_compiler=$2 7603{ (ac_try="$ac_compiler --version >&5" 7604case "(($ac_try" in 7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7606 *) ac_try_echo=$ac_try;; 7607esac 7608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7609$as_echo "$ac_try_echo") >&5 7610 (eval "$ac_compiler --version >&5") 2>&5 7611 ac_status=$? 7612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7613 (exit $ac_status); } 7614{ (ac_try="$ac_compiler -v >&5" 7615case "(($ac_try" in 7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7617 *) ac_try_echo=$ac_try;; 7618esac 7619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7620$as_echo "$ac_try_echo") >&5 7621 (eval "$ac_compiler -v >&5") 2>&5 7622 ac_status=$? 7623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7624 (exit $ac_status); } 7625{ (ac_try="$ac_compiler -V >&5" 7626case "(($ac_try" in 7627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7628 *) ac_try_echo=$ac_try;; 7629esac 7630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7631$as_echo "$ac_try_echo") >&5 7632 (eval "$ac_compiler -V >&5") 2>&5 7633 ac_status=$? 7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7635 (exit $ac_status); } 7636 7637{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7638$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7639if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7640 $as_echo_n "(cached) " >&6 7641else 7642 cat >conftest.$ac_ext <<_ACEOF 7643/* confdefs.h. */ 7644_ACEOF 7645cat confdefs.h >>conftest.$ac_ext 7646cat >>conftest.$ac_ext <<_ACEOF 7647/* end confdefs.h. */ 7648 7649int 7650main () 7651{ 7652#ifndef __GNUC__ 7653 choke me 7654#endif 7655 7656 ; 7657 return 0; 7658} 7659_ACEOF 7660rm -f conftest.$ac_objext 7661if { (ac_try="$ac_compile" 7662case "(($ac_try" in 7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7664 *) ac_try_echo=$ac_try;; 7665esac 7666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7667$as_echo "$ac_try_echo") >&5 7668 (eval "$ac_compile") 2>conftest.er1 7669 ac_status=$? 7670 grep -v '^ *+' conftest.er1 >conftest.err 7671 rm -f conftest.er1 7672 cat conftest.err >&5 7673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7674 (exit $ac_status); } && { 7675 test -z "$ac_cxx_werror_flag" || 7676 test ! -s conftest.err 7677 } && test -s conftest.$ac_objext; then 7678 ac_compiler_gnu=yes 7679else 7680 $as_echo "$as_me: failed program was:" >&5 7681sed 's/^/| /' conftest.$ac_ext >&5 7682 7683 ac_compiler_gnu=no 7684fi 7685 7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7687ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7688 7689fi 7690{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7691$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7692if test $ac_compiler_gnu = yes; then 7693 GXX=yes 7694else 7695 GXX= 7696fi 7697ac_test_CXXFLAGS=${CXXFLAGS+set} 7698ac_save_CXXFLAGS=$CXXFLAGS 7699{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7700$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7701if test "${ac_cv_prog_cxx_g+set}" = set; then 7702 $as_echo_n "(cached) " >&6 7703else 7704 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7705 ac_cxx_werror_flag=yes 7706 ac_cv_prog_cxx_g=no 7707 CXXFLAGS="-g" 7708 cat >conftest.$ac_ext <<_ACEOF 7709/* confdefs.h. */ 7710_ACEOF 7711cat confdefs.h >>conftest.$ac_ext 7712cat >>conftest.$ac_ext <<_ACEOF 7713/* end confdefs.h. */ 7714 7715int 7716main () 7717{ 7718 7719 ; 7720 return 0; 7721} 7722_ACEOF 7723rm -f conftest.$ac_objext 7724if { (ac_try="$ac_compile" 7725case "(($ac_try" in 7726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7727 *) ac_try_echo=$ac_try;; 7728esac 7729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7730$as_echo "$ac_try_echo") >&5 7731 (eval "$ac_compile") 2>conftest.er1 7732 ac_status=$? 7733 grep -v '^ *+' conftest.er1 >conftest.err 7734 rm -f conftest.er1 7735 cat conftest.err >&5 7736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7737 (exit $ac_status); } && { 7738 test -z "$ac_cxx_werror_flag" || 7739 test ! -s conftest.err 7740 } && test -s conftest.$ac_objext; then 7741 ac_cv_prog_cxx_g=yes 7742else 7743 $as_echo "$as_me: failed program was:" >&5 7744sed 's/^/| /' conftest.$ac_ext >&5 7745 7746 CXXFLAGS="" 7747 cat >conftest.$ac_ext <<_ACEOF 7748/* confdefs.h. */ 7749_ACEOF 7750cat confdefs.h >>conftest.$ac_ext 7751cat >>conftest.$ac_ext <<_ACEOF 7752/* end confdefs.h. */ 7753 7754int 7755main () 7756{ 7757 7758 ; 7759 return 0; 7760} 7761_ACEOF 7762rm -f conftest.$ac_objext 7763if { (ac_try="$ac_compile" 7764case "(($ac_try" in 7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7766 *) ac_try_echo=$ac_try;; 7767esac 7768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7769$as_echo "$ac_try_echo") >&5 7770 (eval "$ac_compile") 2>conftest.er1 7771 ac_status=$? 7772 grep -v '^ *+' conftest.er1 >conftest.err 7773 rm -f conftest.er1 7774 cat conftest.err >&5 7775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 (exit $ac_status); } && { 7777 test -z "$ac_cxx_werror_flag" || 7778 test ! -s conftest.err 7779 } && test -s conftest.$ac_objext; then 7780 : 7781else 7782 $as_echo "$as_me: failed program was:" >&5 7783sed 's/^/| /' conftest.$ac_ext >&5 7784 7785 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7786 CXXFLAGS="-g" 7787 cat >conftest.$ac_ext <<_ACEOF 7788/* confdefs.h. */ 7789_ACEOF 7790cat confdefs.h >>conftest.$ac_ext 7791cat >>conftest.$ac_ext <<_ACEOF 7792/* end confdefs.h. */ 7793 7794int 7795main () 7796{ 7797 7798 ; 7799 return 0; 7800} 7801_ACEOF 7802rm -f conftest.$ac_objext 7803if { (ac_try="$ac_compile" 7804case "(($ac_try" in 7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7806 *) ac_try_echo=$ac_try;; 7807esac 7808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7809$as_echo "$ac_try_echo") >&5 7810 (eval "$ac_compile") 2>conftest.er1 7811 ac_status=$? 7812 grep -v '^ *+' conftest.er1 >conftest.err 7813 rm -f conftest.er1 7814 cat conftest.err >&5 7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7816 (exit $ac_status); } && { 7817 test -z "$ac_cxx_werror_flag" || 7818 test ! -s conftest.err 7819 } && test -s conftest.$ac_objext; then 7820 ac_cv_prog_cxx_g=yes 7821else 7822 $as_echo "$as_me: failed program was:" >&5 7823sed 's/^/| /' conftest.$ac_ext >&5 7824 7825 7826fi 7827 7828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7829fi 7830 7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7832fi 7833 7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7835 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7836fi 7837{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7838$as_echo "$ac_cv_prog_cxx_g" >&6; } 7839if test "$ac_test_CXXFLAGS" = set; then 7840 CXXFLAGS=$ac_save_CXXFLAGS 7841elif test $ac_cv_prog_cxx_g = yes; then 7842 if test "$GXX" = yes; then 7843 CXXFLAGS="-g -O2" 7844 else 7845 CXXFLAGS="-g" 7846 fi 7847else 7848 if test "$GXX" = yes; then 7849 CXXFLAGS="-O2" 7850 else 7851 CXXFLAGS= 7852 fi 7853fi 7854ac_ext=c 7855ac_cpp='$CPP $CPPFLAGS' 7856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7858ac_compiler_gnu=$ac_cv_c_compiler_gnu 7859 7860depcc="$CXX" am_compiler_list= 7861 7862{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 7863$as_echo_n "checking dependency style of $depcc... " >&6; } 7864if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 7865 $as_echo_n "(cached) " >&6 7866else 7867 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7868 # We make a subdir and do the tests there. Otherwise we can end up 7869 # making bogus files that we don't know about and never remove. For 7870 # instance it was reported that on HP-UX the gcc test will end up 7871 # making a dummy file named `D' -- because `-MD' means `put the output 7872 # in D'. 7873 mkdir conftest.dir 7874 # Copy depcomp to subdir because otherwise we won't find it if we're 7875 # using a relative directory. 7876 cp "$am_depcomp" conftest.dir 7877 cd conftest.dir 7878 # We will build objects and dependencies in a subdirectory because 7879 # it helps to detect inapplicable dependency modes. For instance 7880 # both Tru64's cc and ICC support -MD to output dependencies as a 7881 # side effect of compilation, but ICC will put the dependencies in 7882 # the current directory while Tru64 will put them in the object 7883 # directory. 7884 mkdir sub 7885 7886 am_cv_CXX_dependencies_compiler_type=none 7887 if test "$am_compiler_list" = ""; then 7888 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7889 fi 7890 for depmode in $am_compiler_list; do 7891 # Setup a source with many dependencies, because some compilers 7892 # like to wrap large dependency lists on column 80 (with \), and 7893 # we should not choose a depcomp mode which is confused by this. 7894 # 7895 # We need to recreate these files for each test, as the compiler may 7896 # overwrite some of them when testing with obscure command lines. 7897 # This happens at least with the AIX C compiler. 7898 : > sub/conftest.c 7899 for i in 1 2 3 4 5 6; do 7900 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7901 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7902 # Solaris 8's {/usr,}/bin/sh. 7903 touch sub/conftst$i.h 7904 done 7905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7906 7907 case $depmode in 7908 nosideeffect) 7909 # after this tag, mechanisms are not by side-effect, so they'll 7910 # only be used when explicitly requested 7911 if test "x$enable_dependency_tracking" = xyes; then 7912 continue 7913 else 7914 break 7915 fi 7916 ;; 7917 none) break ;; 7918 esac 7919 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7920 # mode. It turns out that the SunPro C++ compiler does not properly 7921 # handle `-M -o', and we need to detect this. 7922 if depmode=$depmode \ 7923 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 7924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7925 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 7926 >/dev/null 2>conftest.err && 7927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7929 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 7930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7931 # icc doesn't choke on unknown options, it will just issue warnings 7932 # or remarks (even with -Werror). So we grep stderr for any message 7933 # that says an option was ignored or not supported. 7934 # When given -MP, icc 7.0 and 7.1 complain thusly: 7935 # icc: Command line warning: ignoring option '-M'; no argument required 7936 # The diagnosis changed in icc 8.0: 7937 # icc: Command line remark: option '-MP' not supported 7938 if (grep 'ignoring option' conftest.err || 7939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7940 am_cv_CXX_dependencies_compiler_type=$depmode 7941 break 7942 fi 7943 fi 7944 done 7945 7946 cd .. 7947 rm -rf conftest.dir 7948else 7949 am_cv_CXX_dependencies_compiler_type=none 7950fi 7951 7952fi 7953{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 7954$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7955CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7956 7957 if 7958 test "x$enable_dependency_tracking" != xno \ 7959 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7960 am__fastdepCXX_TRUE= 7961 am__fastdepCXX_FALSE='#' 7962else 7963 am__fastdepCXX_TRUE='#' 7964 am__fastdepCXX_FALSE= 7965fi 7966 7967 7968if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7969 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7970 (test "X$CXX" != "Xg++"))) ; then 7971 ac_ext=cpp 7972ac_cpp='$CXXCPP $CPPFLAGS' 7973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7976{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 7977$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 7978if test -z "$CXXCPP"; then 7979 if test "${ac_cv_prog_CXXCPP+set}" = set; then 7980 $as_echo_n "(cached) " >&6 7981else 7982 # Double quotes because CXXCPP needs to be expanded 7983 for CXXCPP in "$CXX -E" "/lib/cpp" 7984 do 7985 ac_preproc_ok=false 7986for ac_cxx_preproc_warn_flag in '' yes 7987do 7988 # Use a header file that comes with gcc, so configuring glibc 7989 # with a fresh cross-compiler works. 7990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7991 # <limits.h> exists even on freestanding compilers. 7992 # On the NeXT, cc -E runs the code through the compiler's parser, 7993 # not just through cpp. "Syntax error" is here to catch this case. 7994 cat >conftest.$ac_ext <<_ACEOF 7995/* confdefs.h. */ 7996_ACEOF 7997cat confdefs.h >>conftest.$ac_ext 7998cat >>conftest.$ac_ext <<_ACEOF 7999/* end confdefs.h. */ 8000#ifdef __STDC__ 8001# include <limits.h> 8002#else 8003# include <assert.h> 8004#endif 8005 Syntax error 8006_ACEOF 8007if { (ac_try="$ac_cpp conftest.$ac_ext" 8008case "(($ac_try" in 8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8010 *) ac_try_echo=$ac_try;; 8011esac 8012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8013$as_echo "$ac_try_echo") >&5 8014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8015 ac_status=$? 8016 grep -v '^ *+' conftest.er1 >conftest.err 8017 rm -f conftest.er1 8018 cat conftest.err >&5 8019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8020 (exit $ac_status); } >/dev/null && { 8021 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8022 test ! -s conftest.err 8023 }; then 8024 : 8025else 8026 $as_echo "$as_me: failed program was:" >&5 8027sed 's/^/| /' conftest.$ac_ext >&5 8028 8029 # Broken: fails on valid input. 8030continue 8031fi 8032 8033rm -f conftest.err conftest.$ac_ext 8034 8035 # OK, works on sane cases. Now check whether nonexistent headers 8036 # can be detected and how. 8037 cat >conftest.$ac_ext <<_ACEOF 8038/* confdefs.h. */ 8039_ACEOF 8040cat confdefs.h >>conftest.$ac_ext 8041cat >>conftest.$ac_ext <<_ACEOF 8042/* end confdefs.h. */ 8043#include <ac_nonexistent.h> 8044_ACEOF 8045if { (ac_try="$ac_cpp conftest.$ac_ext" 8046case "(($ac_try" in 8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8048 *) ac_try_echo=$ac_try;; 8049esac 8050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8051$as_echo "$ac_try_echo") >&5 8052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8053 ac_status=$? 8054 grep -v '^ *+' conftest.er1 >conftest.err 8055 rm -f conftest.er1 8056 cat conftest.err >&5 8057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8058 (exit $ac_status); } >/dev/null && { 8059 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8060 test ! -s conftest.err 8061 }; then 8062 # Broken: success on invalid input. 8063continue 8064else 8065 $as_echo "$as_me: failed program was:" >&5 8066sed 's/^/| /' conftest.$ac_ext >&5 8067 8068 # Passes both tests. 8069ac_preproc_ok=: 8070break 8071fi 8072 8073rm -f conftest.err conftest.$ac_ext 8074 8075done 8076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8077rm -f conftest.err conftest.$ac_ext 8078if $ac_preproc_ok; then 8079 break 8080fi 8081 8082 done 8083 ac_cv_prog_CXXCPP=$CXXCPP 8084 8085fi 8086 CXXCPP=$ac_cv_prog_CXXCPP 8087else 8088 ac_cv_prog_CXXCPP=$CXXCPP 8089fi 8090{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 8091$as_echo "$CXXCPP" >&6; } 8092ac_preproc_ok=false 8093for ac_cxx_preproc_warn_flag in '' yes 8094do 8095 # Use a header file that comes with gcc, so configuring glibc 8096 # with a fresh cross-compiler works. 8097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8098 # <limits.h> exists even on freestanding compilers. 8099 # On the NeXT, cc -E runs the code through the compiler's parser, 8100 # not just through cpp. "Syntax error" is here to catch this case. 8101 cat >conftest.$ac_ext <<_ACEOF 8102/* confdefs.h. */ 8103_ACEOF 8104cat confdefs.h >>conftest.$ac_ext 8105cat >>conftest.$ac_ext <<_ACEOF 8106/* end confdefs.h. */ 8107#ifdef __STDC__ 8108# include <limits.h> 8109#else 8110# include <assert.h> 8111#endif 8112 Syntax error 8113_ACEOF 8114if { (ac_try="$ac_cpp conftest.$ac_ext" 8115case "(($ac_try" in 8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8117 *) ac_try_echo=$ac_try;; 8118esac 8119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8120$as_echo "$ac_try_echo") >&5 8121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8122 ac_status=$? 8123 grep -v '^ *+' conftest.er1 >conftest.err 8124 rm -f conftest.er1 8125 cat conftest.err >&5 8126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8127 (exit $ac_status); } >/dev/null && { 8128 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8129 test ! -s conftest.err 8130 }; then 8131 : 8132else 8133 $as_echo "$as_me: failed program was:" >&5 8134sed 's/^/| /' conftest.$ac_ext >&5 8135 8136 # Broken: fails on valid input. 8137continue 8138fi 8139 8140rm -f conftest.err conftest.$ac_ext 8141 8142 # OK, works on sane cases. Now check whether nonexistent headers 8143 # can be detected and how. 8144 cat >conftest.$ac_ext <<_ACEOF 8145/* confdefs.h. */ 8146_ACEOF 8147cat confdefs.h >>conftest.$ac_ext 8148cat >>conftest.$ac_ext <<_ACEOF 8149/* end confdefs.h. */ 8150#include <ac_nonexistent.h> 8151_ACEOF 8152if { (ac_try="$ac_cpp conftest.$ac_ext" 8153case "(($ac_try" in 8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8155 *) ac_try_echo=$ac_try;; 8156esac 8157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8158$as_echo "$ac_try_echo") >&5 8159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8160 ac_status=$? 8161 grep -v '^ *+' conftest.er1 >conftest.err 8162 rm -f conftest.er1 8163 cat conftest.err >&5 8164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8165 (exit $ac_status); } >/dev/null && { 8166 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8167 test ! -s conftest.err 8168 }; then 8169 # Broken: success on invalid input. 8170continue 8171else 8172 $as_echo "$as_me: failed program was:" >&5 8173sed 's/^/| /' conftest.$ac_ext >&5 8174 8175 # Passes both tests. 8176ac_preproc_ok=: 8177break 8178fi 8179 8180rm -f conftest.err conftest.$ac_ext 8181 8182done 8183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8184rm -f conftest.err conftest.$ac_ext 8185if $ac_preproc_ok; then 8186 : 8187else 8188 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 8189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8190_lt_caught_CXX_error=yes; } 8191fi 8192 8193ac_ext=c 8194ac_cpp='$CPP $CPPFLAGS' 8195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8197ac_compiler_gnu=$ac_cv_c_compiler_gnu 8198 8199else 8200 _lt_caught_CXX_error=yes 8201fi 8202 8203 8204 8205 8206 8207# Set options 8208 8209 8210 8211 enable_dlopen=no 8212 8213 8214 enable_win32_dll=no 8215 8216 8217 # Check whether --enable-shared was given. 8218if test "${enable_shared+set}" = set; then 8219 enableval=$enable_shared; p=${PACKAGE-default} 8220 case $enableval in 8221 yes) enable_shared=yes ;; 8222 no) enable_shared=no ;; 8223 *) 8224 enable_shared=no 8225 # Look at the argument we got. We use all the common list separators. 8226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8227 for pkg in $enableval; do 8228 IFS="$lt_save_ifs" 8229 if test "X$pkg" = "X$p"; then 8230 enable_shared=yes 8231 fi 8232 done 8233 IFS="$lt_save_ifs" 8234 ;; 8235 esac 8236else 8237 enable_shared=yes 8238fi 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250# Check whether --with-pic was given. 8251if test "${with_pic+set}" = set; then 8252 withval=$with_pic; pic_mode="$withval" 8253else 8254 pic_mode=default 8255fi 8256 8257 8258test -z "$pic_mode" && pic_mode=default 8259 8260 8261 8262 8263 8264 8265 8266 # Check whether --enable-fast-install was given. 8267if test "${enable_fast_install+set}" = set; then 8268 enableval=$enable_fast_install; p=${PACKAGE-default} 8269 case $enableval in 8270 yes) enable_fast_install=yes ;; 8271 no) enable_fast_install=no ;; 8272 *) 8273 enable_fast_install=no 8274 # Look at the argument we got. We use all the common list separators. 8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8276 for pkg in $enableval; do 8277 IFS="$lt_save_ifs" 8278 if test "X$pkg" = "X$p"; then 8279 enable_fast_install=yes 8280 fi 8281 done 8282 IFS="$lt_save_ifs" 8283 ;; 8284 esac 8285else 8286 enable_fast_install=yes 8287fi 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299# This can be used to rebuild libtool when needed 8300LIBTOOL_DEPS="$ltmain" 8301 8302# Always use our own libtool. 8303LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329test -z "$LN_S" && LN_S="ln -s" 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344if test -n "${ZSH_VERSION+set}" ; then 8345 setopt NO_GLOB_SUBST 8346fi 8347 8348{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 8349$as_echo_n "checking for objdir... " >&6; } 8350if test "${lt_cv_objdir+set}" = set; then 8351 $as_echo_n "(cached) " >&6 8352else 8353 rm -f .libs 2>/dev/null 8354mkdir .libs 2>/dev/null 8355if test -d .libs; then 8356 lt_cv_objdir=.libs 8357else 8358 # MS-DOS does not allow filenames that begin with a dot. 8359 lt_cv_objdir=_libs 8360fi 8361rmdir .libs 2>/dev/null 8362fi 8363{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8364$as_echo "$lt_cv_objdir" >&6; } 8365objdir=$lt_cv_objdir 8366 8367 8368 8369 8370 8371cat >>confdefs.h <<_ACEOF 8372#define LT_OBJDIR "$lt_cv_objdir/" 8373_ACEOF 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391case $host_os in 8392aix3*) 8393 # AIX sometimes has problems with the GCC collect2 program. For some 8394 # reason, if we set the COLLECT_NAMES environment variable, the problems 8395 # vanish in a puff of smoke. 8396 if test "X${COLLECT_NAMES+set}" != Xset; then 8397 COLLECT_NAMES= 8398 export COLLECT_NAMES 8399 fi 8400 ;; 8401esac 8402 8403# Sed substitution that helps us do robust quoting. It backslashifies 8404# metacharacters that are still active within double-quoted strings. 8405sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8406 8407# Same as above, but do not quote variable references. 8408double_quote_subst='s/\(["`\\]\)/\\\1/g' 8409 8410# Sed substitution to delay expansion of an escaped shell variable in a 8411# double_quote_subst'ed string. 8412delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8413 8414# Sed substitution to delay expansion of an escaped single quote. 8415delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8416 8417# Sed substitution to avoid accidental globbing in evaled expressions 8418no_glob_subst='s/\*/\\\*/g' 8419 8420# Global variables: 8421ofile=libtool 8422can_build_shared=yes 8423 8424# All known linkers require a `.a' archive for static linking (except MSVC, 8425# which needs '.lib'). 8426libext=a 8427 8428with_gnu_ld="$lt_cv_prog_gnu_ld" 8429 8430old_CC="$CC" 8431old_CFLAGS="$CFLAGS" 8432 8433# Set sane defaults for various variables 8434test -z "$CC" && CC=cc 8435test -z "$LTCC" && LTCC=$CC 8436test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8437test -z "$LD" && LD=ld 8438test -z "$ac_objext" && ac_objext=o 8439 8440for cc_temp in $compiler""; do 8441 case $cc_temp in 8442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8444 \-*) ;; 8445 *) break;; 8446 esac 8447done 8448cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8449 8450 8451# Only perform the check for file, if the check method requires it 8452test -z "$MAGIC_CMD" && MAGIC_CMD=file 8453case $deplibs_check_method in 8454file_magic*) 8455 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8456 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8457$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8458if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8459 $as_echo_n "(cached) " >&6 8460else 8461 case $MAGIC_CMD in 8462[\\/*] | ?:[\\/]*) 8463 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8464 ;; 8465*) 8466 lt_save_MAGIC_CMD="$MAGIC_CMD" 8467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8468 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8469 for ac_dir in $ac_dummy; do 8470 IFS="$lt_save_ifs" 8471 test -z "$ac_dir" && ac_dir=. 8472 if test -f $ac_dir/${ac_tool_prefix}file; then 8473 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8474 if test -n "$file_magic_test_file"; then 8475 case $deplibs_check_method in 8476 "file_magic "*) 8477 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8479 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8480 $EGREP "$file_magic_regex" > /dev/null; then 8481 : 8482 else 8483 cat <<_LT_EOF 1>&2 8484 8485*** Warning: the command libtool uses to detect shared libraries, 8486*** $file_magic_cmd, produces output that libtool cannot recognize. 8487*** The result is that libtool may fail to recognize shared libraries 8488*** as such. This will affect the creation of libtool libraries that 8489*** depend on shared libraries, but programs linked with such libtool 8490*** libraries will work regardless of this problem. Nevertheless, you 8491*** may want to report the problem to your system manager and/or to 8492*** bug-libtool@gnu.org 8493 8494_LT_EOF 8495 fi ;; 8496 esac 8497 fi 8498 break 8499 fi 8500 done 8501 IFS="$lt_save_ifs" 8502 MAGIC_CMD="$lt_save_MAGIC_CMD" 8503 ;; 8504esac 8505fi 8506 8507MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8508if test -n "$MAGIC_CMD"; then 8509 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8510$as_echo "$MAGIC_CMD" >&6; } 8511else 8512 { $as_echo "$as_me:$LINENO: result: no" >&5 8513$as_echo "no" >&6; } 8514fi 8515 8516 8517 8518 8519 8520if test -z "$lt_cv_path_MAGIC_CMD"; then 8521 if test -n "$ac_tool_prefix"; then 8522 { $as_echo "$as_me:$LINENO: checking for file" >&5 8523$as_echo_n "checking for file... " >&6; } 8524if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8525 $as_echo_n "(cached) " >&6 8526else 8527 case $MAGIC_CMD in 8528[\\/*] | ?:[\\/]*) 8529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8530 ;; 8531*) 8532 lt_save_MAGIC_CMD="$MAGIC_CMD" 8533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8534 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8535 for ac_dir in $ac_dummy; do 8536 IFS="$lt_save_ifs" 8537 test -z "$ac_dir" && ac_dir=. 8538 if test -f $ac_dir/file; then 8539 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8540 if test -n "$file_magic_test_file"; then 8541 case $deplibs_check_method in 8542 "file_magic "*) 8543 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8545 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8546 $EGREP "$file_magic_regex" > /dev/null; then 8547 : 8548 else 8549 cat <<_LT_EOF 1>&2 8550 8551*** Warning: the command libtool uses to detect shared libraries, 8552*** $file_magic_cmd, produces output that libtool cannot recognize. 8553*** The result is that libtool may fail to recognize shared libraries 8554*** as such. This will affect the creation of libtool libraries that 8555*** depend on shared libraries, but programs linked with such libtool 8556*** libraries will work regardless of this problem. Nevertheless, you 8557*** may want to report the problem to your system manager and/or to 8558*** bug-libtool@gnu.org 8559 8560_LT_EOF 8561 fi ;; 8562 esac 8563 fi 8564 break 8565 fi 8566 done 8567 IFS="$lt_save_ifs" 8568 MAGIC_CMD="$lt_save_MAGIC_CMD" 8569 ;; 8570esac 8571fi 8572 8573MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8574if test -n "$MAGIC_CMD"; then 8575 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8576$as_echo "$MAGIC_CMD" >&6; } 8577else 8578 { $as_echo "$as_me:$LINENO: result: no" >&5 8579$as_echo "no" >&6; } 8580fi 8581 8582 8583 else 8584 MAGIC_CMD=: 8585 fi 8586fi 8587 8588 fi 8589 ;; 8590esac 8591 8592# Use C for the default configuration in the libtool script 8593 8594lt_save_CC="$CC" 8595ac_ext=c 8596ac_cpp='$CPP $CPPFLAGS' 8597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8599ac_compiler_gnu=$ac_cv_c_compiler_gnu 8600 8601 8602# Source file extension for C test sources. 8603ac_ext=c 8604 8605# Object file extension for compiled C test sources. 8606objext=o 8607objext=$objext 8608 8609# Code to be used in simple compile tests 8610lt_simple_compile_test_code="int some_variable = 0;" 8611 8612# Code to be used in simple link tests 8613lt_simple_link_test_code='int main(){return(0);}' 8614 8615 8616 8617 8618 8619 8620 8621# If no C compiler was specified, use CC. 8622LTCC=${LTCC-"$CC"} 8623 8624# If no C compiler flags were specified, use CFLAGS. 8625LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8626 8627# Allow CC to be a program name with arguments. 8628compiler=$CC 8629 8630# Save the default compiler, since it gets overwritten when the other 8631# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8632compiler_DEFAULT=$CC 8633 8634# save warnings/boilerplate of simple test code 8635ac_outfile=conftest.$ac_objext 8636echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8637eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8638_lt_compiler_boilerplate=`cat conftest.err` 8639$RM conftest* 8640 8641ac_outfile=conftest.$ac_objext 8642echo "$lt_simple_link_test_code" >conftest.$ac_ext 8643eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8644_lt_linker_boilerplate=`cat conftest.err` 8645$RM -r conftest* 8646 8647 8648if test -n "$compiler"; then 8649 8650lt_prog_compiler_no_builtin_flag= 8651 8652if test "$GCC" = yes; then 8653 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8654 8655 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8656$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8657if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8658 $as_echo_n "(cached) " >&6 8659else 8660 lt_cv_prog_compiler_rtti_exceptions=no 8661 ac_outfile=conftest.$ac_objext 8662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8663 lt_compiler_flag="-fno-rtti -fno-exceptions" 8664 # Insert the option either (1) after the last *FLAGS variable, or 8665 # (2) before a word containing "conftest.", or (3) at the end. 8666 # Note that $ac_compile itself does not contain backslashes and begins 8667 # with a dollar sign (not a hyphen), so the echo should work correctly. 8668 # The option is referenced via a variable to avoid confusing sed. 8669 lt_compile=`echo "$ac_compile" | $SED \ 8670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8672 -e 's:$: $lt_compiler_flag:'` 8673 (eval echo "\"\$as_me:8673: $lt_compile\"" >&5) 8674 (eval "$lt_compile" 2>conftest.err) 8675 ac_status=$? 8676 cat conftest.err >&5 8677 echo "$as_me:8677: \$? = $ac_status" >&5 8678 if (exit $ac_status) && test -s "$ac_outfile"; then 8679 # The compiler can only warn and ignore the option if not recognized 8680 # So say no if there are warnings other than the usual output. 8681 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8684 lt_cv_prog_compiler_rtti_exceptions=yes 8685 fi 8686 fi 8687 $RM conftest* 8688 8689fi 8690{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8691$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8692 8693if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8694 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8695else 8696 : 8697fi 8698 8699fi 8700 8701 8702 8703 8704 8705 8706 lt_prog_compiler_wl= 8707lt_prog_compiler_pic= 8708lt_prog_compiler_static= 8709 8710{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8711$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8712 8713 if test "$GCC" = yes; then 8714 lt_prog_compiler_wl='-Wl,' 8715 lt_prog_compiler_static='-static' 8716 8717 case $host_os in 8718 aix*) 8719 # All AIX code is PIC. 8720 if test "$host_cpu" = ia64; then 8721 # AIX 5 now supports IA64 processor 8722 lt_prog_compiler_static='-Bstatic' 8723 fi 8724 ;; 8725 8726 amigaos*) 8727 case $host_cpu in 8728 powerpc) 8729 # see comment about AmigaOS4 .so support 8730 lt_prog_compiler_pic='-fPIC' 8731 ;; 8732 m68k) 8733 # FIXME: we need at least 68020 code to build shared libraries, but 8734 # adding the `-m68020' flag to GCC prevents building anything better, 8735 # like `-m68040'. 8736 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8737 ;; 8738 esac 8739 ;; 8740 8741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8742 # PIC is the default for these OSes. 8743 ;; 8744 8745 mingw* | cygwin* | pw32* | os2* | cegcc*) 8746 # This hack is so that the source file can tell whether it is being 8747 # built for inclusion in a dll (and should export symbols for example). 8748 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8749 # (--disable-auto-import) libraries 8750 lt_prog_compiler_pic='-DDLL_EXPORT' 8751 ;; 8752 8753 darwin* | rhapsody*) 8754 # PIC is the default on this platform 8755 # Common symbols not allowed in MH_DYLIB files 8756 lt_prog_compiler_pic='-fno-common' 8757 ;; 8758 8759 hpux*) 8760 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8761 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8762 # sets the default TLS model and affects inlining. 8763 case $host_cpu in 8764 hppa*64*) 8765 # +Z the default 8766 ;; 8767 *) 8768 lt_prog_compiler_pic='-fPIC' 8769 ;; 8770 esac 8771 ;; 8772 8773 interix[3-9]*) 8774 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8775 # Instead, we relocate shared libraries at runtime. 8776 ;; 8777 8778 msdosdjgpp*) 8779 # Just because we use GCC doesn't mean we suddenly get shared libraries 8780 # on systems that don't support them. 8781 lt_prog_compiler_can_build_shared=no 8782 enable_shared=no 8783 ;; 8784 8785 *nto* | *qnx*) 8786 # QNX uses GNU C++, but need to define -shared option too, otherwise 8787 # it will coredump. 8788 lt_prog_compiler_pic='-fPIC -shared' 8789 ;; 8790 8791 sysv4*MP*) 8792 if test -d /usr/nec; then 8793 lt_prog_compiler_pic=-Kconform_pic 8794 fi 8795 ;; 8796 8797 *) 8798 lt_prog_compiler_pic='-fPIC' 8799 ;; 8800 esac 8801 else 8802 # PORTME Check for flag to pass linker flags through the system compiler. 8803 case $host_os in 8804 aix*) 8805 lt_prog_compiler_wl='-Wl,' 8806 if test "$host_cpu" = ia64; then 8807 # AIX 5 now supports IA64 processor 8808 lt_prog_compiler_static='-Bstatic' 8809 else 8810 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8811 fi 8812 ;; 8813 8814 mingw* | cygwin* | pw32* | os2* | cegcc*) 8815 # This hack is so that the source file can tell whether it is being 8816 # built for inclusion in a dll (and should export symbols for example). 8817 lt_prog_compiler_pic='-DDLL_EXPORT' 8818 ;; 8819 8820 hpux9* | hpux10* | hpux11*) 8821 lt_prog_compiler_wl='-Wl,' 8822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8823 # not for PA HP-UX. 8824 case $host_cpu in 8825 hppa*64*|ia64*) 8826 # +Z the default 8827 ;; 8828 *) 8829 lt_prog_compiler_pic='+Z' 8830 ;; 8831 esac 8832 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8833 lt_prog_compiler_static='${wl}-a ${wl}archive' 8834 ;; 8835 8836 irix5* | irix6* | nonstopux*) 8837 lt_prog_compiler_wl='-Wl,' 8838 # PIC (with -KPIC) is the default. 8839 lt_prog_compiler_static='-non_shared' 8840 ;; 8841 8842 linux* | k*bsd*-gnu) 8843 case $cc_basename in 8844 # old Intel for x86_64 which still supported -KPIC. 8845 ecc*) 8846 lt_prog_compiler_wl='-Wl,' 8847 lt_prog_compiler_pic='-KPIC' 8848 lt_prog_compiler_static='-static' 8849 ;; 8850 # icc used to be incompatible with GCC. 8851 # ICC 10 doesn't accept -KPIC any more. 8852 icc* | ifort*) 8853 lt_prog_compiler_wl='-Wl,' 8854 lt_prog_compiler_pic='-fPIC' 8855 lt_prog_compiler_static='-static' 8856 ;; 8857 # Lahey Fortran 8.1. 8858 lf95*) 8859 lt_prog_compiler_wl='-Wl,' 8860 lt_prog_compiler_pic='--shared' 8861 lt_prog_compiler_static='--static' 8862 ;; 8863 pgcc* | pgf77* | pgf90* | pgf95*) 8864 # Portland Group compilers (*not* the Pentium gcc compiler, 8865 # which looks to be a dead project) 8866 lt_prog_compiler_wl='-Wl,' 8867 lt_prog_compiler_pic='-fpic' 8868 lt_prog_compiler_static='-Bstatic' 8869 ;; 8870 ccc*) 8871 lt_prog_compiler_wl='-Wl,' 8872 # All Alpha code is PIC. 8873 lt_prog_compiler_static='-non_shared' 8874 ;; 8875 xl*) 8876 # IBM XL C 8.0/Fortran 10.1 on PPC 8877 lt_prog_compiler_wl='-Wl,' 8878 lt_prog_compiler_pic='-qpic' 8879 lt_prog_compiler_static='-qstaticlink' 8880 ;; 8881 *) 8882 case `$CC -V 2>&1 | sed 5q` in 8883 *Sun\ C*) 8884 # Sun C 5.9 8885 lt_prog_compiler_pic='-KPIC' 8886 lt_prog_compiler_static='-Bstatic' 8887 lt_prog_compiler_wl='-Wl,' 8888 ;; 8889 *Sun\ F*) 8890 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8891 lt_prog_compiler_pic='-KPIC' 8892 lt_prog_compiler_static='-Bstatic' 8893 lt_prog_compiler_wl='' 8894 ;; 8895 esac 8896 ;; 8897 esac 8898 ;; 8899 8900 newsos6) 8901 lt_prog_compiler_pic='-KPIC' 8902 lt_prog_compiler_static='-Bstatic' 8903 ;; 8904 8905 *nto* | *qnx*) 8906 # QNX uses GNU C++, but need to define -shared option too, otherwise 8907 # it will coredump. 8908 lt_prog_compiler_pic='-fPIC -shared' 8909 ;; 8910 8911 osf3* | osf4* | osf5*) 8912 lt_prog_compiler_wl='-Wl,' 8913 # All OSF/1 code is PIC. 8914 lt_prog_compiler_static='-non_shared' 8915 ;; 8916 8917 rdos*) 8918 lt_prog_compiler_static='-non_shared' 8919 ;; 8920 8921 solaris*) 8922 lt_prog_compiler_pic='-KPIC' 8923 lt_prog_compiler_static='-Bstatic' 8924 case $cc_basename in 8925 f77* | f90* | f95*) 8926 lt_prog_compiler_wl='-Qoption ld ';; 8927 *) 8928 lt_prog_compiler_wl='-Wl,';; 8929 esac 8930 ;; 8931 8932 sunos4*) 8933 lt_prog_compiler_wl='-Qoption ld ' 8934 lt_prog_compiler_pic='-PIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 ;; 8937 8938 sysv4 | sysv4.2uw2* | sysv4.3*) 8939 lt_prog_compiler_wl='-Wl,' 8940 lt_prog_compiler_pic='-KPIC' 8941 lt_prog_compiler_static='-Bstatic' 8942 ;; 8943 8944 sysv4*MP*) 8945 if test -d /usr/nec ;then 8946 lt_prog_compiler_pic='-Kconform_pic' 8947 lt_prog_compiler_static='-Bstatic' 8948 fi 8949 ;; 8950 8951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8952 lt_prog_compiler_wl='-Wl,' 8953 lt_prog_compiler_pic='-KPIC' 8954 lt_prog_compiler_static='-Bstatic' 8955 ;; 8956 8957 unicos*) 8958 lt_prog_compiler_wl='-Wl,' 8959 lt_prog_compiler_can_build_shared=no 8960 ;; 8961 8962 uts4*) 8963 lt_prog_compiler_pic='-pic' 8964 lt_prog_compiler_static='-Bstatic' 8965 ;; 8966 8967 *) 8968 lt_prog_compiler_can_build_shared=no 8969 ;; 8970 esac 8971 fi 8972 8973case $host_os in 8974 # For platforms which do not support PIC, -DPIC is meaningless: 8975 *djgpp*) 8976 lt_prog_compiler_pic= 8977 ;; 8978 *) 8979 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8980 ;; 8981esac 8982{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8983$as_echo "$lt_prog_compiler_pic" >&6; } 8984 8985 8986 8987 8988 8989 8990# 8991# Check to make sure the PIC flag actually works. 8992# 8993if test -n "$lt_prog_compiler_pic"; then 8994 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8995$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8996if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8997 $as_echo_n "(cached) " >&6 8998else 8999 lt_cv_prog_compiler_pic_works=no 9000 ac_outfile=conftest.$ac_objext 9001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9002 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9003 # Insert the option either (1) after the last *FLAGS variable, or 9004 # (2) before a word containing "conftest.", or (3) at the end. 9005 # Note that $ac_compile itself does not contain backslashes and begins 9006 # with a dollar sign (not a hyphen), so the echo should work correctly. 9007 # The option is referenced via a variable to avoid confusing sed. 9008 lt_compile=`echo "$ac_compile" | $SED \ 9009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9011 -e 's:$: $lt_compiler_flag:'` 9012 (eval echo "\"\$as_me:9012: $lt_compile\"" >&5) 9013 (eval "$lt_compile" 2>conftest.err) 9014 ac_status=$? 9015 cat conftest.err >&5 9016 echo "$as_me:9016: \$? = $ac_status" >&5 9017 if (exit $ac_status) && test -s "$ac_outfile"; then 9018 # The compiler can only warn and ignore the option if not recognized 9019 # So say no if there are warnings other than the usual output. 9020 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9023 lt_cv_prog_compiler_pic_works=yes 9024 fi 9025 fi 9026 $RM conftest* 9027 9028fi 9029{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 9030$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9031 9032if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9033 case $lt_prog_compiler_pic in 9034 "" | " "*) ;; 9035 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9036 esac 9037else 9038 lt_prog_compiler_pic= 9039 lt_prog_compiler_can_build_shared=no 9040fi 9041 9042fi 9043 9044 9045 9046 9047 9048 9049# 9050# Check to make sure the static flag actually works. 9051# 9052wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9053{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9054$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9055if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9056 $as_echo_n "(cached) " >&6 9057else 9058 lt_cv_prog_compiler_static_works=no 9059 save_LDFLAGS="$LDFLAGS" 9060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9061 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9063 # The linker can only warn and ignore the option if not recognized 9064 # So say no if there are warnings 9065 if test -s conftest.err; then 9066 # Append any errors to the config.log. 9067 cat conftest.err 1>&5 9068 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9070 if diff conftest.exp conftest.er2 >/dev/null; then 9071 lt_cv_prog_compiler_static_works=yes 9072 fi 9073 else 9074 lt_cv_prog_compiler_static_works=yes 9075 fi 9076 fi 9077 $RM -r conftest* 9078 LDFLAGS="$save_LDFLAGS" 9079 9080fi 9081{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9082$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9083 9084if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9085 : 9086else 9087 lt_prog_compiler_static= 9088fi 9089 9090 9091 9092 9093 9094 9095 9096 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9097$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9098if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9099 $as_echo_n "(cached) " >&6 9100else 9101 lt_cv_prog_compiler_c_o=no 9102 $RM -r conftest 2>/dev/null 9103 mkdir conftest 9104 cd conftest 9105 mkdir out 9106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9107 9108 lt_compiler_flag="-o out/conftest2.$ac_objext" 9109 # Insert the option either (1) after the last *FLAGS variable, or 9110 # (2) before a word containing "conftest.", or (3) at the end. 9111 # Note that $ac_compile itself does not contain backslashes and begins 9112 # with a dollar sign (not a hyphen), so the echo should work correctly. 9113 lt_compile=`echo "$ac_compile" | $SED \ 9114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9116 -e 's:$: $lt_compiler_flag:'` 9117 (eval echo "\"\$as_me:9117: $lt_compile\"" >&5) 9118 (eval "$lt_compile" 2>out/conftest.err) 9119 ac_status=$? 9120 cat out/conftest.err >&5 9121 echo "$as_me:9121: \$? = $ac_status" >&5 9122 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9123 then 9124 # The compiler can only warn and ignore the option if not recognized 9125 # So say no if there are warnings 9126 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9129 lt_cv_prog_compiler_c_o=yes 9130 fi 9131 fi 9132 chmod u+w . 2>&5 9133 $RM conftest* 9134 # SGI C++ compiler will create directory out/ii_files/ for 9135 # template instantiation 9136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9137 $RM out/* && rmdir out 9138 cd .. 9139 $RM -r conftest 9140 $RM conftest* 9141 9142fi 9143{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9144$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9145 9146 9147 9148 9149 9150 9151 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9152$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9153if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9154 $as_echo_n "(cached) " >&6 9155else 9156 lt_cv_prog_compiler_c_o=no 9157 $RM -r conftest 2>/dev/null 9158 mkdir conftest 9159 cd conftest 9160 mkdir out 9161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9162 9163 lt_compiler_flag="-o out/conftest2.$ac_objext" 9164 # Insert the option either (1) after the last *FLAGS variable, or 9165 # (2) before a word containing "conftest.", or (3) at the end. 9166 # Note that $ac_compile itself does not contain backslashes and begins 9167 # with a dollar sign (not a hyphen), so the echo should work correctly. 9168 lt_compile=`echo "$ac_compile" | $SED \ 9169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9171 -e 's:$: $lt_compiler_flag:'` 9172 (eval echo "\"\$as_me:9172: $lt_compile\"" >&5) 9173 (eval "$lt_compile" 2>out/conftest.err) 9174 ac_status=$? 9175 cat out/conftest.err >&5 9176 echo "$as_me:9176: \$? = $ac_status" >&5 9177 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9178 then 9179 # The compiler can only warn and ignore the option if not recognized 9180 # So say no if there are warnings 9181 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9184 lt_cv_prog_compiler_c_o=yes 9185 fi 9186 fi 9187 chmod u+w . 2>&5 9188 $RM conftest* 9189 # SGI C++ compiler will create directory out/ii_files/ for 9190 # template instantiation 9191 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9192 $RM out/* && rmdir out 9193 cd .. 9194 $RM -r conftest 9195 $RM conftest* 9196 9197fi 9198{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9199$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9200 9201 9202 9203 9204hard_links="nottested" 9205if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9206 # do not overwrite the value of need_locks provided by the user 9207 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9208$as_echo_n "checking if we can lock with hard links... " >&6; } 9209 hard_links=yes 9210 $RM conftest* 9211 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9212 touch conftest.a 9213 ln conftest.a conftest.b 2>&5 || hard_links=no 9214 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9215 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 9216$as_echo "$hard_links" >&6; } 9217 if test "$hard_links" = no; then 9218 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9219$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9220 need_locks=warn 9221 fi 9222else 9223 need_locks=no 9224fi 9225 9226 9227 9228 9229 9230 9231 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9232$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9233 9234 runpath_var= 9235 allow_undefined_flag= 9236 always_export_symbols=no 9237 archive_cmds= 9238 archive_expsym_cmds= 9239 compiler_needs_object=no 9240 enable_shared_with_static_runtimes=no 9241 export_dynamic_flag_spec= 9242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9243 hardcode_automatic=no 9244 hardcode_direct=no 9245 hardcode_direct_absolute=no 9246 hardcode_libdir_flag_spec= 9247 hardcode_libdir_flag_spec_ld= 9248 hardcode_libdir_separator= 9249 hardcode_minus_L=no 9250 hardcode_shlibpath_var=unsupported 9251 inherit_rpath=no 9252 link_all_deplibs=unknown 9253 module_cmds= 9254 module_expsym_cmds= 9255 old_archive_from_new_cmds= 9256 old_archive_from_expsyms_cmds= 9257 thread_safe_flag_spec= 9258 whole_archive_flag_spec= 9259 # include_expsyms should be a list of space-separated symbols to be *always* 9260 # included in the symbol list 9261 include_expsyms= 9262 # exclude_expsyms can be an extended regexp of symbols to exclude 9263 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9264 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9265 # as well as any symbol that contains `d'. 9266 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9267 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9268 # platforms (ab)use it in PIC code, but their linkers get confused if 9269 # the symbol is explicitly referenced. Since portable code cannot 9270 # rely on this symbol name, it's probably fine to never include it in 9271 # preloaded symbol tables. 9272 # Exclude shared library initialization/finalization symbols. 9273 extract_expsyms_cmds= 9274 9275 case $host_os in 9276 cygwin* | mingw* | pw32* | cegcc*) 9277 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9278 # When not using gcc, we currently assume that we are using 9279 # Microsoft Visual C++. 9280 if test "$GCC" != yes; then 9281 with_gnu_ld=no 9282 fi 9283 ;; 9284 interix*) 9285 # we just hope/assume this is gcc and not c89 (= MSVC++) 9286 with_gnu_ld=yes 9287 ;; 9288 openbsd*) 9289 with_gnu_ld=no 9290 ;; 9291 esac 9292 9293 ld_shlibs=yes 9294 if test "$with_gnu_ld" = yes; then 9295 # If archive_cmds runs LD, not CC, wlarc should be empty 9296 wlarc='${wl}' 9297 9298 # Set some defaults for GNU ld with shared library support. These 9299 # are reset later if shared libraries are not supported. Putting them 9300 # here allows them to be overridden if necessary. 9301 runpath_var=LD_RUN_PATH 9302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9303 export_dynamic_flag_spec='${wl}--export-dynamic' 9304 # ancient GNU ld didn't support --whole-archive et. al. 9305 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9306 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9307 else 9308 whole_archive_flag_spec= 9309 fi 9310 supports_anon_versioning=no 9311 case `$LD -v 2>&1` in 9312 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9313 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9314 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9315 *\ 2.11.*) ;; # other 2.11 versions 9316 *) supports_anon_versioning=yes ;; 9317 esac 9318 9319 # See if GNU ld supports shared libraries. 9320 case $host_os in 9321 aix[3-9]*) 9322 # On AIX/PPC, the GNU linker is very broken 9323 if test "$host_cpu" != ia64; then 9324 ld_shlibs=no 9325 cat <<_LT_EOF 1>&2 9326 9327*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9328*** to be unable to reliably create shared libraries on AIX. 9329*** Therefore, libtool is disabling shared libraries support. If you 9330*** really care for shared libraries, you may want to modify your PATH 9331*** so that a non-GNU linker is found, and then restart. 9332 9333_LT_EOF 9334 fi 9335 ;; 9336 9337 amigaos*) 9338 case $host_cpu in 9339 powerpc) 9340 # see comment about AmigaOS4 .so support 9341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9342 archive_expsym_cmds='' 9343 ;; 9344 m68k) 9345 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)' 9346 hardcode_libdir_flag_spec='-L$libdir' 9347 hardcode_minus_L=yes 9348 ;; 9349 esac 9350 ;; 9351 9352 beos*) 9353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9354 allow_undefined_flag=unsupported 9355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9356 # support --undefined. This deserves some investigation. FIXME 9357 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9358 else 9359 ld_shlibs=no 9360 fi 9361 ;; 9362 9363 cygwin* | mingw* | pw32* | cegcc*) 9364 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9365 # as there is no search path for DLLs. 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 allow_undefined_flag=unsupported 9368 always_export_symbols=no 9369 enable_shared_with_static_runtimes=yes 9370 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9371 9372 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9374 # If the export-symbols file already is a .def file (1st line 9375 # is EXPORTS), use it as is; otherwise, prepend... 9376 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9377 cp $export_symbols $output_objdir/$soname.def; 9378 else 9379 echo EXPORTS > $output_objdir/$soname.def; 9380 cat $export_symbols >> $output_objdir/$soname.def; 9381 fi~ 9382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9383 else 9384 ld_shlibs=no 9385 fi 9386 ;; 9387 9388 interix[3-9]*) 9389 hardcode_direct=no 9390 hardcode_shlibpath_var=no 9391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9392 export_dynamic_flag_spec='${wl}-E' 9393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9394 # Instead, shared libraries are loaded at an image base (0x10000000 by 9395 # default) and relocated if they conflict, which is a slow very memory 9396 # consuming and fragmenting process. To avoid this, we pick a random, 9397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9398 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9400 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' 9401 ;; 9402 9403 gnu* | linux* | tpf* | k*bsd*-gnu) 9404 tmp_diet=no 9405 if test "$host_os" = linux-dietlibc; then 9406 case $cc_basename in 9407 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9408 esac 9409 fi 9410 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9411 && test "$tmp_diet" = no 9412 then 9413 tmp_addflag= 9414 tmp_sharedflag='-shared' 9415 case $cc_basename,$host_cpu in 9416 pgcc*) # Portland Group C compiler 9417 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' 9418 tmp_addflag=' $pic_flag' 9419 ;; 9420 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9421 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' 9422 tmp_addflag=' $pic_flag -Mnomain' ;; 9423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9424 tmp_addflag=' -i_dynamic' ;; 9425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9426 tmp_addflag=' -i_dynamic -nofor_main' ;; 9427 ifc* | ifort*) # Intel Fortran compiler 9428 tmp_addflag=' -nofor_main' ;; 9429 lf95*) # Lahey Fortran 8.1 9430 whole_archive_flag_spec= 9431 tmp_sharedflag='--shared' ;; 9432 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9433 tmp_sharedflag='-qmkshrobj' 9434 tmp_addflag= ;; 9435 esac 9436 case `$CC -V 2>&1 | sed 5q` in 9437 *Sun\ C*) # Sun C 5.9 9438 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' 9439 compiler_needs_object=yes 9440 tmp_sharedflag='-G' ;; 9441 *Sun\ F*) # Sun Fortran 8.3 9442 tmp_sharedflag='-G' ;; 9443 esac 9444 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9445 9446 if test "x$supports_anon_versioning" = xyes; then 9447 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9449 echo "local: *; };" >> $output_objdir/$libname.ver~ 9450 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9451 fi 9452 9453 case $cc_basename in 9454 xlf*) 9455 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9456 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9457 hardcode_libdir_flag_spec= 9458 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9459 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9460 if test "x$supports_anon_versioning" = xyes; then 9461 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9462 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9463 echo "local: *; };" >> $output_objdir/$libname.ver~ 9464 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9465 fi 9466 ;; 9467 esac 9468 else 9469 ld_shlibs=no 9470 fi 9471 ;; 9472 9473 netbsd* | netbsdelf*-gnu) 9474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9475 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9476 wlarc= 9477 else 9478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9480 fi 9481 ;; 9482 9483 solaris*) 9484 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9485 ld_shlibs=no 9486 cat <<_LT_EOF 1>&2 9487 9488*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9489*** create shared libraries on Solaris systems. Therefore, libtool 9490*** is disabling shared libraries support. We urge you to upgrade GNU 9491*** binutils to release 2.9.1 or newer. Another option is to modify 9492*** your PATH or compiler configuration so that the native linker is 9493*** used, and then restart. 9494 9495_LT_EOF 9496 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9498 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9499 else 9500 ld_shlibs=no 9501 fi 9502 ;; 9503 9504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9505 case `$LD -v 2>&1` in 9506 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9507 ld_shlibs=no 9508 cat <<_LT_EOF 1>&2 9509 9510*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9511*** reliably create shared libraries on SCO systems. Therefore, libtool 9512*** is disabling shared libraries support. We urge you to upgrade GNU 9513*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9514*** your PATH or compiler configuration so that the native linker is 9515*** used, and then restart. 9516 9517_LT_EOF 9518 ;; 9519 *) 9520 # For security reasons, it is highly recommended that you always 9521 # use absolute paths for naming shared libraries, and exclude the 9522 # DT_RUNPATH tag from executables and libraries. But doing so 9523 # requires that you compile everything twice, which is a pain. 9524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9527 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9528 else 9529 ld_shlibs=no 9530 fi 9531 ;; 9532 esac 9533 ;; 9534 9535 sunos4*) 9536 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9537 wlarc= 9538 hardcode_direct=yes 9539 hardcode_shlibpath_var=no 9540 ;; 9541 9542 *) 9543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9545 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9546 else 9547 ld_shlibs=no 9548 fi 9549 ;; 9550 esac 9551 9552 if test "$ld_shlibs" = no; then 9553 runpath_var= 9554 hardcode_libdir_flag_spec= 9555 export_dynamic_flag_spec= 9556 whole_archive_flag_spec= 9557 fi 9558 else 9559 # PORTME fill in a description of your system's linker (not GNU ld) 9560 case $host_os in 9561 aix3*) 9562 allow_undefined_flag=unsupported 9563 always_export_symbols=yes 9564 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' 9565 # Note: this linker hardcodes the directories in LIBPATH if there 9566 # are no directories specified by -L. 9567 hardcode_minus_L=yes 9568 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9569 # Neither direct hardcoding nor static linking is supported with a 9570 # broken collect2. 9571 hardcode_direct=unsupported 9572 fi 9573 ;; 9574 9575 aix[4-9]*) 9576 if test "$host_cpu" = ia64; then 9577 # On IA64, the linker does run time linking by default, so we don't 9578 # have to do anything special. 9579 aix_use_runtimelinking=no 9580 exp_sym_flag='-Bexport' 9581 no_entry_flag="" 9582 else 9583 # If we're using GNU nm, then we don't want the "-C" option. 9584 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9585 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9586 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' 9587 else 9588 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' 9589 fi 9590 aix_use_runtimelinking=no 9591 9592 # Test if we are trying to use run time linking or normal 9593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9594 # need to do runtime linking. 9595 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9596 for ld_flag in $LDFLAGS; do 9597 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9598 aix_use_runtimelinking=yes 9599 break 9600 fi 9601 done 9602 ;; 9603 esac 9604 9605 exp_sym_flag='-bexport' 9606 no_entry_flag='-bnoentry' 9607 fi 9608 9609 # When large executables or shared objects are built, AIX ld can 9610 # have problems creating the table of contents. If linking a library 9611 # or program results in "error TOC overflow" add -mminimal-toc to 9612 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9613 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9614 9615 archive_cmds='' 9616 hardcode_direct=yes 9617 hardcode_direct_absolute=yes 9618 hardcode_libdir_separator=':' 9619 link_all_deplibs=yes 9620 file_list_spec='${wl}-f,' 9621 9622 if test "$GCC" = yes; then 9623 case $host_os in aix4.[012]|aix4.[012].*) 9624 # We only want to do this on AIX 4.2 and lower, the check 9625 # below for broken collect2 doesn't work under 4.3+ 9626 collect2name=`${CC} -print-prog-name=collect2` 9627 if test -f "$collect2name" && 9628 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9629 then 9630 # We have reworked collect2 9631 : 9632 else 9633 # We have old collect2 9634 hardcode_direct=unsupported 9635 # It fails to find uninstalled libraries when the uninstalled 9636 # path is not listed in the libpath. Setting hardcode_minus_L 9637 # to unsupported forces relinking 9638 hardcode_minus_L=yes 9639 hardcode_libdir_flag_spec='-L$libdir' 9640 hardcode_libdir_separator= 9641 fi 9642 ;; 9643 esac 9644 shared_flag='-shared' 9645 if test "$aix_use_runtimelinking" = yes; then 9646 shared_flag="$shared_flag "'${wl}-G' 9647 fi 9648 link_all_deplibs=no 9649 else 9650 # not using gcc 9651 if test "$host_cpu" = ia64; then 9652 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9653 # chokes on -Wl,-G. The following line is correct: 9654 shared_flag='-G' 9655 else 9656 if test "$aix_use_runtimelinking" = yes; then 9657 shared_flag='${wl}-G' 9658 else 9659 shared_flag='${wl}-bM:SRE' 9660 fi 9661 fi 9662 fi 9663 9664 export_dynamic_flag_spec='${wl}-bexpall' 9665 # It seems that -bexpall does not export symbols beginning with 9666 # underscore (_), so it is better to generate a list of symbols to export. 9667 always_export_symbols=yes 9668 if test "$aix_use_runtimelinking" = yes; then 9669 # Warning - without using the other runtime loading flags (-brtl), 9670 # -berok will link without error, but may produce a broken library. 9671 allow_undefined_flag='-berok' 9672 # Determine the default libpath from the value encoded in an 9673 # empty executable. 9674 cat >conftest.$ac_ext <<_ACEOF 9675/* confdefs.h. */ 9676_ACEOF 9677cat confdefs.h >>conftest.$ac_ext 9678cat >>conftest.$ac_ext <<_ACEOF 9679/* end confdefs.h. */ 9680 9681int 9682main () 9683{ 9684 9685 ; 9686 return 0; 9687} 9688_ACEOF 9689rm -f conftest.$ac_objext conftest$ac_exeext 9690if { (ac_try="$ac_link" 9691case "(($ac_try" in 9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9693 *) ac_try_echo=$ac_try;; 9694esac 9695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9696$as_echo "$ac_try_echo") >&5 9697 (eval "$ac_link") 2>conftest.er1 9698 ac_status=$? 9699 grep -v '^ *+' conftest.er1 >conftest.err 9700 rm -f conftest.er1 9701 cat conftest.err >&5 9702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9703 (exit $ac_status); } && { 9704 test -z "$ac_c_werror_flag" || 9705 test ! -s conftest.err 9706 } && test -s conftest$ac_exeext && { 9707 test "$cross_compiling" = yes || 9708 $as_test_x conftest$ac_exeext 9709 }; then 9710 9711lt_aix_libpath_sed=' 9712 /Import File Strings/,/^$/ { 9713 /^0/ { 9714 s/^0 *\(.*\)$/\1/ 9715 p 9716 } 9717 }' 9718aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9719# Check for a 64-bit object if we didn't find anything. 9720if test -z "$aix_libpath"; then 9721 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9722fi 9723else 9724 $as_echo "$as_me: failed program was:" >&5 9725sed 's/^/| /' conftest.$ac_ext >&5 9726 9727 9728fi 9729 9730rm -rf conftest.dSYM 9731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9732 conftest$ac_exeext conftest.$ac_ext 9733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9734 9735 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9736 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" 9737 else 9738 if test "$host_cpu" = ia64; then 9739 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9740 allow_undefined_flag="-z nodefs" 9741 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" 9742 else 9743 # Determine the default libpath from the value encoded in an 9744 # empty executable. 9745 cat >conftest.$ac_ext <<_ACEOF 9746/* confdefs.h. */ 9747_ACEOF 9748cat confdefs.h >>conftest.$ac_ext 9749cat >>conftest.$ac_ext <<_ACEOF 9750/* end confdefs.h. */ 9751 9752int 9753main () 9754{ 9755 9756 ; 9757 return 0; 9758} 9759_ACEOF 9760rm -f conftest.$ac_objext conftest$ac_exeext 9761if { (ac_try="$ac_link" 9762case "(($ac_try" in 9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9764 *) ac_try_echo=$ac_try;; 9765esac 9766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9767$as_echo "$ac_try_echo") >&5 9768 (eval "$ac_link") 2>conftest.er1 9769 ac_status=$? 9770 grep -v '^ *+' conftest.er1 >conftest.err 9771 rm -f conftest.er1 9772 cat conftest.err >&5 9773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9774 (exit $ac_status); } && { 9775 test -z "$ac_c_werror_flag" || 9776 test ! -s conftest.err 9777 } && test -s conftest$ac_exeext && { 9778 test "$cross_compiling" = yes || 9779 $as_test_x conftest$ac_exeext 9780 }; then 9781 9782lt_aix_libpath_sed=' 9783 /Import File Strings/,/^$/ { 9784 /^0/ { 9785 s/^0 *\(.*\)$/\1/ 9786 p 9787 } 9788 }' 9789aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9790# Check for a 64-bit object if we didn't find anything. 9791if test -z "$aix_libpath"; then 9792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9793fi 9794else 9795 $as_echo "$as_me: failed program was:" >&5 9796sed 's/^/| /' conftest.$ac_ext >&5 9797 9798 9799fi 9800 9801rm -rf conftest.dSYM 9802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9803 conftest$ac_exeext conftest.$ac_ext 9804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9805 9806 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9807 # Warning - without using the other run time loading flags, 9808 # -berok will link without error, but may produce a broken library. 9809 no_undefined_flag=' ${wl}-bernotok' 9810 allow_undefined_flag=' ${wl}-berok' 9811 # Exported symbols can be pulled into shared objects from archives 9812 whole_archive_flag_spec='$convenience' 9813 archive_cmds_need_lc=yes 9814 # This is similar to how AIX traditionally builds its shared libraries. 9815 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' 9816 fi 9817 fi 9818 ;; 9819 9820 amigaos*) 9821 case $host_cpu in 9822 powerpc) 9823 # see comment about AmigaOS4 .so support 9824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9825 archive_expsym_cmds='' 9826 ;; 9827 m68k) 9828 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)' 9829 hardcode_libdir_flag_spec='-L$libdir' 9830 hardcode_minus_L=yes 9831 ;; 9832 esac 9833 ;; 9834 9835 bsdi[45]*) 9836 export_dynamic_flag_spec=-rdynamic 9837 ;; 9838 9839 cygwin* | mingw* | pw32* | cegcc*) 9840 # When not using gcc, we currently assume that we are using 9841 # Microsoft Visual C++. 9842 # hardcode_libdir_flag_spec is actually meaningless, as there is 9843 # no search path for DLLs. 9844 hardcode_libdir_flag_spec=' ' 9845 allow_undefined_flag=unsupported 9846 # Tell ltmain to make .lib files, not .a files. 9847 libext=lib 9848 # Tell ltmain to make .dll files, not .so files. 9849 shrext_cmds=".dll" 9850 # FIXME: Setting linknames here is a bad hack. 9851 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9852 # The linker will automatically build a .lib file if we build a DLL. 9853 old_archive_from_new_cmds='true' 9854 # FIXME: Should let the user specify the lib program. 9855 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9856 fix_srcfile_path='`cygpath -w "$srcfile"`' 9857 enable_shared_with_static_runtimes=yes 9858 ;; 9859 9860 darwin* | rhapsody*) 9861 9862 9863 archive_cmds_need_lc=no 9864 hardcode_direct=no 9865 hardcode_automatic=yes 9866 hardcode_shlibpath_var=unsupported 9867 whole_archive_flag_spec='' 9868 link_all_deplibs=yes 9869 allow_undefined_flag="$_lt_dar_allow_undefined" 9870 case $cc_basename in 9871 ifort*) _lt_dar_can_shared=yes ;; 9872 *) _lt_dar_can_shared=$GCC ;; 9873 esac 9874 if test "$_lt_dar_can_shared" = "yes"; then 9875 output_verbose_link_cmd=echo 9876 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9877 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9878 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}" 9879 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}" 9880 9881 else 9882 ld_shlibs=no 9883 fi 9884 9885 ;; 9886 9887 dgux*) 9888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9889 hardcode_libdir_flag_spec='-L$libdir' 9890 hardcode_shlibpath_var=no 9891 ;; 9892 9893 freebsd1*) 9894 ld_shlibs=no 9895 ;; 9896 9897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9898 # support. Future versions do this automatically, but an explicit c++rt0.o 9899 # does not break anything, and helps significantly (at the cost of a little 9900 # extra space). 9901 freebsd2.2*) 9902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9903 hardcode_libdir_flag_spec='-R$libdir' 9904 hardcode_direct=yes 9905 hardcode_shlibpath_var=no 9906 ;; 9907 9908 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9909 freebsd2*) 9910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9911 hardcode_direct=yes 9912 hardcode_minus_L=yes 9913 hardcode_shlibpath_var=no 9914 ;; 9915 9916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9917 freebsd* | dragonfly*) 9918 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9919 hardcode_libdir_flag_spec='-R$libdir' 9920 hardcode_direct=yes 9921 hardcode_shlibpath_var=no 9922 ;; 9923 9924 hpux9*) 9925 if test "$GCC" = yes; then 9926 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' 9927 else 9928 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' 9929 fi 9930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9931 hardcode_libdir_separator=: 9932 hardcode_direct=yes 9933 9934 # hardcode_minus_L: Not really in the search PATH, 9935 # but as the default location of the library. 9936 hardcode_minus_L=yes 9937 export_dynamic_flag_spec='${wl}-E' 9938 ;; 9939 9940 hpux10*) 9941 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9942 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9943 else 9944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9945 fi 9946 if test "$with_gnu_ld" = no; then 9947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9948 hardcode_libdir_flag_spec_ld='+b $libdir' 9949 hardcode_libdir_separator=: 9950 hardcode_direct=yes 9951 hardcode_direct_absolute=yes 9952 export_dynamic_flag_spec='${wl}-E' 9953 # hardcode_minus_L: Not really in the search PATH, 9954 # but as the default location of the library. 9955 hardcode_minus_L=yes 9956 fi 9957 ;; 9958 9959 hpux11*) 9960 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9961 case $host_cpu in 9962 hppa*64*) 9963 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9964 ;; 9965 ia64*) 9966 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9967 ;; 9968 *) 9969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9970 ;; 9971 esac 9972 else 9973 case $host_cpu in 9974 hppa*64*) 9975 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9976 ;; 9977 ia64*) 9978 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9979 ;; 9980 *) 9981 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9982 ;; 9983 esac 9984 fi 9985 if test "$with_gnu_ld" = no; then 9986 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9987 hardcode_libdir_separator=: 9988 9989 case $host_cpu in 9990 hppa*64*|ia64*) 9991 hardcode_direct=no 9992 hardcode_shlibpath_var=no 9993 ;; 9994 *) 9995 hardcode_direct=yes 9996 hardcode_direct_absolute=yes 9997 export_dynamic_flag_spec='${wl}-E' 9998 9999 # hardcode_minus_L: Not really in the search PATH, 10000 # but as the default location of the library. 10001 hardcode_minus_L=yes 10002 ;; 10003 esac 10004 fi 10005 ;; 10006 10007 irix5* | irix6* | nonstopux*) 10008 if test "$GCC" = yes; then 10009 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' 10010 # Try to use the -exported_symbol ld option, if it does not 10011 # work, assume that -exports_file does not work either and 10012 # implicitly export all symbols. 10013 save_LDFLAGS="$LDFLAGS" 10014 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10015 cat >conftest.$ac_ext <<_ACEOF 10016int foo(void) {} 10017_ACEOF 10018rm -f conftest.$ac_objext conftest$ac_exeext 10019if { (ac_try="$ac_link" 10020case "(($ac_try" in 10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10022 *) ac_try_echo=$ac_try;; 10023esac 10024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10025$as_echo "$ac_try_echo") >&5 10026 (eval "$ac_link") 2>conftest.er1 10027 ac_status=$? 10028 grep -v '^ *+' conftest.er1 >conftest.err 10029 rm -f conftest.er1 10030 cat conftest.err >&5 10031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10032 (exit $ac_status); } && { 10033 test -z "$ac_c_werror_flag" || 10034 test ! -s conftest.err 10035 } && test -s conftest$ac_exeext && { 10036 test "$cross_compiling" = yes || 10037 $as_test_x conftest$ac_exeext 10038 }; then 10039 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' 10040 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 10051 LDFLAGS="$save_LDFLAGS" 10052 else 10053 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' 10054 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' 10055 fi 10056 archive_cmds_need_lc='no' 10057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10058 hardcode_libdir_separator=: 10059 inherit_rpath=yes 10060 link_all_deplibs=yes 10061 ;; 10062 10063 netbsd* | netbsdelf*-gnu) 10064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10066 else 10067 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10068 fi 10069 hardcode_libdir_flag_spec='-R$libdir' 10070 hardcode_direct=yes 10071 hardcode_shlibpath_var=no 10072 ;; 10073 10074 newsos6) 10075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10076 hardcode_direct=yes 10077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10078 hardcode_libdir_separator=: 10079 hardcode_shlibpath_var=no 10080 ;; 10081 10082 *nto* | *qnx*) 10083 ;; 10084 10085 openbsd*) 10086 if test -f /usr/libexec/ld.so; then 10087 hardcode_direct=yes 10088 hardcode_shlibpath_var=no 10089 hardcode_direct_absolute=yes 10090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10092 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10094 export_dynamic_flag_spec='${wl}-E' 10095 else 10096 case $host_os in 10097 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10099 hardcode_libdir_flag_spec='-R$libdir' 10100 ;; 10101 *) 10102 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10104 ;; 10105 esac 10106 fi 10107 else 10108 ld_shlibs=no 10109 fi 10110 ;; 10111 10112 os2*) 10113 hardcode_libdir_flag_spec='-L$libdir' 10114 hardcode_minus_L=yes 10115 allow_undefined_flag=unsupported 10116 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' 10117 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10118 ;; 10119 10120 osf3*) 10121 if test "$GCC" = yes; then 10122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10123 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' 10124 else 10125 allow_undefined_flag=' -expect_unresolved \*' 10126 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' 10127 fi 10128 archive_cmds_need_lc='no' 10129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10130 hardcode_libdir_separator=: 10131 ;; 10132 10133 osf4* | osf5*) # as osf3* with the addition of -msym flag 10134 if test "$GCC" = yes; then 10135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10136 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' 10137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10138 else 10139 allow_undefined_flag=' -expect_unresolved \*' 10140 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' 10141 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~ 10142 $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' 10143 10144 # Both c and cxx compiler support -rpath directly 10145 hardcode_libdir_flag_spec='-rpath $libdir' 10146 fi 10147 archive_cmds_need_lc='no' 10148 hardcode_libdir_separator=: 10149 ;; 10150 10151 solaris*) 10152 no_undefined_flag=' -z defs' 10153 if test "$GCC" = yes; then 10154 wlarc='${wl}' 10155 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10156 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10157 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10158 else 10159 case `$CC -V 2>&1` in 10160 *"Compilers 5.0"*) 10161 wlarc='' 10162 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10164 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10165 ;; 10166 *) 10167 wlarc='${wl}' 10168 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10170 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10171 ;; 10172 esac 10173 fi 10174 hardcode_libdir_flag_spec='-R$libdir' 10175 hardcode_shlibpath_var=no 10176 case $host_os in 10177 solaris2.[0-5] | solaris2.[0-5].*) ;; 10178 *) 10179 # The compiler driver will combine and reorder linker options, 10180 # but understands `-z linker_flag'. GCC discards it without `$wl', 10181 # but is careful enough not to reorder. 10182 # Supported since Solaris 2.6 (maybe 2.5.1?) 10183 if test "$GCC" = yes; then 10184 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10185 else 10186 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10187 fi 10188 ;; 10189 esac 10190 link_all_deplibs=yes 10191 ;; 10192 10193 sunos4*) 10194 if test "x$host_vendor" = xsequent; then 10195 # Use $CC to link under sequent, because it throws in some extra .o 10196 # files that make .init and .fini sections work. 10197 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10198 else 10199 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10200 fi 10201 hardcode_libdir_flag_spec='-L$libdir' 10202 hardcode_direct=yes 10203 hardcode_minus_L=yes 10204 hardcode_shlibpath_var=no 10205 ;; 10206 10207 sysv4) 10208 case $host_vendor in 10209 sni) 10210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10211 hardcode_direct=yes # is this really true??? 10212 ;; 10213 siemens) 10214 ## LD is ld it makes a PLAMLIB 10215 ## CC just makes a GrossModule. 10216 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10217 reload_cmds='$CC -r -o $output$reload_objs' 10218 hardcode_direct=no 10219 ;; 10220 motorola) 10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10222 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10223 ;; 10224 esac 10225 runpath_var='LD_RUN_PATH' 10226 hardcode_shlibpath_var=no 10227 ;; 10228 10229 sysv4.3*) 10230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10231 hardcode_shlibpath_var=no 10232 export_dynamic_flag_spec='-Bexport' 10233 ;; 10234 10235 sysv4*MP*) 10236 if test -d /usr/nec; then 10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10238 hardcode_shlibpath_var=no 10239 runpath_var=LD_RUN_PATH 10240 hardcode_runpath_var=yes 10241 ld_shlibs=yes 10242 fi 10243 ;; 10244 10245 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10246 no_undefined_flag='${wl}-z,text' 10247 archive_cmds_need_lc=no 10248 hardcode_shlibpath_var=no 10249 runpath_var='LD_RUN_PATH' 10250 10251 if test "$GCC" = yes; then 10252 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10253 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10254 else 10255 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10256 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10257 fi 10258 ;; 10259 10260 sysv5* | sco3.2v5* | sco5v6*) 10261 # Note: We can NOT use -z defs as we might desire, because we do not 10262 # link with -lc, and that would cause any symbols used from libc to 10263 # always be unresolved, which means just about no library would 10264 # ever link correctly. If we're not using GNU ld we use -z text 10265 # though, which does catch some bad symbols but isn't as heavy-handed 10266 # as -z defs. 10267 no_undefined_flag='${wl}-z,text' 10268 allow_undefined_flag='${wl}-z,nodefs' 10269 archive_cmds_need_lc=no 10270 hardcode_shlibpath_var=no 10271 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10272 hardcode_libdir_separator=':' 10273 link_all_deplibs=yes 10274 export_dynamic_flag_spec='${wl}-Bexport' 10275 runpath_var='LD_RUN_PATH' 10276 10277 if test "$GCC" = yes; then 10278 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10279 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10280 else 10281 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10282 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10283 fi 10284 ;; 10285 10286 uts4*) 10287 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10288 hardcode_libdir_flag_spec='-L$libdir' 10289 hardcode_shlibpath_var=no 10290 ;; 10291 10292 *) 10293 ld_shlibs=no 10294 ;; 10295 esac 10296 10297 if test x$host_vendor = xsni; then 10298 case $host in 10299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10300 export_dynamic_flag_spec='${wl}-Blargedynsym' 10301 ;; 10302 esac 10303 fi 10304 fi 10305 10306{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10307$as_echo "$ld_shlibs" >&6; } 10308test "$ld_shlibs" = no && can_build_shared=no 10309 10310with_gnu_ld=$with_gnu_ld 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326# 10327# Do we need to explicitly link libc? 10328# 10329case "x$archive_cmds_need_lc" in 10330x|xyes) 10331 # Assume -lc should be added 10332 archive_cmds_need_lc=yes 10333 10334 if test "$enable_shared" = yes && test "$GCC" = yes; then 10335 case $archive_cmds in 10336 *'~'*) 10337 # FIXME: we may have to deal with multi-command sequences. 10338 ;; 10339 '$CC '*) 10340 # Test whether the compiler implicitly links with -lc since on some 10341 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10342 # to ld, don't add -lc before -lgcc. 10343 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10344$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10345 $RM conftest* 10346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10347 10348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10349 (eval $ac_compile) 2>&5 10350 ac_status=$? 10351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10352 (exit $ac_status); } 2>conftest.err; then 10353 soname=conftest 10354 lib=conftest 10355 libobjs=conftest.$ac_objext 10356 deplibs= 10357 wl=$lt_prog_compiler_wl 10358 pic_flag=$lt_prog_compiler_pic 10359 compiler_flags=-v 10360 linker_flags=-v 10361 verstring= 10362 output_objdir=. 10363 libname=conftest 10364 lt_save_allow_undefined_flag=$allow_undefined_flag 10365 allow_undefined_flag= 10366 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10367 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10368 ac_status=$? 10369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10370 (exit $ac_status); } 10371 then 10372 archive_cmds_need_lc=no 10373 else 10374 archive_cmds_need_lc=yes 10375 fi 10376 allow_undefined_flag=$lt_save_allow_undefined_flag 10377 else 10378 cat conftest.err 1>&5 10379 fi 10380 $RM conftest* 10381 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10382$as_echo "$archive_cmds_need_lc" >&6; } 10383 ;; 10384 esac 10385 fi 10386 ;; 10387esac 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10546$as_echo_n "checking dynamic linker characteristics... " >&6; } 10547 10548if test "$GCC" = yes; then 10549 case $host_os in 10550 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10551 *) lt_awk_arg="/^libraries:/" ;; 10552 esac 10553 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10554 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10555 # if the path contains ";" then we assume it to be the separator 10556 # otherwise default to the standard path separator (i.e. ":") - it is 10557 # assumed that no part of a normal pathname contains ";" but that should 10558 # okay in the real world where ";" in dirpaths is itself problematic. 10559 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10560 else 10561 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10562 fi 10563 # Ok, now we have the path, separated by spaces, we can step through it 10564 # and add multilib dir if necessary. 10565 lt_tmp_lt_search_path_spec= 10566 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10567 for lt_sys_path in $lt_search_path_spec; do 10568 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10570 else 10571 test -d "$lt_sys_path" && \ 10572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10573 fi 10574 done 10575 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10576BEGIN {RS=" "; FS="/|\n";} { 10577 lt_foo=""; 10578 lt_count=0; 10579 for (lt_i = NF; lt_i > 0; lt_i--) { 10580 if ($lt_i != "" && $lt_i != ".") { 10581 if ($lt_i == "..") { 10582 lt_count++; 10583 } else { 10584 if (lt_count == 0) { 10585 lt_foo="/" $lt_i lt_foo; 10586 } else { 10587 lt_count--; 10588 } 10589 } 10590 } 10591 } 10592 if (lt_foo != "") { lt_freq[lt_foo]++; } 10593 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10594}'` 10595 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10596else 10597 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10598fi 10599library_names_spec= 10600libname_spec='lib$name' 10601soname_spec= 10602shrext_cmds=".so" 10603postinstall_cmds= 10604postuninstall_cmds= 10605finish_cmds= 10606finish_eval= 10607shlibpath_var= 10608shlibpath_overrides_runpath=unknown 10609version_type=none 10610dynamic_linker="$host_os ld.so" 10611sys_lib_dlsearch_path_spec="/lib /usr/lib" 10612need_lib_prefix=unknown 10613hardcode_into_libs=no 10614 10615# when you set need_version to no, make sure it does not cause -set_version 10616# flags to be left without arguments 10617need_version=unknown 10618 10619case $host_os in 10620aix3*) 10621 version_type=linux 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10623 shlibpath_var=LIBPATH 10624 10625 # AIX 3 has no versioning support, so we append a major version to the name. 10626 soname_spec='${libname}${release}${shared_ext}$major' 10627 ;; 10628 10629aix[4-9]*) 10630 version_type=linux 10631 need_lib_prefix=no 10632 need_version=no 10633 hardcode_into_libs=yes 10634 if test "$host_cpu" = ia64; then 10635 # AIX 5 supports IA64 10636 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10637 shlibpath_var=LD_LIBRARY_PATH 10638 else 10639 # With GCC up to 2.95.x, collect2 would create an import file 10640 # for dependence libraries. The import file would start with 10641 # the line `#! .'. This would cause the generated library to 10642 # depend on `.', always an invalid library. This was fixed in 10643 # development snapshots of GCC prior to 3.0. 10644 case $host_os in 10645 aix4 | aix4.[01] | aix4.[01].*) 10646 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10647 echo ' yes ' 10648 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10649 : 10650 else 10651 can_build_shared=no 10652 fi 10653 ;; 10654 esac 10655 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10656 # soname into executable. Probably we can add versioning support to 10657 # collect2, so additional links can be useful in future. 10658 if test "$aix_use_runtimelinking" = yes; then 10659 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10660 # instead of lib<name>.a to let people know that these are not 10661 # typical AIX shared libraries. 10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10663 else 10664 # We preserve .a as extension for shared libraries through AIX4.2 10665 # and later when we are not doing run time linking. 10666 library_names_spec='${libname}${release}.a $libname.a' 10667 soname_spec='${libname}${release}${shared_ext}$major' 10668 fi 10669 shlibpath_var=LIBPATH 10670 fi 10671 ;; 10672 10673amigaos*) 10674 case $host_cpu in 10675 powerpc) 10676 # Since July 2007 AmigaOS4 officially supports .so libraries. 10677 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10679 ;; 10680 m68k) 10681 library_names_spec='$libname.ixlibrary $libname.a' 10682 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10683 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' 10684 ;; 10685 esac 10686 ;; 10687 10688beos*) 10689 library_names_spec='${libname}${shared_ext}' 10690 dynamic_linker="$host_os ld.so" 10691 shlibpath_var=LIBRARY_PATH 10692 ;; 10693 10694bsdi[45]*) 10695 version_type=linux 10696 need_version=no 10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10698 soname_spec='${libname}${release}${shared_ext}$major' 10699 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10702 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10703 # the default ld.so.conf also contains /usr/contrib/lib and 10704 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10705 # libtool to hard-code these into programs 10706 ;; 10707 10708cygwin* | mingw* | pw32* | cegcc*) 10709 version_type=windows 10710 shrext_cmds=".dll" 10711 need_version=no 10712 need_lib_prefix=no 10713 10714 case $GCC,$host_os in 10715 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10716 library_names_spec='$libname.dll.a' 10717 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10718 postinstall_cmds='base_file=`basename \${file}`~ 10719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10720 dldir=$destdir/`dirname \$dlpath`~ 10721 test -d \$dldir || mkdir -p \$dldir~ 10722 $install_prog $dir/$dlname \$dldir/$dlname~ 10723 chmod a+x \$dldir/$dlname~ 10724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10726 fi' 10727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10728 dlpath=$dir/\$dldll~ 10729 $RM \$dlpath' 10730 shlibpath_overrides_runpath=yes 10731 10732 case $host_os in 10733 cygwin*) 10734 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10735 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10737 ;; 10738 mingw* | cegcc*) 10739 # MinGW DLLs use traditional 'lib' prefix 10740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10741 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10742 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10743 # It is most probably a Windows format PATH printed by 10744 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10745 # path with ; separators, and with drive letters. We can handle the 10746 # drive letters (cygwin fileutils understands them), so leave them, 10747 # especially as we might pass files found there to a mingw objdump, 10748 # which wouldn't understand a cygwinified path. Ahh. 10749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10750 else 10751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10752 fi 10753 ;; 10754 pw32*) 10755 # pw32 DLLs use 'pw' prefix rather than 'lib' 10756 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10757 ;; 10758 esac 10759 ;; 10760 10761 *) 10762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10763 ;; 10764 esac 10765 dynamic_linker='Win32 ld.exe' 10766 # FIXME: first we should search . and the directory the executable is in 10767 shlibpath_var=PATH 10768 ;; 10769 10770darwin* | rhapsody*) 10771 dynamic_linker="$host_os dyld" 10772 version_type=darwin 10773 need_lib_prefix=no 10774 need_version=no 10775 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10776 soname_spec='${libname}${release}${major}$shared_ext' 10777 shlibpath_overrides_runpath=yes 10778 shlibpath_var=DYLD_LIBRARY_PATH 10779 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10780 10781 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10782 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10783 ;; 10784 10785dgux*) 10786 version_type=linux 10787 need_lib_prefix=no 10788 need_version=no 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 shlibpath_var=LD_LIBRARY_PATH 10792 ;; 10793 10794freebsd1*) 10795 dynamic_linker=no 10796 ;; 10797 10798freebsd* | dragonfly*) 10799 # DragonFly does not have aout. When/if they implement a new 10800 # versioning mechanism, adjust this. 10801 if test -x /usr/bin/objformat; then 10802 objformat=`/usr/bin/objformat` 10803 else 10804 case $host_os in 10805 freebsd[123]*) objformat=aout ;; 10806 *) objformat=elf ;; 10807 esac 10808 fi 10809 version_type=freebsd-$objformat 10810 case $version_type in 10811 freebsd-elf*) 10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10813 need_version=no 10814 need_lib_prefix=no 10815 ;; 10816 freebsd-*) 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10818 need_version=yes 10819 ;; 10820 esac 10821 shlibpath_var=LD_LIBRARY_PATH 10822 case $host_os in 10823 freebsd2*) 10824 shlibpath_overrides_runpath=yes 10825 ;; 10826 freebsd3.[01]* | freebsdelf3.[01]*) 10827 shlibpath_overrides_runpath=yes 10828 hardcode_into_libs=yes 10829 ;; 10830 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10831 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10832 shlibpath_overrides_runpath=no 10833 hardcode_into_libs=yes 10834 ;; 10835 *) # from 4.6 on, and DragonFly 10836 shlibpath_overrides_runpath=yes 10837 hardcode_into_libs=yes 10838 ;; 10839 esac 10840 ;; 10841 10842gnu*) 10843 version_type=linux 10844 need_lib_prefix=no 10845 need_version=no 10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10847 soname_spec='${libname}${release}${shared_ext}$major' 10848 shlibpath_var=LD_LIBRARY_PATH 10849 hardcode_into_libs=yes 10850 ;; 10851 10852hpux9* | hpux10* | hpux11*) 10853 # Give a soname corresponding to the major version so that dld.sl refuses to 10854 # link against other versions. 10855 version_type=sunos 10856 need_lib_prefix=no 10857 need_version=no 10858 case $host_cpu in 10859 ia64*) 10860 shrext_cmds='.so' 10861 hardcode_into_libs=yes 10862 dynamic_linker="$host_os dld.so" 10863 shlibpath_var=LD_LIBRARY_PATH 10864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10866 soname_spec='${libname}${release}${shared_ext}$major' 10867 if test "X$HPUX_IA64_MODE" = X32; then 10868 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10869 else 10870 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10871 fi 10872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10873 ;; 10874 hppa*64*) 10875 shrext_cmds='.sl' 10876 hardcode_into_libs=yes 10877 dynamic_linker="$host_os dld.sl" 10878 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10881 soname_spec='${libname}${release}${shared_ext}$major' 10882 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10884 ;; 10885 *) 10886 shrext_cmds='.sl' 10887 dynamic_linker="$host_os dld.sl" 10888 shlibpath_var=SHLIB_PATH 10889 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10891 soname_spec='${libname}${release}${shared_ext}$major' 10892 ;; 10893 esac 10894 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10895 postinstall_cmds='chmod 555 $lib' 10896 ;; 10897 10898interix[3-9]*) 10899 version_type=linux 10900 need_lib_prefix=no 10901 need_version=no 10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10903 soname_spec='${libname}${release}${shared_ext}$major' 10904 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10905 shlibpath_var=LD_LIBRARY_PATH 10906 shlibpath_overrides_runpath=no 10907 hardcode_into_libs=yes 10908 ;; 10909 10910irix5* | irix6* | nonstopux*) 10911 case $host_os in 10912 nonstopux*) version_type=nonstopux ;; 10913 *) 10914 if test "$lt_cv_prog_gnu_ld" = yes; then 10915 version_type=linux 10916 else 10917 version_type=irix 10918 fi ;; 10919 esac 10920 need_lib_prefix=no 10921 need_version=no 10922 soname_spec='${libname}${release}${shared_ext}$major' 10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10924 case $host_os in 10925 irix5* | nonstopux*) 10926 libsuff= shlibsuff= 10927 ;; 10928 *) 10929 case $LD in # libtool.m4 will add one of these switches to LD 10930 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10931 libsuff= shlibsuff= libmagic=32-bit;; 10932 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10933 libsuff=32 shlibsuff=N32 libmagic=N32;; 10934 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10935 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10936 *) libsuff= shlibsuff= libmagic=never-match;; 10937 esac 10938 ;; 10939 esac 10940 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10941 shlibpath_overrides_runpath=no 10942 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10943 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10944 hardcode_into_libs=yes 10945 ;; 10946 10947# No shared lib support for Linux oldld, aout, or coff. 10948linux*oldld* | linux*aout* | linux*coff*) 10949 dynamic_linker=no 10950 ;; 10951 10952# This must be Linux ELF. 10953linux* | k*bsd*-gnu) 10954 version_type=linux 10955 need_lib_prefix=no 10956 need_version=no 10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10958 soname_spec='${libname}${release}${shared_ext}$major' 10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10960 shlibpath_var=LD_LIBRARY_PATH 10961 shlibpath_overrides_runpath=no 10962 # Some binutils ld are patched to set DT_RUNPATH 10963 save_LDFLAGS=$LDFLAGS 10964 save_libdir=$libdir 10965 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10966 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10967 cat >conftest.$ac_ext <<_ACEOF 10968/* confdefs.h. */ 10969_ACEOF 10970cat confdefs.h >>conftest.$ac_ext 10971cat >>conftest.$ac_ext <<_ACEOF 10972/* end confdefs.h. */ 10973 10974int 10975main () 10976{ 10977 10978 ; 10979 return 0; 10980} 10981_ACEOF 10982rm -f conftest.$ac_objext conftest$ac_exeext 10983if { (ac_try="$ac_link" 10984case "(($ac_try" in 10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10986 *) ac_try_echo=$ac_try;; 10987esac 10988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10989$as_echo "$ac_try_echo") >&5 10990 (eval "$ac_link") 2>conftest.er1 10991 ac_status=$? 10992 grep -v '^ *+' conftest.er1 >conftest.err 10993 rm -f conftest.er1 10994 cat conftest.err >&5 10995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10996 (exit $ac_status); } && { 10997 test -z "$ac_c_werror_flag" || 10998 test ! -s conftest.err 10999 } && test -s conftest$ac_exeext && { 11000 test "$cross_compiling" = yes || 11001 $as_test_x conftest$ac_exeext 11002 }; then 11003 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 11004 shlibpath_overrides_runpath=yes 11005fi 11006 11007else 11008 $as_echo "$as_me: failed program was:" >&5 11009sed 's/^/| /' conftest.$ac_ext >&5 11010 11011 11012fi 11013 11014rm -rf conftest.dSYM 11015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11016 conftest$ac_exeext conftest.$ac_ext 11017 LDFLAGS=$save_LDFLAGS 11018 libdir=$save_libdir 11019 11020 # This implies no fast_install, which is unacceptable. 11021 # Some rework will be needed to allow for fast_install 11022 # before this can be enabled. 11023 hardcode_into_libs=yes 11024 11025 # Append ld.so.conf contents to the search path 11026 if test -f /etc/ld.so.conf; then 11027 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' ' '` 11028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11029 fi 11030 11031 # We used to test for /lib/ld.so.1 and disable shared libraries on 11032 # powerpc, because MkLinux only supported shared libraries with the 11033 # GNU dynamic linker. Since this was broken with cross compilers, 11034 # most powerpc-linux boxes support dynamic linking these days and 11035 # people can always --disable-shared, the test was removed, and we 11036 # assume the GNU/Linux dynamic linker is in use. 11037 dynamic_linker='GNU/Linux ld.so' 11038 ;; 11039 11040netbsdelf*-gnu) 11041 version_type=linux 11042 need_lib_prefix=no 11043 need_version=no 11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11045 soname_spec='${libname}${release}${shared_ext}$major' 11046 shlibpath_var=LD_LIBRARY_PATH 11047 shlibpath_overrides_runpath=no 11048 hardcode_into_libs=yes 11049 dynamic_linker='NetBSD ld.elf_so' 11050 ;; 11051 11052netbsd*) 11053 version_type=sunos 11054 need_lib_prefix=no 11055 need_version=no 11056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11059 dynamic_linker='NetBSD (a.out) ld.so' 11060 else 11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11062 soname_spec='${libname}${release}${shared_ext}$major' 11063 dynamic_linker='NetBSD ld.elf_so' 11064 fi 11065 shlibpath_var=LD_LIBRARY_PATH 11066 shlibpath_overrides_runpath=yes 11067 hardcode_into_libs=yes 11068 ;; 11069 11070newsos6) 11071 version_type=linux 11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11073 shlibpath_var=LD_LIBRARY_PATH 11074 shlibpath_overrides_runpath=yes 11075 ;; 11076 11077*nto* | *qnx*) 11078 version_type=qnx 11079 need_lib_prefix=no 11080 need_version=no 11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11082 soname_spec='${libname}${release}${shared_ext}$major' 11083 shlibpath_var=LD_LIBRARY_PATH 11084 shlibpath_overrides_runpath=no 11085 hardcode_into_libs=yes 11086 dynamic_linker='ldqnx.so' 11087 ;; 11088 11089openbsd*) 11090 version_type=sunos 11091 sys_lib_dlsearch_path_spec="/usr/lib" 11092 need_lib_prefix=no 11093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11094 case $host_os in 11095 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11096 *) need_version=no ;; 11097 esac 11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11100 shlibpath_var=LD_LIBRARY_PATH 11101 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11102 case $host_os in 11103 openbsd2.[89] | openbsd2.[89].*) 11104 shlibpath_overrides_runpath=no 11105 ;; 11106 *) 11107 shlibpath_overrides_runpath=yes 11108 ;; 11109 esac 11110 else 11111 shlibpath_overrides_runpath=yes 11112 fi 11113 ;; 11114 11115os2*) 11116 libname_spec='$name' 11117 shrext_cmds=".dll" 11118 need_lib_prefix=no 11119 library_names_spec='$libname${shared_ext} $libname.a' 11120 dynamic_linker='OS/2 ld.exe' 11121 shlibpath_var=LIBPATH 11122 ;; 11123 11124osf3* | osf4* | osf5*) 11125 version_type=osf 11126 need_lib_prefix=no 11127 need_version=no 11128 soname_spec='${libname}${release}${shared_ext}$major' 11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11130 shlibpath_var=LD_LIBRARY_PATH 11131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11133 ;; 11134 11135rdos*) 11136 dynamic_linker=no 11137 ;; 11138 11139solaris*) 11140 version_type=linux 11141 need_lib_prefix=no 11142 need_version=no 11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11144 soname_spec='${libname}${release}${shared_ext}$major' 11145 shlibpath_var=LD_LIBRARY_PATH 11146 shlibpath_overrides_runpath=yes 11147 hardcode_into_libs=yes 11148 # ldd complains unless libraries are executable 11149 postinstall_cmds='chmod +x $lib' 11150 ;; 11151 11152sunos4*) 11153 version_type=sunos 11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11155 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11156 shlibpath_var=LD_LIBRARY_PATH 11157 shlibpath_overrides_runpath=yes 11158 if test "$with_gnu_ld" = yes; then 11159 need_lib_prefix=no 11160 fi 11161 need_version=yes 11162 ;; 11163 11164sysv4 | sysv4.3*) 11165 version_type=linux 11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11167 soname_spec='${libname}${release}${shared_ext}$major' 11168 shlibpath_var=LD_LIBRARY_PATH 11169 case $host_vendor in 11170 sni) 11171 shlibpath_overrides_runpath=no 11172 need_lib_prefix=no 11173 runpath_var=LD_RUN_PATH 11174 ;; 11175 siemens) 11176 need_lib_prefix=no 11177 ;; 11178 motorola) 11179 need_lib_prefix=no 11180 need_version=no 11181 shlibpath_overrides_runpath=no 11182 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11183 ;; 11184 esac 11185 ;; 11186 11187sysv4*MP*) 11188 if test -d /usr/nec ;then 11189 version_type=linux 11190 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11191 soname_spec='$libname${shared_ext}.$major' 11192 shlibpath_var=LD_LIBRARY_PATH 11193 fi 11194 ;; 11195 11196sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11197 version_type=freebsd-elf 11198 need_lib_prefix=no 11199 need_version=no 11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11201 soname_spec='${libname}${release}${shared_ext}$major' 11202 shlibpath_var=LD_LIBRARY_PATH 11203 shlibpath_overrides_runpath=yes 11204 hardcode_into_libs=yes 11205 if test "$with_gnu_ld" = yes; then 11206 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11207 else 11208 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11209 case $host_os in 11210 sco3.2v5*) 11211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11212 ;; 11213 esac 11214 fi 11215 sys_lib_dlsearch_path_spec='/usr/lib' 11216 ;; 11217 11218tpf*) 11219 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11220 version_type=linux 11221 need_lib_prefix=no 11222 need_version=no 11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11224 shlibpath_var=LD_LIBRARY_PATH 11225 shlibpath_overrides_runpath=no 11226 hardcode_into_libs=yes 11227 ;; 11228 11229uts4*) 11230 version_type=linux 11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11232 soname_spec='${libname}${release}${shared_ext}$major' 11233 shlibpath_var=LD_LIBRARY_PATH 11234 ;; 11235 11236*) 11237 dynamic_linker=no 11238 ;; 11239esac 11240{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11241$as_echo "$dynamic_linker" >&6; } 11242test "$dynamic_linker" = no && can_build_shared=no 11243 11244variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11245if test "$GCC" = yes; then 11246 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11247fi 11248 11249if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11250 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11251fi 11252if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11253 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11254fi 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11343$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11344hardcode_action= 11345if test -n "$hardcode_libdir_flag_spec" || 11346 test -n "$runpath_var" || 11347 test "X$hardcode_automatic" = "Xyes" ; then 11348 11349 # We can hardcode non-existent directories. 11350 if test "$hardcode_direct" != no && 11351 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11352 # have to relink, otherwise we might link with an installed library 11353 # when we should be linking with a yet-to-be-installed one 11354 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11355 test "$hardcode_minus_L" != no; then 11356 # Linking always hardcodes the temporary library directory. 11357 hardcode_action=relink 11358 else 11359 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11360 hardcode_action=immediate 11361 fi 11362else 11363 # We cannot hardcode anything, or else we can only hardcode existing 11364 # directories. 11365 hardcode_action=unsupported 11366fi 11367{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 11368$as_echo "$hardcode_action" >&6; } 11369 11370if test "$hardcode_action" = relink || 11371 test "$inherit_rpath" = yes; then 11372 # Fast installation is not supported 11373 enable_fast_install=no 11374elif test "$shlibpath_overrides_runpath" = yes || 11375 test "$enable_shared" = no; then 11376 # Fast installation is not necessary 11377 enable_fast_install=needless 11378fi 11379 11380 11381 11382 11383 11384 11385 if test "x$enable_dlopen" != xyes; then 11386 enable_dlopen=unknown 11387 enable_dlopen_self=unknown 11388 enable_dlopen_self_static=unknown 11389else 11390 lt_cv_dlopen=no 11391 lt_cv_dlopen_libs= 11392 11393 case $host_os in 11394 beos*) 11395 lt_cv_dlopen="load_add_on" 11396 lt_cv_dlopen_libs= 11397 lt_cv_dlopen_self=yes 11398 ;; 11399 11400 mingw* | pw32* | cegcc*) 11401 lt_cv_dlopen="LoadLibrary" 11402 lt_cv_dlopen_libs= 11403 ;; 11404 11405 cygwin*) 11406 lt_cv_dlopen="dlopen" 11407 lt_cv_dlopen_libs= 11408 ;; 11409 11410 darwin*) 11411 # if libdl is installed we need to link against it 11412 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11413$as_echo_n "checking for dlopen in -ldl... " >&6; } 11414if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11415 $as_echo_n "(cached) " >&6 11416else 11417 ac_check_lib_save_LIBS=$LIBS 11418LIBS="-ldl $LIBS" 11419cat >conftest.$ac_ext <<_ACEOF 11420/* confdefs.h. */ 11421_ACEOF 11422cat confdefs.h >>conftest.$ac_ext 11423cat >>conftest.$ac_ext <<_ACEOF 11424/* end confdefs.h. */ 11425 11426/* Override any GCC internal prototype to avoid an error. 11427 Use char because int might match the return type of a GCC 11428 builtin and then its argument prototype would still apply. */ 11429#ifdef __cplusplus 11430extern "C" 11431#endif 11432char dlopen (); 11433int 11434main () 11435{ 11436return dlopen (); 11437 ; 11438 return 0; 11439} 11440_ACEOF 11441rm -f conftest.$ac_objext conftest$ac_exeext 11442if { (ac_try="$ac_link" 11443case "(($ac_try" in 11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11445 *) ac_try_echo=$ac_try;; 11446esac 11447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11448$as_echo "$ac_try_echo") >&5 11449 (eval "$ac_link") 2>conftest.er1 11450 ac_status=$? 11451 grep -v '^ *+' conftest.er1 >conftest.err 11452 rm -f conftest.er1 11453 cat conftest.err >&5 11454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11455 (exit $ac_status); } && { 11456 test -z "$ac_c_werror_flag" || 11457 test ! -s conftest.err 11458 } && test -s conftest$ac_exeext && { 11459 test "$cross_compiling" = yes || 11460 $as_test_x conftest$ac_exeext 11461 }; then 11462 ac_cv_lib_dl_dlopen=yes 11463else 11464 $as_echo "$as_me: failed program was:" >&5 11465sed 's/^/| /' conftest.$ac_ext >&5 11466 11467 ac_cv_lib_dl_dlopen=no 11468fi 11469 11470rm -rf conftest.dSYM 11471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11472 conftest$ac_exeext conftest.$ac_ext 11473LIBS=$ac_check_lib_save_LIBS 11474fi 11475{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11476$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11477if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11479else 11480 11481 lt_cv_dlopen="dyld" 11482 lt_cv_dlopen_libs= 11483 lt_cv_dlopen_self=yes 11484 11485fi 11486 11487 ;; 11488 11489 *) 11490 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 11491$as_echo_n "checking for shl_load... " >&6; } 11492if test "${ac_cv_func_shl_load+set}" = set; then 11493 $as_echo_n "(cached) " >&6 11494else 11495 cat >conftest.$ac_ext <<_ACEOF 11496/* confdefs.h. */ 11497_ACEOF 11498cat confdefs.h >>conftest.$ac_ext 11499cat >>conftest.$ac_ext <<_ACEOF 11500/* end confdefs.h. */ 11501/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11502 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11503#define shl_load innocuous_shl_load 11504 11505/* System header to define __stub macros and hopefully few prototypes, 11506 which can conflict with char shl_load (); below. 11507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11508 <limits.h> exists even on freestanding compilers. */ 11509 11510#ifdef __STDC__ 11511# include <limits.h> 11512#else 11513# include <assert.h> 11514#endif 11515 11516#undef shl_load 11517 11518/* Override any GCC internal prototype to avoid an error. 11519 Use char because int might match the return type of a GCC 11520 builtin and then its argument prototype would still apply. */ 11521#ifdef __cplusplus 11522extern "C" 11523#endif 11524char shl_load (); 11525/* The GNU C library defines this for functions which it implements 11526 to always fail with ENOSYS. Some functions are actually named 11527 something starting with __ and the normal name is an alias. */ 11528#if defined __stub_shl_load || defined __stub___shl_load 11529choke me 11530#endif 11531 11532int 11533main () 11534{ 11535return shl_load (); 11536 ; 11537 return 0; 11538} 11539_ACEOF 11540rm -f conftest.$ac_objext conftest$ac_exeext 11541if { (ac_try="$ac_link" 11542case "(($ac_try" in 11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11544 *) ac_try_echo=$ac_try;; 11545esac 11546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11547$as_echo "$ac_try_echo") >&5 11548 (eval "$ac_link") 2>conftest.er1 11549 ac_status=$? 11550 grep -v '^ *+' conftest.er1 >conftest.err 11551 rm -f conftest.er1 11552 cat conftest.err >&5 11553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11554 (exit $ac_status); } && { 11555 test -z "$ac_c_werror_flag" || 11556 test ! -s conftest.err 11557 } && test -s conftest$ac_exeext && { 11558 test "$cross_compiling" = yes || 11559 $as_test_x conftest$ac_exeext 11560 }; then 11561 ac_cv_func_shl_load=yes 11562else 11563 $as_echo "$as_me: failed program was:" >&5 11564sed 's/^/| /' conftest.$ac_ext >&5 11565 11566 ac_cv_func_shl_load=no 11567fi 11568 11569rm -rf conftest.dSYM 11570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11571 conftest$ac_exeext conftest.$ac_ext 11572fi 11573{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11574$as_echo "$ac_cv_func_shl_load" >&6; } 11575if test "x$ac_cv_func_shl_load" = x""yes; then 11576 lt_cv_dlopen="shl_load" 11577else 11578 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11579$as_echo_n "checking for shl_load in -ldld... " >&6; } 11580if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11581 $as_echo_n "(cached) " >&6 11582else 11583 ac_check_lib_save_LIBS=$LIBS 11584LIBS="-ldld $LIBS" 11585cat >conftest.$ac_ext <<_ACEOF 11586/* confdefs.h. */ 11587_ACEOF 11588cat confdefs.h >>conftest.$ac_ext 11589cat >>conftest.$ac_ext <<_ACEOF 11590/* end confdefs.h. */ 11591 11592/* Override any GCC internal prototype to avoid an error. 11593 Use char because int might match the return type of a GCC 11594 builtin and then its argument prototype would still apply. */ 11595#ifdef __cplusplus 11596extern "C" 11597#endif 11598char shl_load (); 11599int 11600main () 11601{ 11602return shl_load (); 11603 ; 11604 return 0; 11605} 11606_ACEOF 11607rm -f conftest.$ac_objext conftest$ac_exeext 11608if { (ac_try="$ac_link" 11609case "(($ac_try" in 11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11611 *) ac_try_echo=$ac_try;; 11612esac 11613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11614$as_echo "$ac_try_echo") >&5 11615 (eval "$ac_link") 2>conftest.er1 11616 ac_status=$? 11617 grep -v '^ *+' conftest.er1 >conftest.err 11618 rm -f conftest.er1 11619 cat conftest.err >&5 11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11621 (exit $ac_status); } && { 11622 test -z "$ac_c_werror_flag" || 11623 test ! -s conftest.err 11624 } && test -s conftest$ac_exeext && { 11625 test "$cross_compiling" = yes || 11626 $as_test_x conftest$ac_exeext 11627 }; then 11628 ac_cv_lib_dld_shl_load=yes 11629else 11630 $as_echo "$as_me: failed program was:" >&5 11631sed 's/^/| /' conftest.$ac_ext >&5 11632 11633 ac_cv_lib_dld_shl_load=no 11634fi 11635 11636rm -rf conftest.dSYM 11637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11638 conftest$ac_exeext conftest.$ac_ext 11639LIBS=$ac_check_lib_save_LIBS 11640fi 11641{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11642$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11643if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 11644 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11645else 11646 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 11647$as_echo_n "checking for dlopen... " >&6; } 11648if test "${ac_cv_func_dlopen+set}" = set; then 11649 $as_echo_n "(cached) " >&6 11650else 11651 cat >conftest.$ac_ext <<_ACEOF 11652/* confdefs.h. */ 11653_ACEOF 11654cat confdefs.h >>conftest.$ac_ext 11655cat >>conftest.$ac_ext <<_ACEOF 11656/* end confdefs.h. */ 11657/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11658 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11659#define dlopen innocuous_dlopen 11660 11661/* System header to define __stub macros and hopefully few prototypes, 11662 which can conflict with char dlopen (); below. 11663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11664 <limits.h> exists even on freestanding compilers. */ 11665 11666#ifdef __STDC__ 11667# include <limits.h> 11668#else 11669# include <assert.h> 11670#endif 11671 11672#undef dlopen 11673 11674/* Override any GCC internal prototype to avoid an error. 11675 Use char because int might match the return type of a GCC 11676 builtin and then its argument prototype would still apply. */ 11677#ifdef __cplusplus 11678extern "C" 11679#endif 11680char dlopen (); 11681/* The GNU C library defines this for functions which it implements 11682 to always fail with ENOSYS. Some functions are actually named 11683 something starting with __ and the normal name is an alias. */ 11684#if defined __stub_dlopen || defined __stub___dlopen 11685choke me 11686#endif 11687 11688int 11689main () 11690{ 11691return dlopen (); 11692 ; 11693 return 0; 11694} 11695_ACEOF 11696rm -f conftest.$ac_objext conftest$ac_exeext 11697if { (ac_try="$ac_link" 11698case "(($ac_try" in 11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11700 *) ac_try_echo=$ac_try;; 11701esac 11702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11703$as_echo "$ac_try_echo") >&5 11704 (eval "$ac_link") 2>conftest.er1 11705 ac_status=$? 11706 grep -v '^ *+' conftest.er1 >conftest.err 11707 rm -f conftest.er1 11708 cat conftest.err >&5 11709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11710 (exit $ac_status); } && { 11711 test -z "$ac_c_werror_flag" || 11712 test ! -s conftest.err 11713 } && test -s conftest$ac_exeext && { 11714 test "$cross_compiling" = yes || 11715 $as_test_x conftest$ac_exeext 11716 }; then 11717 ac_cv_func_dlopen=yes 11718else 11719 $as_echo "$as_me: failed program was:" >&5 11720sed 's/^/| /' conftest.$ac_ext >&5 11721 11722 ac_cv_func_dlopen=no 11723fi 11724 11725rm -rf conftest.dSYM 11726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11727 conftest$ac_exeext conftest.$ac_ext 11728fi 11729{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11730$as_echo "$ac_cv_func_dlopen" >&6; } 11731if test "x$ac_cv_func_dlopen" = x""yes; then 11732 lt_cv_dlopen="dlopen" 11733else 11734 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11735$as_echo_n "checking for dlopen in -ldl... " >&6; } 11736if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11737 $as_echo_n "(cached) " >&6 11738else 11739 ac_check_lib_save_LIBS=$LIBS 11740LIBS="-ldl $LIBS" 11741cat >conftest.$ac_ext <<_ACEOF 11742/* confdefs.h. */ 11743_ACEOF 11744cat confdefs.h >>conftest.$ac_ext 11745cat >>conftest.$ac_ext <<_ACEOF 11746/* end confdefs.h. */ 11747 11748/* Override any GCC internal prototype to avoid an error. 11749 Use char because int might match the return type of a GCC 11750 builtin and then its argument prototype would still apply. */ 11751#ifdef __cplusplus 11752extern "C" 11753#endif 11754char dlopen (); 11755int 11756main () 11757{ 11758return dlopen (); 11759 ; 11760 return 0; 11761} 11762_ACEOF 11763rm -f conftest.$ac_objext conftest$ac_exeext 11764if { (ac_try="$ac_link" 11765case "(($ac_try" in 11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11767 *) ac_try_echo=$ac_try;; 11768esac 11769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11770$as_echo "$ac_try_echo") >&5 11771 (eval "$ac_link") 2>conftest.er1 11772 ac_status=$? 11773 grep -v '^ *+' conftest.er1 >conftest.err 11774 rm -f conftest.er1 11775 cat conftest.err >&5 11776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11777 (exit $ac_status); } && { 11778 test -z "$ac_c_werror_flag" || 11779 test ! -s conftest.err 11780 } && test -s conftest$ac_exeext && { 11781 test "$cross_compiling" = yes || 11782 $as_test_x conftest$ac_exeext 11783 }; then 11784 ac_cv_lib_dl_dlopen=yes 11785else 11786 $as_echo "$as_me: failed program was:" >&5 11787sed 's/^/| /' conftest.$ac_ext >&5 11788 11789 ac_cv_lib_dl_dlopen=no 11790fi 11791 11792rm -rf conftest.dSYM 11793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11794 conftest$ac_exeext conftest.$ac_ext 11795LIBS=$ac_check_lib_save_LIBS 11796fi 11797{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11798$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11799if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11801else 11802 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11803$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11804if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11805 $as_echo_n "(cached) " >&6 11806else 11807 ac_check_lib_save_LIBS=$LIBS 11808LIBS="-lsvld $LIBS" 11809cat >conftest.$ac_ext <<_ACEOF 11810/* confdefs.h. */ 11811_ACEOF 11812cat confdefs.h >>conftest.$ac_ext 11813cat >>conftest.$ac_ext <<_ACEOF 11814/* end confdefs.h. */ 11815 11816/* Override any GCC internal prototype to avoid an error. 11817 Use char because int might match the return type of a GCC 11818 builtin and then its argument prototype would still apply. */ 11819#ifdef __cplusplus 11820extern "C" 11821#endif 11822char dlopen (); 11823int 11824main () 11825{ 11826return dlopen (); 11827 ; 11828 return 0; 11829} 11830_ACEOF 11831rm -f conftest.$ac_objext conftest$ac_exeext 11832if { (ac_try="$ac_link" 11833case "(($ac_try" in 11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11835 *) ac_try_echo=$ac_try;; 11836esac 11837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11838$as_echo "$ac_try_echo") >&5 11839 (eval "$ac_link") 2>conftest.er1 11840 ac_status=$? 11841 grep -v '^ *+' conftest.er1 >conftest.err 11842 rm -f conftest.er1 11843 cat conftest.err >&5 11844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11845 (exit $ac_status); } && { 11846 test -z "$ac_c_werror_flag" || 11847 test ! -s conftest.err 11848 } && test -s conftest$ac_exeext && { 11849 test "$cross_compiling" = yes || 11850 $as_test_x conftest$ac_exeext 11851 }; then 11852 ac_cv_lib_svld_dlopen=yes 11853else 11854 $as_echo "$as_me: failed program was:" >&5 11855sed 's/^/| /' conftest.$ac_ext >&5 11856 11857 ac_cv_lib_svld_dlopen=no 11858fi 11859 11860rm -rf conftest.dSYM 11861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11862 conftest$ac_exeext conftest.$ac_ext 11863LIBS=$ac_check_lib_save_LIBS 11864fi 11865{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11866$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11867if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11869else 11870 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11871$as_echo_n "checking for dld_link in -ldld... " >&6; } 11872if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11873 $as_echo_n "(cached) " >&6 11874else 11875 ac_check_lib_save_LIBS=$LIBS 11876LIBS="-ldld $LIBS" 11877cat >conftest.$ac_ext <<_ACEOF 11878/* confdefs.h. */ 11879_ACEOF 11880cat confdefs.h >>conftest.$ac_ext 11881cat >>conftest.$ac_ext <<_ACEOF 11882/* end confdefs.h. */ 11883 11884/* Override any GCC internal prototype to avoid an error. 11885 Use char because int might match the return type of a GCC 11886 builtin and then its argument prototype would still apply. */ 11887#ifdef __cplusplus 11888extern "C" 11889#endif 11890char dld_link (); 11891int 11892main () 11893{ 11894return dld_link (); 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899rm -f conftest.$ac_objext conftest$ac_exeext 11900if { (ac_try="$ac_link" 11901case "(($ac_try" in 11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11903 *) ac_try_echo=$ac_try;; 11904esac 11905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11906$as_echo "$ac_try_echo") >&5 11907 (eval "$ac_link") 2>conftest.er1 11908 ac_status=$? 11909 grep -v '^ *+' conftest.er1 >conftest.err 11910 rm -f conftest.er1 11911 cat conftest.err >&5 11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11913 (exit $ac_status); } && { 11914 test -z "$ac_c_werror_flag" || 11915 test ! -s conftest.err 11916 } && test -s conftest$ac_exeext && { 11917 test "$cross_compiling" = yes || 11918 $as_test_x conftest$ac_exeext 11919 }; then 11920 ac_cv_lib_dld_dld_link=yes 11921else 11922 $as_echo "$as_me: failed program was:" >&5 11923sed 's/^/| /' conftest.$ac_ext >&5 11924 11925 ac_cv_lib_dld_dld_link=no 11926fi 11927 11928rm -rf conftest.dSYM 11929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11930 conftest$ac_exeext conftest.$ac_ext 11931LIBS=$ac_check_lib_save_LIBS 11932fi 11933{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11934$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11935if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11936 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11937fi 11938 11939 11940fi 11941 11942 11943fi 11944 11945 11946fi 11947 11948 11949fi 11950 11951 11952fi 11953 11954 ;; 11955 esac 11956 11957 if test "x$lt_cv_dlopen" != xno; then 11958 enable_dlopen=yes 11959 else 11960 enable_dlopen=no 11961 fi 11962 11963 case $lt_cv_dlopen in 11964 dlopen) 11965 save_CPPFLAGS="$CPPFLAGS" 11966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11967 11968 save_LDFLAGS="$LDFLAGS" 11969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11970 11971 save_LIBS="$LIBS" 11972 LIBS="$lt_cv_dlopen_libs $LIBS" 11973 11974 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11975$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11976if test "${lt_cv_dlopen_self+set}" = set; then 11977 $as_echo_n "(cached) " >&6 11978else 11979 if test "$cross_compiling" = yes; then : 11980 lt_cv_dlopen_self=cross 11981else 11982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11983 lt_status=$lt_dlunknown 11984 cat > conftest.$ac_ext <<_LT_EOF 11985#line 11985 "configure" 11986#include "confdefs.h" 11987 11988#if HAVE_DLFCN_H 11989#include <dlfcn.h> 11990#endif 11991 11992#include <stdio.h> 11993 11994#ifdef RTLD_GLOBAL 11995# define LT_DLGLOBAL RTLD_GLOBAL 11996#else 11997# ifdef DL_GLOBAL 11998# define LT_DLGLOBAL DL_GLOBAL 11999# else 12000# define LT_DLGLOBAL 0 12001# endif 12002#endif 12003 12004/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12005 find out it does not work in some platform. */ 12006#ifndef LT_DLLAZY_OR_NOW 12007# ifdef RTLD_LAZY 12008# define LT_DLLAZY_OR_NOW RTLD_LAZY 12009# else 12010# ifdef DL_LAZY 12011# define LT_DLLAZY_OR_NOW DL_LAZY 12012# else 12013# ifdef RTLD_NOW 12014# define LT_DLLAZY_OR_NOW RTLD_NOW 12015# else 12016# ifdef DL_NOW 12017# define LT_DLLAZY_OR_NOW DL_NOW 12018# else 12019# define LT_DLLAZY_OR_NOW 0 12020# endif 12021# endif 12022# endif 12023# endif 12024#endif 12025 12026void fnord() { int i=42;} 12027int main () 12028{ 12029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12030 int status = $lt_dlunknown; 12031 12032 if (self) 12033 { 12034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12036 /* dlclose (self); */ 12037 } 12038 else 12039 puts (dlerror ()); 12040 12041 return status; 12042} 12043_LT_EOF 12044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12045 (eval $ac_link) 2>&5 12046 ac_status=$? 12047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12049 (./conftest; exit; ) >&5 2>/dev/null 12050 lt_status=$? 12051 case x$lt_status in 12052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12054 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12055 esac 12056 else : 12057 # compilation failed 12058 lt_cv_dlopen_self=no 12059 fi 12060fi 12061rm -fr conftest* 12062 12063 12064fi 12065{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12066$as_echo "$lt_cv_dlopen_self" >&6; } 12067 12068 if test "x$lt_cv_dlopen_self" = xyes; then 12069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12070 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12071$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12072if test "${lt_cv_dlopen_self_static+set}" = set; then 12073 $as_echo_n "(cached) " >&6 12074else 12075 if test "$cross_compiling" = yes; then : 12076 lt_cv_dlopen_self_static=cross 12077else 12078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12079 lt_status=$lt_dlunknown 12080 cat > conftest.$ac_ext <<_LT_EOF 12081#line 12081 "configure" 12082#include "confdefs.h" 12083 12084#if HAVE_DLFCN_H 12085#include <dlfcn.h> 12086#endif 12087 12088#include <stdio.h> 12089 12090#ifdef RTLD_GLOBAL 12091# define LT_DLGLOBAL RTLD_GLOBAL 12092#else 12093# ifdef DL_GLOBAL 12094# define LT_DLGLOBAL DL_GLOBAL 12095# else 12096# define LT_DLGLOBAL 0 12097# endif 12098#endif 12099 12100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12101 find out it does not work in some platform. */ 12102#ifndef LT_DLLAZY_OR_NOW 12103# ifdef RTLD_LAZY 12104# define LT_DLLAZY_OR_NOW RTLD_LAZY 12105# else 12106# ifdef DL_LAZY 12107# define LT_DLLAZY_OR_NOW DL_LAZY 12108# else 12109# ifdef RTLD_NOW 12110# define LT_DLLAZY_OR_NOW RTLD_NOW 12111# else 12112# ifdef DL_NOW 12113# define LT_DLLAZY_OR_NOW DL_NOW 12114# else 12115# define LT_DLLAZY_OR_NOW 0 12116# endif 12117# endif 12118# endif 12119# endif 12120#endif 12121 12122void fnord() { int i=42;} 12123int main () 12124{ 12125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12126 int status = $lt_dlunknown; 12127 12128 if (self) 12129 { 12130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12131 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12132 /* dlclose (self); */ 12133 } 12134 else 12135 puts (dlerror ()); 12136 12137 return status; 12138} 12139_LT_EOF 12140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12141 (eval $ac_link) 2>&5 12142 ac_status=$? 12143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12144 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12145 (./conftest; exit; ) >&5 2>/dev/null 12146 lt_status=$? 12147 case x$lt_status in 12148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12150 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12151 esac 12152 else : 12153 # compilation failed 12154 lt_cv_dlopen_self_static=no 12155 fi 12156fi 12157rm -fr conftest* 12158 12159 12160fi 12161{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12162$as_echo "$lt_cv_dlopen_self_static" >&6; } 12163 fi 12164 12165 CPPFLAGS="$save_CPPFLAGS" 12166 LDFLAGS="$save_LDFLAGS" 12167 LIBS="$save_LIBS" 12168 ;; 12169 esac 12170 12171 case $lt_cv_dlopen_self in 12172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12173 *) enable_dlopen_self=unknown ;; 12174 esac 12175 12176 case $lt_cv_dlopen_self_static in 12177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12178 *) enable_dlopen_self_static=unknown ;; 12179 esac 12180fi 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198striplib= 12199old_striplib= 12200{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12201$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12202if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12203 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12204 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12205 { $as_echo "$as_me:$LINENO: result: yes" >&5 12206$as_echo "yes" >&6; } 12207else 12208# FIXME - insert some real tests, host_os isn't really good enough 12209 case $host_os in 12210 darwin*) 12211 if test -n "$STRIP" ; then 12212 striplib="$STRIP -x" 12213 old_striplib="$STRIP -S" 12214 { $as_echo "$as_me:$LINENO: result: yes" >&5 12215$as_echo "yes" >&6; } 12216 else 12217 { $as_echo "$as_me:$LINENO: result: no" >&5 12218$as_echo "no" >&6; } 12219 fi 12220 ;; 12221 *) 12222 { $as_echo "$as_me:$LINENO: result: no" >&5 12223$as_echo "no" >&6; } 12224 ;; 12225 esac 12226fi 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 # Report which library types will actually be built 12240 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12241$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12242 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 12243$as_echo "$can_build_shared" >&6; } 12244 12245 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12246$as_echo_n "checking whether to build shared libraries... " >&6; } 12247 test "$can_build_shared" = "no" && enable_shared=no 12248 12249 # On AIX, shared libraries and static libraries use the same namespace, and 12250 # are all built from PIC. 12251 case $host_os in 12252 aix3*) 12253 test "$enable_shared" = yes && enable_static=no 12254 if test -n "$RANLIB"; then 12255 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12256 postinstall_cmds='$RANLIB $lib' 12257 fi 12258 ;; 12259 12260 aix[4-9]*) 12261 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12262 test "$enable_shared" = yes && enable_static=no 12263 fi 12264 ;; 12265 esac 12266 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 12267$as_echo "$enable_shared" >&6; } 12268 12269 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12270$as_echo_n "checking whether to build static libraries... " >&6; } 12271 # Make sure either enable_shared or enable_static is yes. 12272 test "$enable_shared" = yes || enable_static=yes 12273 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 12274$as_echo "$enable_static" >&6; } 12275 12276 12277 12278 12279fi 12280ac_ext=c 12281ac_cpp='$CPP $CPPFLAGS' 12282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12284ac_compiler_gnu=$ac_cv_c_compiler_gnu 12285 12286CC="$lt_save_CC" 12287 12288 12289ac_ext=cpp 12290ac_cpp='$CXXCPP $CPPFLAGS' 12291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12294 12295archive_cmds_need_lc_CXX=no 12296allow_undefined_flag_CXX= 12297always_export_symbols_CXX=no 12298archive_expsym_cmds_CXX= 12299compiler_needs_object_CXX=no 12300export_dynamic_flag_spec_CXX= 12301hardcode_direct_CXX=no 12302hardcode_direct_absolute_CXX=no 12303hardcode_libdir_flag_spec_CXX= 12304hardcode_libdir_flag_spec_ld_CXX= 12305hardcode_libdir_separator_CXX= 12306hardcode_minus_L_CXX=no 12307hardcode_shlibpath_var_CXX=unsupported 12308hardcode_automatic_CXX=no 12309inherit_rpath_CXX=no 12310module_cmds_CXX= 12311module_expsym_cmds_CXX= 12312link_all_deplibs_CXX=unknown 12313old_archive_cmds_CXX=$old_archive_cmds 12314no_undefined_flag_CXX= 12315whole_archive_flag_spec_CXX= 12316enable_shared_with_static_runtimes_CXX=no 12317 12318# Source file extension for C++ test sources. 12319ac_ext=cpp 12320 12321# Object file extension for compiled C++ test sources. 12322objext=o 12323objext_CXX=$objext 12324 12325# No sense in running all these tests if we already determined that 12326# the CXX compiler isn't working. Some variables (like enable_shared) 12327# are currently assumed to apply to all compilers on this platform, 12328# and will be corrupted by setting them based on a non-working compiler. 12329if test "$_lt_caught_CXX_error" != yes; then 12330 # Code to be used in simple compile tests 12331 lt_simple_compile_test_code="int some_variable = 0;" 12332 12333 # Code to be used in simple link tests 12334 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12335 12336 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12337 12338 12339 12340 12341 12342 12343# If no C compiler was specified, use CC. 12344LTCC=${LTCC-"$CC"} 12345 12346# If no C compiler flags were specified, use CFLAGS. 12347LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12348 12349# Allow CC to be a program name with arguments. 12350compiler=$CC 12351 12352 12353 # save warnings/boilerplate of simple test code 12354 ac_outfile=conftest.$ac_objext 12355echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12356eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12357_lt_compiler_boilerplate=`cat conftest.err` 12358$RM conftest* 12359 12360 ac_outfile=conftest.$ac_objext 12361echo "$lt_simple_link_test_code" >conftest.$ac_ext 12362eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12363_lt_linker_boilerplate=`cat conftest.err` 12364$RM -r conftest* 12365 12366 12367 # Allow CC to be a program name with arguments. 12368 lt_save_CC=$CC 12369 lt_save_LD=$LD 12370 lt_save_GCC=$GCC 12371 GCC=$GXX 12372 lt_save_with_gnu_ld=$with_gnu_ld 12373 lt_save_path_LD=$lt_cv_path_LD 12374 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12375 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12376 else 12377 $as_unset lt_cv_prog_gnu_ld 12378 fi 12379 if test -n "${lt_cv_path_LDCXX+set}"; then 12380 lt_cv_path_LD=$lt_cv_path_LDCXX 12381 else 12382 $as_unset lt_cv_path_LD 12383 fi 12384 test -z "${LDCXX+set}" || LD=$LDCXX 12385 CC=${CXX-"c++"} 12386 compiler=$CC 12387 compiler_CXX=$CC 12388 for cc_temp in $compiler""; do 12389 case $cc_temp in 12390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12392 \-*) ;; 12393 *) break;; 12394 esac 12395done 12396cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12397 12398 12399 if test -n "$compiler"; then 12400 # We don't want -fno-exception when compiling C++ code, so set the 12401 # no_builtin_flag separately 12402 if test "$GXX" = yes; then 12403 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12404 else 12405 lt_prog_compiler_no_builtin_flag_CXX= 12406 fi 12407 12408 if test "$GXX" = yes; then 12409 # Set up default GNU C++ configuration 12410 12411 12412 12413# Check whether --with-gnu-ld was given. 12414if test "${with_gnu_ld+set}" = set; then 12415 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12416else 12417 with_gnu_ld=no 12418fi 12419 12420ac_prog=ld 12421if test "$GCC" = yes; then 12422 # Check if gcc -print-prog-name=ld gives a path. 12423 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12424$as_echo_n "checking for ld used by $CC... " >&6; } 12425 case $host in 12426 *-*-mingw*) 12427 # gcc leaves a trailing carriage return which upsets mingw 12428 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12429 *) 12430 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12431 esac 12432 case $ac_prog in 12433 # Accept absolute paths. 12434 [\\/]* | ?:[\\/]*) 12435 re_direlt='/[^/][^/]*/\.\./' 12436 # Canonicalize the pathname of ld 12437 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12438 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12439 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12440 done 12441 test -z "$LD" && LD="$ac_prog" 12442 ;; 12443 "") 12444 # If it fails, then pretend we aren't using GCC. 12445 ac_prog=ld 12446 ;; 12447 *) 12448 # If it is relative, then search for the first ld in PATH. 12449 with_gnu_ld=unknown 12450 ;; 12451 esac 12452elif test "$with_gnu_ld" = yes; then 12453 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 12454$as_echo_n "checking for GNU ld... " >&6; } 12455else 12456 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12457$as_echo_n "checking for non-GNU ld... " >&6; } 12458fi 12459if test "${lt_cv_path_LD+set}" = set; then 12460 $as_echo_n "(cached) " >&6 12461else 12462 if test -z "$LD"; then 12463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12464 for ac_dir in $PATH; do 12465 IFS="$lt_save_ifs" 12466 test -z "$ac_dir" && ac_dir=. 12467 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12468 lt_cv_path_LD="$ac_dir/$ac_prog" 12469 # Check to see if the program is GNU ld. I'd rather use --version, 12470 # but apparently some variants of GNU ld only accept -v. 12471 # Break only if it was the GNU/non-GNU ld that we prefer. 12472 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12473 *GNU* | *'with BFD'*) 12474 test "$with_gnu_ld" != no && break 12475 ;; 12476 *) 12477 test "$with_gnu_ld" != yes && break 12478 ;; 12479 esac 12480 fi 12481 done 12482 IFS="$lt_save_ifs" 12483else 12484 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12485fi 12486fi 12487 12488LD="$lt_cv_path_LD" 12489if test -n "$LD"; then 12490 { $as_echo "$as_me:$LINENO: result: $LD" >&5 12491$as_echo "$LD" >&6; } 12492else 12493 { $as_echo "$as_me:$LINENO: result: no" >&5 12494$as_echo "no" >&6; } 12495fi 12496test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12497$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12498 { (exit 1); exit 1; }; } 12499{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12500$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12501if test "${lt_cv_prog_gnu_ld+set}" = set; then 12502 $as_echo_n "(cached) " >&6 12503else 12504 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12505case `$LD -v 2>&1 </dev/null` in 12506*GNU* | *'with BFD'*) 12507 lt_cv_prog_gnu_ld=yes 12508 ;; 12509*) 12510 lt_cv_prog_gnu_ld=no 12511 ;; 12512esac 12513fi 12514{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12515$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12516with_gnu_ld=$lt_cv_prog_gnu_ld 12517 12518 12519 12520 12521 12522 12523 12524 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12525 # archiving commands below assume that GNU ld is being used. 12526 if test "$with_gnu_ld" = yes; then 12527 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12528 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' 12529 12530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12532 12533 # If archive_cmds runs LD, not CC, wlarc should be empty 12534 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12535 # investigate it a little bit more. (MM) 12536 wlarc='${wl}' 12537 12538 # ancient GNU ld didn't support --whole-archive et. al. 12539 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12540 $GREP 'no-whole-archive' > /dev/null; then 12541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12542 else 12543 whole_archive_flag_spec_CXX= 12544 fi 12545 else 12546 with_gnu_ld=no 12547 wlarc= 12548 12549 # A generic and very simple default shared library creation 12550 # command for GNU C++ for the case where it uses the native 12551 # linker, instead of GNU ld. If possible, this setting should 12552 # overridden to take advantage of the native linker features on 12553 # the platform it is being used on. 12554 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12555 fi 12556 12557 # Commands to make compiler produce verbose output that lists 12558 # what "hidden" libraries, object files and flags are used when 12559 # linking a shared library. 12560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12561 12562 else 12563 GXX=no 12564 with_gnu_ld=no 12565 wlarc= 12566 fi 12567 12568 # PORTME: fill in a description of your system's C++ link characteristics 12569 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12570$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12571 ld_shlibs_CXX=yes 12572 case $host_os in 12573 aix3*) 12574 # FIXME: insert proper C++ library support 12575 ld_shlibs_CXX=no 12576 ;; 12577 aix[4-9]*) 12578 if test "$host_cpu" = ia64; then 12579 # On IA64, the linker does run time linking by default, so we don't 12580 # have to do anything special. 12581 aix_use_runtimelinking=no 12582 exp_sym_flag='-Bexport' 12583 no_entry_flag="" 12584 else 12585 aix_use_runtimelinking=no 12586 12587 # Test if we are trying to use run time linking or normal 12588 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12589 # need to do runtime linking. 12590 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12591 for ld_flag in $LDFLAGS; do 12592 case $ld_flag in 12593 *-brtl*) 12594 aix_use_runtimelinking=yes 12595 break 12596 ;; 12597 esac 12598 done 12599 ;; 12600 esac 12601 12602 exp_sym_flag='-bexport' 12603 no_entry_flag='-bnoentry' 12604 fi 12605 12606 # When large executables or shared objects are built, AIX ld can 12607 # have problems creating the table of contents. If linking a library 12608 # or program results in "error TOC overflow" add -mminimal-toc to 12609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12611 12612 archive_cmds_CXX='' 12613 hardcode_direct_CXX=yes 12614 hardcode_direct_absolute_CXX=yes 12615 hardcode_libdir_separator_CXX=':' 12616 link_all_deplibs_CXX=yes 12617 file_list_spec_CXX='${wl}-f,' 12618 12619 if test "$GXX" = yes; then 12620 case $host_os in aix4.[012]|aix4.[012].*) 12621 # We only want to do this on AIX 4.2 and lower, the check 12622 # below for broken collect2 doesn't work under 4.3+ 12623 collect2name=`${CC} -print-prog-name=collect2` 12624 if test -f "$collect2name" && 12625 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12626 then 12627 # We have reworked collect2 12628 : 12629 else 12630 # We have old collect2 12631 hardcode_direct_CXX=unsupported 12632 # It fails to find uninstalled libraries when the uninstalled 12633 # path is not listed in the libpath. Setting hardcode_minus_L 12634 # to unsupported forces relinking 12635 hardcode_minus_L_CXX=yes 12636 hardcode_libdir_flag_spec_CXX='-L$libdir' 12637 hardcode_libdir_separator_CXX= 12638 fi 12639 esac 12640 shared_flag='-shared' 12641 if test "$aix_use_runtimelinking" = yes; then 12642 shared_flag="$shared_flag "'${wl}-G' 12643 fi 12644 else 12645 # not using gcc 12646 if test "$host_cpu" = ia64; then 12647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12648 # chokes on -Wl,-G. The following line is correct: 12649 shared_flag='-G' 12650 else 12651 if test "$aix_use_runtimelinking" = yes; then 12652 shared_flag='${wl}-G' 12653 else 12654 shared_flag='${wl}-bM:SRE' 12655 fi 12656 fi 12657 fi 12658 12659 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12660 # It seems that -bexpall does not export symbols beginning with 12661 # underscore (_), so it is better to generate a list of symbols to 12662 # export. 12663 always_export_symbols_CXX=yes 12664 if test "$aix_use_runtimelinking" = yes; then 12665 # Warning - without using the other runtime loading flags (-brtl), 12666 # -berok will link without error, but may produce a broken library. 12667 allow_undefined_flag_CXX='-berok' 12668 # Determine the default libpath from the value encoded in an empty 12669 # executable. 12670 cat >conftest.$ac_ext <<_ACEOF 12671/* confdefs.h. */ 12672_ACEOF 12673cat confdefs.h >>conftest.$ac_ext 12674cat >>conftest.$ac_ext <<_ACEOF 12675/* end confdefs.h. */ 12676 12677int 12678main () 12679{ 12680 12681 ; 12682 return 0; 12683} 12684_ACEOF 12685rm -f conftest.$ac_objext conftest$ac_exeext 12686if { (ac_try="$ac_link" 12687case "(($ac_try" in 12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12689 *) ac_try_echo=$ac_try;; 12690esac 12691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12692$as_echo "$ac_try_echo") >&5 12693 (eval "$ac_link") 2>conftest.er1 12694 ac_status=$? 12695 grep -v '^ *+' conftest.er1 >conftest.err 12696 rm -f conftest.er1 12697 cat conftest.err >&5 12698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12699 (exit $ac_status); } && { 12700 test -z "$ac_cxx_werror_flag" || 12701 test ! -s conftest.err 12702 } && test -s conftest$ac_exeext && { 12703 test "$cross_compiling" = yes || 12704 $as_test_x conftest$ac_exeext 12705 }; then 12706 12707lt_aix_libpath_sed=' 12708 /Import File Strings/,/^$/ { 12709 /^0/ { 12710 s/^0 *\(.*\)$/\1/ 12711 p 12712 } 12713 }' 12714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12715# Check for a 64-bit object if we didn't find anything. 12716if test -z "$aix_libpath"; then 12717 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12718fi 12719else 12720 $as_echo "$as_me: failed program was:" >&5 12721sed 's/^/| /' conftest.$ac_ext >&5 12722 12723 12724fi 12725 12726rm -rf conftest.dSYM 12727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12728 conftest$ac_exeext conftest.$ac_ext 12729if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12730 12731 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12732 12733 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" 12734 else 12735 if test "$host_cpu" = ia64; then 12736 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12737 allow_undefined_flag_CXX="-z nodefs" 12738 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" 12739 else 12740 # Determine the default libpath from the value encoded in an 12741 # empty executable. 12742 cat >conftest.$ac_ext <<_ACEOF 12743/* confdefs.h. */ 12744_ACEOF 12745cat confdefs.h >>conftest.$ac_ext 12746cat >>conftest.$ac_ext <<_ACEOF 12747/* end confdefs.h. */ 12748 12749int 12750main () 12751{ 12752 12753 ; 12754 return 0; 12755} 12756_ACEOF 12757rm -f conftest.$ac_objext conftest$ac_exeext 12758if { (ac_try="$ac_link" 12759case "(($ac_try" in 12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12761 *) ac_try_echo=$ac_try;; 12762esac 12763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 12764$as_echo "$ac_try_echo") >&5 12765 (eval "$ac_link") 2>conftest.er1 12766 ac_status=$? 12767 grep -v '^ *+' conftest.er1 >conftest.err 12768 rm -f conftest.er1 12769 cat conftest.err >&5 12770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12771 (exit $ac_status); } && { 12772 test -z "$ac_cxx_werror_flag" || 12773 test ! -s conftest.err 12774 } && test -s conftest$ac_exeext && { 12775 test "$cross_compiling" = yes || 12776 $as_test_x conftest$ac_exeext 12777 }; then 12778 12779lt_aix_libpath_sed=' 12780 /Import File Strings/,/^$/ { 12781 /^0/ { 12782 s/^0 *\(.*\)$/\1/ 12783 p 12784 } 12785 }' 12786aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12787# Check for a 64-bit object if we didn't find anything. 12788if test -z "$aix_libpath"; then 12789 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12790fi 12791else 12792 $as_echo "$as_me: failed program was:" >&5 12793sed 's/^/| /' conftest.$ac_ext >&5 12794 12795 12796fi 12797 12798rm -rf conftest.dSYM 12799rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12800 conftest$ac_exeext conftest.$ac_ext 12801if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12802 12803 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12804 # Warning - without using the other run time loading flags, 12805 # -berok will link without error, but may produce a broken library. 12806 no_undefined_flag_CXX=' ${wl}-bernotok' 12807 allow_undefined_flag_CXX=' ${wl}-berok' 12808 # Exported symbols can be pulled into shared objects from archives 12809 whole_archive_flag_spec_CXX='$convenience' 12810 archive_cmds_need_lc_CXX=yes 12811 # This is similar to how AIX traditionally builds its shared 12812 # libraries. 12813 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' 12814 fi 12815 fi 12816 ;; 12817 12818 beos*) 12819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12820 allow_undefined_flag_CXX=unsupported 12821 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12822 # support --undefined. This deserves some investigation. FIXME 12823 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12824 else 12825 ld_shlibs_CXX=no 12826 fi 12827 ;; 12828 12829 chorus*) 12830 case $cc_basename in 12831 *) 12832 # FIXME: insert proper C++ library support 12833 ld_shlibs_CXX=no 12834 ;; 12835 esac 12836 ;; 12837 12838 cygwin* | mingw* | pw32* | cegcc*) 12839 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12840 # as there is no search path for DLLs. 12841 hardcode_libdir_flag_spec_CXX='-L$libdir' 12842 allow_undefined_flag_CXX=unsupported 12843 always_export_symbols_CXX=no 12844 enable_shared_with_static_runtimes_CXX=yes 12845 12846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12847 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' 12848 # If the export-symbols file already is a .def file (1st line 12849 # is EXPORTS), use it as is; otherwise, prepend... 12850 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12851 cp $export_symbols $output_objdir/$soname.def; 12852 else 12853 echo EXPORTS > $output_objdir/$soname.def; 12854 cat $export_symbols >> $output_objdir/$soname.def; 12855 fi~ 12856 $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' 12857 else 12858 ld_shlibs_CXX=no 12859 fi 12860 ;; 12861 darwin* | rhapsody*) 12862 12863 12864 archive_cmds_need_lc_CXX=no 12865 hardcode_direct_CXX=no 12866 hardcode_automatic_CXX=yes 12867 hardcode_shlibpath_var_CXX=unsupported 12868 whole_archive_flag_spec_CXX='' 12869 link_all_deplibs_CXX=yes 12870 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12871 case $cc_basename in 12872 ifort*) _lt_dar_can_shared=yes ;; 12873 *) _lt_dar_can_shared=$GCC ;; 12874 esac 12875 if test "$_lt_dar_can_shared" = "yes"; then 12876 output_verbose_link_cmd=echo 12877 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}" 12878 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12879 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}" 12880 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}" 12881 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12882 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}" 12883 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}" 12884 fi 12885 12886 else 12887 ld_shlibs_CXX=no 12888 fi 12889 12890 ;; 12891 12892 dgux*) 12893 case $cc_basename in 12894 ec++*) 12895 # FIXME: insert proper C++ library support 12896 ld_shlibs_CXX=no 12897 ;; 12898 ghcx*) 12899 # Green Hills C++ Compiler 12900 # FIXME: insert proper C++ library support 12901 ld_shlibs_CXX=no 12902 ;; 12903 *) 12904 # FIXME: insert proper C++ library support 12905 ld_shlibs_CXX=no 12906 ;; 12907 esac 12908 ;; 12909 12910 freebsd[12]*) 12911 # C++ shared libraries reported to be fairly broken before 12912 # switch to ELF 12913 ld_shlibs_CXX=no 12914 ;; 12915 12916 freebsd-elf*) 12917 archive_cmds_need_lc_CXX=no 12918 ;; 12919 12920 freebsd* | dragonfly*) 12921 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12922 # conventions 12923 ld_shlibs_CXX=yes 12924 ;; 12925 12926 gnu*) 12927 ;; 12928 12929 hpux9*) 12930 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12931 hardcode_libdir_separator_CXX=: 12932 export_dynamic_flag_spec_CXX='${wl}-E' 12933 hardcode_direct_CXX=yes 12934 hardcode_minus_L_CXX=yes # Not in the search PATH, 12935 # but as the default 12936 # location of the library. 12937 12938 case $cc_basename in 12939 CC*) 12940 # FIXME: insert proper C++ library support 12941 ld_shlibs_CXX=no 12942 ;; 12943 aCC*) 12944 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' 12945 # Commands to make compiler produce verbose output that lists 12946 # what "hidden" libraries, object files and flags are used when 12947 # linking a shared library. 12948 # 12949 # There doesn't appear to be a way to prevent this compiler from 12950 # explicitly linking system object files so we need to strip them 12951 # from the output so that they don't get included in the library 12952 # dependencies. 12953 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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' 12954 ;; 12955 *) 12956 if test "$GXX" = yes; then 12957 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' 12958 else 12959 # FIXME: insert proper C++ library support 12960 ld_shlibs_CXX=no 12961 fi 12962 ;; 12963 esac 12964 ;; 12965 12966 hpux10*|hpux11*) 12967 if test $with_gnu_ld = no; then 12968 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12969 hardcode_libdir_separator_CXX=: 12970 12971 case $host_cpu in 12972 hppa*64*|ia64*) 12973 ;; 12974 *) 12975 export_dynamic_flag_spec_CXX='${wl}-E' 12976 ;; 12977 esac 12978 fi 12979 case $host_cpu in 12980 hppa*64*|ia64*) 12981 hardcode_direct_CXX=no 12982 hardcode_shlibpath_var_CXX=no 12983 ;; 12984 *) 12985 hardcode_direct_CXX=yes 12986 hardcode_direct_absolute_CXX=yes 12987 hardcode_minus_L_CXX=yes # Not in the search PATH, 12988 # but as the default 12989 # location of the library. 12990 ;; 12991 esac 12992 12993 case $cc_basename in 12994 CC*) 12995 # FIXME: insert proper C++ library support 12996 ld_shlibs_CXX=no 12997 ;; 12998 aCC*) 12999 case $host_cpu in 13000 hppa*64*) 13001 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13002 ;; 13003 ia64*) 13004 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13005 ;; 13006 *) 13007 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13008 ;; 13009 esac 13010 # Commands to make compiler produce verbose output that lists 13011 # what "hidden" libraries, object files and flags are used when 13012 # linking a shared library. 13013 # 13014 # There doesn't appear to be a way to prevent this compiler from 13015 # explicitly linking system object files so we need to strip them 13016 # from the output so that they don't get included in the library 13017 # dependencies. 13018 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' 13019 ;; 13020 *) 13021 if test "$GXX" = yes; then 13022 if test $with_gnu_ld = no; then 13023 case $host_cpu in 13024 hppa*64*) 13025 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13026 ;; 13027 ia64*) 13028 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13029 ;; 13030 *) 13031 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' 13032 ;; 13033 esac 13034 fi 13035 else 13036 # FIXME: insert proper C++ library support 13037 ld_shlibs_CXX=no 13038 fi 13039 ;; 13040 esac 13041 ;; 13042 13043 interix[3-9]*) 13044 hardcode_direct_CXX=no 13045 hardcode_shlibpath_var_CXX=no 13046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13047 export_dynamic_flag_spec_CXX='${wl}-E' 13048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13049 # Instead, shared libraries are loaded at an image base (0x10000000 by 13050 # default) and relocated if they conflict, which is a slow very memory 13051 # consuming and fragmenting process. To avoid this, we pick a random, 13052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13053 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13054 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' 13055 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' 13056 ;; 13057 irix5* | irix6*) 13058 case $cc_basename in 13059 CC*) 13060 # SGI C++ 13061 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' 13062 13063 # Archives containing C++ object files must be created using 13064 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13065 # necessary to make sure instantiated templates are included 13066 # in the archive. 13067 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13068 ;; 13069 *) 13070 if test "$GXX" = yes; then 13071 if test "$with_gnu_ld" = no; then 13072 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' 13073 else 13074 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' 13075 fi 13076 fi 13077 link_all_deplibs_CXX=yes 13078 ;; 13079 esac 13080 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13081 hardcode_libdir_separator_CXX=: 13082 inherit_rpath_CXX=yes 13083 ;; 13084 13085 linux* | k*bsd*-gnu) 13086 case $cc_basename in 13087 KCC*) 13088 # Kuck and Associates, Inc. (KAI) C++ Compiler 13089 13090 # KCC will only create a shared library if the output file 13091 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13092 # to its proper name (with version) after linking. 13093 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' 13094 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' 13095 # Commands to make compiler produce verbose output that lists 13096 # what "hidden" libraries, object files and flags are used when 13097 # linking a shared library. 13098 # 13099 # There doesn't appear to be a way to prevent this compiler from 13100 # explicitly linking system object files so we need to strip them 13101 # from the output so that they don't get included in the library 13102 # dependencies. 13103 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' 13104 13105 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13107 13108 # Archives containing C++ object files must be created using 13109 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13110 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13111 ;; 13112 icpc* | ecpc* ) 13113 # Intel C++ 13114 with_gnu_ld=yes 13115 # version 8.0 and above of icpc choke on multiply defined symbols 13116 # if we add $predep_objects and $postdep_objects, however 7.1 and 13117 # earlier do not add the objects themselves. 13118 case `$CC -V 2>&1` in 13119 *"Version 7."*) 13120 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13121 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' 13122 ;; 13123 *) # Version 8.0 or newer 13124 tmp_idyn= 13125 case $host_cpu in 13126 ia64*) tmp_idyn=' -i_dynamic';; 13127 esac 13128 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13129 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' 13130 ;; 13131 esac 13132 archive_cmds_need_lc_CXX=no 13133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13134 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13135 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13136 ;; 13137 pgCC* | pgcpp*) 13138 # Portland Group C++ compiler 13139 case `$CC -V` in 13140 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 13141 prelink_cmds_CXX='tpldir=Template.dir~ 13142 rm -rf $tpldir~ 13143 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13144 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13145 old_archive_cmds_CXX='tpldir=Template.dir~ 13146 rm -rf $tpldir~ 13147 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13148 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13149 $RANLIB $oldlib' 13150 archive_cmds_CXX='tpldir=Template.dir~ 13151 rm -rf $tpldir~ 13152 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13153 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13154 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13155 rm -rf $tpldir~ 13156 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13157 $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' 13158 ;; 13159 *) # Version 6 will use weak symbols 13160 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13161 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' 13162 ;; 13163 esac 13164 13165 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13166 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13167 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' 13168 ;; 13169 cxx*) 13170 # Compaq C++ 13171 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13172 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' 13173 13174 runpath_var=LD_RUN_PATH 13175 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13176 hardcode_libdir_separator_CXX=: 13177 13178 # Commands to make compiler produce verbose output that lists 13179 # what "hidden" libraries, object files and flags are used when 13180 # linking a shared library. 13181 # 13182 # There doesn't appear to be a way to prevent this compiler from 13183 # explicitly linking system object files so we need to strip them 13184 # from the output so that they don't get included in the library 13185 # dependencies. 13186 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' 13187 ;; 13188 xl*) 13189 # IBM XL 8.0 on PPC, with GNU ld 13190 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13191 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13192 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13193 if test "x$supports_anon_versioning" = xyes; then 13194 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13196 echo "local: *; };" >> $output_objdir/$libname.ver~ 13197 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13198 fi 13199 ;; 13200 *) 13201 case `$CC -V 2>&1 | sed 5q` in 13202 *Sun\ C*) 13203 # Sun C++ 5.9 13204 no_undefined_flag_CXX=' -zdefs' 13205 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13206 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' 13207 hardcode_libdir_flag_spec_CXX='-R$libdir' 13208 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' 13209 compiler_needs_object_CXX=yes 13210 13211 # Not sure whether something based on 13212 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13213 # would be better. 13214 output_verbose_link_cmd='echo' 13215 13216 # Archives containing C++ object files must be created using 13217 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13218 # necessary to make sure instantiated templates are included 13219 # in the archive. 13220 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13221 ;; 13222 esac 13223 ;; 13224 esac 13225 ;; 13226 13227 lynxos*) 13228 # FIXME: insert proper C++ library support 13229 ld_shlibs_CXX=no 13230 ;; 13231 13232 m88k*) 13233 # FIXME: insert proper C++ library support 13234 ld_shlibs_CXX=no 13235 ;; 13236 13237 mvs*) 13238 case $cc_basename in 13239 cxx*) 13240 # FIXME: insert proper C++ library support 13241 ld_shlibs_CXX=no 13242 ;; 13243 *) 13244 # FIXME: insert proper C++ library support 13245 ld_shlibs_CXX=no 13246 ;; 13247 esac 13248 ;; 13249 13250 netbsd*) 13251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13252 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13253 wlarc= 13254 hardcode_libdir_flag_spec_CXX='-R$libdir' 13255 hardcode_direct_CXX=yes 13256 hardcode_shlibpath_var_CXX=no 13257 fi 13258 # Workaround some broken pre-1.5 toolchains 13259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13260 ;; 13261 13262 *nto* | *qnx*) 13263 ld_shlibs_CXX=yes 13264 ;; 13265 13266 openbsd2*) 13267 # C++ shared libraries are fairly broken 13268 ld_shlibs_CXX=no 13269 ;; 13270 13271 openbsd*) 13272 if test -f /usr/libexec/ld.so; then 13273 hardcode_direct_CXX=yes 13274 hardcode_shlibpath_var_CXX=no 13275 hardcode_direct_absolute_CXX=yes 13276 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13279 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13280 export_dynamic_flag_spec_CXX='${wl}-E' 13281 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13282 fi 13283 output_verbose_link_cmd=echo 13284 else 13285 ld_shlibs_CXX=no 13286 fi 13287 ;; 13288 13289 osf3* | osf4* | osf5*) 13290 case $cc_basename in 13291 KCC*) 13292 # Kuck and Associates, Inc. (KAI) C++ Compiler 13293 13294 # KCC will only create a shared library if the output file 13295 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13296 # to its proper name (with version) after linking. 13297 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' 13298 13299 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13300 hardcode_libdir_separator_CXX=: 13301 13302 # Archives containing C++ object files must be created using 13303 # the KAI C++ compiler. 13304 case $host in 13305 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13306 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13307 esac 13308 ;; 13309 RCC*) 13310 # Rational C++ 2.4.1 13311 # FIXME: insert proper C++ library support 13312 ld_shlibs_CXX=no 13313 ;; 13314 cxx*) 13315 case $host in 13316 osf3*) 13317 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13318 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' 13319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13320 ;; 13321 *) 13322 allow_undefined_flag_CXX=' -expect_unresolved \*' 13323 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' 13324 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13325 echo "-hidden">> $lib.exp~ 13326 $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~ 13327 $RM $lib.exp' 13328 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13329 ;; 13330 esac 13331 13332 hardcode_libdir_separator_CXX=: 13333 13334 # Commands to make compiler produce verbose output that lists 13335 # what "hidden" libraries, object files and flags are used when 13336 # linking a shared library. 13337 # 13338 # There doesn't appear to be a way to prevent this compiler from 13339 # explicitly linking system object files so we need to strip them 13340 # from the output so that they don't get included in the library 13341 # dependencies. 13342 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' 13343 ;; 13344 *) 13345 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13346 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13347 case $host in 13348 osf3*) 13349 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' 13350 ;; 13351 *) 13352 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' 13353 ;; 13354 esac 13355 13356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13357 hardcode_libdir_separator_CXX=: 13358 13359 # Commands to make compiler produce verbose output that lists 13360 # what "hidden" libraries, object files and flags are used when 13361 # linking a shared library. 13362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13363 13364 else 13365 # FIXME: insert proper C++ library support 13366 ld_shlibs_CXX=no 13367 fi 13368 ;; 13369 esac 13370 ;; 13371 13372 psos*) 13373 # FIXME: insert proper C++ library support 13374 ld_shlibs_CXX=no 13375 ;; 13376 13377 sunos4*) 13378 case $cc_basename in 13379 CC*) 13380 # Sun C++ 4.x 13381 # FIXME: insert proper C++ library support 13382 ld_shlibs_CXX=no 13383 ;; 13384 lcc*) 13385 # Lucid 13386 # FIXME: insert proper C++ library support 13387 ld_shlibs_CXX=no 13388 ;; 13389 *) 13390 # FIXME: insert proper C++ library support 13391 ld_shlibs_CXX=no 13392 ;; 13393 esac 13394 ;; 13395 13396 solaris*) 13397 case $cc_basename in 13398 CC*) 13399 # Sun C++ 4.2, 5.x and Centerline C++ 13400 archive_cmds_need_lc_CXX=yes 13401 no_undefined_flag_CXX=' -zdefs' 13402 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13403 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13404 $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' 13405 13406 hardcode_libdir_flag_spec_CXX='-R$libdir' 13407 hardcode_shlibpath_var_CXX=no 13408 case $host_os in 13409 solaris2.[0-5] | solaris2.[0-5].*) ;; 13410 *) 13411 # The compiler driver will combine and reorder linker options, 13412 # but understands `-z linker_flag'. 13413 # Supported since Solaris 2.6 (maybe 2.5.1?) 13414 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13415 ;; 13416 esac 13417 link_all_deplibs_CXX=yes 13418 13419 output_verbose_link_cmd='echo' 13420 13421 # Archives containing C++ object files must be created using 13422 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13423 # necessary to make sure instantiated templates are included 13424 # in the archive. 13425 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13426 ;; 13427 gcx*) 13428 # Green Hills C++ Compiler 13429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13430 13431 # The C++ compiler must be used to create the archive. 13432 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13433 ;; 13434 *) 13435 # GNU C++ compiler with Solaris linker 13436 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13437 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13438 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13439 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13440 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13441 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13442 13443 # Commands to make compiler produce verbose output that lists 13444 # what "hidden" libraries, object files and flags are used when 13445 # linking a shared library. 13446 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13447 else 13448 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13449 # platform. 13450 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13451 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13452 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13453 13454 # Commands to make compiler produce verbose output that lists 13455 # what "hidden" libraries, object files and flags are used when 13456 # linking a shared library. 13457 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13458 fi 13459 13460 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13461 case $host_os in 13462 solaris2.[0-5] | solaris2.[0-5].*) ;; 13463 *) 13464 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13465 ;; 13466 esac 13467 fi 13468 ;; 13469 esac 13470 ;; 13471 13472 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13473 no_undefined_flag_CXX='${wl}-z,text' 13474 archive_cmds_need_lc_CXX=no 13475 hardcode_shlibpath_var_CXX=no 13476 runpath_var='LD_RUN_PATH' 13477 13478 case $cc_basename in 13479 CC*) 13480 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13481 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13482 ;; 13483 *) 13484 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13485 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13486 ;; 13487 esac 13488 ;; 13489 13490 sysv5* | sco3.2v5* | sco5v6*) 13491 # Note: We can NOT use -z defs as we might desire, because we do not 13492 # link with -lc, and that would cause any symbols used from libc to 13493 # always be unresolved, which means just about no library would 13494 # ever link correctly. If we're not using GNU ld we use -z text 13495 # though, which does catch some bad symbols but isn't as heavy-handed 13496 # as -z defs. 13497 no_undefined_flag_CXX='${wl}-z,text' 13498 allow_undefined_flag_CXX='${wl}-z,nodefs' 13499 archive_cmds_need_lc_CXX=no 13500 hardcode_shlibpath_var_CXX=no 13501 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13502 hardcode_libdir_separator_CXX=':' 13503 link_all_deplibs_CXX=yes 13504 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13505 runpath_var='LD_RUN_PATH' 13506 13507 case $cc_basename in 13508 CC*) 13509 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13510 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13511 ;; 13512 *) 13513 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13514 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13515 ;; 13516 esac 13517 ;; 13518 13519 tandem*) 13520 case $cc_basename in 13521 NCC*) 13522 # NonStop-UX NCC 3.20 13523 # FIXME: insert proper C++ library support 13524 ld_shlibs_CXX=no 13525 ;; 13526 *) 13527 # FIXME: insert proper C++ library support 13528 ld_shlibs_CXX=no 13529 ;; 13530 esac 13531 ;; 13532 13533 vxworks*) 13534 # FIXME: insert proper C++ library support 13535 ld_shlibs_CXX=no 13536 ;; 13537 13538 *) 13539 # FIXME: insert proper C++ library support 13540 ld_shlibs_CXX=no 13541 ;; 13542 esac 13543 13544 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13545$as_echo "$ld_shlibs_CXX" >&6; } 13546 test "$ld_shlibs_CXX" = no && can_build_shared=no 13547 13548 GCC_CXX="$GXX" 13549 LD_CXX="$LD" 13550 13551 ## CAVEAT EMPTOR: 13552 ## There is no encapsulation within the following macros, do not change 13553 ## the running order or otherwise move them around unless you know exactly 13554 ## what you are doing... 13555 # Dependencies to place before and after the object being linked: 13556predep_objects_CXX= 13557postdep_objects_CXX= 13558predeps_CXX= 13559postdeps_CXX= 13560compiler_lib_search_path_CXX= 13561 13562cat > conftest.$ac_ext <<_LT_EOF 13563class Foo 13564{ 13565public: 13566 Foo (void) { a = 0; } 13567private: 13568 int a; 13569}; 13570_LT_EOF 13571 13572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13573 (eval $ac_compile) 2>&5 13574 ac_status=$? 13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13576 (exit $ac_status); }; then 13577 # Parse the compiler output and extract the necessary 13578 # objects, libraries and library flags. 13579 13580 # Sentinel used to keep track of whether or not we are before 13581 # the conftest object file. 13582 pre_test_object_deps_done=no 13583 13584 for p in `eval "$output_verbose_link_cmd"`; do 13585 case $p in 13586 13587 -L* | -R* | -l*) 13588 # Some compilers place space between "-{L,R}" and the path. 13589 # Remove the space. 13590 if test $p = "-L" || 13591 test $p = "-R"; then 13592 prev=$p 13593 continue 13594 else 13595 prev= 13596 fi 13597 13598 if test "$pre_test_object_deps_done" = no; then 13599 case $p in 13600 -L* | -R*) 13601 # Internal compiler library paths should come after those 13602 # provided the user. The postdeps already come after the 13603 # user supplied libs so there is no need to process them. 13604 if test -z "$compiler_lib_search_path_CXX"; then 13605 compiler_lib_search_path_CXX="${prev}${p}" 13606 else 13607 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13608 fi 13609 ;; 13610 # The "-l" case would never come before the object being 13611 # linked, so don't bother handling this case. 13612 esac 13613 else 13614 if test -z "$postdeps_CXX"; then 13615 postdeps_CXX="${prev}${p}" 13616 else 13617 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13618 fi 13619 fi 13620 ;; 13621 13622 *.$objext) 13623 # This assumes that the test object file only shows up 13624 # once in the compiler output. 13625 if test "$p" = "conftest.$objext"; then 13626 pre_test_object_deps_done=yes 13627 continue 13628 fi 13629 13630 if test "$pre_test_object_deps_done" = no; then 13631 if test -z "$predep_objects_CXX"; then 13632 predep_objects_CXX="$p" 13633 else 13634 predep_objects_CXX="$predep_objects_CXX $p" 13635 fi 13636 else 13637 if test -z "$postdep_objects_CXX"; then 13638 postdep_objects_CXX="$p" 13639 else 13640 postdep_objects_CXX="$postdep_objects_CXX $p" 13641 fi 13642 fi 13643 ;; 13644 13645 *) ;; # Ignore the rest. 13646 13647 esac 13648 done 13649 13650 # Clean up. 13651 rm -f a.out a.exe 13652else 13653 echo "libtool.m4: error: problem compiling CXX test program" 13654fi 13655 13656$RM -f confest.$objext 13657 13658# PORTME: override above test on systems where it is broken 13659case $host_os in 13660interix[3-9]*) 13661 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13662 # hack all around it, let's just trust "g++" to DTRT. 13663 predep_objects_CXX= 13664 postdep_objects_CXX= 13665 postdeps_CXX= 13666 ;; 13667 13668linux*) 13669 case `$CC -V 2>&1 | sed 5q` in 13670 *Sun\ C*) 13671 # Sun C++ 5.9 13672 13673 # The more standards-conforming stlport4 library is 13674 # incompatible with the Cstd library. Avoid specifying 13675 # it if it's in CXXFLAGS. Ignore libCrun as 13676 # -library=stlport4 depends on it. 13677 case " $CXX $CXXFLAGS " in 13678 *" -library=stlport4 "*) 13679 solaris_use_stlport4=yes 13680 ;; 13681 esac 13682 13683 if test "$solaris_use_stlport4" != yes; then 13684 postdeps_CXX='-library=Cstd -library=Crun' 13685 fi 13686 ;; 13687 esac 13688 ;; 13689 13690solaris*) 13691 case $cc_basename in 13692 CC*) 13693 # The more standards-conforming stlport4 library is 13694 # incompatible with the Cstd library. Avoid specifying 13695 # it if it's in CXXFLAGS. Ignore libCrun as 13696 # -library=stlport4 depends on it. 13697 case " $CXX $CXXFLAGS " in 13698 *" -library=stlport4 "*) 13699 solaris_use_stlport4=yes 13700 ;; 13701 esac 13702 13703 # Adding this requires a known-good setup of shared libraries for 13704 # Sun compiler versions before 5.6, else PIC objects from an old 13705 # archive will be linked into the output, leading to subtle bugs. 13706 if test "$solaris_use_stlport4" != yes; then 13707 postdeps_CXX='-library=Cstd -library=Crun' 13708 fi 13709 ;; 13710 esac 13711 ;; 13712esac 13713 13714 13715case " $postdeps_CXX " in 13716*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13717esac 13718 compiler_lib_search_dirs_CXX= 13719if test -n "${compiler_lib_search_path_CXX}"; then 13720 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13721fi 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 lt_prog_compiler_wl_CXX= 13754lt_prog_compiler_pic_CXX= 13755lt_prog_compiler_static_CXX= 13756 13757{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13758$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13759 13760 # C++ specific cases for pic, static, wl, etc. 13761 if test "$GXX" = yes; then 13762 lt_prog_compiler_wl_CXX='-Wl,' 13763 lt_prog_compiler_static_CXX='-static' 13764 13765 case $host_os in 13766 aix*) 13767 # All AIX code is PIC. 13768 if test "$host_cpu" = ia64; then 13769 # AIX 5 now supports IA64 processor 13770 lt_prog_compiler_static_CXX='-Bstatic' 13771 fi 13772 ;; 13773 13774 amigaos*) 13775 case $host_cpu in 13776 powerpc) 13777 # see comment about AmigaOS4 .so support 13778 lt_prog_compiler_pic_CXX='-fPIC' 13779 ;; 13780 m68k) 13781 # FIXME: we need at least 68020 code to build shared libraries, but 13782 # adding the `-m68020' flag to GCC prevents building anything better, 13783 # like `-m68040'. 13784 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13785 ;; 13786 esac 13787 ;; 13788 13789 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13790 # PIC is the default for these OSes. 13791 ;; 13792 mingw* | cygwin* | os2* | pw32* | cegcc*) 13793 # This hack is so that the source file can tell whether it is being 13794 # built for inclusion in a dll (and should export symbols for example). 13795 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13796 # (--disable-auto-import) libraries 13797 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13798 ;; 13799 darwin* | rhapsody*) 13800 # PIC is the default on this platform 13801 # Common symbols not allowed in MH_DYLIB files 13802 lt_prog_compiler_pic_CXX='-fno-common' 13803 ;; 13804 *djgpp*) 13805 # DJGPP does not support shared libraries at all 13806 lt_prog_compiler_pic_CXX= 13807 ;; 13808 interix[3-9]*) 13809 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13810 # Instead, we relocate shared libraries at runtime. 13811 ;; 13812 sysv4*MP*) 13813 if test -d /usr/nec; then 13814 lt_prog_compiler_pic_CXX=-Kconform_pic 13815 fi 13816 ;; 13817 hpux*) 13818 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13819 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13820 # sets the default TLS model and affects inlining. 13821 case $host_cpu in 13822 hppa*64*) 13823 ;; 13824 *) 13825 lt_prog_compiler_pic_CXX='-fPIC' 13826 ;; 13827 esac 13828 ;; 13829 *qnx* | *nto*) 13830 # QNX uses GNU C++, but need to define -shared option too, otherwise 13831 # it will coredump. 13832 lt_prog_compiler_pic_CXX='-fPIC -shared' 13833 ;; 13834 *) 13835 lt_prog_compiler_pic_CXX='-fPIC' 13836 ;; 13837 esac 13838 else 13839 case $host_os in 13840 aix[4-9]*) 13841 # All AIX code is PIC. 13842 if test "$host_cpu" = ia64; then 13843 # AIX 5 now supports IA64 processor 13844 lt_prog_compiler_static_CXX='-Bstatic' 13845 else 13846 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13847 fi 13848 ;; 13849 chorus*) 13850 case $cc_basename in 13851 cxch68*) 13852 # Green Hills C++ Compiler 13853 # _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" 13854 ;; 13855 esac 13856 ;; 13857 dgux*) 13858 case $cc_basename in 13859 ec++*) 13860 lt_prog_compiler_pic_CXX='-KPIC' 13861 ;; 13862 ghcx*) 13863 # Green Hills C++ Compiler 13864 lt_prog_compiler_pic_CXX='-pic' 13865 ;; 13866 *) 13867 ;; 13868 esac 13869 ;; 13870 freebsd* | dragonfly*) 13871 # FreeBSD uses GNU C++ 13872 ;; 13873 hpux9* | hpux10* | hpux11*) 13874 case $cc_basename in 13875 CC*) 13876 lt_prog_compiler_wl_CXX='-Wl,' 13877 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13878 if test "$host_cpu" != ia64; then 13879 lt_prog_compiler_pic_CXX='+Z' 13880 fi 13881 ;; 13882 aCC*) 13883 lt_prog_compiler_wl_CXX='-Wl,' 13884 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13885 case $host_cpu in 13886 hppa*64*|ia64*) 13887 # +Z the default 13888 ;; 13889 *) 13890 lt_prog_compiler_pic_CXX='+Z' 13891 ;; 13892 esac 13893 ;; 13894 *) 13895 ;; 13896 esac 13897 ;; 13898 interix*) 13899 # This is c89, which is MS Visual C++ (no shared libs) 13900 # Anyone wants to do a port? 13901 ;; 13902 irix5* | irix6* | nonstopux*) 13903 case $cc_basename in 13904 CC*) 13905 lt_prog_compiler_wl_CXX='-Wl,' 13906 lt_prog_compiler_static_CXX='-non_shared' 13907 # CC pic flag -KPIC is the default. 13908 ;; 13909 *) 13910 ;; 13911 esac 13912 ;; 13913 linux* | k*bsd*-gnu) 13914 case $cc_basename in 13915 KCC*) 13916 # KAI C++ Compiler 13917 lt_prog_compiler_wl_CXX='--backend -Wl,' 13918 lt_prog_compiler_pic_CXX='-fPIC' 13919 ;; 13920 ecpc* ) 13921 # old Intel C++ for x86_64 which still supported -KPIC. 13922 lt_prog_compiler_wl_CXX='-Wl,' 13923 lt_prog_compiler_pic_CXX='-KPIC' 13924 lt_prog_compiler_static_CXX='-static' 13925 ;; 13926 icpc* ) 13927 # Intel C++, used to be incompatible with GCC. 13928 # ICC 10 doesn't accept -KPIC any more. 13929 lt_prog_compiler_wl_CXX='-Wl,' 13930 lt_prog_compiler_pic_CXX='-fPIC' 13931 lt_prog_compiler_static_CXX='-static' 13932 ;; 13933 pgCC* | pgcpp*) 13934 # Portland Group C++ compiler 13935 lt_prog_compiler_wl_CXX='-Wl,' 13936 lt_prog_compiler_pic_CXX='-fpic' 13937 lt_prog_compiler_static_CXX='-Bstatic' 13938 ;; 13939 cxx*) 13940 # Compaq C++ 13941 # Make sure the PIC flag is empty. It appears that all Alpha 13942 # Linux and Compaq Tru64 Unix objects are PIC. 13943 lt_prog_compiler_pic_CXX= 13944 lt_prog_compiler_static_CXX='-non_shared' 13945 ;; 13946 xlc* | xlC*) 13947 # IBM XL 8.0 on PPC 13948 lt_prog_compiler_wl_CXX='-Wl,' 13949 lt_prog_compiler_pic_CXX='-qpic' 13950 lt_prog_compiler_static_CXX='-qstaticlink' 13951 ;; 13952 *) 13953 case `$CC -V 2>&1 | sed 5q` in 13954 *Sun\ C*) 13955 # Sun C++ 5.9 13956 lt_prog_compiler_pic_CXX='-KPIC' 13957 lt_prog_compiler_static_CXX='-Bstatic' 13958 lt_prog_compiler_wl_CXX='-Qoption ld ' 13959 ;; 13960 esac 13961 ;; 13962 esac 13963 ;; 13964 lynxos*) 13965 ;; 13966 m88k*) 13967 ;; 13968 mvs*) 13969 case $cc_basename in 13970 cxx*) 13971 lt_prog_compiler_pic_CXX='-W c,exportall' 13972 ;; 13973 *) 13974 ;; 13975 esac 13976 ;; 13977 netbsd* | netbsdelf*-gnu) 13978 ;; 13979 *qnx* | *nto*) 13980 # QNX uses GNU C++, but need to define -shared option too, otherwise 13981 # it will coredump. 13982 lt_prog_compiler_pic_CXX='-fPIC -shared' 13983 ;; 13984 osf3* | osf4* | osf5*) 13985 case $cc_basename in 13986 KCC*) 13987 lt_prog_compiler_wl_CXX='--backend -Wl,' 13988 ;; 13989 RCC*) 13990 # Rational C++ 2.4.1 13991 lt_prog_compiler_pic_CXX='-pic' 13992 ;; 13993 cxx*) 13994 # Digital/Compaq C++ 13995 lt_prog_compiler_wl_CXX='-Wl,' 13996 # Make sure the PIC flag is empty. It appears that all Alpha 13997 # Linux and Compaq Tru64 Unix objects are PIC. 13998 lt_prog_compiler_pic_CXX= 13999 lt_prog_compiler_static_CXX='-non_shared' 14000 ;; 14001 *) 14002 ;; 14003 esac 14004 ;; 14005 psos*) 14006 ;; 14007 solaris*) 14008 case $cc_basename in 14009 CC*) 14010 # Sun C++ 4.2, 5.x and Centerline C++ 14011 lt_prog_compiler_pic_CXX='-KPIC' 14012 lt_prog_compiler_static_CXX='-Bstatic' 14013 lt_prog_compiler_wl_CXX='-Qoption ld ' 14014 ;; 14015 gcx*) 14016 # Green Hills C++ Compiler 14017 lt_prog_compiler_pic_CXX='-PIC' 14018 ;; 14019 *) 14020 ;; 14021 esac 14022 ;; 14023 sunos4*) 14024 case $cc_basename in 14025 CC*) 14026 # Sun C++ 4.x 14027 lt_prog_compiler_pic_CXX='-pic' 14028 lt_prog_compiler_static_CXX='-Bstatic' 14029 ;; 14030 lcc*) 14031 # Lucid 14032 lt_prog_compiler_pic_CXX='-pic' 14033 ;; 14034 *) 14035 ;; 14036 esac 14037 ;; 14038 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14039 case $cc_basename in 14040 CC*) 14041 lt_prog_compiler_wl_CXX='-Wl,' 14042 lt_prog_compiler_pic_CXX='-KPIC' 14043 lt_prog_compiler_static_CXX='-Bstatic' 14044 ;; 14045 esac 14046 ;; 14047 tandem*) 14048 case $cc_basename in 14049 NCC*) 14050 # NonStop-UX NCC 3.20 14051 lt_prog_compiler_pic_CXX='-KPIC' 14052 ;; 14053 *) 14054 ;; 14055 esac 14056 ;; 14057 vxworks*) 14058 ;; 14059 *) 14060 lt_prog_compiler_can_build_shared_CXX=no 14061 ;; 14062 esac 14063 fi 14064 14065case $host_os in 14066 # For platforms which do not support PIC, -DPIC is meaningless: 14067 *djgpp*) 14068 lt_prog_compiler_pic_CXX= 14069 ;; 14070 *) 14071 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14072 ;; 14073esac 14074{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14075$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14076 14077 14078 14079# 14080# Check to make sure the PIC flag actually works. 14081# 14082if test -n "$lt_prog_compiler_pic_CXX"; then 14083 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14084$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14085if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 14086 $as_echo_n "(cached) " >&6 14087else 14088 lt_cv_prog_compiler_pic_works_CXX=no 14089 ac_outfile=conftest.$ac_objext 14090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14091 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14092 # Insert the option either (1) after the last *FLAGS variable, or 14093 # (2) before a word containing "conftest.", or (3) at the end. 14094 # Note that $ac_compile itself does not contain backslashes and begins 14095 # with a dollar sign (not a hyphen), so the echo should work correctly. 14096 # The option is referenced via a variable to avoid confusing sed. 14097 lt_compile=`echo "$ac_compile" | $SED \ 14098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14100 -e 's:$: $lt_compiler_flag:'` 14101 (eval echo "\"\$as_me:14101: $lt_compile\"" >&5) 14102 (eval "$lt_compile" 2>conftest.err) 14103 ac_status=$? 14104 cat conftest.err >&5 14105 echo "$as_me:14105: \$? = $ac_status" >&5 14106 if (exit $ac_status) && test -s "$ac_outfile"; then 14107 # The compiler can only warn and ignore the option if not recognized 14108 # So say no if there are warnings other than the usual output. 14109 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14112 lt_cv_prog_compiler_pic_works_CXX=yes 14113 fi 14114 fi 14115 $RM conftest* 14116 14117fi 14118{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14119$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14120 14121if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14122 case $lt_prog_compiler_pic_CXX in 14123 "" | " "*) ;; 14124 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14125 esac 14126else 14127 lt_prog_compiler_pic_CXX= 14128 lt_prog_compiler_can_build_shared_CXX=no 14129fi 14130 14131fi 14132 14133 14134 14135# 14136# Check to make sure the static flag actually works. 14137# 14138wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14139{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14140$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14141if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 14142 $as_echo_n "(cached) " >&6 14143else 14144 lt_cv_prog_compiler_static_works_CXX=no 14145 save_LDFLAGS="$LDFLAGS" 14146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14147 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14149 # The linker can only warn and ignore the option if not recognized 14150 # So say no if there are warnings 14151 if test -s conftest.err; then 14152 # Append any errors to the config.log. 14153 cat conftest.err 1>&5 14154 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14156 if diff conftest.exp conftest.er2 >/dev/null; then 14157 lt_cv_prog_compiler_static_works_CXX=yes 14158 fi 14159 else 14160 lt_cv_prog_compiler_static_works_CXX=yes 14161 fi 14162 fi 14163 $RM -r conftest* 14164 LDFLAGS="$save_LDFLAGS" 14165 14166fi 14167{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14168$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14169 14170if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14171 : 14172else 14173 lt_prog_compiler_static_CXX= 14174fi 14175 14176 14177 14178 14179 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14180$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14181if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14182 $as_echo_n "(cached) " >&6 14183else 14184 lt_cv_prog_compiler_c_o_CXX=no 14185 $RM -r conftest 2>/dev/null 14186 mkdir conftest 14187 cd conftest 14188 mkdir out 14189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14190 14191 lt_compiler_flag="-o out/conftest2.$ac_objext" 14192 # Insert the option either (1) after the last *FLAGS variable, or 14193 # (2) before a word containing "conftest.", or (3) at the end. 14194 # Note that $ac_compile itself does not contain backslashes and begins 14195 # with a dollar sign (not a hyphen), so the echo should work correctly. 14196 lt_compile=`echo "$ac_compile" | $SED \ 14197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14199 -e 's:$: $lt_compiler_flag:'` 14200 (eval echo "\"\$as_me:14200: $lt_compile\"" >&5) 14201 (eval "$lt_compile" 2>out/conftest.err) 14202 ac_status=$? 14203 cat out/conftest.err >&5 14204 echo "$as_me:14204: \$? = $ac_status" >&5 14205 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14206 then 14207 # The compiler can only warn and ignore the option if not recognized 14208 # So say no if there are warnings 14209 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14212 lt_cv_prog_compiler_c_o_CXX=yes 14213 fi 14214 fi 14215 chmod u+w . 2>&5 14216 $RM conftest* 14217 # SGI C++ compiler will create directory out/ii_files/ for 14218 # template instantiation 14219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14220 $RM out/* && rmdir out 14221 cd .. 14222 $RM -r conftest 14223 $RM conftest* 14224 14225fi 14226{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14227$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14228 14229 14230 14231 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14232$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14233if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14234 $as_echo_n "(cached) " >&6 14235else 14236 lt_cv_prog_compiler_c_o_CXX=no 14237 $RM -r conftest 2>/dev/null 14238 mkdir conftest 14239 cd conftest 14240 mkdir out 14241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14242 14243 lt_compiler_flag="-o out/conftest2.$ac_objext" 14244 # Insert the option either (1) after the last *FLAGS variable, or 14245 # (2) before a word containing "conftest.", or (3) at the end. 14246 # Note that $ac_compile itself does not contain backslashes and begins 14247 # with a dollar sign (not a hyphen), so the echo should work correctly. 14248 lt_compile=`echo "$ac_compile" | $SED \ 14249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14251 -e 's:$: $lt_compiler_flag:'` 14252 (eval echo "\"\$as_me:14252: $lt_compile\"" >&5) 14253 (eval "$lt_compile" 2>out/conftest.err) 14254 ac_status=$? 14255 cat out/conftest.err >&5 14256 echo "$as_me:14256: \$? = $ac_status" >&5 14257 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14258 then 14259 # The compiler can only warn and ignore the option if not recognized 14260 # So say no if there are warnings 14261 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14262 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14263 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14264 lt_cv_prog_compiler_c_o_CXX=yes 14265 fi 14266 fi 14267 chmod u+w . 2>&5 14268 $RM conftest* 14269 # SGI C++ compiler will create directory out/ii_files/ for 14270 # template instantiation 14271 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14272 $RM out/* && rmdir out 14273 cd .. 14274 $RM -r conftest 14275 $RM conftest* 14276 14277fi 14278{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14279$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14280 14281 14282 14283 14284hard_links="nottested" 14285if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14286 # do not overwrite the value of need_locks provided by the user 14287 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14288$as_echo_n "checking if we can lock with hard links... " >&6; } 14289 hard_links=yes 14290 $RM conftest* 14291 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14292 touch conftest.a 14293 ln conftest.a conftest.b 2>&5 || hard_links=no 14294 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14295 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14296$as_echo "$hard_links" >&6; } 14297 if test "$hard_links" = no; then 14298 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14299$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14300 need_locks=warn 14301 fi 14302else 14303 need_locks=no 14304fi 14305 14306 14307 14308 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14309$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14310 14311 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14312 case $host_os in 14313 aix[4-9]*) 14314 # If we're using GNU nm, then we don't want the "-C" option. 14315 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14316 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14317 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' 14318 else 14319 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' 14320 fi 14321 ;; 14322 pw32*) 14323 export_symbols_cmds_CXX="$ltdll_cmds" 14324 ;; 14325 cygwin* | mingw* | cegcc*) 14326 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' 14327 ;; 14328 linux* | k*bsd*-gnu) 14329 link_all_deplibs_CXX=no 14330 ;; 14331 *) 14332 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14333 ;; 14334 esac 14335 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14336 14337{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14338$as_echo "$ld_shlibs_CXX" >&6; } 14339test "$ld_shlibs_CXX" = no && can_build_shared=no 14340 14341with_gnu_ld_CXX=$with_gnu_ld 14342 14343 14344 14345 14346 14347 14348# 14349# Do we need to explicitly link libc? 14350# 14351case "x$archive_cmds_need_lc_CXX" in 14352x|xyes) 14353 # Assume -lc should be added 14354 archive_cmds_need_lc_CXX=yes 14355 14356 if test "$enable_shared" = yes && test "$GCC" = yes; then 14357 case $archive_cmds_CXX in 14358 *'~'*) 14359 # FIXME: we may have to deal with multi-command sequences. 14360 ;; 14361 '$CC '*) 14362 # Test whether the compiler implicitly links with -lc since on some 14363 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14364 # to ld, don't add -lc before -lgcc. 14365 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14366$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14367 $RM conftest* 14368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14369 14370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14371 (eval $ac_compile) 2>&5 14372 ac_status=$? 14373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14374 (exit $ac_status); } 2>conftest.err; then 14375 soname=conftest 14376 lib=conftest 14377 libobjs=conftest.$ac_objext 14378 deplibs= 14379 wl=$lt_prog_compiler_wl_CXX 14380 pic_flag=$lt_prog_compiler_pic_CXX 14381 compiler_flags=-v 14382 linker_flags=-v 14383 verstring= 14384 output_objdir=. 14385 libname=conftest 14386 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14387 allow_undefined_flag_CXX= 14388 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 14389 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14390 ac_status=$? 14391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14392 (exit $ac_status); } 14393 then 14394 archive_cmds_need_lc_CXX=no 14395 else 14396 archive_cmds_need_lc_CXX=yes 14397 fi 14398 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14399 else 14400 cat conftest.err 1>&5 14401 fi 14402 $RM conftest* 14403 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14404$as_echo "$archive_cmds_need_lc_CXX" >&6; } 14405 ;; 14406 esac 14407 fi 14408 ;; 14409esac 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14475$as_echo_n "checking dynamic linker characteristics... " >&6; } 14476 14477library_names_spec= 14478libname_spec='lib$name' 14479soname_spec= 14480shrext_cmds=".so" 14481postinstall_cmds= 14482postuninstall_cmds= 14483finish_cmds= 14484finish_eval= 14485shlibpath_var= 14486shlibpath_overrides_runpath=unknown 14487version_type=none 14488dynamic_linker="$host_os ld.so" 14489sys_lib_dlsearch_path_spec="/lib /usr/lib" 14490need_lib_prefix=unknown 14491hardcode_into_libs=no 14492 14493# when you set need_version to no, make sure it does not cause -set_version 14494# flags to be left without arguments 14495need_version=unknown 14496 14497case $host_os in 14498aix3*) 14499 version_type=linux 14500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14501 shlibpath_var=LIBPATH 14502 14503 # AIX 3 has no versioning support, so we append a major version to the name. 14504 soname_spec='${libname}${release}${shared_ext}$major' 14505 ;; 14506 14507aix[4-9]*) 14508 version_type=linux 14509 need_lib_prefix=no 14510 need_version=no 14511 hardcode_into_libs=yes 14512 if test "$host_cpu" = ia64; then 14513 # AIX 5 supports IA64 14514 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14515 shlibpath_var=LD_LIBRARY_PATH 14516 else 14517 # With GCC up to 2.95.x, collect2 would create an import file 14518 # for dependence libraries. The import file would start with 14519 # the line `#! .'. This would cause the generated library to 14520 # depend on `.', always an invalid library. This was fixed in 14521 # development snapshots of GCC prior to 3.0. 14522 case $host_os in 14523 aix4 | aix4.[01] | aix4.[01].*) 14524 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14525 echo ' yes ' 14526 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14527 : 14528 else 14529 can_build_shared=no 14530 fi 14531 ;; 14532 esac 14533 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14534 # soname into executable. Probably we can add versioning support to 14535 # collect2, so additional links can be useful in future. 14536 if test "$aix_use_runtimelinking" = yes; then 14537 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14538 # instead of lib<name>.a to let people know that these are not 14539 # typical AIX shared libraries. 14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14541 else 14542 # We preserve .a as extension for shared libraries through AIX4.2 14543 # and later when we are not doing run time linking. 14544 library_names_spec='${libname}${release}.a $libname.a' 14545 soname_spec='${libname}${release}${shared_ext}$major' 14546 fi 14547 shlibpath_var=LIBPATH 14548 fi 14549 ;; 14550 14551amigaos*) 14552 case $host_cpu in 14553 powerpc) 14554 # Since July 2007 AmigaOS4 officially supports .so libraries. 14555 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14557 ;; 14558 m68k) 14559 library_names_spec='$libname.ixlibrary $libname.a' 14560 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14561 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' 14562 ;; 14563 esac 14564 ;; 14565 14566beos*) 14567 library_names_spec='${libname}${shared_ext}' 14568 dynamic_linker="$host_os ld.so" 14569 shlibpath_var=LIBRARY_PATH 14570 ;; 14571 14572bsdi[45]*) 14573 version_type=linux 14574 need_version=no 14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14576 soname_spec='${libname}${release}${shared_ext}$major' 14577 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14578 shlibpath_var=LD_LIBRARY_PATH 14579 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14580 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14581 # the default ld.so.conf also contains /usr/contrib/lib and 14582 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14583 # libtool to hard-code these into programs 14584 ;; 14585 14586cygwin* | mingw* | pw32* | cegcc*) 14587 version_type=windows 14588 shrext_cmds=".dll" 14589 need_version=no 14590 need_lib_prefix=no 14591 14592 case $GCC,$host_os in 14593 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14594 library_names_spec='$libname.dll.a' 14595 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14596 postinstall_cmds='base_file=`basename \${file}`~ 14597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14598 dldir=$destdir/`dirname \$dlpath`~ 14599 test -d \$dldir || mkdir -p \$dldir~ 14600 $install_prog $dir/$dlname \$dldir/$dlname~ 14601 chmod a+x \$dldir/$dlname~ 14602 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14603 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14604 fi' 14605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14606 dlpath=$dir/\$dldll~ 14607 $RM \$dlpath' 14608 shlibpath_overrides_runpath=yes 14609 14610 case $host_os in 14611 cygwin*) 14612 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14613 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14614 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14615 ;; 14616 mingw* | cegcc*) 14617 # MinGW DLLs use traditional 'lib' prefix 14618 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14619 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14620 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14621 # It is most probably a Windows format PATH printed by 14622 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14623 # path with ; separators, and with drive letters. We can handle the 14624 # drive letters (cygwin fileutils understands them), so leave them, 14625 # especially as we might pass files found there to a mingw objdump, 14626 # which wouldn't understand a cygwinified path. Ahh. 14627 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14628 else 14629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14630 fi 14631 ;; 14632 pw32*) 14633 # pw32 DLLs use 'pw' prefix rather than 'lib' 14634 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14635 ;; 14636 esac 14637 ;; 14638 14639 *) 14640 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14641 ;; 14642 esac 14643 dynamic_linker='Win32 ld.exe' 14644 # FIXME: first we should search . and the directory the executable is in 14645 shlibpath_var=PATH 14646 ;; 14647 14648darwin* | rhapsody*) 14649 dynamic_linker="$host_os dyld" 14650 version_type=darwin 14651 need_lib_prefix=no 14652 need_version=no 14653 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14654 soname_spec='${libname}${release}${major}$shared_ext' 14655 shlibpath_overrides_runpath=yes 14656 shlibpath_var=DYLD_LIBRARY_PATH 14657 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14658 14659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14660 ;; 14661 14662dgux*) 14663 version_type=linux 14664 need_lib_prefix=no 14665 need_version=no 14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14667 soname_spec='${libname}${release}${shared_ext}$major' 14668 shlibpath_var=LD_LIBRARY_PATH 14669 ;; 14670 14671freebsd1*) 14672 dynamic_linker=no 14673 ;; 14674 14675freebsd* | dragonfly*) 14676 # DragonFly does not have aout. When/if they implement a new 14677 # versioning mechanism, adjust this. 14678 if test -x /usr/bin/objformat; then 14679 objformat=`/usr/bin/objformat` 14680 else 14681 case $host_os in 14682 freebsd[123]*) objformat=aout ;; 14683 *) objformat=elf ;; 14684 esac 14685 fi 14686 version_type=freebsd-$objformat 14687 case $version_type in 14688 freebsd-elf*) 14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14690 need_version=no 14691 need_lib_prefix=no 14692 ;; 14693 freebsd-*) 14694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14695 need_version=yes 14696 ;; 14697 esac 14698 shlibpath_var=LD_LIBRARY_PATH 14699 case $host_os in 14700 freebsd2*) 14701 shlibpath_overrides_runpath=yes 14702 ;; 14703 freebsd3.[01]* | freebsdelf3.[01]*) 14704 shlibpath_overrides_runpath=yes 14705 hardcode_into_libs=yes 14706 ;; 14707 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14708 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14709 shlibpath_overrides_runpath=no 14710 hardcode_into_libs=yes 14711 ;; 14712 *) # from 4.6 on, and DragonFly 14713 shlibpath_overrides_runpath=yes 14714 hardcode_into_libs=yes 14715 ;; 14716 esac 14717 ;; 14718 14719gnu*) 14720 version_type=linux 14721 need_lib_prefix=no 14722 need_version=no 14723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14724 soname_spec='${libname}${release}${shared_ext}$major' 14725 shlibpath_var=LD_LIBRARY_PATH 14726 hardcode_into_libs=yes 14727 ;; 14728 14729hpux9* | hpux10* | hpux11*) 14730 # Give a soname corresponding to the major version so that dld.sl refuses to 14731 # link against other versions. 14732 version_type=sunos 14733 need_lib_prefix=no 14734 need_version=no 14735 case $host_cpu in 14736 ia64*) 14737 shrext_cmds='.so' 14738 hardcode_into_libs=yes 14739 dynamic_linker="$host_os dld.so" 14740 shlibpath_var=LD_LIBRARY_PATH 14741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14743 soname_spec='${libname}${release}${shared_ext}$major' 14744 if test "X$HPUX_IA64_MODE" = X32; then 14745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14746 else 14747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14748 fi 14749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14750 ;; 14751 hppa*64*) 14752 shrext_cmds='.sl' 14753 hardcode_into_libs=yes 14754 dynamic_linker="$host_os dld.sl" 14755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14758 soname_spec='${libname}${release}${shared_ext}$major' 14759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14761 ;; 14762 *) 14763 shrext_cmds='.sl' 14764 dynamic_linker="$host_os dld.sl" 14765 shlibpath_var=SHLIB_PATH 14766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14768 soname_spec='${libname}${release}${shared_ext}$major' 14769 ;; 14770 esac 14771 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14772 postinstall_cmds='chmod 555 $lib' 14773 ;; 14774 14775interix[3-9]*) 14776 version_type=linux 14777 need_lib_prefix=no 14778 need_version=no 14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14780 soname_spec='${libname}${release}${shared_ext}$major' 14781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14782 shlibpath_var=LD_LIBRARY_PATH 14783 shlibpath_overrides_runpath=no 14784 hardcode_into_libs=yes 14785 ;; 14786 14787irix5* | irix6* | nonstopux*) 14788 case $host_os in 14789 nonstopux*) version_type=nonstopux ;; 14790 *) 14791 if test "$lt_cv_prog_gnu_ld" = yes; then 14792 version_type=linux 14793 else 14794 version_type=irix 14795 fi ;; 14796 esac 14797 need_lib_prefix=no 14798 need_version=no 14799 soname_spec='${libname}${release}${shared_ext}$major' 14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14801 case $host_os in 14802 irix5* | nonstopux*) 14803 libsuff= shlibsuff= 14804 ;; 14805 *) 14806 case $LD in # libtool.m4 will add one of these switches to LD 14807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14808 libsuff= shlibsuff= libmagic=32-bit;; 14809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14810 libsuff=32 shlibsuff=N32 libmagic=N32;; 14811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14812 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14813 *) libsuff= shlibsuff= libmagic=never-match;; 14814 esac 14815 ;; 14816 esac 14817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14818 shlibpath_overrides_runpath=no 14819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14821 hardcode_into_libs=yes 14822 ;; 14823 14824# No shared lib support for Linux oldld, aout, or coff. 14825linux*oldld* | linux*aout* | linux*coff*) 14826 dynamic_linker=no 14827 ;; 14828 14829# This must be Linux ELF. 14830linux* | k*bsd*-gnu) 14831 version_type=linux 14832 need_lib_prefix=no 14833 need_version=no 14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14835 soname_spec='${libname}${release}${shared_ext}$major' 14836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14837 shlibpath_var=LD_LIBRARY_PATH 14838 shlibpath_overrides_runpath=no 14839 # Some binutils ld are patched to set DT_RUNPATH 14840 save_LDFLAGS=$LDFLAGS 14841 save_libdir=$libdir 14842 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14843 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14844 cat >conftest.$ac_ext <<_ACEOF 14845/* confdefs.h. */ 14846_ACEOF 14847cat confdefs.h >>conftest.$ac_ext 14848cat >>conftest.$ac_ext <<_ACEOF 14849/* end confdefs.h. */ 14850 14851int 14852main () 14853{ 14854 14855 ; 14856 return 0; 14857} 14858_ACEOF 14859rm -f conftest.$ac_objext conftest$ac_exeext 14860if { (ac_try="$ac_link" 14861case "(($ac_try" in 14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14863 *) ac_try_echo=$ac_try;; 14864esac 14865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 14866$as_echo "$ac_try_echo") >&5 14867 (eval "$ac_link") 2>conftest.er1 14868 ac_status=$? 14869 grep -v '^ *+' conftest.er1 >conftest.err 14870 rm -f conftest.er1 14871 cat conftest.err >&5 14872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 14873 (exit $ac_status); } && { 14874 test -z "$ac_cxx_werror_flag" || 14875 test ! -s conftest.err 14876 } && test -s conftest$ac_exeext && { 14877 test "$cross_compiling" = yes || 14878 $as_test_x conftest$ac_exeext 14879 }; then 14880 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 14881 shlibpath_overrides_runpath=yes 14882fi 14883 14884else 14885 $as_echo "$as_me: failed program was:" >&5 14886sed 's/^/| /' conftest.$ac_ext >&5 14887 14888 14889fi 14890 14891rm -rf conftest.dSYM 14892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14893 conftest$ac_exeext conftest.$ac_ext 14894 LDFLAGS=$save_LDFLAGS 14895 libdir=$save_libdir 14896 14897 # This implies no fast_install, which is unacceptable. 14898 # Some rework will be needed to allow for fast_install 14899 # before this can be enabled. 14900 hardcode_into_libs=yes 14901 14902 # Append ld.so.conf contents to the search path 14903 if test -f /etc/ld.so.conf; then 14904 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' ' '` 14905 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14906 fi 14907 14908 # We used to test for /lib/ld.so.1 and disable shared libraries on 14909 # powerpc, because MkLinux only supported shared libraries with the 14910 # GNU dynamic linker. Since this was broken with cross compilers, 14911 # most powerpc-linux boxes support dynamic linking these days and 14912 # people can always --disable-shared, the test was removed, and we 14913 # assume the GNU/Linux dynamic linker is in use. 14914 dynamic_linker='GNU/Linux ld.so' 14915 ;; 14916 14917netbsdelf*-gnu) 14918 version_type=linux 14919 need_lib_prefix=no 14920 need_version=no 14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14922 soname_spec='${libname}${release}${shared_ext}$major' 14923 shlibpath_var=LD_LIBRARY_PATH 14924 shlibpath_overrides_runpath=no 14925 hardcode_into_libs=yes 14926 dynamic_linker='NetBSD ld.elf_so' 14927 ;; 14928 14929netbsd*) 14930 version_type=sunos 14931 need_lib_prefix=no 14932 need_version=no 14933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14936 dynamic_linker='NetBSD (a.out) ld.so' 14937 else 14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14939 soname_spec='${libname}${release}${shared_ext}$major' 14940 dynamic_linker='NetBSD ld.elf_so' 14941 fi 14942 shlibpath_var=LD_LIBRARY_PATH 14943 shlibpath_overrides_runpath=yes 14944 hardcode_into_libs=yes 14945 ;; 14946 14947newsos6) 14948 version_type=linux 14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14950 shlibpath_var=LD_LIBRARY_PATH 14951 shlibpath_overrides_runpath=yes 14952 ;; 14953 14954*nto* | *qnx*) 14955 version_type=qnx 14956 need_lib_prefix=no 14957 need_version=no 14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14959 soname_spec='${libname}${release}${shared_ext}$major' 14960 shlibpath_var=LD_LIBRARY_PATH 14961 shlibpath_overrides_runpath=no 14962 hardcode_into_libs=yes 14963 dynamic_linker='ldqnx.so' 14964 ;; 14965 14966openbsd*) 14967 version_type=sunos 14968 sys_lib_dlsearch_path_spec="/usr/lib" 14969 need_lib_prefix=no 14970 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14971 case $host_os in 14972 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14973 *) need_version=no ;; 14974 esac 14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14977 shlibpath_var=LD_LIBRARY_PATH 14978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14979 case $host_os in 14980 openbsd2.[89] | openbsd2.[89].*) 14981 shlibpath_overrides_runpath=no 14982 ;; 14983 *) 14984 shlibpath_overrides_runpath=yes 14985 ;; 14986 esac 14987 else 14988 shlibpath_overrides_runpath=yes 14989 fi 14990 ;; 14991 14992os2*) 14993 libname_spec='$name' 14994 shrext_cmds=".dll" 14995 need_lib_prefix=no 14996 library_names_spec='$libname${shared_ext} $libname.a' 14997 dynamic_linker='OS/2 ld.exe' 14998 shlibpath_var=LIBPATH 14999 ;; 15000 15001osf3* | osf4* | osf5*) 15002 version_type=osf 15003 need_lib_prefix=no 15004 need_version=no 15005 soname_spec='${libname}${release}${shared_ext}$major' 15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15007 shlibpath_var=LD_LIBRARY_PATH 15008 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15009 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15010 ;; 15011 15012rdos*) 15013 dynamic_linker=no 15014 ;; 15015 15016solaris*) 15017 version_type=linux 15018 need_lib_prefix=no 15019 need_version=no 15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15021 soname_spec='${libname}${release}${shared_ext}$major' 15022 shlibpath_var=LD_LIBRARY_PATH 15023 shlibpath_overrides_runpath=yes 15024 hardcode_into_libs=yes 15025 # ldd complains unless libraries are executable 15026 postinstall_cmds='chmod +x $lib' 15027 ;; 15028 15029sunos4*) 15030 version_type=sunos 15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15032 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15033 shlibpath_var=LD_LIBRARY_PATH 15034 shlibpath_overrides_runpath=yes 15035 if test "$with_gnu_ld" = yes; then 15036 need_lib_prefix=no 15037 fi 15038 need_version=yes 15039 ;; 15040 15041sysv4 | sysv4.3*) 15042 version_type=linux 15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15044 soname_spec='${libname}${release}${shared_ext}$major' 15045 shlibpath_var=LD_LIBRARY_PATH 15046 case $host_vendor in 15047 sni) 15048 shlibpath_overrides_runpath=no 15049 need_lib_prefix=no 15050 runpath_var=LD_RUN_PATH 15051 ;; 15052 siemens) 15053 need_lib_prefix=no 15054 ;; 15055 motorola) 15056 need_lib_prefix=no 15057 need_version=no 15058 shlibpath_overrides_runpath=no 15059 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15060 ;; 15061 esac 15062 ;; 15063 15064sysv4*MP*) 15065 if test -d /usr/nec ;then 15066 version_type=linux 15067 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15068 soname_spec='$libname${shared_ext}.$major' 15069 shlibpath_var=LD_LIBRARY_PATH 15070 fi 15071 ;; 15072 15073sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15074 version_type=freebsd-elf 15075 need_lib_prefix=no 15076 need_version=no 15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15078 soname_spec='${libname}${release}${shared_ext}$major' 15079 shlibpath_var=LD_LIBRARY_PATH 15080 shlibpath_overrides_runpath=yes 15081 hardcode_into_libs=yes 15082 if test "$with_gnu_ld" = yes; then 15083 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15084 else 15085 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15086 case $host_os in 15087 sco3.2v5*) 15088 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15089 ;; 15090 esac 15091 fi 15092 sys_lib_dlsearch_path_spec='/usr/lib' 15093 ;; 15094 15095tpf*) 15096 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15097 version_type=linux 15098 need_lib_prefix=no 15099 need_version=no 15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15101 shlibpath_var=LD_LIBRARY_PATH 15102 shlibpath_overrides_runpath=no 15103 hardcode_into_libs=yes 15104 ;; 15105 15106uts4*) 15107 version_type=linux 15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15109 soname_spec='${libname}${release}${shared_ext}$major' 15110 shlibpath_var=LD_LIBRARY_PATH 15111 ;; 15112 15113*) 15114 dynamic_linker=no 15115 ;; 15116esac 15117{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15118$as_echo "$dynamic_linker" >&6; } 15119test "$dynamic_linker" = no && can_build_shared=no 15120 15121variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15122if test "$GCC" = yes; then 15123 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15124fi 15125 15126if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15127 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15128fi 15129if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15130 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15131fi 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15169$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15170hardcode_action_CXX= 15171if test -n "$hardcode_libdir_flag_spec_CXX" || 15172 test -n "$runpath_var_CXX" || 15173 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15174 15175 # We can hardcode non-existent directories. 15176 if test "$hardcode_direct_CXX" != no && 15177 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15178 # have to relink, otherwise we might link with an installed library 15179 # when we should be linking with a yet-to-be-installed one 15180 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15181 test "$hardcode_minus_L_CXX" != no; then 15182 # Linking always hardcodes the temporary library directory. 15183 hardcode_action_CXX=relink 15184 else 15185 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15186 hardcode_action_CXX=immediate 15187 fi 15188else 15189 # We cannot hardcode anything, or else we can only hardcode existing 15190 # directories. 15191 hardcode_action_CXX=unsupported 15192fi 15193{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15194$as_echo "$hardcode_action_CXX" >&6; } 15195 15196if test "$hardcode_action_CXX" = relink || 15197 test "$inherit_rpath_CXX" = yes; then 15198 # Fast installation is not supported 15199 enable_fast_install=no 15200elif test "$shlibpath_overrides_runpath" = yes || 15201 test "$enable_shared" = no; then 15202 # Fast installation is not necessary 15203 enable_fast_install=needless 15204fi 15205 15206 15207 15208 15209 15210 15211 15212 fi # test -n "$compiler" 15213 15214 CC=$lt_save_CC 15215 LDCXX=$LD 15216 LD=$lt_save_LD 15217 GCC=$lt_save_GCC 15218 with_gnu_ld=$lt_save_with_gnu_ld 15219 lt_cv_path_LDCXX=$lt_cv_path_LD 15220 lt_cv_path_LD=$lt_save_path_LD 15221 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15222 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15223fi # test "$_lt_caught_CXX_error" != yes 15224 15225ac_ext=c 15226ac_cpp='$CPP $CPPFLAGS' 15227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15229ac_compiler_gnu=$ac_cv_c_compiler_gnu 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 ac_config_commands="$ac_config_commands libtool" 15244 15245 15246 15247 15248# Only expand once: 15249 15250 15251# Find a good install program. We prefer a C program (faster), 15252# so one script is as good as another. But avoid the broken or 15253# incompatible versions: 15254# SysV /etc/install, /usr/sbin/install 15255# SunOS /usr/etc/install 15256# IRIX /sbin/install 15257# AIX /bin/install 15258# AmigaOS /C/install, which installs bootblocks on floppy discs 15259# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 15260# AFS /usr/afsws/bin/install, which mishandles nonexistent args 15261# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 15262# OS/2's system install, which has a completely different semantic 15263# ./install, which can be erroneously created by make from ./install.sh. 15264# Reject install programs that cannot install multiple files. 15265{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 15266$as_echo_n "checking for a BSD-compatible install... " >&6; } 15267if test -z "$INSTALL"; then 15268if test "${ac_cv_path_install+set}" = set; then 15269 $as_echo_n "(cached) " >&6 15270else 15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15272for as_dir in $PATH 15273do 15274 IFS=$as_save_IFS 15275 test -z "$as_dir" && as_dir=. 15276 # Account for people who put trailing slashes in PATH elements. 15277case $as_dir/ in 15278 ./ | .// | /cC/* | \ 15279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 15280 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 15281 /usr/ucb/* ) ;; 15282 *) 15283 # OSF1 and SCO ODT 3.0 have their own names for install. 15284 # Don't use installbsd from OSF since it installs stuff as root 15285 # by default. 15286 for ac_prog in ginstall scoinst install; do 15287 for ac_exec_ext in '' $ac_executable_extensions; do 15288 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 15289 if test $ac_prog = install && 15290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15291 # AIX install. It has an incompatible calling convention. 15292 : 15293 elif test $ac_prog = install && 15294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 15295 # program-specific install script used by HP pwplus--don't use. 15296 : 15297 else 15298 rm -rf conftest.one conftest.two conftest.dir 15299 echo one > conftest.one 15300 echo two > conftest.two 15301 mkdir conftest.dir 15302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 15303 test -s conftest.one && test -s conftest.two && 15304 test -s conftest.dir/conftest.one && 15305 test -s conftest.dir/conftest.two 15306 then 15307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 15308 break 3 15309 fi 15310 fi 15311 fi 15312 done 15313 done 15314 ;; 15315esac 15316 15317done 15318IFS=$as_save_IFS 15319 15320rm -rf conftest.one conftest.two conftest.dir 15321 15322fi 15323 if test "${ac_cv_path_install+set}" = set; then 15324 INSTALL=$ac_cv_path_install 15325 else 15326 # As a last resort, use the slow shell script. Don't cache a 15327 # value for INSTALL within a source directory, because that will 15328 # break other packages using the cache if that directory is 15329 # removed, or if the value is a relative name. 15330 INSTALL=$ac_install_sh 15331 fi 15332fi 15333{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 15334$as_echo "$INSTALL" >&6; } 15335 15336# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 15337# It thinks the first close brace ends the variable substitution. 15338test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 15339 15340test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 15341 15342test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 15343 15344{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 15345$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 15346set x ${MAKE-make} 15347ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 15348if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 15349 $as_echo_n "(cached) " >&6 15350else 15351 cat >conftest.make <<\_ACEOF 15352SHELL = /bin/sh 15353all: 15354 @echo '@@@%%%=$(MAKE)=@@@%%%' 15355_ACEOF 15356# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 15357case `${MAKE-make} -f conftest.make 2>/dev/null` in 15358 *@@@%%%=?*=@@@%%%*) 15359 eval ac_cv_prog_make_${ac_make}_set=yes;; 15360 *) 15361 eval ac_cv_prog_make_${ac_make}_set=no;; 15362esac 15363rm -f conftest.make 15364fi 15365if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 15366 { $as_echo "$as_me:$LINENO: result: yes" >&5 15367$as_echo "yes" >&6; } 15368 SET_MAKE= 15369else 15370 { $as_echo "$as_me:$LINENO: result: no" >&5 15371$as_echo "no" >&6; } 15372 SET_MAKE="MAKE=${MAKE-make}" 15373fi 15374 15375 15376 15377{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 15378$as_echo_n "checking for dlopen in -ldl... " >&6; } 15379if test "${ac_cv_lib_dl_dlopen+set}" = set; then 15380 $as_echo_n "(cached) " >&6 15381else 15382 ac_check_lib_save_LIBS=$LIBS 15383LIBS="-ldl $LIBS" 15384cat >conftest.$ac_ext <<_ACEOF 15385/* confdefs.h. */ 15386_ACEOF 15387cat confdefs.h >>conftest.$ac_ext 15388cat >>conftest.$ac_ext <<_ACEOF 15389/* end confdefs.h. */ 15390 15391/* Override any GCC internal prototype to avoid an error. 15392 Use char because int might match the return type of a GCC 15393 builtin and then its argument prototype would still apply. */ 15394#ifdef __cplusplus 15395extern "C" 15396#endif 15397char dlopen (); 15398int 15399main () 15400{ 15401return dlopen (); 15402 ; 15403 return 0; 15404} 15405_ACEOF 15406rm -f conftest.$ac_objext conftest$ac_exeext 15407if { (ac_try="$ac_link" 15408case "(($ac_try" in 15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15410 *) ac_try_echo=$ac_try;; 15411esac 15412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15413$as_echo "$ac_try_echo") >&5 15414 (eval "$ac_link") 2>conftest.er1 15415 ac_status=$? 15416 grep -v '^ *+' conftest.er1 >conftest.err 15417 rm -f conftest.er1 15418 cat conftest.err >&5 15419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15420 (exit $ac_status); } && { 15421 test -z "$ac_c_werror_flag" || 15422 test ! -s conftest.err 15423 } && test -s conftest$ac_exeext && { 15424 test "$cross_compiling" = yes || 15425 $as_test_x conftest$ac_exeext 15426 }; then 15427 ac_cv_lib_dl_dlopen=yes 15428else 15429 $as_echo "$as_me: failed program was:" >&5 15430sed 's/^/| /' conftest.$ac_ext >&5 15431 15432 ac_cv_lib_dl_dlopen=no 15433fi 15434 15435rm -rf conftest.dSYM 15436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15437 conftest$ac_exeext conftest.$ac_ext 15438LIBS=$ac_check_lib_save_LIBS 15439fi 15440{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 15441$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15442if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 15443 cat >>confdefs.h <<_ACEOF 15444#define HAVE_LIBDL 1 15445_ACEOF 15446 15447 LIBS="-ldl $LIBS" 15448 15449else 15450 15451{ $as_echo "$as_me:$LINENO: checking for dlopen in -lc" >&5 15452$as_echo_n "checking for dlopen in -lc... " >&6; } 15453if test "${ac_cv_lib_c_dlopen+set}" = set; then 15454 $as_echo_n "(cached) " >&6 15455else 15456 ac_check_lib_save_LIBS=$LIBS 15457LIBS="-lc $LIBS" 15458cat >conftest.$ac_ext <<_ACEOF 15459/* confdefs.h. */ 15460_ACEOF 15461cat confdefs.h >>conftest.$ac_ext 15462cat >>conftest.$ac_ext <<_ACEOF 15463/* end confdefs.h. */ 15464 15465/* Override any GCC internal prototype to avoid an error. 15466 Use char because int might match the return type of a GCC 15467 builtin and then its argument prototype would still apply. */ 15468#ifdef __cplusplus 15469extern "C" 15470#endif 15471char dlopen (); 15472int 15473main () 15474{ 15475return dlopen (); 15476 ; 15477 return 0; 15478} 15479_ACEOF 15480rm -f conftest.$ac_objext conftest$ac_exeext 15481if { (ac_try="$ac_link" 15482case "(($ac_try" in 15483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15484 *) ac_try_echo=$ac_try;; 15485esac 15486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15487$as_echo "$ac_try_echo") >&5 15488 (eval "$ac_link") 2>conftest.er1 15489 ac_status=$? 15490 grep -v '^ *+' conftest.er1 >conftest.err 15491 rm -f conftest.er1 15492 cat conftest.err >&5 15493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15494 (exit $ac_status); } && { 15495 test -z "$ac_c_werror_flag" || 15496 test ! -s conftest.err 15497 } && test -s conftest$ac_exeext && { 15498 test "$cross_compiling" = yes || 15499 $as_test_x conftest$ac_exeext 15500 }; then 15501 ac_cv_lib_c_dlopen=yes 15502else 15503 $as_echo "$as_me: failed program was:" >&5 15504sed 's/^/| /' conftest.$ac_ext >&5 15505 15506 ac_cv_lib_c_dlopen=no 15507fi 15508 15509rm -rf conftest.dSYM 15510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15511 conftest$ac_exeext conftest.$ac_ext 15512LIBS=$ac_check_lib_save_LIBS 15513fi 15514{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_dlopen" >&5 15515$as_echo "$ac_cv_lib_c_dlopen" >&6; } 15516if test "x$ac_cv_lib_c_dlopen" = x""yes; then 15517 cat >>confdefs.h <<_ACEOF 15518#define HAVE_LIBC 1 15519_ACEOF 15520 15521 LIBS="-lc $LIBS" 15522 15523else 15524 { { $as_echo "$as_me:$LINENO: error: dlopen routine is not found" >&5 15525$as_echo "$as_me: error: dlopen routine is not found" >&2;} 15526 { (exit 1); exit 1; }; } 15527fi 15528 15529fi 15530 15531 15532{ $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5 15533$as_echo_n "checking for sin in -lm... " >&6; } 15534if test "${ac_cv_lib_m_sin+set}" = set; then 15535 $as_echo_n "(cached) " >&6 15536else 15537 ac_check_lib_save_LIBS=$LIBS 15538LIBS="-lm $LIBS" 15539cat >conftest.$ac_ext <<_ACEOF 15540/* confdefs.h. */ 15541_ACEOF 15542cat confdefs.h >>conftest.$ac_ext 15543cat >>conftest.$ac_ext <<_ACEOF 15544/* end confdefs.h. */ 15545 15546/* Override any GCC internal prototype to avoid an error. 15547 Use char because int might match the return type of a GCC 15548 builtin and then its argument prototype would still apply. */ 15549#ifdef __cplusplus 15550extern "C" 15551#endif 15552char sin (); 15553int 15554main () 15555{ 15556return sin (); 15557 ; 15558 return 0; 15559} 15560_ACEOF 15561rm -f conftest.$ac_objext conftest$ac_exeext 15562if { (ac_try="$ac_link" 15563case "(($ac_try" in 15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15565 *) ac_try_echo=$ac_try;; 15566esac 15567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15568$as_echo "$ac_try_echo") >&5 15569 (eval "$ac_link") 2>conftest.er1 15570 ac_status=$? 15571 grep -v '^ *+' conftest.er1 >conftest.err 15572 rm -f conftest.er1 15573 cat conftest.err >&5 15574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15575 (exit $ac_status); } && { 15576 test -z "$ac_c_werror_flag" || 15577 test ! -s conftest.err 15578 } && test -s conftest$ac_exeext && { 15579 test "$cross_compiling" = yes || 15580 $as_test_x conftest$ac_exeext 15581 }; then 15582 ac_cv_lib_m_sin=yes 15583else 15584 $as_echo "$as_me: failed program was:" >&5 15585sed 's/^/| /' conftest.$ac_ext >&5 15586 15587 ac_cv_lib_m_sin=no 15588fi 15589 15590rm -rf conftest.dSYM 15591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15592 conftest$ac_exeext conftest.$ac_ext 15593LIBS=$ac_check_lib_save_LIBS 15594fi 15595{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 15596$as_echo "$ac_cv_lib_m_sin" >&6; } 15597if test "x$ac_cv_lib_m_sin" = x""yes; then 15598 cat >>confdefs.h <<_ACEOF 15599#define HAVE_LIBM 1 15600_ACEOF 15601 15602 LIBS="-lm $LIBS" 15603 15604else 15605 { { $as_echo "$as_me:$LINENO: error: math library is not found" >&5 15606$as_echo "$as_me: error: math library is not found" >&2;} 15607 { (exit 1); exit 1; }; } 15608fi 15609 15610 15611{ $as_echo "$as_me:$LINENO: checking for pthread_create in -pthread" >&5 15612$as_echo_n "checking for pthread_create in -pthread... " >&6; } 15613if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 15614 $as_echo_n "(cached) " >&6 15615else 15616 ac_check_lib_save_LIBS=$LIBS 15617LIBS="-pthread $LIBS" 15618cat >conftest.$ac_ext <<_ACEOF 15619/* confdefs.h. */ 15620_ACEOF 15621cat confdefs.h >>conftest.$ac_ext 15622cat >>conftest.$ac_ext <<_ACEOF 15623/* end confdefs.h. */ 15624 15625/* Override any GCC internal prototype to avoid an error. 15626 Use char because int might match the return type of a GCC 15627 builtin and then its argument prototype would still apply. */ 15628#ifdef __cplusplus 15629extern "C" 15630#endif 15631char pthread_create (); 15632int 15633main () 15634{ 15635return pthread_create (); 15636 ; 15637 return 0; 15638} 15639_ACEOF 15640rm -f conftest.$ac_objext conftest$ac_exeext 15641if { (ac_try="$ac_link" 15642case "(($ac_try" in 15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15644 *) ac_try_echo=$ac_try;; 15645esac 15646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15647$as_echo "$ac_try_echo") >&5 15648 (eval "$ac_link") 2>conftest.er1 15649 ac_status=$? 15650 grep -v '^ *+' conftest.er1 >conftest.err 15651 rm -f conftest.er1 15652 cat conftest.err >&5 15653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15654 (exit $ac_status); } && { 15655 test -z "$ac_c_werror_flag" || 15656 test ! -s conftest.err 15657 } && test -s conftest$ac_exeext && { 15658 test "$cross_compiling" = yes || 15659 $as_test_x conftest$ac_exeext 15660 }; then 15661 ac_cv_lib_pthread_pthread_create=yes 15662else 15663 $as_echo "$as_me: failed program was:" >&5 15664sed 's/^/| /' conftest.$ac_ext >&5 15665 15666 ac_cv_lib_pthread_pthread_create=no 15667fi 15668 15669rm -rf conftest.dSYM 15670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15671 conftest$ac_exeext conftest.$ac_ext 15672LIBS=$ac_check_lib_save_LIBS 15673fi 15674{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 15675$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 15676if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then 15677 cat >>confdefs.h <<_ACEOF 15678#define HAVE_LIBPTHREAD 1 15679_ACEOF 15680 15681 LIBS="-pthread $LIBS" 15682 15683else 15684 { { $as_echo "$as_me:$LINENO: error: pthread library is not found" >&5 15685$as_echo "$as_me: error: pthread library is not found" >&2;} 15686 { (exit 1); exit 1; }; } 15687fi 15688 15689 15690{ $as_echo "$as_me:$LINENO: checking for acosf in -lm" >&5 15691$as_echo_n "checking for acosf in -lm... " >&6; } 15692if test "${ac_cv_lib_m_acosf+set}" = set; then 15693 $as_echo_n "(cached) " >&6 15694else 15695 ac_check_lib_save_LIBS=$LIBS 15696LIBS="-lm $LIBS" 15697cat >conftest.$ac_ext <<_ACEOF 15698/* confdefs.h. */ 15699_ACEOF 15700cat confdefs.h >>conftest.$ac_ext 15701cat >>conftest.$ac_ext <<_ACEOF 15702/* end confdefs.h. */ 15703 15704/* Override any GCC internal prototype to avoid an error. 15705 Use char because int might match the return type of a GCC 15706 builtin and then its argument prototype would still apply. */ 15707#ifdef __cplusplus 15708extern "C" 15709#endif 15710char acosf (); 15711int 15712main () 15713{ 15714return acosf (); 15715 ; 15716 return 0; 15717} 15718_ACEOF 15719rm -f conftest.$ac_objext conftest$ac_exeext 15720if { (ac_try="$ac_link" 15721case "(($ac_try" in 15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15723 *) ac_try_echo=$ac_try;; 15724esac 15725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15726$as_echo "$ac_try_echo") >&5 15727 (eval "$ac_link") 2>conftest.er1 15728 ac_status=$? 15729 grep -v '^ *+' conftest.er1 >conftest.err 15730 rm -f conftest.er1 15731 cat conftest.err >&5 15732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15733 (exit $ac_status); } && { 15734 test -z "$ac_c_werror_flag" || 15735 test ! -s conftest.err 15736 } && test -s conftest$ac_exeext && { 15737 test "$cross_compiling" = yes || 15738 $as_test_x conftest$ac_exeext 15739 }; then 15740 ac_cv_lib_m_acosf=yes 15741else 15742 $as_echo "$as_me: failed program was:" >&5 15743sed 's/^/| /' conftest.$ac_ext >&5 15744 15745 ac_cv_lib_m_acosf=no 15746fi 15747 15748rm -rf conftest.dSYM 15749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15750 conftest$ac_exeext conftest.$ac_ext 15751LIBS=$ac_check_lib_save_LIBS 15752fi 15753{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 15754$as_echo "$ac_cv_lib_m_acosf" >&6; } 15755if test "x$ac_cv_lib_m_acosf" = x""yes; then 15756 15757cat >>confdefs.h <<\_ACEOF 15758#define HAVE_ACOSF 1 15759_ACEOF 15760 15761fi 15762 15763 15764{ $as_echo "$as_me:$LINENO: checking for asinf in -lm" >&5 15765$as_echo_n "checking for asinf in -lm... " >&6; } 15766if test "${ac_cv_lib_m_asinf+set}" = set; then 15767 $as_echo_n "(cached) " >&6 15768else 15769 ac_check_lib_save_LIBS=$LIBS 15770LIBS="-lm $LIBS" 15771cat >conftest.$ac_ext <<_ACEOF 15772/* confdefs.h. */ 15773_ACEOF 15774cat confdefs.h >>conftest.$ac_ext 15775cat >>conftest.$ac_ext <<_ACEOF 15776/* end confdefs.h. */ 15777 15778/* Override any GCC internal prototype to avoid an error. 15779 Use char because int might match the return type of a GCC 15780 builtin and then its argument prototype would still apply. */ 15781#ifdef __cplusplus 15782extern "C" 15783#endif 15784char asinf (); 15785int 15786main () 15787{ 15788return asinf (); 15789 ; 15790 return 0; 15791} 15792_ACEOF 15793rm -f conftest.$ac_objext conftest$ac_exeext 15794if { (ac_try="$ac_link" 15795case "(($ac_try" in 15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15797 *) ac_try_echo=$ac_try;; 15798esac 15799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15800$as_echo "$ac_try_echo") >&5 15801 (eval "$ac_link") 2>conftest.er1 15802 ac_status=$? 15803 grep -v '^ *+' conftest.er1 >conftest.err 15804 rm -f conftest.er1 15805 cat conftest.err >&5 15806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15807 (exit $ac_status); } && { 15808 test -z "$ac_c_werror_flag" || 15809 test ! -s conftest.err 15810 } && test -s conftest$ac_exeext && { 15811 test "$cross_compiling" = yes || 15812 $as_test_x conftest$ac_exeext 15813 }; then 15814 ac_cv_lib_m_asinf=yes 15815else 15816 $as_echo "$as_me: failed program was:" >&5 15817sed 's/^/| /' conftest.$ac_ext >&5 15818 15819 ac_cv_lib_m_asinf=no 15820fi 15821 15822rm -rf conftest.dSYM 15823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15824 conftest$ac_exeext conftest.$ac_ext 15825LIBS=$ac_check_lib_save_LIBS 15826fi 15827{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5 15828$as_echo "$ac_cv_lib_m_asinf" >&6; } 15829if test "x$ac_cv_lib_m_asinf" = x""yes; then 15830 15831cat >>confdefs.h <<\_ACEOF 15832#define HAVE_ASINF 1 15833_ACEOF 15834 15835fi 15836 15837 15838{ $as_echo "$as_me:$LINENO: checking for atan2f in -lm" >&5 15839$as_echo_n "checking for atan2f in -lm... " >&6; } 15840if test "${ac_cv_lib_m_atan2f+set}" = set; then 15841 $as_echo_n "(cached) " >&6 15842else 15843 ac_check_lib_save_LIBS=$LIBS 15844LIBS="-lm $LIBS" 15845cat >conftest.$ac_ext <<_ACEOF 15846/* confdefs.h. */ 15847_ACEOF 15848cat confdefs.h >>conftest.$ac_ext 15849cat >>conftest.$ac_ext <<_ACEOF 15850/* end confdefs.h. */ 15851 15852/* Override any GCC internal prototype to avoid an error. 15853 Use char because int might match the return type of a GCC 15854 builtin and then its argument prototype would still apply. */ 15855#ifdef __cplusplus 15856extern "C" 15857#endif 15858char atan2f (); 15859int 15860main () 15861{ 15862return atan2f (); 15863 ; 15864 return 0; 15865} 15866_ACEOF 15867rm -f conftest.$ac_objext conftest$ac_exeext 15868if { (ac_try="$ac_link" 15869case "(($ac_try" in 15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15871 *) ac_try_echo=$ac_try;; 15872esac 15873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15874$as_echo "$ac_try_echo") >&5 15875 (eval "$ac_link") 2>conftest.er1 15876 ac_status=$? 15877 grep -v '^ *+' conftest.er1 >conftest.err 15878 rm -f conftest.er1 15879 cat conftest.err >&5 15880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15881 (exit $ac_status); } && { 15882 test -z "$ac_c_werror_flag" || 15883 test ! -s conftest.err 15884 } && test -s conftest$ac_exeext && { 15885 test "$cross_compiling" = yes || 15886 $as_test_x conftest$ac_exeext 15887 }; then 15888 ac_cv_lib_m_atan2f=yes 15889else 15890 $as_echo "$as_me: failed program was:" >&5 15891sed 's/^/| /' conftest.$ac_ext >&5 15892 15893 ac_cv_lib_m_atan2f=no 15894fi 15895 15896rm -rf conftest.dSYM 15897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15898 conftest$ac_exeext conftest.$ac_ext 15899LIBS=$ac_check_lib_save_LIBS 15900fi 15901{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5 15902$as_echo "$ac_cv_lib_m_atan2f" >&6; } 15903if test "x$ac_cv_lib_m_atan2f" = x""yes; then 15904 15905cat >>confdefs.h <<\_ACEOF 15906#define HAVE_ATAN2F 1 15907_ACEOF 15908 15909fi 15910 15911 15912{ $as_echo "$as_me:$LINENO: checking for atanf in -lm" >&5 15913$as_echo_n "checking for atanf in -lm... " >&6; } 15914if test "${ac_cv_lib_m_atanf+set}" = set; then 15915 $as_echo_n "(cached) " >&6 15916else 15917 ac_check_lib_save_LIBS=$LIBS 15918LIBS="-lm $LIBS" 15919cat >conftest.$ac_ext <<_ACEOF 15920/* confdefs.h. */ 15921_ACEOF 15922cat confdefs.h >>conftest.$ac_ext 15923cat >>conftest.$ac_ext <<_ACEOF 15924/* end confdefs.h. */ 15925 15926/* Override any GCC internal prototype to avoid an error. 15927 Use char because int might match the return type of a GCC 15928 builtin and then its argument prototype would still apply. */ 15929#ifdef __cplusplus 15930extern "C" 15931#endif 15932char atanf (); 15933int 15934main () 15935{ 15936return atanf (); 15937 ; 15938 return 0; 15939} 15940_ACEOF 15941rm -f conftest.$ac_objext conftest$ac_exeext 15942if { (ac_try="$ac_link" 15943case "(($ac_try" in 15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15945 *) ac_try_echo=$ac_try;; 15946esac 15947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15948$as_echo "$ac_try_echo") >&5 15949 (eval "$ac_link") 2>conftest.er1 15950 ac_status=$? 15951 grep -v '^ *+' conftest.er1 >conftest.err 15952 rm -f conftest.er1 15953 cat conftest.err >&5 15954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15955 (exit $ac_status); } && { 15956 test -z "$ac_c_werror_flag" || 15957 test ! -s conftest.err 15958 } && test -s conftest$ac_exeext && { 15959 test "$cross_compiling" = yes || 15960 $as_test_x conftest$ac_exeext 15961 }; then 15962 ac_cv_lib_m_atanf=yes 15963else 15964 $as_echo "$as_me: failed program was:" >&5 15965sed 's/^/| /' conftest.$ac_ext >&5 15966 15967 ac_cv_lib_m_atanf=no 15968fi 15969 15970rm -rf conftest.dSYM 15971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15972 conftest$ac_exeext conftest.$ac_ext 15973LIBS=$ac_check_lib_save_LIBS 15974fi 15975{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5 15976$as_echo "$ac_cv_lib_m_atanf" >&6; } 15977if test "x$ac_cv_lib_m_atanf" = x""yes; then 15978 15979cat >>confdefs.h <<\_ACEOF 15980#define HAVE_ATANF 1 15981_ACEOF 15982 15983fi 15984 15985 15986{ $as_echo "$as_me:$LINENO: checking for cosf in -lm" >&5 15987$as_echo_n "checking for cosf in -lm... " >&6; } 15988if test "${ac_cv_lib_m_cosf+set}" = set; then 15989 $as_echo_n "(cached) " >&6 15990else 15991 ac_check_lib_save_LIBS=$LIBS 15992LIBS="-lm $LIBS" 15993cat >conftest.$ac_ext <<_ACEOF 15994/* confdefs.h. */ 15995_ACEOF 15996cat confdefs.h >>conftest.$ac_ext 15997cat >>conftest.$ac_ext <<_ACEOF 15998/* end confdefs.h. */ 15999 16000/* Override any GCC internal prototype to avoid an error. 16001 Use char because int might match the return type of a GCC 16002 builtin and then its argument prototype would still apply. */ 16003#ifdef __cplusplus 16004extern "C" 16005#endif 16006char cosf (); 16007int 16008main () 16009{ 16010return cosf (); 16011 ; 16012 return 0; 16013} 16014_ACEOF 16015rm -f conftest.$ac_objext conftest$ac_exeext 16016if { (ac_try="$ac_link" 16017case "(($ac_try" in 16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16019 *) ac_try_echo=$ac_try;; 16020esac 16021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16022$as_echo "$ac_try_echo") >&5 16023 (eval "$ac_link") 2>conftest.er1 16024 ac_status=$? 16025 grep -v '^ *+' conftest.er1 >conftest.err 16026 rm -f conftest.er1 16027 cat conftest.err >&5 16028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16029 (exit $ac_status); } && { 16030 test -z "$ac_c_werror_flag" || 16031 test ! -s conftest.err 16032 } && test -s conftest$ac_exeext && { 16033 test "$cross_compiling" = yes || 16034 $as_test_x conftest$ac_exeext 16035 }; then 16036 ac_cv_lib_m_cosf=yes 16037else 16038 $as_echo "$as_me: failed program was:" >&5 16039sed 's/^/| /' conftest.$ac_ext >&5 16040 16041 ac_cv_lib_m_cosf=no 16042fi 16043 16044rm -rf conftest.dSYM 16045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16046 conftest$ac_exeext conftest.$ac_ext 16047LIBS=$ac_check_lib_save_LIBS 16048fi 16049{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5 16050$as_echo "$ac_cv_lib_m_cosf" >&6; } 16051if test "x$ac_cv_lib_m_cosf" = x""yes; then 16052 16053cat >>confdefs.h <<\_ACEOF 16054#define HAVE_COSF 1 16055_ACEOF 16056 16057fi 16058 16059 16060{ $as_echo "$as_me:$LINENO: checking for expf in -lm" >&5 16061$as_echo_n "checking for expf in -lm... " >&6; } 16062if test "${ac_cv_lib_m_expf+set}" = set; then 16063 $as_echo_n "(cached) " >&6 16064else 16065 ac_check_lib_save_LIBS=$LIBS 16066LIBS="-lm $LIBS" 16067cat >conftest.$ac_ext <<_ACEOF 16068/* confdefs.h. */ 16069_ACEOF 16070cat confdefs.h >>conftest.$ac_ext 16071cat >>conftest.$ac_ext <<_ACEOF 16072/* end confdefs.h. */ 16073 16074/* Override any GCC internal prototype to avoid an error. 16075 Use char because int might match the return type of a GCC 16076 builtin and then its argument prototype would still apply. */ 16077#ifdef __cplusplus 16078extern "C" 16079#endif 16080char expf (); 16081int 16082main () 16083{ 16084return expf (); 16085 ; 16086 return 0; 16087} 16088_ACEOF 16089rm -f conftest.$ac_objext conftest$ac_exeext 16090if { (ac_try="$ac_link" 16091case "(($ac_try" in 16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16093 *) ac_try_echo=$ac_try;; 16094esac 16095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16096$as_echo "$ac_try_echo") >&5 16097 (eval "$ac_link") 2>conftest.er1 16098 ac_status=$? 16099 grep -v '^ *+' conftest.er1 >conftest.err 16100 rm -f conftest.er1 16101 cat conftest.err >&5 16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16103 (exit $ac_status); } && { 16104 test -z "$ac_c_werror_flag" || 16105 test ! -s conftest.err 16106 } && test -s conftest$ac_exeext && { 16107 test "$cross_compiling" = yes || 16108 $as_test_x conftest$ac_exeext 16109 }; then 16110 ac_cv_lib_m_expf=yes 16111else 16112 $as_echo "$as_me: failed program was:" >&5 16113sed 's/^/| /' conftest.$ac_ext >&5 16114 16115 ac_cv_lib_m_expf=no 16116fi 16117 16118rm -rf conftest.dSYM 16119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16120 conftest$ac_exeext conftest.$ac_ext 16121LIBS=$ac_check_lib_save_LIBS 16122fi 16123{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5 16124$as_echo "$ac_cv_lib_m_expf" >&6; } 16125if test "x$ac_cv_lib_m_expf" = x""yes; then 16126 16127cat >>confdefs.h <<\_ACEOF 16128#define HAVE_EXPF 1 16129_ACEOF 16130 16131fi 16132 16133 16134{ $as_echo "$as_me:$LINENO: checking for fabsf in -lm" >&5 16135$as_echo_n "checking for fabsf in -lm... " >&6; } 16136if test "${ac_cv_lib_m_fabsf+set}" = set; then 16137 $as_echo_n "(cached) " >&6 16138else 16139 ac_check_lib_save_LIBS=$LIBS 16140LIBS="-lm $LIBS" 16141cat >conftest.$ac_ext <<_ACEOF 16142/* confdefs.h. */ 16143_ACEOF 16144cat confdefs.h >>conftest.$ac_ext 16145cat >>conftest.$ac_ext <<_ACEOF 16146/* end confdefs.h. */ 16147 16148/* Override any GCC internal prototype to avoid an error. 16149 Use char because int might match the return type of a GCC 16150 builtin and then its argument prototype would still apply. */ 16151#ifdef __cplusplus 16152extern "C" 16153#endif 16154char fabsf (); 16155int 16156main () 16157{ 16158return fabsf (); 16159 ; 16160 return 0; 16161} 16162_ACEOF 16163rm -f conftest.$ac_objext conftest$ac_exeext 16164if { (ac_try="$ac_link" 16165case "(($ac_try" in 16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16167 *) ac_try_echo=$ac_try;; 16168esac 16169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16170$as_echo "$ac_try_echo") >&5 16171 (eval "$ac_link") 2>conftest.er1 16172 ac_status=$? 16173 grep -v '^ *+' conftest.er1 >conftest.err 16174 rm -f conftest.er1 16175 cat conftest.err >&5 16176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16177 (exit $ac_status); } && { 16178 test -z "$ac_c_werror_flag" || 16179 test ! -s conftest.err 16180 } && test -s conftest$ac_exeext && { 16181 test "$cross_compiling" = yes || 16182 $as_test_x conftest$ac_exeext 16183 }; then 16184 ac_cv_lib_m_fabsf=yes 16185else 16186 $as_echo "$as_me: failed program was:" >&5 16187sed 's/^/| /' conftest.$ac_ext >&5 16188 16189 ac_cv_lib_m_fabsf=no 16190fi 16191 16192rm -rf conftest.dSYM 16193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16194 conftest$ac_exeext conftest.$ac_ext 16195LIBS=$ac_check_lib_save_LIBS 16196fi 16197{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5 16198$as_echo "$ac_cv_lib_m_fabsf" >&6; } 16199if test "x$ac_cv_lib_m_fabsf" = x""yes; then 16200 16201cat >>confdefs.h <<\_ACEOF 16202#define HAVE_FABSF 1 16203_ACEOF 16204 16205fi 16206 16207 16208{ $as_echo "$as_me:$LINENO: checking for floorf in -lm" >&5 16209$as_echo_n "checking for floorf in -lm... " >&6; } 16210if test "${ac_cv_lib_m_floorf+set}" = set; then 16211 $as_echo_n "(cached) " >&6 16212else 16213 ac_check_lib_save_LIBS=$LIBS 16214LIBS="-lm $LIBS" 16215cat >conftest.$ac_ext <<_ACEOF 16216/* confdefs.h. */ 16217_ACEOF 16218cat confdefs.h >>conftest.$ac_ext 16219cat >>conftest.$ac_ext <<_ACEOF 16220/* end confdefs.h. */ 16221 16222/* Override any GCC internal prototype to avoid an error. 16223 Use char because int might match the return type of a GCC 16224 builtin and then its argument prototype would still apply. */ 16225#ifdef __cplusplus 16226extern "C" 16227#endif 16228char floorf (); 16229int 16230main () 16231{ 16232return floorf (); 16233 ; 16234 return 0; 16235} 16236_ACEOF 16237rm -f conftest.$ac_objext conftest$ac_exeext 16238if { (ac_try="$ac_link" 16239case "(($ac_try" in 16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16241 *) ac_try_echo=$ac_try;; 16242esac 16243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16244$as_echo "$ac_try_echo") >&5 16245 (eval "$ac_link") 2>conftest.er1 16246 ac_status=$? 16247 grep -v '^ *+' conftest.er1 >conftest.err 16248 rm -f conftest.er1 16249 cat conftest.err >&5 16250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16251 (exit $ac_status); } && { 16252 test -z "$ac_c_werror_flag" || 16253 test ! -s conftest.err 16254 } && test -s conftest$ac_exeext && { 16255 test "$cross_compiling" = yes || 16256 $as_test_x conftest$ac_exeext 16257 }; then 16258 ac_cv_lib_m_floorf=yes 16259else 16260 $as_echo "$as_me: failed program was:" >&5 16261sed 's/^/| /' conftest.$ac_ext >&5 16262 16263 ac_cv_lib_m_floorf=no 16264fi 16265 16266rm -rf conftest.dSYM 16267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16268 conftest$ac_exeext conftest.$ac_ext 16269LIBS=$ac_check_lib_save_LIBS 16270fi 16271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5 16272$as_echo "$ac_cv_lib_m_floorf" >&6; } 16273if test "x$ac_cv_lib_m_floorf" = x""yes; then 16274 16275cat >>confdefs.h <<\_ACEOF 16276#define HAVE_FLOORF 1 16277_ACEOF 16278 16279fi 16280 16281 16282{ $as_echo "$as_me:$LINENO: checking for fmodf in -lm" >&5 16283$as_echo_n "checking for fmodf in -lm... " >&6; } 16284if test "${ac_cv_lib_m_fmodf+set}" = set; then 16285 $as_echo_n "(cached) " >&6 16286else 16287 ac_check_lib_save_LIBS=$LIBS 16288LIBS="-lm $LIBS" 16289cat >conftest.$ac_ext <<_ACEOF 16290/* confdefs.h. */ 16291_ACEOF 16292cat confdefs.h >>conftest.$ac_ext 16293cat >>conftest.$ac_ext <<_ACEOF 16294/* end confdefs.h. */ 16295 16296/* Override any GCC internal prototype to avoid an error. 16297 Use char because int might match the return type of a GCC 16298 builtin and then its argument prototype would still apply. */ 16299#ifdef __cplusplus 16300extern "C" 16301#endif 16302char fmodf (); 16303int 16304main () 16305{ 16306return fmodf (); 16307 ; 16308 return 0; 16309} 16310_ACEOF 16311rm -f conftest.$ac_objext conftest$ac_exeext 16312if { (ac_try="$ac_link" 16313case "(($ac_try" in 16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16315 *) ac_try_echo=$ac_try;; 16316esac 16317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16318$as_echo "$ac_try_echo") >&5 16319 (eval "$ac_link") 2>conftest.er1 16320 ac_status=$? 16321 grep -v '^ *+' conftest.er1 >conftest.err 16322 rm -f conftest.er1 16323 cat conftest.err >&5 16324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16325 (exit $ac_status); } && { 16326 test -z "$ac_c_werror_flag" || 16327 test ! -s conftest.err 16328 } && test -s conftest$ac_exeext && { 16329 test "$cross_compiling" = yes || 16330 $as_test_x conftest$ac_exeext 16331 }; then 16332 ac_cv_lib_m_fmodf=yes 16333else 16334 $as_echo "$as_me: failed program was:" >&5 16335sed 's/^/| /' conftest.$ac_ext >&5 16336 16337 ac_cv_lib_m_fmodf=no 16338fi 16339 16340rm -rf conftest.dSYM 16341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16342 conftest$ac_exeext conftest.$ac_ext 16343LIBS=$ac_check_lib_save_LIBS 16344fi 16345{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmodf" >&5 16346$as_echo "$ac_cv_lib_m_fmodf" >&6; } 16347if test "x$ac_cv_lib_m_fmodf" = x""yes; then 16348 16349cat >>confdefs.h <<\_ACEOF 16350#define HAVE_FMODF 1 16351_ACEOF 16352 16353fi 16354 16355 16356{ $as_echo "$as_me:$LINENO: checking for hypotf in -lm" >&5 16357$as_echo_n "checking for hypotf in -lm... " >&6; } 16358if test "${ac_cv_lib_m_hypotf+set}" = set; then 16359 $as_echo_n "(cached) " >&6 16360else 16361 ac_check_lib_save_LIBS=$LIBS 16362LIBS="-lm $LIBS" 16363cat >conftest.$ac_ext <<_ACEOF 16364/* confdefs.h. */ 16365_ACEOF 16366cat confdefs.h >>conftest.$ac_ext 16367cat >>conftest.$ac_ext <<_ACEOF 16368/* end confdefs.h. */ 16369 16370/* Override any GCC internal prototype to avoid an error. 16371 Use char because int might match the return type of a GCC 16372 builtin and then its argument prototype would still apply. */ 16373#ifdef __cplusplus 16374extern "C" 16375#endif 16376char hypotf (); 16377int 16378main () 16379{ 16380return hypotf (); 16381 ; 16382 return 0; 16383} 16384_ACEOF 16385rm -f conftest.$ac_objext conftest$ac_exeext 16386if { (ac_try="$ac_link" 16387case "(($ac_try" in 16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16389 *) ac_try_echo=$ac_try;; 16390esac 16391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16392$as_echo "$ac_try_echo") >&5 16393 (eval "$ac_link") 2>conftest.er1 16394 ac_status=$? 16395 grep -v '^ *+' conftest.er1 >conftest.err 16396 rm -f conftest.er1 16397 cat conftest.err >&5 16398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16399 (exit $ac_status); } && { 16400 test -z "$ac_c_werror_flag" || 16401 test ! -s conftest.err 16402 } && test -s conftest$ac_exeext && { 16403 test "$cross_compiling" = yes || 16404 $as_test_x conftest$ac_exeext 16405 }; then 16406 ac_cv_lib_m_hypotf=yes 16407else 16408 $as_echo "$as_me: failed program was:" >&5 16409sed 's/^/| /' conftest.$ac_ext >&5 16410 16411 ac_cv_lib_m_hypotf=no 16412fi 16413 16414rm -rf conftest.dSYM 16415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16416 conftest$ac_exeext conftest.$ac_ext 16417LIBS=$ac_check_lib_save_LIBS 16418fi 16419{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5 16420$as_echo "$ac_cv_lib_m_hypotf" >&6; } 16421if test "x$ac_cv_lib_m_hypotf" = x""yes; then 16422 16423cat >>confdefs.h <<\_ACEOF 16424#define HAVE_HYPOTF 1 16425_ACEOF 16426 16427fi 16428 16429 16430{ $as_echo "$as_me:$LINENO: checking for logf in -lm" >&5 16431$as_echo_n "checking for logf in -lm... " >&6; } 16432if test "${ac_cv_lib_m_logf+set}" = set; then 16433 $as_echo_n "(cached) " >&6 16434else 16435 ac_check_lib_save_LIBS=$LIBS 16436LIBS="-lm $LIBS" 16437cat >conftest.$ac_ext <<_ACEOF 16438/* confdefs.h. */ 16439_ACEOF 16440cat confdefs.h >>conftest.$ac_ext 16441cat >>conftest.$ac_ext <<_ACEOF 16442/* end confdefs.h. */ 16443 16444/* Override any GCC internal prototype to avoid an error. 16445 Use char because int might match the return type of a GCC 16446 builtin and then its argument prototype would still apply. */ 16447#ifdef __cplusplus 16448extern "C" 16449#endif 16450char logf (); 16451int 16452main () 16453{ 16454return logf (); 16455 ; 16456 return 0; 16457} 16458_ACEOF 16459rm -f conftest.$ac_objext conftest$ac_exeext 16460if { (ac_try="$ac_link" 16461case "(($ac_try" in 16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16463 *) ac_try_echo=$ac_try;; 16464esac 16465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16466$as_echo "$ac_try_echo") >&5 16467 (eval "$ac_link") 2>conftest.er1 16468 ac_status=$? 16469 grep -v '^ *+' conftest.er1 >conftest.err 16470 rm -f conftest.er1 16471 cat conftest.err >&5 16472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16473 (exit $ac_status); } && { 16474 test -z "$ac_c_werror_flag" || 16475 test ! -s conftest.err 16476 } && test -s conftest$ac_exeext && { 16477 test "$cross_compiling" = yes || 16478 $as_test_x conftest$ac_exeext 16479 }; then 16480 ac_cv_lib_m_logf=yes 16481else 16482 $as_echo "$as_me: failed program was:" >&5 16483sed 's/^/| /' conftest.$ac_ext >&5 16484 16485 ac_cv_lib_m_logf=no 16486fi 16487 16488rm -rf conftest.dSYM 16489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16490 conftest$ac_exeext conftest.$ac_ext 16491LIBS=$ac_check_lib_save_LIBS 16492fi 16493{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5 16494$as_echo "$ac_cv_lib_m_logf" >&6; } 16495if test "x$ac_cv_lib_m_logf" = x""yes; then 16496 16497cat >>confdefs.h <<\_ACEOF 16498#define HAVE_LOGF 1 16499_ACEOF 16500 16501fi 16502 16503 16504{ $as_echo "$as_me:$LINENO: checking for powf in -lm" >&5 16505$as_echo_n "checking for powf in -lm... " >&6; } 16506if test "${ac_cv_lib_m_powf+set}" = set; then 16507 $as_echo_n "(cached) " >&6 16508else 16509 ac_check_lib_save_LIBS=$LIBS 16510LIBS="-lm $LIBS" 16511cat >conftest.$ac_ext <<_ACEOF 16512/* confdefs.h. */ 16513_ACEOF 16514cat confdefs.h >>conftest.$ac_ext 16515cat >>conftest.$ac_ext <<_ACEOF 16516/* end confdefs.h. */ 16517 16518/* Override any GCC internal prototype to avoid an error. 16519 Use char because int might match the return type of a GCC 16520 builtin and then its argument prototype would still apply. */ 16521#ifdef __cplusplus 16522extern "C" 16523#endif 16524char powf (); 16525int 16526main () 16527{ 16528return powf (); 16529 ; 16530 return 0; 16531} 16532_ACEOF 16533rm -f conftest.$ac_objext conftest$ac_exeext 16534if { (ac_try="$ac_link" 16535case "(($ac_try" in 16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16537 *) ac_try_echo=$ac_try;; 16538esac 16539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16540$as_echo "$ac_try_echo") >&5 16541 (eval "$ac_link") 2>conftest.er1 16542 ac_status=$? 16543 grep -v '^ *+' conftest.er1 >conftest.err 16544 rm -f conftest.er1 16545 cat conftest.err >&5 16546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16547 (exit $ac_status); } && { 16548 test -z "$ac_c_werror_flag" || 16549 test ! -s conftest.err 16550 } && test -s conftest$ac_exeext && { 16551 test "$cross_compiling" = yes || 16552 $as_test_x conftest$ac_exeext 16553 }; then 16554 ac_cv_lib_m_powf=yes 16555else 16556 $as_echo "$as_me: failed program was:" >&5 16557sed 's/^/| /' conftest.$ac_ext >&5 16558 16559 ac_cv_lib_m_powf=no 16560fi 16561 16562rm -rf conftest.dSYM 16563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16564 conftest$ac_exeext conftest.$ac_ext 16565LIBS=$ac_check_lib_save_LIBS 16566fi 16567{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5 16568$as_echo "$ac_cv_lib_m_powf" >&6; } 16569if test "x$ac_cv_lib_m_powf" = x""yes; then 16570 16571cat >>confdefs.h <<\_ACEOF 16572#define HAVE_POWF 1 16573_ACEOF 16574 16575fi 16576 16577 16578{ $as_echo "$as_me:$LINENO: checking for sinf in -lm" >&5 16579$as_echo_n "checking for sinf in -lm... " >&6; } 16580if test "${ac_cv_lib_m_sinf+set}" = set; then 16581 $as_echo_n "(cached) " >&6 16582else 16583 ac_check_lib_save_LIBS=$LIBS 16584LIBS="-lm $LIBS" 16585cat >conftest.$ac_ext <<_ACEOF 16586/* confdefs.h. */ 16587_ACEOF 16588cat confdefs.h >>conftest.$ac_ext 16589cat >>conftest.$ac_ext <<_ACEOF 16590/* end confdefs.h. */ 16591 16592/* Override any GCC internal prototype to avoid an error. 16593 Use char because int might match the return type of a GCC 16594 builtin and then its argument prototype would still apply. */ 16595#ifdef __cplusplus 16596extern "C" 16597#endif 16598char sinf (); 16599int 16600main () 16601{ 16602return sinf (); 16603 ; 16604 return 0; 16605} 16606_ACEOF 16607rm -f conftest.$ac_objext conftest$ac_exeext 16608if { (ac_try="$ac_link" 16609case "(($ac_try" in 16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16611 *) ac_try_echo=$ac_try;; 16612esac 16613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16614$as_echo "$ac_try_echo") >&5 16615 (eval "$ac_link") 2>conftest.er1 16616 ac_status=$? 16617 grep -v '^ *+' conftest.er1 >conftest.err 16618 rm -f conftest.er1 16619 cat conftest.err >&5 16620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16621 (exit $ac_status); } && { 16622 test -z "$ac_c_werror_flag" || 16623 test ! -s conftest.err 16624 } && test -s conftest$ac_exeext && { 16625 test "$cross_compiling" = yes || 16626 $as_test_x conftest$ac_exeext 16627 }; then 16628 ac_cv_lib_m_sinf=yes 16629else 16630 $as_echo "$as_me: failed program was:" >&5 16631sed 's/^/| /' conftest.$ac_ext >&5 16632 16633 ac_cv_lib_m_sinf=no 16634fi 16635 16636rm -rf conftest.dSYM 16637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16638 conftest$ac_exeext conftest.$ac_ext 16639LIBS=$ac_check_lib_save_LIBS 16640fi 16641{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5 16642$as_echo "$ac_cv_lib_m_sinf" >&6; } 16643if test "x$ac_cv_lib_m_sinf" = x""yes; then 16644 16645cat >>confdefs.h <<\_ACEOF 16646#define HAVE_SINF 1 16647_ACEOF 16648 16649fi 16650 16651 16652{ $as_echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 16653$as_echo_n "checking for sqrtf in -lm... " >&6; } 16654if test "${ac_cv_lib_m_sqrtf+set}" = set; then 16655 $as_echo_n "(cached) " >&6 16656else 16657 ac_check_lib_save_LIBS=$LIBS 16658LIBS="-lm $LIBS" 16659cat >conftest.$ac_ext <<_ACEOF 16660/* confdefs.h. */ 16661_ACEOF 16662cat confdefs.h >>conftest.$ac_ext 16663cat >>conftest.$ac_ext <<_ACEOF 16664/* end confdefs.h. */ 16665 16666/* Override any GCC internal prototype to avoid an error. 16667 Use char because int might match the return type of a GCC 16668 builtin and then its argument prototype would still apply. */ 16669#ifdef __cplusplus 16670extern "C" 16671#endif 16672char sqrtf (); 16673int 16674main () 16675{ 16676return sqrtf (); 16677 ; 16678 return 0; 16679} 16680_ACEOF 16681rm -f conftest.$ac_objext conftest$ac_exeext 16682if { (ac_try="$ac_link" 16683case "(($ac_try" in 16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16685 *) ac_try_echo=$ac_try;; 16686esac 16687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16688$as_echo "$ac_try_echo") >&5 16689 (eval "$ac_link") 2>conftest.er1 16690 ac_status=$? 16691 grep -v '^ *+' conftest.er1 >conftest.err 16692 rm -f conftest.er1 16693 cat conftest.err >&5 16694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16695 (exit $ac_status); } && { 16696 test -z "$ac_c_werror_flag" || 16697 test ! -s conftest.err 16698 } && test -s conftest$ac_exeext && { 16699 test "$cross_compiling" = yes || 16700 $as_test_x conftest$ac_exeext 16701 }; then 16702 ac_cv_lib_m_sqrtf=yes 16703else 16704 $as_echo "$as_me: failed program was:" >&5 16705sed 's/^/| /' conftest.$ac_ext >&5 16706 16707 ac_cv_lib_m_sqrtf=no 16708fi 16709 16710rm -rf conftest.dSYM 16711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16712 conftest$ac_exeext conftest.$ac_ext 16713LIBS=$ac_check_lib_save_LIBS 16714fi 16715{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 16716$as_echo "$ac_cv_lib_m_sqrtf" >&6; } 16717if test "x$ac_cv_lib_m_sqrtf" = x""yes; then 16718 16719cat >>confdefs.h <<\_ACEOF 16720#define HAVE_SQRTF 1 16721_ACEOF 16722 16723fi 16724 16725 16726{ $as_echo "$as_me:$LINENO: checking for tanf in -lm" >&5 16727$as_echo_n "checking for tanf in -lm... " >&6; } 16728if test "${ac_cv_lib_m_tanf+set}" = set; then 16729 $as_echo_n "(cached) " >&6 16730else 16731 ac_check_lib_save_LIBS=$LIBS 16732LIBS="-lm $LIBS" 16733cat >conftest.$ac_ext <<_ACEOF 16734/* confdefs.h. */ 16735_ACEOF 16736cat confdefs.h >>conftest.$ac_ext 16737cat >>conftest.$ac_ext <<_ACEOF 16738/* end confdefs.h. */ 16739 16740/* Override any GCC internal prototype to avoid an error. 16741 Use char because int might match the return type of a GCC 16742 builtin and then its argument prototype would still apply. */ 16743#ifdef __cplusplus 16744extern "C" 16745#endif 16746char tanf (); 16747int 16748main () 16749{ 16750return tanf (); 16751 ; 16752 return 0; 16753} 16754_ACEOF 16755rm -f conftest.$ac_objext conftest$ac_exeext 16756if { (ac_try="$ac_link" 16757case "(($ac_try" in 16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16759 *) ac_try_echo=$ac_try;; 16760esac 16761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16762$as_echo "$ac_try_echo") >&5 16763 (eval "$ac_link") 2>conftest.er1 16764 ac_status=$? 16765 grep -v '^ *+' conftest.er1 >conftest.err 16766 rm -f conftest.er1 16767 cat conftest.err >&5 16768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16769 (exit $ac_status); } && { 16770 test -z "$ac_c_werror_flag" || 16771 test ! -s conftest.err 16772 } && test -s conftest$ac_exeext && { 16773 test "$cross_compiling" = yes || 16774 $as_test_x conftest$ac_exeext 16775 }; then 16776 ac_cv_lib_m_tanf=yes 16777else 16778 $as_echo "$as_me: failed program was:" >&5 16779sed 's/^/| /' conftest.$ac_ext >&5 16780 16781 ac_cv_lib_m_tanf=no 16782fi 16783 16784rm -rf conftest.dSYM 16785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16786 conftest$ac_exeext conftest.$ac_ext 16787LIBS=$ac_check_lib_save_LIBS 16788fi 16789{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5 16790$as_echo "$ac_cv_lib_m_tanf" >&6; } 16791if test "x$ac_cv_lib_m_tanf" = x""yes; then 16792 16793cat >>confdefs.h <<\_ACEOF 16794#define HAVE_TANF 1 16795_ACEOF 16796 16797fi 16798 16799 16800{ $as_echo "$as_me:$LINENO: checking for X" >&5 16801$as_echo_n "checking for X... " >&6; } 16802 16803 16804# Check whether --with-x was given. 16805if test "${with_x+set}" = set; then 16806 withval=$with_x; 16807fi 16808 16809# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 16810if test "x$with_x" = xno; then 16811 # The user explicitly disabled X. 16812 have_x=disabled 16813else 16814 case $x_includes,$x_libraries in #( 16815 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5 16816$as_echo "$as_me: error: cannot use X directory names containing '" >&2;} 16817 { (exit 1); exit 1; }; };; #( 16818 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 16819 $as_echo_n "(cached) " >&6 16820else 16821 # One or both of the vars are not set, and there is no cached value. 16822ac_x_includes=no ac_x_libraries=no 16823rm -f -r conftest.dir 16824if mkdir conftest.dir; then 16825 cd conftest.dir 16826 cat >Imakefile <<'_ACEOF' 16827incroot: 16828 @echo incroot='${INCROOT}' 16829usrlibdir: 16830 @echo usrlibdir='${USRLIBDIR}' 16831libdir: 16832 @echo libdir='${LIBDIR}' 16833_ACEOF 16834 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 16835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 16836 for ac_var in incroot usrlibdir libdir; do 16837 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 16838 done 16839 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 16840 for ac_extension in a so sl dylib la dll; do 16841 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 16842 test -f "$ac_im_libdir/libX11.$ac_extension"; then 16843 ac_im_usrlibdir=$ac_im_libdir; break 16844 fi 16845 done 16846 # Screen out bogus values from the imake configuration. They are 16847 # bogus both because they are the default anyway, and because 16848 # using them would break gcc on systems where it needs fixed includes. 16849 case $ac_im_incroot in 16850 /usr/include) ac_x_includes= ;; 16851 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 16852 esac 16853 case $ac_im_usrlibdir in 16854 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 16855 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 16856 esac 16857 fi 16858 cd .. 16859 rm -f -r conftest.dir 16860fi 16861 16862# Standard set of common directories for X headers. 16863# Check X11 before X11Rn because it is often a symlink to the current release. 16864ac_x_header_dirs=' 16865/usr/X11/include 16866/usr/X11R6/include 16867/usr/X11R5/include 16868/usr/X11R4/include 16869 16870/usr/include/X11 16871/usr/include/X11R6 16872/usr/include/X11R5 16873/usr/include/X11R4 16874 16875/usr/local/X11/include 16876/usr/local/X11R6/include 16877/usr/local/X11R5/include 16878/usr/local/X11R4/include 16879 16880/usr/local/include/X11 16881/usr/local/include/X11R6 16882/usr/local/include/X11R5 16883/usr/local/include/X11R4 16884 16885/usr/X386/include 16886/usr/x386/include 16887/usr/XFree86/include/X11 16888 16889/usr/include 16890/usr/local/include 16891/usr/unsupported/include 16892/usr/athena/include 16893/usr/local/x11r5/include 16894/usr/lpp/Xamples/include 16895 16896/usr/openwin/include 16897/usr/openwin/share/include' 16898 16899if test "$ac_x_includes" = no; then 16900 # Guess where to find include files, by looking for Xlib.h. 16901 # First, try using that file with no special directory specified. 16902 cat >conftest.$ac_ext <<_ACEOF 16903/* confdefs.h. */ 16904_ACEOF 16905cat confdefs.h >>conftest.$ac_ext 16906cat >>conftest.$ac_ext <<_ACEOF 16907/* end confdefs.h. */ 16908#include <X11/Xlib.h> 16909_ACEOF 16910if { (ac_try="$ac_cpp conftest.$ac_ext" 16911case "(($ac_try" in 16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16913 *) ac_try_echo=$ac_try;; 16914esac 16915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16916$as_echo "$ac_try_echo") >&5 16917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16918 ac_status=$? 16919 grep -v '^ *+' conftest.er1 >conftest.err 16920 rm -f conftest.er1 16921 cat conftest.err >&5 16922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16923 (exit $ac_status); } >/dev/null && { 16924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16925 test ! -s conftest.err 16926 }; then 16927 # We can compile using X headers with no special include directory. 16928ac_x_includes= 16929else 16930 $as_echo "$as_me: failed program was:" >&5 16931sed 's/^/| /' conftest.$ac_ext >&5 16932 16933 for ac_dir in $ac_x_header_dirs; do 16934 if test -r "$ac_dir/X11/Xlib.h"; then 16935 ac_x_includes=$ac_dir 16936 break 16937 fi 16938done 16939fi 16940 16941rm -f conftest.err conftest.$ac_ext 16942fi # $ac_x_includes = no 16943 16944if test "$ac_x_libraries" = no; then 16945 # Check for the libraries. 16946 # See if we find them without any special options. 16947 # Don't add to $LIBS permanently. 16948 ac_save_LIBS=$LIBS 16949 LIBS="-lX11 $LIBS" 16950 cat >conftest.$ac_ext <<_ACEOF 16951/* confdefs.h. */ 16952_ACEOF 16953cat confdefs.h >>conftest.$ac_ext 16954cat >>conftest.$ac_ext <<_ACEOF 16955/* end confdefs.h. */ 16956#include <X11/Xlib.h> 16957int 16958main () 16959{ 16960XrmInitialize () 16961 ; 16962 return 0; 16963} 16964_ACEOF 16965rm -f conftest.$ac_objext conftest$ac_exeext 16966if { (ac_try="$ac_link" 16967case "(($ac_try" in 16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16969 *) ac_try_echo=$ac_try;; 16970esac 16971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 16972$as_echo "$ac_try_echo") >&5 16973 (eval "$ac_link") 2>conftest.er1 16974 ac_status=$? 16975 grep -v '^ *+' conftest.er1 >conftest.err 16976 rm -f conftest.er1 16977 cat conftest.err >&5 16978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16979 (exit $ac_status); } && { 16980 test -z "$ac_c_werror_flag" || 16981 test ! -s conftest.err 16982 } && test -s conftest$ac_exeext && { 16983 test "$cross_compiling" = yes || 16984 $as_test_x conftest$ac_exeext 16985 }; then 16986 LIBS=$ac_save_LIBS 16987# We can link X programs with no special library path. 16988ac_x_libraries= 16989else 16990 $as_echo "$as_me: failed program was:" >&5 16991sed 's/^/| /' conftest.$ac_ext >&5 16992 16993 LIBS=$ac_save_LIBS 16994for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 16995do 16996 # Don't even attempt the hair of trying to link an X program! 16997 for ac_extension in a so sl dylib la dll; do 16998 if test -r "$ac_dir/libX11.$ac_extension"; then 16999 ac_x_libraries=$ac_dir 17000 break 2 17001 fi 17002 done 17003done 17004fi 17005 17006rm -rf conftest.dSYM 17007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17008 conftest$ac_exeext conftest.$ac_ext 17009fi # $ac_x_libraries = no 17010 17011case $ac_x_includes,$ac_x_libraries in #( 17012 no,* | *,no | *\'*) 17013 # Didn't find X, or a directory has "'" in its name. 17014 ac_cv_have_x="have_x=no";; #( 17015 *) 17016 # Record where we found X for the cache. 17017 ac_cv_have_x="have_x=yes\ 17018 ac_x_includes='$ac_x_includes'\ 17019 ac_x_libraries='$ac_x_libraries'" 17020esac 17021fi 17022;; #( 17023 *) have_x=yes;; 17024 esac 17025 eval "$ac_cv_have_x" 17026fi # $with_x != no 17027 17028if test "$have_x" != yes; then 17029 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 17030$as_echo "$have_x" >&6; } 17031 no_x=yes 17032else 17033 # If each of the values was on the command line, it overrides each guess. 17034 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 17035 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 17036 # Update the cache value to reflect the command line values. 17037 ac_cv_have_x="have_x=yes\ 17038 ac_x_includes='$x_includes'\ 17039 ac_x_libraries='$x_libraries'" 17040 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 17041$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 17042fi 17043 17044if test "$no_x" = yes; then 17045 # Not all programs may use this symbol, but it does not hurt to define it. 17046 17047cat >>confdefs.h <<\_ACEOF 17048#define X_DISPLAY_MISSING 1 17049_ACEOF 17050 17051 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 17052else 17053 if test -n "$x_includes"; then 17054 X_CFLAGS="$X_CFLAGS -I$x_includes" 17055 fi 17056 17057 # It would also be nice to do this for all -L options, not just this one. 17058 if test -n "$x_libraries"; then 17059 X_LIBS="$X_LIBS -L$x_libraries" 17060 # For Solaris; some versions of Sun CC require a space after -R and 17061 # others require no space. Words are not sufficient . . . . 17062 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 17063$as_echo_n "checking whether -R must be followed by a space... " >&6; } 17064 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 17065 ac_xsave_c_werror_flag=$ac_c_werror_flag 17066 ac_c_werror_flag=yes 17067 cat >conftest.$ac_ext <<_ACEOF 17068/* confdefs.h. */ 17069_ACEOF 17070cat confdefs.h >>conftest.$ac_ext 17071cat >>conftest.$ac_ext <<_ACEOF 17072/* end confdefs.h. */ 17073 17074int 17075main () 17076{ 17077 17078 ; 17079 return 0; 17080} 17081_ACEOF 17082rm -f conftest.$ac_objext conftest$ac_exeext 17083if { (ac_try="$ac_link" 17084case "(($ac_try" in 17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17086 *) ac_try_echo=$ac_try;; 17087esac 17088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17089$as_echo "$ac_try_echo") >&5 17090 (eval "$ac_link") 2>conftest.er1 17091 ac_status=$? 17092 grep -v '^ *+' conftest.er1 >conftest.err 17093 rm -f conftest.er1 17094 cat conftest.err >&5 17095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17096 (exit $ac_status); } && { 17097 test -z "$ac_c_werror_flag" || 17098 test ! -s conftest.err 17099 } && test -s conftest$ac_exeext && { 17100 test "$cross_compiling" = yes || 17101 $as_test_x conftest$ac_exeext 17102 }; then 17103 { $as_echo "$as_me:$LINENO: result: no" >&5 17104$as_echo "no" >&6; } 17105 X_LIBS="$X_LIBS -R$x_libraries" 17106else 17107 $as_echo "$as_me: failed program was:" >&5 17108sed 's/^/| /' conftest.$ac_ext >&5 17109 17110 LIBS="$ac_xsave_LIBS -R $x_libraries" 17111 cat >conftest.$ac_ext <<_ACEOF 17112/* confdefs.h. */ 17113_ACEOF 17114cat confdefs.h >>conftest.$ac_ext 17115cat >>conftest.$ac_ext <<_ACEOF 17116/* end confdefs.h. */ 17117 17118int 17119main () 17120{ 17121 17122 ; 17123 return 0; 17124} 17125_ACEOF 17126rm -f conftest.$ac_objext conftest$ac_exeext 17127if { (ac_try="$ac_link" 17128case "(($ac_try" in 17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17130 *) ac_try_echo=$ac_try;; 17131esac 17132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17133$as_echo "$ac_try_echo") >&5 17134 (eval "$ac_link") 2>conftest.er1 17135 ac_status=$? 17136 grep -v '^ *+' conftest.er1 >conftest.err 17137 rm -f conftest.er1 17138 cat conftest.err >&5 17139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17140 (exit $ac_status); } && { 17141 test -z "$ac_c_werror_flag" || 17142 test ! -s conftest.err 17143 } && test -s conftest$ac_exeext && { 17144 test "$cross_compiling" = yes || 17145 $as_test_x conftest$ac_exeext 17146 }; then 17147 { $as_echo "$as_me:$LINENO: result: yes" >&5 17148$as_echo "yes" >&6; } 17149 X_LIBS="$X_LIBS -R $x_libraries" 17150else 17151 $as_echo "$as_me: failed program was:" >&5 17152sed 's/^/| /' conftest.$ac_ext >&5 17153 17154 { $as_echo "$as_me:$LINENO: result: neither works" >&5 17155$as_echo "neither works" >&6; } 17156fi 17157 17158rm -rf conftest.dSYM 17159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17160 conftest$ac_exeext conftest.$ac_ext 17161fi 17162 17163rm -rf conftest.dSYM 17164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17165 conftest$ac_exeext conftest.$ac_ext 17166 ac_c_werror_flag=$ac_xsave_c_werror_flag 17167 LIBS=$ac_xsave_LIBS 17168 fi 17169 17170 # Check for system-dependent libraries X programs must link with. 17171 # Do this before checking for the system-independent R6 libraries 17172 # (-lICE), since we may need -lsocket or whatever for X linking. 17173 17174 if test "$ISC" = yes; then 17175 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 17176 else 17177 # Martyn Johnson says this is needed for Ultrix, if the X 17178 # libraries were built with DECnet support. And Karl Berry says 17179 # the Alpha needs dnet_stub (dnet does not exist). 17180 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 17181 cat >conftest.$ac_ext <<_ACEOF 17182/* confdefs.h. */ 17183_ACEOF 17184cat confdefs.h >>conftest.$ac_ext 17185cat >>conftest.$ac_ext <<_ACEOF 17186/* end confdefs.h. */ 17187 17188/* Override any GCC internal prototype to avoid an error. 17189 Use char because int might match the return type of a GCC 17190 builtin and then its argument prototype would still apply. */ 17191#ifdef __cplusplus 17192extern "C" 17193#endif 17194char XOpenDisplay (); 17195int 17196main () 17197{ 17198return XOpenDisplay (); 17199 ; 17200 return 0; 17201} 17202_ACEOF 17203rm -f conftest.$ac_objext conftest$ac_exeext 17204if { (ac_try="$ac_link" 17205case "(($ac_try" in 17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17207 *) ac_try_echo=$ac_try;; 17208esac 17209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17210$as_echo "$ac_try_echo") >&5 17211 (eval "$ac_link") 2>conftest.er1 17212 ac_status=$? 17213 grep -v '^ *+' conftest.er1 >conftest.err 17214 rm -f conftest.er1 17215 cat conftest.err >&5 17216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17217 (exit $ac_status); } && { 17218 test -z "$ac_c_werror_flag" || 17219 test ! -s conftest.err 17220 } && test -s conftest$ac_exeext && { 17221 test "$cross_compiling" = yes || 17222 $as_test_x conftest$ac_exeext 17223 }; then 17224 : 17225else 17226 $as_echo "$as_me: failed program was:" >&5 17227sed 's/^/| /' conftest.$ac_ext >&5 17228 17229 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 17230$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 17231if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 17232 $as_echo_n "(cached) " >&6 17233else 17234 ac_check_lib_save_LIBS=$LIBS 17235LIBS="-ldnet $LIBS" 17236cat >conftest.$ac_ext <<_ACEOF 17237/* confdefs.h. */ 17238_ACEOF 17239cat confdefs.h >>conftest.$ac_ext 17240cat >>conftest.$ac_ext <<_ACEOF 17241/* end confdefs.h. */ 17242 17243/* Override any GCC internal prototype to avoid an error. 17244 Use char because int might match the return type of a GCC 17245 builtin and then its argument prototype would still apply. */ 17246#ifdef __cplusplus 17247extern "C" 17248#endif 17249char dnet_ntoa (); 17250int 17251main () 17252{ 17253return dnet_ntoa (); 17254 ; 17255 return 0; 17256} 17257_ACEOF 17258rm -f conftest.$ac_objext conftest$ac_exeext 17259if { (ac_try="$ac_link" 17260case "(($ac_try" in 17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17262 *) ac_try_echo=$ac_try;; 17263esac 17264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17265$as_echo "$ac_try_echo") >&5 17266 (eval "$ac_link") 2>conftest.er1 17267 ac_status=$? 17268 grep -v '^ *+' conftest.er1 >conftest.err 17269 rm -f conftest.er1 17270 cat conftest.err >&5 17271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17272 (exit $ac_status); } && { 17273 test -z "$ac_c_werror_flag" || 17274 test ! -s conftest.err 17275 } && test -s conftest$ac_exeext && { 17276 test "$cross_compiling" = yes || 17277 $as_test_x conftest$ac_exeext 17278 }; then 17279 ac_cv_lib_dnet_dnet_ntoa=yes 17280else 17281 $as_echo "$as_me: failed program was:" >&5 17282sed 's/^/| /' conftest.$ac_ext >&5 17283 17284 ac_cv_lib_dnet_dnet_ntoa=no 17285fi 17286 17287rm -rf conftest.dSYM 17288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17289 conftest$ac_exeext conftest.$ac_ext 17290LIBS=$ac_check_lib_save_LIBS 17291fi 17292{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 17293$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 17294if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then 17295 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 17296fi 17297 17298 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 17299 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 17300$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 17301if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 17302 $as_echo_n "(cached) " >&6 17303else 17304 ac_check_lib_save_LIBS=$LIBS 17305LIBS="-ldnet_stub $LIBS" 17306cat >conftest.$ac_ext <<_ACEOF 17307/* confdefs.h. */ 17308_ACEOF 17309cat confdefs.h >>conftest.$ac_ext 17310cat >>conftest.$ac_ext <<_ACEOF 17311/* end confdefs.h. */ 17312 17313/* Override any GCC internal prototype to avoid an error. 17314 Use char because int might match the return type of a GCC 17315 builtin and then its argument prototype would still apply. */ 17316#ifdef __cplusplus 17317extern "C" 17318#endif 17319char dnet_ntoa (); 17320int 17321main () 17322{ 17323return dnet_ntoa (); 17324 ; 17325 return 0; 17326} 17327_ACEOF 17328rm -f conftest.$ac_objext conftest$ac_exeext 17329if { (ac_try="$ac_link" 17330case "(($ac_try" in 17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17332 *) ac_try_echo=$ac_try;; 17333esac 17334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17335$as_echo "$ac_try_echo") >&5 17336 (eval "$ac_link") 2>conftest.er1 17337 ac_status=$? 17338 grep -v '^ *+' conftest.er1 >conftest.err 17339 rm -f conftest.er1 17340 cat conftest.err >&5 17341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17342 (exit $ac_status); } && { 17343 test -z "$ac_c_werror_flag" || 17344 test ! -s conftest.err 17345 } && test -s conftest$ac_exeext && { 17346 test "$cross_compiling" = yes || 17347 $as_test_x conftest$ac_exeext 17348 }; then 17349 ac_cv_lib_dnet_stub_dnet_ntoa=yes 17350else 17351 $as_echo "$as_me: failed program was:" >&5 17352sed 's/^/| /' conftest.$ac_ext >&5 17353 17354 ac_cv_lib_dnet_stub_dnet_ntoa=no 17355fi 17356 17357rm -rf conftest.dSYM 17358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17359 conftest$ac_exeext conftest.$ac_ext 17360LIBS=$ac_check_lib_save_LIBS 17361fi 17362{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 17363$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 17364if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then 17365 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 17366fi 17367 17368 fi 17369fi 17370 17371rm -rf conftest.dSYM 17372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17373 conftest$ac_exeext conftest.$ac_ext 17374 LIBS="$ac_xsave_LIBS" 17375 17376 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 17377 # to get the SysV transport functions. 17378 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 17379 # needs -lnsl. 17380 # The nsl library prevents programs from opening the X display 17381 # on Irix 5.2, according to T.E. Dickey. 17382 # The functions gethostbyname, getservbyname, and inet_addr are 17383 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 17384 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5 17385$as_echo_n "checking for gethostbyname... " >&6; } 17386if test "${ac_cv_func_gethostbyname+set}" = set; then 17387 $as_echo_n "(cached) " >&6 17388else 17389 cat >conftest.$ac_ext <<_ACEOF 17390/* confdefs.h. */ 17391_ACEOF 17392cat confdefs.h >>conftest.$ac_ext 17393cat >>conftest.$ac_ext <<_ACEOF 17394/* end confdefs.h. */ 17395/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 17396 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17397#define gethostbyname innocuous_gethostbyname 17398 17399/* System header to define __stub macros and hopefully few prototypes, 17400 which can conflict with char gethostbyname (); below. 17401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17402 <limits.h> exists even on freestanding compilers. */ 17403 17404#ifdef __STDC__ 17405# include <limits.h> 17406#else 17407# include <assert.h> 17408#endif 17409 17410#undef gethostbyname 17411 17412/* Override any GCC internal prototype to avoid an error. 17413 Use char because int might match the return type of a GCC 17414 builtin and then its argument prototype would still apply. */ 17415#ifdef __cplusplus 17416extern "C" 17417#endif 17418char gethostbyname (); 17419/* The GNU C library defines this for functions which it implements 17420 to always fail with ENOSYS. Some functions are actually named 17421 something starting with __ and the normal name is an alias. */ 17422#if defined __stub_gethostbyname || defined __stub___gethostbyname 17423choke me 17424#endif 17425 17426int 17427main () 17428{ 17429return gethostbyname (); 17430 ; 17431 return 0; 17432} 17433_ACEOF 17434rm -f conftest.$ac_objext conftest$ac_exeext 17435if { (ac_try="$ac_link" 17436case "(($ac_try" in 17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17438 *) ac_try_echo=$ac_try;; 17439esac 17440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17441$as_echo "$ac_try_echo") >&5 17442 (eval "$ac_link") 2>conftest.er1 17443 ac_status=$? 17444 grep -v '^ *+' conftest.er1 >conftest.err 17445 rm -f conftest.er1 17446 cat conftest.err >&5 17447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17448 (exit $ac_status); } && { 17449 test -z "$ac_c_werror_flag" || 17450 test ! -s conftest.err 17451 } && test -s conftest$ac_exeext && { 17452 test "$cross_compiling" = yes || 17453 $as_test_x conftest$ac_exeext 17454 }; then 17455 ac_cv_func_gethostbyname=yes 17456else 17457 $as_echo "$as_me: failed program was:" >&5 17458sed 's/^/| /' conftest.$ac_ext >&5 17459 17460 ac_cv_func_gethostbyname=no 17461fi 17462 17463rm -rf conftest.dSYM 17464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17465 conftest$ac_exeext conftest.$ac_ext 17466fi 17467{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 17468$as_echo "$ac_cv_func_gethostbyname" >&6; } 17469 17470 if test $ac_cv_func_gethostbyname = no; then 17471 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 17472$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 17473if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 17474 $as_echo_n "(cached) " >&6 17475else 17476 ac_check_lib_save_LIBS=$LIBS 17477LIBS="-lnsl $LIBS" 17478cat >conftest.$ac_ext <<_ACEOF 17479/* confdefs.h. */ 17480_ACEOF 17481cat confdefs.h >>conftest.$ac_ext 17482cat >>conftest.$ac_ext <<_ACEOF 17483/* end confdefs.h. */ 17484 17485/* Override any GCC internal prototype to avoid an error. 17486 Use char because int might match the return type of a GCC 17487 builtin and then its argument prototype would still apply. */ 17488#ifdef __cplusplus 17489extern "C" 17490#endif 17491char gethostbyname (); 17492int 17493main () 17494{ 17495return gethostbyname (); 17496 ; 17497 return 0; 17498} 17499_ACEOF 17500rm -f conftest.$ac_objext conftest$ac_exeext 17501if { (ac_try="$ac_link" 17502case "(($ac_try" in 17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17504 *) ac_try_echo=$ac_try;; 17505esac 17506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17507$as_echo "$ac_try_echo") >&5 17508 (eval "$ac_link") 2>conftest.er1 17509 ac_status=$? 17510 grep -v '^ *+' conftest.er1 >conftest.err 17511 rm -f conftest.er1 17512 cat conftest.err >&5 17513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17514 (exit $ac_status); } && { 17515 test -z "$ac_c_werror_flag" || 17516 test ! -s conftest.err 17517 } && test -s conftest$ac_exeext && { 17518 test "$cross_compiling" = yes || 17519 $as_test_x conftest$ac_exeext 17520 }; then 17521 ac_cv_lib_nsl_gethostbyname=yes 17522else 17523 $as_echo "$as_me: failed program was:" >&5 17524sed 's/^/| /' conftest.$ac_ext >&5 17525 17526 ac_cv_lib_nsl_gethostbyname=no 17527fi 17528 17529rm -rf conftest.dSYM 17530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17531 conftest$ac_exeext conftest.$ac_ext 17532LIBS=$ac_check_lib_save_LIBS 17533fi 17534{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 17535$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 17536if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then 17537 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 17538fi 17539 17540 if test $ac_cv_lib_nsl_gethostbyname = no; then 17541 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 17542$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 17543if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 17544 $as_echo_n "(cached) " >&6 17545else 17546 ac_check_lib_save_LIBS=$LIBS 17547LIBS="-lbsd $LIBS" 17548cat >conftest.$ac_ext <<_ACEOF 17549/* confdefs.h. */ 17550_ACEOF 17551cat confdefs.h >>conftest.$ac_ext 17552cat >>conftest.$ac_ext <<_ACEOF 17553/* end confdefs.h. */ 17554 17555/* Override any GCC internal prototype to avoid an error. 17556 Use char because int might match the return type of a GCC 17557 builtin and then its argument prototype would still apply. */ 17558#ifdef __cplusplus 17559extern "C" 17560#endif 17561char gethostbyname (); 17562int 17563main () 17564{ 17565return gethostbyname (); 17566 ; 17567 return 0; 17568} 17569_ACEOF 17570rm -f conftest.$ac_objext conftest$ac_exeext 17571if { (ac_try="$ac_link" 17572case "(($ac_try" in 17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17574 *) ac_try_echo=$ac_try;; 17575esac 17576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17577$as_echo "$ac_try_echo") >&5 17578 (eval "$ac_link") 2>conftest.er1 17579 ac_status=$? 17580 grep -v '^ *+' conftest.er1 >conftest.err 17581 rm -f conftest.er1 17582 cat conftest.err >&5 17583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17584 (exit $ac_status); } && { 17585 test -z "$ac_c_werror_flag" || 17586 test ! -s conftest.err 17587 } && test -s conftest$ac_exeext && { 17588 test "$cross_compiling" = yes || 17589 $as_test_x conftest$ac_exeext 17590 }; then 17591 ac_cv_lib_bsd_gethostbyname=yes 17592else 17593 $as_echo "$as_me: failed program was:" >&5 17594sed 's/^/| /' conftest.$ac_ext >&5 17595 17596 ac_cv_lib_bsd_gethostbyname=no 17597fi 17598 17599rm -rf conftest.dSYM 17600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17601 conftest$ac_exeext conftest.$ac_ext 17602LIBS=$ac_check_lib_save_LIBS 17603fi 17604{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 17605$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 17606if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then 17607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 17608fi 17609 17610 fi 17611 fi 17612 17613 # lieder@skyler.mavd.honeywell.com says without -lsocket, 17614 # socket/setsockopt and other routines are undefined under SCO ODT 17615 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 17616 # on later versions), says Simon Leinen: it contains gethostby* 17617 # variants that don't use the name server (or something). -lsocket 17618 # must be given before -lnsl if both are needed. We assume that 17619 # if connect needs -lnsl, so does gethostbyname. 17620 { $as_echo "$as_me:$LINENO: checking for connect" >&5 17621$as_echo_n "checking for connect... " >&6; } 17622if test "${ac_cv_func_connect+set}" = set; then 17623 $as_echo_n "(cached) " >&6 17624else 17625 cat >conftest.$ac_ext <<_ACEOF 17626/* confdefs.h. */ 17627_ACEOF 17628cat confdefs.h >>conftest.$ac_ext 17629cat >>conftest.$ac_ext <<_ACEOF 17630/* end confdefs.h. */ 17631/* Define connect to an innocuous variant, in case <limits.h> declares connect. 17632 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17633#define connect innocuous_connect 17634 17635/* System header to define __stub macros and hopefully few prototypes, 17636 which can conflict with char connect (); below. 17637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17638 <limits.h> exists even on freestanding compilers. */ 17639 17640#ifdef __STDC__ 17641# include <limits.h> 17642#else 17643# include <assert.h> 17644#endif 17645 17646#undef connect 17647 17648/* Override any GCC internal prototype to avoid an error. 17649 Use char because int might match the return type of a GCC 17650 builtin and then its argument prototype would still apply. */ 17651#ifdef __cplusplus 17652extern "C" 17653#endif 17654char connect (); 17655/* The GNU C library defines this for functions which it implements 17656 to always fail with ENOSYS. Some functions are actually named 17657 something starting with __ and the normal name is an alias. */ 17658#if defined __stub_connect || defined __stub___connect 17659choke me 17660#endif 17661 17662int 17663main () 17664{ 17665return connect (); 17666 ; 17667 return 0; 17668} 17669_ACEOF 17670rm -f conftest.$ac_objext conftest$ac_exeext 17671if { (ac_try="$ac_link" 17672case "(($ac_try" in 17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17674 *) ac_try_echo=$ac_try;; 17675esac 17676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17677$as_echo "$ac_try_echo") >&5 17678 (eval "$ac_link") 2>conftest.er1 17679 ac_status=$? 17680 grep -v '^ *+' conftest.er1 >conftest.err 17681 rm -f conftest.er1 17682 cat conftest.err >&5 17683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17684 (exit $ac_status); } && { 17685 test -z "$ac_c_werror_flag" || 17686 test ! -s conftest.err 17687 } && test -s conftest$ac_exeext && { 17688 test "$cross_compiling" = yes || 17689 $as_test_x conftest$ac_exeext 17690 }; then 17691 ac_cv_func_connect=yes 17692else 17693 $as_echo "$as_me: failed program was:" >&5 17694sed 's/^/| /' conftest.$ac_ext >&5 17695 17696 ac_cv_func_connect=no 17697fi 17698 17699rm -rf conftest.dSYM 17700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17701 conftest$ac_exeext conftest.$ac_ext 17702fi 17703{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 17704$as_echo "$ac_cv_func_connect" >&6; } 17705 17706 if test $ac_cv_func_connect = no; then 17707 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 17708$as_echo_n "checking for connect in -lsocket... " >&6; } 17709if test "${ac_cv_lib_socket_connect+set}" = set; then 17710 $as_echo_n "(cached) " >&6 17711else 17712 ac_check_lib_save_LIBS=$LIBS 17713LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 17714cat >conftest.$ac_ext <<_ACEOF 17715/* confdefs.h. */ 17716_ACEOF 17717cat confdefs.h >>conftest.$ac_ext 17718cat >>conftest.$ac_ext <<_ACEOF 17719/* end confdefs.h. */ 17720 17721/* Override any GCC internal prototype to avoid an error. 17722 Use char because int might match the return type of a GCC 17723 builtin and then its argument prototype would still apply. */ 17724#ifdef __cplusplus 17725extern "C" 17726#endif 17727char connect (); 17728int 17729main () 17730{ 17731return connect (); 17732 ; 17733 return 0; 17734} 17735_ACEOF 17736rm -f conftest.$ac_objext conftest$ac_exeext 17737if { (ac_try="$ac_link" 17738case "(($ac_try" in 17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17740 *) ac_try_echo=$ac_try;; 17741esac 17742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17743$as_echo "$ac_try_echo") >&5 17744 (eval "$ac_link") 2>conftest.er1 17745 ac_status=$? 17746 grep -v '^ *+' conftest.er1 >conftest.err 17747 rm -f conftest.er1 17748 cat conftest.err >&5 17749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17750 (exit $ac_status); } && { 17751 test -z "$ac_c_werror_flag" || 17752 test ! -s conftest.err 17753 } && test -s conftest$ac_exeext && { 17754 test "$cross_compiling" = yes || 17755 $as_test_x conftest$ac_exeext 17756 }; then 17757 ac_cv_lib_socket_connect=yes 17758else 17759 $as_echo "$as_me: failed program was:" >&5 17760sed 's/^/| /' conftest.$ac_ext >&5 17761 17762 ac_cv_lib_socket_connect=no 17763fi 17764 17765rm -rf conftest.dSYM 17766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17767 conftest$ac_exeext conftest.$ac_ext 17768LIBS=$ac_check_lib_save_LIBS 17769fi 17770{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 17771$as_echo "$ac_cv_lib_socket_connect" >&6; } 17772if test "x$ac_cv_lib_socket_connect" = x""yes; then 17773 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 17774fi 17775 17776 fi 17777 17778 # Guillermo Gomez says -lposix is necessary on A/UX. 17779 { $as_echo "$as_me:$LINENO: checking for remove" >&5 17780$as_echo_n "checking for remove... " >&6; } 17781if test "${ac_cv_func_remove+set}" = set; then 17782 $as_echo_n "(cached) " >&6 17783else 17784 cat >conftest.$ac_ext <<_ACEOF 17785/* confdefs.h. */ 17786_ACEOF 17787cat confdefs.h >>conftest.$ac_ext 17788cat >>conftest.$ac_ext <<_ACEOF 17789/* end confdefs.h. */ 17790/* Define remove to an innocuous variant, in case <limits.h> declares remove. 17791 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17792#define remove innocuous_remove 17793 17794/* System header to define __stub macros and hopefully few prototypes, 17795 which can conflict with char remove (); below. 17796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17797 <limits.h> exists even on freestanding compilers. */ 17798 17799#ifdef __STDC__ 17800# include <limits.h> 17801#else 17802# include <assert.h> 17803#endif 17804 17805#undef remove 17806 17807/* Override any GCC internal prototype to avoid an error. 17808 Use char because int might match the return type of a GCC 17809 builtin and then its argument prototype would still apply. */ 17810#ifdef __cplusplus 17811extern "C" 17812#endif 17813char remove (); 17814/* The GNU C library defines this for functions which it implements 17815 to always fail with ENOSYS. Some functions are actually named 17816 something starting with __ and the normal name is an alias. */ 17817#if defined __stub_remove || defined __stub___remove 17818choke me 17819#endif 17820 17821int 17822main () 17823{ 17824return remove (); 17825 ; 17826 return 0; 17827} 17828_ACEOF 17829rm -f conftest.$ac_objext conftest$ac_exeext 17830if { (ac_try="$ac_link" 17831case "(($ac_try" in 17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17833 *) ac_try_echo=$ac_try;; 17834esac 17835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17836$as_echo "$ac_try_echo") >&5 17837 (eval "$ac_link") 2>conftest.er1 17838 ac_status=$? 17839 grep -v '^ *+' conftest.er1 >conftest.err 17840 rm -f conftest.er1 17841 cat conftest.err >&5 17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17843 (exit $ac_status); } && { 17844 test -z "$ac_c_werror_flag" || 17845 test ! -s conftest.err 17846 } && test -s conftest$ac_exeext && { 17847 test "$cross_compiling" = yes || 17848 $as_test_x conftest$ac_exeext 17849 }; then 17850 ac_cv_func_remove=yes 17851else 17852 $as_echo "$as_me: failed program was:" >&5 17853sed 's/^/| /' conftest.$ac_ext >&5 17854 17855 ac_cv_func_remove=no 17856fi 17857 17858rm -rf conftest.dSYM 17859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17860 conftest$ac_exeext conftest.$ac_ext 17861fi 17862{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 17863$as_echo "$ac_cv_func_remove" >&6; } 17864 17865 if test $ac_cv_func_remove = no; then 17866 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5 17867$as_echo_n "checking for remove in -lposix... " >&6; } 17868if test "${ac_cv_lib_posix_remove+set}" = set; then 17869 $as_echo_n "(cached) " >&6 17870else 17871 ac_check_lib_save_LIBS=$LIBS 17872LIBS="-lposix $LIBS" 17873cat >conftest.$ac_ext <<_ACEOF 17874/* confdefs.h. */ 17875_ACEOF 17876cat confdefs.h >>conftest.$ac_ext 17877cat >>conftest.$ac_ext <<_ACEOF 17878/* end confdefs.h. */ 17879 17880/* Override any GCC internal prototype to avoid an error. 17881 Use char because int might match the return type of a GCC 17882 builtin and then its argument prototype would still apply. */ 17883#ifdef __cplusplus 17884extern "C" 17885#endif 17886char remove (); 17887int 17888main () 17889{ 17890return remove (); 17891 ; 17892 return 0; 17893} 17894_ACEOF 17895rm -f conftest.$ac_objext conftest$ac_exeext 17896if { (ac_try="$ac_link" 17897case "(($ac_try" in 17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17899 *) ac_try_echo=$ac_try;; 17900esac 17901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17902$as_echo "$ac_try_echo") >&5 17903 (eval "$ac_link") 2>conftest.er1 17904 ac_status=$? 17905 grep -v '^ *+' conftest.er1 >conftest.err 17906 rm -f conftest.er1 17907 cat conftest.err >&5 17908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17909 (exit $ac_status); } && { 17910 test -z "$ac_c_werror_flag" || 17911 test ! -s conftest.err 17912 } && test -s conftest$ac_exeext && { 17913 test "$cross_compiling" = yes || 17914 $as_test_x conftest$ac_exeext 17915 }; then 17916 ac_cv_lib_posix_remove=yes 17917else 17918 $as_echo "$as_me: failed program was:" >&5 17919sed 's/^/| /' conftest.$ac_ext >&5 17920 17921 ac_cv_lib_posix_remove=no 17922fi 17923 17924rm -rf conftest.dSYM 17925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17926 conftest$ac_exeext conftest.$ac_ext 17927LIBS=$ac_check_lib_save_LIBS 17928fi 17929{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 17930$as_echo "$ac_cv_lib_posix_remove" >&6; } 17931if test "x$ac_cv_lib_posix_remove" = x""yes; then 17932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 17933fi 17934 17935 fi 17936 17937 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 17938 { $as_echo "$as_me:$LINENO: checking for shmat" >&5 17939$as_echo_n "checking for shmat... " >&6; } 17940if test "${ac_cv_func_shmat+set}" = set; then 17941 $as_echo_n "(cached) " >&6 17942else 17943 cat >conftest.$ac_ext <<_ACEOF 17944/* confdefs.h. */ 17945_ACEOF 17946cat confdefs.h >>conftest.$ac_ext 17947cat >>conftest.$ac_ext <<_ACEOF 17948/* end confdefs.h. */ 17949/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 17950 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17951#define shmat innocuous_shmat 17952 17953/* System header to define __stub macros and hopefully few prototypes, 17954 which can conflict with char shmat (); below. 17955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17956 <limits.h> exists even on freestanding compilers. */ 17957 17958#ifdef __STDC__ 17959# include <limits.h> 17960#else 17961# include <assert.h> 17962#endif 17963 17964#undef shmat 17965 17966/* Override any GCC internal prototype to avoid an error. 17967 Use char because int might match the return type of a GCC 17968 builtin and then its argument prototype would still apply. */ 17969#ifdef __cplusplus 17970extern "C" 17971#endif 17972char shmat (); 17973/* The GNU C library defines this for functions which it implements 17974 to always fail with ENOSYS. Some functions are actually named 17975 something starting with __ and the normal name is an alias. */ 17976#if defined __stub_shmat || defined __stub___shmat 17977choke me 17978#endif 17979 17980int 17981main () 17982{ 17983return shmat (); 17984 ; 17985 return 0; 17986} 17987_ACEOF 17988rm -f conftest.$ac_objext conftest$ac_exeext 17989if { (ac_try="$ac_link" 17990case "(($ac_try" in 17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17992 *) ac_try_echo=$ac_try;; 17993esac 17994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17995$as_echo "$ac_try_echo") >&5 17996 (eval "$ac_link") 2>conftest.er1 17997 ac_status=$? 17998 grep -v '^ *+' conftest.er1 >conftest.err 17999 rm -f conftest.er1 18000 cat conftest.err >&5 18001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18002 (exit $ac_status); } && { 18003 test -z "$ac_c_werror_flag" || 18004 test ! -s conftest.err 18005 } && test -s conftest$ac_exeext && { 18006 test "$cross_compiling" = yes || 18007 $as_test_x conftest$ac_exeext 18008 }; then 18009 ac_cv_func_shmat=yes 18010else 18011 $as_echo "$as_me: failed program was:" >&5 18012sed 's/^/| /' conftest.$ac_ext >&5 18013 18014 ac_cv_func_shmat=no 18015fi 18016 18017rm -rf conftest.dSYM 18018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18019 conftest$ac_exeext conftest.$ac_ext 18020fi 18021{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 18022$as_echo "$ac_cv_func_shmat" >&6; } 18023 18024 if test $ac_cv_func_shmat = no; then 18025 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 18026$as_echo_n "checking for shmat in -lipc... " >&6; } 18027if test "${ac_cv_lib_ipc_shmat+set}" = set; then 18028 $as_echo_n "(cached) " >&6 18029else 18030 ac_check_lib_save_LIBS=$LIBS 18031LIBS="-lipc $LIBS" 18032cat >conftest.$ac_ext <<_ACEOF 18033/* confdefs.h. */ 18034_ACEOF 18035cat confdefs.h >>conftest.$ac_ext 18036cat >>conftest.$ac_ext <<_ACEOF 18037/* end confdefs.h. */ 18038 18039/* Override any GCC internal prototype to avoid an error. 18040 Use char because int might match the return type of a GCC 18041 builtin and then its argument prototype would still apply. */ 18042#ifdef __cplusplus 18043extern "C" 18044#endif 18045char shmat (); 18046int 18047main () 18048{ 18049return shmat (); 18050 ; 18051 return 0; 18052} 18053_ACEOF 18054rm -f conftest.$ac_objext conftest$ac_exeext 18055if { (ac_try="$ac_link" 18056case "(($ac_try" in 18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18058 *) ac_try_echo=$ac_try;; 18059esac 18060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18061$as_echo "$ac_try_echo") >&5 18062 (eval "$ac_link") 2>conftest.er1 18063 ac_status=$? 18064 grep -v '^ *+' conftest.er1 >conftest.err 18065 rm -f conftest.er1 18066 cat conftest.err >&5 18067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18068 (exit $ac_status); } && { 18069 test -z "$ac_c_werror_flag" || 18070 test ! -s conftest.err 18071 } && test -s conftest$ac_exeext && { 18072 test "$cross_compiling" = yes || 18073 $as_test_x conftest$ac_exeext 18074 }; then 18075 ac_cv_lib_ipc_shmat=yes 18076else 18077 $as_echo "$as_me: failed program was:" >&5 18078sed 's/^/| /' conftest.$ac_ext >&5 18079 18080 ac_cv_lib_ipc_shmat=no 18081fi 18082 18083rm -rf conftest.dSYM 18084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18085 conftest$ac_exeext conftest.$ac_ext 18086LIBS=$ac_check_lib_save_LIBS 18087fi 18088{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 18089$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 18090if test "x$ac_cv_lib_ipc_shmat" = x""yes; then 18091 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 18092fi 18093 18094 fi 18095 fi 18096 18097 # Check for libraries that X11R6 Xt/Xaw programs need. 18098 ac_save_LDFLAGS=$LDFLAGS 18099 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 18100 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 18101 # check for ICE first), but we must link in the order -lSM -lICE or 18102 # we get undefined symbols. So assume we have SM if we have ICE. 18103 # These have to be linked with before -lX11, unlike the other 18104 # libraries we check for below, so use a different variable. 18105 # John Interrante, Karl Berry 18106 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 18107$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 18108if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 18109 $as_echo_n "(cached) " >&6 18110else 18111 ac_check_lib_save_LIBS=$LIBS 18112LIBS="-lICE $X_EXTRA_LIBS $LIBS" 18113cat >conftest.$ac_ext <<_ACEOF 18114/* confdefs.h. */ 18115_ACEOF 18116cat confdefs.h >>conftest.$ac_ext 18117cat >>conftest.$ac_ext <<_ACEOF 18118/* end confdefs.h. */ 18119 18120/* Override any GCC internal prototype to avoid an error. 18121 Use char because int might match the return type of a GCC 18122 builtin and then its argument prototype would still apply. */ 18123#ifdef __cplusplus 18124extern "C" 18125#endif 18126char IceConnectionNumber (); 18127int 18128main () 18129{ 18130return IceConnectionNumber (); 18131 ; 18132 return 0; 18133} 18134_ACEOF 18135rm -f conftest.$ac_objext conftest$ac_exeext 18136if { (ac_try="$ac_link" 18137case "(($ac_try" in 18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18139 *) ac_try_echo=$ac_try;; 18140esac 18141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18142$as_echo "$ac_try_echo") >&5 18143 (eval "$ac_link") 2>conftest.er1 18144 ac_status=$? 18145 grep -v '^ *+' conftest.er1 >conftest.err 18146 rm -f conftest.er1 18147 cat conftest.err >&5 18148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18149 (exit $ac_status); } && { 18150 test -z "$ac_c_werror_flag" || 18151 test ! -s conftest.err 18152 } && test -s conftest$ac_exeext && { 18153 test "$cross_compiling" = yes || 18154 $as_test_x conftest$ac_exeext 18155 }; then 18156 ac_cv_lib_ICE_IceConnectionNumber=yes 18157else 18158 $as_echo "$as_me: failed program was:" >&5 18159sed 's/^/| /' conftest.$ac_ext >&5 18160 18161 ac_cv_lib_ICE_IceConnectionNumber=no 18162fi 18163 18164rm -rf conftest.dSYM 18165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18166 conftest$ac_exeext conftest.$ac_ext 18167LIBS=$ac_check_lib_save_LIBS 18168fi 18169{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 18170$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 18171if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then 18172 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 18173fi 18174 18175 LDFLAGS=$ac_save_LDFLAGS 18176 18177fi 18178 18179X_LDFLAGS="$X_LDFLAGS -lX11 -lXext" 18180 18181saved_CFLAGS="$CFLAGS" 18182saved_LDFLAGS="$LDFLAGS" 18183saved_LIBS="$LIBS" 18184 18185CFLAGS="$CFLAGS $X_CFLAGS" 18186LDFLAGS="$X_LDFLAGS $X_LIBS $LDFLAGS" 18187 18188have_x11=true 18189 18190{ $as_echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5 18191$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; } 18192if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 18193 $as_echo_n "(cached) " >&6 18194else 18195 ac_check_lib_save_LIBS=$LIBS 18196LIBS="-lX11 $LIBS" 18197cat >conftest.$ac_ext <<_ACEOF 18198/* confdefs.h. */ 18199_ACEOF 18200cat confdefs.h >>conftest.$ac_ext 18201cat >>conftest.$ac_ext <<_ACEOF 18202/* end confdefs.h. */ 18203 18204/* Override any GCC internal prototype to avoid an error. 18205 Use char because int might match the return type of a GCC 18206 builtin and then its argument prototype would still apply. */ 18207#ifdef __cplusplus 18208extern "C" 18209#endif 18210char XOpenDisplay (); 18211int 18212main () 18213{ 18214return XOpenDisplay (); 18215 ; 18216 return 0; 18217} 18218_ACEOF 18219rm -f conftest.$ac_objext conftest$ac_exeext 18220if { (ac_try="$ac_link" 18221case "(($ac_try" in 18222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18223 *) ac_try_echo=$ac_try;; 18224esac 18225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18226$as_echo "$ac_try_echo") >&5 18227 (eval "$ac_link") 2>conftest.er1 18228 ac_status=$? 18229 grep -v '^ *+' conftest.er1 >conftest.err 18230 rm -f conftest.er1 18231 cat conftest.err >&5 18232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18233 (exit $ac_status); } && { 18234 test -z "$ac_c_werror_flag" || 18235 test ! -s conftest.err 18236 } && test -s conftest$ac_exeext && { 18237 test "$cross_compiling" = yes || 18238 $as_test_x conftest$ac_exeext 18239 }; then 18240 ac_cv_lib_X11_XOpenDisplay=yes 18241else 18242 $as_echo "$as_me: failed program was:" >&5 18243sed 's/^/| /' conftest.$ac_ext >&5 18244 18245 ac_cv_lib_X11_XOpenDisplay=no 18246fi 18247 18248rm -rf conftest.dSYM 18249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18250 conftest$ac_exeext conftest.$ac_ext 18251LIBS=$ac_check_lib_save_LIBS 18252fi 18253{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5 18254$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; } 18255if test "x$ac_cv_lib_X11_XOpenDisplay" = x""yes; then 18256 cat >>confdefs.h <<_ACEOF 18257#define HAVE_LIBX11 1 18258_ACEOF 18259 18260 LIBS="-lX11 $LIBS" 18261 18262else 18263 { $as_echo "$as_me:$LINENO: WARNING: X11 is not found, it is required by framebuffer" >&5 18264$as_echo "$as_me: WARNING: X11 is not found, it is required by framebuffer" >&2;};have_x11=false 18265fi 18266 18267 18268{ $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5 18269$as_echo_n "checking for XShmAttach in -lXext... " >&6; } 18270if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then 18271 $as_echo_n "(cached) " >&6 18272else 18273 ac_check_lib_save_LIBS=$LIBS 18274LIBS="-lXext $LIBS" 18275cat >conftest.$ac_ext <<_ACEOF 18276/* confdefs.h. */ 18277_ACEOF 18278cat confdefs.h >>conftest.$ac_ext 18279cat >>conftest.$ac_ext <<_ACEOF 18280/* end confdefs.h. */ 18281 18282/* Override any GCC internal prototype to avoid an error. 18283 Use char because int might match the return type of a GCC 18284 builtin and then its argument prototype would still apply. */ 18285#ifdef __cplusplus 18286extern "C" 18287#endif 18288char XShmAttach (); 18289int 18290main () 18291{ 18292return XShmAttach (); 18293 ; 18294 return 0; 18295} 18296_ACEOF 18297rm -f conftest.$ac_objext conftest$ac_exeext 18298if { (ac_try="$ac_link" 18299case "(($ac_try" in 18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18301 *) ac_try_echo=$ac_try;; 18302esac 18303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18304$as_echo "$ac_try_echo") >&5 18305 (eval "$ac_link") 2>conftest.er1 18306 ac_status=$? 18307 grep -v '^ *+' conftest.er1 >conftest.err 18308 rm -f conftest.er1 18309 cat conftest.err >&5 18310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18311 (exit $ac_status); } && { 18312 test -z "$ac_c_werror_flag" || 18313 test ! -s conftest.err 18314 } && test -s conftest$ac_exeext && { 18315 test "$cross_compiling" = yes || 18316 $as_test_x conftest$ac_exeext 18317 }; then 18318 ac_cv_lib_Xext_XShmAttach=yes 18319else 18320 $as_echo "$as_me: failed program was:" >&5 18321sed 's/^/| /' conftest.$ac_ext >&5 18322 18323 ac_cv_lib_Xext_XShmAttach=no 18324fi 18325 18326rm -rf conftest.dSYM 18327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18328 conftest$ac_exeext conftest.$ac_ext 18329LIBS=$ac_check_lib_save_LIBS 18330fi 18331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5 18332$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } 18333if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then 18334 cat >>confdefs.h <<_ACEOF 18335#define HAVE_LIBXEXT 1 18336_ACEOF 18337 18338 LIBS="-lXext $LIBS" 18339 18340else 18341 { $as_echo "$as_me:$LINENO: WARNING: Xext is not found, it is required by framebuffer" >&5 18342$as_echo "$as_me: WARNING: Xext is not found, it is required by framebuffer" >&2;};have_x11=false 18343fi 18344 18345 if test "x$have_x11" = "xtrue"; then 18346 BUILD_FRAMEBUFFER_TRUE= 18347 BUILD_FRAMEBUFFER_FALSE='#' 18348else 18349 BUILD_FRAMEBUFFER_TRUE='#' 18350 BUILD_FRAMEBUFFER_FALSE= 18351fi 18352 18353 18354CFLAGS="$saved_CFLAGS" 18355LDFLAGS="$saved_LDFLAGS" 18356LIBS="$saved_LIBS" 18357 18358 18359 18360 18361have_fltk=false 18362 18363# Extract the first word of "fltk-config", so it can be a program name with args. 18364set dummy fltk-config; ac_word=$2 18365{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 18366$as_echo_n "checking for $ac_word... " >&6; } 18367if test "${ac_cv_path_FLTK_CONFIG+set}" = set; then 18368 $as_echo_n "(cached) " >&6 18369else 18370 case $FLTK_CONFIG in 18371 [\\/]* | ?:[\\/]*) 18372 ac_cv_path_FLTK_CONFIG="$FLTK_CONFIG" # Let the user override the test with a path. 18373 ;; 18374 *) 18375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18376for as_dir in $PATH 18377do 18378 IFS=$as_save_IFS 18379 test -z "$as_dir" && as_dir=. 18380 for ac_exec_ext in '' $ac_executable_extensions; do 18381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18382 ac_cv_path_FLTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18384 break 2 18385 fi 18386done 18387done 18388IFS=$as_save_IFS 18389 18390 test -z "$ac_cv_path_FLTK_CONFIG" && ac_cv_path_FLTK_CONFIG="no" 18391 ;; 18392esac 18393fi 18394FLTK_CONFIG=$ac_cv_path_FLTK_CONFIG 18395if test -n "$FLTK_CONFIG"; then 18396 { $as_echo "$as_me:$LINENO: result: $FLTK_CONFIG" >&5 18397$as_echo "$FLTK_CONFIG" >&6; } 18398else 18399 { $as_echo "$as_me:$LINENO: result: no" >&5 18400$as_echo "no" >&6; } 18401fi 18402 18403 18404 18405# Check whether --with-fltk-config was given. 18406if test "${with_fltk_config+set}" = set; then 18407 withval=$with_fltk_config; FLTK_CONFIG="$withval" 18408fi 18409 18410# Check whether --enable-static-fltk was given. 18411if test "${enable_static_fltk+set}" = set; then 18412 enableval=$enable_static_fltk; STATIC_FLTK=true 18413else 18414 STATIC_FLTK=false 18415fi 18416 18417 18418 if test x$FLTK_CONFIG != xno ; then 18419 if test x$STATIC_FLTK != xtrue ; then 18420 FLTK_CXXFLAGS="`$FLTK_CONFIG --use-gl --cxxflags`" 18421 FLTK_LDFLAGS="`$FLTK_CONFIG --use-gl --ldstaticflags`" 18422 else 18423 FLTK_CXXFLAGS="`$FLTK_CONFIG --use-gl --cxxflags`" 18424 FLTK_LDFLAGS="`$FLTK_CONFIG --use-gl --ldflags`" 18425 fi 18426 else 18427 FLTK_CXXFLAGS="" 18428 FLTK_LDFLAGS="" 18429 fi 18430 18431 { $as_echo "$as_me:$LINENO: checking for FLTK with GL support" >&5 18432$as_echo_n "checking for FLTK with GL support... " >&6; } 18433 no_fltk="" 18434 18435 ac_save_CXXFLAGS="$CXXFLAGS" 18436 ac_save_LDFLAGS="$LDFLAGS" 18437 CXXFLAGS="$CXXFLAGS $FLTK_CXXFLAGS" 18438 LDFLAGS="$LDFLAGS $FLTK_LDFLAGS" 18439 18440 18441 ac_ext=cpp 18442ac_cpp='$CXXCPP $CPPFLAGS' 18443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18446 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 18454#include <stdlib.h> 18455#include <FL/Fl.H> 18456#include <FL/Fl_Gl_Window.H> 18457int 18458main () 18459{ 18460 18461 Fl_Gl_Window foo (); 18462 18463 ; 18464 return 0; 18465} 18466_ACEOF 18467rm -f conftest.$ac_objext conftest$ac_exeext 18468if { (ac_try="$ac_link" 18469case "(($ac_try" in 18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18471 *) ac_try_echo=$ac_try;; 18472esac 18473eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18474$as_echo "$ac_try_echo") >&5 18475 (eval "$ac_link") 2>conftest.er1 18476 ac_status=$? 18477 grep -v '^ *+' conftest.er1 >conftest.err 18478 rm -f conftest.er1 18479 cat conftest.err >&5 18480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18481 (exit $ac_status); } && { 18482 test -z "$ac_cxx_werror_flag" || 18483 test ! -s conftest.err 18484 } && test -s conftest$ac_exeext && { 18485 test "$cross_compiling" = yes || 18486 $as_test_x conftest$ac_exeext 18487 }; then 18488 : 18489else 18490 $as_echo "$as_me: failed program was:" >&5 18491sed 's/^/| /' conftest.$ac_ext >&5 18492 18493 no_fltk=yes 18494fi 18495 18496rm -rf conftest.dSYM 18497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18498 conftest$ac_exeext conftest.$ac_ext 18499 ac_ext=c 18500ac_cpp='$CPP $CPPFLAGS' 18501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18503ac_compiler_gnu=$ac_cv_c_compiler_gnu 18504 18505 CXXFLAGS="$ac_save_CXXFLAGS" 18506 LDFLAGS="$ac_save_LDFLAGS" 18507 18508 if test "x$no_fltk" = "x" ; then 18509 { $as_echo "$as_me:$LINENO: result: yes" >&5 18510$as_echo "yes" >&6; } 18511 have_fltk=true 18512 else 18513 { $as_echo "$as_me:$LINENO: result: no" >&5 18514$as_echo "no" >&6; } 18515 FLTK_CXXFLAGS="" 18516 FLTK_LDFLAGS="" 18517 have_fltk=false 18518 fi 18519 18520 if test x$have_fltk = xtrue; then 18521 BUILD_SHOW_TRUE= 18522 BUILD_SHOW_FALSE='#' 18523else 18524 BUILD_SHOW_TRUE='#' 18525 BUILD_SHOW_FALSE= 18526fi 18527 18528 18529 18530saved_LIBS="$LIBS" 18531 18532if test "${ac_cv_header_tiffio_h+set}" = set; then 18533 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 18534$as_echo_n "checking for tiffio.h... " >&6; } 18535if test "${ac_cv_header_tiffio_h+set}" = set; then 18536 $as_echo_n "(cached) " >&6 18537fi 18538{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 18539$as_echo "$ac_cv_header_tiffio_h" >&6; } 18540else 18541 # Is the header compilable? 18542{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5 18543$as_echo_n "checking tiffio.h usability... " >&6; } 18544cat >conftest.$ac_ext <<_ACEOF 18545/* confdefs.h. */ 18546_ACEOF 18547cat confdefs.h >>conftest.$ac_ext 18548cat >>conftest.$ac_ext <<_ACEOF 18549/* end confdefs.h. */ 18550$ac_includes_default 18551#include <tiffio.h> 18552_ACEOF 18553rm -f conftest.$ac_objext 18554if { (ac_try="$ac_compile" 18555case "(($ac_try" in 18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18557 *) ac_try_echo=$ac_try;; 18558esac 18559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18560$as_echo "$ac_try_echo") >&5 18561 (eval "$ac_compile") 2>conftest.er1 18562 ac_status=$? 18563 grep -v '^ *+' conftest.er1 >conftest.err 18564 rm -f conftest.er1 18565 cat conftest.err >&5 18566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18567 (exit $ac_status); } && { 18568 test -z "$ac_c_werror_flag" || 18569 test ! -s conftest.err 18570 } && test -s conftest.$ac_objext; then 18571 ac_header_compiler=yes 18572else 18573 $as_echo "$as_me: failed program was:" >&5 18574sed 's/^/| /' conftest.$ac_ext >&5 18575 18576 ac_header_compiler=no 18577fi 18578 18579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18580{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18581$as_echo "$ac_header_compiler" >&6; } 18582 18583# Is the header present? 18584{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5 18585$as_echo_n "checking tiffio.h presence... " >&6; } 18586cat >conftest.$ac_ext <<_ACEOF 18587/* confdefs.h. */ 18588_ACEOF 18589cat confdefs.h >>conftest.$ac_ext 18590cat >>conftest.$ac_ext <<_ACEOF 18591/* end confdefs.h. */ 18592#include <tiffio.h> 18593_ACEOF 18594if { (ac_try="$ac_cpp conftest.$ac_ext" 18595case "(($ac_try" in 18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18597 *) ac_try_echo=$ac_try;; 18598esac 18599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18600$as_echo "$ac_try_echo") >&5 18601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 18602 ac_status=$? 18603 grep -v '^ *+' conftest.er1 >conftest.err 18604 rm -f conftest.er1 18605 cat conftest.err >&5 18606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18607 (exit $ac_status); } >/dev/null && { 18608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 18609 test ! -s conftest.err 18610 }; then 18611 ac_header_preproc=yes 18612else 18613 $as_echo "$as_me: failed program was:" >&5 18614sed 's/^/| /' conftest.$ac_ext >&5 18615 18616 ac_header_preproc=no 18617fi 18618 18619rm -f conftest.err conftest.$ac_ext 18620{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18621$as_echo "$ac_header_preproc" >&6; } 18622 18623# So? What about this header? 18624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18625 yes:no: ) 18626 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 18627$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 18628 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 18629$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} 18630 ac_header_preproc=yes 18631 ;; 18632 no:yes:* ) 18633 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 18634$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} 18635 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 18636$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} 18637 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 18638$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} 18639 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 18640$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} 18641 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 18642$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} 18643 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 18644$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} 18645 18646 ;; 18647esac 18648{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 18649$as_echo_n "checking for tiffio.h... " >&6; } 18650if test "${ac_cv_header_tiffio_h+set}" = set; then 18651 $as_echo_n "(cached) " >&6 18652else 18653 ac_cv_header_tiffio_h=$ac_header_preproc 18654fi 18655{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 18656$as_echo "$ac_cv_header_tiffio_h" >&6; } 18657 18658fi 18659if test "x$ac_cv_header_tiffio_h" = x""yes; then 18660 : 18661else 18662 { { $as_echo "$as_me:$LINENO: error: tiffio.h not found" >&5 18663$as_echo "$as_me: error: tiffio.h not found" >&2;} 18664 { (exit 1); exit 1; }; } 18665fi 18666 18667 18668 18669{ $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5 18670$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } 18671if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then 18672 $as_echo_n "(cached) " >&6 18673else 18674 ac_check_lib_save_LIBS=$LIBS 18675LIBS="-ltiff $LIBS" 18676cat >conftest.$ac_ext <<_ACEOF 18677/* confdefs.h. */ 18678_ACEOF 18679cat confdefs.h >>conftest.$ac_ext 18680cat >>conftest.$ac_ext <<_ACEOF 18681/* end confdefs.h. */ 18682 18683/* Override any GCC internal prototype to avoid an error. 18684 Use char because int might match the return type of a GCC 18685 builtin and then its argument prototype would still apply. */ 18686#ifdef __cplusplus 18687extern "C" 18688#endif 18689char TIFFOpen (); 18690int 18691main () 18692{ 18693return TIFFOpen (); 18694 ; 18695 return 0; 18696} 18697_ACEOF 18698rm -f conftest.$ac_objext conftest$ac_exeext 18699if { (ac_try="$ac_link" 18700case "(($ac_try" in 18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18702 *) ac_try_echo=$ac_try;; 18703esac 18704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18705$as_echo "$ac_try_echo") >&5 18706 (eval "$ac_link") 2>conftest.er1 18707 ac_status=$? 18708 grep -v '^ *+' conftest.er1 >conftest.err 18709 rm -f conftest.er1 18710 cat conftest.err >&5 18711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18712 (exit $ac_status); } && { 18713 test -z "$ac_c_werror_flag" || 18714 test ! -s conftest.err 18715 } && test -s conftest$ac_exeext && { 18716 test "$cross_compiling" = yes || 18717 $as_test_x conftest$ac_exeext 18718 }; then 18719 ac_cv_lib_tiff_TIFFOpen=yes 18720else 18721 $as_echo "$as_me: failed program was:" >&5 18722sed 's/^/| /' conftest.$ac_ext >&5 18723 18724 ac_cv_lib_tiff_TIFFOpen=no 18725fi 18726 18727rm -rf conftest.dSYM 18728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18729 conftest$ac_exeext conftest.$ac_ext 18730LIBS=$ac_check_lib_save_LIBS 18731fi 18732{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5 18733$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } 18734if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then 18735 cat >>confdefs.h <<_ACEOF 18736#define HAVE_LIBTIFF 1 18737_ACEOF 18738 18739 LIBS="-ltiff $LIBS" 18740 18741else 18742 { { $as_echo "$as_me:$LINENO: error: libtiff not found" >&5 18743$as_echo "$as_me: error: libtiff not found" >&2;} 18744 { (exit 1); exit 1; }; } 18745fi 18746 18747 18748TIFF_LIBS="$LIBS" 18749LIBS="$saved_LIBS" 18750 18751 18752saved_LIBS="$LIBS" 18753 18754have_libpng=true 18755if test "${ac_cv_header_png_h+set}" = set; then 18756 { $as_echo "$as_me:$LINENO: checking for png.h" >&5 18757$as_echo_n "checking for png.h... " >&6; } 18758if test "${ac_cv_header_png_h+set}" = set; then 18759 $as_echo_n "(cached) " >&6 18760fi 18761{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 18762$as_echo "$ac_cv_header_png_h" >&6; } 18763else 18764 # Is the header compilable? 18765{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5 18766$as_echo_n "checking png.h usability... " >&6; } 18767cat >conftest.$ac_ext <<_ACEOF 18768/* confdefs.h. */ 18769_ACEOF 18770cat confdefs.h >>conftest.$ac_ext 18771cat >>conftest.$ac_ext <<_ACEOF 18772/* end confdefs.h. */ 18773$ac_includes_default 18774#include <png.h> 18775_ACEOF 18776rm -f conftest.$ac_objext 18777if { (ac_try="$ac_compile" 18778case "(($ac_try" in 18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18780 *) ac_try_echo=$ac_try;; 18781esac 18782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18783$as_echo "$ac_try_echo") >&5 18784 (eval "$ac_compile") 2>conftest.er1 18785 ac_status=$? 18786 grep -v '^ *+' conftest.er1 >conftest.err 18787 rm -f conftest.er1 18788 cat conftest.err >&5 18789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18790 (exit $ac_status); } && { 18791 test -z "$ac_c_werror_flag" || 18792 test ! -s conftest.err 18793 } && test -s conftest.$ac_objext; then 18794 ac_header_compiler=yes 18795else 18796 $as_echo "$as_me: failed program was:" >&5 18797sed 's/^/| /' conftest.$ac_ext >&5 18798 18799 ac_header_compiler=no 18800fi 18801 18802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18803{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18804$as_echo "$ac_header_compiler" >&6; } 18805 18806# Is the header present? 18807{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5 18808$as_echo_n "checking png.h presence... " >&6; } 18809cat >conftest.$ac_ext <<_ACEOF 18810/* confdefs.h. */ 18811_ACEOF 18812cat confdefs.h >>conftest.$ac_ext 18813cat >>conftest.$ac_ext <<_ACEOF 18814/* end confdefs.h. */ 18815#include <png.h> 18816_ACEOF 18817if { (ac_try="$ac_cpp conftest.$ac_ext" 18818case "(($ac_try" in 18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18820 *) ac_try_echo=$ac_try;; 18821esac 18822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18823$as_echo "$ac_try_echo") >&5 18824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 18825 ac_status=$? 18826 grep -v '^ *+' conftest.er1 >conftest.err 18827 rm -f conftest.er1 18828 cat conftest.err >&5 18829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18830 (exit $ac_status); } >/dev/null && { 18831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 18832 test ! -s conftest.err 18833 }; then 18834 ac_header_preproc=yes 18835else 18836 $as_echo "$as_me: failed program was:" >&5 18837sed 's/^/| /' conftest.$ac_ext >&5 18838 18839 ac_header_preproc=no 18840fi 18841 18842rm -f conftest.err conftest.$ac_ext 18843{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18844$as_echo "$ac_header_preproc" >&6; } 18845 18846# So? What about this header? 18847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18848 yes:no: ) 18849 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 18850$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 18851 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 18852$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} 18853 ac_header_preproc=yes 18854 ;; 18855 no:yes:* ) 18856 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 18857$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} 18858 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 18859$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} 18860 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 18861$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} 18862 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 18863$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} 18864 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 18865$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} 18866 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 18867$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} 18868 18869 ;; 18870esac 18871{ $as_echo "$as_me:$LINENO: checking for png.h" >&5 18872$as_echo_n "checking for png.h... " >&6; } 18873if test "${ac_cv_header_png_h+set}" = set; then 18874 $as_echo_n "(cached) " >&6 18875else 18876 ac_cv_header_png_h=$ac_header_preproc 18877fi 18878{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 18879$as_echo "$ac_cv_header_png_h" >&6; } 18880 18881fi 18882if test "x$ac_cv_header_png_h" = x""yes; then 18883 : 18884else 18885 { $as_echo "$as_me:$LINENO: WARNING: png.h not found" >&5 18886$as_echo "$as_me: WARNING: png.h not found" >&2;} 18887fi 18888 18889 18890 18891{ $as_echo "$as_me:$LINENO: checking for png_create_write_struct in -lpng" >&5 18892$as_echo_n "checking for png_create_write_struct in -lpng... " >&6; } 18893if test "${ac_cv_lib_png_png_create_write_struct+set}" = set; then 18894 $as_echo_n "(cached) " >&6 18895else 18896 ac_check_lib_save_LIBS=$LIBS 18897LIBS="-lpng $LIBS" 18898cat >conftest.$ac_ext <<_ACEOF 18899/* confdefs.h. */ 18900_ACEOF 18901cat confdefs.h >>conftest.$ac_ext 18902cat >>conftest.$ac_ext <<_ACEOF 18903/* end confdefs.h. */ 18904 18905/* Override any GCC internal prototype to avoid an error. 18906 Use char because int might match the return type of a GCC 18907 builtin and then its argument prototype would still apply. */ 18908#ifdef __cplusplus 18909extern "C" 18910#endif 18911char png_create_write_struct (); 18912int 18913main () 18914{ 18915return png_create_write_struct (); 18916 ; 18917 return 0; 18918} 18919_ACEOF 18920rm -f conftest.$ac_objext conftest$ac_exeext 18921if { (ac_try="$ac_link" 18922case "(($ac_try" in 18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18924 *) ac_try_echo=$ac_try;; 18925esac 18926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 18927$as_echo "$ac_try_echo") >&5 18928 (eval "$ac_link") 2>conftest.er1 18929 ac_status=$? 18930 grep -v '^ *+' conftest.er1 >conftest.err 18931 rm -f conftest.er1 18932 cat conftest.err >&5 18933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18934 (exit $ac_status); } && { 18935 test -z "$ac_c_werror_flag" || 18936 test ! -s conftest.err 18937 } && test -s conftest$ac_exeext && { 18938 test "$cross_compiling" = yes || 18939 $as_test_x conftest$ac_exeext 18940 }; then 18941 ac_cv_lib_png_png_create_write_struct=yes 18942else 18943 $as_echo "$as_me: failed program was:" >&5 18944sed 's/^/| /' conftest.$ac_ext >&5 18945 18946 ac_cv_lib_png_png_create_write_struct=no 18947fi 18948 18949rm -rf conftest.dSYM 18950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18951 conftest$ac_exeext conftest.$ac_ext 18952LIBS=$ac_check_lib_save_LIBS 18953fi 18954{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_write_struct" >&5 18955$as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; } 18956if test "x$ac_cv_lib_png_png_create_write_struct" = x""yes; then 18957 cat >>confdefs.h <<_ACEOF 18958#define HAVE_LIBPNG 1 18959_ACEOF 18960 18961 LIBS="-lpng $LIBS" 18962 18963else 18964 { $as_echo "$as_me:$LINENO: WARNING: libpng not found" >&5 18965$as_echo "$as_me: WARNING: libpng not found" >&2;};have_libpng=false 18966fi 18967 18968 18969if test "x$have_libpng" = "xtrue"; then 18970 18971cat >>confdefs.h <<_ACEOF 18972#define HAVE_LIBPNG 1 18973_ACEOF 18974 18975 PNG_LIBS="$LIBS" 18976else 18977 PNG_LIBS="" 18978fi 18979 18980LIBS="$saved_LIBS" 18981 18982 18983 18984# Check whether --with-openexr-prefix was given. 18985if test "${with_openexr_prefix+set}" = set; then 18986 withval=$with_openexr_prefix; openexr_prefix="$withval" 18987else 18988 openexr_prefix="/usr" 18989fi 18990 18991# Check whether --enable-openexrtest was given. 18992if test "${enable_openexrtest+set}" = set; then 18993 enableval=$enable_openexrtest; 18994else 18995 enable_openexrtest=yes 18996fi 18997 18998# Check whether --enable-static-openexr was given. 18999if test "${enable_static_openexr+set}" = set; then 19000 enableval=$enable_static_openexr; enable_static_openexr=yes 19001else 19002 enable_static_openexr=no 19003fi 19004 19005# Check whether --enable-openexr-threads was given. 19006if test "${enable_openexr_threads+set}" = set; then 19007 enableval=$enable_openexr_threads; enable_openexr_threads=yes 19008else 19009 enable_openexr_threads=no 19010fi 19011 19012 19013 if test "x$openexr_prefix" != "xNONE" ; then 19014 openexr_args="$openexr_args --prefix=$openexr_prefix" 19015 OPENEXR_INCLUDES="-I$openexr_prefix/include/OpenEXR" 19016 OPENEXR_LDLFLAGS="-L$openexr_prefix/lib" 19017 openexr_static_libs="$openexr_prefix/lib/libIlmImf.a $openexr_prefix/lib/libImath.a $openexr_prefix/lib/libIex.a $openexr_prefix/lib/libHalf.a -lz" 19018 if test "x$enable_openexr_threads" = "xyes" ; then 19019 openexr_static_libs="$openexr_static_libs $openexr_prefix/lib/libIlmThread.a" 19020 fi 19021 elif test "$prefix" != ""; then 19022 openexr_args="$openexr_args --prefix=$prefix" 19023 OPENEXR_INCLUDES="-I$prefix/include/OpenEXR" 19024 OPENEXR_LDFLAGS="-L$prefix/lib" 19025 openexr_static_libs="$prefix/lib/libIlmImf.a $prefix/lib/libImath.a $prefix/lib/libIex.a $prefix/lib/libHalf.a -lz" 19026 if test "x$enable_openexr_threads" = "xyes" ; then 19027 openexr_static_libs="$openexr_static_libs $prefix/lib/libIlmThread.a" 19028 fi 19029 fi 19030 19031 if test "x$enable_static_openexr" = "xyes"; then 19032 OPENEXR_LIBS="$X_LIBS $openexr_static_libs" 19033 else 19034 OPENEXR_LIBS="$X_LIBS -lIlmImf -lImath -lIex -lHalf -lz" 19035 fi 19036 19037 { $as_echo "$as_me:$LINENO: checking for OpenEXR" >&5 19038$as_echo_n "checking for OpenEXR... " >&6; } 19039 no_openexr="" 19040 19041 19042 if test "x$enable_openexrtest" = "xyes" ; then 19043 ac_save_CXXFLAGS="$CXXFLAGS" 19044 ac_save_LIBS="$LIBS" 19045 ac_save_LDFLAGS="$LDFLAGS" 19046 CXXFLAGS="$CXXFLAGS $OPENEXR_CXXFLAGS $OPENEXR_INCLUDES" 19047 LIBS="$LIBS $OPENEXR_LIBS" 19048 LDFLAGS="$LDFLAGS $OPENEXR_LDFLAGS" 19049 rm -f conf.openexrtest 19050 19051 ac_ext=cpp 19052ac_cpp='$CXXCPP $CPPFLAGS' 19053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19056 19057 if test "$cross_compiling" = yes; then 19058 echo $ac_n "cross compiling; assumed OK... $ac_c" 19059else 19060 cat >conftest.$ac_ext <<_ACEOF 19061/* confdefs.h. */ 19062_ACEOF 19063cat confdefs.h >>conftest.$ac_ext 19064cat >>conftest.$ac_ext <<_ACEOF 19065/* end confdefs.h. */ 19066 19067#include <stdlib.h> 19068#include <ImfRgbaFile.h> 19069 19070int main () 19071{ 19072 try 19073 { 19074 Imf::RgbaInputFile exr (""); 19075 } 19076 catch (...) 19077 { 19078 } 19079 system("touch conf.openexrtest"); 19080 return 0; 19081} 19082 19083 19084_ACEOF 19085rm -f conftest$ac_exeext 19086if { (ac_try="$ac_link" 19087case "(($ac_try" in 19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19089 *) ac_try_echo=$ac_try;; 19090esac 19091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19092$as_echo "$ac_try_echo") >&5 19093 (eval "$ac_link") 2>&5 19094 ac_status=$? 19095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19097 { (case "(($ac_try" in 19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19099 *) ac_try_echo=$ac_try;; 19100esac 19101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19102$as_echo "$ac_try_echo") >&5 19103 (eval "$ac_try") 2>&5 19104 ac_status=$? 19105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19106 (exit $ac_status); }; }; then 19107 : 19108else 19109 $as_echo "$as_me: program exited with status $ac_status" >&5 19110$as_echo "$as_me: failed program was:" >&5 19111sed 's/^/| /' conftest.$ac_ext >&5 19112 19113( exit $ac_status ) 19114no_openexr=yes 19115fi 19116rm -rf conftest.dSYM 19117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19118fi 19119 19120 19121 ac_ext=c 19122ac_cpp='$CPP $CPPFLAGS' 19123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19125ac_compiler_gnu=$ac_cv_c_compiler_gnu 19126 19127 CXXFLAGS="$ac_save_CXXFLAGS" 19128 LIBS="$ac_save_LIBS" 19129 LDFLAGS="$ac_save_LDFLAGS" 19130 fi 19131 19132 if test "x$no_openexr" = "x" ; then 19133 { $as_echo "$as_me:$LINENO: result: yes" >&5 19134$as_echo "yes" >&6; } 19135 : 19136 else 19137 { $as_echo "$as_me:$LINENO: result: no" >&5 19138$as_echo "no" >&6; } 19139 if test -f conf.openexrtest ; then 19140 : 19141 else 19142 echo "*** Could not run OpenEXR test program, checking why..." 19143 CXXFLAGS="$CXXFLAGS $OPENEXR_CXXFLAGS $OPENEXR_INCLUDES" 19144 LIBS="$LIBS $OPENEXR_LIBS" 19145 LDFLAGS="$LDFLAGS $OPENEXR_LDFLAGS" 19146 19147 ac_ext=cpp 19148ac_cpp='$CXXCPP $CPPFLAGS' 19149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19152 19153 cat >conftest.$ac_ext <<_ACEOF 19154/* confdefs.h. */ 19155_ACEOF 19156cat confdefs.h >>conftest.$ac_ext 19157cat >>conftest.$ac_ext <<_ACEOF 19158/* end confdefs.h. */ 19159 19160#include <stdio.h> 19161#include <ImfRgbaFile.h> 19162 19163int 19164main () 19165{ 19166 Imf::RgbaInputFile exr ("");return 0; 19167 ; 19168 return 0; 19169} 19170_ACEOF 19171rm -f conftest.$ac_objext conftest$ac_exeext 19172if { (ac_try="$ac_link" 19173case "(($ac_try" in 19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19175 *) ac_try_echo=$ac_try;; 19176esac 19177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19178$as_echo "$ac_try_echo") >&5 19179 (eval "$ac_link") 2>conftest.er1 19180 ac_status=$? 19181 grep -v '^ *+' conftest.er1 >conftest.err 19182 rm -f conftest.er1 19183 cat conftest.err >&5 19184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19185 (exit $ac_status); } && { 19186 test -z "$ac_cxx_werror_flag" || 19187 test ! -s conftest.err 19188 } && test -s conftest$ac_exeext && { 19189 test "$cross_compiling" = yes || 19190 $as_test_x conftest$ac_exeext 19191 }; then 19192 echo "*** The test program compiled, but did not run. This usually means" 19193 echo "*** that the run-time linker is not finding OpenEXR or finding the wrong" 19194 echo "*** version of OpenEXR. If it is not finding OpenEXR, you'll need to set your" 19195 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 19196 echo "*** to the installed location Also, make sure you have run ldconfig if that" 19197 echo "*** is required on your system" 19198 echo "***" 19199else 19200 $as_echo "$as_me: failed program was:" >&5 19201sed 's/^/| /' conftest.$ac_ext >&5 19202 19203 19204fi 19205 19206rm -rf conftest.dSYM 19207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19208 conftest$ac_exeext conftest.$ac_ext 19209 ac_ext=c 19210ac_cpp='$CPP $CPPFLAGS' 19211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19213ac_compiler_gnu=$ac_cv_c_compiler_gnu 19214 19215 CXXFLAGS="$ac_save_CXXFLAGS" 19216 LIBS="$ac_save_LIBS" 19217 LDFLAGS="$ac_save_LDFLAGS" 19218 fi 19219 OPENEXR_INCLUDES="" 19220 OPENEXR_LIBS="" 19221 : 19222 fi 19223 19224 19225 19226 rm -f conf.openexrtest 19227 19228 if test "x$no_openexr" = "x"; then 19229 BUILD_OPENEXR_TRUE= 19230 BUILD_OPENEXR_FALSE='#' 19231else 19232 BUILD_OPENEXR_TRUE='#' 19233 BUILD_OPENEXR_FALSE= 19234fi 19235 19236 19237ZLIB_LIBS="-lz" 19238 19239saved_CFLAGS="$CFLAGS" 19240saved_LDFLAGS="$LDFLAGS" 19241saved_LIBS="$LIBS" 19242 19243LDFLAGS="$LDFLAGS $ZLIB_LIBS" 19244 19245have_zlib=true 19246 19247{ $as_echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 19248$as_echo_n "checking for gzopen in -lz... " >&6; } 19249if test "${ac_cv_lib_z_gzopen+set}" = set; then 19250 $as_echo_n "(cached) " >&6 19251else 19252 ac_check_lib_save_LIBS=$LIBS 19253LIBS="-lz $LIBS" 19254cat >conftest.$ac_ext <<_ACEOF 19255/* confdefs.h. */ 19256_ACEOF 19257cat confdefs.h >>conftest.$ac_ext 19258cat >>conftest.$ac_ext <<_ACEOF 19259/* end confdefs.h. */ 19260 19261/* Override any GCC internal prototype to avoid an error. 19262 Use char because int might match the return type of a GCC 19263 builtin and then its argument prototype would still apply. */ 19264#ifdef __cplusplus 19265extern "C" 19266#endif 19267char gzopen (); 19268int 19269main () 19270{ 19271return gzopen (); 19272 ; 19273 return 0; 19274} 19275_ACEOF 19276rm -f conftest.$ac_objext conftest$ac_exeext 19277if { (ac_try="$ac_link" 19278case "(($ac_try" in 19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19280 *) ac_try_echo=$ac_try;; 19281esac 19282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19283$as_echo "$ac_try_echo") >&5 19284 (eval "$ac_link") 2>conftest.er1 19285 ac_status=$? 19286 grep -v '^ *+' conftest.er1 >conftest.err 19287 rm -f conftest.er1 19288 cat conftest.err >&5 19289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19290 (exit $ac_status); } && { 19291 test -z "$ac_c_werror_flag" || 19292 test ! -s conftest.err 19293 } && test -s conftest$ac_exeext && { 19294 test "$cross_compiling" = yes || 19295 $as_test_x conftest$ac_exeext 19296 }; then 19297 ac_cv_lib_z_gzopen=yes 19298else 19299 $as_echo "$as_me: failed program was:" >&5 19300sed 's/^/| /' conftest.$ac_ext >&5 19301 19302 ac_cv_lib_z_gzopen=no 19303fi 19304 19305rm -rf conftest.dSYM 19306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19307 conftest$ac_exeext conftest.$ac_ext 19308LIBS=$ac_check_lib_save_LIBS 19309fi 19310{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 19311$as_echo "$ac_cv_lib_z_gzopen" >&6; } 19312if test "x$ac_cv_lib_z_gzopen" = x""yes; then 19313 cat >>confdefs.h <<_ACEOF 19314#define HAVE_LIBZ 1 19315_ACEOF 19316 19317 LIBS="-lz $LIBS" 19318 19319else 19320 { $as_echo "$as_me:$LINENO: WARNING: libz is not found" >&5 19321$as_echo "$as_me: WARNING: libz is not found" >&2;};have_zlib=false 19322fi 19323 19324if test "x$have_zlib" = "xtrue"; then 19325 19326cat >>confdefs.h <<_ACEOF 19327#define HAVE_ZLIB 1 19328_ACEOF 19329 19330else 19331 19332cat >>confdefs.h <<_ACEOF 19333#define HAVE_ZLIB 0 19334_ACEOF 19335 19336 ZLIB_LIBS="" 19337fi 19338 19339CFLAGS="$saved_CFLAGS" 19340LDFLAGS="$saved_LDFLAGS" 19341LIBS="$saved_LIBS" 19342 19343{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19344$as_echo_n "checking for ANSI C header files... " >&6; } 19345if test "${ac_cv_header_stdc+set}" = set; then 19346 $as_echo_n "(cached) " >&6 19347else 19348 cat >conftest.$ac_ext <<_ACEOF 19349/* confdefs.h. */ 19350_ACEOF 19351cat confdefs.h >>conftest.$ac_ext 19352cat >>conftest.$ac_ext <<_ACEOF 19353/* end confdefs.h. */ 19354#include <stdlib.h> 19355#include <stdarg.h> 19356#include <string.h> 19357#include <float.h> 19358 19359int 19360main () 19361{ 19362 19363 ; 19364 return 0; 19365} 19366_ACEOF 19367rm -f conftest.$ac_objext 19368if { (ac_try="$ac_compile" 19369case "(($ac_try" in 19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19371 *) ac_try_echo=$ac_try;; 19372esac 19373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19374$as_echo "$ac_try_echo") >&5 19375 (eval "$ac_compile") 2>conftest.er1 19376 ac_status=$? 19377 grep -v '^ *+' conftest.er1 >conftest.err 19378 rm -f conftest.er1 19379 cat conftest.err >&5 19380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19381 (exit $ac_status); } && { 19382 test -z "$ac_c_werror_flag" || 19383 test ! -s conftest.err 19384 } && test -s conftest.$ac_objext; then 19385 ac_cv_header_stdc=yes 19386else 19387 $as_echo "$as_me: failed program was:" >&5 19388sed 's/^/| /' conftest.$ac_ext >&5 19389 19390 ac_cv_header_stdc=no 19391fi 19392 19393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19394 19395if test $ac_cv_header_stdc = yes; then 19396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19397 cat >conftest.$ac_ext <<_ACEOF 19398/* confdefs.h. */ 19399_ACEOF 19400cat confdefs.h >>conftest.$ac_ext 19401cat >>conftest.$ac_ext <<_ACEOF 19402/* end confdefs.h. */ 19403#include <string.h> 19404 19405_ACEOF 19406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19407 $EGREP "memchr" >/dev/null 2>&1; then 19408 : 19409else 19410 ac_cv_header_stdc=no 19411fi 19412rm -f conftest* 19413 19414fi 19415 19416if test $ac_cv_header_stdc = yes; then 19417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19418 cat >conftest.$ac_ext <<_ACEOF 19419/* confdefs.h. */ 19420_ACEOF 19421cat confdefs.h >>conftest.$ac_ext 19422cat >>conftest.$ac_ext <<_ACEOF 19423/* end confdefs.h. */ 19424#include <stdlib.h> 19425 19426_ACEOF 19427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19428 $EGREP "free" >/dev/null 2>&1; then 19429 : 19430else 19431 ac_cv_header_stdc=no 19432fi 19433rm -f conftest* 19434 19435fi 19436 19437if test $ac_cv_header_stdc = yes; then 19438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19439 if test "$cross_compiling" = yes; then 19440 : 19441else 19442 cat >conftest.$ac_ext <<_ACEOF 19443/* confdefs.h. */ 19444_ACEOF 19445cat confdefs.h >>conftest.$ac_ext 19446cat >>conftest.$ac_ext <<_ACEOF 19447/* end confdefs.h. */ 19448#include <ctype.h> 19449#include <stdlib.h> 19450#if ((' ' & 0x0FF) == 0x020) 19451# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19452# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19453#else 19454# define ISLOWER(c) \ 19455 (('a' <= (c) && (c) <= 'i') \ 19456 || ('j' <= (c) && (c) <= 'r') \ 19457 || ('s' <= (c) && (c) <= 'z')) 19458# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19459#endif 19460 19461#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19462int 19463main () 19464{ 19465 int i; 19466 for (i = 0; i < 256; i++) 19467 if (XOR (islower (i), ISLOWER (i)) 19468 || toupper (i) != TOUPPER (i)) 19469 return 2; 19470 return 0; 19471} 19472_ACEOF 19473rm -f conftest$ac_exeext 19474if { (ac_try="$ac_link" 19475case "(($ac_try" in 19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19477 *) ac_try_echo=$ac_try;; 19478esac 19479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19480$as_echo "$ac_try_echo") >&5 19481 (eval "$ac_link") 2>&5 19482 ac_status=$? 19483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19485 { (case "(($ac_try" in 19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19487 *) ac_try_echo=$ac_try;; 19488esac 19489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19490$as_echo "$ac_try_echo") >&5 19491 (eval "$ac_try") 2>&5 19492 ac_status=$? 19493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19494 (exit $ac_status); }; }; then 19495 : 19496else 19497 $as_echo "$as_me: program exited with status $ac_status" >&5 19498$as_echo "$as_me: failed program was:" >&5 19499sed 's/^/| /' conftest.$ac_ext >&5 19500 19501( exit $ac_status ) 19502ac_cv_header_stdc=no 19503fi 19504rm -rf conftest.dSYM 19505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19506fi 19507 19508 19509fi 19510fi 19511{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19512$as_echo "$ac_cv_header_stdc" >&6; } 19513if test $ac_cv_header_stdc = yes; then 19514 19515cat >>confdefs.h <<\_ACEOF 19516#define STDC_HEADERS 1 19517_ACEOF 19518 19519fi 19520 19521 19522 19523 19524 19525 19526for ac_header in fcntl.h limits.h malloc.h sys/time.h unistd.h 19527do 19528as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19531$as_echo_n "checking for $ac_header... " >&6; } 19532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19533 $as_echo_n "(cached) " >&6 19534fi 19535ac_res=`eval 'as_val=${'$as_ac_Header'} 19536 $as_echo "$as_val"'` 19537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19538$as_echo "$ac_res" >&6; } 19539else 19540 # Is the header compilable? 19541{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 19542$as_echo_n "checking $ac_header usability... " >&6; } 19543cat >conftest.$ac_ext <<_ACEOF 19544/* confdefs.h. */ 19545_ACEOF 19546cat confdefs.h >>conftest.$ac_ext 19547cat >>conftest.$ac_ext <<_ACEOF 19548/* end confdefs.h. */ 19549$ac_includes_default 19550#include <$ac_header> 19551_ACEOF 19552rm -f conftest.$ac_objext 19553if { (ac_try="$ac_compile" 19554case "(($ac_try" in 19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19556 *) ac_try_echo=$ac_try;; 19557esac 19558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19559$as_echo "$ac_try_echo") >&5 19560 (eval "$ac_compile") 2>conftest.er1 19561 ac_status=$? 19562 grep -v '^ *+' conftest.er1 >conftest.err 19563 rm -f conftest.er1 19564 cat conftest.err >&5 19565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19566 (exit $ac_status); } && { 19567 test -z "$ac_c_werror_flag" || 19568 test ! -s conftest.err 19569 } && test -s conftest.$ac_objext; then 19570 ac_header_compiler=yes 19571else 19572 $as_echo "$as_me: failed program was:" >&5 19573sed 's/^/| /' conftest.$ac_ext >&5 19574 19575 ac_header_compiler=no 19576fi 19577 19578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19579{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19580$as_echo "$ac_header_compiler" >&6; } 19581 19582# Is the header present? 19583{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 19584$as_echo_n "checking $ac_header presence... " >&6; } 19585cat >conftest.$ac_ext <<_ACEOF 19586/* confdefs.h. */ 19587_ACEOF 19588cat confdefs.h >>conftest.$ac_ext 19589cat >>conftest.$ac_ext <<_ACEOF 19590/* end confdefs.h. */ 19591#include <$ac_header> 19592_ACEOF 19593if { (ac_try="$ac_cpp conftest.$ac_ext" 19594case "(($ac_try" in 19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19596 *) ac_try_echo=$ac_try;; 19597esac 19598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19599$as_echo "$ac_try_echo") >&5 19600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19601 ac_status=$? 19602 grep -v '^ *+' conftest.er1 >conftest.err 19603 rm -f conftest.er1 19604 cat conftest.err >&5 19605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19606 (exit $ac_status); } >/dev/null && { 19607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 19608 test ! -s conftest.err 19609 }; then 19610 ac_header_preproc=yes 19611else 19612 $as_echo "$as_me: failed program was:" >&5 19613sed 's/^/| /' conftest.$ac_ext >&5 19614 19615 ac_header_preproc=no 19616fi 19617 19618rm -f conftest.err conftest.$ac_ext 19619{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19620$as_echo "$ac_header_preproc" >&6; } 19621 19622# So? What about this header? 19623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19624 yes:no: ) 19625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19626$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19628$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19629 ac_header_preproc=yes 19630 ;; 19631 no:yes:* ) 19632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19633$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19635$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19637$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19639$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19641$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19643$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19644 19645 ;; 19646esac 19647{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 19648$as_echo_n "checking for $ac_header... " >&6; } 19649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19650 $as_echo_n "(cached) " >&6 19651else 19652 eval "$as_ac_Header=\$ac_header_preproc" 19653fi 19654ac_res=`eval 'as_val=${'$as_ac_Header'} 19655 $as_echo "$as_val"'` 19656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 19657$as_echo "$ac_res" >&6; } 19658 19659fi 19660as_val=`eval 'as_val=${'$as_ac_Header'} 19661 $as_echo "$as_val"'` 19662 if test "x$as_val" = x""yes; then 19663 cat >>confdefs.h <<_ACEOF 19664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19665_ACEOF 19666 19667fi 19668 19669done 19670 19671 19672{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 19673$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19674if test "${ac_cv_c_const+set}" = set; then 19675 $as_echo_n "(cached) " >&6 19676else 19677 cat >conftest.$ac_ext <<_ACEOF 19678/* confdefs.h. */ 19679_ACEOF 19680cat confdefs.h >>conftest.$ac_ext 19681cat >>conftest.$ac_ext <<_ACEOF 19682/* end confdefs.h. */ 19683 19684int 19685main () 19686{ 19687/* FIXME: Include the comments suggested by Paul. */ 19688#ifndef __cplusplus 19689 /* Ultrix mips cc rejects this. */ 19690 typedef int charset[2]; 19691 const charset cs; 19692 /* SunOS 4.1.1 cc rejects this. */ 19693 char const *const *pcpcc; 19694 char **ppc; 19695 /* NEC SVR4.0.2 mips cc rejects this. */ 19696 struct point {int x, y;}; 19697 static struct point const zero = {0,0}; 19698 /* AIX XL C 1.02.0.0 rejects this. 19699 It does not let you subtract one const X* pointer from another in 19700 an arm of an if-expression whose if-part is not a constant 19701 expression */ 19702 const char *g = "string"; 19703 pcpcc = &g + (g ? g-g : 0); 19704 /* HPUX 7.0 cc rejects these. */ 19705 ++pcpcc; 19706 ppc = (char**) pcpcc; 19707 pcpcc = (char const *const *) ppc; 19708 { /* SCO 3.2v4 cc rejects this. */ 19709 char *t; 19710 char const *s = 0 ? (char *) 0 : (char const *) 0; 19711 19712 *t++ = 0; 19713 if (s) return 0; 19714 } 19715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19716 int x[] = {25, 17}; 19717 const int *foo = &x[0]; 19718 ++foo; 19719 } 19720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19721 typedef const int *iptr; 19722 iptr p = 0; 19723 ++p; 19724 } 19725 { /* AIX XL C 1.02.0.0 rejects this saying 19726 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19727 struct s { int j; const int *ap[3]; }; 19728 struct s *b; b->j = 5; 19729 } 19730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19731 const int foo = 10; 19732 if (!foo) return 0; 19733 } 19734 return !cs[0] && !zero.x; 19735#endif 19736 19737 ; 19738 return 0; 19739} 19740_ACEOF 19741rm -f conftest.$ac_objext 19742if { (ac_try="$ac_compile" 19743case "(($ac_try" in 19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19745 *) ac_try_echo=$ac_try;; 19746esac 19747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19748$as_echo "$ac_try_echo") >&5 19749 (eval "$ac_compile") 2>conftest.er1 19750 ac_status=$? 19751 grep -v '^ *+' conftest.er1 >conftest.err 19752 rm -f conftest.er1 19753 cat conftest.err >&5 19754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19755 (exit $ac_status); } && { 19756 test -z "$ac_c_werror_flag" || 19757 test ! -s conftest.err 19758 } && test -s conftest.$ac_objext; then 19759 ac_cv_c_const=yes 19760else 19761 $as_echo "$as_me: failed program was:" >&5 19762sed 's/^/| /' conftest.$ac_ext >&5 19763 19764 ac_cv_c_const=no 19765fi 19766 19767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19768fi 19769{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 19770$as_echo "$ac_cv_c_const" >&6; } 19771if test $ac_cv_c_const = no; then 19772 19773cat >>confdefs.h <<\_ACEOF 19774#define const /**/ 19775_ACEOF 19776 19777fi 19778 19779{ $as_echo "$as_me:$LINENO: checking for inline" >&5 19780$as_echo_n "checking for inline... " >&6; } 19781if test "${ac_cv_c_inline+set}" = set; then 19782 $as_echo_n "(cached) " >&6 19783else 19784 ac_cv_c_inline=no 19785for ac_kw in inline __inline__ __inline; do 19786 cat >conftest.$ac_ext <<_ACEOF 19787/* confdefs.h. */ 19788_ACEOF 19789cat confdefs.h >>conftest.$ac_ext 19790cat >>conftest.$ac_ext <<_ACEOF 19791/* end confdefs.h. */ 19792#ifndef __cplusplus 19793typedef int foo_t; 19794static $ac_kw foo_t static_foo () {return 0; } 19795$ac_kw foo_t foo () {return 0; } 19796#endif 19797 19798_ACEOF 19799rm -f conftest.$ac_objext 19800if { (ac_try="$ac_compile" 19801case "(($ac_try" in 19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19803 *) ac_try_echo=$ac_try;; 19804esac 19805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19806$as_echo "$ac_try_echo") >&5 19807 (eval "$ac_compile") 2>conftest.er1 19808 ac_status=$? 19809 grep -v '^ *+' conftest.er1 >conftest.err 19810 rm -f conftest.er1 19811 cat conftest.err >&5 19812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19813 (exit $ac_status); } && { 19814 test -z "$ac_c_werror_flag" || 19815 test ! -s conftest.err 19816 } && test -s conftest.$ac_objext; then 19817 ac_cv_c_inline=$ac_kw 19818else 19819 $as_echo "$as_me: failed program was:" >&5 19820sed 's/^/| /' conftest.$ac_ext >&5 19821 19822 19823fi 19824 19825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19826 test "$ac_cv_c_inline" != no && break 19827done 19828 19829fi 19830{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 19831$as_echo "$ac_cv_c_inline" >&6; } 19832 19833 19834case $ac_cv_c_inline in 19835 inline | yes) ;; 19836 *) 19837 case $ac_cv_c_inline in 19838 no) ac_val=;; 19839 *) ac_val=$ac_cv_c_inline;; 19840 esac 19841 cat >>confdefs.h <<_ACEOF 19842#ifndef __cplusplus 19843#define inline $ac_val 19844#endif 19845_ACEOF 19846 ;; 19847esac 19848 19849{ $as_echo "$as_me:$LINENO: checking for size_t" >&5 19850$as_echo_n "checking for size_t... " >&6; } 19851if test "${ac_cv_type_size_t+set}" = set; then 19852 $as_echo_n "(cached) " >&6 19853else 19854 ac_cv_type_size_t=no 19855cat >conftest.$ac_ext <<_ACEOF 19856/* confdefs.h. */ 19857_ACEOF 19858cat confdefs.h >>conftest.$ac_ext 19859cat >>conftest.$ac_ext <<_ACEOF 19860/* end confdefs.h. */ 19861$ac_includes_default 19862int 19863main () 19864{ 19865if (sizeof (size_t)) 19866 return 0; 19867 ; 19868 return 0; 19869} 19870_ACEOF 19871rm -f conftest.$ac_objext 19872if { (ac_try="$ac_compile" 19873case "(($ac_try" in 19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19875 *) ac_try_echo=$ac_try;; 19876esac 19877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19878$as_echo "$ac_try_echo") >&5 19879 (eval "$ac_compile") 2>conftest.er1 19880 ac_status=$? 19881 grep -v '^ *+' conftest.er1 >conftest.err 19882 rm -f conftest.er1 19883 cat conftest.err >&5 19884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19885 (exit $ac_status); } && { 19886 test -z "$ac_c_werror_flag" || 19887 test ! -s conftest.err 19888 } && test -s conftest.$ac_objext; then 19889 cat >conftest.$ac_ext <<_ACEOF 19890/* confdefs.h. */ 19891_ACEOF 19892cat confdefs.h >>conftest.$ac_ext 19893cat >>conftest.$ac_ext <<_ACEOF 19894/* end confdefs.h. */ 19895$ac_includes_default 19896int 19897main () 19898{ 19899if (sizeof ((size_t))) 19900 return 0; 19901 ; 19902 return 0; 19903} 19904_ACEOF 19905rm -f conftest.$ac_objext 19906if { (ac_try="$ac_compile" 19907case "(($ac_try" in 19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19909 *) ac_try_echo=$ac_try;; 19910esac 19911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19912$as_echo "$ac_try_echo") >&5 19913 (eval "$ac_compile") 2>conftest.er1 19914 ac_status=$? 19915 grep -v '^ *+' conftest.er1 >conftest.err 19916 rm -f conftest.er1 19917 cat conftest.err >&5 19918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19919 (exit $ac_status); } && { 19920 test -z "$ac_c_werror_flag" || 19921 test ! -s conftest.err 19922 } && test -s conftest.$ac_objext; then 19923 : 19924else 19925 $as_echo "$as_me: failed program was:" >&5 19926sed 's/^/| /' conftest.$ac_ext >&5 19927 19928 ac_cv_type_size_t=yes 19929fi 19930 19931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19932else 19933 $as_echo "$as_me: failed program was:" >&5 19934sed 's/^/| /' conftest.$ac_ext >&5 19935 19936 19937fi 19938 19939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19940fi 19941{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 19942$as_echo "$ac_cv_type_size_t" >&6; } 19943if test "x$ac_cv_type_size_t" = x""yes; then 19944 : 19945else 19946 19947cat >>confdefs.h <<_ACEOF 19948#define size_t unsigned int 19949_ACEOF 19950 19951fi 19952 19953{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 19954$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 19955if test "${ac_cv_header_time+set}" = set; then 19956 $as_echo_n "(cached) " >&6 19957else 19958 cat >conftest.$ac_ext <<_ACEOF 19959/* confdefs.h. */ 19960_ACEOF 19961cat confdefs.h >>conftest.$ac_ext 19962cat >>conftest.$ac_ext <<_ACEOF 19963/* end confdefs.h. */ 19964#include <sys/types.h> 19965#include <sys/time.h> 19966#include <time.h> 19967 19968int 19969main () 19970{ 19971if ((struct tm *) 0) 19972return 0; 19973 ; 19974 return 0; 19975} 19976_ACEOF 19977rm -f conftest.$ac_objext 19978if { (ac_try="$ac_compile" 19979case "(($ac_try" in 19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19981 *) ac_try_echo=$ac_try;; 19982esac 19983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 19984$as_echo "$ac_try_echo") >&5 19985 (eval "$ac_compile") 2>conftest.er1 19986 ac_status=$? 19987 grep -v '^ *+' conftest.er1 >conftest.err 19988 rm -f conftest.er1 19989 cat conftest.err >&5 19990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 19991 (exit $ac_status); } && { 19992 test -z "$ac_c_werror_flag" || 19993 test ! -s conftest.err 19994 } && test -s conftest.$ac_objext; then 19995 ac_cv_header_time=yes 19996else 19997 $as_echo "$as_me: failed program was:" >&5 19998sed 's/^/| /' conftest.$ac_ext >&5 19999 20000 ac_cv_header_time=no 20001fi 20002 20003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20004fi 20005{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20006$as_echo "$ac_cv_header_time" >&6; } 20007if test $ac_cv_header_time = yes; then 20008 20009cat >>confdefs.h <<\_ACEOF 20010#define TIME_WITH_SYS_TIME 1 20011_ACEOF 20012 20013fi 20014 20015 20016# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 20017# for constant arguments. Useless! 20018{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 20019$as_echo_n "checking for working alloca.h... " >&6; } 20020if test "${ac_cv_working_alloca_h+set}" = set; then 20021 $as_echo_n "(cached) " >&6 20022else 20023 cat >conftest.$ac_ext <<_ACEOF 20024/* confdefs.h. */ 20025_ACEOF 20026cat confdefs.h >>conftest.$ac_ext 20027cat >>conftest.$ac_ext <<_ACEOF 20028/* end confdefs.h. */ 20029#include <alloca.h> 20030int 20031main () 20032{ 20033char *p = (char *) alloca (2 * sizeof (int)); 20034 if (p) return 0; 20035 ; 20036 return 0; 20037} 20038_ACEOF 20039rm -f conftest.$ac_objext conftest$ac_exeext 20040if { (ac_try="$ac_link" 20041case "(($ac_try" in 20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20043 *) ac_try_echo=$ac_try;; 20044esac 20045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20046$as_echo "$ac_try_echo") >&5 20047 (eval "$ac_link") 2>conftest.er1 20048 ac_status=$? 20049 grep -v '^ *+' conftest.er1 >conftest.err 20050 rm -f conftest.er1 20051 cat conftest.err >&5 20052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20053 (exit $ac_status); } && { 20054 test -z "$ac_c_werror_flag" || 20055 test ! -s conftest.err 20056 } && test -s conftest$ac_exeext && { 20057 test "$cross_compiling" = yes || 20058 $as_test_x conftest$ac_exeext 20059 }; then 20060 ac_cv_working_alloca_h=yes 20061else 20062 $as_echo "$as_me: failed program was:" >&5 20063sed 's/^/| /' conftest.$ac_ext >&5 20064 20065 ac_cv_working_alloca_h=no 20066fi 20067 20068rm -rf conftest.dSYM 20069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20070 conftest$ac_exeext conftest.$ac_ext 20071fi 20072{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 20073$as_echo "$ac_cv_working_alloca_h" >&6; } 20074if test $ac_cv_working_alloca_h = yes; then 20075 20076cat >>confdefs.h <<\_ACEOF 20077#define HAVE_ALLOCA_H 1 20078_ACEOF 20079 20080fi 20081 20082{ $as_echo "$as_me:$LINENO: checking for alloca" >&5 20083$as_echo_n "checking for alloca... " >&6; } 20084if test "${ac_cv_func_alloca_works+set}" = set; then 20085 $as_echo_n "(cached) " >&6 20086else 20087 cat >conftest.$ac_ext <<_ACEOF 20088/* confdefs.h. */ 20089_ACEOF 20090cat confdefs.h >>conftest.$ac_ext 20091cat >>conftest.$ac_ext <<_ACEOF 20092/* end confdefs.h. */ 20093#ifdef __GNUC__ 20094# define alloca __builtin_alloca 20095#else 20096# ifdef _MSC_VER 20097# include <malloc.h> 20098# define alloca _alloca 20099# else 20100# ifdef HAVE_ALLOCA_H 20101# include <alloca.h> 20102# else 20103# ifdef _AIX 20104 #pragma alloca 20105# else 20106# ifndef alloca /* predefined by HP cc +Olibcalls */ 20107char *alloca (); 20108# endif 20109# endif 20110# endif 20111# endif 20112#endif 20113 20114int 20115main () 20116{ 20117char *p = (char *) alloca (1); 20118 if (p) return 0; 20119 ; 20120 return 0; 20121} 20122_ACEOF 20123rm -f conftest.$ac_objext conftest$ac_exeext 20124if { (ac_try="$ac_link" 20125case "(($ac_try" in 20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20127 *) ac_try_echo=$ac_try;; 20128esac 20129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20130$as_echo "$ac_try_echo") >&5 20131 (eval "$ac_link") 2>conftest.er1 20132 ac_status=$? 20133 grep -v '^ *+' conftest.er1 >conftest.err 20134 rm -f conftest.er1 20135 cat conftest.err >&5 20136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20137 (exit $ac_status); } && { 20138 test -z "$ac_c_werror_flag" || 20139 test ! -s conftest.err 20140 } && test -s conftest$ac_exeext && { 20141 test "$cross_compiling" = yes || 20142 $as_test_x conftest$ac_exeext 20143 }; then 20144 ac_cv_func_alloca_works=yes 20145else 20146 $as_echo "$as_me: failed program was:" >&5 20147sed 's/^/| /' conftest.$ac_ext >&5 20148 20149 ac_cv_func_alloca_works=no 20150fi 20151 20152rm -rf conftest.dSYM 20153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20154 conftest$ac_exeext conftest.$ac_ext 20155fi 20156{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 20157$as_echo "$ac_cv_func_alloca_works" >&6; } 20158 20159if test $ac_cv_func_alloca_works = yes; then 20160 20161cat >>confdefs.h <<\_ACEOF 20162#define HAVE_ALLOCA 1 20163_ACEOF 20164 20165else 20166 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 20167# that cause trouble. Some versions do not even contain alloca or 20168# contain a buggy version. If you still want to use their alloca, 20169# use ar to extract alloca.o from them instead of compiling alloca.c. 20170 20171ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 20172 20173cat >>confdefs.h <<\_ACEOF 20174#define C_ALLOCA 1 20175_ACEOF 20176 20177 20178{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 20179$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 20180if test "${ac_cv_os_cray+set}" = set; then 20181 $as_echo_n "(cached) " >&6 20182else 20183 cat >conftest.$ac_ext <<_ACEOF 20184/* confdefs.h. */ 20185_ACEOF 20186cat confdefs.h >>conftest.$ac_ext 20187cat >>conftest.$ac_ext <<_ACEOF 20188/* end confdefs.h. */ 20189#if defined CRAY && ! defined CRAY2 20190webecray 20191#else 20192wenotbecray 20193#endif 20194 20195_ACEOF 20196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20197 $EGREP "webecray" >/dev/null 2>&1; then 20198 ac_cv_os_cray=yes 20199else 20200 ac_cv_os_cray=no 20201fi 20202rm -f conftest* 20203 20204fi 20205{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 20206$as_echo "$ac_cv_os_cray" >&6; } 20207if test $ac_cv_os_cray = yes; then 20208 for ac_func in _getb67 GETB67 getb67; do 20209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20210{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 20211$as_echo_n "checking for $ac_func... " >&6; } 20212if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20213 $as_echo_n "(cached) " >&6 20214else 20215 cat >conftest.$ac_ext <<_ACEOF 20216/* confdefs.h. */ 20217_ACEOF 20218cat confdefs.h >>conftest.$ac_ext 20219cat >>conftest.$ac_ext <<_ACEOF 20220/* end confdefs.h. */ 20221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20222 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20223#define $ac_func innocuous_$ac_func 20224 20225/* System header to define __stub macros and hopefully few prototypes, 20226 which can conflict with char $ac_func (); below. 20227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20228 <limits.h> exists even on freestanding compilers. */ 20229 20230#ifdef __STDC__ 20231# include <limits.h> 20232#else 20233# include <assert.h> 20234#endif 20235 20236#undef $ac_func 20237 20238/* Override any GCC internal prototype to avoid an error. 20239 Use char because int might match the return type of a GCC 20240 builtin and then its argument prototype would still apply. */ 20241#ifdef __cplusplus 20242extern "C" 20243#endif 20244char $ac_func (); 20245/* The GNU C library defines this for functions which it implements 20246 to always fail with ENOSYS. Some functions are actually named 20247 something starting with __ and the normal name is an alias. */ 20248#if defined __stub_$ac_func || defined __stub___$ac_func 20249choke me 20250#endif 20251 20252int 20253main () 20254{ 20255return $ac_func (); 20256 ; 20257 return 0; 20258} 20259_ACEOF 20260rm -f conftest.$ac_objext conftest$ac_exeext 20261if { (ac_try="$ac_link" 20262case "(($ac_try" in 20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20264 *) ac_try_echo=$ac_try;; 20265esac 20266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20267$as_echo "$ac_try_echo") >&5 20268 (eval "$ac_link") 2>conftest.er1 20269 ac_status=$? 20270 grep -v '^ *+' conftest.er1 >conftest.err 20271 rm -f conftest.er1 20272 cat conftest.err >&5 20273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20274 (exit $ac_status); } && { 20275 test -z "$ac_c_werror_flag" || 20276 test ! -s conftest.err 20277 } && test -s conftest$ac_exeext && { 20278 test "$cross_compiling" = yes || 20279 $as_test_x conftest$ac_exeext 20280 }; then 20281 eval "$as_ac_var=yes" 20282else 20283 $as_echo "$as_me: failed program was:" >&5 20284sed 's/^/| /' conftest.$ac_ext >&5 20285 20286 eval "$as_ac_var=no" 20287fi 20288 20289rm -rf conftest.dSYM 20290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20291 conftest$ac_exeext conftest.$ac_ext 20292fi 20293ac_res=`eval 'as_val=${'$as_ac_var'} 20294 $as_echo "$as_val"'` 20295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20296$as_echo "$ac_res" >&6; } 20297as_val=`eval 'as_val=${'$as_ac_var'} 20298 $as_echo "$as_val"'` 20299 if test "x$as_val" = x""yes; then 20300 20301cat >>confdefs.h <<_ACEOF 20302#define CRAY_STACKSEG_END $ac_func 20303_ACEOF 20304 20305 break 20306fi 20307 20308 done 20309fi 20310 20311{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 20312$as_echo_n "checking stack direction for C alloca... " >&6; } 20313if test "${ac_cv_c_stack_direction+set}" = set; then 20314 $as_echo_n "(cached) " >&6 20315else 20316 if test "$cross_compiling" = yes; then 20317 ac_cv_c_stack_direction=0 20318else 20319 cat >conftest.$ac_ext <<_ACEOF 20320/* confdefs.h. */ 20321_ACEOF 20322cat confdefs.h >>conftest.$ac_ext 20323cat >>conftest.$ac_ext <<_ACEOF 20324/* end confdefs.h. */ 20325$ac_includes_default 20326int 20327find_stack_direction () 20328{ 20329 static char *addr = 0; 20330 auto char dummy; 20331 if (addr == 0) 20332 { 20333 addr = &dummy; 20334 return find_stack_direction (); 20335 } 20336 else 20337 return (&dummy > addr) ? 1 : -1; 20338} 20339 20340int 20341main () 20342{ 20343 return find_stack_direction () < 0; 20344} 20345_ACEOF 20346rm -f conftest$ac_exeext 20347if { (ac_try="$ac_link" 20348case "(($ac_try" in 20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20350 *) ac_try_echo=$ac_try;; 20351esac 20352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20353$as_echo "$ac_try_echo") >&5 20354 (eval "$ac_link") 2>&5 20355 ac_status=$? 20356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20358 { (case "(($ac_try" in 20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20360 *) ac_try_echo=$ac_try;; 20361esac 20362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20363$as_echo "$ac_try_echo") >&5 20364 (eval "$ac_try") 2>&5 20365 ac_status=$? 20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20367 (exit $ac_status); }; }; then 20368 ac_cv_c_stack_direction=1 20369else 20370 $as_echo "$as_me: program exited with status $ac_status" >&5 20371$as_echo "$as_me: failed program was:" >&5 20372sed 's/^/| /' conftest.$ac_ext >&5 20373 20374( exit $ac_status ) 20375ac_cv_c_stack_direction=-1 20376fi 20377rm -rf conftest.dSYM 20378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20379fi 20380 20381 20382fi 20383{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 20384$as_echo "$ac_cv_c_stack_direction" >&6; } 20385 20386cat >>confdefs.h <<_ACEOF 20387#define STACK_DIRECTION $ac_cv_c_stack_direction 20388_ACEOF 20389 20390 20391fi 20392 20393 20394for ac_func in vprintf 20395do 20396as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20397{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 20398$as_echo_n "checking for $ac_func... " >&6; } 20399if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20400 $as_echo_n "(cached) " >&6 20401else 20402 cat >conftest.$ac_ext <<_ACEOF 20403/* confdefs.h. */ 20404_ACEOF 20405cat confdefs.h >>conftest.$ac_ext 20406cat >>conftest.$ac_ext <<_ACEOF 20407/* end confdefs.h. */ 20408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20409 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20410#define $ac_func innocuous_$ac_func 20411 20412/* System header to define __stub macros and hopefully few prototypes, 20413 which can conflict with char $ac_func (); below. 20414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20415 <limits.h> exists even on freestanding compilers. */ 20416 20417#ifdef __STDC__ 20418# include <limits.h> 20419#else 20420# include <assert.h> 20421#endif 20422 20423#undef $ac_func 20424 20425/* Override any GCC internal prototype to avoid an error. 20426 Use char because int might match the return type of a GCC 20427 builtin and then its argument prototype would still apply. */ 20428#ifdef __cplusplus 20429extern "C" 20430#endif 20431char $ac_func (); 20432/* The GNU C library defines this for functions which it implements 20433 to always fail with ENOSYS. Some functions are actually named 20434 something starting with __ and the normal name is an alias. */ 20435#if defined __stub_$ac_func || defined __stub___$ac_func 20436choke me 20437#endif 20438 20439int 20440main () 20441{ 20442return $ac_func (); 20443 ; 20444 return 0; 20445} 20446_ACEOF 20447rm -f conftest.$ac_objext conftest$ac_exeext 20448if { (ac_try="$ac_link" 20449case "(($ac_try" in 20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20451 *) ac_try_echo=$ac_try;; 20452esac 20453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20454$as_echo "$ac_try_echo") >&5 20455 (eval "$ac_link") 2>conftest.er1 20456 ac_status=$? 20457 grep -v '^ *+' conftest.er1 >conftest.err 20458 rm -f conftest.er1 20459 cat conftest.err >&5 20460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20461 (exit $ac_status); } && { 20462 test -z "$ac_c_werror_flag" || 20463 test ! -s conftest.err 20464 } && test -s conftest$ac_exeext && { 20465 test "$cross_compiling" = yes || 20466 $as_test_x conftest$ac_exeext 20467 }; then 20468 eval "$as_ac_var=yes" 20469else 20470 $as_echo "$as_me: failed program was:" >&5 20471sed 's/^/| /' conftest.$ac_ext >&5 20472 20473 eval "$as_ac_var=no" 20474fi 20475 20476rm -rf conftest.dSYM 20477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20478 conftest$ac_exeext conftest.$ac_ext 20479fi 20480ac_res=`eval 'as_val=${'$as_ac_var'} 20481 $as_echo "$as_val"'` 20482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20483$as_echo "$ac_res" >&6; } 20484as_val=`eval 'as_val=${'$as_ac_var'} 20485 $as_echo "$as_val"'` 20486 if test "x$as_val" = x""yes; then 20487 cat >>confdefs.h <<_ACEOF 20488#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20489_ACEOF 20490 20491{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5 20492$as_echo_n "checking for _doprnt... " >&6; } 20493if test "${ac_cv_func__doprnt+set}" = set; then 20494 $as_echo_n "(cached) " >&6 20495else 20496 cat >conftest.$ac_ext <<_ACEOF 20497/* confdefs.h. */ 20498_ACEOF 20499cat confdefs.h >>conftest.$ac_ext 20500cat >>conftest.$ac_ext <<_ACEOF 20501/* end confdefs.h. */ 20502/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 20503 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20504#define _doprnt innocuous__doprnt 20505 20506/* System header to define __stub macros and hopefully few prototypes, 20507 which can conflict with char _doprnt (); below. 20508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20509 <limits.h> exists even on freestanding compilers. */ 20510 20511#ifdef __STDC__ 20512# include <limits.h> 20513#else 20514# include <assert.h> 20515#endif 20516 20517#undef _doprnt 20518 20519/* Override any GCC internal prototype to avoid an error. 20520 Use char because int might match the return type of a GCC 20521 builtin and then its argument prototype would still apply. */ 20522#ifdef __cplusplus 20523extern "C" 20524#endif 20525char _doprnt (); 20526/* The GNU C library defines this for functions which it implements 20527 to always fail with ENOSYS. Some functions are actually named 20528 something starting with __ and the normal name is an alias. */ 20529#if defined __stub__doprnt || defined __stub____doprnt 20530choke me 20531#endif 20532 20533int 20534main () 20535{ 20536return _doprnt (); 20537 ; 20538 return 0; 20539} 20540_ACEOF 20541rm -f conftest.$ac_objext conftest$ac_exeext 20542if { (ac_try="$ac_link" 20543case "(($ac_try" in 20544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20545 *) ac_try_echo=$ac_try;; 20546esac 20547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20548$as_echo "$ac_try_echo") >&5 20549 (eval "$ac_link") 2>conftest.er1 20550 ac_status=$? 20551 grep -v '^ *+' conftest.er1 >conftest.err 20552 rm -f conftest.er1 20553 cat conftest.err >&5 20554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20555 (exit $ac_status); } && { 20556 test -z "$ac_c_werror_flag" || 20557 test ! -s conftest.err 20558 } && test -s conftest$ac_exeext && { 20559 test "$cross_compiling" = yes || 20560 $as_test_x conftest$ac_exeext 20561 }; then 20562 ac_cv_func__doprnt=yes 20563else 20564 $as_echo "$as_me: failed program was:" >&5 20565sed 's/^/| /' conftest.$ac_ext >&5 20566 20567 ac_cv_func__doprnt=no 20568fi 20569 20570rm -rf conftest.dSYM 20571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20572 conftest$ac_exeext conftest.$ac_ext 20573fi 20574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 20575$as_echo "$ac_cv_func__doprnt" >&6; } 20576if test "x$ac_cv_func__doprnt" = x""yes; then 20577 20578cat >>confdefs.h <<\_ACEOF 20579#define HAVE_DOPRNT 1 20580_ACEOF 20581 20582fi 20583 20584fi 20585done 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598for ac_func in gethostname gettimeofday mkdir rmdir socket strdup strstr strtod strtol random 20599do 20600as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20601{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 20602$as_echo_n "checking for $ac_func... " >&6; } 20603if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20604 $as_echo_n "(cached) " >&6 20605else 20606 cat >conftest.$ac_ext <<_ACEOF 20607/* confdefs.h. */ 20608_ACEOF 20609cat confdefs.h >>conftest.$ac_ext 20610cat >>conftest.$ac_ext <<_ACEOF 20611/* end confdefs.h. */ 20612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20613 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20614#define $ac_func innocuous_$ac_func 20615 20616/* System header to define __stub macros and hopefully few prototypes, 20617 which can conflict with char $ac_func (); below. 20618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20619 <limits.h> exists even on freestanding compilers. */ 20620 20621#ifdef __STDC__ 20622# include <limits.h> 20623#else 20624# include <assert.h> 20625#endif 20626 20627#undef $ac_func 20628 20629/* Override any GCC internal prototype to avoid an error. 20630 Use char because int might match the return type of a GCC 20631 builtin and then its argument prototype would still apply. */ 20632#ifdef __cplusplus 20633extern "C" 20634#endif 20635char $ac_func (); 20636/* The GNU C library defines this for functions which it implements 20637 to always fail with ENOSYS. Some functions are actually named 20638 something starting with __ and the normal name is an alias. */ 20639#if defined __stub_$ac_func || defined __stub___$ac_func 20640choke me 20641#endif 20642 20643int 20644main () 20645{ 20646return $ac_func (); 20647 ; 20648 return 0; 20649} 20650_ACEOF 20651rm -f conftest.$ac_objext conftest$ac_exeext 20652if { (ac_try="$ac_link" 20653case "(($ac_try" in 20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20655 *) ac_try_echo=$ac_try;; 20656esac 20657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20658$as_echo "$ac_try_echo") >&5 20659 (eval "$ac_link") 2>conftest.er1 20660 ac_status=$? 20661 grep -v '^ *+' conftest.er1 >conftest.err 20662 rm -f conftest.er1 20663 cat conftest.err >&5 20664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20665 (exit $ac_status); } && { 20666 test -z "$ac_c_werror_flag" || 20667 test ! -s conftest.err 20668 } && test -s conftest$ac_exeext && { 20669 test "$cross_compiling" = yes || 20670 $as_test_x conftest$ac_exeext 20671 }; then 20672 eval "$as_ac_var=yes" 20673else 20674 $as_echo "$as_me: failed program was:" >&5 20675sed 's/^/| /' conftest.$ac_ext >&5 20676 20677 eval "$as_ac_var=no" 20678fi 20679 20680rm -rf conftest.dSYM 20681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20682 conftest$ac_exeext conftest.$ac_ext 20683fi 20684ac_res=`eval 'as_val=${'$as_ac_var'} 20685 $as_echo "$as_val"'` 20686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 20687$as_echo "$ac_res" >&6; } 20688as_val=`eval 'as_val=${'$as_ac_var'} 20689 $as_echo "$as_val"'` 20690 if test "x$as_val" = x""yes; then 20691 cat >>confdefs.h <<_ACEOF 20692#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20693_ACEOF 20694 20695fi 20696done 20697 20698 20699 20700 20701# Extract the first word of "flex", so it can be a program name with args. 20702set dummy flex; ac_word=$2 20703{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20704$as_echo_n "checking for $ac_word... " >&6; } 20705if test "${ac_cv_path_FLEX+set}" = set; then 20706 $as_echo_n "(cached) " >&6 20707else 20708 case $FLEX in 20709 [\\/]* | ?:[\\/]*) 20710 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path. 20711 ;; 20712 *) 20713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20714for as_dir in $PATH 20715do 20716 IFS=$as_save_IFS 20717 test -z "$as_dir" && as_dir=. 20718 for ac_exec_ext in '' $ac_executable_extensions; do 20719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20720 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext" 20721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20722 break 2 20723 fi 20724done 20725done 20726IFS=$as_save_IFS 20727 20728 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="false" 20729 ;; 20730esac 20731fi 20732FLEX=$ac_cv_path_FLEX 20733if test -n "$FLEX"; then 20734 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5 20735$as_echo "$FLEX" >&6; } 20736else 20737 { $as_echo "$as_me:$LINENO: result: no" >&5 20738$as_echo "no" >&6; } 20739fi 20740 20741 20742 if test "x$FLEX" != xfalse ; then 20743 HAVE_FLEX_TRUE= 20744 HAVE_FLEX_FALSE='#' 20745else 20746 HAVE_FLEX_TRUE='#' 20747 HAVE_FLEX_FALSE= 20748fi 20749 20750if test "x$FLEX" = xfalse; then 20751 { $as_echo "$as_me:$LINENO: WARNING: flex not found, pre-generated files will be used, any changes to .l files will not affect build" >&5 20752$as_echo "$as_me: WARNING: flex not found, pre-generated files will be used, any changes to .l files will not affect build" >&2;} 20753fi 20754 20755# Extract the first word of "bison", so it can be a program name with args. 20756set dummy bison; ac_word=$2 20757{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20758$as_echo_n "checking for $ac_word... " >&6; } 20759if test "${ac_cv_path_BISON+set}" = set; then 20760 $as_echo_n "(cached) " >&6 20761else 20762 case $BISON in 20763 [\\/]* | ?:[\\/]*) 20764 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 20765 ;; 20766 *) 20767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20768for as_dir in $PATH 20769do 20770 IFS=$as_save_IFS 20771 test -z "$as_dir" && as_dir=. 20772 for ac_exec_ext in '' $ac_executable_extensions; do 20773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20774 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 20775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20776 break 2 20777 fi 20778done 20779done 20780IFS=$as_save_IFS 20781 20782 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="false" 20783 ;; 20784esac 20785fi 20786BISON=$ac_cv_path_BISON 20787if test -n "$BISON"; then 20788 { $as_echo "$as_me:$LINENO: result: $BISON" >&5 20789$as_echo "$BISON" >&6; } 20790else 20791 { $as_echo "$as_me:$LINENO: result: no" >&5 20792$as_echo "no" >&6; } 20793fi 20794 20795 20796 if test "x$BISON" != xfalse ; then 20797 HAVE_BISON_TRUE= 20798 HAVE_BISON_FALSE='#' 20799else 20800 HAVE_BISON_TRUE='#' 20801 HAVE_BISON_FALSE= 20802fi 20803 20804if test "x$BISON" = xfalse; then 20805 { $as_echo "$as_me:$LINENO: WARNING: bison not found, pre-generated files will be used, any changes to .y files will not affect build" >&5 20806$as_echo "$as_me: WARNING: bison not found, pre-generated files will be used, any changes to .y files will not affect build" >&2;} 20807fi 20808 20809have_carbon=no 20810{ $as_echo "$as_me:$LINENO: checking for Mac OS X Carbon support" >&5 20811$as_echo_n "checking for Mac OS X Carbon support... " >&6; } 20812cat >conftest.$ac_ext <<_ACEOF 20813/* confdefs.h. */ 20814_ACEOF 20815cat confdefs.h >>conftest.$ac_ext 20816cat >>conftest.$ac_ext <<_ACEOF 20817/* end confdefs.h. */ 20818 20819#include <Carbon/Carbon.h> 20820#include <CoreServices/CoreServices.h> 20821 20822_ACEOF 20823if { (ac_try="$ac_cpp conftest.$ac_ext" 20824case "(($ac_try" in 20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20826 *) ac_try_echo=$ac_try;; 20827esac 20828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20829$as_echo "$ac_try_echo") >&5 20830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20831 ac_status=$? 20832 grep -v '^ *+' conftest.er1 >conftest.err 20833 rm -f conftest.er1 20834 cat conftest.err >&5 20835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20836 (exit $ac_status); } >/dev/null && { 20837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20838 test ! -s conftest.err 20839 }; then 20840 have_carbon=yes 20841else 20842 $as_echo "$as_me: failed program was:" >&5 20843sed 's/^/| /' conftest.$ac_ext >&5 20844 20845 20846fi 20847 20848rm -f conftest.err conftest.$ac_ext 20849{ $as_echo "$as_me:$LINENO: result: $have_carbon" >&5 20850$as_echo "$have_carbon" >&6; } 20851 20852if test "x$have_carbon" = "xyes"; then 20853 LIBS="$LIBS -Wl,-framework,Carbon" 20854fi 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867# Check whether --enable-selfcontained was given. 20868if test "${enable_selfcontained+set}" = set; then 20869 enableval=$enable_selfcontained; case "${enableval}" in 20870 yes) docdir="\${prefix}/doc" 20871 shaderdir="\${prefix}/shaders" 20872 ribdir="\${prefix}/ribs" 20873 texturedir="\${prefix}/textures" 20874 displaysdir="\${prefix}/displays" 20875 proceduraldir="\${prefix}/procedurals" 20876 modulesdir="\${prefix}/modules" 20877 mandir="\${prefix}/man" 20878 ;; 20879 no) 20880 docdir="\${datadir}/doc/Pixie" 20881 shaderdir="\${datadir}/Pixie/shaders" 20882 ribdir="\${datadir}/Pixie/ribs" 20883 texturedir="\${datadir}/Pixie/textures" 20884 proceduraldir="${libdir}/Pixie/procedurals" 20885 displaysdir="\${libdir}/Pixie/displays" 20886 modulesdir="\${libdir}/Pixie/modules" 20887 ;; 20888 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selfcontained" >&5 20889$as_echo "$as_me: error: bad value ${enableval} for --enable-selfcontained" >&2;} 20890 { (exit 1); exit 1; }; } ;; 20891esac 20892else 20893 20894docdir="\${prefix}/doc" 20895shaderdir="\${prefix}/shaders" 20896ribdir="\${prefix}/ribs" 20897texturedir="\${prefix}/textures" 20898displaysdir="\${prefix}/displays" 20899proceduraldir="\${prefix}/procedurals" 20900modulesdir="\${prefix}/modules" 20901 20902fi 20903 20904 20905 20906 20907# Check whether --with-docdir was given. 20908if test "${with_docdir+set}" = set; then 20909 withval=$with_docdir; docdir="${withval}" 20910fi 20911 20912 20913 20914# Check whether --with-shaderdir was given. 20915if test "${with_shaderdir+set}" = set; then 20916 withval=$with_shaderdir; shaderdir="${withval}" 20917fi 20918 20919 20920 20921# Check whether --with-ribdir was given. 20922if test "${with_ribdir+set}" = set; then 20923 withval=$with_ribdir; ribdir="${withval}" 20924fi 20925 20926 20927 20928# Check whether --with-texturedir was given. 20929if test "${with_texturedir+set}" = set; then 20930 withval=$with_texturedir; texturedir="${withval}" 20931fi 20932 20933 20934 20935# Check whether --with-proceduraldir was given. 20936if test "${with_proceduraldir+set}" = set; then 20937 withval=$with_proceduraldir; proceduraldir="${withval}" 20938fi 20939 20940 20941 20942# Check whether --with-displaysdir was given. 20943if test "${with_displaysdir+set}" = set; then 20944 withval=$with_displaysdir; displaysdir="${withval}" 20945fi 20946 20947 20948 20949# Check whether --with-modulesdir was given. 20950if test "${with_modulesdir+set}" = set; then 20951 withval=$with_modulesdir; modulesdir="${withval}" 20952fi 20953 20954 20955 20956 20957 20958 20959 20960 prefix_NONE= 20961 exec_prefix_NONE= 20962 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20963 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20964 eval ac_define_dir="$docdir" 20965 eval ac_define_dir="\"$ac_define_dir\"" 20966 PIXIE_DOCS="$ac_define_dir" 20967 20968 docdir="$ac_define_dir" 20969 20970 20971cat >>confdefs.h <<_ACEOF 20972#define PIXIE_DOCS "$ac_define_dir" 20973_ACEOF 20974 20975 test "$prefix_NONE" && prefix=NONE 20976 test "$exec_prefix_NONE" && exec_prefix=NONE 20977 20978 20979 prefix_NONE= 20980 exec_prefix_NONE= 20981 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20982 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20983 eval ac_define_dir="$shaderdir" 20984 eval ac_define_dir="\"$ac_define_dir\"" 20985 PIXIE_SHADERS="$ac_define_dir" 20986 20987 shaderdir="$ac_define_dir" 20988 20989 20990cat >>confdefs.h <<_ACEOF 20991#define PIXIE_SHADERS "$ac_define_dir" 20992_ACEOF 20993 20994 test "$prefix_NONE" && prefix=NONE 20995 test "$exec_prefix_NONE" && exec_prefix=NONE 20996 20997 20998 prefix_NONE= 20999 exec_prefix_NONE= 21000 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21001 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21002 eval ac_define_dir="$ribdir" 21003 eval ac_define_dir="\"$ac_define_dir\"" 21004 PIXIE_RIBS="$ac_define_dir" 21005 21006 ribdir="$ac_define_dir" 21007 21008 21009cat >>confdefs.h <<_ACEOF 21010#define PIXIE_RIBS "$ac_define_dir" 21011_ACEOF 21012 21013 test "$prefix_NONE" && prefix=NONE 21014 test "$exec_prefix_NONE" && exec_prefix=NONE 21015 21016 21017 prefix_NONE= 21018 exec_prefix_NONE= 21019 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21020 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21021 eval ac_define_dir="$texturedir" 21022 eval ac_define_dir="\"$ac_define_dir\"" 21023 PIXIE_TEXTURES="$ac_define_dir" 21024 21025 texturedir="$ac_define_dir" 21026 21027 21028cat >>confdefs.h <<_ACEOF 21029#define PIXIE_TEXTURES "$ac_define_dir" 21030_ACEOF 21031 21032 test "$prefix_NONE" && prefix=NONE 21033 test "$exec_prefix_NONE" && exec_prefix=NONE 21034 21035 21036 prefix_NONE= 21037 exec_prefix_NONE= 21038 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21039 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21040 eval ac_define_dir="$displaysdir" 21041 eval ac_define_dir="\"$ac_define_dir\"" 21042 PIXIE_DISPLAYS="$ac_define_dir" 21043 21044 displaysdir="$ac_define_dir" 21045 21046 21047cat >>confdefs.h <<_ACEOF 21048#define PIXIE_DISPLAYS "$ac_define_dir" 21049_ACEOF 21050 21051 test "$prefix_NONE" && prefix=NONE 21052 test "$exec_prefix_NONE" && exec_prefix=NONE 21053 21054 21055 prefix_NONE= 21056 exec_prefix_NONE= 21057 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21058 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21059 eval ac_define_dir="$proceduraldir" 21060 eval ac_define_dir="\"$ac_define_dir\"" 21061 PIXIE_PROCEDURALS="$ac_define_dir" 21062 21063 proceduraldir="$ac_define_dir" 21064 21065 21066cat >>confdefs.h <<_ACEOF 21067#define PIXIE_PROCEDURALS "$ac_define_dir" 21068_ACEOF 21069 21070 test "$prefix_NONE" && prefix=NONE 21071 test "$exec_prefix_NONE" && exec_prefix=NONE 21072 21073 21074 prefix_NONE= 21075 exec_prefix_NONE= 21076 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21077 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21078 eval ac_define_dir="$modulesdir" 21079 eval ac_define_dir="\"$ac_define_dir\"" 21080 PIXIE_MODULES="$ac_define_dir" 21081 21082 modulesdir="$ac_define_dir" 21083 21084 21085cat >>confdefs.h <<_ACEOF 21086#define PIXIE_MODULES "$ac_define_dir" 21087_ACEOF 21088 21089 test "$prefix_NONE" && prefix=NONE 21090 test "$exec_prefix_NONE" && exec_prefix=NONE 21091 21092 21093ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/common/Makefile src/file/Makefile src/framebuffer/Makefile src/openexr/Makefile src/gui/Makefile src/precomp/Makefile src/rgbe/Makefile src/sdr/Makefile src/sdrc/Makefile src/ri/Makefile src/rndr/Makefile src/texmake/Makefile src/sdrinfo/Makefile src/show/Makefile" 21094 21095cat >confcache <<\_ACEOF 21096# This file is a shell script that caches the results of configure 21097# tests run on this system so they can be shared between configure 21098# scripts and configure runs, see configure's option --config-cache. 21099# It is not useful on other systems. If it contains results you don't 21100# want to keep, you may remove or edit it. 21101# 21102# config.status only pays attention to the cache file if you give it 21103# the --recheck option to rerun configure. 21104# 21105# `ac_cv_env_foo' variables (set or unset) will be overridden when 21106# loading this file, other *unset* `ac_cv_foo' will be assigned the 21107# following values. 21108 21109_ACEOF 21110 21111# The following way of writing the cache mishandles newlines in values, 21112# but we know of no workaround that is simple, portable, and efficient. 21113# So, we kill variables containing newlines. 21114# Ultrix sh set writes to stderr and can't be redirected directly, 21115# and sets the high bit in the cache file unless we assign to the vars. 21116( 21117 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21118 eval ac_val=\$$ac_var 21119 case $ac_val in #( 21120 *${as_nl}*) 21121 case $ac_var in #( 21122 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 21123$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21124 esac 21125 case $ac_var in #( 21126 _ | IFS | as_nl) ;; #( 21127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21128 *) $as_unset $ac_var ;; 21129 esac ;; 21130 esac 21131 done 21132 21133 (set) 2>&1 | 21134 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21135 *${as_nl}ac_space=\ *) 21136 # `set' does not quote correctly, so add quotes (double-quote 21137 # substitution turns \\\\ into \\, and sed turns \\ into \). 21138 sed -n \ 21139 "s/'/'\\\\''/g; 21140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21141 ;; #( 21142 *) 21143 # `set' quotes correctly as required by POSIX, so do not add quotes. 21144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21145 ;; 21146 esac | 21147 sort 21148) | 21149 sed ' 21150 /^ac_cv_env_/b end 21151 t clear 21152 :clear 21153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21154 t end 21155 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21156 :end' >>confcache 21157if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21158 if test -w "$cache_file"; then 21159 test "x$cache_file" != "x/dev/null" && 21160 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21161$as_echo "$as_me: updating cache $cache_file" >&6;} 21162 cat confcache >$cache_file 21163 else 21164 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21165$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21166 fi 21167fi 21168rm -f confcache 21169 21170test "x$prefix" = xNONE && prefix=$ac_default_prefix 21171# Let make expand exec_prefix. 21172test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21173 21174DEFS=-DHAVE_CONFIG_H 21175 21176ac_libobjs= 21177ac_ltlibobjs= 21178for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21179 # 1. Remove the extension, and $U if already installed. 21180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21183 # will be set to the directory where LIBOBJS objects are built. 21184 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21185 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21186done 21187LIBOBJS=$ac_libobjs 21188 21189LTLIBOBJS=$ac_ltlibobjs 21190 21191 21192if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21193 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21194Usually this means the macro was only invoked conditionally." >&5 21195$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21196Usually this means the macro was only invoked conditionally." >&2;} 21197 { (exit 1); exit 1; }; } 21198fi 21199if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21200 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21201Usually this means the macro was only invoked conditionally." >&5 21202$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21203Usually this means the macro was only invoked conditionally." >&2;} 21204 { (exit 1); exit 1; }; } 21205fi 21206if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21207 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21208Usually this means the macro was only invoked conditionally." >&5 21209$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21210Usually this means the macro was only invoked conditionally." >&2;} 21211 { (exit 1); exit 1; }; } 21212fi 21213if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21214 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21215Usually this means the macro was only invoked conditionally." >&5 21216$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21217Usually this means the macro was only invoked conditionally." >&2;} 21218 { (exit 1); exit 1; }; } 21219fi 21220if test -z "${BUILD_FRAMEBUFFER_TRUE}" && test -z "${BUILD_FRAMEBUFFER_FALSE}"; then 21221 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_FRAMEBUFFER\" was never defined. 21222Usually this means the macro was only invoked conditionally." >&5 21223$as_echo "$as_me: error: conditional \"BUILD_FRAMEBUFFER\" was never defined. 21224Usually this means the macro was only invoked conditionally." >&2;} 21225 { (exit 1); exit 1; }; } 21226fi 21227if test -z "${BUILD_SHOW_TRUE}" && test -z "${BUILD_SHOW_FALSE}"; then 21228 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SHOW\" was never defined. 21229Usually this means the macro was only invoked conditionally." >&5 21230$as_echo "$as_me: error: conditional \"BUILD_SHOW\" was never defined. 21231Usually this means the macro was only invoked conditionally." >&2;} 21232 { (exit 1); exit 1; }; } 21233fi 21234if test -z "${BUILD_OPENEXR_TRUE}" && test -z "${BUILD_OPENEXR_FALSE}"; then 21235 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_OPENEXR\" was never defined. 21236Usually this means the macro was only invoked conditionally." >&5 21237$as_echo "$as_me: error: conditional \"BUILD_OPENEXR\" was never defined. 21238Usually this means the macro was only invoked conditionally." >&2;} 21239 { (exit 1); exit 1; }; } 21240fi 21241if test -z "${HAVE_FLEX_TRUE}" && test -z "${HAVE_FLEX_FALSE}"; then 21242 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_FLEX\" was never defined. 21243Usually this means the macro was only invoked conditionally." >&5 21244$as_echo "$as_me: error: conditional \"HAVE_FLEX\" was never defined. 21245Usually this means the macro was only invoked conditionally." >&2;} 21246 { (exit 1); exit 1; }; } 21247fi 21248if test -z "${HAVE_BISON_TRUE}" && test -z "${HAVE_BISON_FALSE}"; then 21249 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BISON\" was never defined. 21250Usually this means the macro was only invoked conditionally." >&5 21251$as_echo "$as_me: error: conditional \"HAVE_BISON\" was never defined. 21252Usually this means the macro was only invoked conditionally." >&2;} 21253 { (exit 1); exit 1; }; } 21254fi 21255 21256: ${CONFIG_STATUS=./config.status} 21257ac_write_fail=0 21258ac_clean_files_save=$ac_clean_files 21259ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21260{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21261$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21262cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21263#! $SHELL 21264# Generated by $as_me. 21265# Run this file to recreate the current configuration. 21266# Compiler output produced by configure, useful for debugging 21267# configure, is in config.log if it exists. 21268 21269debug=false 21270ac_cs_recheck=false 21271ac_cs_silent=false 21272SHELL=\${CONFIG_SHELL-$SHELL} 21273_ACEOF 21274 21275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21276## --------------------- ## 21277## M4sh Initialization. ## 21278## --------------------- ## 21279 21280# Be more Bourne compatible 21281DUALCASE=1; export DUALCASE # for MKS sh 21282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21283 emulate sh 21284 NULLCMD=: 21285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21286 # is contrary to our usage. Disable this feature. 21287 alias -g '${1+"$@"}'='"$@"' 21288 setopt NO_GLOB_SUBST 21289else 21290 case `(set -o) 2>/dev/null` in 21291 *posix*) set -o posix ;; 21292esac 21293 21294fi 21295 21296 21297 21298 21299# PATH needs CR 21300# Avoid depending upon Character Ranges. 21301as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21302as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21303as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21304as_cr_digits='0123456789' 21305as_cr_alnum=$as_cr_Letters$as_cr_digits 21306 21307as_nl=' 21308' 21309export as_nl 21310# Printing a long string crashes Solaris 7 /usr/bin/printf. 21311as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21312as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21313as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21314if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21315 as_echo='printf %s\n' 21316 as_echo_n='printf %s' 21317else 21318 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21319 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21320 as_echo_n='/usr/ucb/echo -n' 21321 else 21322 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21323 as_echo_n_body='eval 21324 arg=$1; 21325 case $arg in 21326 *"$as_nl"*) 21327 expr "X$arg" : "X\\(.*\\)$as_nl"; 21328 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21329 esac; 21330 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21331 ' 21332 export as_echo_n_body 21333 as_echo_n='sh -c $as_echo_n_body as_echo' 21334 fi 21335 export as_echo_body 21336 as_echo='sh -c $as_echo_body as_echo' 21337fi 21338 21339# The user is always right. 21340if test "${PATH_SEPARATOR+set}" != set; then 21341 PATH_SEPARATOR=: 21342 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21343 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21344 PATH_SEPARATOR=';' 21345 } 21346fi 21347 21348# Support unset when possible. 21349if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21350 as_unset=unset 21351else 21352 as_unset=false 21353fi 21354 21355 21356# IFS 21357# We need space, tab and new line, in precisely that order. Quoting is 21358# there to prevent editors from complaining about space-tab. 21359# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21360# splitting by setting IFS to empty value.) 21361IFS=" "" $as_nl" 21362 21363# Find who we are. Look in the path if we contain no directory separator. 21364case $0 in 21365 *[\\/]* ) as_myself=$0 ;; 21366 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21367for as_dir in $PATH 21368do 21369 IFS=$as_save_IFS 21370 test -z "$as_dir" && as_dir=. 21371 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21372done 21373IFS=$as_save_IFS 21374 21375 ;; 21376esac 21377# We did not find ourselves, most probably we were run as `sh COMMAND' 21378# in which case we are not to be found in the path. 21379if test "x$as_myself" = x; then 21380 as_myself=$0 21381fi 21382if test ! -f "$as_myself"; then 21383 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21384 { (exit 1); exit 1; } 21385fi 21386 21387# Work around bugs in pre-3.0 UWIN ksh. 21388for as_var in ENV MAIL MAILPATH 21389do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21390done 21391PS1='$ ' 21392PS2='> ' 21393PS4='+ ' 21394 21395# NLS nuisances. 21396LC_ALL=C 21397export LC_ALL 21398LANGUAGE=C 21399export LANGUAGE 21400 21401# Required to use basename. 21402if expr a : '\(a\)' >/dev/null 2>&1 && 21403 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21404 as_expr=expr 21405else 21406 as_expr=false 21407fi 21408 21409if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21410 as_basename=basename 21411else 21412 as_basename=false 21413fi 21414 21415 21416# Name of the executable. 21417as_me=`$as_basename -- "$0" || 21418$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21419 X"$0" : 'X\(//\)$' \| \ 21420 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21421$as_echo X/"$0" | 21422 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21423 s//\1/ 21424 q 21425 } 21426 /^X\/\(\/\/\)$/{ 21427 s//\1/ 21428 q 21429 } 21430 /^X\/\(\/\).*/{ 21431 s//\1/ 21432 q 21433 } 21434 s/.*/./; q'` 21435 21436# CDPATH. 21437$as_unset CDPATH 21438 21439 21440 21441 as_lineno_1=$LINENO 21442 as_lineno_2=$LINENO 21443 test "x$as_lineno_1" != "x$as_lineno_2" && 21444 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21445 21446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21447 # uniformly replaced by the line number. The first 'sed' inserts a 21448 # line-number line after each line using $LINENO; the second 'sed' 21449 # does the real work. The second script uses 'N' to pair each 21450 # line-number line with the line containing $LINENO, and appends 21451 # trailing '-' during substitution so that $LINENO is not a special 21452 # case at line end. 21453 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21454 # scripts with optimization help from Paolo Bonzini. Blame Lee 21455 # E. McMahon (1931-1989) for sed's syntax. :-) 21456 sed -n ' 21457 p 21458 /[$]LINENO/= 21459 ' <$as_myself | 21460 sed ' 21461 s/[$]LINENO.*/&-/ 21462 t lineno 21463 b 21464 :lineno 21465 N 21466 :loop 21467 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21468 t loop 21469 s/-\n.*// 21470 ' >$as_me.lineno && 21471 chmod +x "$as_me.lineno" || 21472 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21473 { (exit 1); exit 1; }; } 21474 21475 # Don't try to exec as it changes $[0], causing all sort of problems 21476 # (the dirname of $[0] is not the place where we might find the 21477 # original and so on. Autoconf is especially sensitive to this). 21478 . "./$as_me.lineno" 21479 # Exit status is that of the last command. 21480 exit 21481} 21482 21483 21484if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21485 as_dirname=dirname 21486else 21487 as_dirname=false 21488fi 21489 21490ECHO_C= ECHO_N= ECHO_T= 21491case `echo -n x` in 21492-n*) 21493 case `echo 'x\c'` in 21494 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21495 *) ECHO_C='\c';; 21496 esac;; 21497*) 21498 ECHO_N='-n';; 21499esac 21500if expr a : '\(a\)' >/dev/null 2>&1 && 21501 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21502 as_expr=expr 21503else 21504 as_expr=false 21505fi 21506 21507rm -f conf$$ conf$$.exe conf$$.file 21508if test -d conf$$.dir; then 21509 rm -f conf$$.dir/conf$$.file 21510else 21511 rm -f conf$$.dir 21512 mkdir conf$$.dir 2>/dev/null 21513fi 21514if (echo >conf$$.file) 2>/dev/null; then 21515 if ln -s conf$$.file conf$$ 2>/dev/null; then 21516 as_ln_s='ln -s' 21517 # ... but there are two gotchas: 21518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21520 # In both cases, we have to default to `cp -p'. 21521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21522 as_ln_s='cp -p' 21523 elif ln conf$$.file conf$$ 2>/dev/null; then 21524 as_ln_s=ln 21525 else 21526 as_ln_s='cp -p' 21527 fi 21528else 21529 as_ln_s='cp -p' 21530fi 21531rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21532rmdir conf$$.dir 2>/dev/null 21533 21534if mkdir -p . 2>/dev/null; then 21535 as_mkdir_p=: 21536else 21537 test -d ./-p && rmdir ./-p 21538 as_mkdir_p=false 21539fi 21540 21541if test -x / >/dev/null 2>&1; then 21542 as_test_x='test -x' 21543else 21544 if ls -dL / >/dev/null 2>&1; then 21545 as_ls_L_option=L 21546 else 21547 as_ls_L_option= 21548 fi 21549 as_test_x=' 21550 eval sh -c '\'' 21551 if test -d "$1"; then 21552 test -d "$1/."; 21553 else 21554 case $1 in 21555 -*)set "./$1";; 21556 esac; 21557 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21558 ???[sx]*):;;*)false;;esac;fi 21559 '\'' sh 21560 ' 21561fi 21562as_executable_p=$as_test_x 21563 21564# Sed expression to map a string onto a valid CPP name. 21565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21566 21567# Sed expression to map a string onto a valid variable name. 21568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21569 21570 21571exec 6>&1 21572 21573# Save the log message, to keep $[0] and so on meaningful, and to 21574# report actual input values of CONFIG_FILES etc. instead of their 21575# values after options handling. 21576ac_log=" 21577This file was extended by $as_me, which was 21578generated by GNU Autoconf 2.63. Invocation command line was 21579 21580 CONFIG_FILES = $CONFIG_FILES 21581 CONFIG_HEADERS = $CONFIG_HEADERS 21582 CONFIG_LINKS = $CONFIG_LINKS 21583 CONFIG_COMMANDS = $CONFIG_COMMANDS 21584 $ $0 $@ 21585 21586on `(hostname || uname -n) 2>/dev/null | sed 1q` 21587" 21588 21589_ACEOF 21590 21591case $ac_config_files in *" 21592"*) set x $ac_config_files; shift; ac_config_files=$*;; 21593esac 21594 21595case $ac_config_headers in *" 21596"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21597esac 21598 21599 21600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21601# Files that config.status was made for. 21602config_files="$ac_config_files" 21603config_headers="$ac_config_headers" 21604config_commands="$ac_config_commands" 21605 21606_ACEOF 21607 21608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21609ac_cs_usage="\ 21610\`$as_me' instantiates files from templates according to the 21611current configuration. 21612 21613Usage: $0 [OPTION]... [FILE]... 21614 21615 -h, --help print this help, then exit 21616 -V, --version print version number and configuration settings, then exit 21617 -q, --quiet, --silent 21618 do not print progress messages 21619 -d, --debug don't remove temporary files 21620 --recheck update $as_me by reconfiguring in the same conditions 21621 --file=FILE[:TEMPLATE] 21622 instantiate the configuration file FILE 21623 --header=FILE[:TEMPLATE] 21624 instantiate the configuration header FILE 21625 21626Configuration files: 21627$config_files 21628 21629Configuration headers: 21630$config_headers 21631 21632Configuration commands: 21633$config_commands 21634 21635Report bugs to <bug-autoconf@gnu.org>." 21636 21637_ACEOF 21638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21639ac_cs_version="\\ 21640config.status 21641configured by $0, generated by GNU Autoconf 2.63, 21642 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21643 21644Copyright (C) 2008 Free Software Foundation, Inc. 21645This config.status script is free software; the Free Software Foundation 21646gives unlimited permission to copy, distribute and modify it." 21647 21648ac_pwd='$ac_pwd' 21649srcdir='$srcdir' 21650INSTALL='$INSTALL' 21651MKDIR_P='$MKDIR_P' 21652AWK='$AWK' 21653test -n "\$AWK" || AWK=awk 21654_ACEOF 21655 21656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21657# The default lists apply if the user does not specify any file. 21658ac_need_defaults=: 21659while test $# != 0 21660do 21661 case $1 in 21662 --*=*) 21663 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21664 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21665 ac_shift=: 21666 ;; 21667 *) 21668 ac_option=$1 21669 ac_optarg=$2 21670 ac_shift=shift 21671 ;; 21672 esac 21673 21674 case $ac_option in 21675 # Handling of the options. 21676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21677 ac_cs_recheck=: ;; 21678 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21679 $as_echo "$ac_cs_version"; exit ;; 21680 --debug | --debu | --deb | --de | --d | -d ) 21681 debug=: ;; 21682 --file | --fil | --fi | --f ) 21683 $ac_shift 21684 case $ac_optarg in 21685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21686 esac 21687 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21688 ac_need_defaults=false;; 21689 --header | --heade | --head | --hea ) 21690 $ac_shift 21691 case $ac_optarg in 21692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21693 esac 21694 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 21695 ac_need_defaults=false;; 21696 --he | --h) 21697 # Conflict between --help and --header 21698 { $as_echo "$as_me: error: ambiguous option: $1 21699Try \`$0 --help' for more information." >&2 21700 { (exit 1); exit 1; }; };; 21701 --help | --hel | -h ) 21702 $as_echo "$ac_cs_usage"; exit ;; 21703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21704 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21705 ac_cs_silent=: ;; 21706 21707 # This is an error. 21708 -*) { $as_echo "$as_me: error: unrecognized option: $1 21709Try \`$0 --help' for more information." >&2 21710 { (exit 1); exit 1; }; } ;; 21711 21712 *) ac_config_targets="$ac_config_targets $1" 21713 ac_need_defaults=false ;; 21714 21715 esac 21716 shift 21717done 21718 21719ac_configure_extra_args= 21720 21721if $ac_cs_silent; then 21722 exec 6>/dev/null 21723 ac_configure_extra_args="$ac_configure_extra_args --silent" 21724fi 21725 21726_ACEOF 21727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21728if \$ac_cs_recheck; then 21729 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21730 shift 21731 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21732 CONFIG_SHELL='$SHELL' 21733 export CONFIG_SHELL 21734 exec "\$@" 21735fi 21736 21737_ACEOF 21738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21739exec 5>>config.log 21740{ 21741 echo 21742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21743## Running $as_me. ## 21744_ASBOX 21745 $as_echo "$ac_log" 21746} >&5 21747 21748_ACEOF 21749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21750# 21751# INIT-COMMANDS 21752# 21753AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21754 21755 21756# The HP-UX ksh and POSIX shell print the target directory to stdout 21757# if CDPATH is set. 21758(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21759 21760sed_quote_subst='$sed_quote_subst' 21761double_quote_subst='$double_quote_subst' 21762delay_variable_subst='$delay_variable_subst' 21763enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 21764macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 21765macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 21766enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 21767pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 21768enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 21769host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 21770host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 21771host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 21772build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 21773build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 21774build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 21775SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 21776Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 21777GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 21778EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 21779FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 21780LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 21781NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 21782LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 21783max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 21784ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 21785exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 21786lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 21787lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 21788lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 21789reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 21790reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21791OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 21792deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 21793file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 21794AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 21795AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 21796STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 21797RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 21798old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21799old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21800old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21801CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 21802CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 21803compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 21804GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 21805lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 21806lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 21807lt_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"`' 21808lt_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"`' 21809objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 21810SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 21811ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 21812MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 21813lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 21814lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 21815lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 21816lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 21817lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 21818need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 21819DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 21820NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 21821LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 21822OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 21823OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 21824libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 21825shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21826extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21827archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 21828enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 21829export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 21830whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 21831compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 21832old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21833old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21834archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21835archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21836module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21837module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21838with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 21839allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 21840no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 21841hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 21842hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 21843hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 21844hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 21845hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 21846hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 21847hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 21848hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 21849inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 21850link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 21851fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 21852always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 21853export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21854exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 21855include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 21856prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21857file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 21858variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 21859need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 21860need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 21861version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 21862runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 21863shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 21864shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 21865libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 21866library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 21867soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 21868postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21869postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21870finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 21871finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 21872hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 21873sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 21874sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 21875hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 21876enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 21877enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 21878enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 21879old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 21880striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 21881compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 21882predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 21883postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 21884predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 21885postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 21886compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 21887LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21888old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21889compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21890GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21891lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21892lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21893lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21894lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21895lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21896archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21897enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21898export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21899whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21900compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21901old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21902old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21903archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21904archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21905module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21906module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21907with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21908allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21909no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21910hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21911hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21912hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21913hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21914hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21915hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21916hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21917hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21918inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21919link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21920fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21921always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21922export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21923exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21924include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21925prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21926file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21927hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21928compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21929predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21930postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21931predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21932postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21933compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 21934 21935LTCC='$LTCC' 21936LTCFLAGS='$LTCFLAGS' 21937compiler='$compiler_DEFAULT' 21938 21939# Quote evaled strings. 21940for var in SED \ 21941GREP \ 21942EGREP \ 21943FGREP \ 21944LD \ 21945NM \ 21946LN_S \ 21947lt_SP2NL \ 21948lt_NL2SP \ 21949reload_flag \ 21950OBJDUMP \ 21951deplibs_check_method \ 21952file_magic_cmd \ 21953AR \ 21954AR_FLAGS \ 21955STRIP \ 21956RANLIB \ 21957CC \ 21958CFLAGS \ 21959compiler \ 21960lt_cv_sys_global_symbol_pipe \ 21961lt_cv_sys_global_symbol_to_cdecl \ 21962lt_cv_sys_global_symbol_to_c_name_address \ 21963lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21964SHELL \ 21965ECHO \ 21966lt_prog_compiler_no_builtin_flag \ 21967lt_prog_compiler_wl \ 21968lt_prog_compiler_pic \ 21969lt_prog_compiler_static \ 21970lt_cv_prog_compiler_c_o \ 21971need_locks \ 21972DSYMUTIL \ 21973NMEDIT \ 21974LIPO \ 21975OTOOL \ 21976OTOOL64 \ 21977shrext_cmds \ 21978export_dynamic_flag_spec \ 21979whole_archive_flag_spec \ 21980compiler_needs_object \ 21981with_gnu_ld \ 21982allow_undefined_flag \ 21983no_undefined_flag \ 21984hardcode_libdir_flag_spec \ 21985hardcode_libdir_flag_spec_ld \ 21986hardcode_libdir_separator \ 21987fix_srcfile_path \ 21988exclude_expsyms \ 21989include_expsyms \ 21990file_list_spec \ 21991variables_saved_for_relink \ 21992libname_spec \ 21993library_names_spec \ 21994soname_spec \ 21995finish_eval \ 21996old_striplib \ 21997striplib \ 21998compiler_lib_search_dirs \ 21999predep_objects \ 22000postdep_objects \ 22001predeps \ 22002postdeps \ 22003compiler_lib_search_path \ 22004LD_CXX \ 22005compiler_CXX \ 22006lt_prog_compiler_no_builtin_flag_CXX \ 22007lt_prog_compiler_wl_CXX \ 22008lt_prog_compiler_pic_CXX \ 22009lt_prog_compiler_static_CXX \ 22010lt_cv_prog_compiler_c_o_CXX \ 22011export_dynamic_flag_spec_CXX \ 22012whole_archive_flag_spec_CXX \ 22013compiler_needs_object_CXX \ 22014with_gnu_ld_CXX \ 22015allow_undefined_flag_CXX \ 22016no_undefined_flag_CXX \ 22017hardcode_libdir_flag_spec_CXX \ 22018hardcode_libdir_flag_spec_ld_CXX \ 22019hardcode_libdir_separator_CXX \ 22020fix_srcfile_path_CXX \ 22021exclude_expsyms_CXX \ 22022include_expsyms_CXX \ 22023file_list_spec_CXX \ 22024compiler_lib_search_dirs_CXX \ 22025predep_objects_CXX \ 22026postdep_objects_CXX \ 22027predeps_CXX \ 22028postdeps_CXX \ 22029compiler_lib_search_path_CXX; do 22030 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22031 *[\\\\\\\`\\"\\\$]*) 22032 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22033 ;; 22034 *) 22035 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22036 ;; 22037 esac 22038done 22039 22040# Double-quote double-evaled strings. 22041for var in reload_cmds \ 22042old_postinstall_cmds \ 22043old_postuninstall_cmds \ 22044old_archive_cmds \ 22045extract_expsyms_cmds \ 22046old_archive_from_new_cmds \ 22047old_archive_from_expsyms_cmds \ 22048archive_cmds \ 22049archive_expsym_cmds \ 22050module_cmds \ 22051module_expsym_cmds \ 22052export_symbols_cmds \ 22053prelink_cmds \ 22054postinstall_cmds \ 22055postuninstall_cmds \ 22056finish_cmds \ 22057sys_lib_search_path_spec \ 22058sys_lib_dlsearch_path_spec \ 22059old_archive_cmds_CXX \ 22060old_archive_from_new_cmds_CXX \ 22061old_archive_from_expsyms_cmds_CXX \ 22062archive_cmds_CXX \ 22063archive_expsym_cmds_CXX \ 22064module_cmds_CXX \ 22065module_expsym_cmds_CXX \ 22066export_symbols_cmds_CXX \ 22067prelink_cmds_CXX; do 22068 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22069 *[\\\\\\\`\\"\\\$]*) 22070 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22071 ;; 22072 *) 22073 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22074 ;; 22075 esac 22076done 22077 22078# Fix-up fallback echo if it was mangled by the above quoting rules. 22079case \$lt_ECHO in 22080*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 22081 ;; 22082esac 22083 22084ac_aux_dir='$ac_aux_dir' 22085xsi_shell='$xsi_shell' 22086lt_shell_append='$lt_shell_append' 22087 22088# See if we are running on zsh, and set the options which allow our 22089# commands through without removal of \ escapes INIT. 22090if test -n "\${ZSH_VERSION+set}" ; then 22091 setopt NO_GLOB_SUBST 22092fi 22093 22094 22095 PACKAGE='$PACKAGE' 22096 VERSION='$VERSION' 22097 TIMESTAMP='$TIMESTAMP' 22098 RM='$RM' 22099 ofile='$ofile' 22100 22101 22102 22103 22104 22105 22106_ACEOF 22107 22108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22109 22110# Handling of arguments. 22111for ac_config_target in $ac_config_targets 22112do 22113 case $ac_config_target in 22114 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22115 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22116 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22117 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22118 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22119 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22120 "src/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;; 22121 "src/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/file/Makefile" ;; 22122 "src/framebuffer/Makefile") CONFIG_FILES="$CONFIG_FILES src/framebuffer/Makefile" ;; 22123 "src/openexr/Makefile") CONFIG_FILES="$CONFIG_FILES src/openexr/Makefile" ;; 22124 "src/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gui/Makefile" ;; 22125 "src/precomp/Makefile") CONFIG_FILES="$CONFIG_FILES src/precomp/Makefile" ;; 22126 "src/rgbe/Makefile") CONFIG_FILES="$CONFIG_FILES src/rgbe/Makefile" ;; 22127 "src/sdr/Makefile") CONFIG_FILES="$CONFIG_FILES src/sdr/Makefile" ;; 22128 "src/sdrc/Makefile") CONFIG_FILES="$CONFIG_FILES src/sdrc/Makefile" ;; 22129 "src/ri/Makefile") CONFIG_FILES="$CONFIG_FILES src/ri/Makefile" ;; 22130 "src/rndr/Makefile") CONFIG_FILES="$CONFIG_FILES src/rndr/Makefile" ;; 22131 "src/texmake/Makefile") CONFIG_FILES="$CONFIG_FILES src/texmake/Makefile" ;; 22132 "src/sdrinfo/Makefile") CONFIG_FILES="$CONFIG_FILES src/sdrinfo/Makefile" ;; 22133 "src/show/Makefile") CONFIG_FILES="$CONFIG_FILES src/show/Makefile" ;; 22134 22135 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22136$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22137 { (exit 1); exit 1; }; };; 22138 esac 22139done 22140 22141 22142# If the user did not use the arguments to specify the items to instantiate, 22143# then the envvar interface is used. Set only those that are not. 22144# We use the long form for the default assignment because of an extremely 22145# bizarre bug on SunOS 4.1.3. 22146if $ac_need_defaults; then 22147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22149 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22150fi 22151 22152# Have a temporary directory for convenience. Make it in the build tree 22153# simply because there is no reason against having it here, and in addition, 22154# creating and moving files from /tmp can sometimes cause problems. 22155# Hook for its removal unless debugging. 22156# Note that there is a small window in which the directory will not be cleaned: 22157# after its creation but before its name has been assigned to `$tmp'. 22158$debug || 22159{ 22160 tmp= 22161 trap 'exit_status=$? 22162 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22163' 0 22164 trap '{ (exit 1); exit 1; }' 1 2 13 15 22165} 22166# Create a (secure) tmp directory for tmp files. 22167 22168{ 22169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22170 test -n "$tmp" && test -d "$tmp" 22171} || 22172{ 22173 tmp=./conf$$-$RANDOM 22174 (umask 077 && mkdir "$tmp") 22175} || 22176{ 22177 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22178 { (exit 1); exit 1; } 22179} 22180 22181# Set up the scripts for CONFIG_FILES section. 22182# No need to generate them if there are no CONFIG_FILES. 22183# This happens for instance with `./config.status config.h'. 22184if test -n "$CONFIG_FILES"; then 22185 22186 22187ac_cr=' 22188' 22189ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22190if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22191 ac_cs_awk_cr='\\r' 22192else 22193 ac_cs_awk_cr=$ac_cr 22194fi 22195 22196echo 'BEGIN {' >"$tmp/subs1.awk" && 22197_ACEOF 22198 22199 22200{ 22201 echo "cat >conf$$subs.awk <<_ACEOF" && 22202 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22203 echo "_ACEOF" 22204} >conf$$subs.sh || 22205 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22206$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22207 { (exit 1); exit 1; }; } 22208ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22209ac_delim='%!_!# ' 22210for ac_last_try in false false false false false :; do 22211 . ./conf$$subs.sh || 22212 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22213$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22214 { (exit 1); exit 1; }; } 22215 22216 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22217 if test $ac_delim_n = $ac_delim_num; then 22218 break 22219 elif $ac_last_try; then 22220 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22221$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22222 { (exit 1); exit 1; }; } 22223 else 22224 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22225 fi 22226done 22227rm -f conf$$subs.sh 22228 22229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22230cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22231_ACEOF 22232sed -n ' 22233h 22234s/^/S["/; s/!.*/"]=/ 22235p 22236g 22237s/^[^!]*!// 22238:repl 22239t repl 22240s/'"$ac_delim"'$// 22241t delim 22242:nl 22243h 22244s/\(.\{148\}\).*/\1/ 22245t more1 22246s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22247p 22248n 22249b repl 22250:more1 22251s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22252p 22253g 22254s/.\{148\}// 22255t nl 22256:delim 22257h 22258s/\(.\{148\}\).*/\1/ 22259t more2 22260s/["\\]/\\&/g; s/^/"/; s/$/"/ 22261p 22262b 22263:more2 22264s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22265p 22266g 22267s/.\{148\}// 22268t delim 22269' <conf$$subs.awk | sed ' 22270/^[^""]/{ 22271 N 22272 s/\n// 22273} 22274' >>$CONFIG_STATUS || ac_write_fail=1 22275rm -f conf$$subs.awk 22276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22277_ACAWK 22278cat >>"\$tmp/subs1.awk" <<_ACAWK && 22279 for (key in S) S_is_set[key] = 1 22280 FS = "" 22281 22282} 22283{ 22284 line = $ 0 22285 nfields = split(line, field, "@") 22286 substed = 0 22287 len = length(field[1]) 22288 for (i = 2; i < nfields; i++) { 22289 key = field[i] 22290 keylen = length(key) 22291 if (S_is_set[key]) { 22292 value = S[key] 22293 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22294 len += length(value) + length(field[++i]) 22295 substed = 1 22296 } else 22297 len += 1 + keylen 22298 } 22299 22300 print line 22301} 22302 22303_ACAWK 22304_ACEOF 22305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22306if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22307 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22308else 22309 cat 22310fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22311 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22312$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22313 { (exit 1); exit 1; }; } 22314_ACEOF 22315 22316# VPATH may cause trouble with some makes, so we remove $(srcdir), 22317# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22318# trailing colons and then remove the whole line if VPATH becomes empty 22319# (actually we leave an empty line to preserve line numbers). 22320if test "x$srcdir" = x.; then 22321 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22322s/:*\$(srcdir):*/:/ 22323s/:*\${srcdir}:*/:/ 22324s/:*@srcdir@:*/:/ 22325s/^\([^=]*=[ ]*\):*/\1/ 22326s/:*$// 22327s/^[^=]*=[ ]*$// 22328}' 22329fi 22330 22331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22332fi # test -n "$CONFIG_FILES" 22333 22334# Set up the scripts for CONFIG_HEADERS section. 22335# No need to generate them if there are no CONFIG_HEADERS. 22336# This happens for instance with `./config.status Makefile'. 22337if test -n "$CONFIG_HEADERS"; then 22338cat >"$tmp/defines.awk" <<\_ACAWK || 22339BEGIN { 22340_ACEOF 22341 22342# Transform confdefs.h into an awk script `defines.awk', embedded as 22343# here-document in config.status, that substitutes the proper values into 22344# config.h.in to produce config.h. 22345 22346# Create a delimiter string that does not exist in confdefs.h, to ease 22347# handling of long lines. 22348ac_delim='%!_!# ' 22349for ac_last_try in false false :; do 22350 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22351 if test -z "$ac_t"; then 22352 break 22353 elif $ac_last_try; then 22354 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22355$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22356 { (exit 1); exit 1; }; } 22357 else 22358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22359 fi 22360done 22361 22362# For the awk script, D is an array of macro values keyed by name, 22363# likewise P contains macro parameters if any. Preserve backslash 22364# newline sequences. 22365 22366ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22367sed -n ' 22368s/.\{148\}/&'"$ac_delim"'/g 22369t rset 22370:rset 22371s/^[ ]*#[ ]*define[ ][ ]*/ / 22372t def 22373d 22374:def 22375s/\\$// 22376t bsnl 22377s/["\\]/\\&/g 22378s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22379D["\1"]=" \3"/p 22380s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22381d 22382:bsnl 22383s/["\\]/\\&/g 22384s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22385D["\1"]=" \3\\\\\\n"\\/p 22386t cont 22387s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22388t cont 22389d 22390:cont 22391n 22392s/.\{148\}/&'"$ac_delim"'/g 22393t clear 22394:clear 22395s/\\$// 22396t bsnlc 22397s/["\\]/\\&/g; s/^/"/; s/$/"/p 22398d 22399:bsnlc 22400s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22401b cont 22402' <confdefs.h | sed ' 22403s/'"$ac_delim"'/"\\\ 22404"/g' >>$CONFIG_STATUS || ac_write_fail=1 22405 22406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22407 for (key in D) D_is_set[key] = 1 22408 FS = "" 22409} 22410/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22411 line = \$ 0 22412 split(line, arg, " ") 22413 if (arg[1] == "#") { 22414 defundef = arg[2] 22415 mac1 = arg[3] 22416 } else { 22417 defundef = substr(arg[1], 2) 22418 mac1 = arg[2] 22419 } 22420 split(mac1, mac2, "(") #) 22421 macro = mac2[1] 22422 prefix = substr(line, 1, index(line, defundef) - 1) 22423 if (D_is_set[macro]) { 22424 # Preserve the white space surrounding the "#". 22425 print prefix "define", macro P[macro] D[macro] 22426 next 22427 } else { 22428 # Replace #undef with comments. This is necessary, for example, 22429 # in the case of _POSIX_SOURCE, which is predefined and required 22430 # on some systems where configure will not decide to define it. 22431 if (defundef == "undef") { 22432 print "/*", prefix defundef, macro, "*/" 22433 next 22434 } 22435 } 22436} 22437{ print } 22438_ACAWK 22439_ACEOF 22440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22441 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22442$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22443 { (exit 1); exit 1; }; } 22444fi # test -n "$CONFIG_HEADERS" 22445 22446 22447eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22448shift 22449for ac_tag 22450do 22451 case $ac_tag in 22452 :[FHLC]) ac_mode=$ac_tag; continue;; 22453 esac 22454 case $ac_mode$ac_tag in 22455 :[FHL]*:*);; 22456 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22457$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22458 { (exit 1); exit 1; }; };; 22459 :[FH]-) ac_tag=-:-;; 22460 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22461 esac 22462 ac_save_IFS=$IFS 22463 IFS=: 22464 set x $ac_tag 22465 IFS=$ac_save_IFS 22466 shift 22467 ac_file=$1 22468 shift 22469 22470 case $ac_mode in 22471 :L) ac_source=$1;; 22472 :[FH]) 22473 ac_file_inputs= 22474 for ac_f 22475 do 22476 case $ac_f in 22477 -) ac_f="$tmp/stdin";; 22478 *) # Look for the file first in the build tree, then in the source tree 22479 # (if the path is not absolute). The absolute path cannot be DOS-style, 22480 # because $ac_f cannot contain `:'. 22481 test -f "$ac_f" || 22482 case $ac_f in 22483 [\\/$]*) false;; 22484 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22485 esac || 22486 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22487$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22488 { (exit 1); exit 1; }; };; 22489 esac 22490 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22491 ac_file_inputs="$ac_file_inputs '$ac_f'" 22492 done 22493 22494 # Let's still pretend it is `configure' which instantiates (i.e., don't 22495 # use $as_me), people would be surprised to read: 22496 # /* config.h. Generated by config.status. */ 22497 configure_input='Generated from '` 22498 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22499 `' by configure.' 22500 if test x"$ac_file" != x-; then 22501 configure_input="$ac_file. $configure_input" 22502 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22503$as_echo "$as_me: creating $ac_file" >&6;} 22504 fi 22505 # Neutralize special characters interpreted by sed in replacement strings. 22506 case $configure_input in #( 22507 *\&* | *\|* | *\\* ) 22508 ac_sed_conf_input=`$as_echo "$configure_input" | 22509 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22510 *) ac_sed_conf_input=$configure_input;; 22511 esac 22512 22513 case $ac_tag in 22514 *:-:* | *:-) cat >"$tmp/stdin" \ 22515 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22516$as_echo "$as_me: error: could not create $ac_file" >&2;} 22517 { (exit 1); exit 1; }; } ;; 22518 esac 22519 ;; 22520 esac 22521 22522 ac_dir=`$as_dirname -- "$ac_file" || 22523$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22524 X"$ac_file" : 'X\(//\)[^/]' \| \ 22525 X"$ac_file" : 'X\(//\)$' \| \ 22526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22527$as_echo X"$ac_file" | 22528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22529 s//\1/ 22530 q 22531 } 22532 /^X\(\/\/\)[^/].*/{ 22533 s//\1/ 22534 q 22535 } 22536 /^X\(\/\/\)$/{ 22537 s//\1/ 22538 q 22539 } 22540 /^X\(\/\).*/{ 22541 s//\1/ 22542 q 22543 } 22544 s/.*/./; q'` 22545 { as_dir="$ac_dir" 22546 case $as_dir in #( 22547 -*) as_dir=./$as_dir;; 22548 esac 22549 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22550 as_dirs= 22551 while :; do 22552 case $as_dir in #( 22553 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22554 *) as_qdir=$as_dir;; 22555 esac 22556 as_dirs="'$as_qdir' $as_dirs" 22557 as_dir=`$as_dirname -- "$as_dir" || 22558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22559 X"$as_dir" : 'X\(//\)[^/]' \| \ 22560 X"$as_dir" : 'X\(//\)$' \| \ 22561 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22562$as_echo X"$as_dir" | 22563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22564 s//\1/ 22565 q 22566 } 22567 /^X\(\/\/\)[^/].*/{ 22568 s//\1/ 22569 q 22570 } 22571 /^X\(\/\/\)$/{ 22572 s//\1/ 22573 q 22574 } 22575 /^X\(\/\).*/{ 22576 s//\1/ 22577 q 22578 } 22579 s/.*/./; q'` 22580 test -d "$as_dir" && break 22581 done 22582 test -z "$as_dirs" || eval "mkdir $as_dirs" 22583 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22584$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22585 { (exit 1); exit 1; }; }; } 22586 ac_builddir=. 22587 22588case "$ac_dir" in 22589.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22590*) 22591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22592 # A ".." for each directory in $ac_dir_suffix. 22593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22594 case $ac_top_builddir_sub in 22595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22597 esac ;; 22598esac 22599ac_abs_top_builddir=$ac_pwd 22600ac_abs_builddir=$ac_pwd$ac_dir_suffix 22601# for backward compatibility: 22602ac_top_builddir=$ac_top_build_prefix 22603 22604case $srcdir in 22605 .) # We are building in place. 22606 ac_srcdir=. 22607 ac_top_srcdir=$ac_top_builddir_sub 22608 ac_abs_top_srcdir=$ac_pwd ;; 22609 [\\/]* | ?:[\\/]* ) # Absolute name. 22610 ac_srcdir=$srcdir$ac_dir_suffix; 22611 ac_top_srcdir=$srcdir 22612 ac_abs_top_srcdir=$srcdir ;; 22613 *) # Relative name. 22614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22615 ac_top_srcdir=$ac_top_build_prefix$srcdir 22616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22617esac 22618ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22619 22620 22621 case $ac_mode in 22622 :F) 22623 # 22624 # CONFIG_FILE 22625 # 22626 22627 case $INSTALL in 22628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22630 esac 22631 ac_MKDIR_P=$MKDIR_P 22632 case $MKDIR_P in 22633 [\\/$]* | ?:[\\/]* ) ;; 22634 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22635 esac 22636_ACEOF 22637 22638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22639# If the template does not know about datarootdir, expand it. 22640# FIXME: This hack should be removed a few years after 2.60. 22641ac_datarootdir_hack=; ac_datarootdir_seen= 22642 22643ac_sed_dataroot=' 22644/datarootdir/ { 22645 p 22646 q 22647} 22648/@datadir@/p 22649/@docdir@/p 22650/@infodir@/p 22651/@localedir@/p 22652/@mandir@/p 22653' 22654case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22655*datarootdir*) ac_datarootdir_seen=yes;; 22656*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22657 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22658$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22659_ACEOF 22660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22661 ac_datarootdir_hack=' 22662 s&@datadir@&$datadir&g 22663 s&@docdir@&$docdir&g 22664 s&@infodir@&$infodir&g 22665 s&@localedir@&$localedir&g 22666 s&@mandir@&$mandir&g 22667 s&\\\${datarootdir}&$datarootdir&g' ;; 22668esac 22669_ACEOF 22670 22671# Neutralize VPATH when `$srcdir' = `.'. 22672# Shell code in configure.ac might set extrasub. 22673# FIXME: do we really want to maintain this feature? 22674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22675ac_sed_extra="$ac_vpsub 22676$extrasub 22677_ACEOF 22678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22679:t 22680/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22681s|@configure_input@|$ac_sed_conf_input|;t t 22682s&@top_builddir@&$ac_top_builddir_sub&;t t 22683s&@top_build_prefix@&$ac_top_build_prefix&;t t 22684s&@srcdir@&$ac_srcdir&;t t 22685s&@abs_srcdir@&$ac_abs_srcdir&;t t 22686s&@top_srcdir@&$ac_top_srcdir&;t t 22687s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22688s&@builddir@&$ac_builddir&;t t 22689s&@abs_builddir@&$ac_abs_builddir&;t t 22690s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22691s&@INSTALL@&$ac_INSTALL&;t t 22692s&@MKDIR_P@&$ac_MKDIR_P&;t t 22693$ac_datarootdir_hack 22694" 22695eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22696 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22697$as_echo "$as_me: error: could not create $ac_file" >&2;} 22698 { (exit 1); exit 1; }; } 22699 22700test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22701 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22703 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22704which seems to be undefined. Please make sure it is defined." >&5 22705$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22706which seems to be undefined. Please make sure it is defined." >&2;} 22707 22708 rm -f "$tmp/stdin" 22709 case $ac_file in 22710 -) cat "$tmp/out" && rm -f "$tmp/out";; 22711 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22712 esac \ 22713 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22714$as_echo "$as_me: error: could not create $ac_file" >&2;} 22715 { (exit 1); exit 1; }; } 22716 ;; 22717 :H) 22718 # 22719 # CONFIG_HEADER 22720 # 22721 if test x"$ac_file" != x-; then 22722 { 22723 $as_echo "/* $configure_input */" \ 22724 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22725 } >"$tmp/config.h" \ 22726 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22727$as_echo "$as_me: error: could not create $ac_file" >&2;} 22728 { (exit 1); exit 1; }; } 22729 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22730 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22731$as_echo "$as_me: $ac_file is unchanged" >&6;} 22732 else 22733 rm -f "$ac_file" 22734 mv "$tmp/config.h" "$ac_file" \ 22735 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22736$as_echo "$as_me: error: could not create $ac_file" >&2;} 22737 { (exit 1); exit 1; }; } 22738 fi 22739 else 22740 $as_echo "/* $configure_input */" \ 22741 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22742 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22743$as_echo "$as_me: error: could not create -" >&2;} 22744 { (exit 1); exit 1; }; } 22745 fi 22746# Compute "$ac_file"'s index in $config_headers. 22747_am_arg="$ac_file" 22748_am_stamp_count=1 22749for _am_header in $config_headers :; do 22750 case $_am_header in 22751 $_am_arg | $_am_arg:* ) 22752 break ;; 22753 * ) 22754 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22755 esac 22756done 22757echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22758$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22759 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22760 X"$_am_arg" : 'X\(//\)$' \| \ 22761 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22762$as_echo X"$_am_arg" | 22763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22764 s//\1/ 22765 q 22766 } 22767 /^X\(\/\/\)[^/].*/{ 22768 s//\1/ 22769 q 22770 } 22771 /^X\(\/\/\)$/{ 22772 s//\1/ 22773 q 22774 } 22775 /^X\(\/\).*/{ 22776 s//\1/ 22777 q 22778 } 22779 s/.*/./; q'`/stamp-h$_am_stamp_count 22780 ;; 22781 22782 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22783$as_echo "$as_me: executing $ac_file commands" >&6;} 22784 ;; 22785 esac 22786 22787 22788 case $ac_file$ac_mode in 22789 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22790 # Autoconf 2.62 quotes --file arguments for eval, but not when files 22791 # are listed without --file. Let's play safe and only enable the eval 22792 # if we detect the quoting. 22793 case $CONFIG_FILES in 22794 *\'*) eval set x "$CONFIG_FILES" ;; 22795 *) set x $CONFIG_FILES ;; 22796 esac 22797 shift 22798 for mf 22799 do 22800 # Strip MF so we end up with the name of the file. 22801 mf=`echo "$mf" | sed -e 's/:.*$//'` 22802 # Check whether this is an Automake generated Makefile or not. 22803 # We used to match only the files named `Makefile.in', but 22804 # some people rename them; so instead we look at the file content. 22805 # Grep'ing the first line is not enough: some people post-process 22806 # each Makefile.in and add a new line on top of each file to say so. 22807 # Grep'ing the whole file is not good either: AIX grep has a line 22808 # limit of 2048, but all sed's we know have understand at least 4000. 22809 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22810 dirpart=`$as_dirname -- "$mf" || 22811$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22812 X"$mf" : 'X\(//\)[^/]' \| \ 22813 X"$mf" : 'X\(//\)$' \| \ 22814 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22815$as_echo X"$mf" | 22816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22817 s//\1/ 22818 q 22819 } 22820 /^X\(\/\/\)[^/].*/{ 22821 s//\1/ 22822 q 22823 } 22824 /^X\(\/\/\)$/{ 22825 s//\1/ 22826 q 22827 } 22828 /^X\(\/\).*/{ 22829 s//\1/ 22830 q 22831 } 22832 s/.*/./; q'` 22833 else 22834 continue 22835 fi 22836 # Extract the definition of DEPDIR, am__include, and am__quote 22837 # from the Makefile without running `make'. 22838 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22839 test -z "$DEPDIR" && continue 22840 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22841 test -z "am__include" && continue 22842 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22843 # When using ansi2knr, U may be empty or an underscore; expand it 22844 U=`sed -n 's/^U = //p' < "$mf"` 22845 # Find all dependency output files, they are included files with 22846 # $(DEPDIR) in their names. We invoke sed twice because it is the 22847 # simplest approach to changing $(DEPDIR) to its actual value in the 22848 # expansion. 22849 for file in `sed -n " 22850 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22851 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22852 # Make sure the directory exists. 22853 test -f "$dirpart/$file" && continue 22854 fdir=`$as_dirname -- "$file" || 22855$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22856 X"$file" : 'X\(//\)[^/]' \| \ 22857 X"$file" : 'X\(//\)$' \| \ 22858 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22859$as_echo X"$file" | 22860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22861 s//\1/ 22862 q 22863 } 22864 /^X\(\/\/\)[^/].*/{ 22865 s//\1/ 22866 q 22867 } 22868 /^X\(\/\/\)$/{ 22869 s//\1/ 22870 q 22871 } 22872 /^X\(\/\).*/{ 22873 s//\1/ 22874 q 22875 } 22876 s/.*/./; q'` 22877 { as_dir=$dirpart/$fdir 22878 case $as_dir in #( 22879 -*) as_dir=./$as_dir;; 22880 esac 22881 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22882 as_dirs= 22883 while :; do 22884 case $as_dir in #( 22885 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22886 *) as_qdir=$as_dir;; 22887 esac 22888 as_dirs="'$as_qdir' $as_dirs" 22889 as_dir=`$as_dirname -- "$as_dir" || 22890$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22891 X"$as_dir" : 'X\(//\)[^/]' \| \ 22892 X"$as_dir" : 'X\(//\)$' \| \ 22893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22894$as_echo X"$as_dir" | 22895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22896 s//\1/ 22897 q 22898 } 22899 /^X\(\/\/\)[^/].*/{ 22900 s//\1/ 22901 q 22902 } 22903 /^X\(\/\/\)$/{ 22904 s//\1/ 22905 q 22906 } 22907 /^X\(\/\).*/{ 22908 s//\1/ 22909 q 22910 } 22911 s/.*/./; q'` 22912 test -d "$as_dir" && break 22913 done 22914 test -z "$as_dirs" || eval "mkdir $as_dirs" 22915 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22916$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22917 { (exit 1); exit 1; }; }; } 22918 # echo "creating $dirpart/$file" 22919 echo '# dummy' > "$dirpart/$file" 22920 done 22921 done 22922} 22923 ;; 22924 "libtool":C) 22925 22926 # See if we are running on zsh, and set the options which allow our 22927 # commands through without removal of \ escapes. 22928 if test -n "${ZSH_VERSION+set}" ; then 22929 setopt NO_GLOB_SUBST 22930 fi 22931 22932 cfgfile="${ofile}T" 22933 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22934 $RM "$cfgfile" 22935 22936 cat <<_LT_EOF >> "$cfgfile" 22937#! $SHELL 22938 22939# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 22940# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 22941# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22942# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22943# 22944# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 22945# 2006, 2007, 2008 Free Software Foundation, Inc. 22946# Written by Gordon Matzigkeit, 1996 22947# 22948# This file is part of GNU Libtool. 22949# 22950# GNU Libtool is free software; you can redistribute it and/or 22951# modify it under the terms of the GNU General Public License as 22952# published by the Free Software Foundation; either version 2 of 22953# the License, or (at your option) any later version. 22954# 22955# As a special exception to the GNU General Public License, 22956# if you distribute this file as part of a program or library that 22957# is built using GNU Libtool, you may include this file under the 22958# same distribution terms that you use for the rest of that program. 22959# 22960# GNU Libtool is distributed in the hope that it will be useful, 22961# but WITHOUT ANY WARRANTY; without even the implied warranty of 22962# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22963# GNU General Public License for more details. 22964# 22965# You should have received a copy of the GNU General Public License 22966# along with GNU Libtool; see the file COPYING. If not, a copy 22967# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 22968# obtained by writing to the Free Software Foundation, Inc., 22969# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22970 22971 22972# The names of the tagged configurations supported by this script. 22973available_tags="CXX " 22974 22975# ### BEGIN LIBTOOL CONFIG 22976 22977# Whether or not to build static libraries. 22978build_old_libs=$enable_static 22979 22980# Which release of libtool.m4 was used? 22981macro_version=$macro_version 22982macro_revision=$macro_revision 22983 22984# Whether or not to build shared libraries. 22985build_libtool_libs=$enable_shared 22986 22987# What type of objects to build. 22988pic_mode=$pic_mode 22989 22990# Whether or not to optimize for fast installation. 22991fast_install=$enable_fast_install 22992 22993# The host system. 22994host_alias=$host_alias 22995host=$host 22996host_os=$host_os 22997 22998# The build system. 22999build_alias=$build_alias 23000build=$build 23001build_os=$build_os 23002 23003# A sed program that does not truncate output. 23004SED=$lt_SED 23005 23006# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23007Xsed="\$SED -e 1s/^X//" 23008 23009# A grep program that handles long lines. 23010GREP=$lt_GREP 23011 23012# An ERE matcher. 23013EGREP=$lt_EGREP 23014 23015# A literal string matcher. 23016FGREP=$lt_FGREP 23017 23018# A BSD- or MS-compatible name lister. 23019NM=$lt_NM 23020 23021# Whether we need soft or hard links. 23022LN_S=$lt_LN_S 23023 23024# What is the maximum length of a command? 23025max_cmd_len=$max_cmd_len 23026 23027# Object file suffix (normally "o"). 23028objext=$ac_objext 23029 23030# Executable file suffix (normally ""). 23031exeext=$exeext 23032 23033# whether the shell understands "unset". 23034lt_unset=$lt_unset 23035 23036# turn spaces into newlines. 23037SP2NL=$lt_lt_SP2NL 23038 23039# turn newlines into spaces. 23040NL2SP=$lt_lt_NL2SP 23041 23042# How to create reloadable object files. 23043reload_flag=$lt_reload_flag 23044reload_cmds=$lt_reload_cmds 23045 23046# An object symbol dumper. 23047OBJDUMP=$lt_OBJDUMP 23048 23049# Method to check whether dependent libraries are shared objects. 23050deplibs_check_method=$lt_deplibs_check_method 23051 23052# Command to use when deplibs_check_method == "file_magic". 23053file_magic_cmd=$lt_file_magic_cmd 23054 23055# The archiver. 23056AR=$lt_AR 23057AR_FLAGS=$lt_AR_FLAGS 23058 23059# A symbol stripping program. 23060STRIP=$lt_STRIP 23061 23062# Commands used to install an old-style archive. 23063RANLIB=$lt_RANLIB 23064old_postinstall_cmds=$lt_old_postinstall_cmds 23065old_postuninstall_cmds=$lt_old_postuninstall_cmds 23066 23067# A C compiler. 23068LTCC=$lt_CC 23069 23070# LTCC compiler flags. 23071LTCFLAGS=$lt_CFLAGS 23072 23073# Take the output of nm and produce a listing of raw symbols and C names. 23074global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23075 23076# Transform the output of nm in a proper C declaration. 23077global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23078 23079# Transform the output of nm in a C name address pair. 23080global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23081 23082# Transform the output of nm in a C name address pair when lib prefix is needed. 23083global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23084 23085# The name of the directory that contains temporary libtool files. 23086objdir=$objdir 23087 23088# Shell to use when invoking shell scripts. 23089SHELL=$lt_SHELL 23090 23091# An echo program that does not interpret backslashes. 23092ECHO=$lt_ECHO 23093 23094# Used to examine libraries when file_magic_cmd begins with "file". 23095MAGIC_CMD=$MAGIC_CMD 23096 23097# Must we lock files when doing compilation? 23098need_locks=$lt_need_locks 23099 23100# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23101DSYMUTIL=$lt_DSYMUTIL 23102 23103# Tool to change global to local symbols on Mac OS X. 23104NMEDIT=$lt_NMEDIT 23105 23106# Tool to manipulate fat objects and archives on Mac OS X. 23107LIPO=$lt_LIPO 23108 23109# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23110OTOOL=$lt_OTOOL 23111 23112# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23113OTOOL64=$lt_OTOOL64 23114 23115# Old archive suffix (normally "a"). 23116libext=$libext 23117 23118# Shared library suffix (normally ".so"). 23119shrext_cmds=$lt_shrext_cmds 23120 23121# The commands to extract the exported symbol list from a shared archive. 23122extract_expsyms_cmds=$lt_extract_expsyms_cmds 23123 23124# Variables whose values should be saved in libtool wrapper scripts and 23125# restored at link time. 23126variables_saved_for_relink=$lt_variables_saved_for_relink 23127 23128# Do we need the "lib" prefix for modules? 23129need_lib_prefix=$need_lib_prefix 23130 23131# Do we need a version for libraries? 23132need_version=$need_version 23133 23134# Library versioning type. 23135version_type=$version_type 23136 23137# Shared library runtime path variable. 23138runpath_var=$runpath_var 23139 23140# Shared library path variable. 23141shlibpath_var=$shlibpath_var 23142 23143# Is shlibpath searched before the hard-coded library search path? 23144shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23145 23146# Format of library name prefix. 23147libname_spec=$lt_libname_spec 23148 23149# List of archive names. First name is the real one, the rest are links. 23150# The last name is the one that the linker finds with -lNAME 23151library_names_spec=$lt_library_names_spec 23152 23153# The coded name of the library, if different from the real name. 23154soname_spec=$lt_soname_spec 23155 23156# Command to use after installation of a shared archive. 23157postinstall_cmds=$lt_postinstall_cmds 23158 23159# Command to use after uninstallation of a shared archive. 23160postuninstall_cmds=$lt_postuninstall_cmds 23161 23162# Commands used to finish a libtool library installation in a directory. 23163finish_cmds=$lt_finish_cmds 23164 23165# As "finish_cmds", except a single script fragment to be evaled but 23166# not shown. 23167finish_eval=$lt_finish_eval 23168 23169# Whether we should hardcode library paths into libraries. 23170hardcode_into_libs=$hardcode_into_libs 23171 23172# Compile-time system search path for libraries. 23173sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23174 23175# Run-time system search path for libraries. 23176sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23177 23178# Whether dlopen is supported. 23179dlopen_support=$enable_dlopen 23180 23181# Whether dlopen of programs is supported. 23182dlopen_self=$enable_dlopen_self 23183 23184# Whether dlopen of statically linked programs is supported. 23185dlopen_self_static=$enable_dlopen_self_static 23186 23187# Commands to strip libraries. 23188old_striplib=$lt_old_striplib 23189striplib=$lt_striplib 23190 23191 23192# The linker used to build libraries. 23193LD=$lt_LD 23194 23195# Commands used to build an old-style archive. 23196old_archive_cmds=$lt_old_archive_cmds 23197 23198# A language specific compiler. 23199CC=$lt_compiler 23200 23201# Is the compiler the GNU compiler? 23202with_gcc=$GCC 23203 23204# Compiler flag to turn off builtin functions. 23205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23206 23207# How to pass a linker flag through the compiler. 23208wl=$lt_lt_prog_compiler_wl 23209 23210# Additional compiler flags for building library objects. 23211pic_flag=$lt_lt_prog_compiler_pic 23212 23213# Compiler flag to prevent dynamic linking. 23214link_static_flag=$lt_lt_prog_compiler_static 23215 23216# Does compiler simultaneously support -c and -o options? 23217compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23218 23219# Whether or not to add -lc for building shared libraries. 23220build_libtool_need_lc=$archive_cmds_need_lc 23221 23222# Whether or not to disallow shared libs when runtime libs are static. 23223allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23224 23225# Compiler flag to allow reflexive dlopens. 23226export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23227 23228# Compiler flag to generate shared objects directly from archives. 23229whole_archive_flag_spec=$lt_whole_archive_flag_spec 23230 23231# Whether the compiler copes with passing no objects directly. 23232compiler_needs_object=$lt_compiler_needs_object 23233 23234# Create an old-style archive from a shared archive. 23235old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23236 23237# Create a temporary old-style archive to link instead of a shared archive. 23238old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23239 23240# Commands used to build a shared archive. 23241archive_cmds=$lt_archive_cmds 23242archive_expsym_cmds=$lt_archive_expsym_cmds 23243 23244# Commands used to build a loadable module if different from building 23245# a shared archive. 23246module_cmds=$lt_module_cmds 23247module_expsym_cmds=$lt_module_expsym_cmds 23248 23249# Whether we are building with GNU ld or not. 23250with_gnu_ld=$lt_with_gnu_ld 23251 23252# Flag that allows shared libraries with undefined symbols to be built. 23253allow_undefined_flag=$lt_allow_undefined_flag 23254 23255# Flag that enforces no undefined symbols. 23256no_undefined_flag=$lt_no_undefined_flag 23257 23258# Flag to hardcode \$libdir into a binary during linking. 23259# This must work even if \$libdir does not exist 23260hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23261 23262# If ld is used when linking, flag to hardcode \$libdir into a binary 23263# during linking. This must work even if \$libdir does not exist. 23264hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 23265 23266# Whether we need a single "-rpath" flag with a separated argument. 23267hardcode_libdir_separator=$lt_hardcode_libdir_separator 23268 23269# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23270# DIR into the resulting binary. 23271hardcode_direct=$hardcode_direct 23272 23273# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23274# DIR into the resulting binary and the resulting library dependency is 23275# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23276# library is relocated. 23277hardcode_direct_absolute=$hardcode_direct_absolute 23278 23279# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23280# into the resulting binary. 23281hardcode_minus_L=$hardcode_minus_L 23282 23283# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23284# into the resulting binary. 23285hardcode_shlibpath_var=$hardcode_shlibpath_var 23286 23287# Set to "yes" if building a shared library automatically hardcodes DIR 23288# into the library and all subsequent libraries and executables linked 23289# against it. 23290hardcode_automatic=$hardcode_automatic 23291 23292# Set to yes if linker adds runtime paths of dependent libraries 23293# to runtime path list. 23294inherit_rpath=$inherit_rpath 23295 23296# Whether libtool must link a program against all its dependency libraries. 23297link_all_deplibs=$link_all_deplibs 23298 23299# Fix the shell variable \$srcfile for the compiler. 23300fix_srcfile_path=$lt_fix_srcfile_path 23301 23302# Set to "yes" if exported symbols are required. 23303always_export_symbols=$always_export_symbols 23304 23305# The commands to list exported symbols. 23306export_symbols_cmds=$lt_export_symbols_cmds 23307 23308# Symbols that should not be listed in the preloaded symbols. 23309exclude_expsyms=$lt_exclude_expsyms 23310 23311# Symbols that must always be exported. 23312include_expsyms=$lt_include_expsyms 23313 23314# Commands necessary for linking programs (against libraries) with templates. 23315prelink_cmds=$lt_prelink_cmds 23316 23317# Specify filename containing input files. 23318file_list_spec=$lt_file_list_spec 23319 23320# How to hardcode a shared library path into an executable. 23321hardcode_action=$hardcode_action 23322 23323# The directories searched by this compiler when creating a shared library. 23324compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23325 23326# Dependencies to place before and after the objects being linked to 23327# create a shared library. 23328predep_objects=$lt_predep_objects 23329postdep_objects=$lt_postdep_objects 23330predeps=$lt_predeps 23331postdeps=$lt_postdeps 23332 23333# The library search path used internally by the compiler when linking 23334# a shared library. 23335compiler_lib_search_path=$lt_compiler_lib_search_path 23336 23337# ### END LIBTOOL CONFIG 23338 23339_LT_EOF 23340 23341 case $host_os in 23342 aix3*) 23343 cat <<\_LT_EOF >> "$cfgfile" 23344# AIX sometimes has problems with the GCC collect2 program. For some 23345# reason, if we set the COLLECT_NAMES environment variable, the problems 23346# vanish in a puff of smoke. 23347if test "X${COLLECT_NAMES+set}" != Xset; then 23348 COLLECT_NAMES= 23349 export COLLECT_NAMES 23350fi 23351_LT_EOF 23352 ;; 23353 esac 23354 23355 23356ltmain="$ac_aux_dir/ltmain.sh" 23357 23358 23359 # We use sed instead of cat because bash on DJGPP gets confused if 23360 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23361 # text mode, it properly converts lines to CR/LF. This bash problem 23362 # is reportedly fixed, but why not run on old versions too? 23363 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 23364 || (rm -f "$cfgfile"; exit 1) 23365 23366 case $xsi_shell in 23367 yes) 23368 cat << \_LT_EOF >> "$cfgfile" 23369 23370# func_dirname file append nondir_replacement 23371# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23372# otherwise set result to NONDIR_REPLACEMENT. 23373func_dirname () 23374{ 23375 case ${1} in 23376 */*) func_dirname_result="${1%/*}${2}" ;; 23377 * ) func_dirname_result="${3}" ;; 23378 esac 23379} 23380 23381# func_basename file 23382func_basename () 23383{ 23384 func_basename_result="${1##*/}" 23385} 23386 23387# func_dirname_and_basename file append nondir_replacement 23388# perform func_basename and func_dirname in a single function 23389# call: 23390# dirname: Compute the dirname of FILE. If nonempty, 23391# add APPEND to the result, otherwise set result 23392# to NONDIR_REPLACEMENT. 23393# value returned in "$func_dirname_result" 23394# basename: Compute filename of FILE. 23395# value retuned in "$func_basename_result" 23396# Implementation must be kept synchronized with func_dirname 23397# and func_basename. For efficiency, we do not delegate to 23398# those functions but instead duplicate the functionality here. 23399func_dirname_and_basename () 23400{ 23401 case ${1} in 23402 */*) func_dirname_result="${1%/*}${2}" ;; 23403 * ) func_dirname_result="${3}" ;; 23404 esac 23405 func_basename_result="${1##*/}" 23406} 23407 23408# func_stripname prefix suffix name 23409# strip PREFIX and SUFFIX off of NAME. 23410# PREFIX and SUFFIX must not contain globbing or regex special 23411# characters, hashes, percent signs, but SUFFIX may contain a leading 23412# dot (in which case that matches only a dot). 23413func_stripname () 23414{ 23415 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 23416 # positional parameters, so assign one to ordinary parameter first. 23417 func_stripname_result=${3} 23418 func_stripname_result=${func_stripname_result#"${1}"} 23419 func_stripname_result=${func_stripname_result%"${2}"} 23420} 23421 23422# func_opt_split 23423func_opt_split () 23424{ 23425 func_opt_split_opt=${1%%=*} 23426 func_opt_split_arg=${1#*=} 23427} 23428 23429# func_lo2o object 23430func_lo2o () 23431{ 23432 case ${1} in 23433 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 23434 *) func_lo2o_result=${1} ;; 23435 esac 23436} 23437 23438# func_xform libobj-or-source 23439func_xform () 23440{ 23441 func_xform_result=${1%.*}.lo 23442} 23443 23444# func_arith arithmetic-term... 23445func_arith () 23446{ 23447 func_arith_result=$(( $* )) 23448} 23449 23450# func_len string 23451# STRING may not start with a hyphen. 23452func_len () 23453{ 23454 func_len_result=${#1} 23455} 23456 23457_LT_EOF 23458 ;; 23459 *) # Bourne compatible functions. 23460 cat << \_LT_EOF >> "$cfgfile" 23461 23462# func_dirname file append nondir_replacement 23463# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23464# otherwise set result to NONDIR_REPLACEMENT. 23465func_dirname () 23466{ 23467 # Extract subdirectory from the argument. 23468 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 23469 if test "X$func_dirname_result" = "X${1}"; then 23470 func_dirname_result="${3}" 23471 else 23472 func_dirname_result="$func_dirname_result${2}" 23473 fi 23474} 23475 23476# func_basename file 23477func_basename () 23478{ 23479 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 23480} 23481 23482 23483# func_stripname prefix suffix name 23484# strip PREFIX and SUFFIX off of NAME. 23485# PREFIX and SUFFIX must not contain globbing or regex special 23486# characters, hashes, percent signs, but SUFFIX may contain a leading 23487# dot (in which case that matches only a dot). 23488# func_strip_suffix prefix name 23489func_stripname () 23490{ 23491 case ${2} in 23492 .*) func_stripname_result=`$ECHO "X${3}" \ 23493 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 23494 *) func_stripname_result=`$ECHO "X${3}" \ 23495 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 23496 esac 23497} 23498 23499# sed scripts: 23500my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 23501my_sed_long_arg='1s/^-[^=]*=//' 23502 23503# func_opt_split 23504func_opt_split () 23505{ 23506 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 23507 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 23508} 23509 23510# func_lo2o object 23511func_lo2o () 23512{ 23513 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 23514} 23515 23516# func_xform libobj-or-source 23517func_xform () 23518{ 23519 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 23520} 23521 23522# func_arith arithmetic-term... 23523func_arith () 23524{ 23525 func_arith_result=`expr "$@"` 23526} 23527 23528# func_len string 23529# STRING may not start with a hyphen. 23530func_len () 23531{ 23532 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 23533} 23534 23535_LT_EOF 23536esac 23537 23538case $lt_shell_append in 23539 yes) 23540 cat << \_LT_EOF >> "$cfgfile" 23541 23542# func_append var value 23543# Append VALUE to the end of shell variable VAR. 23544func_append () 23545{ 23546 eval "$1+=\$2" 23547} 23548_LT_EOF 23549 ;; 23550 *) 23551 cat << \_LT_EOF >> "$cfgfile" 23552 23553# func_append var value 23554# Append VALUE to the end of shell variable VAR. 23555func_append () 23556{ 23557 eval "$1=\$$1\$2" 23558} 23559 23560_LT_EOF 23561 ;; 23562 esac 23563 23564 23565 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 23566 || (rm -f "$cfgfile"; exit 1) 23567 23568 mv -f "$cfgfile" "$ofile" || 23569 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23570 chmod +x "$ofile" 23571 23572 23573 cat <<_LT_EOF >> "$ofile" 23574 23575# ### BEGIN LIBTOOL TAG CONFIG: CXX 23576 23577# The linker used to build libraries. 23578LD=$lt_LD_CXX 23579 23580# Commands used to build an old-style archive. 23581old_archive_cmds=$lt_old_archive_cmds_CXX 23582 23583# A language specific compiler. 23584CC=$lt_compiler_CXX 23585 23586# Is the compiler the GNU compiler? 23587with_gcc=$GCC_CXX 23588 23589# Compiler flag to turn off builtin functions. 23590no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23591 23592# How to pass a linker flag through the compiler. 23593wl=$lt_lt_prog_compiler_wl_CXX 23594 23595# Additional compiler flags for building library objects. 23596pic_flag=$lt_lt_prog_compiler_pic_CXX 23597 23598# Compiler flag to prevent dynamic linking. 23599link_static_flag=$lt_lt_prog_compiler_static_CXX 23600 23601# Does compiler simultaneously support -c and -o options? 23602compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23603 23604# Whether or not to add -lc for building shared libraries. 23605build_libtool_need_lc=$archive_cmds_need_lc_CXX 23606 23607# Whether or not to disallow shared libs when runtime libs are static. 23608allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23609 23610# Compiler flag to allow reflexive dlopens. 23611export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23612 23613# Compiler flag to generate shared objects directly from archives. 23614whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23615 23616# Whether the compiler copes with passing no objects directly. 23617compiler_needs_object=$lt_compiler_needs_object_CXX 23618 23619# Create an old-style archive from a shared archive. 23620old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23621 23622# Create a temporary old-style archive to link instead of a shared archive. 23623old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23624 23625# Commands used to build a shared archive. 23626archive_cmds=$lt_archive_cmds_CXX 23627archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23628 23629# Commands used to build a loadable module if different from building 23630# a shared archive. 23631module_cmds=$lt_module_cmds_CXX 23632module_expsym_cmds=$lt_module_expsym_cmds_CXX 23633 23634# Whether we are building with GNU ld or not. 23635with_gnu_ld=$lt_with_gnu_ld_CXX 23636 23637# Flag that allows shared libraries with undefined symbols to be built. 23638allow_undefined_flag=$lt_allow_undefined_flag_CXX 23639 23640# Flag that enforces no undefined symbols. 23641no_undefined_flag=$lt_no_undefined_flag_CXX 23642 23643# Flag to hardcode \$libdir into a binary during linking. 23644# This must work even if \$libdir does not exist 23645hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23646 23647# If ld is used when linking, flag to hardcode \$libdir into a binary 23648# during linking. This must work even if \$libdir does not exist. 23649hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 23650 23651# Whether we need a single "-rpath" flag with a separated argument. 23652hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23653 23654# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23655# DIR into the resulting binary. 23656hardcode_direct=$hardcode_direct_CXX 23657 23658# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23659# DIR into the resulting binary and the resulting library dependency is 23660# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23661# library is relocated. 23662hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23663 23664# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23665# into the resulting binary. 23666hardcode_minus_L=$hardcode_minus_L_CXX 23667 23668# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23669# into the resulting binary. 23670hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23671 23672# Set to "yes" if building a shared library automatically hardcodes DIR 23673# into the library and all subsequent libraries and executables linked 23674# against it. 23675hardcode_automatic=$hardcode_automatic_CXX 23676 23677# Set to yes if linker adds runtime paths of dependent libraries 23678# to runtime path list. 23679inherit_rpath=$inherit_rpath_CXX 23680 23681# Whether libtool must link a program against all its dependency libraries. 23682link_all_deplibs=$link_all_deplibs_CXX 23683 23684# Fix the shell variable \$srcfile for the compiler. 23685fix_srcfile_path=$lt_fix_srcfile_path_CXX 23686 23687# Set to "yes" if exported symbols are required. 23688always_export_symbols=$always_export_symbols_CXX 23689 23690# The commands to list exported symbols. 23691export_symbols_cmds=$lt_export_symbols_cmds_CXX 23692 23693# Symbols that should not be listed in the preloaded symbols. 23694exclude_expsyms=$lt_exclude_expsyms_CXX 23695 23696# Symbols that must always be exported. 23697include_expsyms=$lt_include_expsyms_CXX 23698 23699# Commands necessary for linking programs (against libraries) with templates. 23700prelink_cmds=$lt_prelink_cmds_CXX 23701 23702# Specify filename containing input files. 23703file_list_spec=$lt_file_list_spec_CXX 23704 23705# How to hardcode a shared library path into an executable. 23706hardcode_action=$hardcode_action_CXX 23707 23708# The directories searched by this compiler when creating a shared library. 23709compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23710 23711# Dependencies to place before and after the objects being linked to 23712# create a shared library. 23713predep_objects=$lt_predep_objects_CXX 23714postdep_objects=$lt_postdep_objects_CXX 23715predeps=$lt_predeps_CXX 23716postdeps=$lt_postdeps_CXX 23717 23718# The library search path used internally by the compiler when linking 23719# a shared library. 23720compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23721 23722# ### END LIBTOOL TAG CONFIG: CXX 23723_LT_EOF 23724 23725 ;; 23726 23727 esac 23728done # for ac_tag 23729 23730 23731{ (exit 0); exit 0; } 23732_ACEOF 23733chmod +x $CONFIG_STATUS 23734ac_clean_files=$ac_clean_files_save 23735 23736test $ac_write_fail = 0 || 23737 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 23738$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 23739 { (exit 1); exit 1; }; } 23740 23741 23742# configure is writing to config.log, and then calls config.status. 23743# config.status does its own redirection, appending to config.log. 23744# Unfortunately, on DOS this fails, as config.log is still kept open 23745# by configure, so config.status won't be able to write to it; its 23746# output is simply discarded. So we exec the FD to /dev/null, 23747# effectively closing config.log, so it can be properly (re)opened and 23748# appended to by config.status. When coming back to configure, we 23749# need to make the FD available again. 23750if test "$no_create" != yes; then 23751 ac_cs_success=: 23752 ac_config_status_args= 23753 test "$silent" = yes && 23754 ac_config_status_args="$ac_config_status_args --quiet" 23755 exec 5>/dev/null 23756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23757 exec 5>>config.log 23758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23759 # would make configure fail if this is the last instruction. 23760 $ac_cs_success || { (exit 1); exit 1; } 23761fi 23762if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23763 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23764$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23765fi 23766 23767 23768if test "x$have_x11" != "xtrue"; then 23769echo "------------------------------------------------" 23770echo "---> X11 not found." 23771echo "---> You should an X11 distribution for your OS" 23772echo "---> The framebuffer display will not be built." 23773fi 23774 23775 23776if test "x$have_fltk" != "xtrue"; then 23777echo "------------------------------------------------" 23778echo "---> FLTK not found." 23779echo "---> You can download it from www.fltk.org" 23780echo "---> show will not be built." 23781fi 23782 23783if test "x$no_openexr" != "x"; then 23784echo "------------------------------------------------" 23785echo "---> OpenEXR not found." 23786echo "---> You can download it from www.openexr.org" 23787echo "---> openexr display driver will not be built." 23788fi 23789 23790if test "x$have_zlib" != "xtrue"; then 23791echo "------------------------------------------------" 23792echo "---> ZLib not found." 23793echo "---> You can download it from www.zlib.net" 23794echo "---> compressed rib support will not be built." 23795fi 23796 23797if test "x$have_libpng" != "xtrue"; then 23798echo "------------------------------------------------" 23799echo "---> libpng not found." 23800echo "---> You can download it from www.libpng.org" 23801echo "---> Writing PNG files will not be supported." 23802fi 23803 23804echo "------------------------------------------------" 23805echo " Installation info:" 23806echo " PIXIEHOME: " $prefix 23807echo " Documentation: " $docdir 23808echo " Shaders: " $shaderdir 23809echo " RIBs: " $ribdir 23810echo " Textures: " $texturedir 23811echo " Displays: " $displaysdir 23812echo " Procedurals: " $proceduraldir 23813echo " Modules: " $modulesdir 23814echo "------------------------------------------------" 23815echo "To build Pixie:" 23816echo ">make" 23817echo ">make install" 23818echo " Terminus Est" 23819echo 23820 23821