configure revision 65eef222
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for libXScrnSaver 1.2.0. 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$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_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 <<_LT_EOF 606$* 607_LT_EOF 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 "$lt_ECHO"; then 616 if 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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='libXScrnSaver' 747PACKAGE_TARNAME='libXScrnSaver' 748PACKAGE_VERSION='1.2.0' 749PACKAGE_STRING='libXScrnSaver 1.2.0' 750PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 751 752# Factoring default headers for most tests. 753ac_includes_default="\ 754#include <stdio.h> 755#ifdef HAVE_SYS_TYPES_H 756# include <sys/types.h> 757#endif 758#ifdef HAVE_SYS_STAT_H 759# include <sys/stat.h> 760#endif 761#ifdef STDC_HEADERS 762# include <stdlib.h> 763# include <stddef.h> 764#else 765# ifdef HAVE_STDLIB_H 766# include <stdlib.h> 767# endif 768#endif 769#ifdef HAVE_STRING_H 770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 771# include <memory.h> 772# endif 773# include <string.h> 774#endif 775#ifdef HAVE_STRINGS_H 776# include <strings.h> 777#endif 778#ifdef HAVE_INTTYPES_H 779# include <inttypes.h> 780#endif 781#ifdef HAVE_STDINT_H 782# include <stdint.h> 783#endif 784#ifdef HAVE_UNISTD_H 785# include <unistd.h> 786#endif" 787 788ac_subst_vars='am__EXEEXT_FALSE 789am__EXEEXT_TRUE 790LTLIBOBJS 791LIBOBJS 792distcleancheck_listfiles 793CHANGELOG_CMD 794ADMIN_MAN_DIR 795DRIVER_MAN_DIR 796MISC_MAN_DIR 797FILE_MAN_DIR 798LIB_MAN_DIR 799APP_MAN_DIR 800ADMIN_MAN_SUFFIX 801DRIVER_MAN_SUFFIX 802MISC_MAN_SUFFIX 803FILE_MAN_SUFFIX 804LIB_MAN_SUFFIX 805APP_MAN_SUFFIX 806XTMALLOC_ZERO_CFLAGS 807XMALLOC_ZERO_CFLAGS 808MALLOC_ZERO_CFLAGS 809MAKE_LINT_LIB_FALSE 810MAKE_LINT_LIB_TRUE 811LINTLIB 812LINT_FALSE 813LINT_TRUE 814LINT_FLAGS 815LINT 816XSCRNSAVER_LIBS 817XSCRNSAVER_CFLAGS 818PKG_CONFIG 819AM_BACKSLASH 820AM_DEFAULT_VERBOSITY 821CWARNFLAGS 822CPP 823OTOOL64 824OTOOL 825LIPO 826NMEDIT 827DSYMUTIL 828lt_ECHO 829RANLIB 830AR 831OBJDUMP 832LN_S 833NM 834ac_ct_DUMPBIN 835DUMPBIN 836LD 837FGREP 838EGREP 839GREP 840SED 841host_os 842host_vendor 843host_cpu 844host 845build_os 846build_vendor 847build_cpu 848build 849LIBTOOL 850am__fastdepCC_FALSE 851am__fastdepCC_TRUE 852CCDEPMODE 853AMDEPBACKSLASH 854AMDEP_FALSE 855AMDEP_TRUE 856am__quote 857am__include 858DEPDIR 859OBJEXT 860EXEEXT 861ac_ct_CC 862CPPFLAGS 863LDFLAGS 864CFLAGS 865CC 866MAINT 867MAINTAINER_MODE_FALSE 868MAINTAINER_MODE_TRUE 869am__untar 870am__tar 871AMTAR 872am__leading_dot 873SET_MAKE 874AWK 875mkdir_p 876MKDIR_P 877INSTALL_STRIP_PROGRAM 878STRIP 879install_sh 880MAKEINFO 881AUTOHEADER 882AUTOMAKE 883AUTOCONF 884ACLOCAL 885VERSION 886PACKAGE 887CYGPATH_W 888am__isrc 889INSTALL_DATA 890INSTALL_SCRIPT 891INSTALL_PROGRAM 892target_alias 893host_alias 894build_alias 895LIBS 896ECHO_T 897ECHO_N 898ECHO_C 899DEFS 900mandir 901localedir 902libdir 903psdir 904pdfdir 905dvidir 906htmldir 907infodir 908docdir 909oldincludedir 910includedir 911localstatedir 912sharedstatedir 913sysconfdir 914datadir 915datarootdir 916libexecdir 917sbindir 918bindir 919program_transform_name 920prefix 921exec_prefix 922PACKAGE_BUGREPORT 923PACKAGE_STRING 924PACKAGE_VERSION 925PACKAGE_TARNAME 926PACKAGE_NAME 927PATH_SEPARATOR 928SHELL' 929ac_subst_files='' 930ac_user_opts=' 931enable_option_checking 932enable_maintainer_mode 933enable_dependency_tracking 934enable_shared 935enable_static 936with_pic 937enable_fast_install 938with_gnu_ld 939enable_libtool_lock 940enable_silent_rules 941with_lint 942enable_lint_library 943enable_malloc0returnsnull 944with_release_version 945' 946 ac_precious_vars='build_alias 947host_alias 948target_alias 949CC 950CFLAGS 951LDFLAGS 952LIBS 953CPPFLAGS 954CPP 955PKG_CONFIG 956XSCRNSAVER_CFLAGS 957XSCRNSAVER_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 libXScrnSaver 1.2.0 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/libXScrnSaver] 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 libXScrnSaver 1.2.0:";; 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 --enable-maintainer-mode enable make rules and dependencies not useful 1589 (and sometimes confusing) to the casual installer 1590 --disable-dependency-tracking speeds up one-time build 1591 --enable-dependency-tracking do not reject slow dependency extractors 1592 --enable-shared[=PKGS] build shared libraries [default=yes] 1593 --enable-static[=PKGS] build static libraries [default=yes] 1594 --enable-fast-install[=PKGS] 1595 optimize for fast installation [default=yes] 1596 --disable-libtool-lock avoid locking (might break parallel builds) 1597 --enable-silent-rules less verbose build output (undo: `make V=1') 1598 --disable-silent-rules verbose build output (undo: `make V=0') 1599 --enable-lint-library Create lint library (default: disabled) 1600 --enable-malloc0returnsnull 1601 malloc(0) returns NULL (default: auto) 1602 1603Optional Packages: 1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1606 --with-pic try to use only PIC/non-PIC objects [default=use 1607 both] 1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1609 --with-lint Use a lint-style source code checker (default: 1610 disabled) 1611 --with-release-version=STRING 1612 Use release version string in package name 1613 1614Some influential environment variables: 1615 CC C compiler command 1616 CFLAGS C compiler flags 1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1618 nonstandard directory <lib dir> 1619 LIBS libraries to pass to the linker, e.g. -l<library> 1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1621 you have headers in a nonstandard directory <include dir> 1622 CPP C preprocessor 1623 PKG_CONFIG path to pkg-config utility 1624 XSCRNSAVER_CFLAGS 1625 C compiler flags for XSCRNSAVER, overriding pkg-config 1626 XSCRNSAVER_LIBS 1627 linker flags for XSCRNSAVER, overriding pkg-config 1628 1629Use these variables to override the choices made by `configure' or to help 1630it to find libraries and programs with nonstandard names/locations. 1631 1632Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1633_ACEOF 1634ac_status=$? 1635fi 1636 1637if test "$ac_init_help" = "recursive"; then 1638 # If there are subdirs, report their specific --help. 1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1640 test -d "$ac_dir" || 1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1642 continue 1643 ac_builddir=. 1644 1645case "$ac_dir" in 1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1647*) 1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1649 # A ".." for each directory in $ac_dir_suffix. 1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1651 case $ac_top_builddir_sub in 1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1654 esac ;; 1655esac 1656ac_abs_top_builddir=$ac_pwd 1657ac_abs_builddir=$ac_pwd$ac_dir_suffix 1658# for backward compatibility: 1659ac_top_builddir=$ac_top_build_prefix 1660 1661case $srcdir in 1662 .) # We are building in place. 1663 ac_srcdir=. 1664 ac_top_srcdir=$ac_top_builddir_sub 1665 ac_abs_top_srcdir=$ac_pwd ;; 1666 [\\/]* | ?:[\\/]* ) # Absolute name. 1667 ac_srcdir=$srcdir$ac_dir_suffix; 1668 ac_top_srcdir=$srcdir 1669 ac_abs_top_srcdir=$srcdir ;; 1670 *) # Relative name. 1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1672 ac_top_srcdir=$ac_top_build_prefix$srcdir 1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1674esac 1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1676 1677 cd "$ac_dir" || { ac_status=$?; continue; } 1678 # Check for guested configure. 1679 if test -f "$ac_srcdir/configure.gnu"; then 1680 echo && 1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1682 elif test -f "$ac_srcdir/configure"; then 1683 echo && 1684 $SHELL "$ac_srcdir/configure" --help=recursive 1685 else 1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1687 fi || ac_status=$? 1688 cd "$ac_pwd" || { ac_status=$?; break; } 1689 done 1690fi 1691 1692test -n "$ac_init_help" && exit $ac_status 1693if $ac_init_version; then 1694 cat <<\_ACEOF 1695libXScrnSaver configure 1.2.0 1696generated by GNU Autoconf 2.63 1697 1698Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16992002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1700This configure script is free software; the Free Software Foundation 1701gives unlimited permission to copy, distribute and modify it. 1702_ACEOF 1703 exit 1704fi 1705cat >config.log <<_ACEOF 1706This file contains any messages produced by compilers while 1707running configure, to aid debugging if configure makes a mistake. 1708 1709It was created by libXScrnSaver $as_me 1.2.0, which was 1710generated by GNU Autoconf 2.63. Invocation command line was 1711 1712 $ $0 $@ 1713 1714_ACEOF 1715exec 5>>config.log 1716{ 1717cat <<_ASUNAME 1718## --------- ## 1719## Platform. ## 1720## --------- ## 1721 1722hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1723uname -m = `(uname -m) 2>/dev/null || echo unknown` 1724uname -r = `(uname -r) 2>/dev/null || echo unknown` 1725uname -s = `(uname -s) 2>/dev/null || echo unknown` 1726uname -v = `(uname -v) 2>/dev/null || echo unknown` 1727 1728/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1729/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1730 1731/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1732/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1733/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1734/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1735/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1736/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1737/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1738 1739_ASUNAME 1740 1741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1742for as_dir in $PATH 1743do 1744 IFS=$as_save_IFS 1745 test -z "$as_dir" && as_dir=. 1746 $as_echo "PATH: $as_dir" 1747done 1748IFS=$as_save_IFS 1749 1750} >&5 1751 1752cat >&5 <<_ACEOF 1753 1754 1755## ----------- ## 1756## Core tests. ## 1757## ----------- ## 1758 1759_ACEOF 1760 1761 1762# Keep a trace of the command line. 1763# Strip out --no-create and --no-recursion so they do not pile up. 1764# Strip out --silent because we don't want to record it for future runs. 1765# Also quote any args containing shell meta-characters. 1766# Make two passes to allow for proper duplicate-argument suppression. 1767ac_configure_args= 1768ac_configure_args0= 1769ac_configure_args1= 1770ac_must_keep_next=false 1771for ac_pass in 1 2 1772do 1773 for ac_arg 1774 do 1775 case $ac_arg in 1776 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1778 | -silent | --silent | --silen | --sile | --sil) 1779 continue ;; 1780 *\'*) 1781 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1782 esac 1783 case $ac_pass in 1784 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1785 2) 1786 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1787 if test $ac_must_keep_next = true; then 1788 ac_must_keep_next=false # Got value, back to normal. 1789 else 1790 case $ac_arg in 1791 *=* | --config-cache | -C | -disable-* | --disable-* \ 1792 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1793 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1794 | -with-* | --with-* | -without-* | --without-* | --x) 1795 case "$ac_configure_args0 " in 1796 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1797 esac 1798 ;; 1799 -* ) ac_must_keep_next=true ;; 1800 esac 1801 fi 1802 ac_configure_args="$ac_configure_args '$ac_arg'" 1803 ;; 1804 esac 1805 done 1806done 1807$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1808$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1809 1810# When interrupted or exit'd, cleanup temporary files, and complete 1811# config.log. We remove comments because anyway the quotes in there 1812# would cause problems or look ugly. 1813# WARNING: Use '\'' to represent an apostrophe within the trap. 1814# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1815trap 'exit_status=$? 1816 # Save into config.log some information that might help in debugging. 1817 { 1818 echo 1819 1820 cat <<\_ASBOX 1821## ---------------- ## 1822## Cache variables. ## 1823## ---------------- ## 1824_ASBOX 1825 echo 1826 # The following way of writing the cache mishandles newlines in values, 1827( 1828 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1829 eval ac_val=\$$ac_var 1830 case $ac_val in #( 1831 *${as_nl}*) 1832 case $ac_var in #( 1833 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1834$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1835 esac 1836 case $ac_var in #( 1837 _ | IFS | as_nl) ;; #( 1838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1839 *) $as_unset $ac_var ;; 1840 esac ;; 1841 esac 1842 done 1843 (set) 2>&1 | 1844 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1845 *${as_nl}ac_space=\ *) 1846 sed -n \ 1847 "s/'\''/'\''\\\\'\'''\''/g; 1848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1849 ;; #( 1850 *) 1851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1852 ;; 1853 esac | 1854 sort 1855) 1856 echo 1857 1858 cat <<\_ASBOX 1859## ----------------- ## 1860## Output variables. ## 1861## ----------------- ## 1862_ASBOX 1863 echo 1864 for ac_var in $ac_subst_vars 1865 do 1866 eval ac_val=\$$ac_var 1867 case $ac_val in 1868 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1869 esac 1870 $as_echo "$ac_var='\''$ac_val'\''" 1871 done | sort 1872 echo 1873 1874 if test -n "$ac_subst_files"; then 1875 cat <<\_ASBOX 1876## ------------------- ## 1877## File substitutions. ## 1878## ------------------- ## 1879_ASBOX 1880 echo 1881 for ac_var in $ac_subst_files 1882 do 1883 eval ac_val=\$$ac_var 1884 case $ac_val in 1885 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1886 esac 1887 $as_echo "$ac_var='\''$ac_val'\''" 1888 done | sort 1889 echo 1890 fi 1891 1892 if test -s confdefs.h; then 1893 cat <<\_ASBOX 1894## ----------- ## 1895## confdefs.h. ## 1896## ----------- ## 1897_ASBOX 1898 echo 1899 cat confdefs.h 1900 echo 1901 fi 1902 test "$ac_signal" != 0 && 1903 $as_echo "$as_me: caught signal $ac_signal" 1904 $as_echo "$as_me: exit $exit_status" 1905 } >&5 1906 rm -f core *.core core.conftest.* && 1907 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1908 exit $exit_status 1909' 0 1910for ac_signal in 1 2 13 15; do 1911 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1912done 1913ac_signal=0 1914 1915# confdefs.h avoids OS command line length limits that DEFS can exceed. 1916rm -f -r conftest* confdefs.h 1917 1918# Predefined preprocessor variables. 1919 1920cat >>confdefs.h <<_ACEOF 1921#define PACKAGE_NAME "$PACKAGE_NAME" 1922_ACEOF 1923 1924 1925cat >>confdefs.h <<_ACEOF 1926#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1927_ACEOF 1928 1929 1930cat >>confdefs.h <<_ACEOF 1931#define PACKAGE_VERSION "$PACKAGE_VERSION" 1932_ACEOF 1933 1934 1935cat >>confdefs.h <<_ACEOF 1936#define PACKAGE_STRING "$PACKAGE_STRING" 1937_ACEOF 1938 1939 1940cat >>confdefs.h <<_ACEOF 1941#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1942_ACEOF 1943 1944 1945# Let the site file select an alternate cache file if it wants to. 1946# Prefer an explicitly selected file to automatically selected ones. 1947ac_site_file1=NONE 1948ac_site_file2=NONE 1949if test -n "$CONFIG_SITE"; then 1950 ac_site_file1=$CONFIG_SITE 1951elif test "x$prefix" != xNONE; then 1952 ac_site_file1=$prefix/share/config.site 1953 ac_site_file2=$prefix/etc/config.site 1954else 1955 ac_site_file1=$ac_default_prefix/share/config.site 1956 ac_site_file2=$ac_default_prefix/etc/config.site 1957fi 1958for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1959do 1960 test "x$ac_site_file" = xNONE && continue 1961 if test -r "$ac_site_file"; then 1962 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1963$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1964 sed 's/^/| /' "$ac_site_file" >&5 1965 . "$ac_site_file" 1966 fi 1967done 1968 1969if test -r "$cache_file"; then 1970 # Some versions of bash will fail to source /dev/null (special 1971 # files actually), so we avoid doing that. 1972 if test -f "$cache_file"; then 1973 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1974$as_echo "$as_me: loading cache $cache_file" >&6;} 1975 case $cache_file in 1976 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1977 *) . "./$cache_file";; 1978 esac 1979 fi 1980else 1981 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1982$as_echo "$as_me: creating cache $cache_file" >&6;} 1983 >$cache_file 1984fi 1985 1986# Check that the precious variables saved in the cache have kept the same 1987# value. 1988ac_cache_corrupted=false 1989for ac_var in $ac_precious_vars; do 1990 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1991 eval ac_new_set=\$ac_env_${ac_var}_set 1992 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1993 eval ac_new_val=\$ac_env_${ac_var}_value 1994 case $ac_old_set,$ac_new_set in 1995 set,) 1996 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1997$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1998 ac_cache_corrupted=: ;; 1999 ,set) 2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2001$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2002 ac_cache_corrupted=: ;; 2003 ,);; 2004 *) 2005 if test "x$ac_old_val" != "x$ac_new_val"; then 2006 # differences in whitespace do not lead to failure. 2007 ac_old_val_w=`echo x $ac_old_val` 2008 ac_new_val_w=`echo x $ac_new_val` 2009 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2011$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2012 ac_cache_corrupted=: 2013 else 2014 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2015$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2016 eval $ac_var=\$ac_old_val 2017 fi 2018 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2019$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2020 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2021$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2022 fi;; 2023 esac 2024 # Pass precious variables to config.status. 2025 if test "$ac_new_set" = set; then 2026 case $ac_new_val in 2027 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2028 *) ac_arg=$ac_var=$ac_new_val ;; 2029 esac 2030 case " $ac_configure_args " in 2031 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2032 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2033 esac 2034 fi 2035done 2036if $ac_cache_corrupted; then 2037 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2039 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2040$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2041 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2042$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2043 { (exit 1); exit 1; }; } 2044fi 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070ac_ext=c 2071ac_cpp='$CPP $CPPFLAGS' 2072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2074ac_compiler_gnu=$ac_cv_c_compiler_gnu 2075 2076 2077am__api_version='1.11' 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# Reject unsafe characters in $srcdir or the absolute working directory 2209# name. Accept space and tab only in the latter. 2210am_lf=' 2211' 2212case `pwd` in 2213 *[\\\"\#\$\&\'\`$am_lf]*) 2214 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2215$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2216 { (exit 1); exit 1; }; };; 2217esac 2218case $srcdir in 2219 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2220 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2221$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2222 { (exit 1); exit 1; }; };; 2223esac 2224 2225# Do `set' in a subshell so we don't clobber the current shell's 2226# arguments. Must try -L first in case configure is actually a 2227# symlink; some systems play weird games with the mod time of symlinks 2228# (eg FreeBSD returns the mod time of the symlink's containing 2229# directory). 2230if ( 2231 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2232 if test "$*" = "X"; then 2233 # -L didn't work. 2234 set X `ls -t "$srcdir/configure" conftest.file` 2235 fi 2236 rm -f conftest.file 2237 if test "$*" != "X $srcdir/configure conftest.file" \ 2238 && test "$*" != "X conftest.file $srcdir/configure"; then 2239 2240 # If neither matched, then we have a broken ls. This can happen 2241 # if, for instance, CONFIG_SHELL is bash and it inherits a 2242 # broken ls alias from the environment. This has actually 2243 # happened. Such a system could not be considered "sane". 2244 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2245alias in your environment" >&5 2246$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2247alias in your environment" >&2;} 2248 { (exit 1); exit 1; }; } 2249 fi 2250 2251 test "$2" = conftest.file 2252 ) 2253then 2254 # Ok. 2255 : 2256else 2257 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2258Check your system clock" >&5 2259$as_echo "$as_me: error: newly created file is older than distributed files! 2260Check your system clock" >&2;} 2261 { (exit 1); exit 1; }; } 2262fi 2263{ $as_echo "$as_me:$LINENO: result: yes" >&5 2264$as_echo "yes" >&6; } 2265test "$program_prefix" != NONE && 2266 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2267# Use a double $ so make ignores it. 2268test "$program_suffix" != NONE && 2269 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2270# Double any \ or $. 2271# By default was `s,x,x', remove it if useless. 2272ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2273program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2274 2275# expand $ac_aux_dir to an absolute path 2276am_aux_dir=`cd $ac_aux_dir && pwd` 2277 2278if test x"${MISSING+set}" != xset; then 2279 case $am_aux_dir in 2280 *\ * | *\ *) 2281 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2282 *) 2283 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2284 esac 2285fi 2286# Use eval to expand $SHELL 2287if eval "$MISSING --run true"; then 2288 am_missing_run="$MISSING --run " 2289else 2290 am_missing_run= 2291 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2292$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2293fi 2294 2295if test x"${install_sh}" != xset; then 2296 case $am_aux_dir in 2297 *\ * | *\ *) 2298 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2299 *) 2300 install_sh="\${SHELL} $am_aux_dir/install-sh" 2301 esac 2302fi 2303 2304# Installed binaries are usually stripped using `strip' when the user 2305# run `make install-strip'. However `strip' might not be the right 2306# tool to use in cross-compilation environments, therefore Automake 2307# will honor the `STRIP' environment variable to overrule this program. 2308if test "$cross_compiling" != no; then 2309 if test -n "$ac_tool_prefix"; then 2310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2311set dummy ${ac_tool_prefix}strip; ac_word=$2 2312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2313$as_echo_n "checking for $ac_word... " >&6; } 2314if test "${ac_cv_prog_STRIP+set}" = set; then 2315 $as_echo_n "(cached) " >&6 2316else 2317 if test -n "$STRIP"; then 2318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2319else 2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 for ac_exec_ext in '' $ac_executable_extensions; do 2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2327 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2329 break 2 2330 fi 2331done 2332done 2333IFS=$as_save_IFS 2334 2335fi 2336fi 2337STRIP=$ac_cv_prog_STRIP 2338if test -n "$STRIP"; then 2339 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2340$as_echo "$STRIP" >&6; } 2341else 2342 { $as_echo "$as_me:$LINENO: result: no" >&5 2343$as_echo "no" >&6; } 2344fi 2345 2346 2347fi 2348if test -z "$ac_cv_prog_STRIP"; then 2349 ac_ct_STRIP=$STRIP 2350 # Extract the first word of "strip", so it can be a program name with args. 2351set dummy strip; ac_word=$2 2352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2353$as_echo_n "checking for $ac_word... " >&6; } 2354if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2355 $as_echo_n "(cached) " >&6 2356else 2357 if test -n "$ac_ct_STRIP"; then 2358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2359else 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361for as_dir in $PATH 2362do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 for ac_exec_ext in '' $ac_executable_extensions; do 2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2367 ac_cv_prog_ac_ct_STRIP="strip" 2368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2369 break 2 2370 fi 2371done 2372done 2373IFS=$as_save_IFS 2374 2375fi 2376fi 2377ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2378if test -n "$ac_ct_STRIP"; then 2379 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2380$as_echo "$ac_ct_STRIP" >&6; } 2381else 2382 { $as_echo "$as_me:$LINENO: result: no" >&5 2383$as_echo "no" >&6; } 2384fi 2385 2386 if test "x$ac_ct_STRIP" = x; then 2387 STRIP=":" 2388 else 2389 case $cross_compiling:$ac_tool_warned in 2390yes:) 2391{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2393ac_tool_warned=yes ;; 2394esac 2395 STRIP=$ac_ct_STRIP 2396 fi 2397else 2398 STRIP="$ac_cv_prog_STRIP" 2399fi 2400 2401fi 2402INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2403 2404{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2405$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2406if test -z "$MKDIR_P"; then 2407 if test "${ac_cv_path_mkdir+set}" = set; then 2408 $as_echo_n "(cached) " >&6 2409else 2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 for ac_prog in mkdir gmkdir; do 2416 for ac_exec_ext in '' $ac_executable_extensions; do 2417 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2418 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2419 'mkdir (GNU coreutils) '* | \ 2420 'mkdir (coreutils) '* | \ 2421 'mkdir (fileutils) '4.1*) 2422 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2423 break 3;; 2424 esac 2425 done 2426 done 2427done 2428IFS=$as_save_IFS 2429 2430fi 2431 2432 if test "${ac_cv_path_mkdir+set}" = set; then 2433 MKDIR_P="$ac_cv_path_mkdir -p" 2434 else 2435 # As a last resort, use the slow shell script. Don't cache a 2436 # value for MKDIR_P within a source directory, because that will 2437 # break other packages using the cache if that directory is 2438 # removed, or if the value is a relative name. 2439 test -d ./--version && rmdir ./--version 2440 MKDIR_P="$ac_install_sh -d" 2441 fi 2442fi 2443{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2444$as_echo "$MKDIR_P" >&6; } 2445 2446mkdir_p="$MKDIR_P" 2447case $mkdir_p in 2448 [\\/$]* | ?:[\\/]*) ;; 2449 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2450esac 2451 2452for ac_prog in gawk mawk nawk awk 2453do 2454 # Extract the first word of "$ac_prog", so it can be a program name with args. 2455set dummy $ac_prog; ac_word=$2 2456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2457$as_echo_n "checking for $ac_word... " >&6; } 2458if test "${ac_cv_prog_AWK+set}" = set; then 2459 $as_echo_n "(cached) " >&6 2460else 2461 if test -n "$AWK"; then 2462 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2463else 2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2465for as_dir in $PATH 2466do 2467 IFS=$as_save_IFS 2468 test -z "$as_dir" && as_dir=. 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2471 ac_cv_prog_AWK="$ac_prog" 2472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2473 break 2 2474 fi 2475done 2476done 2477IFS=$as_save_IFS 2478 2479fi 2480fi 2481AWK=$ac_cv_prog_AWK 2482if test -n "$AWK"; then 2483 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2484$as_echo "$AWK" >&6; } 2485else 2486 { $as_echo "$as_me:$LINENO: result: no" >&5 2487$as_echo "no" >&6; } 2488fi 2489 2490 2491 test -n "$AWK" && break 2492done 2493 2494{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2495$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2496set x ${MAKE-make} 2497ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2498if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2499 $as_echo_n "(cached) " >&6 2500else 2501 cat >conftest.make <<\_ACEOF 2502SHELL = /bin/sh 2503all: 2504 @echo '@@@%%%=$(MAKE)=@@@%%%' 2505_ACEOF 2506# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2507case `${MAKE-make} -f conftest.make 2>/dev/null` in 2508 *@@@%%%=?*=@@@%%%*) 2509 eval ac_cv_prog_make_${ac_make}_set=yes;; 2510 *) 2511 eval ac_cv_prog_make_${ac_make}_set=no;; 2512esac 2513rm -f conftest.make 2514fi 2515if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2516 { $as_echo "$as_me:$LINENO: result: yes" >&5 2517$as_echo "yes" >&6; } 2518 SET_MAKE= 2519else 2520 { $as_echo "$as_me:$LINENO: result: no" >&5 2521$as_echo "no" >&6; } 2522 SET_MAKE="MAKE=${MAKE-make}" 2523fi 2524 2525rm -rf .tst 2>/dev/null 2526mkdir .tst 2>/dev/null 2527if test -d .tst; then 2528 am__leading_dot=. 2529else 2530 am__leading_dot=_ 2531fi 2532rmdir .tst 2>/dev/null 2533 2534if test "`cd $srcdir && pwd`" != "`pwd`"; then 2535 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2536 # is not polluted with repeated "-I." 2537 am__isrc=' -I$(srcdir)' 2538 # test to see if srcdir already configured 2539 if test -f $srcdir/config.status; then 2540 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2541$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2542 { (exit 1); exit 1; }; } 2543 fi 2544fi 2545 2546# test whether we have cygpath 2547if test -z "$CYGPATH_W"; then 2548 if (cygpath --version) >/dev/null 2>/dev/null; then 2549 CYGPATH_W='cygpath -w' 2550 else 2551 CYGPATH_W=echo 2552 fi 2553fi 2554 2555 2556# Define the identity of the package. 2557 PACKAGE='libXScrnSaver' 2558 VERSION='1.2.0' 2559 2560 2561cat >>confdefs.h <<_ACEOF 2562#define PACKAGE "$PACKAGE" 2563_ACEOF 2564 2565 2566cat >>confdefs.h <<_ACEOF 2567#define VERSION "$VERSION" 2568_ACEOF 2569 2570# Some tools Automake needs. 2571 2572ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2573 2574 2575AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2576 2577 2578AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2579 2580 2581AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2582 2583 2584MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2585 2586# We need awk for the "check" target. The system "awk" is bad on 2587# some platforms. 2588# Always define AMTAR for backward compatibility. 2589 2590AMTAR=${AMTAR-"${am_missing_run}tar"} 2591 2592am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2593 2594 2595 2596 2597 2598 2599{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2600$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2601 # Check whether --enable-maintainer-mode was given. 2602if test "${enable_maintainer_mode+set}" = set; then 2603 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2604else 2605 USE_MAINTAINER_MODE=no 2606fi 2607 2608 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2609$as_echo "$USE_MAINTAINER_MODE" >&6; } 2610 if test $USE_MAINTAINER_MODE = yes; then 2611 MAINTAINER_MODE_TRUE= 2612 MAINTAINER_MODE_FALSE='#' 2613else 2614 MAINTAINER_MODE_TRUE='#' 2615 MAINTAINER_MODE_FALSE= 2616fi 2617 2618 MAINT=$MAINTAINER_MODE_TRUE 2619 2620 2621 2622ac_config_headers="$ac_config_headers config.h" 2623 2624 2625# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638# Check for progs 2639ac_ext=c 2640ac_cpp='$CPP $CPPFLAGS' 2641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2643ac_compiler_gnu=$ac_cv_c_compiler_gnu 2644if test -n "$ac_tool_prefix"; then 2645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2646set dummy ${ac_tool_prefix}gcc; ac_word=$2 2647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2648$as_echo_n "checking for $ac_word... " >&6; } 2649if test "${ac_cv_prog_CC+set}" = set; then 2650 $as_echo_n "(cached) " >&6 2651else 2652 if test -n "$CC"; then 2653 ac_cv_prog_CC="$CC" # Let the user override the test. 2654else 2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656for as_dir in $PATH 2657do 2658 IFS=$as_save_IFS 2659 test -z "$as_dir" && as_dir=. 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2662 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2664 break 2 2665 fi 2666done 2667done 2668IFS=$as_save_IFS 2669 2670fi 2671fi 2672CC=$ac_cv_prog_CC 2673if test -n "$CC"; then 2674 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2675$as_echo "$CC" >&6; } 2676else 2677 { $as_echo "$as_me:$LINENO: result: no" >&5 2678$as_echo "no" >&6; } 2679fi 2680 2681 2682fi 2683if test -z "$ac_cv_prog_CC"; then 2684 ac_ct_CC=$CC 2685 # Extract the first word of "gcc", so it can be a program name with args. 2686set dummy gcc; ac_word=$2 2687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2688$as_echo_n "checking for $ac_word... " >&6; } 2689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2690 $as_echo_n "(cached) " >&6 2691else 2692 if test -n "$ac_ct_CC"; then 2693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2694else 2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2696for as_dir in $PATH 2697do 2698 IFS=$as_save_IFS 2699 test -z "$as_dir" && as_dir=. 2700 for ac_exec_ext in '' $ac_executable_extensions; do 2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2702 ac_cv_prog_ac_ct_CC="gcc" 2703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2704 break 2 2705 fi 2706done 2707done 2708IFS=$as_save_IFS 2709 2710fi 2711fi 2712ac_ct_CC=$ac_cv_prog_ac_ct_CC 2713if test -n "$ac_ct_CC"; then 2714 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2715$as_echo "$ac_ct_CC" >&6; } 2716else 2717 { $as_echo "$as_me:$LINENO: result: no" >&5 2718$as_echo "no" >&6; } 2719fi 2720 2721 if test "x$ac_ct_CC" = x; then 2722 CC="" 2723 else 2724 case $cross_compiling:$ac_tool_warned in 2725yes:) 2726{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2728ac_tool_warned=yes ;; 2729esac 2730 CC=$ac_ct_CC 2731 fi 2732else 2733 CC="$ac_cv_prog_CC" 2734fi 2735 2736if test -z "$CC"; then 2737 if test -n "$ac_tool_prefix"; then 2738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2739set dummy ${ac_tool_prefix}cc; ac_word=$2 2740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2741$as_echo_n "checking for $ac_word... " >&6; } 2742if test "${ac_cv_prog_CC+set}" = set; then 2743 $as_echo_n "(cached) " >&6 2744else 2745 if test -n "$CC"; then 2746 ac_cv_prog_CC="$CC" # Let the user override the test. 2747else 2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2749for as_dir in $PATH 2750do 2751 IFS=$as_save_IFS 2752 test -z "$as_dir" && as_dir=. 2753 for ac_exec_ext in '' $ac_executable_extensions; do 2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2755 ac_cv_prog_CC="${ac_tool_prefix}cc" 2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2757 break 2 2758 fi 2759done 2760done 2761IFS=$as_save_IFS 2762 2763fi 2764fi 2765CC=$ac_cv_prog_CC 2766if test -n "$CC"; then 2767 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2768$as_echo "$CC" >&6; } 2769else 2770 { $as_echo "$as_me:$LINENO: result: no" >&5 2771$as_echo "no" >&6; } 2772fi 2773 2774 2775 fi 2776fi 2777if test -z "$CC"; then 2778 # Extract the first word of "cc", so it can be a program name with args. 2779set dummy cc; ac_word=$2 2780{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2781$as_echo_n "checking for $ac_word... " >&6; } 2782if test "${ac_cv_prog_CC+set}" = set; then 2783 $as_echo_n "(cached) " >&6 2784else 2785 if test -n "$CC"; then 2786 ac_cv_prog_CC="$CC" # Let the user override the test. 2787else 2788 ac_prog_rejected=no 2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2790for as_dir in $PATH 2791do 2792 IFS=$as_save_IFS 2793 test -z "$as_dir" && as_dir=. 2794 for ac_exec_ext in '' $ac_executable_extensions; do 2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2797 ac_prog_rejected=yes 2798 continue 2799 fi 2800 ac_cv_prog_CC="cc" 2801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2802 break 2 2803 fi 2804done 2805done 2806IFS=$as_save_IFS 2807 2808if test $ac_prog_rejected = yes; then 2809 # We found a bogon in the path, so make sure we never use it. 2810 set dummy $ac_cv_prog_CC 2811 shift 2812 if test $# != 0; then 2813 # We chose a different compiler from the bogus one. 2814 # However, it has the same basename, so the bogon will be chosen 2815 # first if we set CC to just the basename; use the full file name. 2816 shift 2817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2818 fi 2819fi 2820fi 2821fi 2822CC=$ac_cv_prog_CC 2823if test -n "$CC"; then 2824 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2825$as_echo "$CC" >&6; } 2826else 2827 { $as_echo "$as_me:$LINENO: result: no" >&5 2828$as_echo "no" >&6; } 2829fi 2830 2831 2832fi 2833if test -z "$CC"; then 2834 if test -n "$ac_tool_prefix"; then 2835 for ac_prog in cl.exe 2836 do 2837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2838set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2840$as_echo_n "checking for $ac_word... " >&6; } 2841if test "${ac_cv_prog_CC+set}" = set; then 2842 $as_echo_n "(cached) " >&6 2843else 2844 if test -n "$CC"; then 2845 ac_cv_prog_CC="$CC" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 test -z "$as_dir" && as_dir=. 2852 for ac_exec_ext in '' $ac_executable_extensions; do 2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2856 break 2 2857 fi 2858done 2859done 2860IFS=$as_save_IFS 2861 2862fi 2863fi 2864CC=$ac_cv_prog_CC 2865if test -n "$CC"; then 2866 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2867$as_echo "$CC" >&6; } 2868else 2869 { $as_echo "$as_me:$LINENO: result: no" >&5 2870$as_echo "no" >&6; } 2871fi 2872 2873 2874 test -n "$CC" && break 2875 done 2876fi 2877if test -z "$CC"; then 2878 ac_ct_CC=$CC 2879 for ac_prog in cl.exe 2880do 2881 # Extract the first word of "$ac_prog", so it can be a program name with args. 2882set dummy $ac_prog; ac_word=$2 2883{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2884$as_echo_n "checking for $ac_word... " >&6; } 2885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2886 $as_echo_n "(cached) " >&6 2887else 2888 if test -n "$ac_ct_CC"; then 2889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2890else 2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892for as_dir in $PATH 2893do 2894 IFS=$as_save_IFS 2895 test -z "$as_dir" && as_dir=. 2896 for ac_exec_ext in '' $ac_executable_extensions; do 2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2898 ac_cv_prog_ac_ct_CC="$ac_prog" 2899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2900 break 2 2901 fi 2902done 2903done 2904IFS=$as_save_IFS 2905 2906fi 2907fi 2908ac_ct_CC=$ac_cv_prog_ac_ct_CC 2909if test -n "$ac_ct_CC"; then 2910 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2911$as_echo "$ac_ct_CC" >&6; } 2912else 2913 { $as_echo "$as_me:$LINENO: result: no" >&5 2914$as_echo "no" >&6; } 2915fi 2916 2917 2918 test -n "$ac_ct_CC" && break 2919done 2920 2921 if test "x$ac_ct_CC" = x; then 2922 CC="" 2923 else 2924 case $cross_compiling:$ac_tool_warned in 2925yes:) 2926{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2928ac_tool_warned=yes ;; 2929esac 2930 CC=$ac_ct_CC 2931 fi 2932fi 2933 2934fi 2935 2936 2937test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2939{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2940See \`config.log' for more details." >&5 2941$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2942See \`config.log' for more details." >&2;} 2943 { (exit 1); exit 1; }; }; } 2944 2945# Provide some information about the compiler. 2946$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2947set X $ac_compile 2948ac_compiler=$2 2949{ (ac_try="$ac_compiler --version >&5" 2950case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953esac 2954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2955$as_echo "$ac_try_echo") >&5 2956 (eval "$ac_compiler --version >&5") 2>&5 2957 ac_status=$? 2958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); } 2960{ (ac_try="$ac_compiler -v >&5" 2961case "(($ac_try" in 2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2963 *) ac_try_echo=$ac_try;; 2964esac 2965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2966$as_echo "$ac_try_echo") >&5 2967 (eval "$ac_compiler -v >&5") 2>&5 2968 ac_status=$? 2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); } 2971{ (ac_try="$ac_compiler -V >&5" 2972case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2977$as_echo "$ac_try_echo") >&5 2978 (eval "$ac_compiler -V >&5") 2>&5 2979 ac_status=$? 2980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2981 (exit $ac_status); } 2982 2983cat >conftest.$ac_ext <<_ACEOF 2984/* confdefs.h. */ 2985_ACEOF 2986cat confdefs.h >>conftest.$ac_ext 2987cat >>conftest.$ac_ext <<_ACEOF 2988/* end confdefs.h. */ 2989 2990int 2991main () 2992{ 2993 2994 ; 2995 return 0; 2996} 2997_ACEOF 2998ac_clean_files_save=$ac_clean_files 2999ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3000# Try to create an executable without -o first, disregard a.out. 3001# It will help us diagnose broken compilers, and finding out an intuition 3002# of exeext. 3003{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3004$as_echo_n "checking for C compiler default output file name... " >&6; } 3005ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3006 3007# The possible output files: 3008ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3009 3010ac_rmfiles= 3011for ac_file in $ac_files 3012do 3013 case $ac_file in 3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3015 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3016 esac 3017done 3018rm -f $ac_rmfiles 3019 3020if { (ac_try="$ac_link_default" 3021case "(($ac_try" in 3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3023 *) ac_try_echo=$ac_try;; 3024esac 3025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3026$as_echo "$ac_try_echo") >&5 3027 (eval "$ac_link_default") 2>&5 3028 ac_status=$? 3029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); }; then 3031 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3032# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3033# in a Makefile. We should not override ac_cv_exeext if it was cached, 3034# so that the user can short-circuit this test for compilers unknown to 3035# Autoconf. 3036for ac_file in $ac_files '' 3037do 3038 test -f "$ac_file" || continue 3039 case $ac_file in 3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3041 ;; 3042 [ab].out ) 3043 # We found the default executable, but exeext='' is most 3044 # certainly right. 3045 break;; 3046 *.* ) 3047 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3048 then :; else 3049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3050 fi 3051 # We set ac_cv_exeext here because the later test for it is not 3052 # safe: cross compilers may not add the suffix if given an `-o' 3053 # argument, so we may need to know it at that point already. 3054 # Even if this section looks crufty: it has the advantage of 3055 # actually working. 3056 break;; 3057 * ) 3058 break;; 3059 esac 3060done 3061test "$ac_cv_exeext" = no && ac_cv_exeext= 3062 3063else 3064 ac_file='' 3065fi 3066 3067{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3068$as_echo "$ac_file" >&6; } 3069if test -z "$ac_file"; then 3070 $as_echo "$as_me: failed program was:" >&5 3071sed 's/^/| /' conftest.$ac_ext >&5 3072 3073{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3075{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3076See \`config.log' for more details." >&5 3077$as_echo "$as_me: error: C compiler cannot create executables 3078See \`config.log' for more details." >&2;} 3079 { (exit 77); exit 77; }; }; } 3080fi 3081 3082ac_exeext=$ac_cv_exeext 3083 3084# Check that the compiler produces executables we can run. If not, either 3085# the compiler is broken, or we cross compile. 3086{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3087$as_echo_n "checking whether the C compiler works... " >&6; } 3088# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3089# If not cross compiling, check that we can run a simple program. 3090if test "$cross_compiling" != yes; then 3091 if { ac_try='./$ac_file' 3092 { (case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3097$as_echo "$ac_try_echo") >&5 3098 (eval "$ac_try") 2>&5 3099 ac_status=$? 3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; }; then 3102 cross_compiling=no 3103 else 3104 if test "$cross_compiling" = maybe; then 3105 cross_compiling=yes 3106 else 3107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3110If you meant to cross compile, use \`--host'. 3111See \`config.log' for more details." >&5 3112$as_echo "$as_me: error: cannot run C compiled programs. 3113If you meant to cross compile, use \`--host'. 3114See \`config.log' for more details." >&2;} 3115 { (exit 1); exit 1; }; }; } 3116 fi 3117 fi 3118fi 3119{ $as_echo "$as_me:$LINENO: result: yes" >&5 3120$as_echo "yes" >&6; } 3121 3122rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3123ac_clean_files=$ac_clean_files_save 3124# Check that the compiler produces executables we can run. If not, either 3125# the compiler is broken, or we cross compile. 3126{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3127$as_echo_n "checking whether we are cross compiling... " >&6; } 3128{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3129$as_echo "$cross_compiling" >&6; } 3130 3131{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3132$as_echo_n "checking for suffix of executables... " >&6; } 3133if { (ac_try="$ac_link" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3139$as_echo "$ac_try_echo") >&5 3140 (eval "$ac_link") 2>&5 3141 ac_status=$? 3142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 (exit $ac_status); }; then 3144 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3145# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3146# work properly (i.e., refer to `conftest.exe'), while it won't with 3147# `rm'. 3148for ac_file in conftest.exe conftest conftest.*; do 3149 test -f "$ac_file" || continue 3150 case $ac_file in 3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3153 break;; 3154 * ) break;; 3155 esac 3156done 3157else 3158 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3160{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3161See \`config.log' for more details." >&5 3162$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3163See \`config.log' for more details." >&2;} 3164 { (exit 1); exit 1; }; }; } 3165fi 3166 3167rm -f conftest$ac_cv_exeext 3168{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3169$as_echo "$ac_cv_exeext" >&6; } 3170 3171rm -f conftest.$ac_ext 3172EXEEXT=$ac_cv_exeext 3173ac_exeext=$EXEEXT 3174{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3175$as_echo_n "checking for suffix of object files... " >&6; } 3176if test "${ac_cv_objext+set}" = set; then 3177 $as_echo_n "(cached) " >&6 3178else 3179 cat >conftest.$ac_ext <<_ACEOF 3180/* confdefs.h. */ 3181_ACEOF 3182cat confdefs.h >>conftest.$ac_ext 3183cat >>conftest.$ac_ext <<_ACEOF 3184/* end confdefs.h. */ 3185 3186int 3187main () 3188{ 3189 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194rm -f conftest.o conftest.obj 3195if { (ac_try="$ac_compile" 3196case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3201$as_echo "$ac_try_echo") >&5 3202 (eval "$ac_compile") 2>&5 3203 ac_status=$? 3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); }; then 3206 for ac_file in conftest.o conftest.obj conftest.*; do 3207 test -f "$ac_file" || continue; 3208 case $ac_file in 3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3211 break;; 3212 esac 3213done 3214else 3215 $as_echo "$as_me: failed program was:" >&5 3216sed 's/^/| /' conftest.$ac_ext >&5 3217 3218{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3220{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3221See \`config.log' for more details." >&5 3222$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3223See \`config.log' for more details." >&2;} 3224 { (exit 1); exit 1; }; }; } 3225fi 3226 3227rm -f conftest.$ac_cv_objext conftest.$ac_ext 3228fi 3229{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3230$as_echo "$ac_cv_objext" >&6; } 3231OBJEXT=$ac_cv_objext 3232ac_objext=$OBJEXT 3233{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3234$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3235if test "${ac_cv_c_compiler_gnu+set}" = set; then 3236 $as_echo_n "(cached) " >&6 3237else 3238 cat >conftest.$ac_ext <<_ACEOF 3239/* confdefs.h. */ 3240_ACEOF 3241cat confdefs.h >>conftest.$ac_ext 3242cat >>conftest.$ac_ext <<_ACEOF 3243/* end confdefs.h. */ 3244 3245int 3246main () 3247{ 3248#ifndef __GNUC__ 3249 choke me 3250#endif 3251 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256rm -f conftest.$ac_objext 3257if { (ac_try="$ac_compile" 3258case "(($ac_try" in 3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3260 *) ac_try_echo=$ac_try;; 3261esac 3262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3263$as_echo "$ac_try_echo") >&5 3264 (eval "$ac_compile") 2>conftest.er1 3265 ac_status=$? 3266 grep -v '^ *+' conftest.er1 >conftest.err 3267 rm -f conftest.er1 3268 cat conftest.err >&5 3269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3270 (exit $ac_status); } && { 3271 test -z "$ac_c_werror_flag" || 3272 test ! -s conftest.err 3273 } && test -s conftest.$ac_objext; then 3274 ac_compiler_gnu=yes 3275else 3276 $as_echo "$as_me: failed program was:" >&5 3277sed 's/^/| /' conftest.$ac_ext >&5 3278 3279 ac_compiler_gnu=no 3280fi 3281 3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3283ac_cv_c_compiler_gnu=$ac_compiler_gnu 3284 3285fi 3286{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3287$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3288if test $ac_compiler_gnu = yes; then 3289 GCC=yes 3290else 3291 GCC= 3292fi 3293ac_test_CFLAGS=${CFLAGS+set} 3294ac_save_CFLAGS=$CFLAGS 3295{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3296$as_echo_n "checking whether $CC accepts -g... " >&6; } 3297if test "${ac_cv_prog_cc_g+set}" = set; then 3298 $as_echo_n "(cached) " >&6 3299else 3300 ac_save_c_werror_flag=$ac_c_werror_flag 3301 ac_c_werror_flag=yes 3302 ac_cv_prog_cc_g=no 3303 CFLAGS="-g" 3304 cat >conftest.$ac_ext <<_ACEOF 3305/* confdefs.h. */ 3306_ACEOF 3307cat confdefs.h >>conftest.$ac_ext 3308cat >>conftest.$ac_ext <<_ACEOF 3309/* end confdefs.h. */ 3310 3311int 3312main () 3313{ 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319rm -f conftest.$ac_objext 3320if { (ac_try="$ac_compile" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3326$as_echo "$ac_try_echo") >&5 3327 (eval "$ac_compile") 2>conftest.er1 3328 ac_status=$? 3329 grep -v '^ *+' conftest.er1 >conftest.err 3330 rm -f conftest.er1 3331 cat conftest.err >&5 3332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } && { 3334 test -z "$ac_c_werror_flag" || 3335 test ! -s conftest.err 3336 } && test -s conftest.$ac_objext; then 3337 ac_cv_prog_cc_g=yes 3338else 3339 $as_echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342 CFLAGS="" 3343 cat >conftest.$ac_ext <<_ACEOF 3344/* confdefs.h. */ 3345_ACEOF 3346cat confdefs.h >>conftest.$ac_ext 3347cat >>conftest.$ac_ext <<_ACEOF 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358rm -f conftest.$ac_objext 3359if { (ac_try="$ac_compile" 3360case "(($ac_try" in 3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3362 *) ac_try_echo=$ac_try;; 3363esac 3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3365$as_echo "$ac_try_echo") >&5 3366 (eval "$ac_compile") 2>conftest.er1 3367 ac_status=$? 3368 grep -v '^ *+' conftest.er1 >conftest.err 3369 rm -f conftest.er1 3370 cat conftest.err >&5 3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3372 (exit $ac_status); } && { 3373 test -z "$ac_c_werror_flag" || 3374 test ! -s conftest.err 3375 } && test -s conftest.$ac_objext; then 3376 : 3377else 3378 $as_echo "$as_me: failed program was:" >&5 3379sed 's/^/| /' conftest.$ac_ext >&5 3380 3381 ac_c_werror_flag=$ac_save_c_werror_flag 3382 CFLAGS="-g" 3383 cat >conftest.$ac_ext <<_ACEOF 3384/* confdefs.h. */ 3385_ACEOF 3386cat confdefs.h >>conftest.$ac_ext 3387cat >>conftest.$ac_ext <<_ACEOF 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398rm -f conftest.$ac_objext 3399if { (ac_try="$ac_compile" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3405$as_echo "$ac_try_echo") >&5 3406 (eval "$ac_compile") 2>conftest.er1 3407 ac_status=$? 3408 grep -v '^ *+' conftest.er1 >conftest.err 3409 rm -f conftest.er1 3410 cat conftest.err >&5 3411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3412 (exit $ac_status); } && { 3413 test -z "$ac_c_werror_flag" || 3414 test ! -s conftest.err 3415 } && test -s conftest.$ac_objext; then 3416 ac_cv_prog_cc_g=yes 3417else 3418 $as_echo "$as_me: failed program was:" >&5 3419sed 's/^/| /' conftest.$ac_ext >&5 3420 3421 3422fi 3423 3424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3425fi 3426 3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3428fi 3429 3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3431 ac_c_werror_flag=$ac_save_c_werror_flag 3432fi 3433{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3434$as_echo "$ac_cv_prog_cc_g" >&6; } 3435if test "$ac_test_CFLAGS" = set; then 3436 CFLAGS=$ac_save_CFLAGS 3437elif test $ac_cv_prog_cc_g = yes; then 3438 if test "$GCC" = yes; then 3439 CFLAGS="-g -O2" 3440 else 3441 CFLAGS="-g" 3442 fi 3443else 3444 if test "$GCC" = yes; then 3445 CFLAGS="-O2" 3446 else 3447 CFLAGS= 3448 fi 3449fi 3450{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3451$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3452if test "${ac_cv_prog_cc_c89+set}" = set; then 3453 $as_echo_n "(cached) " >&6 3454else 3455 ac_cv_prog_cc_c89=no 3456ac_save_CC=$CC 3457cat >conftest.$ac_ext <<_ACEOF 3458/* confdefs.h. */ 3459_ACEOF 3460cat confdefs.h >>conftest.$ac_ext 3461cat >>conftest.$ac_ext <<_ACEOF 3462/* end confdefs.h. */ 3463#include <stdarg.h> 3464#include <stdio.h> 3465#include <sys/types.h> 3466#include <sys/stat.h> 3467/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3468struct buf { int x; }; 3469FILE * (*rcsopen) (struct buf *, struct stat *, int); 3470static char *e (p, i) 3471 char **p; 3472 int i; 3473{ 3474 return p[i]; 3475} 3476static char *f (char * (*g) (char **, int), char **p, ...) 3477{ 3478 char *s; 3479 va_list v; 3480 va_start (v,p); 3481 s = g (p, va_arg (v,int)); 3482 va_end (v); 3483 return s; 3484} 3485 3486/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3487 function prototypes and stuff, but not '\xHH' hex character constants. 3488 These don't provoke an error unfortunately, instead are silently treated 3489 as 'x'. The following induces an error, until -std is added to get 3490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3491 array size at least. It's necessary to write '\x00'==0 to get something 3492 that's true only with -std. */ 3493int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3494 3495/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3496 inside strings and character constants. */ 3497#define FOO(x) 'x' 3498int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3499 3500int test (int i, double x); 3501struct s1 {int (*f) (int a);}; 3502struct s2 {int (*f) (double a);}; 3503int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3504int argc; 3505char **argv; 3506int 3507main () 3508{ 3509return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3516do 3517 CC="$ac_save_CC $ac_arg" 3518 rm -f conftest.$ac_objext 3519if { (ac_try="$ac_compile" 3520case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523esac 3524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3525$as_echo "$ac_try_echo") >&5 3526 (eval "$ac_compile") 2>conftest.er1 3527 ac_status=$? 3528 grep -v '^ *+' conftest.er1 >conftest.err 3529 rm -f conftest.er1 3530 cat conftest.err >&5 3531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } && { 3533 test -z "$ac_c_werror_flag" || 3534 test ! -s conftest.err 3535 } && test -s conftest.$ac_objext; then 3536 ac_cv_prog_cc_c89=$ac_arg 3537else 3538 $as_echo "$as_me: failed program was:" >&5 3539sed 's/^/| /' conftest.$ac_ext >&5 3540 3541 3542fi 3543 3544rm -f core conftest.err conftest.$ac_objext 3545 test "x$ac_cv_prog_cc_c89" != "xno" && break 3546done 3547rm -f conftest.$ac_ext 3548CC=$ac_save_CC 3549 3550fi 3551# AC_CACHE_VAL 3552case "x$ac_cv_prog_cc_c89" in 3553 x) 3554 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3555$as_echo "none needed" >&6; } ;; 3556 xno) 3557 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3558$as_echo "unsupported" >&6; } ;; 3559 *) 3560 CC="$CC $ac_cv_prog_cc_c89" 3561 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3562$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3563esac 3564 3565 3566ac_ext=c 3567ac_cpp='$CPP $CPPFLAGS' 3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3570ac_compiler_gnu=$ac_cv_c_compiler_gnu 3571DEPDIR="${am__leading_dot}deps" 3572 3573ac_config_commands="$ac_config_commands depfiles" 3574 3575 3576am_make=${MAKE-make} 3577cat > confinc << 'END' 3578am__doit: 3579 @echo this is the am__doit target 3580.PHONY: am__doit 3581END 3582# If we don't find an include directive, just comment out the code. 3583{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3584$as_echo_n "checking for style of include used by $am_make... " >&6; } 3585am__include="#" 3586am__quote= 3587_am_result=none 3588# First try GNU make style include. 3589echo "include confinc" > confmf 3590# Ignore all kinds of additional output from `make'. 3591case `$am_make -s -f confmf 2> /dev/null` in #( 3592*the\ am__doit\ target*) 3593 am__include=include 3594 am__quote= 3595 _am_result=GNU 3596 ;; 3597esac 3598# Now try BSD make style include. 3599if test "$am__include" = "#"; then 3600 echo '.include "confinc"' > confmf 3601 case `$am_make -s -f confmf 2> /dev/null` in #( 3602 *the\ am__doit\ target*) 3603 am__include=.include 3604 am__quote="\"" 3605 _am_result=BSD 3606 ;; 3607 esac 3608fi 3609 3610 3611{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3612$as_echo "$_am_result" >&6; } 3613rm -f confinc confmf 3614 3615# Check whether --enable-dependency-tracking was given. 3616if test "${enable_dependency_tracking+set}" = set; then 3617 enableval=$enable_dependency_tracking; 3618fi 3619 3620if test "x$enable_dependency_tracking" != xno; then 3621 am_depcomp="$ac_aux_dir/depcomp" 3622 AMDEPBACKSLASH='\' 3623fi 3624 if test "x$enable_dependency_tracking" != xno; then 3625 AMDEP_TRUE= 3626 AMDEP_FALSE='#' 3627else 3628 AMDEP_TRUE='#' 3629 AMDEP_FALSE= 3630fi 3631 3632 3633 3634depcc="$CC" am_compiler_list= 3635 3636{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3637$as_echo_n "checking dependency style of $depcc... " >&6; } 3638if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3639 $as_echo_n "(cached) " >&6 3640else 3641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3642 # We make a subdir and do the tests there. Otherwise we can end up 3643 # making bogus files that we don't know about and never remove. For 3644 # instance it was reported that on HP-UX the gcc test will end up 3645 # making a dummy file named `D' -- because `-MD' means `put the output 3646 # in D'. 3647 mkdir conftest.dir 3648 # Copy depcomp to subdir because otherwise we won't find it if we're 3649 # using a relative directory. 3650 cp "$am_depcomp" conftest.dir 3651 cd conftest.dir 3652 # We will build objects and dependencies in a subdirectory because 3653 # it helps to detect inapplicable dependency modes. For instance 3654 # both Tru64's cc and ICC support -MD to output dependencies as a 3655 # side effect of compilation, but ICC will put the dependencies in 3656 # the current directory while Tru64 will put them in the object 3657 # directory. 3658 mkdir sub 3659 3660 am_cv_CC_dependencies_compiler_type=none 3661 if test "$am_compiler_list" = ""; then 3662 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3663 fi 3664 am__universal=false 3665 case " $depcc " in #( 3666 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3667 esac 3668 3669 for depmode in $am_compiler_list; do 3670 # Setup a source with many dependencies, because some compilers 3671 # like to wrap large dependency lists on column 80 (with \), and 3672 # we should not choose a depcomp mode which is confused by this. 3673 # 3674 # We need to recreate these files for each test, as the compiler may 3675 # overwrite some of them when testing with obscure command lines. 3676 # This happens at least with the AIX C compiler. 3677 : > sub/conftest.c 3678 for i in 1 2 3 4 5 6; do 3679 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3680 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3681 # Solaris 8's {/usr,}/bin/sh. 3682 touch sub/conftst$i.h 3683 done 3684 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3685 3686 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3687 # mode. It turns out that the SunPro C++ compiler does not properly 3688 # handle `-M -o', and we need to detect this. Also, some Intel 3689 # versions had trouble with output in subdirs 3690 am__obj=sub/conftest.${OBJEXT-o} 3691 am__minus_obj="-o $am__obj" 3692 case $depmode in 3693 gcc) 3694 # This depmode causes a compiler race in universal mode. 3695 test "$am__universal" = false || continue 3696 ;; 3697 nosideeffect) 3698 # after this tag, mechanisms are not by side-effect, so they'll 3699 # only be used when explicitly requested 3700 if test "x$enable_dependency_tracking" = xyes; then 3701 continue 3702 else 3703 break 3704 fi 3705 ;; 3706 msvisualcpp | msvcmsys) 3707 # This compiler won't grok `-c -o', but also, the minuso test has 3708 # not run yet. These depmodes are late enough in the game, and 3709 # so weak that their functioning should not be impacted. 3710 am__obj=conftest.${OBJEXT-o} 3711 am__minus_obj= 3712 ;; 3713 none) break ;; 3714 esac 3715 if depmode=$depmode \ 3716 source=sub/conftest.c object=$am__obj \ 3717 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3718 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3719 >/dev/null 2>conftest.err && 3720 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3722 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3724 # icc doesn't choke on unknown options, it will just issue warnings 3725 # or remarks (even with -Werror). So we grep stderr for any message 3726 # that says an option was ignored or not supported. 3727 # When given -MP, icc 7.0 and 7.1 complain thusly: 3728 # icc: Command line warning: ignoring option '-M'; no argument required 3729 # The diagnosis changed in icc 8.0: 3730 # icc: Command line remark: option '-MP' not supported 3731 if (grep 'ignoring option' conftest.err || 3732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3733 am_cv_CC_dependencies_compiler_type=$depmode 3734 break 3735 fi 3736 fi 3737 done 3738 3739 cd .. 3740 rm -rf conftest.dir 3741else 3742 am_cv_CC_dependencies_compiler_type=none 3743fi 3744 3745fi 3746{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3747$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3748CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3749 3750 if 3751 test "x$enable_dependency_tracking" != xno \ 3752 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3753 am__fastdepCC_TRUE= 3754 am__fastdepCC_FALSE='#' 3755else 3756 am__fastdepCC_TRUE='#' 3757 am__fastdepCC_FALSE= 3758fi 3759 3760 3761case `pwd` in 3762 *\ * | *\ *) 3763 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3764$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3765esac 3766 3767 3768 3769macro_version='2.2.6' 3770macro_revision='1.3012' 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784ltmain="$ac_aux_dir/ltmain.sh" 3785 3786# Make sure we can run config.sub. 3787$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3788 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3789$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3790 { (exit 1); exit 1; }; } 3791 3792{ $as_echo "$as_me:$LINENO: checking build system type" >&5 3793$as_echo_n "checking build system type... " >&6; } 3794if test "${ac_cv_build+set}" = set; then 3795 $as_echo_n "(cached) " >&6 3796else 3797 ac_build_alias=$build_alias 3798test "x$ac_build_alias" = x && 3799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3800test "x$ac_build_alias" = x && 3801 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3802$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3803 { (exit 1); exit 1; }; } 3804ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3805 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3806$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3807 { (exit 1); exit 1; }; } 3808 3809fi 3810{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3811$as_echo "$ac_cv_build" >&6; } 3812case $ac_cv_build in 3813*-*-*) ;; 3814*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3815$as_echo "$as_me: error: invalid value of canonical build" >&2;} 3816 { (exit 1); exit 1; }; };; 3817esac 3818build=$ac_cv_build 3819ac_save_IFS=$IFS; IFS='-' 3820set x $ac_cv_build 3821shift 3822build_cpu=$1 3823build_vendor=$2 3824shift; shift 3825# Remember, the first character of IFS is used to create $*, 3826# except with old shells: 3827build_os=$* 3828IFS=$ac_save_IFS 3829case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3830 3831 3832{ $as_echo "$as_me:$LINENO: checking host system type" >&5 3833$as_echo_n "checking host system type... " >&6; } 3834if test "${ac_cv_host+set}" = set; then 3835 $as_echo_n "(cached) " >&6 3836else 3837 if test "x$host_alias" = x; then 3838 ac_cv_host=$ac_cv_build 3839else 3840 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3841 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3842$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3843 { (exit 1); exit 1; }; } 3844fi 3845 3846fi 3847{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3848$as_echo "$ac_cv_host" >&6; } 3849case $ac_cv_host in 3850*-*-*) ;; 3851*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3852$as_echo "$as_me: error: invalid value of canonical host" >&2;} 3853 { (exit 1); exit 1; }; };; 3854esac 3855host=$ac_cv_host 3856ac_save_IFS=$IFS; IFS='-' 3857set x $ac_cv_host 3858shift 3859host_cpu=$1 3860host_vendor=$2 3861shift; shift 3862# Remember, the first character of IFS is used to create $*, 3863# except with old shells: 3864host_os=$* 3865IFS=$ac_save_IFS 3866case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3867 3868 3869{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3870$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3871if test "${ac_cv_path_SED+set}" = set; then 3872 $as_echo_n "(cached) " >&6 3873else 3874 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3875 for ac_i in 1 2 3 4 5 6 7; do 3876 ac_script="$ac_script$as_nl$ac_script" 3877 done 3878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3879 $as_unset ac_script || ac_script= 3880 if test -z "$SED"; then 3881 ac_path_SED_found=false 3882 # Loop through the user's path and test for each of PROGNAME-LIST 3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_prog in sed gsed; do 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3891 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3892# Check for GNU ac_path_SED and select it if it is found. 3893 # Check for GNU $ac_path_SED 3894case `"$ac_path_SED" --version 2>&1` in 3895*GNU*) 3896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3897*) 3898 ac_count=0 3899 $as_echo_n 0123456789 >"conftest.in" 3900 while : 3901 do 3902 cat "conftest.in" "conftest.in" >"conftest.tmp" 3903 mv "conftest.tmp" "conftest.in" 3904 cp "conftest.in" "conftest.nl" 3905 $as_echo '' >> "conftest.nl" 3906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3908 ac_count=`expr $ac_count + 1` 3909 if test $ac_count -gt ${ac_path_SED_max-0}; then 3910 # Best one so far, save it but keep looking for a better one 3911 ac_cv_path_SED="$ac_path_SED" 3912 ac_path_SED_max=$ac_count 3913 fi 3914 # 10*(2^10) chars as input seems more than enough 3915 test $ac_count -gt 10 && break 3916 done 3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3918esac 3919 3920 $ac_path_SED_found && break 3 3921 done 3922 done 3923done 3924IFS=$as_save_IFS 3925 if test -z "$ac_cv_path_SED"; then 3926 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3927$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3928 { (exit 1); exit 1; }; } 3929 fi 3930else 3931 ac_cv_path_SED=$SED 3932fi 3933 3934fi 3935{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3936$as_echo "$ac_cv_path_SED" >&6; } 3937 SED="$ac_cv_path_SED" 3938 rm -f conftest.sed 3939 3940test -z "$SED" && SED=sed 3941Xsed="$SED -e 1s/^X//" 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3954$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3955if test "${ac_cv_path_GREP+set}" = set; then 3956 $as_echo_n "(cached) " >&6 3957else 3958 if test -z "$GREP"; then 3959 ac_path_GREP_found=false 3960 # Loop through the user's path and test for each of PROGNAME-LIST 3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3962for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3963do 3964 IFS=$as_save_IFS 3965 test -z "$as_dir" && as_dir=. 3966 for ac_prog in grep ggrep; do 3967 for ac_exec_ext in '' $ac_executable_extensions; do 3968 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3969 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3970# Check for GNU ac_path_GREP and select it if it is found. 3971 # Check for GNU $ac_path_GREP 3972case `"$ac_path_GREP" --version 2>&1` in 3973*GNU*) 3974 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3975*) 3976 ac_count=0 3977 $as_echo_n 0123456789 >"conftest.in" 3978 while : 3979 do 3980 cat "conftest.in" "conftest.in" >"conftest.tmp" 3981 mv "conftest.tmp" "conftest.in" 3982 cp "conftest.in" "conftest.nl" 3983 $as_echo 'GREP' >> "conftest.nl" 3984 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3986 ac_count=`expr $ac_count + 1` 3987 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3988 # Best one so far, save it but keep looking for a better one 3989 ac_cv_path_GREP="$ac_path_GREP" 3990 ac_path_GREP_max=$ac_count 3991 fi 3992 # 10*(2^10) chars as input seems more than enough 3993 test $ac_count -gt 10 && break 3994 done 3995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3996esac 3997 3998 $ac_path_GREP_found && break 3 3999 done 4000 done 4001done 4002IFS=$as_save_IFS 4003 if test -z "$ac_cv_path_GREP"; then 4004 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4005$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4006 { (exit 1); exit 1; }; } 4007 fi 4008else 4009 ac_cv_path_GREP=$GREP 4010fi 4011 4012fi 4013{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4014$as_echo "$ac_cv_path_GREP" >&6; } 4015 GREP="$ac_cv_path_GREP" 4016 4017 4018{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4019$as_echo_n "checking for egrep... " >&6; } 4020if test "${ac_cv_path_EGREP+set}" = set; then 4021 $as_echo_n "(cached) " >&6 4022else 4023 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4024 then ac_cv_path_EGREP="$GREP -E" 4025 else 4026 if test -z "$EGREP"; then 4027 ac_path_EGREP_found=false 4028 # Loop through the user's path and test for each of PROGNAME-LIST 4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4030for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4031do 4032 IFS=$as_save_IFS 4033 test -z "$as_dir" && as_dir=. 4034 for ac_prog in egrep; do 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4037 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4038# Check for GNU ac_path_EGREP and select it if it is found. 4039 # Check for GNU $ac_path_EGREP 4040case `"$ac_path_EGREP" --version 2>&1` in 4041*GNU*) 4042 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4043*) 4044 ac_count=0 4045 $as_echo_n 0123456789 >"conftest.in" 4046 while : 4047 do 4048 cat "conftest.in" "conftest.in" >"conftest.tmp" 4049 mv "conftest.tmp" "conftest.in" 4050 cp "conftest.in" "conftest.nl" 4051 $as_echo 'EGREP' >> "conftest.nl" 4052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4054 ac_count=`expr $ac_count + 1` 4055 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4056 # Best one so far, save it but keep looking for a better one 4057 ac_cv_path_EGREP="$ac_path_EGREP" 4058 ac_path_EGREP_max=$ac_count 4059 fi 4060 # 10*(2^10) chars as input seems more than enough 4061 test $ac_count -gt 10 && break 4062 done 4063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4064esac 4065 4066 $ac_path_EGREP_found && break 3 4067 done 4068 done 4069done 4070IFS=$as_save_IFS 4071 if test -z "$ac_cv_path_EGREP"; then 4072 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4073$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4074 { (exit 1); exit 1; }; } 4075 fi 4076else 4077 ac_cv_path_EGREP=$EGREP 4078fi 4079 4080 fi 4081fi 4082{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4083$as_echo "$ac_cv_path_EGREP" >&6; } 4084 EGREP="$ac_cv_path_EGREP" 4085 4086 4087{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4088$as_echo_n "checking for fgrep... " >&6; } 4089if test "${ac_cv_path_FGREP+set}" = set; then 4090 $as_echo_n "(cached) " >&6 4091else 4092 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4093 then ac_cv_path_FGREP="$GREP -F" 4094 else 4095 if test -z "$FGREP"; then 4096 ac_path_FGREP_found=false 4097 # Loop through the user's path and test for each of PROGNAME-LIST 4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4100do 4101 IFS=$as_save_IFS 4102 test -z "$as_dir" && as_dir=. 4103 for ac_prog in fgrep; do 4104 for ac_exec_ext in '' $ac_executable_extensions; do 4105 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4106 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4107# Check for GNU ac_path_FGREP and select it if it is found. 4108 # Check for GNU $ac_path_FGREP 4109case `"$ac_path_FGREP" --version 2>&1` in 4110*GNU*) 4111 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4112*) 4113 ac_count=0 4114 $as_echo_n 0123456789 >"conftest.in" 4115 while : 4116 do 4117 cat "conftest.in" "conftest.in" >"conftest.tmp" 4118 mv "conftest.tmp" "conftest.in" 4119 cp "conftest.in" "conftest.nl" 4120 $as_echo 'FGREP' >> "conftest.nl" 4121 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4123 ac_count=`expr $ac_count + 1` 4124 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4125 # Best one so far, save it but keep looking for a better one 4126 ac_cv_path_FGREP="$ac_path_FGREP" 4127 ac_path_FGREP_max=$ac_count 4128 fi 4129 # 10*(2^10) chars as input seems more than enough 4130 test $ac_count -gt 10 && break 4131 done 4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4133esac 4134 4135 $ac_path_FGREP_found && break 3 4136 done 4137 done 4138done 4139IFS=$as_save_IFS 4140 if test -z "$ac_cv_path_FGREP"; then 4141 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4142$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4143 { (exit 1); exit 1; }; } 4144 fi 4145else 4146 ac_cv_path_FGREP=$FGREP 4147fi 4148 4149 fi 4150fi 4151{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4152$as_echo "$ac_cv_path_FGREP" >&6; } 4153 FGREP="$ac_cv_path_FGREP" 4154 4155 4156test -z "$GREP" && GREP=grep 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176# Check whether --with-gnu-ld was given. 4177if test "${with_gnu_ld+set}" = set; then 4178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4179else 4180 with_gnu_ld=no 4181fi 4182 4183ac_prog=ld 4184if test "$GCC" = yes; then 4185 # Check if gcc -print-prog-name=ld gives a path. 4186 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4187$as_echo_n "checking for ld used by $CC... " >&6; } 4188 case $host in 4189 *-*-mingw*) 4190 # gcc leaves a trailing carriage return which upsets mingw 4191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4192 *) 4193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4194 esac 4195 case $ac_prog in 4196 # Accept absolute paths. 4197 [\\/]* | ?:[\\/]*) 4198 re_direlt='/[^/][^/]*/\.\./' 4199 # Canonicalize the pathname of ld 4200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4203 done 4204 test -z "$LD" && LD="$ac_prog" 4205 ;; 4206 "") 4207 # If it fails, then pretend we aren't using GCC. 4208 ac_prog=ld 4209 ;; 4210 *) 4211 # If it is relative, then search for the first ld in PATH. 4212 with_gnu_ld=unknown 4213 ;; 4214 esac 4215elif test "$with_gnu_ld" = yes; then 4216 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4217$as_echo_n "checking for GNU ld... " >&6; } 4218else 4219 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4220$as_echo_n "checking for non-GNU ld... " >&6; } 4221fi 4222if test "${lt_cv_path_LD+set}" = set; then 4223 $as_echo_n "(cached) " >&6 4224else 4225 if test -z "$LD"; then 4226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4227 for ac_dir in $PATH; do 4228 IFS="$lt_save_ifs" 4229 test -z "$ac_dir" && ac_dir=. 4230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4231 lt_cv_path_LD="$ac_dir/$ac_prog" 4232 # Check to see if the program is GNU ld. I'd rather use --version, 4233 # but apparently some variants of GNU ld only accept -v. 4234 # Break only if it was the GNU/non-GNU ld that we prefer. 4235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4236 *GNU* | *'with BFD'*) 4237 test "$with_gnu_ld" != no && break 4238 ;; 4239 *) 4240 test "$with_gnu_ld" != yes && break 4241 ;; 4242 esac 4243 fi 4244 done 4245 IFS="$lt_save_ifs" 4246else 4247 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4248fi 4249fi 4250 4251LD="$lt_cv_path_LD" 4252if test -n "$LD"; then 4253 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4254$as_echo "$LD" >&6; } 4255else 4256 { $as_echo "$as_me:$LINENO: result: no" >&5 4257$as_echo "no" >&6; } 4258fi 4259test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4260$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4261 { (exit 1); exit 1; }; } 4262{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4263$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4264if test "${lt_cv_prog_gnu_ld+set}" = set; then 4265 $as_echo_n "(cached) " >&6 4266else 4267 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4268case `$LD -v 2>&1 </dev/null` in 4269*GNU* | *'with BFD'*) 4270 lt_cv_prog_gnu_ld=yes 4271 ;; 4272*) 4273 lt_cv_prog_gnu_ld=no 4274 ;; 4275esac 4276fi 4277{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4278$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4279with_gnu_ld=$lt_cv_prog_gnu_ld 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4290$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4291if test "${lt_cv_path_NM+set}" = set; then 4292 $as_echo_n "(cached) " >&6 4293else 4294 if test -n "$NM"; then 4295 # Let the user override the test. 4296 lt_cv_path_NM="$NM" 4297else 4298 lt_nm_to_check="${ac_tool_prefix}nm" 4299 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4300 lt_nm_to_check="$lt_nm_to_check nm" 4301 fi 4302 for lt_tmp_nm in $lt_nm_to_check; do 4303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4304 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4305 IFS="$lt_save_ifs" 4306 test -z "$ac_dir" && ac_dir=. 4307 tmp_nm="$ac_dir/$lt_tmp_nm" 4308 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4309 # Check to see if the nm accepts a BSD-compat flag. 4310 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4311 # nm: unknown option "B" ignored 4312 # Tru64's nm complains that /dev/null is an invalid object file 4313 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4314 */dev/null* | *'Invalid file or object type'*) 4315 lt_cv_path_NM="$tmp_nm -B" 4316 break 4317 ;; 4318 *) 4319 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4320 */dev/null*) 4321 lt_cv_path_NM="$tmp_nm -p" 4322 break 4323 ;; 4324 *) 4325 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4326 continue # so that we can try to find one that supports BSD flags 4327 ;; 4328 esac 4329 ;; 4330 esac 4331 fi 4332 done 4333 IFS="$lt_save_ifs" 4334 done 4335 : ${lt_cv_path_NM=no} 4336fi 4337fi 4338{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4339$as_echo "$lt_cv_path_NM" >&6; } 4340if test "$lt_cv_path_NM" != "no"; then 4341 NM="$lt_cv_path_NM" 4342else 4343 # Didn't find any BSD compatible name lister, look for dumpbin. 4344 if test -n "$ac_tool_prefix"; then 4345 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4346 do 4347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4348set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4349{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4350$as_echo_n "checking for $ac_word... " >&6; } 4351if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4352 $as_echo_n "(cached) " >&6 4353else 4354 if test -n "$DUMPBIN"; then 4355 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4356else 4357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4358for as_dir in $PATH 4359do 4360 IFS=$as_save_IFS 4361 test -z "$as_dir" && as_dir=. 4362 for ac_exec_ext in '' $ac_executable_extensions; do 4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4364 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4366 break 2 4367 fi 4368done 4369done 4370IFS=$as_save_IFS 4371 4372fi 4373fi 4374DUMPBIN=$ac_cv_prog_DUMPBIN 4375if test -n "$DUMPBIN"; then 4376 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4377$as_echo "$DUMPBIN" >&6; } 4378else 4379 { $as_echo "$as_me:$LINENO: result: no" >&5 4380$as_echo "no" >&6; } 4381fi 4382 4383 4384 test -n "$DUMPBIN" && break 4385 done 4386fi 4387if test -z "$DUMPBIN"; then 4388 ac_ct_DUMPBIN=$DUMPBIN 4389 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4390do 4391 # Extract the first word of "$ac_prog", so it can be a program name with args. 4392set dummy $ac_prog; ac_word=$2 4393{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4394$as_echo_n "checking for $ac_word... " >&6; } 4395if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -n "$ac_ct_DUMPBIN"; then 4399 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4400else 4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4408 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412done 4413done 4414IFS=$as_save_IFS 4415 4416fi 4417fi 4418ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4419if test -n "$ac_ct_DUMPBIN"; then 4420 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4421$as_echo "$ac_ct_DUMPBIN" >&6; } 4422else 4423 { $as_echo "$as_me:$LINENO: result: no" >&5 4424$as_echo "no" >&6; } 4425fi 4426 4427 4428 test -n "$ac_ct_DUMPBIN" && break 4429done 4430 4431 if test "x$ac_ct_DUMPBIN" = x; then 4432 DUMPBIN=":" 4433 else 4434 case $cross_compiling:$ac_tool_warned in 4435yes:) 4436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4438ac_tool_warned=yes ;; 4439esac 4440 DUMPBIN=$ac_ct_DUMPBIN 4441 fi 4442fi 4443 4444 4445 if test "$DUMPBIN" != ":"; then 4446 NM="$DUMPBIN" 4447 fi 4448fi 4449test -z "$NM" && NM=nm 4450 4451 4452 4453 4454 4455 4456{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4457$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4458if test "${lt_cv_nm_interface+set}" = set; then 4459 $as_echo_n "(cached) " >&6 4460else 4461 lt_cv_nm_interface="BSD nm" 4462 echo "int some_variable = 0;" > conftest.$ac_ext 4463 (eval echo "\"\$as_me:4463: $ac_compile\"" >&5) 4464 (eval "$ac_compile" 2>conftest.err) 4465 cat conftest.err >&5 4466 (eval echo "\"\$as_me:4466: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4467 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4468 cat conftest.err >&5 4469 (eval echo "\"\$as_me:4469: output\"" >&5) 4470 cat conftest.out >&5 4471 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4472 lt_cv_nm_interface="MS dumpbin" 4473 fi 4474 rm -f conftest* 4475fi 4476{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4477$as_echo "$lt_cv_nm_interface" >&6; } 4478 4479{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4480$as_echo_n "checking whether ln -s works... " >&6; } 4481LN_S=$as_ln_s 4482if test "$LN_S" = "ln -s"; then 4483 { $as_echo "$as_me:$LINENO: result: yes" >&5 4484$as_echo "yes" >&6; } 4485else 4486 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4487$as_echo "no, using $LN_S" >&6; } 4488fi 4489 4490# find the maximum length of command line arguments 4491{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4492$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4493if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4494 $as_echo_n "(cached) " >&6 4495else 4496 i=0 4497 teststring="ABCD" 4498 4499 case $build_os in 4500 msdosdjgpp*) 4501 # On DJGPP, this test can blow up pretty badly due to problems in libc 4502 # (any single argument exceeding 2000 bytes causes a buffer overrun 4503 # during glob expansion). Even if it were fixed, the result of this 4504 # check would be larger than it should be. 4505 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4506 ;; 4507 4508 gnu*) 4509 # Under GNU Hurd, this test is not required because there is 4510 # no limit to the length of command line arguments. 4511 # Libtool will interpret -1 as no limit whatsoever 4512 lt_cv_sys_max_cmd_len=-1; 4513 ;; 4514 4515 cygwin* | mingw* | cegcc*) 4516 # On Win9x/ME, this test blows up -- it succeeds, but takes 4517 # about 5 minutes as the teststring grows exponentially. 4518 # Worse, since 9x/ME are not pre-emptively multitasking, 4519 # you end up with a "frozen" computer, even though with patience 4520 # the test eventually succeeds (with a max line length of 256k). 4521 # Instead, let's just punt: use the minimum linelength reported by 4522 # all of the supported platforms: 8192 (on NT/2K/XP). 4523 lt_cv_sys_max_cmd_len=8192; 4524 ;; 4525 4526 amigaos*) 4527 # On AmigaOS with pdksh, this test takes hours, literally. 4528 # So we just punt and use a minimum line length of 8192. 4529 lt_cv_sys_max_cmd_len=8192; 4530 ;; 4531 4532 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4533 # This has been around since 386BSD, at least. Likely further. 4534 if test -x /sbin/sysctl; then 4535 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4536 elif test -x /usr/sbin/sysctl; then 4537 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4538 else 4539 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4540 fi 4541 # And add a safety zone 4542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4544 ;; 4545 4546 interix*) 4547 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4548 lt_cv_sys_max_cmd_len=196608 4549 ;; 4550 4551 osf*) 4552 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4553 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4554 # nice to cause kernel panics so lets avoid the loop below. 4555 # First set a reasonable default. 4556 lt_cv_sys_max_cmd_len=16384 4557 # 4558 if test -x /sbin/sysconfig; then 4559 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4560 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4561 esac 4562 fi 4563 ;; 4564 sco3.2v5*) 4565 lt_cv_sys_max_cmd_len=102400 4566 ;; 4567 sysv5* | sco5v6* | sysv4.2uw2*) 4568 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4569 if test -n "$kargmax"; then 4570 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4571 else 4572 lt_cv_sys_max_cmd_len=32768 4573 fi 4574 ;; 4575 *) 4576 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4577 if test -n "$lt_cv_sys_max_cmd_len"; then 4578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4580 else 4581 # Make teststring a little bigger before we do anything with it. 4582 # a 1K string should be a reasonable start. 4583 for i in 1 2 3 4 5 6 7 8 ; do 4584 teststring=$teststring$teststring 4585 done 4586 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4587 # If test is not a shell built-in, we'll probably end up computing a 4588 # maximum length that is only half of the actual maximum length, but 4589 # we can't tell. 4590 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4591 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4592 test $i != 17 # 1/2 MB should be enough 4593 do 4594 i=`expr $i + 1` 4595 teststring=$teststring$teststring 4596 done 4597 # Only check the string length outside the loop. 4598 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4599 teststring= 4600 # Add a significant safety factor because C++ compilers can tack on 4601 # massive amounts of additional arguments before passing them to the 4602 # linker. It appears as though 1/2 is a usable value. 4603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4604 fi 4605 ;; 4606 esac 4607 4608fi 4609 4610if test -n $lt_cv_sys_max_cmd_len ; then 4611 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4612$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4613else 4614 { $as_echo "$as_me:$LINENO: result: none" >&5 4615$as_echo "none" >&6; } 4616fi 4617max_cmd_len=$lt_cv_sys_max_cmd_len 4618 4619 4620 4621 4622 4623 4624: ${CP="cp -f"} 4625: ${MV="mv -f"} 4626: ${RM="rm -f"} 4627 4628{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4629$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4630# Try some XSI features 4631xsi_shell=no 4632( _lt_dummy="a/b/c" 4633 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4634 = c,a/b,, \ 4635 && eval 'test $(( 1 + 1 )) -eq 2 \ 4636 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4637 && xsi_shell=yes 4638{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4639$as_echo "$xsi_shell" >&6; } 4640 4641 4642{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4643$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4644lt_shell_append=no 4645( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4646 >/dev/null 2>&1 \ 4647 && lt_shell_append=yes 4648{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4649$as_echo "$lt_shell_append" >&6; } 4650 4651 4652if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4653 lt_unset=unset 4654else 4655 lt_unset=false 4656fi 4657 4658 4659 4660 4661 4662# test EBCDIC or ASCII 4663case `echo X|tr X '\101'` in 4664 A) # ASCII based system 4665 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4666 lt_SP2NL='tr \040 \012' 4667 lt_NL2SP='tr \015\012 \040\040' 4668 ;; 4669 *) # EBCDIC based system 4670 lt_SP2NL='tr \100 \n' 4671 lt_NL2SP='tr \r\n \100\100' 4672 ;; 4673esac 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4684$as_echo_n "checking for $LD option to reload object files... " >&6; } 4685if test "${lt_cv_ld_reload_flag+set}" = set; then 4686 $as_echo_n "(cached) " >&6 4687else 4688 lt_cv_ld_reload_flag='-r' 4689fi 4690{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4691$as_echo "$lt_cv_ld_reload_flag" >&6; } 4692reload_flag=$lt_cv_ld_reload_flag 4693case $reload_flag in 4694"" | " "*) ;; 4695*) reload_flag=" $reload_flag" ;; 4696esac 4697reload_cmds='$LD$reload_flag -o $output$reload_objs' 4698case $host_os in 4699 darwin*) 4700 if test "$GCC" = yes; then 4701 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4702 else 4703 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4704 fi 4705 ;; 4706esac 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716if test -n "$ac_tool_prefix"; then 4717 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4718set dummy ${ac_tool_prefix}objdump; ac_word=$2 4719{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4720$as_echo_n "checking for $ac_word... " >&6; } 4721if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4722 $as_echo_n "(cached) " >&6 4723else 4724 if test -n "$OBJDUMP"; then 4725 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4726else 4727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4728for as_dir in $PATH 4729do 4730 IFS=$as_save_IFS 4731 test -z "$as_dir" && as_dir=. 4732 for ac_exec_ext in '' $ac_executable_extensions; do 4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4736 break 2 4737 fi 4738done 4739done 4740IFS=$as_save_IFS 4741 4742fi 4743fi 4744OBJDUMP=$ac_cv_prog_OBJDUMP 4745if test -n "$OBJDUMP"; then 4746 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4747$as_echo "$OBJDUMP" >&6; } 4748else 4749 { $as_echo "$as_me:$LINENO: result: no" >&5 4750$as_echo "no" >&6; } 4751fi 4752 4753 4754fi 4755if test -z "$ac_cv_prog_OBJDUMP"; then 4756 ac_ct_OBJDUMP=$OBJDUMP 4757 # Extract the first word of "objdump", so it can be a program name with args. 4758set dummy objdump; ac_word=$2 4759{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4760$as_echo_n "checking for $ac_word... " >&6; } 4761if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4762 $as_echo_n "(cached) " >&6 4763else 4764 if test -n "$ac_ct_OBJDUMP"; then 4765 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4766else 4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4768for as_dir in $PATH 4769do 4770 IFS=$as_save_IFS 4771 test -z "$as_dir" && as_dir=. 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4774 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4776 break 2 4777 fi 4778done 4779done 4780IFS=$as_save_IFS 4781 4782fi 4783fi 4784ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4785if test -n "$ac_ct_OBJDUMP"; then 4786 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4787$as_echo "$ac_ct_OBJDUMP" >&6; } 4788else 4789 { $as_echo "$as_me:$LINENO: result: no" >&5 4790$as_echo "no" >&6; } 4791fi 4792 4793 if test "x$ac_ct_OBJDUMP" = x; then 4794 OBJDUMP="false" 4795 else 4796 case $cross_compiling:$ac_tool_warned in 4797yes:) 4798{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4800ac_tool_warned=yes ;; 4801esac 4802 OBJDUMP=$ac_ct_OBJDUMP 4803 fi 4804else 4805 OBJDUMP="$ac_cv_prog_OBJDUMP" 4806fi 4807 4808test -z "$OBJDUMP" && OBJDUMP=objdump 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4819$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4820if test "${lt_cv_deplibs_check_method+set}" = set; then 4821 $as_echo_n "(cached) " >&6 4822else 4823 lt_cv_file_magic_cmd='$MAGIC_CMD' 4824lt_cv_file_magic_test_file= 4825lt_cv_deplibs_check_method='unknown' 4826# Need to set the preceding variable on all platforms that support 4827# interlibrary dependencies. 4828# 'none' -- dependencies not supported. 4829# `unknown' -- same as none, but documents that we really don't know. 4830# 'pass_all' -- all dependencies passed with no checks. 4831# 'test_compile' -- check by making test program. 4832# 'file_magic [[regex]]' -- check by looking for files in library path 4833# which responds to the $file_magic_cmd with a given extended regex. 4834# If you have `file' or equivalent on your system and you're not sure 4835# whether `pass_all' will *always* work, you probably want this one. 4836 4837case $host_os in 4838aix[4-9]*) 4839 lt_cv_deplibs_check_method=pass_all 4840 ;; 4841 4842beos*) 4843 lt_cv_deplibs_check_method=pass_all 4844 ;; 4845 4846bsdi[45]*) 4847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4848 lt_cv_file_magic_cmd='/usr/bin/file -L' 4849 lt_cv_file_magic_test_file=/shlib/libc.so 4850 ;; 4851 4852cygwin*) 4853 # func_win32_libid is a shell function defined in ltmain.sh 4854 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4855 lt_cv_file_magic_cmd='func_win32_libid' 4856 ;; 4857 4858mingw* | pw32*) 4859 # Base MSYS/MinGW do not provide the 'file' command needed by 4860 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4861 # unless we find 'file', for example because we are cross-compiling. 4862 if ( file / ) >/dev/null 2>&1; then 4863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4864 lt_cv_file_magic_cmd='func_win32_libid' 4865 else 4866 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4867 lt_cv_file_magic_cmd='$OBJDUMP -f' 4868 fi 4869 ;; 4870 4871cegcc) 4872 # use the weaker test based on 'objdump'. See mingw*. 4873 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4874 lt_cv_file_magic_cmd='$OBJDUMP -f' 4875 ;; 4876 4877darwin* | rhapsody*) 4878 lt_cv_deplibs_check_method=pass_all 4879 ;; 4880 4881freebsd* | dragonfly*) 4882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4883 case $host_cpu in 4884 i*86 ) 4885 # Not sure whether the presence of OpenBSD here was a mistake. 4886 # Let's accept both of them until this is cleared up. 4887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4888 lt_cv_file_magic_cmd=/usr/bin/file 4889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4890 ;; 4891 esac 4892 else 4893 lt_cv_deplibs_check_method=pass_all 4894 fi 4895 ;; 4896 4897gnu*) 4898 lt_cv_deplibs_check_method=pass_all 4899 ;; 4900 4901hpux10.20* | hpux11*) 4902 lt_cv_file_magic_cmd=/usr/bin/file 4903 case $host_cpu in 4904 ia64*) 4905 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4906 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4907 ;; 4908 hppa*64*) 4909 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]' 4910 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4911 ;; 4912 *) 4913 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4914 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4915 ;; 4916 esac 4917 ;; 4918 4919interix[3-9]*) 4920 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4922 ;; 4923 4924irix5* | irix6* | nonstopux*) 4925 case $LD in 4926 *-32|*"-32 ") libmagic=32-bit;; 4927 *-n32|*"-n32 ") libmagic=N32;; 4928 *-64|*"-64 ") libmagic=64-bit;; 4929 *) libmagic=never-match;; 4930 esac 4931 lt_cv_deplibs_check_method=pass_all 4932 ;; 4933 4934# This must be Linux ELF. 4935linux* | k*bsd*-gnu) 4936 lt_cv_deplibs_check_method=pass_all 4937 ;; 4938 4939netbsd*) 4940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4942 else 4943 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4944 fi 4945 ;; 4946 4947newos6*) 4948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4949 lt_cv_file_magic_cmd=/usr/bin/file 4950 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4951 ;; 4952 4953*nto* | *qnx*) 4954 lt_cv_deplibs_check_method=pass_all 4955 ;; 4956 4957openbsd*) 4958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4960 else 4961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4962 fi 4963 ;; 4964 4965osf3* | osf4* | osf5*) 4966 lt_cv_deplibs_check_method=pass_all 4967 ;; 4968 4969rdos*) 4970 lt_cv_deplibs_check_method=pass_all 4971 ;; 4972 4973solaris*) 4974 lt_cv_deplibs_check_method=pass_all 4975 ;; 4976 4977sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4978 lt_cv_deplibs_check_method=pass_all 4979 ;; 4980 4981sysv4 | sysv4.3*) 4982 case $host_vendor in 4983 motorola) 4984 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]' 4985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4986 ;; 4987 ncr) 4988 lt_cv_deplibs_check_method=pass_all 4989 ;; 4990 sequent) 4991 lt_cv_file_magic_cmd='/bin/file' 4992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4993 ;; 4994 sni) 4995 lt_cv_file_magic_cmd='/bin/file' 4996 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4997 lt_cv_file_magic_test_file=/lib/libc.so 4998 ;; 4999 siemens) 5000 lt_cv_deplibs_check_method=pass_all 5001 ;; 5002 pc) 5003 lt_cv_deplibs_check_method=pass_all 5004 ;; 5005 esac 5006 ;; 5007 5008tpf*) 5009 lt_cv_deplibs_check_method=pass_all 5010 ;; 5011esac 5012 5013fi 5014{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5015$as_echo "$lt_cv_deplibs_check_method" >&6; } 5016file_magic_cmd=$lt_cv_file_magic_cmd 5017deplibs_check_method=$lt_cv_deplibs_check_method 5018test -z "$deplibs_check_method" && deplibs_check_method=unknown 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031if test -n "$ac_tool_prefix"; then 5032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5033set dummy ${ac_tool_prefix}ar; ac_word=$2 5034{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5035$as_echo_n "checking for $ac_word... " >&6; } 5036if test "${ac_cv_prog_AR+set}" = set; then 5037 $as_echo_n "(cached) " >&6 5038else 5039 if test -n "$AR"; then 5040 ac_cv_prog_AR="$AR" # Let the user override the test. 5041else 5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5043for as_dir in $PATH 5044do 5045 IFS=$as_save_IFS 5046 test -z "$as_dir" && as_dir=. 5047 for ac_exec_ext in '' $ac_executable_extensions; do 5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5049 ac_cv_prog_AR="${ac_tool_prefix}ar" 5050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5051 break 2 5052 fi 5053done 5054done 5055IFS=$as_save_IFS 5056 5057fi 5058fi 5059AR=$ac_cv_prog_AR 5060if test -n "$AR"; then 5061 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5062$as_echo "$AR" >&6; } 5063else 5064 { $as_echo "$as_me:$LINENO: result: no" >&5 5065$as_echo "no" >&6; } 5066fi 5067 5068 5069fi 5070if test -z "$ac_cv_prog_AR"; then 5071 ac_ct_AR=$AR 5072 # Extract the first word of "ar", so it can be a program name with args. 5073set dummy ar; ac_word=$2 5074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5075$as_echo_n "checking for $ac_word... " >&6; } 5076if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5077 $as_echo_n "(cached) " >&6 5078else 5079 if test -n "$ac_ct_AR"; then 5080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5081else 5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5083for as_dir in $PATH 5084do 5085 IFS=$as_save_IFS 5086 test -z "$as_dir" && as_dir=. 5087 for ac_exec_ext in '' $ac_executable_extensions; do 5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5089 ac_cv_prog_ac_ct_AR="ar" 5090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5091 break 2 5092 fi 5093done 5094done 5095IFS=$as_save_IFS 5096 5097fi 5098fi 5099ac_ct_AR=$ac_cv_prog_ac_ct_AR 5100if test -n "$ac_ct_AR"; then 5101 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5102$as_echo "$ac_ct_AR" >&6; } 5103else 5104 { $as_echo "$as_me:$LINENO: result: no" >&5 5105$as_echo "no" >&6; } 5106fi 5107 5108 if test "x$ac_ct_AR" = x; then 5109 AR="false" 5110 else 5111 case $cross_compiling:$ac_tool_warned in 5112yes:) 5113{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5115ac_tool_warned=yes ;; 5116esac 5117 AR=$ac_ct_AR 5118 fi 5119else 5120 AR="$ac_cv_prog_AR" 5121fi 5122 5123test -z "$AR" && AR=ar 5124test -z "$AR_FLAGS" && AR_FLAGS=cru 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136if test -n "$ac_tool_prefix"; then 5137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5138set dummy ${ac_tool_prefix}strip; ac_word=$2 5139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5140$as_echo_n "checking for $ac_word... " >&6; } 5141if test "${ac_cv_prog_STRIP+set}" = set; then 5142 $as_echo_n "(cached) " >&6 5143else 5144 if test -n "$STRIP"; then 5145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5146else 5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5148for as_dir in $PATH 5149do 5150 IFS=$as_save_IFS 5151 test -z "$as_dir" && as_dir=. 5152 for ac_exec_ext in '' $ac_executable_extensions; do 5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5154 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5156 break 2 5157 fi 5158done 5159done 5160IFS=$as_save_IFS 5161 5162fi 5163fi 5164STRIP=$ac_cv_prog_STRIP 5165if test -n "$STRIP"; then 5166 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5167$as_echo "$STRIP" >&6; } 5168else 5169 { $as_echo "$as_me:$LINENO: result: no" >&5 5170$as_echo "no" >&6; } 5171fi 5172 5173 5174fi 5175if test -z "$ac_cv_prog_STRIP"; then 5176 ac_ct_STRIP=$STRIP 5177 # Extract the first word of "strip", so it can be a program name with args. 5178set dummy strip; ac_word=$2 5179{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5180$as_echo_n "checking for $ac_word... " >&6; } 5181if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5182 $as_echo_n "(cached) " >&6 5183else 5184 if test -n "$ac_ct_STRIP"; then 5185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5186else 5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5188for as_dir in $PATH 5189do 5190 IFS=$as_save_IFS 5191 test -z "$as_dir" && as_dir=. 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5194 ac_cv_prog_ac_ct_STRIP="strip" 5195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5196 break 2 5197 fi 5198done 5199done 5200IFS=$as_save_IFS 5201 5202fi 5203fi 5204ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5205if test -n "$ac_ct_STRIP"; then 5206 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5207$as_echo "$ac_ct_STRIP" >&6; } 5208else 5209 { $as_echo "$as_me:$LINENO: result: no" >&5 5210$as_echo "no" >&6; } 5211fi 5212 5213 if test "x$ac_ct_STRIP" = x; then 5214 STRIP=":" 5215 else 5216 case $cross_compiling:$ac_tool_warned in 5217yes:) 5218{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5220ac_tool_warned=yes ;; 5221esac 5222 STRIP=$ac_ct_STRIP 5223 fi 5224else 5225 STRIP="$ac_cv_prog_STRIP" 5226fi 5227 5228test -z "$STRIP" && STRIP=: 5229 5230 5231 5232 5233 5234 5235if test -n "$ac_tool_prefix"; then 5236 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5237set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5239$as_echo_n "checking for $ac_word... " >&6; } 5240if test "${ac_cv_prog_RANLIB+set}" = set; then 5241 $as_echo_n "(cached) " >&6 5242else 5243 if test -n "$RANLIB"; then 5244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5245else 5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5247for as_dir in $PATH 5248do 5249 IFS=$as_save_IFS 5250 test -z "$as_dir" && as_dir=. 5251 for ac_exec_ext in '' $ac_executable_extensions; do 5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5253 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5255 break 2 5256 fi 5257done 5258done 5259IFS=$as_save_IFS 5260 5261fi 5262fi 5263RANLIB=$ac_cv_prog_RANLIB 5264if test -n "$RANLIB"; then 5265 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5266$as_echo "$RANLIB" >&6; } 5267else 5268 { $as_echo "$as_me:$LINENO: result: no" >&5 5269$as_echo "no" >&6; } 5270fi 5271 5272 5273fi 5274if test -z "$ac_cv_prog_RANLIB"; then 5275 ac_ct_RANLIB=$RANLIB 5276 # Extract the first word of "ranlib", so it can be a program name with args. 5277set dummy ranlib; ac_word=$2 5278{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5279$as_echo_n "checking for $ac_word... " >&6; } 5280if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5281 $as_echo_n "(cached) " >&6 5282else 5283 if test -n "$ac_ct_RANLIB"; then 5284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5285else 5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5287for as_dir in $PATH 5288do 5289 IFS=$as_save_IFS 5290 test -z "$as_dir" && as_dir=. 5291 for ac_exec_ext in '' $ac_executable_extensions; do 5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5293 ac_cv_prog_ac_ct_RANLIB="ranlib" 5294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5295 break 2 5296 fi 5297done 5298done 5299IFS=$as_save_IFS 5300 5301fi 5302fi 5303ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5304if test -n "$ac_ct_RANLIB"; then 5305 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5306$as_echo "$ac_ct_RANLIB" >&6; } 5307else 5308 { $as_echo "$as_me:$LINENO: result: no" >&5 5309$as_echo "no" >&6; } 5310fi 5311 5312 if test "x$ac_ct_RANLIB" = x; then 5313 RANLIB=":" 5314 else 5315 case $cross_compiling:$ac_tool_warned in 5316yes:) 5317{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5319ac_tool_warned=yes ;; 5320esac 5321 RANLIB=$ac_ct_RANLIB 5322 fi 5323else 5324 RANLIB="$ac_cv_prog_RANLIB" 5325fi 5326 5327test -z "$RANLIB" && RANLIB=: 5328 5329 5330 5331 5332 5333 5334# Determine commands to create old-style static archives. 5335old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5336old_postinstall_cmds='chmod 644 $oldlib' 5337old_postuninstall_cmds= 5338 5339if test -n "$RANLIB"; then 5340 case $host_os in 5341 openbsd*) 5342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5343 ;; 5344 *) 5345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5346 ;; 5347 esac 5348 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5349fi 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384# If no C compiler was specified, use CC. 5385LTCC=${LTCC-"$CC"} 5386 5387# If no C compiler flags were specified, use CFLAGS. 5388LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5389 5390# Allow CC to be a program name with arguments. 5391compiler=$CC 5392 5393 5394# Check for command to grab the raw symbol name followed by C symbol from nm. 5395{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5396$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5397if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5398 $as_echo_n "(cached) " >&6 5399else 5400 5401# These are sane defaults that work on at least a few old systems. 5402# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5403 5404# Character class describing NM global symbol codes. 5405symcode='[BCDEGRST]' 5406 5407# Regexp to match symbols that can be accessed directly from C. 5408sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5409 5410# Define system-specific variables. 5411case $host_os in 5412aix*) 5413 symcode='[BCDT]' 5414 ;; 5415cygwin* | mingw* | pw32* | cegcc*) 5416 symcode='[ABCDGISTW]' 5417 ;; 5418hpux*) 5419 if test "$host_cpu" = ia64; then 5420 symcode='[ABCDEGRST]' 5421 fi 5422 ;; 5423irix* | nonstopux*) 5424 symcode='[BCDEGRST]' 5425 ;; 5426osf*) 5427 symcode='[BCDEGQRST]' 5428 ;; 5429solaris*) 5430 symcode='[BDRT]' 5431 ;; 5432sco3.2v5*) 5433 symcode='[DT]' 5434 ;; 5435sysv4.2uw2*) 5436 symcode='[DT]' 5437 ;; 5438sysv5* | sco5v6* | unixware* | OpenUNIX*) 5439 symcode='[ABDT]' 5440 ;; 5441sysv4) 5442 symcode='[DFNSTU]' 5443 ;; 5444esac 5445 5446# If we're using GNU nm, then use its standard symbol codes. 5447case `$NM -V 2>&1` in 5448*GNU* | *'with BFD'*) 5449 symcode='[ABCDGIRSTW]' ;; 5450esac 5451 5452# Transform an extracted symbol line into a proper C declaration. 5453# Some systems (esp. on ia64) link data and code symbols differently, 5454# so use this general approach. 5455lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5456 5457# Transform an extracted symbol line into symbol name and symbol address 5458lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5459lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5460 5461# Handle CRLF in mingw tool chain 5462opt_cr= 5463case $build_os in 5464mingw*) 5465 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5466 ;; 5467esac 5468 5469# Try without a prefix underscore, then with it. 5470for ac_symprfx in "" "_"; do 5471 5472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5473 symxfrm="\\1 $ac_symprfx\\2 \\2" 5474 5475 # Write the raw and C identifiers. 5476 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5477 # Fake it for dumpbin and say T for any non-static function 5478 # and D for any global variable. 5479 # Also find C++ and __fastcall symbols from MSVC++, 5480 # which start with @ or ?. 5481 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5482" {last_section=section; section=\$ 3};"\ 5483" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5484" \$ 0!~/External *\|/{next};"\ 5485" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5486" {if(hide[section]) next};"\ 5487" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5488" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5489" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5490" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5491" ' prfx=^$ac_symprfx" 5492 else 5493 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5494 fi 5495 5496 # Check to see that the pipe works correctly. 5497 pipe_works=no 5498 5499 rm -f conftest* 5500 cat > conftest.$ac_ext <<_LT_EOF 5501#ifdef __cplusplus 5502extern "C" { 5503#endif 5504char nm_test_var; 5505void nm_test_func(void); 5506void nm_test_func(void){} 5507#ifdef __cplusplus 5508} 5509#endif 5510int main(){nm_test_var='a';nm_test_func();return(0);} 5511_LT_EOF 5512 5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5514 (eval $ac_compile) 2>&5 5515 ac_status=$? 5516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); }; then 5518 # Now try to grab the symbols. 5519 nlist=conftest.nm 5520 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5521 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5522 ac_status=$? 5523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); } && test -s "$nlist"; then 5525 # Try sorting and uniquifying the output. 5526 if sort "$nlist" | uniq > "$nlist"T; then 5527 mv -f "$nlist"T "$nlist" 5528 else 5529 rm -f "$nlist"T 5530 fi 5531 5532 # Make sure that we snagged all the symbols we need. 5533 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5534 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5535 cat <<_LT_EOF > conftest.$ac_ext 5536#ifdef __cplusplus 5537extern "C" { 5538#endif 5539 5540_LT_EOF 5541 # Now generate the symbol file. 5542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5543 5544 cat <<_LT_EOF >> conftest.$ac_ext 5545 5546/* The mapping between symbol names and symbols. */ 5547const struct { 5548 const char *name; 5549 void *address; 5550} 5551lt__PROGRAM__LTX_preloaded_symbols[] = 5552{ 5553 { "@PROGRAM@", (void *) 0 }, 5554_LT_EOF 5555 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5556 cat <<\_LT_EOF >> conftest.$ac_ext 5557 {0, (void *) 0} 5558}; 5559 5560/* This works around a problem in FreeBSD linker */ 5561#ifdef FREEBSD_WORKAROUND 5562static const void *lt_preloaded_setup() { 5563 return lt__PROGRAM__LTX_preloaded_symbols; 5564} 5565#endif 5566 5567#ifdef __cplusplus 5568} 5569#endif 5570_LT_EOF 5571 # Now try linking the two files. 5572 mv conftest.$ac_objext conftstm.$ac_objext 5573 lt_save_LIBS="$LIBS" 5574 lt_save_CFLAGS="$CFLAGS" 5575 LIBS="conftstm.$ac_objext" 5576 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5578 (eval $ac_link) 2>&5 5579 ac_status=$? 5580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5581 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5582 pipe_works=yes 5583 fi 5584 LIBS="$lt_save_LIBS" 5585 CFLAGS="$lt_save_CFLAGS" 5586 else 5587 echo "cannot find nm_test_func in $nlist" >&5 5588 fi 5589 else 5590 echo "cannot find nm_test_var in $nlist" >&5 5591 fi 5592 else 5593 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5594 fi 5595 else 5596 echo "$progname: failed program was:" >&5 5597 cat conftest.$ac_ext >&5 5598 fi 5599 rm -rf conftest* conftst* 5600 5601 # Do not use the global_symbol_pipe unless it works. 5602 if test "$pipe_works" = yes; then 5603 break 5604 else 5605 lt_cv_sys_global_symbol_pipe= 5606 fi 5607done 5608 5609fi 5610 5611if test -z "$lt_cv_sys_global_symbol_pipe"; then 5612 lt_cv_sys_global_symbol_to_cdecl= 5613fi 5614if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5615 { $as_echo "$as_me:$LINENO: result: failed" >&5 5616$as_echo "failed" >&6; } 5617else 5618 { $as_echo "$as_me:$LINENO: result: ok" >&5 5619$as_echo "ok" >&6; } 5620fi 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644# Check whether --enable-libtool-lock was given. 5645if test "${enable_libtool_lock+set}" = set; then 5646 enableval=$enable_libtool_lock; 5647fi 5648 5649test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5650 5651# Some flags need to be propagated to the compiler or linker for good 5652# libtool support. 5653case $host in 5654ia64-*-hpux*) 5655 # Find out which ABI we are using. 5656 echo 'int i;' > conftest.$ac_ext 5657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5658 (eval $ac_compile) 2>&5 5659 ac_status=$? 5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 (exit $ac_status); }; then 5662 case `/usr/bin/file conftest.$ac_objext` in 5663 *ELF-32*) 5664 HPUX_IA64_MODE="32" 5665 ;; 5666 *ELF-64*) 5667 HPUX_IA64_MODE="64" 5668 ;; 5669 esac 5670 fi 5671 rm -rf conftest* 5672 ;; 5673*-*-irix6*) 5674 # Find out which ABI we are using. 5675 echo '#line 5675 "configure"' > conftest.$ac_ext 5676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5677 (eval $ac_compile) 2>&5 5678 ac_status=$? 5679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5680 (exit $ac_status); }; then 5681 if test "$lt_cv_prog_gnu_ld" = yes; then 5682 case `/usr/bin/file conftest.$ac_objext` in 5683 *32-bit*) 5684 LD="${LD-ld} -melf32bsmip" 5685 ;; 5686 *N32*) 5687 LD="${LD-ld} -melf32bmipn32" 5688 ;; 5689 *64-bit*) 5690 LD="${LD-ld} -melf64bmip" 5691 ;; 5692 esac 5693 else 5694 case `/usr/bin/file conftest.$ac_objext` in 5695 *32-bit*) 5696 LD="${LD-ld} -32" 5697 ;; 5698 *N32*) 5699 LD="${LD-ld} -n32" 5700 ;; 5701 *64-bit*) 5702 LD="${LD-ld} -64" 5703 ;; 5704 esac 5705 fi 5706 fi 5707 rm -rf conftest* 5708 ;; 5709 5710x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5711s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5712 # Find out which ABI we are using. 5713 echo 'int i;' > conftest.$ac_ext 5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5715 (eval $ac_compile) 2>&5 5716 ac_status=$? 5717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); }; then 5719 case `/usr/bin/file conftest.o` in 5720 *32-bit*) 5721 case $host in 5722 x86_64-*kfreebsd*-gnu) 5723 LD="${LD-ld} -m elf_i386_fbsd" 5724 ;; 5725 x86_64-*linux*) 5726 LD="${LD-ld} -m elf_i386" 5727 ;; 5728 ppc64-*linux*|powerpc64-*linux*) 5729 LD="${LD-ld} -m elf32ppclinux" 5730 ;; 5731 s390x-*linux*) 5732 LD="${LD-ld} -m elf_s390" 5733 ;; 5734 sparc64-*linux*) 5735 LD="${LD-ld} -m elf32_sparc" 5736 ;; 5737 esac 5738 ;; 5739 *64-bit*) 5740 case $host in 5741 x86_64-*kfreebsd*-gnu) 5742 LD="${LD-ld} -m elf_x86_64_fbsd" 5743 ;; 5744 x86_64-*linux*) 5745 LD="${LD-ld} -m elf_x86_64" 5746 ;; 5747 ppc*-*linux*|powerpc*-*linux*) 5748 LD="${LD-ld} -m elf64ppc" 5749 ;; 5750 s390*-*linux*|s390*-*tpf*) 5751 LD="${LD-ld} -m elf64_s390" 5752 ;; 5753 sparc*-*linux*) 5754 LD="${LD-ld} -m elf64_sparc" 5755 ;; 5756 esac 5757 ;; 5758 esac 5759 fi 5760 rm -rf conftest* 5761 ;; 5762 5763*-*-sco3.2v5*) 5764 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5765 SAVE_CFLAGS="$CFLAGS" 5766 CFLAGS="$CFLAGS -belf" 5767 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5768$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5769if test "${lt_cv_cc_needs_belf+set}" = set; then 5770 $as_echo_n "(cached) " >&6 5771else 5772 ac_ext=c 5773ac_cpp='$CPP $CPPFLAGS' 5774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5776ac_compiler_gnu=$ac_cv_c_compiler_gnu 5777 5778 cat >conftest.$ac_ext <<_ACEOF 5779/* confdefs.h. */ 5780_ACEOF 5781cat confdefs.h >>conftest.$ac_ext 5782cat >>conftest.$ac_ext <<_ACEOF 5783/* end confdefs.h. */ 5784 5785int 5786main () 5787{ 5788 5789 ; 5790 return 0; 5791} 5792_ACEOF 5793rm -f conftest.$ac_objext conftest$ac_exeext 5794if { (ac_try="$ac_link" 5795case "(($ac_try" in 5796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5797 *) ac_try_echo=$ac_try;; 5798esac 5799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5800$as_echo "$ac_try_echo") >&5 5801 (eval "$ac_link") 2>conftest.er1 5802 ac_status=$? 5803 grep -v '^ *+' conftest.er1 >conftest.err 5804 rm -f conftest.er1 5805 cat conftest.err >&5 5806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5807 (exit $ac_status); } && { 5808 test -z "$ac_c_werror_flag" || 5809 test ! -s conftest.err 5810 } && test -s conftest$ac_exeext && { 5811 test "$cross_compiling" = yes || 5812 $as_test_x conftest$ac_exeext 5813 }; then 5814 lt_cv_cc_needs_belf=yes 5815else 5816 $as_echo "$as_me: failed program was:" >&5 5817sed 's/^/| /' conftest.$ac_ext >&5 5818 5819 lt_cv_cc_needs_belf=no 5820fi 5821 5822rm -rf conftest.dSYM 5823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5824 conftest$ac_exeext conftest.$ac_ext 5825 ac_ext=c 5826ac_cpp='$CPP $CPPFLAGS' 5827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5829ac_compiler_gnu=$ac_cv_c_compiler_gnu 5830 5831fi 5832{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5833$as_echo "$lt_cv_cc_needs_belf" >&6; } 5834 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5836 CFLAGS="$SAVE_CFLAGS" 5837 fi 5838 ;; 5839sparc*-*solaris*) 5840 # Find out which ABI we are using. 5841 echo 'int i;' > conftest.$ac_ext 5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5843 (eval $ac_compile) 2>&5 5844 ac_status=$? 5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); }; then 5847 case `/usr/bin/file conftest.o` in 5848 *64-bit*) 5849 case $lt_cv_prog_gnu_ld in 5850 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5851 *) 5852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5853 LD="${LD-ld} -64" 5854 fi 5855 ;; 5856 esac 5857 ;; 5858 esac 5859 fi 5860 rm -rf conftest* 5861 ;; 5862esac 5863 5864need_locks="$enable_libtool_lock" 5865 5866 5867 case $host_os in 5868 rhapsody* | darwin*) 5869 if test -n "$ac_tool_prefix"; then 5870 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5871set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5872{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5873$as_echo_n "checking for $ac_word... " >&6; } 5874if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5875 $as_echo_n "(cached) " >&6 5876else 5877 if test -n "$DSYMUTIL"; then 5878 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5879else 5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5887 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5888 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892done 5893IFS=$as_save_IFS 5894 5895fi 5896fi 5897DSYMUTIL=$ac_cv_prog_DSYMUTIL 5898if test -n "$DSYMUTIL"; then 5899 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5900$as_echo "$DSYMUTIL" >&6; } 5901else 5902 { $as_echo "$as_me:$LINENO: result: no" >&5 5903$as_echo "no" >&6; } 5904fi 5905 5906 5907fi 5908if test -z "$ac_cv_prog_DSYMUTIL"; then 5909 ac_ct_DSYMUTIL=$DSYMUTIL 5910 # Extract the first word of "dsymutil", so it can be a program name with args. 5911set dummy dsymutil; ac_word=$2 5912{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5913$as_echo_n "checking for $ac_word... " >&6; } 5914if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5915 $as_echo_n "(cached) " >&6 5916else 5917 if test -n "$ac_ct_DSYMUTIL"; then 5918 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5927 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932done 5933IFS=$as_save_IFS 5934 5935fi 5936fi 5937ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5938if test -n "$ac_ct_DSYMUTIL"; then 5939 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5940$as_echo "$ac_ct_DSYMUTIL" >&6; } 5941else 5942 { $as_echo "$as_me:$LINENO: result: no" >&5 5943$as_echo "no" >&6; } 5944fi 5945 5946 if test "x$ac_ct_DSYMUTIL" = x; then 5947 DSYMUTIL=":" 5948 else 5949 case $cross_compiling:$ac_tool_warned in 5950yes:) 5951{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5953ac_tool_warned=yes ;; 5954esac 5955 DSYMUTIL=$ac_ct_DSYMUTIL 5956 fi 5957else 5958 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5959fi 5960 5961 if test -n "$ac_tool_prefix"; then 5962 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5963set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5964{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5965$as_echo_n "checking for $ac_word... " >&6; } 5966if test "${ac_cv_prog_NMEDIT+set}" = set; then 5967 $as_echo_n "(cached) " >&6 5968else 5969 if test -n "$NMEDIT"; then 5970 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5971else 5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973for as_dir in $PATH 5974do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5979 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984done 5985IFS=$as_save_IFS 5986 5987fi 5988fi 5989NMEDIT=$ac_cv_prog_NMEDIT 5990if test -n "$NMEDIT"; then 5991 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5992$as_echo "$NMEDIT" >&6; } 5993else 5994 { $as_echo "$as_me:$LINENO: result: no" >&5 5995$as_echo "no" >&6; } 5996fi 5997 5998 5999fi 6000if test -z "$ac_cv_prog_NMEDIT"; then 6001 ac_ct_NMEDIT=$NMEDIT 6002 # Extract the first word of "nmedit", so it can be a program name with args. 6003set dummy nmedit; ac_word=$2 6004{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6005$as_echo_n "checking for $ac_word... " >&6; } 6006if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6007 $as_echo_n "(cached) " >&6 6008else 6009 if test -n "$ac_ct_NMEDIT"; then 6010 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6011else 6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013for as_dir in $PATH 6014do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_exec_ext in '' $ac_executable_extensions; do 6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6019 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6021 break 2 6022 fi 6023done 6024done 6025IFS=$as_save_IFS 6026 6027fi 6028fi 6029ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6030if test -n "$ac_ct_NMEDIT"; then 6031 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6032$as_echo "$ac_ct_NMEDIT" >&6; } 6033else 6034 { $as_echo "$as_me:$LINENO: result: no" >&5 6035$as_echo "no" >&6; } 6036fi 6037 6038 if test "x$ac_ct_NMEDIT" = x; then 6039 NMEDIT=":" 6040 else 6041 case $cross_compiling:$ac_tool_warned in 6042yes:) 6043{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6045ac_tool_warned=yes ;; 6046esac 6047 NMEDIT=$ac_ct_NMEDIT 6048 fi 6049else 6050 NMEDIT="$ac_cv_prog_NMEDIT" 6051fi 6052 6053 if test -n "$ac_tool_prefix"; then 6054 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6055set dummy ${ac_tool_prefix}lipo; ac_word=$2 6056{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if test "${ac_cv_prog_LIPO+set}" = set; then 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$LIPO"; then 6062 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6071 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081LIPO=$ac_cv_prog_LIPO 6082if test -n "$LIPO"; then 6083 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6084$as_echo "$LIPO" >&6; } 6085else 6086 { $as_echo "$as_me:$LINENO: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091fi 6092if test -z "$ac_cv_prog_LIPO"; then 6093 ac_ct_LIPO=$LIPO 6094 # Extract the first word of "lipo", so it can be a program name with args. 6095set dummy lipo; ac_word=$2 6096{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6097$as_echo_n "checking for $ac_word... " >&6; } 6098if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6099 $as_echo_n "(cached) " >&6 6100else 6101 if test -n "$ac_ct_LIPO"; then 6102 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6103else 6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH 6106do 6107 IFS=$as_save_IFS 6108 test -z "$as_dir" && as_dir=. 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6111 ac_cv_prog_ac_ct_LIPO="lipo" 6112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6113 break 2 6114 fi 6115done 6116done 6117IFS=$as_save_IFS 6118 6119fi 6120fi 6121ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6122if test -n "$ac_ct_LIPO"; then 6123 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6124$as_echo "$ac_ct_LIPO" >&6; } 6125else 6126 { $as_echo "$as_me:$LINENO: result: no" >&5 6127$as_echo "no" >&6; } 6128fi 6129 6130 if test "x$ac_ct_LIPO" = x; then 6131 LIPO=":" 6132 else 6133 case $cross_compiling:$ac_tool_warned in 6134yes:) 6135{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6137ac_tool_warned=yes ;; 6138esac 6139 LIPO=$ac_ct_LIPO 6140 fi 6141else 6142 LIPO="$ac_cv_prog_LIPO" 6143fi 6144 6145 if test -n "$ac_tool_prefix"; then 6146 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6147set dummy ${ac_tool_prefix}otool; ac_word=$2 6148{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6149$as_echo_n "checking for $ac_word... " >&6; } 6150if test "${ac_cv_prog_OTOOL+set}" = set; then 6151 $as_echo_n "(cached) " >&6 6152else 6153 if test -n "$OTOOL"; then 6154 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6155else 6156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6157for as_dir in $PATH 6158do 6159 IFS=$as_save_IFS 6160 test -z "$as_dir" && as_dir=. 6161 for ac_exec_ext in '' $ac_executable_extensions; do 6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6163 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6165 break 2 6166 fi 6167done 6168done 6169IFS=$as_save_IFS 6170 6171fi 6172fi 6173OTOOL=$ac_cv_prog_OTOOL 6174if test -n "$OTOOL"; then 6175 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6176$as_echo "$OTOOL" >&6; } 6177else 6178 { $as_echo "$as_me:$LINENO: result: no" >&5 6179$as_echo "no" >&6; } 6180fi 6181 6182 6183fi 6184if test -z "$ac_cv_prog_OTOOL"; then 6185 ac_ct_OTOOL=$OTOOL 6186 # Extract the first word of "otool", so it can be a program name with args. 6187set dummy otool; ac_word=$2 6188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6189$as_echo_n "checking for $ac_word... " >&6; } 6190if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6191 $as_echo_n "(cached) " >&6 6192else 6193 if test -n "$ac_ct_OTOOL"; then 6194 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6195else 6196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197for as_dir in $PATH 6198do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6203 ac_cv_prog_ac_ct_OTOOL="otool" 6204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207done 6208done 6209IFS=$as_save_IFS 6210 6211fi 6212fi 6213ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6214if test -n "$ac_ct_OTOOL"; then 6215 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6216$as_echo "$ac_ct_OTOOL" >&6; } 6217else 6218 { $as_echo "$as_me:$LINENO: result: no" >&5 6219$as_echo "no" >&6; } 6220fi 6221 6222 if test "x$ac_ct_OTOOL" = x; then 6223 OTOOL=":" 6224 else 6225 case $cross_compiling:$ac_tool_warned in 6226yes:) 6227{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6229ac_tool_warned=yes ;; 6230esac 6231 OTOOL=$ac_ct_OTOOL 6232 fi 6233else 6234 OTOOL="$ac_cv_prog_OTOOL" 6235fi 6236 6237 if test -n "$ac_tool_prefix"; then 6238 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6239set dummy ${ac_tool_prefix}otool64; ac_word=$2 6240{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6241$as_echo_n "checking for $ac_word... " >&6; } 6242if test "${ac_cv_prog_OTOOL64+set}" = set; then 6243 $as_echo_n "(cached) " >&6 6244else 6245 if test -n "$OTOOL64"; then 6246 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6247else 6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249for as_dir in $PATH 6250do 6251 IFS=$as_save_IFS 6252 test -z "$as_dir" && as_dir=. 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6255 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6257 break 2 6258 fi 6259done 6260done 6261IFS=$as_save_IFS 6262 6263fi 6264fi 6265OTOOL64=$ac_cv_prog_OTOOL64 6266if test -n "$OTOOL64"; then 6267 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6268$as_echo "$OTOOL64" >&6; } 6269else 6270 { $as_echo "$as_me:$LINENO: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 6275fi 6276if test -z "$ac_cv_prog_OTOOL64"; then 6277 ac_ct_OTOOL64=$OTOOL64 6278 # Extract the first word of "otool64", so it can be a program name with args. 6279set dummy otool64; ac_word=$2 6280{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6281$as_echo_n "checking for $ac_word... " >&6; } 6282if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6283 $as_echo_n "(cached) " >&6 6284else 6285 if test -n "$ac_ct_OTOOL64"; then 6286 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6287else 6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289for as_dir in $PATH 6290do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6295 ac_cv_prog_ac_ct_OTOOL64="otool64" 6296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299done 6300done 6301IFS=$as_save_IFS 6302 6303fi 6304fi 6305ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6306if test -n "$ac_ct_OTOOL64"; then 6307 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6308$as_echo "$ac_ct_OTOOL64" >&6; } 6309else 6310 { $as_echo "$as_me:$LINENO: result: no" >&5 6311$as_echo "no" >&6; } 6312fi 6313 6314 if test "x$ac_ct_OTOOL64" = x; then 6315 OTOOL64=":" 6316 else 6317 case $cross_compiling:$ac_tool_warned in 6318yes:) 6319{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6321ac_tool_warned=yes ;; 6322esac 6323 OTOOL64=$ac_ct_OTOOL64 6324 fi 6325else 6326 OTOOL64="$ac_cv_prog_OTOOL64" 6327fi 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6356$as_echo_n "checking for -single_module linker flag... " >&6; } 6357if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6358 $as_echo_n "(cached) " >&6 6359else 6360 lt_cv_apple_cc_single_mod=no 6361 if test -z "${LT_MULTI_MODULE}"; then 6362 # By default we will add the -single_module flag. You can override 6363 # by either setting the environment variable LT_MULTI_MODULE 6364 # non-empty at configure time, or by adding -multi_module to the 6365 # link flags. 6366 rm -rf libconftest.dylib* 6367 echo "int foo(void){return 1;}" > conftest.c 6368 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6369-dynamiclib -Wl,-single_module conftest.c" >&5 6370 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6371 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6372 _lt_result=$? 6373 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6374 lt_cv_apple_cc_single_mod=yes 6375 else 6376 cat conftest.err >&5 6377 fi 6378 rm -rf libconftest.dylib* 6379 rm -f conftest.* 6380 fi 6381fi 6382{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6383$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6384 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6385$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6386if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6387 $as_echo_n "(cached) " >&6 6388else 6389 lt_cv_ld_exported_symbols_list=no 6390 save_LDFLAGS=$LDFLAGS 6391 echo "_main" > conftest.sym 6392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6393 cat >conftest.$ac_ext <<_ACEOF 6394/* confdefs.h. */ 6395_ACEOF 6396cat confdefs.h >>conftest.$ac_ext 6397cat >>conftest.$ac_ext <<_ACEOF 6398/* end confdefs.h. */ 6399 6400int 6401main () 6402{ 6403 6404 ; 6405 return 0; 6406} 6407_ACEOF 6408rm -f conftest.$ac_objext conftest$ac_exeext 6409if { (ac_try="$ac_link" 6410case "(($ac_try" in 6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6412 *) ac_try_echo=$ac_try;; 6413esac 6414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6415$as_echo "$ac_try_echo") >&5 6416 (eval "$ac_link") 2>conftest.er1 6417 ac_status=$? 6418 grep -v '^ *+' conftest.er1 >conftest.err 6419 rm -f conftest.er1 6420 cat conftest.err >&5 6421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6422 (exit $ac_status); } && { 6423 test -z "$ac_c_werror_flag" || 6424 test ! -s conftest.err 6425 } && test -s conftest$ac_exeext && { 6426 test "$cross_compiling" = yes || 6427 $as_test_x conftest$ac_exeext 6428 }; then 6429 lt_cv_ld_exported_symbols_list=yes 6430else 6431 $as_echo "$as_me: failed program was:" >&5 6432sed 's/^/| /' conftest.$ac_ext >&5 6433 6434 lt_cv_ld_exported_symbols_list=no 6435fi 6436 6437rm -rf conftest.dSYM 6438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6439 conftest$ac_exeext conftest.$ac_ext 6440 LDFLAGS="$save_LDFLAGS" 6441 6442fi 6443{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6444$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6445 case $host_os in 6446 rhapsody* | darwin1.[012]) 6447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6448 darwin1.*) 6449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6450 darwin*) # darwin 5.x on 6451 # if running on 10.5 or later, the deployment target defaults 6452 # to the OS version, if on x86, and 10.4, the deployment 6453 # target defaults to 10.4. Don't you love it? 6454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6455 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6457 10.[012]*) 6458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6459 10.*) 6460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6461 esac 6462 ;; 6463 esac 6464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6465 _lt_dar_single_mod='$single_module' 6466 fi 6467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6469 else 6470 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6471 fi 6472 if test "$DSYMUTIL" != ":"; then 6473 _lt_dsymutil='~$DSYMUTIL $lib || :' 6474 else 6475 _lt_dsymutil= 6476 fi 6477 ;; 6478 esac 6479 6480ac_ext=c 6481ac_cpp='$CPP $CPPFLAGS' 6482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6484ac_compiler_gnu=$ac_cv_c_compiler_gnu 6485{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6486$as_echo_n "checking how to run the C preprocessor... " >&6; } 6487# On Suns, sometimes $CPP names a directory. 6488if test -n "$CPP" && test -d "$CPP"; then 6489 CPP= 6490fi 6491if test -z "$CPP"; then 6492 if test "${ac_cv_prog_CPP+set}" = set; then 6493 $as_echo_n "(cached) " >&6 6494else 6495 # Double quotes because CPP needs to be expanded 6496 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6497 do 6498 ac_preproc_ok=false 6499for ac_c_preproc_warn_flag in '' yes 6500do 6501 # Use a header file that comes with gcc, so configuring glibc 6502 # with a fresh cross-compiler works. 6503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6504 # <limits.h> exists even on freestanding compilers. 6505 # On the NeXT, cc -E runs the code through the compiler's parser, 6506 # not just through cpp. "Syntax error" is here to catch this case. 6507 cat >conftest.$ac_ext <<_ACEOF 6508/* confdefs.h. */ 6509_ACEOF 6510cat confdefs.h >>conftest.$ac_ext 6511cat >>conftest.$ac_ext <<_ACEOF 6512/* end confdefs.h. */ 6513#ifdef __STDC__ 6514# include <limits.h> 6515#else 6516# include <assert.h> 6517#endif 6518 Syntax error 6519_ACEOF 6520if { (ac_try="$ac_cpp conftest.$ac_ext" 6521case "(($ac_try" in 6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6523 *) ac_try_echo=$ac_try;; 6524esac 6525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6526$as_echo "$ac_try_echo") >&5 6527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6528 ac_status=$? 6529 grep -v '^ *+' conftest.er1 >conftest.err 6530 rm -f conftest.er1 6531 cat conftest.err >&5 6532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6533 (exit $ac_status); } >/dev/null && { 6534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6535 test ! -s conftest.err 6536 }; then 6537 : 6538else 6539 $as_echo "$as_me: failed program was:" >&5 6540sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 # Broken: fails on valid input. 6543continue 6544fi 6545 6546rm -f conftest.err conftest.$ac_ext 6547 6548 # OK, works on sane cases. Now check whether nonexistent headers 6549 # can be detected and how. 6550 cat >conftest.$ac_ext <<_ACEOF 6551/* confdefs.h. */ 6552_ACEOF 6553cat confdefs.h >>conftest.$ac_ext 6554cat >>conftest.$ac_ext <<_ACEOF 6555/* end confdefs.h. */ 6556#include <ac_nonexistent.h> 6557_ACEOF 6558if { (ac_try="$ac_cpp conftest.$ac_ext" 6559case "(($ac_try" in 6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6561 *) ac_try_echo=$ac_try;; 6562esac 6563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6564$as_echo "$ac_try_echo") >&5 6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6566 ac_status=$? 6567 grep -v '^ *+' conftest.er1 >conftest.err 6568 rm -f conftest.er1 6569 cat conftest.err >&5 6570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6571 (exit $ac_status); } >/dev/null && { 6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6573 test ! -s conftest.err 6574 }; then 6575 # Broken: success on invalid input. 6576continue 6577else 6578 $as_echo "$as_me: failed program was:" >&5 6579sed 's/^/| /' conftest.$ac_ext >&5 6580 6581 # Passes both tests. 6582ac_preproc_ok=: 6583break 6584fi 6585 6586rm -f conftest.err conftest.$ac_ext 6587 6588done 6589# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6590rm -f conftest.err conftest.$ac_ext 6591if $ac_preproc_ok; then 6592 break 6593fi 6594 6595 done 6596 ac_cv_prog_CPP=$CPP 6597 6598fi 6599 CPP=$ac_cv_prog_CPP 6600else 6601 ac_cv_prog_CPP=$CPP 6602fi 6603{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6604$as_echo "$CPP" >&6; } 6605ac_preproc_ok=false 6606for ac_c_preproc_warn_flag in '' yes 6607do 6608 # Use a header file that comes with gcc, so configuring glibc 6609 # with a fresh cross-compiler works. 6610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6611 # <limits.h> exists even on freestanding compilers. 6612 # On the NeXT, cc -E runs the code through the compiler's parser, 6613 # not just through cpp. "Syntax error" is here to catch this case. 6614 cat >conftest.$ac_ext <<_ACEOF 6615/* confdefs.h. */ 6616_ACEOF 6617cat confdefs.h >>conftest.$ac_ext 6618cat >>conftest.$ac_ext <<_ACEOF 6619/* end confdefs.h. */ 6620#ifdef __STDC__ 6621# include <limits.h> 6622#else 6623# include <assert.h> 6624#endif 6625 Syntax error 6626_ACEOF 6627if { (ac_try="$ac_cpp conftest.$ac_ext" 6628case "(($ac_try" in 6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6630 *) ac_try_echo=$ac_try;; 6631esac 6632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6633$as_echo "$ac_try_echo") >&5 6634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6635 ac_status=$? 6636 grep -v '^ *+' conftest.er1 >conftest.err 6637 rm -f conftest.er1 6638 cat conftest.err >&5 6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6640 (exit $ac_status); } >/dev/null && { 6641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6642 test ! -s conftest.err 6643 }; then 6644 : 6645else 6646 $as_echo "$as_me: failed program was:" >&5 6647sed 's/^/| /' conftest.$ac_ext >&5 6648 6649 # Broken: fails on valid input. 6650continue 6651fi 6652 6653rm -f conftest.err conftest.$ac_ext 6654 6655 # OK, works on sane cases. Now check whether nonexistent headers 6656 # can be detected and how. 6657 cat >conftest.$ac_ext <<_ACEOF 6658/* confdefs.h. */ 6659_ACEOF 6660cat confdefs.h >>conftest.$ac_ext 6661cat >>conftest.$ac_ext <<_ACEOF 6662/* end confdefs.h. */ 6663#include <ac_nonexistent.h> 6664_ACEOF 6665if { (ac_try="$ac_cpp conftest.$ac_ext" 6666case "(($ac_try" in 6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6668 *) ac_try_echo=$ac_try;; 6669esac 6670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6671$as_echo "$ac_try_echo") >&5 6672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6673 ac_status=$? 6674 grep -v '^ *+' conftest.er1 >conftest.err 6675 rm -f conftest.er1 6676 cat conftest.err >&5 6677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6678 (exit $ac_status); } >/dev/null && { 6679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6680 test ! -s conftest.err 6681 }; then 6682 # Broken: success on invalid input. 6683continue 6684else 6685 $as_echo "$as_me: failed program was:" >&5 6686sed 's/^/| /' conftest.$ac_ext >&5 6687 6688 # Passes both tests. 6689ac_preproc_ok=: 6690break 6691fi 6692 6693rm -f conftest.err conftest.$ac_ext 6694 6695done 6696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6697rm -f conftest.err conftest.$ac_ext 6698if $ac_preproc_ok; then 6699 : 6700else 6701 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6703{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6704See \`config.log' for more details." >&5 6705$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6706See \`config.log' for more details." >&2;} 6707 { (exit 1); exit 1; }; }; } 6708fi 6709 6710ac_ext=c 6711ac_cpp='$CPP $CPPFLAGS' 6712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6714ac_compiler_gnu=$ac_cv_c_compiler_gnu 6715 6716 6717{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6718$as_echo_n "checking for ANSI C header files... " >&6; } 6719if test "${ac_cv_header_stdc+set}" = set; then 6720 $as_echo_n "(cached) " >&6 6721else 6722 cat >conftest.$ac_ext <<_ACEOF 6723/* confdefs.h. */ 6724_ACEOF 6725cat confdefs.h >>conftest.$ac_ext 6726cat >>conftest.$ac_ext <<_ACEOF 6727/* end confdefs.h. */ 6728#include <stdlib.h> 6729#include <stdarg.h> 6730#include <string.h> 6731#include <float.h> 6732 6733int 6734main () 6735{ 6736 6737 ; 6738 return 0; 6739} 6740_ACEOF 6741rm -f conftest.$ac_objext 6742if { (ac_try="$ac_compile" 6743case "(($ac_try" in 6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6745 *) ac_try_echo=$ac_try;; 6746esac 6747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6748$as_echo "$ac_try_echo") >&5 6749 (eval "$ac_compile") 2>conftest.er1 6750 ac_status=$? 6751 grep -v '^ *+' conftest.er1 >conftest.err 6752 rm -f conftest.er1 6753 cat conftest.err >&5 6754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); } && { 6756 test -z "$ac_c_werror_flag" || 6757 test ! -s conftest.err 6758 } && test -s conftest.$ac_objext; then 6759 ac_cv_header_stdc=yes 6760else 6761 $as_echo "$as_me: failed program was:" >&5 6762sed 's/^/| /' conftest.$ac_ext >&5 6763 6764 ac_cv_header_stdc=no 6765fi 6766 6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6768 6769if test $ac_cv_header_stdc = yes; then 6770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6771 cat >conftest.$ac_ext <<_ACEOF 6772/* confdefs.h. */ 6773_ACEOF 6774cat confdefs.h >>conftest.$ac_ext 6775cat >>conftest.$ac_ext <<_ACEOF 6776/* end confdefs.h. */ 6777#include <string.h> 6778 6779_ACEOF 6780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6781 $EGREP "memchr" >/dev/null 2>&1; then 6782 : 6783else 6784 ac_cv_header_stdc=no 6785fi 6786rm -f conftest* 6787 6788fi 6789 6790if test $ac_cv_header_stdc = yes; then 6791 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6792 cat >conftest.$ac_ext <<_ACEOF 6793/* confdefs.h. */ 6794_ACEOF 6795cat confdefs.h >>conftest.$ac_ext 6796cat >>conftest.$ac_ext <<_ACEOF 6797/* end confdefs.h. */ 6798#include <stdlib.h> 6799 6800_ACEOF 6801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6802 $EGREP "free" >/dev/null 2>&1; then 6803 : 6804else 6805 ac_cv_header_stdc=no 6806fi 6807rm -f conftest* 6808 6809fi 6810 6811if test $ac_cv_header_stdc = yes; then 6812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6813 if test "$cross_compiling" = yes; then 6814 : 6815else 6816 cat >conftest.$ac_ext <<_ACEOF 6817/* confdefs.h. */ 6818_ACEOF 6819cat confdefs.h >>conftest.$ac_ext 6820cat >>conftest.$ac_ext <<_ACEOF 6821/* end confdefs.h. */ 6822#include <ctype.h> 6823#include <stdlib.h> 6824#if ((' ' & 0x0FF) == 0x020) 6825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6827#else 6828# define ISLOWER(c) \ 6829 (('a' <= (c) && (c) <= 'i') \ 6830 || ('j' <= (c) && (c) <= 'r') \ 6831 || ('s' <= (c) && (c) <= 'z')) 6832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6833#endif 6834 6835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6836int 6837main () 6838{ 6839 int i; 6840 for (i = 0; i < 256; i++) 6841 if (XOR (islower (i), ISLOWER (i)) 6842 || toupper (i) != TOUPPER (i)) 6843 return 2; 6844 return 0; 6845} 6846_ACEOF 6847rm -f conftest$ac_exeext 6848if { (ac_try="$ac_link" 6849case "(($ac_try" in 6850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6851 *) ac_try_echo=$ac_try;; 6852esac 6853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6854$as_echo "$ac_try_echo") >&5 6855 (eval "$ac_link") 2>&5 6856 ac_status=$? 6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6859 { (case "(($ac_try" in 6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6861 *) ac_try_echo=$ac_try;; 6862esac 6863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6864$as_echo "$ac_try_echo") >&5 6865 (eval "$ac_try") 2>&5 6866 ac_status=$? 6867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6868 (exit $ac_status); }; }; then 6869 : 6870else 6871 $as_echo "$as_me: program exited with status $ac_status" >&5 6872$as_echo "$as_me: failed program was:" >&5 6873sed 's/^/| /' conftest.$ac_ext >&5 6874 6875( exit $ac_status ) 6876ac_cv_header_stdc=no 6877fi 6878rm -rf conftest.dSYM 6879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6880fi 6881 6882 6883fi 6884fi 6885{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6886$as_echo "$ac_cv_header_stdc" >&6; } 6887if test $ac_cv_header_stdc = yes; then 6888 6889cat >>confdefs.h <<\_ACEOF 6890#define STDC_HEADERS 1 6891_ACEOF 6892 6893fi 6894 6895# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6906 inttypes.h stdint.h unistd.h 6907do 6908as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6909{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6910$as_echo_n "checking for $ac_header... " >&6; } 6911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6912 $as_echo_n "(cached) " >&6 6913else 6914 cat >conftest.$ac_ext <<_ACEOF 6915/* confdefs.h. */ 6916_ACEOF 6917cat confdefs.h >>conftest.$ac_ext 6918cat >>conftest.$ac_ext <<_ACEOF 6919/* end confdefs.h. */ 6920$ac_includes_default 6921 6922#include <$ac_header> 6923_ACEOF 6924rm -f conftest.$ac_objext 6925if { (ac_try="$ac_compile" 6926case "(($ac_try" in 6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6928 *) ac_try_echo=$ac_try;; 6929esac 6930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6931$as_echo "$ac_try_echo") >&5 6932 (eval "$ac_compile") 2>conftest.er1 6933 ac_status=$? 6934 grep -v '^ *+' conftest.er1 >conftest.err 6935 rm -f conftest.er1 6936 cat conftest.err >&5 6937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6938 (exit $ac_status); } && { 6939 test -z "$ac_c_werror_flag" || 6940 test ! -s conftest.err 6941 } && test -s conftest.$ac_objext; then 6942 eval "$as_ac_Header=yes" 6943else 6944 $as_echo "$as_me: failed program was:" >&5 6945sed 's/^/| /' conftest.$ac_ext >&5 6946 6947 eval "$as_ac_Header=no" 6948fi 6949 6950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6951fi 6952ac_res=`eval 'as_val=${'$as_ac_Header'} 6953 $as_echo "$as_val"'` 6954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6955$as_echo "$ac_res" >&6; } 6956as_val=`eval 'as_val=${'$as_ac_Header'} 6957 $as_echo "$as_val"'` 6958 if test "x$as_val" = x""yes; then 6959 cat >>confdefs.h <<_ACEOF 6960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6961_ACEOF 6962 6963fi 6964 6965done 6966 6967 6968 6969for ac_header in dlfcn.h 6970do 6971as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6972{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6973$as_echo_n "checking for $ac_header... " >&6; } 6974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6975 $as_echo_n "(cached) " >&6 6976else 6977 cat >conftest.$ac_ext <<_ACEOF 6978/* confdefs.h. */ 6979_ACEOF 6980cat confdefs.h >>conftest.$ac_ext 6981cat >>conftest.$ac_ext <<_ACEOF 6982/* end confdefs.h. */ 6983$ac_includes_default 6984 6985#include <$ac_header> 6986_ACEOF 6987rm -f conftest.$ac_objext 6988if { (ac_try="$ac_compile" 6989case "(($ac_try" in 6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6991 *) ac_try_echo=$ac_try;; 6992esac 6993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6994$as_echo "$ac_try_echo") >&5 6995 (eval "$ac_compile") 2>conftest.er1 6996 ac_status=$? 6997 grep -v '^ *+' conftest.er1 >conftest.err 6998 rm -f conftest.er1 6999 cat conftest.err >&5 7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7001 (exit $ac_status); } && { 7002 test -z "$ac_c_werror_flag" || 7003 test ! -s conftest.err 7004 } && test -s conftest.$ac_objext; then 7005 eval "$as_ac_Header=yes" 7006else 7007 $as_echo "$as_me: failed program was:" >&5 7008sed 's/^/| /' conftest.$ac_ext >&5 7009 7010 eval "$as_ac_Header=no" 7011fi 7012 7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7014fi 7015ac_res=`eval 'as_val=${'$as_ac_Header'} 7016 $as_echo "$as_val"'` 7017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7018$as_echo "$ac_res" >&6; } 7019as_val=`eval 'as_val=${'$as_ac_Header'} 7020 $as_echo "$as_val"'` 7021 if test "x$as_val" = x""yes; then 7022 cat >>confdefs.h <<_ACEOF 7023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7024_ACEOF 7025 7026fi 7027 7028done 7029 7030 7031 7032# Set options 7033 7034 7035 7036 enable_dlopen=no 7037 7038 7039 enable_win32_dll=no 7040 7041 7042 # Check whether --enable-shared was given. 7043if test "${enable_shared+set}" = set; then 7044 enableval=$enable_shared; p=${PACKAGE-default} 7045 case $enableval in 7046 yes) enable_shared=yes ;; 7047 no) enable_shared=no ;; 7048 *) 7049 enable_shared=no 7050 # Look at the argument we got. We use all the common list separators. 7051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7052 for pkg in $enableval; do 7053 IFS="$lt_save_ifs" 7054 if test "X$pkg" = "X$p"; then 7055 enable_shared=yes 7056 fi 7057 done 7058 IFS="$lt_save_ifs" 7059 ;; 7060 esac 7061else 7062 enable_shared=yes 7063fi 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 # Check whether --enable-static was given. 7074if test "${enable_static+set}" = set; then 7075 enableval=$enable_static; p=${PACKAGE-default} 7076 case $enableval in 7077 yes) enable_static=yes ;; 7078 no) enable_static=no ;; 7079 *) 7080 enable_static=no 7081 # Look at the argument we got. We use all the common list separators. 7082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7083 for pkg in $enableval; do 7084 IFS="$lt_save_ifs" 7085 if test "X$pkg" = "X$p"; then 7086 enable_static=yes 7087 fi 7088 done 7089 IFS="$lt_save_ifs" 7090 ;; 7091 esac 7092else 7093 enable_static=yes 7094fi 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105# Check whether --with-pic was given. 7106if test "${with_pic+set}" = set; then 7107 withval=$with_pic; pic_mode="$withval" 7108else 7109 pic_mode=default 7110fi 7111 7112 7113test -z "$pic_mode" && pic_mode=default 7114 7115 7116 7117 7118 7119 7120 7121 # Check whether --enable-fast-install was given. 7122if test "${enable_fast_install+set}" = set; then 7123 enableval=$enable_fast_install; p=${PACKAGE-default} 7124 case $enableval in 7125 yes) enable_fast_install=yes ;; 7126 no) enable_fast_install=no ;; 7127 *) 7128 enable_fast_install=no 7129 # Look at the argument we got. We use all the common list separators. 7130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7131 for pkg in $enableval; do 7132 IFS="$lt_save_ifs" 7133 if test "X$pkg" = "X$p"; then 7134 enable_fast_install=yes 7135 fi 7136 done 7137 IFS="$lt_save_ifs" 7138 ;; 7139 esac 7140else 7141 enable_fast_install=yes 7142fi 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154# This can be used to rebuild libtool when needed 7155LIBTOOL_DEPS="$ltmain" 7156 7157# Always use our own libtool. 7158LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184test -z "$LN_S" && LN_S="ln -s" 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199if test -n "${ZSH_VERSION+set}" ; then 7200 setopt NO_GLOB_SUBST 7201fi 7202 7203{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7204$as_echo_n "checking for objdir... " >&6; } 7205if test "${lt_cv_objdir+set}" = set; then 7206 $as_echo_n "(cached) " >&6 7207else 7208 rm -f .libs 2>/dev/null 7209mkdir .libs 2>/dev/null 7210if test -d .libs; then 7211 lt_cv_objdir=.libs 7212else 7213 # MS-DOS does not allow filenames that begin with a dot. 7214 lt_cv_objdir=_libs 7215fi 7216rmdir .libs 2>/dev/null 7217fi 7218{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7219$as_echo "$lt_cv_objdir" >&6; } 7220objdir=$lt_cv_objdir 7221 7222 7223 7224 7225 7226cat >>confdefs.h <<_ACEOF 7227#define LT_OBJDIR "$lt_cv_objdir/" 7228_ACEOF 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246case $host_os in 7247aix3*) 7248 # AIX sometimes has problems with the GCC collect2 program. For some 7249 # reason, if we set the COLLECT_NAMES environment variable, the problems 7250 # vanish in a puff of smoke. 7251 if test "X${COLLECT_NAMES+set}" != Xset; then 7252 COLLECT_NAMES= 7253 export COLLECT_NAMES 7254 fi 7255 ;; 7256esac 7257 7258# Sed substitution that helps us do robust quoting. It backslashifies 7259# metacharacters that are still active within double-quoted strings. 7260sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7261 7262# Same as above, but do not quote variable references. 7263double_quote_subst='s/\(["`\\]\)/\\\1/g' 7264 7265# Sed substitution to delay expansion of an escaped shell variable in a 7266# double_quote_subst'ed string. 7267delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7268 7269# Sed substitution to delay expansion of an escaped single quote. 7270delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7271 7272# Sed substitution to avoid accidental globbing in evaled expressions 7273no_glob_subst='s/\*/\\\*/g' 7274 7275# Global variables: 7276ofile=libtool 7277can_build_shared=yes 7278 7279# All known linkers require a `.a' archive for static linking (except MSVC, 7280# which needs '.lib'). 7281libext=a 7282 7283with_gnu_ld="$lt_cv_prog_gnu_ld" 7284 7285old_CC="$CC" 7286old_CFLAGS="$CFLAGS" 7287 7288# Set sane defaults for various variables 7289test -z "$CC" && CC=cc 7290test -z "$LTCC" && LTCC=$CC 7291test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7292test -z "$LD" && LD=ld 7293test -z "$ac_objext" && ac_objext=o 7294 7295for cc_temp in $compiler""; do 7296 case $cc_temp in 7297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7299 \-*) ;; 7300 *) break;; 7301 esac 7302done 7303cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7304 7305 7306# Only perform the check for file, if the check method requires it 7307test -z "$MAGIC_CMD" && MAGIC_CMD=file 7308case $deplibs_check_method in 7309file_magic*) 7310 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7311 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7312$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7313if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7314 $as_echo_n "(cached) " >&6 7315else 7316 case $MAGIC_CMD in 7317[\\/*] | ?:[\\/]*) 7318 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7319 ;; 7320*) 7321 lt_save_MAGIC_CMD="$MAGIC_CMD" 7322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7323 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7324 for ac_dir in $ac_dummy; do 7325 IFS="$lt_save_ifs" 7326 test -z "$ac_dir" && ac_dir=. 7327 if test -f $ac_dir/${ac_tool_prefix}file; then 7328 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7329 if test -n "$file_magic_test_file"; then 7330 case $deplibs_check_method in 7331 "file_magic "*) 7332 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7333 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7334 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7335 $EGREP "$file_magic_regex" > /dev/null; then 7336 : 7337 else 7338 cat <<_LT_EOF 1>&2 7339 7340*** Warning: the command libtool uses to detect shared libraries, 7341*** $file_magic_cmd, produces output that libtool cannot recognize. 7342*** The result is that libtool may fail to recognize shared libraries 7343*** as such. This will affect the creation of libtool libraries that 7344*** depend on shared libraries, but programs linked with such libtool 7345*** libraries will work regardless of this problem. Nevertheless, you 7346*** may want to report the problem to your system manager and/or to 7347*** bug-libtool@gnu.org 7348 7349_LT_EOF 7350 fi ;; 7351 esac 7352 fi 7353 break 7354 fi 7355 done 7356 IFS="$lt_save_ifs" 7357 MAGIC_CMD="$lt_save_MAGIC_CMD" 7358 ;; 7359esac 7360fi 7361 7362MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7363if test -n "$MAGIC_CMD"; then 7364 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7365$as_echo "$MAGIC_CMD" >&6; } 7366else 7367 { $as_echo "$as_me:$LINENO: result: no" >&5 7368$as_echo "no" >&6; } 7369fi 7370 7371 7372 7373 7374 7375if test -z "$lt_cv_path_MAGIC_CMD"; then 7376 if test -n "$ac_tool_prefix"; then 7377 { $as_echo "$as_me:$LINENO: checking for file" >&5 7378$as_echo_n "checking for file... " >&6; } 7379if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7380 $as_echo_n "(cached) " >&6 7381else 7382 case $MAGIC_CMD in 7383[\\/*] | ?:[\\/]*) 7384 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7385 ;; 7386*) 7387 lt_save_MAGIC_CMD="$MAGIC_CMD" 7388 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7389 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7390 for ac_dir in $ac_dummy; do 7391 IFS="$lt_save_ifs" 7392 test -z "$ac_dir" && ac_dir=. 7393 if test -f $ac_dir/file; then 7394 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7395 if test -n "$file_magic_test_file"; then 7396 case $deplibs_check_method in 7397 "file_magic "*) 7398 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7399 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7400 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7401 $EGREP "$file_magic_regex" > /dev/null; then 7402 : 7403 else 7404 cat <<_LT_EOF 1>&2 7405 7406*** Warning: the command libtool uses to detect shared libraries, 7407*** $file_magic_cmd, produces output that libtool cannot recognize. 7408*** The result is that libtool may fail to recognize shared libraries 7409*** as such. This will affect the creation of libtool libraries that 7410*** depend on shared libraries, but programs linked with such libtool 7411*** libraries will work regardless of this problem. Nevertheless, you 7412*** may want to report the problem to your system manager and/or to 7413*** bug-libtool@gnu.org 7414 7415_LT_EOF 7416 fi ;; 7417 esac 7418 fi 7419 break 7420 fi 7421 done 7422 IFS="$lt_save_ifs" 7423 MAGIC_CMD="$lt_save_MAGIC_CMD" 7424 ;; 7425esac 7426fi 7427 7428MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7429if test -n "$MAGIC_CMD"; then 7430 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7431$as_echo "$MAGIC_CMD" >&6; } 7432else 7433 { $as_echo "$as_me:$LINENO: result: no" >&5 7434$as_echo "no" >&6; } 7435fi 7436 7437 7438 else 7439 MAGIC_CMD=: 7440 fi 7441fi 7442 7443 fi 7444 ;; 7445esac 7446 7447# Use C for the default configuration in the libtool script 7448 7449lt_save_CC="$CC" 7450ac_ext=c 7451ac_cpp='$CPP $CPPFLAGS' 7452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7454ac_compiler_gnu=$ac_cv_c_compiler_gnu 7455 7456 7457# Source file extension for C test sources. 7458ac_ext=c 7459 7460# Object file extension for compiled C test sources. 7461objext=o 7462objext=$objext 7463 7464# Code to be used in simple compile tests 7465lt_simple_compile_test_code="int some_variable = 0;" 7466 7467# Code to be used in simple link tests 7468lt_simple_link_test_code='int main(){return(0);}' 7469 7470 7471 7472 7473 7474 7475 7476# If no C compiler was specified, use CC. 7477LTCC=${LTCC-"$CC"} 7478 7479# If no C compiler flags were specified, use CFLAGS. 7480LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7481 7482# Allow CC to be a program name with arguments. 7483compiler=$CC 7484 7485# Save the default compiler, since it gets overwritten when the other 7486# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7487compiler_DEFAULT=$CC 7488 7489# save warnings/boilerplate of simple test code 7490ac_outfile=conftest.$ac_objext 7491echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7493_lt_compiler_boilerplate=`cat conftest.err` 7494$RM conftest* 7495 7496ac_outfile=conftest.$ac_objext 7497echo "$lt_simple_link_test_code" >conftest.$ac_ext 7498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7499_lt_linker_boilerplate=`cat conftest.err` 7500$RM -r conftest* 7501 7502 7503if test -n "$compiler"; then 7504 7505lt_prog_compiler_no_builtin_flag= 7506 7507if test "$GCC" = yes; then 7508 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7509 7510 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7511$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7512if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7513 $as_echo_n "(cached) " >&6 7514else 7515 lt_cv_prog_compiler_rtti_exceptions=no 7516 ac_outfile=conftest.$ac_objext 7517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7518 lt_compiler_flag="-fno-rtti -fno-exceptions" 7519 # Insert the option either (1) after the last *FLAGS variable, or 7520 # (2) before a word containing "conftest.", or (3) at the end. 7521 # Note that $ac_compile itself does not contain backslashes and begins 7522 # with a dollar sign (not a hyphen), so the echo should work correctly. 7523 # The option is referenced via a variable to avoid confusing sed. 7524 lt_compile=`echo "$ac_compile" | $SED \ 7525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7527 -e 's:$: $lt_compiler_flag:'` 7528 (eval echo "\"\$as_me:7528: $lt_compile\"" >&5) 7529 (eval "$lt_compile" 2>conftest.err) 7530 ac_status=$? 7531 cat conftest.err >&5 7532 echo "$as_me:7532: \$? = $ac_status" >&5 7533 if (exit $ac_status) && test -s "$ac_outfile"; then 7534 # The compiler can only warn and ignore the option if not recognized 7535 # So say no if there are warnings other than the usual output. 7536 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7537 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7538 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7539 lt_cv_prog_compiler_rtti_exceptions=yes 7540 fi 7541 fi 7542 $RM conftest* 7543 7544fi 7545{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7546$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7547 7548if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7549 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7550else 7551 : 7552fi 7553 7554fi 7555 7556 7557 7558 7559 7560 7561 lt_prog_compiler_wl= 7562lt_prog_compiler_pic= 7563lt_prog_compiler_static= 7564 7565{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7566$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7567 7568 if test "$GCC" = yes; then 7569 lt_prog_compiler_wl='-Wl,' 7570 lt_prog_compiler_static='-static' 7571 7572 case $host_os in 7573 aix*) 7574 # All AIX code is PIC. 7575 if test "$host_cpu" = ia64; then 7576 # AIX 5 now supports IA64 processor 7577 lt_prog_compiler_static='-Bstatic' 7578 fi 7579 ;; 7580 7581 amigaos*) 7582 case $host_cpu in 7583 powerpc) 7584 # see comment about AmigaOS4 .so support 7585 lt_prog_compiler_pic='-fPIC' 7586 ;; 7587 m68k) 7588 # FIXME: we need at least 68020 code to build shared libraries, but 7589 # adding the `-m68020' flag to GCC prevents building anything better, 7590 # like `-m68040'. 7591 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7592 ;; 7593 esac 7594 ;; 7595 7596 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7597 # PIC is the default for these OSes. 7598 ;; 7599 7600 mingw* | cygwin* | pw32* | os2* | cegcc*) 7601 # This hack is so that the source file can tell whether it is being 7602 # built for inclusion in a dll (and should export symbols for example). 7603 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7604 # (--disable-auto-import) libraries 7605 lt_prog_compiler_pic='-DDLL_EXPORT' 7606 ;; 7607 7608 darwin* | rhapsody*) 7609 # PIC is the default on this platform 7610 # Common symbols not allowed in MH_DYLIB files 7611 lt_prog_compiler_pic='-fno-common' 7612 ;; 7613 7614 hpux*) 7615 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7616 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7617 # sets the default TLS model and affects inlining. 7618 case $host_cpu in 7619 hppa*64*) 7620 # +Z the default 7621 ;; 7622 *) 7623 lt_prog_compiler_pic='-fPIC' 7624 ;; 7625 esac 7626 ;; 7627 7628 interix[3-9]*) 7629 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7630 # Instead, we relocate shared libraries at runtime. 7631 ;; 7632 7633 msdosdjgpp*) 7634 # Just because we use GCC doesn't mean we suddenly get shared libraries 7635 # on systems that don't support them. 7636 lt_prog_compiler_can_build_shared=no 7637 enable_shared=no 7638 ;; 7639 7640 *nto* | *qnx*) 7641 # QNX uses GNU C++, but need to define -shared option too, otherwise 7642 # it will coredump. 7643 lt_prog_compiler_pic='-fPIC -shared' 7644 ;; 7645 7646 sysv4*MP*) 7647 if test -d /usr/nec; then 7648 lt_prog_compiler_pic=-Kconform_pic 7649 fi 7650 ;; 7651 7652 *) 7653 lt_prog_compiler_pic='-fPIC' 7654 ;; 7655 esac 7656 else 7657 # PORTME Check for flag to pass linker flags through the system compiler. 7658 case $host_os in 7659 aix*) 7660 lt_prog_compiler_wl='-Wl,' 7661 if test "$host_cpu" = ia64; then 7662 # AIX 5 now supports IA64 processor 7663 lt_prog_compiler_static='-Bstatic' 7664 else 7665 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7666 fi 7667 ;; 7668 7669 mingw* | cygwin* | pw32* | os2* | cegcc*) 7670 # This hack is so that the source file can tell whether it is being 7671 # built for inclusion in a dll (and should export symbols for example). 7672 lt_prog_compiler_pic='-DDLL_EXPORT' 7673 ;; 7674 7675 hpux9* | hpux10* | hpux11*) 7676 lt_prog_compiler_wl='-Wl,' 7677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7678 # not for PA HP-UX. 7679 case $host_cpu in 7680 hppa*64*|ia64*) 7681 # +Z the default 7682 ;; 7683 *) 7684 lt_prog_compiler_pic='+Z' 7685 ;; 7686 esac 7687 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7688 lt_prog_compiler_static='${wl}-a ${wl}archive' 7689 ;; 7690 7691 irix5* | irix6* | nonstopux*) 7692 lt_prog_compiler_wl='-Wl,' 7693 # PIC (with -KPIC) is the default. 7694 lt_prog_compiler_static='-non_shared' 7695 ;; 7696 7697 linux* | k*bsd*-gnu) 7698 case $cc_basename in 7699 # old Intel for x86_64 which still supported -KPIC. 7700 ecc*) 7701 lt_prog_compiler_wl='-Wl,' 7702 lt_prog_compiler_pic='-KPIC' 7703 lt_prog_compiler_static='-static' 7704 ;; 7705 # icc used to be incompatible with GCC. 7706 # ICC 10 doesn't accept -KPIC any more. 7707 icc* | ifort*) 7708 lt_prog_compiler_wl='-Wl,' 7709 lt_prog_compiler_pic='-fPIC' 7710 lt_prog_compiler_static='-static' 7711 ;; 7712 # Lahey Fortran 8.1. 7713 lf95*) 7714 lt_prog_compiler_wl='-Wl,' 7715 lt_prog_compiler_pic='--shared' 7716 lt_prog_compiler_static='--static' 7717 ;; 7718 pgcc* | pgf77* | pgf90* | pgf95*) 7719 # Portland Group compilers (*not* the Pentium gcc compiler, 7720 # which looks to be a dead project) 7721 lt_prog_compiler_wl='-Wl,' 7722 lt_prog_compiler_pic='-fpic' 7723 lt_prog_compiler_static='-Bstatic' 7724 ;; 7725 ccc*) 7726 lt_prog_compiler_wl='-Wl,' 7727 # All Alpha code is PIC. 7728 lt_prog_compiler_static='-non_shared' 7729 ;; 7730 xl*) 7731 # IBM XL C 8.0/Fortran 10.1 on PPC 7732 lt_prog_compiler_wl='-Wl,' 7733 lt_prog_compiler_pic='-qpic' 7734 lt_prog_compiler_static='-qstaticlink' 7735 ;; 7736 *) 7737 case `$CC -V 2>&1 | sed 5q` in 7738 *Sun\ C*) 7739 # Sun C 5.9 7740 lt_prog_compiler_pic='-KPIC' 7741 lt_prog_compiler_static='-Bstatic' 7742 lt_prog_compiler_wl='-Wl,' 7743 ;; 7744 *Sun\ F*) 7745 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7746 lt_prog_compiler_pic='-KPIC' 7747 lt_prog_compiler_static='-Bstatic' 7748 lt_prog_compiler_wl='' 7749 ;; 7750 esac 7751 ;; 7752 esac 7753 ;; 7754 7755 newsos6) 7756 lt_prog_compiler_pic='-KPIC' 7757 lt_prog_compiler_static='-Bstatic' 7758 ;; 7759 7760 *nto* | *qnx*) 7761 # QNX uses GNU C++, but need to define -shared option too, otherwise 7762 # it will coredump. 7763 lt_prog_compiler_pic='-fPIC -shared' 7764 ;; 7765 7766 osf3* | osf4* | osf5*) 7767 lt_prog_compiler_wl='-Wl,' 7768 # All OSF/1 code is PIC. 7769 lt_prog_compiler_static='-non_shared' 7770 ;; 7771 7772 rdos*) 7773 lt_prog_compiler_static='-non_shared' 7774 ;; 7775 7776 solaris*) 7777 lt_prog_compiler_pic='-KPIC' 7778 lt_prog_compiler_static='-Bstatic' 7779 case $cc_basename in 7780 f77* | f90* | f95*) 7781 lt_prog_compiler_wl='-Qoption ld ';; 7782 *) 7783 lt_prog_compiler_wl='-Wl,';; 7784 esac 7785 ;; 7786 7787 sunos4*) 7788 lt_prog_compiler_wl='-Qoption ld ' 7789 lt_prog_compiler_pic='-PIC' 7790 lt_prog_compiler_static='-Bstatic' 7791 ;; 7792 7793 sysv4 | sysv4.2uw2* | sysv4.3*) 7794 lt_prog_compiler_wl='-Wl,' 7795 lt_prog_compiler_pic='-KPIC' 7796 lt_prog_compiler_static='-Bstatic' 7797 ;; 7798 7799 sysv4*MP*) 7800 if test -d /usr/nec ;then 7801 lt_prog_compiler_pic='-Kconform_pic' 7802 lt_prog_compiler_static='-Bstatic' 7803 fi 7804 ;; 7805 7806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7807 lt_prog_compiler_wl='-Wl,' 7808 lt_prog_compiler_pic='-KPIC' 7809 lt_prog_compiler_static='-Bstatic' 7810 ;; 7811 7812 unicos*) 7813 lt_prog_compiler_wl='-Wl,' 7814 lt_prog_compiler_can_build_shared=no 7815 ;; 7816 7817 uts4*) 7818 lt_prog_compiler_pic='-pic' 7819 lt_prog_compiler_static='-Bstatic' 7820 ;; 7821 7822 *) 7823 lt_prog_compiler_can_build_shared=no 7824 ;; 7825 esac 7826 fi 7827 7828case $host_os in 7829 # For platforms which do not support PIC, -DPIC is meaningless: 7830 *djgpp*) 7831 lt_prog_compiler_pic= 7832 ;; 7833 *) 7834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7835 ;; 7836esac 7837{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7838$as_echo "$lt_prog_compiler_pic" >&6; } 7839 7840 7841 7842 7843 7844 7845# 7846# Check to make sure the PIC flag actually works. 7847# 7848if test -n "$lt_prog_compiler_pic"; then 7849 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7850$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7851if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7852 $as_echo_n "(cached) " >&6 7853else 7854 lt_cv_prog_compiler_pic_works=no 7855 ac_outfile=conftest.$ac_objext 7856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7857 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7858 # Insert the option either (1) after the last *FLAGS variable, or 7859 # (2) before a word containing "conftest.", or (3) at the end. 7860 # Note that $ac_compile itself does not contain backslashes and begins 7861 # with a dollar sign (not a hyphen), so the echo should work correctly. 7862 # The option is referenced via a variable to avoid confusing sed. 7863 lt_compile=`echo "$ac_compile" | $SED \ 7864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7866 -e 's:$: $lt_compiler_flag:'` 7867 (eval echo "\"\$as_me:7867: $lt_compile\"" >&5) 7868 (eval "$lt_compile" 2>conftest.err) 7869 ac_status=$? 7870 cat conftest.err >&5 7871 echo "$as_me:7871: \$? = $ac_status" >&5 7872 if (exit $ac_status) && test -s "$ac_outfile"; then 7873 # The compiler can only warn and ignore the option if not recognized 7874 # So say no if there are warnings other than the usual output. 7875 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7877 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7878 lt_cv_prog_compiler_pic_works=yes 7879 fi 7880 fi 7881 $RM conftest* 7882 7883fi 7884{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7885$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7886 7887if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7888 case $lt_prog_compiler_pic in 7889 "" | " "*) ;; 7890 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7891 esac 7892else 7893 lt_prog_compiler_pic= 7894 lt_prog_compiler_can_build_shared=no 7895fi 7896 7897fi 7898 7899 7900 7901 7902 7903 7904# 7905# Check to make sure the static flag actually works. 7906# 7907wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7908{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7909$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7910if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7911 $as_echo_n "(cached) " >&6 7912else 7913 lt_cv_prog_compiler_static_works=no 7914 save_LDFLAGS="$LDFLAGS" 7915 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7916 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7917 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7918 # The linker can only warn and ignore the option if not recognized 7919 # So say no if there are warnings 7920 if test -s conftest.err; then 7921 # Append any errors to the config.log. 7922 cat conftest.err 1>&5 7923 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7924 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7925 if diff conftest.exp conftest.er2 >/dev/null; then 7926 lt_cv_prog_compiler_static_works=yes 7927 fi 7928 else 7929 lt_cv_prog_compiler_static_works=yes 7930 fi 7931 fi 7932 $RM -r conftest* 7933 LDFLAGS="$save_LDFLAGS" 7934 7935fi 7936{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7937$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7938 7939if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7940 : 7941else 7942 lt_prog_compiler_static= 7943fi 7944 7945 7946 7947 7948 7949 7950 7951 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7952$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7953if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7954 $as_echo_n "(cached) " >&6 7955else 7956 lt_cv_prog_compiler_c_o=no 7957 $RM -r conftest 2>/dev/null 7958 mkdir conftest 7959 cd conftest 7960 mkdir out 7961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7962 7963 lt_compiler_flag="-o out/conftest2.$ac_objext" 7964 # Insert the option either (1) after the last *FLAGS variable, or 7965 # (2) before a word containing "conftest.", or (3) at the end. 7966 # Note that $ac_compile itself does not contain backslashes and begins 7967 # with a dollar sign (not a hyphen), so the echo should work correctly. 7968 lt_compile=`echo "$ac_compile" | $SED \ 7969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7971 -e 's:$: $lt_compiler_flag:'` 7972 (eval echo "\"\$as_me:7972: $lt_compile\"" >&5) 7973 (eval "$lt_compile" 2>out/conftest.err) 7974 ac_status=$? 7975 cat out/conftest.err >&5 7976 echo "$as_me:7976: \$? = $ac_status" >&5 7977 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7978 then 7979 # The compiler can only warn and ignore the option if not recognized 7980 # So say no if there are warnings 7981 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7984 lt_cv_prog_compiler_c_o=yes 7985 fi 7986 fi 7987 chmod u+w . 2>&5 7988 $RM conftest* 7989 # SGI C++ compiler will create directory out/ii_files/ for 7990 # template instantiation 7991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7992 $RM out/* && rmdir out 7993 cd .. 7994 $RM -r conftest 7995 $RM conftest* 7996 7997fi 7998{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7999$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8000 8001 8002 8003 8004 8005 8006 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8007$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8008if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8009 $as_echo_n "(cached) " >&6 8010else 8011 lt_cv_prog_compiler_c_o=no 8012 $RM -r conftest 2>/dev/null 8013 mkdir conftest 8014 cd conftest 8015 mkdir out 8016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8017 8018 lt_compiler_flag="-o out/conftest2.$ac_objext" 8019 # Insert the option either (1) after the last *FLAGS variable, or 8020 # (2) before a word containing "conftest.", or (3) at the end. 8021 # Note that $ac_compile itself does not contain backslashes and begins 8022 # with a dollar sign (not a hyphen), so the echo should work correctly. 8023 lt_compile=`echo "$ac_compile" | $SED \ 8024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8026 -e 's:$: $lt_compiler_flag:'` 8027 (eval echo "\"\$as_me:8027: $lt_compile\"" >&5) 8028 (eval "$lt_compile" 2>out/conftest.err) 8029 ac_status=$? 8030 cat out/conftest.err >&5 8031 echo "$as_me:8031: \$? = $ac_status" >&5 8032 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8033 then 8034 # The compiler can only warn and ignore the option if not recognized 8035 # So say no if there are warnings 8036 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8037 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8038 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8039 lt_cv_prog_compiler_c_o=yes 8040 fi 8041 fi 8042 chmod u+w . 2>&5 8043 $RM conftest* 8044 # SGI C++ compiler will create directory out/ii_files/ for 8045 # template instantiation 8046 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8047 $RM out/* && rmdir out 8048 cd .. 8049 $RM -r conftest 8050 $RM conftest* 8051 8052fi 8053{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8054$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8055 8056 8057 8058 8059hard_links="nottested" 8060if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8061 # do not overwrite the value of need_locks provided by the user 8062 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8063$as_echo_n "checking if we can lock with hard links... " >&6; } 8064 hard_links=yes 8065 $RM conftest* 8066 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8067 touch conftest.a 8068 ln conftest.a conftest.b 2>&5 || hard_links=no 8069 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8070 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8071$as_echo "$hard_links" >&6; } 8072 if test "$hard_links" = no; then 8073 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8074$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8075 need_locks=warn 8076 fi 8077else 8078 need_locks=no 8079fi 8080 8081 8082 8083 8084 8085 8086 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8087$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8088 8089 runpath_var= 8090 allow_undefined_flag= 8091 always_export_symbols=no 8092 archive_cmds= 8093 archive_expsym_cmds= 8094 compiler_needs_object=no 8095 enable_shared_with_static_runtimes=no 8096 export_dynamic_flag_spec= 8097 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8098 hardcode_automatic=no 8099 hardcode_direct=no 8100 hardcode_direct_absolute=no 8101 hardcode_libdir_flag_spec= 8102 hardcode_libdir_flag_spec_ld= 8103 hardcode_libdir_separator= 8104 hardcode_minus_L=no 8105 hardcode_shlibpath_var=unsupported 8106 inherit_rpath=no 8107 link_all_deplibs=unknown 8108 module_cmds= 8109 module_expsym_cmds= 8110 old_archive_from_new_cmds= 8111 old_archive_from_expsyms_cmds= 8112 thread_safe_flag_spec= 8113 whole_archive_flag_spec= 8114 # include_expsyms should be a list of space-separated symbols to be *always* 8115 # included in the symbol list 8116 include_expsyms= 8117 # exclude_expsyms can be an extended regexp of symbols to exclude 8118 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8119 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8120 # as well as any symbol that contains `d'. 8121 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8122 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8123 # platforms (ab)use it in PIC code, but their linkers get confused if 8124 # the symbol is explicitly referenced. Since portable code cannot 8125 # rely on this symbol name, it's probably fine to never include it in 8126 # preloaded symbol tables. 8127 # Exclude shared library initialization/finalization symbols. 8128 extract_expsyms_cmds= 8129 8130 case $host_os in 8131 cygwin* | mingw* | pw32* | cegcc*) 8132 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8133 # When not using gcc, we currently assume that we are using 8134 # Microsoft Visual C++. 8135 if test "$GCC" != yes; then 8136 with_gnu_ld=no 8137 fi 8138 ;; 8139 interix*) 8140 # we just hope/assume this is gcc and not c89 (= MSVC++) 8141 with_gnu_ld=yes 8142 ;; 8143 openbsd*) 8144 with_gnu_ld=no 8145 ;; 8146 esac 8147 8148 ld_shlibs=yes 8149 if test "$with_gnu_ld" = yes; then 8150 # If archive_cmds runs LD, not CC, wlarc should be empty 8151 wlarc='${wl}' 8152 8153 # Set some defaults for GNU ld with shared library support. These 8154 # are reset later if shared libraries are not supported. Putting them 8155 # here allows them to be overridden if necessary. 8156 runpath_var=LD_RUN_PATH 8157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8158 export_dynamic_flag_spec='${wl}--export-dynamic' 8159 # ancient GNU ld didn't support --whole-archive et. al. 8160 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8161 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8162 else 8163 whole_archive_flag_spec= 8164 fi 8165 supports_anon_versioning=no 8166 case `$LD -v 2>&1` in 8167 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8170 *\ 2.11.*) ;; # other 2.11 versions 8171 *) supports_anon_versioning=yes ;; 8172 esac 8173 8174 # See if GNU ld supports shared libraries. 8175 case $host_os in 8176 aix[3-9]*) 8177 # On AIX/PPC, the GNU linker is very broken 8178 if test "$host_cpu" != ia64; then 8179 ld_shlibs=no 8180 cat <<_LT_EOF 1>&2 8181 8182*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8183*** to be unable to reliably create shared libraries on AIX. 8184*** Therefore, libtool is disabling shared libraries support. If you 8185*** really care for shared libraries, you may want to modify your PATH 8186*** so that a non-GNU linker is found, and then restart. 8187 8188_LT_EOF 8189 fi 8190 ;; 8191 8192 amigaos*) 8193 case $host_cpu in 8194 powerpc) 8195 # see comment about AmigaOS4 .so support 8196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8197 archive_expsym_cmds='' 8198 ;; 8199 m68k) 8200 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)' 8201 hardcode_libdir_flag_spec='-L$libdir' 8202 hardcode_minus_L=yes 8203 ;; 8204 esac 8205 ;; 8206 8207 beos*) 8208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8209 allow_undefined_flag=unsupported 8210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8211 # support --undefined. This deserves some investigation. FIXME 8212 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8213 else 8214 ld_shlibs=no 8215 fi 8216 ;; 8217 8218 cygwin* | mingw* | pw32* | cegcc*) 8219 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8220 # as there is no search path for DLLs. 8221 hardcode_libdir_flag_spec='-L$libdir' 8222 allow_undefined_flag=unsupported 8223 always_export_symbols=no 8224 enable_shared_with_static_runtimes=yes 8225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8226 8227 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8229 # If the export-symbols file already is a .def file (1st line 8230 # is EXPORTS), use it as is; otherwise, prepend... 8231 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8232 cp $export_symbols $output_objdir/$soname.def; 8233 else 8234 echo EXPORTS > $output_objdir/$soname.def; 8235 cat $export_symbols >> $output_objdir/$soname.def; 8236 fi~ 8237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8238 else 8239 ld_shlibs=no 8240 fi 8241 ;; 8242 8243 interix[3-9]*) 8244 hardcode_direct=no 8245 hardcode_shlibpath_var=no 8246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8247 export_dynamic_flag_spec='${wl}-E' 8248 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8249 # Instead, shared libraries are loaded at an image base (0x10000000 by 8250 # default) and relocated if they conflict, which is a slow very memory 8251 # consuming and fragmenting process. To avoid this, we pick a random, 8252 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8253 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8254 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8255 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' 8256 ;; 8257 8258 gnu* | linux* | tpf* | k*bsd*-gnu) 8259 tmp_diet=no 8260 if test "$host_os" = linux-dietlibc; then 8261 case $cc_basename in 8262 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8263 esac 8264 fi 8265 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8266 && test "$tmp_diet" = no 8267 then 8268 tmp_addflag= 8269 tmp_sharedflag='-shared' 8270 case $cc_basename,$host_cpu in 8271 pgcc*) # Portland Group C compiler 8272 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' 8273 tmp_addflag=' $pic_flag' 8274 ;; 8275 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8276 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' 8277 tmp_addflag=' $pic_flag -Mnomain' ;; 8278 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8279 tmp_addflag=' -i_dynamic' ;; 8280 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8281 tmp_addflag=' -i_dynamic -nofor_main' ;; 8282 ifc* | ifort*) # Intel Fortran compiler 8283 tmp_addflag=' -nofor_main' ;; 8284 lf95*) # Lahey Fortran 8.1 8285 whole_archive_flag_spec= 8286 tmp_sharedflag='--shared' ;; 8287 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8288 tmp_sharedflag='-qmkshrobj' 8289 tmp_addflag= ;; 8290 esac 8291 case `$CC -V 2>&1 | sed 5q` in 8292 *Sun\ C*) # Sun C 5.9 8293 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' 8294 compiler_needs_object=yes 8295 tmp_sharedflag='-G' ;; 8296 *Sun\ F*) # Sun Fortran 8.3 8297 tmp_sharedflag='-G' ;; 8298 esac 8299 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8300 8301 if test "x$supports_anon_versioning" = xyes; then 8302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8304 echo "local: *; };" >> $output_objdir/$libname.ver~ 8305 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8306 fi 8307 8308 case $cc_basename in 8309 xlf*) 8310 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8311 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8312 hardcode_libdir_flag_spec= 8313 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8314 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8315 if test "x$supports_anon_versioning" = xyes; then 8316 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8318 echo "local: *; };" >> $output_objdir/$libname.ver~ 8319 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8320 fi 8321 ;; 8322 esac 8323 else 8324 ld_shlibs=no 8325 fi 8326 ;; 8327 8328 netbsd*) 8329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8330 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8331 wlarc= 8332 else 8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8335 fi 8336 ;; 8337 8338 solaris*) 8339 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8340 ld_shlibs=no 8341 cat <<_LT_EOF 1>&2 8342 8343*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8344*** create shared libraries on Solaris systems. Therefore, libtool 8345*** is disabling shared libraries support. We urge you to upgrade GNU 8346*** binutils to release 2.9.1 or newer. Another option is to modify 8347*** your PATH or compiler configuration so that the native linker is 8348*** used, and then restart. 8349 8350_LT_EOF 8351 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8354 else 8355 ld_shlibs=no 8356 fi 8357 ;; 8358 8359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8360 case `$LD -v 2>&1` in 8361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8362 ld_shlibs=no 8363 cat <<_LT_EOF 1>&2 8364 8365*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8366*** reliably create shared libraries on SCO systems. Therefore, libtool 8367*** is disabling shared libraries support. We urge you to upgrade GNU 8368*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8369*** your PATH or compiler configuration so that the native linker is 8370*** used, and then restart. 8371 8372_LT_EOF 8373 ;; 8374 *) 8375 # For security reasons, it is highly recommended that you always 8376 # use absolute paths for naming shared libraries, and exclude the 8377 # DT_RUNPATH tag from executables and libraries. But doing so 8378 # requires that you compile everything twice, which is a pain. 8379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8383 else 8384 ld_shlibs=no 8385 fi 8386 ;; 8387 esac 8388 ;; 8389 8390 sunos4*) 8391 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8392 wlarc= 8393 hardcode_direct=yes 8394 hardcode_shlibpath_var=no 8395 ;; 8396 8397 *) 8398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8401 else 8402 ld_shlibs=no 8403 fi 8404 ;; 8405 esac 8406 8407 if test "$ld_shlibs" = no; then 8408 runpath_var= 8409 hardcode_libdir_flag_spec= 8410 export_dynamic_flag_spec= 8411 whole_archive_flag_spec= 8412 fi 8413 else 8414 # PORTME fill in a description of your system's linker (not GNU ld) 8415 case $host_os in 8416 aix3*) 8417 allow_undefined_flag=unsupported 8418 always_export_symbols=yes 8419 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' 8420 # Note: this linker hardcodes the directories in LIBPATH if there 8421 # are no directories specified by -L. 8422 hardcode_minus_L=yes 8423 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8424 # Neither direct hardcoding nor static linking is supported with a 8425 # broken collect2. 8426 hardcode_direct=unsupported 8427 fi 8428 ;; 8429 8430 aix[4-9]*) 8431 if test "$host_cpu" = ia64; then 8432 # On IA64, the linker does run time linking by default, so we don't 8433 # have to do anything special. 8434 aix_use_runtimelinking=no 8435 exp_sym_flag='-Bexport' 8436 no_entry_flag="" 8437 else 8438 # If we're using GNU nm, then we don't want the "-C" option. 8439 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8440 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8441 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' 8442 else 8443 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' 8444 fi 8445 aix_use_runtimelinking=no 8446 8447 # Test if we are trying to use run time linking or normal 8448 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8449 # need to do runtime linking. 8450 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8451 for ld_flag in $LDFLAGS; do 8452 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8453 aix_use_runtimelinking=yes 8454 break 8455 fi 8456 done 8457 ;; 8458 esac 8459 8460 exp_sym_flag='-bexport' 8461 no_entry_flag='-bnoentry' 8462 fi 8463 8464 # When large executables or shared objects are built, AIX ld can 8465 # have problems creating the table of contents. If linking a library 8466 # or program results in "error TOC overflow" add -mminimal-toc to 8467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8469 8470 archive_cmds='' 8471 hardcode_direct=yes 8472 hardcode_direct_absolute=yes 8473 hardcode_libdir_separator=':' 8474 link_all_deplibs=yes 8475 file_list_spec='${wl}-f,' 8476 8477 if test "$GCC" = yes; then 8478 case $host_os in aix4.[012]|aix4.[012].*) 8479 # We only want to do this on AIX 4.2 and lower, the check 8480 # below for broken collect2 doesn't work under 4.3+ 8481 collect2name=`${CC} -print-prog-name=collect2` 8482 if test -f "$collect2name" && 8483 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8484 then 8485 # We have reworked collect2 8486 : 8487 else 8488 # We have old collect2 8489 hardcode_direct=unsupported 8490 # It fails to find uninstalled libraries when the uninstalled 8491 # path is not listed in the libpath. Setting hardcode_minus_L 8492 # to unsupported forces relinking 8493 hardcode_minus_L=yes 8494 hardcode_libdir_flag_spec='-L$libdir' 8495 hardcode_libdir_separator= 8496 fi 8497 ;; 8498 esac 8499 shared_flag='-shared' 8500 if test "$aix_use_runtimelinking" = yes; then 8501 shared_flag="$shared_flag "'${wl}-G' 8502 fi 8503 else 8504 # not using gcc 8505 if test "$host_cpu" = ia64; then 8506 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8507 # chokes on -Wl,-G. The following line is correct: 8508 shared_flag='-G' 8509 else 8510 if test "$aix_use_runtimelinking" = yes; then 8511 shared_flag='${wl}-G' 8512 else 8513 shared_flag='${wl}-bM:SRE' 8514 fi 8515 fi 8516 fi 8517 8518 export_dynamic_flag_spec='${wl}-bexpall' 8519 # It seems that -bexpall does not export symbols beginning with 8520 # underscore (_), so it is better to generate a list of symbols to export. 8521 always_export_symbols=yes 8522 if test "$aix_use_runtimelinking" = yes; then 8523 # Warning - without using the other runtime loading flags (-brtl), 8524 # -berok will link without error, but may produce a broken library. 8525 allow_undefined_flag='-berok' 8526 # Determine the default libpath from the value encoded in an 8527 # empty executable. 8528 cat >conftest.$ac_ext <<_ACEOF 8529/* confdefs.h. */ 8530_ACEOF 8531cat confdefs.h >>conftest.$ac_ext 8532cat >>conftest.$ac_ext <<_ACEOF 8533/* end confdefs.h. */ 8534 8535int 8536main () 8537{ 8538 8539 ; 8540 return 0; 8541} 8542_ACEOF 8543rm -f conftest.$ac_objext conftest$ac_exeext 8544if { (ac_try="$ac_link" 8545case "(($ac_try" in 8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8547 *) ac_try_echo=$ac_try;; 8548esac 8549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8550$as_echo "$ac_try_echo") >&5 8551 (eval "$ac_link") 2>conftest.er1 8552 ac_status=$? 8553 grep -v '^ *+' conftest.er1 >conftest.err 8554 rm -f conftest.er1 8555 cat conftest.err >&5 8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8557 (exit $ac_status); } && { 8558 test -z "$ac_c_werror_flag" || 8559 test ! -s conftest.err 8560 } && test -s conftest$ac_exeext && { 8561 test "$cross_compiling" = yes || 8562 $as_test_x conftest$ac_exeext 8563 }; then 8564 8565lt_aix_libpath_sed=' 8566 /Import File Strings/,/^$/ { 8567 /^0/ { 8568 s/^0 *\(.*\)$/\1/ 8569 p 8570 } 8571 }' 8572aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8573# Check for a 64-bit object if we didn't find anything. 8574if test -z "$aix_libpath"; then 8575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8576fi 8577else 8578 $as_echo "$as_me: failed program was:" >&5 8579sed 's/^/| /' conftest.$ac_ext >&5 8580 8581 8582fi 8583 8584rm -rf conftest.dSYM 8585rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8586 conftest$ac_exeext conftest.$ac_ext 8587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8588 8589 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8590 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8591 else 8592 if test "$host_cpu" = ia64; then 8593 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8594 allow_undefined_flag="-z nodefs" 8595 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" 8596 else 8597 # Determine the default libpath from the value encoded in an 8598 # empty executable. 8599 cat >conftest.$ac_ext <<_ACEOF 8600/* confdefs.h. */ 8601_ACEOF 8602cat confdefs.h >>conftest.$ac_ext 8603cat >>conftest.$ac_ext <<_ACEOF 8604/* end confdefs.h. */ 8605 8606int 8607main () 8608{ 8609 8610 ; 8611 return 0; 8612} 8613_ACEOF 8614rm -f conftest.$ac_objext conftest$ac_exeext 8615if { (ac_try="$ac_link" 8616case "(($ac_try" in 8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8618 *) ac_try_echo=$ac_try;; 8619esac 8620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8621$as_echo "$ac_try_echo") >&5 8622 (eval "$ac_link") 2>conftest.er1 8623 ac_status=$? 8624 grep -v '^ *+' conftest.er1 >conftest.err 8625 rm -f conftest.er1 8626 cat conftest.err >&5 8627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8628 (exit $ac_status); } && { 8629 test -z "$ac_c_werror_flag" || 8630 test ! -s conftest.err 8631 } && test -s conftest$ac_exeext && { 8632 test "$cross_compiling" = yes || 8633 $as_test_x conftest$ac_exeext 8634 }; then 8635 8636lt_aix_libpath_sed=' 8637 /Import File Strings/,/^$/ { 8638 /^0/ { 8639 s/^0 *\(.*\)$/\1/ 8640 p 8641 } 8642 }' 8643aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8644# Check for a 64-bit object if we didn't find anything. 8645if test -z "$aix_libpath"; then 8646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8647fi 8648else 8649 $as_echo "$as_me: failed program was:" >&5 8650sed 's/^/| /' conftest.$ac_ext >&5 8651 8652 8653fi 8654 8655rm -rf conftest.dSYM 8656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8657 conftest$ac_exeext conftest.$ac_ext 8658if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8659 8660 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8661 # Warning - without using the other run time loading flags, 8662 # -berok will link without error, but may produce a broken library. 8663 no_undefined_flag=' ${wl}-bernotok' 8664 allow_undefined_flag=' ${wl}-berok' 8665 # Exported symbols can be pulled into shared objects from archives 8666 whole_archive_flag_spec='$convenience' 8667 archive_cmds_need_lc=yes 8668 # This is similar to how AIX traditionally builds its shared libraries. 8669 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' 8670 fi 8671 fi 8672 ;; 8673 8674 amigaos*) 8675 case $host_cpu in 8676 powerpc) 8677 # see comment about AmigaOS4 .so support 8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8679 archive_expsym_cmds='' 8680 ;; 8681 m68k) 8682 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)' 8683 hardcode_libdir_flag_spec='-L$libdir' 8684 hardcode_minus_L=yes 8685 ;; 8686 esac 8687 ;; 8688 8689 bsdi[45]*) 8690 export_dynamic_flag_spec=-rdynamic 8691 ;; 8692 8693 cygwin* | mingw* | pw32* | cegcc*) 8694 # When not using gcc, we currently assume that we are using 8695 # Microsoft Visual C++. 8696 # hardcode_libdir_flag_spec is actually meaningless, as there is 8697 # no search path for DLLs. 8698 hardcode_libdir_flag_spec=' ' 8699 allow_undefined_flag=unsupported 8700 # Tell ltmain to make .lib files, not .a files. 8701 libext=lib 8702 # Tell ltmain to make .dll files, not .so files. 8703 shrext_cmds=".dll" 8704 # FIXME: Setting linknames here is a bad hack. 8705 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8706 # The linker will automatically build a .lib file if we build a DLL. 8707 old_archive_from_new_cmds='true' 8708 # FIXME: Should let the user specify the lib program. 8709 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8710 fix_srcfile_path='`cygpath -w "$srcfile"`' 8711 enable_shared_with_static_runtimes=yes 8712 ;; 8713 8714 darwin* | rhapsody*) 8715 8716 8717 archive_cmds_need_lc=no 8718 hardcode_direct=no 8719 hardcode_automatic=yes 8720 hardcode_shlibpath_var=unsupported 8721 whole_archive_flag_spec='' 8722 link_all_deplibs=yes 8723 allow_undefined_flag="$_lt_dar_allow_undefined" 8724 case $cc_basename in 8725 ifort*) _lt_dar_can_shared=yes ;; 8726 *) _lt_dar_can_shared=$GCC ;; 8727 esac 8728 if test "$_lt_dar_can_shared" = "yes"; then 8729 output_verbose_link_cmd=echo 8730 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8731 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8732 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}" 8733 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}" 8734 8735 else 8736 ld_shlibs=no 8737 fi 8738 8739 ;; 8740 8741 dgux*) 8742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8743 hardcode_libdir_flag_spec='-L$libdir' 8744 hardcode_shlibpath_var=no 8745 ;; 8746 8747 freebsd1*) 8748 ld_shlibs=no 8749 ;; 8750 8751 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8752 # support. Future versions do this automatically, but an explicit c++rt0.o 8753 # does not break anything, and helps significantly (at the cost of a little 8754 # extra space). 8755 freebsd2.2*) 8756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8757 hardcode_libdir_flag_spec='-R$libdir' 8758 hardcode_direct=yes 8759 hardcode_shlibpath_var=no 8760 ;; 8761 8762 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8763 freebsd2*) 8764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8765 hardcode_direct=yes 8766 hardcode_minus_L=yes 8767 hardcode_shlibpath_var=no 8768 ;; 8769 8770 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8771 freebsd* | dragonfly*) 8772 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8773 hardcode_libdir_flag_spec='-R$libdir' 8774 hardcode_direct=yes 8775 hardcode_shlibpath_var=no 8776 ;; 8777 8778 hpux9*) 8779 if test "$GCC" = yes; then 8780 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' 8781 else 8782 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' 8783 fi 8784 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8785 hardcode_libdir_separator=: 8786 hardcode_direct=yes 8787 8788 # hardcode_minus_L: Not really in the search PATH, 8789 # but as the default location of the library. 8790 hardcode_minus_L=yes 8791 export_dynamic_flag_spec='${wl}-E' 8792 ;; 8793 8794 hpux10*) 8795 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8796 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8797 else 8798 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8799 fi 8800 if test "$with_gnu_ld" = no; then 8801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8802 hardcode_libdir_flag_spec_ld='+b $libdir' 8803 hardcode_libdir_separator=: 8804 hardcode_direct=yes 8805 hardcode_direct_absolute=yes 8806 export_dynamic_flag_spec='${wl}-E' 8807 # hardcode_minus_L: Not really in the search PATH, 8808 # but as the default location of the library. 8809 hardcode_minus_L=yes 8810 fi 8811 ;; 8812 8813 hpux11*) 8814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8815 case $host_cpu in 8816 hppa*64*) 8817 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8818 ;; 8819 ia64*) 8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8821 ;; 8822 *) 8823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8824 ;; 8825 esac 8826 else 8827 case $host_cpu in 8828 hppa*64*) 8829 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 ia64*) 8832 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8833 ;; 8834 *) 8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8836 ;; 8837 esac 8838 fi 8839 if test "$with_gnu_ld" = no; then 8840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8841 hardcode_libdir_separator=: 8842 8843 case $host_cpu in 8844 hppa*64*|ia64*) 8845 hardcode_direct=no 8846 hardcode_shlibpath_var=no 8847 ;; 8848 *) 8849 hardcode_direct=yes 8850 hardcode_direct_absolute=yes 8851 export_dynamic_flag_spec='${wl}-E' 8852 8853 # hardcode_minus_L: Not really in the search PATH, 8854 # but as the default location of the library. 8855 hardcode_minus_L=yes 8856 ;; 8857 esac 8858 fi 8859 ;; 8860 8861 irix5* | irix6* | nonstopux*) 8862 if test "$GCC" = yes; then 8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8864 # Try to use the -exported_symbol ld option, if it does not 8865 # work, assume that -exports_file does not work either and 8866 # implicitly export all symbols. 8867 save_LDFLAGS="$LDFLAGS" 8868 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8869 cat >conftest.$ac_ext <<_ACEOF 8870int foo(void) {} 8871_ACEOF 8872rm -f conftest.$ac_objext conftest$ac_exeext 8873if { (ac_try="$ac_link" 8874case "(($ac_try" in 8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8876 *) ac_try_echo=$ac_try;; 8877esac 8878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8879$as_echo "$ac_try_echo") >&5 8880 (eval "$ac_link") 2>conftest.er1 8881 ac_status=$? 8882 grep -v '^ *+' conftest.er1 >conftest.err 8883 rm -f conftest.er1 8884 cat conftest.err >&5 8885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8886 (exit $ac_status); } && { 8887 test -z "$ac_c_werror_flag" || 8888 test ! -s conftest.err 8889 } && test -s conftest$ac_exeext && { 8890 test "$cross_compiling" = yes || 8891 $as_test_x conftest$ac_exeext 8892 }; then 8893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8894 8895else 8896 $as_echo "$as_me: failed program was:" >&5 8897sed 's/^/| /' conftest.$ac_ext >&5 8898 8899 8900fi 8901 8902rm -rf conftest.dSYM 8903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8904 conftest$ac_exeext conftest.$ac_ext 8905 LDFLAGS="$save_LDFLAGS" 8906 else 8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8909 fi 8910 archive_cmds_need_lc='no' 8911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8912 hardcode_libdir_separator=: 8913 inherit_rpath=yes 8914 link_all_deplibs=yes 8915 ;; 8916 8917 netbsd*) 8918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8920 else 8921 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8922 fi 8923 hardcode_libdir_flag_spec='-R$libdir' 8924 hardcode_direct=yes 8925 hardcode_shlibpath_var=no 8926 ;; 8927 8928 newsos6) 8929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8930 hardcode_direct=yes 8931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8932 hardcode_libdir_separator=: 8933 hardcode_shlibpath_var=no 8934 ;; 8935 8936 *nto* | *qnx*) 8937 ;; 8938 8939 openbsd*) 8940 if test -f /usr/libexec/ld.so; then 8941 hardcode_direct=yes 8942 hardcode_shlibpath_var=no 8943 hardcode_direct_absolute=yes 8944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8946 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8948 export_dynamic_flag_spec='${wl}-E' 8949 else 8950 case $host_os in 8951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8953 hardcode_libdir_flag_spec='-R$libdir' 8954 ;; 8955 *) 8956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8958 ;; 8959 esac 8960 fi 8961 else 8962 ld_shlibs=no 8963 fi 8964 ;; 8965 8966 os2*) 8967 hardcode_libdir_flag_spec='-L$libdir' 8968 hardcode_minus_L=yes 8969 allow_undefined_flag=unsupported 8970 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' 8971 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8972 ;; 8973 8974 osf3*) 8975 if test "$GCC" = yes; then 8976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8977 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8978 else 8979 allow_undefined_flag=' -expect_unresolved \*' 8980 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8981 fi 8982 archive_cmds_need_lc='no' 8983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8984 hardcode_libdir_separator=: 8985 ;; 8986 8987 osf4* | osf5*) # as osf3* with the addition of -msym flag 8988 if test "$GCC" = yes; then 8989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8990 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8992 else 8993 allow_undefined_flag=' -expect_unresolved \*' 8994 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8995 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8996 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8997 8998 # Both c and cxx compiler support -rpath directly 8999 hardcode_libdir_flag_spec='-rpath $libdir' 9000 fi 9001 archive_cmds_need_lc='no' 9002 hardcode_libdir_separator=: 9003 ;; 9004 9005 solaris*) 9006 no_undefined_flag=' -z defs' 9007 if test "$GCC" = yes; then 9008 wlarc='${wl}' 9009 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9011 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9012 else 9013 case `$CC -V 2>&1` in 9014 *"Compilers 5.0"*) 9015 wlarc='' 9016 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9018 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9019 ;; 9020 *) 9021 wlarc='${wl}' 9022 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9024 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9025 ;; 9026 esac 9027 fi 9028 hardcode_libdir_flag_spec='-R$libdir' 9029 hardcode_shlibpath_var=no 9030 case $host_os in 9031 solaris2.[0-5] | solaris2.[0-5].*) ;; 9032 *) 9033 # The compiler driver will combine and reorder linker options, 9034 # but understands `-z linker_flag'. GCC discards it without `$wl', 9035 # but is careful enough not to reorder. 9036 # Supported since Solaris 2.6 (maybe 2.5.1?) 9037 if test "$GCC" = yes; then 9038 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9039 else 9040 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9041 fi 9042 ;; 9043 esac 9044 link_all_deplibs=yes 9045 ;; 9046 9047 sunos4*) 9048 if test "x$host_vendor" = xsequent; then 9049 # Use $CC to link under sequent, because it throws in some extra .o 9050 # files that make .init and .fini sections work. 9051 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9052 else 9053 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9054 fi 9055 hardcode_libdir_flag_spec='-L$libdir' 9056 hardcode_direct=yes 9057 hardcode_minus_L=yes 9058 hardcode_shlibpath_var=no 9059 ;; 9060 9061 sysv4) 9062 case $host_vendor in 9063 sni) 9064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9065 hardcode_direct=yes # is this really true??? 9066 ;; 9067 siemens) 9068 ## LD is ld it makes a PLAMLIB 9069 ## CC just makes a GrossModule. 9070 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9071 reload_cmds='$CC -r -o $output$reload_objs' 9072 hardcode_direct=no 9073 ;; 9074 motorola) 9075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9076 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9077 ;; 9078 esac 9079 runpath_var='LD_RUN_PATH' 9080 hardcode_shlibpath_var=no 9081 ;; 9082 9083 sysv4.3*) 9084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9085 hardcode_shlibpath_var=no 9086 export_dynamic_flag_spec='-Bexport' 9087 ;; 9088 9089 sysv4*MP*) 9090 if test -d /usr/nec; then 9091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9092 hardcode_shlibpath_var=no 9093 runpath_var=LD_RUN_PATH 9094 hardcode_runpath_var=yes 9095 ld_shlibs=yes 9096 fi 9097 ;; 9098 9099 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9100 no_undefined_flag='${wl}-z,text' 9101 archive_cmds_need_lc=no 9102 hardcode_shlibpath_var=no 9103 runpath_var='LD_RUN_PATH' 9104 9105 if test "$GCC" = yes; then 9106 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9108 else 9109 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9111 fi 9112 ;; 9113 9114 sysv5* | sco3.2v5* | sco5v6*) 9115 # Note: We can NOT use -z defs as we might desire, because we do not 9116 # link with -lc, and that would cause any symbols used from libc to 9117 # always be unresolved, which means just about no library would 9118 # ever link correctly. If we're not using GNU ld we use -z text 9119 # though, which does catch some bad symbols but isn't as heavy-handed 9120 # as -z defs. 9121 no_undefined_flag='${wl}-z,text' 9122 allow_undefined_flag='${wl}-z,nodefs' 9123 archive_cmds_need_lc=no 9124 hardcode_shlibpath_var=no 9125 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9126 hardcode_libdir_separator=':' 9127 link_all_deplibs=yes 9128 export_dynamic_flag_spec='${wl}-Bexport' 9129 runpath_var='LD_RUN_PATH' 9130 9131 if test "$GCC" = yes; then 9132 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9133 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9134 else 9135 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9136 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9137 fi 9138 ;; 9139 9140 uts4*) 9141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9142 hardcode_libdir_flag_spec='-L$libdir' 9143 hardcode_shlibpath_var=no 9144 ;; 9145 9146 *) 9147 ld_shlibs=no 9148 ;; 9149 esac 9150 9151 if test x$host_vendor = xsni; then 9152 case $host in 9153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9154 export_dynamic_flag_spec='${wl}-Blargedynsym' 9155 ;; 9156 esac 9157 fi 9158 fi 9159 9160{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9161$as_echo "$ld_shlibs" >&6; } 9162test "$ld_shlibs" = no && can_build_shared=no 9163 9164with_gnu_ld=$with_gnu_ld 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180# 9181# Do we need to explicitly link libc? 9182# 9183case "x$archive_cmds_need_lc" in 9184x|xyes) 9185 # Assume -lc should be added 9186 archive_cmds_need_lc=yes 9187 9188 if test "$enable_shared" = yes && test "$GCC" = yes; then 9189 case $archive_cmds in 9190 *'~'*) 9191 # FIXME: we may have to deal with multi-command sequences. 9192 ;; 9193 '$CC '*) 9194 # Test whether the compiler implicitly links with -lc since on some 9195 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9196 # to ld, don't add -lc before -lgcc. 9197 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9198$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9199 $RM conftest* 9200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9201 9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9203 (eval $ac_compile) 2>&5 9204 ac_status=$? 9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9206 (exit $ac_status); } 2>conftest.err; then 9207 soname=conftest 9208 lib=conftest 9209 libobjs=conftest.$ac_objext 9210 deplibs= 9211 wl=$lt_prog_compiler_wl 9212 pic_flag=$lt_prog_compiler_pic 9213 compiler_flags=-v 9214 linker_flags=-v 9215 verstring= 9216 output_objdir=. 9217 libname=conftest 9218 lt_save_allow_undefined_flag=$allow_undefined_flag 9219 allow_undefined_flag= 9220 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9221 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9222 ac_status=$? 9223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 (exit $ac_status); } 9225 then 9226 archive_cmds_need_lc=no 9227 else 9228 archive_cmds_need_lc=yes 9229 fi 9230 allow_undefined_flag=$lt_save_allow_undefined_flag 9231 else 9232 cat conftest.err 1>&5 9233 fi 9234 $RM conftest* 9235 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9236$as_echo "$archive_cmds_need_lc" >&6; } 9237 ;; 9238 esac 9239 fi 9240 ;; 9241esac 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9400$as_echo_n "checking dynamic linker characteristics... " >&6; } 9401 9402if test "$GCC" = yes; then 9403 case $host_os in 9404 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9405 *) lt_awk_arg="/^libraries:/" ;; 9406 esac 9407 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9408 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9409 # if the path contains ";" then we assume it to be the separator 9410 # otherwise default to the standard path separator (i.e. ":") - it is 9411 # assumed that no part of a normal pathname contains ";" but that should 9412 # okay in the real world where ";" in dirpaths is itself problematic. 9413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9414 else 9415 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9416 fi 9417 # Ok, now we have the path, separated by spaces, we can step through it 9418 # and add multilib dir if necessary. 9419 lt_tmp_lt_search_path_spec= 9420 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9421 for lt_sys_path in $lt_search_path_spec; do 9422 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9424 else 9425 test -d "$lt_sys_path" && \ 9426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9427 fi 9428 done 9429 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9430BEGIN {RS=" "; FS="/|\n";} { 9431 lt_foo=""; 9432 lt_count=0; 9433 for (lt_i = NF; lt_i > 0; lt_i--) { 9434 if ($lt_i != "" && $lt_i != ".") { 9435 if ($lt_i == "..") { 9436 lt_count++; 9437 } else { 9438 if (lt_count == 0) { 9439 lt_foo="/" $lt_i lt_foo; 9440 } else { 9441 lt_count--; 9442 } 9443 } 9444 } 9445 } 9446 if (lt_foo != "") { lt_freq[lt_foo]++; } 9447 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9448}'` 9449 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9450else 9451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9452fi 9453library_names_spec= 9454libname_spec='lib$name' 9455soname_spec= 9456shrext_cmds=".so" 9457postinstall_cmds= 9458postuninstall_cmds= 9459finish_cmds= 9460finish_eval= 9461shlibpath_var= 9462shlibpath_overrides_runpath=unknown 9463version_type=none 9464dynamic_linker="$host_os ld.so" 9465sys_lib_dlsearch_path_spec="/lib /usr/lib" 9466need_lib_prefix=unknown 9467hardcode_into_libs=no 9468 9469# when you set need_version to no, make sure it does not cause -set_version 9470# flags to be left without arguments 9471need_version=unknown 9472 9473case $host_os in 9474aix3*) 9475 version_type=linux 9476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9477 shlibpath_var=LIBPATH 9478 9479 # AIX 3 has no versioning support, so we append a major version to the name. 9480 soname_spec='${libname}${release}${shared_ext}$major' 9481 ;; 9482 9483aix[4-9]*) 9484 version_type=linux 9485 need_lib_prefix=no 9486 need_version=no 9487 hardcode_into_libs=yes 9488 if test "$host_cpu" = ia64; then 9489 # AIX 5 supports IA64 9490 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9491 shlibpath_var=LD_LIBRARY_PATH 9492 else 9493 # With GCC up to 2.95.x, collect2 would create an import file 9494 # for dependence libraries. The import file would start with 9495 # the line `#! .'. This would cause the generated library to 9496 # depend on `.', always an invalid library. This was fixed in 9497 # development snapshots of GCC prior to 3.0. 9498 case $host_os in 9499 aix4 | aix4.[01] | aix4.[01].*) 9500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9501 echo ' yes ' 9502 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9503 : 9504 else 9505 can_build_shared=no 9506 fi 9507 ;; 9508 esac 9509 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9510 # soname into executable. Probably we can add versioning support to 9511 # collect2, so additional links can be useful in future. 9512 if test "$aix_use_runtimelinking" = yes; then 9513 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9514 # instead of lib<name>.a to let people know that these are not 9515 # typical AIX shared libraries. 9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9517 else 9518 # We preserve .a as extension for shared libraries through AIX4.2 9519 # and later when we are not doing run time linking. 9520 library_names_spec='${libname}${release}.a $libname.a' 9521 soname_spec='${libname}${release}${shared_ext}$major' 9522 fi 9523 shlibpath_var=LIBPATH 9524 fi 9525 ;; 9526 9527amigaos*) 9528 case $host_cpu in 9529 powerpc) 9530 # Since July 2007 AmigaOS4 officially supports .so libraries. 9531 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9533 ;; 9534 m68k) 9535 library_names_spec='$libname.ixlibrary $libname.a' 9536 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9537 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' 9538 ;; 9539 esac 9540 ;; 9541 9542beos*) 9543 library_names_spec='${libname}${shared_ext}' 9544 dynamic_linker="$host_os ld.so" 9545 shlibpath_var=LIBRARY_PATH 9546 ;; 9547 9548bsdi[45]*) 9549 version_type=linux 9550 need_version=no 9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9552 soname_spec='${libname}${release}${shared_ext}$major' 9553 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9554 shlibpath_var=LD_LIBRARY_PATH 9555 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9556 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9557 # the default ld.so.conf also contains /usr/contrib/lib and 9558 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9559 # libtool to hard-code these into programs 9560 ;; 9561 9562cygwin* | mingw* | pw32* | cegcc*) 9563 version_type=windows 9564 shrext_cmds=".dll" 9565 need_version=no 9566 need_lib_prefix=no 9567 9568 case $GCC,$host_os in 9569 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9570 library_names_spec='$libname.dll.a' 9571 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9572 postinstall_cmds='base_file=`basename \${file}`~ 9573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9574 dldir=$destdir/`dirname \$dlpath`~ 9575 test -d \$dldir || mkdir -p \$dldir~ 9576 $install_prog $dir/$dlname \$dldir/$dlname~ 9577 chmod a+x \$dldir/$dlname~ 9578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9580 fi' 9581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9582 dlpath=$dir/\$dldll~ 9583 $RM \$dlpath' 9584 shlibpath_overrides_runpath=yes 9585 9586 case $host_os in 9587 cygwin*) 9588 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9589 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9590 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9591 ;; 9592 mingw* | cegcc*) 9593 # MinGW DLLs use traditional 'lib' prefix 9594 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9595 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9596 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9597 # It is most probably a Windows format PATH printed by 9598 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9599 # path with ; separators, and with drive letters. We can handle the 9600 # drive letters (cygwin fileutils understands them), so leave them, 9601 # especially as we might pass files found there to a mingw objdump, 9602 # which wouldn't understand a cygwinified path. Ahh. 9603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9604 else 9605 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9606 fi 9607 ;; 9608 pw32*) 9609 # pw32 DLLs use 'pw' prefix rather than 'lib' 9610 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9611 ;; 9612 esac 9613 ;; 9614 9615 *) 9616 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9617 ;; 9618 esac 9619 dynamic_linker='Win32 ld.exe' 9620 # FIXME: first we should search . and the directory the executable is in 9621 shlibpath_var=PATH 9622 ;; 9623 9624darwin* | rhapsody*) 9625 dynamic_linker="$host_os dyld" 9626 version_type=darwin 9627 need_lib_prefix=no 9628 need_version=no 9629 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9630 soname_spec='${libname}${release}${major}$shared_ext' 9631 shlibpath_overrides_runpath=yes 9632 shlibpath_var=DYLD_LIBRARY_PATH 9633 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9634 9635 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9636 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9637 ;; 9638 9639dgux*) 9640 version_type=linux 9641 need_lib_prefix=no 9642 need_version=no 9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9644 soname_spec='${libname}${release}${shared_ext}$major' 9645 shlibpath_var=LD_LIBRARY_PATH 9646 ;; 9647 9648freebsd1*) 9649 dynamic_linker=no 9650 ;; 9651 9652freebsd* | dragonfly*) 9653 # DragonFly does not have aout. When/if they implement a new 9654 # versioning mechanism, adjust this. 9655 if test -x /usr/bin/objformat; then 9656 objformat=`/usr/bin/objformat` 9657 else 9658 case $host_os in 9659 freebsd[123]*) objformat=aout ;; 9660 *) objformat=elf ;; 9661 esac 9662 fi 9663 version_type=freebsd-$objformat 9664 case $version_type in 9665 freebsd-elf*) 9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9667 need_version=no 9668 need_lib_prefix=no 9669 ;; 9670 freebsd-*) 9671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9672 need_version=yes 9673 ;; 9674 esac 9675 shlibpath_var=LD_LIBRARY_PATH 9676 case $host_os in 9677 freebsd2*) 9678 shlibpath_overrides_runpath=yes 9679 ;; 9680 freebsd3.[01]* | freebsdelf3.[01]*) 9681 shlibpath_overrides_runpath=yes 9682 hardcode_into_libs=yes 9683 ;; 9684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9686 shlibpath_overrides_runpath=no 9687 hardcode_into_libs=yes 9688 ;; 9689 *) # from 4.6 on, and DragonFly 9690 shlibpath_overrides_runpath=yes 9691 hardcode_into_libs=yes 9692 ;; 9693 esac 9694 ;; 9695 9696gnu*) 9697 version_type=linux 9698 need_lib_prefix=no 9699 need_version=no 9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9701 soname_spec='${libname}${release}${shared_ext}$major' 9702 shlibpath_var=LD_LIBRARY_PATH 9703 hardcode_into_libs=yes 9704 ;; 9705 9706hpux9* | hpux10* | hpux11*) 9707 # Give a soname corresponding to the major version so that dld.sl refuses to 9708 # link against other versions. 9709 version_type=sunos 9710 need_lib_prefix=no 9711 need_version=no 9712 case $host_cpu in 9713 ia64*) 9714 shrext_cmds='.so' 9715 hardcode_into_libs=yes 9716 dynamic_linker="$host_os dld.so" 9717 shlibpath_var=LD_LIBRARY_PATH 9718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9720 soname_spec='${libname}${release}${shared_ext}$major' 9721 if test "X$HPUX_IA64_MODE" = X32; then 9722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9723 else 9724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9725 fi 9726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9727 ;; 9728 hppa*64*) 9729 shrext_cmds='.sl' 9730 hardcode_into_libs=yes 9731 dynamic_linker="$host_os dld.sl" 9732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9735 soname_spec='${libname}${release}${shared_ext}$major' 9736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9738 ;; 9739 *) 9740 shrext_cmds='.sl' 9741 dynamic_linker="$host_os dld.sl" 9742 shlibpath_var=SHLIB_PATH 9743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9745 soname_spec='${libname}${release}${shared_ext}$major' 9746 ;; 9747 esac 9748 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9749 postinstall_cmds='chmod 555 $lib' 9750 ;; 9751 9752interix[3-9]*) 9753 version_type=linux 9754 need_lib_prefix=no 9755 need_version=no 9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9757 soname_spec='${libname}${release}${shared_ext}$major' 9758 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9759 shlibpath_var=LD_LIBRARY_PATH 9760 shlibpath_overrides_runpath=no 9761 hardcode_into_libs=yes 9762 ;; 9763 9764irix5* | irix6* | nonstopux*) 9765 case $host_os in 9766 nonstopux*) version_type=nonstopux ;; 9767 *) 9768 if test "$lt_cv_prog_gnu_ld" = yes; then 9769 version_type=linux 9770 else 9771 version_type=irix 9772 fi ;; 9773 esac 9774 need_lib_prefix=no 9775 need_version=no 9776 soname_spec='${libname}${release}${shared_ext}$major' 9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9778 case $host_os in 9779 irix5* | nonstopux*) 9780 libsuff= shlibsuff= 9781 ;; 9782 *) 9783 case $LD in # libtool.m4 will add one of these switches to LD 9784 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9785 libsuff= shlibsuff= libmagic=32-bit;; 9786 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9787 libsuff=32 shlibsuff=N32 libmagic=N32;; 9788 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9789 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9790 *) libsuff= shlibsuff= libmagic=never-match;; 9791 esac 9792 ;; 9793 esac 9794 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9795 shlibpath_overrides_runpath=no 9796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9798 hardcode_into_libs=yes 9799 ;; 9800 9801# No shared lib support for Linux oldld, aout, or coff. 9802linux*oldld* | linux*aout* | linux*coff*) 9803 dynamic_linker=no 9804 ;; 9805 9806# This must be Linux ELF. 9807linux* | k*bsd*-gnu) 9808 version_type=linux 9809 need_lib_prefix=no 9810 need_version=no 9811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9812 soname_spec='${libname}${release}${shared_ext}$major' 9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9814 shlibpath_var=LD_LIBRARY_PATH 9815 shlibpath_overrides_runpath=no 9816 # Some binutils ld are patched to set DT_RUNPATH 9817 save_LDFLAGS=$LDFLAGS 9818 save_libdir=$libdir 9819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9821 cat >conftest.$ac_ext <<_ACEOF 9822/* confdefs.h. */ 9823_ACEOF 9824cat confdefs.h >>conftest.$ac_ext 9825cat >>conftest.$ac_ext <<_ACEOF 9826/* end confdefs.h. */ 9827 9828int 9829main () 9830{ 9831 9832 ; 9833 return 0; 9834} 9835_ACEOF 9836rm -f conftest.$ac_objext conftest$ac_exeext 9837if { (ac_try="$ac_link" 9838case "(($ac_try" in 9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9840 *) ac_try_echo=$ac_try;; 9841esac 9842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9843$as_echo "$ac_try_echo") >&5 9844 (eval "$ac_link") 2>conftest.er1 9845 ac_status=$? 9846 grep -v '^ *+' conftest.er1 >conftest.err 9847 rm -f conftest.er1 9848 cat conftest.err >&5 9849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 (exit $ac_status); } && { 9851 test -z "$ac_c_werror_flag" || 9852 test ! -s conftest.err 9853 } && test -s conftest$ac_exeext && { 9854 test "$cross_compiling" = yes || 9855 $as_test_x conftest$ac_exeext 9856 }; then 9857 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9858 shlibpath_overrides_runpath=yes 9859fi 9860 9861else 9862 $as_echo "$as_me: failed program was:" >&5 9863sed 's/^/| /' conftest.$ac_ext >&5 9864 9865 9866fi 9867 9868rm -rf conftest.dSYM 9869rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9870 conftest$ac_exeext conftest.$ac_ext 9871 LDFLAGS=$save_LDFLAGS 9872 libdir=$save_libdir 9873 9874 # This implies no fast_install, which is unacceptable. 9875 # Some rework will be needed to allow for fast_install 9876 # before this can be enabled. 9877 hardcode_into_libs=yes 9878 9879 # Add ABI-specific directories to the system library path. 9880 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9881 9882 # Append ld.so.conf contents to the search path 9883 if test -f /etc/ld.so.conf; then 9884 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' ' '` 9885 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9886 fi 9887 9888 # We used to test for /lib/ld.so.1 and disable shared libraries on 9889 # powerpc, because MkLinux only supported shared libraries with the 9890 # GNU dynamic linker. Since this was broken with cross compilers, 9891 # most powerpc-linux boxes support dynamic linking these days and 9892 # people can always --disable-shared, the test was removed, and we 9893 # assume the GNU/Linux dynamic linker is in use. 9894 dynamic_linker='GNU/Linux ld.so' 9895 ;; 9896 9897netbsd*) 9898 version_type=sunos 9899 need_lib_prefix=no 9900 need_version=no 9901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9904 dynamic_linker='NetBSD (a.out) ld.so' 9905 else 9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9907 soname_spec='${libname}${release}${shared_ext}$major' 9908 dynamic_linker='NetBSD ld.elf_so' 9909 fi 9910 shlibpath_var=LD_LIBRARY_PATH 9911 shlibpath_overrides_runpath=yes 9912 hardcode_into_libs=yes 9913 ;; 9914 9915newsos6) 9916 version_type=linux 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9918 shlibpath_var=LD_LIBRARY_PATH 9919 shlibpath_overrides_runpath=yes 9920 ;; 9921 9922*nto* | *qnx*) 9923 version_type=qnx 9924 need_lib_prefix=no 9925 need_version=no 9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9927 soname_spec='${libname}${release}${shared_ext}$major' 9928 shlibpath_var=LD_LIBRARY_PATH 9929 shlibpath_overrides_runpath=no 9930 hardcode_into_libs=yes 9931 dynamic_linker='ldqnx.so' 9932 ;; 9933 9934openbsd*) 9935 version_type=sunos 9936 sys_lib_dlsearch_path_spec="/usr/lib" 9937 need_lib_prefix=no 9938 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9939 case $host_os in 9940 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9941 *) need_version=no ;; 9942 esac 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9945 shlibpath_var=LD_LIBRARY_PATH 9946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9947 case $host_os in 9948 openbsd2.[89] | openbsd2.[89].*) 9949 shlibpath_overrides_runpath=no 9950 ;; 9951 *) 9952 shlibpath_overrides_runpath=yes 9953 ;; 9954 esac 9955 else 9956 shlibpath_overrides_runpath=yes 9957 fi 9958 ;; 9959 9960os2*) 9961 libname_spec='$name' 9962 shrext_cmds=".dll" 9963 need_lib_prefix=no 9964 library_names_spec='$libname${shared_ext} $libname.a' 9965 dynamic_linker='OS/2 ld.exe' 9966 shlibpath_var=LIBPATH 9967 ;; 9968 9969osf3* | osf4* | osf5*) 9970 version_type=osf 9971 need_lib_prefix=no 9972 need_version=no 9973 soname_spec='${libname}${release}${shared_ext}$major' 9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9975 shlibpath_var=LD_LIBRARY_PATH 9976 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9977 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9978 ;; 9979 9980rdos*) 9981 dynamic_linker=no 9982 ;; 9983 9984solaris*) 9985 version_type=linux 9986 need_lib_prefix=no 9987 need_version=no 9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9989 soname_spec='${libname}${release}${shared_ext}$major' 9990 shlibpath_var=LD_LIBRARY_PATH 9991 shlibpath_overrides_runpath=yes 9992 hardcode_into_libs=yes 9993 # ldd complains unless libraries are executable 9994 postinstall_cmds='chmod +x $lib' 9995 ;; 9996 9997sunos4*) 9998 version_type=sunos 9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10001 shlibpath_var=LD_LIBRARY_PATH 10002 shlibpath_overrides_runpath=yes 10003 if test "$with_gnu_ld" = yes; then 10004 need_lib_prefix=no 10005 fi 10006 need_version=yes 10007 ;; 10008 10009sysv4 | sysv4.3*) 10010 version_type=linux 10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10012 soname_spec='${libname}${release}${shared_ext}$major' 10013 shlibpath_var=LD_LIBRARY_PATH 10014 case $host_vendor in 10015 sni) 10016 shlibpath_overrides_runpath=no 10017 need_lib_prefix=no 10018 runpath_var=LD_RUN_PATH 10019 ;; 10020 siemens) 10021 need_lib_prefix=no 10022 ;; 10023 motorola) 10024 need_lib_prefix=no 10025 need_version=no 10026 shlibpath_overrides_runpath=no 10027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10028 ;; 10029 esac 10030 ;; 10031 10032sysv4*MP*) 10033 if test -d /usr/nec ;then 10034 version_type=linux 10035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10036 soname_spec='$libname${shared_ext}.$major' 10037 shlibpath_var=LD_LIBRARY_PATH 10038 fi 10039 ;; 10040 10041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10042 version_type=freebsd-elf 10043 need_lib_prefix=no 10044 need_version=no 10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10046 soname_spec='${libname}${release}${shared_ext}$major' 10047 shlibpath_var=LD_LIBRARY_PATH 10048 shlibpath_overrides_runpath=yes 10049 hardcode_into_libs=yes 10050 if test "$with_gnu_ld" = yes; then 10051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10052 else 10053 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10054 case $host_os in 10055 sco3.2v5*) 10056 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10057 ;; 10058 esac 10059 fi 10060 sys_lib_dlsearch_path_spec='/usr/lib' 10061 ;; 10062 10063tpf*) 10064 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10065 version_type=linux 10066 need_lib_prefix=no 10067 need_version=no 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10069 shlibpath_var=LD_LIBRARY_PATH 10070 shlibpath_overrides_runpath=no 10071 hardcode_into_libs=yes 10072 ;; 10073 10074uts4*) 10075 version_type=linux 10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10077 soname_spec='${libname}${release}${shared_ext}$major' 10078 shlibpath_var=LD_LIBRARY_PATH 10079 ;; 10080 10081*) 10082 dynamic_linker=no 10083 ;; 10084esac 10085{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10086$as_echo "$dynamic_linker" >&6; } 10087test "$dynamic_linker" = no && can_build_shared=no 10088 10089variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10090if test "$GCC" = yes; then 10091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10092fi 10093 10094if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10095 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10096fi 10097if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10098 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10099fi 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10188$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10189hardcode_action= 10190if test -n "$hardcode_libdir_flag_spec" || 10191 test -n "$runpath_var" || 10192 test "X$hardcode_automatic" = "Xyes" ; then 10193 10194 # We can hardcode non-existent directories. 10195 if test "$hardcode_direct" != no && 10196 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10197 # have to relink, otherwise we might link with an installed library 10198 # when we should be linking with a yet-to-be-installed one 10199 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10200 test "$hardcode_minus_L" != no; then 10201 # Linking always hardcodes the temporary library directory. 10202 hardcode_action=relink 10203 else 10204 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10205 hardcode_action=immediate 10206 fi 10207else 10208 # We cannot hardcode anything, or else we can only hardcode existing 10209 # directories. 10210 hardcode_action=unsupported 10211fi 10212{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10213$as_echo "$hardcode_action" >&6; } 10214 10215if test "$hardcode_action" = relink || 10216 test "$inherit_rpath" = yes; then 10217 # Fast installation is not supported 10218 enable_fast_install=no 10219elif test "$shlibpath_overrides_runpath" = yes || 10220 test "$enable_shared" = no; then 10221 # Fast installation is not necessary 10222 enable_fast_install=needless 10223fi 10224 10225 10226 10227 10228 10229 10230 if test "x$enable_dlopen" != xyes; then 10231 enable_dlopen=unknown 10232 enable_dlopen_self=unknown 10233 enable_dlopen_self_static=unknown 10234else 10235 lt_cv_dlopen=no 10236 lt_cv_dlopen_libs= 10237 10238 case $host_os in 10239 beos*) 10240 lt_cv_dlopen="load_add_on" 10241 lt_cv_dlopen_libs= 10242 lt_cv_dlopen_self=yes 10243 ;; 10244 10245 mingw* | pw32* | cegcc*) 10246 lt_cv_dlopen="LoadLibrary" 10247 lt_cv_dlopen_libs= 10248 ;; 10249 10250 cygwin*) 10251 lt_cv_dlopen="dlopen" 10252 lt_cv_dlopen_libs= 10253 ;; 10254 10255 darwin*) 10256 # if libdl is installed we need to link against it 10257 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10258$as_echo_n "checking for dlopen in -ldl... " >&6; } 10259if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10260 $as_echo_n "(cached) " >&6 10261else 10262 ac_check_lib_save_LIBS=$LIBS 10263LIBS="-ldl $LIBS" 10264cat >conftest.$ac_ext <<_ACEOF 10265/* confdefs.h. */ 10266_ACEOF 10267cat confdefs.h >>conftest.$ac_ext 10268cat >>conftest.$ac_ext <<_ACEOF 10269/* end confdefs.h. */ 10270 10271/* Override any GCC internal prototype to avoid an error. 10272 Use char because int might match the return type of a GCC 10273 builtin and then its argument prototype would still apply. */ 10274#ifdef __cplusplus 10275extern "C" 10276#endif 10277char dlopen (); 10278int 10279main () 10280{ 10281return dlopen (); 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286rm -f conftest.$ac_objext conftest$ac_exeext 10287if { (ac_try="$ac_link" 10288case "(($ac_try" in 10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10290 *) ac_try_echo=$ac_try;; 10291esac 10292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10293$as_echo "$ac_try_echo") >&5 10294 (eval "$ac_link") 2>conftest.er1 10295 ac_status=$? 10296 grep -v '^ *+' conftest.er1 >conftest.err 10297 rm -f conftest.er1 10298 cat conftest.err >&5 10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); } && { 10301 test -z "$ac_c_werror_flag" || 10302 test ! -s conftest.err 10303 } && test -s conftest$ac_exeext && { 10304 test "$cross_compiling" = yes || 10305 $as_test_x conftest$ac_exeext 10306 }; then 10307 ac_cv_lib_dl_dlopen=yes 10308else 10309 $as_echo "$as_me: failed program was:" >&5 10310sed 's/^/| /' conftest.$ac_ext >&5 10311 10312 ac_cv_lib_dl_dlopen=no 10313fi 10314 10315rm -rf conftest.dSYM 10316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10317 conftest$ac_exeext conftest.$ac_ext 10318LIBS=$ac_check_lib_save_LIBS 10319fi 10320{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10321$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10322if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10324else 10325 10326 lt_cv_dlopen="dyld" 10327 lt_cv_dlopen_libs= 10328 lt_cv_dlopen_self=yes 10329 10330fi 10331 10332 ;; 10333 10334 *) 10335 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10336$as_echo_n "checking for shl_load... " >&6; } 10337if test "${ac_cv_func_shl_load+set}" = set; then 10338 $as_echo_n "(cached) " >&6 10339else 10340 cat >conftest.$ac_ext <<_ACEOF 10341/* confdefs.h. */ 10342_ACEOF 10343cat confdefs.h >>conftest.$ac_ext 10344cat >>conftest.$ac_ext <<_ACEOF 10345/* end confdefs.h. */ 10346/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10347 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10348#define shl_load innocuous_shl_load 10349 10350/* System header to define __stub macros and hopefully few prototypes, 10351 which can conflict with char shl_load (); below. 10352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10353 <limits.h> exists even on freestanding compilers. */ 10354 10355#ifdef __STDC__ 10356# include <limits.h> 10357#else 10358# include <assert.h> 10359#endif 10360 10361#undef shl_load 10362 10363/* Override any GCC internal prototype to avoid an error. 10364 Use char because int might match the return type of a GCC 10365 builtin and then its argument prototype would still apply. */ 10366#ifdef __cplusplus 10367extern "C" 10368#endif 10369char shl_load (); 10370/* The GNU C library defines this for functions which it implements 10371 to always fail with ENOSYS. Some functions are actually named 10372 something starting with __ and the normal name is an alias. */ 10373#if defined __stub_shl_load || defined __stub___shl_load 10374choke me 10375#endif 10376 10377int 10378main () 10379{ 10380return shl_load (); 10381 ; 10382 return 0; 10383} 10384_ACEOF 10385rm -f conftest.$ac_objext conftest$ac_exeext 10386if { (ac_try="$ac_link" 10387case "(($ac_try" in 10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10389 *) ac_try_echo=$ac_try;; 10390esac 10391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10392$as_echo "$ac_try_echo") >&5 10393 (eval "$ac_link") 2>conftest.er1 10394 ac_status=$? 10395 grep -v '^ *+' conftest.er1 >conftest.err 10396 rm -f conftest.er1 10397 cat conftest.err >&5 10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10399 (exit $ac_status); } && { 10400 test -z "$ac_c_werror_flag" || 10401 test ! -s conftest.err 10402 } && test -s conftest$ac_exeext && { 10403 test "$cross_compiling" = yes || 10404 $as_test_x conftest$ac_exeext 10405 }; then 10406 ac_cv_func_shl_load=yes 10407else 10408 $as_echo "$as_me: failed program was:" >&5 10409sed 's/^/| /' conftest.$ac_ext >&5 10410 10411 ac_cv_func_shl_load=no 10412fi 10413 10414rm -rf conftest.dSYM 10415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10416 conftest$ac_exeext conftest.$ac_ext 10417fi 10418{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10419$as_echo "$ac_cv_func_shl_load" >&6; } 10420if test "x$ac_cv_func_shl_load" = x""yes; then 10421 lt_cv_dlopen="shl_load" 10422else 10423 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10424$as_echo_n "checking for shl_load in -ldld... " >&6; } 10425if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10426 $as_echo_n "(cached) " >&6 10427else 10428 ac_check_lib_save_LIBS=$LIBS 10429LIBS="-ldld $LIBS" 10430cat >conftest.$ac_ext <<_ACEOF 10431/* confdefs.h. */ 10432_ACEOF 10433cat confdefs.h >>conftest.$ac_ext 10434cat >>conftest.$ac_ext <<_ACEOF 10435/* end confdefs.h. */ 10436 10437/* Override any GCC internal prototype to avoid an error. 10438 Use char because int might match the return type of a GCC 10439 builtin and then its argument prototype would still apply. */ 10440#ifdef __cplusplus 10441extern "C" 10442#endif 10443char shl_load (); 10444int 10445main () 10446{ 10447return shl_load (); 10448 ; 10449 return 0; 10450} 10451_ACEOF 10452rm -f conftest.$ac_objext conftest$ac_exeext 10453if { (ac_try="$ac_link" 10454case "(($ac_try" in 10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10456 *) ac_try_echo=$ac_try;; 10457esac 10458eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10459$as_echo "$ac_try_echo") >&5 10460 (eval "$ac_link") 2>conftest.er1 10461 ac_status=$? 10462 grep -v '^ *+' conftest.er1 >conftest.err 10463 rm -f conftest.er1 10464 cat conftest.err >&5 10465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 (exit $ac_status); } && { 10467 test -z "$ac_c_werror_flag" || 10468 test ! -s conftest.err 10469 } && test -s conftest$ac_exeext && { 10470 test "$cross_compiling" = yes || 10471 $as_test_x conftest$ac_exeext 10472 }; then 10473 ac_cv_lib_dld_shl_load=yes 10474else 10475 $as_echo "$as_me: failed program was:" >&5 10476sed 's/^/| /' conftest.$ac_ext >&5 10477 10478 ac_cv_lib_dld_shl_load=no 10479fi 10480 10481rm -rf conftest.dSYM 10482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10483 conftest$ac_exeext conftest.$ac_ext 10484LIBS=$ac_check_lib_save_LIBS 10485fi 10486{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10487$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10488if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10489 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10490else 10491 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10492$as_echo_n "checking for dlopen... " >&6; } 10493if test "${ac_cv_func_dlopen+set}" = set; then 10494 $as_echo_n "(cached) " >&6 10495else 10496 cat >conftest.$ac_ext <<_ACEOF 10497/* confdefs.h. */ 10498_ACEOF 10499cat confdefs.h >>conftest.$ac_ext 10500cat >>conftest.$ac_ext <<_ACEOF 10501/* end confdefs.h. */ 10502/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10503 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10504#define dlopen innocuous_dlopen 10505 10506/* System header to define __stub macros and hopefully few prototypes, 10507 which can conflict with char dlopen (); below. 10508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10509 <limits.h> exists even on freestanding compilers. */ 10510 10511#ifdef __STDC__ 10512# include <limits.h> 10513#else 10514# include <assert.h> 10515#endif 10516 10517#undef dlopen 10518 10519/* Override any GCC internal prototype to avoid an error. 10520 Use char because int might match the return type of a GCC 10521 builtin and then its argument prototype would still apply. */ 10522#ifdef __cplusplus 10523extern "C" 10524#endif 10525char dlopen (); 10526/* The GNU C library defines this for functions which it implements 10527 to always fail with ENOSYS. Some functions are actually named 10528 something starting with __ and the normal name is an alias. */ 10529#if defined __stub_dlopen || defined __stub___dlopen 10530choke me 10531#endif 10532 10533int 10534main () 10535{ 10536return dlopen (); 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541rm -f conftest.$ac_objext conftest$ac_exeext 10542if { (ac_try="$ac_link" 10543case "(($ac_try" in 10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10545 *) ac_try_echo=$ac_try;; 10546esac 10547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10548$as_echo "$ac_try_echo") >&5 10549 (eval "$ac_link") 2>conftest.er1 10550 ac_status=$? 10551 grep -v '^ *+' conftest.er1 >conftest.err 10552 rm -f conftest.er1 10553 cat conftest.err >&5 10554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10555 (exit $ac_status); } && { 10556 test -z "$ac_c_werror_flag" || 10557 test ! -s conftest.err 10558 } && test -s conftest$ac_exeext && { 10559 test "$cross_compiling" = yes || 10560 $as_test_x conftest$ac_exeext 10561 }; then 10562 ac_cv_func_dlopen=yes 10563else 10564 $as_echo "$as_me: failed program was:" >&5 10565sed 's/^/| /' conftest.$ac_ext >&5 10566 10567 ac_cv_func_dlopen=no 10568fi 10569 10570rm -rf conftest.dSYM 10571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10572 conftest$ac_exeext conftest.$ac_ext 10573fi 10574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10575$as_echo "$ac_cv_func_dlopen" >&6; } 10576if test "x$ac_cv_func_dlopen" = x""yes; then 10577 lt_cv_dlopen="dlopen" 10578else 10579 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10580$as_echo_n "checking for dlopen in -ldl... " >&6; } 10581if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10582 $as_echo_n "(cached) " >&6 10583else 10584 ac_check_lib_save_LIBS=$LIBS 10585LIBS="-ldl $LIBS" 10586cat >conftest.$ac_ext <<_ACEOF 10587/* confdefs.h. */ 10588_ACEOF 10589cat confdefs.h >>conftest.$ac_ext 10590cat >>conftest.$ac_ext <<_ACEOF 10591/* end confdefs.h. */ 10592 10593/* Override any GCC internal prototype to avoid an error. 10594 Use char because int might match the return type of a GCC 10595 builtin and then its argument prototype would still apply. */ 10596#ifdef __cplusplus 10597extern "C" 10598#endif 10599char dlopen (); 10600int 10601main () 10602{ 10603return dlopen (); 10604 ; 10605 return 0; 10606} 10607_ACEOF 10608rm -f conftest.$ac_objext conftest$ac_exeext 10609if { (ac_try="$ac_link" 10610case "(($ac_try" in 10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10612 *) ac_try_echo=$ac_try;; 10613esac 10614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10615$as_echo "$ac_try_echo") >&5 10616 (eval "$ac_link") 2>conftest.er1 10617 ac_status=$? 10618 grep -v '^ *+' conftest.er1 >conftest.err 10619 rm -f conftest.er1 10620 cat conftest.err >&5 10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10622 (exit $ac_status); } && { 10623 test -z "$ac_c_werror_flag" || 10624 test ! -s conftest.err 10625 } && test -s conftest$ac_exeext && { 10626 test "$cross_compiling" = yes || 10627 $as_test_x conftest$ac_exeext 10628 }; then 10629 ac_cv_lib_dl_dlopen=yes 10630else 10631 $as_echo "$as_me: failed program was:" >&5 10632sed 's/^/| /' conftest.$ac_ext >&5 10633 10634 ac_cv_lib_dl_dlopen=no 10635fi 10636 10637rm -rf conftest.dSYM 10638rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10639 conftest$ac_exeext conftest.$ac_ext 10640LIBS=$ac_check_lib_save_LIBS 10641fi 10642{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10643$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10644if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10646else 10647 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10648$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10649if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10650 $as_echo_n "(cached) " >&6 10651else 10652 ac_check_lib_save_LIBS=$LIBS 10653LIBS="-lsvld $LIBS" 10654cat >conftest.$ac_ext <<_ACEOF 10655/* confdefs.h. */ 10656_ACEOF 10657cat confdefs.h >>conftest.$ac_ext 10658cat >>conftest.$ac_ext <<_ACEOF 10659/* end confdefs.h. */ 10660 10661/* Override any GCC internal prototype to avoid an error. 10662 Use char because int might match the return type of a GCC 10663 builtin and then its argument prototype would still apply. */ 10664#ifdef __cplusplus 10665extern "C" 10666#endif 10667char dlopen (); 10668int 10669main () 10670{ 10671return dlopen (); 10672 ; 10673 return 0; 10674} 10675_ACEOF 10676rm -f conftest.$ac_objext conftest$ac_exeext 10677if { (ac_try="$ac_link" 10678case "(($ac_try" in 10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10680 *) ac_try_echo=$ac_try;; 10681esac 10682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10683$as_echo "$ac_try_echo") >&5 10684 (eval "$ac_link") 2>conftest.er1 10685 ac_status=$? 10686 grep -v '^ *+' conftest.er1 >conftest.err 10687 rm -f conftest.er1 10688 cat conftest.err >&5 10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10690 (exit $ac_status); } && { 10691 test -z "$ac_c_werror_flag" || 10692 test ! -s conftest.err 10693 } && test -s conftest$ac_exeext && { 10694 test "$cross_compiling" = yes || 10695 $as_test_x conftest$ac_exeext 10696 }; then 10697 ac_cv_lib_svld_dlopen=yes 10698else 10699 $as_echo "$as_me: failed program was:" >&5 10700sed 's/^/| /' conftest.$ac_ext >&5 10701 10702 ac_cv_lib_svld_dlopen=no 10703fi 10704 10705rm -rf conftest.dSYM 10706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10707 conftest$ac_exeext conftest.$ac_ext 10708LIBS=$ac_check_lib_save_LIBS 10709fi 10710{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10711$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10712if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10713 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10714else 10715 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10716$as_echo_n "checking for dld_link in -ldld... " >&6; } 10717if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10718 $as_echo_n "(cached) " >&6 10719else 10720 ac_check_lib_save_LIBS=$LIBS 10721LIBS="-ldld $LIBS" 10722cat >conftest.$ac_ext <<_ACEOF 10723/* confdefs.h. */ 10724_ACEOF 10725cat confdefs.h >>conftest.$ac_ext 10726cat >>conftest.$ac_ext <<_ACEOF 10727/* end confdefs.h. */ 10728 10729/* Override any GCC internal prototype to avoid an error. 10730 Use char because int might match the return type of a GCC 10731 builtin and then its argument prototype would still apply. */ 10732#ifdef __cplusplus 10733extern "C" 10734#endif 10735char dld_link (); 10736int 10737main () 10738{ 10739return dld_link (); 10740 ; 10741 return 0; 10742} 10743_ACEOF 10744rm -f conftest.$ac_objext conftest$ac_exeext 10745if { (ac_try="$ac_link" 10746case "(($ac_try" in 10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10748 *) ac_try_echo=$ac_try;; 10749esac 10750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10751$as_echo "$ac_try_echo") >&5 10752 (eval "$ac_link") 2>conftest.er1 10753 ac_status=$? 10754 grep -v '^ *+' conftest.er1 >conftest.err 10755 rm -f conftest.er1 10756 cat conftest.err >&5 10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10758 (exit $ac_status); } && { 10759 test -z "$ac_c_werror_flag" || 10760 test ! -s conftest.err 10761 } && test -s conftest$ac_exeext && { 10762 test "$cross_compiling" = yes || 10763 $as_test_x conftest$ac_exeext 10764 }; then 10765 ac_cv_lib_dld_dld_link=yes 10766else 10767 $as_echo "$as_me: failed program was:" >&5 10768sed 's/^/| /' conftest.$ac_ext >&5 10769 10770 ac_cv_lib_dld_dld_link=no 10771fi 10772 10773rm -rf conftest.dSYM 10774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10775 conftest$ac_exeext conftest.$ac_ext 10776LIBS=$ac_check_lib_save_LIBS 10777fi 10778{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10779$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10780if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10781 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10782fi 10783 10784 10785fi 10786 10787 10788fi 10789 10790 10791fi 10792 10793 10794fi 10795 10796 10797fi 10798 10799 ;; 10800 esac 10801 10802 if test "x$lt_cv_dlopen" != xno; then 10803 enable_dlopen=yes 10804 else 10805 enable_dlopen=no 10806 fi 10807 10808 case $lt_cv_dlopen in 10809 dlopen) 10810 save_CPPFLAGS="$CPPFLAGS" 10811 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10812 10813 save_LDFLAGS="$LDFLAGS" 10814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10815 10816 save_LIBS="$LIBS" 10817 LIBS="$lt_cv_dlopen_libs $LIBS" 10818 10819 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10820$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10821if test "${lt_cv_dlopen_self+set}" = set; then 10822 $as_echo_n "(cached) " >&6 10823else 10824 if test "$cross_compiling" = yes; then : 10825 lt_cv_dlopen_self=cross 10826else 10827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10828 lt_status=$lt_dlunknown 10829 cat > conftest.$ac_ext <<_LT_EOF 10830#line 10830 "configure" 10831#include "confdefs.h" 10832 10833#if HAVE_DLFCN_H 10834#include <dlfcn.h> 10835#endif 10836 10837#include <stdio.h> 10838 10839#ifdef RTLD_GLOBAL 10840# define LT_DLGLOBAL RTLD_GLOBAL 10841#else 10842# ifdef DL_GLOBAL 10843# define LT_DLGLOBAL DL_GLOBAL 10844# else 10845# define LT_DLGLOBAL 0 10846# endif 10847#endif 10848 10849/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10850 find out it does not work in some platform. */ 10851#ifndef LT_DLLAZY_OR_NOW 10852# ifdef RTLD_LAZY 10853# define LT_DLLAZY_OR_NOW RTLD_LAZY 10854# else 10855# ifdef DL_LAZY 10856# define LT_DLLAZY_OR_NOW DL_LAZY 10857# else 10858# ifdef RTLD_NOW 10859# define LT_DLLAZY_OR_NOW RTLD_NOW 10860# else 10861# ifdef DL_NOW 10862# define LT_DLLAZY_OR_NOW DL_NOW 10863# else 10864# define LT_DLLAZY_OR_NOW 0 10865# endif 10866# endif 10867# endif 10868# endif 10869#endif 10870 10871void fnord() { int i=42;} 10872int main () 10873{ 10874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10875 int status = $lt_dlunknown; 10876 10877 if (self) 10878 { 10879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10881 /* dlclose (self); */ 10882 } 10883 else 10884 puts (dlerror ()); 10885 10886 return status; 10887} 10888_LT_EOF 10889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10890 (eval $ac_link) 2>&5 10891 ac_status=$? 10892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10893 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10894 (./conftest; exit; ) >&5 2>/dev/null 10895 lt_status=$? 10896 case x$lt_status in 10897 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10898 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10899 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10900 esac 10901 else : 10902 # compilation failed 10903 lt_cv_dlopen_self=no 10904 fi 10905fi 10906rm -fr conftest* 10907 10908 10909fi 10910{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10911$as_echo "$lt_cv_dlopen_self" >&6; } 10912 10913 if test "x$lt_cv_dlopen_self" = xyes; then 10914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10915 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10916$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10917if test "${lt_cv_dlopen_self_static+set}" = set; then 10918 $as_echo_n "(cached) " >&6 10919else 10920 if test "$cross_compiling" = yes; then : 10921 lt_cv_dlopen_self_static=cross 10922else 10923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10924 lt_status=$lt_dlunknown 10925 cat > conftest.$ac_ext <<_LT_EOF 10926#line 10926 "configure" 10927#include "confdefs.h" 10928 10929#if HAVE_DLFCN_H 10930#include <dlfcn.h> 10931#endif 10932 10933#include <stdio.h> 10934 10935#ifdef RTLD_GLOBAL 10936# define LT_DLGLOBAL RTLD_GLOBAL 10937#else 10938# ifdef DL_GLOBAL 10939# define LT_DLGLOBAL DL_GLOBAL 10940# else 10941# define LT_DLGLOBAL 0 10942# endif 10943#endif 10944 10945/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10946 find out it does not work in some platform. */ 10947#ifndef LT_DLLAZY_OR_NOW 10948# ifdef RTLD_LAZY 10949# define LT_DLLAZY_OR_NOW RTLD_LAZY 10950# else 10951# ifdef DL_LAZY 10952# define LT_DLLAZY_OR_NOW DL_LAZY 10953# else 10954# ifdef RTLD_NOW 10955# define LT_DLLAZY_OR_NOW RTLD_NOW 10956# else 10957# ifdef DL_NOW 10958# define LT_DLLAZY_OR_NOW DL_NOW 10959# else 10960# define LT_DLLAZY_OR_NOW 0 10961# endif 10962# endif 10963# endif 10964# endif 10965#endif 10966 10967void fnord() { int i=42;} 10968int main () 10969{ 10970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10971 int status = $lt_dlunknown; 10972 10973 if (self) 10974 { 10975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10976 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10977 /* dlclose (self); */ 10978 } 10979 else 10980 puts (dlerror ()); 10981 10982 return status; 10983} 10984_LT_EOF 10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10986 (eval $ac_link) 2>&5 10987 ac_status=$? 10988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10989 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10990 (./conftest; exit; ) >&5 2>/dev/null 10991 lt_status=$? 10992 case x$lt_status in 10993 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10994 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10995 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10996 esac 10997 else : 10998 # compilation failed 10999 lt_cv_dlopen_self_static=no 11000 fi 11001fi 11002rm -fr conftest* 11003 11004 11005fi 11006{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11007$as_echo "$lt_cv_dlopen_self_static" >&6; } 11008 fi 11009 11010 CPPFLAGS="$save_CPPFLAGS" 11011 LDFLAGS="$save_LDFLAGS" 11012 LIBS="$save_LIBS" 11013 ;; 11014 esac 11015 11016 case $lt_cv_dlopen_self in 11017 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11018 *) enable_dlopen_self=unknown ;; 11019 esac 11020 11021 case $lt_cv_dlopen_self_static in 11022 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11023 *) enable_dlopen_self_static=unknown ;; 11024 esac 11025fi 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043striplib= 11044old_striplib= 11045{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11046$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11047if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11048 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11049 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11050 { $as_echo "$as_me:$LINENO: result: yes" >&5 11051$as_echo "yes" >&6; } 11052else 11053# FIXME - insert some real tests, host_os isn't really good enough 11054 case $host_os in 11055 darwin*) 11056 if test -n "$STRIP" ; then 11057 striplib="$STRIP -x" 11058 old_striplib="$STRIP -S" 11059 { $as_echo "$as_me:$LINENO: result: yes" >&5 11060$as_echo "yes" >&6; } 11061 else 11062 { $as_echo "$as_me:$LINENO: result: no" >&5 11063$as_echo "no" >&6; } 11064 fi 11065 ;; 11066 *) 11067 { $as_echo "$as_me:$LINENO: result: no" >&5 11068$as_echo "no" >&6; } 11069 ;; 11070 esac 11071fi 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 # Report which library types will actually be built 11085 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11086$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11087 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11088$as_echo "$can_build_shared" >&6; } 11089 11090 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11091$as_echo_n "checking whether to build shared libraries... " >&6; } 11092 test "$can_build_shared" = "no" && enable_shared=no 11093 11094 # On AIX, shared libraries and static libraries use the same namespace, and 11095 # are all built from PIC. 11096 case $host_os in 11097 aix3*) 11098 test "$enable_shared" = yes && enable_static=no 11099 if test -n "$RANLIB"; then 11100 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11101 postinstall_cmds='$RANLIB $lib' 11102 fi 11103 ;; 11104 11105 aix[4-9]*) 11106 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11107 test "$enable_shared" = yes && enable_static=no 11108 fi 11109 ;; 11110 esac 11111 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11112$as_echo "$enable_shared" >&6; } 11113 11114 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11115$as_echo_n "checking whether to build static libraries... " >&6; } 11116 # Make sure either enable_shared or enable_static is yes. 11117 test "$enable_shared" = yes || enable_static=yes 11118 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11119$as_echo "$enable_static" >&6; } 11120 11121 11122 11123 11124fi 11125ac_ext=c 11126ac_cpp='$CPP $CPPFLAGS' 11127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11129ac_compiler_gnu=$ac_cv_c_compiler_gnu 11130 11131CC="$lt_save_CC" 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 ac_config_commands="$ac_config_commands libtool" 11146 11147 11148 11149 11150# Only expand once: 11151 11152 11153 11154 11155if test "x$GCC" = xyes ; then 11156 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 11157-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 11158-Wbad-function-cast" 11159 case `$CC -dumpversion` in 11160 3.4.* | 4.*) 11161 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 11162 ;; 11163 esac 11164else 11165 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 11166$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 11167if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 11168 $as_echo_n "(cached) " >&6 11169else 11170 cat >conftest.$ac_ext <<_ACEOF 11171/* confdefs.h. */ 11172_ACEOF 11173cat confdefs.h >>conftest.$ac_ext 11174cat >>conftest.$ac_ext <<_ACEOF 11175/* end confdefs.h. */ 11176$ac_includes_default 11177int 11178main () 11179{ 11180#ifndef __SUNPRO_C 11181 (void) __SUNPRO_C; 11182#endif 11183 11184 ; 11185 return 0; 11186} 11187_ACEOF 11188rm -f conftest.$ac_objext 11189if { (ac_try="$ac_compile" 11190case "(($ac_try" in 11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11192 *) ac_try_echo=$ac_try;; 11193esac 11194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11195$as_echo "$ac_try_echo") >&5 11196 (eval "$ac_compile") 2>conftest.er1 11197 ac_status=$? 11198 grep -v '^ *+' conftest.er1 >conftest.err 11199 rm -f conftest.er1 11200 cat conftest.err >&5 11201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11202 (exit $ac_status); } && { 11203 test -z "$ac_c_werror_flag" || 11204 test ! -s conftest.err 11205 } && test -s conftest.$ac_objext; then 11206 ac_cv_have_decl___SUNPRO_C=yes 11207else 11208 $as_echo "$as_me: failed program was:" >&5 11209sed 's/^/| /' conftest.$ac_ext >&5 11210 11211 ac_cv_have_decl___SUNPRO_C=no 11212fi 11213 11214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11215fi 11216{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 11217$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 11218if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 11219 SUNCC="yes" 11220else 11221 SUNCC="no" 11222fi 11223 11224 if test "x$SUNCC" = "xyes"; then 11225 CWARNFLAGS="-v" 11226 fi 11227fi 11228 11229# Check whether --enable-silent-rules was given. 11230if test "${enable_silent_rules+set}" = set; then 11231 enableval=$enable_silent_rules; 11232fi 11233 11234case $enable_silent_rules in 11235yes) AM_DEFAULT_VERBOSITY=0;; 11236no) AM_DEFAULT_VERBOSITY=1;; 11237*) AM_DEFAULT_VERBOSITY=0;; 11238esac 11239AM_BACKSLASH='\' 11240 11241 11242 11243# Check for dependencies 11244 11245 11246if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11247 if test -n "$ac_tool_prefix"; then 11248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11249set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11251$as_echo_n "checking for $ac_word... " >&6; } 11252if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 11253 $as_echo_n "(cached) " >&6 11254else 11255 case $PKG_CONFIG in 11256 [\\/]* | ?:[\\/]*) 11257 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11258 ;; 11259 *) 11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11261for as_dir in $PATH 11262do 11263 IFS=$as_save_IFS 11264 test -z "$as_dir" && as_dir=. 11265 for ac_exec_ext in '' $ac_executable_extensions; do 11266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11267 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11269 break 2 11270 fi 11271done 11272done 11273IFS=$as_save_IFS 11274 11275 ;; 11276esac 11277fi 11278PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11279if test -n "$PKG_CONFIG"; then 11280 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 11281$as_echo "$PKG_CONFIG" >&6; } 11282else 11283 { $as_echo "$as_me:$LINENO: result: no" >&5 11284$as_echo "no" >&6; } 11285fi 11286 11287 11288fi 11289if test -z "$ac_cv_path_PKG_CONFIG"; then 11290 ac_pt_PKG_CONFIG=$PKG_CONFIG 11291 # Extract the first word of "pkg-config", so it can be a program name with args. 11292set dummy pkg-config; ac_word=$2 11293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 11294$as_echo_n "checking for $ac_word... " >&6; } 11295if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 11296 $as_echo_n "(cached) " >&6 11297else 11298 case $ac_pt_PKG_CONFIG in 11299 [\\/]* | ?:[\\/]*) 11300 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11301 ;; 11302 *) 11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11304for as_dir in $PATH 11305do 11306 IFS=$as_save_IFS 11307 test -z "$as_dir" && as_dir=. 11308 for ac_exec_ext in '' $ac_executable_extensions; do 11309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11310 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11312 break 2 11313 fi 11314done 11315done 11316IFS=$as_save_IFS 11317 11318 ;; 11319esac 11320fi 11321ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11322if test -n "$ac_pt_PKG_CONFIG"; then 11323 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 11324$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11325else 11326 { $as_echo "$as_me:$LINENO: result: no" >&5 11327$as_echo "no" >&6; } 11328fi 11329 11330 if test "x$ac_pt_PKG_CONFIG" = x; then 11331 PKG_CONFIG="" 11332 else 11333 case $cross_compiling:$ac_tool_warned in 11334yes:) 11335{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 11336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11337ac_tool_warned=yes ;; 11338esac 11339 PKG_CONFIG=$ac_pt_PKG_CONFIG 11340 fi 11341else 11342 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11343fi 11344 11345fi 11346if test -n "$PKG_CONFIG"; then 11347 _pkg_min_version=0.9.0 11348 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 11349$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11350 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11351 { $as_echo "$as_me:$LINENO: result: yes" >&5 11352$as_echo "yes" >&6; } 11353 else 11354 { $as_echo "$as_me:$LINENO: result: no" >&5 11355$as_echo "no" >&6; } 11356 PKG_CONFIG="" 11357 fi 11358 11359fi 11360 11361pkg_failed=no 11362{ $as_echo "$as_me:$LINENO: checking for XSCRNSAVER" >&5 11363$as_echo_n "checking for XSCRNSAVER... " >&6; } 11364 11365if test -n "$XSCRNSAVER_CFLAGS"; then 11366 pkg_cv_XSCRNSAVER_CFLAGS="$XSCRNSAVER_CFLAGS" 11367 elif test -n "$PKG_CONFIG"; then 11368 if test -n "$PKG_CONFIG" && \ 11369 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\"") >&5 11370 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 11371 ac_status=$? 11372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11373 (exit $ac_status); }; then 11374 pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 11375else 11376 pkg_failed=yes 11377fi 11378 else 11379 pkg_failed=untried 11380fi 11381if test -n "$XSCRNSAVER_LIBS"; then 11382 pkg_cv_XSCRNSAVER_LIBS="$XSCRNSAVER_LIBS" 11383 elif test -n "$PKG_CONFIG"; then 11384 if test -n "$PKG_CONFIG" && \ 11385 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.2\"") >&5 11386 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.2") 2>&5 11387 ac_status=$? 11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11389 (exit $ac_status); }; then 11390 pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.2" 2>/dev/null` 11391else 11392 pkg_failed=yes 11393fi 11394 else 11395 pkg_failed=untried 11396fi 11397 11398 11399 11400if test $pkg_failed = yes; then 11401 11402if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11403 _pkg_short_errors_supported=yes 11404else 11405 _pkg_short_errors_supported=no 11406fi 11407 if test $_pkg_short_errors_supported = yes; then 11408 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 11409 else 11410 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto scrnsaverproto >= 1.2" 2>&1` 11411 fi 11412 # Put the nasty error message in config.log where it belongs 11413 echo "$XSCRNSAVER_PKG_ERRORS" >&5 11414 11415 { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met: 11416 11417$XSCRNSAVER_PKG_ERRORS 11418 11419Consider adjusting the PKG_CONFIG_PATH environment variable if you 11420installed software in a non-standard prefix. 11421 11422Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 11423and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 11424See the pkg-config man page for more details. 11425" >&5 11426$as_echo "$as_me: error: Package requirements (x11 xext xextproto scrnsaverproto >= 1.2) were not met: 11427 11428$XSCRNSAVER_PKG_ERRORS 11429 11430Consider adjusting the PKG_CONFIG_PATH environment variable if you 11431installed software in a non-standard prefix. 11432 11433Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 11434and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 11435See the pkg-config man page for more details. 11436" >&2;} 11437 { (exit 1); exit 1; }; } 11438elif test $pkg_failed = untried; then 11439 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11441{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 11442is in your PATH or set the PKG_CONFIG environment variable to the full 11443path to pkg-config. 11444 11445Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 11446and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 11447See the pkg-config man page for more details. 11448 11449To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11450See \`config.log' for more details." >&5 11451$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 11452is in your PATH or set the PKG_CONFIG environment variable to the full 11453path to pkg-config. 11454 11455Alternatively, you may set the environment variables XSCRNSAVER_CFLAGS 11456and XSCRNSAVER_LIBS to avoid the need to call pkg-config. 11457See the pkg-config man page for more details. 11458 11459To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11460See \`config.log' for more details." >&2;} 11461 { (exit 1); exit 1; }; }; } 11462else 11463 XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS 11464 XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS 11465 { $as_echo "$as_me:$LINENO: result: yes" >&5 11466$as_echo "yes" >&6; } 11467 : 11468fi 11469XSCRNSAVER_CFLAGS="$CWARNFLAGS $XSCRNSAVER_CFLAGS" 11470 11471 11472 11473 11474 11475# Allow checking code with lint, sparse, etc. 11476 11477# Check whether --with-lint was given. 11478if test "${with_lint+set}" = set; then 11479 withval=$with_lint; use_lint=$withval 11480else 11481 use_lint=no 11482fi 11483 11484if test "x$use_lint" = "xyes" ; then 11485 LINT="lint" 11486else 11487 LINT="$use_lint" 11488fi 11489if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 11490 case $LINT in 11491 lint|*/lint) 11492 case $host_os in 11493 solaris*) 11494 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11495 ;; 11496 esac 11497 ;; 11498 esac 11499fi 11500 11501 11502 11503 if test x$LINT != xno; then 11504 LINT_TRUE= 11505 LINT_FALSE='#' 11506else 11507 LINT_TRUE='#' 11508 LINT_FALSE= 11509fi 11510 11511 11512 11513 11514 11515# Build lint "library" for more indepth checks of programs calling this library 11516# Check whether --enable-lint-library was given. 11517if test "${enable_lint_library+set}" = set; then 11518 enableval=$enable_lint_library; make_lint_lib=$enableval 11519else 11520 make_lint_lib=no 11521fi 11522 11523if test "x$make_lint_lib" != "xno" ; then 11524 if test "x$LINT" = "xno" ; then 11525 { { $as_echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5 11526$as_echo "$as_me: error: Cannot make lint library without --with-lint" >&2;} 11527 { (exit 1); exit 1; }; } 11528 fi 11529 if test "x$make_lint_lib" = "xyes" ; then 11530 LINTLIB=llib-lXss.ln 11531 else 11532 LINTLIB=$make_lint_lib 11533 fi 11534fi 11535 11536 if test x$make_lint_lib != xno; then 11537 MAKE_LINT_LIB_TRUE= 11538 MAKE_LINT_LIB_FALSE='#' 11539else 11540 MAKE_LINT_LIB_TRUE='#' 11541 MAKE_LINT_LIB_FALSE= 11542fi 11543 11544 11545 11546 11547 11548# Check whether --enable-malloc0returnsnull was given. 11549if test "${enable_malloc0returnsnull+set}" = set; then 11550 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 11551else 11552 MALLOC_ZERO_RETURNS_NULL=auto 11553fi 11554 11555 11556{ $as_echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 11557$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 11558if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 11559 if test "$cross_compiling" = yes; then 11560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 11561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11562{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling 11563See \`config.log' for more details." >&5 11564$as_echo "$as_me: error: cannot run test program while cross compiling 11565See \`config.log' for more details." >&2;} 11566 { (exit 1); exit 1; }; }; } 11567else 11568 cat >conftest.$ac_ext <<_ACEOF 11569 11570char *malloc(); 11571char *realloc(); 11572char *calloc(); 11573main() { 11574 char *m0, *r0, *c0, *p; 11575 m0 = malloc(0); 11576 p = malloc(10); 11577 r0 = realloc(p,0); 11578 c0 = calloc(0); 11579 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 11580} 11581_ACEOF 11582rm -f conftest$ac_exeext 11583if { (ac_try="$ac_link" 11584case "(($ac_try" in 11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11586 *) ac_try_echo=$ac_try;; 11587esac 11588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11589$as_echo "$ac_try_echo") >&5 11590 (eval "$ac_link") 2>&5 11591 ac_status=$? 11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11594 { (case "(($ac_try" in 11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11596 *) ac_try_echo=$ac_try;; 11597esac 11598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11599$as_echo "$ac_try_echo") >&5 11600 (eval "$ac_try") 2>&5 11601 ac_status=$? 11602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11603 (exit $ac_status); }; }; then 11604 MALLOC_ZERO_RETURNS_NULL=yes 11605else 11606 $as_echo "$as_me: program exited with status $ac_status" >&5 11607$as_echo "$as_me: failed program was:" >&5 11608sed 's/^/| /' conftest.$ac_ext >&5 11609 11610( exit $ac_status ) 11611MALLOC_ZERO_RETURNS_NULL=no 11612fi 11613rm -rf conftest.dSYM 11614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11615fi 11616 11617 11618fi 11619{ $as_echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 11620$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 11621 11622if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 11623 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 11624 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 11625 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 11626else 11627 MALLOC_ZERO_CFLAGS="" 11628 XMALLOC_ZERO_CFLAGS="" 11629 XTMALLOC_ZERO_CFLAGS="" 11630fi 11631 11632 11633 11634 11635 11636 11637 11638 11639if test x$APP_MAN_SUFFIX = x ; then 11640 APP_MAN_SUFFIX=1 11641fi 11642if test x$APP_MAN_DIR = x ; then 11643 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11644fi 11645 11646if test x$LIB_MAN_SUFFIX = x ; then 11647 LIB_MAN_SUFFIX=3 11648fi 11649if test x$LIB_MAN_DIR = x ; then 11650 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11651fi 11652 11653if test x$FILE_MAN_SUFFIX = x ; then 11654 case $host_os in 11655 solaris*) FILE_MAN_SUFFIX=4 ;; 11656 *) FILE_MAN_SUFFIX=5 ;; 11657 esac 11658fi 11659if test x$FILE_MAN_DIR = x ; then 11660 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11661fi 11662 11663if test x$MISC_MAN_SUFFIX = x ; then 11664 case $host_os in 11665 solaris*) MISC_MAN_SUFFIX=5 ;; 11666 *) MISC_MAN_SUFFIX=7 ;; 11667 esac 11668fi 11669if test x$MISC_MAN_DIR = x ; then 11670 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11671fi 11672 11673if test x$DRIVER_MAN_SUFFIX = x ; then 11674 case $host_os in 11675 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11676 *) DRIVER_MAN_SUFFIX=4 ;; 11677 esac 11678fi 11679if test x$DRIVER_MAN_DIR = x ; then 11680 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11681fi 11682 11683if test x$ADMIN_MAN_SUFFIX = x ; then 11684 case $host_os in 11685 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11686 *) ADMIN_MAN_SUFFIX=8 ;; 11687 esac 11688fi 11689if test x$ADMIN_MAN_DIR = x ; then 11690 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11691fi 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709# Check whether --with-release-version was given. 11710if test "${with_release_version+set}" = set; then 11711 withval=$with_release_version; RELEASE_VERSION="$withval" 11712else 11713 RELEASE_VERSION="" 11714fi 11715 11716 if test "x$RELEASE_VERSION" != "x"; then 11717 PACKAGE="$PACKAGE-$RELEASE_VERSION" 11718 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 11719 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 11720$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 11721 fi 11722 11723cat >>confdefs.h <<_ACEOF 11724#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11725_ACEOF 11726 11727 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11728 if test "x$PVM" = "x"; then 11729 PVM="0" 11730 fi 11731 11732cat >>confdefs.h <<_ACEOF 11733#define PACKAGE_VERSION_MINOR $PVM 11734_ACEOF 11735 11736 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11737 if test "x$PVP" = "x"; then 11738 PVP="0" 11739 fi 11740 11741cat >>confdefs.h <<_ACEOF 11742#define PACKAGE_VERSION_PATCHLEVEL $PVP 11743_ACEOF 11744 11745 11746 11747CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 11748mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 11749echo 'git directory not found: installing possibly empty changelog.' >&2)" 11750 11751distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 11752 11753 11754 11755ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc" 11756 11757cat >confcache <<\_ACEOF 11758# This file is a shell script that caches the results of configure 11759# tests run on this system so they can be shared between configure 11760# scripts and configure runs, see configure's option --config-cache. 11761# It is not useful on other systems. If it contains results you don't 11762# want to keep, you may remove or edit it. 11763# 11764# config.status only pays attention to the cache file if you give it 11765# the --recheck option to rerun configure. 11766# 11767# `ac_cv_env_foo' variables (set or unset) will be overridden when 11768# loading this file, other *unset* `ac_cv_foo' will be assigned the 11769# following values. 11770 11771_ACEOF 11772 11773# The following way of writing the cache mishandles newlines in values, 11774# but we know of no workaround that is simple, portable, and efficient. 11775# So, we kill variables containing newlines. 11776# Ultrix sh set writes to stderr and can't be redirected directly, 11777# and sets the high bit in the cache file unless we assign to the vars. 11778( 11779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11780 eval ac_val=\$$ac_var 11781 case $ac_val in #( 11782 *${as_nl}*) 11783 case $ac_var in #( 11784 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 11785$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11786 esac 11787 case $ac_var in #( 11788 _ | IFS | as_nl) ;; #( 11789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11790 *) $as_unset $ac_var ;; 11791 esac ;; 11792 esac 11793 done 11794 11795 (set) 2>&1 | 11796 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11797 *${as_nl}ac_space=\ *) 11798 # `set' does not quote correctly, so add quotes (double-quote 11799 # substitution turns \\\\ into \\, and sed turns \\ into \). 11800 sed -n \ 11801 "s/'/'\\\\''/g; 11802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11803 ;; #( 11804 *) 11805 # `set' quotes correctly as required by POSIX, so do not add quotes. 11806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11807 ;; 11808 esac | 11809 sort 11810) | 11811 sed ' 11812 /^ac_cv_env_/b end 11813 t clear 11814 :clear 11815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11816 t end 11817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11818 :end' >>confcache 11819if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11820 if test -w "$cache_file"; then 11821 test "x$cache_file" != "x/dev/null" && 11822 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 11823$as_echo "$as_me: updating cache $cache_file" >&6;} 11824 cat confcache >$cache_file 11825 else 11826 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 11827$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11828 fi 11829fi 11830rm -f confcache 11831 11832test "x$prefix" = xNONE && prefix=$ac_default_prefix 11833# Let make expand exec_prefix. 11834test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11835 11836DEFS=-DHAVE_CONFIG_H 11837 11838ac_libobjs= 11839ac_ltlibobjs= 11840for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11841 # 1. Remove the extension, and $U if already installed. 11842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11843 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11845 # will be set to the directory where LIBOBJS objects are built. 11846 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11847 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 11848done 11849LIBOBJS=$ac_libobjs 11850 11851LTLIBOBJS=$ac_ltlibobjs 11852 11853 11854 if test -n "$EXEEXT"; then 11855 am__EXEEXT_TRUE= 11856 am__EXEEXT_FALSE='#' 11857else 11858 am__EXEEXT_TRUE='#' 11859 am__EXEEXT_FALSE= 11860fi 11861 11862if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11863 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 11864Usually this means the macro was only invoked conditionally." >&5 11865$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 11866Usually this means the macro was only invoked conditionally." >&2;} 11867 { (exit 1); exit 1; }; } 11868fi 11869if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11870 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 11871Usually this means the macro was only invoked conditionally." >&5 11872$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 11873Usually this means the macro was only invoked conditionally." >&2;} 11874 { (exit 1); exit 1; }; } 11875fi 11876if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11877 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 11878Usually this means the macro was only invoked conditionally." >&5 11879$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 11880Usually this means the macro was only invoked conditionally." >&2;} 11881 { (exit 1); exit 1; }; } 11882fi 11883if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11884 { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 11885Usually this means the macro was only invoked conditionally." >&5 11886$as_echo "$as_me: error: conditional \"LINT\" was never defined. 11887Usually this means the macro was only invoked conditionally." >&2;} 11888 { (exit 1); exit 1; }; } 11889fi 11890if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 11891 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined. 11892Usually this means the macro was only invoked conditionally." >&5 11893$as_echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined. 11894Usually this means the macro was only invoked conditionally." >&2;} 11895 { (exit 1); exit 1; }; } 11896fi 11897 11898: ${CONFIG_STATUS=./config.status} 11899ac_write_fail=0 11900ac_clean_files_save=$ac_clean_files 11901ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11902{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11903$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11904cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11905#! $SHELL 11906# Generated by $as_me. 11907# Run this file to recreate the current configuration. 11908# Compiler output produced by configure, useful for debugging 11909# configure, is in config.log if it exists. 11910 11911debug=false 11912ac_cs_recheck=false 11913ac_cs_silent=false 11914SHELL=\${CONFIG_SHELL-$SHELL} 11915_ACEOF 11916 11917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11918## --------------------- ## 11919## M4sh Initialization. ## 11920## --------------------- ## 11921 11922# Be more Bourne compatible 11923DUALCASE=1; export DUALCASE # for MKS sh 11924if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11925 emulate sh 11926 NULLCMD=: 11927 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11928 # is contrary to our usage. Disable this feature. 11929 alias -g '${1+"$@"}'='"$@"' 11930 setopt NO_GLOB_SUBST 11931else 11932 case `(set -o) 2>/dev/null` in 11933 *posix*) set -o posix ;; 11934esac 11935 11936fi 11937 11938 11939 11940 11941# PATH needs CR 11942# Avoid depending upon Character Ranges. 11943as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11944as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11945as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11946as_cr_digits='0123456789' 11947as_cr_alnum=$as_cr_Letters$as_cr_digits 11948 11949as_nl=' 11950' 11951export as_nl 11952# Printing a long string crashes Solaris 7 /usr/bin/printf. 11953as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11954as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11955as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11956if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11957 as_echo='printf %s\n' 11958 as_echo_n='printf %s' 11959else 11960 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11961 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11962 as_echo_n='/usr/ucb/echo -n' 11963 else 11964 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11965 as_echo_n_body='eval 11966 arg=$1; 11967 case $arg in 11968 *"$as_nl"*) 11969 expr "X$arg" : "X\\(.*\\)$as_nl"; 11970 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11971 esac; 11972 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11973 ' 11974 export as_echo_n_body 11975 as_echo_n='sh -c $as_echo_n_body as_echo' 11976 fi 11977 export as_echo_body 11978 as_echo='sh -c $as_echo_body as_echo' 11979fi 11980 11981# The user is always right. 11982if test "${PATH_SEPARATOR+set}" != set; then 11983 PATH_SEPARATOR=: 11984 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11985 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11986 PATH_SEPARATOR=';' 11987 } 11988fi 11989 11990# Support unset when possible. 11991if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11992 as_unset=unset 11993else 11994 as_unset=false 11995fi 11996 11997 11998# IFS 11999# We need space, tab and new line, in precisely that order. Quoting is 12000# there to prevent editors from complaining about space-tab. 12001# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12002# splitting by setting IFS to empty value.) 12003IFS=" "" $as_nl" 12004 12005# Find who we are. Look in the path if we contain no directory separator. 12006case $0 in 12007 *[\\/]* ) as_myself=$0 ;; 12008 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12009for as_dir in $PATH 12010do 12011 IFS=$as_save_IFS 12012 test -z "$as_dir" && as_dir=. 12013 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12014done 12015IFS=$as_save_IFS 12016 12017 ;; 12018esac 12019# We did not find ourselves, most probably we were run as `sh COMMAND' 12020# in which case we are not to be found in the path. 12021if test "x$as_myself" = x; then 12022 as_myself=$0 12023fi 12024if test ! -f "$as_myself"; then 12025 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12026 { (exit 1); exit 1; } 12027fi 12028 12029# Work around bugs in pre-3.0 UWIN ksh. 12030for as_var in ENV MAIL MAILPATH 12031do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12032done 12033PS1='$ ' 12034PS2='> ' 12035PS4='+ ' 12036 12037# NLS nuisances. 12038LC_ALL=C 12039export LC_ALL 12040LANGUAGE=C 12041export LANGUAGE 12042 12043# Required to use basename. 12044if expr a : '\(a\)' >/dev/null 2>&1 && 12045 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12046 as_expr=expr 12047else 12048 as_expr=false 12049fi 12050 12051if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12052 as_basename=basename 12053else 12054 as_basename=false 12055fi 12056 12057 12058# Name of the executable. 12059as_me=`$as_basename -- "$0" || 12060$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12061 X"$0" : 'X\(//\)$' \| \ 12062 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12063$as_echo X/"$0" | 12064 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12065 s//\1/ 12066 q 12067 } 12068 /^X\/\(\/\/\)$/{ 12069 s//\1/ 12070 q 12071 } 12072 /^X\/\(\/\).*/{ 12073 s//\1/ 12074 q 12075 } 12076 s/.*/./; q'` 12077 12078# CDPATH. 12079$as_unset CDPATH 12080 12081 12082 12083 as_lineno_1=$LINENO 12084 as_lineno_2=$LINENO 12085 test "x$as_lineno_1" != "x$as_lineno_2" && 12086 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12087 12088 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12089 # uniformly replaced by the line number. The first 'sed' inserts a 12090 # line-number line after each line using $LINENO; the second 'sed' 12091 # does the real work. The second script uses 'N' to pair each 12092 # line-number line with the line containing $LINENO, and appends 12093 # trailing '-' during substitution so that $LINENO is not a special 12094 # case at line end. 12095 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12096 # scripts with optimization help from Paolo Bonzini. Blame Lee 12097 # E. McMahon (1931-1989) for sed's syntax. :-) 12098 sed -n ' 12099 p 12100 /[$]LINENO/= 12101 ' <$as_myself | 12102 sed ' 12103 s/[$]LINENO.*/&-/ 12104 t lineno 12105 b 12106 :lineno 12107 N 12108 :loop 12109 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12110 t loop 12111 s/-\n.*// 12112 ' >$as_me.lineno && 12113 chmod +x "$as_me.lineno" || 12114 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12115 { (exit 1); exit 1; }; } 12116 12117 # Don't try to exec as it changes $[0], causing all sort of problems 12118 # (the dirname of $[0] is not the place where we might find the 12119 # original and so on. Autoconf is especially sensitive to this). 12120 . "./$as_me.lineno" 12121 # Exit status is that of the last command. 12122 exit 12123} 12124 12125 12126if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12127 as_dirname=dirname 12128else 12129 as_dirname=false 12130fi 12131 12132ECHO_C= ECHO_N= ECHO_T= 12133case `echo -n x` in 12134-n*) 12135 case `echo 'x\c'` in 12136 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12137 *) ECHO_C='\c';; 12138 esac;; 12139*) 12140 ECHO_N='-n';; 12141esac 12142if expr a : '\(a\)' >/dev/null 2>&1 && 12143 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12144 as_expr=expr 12145else 12146 as_expr=false 12147fi 12148 12149rm -f conf$$ conf$$.exe conf$$.file 12150if test -d conf$$.dir; then 12151 rm -f conf$$.dir/conf$$.file 12152else 12153 rm -f conf$$.dir 12154 mkdir conf$$.dir 2>/dev/null 12155fi 12156if (echo >conf$$.file) 2>/dev/null; then 12157 if ln -s conf$$.file conf$$ 2>/dev/null; then 12158 as_ln_s='ln -s' 12159 # ... but there are two gotchas: 12160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12162 # In both cases, we have to default to `cp -p'. 12163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12164 as_ln_s='cp -p' 12165 elif ln conf$$.file conf$$ 2>/dev/null; then 12166 as_ln_s=ln 12167 else 12168 as_ln_s='cp -p' 12169 fi 12170else 12171 as_ln_s='cp -p' 12172fi 12173rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12174rmdir conf$$.dir 2>/dev/null 12175 12176if mkdir -p . 2>/dev/null; then 12177 as_mkdir_p=: 12178else 12179 test -d ./-p && rmdir ./-p 12180 as_mkdir_p=false 12181fi 12182 12183if test -x / >/dev/null 2>&1; then 12184 as_test_x='test -x' 12185else 12186 if ls -dL / >/dev/null 2>&1; then 12187 as_ls_L_option=L 12188 else 12189 as_ls_L_option= 12190 fi 12191 as_test_x=' 12192 eval sh -c '\'' 12193 if test -d "$1"; then 12194 test -d "$1/."; 12195 else 12196 case $1 in 12197 -*)set "./$1";; 12198 esac; 12199 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12200 ???[sx]*):;;*)false;;esac;fi 12201 '\'' sh 12202 ' 12203fi 12204as_executable_p=$as_test_x 12205 12206# Sed expression to map a string onto a valid CPP name. 12207as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12208 12209# Sed expression to map a string onto a valid variable name. 12210as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12211 12212 12213exec 6>&1 12214 12215# Save the log message, to keep $[0] and so on meaningful, and to 12216# report actual input values of CONFIG_FILES etc. instead of their 12217# values after options handling. 12218ac_log=" 12219This file was extended by libXScrnSaver $as_me 1.2.0, which was 12220generated by GNU Autoconf 2.63. Invocation command line was 12221 12222 CONFIG_FILES = $CONFIG_FILES 12223 CONFIG_HEADERS = $CONFIG_HEADERS 12224 CONFIG_LINKS = $CONFIG_LINKS 12225 CONFIG_COMMANDS = $CONFIG_COMMANDS 12226 $ $0 $@ 12227 12228on `(hostname || uname -n) 2>/dev/null | sed 1q` 12229" 12230 12231_ACEOF 12232 12233case $ac_config_files in *" 12234"*) set x $ac_config_files; shift; ac_config_files=$*;; 12235esac 12236 12237case $ac_config_headers in *" 12238"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12239esac 12240 12241 12242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12243# Files that config.status was made for. 12244config_files="$ac_config_files" 12245config_headers="$ac_config_headers" 12246config_commands="$ac_config_commands" 12247 12248_ACEOF 12249 12250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12251ac_cs_usage="\ 12252\`$as_me' instantiates files from templates according to the 12253current configuration. 12254 12255Usage: $0 [OPTION]... [FILE]... 12256 12257 -h, --help print this help, then exit 12258 -V, --version print version number and configuration settings, then exit 12259 -q, --quiet, --silent 12260 do not print progress messages 12261 -d, --debug don't remove temporary files 12262 --recheck update $as_me by reconfiguring in the same conditions 12263 --file=FILE[:TEMPLATE] 12264 instantiate the configuration file FILE 12265 --header=FILE[:TEMPLATE] 12266 instantiate the configuration header FILE 12267 12268Configuration files: 12269$config_files 12270 12271Configuration headers: 12272$config_headers 12273 12274Configuration commands: 12275$config_commands 12276 12277Report bugs to <bug-autoconf@gnu.org>." 12278 12279_ACEOF 12280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12281ac_cs_version="\\ 12282libXScrnSaver config.status 1.2.0 12283configured by $0, generated by GNU Autoconf 2.63, 12284 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12285 12286Copyright (C) 2008 Free Software Foundation, Inc. 12287This config.status script is free software; the Free Software Foundation 12288gives unlimited permission to copy, distribute and modify it." 12289 12290ac_pwd='$ac_pwd' 12291srcdir='$srcdir' 12292INSTALL='$INSTALL' 12293MKDIR_P='$MKDIR_P' 12294AWK='$AWK' 12295test -n "\$AWK" || AWK=awk 12296_ACEOF 12297 12298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12299# The default lists apply if the user does not specify any file. 12300ac_need_defaults=: 12301while test $# != 0 12302do 12303 case $1 in 12304 --*=*) 12305 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12306 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12307 ac_shift=: 12308 ;; 12309 *) 12310 ac_option=$1 12311 ac_optarg=$2 12312 ac_shift=shift 12313 ;; 12314 esac 12315 12316 case $ac_option in 12317 # Handling of the options. 12318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12319 ac_cs_recheck=: ;; 12320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12321 $as_echo "$ac_cs_version"; exit ;; 12322 --debug | --debu | --deb | --de | --d | -d ) 12323 debug=: ;; 12324 --file | --fil | --fi | --f ) 12325 $ac_shift 12326 case $ac_optarg in 12327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12328 esac 12329 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 12330 ac_need_defaults=false;; 12331 --header | --heade | --head | --hea ) 12332 $ac_shift 12333 case $ac_optarg in 12334 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12335 esac 12336 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 12337 ac_need_defaults=false;; 12338 --he | --h) 12339 # Conflict between --help and --header 12340 { $as_echo "$as_me: error: ambiguous option: $1 12341Try \`$0 --help' for more information." >&2 12342 { (exit 1); exit 1; }; };; 12343 --help | --hel | -h ) 12344 $as_echo "$ac_cs_usage"; exit ;; 12345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12346 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12347 ac_cs_silent=: ;; 12348 12349 # This is an error. 12350 -*) { $as_echo "$as_me: error: unrecognized option: $1 12351Try \`$0 --help' for more information." >&2 12352 { (exit 1); exit 1; }; } ;; 12353 12354 *) ac_config_targets="$ac_config_targets $1" 12355 ac_need_defaults=false ;; 12356 12357 esac 12358 shift 12359done 12360 12361ac_configure_extra_args= 12362 12363if $ac_cs_silent; then 12364 exec 6>/dev/null 12365 ac_configure_extra_args="$ac_configure_extra_args --silent" 12366fi 12367 12368_ACEOF 12369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12370if \$ac_cs_recheck; then 12371 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12372 shift 12373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12374 CONFIG_SHELL='$SHELL' 12375 export CONFIG_SHELL 12376 exec "\$@" 12377fi 12378 12379_ACEOF 12380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12381exec 5>>config.log 12382{ 12383 echo 12384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12385## Running $as_me. ## 12386_ASBOX 12387 $as_echo "$ac_log" 12388} >&5 12389 12390_ACEOF 12391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12392# 12393# INIT-COMMANDS 12394# 12395AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12396 12397 12398# The HP-UX ksh and POSIX shell print the target directory to stdout 12399# if CDPATH is set. 12400(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12401 12402sed_quote_subst='$sed_quote_subst' 12403double_quote_subst='$double_quote_subst' 12404delay_variable_subst='$delay_variable_subst' 12405macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12406macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12407enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12408enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12409pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12410enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12411host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12412host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12413host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12414build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12415build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12416build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12417SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12418Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12419GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12420EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12421FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12422LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12423NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12424LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12425max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12426ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12427exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12428lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12429lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12430lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12431reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12432reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12433OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12434deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12435file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12436AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12437AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12438STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12439RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12440old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12441old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12442old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12443CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12444CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12445compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12446GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12447lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12448lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12449lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 12450lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12451objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12452SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12453ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12454MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12455lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12456lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12457lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12458lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12459lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12460need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12461DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12462NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12463LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12464OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12465OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12466libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12467shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12468extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12469archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12470enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12471export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12472whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12473compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12474old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12475old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12476archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12477archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12478module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12479module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12480with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12481allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12482no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12483hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12484hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12485hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12486hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12487hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12488hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12489hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12490hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12491inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12492link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12493fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12494always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12495export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12496exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12497include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12498prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12499file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12500variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12501need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12502need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12503version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12504runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12505shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12506shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12507libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12508library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12509soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12510postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12511postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12512finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12513finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12514hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12515sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12516sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12517hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12518enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12519enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12520enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12521old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12522striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12523 12524LTCC='$LTCC' 12525LTCFLAGS='$LTCFLAGS' 12526compiler='$compiler_DEFAULT' 12527 12528# Quote evaled strings. 12529for var in SED \ 12530GREP \ 12531EGREP \ 12532FGREP \ 12533LD \ 12534NM \ 12535LN_S \ 12536lt_SP2NL \ 12537lt_NL2SP \ 12538reload_flag \ 12539OBJDUMP \ 12540deplibs_check_method \ 12541file_magic_cmd \ 12542AR \ 12543AR_FLAGS \ 12544STRIP \ 12545RANLIB \ 12546CC \ 12547CFLAGS \ 12548compiler \ 12549lt_cv_sys_global_symbol_pipe \ 12550lt_cv_sys_global_symbol_to_cdecl \ 12551lt_cv_sys_global_symbol_to_c_name_address \ 12552lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12553SHELL \ 12554ECHO \ 12555lt_prog_compiler_no_builtin_flag \ 12556lt_prog_compiler_wl \ 12557lt_prog_compiler_pic \ 12558lt_prog_compiler_static \ 12559lt_cv_prog_compiler_c_o \ 12560need_locks \ 12561DSYMUTIL \ 12562NMEDIT \ 12563LIPO \ 12564OTOOL \ 12565OTOOL64 \ 12566shrext_cmds \ 12567export_dynamic_flag_spec \ 12568whole_archive_flag_spec \ 12569compiler_needs_object \ 12570with_gnu_ld \ 12571allow_undefined_flag \ 12572no_undefined_flag \ 12573hardcode_libdir_flag_spec \ 12574hardcode_libdir_flag_spec_ld \ 12575hardcode_libdir_separator \ 12576fix_srcfile_path \ 12577exclude_expsyms \ 12578include_expsyms \ 12579file_list_spec \ 12580variables_saved_for_relink \ 12581libname_spec \ 12582library_names_spec \ 12583soname_spec \ 12584finish_eval \ 12585old_striplib \ 12586striplib; do 12587 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12588 *[\\\\\\\`\\"\\\$]*) 12589 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12590 ;; 12591 *) 12592 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12593 ;; 12594 esac 12595done 12596 12597# Double-quote double-evaled strings. 12598for var in reload_cmds \ 12599old_postinstall_cmds \ 12600old_postuninstall_cmds \ 12601old_archive_cmds \ 12602extract_expsyms_cmds \ 12603old_archive_from_new_cmds \ 12604old_archive_from_expsyms_cmds \ 12605archive_cmds \ 12606archive_expsym_cmds \ 12607module_cmds \ 12608module_expsym_cmds \ 12609export_symbols_cmds \ 12610prelink_cmds \ 12611postinstall_cmds \ 12612postuninstall_cmds \ 12613finish_cmds \ 12614sys_lib_search_path_spec \ 12615sys_lib_dlsearch_path_spec; do 12616 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12617 *[\\\\\\\`\\"\\\$]*) 12618 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12619 ;; 12620 *) 12621 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12622 ;; 12623 esac 12624done 12625 12626# Fix-up fallback echo if it was mangled by the above quoting rules. 12627case \$lt_ECHO in 12628*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12629 ;; 12630esac 12631 12632ac_aux_dir='$ac_aux_dir' 12633xsi_shell='$xsi_shell' 12634lt_shell_append='$lt_shell_append' 12635 12636# See if we are running on zsh, and set the options which allow our 12637# commands through without removal of \ escapes INIT. 12638if test -n "\${ZSH_VERSION+set}" ; then 12639 setopt NO_GLOB_SUBST 12640fi 12641 12642 12643 PACKAGE='$PACKAGE' 12644 VERSION='$VERSION' 12645 TIMESTAMP='$TIMESTAMP' 12646 RM='$RM' 12647 ofile='$ofile' 12648 12649 12650 12651 12652_ACEOF 12653 12654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12655 12656# Handling of arguments. 12657for ac_config_target in $ac_config_targets 12658do 12659 case $ac_config_target in 12660 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12661 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12662 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12663 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12664 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12665 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12666 "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;; 12667 12668 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12669$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12670 { (exit 1); exit 1; }; };; 12671 esac 12672done 12673 12674 12675# If the user did not use the arguments to specify the items to instantiate, 12676# then the envvar interface is used. Set only those that are not. 12677# We use the long form for the default assignment because of an extremely 12678# bizarre bug on SunOS 4.1.3. 12679if $ac_need_defaults; then 12680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12683fi 12684 12685# Have a temporary directory for convenience. Make it in the build tree 12686# simply because there is no reason against having it here, and in addition, 12687# creating and moving files from /tmp can sometimes cause problems. 12688# Hook for its removal unless debugging. 12689# Note that there is a small window in which the directory will not be cleaned: 12690# after its creation but before its name has been assigned to `$tmp'. 12691$debug || 12692{ 12693 tmp= 12694 trap 'exit_status=$? 12695 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12696' 0 12697 trap '{ (exit 1); exit 1; }' 1 2 13 15 12698} 12699# Create a (secure) tmp directory for tmp files. 12700 12701{ 12702 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12703 test -n "$tmp" && test -d "$tmp" 12704} || 12705{ 12706 tmp=./conf$$-$RANDOM 12707 (umask 077 && mkdir "$tmp") 12708} || 12709{ 12710 $as_echo "$as_me: cannot create a temporary directory in ." >&2 12711 { (exit 1); exit 1; } 12712} 12713 12714# Set up the scripts for CONFIG_FILES section. 12715# No need to generate them if there are no CONFIG_FILES. 12716# This happens for instance with `./config.status config.h'. 12717if test -n "$CONFIG_FILES"; then 12718 12719 12720ac_cr=' 12721' 12722ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12723if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12724 ac_cs_awk_cr='\\r' 12725else 12726 ac_cs_awk_cr=$ac_cr 12727fi 12728 12729echo 'BEGIN {' >"$tmp/subs1.awk" && 12730_ACEOF 12731 12732 12733{ 12734 echo "cat >conf$$subs.awk <<_ACEOF" && 12735 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12736 echo "_ACEOF" 12737} >conf$$subs.sh || 12738 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12739$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12740 { (exit 1); exit 1; }; } 12741ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12742ac_delim='%!_!# ' 12743for ac_last_try in false false false false false :; do 12744 . ./conf$$subs.sh || 12745 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12746$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12747 { (exit 1); exit 1; }; } 12748 12749 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12750 if test $ac_delim_n = $ac_delim_num; then 12751 break 12752 elif $ac_last_try; then 12753 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12754$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12755 { (exit 1); exit 1; }; } 12756 else 12757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12758 fi 12759done 12760rm -f conf$$subs.sh 12761 12762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12763cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12764_ACEOF 12765sed -n ' 12766h 12767s/^/S["/; s/!.*/"]=/ 12768p 12769g 12770s/^[^!]*!// 12771:repl 12772t repl 12773s/'"$ac_delim"'$// 12774t delim 12775:nl 12776h 12777s/\(.\{148\}\).*/\1/ 12778t more1 12779s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12780p 12781n 12782b repl 12783:more1 12784s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12785p 12786g 12787s/.\{148\}// 12788t nl 12789:delim 12790h 12791s/\(.\{148\}\).*/\1/ 12792t more2 12793s/["\\]/\\&/g; s/^/"/; s/$/"/ 12794p 12795b 12796:more2 12797s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12798p 12799g 12800s/.\{148\}// 12801t delim 12802' <conf$$subs.awk | sed ' 12803/^[^""]/{ 12804 N 12805 s/\n// 12806} 12807' >>$CONFIG_STATUS || ac_write_fail=1 12808rm -f conf$$subs.awk 12809cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12810_ACAWK 12811cat >>"\$tmp/subs1.awk" <<_ACAWK && 12812 for (key in S) S_is_set[key] = 1 12813 FS = "" 12814 12815} 12816{ 12817 line = $ 0 12818 nfields = split(line, field, "@") 12819 substed = 0 12820 len = length(field[1]) 12821 for (i = 2; i < nfields; i++) { 12822 key = field[i] 12823 keylen = length(key) 12824 if (S_is_set[key]) { 12825 value = S[key] 12826 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12827 len += length(value) + length(field[++i]) 12828 substed = 1 12829 } else 12830 len += 1 + keylen 12831 } 12832 12833 print line 12834} 12835 12836_ACAWK 12837_ACEOF 12838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12839if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12840 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12841else 12842 cat 12843fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12844 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 12845$as_echo "$as_me: error: could not setup config files machinery" >&2;} 12846 { (exit 1); exit 1; }; } 12847_ACEOF 12848 12849# VPATH may cause trouble with some makes, so we remove $(srcdir), 12850# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12851# trailing colons and then remove the whole line if VPATH becomes empty 12852# (actually we leave an empty line to preserve line numbers). 12853if test "x$srcdir" = x.; then 12854 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12855s/:*\$(srcdir):*/:/ 12856s/:*\${srcdir}:*/:/ 12857s/:*@srcdir@:*/:/ 12858s/^\([^=]*=[ ]*\):*/\1/ 12859s/:*$// 12860s/^[^=]*=[ ]*$// 12861}' 12862fi 12863 12864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12865fi # test -n "$CONFIG_FILES" 12866 12867# Set up the scripts for CONFIG_HEADERS section. 12868# No need to generate them if there are no CONFIG_HEADERS. 12869# This happens for instance with `./config.status Makefile'. 12870if test -n "$CONFIG_HEADERS"; then 12871cat >"$tmp/defines.awk" <<\_ACAWK || 12872BEGIN { 12873_ACEOF 12874 12875# Transform confdefs.h into an awk script `defines.awk', embedded as 12876# here-document in config.status, that substitutes the proper values into 12877# config.h.in to produce config.h. 12878 12879# Create a delimiter string that does not exist in confdefs.h, to ease 12880# handling of long lines. 12881ac_delim='%!_!# ' 12882for ac_last_try in false false :; do 12883 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12884 if test -z "$ac_t"; then 12885 break 12886 elif $ac_last_try; then 12887 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 12888$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 12889 { (exit 1); exit 1; }; } 12890 else 12891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12892 fi 12893done 12894 12895# For the awk script, D is an array of macro values keyed by name, 12896# likewise P contains macro parameters if any. Preserve backslash 12897# newline sequences. 12898 12899ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12900sed -n ' 12901s/.\{148\}/&'"$ac_delim"'/g 12902t rset 12903:rset 12904s/^[ ]*#[ ]*define[ ][ ]*/ / 12905t def 12906d 12907:def 12908s/\\$// 12909t bsnl 12910s/["\\]/\\&/g 12911s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12912D["\1"]=" \3"/p 12913s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12914d 12915:bsnl 12916s/["\\]/\\&/g 12917s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12918D["\1"]=" \3\\\\\\n"\\/p 12919t cont 12920s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12921t cont 12922d 12923:cont 12924n 12925s/.\{148\}/&'"$ac_delim"'/g 12926t clear 12927:clear 12928s/\\$// 12929t bsnlc 12930s/["\\]/\\&/g; s/^/"/; s/$/"/p 12931d 12932:bsnlc 12933s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12934b cont 12935' <confdefs.h | sed ' 12936s/'"$ac_delim"'/"\\\ 12937"/g' >>$CONFIG_STATUS || ac_write_fail=1 12938 12939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12940 for (key in D) D_is_set[key] = 1 12941 FS = "" 12942} 12943/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12944 line = \$ 0 12945 split(line, arg, " ") 12946 if (arg[1] == "#") { 12947 defundef = arg[2] 12948 mac1 = arg[3] 12949 } else { 12950 defundef = substr(arg[1], 2) 12951 mac1 = arg[2] 12952 } 12953 split(mac1, mac2, "(") #) 12954 macro = mac2[1] 12955 prefix = substr(line, 1, index(line, defundef) - 1) 12956 if (D_is_set[macro]) { 12957 # Preserve the white space surrounding the "#". 12958 print prefix "define", macro P[macro] D[macro] 12959 next 12960 } else { 12961 # Replace #undef with comments. This is necessary, for example, 12962 # in the case of _POSIX_SOURCE, which is predefined and required 12963 # on some systems where configure will not decide to define it. 12964 if (defundef == "undef") { 12965 print "/*", prefix defundef, macro, "*/" 12966 next 12967 } 12968 } 12969} 12970{ print } 12971_ACAWK 12972_ACEOF 12973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12974 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 12975$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 12976 { (exit 1); exit 1; }; } 12977fi # test -n "$CONFIG_HEADERS" 12978 12979 12980eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12981shift 12982for ac_tag 12983do 12984 case $ac_tag in 12985 :[FHLC]) ac_mode=$ac_tag; continue;; 12986 esac 12987 case $ac_mode$ac_tag in 12988 :[FHL]*:*);; 12989 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 12990$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 12991 { (exit 1); exit 1; }; };; 12992 :[FH]-) ac_tag=-:-;; 12993 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12994 esac 12995 ac_save_IFS=$IFS 12996 IFS=: 12997 set x $ac_tag 12998 IFS=$ac_save_IFS 12999 shift 13000 ac_file=$1 13001 shift 13002 13003 case $ac_mode in 13004 :L) ac_source=$1;; 13005 :[FH]) 13006 ac_file_inputs= 13007 for ac_f 13008 do 13009 case $ac_f in 13010 -) ac_f="$tmp/stdin";; 13011 *) # Look for the file first in the build tree, then in the source tree 13012 # (if the path is not absolute). The absolute path cannot be DOS-style, 13013 # because $ac_f cannot contain `:'. 13014 test -f "$ac_f" || 13015 case $ac_f in 13016 [\\/$]*) false;; 13017 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13018 esac || 13019 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13020$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13021 { (exit 1); exit 1; }; };; 13022 esac 13023 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13024 ac_file_inputs="$ac_file_inputs '$ac_f'" 13025 done 13026 13027 # Let's still pretend it is `configure' which instantiates (i.e., don't 13028 # use $as_me), people would be surprised to read: 13029 # /* config.h. Generated by config.status. */ 13030 configure_input='Generated from '` 13031 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13032 `' by configure.' 13033 if test x"$ac_file" != x-; then 13034 configure_input="$ac_file. $configure_input" 13035 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 13036$as_echo "$as_me: creating $ac_file" >&6;} 13037 fi 13038 # Neutralize special characters interpreted by sed in replacement strings. 13039 case $configure_input in #( 13040 *\&* | *\|* | *\\* ) 13041 ac_sed_conf_input=`$as_echo "$configure_input" | 13042 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13043 *) ac_sed_conf_input=$configure_input;; 13044 esac 13045 13046 case $ac_tag in 13047 *:-:* | *:-) cat >"$tmp/stdin" \ 13048 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13049$as_echo "$as_me: error: could not create $ac_file" >&2;} 13050 { (exit 1); exit 1; }; } ;; 13051 esac 13052 ;; 13053 esac 13054 13055 ac_dir=`$as_dirname -- "$ac_file" || 13056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13057 X"$ac_file" : 'X\(//\)[^/]' \| \ 13058 X"$ac_file" : 'X\(//\)$' \| \ 13059 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13060$as_echo X"$ac_file" | 13061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13062 s//\1/ 13063 q 13064 } 13065 /^X\(\/\/\)[^/].*/{ 13066 s//\1/ 13067 q 13068 } 13069 /^X\(\/\/\)$/{ 13070 s//\1/ 13071 q 13072 } 13073 /^X\(\/\).*/{ 13074 s//\1/ 13075 q 13076 } 13077 s/.*/./; q'` 13078 { as_dir="$ac_dir" 13079 case $as_dir in #( 13080 -*) as_dir=./$as_dir;; 13081 esac 13082 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13083 as_dirs= 13084 while :; do 13085 case $as_dir in #( 13086 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13087 *) as_qdir=$as_dir;; 13088 esac 13089 as_dirs="'$as_qdir' $as_dirs" 13090 as_dir=`$as_dirname -- "$as_dir" || 13091$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13092 X"$as_dir" : 'X\(//\)[^/]' \| \ 13093 X"$as_dir" : 'X\(//\)$' \| \ 13094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13095$as_echo X"$as_dir" | 13096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13097 s//\1/ 13098 q 13099 } 13100 /^X\(\/\/\)[^/].*/{ 13101 s//\1/ 13102 q 13103 } 13104 /^X\(\/\/\)$/{ 13105 s//\1/ 13106 q 13107 } 13108 /^X\(\/\).*/{ 13109 s//\1/ 13110 q 13111 } 13112 s/.*/./; q'` 13113 test -d "$as_dir" && break 13114 done 13115 test -z "$as_dirs" || eval "mkdir $as_dirs" 13116 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13117$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13118 { (exit 1); exit 1; }; }; } 13119 ac_builddir=. 13120 13121case "$ac_dir" in 13122.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13123*) 13124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13125 # A ".." for each directory in $ac_dir_suffix. 13126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13127 case $ac_top_builddir_sub in 13128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13130 esac ;; 13131esac 13132ac_abs_top_builddir=$ac_pwd 13133ac_abs_builddir=$ac_pwd$ac_dir_suffix 13134# for backward compatibility: 13135ac_top_builddir=$ac_top_build_prefix 13136 13137case $srcdir in 13138 .) # We are building in place. 13139 ac_srcdir=. 13140 ac_top_srcdir=$ac_top_builddir_sub 13141 ac_abs_top_srcdir=$ac_pwd ;; 13142 [\\/]* | ?:[\\/]* ) # Absolute name. 13143 ac_srcdir=$srcdir$ac_dir_suffix; 13144 ac_top_srcdir=$srcdir 13145 ac_abs_top_srcdir=$srcdir ;; 13146 *) # Relative name. 13147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13148 ac_top_srcdir=$ac_top_build_prefix$srcdir 13149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13150esac 13151ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13152 13153 13154 case $ac_mode in 13155 :F) 13156 # 13157 # CONFIG_FILE 13158 # 13159 13160 case $INSTALL in 13161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13163 esac 13164 ac_MKDIR_P=$MKDIR_P 13165 case $MKDIR_P in 13166 [\\/$]* | ?:[\\/]* ) ;; 13167 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13168 esac 13169_ACEOF 13170 13171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13172# If the template does not know about datarootdir, expand it. 13173# FIXME: This hack should be removed a few years after 2.60. 13174ac_datarootdir_hack=; ac_datarootdir_seen= 13175 13176ac_sed_dataroot=' 13177/datarootdir/ { 13178 p 13179 q 13180} 13181/@datadir@/p 13182/@docdir@/p 13183/@infodir@/p 13184/@localedir@/p 13185/@mandir@/p 13186' 13187case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13188*datarootdir*) ac_datarootdir_seen=yes;; 13189*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13190 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13191$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13192_ACEOF 13193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13194 ac_datarootdir_hack=' 13195 s&@datadir@&$datadir&g 13196 s&@docdir@&$docdir&g 13197 s&@infodir@&$infodir&g 13198 s&@localedir@&$localedir&g 13199 s&@mandir@&$mandir&g 13200 s&\\\${datarootdir}&$datarootdir&g' ;; 13201esac 13202_ACEOF 13203 13204# Neutralize VPATH when `$srcdir' = `.'. 13205# Shell code in configure.ac might set extrasub. 13206# FIXME: do we really want to maintain this feature? 13207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13208ac_sed_extra="$ac_vpsub 13209$extrasub 13210_ACEOF 13211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13212:t 13213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13214s|@configure_input@|$ac_sed_conf_input|;t t 13215s&@top_builddir@&$ac_top_builddir_sub&;t t 13216s&@top_build_prefix@&$ac_top_build_prefix&;t t 13217s&@srcdir@&$ac_srcdir&;t t 13218s&@abs_srcdir@&$ac_abs_srcdir&;t t 13219s&@top_srcdir@&$ac_top_srcdir&;t t 13220s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13221s&@builddir@&$ac_builddir&;t t 13222s&@abs_builddir@&$ac_abs_builddir&;t t 13223s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13224s&@INSTALL@&$ac_INSTALL&;t t 13225s&@MKDIR_P@&$ac_MKDIR_P&;t t 13226$ac_datarootdir_hack 13227" 13228eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13229 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13230$as_echo "$as_me: error: could not create $ac_file" >&2;} 13231 { (exit 1); exit 1; }; } 13232 13233test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13234 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13235 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13236 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13237which seems to be undefined. Please make sure it is defined." >&5 13238$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13239which seems to be undefined. Please make sure it is defined." >&2;} 13240 13241 rm -f "$tmp/stdin" 13242 case $ac_file in 13243 -) cat "$tmp/out" && rm -f "$tmp/out";; 13244 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13245 esac \ 13246 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13247$as_echo "$as_me: error: could not create $ac_file" >&2;} 13248 { (exit 1); exit 1; }; } 13249 ;; 13250 :H) 13251 # 13252 # CONFIG_HEADER 13253 # 13254 if test x"$ac_file" != x-; then 13255 { 13256 $as_echo "/* $configure_input */" \ 13257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13258 } >"$tmp/config.h" \ 13259 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13260$as_echo "$as_me: error: could not create $ac_file" >&2;} 13261 { (exit 1); exit 1; }; } 13262 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13263 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13264$as_echo "$as_me: $ac_file is unchanged" >&6;} 13265 else 13266 rm -f "$ac_file" 13267 mv "$tmp/config.h" "$ac_file" \ 13268 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13269$as_echo "$as_me: error: could not create $ac_file" >&2;} 13270 { (exit 1); exit 1; }; } 13271 fi 13272 else 13273 $as_echo "/* $configure_input */" \ 13274 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13275 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 13276$as_echo "$as_me: error: could not create -" >&2;} 13277 { (exit 1); exit 1; }; } 13278 fi 13279# Compute "$ac_file"'s index in $config_headers. 13280_am_arg="$ac_file" 13281_am_stamp_count=1 13282for _am_header in $config_headers :; do 13283 case $_am_header in 13284 $_am_arg | $_am_arg:* ) 13285 break ;; 13286 * ) 13287 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13288 esac 13289done 13290echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13291$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13292 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13293 X"$_am_arg" : 'X\(//\)$' \| \ 13294 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13295$as_echo X"$_am_arg" | 13296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13297 s//\1/ 13298 q 13299 } 13300 /^X\(\/\/\)[^/].*/{ 13301 s//\1/ 13302 q 13303 } 13304 /^X\(\/\/\)$/{ 13305 s//\1/ 13306 q 13307 } 13308 /^X\(\/\).*/{ 13309 s//\1/ 13310 q 13311 } 13312 s/.*/./; q'`/stamp-h$_am_stamp_count 13313 ;; 13314 13315 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 13316$as_echo "$as_me: executing $ac_file commands" >&6;} 13317 ;; 13318 esac 13319 13320 13321 case $ac_file$ac_mode in 13322 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13323 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13324 # are listed without --file. Let's play safe and only enable the eval 13325 # if we detect the quoting. 13326 case $CONFIG_FILES in 13327 *\'*) eval set x "$CONFIG_FILES" ;; 13328 *) set x $CONFIG_FILES ;; 13329 esac 13330 shift 13331 for mf 13332 do 13333 # Strip MF so we end up with the name of the file. 13334 mf=`echo "$mf" | sed -e 's/:.*$//'` 13335 # Check whether this is an Automake generated Makefile or not. 13336 # We used to match only the files named `Makefile.in', but 13337 # some people rename them; so instead we look at the file content. 13338 # Grep'ing the first line is not enough: some people post-process 13339 # each Makefile.in and add a new line on top of each file to say so. 13340 # Grep'ing the whole file is not good either: AIX grep has a line 13341 # limit of 2048, but all sed's we know have understand at least 4000. 13342 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13343 dirpart=`$as_dirname -- "$mf" || 13344$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13345 X"$mf" : 'X\(//\)[^/]' \| \ 13346 X"$mf" : 'X\(//\)$' \| \ 13347 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13348$as_echo X"$mf" | 13349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13350 s//\1/ 13351 q 13352 } 13353 /^X\(\/\/\)[^/].*/{ 13354 s//\1/ 13355 q 13356 } 13357 /^X\(\/\/\)$/{ 13358 s//\1/ 13359 q 13360 } 13361 /^X\(\/\).*/{ 13362 s//\1/ 13363 q 13364 } 13365 s/.*/./; q'` 13366 else 13367 continue 13368 fi 13369 # Extract the definition of DEPDIR, am__include, and am__quote 13370 # from the Makefile without running `make'. 13371 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13372 test -z "$DEPDIR" && continue 13373 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13374 test -z "am__include" && continue 13375 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13376 # When using ansi2knr, U may be empty or an underscore; expand it 13377 U=`sed -n 's/^U = //p' < "$mf"` 13378 # Find all dependency output files, they are included files with 13379 # $(DEPDIR) in their names. We invoke sed twice because it is the 13380 # simplest approach to changing $(DEPDIR) to its actual value in the 13381 # expansion. 13382 for file in `sed -n " 13383 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13384 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13385 # Make sure the directory exists. 13386 test -f "$dirpart/$file" && continue 13387 fdir=`$as_dirname -- "$file" || 13388$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13389 X"$file" : 'X\(//\)[^/]' \| \ 13390 X"$file" : 'X\(//\)$' \| \ 13391 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13392$as_echo X"$file" | 13393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13394 s//\1/ 13395 q 13396 } 13397 /^X\(\/\/\)[^/].*/{ 13398 s//\1/ 13399 q 13400 } 13401 /^X\(\/\/\)$/{ 13402 s//\1/ 13403 q 13404 } 13405 /^X\(\/\).*/{ 13406 s//\1/ 13407 q 13408 } 13409 s/.*/./; q'` 13410 { as_dir=$dirpart/$fdir 13411 case $as_dir in #( 13412 -*) as_dir=./$as_dir;; 13413 esac 13414 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13415 as_dirs= 13416 while :; do 13417 case $as_dir in #( 13418 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13419 *) as_qdir=$as_dir;; 13420 esac 13421 as_dirs="'$as_qdir' $as_dirs" 13422 as_dir=`$as_dirname -- "$as_dir" || 13423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13424 X"$as_dir" : 'X\(//\)[^/]' \| \ 13425 X"$as_dir" : 'X\(//\)$' \| \ 13426 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13427$as_echo X"$as_dir" | 13428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13429 s//\1/ 13430 q 13431 } 13432 /^X\(\/\/\)[^/].*/{ 13433 s//\1/ 13434 q 13435 } 13436 /^X\(\/\/\)$/{ 13437 s//\1/ 13438 q 13439 } 13440 /^X\(\/\).*/{ 13441 s//\1/ 13442 q 13443 } 13444 s/.*/./; q'` 13445 test -d "$as_dir" && break 13446 done 13447 test -z "$as_dirs" || eval "mkdir $as_dirs" 13448 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13449$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13450 { (exit 1); exit 1; }; }; } 13451 # echo "creating $dirpart/$file" 13452 echo '# dummy' > "$dirpart/$file" 13453 done 13454 done 13455} 13456 ;; 13457 "libtool":C) 13458 13459 # See if we are running on zsh, and set the options which allow our 13460 # commands through without removal of \ escapes. 13461 if test -n "${ZSH_VERSION+set}" ; then 13462 setopt NO_GLOB_SUBST 13463 fi 13464 13465 cfgfile="${ofile}T" 13466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13467 $RM "$cfgfile" 13468 13469 cat <<_LT_EOF >> "$cfgfile" 13470#! $SHELL 13471 13472# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13473# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13474# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13475# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13476# 13477# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13478# 2006, 2007, 2008 Free Software Foundation, Inc. 13479# Written by Gordon Matzigkeit, 1996 13480# 13481# This file is part of GNU Libtool. 13482# 13483# GNU Libtool is free software; you can redistribute it and/or 13484# modify it under the terms of the GNU General Public License as 13485# published by the Free Software Foundation; either version 2 of 13486# the License, or (at your option) any later version. 13487# 13488# As a special exception to the GNU General Public License, 13489# if you distribute this file as part of a program or library that 13490# is built using GNU Libtool, you may include this file under the 13491# same distribution terms that you use for the rest of that program. 13492# 13493# GNU Libtool is distributed in the hope that it will be useful, 13494# but WITHOUT ANY WARRANTY; without even the implied warranty of 13495# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13496# GNU General Public License for more details. 13497# 13498# You should have received a copy of the GNU General Public License 13499# along with GNU Libtool; see the file COPYING. If not, a copy 13500# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13501# obtained by writing to the Free Software Foundation, Inc., 13502# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13503 13504 13505# The names of the tagged configurations supported by this script. 13506available_tags="" 13507 13508# ### BEGIN LIBTOOL CONFIG 13509 13510# Which release of libtool.m4 was used? 13511macro_version=$macro_version 13512macro_revision=$macro_revision 13513 13514# Whether or not to build shared libraries. 13515build_libtool_libs=$enable_shared 13516 13517# Whether or not to build static libraries. 13518build_old_libs=$enable_static 13519 13520# What type of objects to build. 13521pic_mode=$pic_mode 13522 13523# Whether or not to optimize for fast installation. 13524fast_install=$enable_fast_install 13525 13526# The host system. 13527host_alias=$host_alias 13528host=$host 13529host_os=$host_os 13530 13531# The build system. 13532build_alias=$build_alias 13533build=$build 13534build_os=$build_os 13535 13536# A sed program that does not truncate output. 13537SED=$lt_SED 13538 13539# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13540Xsed="\$SED -e 1s/^X//" 13541 13542# A grep program that handles long lines. 13543GREP=$lt_GREP 13544 13545# An ERE matcher. 13546EGREP=$lt_EGREP 13547 13548# A literal string matcher. 13549FGREP=$lt_FGREP 13550 13551# A BSD- or MS-compatible name lister. 13552NM=$lt_NM 13553 13554# Whether we need soft or hard links. 13555LN_S=$lt_LN_S 13556 13557# What is the maximum length of a command? 13558max_cmd_len=$max_cmd_len 13559 13560# Object file suffix (normally "o"). 13561objext=$ac_objext 13562 13563# Executable file suffix (normally ""). 13564exeext=$exeext 13565 13566# whether the shell understands "unset". 13567lt_unset=$lt_unset 13568 13569# turn spaces into newlines. 13570SP2NL=$lt_lt_SP2NL 13571 13572# turn newlines into spaces. 13573NL2SP=$lt_lt_NL2SP 13574 13575# How to create reloadable object files. 13576reload_flag=$lt_reload_flag 13577reload_cmds=$lt_reload_cmds 13578 13579# An object symbol dumper. 13580OBJDUMP=$lt_OBJDUMP 13581 13582# Method to check whether dependent libraries are shared objects. 13583deplibs_check_method=$lt_deplibs_check_method 13584 13585# Command to use when deplibs_check_method == "file_magic". 13586file_magic_cmd=$lt_file_magic_cmd 13587 13588# The archiver. 13589AR=$lt_AR 13590AR_FLAGS=$lt_AR_FLAGS 13591 13592# A symbol stripping program. 13593STRIP=$lt_STRIP 13594 13595# Commands used to install an old-style archive. 13596RANLIB=$lt_RANLIB 13597old_postinstall_cmds=$lt_old_postinstall_cmds 13598old_postuninstall_cmds=$lt_old_postuninstall_cmds 13599 13600# A C compiler. 13601LTCC=$lt_CC 13602 13603# LTCC compiler flags. 13604LTCFLAGS=$lt_CFLAGS 13605 13606# Take the output of nm and produce a listing of raw symbols and C names. 13607global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13608 13609# Transform the output of nm in a proper C declaration. 13610global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13611 13612# Transform the output of nm in a C name address pair. 13613global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13614 13615# Transform the output of nm in a C name address pair when lib prefix is needed. 13616global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13617 13618# The name of the directory that contains temporary libtool files. 13619objdir=$objdir 13620 13621# Shell to use when invoking shell scripts. 13622SHELL=$lt_SHELL 13623 13624# An echo program that does not interpret backslashes. 13625ECHO=$lt_ECHO 13626 13627# Used to examine libraries when file_magic_cmd begins with "file". 13628MAGIC_CMD=$MAGIC_CMD 13629 13630# Must we lock files when doing compilation? 13631need_locks=$lt_need_locks 13632 13633# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13634DSYMUTIL=$lt_DSYMUTIL 13635 13636# Tool to change global to local symbols on Mac OS X. 13637NMEDIT=$lt_NMEDIT 13638 13639# Tool to manipulate fat objects and archives on Mac OS X. 13640LIPO=$lt_LIPO 13641 13642# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13643OTOOL=$lt_OTOOL 13644 13645# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13646OTOOL64=$lt_OTOOL64 13647 13648# Old archive suffix (normally "a"). 13649libext=$libext 13650 13651# Shared library suffix (normally ".so"). 13652shrext_cmds=$lt_shrext_cmds 13653 13654# The commands to extract the exported symbol list from a shared archive. 13655extract_expsyms_cmds=$lt_extract_expsyms_cmds 13656 13657# Variables whose values should be saved in libtool wrapper scripts and 13658# restored at link time. 13659variables_saved_for_relink=$lt_variables_saved_for_relink 13660 13661# Do we need the "lib" prefix for modules? 13662need_lib_prefix=$need_lib_prefix 13663 13664# Do we need a version for libraries? 13665need_version=$need_version 13666 13667# Library versioning type. 13668version_type=$version_type 13669 13670# Shared library runtime path variable. 13671runpath_var=$runpath_var 13672 13673# Shared library path variable. 13674shlibpath_var=$shlibpath_var 13675 13676# Is shlibpath searched before the hard-coded library search path? 13677shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13678 13679# Format of library name prefix. 13680libname_spec=$lt_libname_spec 13681 13682# List of archive names. First name is the real one, the rest are links. 13683# The last name is the one that the linker finds with -lNAME 13684library_names_spec=$lt_library_names_spec 13685 13686# The coded name of the library, if different from the real name. 13687soname_spec=$lt_soname_spec 13688 13689# Command to use after installation of a shared archive. 13690postinstall_cmds=$lt_postinstall_cmds 13691 13692# Command to use after uninstallation of a shared archive. 13693postuninstall_cmds=$lt_postuninstall_cmds 13694 13695# Commands used to finish a libtool library installation in a directory. 13696finish_cmds=$lt_finish_cmds 13697 13698# As "finish_cmds", except a single script fragment to be evaled but 13699# not shown. 13700finish_eval=$lt_finish_eval 13701 13702# Whether we should hardcode library paths into libraries. 13703hardcode_into_libs=$hardcode_into_libs 13704 13705# Compile-time system search path for libraries. 13706sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13707 13708# Run-time system search path for libraries. 13709sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13710 13711# Whether dlopen is supported. 13712dlopen_support=$enable_dlopen 13713 13714# Whether dlopen of programs is supported. 13715dlopen_self=$enable_dlopen_self 13716 13717# Whether dlopen of statically linked programs is supported. 13718dlopen_self_static=$enable_dlopen_self_static 13719 13720# Commands to strip libraries. 13721old_striplib=$lt_old_striplib 13722striplib=$lt_striplib 13723 13724 13725# The linker used to build libraries. 13726LD=$lt_LD 13727 13728# Commands used to build an old-style archive. 13729old_archive_cmds=$lt_old_archive_cmds 13730 13731# A language specific compiler. 13732CC=$lt_compiler 13733 13734# Is the compiler the GNU compiler? 13735with_gcc=$GCC 13736 13737# Compiler flag to turn off builtin functions. 13738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13739 13740# How to pass a linker flag through the compiler. 13741wl=$lt_lt_prog_compiler_wl 13742 13743# Additional compiler flags for building library objects. 13744pic_flag=$lt_lt_prog_compiler_pic 13745 13746# Compiler flag to prevent dynamic linking. 13747link_static_flag=$lt_lt_prog_compiler_static 13748 13749# Does compiler simultaneously support -c and -o options? 13750compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13751 13752# Whether or not to add -lc for building shared libraries. 13753build_libtool_need_lc=$archive_cmds_need_lc 13754 13755# Whether or not to disallow shared libs when runtime libs are static. 13756allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13757 13758# Compiler flag to allow reflexive dlopens. 13759export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13760 13761# Compiler flag to generate shared objects directly from archives. 13762whole_archive_flag_spec=$lt_whole_archive_flag_spec 13763 13764# Whether the compiler copes with passing no objects directly. 13765compiler_needs_object=$lt_compiler_needs_object 13766 13767# Create an old-style archive from a shared archive. 13768old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13769 13770# Create a temporary old-style archive to link instead of a shared archive. 13771old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13772 13773# Commands used to build a shared archive. 13774archive_cmds=$lt_archive_cmds 13775archive_expsym_cmds=$lt_archive_expsym_cmds 13776 13777# Commands used to build a loadable module if different from building 13778# a shared archive. 13779module_cmds=$lt_module_cmds 13780module_expsym_cmds=$lt_module_expsym_cmds 13781 13782# Whether we are building with GNU ld or not. 13783with_gnu_ld=$lt_with_gnu_ld 13784 13785# Flag that allows shared libraries with undefined symbols to be built. 13786allow_undefined_flag=$lt_allow_undefined_flag 13787 13788# Flag that enforces no undefined symbols. 13789no_undefined_flag=$lt_no_undefined_flag 13790 13791# Flag to hardcode \$libdir into a binary during linking. 13792# This must work even if \$libdir does not exist 13793hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13794 13795# If ld is used when linking, flag to hardcode \$libdir into a binary 13796# during linking. This must work even if \$libdir does not exist. 13797hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13798 13799# Whether we need a single "-rpath" flag with a separated argument. 13800hardcode_libdir_separator=$lt_hardcode_libdir_separator 13801 13802# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13803# DIR into the resulting binary. 13804hardcode_direct=$hardcode_direct 13805 13806# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13807# DIR into the resulting binary and the resulting library dependency is 13808# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13809# library is relocated. 13810hardcode_direct_absolute=$hardcode_direct_absolute 13811 13812# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13813# into the resulting binary. 13814hardcode_minus_L=$hardcode_minus_L 13815 13816# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13817# into the resulting binary. 13818hardcode_shlibpath_var=$hardcode_shlibpath_var 13819 13820# Set to "yes" if building a shared library automatically hardcodes DIR 13821# into the library and all subsequent libraries and executables linked 13822# against it. 13823hardcode_automatic=$hardcode_automatic 13824 13825# Set to yes if linker adds runtime paths of dependent libraries 13826# to runtime path list. 13827inherit_rpath=$inherit_rpath 13828 13829# Whether libtool must link a program against all its dependency libraries. 13830link_all_deplibs=$link_all_deplibs 13831 13832# Fix the shell variable \$srcfile for the compiler. 13833fix_srcfile_path=$lt_fix_srcfile_path 13834 13835# Set to "yes" if exported symbols are required. 13836always_export_symbols=$always_export_symbols 13837 13838# The commands to list exported symbols. 13839export_symbols_cmds=$lt_export_symbols_cmds 13840 13841# Symbols that should not be listed in the preloaded symbols. 13842exclude_expsyms=$lt_exclude_expsyms 13843 13844# Symbols that must always be exported. 13845include_expsyms=$lt_include_expsyms 13846 13847# Commands necessary for linking programs (against libraries) with templates. 13848prelink_cmds=$lt_prelink_cmds 13849 13850# Specify filename containing input files. 13851file_list_spec=$lt_file_list_spec 13852 13853# How to hardcode a shared library path into an executable. 13854hardcode_action=$hardcode_action 13855 13856# ### END LIBTOOL CONFIG 13857 13858_LT_EOF 13859 13860 case $host_os in 13861 aix3*) 13862 cat <<\_LT_EOF >> "$cfgfile" 13863# AIX sometimes has problems with the GCC collect2 program. For some 13864# reason, if we set the COLLECT_NAMES environment variable, the problems 13865# vanish in a puff of smoke. 13866if test "X${COLLECT_NAMES+set}" != Xset; then 13867 COLLECT_NAMES= 13868 export COLLECT_NAMES 13869fi 13870_LT_EOF 13871 ;; 13872 esac 13873 13874 13875ltmain="$ac_aux_dir/ltmain.sh" 13876 13877 13878 # We use sed instead of cat because bash on DJGPP gets confused if 13879 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13880 # text mode, it properly converts lines to CR/LF. This bash problem 13881 # is reportedly fixed, but why not run on old versions too? 13882 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13883 || (rm -f "$cfgfile"; exit 1) 13884 13885 case $xsi_shell in 13886 yes) 13887 cat << \_LT_EOF >> "$cfgfile" 13888 13889# func_dirname file append nondir_replacement 13890# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13891# otherwise set result to NONDIR_REPLACEMENT. 13892func_dirname () 13893{ 13894 case ${1} in 13895 */*) func_dirname_result="${1%/*}${2}" ;; 13896 * ) func_dirname_result="${3}" ;; 13897 esac 13898} 13899 13900# func_basename file 13901func_basename () 13902{ 13903 func_basename_result="${1##*/}" 13904} 13905 13906# func_dirname_and_basename file append nondir_replacement 13907# perform func_basename and func_dirname in a single function 13908# call: 13909# dirname: Compute the dirname of FILE. If nonempty, 13910# add APPEND to the result, otherwise set result 13911# to NONDIR_REPLACEMENT. 13912# value returned in "$func_dirname_result" 13913# basename: Compute filename of FILE. 13914# value retuned in "$func_basename_result" 13915# Implementation must be kept synchronized with func_dirname 13916# and func_basename. For efficiency, we do not delegate to 13917# those functions but instead duplicate the functionality here. 13918func_dirname_and_basename () 13919{ 13920 case ${1} in 13921 */*) func_dirname_result="${1%/*}${2}" ;; 13922 * ) func_dirname_result="${3}" ;; 13923 esac 13924 func_basename_result="${1##*/}" 13925} 13926 13927# func_stripname prefix suffix name 13928# strip PREFIX and SUFFIX off of NAME. 13929# PREFIX and SUFFIX must not contain globbing or regex special 13930# characters, hashes, percent signs, but SUFFIX may contain a leading 13931# dot (in which case that matches only a dot). 13932func_stripname () 13933{ 13934 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13935 # positional parameters, so assign one to ordinary parameter first. 13936 func_stripname_result=${3} 13937 func_stripname_result=${func_stripname_result#"${1}"} 13938 func_stripname_result=${func_stripname_result%"${2}"} 13939} 13940 13941# func_opt_split 13942func_opt_split () 13943{ 13944 func_opt_split_opt=${1%%=*} 13945 func_opt_split_arg=${1#*=} 13946} 13947 13948# func_lo2o object 13949func_lo2o () 13950{ 13951 case ${1} in 13952 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13953 *) func_lo2o_result=${1} ;; 13954 esac 13955} 13956 13957# func_xform libobj-or-source 13958func_xform () 13959{ 13960 func_xform_result=${1%.*}.lo 13961} 13962 13963# func_arith arithmetic-term... 13964func_arith () 13965{ 13966 func_arith_result=$(( $* )) 13967} 13968 13969# func_len string 13970# STRING may not start with a hyphen. 13971func_len () 13972{ 13973 func_len_result=${#1} 13974} 13975 13976_LT_EOF 13977 ;; 13978 *) # Bourne compatible functions. 13979 cat << \_LT_EOF >> "$cfgfile" 13980 13981# func_dirname file append nondir_replacement 13982# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13983# otherwise set result to NONDIR_REPLACEMENT. 13984func_dirname () 13985{ 13986 # Extract subdirectory from the argument. 13987 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13988 if test "X$func_dirname_result" = "X${1}"; then 13989 func_dirname_result="${3}" 13990 else 13991 func_dirname_result="$func_dirname_result${2}" 13992 fi 13993} 13994 13995# func_basename file 13996func_basename () 13997{ 13998 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13999} 14000 14001 14002# func_stripname prefix suffix name 14003# strip PREFIX and SUFFIX off of NAME. 14004# PREFIX and SUFFIX must not contain globbing or regex special 14005# characters, hashes, percent signs, but SUFFIX may contain a leading 14006# dot (in which case that matches only a dot). 14007# func_strip_suffix prefix name 14008func_stripname () 14009{ 14010 case ${2} in 14011 .*) func_stripname_result=`$ECHO "X${3}" \ 14012 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14013 *) func_stripname_result=`$ECHO "X${3}" \ 14014 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14015 esac 14016} 14017 14018# sed scripts: 14019my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14020my_sed_long_arg='1s/^-[^=]*=//' 14021 14022# func_opt_split 14023func_opt_split () 14024{ 14025 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14026 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14027} 14028 14029# func_lo2o object 14030func_lo2o () 14031{ 14032 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14033} 14034 14035# func_xform libobj-or-source 14036func_xform () 14037{ 14038 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14039} 14040 14041# func_arith arithmetic-term... 14042func_arith () 14043{ 14044 func_arith_result=`expr "$@"` 14045} 14046 14047# func_len string 14048# STRING may not start with a hyphen. 14049func_len () 14050{ 14051 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14052} 14053 14054_LT_EOF 14055esac 14056 14057case $lt_shell_append in 14058 yes) 14059 cat << \_LT_EOF >> "$cfgfile" 14060 14061# func_append var value 14062# Append VALUE to the end of shell variable VAR. 14063func_append () 14064{ 14065 eval "$1+=\$2" 14066} 14067_LT_EOF 14068 ;; 14069 *) 14070 cat << \_LT_EOF >> "$cfgfile" 14071 14072# func_append var value 14073# Append VALUE to the end of shell variable VAR. 14074func_append () 14075{ 14076 eval "$1=\$$1\$2" 14077} 14078 14079_LT_EOF 14080 ;; 14081 esac 14082 14083 14084 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14085 || (rm -f "$cfgfile"; exit 1) 14086 14087 mv -f "$cfgfile" "$ofile" || 14088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14089 chmod +x "$ofile" 14090 14091 ;; 14092 14093 esac 14094done # for ac_tag 14095 14096 14097{ (exit 0); exit 0; } 14098_ACEOF 14099chmod +x $CONFIG_STATUS 14100ac_clean_files=$ac_clean_files_save 14101 14102test $ac_write_fail = 0 || 14103 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14104$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 14105 { (exit 1); exit 1; }; } 14106 14107 14108# configure is writing to config.log, and then calls config.status. 14109# config.status does its own redirection, appending to config.log. 14110# Unfortunately, on DOS this fails, as config.log is still kept open 14111# by configure, so config.status won't be able to write to it; its 14112# output is simply discarded. So we exec the FD to /dev/null, 14113# effectively closing config.log, so it can be properly (re)opened and 14114# appended to by config.status. When coming back to configure, we 14115# need to make the FD available again. 14116if test "$no_create" != yes; then 14117 ac_cs_success=: 14118 ac_config_status_args= 14119 test "$silent" = yes && 14120 ac_config_status_args="$ac_config_status_args --quiet" 14121 exec 5>/dev/null 14122 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14123 exec 5>>config.log 14124 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14125 # would make configure fail if this is the last instruction. 14126 $ac_cs_success || { (exit 1); exit 1; } 14127fi 14128if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14129 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14130$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14131fi 14132 14133