configure revision ab902922
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libXaw 1.0.5. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587echo=${ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606$* 607EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$ECHO"; then 616if test "X${echo_test_string+set}" != Xset; then 617# find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627fi 628 629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 642 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 679 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 698 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 710 fi 711 fi 712 fi 713fi 714fi 715 716# Copy echo and quote the copy suitably for passing to libtool from 717# the Makefile, instead of quoting the original, which is used later. 718ECHO=$echo 719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721fi 722 723 724 725 726tagnames=${tagnames+${tagnames},}CXX 727 728tagnames=${tagnames+${tagnames},}F77 729 730exec 7<&0 </dev/null 6>&1 731 732# Name of the host. 733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 734# so uname gets run too. 735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737# 738# Initializations. 739# 740ac_default_prefix=/usr/local 741ac_clean_files= 742ac_config_libobj_dir=. 743LIBOBJS= 744cross_compiling=no 745subdirs= 746MFLAGS= 747MAKEFLAGS= 748SHELL=${CONFIG_SHELL-/bin/sh} 749 750# Identity of this package. 751PACKAGE_NAME='libXaw' 752PACKAGE_TARNAME='libXaw' 753PACKAGE_VERSION='1.0.5' 754PACKAGE_STRING='libXaw 1.0.5' 755PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 756 757# Factoring default headers for most tests. 758ac_includes_default="\ 759#include <stdio.h> 760#ifdef HAVE_SYS_TYPES_H 761# include <sys/types.h> 762#endif 763#ifdef HAVE_SYS_STAT_H 764# include <sys/stat.h> 765#endif 766#ifdef STDC_HEADERS 767# include <stdlib.h> 768# include <stddef.h> 769#else 770# ifdef HAVE_STDLIB_H 771# include <stdlib.h> 772# endif 773#endif 774#ifdef HAVE_STRING_H 775# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 776# include <memory.h> 777# endif 778# include <string.h> 779#endif 780#ifdef HAVE_STRINGS_H 781# include <strings.h> 782#endif 783#ifdef HAVE_INTTYPES_H 784# include <inttypes.h> 785#endif 786#ifdef HAVE_STDINT_H 787# include <stdint.h> 788#endif 789#ifdef HAVE_UNISTD_H 790# include <unistd.h> 791#endif" 792 793ac_subst_vars='LTLIBOBJS 794LIBOBJS 795ADMIN_MAN_DIR 796DRIVER_MAN_DIR 797MISC_MAN_DIR 798FILE_MAN_DIR 799LIB_MAN_DIR 800APP_MAN_DIR 801ADMIN_MAN_SUFFIX 802DRIVER_MAN_SUFFIX 803MISC_MAN_SUFFIX 804FILE_MAN_SUFFIX 805LIB_MAN_SUFFIX 806APP_MAN_SUFFIX 807BUILD_XAW7_FALSE 808BUILD_XAW7_TRUE 809BUILD_XAW6_FALSE 810BUILD_XAW6_TRUE 811XAW7_LIBS 812XAW7_CFLAGS 813XAW6_LIBS 814XAW6_CFLAGS 815PLATFORM_WIN32_FALSE 816PLATFORM_WIN32_TRUE 817PKG_CONFIG 818LIBTOOL 819ac_ct_F77 820FFLAGS 821F77 822CXXCPP 823am__fastdepCXX_FALSE 824am__fastdepCXX_TRUE 825CXXDEPMODE 826ac_ct_CXX 827CXXFLAGS 828CXX 829CPP 830NMEDIT 831DSYMUTIL 832RANLIB 833AR 834ECHO 835LN_S 836EGREP 837GREP 838SED 839host_os 840host_vendor 841host_cpu 842host 843build_os 844build_vendor 845build_cpu 846build 847am__fastdepCC_FALSE 848am__fastdepCC_TRUE 849CCDEPMODE 850AMDEPBACKSLASH 851AMDEP_FALSE 852AMDEP_TRUE 853am__quote 854am__include 855DEPDIR 856OBJEXT 857EXEEXT 858ac_ct_CC 859CPPFLAGS 860LDFLAGS 861CFLAGS 862CC 863am__untar 864am__tar 865AMTAR 866am__leading_dot 867SET_MAKE 868AWK 869mkdir_p 870MKDIR_P 871INSTALL_STRIP_PROGRAM 872STRIP 873install_sh 874MAKEINFO 875AUTOHEADER 876AUTOMAKE 877AUTOCONF 878ACLOCAL 879VERSION 880PACKAGE 881CYGPATH_W 882am__isrc 883INSTALL_DATA 884INSTALL_SCRIPT 885INSTALL_PROGRAM 886target_alias 887host_alias 888build_alias 889LIBS 890ECHO_T 891ECHO_N 892ECHO_C 893DEFS 894mandir 895localedir 896libdir 897psdir 898pdfdir 899dvidir 900htmldir 901infodir 902docdir 903oldincludedir 904includedir 905localstatedir 906sharedstatedir 907sysconfdir 908datadir 909datarootdir 910libexecdir 911sbindir 912bindir 913program_transform_name 914prefix 915exec_prefix 916PACKAGE_BUGREPORT 917PACKAGE_STRING 918PACKAGE_VERSION 919PACKAGE_TARNAME 920PACKAGE_NAME 921PATH_SEPARATOR 922SHELL' 923ac_subst_files='' 924ac_user_opts=' 925enable_option_checking 926enable_dependency_tracking 927enable_shared 928enable_static 929enable_fast_install 930with_gnu_ld 931enable_libtool_lock 932with_pic 933with_tags 934enable_xaw6 935enable_xaw7 936with_release_version 937' 938 ac_precious_vars='build_alias 939host_alias 940target_alias 941CC 942CFLAGS 943LDFLAGS 944LIBS 945CPPFLAGS 946CPP 947CXX 948CXXFLAGS 949CCC 950CXXCPP 951F77 952FFLAGS 953PKG_CONFIG 954XAW6_CFLAGS 955XAW6_LIBS 956XAW7_CFLAGS 957XAW7_LIBS' 958 959 960# Initialize some variables set by options. 961ac_init_help= 962ac_init_version=false 963ac_unrecognized_opts= 964ac_unrecognized_sep= 965# The variables have the same names as the options, with 966# dashes changed to underlines. 967cache_file=/dev/null 968exec_prefix=NONE 969no_create= 970no_recursion= 971prefix=NONE 972program_prefix=NONE 973program_suffix=NONE 974program_transform_name=s,x,x, 975silent= 976site= 977srcdir= 978verbose= 979x_includes=NONE 980x_libraries=NONE 981 982# Installation directory options. 983# These are left unexpanded so users can "make install exec_prefix=/foo" 984# and all the variables that are supposed to be based on exec_prefix 985# by default will actually change. 986# Use braces instead of parens because sh, perl, etc. also accept them. 987# (The list follows the same order as the GNU Coding Standards.) 988bindir='${exec_prefix}/bin' 989sbindir='${exec_prefix}/sbin' 990libexecdir='${exec_prefix}/libexec' 991datarootdir='${prefix}/share' 992datadir='${datarootdir}' 993sysconfdir='${prefix}/etc' 994sharedstatedir='${prefix}/com' 995localstatedir='${prefix}/var' 996includedir='${prefix}/include' 997oldincludedir='/usr/include' 998docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 999infodir='${datarootdir}/info' 1000htmldir='${docdir}' 1001dvidir='${docdir}' 1002pdfdir='${docdir}' 1003psdir='${docdir}' 1004libdir='${exec_prefix}/lib' 1005localedir='${datarootdir}/locale' 1006mandir='${datarootdir}/man' 1007 1008ac_prev= 1009ac_dashdash= 1010for ac_option 1011do 1012 # If the previous option needs an argument, assign it. 1013 if test -n "$ac_prev"; then 1014 eval $ac_prev=\$ac_option 1015 ac_prev= 1016 continue 1017 fi 1018 1019 case $ac_option in 1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1021 *) ac_optarg=yes ;; 1022 esac 1023 1024 # Accept the important Cygnus configure options, so we can diagnose typos. 1025 1026 case $ac_dashdash$ac_option in 1027 --) 1028 ac_dashdash=yes ;; 1029 1030 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1031 ac_prev=bindir ;; 1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1033 bindir=$ac_optarg ;; 1034 1035 -build | --build | --buil | --bui | --bu) 1036 ac_prev=build_alias ;; 1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1038 build_alias=$ac_optarg ;; 1039 1040 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1042 ac_prev=cache_file ;; 1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1045 cache_file=$ac_optarg ;; 1046 1047 --config-cache | -C) 1048 cache_file=config.cache ;; 1049 1050 -datadir | --datadir | --datadi | --datad) 1051 ac_prev=datadir ;; 1052 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1053 datadir=$ac_optarg ;; 1054 1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1056 | --dataroo | --dataro | --datar) 1057 ac_prev=datarootdir ;; 1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1060 datarootdir=$ac_optarg ;; 1061 1062 -disable-* | --disable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1067 { (exit 1); exit 1; }; } 1068 ac_useropt_orig=$ac_useropt 1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1070 case $ac_user_opts in 1071 *" 1072"enable_$ac_useropt" 1073"*) ;; 1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1075 ac_unrecognized_sep=', ';; 1076 esac 1077 eval enable_$ac_useropt=no ;; 1078 1079 -docdir | --docdir | --docdi | --doc | --do) 1080 ac_prev=docdir ;; 1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1082 docdir=$ac_optarg ;; 1083 1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1085 ac_prev=dvidir ;; 1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1087 dvidir=$ac_optarg ;; 1088 1089 -enable-* | --enable-*) 1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1091 # Reject names that are not valid shell variable names. 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1094 { (exit 1); exit 1; }; } 1095 ac_useropt_orig=$ac_useropt 1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1097 case $ac_user_opts in 1098 *" 1099"enable_$ac_useropt" 1100"*) ;; 1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1102 ac_unrecognized_sep=', ';; 1103 esac 1104 eval enable_$ac_useropt=\$ac_optarg ;; 1105 1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1108 | --exec | --exe | --ex) 1109 ac_prev=exec_prefix ;; 1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1112 | --exec=* | --exe=* | --ex=*) 1113 exec_prefix=$ac_optarg ;; 1114 1115 -gas | --gas | --ga | --g) 1116 # Obsolete; use --with-gas. 1117 with_gas=yes ;; 1118 1119 -help | --help | --hel | --he | -h) 1120 ac_init_help=long ;; 1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1122 ac_init_help=recursive ;; 1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1124 ac_init_help=short ;; 1125 1126 -host | --host | --hos | --ho) 1127 ac_prev=host_alias ;; 1128 -host=* | --host=* | --hos=* | --ho=*) 1129 host_alias=$ac_optarg ;; 1130 1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1132 ac_prev=htmldir ;; 1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1134 | --ht=*) 1135 htmldir=$ac_optarg ;; 1136 1137 -includedir | --includedir | --includedi | --included | --include \ 1138 | --includ | --inclu | --incl | --inc) 1139 ac_prev=includedir ;; 1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1141 | --includ=* | --inclu=* | --incl=* | --inc=*) 1142 includedir=$ac_optarg ;; 1143 1144 -infodir | --infodir | --infodi | --infod | --info | --inf) 1145 ac_prev=infodir ;; 1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1147 infodir=$ac_optarg ;; 1148 1149 -libdir | --libdir | --libdi | --libd) 1150 ac_prev=libdir ;; 1151 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1152 libdir=$ac_optarg ;; 1153 1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1155 | --libexe | --libex | --libe) 1156 ac_prev=libexecdir ;; 1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1158 | --libexe=* | --libex=* | --libe=*) 1159 libexecdir=$ac_optarg ;; 1160 1161 -localedir | --localedir | --localedi | --localed | --locale) 1162 ac_prev=localedir ;; 1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1164 localedir=$ac_optarg ;; 1165 1166 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1167 | --localstate | --localstat | --localsta | --localst | --locals) 1168 ac_prev=localstatedir ;; 1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1171 localstatedir=$ac_optarg ;; 1172 1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1174 ac_prev=mandir ;; 1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1176 mandir=$ac_optarg ;; 1177 1178 -nfp | --nfp | --nf) 1179 # Obsolete; use --without-fp. 1180 with_fp=no ;; 1181 1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1183 | --no-cr | --no-c | -n) 1184 no_create=yes ;; 1185 1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1188 no_recursion=yes ;; 1189 1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1192 | --oldin | --oldi | --old | --ol | --o) 1193 ac_prev=oldincludedir ;; 1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1197 oldincludedir=$ac_optarg ;; 1198 1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1200 ac_prev=prefix ;; 1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1202 prefix=$ac_optarg ;; 1203 1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1205 | --program-pre | --program-pr | --program-p) 1206 ac_prev=program_prefix ;; 1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1209 program_prefix=$ac_optarg ;; 1210 1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1212 | --program-suf | --program-su | --program-s) 1213 ac_prev=program_suffix ;; 1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1216 program_suffix=$ac_optarg ;; 1217 1218 -program-transform-name | --program-transform-name \ 1219 | --program-transform-nam | --program-transform-na \ 1220 | --program-transform-n | --program-transform- \ 1221 | --program-transform | --program-transfor \ 1222 | --program-transfo | --program-transf \ 1223 | --program-trans | --program-tran \ 1224 | --progr-tra | --program-tr | --program-t) 1225 ac_prev=program_transform_name ;; 1226 -program-transform-name=* | --program-transform-name=* \ 1227 | --program-transform-nam=* | --program-transform-na=* \ 1228 | --program-transform-n=* | --program-transform-=* \ 1229 | --program-transform=* | --program-transfor=* \ 1230 | --program-transfo=* | --program-transf=* \ 1231 | --program-trans=* | --program-tran=* \ 1232 | --progr-tra=* | --program-tr=* | --program-t=*) 1233 program_transform_name=$ac_optarg ;; 1234 1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1236 ac_prev=pdfdir ;; 1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1238 pdfdir=$ac_optarg ;; 1239 1240 -psdir | --psdir | --psdi | --psd | --ps) 1241 ac_prev=psdir ;; 1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1243 psdir=$ac_optarg ;; 1244 1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1246 | -silent | --silent | --silen | --sile | --sil) 1247 silent=yes ;; 1248 1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1250 ac_prev=sbindir ;; 1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1252 | --sbi=* | --sb=*) 1253 sbindir=$ac_optarg ;; 1254 1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1257 | --sharedst | --shareds | --shared | --share | --shar \ 1258 | --sha | --sh) 1259 ac_prev=sharedstatedir ;; 1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1263 | --sha=* | --sh=*) 1264 sharedstatedir=$ac_optarg ;; 1265 1266 -site | --site | --sit) 1267 ac_prev=site ;; 1268 -site=* | --site=* | --sit=*) 1269 site=$ac_optarg ;; 1270 1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1272 ac_prev=srcdir ;; 1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1274 srcdir=$ac_optarg ;; 1275 1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1277 | --syscon | --sysco | --sysc | --sys | --sy) 1278 ac_prev=sysconfdir ;; 1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1281 sysconfdir=$ac_optarg ;; 1282 1283 -target | --target | --targe | --targ | --tar | --ta | --t) 1284 ac_prev=target_alias ;; 1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1286 target_alias=$ac_optarg ;; 1287 1288 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1289 verbose=yes ;; 1290 1291 -version | --version | --versio | --versi | --vers | -V) 1292 ac_init_version=: ;; 1293 1294 -with-* | --with-*) 1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1296 # Reject names that are not valid shell variable names. 1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1298 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1299 { (exit 1); exit 1; }; } 1300 ac_useropt_orig=$ac_useropt 1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1302 case $ac_user_opts in 1303 *" 1304"with_$ac_useropt" 1305"*) ;; 1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1307 ac_unrecognized_sep=', ';; 1308 esac 1309 eval with_$ac_useropt=\$ac_optarg ;; 1310 1311 -without-* | --without-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1316 { (exit 1); exit 1; }; } 1317 ac_useropt_orig=$ac_useropt 1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1319 case $ac_user_opts in 1320 *" 1321"with_$ac_useropt" 1322"*) ;; 1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1324 ac_unrecognized_sep=', ';; 1325 esac 1326 eval with_$ac_useropt=no ;; 1327 1328 --x) 1329 # Obsolete; use --with-x. 1330 with_x=yes ;; 1331 1332 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1333 | --x-incl | --x-inc | --x-in | --x-i) 1334 ac_prev=x_includes ;; 1335 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1336 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1337 x_includes=$ac_optarg ;; 1338 1339 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1340 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1341 ac_prev=x_libraries ;; 1342 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1343 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1344 x_libraries=$ac_optarg ;; 1345 1346 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1347Try \`$0 --help' for more information." >&2 1348 { (exit 1); exit 1; }; } 1349 ;; 1350 1351 *=*) 1352 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1353 # Reject names that are not valid shell variable names. 1354 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1355 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1356 { (exit 1); exit 1; }; } 1357 eval $ac_envvar=\$ac_optarg 1358 export $ac_envvar ;; 1359 1360 *) 1361 # FIXME: should be removed in autoconf 3.0. 1362 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1363 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1364 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1365 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1366 ;; 1367 1368 esac 1369done 1370 1371if test -n "$ac_prev"; then 1372 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1373 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1374 { (exit 1); exit 1; }; } 1375fi 1376 1377if test -n "$ac_unrecognized_opts"; then 1378 case $enable_option_checking in 1379 no) ;; 1380 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1381 { (exit 1); exit 1; }; } ;; 1382 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1383 esac 1384fi 1385 1386# Check all directory arguments for consistency. 1387for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1388 datadir sysconfdir sharedstatedir localstatedir includedir \ 1389 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1390 libdir localedir mandir 1391do 1392 eval ac_val=\$$ac_var 1393 # Remove trailing slashes. 1394 case $ac_val in 1395 */ ) 1396 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1397 eval $ac_var=\$ac_val;; 1398 esac 1399 # Be sure to have absolute directory names. 1400 case $ac_val in 1401 [\\/$]* | ?:[\\/]* ) continue;; 1402 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1403 esac 1404 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1405 { (exit 1); exit 1; }; } 1406done 1407 1408# There might be people who depend on the old broken behavior: `$host' 1409# used to hold the argument of --host etc. 1410# FIXME: To remove some day. 1411build=$build_alias 1412host=$host_alias 1413target=$target_alias 1414 1415# FIXME: To remove some day. 1416if test "x$host_alias" != x; then 1417 if test "x$build_alias" = x; then 1418 cross_compiling=maybe 1419 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1420 If a cross compiler is detected then cross compile mode will be used." >&2 1421 elif test "x$build_alias" != "x$host_alias"; then 1422 cross_compiling=yes 1423 fi 1424fi 1425 1426ac_tool_prefix= 1427test -n "$host_alias" && ac_tool_prefix=$host_alias- 1428 1429test "$silent" = yes && exec 6>/dev/null 1430 1431 1432ac_pwd=`pwd` && test -n "$ac_pwd" && 1433ac_ls_di=`ls -di .` && 1434ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1435 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1436 { (exit 1); exit 1; }; } 1437test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1438 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1439 { (exit 1); exit 1; }; } 1440 1441 1442# Find the source files, if location was not specified. 1443if test -z "$srcdir"; then 1444 ac_srcdir_defaulted=yes 1445 # Try the directory containing this script, then the parent directory. 1446 ac_confdir=`$as_dirname -- "$as_myself" || 1447$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1448 X"$as_myself" : 'X\(//\)[^/]' \| \ 1449 X"$as_myself" : 'X\(//\)$' \| \ 1450 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1451$as_echo X"$as_myself" | 1452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1453 s//\1/ 1454 q 1455 } 1456 /^X\(\/\/\)[^/].*/{ 1457 s//\1/ 1458 q 1459 } 1460 /^X\(\/\/\)$/{ 1461 s//\1/ 1462 q 1463 } 1464 /^X\(\/\).*/{ 1465 s//\1/ 1466 q 1467 } 1468 s/.*/./; q'` 1469 srcdir=$ac_confdir 1470 if test ! -r "$srcdir/$ac_unique_file"; then 1471 srcdir=.. 1472 fi 1473else 1474 ac_srcdir_defaulted=no 1475fi 1476if test ! -r "$srcdir/$ac_unique_file"; then 1477 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1478 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1479 { (exit 1); exit 1; }; } 1480fi 1481ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1482ac_abs_confdir=`( 1483 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1484 { (exit 1); exit 1; }; } 1485 pwd)` 1486# When building in place, set srcdir=. 1487if test "$ac_abs_confdir" = "$ac_pwd"; then 1488 srcdir=. 1489fi 1490# Remove unnecessary trailing slashes from srcdir. 1491# Double slashes in file names in object file debugging info 1492# mess up M-x gdb in Emacs. 1493case $srcdir in 1494*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1495esac 1496for ac_var in $ac_precious_vars; do 1497 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1498 eval ac_env_${ac_var}_value=\$${ac_var} 1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1500 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1501done 1502 1503# 1504# Report the --help message. 1505# 1506if test "$ac_init_help" = "long"; then 1507 # Omit some internal or obsolete options to make the list less imposing. 1508 # This message is too long to be a string in the A/UX 3.1 sh. 1509 cat <<_ACEOF 1510\`configure' configures libXaw 1.0.5 to adapt to many kinds of systems. 1511 1512Usage: $0 [OPTION]... [VAR=VALUE]... 1513 1514To assign environment variables (e.g., CC, CFLAGS...), specify them as 1515VAR=VALUE. See below for descriptions of some of the useful variables. 1516 1517Defaults for the options are specified in brackets. 1518 1519Configuration: 1520 -h, --help display this help and exit 1521 --help=short display options specific to this package 1522 --help=recursive display the short help of all the included packages 1523 -V, --version display version information and exit 1524 -q, --quiet, --silent do not print \`checking...' messages 1525 --cache-file=FILE cache test results in FILE [disabled] 1526 -C, --config-cache alias for \`--cache-file=config.cache' 1527 -n, --no-create do not create output files 1528 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1529 1530Installation directories: 1531 --prefix=PREFIX install architecture-independent files in PREFIX 1532 [$ac_default_prefix] 1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1534 [PREFIX] 1535 1536By default, \`make install' will install all the files in 1537\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1538an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1539for instance \`--prefix=\$HOME'. 1540 1541For better control, use the options below. 1542 1543Fine tuning of the installation directories: 1544 --bindir=DIR user executables [EPREFIX/bin] 1545 --sbindir=DIR system admin executables [EPREFIX/sbin] 1546 --libexecdir=DIR program executables [EPREFIX/libexec] 1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1550 --libdir=DIR object code libraries [EPREFIX/lib] 1551 --includedir=DIR C header files [PREFIX/include] 1552 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1555 --infodir=DIR info documentation [DATAROOTDIR/info] 1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1557 --mandir=DIR man documentation [DATAROOTDIR/man] 1558 --docdir=DIR documentation root [DATAROOTDIR/doc/libXaw] 1559 --htmldir=DIR html documentation [DOCDIR] 1560 --dvidir=DIR dvi documentation [DOCDIR] 1561 --pdfdir=DIR pdf documentation [DOCDIR] 1562 --psdir=DIR ps documentation [DOCDIR] 1563_ACEOF 1564 1565 cat <<\_ACEOF 1566 1567Program names: 1568 --program-prefix=PREFIX prepend PREFIX to installed program names 1569 --program-suffix=SUFFIX append SUFFIX to installed program names 1570 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1571 1572System types: 1573 --build=BUILD configure for building on BUILD [guessed] 1574 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1575_ACEOF 1576fi 1577 1578if test -n "$ac_init_help"; then 1579 case $ac_init_help in 1580 short | recursive ) echo "Configuration of libXaw 1.0.5:";; 1581 esac 1582 cat <<\_ACEOF 1583 1584Optional Features: 1585 --disable-option-checking ignore unrecognized --enable/--with options 1586 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1587 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1588 --disable-dependency-tracking speeds up one-time build 1589 --enable-dependency-tracking do not reject slow dependency extractors 1590 --enable-shared[=PKGS] build shared libraries [default=yes] 1591 --enable-static[=PKGS] build static libraries [default=yes] 1592 --enable-fast-install[=PKGS] 1593 optimize for fast installation [default=yes] 1594 --disable-libtool-lock avoid locking (might break parallel builds) 1595 --disable-xaw6 Disable building of libXaw.so.6 1596 --disable-xaw7 Disable building of libXaw.so.7 1597 1598Optional Packages: 1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1601 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1602 --with-pic try to use only PIC/non-PIC objects [default=use 1603 both] 1604 --with-tags[=TAGS] include additional configurations [automatic] 1605 --with-release-version=STRING 1606 Use release version string in package name 1607 1608Some influential environment variables: 1609 CC C compiler command 1610 CFLAGS C compiler flags 1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1612 nonstandard directory <lib dir> 1613 LIBS libraries to pass to the linker, e.g. -l<library> 1614 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1615 you have headers in a nonstandard directory <include dir> 1616 CPP C preprocessor 1617 CXX C++ compiler command 1618 CXXFLAGS C++ compiler flags 1619 CXXCPP C++ preprocessor 1620 F77 Fortran 77 compiler command 1621 FFLAGS Fortran 77 compiler flags 1622 PKG_CONFIG path to pkg-config utility 1623 XAW6_CFLAGS C compiler flags for XAW6, overriding pkg-config 1624 XAW6_LIBS linker flags for XAW6, overriding pkg-config 1625 XAW7_CFLAGS C compiler flags for XAW7, overriding pkg-config 1626 XAW7_LIBS linker flags for XAW7, overriding pkg-config 1627 1628Use these variables to override the choices made by `configure' or to help 1629it to find libraries and programs with nonstandard names/locations. 1630 1631Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1632_ACEOF 1633ac_status=$? 1634fi 1635 1636if test "$ac_init_help" = "recursive"; then 1637 # If there are subdirs, report their specific --help. 1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1639 test -d "$ac_dir" || 1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1641 continue 1642 ac_builddir=. 1643 1644case "$ac_dir" in 1645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646*) 1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1648 # A ".." for each directory in $ac_dir_suffix. 1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1650 case $ac_top_builddir_sub in 1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1653 esac ;; 1654esac 1655ac_abs_top_builddir=$ac_pwd 1656ac_abs_builddir=$ac_pwd$ac_dir_suffix 1657# for backward compatibility: 1658ac_top_builddir=$ac_top_build_prefix 1659 1660case $srcdir in 1661 .) # We are building in place. 1662 ac_srcdir=. 1663 ac_top_srcdir=$ac_top_builddir_sub 1664 ac_abs_top_srcdir=$ac_pwd ;; 1665 [\\/]* | ?:[\\/]* ) # Absolute name. 1666 ac_srcdir=$srcdir$ac_dir_suffix; 1667 ac_top_srcdir=$srcdir 1668 ac_abs_top_srcdir=$srcdir ;; 1669 *) # Relative name. 1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1671 ac_top_srcdir=$ac_top_build_prefix$srcdir 1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1673esac 1674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1675 1676 cd "$ac_dir" || { ac_status=$?; continue; } 1677 # Check for guested configure. 1678 if test -f "$ac_srcdir/configure.gnu"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1681 elif test -f "$ac_srcdir/configure"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure" --help=recursive 1684 else 1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1686 fi || ac_status=$? 1687 cd "$ac_pwd" || { ac_status=$?; break; } 1688 done 1689fi 1690 1691test -n "$ac_init_help" && exit $ac_status 1692if $ac_init_version; then 1693 cat <<\_ACEOF 1694libXaw configure 1.0.5 1695generated by GNU Autoconf 2.63 1696 1697Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16982002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1699This configure script is free software; the Free Software Foundation 1700gives unlimited permission to copy, distribute and modify it. 1701_ACEOF 1702 exit 1703fi 1704cat >config.log <<_ACEOF 1705This file contains any messages produced by compilers while 1706running configure, to aid debugging if configure makes a mistake. 1707 1708It was created by libXaw $as_me 1.0.5, which was 1709generated by GNU Autoconf 2.63. Invocation command line was 1710 1711 $ $0 $@ 1712 1713_ACEOF 1714exec 5>>config.log 1715{ 1716cat <<_ASUNAME 1717## --------- ## 1718## Platform. ## 1719## --------- ## 1720 1721hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1722uname -m = `(uname -m) 2>/dev/null || echo unknown` 1723uname -r = `(uname -r) 2>/dev/null || echo unknown` 1724uname -s = `(uname -s) 2>/dev/null || echo unknown` 1725uname -v = `(uname -v) 2>/dev/null || echo unknown` 1726 1727/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1728/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1729 1730/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1731/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1732/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1733/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1734/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1735/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1736/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1737 1738_ASUNAME 1739 1740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1741for as_dir in $PATH 1742do 1743 IFS=$as_save_IFS 1744 test -z "$as_dir" && as_dir=. 1745 $as_echo "PATH: $as_dir" 1746done 1747IFS=$as_save_IFS 1748 1749} >&5 1750 1751cat >&5 <<_ACEOF 1752 1753 1754## ----------- ## 1755## Core tests. ## 1756## ----------- ## 1757 1758_ACEOF 1759 1760 1761# Keep a trace of the command line. 1762# Strip out --no-create and --no-recursion so they do not pile up. 1763# Strip out --silent because we don't want to record it for future runs. 1764# Also quote any args containing shell meta-characters. 1765# Make two passes to allow for proper duplicate-argument suppression. 1766ac_configure_args= 1767ac_configure_args0= 1768ac_configure_args1= 1769ac_must_keep_next=false 1770for ac_pass in 1 2 1771do 1772 for ac_arg 1773 do 1774 case $ac_arg in 1775 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1777 | -silent | --silent | --silen | --sile | --sil) 1778 continue ;; 1779 *\'*) 1780 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1781 esac 1782 case $ac_pass in 1783 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1784 2) 1785 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1786 if test $ac_must_keep_next = true; then 1787 ac_must_keep_next=false # Got value, back to normal. 1788 else 1789 case $ac_arg in 1790 *=* | --config-cache | -C | -disable-* | --disable-* \ 1791 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1792 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1793 | -with-* | --with-* | -without-* | --without-* | --x) 1794 case "$ac_configure_args0 " in 1795 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1796 esac 1797 ;; 1798 -* ) ac_must_keep_next=true ;; 1799 esac 1800 fi 1801 ac_configure_args="$ac_configure_args '$ac_arg'" 1802 ;; 1803 esac 1804 done 1805done 1806$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1807$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1808 1809# When interrupted or exit'd, cleanup temporary files, and complete 1810# config.log. We remove comments because anyway the quotes in there 1811# would cause problems or look ugly. 1812# WARNING: Use '\'' to represent an apostrophe within the trap. 1813# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1814trap 'exit_status=$? 1815 # Save into config.log some information that might help in debugging. 1816 { 1817 echo 1818 1819 cat <<\_ASBOX 1820## ---------------- ## 1821## Cache variables. ## 1822## ---------------- ## 1823_ASBOX 1824 echo 1825 # The following way of writing the cache mishandles newlines in values, 1826( 1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1828 eval ac_val=\$$ac_var 1829 case $ac_val in #( 1830 *${as_nl}*) 1831 case $ac_var in #( 1832 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1833$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1834 esac 1835 case $ac_var in #( 1836 _ | IFS | as_nl) ;; #( 1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1838 *) $as_unset $ac_var ;; 1839 esac ;; 1840 esac 1841 done 1842 (set) 2>&1 | 1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1844 *${as_nl}ac_space=\ *) 1845 sed -n \ 1846 "s/'\''/'\''\\\\'\'''\''/g; 1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1848 ;; #( 1849 *) 1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1851 ;; 1852 esac | 1853 sort 1854) 1855 echo 1856 1857 cat <<\_ASBOX 1858## ----------------- ## 1859## Output variables. ## 1860## ----------------- ## 1861_ASBOX 1862 echo 1863 for ac_var in $ac_subst_vars 1864 do 1865 eval ac_val=\$$ac_var 1866 case $ac_val in 1867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1868 esac 1869 $as_echo "$ac_var='\''$ac_val'\''" 1870 done | sort 1871 echo 1872 1873 if test -n "$ac_subst_files"; then 1874 cat <<\_ASBOX 1875## ------------------- ## 1876## File substitutions. ## 1877## ------------------- ## 1878_ASBOX 1879 echo 1880 for ac_var in $ac_subst_files 1881 do 1882 eval ac_val=\$$ac_var 1883 case $ac_val in 1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1885 esac 1886 $as_echo "$ac_var='\''$ac_val'\''" 1887 done | sort 1888 echo 1889 fi 1890 1891 if test -s confdefs.h; then 1892 cat <<\_ASBOX 1893## ----------- ## 1894## confdefs.h. ## 1895## ----------- ## 1896_ASBOX 1897 echo 1898 cat confdefs.h 1899 echo 1900 fi 1901 test "$ac_signal" != 0 && 1902 $as_echo "$as_me: caught signal $ac_signal" 1903 $as_echo "$as_me: exit $exit_status" 1904 } >&5 1905 rm -f core *.core core.conftest.* && 1906 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1907 exit $exit_status 1908' 0 1909for ac_signal in 1 2 13 15; do 1910 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1911done 1912ac_signal=0 1913 1914# confdefs.h avoids OS command line length limits that DEFS can exceed. 1915rm -f -r conftest* confdefs.h 1916 1917# Predefined preprocessor variables. 1918 1919cat >>confdefs.h <<_ACEOF 1920#define PACKAGE_NAME "$PACKAGE_NAME" 1921_ACEOF 1922 1923 1924cat >>confdefs.h <<_ACEOF 1925#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1926_ACEOF 1927 1928 1929cat >>confdefs.h <<_ACEOF 1930#define PACKAGE_VERSION "$PACKAGE_VERSION" 1931_ACEOF 1932 1933 1934cat >>confdefs.h <<_ACEOF 1935#define PACKAGE_STRING "$PACKAGE_STRING" 1936_ACEOF 1937 1938 1939cat >>confdefs.h <<_ACEOF 1940#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1941_ACEOF 1942 1943 1944# Let the site file select an alternate cache file if it wants to. 1945# Prefer an explicitly selected file to automatically selected ones. 1946ac_site_file1=NONE 1947ac_site_file2=NONE 1948if test -n "$CONFIG_SITE"; then 1949 ac_site_file1=$CONFIG_SITE 1950elif test "x$prefix" != xNONE; then 1951 ac_site_file1=$prefix/share/config.site 1952 ac_site_file2=$prefix/etc/config.site 1953else 1954 ac_site_file1=$ac_default_prefix/share/config.site 1955 ac_site_file2=$ac_default_prefix/etc/config.site 1956fi 1957for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1958do 1959 test "x$ac_site_file" = xNONE && continue 1960 if test -r "$ac_site_file"; then 1961 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1962$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1963 sed 's/^/| /' "$ac_site_file" >&5 1964 . "$ac_site_file" 1965 fi 1966done 1967 1968if test -r "$cache_file"; then 1969 # Some versions of bash will fail to source /dev/null (special 1970 # files actually), so we avoid doing that. 1971 if test -f "$cache_file"; then 1972 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1973$as_echo "$as_me: loading cache $cache_file" >&6;} 1974 case $cache_file in 1975 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1976 *) . "./$cache_file";; 1977 esac 1978 fi 1979else 1980 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1981$as_echo "$as_me: creating cache $cache_file" >&6;} 1982 >$cache_file 1983fi 1984 1985# Check that the precious variables saved in the cache have kept the same 1986# value. 1987ac_cache_corrupted=false 1988for ac_var in $ac_precious_vars; do 1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1990 eval ac_new_set=\$ac_env_${ac_var}_set 1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1992 eval ac_new_val=\$ac_env_${ac_var}_value 1993 case $ac_old_set,$ac_new_set in 1994 set,) 1995 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1996$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1997 ac_cache_corrupted=: ;; 1998 ,set) 1999 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2000$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2001 ac_cache_corrupted=: ;; 2002 ,);; 2003 *) 2004 if test "x$ac_old_val" != "x$ac_new_val"; then 2005 # differences in whitespace do not lead to failure. 2006 ac_old_val_w=`echo x $ac_old_val` 2007 ac_new_val_w=`echo x $ac_new_val` 2008 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2009 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2010$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2011 ac_cache_corrupted=: 2012 else 2013 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2014$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2015 eval $ac_var=\$ac_old_val 2016 fi 2017 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2018$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2019 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2020$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2021 fi;; 2022 esac 2023 # Pass precious variables to config.status. 2024 if test "$ac_new_set" = set; then 2025 case $ac_new_val in 2026 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2027 *) ac_arg=$ac_var=$ac_new_val ;; 2028 esac 2029 case " $ac_configure_args " in 2030 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2031 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2032 esac 2033 fi 2034done 2035if $ac_cache_corrupted; then 2036 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2038 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2039$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2040 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2041$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2042 { (exit 1); exit 1; }; } 2043fi 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069ac_ext=c 2070ac_cpp='$CPP $CPPFLAGS' 2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2073ac_compiler_gnu=$ac_cv_c_compiler_gnu 2074 2075 2076 2077am__api_version='1.10' 2078 2079ac_aux_dir= 2080for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2081 if test -f "$ac_dir/install-sh"; then 2082 ac_aux_dir=$ac_dir 2083 ac_install_sh="$ac_aux_dir/install-sh -c" 2084 break 2085 elif test -f "$ac_dir/install.sh"; then 2086 ac_aux_dir=$ac_dir 2087 ac_install_sh="$ac_aux_dir/install.sh -c" 2088 break 2089 elif test -f "$ac_dir/shtool"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/shtool install -c" 2092 break 2093 fi 2094done 2095if test -z "$ac_aux_dir"; then 2096 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2097$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2098 { (exit 1); exit 1; }; } 2099fi 2100 2101# These three variables are undocumented and unsupported, 2102# and are intended to be withdrawn in a future Autoconf release. 2103# They can cause serious problems if a builder's source tree is in a directory 2104# whose full name contains unusual characters. 2105ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2106ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2107ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2108 2109 2110# Find a good install program. We prefer a C program (faster), 2111# so one script is as good as another. But avoid the broken or 2112# incompatible versions: 2113# SysV /etc/install, /usr/sbin/install 2114# SunOS /usr/etc/install 2115# IRIX /sbin/install 2116# AIX /bin/install 2117# AmigaOS /C/install, which installs bootblocks on floppy discs 2118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2119# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2121# OS/2's system install, which has a completely different semantic 2122# ./install, which can be erroneously created by make from ./install.sh. 2123# Reject install programs that cannot install multiple files. 2124{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2125$as_echo_n "checking for a BSD-compatible install... " >&6; } 2126if test -z "$INSTALL"; then 2127if test "${ac_cv_path_install+set}" = set; then 2128 $as_echo_n "(cached) " >&6 2129else 2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2131for as_dir in $PATH 2132do 2133 IFS=$as_save_IFS 2134 test -z "$as_dir" && as_dir=. 2135 # Account for people who put trailing slashes in PATH elements. 2136case $as_dir/ in 2137 ./ | .// | /cC/* | \ 2138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2140 /usr/ucb/* ) ;; 2141 *) 2142 # OSF1 and SCO ODT 3.0 have their own names for install. 2143 # Don't use installbsd from OSF since it installs stuff as root 2144 # by default. 2145 for ac_prog in ginstall scoinst install; do 2146 for ac_exec_ext in '' $ac_executable_extensions; do 2147 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2148 if test $ac_prog = install && 2149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2150 # AIX install. It has an incompatible calling convention. 2151 : 2152 elif test $ac_prog = install && 2153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2154 # program-specific install script used by HP pwplus--don't use. 2155 : 2156 else 2157 rm -rf conftest.one conftest.two conftest.dir 2158 echo one > conftest.one 2159 echo two > conftest.two 2160 mkdir conftest.dir 2161 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2162 test -s conftest.one && test -s conftest.two && 2163 test -s conftest.dir/conftest.one && 2164 test -s conftest.dir/conftest.two 2165 then 2166 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2167 break 3 2168 fi 2169 fi 2170 fi 2171 done 2172 done 2173 ;; 2174esac 2175 2176done 2177IFS=$as_save_IFS 2178 2179rm -rf conftest.one conftest.two conftest.dir 2180 2181fi 2182 if test "${ac_cv_path_install+set}" = set; then 2183 INSTALL=$ac_cv_path_install 2184 else 2185 # As a last resort, use the slow shell script. Don't cache a 2186 # value for INSTALL within a source directory, because that will 2187 # break other packages using the cache if that directory is 2188 # removed, or if the value is a relative name. 2189 INSTALL=$ac_install_sh 2190 fi 2191fi 2192{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2193$as_echo "$INSTALL" >&6; } 2194 2195# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2196# It thinks the first close brace ends the variable substitution. 2197test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2198 2199test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2200 2201test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2202 2203{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2204$as_echo_n "checking whether build environment is sane... " >&6; } 2205# Just in case 2206sleep 1 2207echo timestamp > conftest.file 2208# Do `set' in a subshell so we don't clobber the current shell's 2209# arguments. Must try -L first in case configure is actually a 2210# symlink; some systems play weird games with the mod time of symlinks 2211# (eg FreeBSD returns the mod time of the symlink's containing 2212# directory). 2213if ( 2214 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2215 if test "$*" = "X"; then 2216 # -L didn't work. 2217 set X `ls -t $srcdir/configure conftest.file` 2218 fi 2219 rm -f conftest.file 2220 if test "$*" != "X $srcdir/configure conftest.file" \ 2221 && test "$*" != "X conftest.file $srcdir/configure"; then 2222 2223 # If neither matched, then we have a broken ls. This can happen 2224 # if, for instance, CONFIG_SHELL is bash and it inherits a 2225 # broken ls alias from the environment. This has actually 2226 # happened. Such a system could not be considered "sane". 2227 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2228alias in your environment" >&5 2229$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2230alias in your environment" >&2;} 2231 { (exit 1); exit 1; }; } 2232 fi 2233 2234 test "$2" = conftest.file 2235 ) 2236then 2237 # Ok. 2238 : 2239else 2240 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2241Check your system clock" >&5 2242$as_echo "$as_me: error: newly created file is older than distributed files! 2243Check your system clock" >&2;} 2244 { (exit 1); exit 1; }; } 2245fi 2246{ $as_echo "$as_me:$LINENO: result: yes" >&5 2247$as_echo "yes" >&6; } 2248test "$program_prefix" != NONE && 2249 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2250# Use a double $ so make ignores it. 2251test "$program_suffix" != NONE && 2252 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2253# Double any \ or $. 2254# By default was `s,x,x', remove it if useless. 2255ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2256program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2257 2258# expand $ac_aux_dir to an absolute path 2259am_aux_dir=`cd $ac_aux_dir && pwd` 2260 2261test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2262# Use eval to expand $SHELL 2263if eval "$MISSING --run true"; then 2264 am_missing_run="$MISSING --run " 2265else 2266 am_missing_run= 2267 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2268$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2269fi 2270 2271{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2272$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2273if test -z "$MKDIR_P"; then 2274 if test "${ac_cv_path_mkdir+set}" = set; then 2275 $as_echo_n "(cached) " >&6 2276else 2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 for ac_prog in mkdir gmkdir; do 2283 for ac_exec_ext in '' $ac_executable_extensions; do 2284 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2285 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2286 'mkdir (GNU coreutils) '* | \ 2287 'mkdir (coreutils) '* | \ 2288 'mkdir (fileutils) '4.1*) 2289 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2290 break 3;; 2291 esac 2292 done 2293 done 2294done 2295IFS=$as_save_IFS 2296 2297fi 2298 2299 if test "${ac_cv_path_mkdir+set}" = set; then 2300 MKDIR_P="$ac_cv_path_mkdir -p" 2301 else 2302 # As a last resort, use the slow shell script. Don't cache a 2303 # value for MKDIR_P within a source directory, because that will 2304 # break other packages using the cache if that directory is 2305 # removed, or if the value is a relative name. 2306 test -d ./--version && rmdir ./--version 2307 MKDIR_P="$ac_install_sh -d" 2308 fi 2309fi 2310{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2311$as_echo "$MKDIR_P" >&6; } 2312 2313mkdir_p="$MKDIR_P" 2314case $mkdir_p in 2315 [\\/$]* | ?:[\\/]*) ;; 2316 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2317esac 2318 2319for ac_prog in gawk mawk nawk awk 2320do 2321 # Extract the first word of "$ac_prog", so it can be a program name with args. 2322set dummy $ac_prog; ac_word=$2 2323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2324$as_echo_n "checking for $ac_word... " >&6; } 2325if test "${ac_cv_prog_AWK+set}" = set; then 2326 $as_echo_n "(cached) " >&6 2327else 2328 if test -n "$AWK"; then 2329 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2330else 2331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2332for as_dir in $PATH 2333do 2334 IFS=$as_save_IFS 2335 test -z "$as_dir" && as_dir=. 2336 for ac_exec_ext in '' $ac_executable_extensions; do 2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2338 ac_cv_prog_AWK="$ac_prog" 2339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2340 break 2 2341 fi 2342done 2343done 2344IFS=$as_save_IFS 2345 2346fi 2347fi 2348AWK=$ac_cv_prog_AWK 2349if test -n "$AWK"; then 2350 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2351$as_echo "$AWK" >&6; } 2352else 2353 { $as_echo "$as_me:$LINENO: result: no" >&5 2354$as_echo "no" >&6; } 2355fi 2356 2357 2358 test -n "$AWK" && break 2359done 2360 2361{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2362$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2363set x ${MAKE-make} 2364ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2365if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2366 $as_echo_n "(cached) " >&6 2367else 2368 cat >conftest.make <<\_ACEOF 2369SHELL = /bin/sh 2370all: 2371 @echo '@@@%%%=$(MAKE)=@@@%%%' 2372_ACEOF 2373# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2374case `${MAKE-make} -f conftest.make 2>/dev/null` in 2375 *@@@%%%=?*=@@@%%%*) 2376 eval ac_cv_prog_make_${ac_make}_set=yes;; 2377 *) 2378 eval ac_cv_prog_make_${ac_make}_set=no;; 2379esac 2380rm -f conftest.make 2381fi 2382if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2383 { $as_echo "$as_me:$LINENO: result: yes" >&5 2384$as_echo "yes" >&6; } 2385 SET_MAKE= 2386else 2387 { $as_echo "$as_me:$LINENO: result: no" >&5 2388$as_echo "no" >&6; } 2389 SET_MAKE="MAKE=${MAKE-make}" 2390fi 2391 2392rm -rf .tst 2>/dev/null 2393mkdir .tst 2>/dev/null 2394if test -d .tst; then 2395 am__leading_dot=. 2396else 2397 am__leading_dot=_ 2398fi 2399rmdir .tst 2>/dev/null 2400 2401if test "`cd $srcdir && pwd`" != "`pwd`"; then 2402 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2403 # is not polluted with repeated "-I." 2404 am__isrc=' -I$(srcdir)' 2405 # test to see if srcdir already configured 2406 if test -f $srcdir/config.status; then 2407 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2408$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2409 { (exit 1); exit 1; }; } 2410 fi 2411fi 2412 2413# test whether we have cygpath 2414if test -z "$CYGPATH_W"; then 2415 if (cygpath --version) >/dev/null 2>/dev/null; then 2416 CYGPATH_W='cygpath -w' 2417 else 2418 CYGPATH_W=echo 2419 fi 2420fi 2421 2422 2423# Define the identity of the package. 2424 PACKAGE='libXaw' 2425 VERSION='1.0.5' 2426 2427 2428cat >>confdefs.h <<_ACEOF 2429#define PACKAGE "$PACKAGE" 2430_ACEOF 2431 2432 2433cat >>confdefs.h <<_ACEOF 2434#define VERSION "$VERSION" 2435_ACEOF 2436 2437# Some tools Automake needs. 2438 2439ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2440 2441 2442AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2443 2444 2445AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2446 2447 2448AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2449 2450 2451MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2452 2453install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2454 2455# Installed binaries are usually stripped using `strip' when the user 2456# run `make install-strip'. However `strip' might not be the right 2457# tool to use in cross-compilation environments, therefore Automake 2458# will honor the `STRIP' environment variable to overrule this program. 2459if test "$cross_compiling" != no; then 2460 if test -n "$ac_tool_prefix"; then 2461 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2462set dummy ${ac_tool_prefix}strip; ac_word=$2 2463{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2464$as_echo_n "checking for $ac_word... " >&6; } 2465if test "${ac_cv_prog_STRIP+set}" = set; then 2466 $as_echo_n "(cached) " >&6 2467else 2468 if test -n "$STRIP"; then 2469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2470else 2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2472for as_dir in $PATH 2473do 2474 IFS=$as_save_IFS 2475 test -z "$as_dir" && as_dir=. 2476 for ac_exec_ext in '' $ac_executable_extensions; do 2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2478 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2480 break 2 2481 fi 2482done 2483done 2484IFS=$as_save_IFS 2485 2486fi 2487fi 2488STRIP=$ac_cv_prog_STRIP 2489if test -n "$STRIP"; then 2490 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2491$as_echo "$STRIP" >&6; } 2492else 2493 { $as_echo "$as_me:$LINENO: result: no" >&5 2494$as_echo "no" >&6; } 2495fi 2496 2497 2498fi 2499if test -z "$ac_cv_prog_STRIP"; then 2500 ac_ct_STRIP=$STRIP 2501 # Extract the first word of "strip", so it can be a program name with args. 2502set dummy strip; ac_word=$2 2503{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2504$as_echo_n "checking for $ac_word... " >&6; } 2505if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2506 $as_echo_n "(cached) " >&6 2507else 2508 if test -n "$ac_ct_STRIP"; then 2509 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2510else 2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2512for as_dir in $PATH 2513do 2514 IFS=$as_save_IFS 2515 test -z "$as_dir" && as_dir=. 2516 for ac_exec_ext in '' $ac_executable_extensions; do 2517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2518 ac_cv_prog_ac_ct_STRIP="strip" 2519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2520 break 2 2521 fi 2522done 2523done 2524IFS=$as_save_IFS 2525 2526fi 2527fi 2528ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2529if test -n "$ac_ct_STRIP"; then 2530 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2531$as_echo "$ac_ct_STRIP" >&6; } 2532else 2533 { $as_echo "$as_me:$LINENO: result: no" >&5 2534$as_echo "no" >&6; } 2535fi 2536 2537 if test "x$ac_ct_STRIP" = x; then 2538 STRIP=":" 2539 else 2540 case $cross_compiling:$ac_tool_warned in 2541yes:) 2542{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2544ac_tool_warned=yes ;; 2545esac 2546 STRIP=$ac_ct_STRIP 2547 fi 2548else 2549 STRIP="$ac_cv_prog_STRIP" 2550fi 2551 2552fi 2553INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2554 2555# We need awk for the "check" target. The system "awk" is bad on 2556# some platforms. 2557# Always define AMTAR for backward compatibility. 2558 2559AMTAR=${AMTAR-"${am_missing_run}tar"} 2560 2561am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2562 2563 2564 2565 2566 2567 2568ac_config_headers="$ac_config_headers config.h" 2569 2570 2571# Check for progs 2572ac_ext=c 2573ac_cpp='$CPP $CPPFLAGS' 2574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2576ac_compiler_gnu=$ac_cv_c_compiler_gnu 2577if test -n "$ac_tool_prefix"; then 2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2579set dummy ${ac_tool_prefix}gcc; ac_word=$2 2580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2581$as_echo_n "checking for $ac_word... " >&6; } 2582if test "${ac_cv_prog_CC+set}" = set; then 2583 $as_echo_n "(cached) " >&6 2584else 2585 if test -n "$CC"; then 2586 ac_cv_prog_CC="$CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2595 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600done 2601IFS=$as_save_IFS 2602 2603fi 2604fi 2605CC=$ac_cv_prog_CC 2606if test -n "$CC"; then 2607 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2608$as_echo "$CC" >&6; } 2609else 2610 { $as_echo "$as_me:$LINENO: result: no" >&5 2611$as_echo "no" >&6; } 2612fi 2613 2614 2615fi 2616if test -z "$ac_cv_prog_CC"; then 2617 ac_ct_CC=$CC 2618 # Extract the first word of "gcc", so it can be a program name with args. 2619set dummy gcc; ac_word=$2 2620{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$ac_ct_CC"; then 2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635 ac_cv_prog_ac_ct_CC="gcc" 2636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645ac_ct_CC=$ac_cv_prog_ac_ct_CC 2646if test -n "$ac_ct_CC"; then 2647 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2648$as_echo "$ac_ct_CC" >&6; } 2649else 2650 { $as_echo "$as_me:$LINENO: result: no" >&5 2651$as_echo "no" >&6; } 2652fi 2653 2654 if test "x$ac_ct_CC" = x; then 2655 CC="" 2656 else 2657 case $cross_compiling:$ac_tool_warned in 2658yes:) 2659{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2661ac_tool_warned=yes ;; 2662esac 2663 CC=$ac_ct_CC 2664 fi 2665else 2666 CC="$ac_cv_prog_CC" 2667fi 2668 2669if test -z "$CC"; then 2670 if test -n "$ac_tool_prefix"; then 2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2672set dummy ${ac_tool_prefix}cc; ac_word=$2 2673{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2674$as_echo_n "checking for $ac_word... " >&6; } 2675if test "${ac_cv_prog_CC+set}" = set; then 2676 $as_echo_n "(cached) " >&6 2677else 2678 if test -n "$CC"; then 2679 ac_cv_prog_CC="$CC" # Let the user override the test. 2680else 2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2688 ac_cv_prog_CC="${ac_tool_prefix}cc" 2689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693done 2694IFS=$as_save_IFS 2695 2696fi 2697fi 2698CC=$ac_cv_prog_CC 2699if test -n "$CC"; then 2700 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2701$as_echo "$CC" >&6; } 2702else 2703 { $as_echo "$as_me:$LINENO: result: no" >&5 2704$as_echo "no" >&6; } 2705fi 2706 2707 2708 fi 2709fi 2710if test -z "$CC"; then 2711 # Extract the first word of "cc", so it can be a program name with args. 2712set dummy cc; ac_word=$2 2713{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if test "${ac_cv_prog_CC+set}" = set; then 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$CC"; then 2719 ac_cv_prog_CC="$CC" # Let the user override the test. 2720else 2721 ac_prog_rejected=no 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2730 ac_prog_rejected=yes 2731 continue 2732 fi 2733 ac_cv_prog_CC="cc" 2734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738done 2739IFS=$as_save_IFS 2740 2741if test $ac_prog_rejected = yes; then 2742 # We found a bogon in the path, so make sure we never use it. 2743 set dummy $ac_cv_prog_CC 2744 shift 2745 if test $# != 0; then 2746 # We chose a different compiler from the bogus one. 2747 # However, it has the same basename, so the bogon will be chosen 2748 # first if we set CC to just the basename; use the full file name. 2749 shift 2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2751 fi 2752fi 2753fi 2754fi 2755CC=$ac_cv_prog_CC 2756if test -n "$CC"; then 2757 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2758$as_echo "$CC" >&6; } 2759else 2760 { $as_echo "$as_me:$LINENO: result: no" >&5 2761$as_echo "no" >&6; } 2762fi 2763 2764 2765fi 2766if test -z "$CC"; then 2767 if test -n "$ac_tool_prefix"; then 2768 for ac_prog in cl.exe 2769 do 2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2771set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2772{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if test "${ac_cv_prog_CC+set}" = set; then 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797CC=$ac_cv_prog_CC 2798if test -n "$CC"; then 2799 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2800$as_echo "$CC" >&6; } 2801else 2802 { $as_echo "$as_me:$LINENO: result: no" >&5 2803$as_echo "no" >&6; } 2804fi 2805 2806 2807 test -n "$CC" && break 2808 done 2809fi 2810if test -z "$CC"; then 2811 ac_ct_CC=$CC 2812 for ac_prog in cl.exe 2813do 2814 # Extract the first word of "$ac_prog", so it can be a program name with args. 2815set dummy $ac_prog; ac_word=$2 2816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2817$as_echo_n "checking for $ac_word... " >&6; } 2818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2819 $as_echo_n "(cached) " >&6 2820else 2821 if test -n "$ac_ct_CC"; then 2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2823else 2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2825for as_dir in $PATH 2826do 2827 IFS=$as_save_IFS 2828 test -z "$as_dir" && as_dir=. 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2831 ac_cv_prog_ac_ct_CC="$ac_prog" 2832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836done 2837IFS=$as_save_IFS 2838 2839fi 2840fi 2841ac_ct_CC=$ac_cv_prog_ac_ct_CC 2842if test -n "$ac_ct_CC"; then 2843 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2844$as_echo "$ac_ct_CC" >&6; } 2845else 2846 { $as_echo "$as_me:$LINENO: result: no" >&5 2847$as_echo "no" >&6; } 2848fi 2849 2850 2851 test -n "$ac_ct_CC" && break 2852done 2853 2854 if test "x$ac_ct_CC" = x; then 2855 CC="" 2856 else 2857 case $cross_compiling:$ac_tool_warned in 2858yes:) 2859{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2861ac_tool_warned=yes ;; 2862esac 2863 CC=$ac_ct_CC 2864 fi 2865fi 2866 2867fi 2868 2869 2870test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2872{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2873See \`config.log' for more details." >&5 2874$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2875See \`config.log' for more details." >&2;} 2876 { (exit 1); exit 1; }; }; } 2877 2878# Provide some information about the compiler. 2879$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2880set X $ac_compile 2881ac_compiler=$2 2882{ (ac_try="$ac_compiler --version >&5" 2883case "(($ac_try" in 2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2885 *) ac_try_echo=$ac_try;; 2886esac 2887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2888$as_echo "$ac_try_echo") >&5 2889 (eval "$ac_compiler --version >&5") 2>&5 2890 ac_status=$? 2891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2892 (exit $ac_status); } 2893{ (ac_try="$ac_compiler -v >&5" 2894case "(($ac_try" in 2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2896 *) ac_try_echo=$ac_try;; 2897esac 2898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2899$as_echo "$ac_try_echo") >&5 2900 (eval "$ac_compiler -v >&5") 2>&5 2901 ac_status=$? 2902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2903 (exit $ac_status); } 2904{ (ac_try="$ac_compiler -V >&5" 2905case "(($ac_try" in 2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2907 *) ac_try_echo=$ac_try;; 2908esac 2909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2910$as_echo "$ac_try_echo") >&5 2911 (eval "$ac_compiler -V >&5") 2>&5 2912 ac_status=$? 2913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); } 2915 2916cat >conftest.$ac_ext <<_ACEOF 2917/* confdefs.h. */ 2918_ACEOF 2919cat confdefs.h >>conftest.$ac_ext 2920cat >>conftest.$ac_ext <<_ACEOF 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931ac_clean_files_save=$ac_clean_files 2932ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2933# Try to create an executable without -o first, disregard a.out. 2934# It will help us diagnose broken compilers, and finding out an intuition 2935# of exeext. 2936{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2937$as_echo_n "checking for C compiler default output file name... " >&6; } 2938ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2939 2940# The possible output files: 2941ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2942 2943ac_rmfiles= 2944for ac_file in $ac_files 2945do 2946 case $ac_file in 2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2949 esac 2950done 2951rm -f $ac_rmfiles 2952 2953if { (ac_try="$ac_link_default" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2959$as_echo "$ac_try_echo") >&5 2960 (eval "$ac_link_default") 2>&5 2961 ac_status=$? 2962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); }; then 2964 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2965# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2966# in a Makefile. We should not override ac_cv_exeext if it was cached, 2967# so that the user can short-circuit this test for compilers unknown to 2968# Autoconf. 2969for ac_file in $ac_files '' 2970do 2971 test -f "$ac_file" || continue 2972 case $ac_file in 2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2974 ;; 2975 [ab].out ) 2976 # We found the default executable, but exeext='' is most 2977 # certainly right. 2978 break;; 2979 *.* ) 2980 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2981 then :; else 2982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2983 fi 2984 # We set ac_cv_exeext here because the later test for it is not 2985 # safe: cross compilers may not add the suffix if given an `-o' 2986 # argument, so we may need to know it at that point already. 2987 # Even if this section looks crufty: it has the advantage of 2988 # actually working. 2989 break;; 2990 * ) 2991 break;; 2992 esac 2993done 2994test "$ac_cv_exeext" = no && ac_cv_exeext= 2995 2996else 2997 ac_file='' 2998fi 2999 3000{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3001$as_echo "$ac_file" >&6; } 3002if test -z "$ac_file"; then 3003 $as_echo "$as_me: failed program was:" >&5 3004sed 's/^/| /' conftest.$ac_ext >&5 3005 3006{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3008{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3009See \`config.log' for more details." >&5 3010$as_echo "$as_me: error: C compiler cannot create executables 3011See \`config.log' for more details." >&2;} 3012 { (exit 77); exit 77; }; }; } 3013fi 3014 3015ac_exeext=$ac_cv_exeext 3016 3017# Check that the compiler produces executables we can run. If not, either 3018# the compiler is broken, or we cross compile. 3019{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3020$as_echo_n "checking whether the C compiler works... " >&6; } 3021# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3022# If not cross compiling, check that we can run a simple program. 3023if test "$cross_compiling" != yes; then 3024 if { ac_try='./$ac_file' 3025 { (case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3030$as_echo "$ac_try_echo") >&5 3031 (eval "$ac_try") 2>&5 3032 ac_status=$? 3033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); }; }; then 3035 cross_compiling=no 3036 else 3037 if test "$cross_compiling" = maybe; then 3038 cross_compiling=yes 3039 else 3040 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3042{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3043If you meant to cross compile, use \`--host'. 3044See \`config.log' for more details." >&5 3045$as_echo "$as_me: error: cannot run C compiled programs. 3046If you meant to cross compile, use \`--host'. 3047See \`config.log' for more details." >&2;} 3048 { (exit 1); exit 1; }; }; } 3049 fi 3050 fi 3051fi 3052{ $as_echo "$as_me:$LINENO: result: yes" >&5 3053$as_echo "yes" >&6; } 3054 3055rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3056ac_clean_files=$ac_clean_files_save 3057# Check that the compiler produces executables we can run. If not, either 3058# the compiler is broken, or we cross compile. 3059{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3060$as_echo_n "checking whether we are cross compiling... " >&6; } 3061{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3062$as_echo "$cross_compiling" >&6; } 3063 3064{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3065$as_echo_n "checking for suffix of executables... " >&6; } 3066if { (ac_try="$ac_link" 3067case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3072$as_echo "$ac_try_echo") >&5 3073 (eval "$ac_link") 2>&5 3074 ac_status=$? 3075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3076 (exit $ac_status); }; then 3077 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3078# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3079# work properly (i.e., refer to `conftest.exe'), while it won't with 3080# `rm'. 3081for ac_file in conftest.exe conftest conftest.*; do 3082 test -f "$ac_file" || continue 3083 case $ac_file in 3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3086 break;; 3087 * ) break;; 3088 esac 3089done 3090else 3091 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3093{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3094See \`config.log' for more details." >&5 3095$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3096See \`config.log' for more details." >&2;} 3097 { (exit 1); exit 1; }; }; } 3098fi 3099 3100rm -f conftest$ac_cv_exeext 3101{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3102$as_echo "$ac_cv_exeext" >&6; } 3103 3104rm -f conftest.$ac_ext 3105EXEEXT=$ac_cv_exeext 3106ac_exeext=$EXEEXT 3107{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3108$as_echo_n "checking for suffix of object files... " >&6; } 3109if test "${ac_cv_objext+set}" = set; then 3110 $as_echo_n "(cached) " >&6 3111else 3112 cat >conftest.$ac_ext <<_ACEOF 3113/* confdefs.h. */ 3114_ACEOF 3115cat confdefs.h >>conftest.$ac_ext 3116cat >>conftest.$ac_ext <<_ACEOF 3117/* end confdefs.h. */ 3118 3119int 3120main () 3121{ 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127rm -f conftest.o conftest.obj 3128if { (ac_try="$ac_compile" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3134$as_echo "$ac_try_echo") >&5 3135 (eval "$ac_compile") 2>&5 3136 ac_status=$? 3137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 (exit $ac_status); }; then 3139 for ac_file in conftest.o conftest.obj conftest.*; do 3140 test -f "$ac_file" || continue; 3141 case $ac_file in 3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3144 break;; 3145 esac 3146done 3147else 3148 $as_echo "$as_me: failed program was:" >&5 3149sed 's/^/| /' conftest.$ac_ext >&5 3150 3151{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3153{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3154See \`config.log' for more details." >&5 3155$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3156See \`config.log' for more details." >&2;} 3157 { (exit 1); exit 1; }; }; } 3158fi 3159 3160rm -f conftest.$ac_cv_objext conftest.$ac_ext 3161fi 3162{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3163$as_echo "$ac_cv_objext" >&6; } 3164OBJEXT=$ac_cv_objext 3165ac_objext=$OBJEXT 3166{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3167$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3168if test "${ac_cv_c_compiler_gnu+set}" = set; then 3169 $as_echo_n "(cached) " >&6 3170else 3171 cat >conftest.$ac_ext <<_ACEOF 3172/* confdefs.h. */ 3173_ACEOF 3174cat confdefs.h >>conftest.$ac_ext 3175cat >>conftest.$ac_ext <<_ACEOF 3176/* end confdefs.h. */ 3177 3178int 3179main () 3180{ 3181#ifndef __GNUC__ 3182 choke me 3183#endif 3184 3185 ; 3186 return 0; 3187} 3188_ACEOF 3189rm -f conftest.$ac_objext 3190if { (ac_try="$ac_compile" 3191case "(($ac_try" in 3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *) ac_try_echo=$ac_try;; 3194esac 3195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3196$as_echo "$ac_try_echo") >&5 3197 (eval "$ac_compile") 2>conftest.er1 3198 ac_status=$? 3199 grep -v '^ *+' conftest.er1 >conftest.err 3200 rm -f conftest.er1 3201 cat conftest.err >&5 3202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); } && { 3204 test -z "$ac_c_werror_flag" || 3205 test ! -s conftest.err 3206 } && test -s conftest.$ac_objext; then 3207 ac_compiler_gnu=yes 3208else 3209 $as_echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 ac_compiler_gnu=no 3213fi 3214 3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3216ac_cv_c_compiler_gnu=$ac_compiler_gnu 3217 3218fi 3219{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3220$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3221if test $ac_compiler_gnu = yes; then 3222 GCC=yes 3223else 3224 GCC= 3225fi 3226ac_test_CFLAGS=${CFLAGS+set} 3227ac_save_CFLAGS=$CFLAGS 3228{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3229$as_echo_n "checking whether $CC accepts -g... " >&6; } 3230if test "${ac_cv_prog_cc_g+set}" = set; then 3231 $as_echo_n "(cached) " >&6 3232else 3233 ac_save_c_werror_flag=$ac_c_werror_flag 3234 ac_c_werror_flag=yes 3235 ac_cv_prog_cc_g=no 3236 CFLAGS="-g" 3237 cat >conftest.$ac_ext <<_ACEOF 3238/* confdefs.h. */ 3239_ACEOF 3240cat confdefs.h >>conftest.$ac_ext 3241cat >>conftest.$ac_ext <<_ACEOF 3242/* end confdefs.h. */ 3243 3244int 3245main () 3246{ 3247 3248 ; 3249 return 0; 3250} 3251_ACEOF 3252rm -f conftest.$ac_objext 3253if { (ac_try="$ac_compile" 3254case "(($ac_try" in 3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3256 *) ac_try_echo=$ac_try;; 3257esac 3258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3259$as_echo "$ac_try_echo") >&5 3260 (eval "$ac_compile") 2>conftest.er1 3261 ac_status=$? 3262 grep -v '^ *+' conftest.er1 >conftest.err 3263 rm -f conftest.er1 3264 cat conftest.err >&5 3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3266 (exit $ac_status); } && { 3267 test -z "$ac_c_werror_flag" || 3268 test ! -s conftest.err 3269 } && test -s conftest.$ac_objext; then 3270 ac_cv_prog_cc_g=yes 3271else 3272 $as_echo "$as_me: failed program was:" >&5 3273sed 's/^/| /' conftest.$ac_ext >&5 3274 3275 CFLAGS="" 3276 cat >conftest.$ac_ext <<_ACEOF 3277/* confdefs.h. */ 3278_ACEOF 3279cat confdefs.h >>conftest.$ac_ext 3280cat >>conftest.$ac_ext <<_ACEOF 3281/* end confdefs.h. */ 3282 3283int 3284main () 3285{ 3286 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291rm -f conftest.$ac_objext 3292if { (ac_try="$ac_compile" 3293case "(($ac_try" in 3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3295 *) ac_try_echo=$ac_try;; 3296esac 3297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3298$as_echo "$ac_try_echo") >&5 3299 (eval "$ac_compile") 2>conftest.er1 3300 ac_status=$? 3301 grep -v '^ *+' conftest.er1 >conftest.err 3302 rm -f conftest.er1 3303 cat conftest.err >&5 3304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); } && { 3306 test -z "$ac_c_werror_flag" || 3307 test ! -s conftest.err 3308 } && test -s conftest.$ac_objext; then 3309 : 3310else 3311 $as_echo "$as_me: failed program was:" >&5 3312sed 's/^/| /' conftest.$ac_ext >&5 3313 3314 ac_c_werror_flag=$ac_save_c_werror_flag 3315 CFLAGS="-g" 3316 cat >conftest.$ac_ext <<_ACEOF 3317/* confdefs.h. */ 3318_ACEOF 3319cat confdefs.h >>conftest.$ac_ext 3320cat >>conftest.$ac_ext <<_ACEOF 3321/* end confdefs.h. */ 3322 3323int 3324main () 3325{ 3326 3327 ; 3328 return 0; 3329} 3330_ACEOF 3331rm -f conftest.$ac_objext 3332if { (ac_try="$ac_compile" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3338$as_echo "$ac_try_echo") >&5 3339 (eval "$ac_compile") 2>conftest.er1 3340 ac_status=$? 3341 grep -v '^ *+' conftest.er1 >conftest.err 3342 rm -f conftest.er1 3343 cat conftest.err >&5 3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); } && { 3346 test -z "$ac_c_werror_flag" || 3347 test ! -s conftest.err 3348 } && test -s conftest.$ac_objext; then 3349 ac_cv_prog_cc_g=yes 3350else 3351 $as_echo "$as_me: failed program was:" >&5 3352sed 's/^/| /' conftest.$ac_ext >&5 3353 3354 3355fi 3356 3357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3358fi 3359 3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3361fi 3362 3363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3364 ac_c_werror_flag=$ac_save_c_werror_flag 3365fi 3366{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3367$as_echo "$ac_cv_prog_cc_g" >&6; } 3368if test "$ac_test_CFLAGS" = set; then 3369 CFLAGS=$ac_save_CFLAGS 3370elif test $ac_cv_prog_cc_g = yes; then 3371 if test "$GCC" = yes; then 3372 CFLAGS="-g -O2" 3373 else 3374 CFLAGS="-g" 3375 fi 3376else 3377 if test "$GCC" = yes; then 3378 CFLAGS="-O2" 3379 else 3380 CFLAGS= 3381 fi 3382fi 3383{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3384$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3385if test "${ac_cv_prog_cc_c89+set}" = set; then 3386 $as_echo_n "(cached) " >&6 3387else 3388 ac_cv_prog_cc_c89=no 3389ac_save_CC=$CC 3390cat >conftest.$ac_ext <<_ACEOF 3391/* confdefs.h. */ 3392_ACEOF 3393cat confdefs.h >>conftest.$ac_ext 3394cat >>conftest.$ac_ext <<_ACEOF 3395/* end confdefs.h. */ 3396#include <stdarg.h> 3397#include <stdio.h> 3398#include <sys/types.h> 3399#include <sys/stat.h> 3400/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3401struct buf { int x; }; 3402FILE * (*rcsopen) (struct buf *, struct stat *, int); 3403static char *e (p, i) 3404 char **p; 3405 int i; 3406{ 3407 return p[i]; 3408} 3409static char *f (char * (*g) (char **, int), char **p, ...) 3410{ 3411 char *s; 3412 va_list v; 3413 va_start (v,p); 3414 s = g (p, va_arg (v,int)); 3415 va_end (v); 3416 return s; 3417} 3418 3419/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3420 function prototypes and stuff, but not '\xHH' hex character constants. 3421 These don't provoke an error unfortunately, instead are silently treated 3422 as 'x'. The following induces an error, until -std is added to get 3423 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3424 array size at least. It's necessary to write '\x00'==0 to get something 3425 that's true only with -std. */ 3426int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3427 3428/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3429 inside strings and character constants. */ 3430#define FOO(x) 'x' 3431int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3432 3433int test (int i, double x); 3434struct s1 {int (*f) (int a);}; 3435struct s2 {int (*f) (double a);}; 3436int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3437int argc; 3438char **argv; 3439int 3440main () 3441{ 3442return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3443 ; 3444 return 0; 3445} 3446_ACEOF 3447for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3448 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3449do 3450 CC="$ac_save_CC $ac_arg" 3451 rm -f conftest.$ac_objext 3452if { (ac_try="$ac_compile" 3453case "(($ac_try" in 3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3455 *) ac_try_echo=$ac_try;; 3456esac 3457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3458$as_echo "$ac_try_echo") >&5 3459 (eval "$ac_compile") 2>conftest.er1 3460 ac_status=$? 3461 grep -v '^ *+' conftest.er1 >conftest.err 3462 rm -f conftest.er1 3463 cat conftest.err >&5 3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3465 (exit $ac_status); } && { 3466 test -z "$ac_c_werror_flag" || 3467 test ! -s conftest.err 3468 } && test -s conftest.$ac_objext; then 3469 ac_cv_prog_cc_c89=$ac_arg 3470else 3471 $as_echo "$as_me: failed program was:" >&5 3472sed 's/^/| /' conftest.$ac_ext >&5 3473 3474 3475fi 3476 3477rm -f core conftest.err conftest.$ac_objext 3478 test "x$ac_cv_prog_cc_c89" != "xno" && break 3479done 3480rm -f conftest.$ac_ext 3481CC=$ac_save_CC 3482 3483fi 3484# AC_CACHE_VAL 3485case "x$ac_cv_prog_cc_c89" in 3486 x) 3487 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3488$as_echo "none needed" >&6; } ;; 3489 xno) 3490 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3491$as_echo "unsupported" >&6; } ;; 3492 *) 3493 CC="$CC $ac_cv_prog_cc_c89" 3494 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3495$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3496esac 3497 3498 3499ac_ext=c 3500ac_cpp='$CPP $CPPFLAGS' 3501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3503ac_compiler_gnu=$ac_cv_c_compiler_gnu 3504DEPDIR="${am__leading_dot}deps" 3505 3506ac_config_commands="$ac_config_commands depfiles" 3507 3508 3509am_make=${MAKE-make} 3510cat > confinc << 'END' 3511am__doit: 3512 @echo done 3513.PHONY: am__doit 3514END 3515# If we don't find an include directive, just comment out the code. 3516{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3517$as_echo_n "checking for style of include used by $am_make... " >&6; } 3518am__include="#" 3519am__quote= 3520_am_result=none 3521# First try GNU make style include. 3522echo "include confinc" > confmf 3523# We grep out `Entering directory' and `Leaving directory' 3524# messages which can occur if `w' ends up in MAKEFLAGS. 3525# In particular we don't look at `^make:' because GNU make might 3526# be invoked under some other name (usually "gmake"), in which 3527# case it prints its new name instead of `make'. 3528if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3529 am__include=include 3530 am__quote= 3531 _am_result=GNU 3532fi 3533# Now try BSD make style include. 3534if test "$am__include" = "#"; then 3535 echo '.include "confinc"' > confmf 3536 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3537 am__include=.include 3538 am__quote="\"" 3539 _am_result=BSD 3540 fi 3541fi 3542 3543 3544{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3545$as_echo "$_am_result" >&6; } 3546rm -f confinc confmf 3547 3548# Check whether --enable-dependency-tracking was given. 3549if test "${enable_dependency_tracking+set}" = set; then 3550 enableval=$enable_dependency_tracking; 3551fi 3552 3553if test "x$enable_dependency_tracking" != xno; then 3554 am_depcomp="$ac_aux_dir/depcomp" 3555 AMDEPBACKSLASH='\' 3556fi 3557 if test "x$enable_dependency_tracking" != xno; then 3558 AMDEP_TRUE= 3559 AMDEP_FALSE='#' 3560else 3561 AMDEP_TRUE='#' 3562 AMDEP_FALSE= 3563fi 3564 3565 3566 3567depcc="$CC" am_compiler_list= 3568 3569{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3570$as_echo_n "checking dependency style of $depcc... " >&6; } 3571if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3572 $as_echo_n "(cached) " >&6 3573else 3574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3575 # We make a subdir and do the tests there. Otherwise we can end up 3576 # making bogus files that we don't know about and never remove. For 3577 # instance it was reported that on HP-UX the gcc test will end up 3578 # making a dummy file named `D' -- because `-MD' means `put the output 3579 # in D'. 3580 mkdir conftest.dir 3581 # Copy depcomp to subdir because otherwise we won't find it if we're 3582 # using a relative directory. 3583 cp "$am_depcomp" conftest.dir 3584 cd conftest.dir 3585 # We will build objects and dependencies in a subdirectory because 3586 # it helps to detect inapplicable dependency modes. For instance 3587 # both Tru64's cc and ICC support -MD to output dependencies as a 3588 # side effect of compilation, but ICC will put the dependencies in 3589 # the current directory while Tru64 will put them in the object 3590 # directory. 3591 mkdir sub 3592 3593 am_cv_CC_dependencies_compiler_type=none 3594 if test "$am_compiler_list" = ""; then 3595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3596 fi 3597 for depmode in $am_compiler_list; do 3598 # Setup a source with many dependencies, because some compilers 3599 # like to wrap large dependency lists on column 80 (with \), and 3600 # we should not choose a depcomp mode which is confused by this. 3601 # 3602 # We need to recreate these files for each test, as the compiler may 3603 # overwrite some of them when testing with obscure command lines. 3604 # This happens at least with the AIX C compiler. 3605 : > sub/conftest.c 3606 for i in 1 2 3 4 5 6; do 3607 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3608 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3609 # Solaris 8's {/usr,}/bin/sh. 3610 touch sub/conftst$i.h 3611 done 3612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3613 3614 case $depmode in 3615 nosideeffect) 3616 # after this tag, mechanisms are not by side-effect, so they'll 3617 # only be used when explicitly requested 3618 if test "x$enable_dependency_tracking" = xyes; then 3619 continue 3620 else 3621 break 3622 fi 3623 ;; 3624 none) break ;; 3625 esac 3626 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3627 # mode. It turns out that the SunPro C++ compiler does not properly 3628 # handle `-M -o', and we need to detect this. 3629 if depmode=$depmode \ 3630 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3632 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3633 >/dev/null 2>conftest.err && 3634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3636 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3638 # icc doesn't choke on unknown options, it will just issue warnings 3639 # or remarks (even with -Werror). So we grep stderr for any message 3640 # that says an option was ignored or not supported. 3641 # When given -MP, icc 7.0 and 7.1 complain thusly: 3642 # icc: Command line warning: ignoring option '-M'; no argument required 3643 # The diagnosis changed in icc 8.0: 3644 # icc: Command line remark: option '-MP' not supported 3645 if (grep 'ignoring option' conftest.err || 3646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3647 am_cv_CC_dependencies_compiler_type=$depmode 3648 break 3649 fi 3650 fi 3651 done 3652 3653 cd .. 3654 rm -rf conftest.dir 3655else 3656 am_cv_CC_dependencies_compiler_type=none 3657fi 3658 3659fi 3660{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3661$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3662CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3663 3664 if 3665 test "x$enable_dependency_tracking" != xno \ 3666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3667 am__fastdepCC_TRUE= 3668 am__fastdepCC_FALSE='#' 3669else 3670 am__fastdepCC_TRUE='#' 3671 am__fastdepCC_FALSE= 3672fi 3673 3674 3675# Check whether --enable-shared was given. 3676if test "${enable_shared+set}" = set; then 3677 enableval=$enable_shared; p=${PACKAGE-default} 3678 case $enableval in 3679 yes) enable_shared=yes ;; 3680 no) enable_shared=no ;; 3681 *) 3682 enable_shared=no 3683 # Look at the argument we got. We use all the common list separators. 3684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3685 for pkg in $enableval; do 3686 IFS="$lt_save_ifs" 3687 if test "X$pkg" = "X$p"; then 3688 enable_shared=yes 3689 fi 3690 done 3691 IFS="$lt_save_ifs" 3692 ;; 3693 esac 3694else 3695 enable_shared=yes 3696fi 3697 3698 3699# Check whether --enable-static was given. 3700if test "${enable_static+set}" = set; then 3701 enableval=$enable_static; p=${PACKAGE-default} 3702 case $enableval in 3703 yes) enable_static=yes ;; 3704 no) enable_static=no ;; 3705 *) 3706 enable_static=no 3707 # Look at the argument we got. We use all the common list separators. 3708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3709 for pkg in $enableval; do 3710 IFS="$lt_save_ifs" 3711 if test "X$pkg" = "X$p"; then 3712 enable_static=yes 3713 fi 3714 done 3715 IFS="$lt_save_ifs" 3716 ;; 3717 esac 3718else 3719 enable_static=yes 3720fi 3721 3722 3723# Check whether --enable-fast-install was given. 3724if test "${enable_fast_install+set}" = set; then 3725 enableval=$enable_fast_install; p=${PACKAGE-default} 3726 case $enableval in 3727 yes) enable_fast_install=yes ;; 3728 no) enable_fast_install=no ;; 3729 *) 3730 enable_fast_install=no 3731 # Look at the argument we got. We use all the common list separators. 3732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3733 for pkg in $enableval; do 3734 IFS="$lt_save_ifs" 3735 if test "X$pkg" = "X$p"; then 3736 enable_fast_install=yes 3737 fi 3738 done 3739 IFS="$lt_save_ifs" 3740 ;; 3741 esac 3742else 3743 enable_fast_install=yes 3744fi 3745 3746 3747# Make sure we can run config.sub. 3748$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3749 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3750$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3751 { (exit 1); exit 1; }; } 3752 3753{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3754$as_echo_n "checking build system type... " >&6; } 3755if test "${ac_cv_build+set}" = set; then 3756 $as_echo_n "(cached) " >&6 3757else 3758 ac_build_alias=$build_alias 3759test "x$ac_build_alias" = x && 3760 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3761test "x$ac_build_alias" = x && 3762 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3763$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3764 { (exit 1); exit 1; }; } 3765ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3766 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3767$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3768 { (exit 1); exit 1; }; } 3769 3770fi 3771{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3772$as_echo "$ac_cv_build" >&6; } 3773case $ac_cv_build in 3774*-*-*) ;; 3775*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3776$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3777 { (exit 1); exit 1; }; };; 3778esac 3779build=$ac_cv_build 3780ac_save_IFS=$IFS; IFS='-' 3781set x $ac_cv_build 3782shift 3783build_cpu=$1 3784build_vendor=$2 3785shift; shift 3786# Remember, the first character of IFS is used to create $*, 3787# except with old shells: 3788build_os=$* 3789IFS=$ac_save_IFS 3790case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3791 3792 3793{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3794$as_echo_n "checking host system type... " >&6; } 3795if test "${ac_cv_host+set}" = set; then 3796 $as_echo_n "(cached) " >&6 3797else 3798 if test "x$host_alias" = x; then 3799 ac_cv_host=$ac_cv_build 3800else 3801 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3802 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3803$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3804 { (exit 1); exit 1; }; } 3805fi 3806 3807fi 3808{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3809$as_echo "$ac_cv_host" >&6; } 3810case $ac_cv_host in 3811*-*-*) ;; 3812*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3813$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3814 { (exit 1); exit 1; }; };; 3815esac 3816host=$ac_cv_host 3817ac_save_IFS=$IFS; IFS='-' 3818set x $ac_cv_host 3819shift 3820host_cpu=$1 3821host_vendor=$2 3822shift; shift 3823# Remember, the first character of IFS is used to create $*, 3824# except with old shells: 3825host_os=$* 3826IFS=$ac_save_IFS 3827case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3828 3829 3830{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3831$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3832if test "${lt_cv_path_SED+set}" = set; then 3833 $as_echo_n "(cached) " >&6 3834else 3835 # Loop through the user's path and test for sed and gsed. 3836# Then use that list of sed's as ones to test for truncation. 3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838for as_dir in $PATH 3839do 3840 IFS=$as_save_IFS 3841 test -z "$as_dir" && as_dir=. 3842 for lt_ac_prog in sed gsed; do 3843 for ac_exec_ext in '' $ac_executable_extensions; do 3844 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3845 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3846 fi 3847 done 3848 done 3849done 3850IFS=$as_save_IFS 3851lt_ac_max=0 3852lt_ac_count=0 3853# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3854# along with /bin/sed that truncates output. 3855for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3856 test ! -f $lt_ac_sed && continue 3857 cat /dev/null > conftest.in 3858 lt_ac_count=0 3859 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3860 # Check for GNU sed and select it if it is found. 3861 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3862 lt_cv_path_SED=$lt_ac_sed 3863 break 3864 fi 3865 while true; do 3866 cat conftest.in conftest.in >conftest.tmp 3867 mv conftest.tmp conftest.in 3868 cp conftest.in conftest.nl 3869 echo >>conftest.nl 3870 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3871 cmp -s conftest.out conftest.nl || break 3872 # 10000 chars as input seems more than enough 3873 test $lt_ac_count -gt 10 && break 3874 lt_ac_count=`expr $lt_ac_count + 1` 3875 if test $lt_ac_count -gt $lt_ac_max; then 3876 lt_ac_max=$lt_ac_count 3877 lt_cv_path_SED=$lt_ac_sed 3878 fi 3879 done 3880done 3881 3882fi 3883 3884SED=$lt_cv_path_SED 3885 3886{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3887$as_echo "$SED" >&6; } 3888 3889{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3890$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3891if test "${ac_cv_path_GREP+set}" = set; then 3892 $as_echo_n "(cached) " >&6 3893else 3894 if test -z "$GREP"; then 3895 ac_path_GREP_found=false 3896 # Loop through the user's path and test for each of PROGNAME-LIST 3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3898for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3899do 3900 IFS=$as_save_IFS 3901 test -z "$as_dir" && as_dir=. 3902 for ac_prog in grep ggrep; do 3903 for ac_exec_ext in '' $ac_executable_extensions; do 3904 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3905 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3906# Check for GNU ac_path_GREP and select it if it is found. 3907 # Check for GNU $ac_path_GREP 3908case `"$ac_path_GREP" --version 2>&1` in 3909*GNU*) 3910 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3911*) 3912 ac_count=0 3913 $as_echo_n 0123456789 >"conftest.in" 3914 while : 3915 do 3916 cat "conftest.in" "conftest.in" >"conftest.tmp" 3917 mv "conftest.tmp" "conftest.in" 3918 cp "conftest.in" "conftest.nl" 3919 $as_echo 'GREP' >> "conftest.nl" 3920 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3922 ac_count=`expr $ac_count + 1` 3923 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3924 # Best one so far, save it but keep looking for a better one 3925 ac_cv_path_GREP="$ac_path_GREP" 3926 ac_path_GREP_max=$ac_count 3927 fi 3928 # 10*(2^10) chars as input seems more than enough 3929 test $ac_count -gt 10 && break 3930 done 3931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3932esac 3933 3934 $ac_path_GREP_found && break 3 3935 done 3936 done 3937done 3938IFS=$as_save_IFS 3939 if test -z "$ac_cv_path_GREP"; then 3940 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3941$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3942 { (exit 1); exit 1; }; } 3943 fi 3944else 3945 ac_cv_path_GREP=$GREP 3946fi 3947 3948fi 3949{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3950$as_echo "$ac_cv_path_GREP" >&6; } 3951 GREP="$ac_cv_path_GREP" 3952 3953 3954{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3955$as_echo_n "checking for egrep... " >&6; } 3956if test "${ac_cv_path_EGREP+set}" = set; then 3957 $as_echo_n "(cached) " >&6 3958else 3959 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3960 then ac_cv_path_EGREP="$GREP -E" 3961 else 3962 if test -z "$EGREP"; then 3963 ac_path_EGREP_found=false 3964 # Loop through the user's path and test for each of PROGNAME-LIST 3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3967do 3968 IFS=$as_save_IFS 3969 test -z "$as_dir" && as_dir=. 3970 for ac_prog in egrep; do 3971 for ac_exec_ext in '' $ac_executable_extensions; do 3972 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3973 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3974# Check for GNU ac_path_EGREP and select it if it is found. 3975 # Check for GNU $ac_path_EGREP 3976case `"$ac_path_EGREP" --version 2>&1` in 3977*GNU*) 3978 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3979*) 3980 ac_count=0 3981 $as_echo_n 0123456789 >"conftest.in" 3982 while : 3983 do 3984 cat "conftest.in" "conftest.in" >"conftest.tmp" 3985 mv "conftest.tmp" "conftest.in" 3986 cp "conftest.in" "conftest.nl" 3987 $as_echo 'EGREP' >> "conftest.nl" 3988 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3990 ac_count=`expr $ac_count + 1` 3991 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3992 # Best one so far, save it but keep looking for a better one 3993 ac_cv_path_EGREP="$ac_path_EGREP" 3994 ac_path_EGREP_max=$ac_count 3995 fi 3996 # 10*(2^10) chars as input seems more than enough 3997 test $ac_count -gt 10 && break 3998 done 3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4000esac 4001 4002 $ac_path_EGREP_found && break 3 4003 done 4004 done 4005done 4006IFS=$as_save_IFS 4007 if test -z "$ac_cv_path_EGREP"; then 4008 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4009$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4010 { (exit 1); exit 1; }; } 4011 fi 4012else 4013 ac_cv_path_EGREP=$EGREP 4014fi 4015 4016 fi 4017fi 4018{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4019$as_echo "$ac_cv_path_EGREP" >&6; } 4020 EGREP="$ac_cv_path_EGREP" 4021 4022 4023 4024# Check whether --with-gnu-ld was given. 4025if test "${with_gnu_ld+set}" = set; then 4026 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4027else 4028 with_gnu_ld=no 4029fi 4030 4031ac_prog=ld 4032if test "$GCC" = yes; then 4033 # Check if gcc -print-prog-name=ld gives a path. 4034 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4035$as_echo_n "checking for ld used by $CC... " >&6; } 4036 case $host in 4037 *-*-mingw*) 4038 # gcc leaves a trailing carriage return which upsets mingw 4039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4040 *) 4041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4042 esac 4043 case $ac_prog in 4044 # Accept absolute paths. 4045 [\\/]* | ?:[\\/]*) 4046 re_direlt='/[^/][^/]*/\.\./' 4047 # Canonicalize the pathname of ld 4048 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4049 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4050 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4051 done 4052 test -z "$LD" && LD="$ac_prog" 4053 ;; 4054 "") 4055 # If it fails, then pretend we aren't using GCC. 4056 ac_prog=ld 4057 ;; 4058 *) 4059 # If it is relative, then search for the first ld in PATH. 4060 with_gnu_ld=unknown 4061 ;; 4062 esac 4063elif test "$with_gnu_ld" = yes; then 4064 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4065$as_echo_n "checking for GNU ld... " >&6; } 4066else 4067 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4068$as_echo_n "checking for non-GNU ld... " >&6; } 4069fi 4070if test "${lt_cv_path_LD+set}" = set; then 4071 $as_echo_n "(cached) " >&6 4072else 4073 if test -z "$LD"; then 4074 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4075 for ac_dir in $PATH; do 4076 IFS="$lt_save_ifs" 4077 test -z "$ac_dir" && ac_dir=. 4078 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4079 lt_cv_path_LD="$ac_dir/$ac_prog" 4080 # Check to see if the program is GNU ld. I'd rather use --version, 4081 # but apparently some variants of GNU ld only accept -v. 4082 # Break only if it was the GNU/non-GNU ld that we prefer. 4083 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4084 *GNU* | *'with BFD'*) 4085 test "$with_gnu_ld" != no && break 4086 ;; 4087 *) 4088 test "$with_gnu_ld" != yes && break 4089 ;; 4090 esac 4091 fi 4092 done 4093 IFS="$lt_save_ifs" 4094else 4095 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4096fi 4097fi 4098 4099LD="$lt_cv_path_LD" 4100if test -n "$LD"; then 4101 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4102$as_echo "$LD" >&6; } 4103else 4104 { $as_echo "$as_me:$LINENO: result: no" >&5 4105$as_echo "no" >&6; } 4106fi 4107test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4108$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4109 { (exit 1); exit 1; }; } 4110{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4111$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4112if test "${lt_cv_prog_gnu_ld+set}" = set; then 4113 $as_echo_n "(cached) " >&6 4114else 4115 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4116case `$LD -v 2>&1 </dev/null` in 4117*GNU* | *'with BFD'*) 4118 lt_cv_prog_gnu_ld=yes 4119 ;; 4120*) 4121 lt_cv_prog_gnu_ld=no 4122 ;; 4123esac 4124fi 4125{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4126$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4127with_gnu_ld=$lt_cv_prog_gnu_ld 4128 4129 4130{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4131$as_echo_n "checking for $LD option to reload object files... " >&6; } 4132if test "${lt_cv_ld_reload_flag+set}" = set; then 4133 $as_echo_n "(cached) " >&6 4134else 4135 lt_cv_ld_reload_flag='-r' 4136fi 4137{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4138$as_echo "$lt_cv_ld_reload_flag" >&6; } 4139reload_flag=$lt_cv_ld_reload_flag 4140case $reload_flag in 4141"" | " "*) ;; 4142*) reload_flag=" $reload_flag" ;; 4143esac 4144reload_cmds='$LD$reload_flag -o $output$reload_objs' 4145case $host_os in 4146 darwin*) 4147 if test "$GCC" = yes; then 4148 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4149 else 4150 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4151 fi 4152 ;; 4153esac 4154 4155{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4156$as_echo_n "checking for BSD-compatible nm... " >&6; } 4157if test "${lt_cv_path_NM+set}" = set; then 4158 $as_echo_n "(cached) " >&6 4159else 4160 if test -n "$NM"; then 4161 # Let the user override the test. 4162 lt_cv_path_NM="$NM" 4163else 4164 lt_nm_to_check="${ac_tool_prefix}nm" 4165 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4166 lt_nm_to_check="$lt_nm_to_check nm" 4167 fi 4168 for lt_tmp_nm in $lt_nm_to_check; do 4169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4170 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4171 IFS="$lt_save_ifs" 4172 test -z "$ac_dir" && ac_dir=. 4173 tmp_nm="$ac_dir/$lt_tmp_nm" 4174 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4175 # Check to see if the nm accepts a BSD-compat flag. 4176 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4177 # nm: unknown option "B" ignored 4178 # Tru64's nm complains that /dev/null is an invalid object file 4179 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4180 */dev/null* | *'Invalid file or object type'*) 4181 lt_cv_path_NM="$tmp_nm -B" 4182 break 4183 ;; 4184 *) 4185 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4186 */dev/null*) 4187 lt_cv_path_NM="$tmp_nm -p" 4188 break 4189 ;; 4190 *) 4191 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4192 continue # so that we can try to find one that supports BSD flags 4193 ;; 4194 esac 4195 ;; 4196 esac 4197 fi 4198 done 4199 IFS="$lt_save_ifs" 4200 done 4201 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4202fi 4203fi 4204{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4205$as_echo "$lt_cv_path_NM" >&6; } 4206NM="$lt_cv_path_NM" 4207 4208{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4209$as_echo_n "checking whether ln -s works... " >&6; } 4210LN_S=$as_ln_s 4211if test "$LN_S" = "ln -s"; then 4212 { $as_echo "$as_me:$LINENO: result: yes" >&5 4213$as_echo "yes" >&6; } 4214else 4215 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4216$as_echo "no, using $LN_S" >&6; } 4217fi 4218 4219{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4220$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4221if test "${lt_cv_deplibs_check_method+set}" = set; then 4222 $as_echo_n "(cached) " >&6 4223else 4224 lt_cv_file_magic_cmd='$MAGIC_CMD' 4225lt_cv_file_magic_test_file= 4226lt_cv_deplibs_check_method='unknown' 4227# Need to set the preceding variable on all platforms that support 4228# interlibrary dependencies. 4229# 'none' -- dependencies not supported. 4230# `unknown' -- same as none, but documents that we really don't know. 4231# 'pass_all' -- all dependencies passed with no checks. 4232# 'test_compile' -- check by making test program. 4233# 'file_magic [[regex]]' -- check by looking for files in library path 4234# which responds to the $file_magic_cmd with a given extended regex. 4235# If you have `file' or equivalent on your system and you're not sure 4236# whether `pass_all' will *always* work, you probably want this one. 4237 4238case $host_os in 4239aix[4-9]*) 4240 lt_cv_deplibs_check_method=pass_all 4241 ;; 4242 4243beos*) 4244 lt_cv_deplibs_check_method=pass_all 4245 ;; 4246 4247bsdi[45]*) 4248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4249 lt_cv_file_magic_cmd='/usr/bin/file -L' 4250 lt_cv_file_magic_test_file=/shlib/libc.so 4251 ;; 4252 4253cygwin*) 4254 # func_win32_libid is a shell function defined in ltmain.sh 4255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4256 lt_cv_file_magic_cmd='func_win32_libid' 4257 ;; 4258 4259mingw* | pw32*) 4260 # Base MSYS/MinGW do not provide the 'file' command needed by 4261 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4262 # unless we find 'file', for example because we are cross-compiling. 4263 if ( file / ) >/dev/null 2>&1; then 4264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4265 lt_cv_file_magic_cmd='func_win32_libid' 4266 else 4267 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4268 lt_cv_file_magic_cmd='$OBJDUMP -f' 4269 fi 4270 ;; 4271 4272darwin* | rhapsody*) 4273 lt_cv_deplibs_check_method=pass_all 4274 ;; 4275 4276freebsd* | dragonfly*) 4277 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4278 case $host_cpu in 4279 i*86 ) 4280 # Not sure whether the presence of OpenBSD here was a mistake. 4281 # Let's accept both of them until this is cleared up. 4282 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4283 lt_cv_file_magic_cmd=/usr/bin/file 4284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4285 ;; 4286 esac 4287 else 4288 lt_cv_deplibs_check_method=pass_all 4289 fi 4290 ;; 4291 4292gnu*) 4293 lt_cv_deplibs_check_method=pass_all 4294 ;; 4295 4296hpux10.20* | hpux11*) 4297 lt_cv_file_magic_cmd=/usr/bin/file 4298 case $host_cpu in 4299 ia64*) 4300 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4301 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4302 ;; 4303 hppa*64*) 4304 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]' 4305 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4306 ;; 4307 *) 4308 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4309 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4310 ;; 4311 esac 4312 ;; 4313 4314interix[3-9]*) 4315 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4317 ;; 4318 4319irix5* | irix6* | nonstopux*) 4320 case $LD in 4321 *-32|*"-32 ") libmagic=32-bit;; 4322 *-n32|*"-n32 ") libmagic=N32;; 4323 *-64|*"-64 ") libmagic=64-bit;; 4324 *) libmagic=never-match;; 4325 esac 4326 lt_cv_deplibs_check_method=pass_all 4327 ;; 4328 4329# This must be Linux ELF. 4330linux* | k*bsd*-gnu) 4331 lt_cv_deplibs_check_method=pass_all 4332 ;; 4333 4334netbsd*) 4335 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4337 else 4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4339 fi 4340 ;; 4341 4342newos6*) 4343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4344 lt_cv_file_magic_cmd=/usr/bin/file 4345 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4346 ;; 4347 4348nto-qnx*) 4349 lt_cv_deplibs_check_method=unknown 4350 ;; 4351 4352openbsd*) 4353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4355 else 4356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4357 fi 4358 ;; 4359 4360osf3* | osf4* | osf5*) 4361 lt_cv_deplibs_check_method=pass_all 4362 ;; 4363 4364rdos*) 4365 lt_cv_deplibs_check_method=pass_all 4366 ;; 4367 4368solaris*) 4369 lt_cv_deplibs_check_method=pass_all 4370 ;; 4371 4372sysv4 | sysv4.3*) 4373 case $host_vendor in 4374 motorola) 4375 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]' 4376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4377 ;; 4378 ncr) 4379 lt_cv_deplibs_check_method=pass_all 4380 ;; 4381 sequent) 4382 lt_cv_file_magic_cmd='/bin/file' 4383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4384 ;; 4385 sni) 4386 lt_cv_file_magic_cmd='/bin/file' 4387 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4388 lt_cv_file_magic_test_file=/lib/libc.so 4389 ;; 4390 siemens) 4391 lt_cv_deplibs_check_method=pass_all 4392 ;; 4393 pc) 4394 lt_cv_deplibs_check_method=pass_all 4395 ;; 4396 esac 4397 ;; 4398 4399sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4400 lt_cv_deplibs_check_method=pass_all 4401 ;; 4402esac 4403 4404fi 4405{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4406$as_echo "$lt_cv_deplibs_check_method" >&6; } 4407file_magic_cmd=$lt_cv_file_magic_cmd 4408deplibs_check_method=$lt_cv_deplibs_check_method 4409test -z "$deplibs_check_method" && deplibs_check_method=unknown 4410 4411 4412 4413 4414# If no C compiler was specified, use CC. 4415LTCC=${LTCC-"$CC"} 4416 4417# If no C compiler flags were specified, use CFLAGS. 4418LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4419 4420# Allow CC to be a program name with arguments. 4421compiler=$CC 4422 4423 4424# Check whether --enable-libtool-lock was given. 4425if test "${enable_libtool_lock+set}" = set; then 4426 enableval=$enable_libtool_lock; 4427fi 4428 4429test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4430 4431# Some flags need to be propagated to the compiler or linker for good 4432# libtool support. 4433case $host in 4434ia64-*-hpux*) 4435 # Find out which ABI we are using. 4436 echo 'int i;' > conftest.$ac_ext 4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4438 (eval $ac_compile) 2>&5 4439 ac_status=$? 4440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4441 (exit $ac_status); }; then 4442 case `/usr/bin/file conftest.$ac_objext` in 4443 *ELF-32*) 4444 HPUX_IA64_MODE="32" 4445 ;; 4446 *ELF-64*) 4447 HPUX_IA64_MODE="64" 4448 ;; 4449 esac 4450 fi 4451 rm -rf conftest* 4452 ;; 4453*-*-irix6*) 4454 # Find out which ABI we are using. 4455 echo '#line 4455 "configure"' > conftest.$ac_ext 4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4457 (eval $ac_compile) 2>&5 4458 ac_status=$? 4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4460 (exit $ac_status); }; then 4461 if test "$lt_cv_prog_gnu_ld" = yes; then 4462 case `/usr/bin/file conftest.$ac_objext` in 4463 *32-bit*) 4464 LD="${LD-ld} -melf32bsmip" 4465 ;; 4466 *N32*) 4467 LD="${LD-ld} -melf32bmipn32" 4468 ;; 4469 *64-bit*) 4470 LD="${LD-ld} -melf64bmip" 4471 ;; 4472 esac 4473 else 4474 case `/usr/bin/file conftest.$ac_objext` in 4475 *32-bit*) 4476 LD="${LD-ld} -32" 4477 ;; 4478 *N32*) 4479 LD="${LD-ld} -n32" 4480 ;; 4481 *64-bit*) 4482 LD="${LD-ld} -64" 4483 ;; 4484 esac 4485 fi 4486 fi 4487 rm -rf conftest* 4488 ;; 4489 4490x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4491s390*-*linux*|sparc*-*linux*) 4492 # Find out which ABI we are using. 4493 echo 'int i;' > conftest.$ac_ext 4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4495 (eval $ac_compile) 2>&5 4496 ac_status=$? 4497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); }; then 4499 case `/usr/bin/file conftest.o` in 4500 *32-bit*) 4501 case $host in 4502 x86_64-*kfreebsd*-gnu) 4503 LD="${LD-ld} -m elf_i386_fbsd" 4504 ;; 4505 x86_64-*linux*) 4506 LD="${LD-ld} -m elf_i386" 4507 ;; 4508 ppc64-*linux*|powerpc64-*linux*) 4509 LD="${LD-ld} -m elf32ppclinux" 4510 ;; 4511 s390x-*linux*) 4512 LD="${LD-ld} -m elf_s390" 4513 ;; 4514 sparc64-*linux*) 4515 LD="${LD-ld} -m elf32_sparc" 4516 ;; 4517 esac 4518 ;; 4519 *64-bit*) 4520 case $host in 4521 x86_64-*kfreebsd*-gnu) 4522 LD="${LD-ld} -m elf_x86_64_fbsd" 4523 ;; 4524 x86_64-*linux*) 4525 LD="${LD-ld} -m elf_x86_64" 4526 ;; 4527 ppc*-*linux*|powerpc*-*linux*) 4528 LD="${LD-ld} -m elf64ppc" 4529 ;; 4530 s390*-*linux*) 4531 LD="${LD-ld} -m elf64_s390" 4532 ;; 4533 sparc*-*linux*) 4534 LD="${LD-ld} -m elf64_sparc" 4535 ;; 4536 esac 4537 ;; 4538 esac 4539 fi 4540 rm -rf conftest* 4541 ;; 4542 4543*-*-sco3.2v5*) 4544 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4545 SAVE_CFLAGS="$CFLAGS" 4546 CFLAGS="$CFLAGS -belf" 4547 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4548$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4549if test "${lt_cv_cc_needs_belf+set}" = set; then 4550 $as_echo_n "(cached) " >&6 4551else 4552 ac_ext=c 4553ac_cpp='$CPP $CPPFLAGS' 4554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4556ac_compiler_gnu=$ac_cv_c_compiler_gnu 4557 4558 cat >conftest.$ac_ext <<_ACEOF 4559/* confdefs.h. */ 4560_ACEOF 4561cat confdefs.h >>conftest.$ac_ext 4562cat >>conftest.$ac_ext <<_ACEOF 4563/* end confdefs.h. */ 4564 4565int 4566main () 4567{ 4568 4569 ; 4570 return 0; 4571} 4572_ACEOF 4573rm -f conftest.$ac_objext conftest$ac_exeext 4574if { (ac_try="$ac_link" 4575case "(($ac_try" in 4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4577 *) ac_try_echo=$ac_try;; 4578esac 4579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4580$as_echo "$ac_try_echo") >&5 4581 (eval "$ac_link") 2>conftest.er1 4582 ac_status=$? 4583 grep -v '^ *+' conftest.er1 >conftest.err 4584 rm -f conftest.er1 4585 cat conftest.err >&5 4586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4587 (exit $ac_status); } && { 4588 test -z "$ac_c_werror_flag" || 4589 test ! -s conftest.err 4590 } && test -s conftest$ac_exeext && { 4591 test "$cross_compiling" = yes || 4592 $as_test_x conftest$ac_exeext 4593 }; then 4594 lt_cv_cc_needs_belf=yes 4595else 4596 $as_echo "$as_me: failed program was:" >&5 4597sed 's/^/| /' conftest.$ac_ext >&5 4598 4599 lt_cv_cc_needs_belf=no 4600fi 4601 4602rm -rf conftest.dSYM 4603rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4604 conftest$ac_exeext conftest.$ac_ext 4605 ac_ext=c 4606ac_cpp='$CPP $CPPFLAGS' 4607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4609ac_compiler_gnu=$ac_cv_c_compiler_gnu 4610 4611fi 4612{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4613$as_echo "$lt_cv_cc_needs_belf" >&6; } 4614 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4615 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4616 CFLAGS="$SAVE_CFLAGS" 4617 fi 4618 ;; 4619sparc*-*solaris*) 4620 # Find out which ABI we are using. 4621 echo 'int i;' > conftest.$ac_ext 4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4623 (eval $ac_compile) 2>&5 4624 ac_status=$? 4625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); }; then 4627 case `/usr/bin/file conftest.o` in 4628 *64-bit*) 4629 case $lt_cv_prog_gnu_ld in 4630 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4631 *) 4632 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4633 LD="${LD-ld} -64" 4634 fi 4635 ;; 4636 esac 4637 ;; 4638 esac 4639 fi 4640 rm -rf conftest* 4641 ;; 4642 4643 4644esac 4645 4646need_locks="$enable_libtool_lock" 4647 4648 4649ac_ext=c 4650ac_cpp='$CPP $CPPFLAGS' 4651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4653ac_compiler_gnu=$ac_cv_c_compiler_gnu 4654{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4655$as_echo_n "checking how to run the C preprocessor... " >&6; } 4656# On Suns, sometimes $CPP names a directory. 4657if test -n "$CPP" && test -d "$CPP"; then 4658 CPP= 4659fi 4660if test -z "$CPP"; then 4661 if test "${ac_cv_prog_CPP+set}" = set; then 4662 $as_echo_n "(cached) " >&6 4663else 4664 # Double quotes because CPP needs to be expanded 4665 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4666 do 4667 ac_preproc_ok=false 4668for ac_c_preproc_warn_flag in '' yes 4669do 4670 # Use a header file that comes with gcc, so configuring glibc 4671 # with a fresh cross-compiler works. 4672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4673 # <limits.h> exists even on freestanding compilers. 4674 # On the NeXT, cc -E runs the code through the compiler's parser, 4675 # not just through cpp. "Syntax error" is here to catch this case. 4676 cat >conftest.$ac_ext <<_ACEOF 4677/* confdefs.h. */ 4678_ACEOF 4679cat confdefs.h >>conftest.$ac_ext 4680cat >>conftest.$ac_ext <<_ACEOF 4681/* end confdefs.h. */ 4682#ifdef __STDC__ 4683# include <limits.h> 4684#else 4685# include <assert.h> 4686#endif 4687 Syntax error 4688_ACEOF 4689if { (ac_try="$ac_cpp conftest.$ac_ext" 4690case "(($ac_try" in 4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4692 *) ac_try_echo=$ac_try;; 4693esac 4694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4695$as_echo "$ac_try_echo") >&5 4696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4697 ac_status=$? 4698 grep -v '^ *+' conftest.er1 >conftest.err 4699 rm -f conftest.er1 4700 cat conftest.err >&5 4701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4702 (exit $ac_status); } >/dev/null && { 4703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4704 test ! -s conftest.err 4705 }; then 4706 : 4707else 4708 $as_echo "$as_me: failed program was:" >&5 4709sed 's/^/| /' conftest.$ac_ext >&5 4710 4711 # Broken: fails on valid input. 4712continue 4713fi 4714 4715rm -f conftest.err conftest.$ac_ext 4716 4717 # OK, works on sane cases. Now check whether nonexistent headers 4718 # can be detected and how. 4719 cat >conftest.$ac_ext <<_ACEOF 4720/* confdefs.h. */ 4721_ACEOF 4722cat confdefs.h >>conftest.$ac_ext 4723cat >>conftest.$ac_ext <<_ACEOF 4724/* end confdefs.h. */ 4725#include <ac_nonexistent.h> 4726_ACEOF 4727if { (ac_try="$ac_cpp conftest.$ac_ext" 4728case "(($ac_try" in 4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4730 *) ac_try_echo=$ac_try;; 4731esac 4732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4733$as_echo "$ac_try_echo") >&5 4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4735 ac_status=$? 4736 grep -v '^ *+' conftest.er1 >conftest.err 4737 rm -f conftest.er1 4738 cat conftest.err >&5 4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4740 (exit $ac_status); } >/dev/null && { 4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4742 test ! -s conftest.err 4743 }; then 4744 # Broken: success on invalid input. 4745continue 4746else 4747 $as_echo "$as_me: failed program was:" >&5 4748sed 's/^/| /' conftest.$ac_ext >&5 4749 4750 # Passes both tests. 4751ac_preproc_ok=: 4752break 4753fi 4754 4755rm -f conftest.err conftest.$ac_ext 4756 4757done 4758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4759rm -f conftest.err conftest.$ac_ext 4760if $ac_preproc_ok; then 4761 break 4762fi 4763 4764 done 4765 ac_cv_prog_CPP=$CPP 4766 4767fi 4768 CPP=$ac_cv_prog_CPP 4769else 4770 ac_cv_prog_CPP=$CPP 4771fi 4772{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4773$as_echo "$CPP" >&6; } 4774ac_preproc_ok=false 4775for ac_c_preproc_warn_flag in '' yes 4776do 4777 # Use a header file that comes with gcc, so configuring glibc 4778 # with a fresh cross-compiler works. 4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4780 # <limits.h> exists even on freestanding compilers. 4781 # On the NeXT, cc -E runs the code through the compiler's parser, 4782 # not just through cpp. "Syntax error" is here to catch this case. 4783 cat >conftest.$ac_ext <<_ACEOF 4784/* confdefs.h. */ 4785_ACEOF 4786cat confdefs.h >>conftest.$ac_ext 4787cat >>conftest.$ac_ext <<_ACEOF 4788/* end confdefs.h. */ 4789#ifdef __STDC__ 4790# include <limits.h> 4791#else 4792# include <assert.h> 4793#endif 4794 Syntax error 4795_ACEOF 4796if { (ac_try="$ac_cpp conftest.$ac_ext" 4797case "(($ac_try" in 4798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4799 *) ac_try_echo=$ac_try;; 4800esac 4801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4802$as_echo "$ac_try_echo") >&5 4803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4804 ac_status=$? 4805 grep -v '^ *+' conftest.er1 >conftest.err 4806 rm -f conftest.er1 4807 cat conftest.err >&5 4808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); } >/dev/null && { 4810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4811 test ! -s conftest.err 4812 }; then 4813 : 4814else 4815 $as_echo "$as_me: failed program was:" >&5 4816sed 's/^/| /' conftest.$ac_ext >&5 4817 4818 # Broken: fails on valid input. 4819continue 4820fi 4821 4822rm -f conftest.err conftest.$ac_ext 4823 4824 # OK, works on sane cases. Now check whether nonexistent headers 4825 # can be detected and how. 4826 cat >conftest.$ac_ext <<_ACEOF 4827/* confdefs.h. */ 4828_ACEOF 4829cat confdefs.h >>conftest.$ac_ext 4830cat >>conftest.$ac_ext <<_ACEOF 4831/* end confdefs.h. */ 4832#include <ac_nonexistent.h> 4833_ACEOF 4834if { (ac_try="$ac_cpp conftest.$ac_ext" 4835case "(($ac_try" in 4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4837 *) ac_try_echo=$ac_try;; 4838esac 4839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4840$as_echo "$ac_try_echo") >&5 4841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } >/dev/null && { 4848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4849 test ! -s conftest.err 4850 }; then 4851 # Broken: success on invalid input. 4852continue 4853else 4854 $as_echo "$as_me: failed program was:" >&5 4855sed 's/^/| /' conftest.$ac_ext >&5 4856 4857 # Passes both tests. 4858ac_preproc_ok=: 4859break 4860fi 4861 4862rm -f conftest.err conftest.$ac_ext 4863 4864done 4865# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4866rm -f conftest.err conftest.$ac_ext 4867if $ac_preproc_ok; then 4868 : 4869else 4870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 4871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4872{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4873See \`config.log' for more details." >&5 4874$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4875See \`config.log' for more details." >&2;} 4876 { (exit 1); exit 1; }; }; } 4877fi 4878 4879ac_ext=c 4880ac_cpp='$CPP $CPPFLAGS' 4881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4883ac_compiler_gnu=$ac_cv_c_compiler_gnu 4884 4885 4886{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4887$as_echo_n "checking for ANSI C header files... " >&6; } 4888if test "${ac_cv_header_stdc+set}" = set; then 4889 $as_echo_n "(cached) " >&6 4890else 4891 cat >conftest.$ac_ext <<_ACEOF 4892/* confdefs.h. */ 4893_ACEOF 4894cat confdefs.h >>conftest.$ac_ext 4895cat >>conftest.$ac_ext <<_ACEOF 4896/* end confdefs.h. */ 4897#include <stdlib.h> 4898#include <stdarg.h> 4899#include <string.h> 4900#include <float.h> 4901 4902int 4903main () 4904{ 4905 4906 ; 4907 return 0; 4908} 4909_ACEOF 4910rm -f conftest.$ac_objext 4911if { (ac_try="$ac_compile" 4912case "(($ac_try" in 4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4914 *) ac_try_echo=$ac_try;; 4915esac 4916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4917$as_echo "$ac_try_echo") >&5 4918 (eval "$ac_compile") 2>conftest.er1 4919 ac_status=$? 4920 grep -v '^ *+' conftest.er1 >conftest.err 4921 rm -f conftest.er1 4922 cat conftest.err >&5 4923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4924 (exit $ac_status); } && { 4925 test -z "$ac_c_werror_flag" || 4926 test ! -s conftest.err 4927 } && test -s conftest.$ac_objext; then 4928 ac_cv_header_stdc=yes 4929else 4930 $as_echo "$as_me: failed program was:" >&5 4931sed 's/^/| /' conftest.$ac_ext >&5 4932 4933 ac_cv_header_stdc=no 4934fi 4935 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937 4938if test $ac_cv_header_stdc = yes; then 4939 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4940 cat >conftest.$ac_ext <<_ACEOF 4941/* confdefs.h. */ 4942_ACEOF 4943cat confdefs.h >>conftest.$ac_ext 4944cat >>conftest.$ac_ext <<_ACEOF 4945/* end confdefs.h. */ 4946#include <string.h> 4947 4948_ACEOF 4949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4950 $EGREP "memchr" >/dev/null 2>&1; then 4951 : 4952else 4953 ac_cv_header_stdc=no 4954fi 4955rm -f conftest* 4956 4957fi 4958 4959if test $ac_cv_header_stdc = yes; then 4960 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4961 cat >conftest.$ac_ext <<_ACEOF 4962/* confdefs.h. */ 4963_ACEOF 4964cat confdefs.h >>conftest.$ac_ext 4965cat >>conftest.$ac_ext <<_ACEOF 4966/* end confdefs.h. */ 4967#include <stdlib.h> 4968 4969_ACEOF 4970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4971 $EGREP "free" >/dev/null 2>&1; then 4972 : 4973else 4974 ac_cv_header_stdc=no 4975fi 4976rm -f conftest* 4977 4978fi 4979 4980if test $ac_cv_header_stdc = yes; then 4981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4982 if test "$cross_compiling" = yes; then 4983 : 4984else 4985 cat >conftest.$ac_ext <<_ACEOF 4986/* confdefs.h. */ 4987_ACEOF 4988cat confdefs.h >>conftest.$ac_ext 4989cat >>conftest.$ac_ext <<_ACEOF 4990/* end confdefs.h. */ 4991#include <ctype.h> 4992#include <stdlib.h> 4993#if ((' ' & 0x0FF) == 0x020) 4994# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4995# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4996#else 4997# define ISLOWER(c) \ 4998 (('a' <= (c) && (c) <= 'i') \ 4999 || ('j' <= (c) && (c) <= 'r') \ 5000 || ('s' <= (c) && (c) <= 'z')) 5001# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5002#endif 5003 5004#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5005int 5006main () 5007{ 5008 int i; 5009 for (i = 0; i < 256; i++) 5010 if (XOR (islower (i), ISLOWER (i)) 5011 || toupper (i) != TOUPPER (i)) 5012 return 2; 5013 return 0; 5014} 5015_ACEOF 5016rm -f conftest$ac_exeext 5017if { (ac_try="$ac_link" 5018case "(($ac_try" in 5019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5020 *) ac_try_echo=$ac_try;; 5021esac 5022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5023$as_echo "$ac_try_echo") >&5 5024 (eval "$ac_link") 2>&5 5025 ac_status=$? 5026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5028 { (case "(($ac_try" in 5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5030 *) ac_try_echo=$ac_try;; 5031esac 5032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5033$as_echo "$ac_try_echo") >&5 5034 (eval "$ac_try") 2>&5 5035 ac_status=$? 5036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5037 (exit $ac_status); }; }; then 5038 : 5039else 5040 $as_echo "$as_me: program exited with status $ac_status" >&5 5041$as_echo "$as_me: failed program was:" >&5 5042sed 's/^/| /' conftest.$ac_ext >&5 5043 5044( exit $ac_status ) 5045ac_cv_header_stdc=no 5046fi 5047rm -rf conftest.dSYM 5048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5049fi 5050 5051 5052fi 5053fi 5054{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5055$as_echo "$ac_cv_header_stdc" >&6; } 5056if test $ac_cv_header_stdc = yes; then 5057 5058cat >>confdefs.h <<\_ACEOF 5059#define STDC_HEADERS 1 5060_ACEOF 5061 5062fi 5063 5064# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5075 inttypes.h stdint.h unistd.h 5076do 5077as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5078{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5079$as_echo_n "checking for $ac_header... " >&6; } 5080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5081 $as_echo_n "(cached) " >&6 5082else 5083 cat >conftest.$ac_ext <<_ACEOF 5084/* confdefs.h. */ 5085_ACEOF 5086cat confdefs.h >>conftest.$ac_ext 5087cat >>conftest.$ac_ext <<_ACEOF 5088/* end confdefs.h. */ 5089$ac_includes_default 5090 5091#include <$ac_header> 5092_ACEOF 5093rm -f conftest.$ac_objext 5094if { (ac_try="$ac_compile" 5095case "(($ac_try" in 5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5097 *) ac_try_echo=$ac_try;; 5098esac 5099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5100$as_echo "$ac_try_echo") >&5 5101 (eval "$ac_compile") 2>conftest.er1 5102 ac_status=$? 5103 grep -v '^ *+' conftest.er1 >conftest.err 5104 rm -f conftest.er1 5105 cat conftest.err >&5 5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5107 (exit $ac_status); } && { 5108 test -z "$ac_c_werror_flag" || 5109 test ! -s conftest.err 5110 } && test -s conftest.$ac_objext; then 5111 eval "$as_ac_Header=yes" 5112else 5113 $as_echo "$as_me: failed program was:" >&5 5114sed 's/^/| /' conftest.$ac_ext >&5 5115 5116 eval "$as_ac_Header=no" 5117fi 5118 5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5120fi 5121ac_res=`eval 'as_val=${'$as_ac_Header'} 5122 $as_echo "$as_val"'` 5123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5124$as_echo "$ac_res" >&6; } 5125as_val=`eval 'as_val=${'$as_ac_Header'} 5126 $as_echo "$as_val"'` 5127 if test "x$as_val" = x""yes; then 5128 cat >>confdefs.h <<_ACEOF 5129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5130_ACEOF 5131 5132fi 5133 5134done 5135 5136 5137 5138for ac_header in dlfcn.h 5139do 5140as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5143$as_echo_n "checking for $ac_header... " >&6; } 5144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5145 $as_echo_n "(cached) " >&6 5146fi 5147ac_res=`eval 'as_val=${'$as_ac_Header'} 5148 $as_echo "$as_val"'` 5149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5150$as_echo "$ac_res" >&6; } 5151else 5152 # Is the header compilable? 5153{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5154$as_echo_n "checking $ac_header usability... " >&6; } 5155cat >conftest.$ac_ext <<_ACEOF 5156/* confdefs.h. */ 5157_ACEOF 5158cat confdefs.h >>conftest.$ac_ext 5159cat >>conftest.$ac_ext <<_ACEOF 5160/* end confdefs.h. */ 5161$ac_includes_default 5162#include <$ac_header> 5163_ACEOF 5164rm -f conftest.$ac_objext 5165if { (ac_try="$ac_compile" 5166case "(($ac_try" in 5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5168 *) ac_try_echo=$ac_try;; 5169esac 5170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5171$as_echo "$ac_try_echo") >&5 5172 (eval "$ac_compile") 2>conftest.er1 5173 ac_status=$? 5174 grep -v '^ *+' conftest.er1 >conftest.err 5175 rm -f conftest.er1 5176 cat conftest.err >&5 5177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178 (exit $ac_status); } && { 5179 test -z "$ac_c_werror_flag" || 5180 test ! -s conftest.err 5181 } && test -s conftest.$ac_objext; then 5182 ac_header_compiler=yes 5183else 5184 $as_echo "$as_me: failed program was:" >&5 5185sed 's/^/| /' conftest.$ac_ext >&5 5186 5187 ac_header_compiler=no 5188fi 5189 5190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5191{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5192$as_echo "$ac_header_compiler" >&6; } 5193 5194# Is the header present? 5195{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5196$as_echo_n "checking $ac_header presence... " >&6; } 5197cat >conftest.$ac_ext <<_ACEOF 5198/* confdefs.h. */ 5199_ACEOF 5200cat confdefs.h >>conftest.$ac_ext 5201cat >>conftest.$ac_ext <<_ACEOF 5202/* end confdefs.h. */ 5203#include <$ac_header> 5204_ACEOF 5205if { (ac_try="$ac_cpp conftest.$ac_ext" 5206case "(($ac_try" in 5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5208 *) ac_try_echo=$ac_try;; 5209esac 5210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5211$as_echo "$ac_try_echo") >&5 5212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5213 ac_status=$? 5214 grep -v '^ *+' conftest.er1 >conftest.err 5215 rm -f conftest.er1 5216 cat conftest.err >&5 5217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); } >/dev/null && { 5219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5220 test ! -s conftest.err 5221 }; then 5222 ac_header_preproc=yes 5223else 5224 $as_echo "$as_me: failed program was:" >&5 5225sed 's/^/| /' conftest.$ac_ext >&5 5226 5227 ac_header_preproc=no 5228fi 5229 5230rm -f conftest.err conftest.$ac_ext 5231{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5232$as_echo "$ac_header_preproc" >&6; } 5233 5234# So? What about this header? 5235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5236 yes:no: ) 5237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5238$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5240$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5241 ac_header_preproc=yes 5242 ;; 5243 no:yes:* ) 5244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5245$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5247$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5249$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5251$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5253$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5255$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5256 ( cat <<\_ASBOX 5257## ---------------------------------------------------------------------- ## 5258## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5259## ---------------------------------------------------------------------- ## 5260_ASBOX 5261 ) | sed "s/^/$as_me: WARNING: /" >&2 5262 ;; 5263esac 5264{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5265$as_echo_n "checking for $ac_header... " >&6; } 5266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5267 $as_echo_n "(cached) " >&6 5268else 5269 eval "$as_ac_Header=\$ac_header_preproc" 5270fi 5271ac_res=`eval 'as_val=${'$as_ac_Header'} 5272 $as_echo "$as_val"'` 5273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5274$as_echo "$ac_res" >&6; } 5275 5276fi 5277as_val=`eval 'as_val=${'$as_ac_Header'} 5278 $as_echo "$as_val"'` 5279 if test "x$as_val" = x""yes; then 5280 cat >>confdefs.h <<_ACEOF 5281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5282_ACEOF 5283 5284fi 5285 5286done 5287 5288ac_ext=cpp 5289ac_cpp='$CXXCPP $CPPFLAGS' 5290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5293if test -z "$CXX"; then 5294 if test -n "$CCC"; then 5295 CXX=$CCC 5296 else 5297 if test -n "$ac_tool_prefix"; then 5298 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5299 do 5300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5301set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5302{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5303$as_echo_n "checking for $ac_word... " >&6; } 5304if test "${ac_cv_prog_CXX+set}" = set; then 5305 $as_echo_n "(cached) " >&6 5306else 5307 if test -n "$CXX"; then 5308 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5309else 5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH 5312do 5313 IFS=$as_save_IFS 5314 test -z "$as_dir" && as_dir=. 5315 for ac_exec_ext in '' $ac_executable_extensions; do 5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5319 break 2 5320 fi 5321done 5322done 5323IFS=$as_save_IFS 5324 5325fi 5326fi 5327CXX=$ac_cv_prog_CXX 5328if test -n "$CXX"; then 5329 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5330$as_echo "$CXX" >&6; } 5331else 5332 { $as_echo "$as_me:$LINENO: result: no" >&5 5333$as_echo "no" >&6; } 5334fi 5335 5336 5337 test -n "$CXX" && break 5338 done 5339fi 5340if test -z "$CXX"; then 5341 ac_ct_CXX=$CXX 5342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5343do 5344 # Extract the first word of "$ac_prog", so it can be a program name with args. 5345set dummy $ac_prog; ac_word=$2 5346{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5347$as_echo_n "checking for $ac_word... " >&6; } 5348if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5349 $as_echo_n "(cached) " >&6 5350else 5351 if test -n "$ac_ct_CXX"; then 5352 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5353else 5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5355for as_dir in $PATH 5356do 5357 IFS=$as_save_IFS 5358 test -z "$as_dir" && as_dir=. 5359 for ac_exec_ext in '' $ac_executable_extensions; do 5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5361 ac_cv_prog_ac_ct_CXX="$ac_prog" 5362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5363 break 2 5364 fi 5365done 5366done 5367IFS=$as_save_IFS 5368 5369fi 5370fi 5371ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5372if test -n "$ac_ct_CXX"; then 5373 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5374$as_echo "$ac_ct_CXX" >&6; } 5375else 5376 { $as_echo "$as_me:$LINENO: result: no" >&5 5377$as_echo "no" >&6; } 5378fi 5379 5380 5381 test -n "$ac_ct_CXX" && break 5382done 5383 5384 if test "x$ac_ct_CXX" = x; then 5385 CXX="g++" 5386 else 5387 case $cross_compiling:$ac_tool_warned in 5388yes:) 5389{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5391ac_tool_warned=yes ;; 5392esac 5393 CXX=$ac_ct_CXX 5394 fi 5395fi 5396 5397 fi 5398fi 5399# Provide some information about the compiler. 5400$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5401set X $ac_compile 5402ac_compiler=$2 5403{ (ac_try="$ac_compiler --version >&5" 5404case "(($ac_try" in 5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5406 *) ac_try_echo=$ac_try;; 5407esac 5408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5409$as_echo "$ac_try_echo") >&5 5410 (eval "$ac_compiler --version >&5") 2>&5 5411 ac_status=$? 5412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5413 (exit $ac_status); } 5414{ (ac_try="$ac_compiler -v >&5" 5415case "(($ac_try" in 5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5417 *) ac_try_echo=$ac_try;; 5418esac 5419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5420$as_echo "$ac_try_echo") >&5 5421 (eval "$ac_compiler -v >&5") 2>&5 5422 ac_status=$? 5423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); } 5425{ (ac_try="$ac_compiler -V >&5" 5426case "(($ac_try" in 5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5428 *) ac_try_echo=$ac_try;; 5429esac 5430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5431$as_echo "$ac_try_echo") >&5 5432 (eval "$ac_compiler -V >&5") 2>&5 5433 ac_status=$? 5434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5435 (exit $ac_status); } 5436 5437{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5438$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5439if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5440 $as_echo_n "(cached) " >&6 5441else 5442 cat >conftest.$ac_ext <<_ACEOF 5443/* confdefs.h. */ 5444_ACEOF 5445cat confdefs.h >>conftest.$ac_ext 5446cat >>conftest.$ac_ext <<_ACEOF 5447/* end confdefs.h. */ 5448 5449int 5450main () 5451{ 5452#ifndef __GNUC__ 5453 choke me 5454#endif 5455 5456 ; 5457 return 0; 5458} 5459_ACEOF 5460rm -f conftest.$ac_objext 5461if { (ac_try="$ac_compile" 5462case "(($ac_try" in 5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5464 *) ac_try_echo=$ac_try;; 5465esac 5466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5467$as_echo "$ac_try_echo") >&5 5468 (eval "$ac_compile") 2>conftest.er1 5469 ac_status=$? 5470 grep -v '^ *+' conftest.er1 >conftest.err 5471 rm -f conftest.er1 5472 cat conftest.err >&5 5473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5474 (exit $ac_status); } && { 5475 test -z "$ac_cxx_werror_flag" || 5476 test ! -s conftest.err 5477 } && test -s conftest.$ac_objext; then 5478 ac_compiler_gnu=yes 5479else 5480 $as_echo "$as_me: failed program was:" >&5 5481sed 's/^/| /' conftest.$ac_ext >&5 5482 5483 ac_compiler_gnu=no 5484fi 5485 5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5487ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5488 5489fi 5490{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5491$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5492if test $ac_compiler_gnu = yes; then 5493 GXX=yes 5494else 5495 GXX= 5496fi 5497ac_test_CXXFLAGS=${CXXFLAGS+set} 5498ac_save_CXXFLAGS=$CXXFLAGS 5499{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5500$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5501if test "${ac_cv_prog_cxx_g+set}" = set; then 5502 $as_echo_n "(cached) " >&6 5503else 5504 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5505 ac_cxx_werror_flag=yes 5506 ac_cv_prog_cxx_g=no 5507 CXXFLAGS="-g" 5508 cat >conftest.$ac_ext <<_ACEOF 5509/* confdefs.h. */ 5510_ACEOF 5511cat confdefs.h >>conftest.$ac_ext 5512cat >>conftest.$ac_ext <<_ACEOF 5513/* end confdefs.h. */ 5514 5515int 5516main () 5517{ 5518 5519 ; 5520 return 0; 5521} 5522_ACEOF 5523rm -f conftest.$ac_objext 5524if { (ac_try="$ac_compile" 5525case "(($ac_try" in 5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5527 *) ac_try_echo=$ac_try;; 5528esac 5529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5530$as_echo "$ac_try_echo") >&5 5531 (eval "$ac_compile") 2>conftest.er1 5532 ac_status=$? 5533 grep -v '^ *+' conftest.er1 >conftest.err 5534 rm -f conftest.er1 5535 cat conftest.err >&5 5536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5537 (exit $ac_status); } && { 5538 test -z "$ac_cxx_werror_flag" || 5539 test ! -s conftest.err 5540 } && test -s conftest.$ac_objext; then 5541 ac_cv_prog_cxx_g=yes 5542else 5543 $as_echo "$as_me: failed program was:" >&5 5544sed 's/^/| /' conftest.$ac_ext >&5 5545 5546 CXXFLAGS="" 5547 cat >conftest.$ac_ext <<_ACEOF 5548/* confdefs.h. */ 5549_ACEOF 5550cat confdefs.h >>conftest.$ac_ext 5551cat >>conftest.$ac_ext <<_ACEOF 5552/* end confdefs.h. */ 5553 5554int 5555main () 5556{ 5557 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562rm -f conftest.$ac_objext 5563if { (ac_try="$ac_compile" 5564case "(($ac_try" in 5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5566 *) ac_try_echo=$ac_try;; 5567esac 5568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5569$as_echo "$ac_try_echo") >&5 5570 (eval "$ac_compile") 2>conftest.er1 5571 ac_status=$? 5572 grep -v '^ *+' conftest.er1 >conftest.err 5573 rm -f conftest.er1 5574 cat conftest.err >&5 5575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5576 (exit $ac_status); } && { 5577 test -z "$ac_cxx_werror_flag" || 5578 test ! -s conftest.err 5579 } && test -s conftest.$ac_objext; then 5580 : 5581else 5582 $as_echo "$as_me: failed program was:" >&5 5583sed 's/^/| /' conftest.$ac_ext >&5 5584 5585 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5586 CXXFLAGS="-g" 5587 cat >conftest.$ac_ext <<_ACEOF 5588/* confdefs.h. */ 5589_ACEOF 5590cat confdefs.h >>conftest.$ac_ext 5591cat >>conftest.$ac_ext <<_ACEOF 5592/* end confdefs.h. */ 5593 5594int 5595main () 5596{ 5597 5598 ; 5599 return 0; 5600} 5601_ACEOF 5602rm -f conftest.$ac_objext 5603if { (ac_try="$ac_compile" 5604case "(($ac_try" in 5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5606 *) ac_try_echo=$ac_try;; 5607esac 5608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5609$as_echo "$ac_try_echo") >&5 5610 (eval "$ac_compile") 2>conftest.er1 5611 ac_status=$? 5612 grep -v '^ *+' conftest.er1 >conftest.err 5613 rm -f conftest.er1 5614 cat conftest.err >&5 5615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5616 (exit $ac_status); } && { 5617 test -z "$ac_cxx_werror_flag" || 5618 test ! -s conftest.err 5619 } && test -s conftest.$ac_objext; then 5620 ac_cv_prog_cxx_g=yes 5621else 5622 $as_echo "$as_me: failed program was:" >&5 5623sed 's/^/| /' conftest.$ac_ext >&5 5624 5625 5626fi 5627 5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5629fi 5630 5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5632fi 5633 5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5635 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5636fi 5637{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5638$as_echo "$ac_cv_prog_cxx_g" >&6; } 5639if test "$ac_test_CXXFLAGS" = set; then 5640 CXXFLAGS=$ac_save_CXXFLAGS 5641elif test $ac_cv_prog_cxx_g = yes; then 5642 if test "$GXX" = yes; then 5643 CXXFLAGS="-g -O2" 5644 else 5645 CXXFLAGS="-g" 5646 fi 5647else 5648 if test "$GXX" = yes; then 5649 CXXFLAGS="-O2" 5650 else 5651 CXXFLAGS= 5652 fi 5653fi 5654ac_ext=cpp 5655ac_cpp='$CXXCPP $CPPFLAGS' 5656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5659 5660depcc="$CXX" am_compiler_list= 5661 5662{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5663$as_echo_n "checking dependency style of $depcc... " >&6; } 5664if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5665 $as_echo_n "(cached) " >&6 5666else 5667 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5668 # We make a subdir and do the tests there. Otherwise we can end up 5669 # making bogus files that we don't know about and never remove. For 5670 # instance it was reported that on HP-UX the gcc test will end up 5671 # making a dummy file named `D' -- because `-MD' means `put the output 5672 # in D'. 5673 mkdir conftest.dir 5674 # Copy depcomp to subdir because otherwise we won't find it if we're 5675 # using a relative directory. 5676 cp "$am_depcomp" conftest.dir 5677 cd conftest.dir 5678 # We will build objects and dependencies in a subdirectory because 5679 # it helps to detect inapplicable dependency modes. For instance 5680 # both Tru64's cc and ICC support -MD to output dependencies as a 5681 # side effect of compilation, but ICC will put the dependencies in 5682 # the current directory while Tru64 will put them in the object 5683 # directory. 5684 mkdir sub 5685 5686 am_cv_CXX_dependencies_compiler_type=none 5687 if test "$am_compiler_list" = ""; then 5688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5689 fi 5690 for depmode in $am_compiler_list; do 5691 # Setup a source with many dependencies, because some compilers 5692 # like to wrap large dependency lists on column 80 (with \), and 5693 # we should not choose a depcomp mode which is confused by this. 5694 # 5695 # We need to recreate these files for each test, as the compiler may 5696 # overwrite some of them when testing with obscure command lines. 5697 # This happens at least with the AIX C compiler. 5698 : > sub/conftest.c 5699 for i in 1 2 3 4 5 6; do 5700 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5701 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5702 # Solaris 8's {/usr,}/bin/sh. 5703 touch sub/conftst$i.h 5704 done 5705 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5706 5707 case $depmode in 5708 nosideeffect) 5709 # after this tag, mechanisms are not by side-effect, so they'll 5710 # only be used when explicitly requested 5711 if test "x$enable_dependency_tracking" = xyes; then 5712 continue 5713 else 5714 break 5715 fi 5716 ;; 5717 none) break ;; 5718 esac 5719 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5720 # mode. It turns out that the SunPro C++ compiler does not properly 5721 # handle `-M -o', and we need to detect this. 5722 if depmode=$depmode \ 5723 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5724 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5725 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5726 >/dev/null 2>conftest.err && 5727 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5728 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5729 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5730 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5731 # icc doesn't choke on unknown options, it will just issue warnings 5732 # or remarks (even with -Werror). So we grep stderr for any message 5733 # that says an option was ignored or not supported. 5734 # When given -MP, icc 7.0 and 7.1 complain thusly: 5735 # icc: Command line warning: ignoring option '-M'; no argument required 5736 # The diagnosis changed in icc 8.0: 5737 # icc: Command line remark: option '-MP' not supported 5738 if (grep 'ignoring option' conftest.err || 5739 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5740 am_cv_CXX_dependencies_compiler_type=$depmode 5741 break 5742 fi 5743 fi 5744 done 5745 5746 cd .. 5747 rm -rf conftest.dir 5748else 5749 am_cv_CXX_dependencies_compiler_type=none 5750fi 5751 5752fi 5753{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5754$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5755CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5756 5757 if 5758 test "x$enable_dependency_tracking" != xno \ 5759 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5760 am__fastdepCXX_TRUE= 5761 am__fastdepCXX_FALSE='#' 5762else 5763 am__fastdepCXX_TRUE='#' 5764 am__fastdepCXX_FALSE= 5765fi 5766 5767 5768 5769 5770if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5771 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5772 (test "X$CXX" != "Xg++"))) ; then 5773 ac_ext=cpp 5774ac_cpp='$CXXCPP $CPPFLAGS' 5775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5778{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5779$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5780if test -z "$CXXCPP"; then 5781 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5782 $as_echo_n "(cached) " >&6 5783else 5784 # Double quotes because CXXCPP needs to be expanded 5785 for CXXCPP in "$CXX -E" "/lib/cpp" 5786 do 5787 ac_preproc_ok=false 5788for ac_cxx_preproc_warn_flag in '' yes 5789do 5790 # Use a header file that comes with gcc, so configuring glibc 5791 # with a fresh cross-compiler works. 5792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5793 # <limits.h> exists even on freestanding compilers. 5794 # On the NeXT, cc -E runs the code through the compiler's parser, 5795 # not just through cpp. "Syntax error" is here to catch this case. 5796 cat >conftest.$ac_ext <<_ACEOF 5797/* confdefs.h. */ 5798_ACEOF 5799cat confdefs.h >>conftest.$ac_ext 5800cat >>conftest.$ac_ext <<_ACEOF 5801/* end confdefs.h. */ 5802#ifdef __STDC__ 5803# include <limits.h> 5804#else 5805# include <assert.h> 5806#endif 5807 Syntax error 5808_ACEOF 5809if { (ac_try="$ac_cpp conftest.$ac_ext" 5810case "(($ac_try" in 5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5812 *) ac_try_echo=$ac_try;; 5813esac 5814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5815$as_echo "$ac_try_echo") >&5 5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5817 ac_status=$? 5818 grep -v '^ *+' conftest.er1 >conftest.err 5819 rm -f conftest.er1 5820 cat conftest.err >&5 5821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5822 (exit $ac_status); } >/dev/null && { 5823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5824 test ! -s conftest.err 5825 }; then 5826 : 5827else 5828 $as_echo "$as_me: failed program was:" >&5 5829sed 's/^/| /' conftest.$ac_ext >&5 5830 5831 # Broken: fails on valid input. 5832continue 5833fi 5834 5835rm -f conftest.err conftest.$ac_ext 5836 5837 # OK, works on sane cases. Now check whether nonexistent headers 5838 # can be detected and how. 5839 cat >conftest.$ac_ext <<_ACEOF 5840/* confdefs.h. */ 5841_ACEOF 5842cat confdefs.h >>conftest.$ac_ext 5843cat >>conftest.$ac_ext <<_ACEOF 5844/* end confdefs.h. */ 5845#include <ac_nonexistent.h> 5846_ACEOF 5847if { (ac_try="$ac_cpp conftest.$ac_ext" 5848case "(($ac_try" in 5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5850 *) ac_try_echo=$ac_try;; 5851esac 5852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5853$as_echo "$ac_try_echo") >&5 5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5855 ac_status=$? 5856 grep -v '^ *+' conftest.er1 >conftest.err 5857 rm -f conftest.er1 5858 cat conftest.err >&5 5859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5860 (exit $ac_status); } >/dev/null && { 5861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5862 test ! -s conftest.err 5863 }; then 5864 # Broken: success on invalid input. 5865continue 5866else 5867 $as_echo "$as_me: failed program was:" >&5 5868sed 's/^/| /' conftest.$ac_ext >&5 5869 5870 # Passes both tests. 5871ac_preproc_ok=: 5872break 5873fi 5874 5875rm -f conftest.err conftest.$ac_ext 5876 5877done 5878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5879rm -f conftest.err conftest.$ac_ext 5880if $ac_preproc_ok; then 5881 break 5882fi 5883 5884 done 5885 ac_cv_prog_CXXCPP=$CXXCPP 5886 5887fi 5888 CXXCPP=$ac_cv_prog_CXXCPP 5889else 5890 ac_cv_prog_CXXCPP=$CXXCPP 5891fi 5892{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5893$as_echo "$CXXCPP" >&6; } 5894ac_preproc_ok=false 5895for ac_cxx_preproc_warn_flag in '' yes 5896do 5897 # Use a header file that comes with gcc, so configuring glibc 5898 # with a fresh cross-compiler works. 5899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5900 # <limits.h> exists even on freestanding compilers. 5901 # On the NeXT, cc -E runs the code through the compiler's parser, 5902 # not just through cpp. "Syntax error" is here to catch this case. 5903 cat >conftest.$ac_ext <<_ACEOF 5904/* confdefs.h. */ 5905_ACEOF 5906cat confdefs.h >>conftest.$ac_ext 5907cat >>conftest.$ac_ext <<_ACEOF 5908/* end confdefs.h. */ 5909#ifdef __STDC__ 5910# include <limits.h> 5911#else 5912# include <assert.h> 5913#endif 5914 Syntax error 5915_ACEOF 5916if { (ac_try="$ac_cpp conftest.$ac_ext" 5917case "(($ac_try" in 5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5919 *) ac_try_echo=$ac_try;; 5920esac 5921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5922$as_echo "$ac_try_echo") >&5 5923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5924 ac_status=$? 5925 grep -v '^ *+' conftest.er1 >conftest.err 5926 rm -f conftest.er1 5927 cat conftest.err >&5 5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5929 (exit $ac_status); } >/dev/null && { 5930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5931 test ! -s conftest.err 5932 }; then 5933 : 5934else 5935 $as_echo "$as_me: failed program was:" >&5 5936sed 's/^/| /' conftest.$ac_ext >&5 5937 5938 # Broken: fails on valid input. 5939continue 5940fi 5941 5942rm -f conftest.err conftest.$ac_ext 5943 5944 # OK, works on sane cases. Now check whether nonexistent headers 5945 # can be detected and how. 5946 cat >conftest.$ac_ext <<_ACEOF 5947/* confdefs.h. */ 5948_ACEOF 5949cat confdefs.h >>conftest.$ac_ext 5950cat >>conftest.$ac_ext <<_ACEOF 5951/* end confdefs.h. */ 5952#include <ac_nonexistent.h> 5953_ACEOF 5954if { (ac_try="$ac_cpp conftest.$ac_ext" 5955case "(($ac_try" in 5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5957 *) ac_try_echo=$ac_try;; 5958esac 5959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5960$as_echo "$ac_try_echo") >&5 5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5962 ac_status=$? 5963 grep -v '^ *+' conftest.er1 >conftest.err 5964 rm -f conftest.er1 5965 cat conftest.err >&5 5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); } >/dev/null && { 5968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5969 test ! -s conftest.err 5970 }; then 5971 # Broken: success on invalid input. 5972continue 5973else 5974 $as_echo "$as_me: failed program was:" >&5 5975sed 's/^/| /' conftest.$ac_ext >&5 5976 5977 # Passes both tests. 5978ac_preproc_ok=: 5979break 5980fi 5981 5982rm -f conftest.err conftest.$ac_ext 5983 5984done 5985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5986rm -f conftest.err conftest.$ac_ext 5987if $ac_preproc_ok; then 5988 : 5989else 5990 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5992{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5993See \`config.log' for more details." >&5 5994$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5995See \`config.log' for more details." >&2;} 5996 { (exit 1); exit 1; }; }; } 5997fi 5998 5999ac_ext=cpp 6000ac_cpp='$CXXCPP $CPPFLAGS' 6001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6004 6005fi 6006 6007 6008ac_ext=f 6009ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6010ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6011ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6012if test -n "$ac_tool_prefix"; then 6013 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6014 do 6015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6016set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6017{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6018$as_echo_n "checking for $ac_word... " >&6; } 6019if test "${ac_cv_prog_F77+set}" = set; then 6020 $as_echo_n "(cached) " >&6 6021else 6022 if test -n "$F77"; then 6023 ac_cv_prog_F77="$F77" # Let the user override the test. 6024else 6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026for as_dir in $PATH 6027do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6032 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036done 6037done 6038IFS=$as_save_IFS 6039 6040fi 6041fi 6042F77=$ac_cv_prog_F77 6043if test -n "$F77"; then 6044 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6045$as_echo "$F77" >&6; } 6046else 6047 { $as_echo "$as_me:$LINENO: result: no" >&5 6048$as_echo "no" >&6; } 6049fi 6050 6051 6052 test -n "$F77" && break 6053 done 6054fi 6055if test -z "$F77"; then 6056 ac_ct_F77=$F77 6057 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6058do 6059 # Extract the first word of "$ac_prog", so it can be a program name with args. 6060set dummy $ac_prog; ac_word=$2 6061{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6062$as_echo_n "checking for $ac_word... " >&6; } 6063if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6064 $as_echo_n "(cached) " >&6 6065else 6066 if test -n "$ac_ct_F77"; then 6067 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6068else 6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6070for as_dir in $PATH 6071do 6072 IFS=$as_save_IFS 6073 test -z "$as_dir" && as_dir=. 6074 for ac_exec_ext in '' $ac_executable_extensions; do 6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6076 ac_cv_prog_ac_ct_F77="$ac_prog" 6077 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6078 break 2 6079 fi 6080done 6081done 6082IFS=$as_save_IFS 6083 6084fi 6085fi 6086ac_ct_F77=$ac_cv_prog_ac_ct_F77 6087if test -n "$ac_ct_F77"; then 6088 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6089$as_echo "$ac_ct_F77" >&6; } 6090else 6091 { $as_echo "$as_me:$LINENO: result: no" >&5 6092$as_echo "no" >&6; } 6093fi 6094 6095 6096 test -n "$ac_ct_F77" && break 6097done 6098 6099 if test "x$ac_ct_F77" = x; then 6100 F77="" 6101 else 6102 case $cross_compiling:$ac_tool_warned in 6103yes:) 6104{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6106ac_tool_warned=yes ;; 6107esac 6108 F77=$ac_ct_F77 6109 fi 6110fi 6111 6112 6113# Provide some information about the compiler. 6114$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6115set X $ac_compile 6116ac_compiler=$2 6117{ (ac_try="$ac_compiler --version >&5" 6118case "(($ac_try" in 6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6120 *) ac_try_echo=$ac_try;; 6121esac 6122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6123$as_echo "$ac_try_echo") >&5 6124 (eval "$ac_compiler --version >&5") 2>&5 6125 ac_status=$? 6126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6127 (exit $ac_status); } 6128{ (ac_try="$ac_compiler -v >&5" 6129case "(($ac_try" in 6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6131 *) ac_try_echo=$ac_try;; 6132esac 6133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6134$as_echo "$ac_try_echo") >&5 6135 (eval "$ac_compiler -v >&5") 2>&5 6136 ac_status=$? 6137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6138 (exit $ac_status); } 6139{ (ac_try="$ac_compiler -V >&5" 6140case "(($ac_try" in 6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6142 *) ac_try_echo=$ac_try;; 6143esac 6144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6145$as_echo "$ac_try_echo") >&5 6146 (eval "$ac_compiler -V >&5") 2>&5 6147 ac_status=$? 6148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6149 (exit $ac_status); } 6150rm -f a.out 6151 6152# If we don't use `.F' as extension, the preprocessor is not run on the 6153# input file. (Note that this only needs to work for GNU compilers.) 6154ac_save_ext=$ac_ext 6155ac_ext=F 6156{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6157$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6158if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6159 $as_echo_n "(cached) " >&6 6160else 6161 cat >conftest.$ac_ext <<_ACEOF 6162 program main 6163#ifndef __GNUC__ 6164 choke me 6165#endif 6166 6167 end 6168_ACEOF 6169rm -f conftest.$ac_objext 6170if { (ac_try="$ac_compile" 6171case "(($ac_try" in 6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6173 *) ac_try_echo=$ac_try;; 6174esac 6175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6176$as_echo "$ac_try_echo") >&5 6177 (eval "$ac_compile") 2>conftest.er1 6178 ac_status=$? 6179 grep -v '^ *+' conftest.er1 >conftest.err 6180 rm -f conftest.er1 6181 cat conftest.err >&5 6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); } && { 6184 test -z "$ac_f77_werror_flag" || 6185 test ! -s conftest.err 6186 } && test -s conftest.$ac_objext; then 6187 ac_compiler_gnu=yes 6188else 6189 $as_echo "$as_me: failed program was:" >&5 6190sed 's/^/| /' conftest.$ac_ext >&5 6191 6192 ac_compiler_gnu=no 6193fi 6194 6195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6196ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6197 6198fi 6199{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6200$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6201ac_ext=$ac_save_ext 6202ac_test_FFLAGS=${FFLAGS+set} 6203ac_save_FFLAGS=$FFLAGS 6204FFLAGS= 6205{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6206$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6207if test "${ac_cv_prog_f77_g+set}" = set; then 6208 $as_echo_n "(cached) " >&6 6209else 6210 FFLAGS=-g 6211cat >conftest.$ac_ext <<_ACEOF 6212 program main 6213 6214 end 6215_ACEOF 6216rm -f conftest.$ac_objext 6217if { (ac_try="$ac_compile" 6218case "(($ac_try" in 6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6220 *) ac_try_echo=$ac_try;; 6221esac 6222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6223$as_echo "$ac_try_echo") >&5 6224 (eval "$ac_compile") 2>conftest.er1 6225 ac_status=$? 6226 grep -v '^ *+' conftest.er1 >conftest.err 6227 rm -f conftest.er1 6228 cat conftest.err >&5 6229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6230 (exit $ac_status); } && { 6231 test -z "$ac_f77_werror_flag" || 6232 test ! -s conftest.err 6233 } && test -s conftest.$ac_objext; then 6234 ac_cv_prog_f77_g=yes 6235else 6236 $as_echo "$as_me: failed program was:" >&5 6237sed 's/^/| /' conftest.$ac_ext >&5 6238 6239 ac_cv_prog_f77_g=no 6240fi 6241 6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6243 6244fi 6245{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6246$as_echo "$ac_cv_prog_f77_g" >&6; } 6247if test "$ac_test_FFLAGS" = set; then 6248 FFLAGS=$ac_save_FFLAGS 6249elif test $ac_cv_prog_f77_g = yes; then 6250 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6251 FFLAGS="-g -O2" 6252 else 6253 FFLAGS="-g" 6254 fi 6255else 6256 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6257 FFLAGS="-O2" 6258 else 6259 FFLAGS= 6260 fi 6261fi 6262 6263if test $ac_compiler_gnu = yes; then 6264 G77=yes 6265else 6266 G77= 6267fi 6268ac_ext=c 6269ac_cpp='$CPP $CPPFLAGS' 6270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6272ac_compiler_gnu=$ac_cv_c_compiler_gnu 6273 6274 6275 6276# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6277# find the maximum length of command line arguments 6278{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6279$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6280if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6281 $as_echo_n "(cached) " >&6 6282else 6283 i=0 6284 teststring="ABCD" 6285 6286 case $build_os in 6287 msdosdjgpp*) 6288 # On DJGPP, this test can blow up pretty badly due to problems in libc 6289 # (any single argument exceeding 2000 bytes causes a buffer overrun 6290 # during glob expansion). Even if it were fixed, the result of this 6291 # check would be larger than it should be. 6292 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6293 ;; 6294 6295 gnu*) 6296 # Under GNU Hurd, this test is not required because there is 6297 # no limit to the length of command line arguments. 6298 # Libtool will interpret -1 as no limit whatsoever 6299 lt_cv_sys_max_cmd_len=-1; 6300 ;; 6301 6302 cygwin* | mingw*) 6303 # On Win9x/ME, this test blows up -- it succeeds, but takes 6304 # about 5 minutes as the teststring grows exponentially. 6305 # Worse, since 9x/ME are not pre-emptively multitasking, 6306 # you end up with a "frozen" computer, even though with patience 6307 # the test eventually succeeds (with a max line length of 256k). 6308 # Instead, let's just punt: use the minimum linelength reported by 6309 # all of the supported platforms: 8192 (on NT/2K/XP). 6310 lt_cv_sys_max_cmd_len=8192; 6311 ;; 6312 6313 amigaos*) 6314 # On AmigaOS with pdksh, this test takes hours, literally. 6315 # So we just punt and use a minimum line length of 8192. 6316 lt_cv_sys_max_cmd_len=8192; 6317 ;; 6318 6319 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6320 # This has been around since 386BSD, at least. Likely further. 6321 if test -x /sbin/sysctl; then 6322 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6323 elif test -x /usr/sbin/sysctl; then 6324 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6325 else 6326 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6327 fi 6328 # And add a safety zone 6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6331 ;; 6332 6333 interix*) 6334 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6335 lt_cv_sys_max_cmd_len=196608 6336 ;; 6337 6338 osf*) 6339 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6340 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6341 # nice to cause kernel panics so lets avoid the loop below. 6342 # First set a reasonable default. 6343 lt_cv_sys_max_cmd_len=16384 6344 # 6345 if test -x /sbin/sysconfig; then 6346 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6347 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6348 esac 6349 fi 6350 ;; 6351 sco3.2v5*) 6352 lt_cv_sys_max_cmd_len=102400 6353 ;; 6354 sysv5* | sco5v6* | sysv4.2uw2*) 6355 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6356 if test -n "$kargmax"; then 6357 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6358 else 6359 lt_cv_sys_max_cmd_len=32768 6360 fi 6361 ;; 6362 *) 6363 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6364 if test -n "$lt_cv_sys_max_cmd_len"; then 6365 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6367 else 6368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6369 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6370 = "XX$teststring") >/dev/null 2>&1 && 6371 new_result=`expr "X$teststring" : ".*" 2>&1` && 6372 lt_cv_sys_max_cmd_len=$new_result && 6373 test $i != 17 # 1/2 MB should be enough 6374 do 6375 i=`expr $i + 1` 6376 teststring=$teststring$teststring 6377 done 6378 teststring= 6379 # Add a significant safety factor because C++ compilers can tack on massive 6380 # amounts of additional arguments before passing them to the linker. 6381 # It appears as though 1/2 is a usable value. 6382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6383 fi 6384 ;; 6385 esac 6386 6387fi 6388 6389if test -n $lt_cv_sys_max_cmd_len ; then 6390 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6391$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6392else 6393 { $as_echo "$as_me:$LINENO: result: none" >&5 6394$as_echo "none" >&6; } 6395fi 6396 6397 6398 6399 6400 6401# Check for command to grab the raw symbol name followed by C symbol from nm. 6402{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6403$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6404if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6405 $as_echo_n "(cached) " >&6 6406else 6407 6408# These are sane defaults that work on at least a few old systems. 6409# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6410 6411# Character class describing NM global symbol codes. 6412symcode='[BCDEGRST]' 6413 6414# Regexp to match symbols that can be accessed directly from C. 6415sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6416 6417# Transform an extracted symbol line into a proper C declaration 6418lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6419 6420# Transform an extracted symbol line into symbol name and symbol address 6421lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6422 6423# Define system-specific variables. 6424case $host_os in 6425aix*) 6426 symcode='[BCDT]' 6427 ;; 6428cygwin* | mingw* | pw32*) 6429 symcode='[ABCDGISTW]' 6430 ;; 6431hpux*) # Its linker distinguishes data from code symbols 6432 if test "$host_cpu" = ia64; then 6433 symcode='[ABCDEGRST]' 6434 fi 6435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6436 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6437 ;; 6438linux* | k*bsd*-gnu) 6439 if test "$host_cpu" = ia64; then 6440 symcode='[ABCDGIRSTW]' 6441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6442 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6443 fi 6444 ;; 6445irix* | nonstopux*) 6446 symcode='[BCDEGRST]' 6447 ;; 6448osf*) 6449 symcode='[BCDEGQRST]' 6450 ;; 6451solaris*) 6452 symcode='[BDRT]' 6453 ;; 6454sco3.2v5*) 6455 symcode='[DT]' 6456 ;; 6457sysv4.2uw2*) 6458 symcode='[DT]' 6459 ;; 6460sysv5* | sco5v6* | unixware* | OpenUNIX*) 6461 symcode='[ABDT]' 6462 ;; 6463sysv4) 6464 symcode='[DFNSTU]' 6465 ;; 6466esac 6467 6468# Handle CRLF in mingw tool chain 6469opt_cr= 6470case $build_os in 6471mingw*) 6472 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6473 ;; 6474esac 6475 6476# If we're using GNU nm, then use its standard symbol codes. 6477case `$NM -V 2>&1` in 6478*GNU* | *'with BFD'*) 6479 symcode='[ABCDGIRSTW]' ;; 6480esac 6481 6482# Try without a prefix undercore, then with it. 6483for ac_symprfx in "" "_"; do 6484 6485 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6486 symxfrm="\\1 $ac_symprfx\\2 \\2" 6487 6488 # Write the raw and C identifiers. 6489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6490 6491 # Check to see that the pipe works correctly. 6492 pipe_works=no 6493 6494 rm -f conftest* 6495 cat > conftest.$ac_ext <<EOF 6496#ifdef __cplusplus 6497extern "C" { 6498#endif 6499char nm_test_var; 6500void nm_test_func(){} 6501#ifdef __cplusplus 6502} 6503#endif 6504int main(){nm_test_var='a';nm_test_func();return(0);} 6505EOF 6506 6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6508 (eval $ac_compile) 2>&5 6509 ac_status=$? 6510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6511 (exit $ac_status); }; then 6512 # Now try to grab the symbols. 6513 nlist=conftest.nm 6514 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6515 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6516 ac_status=$? 6517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6518 (exit $ac_status); } && test -s "$nlist"; then 6519 # Try sorting and uniquifying the output. 6520 if sort "$nlist" | uniq > "$nlist"T; then 6521 mv -f "$nlist"T "$nlist" 6522 else 6523 rm -f "$nlist"T 6524 fi 6525 6526 # Make sure that we snagged all the symbols we need. 6527 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6528 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6529 cat <<EOF > conftest.$ac_ext 6530#ifdef __cplusplus 6531extern "C" { 6532#endif 6533 6534EOF 6535 # Now generate the symbol file. 6536 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6537 6538 cat <<EOF >> conftest.$ac_ext 6539#if defined (__STDC__) && __STDC__ 6540# define lt_ptr_t void * 6541#else 6542# define lt_ptr_t char * 6543# define const 6544#endif 6545 6546/* The mapping between symbol names and symbols. */ 6547const struct { 6548 const char *name; 6549 lt_ptr_t address; 6550} 6551lt_preloaded_symbols[] = 6552{ 6553EOF 6554 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6555 cat <<\EOF >> conftest.$ac_ext 6556 {0, (lt_ptr_t) 0} 6557}; 6558 6559#ifdef __cplusplus 6560} 6561#endif 6562EOF 6563 # Now try linking the two files. 6564 mv conftest.$ac_objext conftstm.$ac_objext 6565 lt_save_LIBS="$LIBS" 6566 lt_save_CFLAGS="$CFLAGS" 6567 LIBS="conftstm.$ac_objext" 6568 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6570 (eval $ac_link) 2>&5 6571 ac_status=$? 6572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6573 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6574 pipe_works=yes 6575 fi 6576 LIBS="$lt_save_LIBS" 6577 CFLAGS="$lt_save_CFLAGS" 6578 else 6579 echo "cannot find nm_test_func in $nlist" >&5 6580 fi 6581 else 6582 echo "cannot find nm_test_var in $nlist" >&5 6583 fi 6584 else 6585 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6586 fi 6587 else 6588 echo "$progname: failed program was:" >&5 6589 cat conftest.$ac_ext >&5 6590 fi 6591 rm -rf conftest* conftst* 6592 6593 # Do not use the global_symbol_pipe unless it works. 6594 if test "$pipe_works" = yes; then 6595 break 6596 else 6597 lt_cv_sys_global_symbol_pipe= 6598 fi 6599done 6600 6601fi 6602 6603if test -z "$lt_cv_sys_global_symbol_pipe"; then 6604 lt_cv_sys_global_symbol_to_cdecl= 6605fi 6606if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6607 { $as_echo "$as_me:$LINENO: result: failed" >&5 6608$as_echo "failed" >&6; } 6609else 6610 { $as_echo "$as_me:$LINENO: result: ok" >&5 6611$as_echo "ok" >&6; } 6612fi 6613 6614{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6615$as_echo_n "checking for objdir... " >&6; } 6616if test "${lt_cv_objdir+set}" = set; then 6617 $as_echo_n "(cached) " >&6 6618else 6619 rm -f .libs 2>/dev/null 6620mkdir .libs 2>/dev/null 6621if test -d .libs; then 6622 lt_cv_objdir=.libs 6623else 6624 # MS-DOS does not allow filenames that begin with a dot. 6625 lt_cv_objdir=_libs 6626fi 6627rmdir .libs 2>/dev/null 6628fi 6629{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6630$as_echo "$lt_cv_objdir" >&6; } 6631objdir=$lt_cv_objdir 6632 6633 6634 6635 6636 6637case $host_os in 6638aix3*) 6639 # AIX sometimes has problems with the GCC collect2 program. For some 6640 # reason, if we set the COLLECT_NAMES environment variable, the problems 6641 # vanish in a puff of smoke. 6642 if test "X${COLLECT_NAMES+set}" != Xset; then 6643 COLLECT_NAMES= 6644 export COLLECT_NAMES 6645 fi 6646 ;; 6647esac 6648 6649# Sed substitution that helps us do robust quoting. It backslashifies 6650# metacharacters that are still active within double-quoted strings. 6651Xsed='sed -e 1s/^X//' 6652sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6653 6654# Same as above, but do not quote variable references. 6655double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6656 6657# Sed substitution to delay expansion of an escaped shell variable in a 6658# double_quote_subst'ed string. 6659delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6660 6661# Sed substitution to avoid accidental globbing in evaled expressions 6662no_glob_subst='s/\*/\\\*/g' 6663 6664# Constants: 6665rm="rm -f" 6666 6667# Global variables: 6668default_ofile=libtool 6669can_build_shared=yes 6670 6671# All known linkers require a `.a' archive for static linking (except MSVC, 6672# which needs '.lib'). 6673libext=a 6674ltmain="$ac_aux_dir/ltmain.sh" 6675ofile="$default_ofile" 6676with_gnu_ld="$lt_cv_prog_gnu_ld" 6677 6678if test -n "$ac_tool_prefix"; then 6679 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6680set dummy ${ac_tool_prefix}ar; ac_word=$2 6681{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6682$as_echo_n "checking for $ac_word... " >&6; } 6683if test "${ac_cv_prog_AR+set}" = set; then 6684 $as_echo_n "(cached) " >&6 6685else 6686 if test -n "$AR"; then 6687 ac_cv_prog_AR="$AR" # Let the user override the test. 6688else 6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690for as_dir in $PATH 6691do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6696 ac_cv_prog_AR="${ac_tool_prefix}ar" 6697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700done 6701done 6702IFS=$as_save_IFS 6703 6704fi 6705fi 6706AR=$ac_cv_prog_AR 6707if test -n "$AR"; then 6708 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6709$as_echo "$AR" >&6; } 6710else 6711 { $as_echo "$as_me:$LINENO: result: no" >&5 6712$as_echo "no" >&6; } 6713fi 6714 6715 6716fi 6717if test -z "$ac_cv_prog_AR"; then 6718 ac_ct_AR=$AR 6719 # Extract the first word of "ar", so it can be a program name with args. 6720set dummy ar; ac_word=$2 6721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6722$as_echo_n "checking for $ac_word... " >&6; } 6723if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6724 $as_echo_n "(cached) " >&6 6725else 6726 if test -n "$ac_ct_AR"; then 6727 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6728else 6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6730for as_dir in $PATH 6731do 6732 IFS=$as_save_IFS 6733 test -z "$as_dir" && as_dir=. 6734 for ac_exec_ext in '' $ac_executable_extensions; do 6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6736 ac_cv_prog_ac_ct_AR="ar" 6737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6738 break 2 6739 fi 6740done 6741done 6742IFS=$as_save_IFS 6743 6744fi 6745fi 6746ac_ct_AR=$ac_cv_prog_ac_ct_AR 6747if test -n "$ac_ct_AR"; then 6748 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6749$as_echo "$ac_ct_AR" >&6; } 6750else 6751 { $as_echo "$as_me:$LINENO: result: no" >&5 6752$as_echo "no" >&6; } 6753fi 6754 6755 if test "x$ac_ct_AR" = x; then 6756 AR="false" 6757 else 6758 case $cross_compiling:$ac_tool_warned in 6759yes:) 6760{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6762ac_tool_warned=yes ;; 6763esac 6764 AR=$ac_ct_AR 6765 fi 6766else 6767 AR="$ac_cv_prog_AR" 6768fi 6769 6770if test -n "$ac_tool_prefix"; then 6771 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6772set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6773{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6774$as_echo_n "checking for $ac_word... " >&6; } 6775if test "${ac_cv_prog_RANLIB+set}" = set; then 6776 $as_echo_n "(cached) " >&6 6777else 6778 if test -n "$RANLIB"; then 6779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6780else 6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782for as_dir in $PATH 6783do 6784 IFS=$as_save_IFS 6785 test -z "$as_dir" && as_dir=. 6786 for ac_exec_ext in '' $ac_executable_extensions; do 6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6788 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6789 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6790 break 2 6791 fi 6792done 6793done 6794IFS=$as_save_IFS 6795 6796fi 6797fi 6798RANLIB=$ac_cv_prog_RANLIB 6799if test -n "$RANLIB"; then 6800 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6801$as_echo "$RANLIB" >&6; } 6802else 6803 { $as_echo "$as_me:$LINENO: result: no" >&5 6804$as_echo "no" >&6; } 6805fi 6806 6807 6808fi 6809if test -z "$ac_cv_prog_RANLIB"; then 6810 ac_ct_RANLIB=$RANLIB 6811 # Extract the first word of "ranlib", so it can be a program name with args. 6812set dummy ranlib; ac_word=$2 6813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6814$as_echo_n "checking for $ac_word... " >&6; } 6815if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6816 $as_echo_n "(cached) " >&6 6817else 6818 if test -n "$ac_ct_RANLIB"; then 6819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6820else 6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822for as_dir in $PATH 6823do 6824 IFS=$as_save_IFS 6825 test -z "$as_dir" && as_dir=. 6826 for ac_exec_ext in '' $ac_executable_extensions; do 6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6828 ac_cv_prog_ac_ct_RANLIB="ranlib" 6829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6830 break 2 6831 fi 6832done 6833done 6834IFS=$as_save_IFS 6835 6836fi 6837fi 6838ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6839if test -n "$ac_ct_RANLIB"; then 6840 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6841$as_echo "$ac_ct_RANLIB" >&6; } 6842else 6843 { $as_echo "$as_me:$LINENO: result: no" >&5 6844$as_echo "no" >&6; } 6845fi 6846 6847 if test "x$ac_ct_RANLIB" = x; then 6848 RANLIB=":" 6849 else 6850 case $cross_compiling:$ac_tool_warned in 6851yes:) 6852{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6854ac_tool_warned=yes ;; 6855esac 6856 RANLIB=$ac_ct_RANLIB 6857 fi 6858else 6859 RANLIB="$ac_cv_prog_RANLIB" 6860fi 6861 6862if test -n "$ac_tool_prefix"; then 6863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6864set dummy ${ac_tool_prefix}strip; ac_word=$2 6865{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6866$as_echo_n "checking for $ac_word... " >&6; } 6867if test "${ac_cv_prog_STRIP+set}" = set; then 6868 $as_echo_n "(cached) " >&6 6869else 6870 if test -n "$STRIP"; then 6871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6872else 6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874for as_dir in $PATH 6875do 6876 IFS=$as_save_IFS 6877 test -z "$as_dir" && as_dir=. 6878 for ac_exec_ext in '' $ac_executable_extensions; do 6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6880 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6881 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6882 break 2 6883 fi 6884done 6885done 6886IFS=$as_save_IFS 6887 6888fi 6889fi 6890STRIP=$ac_cv_prog_STRIP 6891if test -n "$STRIP"; then 6892 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6893$as_echo "$STRIP" >&6; } 6894else 6895 { $as_echo "$as_me:$LINENO: result: no" >&5 6896$as_echo "no" >&6; } 6897fi 6898 6899 6900fi 6901if test -z "$ac_cv_prog_STRIP"; then 6902 ac_ct_STRIP=$STRIP 6903 # Extract the first word of "strip", so it can be a program name with args. 6904set dummy strip; ac_word=$2 6905{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6906$as_echo_n "checking for $ac_word... " >&6; } 6907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6908 $as_echo_n "(cached) " >&6 6909else 6910 if test -n "$ac_ct_STRIP"; then 6911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6912else 6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6914for as_dir in $PATH 6915do 6916 IFS=$as_save_IFS 6917 test -z "$as_dir" && as_dir=. 6918 for ac_exec_ext in '' $ac_executable_extensions; do 6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6920 ac_cv_prog_ac_ct_STRIP="strip" 6921 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6922 break 2 6923 fi 6924done 6925done 6926IFS=$as_save_IFS 6927 6928fi 6929fi 6930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6931if test -n "$ac_ct_STRIP"; then 6932 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6933$as_echo "$ac_ct_STRIP" >&6; } 6934else 6935 { $as_echo "$as_me:$LINENO: result: no" >&5 6936$as_echo "no" >&6; } 6937fi 6938 6939 if test "x$ac_ct_STRIP" = x; then 6940 STRIP=":" 6941 else 6942 case $cross_compiling:$ac_tool_warned in 6943yes:) 6944{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6946ac_tool_warned=yes ;; 6947esac 6948 STRIP=$ac_ct_STRIP 6949 fi 6950else 6951 STRIP="$ac_cv_prog_STRIP" 6952fi 6953 6954 6955old_CC="$CC" 6956old_CFLAGS="$CFLAGS" 6957 6958# Set sane defaults for various variables 6959test -z "$AR" && AR=ar 6960test -z "$AR_FLAGS" && AR_FLAGS=cru 6961test -z "$AS" && AS=as 6962test -z "$CC" && CC=cc 6963test -z "$LTCC" && LTCC=$CC 6964test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6965test -z "$DLLTOOL" && DLLTOOL=dlltool 6966test -z "$LD" && LD=ld 6967test -z "$LN_S" && LN_S="ln -s" 6968test -z "$MAGIC_CMD" && MAGIC_CMD=file 6969test -z "$NM" && NM=nm 6970test -z "$SED" && SED=sed 6971test -z "$OBJDUMP" && OBJDUMP=objdump 6972test -z "$RANLIB" && RANLIB=: 6973test -z "$STRIP" && STRIP=: 6974test -z "$ac_objext" && ac_objext=o 6975 6976# Determine commands to create old-style static archives. 6977old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6978old_postinstall_cmds='chmod 644 $oldlib' 6979old_postuninstall_cmds= 6980 6981if test -n "$RANLIB"; then 6982 case $host_os in 6983 openbsd*) 6984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6985 ;; 6986 *) 6987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6988 ;; 6989 esac 6990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6991fi 6992 6993for cc_temp in $compiler""; do 6994 case $cc_temp in 6995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6997 \-*) ;; 6998 *) break;; 6999 esac 7000done 7001cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7002 7003 7004# Only perform the check for file, if the check method requires it 7005case $deplibs_check_method in 7006file_magic*) 7007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7008 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7009$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7010if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7011 $as_echo_n "(cached) " >&6 7012else 7013 case $MAGIC_CMD in 7014[\\/*] | ?:[\\/]*) 7015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7016 ;; 7017*) 7018 lt_save_MAGIC_CMD="$MAGIC_CMD" 7019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7021 for ac_dir in $ac_dummy; do 7022 IFS="$lt_save_ifs" 7023 test -z "$ac_dir" && ac_dir=. 7024 if test -f $ac_dir/${ac_tool_prefix}file; then 7025 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7026 if test -n "$file_magic_test_file"; then 7027 case $deplibs_check_method in 7028 "file_magic "*) 7029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7030 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7032 $EGREP "$file_magic_regex" > /dev/null; then 7033 : 7034 else 7035 cat <<EOF 1>&2 7036 7037*** Warning: the command libtool uses to detect shared libraries, 7038*** $file_magic_cmd, produces output that libtool cannot recognize. 7039*** The result is that libtool may fail to recognize shared libraries 7040*** as such. This will affect the creation of libtool libraries that 7041*** depend on shared libraries, but programs linked with such libtool 7042*** libraries will work regardless of this problem. Nevertheless, you 7043*** may want to report the problem to your system manager and/or to 7044*** bug-libtool@gnu.org 7045 7046EOF 7047 fi ;; 7048 esac 7049 fi 7050 break 7051 fi 7052 done 7053 IFS="$lt_save_ifs" 7054 MAGIC_CMD="$lt_save_MAGIC_CMD" 7055 ;; 7056esac 7057fi 7058 7059MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7060if test -n "$MAGIC_CMD"; then 7061 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7062$as_echo "$MAGIC_CMD" >&6; } 7063else 7064 { $as_echo "$as_me:$LINENO: result: no" >&5 7065$as_echo "no" >&6; } 7066fi 7067 7068if test -z "$lt_cv_path_MAGIC_CMD"; then 7069 if test -n "$ac_tool_prefix"; then 7070 { $as_echo "$as_me:$LINENO: checking for file" >&5 7071$as_echo_n "checking for file... " >&6; } 7072if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7073 $as_echo_n "(cached) " >&6 7074else 7075 case $MAGIC_CMD in 7076[\\/*] | ?:[\\/]*) 7077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7078 ;; 7079*) 7080 lt_save_MAGIC_CMD="$MAGIC_CMD" 7081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7083 for ac_dir in $ac_dummy; do 7084 IFS="$lt_save_ifs" 7085 test -z "$ac_dir" && ac_dir=. 7086 if test -f $ac_dir/file; then 7087 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7088 if test -n "$file_magic_test_file"; then 7089 case $deplibs_check_method in 7090 "file_magic "*) 7091 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7094 $EGREP "$file_magic_regex" > /dev/null; then 7095 : 7096 else 7097 cat <<EOF 1>&2 7098 7099*** Warning: the command libtool uses to detect shared libraries, 7100*** $file_magic_cmd, produces output that libtool cannot recognize. 7101*** The result is that libtool may fail to recognize shared libraries 7102*** as such. This will affect the creation of libtool libraries that 7103*** depend on shared libraries, but programs linked with such libtool 7104*** libraries will work regardless of this problem. Nevertheless, you 7105*** may want to report the problem to your system manager and/or to 7106*** bug-libtool@gnu.org 7107 7108EOF 7109 fi ;; 7110 esac 7111 fi 7112 break 7113 fi 7114 done 7115 IFS="$lt_save_ifs" 7116 MAGIC_CMD="$lt_save_MAGIC_CMD" 7117 ;; 7118esac 7119fi 7120 7121MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7122if test -n "$MAGIC_CMD"; then 7123 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7124$as_echo "$MAGIC_CMD" >&6; } 7125else 7126 { $as_echo "$as_me:$LINENO: result: no" >&5 7127$as_echo "no" >&6; } 7128fi 7129 7130 else 7131 MAGIC_CMD=: 7132 fi 7133fi 7134 7135 fi 7136 ;; 7137esac 7138 7139 7140 case $host_os in 7141 rhapsody* | darwin*) 7142 if test -n "$ac_tool_prefix"; then 7143 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7144set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7146$as_echo_n "checking for $ac_word... " >&6; } 7147if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7148 $as_echo_n "(cached) " >&6 7149else 7150 if test -n "$DSYMUTIL"; then 7151 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7152else 7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7154for as_dir in $PATH 7155do 7156 IFS=$as_save_IFS 7157 test -z "$as_dir" && as_dir=. 7158 for ac_exec_ext in '' $ac_executable_extensions; do 7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7160 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7162 break 2 7163 fi 7164done 7165done 7166IFS=$as_save_IFS 7167 7168fi 7169fi 7170DSYMUTIL=$ac_cv_prog_DSYMUTIL 7171if test -n "$DSYMUTIL"; then 7172 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7173$as_echo "$DSYMUTIL" >&6; } 7174else 7175 { $as_echo "$as_me:$LINENO: result: no" >&5 7176$as_echo "no" >&6; } 7177fi 7178 7179 7180fi 7181if test -z "$ac_cv_prog_DSYMUTIL"; then 7182 ac_ct_DSYMUTIL=$DSYMUTIL 7183 # Extract the first word of "dsymutil", so it can be a program name with args. 7184set dummy dsymutil; ac_word=$2 7185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7186$as_echo_n "checking for $ac_word... " >&6; } 7187if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7188 $as_echo_n "(cached) " >&6 7189else 7190 if test -n "$ac_ct_DSYMUTIL"; then 7191 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7192else 7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7194for as_dir in $PATH 7195do 7196 IFS=$as_save_IFS 7197 test -z "$as_dir" && as_dir=. 7198 for ac_exec_ext in '' $ac_executable_extensions; do 7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7200 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7202 break 2 7203 fi 7204done 7205done 7206IFS=$as_save_IFS 7207 7208fi 7209fi 7210ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7211if test -n "$ac_ct_DSYMUTIL"; then 7212 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7213$as_echo "$ac_ct_DSYMUTIL" >&6; } 7214else 7215 { $as_echo "$as_me:$LINENO: result: no" >&5 7216$as_echo "no" >&6; } 7217fi 7218 7219 if test "x$ac_ct_DSYMUTIL" = x; then 7220 DSYMUTIL=":" 7221 else 7222 case $cross_compiling:$ac_tool_warned in 7223yes:) 7224{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7226ac_tool_warned=yes ;; 7227esac 7228 DSYMUTIL=$ac_ct_DSYMUTIL 7229 fi 7230else 7231 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7232fi 7233 7234 if test -n "$ac_tool_prefix"; then 7235 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7236set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7238$as_echo_n "checking for $ac_word... " >&6; } 7239if test "${ac_cv_prog_NMEDIT+set}" = set; then 7240 $as_echo_n "(cached) " >&6 7241else 7242 if test -n "$NMEDIT"; then 7243 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7244else 7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7246for as_dir in $PATH 7247do 7248 IFS=$as_save_IFS 7249 test -z "$as_dir" && as_dir=. 7250 for ac_exec_ext in '' $ac_executable_extensions; do 7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7252 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7254 break 2 7255 fi 7256done 7257done 7258IFS=$as_save_IFS 7259 7260fi 7261fi 7262NMEDIT=$ac_cv_prog_NMEDIT 7263if test -n "$NMEDIT"; then 7264 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7265$as_echo "$NMEDIT" >&6; } 7266else 7267 { $as_echo "$as_me:$LINENO: result: no" >&5 7268$as_echo "no" >&6; } 7269fi 7270 7271 7272fi 7273if test -z "$ac_cv_prog_NMEDIT"; then 7274 ac_ct_NMEDIT=$NMEDIT 7275 # Extract the first word of "nmedit", so it can be a program name with args. 7276set dummy nmedit; ac_word=$2 7277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7278$as_echo_n "checking for $ac_word... " >&6; } 7279if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7280 $as_echo_n "(cached) " >&6 7281else 7282 if test -n "$ac_ct_NMEDIT"; then 7283 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7284else 7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7286for as_dir in $PATH 7287do 7288 IFS=$as_save_IFS 7289 test -z "$as_dir" && as_dir=. 7290 for ac_exec_ext in '' $ac_executable_extensions; do 7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7292 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7294 break 2 7295 fi 7296done 7297done 7298IFS=$as_save_IFS 7299 7300fi 7301fi 7302ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7303if test -n "$ac_ct_NMEDIT"; then 7304 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7305$as_echo "$ac_ct_NMEDIT" >&6; } 7306else 7307 { $as_echo "$as_me:$LINENO: result: no" >&5 7308$as_echo "no" >&6; } 7309fi 7310 7311 if test "x$ac_ct_NMEDIT" = x; then 7312 NMEDIT=":" 7313 else 7314 case $cross_compiling:$ac_tool_warned in 7315yes:) 7316{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 7317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7318ac_tool_warned=yes ;; 7319esac 7320 NMEDIT=$ac_ct_NMEDIT 7321 fi 7322else 7323 NMEDIT="$ac_cv_prog_NMEDIT" 7324fi 7325 7326 7327 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7328$as_echo_n "checking for -single_module linker flag... " >&6; } 7329if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7330 $as_echo_n "(cached) " >&6 7331else 7332 lt_cv_apple_cc_single_mod=no 7333 if test -z "${LT_MULTI_MODULE}"; then 7334 # By default we will add the -single_module flag. You can override 7335 # by either setting the environment variable LT_MULTI_MODULE 7336 # non-empty at configure time, or by adding -multi_module to the 7337 # link flags. 7338 echo "int foo(void){return 1;}" > conftest.c 7339 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7340 -dynamiclib ${wl}-single_module conftest.c 7341 if test -f libconftest.dylib; then 7342 lt_cv_apple_cc_single_mod=yes 7343 rm -rf libconftest.dylib* 7344 fi 7345 rm conftest.c 7346 fi 7347fi 7348{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7349$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7350 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7351$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7352if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7353 $as_echo_n "(cached) " >&6 7354else 7355 lt_cv_ld_exported_symbols_list=no 7356 save_LDFLAGS=$LDFLAGS 7357 echo "_main" > conftest.sym 7358 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7359 cat >conftest.$ac_ext <<_ACEOF 7360/* confdefs.h. */ 7361_ACEOF 7362cat confdefs.h >>conftest.$ac_ext 7363cat >>conftest.$ac_ext <<_ACEOF 7364/* end confdefs.h. */ 7365 7366int 7367main () 7368{ 7369 7370 ; 7371 return 0; 7372} 7373_ACEOF 7374rm -f conftest.$ac_objext conftest$ac_exeext 7375if { (ac_try="$ac_link" 7376case "(($ac_try" in 7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7378 *) ac_try_echo=$ac_try;; 7379esac 7380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7381$as_echo "$ac_try_echo") >&5 7382 (eval "$ac_link") 2>conftest.er1 7383 ac_status=$? 7384 grep -v '^ *+' conftest.er1 >conftest.err 7385 rm -f conftest.er1 7386 cat conftest.err >&5 7387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7388 (exit $ac_status); } && { 7389 test -z "$ac_c_werror_flag" || 7390 test ! -s conftest.err 7391 } && test -s conftest$ac_exeext && { 7392 test "$cross_compiling" = yes || 7393 $as_test_x conftest$ac_exeext 7394 }; then 7395 lt_cv_ld_exported_symbols_list=yes 7396else 7397 $as_echo "$as_me: failed program was:" >&5 7398sed 's/^/| /' conftest.$ac_ext >&5 7399 7400 lt_cv_ld_exported_symbols_list=no 7401fi 7402 7403rm -rf conftest.dSYM 7404rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7405 conftest$ac_exeext conftest.$ac_ext 7406 LDFLAGS="$save_LDFLAGS" 7407 7408fi 7409{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7410$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7411 case $host_os in 7412 rhapsody* | darwin1.[0123]) 7413 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7414 darwin1.*) 7415 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7416 darwin*) 7417 # if running on 10.5 or later, the deployment target defaults 7418 # to the OS version, if on x86, and 10.4, the deployment 7419 # target defaults to 10.4. Don't you love it? 7420 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7421 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7422 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7423 10.[012]*) 7424 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7425 10.*) 7426 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7427 esac 7428 ;; 7429 esac 7430 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7431 _lt_dar_single_mod='$single_module' 7432 fi 7433 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7434 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7435 else 7436 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7437 fi 7438 if test "$DSYMUTIL" != ":"; then 7439 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7440 else 7441 _lt_dsymutil= 7442 fi 7443 ;; 7444 esac 7445 7446 7447enable_dlopen=no 7448enable_win32_dll=no 7449 7450# Check whether --enable-libtool-lock was given. 7451if test "${enable_libtool_lock+set}" = set; then 7452 enableval=$enable_libtool_lock; 7453fi 7454 7455test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7456 7457 7458# Check whether --with-pic was given. 7459if test "${with_pic+set}" = set; then 7460 withval=$with_pic; pic_mode="$withval" 7461else 7462 pic_mode=default 7463fi 7464 7465test -z "$pic_mode" && pic_mode=default 7466 7467# Use C for the default configuration in the libtool script 7468tagname= 7469lt_save_CC="$CC" 7470ac_ext=c 7471ac_cpp='$CPP $CPPFLAGS' 7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7474ac_compiler_gnu=$ac_cv_c_compiler_gnu 7475 7476 7477# Source file extension for C test sources. 7478ac_ext=c 7479 7480# Object file extension for compiled C test sources. 7481objext=o 7482objext=$objext 7483 7484# Code to be used in simple compile tests 7485lt_simple_compile_test_code="int some_variable = 0;" 7486 7487# Code to be used in simple link tests 7488lt_simple_link_test_code='int main(){return(0);}' 7489 7490 7491# If no C compiler was specified, use CC. 7492LTCC=${LTCC-"$CC"} 7493 7494# If no C compiler flags were specified, use CFLAGS. 7495LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7496 7497# Allow CC to be a program name with arguments. 7498compiler=$CC 7499 7500 7501# save warnings/boilerplate of simple test code 7502ac_outfile=conftest.$ac_objext 7503echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7504eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7505_lt_compiler_boilerplate=`cat conftest.err` 7506$rm conftest* 7507 7508ac_outfile=conftest.$ac_objext 7509echo "$lt_simple_link_test_code" >conftest.$ac_ext 7510eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7511_lt_linker_boilerplate=`cat conftest.err` 7512$rm -r conftest* 7513 7514 7515 7516lt_prog_compiler_no_builtin_flag= 7517 7518if test "$GCC" = yes; then 7519 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7520 7521 7522{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7523$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7524if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7525 $as_echo_n "(cached) " >&6 7526else 7527 lt_cv_prog_compiler_rtti_exceptions=no 7528 ac_outfile=conftest.$ac_objext 7529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7530 lt_compiler_flag="-fno-rtti -fno-exceptions" 7531 # Insert the option either (1) after the last *FLAGS variable, or 7532 # (2) before a word containing "conftest.", or (3) at the end. 7533 # Note that $ac_compile itself does not contain backslashes and begins 7534 # with a dollar sign (not a hyphen), so the echo should work correctly. 7535 # The option is referenced via a variable to avoid confusing sed. 7536 lt_compile=`echo "$ac_compile" | $SED \ 7537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7539 -e 's:$: $lt_compiler_flag:'` 7540 (eval echo "\"\$as_me:7540: $lt_compile\"" >&5) 7541 (eval "$lt_compile" 2>conftest.err) 7542 ac_status=$? 7543 cat conftest.err >&5 7544 echo "$as_me:7544: \$? = $ac_status" >&5 7545 if (exit $ac_status) && test -s "$ac_outfile"; then 7546 # The compiler can only warn and ignore the option if not recognized 7547 # So say no if there are warnings other than the usual output. 7548 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7550 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7551 lt_cv_prog_compiler_rtti_exceptions=yes 7552 fi 7553 fi 7554 $rm conftest* 7555 7556fi 7557{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7558$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7559 7560if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7561 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7562else 7563 : 7564fi 7565 7566fi 7567 7568lt_prog_compiler_wl= 7569lt_prog_compiler_pic= 7570lt_prog_compiler_static= 7571 7572{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7573$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7574 7575 if test "$GCC" = yes; then 7576 lt_prog_compiler_wl='-Wl,' 7577 lt_prog_compiler_static='-static' 7578 7579 case $host_os in 7580 aix*) 7581 # All AIX code is PIC. 7582 if test "$host_cpu" = ia64; then 7583 # AIX 5 now supports IA64 processor 7584 lt_prog_compiler_static='-Bstatic' 7585 fi 7586 ;; 7587 7588 amigaos*) 7589 # FIXME: we need at least 68020 code to build shared libraries, but 7590 # adding the `-m68020' flag to GCC prevents building anything better, 7591 # like `-m68040'. 7592 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7593 ;; 7594 7595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7596 # PIC is the default for these OSes. 7597 ;; 7598 7599 mingw* | cygwin* | pw32* | os2*) 7600 # This hack is so that the source file can tell whether it is being 7601 # built for inclusion in a dll (and should export symbols for example). 7602 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7603 # (--disable-auto-import) libraries 7604 lt_prog_compiler_pic='-DDLL_EXPORT' 7605 ;; 7606 7607 darwin* | rhapsody*) 7608 # PIC is the default on this platform 7609 # Common symbols not allowed in MH_DYLIB files 7610 lt_prog_compiler_pic='-fno-common' 7611 ;; 7612 7613 interix[3-9]*) 7614 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7615 # Instead, we relocate shared libraries at runtime. 7616 ;; 7617 7618 msdosdjgpp*) 7619 # Just because we use GCC doesn't mean we suddenly get shared libraries 7620 # on systems that don't support them. 7621 lt_prog_compiler_can_build_shared=no 7622 enable_shared=no 7623 ;; 7624 7625 sysv4*MP*) 7626 if test -d /usr/nec; then 7627 lt_prog_compiler_pic=-Kconform_pic 7628 fi 7629 ;; 7630 7631 hpux*) 7632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7633 # not for PA HP-UX. 7634 case $host_cpu in 7635 hppa*64*|ia64*) 7636 # +Z the default 7637 ;; 7638 *) 7639 lt_prog_compiler_pic='-fPIC' 7640 ;; 7641 esac 7642 ;; 7643 7644 *) 7645 lt_prog_compiler_pic='-fPIC' 7646 ;; 7647 esac 7648 else 7649 # PORTME Check for flag to pass linker flags through the system compiler. 7650 case $host_os in 7651 aix*) 7652 lt_prog_compiler_wl='-Wl,' 7653 if test "$host_cpu" = ia64; then 7654 # AIX 5 now supports IA64 processor 7655 lt_prog_compiler_static='-Bstatic' 7656 else 7657 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7658 fi 7659 ;; 7660 darwin*) 7661 # PIC is the default on this platform 7662 # Common symbols not allowed in MH_DYLIB files 7663 case $cc_basename in 7664 xlc*) 7665 lt_prog_compiler_pic='-qnocommon' 7666 lt_prog_compiler_wl='-Wl,' 7667 ;; 7668 esac 7669 ;; 7670 7671 mingw* | cygwin* | pw32* | os2*) 7672 # This hack is so that the source file can tell whether it is being 7673 # built for inclusion in a dll (and should export symbols for example). 7674 lt_prog_compiler_pic='-DDLL_EXPORT' 7675 ;; 7676 7677 hpux9* | hpux10* | hpux11*) 7678 lt_prog_compiler_wl='-Wl,' 7679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7680 # not for PA HP-UX. 7681 case $host_cpu in 7682 hppa*64*|ia64*) 7683 # +Z the default 7684 ;; 7685 *) 7686 lt_prog_compiler_pic='+Z' 7687 ;; 7688 esac 7689 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7690 lt_prog_compiler_static='${wl}-a ${wl}archive' 7691 ;; 7692 7693 irix5* | irix6* | nonstopux*) 7694 lt_prog_compiler_wl='-Wl,' 7695 # PIC (with -KPIC) is the default. 7696 lt_prog_compiler_static='-non_shared' 7697 ;; 7698 7699 newsos6) 7700 lt_prog_compiler_pic='-KPIC' 7701 lt_prog_compiler_static='-Bstatic' 7702 ;; 7703 7704 linux* | k*bsd*-gnu) 7705 case $cc_basename in 7706 icc* | ecc*) 7707 lt_prog_compiler_wl='-Wl,' 7708 lt_prog_compiler_pic='-KPIC' 7709 lt_prog_compiler_static='-static' 7710 ;; 7711 pgcc* | pgf77* | pgf90* | pgf95*) 7712 # Portland Group compilers (*not* the Pentium gcc compiler, 7713 # which looks to be a dead project) 7714 lt_prog_compiler_wl='-Wl,' 7715 lt_prog_compiler_pic='-fpic' 7716 lt_prog_compiler_static='-Bstatic' 7717 ;; 7718 ccc*) 7719 lt_prog_compiler_wl='-Wl,' 7720 # All Alpha code is PIC. 7721 lt_prog_compiler_static='-non_shared' 7722 ;; 7723 *) 7724 case `$CC -V 2>&1 | sed 5q` in 7725 *Sun\ C*) 7726 # Sun C 5.9 7727 lt_prog_compiler_pic='-KPIC' 7728 lt_prog_compiler_static='-Bstatic' 7729 lt_prog_compiler_wl='-Wl,' 7730 ;; 7731 *Sun\ F*) 7732 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7733 lt_prog_compiler_pic='-KPIC' 7734 lt_prog_compiler_static='-Bstatic' 7735 lt_prog_compiler_wl='' 7736 ;; 7737 esac 7738 ;; 7739 esac 7740 ;; 7741 7742 osf3* | osf4* | osf5*) 7743 lt_prog_compiler_wl='-Wl,' 7744 # All OSF/1 code is PIC. 7745 lt_prog_compiler_static='-non_shared' 7746 ;; 7747 7748 rdos*) 7749 lt_prog_compiler_static='-non_shared' 7750 ;; 7751 7752 solaris*) 7753 lt_prog_compiler_pic='-KPIC' 7754 lt_prog_compiler_static='-Bstatic' 7755 case $cc_basename in 7756 f77* | f90* | f95*) 7757 lt_prog_compiler_wl='-Qoption ld ';; 7758 *) 7759 lt_prog_compiler_wl='-Wl,';; 7760 esac 7761 ;; 7762 7763 sunos4*) 7764 lt_prog_compiler_wl='-Qoption ld ' 7765 lt_prog_compiler_pic='-PIC' 7766 lt_prog_compiler_static='-Bstatic' 7767 ;; 7768 7769 sysv4 | sysv4.2uw2* | sysv4.3*) 7770 lt_prog_compiler_wl='-Wl,' 7771 lt_prog_compiler_pic='-KPIC' 7772 lt_prog_compiler_static='-Bstatic' 7773 ;; 7774 7775 sysv4*MP*) 7776 if test -d /usr/nec ;then 7777 lt_prog_compiler_pic='-Kconform_pic' 7778 lt_prog_compiler_static='-Bstatic' 7779 fi 7780 ;; 7781 7782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7783 lt_prog_compiler_wl='-Wl,' 7784 lt_prog_compiler_pic='-KPIC' 7785 lt_prog_compiler_static='-Bstatic' 7786 ;; 7787 7788 unicos*) 7789 lt_prog_compiler_wl='-Wl,' 7790 lt_prog_compiler_can_build_shared=no 7791 ;; 7792 7793 uts4*) 7794 lt_prog_compiler_pic='-pic' 7795 lt_prog_compiler_static='-Bstatic' 7796 ;; 7797 7798 *) 7799 lt_prog_compiler_can_build_shared=no 7800 ;; 7801 esac 7802 fi 7803 7804{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7805$as_echo "$lt_prog_compiler_pic" >&6; } 7806 7807# 7808# Check to make sure the PIC flag actually works. 7809# 7810if test -n "$lt_prog_compiler_pic"; then 7811 7812{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7813$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7814if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7815 $as_echo_n "(cached) " >&6 7816else 7817 lt_cv_prog_compiler_pic_works=no 7818 ac_outfile=conftest.$ac_objext 7819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7820 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7821 # Insert the option either (1) after the last *FLAGS variable, or 7822 # (2) before a word containing "conftest.", or (3) at the end. 7823 # Note that $ac_compile itself does not contain backslashes and begins 7824 # with a dollar sign (not a hyphen), so the echo should work correctly. 7825 # The option is referenced via a variable to avoid confusing sed. 7826 lt_compile=`echo "$ac_compile" | $SED \ 7827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7829 -e 's:$: $lt_compiler_flag:'` 7830 (eval echo "\"\$as_me:7830: $lt_compile\"" >&5) 7831 (eval "$lt_compile" 2>conftest.err) 7832 ac_status=$? 7833 cat conftest.err >&5 7834 echo "$as_me:7834: \$? = $ac_status" >&5 7835 if (exit $ac_status) && test -s "$ac_outfile"; then 7836 # The compiler can only warn and ignore the option if not recognized 7837 # So say no if there are warnings other than the usual output. 7838 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7841 lt_cv_prog_compiler_pic_works=yes 7842 fi 7843 fi 7844 $rm conftest* 7845 7846fi 7847{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7848$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7849 7850if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7851 case $lt_prog_compiler_pic in 7852 "" | " "*) ;; 7853 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7854 esac 7855else 7856 lt_prog_compiler_pic= 7857 lt_prog_compiler_can_build_shared=no 7858fi 7859 7860fi 7861case $host_os in 7862 # For platforms which do not support PIC, -DPIC is meaningless: 7863 *djgpp*) 7864 lt_prog_compiler_pic= 7865 ;; 7866 *) 7867 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7868 ;; 7869esac 7870 7871# 7872# Check to make sure the static flag actually works. 7873# 7874wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7875{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7876$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7877if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7878 $as_echo_n "(cached) " >&6 7879else 7880 lt_cv_prog_compiler_static_works=no 7881 save_LDFLAGS="$LDFLAGS" 7882 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7883 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7885 # The linker can only warn and ignore the option if not recognized 7886 # So say no if there are warnings 7887 if test -s conftest.err; then 7888 # Append any errors to the config.log. 7889 cat conftest.err 1>&5 7890 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7892 if diff conftest.exp conftest.er2 >/dev/null; then 7893 lt_cv_prog_compiler_static_works=yes 7894 fi 7895 else 7896 lt_cv_prog_compiler_static_works=yes 7897 fi 7898 fi 7899 $rm -r conftest* 7900 LDFLAGS="$save_LDFLAGS" 7901 7902fi 7903{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7904$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7905 7906if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7907 : 7908else 7909 lt_prog_compiler_static= 7910fi 7911 7912 7913{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7914$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7915if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7916 $as_echo_n "(cached) " >&6 7917else 7918 lt_cv_prog_compiler_c_o=no 7919 $rm -r conftest 2>/dev/null 7920 mkdir conftest 7921 cd conftest 7922 mkdir out 7923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7924 7925 lt_compiler_flag="-o out/conftest2.$ac_objext" 7926 # Insert the option either (1) after the last *FLAGS variable, or 7927 # (2) before a word containing "conftest.", or (3) at the end. 7928 # Note that $ac_compile itself does not contain backslashes and begins 7929 # with a dollar sign (not a hyphen), so the echo should work correctly. 7930 lt_compile=`echo "$ac_compile" | $SED \ 7931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7933 -e 's:$: $lt_compiler_flag:'` 7934 (eval echo "\"\$as_me:7934: $lt_compile\"" >&5) 7935 (eval "$lt_compile" 2>out/conftest.err) 7936 ac_status=$? 7937 cat out/conftest.err >&5 7938 echo "$as_me:7938: \$? = $ac_status" >&5 7939 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7940 then 7941 # The compiler can only warn and ignore the option if not recognized 7942 # So say no if there are warnings 7943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7946 lt_cv_prog_compiler_c_o=yes 7947 fi 7948 fi 7949 chmod u+w . 2>&5 7950 $rm conftest* 7951 # SGI C++ compiler will create directory out/ii_files/ for 7952 # template instantiation 7953 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7954 $rm out/* && rmdir out 7955 cd .. 7956 rmdir conftest 7957 $rm conftest* 7958 7959fi 7960{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7961$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7962 7963 7964hard_links="nottested" 7965if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7966 # do not overwrite the value of need_locks provided by the user 7967 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7968$as_echo_n "checking if we can lock with hard links... " >&6; } 7969 hard_links=yes 7970 $rm conftest* 7971 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7972 touch conftest.a 7973 ln conftest.a conftest.b 2>&5 || hard_links=no 7974 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7975 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7976$as_echo "$hard_links" >&6; } 7977 if test "$hard_links" = no; then 7978 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7979$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7980 need_locks=warn 7981 fi 7982else 7983 need_locks=no 7984fi 7985 7986{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7987$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7988 7989 runpath_var= 7990 allow_undefined_flag= 7991 enable_shared_with_static_runtimes=no 7992 archive_cmds= 7993 archive_expsym_cmds= 7994 old_archive_From_new_cmds= 7995 old_archive_from_expsyms_cmds= 7996 export_dynamic_flag_spec= 7997 whole_archive_flag_spec= 7998 thread_safe_flag_spec= 7999 hardcode_libdir_flag_spec= 8000 hardcode_libdir_flag_spec_ld= 8001 hardcode_libdir_separator= 8002 hardcode_direct=no 8003 hardcode_minus_L=no 8004 hardcode_shlibpath_var=unsupported 8005 link_all_deplibs=unknown 8006 hardcode_automatic=no 8007 module_cmds= 8008 module_expsym_cmds= 8009 always_export_symbols=no 8010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8011 # include_expsyms should be a list of space-separated symbols to be *always* 8012 # included in the symbol list 8013 include_expsyms= 8014 # exclude_expsyms can be an extended regexp of symbols to exclude 8015 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8016 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8017 # as well as any symbol that contains `d'. 8018 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8019 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8020 # platforms (ab)use it in PIC code, but their linkers get confused if 8021 # the symbol is explicitly referenced. Since portable code cannot 8022 # rely on this symbol name, it's probably fine to never include it in 8023 # preloaded symbol tables. 8024 # Exclude shared library initialization/finalization symbols. 8025 extract_expsyms_cmds= 8026 # Just being paranoid about ensuring that cc_basename is set. 8027 for cc_temp in $compiler""; do 8028 case $cc_temp in 8029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8031 \-*) ;; 8032 *) break;; 8033 esac 8034done 8035cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8036 8037 case $host_os in 8038 cygwin* | mingw* | pw32*) 8039 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8040 # When not using gcc, we currently assume that we are using 8041 # Microsoft Visual C++. 8042 if test "$GCC" != yes; then 8043 with_gnu_ld=no 8044 fi 8045 ;; 8046 interix*) 8047 # we just hope/assume this is gcc and not c89 (= MSVC++) 8048 with_gnu_ld=yes 8049 ;; 8050 openbsd*) 8051 with_gnu_ld=no 8052 ;; 8053 esac 8054 8055 ld_shlibs=yes 8056 if test "$with_gnu_ld" = yes; then 8057 # If archive_cmds runs LD, not CC, wlarc should be empty 8058 wlarc='${wl}' 8059 8060 # Set some defaults for GNU ld with shared library support. These 8061 # are reset later if shared libraries are not supported. Putting them 8062 # here allows them to be overridden if necessary. 8063 runpath_var=LD_RUN_PATH 8064 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8065 export_dynamic_flag_spec='${wl}--export-dynamic' 8066 # ancient GNU ld didn't support --whole-archive et. al. 8067 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8069 else 8070 whole_archive_flag_spec= 8071 fi 8072 supports_anon_versioning=no 8073 case `$LD -v 2>/dev/null` in 8074 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8075 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8076 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8077 *\ 2.11.*) ;; # other 2.11 versions 8078 *) supports_anon_versioning=yes ;; 8079 esac 8080 8081 # See if GNU ld supports shared libraries. 8082 case $host_os in 8083 aix[3-9]*) 8084 # On AIX/PPC, the GNU linker is very broken 8085 if test "$host_cpu" != ia64; then 8086 ld_shlibs=no 8087 cat <<EOF 1>&2 8088 8089*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8090*** to be unable to reliably create shared libraries on AIX. 8091*** Therefore, libtool is disabling shared libraries support. If you 8092*** really care for shared libraries, you may want to modify your PATH 8093*** so that a non-GNU linker is found, and then restart. 8094 8095EOF 8096 fi 8097 ;; 8098 8099 amigaos*) 8100 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 8101 hardcode_libdir_flag_spec='-L$libdir' 8102 hardcode_minus_L=yes 8103 8104 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8105 # that the semantics of dynamic libraries on AmigaOS, at least up 8106 # to version 4, is to share data among multiple programs linked 8107 # with the same dynamic library. Since this doesn't match the 8108 # behavior of shared libraries on other platforms, we can't use 8109 # them. 8110 ld_shlibs=no 8111 ;; 8112 8113 beos*) 8114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8115 allow_undefined_flag=unsupported 8116 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8117 # support --undefined. This deserves some investigation. FIXME 8118 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8119 else 8120 ld_shlibs=no 8121 fi 8122 ;; 8123 8124 cygwin* | mingw* | pw32*) 8125 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8126 # as there is no search path for DLLs. 8127 hardcode_libdir_flag_spec='-L$libdir' 8128 allow_undefined_flag=unsupported 8129 always_export_symbols=no 8130 enable_shared_with_static_runtimes=yes 8131 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8132 8133 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8135 # If the export-symbols file already is a .def file (1st line 8136 # is EXPORTS), use it as is; otherwise, prepend... 8137 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8138 cp $export_symbols $output_objdir/$soname.def; 8139 else 8140 echo EXPORTS > $output_objdir/$soname.def; 8141 cat $export_symbols >> $output_objdir/$soname.def; 8142 fi~ 8143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8144 else 8145 ld_shlibs=no 8146 fi 8147 ;; 8148 8149 interix[3-9]*) 8150 hardcode_direct=no 8151 hardcode_shlibpath_var=no 8152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8153 export_dynamic_flag_spec='${wl}-E' 8154 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8155 # Instead, shared libraries are loaded at an image base (0x10000000 by 8156 # default) and relocated if they conflict, which is a slow very memory 8157 # consuming and fragmenting process. To avoid this, we pick a random, 8158 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8159 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8160 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8161 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' 8162 ;; 8163 8164 gnu* | linux* | k*bsd*-gnu) 8165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8166 tmp_addflag= 8167 case $cc_basename,$host_cpu in 8168 pgcc*) # Portland Group C compiler 8169 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' 8170 tmp_addflag=' $pic_flag' 8171 ;; 8172 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8173 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' 8174 tmp_addflag=' $pic_flag -Mnomain' ;; 8175 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8176 tmp_addflag=' -i_dynamic' ;; 8177 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8178 tmp_addflag=' -i_dynamic -nofor_main' ;; 8179 ifc* | ifort*) # Intel Fortran compiler 8180 tmp_addflag=' -nofor_main' ;; 8181 esac 8182 case `$CC -V 2>&1 | sed 5q` in 8183 *Sun\ C*) # Sun C 5.9 8184 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' 8185 tmp_sharedflag='-G' ;; 8186 *Sun\ F*) # Sun Fortran 8.3 8187 tmp_sharedflag='-G' ;; 8188 *) 8189 tmp_sharedflag='-shared' ;; 8190 esac 8191 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8192 8193 if test $supports_anon_versioning = yes; then 8194 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8196 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8197 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8198 fi 8199 link_all_deplibs=no 8200 else 8201 ld_shlibs=no 8202 fi 8203 ;; 8204 8205 netbsd*) 8206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8208 wlarc= 8209 else 8210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8212 fi 8213 ;; 8214 8215 solaris*) 8216 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8217 ld_shlibs=no 8218 cat <<EOF 1>&2 8219 8220*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8221*** create shared libraries on Solaris systems. Therefore, libtool 8222*** is disabling shared libraries support. We urge you to upgrade GNU 8223*** binutils to release 2.9.1 or newer. Another option is to modify 8224*** your PATH or compiler configuration so that the native linker is 8225*** used, and then restart. 8226 8227EOF 8228 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8231 else 8232 ld_shlibs=no 8233 fi 8234 ;; 8235 8236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8237 case `$LD -v 2>&1` in 8238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8239 ld_shlibs=no 8240 cat <<_LT_EOF 1>&2 8241 8242*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8243*** reliably create shared libraries on SCO systems. Therefore, libtool 8244*** is disabling shared libraries support. We urge you to upgrade GNU 8245*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8246*** your PATH or compiler configuration so that the native linker is 8247*** used, and then restart. 8248 8249_LT_EOF 8250 ;; 8251 *) 8252 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8253 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8256 else 8257 ld_shlibs=no 8258 fi 8259 ;; 8260 esac 8261 ;; 8262 8263 sunos4*) 8264 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8265 wlarc= 8266 hardcode_direct=yes 8267 hardcode_shlibpath_var=no 8268 ;; 8269 8270 *) 8271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8274 else 8275 ld_shlibs=no 8276 fi 8277 ;; 8278 esac 8279 8280 if test "$ld_shlibs" = no; then 8281 runpath_var= 8282 hardcode_libdir_flag_spec= 8283 export_dynamic_flag_spec= 8284 whole_archive_flag_spec= 8285 fi 8286 else 8287 # PORTME fill in a description of your system's linker (not GNU ld) 8288 case $host_os in 8289 aix3*) 8290 allow_undefined_flag=unsupported 8291 always_export_symbols=yes 8292 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' 8293 # Note: this linker hardcodes the directories in LIBPATH if there 8294 # are no directories specified by -L. 8295 hardcode_minus_L=yes 8296 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8297 # Neither direct hardcoding nor static linking is supported with a 8298 # broken collect2. 8299 hardcode_direct=unsupported 8300 fi 8301 ;; 8302 8303 aix[4-9]*) 8304 if test "$host_cpu" = ia64; then 8305 # On IA64, the linker does run time linking by default, so we don't 8306 # have to do anything special. 8307 aix_use_runtimelinking=no 8308 exp_sym_flag='-Bexport' 8309 no_entry_flag="" 8310 else 8311 # If we're using GNU nm, then we don't want the "-C" option. 8312 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8313 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8314 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' 8315 else 8316 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' 8317 fi 8318 aix_use_runtimelinking=no 8319 8320 # Test if we are trying to use run time linking or normal 8321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8322 # need to do runtime linking. 8323 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8324 for ld_flag in $LDFLAGS; do 8325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8326 aix_use_runtimelinking=yes 8327 break 8328 fi 8329 done 8330 ;; 8331 esac 8332 8333 exp_sym_flag='-bexport' 8334 no_entry_flag='-bnoentry' 8335 fi 8336 8337 # When large executables or shared objects are built, AIX ld can 8338 # have problems creating the table of contents. If linking a library 8339 # or program results in "error TOC overflow" add -mminimal-toc to 8340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8342 8343 archive_cmds='' 8344 hardcode_direct=yes 8345 hardcode_libdir_separator=':' 8346 link_all_deplibs=yes 8347 8348 if test "$GCC" = yes; then 8349 case $host_os in aix4.[012]|aix4.[012].*) 8350 # We only want to do this on AIX 4.2 and lower, the check 8351 # below for broken collect2 doesn't work under 4.3+ 8352 collect2name=`${CC} -print-prog-name=collect2` 8353 if test -f "$collect2name" && \ 8354 strings "$collect2name" | grep resolve_lib_name >/dev/null 8355 then 8356 # We have reworked collect2 8357 : 8358 else 8359 # We have old collect2 8360 hardcode_direct=unsupported 8361 # It fails to find uninstalled libraries when the uninstalled 8362 # path is not listed in the libpath. Setting hardcode_minus_L 8363 # to unsupported forces relinking 8364 hardcode_minus_L=yes 8365 hardcode_libdir_flag_spec='-L$libdir' 8366 hardcode_libdir_separator= 8367 fi 8368 ;; 8369 esac 8370 shared_flag='-shared' 8371 if test "$aix_use_runtimelinking" = yes; then 8372 shared_flag="$shared_flag "'${wl}-G' 8373 fi 8374 else 8375 # not using gcc 8376 if test "$host_cpu" = ia64; then 8377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8378 # chokes on -Wl,-G. The following line is correct: 8379 shared_flag='-G' 8380 else 8381 if test "$aix_use_runtimelinking" = yes; then 8382 shared_flag='${wl}-G' 8383 else 8384 shared_flag='${wl}-bM:SRE' 8385 fi 8386 fi 8387 fi 8388 8389 # It seems that -bexpall does not export symbols beginning with 8390 # underscore (_), so it is better to generate a list of symbols to export. 8391 always_export_symbols=yes 8392 if test "$aix_use_runtimelinking" = yes; then 8393 # Warning - without using the other runtime loading flags (-brtl), 8394 # -berok will link without error, but may produce a broken library. 8395 allow_undefined_flag='-berok' 8396 # Determine the default libpath from the value encoded in an empty executable. 8397 cat >conftest.$ac_ext <<_ACEOF 8398/* confdefs.h. */ 8399_ACEOF 8400cat confdefs.h >>conftest.$ac_ext 8401cat >>conftest.$ac_ext <<_ACEOF 8402/* end confdefs.h. */ 8403 8404int 8405main () 8406{ 8407 8408 ; 8409 return 0; 8410} 8411_ACEOF 8412rm -f conftest.$ac_objext conftest$ac_exeext 8413if { (ac_try="$ac_link" 8414case "(($ac_try" in 8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8416 *) ac_try_echo=$ac_try;; 8417esac 8418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8419$as_echo "$ac_try_echo") >&5 8420 (eval "$ac_link") 2>conftest.er1 8421 ac_status=$? 8422 grep -v '^ *+' conftest.er1 >conftest.err 8423 rm -f conftest.er1 8424 cat conftest.err >&5 8425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8426 (exit $ac_status); } && { 8427 test -z "$ac_c_werror_flag" || 8428 test ! -s conftest.err 8429 } && test -s conftest$ac_exeext && { 8430 test "$cross_compiling" = yes || 8431 $as_test_x conftest$ac_exeext 8432 }; then 8433 8434lt_aix_libpath_sed=' 8435 /Import File Strings/,/^$/ { 8436 /^0/ { 8437 s/^0 *\(.*\)$/\1/ 8438 p 8439 } 8440 }' 8441aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8442# Check for a 64-bit object if we didn't find anything. 8443if test -z "$aix_libpath"; then 8444 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8445fi 8446else 8447 $as_echo "$as_me: failed program was:" >&5 8448sed 's/^/| /' conftest.$ac_ext >&5 8449 8450 8451fi 8452 8453rm -rf conftest.dSYM 8454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8455 conftest$ac_exeext conftest.$ac_ext 8456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8457 8458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8459 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8460 else 8461 if test "$host_cpu" = ia64; then 8462 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8463 allow_undefined_flag="-z nodefs" 8464 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 8465 else 8466 # Determine the default libpath from the value encoded in an empty executable. 8467 cat >conftest.$ac_ext <<_ACEOF 8468/* confdefs.h. */ 8469_ACEOF 8470cat confdefs.h >>conftest.$ac_ext 8471cat >>conftest.$ac_ext <<_ACEOF 8472/* end confdefs.h. */ 8473 8474int 8475main () 8476{ 8477 8478 ; 8479 return 0; 8480} 8481_ACEOF 8482rm -f conftest.$ac_objext conftest$ac_exeext 8483if { (ac_try="$ac_link" 8484case "(($ac_try" in 8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8486 *) ac_try_echo=$ac_try;; 8487esac 8488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8489$as_echo "$ac_try_echo") >&5 8490 (eval "$ac_link") 2>conftest.er1 8491 ac_status=$? 8492 grep -v '^ *+' conftest.er1 >conftest.err 8493 rm -f conftest.er1 8494 cat conftest.err >&5 8495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8496 (exit $ac_status); } && { 8497 test -z "$ac_c_werror_flag" || 8498 test ! -s conftest.err 8499 } && test -s conftest$ac_exeext && { 8500 test "$cross_compiling" = yes || 8501 $as_test_x conftest$ac_exeext 8502 }; then 8503 8504lt_aix_libpath_sed=' 8505 /Import File Strings/,/^$/ { 8506 /^0/ { 8507 s/^0 *\(.*\)$/\1/ 8508 p 8509 } 8510 }' 8511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8512# Check for a 64-bit object if we didn't find anything. 8513if test -z "$aix_libpath"; then 8514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8515fi 8516else 8517 $as_echo "$as_me: failed program was:" >&5 8518sed 's/^/| /' conftest.$ac_ext >&5 8519 8520 8521fi 8522 8523rm -rf conftest.dSYM 8524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8525 conftest$ac_exeext conftest.$ac_ext 8526if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8527 8528 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8529 # Warning - without using the other run time loading flags, 8530 # -berok will link without error, but may produce a broken library. 8531 no_undefined_flag=' ${wl}-bernotok' 8532 allow_undefined_flag=' ${wl}-berok' 8533 # Exported symbols can be pulled into shared objects from archives 8534 whole_archive_flag_spec='$convenience' 8535 archive_cmds_need_lc=yes 8536 # This is similar to how AIX traditionally builds its shared libraries. 8537 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' 8538 fi 8539 fi 8540 ;; 8541 8542 amigaos*) 8543 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)' 8544 hardcode_libdir_flag_spec='-L$libdir' 8545 hardcode_minus_L=yes 8546 # see comment about different semantics on the GNU ld section 8547 ld_shlibs=no 8548 ;; 8549 8550 bsdi[45]*) 8551 export_dynamic_flag_spec=-rdynamic 8552 ;; 8553 8554 cygwin* | mingw* | pw32*) 8555 # When not using gcc, we currently assume that we are using 8556 # Microsoft Visual C++. 8557 # hardcode_libdir_flag_spec is actually meaningless, as there is 8558 # no search path for DLLs. 8559 hardcode_libdir_flag_spec=' ' 8560 allow_undefined_flag=unsupported 8561 # Tell ltmain to make .lib files, not .a files. 8562 libext=lib 8563 # Tell ltmain to make .dll files, not .so files. 8564 shrext_cmds=".dll" 8565 # FIXME: Setting linknames here is a bad hack. 8566 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8567 # The linker will automatically build a .lib file if we build a DLL. 8568 old_archive_From_new_cmds='true' 8569 # FIXME: Should let the user specify the lib program. 8570 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8571 fix_srcfile_path='`cygpath -w "$srcfile"`' 8572 enable_shared_with_static_runtimes=yes 8573 ;; 8574 8575 darwin* | rhapsody*) 8576 case $host_os in 8577 rhapsody* | darwin1.[012]) 8578 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8579 ;; 8580 *) # Darwin 1.3 on 8581 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8582 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8583 else 8584 case ${MACOSX_DEPLOYMENT_TARGET} in 8585 10.[012]) 8586 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8587 ;; 8588 10.*) 8589 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8590 ;; 8591 esac 8592 fi 8593 ;; 8594 esac 8595 archive_cmds_need_lc=no 8596 hardcode_direct=no 8597 hardcode_automatic=yes 8598 hardcode_shlibpath_var=unsupported 8599 whole_archive_flag_spec='' 8600 link_all_deplibs=yes 8601 if test "$GCC" = yes ; then 8602 output_verbose_link_cmd='echo' 8603 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8604 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8605 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}" 8606 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}" 8607 else 8608 case $cc_basename in 8609 xlc*) 8610 output_verbose_link_cmd='echo' 8611 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8612 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8614 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8615 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8616 ;; 8617 *) 8618 ld_shlibs=no 8619 ;; 8620 esac 8621 fi 8622 ;; 8623 8624 dgux*) 8625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8626 hardcode_libdir_flag_spec='-L$libdir' 8627 hardcode_shlibpath_var=no 8628 ;; 8629 8630 freebsd1*) 8631 ld_shlibs=no 8632 ;; 8633 8634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8635 # support. Future versions do this automatically, but an explicit c++rt0.o 8636 # does not break anything, and helps significantly (at the cost of a little 8637 # extra space). 8638 freebsd2.2*) 8639 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8640 hardcode_libdir_flag_spec='-R$libdir' 8641 hardcode_direct=yes 8642 hardcode_shlibpath_var=no 8643 ;; 8644 8645 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8646 freebsd2*) 8647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8648 hardcode_direct=yes 8649 hardcode_minus_L=yes 8650 hardcode_shlibpath_var=no 8651 ;; 8652 8653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8654 freebsd* | dragonfly*) 8655 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8656 hardcode_libdir_flag_spec='-R$libdir' 8657 hardcode_direct=yes 8658 hardcode_shlibpath_var=no 8659 ;; 8660 8661 hpux9*) 8662 if test "$GCC" = yes; then 8663 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' 8664 else 8665 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' 8666 fi 8667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8668 hardcode_libdir_separator=: 8669 hardcode_direct=yes 8670 8671 # hardcode_minus_L: Not really in the search PATH, 8672 # but as the default location of the library. 8673 hardcode_minus_L=yes 8674 export_dynamic_flag_spec='${wl}-E' 8675 ;; 8676 8677 hpux10*) 8678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8680 else 8681 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8682 fi 8683 if test "$with_gnu_ld" = no; then 8684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8685 hardcode_libdir_separator=: 8686 8687 hardcode_direct=yes 8688 export_dynamic_flag_spec='${wl}-E' 8689 8690 # hardcode_minus_L: Not really in the search PATH, 8691 # but as the default location of the library. 8692 hardcode_minus_L=yes 8693 fi 8694 ;; 8695 8696 hpux11*) 8697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8698 case $host_cpu in 8699 hppa*64*) 8700 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8701 ;; 8702 ia64*) 8703 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8704 ;; 8705 *) 8706 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8707 ;; 8708 esac 8709 else 8710 case $host_cpu in 8711 hppa*64*) 8712 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8713 ;; 8714 ia64*) 8715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8716 ;; 8717 *) 8718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8719 ;; 8720 esac 8721 fi 8722 if test "$with_gnu_ld" = no; then 8723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8724 hardcode_libdir_separator=: 8725 8726 case $host_cpu in 8727 hppa*64*|ia64*) 8728 hardcode_libdir_flag_spec_ld='+b $libdir' 8729 hardcode_direct=no 8730 hardcode_shlibpath_var=no 8731 ;; 8732 *) 8733 hardcode_direct=yes 8734 export_dynamic_flag_spec='${wl}-E' 8735 8736 # hardcode_minus_L: Not really in the search PATH, 8737 # but as the default location of the library. 8738 hardcode_minus_L=yes 8739 ;; 8740 esac 8741 fi 8742 ;; 8743 8744 irix5* | irix6* | nonstopux*) 8745 if test "$GCC" = yes; then 8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8747 else 8748 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8749 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8750 fi 8751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8752 hardcode_libdir_separator=: 8753 link_all_deplibs=yes 8754 ;; 8755 8756 netbsd*) 8757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8759 else 8760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8761 fi 8762 hardcode_libdir_flag_spec='-R$libdir' 8763 hardcode_direct=yes 8764 hardcode_shlibpath_var=no 8765 ;; 8766 8767 newsos6) 8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8769 hardcode_direct=yes 8770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8771 hardcode_libdir_separator=: 8772 hardcode_shlibpath_var=no 8773 ;; 8774 8775 openbsd*) 8776 if test -f /usr/libexec/ld.so; then 8777 hardcode_direct=yes 8778 hardcode_shlibpath_var=no 8779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8780 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8781 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8782 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8783 export_dynamic_flag_spec='${wl}-E' 8784 else 8785 case $host_os in 8786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8788 hardcode_libdir_flag_spec='-R$libdir' 8789 ;; 8790 *) 8791 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8793 ;; 8794 esac 8795 fi 8796 else 8797 ld_shlibs=no 8798 fi 8799 ;; 8800 8801 os2*) 8802 hardcode_libdir_flag_spec='-L$libdir' 8803 hardcode_minus_L=yes 8804 allow_undefined_flag=unsupported 8805 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' 8806 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8807 ;; 8808 8809 osf3*) 8810 if test "$GCC" = yes; then 8811 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8812 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8813 else 8814 allow_undefined_flag=' -expect_unresolved \*' 8815 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8816 fi 8817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8818 hardcode_libdir_separator=: 8819 ;; 8820 8821 osf4* | osf5*) # as osf3* with the addition of -msym flag 8822 if test "$GCC" = yes; then 8823 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8824 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8826 else 8827 allow_undefined_flag=' -expect_unresolved \*' 8828 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8829 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8830 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8831 8832 # Both c and cxx compiler support -rpath directly 8833 hardcode_libdir_flag_spec='-rpath $libdir' 8834 fi 8835 hardcode_libdir_separator=: 8836 ;; 8837 8838 solaris*) 8839 no_undefined_flag=' -z text' 8840 if test "$GCC" = yes; then 8841 wlarc='${wl}' 8842 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8843 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8844 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8845 else 8846 wlarc='' 8847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8848 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8850 fi 8851 hardcode_libdir_flag_spec='-R$libdir' 8852 hardcode_shlibpath_var=no 8853 case $host_os in 8854 solaris2.[0-5] | solaris2.[0-5].*) ;; 8855 *) 8856 # The compiler driver will combine and reorder linker options, 8857 # but understands `-z linker_flag'. GCC discards it without `$wl', 8858 # but is careful enough not to reorder. 8859 # Supported since Solaris 2.6 (maybe 2.5.1?) 8860 if test "$GCC" = yes; then 8861 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8862 else 8863 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8864 fi 8865 ;; 8866 esac 8867 link_all_deplibs=yes 8868 ;; 8869 8870 sunos4*) 8871 if test "x$host_vendor" = xsequent; then 8872 # Use $CC to link under sequent, because it throws in some extra .o 8873 # files that make .init and .fini sections work. 8874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8875 else 8876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8877 fi 8878 hardcode_libdir_flag_spec='-L$libdir' 8879 hardcode_direct=yes 8880 hardcode_minus_L=yes 8881 hardcode_shlibpath_var=no 8882 ;; 8883 8884 sysv4) 8885 case $host_vendor in 8886 sni) 8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8888 hardcode_direct=yes # is this really true??? 8889 ;; 8890 siemens) 8891 ## LD is ld it makes a PLAMLIB 8892 ## CC just makes a GrossModule. 8893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8894 reload_cmds='$CC -r -o $output$reload_objs' 8895 hardcode_direct=no 8896 ;; 8897 motorola) 8898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8900 ;; 8901 esac 8902 runpath_var='LD_RUN_PATH' 8903 hardcode_shlibpath_var=no 8904 ;; 8905 8906 sysv4.3*) 8907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8908 hardcode_shlibpath_var=no 8909 export_dynamic_flag_spec='-Bexport' 8910 ;; 8911 8912 sysv4*MP*) 8913 if test -d /usr/nec; then 8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8915 hardcode_shlibpath_var=no 8916 runpath_var=LD_RUN_PATH 8917 hardcode_runpath_var=yes 8918 ld_shlibs=yes 8919 fi 8920 ;; 8921 8922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8923 no_undefined_flag='${wl}-z,text' 8924 archive_cmds_need_lc=no 8925 hardcode_shlibpath_var=no 8926 runpath_var='LD_RUN_PATH' 8927 8928 if test "$GCC" = yes; then 8929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8931 else 8932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8934 fi 8935 ;; 8936 8937 sysv5* | sco3.2v5* | sco5v6*) 8938 # Note: We can NOT use -z defs as we might desire, because we do not 8939 # link with -lc, and that would cause any symbols used from libc to 8940 # always be unresolved, which means just about no library would 8941 # ever link correctly. If we're not using GNU ld we use -z text 8942 # though, which does catch some bad symbols but isn't as heavy-handed 8943 # as -z defs. 8944 no_undefined_flag='${wl}-z,text' 8945 allow_undefined_flag='${wl}-z,nodefs' 8946 archive_cmds_need_lc=no 8947 hardcode_shlibpath_var=no 8948 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8949 hardcode_libdir_separator=':' 8950 link_all_deplibs=yes 8951 export_dynamic_flag_spec='${wl}-Bexport' 8952 runpath_var='LD_RUN_PATH' 8953 8954 if test "$GCC" = yes; then 8955 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8957 else 8958 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8960 fi 8961 ;; 8962 8963 uts4*) 8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8965 hardcode_libdir_flag_spec='-L$libdir' 8966 hardcode_shlibpath_var=no 8967 ;; 8968 8969 *) 8970 ld_shlibs=no 8971 ;; 8972 esac 8973 fi 8974 8975{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8976$as_echo "$ld_shlibs" >&6; } 8977test "$ld_shlibs" = no && can_build_shared=no 8978 8979# 8980# Do we need to explicitly link libc? 8981# 8982case "x$archive_cmds_need_lc" in 8983x|xyes) 8984 # Assume -lc should be added 8985 archive_cmds_need_lc=yes 8986 8987 if test "$enable_shared" = yes && test "$GCC" = yes; then 8988 case $archive_cmds in 8989 *'~'*) 8990 # FIXME: we may have to deal with multi-command sequences. 8991 ;; 8992 '$CC '*) 8993 # Test whether the compiler implicitly links with -lc since on some 8994 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8995 # to ld, don't add -lc before -lgcc. 8996 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8997$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8998 $rm conftest* 8999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9000 9001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9002 (eval $ac_compile) 2>&5 9003 ac_status=$? 9004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 (exit $ac_status); } 2>conftest.err; then 9006 soname=conftest 9007 lib=conftest 9008 libobjs=conftest.$ac_objext 9009 deplibs= 9010 wl=$lt_prog_compiler_wl 9011 pic_flag=$lt_prog_compiler_pic 9012 compiler_flags=-v 9013 linker_flags=-v 9014 verstring= 9015 output_objdir=. 9016 libname=conftest 9017 lt_save_allow_undefined_flag=$allow_undefined_flag 9018 allow_undefined_flag= 9019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9020 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9021 ac_status=$? 9022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9023 (exit $ac_status); } 9024 then 9025 archive_cmds_need_lc=no 9026 else 9027 archive_cmds_need_lc=yes 9028 fi 9029 allow_undefined_flag=$lt_save_allow_undefined_flag 9030 else 9031 cat conftest.err 1>&5 9032 fi 9033 $rm conftest* 9034 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9035$as_echo "$archive_cmds_need_lc" >&6; } 9036 ;; 9037 esac 9038 fi 9039 ;; 9040esac 9041 9042{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9043$as_echo_n "checking dynamic linker characteristics... " >&6; } 9044library_names_spec= 9045libname_spec='lib$name' 9046soname_spec= 9047shrext_cmds=".so" 9048postinstall_cmds= 9049postuninstall_cmds= 9050finish_cmds= 9051finish_eval= 9052shlibpath_var= 9053shlibpath_overrides_runpath=unknown 9054version_type=none 9055dynamic_linker="$host_os ld.so" 9056sys_lib_dlsearch_path_spec="/lib /usr/lib" 9057 9058if test "$GCC" = yes; then 9059 case $host_os in 9060 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9061 *) lt_awk_arg="/^libraries:/" ;; 9062 esac 9063 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9064 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9065 # if the path contains ";" then we assume it to be the separator 9066 # otherwise default to the standard path separator (i.e. ":") - it is 9067 # assumed that no part of a normal pathname contains ";" but that should 9068 # okay in the real world where ";" in dirpaths is itself problematic. 9069 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9070 else 9071 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9072 fi 9073 # Ok, now we have the path, separated by spaces, we can step through it 9074 # and add multilib dir if necessary. 9075 lt_tmp_lt_search_path_spec= 9076 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9077 for lt_sys_path in $lt_search_path_spec; do 9078 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9079 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9080 else 9081 test -d "$lt_sys_path" && \ 9082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9083 fi 9084 done 9085 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9086BEGIN {RS=" "; FS="/|\n";} { 9087 lt_foo=""; 9088 lt_count=0; 9089 for (lt_i = NF; lt_i > 0; lt_i--) { 9090 if ($lt_i != "" && $lt_i != ".") { 9091 if ($lt_i == "..") { 9092 lt_count++; 9093 } else { 9094 if (lt_count == 0) { 9095 lt_foo="/" $lt_i lt_foo; 9096 } else { 9097 lt_count--; 9098 } 9099 } 9100 } 9101 } 9102 if (lt_foo != "") { lt_freq[lt_foo]++; } 9103 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9104}'` 9105 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9106else 9107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9108fi 9109need_lib_prefix=unknown 9110hardcode_into_libs=no 9111 9112# when you set need_version to no, make sure it does not cause -set_version 9113# flags to be left without arguments 9114need_version=unknown 9115 9116case $host_os in 9117aix3*) 9118 version_type=linux 9119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9120 shlibpath_var=LIBPATH 9121 9122 # AIX 3 has no versioning support, so we append a major version to the name. 9123 soname_spec='${libname}${release}${shared_ext}$major' 9124 ;; 9125 9126aix[4-9]*) 9127 version_type=linux 9128 need_lib_prefix=no 9129 need_version=no 9130 hardcode_into_libs=yes 9131 if test "$host_cpu" = ia64; then 9132 # AIX 5 supports IA64 9133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9134 shlibpath_var=LD_LIBRARY_PATH 9135 else 9136 # With GCC up to 2.95.x, collect2 would create an import file 9137 # for dependence libraries. The import file would start with 9138 # the line `#! .'. This would cause the generated library to 9139 # depend on `.', always an invalid library. This was fixed in 9140 # development snapshots of GCC prior to 3.0. 9141 case $host_os in 9142 aix4 | aix4.[01] | aix4.[01].*) 9143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9144 echo ' yes ' 9145 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9146 : 9147 else 9148 can_build_shared=no 9149 fi 9150 ;; 9151 esac 9152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9153 # soname into executable. Probably we can add versioning support to 9154 # collect2, so additional links can be useful in future. 9155 if test "$aix_use_runtimelinking" = yes; then 9156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9157 # instead of lib<name>.a to let people know that these are not 9158 # typical AIX shared libraries. 9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9160 else 9161 # We preserve .a as extension for shared libraries through AIX4.2 9162 # and later when we are not doing run time linking. 9163 library_names_spec='${libname}${release}.a $libname.a' 9164 soname_spec='${libname}${release}${shared_ext}$major' 9165 fi 9166 shlibpath_var=LIBPATH 9167 fi 9168 ;; 9169 9170amigaos*) 9171 library_names_spec='$libname.ixlibrary $libname.a' 9172 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9173 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' 9174 ;; 9175 9176beos*) 9177 library_names_spec='${libname}${shared_ext}' 9178 dynamic_linker="$host_os ld.so" 9179 shlibpath_var=LIBRARY_PATH 9180 ;; 9181 9182bsdi[45]*) 9183 version_type=linux 9184 need_version=no 9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9186 soname_spec='${libname}${release}${shared_ext}$major' 9187 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9188 shlibpath_var=LD_LIBRARY_PATH 9189 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9190 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9191 # the default ld.so.conf also contains /usr/contrib/lib and 9192 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9193 # libtool to hard-code these into programs 9194 ;; 9195 9196cygwin* | mingw* | pw32*) 9197 version_type=windows 9198 shrext_cmds=".dll" 9199 need_version=no 9200 need_lib_prefix=no 9201 9202 case $GCC,$host_os in 9203 yes,cygwin* | yes,mingw* | yes,pw32*) 9204 library_names_spec='$libname.dll.a' 9205 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9206 postinstall_cmds='base_file=`basename \${file}`~ 9207 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9208 dldir=$destdir/`dirname \$dlpath`~ 9209 test -d \$dldir || mkdir -p \$dldir~ 9210 $install_prog $dir/$dlname \$dldir/$dlname~ 9211 chmod a+x \$dldir/$dlname' 9212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9213 dlpath=$dir/\$dldll~ 9214 $rm \$dlpath' 9215 shlibpath_overrides_runpath=yes 9216 9217 case $host_os in 9218 cygwin*) 9219 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9220 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9221 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9222 ;; 9223 mingw*) 9224 # MinGW DLLs use traditional 'lib' prefix 9225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9226 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9227 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9228 # It is most probably a Windows format PATH printed by 9229 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9230 # path with ; separators, and with drive letters. We can handle the 9231 # drive letters (cygwin fileutils understands them), so leave them, 9232 # especially as we might pass files found there to a mingw objdump, 9233 # which wouldn't understand a cygwinified path. Ahh. 9234 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9235 else 9236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9237 fi 9238 ;; 9239 pw32*) 9240 # pw32 DLLs use 'pw' prefix rather than 'lib' 9241 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9242 ;; 9243 esac 9244 ;; 9245 9246 *) 9247 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9248 ;; 9249 esac 9250 dynamic_linker='Win32 ld.exe' 9251 # FIXME: first we should search . and the directory the executable is in 9252 shlibpath_var=PATH 9253 ;; 9254 9255darwin* | rhapsody*) 9256 dynamic_linker="$host_os dyld" 9257 version_type=darwin 9258 need_lib_prefix=no 9259 need_version=no 9260 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9261 soname_spec='${libname}${release}${major}$shared_ext' 9262 shlibpath_overrides_runpath=yes 9263 shlibpath_var=DYLD_LIBRARY_PATH 9264 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9265 9266 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9267 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9268 ;; 9269 9270dgux*) 9271 version_type=linux 9272 need_lib_prefix=no 9273 need_version=no 9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9275 soname_spec='${libname}${release}${shared_ext}$major' 9276 shlibpath_var=LD_LIBRARY_PATH 9277 ;; 9278 9279freebsd1*) 9280 dynamic_linker=no 9281 ;; 9282 9283freebsd* | dragonfly*) 9284 # DragonFly does not have aout. When/if they implement a new 9285 # versioning mechanism, adjust this. 9286 if test -x /usr/bin/objformat; then 9287 objformat=`/usr/bin/objformat` 9288 else 9289 case $host_os in 9290 freebsd[123]*) objformat=aout ;; 9291 *) objformat=elf ;; 9292 esac 9293 fi 9294 version_type=freebsd-$objformat 9295 case $version_type in 9296 freebsd-elf*) 9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9298 need_version=no 9299 need_lib_prefix=no 9300 ;; 9301 freebsd-*) 9302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9303 need_version=yes 9304 ;; 9305 esac 9306 shlibpath_var=LD_LIBRARY_PATH 9307 case $host_os in 9308 freebsd2*) 9309 shlibpath_overrides_runpath=yes 9310 ;; 9311 freebsd3.[01]* | freebsdelf3.[01]*) 9312 shlibpath_overrides_runpath=yes 9313 hardcode_into_libs=yes 9314 ;; 9315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9317 shlibpath_overrides_runpath=no 9318 hardcode_into_libs=yes 9319 ;; 9320 *) # from 4.6 on, and DragonFly 9321 shlibpath_overrides_runpath=yes 9322 hardcode_into_libs=yes 9323 ;; 9324 esac 9325 ;; 9326 9327gnu*) 9328 version_type=linux 9329 need_lib_prefix=no 9330 need_version=no 9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9332 soname_spec='${libname}${release}${shared_ext}$major' 9333 shlibpath_var=LD_LIBRARY_PATH 9334 hardcode_into_libs=yes 9335 ;; 9336 9337hpux9* | hpux10* | hpux11*) 9338 # Give a soname corresponding to the major version so that dld.sl refuses to 9339 # link against other versions. 9340 version_type=sunos 9341 need_lib_prefix=no 9342 need_version=no 9343 case $host_cpu in 9344 ia64*) 9345 shrext_cmds='.so' 9346 hardcode_into_libs=yes 9347 dynamic_linker="$host_os dld.so" 9348 shlibpath_var=LD_LIBRARY_PATH 9349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9351 soname_spec='${libname}${release}${shared_ext}$major' 9352 if test "X$HPUX_IA64_MODE" = X32; then 9353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9354 else 9355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9356 fi 9357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9358 ;; 9359 hppa*64*) 9360 shrext_cmds='.sl' 9361 hardcode_into_libs=yes 9362 dynamic_linker="$host_os dld.sl" 9363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9366 soname_spec='${libname}${release}${shared_ext}$major' 9367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9369 ;; 9370 *) 9371 shrext_cmds='.sl' 9372 dynamic_linker="$host_os dld.sl" 9373 shlibpath_var=SHLIB_PATH 9374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9376 soname_spec='${libname}${release}${shared_ext}$major' 9377 ;; 9378 esac 9379 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9380 postinstall_cmds='chmod 555 $lib' 9381 ;; 9382 9383interix[3-9]*) 9384 version_type=linux 9385 need_lib_prefix=no 9386 need_version=no 9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9388 soname_spec='${libname}${release}${shared_ext}$major' 9389 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9390 shlibpath_var=LD_LIBRARY_PATH 9391 shlibpath_overrides_runpath=no 9392 hardcode_into_libs=yes 9393 ;; 9394 9395irix5* | irix6* | nonstopux*) 9396 case $host_os in 9397 nonstopux*) version_type=nonstopux ;; 9398 *) 9399 if test "$lt_cv_prog_gnu_ld" = yes; then 9400 version_type=linux 9401 else 9402 version_type=irix 9403 fi ;; 9404 esac 9405 need_lib_prefix=no 9406 need_version=no 9407 soname_spec='${libname}${release}${shared_ext}$major' 9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9409 case $host_os in 9410 irix5* | nonstopux*) 9411 libsuff= shlibsuff= 9412 ;; 9413 *) 9414 case $LD in # libtool.m4 will add one of these switches to LD 9415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9416 libsuff= shlibsuff= libmagic=32-bit;; 9417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9418 libsuff=32 shlibsuff=N32 libmagic=N32;; 9419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9420 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9421 *) libsuff= shlibsuff= libmagic=never-match;; 9422 esac 9423 ;; 9424 esac 9425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9426 shlibpath_overrides_runpath=no 9427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9429 hardcode_into_libs=yes 9430 ;; 9431 9432# No shared lib support for Linux oldld, aout, or coff. 9433linux*oldld* | linux*aout* | linux*coff*) 9434 dynamic_linker=no 9435 ;; 9436 9437# This must be Linux ELF. 9438linux* | k*bsd*-gnu) 9439 version_type=linux 9440 need_lib_prefix=no 9441 need_version=no 9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9443 soname_spec='${libname}${release}${shared_ext}$major' 9444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9445 shlibpath_var=LD_LIBRARY_PATH 9446 shlibpath_overrides_runpath=no 9447 # This implies no fast_install, which is unacceptable. 9448 # Some rework will be needed to allow for fast_install 9449 # before this can be enabled. 9450 hardcode_into_libs=yes 9451 9452 # find out which ABI we are using 9453 libsuff= 9454 case "$host_cpu" in 9455 x86_64*|s390x*|powerpc64*) 9456 echo '#line 9456 "configure"' > conftest.$ac_ext 9457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9458 (eval $ac_compile) 2>&5 9459 ac_status=$? 9460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9461 (exit $ac_status); }; then 9462 case `/usr/bin/file conftest.$ac_objext` in 9463 *64-bit*) 9464 libsuff=64 9465 ;; 9466 esac 9467 fi 9468 rm -rf conftest* 9469 ;; 9470 esac 9471 9472 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 9473 9474 # Append ld.so.conf contents to the search path 9475 if test -f /etc/ld.so.conf; then 9476 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' ' '` 9477 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9478 fi 9479 9480 # We used to test for /lib/ld.so.1 and disable shared libraries on 9481 # powerpc, because MkLinux only supported shared libraries with the 9482 # GNU dynamic linker. Since this was broken with cross compilers, 9483 # most powerpc-linux boxes support dynamic linking these days and 9484 # people can always --disable-shared, the test was removed, and we 9485 # assume the GNU/Linux dynamic linker is in use. 9486 dynamic_linker='GNU/Linux ld.so' 9487 ;; 9488 9489netbsd*) 9490 version_type=sunos 9491 need_lib_prefix=no 9492 need_version=no 9493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9496 dynamic_linker='NetBSD (a.out) ld.so' 9497 else 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9499 soname_spec='${libname}${release}${shared_ext}$major' 9500 dynamic_linker='NetBSD ld.elf_so' 9501 fi 9502 shlibpath_var=LD_LIBRARY_PATH 9503 shlibpath_overrides_runpath=yes 9504 hardcode_into_libs=yes 9505 ;; 9506 9507newsos6) 9508 version_type=linux 9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9510 shlibpath_var=LD_LIBRARY_PATH 9511 shlibpath_overrides_runpath=yes 9512 ;; 9513 9514nto-qnx*) 9515 version_type=linux 9516 need_lib_prefix=no 9517 need_version=no 9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9519 soname_spec='${libname}${release}${shared_ext}$major' 9520 shlibpath_var=LD_LIBRARY_PATH 9521 shlibpath_overrides_runpath=yes 9522 ;; 9523 9524openbsd*) 9525 version_type=sunos 9526 sys_lib_dlsearch_path_spec="/usr/lib" 9527 need_lib_prefix=no 9528 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9529 case $host_os in 9530 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9531 *) need_version=no ;; 9532 esac 9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9535 shlibpath_var=LD_LIBRARY_PATH 9536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9537 case $host_os in 9538 openbsd2.[89] | openbsd2.[89].*) 9539 shlibpath_overrides_runpath=no 9540 ;; 9541 *) 9542 shlibpath_overrides_runpath=yes 9543 ;; 9544 esac 9545 else 9546 shlibpath_overrides_runpath=yes 9547 fi 9548 ;; 9549 9550os2*) 9551 libname_spec='$name' 9552 shrext_cmds=".dll" 9553 need_lib_prefix=no 9554 library_names_spec='$libname${shared_ext} $libname.a' 9555 dynamic_linker='OS/2 ld.exe' 9556 shlibpath_var=LIBPATH 9557 ;; 9558 9559osf3* | osf4* | osf5*) 9560 version_type=osf 9561 need_lib_prefix=no 9562 need_version=no 9563 soname_spec='${libname}${release}${shared_ext}$major' 9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9565 shlibpath_var=LD_LIBRARY_PATH 9566 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9567 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9568 ;; 9569 9570rdos*) 9571 dynamic_linker=no 9572 ;; 9573 9574solaris*) 9575 version_type=linux 9576 need_lib_prefix=no 9577 need_version=no 9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9579 soname_spec='${libname}${release}${shared_ext}$major' 9580 shlibpath_var=LD_LIBRARY_PATH 9581 shlibpath_overrides_runpath=yes 9582 hardcode_into_libs=yes 9583 # ldd complains unless libraries are executable 9584 postinstall_cmds='chmod +x $lib' 9585 ;; 9586 9587sunos4*) 9588 version_type=sunos 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9590 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9591 shlibpath_var=LD_LIBRARY_PATH 9592 shlibpath_overrides_runpath=yes 9593 if test "$with_gnu_ld" = yes; then 9594 need_lib_prefix=no 9595 fi 9596 need_version=yes 9597 ;; 9598 9599sysv4 | sysv4.3*) 9600 version_type=linux 9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9602 soname_spec='${libname}${release}${shared_ext}$major' 9603 shlibpath_var=LD_LIBRARY_PATH 9604 case $host_vendor in 9605 sni) 9606 shlibpath_overrides_runpath=no 9607 need_lib_prefix=no 9608 export_dynamic_flag_spec='${wl}-Blargedynsym' 9609 runpath_var=LD_RUN_PATH 9610 ;; 9611 siemens) 9612 need_lib_prefix=no 9613 ;; 9614 motorola) 9615 need_lib_prefix=no 9616 need_version=no 9617 shlibpath_overrides_runpath=no 9618 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9619 ;; 9620 esac 9621 ;; 9622 9623sysv4*MP*) 9624 if test -d /usr/nec ;then 9625 version_type=linux 9626 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9627 soname_spec='$libname${shared_ext}.$major' 9628 shlibpath_var=LD_LIBRARY_PATH 9629 fi 9630 ;; 9631 9632sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9633 version_type=freebsd-elf 9634 need_lib_prefix=no 9635 need_version=no 9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9637 soname_spec='${libname}${release}${shared_ext}$major' 9638 shlibpath_var=LD_LIBRARY_PATH 9639 hardcode_into_libs=yes 9640 if test "$with_gnu_ld" = yes; then 9641 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9642 shlibpath_overrides_runpath=no 9643 else 9644 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9645 shlibpath_overrides_runpath=yes 9646 case $host_os in 9647 sco3.2v5*) 9648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9649 ;; 9650 esac 9651 fi 9652 sys_lib_dlsearch_path_spec='/usr/lib' 9653 ;; 9654 9655uts4*) 9656 version_type=linux 9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9658 soname_spec='${libname}${release}${shared_ext}$major' 9659 shlibpath_var=LD_LIBRARY_PATH 9660 ;; 9661 9662*) 9663 dynamic_linker=no 9664 ;; 9665esac 9666{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9667$as_echo "$dynamic_linker" >&6; } 9668test "$dynamic_linker" = no && can_build_shared=no 9669 9670if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9671 $as_echo_n "(cached) " >&6 9672else 9673 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9674fi 9675 9676sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9677if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9678 $as_echo_n "(cached) " >&6 9679else 9680 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9681fi 9682 9683sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9684 9685variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9686if test "$GCC" = yes; then 9687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9688fi 9689 9690{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9691$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9692hardcode_action= 9693if test -n "$hardcode_libdir_flag_spec" || \ 9694 test -n "$runpath_var" || \ 9695 test "X$hardcode_automatic" = "Xyes" ; then 9696 9697 # We can hardcode non-existant directories. 9698 if test "$hardcode_direct" != no && 9699 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9700 # have to relink, otherwise we might link with an installed library 9701 # when we should be linking with a yet-to-be-installed one 9702 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9703 test "$hardcode_minus_L" != no; then 9704 # Linking always hardcodes the temporary library directory. 9705 hardcode_action=relink 9706 else 9707 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9708 hardcode_action=immediate 9709 fi 9710else 9711 # We cannot hardcode anything, or else we can only hardcode existing 9712 # directories. 9713 hardcode_action=unsupported 9714fi 9715{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9716$as_echo "$hardcode_action" >&6; } 9717 9718if test "$hardcode_action" = relink; then 9719 # Fast installation is not supported 9720 enable_fast_install=no 9721elif test "$shlibpath_overrides_runpath" = yes || 9722 test "$enable_shared" = no; then 9723 # Fast installation is not necessary 9724 enable_fast_install=needless 9725fi 9726 9727striplib= 9728old_striplib= 9729{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9730$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9731if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9733 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9734 { $as_echo "$as_me:$LINENO: result: yes" >&5 9735$as_echo "yes" >&6; } 9736else 9737# FIXME - insert some real tests, host_os isn't really good enough 9738 case $host_os in 9739 darwin*) 9740 if test -n "$STRIP" ; then 9741 striplib="$STRIP -x" 9742 old_striplib="$STRIP -S" 9743 { $as_echo "$as_me:$LINENO: result: yes" >&5 9744$as_echo "yes" >&6; } 9745 else 9746 { $as_echo "$as_me:$LINENO: result: no" >&5 9747$as_echo "no" >&6; } 9748fi 9749 ;; 9750 *) 9751 { $as_echo "$as_me:$LINENO: result: no" >&5 9752$as_echo "no" >&6; } 9753 ;; 9754 esac 9755fi 9756 9757if test "x$enable_dlopen" != xyes; then 9758 enable_dlopen=unknown 9759 enable_dlopen_self=unknown 9760 enable_dlopen_self_static=unknown 9761else 9762 lt_cv_dlopen=no 9763 lt_cv_dlopen_libs= 9764 9765 case $host_os in 9766 beos*) 9767 lt_cv_dlopen="load_add_on" 9768 lt_cv_dlopen_libs= 9769 lt_cv_dlopen_self=yes 9770 ;; 9771 9772 mingw* | pw32*) 9773 lt_cv_dlopen="LoadLibrary" 9774 lt_cv_dlopen_libs= 9775 ;; 9776 9777 cygwin*) 9778 lt_cv_dlopen="dlopen" 9779 lt_cv_dlopen_libs= 9780 ;; 9781 9782 darwin*) 9783 # if libdl is installed we need to link against it 9784 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9785$as_echo_n "checking for dlopen in -ldl... " >&6; } 9786if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9787 $as_echo_n "(cached) " >&6 9788else 9789 ac_check_lib_save_LIBS=$LIBS 9790LIBS="-ldl $LIBS" 9791cat >conftest.$ac_ext <<_ACEOF 9792/* confdefs.h. */ 9793_ACEOF 9794cat confdefs.h >>conftest.$ac_ext 9795cat >>conftest.$ac_ext <<_ACEOF 9796/* end confdefs.h. */ 9797 9798/* Override any GCC internal prototype to avoid an error. 9799 Use char because int might match the return type of a GCC 9800 builtin and then its argument prototype would still apply. */ 9801#ifdef __cplusplus 9802extern "C" 9803#endif 9804char dlopen (); 9805int 9806main () 9807{ 9808return dlopen (); 9809 ; 9810 return 0; 9811} 9812_ACEOF 9813rm -f conftest.$ac_objext conftest$ac_exeext 9814if { (ac_try="$ac_link" 9815case "(($ac_try" in 9816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9817 *) ac_try_echo=$ac_try;; 9818esac 9819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9820$as_echo "$ac_try_echo") >&5 9821 (eval "$ac_link") 2>conftest.er1 9822 ac_status=$? 9823 grep -v '^ *+' conftest.er1 >conftest.err 9824 rm -f conftest.er1 9825 cat conftest.err >&5 9826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9827 (exit $ac_status); } && { 9828 test -z "$ac_c_werror_flag" || 9829 test ! -s conftest.err 9830 } && test -s conftest$ac_exeext && { 9831 test "$cross_compiling" = yes || 9832 $as_test_x conftest$ac_exeext 9833 }; then 9834 ac_cv_lib_dl_dlopen=yes 9835else 9836 $as_echo "$as_me: failed program was:" >&5 9837sed 's/^/| /' conftest.$ac_ext >&5 9838 9839 ac_cv_lib_dl_dlopen=no 9840fi 9841 9842rm -rf conftest.dSYM 9843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9844 conftest$ac_exeext conftest.$ac_ext 9845LIBS=$ac_check_lib_save_LIBS 9846fi 9847{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9848$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9849if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 9850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9851else 9852 9853 lt_cv_dlopen="dyld" 9854 lt_cv_dlopen_libs= 9855 lt_cv_dlopen_self=yes 9856 9857fi 9858 9859 ;; 9860 9861 *) 9862 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9863$as_echo_n "checking for shl_load... " >&6; } 9864if test "${ac_cv_func_shl_load+set}" = set; then 9865 $as_echo_n "(cached) " >&6 9866else 9867 cat >conftest.$ac_ext <<_ACEOF 9868/* confdefs.h. */ 9869_ACEOF 9870cat confdefs.h >>conftest.$ac_ext 9871cat >>conftest.$ac_ext <<_ACEOF 9872/* end confdefs.h. */ 9873/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9874 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9875#define shl_load innocuous_shl_load 9876 9877/* System header to define __stub macros and hopefully few prototypes, 9878 which can conflict with char shl_load (); below. 9879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9880 <limits.h> exists even on freestanding compilers. */ 9881 9882#ifdef __STDC__ 9883# include <limits.h> 9884#else 9885# include <assert.h> 9886#endif 9887 9888#undef shl_load 9889 9890/* Override any GCC internal prototype to avoid an error. 9891 Use char because int might match the return type of a GCC 9892 builtin and then its argument prototype would still apply. */ 9893#ifdef __cplusplus 9894extern "C" 9895#endif 9896char shl_load (); 9897/* The GNU C library defines this for functions which it implements 9898 to always fail with ENOSYS. Some functions are actually named 9899 something starting with __ and the normal name is an alias. */ 9900#if defined __stub_shl_load || defined __stub___shl_load 9901choke me 9902#endif 9903 9904int 9905main () 9906{ 9907return shl_load (); 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912rm -f conftest.$ac_objext conftest$ac_exeext 9913if { (ac_try="$ac_link" 9914case "(($ac_try" in 9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9916 *) ac_try_echo=$ac_try;; 9917esac 9918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9919$as_echo "$ac_try_echo") >&5 9920 (eval "$ac_link") 2>conftest.er1 9921 ac_status=$? 9922 grep -v '^ *+' conftest.er1 >conftest.err 9923 rm -f conftest.er1 9924 cat conftest.err >&5 9925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 (exit $ac_status); } && { 9927 test -z "$ac_c_werror_flag" || 9928 test ! -s conftest.err 9929 } && test -s conftest$ac_exeext && { 9930 test "$cross_compiling" = yes || 9931 $as_test_x conftest$ac_exeext 9932 }; then 9933 ac_cv_func_shl_load=yes 9934else 9935 $as_echo "$as_me: failed program was:" >&5 9936sed 's/^/| /' conftest.$ac_ext >&5 9937 9938 ac_cv_func_shl_load=no 9939fi 9940 9941rm -rf conftest.dSYM 9942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9943 conftest$ac_exeext conftest.$ac_ext 9944fi 9945{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9946$as_echo "$ac_cv_func_shl_load" >&6; } 9947if test "x$ac_cv_func_shl_load" = x""yes; then 9948 lt_cv_dlopen="shl_load" 9949else 9950 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9951$as_echo_n "checking for shl_load in -ldld... " >&6; } 9952if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9953 $as_echo_n "(cached) " >&6 9954else 9955 ac_check_lib_save_LIBS=$LIBS 9956LIBS="-ldld $LIBS" 9957cat >conftest.$ac_ext <<_ACEOF 9958/* confdefs.h. */ 9959_ACEOF 9960cat confdefs.h >>conftest.$ac_ext 9961cat >>conftest.$ac_ext <<_ACEOF 9962/* end confdefs.h. */ 9963 9964/* Override any GCC internal prototype to avoid an error. 9965 Use char because int might match the return type of a GCC 9966 builtin and then its argument prototype would still apply. */ 9967#ifdef __cplusplus 9968extern "C" 9969#endif 9970char shl_load (); 9971int 9972main () 9973{ 9974return shl_load (); 9975 ; 9976 return 0; 9977} 9978_ACEOF 9979rm -f conftest.$ac_objext conftest$ac_exeext 9980if { (ac_try="$ac_link" 9981case "(($ac_try" in 9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9983 *) ac_try_echo=$ac_try;; 9984esac 9985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9986$as_echo "$ac_try_echo") >&5 9987 (eval "$ac_link") 2>conftest.er1 9988 ac_status=$? 9989 grep -v '^ *+' conftest.er1 >conftest.err 9990 rm -f conftest.er1 9991 cat conftest.err >&5 9992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9993 (exit $ac_status); } && { 9994 test -z "$ac_c_werror_flag" || 9995 test ! -s conftest.err 9996 } && test -s conftest$ac_exeext && { 9997 test "$cross_compiling" = yes || 9998 $as_test_x conftest$ac_exeext 9999 }; then 10000 ac_cv_lib_dld_shl_load=yes 10001else 10002 $as_echo "$as_me: failed program was:" >&5 10003sed 's/^/| /' conftest.$ac_ext >&5 10004 10005 ac_cv_lib_dld_shl_load=no 10006fi 10007 10008rm -rf conftest.dSYM 10009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10010 conftest$ac_exeext conftest.$ac_ext 10011LIBS=$ac_check_lib_save_LIBS 10012fi 10013{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10014$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10015if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10016 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10017else 10018 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10019$as_echo_n "checking for dlopen... " >&6; } 10020if test "${ac_cv_func_dlopen+set}" = set; then 10021 $as_echo_n "(cached) " >&6 10022else 10023 cat >conftest.$ac_ext <<_ACEOF 10024/* confdefs.h. */ 10025_ACEOF 10026cat confdefs.h >>conftest.$ac_ext 10027cat >>conftest.$ac_ext <<_ACEOF 10028/* end confdefs.h. */ 10029/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10030 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10031#define dlopen innocuous_dlopen 10032 10033/* System header to define __stub macros and hopefully few prototypes, 10034 which can conflict with char dlopen (); below. 10035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10036 <limits.h> exists even on freestanding compilers. */ 10037 10038#ifdef __STDC__ 10039# include <limits.h> 10040#else 10041# include <assert.h> 10042#endif 10043 10044#undef dlopen 10045 10046/* Override any GCC internal prototype to avoid an error. 10047 Use char because int might match the return type of a GCC 10048 builtin and then its argument prototype would still apply. */ 10049#ifdef __cplusplus 10050extern "C" 10051#endif 10052char dlopen (); 10053/* The GNU C library defines this for functions which it implements 10054 to always fail with ENOSYS. Some functions are actually named 10055 something starting with __ and the normal name is an alias. */ 10056#if defined __stub_dlopen || defined __stub___dlopen 10057choke me 10058#endif 10059 10060int 10061main () 10062{ 10063return dlopen (); 10064 ; 10065 return 0; 10066} 10067_ACEOF 10068rm -f conftest.$ac_objext conftest$ac_exeext 10069if { (ac_try="$ac_link" 10070case "(($ac_try" in 10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10072 *) ac_try_echo=$ac_try;; 10073esac 10074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10075$as_echo "$ac_try_echo") >&5 10076 (eval "$ac_link") 2>conftest.er1 10077 ac_status=$? 10078 grep -v '^ *+' conftest.er1 >conftest.err 10079 rm -f conftest.er1 10080 cat conftest.err >&5 10081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10082 (exit $ac_status); } && { 10083 test -z "$ac_c_werror_flag" || 10084 test ! -s conftest.err 10085 } && test -s conftest$ac_exeext && { 10086 test "$cross_compiling" = yes || 10087 $as_test_x conftest$ac_exeext 10088 }; then 10089 ac_cv_func_dlopen=yes 10090else 10091 $as_echo "$as_me: failed program was:" >&5 10092sed 's/^/| /' conftest.$ac_ext >&5 10093 10094 ac_cv_func_dlopen=no 10095fi 10096 10097rm -rf conftest.dSYM 10098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10099 conftest$ac_exeext conftest.$ac_ext 10100fi 10101{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10102$as_echo "$ac_cv_func_dlopen" >&6; } 10103if test "x$ac_cv_func_dlopen" = x""yes; then 10104 lt_cv_dlopen="dlopen" 10105else 10106 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10107$as_echo_n "checking for dlopen in -ldl... " >&6; } 10108if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10109 $as_echo_n "(cached) " >&6 10110else 10111 ac_check_lib_save_LIBS=$LIBS 10112LIBS="-ldl $LIBS" 10113cat >conftest.$ac_ext <<_ACEOF 10114/* confdefs.h. */ 10115_ACEOF 10116cat confdefs.h >>conftest.$ac_ext 10117cat >>conftest.$ac_ext <<_ACEOF 10118/* end confdefs.h. */ 10119 10120/* Override any GCC internal prototype to avoid an error. 10121 Use char because int might match the return type of a GCC 10122 builtin and then its argument prototype would still apply. */ 10123#ifdef __cplusplus 10124extern "C" 10125#endif 10126char dlopen (); 10127int 10128main () 10129{ 10130return dlopen (); 10131 ; 10132 return 0; 10133} 10134_ACEOF 10135rm -f conftest.$ac_objext conftest$ac_exeext 10136if { (ac_try="$ac_link" 10137case "(($ac_try" in 10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10139 *) ac_try_echo=$ac_try;; 10140esac 10141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10142$as_echo "$ac_try_echo") >&5 10143 (eval "$ac_link") 2>conftest.er1 10144 ac_status=$? 10145 grep -v '^ *+' conftest.er1 >conftest.err 10146 rm -f conftest.er1 10147 cat conftest.err >&5 10148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10149 (exit $ac_status); } && { 10150 test -z "$ac_c_werror_flag" || 10151 test ! -s conftest.err 10152 } && test -s conftest$ac_exeext && { 10153 test "$cross_compiling" = yes || 10154 $as_test_x conftest$ac_exeext 10155 }; then 10156 ac_cv_lib_dl_dlopen=yes 10157else 10158 $as_echo "$as_me: failed program was:" >&5 10159sed 's/^/| /' conftest.$ac_ext >&5 10160 10161 ac_cv_lib_dl_dlopen=no 10162fi 10163 10164rm -rf conftest.dSYM 10165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10166 conftest$ac_exeext conftest.$ac_ext 10167LIBS=$ac_check_lib_save_LIBS 10168fi 10169{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10170$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10171if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10173else 10174 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10175$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10176if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10177 $as_echo_n "(cached) " >&6 10178else 10179 ac_check_lib_save_LIBS=$LIBS 10180LIBS="-lsvld $LIBS" 10181cat >conftest.$ac_ext <<_ACEOF 10182/* confdefs.h. */ 10183_ACEOF 10184cat confdefs.h >>conftest.$ac_ext 10185cat >>conftest.$ac_ext <<_ACEOF 10186/* end confdefs.h. */ 10187 10188/* Override any GCC internal prototype to avoid an error. 10189 Use char because int might match the return type of a GCC 10190 builtin and then its argument prototype would still apply. */ 10191#ifdef __cplusplus 10192extern "C" 10193#endif 10194char dlopen (); 10195int 10196main () 10197{ 10198return dlopen (); 10199 ; 10200 return 0; 10201} 10202_ACEOF 10203rm -f conftest.$ac_objext conftest$ac_exeext 10204if { (ac_try="$ac_link" 10205case "(($ac_try" in 10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10207 *) ac_try_echo=$ac_try;; 10208esac 10209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10210$as_echo "$ac_try_echo") >&5 10211 (eval "$ac_link") 2>conftest.er1 10212 ac_status=$? 10213 grep -v '^ *+' conftest.er1 >conftest.err 10214 rm -f conftest.er1 10215 cat conftest.err >&5 10216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 (exit $ac_status); } && { 10218 test -z "$ac_c_werror_flag" || 10219 test ! -s conftest.err 10220 } && test -s conftest$ac_exeext && { 10221 test "$cross_compiling" = yes || 10222 $as_test_x conftest$ac_exeext 10223 }; then 10224 ac_cv_lib_svld_dlopen=yes 10225else 10226 $as_echo "$as_me: failed program was:" >&5 10227sed 's/^/| /' conftest.$ac_ext >&5 10228 10229 ac_cv_lib_svld_dlopen=no 10230fi 10231 10232rm -rf conftest.dSYM 10233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10234 conftest$ac_exeext conftest.$ac_ext 10235LIBS=$ac_check_lib_save_LIBS 10236fi 10237{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10238$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10239if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10241else 10242 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10243$as_echo_n "checking for dld_link in -ldld... " >&6; } 10244if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10245 $as_echo_n "(cached) " >&6 10246else 10247 ac_check_lib_save_LIBS=$LIBS 10248LIBS="-ldld $LIBS" 10249cat >conftest.$ac_ext <<_ACEOF 10250/* confdefs.h. */ 10251_ACEOF 10252cat confdefs.h >>conftest.$ac_ext 10253cat >>conftest.$ac_ext <<_ACEOF 10254/* end confdefs.h. */ 10255 10256/* Override any GCC internal prototype to avoid an error. 10257 Use char because int might match the return type of a GCC 10258 builtin and then its argument prototype would still apply. */ 10259#ifdef __cplusplus 10260extern "C" 10261#endif 10262char dld_link (); 10263int 10264main () 10265{ 10266return dld_link (); 10267 ; 10268 return 0; 10269} 10270_ACEOF 10271rm -f conftest.$ac_objext conftest$ac_exeext 10272if { (ac_try="$ac_link" 10273case "(($ac_try" in 10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10275 *) ac_try_echo=$ac_try;; 10276esac 10277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10278$as_echo "$ac_try_echo") >&5 10279 (eval "$ac_link") 2>conftest.er1 10280 ac_status=$? 10281 grep -v '^ *+' conftest.er1 >conftest.err 10282 rm -f conftest.er1 10283 cat conftest.err >&5 10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10285 (exit $ac_status); } && { 10286 test -z "$ac_c_werror_flag" || 10287 test ! -s conftest.err 10288 } && test -s conftest$ac_exeext && { 10289 test "$cross_compiling" = yes || 10290 $as_test_x conftest$ac_exeext 10291 }; then 10292 ac_cv_lib_dld_dld_link=yes 10293else 10294 $as_echo "$as_me: failed program was:" >&5 10295sed 's/^/| /' conftest.$ac_ext >&5 10296 10297 ac_cv_lib_dld_dld_link=no 10298fi 10299 10300rm -rf conftest.dSYM 10301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10302 conftest$ac_exeext conftest.$ac_ext 10303LIBS=$ac_check_lib_save_LIBS 10304fi 10305{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10306$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10307if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10309fi 10310 10311 10312fi 10313 10314 10315fi 10316 10317 10318fi 10319 10320 10321fi 10322 10323 10324fi 10325 10326 ;; 10327 esac 10328 10329 if test "x$lt_cv_dlopen" != xno; then 10330 enable_dlopen=yes 10331 else 10332 enable_dlopen=no 10333 fi 10334 10335 case $lt_cv_dlopen in 10336 dlopen) 10337 save_CPPFLAGS="$CPPFLAGS" 10338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10339 10340 save_LDFLAGS="$LDFLAGS" 10341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10342 10343 save_LIBS="$LIBS" 10344 LIBS="$lt_cv_dlopen_libs $LIBS" 10345 10346 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10347$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10348if test "${lt_cv_dlopen_self+set}" = set; then 10349 $as_echo_n "(cached) " >&6 10350else 10351 if test "$cross_compiling" = yes; then : 10352 lt_cv_dlopen_self=cross 10353else 10354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10355 lt_status=$lt_dlunknown 10356 cat > conftest.$ac_ext <<EOF 10357#line 10357 "configure" 10358#include "confdefs.h" 10359 10360#if HAVE_DLFCN_H 10361#include <dlfcn.h> 10362#endif 10363 10364#include <stdio.h> 10365 10366#ifdef RTLD_GLOBAL 10367# define LT_DLGLOBAL RTLD_GLOBAL 10368#else 10369# ifdef DL_GLOBAL 10370# define LT_DLGLOBAL DL_GLOBAL 10371# else 10372# define LT_DLGLOBAL 0 10373# endif 10374#endif 10375 10376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10377 find out it does not work in some platform. */ 10378#ifndef LT_DLLAZY_OR_NOW 10379# ifdef RTLD_LAZY 10380# define LT_DLLAZY_OR_NOW RTLD_LAZY 10381# else 10382# ifdef DL_LAZY 10383# define LT_DLLAZY_OR_NOW DL_LAZY 10384# else 10385# ifdef RTLD_NOW 10386# define LT_DLLAZY_OR_NOW RTLD_NOW 10387# else 10388# ifdef DL_NOW 10389# define LT_DLLAZY_OR_NOW DL_NOW 10390# else 10391# define LT_DLLAZY_OR_NOW 0 10392# endif 10393# endif 10394# endif 10395# endif 10396#endif 10397 10398#ifdef __cplusplus 10399extern "C" void exit (int); 10400#endif 10401 10402void fnord() { int i=42;} 10403int main () 10404{ 10405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10406 int status = $lt_dlunknown; 10407 10408 if (self) 10409 { 10410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10411 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10412 /* dlclose (self); */ 10413 } 10414 else 10415 puts (dlerror ()); 10416 10417 exit (status); 10418} 10419EOF 10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10421 (eval $ac_link) 2>&5 10422 ac_status=$? 10423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10425 (./conftest; exit; ) >&5 2>/dev/null 10426 lt_status=$? 10427 case x$lt_status in 10428 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10429 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10430 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10431 esac 10432 else : 10433 # compilation failed 10434 lt_cv_dlopen_self=no 10435 fi 10436fi 10437rm -fr conftest* 10438 10439 10440fi 10441{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10442$as_echo "$lt_cv_dlopen_self" >&6; } 10443 10444 if test "x$lt_cv_dlopen_self" = xyes; then 10445 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10446 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10447$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10448if test "${lt_cv_dlopen_self_static+set}" = set; then 10449 $as_echo_n "(cached) " >&6 10450else 10451 if test "$cross_compiling" = yes; then : 10452 lt_cv_dlopen_self_static=cross 10453else 10454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10455 lt_status=$lt_dlunknown 10456 cat > conftest.$ac_ext <<EOF 10457#line 10457 "configure" 10458#include "confdefs.h" 10459 10460#if HAVE_DLFCN_H 10461#include <dlfcn.h> 10462#endif 10463 10464#include <stdio.h> 10465 10466#ifdef RTLD_GLOBAL 10467# define LT_DLGLOBAL RTLD_GLOBAL 10468#else 10469# ifdef DL_GLOBAL 10470# define LT_DLGLOBAL DL_GLOBAL 10471# else 10472# define LT_DLGLOBAL 0 10473# endif 10474#endif 10475 10476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10477 find out it does not work in some platform. */ 10478#ifndef LT_DLLAZY_OR_NOW 10479# ifdef RTLD_LAZY 10480# define LT_DLLAZY_OR_NOW RTLD_LAZY 10481# else 10482# ifdef DL_LAZY 10483# define LT_DLLAZY_OR_NOW DL_LAZY 10484# else 10485# ifdef RTLD_NOW 10486# define LT_DLLAZY_OR_NOW RTLD_NOW 10487# else 10488# ifdef DL_NOW 10489# define LT_DLLAZY_OR_NOW DL_NOW 10490# else 10491# define LT_DLLAZY_OR_NOW 0 10492# endif 10493# endif 10494# endif 10495# endif 10496#endif 10497 10498#ifdef __cplusplus 10499extern "C" void exit (int); 10500#endif 10501 10502void fnord() { int i=42;} 10503int main () 10504{ 10505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10506 int status = $lt_dlunknown; 10507 10508 if (self) 10509 { 10510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10511 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10512 /* dlclose (self); */ 10513 } 10514 else 10515 puts (dlerror ()); 10516 10517 exit (status); 10518} 10519EOF 10520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10521 (eval $ac_link) 2>&5 10522 ac_status=$? 10523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10524 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10525 (./conftest; exit; ) >&5 2>/dev/null 10526 lt_status=$? 10527 case x$lt_status in 10528 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10529 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10530 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10531 esac 10532 else : 10533 # compilation failed 10534 lt_cv_dlopen_self_static=no 10535 fi 10536fi 10537rm -fr conftest* 10538 10539 10540fi 10541{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10542$as_echo "$lt_cv_dlopen_self_static" >&6; } 10543 fi 10544 10545 CPPFLAGS="$save_CPPFLAGS" 10546 LDFLAGS="$save_LDFLAGS" 10547 LIBS="$save_LIBS" 10548 ;; 10549 esac 10550 10551 case $lt_cv_dlopen_self in 10552 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10553 *) enable_dlopen_self=unknown ;; 10554 esac 10555 10556 case $lt_cv_dlopen_self_static in 10557 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10558 *) enable_dlopen_self_static=unknown ;; 10559 esac 10560fi 10561 10562 10563# Report which library types will actually be built 10564{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10565$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10566{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10567$as_echo "$can_build_shared" >&6; } 10568 10569{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10570$as_echo_n "checking whether to build shared libraries... " >&6; } 10571test "$can_build_shared" = "no" && enable_shared=no 10572 10573# On AIX, shared libraries and static libraries use the same namespace, and 10574# are all built from PIC. 10575case $host_os in 10576aix3*) 10577 test "$enable_shared" = yes && enable_static=no 10578 if test -n "$RANLIB"; then 10579 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10580 postinstall_cmds='$RANLIB $lib' 10581 fi 10582 ;; 10583 10584aix[4-9]*) 10585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10586 test "$enable_shared" = yes && enable_static=no 10587 fi 10588 ;; 10589esac 10590{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10591$as_echo "$enable_shared" >&6; } 10592 10593{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10594$as_echo_n "checking whether to build static libraries... " >&6; } 10595# Make sure either enable_shared or enable_static is yes. 10596test "$enable_shared" = yes || enable_static=yes 10597{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10598$as_echo "$enable_static" >&6; } 10599 10600# The else clause should only fire when bootstrapping the 10601# libtool distribution, otherwise you forgot to ship ltmain.sh 10602# with your package, and you will get complaints that there are 10603# no rules to generate ltmain.sh. 10604if test -f "$ltmain"; then 10605 # See if we are running on zsh, and set the options which allow our commands through 10606 # without removal of \ escapes. 10607 if test -n "${ZSH_VERSION+set}" ; then 10608 setopt NO_GLOB_SUBST 10609 fi 10610 # Now quote all the things that may contain metacharacters while being 10611 # careful not to overquote the AC_SUBSTed values. We take copies of the 10612 # variables and quote the copies for generation of the libtool script. 10613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10614 SED SHELL STRIP \ 10615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10617 deplibs_check_method reload_flag reload_cmds need_locks \ 10618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10619 lt_cv_sys_global_symbol_to_c_name_address \ 10620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10621 old_postinstall_cmds old_postuninstall_cmds \ 10622 compiler \ 10623 CC \ 10624 LD \ 10625 lt_prog_compiler_wl \ 10626 lt_prog_compiler_pic \ 10627 lt_prog_compiler_static \ 10628 lt_prog_compiler_no_builtin_flag \ 10629 export_dynamic_flag_spec \ 10630 thread_safe_flag_spec \ 10631 whole_archive_flag_spec \ 10632 enable_shared_with_static_runtimes \ 10633 old_archive_cmds \ 10634 old_archive_from_new_cmds \ 10635 predep_objects \ 10636 postdep_objects \ 10637 predeps \ 10638 postdeps \ 10639 compiler_lib_search_path \ 10640 compiler_lib_search_dirs \ 10641 archive_cmds \ 10642 archive_expsym_cmds \ 10643 postinstall_cmds \ 10644 postuninstall_cmds \ 10645 old_archive_from_expsyms_cmds \ 10646 allow_undefined_flag \ 10647 no_undefined_flag \ 10648 export_symbols_cmds \ 10649 hardcode_libdir_flag_spec \ 10650 hardcode_libdir_flag_spec_ld \ 10651 hardcode_libdir_separator \ 10652 hardcode_automatic \ 10653 module_cmds \ 10654 module_expsym_cmds \ 10655 lt_cv_prog_compiler_c_o \ 10656 fix_srcfile_path \ 10657 exclude_expsyms \ 10658 include_expsyms; do 10659 10660 case $var in 10661 old_archive_cmds | \ 10662 old_archive_from_new_cmds | \ 10663 archive_cmds | \ 10664 archive_expsym_cmds | \ 10665 module_cmds | \ 10666 module_expsym_cmds | \ 10667 old_archive_from_expsyms_cmds | \ 10668 export_symbols_cmds | \ 10669 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10670 postinstall_cmds | postuninstall_cmds | \ 10671 old_postinstall_cmds | old_postuninstall_cmds | \ 10672 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10673 # Double-quote double-evaled strings. 10674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10675 ;; 10676 *) 10677 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10678 ;; 10679 esac 10680 done 10681 10682 case $lt_echo in 10683 *'\$0 --fallback-echo"') 10684 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10685 ;; 10686 esac 10687 10688cfgfile="${ofile}T" 10689 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10690 $rm -f "$cfgfile" 10691 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10692$as_echo "$as_me: creating $ofile" >&6;} 10693 10694 cat <<__EOF__ >> "$cfgfile" 10695#! $SHELL 10696 10697# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10698# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10699# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10700# 10701# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10702# Free Software Foundation, Inc. 10703# 10704# This file is part of GNU Libtool: 10705# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10706# 10707# This program is free software; you can redistribute it and/or modify 10708# it under the terms of the GNU General Public License as published by 10709# the Free Software Foundation; either version 2 of the License, or 10710# (at your option) any later version. 10711# 10712# This program is distributed in the hope that it will be useful, but 10713# WITHOUT ANY WARRANTY; without even the implied warranty of 10714# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10715# General Public License for more details. 10716# 10717# You should have received a copy of the GNU General Public License 10718# along with this program; if not, write to the Free Software 10719# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10720# 10721# As a special exception to the GNU General Public License, if you 10722# distribute this file as part of a program that contains a 10723# configuration script generated by Autoconf, you may include it under 10724# the same distribution terms that you use for the rest of that program. 10725 10726# A sed program that does not truncate output. 10727SED=$lt_SED 10728 10729# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10730Xsed="$SED -e 1s/^X//" 10731 10732# The HP-UX ksh and POSIX shell print the target directory to stdout 10733# if CDPATH is set. 10734(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10735 10736# The names of the tagged configurations supported by this script. 10737available_tags= 10738 10739# ### BEGIN LIBTOOL CONFIG 10740 10741# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10742 10743# Shell to use when invoking shell scripts. 10744SHELL=$lt_SHELL 10745 10746# Whether or not to build shared libraries. 10747build_libtool_libs=$enable_shared 10748 10749# Whether or not to build static libraries. 10750build_old_libs=$enable_static 10751 10752# Whether or not to add -lc for building shared libraries. 10753build_libtool_need_lc=$archive_cmds_need_lc 10754 10755# Whether or not to disallow shared libs when runtime libs are static 10756allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10757 10758# Whether or not to optimize for fast installation. 10759fast_install=$enable_fast_install 10760 10761# The host system. 10762host_alias=$host_alias 10763host=$host 10764host_os=$host_os 10765 10766# The build system. 10767build_alias=$build_alias 10768build=$build 10769build_os=$build_os 10770 10771# An echo program that does not interpret backslashes. 10772echo=$lt_echo 10773 10774# The archiver. 10775AR=$lt_AR 10776AR_FLAGS=$lt_AR_FLAGS 10777 10778# A C compiler. 10779LTCC=$lt_LTCC 10780 10781# LTCC compiler flags. 10782LTCFLAGS=$lt_LTCFLAGS 10783 10784# A language-specific compiler. 10785CC=$lt_compiler 10786 10787# Is the compiler the GNU C compiler? 10788with_gcc=$GCC 10789 10790# An ERE matcher. 10791EGREP=$lt_EGREP 10792 10793# The linker used to build libraries. 10794LD=$lt_LD 10795 10796# Whether we need hard or soft links. 10797LN_S=$lt_LN_S 10798 10799# A BSD-compatible nm program. 10800NM=$lt_NM 10801 10802# A symbol stripping program 10803STRIP=$lt_STRIP 10804 10805# Used to examine libraries when file_magic_cmd begins "file" 10806MAGIC_CMD=$MAGIC_CMD 10807 10808# Used on cygwin: DLL creation program. 10809DLLTOOL="$DLLTOOL" 10810 10811# Used on cygwin: object dumper. 10812OBJDUMP="$OBJDUMP" 10813 10814# Used on cygwin: assembler. 10815AS="$AS" 10816 10817# The name of the directory that contains temporary libtool files. 10818objdir=$objdir 10819 10820# How to create reloadable object files. 10821reload_flag=$lt_reload_flag 10822reload_cmds=$lt_reload_cmds 10823 10824# How to pass a linker flag through the compiler. 10825wl=$lt_lt_prog_compiler_wl 10826 10827# Object file suffix (normally "o"). 10828objext="$ac_objext" 10829 10830# Old archive suffix (normally "a"). 10831libext="$libext" 10832 10833# Shared library suffix (normally ".so"). 10834shrext_cmds='$shrext_cmds' 10835 10836# Executable file suffix (normally ""). 10837exeext="$exeext" 10838 10839# Additional compiler flags for building library objects. 10840pic_flag=$lt_lt_prog_compiler_pic 10841pic_mode=$pic_mode 10842 10843# What is the maximum length of a command? 10844max_cmd_len=$lt_cv_sys_max_cmd_len 10845 10846# Does compiler simultaneously support -c and -o options? 10847compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10848 10849# Must we lock files when doing compilation? 10850need_locks=$lt_need_locks 10851 10852# Do we need the lib prefix for modules? 10853need_lib_prefix=$need_lib_prefix 10854 10855# Do we need a version for libraries? 10856need_version=$need_version 10857 10858# Whether dlopen is supported. 10859dlopen_support=$enable_dlopen 10860 10861# Whether dlopen of programs is supported. 10862dlopen_self=$enable_dlopen_self 10863 10864# Whether dlopen of statically linked programs is supported. 10865dlopen_self_static=$enable_dlopen_self_static 10866 10867# Compiler flag to prevent dynamic linking. 10868link_static_flag=$lt_lt_prog_compiler_static 10869 10870# Compiler flag to turn off builtin functions. 10871no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10872 10873# Compiler flag to allow reflexive dlopens. 10874export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10875 10876# Compiler flag to generate shared objects directly from archives. 10877whole_archive_flag_spec=$lt_whole_archive_flag_spec 10878 10879# Compiler flag to generate thread-safe objects. 10880thread_safe_flag_spec=$lt_thread_safe_flag_spec 10881 10882# Library versioning type. 10883version_type=$version_type 10884 10885# Format of library name prefix. 10886libname_spec=$lt_libname_spec 10887 10888# List of archive names. First name is the real one, the rest are links. 10889# The last name is the one that the linker finds with -lNAME. 10890library_names_spec=$lt_library_names_spec 10891 10892# The coded name of the library, if different from the real name. 10893soname_spec=$lt_soname_spec 10894 10895# Commands used to build and install an old-style archive. 10896RANLIB=$lt_RANLIB 10897old_archive_cmds=$lt_old_archive_cmds 10898old_postinstall_cmds=$lt_old_postinstall_cmds 10899old_postuninstall_cmds=$lt_old_postuninstall_cmds 10900 10901# Create an old-style archive from a shared archive. 10902old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10903 10904# Create a temporary old-style archive to link instead of a shared archive. 10905old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10906 10907# Commands used to build and install a shared archive. 10908archive_cmds=$lt_archive_cmds 10909archive_expsym_cmds=$lt_archive_expsym_cmds 10910postinstall_cmds=$lt_postinstall_cmds 10911postuninstall_cmds=$lt_postuninstall_cmds 10912 10913# Commands used to build a loadable module (assumed same as above if empty) 10914module_cmds=$lt_module_cmds 10915module_expsym_cmds=$lt_module_expsym_cmds 10916 10917# Commands to strip libraries. 10918old_striplib=$lt_old_striplib 10919striplib=$lt_striplib 10920 10921# Dependencies to place before the objects being linked to create a 10922# shared library. 10923predep_objects=$lt_predep_objects 10924 10925# Dependencies to place after the objects being linked to create a 10926# shared library. 10927postdep_objects=$lt_postdep_objects 10928 10929# Dependencies to place before the objects being linked to create a 10930# shared library. 10931predeps=$lt_predeps 10932 10933# Dependencies to place after the objects being linked to create a 10934# shared library. 10935postdeps=$lt_postdeps 10936 10937# The directories searched by this compiler when creating a shared 10938# library 10939compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10940 10941# The library search path used internally by the compiler when linking 10942# a shared library. 10943compiler_lib_search_path=$lt_compiler_lib_search_path 10944 10945# Method to check whether dependent libraries are shared objects. 10946deplibs_check_method=$lt_deplibs_check_method 10947 10948# Command to use when deplibs_check_method == file_magic. 10949file_magic_cmd=$lt_file_magic_cmd 10950 10951# Flag that allows shared libraries with undefined symbols to be built. 10952allow_undefined_flag=$lt_allow_undefined_flag 10953 10954# Flag that forces no undefined symbols. 10955no_undefined_flag=$lt_no_undefined_flag 10956 10957# Commands used to finish a libtool library installation in a directory. 10958finish_cmds=$lt_finish_cmds 10959 10960# Same as above, but a single script fragment to be evaled but not shown. 10961finish_eval=$lt_finish_eval 10962 10963# Take the output of nm and produce a listing of raw symbols and C names. 10964global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10965 10966# Transform the output of nm in a proper C declaration 10967global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10968 10969# Transform the output of nm in a C name address pair 10970global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10971 10972# This is the shared library runtime path variable. 10973runpath_var=$runpath_var 10974 10975# This is the shared library path variable. 10976shlibpath_var=$shlibpath_var 10977 10978# Is shlibpath searched before the hard-coded library search path? 10979shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10980 10981# How to hardcode a shared library path into an executable. 10982hardcode_action=$hardcode_action 10983 10984# Whether we should hardcode library paths into libraries. 10985hardcode_into_libs=$hardcode_into_libs 10986 10987# Flag to hardcode \$libdir into a binary during linking. 10988# This must work even if \$libdir does not exist. 10989hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10990 10991# If ld is used when linking, flag to hardcode \$libdir into 10992# a binary during linking. This must work even if \$libdir does 10993# not exist. 10994hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10995 10996# Whether we need a single -rpath flag with a separated argument. 10997hardcode_libdir_separator=$lt_hardcode_libdir_separator 10998 10999# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11000# resulting binary. 11001hardcode_direct=$hardcode_direct 11002 11003# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11004# resulting binary. 11005hardcode_minus_L=$hardcode_minus_L 11006 11007# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11008# the resulting binary. 11009hardcode_shlibpath_var=$hardcode_shlibpath_var 11010 11011# Set to yes if building a shared library automatically hardcodes DIR into the library 11012# and all subsequent libraries and executables linked against it. 11013hardcode_automatic=$hardcode_automatic 11014 11015# Variables whose values should be saved in libtool wrapper scripts and 11016# restored at relink time. 11017variables_saved_for_relink="$variables_saved_for_relink" 11018 11019# Whether libtool must link a program against all its dependency libraries. 11020link_all_deplibs=$link_all_deplibs 11021 11022# Compile-time system search path for libraries 11023sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11024 11025# Run-time system search path for libraries 11026sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11027 11028# Fix the shell variable \$srcfile for the compiler. 11029fix_srcfile_path=$lt_fix_srcfile_path 11030 11031# Set to yes if exported symbols are required. 11032always_export_symbols=$always_export_symbols 11033 11034# The commands to list exported symbols. 11035export_symbols_cmds=$lt_export_symbols_cmds 11036 11037# The commands to extract the exported symbol list from a shared archive. 11038extract_expsyms_cmds=$lt_extract_expsyms_cmds 11039 11040# Symbols that should not be listed in the preloaded symbols. 11041exclude_expsyms=$lt_exclude_expsyms 11042 11043# Symbols that must always be exported. 11044include_expsyms=$lt_include_expsyms 11045 11046# ### END LIBTOOL CONFIG 11047 11048__EOF__ 11049 11050 11051 case $host_os in 11052 aix3*) 11053 cat <<\EOF >> "$cfgfile" 11054 11055# AIX sometimes has problems with the GCC collect2 program. For some 11056# reason, if we set the COLLECT_NAMES environment variable, the problems 11057# vanish in a puff of smoke. 11058if test "X${COLLECT_NAMES+set}" != Xset; then 11059 COLLECT_NAMES= 11060 export COLLECT_NAMES 11061fi 11062EOF 11063 ;; 11064 esac 11065 11066 # We use sed instead of cat because bash on DJGPP gets confused if 11067 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11068 # text mode, it properly converts lines to CR/LF. This bash problem 11069 # is reportedly fixed, but why not run on old versions too? 11070 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11071 11072 mv -f "$cfgfile" "$ofile" || \ 11073 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11074 chmod +x "$ofile" 11075 11076else 11077 # If there is no Makefile yet, we rely on a make rule to execute 11078 # `config.status --recheck' to rerun these tests and create the 11079 # libtool script then. 11080 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11081 if test -f "$ltmain_in"; then 11082 test -f Makefile && make "$ltmain" 11083 fi 11084fi 11085 11086 11087ac_ext=c 11088ac_cpp='$CPP $CPPFLAGS' 11089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11091ac_compiler_gnu=$ac_cv_c_compiler_gnu 11092 11093CC="$lt_save_CC" 11094 11095 11096# Check whether --with-tags was given. 11097if test "${with_tags+set}" = set; then 11098 withval=$with_tags; tagnames="$withval" 11099fi 11100 11101 11102if test -f "$ltmain" && test -n "$tagnames"; then 11103 if test ! -f "${ofile}"; then 11104 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11105$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11106 fi 11107 11108 if test -z "$LTCC"; then 11109 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11110 if test -z "$LTCC"; then 11111 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11112$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11113 else 11114 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11115$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11116 fi 11117 fi 11118 if test -z "$LTCFLAGS"; then 11119 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11120 fi 11121 11122 # Extract list of available tagged configurations in $ofile. 11123 # Note that this assumes the entire list is on one line. 11124 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11125 11126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11127 for tagname in $tagnames; do 11128 IFS="$lt_save_ifs" 11129 # Check whether tagname contains only valid characters 11130 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11131 "") ;; 11132 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11133$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11134 { (exit 1); exit 1; }; } 11135 ;; 11136 esac 11137 11138 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11139 then 11140 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11141$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11142 { (exit 1); exit 1; }; } 11143 fi 11144 11145 # Update the list of available tags. 11146 if test -n "$tagname"; then 11147 echo appending configuration tag \"$tagname\" to $ofile 11148 11149 case $tagname in 11150 CXX) 11151 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11152 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11153 (test "X$CXX" != "Xg++"))) ; then 11154 ac_ext=cpp 11155ac_cpp='$CXXCPP $CPPFLAGS' 11156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11159 11160 11161 11162 11163archive_cmds_need_lc_CXX=no 11164allow_undefined_flag_CXX= 11165always_export_symbols_CXX=no 11166archive_expsym_cmds_CXX= 11167export_dynamic_flag_spec_CXX= 11168hardcode_direct_CXX=no 11169hardcode_libdir_flag_spec_CXX= 11170hardcode_libdir_flag_spec_ld_CXX= 11171hardcode_libdir_separator_CXX= 11172hardcode_minus_L_CXX=no 11173hardcode_shlibpath_var_CXX=unsupported 11174hardcode_automatic_CXX=no 11175module_cmds_CXX= 11176module_expsym_cmds_CXX= 11177link_all_deplibs_CXX=unknown 11178old_archive_cmds_CXX=$old_archive_cmds 11179no_undefined_flag_CXX= 11180whole_archive_flag_spec_CXX= 11181enable_shared_with_static_runtimes_CXX=no 11182 11183# Dependencies to place before and after the object being linked: 11184predep_objects_CXX= 11185postdep_objects_CXX= 11186predeps_CXX= 11187postdeps_CXX= 11188compiler_lib_search_path_CXX= 11189compiler_lib_search_dirs_CXX= 11190 11191# Source file extension for C++ test sources. 11192ac_ext=cpp 11193 11194# Object file extension for compiled C++ test sources. 11195objext=o 11196objext_CXX=$objext 11197 11198# Code to be used in simple compile tests 11199lt_simple_compile_test_code="int some_variable = 0;" 11200 11201# Code to be used in simple link tests 11202lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11203 11204# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11205 11206# If no C compiler was specified, use CC. 11207LTCC=${LTCC-"$CC"} 11208 11209# If no C compiler flags were specified, use CFLAGS. 11210LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11211 11212# Allow CC to be a program name with arguments. 11213compiler=$CC 11214 11215 11216# save warnings/boilerplate of simple test code 11217ac_outfile=conftest.$ac_objext 11218echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11219eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11220_lt_compiler_boilerplate=`cat conftest.err` 11221$rm conftest* 11222 11223ac_outfile=conftest.$ac_objext 11224echo "$lt_simple_link_test_code" >conftest.$ac_ext 11225eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11226_lt_linker_boilerplate=`cat conftest.err` 11227$rm -r conftest* 11228 11229 11230# Allow CC to be a program name with arguments. 11231lt_save_CC=$CC 11232lt_save_LD=$LD 11233lt_save_GCC=$GCC 11234GCC=$GXX 11235lt_save_with_gnu_ld=$with_gnu_ld 11236lt_save_path_LD=$lt_cv_path_LD 11237if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11238 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11239else 11240 $as_unset lt_cv_prog_gnu_ld 11241fi 11242if test -n "${lt_cv_path_LDCXX+set}"; then 11243 lt_cv_path_LD=$lt_cv_path_LDCXX 11244else 11245 $as_unset lt_cv_path_LD 11246fi 11247test -z "${LDCXX+set}" || LD=$LDCXX 11248CC=${CXX-"c++"} 11249compiler=$CC 11250compiler_CXX=$CC 11251for cc_temp in $compiler""; do 11252 case $cc_temp in 11253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11255 \-*) ;; 11256 *) break;; 11257 esac 11258done 11259cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11260 11261 11262# We don't want -fno-exception wen compiling C++ code, so set the 11263# no_builtin_flag separately 11264if test "$GXX" = yes; then 11265 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11266else 11267 lt_prog_compiler_no_builtin_flag_CXX= 11268fi 11269 11270if test "$GXX" = yes; then 11271 # Set up default GNU C++ configuration 11272 11273 11274# Check whether --with-gnu-ld was given. 11275if test "${with_gnu_ld+set}" = set; then 11276 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11277else 11278 with_gnu_ld=no 11279fi 11280 11281ac_prog=ld 11282if test "$GCC" = yes; then 11283 # Check if gcc -print-prog-name=ld gives a path. 11284 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11285$as_echo_n "checking for ld used by $CC... " >&6; } 11286 case $host in 11287 *-*-mingw*) 11288 # gcc leaves a trailing carriage return which upsets mingw 11289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11290 *) 11291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11292 esac 11293 case $ac_prog in 11294 # Accept absolute paths. 11295 [\\/]* | ?:[\\/]*) 11296 re_direlt='/[^/][^/]*/\.\./' 11297 # Canonicalize the pathname of ld 11298 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11299 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11300 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11301 done 11302 test -z "$LD" && LD="$ac_prog" 11303 ;; 11304 "") 11305 # If it fails, then pretend we aren't using GCC. 11306 ac_prog=ld 11307 ;; 11308 *) 11309 # If it is relative, then search for the first ld in PATH. 11310 with_gnu_ld=unknown 11311 ;; 11312 esac 11313elif test "$with_gnu_ld" = yes; then 11314 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11315$as_echo_n "checking for GNU ld... " >&6; } 11316else 11317 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11318$as_echo_n "checking for non-GNU ld... " >&6; } 11319fi 11320if test "${lt_cv_path_LD+set}" = set; then 11321 $as_echo_n "(cached) " >&6 11322else 11323 if test -z "$LD"; then 11324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11325 for ac_dir in $PATH; do 11326 IFS="$lt_save_ifs" 11327 test -z "$ac_dir" && ac_dir=. 11328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11329 lt_cv_path_LD="$ac_dir/$ac_prog" 11330 # Check to see if the program is GNU ld. I'd rather use --version, 11331 # but apparently some variants of GNU ld only accept -v. 11332 # Break only if it was the GNU/non-GNU ld that we prefer. 11333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11334 *GNU* | *'with BFD'*) 11335 test "$with_gnu_ld" != no && break 11336 ;; 11337 *) 11338 test "$with_gnu_ld" != yes && break 11339 ;; 11340 esac 11341 fi 11342 done 11343 IFS="$lt_save_ifs" 11344else 11345 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11346fi 11347fi 11348 11349LD="$lt_cv_path_LD" 11350if test -n "$LD"; then 11351 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11352$as_echo "$LD" >&6; } 11353else 11354 { $as_echo "$as_me:$LINENO: result: no" >&5 11355$as_echo "no" >&6; } 11356fi 11357test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11358$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11359 { (exit 1); exit 1; }; } 11360{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11361$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11362if test "${lt_cv_prog_gnu_ld+set}" = set; then 11363 $as_echo_n "(cached) " >&6 11364else 11365 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11366case `$LD -v 2>&1 </dev/null` in 11367*GNU* | *'with BFD'*) 11368 lt_cv_prog_gnu_ld=yes 11369 ;; 11370*) 11371 lt_cv_prog_gnu_ld=no 11372 ;; 11373esac 11374fi 11375{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11376$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11377with_gnu_ld=$lt_cv_prog_gnu_ld 11378 11379 11380 11381 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11382 # archiving commands below assume that GNU ld is being used. 11383 if test "$with_gnu_ld" = yes; then 11384 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11385 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' 11386 11387 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11388 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11389 11390 # If archive_cmds runs LD, not CC, wlarc should be empty 11391 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11392 # investigate it a little bit more. (MM) 11393 wlarc='${wl}' 11394 11395 # ancient GNU ld didn't support --whole-archive et. al. 11396 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11397 grep 'no-whole-archive' > /dev/null; then 11398 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11399 else 11400 whole_archive_flag_spec_CXX= 11401 fi 11402 else 11403 with_gnu_ld=no 11404 wlarc= 11405 11406 # A generic and very simple default shared library creation 11407 # command for GNU C++ for the case where it uses the native 11408 # linker, instead of GNU ld. If possible, this setting should 11409 # overridden to take advantage of the native linker features on 11410 # the platform it is being used on. 11411 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11412 fi 11413 11414 # Commands to make compiler produce verbose output that lists 11415 # what "hidden" libraries, object files and flags are used when 11416 # linking a shared library. 11417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11418 11419else 11420 GXX=no 11421 with_gnu_ld=no 11422 wlarc= 11423fi 11424 11425# PORTME: fill in a description of your system's C++ link characteristics 11426{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11427$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11428ld_shlibs_CXX=yes 11429case $host_os in 11430 aix3*) 11431 # FIXME: insert proper C++ library support 11432 ld_shlibs_CXX=no 11433 ;; 11434 aix[4-9]*) 11435 if test "$host_cpu" = ia64; then 11436 # On IA64, the linker does run time linking by default, so we don't 11437 # have to do anything special. 11438 aix_use_runtimelinking=no 11439 exp_sym_flag='-Bexport' 11440 no_entry_flag="" 11441 else 11442 aix_use_runtimelinking=no 11443 11444 # Test if we are trying to use run time linking or normal 11445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11446 # need to do runtime linking. 11447 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11448 for ld_flag in $LDFLAGS; do 11449 case $ld_flag in 11450 *-brtl*) 11451 aix_use_runtimelinking=yes 11452 break 11453 ;; 11454 esac 11455 done 11456 ;; 11457 esac 11458 11459 exp_sym_flag='-bexport' 11460 no_entry_flag='-bnoentry' 11461 fi 11462 11463 # When large executables or shared objects are built, AIX ld can 11464 # have problems creating the table of contents. If linking a library 11465 # or program results in "error TOC overflow" add -mminimal-toc to 11466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11468 11469 archive_cmds_CXX='' 11470 hardcode_direct_CXX=yes 11471 hardcode_libdir_separator_CXX=':' 11472 link_all_deplibs_CXX=yes 11473 11474 if test "$GXX" = yes; then 11475 case $host_os in aix4.[012]|aix4.[012].*) 11476 # We only want to do this on AIX 4.2 and lower, the check 11477 # below for broken collect2 doesn't work under 4.3+ 11478 collect2name=`${CC} -print-prog-name=collect2` 11479 if test -f "$collect2name" && \ 11480 strings "$collect2name" | grep resolve_lib_name >/dev/null 11481 then 11482 # We have reworked collect2 11483 : 11484 else 11485 # We have old collect2 11486 hardcode_direct_CXX=unsupported 11487 # It fails to find uninstalled libraries when the uninstalled 11488 # path is not listed in the libpath. Setting hardcode_minus_L 11489 # to unsupported forces relinking 11490 hardcode_minus_L_CXX=yes 11491 hardcode_libdir_flag_spec_CXX='-L$libdir' 11492 hardcode_libdir_separator_CXX= 11493 fi 11494 ;; 11495 esac 11496 shared_flag='-shared' 11497 if test "$aix_use_runtimelinking" = yes; then 11498 shared_flag="$shared_flag "'${wl}-G' 11499 fi 11500 else 11501 # not using gcc 11502 if test "$host_cpu" = ia64; then 11503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11504 # chokes on -Wl,-G. The following line is correct: 11505 shared_flag='-G' 11506 else 11507 if test "$aix_use_runtimelinking" = yes; then 11508 shared_flag='${wl}-G' 11509 else 11510 shared_flag='${wl}-bM:SRE' 11511 fi 11512 fi 11513 fi 11514 11515 # It seems that -bexpall does not export symbols beginning with 11516 # underscore (_), so it is better to generate a list of symbols to export. 11517 always_export_symbols_CXX=yes 11518 if test "$aix_use_runtimelinking" = yes; then 11519 # Warning - without using the other runtime loading flags (-brtl), 11520 # -berok will link without error, but may produce a broken library. 11521 allow_undefined_flag_CXX='-berok' 11522 # Determine the default libpath from the value encoded in an empty executable. 11523 cat >conftest.$ac_ext <<_ACEOF 11524/* confdefs.h. */ 11525_ACEOF 11526cat confdefs.h >>conftest.$ac_ext 11527cat >>conftest.$ac_ext <<_ACEOF 11528/* end confdefs.h. */ 11529 11530int 11531main () 11532{ 11533 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538rm -f conftest.$ac_objext conftest$ac_exeext 11539if { (ac_try="$ac_link" 11540case "(($ac_try" in 11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11542 *) ac_try_echo=$ac_try;; 11543esac 11544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11545$as_echo "$ac_try_echo") >&5 11546 (eval "$ac_link") 2>conftest.er1 11547 ac_status=$? 11548 grep -v '^ *+' conftest.er1 >conftest.err 11549 rm -f conftest.er1 11550 cat conftest.err >&5 11551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11552 (exit $ac_status); } && { 11553 test -z "$ac_cxx_werror_flag" || 11554 test ! -s conftest.err 11555 } && test -s conftest$ac_exeext && { 11556 test "$cross_compiling" = yes || 11557 $as_test_x conftest$ac_exeext 11558 }; then 11559 11560lt_aix_libpath_sed=' 11561 /Import File Strings/,/^$/ { 11562 /^0/ { 11563 s/^0 *\(.*\)$/\1/ 11564 p 11565 } 11566 }' 11567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11568# Check for a 64-bit object if we didn't find anything. 11569if test -z "$aix_libpath"; then 11570 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11571fi 11572else 11573 $as_echo "$as_me: failed program was:" >&5 11574sed 's/^/| /' conftest.$ac_ext >&5 11575 11576 11577fi 11578 11579rm -rf conftest.dSYM 11580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11581 conftest$ac_exeext conftest.$ac_ext 11582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11583 11584 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11585 11586 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11587 else 11588 if test "$host_cpu" = ia64; then 11589 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11590 allow_undefined_flag_CXX="-z nodefs" 11591 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" 11592 else 11593 # Determine the default libpath from the value encoded in an empty executable. 11594 cat >conftest.$ac_ext <<_ACEOF 11595/* confdefs.h. */ 11596_ACEOF 11597cat confdefs.h >>conftest.$ac_ext 11598cat >>conftest.$ac_ext <<_ACEOF 11599/* end confdefs.h. */ 11600 11601int 11602main () 11603{ 11604 11605 ; 11606 return 0; 11607} 11608_ACEOF 11609rm -f conftest.$ac_objext conftest$ac_exeext 11610if { (ac_try="$ac_link" 11611case "(($ac_try" in 11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11613 *) ac_try_echo=$ac_try;; 11614esac 11615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11616$as_echo "$ac_try_echo") >&5 11617 (eval "$ac_link") 2>conftest.er1 11618 ac_status=$? 11619 grep -v '^ *+' conftest.er1 >conftest.err 11620 rm -f conftest.er1 11621 cat conftest.err >&5 11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11623 (exit $ac_status); } && { 11624 test -z "$ac_cxx_werror_flag" || 11625 test ! -s conftest.err 11626 } && test -s conftest$ac_exeext && { 11627 test "$cross_compiling" = yes || 11628 $as_test_x conftest$ac_exeext 11629 }; then 11630 11631lt_aix_libpath_sed=' 11632 /Import File Strings/,/^$/ { 11633 /^0/ { 11634 s/^0 *\(.*\)$/\1/ 11635 p 11636 } 11637 }' 11638aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11639# Check for a 64-bit object if we didn't find anything. 11640if test -z "$aix_libpath"; then 11641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11642fi 11643else 11644 $as_echo "$as_me: failed program was:" >&5 11645sed 's/^/| /' conftest.$ac_ext >&5 11646 11647 11648fi 11649 11650rm -rf conftest.dSYM 11651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11652 conftest$ac_exeext conftest.$ac_ext 11653if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11654 11655 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11656 # Warning - without using the other run time loading flags, 11657 # -berok will link without error, but may produce a broken library. 11658 no_undefined_flag_CXX=' ${wl}-bernotok' 11659 allow_undefined_flag_CXX=' ${wl}-berok' 11660 # Exported symbols can be pulled into shared objects from archives 11661 whole_archive_flag_spec_CXX='$convenience' 11662 archive_cmds_need_lc_CXX=yes 11663 # This is similar to how AIX traditionally builds its shared libraries. 11664 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' 11665 fi 11666 fi 11667 ;; 11668 11669 beos*) 11670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11671 allow_undefined_flag_CXX=unsupported 11672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11673 # support --undefined. This deserves some investigation. FIXME 11674 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11675 else 11676 ld_shlibs_CXX=no 11677 fi 11678 ;; 11679 11680 chorus*) 11681 case $cc_basename in 11682 *) 11683 # FIXME: insert proper C++ library support 11684 ld_shlibs_CXX=no 11685 ;; 11686 esac 11687 ;; 11688 11689 cygwin* | mingw* | pw32*) 11690 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11691 # as there is no search path for DLLs. 11692 hardcode_libdir_flag_spec_CXX='-L$libdir' 11693 allow_undefined_flag_CXX=unsupported 11694 always_export_symbols_CXX=no 11695 enable_shared_with_static_runtimes_CXX=yes 11696 11697 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11698 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' 11699 # If the export-symbols file already is a .def file (1st line 11700 # is EXPORTS), use it as is; otherwise, prepend... 11701 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11702 cp $export_symbols $output_objdir/$soname.def; 11703 else 11704 echo EXPORTS > $output_objdir/$soname.def; 11705 cat $export_symbols >> $output_objdir/$soname.def; 11706 fi~ 11707 $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' 11708 else 11709 ld_shlibs_CXX=no 11710 fi 11711 ;; 11712 darwin* | rhapsody*) 11713 archive_cmds_need_lc_CXX=no 11714 hardcode_direct_CXX=no 11715 hardcode_automatic_CXX=yes 11716 hardcode_shlibpath_var_CXX=unsupported 11717 whole_archive_flag_spec_CXX='' 11718 link_all_deplibs_CXX=yes 11719 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11720 if test "$GXX" = yes ; then 11721 output_verbose_link_cmd='echo' 11722 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}" 11723 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11724 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}" 11725 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}" 11726 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11727 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}" 11728 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}" 11729 fi 11730 else 11731 case $cc_basename in 11732 xlc*) 11733 output_verbose_link_cmd='echo' 11734 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11735 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11737 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11738 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11739 ;; 11740 *) 11741 ld_shlibs_CXX=no 11742 ;; 11743 esac 11744 fi 11745 ;; 11746 11747 dgux*) 11748 case $cc_basename in 11749 ec++*) 11750 # FIXME: insert proper C++ library support 11751 ld_shlibs_CXX=no 11752 ;; 11753 ghcx*) 11754 # Green Hills C++ Compiler 11755 # FIXME: insert proper C++ library support 11756 ld_shlibs_CXX=no 11757 ;; 11758 *) 11759 # FIXME: insert proper C++ library support 11760 ld_shlibs_CXX=no 11761 ;; 11762 esac 11763 ;; 11764 freebsd[12]*) 11765 # C++ shared libraries reported to be fairly broken before switch to ELF 11766 ld_shlibs_CXX=no 11767 ;; 11768 freebsd-elf*) 11769 archive_cmds_need_lc_CXX=no 11770 ;; 11771 freebsd* | dragonfly*) 11772 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11773 # conventions 11774 ld_shlibs_CXX=yes 11775 ;; 11776 gnu*) 11777 ;; 11778 hpux9*) 11779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11780 hardcode_libdir_separator_CXX=: 11781 export_dynamic_flag_spec_CXX='${wl}-E' 11782 hardcode_direct_CXX=yes 11783 hardcode_minus_L_CXX=yes # Not in the search PATH, 11784 # but as the default 11785 # location of the library. 11786 11787 case $cc_basename in 11788 CC*) 11789 # FIXME: insert proper C++ library support 11790 ld_shlibs_CXX=no 11791 ;; 11792 aCC*) 11793 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' 11794 # Commands to make compiler produce verbose output that lists 11795 # what "hidden" libraries, object files and flags are used when 11796 # linking a shared library. 11797 # 11798 # There doesn't appear to be a way to prevent this compiler from 11799 # explicitly linking system object files so we need to strip them 11800 # from the output so that they don't get included in the library 11801 # dependencies. 11802 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 $list' 11803 ;; 11804 *) 11805 if test "$GXX" = yes; then 11806 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' 11807 else 11808 # FIXME: insert proper C++ library support 11809 ld_shlibs_CXX=no 11810 fi 11811 ;; 11812 esac 11813 ;; 11814 hpux10*|hpux11*) 11815 if test $with_gnu_ld = no; then 11816 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11817 hardcode_libdir_separator_CXX=: 11818 11819 case $host_cpu in 11820 hppa*64*|ia64*) ;; 11821 *) 11822 export_dynamic_flag_spec_CXX='${wl}-E' 11823 ;; 11824 esac 11825 fi 11826 case $host_cpu in 11827 hppa*64*|ia64*) 11828 hardcode_direct_CXX=no 11829 hardcode_shlibpath_var_CXX=no 11830 ;; 11831 *) 11832 hardcode_direct_CXX=yes 11833 hardcode_minus_L_CXX=yes # Not in the search PATH, 11834 # but as the default 11835 # location of the library. 11836 ;; 11837 esac 11838 11839 case $cc_basename in 11840 CC*) 11841 # FIXME: insert proper C++ library support 11842 ld_shlibs_CXX=no 11843 ;; 11844 aCC*) 11845 case $host_cpu in 11846 hppa*64*) 11847 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11848 ;; 11849 ia64*) 11850 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11851 ;; 11852 *) 11853 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11854 ;; 11855 esac 11856 # Commands to make compiler produce verbose output that lists 11857 # what "hidden" libraries, object files and flags are used when 11858 # linking a shared library. 11859 # 11860 # There doesn't appear to be a way to prevent this compiler from 11861 # explicitly linking system object files so we need to strip them 11862 # from the output so that they don't get included in the library 11863 # dependencies. 11864 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 $list' 11865 ;; 11866 *) 11867 if test "$GXX" = yes; then 11868 if test $with_gnu_ld = no; then 11869 case $host_cpu in 11870 hppa*64*) 11871 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11872 ;; 11873 ia64*) 11874 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11875 ;; 11876 *) 11877 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' 11878 ;; 11879 esac 11880 fi 11881 else 11882 # FIXME: insert proper C++ library support 11883 ld_shlibs_CXX=no 11884 fi 11885 ;; 11886 esac 11887 ;; 11888 interix[3-9]*) 11889 hardcode_direct_CXX=no 11890 hardcode_shlibpath_var_CXX=no 11891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11892 export_dynamic_flag_spec_CXX='${wl}-E' 11893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11894 # Instead, shared libraries are loaded at an image base (0x10000000 by 11895 # default) and relocated if they conflict, which is a slow very memory 11896 # consuming and fragmenting process. To avoid this, we pick a random, 11897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11898 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11899 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' 11900 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' 11901 ;; 11902 irix5* | irix6*) 11903 case $cc_basename in 11904 CC*) 11905 # SGI C++ 11906 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11907 11908 # Archives containing C++ object files must be created using 11909 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11910 # necessary to make sure instantiated templates are included 11911 # in the archive. 11912 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11913 ;; 11914 *) 11915 if test "$GXX" = yes; then 11916 if test "$with_gnu_ld" = no; then 11917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11918 else 11919 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11920 fi 11921 fi 11922 link_all_deplibs_CXX=yes 11923 ;; 11924 esac 11925 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11926 hardcode_libdir_separator_CXX=: 11927 ;; 11928 linux* | k*bsd*-gnu) 11929 case $cc_basename in 11930 KCC*) 11931 # Kuck and Associates, Inc. (KAI) C++ Compiler 11932 11933 # KCC will only create a shared library if the output file 11934 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11935 # to its proper name (with version) after linking. 11936 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' 11937 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' 11938 # Commands to make compiler produce verbose output that lists 11939 # what "hidden" libraries, object files and flags are used when 11940 # linking a shared library. 11941 # 11942 # There doesn't appear to be a way to prevent this compiler from 11943 # explicitly linking system object files so we need to strip them 11944 # from the output so that they don't get included in the library 11945 # dependencies. 11946 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 $list' 11947 11948 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11950 11951 # Archives containing C++ object files must be created using 11952 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11953 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11954 ;; 11955 icpc*) 11956 # Intel C++ 11957 with_gnu_ld=yes 11958 # version 8.0 and above of icpc choke on multiply defined symbols 11959 # if we add $predep_objects and $postdep_objects, however 7.1 and 11960 # earlier do not add the objects themselves. 11961 case `$CC -V 2>&1` in 11962 *"Version 7."*) 11963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11964 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' 11965 ;; 11966 *) # Version 8.0 or newer 11967 tmp_idyn= 11968 case $host_cpu in 11969 ia64*) tmp_idyn=' -i_dynamic';; 11970 esac 11971 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11972 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' 11973 ;; 11974 esac 11975 archive_cmds_need_lc_CXX=no 11976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11978 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11979 ;; 11980 pgCC* | pgcpp*) 11981 # Portland Group C++ compiler 11982 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11983 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' 11984 11985 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11987 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' 11988 ;; 11989 cxx*) 11990 # Compaq C++ 11991 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11992 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' 11993 11994 runpath_var=LD_RUN_PATH 11995 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11996 hardcode_libdir_separator_CXX=: 11997 11998 # Commands to make compiler produce verbose output that lists 11999 # what "hidden" libraries, object files and flags are used when 12000 # linking a shared library. 12001 # 12002 # There doesn't appear to be a way to prevent this compiler from 12003 # explicitly linking system object files so we need to strip them 12004 # from the output so that they don't get included in the library 12005 # dependencies. 12006 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list' 12007 ;; 12008 *) 12009 case `$CC -V 2>&1 | sed 5q` in 12010 *Sun\ C*) 12011 # Sun C++ 5.9 12012 no_undefined_flag_CXX=' -zdefs' 12013 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12014 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' 12015 hardcode_libdir_flag_spec_CXX='-R$libdir' 12016 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' 12017 12018 # Not sure whether something based on 12019 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12020 # would be better. 12021 output_verbose_link_cmd='echo' 12022 12023 # Archives containing C++ object files must be created using 12024 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12025 # necessary to make sure instantiated templates are included 12026 # in the archive. 12027 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12028 ;; 12029 esac 12030 ;; 12031 esac 12032 ;; 12033 lynxos*) 12034 # FIXME: insert proper C++ library support 12035 ld_shlibs_CXX=no 12036 ;; 12037 m88k*) 12038 # FIXME: insert proper C++ library support 12039 ld_shlibs_CXX=no 12040 ;; 12041 mvs*) 12042 case $cc_basename in 12043 cxx*) 12044 # FIXME: insert proper C++ library support 12045 ld_shlibs_CXX=no 12046 ;; 12047 *) 12048 # FIXME: insert proper C++ library support 12049 ld_shlibs_CXX=no 12050 ;; 12051 esac 12052 ;; 12053 netbsd*) 12054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12055 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12056 wlarc= 12057 hardcode_libdir_flag_spec_CXX='-R$libdir' 12058 hardcode_direct_CXX=yes 12059 hardcode_shlibpath_var_CXX=no 12060 fi 12061 # Workaround some broken pre-1.5 toolchains 12062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12063 ;; 12064 openbsd2*) 12065 # C++ shared libraries are fairly broken 12066 ld_shlibs_CXX=no 12067 ;; 12068 openbsd*) 12069 if test -f /usr/libexec/ld.so; then 12070 hardcode_direct_CXX=yes 12071 hardcode_shlibpath_var_CXX=no 12072 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12073 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12074 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12075 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12076 export_dynamic_flag_spec_CXX='${wl}-E' 12077 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12078 fi 12079 output_verbose_link_cmd='echo' 12080 else 12081 ld_shlibs_CXX=no 12082 fi 12083 ;; 12084 osf3*) 12085 case $cc_basename in 12086 KCC*) 12087 # Kuck and Associates, Inc. (KAI) C++ Compiler 12088 12089 # KCC will only create a shared library if the output file 12090 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12091 # to its proper name (with version) after linking. 12092 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' 12093 12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12095 hardcode_libdir_separator_CXX=: 12096 12097 # Archives containing C++ object files must be created using 12098 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12099 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12100 12101 ;; 12102 RCC*) 12103 # Rational C++ 2.4.1 12104 # FIXME: insert proper C++ library support 12105 ld_shlibs_CXX=no 12106 ;; 12107 cxx*) 12108 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12109 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12110 12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12112 hardcode_libdir_separator_CXX=: 12113 12114 # Commands to make compiler produce verbose output that lists 12115 # what "hidden" libraries, object files and flags are used when 12116 # linking a shared library. 12117 # 12118 # There doesn't appear to be a way to prevent this compiler from 12119 # explicitly linking system object files so we need to strip them 12120 # from the output so that they don't get included in the library 12121 # dependencies. 12122 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list' 12123 ;; 12124 *) 12125 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12126 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12127 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12128 12129 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12130 hardcode_libdir_separator_CXX=: 12131 12132 # Commands to make compiler produce verbose output that lists 12133 # what "hidden" libraries, object files and flags are used when 12134 # linking a shared library. 12135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12136 12137 else 12138 # FIXME: insert proper C++ library support 12139 ld_shlibs_CXX=no 12140 fi 12141 ;; 12142 esac 12143 ;; 12144 osf4* | osf5*) 12145 case $cc_basename in 12146 KCC*) 12147 # Kuck and Associates, Inc. (KAI) C++ Compiler 12148 12149 # KCC will only create a shared library if the output file 12150 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12151 # to its proper name (with version) after linking. 12152 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' 12153 12154 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12155 hardcode_libdir_separator_CXX=: 12156 12157 # Archives containing C++ object files must be created using 12158 # the KAI C++ compiler. 12159 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12160 ;; 12161 RCC*) 12162 # Rational C++ 2.4.1 12163 # FIXME: insert proper C++ library support 12164 ld_shlibs_CXX=no 12165 ;; 12166 cxx*) 12167 allow_undefined_flag_CXX=' -expect_unresolved \*' 12168 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12169 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12170 echo "-hidden">> $lib.exp~ 12171 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12172 $rm $lib.exp' 12173 12174 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12175 hardcode_libdir_separator_CXX=: 12176 12177 # Commands to make compiler produce verbose output that lists 12178 # what "hidden" libraries, object files and flags are used when 12179 # linking a shared library. 12180 # 12181 # There doesn't appear to be a way to prevent this compiler from 12182 # explicitly linking system object files so we need to strip them 12183 # from the output so that they don't get included in the library 12184 # dependencies. 12185 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list' 12186 ;; 12187 *) 12188 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12189 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12190 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12191 12192 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12193 hardcode_libdir_separator_CXX=: 12194 12195 # Commands to make compiler produce verbose output that lists 12196 # what "hidden" libraries, object files and flags are used when 12197 # linking a shared library. 12198 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12199 12200 else 12201 # FIXME: insert proper C++ library support 12202 ld_shlibs_CXX=no 12203 fi 12204 ;; 12205 esac 12206 ;; 12207 psos*) 12208 # FIXME: insert proper C++ library support 12209 ld_shlibs_CXX=no 12210 ;; 12211 sunos4*) 12212 case $cc_basename in 12213 CC*) 12214 # Sun C++ 4.x 12215 # FIXME: insert proper C++ library support 12216 ld_shlibs_CXX=no 12217 ;; 12218 lcc*) 12219 # Lucid 12220 # FIXME: insert proper C++ library support 12221 ld_shlibs_CXX=no 12222 ;; 12223 *) 12224 # FIXME: insert proper C++ library support 12225 ld_shlibs_CXX=no 12226 ;; 12227 esac 12228 ;; 12229 solaris*) 12230 case $cc_basename in 12231 CC*) 12232 # Sun C++ 4.2, 5.x and Centerline C++ 12233 archive_cmds_need_lc_CXX=yes 12234 no_undefined_flag_CXX=' -zdefs' 12235 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12236 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12237 $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' 12238 12239 hardcode_libdir_flag_spec_CXX='-R$libdir' 12240 hardcode_shlibpath_var_CXX=no 12241 case $host_os in 12242 solaris2.[0-5] | solaris2.[0-5].*) ;; 12243 *) 12244 # The compiler driver will combine and reorder linker options, 12245 # but understands `-z linker_flag'. 12246 # Supported since Solaris 2.6 (maybe 2.5.1?) 12247 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12248 ;; 12249 esac 12250 link_all_deplibs_CXX=yes 12251 12252 output_verbose_link_cmd='echo' 12253 12254 # Archives containing C++ object files must be created using 12255 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12256 # necessary to make sure instantiated templates are included 12257 # in the archive. 12258 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12259 ;; 12260 gcx*) 12261 # Green Hills C++ Compiler 12262 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12263 12264 # The C++ compiler must be used to create the archive. 12265 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12266 ;; 12267 *) 12268 # GNU C++ compiler with Solaris linker 12269 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12270 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12271 if $CC --version | grep -v '^2\.7' > /dev/null; then 12272 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12273 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12274 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12275 12276 # Commands to make compiler produce verbose output that lists 12277 # what "hidden" libraries, object files and flags are used when 12278 # linking a shared library. 12279 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12280 else 12281 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12282 # platform. 12283 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12284 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12285 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12286 12287 # Commands to make compiler produce verbose output that lists 12288 # what "hidden" libraries, object files and flags are used when 12289 # linking a shared library. 12290 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12291 fi 12292 12293 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12294 case $host_os in 12295 solaris2.[0-5] | solaris2.[0-5].*) ;; 12296 *) 12297 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12298 ;; 12299 esac 12300 fi 12301 ;; 12302 esac 12303 ;; 12304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12305 no_undefined_flag_CXX='${wl}-z,text' 12306 archive_cmds_need_lc_CXX=no 12307 hardcode_shlibpath_var_CXX=no 12308 runpath_var='LD_RUN_PATH' 12309 12310 case $cc_basename in 12311 CC*) 12312 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12313 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12314 ;; 12315 *) 12316 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12317 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12318 ;; 12319 esac 12320 ;; 12321 sysv5* | sco3.2v5* | sco5v6*) 12322 # Note: We can NOT use -z defs as we might desire, because we do not 12323 # link with -lc, and that would cause any symbols used from libc to 12324 # always be unresolved, which means just about no library would 12325 # ever link correctly. If we're not using GNU ld we use -z text 12326 # though, which does catch some bad symbols but isn't as heavy-handed 12327 # as -z defs. 12328 # For security reasons, it is highly recommended that you always 12329 # use absolute paths for naming shared libraries, and exclude the 12330 # DT_RUNPATH tag from executables and libraries. But doing so 12331 # requires that you compile everything twice, which is a pain. 12332 # So that behaviour is only enabled if SCOABSPATH is set to a 12333 # non-empty value in the environment. Most likely only useful for 12334 # creating official distributions of packages. 12335 # This is a hack until libtool officially supports absolute path 12336 # names for shared libraries. 12337 no_undefined_flag_CXX='${wl}-z,text' 12338 allow_undefined_flag_CXX='${wl}-z,nodefs' 12339 archive_cmds_need_lc_CXX=no 12340 hardcode_shlibpath_var_CXX=no 12341 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12342 hardcode_libdir_separator_CXX=':' 12343 link_all_deplibs_CXX=yes 12344 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12345 runpath_var='LD_RUN_PATH' 12346 12347 case $cc_basename in 12348 CC*) 12349 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12350 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12351 ;; 12352 *) 12353 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12354 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12355 ;; 12356 esac 12357 ;; 12358 tandem*) 12359 case $cc_basename in 12360 NCC*) 12361 # NonStop-UX NCC 3.20 12362 # FIXME: insert proper C++ library support 12363 ld_shlibs_CXX=no 12364 ;; 12365 *) 12366 # FIXME: insert proper C++ library support 12367 ld_shlibs_CXX=no 12368 ;; 12369 esac 12370 ;; 12371 vxworks*) 12372 # FIXME: insert proper C++ library support 12373 ld_shlibs_CXX=no 12374 ;; 12375 *) 12376 # FIXME: insert proper C++ library support 12377 ld_shlibs_CXX=no 12378 ;; 12379esac 12380{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12381$as_echo "$ld_shlibs_CXX" >&6; } 12382test "$ld_shlibs_CXX" = no && can_build_shared=no 12383 12384GCC_CXX="$GXX" 12385LD_CXX="$LD" 12386 12387cat > conftest.$ac_ext <<EOF 12388class Foo 12389{ 12390public: 12391 Foo (void) { a = 0; } 12392private: 12393 int a; 12394}; 12395EOF 12396 12397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12398 (eval $ac_compile) 2>&5 12399 ac_status=$? 12400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12401 (exit $ac_status); }; then 12402 # Parse the compiler output and extract the necessary 12403 # objects, libraries and library flags. 12404 12405 # Sentinel used to keep track of whether or not we are before 12406 # the conftest object file. 12407 pre_test_object_deps_done=no 12408 12409 # The `*' in the case matches for architectures that use `case' in 12410 # $output_verbose_cmd can trigger glob expansion during the loop 12411 # eval without this substitution. 12412 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12413 12414 for p in `eval $output_verbose_link_cmd`; do 12415 case $p in 12416 12417 -L* | -R* | -l*) 12418 # Some compilers place space between "-{L,R}" and the path. 12419 # Remove the space. 12420 if test $p = "-L" \ 12421 || test $p = "-R"; then 12422 prev=$p 12423 continue 12424 else 12425 prev= 12426 fi 12427 12428 if test "$pre_test_object_deps_done" = no; then 12429 case $p in 12430 -L* | -R*) 12431 # Internal compiler library paths should come after those 12432 # provided the user. The postdeps already come after the 12433 # user supplied libs so there is no need to process them. 12434 if test -z "$compiler_lib_search_path_CXX"; then 12435 compiler_lib_search_path_CXX="${prev}${p}" 12436 else 12437 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12438 fi 12439 ;; 12440 # The "-l" case would never come before the object being 12441 # linked, so don't bother handling this case. 12442 esac 12443 else 12444 if test -z "$postdeps_CXX"; then 12445 postdeps_CXX="${prev}${p}" 12446 else 12447 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12448 fi 12449 fi 12450 ;; 12451 12452 *.$objext) 12453 # This assumes that the test object file only shows up 12454 # once in the compiler output. 12455 if test "$p" = "conftest.$objext"; then 12456 pre_test_object_deps_done=yes 12457 continue 12458 fi 12459 12460 if test "$pre_test_object_deps_done" = no; then 12461 if test -z "$predep_objects_CXX"; then 12462 predep_objects_CXX="$p" 12463 else 12464 predep_objects_CXX="$predep_objects_CXX $p" 12465 fi 12466 else 12467 if test -z "$postdep_objects_CXX"; then 12468 postdep_objects_CXX="$p" 12469 else 12470 postdep_objects_CXX="$postdep_objects_CXX $p" 12471 fi 12472 fi 12473 ;; 12474 12475 *) ;; # Ignore the rest. 12476 12477 esac 12478 done 12479 12480 # Clean up. 12481 rm -f a.out a.exe 12482else 12483 echo "libtool.m4: error: problem compiling CXX test program" 12484fi 12485 12486$rm -f confest.$objext 12487 12488compiler_lib_search_dirs_CXX= 12489if test -n "$compiler_lib_search_path_CXX"; then 12490 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12491fi 12492 12493# PORTME: override above test on systems where it is broken 12494case $host_os in 12495interix[3-9]*) 12496 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12497 # hack all around it, let's just trust "g++" to DTRT. 12498 predep_objects_CXX= 12499 postdep_objects_CXX= 12500 postdeps_CXX= 12501 ;; 12502 12503linux*) 12504 case `$CC -V 2>&1 | sed 5q` in 12505 *Sun\ C*) 12506 # Sun C++ 5.9 12507 # 12508 # The more standards-conforming stlport4 library is 12509 # incompatible with the Cstd library. Avoid specifying 12510 # it if it's in CXXFLAGS. Ignore libCrun as 12511 # -library=stlport4 depends on it. 12512 case " $CXX $CXXFLAGS " in 12513 *" -library=stlport4 "*) 12514 solaris_use_stlport4=yes 12515 ;; 12516 esac 12517 if test "$solaris_use_stlport4" != yes; then 12518 postdeps_CXX='-library=Cstd -library=Crun' 12519 fi 12520 ;; 12521 esac 12522 ;; 12523 12524solaris*) 12525 case $cc_basename in 12526 CC*) 12527 # The more standards-conforming stlport4 library is 12528 # incompatible with the Cstd library. Avoid specifying 12529 # it if it's in CXXFLAGS. Ignore libCrun as 12530 # -library=stlport4 depends on it. 12531 case " $CXX $CXXFLAGS " in 12532 *" -library=stlport4 "*) 12533 solaris_use_stlport4=yes 12534 ;; 12535 esac 12536 12537 # Adding this requires a known-good setup of shared libraries for 12538 # Sun compiler versions before 5.6, else PIC objects from an old 12539 # archive will be linked into the output, leading to subtle bugs. 12540 if test "$solaris_use_stlport4" != yes; then 12541 postdeps_CXX='-library=Cstd -library=Crun' 12542 fi 12543 ;; 12544 esac 12545 ;; 12546esac 12547 12548case " $postdeps_CXX " in 12549*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12550esac 12551 12552lt_prog_compiler_wl_CXX= 12553lt_prog_compiler_pic_CXX= 12554lt_prog_compiler_static_CXX= 12555 12556{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12557$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12558 12559 # C++ specific cases for pic, static, wl, etc. 12560 if test "$GXX" = yes; then 12561 lt_prog_compiler_wl_CXX='-Wl,' 12562 lt_prog_compiler_static_CXX='-static' 12563 12564 case $host_os in 12565 aix*) 12566 # All AIX code is PIC. 12567 if test "$host_cpu" = ia64; then 12568 # AIX 5 now supports IA64 processor 12569 lt_prog_compiler_static_CXX='-Bstatic' 12570 fi 12571 ;; 12572 amigaos*) 12573 # FIXME: we need at least 68020 code to build shared libraries, but 12574 # adding the `-m68020' flag to GCC prevents building anything better, 12575 # like `-m68040'. 12576 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12577 ;; 12578 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12579 # PIC is the default for these OSes. 12580 ;; 12581 mingw* | cygwin* | os2* | pw32*) 12582 # This hack is so that the source file can tell whether it is being 12583 # built for inclusion in a dll (and should export symbols for example). 12584 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12585 # (--disable-auto-import) libraries 12586 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12587 ;; 12588 darwin* | rhapsody*) 12589 # PIC is the default on this platform 12590 # Common symbols not allowed in MH_DYLIB files 12591 lt_prog_compiler_pic_CXX='-fno-common' 12592 ;; 12593 *djgpp*) 12594 # DJGPP does not support shared libraries at all 12595 lt_prog_compiler_pic_CXX= 12596 ;; 12597 interix[3-9]*) 12598 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12599 # Instead, we relocate shared libraries at runtime. 12600 ;; 12601 sysv4*MP*) 12602 if test -d /usr/nec; then 12603 lt_prog_compiler_pic_CXX=-Kconform_pic 12604 fi 12605 ;; 12606 hpux*) 12607 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12608 # not for PA HP-UX. 12609 case $host_cpu in 12610 hppa*64*|ia64*) 12611 ;; 12612 *) 12613 lt_prog_compiler_pic_CXX='-fPIC' 12614 ;; 12615 esac 12616 ;; 12617 *) 12618 lt_prog_compiler_pic_CXX='-fPIC' 12619 ;; 12620 esac 12621 else 12622 case $host_os in 12623 aix[4-9]*) 12624 # All AIX code is PIC. 12625 if test "$host_cpu" = ia64; then 12626 # AIX 5 now supports IA64 processor 12627 lt_prog_compiler_static_CXX='-Bstatic' 12628 else 12629 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12630 fi 12631 ;; 12632 chorus*) 12633 case $cc_basename in 12634 cxch68*) 12635 # Green Hills C++ Compiler 12636 # _LT_AC_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" 12637 ;; 12638 esac 12639 ;; 12640 darwin*) 12641 # PIC is the default on this platform 12642 # Common symbols not allowed in MH_DYLIB files 12643 case $cc_basename in 12644 xlc*) 12645 lt_prog_compiler_pic_CXX='-qnocommon' 12646 lt_prog_compiler_wl_CXX='-Wl,' 12647 ;; 12648 esac 12649 ;; 12650 dgux*) 12651 case $cc_basename in 12652 ec++*) 12653 lt_prog_compiler_pic_CXX='-KPIC' 12654 ;; 12655 ghcx*) 12656 # Green Hills C++ Compiler 12657 lt_prog_compiler_pic_CXX='-pic' 12658 ;; 12659 *) 12660 ;; 12661 esac 12662 ;; 12663 freebsd* | dragonfly*) 12664 # FreeBSD uses GNU C++ 12665 ;; 12666 hpux9* | hpux10* | hpux11*) 12667 case $cc_basename in 12668 CC*) 12669 lt_prog_compiler_wl_CXX='-Wl,' 12670 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12671 if test "$host_cpu" != ia64; then 12672 lt_prog_compiler_pic_CXX='+Z' 12673 fi 12674 ;; 12675 aCC*) 12676 lt_prog_compiler_wl_CXX='-Wl,' 12677 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12678 case $host_cpu in 12679 hppa*64*|ia64*) 12680 # +Z the default 12681 ;; 12682 *) 12683 lt_prog_compiler_pic_CXX='+Z' 12684 ;; 12685 esac 12686 ;; 12687 *) 12688 ;; 12689 esac 12690 ;; 12691 interix*) 12692 # This is c89, which is MS Visual C++ (no shared libs) 12693 # Anyone wants to do a port? 12694 ;; 12695 irix5* | irix6* | nonstopux*) 12696 case $cc_basename in 12697 CC*) 12698 lt_prog_compiler_wl_CXX='-Wl,' 12699 lt_prog_compiler_static_CXX='-non_shared' 12700 # CC pic flag -KPIC is the default. 12701 ;; 12702 *) 12703 ;; 12704 esac 12705 ;; 12706 linux* | k*bsd*-gnu) 12707 case $cc_basename in 12708 KCC*) 12709 # KAI C++ Compiler 12710 lt_prog_compiler_wl_CXX='--backend -Wl,' 12711 lt_prog_compiler_pic_CXX='-fPIC' 12712 ;; 12713 icpc* | ecpc*) 12714 # Intel C++ 12715 lt_prog_compiler_wl_CXX='-Wl,' 12716 lt_prog_compiler_pic_CXX='-KPIC' 12717 lt_prog_compiler_static_CXX='-static' 12718 ;; 12719 pgCC* | pgcpp*) 12720 # Portland Group C++ compiler. 12721 lt_prog_compiler_wl_CXX='-Wl,' 12722 lt_prog_compiler_pic_CXX='-fpic' 12723 lt_prog_compiler_static_CXX='-Bstatic' 12724 ;; 12725 cxx*) 12726 # Compaq C++ 12727 # Make sure the PIC flag is empty. It appears that all Alpha 12728 # Linux and Compaq Tru64 Unix objects are PIC. 12729 lt_prog_compiler_pic_CXX= 12730 lt_prog_compiler_static_CXX='-non_shared' 12731 ;; 12732 *) 12733 case `$CC -V 2>&1 | sed 5q` in 12734 *Sun\ C*) 12735 # Sun C++ 5.9 12736 lt_prog_compiler_pic_CXX='-KPIC' 12737 lt_prog_compiler_static_CXX='-Bstatic' 12738 lt_prog_compiler_wl_CXX='-Qoption ld ' 12739 ;; 12740 esac 12741 ;; 12742 esac 12743 ;; 12744 lynxos*) 12745 ;; 12746 m88k*) 12747 ;; 12748 mvs*) 12749 case $cc_basename in 12750 cxx*) 12751 lt_prog_compiler_pic_CXX='-W c,exportall' 12752 ;; 12753 *) 12754 ;; 12755 esac 12756 ;; 12757 netbsd*) 12758 ;; 12759 osf3* | osf4* | osf5*) 12760 case $cc_basename in 12761 KCC*) 12762 lt_prog_compiler_wl_CXX='--backend -Wl,' 12763 ;; 12764 RCC*) 12765 # Rational C++ 2.4.1 12766 lt_prog_compiler_pic_CXX='-pic' 12767 ;; 12768 cxx*) 12769 # Digital/Compaq C++ 12770 lt_prog_compiler_wl_CXX='-Wl,' 12771 # Make sure the PIC flag is empty. It appears that all Alpha 12772 # Linux and Compaq Tru64 Unix objects are PIC. 12773 lt_prog_compiler_pic_CXX= 12774 lt_prog_compiler_static_CXX='-non_shared' 12775 ;; 12776 *) 12777 ;; 12778 esac 12779 ;; 12780 psos*) 12781 ;; 12782 solaris*) 12783 case $cc_basename in 12784 CC*) 12785 # Sun C++ 4.2, 5.x and Centerline C++ 12786 lt_prog_compiler_pic_CXX='-KPIC' 12787 lt_prog_compiler_static_CXX='-Bstatic' 12788 lt_prog_compiler_wl_CXX='-Qoption ld ' 12789 ;; 12790 gcx*) 12791 # Green Hills C++ Compiler 12792 lt_prog_compiler_pic_CXX='-PIC' 12793 ;; 12794 *) 12795 ;; 12796 esac 12797 ;; 12798 sunos4*) 12799 case $cc_basename in 12800 CC*) 12801 # Sun C++ 4.x 12802 lt_prog_compiler_pic_CXX='-pic' 12803 lt_prog_compiler_static_CXX='-Bstatic' 12804 ;; 12805 lcc*) 12806 # Lucid 12807 lt_prog_compiler_pic_CXX='-pic' 12808 ;; 12809 *) 12810 ;; 12811 esac 12812 ;; 12813 tandem*) 12814 case $cc_basename in 12815 NCC*) 12816 # NonStop-UX NCC 3.20 12817 lt_prog_compiler_pic_CXX='-KPIC' 12818 ;; 12819 *) 12820 ;; 12821 esac 12822 ;; 12823 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12824 case $cc_basename in 12825 CC*) 12826 lt_prog_compiler_wl_CXX='-Wl,' 12827 lt_prog_compiler_pic_CXX='-KPIC' 12828 lt_prog_compiler_static_CXX='-Bstatic' 12829 ;; 12830 esac 12831 ;; 12832 vxworks*) 12833 ;; 12834 *) 12835 lt_prog_compiler_can_build_shared_CXX=no 12836 ;; 12837 esac 12838 fi 12839 12840{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12841$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12842 12843# 12844# Check to make sure the PIC flag actually works. 12845# 12846if test -n "$lt_prog_compiler_pic_CXX"; then 12847 12848{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12849$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12850if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12851 $as_echo_n "(cached) " >&6 12852else 12853 lt_cv_prog_compiler_pic_works_CXX=no 12854 ac_outfile=conftest.$ac_objext 12855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12856 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12857 # Insert the option either (1) after the last *FLAGS variable, or 12858 # (2) before a word containing "conftest.", or (3) at the end. 12859 # Note that $ac_compile itself does not contain backslashes and begins 12860 # with a dollar sign (not a hyphen), so the echo should work correctly. 12861 # The option is referenced via a variable to avoid confusing sed. 12862 lt_compile=`echo "$ac_compile" | $SED \ 12863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12865 -e 's:$: $lt_compiler_flag:'` 12866 (eval echo "\"\$as_me:12866: $lt_compile\"" >&5) 12867 (eval "$lt_compile" 2>conftest.err) 12868 ac_status=$? 12869 cat conftest.err >&5 12870 echo "$as_me:12870: \$? = $ac_status" >&5 12871 if (exit $ac_status) && test -s "$ac_outfile"; then 12872 # The compiler can only warn and ignore the option if not recognized 12873 # So say no if there are warnings other than the usual output. 12874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12877 lt_cv_prog_compiler_pic_works_CXX=yes 12878 fi 12879 fi 12880 $rm conftest* 12881 12882fi 12883{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12884$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12885 12886if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12887 case $lt_prog_compiler_pic_CXX in 12888 "" | " "*) ;; 12889 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12890 esac 12891else 12892 lt_prog_compiler_pic_CXX= 12893 lt_prog_compiler_can_build_shared_CXX=no 12894fi 12895 12896fi 12897case $host_os in 12898 # For platforms which do not support PIC, -DPIC is meaningless: 12899 *djgpp*) 12900 lt_prog_compiler_pic_CXX= 12901 ;; 12902 *) 12903 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12904 ;; 12905esac 12906 12907# 12908# Check to make sure the static flag actually works. 12909# 12910wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12911{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12912$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12913if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12914 $as_echo_n "(cached) " >&6 12915else 12916 lt_cv_prog_compiler_static_works_CXX=no 12917 save_LDFLAGS="$LDFLAGS" 12918 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12919 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12921 # The linker can only warn and ignore the option if not recognized 12922 # So say no if there are warnings 12923 if test -s conftest.err; then 12924 # Append any errors to the config.log. 12925 cat conftest.err 1>&5 12926 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12928 if diff conftest.exp conftest.er2 >/dev/null; then 12929 lt_cv_prog_compiler_static_works_CXX=yes 12930 fi 12931 else 12932 lt_cv_prog_compiler_static_works_CXX=yes 12933 fi 12934 fi 12935 $rm -r conftest* 12936 LDFLAGS="$save_LDFLAGS" 12937 12938fi 12939{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12940$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12941 12942if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12943 : 12944else 12945 lt_prog_compiler_static_CXX= 12946fi 12947 12948 12949{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12950$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12951if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12952 $as_echo_n "(cached) " >&6 12953else 12954 lt_cv_prog_compiler_c_o_CXX=no 12955 $rm -r conftest 2>/dev/null 12956 mkdir conftest 12957 cd conftest 12958 mkdir out 12959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12960 12961 lt_compiler_flag="-o out/conftest2.$ac_objext" 12962 # Insert the option either (1) after the last *FLAGS variable, or 12963 # (2) before a word containing "conftest.", or (3) at the end. 12964 # Note that $ac_compile itself does not contain backslashes and begins 12965 # with a dollar sign (not a hyphen), so the echo should work correctly. 12966 lt_compile=`echo "$ac_compile" | $SED \ 12967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12969 -e 's:$: $lt_compiler_flag:'` 12970 (eval echo "\"\$as_me:12970: $lt_compile\"" >&5) 12971 (eval "$lt_compile" 2>out/conftest.err) 12972 ac_status=$? 12973 cat out/conftest.err >&5 12974 echo "$as_me:12974: \$? = $ac_status" >&5 12975 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12976 then 12977 # The compiler can only warn and ignore the option if not recognized 12978 # So say no if there are warnings 12979 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12980 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12981 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12982 lt_cv_prog_compiler_c_o_CXX=yes 12983 fi 12984 fi 12985 chmod u+w . 2>&5 12986 $rm conftest* 12987 # SGI C++ compiler will create directory out/ii_files/ for 12988 # template instantiation 12989 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12990 $rm out/* && rmdir out 12991 cd .. 12992 rmdir conftest 12993 $rm conftest* 12994 12995fi 12996{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12997$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 12998 12999 13000hard_links="nottested" 13001if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13002 # do not overwrite the value of need_locks provided by the user 13003 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13004$as_echo_n "checking if we can lock with hard links... " >&6; } 13005 hard_links=yes 13006 $rm conftest* 13007 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13008 touch conftest.a 13009 ln conftest.a conftest.b 2>&5 || hard_links=no 13010 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13011 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 13012$as_echo "$hard_links" >&6; } 13013 if test "$hard_links" = no; then 13014 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13015$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13016 need_locks=warn 13017 fi 13018else 13019 need_locks=no 13020fi 13021 13022{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13023$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13024 13025 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13026 case $host_os in 13027 aix[4-9]*) 13028 # If we're using GNU nm, then we don't want the "-C" option. 13029 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13030 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13031 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' 13032 else 13033 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' 13034 fi 13035 ;; 13036 pw32*) 13037 export_symbols_cmds_CXX="$ltdll_cmds" 13038 ;; 13039 cygwin* | mingw*) 13040 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' 13041 ;; 13042 linux* | k*bsd*-gnu) 13043 link_all_deplibs_CXX=no 13044 ;; 13045 *) 13046 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13047 ;; 13048 esac 13049 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13050 13051{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13052$as_echo "$ld_shlibs_CXX" >&6; } 13053test "$ld_shlibs_CXX" = no && can_build_shared=no 13054 13055# 13056# Do we need to explicitly link libc? 13057# 13058case "x$archive_cmds_need_lc_CXX" in 13059x|xyes) 13060 # Assume -lc should be added 13061 archive_cmds_need_lc_CXX=yes 13062 13063 if test "$enable_shared" = yes && test "$GCC" = yes; then 13064 case $archive_cmds_CXX in 13065 *'~'*) 13066 # FIXME: we may have to deal with multi-command sequences. 13067 ;; 13068 '$CC '*) 13069 # Test whether the compiler implicitly links with -lc since on some 13070 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13071 # to ld, don't add -lc before -lgcc. 13072 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13073$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13074 $rm conftest* 13075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13076 13077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13078 (eval $ac_compile) 2>&5 13079 ac_status=$? 13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } 2>conftest.err; then 13082 soname=conftest 13083 lib=conftest 13084 libobjs=conftest.$ac_objext 13085 deplibs= 13086 wl=$lt_prog_compiler_wl_CXX 13087 pic_flag=$lt_prog_compiler_pic_CXX 13088 compiler_flags=-v 13089 linker_flags=-v 13090 verstring= 13091 output_objdir=. 13092 libname=conftest 13093 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13094 allow_undefined_flag_CXX= 13095 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13096 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13097 ac_status=$? 13098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13099 (exit $ac_status); } 13100 then 13101 archive_cmds_need_lc_CXX=no 13102 else 13103 archive_cmds_need_lc_CXX=yes 13104 fi 13105 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13106 else 13107 cat conftest.err 1>&5 13108 fi 13109 $rm conftest* 13110 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13111$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13112 ;; 13113 esac 13114 fi 13115 ;; 13116esac 13117 13118{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13119$as_echo_n "checking dynamic linker characteristics... " >&6; } 13120library_names_spec= 13121libname_spec='lib$name' 13122soname_spec= 13123shrext_cmds=".so" 13124postinstall_cmds= 13125postuninstall_cmds= 13126finish_cmds= 13127finish_eval= 13128shlibpath_var= 13129shlibpath_overrides_runpath=unknown 13130version_type=none 13131dynamic_linker="$host_os ld.so" 13132sys_lib_dlsearch_path_spec="/lib /usr/lib" 13133 13134need_lib_prefix=unknown 13135hardcode_into_libs=no 13136 13137# when you set need_version to no, make sure it does not cause -set_version 13138# flags to be left without arguments 13139need_version=unknown 13140 13141case $host_os in 13142aix3*) 13143 version_type=linux 13144 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13145 shlibpath_var=LIBPATH 13146 13147 # AIX 3 has no versioning support, so we append a major version to the name. 13148 soname_spec='${libname}${release}${shared_ext}$major' 13149 ;; 13150 13151aix[4-9]*) 13152 version_type=linux 13153 need_lib_prefix=no 13154 need_version=no 13155 hardcode_into_libs=yes 13156 if test "$host_cpu" = ia64; then 13157 # AIX 5 supports IA64 13158 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13159 shlibpath_var=LD_LIBRARY_PATH 13160 else 13161 # With GCC up to 2.95.x, collect2 would create an import file 13162 # for dependence libraries. The import file would start with 13163 # the line `#! .'. This would cause the generated library to 13164 # depend on `.', always an invalid library. This was fixed in 13165 # development snapshots of GCC prior to 3.0. 13166 case $host_os in 13167 aix4 | aix4.[01] | aix4.[01].*) 13168 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13169 echo ' yes ' 13170 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13171 : 13172 else 13173 can_build_shared=no 13174 fi 13175 ;; 13176 esac 13177 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13178 # soname into executable. Probably we can add versioning support to 13179 # collect2, so additional links can be useful in future. 13180 if test "$aix_use_runtimelinking" = yes; then 13181 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13182 # instead of lib<name>.a to let people know that these are not 13183 # typical AIX shared libraries. 13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13185 else 13186 # We preserve .a as extension for shared libraries through AIX4.2 13187 # and later when we are not doing run time linking. 13188 library_names_spec='${libname}${release}.a $libname.a' 13189 soname_spec='${libname}${release}${shared_ext}$major' 13190 fi 13191 shlibpath_var=LIBPATH 13192 fi 13193 ;; 13194 13195amigaos*) 13196 library_names_spec='$libname.ixlibrary $libname.a' 13197 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13198 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' 13199 ;; 13200 13201beos*) 13202 library_names_spec='${libname}${shared_ext}' 13203 dynamic_linker="$host_os ld.so" 13204 shlibpath_var=LIBRARY_PATH 13205 ;; 13206 13207bsdi[45]*) 13208 version_type=linux 13209 need_version=no 13210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13211 soname_spec='${libname}${release}${shared_ext}$major' 13212 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13213 shlibpath_var=LD_LIBRARY_PATH 13214 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13215 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13216 # the default ld.so.conf also contains /usr/contrib/lib and 13217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13218 # libtool to hard-code these into programs 13219 ;; 13220 13221cygwin* | mingw* | pw32*) 13222 version_type=windows 13223 shrext_cmds=".dll" 13224 need_version=no 13225 need_lib_prefix=no 13226 13227 case $GCC,$host_os in 13228 yes,cygwin* | yes,mingw* | yes,pw32*) 13229 library_names_spec='$libname.dll.a' 13230 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13231 postinstall_cmds='base_file=`basename \${file}`~ 13232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13233 dldir=$destdir/`dirname \$dlpath`~ 13234 test -d \$dldir || mkdir -p \$dldir~ 13235 $install_prog $dir/$dlname \$dldir/$dlname~ 13236 chmod a+x \$dldir/$dlname' 13237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13238 dlpath=$dir/\$dldll~ 13239 $rm \$dlpath' 13240 shlibpath_overrides_runpath=yes 13241 13242 case $host_os in 13243 cygwin*) 13244 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13247 ;; 13248 mingw*) 13249 # MinGW DLLs use traditional 'lib' prefix 13250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13252 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13253 # It is most probably a Windows format PATH printed by 13254 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13255 # path with ; separators, and with drive letters. We can handle the 13256 # drive letters (cygwin fileutils understands them), so leave them, 13257 # especially as we might pass files found there to a mingw objdump, 13258 # which wouldn't understand a cygwinified path. Ahh. 13259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13260 else 13261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13262 fi 13263 ;; 13264 pw32*) 13265 # pw32 DLLs use 'pw' prefix rather than 'lib' 13266 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13267 ;; 13268 esac 13269 ;; 13270 13271 *) 13272 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13273 ;; 13274 esac 13275 dynamic_linker='Win32 ld.exe' 13276 # FIXME: first we should search . and the directory the executable is in 13277 shlibpath_var=PATH 13278 ;; 13279 13280darwin* | rhapsody*) 13281 dynamic_linker="$host_os dyld" 13282 version_type=darwin 13283 need_lib_prefix=no 13284 need_version=no 13285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13286 soname_spec='${libname}${release}${major}$shared_ext' 13287 shlibpath_overrides_runpath=yes 13288 shlibpath_var=DYLD_LIBRARY_PATH 13289 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13290 13291 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13292 ;; 13293 13294dgux*) 13295 version_type=linux 13296 need_lib_prefix=no 13297 need_version=no 13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13299 soname_spec='${libname}${release}${shared_ext}$major' 13300 shlibpath_var=LD_LIBRARY_PATH 13301 ;; 13302 13303freebsd1*) 13304 dynamic_linker=no 13305 ;; 13306 13307freebsd* | dragonfly*) 13308 # DragonFly does not have aout. When/if they implement a new 13309 # versioning mechanism, adjust this. 13310 if test -x /usr/bin/objformat; then 13311 objformat=`/usr/bin/objformat` 13312 else 13313 case $host_os in 13314 freebsd[123]*) objformat=aout ;; 13315 *) objformat=elf ;; 13316 esac 13317 fi 13318 version_type=freebsd-$objformat 13319 case $version_type in 13320 freebsd-elf*) 13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13322 need_version=no 13323 need_lib_prefix=no 13324 ;; 13325 freebsd-*) 13326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13327 need_version=yes 13328 ;; 13329 esac 13330 shlibpath_var=LD_LIBRARY_PATH 13331 case $host_os in 13332 freebsd2*) 13333 shlibpath_overrides_runpath=yes 13334 ;; 13335 freebsd3.[01]* | freebsdelf3.[01]*) 13336 shlibpath_overrides_runpath=yes 13337 hardcode_into_libs=yes 13338 ;; 13339 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13340 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13341 shlibpath_overrides_runpath=no 13342 hardcode_into_libs=yes 13343 ;; 13344 *) # from 4.6 on, and DragonFly 13345 shlibpath_overrides_runpath=yes 13346 hardcode_into_libs=yes 13347 ;; 13348 esac 13349 ;; 13350 13351gnu*) 13352 version_type=linux 13353 need_lib_prefix=no 13354 need_version=no 13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13356 soname_spec='${libname}${release}${shared_ext}$major' 13357 shlibpath_var=LD_LIBRARY_PATH 13358 hardcode_into_libs=yes 13359 ;; 13360 13361hpux9* | hpux10* | hpux11*) 13362 # Give a soname corresponding to the major version so that dld.sl refuses to 13363 # link against other versions. 13364 version_type=sunos 13365 need_lib_prefix=no 13366 need_version=no 13367 case $host_cpu in 13368 ia64*) 13369 shrext_cmds='.so' 13370 hardcode_into_libs=yes 13371 dynamic_linker="$host_os dld.so" 13372 shlibpath_var=LD_LIBRARY_PATH 13373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13375 soname_spec='${libname}${release}${shared_ext}$major' 13376 if test "X$HPUX_IA64_MODE" = X32; then 13377 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13378 else 13379 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13380 fi 13381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13382 ;; 13383 hppa*64*) 13384 shrext_cmds='.sl' 13385 hardcode_into_libs=yes 13386 dynamic_linker="$host_os dld.sl" 13387 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13390 soname_spec='${libname}${release}${shared_ext}$major' 13391 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13393 ;; 13394 *) 13395 shrext_cmds='.sl' 13396 dynamic_linker="$host_os dld.sl" 13397 shlibpath_var=SHLIB_PATH 13398 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13400 soname_spec='${libname}${release}${shared_ext}$major' 13401 ;; 13402 esac 13403 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13404 postinstall_cmds='chmod 555 $lib' 13405 ;; 13406 13407interix[3-9]*) 13408 version_type=linux 13409 need_lib_prefix=no 13410 need_version=no 13411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13412 soname_spec='${libname}${release}${shared_ext}$major' 13413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13414 shlibpath_var=LD_LIBRARY_PATH 13415 shlibpath_overrides_runpath=no 13416 hardcode_into_libs=yes 13417 ;; 13418 13419irix5* | irix6* | nonstopux*) 13420 case $host_os in 13421 nonstopux*) version_type=nonstopux ;; 13422 *) 13423 if test "$lt_cv_prog_gnu_ld" = yes; then 13424 version_type=linux 13425 else 13426 version_type=irix 13427 fi ;; 13428 esac 13429 need_lib_prefix=no 13430 need_version=no 13431 soname_spec='${libname}${release}${shared_ext}$major' 13432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13433 case $host_os in 13434 irix5* | nonstopux*) 13435 libsuff= shlibsuff= 13436 ;; 13437 *) 13438 case $LD in # libtool.m4 will add one of these switches to LD 13439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13440 libsuff= shlibsuff= libmagic=32-bit;; 13441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13442 libsuff=32 shlibsuff=N32 libmagic=N32;; 13443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13444 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13445 *) libsuff= shlibsuff= libmagic=never-match;; 13446 esac 13447 ;; 13448 esac 13449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13450 shlibpath_overrides_runpath=no 13451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13453 hardcode_into_libs=yes 13454 ;; 13455 13456# No shared lib support for Linux oldld, aout, or coff. 13457linux*oldld* | linux*aout* | linux*coff*) 13458 dynamic_linker=no 13459 ;; 13460 13461# This must be Linux ELF. 13462linux* | k*bsd*-gnu) 13463 version_type=linux 13464 need_lib_prefix=no 13465 need_version=no 13466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13467 soname_spec='${libname}${release}${shared_ext}$major' 13468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13469 shlibpath_var=LD_LIBRARY_PATH 13470 shlibpath_overrides_runpath=no 13471 # This implies no fast_install, which is unacceptable. 13472 # Some rework will be needed to allow for fast_install 13473 # before this can be enabled. 13474 hardcode_into_libs=yes 13475 13476 # find out which ABI we are using 13477 libsuff= 13478 case "$host_cpu" in 13479 x86_64*|s390x*|powerpc64*) 13480 echo '#line 13480 "configure"' > conftest.$ac_ext 13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13482 (eval $ac_compile) 2>&5 13483 ac_status=$? 13484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13485 (exit $ac_status); }; then 13486 case `/usr/bin/file conftest.$ac_objext` in 13487 *64-bit*) 13488 libsuff=64 13489 ;; 13490 esac 13491 fi 13492 rm -rf conftest* 13493 ;; 13494 esac 13495 13496 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 13497 13498 # Append ld.so.conf contents to the search path 13499 if test -f /etc/ld.so.conf; then 13500 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' ' '` 13501 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13502 fi 13503 13504 # We used to test for /lib/ld.so.1 and disable shared libraries on 13505 # powerpc, because MkLinux only supported shared libraries with the 13506 # GNU dynamic linker. Since this was broken with cross compilers, 13507 # most powerpc-linux boxes support dynamic linking these days and 13508 # people can always --disable-shared, the test was removed, and we 13509 # assume the GNU/Linux dynamic linker is in use. 13510 dynamic_linker='GNU/Linux ld.so' 13511 ;; 13512 13513netbsd*) 13514 version_type=sunos 13515 need_lib_prefix=no 13516 need_version=no 13517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13520 dynamic_linker='NetBSD (a.out) ld.so' 13521 else 13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13523 soname_spec='${libname}${release}${shared_ext}$major' 13524 dynamic_linker='NetBSD ld.elf_so' 13525 fi 13526 shlibpath_var=LD_LIBRARY_PATH 13527 shlibpath_overrides_runpath=yes 13528 hardcode_into_libs=yes 13529 ;; 13530 13531newsos6) 13532 version_type=linux 13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 shlibpath_overrides_runpath=yes 13536 ;; 13537 13538nto-qnx*) 13539 version_type=linux 13540 need_lib_prefix=no 13541 need_version=no 13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13543 soname_spec='${libname}${release}${shared_ext}$major' 13544 shlibpath_var=LD_LIBRARY_PATH 13545 shlibpath_overrides_runpath=yes 13546 ;; 13547 13548openbsd*) 13549 version_type=sunos 13550 sys_lib_dlsearch_path_spec="/usr/lib" 13551 need_lib_prefix=no 13552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13553 case $host_os in 13554 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13555 *) need_version=no ;; 13556 esac 13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13559 shlibpath_var=LD_LIBRARY_PATH 13560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13561 case $host_os in 13562 openbsd2.[89] | openbsd2.[89].*) 13563 shlibpath_overrides_runpath=no 13564 ;; 13565 *) 13566 shlibpath_overrides_runpath=yes 13567 ;; 13568 esac 13569 else 13570 shlibpath_overrides_runpath=yes 13571 fi 13572 ;; 13573 13574os2*) 13575 libname_spec='$name' 13576 shrext_cmds=".dll" 13577 need_lib_prefix=no 13578 library_names_spec='$libname${shared_ext} $libname.a' 13579 dynamic_linker='OS/2 ld.exe' 13580 shlibpath_var=LIBPATH 13581 ;; 13582 13583osf3* | osf4* | osf5*) 13584 version_type=osf 13585 need_lib_prefix=no 13586 need_version=no 13587 soname_spec='${libname}${release}${shared_ext}$major' 13588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13589 shlibpath_var=LD_LIBRARY_PATH 13590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13592 ;; 13593 13594rdos*) 13595 dynamic_linker=no 13596 ;; 13597 13598solaris*) 13599 version_type=linux 13600 need_lib_prefix=no 13601 need_version=no 13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13603 soname_spec='${libname}${release}${shared_ext}$major' 13604 shlibpath_var=LD_LIBRARY_PATH 13605 shlibpath_overrides_runpath=yes 13606 hardcode_into_libs=yes 13607 # ldd complains unless libraries are executable 13608 postinstall_cmds='chmod +x $lib' 13609 ;; 13610 13611sunos4*) 13612 version_type=sunos 13613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13615 shlibpath_var=LD_LIBRARY_PATH 13616 shlibpath_overrides_runpath=yes 13617 if test "$with_gnu_ld" = yes; then 13618 need_lib_prefix=no 13619 fi 13620 need_version=yes 13621 ;; 13622 13623sysv4 | sysv4.3*) 13624 version_type=linux 13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13626 soname_spec='${libname}${release}${shared_ext}$major' 13627 shlibpath_var=LD_LIBRARY_PATH 13628 case $host_vendor in 13629 sni) 13630 shlibpath_overrides_runpath=no 13631 need_lib_prefix=no 13632 export_dynamic_flag_spec='${wl}-Blargedynsym' 13633 runpath_var=LD_RUN_PATH 13634 ;; 13635 siemens) 13636 need_lib_prefix=no 13637 ;; 13638 motorola) 13639 need_lib_prefix=no 13640 need_version=no 13641 shlibpath_overrides_runpath=no 13642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13643 ;; 13644 esac 13645 ;; 13646 13647sysv4*MP*) 13648 if test -d /usr/nec ;then 13649 version_type=linux 13650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13651 soname_spec='$libname${shared_ext}.$major' 13652 shlibpath_var=LD_LIBRARY_PATH 13653 fi 13654 ;; 13655 13656sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13657 version_type=freebsd-elf 13658 need_lib_prefix=no 13659 need_version=no 13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13661 soname_spec='${libname}${release}${shared_ext}$major' 13662 shlibpath_var=LD_LIBRARY_PATH 13663 hardcode_into_libs=yes 13664 if test "$with_gnu_ld" = yes; then 13665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13666 shlibpath_overrides_runpath=no 13667 else 13668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13669 shlibpath_overrides_runpath=yes 13670 case $host_os in 13671 sco3.2v5*) 13672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13673 ;; 13674 esac 13675 fi 13676 sys_lib_dlsearch_path_spec='/usr/lib' 13677 ;; 13678 13679uts4*) 13680 version_type=linux 13681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13682 soname_spec='${libname}${release}${shared_ext}$major' 13683 shlibpath_var=LD_LIBRARY_PATH 13684 ;; 13685 13686*) 13687 dynamic_linker=no 13688 ;; 13689esac 13690{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13691$as_echo "$dynamic_linker" >&6; } 13692test "$dynamic_linker" = no && can_build_shared=no 13693 13694if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13695 $as_echo_n "(cached) " >&6 13696else 13697 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13698fi 13699 13700sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13701if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13702 $as_echo_n "(cached) " >&6 13703else 13704 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13705fi 13706 13707sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13708 13709variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13710if test "$GCC" = yes; then 13711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13712fi 13713 13714{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13715$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13716hardcode_action_CXX= 13717if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13718 test -n "$runpath_var_CXX" || \ 13719 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13720 13721 # We can hardcode non-existant directories. 13722 if test "$hardcode_direct_CXX" != no && 13723 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13724 # have to relink, otherwise we might link with an installed library 13725 # when we should be linking with a yet-to-be-installed one 13726 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13727 test "$hardcode_minus_L_CXX" != no; then 13728 # Linking always hardcodes the temporary library directory. 13729 hardcode_action_CXX=relink 13730 else 13731 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13732 hardcode_action_CXX=immediate 13733 fi 13734else 13735 # We cannot hardcode anything, or else we can only hardcode existing 13736 # directories. 13737 hardcode_action_CXX=unsupported 13738fi 13739{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13740$as_echo "$hardcode_action_CXX" >&6; } 13741 13742if test "$hardcode_action_CXX" = relink; then 13743 # Fast installation is not supported 13744 enable_fast_install=no 13745elif test "$shlibpath_overrides_runpath" = yes || 13746 test "$enable_shared" = no; then 13747 # Fast installation is not necessary 13748 enable_fast_install=needless 13749fi 13750 13751 13752# The else clause should only fire when bootstrapping the 13753# libtool distribution, otherwise you forgot to ship ltmain.sh 13754# with your package, and you will get complaints that there are 13755# no rules to generate ltmain.sh. 13756if test -f "$ltmain"; then 13757 # See if we are running on zsh, and set the options which allow our commands through 13758 # without removal of \ escapes. 13759 if test -n "${ZSH_VERSION+set}" ; then 13760 setopt NO_GLOB_SUBST 13761 fi 13762 # Now quote all the things that may contain metacharacters while being 13763 # careful not to overquote the AC_SUBSTed values. We take copies of the 13764 # variables and quote the copies for generation of the libtool script. 13765 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13766 SED SHELL STRIP \ 13767 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13768 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13769 deplibs_check_method reload_flag reload_cmds need_locks \ 13770 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13771 lt_cv_sys_global_symbol_to_c_name_address \ 13772 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13773 old_postinstall_cmds old_postuninstall_cmds \ 13774 compiler_CXX \ 13775 CC_CXX \ 13776 LD_CXX \ 13777 lt_prog_compiler_wl_CXX \ 13778 lt_prog_compiler_pic_CXX \ 13779 lt_prog_compiler_static_CXX \ 13780 lt_prog_compiler_no_builtin_flag_CXX \ 13781 export_dynamic_flag_spec_CXX \ 13782 thread_safe_flag_spec_CXX \ 13783 whole_archive_flag_spec_CXX \ 13784 enable_shared_with_static_runtimes_CXX \ 13785 old_archive_cmds_CXX \ 13786 old_archive_from_new_cmds_CXX \ 13787 predep_objects_CXX \ 13788 postdep_objects_CXX \ 13789 predeps_CXX \ 13790 postdeps_CXX \ 13791 compiler_lib_search_path_CXX \ 13792 compiler_lib_search_dirs_CXX \ 13793 archive_cmds_CXX \ 13794 archive_expsym_cmds_CXX \ 13795 postinstall_cmds_CXX \ 13796 postuninstall_cmds_CXX \ 13797 old_archive_from_expsyms_cmds_CXX \ 13798 allow_undefined_flag_CXX \ 13799 no_undefined_flag_CXX \ 13800 export_symbols_cmds_CXX \ 13801 hardcode_libdir_flag_spec_CXX \ 13802 hardcode_libdir_flag_spec_ld_CXX \ 13803 hardcode_libdir_separator_CXX \ 13804 hardcode_automatic_CXX \ 13805 module_cmds_CXX \ 13806 module_expsym_cmds_CXX \ 13807 lt_cv_prog_compiler_c_o_CXX \ 13808 fix_srcfile_path_CXX \ 13809 exclude_expsyms_CXX \ 13810 include_expsyms_CXX; do 13811 13812 case $var in 13813 old_archive_cmds_CXX | \ 13814 old_archive_from_new_cmds_CXX | \ 13815 archive_cmds_CXX | \ 13816 archive_expsym_cmds_CXX | \ 13817 module_cmds_CXX | \ 13818 module_expsym_cmds_CXX | \ 13819 old_archive_from_expsyms_cmds_CXX | \ 13820 export_symbols_cmds_CXX | \ 13821 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13822 postinstall_cmds | postuninstall_cmds | \ 13823 old_postinstall_cmds | old_postuninstall_cmds | \ 13824 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13825 # Double-quote double-evaled strings. 13826 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13827 ;; 13828 *) 13829 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13830 ;; 13831 esac 13832 done 13833 13834 case $lt_echo in 13835 *'\$0 --fallback-echo"') 13836 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13837 ;; 13838 esac 13839 13840cfgfile="$ofile" 13841 13842 cat <<__EOF__ >> "$cfgfile" 13843# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13844 13845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13846 13847# Shell to use when invoking shell scripts. 13848SHELL=$lt_SHELL 13849 13850# Whether or not to build shared libraries. 13851build_libtool_libs=$enable_shared 13852 13853# Whether or not to build static libraries. 13854build_old_libs=$enable_static 13855 13856# Whether or not to add -lc for building shared libraries. 13857build_libtool_need_lc=$archive_cmds_need_lc_CXX 13858 13859# Whether or not to disallow shared libs when runtime libs are static 13860allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13861 13862# Whether or not to optimize for fast installation. 13863fast_install=$enable_fast_install 13864 13865# The host system. 13866host_alias=$host_alias 13867host=$host 13868host_os=$host_os 13869 13870# The build system. 13871build_alias=$build_alias 13872build=$build 13873build_os=$build_os 13874 13875# An echo program that does not interpret backslashes. 13876echo=$lt_echo 13877 13878# The archiver. 13879AR=$lt_AR 13880AR_FLAGS=$lt_AR_FLAGS 13881 13882# A C compiler. 13883LTCC=$lt_LTCC 13884 13885# LTCC compiler flags. 13886LTCFLAGS=$lt_LTCFLAGS 13887 13888# A language-specific compiler. 13889CC=$lt_compiler_CXX 13890 13891# Is the compiler the GNU C compiler? 13892with_gcc=$GCC_CXX 13893 13894# An ERE matcher. 13895EGREP=$lt_EGREP 13896 13897# The linker used to build libraries. 13898LD=$lt_LD_CXX 13899 13900# Whether we need hard or soft links. 13901LN_S=$lt_LN_S 13902 13903# A BSD-compatible nm program. 13904NM=$lt_NM 13905 13906# A symbol stripping program 13907STRIP=$lt_STRIP 13908 13909# Used to examine libraries when file_magic_cmd begins "file" 13910MAGIC_CMD=$MAGIC_CMD 13911 13912# Used on cygwin: DLL creation program. 13913DLLTOOL="$DLLTOOL" 13914 13915# Used on cygwin: object dumper. 13916OBJDUMP="$OBJDUMP" 13917 13918# Used on cygwin: assembler. 13919AS="$AS" 13920 13921# The name of the directory that contains temporary libtool files. 13922objdir=$objdir 13923 13924# How to create reloadable object files. 13925reload_flag=$lt_reload_flag 13926reload_cmds=$lt_reload_cmds 13927 13928# How to pass a linker flag through the compiler. 13929wl=$lt_lt_prog_compiler_wl_CXX 13930 13931# Object file suffix (normally "o"). 13932objext="$ac_objext" 13933 13934# Old archive suffix (normally "a"). 13935libext="$libext" 13936 13937# Shared library suffix (normally ".so"). 13938shrext_cmds='$shrext_cmds' 13939 13940# Executable file suffix (normally ""). 13941exeext="$exeext" 13942 13943# Additional compiler flags for building library objects. 13944pic_flag=$lt_lt_prog_compiler_pic_CXX 13945pic_mode=$pic_mode 13946 13947# What is the maximum length of a command? 13948max_cmd_len=$lt_cv_sys_max_cmd_len 13949 13950# Does compiler simultaneously support -c and -o options? 13951compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13952 13953# Must we lock files when doing compilation? 13954need_locks=$lt_need_locks 13955 13956# Do we need the lib prefix for modules? 13957need_lib_prefix=$need_lib_prefix 13958 13959# Do we need a version for libraries? 13960need_version=$need_version 13961 13962# Whether dlopen is supported. 13963dlopen_support=$enable_dlopen 13964 13965# Whether dlopen of programs is supported. 13966dlopen_self=$enable_dlopen_self 13967 13968# Whether dlopen of statically linked programs is supported. 13969dlopen_self_static=$enable_dlopen_self_static 13970 13971# Compiler flag to prevent dynamic linking. 13972link_static_flag=$lt_lt_prog_compiler_static_CXX 13973 13974# Compiler flag to turn off builtin functions. 13975no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13976 13977# Compiler flag to allow reflexive dlopens. 13978export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13979 13980# Compiler flag to generate shared objects directly from archives. 13981whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13982 13983# Compiler flag to generate thread-safe objects. 13984thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13985 13986# Library versioning type. 13987version_type=$version_type 13988 13989# Format of library name prefix. 13990libname_spec=$lt_libname_spec 13991 13992# List of archive names. First name is the real one, the rest are links. 13993# The last name is the one that the linker finds with -lNAME. 13994library_names_spec=$lt_library_names_spec 13995 13996# The coded name of the library, if different from the real name. 13997soname_spec=$lt_soname_spec 13998 13999# Commands used to build and install an old-style archive. 14000RANLIB=$lt_RANLIB 14001old_archive_cmds=$lt_old_archive_cmds_CXX 14002old_postinstall_cmds=$lt_old_postinstall_cmds 14003old_postuninstall_cmds=$lt_old_postuninstall_cmds 14004 14005# Create an old-style archive from a shared archive. 14006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14007 14008# Create a temporary old-style archive to link instead of a shared archive. 14009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14010 14011# Commands used to build and install a shared archive. 14012archive_cmds=$lt_archive_cmds_CXX 14013archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14014postinstall_cmds=$lt_postinstall_cmds 14015postuninstall_cmds=$lt_postuninstall_cmds 14016 14017# Commands used to build a loadable module (assumed same as above if empty) 14018module_cmds=$lt_module_cmds_CXX 14019module_expsym_cmds=$lt_module_expsym_cmds_CXX 14020 14021# Commands to strip libraries. 14022old_striplib=$lt_old_striplib 14023striplib=$lt_striplib 14024 14025# Dependencies to place before the objects being linked to create a 14026# shared library. 14027predep_objects=$lt_predep_objects_CXX 14028 14029# Dependencies to place after the objects being linked to create a 14030# shared library. 14031postdep_objects=$lt_postdep_objects_CXX 14032 14033# Dependencies to place before the objects being linked to create a 14034# shared library. 14035predeps=$lt_predeps_CXX 14036 14037# Dependencies to place after the objects being linked to create a 14038# shared library. 14039postdeps=$lt_postdeps_CXX 14040 14041# The directories searched by this compiler when creating a shared 14042# library 14043compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14044 14045# The library search path used internally by the compiler when linking 14046# a shared library. 14047compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14048 14049# Method to check whether dependent libraries are shared objects. 14050deplibs_check_method=$lt_deplibs_check_method 14051 14052# Command to use when deplibs_check_method == file_magic. 14053file_magic_cmd=$lt_file_magic_cmd 14054 14055# Flag that allows shared libraries with undefined symbols to be built. 14056allow_undefined_flag=$lt_allow_undefined_flag_CXX 14057 14058# Flag that forces no undefined symbols. 14059no_undefined_flag=$lt_no_undefined_flag_CXX 14060 14061# Commands used to finish a libtool library installation in a directory. 14062finish_cmds=$lt_finish_cmds 14063 14064# Same as above, but a single script fragment to be evaled but not shown. 14065finish_eval=$lt_finish_eval 14066 14067# Take the output of nm and produce a listing of raw symbols and C names. 14068global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14069 14070# Transform the output of nm in a proper C declaration 14071global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14072 14073# Transform the output of nm in a C name address pair 14074global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14075 14076# This is the shared library runtime path variable. 14077runpath_var=$runpath_var 14078 14079# This is the shared library path variable. 14080shlibpath_var=$shlibpath_var 14081 14082# Is shlibpath searched before the hard-coded library search path? 14083shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14084 14085# How to hardcode a shared library path into an executable. 14086hardcode_action=$hardcode_action_CXX 14087 14088# Whether we should hardcode library paths into libraries. 14089hardcode_into_libs=$hardcode_into_libs 14090 14091# Flag to hardcode \$libdir into a binary during linking. 14092# This must work even if \$libdir does not exist. 14093hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14094 14095# If ld is used when linking, flag to hardcode \$libdir into 14096# a binary during linking. This must work even if \$libdir does 14097# not exist. 14098hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14099 14100# Whether we need a single -rpath flag with a separated argument. 14101hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14102 14103# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14104# resulting binary. 14105hardcode_direct=$hardcode_direct_CXX 14106 14107# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14108# resulting binary. 14109hardcode_minus_L=$hardcode_minus_L_CXX 14110 14111# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14112# the resulting binary. 14113hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14114 14115# Set to yes if building a shared library automatically hardcodes DIR into the library 14116# and all subsequent libraries and executables linked against it. 14117hardcode_automatic=$hardcode_automatic_CXX 14118 14119# Variables whose values should be saved in libtool wrapper scripts and 14120# restored at relink time. 14121variables_saved_for_relink="$variables_saved_for_relink" 14122 14123# Whether libtool must link a program against all its dependency libraries. 14124link_all_deplibs=$link_all_deplibs_CXX 14125 14126# Compile-time system search path for libraries 14127sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14128 14129# Run-time system search path for libraries 14130sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14131 14132# Fix the shell variable \$srcfile for the compiler. 14133fix_srcfile_path=$lt_fix_srcfile_path 14134 14135# Set to yes if exported symbols are required. 14136always_export_symbols=$always_export_symbols_CXX 14137 14138# The commands to list exported symbols. 14139export_symbols_cmds=$lt_export_symbols_cmds_CXX 14140 14141# The commands to extract the exported symbol list from a shared archive. 14142extract_expsyms_cmds=$lt_extract_expsyms_cmds 14143 14144# Symbols that should not be listed in the preloaded symbols. 14145exclude_expsyms=$lt_exclude_expsyms_CXX 14146 14147# Symbols that must always be exported. 14148include_expsyms=$lt_include_expsyms_CXX 14149 14150# ### END LIBTOOL TAG CONFIG: $tagname 14151 14152__EOF__ 14153 14154 14155else 14156 # If there is no Makefile yet, we rely on a make rule to execute 14157 # `config.status --recheck' to rerun these tests and create the 14158 # libtool script then. 14159 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14160 if test -f "$ltmain_in"; then 14161 test -f Makefile && make "$ltmain" 14162 fi 14163fi 14164 14165 14166ac_ext=c 14167ac_cpp='$CPP $CPPFLAGS' 14168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14170ac_compiler_gnu=$ac_cv_c_compiler_gnu 14171 14172CC=$lt_save_CC 14173LDCXX=$LD 14174LD=$lt_save_LD 14175GCC=$lt_save_GCC 14176with_gnu_ldcxx=$with_gnu_ld 14177with_gnu_ld=$lt_save_with_gnu_ld 14178lt_cv_path_LDCXX=$lt_cv_path_LD 14179lt_cv_path_LD=$lt_save_path_LD 14180lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14181lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14182 14183 else 14184 tagname="" 14185 fi 14186 ;; 14187 14188 F77) 14189 if test -n "$F77" && test "X$F77" != "Xno"; then 14190 14191ac_ext=f 14192ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14193ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14194ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14195 14196 14197archive_cmds_need_lc_F77=no 14198allow_undefined_flag_F77= 14199always_export_symbols_F77=no 14200archive_expsym_cmds_F77= 14201export_dynamic_flag_spec_F77= 14202hardcode_direct_F77=no 14203hardcode_libdir_flag_spec_F77= 14204hardcode_libdir_flag_spec_ld_F77= 14205hardcode_libdir_separator_F77= 14206hardcode_minus_L_F77=no 14207hardcode_automatic_F77=no 14208module_cmds_F77= 14209module_expsym_cmds_F77= 14210link_all_deplibs_F77=unknown 14211old_archive_cmds_F77=$old_archive_cmds 14212no_undefined_flag_F77= 14213whole_archive_flag_spec_F77= 14214enable_shared_with_static_runtimes_F77=no 14215 14216# Source file extension for f77 test sources. 14217ac_ext=f 14218 14219# Object file extension for compiled f77 test sources. 14220objext=o 14221objext_F77=$objext 14222 14223# Code to be used in simple compile tests 14224lt_simple_compile_test_code="\ 14225 subroutine t 14226 return 14227 end 14228" 14229 14230# Code to be used in simple link tests 14231lt_simple_link_test_code="\ 14232 program t 14233 end 14234" 14235 14236# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14237 14238# If no C compiler was specified, use CC. 14239LTCC=${LTCC-"$CC"} 14240 14241# If no C compiler flags were specified, use CFLAGS. 14242LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14243 14244# Allow CC to be a program name with arguments. 14245compiler=$CC 14246 14247 14248# save warnings/boilerplate of simple test code 14249ac_outfile=conftest.$ac_objext 14250echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14252_lt_compiler_boilerplate=`cat conftest.err` 14253$rm conftest* 14254 14255ac_outfile=conftest.$ac_objext 14256echo "$lt_simple_link_test_code" >conftest.$ac_ext 14257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14258_lt_linker_boilerplate=`cat conftest.err` 14259$rm -r conftest* 14260 14261 14262# Allow CC to be a program name with arguments. 14263lt_save_CC="$CC" 14264CC=${F77-"f77"} 14265compiler=$CC 14266compiler_F77=$CC 14267for cc_temp in $compiler""; do 14268 case $cc_temp in 14269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14271 \-*) ;; 14272 *) break;; 14273 esac 14274done 14275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14276 14277 14278{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14279$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14280{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14281$as_echo "$can_build_shared" >&6; } 14282 14283{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14284$as_echo_n "checking whether to build shared libraries... " >&6; } 14285test "$can_build_shared" = "no" && enable_shared=no 14286 14287# On AIX, shared libraries and static libraries use the same namespace, and 14288# are all built from PIC. 14289case $host_os in 14290aix3*) 14291 test "$enable_shared" = yes && enable_static=no 14292 if test -n "$RANLIB"; then 14293 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14294 postinstall_cmds='$RANLIB $lib' 14295 fi 14296 ;; 14297aix[4-9]*) 14298 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14299 test "$enable_shared" = yes && enable_static=no 14300 fi 14301 ;; 14302esac 14303{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14304$as_echo "$enable_shared" >&6; } 14305 14306{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14307$as_echo_n "checking whether to build static libraries... " >&6; } 14308# Make sure either enable_shared or enable_static is yes. 14309test "$enable_shared" = yes || enable_static=yes 14310{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14311$as_echo "$enable_static" >&6; } 14312 14313GCC_F77="$G77" 14314LD_F77="$LD" 14315 14316lt_prog_compiler_wl_F77= 14317lt_prog_compiler_pic_F77= 14318lt_prog_compiler_static_F77= 14319 14320{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14321$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14322 14323 if test "$GCC" = yes; then 14324 lt_prog_compiler_wl_F77='-Wl,' 14325 lt_prog_compiler_static_F77='-static' 14326 14327 case $host_os in 14328 aix*) 14329 # All AIX code is PIC. 14330 if test "$host_cpu" = ia64; then 14331 # AIX 5 now supports IA64 processor 14332 lt_prog_compiler_static_F77='-Bstatic' 14333 fi 14334 ;; 14335 14336 amigaos*) 14337 # FIXME: we need at least 68020 code to build shared libraries, but 14338 # adding the `-m68020' flag to GCC prevents building anything better, 14339 # like `-m68040'. 14340 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14341 ;; 14342 14343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14344 # PIC is the default for these OSes. 14345 ;; 14346 14347 mingw* | cygwin* | pw32* | os2*) 14348 # This hack is so that the source file can tell whether it is being 14349 # built for inclusion in a dll (and should export symbols for example). 14350 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14351 # (--disable-auto-import) libraries 14352 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14353 ;; 14354 14355 darwin* | rhapsody*) 14356 # PIC is the default on this platform 14357 # Common symbols not allowed in MH_DYLIB files 14358 lt_prog_compiler_pic_F77='-fno-common' 14359 ;; 14360 14361 interix[3-9]*) 14362 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14363 # Instead, we relocate shared libraries at runtime. 14364 ;; 14365 14366 msdosdjgpp*) 14367 # Just because we use GCC doesn't mean we suddenly get shared libraries 14368 # on systems that don't support them. 14369 lt_prog_compiler_can_build_shared_F77=no 14370 enable_shared=no 14371 ;; 14372 14373 sysv4*MP*) 14374 if test -d /usr/nec; then 14375 lt_prog_compiler_pic_F77=-Kconform_pic 14376 fi 14377 ;; 14378 14379 hpux*) 14380 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14381 # not for PA HP-UX. 14382 case $host_cpu in 14383 hppa*64*|ia64*) 14384 # +Z the default 14385 ;; 14386 *) 14387 lt_prog_compiler_pic_F77='-fPIC' 14388 ;; 14389 esac 14390 ;; 14391 14392 *) 14393 lt_prog_compiler_pic_F77='-fPIC' 14394 ;; 14395 esac 14396 else 14397 # PORTME Check for flag to pass linker flags through the system compiler. 14398 case $host_os in 14399 aix*) 14400 lt_prog_compiler_wl_F77='-Wl,' 14401 if test "$host_cpu" = ia64; then 14402 # AIX 5 now supports IA64 processor 14403 lt_prog_compiler_static_F77='-Bstatic' 14404 else 14405 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14406 fi 14407 ;; 14408 darwin*) 14409 # PIC is the default on this platform 14410 # Common symbols not allowed in MH_DYLIB files 14411 case $cc_basename in 14412 xlc*) 14413 lt_prog_compiler_pic_F77='-qnocommon' 14414 lt_prog_compiler_wl_F77='-Wl,' 14415 ;; 14416 esac 14417 ;; 14418 14419 mingw* | cygwin* | pw32* | os2*) 14420 # This hack is so that the source file can tell whether it is being 14421 # built for inclusion in a dll (and should export symbols for example). 14422 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14423 ;; 14424 14425 hpux9* | hpux10* | hpux11*) 14426 lt_prog_compiler_wl_F77='-Wl,' 14427 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14428 # not for PA HP-UX. 14429 case $host_cpu in 14430 hppa*64*|ia64*) 14431 # +Z the default 14432 ;; 14433 *) 14434 lt_prog_compiler_pic_F77='+Z' 14435 ;; 14436 esac 14437 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14438 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14439 ;; 14440 14441 irix5* | irix6* | nonstopux*) 14442 lt_prog_compiler_wl_F77='-Wl,' 14443 # PIC (with -KPIC) is the default. 14444 lt_prog_compiler_static_F77='-non_shared' 14445 ;; 14446 14447 newsos6) 14448 lt_prog_compiler_pic_F77='-KPIC' 14449 lt_prog_compiler_static_F77='-Bstatic' 14450 ;; 14451 14452 linux* | k*bsd*-gnu) 14453 case $cc_basename in 14454 icc* | ecc*) 14455 lt_prog_compiler_wl_F77='-Wl,' 14456 lt_prog_compiler_pic_F77='-KPIC' 14457 lt_prog_compiler_static_F77='-static' 14458 ;; 14459 pgcc* | pgf77* | pgf90* | pgf95*) 14460 # Portland Group compilers (*not* the Pentium gcc compiler, 14461 # which looks to be a dead project) 14462 lt_prog_compiler_wl_F77='-Wl,' 14463 lt_prog_compiler_pic_F77='-fpic' 14464 lt_prog_compiler_static_F77='-Bstatic' 14465 ;; 14466 ccc*) 14467 lt_prog_compiler_wl_F77='-Wl,' 14468 # All Alpha code is PIC. 14469 lt_prog_compiler_static_F77='-non_shared' 14470 ;; 14471 *) 14472 case `$CC -V 2>&1 | sed 5q` in 14473 *Sun\ C*) 14474 # Sun C 5.9 14475 lt_prog_compiler_pic_F77='-KPIC' 14476 lt_prog_compiler_static_F77='-Bstatic' 14477 lt_prog_compiler_wl_F77='-Wl,' 14478 ;; 14479 *Sun\ F*) 14480 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14481 lt_prog_compiler_pic_F77='-KPIC' 14482 lt_prog_compiler_static_F77='-Bstatic' 14483 lt_prog_compiler_wl_F77='' 14484 ;; 14485 esac 14486 ;; 14487 esac 14488 ;; 14489 14490 osf3* | osf4* | osf5*) 14491 lt_prog_compiler_wl_F77='-Wl,' 14492 # All OSF/1 code is PIC. 14493 lt_prog_compiler_static_F77='-non_shared' 14494 ;; 14495 14496 rdos*) 14497 lt_prog_compiler_static_F77='-non_shared' 14498 ;; 14499 14500 solaris*) 14501 lt_prog_compiler_pic_F77='-KPIC' 14502 lt_prog_compiler_static_F77='-Bstatic' 14503 case $cc_basename in 14504 f77* | f90* | f95*) 14505 lt_prog_compiler_wl_F77='-Qoption ld ';; 14506 *) 14507 lt_prog_compiler_wl_F77='-Wl,';; 14508 esac 14509 ;; 14510 14511 sunos4*) 14512 lt_prog_compiler_wl_F77='-Qoption ld ' 14513 lt_prog_compiler_pic_F77='-PIC' 14514 lt_prog_compiler_static_F77='-Bstatic' 14515 ;; 14516 14517 sysv4 | sysv4.2uw2* | sysv4.3*) 14518 lt_prog_compiler_wl_F77='-Wl,' 14519 lt_prog_compiler_pic_F77='-KPIC' 14520 lt_prog_compiler_static_F77='-Bstatic' 14521 ;; 14522 14523 sysv4*MP*) 14524 if test -d /usr/nec ;then 14525 lt_prog_compiler_pic_F77='-Kconform_pic' 14526 lt_prog_compiler_static_F77='-Bstatic' 14527 fi 14528 ;; 14529 14530 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14531 lt_prog_compiler_wl_F77='-Wl,' 14532 lt_prog_compiler_pic_F77='-KPIC' 14533 lt_prog_compiler_static_F77='-Bstatic' 14534 ;; 14535 14536 unicos*) 14537 lt_prog_compiler_wl_F77='-Wl,' 14538 lt_prog_compiler_can_build_shared_F77=no 14539 ;; 14540 14541 uts4*) 14542 lt_prog_compiler_pic_F77='-pic' 14543 lt_prog_compiler_static_F77='-Bstatic' 14544 ;; 14545 14546 *) 14547 lt_prog_compiler_can_build_shared_F77=no 14548 ;; 14549 esac 14550 fi 14551 14552{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14553$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14554 14555# 14556# Check to make sure the PIC flag actually works. 14557# 14558if test -n "$lt_prog_compiler_pic_F77"; then 14559 14560{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14561$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14562if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14563 $as_echo_n "(cached) " >&6 14564else 14565 lt_cv_prog_compiler_pic_works_F77=no 14566 ac_outfile=conftest.$ac_objext 14567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14568 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14569 # Insert the option either (1) after the last *FLAGS variable, or 14570 # (2) before a word containing "conftest.", or (3) at the end. 14571 # Note that $ac_compile itself does not contain backslashes and begins 14572 # with a dollar sign (not a hyphen), so the echo should work correctly. 14573 # The option is referenced via a variable to avoid confusing sed. 14574 lt_compile=`echo "$ac_compile" | $SED \ 14575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14577 -e 's:$: $lt_compiler_flag:'` 14578 (eval echo "\"\$as_me:14578: $lt_compile\"" >&5) 14579 (eval "$lt_compile" 2>conftest.err) 14580 ac_status=$? 14581 cat conftest.err >&5 14582 echo "$as_me:14582: \$? = $ac_status" >&5 14583 if (exit $ac_status) && test -s "$ac_outfile"; then 14584 # The compiler can only warn and ignore the option if not recognized 14585 # So say no if there are warnings other than the usual output. 14586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14588 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14589 lt_cv_prog_compiler_pic_works_F77=yes 14590 fi 14591 fi 14592 $rm conftest* 14593 14594fi 14595{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14596$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14597 14598if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14599 case $lt_prog_compiler_pic_F77 in 14600 "" | " "*) ;; 14601 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14602 esac 14603else 14604 lt_prog_compiler_pic_F77= 14605 lt_prog_compiler_can_build_shared_F77=no 14606fi 14607 14608fi 14609case $host_os in 14610 # For platforms which do not support PIC, -DPIC is meaningless: 14611 *djgpp*) 14612 lt_prog_compiler_pic_F77= 14613 ;; 14614 *) 14615 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14616 ;; 14617esac 14618 14619# 14620# Check to make sure the static flag actually works. 14621# 14622wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14623{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14624$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14625if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14626 $as_echo_n "(cached) " >&6 14627else 14628 lt_cv_prog_compiler_static_works_F77=no 14629 save_LDFLAGS="$LDFLAGS" 14630 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14631 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14633 # The linker can only warn and ignore the option if not recognized 14634 # So say no if there are warnings 14635 if test -s conftest.err; then 14636 # Append any errors to the config.log. 14637 cat conftest.err 1>&5 14638 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14640 if diff conftest.exp conftest.er2 >/dev/null; then 14641 lt_cv_prog_compiler_static_works_F77=yes 14642 fi 14643 else 14644 lt_cv_prog_compiler_static_works_F77=yes 14645 fi 14646 fi 14647 $rm -r conftest* 14648 LDFLAGS="$save_LDFLAGS" 14649 14650fi 14651{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14652$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14653 14654if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14655 : 14656else 14657 lt_prog_compiler_static_F77= 14658fi 14659 14660 14661{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14662$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14663if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14664 $as_echo_n "(cached) " >&6 14665else 14666 lt_cv_prog_compiler_c_o_F77=no 14667 $rm -r conftest 2>/dev/null 14668 mkdir conftest 14669 cd conftest 14670 mkdir out 14671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14672 14673 lt_compiler_flag="-o out/conftest2.$ac_objext" 14674 # Insert the option either (1) after the last *FLAGS variable, or 14675 # (2) before a word containing "conftest.", or (3) at the end. 14676 # Note that $ac_compile itself does not contain backslashes and begins 14677 # with a dollar sign (not a hyphen), so the echo should work correctly. 14678 lt_compile=`echo "$ac_compile" | $SED \ 14679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14681 -e 's:$: $lt_compiler_flag:'` 14682 (eval echo "\"\$as_me:14682: $lt_compile\"" >&5) 14683 (eval "$lt_compile" 2>out/conftest.err) 14684 ac_status=$? 14685 cat out/conftest.err >&5 14686 echo "$as_me:14686: \$? = $ac_status" >&5 14687 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14688 then 14689 # The compiler can only warn and ignore the option if not recognized 14690 # So say no if there are warnings 14691 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14694 lt_cv_prog_compiler_c_o_F77=yes 14695 fi 14696 fi 14697 chmod u+w . 2>&5 14698 $rm conftest* 14699 # SGI C++ compiler will create directory out/ii_files/ for 14700 # template instantiation 14701 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14702 $rm out/* && rmdir out 14703 cd .. 14704 rmdir conftest 14705 $rm conftest* 14706 14707fi 14708{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14709$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14710 14711 14712hard_links="nottested" 14713if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14714 # do not overwrite the value of need_locks provided by the user 14715 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14716$as_echo_n "checking if we can lock with hard links... " >&6; } 14717 hard_links=yes 14718 $rm conftest* 14719 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14720 touch conftest.a 14721 ln conftest.a conftest.b 2>&5 || hard_links=no 14722 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14723 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14724$as_echo "$hard_links" >&6; } 14725 if test "$hard_links" = no; then 14726 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14727$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14728 need_locks=warn 14729 fi 14730else 14731 need_locks=no 14732fi 14733 14734{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14735$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14736 14737 runpath_var= 14738 allow_undefined_flag_F77= 14739 enable_shared_with_static_runtimes_F77=no 14740 archive_cmds_F77= 14741 archive_expsym_cmds_F77= 14742 old_archive_From_new_cmds_F77= 14743 old_archive_from_expsyms_cmds_F77= 14744 export_dynamic_flag_spec_F77= 14745 whole_archive_flag_spec_F77= 14746 thread_safe_flag_spec_F77= 14747 hardcode_libdir_flag_spec_F77= 14748 hardcode_libdir_flag_spec_ld_F77= 14749 hardcode_libdir_separator_F77= 14750 hardcode_direct_F77=no 14751 hardcode_minus_L_F77=no 14752 hardcode_shlibpath_var_F77=unsupported 14753 link_all_deplibs_F77=unknown 14754 hardcode_automatic_F77=no 14755 module_cmds_F77= 14756 module_expsym_cmds_F77= 14757 always_export_symbols_F77=no 14758 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14759 # include_expsyms should be a list of space-separated symbols to be *always* 14760 # included in the symbol list 14761 include_expsyms_F77= 14762 # exclude_expsyms can be an extended regexp of symbols to exclude 14763 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14764 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14765 # as well as any symbol that contains `d'. 14766 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14767 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14768 # platforms (ab)use it in PIC code, but their linkers get confused if 14769 # the symbol is explicitly referenced. Since portable code cannot 14770 # rely on this symbol name, it's probably fine to never include it in 14771 # preloaded symbol tables. 14772 # Exclude shared library initialization/finalization symbols. 14773 extract_expsyms_cmds= 14774 # Just being paranoid about ensuring that cc_basename is set. 14775 for cc_temp in $compiler""; do 14776 case $cc_temp in 14777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14779 \-*) ;; 14780 *) break;; 14781 esac 14782done 14783cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14784 14785 case $host_os in 14786 cygwin* | mingw* | pw32*) 14787 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14788 # When not using gcc, we currently assume that we are using 14789 # Microsoft Visual C++. 14790 if test "$GCC" != yes; then 14791 with_gnu_ld=no 14792 fi 14793 ;; 14794 interix*) 14795 # we just hope/assume this is gcc and not c89 (= MSVC++) 14796 with_gnu_ld=yes 14797 ;; 14798 openbsd*) 14799 with_gnu_ld=no 14800 ;; 14801 esac 14802 14803 ld_shlibs_F77=yes 14804 if test "$with_gnu_ld" = yes; then 14805 # If archive_cmds runs LD, not CC, wlarc should be empty 14806 wlarc='${wl}' 14807 14808 # Set some defaults for GNU ld with shared library support. These 14809 # are reset later if shared libraries are not supported. Putting them 14810 # here allows them to be overridden if necessary. 14811 runpath_var=LD_RUN_PATH 14812 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14813 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14814 # ancient GNU ld didn't support --whole-archive et. al. 14815 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14816 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14817 else 14818 whole_archive_flag_spec_F77= 14819 fi 14820 supports_anon_versioning=no 14821 case `$LD -v 2>/dev/null` in 14822 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14823 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14824 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14825 *\ 2.11.*) ;; # other 2.11 versions 14826 *) supports_anon_versioning=yes ;; 14827 esac 14828 14829 # See if GNU ld supports shared libraries. 14830 case $host_os in 14831 aix[3-9]*) 14832 # On AIX/PPC, the GNU linker is very broken 14833 if test "$host_cpu" != ia64; then 14834 ld_shlibs_F77=no 14835 cat <<EOF 1>&2 14836 14837*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14838*** to be unable to reliably create shared libraries on AIX. 14839*** Therefore, libtool is disabling shared libraries support. If you 14840*** really care for shared libraries, you may want to modify your PATH 14841*** so that a non-GNU linker is found, and then restart. 14842 14843EOF 14844 fi 14845 ;; 14846 14847 amigaos*) 14848 archive_cmds_F77='$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)' 14849 hardcode_libdir_flag_spec_F77='-L$libdir' 14850 hardcode_minus_L_F77=yes 14851 14852 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14853 # that the semantics of dynamic libraries on AmigaOS, at least up 14854 # to version 4, is to share data among multiple programs linked 14855 # with the same dynamic library. Since this doesn't match the 14856 # behavior of shared libraries on other platforms, we can't use 14857 # them. 14858 ld_shlibs_F77=no 14859 ;; 14860 14861 beos*) 14862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14863 allow_undefined_flag_F77=unsupported 14864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14865 # support --undefined. This deserves some investigation. FIXME 14866 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14867 else 14868 ld_shlibs_F77=no 14869 fi 14870 ;; 14871 14872 cygwin* | mingw* | pw32*) 14873 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14874 # as there is no search path for DLLs. 14875 hardcode_libdir_flag_spec_F77='-L$libdir' 14876 allow_undefined_flag_F77=unsupported 14877 always_export_symbols_F77=no 14878 enable_shared_with_static_runtimes_F77=yes 14879 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14880 14881 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14883 # If the export-symbols file already is a .def file (1st line 14884 # is EXPORTS), use it as is; otherwise, prepend... 14885 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14886 cp $export_symbols $output_objdir/$soname.def; 14887 else 14888 echo EXPORTS > $output_objdir/$soname.def; 14889 cat $export_symbols >> $output_objdir/$soname.def; 14890 fi~ 14891 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14892 else 14893 ld_shlibs_F77=no 14894 fi 14895 ;; 14896 14897 interix[3-9]*) 14898 hardcode_direct_F77=no 14899 hardcode_shlibpath_var_F77=no 14900 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14901 export_dynamic_flag_spec_F77='${wl}-E' 14902 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14903 # Instead, shared libraries are loaded at an image base (0x10000000 by 14904 # default) and relocated if they conflict, which is a slow very memory 14905 # consuming and fragmenting process. To avoid this, we pick a random, 14906 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14907 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14908 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14909 archive_expsym_cmds_F77='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' 14910 ;; 14911 14912 gnu* | linux* | k*bsd*-gnu) 14913 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14914 tmp_addflag= 14915 case $cc_basename,$host_cpu in 14916 pgcc*) # Portland Group C compiler 14917 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14918 tmp_addflag=' $pic_flag' 14919 ;; 14920 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14921 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14922 tmp_addflag=' $pic_flag -Mnomain' ;; 14923 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14924 tmp_addflag=' -i_dynamic' ;; 14925 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14926 tmp_addflag=' -i_dynamic -nofor_main' ;; 14927 ifc* | ifort*) # Intel Fortran compiler 14928 tmp_addflag=' -nofor_main' ;; 14929 esac 14930 case `$CC -V 2>&1 | sed 5q` in 14931 *Sun\ C*) # Sun C 5.9 14932 whole_archive_flag_spec_F77='${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' 14933 tmp_sharedflag='-G' ;; 14934 *Sun\ F*) # Sun Fortran 8.3 14935 tmp_sharedflag='-G' ;; 14936 *) 14937 tmp_sharedflag='-shared' ;; 14938 esac 14939 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14940 14941 if test $supports_anon_versioning = yes; then 14942 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14944 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14945 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14946 fi 14947 link_all_deplibs_F77=no 14948 else 14949 ld_shlibs_F77=no 14950 fi 14951 ;; 14952 14953 netbsd*) 14954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14955 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14956 wlarc= 14957 else 14958 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14959 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14960 fi 14961 ;; 14962 14963 solaris*) 14964 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14965 ld_shlibs_F77=no 14966 cat <<EOF 1>&2 14967 14968*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14969*** create shared libraries on Solaris systems. Therefore, libtool 14970*** is disabling shared libraries support. We urge you to upgrade GNU 14971*** binutils to release 2.9.1 or newer. Another option is to modify 14972*** your PATH or compiler configuration so that the native linker is 14973*** used, and then restart. 14974 14975EOF 14976 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14977 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14978 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14979 else 14980 ld_shlibs_F77=no 14981 fi 14982 ;; 14983 14984 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14985 case `$LD -v 2>&1` in 14986 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14987 ld_shlibs_F77=no 14988 cat <<_LT_EOF 1>&2 14989 14990*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14991*** reliably create shared libraries on SCO systems. Therefore, libtool 14992*** is disabling shared libraries support. We urge you to upgrade GNU 14993*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14994*** your PATH or compiler configuration so that the native linker is 14995*** used, and then restart. 14996 14997_LT_EOF 14998 ;; 14999 *) 15000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15001 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15002 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15003 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15004 else 15005 ld_shlibs_F77=no 15006 fi 15007 ;; 15008 esac 15009 ;; 15010 15011 sunos4*) 15012 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15013 wlarc= 15014 hardcode_direct_F77=yes 15015 hardcode_shlibpath_var_F77=no 15016 ;; 15017 15018 *) 15019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15020 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15021 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15022 else 15023 ld_shlibs_F77=no 15024 fi 15025 ;; 15026 esac 15027 15028 if test "$ld_shlibs_F77" = no; then 15029 runpath_var= 15030 hardcode_libdir_flag_spec_F77= 15031 export_dynamic_flag_spec_F77= 15032 whole_archive_flag_spec_F77= 15033 fi 15034 else 15035 # PORTME fill in a description of your system's linker (not GNU ld) 15036 case $host_os in 15037 aix3*) 15038 allow_undefined_flag_F77=unsupported 15039 always_export_symbols_F77=yes 15040 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15041 # Note: this linker hardcodes the directories in LIBPATH if there 15042 # are no directories specified by -L. 15043 hardcode_minus_L_F77=yes 15044 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15045 # Neither direct hardcoding nor static linking is supported with a 15046 # broken collect2. 15047 hardcode_direct_F77=unsupported 15048 fi 15049 ;; 15050 15051 aix[4-9]*) 15052 if test "$host_cpu" = ia64; then 15053 # On IA64, the linker does run time linking by default, so we don't 15054 # have to do anything special. 15055 aix_use_runtimelinking=no 15056 exp_sym_flag='-Bexport' 15057 no_entry_flag="" 15058 else 15059 # If we're using GNU nm, then we don't want the "-C" option. 15060 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15061 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15062 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15063 else 15064 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15065 fi 15066 aix_use_runtimelinking=no 15067 15068 # Test if we are trying to use run time linking or normal 15069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15070 # need to do runtime linking. 15071 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15072 for ld_flag in $LDFLAGS; do 15073 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15074 aix_use_runtimelinking=yes 15075 break 15076 fi 15077 done 15078 ;; 15079 esac 15080 15081 exp_sym_flag='-bexport' 15082 no_entry_flag='-bnoentry' 15083 fi 15084 15085 # When large executables or shared objects are built, AIX ld can 15086 # have problems creating the table of contents. If linking a library 15087 # or program results in "error TOC overflow" add -mminimal-toc to 15088 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15089 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15090 15091 archive_cmds_F77='' 15092 hardcode_direct_F77=yes 15093 hardcode_libdir_separator_F77=':' 15094 link_all_deplibs_F77=yes 15095 15096 if test "$GCC" = yes; then 15097 case $host_os in aix4.[012]|aix4.[012].*) 15098 # We only want to do this on AIX 4.2 and lower, the check 15099 # below for broken collect2 doesn't work under 4.3+ 15100 collect2name=`${CC} -print-prog-name=collect2` 15101 if test -f "$collect2name" && \ 15102 strings "$collect2name" | grep resolve_lib_name >/dev/null 15103 then 15104 # We have reworked collect2 15105 : 15106 else 15107 # We have old collect2 15108 hardcode_direct_F77=unsupported 15109 # It fails to find uninstalled libraries when the uninstalled 15110 # path is not listed in the libpath. Setting hardcode_minus_L 15111 # to unsupported forces relinking 15112 hardcode_minus_L_F77=yes 15113 hardcode_libdir_flag_spec_F77='-L$libdir' 15114 hardcode_libdir_separator_F77= 15115 fi 15116 ;; 15117 esac 15118 shared_flag='-shared' 15119 if test "$aix_use_runtimelinking" = yes; then 15120 shared_flag="$shared_flag "'${wl}-G' 15121 fi 15122 else 15123 # not using gcc 15124 if test "$host_cpu" = ia64; then 15125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15126 # chokes on -Wl,-G. The following line is correct: 15127 shared_flag='-G' 15128 else 15129 if test "$aix_use_runtimelinking" = yes; then 15130 shared_flag='${wl}-G' 15131 else 15132 shared_flag='${wl}-bM:SRE' 15133 fi 15134 fi 15135 fi 15136 15137 # It seems that -bexpall does not export symbols beginning with 15138 # underscore (_), so it is better to generate a list of symbols to export. 15139 always_export_symbols_F77=yes 15140 if test "$aix_use_runtimelinking" = yes; then 15141 # Warning - without using the other runtime loading flags (-brtl), 15142 # -berok will link without error, but may produce a broken library. 15143 allow_undefined_flag_F77='-berok' 15144 # Determine the default libpath from the value encoded in an empty executable. 15145 cat >conftest.$ac_ext <<_ACEOF 15146 program main 15147 15148 end 15149_ACEOF 15150rm -f conftest.$ac_objext conftest$ac_exeext 15151if { (ac_try="$ac_link" 15152case "(($ac_try" in 15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15154 *) ac_try_echo=$ac_try;; 15155esac 15156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15157$as_echo "$ac_try_echo") >&5 15158 (eval "$ac_link") 2>conftest.er1 15159 ac_status=$? 15160 grep -v '^ *+' conftest.er1 >conftest.err 15161 rm -f conftest.er1 15162 cat conftest.err >&5 15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15164 (exit $ac_status); } && { 15165 test -z "$ac_f77_werror_flag" || 15166 test ! -s conftest.err 15167 } && test -s conftest$ac_exeext && { 15168 test "$cross_compiling" = yes || 15169 $as_test_x conftest$ac_exeext 15170 }; then 15171 15172lt_aix_libpath_sed=' 15173 /Import File Strings/,/^$/ { 15174 /^0/ { 15175 s/^0 *\(.*\)$/\1/ 15176 p 15177 } 15178 }' 15179aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15180# Check for a 64-bit object if we didn't find anything. 15181if test -z "$aix_libpath"; then 15182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15183fi 15184else 15185 $as_echo "$as_me: failed program was:" >&5 15186sed 's/^/| /' conftest.$ac_ext >&5 15187 15188 15189fi 15190 15191rm -rf conftest.dSYM 15192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15193 conftest$ac_exeext conftest.$ac_ext 15194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15195 15196 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15197 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15198 else 15199 if test "$host_cpu" = ia64; then 15200 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15201 allow_undefined_flag_F77="-z nodefs" 15202 archive_expsym_cmds_F77="\$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" 15203 else 15204 # Determine the default libpath from the value encoded in an empty executable. 15205 cat >conftest.$ac_ext <<_ACEOF 15206 program main 15207 15208 end 15209_ACEOF 15210rm -f conftest.$ac_objext conftest$ac_exeext 15211if { (ac_try="$ac_link" 15212case "(($ac_try" in 15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15214 *) ac_try_echo=$ac_try;; 15215esac 15216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15217$as_echo "$ac_try_echo") >&5 15218 (eval "$ac_link") 2>conftest.er1 15219 ac_status=$? 15220 grep -v '^ *+' conftest.er1 >conftest.err 15221 rm -f conftest.er1 15222 cat conftest.err >&5 15223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15224 (exit $ac_status); } && { 15225 test -z "$ac_f77_werror_flag" || 15226 test ! -s conftest.err 15227 } && test -s conftest$ac_exeext && { 15228 test "$cross_compiling" = yes || 15229 $as_test_x conftest$ac_exeext 15230 }; then 15231 15232lt_aix_libpath_sed=' 15233 /Import File Strings/,/^$/ { 15234 /^0/ { 15235 s/^0 *\(.*\)$/\1/ 15236 p 15237 } 15238 }' 15239aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15240# Check for a 64-bit object if we didn't find anything. 15241if test -z "$aix_libpath"; then 15242 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15243fi 15244else 15245 $as_echo "$as_me: failed program was:" >&5 15246sed 's/^/| /' conftest.$ac_ext >&5 15247 15248 15249fi 15250 15251rm -rf conftest.dSYM 15252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15253 conftest$ac_exeext conftest.$ac_ext 15254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15255 15256 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15257 # Warning - without using the other run time loading flags, 15258 # -berok will link without error, but may produce a broken library. 15259 no_undefined_flag_F77=' ${wl}-bernotok' 15260 allow_undefined_flag_F77=' ${wl}-berok' 15261 # Exported symbols can be pulled into shared objects from archives 15262 whole_archive_flag_spec_F77='$convenience' 15263 archive_cmds_need_lc_F77=yes 15264 # This is similar to how AIX traditionally builds its shared libraries. 15265 archive_expsym_cmds_F77="\$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' 15266 fi 15267 fi 15268 ;; 15269 15270 amigaos*) 15271 archive_cmds_F77='$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)' 15272 hardcode_libdir_flag_spec_F77='-L$libdir' 15273 hardcode_minus_L_F77=yes 15274 # see comment about different semantics on the GNU ld section 15275 ld_shlibs_F77=no 15276 ;; 15277 15278 bsdi[45]*) 15279 export_dynamic_flag_spec_F77=-rdynamic 15280 ;; 15281 15282 cygwin* | mingw* | pw32*) 15283 # When not using gcc, we currently assume that we are using 15284 # Microsoft Visual C++. 15285 # hardcode_libdir_flag_spec is actually meaningless, as there is 15286 # no search path for DLLs. 15287 hardcode_libdir_flag_spec_F77=' ' 15288 allow_undefined_flag_F77=unsupported 15289 # Tell ltmain to make .lib files, not .a files. 15290 libext=lib 15291 # Tell ltmain to make .dll files, not .so files. 15292 shrext_cmds=".dll" 15293 # FIXME: Setting linknames here is a bad hack. 15294 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15295 # The linker will automatically build a .lib file if we build a DLL. 15296 old_archive_From_new_cmds_F77='true' 15297 # FIXME: Should let the user specify the lib program. 15298 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15299 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15300 enable_shared_with_static_runtimes_F77=yes 15301 ;; 15302 15303 darwin* | rhapsody*) 15304 case $host_os in 15305 rhapsody* | darwin1.[012]) 15306 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15307 ;; 15308 *) # Darwin 1.3 on 15309 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15310 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15311 else 15312 case ${MACOSX_DEPLOYMENT_TARGET} in 15313 10.[012]) 15314 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15315 ;; 15316 10.*) 15317 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15318 ;; 15319 esac 15320 fi 15321 ;; 15322 esac 15323 archive_cmds_need_lc_F77=no 15324 hardcode_direct_F77=no 15325 hardcode_automatic_F77=yes 15326 hardcode_shlibpath_var_F77=unsupported 15327 whole_archive_flag_spec_F77='' 15328 link_all_deplibs_F77=yes 15329 if test "$GCC" = yes ; then 15330 output_verbose_link_cmd='echo' 15331 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15332 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15333 archive_expsym_cmds_F77="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}" 15334 module_expsym_cmds_F77="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}" 15335 else 15336 case $cc_basename in 15337 xlc*) 15338 output_verbose_link_cmd='echo' 15339 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15340 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15341 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15342 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15343 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15344 ;; 15345 *) 15346 ld_shlibs_F77=no 15347 ;; 15348 esac 15349 fi 15350 ;; 15351 15352 dgux*) 15353 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15354 hardcode_libdir_flag_spec_F77='-L$libdir' 15355 hardcode_shlibpath_var_F77=no 15356 ;; 15357 15358 freebsd1*) 15359 ld_shlibs_F77=no 15360 ;; 15361 15362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15363 # support. Future versions do this automatically, but an explicit c++rt0.o 15364 # does not break anything, and helps significantly (at the cost of a little 15365 # extra space). 15366 freebsd2.2*) 15367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15368 hardcode_libdir_flag_spec_F77='-R$libdir' 15369 hardcode_direct_F77=yes 15370 hardcode_shlibpath_var_F77=no 15371 ;; 15372 15373 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15374 freebsd2*) 15375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15376 hardcode_direct_F77=yes 15377 hardcode_minus_L_F77=yes 15378 hardcode_shlibpath_var_F77=no 15379 ;; 15380 15381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15382 freebsd* | dragonfly*) 15383 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15384 hardcode_libdir_flag_spec_F77='-R$libdir' 15385 hardcode_direct_F77=yes 15386 hardcode_shlibpath_var_F77=no 15387 ;; 15388 15389 hpux9*) 15390 if test "$GCC" = yes; then 15391 archive_cmds_F77='$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' 15392 else 15393 archive_cmds_F77='$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' 15394 fi 15395 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15396 hardcode_libdir_separator_F77=: 15397 hardcode_direct_F77=yes 15398 15399 # hardcode_minus_L: Not really in the search PATH, 15400 # but as the default location of the library. 15401 hardcode_minus_L_F77=yes 15402 export_dynamic_flag_spec_F77='${wl}-E' 15403 ;; 15404 15405 hpux10*) 15406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15407 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15408 else 15409 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15410 fi 15411 if test "$with_gnu_ld" = no; then 15412 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15413 hardcode_libdir_separator_F77=: 15414 15415 hardcode_direct_F77=yes 15416 export_dynamic_flag_spec_F77='${wl}-E' 15417 15418 # hardcode_minus_L: Not really in the search PATH, 15419 # but as the default location of the library. 15420 hardcode_minus_L_F77=yes 15421 fi 15422 ;; 15423 15424 hpux11*) 15425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15426 case $host_cpu in 15427 hppa*64*) 15428 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15429 ;; 15430 ia64*) 15431 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15432 ;; 15433 *) 15434 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15435 ;; 15436 esac 15437 else 15438 case $host_cpu in 15439 hppa*64*) 15440 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15441 ;; 15442 ia64*) 15443 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15444 ;; 15445 *) 15446 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15447 ;; 15448 esac 15449 fi 15450 if test "$with_gnu_ld" = no; then 15451 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15452 hardcode_libdir_separator_F77=: 15453 15454 case $host_cpu in 15455 hppa*64*|ia64*) 15456 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15457 hardcode_direct_F77=no 15458 hardcode_shlibpath_var_F77=no 15459 ;; 15460 *) 15461 hardcode_direct_F77=yes 15462 export_dynamic_flag_spec_F77='${wl}-E' 15463 15464 # hardcode_minus_L: Not really in the search PATH, 15465 # but as the default location of the library. 15466 hardcode_minus_L_F77=yes 15467 ;; 15468 esac 15469 fi 15470 ;; 15471 15472 irix5* | irix6* | nonstopux*) 15473 if test "$GCC" = yes; then 15474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15475 else 15476 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15477 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15478 fi 15479 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15480 hardcode_libdir_separator_F77=: 15481 link_all_deplibs_F77=yes 15482 ;; 15483 15484 netbsd*) 15485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15486 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15487 else 15488 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15489 fi 15490 hardcode_libdir_flag_spec_F77='-R$libdir' 15491 hardcode_direct_F77=yes 15492 hardcode_shlibpath_var_F77=no 15493 ;; 15494 15495 newsos6) 15496 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15497 hardcode_direct_F77=yes 15498 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15499 hardcode_libdir_separator_F77=: 15500 hardcode_shlibpath_var_F77=no 15501 ;; 15502 15503 openbsd*) 15504 if test -f /usr/libexec/ld.so; then 15505 hardcode_direct_F77=yes 15506 hardcode_shlibpath_var_F77=no 15507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15509 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15510 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15511 export_dynamic_flag_spec_F77='${wl}-E' 15512 else 15513 case $host_os in 15514 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15515 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15516 hardcode_libdir_flag_spec_F77='-R$libdir' 15517 ;; 15518 *) 15519 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15520 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15521 ;; 15522 esac 15523 fi 15524 else 15525 ld_shlibs_F77=no 15526 fi 15527 ;; 15528 15529 os2*) 15530 hardcode_libdir_flag_spec_F77='-L$libdir' 15531 hardcode_minus_L_F77=yes 15532 allow_undefined_flag_F77=unsupported 15533 archive_cmds_F77='$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' 15534 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15535 ;; 15536 15537 osf3*) 15538 if test "$GCC" = yes; then 15539 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15540 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15541 else 15542 allow_undefined_flag_F77=' -expect_unresolved \*' 15543 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15544 fi 15545 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15546 hardcode_libdir_separator_F77=: 15547 ;; 15548 15549 osf4* | osf5*) # as osf3* with the addition of -msym flag 15550 if test "$GCC" = yes; then 15551 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15552 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15553 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15554 else 15555 allow_undefined_flag_F77=' -expect_unresolved \*' 15556 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15557 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15558 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15559 15560 # Both c and cxx compiler support -rpath directly 15561 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15562 fi 15563 hardcode_libdir_separator_F77=: 15564 ;; 15565 15566 solaris*) 15567 no_undefined_flag_F77=' -z text' 15568 if test "$GCC" = yes; then 15569 wlarc='${wl}' 15570 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15571 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15572 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15573 else 15574 wlarc='' 15575 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15576 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15577 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15578 fi 15579 hardcode_libdir_flag_spec_F77='-R$libdir' 15580 hardcode_shlibpath_var_F77=no 15581 case $host_os in 15582 solaris2.[0-5] | solaris2.[0-5].*) ;; 15583 *) 15584 # The compiler driver will combine and reorder linker options, 15585 # but understands `-z linker_flag'. GCC discards it without `$wl', 15586 # but is careful enough not to reorder. 15587 # Supported since Solaris 2.6 (maybe 2.5.1?) 15588 if test "$GCC" = yes; then 15589 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15590 else 15591 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15592 fi 15593 ;; 15594 esac 15595 link_all_deplibs_F77=yes 15596 ;; 15597 15598 sunos4*) 15599 if test "x$host_vendor" = xsequent; then 15600 # Use $CC to link under sequent, because it throws in some extra .o 15601 # files that make .init and .fini sections work. 15602 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15603 else 15604 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15605 fi 15606 hardcode_libdir_flag_spec_F77='-L$libdir' 15607 hardcode_direct_F77=yes 15608 hardcode_minus_L_F77=yes 15609 hardcode_shlibpath_var_F77=no 15610 ;; 15611 15612 sysv4) 15613 case $host_vendor in 15614 sni) 15615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15616 hardcode_direct_F77=yes # is this really true??? 15617 ;; 15618 siemens) 15619 ## LD is ld it makes a PLAMLIB 15620 ## CC just makes a GrossModule. 15621 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15622 reload_cmds_F77='$CC -r -o $output$reload_objs' 15623 hardcode_direct_F77=no 15624 ;; 15625 motorola) 15626 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15627 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15628 ;; 15629 esac 15630 runpath_var='LD_RUN_PATH' 15631 hardcode_shlibpath_var_F77=no 15632 ;; 15633 15634 sysv4.3*) 15635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15636 hardcode_shlibpath_var_F77=no 15637 export_dynamic_flag_spec_F77='-Bexport' 15638 ;; 15639 15640 sysv4*MP*) 15641 if test -d /usr/nec; then 15642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15643 hardcode_shlibpath_var_F77=no 15644 runpath_var=LD_RUN_PATH 15645 hardcode_runpath_var=yes 15646 ld_shlibs_F77=yes 15647 fi 15648 ;; 15649 15650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15651 no_undefined_flag_F77='${wl}-z,text' 15652 archive_cmds_need_lc_F77=no 15653 hardcode_shlibpath_var_F77=no 15654 runpath_var='LD_RUN_PATH' 15655 15656 if test "$GCC" = yes; then 15657 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15658 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15659 else 15660 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15661 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15662 fi 15663 ;; 15664 15665 sysv5* | sco3.2v5* | sco5v6*) 15666 # Note: We can NOT use -z defs as we might desire, because we do not 15667 # link with -lc, and that would cause any symbols used from libc to 15668 # always be unresolved, which means just about no library would 15669 # ever link correctly. If we're not using GNU ld we use -z text 15670 # though, which does catch some bad symbols but isn't as heavy-handed 15671 # as -z defs. 15672 no_undefined_flag_F77='${wl}-z,text' 15673 allow_undefined_flag_F77='${wl}-z,nodefs' 15674 archive_cmds_need_lc_F77=no 15675 hardcode_shlibpath_var_F77=no 15676 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15677 hardcode_libdir_separator_F77=':' 15678 link_all_deplibs_F77=yes 15679 export_dynamic_flag_spec_F77='${wl}-Bexport' 15680 runpath_var='LD_RUN_PATH' 15681 15682 if test "$GCC" = yes; then 15683 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15684 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15685 else 15686 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15687 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15688 fi 15689 ;; 15690 15691 uts4*) 15692 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15693 hardcode_libdir_flag_spec_F77='-L$libdir' 15694 hardcode_shlibpath_var_F77=no 15695 ;; 15696 15697 *) 15698 ld_shlibs_F77=no 15699 ;; 15700 esac 15701 fi 15702 15703{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15704$as_echo "$ld_shlibs_F77" >&6; } 15705test "$ld_shlibs_F77" = no && can_build_shared=no 15706 15707# 15708# Do we need to explicitly link libc? 15709# 15710case "x$archive_cmds_need_lc_F77" in 15711x|xyes) 15712 # Assume -lc should be added 15713 archive_cmds_need_lc_F77=yes 15714 15715 if test "$enable_shared" = yes && test "$GCC" = yes; then 15716 case $archive_cmds_F77 in 15717 *'~'*) 15718 # FIXME: we may have to deal with multi-command sequences. 15719 ;; 15720 '$CC '*) 15721 # Test whether the compiler implicitly links with -lc since on some 15722 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15723 # to ld, don't add -lc before -lgcc. 15724 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15725$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15726 $rm conftest* 15727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15728 15729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15730 (eval $ac_compile) 2>&5 15731 ac_status=$? 15732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15733 (exit $ac_status); } 2>conftest.err; then 15734 soname=conftest 15735 lib=conftest 15736 libobjs=conftest.$ac_objext 15737 deplibs= 15738 wl=$lt_prog_compiler_wl_F77 15739 pic_flag=$lt_prog_compiler_pic_F77 15740 compiler_flags=-v 15741 linker_flags=-v 15742 verstring= 15743 output_objdir=. 15744 libname=conftest 15745 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15746 allow_undefined_flag_F77= 15747 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15748 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15749 ac_status=$? 15750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15751 (exit $ac_status); } 15752 then 15753 archive_cmds_need_lc_F77=no 15754 else 15755 archive_cmds_need_lc_F77=yes 15756 fi 15757 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15758 else 15759 cat conftest.err 1>&5 15760 fi 15761 $rm conftest* 15762 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15763$as_echo "$archive_cmds_need_lc_F77" >&6; } 15764 ;; 15765 esac 15766 fi 15767 ;; 15768esac 15769 15770{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15771$as_echo_n "checking dynamic linker characteristics... " >&6; } 15772library_names_spec= 15773libname_spec='lib$name' 15774soname_spec= 15775shrext_cmds=".so" 15776postinstall_cmds= 15777postuninstall_cmds= 15778finish_cmds= 15779finish_eval= 15780shlibpath_var= 15781shlibpath_overrides_runpath=unknown 15782version_type=none 15783dynamic_linker="$host_os ld.so" 15784sys_lib_dlsearch_path_spec="/lib /usr/lib" 15785 15786need_lib_prefix=unknown 15787hardcode_into_libs=no 15788 15789# when you set need_version to no, make sure it does not cause -set_version 15790# flags to be left without arguments 15791need_version=unknown 15792 15793case $host_os in 15794aix3*) 15795 version_type=linux 15796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15797 shlibpath_var=LIBPATH 15798 15799 # AIX 3 has no versioning support, so we append a major version to the name. 15800 soname_spec='${libname}${release}${shared_ext}$major' 15801 ;; 15802 15803aix[4-9]*) 15804 version_type=linux 15805 need_lib_prefix=no 15806 need_version=no 15807 hardcode_into_libs=yes 15808 if test "$host_cpu" = ia64; then 15809 # AIX 5 supports IA64 15810 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15811 shlibpath_var=LD_LIBRARY_PATH 15812 else 15813 # With GCC up to 2.95.x, collect2 would create an import file 15814 # for dependence libraries. The import file would start with 15815 # the line `#! .'. This would cause the generated library to 15816 # depend on `.', always an invalid library. This was fixed in 15817 # development snapshots of GCC prior to 3.0. 15818 case $host_os in 15819 aix4 | aix4.[01] | aix4.[01].*) 15820 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15821 echo ' yes ' 15822 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15823 : 15824 else 15825 can_build_shared=no 15826 fi 15827 ;; 15828 esac 15829 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15830 # soname into executable. Probably we can add versioning support to 15831 # collect2, so additional links can be useful in future. 15832 if test "$aix_use_runtimelinking" = yes; then 15833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15834 # instead of lib<name>.a to let people know that these are not 15835 # typical AIX shared libraries. 15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15837 else 15838 # We preserve .a as extension for shared libraries through AIX4.2 15839 # and later when we are not doing run time linking. 15840 library_names_spec='${libname}${release}.a $libname.a' 15841 soname_spec='${libname}${release}${shared_ext}$major' 15842 fi 15843 shlibpath_var=LIBPATH 15844 fi 15845 ;; 15846 15847amigaos*) 15848 library_names_spec='$libname.ixlibrary $libname.a' 15849 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15850 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' 15851 ;; 15852 15853beos*) 15854 library_names_spec='${libname}${shared_ext}' 15855 dynamic_linker="$host_os ld.so" 15856 shlibpath_var=LIBRARY_PATH 15857 ;; 15858 15859bsdi[45]*) 15860 version_type=linux 15861 need_version=no 15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15863 soname_spec='${libname}${release}${shared_ext}$major' 15864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15865 shlibpath_var=LD_LIBRARY_PATH 15866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15868 # the default ld.so.conf also contains /usr/contrib/lib and 15869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15870 # libtool to hard-code these into programs 15871 ;; 15872 15873cygwin* | mingw* | pw32*) 15874 version_type=windows 15875 shrext_cmds=".dll" 15876 need_version=no 15877 need_lib_prefix=no 15878 15879 case $GCC,$host_os in 15880 yes,cygwin* | yes,mingw* | yes,pw32*) 15881 library_names_spec='$libname.dll.a' 15882 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15883 postinstall_cmds='base_file=`basename \${file}`~ 15884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15885 dldir=$destdir/`dirname \$dlpath`~ 15886 test -d \$dldir || mkdir -p \$dldir~ 15887 $install_prog $dir/$dlname \$dldir/$dlname~ 15888 chmod a+x \$dldir/$dlname' 15889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15890 dlpath=$dir/\$dldll~ 15891 $rm \$dlpath' 15892 shlibpath_overrides_runpath=yes 15893 15894 case $host_os in 15895 cygwin*) 15896 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15897 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15898 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15899 ;; 15900 mingw*) 15901 # MinGW DLLs use traditional 'lib' prefix 15902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15904 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15905 # It is most probably a Windows format PATH printed by 15906 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15907 # path with ; separators, and with drive letters. We can handle the 15908 # drive letters (cygwin fileutils understands them), so leave them, 15909 # especially as we might pass files found there to a mingw objdump, 15910 # which wouldn't understand a cygwinified path. Ahh. 15911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15912 else 15913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15914 fi 15915 ;; 15916 pw32*) 15917 # pw32 DLLs use 'pw' prefix rather than 'lib' 15918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15919 ;; 15920 esac 15921 ;; 15922 15923 *) 15924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15925 ;; 15926 esac 15927 dynamic_linker='Win32 ld.exe' 15928 # FIXME: first we should search . and the directory the executable is in 15929 shlibpath_var=PATH 15930 ;; 15931 15932darwin* | rhapsody*) 15933 dynamic_linker="$host_os dyld" 15934 version_type=darwin 15935 need_lib_prefix=no 15936 need_version=no 15937 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15938 soname_spec='${libname}${release}${major}$shared_ext' 15939 shlibpath_overrides_runpath=yes 15940 shlibpath_var=DYLD_LIBRARY_PATH 15941 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15942 15943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15944 ;; 15945 15946dgux*) 15947 version_type=linux 15948 need_lib_prefix=no 15949 need_version=no 15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15951 soname_spec='${libname}${release}${shared_ext}$major' 15952 shlibpath_var=LD_LIBRARY_PATH 15953 ;; 15954 15955freebsd1*) 15956 dynamic_linker=no 15957 ;; 15958 15959freebsd* | dragonfly*) 15960 # DragonFly does not have aout. When/if they implement a new 15961 # versioning mechanism, adjust this. 15962 if test -x /usr/bin/objformat; then 15963 objformat=`/usr/bin/objformat` 15964 else 15965 case $host_os in 15966 freebsd[123]*) objformat=aout ;; 15967 *) objformat=elf ;; 15968 esac 15969 fi 15970 version_type=freebsd-$objformat 15971 case $version_type in 15972 freebsd-elf*) 15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15974 need_version=no 15975 need_lib_prefix=no 15976 ;; 15977 freebsd-*) 15978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15979 need_version=yes 15980 ;; 15981 esac 15982 shlibpath_var=LD_LIBRARY_PATH 15983 case $host_os in 15984 freebsd2*) 15985 shlibpath_overrides_runpath=yes 15986 ;; 15987 freebsd3.[01]* | freebsdelf3.[01]*) 15988 shlibpath_overrides_runpath=yes 15989 hardcode_into_libs=yes 15990 ;; 15991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15993 shlibpath_overrides_runpath=no 15994 hardcode_into_libs=yes 15995 ;; 15996 *) # from 4.6 on, and DragonFly 15997 shlibpath_overrides_runpath=yes 15998 hardcode_into_libs=yes 15999 ;; 16000 esac 16001 ;; 16002 16003gnu*) 16004 version_type=linux 16005 need_lib_prefix=no 16006 need_version=no 16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16008 soname_spec='${libname}${release}${shared_ext}$major' 16009 shlibpath_var=LD_LIBRARY_PATH 16010 hardcode_into_libs=yes 16011 ;; 16012 16013hpux9* | hpux10* | hpux11*) 16014 # Give a soname corresponding to the major version so that dld.sl refuses to 16015 # link against other versions. 16016 version_type=sunos 16017 need_lib_prefix=no 16018 need_version=no 16019 case $host_cpu in 16020 ia64*) 16021 shrext_cmds='.so' 16022 hardcode_into_libs=yes 16023 dynamic_linker="$host_os dld.so" 16024 shlibpath_var=LD_LIBRARY_PATH 16025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16027 soname_spec='${libname}${release}${shared_ext}$major' 16028 if test "X$HPUX_IA64_MODE" = X32; then 16029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16030 else 16031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16032 fi 16033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16034 ;; 16035 hppa*64*) 16036 shrext_cmds='.sl' 16037 hardcode_into_libs=yes 16038 dynamic_linker="$host_os dld.sl" 16039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16042 soname_spec='${libname}${release}${shared_ext}$major' 16043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16045 ;; 16046 *) 16047 shrext_cmds='.sl' 16048 dynamic_linker="$host_os dld.sl" 16049 shlibpath_var=SHLIB_PATH 16050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16052 soname_spec='${libname}${release}${shared_ext}$major' 16053 ;; 16054 esac 16055 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16056 postinstall_cmds='chmod 555 $lib' 16057 ;; 16058 16059interix[3-9]*) 16060 version_type=linux 16061 need_lib_prefix=no 16062 need_version=no 16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16064 soname_spec='${libname}${release}${shared_ext}$major' 16065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16066 shlibpath_var=LD_LIBRARY_PATH 16067 shlibpath_overrides_runpath=no 16068 hardcode_into_libs=yes 16069 ;; 16070 16071irix5* | irix6* | nonstopux*) 16072 case $host_os in 16073 nonstopux*) version_type=nonstopux ;; 16074 *) 16075 if test "$lt_cv_prog_gnu_ld" = yes; then 16076 version_type=linux 16077 else 16078 version_type=irix 16079 fi ;; 16080 esac 16081 need_lib_prefix=no 16082 need_version=no 16083 soname_spec='${libname}${release}${shared_ext}$major' 16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16085 case $host_os in 16086 irix5* | nonstopux*) 16087 libsuff= shlibsuff= 16088 ;; 16089 *) 16090 case $LD in # libtool.m4 will add one of these switches to LD 16091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16092 libsuff= shlibsuff= libmagic=32-bit;; 16093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16094 libsuff=32 shlibsuff=N32 libmagic=N32;; 16095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16096 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16097 *) libsuff= shlibsuff= libmagic=never-match;; 16098 esac 16099 ;; 16100 esac 16101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16102 shlibpath_overrides_runpath=no 16103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16105 hardcode_into_libs=yes 16106 ;; 16107 16108# No shared lib support for Linux oldld, aout, or coff. 16109linux*oldld* | linux*aout* | linux*coff*) 16110 dynamic_linker=no 16111 ;; 16112 16113# This must be Linux ELF. 16114linux* | k*bsd*-gnu) 16115 version_type=linux 16116 need_lib_prefix=no 16117 need_version=no 16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16119 soname_spec='${libname}${release}${shared_ext}$major' 16120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16121 shlibpath_var=LD_LIBRARY_PATH 16122 shlibpath_overrides_runpath=no 16123 # This implies no fast_install, which is unacceptable. 16124 # Some rework will be needed to allow for fast_install 16125 # before this can be enabled. 16126 hardcode_into_libs=yes 16127 16128 # find out which ABI we are using 16129 libsuff= 16130 case "$host_cpu" in 16131 x86_64*|s390x*|powerpc64*) 16132 echo '#line 16132 "configure"' > conftest.$ac_ext 16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16134 (eval $ac_compile) 2>&5 16135 ac_status=$? 16136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 16137 (exit $ac_status); }; then 16138 case `/usr/bin/file conftest.$ac_objext` in 16139 *64-bit*) 16140 libsuff=64 16141 ;; 16142 esac 16143 fi 16144 rm -rf conftest* 16145 ;; 16146 esac 16147 16148 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 16149 16150 # Append ld.so.conf contents to the search path 16151 if test -f /etc/ld.so.conf; then 16152 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' ' '` 16153 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16154 fi 16155 16156 # We used to test for /lib/ld.so.1 and disable shared libraries on 16157 # powerpc, because MkLinux only supported shared libraries with the 16158 # GNU dynamic linker. Since this was broken with cross compilers, 16159 # most powerpc-linux boxes support dynamic linking these days and 16160 # people can always --disable-shared, the test was removed, and we 16161 # assume the GNU/Linux dynamic linker is in use. 16162 dynamic_linker='GNU/Linux ld.so' 16163 ;; 16164 16165netbsd*) 16166 version_type=sunos 16167 need_lib_prefix=no 16168 need_version=no 16169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16172 dynamic_linker='NetBSD (a.out) ld.so' 16173 else 16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16175 soname_spec='${libname}${release}${shared_ext}$major' 16176 dynamic_linker='NetBSD ld.elf_so' 16177 fi 16178 shlibpath_var=LD_LIBRARY_PATH 16179 shlibpath_overrides_runpath=yes 16180 hardcode_into_libs=yes 16181 ;; 16182 16183newsos6) 16184 version_type=linux 16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16186 shlibpath_var=LD_LIBRARY_PATH 16187 shlibpath_overrides_runpath=yes 16188 ;; 16189 16190nto-qnx*) 16191 version_type=linux 16192 need_lib_prefix=no 16193 need_version=no 16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16195 soname_spec='${libname}${release}${shared_ext}$major' 16196 shlibpath_var=LD_LIBRARY_PATH 16197 shlibpath_overrides_runpath=yes 16198 ;; 16199 16200openbsd*) 16201 version_type=sunos 16202 sys_lib_dlsearch_path_spec="/usr/lib" 16203 need_lib_prefix=no 16204 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16205 case $host_os in 16206 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16207 *) need_version=no ;; 16208 esac 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16211 shlibpath_var=LD_LIBRARY_PATH 16212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16213 case $host_os in 16214 openbsd2.[89] | openbsd2.[89].*) 16215 shlibpath_overrides_runpath=no 16216 ;; 16217 *) 16218 shlibpath_overrides_runpath=yes 16219 ;; 16220 esac 16221 else 16222 shlibpath_overrides_runpath=yes 16223 fi 16224 ;; 16225 16226os2*) 16227 libname_spec='$name' 16228 shrext_cmds=".dll" 16229 need_lib_prefix=no 16230 library_names_spec='$libname${shared_ext} $libname.a' 16231 dynamic_linker='OS/2 ld.exe' 16232 shlibpath_var=LIBPATH 16233 ;; 16234 16235osf3* | osf4* | osf5*) 16236 version_type=osf 16237 need_lib_prefix=no 16238 need_version=no 16239 soname_spec='${libname}${release}${shared_ext}$major' 16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16241 shlibpath_var=LD_LIBRARY_PATH 16242 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16243 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16244 ;; 16245 16246rdos*) 16247 dynamic_linker=no 16248 ;; 16249 16250solaris*) 16251 version_type=linux 16252 need_lib_prefix=no 16253 need_version=no 16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16255 soname_spec='${libname}${release}${shared_ext}$major' 16256 shlibpath_var=LD_LIBRARY_PATH 16257 shlibpath_overrides_runpath=yes 16258 hardcode_into_libs=yes 16259 # ldd complains unless libraries are executable 16260 postinstall_cmds='chmod +x $lib' 16261 ;; 16262 16263sunos4*) 16264 version_type=sunos 16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16266 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16267 shlibpath_var=LD_LIBRARY_PATH 16268 shlibpath_overrides_runpath=yes 16269 if test "$with_gnu_ld" = yes; then 16270 need_lib_prefix=no 16271 fi 16272 need_version=yes 16273 ;; 16274 16275sysv4 | sysv4.3*) 16276 version_type=linux 16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16278 soname_spec='${libname}${release}${shared_ext}$major' 16279 shlibpath_var=LD_LIBRARY_PATH 16280 case $host_vendor in 16281 sni) 16282 shlibpath_overrides_runpath=no 16283 need_lib_prefix=no 16284 export_dynamic_flag_spec='${wl}-Blargedynsym' 16285 runpath_var=LD_RUN_PATH 16286 ;; 16287 siemens) 16288 need_lib_prefix=no 16289 ;; 16290 motorola) 16291 need_lib_prefix=no 16292 need_version=no 16293 shlibpath_overrides_runpath=no 16294 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16295 ;; 16296 esac 16297 ;; 16298 16299sysv4*MP*) 16300 if test -d /usr/nec ;then 16301 version_type=linux 16302 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16303 soname_spec='$libname${shared_ext}.$major' 16304 shlibpath_var=LD_LIBRARY_PATH 16305 fi 16306 ;; 16307 16308sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16309 version_type=freebsd-elf 16310 need_lib_prefix=no 16311 need_version=no 16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16313 soname_spec='${libname}${release}${shared_ext}$major' 16314 shlibpath_var=LD_LIBRARY_PATH 16315 hardcode_into_libs=yes 16316 if test "$with_gnu_ld" = yes; then 16317 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16318 shlibpath_overrides_runpath=no 16319 else 16320 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16321 shlibpath_overrides_runpath=yes 16322 case $host_os in 16323 sco3.2v5*) 16324 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16325 ;; 16326 esac 16327 fi 16328 sys_lib_dlsearch_path_spec='/usr/lib' 16329 ;; 16330 16331uts4*) 16332 version_type=linux 16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16334 soname_spec='${libname}${release}${shared_ext}$major' 16335 shlibpath_var=LD_LIBRARY_PATH 16336 ;; 16337 16338*) 16339 dynamic_linker=no 16340 ;; 16341esac 16342{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16343$as_echo "$dynamic_linker" >&6; } 16344test "$dynamic_linker" = no && can_build_shared=no 16345 16346if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16347 $as_echo_n "(cached) " >&6 16348else 16349 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16350fi 16351 16352sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16353if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16354 $as_echo_n "(cached) " >&6 16355else 16356 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16357fi 16358 16359sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16360 16361variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16362if test "$GCC" = yes; then 16363 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16364fi 16365 16366{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16367$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16368hardcode_action_F77= 16369if test -n "$hardcode_libdir_flag_spec_F77" || \ 16370 test -n "$runpath_var_F77" || \ 16371 test "X$hardcode_automatic_F77" = "Xyes" ; then 16372 16373 # We can hardcode non-existant directories. 16374 if test "$hardcode_direct_F77" != no && 16375 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16376 # have to relink, otherwise we might link with an installed library 16377 # when we should be linking with a yet-to-be-installed one 16378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16379 test "$hardcode_minus_L_F77" != no; then 16380 # Linking always hardcodes the temporary library directory. 16381 hardcode_action_F77=relink 16382 else 16383 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16384 hardcode_action_F77=immediate 16385 fi 16386else 16387 # We cannot hardcode anything, or else we can only hardcode existing 16388 # directories. 16389 hardcode_action_F77=unsupported 16390fi 16391{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16392$as_echo "$hardcode_action_F77" >&6; } 16393 16394if test "$hardcode_action_F77" = relink; then 16395 # Fast installation is not supported 16396 enable_fast_install=no 16397elif test "$shlibpath_overrides_runpath" = yes || 16398 test "$enable_shared" = no; then 16399 # Fast installation is not necessary 16400 enable_fast_install=needless 16401fi 16402 16403 16404# The else clause should only fire when bootstrapping the 16405# libtool distribution, otherwise you forgot to ship ltmain.sh 16406# with your package, and you will get complaints that there are 16407# no rules to generate ltmain.sh. 16408if test -f "$ltmain"; then 16409 # See if we are running on zsh, and set the options which allow our commands through 16410 # without removal of \ escapes. 16411 if test -n "${ZSH_VERSION+set}" ; then 16412 setopt NO_GLOB_SUBST 16413 fi 16414 # Now quote all the things that may contain metacharacters while being 16415 # careful not to overquote the AC_SUBSTed values. We take copies of the 16416 # variables and quote the copies for generation of the libtool script. 16417 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16418 SED SHELL STRIP \ 16419 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16420 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16421 deplibs_check_method reload_flag reload_cmds need_locks \ 16422 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16423 lt_cv_sys_global_symbol_to_c_name_address \ 16424 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16425 old_postinstall_cmds old_postuninstall_cmds \ 16426 compiler_F77 \ 16427 CC_F77 \ 16428 LD_F77 \ 16429 lt_prog_compiler_wl_F77 \ 16430 lt_prog_compiler_pic_F77 \ 16431 lt_prog_compiler_static_F77 \ 16432 lt_prog_compiler_no_builtin_flag_F77 \ 16433 export_dynamic_flag_spec_F77 \ 16434 thread_safe_flag_spec_F77 \ 16435 whole_archive_flag_spec_F77 \ 16436 enable_shared_with_static_runtimes_F77 \ 16437 old_archive_cmds_F77 \ 16438 old_archive_from_new_cmds_F77 \ 16439 predep_objects_F77 \ 16440 postdep_objects_F77 \ 16441 predeps_F77 \ 16442 postdeps_F77 \ 16443 compiler_lib_search_path_F77 \ 16444 compiler_lib_search_dirs_F77 \ 16445 archive_cmds_F77 \ 16446 archive_expsym_cmds_F77 \ 16447 postinstall_cmds_F77 \ 16448 postuninstall_cmds_F77 \ 16449 old_archive_from_expsyms_cmds_F77 \ 16450 allow_undefined_flag_F77 \ 16451 no_undefined_flag_F77 \ 16452 export_symbols_cmds_F77 \ 16453 hardcode_libdir_flag_spec_F77 \ 16454 hardcode_libdir_flag_spec_ld_F77 \ 16455 hardcode_libdir_separator_F77 \ 16456 hardcode_automatic_F77 \ 16457 module_cmds_F77 \ 16458 module_expsym_cmds_F77 \ 16459 lt_cv_prog_compiler_c_o_F77 \ 16460 fix_srcfile_path_F77 \ 16461 exclude_expsyms_F77 \ 16462 include_expsyms_F77; do 16463 16464 case $var in 16465 old_archive_cmds_F77 | \ 16466 old_archive_from_new_cmds_F77 | \ 16467 archive_cmds_F77 | \ 16468 archive_expsym_cmds_F77 | \ 16469 module_cmds_F77 | \ 16470 module_expsym_cmds_F77 | \ 16471 old_archive_from_expsyms_cmds_F77 | \ 16472 export_symbols_cmds_F77 | \ 16473 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16474 postinstall_cmds | postuninstall_cmds | \ 16475 old_postinstall_cmds | old_postuninstall_cmds | \ 16476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16477 # Double-quote double-evaled strings. 16478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16479 ;; 16480 *) 16481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16482 ;; 16483 esac 16484 done 16485 16486 case $lt_echo in 16487 *'\$0 --fallback-echo"') 16488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16489 ;; 16490 esac 16491 16492cfgfile="$ofile" 16493 16494 cat <<__EOF__ >> "$cfgfile" 16495# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16496 16497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16498 16499# Shell to use when invoking shell scripts. 16500SHELL=$lt_SHELL 16501 16502# Whether or not to build shared libraries. 16503build_libtool_libs=$enable_shared 16504 16505# Whether or not to build static libraries. 16506build_old_libs=$enable_static 16507 16508# Whether or not to add -lc for building shared libraries. 16509build_libtool_need_lc=$archive_cmds_need_lc_F77 16510 16511# Whether or not to disallow shared libs when runtime libs are static 16512allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16513 16514# Whether or not to optimize for fast installation. 16515fast_install=$enable_fast_install 16516 16517# The host system. 16518host_alias=$host_alias 16519host=$host 16520host_os=$host_os 16521 16522# The build system. 16523build_alias=$build_alias 16524build=$build 16525build_os=$build_os 16526 16527# An echo program that does not interpret backslashes. 16528echo=$lt_echo 16529 16530# The archiver. 16531AR=$lt_AR 16532AR_FLAGS=$lt_AR_FLAGS 16533 16534# A C compiler. 16535LTCC=$lt_LTCC 16536 16537# LTCC compiler flags. 16538LTCFLAGS=$lt_LTCFLAGS 16539 16540# A language-specific compiler. 16541CC=$lt_compiler_F77 16542 16543# Is the compiler the GNU C compiler? 16544with_gcc=$GCC_F77 16545 16546# An ERE matcher. 16547EGREP=$lt_EGREP 16548 16549# The linker used to build libraries. 16550LD=$lt_LD_F77 16551 16552# Whether we need hard or soft links. 16553LN_S=$lt_LN_S 16554 16555# A BSD-compatible nm program. 16556NM=$lt_NM 16557 16558# A symbol stripping program 16559STRIP=$lt_STRIP 16560 16561# Used to examine libraries when file_magic_cmd begins "file" 16562MAGIC_CMD=$MAGIC_CMD 16563 16564# Used on cygwin: DLL creation program. 16565DLLTOOL="$DLLTOOL" 16566 16567# Used on cygwin: object dumper. 16568OBJDUMP="$OBJDUMP" 16569 16570# Used on cygwin: assembler. 16571AS="$AS" 16572 16573# The name of the directory that contains temporary libtool files. 16574objdir=$objdir 16575 16576# How to create reloadable object files. 16577reload_flag=$lt_reload_flag 16578reload_cmds=$lt_reload_cmds 16579 16580# How to pass a linker flag through the compiler. 16581wl=$lt_lt_prog_compiler_wl_F77 16582 16583# Object file suffix (normally "o"). 16584objext="$ac_objext" 16585 16586# Old archive suffix (normally "a"). 16587libext="$libext" 16588 16589# Shared library suffix (normally ".so"). 16590shrext_cmds='$shrext_cmds' 16591 16592# Executable file suffix (normally ""). 16593exeext="$exeext" 16594 16595# Additional compiler flags for building library objects. 16596pic_flag=$lt_lt_prog_compiler_pic_F77 16597pic_mode=$pic_mode 16598 16599# What is the maximum length of a command? 16600max_cmd_len=$lt_cv_sys_max_cmd_len 16601 16602# Does compiler simultaneously support -c and -o options? 16603compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16604 16605# Must we lock files when doing compilation? 16606need_locks=$lt_need_locks 16607 16608# Do we need the lib prefix for modules? 16609need_lib_prefix=$need_lib_prefix 16610 16611# Do we need a version for libraries? 16612need_version=$need_version 16613 16614# Whether dlopen is supported. 16615dlopen_support=$enable_dlopen 16616 16617# Whether dlopen of programs is supported. 16618dlopen_self=$enable_dlopen_self 16619 16620# Whether dlopen of statically linked programs is supported. 16621dlopen_self_static=$enable_dlopen_self_static 16622 16623# Compiler flag to prevent dynamic linking. 16624link_static_flag=$lt_lt_prog_compiler_static_F77 16625 16626# Compiler flag to turn off builtin functions. 16627no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16628 16629# Compiler flag to allow reflexive dlopens. 16630export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16631 16632# Compiler flag to generate shared objects directly from archives. 16633whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16634 16635# Compiler flag to generate thread-safe objects. 16636thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16637 16638# Library versioning type. 16639version_type=$version_type 16640 16641# Format of library name prefix. 16642libname_spec=$lt_libname_spec 16643 16644# List of archive names. First name is the real one, the rest are links. 16645# The last name is the one that the linker finds with -lNAME. 16646library_names_spec=$lt_library_names_spec 16647 16648# The coded name of the library, if different from the real name. 16649soname_spec=$lt_soname_spec 16650 16651# Commands used to build and install an old-style archive. 16652RANLIB=$lt_RANLIB 16653old_archive_cmds=$lt_old_archive_cmds_F77 16654old_postinstall_cmds=$lt_old_postinstall_cmds 16655old_postuninstall_cmds=$lt_old_postuninstall_cmds 16656 16657# Create an old-style archive from a shared archive. 16658old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16659 16660# Create a temporary old-style archive to link instead of a shared archive. 16661old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16662 16663# Commands used to build and install a shared archive. 16664archive_cmds=$lt_archive_cmds_F77 16665archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16666postinstall_cmds=$lt_postinstall_cmds 16667postuninstall_cmds=$lt_postuninstall_cmds 16668 16669# Commands used to build a loadable module (assumed same as above if empty) 16670module_cmds=$lt_module_cmds_F77 16671module_expsym_cmds=$lt_module_expsym_cmds_F77 16672 16673# Commands to strip libraries. 16674old_striplib=$lt_old_striplib 16675striplib=$lt_striplib 16676 16677# Dependencies to place before the objects being linked to create a 16678# shared library. 16679predep_objects=$lt_predep_objects_F77 16680 16681# Dependencies to place after the objects being linked to create a 16682# shared library. 16683postdep_objects=$lt_postdep_objects_F77 16684 16685# Dependencies to place before the objects being linked to create a 16686# shared library. 16687predeps=$lt_predeps_F77 16688 16689# Dependencies to place after the objects being linked to create a 16690# shared library. 16691postdeps=$lt_postdeps_F77 16692 16693# The directories searched by this compiler when creating a shared 16694# library 16695compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16696 16697# The library search path used internally by the compiler when linking 16698# a shared library. 16699compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16700 16701# Method to check whether dependent libraries are shared objects. 16702deplibs_check_method=$lt_deplibs_check_method 16703 16704# Command to use when deplibs_check_method == file_magic. 16705file_magic_cmd=$lt_file_magic_cmd 16706 16707# Flag that allows shared libraries with undefined symbols to be built. 16708allow_undefined_flag=$lt_allow_undefined_flag_F77 16709 16710# Flag that forces no undefined symbols. 16711no_undefined_flag=$lt_no_undefined_flag_F77 16712 16713# Commands used to finish a libtool library installation in a directory. 16714finish_cmds=$lt_finish_cmds 16715 16716# Same as above, but a single script fragment to be evaled but not shown. 16717finish_eval=$lt_finish_eval 16718 16719# Take the output of nm and produce a listing of raw symbols and C names. 16720global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16721 16722# Transform the output of nm in a proper C declaration 16723global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16724 16725# Transform the output of nm in a C name address pair 16726global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16727 16728# This is the shared library runtime path variable. 16729runpath_var=$runpath_var 16730 16731# This is the shared library path variable. 16732shlibpath_var=$shlibpath_var 16733 16734# Is shlibpath searched before the hard-coded library search path? 16735shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16736 16737# How to hardcode a shared library path into an executable. 16738hardcode_action=$hardcode_action_F77 16739 16740# Whether we should hardcode library paths into libraries. 16741hardcode_into_libs=$hardcode_into_libs 16742 16743# Flag to hardcode \$libdir into a binary during linking. 16744# This must work even if \$libdir does not exist. 16745hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16746 16747# If ld is used when linking, flag to hardcode \$libdir into 16748# a binary during linking. This must work even if \$libdir does 16749# not exist. 16750hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16751 16752# Whether we need a single -rpath flag with a separated argument. 16753hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16754 16755# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16756# resulting binary. 16757hardcode_direct=$hardcode_direct_F77 16758 16759# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16760# resulting binary. 16761hardcode_minus_L=$hardcode_minus_L_F77 16762 16763# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16764# the resulting binary. 16765hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16766 16767# Set to yes if building a shared library automatically hardcodes DIR into the library 16768# and all subsequent libraries and executables linked against it. 16769hardcode_automatic=$hardcode_automatic_F77 16770 16771# Variables whose values should be saved in libtool wrapper scripts and 16772# restored at relink time. 16773variables_saved_for_relink="$variables_saved_for_relink" 16774 16775# Whether libtool must link a program against all its dependency libraries. 16776link_all_deplibs=$link_all_deplibs_F77 16777 16778# Compile-time system search path for libraries 16779sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16780 16781# Run-time system search path for libraries 16782sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16783 16784# Fix the shell variable \$srcfile for the compiler. 16785fix_srcfile_path=$lt_fix_srcfile_path 16786 16787# Set to yes if exported symbols are required. 16788always_export_symbols=$always_export_symbols_F77 16789 16790# The commands to list exported symbols. 16791export_symbols_cmds=$lt_export_symbols_cmds_F77 16792 16793# The commands to extract the exported symbol list from a shared archive. 16794extract_expsyms_cmds=$lt_extract_expsyms_cmds 16795 16796# Symbols that should not be listed in the preloaded symbols. 16797exclude_expsyms=$lt_exclude_expsyms_F77 16798 16799# Symbols that must always be exported. 16800include_expsyms=$lt_include_expsyms_F77 16801 16802# ### END LIBTOOL TAG CONFIG: $tagname 16803 16804__EOF__ 16805 16806 16807else 16808 # If there is no Makefile yet, we rely on a make rule to execute 16809 # `config.status --recheck' to rerun these tests and create the 16810 # libtool script then. 16811 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16812 if test -f "$ltmain_in"; then 16813 test -f Makefile && make "$ltmain" 16814 fi 16815fi 16816 16817 16818ac_ext=c 16819ac_cpp='$CPP $CPPFLAGS' 16820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16822ac_compiler_gnu=$ac_cv_c_compiler_gnu 16823 16824CC="$lt_save_CC" 16825 16826 else 16827 tagname="" 16828 fi 16829 ;; 16830 16831 GCJ) 16832 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16833 16834 16835# Source file extension for Java test sources. 16836ac_ext=java 16837 16838# Object file extension for compiled Java test sources. 16839objext=o 16840objext_GCJ=$objext 16841 16842# Code to be used in simple compile tests 16843lt_simple_compile_test_code="class foo {}" 16844 16845# Code to be used in simple link tests 16846lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16847 16848# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16849 16850# If no C compiler was specified, use CC. 16851LTCC=${LTCC-"$CC"} 16852 16853# If no C compiler flags were specified, use CFLAGS. 16854LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16855 16856# Allow CC to be a program name with arguments. 16857compiler=$CC 16858 16859 16860# save warnings/boilerplate of simple test code 16861ac_outfile=conftest.$ac_objext 16862echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16863eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16864_lt_compiler_boilerplate=`cat conftest.err` 16865$rm conftest* 16866 16867ac_outfile=conftest.$ac_objext 16868echo "$lt_simple_link_test_code" >conftest.$ac_ext 16869eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16870_lt_linker_boilerplate=`cat conftest.err` 16871$rm -r conftest* 16872 16873 16874# Allow CC to be a program name with arguments. 16875lt_save_CC="$CC" 16876CC=${GCJ-"gcj"} 16877compiler=$CC 16878compiler_GCJ=$CC 16879for cc_temp in $compiler""; do 16880 case $cc_temp in 16881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16883 \-*) ;; 16884 *) break;; 16885 esac 16886done 16887cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16888 16889LD_GCJ="$LD" 16890 16891# GCJ did not exist at the time GCC didn't implicitly link libc in. 16892archive_cmds_need_lc_GCJ=no 16893 16894old_archive_cmds_GCJ=$old_archive_cmds 16895 16896 16897lt_prog_compiler_no_builtin_flag_GCJ= 16898 16899if test "$GCC" = yes; then 16900 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16901 16902 16903{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16904$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16905if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16906 $as_echo_n "(cached) " >&6 16907else 16908 lt_cv_prog_compiler_rtti_exceptions=no 16909 ac_outfile=conftest.$ac_objext 16910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16911 lt_compiler_flag="-fno-rtti -fno-exceptions" 16912 # Insert the option either (1) after the last *FLAGS variable, or 16913 # (2) before a word containing "conftest.", or (3) at the end. 16914 # Note that $ac_compile itself does not contain backslashes and begins 16915 # with a dollar sign (not a hyphen), so the echo should work correctly. 16916 # The option is referenced via a variable to avoid confusing sed. 16917 lt_compile=`echo "$ac_compile" | $SED \ 16918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16920 -e 's:$: $lt_compiler_flag:'` 16921 (eval echo "\"\$as_me:16921: $lt_compile\"" >&5) 16922 (eval "$lt_compile" 2>conftest.err) 16923 ac_status=$? 16924 cat conftest.err >&5 16925 echo "$as_me:16925: \$? = $ac_status" >&5 16926 if (exit $ac_status) && test -s "$ac_outfile"; then 16927 # The compiler can only warn and ignore the option if not recognized 16928 # So say no if there are warnings other than the usual output. 16929 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16932 lt_cv_prog_compiler_rtti_exceptions=yes 16933 fi 16934 fi 16935 $rm conftest* 16936 16937fi 16938{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16939$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16940 16941if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16942 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16943else 16944 : 16945fi 16946 16947fi 16948 16949lt_prog_compiler_wl_GCJ= 16950lt_prog_compiler_pic_GCJ= 16951lt_prog_compiler_static_GCJ= 16952 16953{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16954$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16955 16956 if test "$GCC" = yes; then 16957 lt_prog_compiler_wl_GCJ='-Wl,' 16958 lt_prog_compiler_static_GCJ='-static' 16959 16960 case $host_os in 16961 aix*) 16962 # All AIX code is PIC. 16963 if test "$host_cpu" = ia64; then 16964 # AIX 5 now supports IA64 processor 16965 lt_prog_compiler_static_GCJ='-Bstatic' 16966 fi 16967 ;; 16968 16969 amigaos*) 16970 # FIXME: we need at least 68020 code to build shared libraries, but 16971 # adding the `-m68020' flag to GCC prevents building anything better, 16972 # like `-m68040'. 16973 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16974 ;; 16975 16976 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16977 # PIC is the default for these OSes. 16978 ;; 16979 16980 mingw* | cygwin* | pw32* | os2*) 16981 # This hack is so that the source file can tell whether it is being 16982 # built for inclusion in a dll (and should export symbols for example). 16983 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16984 # (--disable-auto-import) libraries 16985 16986 ;; 16987 16988 darwin* | rhapsody*) 16989 # PIC is the default on this platform 16990 # Common symbols not allowed in MH_DYLIB files 16991 lt_prog_compiler_pic_GCJ='-fno-common' 16992 ;; 16993 16994 interix[3-9]*) 16995 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16996 # Instead, we relocate shared libraries at runtime. 16997 ;; 16998 16999 msdosdjgpp*) 17000 # Just because we use GCC doesn't mean we suddenly get shared libraries 17001 # on systems that don't support them. 17002 lt_prog_compiler_can_build_shared_GCJ=no 17003 enable_shared=no 17004 ;; 17005 17006 sysv4*MP*) 17007 if test -d /usr/nec; then 17008 lt_prog_compiler_pic_GCJ=-Kconform_pic 17009 fi 17010 ;; 17011 17012 hpux*) 17013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17014 # not for PA HP-UX. 17015 case $host_cpu in 17016 hppa*64*|ia64*) 17017 # +Z the default 17018 ;; 17019 *) 17020 lt_prog_compiler_pic_GCJ='-fPIC' 17021 ;; 17022 esac 17023 ;; 17024 17025 *) 17026 lt_prog_compiler_pic_GCJ='-fPIC' 17027 ;; 17028 esac 17029 else 17030 # PORTME Check for flag to pass linker flags through the system compiler. 17031 case $host_os in 17032 aix*) 17033 lt_prog_compiler_wl_GCJ='-Wl,' 17034 if test "$host_cpu" = ia64; then 17035 # AIX 5 now supports IA64 processor 17036 lt_prog_compiler_static_GCJ='-Bstatic' 17037 else 17038 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17039 fi 17040 ;; 17041 darwin*) 17042 # PIC is the default on this platform 17043 # Common symbols not allowed in MH_DYLIB files 17044 case $cc_basename in 17045 xlc*) 17046 lt_prog_compiler_pic_GCJ='-qnocommon' 17047 lt_prog_compiler_wl_GCJ='-Wl,' 17048 ;; 17049 esac 17050 ;; 17051 17052 mingw* | cygwin* | pw32* | os2*) 17053 # This hack is so that the source file can tell whether it is being 17054 # built for inclusion in a dll (and should export symbols for example). 17055 17056 ;; 17057 17058 hpux9* | hpux10* | hpux11*) 17059 lt_prog_compiler_wl_GCJ='-Wl,' 17060 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17061 # not for PA HP-UX. 17062 case $host_cpu in 17063 hppa*64*|ia64*) 17064 # +Z the default 17065 ;; 17066 *) 17067 lt_prog_compiler_pic_GCJ='+Z' 17068 ;; 17069 esac 17070 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17071 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17072 ;; 17073 17074 irix5* | irix6* | nonstopux*) 17075 lt_prog_compiler_wl_GCJ='-Wl,' 17076 # PIC (with -KPIC) is the default. 17077 lt_prog_compiler_static_GCJ='-non_shared' 17078 ;; 17079 17080 newsos6) 17081 lt_prog_compiler_pic_GCJ='-KPIC' 17082 lt_prog_compiler_static_GCJ='-Bstatic' 17083 ;; 17084 17085 linux* | k*bsd*-gnu) 17086 case $cc_basename in 17087 icc* | ecc*) 17088 lt_prog_compiler_wl_GCJ='-Wl,' 17089 lt_prog_compiler_pic_GCJ='-KPIC' 17090 lt_prog_compiler_static_GCJ='-static' 17091 ;; 17092 pgcc* | pgf77* | pgf90* | pgf95*) 17093 # Portland Group compilers (*not* the Pentium gcc compiler, 17094 # which looks to be a dead project) 17095 lt_prog_compiler_wl_GCJ='-Wl,' 17096 lt_prog_compiler_pic_GCJ='-fpic' 17097 lt_prog_compiler_static_GCJ='-Bstatic' 17098 ;; 17099 ccc*) 17100 lt_prog_compiler_wl_GCJ='-Wl,' 17101 # All Alpha code is PIC. 17102 lt_prog_compiler_static_GCJ='-non_shared' 17103 ;; 17104 *) 17105 case `$CC -V 2>&1 | sed 5q` in 17106 *Sun\ C*) 17107 # Sun C 5.9 17108 lt_prog_compiler_pic_GCJ='-KPIC' 17109 lt_prog_compiler_static_GCJ='-Bstatic' 17110 lt_prog_compiler_wl_GCJ='-Wl,' 17111 ;; 17112 *Sun\ F*) 17113 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17114 lt_prog_compiler_pic_GCJ='-KPIC' 17115 lt_prog_compiler_static_GCJ='-Bstatic' 17116 lt_prog_compiler_wl_GCJ='' 17117 ;; 17118 esac 17119 ;; 17120 esac 17121 ;; 17122 17123 osf3* | osf4* | osf5*) 17124 lt_prog_compiler_wl_GCJ='-Wl,' 17125 # All OSF/1 code is PIC. 17126 lt_prog_compiler_static_GCJ='-non_shared' 17127 ;; 17128 17129 rdos*) 17130 lt_prog_compiler_static_GCJ='-non_shared' 17131 ;; 17132 17133 solaris*) 17134 lt_prog_compiler_pic_GCJ='-KPIC' 17135 lt_prog_compiler_static_GCJ='-Bstatic' 17136 case $cc_basename in 17137 f77* | f90* | f95*) 17138 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17139 *) 17140 lt_prog_compiler_wl_GCJ='-Wl,';; 17141 esac 17142 ;; 17143 17144 sunos4*) 17145 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17146 lt_prog_compiler_pic_GCJ='-PIC' 17147 lt_prog_compiler_static_GCJ='-Bstatic' 17148 ;; 17149 17150 sysv4 | sysv4.2uw2* | sysv4.3*) 17151 lt_prog_compiler_wl_GCJ='-Wl,' 17152 lt_prog_compiler_pic_GCJ='-KPIC' 17153 lt_prog_compiler_static_GCJ='-Bstatic' 17154 ;; 17155 17156 sysv4*MP*) 17157 if test -d /usr/nec ;then 17158 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17159 lt_prog_compiler_static_GCJ='-Bstatic' 17160 fi 17161 ;; 17162 17163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17164 lt_prog_compiler_wl_GCJ='-Wl,' 17165 lt_prog_compiler_pic_GCJ='-KPIC' 17166 lt_prog_compiler_static_GCJ='-Bstatic' 17167 ;; 17168 17169 unicos*) 17170 lt_prog_compiler_wl_GCJ='-Wl,' 17171 lt_prog_compiler_can_build_shared_GCJ=no 17172 ;; 17173 17174 uts4*) 17175 lt_prog_compiler_pic_GCJ='-pic' 17176 lt_prog_compiler_static_GCJ='-Bstatic' 17177 ;; 17178 17179 *) 17180 lt_prog_compiler_can_build_shared_GCJ=no 17181 ;; 17182 esac 17183 fi 17184 17185{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17186$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17187 17188# 17189# Check to make sure the PIC flag actually works. 17190# 17191if test -n "$lt_prog_compiler_pic_GCJ"; then 17192 17193{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17194$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17195if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17196 $as_echo_n "(cached) " >&6 17197else 17198 lt_cv_prog_compiler_pic_works_GCJ=no 17199 ac_outfile=conftest.$ac_objext 17200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17201 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17202 # Insert the option either (1) after the last *FLAGS variable, or 17203 # (2) before a word containing "conftest.", or (3) at the end. 17204 # Note that $ac_compile itself does not contain backslashes and begins 17205 # with a dollar sign (not a hyphen), so the echo should work correctly. 17206 # The option is referenced via a variable to avoid confusing sed. 17207 lt_compile=`echo "$ac_compile" | $SED \ 17208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17210 -e 's:$: $lt_compiler_flag:'` 17211 (eval echo "\"\$as_me:17211: $lt_compile\"" >&5) 17212 (eval "$lt_compile" 2>conftest.err) 17213 ac_status=$? 17214 cat conftest.err >&5 17215 echo "$as_me:17215: \$? = $ac_status" >&5 17216 if (exit $ac_status) && test -s "$ac_outfile"; then 17217 # The compiler can only warn and ignore the option if not recognized 17218 # So say no if there are warnings other than the usual output. 17219 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17222 lt_cv_prog_compiler_pic_works_GCJ=yes 17223 fi 17224 fi 17225 $rm conftest* 17226 17227fi 17228{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17229$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17230 17231if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17232 case $lt_prog_compiler_pic_GCJ in 17233 "" | " "*) ;; 17234 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17235 esac 17236else 17237 lt_prog_compiler_pic_GCJ= 17238 lt_prog_compiler_can_build_shared_GCJ=no 17239fi 17240 17241fi 17242case $host_os in 17243 # For platforms which do not support PIC, -DPIC is meaningless: 17244 *djgpp*) 17245 lt_prog_compiler_pic_GCJ= 17246 ;; 17247 *) 17248 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17249 ;; 17250esac 17251 17252# 17253# Check to make sure the static flag actually works. 17254# 17255wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17256{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17257$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17258if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17259 $as_echo_n "(cached) " >&6 17260else 17261 lt_cv_prog_compiler_static_works_GCJ=no 17262 save_LDFLAGS="$LDFLAGS" 17263 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17264 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17265 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17266 # The linker can only warn and ignore the option if not recognized 17267 # So say no if there are warnings 17268 if test -s conftest.err; then 17269 # Append any errors to the config.log. 17270 cat conftest.err 1>&5 17271 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17273 if diff conftest.exp conftest.er2 >/dev/null; then 17274 lt_cv_prog_compiler_static_works_GCJ=yes 17275 fi 17276 else 17277 lt_cv_prog_compiler_static_works_GCJ=yes 17278 fi 17279 fi 17280 $rm -r conftest* 17281 LDFLAGS="$save_LDFLAGS" 17282 17283fi 17284{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17285$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17286 17287if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17288 : 17289else 17290 lt_prog_compiler_static_GCJ= 17291fi 17292 17293 17294{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17295$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17296if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17297 $as_echo_n "(cached) " >&6 17298else 17299 lt_cv_prog_compiler_c_o_GCJ=no 17300 $rm -r conftest 2>/dev/null 17301 mkdir conftest 17302 cd conftest 17303 mkdir out 17304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17305 17306 lt_compiler_flag="-o out/conftest2.$ac_objext" 17307 # Insert the option either (1) after the last *FLAGS variable, or 17308 # (2) before a word containing "conftest.", or (3) at the end. 17309 # Note that $ac_compile itself does not contain backslashes and begins 17310 # with a dollar sign (not a hyphen), so the echo should work correctly. 17311 lt_compile=`echo "$ac_compile" | $SED \ 17312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17314 -e 's:$: $lt_compiler_flag:'` 17315 (eval echo "\"\$as_me:17315: $lt_compile\"" >&5) 17316 (eval "$lt_compile" 2>out/conftest.err) 17317 ac_status=$? 17318 cat out/conftest.err >&5 17319 echo "$as_me:17319: \$? = $ac_status" >&5 17320 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17321 then 17322 # The compiler can only warn and ignore the option if not recognized 17323 # So say no if there are warnings 17324 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17327 lt_cv_prog_compiler_c_o_GCJ=yes 17328 fi 17329 fi 17330 chmod u+w . 2>&5 17331 $rm conftest* 17332 # SGI C++ compiler will create directory out/ii_files/ for 17333 # template instantiation 17334 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17335 $rm out/* && rmdir out 17336 cd .. 17337 rmdir conftest 17338 $rm conftest* 17339 17340fi 17341{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17342$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17343 17344 17345hard_links="nottested" 17346if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17347 # do not overwrite the value of need_locks provided by the user 17348 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17349$as_echo_n "checking if we can lock with hard links... " >&6; } 17350 hard_links=yes 17351 $rm conftest* 17352 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17353 touch conftest.a 17354 ln conftest.a conftest.b 2>&5 || hard_links=no 17355 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17356 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17357$as_echo "$hard_links" >&6; } 17358 if test "$hard_links" = no; then 17359 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17360$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17361 need_locks=warn 17362 fi 17363else 17364 need_locks=no 17365fi 17366 17367{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17368$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17369 17370 runpath_var= 17371 allow_undefined_flag_GCJ= 17372 enable_shared_with_static_runtimes_GCJ=no 17373 archive_cmds_GCJ= 17374 archive_expsym_cmds_GCJ= 17375 old_archive_From_new_cmds_GCJ= 17376 old_archive_from_expsyms_cmds_GCJ= 17377 export_dynamic_flag_spec_GCJ= 17378 whole_archive_flag_spec_GCJ= 17379 thread_safe_flag_spec_GCJ= 17380 hardcode_libdir_flag_spec_GCJ= 17381 hardcode_libdir_flag_spec_ld_GCJ= 17382 hardcode_libdir_separator_GCJ= 17383 hardcode_direct_GCJ=no 17384 hardcode_minus_L_GCJ=no 17385 hardcode_shlibpath_var_GCJ=unsupported 17386 link_all_deplibs_GCJ=unknown 17387 hardcode_automatic_GCJ=no 17388 module_cmds_GCJ= 17389 module_expsym_cmds_GCJ= 17390 always_export_symbols_GCJ=no 17391 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17392 # include_expsyms should be a list of space-separated symbols to be *always* 17393 # included in the symbol list 17394 include_expsyms_GCJ= 17395 # exclude_expsyms can be an extended regexp of symbols to exclude 17396 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17397 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17398 # as well as any symbol that contains `d'. 17399 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17401 # platforms (ab)use it in PIC code, but their linkers get confused if 17402 # the symbol is explicitly referenced. Since portable code cannot 17403 # rely on this symbol name, it's probably fine to never include it in 17404 # preloaded symbol tables. 17405 # Exclude shared library initialization/finalization symbols. 17406 extract_expsyms_cmds= 17407 # Just being paranoid about ensuring that cc_basename is set. 17408 for cc_temp in $compiler""; do 17409 case $cc_temp in 17410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17412 \-*) ;; 17413 *) break;; 17414 esac 17415done 17416cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17417 17418 case $host_os in 17419 cygwin* | mingw* | pw32*) 17420 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17421 # When not using gcc, we currently assume that we are using 17422 # Microsoft Visual C++. 17423 if test "$GCC" != yes; then 17424 with_gnu_ld=no 17425 fi 17426 ;; 17427 interix*) 17428 # we just hope/assume this is gcc and not c89 (= MSVC++) 17429 with_gnu_ld=yes 17430 ;; 17431 openbsd*) 17432 with_gnu_ld=no 17433 ;; 17434 esac 17435 17436 ld_shlibs_GCJ=yes 17437 if test "$with_gnu_ld" = yes; then 17438 # If archive_cmds runs LD, not CC, wlarc should be empty 17439 wlarc='${wl}' 17440 17441 # Set some defaults for GNU ld with shared library support. These 17442 # are reset later if shared libraries are not supported. Putting them 17443 # here allows them to be overridden if necessary. 17444 runpath_var=LD_RUN_PATH 17445 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17446 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17447 # ancient GNU ld didn't support --whole-archive et. al. 17448 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17449 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17450 else 17451 whole_archive_flag_spec_GCJ= 17452 fi 17453 supports_anon_versioning=no 17454 case `$LD -v 2>/dev/null` in 17455 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17456 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17457 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17458 *\ 2.11.*) ;; # other 2.11 versions 17459 *) supports_anon_versioning=yes ;; 17460 esac 17461 17462 # See if GNU ld supports shared libraries. 17463 case $host_os in 17464 aix[3-9]*) 17465 # On AIX/PPC, the GNU linker is very broken 17466 if test "$host_cpu" != ia64; then 17467 ld_shlibs_GCJ=no 17468 cat <<EOF 1>&2 17469 17470*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17471*** to be unable to reliably create shared libraries on AIX. 17472*** Therefore, libtool is disabling shared libraries support. If you 17473*** really care for shared libraries, you may want to modify your PATH 17474*** so that a non-GNU linker is found, and then restart. 17475 17476EOF 17477 fi 17478 ;; 17479 17480 amigaos*) 17481 archive_cmds_GCJ='$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)' 17482 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17483 hardcode_minus_L_GCJ=yes 17484 17485 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17486 # that the semantics of dynamic libraries on AmigaOS, at least up 17487 # to version 4, is to share data among multiple programs linked 17488 # with the same dynamic library. Since this doesn't match the 17489 # behavior of shared libraries on other platforms, we can't use 17490 # them. 17491 ld_shlibs_GCJ=no 17492 ;; 17493 17494 beos*) 17495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17496 allow_undefined_flag_GCJ=unsupported 17497 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17498 # support --undefined. This deserves some investigation. FIXME 17499 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17500 else 17501 ld_shlibs_GCJ=no 17502 fi 17503 ;; 17504 17505 cygwin* | mingw* | pw32*) 17506 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17507 # as there is no search path for DLLs. 17508 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17509 allow_undefined_flag_GCJ=unsupported 17510 always_export_symbols_GCJ=no 17511 enable_shared_with_static_runtimes_GCJ=yes 17512 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17513 17514 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17515 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17516 # If the export-symbols file already is a .def file (1st line 17517 # is EXPORTS), use it as is; otherwise, prepend... 17518 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17519 cp $export_symbols $output_objdir/$soname.def; 17520 else 17521 echo EXPORTS > $output_objdir/$soname.def; 17522 cat $export_symbols >> $output_objdir/$soname.def; 17523 fi~ 17524 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17525 else 17526 ld_shlibs_GCJ=no 17527 fi 17528 ;; 17529 17530 interix[3-9]*) 17531 hardcode_direct_GCJ=no 17532 hardcode_shlibpath_var_GCJ=no 17533 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17534 export_dynamic_flag_spec_GCJ='${wl}-E' 17535 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17536 # Instead, shared libraries are loaded at an image base (0x10000000 by 17537 # default) and relocated if they conflict, which is a slow very memory 17538 # consuming and fragmenting process. To avoid this, we pick a random, 17539 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17540 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17541 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17542 archive_expsym_cmds_GCJ='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' 17543 ;; 17544 17545 gnu* | linux* | k*bsd*-gnu) 17546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17547 tmp_addflag= 17548 case $cc_basename,$host_cpu in 17549 pgcc*) # Portland Group C compiler 17550 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17551 tmp_addflag=' $pic_flag' 17552 ;; 17553 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17554 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17555 tmp_addflag=' $pic_flag -Mnomain' ;; 17556 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17557 tmp_addflag=' -i_dynamic' ;; 17558 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17559 tmp_addflag=' -i_dynamic -nofor_main' ;; 17560 ifc* | ifort*) # Intel Fortran compiler 17561 tmp_addflag=' -nofor_main' ;; 17562 esac 17563 case `$CC -V 2>&1 | sed 5q` in 17564 *Sun\ C*) # Sun C 5.9 17565 whole_archive_flag_spec_GCJ='${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' 17566 tmp_sharedflag='-G' ;; 17567 *Sun\ F*) # Sun Fortran 8.3 17568 tmp_sharedflag='-G' ;; 17569 *) 17570 tmp_sharedflag='-shared' ;; 17571 esac 17572 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17573 17574 if test $supports_anon_versioning = yes; then 17575 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17577 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17578 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17579 fi 17580 link_all_deplibs_GCJ=no 17581 else 17582 ld_shlibs_GCJ=no 17583 fi 17584 ;; 17585 17586 netbsd*) 17587 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17588 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17589 wlarc= 17590 else 17591 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17592 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17593 fi 17594 ;; 17595 17596 solaris*) 17597 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17598 ld_shlibs_GCJ=no 17599 cat <<EOF 1>&2 17600 17601*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17602*** create shared libraries on Solaris systems. Therefore, libtool 17603*** is disabling shared libraries support. We urge you to upgrade GNU 17604*** binutils to release 2.9.1 or newer. Another option is to modify 17605*** your PATH or compiler configuration so that the native linker is 17606*** used, and then restart. 17607 17608EOF 17609 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17610 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17611 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17612 else 17613 ld_shlibs_GCJ=no 17614 fi 17615 ;; 17616 17617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17618 case `$LD -v 2>&1` in 17619 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17620 ld_shlibs_GCJ=no 17621 cat <<_LT_EOF 1>&2 17622 17623*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17624*** reliably create shared libraries on SCO systems. Therefore, libtool 17625*** is disabling shared libraries support. We urge you to upgrade GNU 17626*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17627*** your PATH or compiler configuration so that the native linker is 17628*** used, and then restart. 17629 17630_LT_EOF 17631 ;; 17632 *) 17633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17634 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17635 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17636 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17637 else 17638 ld_shlibs_GCJ=no 17639 fi 17640 ;; 17641 esac 17642 ;; 17643 17644 sunos4*) 17645 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17646 wlarc= 17647 hardcode_direct_GCJ=yes 17648 hardcode_shlibpath_var_GCJ=no 17649 ;; 17650 17651 *) 17652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17653 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17654 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17655 else 17656 ld_shlibs_GCJ=no 17657 fi 17658 ;; 17659 esac 17660 17661 if test "$ld_shlibs_GCJ" = no; then 17662 runpath_var= 17663 hardcode_libdir_flag_spec_GCJ= 17664 export_dynamic_flag_spec_GCJ= 17665 whole_archive_flag_spec_GCJ= 17666 fi 17667 else 17668 # PORTME fill in a description of your system's linker (not GNU ld) 17669 case $host_os in 17670 aix3*) 17671 allow_undefined_flag_GCJ=unsupported 17672 always_export_symbols_GCJ=yes 17673 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17674 # Note: this linker hardcodes the directories in LIBPATH if there 17675 # are no directories specified by -L. 17676 hardcode_minus_L_GCJ=yes 17677 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17678 # Neither direct hardcoding nor static linking is supported with a 17679 # broken collect2. 17680 hardcode_direct_GCJ=unsupported 17681 fi 17682 ;; 17683 17684 aix[4-9]*) 17685 if test "$host_cpu" = ia64; then 17686 # On IA64, the linker does run time linking by default, so we don't 17687 # have to do anything special. 17688 aix_use_runtimelinking=no 17689 exp_sym_flag='-Bexport' 17690 no_entry_flag="" 17691 else 17692 # If we're using GNU nm, then we don't want the "-C" option. 17693 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17695 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17696 else 17697 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17698 fi 17699 aix_use_runtimelinking=no 17700 17701 # Test if we are trying to use run time linking or normal 17702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17703 # need to do runtime linking. 17704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17705 for ld_flag in $LDFLAGS; do 17706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17707 aix_use_runtimelinking=yes 17708 break 17709 fi 17710 done 17711 ;; 17712 esac 17713 17714 exp_sym_flag='-bexport' 17715 no_entry_flag='-bnoentry' 17716 fi 17717 17718 # When large executables or shared objects are built, AIX ld can 17719 # have problems creating the table of contents. If linking a library 17720 # or program results in "error TOC overflow" add -mminimal-toc to 17721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17723 17724 archive_cmds_GCJ='' 17725 hardcode_direct_GCJ=yes 17726 hardcode_libdir_separator_GCJ=':' 17727 link_all_deplibs_GCJ=yes 17728 17729 if test "$GCC" = yes; then 17730 case $host_os in aix4.[012]|aix4.[012].*) 17731 # We only want to do this on AIX 4.2 and lower, the check 17732 # below for broken collect2 doesn't work under 4.3+ 17733 collect2name=`${CC} -print-prog-name=collect2` 17734 if test -f "$collect2name" && \ 17735 strings "$collect2name" | grep resolve_lib_name >/dev/null 17736 then 17737 # We have reworked collect2 17738 : 17739 else 17740 # We have old collect2 17741 hardcode_direct_GCJ=unsupported 17742 # It fails to find uninstalled libraries when the uninstalled 17743 # path is not listed in the libpath. Setting hardcode_minus_L 17744 # to unsupported forces relinking 17745 hardcode_minus_L_GCJ=yes 17746 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17747 hardcode_libdir_separator_GCJ= 17748 fi 17749 ;; 17750 esac 17751 shared_flag='-shared' 17752 if test "$aix_use_runtimelinking" = yes; then 17753 shared_flag="$shared_flag "'${wl}-G' 17754 fi 17755 else 17756 # not using gcc 17757 if test "$host_cpu" = ia64; then 17758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17759 # chokes on -Wl,-G. The following line is correct: 17760 shared_flag='-G' 17761 else 17762 if test "$aix_use_runtimelinking" = yes; then 17763 shared_flag='${wl}-G' 17764 else 17765 shared_flag='${wl}-bM:SRE' 17766 fi 17767 fi 17768 fi 17769 17770 # It seems that -bexpall does not export symbols beginning with 17771 # underscore (_), so it is better to generate a list of symbols to export. 17772 always_export_symbols_GCJ=yes 17773 if test "$aix_use_runtimelinking" = yes; then 17774 # Warning - without using the other runtime loading flags (-brtl), 17775 # -berok will link without error, but may produce a broken library. 17776 allow_undefined_flag_GCJ='-berok' 17777 # Determine the default libpath from the value encoded in an empty executable. 17778 cat >conftest.$ac_ext <<_ACEOF 17779/* confdefs.h. */ 17780_ACEOF 17781cat confdefs.h >>conftest.$ac_ext 17782cat >>conftest.$ac_ext <<_ACEOF 17783/* end confdefs.h. */ 17784 17785int 17786main () 17787{ 17788 17789 ; 17790 return 0; 17791} 17792_ACEOF 17793rm -f conftest.$ac_objext conftest$ac_exeext 17794if { (ac_try="$ac_link" 17795case "(($ac_try" in 17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17797 *) ac_try_echo=$ac_try;; 17798esac 17799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17800$as_echo "$ac_try_echo") >&5 17801 (eval "$ac_link") 2>conftest.er1 17802 ac_status=$? 17803 grep -v '^ *+' conftest.er1 >conftest.err 17804 rm -f conftest.er1 17805 cat conftest.err >&5 17806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17807 (exit $ac_status); } && { 17808 test -z "$ac_c_werror_flag" || 17809 test ! -s conftest.err 17810 } && test -s conftest$ac_exeext && { 17811 test "$cross_compiling" = yes || 17812 $as_test_x conftest$ac_exeext 17813 }; then 17814 17815lt_aix_libpath_sed=' 17816 /Import File Strings/,/^$/ { 17817 /^0/ { 17818 s/^0 *\(.*\)$/\1/ 17819 p 17820 } 17821 }' 17822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17823# Check for a 64-bit object if we didn't find anything. 17824if test -z "$aix_libpath"; then 17825 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17826fi 17827else 17828 $as_echo "$as_me: failed program was:" >&5 17829sed 's/^/| /' conftest.$ac_ext >&5 17830 17831 17832fi 17833 17834rm -rf conftest.dSYM 17835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17836 conftest$ac_exeext conftest.$ac_ext 17837if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17838 17839 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17840 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17841 else 17842 if test "$host_cpu" = ia64; then 17843 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17844 allow_undefined_flag_GCJ="-z nodefs" 17845 archive_expsym_cmds_GCJ="\$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" 17846 else 17847 # Determine the default libpath from the value encoded in an empty executable. 17848 cat >conftest.$ac_ext <<_ACEOF 17849/* confdefs.h. */ 17850_ACEOF 17851cat confdefs.h >>conftest.$ac_ext 17852cat >>conftest.$ac_ext <<_ACEOF 17853/* end confdefs.h. */ 17854 17855int 17856main () 17857{ 17858 17859 ; 17860 return 0; 17861} 17862_ACEOF 17863rm -f conftest.$ac_objext conftest$ac_exeext 17864if { (ac_try="$ac_link" 17865case "(($ac_try" in 17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17867 *) ac_try_echo=$ac_try;; 17868esac 17869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17870$as_echo "$ac_try_echo") >&5 17871 (eval "$ac_link") 2>conftest.er1 17872 ac_status=$? 17873 grep -v '^ *+' conftest.er1 >conftest.err 17874 rm -f conftest.er1 17875 cat conftest.err >&5 17876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17877 (exit $ac_status); } && { 17878 test -z "$ac_c_werror_flag" || 17879 test ! -s conftest.err 17880 } && test -s conftest$ac_exeext && { 17881 test "$cross_compiling" = yes || 17882 $as_test_x conftest$ac_exeext 17883 }; then 17884 17885lt_aix_libpath_sed=' 17886 /Import File Strings/,/^$/ { 17887 /^0/ { 17888 s/^0 *\(.*\)$/\1/ 17889 p 17890 } 17891 }' 17892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17893# Check for a 64-bit object if we didn't find anything. 17894if test -z "$aix_libpath"; then 17895 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17896fi 17897else 17898 $as_echo "$as_me: failed program was:" >&5 17899sed 's/^/| /' conftest.$ac_ext >&5 17900 17901 17902fi 17903 17904rm -rf conftest.dSYM 17905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17906 conftest$ac_exeext conftest.$ac_ext 17907if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17908 17909 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17910 # Warning - without using the other run time loading flags, 17911 # -berok will link without error, but may produce a broken library. 17912 no_undefined_flag_GCJ=' ${wl}-bernotok' 17913 allow_undefined_flag_GCJ=' ${wl}-berok' 17914 # Exported symbols can be pulled into shared objects from archives 17915 whole_archive_flag_spec_GCJ='$convenience' 17916 archive_cmds_need_lc_GCJ=yes 17917 # This is similar to how AIX traditionally builds its shared libraries. 17918 archive_expsym_cmds_GCJ="\$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' 17919 fi 17920 fi 17921 ;; 17922 17923 amigaos*) 17924 archive_cmds_GCJ='$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)' 17925 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17926 hardcode_minus_L_GCJ=yes 17927 # see comment about different semantics on the GNU ld section 17928 ld_shlibs_GCJ=no 17929 ;; 17930 17931 bsdi[45]*) 17932 export_dynamic_flag_spec_GCJ=-rdynamic 17933 ;; 17934 17935 cygwin* | mingw* | pw32*) 17936 # When not using gcc, we currently assume that we are using 17937 # Microsoft Visual C++. 17938 # hardcode_libdir_flag_spec is actually meaningless, as there is 17939 # no search path for DLLs. 17940 hardcode_libdir_flag_spec_GCJ=' ' 17941 allow_undefined_flag_GCJ=unsupported 17942 # Tell ltmain to make .lib files, not .a files. 17943 libext=lib 17944 # Tell ltmain to make .dll files, not .so files. 17945 shrext_cmds=".dll" 17946 # FIXME: Setting linknames here is a bad hack. 17947 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17948 # The linker will automatically build a .lib file if we build a DLL. 17949 old_archive_From_new_cmds_GCJ='true' 17950 # FIXME: Should let the user specify the lib program. 17951 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17952 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17953 enable_shared_with_static_runtimes_GCJ=yes 17954 ;; 17955 17956 darwin* | rhapsody*) 17957 case $host_os in 17958 rhapsody* | darwin1.[012]) 17959 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17960 ;; 17961 *) # Darwin 1.3 on 17962 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17963 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17964 else 17965 case ${MACOSX_DEPLOYMENT_TARGET} in 17966 10.[012]) 17967 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17968 ;; 17969 10.*) 17970 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17971 ;; 17972 esac 17973 fi 17974 ;; 17975 esac 17976 archive_cmds_need_lc_GCJ=no 17977 hardcode_direct_GCJ=no 17978 hardcode_automatic_GCJ=yes 17979 hardcode_shlibpath_var_GCJ=unsupported 17980 whole_archive_flag_spec_GCJ='' 17981 link_all_deplibs_GCJ=yes 17982 if test "$GCC" = yes ; then 17983 output_verbose_link_cmd='echo' 17984 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17985 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17986 archive_expsym_cmds_GCJ="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}" 17987 module_expsym_cmds_GCJ="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}" 17988 else 17989 case $cc_basename in 17990 xlc*) 17991 output_verbose_link_cmd='echo' 17992 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17993 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17994 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17995 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17996 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17997 ;; 17998 *) 17999 ld_shlibs_GCJ=no 18000 ;; 18001 esac 18002 fi 18003 ;; 18004 18005 dgux*) 18006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18007 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18008 hardcode_shlibpath_var_GCJ=no 18009 ;; 18010 18011 freebsd1*) 18012 ld_shlibs_GCJ=no 18013 ;; 18014 18015 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18016 # support. Future versions do this automatically, but an explicit c++rt0.o 18017 # does not break anything, and helps significantly (at the cost of a little 18018 # extra space). 18019 freebsd2.2*) 18020 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18021 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18022 hardcode_direct_GCJ=yes 18023 hardcode_shlibpath_var_GCJ=no 18024 ;; 18025 18026 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18027 freebsd2*) 18028 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18029 hardcode_direct_GCJ=yes 18030 hardcode_minus_L_GCJ=yes 18031 hardcode_shlibpath_var_GCJ=no 18032 ;; 18033 18034 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18035 freebsd* | dragonfly*) 18036 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18037 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18038 hardcode_direct_GCJ=yes 18039 hardcode_shlibpath_var_GCJ=no 18040 ;; 18041 18042 hpux9*) 18043 if test "$GCC" = yes; then 18044 archive_cmds_GCJ='$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' 18045 else 18046 archive_cmds_GCJ='$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' 18047 fi 18048 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18049 hardcode_libdir_separator_GCJ=: 18050 hardcode_direct_GCJ=yes 18051 18052 # hardcode_minus_L: Not really in the search PATH, 18053 # but as the default location of the library. 18054 hardcode_minus_L_GCJ=yes 18055 export_dynamic_flag_spec_GCJ='${wl}-E' 18056 ;; 18057 18058 hpux10*) 18059 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18060 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18061 else 18062 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18063 fi 18064 if test "$with_gnu_ld" = no; then 18065 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18066 hardcode_libdir_separator_GCJ=: 18067 18068 hardcode_direct_GCJ=yes 18069 export_dynamic_flag_spec_GCJ='${wl}-E' 18070 18071 # hardcode_minus_L: Not really in the search PATH, 18072 # but as the default location of the library. 18073 hardcode_minus_L_GCJ=yes 18074 fi 18075 ;; 18076 18077 hpux11*) 18078 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18079 case $host_cpu in 18080 hppa*64*) 18081 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18082 ;; 18083 ia64*) 18084 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18085 ;; 18086 *) 18087 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18088 ;; 18089 esac 18090 else 18091 case $host_cpu in 18092 hppa*64*) 18093 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18094 ;; 18095 ia64*) 18096 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18097 ;; 18098 *) 18099 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18100 ;; 18101 esac 18102 fi 18103 if test "$with_gnu_ld" = no; then 18104 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18105 hardcode_libdir_separator_GCJ=: 18106 18107 case $host_cpu in 18108 hppa*64*|ia64*) 18109 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18110 hardcode_direct_GCJ=no 18111 hardcode_shlibpath_var_GCJ=no 18112 ;; 18113 *) 18114 hardcode_direct_GCJ=yes 18115 export_dynamic_flag_spec_GCJ='${wl}-E' 18116 18117 # hardcode_minus_L: Not really in the search PATH, 18118 # but as the default location of the library. 18119 hardcode_minus_L_GCJ=yes 18120 ;; 18121 esac 18122 fi 18123 ;; 18124 18125 irix5* | irix6* | nonstopux*) 18126 if test "$GCC" = yes; then 18127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18128 else 18129 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18130 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18131 fi 18132 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18133 hardcode_libdir_separator_GCJ=: 18134 link_all_deplibs_GCJ=yes 18135 ;; 18136 18137 netbsd*) 18138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18139 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18140 else 18141 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18142 fi 18143 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18144 hardcode_direct_GCJ=yes 18145 hardcode_shlibpath_var_GCJ=no 18146 ;; 18147 18148 newsos6) 18149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18150 hardcode_direct_GCJ=yes 18151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18152 hardcode_libdir_separator_GCJ=: 18153 hardcode_shlibpath_var_GCJ=no 18154 ;; 18155 18156 openbsd*) 18157 if test -f /usr/libexec/ld.so; then 18158 hardcode_direct_GCJ=yes 18159 hardcode_shlibpath_var_GCJ=no 18160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18161 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18162 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18164 export_dynamic_flag_spec_GCJ='${wl}-E' 18165 else 18166 case $host_os in 18167 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18168 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18169 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18170 ;; 18171 *) 18172 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18174 ;; 18175 esac 18176 fi 18177 else 18178 ld_shlibs_GCJ=no 18179 fi 18180 ;; 18181 18182 os2*) 18183 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18184 hardcode_minus_L_GCJ=yes 18185 allow_undefined_flag_GCJ=unsupported 18186 archive_cmds_GCJ='$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' 18187 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18188 ;; 18189 18190 osf3*) 18191 if test "$GCC" = yes; then 18192 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18193 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18194 else 18195 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18196 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18197 fi 18198 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18199 hardcode_libdir_separator_GCJ=: 18200 ;; 18201 18202 osf4* | osf5*) # as osf3* with the addition of -msym flag 18203 if test "$GCC" = yes; then 18204 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18205 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18206 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18207 else 18208 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18209 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18210 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18211 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 18212 18213 # Both c and cxx compiler support -rpath directly 18214 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18215 fi 18216 hardcode_libdir_separator_GCJ=: 18217 ;; 18218 18219 solaris*) 18220 no_undefined_flag_GCJ=' -z text' 18221 if test "$GCC" = yes; then 18222 wlarc='${wl}' 18223 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18224 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18226 else 18227 wlarc='' 18228 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18229 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18231 fi 18232 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18233 hardcode_shlibpath_var_GCJ=no 18234 case $host_os in 18235 solaris2.[0-5] | solaris2.[0-5].*) ;; 18236 *) 18237 # The compiler driver will combine and reorder linker options, 18238 # but understands `-z linker_flag'. GCC discards it without `$wl', 18239 # but is careful enough not to reorder. 18240 # Supported since Solaris 2.6 (maybe 2.5.1?) 18241 if test "$GCC" = yes; then 18242 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18243 else 18244 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18245 fi 18246 ;; 18247 esac 18248 link_all_deplibs_GCJ=yes 18249 ;; 18250 18251 sunos4*) 18252 if test "x$host_vendor" = xsequent; then 18253 # Use $CC to link under sequent, because it throws in some extra .o 18254 # files that make .init and .fini sections work. 18255 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18256 else 18257 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18258 fi 18259 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18260 hardcode_direct_GCJ=yes 18261 hardcode_minus_L_GCJ=yes 18262 hardcode_shlibpath_var_GCJ=no 18263 ;; 18264 18265 sysv4) 18266 case $host_vendor in 18267 sni) 18268 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18269 hardcode_direct_GCJ=yes # is this really true??? 18270 ;; 18271 siemens) 18272 ## LD is ld it makes a PLAMLIB 18273 ## CC just makes a GrossModule. 18274 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18275 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18276 hardcode_direct_GCJ=no 18277 ;; 18278 motorola) 18279 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18280 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18281 ;; 18282 esac 18283 runpath_var='LD_RUN_PATH' 18284 hardcode_shlibpath_var_GCJ=no 18285 ;; 18286 18287 sysv4.3*) 18288 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18289 hardcode_shlibpath_var_GCJ=no 18290 export_dynamic_flag_spec_GCJ='-Bexport' 18291 ;; 18292 18293 sysv4*MP*) 18294 if test -d /usr/nec; then 18295 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18296 hardcode_shlibpath_var_GCJ=no 18297 runpath_var=LD_RUN_PATH 18298 hardcode_runpath_var=yes 18299 ld_shlibs_GCJ=yes 18300 fi 18301 ;; 18302 18303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18304 no_undefined_flag_GCJ='${wl}-z,text' 18305 archive_cmds_need_lc_GCJ=no 18306 hardcode_shlibpath_var_GCJ=no 18307 runpath_var='LD_RUN_PATH' 18308 18309 if test "$GCC" = yes; then 18310 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18311 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18312 else 18313 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18314 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18315 fi 18316 ;; 18317 18318 sysv5* | sco3.2v5* | sco5v6*) 18319 # Note: We can NOT use -z defs as we might desire, because we do not 18320 # link with -lc, and that would cause any symbols used from libc to 18321 # always be unresolved, which means just about no library would 18322 # ever link correctly. If we're not using GNU ld we use -z text 18323 # though, which does catch some bad symbols but isn't as heavy-handed 18324 # as -z defs. 18325 no_undefined_flag_GCJ='${wl}-z,text' 18326 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18327 archive_cmds_need_lc_GCJ=no 18328 hardcode_shlibpath_var_GCJ=no 18329 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18330 hardcode_libdir_separator_GCJ=':' 18331 link_all_deplibs_GCJ=yes 18332 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18333 runpath_var='LD_RUN_PATH' 18334 18335 if test "$GCC" = yes; then 18336 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18337 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18338 else 18339 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18340 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18341 fi 18342 ;; 18343 18344 uts4*) 18345 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18346 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18347 hardcode_shlibpath_var_GCJ=no 18348 ;; 18349 18350 *) 18351 ld_shlibs_GCJ=no 18352 ;; 18353 esac 18354 fi 18355 18356{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18357$as_echo "$ld_shlibs_GCJ" >&6; } 18358test "$ld_shlibs_GCJ" = no && can_build_shared=no 18359 18360# 18361# Do we need to explicitly link libc? 18362# 18363case "x$archive_cmds_need_lc_GCJ" in 18364x|xyes) 18365 # Assume -lc should be added 18366 archive_cmds_need_lc_GCJ=yes 18367 18368 if test "$enable_shared" = yes && test "$GCC" = yes; then 18369 case $archive_cmds_GCJ in 18370 *'~'*) 18371 # FIXME: we may have to deal with multi-command sequences. 18372 ;; 18373 '$CC '*) 18374 # Test whether the compiler implicitly links with -lc since on some 18375 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18376 # to ld, don't add -lc before -lgcc. 18377 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18378$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18379 $rm conftest* 18380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18381 18382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18383 (eval $ac_compile) 2>&5 18384 ac_status=$? 18385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18386 (exit $ac_status); } 2>conftest.err; then 18387 soname=conftest 18388 lib=conftest 18389 libobjs=conftest.$ac_objext 18390 deplibs= 18391 wl=$lt_prog_compiler_wl_GCJ 18392 pic_flag=$lt_prog_compiler_pic_GCJ 18393 compiler_flags=-v 18394 linker_flags=-v 18395 verstring= 18396 output_objdir=. 18397 libname=conftest 18398 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18399 allow_undefined_flag_GCJ= 18400 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18401 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18402 ac_status=$? 18403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18404 (exit $ac_status); } 18405 then 18406 archive_cmds_need_lc_GCJ=no 18407 else 18408 archive_cmds_need_lc_GCJ=yes 18409 fi 18410 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18411 else 18412 cat conftest.err 1>&5 18413 fi 18414 $rm conftest* 18415 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18416$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18417 ;; 18418 esac 18419 fi 18420 ;; 18421esac 18422 18423{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18424$as_echo_n "checking dynamic linker characteristics... " >&6; } 18425library_names_spec= 18426libname_spec='lib$name' 18427soname_spec= 18428shrext_cmds=".so" 18429postinstall_cmds= 18430postuninstall_cmds= 18431finish_cmds= 18432finish_eval= 18433shlibpath_var= 18434shlibpath_overrides_runpath=unknown 18435version_type=none 18436dynamic_linker="$host_os ld.so" 18437sys_lib_dlsearch_path_spec="/lib /usr/lib" 18438 18439need_lib_prefix=unknown 18440hardcode_into_libs=no 18441 18442# when you set need_version to no, make sure it does not cause -set_version 18443# flags to be left without arguments 18444need_version=unknown 18445 18446case $host_os in 18447aix3*) 18448 version_type=linux 18449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18450 shlibpath_var=LIBPATH 18451 18452 # AIX 3 has no versioning support, so we append a major version to the name. 18453 soname_spec='${libname}${release}${shared_ext}$major' 18454 ;; 18455 18456aix[4-9]*) 18457 version_type=linux 18458 need_lib_prefix=no 18459 need_version=no 18460 hardcode_into_libs=yes 18461 if test "$host_cpu" = ia64; then 18462 # AIX 5 supports IA64 18463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18464 shlibpath_var=LD_LIBRARY_PATH 18465 else 18466 # With GCC up to 2.95.x, collect2 would create an import file 18467 # for dependence libraries. The import file would start with 18468 # the line `#! .'. This would cause the generated library to 18469 # depend on `.', always an invalid library. This was fixed in 18470 # development snapshots of GCC prior to 3.0. 18471 case $host_os in 18472 aix4 | aix4.[01] | aix4.[01].*) 18473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18474 echo ' yes ' 18475 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18476 : 18477 else 18478 can_build_shared=no 18479 fi 18480 ;; 18481 esac 18482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18483 # soname into executable. Probably we can add versioning support to 18484 # collect2, so additional links can be useful in future. 18485 if test "$aix_use_runtimelinking" = yes; then 18486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18487 # instead of lib<name>.a to let people know that these are not 18488 # typical AIX shared libraries. 18489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18490 else 18491 # We preserve .a as extension for shared libraries through AIX4.2 18492 # and later when we are not doing run time linking. 18493 library_names_spec='${libname}${release}.a $libname.a' 18494 soname_spec='${libname}${release}${shared_ext}$major' 18495 fi 18496 shlibpath_var=LIBPATH 18497 fi 18498 ;; 18499 18500amigaos*) 18501 library_names_spec='$libname.ixlibrary $libname.a' 18502 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18503 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' 18504 ;; 18505 18506beos*) 18507 library_names_spec='${libname}${shared_ext}' 18508 dynamic_linker="$host_os ld.so" 18509 shlibpath_var=LIBRARY_PATH 18510 ;; 18511 18512bsdi[45]*) 18513 version_type=linux 18514 need_version=no 18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18516 soname_spec='${libname}${release}${shared_ext}$major' 18517 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18518 shlibpath_var=LD_LIBRARY_PATH 18519 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18520 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18521 # the default ld.so.conf also contains /usr/contrib/lib and 18522 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18523 # libtool to hard-code these into programs 18524 ;; 18525 18526cygwin* | mingw* | pw32*) 18527 version_type=windows 18528 shrext_cmds=".dll" 18529 need_version=no 18530 need_lib_prefix=no 18531 18532 case $GCC,$host_os in 18533 yes,cygwin* | yes,mingw* | yes,pw32*) 18534 library_names_spec='$libname.dll.a' 18535 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18536 postinstall_cmds='base_file=`basename \${file}`~ 18537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18538 dldir=$destdir/`dirname \$dlpath`~ 18539 test -d \$dldir || mkdir -p \$dldir~ 18540 $install_prog $dir/$dlname \$dldir/$dlname~ 18541 chmod a+x \$dldir/$dlname' 18542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18543 dlpath=$dir/\$dldll~ 18544 $rm \$dlpath' 18545 shlibpath_overrides_runpath=yes 18546 18547 case $host_os in 18548 cygwin*) 18549 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18550 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18551 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18552 ;; 18553 mingw*) 18554 # MinGW DLLs use traditional 'lib' prefix 18555 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18556 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18557 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18558 # It is most probably a Windows format PATH printed by 18559 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18560 # path with ; separators, and with drive letters. We can handle the 18561 # drive letters (cygwin fileutils understands them), so leave them, 18562 # especially as we might pass files found there to a mingw objdump, 18563 # which wouldn't understand a cygwinified path. Ahh. 18564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18565 else 18566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18567 fi 18568 ;; 18569 pw32*) 18570 # pw32 DLLs use 'pw' prefix rather than 'lib' 18571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18572 ;; 18573 esac 18574 ;; 18575 18576 *) 18577 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18578 ;; 18579 esac 18580 dynamic_linker='Win32 ld.exe' 18581 # FIXME: first we should search . and the directory the executable is in 18582 shlibpath_var=PATH 18583 ;; 18584 18585darwin* | rhapsody*) 18586 dynamic_linker="$host_os dyld" 18587 version_type=darwin 18588 need_lib_prefix=no 18589 need_version=no 18590 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18591 soname_spec='${libname}${release}${major}$shared_ext' 18592 shlibpath_overrides_runpath=yes 18593 shlibpath_var=DYLD_LIBRARY_PATH 18594 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18595 18596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18597 ;; 18598 18599dgux*) 18600 version_type=linux 18601 need_lib_prefix=no 18602 need_version=no 18603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18604 soname_spec='${libname}${release}${shared_ext}$major' 18605 shlibpath_var=LD_LIBRARY_PATH 18606 ;; 18607 18608freebsd1*) 18609 dynamic_linker=no 18610 ;; 18611 18612freebsd* | dragonfly*) 18613 # DragonFly does not have aout. When/if they implement a new 18614 # versioning mechanism, adjust this. 18615 if test -x /usr/bin/objformat; then 18616 objformat=`/usr/bin/objformat` 18617 else 18618 case $host_os in 18619 freebsd[123]*) objformat=aout ;; 18620 *) objformat=elf ;; 18621 esac 18622 fi 18623 version_type=freebsd-$objformat 18624 case $version_type in 18625 freebsd-elf*) 18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18627 need_version=no 18628 need_lib_prefix=no 18629 ;; 18630 freebsd-*) 18631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18632 need_version=yes 18633 ;; 18634 esac 18635 shlibpath_var=LD_LIBRARY_PATH 18636 case $host_os in 18637 freebsd2*) 18638 shlibpath_overrides_runpath=yes 18639 ;; 18640 freebsd3.[01]* | freebsdelf3.[01]*) 18641 shlibpath_overrides_runpath=yes 18642 hardcode_into_libs=yes 18643 ;; 18644 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18645 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18646 shlibpath_overrides_runpath=no 18647 hardcode_into_libs=yes 18648 ;; 18649 *) # from 4.6 on, and DragonFly 18650 shlibpath_overrides_runpath=yes 18651 hardcode_into_libs=yes 18652 ;; 18653 esac 18654 ;; 18655 18656gnu*) 18657 version_type=linux 18658 need_lib_prefix=no 18659 need_version=no 18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18661 soname_spec='${libname}${release}${shared_ext}$major' 18662 shlibpath_var=LD_LIBRARY_PATH 18663 hardcode_into_libs=yes 18664 ;; 18665 18666hpux9* | hpux10* | hpux11*) 18667 # Give a soname corresponding to the major version so that dld.sl refuses to 18668 # link against other versions. 18669 version_type=sunos 18670 need_lib_prefix=no 18671 need_version=no 18672 case $host_cpu in 18673 ia64*) 18674 shrext_cmds='.so' 18675 hardcode_into_libs=yes 18676 dynamic_linker="$host_os dld.so" 18677 shlibpath_var=LD_LIBRARY_PATH 18678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18680 soname_spec='${libname}${release}${shared_ext}$major' 18681 if test "X$HPUX_IA64_MODE" = X32; then 18682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18683 else 18684 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18685 fi 18686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18687 ;; 18688 hppa*64*) 18689 shrext_cmds='.sl' 18690 hardcode_into_libs=yes 18691 dynamic_linker="$host_os dld.sl" 18692 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18695 soname_spec='${libname}${release}${shared_ext}$major' 18696 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18698 ;; 18699 *) 18700 shrext_cmds='.sl' 18701 dynamic_linker="$host_os dld.sl" 18702 shlibpath_var=SHLIB_PATH 18703 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18705 soname_spec='${libname}${release}${shared_ext}$major' 18706 ;; 18707 esac 18708 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18709 postinstall_cmds='chmod 555 $lib' 18710 ;; 18711 18712interix[3-9]*) 18713 version_type=linux 18714 need_lib_prefix=no 18715 need_version=no 18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18717 soname_spec='${libname}${release}${shared_ext}$major' 18718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18719 shlibpath_var=LD_LIBRARY_PATH 18720 shlibpath_overrides_runpath=no 18721 hardcode_into_libs=yes 18722 ;; 18723 18724irix5* | irix6* | nonstopux*) 18725 case $host_os in 18726 nonstopux*) version_type=nonstopux ;; 18727 *) 18728 if test "$lt_cv_prog_gnu_ld" = yes; then 18729 version_type=linux 18730 else 18731 version_type=irix 18732 fi ;; 18733 esac 18734 need_lib_prefix=no 18735 need_version=no 18736 soname_spec='${libname}${release}${shared_ext}$major' 18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18738 case $host_os in 18739 irix5* | nonstopux*) 18740 libsuff= shlibsuff= 18741 ;; 18742 *) 18743 case $LD in # libtool.m4 will add one of these switches to LD 18744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18745 libsuff= shlibsuff= libmagic=32-bit;; 18746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18747 libsuff=32 shlibsuff=N32 libmagic=N32;; 18748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18749 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18750 *) libsuff= shlibsuff= libmagic=never-match;; 18751 esac 18752 ;; 18753 esac 18754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18755 shlibpath_overrides_runpath=no 18756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18758 hardcode_into_libs=yes 18759 ;; 18760 18761# No shared lib support for Linux oldld, aout, or coff. 18762linux*oldld* | linux*aout* | linux*coff*) 18763 dynamic_linker=no 18764 ;; 18765 18766# This must be Linux ELF. 18767linux* | k*bsd*-gnu) 18768 version_type=linux 18769 need_lib_prefix=no 18770 need_version=no 18771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18772 soname_spec='${libname}${release}${shared_ext}$major' 18773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18774 shlibpath_var=LD_LIBRARY_PATH 18775 shlibpath_overrides_runpath=no 18776 # This implies no fast_install, which is unacceptable. 18777 # Some rework will be needed to allow for fast_install 18778 # before this can be enabled. 18779 hardcode_into_libs=yes 18780 18781 # find out which ABI we are using 18782 libsuff= 18783 case "$host_cpu" in 18784 x86_64*|s390x*|powerpc64*) 18785 echo '#line 18785 "configure"' > conftest.$ac_ext 18786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18787 (eval $ac_compile) 2>&5 18788 ac_status=$? 18789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18790 (exit $ac_status); }; then 18791 case `/usr/bin/file conftest.$ac_objext` in 18792 *64-bit*) 18793 libsuff=64 18794 ;; 18795 esac 18796 fi 18797 rm -rf conftest* 18798 ;; 18799 esac 18800 18801 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 18802 18803 # Append ld.so.conf contents to the search path 18804 if test -f /etc/ld.so.conf; then 18805 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' ' '` 18806 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18807 fi 18808 18809 # We used to test for /lib/ld.so.1 and disable shared libraries on 18810 # powerpc, because MkLinux only supported shared libraries with the 18811 # GNU dynamic linker. Since this was broken with cross compilers, 18812 # most powerpc-linux boxes support dynamic linking these days and 18813 # people can always --disable-shared, the test was removed, and we 18814 # assume the GNU/Linux dynamic linker is in use. 18815 dynamic_linker='GNU/Linux ld.so' 18816 ;; 18817 18818netbsd*) 18819 version_type=sunos 18820 need_lib_prefix=no 18821 need_version=no 18822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18825 dynamic_linker='NetBSD (a.out) ld.so' 18826 else 18827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18828 soname_spec='${libname}${release}${shared_ext}$major' 18829 dynamic_linker='NetBSD ld.elf_so' 18830 fi 18831 shlibpath_var=LD_LIBRARY_PATH 18832 shlibpath_overrides_runpath=yes 18833 hardcode_into_libs=yes 18834 ;; 18835 18836newsos6) 18837 version_type=linux 18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18839 shlibpath_var=LD_LIBRARY_PATH 18840 shlibpath_overrides_runpath=yes 18841 ;; 18842 18843nto-qnx*) 18844 version_type=linux 18845 need_lib_prefix=no 18846 need_version=no 18847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18848 soname_spec='${libname}${release}${shared_ext}$major' 18849 shlibpath_var=LD_LIBRARY_PATH 18850 shlibpath_overrides_runpath=yes 18851 ;; 18852 18853openbsd*) 18854 version_type=sunos 18855 sys_lib_dlsearch_path_spec="/usr/lib" 18856 need_lib_prefix=no 18857 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18858 case $host_os in 18859 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18860 *) need_version=no ;; 18861 esac 18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18864 shlibpath_var=LD_LIBRARY_PATH 18865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18866 case $host_os in 18867 openbsd2.[89] | openbsd2.[89].*) 18868 shlibpath_overrides_runpath=no 18869 ;; 18870 *) 18871 shlibpath_overrides_runpath=yes 18872 ;; 18873 esac 18874 else 18875 shlibpath_overrides_runpath=yes 18876 fi 18877 ;; 18878 18879os2*) 18880 libname_spec='$name' 18881 shrext_cmds=".dll" 18882 need_lib_prefix=no 18883 library_names_spec='$libname${shared_ext} $libname.a' 18884 dynamic_linker='OS/2 ld.exe' 18885 shlibpath_var=LIBPATH 18886 ;; 18887 18888osf3* | osf4* | osf5*) 18889 version_type=osf 18890 need_lib_prefix=no 18891 need_version=no 18892 soname_spec='${libname}${release}${shared_ext}$major' 18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18894 shlibpath_var=LD_LIBRARY_PATH 18895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18897 ;; 18898 18899rdos*) 18900 dynamic_linker=no 18901 ;; 18902 18903solaris*) 18904 version_type=linux 18905 need_lib_prefix=no 18906 need_version=no 18907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18908 soname_spec='${libname}${release}${shared_ext}$major' 18909 shlibpath_var=LD_LIBRARY_PATH 18910 shlibpath_overrides_runpath=yes 18911 hardcode_into_libs=yes 18912 # ldd complains unless libraries are executable 18913 postinstall_cmds='chmod +x $lib' 18914 ;; 18915 18916sunos4*) 18917 version_type=sunos 18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18920 shlibpath_var=LD_LIBRARY_PATH 18921 shlibpath_overrides_runpath=yes 18922 if test "$with_gnu_ld" = yes; then 18923 need_lib_prefix=no 18924 fi 18925 need_version=yes 18926 ;; 18927 18928sysv4 | sysv4.3*) 18929 version_type=linux 18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18931 soname_spec='${libname}${release}${shared_ext}$major' 18932 shlibpath_var=LD_LIBRARY_PATH 18933 case $host_vendor in 18934 sni) 18935 shlibpath_overrides_runpath=no 18936 need_lib_prefix=no 18937 export_dynamic_flag_spec='${wl}-Blargedynsym' 18938 runpath_var=LD_RUN_PATH 18939 ;; 18940 siemens) 18941 need_lib_prefix=no 18942 ;; 18943 motorola) 18944 need_lib_prefix=no 18945 need_version=no 18946 shlibpath_overrides_runpath=no 18947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18948 ;; 18949 esac 18950 ;; 18951 18952sysv4*MP*) 18953 if test -d /usr/nec ;then 18954 version_type=linux 18955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18956 soname_spec='$libname${shared_ext}.$major' 18957 shlibpath_var=LD_LIBRARY_PATH 18958 fi 18959 ;; 18960 18961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18962 version_type=freebsd-elf 18963 need_lib_prefix=no 18964 need_version=no 18965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18966 soname_spec='${libname}${release}${shared_ext}$major' 18967 shlibpath_var=LD_LIBRARY_PATH 18968 hardcode_into_libs=yes 18969 if test "$with_gnu_ld" = yes; then 18970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18971 shlibpath_overrides_runpath=no 18972 else 18973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18974 shlibpath_overrides_runpath=yes 18975 case $host_os in 18976 sco3.2v5*) 18977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18978 ;; 18979 esac 18980 fi 18981 sys_lib_dlsearch_path_spec='/usr/lib' 18982 ;; 18983 18984uts4*) 18985 version_type=linux 18986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18987 soname_spec='${libname}${release}${shared_ext}$major' 18988 shlibpath_var=LD_LIBRARY_PATH 18989 ;; 18990 18991*) 18992 dynamic_linker=no 18993 ;; 18994esac 18995{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18996$as_echo "$dynamic_linker" >&6; } 18997test "$dynamic_linker" = no && can_build_shared=no 18998 18999if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19000 $as_echo_n "(cached) " >&6 19001else 19002 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19003fi 19004 19005sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19006if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19007 $as_echo_n "(cached) " >&6 19008else 19009 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19010fi 19011 19012sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19013 19014variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19015if test "$GCC" = yes; then 19016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19017fi 19018 19019{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19020$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19021hardcode_action_GCJ= 19022if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19023 test -n "$runpath_var_GCJ" || \ 19024 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19025 19026 # We can hardcode non-existant directories. 19027 if test "$hardcode_direct_GCJ" != no && 19028 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19029 # have to relink, otherwise we might link with an installed library 19030 # when we should be linking with a yet-to-be-installed one 19031 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19032 test "$hardcode_minus_L_GCJ" != no; then 19033 # Linking always hardcodes the temporary library directory. 19034 hardcode_action_GCJ=relink 19035 else 19036 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19037 hardcode_action_GCJ=immediate 19038 fi 19039else 19040 # We cannot hardcode anything, or else we can only hardcode existing 19041 # directories. 19042 hardcode_action_GCJ=unsupported 19043fi 19044{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19045$as_echo "$hardcode_action_GCJ" >&6; } 19046 19047if test "$hardcode_action_GCJ" = relink; then 19048 # Fast installation is not supported 19049 enable_fast_install=no 19050elif test "$shlibpath_overrides_runpath" = yes || 19051 test "$enable_shared" = no; then 19052 # Fast installation is not necessary 19053 enable_fast_install=needless 19054fi 19055 19056 19057# The else clause should only fire when bootstrapping the 19058# libtool distribution, otherwise you forgot to ship ltmain.sh 19059# with your package, and you will get complaints that there are 19060# no rules to generate ltmain.sh. 19061if test -f "$ltmain"; then 19062 # See if we are running on zsh, and set the options which allow our commands through 19063 # without removal of \ escapes. 19064 if test -n "${ZSH_VERSION+set}" ; then 19065 setopt NO_GLOB_SUBST 19066 fi 19067 # Now quote all the things that may contain metacharacters while being 19068 # careful not to overquote the AC_SUBSTed values. We take copies of the 19069 # variables and quote the copies for generation of the libtool script. 19070 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19071 SED SHELL STRIP \ 19072 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19073 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19074 deplibs_check_method reload_flag reload_cmds need_locks \ 19075 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19076 lt_cv_sys_global_symbol_to_c_name_address \ 19077 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19078 old_postinstall_cmds old_postuninstall_cmds \ 19079 compiler_GCJ \ 19080 CC_GCJ \ 19081 LD_GCJ \ 19082 lt_prog_compiler_wl_GCJ \ 19083 lt_prog_compiler_pic_GCJ \ 19084 lt_prog_compiler_static_GCJ \ 19085 lt_prog_compiler_no_builtin_flag_GCJ \ 19086 export_dynamic_flag_spec_GCJ \ 19087 thread_safe_flag_spec_GCJ \ 19088 whole_archive_flag_spec_GCJ \ 19089 enable_shared_with_static_runtimes_GCJ \ 19090 old_archive_cmds_GCJ \ 19091 old_archive_from_new_cmds_GCJ \ 19092 predep_objects_GCJ \ 19093 postdep_objects_GCJ \ 19094 predeps_GCJ \ 19095 postdeps_GCJ \ 19096 compiler_lib_search_path_GCJ \ 19097 compiler_lib_search_dirs_GCJ \ 19098 archive_cmds_GCJ \ 19099 archive_expsym_cmds_GCJ \ 19100 postinstall_cmds_GCJ \ 19101 postuninstall_cmds_GCJ \ 19102 old_archive_from_expsyms_cmds_GCJ \ 19103 allow_undefined_flag_GCJ \ 19104 no_undefined_flag_GCJ \ 19105 export_symbols_cmds_GCJ \ 19106 hardcode_libdir_flag_spec_GCJ \ 19107 hardcode_libdir_flag_spec_ld_GCJ \ 19108 hardcode_libdir_separator_GCJ \ 19109 hardcode_automatic_GCJ \ 19110 module_cmds_GCJ \ 19111 module_expsym_cmds_GCJ \ 19112 lt_cv_prog_compiler_c_o_GCJ \ 19113 fix_srcfile_path_GCJ \ 19114 exclude_expsyms_GCJ \ 19115 include_expsyms_GCJ; do 19116 19117 case $var in 19118 old_archive_cmds_GCJ | \ 19119 old_archive_from_new_cmds_GCJ | \ 19120 archive_cmds_GCJ | \ 19121 archive_expsym_cmds_GCJ | \ 19122 module_cmds_GCJ | \ 19123 module_expsym_cmds_GCJ | \ 19124 old_archive_from_expsyms_cmds_GCJ | \ 19125 export_symbols_cmds_GCJ | \ 19126 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19127 postinstall_cmds | postuninstall_cmds | \ 19128 old_postinstall_cmds | old_postuninstall_cmds | \ 19129 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19130 # Double-quote double-evaled strings. 19131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19132 ;; 19133 *) 19134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19135 ;; 19136 esac 19137 done 19138 19139 case $lt_echo in 19140 *'\$0 --fallback-echo"') 19141 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19142 ;; 19143 esac 19144 19145cfgfile="$ofile" 19146 19147 cat <<__EOF__ >> "$cfgfile" 19148# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19149 19150# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19151 19152# Shell to use when invoking shell scripts. 19153SHELL=$lt_SHELL 19154 19155# Whether or not to build shared libraries. 19156build_libtool_libs=$enable_shared 19157 19158# Whether or not to build static libraries. 19159build_old_libs=$enable_static 19160 19161# Whether or not to add -lc for building shared libraries. 19162build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19163 19164# Whether or not to disallow shared libs when runtime libs are static 19165allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19166 19167# Whether or not to optimize for fast installation. 19168fast_install=$enable_fast_install 19169 19170# The host system. 19171host_alias=$host_alias 19172host=$host 19173host_os=$host_os 19174 19175# The build system. 19176build_alias=$build_alias 19177build=$build 19178build_os=$build_os 19179 19180# An echo program that does not interpret backslashes. 19181echo=$lt_echo 19182 19183# The archiver. 19184AR=$lt_AR 19185AR_FLAGS=$lt_AR_FLAGS 19186 19187# A C compiler. 19188LTCC=$lt_LTCC 19189 19190# LTCC compiler flags. 19191LTCFLAGS=$lt_LTCFLAGS 19192 19193# A language-specific compiler. 19194CC=$lt_compiler_GCJ 19195 19196# Is the compiler the GNU C compiler? 19197with_gcc=$GCC_GCJ 19198 19199# An ERE matcher. 19200EGREP=$lt_EGREP 19201 19202# The linker used to build libraries. 19203LD=$lt_LD_GCJ 19204 19205# Whether we need hard or soft links. 19206LN_S=$lt_LN_S 19207 19208# A BSD-compatible nm program. 19209NM=$lt_NM 19210 19211# A symbol stripping program 19212STRIP=$lt_STRIP 19213 19214# Used to examine libraries when file_magic_cmd begins "file" 19215MAGIC_CMD=$MAGIC_CMD 19216 19217# Used on cygwin: DLL creation program. 19218DLLTOOL="$DLLTOOL" 19219 19220# Used on cygwin: object dumper. 19221OBJDUMP="$OBJDUMP" 19222 19223# Used on cygwin: assembler. 19224AS="$AS" 19225 19226# The name of the directory that contains temporary libtool files. 19227objdir=$objdir 19228 19229# How to create reloadable object files. 19230reload_flag=$lt_reload_flag 19231reload_cmds=$lt_reload_cmds 19232 19233# How to pass a linker flag through the compiler. 19234wl=$lt_lt_prog_compiler_wl_GCJ 19235 19236# Object file suffix (normally "o"). 19237objext="$ac_objext" 19238 19239# Old archive suffix (normally "a"). 19240libext="$libext" 19241 19242# Shared library suffix (normally ".so"). 19243shrext_cmds='$shrext_cmds' 19244 19245# Executable file suffix (normally ""). 19246exeext="$exeext" 19247 19248# Additional compiler flags for building library objects. 19249pic_flag=$lt_lt_prog_compiler_pic_GCJ 19250pic_mode=$pic_mode 19251 19252# What is the maximum length of a command? 19253max_cmd_len=$lt_cv_sys_max_cmd_len 19254 19255# Does compiler simultaneously support -c and -o options? 19256compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19257 19258# Must we lock files when doing compilation? 19259need_locks=$lt_need_locks 19260 19261# Do we need the lib prefix for modules? 19262need_lib_prefix=$need_lib_prefix 19263 19264# Do we need a version for libraries? 19265need_version=$need_version 19266 19267# Whether dlopen is supported. 19268dlopen_support=$enable_dlopen 19269 19270# Whether dlopen of programs is supported. 19271dlopen_self=$enable_dlopen_self 19272 19273# Whether dlopen of statically linked programs is supported. 19274dlopen_self_static=$enable_dlopen_self_static 19275 19276# Compiler flag to prevent dynamic linking. 19277link_static_flag=$lt_lt_prog_compiler_static_GCJ 19278 19279# Compiler flag to turn off builtin functions. 19280no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19281 19282# Compiler flag to allow reflexive dlopens. 19283export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19284 19285# Compiler flag to generate shared objects directly from archives. 19286whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19287 19288# Compiler flag to generate thread-safe objects. 19289thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19290 19291# Library versioning type. 19292version_type=$version_type 19293 19294# Format of library name prefix. 19295libname_spec=$lt_libname_spec 19296 19297# List of archive names. First name is the real one, the rest are links. 19298# The last name is the one that the linker finds with -lNAME. 19299library_names_spec=$lt_library_names_spec 19300 19301# The coded name of the library, if different from the real name. 19302soname_spec=$lt_soname_spec 19303 19304# Commands used to build and install an old-style archive. 19305RANLIB=$lt_RANLIB 19306old_archive_cmds=$lt_old_archive_cmds_GCJ 19307old_postinstall_cmds=$lt_old_postinstall_cmds 19308old_postuninstall_cmds=$lt_old_postuninstall_cmds 19309 19310# Create an old-style archive from a shared archive. 19311old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19312 19313# Create a temporary old-style archive to link instead of a shared archive. 19314old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19315 19316# Commands used to build and install a shared archive. 19317archive_cmds=$lt_archive_cmds_GCJ 19318archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19319postinstall_cmds=$lt_postinstall_cmds 19320postuninstall_cmds=$lt_postuninstall_cmds 19321 19322# Commands used to build a loadable module (assumed same as above if empty) 19323module_cmds=$lt_module_cmds_GCJ 19324module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19325 19326# Commands to strip libraries. 19327old_striplib=$lt_old_striplib 19328striplib=$lt_striplib 19329 19330# Dependencies to place before the objects being linked to create a 19331# shared library. 19332predep_objects=$lt_predep_objects_GCJ 19333 19334# Dependencies to place after the objects being linked to create a 19335# shared library. 19336postdep_objects=$lt_postdep_objects_GCJ 19337 19338# Dependencies to place before the objects being linked to create a 19339# shared library. 19340predeps=$lt_predeps_GCJ 19341 19342# Dependencies to place after the objects being linked to create a 19343# shared library. 19344postdeps=$lt_postdeps_GCJ 19345 19346# The directories searched by this compiler when creating a shared 19347# library 19348compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19349 19350# The library search path used internally by the compiler when linking 19351# a shared library. 19352compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19353 19354# Method to check whether dependent libraries are shared objects. 19355deplibs_check_method=$lt_deplibs_check_method 19356 19357# Command to use when deplibs_check_method == file_magic. 19358file_magic_cmd=$lt_file_magic_cmd 19359 19360# Flag that allows shared libraries with undefined symbols to be built. 19361allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19362 19363# Flag that forces no undefined symbols. 19364no_undefined_flag=$lt_no_undefined_flag_GCJ 19365 19366# Commands used to finish a libtool library installation in a directory. 19367finish_cmds=$lt_finish_cmds 19368 19369# Same as above, but a single script fragment to be evaled but not shown. 19370finish_eval=$lt_finish_eval 19371 19372# Take the output of nm and produce a listing of raw symbols and C names. 19373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19374 19375# Transform the output of nm in a proper C declaration 19376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19377 19378# Transform the output of nm in a C name address pair 19379global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19380 19381# This is the shared library runtime path variable. 19382runpath_var=$runpath_var 19383 19384# This is the shared library path variable. 19385shlibpath_var=$shlibpath_var 19386 19387# Is shlibpath searched before the hard-coded library search path? 19388shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19389 19390# How to hardcode a shared library path into an executable. 19391hardcode_action=$hardcode_action_GCJ 19392 19393# Whether we should hardcode library paths into libraries. 19394hardcode_into_libs=$hardcode_into_libs 19395 19396# Flag to hardcode \$libdir into a binary during linking. 19397# This must work even if \$libdir does not exist. 19398hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19399 19400# If ld is used when linking, flag to hardcode \$libdir into 19401# a binary during linking. This must work even if \$libdir does 19402# not exist. 19403hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19404 19405# Whether we need a single -rpath flag with a separated argument. 19406hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19407 19408# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19409# resulting binary. 19410hardcode_direct=$hardcode_direct_GCJ 19411 19412# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19413# resulting binary. 19414hardcode_minus_L=$hardcode_minus_L_GCJ 19415 19416# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19417# the resulting binary. 19418hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19419 19420# Set to yes if building a shared library automatically hardcodes DIR into the library 19421# and all subsequent libraries and executables linked against it. 19422hardcode_automatic=$hardcode_automatic_GCJ 19423 19424# Variables whose values should be saved in libtool wrapper scripts and 19425# restored at relink time. 19426variables_saved_for_relink="$variables_saved_for_relink" 19427 19428# Whether libtool must link a program against all its dependency libraries. 19429link_all_deplibs=$link_all_deplibs_GCJ 19430 19431# Compile-time system search path for libraries 19432sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19433 19434# Run-time system search path for libraries 19435sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19436 19437# Fix the shell variable \$srcfile for the compiler. 19438fix_srcfile_path=$lt_fix_srcfile_path 19439 19440# Set to yes if exported symbols are required. 19441always_export_symbols=$always_export_symbols_GCJ 19442 19443# The commands to list exported symbols. 19444export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19445 19446# The commands to extract the exported symbol list from a shared archive. 19447extract_expsyms_cmds=$lt_extract_expsyms_cmds 19448 19449# Symbols that should not be listed in the preloaded symbols. 19450exclude_expsyms=$lt_exclude_expsyms_GCJ 19451 19452# Symbols that must always be exported. 19453include_expsyms=$lt_include_expsyms_GCJ 19454 19455# ### END LIBTOOL TAG CONFIG: $tagname 19456 19457__EOF__ 19458 19459 19460else 19461 # If there is no Makefile yet, we rely on a make rule to execute 19462 # `config.status --recheck' to rerun these tests and create the 19463 # libtool script then. 19464 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19465 if test -f "$ltmain_in"; then 19466 test -f Makefile && make "$ltmain" 19467 fi 19468fi 19469 19470 19471ac_ext=c 19472ac_cpp='$CPP $CPPFLAGS' 19473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19475ac_compiler_gnu=$ac_cv_c_compiler_gnu 19476 19477CC="$lt_save_CC" 19478 19479 else 19480 tagname="" 19481 fi 19482 ;; 19483 19484 RC) 19485 19486 19487# Source file extension for RC test sources. 19488ac_ext=rc 19489 19490# Object file extension for compiled RC test sources. 19491objext=o 19492objext_RC=$objext 19493 19494# Code to be used in simple compile tests 19495lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19496 19497# Code to be used in simple link tests 19498lt_simple_link_test_code="$lt_simple_compile_test_code" 19499 19500# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19501 19502# If no C compiler was specified, use CC. 19503LTCC=${LTCC-"$CC"} 19504 19505# If no C compiler flags were specified, use CFLAGS. 19506LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19507 19508# Allow CC to be a program name with arguments. 19509compiler=$CC 19510 19511 19512# save warnings/boilerplate of simple test code 19513ac_outfile=conftest.$ac_objext 19514echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19515eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19516_lt_compiler_boilerplate=`cat conftest.err` 19517$rm conftest* 19518 19519ac_outfile=conftest.$ac_objext 19520echo "$lt_simple_link_test_code" >conftest.$ac_ext 19521eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19522_lt_linker_boilerplate=`cat conftest.err` 19523$rm -r conftest* 19524 19525 19526# Allow CC to be a program name with arguments. 19527lt_save_CC="$CC" 19528CC=${RC-"windres"} 19529compiler=$CC 19530compiler_RC=$CC 19531for cc_temp in $compiler""; do 19532 case $cc_temp in 19533 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19534 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19535 \-*) ;; 19536 *) break;; 19537 esac 19538done 19539cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19540 19541lt_cv_prog_compiler_c_o_RC=yes 19542 19543# The else clause should only fire when bootstrapping the 19544# libtool distribution, otherwise you forgot to ship ltmain.sh 19545# with your package, and you will get complaints that there are 19546# no rules to generate ltmain.sh. 19547if test -f "$ltmain"; then 19548 # See if we are running on zsh, and set the options which allow our commands through 19549 # without removal of \ escapes. 19550 if test -n "${ZSH_VERSION+set}" ; then 19551 setopt NO_GLOB_SUBST 19552 fi 19553 # Now quote all the things that may contain metacharacters while being 19554 # careful not to overquote the AC_SUBSTed values. We take copies of the 19555 # variables and quote the copies for generation of the libtool script. 19556 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19557 SED SHELL STRIP \ 19558 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19559 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19560 deplibs_check_method reload_flag reload_cmds need_locks \ 19561 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19562 lt_cv_sys_global_symbol_to_c_name_address \ 19563 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19564 old_postinstall_cmds old_postuninstall_cmds \ 19565 compiler_RC \ 19566 CC_RC \ 19567 LD_RC \ 19568 lt_prog_compiler_wl_RC \ 19569 lt_prog_compiler_pic_RC \ 19570 lt_prog_compiler_static_RC \ 19571 lt_prog_compiler_no_builtin_flag_RC \ 19572 export_dynamic_flag_spec_RC \ 19573 thread_safe_flag_spec_RC \ 19574 whole_archive_flag_spec_RC \ 19575 enable_shared_with_static_runtimes_RC \ 19576 old_archive_cmds_RC \ 19577 old_archive_from_new_cmds_RC \ 19578 predep_objects_RC \ 19579 postdep_objects_RC \ 19580 predeps_RC \ 19581 postdeps_RC \ 19582 compiler_lib_search_path_RC \ 19583 compiler_lib_search_dirs_RC \ 19584 archive_cmds_RC \ 19585 archive_expsym_cmds_RC \ 19586 postinstall_cmds_RC \ 19587 postuninstall_cmds_RC \ 19588 old_archive_from_expsyms_cmds_RC \ 19589 allow_undefined_flag_RC \ 19590 no_undefined_flag_RC \ 19591 export_symbols_cmds_RC \ 19592 hardcode_libdir_flag_spec_RC \ 19593 hardcode_libdir_flag_spec_ld_RC \ 19594 hardcode_libdir_separator_RC \ 19595 hardcode_automatic_RC \ 19596 module_cmds_RC \ 19597 module_expsym_cmds_RC \ 19598 lt_cv_prog_compiler_c_o_RC \ 19599 fix_srcfile_path_RC \ 19600 exclude_expsyms_RC \ 19601 include_expsyms_RC; do 19602 19603 case $var in 19604 old_archive_cmds_RC | \ 19605 old_archive_from_new_cmds_RC | \ 19606 archive_cmds_RC | \ 19607 archive_expsym_cmds_RC | \ 19608 module_cmds_RC | \ 19609 module_expsym_cmds_RC | \ 19610 old_archive_from_expsyms_cmds_RC | \ 19611 export_symbols_cmds_RC | \ 19612 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19613 postinstall_cmds | postuninstall_cmds | \ 19614 old_postinstall_cmds | old_postuninstall_cmds | \ 19615 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19616 # Double-quote double-evaled strings. 19617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19618 ;; 19619 *) 19620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19621 ;; 19622 esac 19623 done 19624 19625 case $lt_echo in 19626 *'\$0 --fallback-echo"') 19627 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19628 ;; 19629 esac 19630 19631cfgfile="$ofile" 19632 19633 cat <<__EOF__ >> "$cfgfile" 19634# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19635 19636# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19637 19638# Shell to use when invoking shell scripts. 19639SHELL=$lt_SHELL 19640 19641# Whether or not to build shared libraries. 19642build_libtool_libs=$enable_shared 19643 19644# Whether or not to build static libraries. 19645build_old_libs=$enable_static 19646 19647# Whether or not to add -lc for building shared libraries. 19648build_libtool_need_lc=$archive_cmds_need_lc_RC 19649 19650# Whether or not to disallow shared libs when runtime libs are static 19651allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19652 19653# Whether or not to optimize for fast installation. 19654fast_install=$enable_fast_install 19655 19656# The host system. 19657host_alias=$host_alias 19658host=$host 19659host_os=$host_os 19660 19661# The build system. 19662build_alias=$build_alias 19663build=$build 19664build_os=$build_os 19665 19666# An echo program that does not interpret backslashes. 19667echo=$lt_echo 19668 19669# The archiver. 19670AR=$lt_AR 19671AR_FLAGS=$lt_AR_FLAGS 19672 19673# A C compiler. 19674LTCC=$lt_LTCC 19675 19676# LTCC compiler flags. 19677LTCFLAGS=$lt_LTCFLAGS 19678 19679# A language-specific compiler. 19680CC=$lt_compiler_RC 19681 19682# Is the compiler the GNU C compiler? 19683with_gcc=$GCC_RC 19684 19685# An ERE matcher. 19686EGREP=$lt_EGREP 19687 19688# The linker used to build libraries. 19689LD=$lt_LD_RC 19690 19691# Whether we need hard or soft links. 19692LN_S=$lt_LN_S 19693 19694# A BSD-compatible nm program. 19695NM=$lt_NM 19696 19697# A symbol stripping program 19698STRIP=$lt_STRIP 19699 19700# Used to examine libraries when file_magic_cmd begins "file" 19701MAGIC_CMD=$MAGIC_CMD 19702 19703# Used on cygwin: DLL creation program. 19704DLLTOOL="$DLLTOOL" 19705 19706# Used on cygwin: object dumper. 19707OBJDUMP="$OBJDUMP" 19708 19709# Used on cygwin: assembler. 19710AS="$AS" 19711 19712# The name of the directory that contains temporary libtool files. 19713objdir=$objdir 19714 19715# How to create reloadable object files. 19716reload_flag=$lt_reload_flag 19717reload_cmds=$lt_reload_cmds 19718 19719# How to pass a linker flag through the compiler. 19720wl=$lt_lt_prog_compiler_wl_RC 19721 19722# Object file suffix (normally "o"). 19723objext="$ac_objext" 19724 19725# Old archive suffix (normally "a"). 19726libext="$libext" 19727 19728# Shared library suffix (normally ".so"). 19729shrext_cmds='$shrext_cmds' 19730 19731# Executable file suffix (normally ""). 19732exeext="$exeext" 19733 19734# Additional compiler flags for building library objects. 19735pic_flag=$lt_lt_prog_compiler_pic_RC 19736pic_mode=$pic_mode 19737 19738# What is the maximum length of a command? 19739max_cmd_len=$lt_cv_sys_max_cmd_len 19740 19741# Does compiler simultaneously support -c and -o options? 19742compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19743 19744# Must we lock files when doing compilation? 19745need_locks=$lt_need_locks 19746 19747# Do we need the lib prefix for modules? 19748need_lib_prefix=$need_lib_prefix 19749 19750# Do we need a version for libraries? 19751need_version=$need_version 19752 19753# Whether dlopen is supported. 19754dlopen_support=$enable_dlopen 19755 19756# Whether dlopen of programs is supported. 19757dlopen_self=$enable_dlopen_self 19758 19759# Whether dlopen of statically linked programs is supported. 19760dlopen_self_static=$enable_dlopen_self_static 19761 19762# Compiler flag to prevent dynamic linking. 19763link_static_flag=$lt_lt_prog_compiler_static_RC 19764 19765# Compiler flag to turn off builtin functions. 19766no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19767 19768# Compiler flag to allow reflexive dlopens. 19769export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19770 19771# Compiler flag to generate shared objects directly from archives. 19772whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19773 19774# Compiler flag to generate thread-safe objects. 19775thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19776 19777# Library versioning type. 19778version_type=$version_type 19779 19780# Format of library name prefix. 19781libname_spec=$lt_libname_spec 19782 19783# List of archive names. First name is the real one, the rest are links. 19784# The last name is the one that the linker finds with -lNAME. 19785library_names_spec=$lt_library_names_spec 19786 19787# The coded name of the library, if different from the real name. 19788soname_spec=$lt_soname_spec 19789 19790# Commands used to build and install an old-style archive. 19791RANLIB=$lt_RANLIB 19792old_archive_cmds=$lt_old_archive_cmds_RC 19793old_postinstall_cmds=$lt_old_postinstall_cmds 19794old_postuninstall_cmds=$lt_old_postuninstall_cmds 19795 19796# Create an old-style archive from a shared archive. 19797old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19798 19799# Create a temporary old-style archive to link instead of a shared archive. 19800old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19801 19802# Commands used to build and install a shared archive. 19803archive_cmds=$lt_archive_cmds_RC 19804archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19805postinstall_cmds=$lt_postinstall_cmds 19806postuninstall_cmds=$lt_postuninstall_cmds 19807 19808# Commands used to build a loadable module (assumed same as above if empty) 19809module_cmds=$lt_module_cmds_RC 19810module_expsym_cmds=$lt_module_expsym_cmds_RC 19811 19812# Commands to strip libraries. 19813old_striplib=$lt_old_striplib 19814striplib=$lt_striplib 19815 19816# Dependencies to place before the objects being linked to create a 19817# shared library. 19818predep_objects=$lt_predep_objects_RC 19819 19820# Dependencies to place after the objects being linked to create a 19821# shared library. 19822postdep_objects=$lt_postdep_objects_RC 19823 19824# Dependencies to place before the objects being linked to create a 19825# shared library. 19826predeps=$lt_predeps_RC 19827 19828# Dependencies to place after the objects being linked to create a 19829# shared library. 19830postdeps=$lt_postdeps_RC 19831 19832# The directories searched by this compiler when creating a shared 19833# library 19834compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19835 19836# The library search path used internally by the compiler when linking 19837# a shared library. 19838compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19839 19840# Method to check whether dependent libraries are shared objects. 19841deplibs_check_method=$lt_deplibs_check_method 19842 19843# Command to use when deplibs_check_method == file_magic. 19844file_magic_cmd=$lt_file_magic_cmd 19845 19846# Flag that allows shared libraries with undefined symbols to be built. 19847allow_undefined_flag=$lt_allow_undefined_flag_RC 19848 19849# Flag that forces no undefined symbols. 19850no_undefined_flag=$lt_no_undefined_flag_RC 19851 19852# Commands used to finish a libtool library installation in a directory. 19853finish_cmds=$lt_finish_cmds 19854 19855# Same as above, but a single script fragment to be evaled but not shown. 19856finish_eval=$lt_finish_eval 19857 19858# Take the output of nm and produce a listing of raw symbols and C names. 19859global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19860 19861# Transform the output of nm in a proper C declaration 19862global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19863 19864# Transform the output of nm in a C name address pair 19865global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19866 19867# This is the shared library runtime path variable. 19868runpath_var=$runpath_var 19869 19870# This is the shared library path variable. 19871shlibpath_var=$shlibpath_var 19872 19873# Is shlibpath searched before the hard-coded library search path? 19874shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19875 19876# How to hardcode a shared library path into an executable. 19877hardcode_action=$hardcode_action_RC 19878 19879# Whether we should hardcode library paths into libraries. 19880hardcode_into_libs=$hardcode_into_libs 19881 19882# Flag to hardcode \$libdir into a binary during linking. 19883# This must work even if \$libdir does not exist. 19884hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19885 19886# If ld is used when linking, flag to hardcode \$libdir into 19887# a binary during linking. This must work even if \$libdir does 19888# not exist. 19889hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19890 19891# Whether we need a single -rpath flag with a separated argument. 19892hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19893 19894# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19895# resulting binary. 19896hardcode_direct=$hardcode_direct_RC 19897 19898# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19899# resulting binary. 19900hardcode_minus_L=$hardcode_minus_L_RC 19901 19902# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19903# the resulting binary. 19904hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19905 19906# Set to yes if building a shared library automatically hardcodes DIR into the library 19907# and all subsequent libraries and executables linked against it. 19908hardcode_automatic=$hardcode_automatic_RC 19909 19910# Variables whose values should be saved in libtool wrapper scripts and 19911# restored at relink time. 19912variables_saved_for_relink="$variables_saved_for_relink" 19913 19914# Whether libtool must link a program against all its dependency libraries. 19915link_all_deplibs=$link_all_deplibs_RC 19916 19917# Compile-time system search path for libraries 19918sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19919 19920# Run-time system search path for libraries 19921sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19922 19923# Fix the shell variable \$srcfile for the compiler. 19924fix_srcfile_path=$lt_fix_srcfile_path 19925 19926# Set to yes if exported symbols are required. 19927always_export_symbols=$always_export_symbols_RC 19928 19929# The commands to list exported symbols. 19930export_symbols_cmds=$lt_export_symbols_cmds_RC 19931 19932# The commands to extract the exported symbol list from a shared archive. 19933extract_expsyms_cmds=$lt_extract_expsyms_cmds 19934 19935# Symbols that should not be listed in the preloaded symbols. 19936exclude_expsyms=$lt_exclude_expsyms_RC 19937 19938# Symbols that must always be exported. 19939include_expsyms=$lt_include_expsyms_RC 19940 19941# ### END LIBTOOL TAG CONFIG: $tagname 19942 19943__EOF__ 19944 19945 19946else 19947 # If there is no Makefile yet, we rely on a make rule to execute 19948 # `config.status --recheck' to rerun these tests and create the 19949 # libtool script then. 19950 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19951 if test -f "$ltmain_in"; then 19952 test -f Makefile && make "$ltmain" 19953 fi 19954fi 19955 19956 19957ac_ext=c 19958ac_cpp='$CPP $CPPFLAGS' 19959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19961ac_compiler_gnu=$ac_cv_c_compiler_gnu 19962 19963CC="$lt_save_CC" 19964 19965 ;; 19966 19967 *) 19968 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19969$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19970 { (exit 1); exit 1; }; } 19971 ;; 19972 esac 19973 19974 # Append the new tag name to the list of available tags. 19975 if test -n "$tagname" ; then 19976 available_tags="$available_tags $tagname" 19977 fi 19978 fi 19979 done 19980 IFS="$lt_save_ifs" 19981 19982 # Now substitute the updated list of available tags. 19983 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19984 mv "${ofile}T" "$ofile" 19985 chmod +x "$ofile" 19986 else 19987 rm -f "${ofile}T" 19988 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19989$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19990 { (exit 1); exit 1; }; } 19991 fi 19992fi 19993 19994 19995 19996# This can be used to rebuild libtool when needed 19997LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19998 19999# Always use our own libtool. 20000LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20001 20002# Prevent multiple expansion 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024# Need to call this explicitly since the first call to PKG_CHECK_MODULES 20025# is in an if statement, and later calls would break if it's skipped. 20026 20027 20028if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20029 if test -n "$ac_tool_prefix"; then 20030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20031set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20033$as_echo_n "checking for $ac_word... " >&6; } 20034if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20035 $as_echo_n "(cached) " >&6 20036else 20037 case $PKG_CONFIG in 20038 [\\/]* | ?:[\\/]*) 20039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20040 ;; 20041 *) 20042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20043for as_dir in $PATH 20044do 20045 IFS=$as_save_IFS 20046 test -z "$as_dir" && as_dir=. 20047 for ac_exec_ext in '' $ac_executable_extensions; do 20048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20051 break 2 20052 fi 20053done 20054done 20055IFS=$as_save_IFS 20056 20057 ;; 20058esac 20059fi 20060PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20061if test -n "$PKG_CONFIG"; then 20062 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20063$as_echo "$PKG_CONFIG" >&6; } 20064else 20065 { $as_echo "$as_me:$LINENO: result: no" >&5 20066$as_echo "no" >&6; } 20067fi 20068 20069 20070fi 20071if test -z "$ac_cv_path_PKG_CONFIG"; then 20072 ac_pt_PKG_CONFIG=$PKG_CONFIG 20073 # Extract the first word of "pkg-config", so it can be a program name with args. 20074set dummy pkg-config; ac_word=$2 20075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20076$as_echo_n "checking for $ac_word... " >&6; } 20077if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20078 $as_echo_n "(cached) " >&6 20079else 20080 case $ac_pt_PKG_CONFIG in 20081 [\\/]* | ?:[\\/]*) 20082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20083 ;; 20084 *) 20085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20086for as_dir in $PATH 20087do 20088 IFS=$as_save_IFS 20089 test -z "$as_dir" && as_dir=. 20090 for ac_exec_ext in '' $ac_executable_extensions; do 20091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20092 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20094 break 2 20095 fi 20096done 20097done 20098IFS=$as_save_IFS 20099 20100 ;; 20101esac 20102fi 20103ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20104if test -n "$ac_pt_PKG_CONFIG"; then 20105 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20106$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20107else 20108 { $as_echo "$as_me:$LINENO: result: no" >&5 20109$as_echo "no" >&6; } 20110fi 20111 20112 if test "x$ac_pt_PKG_CONFIG" = x; then 20113 PKG_CONFIG="" 20114 else 20115 case $cross_compiling:$ac_tool_warned in 20116yes:) 20117{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 20118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20119ac_tool_warned=yes ;; 20120esac 20121 PKG_CONFIG=$ac_pt_PKG_CONFIG 20122 fi 20123else 20124 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20125fi 20126 20127fi 20128if test -n "$PKG_CONFIG"; then 20129 _pkg_min_version=0.9.0 20130 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20131$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20132 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20133 { $as_echo "$as_me:$LINENO: result: yes" >&5 20134$as_echo "yes" >&6; } 20135 else 20136 { $as_echo "$as_me:$LINENO: result: no" >&5 20137$as_echo "no" >&6; } 20138 PKG_CONFIG="" 20139 fi 20140 20141fi 20142 20143# 20144# fix libtool to set SONAME to libXaw.so.$major 20145# 20146{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 20147$as_echo_n "checking for a sed that does not truncate output... " >&6; } 20148if test "${ac_cv_path_SED+set}" = set; then 20149 $as_echo_n "(cached) " >&6 20150else 20151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 20152 for ac_i in 1 2 3 4 5 6 7; do 20153 ac_script="$ac_script$as_nl$ac_script" 20154 done 20155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 20156 $as_unset ac_script || ac_script= 20157 if test -z "$SED"; then 20158 ac_path_SED_found=false 20159 # Loop through the user's path and test for each of PROGNAME-LIST 20160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20161for as_dir in $PATH 20162do 20163 IFS=$as_save_IFS 20164 test -z "$as_dir" && as_dir=. 20165 for ac_prog in sed gsed; do 20166 for ac_exec_ext in '' $ac_executable_extensions; do 20167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 20168 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 20169# Check for GNU ac_path_SED and select it if it is found. 20170 # Check for GNU $ac_path_SED 20171case `"$ac_path_SED" --version 2>&1` in 20172*GNU*) 20173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 20174*) 20175 ac_count=0 20176 $as_echo_n 0123456789 >"conftest.in" 20177 while : 20178 do 20179 cat "conftest.in" "conftest.in" >"conftest.tmp" 20180 mv "conftest.tmp" "conftest.in" 20181 cp "conftest.in" "conftest.nl" 20182 $as_echo '' >> "conftest.nl" 20183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 20184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 20185 ac_count=`expr $ac_count + 1` 20186 if test $ac_count -gt ${ac_path_SED_max-0}; then 20187 # Best one so far, save it but keep looking for a better one 20188 ac_cv_path_SED="$ac_path_SED" 20189 ac_path_SED_max=$ac_count 20190 fi 20191 # 10*(2^10) chars as input seems more than enough 20192 test $ac_count -gt 10 && break 20193 done 20194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 20195esac 20196 20197 $ac_path_SED_found && break 3 20198 done 20199 done 20200done 20201IFS=$as_save_IFS 20202 if test -z "$ac_cv_path_SED"; then 20203 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 20204$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 20205 { (exit 1); exit 1; }; } 20206 fi 20207else 20208 ac_cv_path_SED=$SED 20209fi 20210 20211fi 20212{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 20213$as_echo "$ac_cv_path_SED" >&6; } 20214 SED="$ac_cv_path_SED" 20215 rm -f conftest.sed 20216 20217ac_config_commands="$ac_config_commands libtool_hack" 20218 20219 20220# Win32 DLL rules are different. 20221case $host_os in 20222 cygwin*|mingw*) 20223 platform_win32=yes 20224 ;; 20225 *) 20226 platform_win32=no 20227 ;; 20228esac 20229 if test "x$platform_win32" = "xyes"; then 20230 PLATFORM_WIN32_TRUE= 20231 PLATFORM_WIN32_FALSE='#' 20232else 20233 PLATFORM_WIN32_TRUE='#' 20234 PLATFORM_WIN32_FALSE= 20235fi 20236 20237 20238# Whether to build Xaw6 20239 20240# Check whether --enable-xaw6 was given. 20241if test "${enable_xaw6+set}" = set; then 20242 enableval=$enable_xaw6; build_v6=$enableval 20243else 20244 build_v6=yes 20245fi 20246 20247 20248if test "x$build_v6" = xyes; then 20249 20250pkg_failed=no 20251{ $as_echo "$as_me:$LINENO: checking for XAW6" >&5 20252$as_echo_n "checking for XAW6... " >&6; } 20253 20254if test -n "$XAW6_CFLAGS"; then 20255 pkg_cv_XAW6_CFLAGS="$XAW6_CFLAGS" 20256 elif test -n "$PKG_CONFIG"; then 20257 if test -n "$PKG_CONFIG" && \ 20258 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\"") >&5 20259 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5 20260 ac_status=$? 20261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20262 (exit $ac_status); }; then 20263 pkg_cv_XAW6_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu" 2>/dev/null` 20264else 20265 pkg_failed=yes 20266fi 20267 else 20268 pkg_failed=untried 20269fi 20270if test -n "$XAW6_LIBS"; then 20271 pkg_cv_XAW6_LIBS="$XAW6_LIBS" 20272 elif test -n "$PKG_CONFIG"; then 20273 if test -n "$PKG_CONFIG" && \ 20274 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu\"") >&5 20275 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu") 2>&5 20276 ac_status=$? 20277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20278 (exit $ac_status); }; then 20279 pkg_cv_XAW6_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu" 2>/dev/null` 20280else 20281 pkg_failed=yes 20282fi 20283 else 20284 pkg_failed=untried 20285fi 20286 20287 20288 20289if test $pkg_failed = yes; then 20290 20291if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20292 _pkg_short_errors_supported=yes 20293else 20294 _pkg_short_errors_supported=no 20295fi 20296 if test $_pkg_short_errors_supported = yes; then 20297 XAW6_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu" 2>&1` 20298 else 20299 XAW6_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu" 2>&1` 20300 fi 20301 # Put the nasty error message in config.log where it belongs 20302 echo "$XAW6_PKG_ERRORS" >&5 20303 20304 { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto x11 xext xextproto xt xmu) were not met: 20305 20306$XAW6_PKG_ERRORS 20307 20308Consider adjusting the PKG_CONFIG_PATH environment variable if you 20309installed software in a non-standard prefix. 20310 20311Alternatively, you may set the environment variables XAW6_CFLAGS 20312and XAW6_LIBS to avoid the need to call pkg-config. 20313See the pkg-config man page for more details. 20314" >&5 20315$as_echo "$as_me: error: Package requirements (xproto x11 xext xextproto xt xmu) were not met: 20316 20317$XAW6_PKG_ERRORS 20318 20319Consider adjusting the PKG_CONFIG_PATH environment variable if you 20320installed software in a non-standard prefix. 20321 20322Alternatively, you may set the environment variables XAW6_CFLAGS 20323and XAW6_LIBS to avoid the need to call pkg-config. 20324See the pkg-config man page for more details. 20325" >&2;} 20326 { (exit 1); exit 1; }; } 20327elif test $pkg_failed = untried; then 20328 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20330{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20331is in your PATH or set the PKG_CONFIG environment variable to the full 20332path to pkg-config. 20333 20334Alternatively, you may set the environment variables XAW6_CFLAGS 20335and XAW6_LIBS to avoid the need to call pkg-config. 20336See the pkg-config man page for more details. 20337 20338To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20339See \`config.log' for more details." >&5 20340$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20341is in your PATH or set the PKG_CONFIG environment variable to the full 20342path to pkg-config. 20343 20344Alternatively, you may set the environment variables XAW6_CFLAGS 20345and XAW6_LIBS to avoid the need to call pkg-config. 20346See the pkg-config man page for more details. 20347 20348To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20349See \`config.log' for more details." >&2;} 20350 { (exit 1); exit 1; }; }; } 20351else 20352 XAW6_CFLAGS=$pkg_cv_XAW6_CFLAGS 20353 XAW6_LIBS=$pkg_cv_XAW6_LIBS 20354 { $as_echo "$as_me:$LINENO: result: yes" >&5 20355$as_echo "yes" >&6; } 20356 : 20357fi 20358 20359 20360 20361fi 20362 20363 20364# Whether to build Xaw7 20365 20366# Check whether --enable-xaw7 was given. 20367if test "${enable_xaw7+set}" = set; then 20368 enableval=$enable_xaw7; build_v7=$enableval 20369else 20370 build_v7=yes 20371fi 20372 20373 20374if test "x$build_v7" = xyes; then 20375 20376pkg_failed=no 20377{ $as_echo "$as_me:$LINENO: checking for XAW7" >&5 20378$as_echo_n "checking for XAW7... " >&6; } 20379 20380if test -n "$XAW7_CFLAGS"; then 20381 pkg_cv_XAW7_CFLAGS="$XAW7_CFLAGS" 20382 elif test -n "$PKG_CONFIG"; then 20383 if test -n "$PKG_CONFIG" && \ 20384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\"") >&5 20385 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5 20386 ac_status=$? 20387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20388 (exit $ac_status); }; then 20389 pkg_cv_XAW7_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null` 20390else 20391 pkg_failed=yes 20392fi 20393 else 20394 pkg_failed=untried 20395fi 20396if test -n "$XAW7_LIBS"; then 20397 pkg_cv_XAW7_LIBS="$XAW7_LIBS" 20398 elif test -n "$PKG_CONFIG"; then 20399 if test -n "$PKG_CONFIG" && \ 20400 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xext xextproto xt xmu xpm\"") >&5 20401 ($PKG_CONFIG --exists --print-errors "xproto x11 xext xextproto xt xmu xpm") 2>&5 20402 ac_status=$? 20403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20404 (exit $ac_status); }; then 20405 pkg_cv_XAW7_LIBS=`$PKG_CONFIG --libs "xproto x11 xext xextproto xt xmu xpm" 2>/dev/null` 20406else 20407 pkg_failed=yes 20408fi 20409 else 20410 pkg_failed=untried 20411fi 20412 20413 20414 20415if test $pkg_failed = yes; then 20416 20417if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20418 _pkg_short_errors_supported=yes 20419else 20420 _pkg_short_errors_supported=no 20421fi 20422 if test $_pkg_short_errors_supported = yes; then 20423 XAW7_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1` 20424 else 20425 XAW7_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xext xextproto xt xmu xpm" 2>&1` 20426 fi 20427 # Put the nasty error message in config.log where it belongs 20428 echo "$XAW7_PKG_ERRORS" >&5 20429 20430 { { $as_echo "$as_me:$LINENO: error: Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met: 20431 20432$XAW7_PKG_ERRORS 20433 20434Consider adjusting the PKG_CONFIG_PATH environment variable if you 20435installed software in a non-standard prefix. 20436 20437Alternatively, you may set the environment variables XAW7_CFLAGS 20438and XAW7_LIBS to avoid the need to call pkg-config. 20439See the pkg-config man page for more details. 20440" >&5 20441$as_echo "$as_me: error: Package requirements (xproto x11 xext xextproto xt xmu xpm) were not met: 20442 20443$XAW7_PKG_ERRORS 20444 20445Consider adjusting the PKG_CONFIG_PATH environment variable if you 20446installed software in a non-standard prefix. 20447 20448Alternatively, you may set the environment variables XAW7_CFLAGS 20449and XAW7_LIBS to avoid the need to call pkg-config. 20450See the pkg-config man page for more details. 20451" >&2;} 20452 { (exit 1); exit 1; }; } 20453elif test $pkg_failed = untried; then 20454 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 20455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20456{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20457is in your PATH or set the PKG_CONFIG environment variable to the full 20458path to pkg-config. 20459 20460Alternatively, you may set the environment variables XAW7_CFLAGS 20461and XAW7_LIBS to avoid the need to call pkg-config. 20462See the pkg-config man page for more details. 20463 20464To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20465See \`config.log' for more details." >&5 20466$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20467is in your PATH or set the PKG_CONFIG environment variable to the full 20468path to pkg-config. 20469 20470Alternatively, you may set the environment variables XAW7_CFLAGS 20471and XAW7_LIBS to avoid the need to call pkg-config. 20472See the pkg-config man page for more details. 20473 20474To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20475See \`config.log' for more details." >&2;} 20476 { (exit 1); exit 1; }; }; } 20477else 20478 XAW7_CFLAGS=$pkg_cv_XAW7_CFLAGS 20479 XAW7_LIBS=$pkg_cv_XAW7_LIBS 20480 { $as_echo "$as_me:$LINENO: result: yes" >&5 20481$as_echo "yes" >&6; } 20482 : 20483fi 20484 20485 20486 20487fi 20488 20489 20490 if test x$build_v6 = xyes; then 20491 BUILD_XAW6_TRUE= 20492 BUILD_XAW6_FALSE='#' 20493else 20494 BUILD_XAW6_TRUE='#' 20495 BUILD_XAW6_FALSE= 20496fi 20497 20498 if test x$build_v7 = xyes; then 20499 BUILD_XAW7_TRUE= 20500 BUILD_XAW7_FALSE='#' 20501else 20502 BUILD_XAW7_TRUE='#' 20503 BUILD_XAW7_FALSE= 20504fi 20505 20506 20507# Checks for header files. 20508{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20509$as_echo_n "checking for ANSI C header files... " >&6; } 20510if test "${ac_cv_header_stdc+set}" = set; then 20511 $as_echo_n "(cached) " >&6 20512else 20513 cat >conftest.$ac_ext <<_ACEOF 20514/* confdefs.h. */ 20515_ACEOF 20516cat confdefs.h >>conftest.$ac_ext 20517cat >>conftest.$ac_ext <<_ACEOF 20518/* end confdefs.h. */ 20519#include <stdlib.h> 20520#include <stdarg.h> 20521#include <string.h> 20522#include <float.h> 20523 20524int 20525main () 20526{ 20527 20528 ; 20529 return 0; 20530} 20531_ACEOF 20532rm -f conftest.$ac_objext 20533if { (ac_try="$ac_compile" 20534case "(($ac_try" in 20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20536 *) ac_try_echo=$ac_try;; 20537esac 20538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20539$as_echo "$ac_try_echo") >&5 20540 (eval "$ac_compile") 2>conftest.er1 20541 ac_status=$? 20542 grep -v '^ *+' conftest.er1 >conftest.err 20543 rm -f conftest.er1 20544 cat conftest.err >&5 20545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20546 (exit $ac_status); } && { 20547 test -z "$ac_c_werror_flag" || 20548 test ! -s conftest.err 20549 } && test -s conftest.$ac_objext; then 20550 ac_cv_header_stdc=yes 20551else 20552 $as_echo "$as_me: failed program was:" >&5 20553sed 's/^/| /' conftest.$ac_ext >&5 20554 20555 ac_cv_header_stdc=no 20556fi 20557 20558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20559 20560if test $ac_cv_header_stdc = yes; then 20561 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20562 cat >conftest.$ac_ext <<_ACEOF 20563/* confdefs.h. */ 20564_ACEOF 20565cat confdefs.h >>conftest.$ac_ext 20566cat >>conftest.$ac_ext <<_ACEOF 20567/* end confdefs.h. */ 20568#include <string.h> 20569 20570_ACEOF 20571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20572 $EGREP "memchr" >/dev/null 2>&1; then 20573 : 20574else 20575 ac_cv_header_stdc=no 20576fi 20577rm -f conftest* 20578 20579fi 20580 20581if test $ac_cv_header_stdc = yes; then 20582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20583 cat >conftest.$ac_ext <<_ACEOF 20584/* confdefs.h. */ 20585_ACEOF 20586cat confdefs.h >>conftest.$ac_ext 20587cat >>conftest.$ac_ext <<_ACEOF 20588/* end confdefs.h. */ 20589#include <stdlib.h> 20590 20591_ACEOF 20592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20593 $EGREP "free" >/dev/null 2>&1; then 20594 : 20595else 20596 ac_cv_header_stdc=no 20597fi 20598rm -f conftest* 20599 20600fi 20601 20602if test $ac_cv_header_stdc = yes; then 20603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20604 if test "$cross_compiling" = yes; then 20605 : 20606else 20607 cat >conftest.$ac_ext <<_ACEOF 20608/* confdefs.h. */ 20609_ACEOF 20610cat confdefs.h >>conftest.$ac_ext 20611cat >>conftest.$ac_ext <<_ACEOF 20612/* end confdefs.h. */ 20613#include <ctype.h> 20614#include <stdlib.h> 20615#if ((' ' & 0x0FF) == 0x020) 20616# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20617# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20618#else 20619# define ISLOWER(c) \ 20620 (('a' <= (c) && (c) <= 'i') \ 20621 || ('j' <= (c) && (c) <= 'r') \ 20622 || ('s' <= (c) && (c) <= 'z')) 20623# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20624#endif 20625 20626#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20627int 20628main () 20629{ 20630 int i; 20631 for (i = 0; i < 256; i++) 20632 if (XOR (islower (i), ISLOWER (i)) 20633 || toupper (i) != TOUPPER (i)) 20634 return 2; 20635 return 0; 20636} 20637_ACEOF 20638rm -f conftest$ac_exeext 20639if { (ac_try="$ac_link" 20640case "(($ac_try" in 20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20642 *) ac_try_echo=$ac_try;; 20643esac 20644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20645$as_echo "$ac_try_echo") >&5 20646 (eval "$ac_link") 2>&5 20647 ac_status=$? 20648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20650 { (case "(($ac_try" in 20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20652 *) ac_try_echo=$ac_try;; 20653esac 20654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20655$as_echo "$ac_try_echo") >&5 20656 (eval "$ac_try") 2>&5 20657 ac_status=$? 20658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20659 (exit $ac_status); }; }; then 20660 : 20661else 20662 $as_echo "$as_me: program exited with status $ac_status" >&5 20663$as_echo "$as_me: failed program was:" >&5 20664sed 's/^/| /' conftest.$ac_ext >&5 20665 20666( exit $ac_status ) 20667ac_cv_header_stdc=no 20668fi 20669rm -rf conftest.dSYM 20670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20671fi 20672 20673 20674fi 20675fi 20676{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20677$as_echo "$ac_cv_header_stdc" >&6; } 20678if test $ac_cv_header_stdc = yes; then 20679 20680cat >>confdefs.h <<\_ACEOF 20681#define STDC_HEADERS 1 20682_ACEOF 20683 20684fi 20685 20686if test "${ac_cv_header_wctype_h+set}" = set; then 20687 { $as_echo "$as_me:$LINENO: checking for wctype.h" >&5 20688$as_echo_n "checking for wctype.h... " >&6; } 20689if test "${ac_cv_header_wctype_h+set}" = set; then 20690 $as_echo_n "(cached) " >&6 20691fi 20692{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wctype_h" >&5 20693$as_echo "$ac_cv_header_wctype_h" >&6; } 20694else 20695 # Is the header compilable? 20696{ $as_echo "$as_me:$LINENO: checking wctype.h usability" >&5 20697$as_echo_n "checking wctype.h usability... " >&6; } 20698cat >conftest.$ac_ext <<_ACEOF 20699/* confdefs.h. */ 20700_ACEOF 20701cat confdefs.h >>conftest.$ac_ext 20702cat >>conftest.$ac_ext <<_ACEOF 20703/* end confdefs.h. */ 20704$ac_includes_default 20705#include <wctype.h> 20706_ACEOF 20707rm -f conftest.$ac_objext 20708if { (ac_try="$ac_compile" 20709case "(($ac_try" in 20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20711 *) ac_try_echo=$ac_try;; 20712esac 20713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20714$as_echo "$ac_try_echo") >&5 20715 (eval "$ac_compile") 2>conftest.er1 20716 ac_status=$? 20717 grep -v '^ *+' conftest.er1 >conftest.err 20718 rm -f conftest.er1 20719 cat conftest.err >&5 20720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20721 (exit $ac_status); } && { 20722 test -z "$ac_c_werror_flag" || 20723 test ! -s conftest.err 20724 } && test -s conftest.$ac_objext; then 20725 ac_header_compiler=yes 20726else 20727 $as_echo "$as_me: failed program was:" >&5 20728sed 's/^/| /' conftest.$ac_ext >&5 20729 20730 ac_header_compiler=no 20731fi 20732 20733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20734{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20735$as_echo "$ac_header_compiler" >&6; } 20736 20737# Is the header present? 20738{ $as_echo "$as_me:$LINENO: checking wctype.h presence" >&5 20739$as_echo_n "checking wctype.h presence... " >&6; } 20740cat >conftest.$ac_ext <<_ACEOF 20741/* confdefs.h. */ 20742_ACEOF 20743cat confdefs.h >>conftest.$ac_ext 20744cat >>conftest.$ac_ext <<_ACEOF 20745/* end confdefs.h. */ 20746#include <wctype.h> 20747_ACEOF 20748if { (ac_try="$ac_cpp conftest.$ac_ext" 20749case "(($ac_try" in 20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20751 *) ac_try_echo=$ac_try;; 20752esac 20753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20754$as_echo "$ac_try_echo") >&5 20755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20756 ac_status=$? 20757 grep -v '^ *+' conftest.er1 >conftest.err 20758 rm -f conftest.er1 20759 cat conftest.err >&5 20760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20761 (exit $ac_status); } >/dev/null && { 20762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20763 test ! -s conftest.err 20764 }; then 20765 ac_header_preproc=yes 20766else 20767 $as_echo "$as_me: failed program was:" >&5 20768sed 's/^/| /' conftest.$ac_ext >&5 20769 20770 ac_header_preproc=no 20771fi 20772 20773rm -f conftest.err conftest.$ac_ext 20774{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20775$as_echo "$ac_header_preproc" >&6; } 20776 20777# So? What about this header? 20778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20779 yes:no: ) 20780 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: accepted by the compiler, rejected by the preprocessor!" >&5 20781$as_echo "$as_me: WARNING: wctype.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20782 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: proceeding with the compiler's result" >&5 20783$as_echo "$as_me: WARNING: wctype.h: proceeding with the compiler's result" >&2;} 20784 ac_header_preproc=yes 20785 ;; 20786 no:yes:* ) 20787 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: present but cannot be compiled" >&5 20788$as_echo "$as_me: WARNING: wctype.h: present but cannot be compiled" >&2;} 20789 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: check for missing prerequisite headers?" >&5 20790$as_echo "$as_me: WARNING: wctype.h: check for missing prerequisite headers?" >&2;} 20791 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: see the Autoconf documentation" >&5 20792$as_echo "$as_me: WARNING: wctype.h: see the Autoconf documentation" >&2;} 20793 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: section \"Present But Cannot Be Compiled\"" >&5 20794$as_echo "$as_me: WARNING: wctype.h: section \"Present But Cannot Be Compiled\"" >&2;} 20795 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: proceeding with the preprocessor's result" >&5 20796$as_echo "$as_me: WARNING: wctype.h: proceeding with the preprocessor's result" >&2;} 20797 { $as_echo "$as_me:$LINENO: WARNING: wctype.h: in the future, the compiler will take precedence" >&5 20798$as_echo "$as_me: WARNING: wctype.h: in the future, the compiler will take precedence" >&2;} 20799 ( cat <<\_ASBOX 20800## ---------------------------------------------------------------------- ## 20801## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 20802## ---------------------------------------------------------------------- ## 20803_ASBOX 20804 ) | sed "s/^/$as_me: WARNING: /" >&2 20805 ;; 20806esac 20807{ $as_echo "$as_me:$LINENO: checking for wctype.h" >&5 20808$as_echo_n "checking for wctype.h... " >&6; } 20809if test "${ac_cv_header_wctype_h+set}" = set; then 20810 $as_echo_n "(cached) " >&6 20811else 20812 ac_cv_header_wctype_h=$ac_header_preproc 20813fi 20814{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wctype_h" >&5 20815$as_echo "$ac_cv_header_wctype_h" >&6; } 20816 20817fi 20818if test "x$ac_cv_header_wctype_h" = x""yes; then 20819 20820cat >>confdefs.h <<\_ACEOF 20821#define HAS_WCTYPE_H 1 20822_ACEOF 20823 20824fi 20825 20826 20827if test "${ac_cv_header_wchar_h+set}" = set; then 20828 { $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 20829$as_echo_n "checking for wchar.h... " >&6; } 20830if test "${ac_cv_header_wchar_h+set}" = set; then 20831 $as_echo_n "(cached) " >&6 20832fi 20833{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 20834$as_echo "$ac_cv_header_wchar_h" >&6; } 20835else 20836 # Is the header compilable? 20837{ $as_echo "$as_me:$LINENO: checking wchar.h usability" >&5 20838$as_echo_n "checking wchar.h usability... " >&6; } 20839cat >conftest.$ac_ext <<_ACEOF 20840/* confdefs.h. */ 20841_ACEOF 20842cat confdefs.h >>conftest.$ac_ext 20843cat >>conftest.$ac_ext <<_ACEOF 20844/* end confdefs.h. */ 20845$ac_includes_default 20846#include <wchar.h> 20847_ACEOF 20848rm -f conftest.$ac_objext 20849if { (ac_try="$ac_compile" 20850case "(($ac_try" in 20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20852 *) ac_try_echo=$ac_try;; 20853esac 20854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20855$as_echo "$ac_try_echo") >&5 20856 (eval "$ac_compile") 2>conftest.er1 20857 ac_status=$? 20858 grep -v '^ *+' conftest.er1 >conftest.err 20859 rm -f conftest.er1 20860 cat conftest.err >&5 20861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20862 (exit $ac_status); } && { 20863 test -z "$ac_c_werror_flag" || 20864 test ! -s conftest.err 20865 } && test -s conftest.$ac_objext; then 20866 ac_header_compiler=yes 20867else 20868 $as_echo "$as_me: failed program was:" >&5 20869sed 's/^/| /' conftest.$ac_ext >&5 20870 20871 ac_header_compiler=no 20872fi 20873 20874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20875{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20876$as_echo "$ac_header_compiler" >&6; } 20877 20878# Is the header present? 20879{ $as_echo "$as_me:$LINENO: checking wchar.h presence" >&5 20880$as_echo_n "checking wchar.h presence... " >&6; } 20881cat >conftest.$ac_ext <<_ACEOF 20882/* confdefs.h. */ 20883_ACEOF 20884cat confdefs.h >>conftest.$ac_ext 20885cat >>conftest.$ac_ext <<_ACEOF 20886/* end confdefs.h. */ 20887#include <wchar.h> 20888_ACEOF 20889if { (ac_try="$ac_cpp conftest.$ac_ext" 20890case "(($ac_try" in 20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20892 *) ac_try_echo=$ac_try;; 20893esac 20894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20895$as_echo "$ac_try_echo") >&5 20896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20897 ac_status=$? 20898 grep -v '^ *+' conftest.er1 >conftest.err 20899 rm -f conftest.er1 20900 cat conftest.err >&5 20901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20902 (exit $ac_status); } >/dev/null && { 20903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20904 test ! -s conftest.err 20905 }; then 20906 ac_header_preproc=yes 20907else 20908 $as_echo "$as_me: failed program was:" >&5 20909sed 's/^/| /' conftest.$ac_ext >&5 20910 20911 ac_header_preproc=no 20912fi 20913 20914rm -f conftest.err conftest.$ac_ext 20915{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20916$as_echo "$ac_header_preproc" >&6; } 20917 20918# So? What about this header? 20919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20920 yes:no: ) 20921 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 20922$as_echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20923 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 20924$as_echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} 20925 ac_header_preproc=yes 20926 ;; 20927 no:yes:* ) 20928 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 20929$as_echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} 20930 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 20931$as_echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} 20932 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 20933$as_echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} 20934 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 20935$as_echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;} 20936 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 20937$as_echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;} 20938 { $as_echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 20939$as_echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;} 20940 ( cat <<\_ASBOX 20941## ---------------------------------------------------------------------- ## 20942## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 20943## ---------------------------------------------------------------------- ## 20944_ASBOX 20945 ) | sed "s/^/$as_me: WARNING: /" >&2 20946 ;; 20947esac 20948{ $as_echo "$as_me:$LINENO: checking for wchar.h" >&5 20949$as_echo_n "checking for wchar.h... " >&6; } 20950if test "${ac_cv_header_wchar_h+set}" = set; then 20951 $as_echo_n "(cached) " >&6 20952else 20953 ac_cv_header_wchar_h=$ac_header_preproc 20954fi 20955{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 20956$as_echo "$ac_cv_header_wchar_h" >&6; } 20957 20958fi 20959if test "x$ac_cv_header_wchar_h" = x""yes; then 20960 20961cat >>confdefs.h <<\_ACEOF 20962#define HAS_WCHAR_H 1 20963_ACEOF 20964 20965fi 20966 20967 20968if test "${ac_cv_header_widec_h+set}" = set; then 20969 { $as_echo "$as_me:$LINENO: checking for widec.h" >&5 20970$as_echo_n "checking for widec.h... " >&6; } 20971if test "${ac_cv_header_widec_h+set}" = set; then 20972 $as_echo_n "(cached) " >&6 20973fi 20974{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5 20975$as_echo "$ac_cv_header_widec_h" >&6; } 20976else 20977 # Is the header compilable? 20978{ $as_echo "$as_me:$LINENO: checking widec.h usability" >&5 20979$as_echo_n "checking widec.h usability... " >&6; } 20980cat >conftest.$ac_ext <<_ACEOF 20981/* confdefs.h. */ 20982_ACEOF 20983cat confdefs.h >>conftest.$ac_ext 20984cat >>conftest.$ac_ext <<_ACEOF 20985/* end confdefs.h. */ 20986$ac_includes_default 20987#include <widec.h> 20988_ACEOF 20989rm -f conftest.$ac_objext 20990if { (ac_try="$ac_compile" 20991case "(($ac_try" in 20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20993 *) ac_try_echo=$ac_try;; 20994esac 20995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20996$as_echo "$ac_try_echo") >&5 20997 (eval "$ac_compile") 2>conftest.er1 20998 ac_status=$? 20999 grep -v '^ *+' conftest.er1 >conftest.err 21000 rm -f conftest.er1 21001 cat conftest.err >&5 21002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21003 (exit $ac_status); } && { 21004 test -z "$ac_c_werror_flag" || 21005 test ! -s conftest.err 21006 } && test -s conftest.$ac_objext; then 21007 ac_header_compiler=yes 21008else 21009 $as_echo "$as_me: failed program was:" >&5 21010sed 's/^/| /' conftest.$ac_ext >&5 21011 21012 ac_header_compiler=no 21013fi 21014 21015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21016{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21017$as_echo "$ac_header_compiler" >&6; } 21018 21019# Is the header present? 21020{ $as_echo "$as_me:$LINENO: checking widec.h presence" >&5 21021$as_echo_n "checking widec.h presence... " >&6; } 21022cat >conftest.$ac_ext <<_ACEOF 21023/* confdefs.h. */ 21024_ACEOF 21025cat confdefs.h >>conftest.$ac_ext 21026cat >>conftest.$ac_ext <<_ACEOF 21027/* end confdefs.h. */ 21028#include <widec.h> 21029_ACEOF 21030if { (ac_try="$ac_cpp conftest.$ac_ext" 21031case "(($ac_try" in 21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21033 *) ac_try_echo=$ac_try;; 21034esac 21035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21036$as_echo "$ac_try_echo") >&5 21037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21038 ac_status=$? 21039 grep -v '^ *+' conftest.er1 >conftest.err 21040 rm -f conftest.er1 21041 cat conftest.err >&5 21042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21043 (exit $ac_status); } >/dev/null && { 21044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21045 test ! -s conftest.err 21046 }; then 21047 ac_header_preproc=yes 21048else 21049 $as_echo "$as_me: failed program was:" >&5 21050sed 's/^/| /' conftest.$ac_ext >&5 21051 21052 ac_header_preproc=no 21053fi 21054 21055rm -f conftest.err conftest.$ac_ext 21056{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21057$as_echo "$ac_header_preproc" >&6; } 21058 21059# So? What about this header? 21060case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21061 yes:no: ) 21062 { $as_echo "$as_me:$LINENO: WARNING: widec.h: accepted by the compiler, rejected by the preprocessor!" >&5 21063$as_echo "$as_me: WARNING: widec.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21064 { $as_echo "$as_me:$LINENO: WARNING: widec.h: proceeding with the compiler's result" >&5 21065$as_echo "$as_me: WARNING: widec.h: proceeding with the compiler's result" >&2;} 21066 ac_header_preproc=yes 21067 ;; 21068 no:yes:* ) 21069 { $as_echo "$as_me:$LINENO: WARNING: widec.h: present but cannot be compiled" >&5 21070$as_echo "$as_me: WARNING: widec.h: present but cannot be compiled" >&2;} 21071 { $as_echo "$as_me:$LINENO: WARNING: widec.h: check for missing prerequisite headers?" >&5 21072$as_echo "$as_me: WARNING: widec.h: check for missing prerequisite headers?" >&2;} 21073 { $as_echo "$as_me:$LINENO: WARNING: widec.h: see the Autoconf documentation" >&5 21074$as_echo "$as_me: WARNING: widec.h: see the Autoconf documentation" >&2;} 21075 { $as_echo "$as_me:$LINENO: WARNING: widec.h: section \"Present But Cannot Be Compiled\"" >&5 21076$as_echo "$as_me: WARNING: widec.h: section \"Present But Cannot Be Compiled\"" >&2;} 21077 { $as_echo "$as_me:$LINENO: WARNING: widec.h: proceeding with the preprocessor's result" >&5 21078$as_echo "$as_me: WARNING: widec.h: proceeding with the preprocessor's result" >&2;} 21079 { $as_echo "$as_me:$LINENO: WARNING: widec.h: in the future, the compiler will take precedence" >&5 21080$as_echo "$as_me: WARNING: widec.h: in the future, the compiler will take precedence" >&2;} 21081 ( cat <<\_ASBOX 21082## ---------------------------------------------------------------------- ## 21083## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21084## ---------------------------------------------------------------------- ## 21085_ASBOX 21086 ) | sed "s/^/$as_me: WARNING: /" >&2 21087 ;; 21088esac 21089{ $as_echo "$as_me:$LINENO: checking for widec.h" >&5 21090$as_echo_n "checking for widec.h... " >&6; } 21091if test "${ac_cv_header_widec_h+set}" = set; then 21092 $as_echo_n "(cached) " >&6 21093else 21094 ac_cv_header_widec_h=$ac_header_preproc 21095fi 21096{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5 21097$as_echo "$ac_cv_header_widec_h" >&6; } 21098 21099fi 21100if test "x$ac_cv_header_widec_h" = x""yes; then 21101 : 21102else 21103 21104cat >>confdefs.h <<\_ACEOF 21105#define NO_WIDEC_H 1 21106_ACEOF 21107 21108fi 21109 21110 21111 21112# Checks for functions 21113 21114for ac_func in iswalnum 21115do 21116as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21117{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 21118$as_echo_n "checking for $ac_func... " >&6; } 21119if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21120 $as_echo_n "(cached) " >&6 21121else 21122 cat >conftest.$ac_ext <<_ACEOF 21123/* confdefs.h. */ 21124_ACEOF 21125cat confdefs.h >>conftest.$ac_ext 21126cat >>conftest.$ac_ext <<_ACEOF 21127/* end confdefs.h. */ 21128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21129 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21130#define $ac_func innocuous_$ac_func 21131 21132/* System header to define __stub macros and hopefully few prototypes, 21133 which can conflict with char $ac_func (); below. 21134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21135 <limits.h> exists even on freestanding compilers. */ 21136 21137#ifdef __STDC__ 21138# include <limits.h> 21139#else 21140# include <assert.h> 21141#endif 21142 21143#undef $ac_func 21144 21145/* Override any GCC internal prototype to avoid an error. 21146 Use char because int might match the return type of a GCC 21147 builtin and then its argument prototype would still apply. */ 21148#ifdef __cplusplus 21149extern "C" 21150#endif 21151char $ac_func (); 21152/* The GNU C library defines this for functions which it implements 21153 to always fail with ENOSYS. Some functions are actually named 21154 something starting with __ and the normal name is an alias. */ 21155#if defined __stub_$ac_func || defined __stub___$ac_func 21156choke me 21157#endif 21158 21159int 21160main () 21161{ 21162return $ac_func (); 21163 ; 21164 return 0; 21165} 21166_ACEOF 21167rm -f conftest.$ac_objext conftest$ac_exeext 21168if { (ac_try="$ac_link" 21169case "(($ac_try" in 21170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21171 *) ac_try_echo=$ac_try;; 21172esac 21173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 21174$as_echo "$ac_try_echo") >&5 21175 (eval "$ac_link") 2>conftest.er1 21176 ac_status=$? 21177 grep -v '^ *+' conftest.er1 >conftest.err 21178 rm -f conftest.er1 21179 cat conftest.err >&5 21180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 21181 (exit $ac_status); } && { 21182 test -z "$ac_c_werror_flag" || 21183 test ! -s conftest.err 21184 } && test -s conftest$ac_exeext && { 21185 test "$cross_compiling" = yes || 21186 $as_test_x conftest$ac_exeext 21187 }; then 21188 eval "$as_ac_var=yes" 21189else 21190 $as_echo "$as_me: failed program was:" >&5 21191sed 's/^/| /' conftest.$ac_ext >&5 21192 21193 eval "$as_ac_var=no" 21194fi 21195 21196rm -rf conftest.dSYM 21197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21198 conftest$ac_exeext conftest.$ac_ext 21199fi 21200ac_res=`eval 'as_val=${'$as_ac_var'} 21201 $as_echo "$as_val"'` 21202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 21203$as_echo "$ac_res" >&6; } 21204as_val=`eval 'as_val=${'$as_ac_var'} 21205 $as_echo "$as_val"'` 21206 if test "x$as_val" = x""yes; then 21207 cat >>confdefs.h <<_ACEOF 21208#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21209_ACEOF 21210 21211fi 21212done 21213 21214 21215 21216 21217 21218if test x$APP_MAN_SUFFIX = x ; then 21219 APP_MAN_SUFFIX=1 21220fi 21221if test x$APP_MAN_DIR = x ; then 21222 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21223fi 21224 21225if test x$LIB_MAN_SUFFIX = x ; then 21226 LIB_MAN_SUFFIX=3 21227fi 21228if test x$LIB_MAN_DIR = x ; then 21229 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 21230fi 21231 21232if test x$FILE_MAN_SUFFIX = x ; then 21233 case $host_os in 21234 solaris*) FILE_MAN_SUFFIX=4 ;; 21235 *) FILE_MAN_SUFFIX=5 ;; 21236 esac 21237fi 21238if test x$FILE_MAN_DIR = x ; then 21239 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 21240fi 21241 21242if test x$MISC_MAN_SUFFIX = x ; then 21243 case $host_os in 21244 solaris*) MISC_MAN_SUFFIX=5 ;; 21245 *) MISC_MAN_SUFFIX=7 ;; 21246 esac 21247fi 21248if test x$MISC_MAN_DIR = x ; then 21249 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 21250fi 21251 21252if test x$DRIVER_MAN_SUFFIX = x ; then 21253 case $host_os in 21254 solaris*) DRIVER_MAN_SUFFIX=7 ;; 21255 *) DRIVER_MAN_SUFFIX=4 ;; 21256 esac 21257fi 21258if test x$DRIVER_MAN_DIR = x ; then 21259 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 21260fi 21261 21262if test x$ADMIN_MAN_SUFFIX = x ; then 21263 case $host_os in 21264 solaris*) ADMIN_MAN_SUFFIX=1m ;; 21265 *) ADMIN_MAN_SUFFIX=8 ;; 21266 esac 21267fi 21268if test x$ADMIN_MAN_DIR = x ; then 21269 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 21270fi 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288# Check whether --with-release-version was given. 21289if test "${with_release_version+set}" = set; then 21290 withval=$with_release_version; RELEASE_VERSION="$withval" 21291else 21292 RELEASE_VERSION="" 21293fi 21294 21295 if test "x$RELEASE_VERSION" != "x"; then 21296 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21297 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21298 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21299$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21300 fi 21301 21302cat >>confdefs.h <<_ACEOF 21303#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21304_ACEOF 21305 21306 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21307 if test "x$PVM" = "x"; then 21308 PVM="0" 21309 fi 21310 21311cat >>confdefs.h <<_ACEOF 21312#define PACKAGE_VERSION_MINOR $PVM 21313_ACEOF 21314 21315 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21316 if test "x$PVP" = "x"; then 21317 PVP="0" 21318 fi 21319 21320cat >>confdefs.h <<_ACEOF 21321#define PACKAGE_VERSION_PATCHLEVEL $PVP 21322_ACEOF 21323 21324 21325 21326ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile" 21327 21328cat >confcache <<\_ACEOF 21329# This file is a shell script that caches the results of configure 21330# tests run on this system so they can be shared between configure 21331# scripts and configure runs, see configure's option --config-cache. 21332# It is not useful on other systems. If it contains results you don't 21333# want to keep, you may remove or edit it. 21334# 21335# config.status only pays attention to the cache file if you give it 21336# the --recheck option to rerun configure. 21337# 21338# `ac_cv_env_foo' variables (set or unset) will be overridden when 21339# loading this file, other *unset* `ac_cv_foo' will be assigned the 21340# following values. 21341 21342_ACEOF 21343 21344# The following way of writing the cache mishandles newlines in values, 21345# but we know of no workaround that is simple, portable, and efficient. 21346# So, we kill variables containing newlines. 21347# Ultrix sh set writes to stderr and can't be redirected directly, 21348# and sets the high bit in the cache file unless we assign to the vars. 21349( 21350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21351 eval ac_val=\$$ac_var 21352 case $ac_val in #( 21353 *${as_nl}*) 21354 case $ac_var in #( 21355 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 21356$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21357 esac 21358 case $ac_var in #( 21359 _ | IFS | as_nl) ;; #( 21360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21361 *) $as_unset $ac_var ;; 21362 esac ;; 21363 esac 21364 done 21365 21366 (set) 2>&1 | 21367 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21368 *${as_nl}ac_space=\ *) 21369 # `set' does not quote correctly, so add quotes (double-quote 21370 # substitution turns \\\\ into \\, and sed turns \\ into \). 21371 sed -n \ 21372 "s/'/'\\\\''/g; 21373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21374 ;; #( 21375 *) 21376 # `set' quotes correctly as required by POSIX, so do not add quotes. 21377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21378 ;; 21379 esac | 21380 sort 21381) | 21382 sed ' 21383 /^ac_cv_env_/b end 21384 t clear 21385 :clear 21386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21387 t end 21388 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21389 :end' >>confcache 21390if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21391 if test -w "$cache_file"; then 21392 test "x$cache_file" != "x/dev/null" && 21393 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 21394$as_echo "$as_me: updating cache $cache_file" >&6;} 21395 cat confcache >$cache_file 21396 else 21397 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21398$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21399 fi 21400fi 21401rm -f confcache 21402 21403test "x$prefix" = xNONE && prefix=$ac_default_prefix 21404# Let make expand exec_prefix. 21405test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21406 21407DEFS=-DHAVE_CONFIG_H 21408 21409ac_libobjs= 21410ac_ltlibobjs= 21411for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21412 # 1. Remove the extension, and $U if already installed. 21413 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21414 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21415 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21416 # will be set to the directory where LIBOBJS objects are built. 21417 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21418 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21419done 21420LIBOBJS=$ac_libobjs 21421 21422LTLIBOBJS=$ac_ltlibobjs 21423 21424 21425if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21426 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21427Usually this means the macro was only invoked conditionally." >&5 21428$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 21429Usually this means the macro was only invoked conditionally." >&2;} 21430 { (exit 1); exit 1; }; } 21431fi 21432if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21433 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21434Usually this means the macro was only invoked conditionally." >&5 21435$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21436Usually this means the macro was only invoked conditionally." >&2;} 21437 { (exit 1); exit 1; }; } 21438fi 21439if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21440 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21441Usually this means the macro was only invoked conditionally." >&5 21442$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21443Usually this means the macro was only invoked conditionally." >&2;} 21444 { (exit 1); exit 1; }; } 21445fi 21446if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then 21447 { { $as_echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined. 21448Usually this means the macro was only invoked conditionally." >&5 21449$as_echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined. 21450Usually this means the macro was only invoked conditionally." >&2;} 21451 { (exit 1); exit 1; }; } 21452fi 21453if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then 21454 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XAW6\" was never defined. 21455Usually this means the macro was only invoked conditionally." >&5 21456$as_echo "$as_me: error: conditional \"BUILD_XAW6\" was never defined. 21457Usually this means the macro was only invoked conditionally." >&2;} 21458 { (exit 1); exit 1; }; } 21459fi 21460if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then 21461 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XAW7\" was never defined. 21462Usually this means the macro was only invoked conditionally." >&5 21463$as_echo "$as_me: error: conditional \"BUILD_XAW7\" was never defined. 21464Usually this means the macro was only invoked conditionally." >&2;} 21465 { (exit 1); exit 1; }; } 21466fi 21467 21468: ${CONFIG_STATUS=./config.status} 21469ac_write_fail=0 21470ac_clean_files_save=$ac_clean_files 21471ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21472{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21473$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21474cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21475#! $SHELL 21476# Generated by $as_me. 21477# Run this file to recreate the current configuration. 21478# Compiler output produced by configure, useful for debugging 21479# configure, is in config.log if it exists. 21480 21481debug=false 21482ac_cs_recheck=false 21483ac_cs_silent=false 21484SHELL=\${CONFIG_SHELL-$SHELL} 21485_ACEOF 21486 21487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21488## --------------------- ## 21489## M4sh Initialization. ## 21490## --------------------- ## 21491 21492# Be more Bourne compatible 21493DUALCASE=1; export DUALCASE # for MKS sh 21494if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21495 emulate sh 21496 NULLCMD=: 21497 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21498 # is contrary to our usage. Disable this feature. 21499 alias -g '${1+"$@"}'='"$@"' 21500 setopt NO_GLOB_SUBST 21501else 21502 case `(set -o) 2>/dev/null` in 21503 *posix*) set -o posix ;; 21504esac 21505 21506fi 21507 21508 21509 21510 21511# PATH needs CR 21512# Avoid depending upon Character Ranges. 21513as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21514as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21515as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21516as_cr_digits='0123456789' 21517as_cr_alnum=$as_cr_Letters$as_cr_digits 21518 21519as_nl=' 21520' 21521export as_nl 21522# Printing a long string crashes Solaris 7 /usr/bin/printf. 21523as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21524as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21525as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21526if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21527 as_echo='printf %s\n' 21528 as_echo_n='printf %s' 21529else 21530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21532 as_echo_n='/usr/ucb/echo -n' 21533 else 21534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21535 as_echo_n_body='eval 21536 arg=$1; 21537 case $arg in 21538 *"$as_nl"*) 21539 expr "X$arg" : "X\\(.*\\)$as_nl"; 21540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21541 esac; 21542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21543 ' 21544 export as_echo_n_body 21545 as_echo_n='sh -c $as_echo_n_body as_echo' 21546 fi 21547 export as_echo_body 21548 as_echo='sh -c $as_echo_body as_echo' 21549fi 21550 21551# The user is always right. 21552if test "${PATH_SEPARATOR+set}" != set; then 21553 PATH_SEPARATOR=: 21554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21556 PATH_SEPARATOR=';' 21557 } 21558fi 21559 21560# Support unset when possible. 21561if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21562 as_unset=unset 21563else 21564 as_unset=false 21565fi 21566 21567 21568# IFS 21569# We need space, tab and new line, in precisely that order. Quoting is 21570# there to prevent editors from complaining about space-tab. 21571# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21572# splitting by setting IFS to empty value.) 21573IFS=" "" $as_nl" 21574 21575# Find who we are. Look in the path if we contain no directory separator. 21576case $0 in 21577 *[\\/]* ) as_myself=$0 ;; 21578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21579for as_dir in $PATH 21580do 21581 IFS=$as_save_IFS 21582 test -z "$as_dir" && as_dir=. 21583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21584done 21585IFS=$as_save_IFS 21586 21587 ;; 21588esac 21589# We did not find ourselves, most probably we were run as `sh COMMAND' 21590# in which case we are not to be found in the path. 21591if test "x$as_myself" = x; then 21592 as_myself=$0 21593fi 21594if test ! -f "$as_myself"; then 21595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21596 { (exit 1); exit 1; } 21597fi 21598 21599# Work around bugs in pre-3.0 UWIN ksh. 21600for as_var in ENV MAIL MAILPATH 21601do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21602done 21603PS1='$ ' 21604PS2='> ' 21605PS4='+ ' 21606 21607# NLS nuisances. 21608LC_ALL=C 21609export LC_ALL 21610LANGUAGE=C 21611export LANGUAGE 21612 21613# Required to use basename. 21614if expr a : '\(a\)' >/dev/null 2>&1 && 21615 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21616 as_expr=expr 21617else 21618 as_expr=false 21619fi 21620 21621if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21622 as_basename=basename 21623else 21624 as_basename=false 21625fi 21626 21627 21628# Name of the executable. 21629as_me=`$as_basename -- "$0" || 21630$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21631 X"$0" : 'X\(//\)$' \| \ 21632 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21633$as_echo X/"$0" | 21634 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21635 s//\1/ 21636 q 21637 } 21638 /^X\/\(\/\/\)$/{ 21639 s//\1/ 21640 q 21641 } 21642 /^X\/\(\/\).*/{ 21643 s//\1/ 21644 q 21645 } 21646 s/.*/./; q'` 21647 21648# CDPATH. 21649$as_unset CDPATH 21650 21651 21652 21653 as_lineno_1=$LINENO 21654 as_lineno_2=$LINENO 21655 test "x$as_lineno_1" != "x$as_lineno_2" && 21656 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21657 21658 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21659 # uniformly replaced by the line number. The first 'sed' inserts a 21660 # line-number line after each line using $LINENO; the second 'sed' 21661 # does the real work. The second script uses 'N' to pair each 21662 # line-number line with the line containing $LINENO, and appends 21663 # trailing '-' during substitution so that $LINENO is not a special 21664 # case at line end. 21665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21666 # scripts with optimization help from Paolo Bonzini. Blame Lee 21667 # E. McMahon (1931-1989) for sed's syntax. :-) 21668 sed -n ' 21669 p 21670 /[$]LINENO/= 21671 ' <$as_myself | 21672 sed ' 21673 s/[$]LINENO.*/&-/ 21674 t lineno 21675 b 21676 :lineno 21677 N 21678 :loop 21679 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21680 t loop 21681 s/-\n.*// 21682 ' >$as_me.lineno && 21683 chmod +x "$as_me.lineno" || 21684 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21685 { (exit 1); exit 1; }; } 21686 21687 # Don't try to exec as it changes $[0], causing all sort of problems 21688 # (the dirname of $[0] is not the place where we might find the 21689 # original and so on. Autoconf is especially sensitive to this). 21690 . "./$as_me.lineno" 21691 # Exit status is that of the last command. 21692 exit 21693} 21694 21695 21696if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21697 as_dirname=dirname 21698else 21699 as_dirname=false 21700fi 21701 21702ECHO_C= ECHO_N= ECHO_T= 21703case `echo -n x` in 21704-n*) 21705 case `echo 'x\c'` in 21706 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21707 *) ECHO_C='\c';; 21708 esac;; 21709*) 21710 ECHO_N='-n';; 21711esac 21712if expr a : '\(a\)' >/dev/null 2>&1 && 21713 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21714 as_expr=expr 21715else 21716 as_expr=false 21717fi 21718 21719rm -f conf$$ conf$$.exe conf$$.file 21720if test -d conf$$.dir; then 21721 rm -f conf$$.dir/conf$$.file 21722else 21723 rm -f conf$$.dir 21724 mkdir conf$$.dir 2>/dev/null 21725fi 21726if (echo >conf$$.file) 2>/dev/null; then 21727 if ln -s conf$$.file conf$$ 2>/dev/null; then 21728 as_ln_s='ln -s' 21729 # ... but there are two gotchas: 21730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21732 # In both cases, we have to default to `cp -p'. 21733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21734 as_ln_s='cp -p' 21735 elif ln conf$$.file conf$$ 2>/dev/null; then 21736 as_ln_s=ln 21737 else 21738 as_ln_s='cp -p' 21739 fi 21740else 21741 as_ln_s='cp -p' 21742fi 21743rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21744rmdir conf$$.dir 2>/dev/null 21745 21746if mkdir -p . 2>/dev/null; then 21747 as_mkdir_p=: 21748else 21749 test -d ./-p && rmdir ./-p 21750 as_mkdir_p=false 21751fi 21752 21753if test -x / >/dev/null 2>&1; then 21754 as_test_x='test -x' 21755else 21756 if ls -dL / >/dev/null 2>&1; then 21757 as_ls_L_option=L 21758 else 21759 as_ls_L_option= 21760 fi 21761 as_test_x=' 21762 eval sh -c '\'' 21763 if test -d "$1"; then 21764 test -d "$1/."; 21765 else 21766 case $1 in 21767 -*)set "./$1";; 21768 esac; 21769 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21770 ???[sx]*):;;*)false;;esac;fi 21771 '\'' sh 21772 ' 21773fi 21774as_executable_p=$as_test_x 21775 21776# Sed expression to map a string onto a valid CPP name. 21777as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21778 21779# Sed expression to map a string onto a valid variable name. 21780as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21781 21782 21783exec 6>&1 21784 21785# Save the log message, to keep $[0] and so on meaningful, and to 21786# report actual input values of CONFIG_FILES etc. instead of their 21787# values after options handling. 21788ac_log=" 21789This file was extended by libXaw $as_me 1.0.5, which was 21790generated by GNU Autoconf 2.63. Invocation command line was 21791 21792 CONFIG_FILES = $CONFIG_FILES 21793 CONFIG_HEADERS = $CONFIG_HEADERS 21794 CONFIG_LINKS = $CONFIG_LINKS 21795 CONFIG_COMMANDS = $CONFIG_COMMANDS 21796 $ $0 $@ 21797 21798on `(hostname || uname -n) 2>/dev/null | sed 1q` 21799" 21800 21801_ACEOF 21802 21803case $ac_config_files in *" 21804"*) set x $ac_config_files; shift; ac_config_files=$*;; 21805esac 21806 21807case $ac_config_headers in *" 21808"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21809esac 21810 21811 21812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21813# Files that config.status was made for. 21814config_files="`echo $ac_config_files`" 21815config_headers="`echo $ac_config_headers`" 21816config_commands="`echo $ac_config_commands`" 21817 21818_ACEOF 21819 21820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21821ac_cs_usage="\ 21822\`$as_me' instantiates files from templates according to the 21823current configuration. 21824 21825Usage: $0 [OPTION]... [FILE]... 21826 21827 -h, --help print this help, then exit 21828 -V, --version print version number and configuration settings, then exit 21829 -q, --quiet, --silent 21830 do not print progress messages 21831 -d, --debug don't remove temporary files 21832 --recheck update $as_me by reconfiguring in the same conditions 21833 --file=FILE[:TEMPLATE] 21834 instantiate the configuration file FILE 21835 --header=FILE[:TEMPLATE] 21836 instantiate the configuration header FILE 21837 21838Configuration files: 21839$config_files 21840 21841Configuration headers: 21842$config_headers 21843 21844Configuration commands: 21845$config_commands 21846 21847Report bugs to <bug-autoconf@gnu.org>." 21848 21849_ACEOF 21850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21851ac_cs_version="\\ 21852libXaw config.status 1.0.5 21853configured by $0, generated by GNU Autoconf 2.63, 21854 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21855 21856Copyright (C) 2008 Free Software Foundation, Inc. 21857This config.status script is free software; the Free Software Foundation 21858gives unlimited permission to copy, distribute and modify it." 21859 21860ac_pwd='$ac_pwd' 21861srcdir='$srcdir' 21862INSTALL='$INSTALL' 21863MKDIR_P='$MKDIR_P' 21864AWK='$AWK' 21865test -n "\$AWK" || AWK=awk 21866_ACEOF 21867 21868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21869# The default lists apply if the user does not specify any file. 21870ac_need_defaults=: 21871while test $# != 0 21872do 21873 case $1 in 21874 --*=*) 21875 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21877 ac_shift=: 21878 ;; 21879 *) 21880 ac_option=$1 21881 ac_optarg=$2 21882 ac_shift=shift 21883 ;; 21884 esac 21885 21886 case $ac_option in 21887 # Handling of the options. 21888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21889 ac_cs_recheck=: ;; 21890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21891 $as_echo "$ac_cs_version"; exit ;; 21892 --debug | --debu | --deb | --de | --d | -d ) 21893 debug=: ;; 21894 --file | --fil | --fi | --f ) 21895 $ac_shift 21896 case $ac_optarg in 21897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21898 esac 21899 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21900 ac_need_defaults=false;; 21901 --header | --heade | --head | --hea ) 21902 $ac_shift 21903 case $ac_optarg in 21904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21905 esac 21906 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 21907 ac_need_defaults=false;; 21908 --he | --h) 21909 # Conflict between --help and --header 21910 { $as_echo "$as_me: error: ambiguous option: $1 21911Try \`$0 --help' for more information." >&2 21912 { (exit 1); exit 1; }; };; 21913 --help | --hel | -h ) 21914 $as_echo "$ac_cs_usage"; exit ;; 21915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21916 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21917 ac_cs_silent=: ;; 21918 21919 # This is an error. 21920 -*) { $as_echo "$as_me: error: unrecognized option: $1 21921Try \`$0 --help' for more information." >&2 21922 { (exit 1); exit 1; }; } ;; 21923 21924 *) ac_config_targets="$ac_config_targets $1" 21925 ac_need_defaults=false ;; 21926 21927 esac 21928 shift 21929done 21930 21931ac_configure_extra_args= 21932 21933if $ac_cs_silent; then 21934 exec 6>/dev/null 21935 ac_configure_extra_args="$ac_configure_extra_args --silent" 21936fi 21937 21938_ACEOF 21939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21940if \$ac_cs_recheck; then 21941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21942 shift 21943 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21944 CONFIG_SHELL='$SHELL' 21945 export CONFIG_SHELL 21946 exec "\$@" 21947fi 21948 21949_ACEOF 21950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21951exec 5>>config.log 21952{ 21953 echo 21954 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21955## Running $as_me. ## 21956_ASBOX 21957 $as_echo "$ac_log" 21958} >&5 21959 21960_ACEOF 21961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21962# 21963# INIT-COMMANDS 21964# 21965AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21966 21967_ACEOF 21968 21969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21970 21971# Handling of arguments. 21972for ac_config_target in $ac_config_targets 21973do 21974 case $ac_config_target in 21975 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21976 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21977 "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;; 21978 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21979 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21980 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21981 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21982 21983 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21984$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21985 { (exit 1); exit 1; }; };; 21986 esac 21987done 21988 21989 21990# If the user did not use the arguments to specify the items to instantiate, 21991# then the envvar interface is used. Set only those that are not. 21992# We use the long form for the default assignment because of an extremely 21993# bizarre bug on SunOS 4.1.3. 21994if $ac_need_defaults; then 21995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21998fi 21999 22000# Have a temporary directory for convenience. Make it in the build tree 22001# simply because there is no reason against having it here, and in addition, 22002# creating and moving files from /tmp can sometimes cause problems. 22003# Hook for its removal unless debugging. 22004# Note that there is a small window in which the directory will not be cleaned: 22005# after its creation but before its name has been assigned to `$tmp'. 22006$debug || 22007{ 22008 tmp= 22009 trap 'exit_status=$? 22010 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22011' 0 22012 trap '{ (exit 1); exit 1; }' 1 2 13 15 22013} 22014# Create a (secure) tmp directory for tmp files. 22015 22016{ 22017 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22018 test -n "$tmp" && test -d "$tmp" 22019} || 22020{ 22021 tmp=./conf$$-$RANDOM 22022 (umask 077 && mkdir "$tmp") 22023} || 22024{ 22025 $as_echo "$as_me: cannot create a temporary directory in ." >&2 22026 { (exit 1); exit 1; } 22027} 22028 22029# Set up the scripts for CONFIG_FILES section. 22030# No need to generate them if there are no CONFIG_FILES. 22031# This happens for instance with `./config.status config.h'. 22032if test -n "$CONFIG_FILES"; then 22033 22034 22035ac_cr=' 22036' 22037ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22038if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22039 ac_cs_awk_cr='\\r' 22040else 22041 ac_cs_awk_cr=$ac_cr 22042fi 22043 22044echo 'BEGIN {' >"$tmp/subs1.awk" && 22045_ACEOF 22046 22047 22048{ 22049 echo "cat >conf$$subs.awk <<_ACEOF" && 22050 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22051 echo "_ACEOF" 22052} >conf$$subs.sh || 22053 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22054$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22055 { (exit 1); exit 1; }; } 22056ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 22057ac_delim='%!_!# ' 22058for ac_last_try in false false false false false :; do 22059 . ./conf$$subs.sh || 22060 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22061$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22062 { (exit 1); exit 1; }; } 22063 22064 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22065 if test $ac_delim_n = $ac_delim_num; then 22066 break 22067 elif $ac_last_try; then 22068 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22069$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22070 { (exit 1); exit 1; }; } 22071 else 22072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22073 fi 22074done 22075rm -f conf$$subs.sh 22076 22077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22078cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 22079_ACEOF 22080sed -n ' 22081h 22082s/^/S["/; s/!.*/"]=/ 22083p 22084g 22085s/^[^!]*!// 22086:repl 22087t repl 22088s/'"$ac_delim"'$// 22089t delim 22090:nl 22091h 22092s/\(.\{148\}\).*/\1/ 22093t more1 22094s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22095p 22096n 22097b repl 22098:more1 22099s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22100p 22101g 22102s/.\{148\}// 22103t nl 22104:delim 22105h 22106s/\(.\{148\}\).*/\1/ 22107t more2 22108s/["\\]/\\&/g; s/^/"/; s/$/"/ 22109p 22110b 22111:more2 22112s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22113p 22114g 22115s/.\{148\}// 22116t delim 22117' <conf$$subs.awk | sed ' 22118/^[^""]/{ 22119 N 22120 s/\n// 22121} 22122' >>$CONFIG_STATUS || ac_write_fail=1 22123rm -f conf$$subs.awk 22124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22125_ACAWK 22126cat >>"\$tmp/subs1.awk" <<_ACAWK && 22127 for (key in S) S_is_set[key] = 1 22128 FS = "" 22129 22130} 22131{ 22132 line = $ 0 22133 nfields = split(line, field, "@") 22134 substed = 0 22135 len = length(field[1]) 22136 for (i = 2; i < nfields; i++) { 22137 key = field[i] 22138 keylen = length(key) 22139 if (S_is_set[key]) { 22140 value = S[key] 22141 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22142 len += length(value) + length(field[++i]) 22143 substed = 1 22144 } else 22145 len += 1 + keylen 22146 } 22147 22148 print line 22149} 22150 22151_ACAWK 22152_ACEOF 22153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22154if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22155 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22156else 22157 cat 22158fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 22159 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 22160$as_echo "$as_me: error: could not setup config files machinery" >&2;} 22161 { (exit 1); exit 1; }; } 22162_ACEOF 22163 22164# VPATH may cause trouble with some makes, so we remove $(srcdir), 22165# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22166# trailing colons and then remove the whole line if VPATH becomes empty 22167# (actually we leave an empty line to preserve line numbers). 22168if test "x$srcdir" = x.; then 22169 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22170s/:*\$(srcdir):*/:/ 22171s/:*\${srcdir}:*/:/ 22172s/:*@srcdir@:*/:/ 22173s/^\([^=]*=[ ]*\):*/\1/ 22174s/:*$// 22175s/^[^=]*=[ ]*$// 22176}' 22177fi 22178 22179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22180fi # test -n "$CONFIG_FILES" 22181 22182# Set up the scripts for CONFIG_HEADERS section. 22183# No need to generate them if there are no CONFIG_HEADERS. 22184# This happens for instance with `./config.status Makefile'. 22185if test -n "$CONFIG_HEADERS"; then 22186cat >"$tmp/defines.awk" <<\_ACAWK || 22187BEGIN { 22188_ACEOF 22189 22190# Transform confdefs.h into an awk script `defines.awk', embedded as 22191# here-document in config.status, that substitutes the proper values into 22192# config.h.in to produce config.h. 22193 22194# Create a delimiter string that does not exist in confdefs.h, to ease 22195# handling of long lines. 22196ac_delim='%!_!# ' 22197for ac_last_try in false false :; do 22198 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 22199 if test -z "$ac_t"; then 22200 break 22201 elif $ac_last_try; then 22202 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 22203$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 22204 { (exit 1); exit 1; }; } 22205 else 22206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22207 fi 22208done 22209 22210# For the awk script, D is an array of macro values keyed by name, 22211# likewise P contains macro parameters if any. Preserve backslash 22212# newline sequences. 22213 22214ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22215sed -n ' 22216s/.\{148\}/&'"$ac_delim"'/g 22217t rset 22218:rset 22219s/^[ ]*#[ ]*define[ ][ ]*/ / 22220t def 22221d 22222:def 22223s/\\$// 22224t bsnl 22225s/["\\]/\\&/g 22226s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22227D["\1"]=" \3"/p 22228s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22229d 22230:bsnl 22231s/["\\]/\\&/g 22232s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22233D["\1"]=" \3\\\\\\n"\\/p 22234t cont 22235s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22236t cont 22237d 22238:cont 22239n 22240s/.\{148\}/&'"$ac_delim"'/g 22241t clear 22242:clear 22243s/\\$// 22244t bsnlc 22245s/["\\]/\\&/g; s/^/"/; s/$/"/p 22246d 22247:bsnlc 22248s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22249b cont 22250' <confdefs.h | sed ' 22251s/'"$ac_delim"'/"\\\ 22252"/g' >>$CONFIG_STATUS || ac_write_fail=1 22253 22254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22255 for (key in D) D_is_set[key] = 1 22256 FS = "" 22257} 22258/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22259 line = \$ 0 22260 split(line, arg, " ") 22261 if (arg[1] == "#") { 22262 defundef = arg[2] 22263 mac1 = arg[3] 22264 } else { 22265 defundef = substr(arg[1], 2) 22266 mac1 = arg[2] 22267 } 22268 split(mac1, mac2, "(") #) 22269 macro = mac2[1] 22270 prefix = substr(line, 1, index(line, defundef) - 1) 22271 if (D_is_set[macro]) { 22272 # Preserve the white space surrounding the "#". 22273 print prefix "define", macro P[macro] D[macro] 22274 next 22275 } else { 22276 # Replace #undef with comments. This is necessary, for example, 22277 # in the case of _POSIX_SOURCE, which is predefined and required 22278 # on some systems where configure will not decide to define it. 22279 if (defundef == "undef") { 22280 print "/*", prefix defundef, macro, "*/" 22281 next 22282 } 22283 } 22284} 22285{ print } 22286_ACAWK 22287_ACEOF 22288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22289 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 22290$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 22291 { (exit 1); exit 1; }; } 22292fi # test -n "$CONFIG_HEADERS" 22293 22294 22295eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22296shift 22297for ac_tag 22298do 22299 case $ac_tag in 22300 :[FHLC]) ac_mode=$ac_tag; continue;; 22301 esac 22302 case $ac_mode$ac_tag in 22303 :[FHL]*:*);; 22304 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 22305$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 22306 { (exit 1); exit 1; }; };; 22307 :[FH]-) ac_tag=-:-;; 22308 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22309 esac 22310 ac_save_IFS=$IFS 22311 IFS=: 22312 set x $ac_tag 22313 IFS=$ac_save_IFS 22314 shift 22315 ac_file=$1 22316 shift 22317 22318 case $ac_mode in 22319 :L) ac_source=$1;; 22320 :[FH]) 22321 ac_file_inputs= 22322 for ac_f 22323 do 22324 case $ac_f in 22325 -) ac_f="$tmp/stdin";; 22326 *) # Look for the file first in the build tree, then in the source tree 22327 # (if the path is not absolute). The absolute path cannot be DOS-style, 22328 # because $ac_f cannot contain `:'. 22329 test -f "$ac_f" || 22330 case $ac_f in 22331 [\\/$]*) false;; 22332 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22333 esac || 22334 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22335$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22336 { (exit 1); exit 1; }; };; 22337 esac 22338 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22339 ac_file_inputs="$ac_file_inputs '$ac_f'" 22340 done 22341 22342 # Let's still pretend it is `configure' which instantiates (i.e., don't 22343 # use $as_me), people would be surprised to read: 22344 # /* config.h. Generated by config.status. */ 22345 configure_input='Generated from '` 22346 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22347 `' by configure.' 22348 if test x"$ac_file" != x-; then 22349 configure_input="$ac_file. $configure_input" 22350 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 22351$as_echo "$as_me: creating $ac_file" >&6;} 22352 fi 22353 # Neutralize special characters interpreted by sed in replacement strings. 22354 case $configure_input in #( 22355 *\&* | *\|* | *\\* ) 22356 ac_sed_conf_input=`$as_echo "$configure_input" | 22357 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22358 *) ac_sed_conf_input=$configure_input;; 22359 esac 22360 22361 case $ac_tag in 22362 *:-:* | *:-) cat >"$tmp/stdin" \ 22363 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22364$as_echo "$as_me: error: could not create $ac_file" >&2;} 22365 { (exit 1); exit 1; }; } ;; 22366 esac 22367 ;; 22368 esac 22369 22370 ac_dir=`$as_dirname -- "$ac_file" || 22371$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22372 X"$ac_file" : 'X\(//\)[^/]' \| \ 22373 X"$ac_file" : 'X\(//\)$' \| \ 22374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22375$as_echo X"$ac_file" | 22376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22377 s//\1/ 22378 q 22379 } 22380 /^X\(\/\/\)[^/].*/{ 22381 s//\1/ 22382 q 22383 } 22384 /^X\(\/\/\)$/{ 22385 s//\1/ 22386 q 22387 } 22388 /^X\(\/\).*/{ 22389 s//\1/ 22390 q 22391 } 22392 s/.*/./; q'` 22393 { as_dir="$ac_dir" 22394 case $as_dir in #( 22395 -*) as_dir=./$as_dir;; 22396 esac 22397 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22398 as_dirs= 22399 while :; do 22400 case $as_dir in #( 22401 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22402 *) as_qdir=$as_dir;; 22403 esac 22404 as_dirs="'$as_qdir' $as_dirs" 22405 as_dir=`$as_dirname -- "$as_dir" || 22406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22407 X"$as_dir" : 'X\(//\)[^/]' \| \ 22408 X"$as_dir" : 'X\(//\)$' \| \ 22409 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22410$as_echo X"$as_dir" | 22411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22412 s//\1/ 22413 q 22414 } 22415 /^X\(\/\/\)[^/].*/{ 22416 s//\1/ 22417 q 22418 } 22419 /^X\(\/\/\)$/{ 22420 s//\1/ 22421 q 22422 } 22423 /^X\(\/\).*/{ 22424 s//\1/ 22425 q 22426 } 22427 s/.*/./; q'` 22428 test -d "$as_dir" && break 22429 done 22430 test -z "$as_dirs" || eval "mkdir $as_dirs" 22431 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22432$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22433 { (exit 1); exit 1; }; }; } 22434 ac_builddir=. 22435 22436case "$ac_dir" in 22437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22438*) 22439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22440 # A ".." for each directory in $ac_dir_suffix. 22441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22442 case $ac_top_builddir_sub in 22443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22445 esac ;; 22446esac 22447ac_abs_top_builddir=$ac_pwd 22448ac_abs_builddir=$ac_pwd$ac_dir_suffix 22449# for backward compatibility: 22450ac_top_builddir=$ac_top_build_prefix 22451 22452case $srcdir in 22453 .) # We are building in place. 22454 ac_srcdir=. 22455 ac_top_srcdir=$ac_top_builddir_sub 22456 ac_abs_top_srcdir=$ac_pwd ;; 22457 [\\/]* | ?:[\\/]* ) # Absolute name. 22458 ac_srcdir=$srcdir$ac_dir_suffix; 22459 ac_top_srcdir=$srcdir 22460 ac_abs_top_srcdir=$srcdir ;; 22461 *) # Relative name. 22462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22463 ac_top_srcdir=$ac_top_build_prefix$srcdir 22464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22465esac 22466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22467 22468 22469 case $ac_mode in 22470 :F) 22471 # 22472 # CONFIG_FILE 22473 # 22474 22475 case $INSTALL in 22476 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22477 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22478 esac 22479 ac_MKDIR_P=$MKDIR_P 22480 case $MKDIR_P in 22481 [\\/$]* | ?:[\\/]* ) ;; 22482 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22483 esac 22484_ACEOF 22485 22486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22487# If the template does not know about datarootdir, expand it. 22488# FIXME: This hack should be removed a few years after 2.60. 22489ac_datarootdir_hack=; ac_datarootdir_seen= 22490 22491ac_sed_dataroot=' 22492/datarootdir/ { 22493 p 22494 q 22495} 22496/@datadir@/p 22497/@docdir@/p 22498/@infodir@/p 22499/@localedir@/p 22500/@mandir@/p 22501' 22502case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22503*datarootdir*) ac_datarootdir_seen=yes;; 22504*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22505 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22506$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22507_ACEOF 22508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22509 ac_datarootdir_hack=' 22510 s&@datadir@&$datadir&g 22511 s&@docdir@&$docdir&g 22512 s&@infodir@&$infodir&g 22513 s&@localedir@&$localedir&g 22514 s&@mandir@&$mandir&g 22515 s&\\\${datarootdir}&$datarootdir&g' ;; 22516esac 22517_ACEOF 22518 22519# Neutralize VPATH when `$srcdir' = `.'. 22520# Shell code in configure.ac might set extrasub. 22521# FIXME: do we really want to maintain this feature? 22522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22523ac_sed_extra="$ac_vpsub 22524$extrasub 22525_ACEOF 22526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22527:t 22528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22529s|@configure_input@|$ac_sed_conf_input|;t t 22530s&@top_builddir@&$ac_top_builddir_sub&;t t 22531s&@top_build_prefix@&$ac_top_build_prefix&;t t 22532s&@srcdir@&$ac_srcdir&;t t 22533s&@abs_srcdir@&$ac_abs_srcdir&;t t 22534s&@top_srcdir@&$ac_top_srcdir&;t t 22535s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22536s&@builddir@&$ac_builddir&;t t 22537s&@abs_builddir@&$ac_abs_builddir&;t t 22538s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22539s&@INSTALL@&$ac_INSTALL&;t t 22540s&@MKDIR_P@&$ac_MKDIR_P&;t t 22541$ac_datarootdir_hack 22542" 22543eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22544 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22545$as_echo "$as_me: error: could not create $ac_file" >&2;} 22546 { (exit 1); exit 1; }; } 22547 22548test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22551 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22552which seems to be undefined. Please make sure it is defined." >&5 22553$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22554which seems to be undefined. Please make sure it is defined." >&2;} 22555 22556 rm -f "$tmp/stdin" 22557 case $ac_file in 22558 -) cat "$tmp/out" && rm -f "$tmp/out";; 22559 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22560 esac \ 22561 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22562$as_echo "$as_me: error: could not create $ac_file" >&2;} 22563 { (exit 1); exit 1; }; } 22564 ;; 22565 :H) 22566 # 22567 # CONFIG_HEADER 22568 # 22569 if test x"$ac_file" != x-; then 22570 { 22571 $as_echo "/* $configure_input */" \ 22572 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22573 } >"$tmp/config.h" \ 22574 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22575$as_echo "$as_me: error: could not create $ac_file" >&2;} 22576 { (exit 1); exit 1; }; } 22577 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22578 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22579$as_echo "$as_me: $ac_file is unchanged" >&6;} 22580 else 22581 rm -f "$ac_file" 22582 mv "$tmp/config.h" "$ac_file" \ 22583 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22584$as_echo "$as_me: error: could not create $ac_file" >&2;} 22585 { (exit 1); exit 1; }; } 22586 fi 22587 else 22588 $as_echo "/* $configure_input */" \ 22589 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22590 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22591$as_echo "$as_me: error: could not create -" >&2;} 22592 { (exit 1); exit 1; }; } 22593 fi 22594# Compute "$ac_file"'s index in $config_headers. 22595_am_arg="$ac_file" 22596_am_stamp_count=1 22597for _am_header in $config_headers :; do 22598 case $_am_header in 22599 $_am_arg | $_am_arg:* ) 22600 break ;; 22601 * ) 22602 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22603 esac 22604done 22605echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22606$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22607 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22608 X"$_am_arg" : 'X\(//\)$' \| \ 22609 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22610$as_echo X"$_am_arg" | 22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22612 s//\1/ 22613 q 22614 } 22615 /^X\(\/\/\)[^/].*/{ 22616 s//\1/ 22617 q 22618 } 22619 /^X\(\/\/\)$/{ 22620 s//\1/ 22621 q 22622 } 22623 /^X\(\/\).*/{ 22624 s//\1/ 22625 q 22626 } 22627 s/.*/./; q'`/stamp-h$_am_stamp_count 22628 ;; 22629 22630 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22631$as_echo "$as_me: executing $ac_file commands" >&6;} 22632 ;; 22633 esac 22634 22635 22636 case $ac_file$ac_mode in 22637 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22638 # Strip MF so we end up with the name of the file. 22639 mf=`echo "$mf" | sed -e 's/:.*$//'` 22640 # Check whether this is an Automake generated Makefile or not. 22641 # We used to match only the files named `Makefile.in', but 22642 # some people rename them; so instead we look at the file content. 22643 # Grep'ing the first line is not enough: some people post-process 22644 # each Makefile.in and add a new line on top of each file to say so. 22645 # Grep'ing the whole file is not good either: AIX grep has a line 22646 # limit of 2048, but all sed's we know have understand at least 4000. 22647 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22648 dirpart=`$as_dirname -- "$mf" || 22649$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22650 X"$mf" : 'X\(//\)[^/]' \| \ 22651 X"$mf" : 'X\(//\)$' \| \ 22652 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22653$as_echo X"$mf" | 22654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22655 s//\1/ 22656 q 22657 } 22658 /^X\(\/\/\)[^/].*/{ 22659 s//\1/ 22660 q 22661 } 22662 /^X\(\/\/\)$/{ 22663 s//\1/ 22664 q 22665 } 22666 /^X\(\/\).*/{ 22667 s//\1/ 22668 q 22669 } 22670 s/.*/./; q'` 22671 else 22672 continue 22673 fi 22674 # Extract the definition of DEPDIR, am__include, and am__quote 22675 # from the Makefile without running `make'. 22676 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22677 test -z "$DEPDIR" && continue 22678 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22679 test -z "am__include" && continue 22680 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22681 # When using ansi2knr, U may be empty or an underscore; expand it 22682 U=`sed -n 's/^U = //p' < "$mf"` 22683 # Find all dependency output files, they are included files with 22684 # $(DEPDIR) in their names. We invoke sed twice because it is the 22685 # simplest approach to changing $(DEPDIR) to its actual value in the 22686 # expansion. 22687 for file in `sed -n " 22688 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22689 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22690 # Make sure the directory exists. 22691 test -f "$dirpart/$file" && continue 22692 fdir=`$as_dirname -- "$file" || 22693$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22694 X"$file" : 'X\(//\)[^/]' \| \ 22695 X"$file" : 'X\(//\)$' \| \ 22696 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22697$as_echo X"$file" | 22698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22699 s//\1/ 22700 q 22701 } 22702 /^X\(\/\/\)[^/].*/{ 22703 s//\1/ 22704 q 22705 } 22706 /^X\(\/\/\)$/{ 22707 s//\1/ 22708 q 22709 } 22710 /^X\(\/\).*/{ 22711 s//\1/ 22712 q 22713 } 22714 s/.*/./; q'` 22715 { as_dir=$dirpart/$fdir 22716 case $as_dir in #( 22717 -*) as_dir=./$as_dir;; 22718 esac 22719 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22720 as_dirs= 22721 while :; do 22722 case $as_dir in #( 22723 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22724 *) as_qdir=$as_dir;; 22725 esac 22726 as_dirs="'$as_qdir' $as_dirs" 22727 as_dir=`$as_dirname -- "$as_dir" || 22728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22729 X"$as_dir" : 'X\(//\)[^/]' \| \ 22730 X"$as_dir" : 'X\(//\)$' \| \ 22731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22732$as_echo X"$as_dir" | 22733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22734 s//\1/ 22735 q 22736 } 22737 /^X\(\/\/\)[^/].*/{ 22738 s//\1/ 22739 q 22740 } 22741 /^X\(\/\/\)$/{ 22742 s//\1/ 22743 q 22744 } 22745 /^X\(\/\).*/{ 22746 s//\1/ 22747 q 22748 } 22749 s/.*/./; q'` 22750 test -d "$as_dir" && break 22751 done 22752 test -z "$as_dirs" || eval "mkdir $as_dirs" 22753 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22754$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22755 { (exit 1); exit 1; }; }; } 22756 # echo "creating $dirpart/$file" 22757 echo '# dummy' > "$dirpart/$file" 22758 done 22759done 22760 ;; 22761 "libtool_hack":C) 22762 cp -f libtool libtool_ 22763 test -z "$SED" && SED=sed 22764 $SED '1,/^soname_spec/{ 22765/^soname_spec/i\ 22766# X.Org hack to match monolithic Xaw SONAME\ 22767xorglibxawname="libXaw" 22768/^soname_spec/s/libname/xorglibxawname/ 22769}' libtool_ > libtool 22770 rm -f libtool_ 22771 ;; 22772 22773 esac 22774done # for ac_tag 22775 22776 22777{ (exit 0); exit 0; } 22778_ACEOF 22779chmod +x $CONFIG_STATUS 22780ac_clean_files=$ac_clean_files_save 22781 22782test $ac_write_fail = 0 || 22783 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22784$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22785 { (exit 1); exit 1; }; } 22786 22787 22788# configure is writing to config.log, and then calls config.status. 22789# config.status does its own redirection, appending to config.log. 22790# Unfortunately, on DOS this fails, as config.log is still kept open 22791# by configure, so config.status won't be able to write to it; its 22792# output is simply discarded. So we exec the FD to /dev/null, 22793# effectively closing config.log, so it can be properly (re)opened and 22794# appended to by config.status. When coming back to configure, we 22795# need to make the FD available again. 22796if test "$no_create" != yes; then 22797 ac_cs_success=: 22798 ac_config_status_args= 22799 test "$silent" = yes && 22800 ac_config_status_args="$ac_config_status_args --quiet" 22801 exec 5>/dev/null 22802 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22803 exec 5>>config.log 22804 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22805 # would make configure fail if this is the last instruction. 22806 $ac_cs_success || { (exit 1); exit 1; } 22807fi 22808if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22809 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22810$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22811fi 22812 22813 22814if test "x$build_v6" = xyes; then 22815 ac_config_files="$ac_config_files xaw6.pc" 22816 22817cat >confcache <<\_ACEOF 22818# This file is a shell script that caches the results of configure 22819# tests run on this system so they can be shared between configure 22820# scripts and configure runs, see configure's option --config-cache. 22821# It is not useful on other systems. If it contains results you don't 22822# want to keep, you may remove or edit it. 22823# 22824# config.status only pays attention to the cache file if you give it 22825# the --recheck option to rerun configure. 22826# 22827# `ac_cv_env_foo' variables (set or unset) will be overridden when 22828# loading this file, other *unset* `ac_cv_foo' will be assigned the 22829# following values. 22830 22831_ACEOF 22832 22833# The following way of writing the cache mishandles newlines in values, 22834# but we know of no workaround that is simple, portable, and efficient. 22835# So, we kill variables containing newlines. 22836# Ultrix sh set writes to stderr and can't be redirected directly, 22837# and sets the high bit in the cache file unless we assign to the vars. 22838( 22839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22840 eval ac_val=\$$ac_var 22841 case $ac_val in #( 22842 *${as_nl}*) 22843 case $ac_var in #( 22844 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 22845$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22846 esac 22847 case $ac_var in #( 22848 _ | IFS | as_nl) ;; #( 22849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22850 *) $as_unset $ac_var ;; 22851 esac ;; 22852 esac 22853 done 22854 22855 (set) 2>&1 | 22856 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22857 *${as_nl}ac_space=\ *) 22858 # `set' does not quote correctly, so add quotes (double-quote 22859 # substitution turns \\\\ into \\, and sed turns \\ into \). 22860 sed -n \ 22861 "s/'/'\\\\''/g; 22862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22863 ;; #( 22864 *) 22865 # `set' quotes correctly as required by POSIX, so do not add quotes. 22866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22867 ;; 22868 esac | 22869 sort 22870) | 22871 sed ' 22872 /^ac_cv_env_/b end 22873 t clear 22874 :clear 22875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22876 t end 22877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22878 :end' >>confcache 22879if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22880 if test -w "$cache_file"; then 22881 test "x$cache_file" != "x/dev/null" && 22882 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 22883$as_echo "$as_me: updating cache $cache_file" >&6;} 22884 cat confcache >$cache_file 22885 else 22886 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22887$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22888 fi 22889fi 22890rm -f confcache 22891 22892test "x$prefix" = xNONE && prefix=$ac_default_prefix 22893# Let make expand exec_prefix. 22894test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22895 22896DEFS=-DHAVE_CONFIG_H 22897 22898ac_libobjs= 22899ac_ltlibobjs= 22900for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22901 # 1. Remove the extension, and $U if already installed. 22902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22903 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22905 # will be set to the directory where LIBOBJS objects are built. 22906 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22907 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22908done 22909LIBOBJS=$ac_libobjs 22910 22911LTLIBOBJS=$ac_ltlibobjs 22912 22913 22914if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22915 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22916Usually this means the macro was only invoked conditionally." >&5 22917$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 22918Usually this means the macro was only invoked conditionally." >&2;} 22919 { (exit 1); exit 1; }; } 22920fi 22921if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22922 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22923Usually this means the macro was only invoked conditionally." >&5 22924$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22925Usually this means the macro was only invoked conditionally." >&2;} 22926 { (exit 1); exit 1; }; } 22927fi 22928if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22929 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22930Usually this means the macro was only invoked conditionally." >&5 22931$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22932Usually this means the macro was only invoked conditionally." >&2;} 22933 { (exit 1); exit 1; }; } 22934fi 22935if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then 22936 { { $as_echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined. 22937Usually this means the macro was only invoked conditionally." >&5 22938$as_echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined. 22939Usually this means the macro was only invoked conditionally." >&2;} 22940 { (exit 1); exit 1; }; } 22941fi 22942if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then 22943 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XAW6\" was never defined. 22944Usually this means the macro was only invoked conditionally." >&5 22945$as_echo "$as_me: error: conditional \"BUILD_XAW6\" was never defined. 22946Usually this means the macro was only invoked conditionally." >&2;} 22947 { (exit 1); exit 1; }; } 22948fi 22949if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then 22950 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XAW7\" was never defined. 22951Usually this means the macro was only invoked conditionally." >&5 22952$as_echo "$as_me: error: conditional \"BUILD_XAW7\" was never defined. 22953Usually this means the macro was only invoked conditionally." >&2;} 22954 { (exit 1); exit 1; }; } 22955fi 22956 22957: ${CONFIG_STATUS=./config.status} 22958ac_write_fail=0 22959ac_clean_files_save=$ac_clean_files 22960ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22961{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22962$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22963cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22964#! $SHELL 22965# Generated by $as_me. 22966# Run this file to recreate the current configuration. 22967# Compiler output produced by configure, useful for debugging 22968# configure, is in config.log if it exists. 22969 22970debug=false 22971ac_cs_recheck=false 22972ac_cs_silent=false 22973SHELL=\${CONFIG_SHELL-$SHELL} 22974_ACEOF 22975 22976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22977## --------------------- ## 22978## M4sh Initialization. ## 22979## --------------------- ## 22980 22981# Be more Bourne compatible 22982DUALCASE=1; export DUALCASE # for MKS sh 22983if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22984 emulate sh 22985 NULLCMD=: 22986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22987 # is contrary to our usage. Disable this feature. 22988 alias -g '${1+"$@"}'='"$@"' 22989 setopt NO_GLOB_SUBST 22990else 22991 case `(set -o) 2>/dev/null` in 22992 *posix*) set -o posix ;; 22993esac 22994 22995fi 22996 22997 22998 22999 23000# PATH needs CR 23001# Avoid depending upon Character Ranges. 23002as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23003as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23004as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23005as_cr_digits='0123456789' 23006as_cr_alnum=$as_cr_Letters$as_cr_digits 23007 23008as_nl=' 23009' 23010export as_nl 23011# Printing a long string crashes Solaris 7 /usr/bin/printf. 23012as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23013as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23014as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23015if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23016 as_echo='printf %s\n' 23017 as_echo_n='printf %s' 23018else 23019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23020 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23021 as_echo_n='/usr/ucb/echo -n' 23022 else 23023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23024 as_echo_n_body='eval 23025 arg=$1; 23026 case $arg in 23027 *"$as_nl"*) 23028 expr "X$arg" : "X\\(.*\\)$as_nl"; 23029 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23030 esac; 23031 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23032 ' 23033 export as_echo_n_body 23034 as_echo_n='sh -c $as_echo_n_body as_echo' 23035 fi 23036 export as_echo_body 23037 as_echo='sh -c $as_echo_body as_echo' 23038fi 23039 23040# The user is always right. 23041if test "${PATH_SEPARATOR+set}" != set; then 23042 PATH_SEPARATOR=: 23043 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23044 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23045 PATH_SEPARATOR=';' 23046 } 23047fi 23048 23049# Support unset when possible. 23050if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23051 as_unset=unset 23052else 23053 as_unset=false 23054fi 23055 23056 23057# IFS 23058# We need space, tab and new line, in precisely that order. Quoting is 23059# there to prevent editors from complaining about space-tab. 23060# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23061# splitting by setting IFS to empty value.) 23062IFS=" "" $as_nl" 23063 23064# Find who we are. Look in the path if we contain no directory separator. 23065case $0 in 23066 *[\\/]* ) as_myself=$0 ;; 23067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23068for as_dir in $PATH 23069do 23070 IFS=$as_save_IFS 23071 test -z "$as_dir" && as_dir=. 23072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23073done 23074IFS=$as_save_IFS 23075 23076 ;; 23077esac 23078# We did not find ourselves, most probably we were run as `sh COMMAND' 23079# in which case we are not to be found in the path. 23080if test "x$as_myself" = x; then 23081 as_myself=$0 23082fi 23083if test ! -f "$as_myself"; then 23084 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23085 { (exit 1); exit 1; } 23086fi 23087 23088# Work around bugs in pre-3.0 UWIN ksh. 23089for as_var in ENV MAIL MAILPATH 23090do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23091done 23092PS1='$ ' 23093PS2='> ' 23094PS4='+ ' 23095 23096# NLS nuisances. 23097LC_ALL=C 23098export LC_ALL 23099LANGUAGE=C 23100export LANGUAGE 23101 23102# Required to use basename. 23103if expr a : '\(a\)' >/dev/null 2>&1 && 23104 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23105 as_expr=expr 23106else 23107 as_expr=false 23108fi 23109 23110if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23111 as_basename=basename 23112else 23113 as_basename=false 23114fi 23115 23116 23117# Name of the executable. 23118as_me=`$as_basename -- "$0" || 23119$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23120 X"$0" : 'X\(//\)$' \| \ 23121 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23122$as_echo X/"$0" | 23123 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23124 s//\1/ 23125 q 23126 } 23127 /^X\/\(\/\/\)$/{ 23128 s//\1/ 23129 q 23130 } 23131 /^X\/\(\/\).*/{ 23132 s//\1/ 23133 q 23134 } 23135 s/.*/./; q'` 23136 23137# CDPATH. 23138$as_unset CDPATH 23139 23140 23141 23142 as_lineno_1=$LINENO 23143 as_lineno_2=$LINENO 23144 test "x$as_lineno_1" != "x$as_lineno_2" && 23145 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23146 23147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23148 # uniformly replaced by the line number. The first 'sed' inserts a 23149 # line-number line after each line using $LINENO; the second 'sed' 23150 # does the real work. The second script uses 'N' to pair each 23151 # line-number line with the line containing $LINENO, and appends 23152 # trailing '-' during substitution so that $LINENO is not a special 23153 # case at line end. 23154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23155 # scripts with optimization help from Paolo Bonzini. Blame Lee 23156 # E. McMahon (1931-1989) for sed's syntax. :-) 23157 sed -n ' 23158 p 23159 /[$]LINENO/= 23160 ' <$as_myself | 23161 sed ' 23162 s/[$]LINENO.*/&-/ 23163 t lineno 23164 b 23165 :lineno 23166 N 23167 :loop 23168 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23169 t loop 23170 s/-\n.*// 23171 ' >$as_me.lineno && 23172 chmod +x "$as_me.lineno" || 23173 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23174 { (exit 1); exit 1; }; } 23175 23176 # Don't try to exec as it changes $[0], causing all sort of problems 23177 # (the dirname of $[0] is not the place where we might find the 23178 # original and so on. Autoconf is especially sensitive to this). 23179 . "./$as_me.lineno" 23180 # Exit status is that of the last command. 23181 exit 23182} 23183 23184 23185if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23186 as_dirname=dirname 23187else 23188 as_dirname=false 23189fi 23190 23191ECHO_C= ECHO_N= ECHO_T= 23192case `echo -n x` in 23193-n*) 23194 case `echo 'x\c'` in 23195 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23196 *) ECHO_C='\c';; 23197 esac;; 23198*) 23199 ECHO_N='-n';; 23200esac 23201if expr a : '\(a\)' >/dev/null 2>&1 && 23202 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23203 as_expr=expr 23204else 23205 as_expr=false 23206fi 23207 23208rm -f conf$$ conf$$.exe conf$$.file 23209if test -d conf$$.dir; then 23210 rm -f conf$$.dir/conf$$.file 23211else 23212 rm -f conf$$.dir 23213 mkdir conf$$.dir 2>/dev/null 23214fi 23215if (echo >conf$$.file) 2>/dev/null; then 23216 if ln -s conf$$.file conf$$ 2>/dev/null; then 23217 as_ln_s='ln -s' 23218 # ... but there are two gotchas: 23219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23221 # In both cases, we have to default to `cp -p'. 23222 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23223 as_ln_s='cp -p' 23224 elif ln conf$$.file conf$$ 2>/dev/null; then 23225 as_ln_s=ln 23226 else 23227 as_ln_s='cp -p' 23228 fi 23229else 23230 as_ln_s='cp -p' 23231fi 23232rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23233rmdir conf$$.dir 2>/dev/null 23234 23235if mkdir -p . 2>/dev/null; then 23236 as_mkdir_p=: 23237else 23238 test -d ./-p && rmdir ./-p 23239 as_mkdir_p=false 23240fi 23241 23242if test -x / >/dev/null 2>&1; then 23243 as_test_x='test -x' 23244else 23245 if ls -dL / >/dev/null 2>&1; then 23246 as_ls_L_option=L 23247 else 23248 as_ls_L_option= 23249 fi 23250 as_test_x=' 23251 eval sh -c '\'' 23252 if test -d "$1"; then 23253 test -d "$1/."; 23254 else 23255 case $1 in 23256 -*)set "./$1";; 23257 esac; 23258 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 23259 ???[sx]*):;;*)false;;esac;fi 23260 '\'' sh 23261 ' 23262fi 23263as_executable_p=$as_test_x 23264 23265# Sed expression to map a string onto a valid CPP name. 23266as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23267 23268# Sed expression to map a string onto a valid variable name. 23269as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23270 23271 23272exec 6>&1 23273 23274# Save the log message, to keep $[0] and so on meaningful, and to 23275# report actual input values of CONFIG_FILES etc. instead of their 23276# values after options handling. 23277ac_log=" 23278This file was extended by libXaw $as_me 1.0.5, which was 23279generated by GNU Autoconf 2.63. Invocation command line was 23280 23281 CONFIG_FILES = $CONFIG_FILES 23282 CONFIG_HEADERS = $CONFIG_HEADERS 23283 CONFIG_LINKS = $CONFIG_LINKS 23284 CONFIG_COMMANDS = $CONFIG_COMMANDS 23285 $ $0 $@ 23286 23287on `(hostname || uname -n) 2>/dev/null | sed 1q` 23288" 23289 23290_ACEOF 23291 23292case $ac_config_files in *" 23293"*) set x $ac_config_files; shift; ac_config_files=$*;; 23294esac 23295 23296case $ac_config_headers in *" 23297"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23298esac 23299 23300 23301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23302# Files that config.status was made for. 23303config_files="`echo $ac_config_files`" 23304config_headers="`echo $ac_config_headers`" 23305config_commands="`echo $ac_config_commands`" 23306 23307_ACEOF 23308 23309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23310ac_cs_usage="\ 23311\`$as_me' instantiates files from templates according to the 23312current configuration. 23313 23314Usage: $0 [OPTION]... [FILE]... 23315 23316 -h, --help print this help, then exit 23317 -V, --version print version number and configuration settings, then exit 23318 -q, --quiet, --silent 23319 do not print progress messages 23320 -d, --debug don't remove temporary files 23321 --recheck update $as_me by reconfiguring in the same conditions 23322 --file=FILE[:TEMPLATE] 23323 instantiate the configuration file FILE 23324 --header=FILE[:TEMPLATE] 23325 instantiate the configuration header FILE 23326 23327Configuration files: 23328$config_files 23329 23330Configuration headers: 23331$config_headers 23332 23333Configuration commands: 23334$config_commands 23335 23336Report bugs to <bug-autoconf@gnu.org>." 23337 23338_ACEOF 23339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23340ac_cs_version="\\ 23341libXaw config.status 1.0.5 23342configured by $0, generated by GNU Autoconf 2.63, 23343 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23344 23345Copyright (C) 2008 Free Software Foundation, Inc. 23346This config.status script is free software; the Free Software Foundation 23347gives unlimited permission to copy, distribute and modify it." 23348 23349ac_pwd='$ac_pwd' 23350srcdir='$srcdir' 23351INSTALL='$INSTALL' 23352MKDIR_P='$MKDIR_P' 23353AWK='$AWK' 23354test -n "\$AWK" || AWK=awk 23355_ACEOF 23356 23357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23358# The default lists apply if the user does not specify any file. 23359ac_need_defaults=: 23360while test $# != 0 23361do 23362 case $1 in 23363 --*=*) 23364 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23366 ac_shift=: 23367 ;; 23368 *) 23369 ac_option=$1 23370 ac_optarg=$2 23371 ac_shift=shift 23372 ;; 23373 esac 23374 23375 case $ac_option in 23376 # Handling of the options. 23377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23378 ac_cs_recheck=: ;; 23379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23380 $as_echo "$ac_cs_version"; exit ;; 23381 --debug | --debu | --deb | --de | --d | -d ) 23382 debug=: ;; 23383 --file | --fil | --fi | --f ) 23384 $ac_shift 23385 case $ac_optarg in 23386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23387 esac 23388 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 23389 ac_need_defaults=false;; 23390 --header | --heade | --head | --hea ) 23391 $ac_shift 23392 case $ac_optarg in 23393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23394 esac 23395 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 23396 ac_need_defaults=false;; 23397 --he | --h) 23398 # Conflict between --help and --header 23399 { $as_echo "$as_me: error: ambiguous option: $1 23400Try \`$0 --help' for more information." >&2 23401 { (exit 1); exit 1; }; };; 23402 --help | --hel | -h ) 23403 $as_echo "$ac_cs_usage"; exit ;; 23404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23405 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23406 ac_cs_silent=: ;; 23407 23408 # This is an error. 23409 -*) { $as_echo "$as_me: error: unrecognized option: $1 23410Try \`$0 --help' for more information." >&2 23411 { (exit 1); exit 1; }; } ;; 23412 23413 *) ac_config_targets="$ac_config_targets $1" 23414 ac_need_defaults=false ;; 23415 23416 esac 23417 shift 23418done 23419 23420ac_configure_extra_args= 23421 23422if $ac_cs_silent; then 23423 exec 6>/dev/null 23424 ac_configure_extra_args="$ac_configure_extra_args --silent" 23425fi 23426 23427_ACEOF 23428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23429if \$ac_cs_recheck; then 23430 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23431 shift 23432 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23433 CONFIG_SHELL='$SHELL' 23434 export CONFIG_SHELL 23435 exec "\$@" 23436fi 23437 23438_ACEOF 23439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23440exec 5>>config.log 23441{ 23442 echo 23443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23444## Running $as_me. ## 23445_ASBOX 23446 $as_echo "$ac_log" 23447} >&5 23448 23449_ACEOF 23450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23451# 23452# INIT-COMMANDS 23453# 23454AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23455 23456_ACEOF 23457 23458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23459 23460# Handling of arguments. 23461for ac_config_target in $ac_config_targets 23462do 23463 case $ac_config_target in 23464 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23465 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23466 "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;; 23467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23468 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 23469 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23470 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23471 "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;; 23472 23473 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23474$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23475 { (exit 1); exit 1; }; };; 23476 esac 23477done 23478 23479 23480# If the user did not use the arguments to specify the items to instantiate, 23481# then the envvar interface is used. Set only those that are not. 23482# We use the long form for the default assignment because of an extremely 23483# bizarre bug on SunOS 4.1.3. 23484if $ac_need_defaults; then 23485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23487 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23488fi 23489 23490# Have a temporary directory for convenience. Make it in the build tree 23491# simply because there is no reason against having it here, and in addition, 23492# creating and moving files from /tmp can sometimes cause problems. 23493# Hook for its removal unless debugging. 23494# Note that there is a small window in which the directory will not be cleaned: 23495# after its creation but before its name has been assigned to `$tmp'. 23496$debug || 23497{ 23498 tmp= 23499 trap 'exit_status=$? 23500 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23501' 0 23502 trap '{ (exit 1); exit 1; }' 1 2 13 15 23503} 23504# Create a (secure) tmp directory for tmp files. 23505 23506{ 23507 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23508 test -n "$tmp" && test -d "$tmp" 23509} || 23510{ 23511 tmp=./conf$$-$RANDOM 23512 (umask 077 && mkdir "$tmp") 23513} || 23514{ 23515 $as_echo "$as_me: cannot create a temporary directory in ." >&2 23516 { (exit 1); exit 1; } 23517} 23518 23519# Set up the scripts for CONFIG_FILES section. 23520# No need to generate them if there are no CONFIG_FILES. 23521# This happens for instance with `./config.status config.h'. 23522if test -n "$CONFIG_FILES"; then 23523 23524 23525ac_cr=' 23526' 23527ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23528if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23529 ac_cs_awk_cr='\\r' 23530else 23531 ac_cs_awk_cr=$ac_cr 23532fi 23533 23534echo 'BEGIN {' >"$tmp/subs1.awk" && 23535_ACEOF 23536 23537 23538{ 23539 echo "cat >conf$$subs.awk <<_ACEOF" && 23540 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23541 echo "_ACEOF" 23542} >conf$$subs.sh || 23543 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23544$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23545 { (exit 1); exit 1; }; } 23546ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 23547ac_delim='%!_!# ' 23548for ac_last_try in false false false false false :; do 23549 . ./conf$$subs.sh || 23550 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23551$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23552 { (exit 1); exit 1; }; } 23553 23554 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23555 if test $ac_delim_n = $ac_delim_num; then 23556 break 23557 elif $ac_last_try; then 23558 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23559$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23560 { (exit 1); exit 1; }; } 23561 else 23562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23563 fi 23564done 23565rm -f conf$$subs.sh 23566 23567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23568cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 23569_ACEOF 23570sed -n ' 23571h 23572s/^/S["/; s/!.*/"]=/ 23573p 23574g 23575s/^[^!]*!// 23576:repl 23577t repl 23578s/'"$ac_delim"'$// 23579t delim 23580:nl 23581h 23582s/\(.\{148\}\).*/\1/ 23583t more1 23584s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23585p 23586n 23587b repl 23588:more1 23589s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23590p 23591g 23592s/.\{148\}// 23593t nl 23594:delim 23595h 23596s/\(.\{148\}\).*/\1/ 23597t more2 23598s/["\\]/\\&/g; s/^/"/; s/$/"/ 23599p 23600b 23601:more2 23602s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23603p 23604g 23605s/.\{148\}// 23606t delim 23607' <conf$$subs.awk | sed ' 23608/^[^""]/{ 23609 N 23610 s/\n// 23611} 23612' >>$CONFIG_STATUS || ac_write_fail=1 23613rm -f conf$$subs.awk 23614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23615_ACAWK 23616cat >>"\$tmp/subs1.awk" <<_ACAWK && 23617 for (key in S) S_is_set[key] = 1 23618 FS = "" 23619 23620} 23621{ 23622 line = $ 0 23623 nfields = split(line, field, "@") 23624 substed = 0 23625 len = length(field[1]) 23626 for (i = 2; i < nfields; i++) { 23627 key = field[i] 23628 keylen = length(key) 23629 if (S_is_set[key]) { 23630 value = S[key] 23631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23632 len += length(value) + length(field[++i]) 23633 substed = 1 23634 } else 23635 len += 1 + keylen 23636 } 23637 23638 print line 23639} 23640 23641_ACAWK 23642_ACEOF 23643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23644if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23646else 23647 cat 23648fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 23649 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 23650$as_echo "$as_me: error: could not setup config files machinery" >&2;} 23651 { (exit 1); exit 1; }; } 23652_ACEOF 23653 23654# VPATH may cause trouble with some makes, so we remove $(srcdir), 23655# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23656# trailing colons and then remove the whole line if VPATH becomes empty 23657# (actually we leave an empty line to preserve line numbers). 23658if test "x$srcdir" = x.; then 23659 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23660s/:*\$(srcdir):*/:/ 23661s/:*\${srcdir}:*/:/ 23662s/:*@srcdir@:*/:/ 23663s/^\([^=]*=[ ]*\):*/\1/ 23664s/:*$// 23665s/^[^=]*=[ ]*$// 23666}' 23667fi 23668 23669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23670fi # test -n "$CONFIG_FILES" 23671 23672# Set up the scripts for CONFIG_HEADERS section. 23673# No need to generate them if there are no CONFIG_HEADERS. 23674# This happens for instance with `./config.status Makefile'. 23675if test -n "$CONFIG_HEADERS"; then 23676cat >"$tmp/defines.awk" <<\_ACAWK || 23677BEGIN { 23678_ACEOF 23679 23680# Transform confdefs.h into an awk script `defines.awk', embedded as 23681# here-document in config.status, that substitutes the proper values into 23682# config.h.in to produce config.h. 23683 23684# Create a delimiter string that does not exist in confdefs.h, to ease 23685# handling of long lines. 23686ac_delim='%!_!# ' 23687for ac_last_try in false false :; do 23688 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 23689 if test -z "$ac_t"; then 23690 break 23691 elif $ac_last_try; then 23692 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 23693$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 23694 { (exit 1); exit 1; }; } 23695 else 23696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23697 fi 23698done 23699 23700# For the awk script, D is an array of macro values keyed by name, 23701# likewise P contains macro parameters if any. Preserve backslash 23702# newline sequences. 23703 23704ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23705sed -n ' 23706s/.\{148\}/&'"$ac_delim"'/g 23707t rset 23708:rset 23709s/^[ ]*#[ ]*define[ ][ ]*/ / 23710t def 23711d 23712:def 23713s/\\$// 23714t bsnl 23715s/["\\]/\\&/g 23716s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23717D["\1"]=" \3"/p 23718s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23719d 23720:bsnl 23721s/["\\]/\\&/g 23722s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23723D["\1"]=" \3\\\\\\n"\\/p 23724t cont 23725s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23726t cont 23727d 23728:cont 23729n 23730s/.\{148\}/&'"$ac_delim"'/g 23731t clear 23732:clear 23733s/\\$// 23734t bsnlc 23735s/["\\]/\\&/g; s/^/"/; s/$/"/p 23736d 23737:bsnlc 23738s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23739b cont 23740' <confdefs.h | sed ' 23741s/'"$ac_delim"'/"\\\ 23742"/g' >>$CONFIG_STATUS || ac_write_fail=1 23743 23744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23745 for (key in D) D_is_set[key] = 1 23746 FS = "" 23747} 23748/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23749 line = \$ 0 23750 split(line, arg, " ") 23751 if (arg[1] == "#") { 23752 defundef = arg[2] 23753 mac1 = arg[3] 23754 } else { 23755 defundef = substr(arg[1], 2) 23756 mac1 = arg[2] 23757 } 23758 split(mac1, mac2, "(") #) 23759 macro = mac2[1] 23760 prefix = substr(line, 1, index(line, defundef) - 1) 23761 if (D_is_set[macro]) { 23762 # Preserve the white space surrounding the "#". 23763 print prefix "define", macro P[macro] D[macro] 23764 next 23765 } else { 23766 # Replace #undef with comments. This is necessary, for example, 23767 # in the case of _POSIX_SOURCE, which is predefined and required 23768 # on some systems where configure will not decide to define it. 23769 if (defundef == "undef") { 23770 print "/*", prefix defundef, macro, "*/" 23771 next 23772 } 23773 } 23774} 23775{ print } 23776_ACAWK 23777_ACEOF 23778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23779 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 23780$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 23781 { (exit 1); exit 1; }; } 23782fi # test -n "$CONFIG_HEADERS" 23783 23784 23785eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23786shift 23787for ac_tag 23788do 23789 case $ac_tag in 23790 :[FHLC]) ac_mode=$ac_tag; continue;; 23791 esac 23792 case $ac_mode$ac_tag in 23793 :[FHL]*:*);; 23794 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 23795$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 23796 { (exit 1); exit 1; }; };; 23797 :[FH]-) ac_tag=-:-;; 23798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23799 esac 23800 ac_save_IFS=$IFS 23801 IFS=: 23802 set x $ac_tag 23803 IFS=$ac_save_IFS 23804 shift 23805 ac_file=$1 23806 shift 23807 23808 case $ac_mode in 23809 :L) ac_source=$1;; 23810 :[FH]) 23811 ac_file_inputs= 23812 for ac_f 23813 do 23814 case $ac_f in 23815 -) ac_f="$tmp/stdin";; 23816 *) # Look for the file first in the build tree, then in the source tree 23817 # (if the path is not absolute). The absolute path cannot be DOS-style, 23818 # because $ac_f cannot contain `:'. 23819 test -f "$ac_f" || 23820 case $ac_f in 23821 [\\/$]*) false;; 23822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23823 esac || 23824 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23825$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23826 { (exit 1); exit 1; }; };; 23827 esac 23828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23829 ac_file_inputs="$ac_file_inputs '$ac_f'" 23830 done 23831 23832 # Let's still pretend it is `configure' which instantiates (i.e., don't 23833 # use $as_me), people would be surprised to read: 23834 # /* config.h. Generated by config.status. */ 23835 configure_input='Generated from '` 23836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23837 `' by configure.' 23838 if test x"$ac_file" != x-; then 23839 configure_input="$ac_file. $configure_input" 23840 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 23841$as_echo "$as_me: creating $ac_file" >&6;} 23842 fi 23843 # Neutralize special characters interpreted by sed in replacement strings. 23844 case $configure_input in #( 23845 *\&* | *\|* | *\\* ) 23846 ac_sed_conf_input=`$as_echo "$configure_input" | 23847 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23848 *) ac_sed_conf_input=$configure_input;; 23849 esac 23850 23851 case $ac_tag in 23852 *:-:* | *:-) cat >"$tmp/stdin" \ 23853 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 23854$as_echo "$as_me: error: could not create $ac_file" >&2;} 23855 { (exit 1); exit 1; }; } ;; 23856 esac 23857 ;; 23858 esac 23859 23860 ac_dir=`$as_dirname -- "$ac_file" || 23861$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23862 X"$ac_file" : 'X\(//\)[^/]' \| \ 23863 X"$ac_file" : 'X\(//\)$' \| \ 23864 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23865$as_echo X"$ac_file" | 23866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23867 s//\1/ 23868 q 23869 } 23870 /^X\(\/\/\)[^/].*/{ 23871 s//\1/ 23872 q 23873 } 23874 /^X\(\/\/\)$/{ 23875 s//\1/ 23876 q 23877 } 23878 /^X\(\/\).*/{ 23879 s//\1/ 23880 q 23881 } 23882 s/.*/./; q'` 23883 { as_dir="$ac_dir" 23884 case $as_dir in #( 23885 -*) as_dir=./$as_dir;; 23886 esac 23887 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23888 as_dirs= 23889 while :; do 23890 case $as_dir in #( 23891 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23892 *) as_qdir=$as_dir;; 23893 esac 23894 as_dirs="'$as_qdir' $as_dirs" 23895 as_dir=`$as_dirname -- "$as_dir" || 23896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23897 X"$as_dir" : 'X\(//\)[^/]' \| \ 23898 X"$as_dir" : 'X\(//\)$' \| \ 23899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23900$as_echo X"$as_dir" | 23901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23902 s//\1/ 23903 q 23904 } 23905 /^X\(\/\/\)[^/].*/{ 23906 s//\1/ 23907 q 23908 } 23909 /^X\(\/\/\)$/{ 23910 s//\1/ 23911 q 23912 } 23913 /^X\(\/\).*/{ 23914 s//\1/ 23915 q 23916 } 23917 s/.*/./; q'` 23918 test -d "$as_dir" && break 23919 done 23920 test -z "$as_dirs" || eval "mkdir $as_dirs" 23921 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23922$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 23923 { (exit 1); exit 1; }; }; } 23924 ac_builddir=. 23925 23926case "$ac_dir" in 23927.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23928*) 23929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23930 # A ".." for each directory in $ac_dir_suffix. 23931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23932 case $ac_top_builddir_sub in 23933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23935 esac ;; 23936esac 23937ac_abs_top_builddir=$ac_pwd 23938ac_abs_builddir=$ac_pwd$ac_dir_suffix 23939# for backward compatibility: 23940ac_top_builddir=$ac_top_build_prefix 23941 23942case $srcdir in 23943 .) # We are building in place. 23944 ac_srcdir=. 23945 ac_top_srcdir=$ac_top_builddir_sub 23946 ac_abs_top_srcdir=$ac_pwd ;; 23947 [\\/]* | ?:[\\/]* ) # Absolute name. 23948 ac_srcdir=$srcdir$ac_dir_suffix; 23949 ac_top_srcdir=$srcdir 23950 ac_abs_top_srcdir=$srcdir ;; 23951 *) # Relative name. 23952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23953 ac_top_srcdir=$ac_top_build_prefix$srcdir 23954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23955esac 23956ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23957 23958 23959 case $ac_mode in 23960 :F) 23961 # 23962 # CONFIG_FILE 23963 # 23964 23965 case $INSTALL in 23966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23968 esac 23969 ac_MKDIR_P=$MKDIR_P 23970 case $MKDIR_P in 23971 [\\/$]* | ?:[\\/]* ) ;; 23972 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23973 esac 23974_ACEOF 23975 23976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23977# If the template does not know about datarootdir, expand it. 23978# FIXME: This hack should be removed a few years after 2.60. 23979ac_datarootdir_hack=; ac_datarootdir_seen= 23980 23981ac_sed_dataroot=' 23982/datarootdir/ { 23983 p 23984 q 23985} 23986/@datadir@/p 23987/@docdir@/p 23988/@infodir@/p 23989/@localedir@/p 23990/@mandir@/p 23991' 23992case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23993*datarootdir*) ac_datarootdir_seen=yes;; 23994*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23995 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23996$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23997_ACEOF 23998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23999 ac_datarootdir_hack=' 24000 s&@datadir@&$datadir&g 24001 s&@docdir@&$docdir&g 24002 s&@infodir@&$infodir&g 24003 s&@localedir@&$localedir&g 24004 s&@mandir@&$mandir&g 24005 s&\\\${datarootdir}&$datarootdir&g' ;; 24006esac 24007_ACEOF 24008 24009# Neutralize VPATH when `$srcdir' = `.'. 24010# Shell code in configure.ac might set extrasub. 24011# FIXME: do we really want to maintain this feature? 24012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24013ac_sed_extra="$ac_vpsub 24014$extrasub 24015_ACEOF 24016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24017:t 24018/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24019s|@configure_input@|$ac_sed_conf_input|;t t 24020s&@top_builddir@&$ac_top_builddir_sub&;t t 24021s&@top_build_prefix@&$ac_top_build_prefix&;t t 24022s&@srcdir@&$ac_srcdir&;t t 24023s&@abs_srcdir@&$ac_abs_srcdir&;t t 24024s&@top_srcdir@&$ac_top_srcdir&;t t 24025s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24026s&@builddir@&$ac_builddir&;t t 24027s&@abs_builddir@&$ac_abs_builddir&;t t 24028s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24029s&@INSTALL@&$ac_INSTALL&;t t 24030s&@MKDIR_P@&$ac_MKDIR_P&;t t 24031$ac_datarootdir_hack 24032" 24033eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 24034 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24035$as_echo "$as_me: error: could not create $ac_file" >&2;} 24036 { (exit 1); exit 1; }; } 24037 24038test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24039 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24040 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24041 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24042which seems to be undefined. Please make sure it is defined." >&5 24043$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24044which seems to be undefined. Please make sure it is defined." >&2;} 24045 24046 rm -f "$tmp/stdin" 24047 case $ac_file in 24048 -) cat "$tmp/out" && rm -f "$tmp/out";; 24049 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 24050 esac \ 24051 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24052$as_echo "$as_me: error: could not create $ac_file" >&2;} 24053 { (exit 1); exit 1; }; } 24054 ;; 24055 :H) 24056 # 24057 # CONFIG_HEADER 24058 # 24059 if test x"$ac_file" != x-; then 24060 { 24061 $as_echo "/* $configure_input */" \ 24062 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 24063 } >"$tmp/config.h" \ 24064 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24065$as_echo "$as_me: error: could not create $ac_file" >&2;} 24066 { (exit 1); exit 1; }; } 24067 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 24068 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24069$as_echo "$as_me: $ac_file is unchanged" >&6;} 24070 else 24071 rm -f "$ac_file" 24072 mv "$tmp/config.h" "$ac_file" \ 24073 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 24074$as_echo "$as_me: error: could not create $ac_file" >&2;} 24075 { (exit 1); exit 1; }; } 24076 fi 24077 else 24078 $as_echo "/* $configure_input */" \ 24079 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 24080 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 24081$as_echo "$as_me: error: could not create -" >&2;} 24082 { (exit 1); exit 1; }; } 24083 fi 24084# Compute "$ac_file"'s index in $config_headers. 24085_am_arg="$ac_file" 24086_am_stamp_count=1 24087for _am_header in $config_headers :; do 24088 case $_am_header in 24089 $_am_arg | $_am_arg:* ) 24090 break ;; 24091 * ) 24092 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24093 esac 24094done 24095echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24096$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24097 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24098 X"$_am_arg" : 'X\(//\)$' \| \ 24099 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24100$as_echo X"$_am_arg" | 24101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24102 s//\1/ 24103 q 24104 } 24105 /^X\(\/\/\)[^/].*/{ 24106 s//\1/ 24107 q 24108 } 24109 /^X\(\/\/\)$/{ 24110 s//\1/ 24111 q 24112 } 24113 /^X\(\/\).*/{ 24114 s//\1/ 24115 q 24116 } 24117 s/.*/./; q'`/stamp-h$_am_stamp_count 24118 ;; 24119 24120 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 24121$as_echo "$as_me: executing $ac_file commands" >&6;} 24122 ;; 24123 esac 24124 24125 24126 case $ac_file$ac_mode in 24127 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24128 # Strip MF so we end up with the name of the file. 24129 mf=`echo "$mf" | sed -e 's/:.*$//'` 24130 # Check whether this is an Automake generated Makefile or not. 24131 # We used to match only the files named `Makefile.in', but 24132 # some people rename them; so instead we look at the file content. 24133 # Grep'ing the first line is not enough: some people post-process 24134 # each Makefile.in and add a new line on top of each file to say so. 24135 # Grep'ing the whole file is not good either: AIX grep has a line 24136 # limit of 2048, but all sed's we know have understand at least 4000. 24137 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24138 dirpart=`$as_dirname -- "$mf" || 24139$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24140 X"$mf" : 'X\(//\)[^/]' \| \ 24141 X"$mf" : 'X\(//\)$' \| \ 24142 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24143$as_echo X"$mf" | 24144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24145 s//\1/ 24146 q 24147 } 24148 /^X\(\/\/\)[^/].*/{ 24149 s//\1/ 24150 q 24151 } 24152 /^X\(\/\/\)$/{ 24153 s//\1/ 24154 q 24155 } 24156 /^X\(\/\).*/{ 24157 s//\1/ 24158 q 24159 } 24160 s/.*/./; q'` 24161 else 24162 continue 24163 fi 24164 # Extract the definition of DEPDIR, am__include, and am__quote 24165 # from the Makefile without running `make'. 24166 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24167 test -z "$DEPDIR" && continue 24168 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24169 test -z "am__include" && continue 24170 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24171 # When using ansi2knr, U may be empty or an underscore; expand it 24172 U=`sed -n 's/^U = //p' < "$mf"` 24173 # Find all dependency output files, they are included files with 24174 # $(DEPDIR) in their names. We invoke sed twice because it is the 24175 # simplest approach to changing $(DEPDIR) to its actual value in the 24176 # expansion. 24177 for file in `sed -n " 24178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24180 # Make sure the directory exists. 24181 test -f "$dirpart/$file" && continue 24182 fdir=`$as_dirname -- "$file" || 24183$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24184 X"$file" : 'X\(//\)[^/]' \| \ 24185 X"$file" : 'X\(//\)$' \| \ 24186 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24187$as_echo X"$file" | 24188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24189 s//\1/ 24190 q 24191 } 24192 /^X\(\/\/\)[^/].*/{ 24193 s//\1/ 24194 q 24195 } 24196 /^X\(\/\/\)$/{ 24197 s//\1/ 24198 q 24199 } 24200 /^X\(\/\).*/{ 24201 s//\1/ 24202 q 24203 } 24204 s/.*/./; q'` 24205 { as_dir=$dirpart/$fdir 24206 case $as_dir in #( 24207 -*) as_dir=./$as_dir;; 24208 esac 24209 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24210 as_dirs= 24211 while :; do 24212 case $as_dir in #( 24213 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24214 *) as_qdir=$as_dir;; 24215 esac 24216 as_dirs="'$as_qdir' $as_dirs" 24217 as_dir=`$as_dirname -- "$as_dir" || 24218$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24219 X"$as_dir" : 'X\(//\)[^/]' \| \ 24220 X"$as_dir" : 'X\(//\)$' \| \ 24221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24222$as_echo X"$as_dir" | 24223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24224 s//\1/ 24225 q 24226 } 24227 /^X\(\/\/\)[^/].*/{ 24228 s//\1/ 24229 q 24230 } 24231 /^X\(\/\/\)$/{ 24232 s//\1/ 24233 q 24234 } 24235 /^X\(\/\).*/{ 24236 s//\1/ 24237 q 24238 } 24239 s/.*/./; q'` 24240 test -d "$as_dir" && break 24241 done 24242 test -z "$as_dirs" || eval "mkdir $as_dirs" 24243 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24244$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 24245 { (exit 1); exit 1; }; }; } 24246 # echo "creating $dirpart/$file" 24247 echo '# dummy' > "$dirpart/$file" 24248 done 24249done 24250 ;; 24251 "libtool_hack":C) 24252 cp -f libtool libtool_ 24253 test -z "$SED" && SED=sed 24254 $SED '1,/^soname_spec/{ 24255/^soname_spec/i\ 24256# X.Org hack to match monolithic Xaw SONAME\ 24257xorglibxawname="libXaw" 24258/^soname_spec/s/libname/xorglibxawname/ 24259}' libtool_ > libtool 24260 rm -f libtool_ 24261 ;; 24262 24263 esac 24264done # for ac_tag 24265 24266 24267{ (exit 0); exit 0; } 24268_ACEOF 24269chmod +x $CONFIG_STATUS 24270ac_clean_files=$ac_clean_files_save 24271 24272test $ac_write_fail = 0 || 24273 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 24274$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 24275 { (exit 1); exit 1; }; } 24276 24277 24278# configure is writing to config.log, and then calls config.status. 24279# config.status does its own redirection, appending to config.log. 24280# Unfortunately, on DOS this fails, as config.log is still kept open 24281# by configure, so config.status won't be able to write to it; its 24282# output is simply discarded. So we exec the FD to /dev/null, 24283# effectively closing config.log, so it can be properly (re)opened and 24284# appended to by config.status. When coming back to configure, we 24285# need to make the FD available again. 24286if test "$no_create" != yes; then 24287 ac_cs_success=: 24288 ac_config_status_args= 24289 test "$silent" = yes && 24290 ac_config_status_args="$ac_config_status_args --quiet" 24291 exec 5>/dev/null 24292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24293 exec 5>>config.log 24294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24295 # would make configure fail if this is the last instruction. 24296 $ac_cs_success || { (exit 1); exit 1; } 24297fi 24298if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24299 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24300$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24301fi 24302 24303fi 24304 24305if test "x$build_v7" = xyes; then 24306 ac_config_files="$ac_config_files xaw7.pc" 24307 24308cat >confcache <<\_ACEOF 24309# This file is a shell script that caches the results of configure 24310# tests run on this system so they can be shared between configure 24311# scripts and configure runs, see configure's option --config-cache. 24312# It is not useful on other systems. If it contains results you don't 24313# want to keep, you may remove or edit it. 24314# 24315# config.status only pays attention to the cache file if you give it 24316# the --recheck option to rerun configure. 24317# 24318# `ac_cv_env_foo' variables (set or unset) will be overridden when 24319# loading this file, other *unset* `ac_cv_foo' will be assigned the 24320# following values. 24321 24322_ACEOF 24323 24324# The following way of writing the cache mishandles newlines in values, 24325# but we know of no workaround that is simple, portable, and efficient. 24326# So, we kill variables containing newlines. 24327# Ultrix sh set writes to stderr and can't be redirected directly, 24328# and sets the high bit in the cache file unless we assign to the vars. 24329( 24330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24331 eval ac_val=\$$ac_var 24332 case $ac_val in #( 24333 *${as_nl}*) 24334 case $ac_var in #( 24335 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 24336$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24337 esac 24338 case $ac_var in #( 24339 _ | IFS | as_nl) ;; #( 24340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24341 *) $as_unset $ac_var ;; 24342 esac ;; 24343 esac 24344 done 24345 24346 (set) 2>&1 | 24347 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24348 *${as_nl}ac_space=\ *) 24349 # `set' does not quote correctly, so add quotes (double-quote 24350 # substitution turns \\\\ into \\, and sed turns \\ into \). 24351 sed -n \ 24352 "s/'/'\\\\''/g; 24353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24354 ;; #( 24355 *) 24356 # `set' quotes correctly as required by POSIX, so do not add quotes. 24357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24358 ;; 24359 esac | 24360 sort 24361) | 24362 sed ' 24363 /^ac_cv_env_/b end 24364 t clear 24365 :clear 24366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24367 t end 24368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24369 :end' >>confcache 24370if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24371 if test -w "$cache_file"; then 24372 test "x$cache_file" != "x/dev/null" && 24373 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 24374$as_echo "$as_me: updating cache $cache_file" >&6;} 24375 cat confcache >$cache_file 24376 else 24377 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 24378$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24379 fi 24380fi 24381rm -f confcache 24382 24383test "x$prefix" = xNONE && prefix=$ac_default_prefix 24384# Let make expand exec_prefix. 24385test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24386 24387DEFS=-DHAVE_CONFIG_H 24388 24389ac_libobjs= 24390ac_ltlibobjs= 24391for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24392 # 1. Remove the extension, and $U if already installed. 24393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24394 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24396 # will be set to the directory where LIBOBJS objects are built. 24397 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24398 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 24399done 24400LIBOBJS=$ac_libobjs 24401 24402LTLIBOBJS=$ac_ltlibobjs 24403 24404 24405if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 24406 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 24407Usually this means the macro was only invoked conditionally." >&5 24408$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 24409Usually this means the macro was only invoked conditionally." >&2;} 24410 { (exit 1); exit 1; }; } 24411fi 24412if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 24413 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 24414Usually this means the macro was only invoked conditionally." >&5 24415$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 24416Usually this means the macro was only invoked conditionally." >&2;} 24417 { (exit 1); exit 1; }; } 24418fi 24419if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 24420 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 24421Usually this means the macro was only invoked conditionally." >&5 24422$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 24423Usually this means the macro was only invoked conditionally." >&2;} 24424 { (exit 1); exit 1; }; } 24425fi 24426if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then 24427 { { $as_echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined. 24428Usually this means the macro was only invoked conditionally." >&5 24429$as_echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined. 24430Usually this means the macro was only invoked conditionally." >&2;} 24431 { (exit 1); exit 1; }; } 24432fi 24433if test -z "${BUILD_XAW6_TRUE}" && test -z "${BUILD_XAW6_FALSE}"; then 24434 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XAW6\" was never defined. 24435Usually this means the macro was only invoked conditionally." >&5 24436$as_echo "$as_me: error: conditional \"BUILD_XAW6\" was never defined. 24437Usually this means the macro was only invoked conditionally." >&2;} 24438 { (exit 1); exit 1; }; } 24439fi 24440if test -z "${BUILD_XAW7_TRUE}" && test -z "${BUILD_XAW7_FALSE}"; then 24441 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_XAW7\" was never defined. 24442Usually this means the macro was only invoked conditionally." >&5 24443$as_echo "$as_me: error: conditional \"BUILD_XAW7\" was never defined. 24444Usually this means the macro was only invoked conditionally." >&2;} 24445 { (exit 1); exit 1; }; } 24446fi 24447 24448: ${CONFIG_STATUS=./config.status} 24449ac_write_fail=0 24450ac_clean_files_save=$ac_clean_files 24451ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24452{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 24453$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24454cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24455#! $SHELL 24456# Generated by $as_me. 24457# Run this file to recreate the current configuration. 24458# Compiler output produced by configure, useful for debugging 24459# configure, is in config.log if it exists. 24460 24461debug=false 24462ac_cs_recheck=false 24463ac_cs_silent=false 24464SHELL=\${CONFIG_SHELL-$SHELL} 24465_ACEOF 24466 24467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24468## --------------------- ## 24469## M4sh Initialization. ## 24470## --------------------- ## 24471 24472# Be more Bourne compatible 24473DUALCASE=1; export DUALCASE # for MKS sh 24474if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 24475 emulate sh 24476 NULLCMD=: 24477 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24478 # is contrary to our usage. Disable this feature. 24479 alias -g '${1+"$@"}'='"$@"' 24480 setopt NO_GLOB_SUBST 24481else 24482 case `(set -o) 2>/dev/null` in 24483 *posix*) set -o posix ;; 24484esac 24485 24486fi 24487 24488 24489 24490 24491# PATH needs CR 24492# Avoid depending upon Character Ranges. 24493as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24494as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24495as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24496as_cr_digits='0123456789' 24497as_cr_alnum=$as_cr_Letters$as_cr_digits 24498 24499as_nl=' 24500' 24501export as_nl 24502# Printing a long string crashes Solaris 7 /usr/bin/printf. 24503as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24504as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24505as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24506if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24507 as_echo='printf %s\n' 24508 as_echo_n='printf %s' 24509else 24510 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24511 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24512 as_echo_n='/usr/ucb/echo -n' 24513 else 24514 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24515 as_echo_n_body='eval 24516 arg=$1; 24517 case $arg in 24518 *"$as_nl"*) 24519 expr "X$arg" : "X\\(.*\\)$as_nl"; 24520 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24521 esac; 24522 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24523 ' 24524 export as_echo_n_body 24525 as_echo_n='sh -c $as_echo_n_body as_echo' 24526 fi 24527 export as_echo_body 24528 as_echo='sh -c $as_echo_body as_echo' 24529fi 24530 24531# The user is always right. 24532if test "${PATH_SEPARATOR+set}" != set; then 24533 PATH_SEPARATOR=: 24534 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24535 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24536 PATH_SEPARATOR=';' 24537 } 24538fi 24539 24540# Support unset when possible. 24541if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 24542 as_unset=unset 24543else 24544 as_unset=false 24545fi 24546 24547 24548# IFS 24549# We need space, tab and new line, in precisely that order. Quoting is 24550# there to prevent editors from complaining about space-tab. 24551# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24552# splitting by setting IFS to empty value.) 24553IFS=" "" $as_nl" 24554 24555# Find who we are. Look in the path if we contain no directory separator. 24556case $0 in 24557 *[\\/]* ) as_myself=$0 ;; 24558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24559for as_dir in $PATH 24560do 24561 IFS=$as_save_IFS 24562 test -z "$as_dir" && as_dir=. 24563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24564done 24565IFS=$as_save_IFS 24566 24567 ;; 24568esac 24569# We did not find ourselves, most probably we were run as `sh COMMAND' 24570# in which case we are not to be found in the path. 24571if test "x$as_myself" = x; then 24572 as_myself=$0 24573fi 24574if test ! -f "$as_myself"; then 24575 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24576 { (exit 1); exit 1; } 24577fi 24578 24579# Work around bugs in pre-3.0 UWIN ksh. 24580for as_var in ENV MAIL MAILPATH 24581do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 24582done 24583PS1='$ ' 24584PS2='> ' 24585PS4='+ ' 24586 24587# NLS nuisances. 24588LC_ALL=C 24589export LC_ALL 24590LANGUAGE=C 24591export LANGUAGE 24592 24593# Required to use basename. 24594if expr a : '\(a\)' >/dev/null 2>&1 && 24595 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24596 as_expr=expr 24597else 24598 as_expr=false 24599fi 24600 24601if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24602 as_basename=basename 24603else 24604 as_basename=false 24605fi 24606 24607 24608# Name of the executable. 24609as_me=`$as_basename -- "$0" || 24610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24611 X"$0" : 'X\(//\)$' \| \ 24612 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24613$as_echo X/"$0" | 24614 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24615 s//\1/ 24616 q 24617 } 24618 /^X\/\(\/\/\)$/{ 24619 s//\1/ 24620 q 24621 } 24622 /^X\/\(\/\).*/{ 24623 s//\1/ 24624 q 24625 } 24626 s/.*/./; q'` 24627 24628# CDPATH. 24629$as_unset CDPATH 24630 24631 24632 24633 as_lineno_1=$LINENO 24634 as_lineno_2=$LINENO 24635 test "x$as_lineno_1" != "x$as_lineno_2" && 24636 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 24637 24638 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 24639 # uniformly replaced by the line number. The first 'sed' inserts a 24640 # line-number line after each line using $LINENO; the second 'sed' 24641 # does the real work. The second script uses 'N' to pair each 24642 # line-number line with the line containing $LINENO, and appends 24643 # trailing '-' during substitution so that $LINENO is not a special 24644 # case at line end. 24645 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 24646 # scripts with optimization help from Paolo Bonzini. Blame Lee 24647 # E. McMahon (1931-1989) for sed's syntax. :-) 24648 sed -n ' 24649 p 24650 /[$]LINENO/= 24651 ' <$as_myself | 24652 sed ' 24653 s/[$]LINENO.*/&-/ 24654 t lineno 24655 b 24656 :lineno 24657 N 24658 :loop 24659 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 24660 t loop 24661 s/-\n.*// 24662 ' >$as_me.lineno && 24663 chmod +x "$as_me.lineno" || 24664 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 24665 { (exit 1); exit 1; }; } 24666 24667 # Don't try to exec as it changes $[0], causing all sort of problems 24668 # (the dirname of $[0] is not the place where we might find the 24669 # original and so on. Autoconf is especially sensitive to this). 24670 . "./$as_me.lineno" 24671 # Exit status is that of the last command. 24672 exit 24673} 24674 24675 24676if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24677 as_dirname=dirname 24678else 24679 as_dirname=false 24680fi 24681 24682ECHO_C= ECHO_N= ECHO_T= 24683case `echo -n x` in 24684-n*) 24685 case `echo 'x\c'` in 24686 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24687 *) ECHO_C='\c';; 24688 esac;; 24689*) 24690 ECHO_N='-n';; 24691esac 24692if expr a : '\(a\)' >/dev/null 2>&1 && 24693 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24694 as_expr=expr 24695else 24696 as_expr=false 24697fi 24698 24699rm -f conf$$ conf$$.exe conf$$.file 24700if test -d conf$$.dir; then 24701 rm -f conf$$.dir/conf$$.file 24702else 24703 rm -f conf$$.dir 24704 mkdir conf$$.dir 2>/dev/null 24705fi 24706if (echo >conf$$.file) 2>/dev/null; then 24707 if ln -s conf$$.file conf$$ 2>/dev/null; then 24708 as_ln_s='ln -s' 24709 # ... but there are two gotchas: 24710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24712 # In both cases, we have to default to `cp -p'. 24713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24714 as_ln_s='cp -p' 24715 elif ln conf$$.file conf$$ 2>/dev/null; then 24716 as_ln_s=ln 24717 else 24718 as_ln_s='cp -p' 24719 fi 24720else 24721 as_ln_s='cp -p' 24722fi 24723rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24724rmdir conf$$.dir 2>/dev/null 24725 24726if mkdir -p . 2>/dev/null; then 24727 as_mkdir_p=: 24728else 24729 test -d ./-p && rmdir ./-p 24730 as_mkdir_p=false 24731fi 24732 24733if test -x / >/dev/null 2>&1; then 24734 as_test_x='test -x' 24735else 24736 if ls -dL / >/dev/null 2>&1; then 24737 as_ls_L_option=L 24738 else 24739 as_ls_L_option= 24740 fi 24741 as_test_x=' 24742 eval sh -c '\'' 24743 if test -d "$1"; then 24744 test -d "$1/."; 24745 else 24746 case $1 in 24747 -*)set "./$1";; 24748 esac; 24749 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 24750 ???[sx]*):;;*)false;;esac;fi 24751 '\'' sh 24752 ' 24753fi 24754as_executable_p=$as_test_x 24755 24756# Sed expression to map a string onto a valid CPP name. 24757as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24758 24759# Sed expression to map a string onto a valid variable name. 24760as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24761 24762 24763exec 6>&1 24764 24765# Save the log message, to keep $[0] and so on meaningful, and to 24766# report actual input values of CONFIG_FILES etc. instead of their 24767# values after options handling. 24768ac_log=" 24769This file was extended by libXaw $as_me 1.0.5, which was 24770generated by GNU Autoconf 2.63. Invocation command line was 24771 24772 CONFIG_FILES = $CONFIG_FILES 24773 CONFIG_HEADERS = $CONFIG_HEADERS 24774 CONFIG_LINKS = $CONFIG_LINKS 24775 CONFIG_COMMANDS = $CONFIG_COMMANDS 24776 $ $0 $@ 24777 24778on `(hostname || uname -n) 2>/dev/null | sed 1q` 24779" 24780 24781_ACEOF 24782 24783case $ac_config_files in *" 24784"*) set x $ac_config_files; shift; ac_config_files=$*;; 24785esac 24786 24787case $ac_config_headers in *" 24788"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24789esac 24790 24791 24792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24793# Files that config.status was made for. 24794config_files="`echo $ac_config_files`" 24795config_headers="`echo $ac_config_headers`" 24796config_commands="`echo $ac_config_commands`" 24797 24798_ACEOF 24799 24800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24801ac_cs_usage="\ 24802\`$as_me' instantiates files from templates according to the 24803current configuration. 24804 24805Usage: $0 [OPTION]... [FILE]... 24806 24807 -h, --help print this help, then exit 24808 -V, --version print version number and configuration settings, then exit 24809 -q, --quiet, --silent 24810 do not print progress messages 24811 -d, --debug don't remove temporary files 24812 --recheck update $as_me by reconfiguring in the same conditions 24813 --file=FILE[:TEMPLATE] 24814 instantiate the configuration file FILE 24815 --header=FILE[:TEMPLATE] 24816 instantiate the configuration header FILE 24817 24818Configuration files: 24819$config_files 24820 24821Configuration headers: 24822$config_headers 24823 24824Configuration commands: 24825$config_commands 24826 24827Report bugs to <bug-autoconf@gnu.org>." 24828 24829_ACEOF 24830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24831ac_cs_version="\\ 24832libXaw config.status 1.0.5 24833configured by $0, generated by GNU Autoconf 2.63, 24834 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 24835 24836Copyright (C) 2008 Free Software Foundation, Inc. 24837This config.status script is free software; the Free Software Foundation 24838gives unlimited permission to copy, distribute and modify it." 24839 24840ac_pwd='$ac_pwd' 24841srcdir='$srcdir' 24842INSTALL='$INSTALL' 24843MKDIR_P='$MKDIR_P' 24844AWK='$AWK' 24845test -n "\$AWK" || AWK=awk 24846_ACEOF 24847 24848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24849# The default lists apply if the user does not specify any file. 24850ac_need_defaults=: 24851while test $# != 0 24852do 24853 case $1 in 24854 --*=*) 24855 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24856 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24857 ac_shift=: 24858 ;; 24859 *) 24860 ac_option=$1 24861 ac_optarg=$2 24862 ac_shift=shift 24863 ;; 24864 esac 24865 24866 case $ac_option in 24867 # Handling of the options. 24868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24869 ac_cs_recheck=: ;; 24870 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24871 $as_echo "$ac_cs_version"; exit ;; 24872 --debug | --debu | --deb | --de | --d | -d ) 24873 debug=: ;; 24874 --file | --fil | --fi | --f ) 24875 $ac_shift 24876 case $ac_optarg in 24877 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24878 esac 24879 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 24880 ac_need_defaults=false;; 24881 --header | --heade | --head | --hea ) 24882 $ac_shift 24883 case $ac_optarg in 24884 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24885 esac 24886 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 24887 ac_need_defaults=false;; 24888 --he | --h) 24889 # Conflict between --help and --header 24890 { $as_echo "$as_me: error: ambiguous option: $1 24891Try \`$0 --help' for more information." >&2 24892 { (exit 1); exit 1; }; };; 24893 --help | --hel | -h ) 24894 $as_echo "$ac_cs_usage"; exit ;; 24895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24896 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24897 ac_cs_silent=: ;; 24898 24899 # This is an error. 24900 -*) { $as_echo "$as_me: error: unrecognized option: $1 24901Try \`$0 --help' for more information." >&2 24902 { (exit 1); exit 1; }; } ;; 24903 24904 *) ac_config_targets="$ac_config_targets $1" 24905 ac_need_defaults=false ;; 24906 24907 esac 24908 shift 24909done 24910 24911ac_configure_extra_args= 24912 24913if $ac_cs_silent; then 24914 exec 6>/dev/null 24915 ac_configure_extra_args="$ac_configure_extra_args --silent" 24916fi 24917 24918_ACEOF 24919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24920if \$ac_cs_recheck; then 24921 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24922 shift 24923 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 24924 CONFIG_SHELL='$SHELL' 24925 export CONFIG_SHELL 24926 exec "\$@" 24927fi 24928 24929_ACEOF 24930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24931exec 5>>config.log 24932{ 24933 echo 24934 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24935## Running $as_me. ## 24936_ASBOX 24937 $as_echo "$ac_log" 24938} >&5 24939 24940_ACEOF 24941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24942# 24943# INIT-COMMANDS 24944# 24945AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24946 24947_ACEOF 24948 24949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24950 24951# Handling of arguments. 24952for ac_config_target in $ac_config_targets 24953do 24954 case $ac_config_target in 24955 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24956 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24957 "libtool_hack") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool_hack" ;; 24958 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24959 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24960 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 24961 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24962 "xaw6.pc") CONFIG_FILES="$CONFIG_FILES xaw6.pc" ;; 24963 "xaw7.pc") CONFIG_FILES="$CONFIG_FILES xaw7.pc" ;; 24964 24965 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24966$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24967 { (exit 1); exit 1; }; };; 24968 esac 24969done 24970 24971 24972# If the user did not use the arguments to specify the items to instantiate, 24973# then the envvar interface is used. Set only those that are not. 24974# We use the long form for the default assignment because of an extremely 24975# bizarre bug on SunOS 4.1.3. 24976if $ac_need_defaults; then 24977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24980fi 24981 24982# Have a temporary directory for convenience. Make it in the build tree 24983# simply because there is no reason against having it here, and in addition, 24984# creating and moving files from /tmp can sometimes cause problems. 24985# Hook for its removal unless debugging. 24986# Note that there is a small window in which the directory will not be cleaned: 24987# after its creation but before its name has been assigned to `$tmp'. 24988$debug || 24989{ 24990 tmp= 24991 trap 'exit_status=$? 24992 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24993' 0 24994 trap '{ (exit 1); exit 1; }' 1 2 13 15 24995} 24996# Create a (secure) tmp directory for tmp files. 24997 24998{ 24999 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25000 test -n "$tmp" && test -d "$tmp" 25001} || 25002{ 25003 tmp=./conf$$-$RANDOM 25004 (umask 077 && mkdir "$tmp") 25005} || 25006{ 25007 $as_echo "$as_me: cannot create a temporary directory in ." >&2 25008 { (exit 1); exit 1; } 25009} 25010 25011# Set up the scripts for CONFIG_FILES section. 25012# No need to generate them if there are no CONFIG_FILES. 25013# This happens for instance with `./config.status config.h'. 25014if test -n "$CONFIG_FILES"; then 25015 25016 25017ac_cr=' 25018' 25019ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25020if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25021 ac_cs_awk_cr='\\r' 25022else 25023 ac_cs_awk_cr=$ac_cr 25024fi 25025 25026echo 'BEGIN {' >"$tmp/subs1.awk" && 25027_ACEOF 25028 25029 25030{ 25031 echo "cat >conf$$subs.awk <<_ACEOF" && 25032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25033 echo "_ACEOF" 25034} >conf$$subs.sh || 25035 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 25036$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 25037 { (exit 1); exit 1; }; } 25038ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 25039ac_delim='%!_!# ' 25040for ac_last_try in false false false false false :; do 25041 . ./conf$$subs.sh || 25042 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 25043$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 25044 { (exit 1); exit 1; }; } 25045 25046 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25047 if test $ac_delim_n = $ac_delim_num; then 25048 break 25049 elif $ac_last_try; then 25050 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 25051$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 25052 { (exit 1); exit 1; }; } 25053 else 25054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25055 fi 25056done 25057rm -f conf$$subs.sh 25058 25059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25060cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 25061_ACEOF 25062sed -n ' 25063h 25064s/^/S["/; s/!.*/"]=/ 25065p 25066g 25067s/^[^!]*!// 25068:repl 25069t repl 25070s/'"$ac_delim"'$// 25071t delim 25072:nl 25073h 25074s/\(.\{148\}\).*/\1/ 25075t more1 25076s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25077p 25078n 25079b repl 25080:more1 25081s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25082p 25083g 25084s/.\{148\}// 25085t nl 25086:delim 25087h 25088s/\(.\{148\}\).*/\1/ 25089t more2 25090s/["\\]/\\&/g; s/^/"/; s/$/"/ 25091p 25092b 25093:more2 25094s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25095p 25096g 25097s/.\{148\}// 25098t delim 25099' <conf$$subs.awk | sed ' 25100/^[^""]/{ 25101 N 25102 s/\n// 25103} 25104' >>$CONFIG_STATUS || ac_write_fail=1 25105rm -f conf$$subs.awk 25106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25107_ACAWK 25108cat >>"\$tmp/subs1.awk" <<_ACAWK && 25109 for (key in S) S_is_set[key] = 1 25110 FS = "" 25111 25112} 25113{ 25114 line = $ 0 25115 nfields = split(line, field, "@") 25116 substed = 0 25117 len = length(field[1]) 25118 for (i = 2; i < nfields; i++) { 25119 key = field[i] 25120 keylen = length(key) 25121 if (S_is_set[key]) { 25122 value = S[key] 25123 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25124 len += length(value) + length(field[++i]) 25125 substed = 1 25126 } else 25127 len += 1 + keylen 25128 } 25129 25130 print line 25131} 25132 25133_ACAWK 25134_ACEOF 25135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25138else 25139 cat 25140fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 25141 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 25142$as_echo "$as_me: error: could not setup config files machinery" >&2;} 25143 { (exit 1); exit 1; }; } 25144_ACEOF 25145 25146# VPATH may cause trouble with some makes, so we remove $(srcdir), 25147# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 25148# trailing colons and then remove the whole line if VPATH becomes empty 25149# (actually we leave an empty line to preserve line numbers). 25150if test "x$srcdir" = x.; then 25151 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 25152s/:*\$(srcdir):*/:/ 25153s/:*\${srcdir}:*/:/ 25154s/:*@srcdir@:*/:/ 25155s/^\([^=]*=[ ]*\):*/\1/ 25156s/:*$// 25157s/^[^=]*=[ ]*$// 25158}' 25159fi 25160 25161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25162fi # test -n "$CONFIG_FILES" 25163 25164# Set up the scripts for CONFIG_HEADERS section. 25165# No need to generate them if there are no CONFIG_HEADERS. 25166# This happens for instance with `./config.status Makefile'. 25167if test -n "$CONFIG_HEADERS"; then 25168cat >"$tmp/defines.awk" <<\_ACAWK || 25169BEGIN { 25170_ACEOF 25171 25172# Transform confdefs.h into an awk script `defines.awk', embedded as 25173# here-document in config.status, that substitutes the proper values into 25174# config.h.in to produce config.h. 25175 25176# Create a delimiter string that does not exist in confdefs.h, to ease 25177# handling of long lines. 25178ac_delim='%!_!# ' 25179for ac_last_try in false false :; do 25180 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 25181 if test -z "$ac_t"; then 25182 break 25183 elif $ac_last_try; then 25184 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 25185$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 25186 { (exit 1); exit 1; }; } 25187 else 25188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25189 fi 25190done 25191 25192# For the awk script, D is an array of macro values keyed by name, 25193# likewise P contains macro parameters if any. Preserve backslash 25194# newline sequences. 25195 25196ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25197sed -n ' 25198s/.\{148\}/&'"$ac_delim"'/g 25199t rset 25200:rset 25201s/^[ ]*#[ ]*define[ ][ ]*/ / 25202t def 25203d 25204:def 25205s/\\$// 25206t bsnl 25207s/["\\]/\\&/g 25208s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25209D["\1"]=" \3"/p 25210s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25211d 25212:bsnl 25213s/["\\]/\\&/g 25214s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25215D["\1"]=" \3\\\\\\n"\\/p 25216t cont 25217s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25218t cont 25219d 25220:cont 25221n 25222s/.\{148\}/&'"$ac_delim"'/g 25223t clear 25224:clear 25225s/\\$// 25226t bsnlc 25227s/["\\]/\\&/g; s/^/"/; s/$/"/p 25228d 25229:bsnlc 25230s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25231b cont 25232' <confdefs.h | sed ' 25233s/'"$ac_delim"'/"\\\ 25234"/g' >>$CONFIG_STATUS || ac_write_fail=1 25235 25236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25237 for (key in D) D_is_set[key] = 1 25238 FS = "" 25239} 25240/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25241 line = \$ 0 25242 split(line, arg, " ") 25243 if (arg[1] == "#") { 25244 defundef = arg[2] 25245 mac1 = arg[3] 25246 } else { 25247 defundef = substr(arg[1], 2) 25248 mac1 = arg[2] 25249 } 25250 split(mac1, mac2, "(") #) 25251 macro = mac2[1] 25252 prefix = substr(line, 1, index(line, defundef) - 1) 25253 if (D_is_set[macro]) { 25254 # Preserve the white space surrounding the "#". 25255 print prefix "define", macro P[macro] D[macro] 25256 next 25257 } else { 25258 # Replace #undef with comments. This is necessary, for example, 25259 # in the case of _POSIX_SOURCE, which is predefined and required 25260 # on some systems where configure will not decide to define it. 25261 if (defundef == "undef") { 25262 print "/*", prefix defundef, macro, "*/" 25263 next 25264 } 25265 } 25266} 25267{ print } 25268_ACAWK 25269_ACEOF 25270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25271 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 25272$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 25273 { (exit 1); exit 1; }; } 25274fi # test -n "$CONFIG_HEADERS" 25275 25276 25277eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25278shift 25279for ac_tag 25280do 25281 case $ac_tag in 25282 :[FHLC]) ac_mode=$ac_tag; continue;; 25283 esac 25284 case $ac_mode$ac_tag in 25285 :[FHL]*:*);; 25286 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 25287$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 25288 { (exit 1); exit 1; }; };; 25289 :[FH]-) ac_tag=-:-;; 25290 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25291 esac 25292 ac_save_IFS=$IFS 25293 IFS=: 25294 set x $ac_tag 25295 IFS=$ac_save_IFS 25296 shift 25297 ac_file=$1 25298 shift 25299 25300 case $ac_mode in 25301 :L) ac_source=$1;; 25302 :[FH]) 25303 ac_file_inputs= 25304 for ac_f 25305 do 25306 case $ac_f in 25307 -) ac_f="$tmp/stdin";; 25308 *) # Look for the file first in the build tree, then in the source tree 25309 # (if the path is not absolute). The absolute path cannot be DOS-style, 25310 # because $ac_f cannot contain `:'. 25311 test -f "$ac_f" || 25312 case $ac_f in 25313 [\\/$]*) false;; 25314 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25315 esac || 25316 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 25317$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 25318 { (exit 1); exit 1; }; };; 25319 esac 25320 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25321 ac_file_inputs="$ac_file_inputs '$ac_f'" 25322 done 25323 25324 # Let's still pretend it is `configure' which instantiates (i.e., don't 25325 # use $as_me), people would be surprised to read: 25326 # /* config.h. Generated by config.status. */ 25327 configure_input='Generated from '` 25328 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25329 `' by configure.' 25330 if test x"$ac_file" != x-; then 25331 configure_input="$ac_file. $configure_input" 25332 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 25333$as_echo "$as_me: creating $ac_file" >&6;} 25334 fi 25335 # Neutralize special characters interpreted by sed in replacement strings. 25336 case $configure_input in #( 25337 *\&* | *\|* | *\\* ) 25338 ac_sed_conf_input=`$as_echo "$configure_input" | 25339 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25340 *) ac_sed_conf_input=$configure_input;; 25341 esac 25342 25343 case $ac_tag in 25344 *:-:* | *:-) cat >"$tmp/stdin" \ 25345 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25346$as_echo "$as_me: error: could not create $ac_file" >&2;} 25347 { (exit 1); exit 1; }; } ;; 25348 esac 25349 ;; 25350 esac 25351 25352 ac_dir=`$as_dirname -- "$ac_file" || 25353$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25354 X"$ac_file" : 'X\(//\)[^/]' \| \ 25355 X"$ac_file" : 'X\(//\)$' \| \ 25356 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25357$as_echo X"$ac_file" | 25358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25359 s//\1/ 25360 q 25361 } 25362 /^X\(\/\/\)[^/].*/{ 25363 s//\1/ 25364 q 25365 } 25366 /^X\(\/\/\)$/{ 25367 s//\1/ 25368 q 25369 } 25370 /^X\(\/\).*/{ 25371 s//\1/ 25372 q 25373 } 25374 s/.*/./; q'` 25375 { as_dir="$ac_dir" 25376 case $as_dir in #( 25377 -*) as_dir=./$as_dir;; 25378 esac 25379 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 25380 as_dirs= 25381 while :; do 25382 case $as_dir in #( 25383 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25384 *) as_qdir=$as_dir;; 25385 esac 25386 as_dirs="'$as_qdir' $as_dirs" 25387 as_dir=`$as_dirname -- "$as_dir" || 25388$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25389 X"$as_dir" : 'X\(//\)[^/]' \| \ 25390 X"$as_dir" : 'X\(//\)$' \| \ 25391 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25392$as_echo X"$as_dir" | 25393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25394 s//\1/ 25395 q 25396 } 25397 /^X\(\/\/\)[^/].*/{ 25398 s//\1/ 25399 q 25400 } 25401 /^X\(\/\/\)$/{ 25402 s//\1/ 25403 q 25404 } 25405 /^X\(\/\).*/{ 25406 s//\1/ 25407 q 25408 } 25409 s/.*/./; q'` 25410 test -d "$as_dir" && break 25411 done 25412 test -z "$as_dirs" || eval "mkdir $as_dirs" 25413 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 25414$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 25415 { (exit 1); exit 1; }; }; } 25416 ac_builddir=. 25417 25418case "$ac_dir" in 25419.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25420*) 25421 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25422 # A ".." for each directory in $ac_dir_suffix. 25423 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25424 case $ac_top_builddir_sub in 25425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25427 esac ;; 25428esac 25429ac_abs_top_builddir=$ac_pwd 25430ac_abs_builddir=$ac_pwd$ac_dir_suffix 25431# for backward compatibility: 25432ac_top_builddir=$ac_top_build_prefix 25433 25434case $srcdir in 25435 .) # We are building in place. 25436 ac_srcdir=. 25437 ac_top_srcdir=$ac_top_builddir_sub 25438 ac_abs_top_srcdir=$ac_pwd ;; 25439 [\\/]* | ?:[\\/]* ) # Absolute name. 25440 ac_srcdir=$srcdir$ac_dir_suffix; 25441 ac_top_srcdir=$srcdir 25442 ac_abs_top_srcdir=$srcdir ;; 25443 *) # Relative name. 25444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25445 ac_top_srcdir=$ac_top_build_prefix$srcdir 25446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25447esac 25448ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25449 25450 25451 case $ac_mode in 25452 :F) 25453 # 25454 # CONFIG_FILE 25455 # 25456 25457 case $INSTALL in 25458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25459 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25460 esac 25461 ac_MKDIR_P=$MKDIR_P 25462 case $MKDIR_P in 25463 [\\/$]* | ?:[\\/]* ) ;; 25464 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 25465 esac 25466_ACEOF 25467 25468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25469# If the template does not know about datarootdir, expand it. 25470# FIXME: This hack should be removed a few years after 2.60. 25471ac_datarootdir_hack=; ac_datarootdir_seen= 25472 25473ac_sed_dataroot=' 25474/datarootdir/ { 25475 p 25476 q 25477} 25478/@datadir@/p 25479/@docdir@/p 25480/@infodir@/p 25481/@localedir@/p 25482/@mandir@/p 25483' 25484case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25485*datarootdir*) ac_datarootdir_seen=yes;; 25486*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25487 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25488$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25489_ACEOF 25490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25491 ac_datarootdir_hack=' 25492 s&@datadir@&$datadir&g 25493 s&@docdir@&$docdir&g 25494 s&@infodir@&$infodir&g 25495 s&@localedir@&$localedir&g 25496 s&@mandir@&$mandir&g 25497 s&\\\${datarootdir}&$datarootdir&g' ;; 25498esac 25499_ACEOF 25500 25501# Neutralize VPATH when `$srcdir' = `.'. 25502# Shell code in configure.ac might set extrasub. 25503# FIXME: do we really want to maintain this feature? 25504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25505ac_sed_extra="$ac_vpsub 25506$extrasub 25507_ACEOF 25508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25509:t 25510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25511s|@configure_input@|$ac_sed_conf_input|;t t 25512s&@top_builddir@&$ac_top_builddir_sub&;t t 25513s&@top_build_prefix@&$ac_top_build_prefix&;t t 25514s&@srcdir@&$ac_srcdir&;t t 25515s&@abs_srcdir@&$ac_abs_srcdir&;t t 25516s&@top_srcdir@&$ac_top_srcdir&;t t 25517s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25518s&@builddir@&$ac_builddir&;t t 25519s&@abs_builddir@&$ac_abs_builddir&;t t 25520s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25521s&@INSTALL@&$ac_INSTALL&;t t 25522s&@MKDIR_P@&$ac_MKDIR_P&;t t 25523$ac_datarootdir_hack 25524" 25525eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 25526 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25527$as_echo "$as_me: error: could not create $ac_file" >&2;} 25528 { (exit 1); exit 1; }; } 25529 25530test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25531 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 25532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 25533 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25534which seems to be undefined. Please make sure it is defined." >&5 25535$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25536which seems to be undefined. Please make sure it is defined." >&2;} 25537 25538 rm -f "$tmp/stdin" 25539 case $ac_file in 25540 -) cat "$tmp/out" && rm -f "$tmp/out";; 25541 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 25542 esac \ 25543 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25544$as_echo "$as_me: error: could not create $ac_file" >&2;} 25545 { (exit 1); exit 1; }; } 25546 ;; 25547 :H) 25548 # 25549 # CONFIG_HEADER 25550 # 25551 if test x"$ac_file" != x-; then 25552 { 25553 $as_echo "/* $configure_input */" \ 25554 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 25555 } >"$tmp/config.h" \ 25556 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25557$as_echo "$as_me: error: could not create $ac_file" >&2;} 25558 { (exit 1); exit 1; }; } 25559 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 25560 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 25561$as_echo "$as_me: $ac_file is unchanged" >&6;} 25562 else 25563 rm -f "$ac_file" 25564 mv "$tmp/config.h" "$ac_file" \ 25565 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 25566$as_echo "$as_me: error: could not create $ac_file" >&2;} 25567 { (exit 1); exit 1; }; } 25568 fi 25569 else 25570 $as_echo "/* $configure_input */" \ 25571 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 25572 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 25573$as_echo "$as_me: error: could not create -" >&2;} 25574 { (exit 1); exit 1; }; } 25575 fi 25576# Compute "$ac_file"'s index in $config_headers. 25577_am_arg="$ac_file" 25578_am_stamp_count=1 25579for _am_header in $config_headers :; do 25580 case $_am_header in 25581 $_am_arg | $_am_arg:* ) 25582 break ;; 25583 * ) 25584 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25585 esac 25586done 25587echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 25588$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25589 X"$_am_arg" : 'X\(//\)[^/]' \| \ 25590 X"$_am_arg" : 'X\(//\)$' \| \ 25591 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 25592$as_echo X"$_am_arg" | 25593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25594 s//\1/ 25595 q 25596 } 25597 /^X\(\/\/\)[^/].*/{ 25598 s//\1/ 25599 q 25600 } 25601 /^X\(\/\/\)$/{ 25602 s//\1/ 25603 q 25604 } 25605 /^X\(\/\).*/{ 25606 s//\1/ 25607 q 25608 } 25609 s/.*/./; q'`/stamp-h$_am_stamp_count 25610 ;; 25611 25612 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 25613$as_echo "$as_me: executing $ac_file commands" >&6;} 25614 ;; 25615 esac 25616 25617 25618 case $ac_file$ac_mode in 25619 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 25620 # Strip MF so we end up with the name of the file. 25621 mf=`echo "$mf" | sed -e 's/:.*$//'` 25622 # Check whether this is an Automake generated Makefile or not. 25623 # We used to match only the files named `Makefile.in', but 25624 # some people rename them; so instead we look at the file content. 25625 # Grep'ing the first line is not enough: some people post-process 25626 # each Makefile.in and add a new line on top of each file to say so. 25627 # Grep'ing the whole file is not good either: AIX grep has a line 25628 # limit of 2048, but all sed's we know have understand at least 4000. 25629 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 25630 dirpart=`$as_dirname -- "$mf" || 25631$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25632 X"$mf" : 'X\(//\)[^/]' \| \ 25633 X"$mf" : 'X\(//\)$' \| \ 25634 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 25635$as_echo X"$mf" | 25636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25637 s//\1/ 25638 q 25639 } 25640 /^X\(\/\/\)[^/].*/{ 25641 s//\1/ 25642 q 25643 } 25644 /^X\(\/\/\)$/{ 25645 s//\1/ 25646 q 25647 } 25648 /^X\(\/\).*/{ 25649 s//\1/ 25650 q 25651 } 25652 s/.*/./; q'` 25653 else 25654 continue 25655 fi 25656 # Extract the definition of DEPDIR, am__include, and am__quote 25657 # from the Makefile without running `make'. 25658 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 25659 test -z "$DEPDIR" && continue 25660 am__include=`sed -n 's/^am__include = //p' < "$mf"` 25661 test -z "am__include" && continue 25662 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 25663 # When using ansi2knr, U may be empty or an underscore; expand it 25664 U=`sed -n 's/^U = //p' < "$mf"` 25665 # Find all dependency output files, they are included files with 25666 # $(DEPDIR) in their names. We invoke sed twice because it is the 25667 # simplest approach to changing $(DEPDIR) to its actual value in the 25668 # expansion. 25669 for file in `sed -n " 25670 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 25671 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 25672 # Make sure the directory exists. 25673 test -f "$dirpart/$file" && continue 25674 fdir=`$as_dirname -- "$file" || 25675$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25676 X"$file" : 'X\(//\)[^/]' \| \ 25677 X"$file" : 'X\(//\)$' \| \ 25678 X"$file" : 'X\(/\)' \| . 2>/dev/null || 25679$as_echo X"$file" | 25680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25681 s//\1/ 25682 q 25683 } 25684 /^X\(\/\/\)[^/].*/{ 25685 s//\1/ 25686 q 25687 } 25688 /^X\(\/\/\)$/{ 25689 s//\1/ 25690 q 25691 } 25692 /^X\(\/\).*/{ 25693 s//\1/ 25694 q 25695 } 25696 s/.*/./; q'` 25697 { as_dir=$dirpart/$fdir 25698 case $as_dir in #( 25699 -*) as_dir=./$as_dir;; 25700 esac 25701 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 25702 as_dirs= 25703 while :; do 25704 case $as_dir in #( 25705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25706 *) as_qdir=$as_dir;; 25707 esac 25708 as_dirs="'$as_qdir' $as_dirs" 25709 as_dir=`$as_dirname -- "$as_dir" || 25710$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25711 X"$as_dir" : 'X\(//\)[^/]' \| \ 25712 X"$as_dir" : 'X\(//\)$' \| \ 25713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25714$as_echo X"$as_dir" | 25715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25716 s//\1/ 25717 q 25718 } 25719 /^X\(\/\/\)[^/].*/{ 25720 s//\1/ 25721 q 25722 } 25723 /^X\(\/\/\)$/{ 25724 s//\1/ 25725 q 25726 } 25727 /^X\(\/\).*/{ 25728 s//\1/ 25729 q 25730 } 25731 s/.*/./; q'` 25732 test -d "$as_dir" && break 25733 done 25734 test -z "$as_dirs" || eval "mkdir $as_dirs" 25735 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 25736$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 25737 { (exit 1); exit 1; }; }; } 25738 # echo "creating $dirpart/$file" 25739 echo '# dummy' > "$dirpart/$file" 25740 done 25741done 25742 ;; 25743 "libtool_hack":C) 25744 cp -f libtool libtool_ 25745 test -z "$SED" && SED=sed 25746 $SED '1,/^soname_spec/{ 25747/^soname_spec/i\ 25748# X.Org hack to match monolithic Xaw SONAME\ 25749xorglibxawname="libXaw" 25750/^soname_spec/s/libname/xorglibxawname/ 25751}' libtool_ > libtool 25752 rm -f libtool_ 25753 ;; 25754 25755 esac 25756done # for ac_tag 25757 25758 25759{ (exit 0); exit 0; } 25760_ACEOF 25761chmod +x $CONFIG_STATUS 25762ac_clean_files=$ac_clean_files_save 25763 25764test $ac_write_fail = 0 || 25765 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 25766$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 25767 { (exit 1); exit 1; }; } 25768 25769 25770# configure is writing to config.log, and then calls config.status. 25771# config.status does its own redirection, appending to config.log. 25772# Unfortunately, on DOS this fails, as config.log is still kept open 25773# by configure, so config.status won't be able to write to it; its 25774# output is simply discarded. So we exec the FD to /dev/null, 25775# effectively closing config.log, so it can be properly (re)opened and 25776# appended to by config.status. When coming back to configure, we 25777# need to make the FD available again. 25778if test "$no_create" != yes; then 25779 ac_cs_success=: 25780 ac_config_status_args= 25781 test "$silent" = yes && 25782 ac_config_status_args="$ac_config_status_args --quiet" 25783 exec 5>/dev/null 25784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25785 exec 5>>config.log 25786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25787 # would make configure fail if this is the last instruction. 25788 $ac_cs_success || { (exit 1); exit 1; } 25789fi 25790if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25791 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25792$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25793fi 25794 25795fi 25796