1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for LibTIFF Software 3.8.2. 4# 5# Report bugs to <[email protected]>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$lt_ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565ECHO=${lt_ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $ECHO works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<_LT_EOF 584$* 585_LT_EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$lt_ECHO"; then 594 if test "X${echo_test_string+set}" != Xset; then 595 # find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 600 then 601 break 602 fi 603 done 604 fi 605 606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610 else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 ECHO="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$ECHO" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 ECHO='print -r' 637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 ECHO='printf %s\n' 648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 ECHO="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 ECHO="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 ECHO=echo 686 fi 687 fi 688 fi 689 fi 690 fi 691fi 692 693# Copy echo and quote the copy suitably for passing to libtool from 694# the Makefile, instead of quoting the original, which is used later. 695lt_ECHO=$ECHO 696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698fi 699 700 701 702 703exec 7<&0 </dev/null 6>&1 704 705# Name of the host. 706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 707# so uname gets run too. 708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 709 710# 711# Initializations. 712# 713ac_default_prefix=/usr/local 714ac_clean_files= 715ac_config_libobj_dir=. 716LIBOBJS= 717cross_compiling=no 718subdirs= 719MFLAGS= 720MAKEFLAGS= 721SHELL=${CONFIG_SHELL-/bin/sh} 722 723# Identity of this package. 724PACKAGE_NAME='LibTIFF Software' 725PACKAGE_TARNAME='tiff' 726PACKAGE_VERSION='3.8.2' 727PACKAGE_STRING='LibTIFF Software 3.8.2' 728PACKAGE_BUGREPORT='[email protected]' 729 730# Factoring default headers for most tests. 731ac_includes_default="\ 732#include <stdio.h> 733#ifdef HAVE_SYS_TYPES_H 734# include <sys/types.h> 735#endif 736#ifdef HAVE_SYS_STAT_H 737# include <sys/stat.h> 738#endif 739#ifdef STDC_HEADERS 740# include <stdlib.h> 741# include <stddef.h> 742#else 743# ifdef HAVE_STDLIB_H 744# include <stdlib.h> 745# endif 746#endif 747#ifdef HAVE_STRING_H 748# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 749# include <memory.h> 750# endif 751# include <string.h> 752#endif 753#ifdef HAVE_STRINGS_H 754# include <strings.h> 755#endif 756#ifdef HAVE_INTTYPES_H 757# include <inttypes.h> 758#endif 759#ifdef HAVE_STDINT_H 760# include <stdint.h> 761#endif 762#ifdef HAVE_UNISTD_H 763# include <unistd.h> 764#endif" 765 766ac_subst_vars='SHELL 767PATH_SEPARATOR 768PACKAGE_NAME 769PACKAGE_TARNAME 770PACKAGE_VERSION 771PACKAGE_STRING 772PACKAGE_BUGREPORT 773exec_prefix 774prefix 775program_transform_name 776bindir 777sbindir 778libexecdir 779datarootdir 780datadir 781sysconfdir 782sharedstatedir 783localstatedir 784includedir 785oldincludedir 786docdir 787infodir 788htmldir 789dvidir 790pdfdir 791psdir 792libdir 793localedir 794mandir 795DEFS 796ECHO_C 797ECHO_N 798ECHO_T 799LIBS 800build_alias 801host_alias 802target_alias 803build 804build_cpu 805build_vendor 806build_os 807host 808host_cpu 809host_vendor 810host_os 811target 812target_cpu 813target_vendor 814target_os 815INSTALL_PROGRAM 816INSTALL_SCRIPT 817INSTALL_DATA 818CYGPATH_W 819PACKAGE 820VERSION 821ACLOCAL 822AUTOCONF 823AUTOMAKE 824AUTOHEADER 825MAKEINFO 826install_sh 827STRIP 828INSTALL_STRIP_PROGRAM 829mkdir_p 830AWK 831SET_MAKE 832am__leading_dot 833AMTAR 834am__tar 835am__untar 836MAINTAINER_MODE_TRUE 837MAINTAINER_MODE_FALSE 838MAINT 839LIBTIFF_MAJOR_VERSION 840LIBTIFF_MINOR_VERSION 841LIBTIFF_MICRO_VERSION 842LIBTIFF_ALPHA_VERSION 843LIBTIFF_VERSION 844LIBTIFF_VERSION_INFO 845LIBTIFF_RELEASE_DATE 846CC 847CFLAGS 848LDFLAGS 849CPPFLAGS 850ac_ct_CC 851EXEEXT 852OBJEXT 853DEPDIR 854am__include 855am__quote 856AMDEP_TRUE 857AMDEP_FALSE 858AMDEPBACKSLASH 859CCDEPMODE 860am__fastdepCC_TRUE 861am__fastdepCC_FALSE 862LN_S 863AS 864DLLTOOL 865OBJDUMP 866LIBTOOL 867SED 868GREP 869EGREP 870FGREP 871LD 872DUMPBIN 873ac_ct_DUMPBIN 874NM 875AR 876RANLIB 877lt_ECHO 878CPP 879LIBOBJS 880HAVE_RPATH_TRUE 881HAVE_RPATH_FALSE 882LIBTIFF_DOCDIR 883HAVE_CXX_TRUE 884HAVE_CXX_FALSE 885XMKMF 886X_CFLAGS 887X_PRE_LIBS 888X_LIBS 889X_EXTRA_LIBS 890acx_pthread_config 891PTHREAD_CC 892PTHREAD_LIBS 893PTHREAD_CFLAGS 894GL_CFLAGS 895GL_LIBS 896CXX 897CXXFLAGS 898ac_ct_CXX 899CXXDEPMODE 900am__fastdepCXX_TRUE 901am__fastdepCXX_FALSE 902CXXCPP 903GLU_CFLAGS 904GLU_LIBS 905GLUT_CFLAGS 906GLUT_LIBS 907HAVE_OPENGL_TRUE 908HAVE_OPENGL_FALSE 909LIBDIR 910LTLIBOBJS' 911ac_subst_files='' 912 ac_precious_vars='build_alias 913host_alias 914target_alias 915CC 916CFLAGS 917LDFLAGS 918LIBS 919CPPFLAGS 920CPP 921XMKMF 922CXX 923CXXFLAGS 924CCC 925CXXCPP' 926 927 928# Initialize some variables set by options. 929ac_init_help= 930ac_init_version=false 931# The variables have the same names as the options, with 932# dashes changed to underlines. 933cache_file=/dev/null 934exec_prefix=NONE 935no_create= 936no_recursion= 937prefix=NONE 938program_prefix=NONE 939program_suffix=NONE 940program_transform_name=s,x,x, 941silent= 942site= 943srcdir= 944verbose= 945x_includes=NONE 946x_libraries=NONE 947 948# Installation directory options. 949# These are left unexpanded so users can "make install exec_prefix=/foo" 950# and all the variables that are supposed to be based on exec_prefix 951# by default will actually change. 952# Use braces instead of parens because sh, perl, etc. also accept them. 953# (The list follows the same order as the GNU Coding Standards.) 954bindir='${exec_prefix}/bin' 955sbindir='${exec_prefix}/sbin' 956libexecdir='${exec_prefix}/libexec' 957datarootdir='${prefix}/share' 958datadir='${datarootdir}' 959sysconfdir='${prefix}/etc' 960sharedstatedir='${prefix}/com' 961localstatedir='${prefix}/var' 962includedir='${prefix}/include' 963oldincludedir='/usr/include' 964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 965infodir='${datarootdir}/info' 966htmldir='${docdir}' 967dvidir='${docdir}' 968pdfdir='${docdir}' 969psdir='${docdir}' 970libdir='${exec_prefix}/lib' 971localedir='${datarootdir}/locale' 972mandir='${datarootdir}/man' 973 974ac_prev= 975ac_dashdash= 976for ac_option 977do 978 # If the previous option needs an argument, assign it. 979 if test -n "$ac_prev"; then 980 eval $ac_prev=\$ac_option 981 ac_prev= 982 continue 983 fi 984 985 case $ac_option in 986 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 987 *) ac_optarg=yes ;; 988 esac 989 990 # Accept the important Cygnus configure options, so we can diagnose typos. 991 992 case $ac_dashdash$ac_option in 993 --) 994 ac_dashdash=yes ;; 995 996 -bindir | --bindir | --bindi | --bind | --bin | --bi) 997 ac_prev=bindir ;; 998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 999 bindir=$ac_optarg ;; 1000 1001 -build | --build | --buil | --bui | --bu) 1002 ac_prev=build_alias ;; 1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1004 build_alias=$ac_optarg ;; 1005 1006 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1008 ac_prev=cache_file ;; 1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1011 cache_file=$ac_optarg ;; 1012 1013 --config-cache | -C) 1014 cache_file=config.cache ;; 1015 1016 -datadir | --datadir | --datadi | --datad) 1017 ac_prev=datadir ;; 1018 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1019 datadir=$ac_optarg ;; 1020 1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1022 | --dataroo | --dataro | --datar) 1023 ac_prev=datarootdir ;; 1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1026 datarootdir=$ac_optarg ;; 1027 1028 -disable-* | --disable-*) 1029 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1032 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1033 { (exit 1); exit 1; }; } 1034 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1035 eval enable_$ac_feature=no ;; 1036 1037 -docdir | --docdir | --docdi | --doc | --do) 1038 ac_prev=docdir ;; 1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1040 docdir=$ac_optarg ;; 1041 1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1043 ac_prev=dvidir ;; 1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1045 dvidir=$ac_optarg ;; 1046 1047 -enable-* | --enable-*) 1048 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1049 # Reject names that are not valid shell variable names. 1050 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1052 { (exit 1); exit 1; }; } 1053 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1054 eval enable_$ac_feature=\$ac_optarg ;; 1055 1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1058 | --exec | --exe | --ex) 1059 ac_prev=exec_prefix ;; 1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1062 | --exec=* | --exe=* | --ex=*) 1063 exec_prefix=$ac_optarg ;; 1064 1065 -gas | --gas | --ga | --g) 1066 # Obsolete; use --with-gas. 1067 with_gas=yes ;; 1068 1069 -help | --help | --hel | --he | -h) 1070 ac_init_help=long ;; 1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1072 ac_init_help=recursive ;; 1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1074 ac_init_help=short ;; 1075 1076 -host | --host | --hos | --ho) 1077 ac_prev=host_alias ;; 1078 -host=* | --host=* | --hos=* | --ho=*) 1079 host_alias=$ac_optarg ;; 1080 1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1082 ac_prev=htmldir ;; 1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1084 | --ht=*) 1085 htmldir=$ac_optarg ;; 1086 1087 -includedir | --includedir | --includedi | --included | --include \ 1088 | --includ | --inclu | --incl | --inc) 1089 ac_prev=includedir ;; 1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1091 | --includ=* | --inclu=* | --incl=* | --inc=*) 1092 includedir=$ac_optarg ;; 1093 1094 -infodir | --infodir | --infodi | --infod | --info | --inf) 1095 ac_prev=infodir ;; 1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1097 infodir=$ac_optarg ;; 1098 1099 -libdir | --libdir | --libdi | --libd) 1100 ac_prev=libdir ;; 1101 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1102 libdir=$ac_optarg ;; 1103 1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1105 | --libexe | --libex | --libe) 1106 ac_prev=libexecdir ;; 1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1108 | --libexe=* | --libex=* | --libe=*) 1109 libexecdir=$ac_optarg ;; 1110 1111 -localedir | --localedir | --localedi | --localed | --locale) 1112 ac_prev=localedir ;; 1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1114 localedir=$ac_optarg ;; 1115 1116 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1117 | --localstate | --localstat | --localsta | --localst | --locals) 1118 ac_prev=localstatedir ;; 1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1121 localstatedir=$ac_optarg ;; 1122 1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1124 ac_prev=mandir ;; 1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1126 mandir=$ac_optarg ;; 1127 1128 -nfp | --nfp | --nf) 1129 # Obsolete; use --without-fp. 1130 with_fp=no ;; 1131 1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1133 | --no-cr | --no-c | -n) 1134 no_create=yes ;; 1135 1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1138 no_recursion=yes ;; 1139 1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1142 | --oldin | --oldi | --old | --ol | --o) 1143 ac_prev=oldincludedir ;; 1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1147 oldincludedir=$ac_optarg ;; 1148 1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1150 ac_prev=prefix ;; 1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1152 prefix=$ac_optarg ;; 1153 1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1155 | --program-pre | --program-pr | --program-p) 1156 ac_prev=program_prefix ;; 1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1159 program_prefix=$ac_optarg ;; 1160 1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1162 | --program-suf | --program-su | --program-s) 1163 ac_prev=program_suffix ;; 1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1166 program_suffix=$ac_optarg ;; 1167 1168 -program-transform-name | --program-transform-name \ 1169 | --program-transform-nam | --program-transform-na \ 1170 | --program-transform-n | --program-transform- \ 1171 | --program-transform | --program-transfor \ 1172 | --program-transfo | --program-transf \ 1173 | --program-trans | --program-tran \ 1174 | --progr-tra | --program-tr | --program-t) 1175 ac_prev=program_transform_name ;; 1176 -program-transform-name=* | --program-transform-name=* \ 1177 | --program-transform-nam=* | --program-transform-na=* \ 1178 | --program-transform-n=* | --program-transform-=* \ 1179 | --program-transform=* | --program-transfor=* \ 1180 | --program-transfo=* | --program-transf=* \ 1181 | --program-trans=* | --program-tran=* \ 1182 | --progr-tra=* | --program-tr=* | --program-t=*) 1183 program_transform_name=$ac_optarg ;; 1184 1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1186 ac_prev=pdfdir ;; 1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1188 pdfdir=$ac_optarg ;; 1189 1190 -psdir | --psdir | --psdi | --psd | --ps) 1191 ac_prev=psdir ;; 1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1193 psdir=$ac_optarg ;; 1194 1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1196 | -silent | --silent | --silen | --sile | --sil) 1197 silent=yes ;; 1198 1199 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1200 ac_prev=sbindir ;; 1201 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1202 | --sbi=* | --sb=*) 1203 sbindir=$ac_optarg ;; 1204 1205 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1206 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1207 | --sharedst | --shareds | --shared | --share | --shar \ 1208 | --sha | --sh) 1209 ac_prev=sharedstatedir ;; 1210 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1211 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1212 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1213 | --sha=* | --sh=*) 1214 sharedstatedir=$ac_optarg ;; 1215 1216 -site | --site | --sit) 1217 ac_prev=site ;; 1218 -site=* | --site=* | --sit=*) 1219 site=$ac_optarg ;; 1220 1221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1222 ac_prev=srcdir ;; 1223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1224 srcdir=$ac_optarg ;; 1225 1226 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1227 | --syscon | --sysco | --sysc | --sys | --sy) 1228 ac_prev=sysconfdir ;; 1229 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1230 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1231 sysconfdir=$ac_optarg ;; 1232 1233 -target | --target | --targe | --targ | --tar | --ta | --t) 1234 ac_prev=target_alias ;; 1235 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1236 target_alias=$ac_optarg ;; 1237 1238 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1239 verbose=yes ;; 1240 1241 -version | --version | --versio | --versi | --vers | -V) 1242 ac_init_version=: ;; 1243 1244 -with-* | --with-*) 1245 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1246 # Reject names that are not valid shell variable names. 1247 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1248 { echo "$as_me: error: invalid package name: $ac_package" >&2 1249 { (exit 1); exit 1; }; } 1250 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1251 eval with_$ac_package=\$ac_optarg ;; 1252 1253 -without-* | --without-*) 1254 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1255 # Reject names that are not valid shell variable names. 1256 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1257 { echo "$as_me: error: invalid package name: $ac_package" >&2 1258 { (exit 1); exit 1; }; } 1259 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1260 eval with_$ac_package=no ;; 1261 1262 --x) 1263 # Obsolete; use --with-x. 1264 with_x=yes ;; 1265 1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1267 | --x-incl | --x-inc | --x-in | --x-i) 1268 ac_prev=x_includes ;; 1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1271 x_includes=$ac_optarg ;; 1272 1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1275 ac_prev=x_libraries ;; 1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1278 x_libraries=$ac_optarg ;; 1279 1280 -*) { echo "$as_me: error: unrecognized option: $ac_option 1281Try \`$0 --help' for more information." >&2 1282 { (exit 1); exit 1; }; } 1283 ;; 1284 1285 *=*) 1286 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1289 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1290 { (exit 1); exit 1; }; } 1291 eval $ac_envvar=\$ac_optarg 1292 export $ac_envvar ;; 1293 1294 *) 1295 # FIXME: should be removed in autoconf 3.0. 1296 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1298 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1299 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1300 ;; 1301 1302 esac 1303done 1304 1305if test -n "$ac_prev"; then 1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1307 { echo "$as_me: error: missing argument to $ac_option" >&2 1308 { (exit 1); exit 1; }; } 1309fi 1310 1311# Be sure to have absolute directory names. 1312for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1313 datadir sysconfdir sharedstatedir localstatedir includedir \ 1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1315 libdir localedir mandir 1316do 1317 eval ac_val=\$$ac_var 1318 case $ac_val in 1319 [\\/$]* | ?:[\\/]* ) continue;; 1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1321 esac 1322 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1323 { (exit 1); exit 1; }; } 1324done 1325 1326# There might be people who depend on the old broken behavior: `$host' 1327# used to hold the argument of --host etc. 1328# FIXME: To remove some day. 1329build=$build_alias 1330host=$host_alias 1331target=$target_alias 1332 1333# FIXME: To remove some day. 1334if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1338 If a cross compiler is detected then cross compile mode will be used." >&2 1339 elif test "x$build_alias" != "x$host_alias"; then 1340 cross_compiling=yes 1341 fi 1342fi 1343 1344ac_tool_prefix= 1345test -n "$host_alias" && ac_tool_prefix=$host_alias- 1346 1347test "$silent" = yes && exec 6>/dev/null 1348 1349 1350ac_pwd=`pwd` && test -n "$ac_pwd" && 1351ac_ls_di=`ls -di .` && 1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1353 { echo "$as_me: error: Working directory cannot be determined" >&2 1354 { (exit 1); exit 1; }; } 1355test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1356 { echo "$as_me: error: pwd does not report name of working directory" >&2 1357 { (exit 1); exit 1; }; } 1358 1359 1360# Find the source files, if location was not specified. 1361if test -z "$srcdir"; then 1362 ac_srcdir_defaulted=yes 1363 # Try the directory containing this script, then the parent directory. 1364 ac_confdir=`$as_dirname -- "$0" || 1365$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1366 X"$0" : 'X\(//\)[^/]' \| \ 1367 X"$0" : 'X\(//\)$' \| \ 1368 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1369echo X"$0" | 1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)[^/].*/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\/\)$/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\).*/{ 1383 s//\1/ 1384 q 1385 } 1386 s/.*/./; q'` 1387 srcdir=$ac_confdir 1388 if test ! -r "$srcdir/$ac_unique_file"; then 1389 srcdir=.. 1390 fi 1391else 1392 ac_srcdir_defaulted=no 1393fi 1394if test ! -r "$srcdir/$ac_unique_file"; then 1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1396 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1397 { (exit 1); exit 1; }; } 1398fi 1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1400ac_abs_confdir=`( 1401 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1402 { (exit 1); exit 1; }; } 1403 pwd)` 1404# When building in place, set srcdir=. 1405if test "$ac_abs_confdir" = "$ac_pwd"; then 1406 srcdir=. 1407fi 1408# Remove unnecessary trailing slashes from srcdir. 1409# Double slashes in file names in object file debugging info 1410# mess up M-x gdb in Emacs. 1411case $srcdir in 1412*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1413esac 1414for ac_var in $ac_precious_vars; do 1415 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1416 eval ac_env_${ac_var}_value=\$${ac_var} 1417 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1418 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1419done 1420 1421# 1422# Report the --help message. 1423# 1424if test "$ac_init_help" = "long"; then 1425 # Omit some internal or obsolete options to make the list less imposing. 1426 # This message is too long to be a string in the A/UX 3.1 sh. 1427 cat <<_ACEOF 1428\`configure' configures LibTIFF Software 3.8.2 to adapt to many kinds of systems. 1429 1430Usage: $0 [OPTION]... [VAR=VALUE]... 1431 1432To assign environment variables (e.g., CC, CFLAGS...), specify them as 1433VAR=VALUE. See below for descriptions of some of the useful variables. 1434 1435Defaults for the options are specified in brackets. 1436 1437Configuration: 1438 -h, --help display this help and exit 1439 --help=short display options specific to this package 1440 --help=recursive display the short help of all the included packages 1441 -V, --version display version information and exit 1442 -q, --quiet, --silent do not print \`checking...' messages 1443 --cache-file=FILE cache test results in FILE [disabled] 1444 -C, --config-cache alias for \`--cache-file=config.cache' 1445 -n, --no-create do not create output files 1446 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1447 1448Installation directories: 1449 --prefix=PREFIX install architecture-independent files in PREFIX 1450 [$ac_default_prefix] 1451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1452 [PREFIX] 1453 1454By default, \`make install' will install all the files in 1455\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1456an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1457for instance \`--prefix=\$HOME'. 1458 1459For better control, use the options below. 1460 1461Fine tuning of the installation directories: 1462 --bindir=DIR user executables [EPREFIX/bin] 1463 --sbindir=DIR system admin executables [EPREFIX/sbin] 1464 --libexecdir=DIR program executables [EPREFIX/libexec] 1465 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1466 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1467 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1468 --libdir=DIR object code libraries [EPREFIX/lib] 1469 --includedir=DIR C header files [PREFIX/include] 1470 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1473 --infodir=DIR info documentation [DATAROOTDIR/info] 1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1475 --mandir=DIR man documentation [DATAROOTDIR/man] 1476 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff] 1477 --htmldir=DIR html documentation [DOCDIR] 1478 --dvidir=DIR dvi documentation [DOCDIR] 1479 --pdfdir=DIR pdf documentation [DOCDIR] 1480 --psdir=DIR ps documentation [DOCDIR] 1481_ACEOF 1482 1483 cat <<\_ACEOF 1484 1485Program names: 1486 --program-prefix=PREFIX prepend PREFIX to installed program names 1487 --program-suffix=SUFFIX append SUFFIX to installed program names 1488 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1489 1490X features: 1491 --x-includes=DIR X include files are in DIR 1492 --x-libraries=DIR X library files are in DIR 1493 1494System types: 1495 --build=BUILD configure for building on BUILD [guessed] 1496 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1497 --target=TARGET configure for building compilers for TARGET [HOST] 1498_ACEOF 1499fi 1500 1501if test -n "$ac_init_help"; then 1502 case $ac_init_help in 1503 short | recursive ) echo "Configuration of LibTIFF Software 3.8.2:";; 1504 esac 1505 cat <<\_ACEOF 1506 1507Optional Features: 1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1510 --enable-maintainer-mode enable make rules and dependencies not useful 1511 (and sometimes confusing) to the casual installer 1512 --disable-dependency-tracking speeds up one-time build 1513 --enable-dependency-tracking do not reject slow dependency extractors 1514 --enable-shared[=PKGS] build shared libraries [default=yes] 1515 --enable-static[=PKGS] build static libraries [default=yes] 1516 --enable-fast-install[=PKGS] 1517 optimize for fast installation [default=yes] 1518 --disable-libtool-lock avoid locking (might break parallel builds) 1519 --enable-rpath Enable runtime linker paths (-R libtool option) 1520 --disable-largefile omit support for large files 1521 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms 1522 --disable-packbits disable support for Macintosh PackBits algorithm 1523 --disable-lzw disable support for LZW algorithm 1524 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm 1525 --disable-next disable support for NeXT 2-bit RLE algorithm 1526 --disable-logluv disable support for LogLuv high dynamic range 1527 encoding 1528 --disable-mdi disable support for Microsoft Document Imaging 1529 --disable-zlib disable Zlib usage (required for Deflate 1530 compression, enabled by default) 1531 --disable-pixarlog disable support for Pixar log-format algorithm 1532 (requires Zlib) 1533 --disable-jpeg disable IJG JPEG library usage (required for JPEG 1534 compression, enabled by default) 1535 --disable-old-jpeg disable support for Old JPEG compresson (read-only, 1536 enabled by default) 1537 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG 1538 compression, enabled by default) 1539 --enable-cxx enable C++ stream API building (requires C++ 1540 compiler) 1541 --disable-strip-chopping 1542 disable support for strip chopping (whether or not 1543 to convert single-strip uncompressed images to 1544 mutiple strips of specified size to reduce memory 1545 usage) 1546 --disable-extrasample-as-alpha 1547 the RGBA interface will treat a fourth sample with 1548 no EXTRASAMPLE_ value as being ASSOCALPHA. Many 1549 packages produce RGBA files but don't mark the alpha 1550 properly 1551 --disable-check-ycbcr-subsampling 1552 disable picking up YCbCr subsampling info from the 1553 JPEG data stream to support files lacking the tag 1554 1555Optional Packages: 1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1558 --with-pic try to use only PIC/non-PIC objects [default=use 1559 both] 1560 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1561 --with-docdir=DIR directory where documentation should be installed 1562 --with-zlib-include-dir=DIR 1563 location of Zlib headers 1564 --with-zlib-lib-dir=DIR location of Zlib library binary 1565 --with-jpeg-include-dir=DIR 1566 location of IJG JPEG library headers 1567 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary 1568 --with-jbig-include-dir=DIR 1569 location of JBIG-KIT headers 1570 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary 1571 --with-x use the X Window System 1572 --with-apple-opengl-framework 1573 use Apple OpenGL framework (Mac OS X only) 1574 --with-default-strip-size=SIZE 1575 default size of the strip in bytes (when strip 1576 chopping enabled) [default=8192] 1577 1578Some influential environment variables: 1579 CC C compiler command 1580 CFLAGS C compiler flags 1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1582 nonstandard directory <lib dir> 1583 LIBS libraries to pass to the linker, e.g. -l<library> 1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1585 you have headers in a nonstandard directory <include dir> 1586 CPP C preprocessor 1587 XMKMF Path to xmkmf, Makefile generator for X Window System 1588 CXX C++ compiler command 1589 CXXFLAGS C++ compiler flags 1590 CXXCPP C++ preprocessor 1591 1592Use these variables to override the choices made by `configure' or to help 1593it to find libraries and programs with nonstandard names/locations. 1594 1595Report bugs to <tiff@lists.maptools.org>. 1596_ACEOF 1597ac_status=$? 1598fi 1599 1600if test "$ac_init_help" = "recursive"; then 1601 # If there are subdirs, report their specific --help. 1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1603 test -d "$ac_dir" || continue 1604 ac_builddir=. 1605 1606case "$ac_dir" in 1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1608*) 1609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1610 # A ".." for each directory in $ac_dir_suffix. 1611 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1612 case $ac_top_builddir_sub in 1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1615 esac ;; 1616esac 1617ac_abs_top_builddir=$ac_pwd 1618ac_abs_builddir=$ac_pwd$ac_dir_suffix 1619# for backward compatibility: 1620ac_top_builddir=$ac_top_build_prefix 1621 1622case $srcdir in 1623 .) # We are building in place. 1624 ac_srcdir=. 1625 ac_top_srcdir=$ac_top_builddir_sub 1626 ac_abs_top_srcdir=$ac_pwd ;; 1627 [\\/]* | ?:[\\/]* ) # Absolute name. 1628 ac_srcdir=$srcdir$ac_dir_suffix; 1629 ac_top_srcdir=$srcdir 1630 ac_abs_top_srcdir=$srcdir ;; 1631 *) # Relative name. 1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1633 ac_top_srcdir=$ac_top_build_prefix$srcdir 1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1635esac 1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1637 1638 cd "$ac_dir" || { ac_status=$?; continue; } 1639 # Check for guested configure. 1640 if test -f "$ac_srcdir/configure.gnu"; then 1641 echo && 1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1643 elif test -f "$ac_srcdir/configure"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure" --help=recursive 1646 else 1647 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1648 fi || ac_status=$? 1649 cd "$ac_pwd" || { ac_status=$?; break; } 1650 done 1651fi 1652 1653test -n "$ac_init_help" && exit $ac_status 1654if $ac_init_version; then 1655 cat <<\_ACEOF 1656LibTIFF Software configure 3.8.2 1657generated by GNU Autoconf 2.61 1658 1659Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1661This configure script is free software; the Free Software Foundation 1662gives unlimited permission to copy, distribute and modify it. 1663_ACEOF 1664 exit 1665fi 1666cat >config.log <<_ACEOF 1667This file contains any messages produced by compilers while 1668running configure, to aid debugging if configure makes a mistake. 1669 1670It was created by LibTIFF Software $as_me 3.8.2, which was 1671generated by GNU Autoconf 2.61. Invocation command line was 1672 1673 $ $0 $@ 1674 1675_ACEOF 1676exec 5>>config.log 1677{ 1678cat <<_ASUNAME 1679## --------- ## 1680## Platform. ## 1681## --------- ## 1682 1683hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1684uname -m = `(uname -m) 2>/dev/null || echo unknown` 1685uname -r = `(uname -r) 2>/dev/null || echo unknown` 1686uname -s = `(uname -s) 2>/dev/null || echo unknown` 1687uname -v = `(uname -v) 2>/dev/null || echo unknown` 1688 1689/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1690/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1691 1692/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1693/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1694/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1695/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1696/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1697/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1698/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1699 1700_ASUNAME 1701 1702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1703for as_dir in $PATH 1704do 1705 IFS=$as_save_IFS 1706 test -z "$as_dir" && as_dir=. 1707 echo "PATH: $as_dir" 1708done 1709IFS=$as_save_IFS 1710 1711} >&5 1712 1713cat >&5 <<_ACEOF 1714 1715 1716## ----------- ## 1717## Core tests. ## 1718## ----------- ## 1719 1720_ACEOF 1721 1722 1723# Keep a trace of the command line. 1724# Strip out --no-create and --no-recursion so they do not pile up. 1725# Strip out --silent because we don't want to record it for future runs. 1726# Also quote any args containing shell meta-characters. 1727# Make two passes to allow for proper duplicate-argument suppression. 1728ac_configure_args= 1729ac_configure_args0= 1730ac_configure_args1= 1731ac_must_keep_next=false 1732for ac_pass in 1 2 1733do 1734 for ac_arg 1735 do 1736 case $ac_arg in 1737 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1739 | -silent | --silent | --silen | --sile | --sil) 1740 continue ;; 1741 *\'*) 1742 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1743 esac 1744 case $ac_pass in 1745 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1746 2) 1747 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1748 if test $ac_must_keep_next = true; then 1749 ac_must_keep_next=false # Got value, back to normal. 1750 else 1751 case $ac_arg in 1752 *=* | --config-cache | -C | -disable-* | --disable-* \ 1753 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1754 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1755 | -with-* | --with-* | -without-* | --without-* | --x) 1756 case "$ac_configure_args0 " in 1757 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1758 esac 1759 ;; 1760 -* ) ac_must_keep_next=true ;; 1761 esac 1762 fi 1763 ac_configure_args="$ac_configure_args '$ac_arg'" 1764 ;; 1765 esac 1766 done 1767done 1768$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1769$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1770 1771# When interrupted or exit'd, cleanup temporary files, and complete 1772# config.log. We remove comments because anyway the quotes in there 1773# would cause problems or look ugly. 1774# WARNING: Use '\'' to represent an apostrophe within the trap. 1775# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1776trap 'exit_status=$? 1777 # Save into config.log some information that might help in debugging. 1778 { 1779 echo 1780 1781 cat <<\_ASBOX 1782## ---------------- ## 1783## Cache variables. ## 1784## ---------------- ## 1785_ASBOX 1786 echo 1787 # The following way of writing the cache mishandles newlines in values, 1788( 1789 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1790 eval ac_val=\$$ac_var 1791 case $ac_val in #( 1792 *${as_nl}*) 1793 case $ac_var in #( 1794 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1795echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1796 esac 1797 case $ac_var in #( 1798 _ | IFS | as_nl) ;; #( 1799 *) $as_unset $ac_var ;; 1800 esac ;; 1801 esac 1802 done 1803 (set) 2>&1 | 1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1805 *${as_nl}ac_space=\ *) 1806 sed -n \ 1807 "s/'\''/'\''\\\\'\'''\''/g; 1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1809 ;; #( 1810 *) 1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1812 ;; 1813 esac | 1814 sort 1815) 1816 echo 1817 1818 cat <<\_ASBOX 1819## ----------------- ## 1820## Output variables. ## 1821## ----------------- ## 1822_ASBOX 1823 echo 1824 for ac_var in $ac_subst_vars 1825 do 1826 eval ac_val=\$$ac_var 1827 case $ac_val in 1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1829 esac 1830 echo "$ac_var='\''$ac_val'\''" 1831 done | sort 1832 echo 1833 1834 if test -n "$ac_subst_files"; then 1835 cat <<\_ASBOX 1836## ------------------- ## 1837## File substitutions. ## 1838## ------------------- ## 1839_ASBOX 1840 echo 1841 for ac_var in $ac_subst_files 1842 do 1843 eval ac_val=\$$ac_var 1844 case $ac_val in 1845 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1846 esac 1847 echo "$ac_var='\''$ac_val'\''" 1848 done | sort 1849 echo 1850 fi 1851 1852 if test -s confdefs.h; then 1853 cat <<\_ASBOX 1854## ----------- ## 1855## confdefs.h. ## 1856## ----------- ## 1857_ASBOX 1858 echo 1859 cat confdefs.h 1860 echo 1861 fi 1862 test "$ac_signal" != 0 && 1863 echo "$as_me: caught signal $ac_signal" 1864 echo "$as_me: exit $exit_status" 1865 } >&5 1866 rm -f core *.core core.conftest.* && 1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1868 exit $exit_status 1869' 0 1870for ac_signal in 1 2 13 15; do 1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1872done 1873ac_signal=0 1874 1875# confdefs.h avoids OS command line length limits that DEFS can exceed. 1876rm -f -r conftest* confdefs.h 1877 1878# Predefined preprocessor variables. 1879 1880cat >>confdefs.h <<_ACEOF 1881#define PACKAGE_NAME "$PACKAGE_NAME" 1882_ACEOF 1883 1884 1885cat >>confdefs.h <<_ACEOF 1886#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1887_ACEOF 1888 1889 1890cat >>confdefs.h <<_ACEOF 1891#define PACKAGE_VERSION "$PACKAGE_VERSION" 1892_ACEOF 1893 1894 1895cat >>confdefs.h <<_ACEOF 1896#define PACKAGE_STRING "$PACKAGE_STRING" 1897_ACEOF 1898 1899 1900cat >>confdefs.h <<_ACEOF 1901#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1902_ACEOF 1903 1904 1905# Let the site file select an alternate cache file if it wants to. 1906# Prefer explicitly selected file to automatically selected ones. 1907if test -n "$CONFIG_SITE"; then 1908 set x "$CONFIG_SITE" 1909elif test "x$prefix" != xNONE; then 1910 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1911else 1912 set x "$ac_default_prefix/share/config.site" \ 1913 "$ac_default_prefix/etc/config.site" 1914fi 1915shift 1916for ac_site_file 1917do 1918 if test -r "$ac_site_file"; then 1919 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1920echo "$as_me: loading site script $ac_site_file" >&6;} 1921 sed 's/^/| /' "$ac_site_file" >&5 1922 . "$ac_site_file" 1923 fi 1924done 1925 1926if test -r "$cache_file"; then 1927 # Some versions of bash will fail to source /dev/null (special 1928 # files actually), so we avoid doing that. 1929 if test -f "$cache_file"; then 1930 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1931echo "$as_me: loading cache $cache_file" >&6;} 1932 case $cache_file in 1933 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1934 *) . "./$cache_file";; 1935 esac 1936 fi 1937else 1938 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1939echo "$as_me: creating cache $cache_file" >&6;} 1940 >$cache_file 1941fi 1942 1943# Check that the precious variables saved in the cache have kept the same 1944# value. 1945ac_cache_corrupted=false 1946for ac_var in $ac_precious_vars; do 1947 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1948 eval ac_new_set=\$ac_env_${ac_var}_set 1949 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1950 eval ac_new_val=\$ac_env_${ac_var}_value 1951 case $ac_old_set,$ac_new_set in 1952 set,) 1953 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1954echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1955 ac_cache_corrupted=: ;; 1956 ,set) 1957 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1958echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1959 ac_cache_corrupted=: ;; 1960 ,);; 1961 *) 1962 if test "x$ac_old_val" != "x$ac_new_val"; then 1963 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1964echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1965 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1966echo "$as_me: former value: $ac_old_val" >&2;} 1967 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1968echo "$as_me: current value: $ac_new_val" >&2;} 1969 ac_cache_corrupted=: 1970 fi;; 1971 esac 1972 # Pass precious variables to config.status. 1973 if test "$ac_new_set" = set; then 1974 case $ac_new_val in 1975 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1976 *) ac_arg=$ac_var=$ac_new_val ;; 1977 esac 1978 case " $ac_configure_args " in 1979 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1980 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1981 esac 1982 fi 1983done 1984if $ac_cache_corrupted; then 1985 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1986echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1987 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1988echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1989 { (exit 1); exit 1; }; } 1990fi 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016ac_ext=c 2017ac_cpp='$CPP $CPPFLAGS' 2018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2020ac_compiler_gnu=$ac_cv_c_compiler_gnu 2021 2022 2023ac_aux_dir= 2024for ac_dir in config "$srcdir"/config; do 2025 if test -f "$ac_dir/install-sh"; then 2026 ac_aux_dir=$ac_dir 2027 ac_install_sh="$ac_aux_dir/install-sh -c" 2028 break 2029 elif test -f "$ac_dir/install.sh"; then 2030 ac_aux_dir=$ac_dir 2031 ac_install_sh="$ac_aux_dir/install.sh -c" 2032 break 2033 elif test -f "$ac_dir/shtool"; then 2034 ac_aux_dir=$ac_dir 2035 ac_install_sh="$ac_aux_dir/shtool install -c" 2036 break 2037 fi 2038done 2039if test -z "$ac_aux_dir"; then 2040 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 2041echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 2042 { (exit 1); exit 1; }; } 2043fi 2044 2045# These three variables are undocumented and unsupported, 2046# and are intended to be withdrawn in a future Autoconf release. 2047# They can cause serious problems if a builder's source tree is in a directory 2048# whose full name contains unusual characters. 2049ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2050ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2051ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2052 2053 2054 2055ac_ext=c 2056ac_cpp='$CPP $CPPFLAGS' 2057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2059ac_compiler_gnu=$ac_cv_c_compiler_gnu 2060 2061 2062# Make sure we can run config.sub. 2063$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2064 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2065echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2066 { (exit 1); exit 1; }; } 2067 2068{ echo "$as_me:$LINENO: checking build system type" >&5 2069echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2070if test "${ac_cv_build+set}" = set; then 2071 echo $ECHO_N "(cached) $ECHO_C" >&6 2072else 2073 ac_build_alias=$build_alias 2074test "x$ac_build_alias" = x && 2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2076test "x$ac_build_alias" = x && 2077 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2078echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2079 { (exit 1); exit 1; }; } 2080ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2082echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2083 { (exit 1); exit 1; }; } 2084 2085fi 2086{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2087echo "${ECHO_T}$ac_cv_build" >&6; } 2088case $ac_cv_build in 2089*-*-*) ;; 2090*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2091echo "$as_me: error: invalid value of canonical build" >&2;} 2092 { (exit 1); exit 1; }; };; 2093esac 2094build=$ac_cv_build 2095ac_save_IFS=$IFS; IFS='-' 2096set x $ac_cv_build 2097shift 2098build_cpu=$1 2099build_vendor=$2 2100shift; shift 2101# Remember, the first character of IFS is used to create $*, 2102# except with old shells: 2103build_os=$* 2104IFS=$ac_save_IFS 2105case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2106 2107 2108{ echo "$as_me:$LINENO: checking host system type" >&5 2109echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2110if test "${ac_cv_host+set}" = set; then 2111 echo $ECHO_N "(cached) $ECHO_C" >&6 2112else 2113 if test "x$host_alias" = x; then 2114 ac_cv_host=$ac_cv_build 2115else 2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2117 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2118echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2119 { (exit 1); exit 1; }; } 2120fi 2121 2122fi 2123{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2124echo "${ECHO_T}$ac_cv_host" >&6; } 2125case $ac_cv_host in 2126*-*-*) ;; 2127*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2128echo "$as_me: error: invalid value of canonical host" >&2;} 2129 { (exit 1); exit 1; }; };; 2130esac 2131host=$ac_cv_host 2132ac_save_IFS=$IFS; IFS='-' 2133set x $ac_cv_host 2134shift 2135host_cpu=$1 2136host_vendor=$2 2137shift; shift 2138# Remember, the first character of IFS is used to create $*, 2139# except with old shells: 2140host_os=$* 2141IFS=$ac_save_IFS 2142case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2143 2144 2145{ echo "$as_me:$LINENO: checking target system type" >&5 2146echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2147if test "${ac_cv_target+set}" = set; then 2148 echo $ECHO_N "(cached) $ECHO_C" >&6 2149else 2150 if test "x$target_alias" = x; then 2151 ac_cv_target=$ac_cv_host 2152else 2153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2154 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2155echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2156 { (exit 1); exit 1; }; } 2157fi 2158 2159fi 2160{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2161echo "${ECHO_T}$ac_cv_target" >&6; } 2162case $ac_cv_target in 2163*-*-*) ;; 2164*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2165echo "$as_me: error: invalid value of canonical target" >&2;} 2166 { (exit 1); exit 1; }; };; 2167esac 2168target=$ac_cv_target 2169ac_save_IFS=$IFS; IFS='-' 2170set x $ac_cv_target 2171shift 2172target_cpu=$1 2173target_vendor=$2 2174shift; shift 2175# Remember, the first character of IFS is used to create $*, 2176# except with old shells: 2177target_os=$* 2178IFS=$ac_save_IFS 2179case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2180 2181 2182# The aliases save the names the user supplied, while $host etc. 2183# will get canonicalized. 2184test -n "$target_alias" && 2185 test "$program_prefix$program_suffix$program_transform_name" = \ 2186 NONENONEs,x,x, && 2187 program_prefix=${target_alias}- 2188 2189am__api_version="1.9" 2190# Find a good install program. We prefer a C program (faster), 2191# so one script is as good as another. But avoid the broken or 2192# incompatible versions: 2193# SysV /etc/install, /usr/sbin/install 2194# SunOS /usr/etc/install 2195# IRIX /sbin/install 2196# AIX /bin/install 2197# AmigaOS /C/install, which installs bootblocks on floppy discs 2198# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2199# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2200# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2201# OS/2's system install, which has a completely different semantic 2202# ./install, which can be erroneously created by make from ./install.sh. 2203{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2204echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2205if test -z "$INSTALL"; then 2206if test "${ac_cv_path_install+set}" = set; then 2207 echo $ECHO_N "(cached) $ECHO_C" >&6 2208else 2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2210for as_dir in $PATH 2211do 2212 IFS=$as_save_IFS 2213 test -z "$as_dir" && as_dir=. 2214 # Account for people who put trailing slashes in PATH elements. 2215case $as_dir/ in 2216 ./ | .// | /cC/* | \ 2217 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2218 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2219 /usr/ucb/* ) ;; 2220 *) 2221 # OSF1 and SCO ODT 3.0 have their own names for install. 2222 # Don't use installbsd from OSF since it installs stuff as root 2223 # by default. 2224 for ac_prog in ginstall scoinst install; do 2225 for ac_exec_ext in '' $ac_executable_extensions; do 2226 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2227 if test $ac_prog = install && 2228 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2229 # AIX install. It has an incompatible calling convention. 2230 : 2231 elif test $ac_prog = install && 2232 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2233 # program-specific install script used by HP pwplus--don't use. 2234 : 2235 else 2236 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2237 break 3 2238 fi 2239 fi 2240 done 2241 done 2242 ;; 2243esac 2244done 2245IFS=$as_save_IFS 2246 2247 2248fi 2249 if test "${ac_cv_path_install+set}" = set; then 2250 INSTALL=$ac_cv_path_install 2251 else 2252 # As a last resort, use the slow shell script. Don't cache a 2253 # value for INSTALL within a source directory, because that will 2254 # break other packages using the cache if that directory is 2255 # removed, or if the value is a relative name. 2256 INSTALL=$ac_install_sh 2257 fi 2258fi 2259{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2260echo "${ECHO_T}$INSTALL" >&6; } 2261 2262# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2263# It thinks the first close brace ends the variable substitution. 2264test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2265 2266test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2267 2268test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2269 2270{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2271echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2272# Just in case 2273sleep 1 2274echo timestamp > conftest.file 2275# Do `set' in a subshell so we don't clobber the current shell's 2276# arguments. Must try -L first in case configure is actually a 2277# symlink; some systems play weird games with the mod time of symlinks 2278# (eg FreeBSD returns the mod time of the symlink's containing 2279# directory). 2280if ( 2281 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2282 if test "$*" = "X"; then 2283 # -L didn't work. 2284 set X `ls -t $srcdir/configure conftest.file` 2285 fi 2286 rm -f conftest.file 2287 if test "$*" != "X $srcdir/configure conftest.file" \ 2288 && test "$*" != "X conftest.file $srcdir/configure"; then 2289 2290 # If neither matched, then we have a broken ls. This can happen 2291 # if, for instance, CONFIG_SHELL is bash and it inherits a 2292 # broken ls alias from the environment. This has actually 2293 # happened. Such a system could not be considered "sane". 2294 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2295alias in your environment" >&5 2296echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2297alias in your environment" >&2;} 2298 { (exit 1); exit 1; }; } 2299 fi 2300 2301 test "$2" = conftest.file 2302 ) 2303then 2304 # Ok. 2305 : 2306else 2307 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2308Check your system clock" >&5 2309echo "$as_me: error: newly created file is older than distributed files! 2310Check your system clock" >&2;} 2311 { (exit 1); exit 1; }; } 2312fi 2313{ echo "$as_me:$LINENO: result: yes" >&5 2314echo "${ECHO_T}yes" >&6; } 2315test "$program_prefix" != NONE && 2316 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2317# Use a double $ so make ignores it. 2318test "$program_suffix" != NONE && 2319 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2320# Double any \ or $. echo might interpret backslashes. 2321# By default was `s,x,x', remove it if useless. 2322cat <<\_ACEOF >conftest.sed 2323s/[\\$]/&&/g;s/;s,x,x,$// 2324_ACEOF 2325program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2326rm -f conftest.sed 2327 2328# expand $ac_aux_dir to an absolute path 2329am_aux_dir=`cd $ac_aux_dir && pwd` 2330 2331test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2332# Use eval to expand $SHELL 2333if eval "$MISSING --run true"; then 2334 am_missing_run="$MISSING --run " 2335else 2336 am_missing_run= 2337 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2338echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2339fi 2340 2341if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2342 # We used to keeping the `.' as first argument, in order to 2343 # allow $(mkdir_p) to be used without argument. As in 2344 # $(mkdir_p) $(somedir) 2345 # where $(somedir) is conditionally defined. However this is wrong 2346 # for two reasons: 2347 # 1. if the package is installed by a user who cannot write `.' 2348 # make install will fail, 2349 # 2. the above comment should most certainly read 2350 # $(mkdir_p) $(DESTDIR)$(somedir) 2351 # so it does not work when $(somedir) is undefined and 2352 # $(DESTDIR) is not. 2353 # To support the latter case, we have to write 2354 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2355 # so the `.' trick is pointless. 2356 mkdir_p='mkdir -p --' 2357else 2358 # On NextStep and OpenStep, the `mkdir' command does not 2359 # recognize any option. It will interpret all options as 2360 # directories to create, and then abort because `.' already 2361 # exists. 2362 for d in ./-p ./--version; 2363 do 2364 test -d $d && rmdir $d 2365 done 2366 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2367 if test -f "$ac_aux_dir/mkinstalldirs"; then 2368 mkdir_p='$(mkinstalldirs)' 2369 else 2370 mkdir_p='$(install_sh) -d' 2371 fi 2372fi 2373 2374for ac_prog in gawk mawk nawk awk 2375do 2376 # Extract the first word of "$ac_prog", so it can be a program name with args. 2377set dummy $ac_prog; ac_word=$2 2378{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2380if test "${ac_cv_prog_AWK+set}" = set; then 2381 echo $ECHO_N "(cached) $ECHO_C" >&6 2382else 2383 if test -n "$AWK"; then 2384 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2385else 2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2387for as_dir in $PATH 2388do 2389 IFS=$as_save_IFS 2390 test -z "$as_dir" && as_dir=. 2391 for ac_exec_ext in '' $ac_executable_extensions; do 2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2393 ac_cv_prog_AWK="$ac_prog" 2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2395 break 2 2396 fi 2397done 2398done 2399IFS=$as_save_IFS 2400 2401fi 2402fi 2403AWK=$ac_cv_prog_AWK 2404if test -n "$AWK"; then 2405 { echo "$as_me:$LINENO: result: $AWK" >&5 2406echo "${ECHO_T}$AWK" >&6; } 2407else 2408 { echo "$as_me:$LINENO: result: no" >&5 2409echo "${ECHO_T}no" >&6; } 2410fi 2411 2412 2413 test -n "$AWK" && break 2414done 2415 2416{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2417echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2418set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2419if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2420 echo $ECHO_N "(cached) $ECHO_C" >&6 2421else 2422 cat >conftest.make <<\_ACEOF 2423SHELL = /bin/sh 2424all: 2425 @echo '@@@%%%=$(MAKE)=@@@%%%' 2426_ACEOF 2427# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2428case `${MAKE-make} -f conftest.make 2>/dev/null` in 2429 *@@@%%%=?*=@@@%%%*) 2430 eval ac_cv_prog_make_${ac_make}_set=yes;; 2431 *) 2432 eval ac_cv_prog_make_${ac_make}_set=no;; 2433esac 2434rm -f conftest.make 2435fi 2436if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2437 { echo "$as_me:$LINENO: result: yes" >&5 2438echo "${ECHO_T}yes" >&6; } 2439 SET_MAKE= 2440else 2441 { echo "$as_me:$LINENO: result: no" >&5 2442echo "${ECHO_T}no" >&6; } 2443 SET_MAKE="MAKE=${MAKE-make}" 2444fi 2445 2446rm -rf .tst 2>/dev/null 2447mkdir .tst 2>/dev/null 2448if test -d .tst; then 2449 am__leading_dot=. 2450else 2451 am__leading_dot=_ 2452fi 2453rmdir .tst 2>/dev/null 2454 2455# test to see if srcdir already configured 2456if test "`cd $srcdir && pwd`" != "`pwd`" && 2457 test -f $srcdir/config.status; then 2458 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2459echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2460 { (exit 1); exit 1; }; } 2461fi 2462 2463# test whether we have cygpath 2464if test -z "$CYGPATH_W"; then 2465 if (cygpath --version) >/dev/null 2>/dev/null; then 2466 CYGPATH_W='cygpath -w' 2467 else 2468 CYGPATH_W=echo 2469 fi 2470fi 2471 2472 2473# Define the identity of the package. 2474 PACKAGE='tiff' 2475 VERSION='3.8.2' 2476 2477 2478cat >>confdefs.h <<_ACEOF 2479#define PACKAGE "$PACKAGE" 2480_ACEOF 2481 2482 2483cat >>confdefs.h <<_ACEOF 2484#define VERSION "$VERSION" 2485_ACEOF 2486 2487# Some tools Automake needs. 2488 2489ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2490 2491 2492AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2493 2494 2495AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2496 2497 2498AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2499 2500 2501MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2502 2503install_sh=${install_sh-"$am_aux_dir/install-sh"} 2504 2505# Installed binaries are usually stripped using `strip' when the user 2506# run `make install-strip'. However `strip' might not be the right 2507# tool to use in cross-compilation environments, therefore Automake 2508# will honor the `STRIP' environment variable to overrule this program. 2509if test "$cross_compiling" != no; then 2510 if test -n "$ac_tool_prefix"; then 2511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2512set dummy ${ac_tool_prefix}strip; ac_word=$2 2513{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2515if test "${ac_cv_prog_STRIP+set}" = set; then 2516 echo $ECHO_N "(cached) $ECHO_C" >&6 2517else 2518 if test -n "$STRIP"; then 2519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2520else 2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2522for as_dir in $PATH 2523do 2524 IFS=$as_save_IFS 2525 test -z "$as_dir" && as_dir=. 2526 for ac_exec_ext in '' $ac_executable_extensions; do 2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2528 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2530 break 2 2531 fi 2532done 2533done 2534IFS=$as_save_IFS 2535 2536fi 2537fi 2538STRIP=$ac_cv_prog_STRIP 2539if test -n "$STRIP"; then 2540 { echo "$as_me:$LINENO: result: $STRIP" >&5 2541echo "${ECHO_T}$STRIP" >&6; } 2542else 2543 { echo "$as_me:$LINENO: result: no" >&5 2544echo "${ECHO_T}no" >&6; } 2545fi 2546 2547 2548fi 2549if test -z "$ac_cv_prog_STRIP"; then 2550 ac_ct_STRIP=$STRIP 2551 # Extract the first word of "strip", so it can be a program name with args. 2552set dummy strip; ac_word=$2 2553{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2555if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2556 echo $ECHO_N "(cached) $ECHO_C" >&6 2557else 2558 if test -n "$ac_ct_STRIP"; then 2559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2560else 2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2562for as_dir in $PATH 2563do 2564 IFS=$as_save_IFS 2565 test -z "$as_dir" && as_dir=. 2566 for ac_exec_ext in '' $ac_executable_extensions; do 2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2568 ac_cv_prog_ac_ct_STRIP="strip" 2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2570 break 2 2571 fi 2572done 2573done 2574IFS=$as_save_IFS 2575 2576fi 2577fi 2578ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2579if test -n "$ac_ct_STRIP"; then 2580 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2581echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2582else 2583 { echo "$as_me:$LINENO: result: no" >&5 2584echo "${ECHO_T}no" >&6; } 2585fi 2586 2587 if test "x$ac_ct_STRIP" = x; then 2588 STRIP=":" 2589 else 2590 case $cross_compiling:$ac_tool_warned in 2591yes:) 2592{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2593whose name does not start with the host triplet. If you think this 2594configuration is useful to you, please write to [email protected]." >&5 2595echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2596whose name does not start with the host triplet. If you think this 2597configuration is useful to you, please write to [email protected]." >&2;} 2598ac_tool_warned=yes ;; 2599esac 2600 STRIP=$ac_ct_STRIP 2601 fi 2602else 2603 STRIP="$ac_cv_prog_STRIP" 2604fi 2605 2606fi 2607INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2608 2609# We need awk for the "check" target. The system "awk" is bad on 2610# some platforms. 2611# Always define AMTAR for backward compatibility. 2612 2613AMTAR=${AMTAR-"${am_missing_run}tar"} 2614 2615am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2616 2617 2618 2619 2620 2621{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2622echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2623 # Check whether --enable-maintainer-mode was given. 2624if test "${enable_maintainer_mode+set}" = set; then 2625 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2626else 2627 USE_MAINTAINER_MODE=no 2628fi 2629 2630 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2631echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2632 2633 2634if test $USE_MAINTAINER_MODE = yes; then 2635 MAINTAINER_MODE_TRUE= 2636 MAINTAINER_MODE_FALSE='#' 2637else 2638 MAINTAINER_MODE_TRUE='#' 2639 MAINTAINER_MODE_FALSE= 2640fi 2641 2642 MAINT=$MAINTAINER_MODE_TRUE 2643 2644 2645 2646LIBTIFF_MAJOR_VERSION=3 2647LIBTIFF_MINOR_VERSION=8 2648LIBTIFF_MICRO_VERSION=2 2649LIBTIFF_ALPHA_VERSION= 2650LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 2651LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"` 2652 2653# This is a special hack for OpenBSD and MirOS systems. The dynamic linker 2654# in OpenBSD uses some special semantics for shared libraries. Their soname 2655# contains only two numbers, major and minor. 2656# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details. 2657case "$target_os" in 2658 openbsd* | mirbsd*) 2659 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION:0 2660 ;; 2661 *) 2662 LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION 2663 ;; 2664esac 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674ac_ext=c 2675ac_cpp='$CPP $CPPFLAGS' 2676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2678ac_compiler_gnu=$ac_cv_c_compiler_gnu 2679if test -n "$ac_tool_prefix"; then 2680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2681set dummy ${ac_tool_prefix}gcc; ac_word=$2 2682{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2684if test "${ac_cv_prog_CC+set}" = set; then 2685 echo $ECHO_N "(cached) $ECHO_C" >&6 2686else 2687 if test -n "$CC"; then 2688 ac_cv_prog_CC="$CC" # Let the user override the test. 2689else 2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701done 2702done 2703IFS=$as_save_IFS 2704 2705fi 2706fi 2707CC=$ac_cv_prog_CC 2708if test -n "$CC"; then 2709 { echo "$as_me:$LINENO: result: $CC" >&5 2710echo "${ECHO_T}$CC" >&6; } 2711else 2712 { echo "$as_me:$LINENO: result: no" >&5 2713echo "${ECHO_T}no" >&6; } 2714fi 2715 2716 2717fi 2718if test -z "$ac_cv_prog_CC"; then 2719 ac_ct_CC=$CC 2720 # Extract the first word of "gcc", so it can be a program name with args. 2721set dummy gcc; ac_word=$2 2722{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2724if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2725 echo $ECHO_N "(cached) $ECHO_C" >&6 2726else 2727 if test -n "$ac_ct_CC"; then 2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2729else 2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2731for as_dir in $PATH 2732do 2733 IFS=$as_save_IFS 2734 test -z "$as_dir" && as_dir=. 2735 for ac_exec_ext in '' $ac_executable_extensions; do 2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2737 ac_cv_prog_ac_ct_CC="gcc" 2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2739 break 2 2740 fi 2741done 2742done 2743IFS=$as_save_IFS 2744 2745fi 2746fi 2747ac_ct_CC=$ac_cv_prog_ac_ct_CC 2748if test -n "$ac_ct_CC"; then 2749 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2750echo "${ECHO_T}$ac_ct_CC" >&6; } 2751else 2752 { echo "$as_me:$LINENO: result: no" >&5 2753echo "${ECHO_T}no" >&6; } 2754fi 2755 2756 if test "x$ac_ct_CC" = x; then 2757 CC="" 2758 else 2759 case $cross_compiling:$ac_tool_warned in 2760yes:) 2761{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2762whose name does not start with the host triplet. If you think this 2763configuration is useful to you, please write to [email protected]." >&5 2764echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2765whose name does not start with the host triplet. If you think this 2766configuration is useful to you, please write to [email protected]." >&2;} 2767ac_tool_warned=yes ;; 2768esac 2769 CC=$ac_ct_CC 2770 fi 2771else 2772 CC="$ac_cv_prog_CC" 2773fi 2774 2775if test -z "$CC"; then 2776 if test -n "$ac_tool_prefix"; then 2777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2778set dummy ${ac_tool_prefix}cc; ac_word=$2 2779{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2781if test "${ac_cv_prog_CC+set}" = set; then 2782 echo $ECHO_N "(cached) $ECHO_C" >&6 2783else 2784 if test -n "$CC"; then 2785 ac_cv_prog_CC="$CC" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2794 ac_cv_prog_CC="${ac_tool_prefix}cc" 2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804CC=$ac_cv_prog_CC 2805if test -n "$CC"; then 2806 { echo "$as_me:$LINENO: result: $CC" >&5 2807echo "${ECHO_T}$CC" >&6; } 2808else 2809 { echo "$as_me:$LINENO: result: no" >&5 2810echo "${ECHO_T}no" >&6; } 2811fi 2812 2813 2814 fi 2815fi 2816if test -z "$CC"; then 2817 # Extract the first word of "cc", so it can be a program name with args. 2818set dummy cc; ac_word=$2 2819{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2821if test "${ac_cv_prog_CC+set}" = set; then 2822 echo $ECHO_N "(cached) $ECHO_C" >&6 2823else 2824 if test -n "$CC"; then 2825 ac_cv_prog_CC="$CC" # Let the user override the test. 2826else 2827 ac_prog_rejected=no 2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829for as_dir in $PATH 2830do 2831 IFS=$as_save_IFS 2832 test -z "$as_dir" && as_dir=. 2833 for ac_exec_ext in '' $ac_executable_extensions; do 2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2836 ac_prog_rejected=yes 2837 continue 2838 fi 2839 ac_cv_prog_CC="cc" 2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844done 2845IFS=$as_save_IFS 2846 2847if test $ac_prog_rejected = yes; then 2848 # We found a bogon in the path, so make sure we never use it. 2849 set dummy $ac_cv_prog_CC 2850 shift 2851 if test $# != 0; then 2852 # We chose a different compiler from the bogus one. 2853 # However, it has the same basename, so the bogon will be chosen 2854 # first if we set CC to just the basename; use the full file name. 2855 shift 2856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2857 fi 2858fi 2859fi 2860fi 2861CC=$ac_cv_prog_CC 2862if test -n "$CC"; then 2863 { echo "$as_me:$LINENO: result: $CC" >&5 2864echo "${ECHO_T}$CC" >&6; } 2865else 2866 { echo "$as_me:$LINENO: result: no" >&5 2867echo "${ECHO_T}no" >&6; } 2868fi 2869 2870 2871fi 2872if test -z "$CC"; then 2873 if test -n "$ac_tool_prefix"; then 2874 for ac_prog in cl.exe 2875 do 2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2877set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2878{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2880if test "${ac_cv_prog_CC+set}" = set; then 2881 echo $ECHO_N "(cached) $ECHO_C" >&6 2882else 2883 if test -n "$CC"; then 2884 ac_cv_prog_CC="$CC" # Let the user override the test. 2885else 2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_exec_ext in '' $ac_executable_extensions; do 2892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2895 break 2 2896 fi 2897done 2898done 2899IFS=$as_save_IFS 2900 2901fi 2902fi 2903CC=$ac_cv_prog_CC 2904if test -n "$CC"; then 2905 { echo "$as_me:$LINENO: result: $CC" >&5 2906echo "${ECHO_T}$CC" >&6; } 2907else 2908 { echo "$as_me:$LINENO: result: no" >&5 2909echo "${ECHO_T}no" >&6; } 2910fi 2911 2912 2913 test -n "$CC" && break 2914 done 2915fi 2916if test -z "$CC"; then 2917 ac_ct_CC=$CC 2918 for ac_prog in cl.exe 2919do 2920 # Extract the first word of "$ac_prog", so it can be a program name with args. 2921set dummy $ac_prog; ac_word=$2 2922{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2925 echo $ECHO_N "(cached) $ECHO_C" >&6 2926else 2927 if test -n "$ac_ct_CC"; then 2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 test -z "$as_dir" && as_dir=. 2935 for ac_exec_ext in '' $ac_executable_extensions; do 2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2937 ac_cv_prog_ac_ct_CC="$ac_prog" 2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2939 break 2 2940 fi 2941done 2942done 2943IFS=$as_save_IFS 2944 2945fi 2946fi 2947ac_ct_CC=$ac_cv_prog_ac_ct_CC 2948if test -n "$ac_ct_CC"; then 2949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2950echo "${ECHO_T}$ac_ct_CC" >&6; } 2951else 2952 { echo "$as_me:$LINENO: result: no" >&5 2953echo "${ECHO_T}no" >&6; } 2954fi 2955 2956 2957 test -n "$ac_ct_CC" && break 2958done 2959 2960 if test "x$ac_ct_CC" = x; then 2961 CC="" 2962 else 2963 case $cross_compiling:$ac_tool_warned in 2964yes:) 2965{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2966whose name does not start with the host triplet. If you think this 2967configuration is useful to you, please write to [email protected]." >&5 2968echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2969whose name does not start with the host triplet. If you think this 2970configuration is useful to you, please write to [email protected]." >&2;} 2971ac_tool_warned=yes ;; 2972esac 2973 CC=$ac_ct_CC 2974 fi 2975fi 2976 2977fi 2978 2979 2980test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2981See \`config.log' for more details." >&5 2982echo "$as_me: error: no acceptable C compiler found in \$PATH 2983See \`config.log' for more details." >&2;} 2984 { (exit 1); exit 1; }; } 2985 2986# Provide some information about the compiler. 2987echo "$as_me:$LINENO: checking for C compiler version" >&5 2988ac_compiler=`set X $ac_compile; echo $2` 2989{ (ac_try="$ac_compiler --version >&5" 2990case "(($ac_try" in 2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2992 *) ac_try_echo=$ac_try;; 2993esac 2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2995 (eval "$ac_compiler --version >&5") 2>&5 2996 ac_status=$? 2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2998 (exit $ac_status); } 2999{ (ac_try="$ac_compiler -v >&5" 3000case "(($ac_try" in 3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3002 *) ac_try_echo=$ac_try;; 3003esac 3004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3005 (eval "$ac_compiler -v >&5") 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); } 3009{ (ac_try="$ac_compiler -V >&5" 3010case "(($ac_try" in 3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3012 *) ac_try_echo=$ac_try;; 3013esac 3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3015 (eval "$ac_compiler -V >&5") 2>&5 3016 ac_status=$? 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } 3019 3020cat >conftest.$ac_ext <<_ACEOF 3021/* confdefs.h. */ 3022_ACEOF 3023cat confdefs.h >>conftest.$ac_ext 3024cat >>conftest.$ac_ext <<_ACEOF 3025/* end confdefs.h. */ 3026 3027int 3028main () 3029{ 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035ac_clean_files_save=$ac_clean_files 3036ac_clean_files="$ac_clean_files a.out a.exe b.out" 3037# Try to create an executable without -o first, disregard a.out. 3038# It will help us diagnose broken compilers, and finding out an intuition 3039# of exeext. 3040{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3041echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3042ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3043# 3044# List of possible output files, starting from the most likely. 3045# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3046# only as a last resort. b.out is created by i960 compilers. 3047ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3048# 3049# The IRIX 6 linker writes into existing files which may not be 3050# executable, retaining their permissions. Remove them first so a 3051# subsequent execution test works. 3052ac_rmfiles= 3053for ac_file in $ac_files 3054do 3055 case $ac_file in 3056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3057 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3058 esac 3059done 3060rm -f $ac_rmfiles 3061 3062if { (ac_try="$ac_link_default" 3063case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3068 (eval "$ac_link_default") 2>&5 3069 ac_status=$? 3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 (exit $ac_status); }; then 3072 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3073# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3074# in a Makefile. We should not override ac_cv_exeext if it was cached, 3075# so that the user can short-circuit this test for compilers unknown to 3076# Autoconf. 3077for ac_file in $ac_files '' 3078do 3079 test -f "$ac_file" || continue 3080 case $ac_file in 3081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3082 ;; 3083 [ab].out ) 3084 # We found the default executable, but exeext='' is most 3085 # certainly right. 3086 break;; 3087 *.* ) 3088 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3089 then :; else 3090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3091 fi 3092 # We set ac_cv_exeext here because the later test for it is not 3093 # safe: cross compilers may not add the suffix if given an `-o' 3094 # argument, so we may need to know it at that point already. 3095 # Even if this section looks crufty: it has the advantage of 3096 # actually working. 3097 break;; 3098 * ) 3099 break;; 3100 esac 3101done 3102test "$ac_cv_exeext" = no && ac_cv_exeext= 3103 3104else 3105 ac_file='' 3106fi 3107 3108{ echo "$as_me:$LINENO: result: $ac_file" >&5 3109echo "${ECHO_T}$ac_file" >&6; } 3110if test -z "$ac_file"; then 3111 echo "$as_me: failed program was:" >&5 3112sed 's/^/| /' conftest.$ac_ext >&5 3113 3114{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3115See \`config.log' for more details." >&5 3116echo "$as_me: error: C compiler cannot create executables 3117See \`config.log' for more details." >&2;} 3118 { (exit 77); exit 77; }; } 3119fi 3120 3121ac_exeext=$ac_cv_exeext 3122 3123# Check that the compiler produces executables we can run. If not, either 3124# the compiler is broken, or we cross compile. 3125{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3126echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3127# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3128# If not cross compiling, check that we can run a simple program. 3129if test "$cross_compiling" != yes; then 3130 if { ac_try='./$ac_file' 3131 { (case "(($ac_try" in 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3133 *) ac_try_echo=$ac_try;; 3134esac 3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3136 (eval "$ac_try") 2>&5 3137 ac_status=$? 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 (exit $ac_status); }; }; then 3140 cross_compiling=no 3141 else 3142 if test "$cross_compiling" = maybe; then 3143 cross_compiling=yes 3144 else 3145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3146If you meant to cross compile, use \`--host'. 3147See \`config.log' for more details." >&5 3148echo "$as_me: error: cannot run C compiled programs. 3149If you meant to cross compile, use \`--host'. 3150See \`config.log' for more details." >&2;} 3151 { (exit 1); exit 1; }; } 3152 fi 3153 fi 3154fi 3155{ echo "$as_me:$LINENO: result: yes" >&5 3156echo "${ECHO_T}yes" >&6; } 3157 3158rm -f a.out a.exe conftest$ac_cv_exeext b.out 3159ac_clean_files=$ac_clean_files_save 3160# Check that the compiler produces executables we can run. If not, either 3161# the compiler is broken, or we cross compile. 3162{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3163echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3164{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3165echo "${ECHO_T}$cross_compiling" >&6; } 3166 3167{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3168echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3169if { (ac_try="$ac_link" 3170case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3175 (eval "$ac_link") 2>&5 3176 ac_status=$? 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3178 (exit $ac_status); }; then 3179 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3180# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3181# work properly (i.e., refer to `conftest.exe'), while it won't with 3182# `rm'. 3183for ac_file in conftest.exe conftest conftest.*; do 3184 test -f "$ac_file" || continue 3185 case $ac_file in 3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3188 break;; 3189 * ) break;; 3190 esac 3191done 3192else 3193 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3194See \`config.log' for more details." >&5 3195echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3196See \`config.log' for more details." >&2;} 3197 { (exit 1); exit 1; }; } 3198fi 3199 3200rm -f conftest$ac_cv_exeext 3201{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3202echo "${ECHO_T}$ac_cv_exeext" >&6; } 3203 3204rm -f conftest.$ac_ext 3205EXEEXT=$ac_cv_exeext 3206ac_exeext=$EXEEXT 3207{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3208echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3209if test "${ac_cv_objext+set}" = set; then 3210 echo $ECHO_N "(cached) $ECHO_C" >&6 3211else 3212 cat >conftest.$ac_ext <<_ACEOF 3213/* confdefs.h. */ 3214_ACEOF 3215cat confdefs.h >>conftest.$ac_ext 3216cat >>conftest.$ac_ext <<_ACEOF 3217/* end confdefs.h. */ 3218 3219int 3220main () 3221{ 3222 3223 ; 3224 return 0; 3225} 3226_ACEOF 3227rm -f conftest.o conftest.obj 3228if { (ac_try="$ac_compile" 3229case "(($ac_try" in 3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3231 *) ac_try_echo=$ac_try;; 3232esac 3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3234 (eval "$ac_compile") 2>&5 3235 ac_status=$? 3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3237 (exit $ac_status); }; then 3238 for ac_file in conftest.o conftest.obj conftest.*; do 3239 test -f "$ac_file" || continue; 3240 case $ac_file in 3241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3243 break;; 3244 esac 3245done 3246else 3247 echo "$as_me: failed program was:" >&5 3248sed 's/^/| /' conftest.$ac_ext >&5 3249 3250{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3251See \`config.log' for more details." >&5 3252echo "$as_me: error: cannot compute suffix of object files: cannot compile 3253See \`config.log' for more details." >&2;} 3254 { (exit 1); exit 1; }; } 3255fi 3256 3257rm -f conftest.$ac_cv_objext conftest.$ac_ext 3258fi 3259{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3260echo "${ECHO_T}$ac_cv_objext" >&6; } 3261OBJEXT=$ac_cv_objext 3262ac_objext=$OBJEXT 3263{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3264echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3265if test "${ac_cv_c_compiler_gnu+set}" = set; then 3266 echo $ECHO_N "(cached) $ECHO_C" >&6 3267else 3268 cat >conftest.$ac_ext <<_ACEOF 3269/* confdefs.h. */ 3270_ACEOF 3271cat confdefs.h >>conftest.$ac_ext 3272cat >>conftest.$ac_ext <<_ACEOF 3273/* end confdefs.h. */ 3274 3275int 3276main () 3277{ 3278#ifndef __GNUC__ 3279 choke me 3280#endif 3281 3282 ; 3283 return 0; 3284} 3285_ACEOF 3286rm -f conftest.$ac_objext 3287if { (ac_try="$ac_compile" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3293 (eval "$ac_compile") 2>conftest.er1 3294 ac_status=$? 3295 grep -v '^ *+' conftest.er1 >conftest.err 3296 rm -f conftest.er1 3297 cat conftest.err >&5 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); } && { 3300 test -z "$ac_c_werror_flag" || 3301 test ! -s conftest.err 3302 } && test -s conftest.$ac_objext; then 3303 ac_compiler_gnu=yes 3304else 3305 echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308 ac_compiler_gnu=no 3309fi 3310 3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3312ac_cv_c_compiler_gnu=$ac_compiler_gnu 3313 3314fi 3315{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3316echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3317GCC=`test $ac_compiler_gnu = yes && echo yes` 3318ac_test_CFLAGS=${CFLAGS+set} 3319ac_save_CFLAGS=$CFLAGS 3320{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3321echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3322if test "${ac_cv_prog_cc_g+set}" = set; then 3323 echo $ECHO_N "(cached) $ECHO_C" >&6 3324else 3325 ac_save_c_werror_flag=$ac_c_werror_flag 3326 ac_c_werror_flag=yes 3327 ac_cv_prog_cc_g=no 3328 CFLAGS="-g" 3329 cat >conftest.$ac_ext <<_ACEOF 3330/* confdefs.h. */ 3331_ACEOF 3332cat confdefs.h >>conftest.$ac_ext 3333cat >>conftest.$ac_ext <<_ACEOF 3334/* end confdefs.h. */ 3335 3336int 3337main () 3338{ 3339 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344rm -f conftest.$ac_objext 3345if { (ac_try="$ac_compile" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3351 (eval "$ac_compile") 2>conftest.er1 3352 ac_status=$? 3353 grep -v '^ *+' conftest.er1 >conftest.err 3354 rm -f conftest.er1 3355 cat conftest.err >&5 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } && { 3358 test -z "$ac_c_werror_flag" || 3359 test ! -s conftest.err 3360 } && test -s conftest.$ac_objext; then 3361 ac_cv_prog_cc_g=yes 3362else 3363 echo "$as_me: failed program was:" >&5 3364sed 's/^/| /' conftest.$ac_ext >&5 3365 3366 CFLAGS="" 3367 cat >conftest.$ac_ext <<_ACEOF 3368/* confdefs.h. */ 3369_ACEOF 3370cat confdefs.h >>conftest.$ac_ext 3371cat >>conftest.$ac_ext <<_ACEOF 3372/* end confdefs.h. */ 3373 3374int 3375main () 3376{ 3377 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382rm -f conftest.$ac_objext 3383if { (ac_try="$ac_compile" 3384case "(($ac_try" in 3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3386 *) ac_try_echo=$ac_try;; 3387esac 3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3389 (eval "$ac_compile") 2>conftest.er1 3390 ac_status=$? 3391 grep -v '^ *+' conftest.er1 >conftest.err 3392 rm -f conftest.er1 3393 cat conftest.err >&5 3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3395 (exit $ac_status); } && { 3396 test -z "$ac_c_werror_flag" || 3397 test ! -s conftest.err 3398 } && test -s conftest.$ac_objext; then 3399 : 3400else 3401 echo "$as_me: failed program was:" >&5 3402sed 's/^/| /' conftest.$ac_ext >&5 3403 3404 ac_c_werror_flag=$ac_save_c_werror_flag 3405 CFLAGS="-g" 3406 cat >conftest.$ac_ext <<_ACEOF 3407/* confdefs.h. */ 3408_ACEOF 3409cat confdefs.h >>conftest.$ac_ext 3410cat >>conftest.$ac_ext <<_ACEOF 3411/* end confdefs.h. */ 3412 3413int 3414main () 3415{ 3416 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421rm -f conftest.$ac_objext 3422if { (ac_try="$ac_compile" 3423case "(($ac_try" in 3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3425 *) ac_try_echo=$ac_try;; 3426esac 3427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3428 (eval "$ac_compile") 2>conftest.er1 3429 ac_status=$? 3430 grep -v '^ *+' conftest.er1 >conftest.err 3431 rm -f conftest.er1 3432 cat conftest.err >&5 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); } && { 3435 test -z "$ac_c_werror_flag" || 3436 test ! -s conftest.err 3437 } && test -s conftest.$ac_objext; then 3438 ac_cv_prog_cc_g=yes 3439else 3440 echo "$as_me: failed program was:" >&5 3441sed 's/^/| /' conftest.$ac_ext >&5 3442 3443 3444fi 3445 3446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3447fi 3448 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450fi 3451 3452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3453 ac_c_werror_flag=$ac_save_c_werror_flag 3454fi 3455{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3456echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3457if test "$ac_test_CFLAGS" = set; then 3458 CFLAGS=$ac_save_CFLAGS 3459elif test $ac_cv_prog_cc_g = yes; then 3460 if test "$GCC" = yes; then 3461 CFLAGS="-g -O2" 3462 else 3463 CFLAGS="-g" 3464 fi 3465else 3466 if test "$GCC" = yes; then 3467 CFLAGS="-O2" 3468 else 3469 CFLAGS= 3470 fi 3471fi 3472{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3473echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3474if test "${ac_cv_prog_cc_c89+set}" = set; then 3475 echo $ECHO_N "(cached) $ECHO_C" >&6 3476else 3477 ac_cv_prog_cc_c89=no 3478ac_save_CC=$CC 3479cat >conftest.$ac_ext <<_ACEOF 3480/* confdefs.h. */ 3481_ACEOF 3482cat confdefs.h >>conftest.$ac_ext 3483cat >>conftest.$ac_ext <<_ACEOF 3484/* end confdefs.h. */ 3485#include <stdarg.h> 3486#include <stdio.h> 3487#include <sys/types.h> 3488#include <sys/stat.h> 3489/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3490struct buf { int x; }; 3491FILE * (*rcsopen) (struct buf *, struct stat *, int); 3492static char *e (p, i) 3493 char **p; 3494 int i; 3495{ 3496 return p[i]; 3497} 3498static char *f (char * (*g) (char **, int), char **p, ...) 3499{ 3500 char *s; 3501 va_list v; 3502 va_start (v,p); 3503 s = g (p, va_arg (v,int)); 3504 va_end (v); 3505 return s; 3506} 3507 3508/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3509 function prototypes and stuff, but not '\xHH' hex character constants. 3510 These don't provoke an error unfortunately, instead are silently treated 3511 as 'x'. The following induces an error, until -std is added to get 3512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3513 array size at least. It's necessary to write '\x00'==0 to get something 3514 that's true only with -std. */ 3515int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3516 3517/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3518 inside strings and character constants. */ 3519#define FOO(x) 'x' 3520int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3521 3522int test (int i, double x); 3523struct s1 {int (*f) (int a);}; 3524struct s2 {int (*f) (double a);}; 3525int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3526int argc; 3527char **argv; 3528int 3529main () 3530{ 3531return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3537 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3538do 3539 CC="$ac_save_CC $ac_arg" 3540 rm -f conftest.$ac_objext 3541if { (ac_try="$ac_compile" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3547 (eval "$ac_compile") 2>conftest.er1 3548 ac_status=$? 3549 grep -v '^ *+' conftest.er1 >conftest.err 3550 rm -f conftest.er1 3551 cat conftest.err >&5 3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3553 (exit $ac_status); } && { 3554 test -z "$ac_c_werror_flag" || 3555 test ! -s conftest.err 3556 } && test -s conftest.$ac_objext; then 3557 ac_cv_prog_cc_c89=$ac_arg 3558else 3559 echo "$as_me: failed program was:" >&5 3560sed 's/^/| /' conftest.$ac_ext >&5 3561 3562 3563fi 3564 3565rm -f core conftest.err conftest.$ac_objext 3566 test "x$ac_cv_prog_cc_c89" != "xno" && break 3567done 3568rm -f conftest.$ac_ext 3569CC=$ac_save_CC 3570 3571fi 3572# AC_CACHE_VAL 3573case "x$ac_cv_prog_cc_c89" in 3574 x) 3575 { echo "$as_me:$LINENO: result: none needed" >&5 3576echo "${ECHO_T}none needed" >&6; } ;; 3577 xno) 3578 { echo "$as_me:$LINENO: result: unsupported" >&5 3579echo "${ECHO_T}unsupported" >&6; } ;; 3580 *) 3581 CC="$CC $ac_cv_prog_cc_c89" 3582 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3583echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3584esac 3585 3586 3587ac_ext=c 3588ac_cpp='$CPP $CPPFLAGS' 3589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3591ac_compiler_gnu=$ac_cv_c_compiler_gnu 3592DEPDIR="${am__leading_dot}deps" 3593 3594ac_config_commands="$ac_config_commands depfiles" 3595 3596 3597am_make=${MAKE-make} 3598cat > confinc << 'END' 3599am__doit: 3600 @echo done 3601.PHONY: am__doit 3602END 3603# If we don't find an include directive, just comment out the code. 3604{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3605echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3606am__include="#" 3607am__quote= 3608_am_result=none 3609# First try GNU make style include. 3610echo "include confinc" > confmf 3611# We grep out `Entering directory' and `Leaving directory' 3612# messages which can occur if `w' ends up in MAKEFLAGS. 3613# In particular we don't look at `^make:' because GNU make might 3614# be invoked under some other name (usually "gmake"), in which 3615# case it prints its new name instead of `make'. 3616if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3617 am__include=include 3618 am__quote= 3619 _am_result=GNU 3620fi 3621# Now try BSD make style include. 3622if test "$am__include" = "#"; then 3623 echo '.include "confinc"' > confmf 3624 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3625 am__include=.include 3626 am__quote="\"" 3627 _am_result=BSD 3628 fi 3629fi 3630 3631 3632{ echo "$as_me:$LINENO: result: $_am_result" >&5 3633echo "${ECHO_T}$_am_result" >&6; } 3634rm -f confinc confmf 3635 3636# Check whether --enable-dependency-tracking was given. 3637if test "${enable_dependency_tracking+set}" = set; then 3638 enableval=$enable_dependency_tracking; 3639fi 3640 3641if test "x$enable_dependency_tracking" != xno; then 3642 am_depcomp="$ac_aux_dir/depcomp" 3643 AMDEPBACKSLASH='\' 3644fi 3645 3646 3647if test "x$enable_dependency_tracking" != xno; then 3648 AMDEP_TRUE= 3649 AMDEP_FALSE='#' 3650else 3651 AMDEP_TRUE='#' 3652 AMDEP_FALSE= 3653fi 3654 3655 3656 3657 3658depcc="$CC" am_compiler_list= 3659 3660{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3661echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3662if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3663 echo $ECHO_N "(cached) $ECHO_C" >&6 3664else 3665 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3666 # We make a subdir and do the tests there. Otherwise we can end up 3667 # making bogus files that we don't know about and never remove. For 3668 # instance it was reported that on HP-UX the gcc test will end up 3669 # making a dummy file named `D' -- because `-MD' means `put the output 3670 # in D'. 3671 mkdir conftest.dir 3672 # Copy depcomp to subdir because otherwise we won't find it if we're 3673 # using a relative directory. 3674 cp "$am_depcomp" conftest.dir 3675 cd conftest.dir 3676 # We will build objects and dependencies in a subdirectory because 3677 # it helps to detect inapplicable dependency modes. For instance 3678 # both Tru64's cc and ICC support -MD to output dependencies as a 3679 # side effect of compilation, but ICC will put the dependencies in 3680 # the current directory while Tru64 will put them in the object 3681 # directory. 3682 mkdir sub 3683 3684 am_cv_CC_dependencies_compiler_type=none 3685 if test "$am_compiler_list" = ""; then 3686 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3687 fi 3688 for depmode in $am_compiler_list; do 3689 # Setup a source with many dependencies, because some compilers 3690 # like to wrap large dependency lists on column 80 (with \), and 3691 # we should not choose a depcomp mode which is confused by this. 3692 # 3693 # We need to recreate these files for each test, as the compiler may 3694 # overwrite some of them when testing with obscure command lines. 3695 # This happens at least with the AIX C compiler. 3696 : > sub/conftest.c 3697 for i in 1 2 3 4 5 6; do 3698 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3699 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3700 # Solaris 8's {/usr,}/bin/sh. 3701 touch sub/conftst$i.h 3702 done 3703 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3704 3705 case $depmode in 3706 nosideeffect) 3707 # after this tag, mechanisms are not by side-effect, so they'll 3708 # only be used when explicitly requested 3709 if test "x$enable_dependency_tracking" = xyes; then 3710 continue 3711 else 3712 break 3713 fi 3714 ;; 3715 none) break ;; 3716 esac 3717 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3718 # mode. It turns out that the SunPro C++ compiler does not properly 3719 # handle `-M -o', and we need to detect this. 3720 if depmode=$depmode \ 3721 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3723 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3724 >/dev/null 2>conftest.err && 3725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3726 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3728 # icc doesn't choke on unknown options, it will just issue warnings 3729 # or remarks (even with -Werror). So we grep stderr for any message 3730 # that says an option was ignored or not supported. 3731 # When given -MP, icc 7.0 and 7.1 complain thusly: 3732 # icc: Command line warning: ignoring option '-M'; no argument required 3733 # The diagnosis changed in icc 8.0: 3734 # icc: Command line remark: option '-MP' not supported 3735 if (grep 'ignoring option' conftest.err || 3736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3737 am_cv_CC_dependencies_compiler_type=$depmode 3738 break 3739 fi 3740 fi 3741 done 3742 3743 cd .. 3744 rm -rf conftest.dir 3745else 3746 am_cv_CC_dependencies_compiler_type=none 3747fi 3748 3749fi 3750{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3751echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3752CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3753 3754 3755 3756if 3757 test "x$enable_dependency_tracking" != xno \ 3758 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3759 am__fastdepCC_TRUE= 3760 am__fastdepCC_FALSE='#' 3761else 3762 am__fastdepCC_TRUE='#' 3763 am__fastdepCC_FALSE= 3764fi 3765 3766 3767if test "x$CC" != xcc; then 3768 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 3769echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } 3770else 3771 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 3772echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } 3773fi 3774set dummy $CC; ac_cc=`echo $2 | 3775 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3776if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 cat >conftest.$ac_ext <<_ACEOF 3780/* confdefs.h. */ 3781_ACEOF 3782cat confdefs.h >>conftest.$ac_ext 3783cat >>conftest.$ac_ext <<_ACEOF 3784/* end confdefs.h. */ 3785 3786int 3787main () 3788{ 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794# Make sure it works both with $CC and with simple cc. 3795# We do the test twice because some compilers refuse to overwrite an 3796# existing .o file with -o, though they will create one. 3797ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3798rm -f conftest2.* 3799if { (case "(($ac_try" in 3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3801 *) ac_try_echo=$ac_try;; 3802esac 3803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3804 (eval "$ac_try") 2>&5 3805 ac_status=$? 3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3807 (exit $ac_status); } && 3808 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3810 *) ac_try_echo=$ac_try;; 3811esac 3812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3813 (eval "$ac_try") 2>&5 3814 ac_status=$? 3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3816 (exit $ac_status); }; 3817then 3818 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 3819 if test "x$CC" != xcc; then 3820 # Test first that cc exists at all. 3821 if { ac_try='cc -c conftest.$ac_ext >&5' 3822 { (case "(($ac_try" in 3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3824 *) ac_try_echo=$ac_try;; 3825esac 3826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3827 (eval "$ac_try") 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); }; }; then 3831 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 3832 rm -f conftest2.* 3833 if { (case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836esac 3837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3838 (eval "$ac_try") 2>&5 3839 ac_status=$? 3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3841 (exit $ac_status); } && 3842 test -f conftest2.$ac_objext && { (case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3847 (eval "$ac_try") 2>&5 3848 ac_status=$? 3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); }; 3851 then 3852 # cc works too. 3853 : 3854 else 3855 # cc exists but doesn't like -o. 3856 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3857 fi 3858 fi 3859 fi 3860else 3861 eval ac_cv_prog_cc_${ac_cc}_c_o=no 3862fi 3863rm -f core conftest* 3864 3865fi 3866if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 3867 { echo "$as_me:$LINENO: result: yes" >&5 3868echo "${ECHO_T}yes" >&6; } 3869else 3870 { echo "$as_me:$LINENO: result: no" >&5 3871echo "${ECHO_T}no" >&6; } 3872 3873cat >>confdefs.h <<\_ACEOF 3874#define NO_MINUS_C_MINUS_O 1 3875_ACEOF 3876 3877fi 3878 3879# FIXME: we rely on the cache variable name because 3880# there is no other way. 3881set dummy $CC 3882ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 3883if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 3884 # Losing compiler, so override with the script. 3885 # FIXME: It is wrong to rewrite CC. 3886 # But if we don't then we get into trouble of one sort or another. 3887 # A longer-term fix would be to have automake use am__CC in this case, 3888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3889 CC="$am_aux_dir/compile $CC" 3890fi 3891 3892 3893 3894 ansi= 3895 if test -z "$ansi"; then 3896 msg="for C compiler warning flags" 3897 else 3898 msg="for C compiler warning and ANSI conformance flags" 3899 fi 3900 { echo "$as_me:$LINENO: checking $msg" >&5 3901echo $ECHO_N "checking $msg... $ECHO_C" >&6; } 3902if test "${vl_cv_prog_cc_warnings+set}" = set; then 3903 echo $ECHO_N "(cached) $ECHO_C" >&6 3904else 3905 3906 if test -n "$CC"; then 3907 cat > conftest.c <<EOF 3908int main(int argc, char **argv) { return 0; } 3909EOF 3910 3911 if test "$GCC" = "yes"; then 3912 if test -z "$ansi"; then 3913 vl_cv_prog_cc_warnings="-Wall -W" 3914 else 3915 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic" 3916 fi 3917 3918 3919 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 && 3920 $CC -c -v -Xc conftest.c > /dev/null 2>&1 && 3921 test -f conftest.o; then 3922 if test -z "$ansi"; then 3923 vl_cv_prog_cc_warnings="-v" 3924 else 3925 vl_cv_prog_cc_warnings="-v -Xc" 3926 fi 3927 3928 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 && 3929 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 && 3930 test -f conftest.o; then 3931 if test -z "$ansi"; then 3932 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos" 3933 else 3934 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1" 3935 fi 3936 3937 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 && 3938 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 && 3939 test -f conftest.o; then 3940 if test -z "$ansi"; then 3941 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" 3942 else 3943 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi" 3944 fi 3945 3946 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 && 3947 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 && 3948 test -f conftest.o; then 3949 if test -z "$ansi"; then 3950 vl_cv_prog_cc_warnings="-fullwarn" 3951 else 3952 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE" 3953 fi 3954 3955 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 && 3956 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 && 3957 test -f conftest.o; then 3958 if test -z "$ansi"; then 3959 vl_cv_prog_cc_warnings="+w1" 3960 else 3961 vl_cv_prog_cc_warnings="+w1 -Aa" 3962 fi 3963 3964 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 && 3965 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 && 3966 test -f conftest.o; then 3967 if test -z "$ansi"; then 3968 vl_cv_prog_cc_warnings="-pvctl,fullmsg" 3969 else 3970 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc" 3971 fi 3972 3973 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 && 3974 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 && 3975 test -f conftest.o; then 3976 if test -z "$ansi"; then 3977 vl_cv_prog_cc_warnings="-h msglevel 2" 3978 else 3979 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform" 3980 fi 3981 3982 fi 3983 rm -f conftest.* 3984 fi 3985 if test -n "$vl_cv_prog_cc_warnings"; then 3986 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings" 3987 else 3988 vl_cv_prog_cc_warnings="unknown" 3989 fi 3990 3991fi 3992{ echo "$as_me:$LINENO: result: $vl_cv_prog_cc_warnings" >&5 3993echo "${ECHO_T}$vl_cv_prog_cc_warnings" >&6; } 3994 3995 3996# Find a good install program. We prefer a C program (faster), 3997# so one script is as good as another. But avoid the broken or 3998# incompatible versions: 3999# SysV /etc/install, /usr/sbin/install 4000# SunOS /usr/etc/install 4001# IRIX /sbin/install 4002# AIX /bin/install 4003# AmigaOS /C/install, which installs bootblocks on floppy discs 4004# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4005# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4006# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4007# OS/2's system install, which has a completely different semantic 4008# ./install, which can be erroneously created by make from ./install.sh. 4009{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4010echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4011if test -z "$INSTALL"; then 4012if test "${ac_cv_path_install+set}" = set; then 4013 echo $ECHO_N "(cached) $ECHO_C" >&6 4014else 4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 # Account for people who put trailing slashes in PATH elements. 4021case $as_dir/ in 4022 ./ | .// | /cC/* | \ 4023 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4024 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4025 /usr/ucb/* ) ;; 4026 *) 4027 # OSF1 and SCO ODT 3.0 have their own names for install. 4028 # Don't use installbsd from OSF since it installs stuff as root 4029 # by default. 4030 for ac_prog in ginstall scoinst install; do 4031 for ac_exec_ext in '' $ac_executable_extensions; do 4032 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4033 if test $ac_prog = install && 4034 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4035 # AIX install. It has an incompatible calling convention. 4036 : 4037 elif test $ac_prog = install && 4038 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4039 # program-specific install script used by HP pwplus--don't use. 4040 : 4041 else 4042 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4043 break 3 4044 fi 4045 fi 4046 done 4047 done 4048 ;; 4049esac 4050done 4051IFS=$as_save_IFS 4052 4053 4054fi 4055 if test "${ac_cv_path_install+set}" = set; then 4056 INSTALL=$ac_cv_path_install 4057 else 4058 # As a last resort, use the slow shell script. Don't cache a 4059 # value for INSTALL within a source directory, because that will 4060 # break other packages using the cache if that directory is 4061 # removed, or if the value is a relative name. 4062 INSTALL=$ac_install_sh 4063 fi 4064fi 4065{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4066echo "${ECHO_T}$INSTALL" >&6; } 4067 4068# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4069# It thinks the first close brace ends the variable substitution. 4070test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4071 4072test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4073 4074test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4075 4076{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4077echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4078LN_S=$as_ln_s 4079if test "$LN_S" = "ln -s"; then 4080 { echo "$as_me:$LINENO: result: yes" >&5 4081echo "${ECHO_T}yes" >&6; } 4082else 4083 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4084echo "${ECHO_T}no, using $LN_S" >&6; } 4085fi 4086 4087enable_win32_dll=yes 4088 4089case $host in 4090*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4091 if test -n "$ac_tool_prefix"; then 4092 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4093set dummy ${ac_tool_prefix}as; ac_word=$2 4094{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4096if test "${ac_cv_prog_AS+set}" = set; then 4097 echo $ECHO_N "(cached) $ECHO_C" >&6 4098else 4099 if test -n "$AS"; then 4100 ac_cv_prog_AS="$AS" # Let the user override the test. 4101else 4102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4103for as_dir in $PATH 4104do 4105 IFS=$as_save_IFS 4106 test -z "$as_dir" && as_dir=. 4107 for ac_exec_ext in '' $ac_executable_extensions; do 4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4109 ac_cv_prog_AS="${ac_tool_prefix}as" 4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4111 break 2 4112 fi 4113done 4114done 4115IFS=$as_save_IFS 4116 4117fi 4118fi 4119AS=$ac_cv_prog_AS 4120if test -n "$AS"; then 4121 { echo "$as_me:$LINENO: result: $AS" >&5 4122echo "${ECHO_T}$AS" >&6; } 4123else 4124 { echo "$as_me:$LINENO: result: no" >&5 4125echo "${ECHO_T}no" >&6; } 4126fi 4127 4128 4129fi 4130if test -z "$ac_cv_prog_AS"; then 4131 ac_ct_AS=$AS 4132 # Extract the first word of "as", so it can be a program name with args. 4133set dummy as; ac_word=$2 4134{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4136if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4137 echo $ECHO_N "(cached) $ECHO_C" >&6 4138else 4139 if test -n "$ac_ct_AS"; then 4140 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4141else 4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4143for as_dir in $PATH 4144do 4145 IFS=$as_save_IFS 4146 test -z "$as_dir" && as_dir=. 4147 for ac_exec_ext in '' $ac_executable_extensions; do 4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4149 ac_cv_prog_ac_ct_AS="as" 4150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4151 break 2 4152 fi 4153done 4154done 4155IFS=$as_save_IFS 4156 4157fi 4158fi 4159ac_ct_AS=$ac_cv_prog_ac_ct_AS 4160if test -n "$ac_ct_AS"; then 4161 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4162echo "${ECHO_T}$ac_ct_AS" >&6; } 4163else 4164 { echo "$as_me:$LINENO: result: no" >&5 4165echo "${ECHO_T}no" >&6; } 4166fi 4167 4168 if test "x$ac_ct_AS" = x; then 4169 AS="false" 4170 else 4171 case $cross_compiling:$ac_tool_warned in 4172yes:) 4173{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4174whose name does not start with the host triplet. If you think this 4175configuration is useful to you, please write to [email protected]." >&5 4176echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4177whose name does not start with the host triplet. If you think this 4178configuration is useful to you, please write to [email protected]." >&2;} 4179ac_tool_warned=yes ;; 4180esac 4181 AS=$ac_ct_AS 4182 fi 4183else 4184 AS="$ac_cv_prog_AS" 4185fi 4186 4187 if test -n "$ac_tool_prefix"; then 4188 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4189set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4190{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4192if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4193 echo $ECHO_N "(cached) $ECHO_C" >&6 4194else 4195 if test -n "$DLLTOOL"; then 4196 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4197else 4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4199for as_dir in $PATH 4200do 4201 IFS=$as_save_IFS 4202 test -z "$as_dir" && as_dir=. 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4205 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4207 break 2 4208 fi 4209done 4210done 4211IFS=$as_save_IFS 4212 4213fi 4214fi 4215DLLTOOL=$ac_cv_prog_DLLTOOL 4216if test -n "$DLLTOOL"; then 4217 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4218echo "${ECHO_T}$DLLTOOL" >&6; } 4219else 4220 { echo "$as_me:$LINENO: result: no" >&5 4221echo "${ECHO_T}no" >&6; } 4222fi 4223 4224 4225fi 4226if test -z "$ac_cv_prog_DLLTOOL"; then 4227 ac_ct_DLLTOOL=$DLLTOOL 4228 # Extract the first word of "dlltool", so it can be a program name with args. 4229set dummy dlltool; ac_word=$2 4230{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4232if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234else 4235 if test -n "$ac_ct_DLLTOOL"; then 4236 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4237else 4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4239for as_dir in $PATH 4240do 4241 IFS=$as_save_IFS 4242 test -z "$as_dir" && as_dir=. 4243 for ac_exec_ext in '' $ac_executable_extensions; do 4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4245 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4247 break 2 4248 fi 4249done 4250done 4251IFS=$as_save_IFS 4252 4253fi 4254fi 4255ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4256if test -n "$ac_ct_DLLTOOL"; then 4257 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4258echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 4259else 4260 { echo "$as_me:$LINENO: result: no" >&5 4261echo "${ECHO_T}no" >&6; } 4262fi 4263 4264 if test "x$ac_ct_DLLTOOL" = x; then 4265 DLLTOOL="false" 4266 else 4267 case $cross_compiling:$ac_tool_warned in 4268yes:) 4269{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4270whose name does not start with the host triplet. If you think this 4271configuration is useful to you, please write to [email protected]." >&5 4272echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4273whose name does not start with the host triplet. If you think this 4274configuration is useful to you, please write to [email protected]." >&2;} 4275ac_tool_warned=yes ;; 4276esac 4277 DLLTOOL=$ac_ct_DLLTOOL 4278 fi 4279else 4280 DLLTOOL="$ac_cv_prog_DLLTOOL" 4281fi 4282 4283 if test -n "$ac_tool_prefix"; then 4284 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4285set dummy ${ac_tool_prefix}objdump; ac_word=$2 4286{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4288if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4289 echo $ECHO_N "(cached) $ECHO_C" >&6 4290else 4291 if test -n "$OBJDUMP"; then 4292 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4293else 4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4295for as_dir in $PATH 4296do 4297 IFS=$as_save_IFS 4298 test -z "$as_dir" && as_dir=. 4299 for ac_exec_ext in '' $ac_executable_extensions; do 4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4301 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4303 break 2 4304 fi 4305done 4306done 4307IFS=$as_save_IFS 4308 4309fi 4310fi 4311OBJDUMP=$ac_cv_prog_OBJDUMP 4312if test -n "$OBJDUMP"; then 4313 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4314echo "${ECHO_T}$OBJDUMP" >&6; } 4315else 4316 { echo "$as_me:$LINENO: result: no" >&5 4317echo "${ECHO_T}no" >&6; } 4318fi 4319 4320 4321fi 4322if test -z "$ac_cv_prog_OBJDUMP"; then 4323 ac_ct_OBJDUMP=$OBJDUMP 4324 # Extract the first word of "objdump", so it can be a program name with args. 4325set dummy objdump; ac_word=$2 4326{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4328if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4329 echo $ECHO_N "(cached) $ECHO_C" >&6 4330else 4331 if test -n "$ac_ct_OBJDUMP"; then 4332 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4333else 4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4335for as_dir in $PATH 4336do 4337 IFS=$as_save_IFS 4338 test -z "$as_dir" && as_dir=. 4339 for ac_exec_ext in '' $ac_executable_extensions; do 4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4341 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4343 break 2 4344 fi 4345done 4346done 4347IFS=$as_save_IFS 4348 4349fi 4350fi 4351ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4352if test -n "$ac_ct_OBJDUMP"; then 4353 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4354echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 4355else 4356 { echo "$as_me:$LINENO: result: no" >&5 4357echo "${ECHO_T}no" >&6; } 4358fi 4359 4360 if test "x$ac_ct_OBJDUMP" = x; then 4361 OBJDUMP="false" 4362 else 4363 case $cross_compiling:$ac_tool_warned in 4364yes:) 4365{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4366whose name does not start with the host triplet. If you think this 4367configuration is useful to you, please write to [email protected]." >&5 4368echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4369whose name does not start with the host triplet. If you think this 4370configuration is useful to you, please write to [email protected]." >&2;} 4371ac_tool_warned=yes ;; 4372esac 4373 OBJDUMP=$ac_ct_OBJDUMP 4374 fi 4375else 4376 OBJDUMP="$ac_cv_prog_OBJDUMP" 4377fi 4378 4379 ;; 4380esac 4381 4382test -z "$AS" && AS=as 4383 4384 4385 4386 4387 4388test -z "$DLLTOOL" && DLLTOOL=dlltool 4389 4390 4391 4392 4393 4394test -z "$OBJDUMP" && OBJDUMP=objdump 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404macro_version='2.1a' 4405macro_revision='1.2410' 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418ltmain="$ac_aux_dir/ltmain.sh" 4419 4420# Set options 4421 4422enable_dlopen=no 4423 4424 4425 4426# Check whether --enable-shared was given. 4427if test "${enable_shared+set}" = set; then 4428 enableval=$enable_shared; p=${PACKAGE-default} 4429 case $enableval in 4430 yes) enable_shared=yes ;; 4431 no) enable_shared=no ;; 4432 *) 4433 enable_shared=no 4434 # Look at the argument we got. We use all the common list separators. 4435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4436 for pkg in $enableval; do 4437 IFS="$lt_save_ifs" 4438 if test "X$pkg" = "X$p"; then 4439 enable_shared=yes 4440 fi 4441 done 4442 IFS="$lt_save_ifs" 4443 ;; 4444 esac 4445else 4446 enable_shared=yes 4447fi 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457# Check whether --enable-static was given. 4458if test "${enable_static+set}" = set; then 4459 enableval=$enable_static; p=${PACKAGE-default} 4460 case $enableval in 4461 yes) enable_static=yes ;; 4462 no) enable_static=no ;; 4463 *) 4464 enable_static=no 4465 # Look at the argument we got. We use all the common list separators. 4466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4467 for pkg in $enableval; do 4468 IFS="$lt_save_ifs" 4469 if test "X$pkg" = "X$p"; then 4470 enable_static=yes 4471 fi 4472 done 4473 IFS="$lt_save_ifs" 4474 ;; 4475 esac 4476else 4477 enable_static=yes 4478fi 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489# Check whether --with-pic was given. 4490if test "${with_pic+set}" = set; then 4491 withval=$with_pic; pic_mode="$withval" 4492else 4493 pic_mode=default 4494fi 4495 4496 4497test -z "$pic_mode" && pic_mode=default 4498 4499 4500 4501 4502 4503 4504 4505# Check whether --enable-fast-install was given. 4506if test "${enable_fast_install+set}" = set; then 4507 enableval=$enable_fast_install; p=${PACKAGE-default} 4508 case $enableval in 4509 yes) enable_fast_install=yes ;; 4510 no) enable_fast_install=no ;; 4511 *) 4512 enable_fast_install=no 4513 # Look at the argument we got. We use all the common list separators. 4514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4515 for pkg in $enableval; do 4516 IFS="$lt_save_ifs" 4517 if test "X$pkg" = "X$p"; then 4518 enable_fast_install=yes 4519 fi 4520 done 4521 IFS="$lt_save_ifs" 4522 ;; 4523 esac 4524else 4525 enable_fast_install=yes 4526fi 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4537echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4538if test "${ac_cv_path_SED+set}" = set; then 4539 echo $ECHO_N "(cached) $ECHO_C" >&6 4540else 4541 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4542 for ac_i in 1 2 3 4 5 6 7; do 4543 ac_script="$ac_script$as_nl$ac_script" 4544 done 4545 echo "$ac_script" | sed 99q >conftest.sed 4546 $as_unset ac_script || ac_script= 4547 # Extract the first word of "sed gsed" to use in msg output 4548if test -z "$SED"; then 4549set dummy sed gsed; ac_prog_name=$2 4550if test "${ac_cv_path_SED+set}" = set; then 4551 echo $ECHO_N "(cached) $ECHO_C" >&6 4552else 4553 ac_path_SED_found=false 4554# Loop through the user's path and test for each of PROGNAME-LIST 4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556for as_dir in $PATH 4557do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_prog in sed gsed; do 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4563 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4564 # Check for GNU ac_path_SED and select it if it is found. 4565 # Check for GNU $ac_path_SED 4566case `"$ac_path_SED" --version 2>&1` in 4567*GNU*) 4568 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4569*) 4570 ac_count=0 4571 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4572 while : 4573 do 4574 cat "conftest.in" "conftest.in" >"conftest.tmp" 4575 mv "conftest.tmp" "conftest.in" 4576 cp "conftest.in" "conftest.nl" 4577 echo '' >> "conftest.nl" 4578 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4580 ac_count=`expr $ac_count + 1` 4581 if test $ac_count -gt ${ac_path_SED_max-0}; then 4582 # Best one so far, save it but keep looking for a better one 4583 ac_cv_path_SED="$ac_path_SED" 4584 ac_path_SED_max=$ac_count 4585 fi 4586 # 10*(2^10) chars as input seems more than enough 4587 test $ac_count -gt 10 && break 4588 done 4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4590esac 4591 4592 4593 $ac_path_SED_found && break 3 4594 done 4595done 4596 4597done 4598IFS=$as_save_IFS 4599 4600 4601fi 4602 4603SED="$ac_cv_path_SED" 4604if test -z "$SED"; then 4605 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 4606echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 4607 { (exit 1); exit 1; }; } 4608fi 4609 4610else 4611 ac_cv_path_SED=$SED 4612fi 4613 4614fi 4615{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 4616echo "${ECHO_T}$ac_cv_path_SED" >&6; } 4617 SED="$ac_cv_path_SED" 4618 rm -f conftest.sed 4619 4620test -z "$SED" && SED=sed 4621Xsed="$SED -e 1s/^X//" 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4634echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4635if test "${ac_cv_path_GREP+set}" = set; then 4636 echo $ECHO_N "(cached) $ECHO_C" >&6 4637else 4638 # Extract the first word of "grep ggrep" to use in msg output 4639if test -z "$GREP"; then 4640set dummy grep ggrep; ac_prog_name=$2 4641if test "${ac_cv_path_GREP+set}" = set; then 4642 echo $ECHO_N "(cached) $ECHO_C" >&6 4643else 4644 ac_path_GREP_found=false 4645# Loop through the user's path and test for each of PROGNAME-LIST 4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4648do 4649 IFS=$as_save_IFS 4650 test -z "$as_dir" && as_dir=. 4651 for ac_prog in grep ggrep; do 4652 for ac_exec_ext in '' $ac_executable_extensions; do 4653 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4654 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4655 # Check for GNU ac_path_GREP and select it if it is found. 4656 # Check for GNU $ac_path_GREP 4657case `"$ac_path_GREP" --version 2>&1` in 4658*GNU*) 4659 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4660*) 4661 ac_count=0 4662 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4663 while : 4664 do 4665 cat "conftest.in" "conftest.in" >"conftest.tmp" 4666 mv "conftest.tmp" "conftest.in" 4667 cp "conftest.in" "conftest.nl" 4668 echo 'GREP' >> "conftest.nl" 4669 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4671 ac_count=`expr $ac_count + 1` 4672 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4673 # Best one so far, save it but keep looking for a better one 4674 ac_cv_path_GREP="$ac_path_GREP" 4675 ac_path_GREP_max=$ac_count 4676 fi 4677 # 10*(2^10) chars as input seems more than enough 4678 test $ac_count -gt 10 && break 4679 done 4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4681esac 4682 4683 4684 $ac_path_GREP_found && break 3 4685 done 4686done 4687 4688done 4689IFS=$as_save_IFS 4690 4691 4692fi 4693 4694GREP="$ac_cv_path_GREP" 4695if test -z "$GREP"; then 4696 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4697echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4698 { (exit 1); exit 1; }; } 4699fi 4700 4701else 4702 ac_cv_path_GREP=$GREP 4703fi 4704 4705 4706fi 4707{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4708echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4709 GREP="$ac_cv_path_GREP" 4710 4711 4712{ echo "$as_me:$LINENO: checking for egrep" >&5 4713echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4714if test "${ac_cv_path_EGREP+set}" = set; then 4715 echo $ECHO_N "(cached) $ECHO_C" >&6 4716else 4717 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4718 then ac_cv_path_EGREP="$GREP -E" 4719 else 4720 # Extract the first word of "egrep" to use in msg output 4721if test -z "$EGREP"; then 4722set dummy egrep; ac_prog_name=$2 4723if test "${ac_cv_path_EGREP+set}" = set; then 4724 echo $ECHO_N "(cached) $ECHO_C" >&6 4725else 4726 ac_path_EGREP_found=false 4727# Loop through the user's path and test for each of PROGNAME-LIST 4728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4729for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4730do 4731 IFS=$as_save_IFS 4732 test -z "$as_dir" && as_dir=. 4733 for ac_prog in egrep; do 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4736 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4737 # Check for GNU ac_path_EGREP and select it if it is found. 4738 # Check for GNU $ac_path_EGREP 4739case `"$ac_path_EGREP" --version 2>&1` in 4740*GNU*) 4741 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4742*) 4743 ac_count=0 4744 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4745 while : 4746 do 4747 cat "conftest.in" "conftest.in" >"conftest.tmp" 4748 mv "conftest.tmp" "conftest.in" 4749 cp "conftest.in" "conftest.nl" 4750 echo 'EGREP' >> "conftest.nl" 4751 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4753 ac_count=`expr $ac_count + 1` 4754 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4755 # Best one so far, save it but keep looking for a better one 4756 ac_cv_path_EGREP="$ac_path_EGREP" 4757 ac_path_EGREP_max=$ac_count 4758 fi 4759 # 10*(2^10) chars as input seems more than enough 4760 test $ac_count -gt 10 && break 4761 done 4762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4763esac 4764 4765 4766 $ac_path_EGREP_found && break 3 4767 done 4768done 4769 4770done 4771IFS=$as_save_IFS 4772 4773 4774fi 4775 4776EGREP="$ac_cv_path_EGREP" 4777if test -z "$EGREP"; then 4778 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4779echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4780 { (exit 1); exit 1; }; } 4781fi 4782 4783else 4784 ac_cv_path_EGREP=$EGREP 4785fi 4786 4787 4788 fi 4789fi 4790{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4791echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4792 EGREP="$ac_cv_path_EGREP" 4793 4794 4795{ echo "$as_me:$LINENO: checking for fgrep" >&5 4796echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } 4797if test "${ac_cv_path_FGREP+set}" = set; then 4798 echo $ECHO_N "(cached) $ECHO_C" >&6 4799else 4800 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4801 then ac_cv_path_FGREP="$GREP -F" 4802 else 4803 # Extract the first word of "fgrep" to use in msg output 4804if test -z "$FGREP"; then 4805set dummy fgrep; ac_prog_name=$2 4806if test "${ac_cv_path_FGREP+set}" = set; then 4807 echo $ECHO_N "(cached) $ECHO_C" >&6 4808else 4809 ac_path_FGREP_found=false 4810# Loop through the user's path and test for each of PROGNAME-LIST 4811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4813do 4814 IFS=$as_save_IFS 4815 test -z "$as_dir" && as_dir=. 4816 for ac_prog in fgrep; do 4817 for ac_exec_ext in '' $ac_executable_extensions; do 4818 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4819 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4820 # Check for GNU ac_path_FGREP and select it if it is found. 4821 # Check for GNU $ac_path_FGREP 4822case `"$ac_path_FGREP" --version 2>&1` in 4823*GNU*) 4824 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4825*) 4826 ac_count=0 4827 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4828 while : 4829 do 4830 cat "conftest.in" "conftest.in" >"conftest.tmp" 4831 mv "conftest.tmp" "conftest.in" 4832 cp "conftest.in" "conftest.nl" 4833 echo 'FGREP' >> "conftest.nl" 4834 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4836 ac_count=`expr $ac_count + 1` 4837 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4838 # Best one so far, save it but keep looking for a better one 4839 ac_cv_path_FGREP="$ac_path_FGREP" 4840 ac_path_FGREP_max=$ac_count 4841 fi 4842 # 10*(2^10) chars as input seems more than enough 4843 test $ac_count -gt 10 && break 4844 done 4845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4846esac 4847 4848 4849 $ac_path_FGREP_found && break 3 4850 done 4851done 4852 4853done 4854IFS=$as_save_IFS 4855 4856 4857fi 4858 4859FGREP="$ac_cv_path_FGREP" 4860if test -z "$FGREP"; then 4861 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4862echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4863 { (exit 1); exit 1; }; } 4864fi 4865 4866else 4867 ac_cv_path_FGREP=$FGREP 4868fi 4869 4870 4871 fi 4872fi 4873{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4874echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } 4875 FGREP="$ac_cv_path_FGREP" 4876 4877 4878test -z "$GREP" && GREP=grep 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898# Check whether --with-gnu-ld was given. 4899if test "${with_gnu_ld+set}" = set; then 4900 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4901else 4902 with_gnu_ld=no 4903fi 4904 4905ac_prog=ld 4906if test "$GCC" = yes; then 4907 # Check if gcc -print-prog-name=ld gives a path. 4908 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4909echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4910 case $host in 4911 *-*-mingw*) 4912 # gcc leaves a trailing carriage return which upsets mingw 4913 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4914 *) 4915 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4916 esac 4917 case $ac_prog in 4918 # Accept absolute paths. 4919 [\\/]* | ?:[\\/]*) 4920 re_direlt='/[^/][^/]*/\.\./' 4921 # Canonicalize the pathname of ld 4922 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4923 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4924 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4925 done 4926 test -z "$LD" && LD="$ac_prog" 4927 ;; 4928 "") 4929 # If it fails, then pretend we aren't using GCC. 4930 ac_prog=ld 4931 ;; 4932 *) 4933 # If it is relative, then search for the first ld in PATH. 4934 with_gnu_ld=unknown 4935 ;; 4936 esac 4937elif test "$with_gnu_ld" = yes; then 4938 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4939echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4940else 4941 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4942echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4943fi 4944if test "${lt_cv_path_LD+set}" = set; then 4945 echo $ECHO_N "(cached) $ECHO_C" >&6 4946else 4947 if test -z "$LD"; then 4948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4949 for ac_dir in $PATH; do 4950 IFS="$lt_save_ifs" 4951 test -z "$ac_dir" && ac_dir=. 4952 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4953 lt_cv_path_LD="$ac_dir/$ac_prog" 4954 # Check to see if the program is GNU ld. I'd rather use --version, 4955 # but apparently some variants of GNU ld only accept -v. 4956 # Break only if it was the GNU/non-GNU ld that we prefer. 4957 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4958 *GNU* | *'with BFD'*) 4959 test "$with_gnu_ld" != no && break 4960 ;; 4961 *) 4962 test "$with_gnu_ld" != yes && break 4963 ;; 4964 esac 4965 fi 4966 done 4967 IFS="$lt_save_ifs" 4968else 4969 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4970fi 4971fi 4972 4973LD="$lt_cv_path_LD" 4974if test -n "$LD"; then 4975 { echo "$as_me:$LINENO: result: $LD" >&5 4976echo "${ECHO_T}$LD" >&6; } 4977else 4978 { echo "$as_me:$LINENO: result: no" >&5 4979echo "${ECHO_T}no" >&6; } 4980fi 4981test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4982echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4983 { (exit 1); exit 1; }; } 4984{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4985echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4986if test "${lt_cv_prog_gnu_ld+set}" = set; then 4987 echo $ECHO_N "(cached) $ECHO_C" >&6 4988else 4989 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4990case `$LD -v 2>&1 </dev/null` in 4991*GNU* | *'with BFD'*) 4992 lt_cv_prog_gnu_ld=yes 4993 ;; 4994*) 4995 lt_cv_prog_gnu_ld=no 4996 ;; 4997esac 4998fi 4999{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5000echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5001with_gnu_ld=$lt_cv_prog_gnu_ld 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5013echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } 5014if test "${lt_cv_path_NM+set}" = set; then 5015 echo $ECHO_N "(cached) $ECHO_C" >&6 5016else 5017 if test -n "$NM"; then 5018 # Let the user override the test. 5019 lt_cv_path_NM="$NM" 5020else 5021 lt_nm_to_check="${ac_tool_prefix}nm" 5022 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5023 lt_nm_to_check="$lt_nm_to_check nm" 5024 fi 5025 for lt_tmp_nm in $lt_nm_to_check; do 5026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5027 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5028 IFS="$lt_save_ifs" 5029 test -z "$ac_dir" && ac_dir=. 5030 tmp_nm="$ac_dir/$lt_tmp_nm" 5031 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5032 # Check to see if the nm accepts a BSD-compat flag. 5033 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5034 # nm: unknown option "B" ignored 5035 # Tru64's nm complains that /dev/null is an invalid object file 5036 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5037 */dev/null* | *'Invalid file or object type'*) 5038 lt_cv_path_NM="$tmp_nm -B" 5039 break 5040 ;; 5041 *) 5042 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5043 */dev/null*) 5044 lt_cv_path_NM="$tmp_nm -p" 5045 break 5046 ;; 5047 *) 5048 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5049 continue # so that we can try to find one that supports BSD flags 5050 ;; 5051 esac 5052 ;; 5053 esac 5054 fi 5055 done 5056 IFS="$lt_save_ifs" 5057 done 5058 : ${lt_cv_path_NM=no} 5059fi 5060fi 5061{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5062echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5063if test "$lt_cv_path_NM" != "no"; then 5064 NM="$lt_cv_path_NM" 5065else 5066 # Didn't find any BSD compatible name lister, look for dumpbin. 5067 if test -n "$ac_tool_prefix"; then 5068 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5069 do 5070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5071set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5072{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5074if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5075 echo $ECHO_N "(cached) $ECHO_C" >&6 5076else 5077 if test -n "$DUMPBIN"; then 5078 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5079else 5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5081for as_dir in $PATH 5082do 5083 IFS=$as_save_IFS 5084 test -z "$as_dir" && as_dir=. 5085 for ac_exec_ext in '' $ac_executable_extensions; do 5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5087 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5089 break 2 5090 fi 5091done 5092done 5093IFS=$as_save_IFS 5094 5095fi 5096fi 5097DUMPBIN=$ac_cv_prog_DUMPBIN 5098if test -n "$DUMPBIN"; then 5099 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5100echo "${ECHO_T}$DUMPBIN" >&6; } 5101else 5102 { echo "$as_me:$LINENO: result: no" >&5 5103echo "${ECHO_T}no" >&6; } 5104fi 5105 5106 5107 test -n "$DUMPBIN" && break 5108 done 5109fi 5110if test -z "$DUMPBIN"; then 5111 ac_ct_DUMPBIN=$DUMPBIN 5112 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5113do 5114 # Extract the first word of "$ac_prog", so it can be a program name with args. 5115set dummy $ac_prog; ac_word=$2 5116{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5118if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5119 echo $ECHO_N "(cached) $ECHO_C" >&6 5120else 5121 if test -n "$ac_ct_DUMPBIN"; then 5122 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5123else 5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5125for as_dir in $PATH 5126do 5127 IFS=$as_save_IFS 5128 test -z "$as_dir" && as_dir=. 5129 for ac_exec_ext in '' $ac_executable_extensions; do 5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5131 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5133 break 2 5134 fi 5135done 5136done 5137IFS=$as_save_IFS 5138 5139fi 5140fi 5141ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5142if test -n "$ac_ct_DUMPBIN"; then 5143 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5144echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } 5145else 5146 { echo "$as_me:$LINENO: result: no" >&5 5147echo "${ECHO_T}no" >&6; } 5148fi 5149 5150 5151 test -n "$ac_ct_DUMPBIN" && break 5152done 5153 5154 if test "x$ac_ct_DUMPBIN" = x; then 5155 DUMPBIN=":" 5156 else 5157 case $cross_compiling:$ac_tool_warned in 5158yes:) 5159{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5160whose name does not start with the host triplet. If you think this 5161configuration is useful to you, please write to [email protected]." >&5 5162echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5163whose name does not start with the host triplet. If you think this 5164configuration is useful to you, please write to [email protected]." >&2;} 5165ac_tool_warned=yes ;; 5166esac 5167 DUMPBIN=$ac_ct_DUMPBIN 5168 fi 5169fi 5170 5171 5172 if test "$DUMPBIN" != ":"; then 5173 NM="$DUMPBIN" 5174 fi 5175fi 5176test -z "$NM" && NM=nm 5177 5178 5179 5180 5181 5182 5183{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5184echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } 5185if test "${lt_cv_nm_interface+set}" = set; then 5186 echo $ECHO_N "(cached) $ECHO_C" >&6 5187else 5188 lt_cv_nm_interface="BSD nm" 5189 echo "int some_variable = 0;" > conftest.$ac_ext 5190 (eval echo "\"\$as_me:5190: $ac_compile\"" >&5) 5191 (eval "$ac_compile" 2>conftest.err) 5192 cat conftest.err >&5 5193 (eval echo "\"\$as_me:5193: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5194 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5195 cat conftest.err >&5 5196 (eval echo "\"\$as_me:5196: output\"" >&5) 5197 cat conftest.out >&5 5198 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5199 lt_cv_nm_interface="MS dumpbin" 5200 fi 5201 rm -f conftest* 5202fi 5203{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5204echo "${ECHO_T}$lt_cv_nm_interface" >&6; } 5205 5206# find the maximum length of command line arguments 5207{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5208echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 5209if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5210 echo $ECHO_N "(cached) $ECHO_C" >&6 5211else 5212 i=0 5213 teststring="ABCD" 5214 5215 case $build_os in 5216 msdosdjgpp*) 5217 # On DJGPP, this test can blow up pretty badly due to problems in libc 5218 # (any single argument exceeding 2000 bytes causes a buffer overrun 5219 # during glob expansion). Even if it were fixed, the result of this 5220 # check would be larger than it should be. 5221 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5222 ;; 5223 5224 gnu*) 5225 # Under GNU Hurd, this test is not required because there is 5226 # no limit to the length of command line arguments. 5227 # Libtool will interpret -1 as no limit whatsoever 5228 lt_cv_sys_max_cmd_len=-1; 5229 ;; 5230 5231 cygwin* | mingw*) 5232 # On Win9x/ME, this test blows up -- it succeeds, but takes 5233 # about 5 minutes as the teststring grows exponentially. 5234 # Worse, since 9x/ME are not pre-emptively multitasking, 5235 # you end up with a "frozen" computer, even though with patience 5236 # the test eventually succeeds (with a max line length of 256k). 5237 # Instead, let's just punt: use the minimum linelength reported by 5238 # all of the supported platforms: 8192 (on NT/2K/XP). 5239 lt_cv_sys_max_cmd_len=8192; 5240 ;; 5241 5242 amigaos*) 5243 # On AmigaOS with pdksh, this test takes hours, literally. 5244 # So we just punt and use a minimum line length of 8192. 5245 lt_cv_sys_max_cmd_len=8192; 5246 ;; 5247 5248 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5249 # This has been around since 386BSD, at least. Likely further. 5250 if test -x /sbin/sysctl; then 5251 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5252 elif test -x /usr/sbin/sysctl; then 5253 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5254 else 5255 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5256 fi 5257 # And add a safety zone 5258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5260 ;; 5261 5262 interix*) 5263 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5264 lt_cv_sys_max_cmd_len=196608 5265 ;; 5266 5267 osf*) 5268 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5269 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5270 # nice to cause kernel panics so lets avoid the loop below. 5271 # First set a reasonable default. 5272 lt_cv_sys_max_cmd_len=16384 5273 # 5274 if test -x /sbin/sysconfig; then 5275 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5276 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5277 esac 5278 fi 5279 ;; 5280 sco3.2v5*) 5281 lt_cv_sys_max_cmd_len=102400 5282 ;; 5283 sysv5* | sco5v6* | sysv4.2uw2*) 5284 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5285 if test -n "$kargmax"; then 5286 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5287 else 5288 lt_cv_sys_max_cmd_len=32768 5289 fi 5290 ;; 5291 *) 5292 # Make teststring a little bigger before we do anything with it. 5293 # a 1K string should be a reasonable start. 5294 for i in 1 2 3 4 5 6 7 8 ; do 5295 teststring=$teststring$teststring 5296 done 5297 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5298 # If test is not a shell built-in, we'll probably end up computing a 5299 # maximum length that is only half of the actual maximum length, but 5300 # we can't tell. 5301 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5302 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5303 test $i != 17 # 1/2 MB should be enough 5304 do 5305 i=`expr $i + 1` 5306 teststring=$teststring$teststring 5307 done 5308 # Only check the string length outside the loop. 5309 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5310 teststring= 5311 # Add a significant safety factor because C++ compilers can tack on massive 5312 # amounts of additional arguments before passing them to the linker. 5313 # It appears as though 1/2 is a usable value. 5314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5315 ;; 5316 esac 5317 5318fi 5319 5320if test -n $lt_cv_sys_max_cmd_len ; then 5321 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5322echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5323else 5324 { echo "$as_me:$LINENO: result: none" >&5 5325echo "${ECHO_T}none" >&6; } 5326fi 5327max_cmd_len=$lt_cv_sys_max_cmd_len 5328 5329 5330 5331 5332 5333 5334 5335: ${CP="cp -f"} 5336: ${MV="mv -f"} 5337: ${RM="rm -f"} 5338 5339{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5340echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } 5341# Try some XSI features 5342xsi_shell=no 5343( _lt_dummy="a/b/c" 5344 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5345 = c,a/b,, ) >/dev/null 2>&1 \ 5346 && xsi_shell=yes 5347{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 5348echo "${ECHO_T}$xsi_shell" >&6; } 5349 5350 5351{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5352echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } 5353lt_shell_append=no 5354( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5355 >/dev/null 2>&1 \ 5356 && lt_shell_append=yes 5357{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 5358echo "${ECHO_T}$lt_shell_append" >&6; } 5359 5360 5361if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5362 lt_unset=unset 5363else 5364 lt_unset=false 5365fi 5366 5367 5368 5369 5370 5371# test EBCDIC or ASCII 5372case `echo X|tr X '\101'` in 5373 A) # ASCII based system 5374 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5375 lt_SP2NL='tr \040 \012' 5376 lt_NL2SP='tr \015\012 \040\040' 5377 ;; 5378 *) # EBCDIC based system 5379 lt_SP2NL='tr \100 \n' 5380 lt_NL2SP='tr \r\n \100\100' 5381 ;; 5382esac 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5393echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 5394if test "${lt_cv_ld_reload_flag+set}" = set; then 5395 echo $ECHO_N "(cached) $ECHO_C" >&6 5396else 5397 lt_cv_ld_reload_flag='-r' 5398fi 5399{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5400echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 5401reload_flag=$lt_cv_ld_reload_flag 5402case $reload_flag in 5403"" | " "*) ;; 5404*) reload_flag=" $reload_flag" ;; 5405esac 5406reload_cmds='$LD$reload_flag -o $output$reload_objs' 5407case $host_os in 5408 darwin*) 5409 if test "$GCC" = yes; then 5410 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5411 else 5412 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5413 fi 5414 ;; 5415esac 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5427echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 5428if test "${lt_cv_deplibs_check_method+set}" = set; then 5429 echo $ECHO_N "(cached) $ECHO_C" >&6 5430else 5431 lt_cv_file_magic_cmd='$MAGIC_CMD' 5432lt_cv_file_magic_test_file= 5433lt_cv_deplibs_check_method='unknown' 5434# Need to set the preceding variable on all platforms that support 5435# interlibrary dependencies. 5436# 'none' -- dependencies not supported. 5437# `unknown' -- same as none, but documents that we really don't know. 5438# 'pass_all' -- all dependencies passed with no checks. 5439# 'test_compile' -- check by making test program. 5440# 'file_magic [[regex]]' -- check by looking for files in library path 5441# which responds to the $file_magic_cmd with a given extended regex. 5442# If you have `file' or equivalent on your system and you're not sure 5443# whether `pass_all' will *always* work, you probably want this one. 5444 5445case $host_os in 5446aix4* | aix5*) 5447 lt_cv_deplibs_check_method=pass_all 5448 ;; 5449 5450beos*) 5451 lt_cv_deplibs_check_method=pass_all 5452 ;; 5453 5454bsdi[45]*) 5455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5456 lt_cv_file_magic_cmd='/usr/bin/file -L' 5457 lt_cv_file_magic_test_file=/shlib/libc.so 5458 ;; 5459 5460cygwin*) 5461 # func_win32_libid is a shell function defined in ltmain.sh 5462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5463 lt_cv_file_magic_cmd='func_win32_libid' 5464 ;; 5465 5466mingw* | pw32*) 5467 # Base MSYS/MinGW do not provide the 'file' command needed by 5468 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5469 # unless we find 'file', for example because we are cross-compiling. 5470 if ( file / ) >/dev/null 2>&1; then 5471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5472 lt_cv_file_magic_cmd='func_win32_libid' 5473 else 5474 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5475 lt_cv_file_magic_cmd='$OBJDUMP -f' 5476 fi 5477 ;; 5478 5479darwin* | rhapsody*) 5480 lt_cv_deplibs_check_method=pass_all 5481 ;; 5482 5483freebsd* | dragonfly*) 5484 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5485 case $host_cpu in 5486 i*86 ) 5487 # Not sure whether the presence of OpenBSD here was a mistake. 5488 # Let's accept both of them until this is cleared up. 5489 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5490 lt_cv_file_magic_cmd=/usr/bin/file 5491 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5492 ;; 5493 esac 5494 else 5495 lt_cv_deplibs_check_method=pass_all 5496 fi 5497 ;; 5498 5499gnu*) 5500 lt_cv_deplibs_check_method=pass_all 5501 ;; 5502 5503hpux10.20* | hpux11*) 5504 lt_cv_file_magic_cmd=/usr/bin/file 5505 case $host_cpu in 5506 ia64*) 5507 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5508 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5509 ;; 5510 hppa*64*) 5511 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]' 5512 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5513 ;; 5514 *) 5515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5516 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5517 ;; 5518 esac 5519 ;; 5520 5521interix3*) 5522 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5524 ;; 5525 5526irix5* | irix6* | nonstopux*) 5527 case $LD in 5528 *-32|*"-32 ") libmagic=32-bit;; 5529 *-n32|*"-n32 ") libmagic=N32;; 5530 *-64|*"-64 ") libmagic=64-bit;; 5531 *) libmagic=never-match;; 5532 esac 5533 lt_cv_deplibs_check_method=pass_all 5534 ;; 5535 5536# This must be Linux ELF. 5537linux* | k*bsd*-gnu) 5538 lt_cv_deplibs_check_method=pass_all 5539 ;; 5540 5541netbsd*) 5542 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5544 else 5545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5546 fi 5547 ;; 5548 5549newos6*) 5550 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5551 lt_cv_file_magic_cmd=/usr/bin/file 5552 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5553 ;; 5554 5555*nto* | *qnx*) 5556 lt_cv_deplibs_check_method=pass_all 5557 ;; 5558 5559openbsd*) 5560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5562 else 5563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5564 fi 5565 ;; 5566 5567osf3* | osf4* | osf5*) 5568 lt_cv_deplibs_check_method=pass_all 5569 ;; 5570 5571rdos*) 5572 lt_cv_deplibs_check_method=pass_all 5573 ;; 5574 5575solaris*) 5576 lt_cv_deplibs_check_method=pass_all 5577 ;; 5578 5579sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5580 lt_cv_deplibs_check_method=pass_all 5581 ;; 5582 5583sysv4 | sysv4.3*) 5584 case $host_vendor in 5585 motorola) 5586 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]' 5587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5588 ;; 5589 ncr) 5590 lt_cv_deplibs_check_method=pass_all 5591 ;; 5592 sequent) 5593 lt_cv_file_magic_cmd='/bin/file' 5594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5595 ;; 5596 sni) 5597 lt_cv_file_magic_cmd='/bin/file' 5598 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5599 lt_cv_file_magic_test_file=/lib/libc.so 5600 ;; 5601 siemens) 5602 lt_cv_deplibs_check_method=pass_all 5603 ;; 5604 pc) 5605 lt_cv_deplibs_check_method=pass_all 5606 ;; 5607 esac 5608 ;; 5609 5610tpf*) 5611 lt_cv_deplibs_check_method=pass_all 5612 ;; 5613esac 5614 5615fi 5616{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5617echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5618file_magic_cmd=$lt_cv_file_magic_cmd 5619deplibs_check_method=$lt_cv_deplibs_check_method 5620test -z "$deplibs_check_method" && deplibs_check_method=unknown 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633if test -n "$ac_tool_prefix"; then 5634 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5635set dummy ${ac_tool_prefix}ar; ac_word=$2 5636{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5638if test "${ac_cv_prog_AR+set}" = set; then 5639 echo $ECHO_N "(cached) $ECHO_C" >&6 5640else 5641 if test -n "$AR"; then 5642 ac_cv_prog_AR="$AR" # Let the user override the test. 5643else 5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5645for as_dir in $PATH 5646do 5647 IFS=$as_save_IFS 5648 test -z "$as_dir" && as_dir=. 5649 for ac_exec_ext in '' $ac_executable_extensions; do 5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5651 ac_cv_prog_AR="${ac_tool_prefix}ar" 5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5653 break 2 5654 fi 5655done 5656done 5657IFS=$as_save_IFS 5658 5659fi 5660fi 5661AR=$ac_cv_prog_AR 5662if test -n "$AR"; then 5663 { echo "$as_me:$LINENO: result: $AR" >&5 5664echo "${ECHO_T}$AR" >&6; } 5665else 5666 { echo "$as_me:$LINENO: result: no" >&5 5667echo "${ECHO_T}no" >&6; } 5668fi 5669 5670 5671fi 5672if test -z "$ac_cv_prog_AR"; then 5673 ac_ct_AR=$AR 5674 # Extract the first word of "ar", so it can be a program name with args. 5675set dummy ar; ac_word=$2 5676{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5678if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5679 echo $ECHO_N "(cached) $ECHO_C" >&6 5680else 5681 if test -n "$ac_ct_AR"; then 5682 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5683else 5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5685for as_dir in $PATH 5686do 5687 IFS=$as_save_IFS 5688 test -z "$as_dir" && as_dir=. 5689 for ac_exec_ext in '' $ac_executable_extensions; do 5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5691 ac_cv_prog_ac_ct_AR="ar" 5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5693 break 2 5694 fi 5695done 5696done 5697IFS=$as_save_IFS 5698 5699fi 5700fi 5701ac_ct_AR=$ac_cv_prog_ac_ct_AR 5702if test -n "$ac_ct_AR"; then 5703 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5704echo "${ECHO_T}$ac_ct_AR" >&6; } 5705else 5706 { echo "$as_me:$LINENO: result: no" >&5 5707echo "${ECHO_T}no" >&6; } 5708fi 5709 5710 if test "x$ac_ct_AR" = x; then 5711 AR="false" 5712 else 5713 case $cross_compiling:$ac_tool_warned in 5714yes:) 5715{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5716whose name does not start with the host triplet. If you think this 5717configuration is useful to you, please write to [email protected]." >&5 5718echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5719whose name does not start with the host triplet. If you think this 5720configuration is useful to you, please write to [email protected]." >&2;} 5721ac_tool_warned=yes ;; 5722esac 5723 AR=$ac_ct_AR 5724 fi 5725else 5726 AR="$ac_cv_prog_AR" 5727fi 5728 5729test -z "$AR" && AR=ar 5730test -z "$AR_FLAGS" && AR_FLAGS=cru 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742if test -n "$ac_tool_prefix"; then 5743 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5744set dummy ${ac_tool_prefix}strip; ac_word=$2 5745{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5747if test "${ac_cv_prog_STRIP+set}" = set; then 5748 echo $ECHO_N "(cached) $ECHO_C" >&6 5749else 5750 if test -n "$STRIP"; then 5751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5752else 5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5754for as_dir in $PATH 5755do 5756 IFS=$as_save_IFS 5757 test -z "$as_dir" && as_dir=. 5758 for ac_exec_ext in '' $ac_executable_extensions; do 5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5760 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5762 break 2 5763 fi 5764done 5765done 5766IFS=$as_save_IFS 5767 5768fi 5769fi 5770STRIP=$ac_cv_prog_STRIP 5771if test -n "$STRIP"; then 5772 { echo "$as_me:$LINENO: result: $STRIP" >&5 5773echo "${ECHO_T}$STRIP" >&6; } 5774else 5775 { echo "$as_me:$LINENO: result: no" >&5 5776echo "${ECHO_T}no" >&6; } 5777fi 5778 5779 5780fi 5781if test -z "$ac_cv_prog_STRIP"; then 5782 ac_ct_STRIP=$STRIP 5783 # Extract the first word of "strip", so it can be a program name with args. 5784set dummy strip; ac_word=$2 5785{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5787if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 if test -n "$ac_ct_STRIP"; then 5791 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5792else 5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5794for as_dir in $PATH 5795do 5796 IFS=$as_save_IFS 5797 test -z "$as_dir" && as_dir=. 5798 for ac_exec_ext in '' $ac_executable_extensions; do 5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5800 ac_cv_prog_ac_ct_STRIP="strip" 5801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5802 break 2 5803 fi 5804done 5805done 5806IFS=$as_save_IFS 5807 5808fi 5809fi 5810ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5811if test -n "$ac_ct_STRIP"; then 5812 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5813echo "${ECHO_T}$ac_ct_STRIP" >&6; } 5814else 5815 { echo "$as_me:$LINENO: result: no" >&5 5816echo "${ECHO_T}no" >&6; } 5817fi 5818 5819 if test "x$ac_ct_STRIP" = x; then 5820 STRIP=":" 5821 else 5822 case $cross_compiling:$ac_tool_warned in 5823yes:) 5824{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5825whose name does not start with the host triplet. If you think this 5826configuration is useful to you, please write to [email protected]." >&5 5827echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5828whose name does not start with the host triplet. If you think this 5829configuration is useful to you, please write to [email protected]." >&2;} 5830ac_tool_warned=yes ;; 5831esac 5832 STRIP=$ac_ct_STRIP 5833 fi 5834else 5835 STRIP="$ac_cv_prog_STRIP" 5836fi 5837 5838test -z "$STRIP" && STRIP=: 5839 5840 5841 5842 5843 5844 5845if test -n "$ac_tool_prefix"; then 5846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5847set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5848{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5850if test "${ac_cv_prog_RANLIB+set}" = set; then 5851 echo $ECHO_N "(cached) $ECHO_C" >&6 5852else 5853 if test -n "$RANLIB"; then 5854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5855else 5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5857for as_dir in $PATH 5858do 5859 IFS=$as_save_IFS 5860 test -z "$as_dir" && as_dir=. 5861 for ac_exec_ext in '' $ac_executable_extensions; do 5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5865 break 2 5866 fi 5867done 5868done 5869IFS=$as_save_IFS 5870 5871fi 5872fi 5873RANLIB=$ac_cv_prog_RANLIB 5874if test -n "$RANLIB"; then 5875 { echo "$as_me:$LINENO: result: $RANLIB" >&5 5876echo "${ECHO_T}$RANLIB" >&6; } 5877else 5878 { echo "$as_me:$LINENO: result: no" >&5 5879echo "${ECHO_T}no" >&6; } 5880fi 5881 5882 5883fi 5884if test -z "$ac_cv_prog_RANLIB"; then 5885 ac_ct_RANLIB=$RANLIB 5886 # Extract the first word of "ranlib", so it can be a program name with args. 5887set dummy ranlib; ac_word=$2 5888{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5890if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5891 echo $ECHO_N "(cached) $ECHO_C" >&6 5892else 5893 if test -n "$ac_ct_RANLIB"; then 5894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5895else 5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5897for as_dir in $PATH 5898do 5899 IFS=$as_save_IFS 5900 test -z "$as_dir" && as_dir=. 5901 for ac_exec_ext in '' $ac_executable_extensions; do 5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5903 ac_cv_prog_ac_ct_RANLIB="ranlib" 5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5905 break 2 5906 fi 5907done 5908done 5909IFS=$as_save_IFS 5910 5911fi 5912fi 5913ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5914if test -n "$ac_ct_RANLIB"; then 5915 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5916echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 5917else 5918 { echo "$as_me:$LINENO: result: no" >&5 5919echo "${ECHO_T}no" >&6; } 5920fi 5921 5922 if test "x$ac_ct_RANLIB" = x; then 5923 RANLIB=":" 5924 else 5925 case $cross_compiling:$ac_tool_warned in 5926yes:) 5927{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5928whose name does not start with the host triplet. If you think this 5929configuration is useful to you, please write to [email protected]." >&5 5930echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5931whose name does not start with the host triplet. If you think this 5932configuration is useful to you, please write to [email protected]." >&2;} 5933ac_tool_warned=yes ;; 5934esac 5935 RANLIB=$ac_ct_RANLIB 5936 fi 5937else 5938 RANLIB="$ac_cv_prog_RANLIB" 5939fi 5940 5941test -z "$RANLIB" && RANLIB=: 5942 5943 5944 5945 5946 5947 5948# Determine commands to create old-style static archives. 5949old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5950old_postinstall_cmds='chmod 644 $oldlib' 5951old_postuninstall_cmds= 5952 5953if test -n "$RANLIB"; then 5954 case $host_os in 5955 openbsd*) 5956 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5957 ;; 5958 *) 5959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5960 ;; 5961 esac 5962 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5963fi 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998# If no C compiler was specified, use CC. 5999LTCC=${LTCC-"$CC"} 6000 6001# If no C compiler flags were specified, use CFLAGS. 6002LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6003 6004# Allow CC to be a program name with arguments. 6005compiler=$CC 6006 6007 6008# Check for command to grab the raw symbol name followed by C symbol from nm. 6009{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6010echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6011if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6012 echo $ECHO_N "(cached) $ECHO_C" >&6 6013else 6014 6015# These are sane defaults that work on at least a few old systems. 6016# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6017 6018# Character class describing NM global symbol codes. 6019symcode='[BCDEGRST]' 6020 6021# Regexp to match symbols that can be accessed directly from C. 6022sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6023 6024# Define system-specific variables. 6025case $host_os in 6026aix*) 6027 symcode='[BCDT]' 6028 ;; 6029cygwin* | mingw* | pw32*) 6030 symcode='[ABCDGISTW]' 6031 ;; 6032hpux*) 6033 if test "$host_cpu" = ia64; then 6034 symcode='[ABCDEGRST]' 6035 fi 6036 ;; 6037irix* | nonstopux*) 6038 symcode='[BCDEGRST]' 6039 ;; 6040osf*) 6041 symcode='[BCDEGQRST]' 6042 ;; 6043solaris*) 6044 symcode='[BDRT]' 6045 ;; 6046sco3.2v5*) 6047 symcode='[DT]' 6048 ;; 6049sysv4.2uw2*) 6050 symcode='[DT]' 6051 ;; 6052sysv5* | sco5v6* | unixware* | OpenUNIX*) 6053 symcode='[ABDT]' 6054 ;; 6055sysv4) 6056 symcode='[DFNSTU]' 6057 ;; 6058esac 6059 6060# If we're using GNU nm, then use its standard symbol codes. 6061case `$NM -V 2>&1` in 6062*GNU* | *'with BFD'*) 6063 symcode='[ABCDGIRSTW]' ;; 6064esac 6065 6066# Transform an extracted symbol line into a proper C declaration. 6067# Some systems (esp. on ia64) link data and code symbols differently, 6068# so use this general approach. 6069lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6070 6071# Transform an extracted symbol line into symbol name and symbol address 6072lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6073 6074# Handle CRLF in mingw tool chain 6075opt_cr= 6076case $build_os in 6077mingw*) 6078 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6079 ;; 6080esac 6081 6082# Try without a prefix underscore, then with it. 6083for ac_symprfx in "" "_"; do 6084 6085 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6086 symxfrm="\\1 $ac_symprfx\\2 \\2" 6087 6088 # Write the raw and C identifiers. 6089 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6090 # Fake it for dumpbin and say T for any non-static function 6091 # and D for any global variable. 6092 # Also find C++ and __fastcall symbols from MSVC++, 6093 # which start with @ or ?. 6094 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6095" {last_section=section; section=\$ 3};"\ 6096" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6097" \$ 0!~/External *\|/{next};"\ 6098" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6099" {if(hide[section]) next};"\ 6100" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6101" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6102" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6103" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6104" ' prfx=^$ac_symprfx" 6105 else 6106 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6107 fi 6108 6109 # Check to see that the pipe works correctly. 6110 pipe_works=no 6111 6112 rm -f conftest* 6113 cat > conftest.$ac_ext <<_LT_EOF 6114#ifdef __cplusplus 6115extern "C" { 6116#endif 6117char nm_test_var; 6118void nm_test_func(void); 6119void nm_test_func(void){} 6120#ifdef __cplusplus 6121} 6122#endif 6123int main(){nm_test_var='a';nm_test_func();return(0);} 6124_LT_EOF 6125 6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6127 (eval $ac_compile) 2>&5 6128 ac_status=$? 6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6130 (exit $ac_status); }; then 6131 # Now try to grab the symbols. 6132 nlist=conftest.nm 6133 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6134 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6135 ac_status=$? 6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6137 (exit $ac_status); } && test -s "$nlist"; then 6138 # Try sorting and uniquifying the output. 6139 if sort "$nlist" | uniq > "$nlist"T; then 6140 mv -f "$nlist"T "$nlist" 6141 else 6142 rm -f "$nlist"T 6143 fi 6144 6145 # Make sure that we snagged all the symbols we need. 6146 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6147 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6148 cat <<_LT_EOF > conftest.$ac_ext 6149#ifdef __cplusplus 6150extern "C" { 6151#endif 6152 6153_LT_EOF 6154 # Now generate the symbol file. 6155 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6156 6157 cat <<_LT_EOF >> conftest.$ac_ext 6158 6159/* The mapping between symbol names and symbols. */ 6160const struct { 6161 const char *name; 6162 void *address; 6163} 6164lt__PROGRAM__LTX_preloaded_symbols[] = 6165{ 6166 { "@PROGRAM@", (void *) 0 }, 6167_LT_EOF 6168 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6169 cat <<\_LT_EOF >> conftest.$ac_ext 6170 {0, (void *) 0} 6171}; 6172 6173/* This works around a problem in FreeBSD linker */ 6174#ifdef FREEBSD_WORKAROUND 6175static const void *lt_preloaded_setup() { 6176 return lt__PROGRAM__LTX_preloaded_symbols; 6177} 6178#endif 6179 6180#ifdef __cplusplus 6181} 6182#endif 6183_LT_EOF 6184 # Now try linking the two files. 6185 mv conftest.$ac_objext conftstm.$ac_objext 6186 lt_save_LIBS="$LIBS" 6187 lt_save_CFLAGS="$CFLAGS" 6188 LIBS="conftstm.$ac_objext" 6189 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6191 (eval $ac_link) 2>&5 6192 ac_status=$? 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6194 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6195 pipe_works=yes 6196 fi 6197 LIBS="$lt_save_LIBS" 6198 CFLAGS="$lt_save_CFLAGS" 6199 else 6200 echo "cannot find nm_test_func in $nlist" >&5 6201 fi 6202 else 6203 echo "cannot find nm_test_var in $nlist" >&5 6204 fi 6205 else 6206 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6207 fi 6208 else 6209 echo "$progname: failed program was:" >&5 6210 cat conftest.$ac_ext >&5 6211 fi 6212 rm -f conftest* conftst* 6213 6214 # Do not use the global_symbol_pipe unless it works. 6215 if test "$pipe_works" = yes; then 6216 break 6217 else 6218 lt_cv_sys_global_symbol_pipe= 6219 fi 6220done 6221 6222fi 6223 6224if test -z "$lt_cv_sys_global_symbol_pipe"; then 6225 lt_cv_sys_global_symbol_to_cdecl= 6226fi 6227if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6228 { echo "$as_me:$LINENO: result: failed" >&5 6229echo "${ECHO_T}failed" >&6; } 6230else 6231 { echo "$as_me:$LINENO: result: ok" >&5 6232echo "${ECHO_T}ok" >&6; } 6233fi 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252# Check whether --enable-libtool-lock was given. 6253if test "${enable_libtool_lock+set}" = set; then 6254 enableval=$enable_libtool_lock; 6255fi 6256 6257test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6258 6259# Some flags need to be propagated to the compiler or linker for good 6260# libtool support. 6261case $host in 6262ia64-*-hpux*) 6263 # Find out which ABI we are using. 6264 echo 'int i;' > conftest.$ac_ext 6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6266 (eval $ac_compile) 2>&5 6267 ac_status=$? 6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6269 (exit $ac_status); }; then 6270 case `/usr/bin/file conftest.$ac_objext` in 6271 *ELF-32*) 6272 HPUX_IA64_MODE="32" 6273 ;; 6274 *ELF-64*) 6275 HPUX_IA64_MODE="64" 6276 ;; 6277 esac 6278 fi 6279 rm -rf conftest* 6280 ;; 6281*-*-irix6*) 6282 # Find out which ABI we are using. 6283 echo '#line 6283 "configure"' > conftest.$ac_ext 6284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6285 (eval $ac_compile) 2>&5 6286 ac_status=$? 6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6288 (exit $ac_status); }; then 6289 if test "$lt_cv_prog_gnu_ld" = yes; then 6290 case `/usr/bin/file conftest.$ac_objext` in 6291 *32-bit*) 6292 LD="${LD-ld} -melf32bsmip" 6293 ;; 6294 *N32*) 6295 LD="${LD-ld} -melf32bmipn32" 6296 ;; 6297 *64-bit*) 6298 LD="${LD-ld} -melf64bmip" 6299 ;; 6300 esac 6301 else 6302 case `/usr/bin/file conftest.$ac_objext` in 6303 *32-bit*) 6304 LD="${LD-ld} -32" 6305 ;; 6306 *N32*) 6307 LD="${LD-ld} -n32" 6308 ;; 6309 *64-bit*) 6310 LD="${LD-ld} -64" 6311 ;; 6312 esac 6313 fi 6314 fi 6315 rm -rf conftest* 6316 ;; 6317 6318x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6319s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6320 # Find out which ABI we are using. 6321 echo 'int i;' > conftest.$ac_ext 6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6323 (eval $ac_compile) 2>&5 6324 ac_status=$? 6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6326 (exit $ac_status); }; then 6327 case `/usr/bin/file conftest.o` in 6328 *32-bit*) 6329 case $host in 6330 x86_64-*kfreebsd*-gnu) 6331 LD="${LD-ld} -m elf_i386_fbsd" 6332 ;; 6333 x86_64-*linux*) 6334 LD="${LD-ld} -m elf_i386" 6335 ;; 6336 ppc64-*linux*|powerpc64-*linux*) 6337 LD="${LD-ld} -m elf32ppclinux" 6338 ;; 6339 s390x-*linux*) 6340 LD="${LD-ld} -m elf_s390" 6341 ;; 6342 sparc64-*linux*) 6343 LD="${LD-ld} -m elf32_sparc" 6344 ;; 6345 esac 6346 ;; 6347 *64-bit*) 6348 case $host in 6349 x86_64-*kfreebsd*-gnu) 6350 LD="${LD-ld} -m elf_x86_64_fbsd" 6351 ;; 6352 x86_64-*linux*) 6353 LD="${LD-ld} -m elf_x86_64" 6354 ;; 6355 ppc*-*linux*|powerpc*-*linux*) 6356 LD="${LD-ld} -m elf64ppc" 6357 ;; 6358 s390*-*linux*|s390*-*tpf*) 6359 LD="${LD-ld} -m elf64_s390" 6360 ;; 6361 sparc*-*linux*) 6362 LD="${LD-ld} -m elf64_sparc" 6363 ;; 6364 esac 6365 ;; 6366 esac 6367 fi 6368 rm -rf conftest* 6369 ;; 6370 6371*-*-sco3.2v5*) 6372 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6373 SAVE_CFLAGS="$CFLAGS" 6374 CFLAGS="$CFLAGS -belf" 6375 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6376echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 6377if test "${lt_cv_cc_needs_belf+set}" = set; then 6378 echo $ECHO_N "(cached) $ECHO_C" >&6 6379else 6380 ac_ext=c 6381ac_cpp='$CPP $CPPFLAGS' 6382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6384ac_compiler_gnu=$ac_cv_c_compiler_gnu 6385 6386 cat >conftest.$ac_ext <<_ACEOF 6387/* confdefs.h. */ 6388_ACEOF 6389cat confdefs.h >>conftest.$ac_ext 6390cat >>conftest.$ac_ext <<_ACEOF 6391/* end confdefs.h. */ 6392 6393int 6394main () 6395{ 6396 6397 ; 6398 return 0; 6399} 6400_ACEOF 6401rm -f conftest.$ac_objext conftest$ac_exeext 6402if { (ac_try="$ac_link" 6403case "(($ac_try" in 6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6405 *) ac_try_echo=$ac_try;; 6406esac 6407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6408 (eval "$ac_link") 2>conftest.er1 6409 ac_status=$? 6410 grep -v '^ *+' conftest.er1 >conftest.err 6411 rm -f conftest.er1 6412 cat conftest.err >&5 6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6414 (exit $ac_status); } && { 6415 test -z "$ac_c_werror_flag" || 6416 test ! -s conftest.err 6417 } && test -s conftest$ac_exeext && 6418 $as_test_x conftest$ac_exeext; then 6419 lt_cv_cc_needs_belf=yes 6420else 6421 echo "$as_me: failed program was:" >&5 6422sed 's/^/| /' conftest.$ac_ext >&5 6423 6424 lt_cv_cc_needs_belf=no 6425fi 6426 6427rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6428 conftest$ac_exeext conftest.$ac_ext 6429 ac_ext=c 6430ac_cpp='$CPP $CPPFLAGS' 6431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6433ac_compiler_gnu=$ac_cv_c_compiler_gnu 6434 6435fi 6436{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6437echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 6438 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6439 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6440 CFLAGS="$SAVE_CFLAGS" 6441 fi 6442 ;; 6443sparc*-*solaris*) 6444 # Find out which ABI we are using. 6445 echo 'int i;' > conftest.$ac_ext 6446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6447 (eval $ac_compile) 2>&5 6448 ac_status=$? 6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6450 (exit $ac_status); }; then 6451 case `/usr/bin/file conftest.o` in 6452 *64-bit*) 6453 case $lt_cv_prog_gnu_ld in 6454 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6455 *) LD="${LD-ld} -64" ;; 6456 esac 6457 ;; 6458 esac 6459 fi 6460 rm -rf conftest* 6461 ;; 6462esac 6463 6464need_locks="$enable_libtool_lock" 6465 6466ac_ext=c 6467ac_cpp='$CPP $CPPFLAGS' 6468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6470ac_compiler_gnu=$ac_cv_c_compiler_gnu 6471{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6472echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 6473# On Suns, sometimes $CPP names a directory. 6474if test -n "$CPP" && test -d "$CPP"; then 6475 CPP= 6476fi 6477if test -z "$CPP"; then 6478 if test "${ac_cv_prog_CPP+set}" = set; then 6479 echo $ECHO_N "(cached) $ECHO_C" >&6 6480else 6481 # Double quotes because CPP needs to be expanded 6482 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6483 do 6484 ac_preproc_ok=false 6485for ac_c_preproc_warn_flag in '' yes 6486do 6487 # Use a header file that comes with gcc, so configuring glibc 6488 # with a fresh cross-compiler works. 6489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6490 # <limits.h> exists even on freestanding compilers. 6491 # On the NeXT, cc -E runs the code through the compiler's parser, 6492 # not just through cpp. "Syntax error" is here to catch this case. 6493 cat >conftest.$ac_ext <<_ACEOF 6494/* confdefs.h. */ 6495_ACEOF 6496cat confdefs.h >>conftest.$ac_ext 6497cat >>conftest.$ac_ext <<_ACEOF 6498/* end confdefs.h. */ 6499#ifdef __STDC__ 6500# include <limits.h> 6501#else 6502# include <assert.h> 6503#endif 6504 Syntax error 6505_ACEOF 6506if { (ac_try="$ac_cpp conftest.$ac_ext" 6507case "(($ac_try" in 6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6509 *) ac_try_echo=$ac_try;; 6510esac 6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6513 ac_status=$? 6514 grep -v '^ *+' conftest.er1 >conftest.err 6515 rm -f conftest.er1 6516 cat conftest.err >&5 6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6518 (exit $ac_status); } >/dev/null && { 6519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6520 test ! -s conftest.err 6521 }; then 6522 : 6523else 6524 echo "$as_me: failed program was:" >&5 6525sed 's/^/| /' conftest.$ac_ext >&5 6526 6527 # Broken: fails on valid input. 6528continue 6529fi 6530 6531rm -f conftest.err conftest.$ac_ext 6532 6533 # OK, works on sane cases. Now check whether nonexistent headers 6534 # can be detected and how. 6535 cat >conftest.$ac_ext <<_ACEOF 6536/* confdefs.h. */ 6537_ACEOF 6538cat confdefs.h >>conftest.$ac_ext 6539cat >>conftest.$ac_ext <<_ACEOF 6540/* end confdefs.h. */ 6541#include <ac_nonexistent.h> 6542_ACEOF 6543if { (ac_try="$ac_cpp conftest.$ac_ext" 6544case "(($ac_try" in 6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6546 *) ac_try_echo=$ac_try;; 6547esac 6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6550 ac_status=$? 6551 grep -v '^ *+' conftest.er1 >conftest.err 6552 rm -f conftest.er1 6553 cat conftest.err >&5 6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6555 (exit $ac_status); } >/dev/null && { 6556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6557 test ! -s conftest.err 6558 }; then 6559 # Broken: success on invalid input. 6560continue 6561else 6562 echo "$as_me: failed program was:" >&5 6563sed 's/^/| /' conftest.$ac_ext >&5 6564 6565 # Passes both tests. 6566ac_preproc_ok=: 6567break 6568fi 6569 6570rm -f conftest.err conftest.$ac_ext 6571 6572done 6573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6574rm -f conftest.err conftest.$ac_ext 6575if $ac_preproc_ok; then 6576 break 6577fi 6578 6579 done 6580 ac_cv_prog_CPP=$CPP 6581 6582fi 6583 CPP=$ac_cv_prog_CPP 6584else 6585 ac_cv_prog_CPP=$CPP 6586fi 6587{ echo "$as_me:$LINENO: result: $CPP" >&5 6588echo "${ECHO_T}$CPP" >&6; } 6589ac_preproc_ok=false 6590for ac_c_preproc_warn_flag in '' yes 6591do 6592 # Use a header file that comes with gcc, so configuring glibc 6593 # with a fresh cross-compiler works. 6594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6595 # <limits.h> exists even on freestanding compilers. 6596 # On the NeXT, cc -E runs the code through the compiler's parser, 6597 # not just through cpp. "Syntax error" is here to catch this case. 6598 cat >conftest.$ac_ext <<_ACEOF 6599/* confdefs.h. */ 6600_ACEOF 6601cat confdefs.h >>conftest.$ac_ext 6602cat >>conftest.$ac_ext <<_ACEOF 6603/* end confdefs.h. */ 6604#ifdef __STDC__ 6605# include <limits.h> 6606#else 6607# include <assert.h> 6608#endif 6609 Syntax error 6610_ACEOF 6611if { (ac_try="$ac_cpp conftest.$ac_ext" 6612case "(($ac_try" in 6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6614 *) ac_try_echo=$ac_try;; 6615esac 6616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6618 ac_status=$? 6619 grep -v '^ *+' conftest.er1 >conftest.err 6620 rm -f conftest.er1 6621 cat conftest.err >&5 6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6623 (exit $ac_status); } >/dev/null && { 6624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6625 test ! -s conftest.err 6626 }; then 6627 : 6628else 6629 echo "$as_me: failed program was:" >&5 6630sed 's/^/| /' conftest.$ac_ext >&5 6631 6632 # Broken: fails on valid input. 6633continue 6634fi 6635 6636rm -f conftest.err conftest.$ac_ext 6637 6638 # OK, works on sane cases. Now check whether nonexistent headers 6639 # can be detected and how. 6640 cat >conftest.$ac_ext <<_ACEOF 6641/* confdefs.h. */ 6642_ACEOF 6643cat confdefs.h >>conftest.$ac_ext 6644cat >>conftest.$ac_ext <<_ACEOF 6645/* end confdefs.h. */ 6646#include <ac_nonexistent.h> 6647_ACEOF 6648if { (ac_try="$ac_cpp conftest.$ac_ext" 6649case "(($ac_try" in 6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6651 *) ac_try_echo=$ac_try;; 6652esac 6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6655 ac_status=$? 6656 grep -v '^ *+' conftest.er1 >conftest.err 6657 rm -f conftest.er1 6658 cat conftest.err >&5 6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 (exit $ac_status); } >/dev/null && { 6661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6662 test ! -s conftest.err 6663 }; then 6664 # Broken: success on invalid input. 6665continue 6666else 6667 echo "$as_me: failed program was:" >&5 6668sed 's/^/| /' conftest.$ac_ext >&5 6669 6670 # Passes both tests. 6671ac_preproc_ok=: 6672break 6673fi 6674 6675rm -f conftest.err conftest.$ac_ext 6676 6677done 6678# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6679rm -f conftest.err conftest.$ac_ext 6680if $ac_preproc_ok; then 6681 : 6682else 6683 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6684See \`config.log' for more details." >&5 6685echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6686See \`config.log' for more details." >&2;} 6687 { (exit 1); exit 1; }; } 6688fi 6689 6690ac_ext=c 6691ac_cpp='$CPP $CPPFLAGS' 6692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6694ac_compiler_gnu=$ac_cv_c_compiler_gnu 6695 6696 6697{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6698echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 6699if test "${ac_cv_header_stdc+set}" = set; then 6700 echo $ECHO_N "(cached) $ECHO_C" >&6 6701else 6702 cat >conftest.$ac_ext <<_ACEOF 6703/* confdefs.h. */ 6704_ACEOF 6705cat confdefs.h >>conftest.$ac_ext 6706cat >>conftest.$ac_ext <<_ACEOF 6707/* end confdefs.h. */ 6708#include <stdlib.h> 6709#include <stdarg.h> 6710#include <string.h> 6711#include <float.h> 6712 6713int 6714main () 6715{ 6716 6717 ; 6718 return 0; 6719} 6720_ACEOF 6721rm -f conftest.$ac_objext 6722if { (ac_try="$ac_compile" 6723case "(($ac_try" in 6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6725 *) ac_try_echo=$ac_try;; 6726esac 6727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6728 (eval "$ac_compile") 2>conftest.er1 6729 ac_status=$? 6730 grep -v '^ *+' conftest.er1 >conftest.err 6731 rm -f conftest.er1 6732 cat conftest.err >&5 6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6734 (exit $ac_status); } && { 6735 test -z "$ac_c_werror_flag" || 6736 test ! -s conftest.err 6737 } && test -s conftest.$ac_objext; then 6738 ac_cv_header_stdc=yes 6739else 6740 echo "$as_me: failed program was:" >&5 6741sed 's/^/| /' conftest.$ac_ext >&5 6742 6743 ac_cv_header_stdc=no 6744fi 6745 6746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6747 6748if test $ac_cv_header_stdc = yes; then 6749 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6750 cat >conftest.$ac_ext <<_ACEOF 6751/* confdefs.h. */ 6752_ACEOF 6753cat confdefs.h >>conftest.$ac_ext 6754cat >>conftest.$ac_ext <<_ACEOF 6755/* end confdefs.h. */ 6756#include <string.h> 6757 6758_ACEOF 6759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6760 $EGREP "memchr" >/dev/null 2>&1; then 6761 : 6762else 6763 ac_cv_header_stdc=no 6764fi 6765rm -f conftest* 6766 6767fi 6768 6769if test $ac_cv_header_stdc = yes; then 6770 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h> 6778 6779_ACEOF 6780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6781 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6792 if test "$cross_compiling" = yes; then 6793 : 6794else 6795 cat >conftest.$ac_ext <<_ACEOF 6796/* confdefs.h. */ 6797_ACEOF 6798cat confdefs.h >>conftest.$ac_ext 6799cat >>conftest.$ac_ext <<_ACEOF 6800/* end confdefs.h. */ 6801#include <ctype.h> 6802#include <stdlib.h> 6803#if ((' ' & 0x0FF) == 0x020) 6804# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6805# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6806#else 6807# define ISLOWER(c) \ 6808 (('a' <= (c) && (c) <= 'i') \ 6809 || ('j' <= (c) && (c) <= 'r') \ 6810 || ('s' <= (c) && (c) <= 'z')) 6811# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6812#endif 6813 6814#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6815int 6816main () 6817{ 6818 int i; 6819 for (i = 0; i < 256; i++) 6820 if (XOR (islower (i), ISLOWER (i)) 6821 || toupper (i) != TOUPPER (i)) 6822 return 2; 6823 return 0; 6824} 6825_ACEOF 6826rm -f conftest$ac_exeext 6827if { (ac_try="$ac_link" 6828case "(($ac_try" in 6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6830 *) ac_try_echo=$ac_try;; 6831esac 6832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6833 (eval "$ac_link") 2>&5 6834 ac_status=$? 6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6837 { (case "(($ac_try" in 6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6839 *) ac_try_echo=$ac_try;; 6840esac 6841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6842 (eval "$ac_try") 2>&5 6843 ac_status=$? 6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6845 (exit $ac_status); }; }; then 6846 : 6847else 6848 echo "$as_me: program exited with status $ac_status" >&5 6849echo "$as_me: failed program was:" >&5 6850sed 's/^/| /' conftest.$ac_ext >&5 6851 6852( exit $ac_status ) 6853ac_cv_header_stdc=no 6854fi 6855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6856fi 6857 6858 6859fi 6860fi 6861{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6862echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 6863if test $ac_cv_header_stdc = yes; then 6864 6865cat >>confdefs.h <<\_ACEOF 6866#define STDC_HEADERS 1 6867_ACEOF 6868 6869fi 6870 6871# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6882 inttypes.h stdint.h unistd.h 6883do 6884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6885{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6888 echo $ECHO_N "(cached) $ECHO_C" >&6 6889else 6890 cat >conftest.$ac_ext <<_ACEOF 6891/* confdefs.h. */ 6892_ACEOF 6893cat confdefs.h >>conftest.$ac_ext 6894cat >>conftest.$ac_ext <<_ACEOF 6895/* end confdefs.h. */ 6896$ac_includes_default 6897 6898#include <$ac_header> 6899_ACEOF 6900rm -f conftest.$ac_objext 6901if { (ac_try="$ac_compile" 6902case "(($ac_try" in 6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6904 *) ac_try_echo=$ac_try;; 6905esac 6906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6907 (eval "$ac_compile") 2>conftest.er1 6908 ac_status=$? 6909 grep -v '^ *+' conftest.er1 >conftest.err 6910 rm -f conftest.er1 6911 cat conftest.err >&5 6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6913 (exit $ac_status); } && { 6914 test -z "$ac_c_werror_flag" || 6915 test ! -s conftest.err 6916 } && test -s conftest.$ac_objext; then 6917 eval "$as_ac_Header=yes" 6918else 6919 echo "$as_me: failed program was:" >&5 6920sed 's/^/| /' conftest.$ac_ext >&5 6921 6922 eval "$as_ac_Header=no" 6923fi 6924 6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6926fi 6927ac_res=`eval echo '${'$as_ac_Header'}'` 6928 { echo "$as_me:$LINENO: result: $ac_res" >&5 6929echo "${ECHO_T}$ac_res" >&6; } 6930if test `eval echo '${'$as_ac_Header'}'` = yes; then 6931 cat >>confdefs.h <<_ACEOF 6932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6933_ACEOF 6934 6935fi 6936 6937done 6938 6939 6940 6941for ac_header in dlfcn.h 6942do 6943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6944{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6947 echo $ECHO_N "(cached) $ECHO_C" >&6 6948else 6949 cat >conftest.$ac_ext <<_ACEOF 6950/* confdefs.h. */ 6951_ACEOF 6952cat confdefs.h >>conftest.$ac_ext 6953cat >>conftest.$ac_ext <<_ACEOF 6954/* end confdefs.h. */ 6955$ac_includes_default 6956 6957#include <$ac_header> 6958_ACEOF 6959rm -f conftest.$ac_objext 6960if { (ac_try="$ac_compile" 6961case "(($ac_try" in 6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6963 *) ac_try_echo=$ac_try;; 6964esac 6965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6966 (eval "$ac_compile") 2>conftest.er1 6967 ac_status=$? 6968 grep -v '^ *+' conftest.er1 >conftest.err 6969 rm -f conftest.er1 6970 cat conftest.err >&5 6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 (exit $ac_status); } && { 6973 test -z "$ac_c_werror_flag" || 6974 test ! -s conftest.err 6975 } && test -s conftest.$ac_objext; then 6976 eval "$as_ac_Header=yes" 6977else 6978 echo "$as_me: failed program was:" >&5 6979sed 's/^/| /' conftest.$ac_ext >&5 6980 6981 eval "$as_ac_Header=no" 6982fi 6983 6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6985fi 6986ac_res=`eval echo '${'$as_ac_Header'}'` 6987 { echo "$as_me:$LINENO: result: $ac_res" >&5 6988echo "${ECHO_T}$ac_res" >&6; } 6989if test `eval echo '${'$as_ac_Header'}'` = yes; then 6990 cat >>confdefs.h <<_ACEOF 6991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6992_ACEOF 6993 6994fi 6995 6996done 6997 6998 6999 7000# This can be used to rebuild libtool when needed 7001LIBTOOL_DEPS="$ltmain" 7002 7003# Always use our own libtool. 7004LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030test -z "$LN_S" && LN_S="ln -s" 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045if test -n "${ZSH_VERSION+set}" ; then 7046 setopt NO_GLOB_SUBST 7047fi 7048 7049{ echo "$as_me:$LINENO: checking for objdir" >&5 7050echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7051if test "${lt_cv_objdir+set}" = set; then 7052 echo $ECHO_N "(cached) $ECHO_C" >&6 7053else 7054 rm -f .libs 2>/dev/null 7055mkdir .libs 2>/dev/null 7056if test -d .libs; then 7057 lt_cv_objdir=.libs 7058else 7059 # MS-DOS does not allow filenames that begin with a dot. 7060 lt_cv_objdir=_libs 7061fi 7062rmdir .libs 2>/dev/null 7063fi 7064{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7065echo "${ECHO_T}$lt_cv_objdir" >&6; } 7066objdir=$lt_cv_objdir 7067 7068 7069 7070 7071 7072cat >>confdefs.h <<_ACEOF 7073#define LT_OBJDIR "$lt_cv_objdir/" 7074_ACEOF 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092case $host_os in 7093aix3*) 7094 # AIX sometimes has problems with the GCC collect2 program. For some 7095 # reason, if we set the COLLECT_NAMES environment variable, the problems 7096 # vanish in a puff of smoke. 7097 if test "X${COLLECT_NAMES+set}" != Xset; then 7098 COLLECT_NAMES= 7099 export COLLECT_NAMES 7100 fi 7101 ;; 7102esac 7103 7104# Sed substitution that helps us do robust quoting. It backslashifies 7105# metacharacters that are still active within double-quoted strings. 7106sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7107 7108# Same as above, but do not quote variable references. 7109double_quote_subst='s/\(["`\\]\)/\\\1/g' 7110 7111# Sed substitution to delay expansion of an escaped shell variable in a 7112# double_quote_subst'ed string. 7113delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7114 7115# Sed substitution to delay expansion of an escaped single quote. 7116delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7117 7118# Sed substitution to avoid accidental globbing in evaled expressions 7119no_glob_subst='s/\*/\\\*/g' 7120 7121# Global variables: 7122ofile=libtool 7123can_build_shared=yes 7124 7125# All known linkers require a `.a' archive for static linking (except MSVC, 7126# which needs '.lib'). 7127libext=a 7128 7129with_gnu_ld="$lt_cv_prog_gnu_ld" 7130 7131old_CC="$CC" 7132old_CFLAGS="$CFLAGS" 7133 7134# Set sane defaults for various variables 7135test -z "$CC" && CC=cc 7136test -z "$LTCC" && LTCC=$CC 7137test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7138test -z "$LD" && LD=ld 7139test -z "$ac_objext" && ac_objext=o 7140 7141for cc_temp in $compiler""; do 7142 case $cc_temp in 7143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7145 \-*) ;; 7146 *) break;; 7147 esac 7148done 7149cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7150 7151 7152# Only perform the check for file, if the check method requires it 7153test -z "$MAGIC_CMD" && MAGIC_CMD=file 7154case $deplibs_check_method in 7155file_magic*) 7156 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7157 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7158echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7159if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7160 echo $ECHO_N "(cached) $ECHO_C" >&6 7161else 7162 case $MAGIC_CMD in 7163[\\/*] | ?:[\\/]*) 7164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7165 ;; 7166*) 7167 lt_save_MAGIC_CMD="$MAGIC_CMD" 7168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7169 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7170 for ac_dir in $ac_dummy; do 7171 IFS="$lt_save_ifs" 7172 test -z "$ac_dir" && ac_dir=. 7173 if test -f $ac_dir/${ac_tool_prefix}file; then 7174 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7175 if test -n "$file_magic_test_file"; then 7176 case $deplibs_check_method in 7177 "file_magic "*) 7178 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7180 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7181 $EGREP "$file_magic_regex" > /dev/null; then 7182 : 7183 else 7184 cat <<_LT_EOF 1>&2 7185 7186*** Warning: the command libtool uses to detect shared libraries, 7187*** $file_magic_cmd, produces output that libtool cannot recognize. 7188*** The result is that libtool may fail to recognize shared libraries 7189*** as such. This will affect the creation of libtool libraries that 7190*** depend on shared libraries, but programs linked with such libtool 7191*** libraries will work regardless of this problem. Nevertheless, you 7192*** may want to report the problem to your system manager and/or to 7193*** [email protected] 7194 7195_LT_EOF 7196 fi ;; 7197 esac 7198 fi 7199 break 7200 fi 7201 done 7202 IFS="$lt_save_ifs" 7203 MAGIC_CMD="$lt_save_MAGIC_CMD" 7204 ;; 7205esac 7206fi 7207 7208MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7209if test -n "$MAGIC_CMD"; then 7210 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7211echo "${ECHO_T}$MAGIC_CMD" >&6; } 7212else 7213 { echo "$as_me:$LINENO: result: no" >&5 7214echo "${ECHO_T}no" >&6; } 7215fi 7216 7217 7218 7219 7220 7221if test -z "$lt_cv_path_MAGIC_CMD"; then 7222 if test -n "$ac_tool_prefix"; then 7223 { echo "$as_me:$LINENO: checking for file" >&5 7224echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7225if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7226 echo $ECHO_N "(cached) $ECHO_C" >&6 7227else 7228 case $MAGIC_CMD in 7229[\\/*] | ?:[\\/]*) 7230 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7231 ;; 7232*) 7233 lt_save_MAGIC_CMD="$MAGIC_CMD" 7234 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7235 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7236 for ac_dir in $ac_dummy; do 7237 IFS="$lt_save_ifs" 7238 test -z "$ac_dir" && ac_dir=. 7239 if test -f $ac_dir/file; then 7240 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7241 if test -n "$file_magic_test_file"; then 7242 case $deplibs_check_method in 7243 "file_magic "*) 7244 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7245 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7247 $EGREP "$file_magic_regex" > /dev/null; then 7248 : 7249 else 7250 cat <<_LT_EOF 1>&2 7251 7252*** Warning: the command libtool uses to detect shared libraries, 7253*** $file_magic_cmd, produces output that libtool cannot recognize. 7254*** The result is that libtool may fail to recognize shared libraries 7255*** as such. This will affect the creation of libtool libraries that 7256*** depend on shared libraries, but programs linked with such libtool 7257*** libraries will work regardless of this problem. Nevertheless, you 7258*** may want to report the problem to your system manager and/or to 7259*** [email protected] 7260 7261_LT_EOF 7262 fi ;; 7263 esac 7264 fi 7265 break 7266 fi 7267 done 7268 IFS="$lt_save_ifs" 7269 MAGIC_CMD="$lt_save_MAGIC_CMD" 7270 ;; 7271esac 7272fi 7273 7274MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7275if test -n "$MAGIC_CMD"; then 7276 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7277echo "${ECHO_T}$MAGIC_CMD" >&6; } 7278else 7279 { echo "$as_me:$LINENO: result: no" >&5 7280echo "${ECHO_T}no" >&6; } 7281fi 7282 7283 7284 else 7285 MAGIC_CMD=: 7286 fi 7287fi 7288 7289 fi 7290 ;; 7291esac 7292 7293# Use C for the default configuration in the libtool script 7294 7295lt_save_CC="$CC" 7296ac_ext=c 7297ac_cpp='$CPP $CPPFLAGS' 7298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7300ac_compiler_gnu=$ac_cv_c_compiler_gnu 7301 7302 7303# Source file extension for C test sources. 7304ac_ext=c 7305 7306# Object file extension for compiled C test sources. 7307objext=o 7308objext=$objext 7309 7310# Code to be used in simple compile tests 7311lt_simple_compile_test_code="int some_variable = 0;" 7312 7313# Code to be used in simple link tests 7314lt_simple_link_test_code='int main(){return(0);}' 7315 7316 7317 7318 7319 7320 7321 7322# If no C compiler was specified, use CC. 7323LTCC=${LTCC-"$CC"} 7324 7325# If no C compiler flags were specified, use CFLAGS. 7326LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7327 7328# Allow CC to be a program name with arguments. 7329compiler=$CC 7330 7331# Save the default compiler, since it gets overwritten when the other 7332# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7333compiler_DEFAULT=$CC 7334 7335# save warnings/boilerplate of simple test code 7336ac_outfile=conftest.$ac_objext 7337echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7338eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7339_lt_compiler_boilerplate=`cat conftest.err` 7340$RM conftest* 7341 7342ac_outfile=conftest.$ac_objext 7343echo "$lt_simple_link_test_code" >conftest.$ac_ext 7344eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7345_lt_linker_boilerplate=`cat conftest.err` 7346$RM conftest* 7347 7348 7349## CAVEAT EMPTOR: 7350## There is no encapsulation within the following macros, do not change 7351## the running order or otherwise move them around unless you know exactly 7352## what you are doing... 7353if test -n "$compiler"; then 7354 7355lt_prog_compiler_no_builtin_flag= 7356 7357if test "$GCC" = yes; then 7358 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7359 7360 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7361echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7362if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7363 echo $ECHO_N "(cached) $ECHO_C" >&6 7364else 7365 lt_cv_prog_compiler_rtti_exceptions=no 7366 ac_outfile=conftest.$ac_objext 7367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7368 lt_compiler_flag="-fno-rtti -fno-exceptions" 7369 # Insert the option either (1) after the last *FLAGS variable, or 7370 # (2) before a word containing "conftest.", or (3) at the end. 7371 # Note that $ac_compile itself does not contain backslashes and begins 7372 # with a dollar sign (not a hyphen), so the echo should work correctly. 7373 # The option is referenced via a variable to avoid confusing sed. 7374 lt_compile=`echo "$ac_compile" | $SED \ 7375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7377 -e 's:$: $lt_compiler_flag:'` 7378 (eval echo "\"\$as_me:7378: $lt_compile\"" >&5) 7379 (eval "$lt_compile" 2>conftest.err) 7380 ac_status=$? 7381 cat conftest.err >&5 7382 echo "$as_me:7382: \$? = $ac_status" >&5 7383 if (exit $ac_status) && test -s "$ac_outfile"; then 7384 # The compiler can only warn and ignore the option if not recognized 7385 # So say no if there are warnings other than the usual output. 7386 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7389 lt_cv_prog_compiler_rtti_exceptions=yes 7390 fi 7391 fi 7392 $RM conftest* 7393 7394fi 7395{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7396echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7397 7398if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7399 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7400else 7401 : 7402fi 7403 7404fi 7405 7406 7407 7408 7409 7410 7411 lt_prog_compiler_wl= 7412lt_prog_compiler_pic= 7413lt_prog_compiler_static= 7414 7415{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7416echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7417 7418 if test "$GCC" = yes; then 7419 lt_prog_compiler_wl='-Wl,' 7420 lt_prog_compiler_static='-static' 7421 7422 case $host_os in 7423 aix*) 7424 # All AIX code is PIC. 7425 if test "$host_cpu" = ia64; then 7426 # AIX 5 now supports IA64 processor 7427 lt_prog_compiler_static='-Bstatic' 7428 fi 7429 ;; 7430 7431 amigaos*) 7432 if test "$host_cpu" = m68k; then 7433 # FIXME: we need at least 68020 code to build shared libraries, but 7434 # adding the `-m68020' flag to GCC prevents building anything better, 7435 # like `-m68040'. 7436 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7437 fi 7438 ;; 7439 7440 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7441 # PIC is the default for these OSes. 7442 ;; 7443 7444 mingw* | cygwin* | pw32* | os2*) 7445 # This hack is so that the source file can tell whether it is being 7446 # built for inclusion in a dll (and should export symbols for example). 7447 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7448 # (--disable-auto-import) libraries 7449 lt_prog_compiler_pic='-DDLL_EXPORT' 7450 ;; 7451 7452 darwin* | rhapsody*) 7453 # PIC is the default on this platform 7454 # Common symbols not allowed in MH_DYLIB files 7455 lt_prog_compiler_pic='-fno-common' 7456 ;; 7457 7458 hpux*) 7459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7460 # not for PA HP-UX. 7461 case $host_cpu in 7462 hppa*64*|ia64*) 7463 # +Z the default 7464 ;; 7465 *) 7466 lt_prog_compiler_pic='-fPIC' 7467 ;; 7468 esac 7469 ;; 7470 7471 interix3*) 7472 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7473 # Instead, we relocate shared libraries at runtime. 7474 ;; 7475 7476 msdosdjgpp*) 7477 # Just because we use GCC doesn't mean we suddenly get shared libraries 7478 # on systems that don't support them. 7479 lt_prog_compiler_can_build_shared=no 7480 enable_shared=no 7481 ;; 7482 7483 *nto* | *qnx*) 7484 # QNX uses GNU C++, but need to define -shared option too, otherwise 7485 # it will coredump. 7486 lt_prog_compiler_pic='-fPIC -shared' 7487 ;; 7488 7489 sysv4*MP*) 7490 if test -d /usr/nec; then 7491 lt_prog_compiler_pic=-Kconform_pic 7492 fi 7493 ;; 7494 7495 *) 7496 lt_prog_compiler_pic='-fPIC' 7497 ;; 7498 esac 7499 else 7500 # PORTME Check for flag to pass linker flags through the system compiler. 7501 case $host_os in 7502 aix*) 7503 lt_prog_compiler_wl='-Wl,' 7504 if test "$host_cpu" = ia64; then 7505 # AIX 5 now supports IA64 processor 7506 lt_prog_compiler_static='-Bstatic' 7507 else 7508 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7509 fi 7510 ;; 7511 darwin*) 7512 # PIC is the default on this platform 7513 # Common symbols not allowed in MH_DYLIB files 7514 case $cc_basename in 7515 xlc*) 7516 lt_prog_compiler_pic='-qnocommon' 7517 lt_prog_compiler_wl='-Wl,' 7518 ;; 7519 esac 7520 ;; 7521 7522 mingw* | cygwin* | pw32* | os2*) 7523 # This hack is so that the source file can tell whether it is being 7524 # built for inclusion in a dll (and should export symbols for example). 7525 lt_prog_compiler_pic='-DDLL_EXPORT' 7526 ;; 7527 7528 hpux9* | hpux10* | hpux11*) 7529 lt_prog_compiler_wl='-Wl,' 7530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7531 # not for PA HP-UX. 7532 case $host_cpu in 7533 hppa*64*|ia64*) 7534 # +Z the default 7535 ;; 7536 *) 7537 lt_prog_compiler_pic='+Z' 7538 ;; 7539 esac 7540 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7541 lt_prog_compiler_static='${wl}-a ${wl}archive' 7542 ;; 7543 7544 irix5* | irix6* | nonstopux*) 7545 lt_prog_compiler_wl='-Wl,' 7546 # PIC (with -KPIC) is the default. 7547 lt_prog_compiler_static='-non_shared' 7548 ;; 7549 7550 linux* | k*bsd*-gnu) 7551 case $cc_basename in 7552 icc* | ecc*) 7553 lt_prog_compiler_wl='-Wl,' 7554 lt_prog_compiler_pic='-KPIC' 7555 lt_prog_compiler_static='-static' 7556 ;; 7557 pgcc* | pgf77* | pgf90* | pgf95*) 7558 # Portland Group compilers (*not* the Pentium gcc compiler, 7559 # which looks to be a dead project) 7560 lt_prog_compiler_wl='-Wl,' 7561 lt_prog_compiler_pic='-fpic' 7562 lt_prog_compiler_static='-Bstatic' 7563 ;; 7564 ccc*) 7565 lt_prog_compiler_wl='-Wl,' 7566 # All Alpha code is PIC. 7567 lt_prog_compiler_static='-non_shared' 7568 ;; 7569 *) 7570 case `$CC -V 2>&1 | sed 5q` in 7571 *Sun\ C*) 7572 # Sun C 5.9 7573 lt_prog_compiler_pic='-KPIC' 7574 lt_prog_compiler_static='-Bstatic' 7575 lt_prog_compiler_wl='-Wl,' 7576 ;; 7577 *Sun\ F*) 7578 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7579 lt_prog_compiler_pic='-KPIC' 7580 lt_prog_compiler_static='-Bstatic' 7581 lt_prog_compiler_wl='' 7582 ;; 7583 esac 7584 ;; 7585 esac 7586 ;; 7587 7588 newsos6) 7589 lt_prog_compiler_pic='-KPIC' 7590 lt_prog_compiler_static='-Bstatic' 7591 ;; 7592 7593 *nto* | *qnx*) 7594 # QNX uses GNU C++, but need to define -shared option too, otherwise 7595 # it will coredump. 7596 lt_prog_compiler_pic='-fPIC -shared' 7597 ;; 7598 7599 osf3* | osf4* | osf5*) 7600 lt_prog_compiler_wl='-Wl,' 7601 # All OSF/1 code is PIC. 7602 lt_prog_compiler_static='-non_shared' 7603 ;; 7604 7605 rdos*) 7606 lt_prog_compiler_static='-non_shared' 7607 ;; 7608 7609 solaris*) 7610 lt_prog_compiler_pic='-KPIC' 7611 lt_prog_compiler_static='-Bstatic' 7612 case $cc_basename in 7613 f77* | f90* | f95*) 7614 lt_prog_compiler_wl='-Qoption ld ';; 7615 *) 7616 lt_prog_compiler_wl='-Wl,';; 7617 esac 7618 ;; 7619 7620 sunos4*) 7621 lt_prog_compiler_wl='-Qoption ld ' 7622 lt_prog_compiler_pic='-PIC' 7623 lt_prog_compiler_static='-Bstatic' 7624 ;; 7625 7626 sysv4 | sysv4.2uw2* | sysv4.3*) 7627 lt_prog_compiler_wl='-Wl,' 7628 lt_prog_compiler_pic='-KPIC' 7629 lt_prog_compiler_static='-Bstatic' 7630 ;; 7631 7632 sysv4*MP*) 7633 if test -d /usr/nec ;then 7634 lt_prog_compiler_pic='-Kconform_pic' 7635 lt_prog_compiler_static='-Bstatic' 7636 fi 7637 ;; 7638 7639 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7640 lt_prog_compiler_wl='-Wl,' 7641 lt_prog_compiler_pic='-KPIC' 7642 lt_prog_compiler_static='-Bstatic' 7643 ;; 7644 7645 unicos*) 7646 lt_prog_compiler_wl='-Wl,' 7647 lt_prog_compiler_can_build_shared=no 7648 ;; 7649 7650 uts4*) 7651 lt_prog_compiler_pic='-pic' 7652 lt_prog_compiler_static='-Bstatic' 7653 ;; 7654 7655 *) 7656 lt_prog_compiler_can_build_shared=no 7657 ;; 7658 esac 7659 fi 7660 7661case $host_os in 7662 # For platforms which do not support PIC, -DPIC is meaningless: 7663 *djgpp*) 7664 lt_prog_compiler_pic= 7665 ;; 7666 *) 7667 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7668 ;; 7669esac 7670{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7671echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7672 7673 7674 7675 7676 7677 7678# 7679# Check to make sure the PIC flag actually works. 7680# 7681if test -n "$lt_prog_compiler_pic"; then 7682 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7683echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7684if test "${lt_prog_compiler_pic_works+set}" = set; then 7685 echo $ECHO_N "(cached) $ECHO_C" >&6 7686else 7687 lt_prog_compiler_pic_works=no 7688 ac_outfile=conftest.$ac_objext 7689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7690 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7691 # Insert the option either (1) after the last *FLAGS variable, or 7692 # (2) before a word containing "conftest.", or (3) at the end. 7693 # Note that $ac_compile itself does not contain backslashes and begins 7694 # with a dollar sign (not a hyphen), so the echo should work correctly. 7695 # The option is referenced via a variable to avoid confusing sed. 7696 lt_compile=`echo "$ac_compile" | $SED \ 7697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7699 -e 's:$: $lt_compiler_flag:'` 7700 (eval echo "\"\$as_me:7700: $lt_compile\"" >&5) 7701 (eval "$lt_compile" 2>conftest.err) 7702 ac_status=$? 7703 cat conftest.err >&5 7704 echo "$as_me:7704: \$? = $ac_status" >&5 7705 if (exit $ac_status) && test -s "$ac_outfile"; then 7706 # The compiler can only warn and ignore the option if not recognized 7707 # So say no if there are warnings other than the usual output. 7708 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7711 lt_prog_compiler_pic_works=yes 7712 fi 7713 fi 7714 $RM conftest* 7715 7716fi 7717{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7718echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7719 7720if test x"$lt_prog_compiler_pic_works" = xyes; then 7721 case $lt_prog_compiler_pic in 7722 "" | " "*) ;; 7723 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7724 esac 7725else 7726 lt_prog_compiler_pic= 7727 lt_prog_compiler_can_build_shared=no 7728fi 7729 7730fi 7731 7732 7733 7734 7735 7736 7737# 7738# Check to make sure the static flag actually works. 7739# 7740wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7741{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7742echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7743if test "${lt_prog_compiler_static_works+set}" = set; then 7744 echo $ECHO_N "(cached) $ECHO_C" >&6 7745else 7746 lt_prog_compiler_static_works=no 7747 save_LDFLAGS="$LDFLAGS" 7748 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7749 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7751 # The linker can only warn and ignore the option if not recognized 7752 # So say no if there are warnings 7753 if test -s conftest.err; then 7754 # Append any errors to the config.log. 7755 cat conftest.err 1>&5 7756 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7758 if diff conftest.exp conftest.er2 >/dev/null; then 7759 lt_prog_compiler_static_works=yes 7760 fi 7761 else 7762 lt_prog_compiler_static_works=yes 7763 fi 7764 fi 7765 $RM conftest* 7766 LDFLAGS="$save_LDFLAGS" 7767 7768fi 7769{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7770echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7771 7772if test x"$lt_prog_compiler_static_works" = xyes; then 7773 : 7774else 7775 lt_prog_compiler_static= 7776fi 7777 7778 7779 7780 7781 7782 7783 7784 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7785echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7786if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7787 echo $ECHO_N "(cached) $ECHO_C" >&6 7788else 7789 lt_cv_prog_compiler_c_o=no 7790 $RM -r conftest 2>/dev/null 7791 mkdir conftest 7792 cd conftest 7793 mkdir out 7794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7795 7796 lt_compiler_flag="-o out/conftest2.$ac_objext" 7797 # Insert the option either (1) after the last *FLAGS variable, or 7798 # (2) before a word containing "conftest.", or (3) at the end. 7799 # Note that $ac_compile itself does not contain backslashes and begins 7800 # with a dollar sign (not a hyphen), so the echo should work correctly. 7801 lt_compile=`echo "$ac_compile" | $SED \ 7802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7804 -e 's:$: $lt_compiler_flag:'` 7805 (eval echo "\"\$as_me:7805: $lt_compile\"" >&5) 7806 (eval "$lt_compile" 2>out/conftest.err) 7807 ac_status=$? 7808 cat out/conftest.err >&5 7809 echo "$as_me:7809: \$? = $ac_status" >&5 7810 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7811 then 7812 # The compiler can only warn and ignore the option if not recognized 7813 # So say no if there are warnings 7814 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7817 lt_cv_prog_compiler_c_o=yes 7818 fi 7819 fi 7820 chmod u+w . 2>&5 7821 $RM conftest* 7822 # SGI C++ compiler will create directory out/ii_files/ for 7823 # template instantiation 7824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7825 $RM out/* && rmdir out 7826 cd .. 7827 $RM -r conftest 7828 $RM conftest* 7829 7830fi 7831{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7832echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7833 7834 7835 7836 7837 7838 7839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7840echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7841if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7842 echo $ECHO_N "(cached) $ECHO_C" >&6 7843else 7844 lt_cv_prog_compiler_c_o=no 7845 $RM -r conftest 2>/dev/null 7846 mkdir conftest 7847 cd conftest 7848 mkdir out 7849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7850 7851 lt_compiler_flag="-o out/conftest2.$ac_objext" 7852 # Insert the option either (1) after the last *FLAGS variable, or 7853 # (2) before a word containing "conftest.", or (3) at the end. 7854 # Note that $ac_compile itself does not contain backslashes and begins 7855 # with a dollar sign (not a hyphen), so the echo should work correctly. 7856 lt_compile=`echo "$ac_compile" | $SED \ 7857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7859 -e 's:$: $lt_compiler_flag:'` 7860 (eval echo "\"\$as_me:7860: $lt_compile\"" >&5) 7861 (eval "$lt_compile" 2>out/conftest.err) 7862 ac_status=$? 7863 cat out/conftest.err >&5 7864 echo "$as_me:7864: \$? = $ac_status" >&5 7865 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7866 then 7867 # The compiler can only warn and ignore the option if not recognized 7868 # So say no if there are warnings 7869 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7872 lt_cv_prog_compiler_c_o=yes 7873 fi 7874 fi 7875 chmod u+w . 2>&5 7876 $RM conftest* 7877 # SGI C++ compiler will create directory out/ii_files/ for 7878 # template instantiation 7879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7880 $RM out/* && rmdir out 7881 cd .. 7882 $RM -r conftest 7883 $RM conftest* 7884 7885fi 7886{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7887echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7888 7889 7890 7891 7892hard_links="nottested" 7893if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7894 # do not overwrite the value of need_locks provided by the user 7895 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7896echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7897 hard_links=yes 7898 $RM conftest* 7899 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7900 touch conftest.a 7901 ln conftest.a conftest.b 2>&5 || hard_links=no 7902 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7903 { echo "$as_me:$LINENO: result: $hard_links" >&5 7904echo "${ECHO_T}$hard_links" >&6; } 7905 if test "$hard_links" = no; then 7906 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7907echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7908 need_locks=warn 7909 fi 7910else 7911 need_locks=no 7912fi 7913 7914 7915 7916 7917 7918 7919 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7920echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7921 7922 runpath_var= 7923 allow_undefined_flag= 7924 always_export_symbols=no 7925 archive_cmds= 7926 archive_expsym_cmds= 7927 compiler_needs_object=no 7928 enable_shared_with_static_runtimes=no 7929 export_dynamic_flag_spec= 7930 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7931 hardcode_automatic=no 7932 hardcode_direct=no 7933 hardcode_direct_absolute=no 7934 hardcode_libdir_flag_spec= 7935 hardcode_libdir_flag_spec_ld= 7936 hardcode_libdir_separator= 7937 hardcode_minus_L=no 7938 hardcode_shlibpath_var=unsupported 7939 inherit_rpath=no 7940 link_all_deplibs=unknown 7941 module_cmds= 7942 module_expsym_cmds= 7943 old_archive_from_new_cmds= 7944 old_archive_from_expsyms_cmds= 7945 thread_safe_flag_spec= 7946 whole_archive_flag_spec= 7947 # include_expsyms should be a list of space-separated symbols to be *always* 7948 # included in the symbol list 7949 include_expsyms= 7950 # exclude_expsyms can be an extended regexp of symbols to exclude 7951 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7953 # as well as any symbol that contains `d'. 7954 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7956 # platforms (ab)use it in PIC code, but their linkers get confused if 7957 # the symbol is explicitly referenced. Since portable code cannot 7958 # rely on this symbol name, it's probably fine to never include it in 7959 # preloaded symbol tables. 7960 extract_expsyms_cmds= 7961 7962 case $host_os in 7963 cygwin* | mingw* | pw32*) 7964 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7965 # When not using gcc, we currently assume that we are using 7966 # Microsoft Visual C++. 7967 if test "$GCC" != yes; then 7968 with_gnu_ld=no 7969 fi 7970 ;; 7971 interix*) 7972 # we just hope/assume this is gcc and not c89 (= MSVC++) 7973 with_gnu_ld=yes 7974 ;; 7975 openbsd*) 7976 with_gnu_ld=no 7977 ;; 7978 esac 7979 7980 ld_shlibs=yes 7981 if test "$with_gnu_ld" = yes; then 7982 # If archive_cmds runs LD, not CC, wlarc should be empty 7983 wlarc='${wl}' 7984 7985 # Set some defaults for GNU ld with shared library support. These 7986 # are reset later if shared libraries are not supported. Putting them 7987 # here allows them to be overridden if necessary. 7988 runpath_var=LD_RUN_PATH 7989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7990 export_dynamic_flag_spec='${wl}--export-dynamic' 7991 # ancient GNU ld didn't support --whole-archive et. al. 7992 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7993 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7994 else 7995 whole_archive_flag_spec= 7996 fi 7997 supports_anon_versioning=no 7998 case `$LD -v 2>&1` in 7999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8002 *\ 2.11.*) ;; # other 2.11 versions 8003 *) supports_anon_versioning=yes ;; 8004 esac 8005 8006 # See if GNU ld supports shared libraries. 8007 case $host_os in 8008 aix3* | aix4* | aix5*) 8009 # On AIX/PPC, the GNU linker is very broken 8010 if test "$host_cpu" != ia64; then 8011 ld_shlibs=no 8012 cat <<_LT_EOF 1>&2 8013 8014*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8015*** to be unable to reliably create shared libraries on AIX. 8016*** Therefore, libtool is disabling shared libraries support. If you 8017*** really care for shared libraries, you may want to modify your PATH 8018*** so that a non-GNU linker is found, and then restart. 8019 8020_LT_EOF 8021 fi 8022 ;; 8023 8024 amigaos*) 8025 if test "$host_cpu" = m68k; then 8026 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)' 8027 hardcode_libdir_flag_spec='-L$libdir' 8028 hardcode_minus_L=yes 8029 fi 8030 8031 # Samuel A. Falvo II <[email protected]> reports 8032 # that the semantics of dynamic libraries on AmigaOS, at least up 8033 # to version 4, is to share data among multiple programs linked 8034 # with the same dynamic library. Since this doesn't match the 8035 # behavior of shared libraries on other platforms, we can't use 8036 # them. 8037 ld_shlibs=no 8038 ;; 8039 8040 beos*) 8041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8042 allow_undefined_flag=unsupported 8043 # Joseph Beckenbach <[email protected]> says some releases of gcc 8044 # support --undefined. This deserves some investigation. FIXME 8045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8046 else 8047 ld_shlibs=no 8048 fi 8049 ;; 8050 8051 cygwin* | mingw* | pw32*) 8052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8053 # as there is no search path for DLLs. 8054 hardcode_libdir_flag_spec='-L$libdir' 8055 allow_undefined_flag=unsupported 8056 always_export_symbols=no 8057 enable_shared_with_static_runtimes=yes 8058 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8059 8060 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8062 # If the export-symbols file already is a .def file (1st line 8063 # is EXPORTS), use it as is; otherwise, prepend... 8064 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8065 cp $export_symbols $output_objdir/$soname.def; 8066 else 8067 echo EXPORTS > $output_objdir/$soname.def; 8068 cat $export_symbols >> $output_objdir/$soname.def; 8069 fi~ 8070 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8071 else 8072 ld_shlibs=no 8073 fi 8074 ;; 8075 8076 interix3*) 8077 hardcode_direct=no 8078 hardcode_shlibpath_var=no 8079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8080 export_dynamic_flag_spec='${wl}-E' 8081 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8082 # Instead, shared libraries are loaded at an image base (0x10000000 by 8083 # default) and relocated if they conflict, which is a slow very memory 8084 # consuming and fragmenting process. To avoid this, we pick a random, 8085 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8086 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8088 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' 8089 ;; 8090 8091 gnu* | linux* | tpf* | k*bsd*-gnu) 8092 tmp_diet=no 8093 if test "$host_os" = linux-dietlibc; then 8094 case $cc_basename in 8095 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8096 esac 8097 fi 8098 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8099 && test "$tmp_diet" = no 8100 then 8101 tmp_addflag= 8102 case $cc_basename,$host_cpu in 8103 pgcc*) # Portland Group C compiler 8104 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' 8105 tmp_addflag=' $pic_flag' 8106 ;; 8107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8108 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' 8109 tmp_addflag=' $pic_flag -Mnomain' ;; 8110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8111 tmp_addflag=' -i_dynamic' ;; 8112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8113 tmp_addflag=' -i_dynamic -nofor_main' ;; 8114 ifc* | ifort*) # Intel Fortran compiler 8115 tmp_addflag=' -nofor_main' ;; 8116 esac 8117 case `$CC -V 2>&1 | sed 5q` in 8118 *Sun\ C*) # Sun C 5.9 8119 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' 8120 compiler_needs_object=yes 8121 tmp_sharedflag='-G' ;; 8122 *Sun\ F*) # Sun Fortran 8.3 8123 tmp_sharedflag='-G' ;; 8124 *) 8125 tmp_sharedflag='-shared' ;; 8126 esac 8127 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8128 8129 if test "x$supports_anon_versioning" = xyes; then 8130 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8131 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8132 echo "local: *; };" >> $output_objdir/$libname.ver~ 8133 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8134 fi 8135 else 8136 ld_shlibs=no 8137 fi 8138 ;; 8139 8140 netbsd*) 8141 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8142 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8143 wlarc= 8144 else 8145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8147 fi 8148 ;; 8149 8150 solaris*) 8151 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8152 ld_shlibs=no 8153 cat <<_LT_EOF 1>&2 8154 8155*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8156*** create shared libraries on Solaris systems. Therefore, libtool 8157*** is disabling shared libraries support. We urge you to upgrade GNU 8158*** binutils to release 2.9.1 or newer. Another option is to modify 8159*** your PATH or compiler configuration so that the native linker is 8160*** used, and then restart. 8161 8162_LT_EOF 8163 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8166 else 8167 ld_shlibs=no 8168 fi 8169 ;; 8170 8171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8172 case `$LD -v 2>&1` in 8173 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8174 ld_shlibs=no 8175 cat <<_LT_EOF 1>&2 8176 8177*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8178*** reliably create shared libraries on SCO systems. Therefore, libtool 8179*** is disabling shared libraries support. We urge you to upgrade GNU 8180*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8181*** your PATH or compiler configuration so that the native linker is 8182*** used, and then restart. 8183 8184_LT_EOF 8185 ;; 8186 *) 8187 # For security reasons, it is highly recommended that you always 8188 # use absolute paths for naming shared libraries, and exclude the 8189 # DT_RUNPATH tag from executables and libraries. But doing so 8190 # requires that you compile everything twice, which is a pain. 8191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8195 else 8196 ld_shlibs=no 8197 fi 8198 ;; 8199 esac 8200 ;; 8201 8202 sunos4*) 8203 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8204 wlarc= 8205 hardcode_direct=yes 8206 hardcode_shlibpath_var=no 8207 ;; 8208 8209 *) 8210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8213 else 8214 ld_shlibs=no 8215 fi 8216 ;; 8217 esac 8218 8219 if test "$ld_shlibs" = no; then 8220 runpath_var= 8221 hardcode_libdir_flag_spec= 8222 export_dynamic_flag_spec= 8223 whole_archive_flag_spec= 8224 fi 8225 else 8226 # PORTME fill in a description of your system's linker (not GNU ld) 8227 case $host_os in 8228 aix3*) 8229 allow_undefined_flag=unsupported 8230 always_export_symbols=yes 8231 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' 8232 # Note: this linker hardcodes the directories in LIBPATH if there 8233 # are no directories specified by -L. 8234 hardcode_minus_L=yes 8235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8236 # Neither direct hardcoding nor static linking is supported with a 8237 # broken collect2. 8238 hardcode_direct=unsupported 8239 fi 8240 ;; 8241 8242 aix4* | aix5*) 8243 if test "$host_cpu" = ia64; then 8244 # On IA64, the linker does run time linking by default, so we don't 8245 # have to do anything special. 8246 aix_use_runtimelinking=no 8247 exp_sym_flag='-Bexport' 8248 no_entry_flag="" 8249 else 8250 # If we're using GNU nm, then we don't want the "-C" option. 8251 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8252 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8253 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' 8254 else 8255 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' 8256 fi 8257 aix_use_runtimelinking=no 8258 8259 # Test if we are trying to use run time linking or normal 8260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8261 # need to do runtime linking. 8262 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8263 for ld_flag in $LDFLAGS; do 8264 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8265 aix_use_runtimelinking=yes 8266 break 8267 fi 8268 done 8269 ;; 8270 esac 8271 8272 exp_sym_flag='-bexport' 8273 no_entry_flag='-bnoentry' 8274 fi 8275 8276 # When large executables or shared objects are built, AIX ld can 8277 # have problems creating the table of contents. If linking a library 8278 # or program results in "error TOC overflow" add -mminimal-toc to 8279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8281 8282 archive_cmds='' 8283 hardcode_direct=yes 8284 hardcode_direct_absolute=yes 8285 hardcode_libdir_separator=':' 8286 link_all_deplibs=yes 8287 file_list_spec='${wl}-f,' 8288 8289 if test "$GCC" = yes; then 8290 case $host_os in aix4.[012]|aix4.[012].*) 8291 # We only want to do this on AIX 4.2 and lower, the check 8292 # below for broken collect2 doesn't work under 4.3+ 8293 collect2name=`${CC} -print-prog-name=collect2` 8294 if test -f "$collect2name" && 8295 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8296 then 8297 # We have reworked collect2 8298 : 8299 else 8300 # We have old collect2 8301 hardcode_direct=unsupported 8302 # It fails to find uninstalled libraries when the uninstalled 8303 # path is not listed in the libpath. Setting hardcode_minus_L 8304 # to unsupported forces relinking 8305 hardcode_minus_L=yes 8306 hardcode_libdir_flag_spec='-L$libdir' 8307 hardcode_libdir_separator= 8308 fi 8309 ;; 8310 esac 8311 shared_flag='-shared' 8312 if test "$aix_use_runtimelinking" = yes; then 8313 shared_flag="$shared_flag "'${wl}-G' 8314 fi 8315 else 8316 # not using gcc 8317 if test "$host_cpu" = ia64; then 8318 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8319 # chokes on -Wl,-G. The following line is correct: 8320 shared_flag='-G' 8321 else 8322 if test "$aix_use_runtimelinking" = yes; then 8323 shared_flag='${wl}-G' 8324 else 8325 shared_flag='${wl}-bM:SRE' 8326 fi 8327 fi 8328 fi 8329 8330 # It seems that -bexpall does not export symbols beginning with 8331 # underscore (_), so it is better to generate a list of symbols to export. 8332 always_export_symbols=yes 8333 if test "$aix_use_runtimelinking" = yes; then 8334 # Warning - without using the other runtime loading flags (-brtl), 8335 # -berok will link without error, but may produce a broken library. 8336 allow_undefined_flag='-berok' 8337 # Determine the default libpath from the value encoded in an 8338 # empty executable. 8339 cat >conftest.$ac_ext <<_ACEOF 8340/* confdefs.h. */ 8341_ACEOF 8342cat confdefs.h >>conftest.$ac_ext 8343cat >>conftest.$ac_ext <<_ACEOF 8344/* end confdefs.h. */ 8345 8346int 8347main () 8348{ 8349 8350 ; 8351 return 0; 8352} 8353_ACEOF 8354rm -f conftest.$ac_objext conftest$ac_exeext 8355if { (ac_try="$ac_link" 8356case "(($ac_try" in 8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8358 *) ac_try_echo=$ac_try;; 8359esac 8360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8361 (eval "$ac_link") 2>conftest.er1 8362 ac_status=$? 8363 grep -v '^ *+' conftest.er1 >conftest.err 8364 rm -f conftest.er1 8365 cat conftest.err >&5 8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8367 (exit $ac_status); } && { 8368 test -z "$ac_c_werror_flag" || 8369 test ! -s conftest.err 8370 } && test -s conftest$ac_exeext && 8371 $as_test_x conftest$ac_exeext; then 8372 8373lt_aix_libpath_sed=' 8374 /Import File Strings/,/^$/ { 8375 /^0/ { 8376 s/^0 *\(.*\)$/\1/ 8377 p 8378 } 8379 }' 8380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8381# Check for a 64-bit object if we didn't find anything. 8382if test -z "$aix_libpath"; then 8383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8384fi 8385else 8386 echo "$as_me: failed program was:" >&5 8387sed 's/^/| /' conftest.$ac_ext >&5 8388 8389 8390fi 8391 8392rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8393 conftest$ac_exeext conftest.$ac_ext 8394if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8395 8396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8397 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" 8398 else 8399 if test "$host_cpu" = ia64; then 8400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8401 allow_undefined_flag="-z nodefs" 8402 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" 8403 else 8404 # Determine the default libpath from the value encoded in an 8405 # empty executable. 8406 cat >conftest.$ac_ext <<_ACEOF 8407/* confdefs.h. */ 8408_ACEOF 8409cat confdefs.h >>conftest.$ac_ext 8410cat >>conftest.$ac_ext <<_ACEOF 8411/* end confdefs.h. */ 8412 8413int 8414main () 8415{ 8416 8417 ; 8418 return 0; 8419} 8420_ACEOF 8421rm -f conftest.$ac_objext conftest$ac_exeext 8422if { (ac_try="$ac_link" 8423case "(($ac_try" in 8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8425 *) ac_try_echo=$ac_try;; 8426esac 8427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8428 (eval "$ac_link") 2>conftest.er1 8429 ac_status=$? 8430 grep -v '^ *+' conftest.er1 >conftest.err 8431 rm -f conftest.er1 8432 cat conftest.err >&5 8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8434 (exit $ac_status); } && { 8435 test -z "$ac_c_werror_flag" || 8436 test ! -s conftest.err 8437 } && test -s conftest$ac_exeext && 8438 $as_test_x conftest$ac_exeext; then 8439 8440lt_aix_libpath_sed=' 8441 /Import File Strings/,/^$/ { 8442 /^0/ { 8443 s/^0 *\(.*\)$/\1/ 8444 p 8445 } 8446 }' 8447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8448# Check for a 64-bit object if we didn't find anything. 8449if test -z "$aix_libpath"; then 8450 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8451fi 8452else 8453 echo "$as_me: failed program was:" >&5 8454sed 's/^/| /' conftest.$ac_ext >&5 8455 8456 8457fi 8458 8459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8460 conftest$ac_exeext conftest.$ac_ext 8461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8462 8463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8464 # Warning - without using the other run time loading flags, 8465 # -berok will link without error, but may produce a broken library. 8466 no_undefined_flag=' ${wl}-bernotok' 8467 allow_undefined_flag=' ${wl}-berok' 8468 # Exported symbols can be pulled into shared objects from archives 8469 whole_archive_flag_spec='$convenience' 8470 archive_cmds_need_lc=yes 8471 # This is similar to how AIX traditionally builds its shared libraries. 8472 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' 8473 fi 8474 fi 8475 ;; 8476 8477 amigaos*) 8478 if test "$host_cpu" = m68k; then 8479 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)' 8480 hardcode_libdir_flag_spec='-L$libdir' 8481 hardcode_minus_L=yes 8482 fi 8483 # see comment about different semantics on the GNU ld section 8484 ld_shlibs=no 8485 ;; 8486 8487 bsdi[45]*) 8488 export_dynamic_flag_spec=-rdynamic 8489 ;; 8490 8491 cygwin* | mingw* | pw32*) 8492 # When not using gcc, we currently assume that we are using 8493 # Microsoft Visual C++. 8494 # hardcode_libdir_flag_spec is actually meaningless, as there is 8495 # no search path for DLLs. 8496 hardcode_libdir_flag_spec=' ' 8497 allow_undefined_flag=unsupported 8498 # Tell ltmain to make .lib files, not .a files. 8499 libext=lib 8500 # Tell ltmain to make .dll files, not .so files. 8501 shrext_cmds=".dll" 8502 # FIXME: Setting linknames here is a bad hack. 8503 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8504 # The linker will automatically build a .lib file if we build a DLL. 8505 old_archive_from_new_cmds='true' 8506 # FIXME: Should let the user specify the lib program. 8507 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8508 fix_srcfile_path='`cygpath -w "$srcfile"`' 8509 enable_shared_with_static_runtimes=yes 8510 ;; 8511 8512 darwin* | rhapsody*) 8513 case $host_os in 8514 rhapsody* | darwin1.[012]) 8515 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8516 ;; 8517 *) # Darwin 1.3 on 8518 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 8519 10.[012]) 8520 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8521 ;; 8522 10.*) 8523 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8524 ;; 8525 esac 8526 ;; 8527 esac 8528 archive_cmds_need_lc=no 8529 hardcode_direct=no 8530 hardcode_automatic=yes 8531 hardcode_shlibpath_var=unsupported 8532 whole_archive_flag_spec='' 8533 link_all_deplibs=yes 8534 if test "$GCC" = yes ; then 8535 if test "${lt_cv_apple_cc_single_mod+set}" = set; then 8536 echo $ECHO_N "(cached) $ECHO_C" >&6 8537else 8538 lt_cv_apple_cc_single_mod=no 8539 if test -z "${LT_MULTI_MODULE}"; then 8540 # By default we will add the -single_module flag. You can override 8541 # by either setting the environment variable LT_MULTI_MODULE 8542 # non-empty at configure time, or by adding -multi-module to the 8543 # link flags. 8544 echo "int foo(void){return 1;}" > conftest.c 8545 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8546 -dynamiclib ${wl}-single_module conftest.c 8547 if test -f libconftest.dylib; then 8548 lt_cv_apple_cc_single_mod=yes 8549 rm libconftest.dylib 8550 fi 8551 rm conftest.$ac_ext 8552 fi 8553fi 8554 8555 output_verbose_link_cmd=echo 8556 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then 8557 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8558 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8559 else 8560 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8561 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8562 fi 8563 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8564 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8565 else 8566 case $cc_basename in 8567 xlc*) 8568 output_verbose_link_cmd=echo 8569 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' 8570 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8571 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8572 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8573 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8574 ;; 8575 *) 8576 ld_shlibs=no 8577 ;; 8578 esac 8579 fi 8580 ;; 8581 8582 dgux*) 8583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8584 hardcode_libdir_flag_spec='-L$libdir' 8585 hardcode_shlibpath_var=no 8586 ;; 8587 8588 freebsd1*) 8589 ld_shlibs=no 8590 ;; 8591 8592 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8593 # support. Future versions do this automatically, but an explicit c++rt0.o 8594 # does not break anything, and helps significantly (at the cost of a little 8595 # extra space). 8596 freebsd2.2*) 8597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8598 hardcode_libdir_flag_spec='-R$libdir' 8599 hardcode_direct=yes 8600 hardcode_shlibpath_var=no 8601 ;; 8602 8603 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8604 freebsd2*) 8605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8606 hardcode_direct=yes 8607 hardcode_minus_L=yes 8608 hardcode_shlibpath_var=no 8609 ;; 8610 8611 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8612 freebsd* | dragonfly*) 8613 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8614 hardcode_libdir_flag_spec='-R$libdir' 8615 hardcode_direct=yes 8616 hardcode_shlibpath_var=no 8617 ;; 8618 8619 hpux9*) 8620 if test "$GCC" = yes; then 8621 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' 8622 else 8623 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' 8624 fi 8625 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8626 hardcode_libdir_separator=: 8627 hardcode_direct=yes 8628 8629 # hardcode_minus_L: Not really in the search PATH, 8630 # but as the default location of the library. 8631 hardcode_minus_L=yes 8632 export_dynamic_flag_spec='${wl}-E' 8633 ;; 8634 8635 hpux10*) 8636 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8638 else 8639 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8640 fi 8641 if test "$with_gnu_ld" = no; then 8642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8643 hardcode_libdir_flag_spec_ld='+b $libdir' 8644 hardcode_libdir_separator=: 8645 hardcode_direct=yes 8646 hardcode_direct_absolute=yes 8647 export_dynamic_flag_spec='${wl}-E' 8648 # hardcode_minus_L: Not really in the search PATH, 8649 # but as the default location of the library. 8650 hardcode_minus_L=yes 8651 fi 8652 ;; 8653 8654 hpux11*) 8655 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8656 case $host_cpu in 8657 hppa*64*) 8658 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8659 ;; 8660 ia64*) 8661 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8662 ;; 8663 *) 8664 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8665 ;; 8666 esac 8667 else 8668 case $host_cpu in 8669 hppa*64*) 8670 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8671 ;; 8672 ia64*) 8673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8674 ;; 8675 *) 8676 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8677 ;; 8678 esac 8679 fi 8680 if test "$with_gnu_ld" = no; then 8681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8682 hardcode_libdir_separator=: 8683 8684 case $host_cpu in 8685 hppa*64*|ia64*) 8686 hardcode_direct=no 8687 hardcode_shlibpath_var=no 8688 ;; 8689 *) 8690 hardcode_direct=yes 8691 hardcode_direct_absolute=yes 8692 export_dynamic_flag_spec='${wl}-E' 8693 8694 # hardcode_minus_L: Not really in the search PATH, 8695 # but as the default location of the library. 8696 hardcode_minus_L=yes 8697 ;; 8698 esac 8699 fi 8700 ;; 8701 8702 irix5* | irix6* | nonstopux*) 8703 if test "$GCC" = yes; then 8704 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' 8705 # Try to use the -exported_symbol ld option, if it does not 8706 # work, assume that -exports_file does not work either and 8707 # implicitly export all symbols. 8708 save_LDFLAGS="$LDFLAGS" 8709 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8710 cat >conftest.$ac_ext <<_ACEOF 8711int foo(void) {} 8712_ACEOF 8713rm -f conftest.$ac_objext conftest$ac_exeext 8714if { (ac_try="$ac_link" 8715case "(($ac_try" in 8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8717 *) ac_try_echo=$ac_try;; 8718esac 8719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8720 (eval "$ac_link") 2>conftest.er1 8721 ac_status=$? 8722 grep -v '^ *+' conftest.er1 >conftest.err 8723 rm -f conftest.er1 8724 cat conftest.err >&5 8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8726 (exit $ac_status); } && { 8727 test -z "$ac_c_werror_flag" || 8728 test ! -s conftest.err 8729 } && test -s conftest$ac_exeext && 8730 $as_test_x conftest$ac_exeext; then 8731 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' 8732 8733else 8734 echo "$as_me: failed program was:" >&5 8735sed 's/^/| /' conftest.$ac_ext >&5 8736 8737 8738fi 8739 8740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8741 conftest$ac_exeext conftest.$ac_ext 8742 LDFLAGS="$save_LDFLAGS" 8743 else 8744 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' 8745 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' 8746 fi 8747 archive_cmds_need_lc='no' 8748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8749 hardcode_libdir_separator=: 8750 inherit_rpath=yes 8751 link_all_deplibs=yes 8752 ;; 8753 8754 netbsd*) 8755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8757 else 8758 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8759 fi 8760 hardcode_libdir_flag_spec='-R$libdir' 8761 hardcode_direct=yes 8762 hardcode_shlibpath_var=no 8763 ;; 8764 8765 newsos6) 8766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8767 hardcode_direct=yes 8768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8769 hardcode_libdir_separator=: 8770 hardcode_shlibpath_var=no 8771 ;; 8772 8773 *nto* | *qnx*) 8774 ;; 8775 8776 openbsd*) 8777 hardcode_direct=yes 8778 hardcode_shlibpath_var=no 8779 hardcode_direct_absolute=yes 8780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8784 export_dynamic_flag_spec='${wl}-E' 8785 else 8786 case $host_os in 8787 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8789 hardcode_libdir_flag_spec='-R$libdir' 8790 ;; 8791 *) 8792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8793 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8794 ;; 8795 esac 8796 fi 8797 ;; 8798 8799 os2*) 8800 hardcode_libdir_flag_spec='-L$libdir' 8801 hardcode_minus_L=yes 8802 allow_undefined_flag=unsupported 8803 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' 8804 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8805 ;; 8806 8807 osf3*) 8808 if test "$GCC" = yes; then 8809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8810 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' 8811 else 8812 allow_undefined_flag=' -expect_unresolved \*' 8813 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' 8814 fi 8815 archive_cmds_need_lc='no' 8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8817 hardcode_libdir_separator=: 8818 ;; 8819 8820 osf4* | osf5*) # as osf3* with the addition of -msym flag 8821 if test "$GCC" = yes; then 8822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8823 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' 8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8825 else 8826 allow_undefined_flag=' -expect_unresolved \*' 8827 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' 8828 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~ 8829 $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' 8830 8831 # Both c and cxx compiler support -rpath directly 8832 hardcode_libdir_flag_spec='-rpath $libdir' 8833 fi 8834 archive_cmds_need_lc='no' 8835 hardcode_libdir_separator=: 8836 ;; 8837 8838 solaris*) 8839 no_undefined_flag=' -z defs' 8840 if test "$GCC" = yes; then 8841 wlarc='${wl}' 8842 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8844 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8845 else 8846 case `$CC -V 2>&1` in 8847 *"Compilers 5.0"*) 8848 wlarc='' 8849 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8850 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8852 ;; 8853 *) 8854 wlarc='${wl}' 8855 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8857 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8858 ;; 8859 esac 8860 fi 8861 hardcode_libdir_flag_spec='-R$libdir' 8862 hardcode_shlibpath_var=no 8863 case $host_os in 8864 solaris2.[0-5] | solaris2.[0-5].*) ;; 8865 *) 8866 # The compiler driver will combine and reorder linker options, 8867 # but understands `-z linker_flag'. GCC discards it without `$wl', 8868 # but is careful enough not to reorder. 8869 # Supported since Solaris 2.6 (maybe 2.5.1?) 8870 if test "$GCC" = yes; then 8871 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8872 else 8873 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8874 fi 8875 ;; 8876 esac 8877 link_all_deplibs=yes 8878 ;; 8879 8880 sunos4*) 8881 if test "x$host_vendor" = xsequent; then 8882 # Use $CC to link under sequent, because it throws in some extra .o 8883 # files that make .init and .fini sections work. 8884 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8885 else 8886 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8887 fi 8888 hardcode_libdir_flag_spec='-L$libdir' 8889 hardcode_direct=yes 8890 hardcode_minus_L=yes 8891 hardcode_shlibpath_var=no 8892 ;; 8893 8894 sysv4) 8895 case $host_vendor in 8896 sni) 8897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8898 hardcode_direct=yes # is this really true??? 8899 ;; 8900 siemens) 8901 ## LD is ld it makes a PLAMLIB 8902 ## CC just makes a GrossModule. 8903 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8904 reload_cmds='$CC -r -o $output$reload_objs' 8905 hardcode_direct=no 8906 ;; 8907 motorola) 8908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8909 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8910 ;; 8911 esac 8912 runpath_var='LD_RUN_PATH' 8913 hardcode_shlibpath_var=no 8914 ;; 8915 8916 sysv4.3*) 8917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8918 hardcode_shlibpath_var=no 8919 export_dynamic_flag_spec='-Bexport' 8920 ;; 8921 8922 sysv4*MP*) 8923 if test -d /usr/nec; then 8924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8925 hardcode_shlibpath_var=no 8926 runpath_var=LD_RUN_PATH 8927 hardcode_runpath_var=yes 8928 ld_shlibs=yes 8929 fi 8930 ;; 8931 8932 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8933 no_undefined_flag='${wl}-z,text' 8934 archive_cmds_need_lc=no 8935 hardcode_shlibpath_var=no 8936 runpath_var='LD_RUN_PATH' 8937 8938 if test "$GCC" = yes; then 8939 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8940 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8941 else 8942 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8943 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8944 fi 8945 ;; 8946 8947 sysv5* | sco3.2v5* | sco5v6*) 8948 # Note: We can NOT use -z defs as we might desire, because we do not 8949 # link with -lc, and that would cause any symbols used from libc to 8950 # always be unresolved, which means just about no library would 8951 # ever link correctly. If we're not using GNU ld we use -z text 8952 # though, which does catch some bad symbols but isn't as heavy-handed 8953 # as -z defs. 8954 no_undefined_flag='${wl}-z,text' 8955 allow_undefined_flag='${wl}-z,nodefs' 8956 archive_cmds_need_lc=no 8957 hardcode_shlibpath_var=no 8958 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8959 hardcode_libdir_separator=':' 8960 link_all_deplibs=yes 8961 export_dynamic_flag_spec='${wl}-Bexport' 8962 runpath_var='LD_RUN_PATH' 8963 8964 if test "$GCC" = yes; then 8965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8967 else 8968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8970 fi 8971 ;; 8972 8973 uts4*) 8974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8975 hardcode_libdir_flag_spec='-L$libdir' 8976 hardcode_shlibpath_var=no 8977 ;; 8978 8979 *) 8980 ld_shlibs=no 8981 ;; 8982 esac 8983 8984 if test x$host_vendor = xsni; then 8985 case $host in 8986 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8987 export_dynamic_flag_spec='${wl}-Blargedynsym' 8988 ;; 8989 esac 8990 fi 8991 fi 8992 8993{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8994echo "${ECHO_T}$ld_shlibs" >&6; } 8995test "$ld_shlibs" = no && can_build_shared=no 8996 8997with_gnu_ld=$with_gnu_ld 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013# 9014# Do we need to explicitly link libc? 9015# 9016case "x$archive_cmds_need_lc" in 9017x|xyes) 9018 # Assume -lc should be added 9019 archive_cmds_need_lc=yes 9020 9021 if test "$enable_shared" = yes && test "$GCC" = yes; then 9022 case $archive_cmds in 9023 *'~'*) 9024 # FIXME: we may have to deal with multi-command sequences. 9025 ;; 9026 '$CC '*) 9027 # Test whether the compiler implicitly links with -lc since on some 9028 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9029 # to ld, don't add -lc before -lgcc. 9030 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9031echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9032 $RM conftest* 9033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9034 9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9036 (eval $ac_compile) 2>&5 9037 ac_status=$? 9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 (exit $ac_status); } 2>conftest.err; then 9040 soname=conftest 9041 lib=conftest 9042 libobjs=conftest.$ac_objext 9043 deplibs= 9044 wl=$lt_prog_compiler_wl 9045 pic_flag=$lt_prog_compiler_pic 9046 compiler_flags=-v 9047 linker_flags=-v 9048 verstring= 9049 output_objdir=. 9050 libname=conftest 9051 lt_save_allow_undefined_flag=$allow_undefined_flag 9052 allow_undefined_flag= 9053 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9054 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9055 ac_status=$? 9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9057 (exit $ac_status); } 9058 then 9059 archive_cmds_need_lc=no 9060 else 9061 archive_cmds_need_lc=yes 9062 fi 9063 allow_undefined_flag=$lt_save_allow_undefined_flag 9064 else 9065 cat conftest.err 1>&5 9066 fi 9067 $RM conftest* 9068 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9069echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9070 ;; 9071 esac 9072 fi 9073 ;; 9074esac 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9233echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9234withGCC=$GCC 9235if test "$withGCC" = yes; then 9236 case $host_os in 9237 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9238 *) lt_awk_arg="/^libraries:/" ;; 9239 esac 9240 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9241 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9242 # if the path contains ";" then we assume it to be the separator 9243 # otherwise default to the standard path separator (i.e. ":") - it is 9244 # assumed that no part of a normal pathname contains ";" but that should 9245 # okay in the real world where ";" in dirpaths is itself problematic. 9246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9247 else 9248 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9249 fi 9250 # Ok, now we have the path, separated by spaces, we can step through it 9251 # and add multilib dir if necessary. 9252 lt_tmp_lt_search_path_spec= 9253 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9254 for lt_sys_path in $lt_search_path_spec; do 9255 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9257 else 9258 test -d "$lt_sys_path" && \ 9259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9260 fi 9261 done 9262 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9263BEGIN {RS=" "; FS="/|\n";} { 9264 lt_foo=""; 9265 lt_count=0; 9266 for (lt_i = NF; lt_i > 0; lt_i--) { 9267 if ($lt_i != "" && $lt_i != ".") { 9268 if ($lt_i == "..") { 9269 lt_count++; 9270 } else { 9271 if (lt_count == 0) { 9272 lt_foo="/" $lt_i lt_foo; 9273 } else { 9274 lt_count--; 9275 } 9276 } 9277 } 9278 } 9279 if (lt_foo != "") { lt_freq[lt_foo]++; } 9280 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9281}'` 9282 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9283else 9284 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9285fi 9286library_names_spec= 9287libname_spec='lib$name' 9288soname_spec= 9289shrext_cmds=".so" 9290postinstall_cmds= 9291postuninstall_cmds= 9292finish_cmds= 9293finish_eval= 9294shlibpath_var= 9295shlibpath_overrides_runpath=unknown 9296version_type=none 9297dynamic_linker="$host_os ld.so" 9298sys_lib_dlsearch_path_spec="/lib /usr/lib" 9299need_lib_prefix=unknown 9300hardcode_into_libs=no 9301 9302# when you set need_version to no, make sure it does not cause -set_version 9303# flags to be left without arguments 9304need_version=unknown 9305 9306case $host_os in 9307aix3*) 9308 version_type=linux 9309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9310 shlibpath_var=LIBPATH 9311 9312 # AIX 3 has no versioning support, so we append a major version to the name. 9313 soname_spec='${libname}${release}${shared_ext}$major' 9314 ;; 9315 9316aix4* | aix5*) 9317 version_type=linux 9318 need_lib_prefix=no 9319 need_version=no 9320 hardcode_into_libs=yes 9321 if test "$host_cpu" = ia64; then 9322 # AIX 5 supports IA64 9323 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9324 shlibpath_var=LD_LIBRARY_PATH 9325 else 9326 # With GCC up to 2.95.x, collect2 would create an import file 9327 # for dependence libraries. The import file would start with 9328 # the line `#! .'. This would cause the generated library to 9329 # depend on `.', always an invalid library. This was fixed in 9330 # development snapshots of GCC prior to 3.0. 9331 case $host_os in 9332 aix4 | aix4.[01] | aix4.[01].*) 9333 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9334 echo ' yes ' 9335 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9336 : 9337 else 9338 can_build_shared=no 9339 fi 9340 ;; 9341 esac 9342 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9343 # soname into executable. Probably we can add versioning support to 9344 # collect2, so additional links can be useful in future. 9345 if test "$aix_use_runtimelinking" = yes; then 9346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9347 # instead of lib<name>.a to let people know that these are not 9348 # typical AIX shared libraries. 9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9350 else 9351 # We preserve .a as extension for shared libraries through AIX4.2 9352 # and later when we are not doing run time linking. 9353 library_names_spec='${libname}${release}.a $libname.a' 9354 soname_spec='${libname}${release}${shared_ext}$major' 9355 fi 9356 shlibpath_var=LIBPATH 9357 fi 9358 ;; 9359 9360amigaos*) 9361 if test "$host_cpu" = m68k; then 9362 library_names_spec='$libname.ixlibrary $libname.a' 9363 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9364 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' 9365 else 9366 dynamic_linker=no 9367 fi 9368 ;; 9369 9370beos*) 9371 library_names_spec='${libname}${shared_ext}' 9372 dynamic_linker="$host_os ld.so" 9373 shlibpath_var=LIBRARY_PATH 9374 ;; 9375 9376bsdi[45]*) 9377 version_type=linux 9378 need_version=no 9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9380 soname_spec='${libname}${release}${shared_ext}$major' 9381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9382 shlibpath_var=LD_LIBRARY_PATH 9383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9385 # the default ld.so.conf also contains /usr/contrib/lib and 9386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9387 # libtool to hard-code these into programs 9388 ;; 9389 9390cygwin* | mingw* | pw32*) 9391 version_type=windows 9392 shrext_cmds=".dll" 9393 need_version=no 9394 need_lib_prefix=no 9395 9396 case $withGCC,$host_os in 9397 yes,cygwin* | yes,mingw* | yes,pw32*) 9398 library_names_spec='$libname.dll.a' 9399 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9400 postinstall_cmds='base_file=`basename \${file}`~ 9401 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9402 dldir=$destdir/`dirname \$dlpath`~ 9403 test -d \$dldir || mkdir -p \$dldir~ 9404 $install_prog $dir/$dlname \$dldir/$dlname~ 9405 chmod a+x \$dldir/$dlname~ 9406 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9407 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9408 fi' 9409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9410 dlpath=$dir/\$dldll~ 9411 $RM \$dlpath' 9412 shlibpath_overrides_runpath=yes 9413 9414 case $host_os in 9415 cygwin*) 9416 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9419 ;; 9420 mingw*) 9421 # MinGW DLLs use traditional 'lib' prefix 9422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9423 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9424 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9425 # It is most probably a Windows format PATH printed by 9426 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9427 # path with ; separators, and with drive letters. We can handle the 9428 # drive letters (cygwin fileutils understands them), so leave them, 9429 # especially as we might pass files found there to a mingw objdump, 9430 # which wouldn't understand a cygwinified path. Ahh. 9431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9432 else 9433 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9434 fi 9435 ;; 9436 pw32*) 9437 # pw32 DLLs use 'pw' prefix rather than 'lib' 9438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9439 ;; 9440 esac 9441 ;; 9442 9443 *) 9444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9445 ;; 9446 esac 9447 dynamic_linker='Win32 ld.exe' 9448 # FIXME: first we should search . and the directory the executable is in 9449 shlibpath_var=PATH 9450 ;; 9451 9452darwin* | rhapsody*) 9453 dynamic_linker="$host_os dyld" 9454 version_type=darwin 9455 need_lib_prefix=no 9456 need_version=no 9457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9458 soname_spec='${libname}${release}${major}$shared_ext' 9459 shlibpath_overrides_runpath=yes 9460 shlibpath_var=DYLD_LIBRARY_PATH 9461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9462 9463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9465 ;; 9466 9467dgux*) 9468 version_type=linux 9469 need_lib_prefix=no 9470 need_version=no 9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9472 soname_spec='${libname}${release}${shared_ext}$major' 9473 shlibpath_var=LD_LIBRARY_PATH 9474 ;; 9475 9476freebsd1*) 9477 dynamic_linker=no 9478 ;; 9479 9480freebsd* | dragonfly*) 9481 # DragonFly does not have aout. When/if they implement a new 9482 # versioning mechanism, adjust this. 9483 if test -x /usr/bin/objformat; then 9484 objformat=`/usr/bin/objformat` 9485 else 9486 case $host_os in 9487 freebsd[123]*) objformat=aout ;; 9488 *) objformat=elf ;; 9489 esac 9490 fi 9491 version_type=freebsd-$objformat 9492 case $version_type in 9493 freebsd-elf*) 9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9495 need_version=no 9496 need_lib_prefix=no 9497 ;; 9498 freebsd-*) 9499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9500 need_version=yes 9501 ;; 9502 esac 9503 shlibpath_var=LD_LIBRARY_PATH 9504 case $host_os in 9505 freebsd2*) 9506 shlibpath_overrides_runpath=yes 9507 ;; 9508 freebsd3.[01]* | freebsdelf3.[01]*) 9509 shlibpath_overrides_runpath=yes 9510 hardcode_into_libs=yes 9511 ;; 9512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9514 shlibpath_overrides_runpath=no 9515 hardcode_into_libs=yes 9516 ;; 9517 *) # from 4.6 on, and DragonFly 9518 shlibpath_overrides_runpath=yes 9519 hardcode_into_libs=yes 9520 ;; 9521 esac 9522 ;; 9523 9524gnu*) 9525 version_type=linux 9526 need_lib_prefix=no 9527 need_version=no 9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9529 soname_spec='${libname}${release}${shared_ext}$major' 9530 shlibpath_var=LD_LIBRARY_PATH 9531 hardcode_into_libs=yes 9532 ;; 9533 9534hpux9* | hpux10* | hpux11*) 9535 # Give a soname corresponding to the major version so that dld.sl refuses to 9536 # link against other versions. 9537 version_type=sunos 9538 need_lib_prefix=no 9539 need_version=no 9540 case $host_cpu in 9541 ia64*) 9542 shrext_cmds='.so' 9543 hardcode_into_libs=yes 9544 dynamic_linker="$host_os dld.so" 9545 shlibpath_var=LD_LIBRARY_PATH 9546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9548 soname_spec='${libname}${release}${shared_ext}$major' 9549 if test "X$HPUX_IA64_MODE" = X32; then 9550 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9551 else 9552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9553 fi 9554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9555 ;; 9556 hppa*64*) 9557 shrext_cmds='.sl' 9558 hardcode_into_libs=yes 9559 dynamic_linker="$host_os dld.sl" 9560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9563 soname_spec='${libname}${release}${shared_ext}$major' 9564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9566 ;; 9567 *) 9568 shrext_cmds='.sl' 9569 dynamic_linker="$host_os dld.sl" 9570 shlibpath_var=SHLIB_PATH 9571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9573 soname_spec='${libname}${release}${shared_ext}$major' 9574 ;; 9575 esac 9576 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9577 postinstall_cmds='chmod 555 $lib' 9578 ;; 9579 9580interix3*) 9581 version_type=linux 9582 need_lib_prefix=no 9583 need_version=no 9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9585 soname_spec='${libname}${release}${shared_ext}$major' 9586 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9587 shlibpath_var=LD_LIBRARY_PATH 9588 shlibpath_overrides_runpath=no 9589 hardcode_into_libs=yes 9590 ;; 9591 9592irix5* | irix6* | nonstopux*) 9593 case $host_os in 9594 nonstopux*) version_type=nonstopux ;; 9595 *) 9596 if test "$lt_cv_prog_gnu_ld" = yes; then 9597 version_type=linux 9598 else 9599 version_type=irix 9600 fi ;; 9601 esac 9602 need_lib_prefix=no 9603 need_version=no 9604 soname_spec='${libname}${release}${shared_ext}$major' 9605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9606 case $host_os in 9607 irix5* | nonstopux*) 9608 libsuff= shlibsuff= 9609 ;; 9610 *) 9611 case $LD in # libtool.m4 will add one of these switches to LD 9612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9613 libsuff= shlibsuff= libmagic=32-bit;; 9614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9615 libsuff=32 shlibsuff=N32 libmagic=N32;; 9616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9617 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9618 *) libsuff= shlibsuff= libmagic=never-match;; 9619 esac 9620 ;; 9621 esac 9622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9623 shlibpath_overrides_runpath=no 9624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9626 hardcode_into_libs=yes 9627 ;; 9628 9629# No shared lib support for Linux oldld, aout, or coff. 9630linux*oldld* | linux*aout* | linux*coff*) 9631 dynamic_linker=no 9632 ;; 9633 9634# This must be Linux ELF. 9635linux* | k*bsd*-gnu) 9636 version_type=linux 9637 need_lib_prefix=no 9638 need_version=no 9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9640 soname_spec='${libname}${release}${shared_ext}$major' 9641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9642 shlibpath_var=LD_LIBRARY_PATH 9643 shlibpath_overrides_runpath=no 9644 # Some binutils ld are patched to set DT_RUNPATH 9645 save_LDFLAGS=$LDFLAGS 9646 save_libdir=$libdir 9647 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9648 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9649 cat >conftest.$ac_ext <<_ACEOF 9650/* confdefs.h. */ 9651_ACEOF 9652cat confdefs.h >>conftest.$ac_ext 9653cat >>conftest.$ac_ext <<_ACEOF 9654/* end confdefs.h. */ 9655 9656int 9657main () 9658{ 9659 9660 ; 9661 return 0; 9662} 9663_ACEOF 9664rm -f conftest.$ac_objext conftest$ac_exeext 9665if { (ac_try="$ac_link" 9666case "(($ac_try" in 9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9668 *) ac_try_echo=$ac_try;; 9669esac 9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9671 (eval "$ac_link") 2>conftest.er1 9672 ac_status=$? 9673 grep -v '^ *+' conftest.er1 >conftest.err 9674 rm -f conftest.er1 9675 cat conftest.err >&5 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9677 (exit $ac_status); } && { 9678 test -z "$ac_c_werror_flag" || 9679 test ! -s conftest.err 9680 } && test -s conftest$ac_exeext && 9681 $as_test_x conftest$ac_exeext; then 9682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then 9683 shlibpath_overrides_runpath=yes 9684fi 9685 9686else 9687 echo "$as_me: failed program was:" >&5 9688sed 's/^/| /' conftest.$ac_ext >&5 9689 9690 9691fi 9692 9693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9694 conftest$ac_exeext conftest.$ac_ext 9695 LDFLAGS=$save_LDFLAGS 9696 libdir=$save_libdir 9697 9698 # This implies no fast_install, which is unacceptable. 9699 # Some rework will be needed to allow for fast_install 9700 # before this can be enabled. 9701 hardcode_into_libs=yes 9702 9703 # Append ld.so.conf contents to the search path 9704 if test -f /etc/ld.so.conf; then 9705 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9707 fi 9708 9709 # We used to test for /lib/ld.so.1 and disable shared libraries on 9710 # powerpc, because MkLinux only supported shared libraries with the 9711 # GNU dynamic linker. Since this was broken with cross compilers, 9712 # most powerpc-linux boxes support dynamic linking these days and 9713 # people can always --disable-shared, the test was removed, and we 9714 # assume the GNU/Linux dynamic linker is in use. 9715 dynamic_linker='GNU/Linux ld.so' 9716 ;; 9717 9718netbsd*) 9719 version_type=sunos 9720 need_lib_prefix=no 9721 need_version=no 9722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9725 dynamic_linker='NetBSD (a.out) ld.so' 9726 else 9727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9728 soname_spec='${libname}${release}${shared_ext}$major' 9729 dynamic_linker='NetBSD ld.elf_so' 9730 fi 9731 shlibpath_var=LD_LIBRARY_PATH 9732 shlibpath_overrides_runpath=yes 9733 hardcode_into_libs=yes 9734 ;; 9735 9736newsos6) 9737 version_type=linux 9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9739 shlibpath_var=LD_LIBRARY_PATH 9740 shlibpath_overrides_runpath=yes 9741 ;; 9742 9743*nto* | *qnx*) 9744 version_type=qnx 9745 need_lib_prefix=no 9746 need_version=no 9747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9748 soname_spec='${libname}${release}${shared_ext}$major' 9749 shlibpath_var=LD_LIBRARY_PATH 9750 shlibpath_overrides_runpath=no 9751 hardcode_into_libs=yes 9752 dynamic_linker='ldqnx.so' 9753 ;; 9754 9755openbsd*) 9756 version_type=sunos 9757 sys_lib_dlsearch_path_spec="/usr/lib" 9758 need_lib_prefix=no 9759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9760 case $host_os in 9761 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9762 *) need_version=no ;; 9763 esac 9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9766 shlibpath_var=LD_LIBRARY_PATH 9767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9768 case $host_os in 9769 openbsd2.[89] | openbsd2.[89].*) 9770 shlibpath_overrides_runpath=no 9771 ;; 9772 *) 9773 shlibpath_overrides_runpath=yes 9774 ;; 9775 esac 9776 else 9777 shlibpath_overrides_runpath=yes 9778 fi 9779 ;; 9780 9781os2*) 9782 libname_spec='$name' 9783 shrext_cmds=".dll" 9784 need_lib_prefix=no 9785 library_names_spec='$libname${shared_ext} $libname.a' 9786 dynamic_linker='OS/2 ld.exe' 9787 shlibpath_var=LIBPATH 9788 ;; 9789 9790osf3* | osf4* | osf5*) 9791 version_type=osf 9792 need_lib_prefix=no 9793 need_version=no 9794 soname_spec='${libname}${release}${shared_ext}$major' 9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9796 shlibpath_var=LD_LIBRARY_PATH 9797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9799 ;; 9800 9801rdos*) 9802 dynamic_linker=no 9803 ;; 9804 9805solaris*) 9806 version_type=linux 9807 need_lib_prefix=no 9808 need_version=no 9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9810 soname_spec='${libname}${release}${shared_ext}$major' 9811 shlibpath_var=LD_LIBRARY_PATH 9812 shlibpath_overrides_runpath=yes 9813 hardcode_into_libs=yes 9814 # ldd complains unless libraries are executable 9815 postinstall_cmds='chmod +x $lib' 9816 ;; 9817 9818sunos4*) 9819 version_type=sunos 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9822 shlibpath_var=LD_LIBRARY_PATH 9823 shlibpath_overrides_runpath=yes 9824 if test "$with_gnu_ld" = yes; then 9825 need_lib_prefix=no 9826 fi 9827 need_version=yes 9828 ;; 9829 9830sysv4 | sysv4.3*) 9831 version_type=linux 9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9833 soname_spec='${libname}${release}${shared_ext}$major' 9834 shlibpath_var=LD_LIBRARY_PATH 9835 case $host_vendor in 9836 sni) 9837 shlibpath_overrides_runpath=no 9838 need_lib_prefix=no 9839 runpath_var=LD_RUN_PATH 9840 ;; 9841 siemens) 9842 need_lib_prefix=no 9843 ;; 9844 motorola) 9845 need_lib_prefix=no 9846 need_version=no 9847 shlibpath_overrides_runpath=no 9848 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9849 ;; 9850 esac 9851 ;; 9852 9853sysv4*MP*) 9854 if test -d /usr/nec ;then 9855 version_type=linux 9856 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9857 soname_spec='$libname${shared_ext}.$major' 9858 shlibpath_var=LD_LIBRARY_PATH 9859 fi 9860 ;; 9861 9862sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9863 version_type=freebsd-elf 9864 need_lib_prefix=no 9865 need_version=no 9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9867 soname_spec='${libname}${release}${shared_ext}$major' 9868 shlibpath_var=LD_LIBRARY_PATH 9869 shlibpath_overrides_runpath=yes 9870 hardcode_into_libs=yes 9871 if test "$with_gnu_ld" = yes; then 9872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9873 else 9874 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9875 case $host_os in 9876 sco3.2v5*) 9877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9878 ;; 9879 esac 9880 fi 9881 sys_lib_dlsearch_path_spec='/usr/lib' 9882 ;; 9883 9884tpf*) 9885 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9886 version_type=linux 9887 need_lib_prefix=no 9888 need_version=no 9889 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9890 shlibpath_var=LD_LIBRARY_PATH 9891 shlibpath_overrides_runpath=no 9892 hardcode_into_libs=yes 9893 ;; 9894 9895uts4*) 9896 version_type=linux 9897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9898 soname_spec='${libname}${release}${shared_ext}$major' 9899 shlibpath_var=LD_LIBRARY_PATH 9900 ;; 9901 9902*) 9903 dynamic_linker=no 9904 ;; 9905esac 9906{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9907echo "${ECHO_T}$dynamic_linker" >&6; } 9908test "$dynamic_linker" = no && can_build_shared=no 9909 9910variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9911if test "$GCC" = yes; then 9912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9913fi 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10002echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10003hardcode_action= 10004if test -n "$hardcode_libdir_flag_spec" || 10005 test -n "$runpath_var" || 10006 test "X$hardcode_automatic" = "Xyes" ; then 10007 10008 # We can hardcode non-existent directories. 10009 if test "$hardcode_direct" != no && 10010 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10011 # have to relink, otherwise we might link with an installed library 10012 # when we should be linking with a yet-to-be-installed one 10013 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10014 test "$hardcode_minus_L" != no; then 10015 # Linking always hardcodes the temporary library directory. 10016 hardcode_action=relink 10017 else 10018 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10019 hardcode_action=immediate 10020 fi 10021else 10022 # We cannot hardcode anything, or else we can only hardcode existing 10023 # directories. 10024 hardcode_action=unsupported 10025fi 10026{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10027echo "${ECHO_T}$hardcode_action" >&6; } 10028 10029if test "$hardcode_action" = relink || 10030 test "$inherit_rpath" = yes; then 10031 # Fast installation is not supported 10032 enable_fast_install=no 10033elif test "$shlibpath_overrides_runpath" = yes || 10034 test "$enable_shared" = no; then 10035 # Fast installation is not necessary 10036 enable_fast_install=needless 10037fi 10038 10039 10040 10041 10042 10043 10044 if test "x$enable_dlopen" != xyes; then 10045 enable_dlopen=unknown 10046 enable_dlopen_self=unknown 10047 enable_dlopen_self_static=unknown 10048else 10049 lt_cv_dlopen=no 10050 lt_cv_dlopen_libs= 10051 10052 case $host_os in 10053 beos*) 10054 lt_cv_dlopen="load_add_on" 10055 lt_cv_dlopen_libs= 10056 lt_cv_dlopen_self=yes 10057 ;; 10058 10059 mingw* | pw32*) 10060 lt_cv_dlopen="LoadLibrary" 10061 lt_cv_dlopen_libs= 10062 ;; 10063 10064 cygwin*) 10065 lt_cv_dlopen="dlopen" 10066 lt_cv_dlopen_libs= 10067 ;; 10068 10069 darwin*) 10070 # if libdl is installed we need to link against it 10071 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10072echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10073if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10074 echo $ECHO_N "(cached) $ECHO_C" >&6 10075else 10076 ac_check_lib_save_LIBS=$LIBS 10077LIBS="-ldl $LIBS" 10078cat >conftest.$ac_ext <<_ACEOF 10079/* confdefs.h. */ 10080_ACEOF 10081cat confdefs.h >>conftest.$ac_ext 10082cat >>conftest.$ac_ext <<_ACEOF 10083/* end confdefs.h. */ 10084 10085/* Override any GCC internal prototype to avoid an error. 10086 Use char because int might match the return type of a GCC 10087 builtin and then its argument prototype would still apply. */ 10088#ifdef __cplusplus 10089extern "C" 10090#endif 10091char dlopen (); 10092int 10093main () 10094{ 10095return dlopen (); 10096 ; 10097 return 0; 10098} 10099_ACEOF 10100rm -f conftest.$ac_objext conftest$ac_exeext 10101if { (ac_try="$ac_link" 10102case "(($ac_try" in 10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10104 *) ac_try_echo=$ac_try;; 10105esac 10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10107 (eval "$ac_link") 2>conftest.er1 10108 ac_status=$? 10109 grep -v '^ *+' conftest.er1 >conftest.err 10110 rm -f conftest.er1 10111 cat conftest.err >&5 10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10113 (exit $ac_status); } && { 10114 test -z "$ac_c_werror_flag" || 10115 test ! -s conftest.err 10116 } && test -s conftest$ac_exeext && 10117 $as_test_x conftest$ac_exeext; then 10118 ac_cv_lib_dl_dlopen=yes 10119else 10120 echo "$as_me: failed program was:" >&5 10121sed 's/^/| /' conftest.$ac_ext >&5 10122 10123 ac_cv_lib_dl_dlopen=no 10124fi 10125 10126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10127 conftest$ac_exeext conftest.$ac_ext 10128LIBS=$ac_check_lib_save_LIBS 10129fi 10130{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10131echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10132if test $ac_cv_lib_dl_dlopen = yes; then 10133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10134else 10135 10136 lt_cv_dlopen="dyld" 10137 lt_cv_dlopen_libs= 10138 lt_cv_dlopen_self=yes 10139 10140fi 10141 10142 ;; 10143 10144 *) 10145 { echo "$as_me:$LINENO: checking for shl_load" >&5 10146echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10147if test "${ac_cv_func_shl_load+set}" = set; then 10148 echo $ECHO_N "(cached) $ECHO_C" >&6 10149else 10150 cat >conftest.$ac_ext <<_ACEOF 10151/* confdefs.h. */ 10152_ACEOF 10153cat confdefs.h >>conftest.$ac_ext 10154cat >>conftest.$ac_ext <<_ACEOF 10155/* end confdefs.h. */ 10156/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10157 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10158#define shl_load innocuous_shl_load 10159 10160/* System header to define __stub macros and hopefully few prototypes, 10161 which can conflict with char shl_load (); below. 10162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10163 <limits.h> exists even on freestanding compilers. */ 10164 10165#ifdef __STDC__ 10166# include <limits.h> 10167#else 10168# include <assert.h> 10169#endif 10170 10171#undef shl_load 10172 10173/* Override any GCC internal prototype to avoid an error. 10174 Use char because int might match the return type of a GCC 10175 builtin and then its argument prototype would still apply. */ 10176#ifdef __cplusplus 10177extern "C" 10178#endif 10179char shl_load (); 10180/* The GNU C library defines this for functions which it implements 10181 to always fail with ENOSYS. Some functions are actually named 10182 something starting with __ and the normal name is an alias. */ 10183#if defined __stub_shl_load || defined __stub___shl_load 10184choke me 10185#endif 10186 10187int 10188main () 10189{ 10190return shl_load (); 10191 ; 10192 return 0; 10193} 10194_ACEOF 10195rm -f conftest.$ac_objext conftest$ac_exeext 10196if { (ac_try="$ac_link" 10197case "(($ac_try" in 10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10199 *) ac_try_echo=$ac_try;; 10200esac 10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10202 (eval "$ac_link") 2>conftest.er1 10203 ac_status=$? 10204 grep -v '^ *+' conftest.er1 >conftest.err 10205 rm -f conftest.er1 10206 cat conftest.err >&5 10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10208 (exit $ac_status); } && { 10209 test -z "$ac_c_werror_flag" || 10210 test ! -s conftest.err 10211 } && test -s conftest$ac_exeext && 10212 $as_test_x conftest$ac_exeext; then 10213 ac_cv_func_shl_load=yes 10214else 10215 echo "$as_me: failed program was:" >&5 10216sed 's/^/| /' conftest.$ac_ext >&5 10217 10218 ac_cv_func_shl_load=no 10219fi 10220 10221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10222 conftest$ac_exeext conftest.$ac_ext 10223fi 10224{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10225echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10226if test $ac_cv_func_shl_load = yes; then 10227 lt_cv_dlopen="shl_load" 10228else 10229 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10230echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10231if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10232 echo $ECHO_N "(cached) $ECHO_C" >&6 10233else 10234 ac_check_lib_save_LIBS=$LIBS 10235LIBS="-ldld $LIBS" 10236cat >conftest.$ac_ext <<_ACEOF 10237/* confdefs.h. */ 10238_ACEOF 10239cat confdefs.h >>conftest.$ac_ext 10240cat >>conftest.$ac_ext <<_ACEOF 10241/* end confdefs.h. */ 10242 10243/* Override any GCC internal prototype to avoid an error. 10244 Use char because int might match the return type of a GCC 10245 builtin and then its argument prototype would still apply. */ 10246#ifdef __cplusplus 10247extern "C" 10248#endif 10249char shl_load (); 10250int 10251main () 10252{ 10253return shl_load (); 10254 ; 10255 return 0; 10256} 10257_ACEOF 10258rm -f conftest.$ac_objext conftest$ac_exeext 10259if { (ac_try="$ac_link" 10260case "(($ac_try" in 10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10262 *) ac_try_echo=$ac_try;; 10263esac 10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10265 (eval "$ac_link") 2>conftest.er1 10266 ac_status=$? 10267 grep -v '^ *+' conftest.er1 >conftest.err 10268 rm -f conftest.er1 10269 cat conftest.err >&5 10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10271 (exit $ac_status); } && { 10272 test -z "$ac_c_werror_flag" || 10273 test ! -s conftest.err 10274 } && test -s conftest$ac_exeext && 10275 $as_test_x conftest$ac_exeext; then 10276 ac_cv_lib_dld_shl_load=yes 10277else 10278 echo "$as_me: failed program was:" >&5 10279sed 's/^/| /' conftest.$ac_ext >&5 10280 10281 ac_cv_lib_dld_shl_load=no 10282fi 10283 10284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10285 conftest$ac_exeext conftest.$ac_ext 10286LIBS=$ac_check_lib_save_LIBS 10287fi 10288{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10289echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10290if test $ac_cv_lib_dld_shl_load = yes; then 10291 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10292else 10293 { echo "$as_me:$LINENO: checking for dlopen" >&5 10294echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10295if test "${ac_cv_func_dlopen+set}" = set; then 10296 echo $ECHO_N "(cached) $ECHO_C" >&6 10297else 10298 cat >conftest.$ac_ext <<_ACEOF 10299/* confdefs.h. */ 10300_ACEOF 10301cat confdefs.h >>conftest.$ac_ext 10302cat >>conftest.$ac_ext <<_ACEOF 10303/* end confdefs.h. */ 10304/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10305 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10306#define dlopen innocuous_dlopen 10307 10308/* System header to define __stub macros and hopefully few prototypes, 10309 which can conflict with char dlopen (); below. 10310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10311 <limits.h> exists even on freestanding compilers. */ 10312 10313#ifdef __STDC__ 10314# include <limits.h> 10315#else 10316# include <assert.h> 10317#endif 10318 10319#undef dlopen 10320 10321/* Override any GCC internal prototype to avoid an error. 10322 Use char because int might match the return type of a GCC 10323 builtin and then its argument prototype would still apply. */ 10324#ifdef __cplusplus 10325extern "C" 10326#endif 10327char dlopen (); 10328/* The GNU C library defines this for functions which it implements 10329 to always fail with ENOSYS. Some functions are actually named 10330 something starting with __ and the normal name is an alias. */ 10331#if defined __stub_dlopen || defined __stub___dlopen 10332choke me 10333#endif 10334 10335int 10336main () 10337{ 10338return dlopen (); 10339 ; 10340 return 0; 10341} 10342_ACEOF 10343rm -f conftest.$ac_objext conftest$ac_exeext 10344if { (ac_try="$ac_link" 10345case "(($ac_try" in 10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10347 *) ac_try_echo=$ac_try;; 10348esac 10349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10350 (eval "$ac_link") 2>conftest.er1 10351 ac_status=$? 10352 grep -v '^ *+' conftest.er1 >conftest.err 10353 rm -f conftest.er1 10354 cat conftest.err >&5 10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10356 (exit $ac_status); } && { 10357 test -z "$ac_c_werror_flag" || 10358 test ! -s conftest.err 10359 } && test -s conftest$ac_exeext && 10360 $as_test_x conftest$ac_exeext; then 10361 ac_cv_func_dlopen=yes 10362else 10363 echo "$as_me: failed program was:" >&5 10364sed 's/^/| /' conftest.$ac_ext >&5 10365 10366 ac_cv_func_dlopen=no 10367fi 10368 10369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10370 conftest$ac_exeext conftest.$ac_ext 10371fi 10372{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10373echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10374if test $ac_cv_func_dlopen = yes; then 10375 lt_cv_dlopen="dlopen" 10376else 10377 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10378echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10379if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10380 echo $ECHO_N "(cached) $ECHO_C" >&6 10381else 10382 ac_check_lib_save_LIBS=$LIBS 10383LIBS="-ldl $LIBS" 10384cat >conftest.$ac_ext <<_ACEOF 10385/* confdefs.h. */ 10386_ACEOF 10387cat confdefs.h >>conftest.$ac_ext 10388cat >>conftest.$ac_ext <<_ACEOF 10389/* end confdefs.h. */ 10390 10391/* Override any GCC internal prototype to avoid an error. 10392 Use char because int might match the return type of a GCC 10393 builtin and then its argument prototype would still apply. */ 10394#ifdef __cplusplus 10395extern "C" 10396#endif 10397char dlopen (); 10398int 10399main () 10400{ 10401return dlopen (); 10402 ; 10403 return 0; 10404} 10405_ACEOF 10406rm -f conftest.$ac_objext conftest$ac_exeext 10407if { (ac_try="$ac_link" 10408case "(($ac_try" in 10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10410 *) ac_try_echo=$ac_try;; 10411esac 10412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10413 (eval "$ac_link") 2>conftest.er1 10414 ac_status=$? 10415 grep -v '^ *+' conftest.er1 >conftest.err 10416 rm -f conftest.er1 10417 cat conftest.err >&5 10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10419 (exit $ac_status); } && { 10420 test -z "$ac_c_werror_flag" || 10421 test ! -s conftest.err 10422 } && test -s conftest$ac_exeext && 10423 $as_test_x conftest$ac_exeext; then 10424 ac_cv_lib_dl_dlopen=yes 10425else 10426 echo "$as_me: failed program was:" >&5 10427sed 's/^/| /' conftest.$ac_ext >&5 10428 10429 ac_cv_lib_dl_dlopen=no 10430fi 10431 10432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10433 conftest$ac_exeext conftest.$ac_ext 10434LIBS=$ac_check_lib_save_LIBS 10435fi 10436{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10437echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10438if test $ac_cv_lib_dl_dlopen = yes; then 10439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10440else 10441 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10442echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10443if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10444 echo $ECHO_N "(cached) $ECHO_C" >&6 10445else 10446 ac_check_lib_save_LIBS=$LIBS 10447LIBS="-lsvld $LIBS" 10448cat >conftest.$ac_ext <<_ACEOF 10449/* confdefs.h. */ 10450_ACEOF 10451cat confdefs.h >>conftest.$ac_ext 10452cat >>conftest.$ac_ext <<_ACEOF 10453/* end confdefs.h. */ 10454 10455/* Override any GCC internal prototype to avoid an error. 10456 Use char because int might match the return type of a GCC 10457 builtin and then its argument prototype would still apply. */ 10458#ifdef __cplusplus 10459extern "C" 10460#endif 10461char dlopen (); 10462int 10463main () 10464{ 10465return dlopen (); 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470rm -f conftest.$ac_objext conftest$ac_exeext 10471if { (ac_try="$ac_link" 10472case "(($ac_try" in 10473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10474 *) ac_try_echo=$ac_try;; 10475esac 10476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10477 (eval "$ac_link") 2>conftest.er1 10478 ac_status=$? 10479 grep -v '^ *+' conftest.er1 >conftest.err 10480 rm -f conftest.er1 10481 cat conftest.err >&5 10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10483 (exit $ac_status); } && { 10484 test -z "$ac_c_werror_flag" || 10485 test ! -s conftest.err 10486 } && test -s conftest$ac_exeext && 10487 $as_test_x conftest$ac_exeext; then 10488 ac_cv_lib_svld_dlopen=yes 10489else 10490 echo "$as_me: failed program was:" >&5 10491sed 's/^/| /' conftest.$ac_ext >&5 10492 10493 ac_cv_lib_svld_dlopen=no 10494fi 10495 10496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10497 conftest$ac_exeext conftest.$ac_ext 10498LIBS=$ac_check_lib_save_LIBS 10499fi 10500{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10501echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10502if test $ac_cv_lib_svld_dlopen = yes; then 10503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10504else 10505 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10506echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10507if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10508 echo $ECHO_N "(cached) $ECHO_C" >&6 10509else 10510 ac_check_lib_save_LIBS=$LIBS 10511LIBS="-ldld $LIBS" 10512cat >conftest.$ac_ext <<_ACEOF 10513/* confdefs.h. */ 10514_ACEOF 10515cat confdefs.h >>conftest.$ac_ext 10516cat >>conftest.$ac_ext <<_ACEOF 10517/* end confdefs.h. */ 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 dld_link (); 10526int 10527main () 10528{ 10529return dld_link (); 10530 ; 10531 return 0; 10532} 10533_ACEOF 10534rm -f conftest.$ac_objext conftest$ac_exeext 10535if { (ac_try="$ac_link" 10536case "(($ac_try" in 10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10538 *) ac_try_echo=$ac_try;; 10539esac 10540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10541 (eval "$ac_link") 2>conftest.er1 10542 ac_status=$? 10543 grep -v '^ *+' conftest.er1 >conftest.err 10544 rm -f conftest.er1 10545 cat conftest.err >&5 10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10547 (exit $ac_status); } && { 10548 test -z "$ac_c_werror_flag" || 10549 test ! -s conftest.err 10550 } && test -s conftest$ac_exeext && 10551 $as_test_x conftest$ac_exeext; then 10552 ac_cv_lib_dld_dld_link=yes 10553else 10554 echo "$as_me: failed program was:" >&5 10555sed 's/^/| /' conftest.$ac_ext >&5 10556 10557 ac_cv_lib_dld_dld_link=no 10558fi 10559 10560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10561 conftest$ac_exeext conftest.$ac_ext 10562LIBS=$ac_check_lib_save_LIBS 10563fi 10564{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10565echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10566if test $ac_cv_lib_dld_dld_link = yes; then 10567 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10568fi 10569 10570 10571fi 10572 10573 10574fi 10575 10576 10577fi 10578 10579 10580fi 10581 10582 10583fi 10584 10585 ;; 10586 esac 10587 10588 if test "x$lt_cv_dlopen" != xno; then 10589 enable_dlopen=yes 10590 else 10591 enable_dlopen=no 10592 fi 10593 10594 case $lt_cv_dlopen in 10595 dlopen) 10596 save_CPPFLAGS="$CPPFLAGS" 10597 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10598 10599 save_LDFLAGS="$LDFLAGS" 10600 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10601 10602 save_LIBS="$LIBS" 10603 LIBS="$lt_cv_dlopen_libs $LIBS" 10604 10605 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10606echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10607if test "${lt_cv_dlopen_self+set}" = set; then 10608 echo $ECHO_N "(cached) $ECHO_C" >&6 10609else 10610 if test "$cross_compiling" = yes; then : 10611 lt_cv_dlopen_self=cross 10612else 10613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10614 lt_status=$lt_dlunknown 10615 cat > conftest.$ac_ext <<_LT_EOF 10616#line 10616 "configure" 10617#include "confdefs.h" 10618 10619#if HAVE_DLFCN_H 10620#include <dlfcn.h> 10621#endif 10622 10623#include <stdio.h> 10624 10625#ifdef RTLD_GLOBAL 10626# define LT_DLGLOBAL RTLD_GLOBAL 10627#else 10628# ifdef DL_GLOBAL 10629# define LT_DLGLOBAL DL_GLOBAL 10630# else 10631# define LT_DLGLOBAL 0 10632# endif 10633#endif 10634 10635/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10636 find out it does not work in some platform. */ 10637#ifndef LT_DLLAZY_OR_NOW 10638# ifdef RTLD_LAZY 10639# define LT_DLLAZY_OR_NOW RTLD_LAZY 10640# else 10641# ifdef DL_LAZY 10642# define LT_DLLAZY_OR_NOW DL_LAZY 10643# else 10644# ifdef RTLD_NOW 10645# define LT_DLLAZY_OR_NOW RTLD_NOW 10646# else 10647# ifdef DL_NOW 10648# define LT_DLLAZY_OR_NOW DL_NOW 10649# else 10650# define LT_DLLAZY_OR_NOW 0 10651# endif 10652# endif 10653# endif 10654# endif 10655#endif 10656 10657#ifdef __cplusplus 10658extern "C" void exit (int); 10659#endif 10660 10661void fnord() { int i=42;} 10662int main () 10663{ 10664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10665 int status = $lt_dlunknown; 10666 10667 if (self) 10668 { 10669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10670 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10671 /* dlclose (self); */ 10672 } 10673 else 10674 puts (dlerror ()); 10675 10676 exit (status); 10677} 10678_LT_EOF 10679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10680 (eval $ac_link) 2>&5 10681 ac_status=$? 10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10683 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10684 (./conftest; exit; ) >&5 2>/dev/null 10685 lt_status=$? 10686 case x$lt_status in 10687 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10688 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10689 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10690 esac 10691 else : 10692 # compilation failed 10693 lt_cv_dlopen_self=no 10694 fi 10695fi 10696rm -fr conftest* 10697 10698 10699fi 10700{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10701echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10702 10703 if test "x$lt_cv_dlopen_self" = xyes; then 10704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10705 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10706echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10707if test "${lt_cv_dlopen_self_static+set}" = set; then 10708 echo $ECHO_N "(cached) $ECHO_C" >&6 10709else 10710 if test "$cross_compiling" = yes; then : 10711 lt_cv_dlopen_self_static=cross 10712else 10713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10714 lt_status=$lt_dlunknown 10715 cat > conftest.$ac_ext <<_LT_EOF 10716#line 10716 "configure" 10717#include "confdefs.h" 10718 10719#if HAVE_DLFCN_H 10720#include <dlfcn.h> 10721#endif 10722 10723#include <stdio.h> 10724 10725#ifdef RTLD_GLOBAL 10726# define LT_DLGLOBAL RTLD_GLOBAL 10727#else 10728# ifdef DL_GLOBAL 10729# define LT_DLGLOBAL DL_GLOBAL 10730# else 10731# define LT_DLGLOBAL 0 10732# endif 10733#endif 10734 10735/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10736 find out it does not work in some platform. */ 10737#ifndef LT_DLLAZY_OR_NOW 10738# ifdef RTLD_LAZY 10739# define LT_DLLAZY_OR_NOW RTLD_LAZY 10740# else 10741# ifdef DL_LAZY 10742# define LT_DLLAZY_OR_NOW DL_LAZY 10743# else 10744# ifdef RTLD_NOW 10745# define LT_DLLAZY_OR_NOW RTLD_NOW 10746# else 10747# ifdef DL_NOW 10748# define LT_DLLAZY_OR_NOW DL_NOW 10749# else 10750# define LT_DLLAZY_OR_NOW 0 10751# endif 10752# endif 10753# endif 10754# endif 10755#endif 10756 10757#ifdef __cplusplus 10758extern "C" void exit (int); 10759#endif 10760 10761void fnord() { int i=42;} 10762int main () 10763{ 10764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10765 int status = $lt_dlunknown; 10766 10767 if (self) 10768 { 10769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10770 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10771 /* dlclose (self); */ 10772 } 10773 else 10774 puts (dlerror ()); 10775 10776 exit (status); 10777} 10778_LT_EOF 10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10780 (eval $ac_link) 2>&5 10781 ac_status=$? 10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10783 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10784 (./conftest; exit; ) >&5 2>/dev/null 10785 lt_status=$? 10786 case x$lt_status in 10787 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10788 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10789 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10790 esac 10791 else : 10792 # compilation failed 10793 lt_cv_dlopen_self_static=no 10794 fi 10795fi 10796rm -fr conftest* 10797 10798 10799fi 10800{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10801echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10802 fi 10803 10804 CPPFLAGS="$save_CPPFLAGS" 10805 LDFLAGS="$save_LDFLAGS" 10806 LIBS="$save_LIBS" 10807 ;; 10808 esac 10809 10810 case $lt_cv_dlopen_self in 10811 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10812 *) enable_dlopen_self=unknown ;; 10813 esac 10814 10815 case $lt_cv_dlopen_self_static in 10816 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10817 *) enable_dlopen_self_static=unknown ;; 10818 esac 10819fi 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837striplib= 10838old_striplib= 10839{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10840echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10841if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10842 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10843 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10844 { echo "$as_me:$LINENO: result: yes" >&5 10845echo "${ECHO_T}yes" >&6; } 10846else 10847# FIXME - insert some real tests, host_os isn't really good enough 10848 case $host_os in 10849 darwin*) 10850 if test -n "$STRIP" ; then 10851 striplib="$STRIP -x" 10852 old_striplib="$STRIP -S" 10853 { echo "$as_me:$LINENO: result: yes" >&5 10854echo "${ECHO_T}yes" >&6; } 10855 else 10856 { echo "$as_me:$LINENO: result: no" >&5 10857echo "${ECHO_T}no" >&6; } 10858 fi 10859 ;; 10860 *) 10861 { echo "$as_me:$LINENO: result: no" >&5 10862echo "${ECHO_T}no" >&6; } 10863 ;; 10864 esac 10865fi 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 # Report which library types will actually be built 10879 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10880echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10881 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 10882echo "${ECHO_T}$can_build_shared" >&6; } 10883 10884 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10885echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10886 test "$can_build_shared" = "no" && enable_shared=no 10887 10888 # On AIX, shared libraries and static libraries use the same namespace, and 10889 # are all built from PIC. 10890 case $host_os in 10891 aix3*) 10892 test "$enable_shared" = yes && enable_static=no 10893 if test -n "$RANLIB"; then 10894 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10895 postinstall_cmds='$RANLIB $lib' 10896 fi 10897 ;; 10898 10899 aix4* | aix5*) 10900 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10901 test "$enable_shared" = yes && enable_static=no 10902 fi 10903 ;; 10904 esac 10905 { echo "$as_me:$LINENO: result: $enable_shared" >&5 10906echo "${ECHO_T}$enable_shared" >&6; } 10907 10908 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10909echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10910 # Make sure either enable_shared or enable_static is yes. 10911 test "$enable_shared" = yes || enable_static=yes 10912 { echo "$as_me:$LINENO: result: $enable_static" >&5 10913echo "${ECHO_T}$enable_static" >&6; } 10914 10915 10916 10917 10918fi 10919ac_ext=c 10920ac_cpp='$CPP $CPPFLAGS' 10921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10923ac_compiler_gnu=$ac_cv_c_compiler_gnu 10924 10925CC="$lt_save_CC" 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 ac_config_commands="$ac_config_commands libtool" 10940 10941 10942 10943 10944# Only expand once: 10945 10946 10947enable_win32_dll=yes 10948 10949case $host in 10950*-*-cygwin* | *-*-mingw* | *-*-pw32*) 10951 if test -n "$ac_tool_prefix"; then 10952 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 10953set dummy ${ac_tool_prefix}as; ac_word=$2 10954{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10956if test "${ac_cv_prog_AS+set}" = set; then 10957 echo $ECHO_N "(cached) $ECHO_C" >&6 10958else 10959 if test -n "$AS"; then 10960 ac_cv_prog_AS="$AS" # Let the user override the test. 10961else 10962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10963for as_dir in $PATH 10964do 10965 IFS=$as_save_IFS 10966 test -z "$as_dir" && as_dir=. 10967 for ac_exec_ext in '' $ac_executable_extensions; do 10968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10969 ac_cv_prog_AS="${ac_tool_prefix}as" 10970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10971 break 2 10972 fi 10973done 10974done 10975IFS=$as_save_IFS 10976 10977fi 10978fi 10979AS=$ac_cv_prog_AS 10980if test -n "$AS"; then 10981 { echo "$as_me:$LINENO: result: $AS" >&5 10982echo "${ECHO_T}$AS" >&6; } 10983else 10984 { echo "$as_me:$LINENO: result: no" >&5 10985echo "${ECHO_T}no" >&6; } 10986fi 10987 10988 10989fi 10990if test -z "$ac_cv_prog_AS"; then 10991 ac_ct_AS=$AS 10992 # Extract the first word of "as", so it can be a program name with args. 10993set dummy as; ac_word=$2 10994{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10996if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 10997 echo $ECHO_N "(cached) $ECHO_C" >&6 10998else 10999 if test -n "$ac_ct_AS"; then 11000 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 11001else 11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11003for as_dir in $PATH 11004do 11005 IFS=$as_save_IFS 11006 test -z "$as_dir" && as_dir=. 11007 for ac_exec_ext in '' $ac_executable_extensions; do 11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11009 ac_cv_prog_ac_ct_AS="as" 11010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11011 break 2 11012 fi 11013done 11014done 11015IFS=$as_save_IFS 11016 11017fi 11018fi 11019ac_ct_AS=$ac_cv_prog_ac_ct_AS 11020if test -n "$ac_ct_AS"; then 11021 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 11022echo "${ECHO_T}$ac_ct_AS" >&6; } 11023else 11024 { echo "$as_me:$LINENO: result: no" >&5 11025echo "${ECHO_T}no" >&6; } 11026fi 11027 11028 if test "x$ac_ct_AS" = x; then 11029 AS="false" 11030 else 11031 case $cross_compiling:$ac_tool_warned in 11032yes:) 11033{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11034whose name does not start with the host triplet. If you think this 11035configuration is useful to you, please write to [email protected]." >&5 11036echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11037whose name does not start with the host triplet. If you think this 11038configuration is useful to you, please write to [email protected]." >&2;} 11039ac_tool_warned=yes ;; 11040esac 11041 AS=$ac_ct_AS 11042 fi 11043else 11044 AS="$ac_cv_prog_AS" 11045fi 11046 11047 if test -n "$ac_tool_prefix"; then 11048 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11049set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11050{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11052if test "${ac_cv_prog_DLLTOOL+set}" = set; then 11053 echo $ECHO_N "(cached) $ECHO_C" >&6 11054else 11055 if test -n "$DLLTOOL"; then 11056 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11057else 11058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11059for as_dir in $PATH 11060do 11061 IFS=$as_save_IFS 11062 test -z "$as_dir" && as_dir=. 11063 for ac_exec_ext in '' $ac_executable_extensions; do 11064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11065 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11067 break 2 11068 fi 11069done 11070done 11071IFS=$as_save_IFS 11072 11073fi 11074fi 11075DLLTOOL=$ac_cv_prog_DLLTOOL 11076if test -n "$DLLTOOL"; then 11077 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 11078echo "${ECHO_T}$DLLTOOL" >&6; } 11079else 11080 { echo "$as_me:$LINENO: result: no" >&5 11081echo "${ECHO_T}no" >&6; } 11082fi 11083 11084 11085fi 11086if test -z "$ac_cv_prog_DLLTOOL"; then 11087 ac_ct_DLLTOOL=$DLLTOOL 11088 # Extract the first word of "dlltool", so it can be a program name with args. 11089set dummy dlltool; ac_word=$2 11090{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11092if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 11093 echo $ECHO_N "(cached) $ECHO_C" >&6 11094else 11095 if test -n "$ac_ct_DLLTOOL"; then 11096 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11097else 11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11099for as_dir in $PATH 11100do 11101 IFS=$as_save_IFS 11102 test -z "$as_dir" && as_dir=. 11103 for ac_exec_ext in '' $ac_executable_extensions; do 11104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11105 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11107 break 2 11108 fi 11109done 11110done 11111IFS=$as_save_IFS 11112 11113fi 11114fi 11115ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11116if test -n "$ac_ct_DLLTOOL"; then 11117 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 11118echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 11119else 11120 { echo "$as_me:$LINENO: result: no" >&5 11121echo "${ECHO_T}no" >&6; } 11122fi 11123 11124 if test "x$ac_ct_DLLTOOL" = x; then 11125 DLLTOOL="false" 11126 else 11127 case $cross_compiling:$ac_tool_warned in 11128yes:) 11129{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11130whose name does not start with the host triplet. If you think this 11131configuration is useful to you, please write to [email protected]." >&5 11132echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11133whose name does not start with the host triplet. If you think this 11134configuration is useful to you, please write to [email protected]." >&2;} 11135ac_tool_warned=yes ;; 11136esac 11137 DLLTOOL=$ac_ct_DLLTOOL 11138 fi 11139else 11140 DLLTOOL="$ac_cv_prog_DLLTOOL" 11141fi 11142 11143 if test -n "$ac_tool_prefix"; then 11144 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11145set dummy ${ac_tool_prefix}objdump; ac_word=$2 11146{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11148if test "${ac_cv_prog_OBJDUMP+set}" = set; then 11149 echo $ECHO_N "(cached) $ECHO_C" >&6 11150else 11151 if test -n "$OBJDUMP"; then 11152 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11153else 11154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11155for as_dir in $PATH 11156do 11157 IFS=$as_save_IFS 11158 test -z "$as_dir" && as_dir=. 11159 for ac_exec_ext in '' $ac_executable_extensions; do 11160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11161 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11163 break 2 11164 fi 11165done 11166done 11167IFS=$as_save_IFS 11168 11169fi 11170fi 11171OBJDUMP=$ac_cv_prog_OBJDUMP 11172if test -n "$OBJDUMP"; then 11173 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 11174echo "${ECHO_T}$OBJDUMP" >&6; } 11175else 11176 { echo "$as_me:$LINENO: result: no" >&5 11177echo "${ECHO_T}no" >&6; } 11178fi 11179 11180 11181fi 11182if test -z "$ac_cv_prog_OBJDUMP"; then 11183 ac_ct_OBJDUMP=$OBJDUMP 11184 # Extract the first word of "objdump", so it can be a program name with args. 11185set dummy objdump; ac_word=$2 11186{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11188if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 11189 echo $ECHO_N "(cached) $ECHO_C" >&6 11190else 11191 if test -n "$ac_ct_OBJDUMP"; then 11192 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11193else 11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11195for as_dir in $PATH 11196do 11197 IFS=$as_save_IFS 11198 test -z "$as_dir" && as_dir=. 11199 for ac_exec_ext in '' $ac_executable_extensions; do 11200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11201 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11203 break 2 11204 fi 11205done 11206done 11207IFS=$as_save_IFS 11208 11209fi 11210fi 11211ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11212if test -n "$ac_ct_OBJDUMP"; then 11213 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 11214echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 11215else 11216 { echo "$as_me:$LINENO: result: no" >&5 11217echo "${ECHO_T}no" >&6; } 11218fi 11219 11220 if test "x$ac_ct_OBJDUMP" = x; then 11221 OBJDUMP="false" 11222 else 11223 case $cross_compiling:$ac_tool_warned in 11224yes:) 11225{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11226whose name does not start with the host triplet. If you think this 11227configuration is useful to you, please write to [email protected]." >&5 11228echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11229whose name does not start with the host triplet. If you think this 11230configuration is useful to you, please write to [email protected]." >&2;} 11231ac_tool_warned=yes ;; 11232esac 11233 OBJDUMP=$ac_ct_OBJDUMP 11234 fi 11235else 11236 OBJDUMP="$ac_cv_prog_OBJDUMP" 11237fi 11238 11239 ;; 11240esac 11241 11242test -z "$AS" && AS=as 11243 11244 11245test -z "$DLLTOOL" && DLLTOOL=dlltool 11246 11247 11248test -z "$OBJDUMP" && OBJDUMP=objdump 11249 11250 11251 11252 11253 11254 11255{ echo "$as_me:$LINENO: checking for main in -lc" >&5 11256echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6; } 11257if test "${ac_cv_lib_c_main+set}" = set; then 11258 echo $ECHO_N "(cached) $ECHO_C" >&6 11259else 11260 ac_check_lib_save_LIBS=$LIBS 11261LIBS="-lc $LIBS" 11262cat >conftest.$ac_ext <<_ACEOF 11263/* confdefs.h. */ 11264_ACEOF 11265cat confdefs.h >>conftest.$ac_ext 11266cat >>conftest.$ac_ext <<_ACEOF 11267/* end confdefs.h. */ 11268 11269 11270int 11271main () 11272{ 11273return main (); 11274 ; 11275 return 0; 11276} 11277_ACEOF 11278rm -f conftest.$ac_objext conftest$ac_exeext 11279if { (ac_try="$ac_link" 11280case "(($ac_try" in 11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11282 *) ac_try_echo=$ac_try;; 11283esac 11284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11285 (eval "$ac_link") 2>conftest.er1 11286 ac_status=$? 11287 grep -v '^ *+' conftest.er1 >conftest.err 11288 rm -f conftest.er1 11289 cat conftest.err >&5 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11291 (exit $ac_status); } && { 11292 test -z "$ac_c_werror_flag" || 11293 test ! -s conftest.err 11294 } && test -s conftest$ac_exeext && 11295 $as_test_x conftest$ac_exeext; then 11296 ac_cv_lib_c_main=yes 11297else 11298 echo "$as_me: failed program was:" >&5 11299sed 's/^/| /' conftest.$ac_ext >&5 11300 11301 ac_cv_lib_c_main=no 11302fi 11303 11304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11305 conftest$ac_exeext conftest.$ac_ext 11306LIBS=$ac_check_lib_save_LIBS 11307fi 11308{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5 11309echo "${ECHO_T}$ac_cv_lib_c_main" >&6; } 11310if test $ac_cv_lib_c_main = yes; then 11311 cat >>confdefs.h <<_ACEOF 11312#define HAVE_LIBC 1 11313_ACEOF 11314 11315 LIBS="-lc $LIBS" 11316 11317fi 11318 11319 11320case "${host_os}" in 11321 cygwin* | mingw32* | beos* | darwin*) 11322 ;; 11323 *) 11324 11325{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 11326echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 11327if test "${ac_cv_lib_m_sin+set}" = set; then 11328 echo $ECHO_N "(cached) $ECHO_C" >&6 11329else 11330 ac_check_lib_save_LIBS=$LIBS 11331LIBS="-lm $LIBS" 11332cat >conftest.$ac_ext <<_ACEOF 11333/* confdefs.h. */ 11334_ACEOF 11335cat confdefs.h >>conftest.$ac_ext 11336cat >>conftest.$ac_ext <<_ACEOF 11337/* end confdefs.h. */ 11338 11339/* Override any GCC internal prototype to avoid an error. 11340 Use char because int might match the return type of a GCC 11341 builtin and then its argument prototype would still apply. */ 11342#ifdef __cplusplus 11343extern "C" 11344#endif 11345char sin (); 11346int 11347main () 11348{ 11349return sin (); 11350 ; 11351 return 0; 11352} 11353_ACEOF 11354rm -f conftest.$ac_objext conftest$ac_exeext 11355if { (ac_try="$ac_link" 11356case "(($ac_try" in 11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11358 *) ac_try_echo=$ac_try;; 11359esac 11360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11361 (eval "$ac_link") 2>conftest.er1 11362 ac_status=$? 11363 grep -v '^ *+' conftest.er1 >conftest.err 11364 rm -f conftest.er1 11365 cat conftest.err >&5 11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11367 (exit $ac_status); } && { 11368 test -z "$ac_c_werror_flag" || 11369 test ! -s conftest.err 11370 } && test -s conftest$ac_exeext && 11371 $as_test_x conftest$ac_exeext; then 11372 ac_cv_lib_m_sin=yes 11373else 11374 echo "$as_me: failed program was:" >&5 11375sed 's/^/| /' conftest.$ac_ext >&5 11376 11377 ac_cv_lib_m_sin=no 11378fi 11379 11380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11381 conftest$ac_exeext conftest.$ac_ext 11382LIBS=$ac_check_lib_save_LIBS 11383fi 11384{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 11385echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 11386if test $ac_cv_lib_m_sin = yes; then 11387 cat >>confdefs.h <<_ACEOF 11388#define HAVE_LIBM 1 11389_ACEOF 11390 11391 LIBS="-lm $LIBS" 11392 11393fi 11394 11395 ;; 11396esac 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h 11407do 11408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11413 echo $ECHO_N "(cached) $ECHO_C" >&6 11414fi 11415ac_res=`eval echo '${'$as_ac_Header'}'` 11416 { echo "$as_me:$LINENO: result: $ac_res" >&5 11417echo "${ECHO_T}$ac_res" >&6; } 11418else 11419 # Is the header compilable? 11420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11422cat >conftest.$ac_ext <<_ACEOF 11423/* confdefs.h. */ 11424_ACEOF 11425cat confdefs.h >>conftest.$ac_ext 11426cat >>conftest.$ac_ext <<_ACEOF 11427/* end confdefs.h. */ 11428$ac_includes_default 11429#include <$ac_header> 11430_ACEOF 11431rm -f conftest.$ac_objext 11432if { (ac_try="$ac_compile" 11433case "(($ac_try" in 11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11435 *) ac_try_echo=$ac_try;; 11436esac 11437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11438 (eval "$ac_compile") 2>conftest.er1 11439 ac_status=$? 11440 grep -v '^ *+' conftest.er1 >conftest.err 11441 rm -f conftest.er1 11442 cat conftest.err >&5 11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); } && { 11445 test -z "$ac_c_werror_flag" || 11446 test ! -s conftest.err 11447 } && test -s conftest.$ac_objext; then 11448 ac_header_compiler=yes 11449else 11450 echo "$as_me: failed program was:" >&5 11451sed 's/^/| /' conftest.$ac_ext >&5 11452 11453 ac_header_compiler=no 11454fi 11455 11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11458echo "${ECHO_T}$ac_header_compiler" >&6; } 11459 11460# Is the header present? 11461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11463cat >conftest.$ac_ext <<_ACEOF 11464/* confdefs.h. */ 11465_ACEOF 11466cat confdefs.h >>conftest.$ac_ext 11467cat >>conftest.$ac_ext <<_ACEOF 11468/* end confdefs.h. */ 11469#include <$ac_header> 11470_ACEOF 11471if { (ac_try="$ac_cpp conftest.$ac_ext" 11472case "(($ac_try" in 11473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11474 *) ac_try_echo=$ac_try;; 11475esac 11476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11478 ac_status=$? 11479 grep -v '^ *+' conftest.er1 >conftest.err 11480 rm -f conftest.er1 11481 cat conftest.err >&5 11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11483 (exit $ac_status); } >/dev/null && { 11484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11485 test ! -s conftest.err 11486 }; then 11487 ac_header_preproc=yes 11488else 11489 echo "$as_me: failed program was:" >&5 11490sed 's/^/| /' conftest.$ac_ext >&5 11491 11492 ac_header_preproc=no 11493fi 11494 11495rm -f conftest.err conftest.$ac_ext 11496{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11497echo "${ECHO_T}$ac_header_preproc" >&6; } 11498 11499# So? What about this header? 11500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11501 yes:no: ) 11502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11506 ac_header_preproc=yes 11507 ;; 11508 no:yes:* ) 11509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11512echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11516echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11521 ( cat <<\_ASBOX 11522## -------------------------------------- ## 11523## Report this to [email protected] ## 11524## -------------------------------------- ## 11525_ASBOX 11526 ) | sed "s/^/$as_me: WARNING: /" >&2 11527 ;; 11528esac 11529{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11532 echo $ECHO_N "(cached) $ECHO_C" >&6 11533else 11534 eval "$as_ac_Header=\$ac_header_preproc" 11535fi 11536ac_res=`eval echo '${'$as_ac_Header'}'` 11537 { echo "$as_me:$LINENO: result: $ac_res" >&5 11538echo "${ECHO_T}$ac_res" >&6; } 11539 11540fi 11541if test `eval echo '${'$as_ac_Header'}'` = yes; then 11542 cat >>confdefs.h <<_ACEOF 11543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11544_ACEOF 11545 11546fi 11547 11548done 11549 11550 11551{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 11552echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 11553if test "${ac_cv_c_const+set}" = set; then 11554 echo $ECHO_N "(cached) $ECHO_C" >&6 11555else 11556 cat >conftest.$ac_ext <<_ACEOF 11557/* confdefs.h. */ 11558_ACEOF 11559cat confdefs.h >>conftest.$ac_ext 11560cat >>conftest.$ac_ext <<_ACEOF 11561/* end confdefs.h. */ 11562 11563int 11564main () 11565{ 11566/* FIXME: Include the comments suggested by Paul. */ 11567#ifndef __cplusplus 11568 /* Ultrix mips cc rejects this. */ 11569 typedef int charset[2]; 11570 const charset cs; 11571 /* SunOS 4.1.1 cc rejects this. */ 11572 char const *const *pcpcc; 11573 char **ppc; 11574 /* NEC SVR4.0.2 mips cc rejects this. */ 11575 struct point {int x, y;}; 11576 static struct point const zero = {0,0}; 11577 /* AIX XL C 1.02.0.0 rejects this. 11578 It does not let you subtract one const X* pointer from another in 11579 an arm of an if-expression whose if-part is not a constant 11580 expression */ 11581 const char *g = "string"; 11582 pcpcc = &g + (g ? g-g : 0); 11583 /* HPUX 7.0 cc rejects these. */ 11584 ++pcpcc; 11585 ppc = (char**) pcpcc; 11586 pcpcc = (char const *const *) ppc; 11587 { /* SCO 3.2v4 cc rejects this. */ 11588 char *t; 11589 char const *s = 0 ? (char *) 0 : (char const *) 0; 11590 11591 *t++ = 0; 11592 if (s) return 0; 11593 } 11594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11595 int x[] = {25, 17}; 11596 const int *foo = &x[0]; 11597 ++foo; 11598 } 11599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11600 typedef const int *iptr; 11601 iptr p = 0; 11602 ++p; 11603 } 11604 { /* AIX XL C 1.02.0.0 rejects this saying 11605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11606 struct s { int j; const int *ap[3]; }; 11607 struct s *b; b->j = 5; 11608 } 11609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11610 const int foo = 10; 11611 if (!foo) return 0; 11612 } 11613 return !cs[0] && !zero.x; 11614#endif 11615 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620rm -f conftest.$ac_objext 11621if { (ac_try="$ac_compile" 11622case "(($ac_try" in 11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11624 *) ac_try_echo=$ac_try;; 11625esac 11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11627 (eval "$ac_compile") 2>conftest.er1 11628 ac_status=$? 11629 grep -v '^ *+' conftest.er1 >conftest.err 11630 rm -f conftest.er1 11631 cat conftest.err >&5 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11633 (exit $ac_status); } && { 11634 test -z "$ac_c_werror_flag" || 11635 test ! -s conftest.err 11636 } && test -s conftest.$ac_objext; then 11637 ac_cv_c_const=yes 11638else 11639 echo "$as_me: failed program was:" >&5 11640sed 's/^/| /' conftest.$ac_ext >&5 11641 11642 ac_cv_c_const=no 11643fi 11644 11645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11646fi 11647{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 11648echo "${ECHO_T}$ac_cv_c_const" >&6; } 11649if test $ac_cv_c_const = no; then 11650 11651cat >>confdefs.h <<\_ACEOF 11652#define const 11653_ACEOF 11654 11655fi 11656 11657{ echo "$as_me:$LINENO: checking for inline" >&5 11658echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 11659if test "${ac_cv_c_inline+set}" = set; then 11660 echo $ECHO_N "(cached) $ECHO_C" >&6 11661else 11662 ac_cv_c_inline=no 11663for ac_kw in inline __inline__ __inline; do 11664 cat >conftest.$ac_ext <<_ACEOF 11665/* confdefs.h. */ 11666_ACEOF 11667cat confdefs.h >>conftest.$ac_ext 11668cat >>conftest.$ac_ext <<_ACEOF 11669/* end confdefs.h. */ 11670#ifndef __cplusplus 11671typedef int foo_t; 11672static $ac_kw foo_t static_foo () {return 0; } 11673$ac_kw foo_t foo () {return 0; } 11674#endif 11675 11676_ACEOF 11677rm -f conftest.$ac_objext 11678if { (ac_try="$ac_compile" 11679case "(($ac_try" in 11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11681 *) ac_try_echo=$ac_try;; 11682esac 11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11684 (eval "$ac_compile") 2>conftest.er1 11685 ac_status=$? 11686 grep -v '^ *+' conftest.er1 >conftest.err 11687 rm -f conftest.er1 11688 cat conftest.err >&5 11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11690 (exit $ac_status); } && { 11691 test -z "$ac_c_werror_flag" || 11692 test ! -s conftest.err 11693 } && test -s conftest.$ac_objext; then 11694 ac_cv_c_inline=$ac_kw 11695else 11696 echo "$as_me: failed program was:" >&5 11697sed 's/^/| /' conftest.$ac_ext >&5 11698 11699 11700fi 11701 11702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11703 test "$ac_cv_c_inline" != no && break 11704done 11705 11706fi 11707{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 11708echo "${ECHO_T}$ac_cv_c_inline" >&6; } 11709 11710 11711case $ac_cv_c_inline in 11712 inline | yes) ;; 11713 *) 11714 case $ac_cv_c_inline in 11715 no) ac_val=;; 11716 *) ac_val=$ac_cv_c_inline;; 11717 esac 11718 cat >>confdefs.h <<_ACEOF 11719#ifndef __cplusplus 11720#define inline $ac_val 11721#endif 11722_ACEOF 11723 ;; 11724esac 11725 11726{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 11727echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 11728if test "${ac_cv_c_bigendian+set}" = set; then 11729 echo $ECHO_N "(cached) $ECHO_C" >&6 11730else 11731 # See if sys/param.h defines the BYTE_ORDER macro. 11732cat >conftest.$ac_ext <<_ACEOF 11733/* confdefs.h. */ 11734_ACEOF 11735cat confdefs.h >>conftest.$ac_ext 11736cat >>conftest.$ac_ext <<_ACEOF 11737/* end confdefs.h. */ 11738#include <sys/types.h> 11739#include <sys/param.h> 11740 11741int 11742main () 11743{ 11744#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 11745 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 11746 bogus endian macros 11747#endif 11748 11749 ; 11750 return 0; 11751} 11752_ACEOF 11753rm -f conftest.$ac_objext 11754if { (ac_try="$ac_compile" 11755case "(($ac_try" in 11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11757 *) ac_try_echo=$ac_try;; 11758esac 11759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11760 (eval "$ac_compile") 2>conftest.er1 11761 ac_status=$? 11762 grep -v '^ *+' conftest.er1 >conftest.err 11763 rm -f conftest.er1 11764 cat conftest.err >&5 11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11766 (exit $ac_status); } && { 11767 test -z "$ac_c_werror_flag" || 11768 test ! -s conftest.err 11769 } && test -s conftest.$ac_objext; then 11770 # It does; now see whether it defined to BIG_ENDIAN or not. 11771cat >conftest.$ac_ext <<_ACEOF 11772/* confdefs.h. */ 11773_ACEOF 11774cat confdefs.h >>conftest.$ac_ext 11775cat >>conftest.$ac_ext <<_ACEOF 11776/* end confdefs.h. */ 11777#include <sys/types.h> 11778#include <sys/param.h> 11779 11780int 11781main () 11782{ 11783#if BYTE_ORDER != BIG_ENDIAN 11784 not big endian 11785#endif 11786 11787 ; 11788 return 0; 11789} 11790_ACEOF 11791rm -f conftest.$ac_objext 11792if { (ac_try="$ac_compile" 11793case "(($ac_try" in 11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11795 *) ac_try_echo=$ac_try;; 11796esac 11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11798 (eval "$ac_compile") 2>conftest.er1 11799 ac_status=$? 11800 grep -v '^ *+' conftest.er1 >conftest.err 11801 rm -f conftest.er1 11802 cat conftest.err >&5 11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11804 (exit $ac_status); } && { 11805 test -z "$ac_c_werror_flag" || 11806 test ! -s conftest.err 11807 } && test -s conftest.$ac_objext; then 11808 ac_cv_c_bigendian=yes 11809else 11810 echo "$as_me: failed program was:" >&5 11811sed 's/^/| /' conftest.$ac_ext >&5 11812 11813 ac_cv_c_bigendian=no 11814fi 11815 11816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11817else 11818 echo "$as_me: failed program was:" >&5 11819sed 's/^/| /' conftest.$ac_ext >&5 11820 11821 # It does not; compile a test program. 11822if test "$cross_compiling" = yes; then 11823 # try to guess the endianness by grepping values into an object file 11824 ac_cv_c_bigendian=unknown 11825 cat >conftest.$ac_ext <<_ACEOF 11826/* confdefs.h. */ 11827_ACEOF 11828cat confdefs.h >>conftest.$ac_ext 11829cat >>conftest.$ac_ext <<_ACEOF 11830/* end confdefs.h. */ 11831short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11832short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11833void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 11834short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11835short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11836void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 11837int 11838main () 11839{ 11840 _ascii (); _ebcdic (); 11841 ; 11842 return 0; 11843} 11844_ACEOF 11845rm -f conftest.$ac_objext 11846if { (ac_try="$ac_compile" 11847case "(($ac_try" in 11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11849 *) ac_try_echo=$ac_try;; 11850esac 11851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11852 (eval "$ac_compile") 2>conftest.er1 11853 ac_status=$? 11854 grep -v '^ *+' conftest.er1 >conftest.err 11855 rm -f conftest.er1 11856 cat conftest.err >&5 11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11858 (exit $ac_status); } && { 11859 test -z "$ac_c_werror_flag" || 11860 test ! -s conftest.err 11861 } && test -s conftest.$ac_objext; then 11862 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 11863 ac_cv_c_bigendian=yes 11864fi 11865if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11866 if test "$ac_cv_c_bigendian" = unknown; then 11867 ac_cv_c_bigendian=no 11868 else 11869 # finding both strings is unlikely to happen, but who knows? 11870 ac_cv_c_bigendian=unknown 11871 fi 11872fi 11873else 11874 echo "$as_me: failed program was:" >&5 11875sed 's/^/| /' conftest.$ac_ext >&5 11876 11877 11878fi 11879 11880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11881else 11882 cat >conftest.$ac_ext <<_ACEOF 11883/* confdefs.h. */ 11884_ACEOF 11885cat confdefs.h >>conftest.$ac_ext 11886cat >>conftest.$ac_ext <<_ACEOF 11887/* end confdefs.h. */ 11888$ac_includes_default 11889int 11890main () 11891{ 11892 11893 /* Are we little or big endian? From Harbison&Steele. */ 11894 union 11895 { 11896 long int l; 11897 char c[sizeof (long int)]; 11898 } u; 11899 u.l = 1; 11900 return u.c[sizeof (long int) - 1] == 1; 11901 11902 ; 11903 return 0; 11904} 11905_ACEOF 11906rm -f conftest$ac_exeext 11907if { (ac_try="$ac_link" 11908case "(($ac_try" in 11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11910 *) ac_try_echo=$ac_try;; 11911esac 11912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11913 (eval "$ac_link") 2>&5 11914 ac_status=$? 11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11917 { (case "(($ac_try" in 11918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11919 *) ac_try_echo=$ac_try;; 11920esac 11921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11922 (eval "$ac_try") 2>&5 11923 ac_status=$? 11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11925 (exit $ac_status); }; }; then 11926 ac_cv_c_bigendian=no 11927else 11928 echo "$as_me: program exited with status $ac_status" >&5 11929echo "$as_me: failed program was:" >&5 11930sed 's/^/| /' conftest.$ac_ext >&5 11931 11932( exit $ac_status ) 11933ac_cv_c_bigendian=yes 11934fi 11935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11936fi 11937 11938 11939fi 11940 11941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11942fi 11943{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 11944echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 11945case $ac_cv_c_bigendian in 11946 yes) 11947 11948cat >>confdefs.h <<\_ACEOF 11949#define WORDS_BIGENDIAN 1 11950_ACEOF 11951 ;; 11952 no) 11953 ;; 11954 *) 11955 { { echo "$as_me:$LINENO: error: unknown endianness 11956presetting ac_cv_c_bigendian=no (or yes) will help" >&5 11957echo "$as_me: error: unknown endianness 11958presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 11959 { (exit 1); exit 1; }; } ;; 11960esac 11961 11962{ echo "$as_me:$LINENO: checking for off_t" >&5 11963echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 11964if test "${ac_cv_type_off_t+set}" = set; then 11965 echo $ECHO_N "(cached) $ECHO_C" >&6 11966else 11967 cat >conftest.$ac_ext <<_ACEOF 11968/* confdefs.h. */ 11969_ACEOF 11970cat confdefs.h >>conftest.$ac_ext 11971cat >>conftest.$ac_ext <<_ACEOF 11972/* end confdefs.h. */ 11973$ac_includes_default 11974typedef off_t ac__type_new_; 11975int 11976main () 11977{ 11978if ((ac__type_new_ *) 0) 11979 return 0; 11980if (sizeof (ac__type_new_)) 11981 return 0; 11982 ; 11983 return 0; 11984} 11985_ACEOF 11986rm -f conftest.$ac_objext 11987if { (ac_try="$ac_compile" 11988case "(($ac_try" in 11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11990 *) ac_try_echo=$ac_try;; 11991esac 11992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11993 (eval "$ac_compile") 2>conftest.er1 11994 ac_status=$? 11995 grep -v '^ *+' conftest.er1 >conftest.err 11996 rm -f conftest.er1 11997 cat conftest.err >&5 11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11999 (exit $ac_status); } && { 12000 test -z "$ac_c_werror_flag" || 12001 test ! -s conftest.err 12002 } && test -s conftest.$ac_objext; then 12003 ac_cv_type_off_t=yes 12004else 12005 echo "$as_me: failed program was:" >&5 12006sed 's/^/| /' conftest.$ac_ext >&5 12007 12008 ac_cv_type_off_t=no 12009fi 12010 12011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12012fi 12013{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 12014echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 12015if test $ac_cv_type_off_t = yes; then 12016 : 12017else 12018 12019cat >>confdefs.h <<_ACEOF 12020#define off_t long int 12021_ACEOF 12022 12023fi 12024 12025{ echo "$as_me:$LINENO: checking for size_t" >&5 12026echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 12027if test "${ac_cv_type_size_t+set}" = set; then 12028 echo $ECHO_N "(cached) $ECHO_C" >&6 12029else 12030 cat >conftest.$ac_ext <<_ACEOF 12031/* confdefs.h. */ 12032_ACEOF 12033cat confdefs.h >>conftest.$ac_ext 12034cat >>conftest.$ac_ext <<_ACEOF 12035/* end confdefs.h. */ 12036$ac_includes_default 12037typedef size_t ac__type_new_; 12038int 12039main () 12040{ 12041if ((ac__type_new_ *) 0) 12042 return 0; 12043if (sizeof (ac__type_new_)) 12044 return 0; 12045 ; 12046 return 0; 12047} 12048_ACEOF 12049rm -f conftest.$ac_objext 12050if { (ac_try="$ac_compile" 12051case "(($ac_try" in 12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12053 *) ac_try_echo=$ac_try;; 12054esac 12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12056 (eval "$ac_compile") 2>conftest.er1 12057 ac_status=$? 12058 grep -v '^ *+' conftest.er1 >conftest.err 12059 rm -f conftest.er1 12060 cat conftest.err >&5 12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12062 (exit $ac_status); } && { 12063 test -z "$ac_c_werror_flag" || 12064 test ! -s conftest.err 12065 } && test -s conftest.$ac_objext; then 12066 ac_cv_type_size_t=yes 12067else 12068 echo "$as_me: failed program was:" >&5 12069sed 's/^/| /' conftest.$ac_ext >&5 12070 12071 ac_cv_type_size_t=no 12072fi 12073 12074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12075fi 12076{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 12077echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 12078if test $ac_cv_type_size_t = yes; then 12079 : 12080else 12081 12082cat >>confdefs.h <<_ACEOF 12083#define size_t unsigned int 12084_ACEOF 12085 12086fi 12087 12088{ echo "$as_me:$LINENO: checking for int" >&5 12089echo $ECHO_N "checking for int... $ECHO_C" >&6; } 12090if test "${ac_cv_type_int+set}" = set; then 12091 echo $ECHO_N "(cached) $ECHO_C" >&6 12092else 12093 cat >conftest.$ac_ext <<_ACEOF 12094/* confdefs.h. */ 12095_ACEOF 12096cat confdefs.h >>conftest.$ac_ext 12097cat >>conftest.$ac_ext <<_ACEOF 12098/* end confdefs.h. */ 12099$ac_includes_default 12100typedef int ac__type_new_; 12101int 12102main () 12103{ 12104if ((ac__type_new_ *) 0) 12105 return 0; 12106if (sizeof (ac__type_new_)) 12107 return 0; 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112rm -f conftest.$ac_objext 12113if { (ac_try="$ac_compile" 12114case "(($ac_try" in 12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12116 *) ac_try_echo=$ac_try;; 12117esac 12118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12119 (eval "$ac_compile") 2>conftest.er1 12120 ac_status=$? 12121 grep -v '^ *+' conftest.er1 >conftest.err 12122 rm -f conftest.er1 12123 cat conftest.err >&5 12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12125 (exit $ac_status); } && { 12126 test -z "$ac_c_werror_flag" || 12127 test ! -s conftest.err 12128 } && test -s conftest.$ac_objext; then 12129 ac_cv_type_int=yes 12130else 12131 echo "$as_me: failed program was:" >&5 12132sed 's/^/| /' conftest.$ac_ext >&5 12133 12134 ac_cv_type_int=no 12135fi 12136 12137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12138fi 12139{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12140echo "${ECHO_T}$ac_cv_type_int" >&6; } 12141 12142# The cast to long int works around a bug in the HP C Compiler 12143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12145# This bug is HP SR number 8606223364. 12146{ echo "$as_me:$LINENO: checking size of int" >&5 12147echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 12148if test "${ac_cv_sizeof_int+set}" = set; then 12149 echo $ECHO_N "(cached) $ECHO_C" >&6 12150else 12151 if test "$cross_compiling" = yes; then 12152 # Depending upon the size, compute the lo and hi bounds. 12153cat >conftest.$ac_ext <<_ACEOF 12154/* confdefs.h. */ 12155_ACEOF 12156cat confdefs.h >>conftest.$ac_ext 12157cat >>conftest.$ac_ext <<_ACEOF 12158/* end confdefs.h. */ 12159$ac_includes_default 12160 typedef int ac__type_sizeof_; 12161int 12162main () 12163{ 12164static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12165test_array [0] = 0 12166 12167 ; 12168 return 0; 12169} 12170_ACEOF 12171rm -f conftest.$ac_objext 12172if { (ac_try="$ac_compile" 12173case "(($ac_try" in 12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12175 *) ac_try_echo=$ac_try;; 12176esac 12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12178 (eval "$ac_compile") 2>conftest.er1 12179 ac_status=$? 12180 grep -v '^ *+' conftest.er1 >conftest.err 12181 rm -f conftest.er1 12182 cat conftest.err >&5 12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12184 (exit $ac_status); } && { 12185 test -z "$ac_c_werror_flag" || 12186 test ! -s conftest.err 12187 } && test -s conftest.$ac_objext; then 12188 ac_lo=0 ac_mid=0 12189 while :; do 12190 cat >conftest.$ac_ext <<_ACEOF 12191/* confdefs.h. */ 12192_ACEOF 12193cat confdefs.h >>conftest.$ac_ext 12194cat >>conftest.$ac_ext <<_ACEOF 12195/* end confdefs.h. */ 12196$ac_includes_default 12197 typedef int ac__type_sizeof_; 12198int 12199main () 12200{ 12201static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12202test_array [0] = 0 12203 12204 ; 12205 return 0; 12206} 12207_ACEOF 12208rm -f conftest.$ac_objext 12209if { (ac_try="$ac_compile" 12210case "(($ac_try" in 12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12212 *) ac_try_echo=$ac_try;; 12213esac 12214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12215 (eval "$ac_compile") 2>conftest.er1 12216 ac_status=$? 12217 grep -v '^ *+' conftest.er1 >conftest.err 12218 rm -f conftest.er1 12219 cat conftest.err >&5 12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12221 (exit $ac_status); } && { 12222 test -z "$ac_c_werror_flag" || 12223 test ! -s conftest.err 12224 } && test -s conftest.$ac_objext; then 12225 ac_hi=$ac_mid; break 12226else 12227 echo "$as_me: failed program was:" >&5 12228sed 's/^/| /' conftest.$ac_ext >&5 12229 12230 ac_lo=`expr $ac_mid + 1` 12231 if test $ac_lo -le $ac_mid; then 12232 ac_lo= ac_hi= 12233 break 12234 fi 12235 ac_mid=`expr 2 '*' $ac_mid + 1` 12236fi 12237 12238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12239 done 12240else 12241 echo "$as_me: failed program was:" >&5 12242sed 's/^/| /' conftest.$ac_ext >&5 12243 12244 cat >conftest.$ac_ext <<_ACEOF 12245/* confdefs.h. */ 12246_ACEOF 12247cat confdefs.h >>conftest.$ac_ext 12248cat >>conftest.$ac_ext <<_ACEOF 12249/* end confdefs.h. */ 12250$ac_includes_default 12251 typedef int ac__type_sizeof_; 12252int 12253main () 12254{ 12255static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12256test_array [0] = 0 12257 12258 ; 12259 return 0; 12260} 12261_ACEOF 12262rm -f conftest.$ac_objext 12263if { (ac_try="$ac_compile" 12264case "(($ac_try" in 12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12266 *) ac_try_echo=$ac_try;; 12267esac 12268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12269 (eval "$ac_compile") 2>conftest.er1 12270 ac_status=$? 12271 grep -v '^ *+' conftest.er1 >conftest.err 12272 rm -f conftest.er1 12273 cat conftest.err >&5 12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12275 (exit $ac_status); } && { 12276 test -z "$ac_c_werror_flag" || 12277 test ! -s conftest.err 12278 } && test -s conftest.$ac_objext; then 12279 ac_hi=-1 ac_mid=-1 12280 while :; do 12281 cat >conftest.$ac_ext <<_ACEOF 12282/* confdefs.h. */ 12283_ACEOF 12284cat confdefs.h >>conftest.$ac_ext 12285cat >>conftest.$ac_ext <<_ACEOF 12286/* end confdefs.h. */ 12287$ac_includes_default 12288 typedef int ac__type_sizeof_; 12289int 12290main () 12291{ 12292static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12293test_array [0] = 0 12294 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299rm -f conftest.$ac_objext 12300if { (ac_try="$ac_compile" 12301case "(($ac_try" in 12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12303 *) ac_try_echo=$ac_try;; 12304esac 12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12306 (eval "$ac_compile") 2>conftest.er1 12307 ac_status=$? 12308 grep -v '^ *+' conftest.er1 >conftest.err 12309 rm -f conftest.er1 12310 cat conftest.err >&5 12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12312 (exit $ac_status); } && { 12313 test -z "$ac_c_werror_flag" || 12314 test ! -s conftest.err 12315 } && test -s conftest.$ac_objext; then 12316 ac_lo=$ac_mid; break 12317else 12318 echo "$as_me: failed program was:" >&5 12319sed 's/^/| /' conftest.$ac_ext >&5 12320 12321 ac_hi=`expr '(' $ac_mid ')' - 1` 12322 if test $ac_mid -le $ac_hi; then 12323 ac_lo= ac_hi= 12324 break 12325 fi 12326 ac_mid=`expr 2 '*' $ac_mid` 12327fi 12328 12329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12330 done 12331else 12332 echo "$as_me: failed program was:" >&5 12333sed 's/^/| /' conftest.$ac_ext >&5 12334 12335 ac_lo= ac_hi= 12336fi 12337 12338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12339fi 12340 12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12342# Binary search between lo and hi bounds. 12343while test "x$ac_lo" != "x$ac_hi"; do 12344 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12345 cat >conftest.$ac_ext <<_ACEOF 12346/* confdefs.h. */ 12347_ACEOF 12348cat confdefs.h >>conftest.$ac_ext 12349cat >>conftest.$ac_ext <<_ACEOF 12350/* end confdefs.h. */ 12351$ac_includes_default 12352 typedef int ac__type_sizeof_; 12353int 12354main () 12355{ 12356static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12357test_array [0] = 0 12358 12359 ; 12360 return 0; 12361} 12362_ACEOF 12363rm -f conftest.$ac_objext 12364if { (ac_try="$ac_compile" 12365case "(($ac_try" in 12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12367 *) ac_try_echo=$ac_try;; 12368esac 12369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12370 (eval "$ac_compile") 2>conftest.er1 12371 ac_status=$? 12372 grep -v '^ *+' conftest.er1 >conftest.err 12373 rm -f conftest.er1 12374 cat conftest.err >&5 12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12376 (exit $ac_status); } && { 12377 test -z "$ac_c_werror_flag" || 12378 test ! -s conftest.err 12379 } && test -s conftest.$ac_objext; then 12380 ac_hi=$ac_mid 12381else 12382 echo "$as_me: failed program was:" >&5 12383sed 's/^/| /' conftest.$ac_ext >&5 12384 12385 ac_lo=`expr '(' $ac_mid ')' + 1` 12386fi 12387 12388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12389done 12390case $ac_lo in 12391?*) ac_cv_sizeof_int=$ac_lo;; 12392'') if test "$ac_cv_type_int" = yes; then 12393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 12394See \`config.log' for more details." >&5 12395echo "$as_me: error: cannot compute sizeof (int) 12396See \`config.log' for more details." >&2;} 12397 { (exit 77); exit 77; }; } 12398 else 12399 ac_cv_sizeof_int=0 12400 fi ;; 12401esac 12402else 12403 cat >conftest.$ac_ext <<_ACEOF 12404/* confdefs.h. */ 12405_ACEOF 12406cat confdefs.h >>conftest.$ac_ext 12407cat >>conftest.$ac_ext <<_ACEOF 12408/* end confdefs.h. */ 12409$ac_includes_default 12410 typedef int ac__type_sizeof_; 12411static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12412static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12413#include <stdio.h> 12414#include <stdlib.h> 12415int 12416main () 12417{ 12418 12419 FILE *f = fopen ("conftest.val", "w"); 12420 if (! f) 12421 return 1; 12422 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12423 { 12424 long int i = longval (); 12425 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12426 return 1; 12427 fprintf (f, "%ld\n", i); 12428 } 12429 else 12430 { 12431 unsigned long int i = ulongval (); 12432 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12433 return 1; 12434 fprintf (f, "%lu\n", i); 12435 } 12436 return ferror (f) || fclose (f) != 0; 12437 12438 ; 12439 return 0; 12440} 12441_ACEOF 12442rm -f conftest$ac_exeext 12443if { (ac_try="$ac_link" 12444case "(($ac_try" in 12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12446 *) ac_try_echo=$ac_try;; 12447esac 12448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12449 (eval "$ac_link") 2>&5 12450 ac_status=$? 12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12453 { (case "(($ac_try" in 12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12455 *) ac_try_echo=$ac_try;; 12456esac 12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12458 (eval "$ac_try") 2>&5 12459 ac_status=$? 12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12461 (exit $ac_status); }; }; then 12462 ac_cv_sizeof_int=`cat conftest.val` 12463else 12464 echo "$as_me: program exited with status $ac_status" >&5 12465echo "$as_me: failed program was:" >&5 12466sed 's/^/| /' conftest.$ac_ext >&5 12467 12468( exit $ac_status ) 12469if test "$ac_cv_type_int" = yes; then 12470 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 12471See \`config.log' for more details." >&5 12472echo "$as_me: error: cannot compute sizeof (int) 12473See \`config.log' for more details." >&2;} 12474 { (exit 77); exit 77; }; } 12475 else 12476 ac_cv_sizeof_int=0 12477 fi 12478fi 12479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12480fi 12481rm -f conftest.val 12482fi 12483{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 12484echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 12485 12486 12487 12488cat >>confdefs.h <<_ACEOF 12489#define SIZEOF_INT $ac_cv_sizeof_int 12490_ACEOF 12491 12492 12493{ echo "$as_me:$LINENO: checking for long" >&5 12494echo $ECHO_N "checking for long... $ECHO_C" >&6; } 12495if test "${ac_cv_type_long+set}" = set; then 12496 echo $ECHO_N "(cached) $ECHO_C" >&6 12497else 12498 cat >conftest.$ac_ext <<_ACEOF 12499/* confdefs.h. */ 12500_ACEOF 12501cat confdefs.h >>conftest.$ac_ext 12502cat >>conftest.$ac_ext <<_ACEOF 12503/* end confdefs.h. */ 12504$ac_includes_default 12505typedef long ac__type_new_; 12506int 12507main () 12508{ 12509if ((ac__type_new_ *) 0) 12510 return 0; 12511if (sizeof (ac__type_new_)) 12512 return 0; 12513 ; 12514 return 0; 12515} 12516_ACEOF 12517rm -f conftest.$ac_objext 12518if { (ac_try="$ac_compile" 12519case "(($ac_try" in 12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12521 *) ac_try_echo=$ac_try;; 12522esac 12523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12524 (eval "$ac_compile") 2>conftest.er1 12525 ac_status=$? 12526 grep -v '^ *+' conftest.er1 >conftest.err 12527 rm -f conftest.er1 12528 cat conftest.err >&5 12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12530 (exit $ac_status); } && { 12531 test -z "$ac_c_werror_flag" || 12532 test ! -s conftest.err 12533 } && test -s conftest.$ac_objext; then 12534 ac_cv_type_long=yes 12535else 12536 echo "$as_me: failed program was:" >&5 12537sed 's/^/| /' conftest.$ac_ext >&5 12538 12539 ac_cv_type_long=no 12540fi 12541 12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12543fi 12544{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 12545echo "${ECHO_T}$ac_cv_type_long" >&6; } 12546 12547# The cast to long int works around a bug in the HP C Compiler 12548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12550# This bug is HP SR number 8606223364. 12551{ echo "$as_me:$LINENO: checking size of long" >&5 12552echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 12553if test "${ac_cv_sizeof_long+set}" = set; then 12554 echo $ECHO_N "(cached) $ECHO_C" >&6 12555else 12556 if test "$cross_compiling" = yes; then 12557 # Depending upon the size, compute the lo and hi bounds. 12558cat >conftest.$ac_ext <<_ACEOF 12559/* confdefs.h. */ 12560_ACEOF 12561cat confdefs.h >>conftest.$ac_ext 12562cat >>conftest.$ac_ext <<_ACEOF 12563/* end confdefs.h. */ 12564$ac_includes_default 12565 typedef long ac__type_sizeof_; 12566int 12567main () 12568{ 12569static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12570test_array [0] = 0 12571 12572 ; 12573 return 0; 12574} 12575_ACEOF 12576rm -f conftest.$ac_objext 12577if { (ac_try="$ac_compile" 12578case "(($ac_try" in 12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12580 *) ac_try_echo=$ac_try;; 12581esac 12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12583 (eval "$ac_compile") 2>conftest.er1 12584 ac_status=$? 12585 grep -v '^ *+' conftest.er1 >conftest.err 12586 rm -f conftest.er1 12587 cat conftest.err >&5 12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12589 (exit $ac_status); } && { 12590 test -z "$ac_c_werror_flag" || 12591 test ! -s conftest.err 12592 } && test -s conftest.$ac_objext; then 12593 ac_lo=0 ac_mid=0 12594 while :; do 12595 cat >conftest.$ac_ext <<_ACEOF 12596/* confdefs.h. */ 12597_ACEOF 12598cat confdefs.h >>conftest.$ac_ext 12599cat >>conftest.$ac_ext <<_ACEOF 12600/* end confdefs.h. */ 12601$ac_includes_default 12602 typedef long ac__type_sizeof_; 12603int 12604main () 12605{ 12606static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12607test_array [0] = 0 12608 12609 ; 12610 return 0; 12611} 12612_ACEOF 12613rm -f conftest.$ac_objext 12614if { (ac_try="$ac_compile" 12615case "(($ac_try" in 12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12617 *) ac_try_echo=$ac_try;; 12618esac 12619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12620 (eval "$ac_compile") 2>conftest.er1 12621 ac_status=$? 12622 grep -v '^ *+' conftest.er1 >conftest.err 12623 rm -f conftest.er1 12624 cat conftest.err >&5 12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12626 (exit $ac_status); } && { 12627 test -z "$ac_c_werror_flag" || 12628 test ! -s conftest.err 12629 } && test -s conftest.$ac_objext; then 12630 ac_hi=$ac_mid; break 12631else 12632 echo "$as_me: failed program was:" >&5 12633sed 's/^/| /' conftest.$ac_ext >&5 12634 12635 ac_lo=`expr $ac_mid + 1` 12636 if test $ac_lo -le $ac_mid; then 12637 ac_lo= ac_hi= 12638 break 12639 fi 12640 ac_mid=`expr 2 '*' $ac_mid + 1` 12641fi 12642 12643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12644 done 12645else 12646 echo "$as_me: failed program was:" >&5 12647sed 's/^/| /' conftest.$ac_ext >&5 12648 12649 cat >conftest.$ac_ext <<_ACEOF 12650/* confdefs.h. */ 12651_ACEOF 12652cat confdefs.h >>conftest.$ac_ext 12653cat >>conftest.$ac_ext <<_ACEOF 12654/* end confdefs.h. */ 12655$ac_includes_default 12656 typedef long ac__type_sizeof_; 12657int 12658main () 12659{ 12660static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12661test_array [0] = 0 12662 12663 ; 12664 return 0; 12665} 12666_ACEOF 12667rm -f conftest.$ac_objext 12668if { (ac_try="$ac_compile" 12669case "(($ac_try" in 12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12671 *) ac_try_echo=$ac_try;; 12672esac 12673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12674 (eval "$ac_compile") 2>conftest.er1 12675 ac_status=$? 12676 grep -v '^ *+' conftest.er1 >conftest.err 12677 rm -f conftest.er1 12678 cat conftest.err >&5 12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12680 (exit $ac_status); } && { 12681 test -z "$ac_c_werror_flag" || 12682 test ! -s conftest.err 12683 } && test -s conftest.$ac_objext; then 12684 ac_hi=-1 ac_mid=-1 12685 while :; do 12686 cat >conftest.$ac_ext <<_ACEOF 12687/* confdefs.h. */ 12688_ACEOF 12689cat confdefs.h >>conftest.$ac_ext 12690cat >>conftest.$ac_ext <<_ACEOF 12691/* end confdefs.h. */ 12692$ac_includes_default 12693 typedef long ac__type_sizeof_; 12694int 12695main () 12696{ 12697static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12698test_array [0] = 0 12699 12700 ; 12701 return 0; 12702} 12703_ACEOF 12704rm -f conftest.$ac_objext 12705if { (ac_try="$ac_compile" 12706case "(($ac_try" in 12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12708 *) ac_try_echo=$ac_try;; 12709esac 12710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12711 (eval "$ac_compile") 2>conftest.er1 12712 ac_status=$? 12713 grep -v '^ *+' conftest.er1 >conftest.err 12714 rm -f conftest.er1 12715 cat conftest.err >&5 12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12717 (exit $ac_status); } && { 12718 test -z "$ac_c_werror_flag" || 12719 test ! -s conftest.err 12720 } && test -s conftest.$ac_objext; then 12721 ac_lo=$ac_mid; break 12722else 12723 echo "$as_me: failed program was:" >&5 12724sed 's/^/| /' conftest.$ac_ext >&5 12725 12726 ac_hi=`expr '(' $ac_mid ')' - 1` 12727 if test $ac_mid -le $ac_hi; then 12728 ac_lo= ac_hi= 12729 break 12730 fi 12731 ac_mid=`expr 2 '*' $ac_mid` 12732fi 12733 12734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12735 done 12736else 12737 echo "$as_me: failed program was:" >&5 12738sed 's/^/| /' conftest.$ac_ext >&5 12739 12740 ac_lo= ac_hi= 12741fi 12742 12743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12744fi 12745 12746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12747# Binary search between lo and hi bounds. 12748while test "x$ac_lo" != "x$ac_hi"; do 12749 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12750 cat >conftest.$ac_ext <<_ACEOF 12751/* confdefs.h. */ 12752_ACEOF 12753cat confdefs.h >>conftest.$ac_ext 12754cat >>conftest.$ac_ext <<_ACEOF 12755/* end confdefs.h. */ 12756$ac_includes_default 12757 typedef long ac__type_sizeof_; 12758int 12759main () 12760{ 12761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12762test_array [0] = 0 12763 12764 ; 12765 return 0; 12766} 12767_ACEOF 12768rm -f conftest.$ac_objext 12769if { (ac_try="$ac_compile" 12770case "(($ac_try" in 12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12772 *) ac_try_echo=$ac_try;; 12773esac 12774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12775 (eval "$ac_compile") 2>conftest.er1 12776 ac_status=$? 12777 grep -v '^ *+' conftest.er1 >conftest.err 12778 rm -f conftest.er1 12779 cat conftest.err >&5 12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12781 (exit $ac_status); } && { 12782 test -z "$ac_c_werror_flag" || 12783 test ! -s conftest.err 12784 } && test -s conftest.$ac_objext; then 12785 ac_hi=$ac_mid 12786else 12787 echo "$as_me: failed program was:" >&5 12788sed 's/^/| /' conftest.$ac_ext >&5 12789 12790 ac_lo=`expr '(' $ac_mid ')' + 1` 12791fi 12792 12793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12794done 12795case $ac_lo in 12796?*) ac_cv_sizeof_long=$ac_lo;; 12797'') if test "$ac_cv_type_long" = yes; then 12798 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 12799See \`config.log' for more details." >&5 12800echo "$as_me: error: cannot compute sizeof (long) 12801See \`config.log' for more details." >&2;} 12802 { (exit 77); exit 77; }; } 12803 else 12804 ac_cv_sizeof_long=0 12805 fi ;; 12806esac 12807else 12808 cat >conftest.$ac_ext <<_ACEOF 12809/* confdefs.h. */ 12810_ACEOF 12811cat confdefs.h >>conftest.$ac_ext 12812cat >>conftest.$ac_ext <<_ACEOF 12813/* end confdefs.h. */ 12814$ac_includes_default 12815 typedef long ac__type_sizeof_; 12816static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12817static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12818#include <stdio.h> 12819#include <stdlib.h> 12820int 12821main () 12822{ 12823 12824 FILE *f = fopen ("conftest.val", "w"); 12825 if (! f) 12826 return 1; 12827 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12828 { 12829 long int i = longval (); 12830 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12831 return 1; 12832 fprintf (f, "%ld\n", i); 12833 } 12834 else 12835 { 12836 unsigned long int i = ulongval (); 12837 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12838 return 1; 12839 fprintf (f, "%lu\n", i); 12840 } 12841 return ferror (f) || fclose (f) != 0; 12842 12843 ; 12844 return 0; 12845} 12846_ACEOF 12847rm -f conftest$ac_exeext 12848if { (ac_try="$ac_link" 12849case "(($ac_try" in 12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12851 *) ac_try_echo=$ac_try;; 12852esac 12853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12854 (eval "$ac_link") 2>&5 12855 ac_status=$? 12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12858 { (case "(($ac_try" in 12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12860 *) ac_try_echo=$ac_try;; 12861esac 12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12863 (eval "$ac_try") 2>&5 12864 ac_status=$? 12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12866 (exit $ac_status); }; }; then 12867 ac_cv_sizeof_long=`cat conftest.val` 12868else 12869 echo "$as_me: program exited with status $ac_status" >&5 12870echo "$as_me: failed program was:" >&5 12871sed 's/^/| /' conftest.$ac_ext >&5 12872 12873( exit $ac_status ) 12874if test "$ac_cv_type_long" = yes; then 12875 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 12876See \`config.log' for more details." >&5 12877echo "$as_me: error: cannot compute sizeof (long) 12878See \`config.log' for more details." >&2;} 12879 { (exit 77); exit 77; }; } 12880 else 12881 ac_cv_sizeof_long=0 12882 fi 12883fi 12884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12885fi 12886rm -f conftest.val 12887fi 12888{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 12889echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 12890 12891 12892 12893cat >>confdefs.h <<_ACEOF 12894#define SIZEOF_LONG $ac_cv_sizeof_long 12895_ACEOF 12896 12897 12898{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12899echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 12900if test "${ac_cv_header_time+set}" = set; then 12901 echo $ECHO_N "(cached) $ECHO_C" >&6 12902else 12903 cat >conftest.$ac_ext <<_ACEOF 12904/* confdefs.h. */ 12905_ACEOF 12906cat confdefs.h >>conftest.$ac_ext 12907cat >>conftest.$ac_ext <<_ACEOF 12908/* end confdefs.h. */ 12909#include <sys/types.h> 12910#include <sys/time.h> 12911#include <time.h> 12912 12913int 12914main () 12915{ 12916if ((struct tm *) 0) 12917return 0; 12918 ; 12919 return 0; 12920} 12921_ACEOF 12922rm -f conftest.$ac_objext 12923if { (ac_try="$ac_compile" 12924case "(($ac_try" in 12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12926 *) ac_try_echo=$ac_try;; 12927esac 12928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12929 (eval "$ac_compile") 2>conftest.er1 12930 ac_status=$? 12931 grep -v '^ *+' conftest.er1 >conftest.err 12932 rm -f conftest.er1 12933 cat conftest.err >&5 12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12935 (exit $ac_status); } && { 12936 test -z "$ac_c_werror_flag" || 12937 test ! -s conftest.err 12938 } && test -s conftest.$ac_objext; then 12939 ac_cv_header_time=yes 12940else 12941 echo "$as_me: failed program was:" >&5 12942sed 's/^/| /' conftest.$ac_ext >&5 12943 12944 ac_cv_header_time=no 12945fi 12946 12947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12948fi 12949{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12950echo "${ECHO_T}$ac_cv_header_time" >&6; } 12951if test $ac_cv_header_time = yes; then 12952 12953cat >>confdefs.h <<\_ACEOF 12954#define TIME_WITH_SYS_TIME 1 12955_ACEOF 12956 12957fi 12958 12959{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 12960echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 12961if test "${ac_cv_struct_tm+set}" = set; then 12962 echo $ECHO_N "(cached) $ECHO_C" >&6 12963else 12964 cat >conftest.$ac_ext <<_ACEOF 12965/* confdefs.h. */ 12966_ACEOF 12967cat confdefs.h >>conftest.$ac_ext 12968cat >>conftest.$ac_ext <<_ACEOF 12969/* end confdefs.h. */ 12970#include <sys/types.h> 12971#include <time.h> 12972 12973int 12974main () 12975{ 12976struct tm tm; 12977 int *p = &tm.tm_sec; 12978 return !p; 12979 ; 12980 return 0; 12981} 12982_ACEOF 12983rm -f conftest.$ac_objext 12984if { (ac_try="$ac_compile" 12985case "(($ac_try" in 12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12987 *) ac_try_echo=$ac_try;; 12988esac 12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12990 (eval "$ac_compile") 2>conftest.er1 12991 ac_status=$? 12992 grep -v '^ *+' conftest.er1 >conftest.err 12993 rm -f conftest.er1 12994 cat conftest.err >&5 12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12996 (exit $ac_status); } && { 12997 test -z "$ac_c_werror_flag" || 12998 test ! -s conftest.err 12999 } && test -s conftest.$ac_objext; then 13000 ac_cv_struct_tm=time.h 13001else 13002 echo "$as_me: failed program was:" >&5 13003sed 's/^/| /' conftest.$ac_ext >&5 13004 13005 ac_cv_struct_tm=sys/time.h 13006fi 13007 13008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13009fi 13010{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 13011echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 13012if test $ac_cv_struct_tm = sys/time.h; then 13013 13014cat >>confdefs.h <<\_ACEOF 13015#define TM_IN_SYS_TIME 1 13016_ACEOF 13017 13018fi 13019 13020{ echo "$as_me:$LINENO: checking for int8" >&5 13021echo $ECHO_N "checking for int8... $ECHO_C" >&6; } 13022if test "${ac_cv_type_int8+set}" = set; then 13023 echo $ECHO_N "(cached) $ECHO_C" >&6 13024else 13025 cat >conftest.$ac_ext <<_ACEOF 13026/* confdefs.h. */ 13027_ACEOF 13028cat confdefs.h >>conftest.$ac_ext 13029cat >>conftest.$ac_ext <<_ACEOF 13030/* end confdefs.h. */ 13031 13032#if HAVE_INTTYPES_H 13033# include <inttypes.h> 13034#endif 13035 13036 13037typedef int8 ac__type_new_; 13038int 13039main () 13040{ 13041if ((ac__type_new_ *) 0) 13042 return 0; 13043if (sizeof (ac__type_new_)) 13044 return 0; 13045 ; 13046 return 0; 13047} 13048_ACEOF 13049rm -f conftest.$ac_objext 13050if { (ac_try="$ac_compile" 13051case "(($ac_try" in 13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13053 *) ac_try_echo=$ac_try;; 13054esac 13055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13056 (eval "$ac_compile") 2>conftest.er1 13057 ac_status=$? 13058 grep -v '^ *+' conftest.er1 >conftest.err 13059 rm -f conftest.er1 13060 cat conftest.err >&5 13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13062 (exit $ac_status); } && { 13063 test -z "$ac_c_werror_flag" || 13064 test ! -s conftest.err 13065 } && test -s conftest.$ac_objext; then 13066 ac_cv_type_int8=yes 13067else 13068 echo "$as_me: failed program was:" >&5 13069sed 's/^/| /' conftest.$ac_ext >&5 13070 13071 ac_cv_type_int8=no 13072fi 13073 13074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13075fi 13076{ echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5 13077echo "${ECHO_T}$ac_cv_type_int8" >&6; } 13078if test $ac_cv_type_int8 = yes; then 13079 13080cat >>confdefs.h <<_ACEOF 13081#define HAVE_INT8 1 13082_ACEOF 13083 13084 13085fi 13086{ echo "$as_me:$LINENO: checking for int16" >&5 13087echo $ECHO_N "checking for int16... $ECHO_C" >&6; } 13088if test "${ac_cv_type_int16+set}" = set; then 13089 echo $ECHO_N "(cached) $ECHO_C" >&6 13090else 13091 cat >conftest.$ac_ext <<_ACEOF 13092/* confdefs.h. */ 13093_ACEOF 13094cat confdefs.h >>conftest.$ac_ext 13095cat >>conftest.$ac_ext <<_ACEOF 13096/* end confdefs.h. */ 13097 13098#if HAVE_INTTYPES_H 13099# include <inttypes.h> 13100#endif 13101 13102 13103typedef int16 ac__type_new_; 13104int 13105main () 13106{ 13107if ((ac__type_new_ *) 0) 13108 return 0; 13109if (sizeof (ac__type_new_)) 13110 return 0; 13111 ; 13112 return 0; 13113} 13114_ACEOF 13115rm -f conftest.$ac_objext 13116if { (ac_try="$ac_compile" 13117case "(($ac_try" in 13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13119 *) ac_try_echo=$ac_try;; 13120esac 13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13122 (eval "$ac_compile") 2>conftest.er1 13123 ac_status=$? 13124 grep -v '^ *+' conftest.er1 >conftest.err 13125 rm -f conftest.er1 13126 cat conftest.err >&5 13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13128 (exit $ac_status); } && { 13129 test -z "$ac_c_werror_flag" || 13130 test ! -s conftest.err 13131 } && test -s conftest.$ac_objext; then 13132 ac_cv_type_int16=yes 13133else 13134 echo "$as_me: failed program was:" >&5 13135sed 's/^/| /' conftest.$ac_ext >&5 13136 13137 ac_cv_type_int16=no 13138fi 13139 13140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13141fi 13142{ echo "$as_me:$LINENO: result: $ac_cv_type_int16" >&5 13143echo "${ECHO_T}$ac_cv_type_int16" >&6; } 13144if test $ac_cv_type_int16 = yes; then 13145 13146cat >>confdefs.h <<_ACEOF 13147#define HAVE_INT16 1 13148_ACEOF 13149 13150 13151fi 13152{ echo "$as_me:$LINENO: checking for int32" >&5 13153echo $ECHO_N "checking for int32... $ECHO_C" >&6; } 13154if test "${ac_cv_type_int32+set}" = set; then 13155 echo $ECHO_N "(cached) $ECHO_C" >&6 13156else 13157 cat >conftest.$ac_ext <<_ACEOF 13158/* confdefs.h. */ 13159_ACEOF 13160cat confdefs.h >>conftest.$ac_ext 13161cat >>conftest.$ac_ext <<_ACEOF 13162/* end confdefs.h. */ 13163 13164#if HAVE_INTTYPES_H 13165# include <inttypes.h> 13166#endif 13167 13168 13169typedef int32 ac__type_new_; 13170int 13171main () 13172{ 13173if ((ac__type_new_ *) 0) 13174 return 0; 13175if (sizeof (ac__type_new_)) 13176 return 0; 13177 ; 13178 return 0; 13179} 13180_ACEOF 13181rm -f conftest.$ac_objext 13182if { (ac_try="$ac_compile" 13183case "(($ac_try" in 13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13185 *) ac_try_echo=$ac_try;; 13186esac 13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13188 (eval "$ac_compile") 2>conftest.er1 13189 ac_status=$? 13190 grep -v '^ *+' conftest.er1 >conftest.err 13191 rm -f conftest.er1 13192 cat conftest.err >&5 13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13194 (exit $ac_status); } && { 13195 test -z "$ac_c_werror_flag" || 13196 test ! -s conftest.err 13197 } && test -s conftest.$ac_objext; then 13198 ac_cv_type_int32=yes 13199else 13200 echo "$as_me: failed program was:" >&5 13201sed 's/^/| /' conftest.$ac_ext >&5 13202 13203 ac_cv_type_int32=no 13204fi 13205 13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13207fi 13208{ echo "$as_me:$LINENO: result: $ac_cv_type_int32" >&5 13209echo "${ECHO_T}$ac_cv_type_int32" >&6; } 13210if test $ac_cv_type_int32 = yes; then 13211 13212cat >>confdefs.h <<_ACEOF 13213#define HAVE_INT32 1 13214_ACEOF 13215 13216 13217fi 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol 13233do 13234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13235{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13237if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13238 echo $ECHO_N "(cached) $ECHO_C" >&6 13239else 13240 cat >conftest.$ac_ext <<_ACEOF 13241/* confdefs.h. */ 13242_ACEOF 13243cat confdefs.h >>conftest.$ac_ext 13244cat >>conftest.$ac_ext <<_ACEOF 13245/* end confdefs.h. */ 13246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13247 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13248#define $ac_func innocuous_$ac_func 13249 13250/* System header to define __stub macros and hopefully few prototypes, 13251 which can conflict with char $ac_func (); below. 13252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13253 <limits.h> exists even on freestanding compilers. */ 13254 13255#ifdef __STDC__ 13256# include <limits.h> 13257#else 13258# include <assert.h> 13259#endif 13260 13261#undef $ac_func 13262 13263/* Override any GCC internal prototype to avoid an error. 13264 Use char because int might match the return type of a GCC 13265 builtin and then its argument prototype would still apply. */ 13266#ifdef __cplusplus 13267extern "C" 13268#endif 13269char $ac_func (); 13270/* The GNU C library defines this for functions which it implements 13271 to always fail with ENOSYS. Some functions are actually named 13272 something starting with __ and the normal name is an alias. */ 13273#if defined __stub_$ac_func || defined __stub___$ac_func 13274choke me 13275#endif 13276 13277int 13278main () 13279{ 13280return $ac_func (); 13281 ; 13282 return 0; 13283} 13284_ACEOF 13285rm -f conftest.$ac_objext conftest$ac_exeext 13286if { (ac_try="$ac_link" 13287case "(($ac_try" in 13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13289 *) ac_try_echo=$ac_try;; 13290esac 13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13292 (eval "$ac_link") 2>conftest.er1 13293 ac_status=$? 13294 grep -v '^ *+' conftest.er1 >conftest.err 13295 rm -f conftest.er1 13296 cat conftest.err >&5 13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13298 (exit $ac_status); } && { 13299 test -z "$ac_c_werror_flag" || 13300 test ! -s conftest.err 13301 } && test -s conftest$ac_exeext && 13302 $as_test_x conftest$ac_exeext; then 13303 eval "$as_ac_var=yes" 13304else 13305 echo "$as_me: failed program was:" >&5 13306sed 's/^/| /' conftest.$ac_ext >&5 13307 13308 eval "$as_ac_var=no" 13309fi 13310 13311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13312 conftest$ac_exeext conftest.$ac_ext 13313fi 13314ac_res=`eval echo '${'$as_ac_var'}'` 13315 { echo "$as_me:$LINENO: result: $ac_res" >&5 13316echo "${ECHO_T}$ac_res" >&6; } 13317if test `eval echo '${'$as_ac_var'}'` = yes; then 13318 cat >>confdefs.h <<_ACEOF 13319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13320_ACEOF 13321 13322fi 13323done 13324 13325 13326 13327for ac_func in getopt 13328do 13329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13330{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13332if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13333 echo $ECHO_N "(cached) $ECHO_C" >&6 13334else 13335 cat >conftest.$ac_ext <<_ACEOF 13336/* confdefs.h. */ 13337_ACEOF 13338cat confdefs.h >>conftest.$ac_ext 13339cat >>conftest.$ac_ext <<_ACEOF 13340/* end confdefs.h. */ 13341/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13342 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13343#define $ac_func innocuous_$ac_func 13344 13345/* System header to define __stub macros and hopefully few prototypes, 13346 which can conflict with char $ac_func (); below. 13347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13348 <limits.h> exists even on freestanding compilers. */ 13349 13350#ifdef __STDC__ 13351# include <limits.h> 13352#else 13353# include <assert.h> 13354#endif 13355 13356#undef $ac_func 13357 13358/* Override any GCC internal prototype to avoid an error. 13359 Use char because int might match the return type of a GCC 13360 builtin and then its argument prototype would still apply. */ 13361#ifdef __cplusplus 13362extern "C" 13363#endif 13364char $ac_func (); 13365/* The GNU C library defines this for functions which it implements 13366 to always fail with ENOSYS. Some functions are actually named 13367 something starting with __ and the normal name is an alias. */ 13368#if defined __stub_$ac_func || defined __stub___$ac_func 13369choke me 13370#endif 13371 13372int 13373main () 13374{ 13375return $ac_func (); 13376 ; 13377 return 0; 13378} 13379_ACEOF 13380rm -f conftest.$ac_objext conftest$ac_exeext 13381if { (ac_try="$ac_link" 13382case "(($ac_try" in 13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13384 *) ac_try_echo=$ac_try;; 13385esac 13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13387 (eval "$ac_link") 2>conftest.er1 13388 ac_status=$? 13389 grep -v '^ *+' conftest.er1 >conftest.err 13390 rm -f conftest.er1 13391 cat conftest.err >&5 13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13393 (exit $ac_status); } && { 13394 test -z "$ac_c_werror_flag" || 13395 test ! -s conftest.err 13396 } && test -s conftest$ac_exeext && 13397 $as_test_x conftest$ac_exeext; then 13398 eval "$as_ac_var=yes" 13399else 13400 echo "$as_me: failed program was:" >&5 13401sed 's/^/| /' conftest.$ac_ext >&5 13402 13403 eval "$as_ac_var=no" 13404fi 13405 13406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13407 conftest$ac_exeext conftest.$ac_ext 13408fi 13409ac_res=`eval echo '${'$as_ac_var'}'` 13410 { echo "$as_me:$LINENO: result: $ac_res" >&5 13411echo "${ECHO_T}$ac_res" >&6; } 13412if test `eval echo '${'$as_ac_var'}'` = yes; then 13413 cat >>confdefs.h <<_ACEOF 13414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13415_ACEOF 13416 13417else 13418 case " $LIBOBJS " in 13419 *" $ac_func.$ac_objext "* ) ;; 13420 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13421 ;; 13422esac 13423 13424fi 13425done 13426 13427 13428 13429for ac_func in strcasecmp 13430do 13431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13432{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13434if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13435 echo $ECHO_N "(cached) $ECHO_C" >&6 13436else 13437 cat >conftest.$ac_ext <<_ACEOF 13438/* confdefs.h. */ 13439_ACEOF 13440cat confdefs.h >>conftest.$ac_ext 13441cat >>conftest.$ac_ext <<_ACEOF 13442/* end confdefs.h. */ 13443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13444 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13445#define $ac_func innocuous_$ac_func 13446 13447/* System header to define __stub macros and hopefully few prototypes, 13448 which can conflict with char $ac_func (); below. 13449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13450 <limits.h> exists even on freestanding compilers. */ 13451 13452#ifdef __STDC__ 13453# include <limits.h> 13454#else 13455# include <assert.h> 13456#endif 13457 13458#undef $ac_func 13459 13460/* Override any GCC internal prototype to avoid an error. 13461 Use char because int might match the return type of a GCC 13462 builtin and then its argument prototype would still apply. */ 13463#ifdef __cplusplus 13464extern "C" 13465#endif 13466char $ac_func (); 13467/* The GNU C library defines this for functions which it implements 13468 to always fail with ENOSYS. Some functions are actually named 13469 something starting with __ and the normal name is an alias. */ 13470#if defined __stub_$ac_func || defined __stub___$ac_func 13471choke me 13472#endif 13473 13474int 13475main () 13476{ 13477return $ac_func (); 13478 ; 13479 return 0; 13480} 13481_ACEOF 13482rm -f conftest.$ac_objext conftest$ac_exeext 13483if { (ac_try="$ac_link" 13484case "(($ac_try" in 13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13486 *) ac_try_echo=$ac_try;; 13487esac 13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13489 (eval "$ac_link") 2>conftest.er1 13490 ac_status=$? 13491 grep -v '^ *+' conftest.er1 >conftest.err 13492 rm -f conftest.er1 13493 cat conftest.err >&5 13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13495 (exit $ac_status); } && { 13496 test -z "$ac_c_werror_flag" || 13497 test ! -s conftest.err 13498 } && test -s conftest$ac_exeext && 13499 $as_test_x conftest$ac_exeext; then 13500 eval "$as_ac_var=yes" 13501else 13502 echo "$as_me: failed program was:" >&5 13503sed 's/^/| /' conftest.$ac_ext >&5 13504 13505 eval "$as_ac_var=no" 13506fi 13507 13508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13509 conftest$ac_exeext conftest.$ac_ext 13510fi 13511ac_res=`eval echo '${'$as_ac_var'}'` 13512 { echo "$as_me:$LINENO: result: $ac_res" >&5 13513echo "${ECHO_T}$ac_res" >&6; } 13514if test `eval echo '${'$as_ac_var'}'` = yes; then 13515 cat >>confdefs.h <<_ACEOF 13516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13517_ACEOF 13518 13519else 13520 case " $LIBOBJS " in 13521 *" $ac_func.$ac_objext "* ) ;; 13522 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13523 ;; 13524esac 13525 13526fi 13527done 13528 13529 13530 13531for ac_func in strtoul 13532do 13533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13534{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13537 echo $ECHO_N "(cached) $ECHO_C" >&6 13538else 13539 cat >conftest.$ac_ext <<_ACEOF 13540/* confdefs.h. */ 13541_ACEOF 13542cat confdefs.h >>conftest.$ac_ext 13543cat >>conftest.$ac_ext <<_ACEOF 13544/* end confdefs.h. */ 13545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13546 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13547#define $ac_func innocuous_$ac_func 13548 13549/* System header to define __stub macros and hopefully few prototypes, 13550 which can conflict with char $ac_func (); below. 13551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13552 <limits.h> exists even on freestanding compilers. */ 13553 13554#ifdef __STDC__ 13555# include <limits.h> 13556#else 13557# include <assert.h> 13558#endif 13559 13560#undef $ac_func 13561 13562/* Override any GCC internal prototype to avoid an error. 13563 Use char because int might match the return type of a GCC 13564 builtin and then its argument prototype would still apply. */ 13565#ifdef __cplusplus 13566extern "C" 13567#endif 13568char $ac_func (); 13569/* The GNU C library defines this for functions which it implements 13570 to always fail with ENOSYS. Some functions are actually named 13571 something starting with __ and the normal name is an alias. */ 13572#if defined __stub_$ac_func || defined __stub___$ac_func 13573choke me 13574#endif 13575 13576int 13577main () 13578{ 13579return $ac_func (); 13580 ; 13581 return 0; 13582} 13583_ACEOF 13584rm -f conftest.$ac_objext conftest$ac_exeext 13585if { (ac_try="$ac_link" 13586case "(($ac_try" in 13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13588 *) ac_try_echo=$ac_try;; 13589esac 13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13591 (eval "$ac_link") 2>conftest.er1 13592 ac_status=$? 13593 grep -v '^ *+' conftest.er1 >conftest.err 13594 rm -f conftest.er1 13595 cat conftest.err >&5 13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13597 (exit $ac_status); } && { 13598 test -z "$ac_c_werror_flag" || 13599 test ! -s conftest.err 13600 } && test -s conftest$ac_exeext && 13601 $as_test_x conftest$ac_exeext; then 13602 eval "$as_ac_var=yes" 13603else 13604 echo "$as_me: failed program was:" >&5 13605sed 's/^/| /' conftest.$ac_ext >&5 13606 13607 eval "$as_ac_var=no" 13608fi 13609 13610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13611 conftest$ac_exeext conftest.$ac_ext 13612fi 13613ac_res=`eval echo '${'$as_ac_var'}'` 13614 { echo "$as_me:$LINENO: result: $ac_res" >&5 13615echo "${ECHO_T}$ac_res" >&6; } 13616if test `eval echo '${'$as_ac_var'}'` = yes; then 13617 cat >>confdefs.h <<_ACEOF 13618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13619_ACEOF 13620 13621else 13622 case " $LIBOBJS " in 13623 *" $ac_func.$ac_objext "* ) ;; 13624 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13625 ;; 13626esac 13627 13628fi 13629done 13630 13631 13632 13633for ac_func in lfind 13634do 13635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13636{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13639 echo $ECHO_N "(cached) $ECHO_C" >&6 13640else 13641 cat >conftest.$ac_ext <<_ACEOF 13642/* confdefs.h. */ 13643_ACEOF 13644cat confdefs.h >>conftest.$ac_ext 13645cat >>conftest.$ac_ext <<_ACEOF 13646/* end confdefs.h. */ 13647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13648 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13649#define $ac_func innocuous_$ac_func 13650 13651/* System header to define __stub macros and hopefully few prototypes, 13652 which can conflict with char $ac_func (); below. 13653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13654 <limits.h> exists even on freestanding compilers. */ 13655 13656#ifdef __STDC__ 13657# include <limits.h> 13658#else 13659# include <assert.h> 13660#endif 13661 13662#undef $ac_func 13663 13664/* Override any GCC internal prototype to avoid an error. 13665 Use char because int might match the return type of a GCC 13666 builtin and then its argument prototype would still apply. */ 13667#ifdef __cplusplus 13668extern "C" 13669#endif 13670char $ac_func (); 13671/* The GNU C library defines this for functions which it implements 13672 to always fail with ENOSYS. Some functions are actually named 13673 something starting with __ and the normal name is an alias. */ 13674#if defined __stub_$ac_func || defined __stub___$ac_func 13675choke me 13676#endif 13677 13678int 13679main () 13680{ 13681return $ac_func (); 13682 ; 13683 return 0; 13684} 13685_ACEOF 13686rm -f conftest.$ac_objext conftest$ac_exeext 13687if { (ac_try="$ac_link" 13688case "(($ac_try" in 13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13690 *) ac_try_echo=$ac_try;; 13691esac 13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13693 (eval "$ac_link") 2>conftest.er1 13694 ac_status=$? 13695 grep -v '^ *+' conftest.er1 >conftest.err 13696 rm -f conftest.er1 13697 cat conftest.err >&5 13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13699 (exit $ac_status); } && { 13700 test -z "$ac_c_werror_flag" || 13701 test ! -s conftest.err 13702 } && test -s conftest$ac_exeext && 13703 $as_test_x conftest$ac_exeext; then 13704 eval "$as_ac_var=yes" 13705else 13706 echo "$as_me: failed program was:" >&5 13707sed 's/^/| /' conftest.$ac_ext >&5 13708 13709 eval "$as_ac_var=no" 13710fi 13711 13712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13713 conftest$ac_exeext conftest.$ac_ext 13714fi 13715ac_res=`eval echo '${'$as_ac_var'}'` 13716 { echo "$as_me:$LINENO: result: $ac_res" >&5 13717echo "${ECHO_T}$ac_res" >&6; } 13718if test `eval echo '${'$as_ac_var'}'` = yes; then 13719 cat >>confdefs.h <<_ACEOF 13720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13721_ACEOF 13722 13723else 13724 case " $LIBOBJS " in 13725 *" $ac_func.$ac_objext "* ) ;; 13726 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 13727 ;; 13728esac 13729 13730fi 13731done 13732 13733 13734 13735{ echo "$as_me:$LINENO: checking native cpu bit order" >&5 13736echo $ECHO_N "checking native cpu bit order... $ECHO_C" >&6; } 13737case "$target_cpu" in 13738 i*86*) 13739 HOST_FILLORDER=FILLORDER_LSB2MSB 13740 { echo "$as_me:$LINENO: result: lsb2msb" >&5 13741echo "${ECHO_T}lsb2msb" >&6; } 13742 ;; 13743 *) 13744 HOST_FILLORDER=FILLORDER_MSB2LSB 13745 { echo "$as_me:$LINENO: result: msb2lsb" >&5 13746echo "${ECHO_T}msb2lsb" >&6; } 13747 ;; 13748esac 13749 13750cat >>confdefs.h <<_ACEOF 13751#define HOST_FILLORDER $HOST_FILLORDER 13752_ACEOF 13753 13754 13755if test "$ac_cv_c_bigendian" = yes ; then 13756 HOST_BIGENDIAN=1 13757else 13758 HOST_BIGENDIAN=0 13759fi 13760 13761cat >>confdefs.h <<_ACEOF 13762#define HOST_BIGENDIAN $HOST_BIGENDIAN 13763_ACEOF 13764 13765 13766#_POSIX_C_SOURCE=2 13767#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.]) 13768 13769HAVE_IEEEFP=1 13770 13771cat >>confdefs.h <<_ACEOF 13772#define HAVE_IEEEFP $HAVE_IEEEFP 13773_ACEOF 13774 13775 13776 13777# Check whether --enable-rpath was given. 13778if test "${enable_rpath+set}" = set; then 13779 enableval=$enable_rpath; HAVE_RPATH=$enableval 13780else 13781 HAVE_RPATH=no 13782fi 13783 13784 13785 13786if test "$HAVE_RPATH" = "yes"; then 13787 HAVE_RPATH_TRUE= 13788 HAVE_RPATH_FALSE='#' 13789else 13790 HAVE_RPATH_TRUE='#' 13791 HAVE_RPATH_FALSE= 13792fi 13793 13794 13795 13796# Check whether --enable-largefile was given. 13797if test "${enable_largefile+set}" = set; then 13798 enableval=$enable_largefile; 13799fi 13800 13801if test "$enable_largefile" != no; then 13802 13803 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 13804echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 13805if test "${ac_cv_sys_largefile_CC+set}" = set; then 13806 echo $ECHO_N "(cached) $ECHO_C" >&6 13807else 13808 ac_cv_sys_largefile_CC=no 13809 if test "$GCC" != yes; then 13810 ac_save_CC=$CC 13811 while :; do 13812 # IRIX 6.2 and later do not support large files by default, 13813 # so use the C compiler's -n32 option if that helps. 13814 cat >conftest.$ac_ext <<_ACEOF 13815/* confdefs.h. */ 13816_ACEOF 13817cat confdefs.h >>conftest.$ac_ext 13818cat >>conftest.$ac_ext <<_ACEOF 13819/* end confdefs.h. */ 13820#include <sys/types.h> 13821 /* Check that off_t can represent 2**63 - 1 correctly. 13822 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13823 since some C++ compilers masquerading as C compilers 13824 incorrectly reject 9223372036854775807. */ 13825#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13827 && LARGE_OFF_T % 2147483647 == 1) 13828 ? 1 : -1]; 13829int 13830main () 13831{ 13832 13833 ; 13834 return 0; 13835} 13836_ACEOF 13837 rm -f conftest.$ac_objext 13838if { (ac_try="$ac_compile" 13839case "(($ac_try" in 13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13841 *) ac_try_echo=$ac_try;; 13842esac 13843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13844 (eval "$ac_compile") 2>conftest.er1 13845 ac_status=$? 13846 grep -v '^ *+' conftest.er1 >conftest.err 13847 rm -f conftest.er1 13848 cat conftest.err >&5 13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13850 (exit $ac_status); } && { 13851 test -z "$ac_c_werror_flag" || 13852 test ! -s conftest.err 13853 } && test -s conftest.$ac_objext; then 13854 break 13855else 13856 echo "$as_me: failed program was:" >&5 13857sed 's/^/| /' conftest.$ac_ext >&5 13858 13859 13860fi 13861 13862rm -f core conftest.err conftest.$ac_objext 13863 CC="$CC -n32" 13864 rm -f conftest.$ac_objext 13865if { (ac_try="$ac_compile" 13866case "(($ac_try" in 13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13868 *) ac_try_echo=$ac_try;; 13869esac 13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13871 (eval "$ac_compile") 2>conftest.er1 13872 ac_status=$? 13873 grep -v '^ *+' conftest.er1 >conftest.err 13874 rm -f conftest.er1 13875 cat conftest.err >&5 13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13877 (exit $ac_status); } && { 13878 test -z "$ac_c_werror_flag" || 13879 test ! -s conftest.err 13880 } && test -s conftest.$ac_objext; then 13881 ac_cv_sys_largefile_CC=' -n32'; break 13882else 13883 echo "$as_me: failed program was:" >&5 13884sed 's/^/| /' conftest.$ac_ext >&5 13885 13886 13887fi 13888 13889rm -f core conftest.err conftest.$ac_objext 13890 break 13891 done 13892 CC=$ac_save_CC 13893 rm -f conftest.$ac_ext 13894 fi 13895fi 13896{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 13897echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 13898 if test "$ac_cv_sys_largefile_CC" != no; then 13899 CC=$CC$ac_cv_sys_largefile_CC 13900 fi 13901 13902 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13903echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 13904if test "${ac_cv_sys_file_offset_bits+set}" = set; then 13905 echo $ECHO_N "(cached) $ECHO_C" >&6 13906else 13907 while :; do 13908 cat >conftest.$ac_ext <<_ACEOF 13909/* confdefs.h. */ 13910_ACEOF 13911cat confdefs.h >>conftest.$ac_ext 13912cat >>conftest.$ac_ext <<_ACEOF 13913/* end confdefs.h. */ 13914#include <sys/types.h> 13915 /* Check that off_t can represent 2**63 - 1 correctly. 13916 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13917 since some C++ compilers masquerading as C compilers 13918 incorrectly reject 9223372036854775807. */ 13919#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13921 && LARGE_OFF_T % 2147483647 == 1) 13922 ? 1 : -1]; 13923int 13924main () 13925{ 13926 13927 ; 13928 return 0; 13929} 13930_ACEOF 13931rm -f conftest.$ac_objext 13932if { (ac_try="$ac_compile" 13933case "(($ac_try" in 13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13935 *) ac_try_echo=$ac_try;; 13936esac 13937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13938 (eval "$ac_compile") 2>conftest.er1 13939 ac_status=$? 13940 grep -v '^ *+' conftest.er1 >conftest.err 13941 rm -f conftest.er1 13942 cat conftest.err >&5 13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13944 (exit $ac_status); } && { 13945 test -z "$ac_c_werror_flag" || 13946 test ! -s conftest.err 13947 } && test -s conftest.$ac_objext; then 13948 ac_cv_sys_file_offset_bits=no; break 13949else 13950 echo "$as_me: failed program was:" >&5 13951sed 's/^/| /' conftest.$ac_ext >&5 13952 13953 13954fi 13955 13956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13957 cat >conftest.$ac_ext <<_ACEOF 13958/* confdefs.h. */ 13959_ACEOF 13960cat confdefs.h >>conftest.$ac_ext 13961cat >>conftest.$ac_ext <<_ACEOF 13962/* end confdefs.h. */ 13963#define _FILE_OFFSET_BITS 64 13964#include <sys/types.h> 13965 /* Check that off_t can represent 2**63 - 1 correctly. 13966 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13967 since some C++ compilers masquerading as C compilers 13968 incorrectly reject 9223372036854775807. */ 13969#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13971 && LARGE_OFF_T % 2147483647 == 1) 13972 ? 1 : -1]; 13973int 13974main () 13975{ 13976 13977 ; 13978 return 0; 13979} 13980_ACEOF 13981rm -f conftest.$ac_objext 13982if { (ac_try="$ac_compile" 13983case "(($ac_try" in 13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13985 *) ac_try_echo=$ac_try;; 13986esac 13987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13988 (eval "$ac_compile") 2>conftest.er1 13989 ac_status=$? 13990 grep -v '^ *+' conftest.er1 >conftest.err 13991 rm -f conftest.er1 13992 cat conftest.err >&5 13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13994 (exit $ac_status); } && { 13995 test -z "$ac_c_werror_flag" || 13996 test ! -s conftest.err 13997 } && test -s conftest.$ac_objext; then 13998 ac_cv_sys_file_offset_bits=64; break 13999else 14000 echo "$as_me: failed program was:" >&5 14001sed 's/^/| /' conftest.$ac_ext >&5 14002 14003 14004fi 14005 14006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14007 ac_cv_sys_file_offset_bits=unknown 14008 break 14009done 14010fi 14011{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 14012echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 14013case $ac_cv_sys_file_offset_bits in #( 14014 no | unknown) ;; 14015 *) 14016cat >>confdefs.h <<_ACEOF 14017#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14018_ACEOF 14019;; 14020esac 14021rm -f conftest* 14022 if test $ac_cv_sys_file_offset_bits = unknown; then 14023 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 14024echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 14025if test "${ac_cv_sys_large_files+set}" = set; then 14026 echo $ECHO_N "(cached) $ECHO_C" >&6 14027else 14028 while :; do 14029 cat >conftest.$ac_ext <<_ACEOF 14030/* confdefs.h. */ 14031_ACEOF 14032cat confdefs.h >>conftest.$ac_ext 14033cat >>conftest.$ac_ext <<_ACEOF 14034/* end confdefs.h. */ 14035#include <sys/types.h> 14036 /* Check that off_t can represent 2**63 - 1 correctly. 14037 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14038 since some C++ compilers masquerading as C compilers 14039 incorrectly reject 9223372036854775807. */ 14040#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14042 && LARGE_OFF_T % 2147483647 == 1) 14043 ? 1 : -1]; 14044int 14045main () 14046{ 14047 14048 ; 14049 return 0; 14050} 14051_ACEOF 14052rm -f conftest.$ac_objext 14053if { (ac_try="$ac_compile" 14054case "(($ac_try" in 14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14056 *) ac_try_echo=$ac_try;; 14057esac 14058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14059 (eval "$ac_compile") 2>conftest.er1 14060 ac_status=$? 14061 grep -v '^ *+' conftest.er1 >conftest.err 14062 rm -f conftest.er1 14063 cat conftest.err >&5 14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14065 (exit $ac_status); } && { 14066 test -z "$ac_c_werror_flag" || 14067 test ! -s conftest.err 14068 } && test -s conftest.$ac_objext; then 14069 ac_cv_sys_large_files=no; break 14070else 14071 echo "$as_me: failed program was:" >&5 14072sed 's/^/| /' conftest.$ac_ext >&5 14073 14074 14075fi 14076 14077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14078 cat >conftest.$ac_ext <<_ACEOF 14079/* confdefs.h. */ 14080_ACEOF 14081cat confdefs.h >>conftest.$ac_ext 14082cat >>conftest.$ac_ext <<_ACEOF 14083/* end confdefs.h. */ 14084#define _LARGE_FILES 1 14085#include <sys/types.h> 14086 /* Check that off_t can represent 2**63 - 1 correctly. 14087 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14088 since some C++ compilers masquerading as C compilers 14089 incorrectly reject 9223372036854775807. */ 14090#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14092 && LARGE_OFF_T % 2147483647 == 1) 14093 ? 1 : -1]; 14094int 14095main () 14096{ 14097 14098 ; 14099 return 0; 14100} 14101_ACEOF 14102rm -f conftest.$ac_objext 14103if { (ac_try="$ac_compile" 14104case "(($ac_try" in 14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14106 *) ac_try_echo=$ac_try;; 14107esac 14108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14109 (eval "$ac_compile") 2>conftest.er1 14110 ac_status=$? 14111 grep -v '^ *+' conftest.er1 >conftest.err 14112 rm -f conftest.er1 14113 cat conftest.err >&5 14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14115 (exit $ac_status); } && { 14116 test -z "$ac_c_werror_flag" || 14117 test ! -s conftest.err 14118 } && test -s conftest.$ac_objext; then 14119 ac_cv_sys_large_files=1; break 14120else 14121 echo "$as_me: failed program was:" >&5 14122sed 's/^/| /' conftest.$ac_ext >&5 14123 14124 14125fi 14126 14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14128 ac_cv_sys_large_files=unknown 14129 break 14130done 14131fi 14132{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 14133echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } 14134case $ac_cv_sys_large_files in #( 14135 no | unknown) ;; 14136 *) 14137cat >>confdefs.h <<_ACEOF 14138#define _LARGE_FILES $ac_cv_sys_large_files 14139_ACEOF 14140;; 14141esac 14142rm -f conftest* 14143 fi 14144fi 14145 14146 14147 14148LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION} 14149 14150 14151# Check whether --with-docdir was given. 14152if test "${with_docdir+set}" = set; then 14153 withval=$with_docdir; 14154fi 14155 14156if test "x$with_docdir" != "x" ; then 14157 LIBTIFF_DOCDIR=$with_docdir 14158fi 14159 14160 14161 14162 14163# Check whether --enable-ccitt was given. 14164if test "${enable_ccitt+set}" = set; then 14165 enableval=$enable_ccitt; HAVE_CCITT=$enableval 14166else 14167 HAVE_CCITT=yes 14168fi 14169 14170 14171if test "$HAVE_CCITT" = "yes" ; then 14172 14173cat >>confdefs.h <<\_ACEOF 14174#define CCITT_SUPPORT 1 14175_ACEOF 14176 14177fi 14178 14179# Check whether --enable-packbits was given. 14180if test "${enable_packbits+set}" = set; then 14181 enableval=$enable_packbits; HAVE_PACKBITS=$enableval 14182else 14183 HAVE_PACKBITS=yes 14184fi 14185 14186 14187if test "$HAVE_PACKBITS" = "yes" ; then 14188 14189cat >>confdefs.h <<\_ACEOF 14190#define PACKBITS_SUPPORT 1 14191_ACEOF 14192 14193fi 14194 14195# Check whether --enable-lzw was given. 14196if test "${enable_lzw+set}" = set; then 14197 enableval=$enable_lzw; HAVE_LZW=$enableval 14198else 14199 HAVE_LZW=yes 14200fi 14201 14202 14203if test "$HAVE_LZW" = "yes" ; then 14204 14205cat >>confdefs.h <<\_ACEOF 14206#define LZW_SUPPORT 1 14207_ACEOF 14208 14209fi 14210 14211# Check whether --enable-thunder was given. 14212if test "${enable_thunder+set}" = set; then 14213 enableval=$enable_thunder; HAVE_THUNDER=$enableval 14214else 14215 HAVE_THUNDER=yes 14216fi 14217 14218 14219if test "$HAVE_THUNDER" = "yes" ; then 14220 14221cat >>confdefs.h <<\_ACEOF 14222#define THUNDER_SUPPORT 1 14223_ACEOF 14224 14225fi 14226 14227HAVE_NEXT=yes 14228 14229# Check whether --enable-next was given. 14230if test "${enable_next+set}" = set; then 14231 enableval=$enable_next; HAVE_NEXT=$enableval 14232else 14233 HAVE_NEXT=yes 14234fi 14235 14236 14237if test "$HAVE_NEXT" = "yes" ; then 14238 14239cat >>confdefs.h <<\_ACEOF 14240#define NEXT_SUPPORT 1 14241_ACEOF 14242 14243fi 14244 14245# Check whether --enable-logluv was given. 14246if test "${enable_logluv+set}" = set; then 14247 enableval=$enable_logluv; HAVE_LOGLUV=$enableval 14248else 14249 HAVE_LOGLUV=yes 14250fi 14251 14252 14253if test "$HAVE_LOGLUV" = "yes" ; then 14254 14255cat >>confdefs.h <<\_ACEOF 14256#define LOGLUV_SUPPORT 1 14257_ACEOF 14258 14259fi 14260 14261 14262# Check whether --enable-mdi was given. 14263if test "${enable_mdi+set}" = set; then 14264 enableval=$enable_mdi; HAVE_MDI=$enableval 14265else 14266 HAVE_MDI=yes 14267fi 14268 14269 14270if test "$HAVE_MDI" = "yes" ; then 14271 14272cat >>confdefs.h <<\_ACEOF 14273#define MDI_SUPPORT 1 14274_ACEOF 14275 14276fi 14277 14278 14279HAVE_ZLIB=no 14280 14281# Check whether --enable-zlib was given. 14282if test "${enable_zlib+set}" = set; then 14283 enableval=$enable_zlib; 14284fi 14285 14286 14287# Check whether --with-zlib-include-dir was given. 14288if test "${with_zlib_include_dir+set}" = set; then 14289 withval=$with_zlib_include_dir; 14290fi 14291 14292 14293# Check whether --with-zlib-lib-dir was given. 14294if test "${with_zlib_lib_dir+set}" = set; then 14295 withval=$with_zlib_lib_dir; 14296fi 14297 14298 14299if test "x$enable_zlib" != "xno" ; then 14300 14301 if test "x$with_zlib_lib_dir" != "x" ; then 14302 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS" 14303 fi 14304 14305 { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5 14306echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; } 14307if test "${ac_cv_lib_z_inflateEnd+set}" = set; then 14308 echo $ECHO_N "(cached) $ECHO_C" >&6 14309else 14310 ac_check_lib_save_LIBS=$LIBS 14311LIBS="-lz $LIBS" 14312cat >conftest.$ac_ext <<_ACEOF 14313/* confdefs.h. */ 14314_ACEOF 14315cat confdefs.h >>conftest.$ac_ext 14316cat >>conftest.$ac_ext <<_ACEOF 14317/* end confdefs.h. */ 14318 14319/* Override any GCC internal prototype to avoid an error. 14320 Use char because int might match the return type of a GCC 14321 builtin and then its argument prototype would still apply. */ 14322#ifdef __cplusplus 14323extern "C" 14324#endif 14325char inflateEnd (); 14326int 14327main () 14328{ 14329return inflateEnd (); 14330 ; 14331 return 0; 14332} 14333_ACEOF 14334rm -f conftest.$ac_objext conftest$ac_exeext 14335if { (ac_try="$ac_link" 14336case "(($ac_try" in 14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14338 *) ac_try_echo=$ac_try;; 14339esac 14340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14341 (eval "$ac_link") 2>conftest.er1 14342 ac_status=$? 14343 grep -v '^ *+' conftest.er1 >conftest.err 14344 rm -f conftest.er1 14345 cat conftest.err >&5 14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14347 (exit $ac_status); } && { 14348 test -z "$ac_c_werror_flag" || 14349 test ! -s conftest.err 14350 } && test -s conftest$ac_exeext && 14351 $as_test_x conftest$ac_exeext; then 14352 ac_cv_lib_z_inflateEnd=yes 14353else 14354 echo "$as_me: failed program was:" >&5 14355sed 's/^/| /' conftest.$ac_ext >&5 14356 14357 ac_cv_lib_z_inflateEnd=no 14358fi 14359 14360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14361 conftest$ac_exeext conftest.$ac_ext 14362LIBS=$ac_check_lib_save_LIBS 14363fi 14364{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5 14365echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; } 14366if test $ac_cv_lib_z_inflateEnd = yes; then 14367 zlib_lib=yes 14368else 14369 zlib_lib=no 14370fi 14371 14372 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then 14373 { { echo "$as_me:$LINENO: error: Zlib library not found at $with_zlib_lib_dir" >&5 14374echo "$as_me: error: Zlib library not found at $with_zlib_lib_dir" >&2;} 14375 { (exit 1); exit 1; }; } 14376 fi 14377 14378 if test "x$with_zlib_include_dir" != "x" ; then 14379 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS" 14380 fi 14381 if test "${ac_cv_header_zlib_h+set}" = set; then 14382 { echo "$as_me:$LINENO: checking for zlib.h" >&5 14383echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 14384if test "${ac_cv_header_zlib_h+set}" = set; then 14385 echo $ECHO_N "(cached) $ECHO_C" >&6 14386fi 14387{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 14388echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 14389else 14390 # Is the header compilable? 14391{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 14392echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } 14393cat >conftest.$ac_ext <<_ACEOF 14394/* confdefs.h. */ 14395_ACEOF 14396cat confdefs.h >>conftest.$ac_ext 14397cat >>conftest.$ac_ext <<_ACEOF 14398/* end confdefs.h. */ 14399$ac_includes_default 14400#include <zlib.h> 14401_ACEOF 14402rm -f conftest.$ac_objext 14403if { (ac_try="$ac_compile" 14404case "(($ac_try" in 14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14406 *) ac_try_echo=$ac_try;; 14407esac 14408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14409 (eval "$ac_compile") 2>conftest.er1 14410 ac_status=$? 14411 grep -v '^ *+' conftest.er1 >conftest.err 14412 rm -f conftest.er1 14413 cat conftest.err >&5 14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14415 (exit $ac_status); } && { 14416 test -z "$ac_c_werror_flag" || 14417 test ! -s conftest.err 14418 } && test -s conftest.$ac_objext; then 14419 ac_header_compiler=yes 14420else 14421 echo "$as_me: failed program was:" >&5 14422sed 's/^/| /' conftest.$ac_ext >&5 14423 14424 ac_header_compiler=no 14425fi 14426 14427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14429echo "${ECHO_T}$ac_header_compiler" >&6; } 14430 14431# Is the header present? 14432{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 14433echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } 14434cat >conftest.$ac_ext <<_ACEOF 14435/* confdefs.h. */ 14436_ACEOF 14437cat confdefs.h >>conftest.$ac_ext 14438cat >>conftest.$ac_ext <<_ACEOF 14439/* end confdefs.h. */ 14440#include <zlib.h> 14441_ACEOF 14442if { (ac_try="$ac_cpp conftest.$ac_ext" 14443case "(($ac_try" in 14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14445 *) ac_try_echo=$ac_try;; 14446esac 14447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14449 ac_status=$? 14450 grep -v '^ *+' conftest.er1 >conftest.err 14451 rm -f conftest.er1 14452 cat conftest.err >&5 14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14454 (exit $ac_status); } >/dev/null && { 14455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14456 test ! -s conftest.err 14457 }; then 14458 ac_header_preproc=yes 14459else 14460 echo "$as_me: failed program was:" >&5 14461sed 's/^/| /' conftest.$ac_ext >&5 14462 14463 ac_header_preproc=no 14464fi 14465 14466rm -f conftest.err conftest.$ac_ext 14467{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14468echo "${ECHO_T}$ac_header_preproc" >&6; } 14469 14470# So? What about this header? 14471case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14472 yes:no: ) 14473 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 14474echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14475 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 14476echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} 14477 ac_header_preproc=yes 14478 ;; 14479 no:yes:* ) 14480 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 14481echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} 14482 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 14483echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} 14484 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 14485echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} 14486 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 14487echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 14488 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 14489echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} 14490 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 14491echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} 14492 ( cat <<\_ASBOX 14493## -------------------------------------- ## 14494## Report this to [email protected] ## 14495## -------------------------------------- ## 14496_ASBOX 14497 ) | sed "s/^/$as_me: WARNING: /" >&2 14498 ;; 14499esac 14500{ echo "$as_me:$LINENO: checking for zlib.h" >&5 14501echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } 14502if test "${ac_cv_header_zlib_h+set}" = set; then 14503 echo $ECHO_N "(cached) $ECHO_C" >&6 14504else 14505 ac_cv_header_zlib_h=$ac_header_preproc 14506fi 14507{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 14508echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } 14509 14510fi 14511if test $ac_cv_header_zlib_h = yes; then 14512 zlib_h=yes 14513else 14514 zlib_h=no 14515fi 14516 14517 14518 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then 14519 { { echo "$as_me:$LINENO: error: Zlib headers not found at $with_zlib_include_dir" >&5 14520echo "$as_me: error: Zlib headers not found at $with_zlib_include_dir" >&2;} 14521 { (exit 1); exit 1; }; } 14522 fi 14523 14524 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then 14525 HAVE_ZLIB=yes 14526 fi 14527 14528fi 14529 14530if test "$HAVE_ZLIB" = "yes" ; then 14531 14532cat >>confdefs.h <<\_ACEOF 14533#define ZIP_SUPPORT 1 14534_ACEOF 14535 14536 LIBS="-lz $LIBS" 14537 14538 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then 14539 LIBDIR="-R $with_zlib_lib_dir $LIBDIR" 14540 fi 14541 14542fi 14543 14544 14545# Check whether --enable-pixarlog was given. 14546if test "${enable_pixarlog+set}" = set; then 14547 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval 14548else 14549 HAVE_PIXARLOG=yes 14550fi 14551 14552 14553if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then 14554 14555cat >>confdefs.h <<\_ACEOF 14556#define PIXARLOG_SUPPORT 1 14557_ACEOF 14558 14559else 14560 HAVE_PIXARLOG=no 14561fi 14562 14563 14564HAVE_JPEG=no 14565 14566# Check whether --enable-jpeg was given. 14567if test "${enable_jpeg+set}" = set; then 14568 enableval=$enable_jpeg; 14569fi 14570 14571 14572# Check whether --with-jpeg-include-dir was given. 14573if test "${with_jpeg_include_dir+set}" = set; then 14574 withval=$with_jpeg_include_dir; 14575fi 14576 14577 14578# Check whether --with-jpeg-lib-dir was given. 14579if test "${with_jpeg_lib_dir+set}" = set; then 14580 withval=$with_jpeg_lib_dir; 14581fi 14582 14583 14584if test "x$enable_jpeg" != "xno" ; then 14585 14586 if test "x$with_jpeg_lib_dir" != "x" ; then 14587 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS" 14588 14589 fi 14590 14591 { echo "$as_me:$LINENO: checking for jpeg_read_scanlines in -ljpeg" >&5 14592echo $ECHO_N "checking for jpeg_read_scanlines in -ljpeg... $ECHO_C" >&6; } 14593if test "${ac_cv_lib_jpeg_jpeg_read_scanlines+set}" = set; then 14594 echo $ECHO_N "(cached) $ECHO_C" >&6 14595else 14596 ac_check_lib_save_LIBS=$LIBS 14597LIBS="-ljpeg $LIBS" 14598cat >conftest.$ac_ext <<_ACEOF 14599/* confdefs.h. */ 14600_ACEOF 14601cat confdefs.h >>conftest.$ac_ext 14602cat >>conftest.$ac_ext <<_ACEOF 14603/* end confdefs.h. */ 14604 14605/* Override any GCC internal prototype to avoid an error. 14606 Use char because int might match the return type of a GCC 14607 builtin and then its argument prototype would still apply. */ 14608#ifdef __cplusplus 14609extern "C" 14610#endif 14611char jpeg_read_scanlines (); 14612int 14613main () 14614{ 14615return jpeg_read_scanlines (); 14616 ; 14617 return 0; 14618} 14619_ACEOF 14620rm -f conftest.$ac_objext conftest$ac_exeext 14621if { (ac_try="$ac_link" 14622case "(($ac_try" in 14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14624 *) ac_try_echo=$ac_try;; 14625esac 14626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14627 (eval "$ac_link") 2>conftest.er1 14628 ac_status=$? 14629 grep -v '^ *+' conftest.er1 >conftest.err 14630 rm -f conftest.er1 14631 cat conftest.err >&5 14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14633 (exit $ac_status); } && { 14634 test -z "$ac_c_werror_flag" || 14635 test ! -s conftest.err 14636 } && test -s conftest$ac_exeext && 14637 $as_test_x conftest$ac_exeext; then 14638 ac_cv_lib_jpeg_jpeg_read_scanlines=yes 14639else 14640 echo "$as_me: failed program was:" >&5 14641sed 's/^/| /' conftest.$ac_ext >&5 14642 14643 ac_cv_lib_jpeg_jpeg_read_scanlines=no 14644fi 14645 14646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14647 conftest$ac_exeext conftest.$ac_ext 14648LIBS=$ac_check_lib_save_LIBS 14649fi 14650{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5 14651echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; } 14652if test $ac_cv_lib_jpeg_jpeg_read_scanlines = yes; then 14653 jpeg_lib=yes 14654else 14655 jpeg_lib=no 14656fi 14657 14658 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then 14659 { { echo "$as_me:$LINENO: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&5 14660echo "$as_me: error: IJG JPEG library not found at $with_jpeg_lib_dir" >&2;} 14661 { (exit 1); exit 1; }; } 14662 fi 14663 14664 if test "x$with_jpeg_include_dir" != "x" ; then 14665 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS" 14666 fi 14667 if test "${ac_cv_header_jpeglib_h+set}" = set; then 14668 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5 14669echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; } 14670if test "${ac_cv_header_jpeglib_h+set}" = set; then 14671 echo $ECHO_N "(cached) $ECHO_C" >&6 14672fi 14673{ echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 14674echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; } 14675else 14676 # Is the header compilable? 14677{ echo "$as_me:$LINENO: checking jpeglib.h usability" >&5 14678echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; } 14679cat >conftest.$ac_ext <<_ACEOF 14680/* confdefs.h. */ 14681_ACEOF 14682cat confdefs.h >>conftest.$ac_ext 14683cat >>conftest.$ac_ext <<_ACEOF 14684/* end confdefs.h. */ 14685$ac_includes_default 14686#include <jpeglib.h> 14687_ACEOF 14688rm -f conftest.$ac_objext 14689if { (ac_try="$ac_compile" 14690case "(($ac_try" in 14691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14692 *) ac_try_echo=$ac_try;; 14693esac 14694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14695 (eval "$ac_compile") 2>conftest.er1 14696 ac_status=$? 14697 grep -v '^ *+' conftest.er1 >conftest.err 14698 rm -f conftest.er1 14699 cat conftest.err >&5 14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14701 (exit $ac_status); } && { 14702 test -z "$ac_c_werror_flag" || 14703 test ! -s conftest.err 14704 } && test -s conftest.$ac_objext; then 14705 ac_header_compiler=yes 14706else 14707 echo "$as_me: failed program was:" >&5 14708sed 's/^/| /' conftest.$ac_ext >&5 14709 14710 ac_header_compiler=no 14711fi 14712 14713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14715echo "${ECHO_T}$ac_header_compiler" >&6; } 14716 14717# Is the header present? 14718{ echo "$as_me:$LINENO: checking jpeglib.h presence" >&5 14719echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; } 14720cat >conftest.$ac_ext <<_ACEOF 14721/* confdefs.h. */ 14722_ACEOF 14723cat confdefs.h >>conftest.$ac_ext 14724cat >>conftest.$ac_ext <<_ACEOF 14725/* end confdefs.h. */ 14726#include <jpeglib.h> 14727_ACEOF 14728if { (ac_try="$ac_cpp conftest.$ac_ext" 14729case "(($ac_try" in 14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14731 *) ac_try_echo=$ac_try;; 14732esac 14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14735 ac_status=$? 14736 grep -v '^ *+' conftest.er1 >conftest.err 14737 rm -f conftest.er1 14738 cat conftest.err >&5 14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14740 (exit $ac_status); } >/dev/null && { 14741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14742 test ! -s conftest.err 14743 }; then 14744 ac_header_preproc=yes 14745else 14746 echo "$as_me: failed program was:" >&5 14747sed 's/^/| /' conftest.$ac_ext >&5 14748 14749 ac_header_preproc=no 14750fi 14751 14752rm -f conftest.err conftest.$ac_ext 14753{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14754echo "${ECHO_T}$ac_header_preproc" >&6; } 14755 14756# So? What about this header? 14757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14758 yes:no: ) 14759 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5 14760echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14761 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5 14762echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;} 14763 ac_header_preproc=yes 14764 ;; 14765 no:yes:* ) 14766 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5 14767echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;} 14768 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5 14769echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;} 14770 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5 14771echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;} 14772 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5 14773echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;} 14774 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5 14775echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;} 14776 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5 14777echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;} 14778 ( cat <<\_ASBOX 14779## -------------------------------------- ## 14780## Report this to [email protected] ## 14781## -------------------------------------- ## 14782_ASBOX 14783 ) | sed "s/^/$as_me: WARNING: /" >&2 14784 ;; 14785esac 14786{ echo "$as_me:$LINENO: checking for jpeglib.h" >&5 14787echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; } 14788if test "${ac_cv_header_jpeglib_h+set}" = set; then 14789 echo $ECHO_N "(cached) $ECHO_C" >&6 14790else 14791 ac_cv_header_jpeglib_h=$ac_header_preproc 14792fi 14793{ echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 14794echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; } 14795 14796fi 14797if test $ac_cv_header_jpeglib_h = yes; then 14798 jpeg_h=yes 14799else 14800 jpeg_h=no 14801fi 14802 14803 14804 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then 14805 { { echo "$as_me:$LINENO: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&5 14806echo "$as_me: error: IJG JPEG library headers not found at $with_jpeg_include_dir" >&2;} 14807 { (exit 1); exit 1; }; } 14808 fi 14809 14810 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then 14811 HAVE_JPEG=yes 14812 fi 14813 14814fi 14815 14816if test "$HAVE_JPEG" = "yes" ; then 14817 14818cat >>confdefs.h <<\_ACEOF 14819#define JPEG_SUPPORT 1 14820_ACEOF 14821 14822 LIBS="-ljpeg $LIBS" 14823 14824 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then 14825 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR" 14826 fi 14827 14828fi 14829 14830 14831# Check whether --enable-old-jpeg was given. 14832if test "${enable_old_jpeg+set}" = set; then 14833 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} 14834else 14835 HAVE_OJPEG=yes 14836fi 14837 14838 14839if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then 14840 14841cat >>confdefs.h <<\_ACEOF 14842#define OJPEG_SUPPORT 1 14843_ACEOF 14844 14845else 14846 HAVE_OJPEG=no 14847fi 14848 14849 14850HAVE_JBIG=no 14851 14852# Check whether --enable-jbig was given. 14853if test "${enable_jbig+set}" = set; then 14854 enableval=$enable_jbig; 14855fi 14856 14857 14858# Check whether --with-jbig-include-dir was given. 14859if test "${with_jbig_include_dir+set}" = set; then 14860 withval=$with_jbig_include_dir; 14861fi 14862 14863 14864# Check whether --with-jbig-lib-dir was given. 14865if test "${with_jbig_lib_dir+set}" = set; then 14866 withval=$with_jbig_lib_dir; 14867fi 14868 14869 14870if test "x$enable_jbig" != "xno" ; then 14871 14872 if test "x$with_jbig_lib_dir" != "x" ; then 14873 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS" 14874 14875 fi 14876 14877 { echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5 14878echo $ECHO_N "checking for jbg_dec_init in -ljbig... $ECHO_C" >&6; } 14879if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then 14880 echo $ECHO_N "(cached) $ECHO_C" >&6 14881else 14882 ac_check_lib_save_LIBS=$LIBS 14883LIBS="-ljbig $LIBS" 14884cat >conftest.$ac_ext <<_ACEOF 14885/* confdefs.h. */ 14886_ACEOF 14887cat confdefs.h >>conftest.$ac_ext 14888cat >>conftest.$ac_ext <<_ACEOF 14889/* end confdefs.h. */ 14890 14891/* Override any GCC internal prototype to avoid an error. 14892 Use char because int might match the return type of a GCC 14893 builtin and then its argument prototype would still apply. */ 14894#ifdef __cplusplus 14895extern "C" 14896#endif 14897char jbg_dec_init (); 14898int 14899main () 14900{ 14901return jbg_dec_init (); 14902 ; 14903 return 0; 14904} 14905_ACEOF 14906rm -f conftest.$ac_objext conftest$ac_exeext 14907if { (ac_try="$ac_link" 14908case "(($ac_try" in 14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14910 *) ac_try_echo=$ac_try;; 14911esac 14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14913 (eval "$ac_link") 2>conftest.er1 14914 ac_status=$? 14915 grep -v '^ *+' conftest.er1 >conftest.err 14916 rm -f conftest.er1 14917 cat conftest.err >&5 14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14919 (exit $ac_status); } && { 14920 test -z "$ac_c_werror_flag" || 14921 test ! -s conftest.err 14922 } && test -s conftest$ac_exeext && 14923 $as_test_x conftest$ac_exeext; then 14924 ac_cv_lib_jbig_jbg_dec_init=yes 14925else 14926 echo "$as_me: failed program was:" >&5 14927sed 's/^/| /' conftest.$ac_ext >&5 14928 14929 ac_cv_lib_jbig_jbg_dec_init=no 14930fi 14931 14932rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14933 conftest$ac_exeext conftest.$ac_ext 14934LIBS=$ac_check_lib_save_LIBS 14935fi 14936{ echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 14937echo "${ECHO_T}$ac_cv_lib_jbig_jbg_dec_init" >&6; } 14938if test $ac_cv_lib_jbig_jbg_dec_init = yes; then 14939 jbig_lib=yes 14940else 14941 jbig_lib=no 14942fi 14943 14944 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then 14945 { { echo "$as_me:$LINENO: error: JBIG-KIT library not found at $with_jbig_lib_dir" >&5 14946echo "$as_me: error: JBIG-KIT library not found at $with_jbig_lib_dir" >&2;} 14947 { (exit 1); exit 1; }; } 14948 fi 14949 14950 if test "x$with_jbig_include_dir" != "x" ; then 14951 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS" 14952 fi 14953 if test "${ac_cv_header_jbig_h+set}" = set; then 14954 { echo "$as_me:$LINENO: checking for jbig.h" >&5 14955echo $ECHO_N "checking for jbig.h... $ECHO_C" >&6; } 14956if test "${ac_cv_header_jbig_h+set}" = set; then 14957 echo $ECHO_N "(cached) $ECHO_C" >&6 14958fi 14959{ echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5 14960echo "${ECHO_T}$ac_cv_header_jbig_h" >&6; } 14961else 14962 # Is the header compilable? 14963{ echo "$as_me:$LINENO: checking jbig.h usability" >&5 14964echo $ECHO_N "checking jbig.h usability... $ECHO_C" >&6; } 14965cat >conftest.$ac_ext <<_ACEOF 14966/* confdefs.h. */ 14967_ACEOF 14968cat confdefs.h >>conftest.$ac_ext 14969cat >>conftest.$ac_ext <<_ACEOF 14970/* end confdefs.h. */ 14971$ac_includes_default 14972#include <jbig.h> 14973_ACEOF 14974rm -f conftest.$ac_objext 14975if { (ac_try="$ac_compile" 14976case "(($ac_try" in 14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14978 *) ac_try_echo=$ac_try;; 14979esac 14980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14981 (eval "$ac_compile") 2>conftest.er1 14982 ac_status=$? 14983 grep -v '^ *+' conftest.er1 >conftest.err 14984 rm -f conftest.er1 14985 cat conftest.err >&5 14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14987 (exit $ac_status); } && { 14988 test -z "$ac_c_werror_flag" || 14989 test ! -s conftest.err 14990 } && test -s conftest.$ac_objext; then 14991 ac_header_compiler=yes 14992else 14993 echo "$as_me: failed program was:" >&5 14994sed 's/^/| /' conftest.$ac_ext >&5 14995 14996 ac_header_compiler=no 14997fi 14998 14999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15000{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15001echo "${ECHO_T}$ac_header_compiler" >&6; } 15002 15003# Is the header present? 15004{ echo "$as_me:$LINENO: checking jbig.h presence" >&5 15005echo $ECHO_N "checking jbig.h presence... $ECHO_C" >&6; } 15006cat >conftest.$ac_ext <<_ACEOF 15007/* confdefs.h. */ 15008_ACEOF 15009cat confdefs.h >>conftest.$ac_ext 15010cat >>conftest.$ac_ext <<_ACEOF 15011/* end confdefs.h. */ 15012#include <jbig.h> 15013_ACEOF 15014if { (ac_try="$ac_cpp conftest.$ac_ext" 15015case "(($ac_try" in 15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15017 *) ac_try_echo=$ac_try;; 15018esac 15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15021 ac_status=$? 15022 grep -v '^ *+' conftest.er1 >conftest.err 15023 rm -f conftest.er1 15024 cat conftest.err >&5 15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15026 (exit $ac_status); } >/dev/null && { 15027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15028 test ! -s conftest.err 15029 }; then 15030 ac_header_preproc=yes 15031else 15032 echo "$as_me: failed program was:" >&5 15033sed 's/^/| /' conftest.$ac_ext >&5 15034 15035 ac_header_preproc=no 15036fi 15037 15038rm -f conftest.err conftest.$ac_ext 15039{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15040echo "${ECHO_T}$ac_header_preproc" >&6; } 15041 15042# So? What about this header? 15043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15044 yes:no: ) 15045 { echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5 15046echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15047 { echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5 15048echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;} 15049 ac_header_preproc=yes 15050 ;; 15051 no:yes:* ) 15052 { echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5 15053echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;} 15054 { echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5 15055echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;} 15056 { echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5 15057echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;} 15058 { echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5 15059echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;} 15060 { echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5 15061echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;} 15062 { echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5 15063echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;} 15064 ( cat <<\_ASBOX 15065## -------------------------------------- ## 15066## Report this to [email protected] ## 15067## -------------------------------------- ## 15068_ASBOX 15069 ) | sed "s/^/$as_me: WARNING: /" >&2 15070 ;; 15071esac 15072{ echo "$as_me:$LINENO: checking for jbig.h" >&5 15073echo $ECHO_N "checking for jbig.h... $ECHO_C" >&6; } 15074if test "${ac_cv_header_jbig_h+set}" = set; then 15075 echo $ECHO_N "(cached) $ECHO_C" >&6 15076else 15077 ac_cv_header_jbig_h=$ac_header_preproc 15078fi 15079{ echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5 15080echo "${ECHO_T}$ac_cv_header_jbig_h" >&6; } 15081 15082fi 15083if test $ac_cv_header_jbig_h = yes; then 15084 jbig_h=yes 15085else 15086 jbig_h=no 15087fi 15088 15089 15090 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then 15091 { { echo "$as_me:$LINENO: error: JBIG-KIT library headers not found at $with_jbig_include_dir" >&5 15092echo "$as_me: error: JBIG-KIT library headers not found at $with_jbig_include_dir" >&2;} 15093 { (exit 1); exit 1; }; } 15094 fi 15095 15096 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then 15097 HAVE_JBIG=yes 15098 fi 15099 15100fi 15101 15102if test "$HAVE_JBIG" = "yes" ; then 15103 15104cat >>confdefs.h <<\_ACEOF 15105#define JBIG_SUPPORT 1 15106_ACEOF 15107 15108 LIBS="-ljbig $LIBS" 15109 15110 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then 15111 LIBDIR="-R $with_jbig_lib_dir $LIBDIR" 15112 fi 15113 15114 # Older versions of jbigkit lack jbg_newlen 15115 15116for ac_func in jbg_newlen 15117do 15118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15119{ echo "$as_me:$LINENO: checking for $ac_func" >&5 15120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 15121if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 15122 echo $ECHO_N "(cached) $ECHO_C" >&6 15123else 15124 cat >conftest.$ac_ext <<_ACEOF 15125/* confdefs.h. */ 15126_ACEOF 15127cat confdefs.h >>conftest.$ac_ext 15128cat >>conftest.$ac_ext <<_ACEOF 15129/* end confdefs.h. */ 15130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15131 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15132#define $ac_func innocuous_$ac_func 15133 15134/* System header to define __stub macros and hopefully few prototypes, 15135 which can conflict with char $ac_func (); below. 15136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15137 <limits.h> exists even on freestanding compilers. */ 15138 15139#ifdef __STDC__ 15140# include <limits.h> 15141#else 15142# include <assert.h> 15143#endif 15144 15145#undef $ac_func 15146 15147/* Override any GCC internal prototype to avoid an error. 15148 Use char because int might match the return type of a GCC 15149 builtin and then its argument prototype would still apply. */ 15150#ifdef __cplusplus 15151extern "C" 15152#endif 15153char $ac_func (); 15154/* The GNU C library defines this for functions which it implements 15155 to always fail with ENOSYS. Some functions are actually named 15156 something starting with __ and the normal name is an alias. */ 15157#if defined __stub_$ac_func || defined __stub___$ac_func 15158choke me 15159#endif 15160 15161int 15162main () 15163{ 15164return $ac_func (); 15165 ; 15166 return 0; 15167} 15168_ACEOF 15169rm -f conftest.$ac_objext conftest$ac_exeext 15170if { (ac_try="$ac_link" 15171case "(($ac_try" in 15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15173 *) ac_try_echo=$ac_try;; 15174esac 15175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15176 (eval "$ac_link") 2>conftest.er1 15177 ac_status=$? 15178 grep -v '^ *+' conftest.er1 >conftest.err 15179 rm -f conftest.er1 15180 cat conftest.err >&5 15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15182 (exit $ac_status); } && { 15183 test -z "$ac_c_werror_flag" || 15184 test ! -s conftest.err 15185 } && test -s conftest$ac_exeext && 15186 $as_test_x conftest$ac_exeext; then 15187 eval "$as_ac_var=yes" 15188else 15189 echo "$as_me: failed program was:" >&5 15190sed 's/^/| /' conftest.$ac_ext >&5 15191 15192 eval "$as_ac_var=no" 15193fi 15194 15195rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15196 conftest$ac_exeext conftest.$ac_ext 15197fi 15198ac_res=`eval echo '${'$as_ac_var'}'` 15199 { echo "$as_me:$LINENO: result: $ac_res" >&5 15200echo "${ECHO_T}$ac_res" >&6; } 15201if test `eval echo '${'$as_ac_var'}'` = yes; then 15202 cat >>confdefs.h <<_ACEOF 15203#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15204_ACEOF 15205 15206fi 15207done 15208 15209 15210fi 15211 15212 15213# Check whether --enable-cxx was given. 15214if test "${enable_cxx+set}" = set; then 15215 enableval=$enable_cxx; HAVE_CXX=$enableval 15216else 15217 HAVE_CXX=yes 15218fi 15219 15220 15221if test "$HAVE_CXX" = "yes" ; then 15222 15223cat >>confdefs.h <<\_ACEOF 15224#define CXX_SUPPORT 1 15225_ACEOF 15226 15227else 15228 HAVE_CXX=no 15229fi 15230 15231 15232 15233if test "$HAVE_CXX" = "yes"; then 15234 HAVE_CXX_TRUE= 15235 HAVE_CXX_FALSE='#' 15236else 15237 HAVE_CXX_TRUE='#' 15238 HAVE_CXX_FALSE= 15239fi 15240 15241 15242 15243HAVE_OPENGL=no 15244 15245{ echo "$as_me:$LINENO: checking for X" >&5 15246echo $ECHO_N "checking for X... $ECHO_C" >&6; } 15247 15248 15249# Check whether --with-x was given. 15250if test "${with_x+set}" = set; then 15251 withval=$with_x; 15252fi 15253 15254# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 15255if test "x$with_x" = xno; then 15256 # The user explicitly disabled X. 15257 have_x=disabled 15258else 15259 case $x_includes,$x_libraries in #( 15260 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 15261echo "$as_me: error: Cannot use X directory names containing '" >&2;} 15262 { (exit 1); exit 1; }; };; #( 15263 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 15264 echo $ECHO_N "(cached) $ECHO_C" >&6 15265else 15266 # One or both of the vars are not set, and there is no cached value. 15267ac_x_includes=no ac_x_libraries=no 15268rm -f -r conftest.dir 15269if mkdir conftest.dir; then 15270 cd conftest.dir 15271 cat >Imakefile <<'_ACEOF' 15272incroot: 15273 @echo incroot='${INCROOT}' 15274usrlibdir: 15275 @echo usrlibdir='${USRLIBDIR}' 15276libdir: 15277 @echo libdir='${LIBDIR}' 15278_ACEOF 15279 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 15280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 15281 for ac_var in incroot usrlibdir libdir; do 15282 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 15283 done 15284 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 15285 for ac_extension in a so sl; do 15286 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 15287 test -f "$ac_im_libdir/libX11.$ac_extension"; then 15288 ac_im_usrlibdir=$ac_im_libdir; break 15289 fi 15290 done 15291 # Screen out bogus values from the imake configuration. They are 15292 # bogus both because they are the default anyway, and because 15293 # using them would break gcc on systems where it needs fixed includes. 15294 case $ac_im_incroot in 15295 /usr/include) ac_x_includes= ;; 15296 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 15297 esac 15298 case $ac_im_usrlibdir in 15299 /usr/lib | /lib) ;; 15300 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 15301 esac 15302 fi 15303 cd .. 15304 rm -f -r conftest.dir 15305fi 15306 15307# Standard set of common directories for X headers. 15308# Check X11 before X11Rn because it is often a symlink to the current release. 15309ac_x_header_dirs=' 15310/usr/X11/include 15311/usr/X11R6/include 15312/usr/X11R5/include 15313/usr/X11R4/include 15314 15315/usr/include/X11 15316/usr/include/X11R6 15317/usr/include/X11R5 15318/usr/include/X11R4 15319 15320/usr/local/X11/include 15321/usr/local/X11R6/include 15322/usr/local/X11R5/include 15323/usr/local/X11R4/include 15324 15325/usr/local/include/X11 15326/usr/local/include/X11R6 15327/usr/local/include/X11R5 15328/usr/local/include/X11R4 15329 15330/usr/X386/include 15331/usr/x386/include 15332/usr/XFree86/include/X11 15333 15334/usr/include 15335/usr/local/include 15336/usr/unsupported/include 15337/usr/athena/include 15338/usr/local/x11r5/include 15339/usr/lpp/Xamples/include 15340 15341/usr/openwin/include 15342/usr/openwin/share/include' 15343 15344if test "$ac_x_includes" = no; then 15345 # Guess where to find include files, by looking for Xlib.h. 15346 # First, try using that file with no special directory specified. 15347 cat >conftest.$ac_ext <<_ACEOF 15348/* confdefs.h. */ 15349_ACEOF 15350cat confdefs.h >>conftest.$ac_ext 15351cat >>conftest.$ac_ext <<_ACEOF 15352/* end confdefs.h. */ 15353#include <X11/Xlib.h> 15354_ACEOF 15355if { (ac_try="$ac_cpp conftest.$ac_ext" 15356case "(($ac_try" in 15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15358 *) ac_try_echo=$ac_try;; 15359esac 15360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15362 ac_status=$? 15363 grep -v '^ *+' conftest.er1 >conftest.err 15364 rm -f conftest.er1 15365 cat conftest.err >&5 15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15367 (exit $ac_status); } >/dev/null && { 15368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 15369 test ! -s conftest.err 15370 }; then 15371 # We can compile using X headers with no special include directory. 15372ac_x_includes= 15373else 15374 echo "$as_me: failed program was:" >&5 15375sed 's/^/| /' conftest.$ac_ext >&5 15376 15377 for ac_dir in $ac_x_header_dirs; do 15378 if test -r "$ac_dir/X11/Xlib.h"; then 15379 ac_x_includes=$ac_dir 15380 break 15381 fi 15382done 15383fi 15384 15385rm -f conftest.err conftest.$ac_ext 15386fi # $ac_x_includes = no 15387 15388if test "$ac_x_libraries" = no; then 15389 # Check for the libraries. 15390 # See if we find them without any special options. 15391 # Don't add to $LIBS permanently. 15392 ac_save_LIBS=$LIBS 15393 LIBS="-lX11 $LIBS" 15394 cat >conftest.$ac_ext <<_ACEOF 15395/* confdefs.h. */ 15396_ACEOF 15397cat confdefs.h >>conftest.$ac_ext 15398cat >>conftest.$ac_ext <<_ACEOF 15399/* end confdefs.h. */ 15400#include <X11/Xlib.h> 15401int 15402main () 15403{ 15404XrmInitialize () 15405 ; 15406 return 0; 15407} 15408_ACEOF 15409rm -f conftest.$ac_objext conftest$ac_exeext 15410if { (ac_try="$ac_link" 15411case "(($ac_try" in 15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15413 *) ac_try_echo=$ac_try;; 15414esac 15415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15416 (eval "$ac_link") 2>conftest.er1 15417 ac_status=$? 15418 grep -v '^ *+' conftest.er1 >conftest.err 15419 rm -f conftest.er1 15420 cat conftest.err >&5 15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15422 (exit $ac_status); } && { 15423 test -z "$ac_c_werror_flag" || 15424 test ! -s conftest.err 15425 } && test -s conftest$ac_exeext && 15426 $as_test_x conftest$ac_exeext; then 15427 LIBS=$ac_save_LIBS 15428# We can link X programs with no special library path. 15429ac_x_libraries= 15430else 15431 echo "$as_me: failed program was:" >&5 15432sed 's/^/| /' conftest.$ac_ext >&5 15433 15434 LIBS=$ac_save_LIBS 15435for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 15436do 15437 # Don't even attempt the hair of trying to link an X program! 15438 for ac_extension in a so sl; do 15439 if test -r "$ac_dir/libX11.$ac_extension"; then 15440 ac_x_libraries=$ac_dir 15441 break 2 15442 fi 15443 done 15444done 15445fi 15446 15447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15448 conftest$ac_exeext conftest.$ac_ext 15449fi # $ac_x_libraries = no 15450 15451case $ac_x_includes,$ac_x_libraries in #( 15452 no,* | *,no | *\'*) 15453 # Didn't find X, or a directory has "'" in its name. 15454 ac_cv_have_x="have_x=no";; #( 15455 *) 15456 # Record where we found X for the cache. 15457 ac_cv_have_x="have_x=yes\ 15458 ac_x_includes='$ac_x_includes'\ 15459 ac_x_libraries='$ac_x_libraries'" 15460esac 15461fi 15462;; #( 15463 *) have_x=yes;; 15464 esac 15465 eval "$ac_cv_have_x" 15466fi # $with_x != no 15467 15468if test "$have_x" != yes; then 15469 { echo "$as_me:$LINENO: result: $have_x" >&5 15470echo "${ECHO_T}$have_x" >&6; } 15471 no_x=yes 15472else 15473 # If each of the values was on the command line, it overrides each guess. 15474 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 15475 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 15476 # Update the cache value to reflect the command line values. 15477 ac_cv_have_x="have_x=yes\ 15478 ac_x_includes='$x_includes'\ 15479 ac_x_libraries='$x_libraries'" 15480 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 15481echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 15482fi 15483 15484if test "$no_x" = yes; then 15485 # Not all programs may use this symbol, but it does not hurt to define it. 15486 15487cat >>confdefs.h <<\_ACEOF 15488#define X_DISPLAY_MISSING 1 15489_ACEOF 15490 15491 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 15492else 15493 if test -n "$x_includes"; then 15494 X_CFLAGS="$X_CFLAGS -I$x_includes" 15495 fi 15496 15497 # It would also be nice to do this for all -L options, not just this one. 15498 if test -n "$x_libraries"; then 15499 X_LIBS="$X_LIBS -L$x_libraries" 15500 # For Solaris; some versions of Sun CC require a space after -R and 15501 # others require no space. Words are not sufficient . . . . 15502 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 15503echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 15504 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 15505 ac_xsave_c_werror_flag=$ac_c_werror_flag 15506 ac_c_werror_flag=yes 15507 cat >conftest.$ac_ext <<_ACEOF 15508/* confdefs.h. */ 15509_ACEOF 15510cat confdefs.h >>conftest.$ac_ext 15511cat >>conftest.$ac_ext <<_ACEOF 15512/* end confdefs.h. */ 15513 15514int 15515main () 15516{ 15517 15518 ; 15519 return 0; 15520} 15521_ACEOF 15522rm -f conftest.$ac_objext conftest$ac_exeext 15523if { (ac_try="$ac_link" 15524case "(($ac_try" in 15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15526 *) ac_try_echo=$ac_try;; 15527esac 15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15529 (eval "$ac_link") 2>conftest.er1 15530 ac_status=$? 15531 grep -v '^ *+' conftest.er1 >conftest.err 15532 rm -f conftest.er1 15533 cat conftest.err >&5 15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15535 (exit $ac_status); } && { 15536 test -z "$ac_c_werror_flag" || 15537 test ! -s conftest.err 15538 } && test -s conftest$ac_exeext && 15539 $as_test_x conftest$ac_exeext; then 15540 { echo "$as_me:$LINENO: result: no" >&5 15541echo "${ECHO_T}no" >&6; } 15542 X_LIBS="$X_LIBS -R$x_libraries" 15543else 15544 echo "$as_me: failed program was:" >&5 15545sed 's/^/| /' conftest.$ac_ext >&5 15546 15547 LIBS="$ac_xsave_LIBS -R $x_libraries" 15548 cat >conftest.$ac_ext <<_ACEOF 15549/* confdefs.h. */ 15550_ACEOF 15551cat confdefs.h >>conftest.$ac_ext 15552cat >>conftest.$ac_ext <<_ACEOF 15553/* end confdefs.h. */ 15554 15555int 15556main () 15557{ 15558 15559 ; 15560 return 0; 15561} 15562_ACEOF 15563rm -f conftest.$ac_objext conftest$ac_exeext 15564if { (ac_try="$ac_link" 15565case "(($ac_try" in 15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15567 *) ac_try_echo=$ac_try;; 15568esac 15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15570 (eval "$ac_link") 2>conftest.er1 15571 ac_status=$? 15572 grep -v '^ *+' conftest.er1 >conftest.err 15573 rm -f conftest.er1 15574 cat conftest.err >&5 15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15576 (exit $ac_status); } && { 15577 test -z "$ac_c_werror_flag" || 15578 test ! -s conftest.err 15579 } && test -s conftest$ac_exeext && 15580 $as_test_x conftest$ac_exeext; then 15581 { echo "$as_me:$LINENO: result: yes" >&5 15582echo "${ECHO_T}yes" >&6; } 15583 X_LIBS="$X_LIBS -R $x_libraries" 15584else 15585 echo "$as_me: failed program was:" >&5 15586sed 's/^/| /' conftest.$ac_ext >&5 15587 15588 { echo "$as_me:$LINENO: result: neither works" >&5 15589echo "${ECHO_T}neither works" >&6; } 15590fi 15591 15592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15593 conftest$ac_exeext conftest.$ac_ext 15594fi 15595 15596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15597 conftest$ac_exeext conftest.$ac_ext 15598 ac_c_werror_flag=$ac_xsave_c_werror_flag 15599 LIBS=$ac_xsave_LIBS 15600 fi 15601 15602 # Check for system-dependent libraries X programs must link with. 15603 # Do this before checking for the system-independent R6 libraries 15604 # (-lICE), since we may need -lsocket or whatever for X linking. 15605 15606 if test "$ISC" = yes; then 15607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 15608 else 15609 # Martyn Johnson says this is needed for Ultrix, if the X 15610 # libraries were built with DECnet support. And Karl Berry says 15611 # the Alpha needs dnet_stub (dnet does not exist). 15612 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 15613 cat >conftest.$ac_ext <<_ACEOF 15614/* confdefs.h. */ 15615_ACEOF 15616cat confdefs.h >>conftest.$ac_ext 15617cat >>conftest.$ac_ext <<_ACEOF 15618/* end confdefs.h. */ 15619 15620/* Override any GCC internal prototype to avoid an error. 15621 Use char because int might match the return type of a GCC 15622 builtin and then its argument prototype would still apply. */ 15623#ifdef __cplusplus 15624extern "C" 15625#endif 15626char XOpenDisplay (); 15627int 15628main () 15629{ 15630return XOpenDisplay (); 15631 ; 15632 return 0; 15633} 15634_ACEOF 15635rm -f conftest.$ac_objext conftest$ac_exeext 15636if { (ac_try="$ac_link" 15637case "(($ac_try" in 15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15639 *) ac_try_echo=$ac_try;; 15640esac 15641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15642 (eval "$ac_link") 2>conftest.er1 15643 ac_status=$? 15644 grep -v '^ *+' conftest.er1 >conftest.err 15645 rm -f conftest.er1 15646 cat conftest.err >&5 15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15648 (exit $ac_status); } && { 15649 test -z "$ac_c_werror_flag" || 15650 test ! -s conftest.err 15651 } && test -s conftest$ac_exeext && 15652 $as_test_x conftest$ac_exeext; then 15653 : 15654else 15655 echo "$as_me: failed program was:" >&5 15656sed 's/^/| /' conftest.$ac_ext >&5 15657 15658 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 15659echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 15660if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 15661 echo $ECHO_N "(cached) $ECHO_C" >&6 15662else 15663 ac_check_lib_save_LIBS=$LIBS 15664LIBS="-ldnet $LIBS" 15665cat >conftest.$ac_ext <<_ACEOF 15666/* confdefs.h. */ 15667_ACEOF 15668cat confdefs.h >>conftest.$ac_ext 15669cat >>conftest.$ac_ext <<_ACEOF 15670/* end confdefs.h. */ 15671 15672/* Override any GCC internal prototype to avoid an error. 15673 Use char because int might match the return type of a GCC 15674 builtin and then its argument prototype would still apply. */ 15675#ifdef __cplusplus 15676extern "C" 15677#endif 15678char dnet_ntoa (); 15679int 15680main () 15681{ 15682return dnet_ntoa (); 15683 ; 15684 return 0; 15685} 15686_ACEOF 15687rm -f conftest.$ac_objext conftest$ac_exeext 15688if { (ac_try="$ac_link" 15689case "(($ac_try" in 15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15691 *) ac_try_echo=$ac_try;; 15692esac 15693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15694 (eval "$ac_link") 2>conftest.er1 15695 ac_status=$? 15696 grep -v '^ *+' conftest.er1 >conftest.err 15697 rm -f conftest.er1 15698 cat conftest.err >&5 15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15700 (exit $ac_status); } && { 15701 test -z "$ac_c_werror_flag" || 15702 test ! -s conftest.err 15703 } && test -s conftest$ac_exeext && 15704 $as_test_x conftest$ac_exeext; then 15705 ac_cv_lib_dnet_dnet_ntoa=yes 15706else 15707 echo "$as_me: failed program was:" >&5 15708sed 's/^/| /' conftest.$ac_ext >&5 15709 15710 ac_cv_lib_dnet_dnet_ntoa=no 15711fi 15712 15713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15714 conftest$ac_exeext conftest.$ac_ext 15715LIBS=$ac_check_lib_save_LIBS 15716fi 15717{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 15718echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 15719if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 15720 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 15721fi 15722 15723 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 15724 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 15725echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 15726if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 15727 echo $ECHO_N "(cached) $ECHO_C" >&6 15728else 15729 ac_check_lib_save_LIBS=$LIBS 15730LIBS="-ldnet_stub $LIBS" 15731cat >conftest.$ac_ext <<_ACEOF 15732/* confdefs.h. */ 15733_ACEOF 15734cat confdefs.h >>conftest.$ac_ext 15735cat >>conftest.$ac_ext <<_ACEOF 15736/* end confdefs.h. */ 15737 15738/* Override any GCC internal prototype to avoid an error. 15739 Use char because int might match the return type of a GCC 15740 builtin and then its argument prototype would still apply. */ 15741#ifdef __cplusplus 15742extern "C" 15743#endif 15744char dnet_ntoa (); 15745int 15746main () 15747{ 15748return dnet_ntoa (); 15749 ; 15750 return 0; 15751} 15752_ACEOF 15753rm -f conftest.$ac_objext conftest$ac_exeext 15754if { (ac_try="$ac_link" 15755case "(($ac_try" in 15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15757 *) ac_try_echo=$ac_try;; 15758esac 15759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15760 (eval "$ac_link") 2>conftest.er1 15761 ac_status=$? 15762 grep -v '^ *+' conftest.er1 >conftest.err 15763 rm -f conftest.er1 15764 cat conftest.err >&5 15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15766 (exit $ac_status); } && { 15767 test -z "$ac_c_werror_flag" || 15768 test ! -s conftest.err 15769 } && test -s conftest$ac_exeext && 15770 $as_test_x conftest$ac_exeext; then 15771 ac_cv_lib_dnet_stub_dnet_ntoa=yes 15772else 15773 echo "$as_me: failed program was:" >&5 15774sed 's/^/| /' conftest.$ac_ext >&5 15775 15776 ac_cv_lib_dnet_stub_dnet_ntoa=no 15777fi 15778 15779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15780 conftest$ac_exeext conftest.$ac_ext 15781LIBS=$ac_check_lib_save_LIBS 15782fi 15783{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 15784echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 15785if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 15786 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 15787fi 15788 15789 fi 15790fi 15791 15792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15793 conftest$ac_exeext conftest.$ac_ext 15794 LIBS="$ac_xsave_LIBS" 15795 15796 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 15797 # to get the SysV transport functions. 15798 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 15799 # needs -lnsl. 15800 # The nsl library prevents programs from opening the X display 15801 # on Irix 5.2, according to T.E. Dickey. 15802 # The functions gethostbyname, getservbyname, and inet_addr are 15803 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 15804 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 15805echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 15806if test "${ac_cv_func_gethostbyname+set}" = set; then 15807 echo $ECHO_N "(cached) $ECHO_C" >&6 15808else 15809 cat >conftest.$ac_ext <<_ACEOF 15810/* confdefs.h. */ 15811_ACEOF 15812cat confdefs.h >>conftest.$ac_ext 15813cat >>conftest.$ac_ext <<_ACEOF 15814/* end confdefs.h. */ 15815/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 15816 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15817#define gethostbyname innocuous_gethostbyname 15818 15819/* System header to define __stub macros and hopefully few prototypes, 15820 which can conflict with char gethostbyname (); below. 15821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15822 <limits.h> exists even on freestanding compilers. */ 15823 15824#ifdef __STDC__ 15825# include <limits.h> 15826#else 15827# include <assert.h> 15828#endif 15829 15830#undef gethostbyname 15831 15832/* Override any GCC internal prototype to avoid an error. 15833 Use char because int might match the return type of a GCC 15834 builtin and then its argument prototype would still apply. */ 15835#ifdef __cplusplus 15836extern "C" 15837#endif 15838char gethostbyname (); 15839/* The GNU C library defines this for functions which it implements 15840 to always fail with ENOSYS. Some functions are actually named 15841 something starting with __ and the normal name is an alias. */ 15842#if defined __stub_gethostbyname || defined __stub___gethostbyname 15843choke me 15844#endif 15845 15846int 15847main () 15848{ 15849return gethostbyname (); 15850 ; 15851 return 0; 15852} 15853_ACEOF 15854rm -f conftest.$ac_objext conftest$ac_exeext 15855if { (ac_try="$ac_link" 15856case "(($ac_try" in 15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15858 *) ac_try_echo=$ac_try;; 15859esac 15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15861 (eval "$ac_link") 2>conftest.er1 15862 ac_status=$? 15863 grep -v '^ *+' conftest.er1 >conftest.err 15864 rm -f conftest.er1 15865 cat conftest.err >&5 15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15867 (exit $ac_status); } && { 15868 test -z "$ac_c_werror_flag" || 15869 test ! -s conftest.err 15870 } && test -s conftest$ac_exeext && 15871 $as_test_x conftest$ac_exeext; then 15872 ac_cv_func_gethostbyname=yes 15873else 15874 echo "$as_me: failed program was:" >&5 15875sed 's/^/| /' conftest.$ac_ext >&5 15876 15877 ac_cv_func_gethostbyname=no 15878fi 15879 15880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15881 conftest$ac_exeext conftest.$ac_ext 15882fi 15883{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 15884echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 15885 15886 if test $ac_cv_func_gethostbyname = no; then 15887 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 15888echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 15889if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 15890 echo $ECHO_N "(cached) $ECHO_C" >&6 15891else 15892 ac_check_lib_save_LIBS=$LIBS 15893LIBS="-lnsl $LIBS" 15894cat >conftest.$ac_ext <<_ACEOF 15895/* confdefs.h. */ 15896_ACEOF 15897cat confdefs.h >>conftest.$ac_ext 15898cat >>conftest.$ac_ext <<_ACEOF 15899/* end confdefs.h. */ 15900 15901/* Override any GCC internal prototype to avoid an error. 15902 Use char because int might match the return type of a GCC 15903 builtin and then its argument prototype would still apply. */ 15904#ifdef __cplusplus 15905extern "C" 15906#endif 15907char gethostbyname (); 15908int 15909main () 15910{ 15911return gethostbyname (); 15912 ; 15913 return 0; 15914} 15915_ACEOF 15916rm -f conftest.$ac_objext conftest$ac_exeext 15917if { (ac_try="$ac_link" 15918case "(($ac_try" in 15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15920 *) ac_try_echo=$ac_try;; 15921esac 15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15923 (eval "$ac_link") 2>conftest.er1 15924 ac_status=$? 15925 grep -v '^ *+' conftest.er1 >conftest.err 15926 rm -f conftest.er1 15927 cat conftest.err >&5 15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15929 (exit $ac_status); } && { 15930 test -z "$ac_c_werror_flag" || 15931 test ! -s conftest.err 15932 } && test -s conftest$ac_exeext && 15933 $as_test_x conftest$ac_exeext; then 15934 ac_cv_lib_nsl_gethostbyname=yes 15935else 15936 echo "$as_me: failed program was:" >&5 15937sed 's/^/| /' conftest.$ac_ext >&5 15938 15939 ac_cv_lib_nsl_gethostbyname=no 15940fi 15941 15942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15943 conftest$ac_exeext conftest.$ac_ext 15944LIBS=$ac_check_lib_save_LIBS 15945fi 15946{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 15947echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 15948if test $ac_cv_lib_nsl_gethostbyname = yes; then 15949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 15950fi 15951 15952 if test $ac_cv_lib_nsl_gethostbyname = no; then 15953 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 15954echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 15955if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 15956 echo $ECHO_N "(cached) $ECHO_C" >&6 15957else 15958 ac_check_lib_save_LIBS=$LIBS 15959LIBS="-lbsd $LIBS" 15960cat >conftest.$ac_ext <<_ACEOF 15961/* confdefs.h. */ 15962_ACEOF 15963cat confdefs.h >>conftest.$ac_ext 15964cat >>conftest.$ac_ext <<_ACEOF 15965/* end confdefs.h. */ 15966 15967/* Override any GCC internal prototype to avoid an error. 15968 Use char because int might match the return type of a GCC 15969 builtin and then its argument prototype would still apply. */ 15970#ifdef __cplusplus 15971extern "C" 15972#endif 15973char gethostbyname (); 15974int 15975main () 15976{ 15977return gethostbyname (); 15978 ; 15979 return 0; 15980} 15981_ACEOF 15982rm -f conftest.$ac_objext conftest$ac_exeext 15983if { (ac_try="$ac_link" 15984case "(($ac_try" in 15985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15986 *) ac_try_echo=$ac_try;; 15987esac 15988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15989 (eval "$ac_link") 2>conftest.er1 15990 ac_status=$? 15991 grep -v '^ *+' conftest.er1 >conftest.err 15992 rm -f conftest.er1 15993 cat conftest.err >&5 15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15995 (exit $ac_status); } && { 15996 test -z "$ac_c_werror_flag" || 15997 test ! -s conftest.err 15998 } && test -s conftest$ac_exeext && 15999 $as_test_x conftest$ac_exeext; then 16000 ac_cv_lib_bsd_gethostbyname=yes 16001else 16002 echo "$as_me: failed program was:" >&5 16003sed 's/^/| /' conftest.$ac_ext >&5 16004 16005 ac_cv_lib_bsd_gethostbyname=no 16006fi 16007 16008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16009 conftest$ac_exeext conftest.$ac_ext 16010LIBS=$ac_check_lib_save_LIBS 16011fi 16012{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 16013echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 16014if test $ac_cv_lib_bsd_gethostbyname = yes; then 16015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 16016fi 16017 16018 fi 16019 fi 16020 16021 # [email protected] says without -lsocket, 16022 # socket/setsockopt and other routines are undefined under SCO ODT 16023 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 16024 # on later versions), says Simon Leinen: it contains gethostby* 16025 # variants that don't use the name server (or something). -lsocket 16026 # must be given before -lnsl if both are needed. We assume that 16027 # if connect needs -lnsl, so does gethostbyname. 16028 { echo "$as_me:$LINENO: checking for connect" >&5 16029echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 16030if test "${ac_cv_func_connect+set}" = set; then 16031 echo $ECHO_N "(cached) $ECHO_C" >&6 16032else 16033 cat >conftest.$ac_ext <<_ACEOF 16034/* confdefs.h. */ 16035_ACEOF 16036cat confdefs.h >>conftest.$ac_ext 16037cat >>conftest.$ac_ext <<_ACEOF 16038/* end confdefs.h. */ 16039/* Define connect to an innocuous variant, in case <limits.h> declares connect. 16040 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16041#define connect innocuous_connect 16042 16043/* System header to define __stub macros and hopefully few prototypes, 16044 which can conflict with char connect (); below. 16045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16046 <limits.h> exists even on freestanding compilers. */ 16047 16048#ifdef __STDC__ 16049# include <limits.h> 16050#else 16051# include <assert.h> 16052#endif 16053 16054#undef connect 16055 16056/* Override any GCC internal prototype to avoid an error. 16057 Use char because int might match the return type of a GCC 16058 builtin and then its argument prototype would still apply. */ 16059#ifdef __cplusplus 16060extern "C" 16061#endif 16062char connect (); 16063/* The GNU C library defines this for functions which it implements 16064 to always fail with ENOSYS. Some functions are actually named 16065 something starting with __ and the normal name is an alias. */ 16066#if defined __stub_connect || defined __stub___connect 16067choke me 16068#endif 16069 16070int 16071main () 16072{ 16073return connect (); 16074 ; 16075 return 0; 16076} 16077_ACEOF 16078rm -f conftest.$ac_objext conftest$ac_exeext 16079if { (ac_try="$ac_link" 16080case "(($ac_try" in 16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16082 *) ac_try_echo=$ac_try;; 16083esac 16084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16085 (eval "$ac_link") 2>conftest.er1 16086 ac_status=$? 16087 grep -v '^ *+' conftest.er1 >conftest.err 16088 rm -f conftest.er1 16089 cat conftest.err >&5 16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16091 (exit $ac_status); } && { 16092 test -z "$ac_c_werror_flag" || 16093 test ! -s conftest.err 16094 } && test -s conftest$ac_exeext && 16095 $as_test_x conftest$ac_exeext; then 16096 ac_cv_func_connect=yes 16097else 16098 echo "$as_me: failed program was:" >&5 16099sed 's/^/| /' conftest.$ac_ext >&5 16100 16101 ac_cv_func_connect=no 16102fi 16103 16104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16105 conftest$ac_exeext conftest.$ac_ext 16106fi 16107{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 16108echo "${ECHO_T}$ac_cv_func_connect" >&6; } 16109 16110 if test $ac_cv_func_connect = no; then 16111 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 16112echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 16113if test "${ac_cv_lib_socket_connect+set}" = set; then 16114 echo $ECHO_N "(cached) $ECHO_C" >&6 16115else 16116 ac_check_lib_save_LIBS=$LIBS 16117LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 16118cat >conftest.$ac_ext <<_ACEOF 16119/* confdefs.h. */ 16120_ACEOF 16121cat confdefs.h >>conftest.$ac_ext 16122cat >>conftest.$ac_ext <<_ACEOF 16123/* end confdefs.h. */ 16124 16125/* Override any GCC internal prototype to avoid an error. 16126 Use char because int might match the return type of a GCC 16127 builtin and then its argument prototype would still apply. */ 16128#ifdef __cplusplus 16129extern "C" 16130#endif 16131char connect (); 16132int 16133main () 16134{ 16135return connect (); 16136 ; 16137 return 0; 16138} 16139_ACEOF 16140rm -f conftest.$ac_objext conftest$ac_exeext 16141if { (ac_try="$ac_link" 16142case "(($ac_try" in 16143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16144 *) ac_try_echo=$ac_try;; 16145esac 16146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16147 (eval "$ac_link") 2>conftest.er1 16148 ac_status=$? 16149 grep -v '^ *+' conftest.er1 >conftest.err 16150 rm -f conftest.er1 16151 cat conftest.err >&5 16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16153 (exit $ac_status); } && { 16154 test -z "$ac_c_werror_flag" || 16155 test ! -s conftest.err 16156 } && test -s conftest$ac_exeext && 16157 $as_test_x conftest$ac_exeext; then 16158 ac_cv_lib_socket_connect=yes 16159else 16160 echo "$as_me: failed program was:" >&5 16161sed 's/^/| /' conftest.$ac_ext >&5 16162 16163 ac_cv_lib_socket_connect=no 16164fi 16165 16166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16167 conftest$ac_exeext conftest.$ac_ext 16168LIBS=$ac_check_lib_save_LIBS 16169fi 16170{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 16171echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 16172if test $ac_cv_lib_socket_connect = yes; then 16173 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 16174fi 16175 16176 fi 16177 16178 # Guillermo Gomez says -lposix is necessary on A/UX. 16179 { echo "$as_me:$LINENO: checking for remove" >&5 16180echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 16181if test "${ac_cv_func_remove+set}" = set; then 16182 echo $ECHO_N "(cached) $ECHO_C" >&6 16183else 16184 cat >conftest.$ac_ext <<_ACEOF 16185/* confdefs.h. */ 16186_ACEOF 16187cat confdefs.h >>conftest.$ac_ext 16188cat >>conftest.$ac_ext <<_ACEOF 16189/* end confdefs.h. */ 16190/* Define remove to an innocuous variant, in case <limits.h> declares remove. 16191 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16192#define remove innocuous_remove 16193 16194/* System header to define __stub macros and hopefully few prototypes, 16195 which can conflict with char remove (); below. 16196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16197 <limits.h> exists even on freestanding compilers. */ 16198 16199#ifdef __STDC__ 16200# include <limits.h> 16201#else 16202# include <assert.h> 16203#endif 16204 16205#undef remove 16206 16207/* Override any GCC internal prototype to avoid an error. 16208 Use char because int might match the return type of a GCC 16209 builtin and then its argument prototype would still apply. */ 16210#ifdef __cplusplus 16211extern "C" 16212#endif 16213char remove (); 16214/* The GNU C library defines this for functions which it implements 16215 to always fail with ENOSYS. Some functions are actually named 16216 something starting with __ and the normal name is an alias. */ 16217#if defined __stub_remove || defined __stub___remove 16218choke me 16219#endif 16220 16221int 16222main () 16223{ 16224return remove (); 16225 ; 16226 return 0; 16227} 16228_ACEOF 16229rm -f conftest.$ac_objext conftest$ac_exeext 16230if { (ac_try="$ac_link" 16231case "(($ac_try" in 16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16233 *) ac_try_echo=$ac_try;; 16234esac 16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16236 (eval "$ac_link") 2>conftest.er1 16237 ac_status=$? 16238 grep -v '^ *+' conftest.er1 >conftest.err 16239 rm -f conftest.er1 16240 cat conftest.err >&5 16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16242 (exit $ac_status); } && { 16243 test -z "$ac_c_werror_flag" || 16244 test ! -s conftest.err 16245 } && test -s conftest$ac_exeext && 16246 $as_test_x conftest$ac_exeext; then 16247 ac_cv_func_remove=yes 16248else 16249 echo "$as_me: failed program was:" >&5 16250sed 's/^/| /' conftest.$ac_ext >&5 16251 16252 ac_cv_func_remove=no 16253fi 16254 16255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16256 conftest$ac_exeext conftest.$ac_ext 16257fi 16258{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 16259echo "${ECHO_T}$ac_cv_func_remove" >&6; } 16260 16261 if test $ac_cv_func_remove = no; then 16262 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 16263echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 16264if test "${ac_cv_lib_posix_remove+set}" = set; then 16265 echo $ECHO_N "(cached) $ECHO_C" >&6 16266else 16267 ac_check_lib_save_LIBS=$LIBS 16268LIBS="-lposix $LIBS" 16269cat >conftest.$ac_ext <<_ACEOF 16270/* confdefs.h. */ 16271_ACEOF 16272cat confdefs.h >>conftest.$ac_ext 16273cat >>conftest.$ac_ext <<_ACEOF 16274/* end confdefs.h. */ 16275 16276/* Override any GCC internal prototype to avoid an error. 16277 Use char because int might match the return type of a GCC 16278 builtin and then its argument prototype would still apply. */ 16279#ifdef __cplusplus 16280extern "C" 16281#endif 16282char remove (); 16283int 16284main () 16285{ 16286return remove (); 16287 ; 16288 return 0; 16289} 16290_ACEOF 16291rm -f conftest.$ac_objext conftest$ac_exeext 16292if { (ac_try="$ac_link" 16293case "(($ac_try" in 16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16295 *) ac_try_echo=$ac_try;; 16296esac 16297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16298 (eval "$ac_link") 2>conftest.er1 16299 ac_status=$? 16300 grep -v '^ *+' conftest.er1 >conftest.err 16301 rm -f conftest.er1 16302 cat conftest.err >&5 16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16304 (exit $ac_status); } && { 16305 test -z "$ac_c_werror_flag" || 16306 test ! -s conftest.err 16307 } && test -s conftest$ac_exeext && 16308 $as_test_x conftest$ac_exeext; then 16309 ac_cv_lib_posix_remove=yes 16310else 16311 echo "$as_me: failed program was:" >&5 16312sed 's/^/| /' conftest.$ac_ext >&5 16313 16314 ac_cv_lib_posix_remove=no 16315fi 16316 16317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16318 conftest$ac_exeext conftest.$ac_ext 16319LIBS=$ac_check_lib_save_LIBS 16320fi 16321{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 16322echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 16323if test $ac_cv_lib_posix_remove = yes; then 16324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 16325fi 16326 16327 fi 16328 16329 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 16330 { echo "$as_me:$LINENO: checking for shmat" >&5 16331echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 16332if test "${ac_cv_func_shmat+set}" = set; then 16333 echo $ECHO_N "(cached) $ECHO_C" >&6 16334else 16335 cat >conftest.$ac_ext <<_ACEOF 16336/* confdefs.h. */ 16337_ACEOF 16338cat confdefs.h >>conftest.$ac_ext 16339cat >>conftest.$ac_ext <<_ACEOF 16340/* end confdefs.h. */ 16341/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 16342 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16343#define shmat innocuous_shmat 16344 16345/* System header to define __stub macros and hopefully few prototypes, 16346 which can conflict with char shmat (); below. 16347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16348 <limits.h> exists even on freestanding compilers. */ 16349 16350#ifdef __STDC__ 16351# include <limits.h> 16352#else 16353# include <assert.h> 16354#endif 16355 16356#undef shmat 16357 16358/* Override any GCC internal prototype to avoid an error. 16359 Use char because int might match the return type of a GCC 16360 builtin and then its argument prototype would still apply. */ 16361#ifdef __cplusplus 16362extern "C" 16363#endif 16364char shmat (); 16365/* The GNU C library defines this for functions which it implements 16366 to always fail with ENOSYS. Some functions are actually named 16367 something starting with __ and the normal name is an alias. */ 16368#if defined __stub_shmat || defined __stub___shmat 16369choke me 16370#endif 16371 16372int 16373main () 16374{ 16375return shmat (); 16376 ; 16377 return 0; 16378} 16379_ACEOF 16380rm -f conftest.$ac_objext conftest$ac_exeext 16381if { (ac_try="$ac_link" 16382case "(($ac_try" in 16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16384 *) ac_try_echo=$ac_try;; 16385esac 16386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16387 (eval "$ac_link") 2>conftest.er1 16388 ac_status=$? 16389 grep -v '^ *+' conftest.er1 >conftest.err 16390 rm -f conftest.er1 16391 cat conftest.err >&5 16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16393 (exit $ac_status); } && { 16394 test -z "$ac_c_werror_flag" || 16395 test ! -s conftest.err 16396 } && test -s conftest$ac_exeext && 16397 $as_test_x conftest$ac_exeext; then 16398 ac_cv_func_shmat=yes 16399else 16400 echo "$as_me: failed program was:" >&5 16401sed 's/^/| /' conftest.$ac_ext >&5 16402 16403 ac_cv_func_shmat=no 16404fi 16405 16406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16407 conftest$ac_exeext conftest.$ac_ext 16408fi 16409{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 16410echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 16411 16412 if test $ac_cv_func_shmat = no; then 16413 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 16414echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 16415if test "${ac_cv_lib_ipc_shmat+set}" = set; then 16416 echo $ECHO_N "(cached) $ECHO_C" >&6 16417else 16418 ac_check_lib_save_LIBS=$LIBS 16419LIBS="-lipc $LIBS" 16420cat >conftest.$ac_ext <<_ACEOF 16421/* confdefs.h. */ 16422_ACEOF 16423cat confdefs.h >>conftest.$ac_ext 16424cat >>conftest.$ac_ext <<_ACEOF 16425/* end confdefs.h. */ 16426 16427/* Override any GCC internal prototype to avoid an error. 16428 Use char because int might match the return type of a GCC 16429 builtin and then its argument prototype would still apply. */ 16430#ifdef __cplusplus 16431extern "C" 16432#endif 16433char shmat (); 16434int 16435main () 16436{ 16437return shmat (); 16438 ; 16439 return 0; 16440} 16441_ACEOF 16442rm -f conftest.$ac_objext conftest$ac_exeext 16443if { (ac_try="$ac_link" 16444case "(($ac_try" in 16445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16446 *) ac_try_echo=$ac_try;; 16447esac 16448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16449 (eval "$ac_link") 2>conftest.er1 16450 ac_status=$? 16451 grep -v '^ *+' conftest.er1 >conftest.err 16452 rm -f conftest.er1 16453 cat conftest.err >&5 16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16455 (exit $ac_status); } && { 16456 test -z "$ac_c_werror_flag" || 16457 test ! -s conftest.err 16458 } && test -s conftest$ac_exeext && 16459 $as_test_x conftest$ac_exeext; then 16460 ac_cv_lib_ipc_shmat=yes 16461else 16462 echo "$as_me: failed program was:" >&5 16463sed 's/^/| /' conftest.$ac_ext >&5 16464 16465 ac_cv_lib_ipc_shmat=no 16466fi 16467 16468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16469 conftest$ac_exeext conftest.$ac_ext 16470LIBS=$ac_check_lib_save_LIBS 16471fi 16472{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 16473echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 16474if test $ac_cv_lib_ipc_shmat = yes; then 16475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 16476fi 16477 16478 fi 16479 fi 16480 16481 # Check for libraries that X11R6 Xt/Xaw programs need. 16482 ac_save_LDFLAGS=$LDFLAGS 16483 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 16484 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 16485 # check for ICE first), but we must link in the order -lSM -lICE or 16486 # we get undefined symbols. So assume we have SM if we have ICE. 16487 # These have to be linked with before -lX11, unlike the other 16488 # libraries we check for below, so use a different variable. 16489 # John Interrante, Karl Berry 16490 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 16491echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 16492if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 16493 echo $ECHO_N "(cached) $ECHO_C" >&6 16494else 16495 ac_check_lib_save_LIBS=$LIBS 16496LIBS="-lICE $X_EXTRA_LIBS $LIBS" 16497cat >conftest.$ac_ext <<_ACEOF 16498/* confdefs.h. */ 16499_ACEOF 16500cat confdefs.h >>conftest.$ac_ext 16501cat >>conftest.$ac_ext <<_ACEOF 16502/* end confdefs.h. */ 16503 16504/* Override any GCC internal prototype to avoid an error. 16505 Use char because int might match the return type of a GCC 16506 builtin and then its argument prototype would still apply. */ 16507#ifdef __cplusplus 16508extern "C" 16509#endif 16510char IceConnectionNumber (); 16511int 16512main () 16513{ 16514return IceConnectionNumber (); 16515 ; 16516 return 0; 16517} 16518_ACEOF 16519rm -f conftest.$ac_objext conftest$ac_exeext 16520if { (ac_try="$ac_link" 16521case "(($ac_try" in 16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16523 *) ac_try_echo=$ac_try;; 16524esac 16525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16526 (eval "$ac_link") 2>conftest.er1 16527 ac_status=$? 16528 grep -v '^ *+' conftest.er1 >conftest.err 16529 rm -f conftest.er1 16530 cat conftest.err >&5 16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16532 (exit $ac_status); } && { 16533 test -z "$ac_c_werror_flag" || 16534 test ! -s conftest.err 16535 } && test -s conftest$ac_exeext && 16536 $as_test_x conftest$ac_exeext; then 16537 ac_cv_lib_ICE_IceConnectionNumber=yes 16538else 16539 echo "$as_me: failed program was:" >&5 16540sed 's/^/| /' conftest.$ac_ext >&5 16541 16542 ac_cv_lib_ICE_IceConnectionNumber=no 16543fi 16544 16545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16546 conftest$ac_exeext conftest.$ac_ext 16547LIBS=$ac_check_lib_save_LIBS 16548fi 16549{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 16550echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 16551if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 16552 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 16553fi 16554 16555 LDFLAGS=$ac_save_LDFLAGS 16556 16557fi 16558 16559 16560 16561 16562 16563ac_ext=c 16564ac_cpp='$CPP $CPPFLAGS' 16565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16567ac_compiler_gnu=$ac_cv_c_compiler_gnu 16568 16569acx_pthread_ok=no 16570 16571# We used to check for pthread.h first, but this fails if pthread.h 16572# requires special compiler flags (e.g. on True64 or Sequent). 16573# It gets checked for in the link test anyway. 16574 16575# First of all, check if the user has set any of the PTHREAD_LIBS, 16576# etcetera environment variables, and if threads linking works using 16577# them: 16578if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16579 save_CFLAGS="$CFLAGS" 16580 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16581 save_LIBS="$LIBS" 16582 LIBS="$PTHREAD_LIBS $LIBS" 16583 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16584echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 16585 cat >conftest.$ac_ext <<_ACEOF 16586/* confdefs.h. */ 16587_ACEOF 16588cat confdefs.h >>conftest.$ac_ext 16589cat >>conftest.$ac_ext <<_ACEOF 16590/* end confdefs.h. */ 16591 16592/* Override any GCC internal prototype to avoid an error. 16593 Use char because int might match the return type of a GCC 16594 builtin and then its argument prototype would still apply. */ 16595#ifdef __cplusplus 16596extern "C" 16597#endif 16598char pthread_join (); 16599int 16600main () 16601{ 16602return pthread_join (); 16603 ; 16604 return 0; 16605} 16606_ACEOF 16607rm -f conftest.$ac_objext conftest$ac_exeext 16608if { (ac_try="$ac_link" 16609case "(($ac_try" in 16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16611 *) ac_try_echo=$ac_try;; 16612esac 16613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16614 (eval "$ac_link") 2>conftest.er1 16615 ac_status=$? 16616 grep -v '^ *+' conftest.er1 >conftest.err 16617 rm -f conftest.er1 16618 cat conftest.err >&5 16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16620 (exit $ac_status); } && { 16621 test -z "$ac_c_werror_flag" || 16622 test ! -s conftest.err 16623 } && test -s conftest$ac_exeext && 16624 $as_test_x conftest$ac_exeext; then 16625 acx_pthread_ok=yes 16626else 16627 echo "$as_me: failed program was:" >&5 16628sed 's/^/| /' conftest.$ac_ext >&5 16629 16630 16631fi 16632 16633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16634 conftest$ac_exeext conftest.$ac_ext 16635 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 16636echo "${ECHO_T}$acx_pthread_ok" >&6; } 16637 if test x"$acx_pthread_ok" = xno; then 16638 PTHREAD_LIBS="" 16639 PTHREAD_CFLAGS="" 16640 fi 16641 LIBS="$save_LIBS" 16642 CFLAGS="$save_CFLAGS" 16643fi 16644 16645# We must check for the threads library under a number of different 16646# names; the ordering is very important because some systems 16647# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16648# libraries is broken (non-POSIX). 16649 16650# Create a list of thread flags to try. Items starting with a "-" are 16651# C compiler flags, and other items are library names, except for "none" 16652# which indicates that we try without any flags at all, and "pthread-config" 16653# which is a program returning the flags for the Pth emulation library. 16654 16655acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16656 16657# The ordering *is* (sometimes) important. Some notes on the 16658# individual items follow: 16659 16660# pthreads: AIX (must check this before -lpthread) 16661# none: in case threads are in libc; should be tried before -Kthread and 16662# other compiler flags to prevent continual compiler warnings 16663# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16664# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16665# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16666# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16667# -pthreads: Solaris/gcc 16668# -mthreads: Mingw32/gcc, Lynx/gcc 16669# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16670# doesn't hurt to check since this sometimes defines pthreads too; 16671# also defines -D_REENTRANT) 16672# pthread: Linux, etcetera 16673# --thread-safe: KAI C++ 16674# pthread-config: use pthread-config program (for GNU Pth library) 16675 16676case "${host_cpu}-${host_os}" in 16677 *solaris*) 16678 16679 # On Solaris (at least, for some versions), libc contains stubbed 16680 # (non-functional) versions of the pthreads routines, so link-based 16681 # tests will erroneously succeed. (We need to link with -pthread or 16682 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16683 # a function called by this macro, so we could check for that, but 16684 # who knows whether they'll stub that too in a future libc.) So, 16685 # we'll just look for -pthreads and -lpthread first: 16686 16687 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags" 16688 ;; 16689esac 16690 16691if test x"$acx_pthread_ok" = xno; then 16692for flag in $acx_pthread_flags; do 16693 16694 case $flag in 16695 none) 16696 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 16697echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 16698 ;; 16699 16700 -*) 16701 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 16702echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 16703 PTHREAD_CFLAGS="$flag" 16704 ;; 16705 16706 pthread-config) 16707 # Extract the first word of "pthread-config", so it can be a program name with args. 16708set dummy pthread-config; ac_word=$2 16709{ echo "$as_me:$LINENO: checking for $ac_word" >&5 16710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 16711if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 16712 echo $ECHO_N "(cached) $ECHO_C" >&6 16713else 16714 if test -n "$acx_pthread_config"; then 16715 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 16716else 16717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16718for as_dir in $PATH 16719do 16720 IFS=$as_save_IFS 16721 test -z "$as_dir" && as_dir=. 16722 for ac_exec_ext in '' $ac_executable_extensions; do 16723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16724 ac_cv_prog_acx_pthread_config="yes" 16725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16726 break 2 16727 fi 16728done 16729done 16730IFS=$as_save_IFS 16731 16732 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 16733fi 16734fi 16735acx_pthread_config=$ac_cv_prog_acx_pthread_config 16736if test -n "$acx_pthread_config"; then 16737 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 16738echo "${ECHO_T}$acx_pthread_config" >&6; } 16739else 16740 { echo "$as_me:$LINENO: result: no" >&5 16741echo "${ECHO_T}no" >&6; } 16742fi 16743 16744 16745 if test x"$acx_pthread_config" = xno; then continue; fi 16746 PTHREAD_CFLAGS="`pthread-config --cflags`" 16747 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16748 ;; 16749 16750 *) 16751 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 16752echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 16753 PTHREAD_LIBS="-l$flag" 16754 ;; 16755 esac 16756 16757 save_LIBS="$LIBS" 16758 save_CFLAGS="$CFLAGS" 16759 LIBS="$PTHREAD_LIBS $LIBS" 16760 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16761 16762 # Check for various functions. We must include pthread.h, 16763 # since some functions may be macros. (On the Sequent, we 16764 # need a special flag -Kthread to make this header compile.) 16765 # We check for pthread_join because it is in -lpthread on IRIX 16766 # while pthread_create is in libc. We check for pthread_attr_init 16767 # due to DEC craziness with -lpthreads. We check for 16768 # pthread_cleanup_push because it is one of the few pthread 16769 # functions on Solaris that doesn't have a non-functional libc stub. 16770 # We try pthread_create on general principles. 16771 cat >conftest.$ac_ext <<_ACEOF 16772/* confdefs.h. */ 16773_ACEOF 16774cat confdefs.h >>conftest.$ac_ext 16775cat >>conftest.$ac_ext <<_ACEOF 16776/* end confdefs.h. */ 16777#include <pthread.h> 16778int 16779main () 16780{ 16781pthread_t th; pthread_join(th, 0); 16782 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16783 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16784 ; 16785 return 0; 16786} 16787_ACEOF 16788rm -f conftest.$ac_objext conftest$ac_exeext 16789if { (ac_try="$ac_link" 16790case "(($ac_try" in 16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16792 *) ac_try_echo=$ac_try;; 16793esac 16794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16795 (eval "$ac_link") 2>conftest.er1 16796 ac_status=$? 16797 grep -v '^ *+' conftest.er1 >conftest.err 16798 rm -f conftest.er1 16799 cat conftest.err >&5 16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16801 (exit $ac_status); } && { 16802 test -z "$ac_c_werror_flag" || 16803 test ! -s conftest.err 16804 } && test -s conftest$ac_exeext && 16805 $as_test_x conftest$ac_exeext; then 16806 acx_pthread_ok=yes 16807else 16808 echo "$as_me: failed program was:" >&5 16809sed 's/^/| /' conftest.$ac_ext >&5 16810 16811 16812fi 16813 16814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16815 conftest$ac_exeext conftest.$ac_ext 16816 16817 LIBS="$save_LIBS" 16818 CFLAGS="$save_CFLAGS" 16819 16820 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 16821echo "${ECHO_T}$acx_pthread_ok" >&6; } 16822 if test "x$acx_pthread_ok" = xyes; then 16823 break; 16824 fi 16825 16826 PTHREAD_LIBS="" 16827 PTHREAD_CFLAGS="" 16828done 16829fi 16830 16831# Various other checks: 16832if test "x$acx_pthread_ok" = xyes; then 16833 save_LIBS="$LIBS" 16834 LIBS="$PTHREAD_LIBS $LIBS" 16835 save_CFLAGS="$CFLAGS" 16836 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16837 16838 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16839 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 16840echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 16841 attr_name=unknown 16842 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16843 cat >conftest.$ac_ext <<_ACEOF 16844/* confdefs.h. */ 16845_ACEOF 16846cat confdefs.h >>conftest.$ac_ext 16847cat >>conftest.$ac_ext <<_ACEOF 16848/* end confdefs.h. */ 16849#include <pthread.h> 16850int 16851main () 16852{ 16853int attr=$attr; 16854 ; 16855 return 0; 16856} 16857_ACEOF 16858rm -f conftest.$ac_objext conftest$ac_exeext 16859if { (ac_try="$ac_link" 16860case "(($ac_try" in 16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16862 *) ac_try_echo=$ac_try;; 16863esac 16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16865 (eval "$ac_link") 2>conftest.er1 16866 ac_status=$? 16867 grep -v '^ *+' conftest.er1 >conftest.err 16868 rm -f conftest.er1 16869 cat conftest.err >&5 16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16871 (exit $ac_status); } && { 16872 test -z "$ac_c_werror_flag" || 16873 test ! -s conftest.err 16874 } && test -s conftest$ac_exeext && 16875 $as_test_x conftest$ac_exeext; then 16876 attr_name=$attr; break 16877else 16878 echo "$as_me: failed program was:" >&5 16879sed 's/^/| /' conftest.$ac_ext >&5 16880 16881 16882fi 16883 16884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16885 conftest$ac_exeext conftest.$ac_ext 16886 done 16887 { echo "$as_me:$LINENO: result: $attr_name" >&5 16888echo "${ECHO_T}$attr_name" >&6; } 16889 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16890 16891cat >>confdefs.h <<_ACEOF 16892#define PTHREAD_CREATE_JOINABLE $attr_name 16893_ACEOF 16894 16895 fi 16896 16897 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 16898echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 16899 flag=no 16900 case "${host_cpu}-${host_os}" in 16901 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 16902 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 16903 esac 16904 { echo "$as_me:$LINENO: result: ${flag}" >&5 16905echo "${ECHO_T}${flag}" >&6; } 16906 if test "x$flag" != xno; then 16907 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16908 fi 16909 16910 LIBS="$save_LIBS" 16911 CFLAGS="$save_CFLAGS" 16912 16913 # More AIX lossage: must compile with cc_r 16914 # Extract the first word of "cc_r", so it can be a program name with args. 16915set dummy cc_r; ac_word=$2 16916{ echo "$as_me:$LINENO: checking for $ac_word" >&5 16917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 16918if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 16919 echo $ECHO_N "(cached) $ECHO_C" >&6 16920else 16921 if test -n "$PTHREAD_CC"; then 16922 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16923else 16924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16925for as_dir in $PATH 16926do 16927 IFS=$as_save_IFS 16928 test -z "$as_dir" && as_dir=. 16929 for ac_exec_ext in '' $ac_executable_extensions; do 16930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16931 ac_cv_prog_PTHREAD_CC="cc_r" 16932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16933 break 2 16934 fi 16935done 16936done 16937IFS=$as_save_IFS 16938 16939 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}" 16940fi 16941fi 16942PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16943if test -n "$PTHREAD_CC"; then 16944 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 16945echo "${ECHO_T}$PTHREAD_CC" >&6; } 16946else 16947 { echo "$as_me:$LINENO: result: no" >&5 16948echo "${ECHO_T}no" >&6; } 16949fi 16950 16951 16952else 16953 PTHREAD_CC="$CC" 16954fi 16955 16956 16957 16958 16959 16960# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16961if test x"$acx_pthread_ok" = xyes; then 16962 16963cat >>confdefs.h <<\_ACEOF 16964#define HAVE_PTHREAD 1 16965_ACEOF 16966 16967 : 16968else 16969 acx_pthread_ok=no 16970 16971fi 16972ac_ext=c 16973ac_cpp='$CPP $CPPFLAGS' 16974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16976ac_compiler_gnu=$ac_cv_c_compiler_gnu 16977 16978 16979 16980# 16981# There isn't a reliable way to know we should use the Apple OpenGL framework 16982# without a configure option. A Mac OS X user may have installed an 16983# alternative GL implementation (e.g., Mesa), which may or may not depend on X. 16984# 16985 16986# Check whether --with-apple-opengl-framework was given. 16987if test "${with_apple_opengl_framework+set}" = set; then 16988 withval=$with_apple_opengl_framework; 16989fi 16990 16991if test "X$with_apple_opengl_framework" = "Xyes"; then 16992 16993cat >>confdefs.h <<\_ACEOF 16994#define HAVE_APPLE_OPENGL_FRAMEWORK 1 16995_ACEOF 16996 16997 GL_LIBS="-framework OpenGL" 16998else 16999 ac_ext=c 17000ac_cpp='$CPP $CPPFLAGS' 17001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17003ac_compiler_gnu=$ac_cv_c_compiler_gnu 17004 17005 17006 { echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5 17007echo $ECHO_N "checking whether we are using the Microsoft C compiler... $ECHO_C" >&6; } 17008if test "${ax_cv_c_compiler_ms+set}" = set; then 17009 echo $ECHO_N "(cached) $ECHO_C" >&6 17010else 17011 cat >conftest.$ac_ext <<_ACEOF 17012/* confdefs.h. */ 17013_ACEOF 17014cat confdefs.h >>conftest.$ac_ext 17015cat >>conftest.$ac_ext <<_ACEOF 17016/* end confdefs.h. */ 17017 17018int 17019main () 17020{ 17021#ifndef _MSC_VER 17022 choke me 17023#endif 17024 17025 ; 17026 return 0; 17027} 17028_ACEOF 17029rm -f conftest.$ac_objext 17030if { (ac_try="$ac_compile" 17031case "(($ac_try" in 17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17033 *) ac_try_echo=$ac_try;; 17034esac 17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17036 (eval "$ac_compile") 2>conftest.er1 17037 ac_status=$? 17038 grep -v '^ *+' conftest.er1 >conftest.err 17039 rm -f conftest.er1 17040 cat conftest.err >&5 17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17042 (exit $ac_status); } && { 17043 test -z "$ac_c_werror_flag" || 17044 test ! -s conftest.err 17045 } && test -s conftest.$ac_objext; then 17046 ax_compiler_ms=yes 17047else 17048 echo "$as_me: failed program was:" >&5 17049sed 's/^/| /' conftest.$ac_ext >&5 17050 17051 ax_compiler_ms=no 17052fi 17053 17054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17055ax_cv_c_compiler_ms=$ax_compiler_ms 17056 17057fi 17058{ echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5 17059echo "${ECHO_T}$ax_cv_c_compiler_ms" >&6; } 17060 if test X$ax_compiler_ms = Xno; then 17061 GL_CFLAGS="${PTHREAD_CFLAGS}" 17062 GL_LIBS="${PTHREAD_LIBS} -lm" 17063 fi 17064 17065 # 17066 # Use x_includes and x_libraries if they have been set (presumably by 17067 # AC_PATH_X). 17068 # 17069 if test "X$no_x" != "Xyes"; then 17070 if test -n "$x_includes"; then 17071 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}" 17072 fi 17073 if test -n "$x_libraries"; then 17074 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}" 17075 fi 17076 fi 17077 17078 17079for ac_header in windows.h 17080do 17081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17083 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17086 echo $ECHO_N "(cached) $ECHO_C" >&6 17087fi 17088ac_res=`eval echo '${'$as_ac_Header'}'` 17089 { echo "$as_me:$LINENO: result: $ac_res" >&5 17090echo "${ECHO_T}$ac_res" >&6; } 17091else 17092 # Is the header compilable? 17093{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17095cat >conftest.$ac_ext <<_ACEOF 17096/* confdefs.h. */ 17097_ACEOF 17098cat confdefs.h >>conftest.$ac_ext 17099cat >>conftest.$ac_ext <<_ACEOF 17100/* end confdefs.h. */ 17101$ac_includes_default 17102#include <$ac_header> 17103_ACEOF 17104rm -f conftest.$ac_objext 17105if { (ac_try="$ac_compile" 17106case "(($ac_try" in 17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17108 *) ac_try_echo=$ac_try;; 17109esac 17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17111 (eval "$ac_compile") 2>conftest.er1 17112 ac_status=$? 17113 grep -v '^ *+' conftest.er1 >conftest.err 17114 rm -f conftest.er1 17115 cat conftest.err >&5 17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17117 (exit $ac_status); } && { 17118 test -z "$ac_c_werror_flag" || 17119 test ! -s conftest.err 17120 } && test -s conftest.$ac_objext; then 17121 ac_header_compiler=yes 17122else 17123 echo "$as_me: failed program was:" >&5 17124sed 's/^/| /' conftest.$ac_ext >&5 17125 17126 ac_header_compiler=no 17127fi 17128 17129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17130{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17131echo "${ECHO_T}$ac_header_compiler" >&6; } 17132 17133# Is the header present? 17134{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17135echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17136cat >conftest.$ac_ext <<_ACEOF 17137/* confdefs.h. */ 17138_ACEOF 17139cat confdefs.h >>conftest.$ac_ext 17140cat >>conftest.$ac_ext <<_ACEOF 17141/* end confdefs.h. */ 17142#include <$ac_header> 17143_ACEOF 17144if { (ac_try="$ac_cpp conftest.$ac_ext" 17145case "(($ac_try" in 17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17147 *) ac_try_echo=$ac_try;; 17148esac 17149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17151 ac_status=$? 17152 grep -v '^ *+' conftest.er1 >conftest.err 17153 rm -f conftest.er1 17154 cat conftest.err >&5 17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17156 (exit $ac_status); } >/dev/null && { 17157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 17158 test ! -s conftest.err 17159 }; then 17160 ac_header_preproc=yes 17161else 17162 echo "$as_me: failed program was:" >&5 17163sed 's/^/| /' conftest.$ac_ext >&5 17164 17165 ac_header_preproc=no 17166fi 17167 17168rm -f conftest.err conftest.$ac_ext 17169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17170echo "${ECHO_T}$ac_header_preproc" >&6; } 17171 17172# So? What about this header? 17173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17174 yes:no: ) 17175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17179 ac_header_preproc=yes 17180 ;; 17181 no:yes:* ) 17182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17194 ( cat <<\_ASBOX 17195## -------------------------------------- ## 17196## Report this to [email protected] ## 17197## -------------------------------------- ## 17198_ASBOX 17199 ) | sed "s/^/$as_me: WARNING: /" >&2 17200 ;; 17201esac 17202{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17205 echo $ECHO_N "(cached) $ECHO_C" >&6 17206else 17207 eval "$as_ac_Header=\$ac_header_preproc" 17208fi 17209ac_res=`eval echo '${'$as_ac_Header'}'` 17210 { echo "$as_me:$LINENO: result: $ac_res" >&5 17211echo "${ECHO_T}$ac_res" >&6; } 17212 17213fi 17214if test `eval echo '${'$as_ac_Header'}'` = yes; then 17215 cat >>confdefs.h <<_ACEOF 17216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17217_ACEOF 17218 17219fi 17220 17221done 17222 17223 17224 { echo "$as_me:$LINENO: checking for OpenGL library" >&5 17225echo $ECHO_N "checking for OpenGL library... $ECHO_C" >&6; } 17226if test "${ax_cv_check_gl_libgl+set}" = set; then 17227 echo $ECHO_N "(cached) $ECHO_C" >&6 17228else 17229 ax_cv_check_gl_libgl="no" 17230 ax_save_CPPFLAGS="${CPPFLAGS}" 17231 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 17232 ax_save_LIBS="${LIBS}" 17233 LIBS="" 17234 ax_check_libs="-lopengl32 -lGL" 17235 for ax_lib in ${ax_check_libs}; do 17236 if test X$ax_compiler_ms = Xyes; then 17237 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 17238 else 17239 ax_try_lib="${ax_lib}" 17240 fi 17241 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 17242 cat >conftest.$ac_ext <<_ACEOF 17243/* confdefs.h. */ 17244_ACEOF 17245cat confdefs.h >>conftest.$ac_ext 17246cat >>conftest.$ac_ext <<_ACEOF 17247/* end confdefs.h. */ 17248 17249# if HAVE_WINDOWS_H && defined(_WIN32) 17250# include <windows.h> 17251# endif 17252# include <GL/gl.h> 17253int 17254main () 17255{ 17256glBegin(0) 17257 ; 17258 return 0; 17259} 17260_ACEOF 17261rm -f conftest.$ac_objext conftest$ac_exeext 17262if { (ac_try="$ac_link" 17263case "(($ac_try" in 17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17265 *) ac_try_echo=$ac_try;; 17266esac 17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17268 (eval "$ac_link") 2>conftest.er1 17269 ac_status=$? 17270 grep -v '^ *+' conftest.er1 >conftest.err 17271 rm -f conftest.er1 17272 cat conftest.err >&5 17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17274 (exit $ac_status); } && { 17275 test -z "$ac_c_werror_flag" || 17276 test ! -s conftest.err 17277 } && test -s conftest$ac_exeext && 17278 $as_test_x conftest$ac_exeext; then 17279 ax_cv_check_gl_libgl="${ax_try_lib}"; break 17280else 17281 echo "$as_me: failed program was:" >&5 17282sed 's/^/| /' conftest.$ac_ext >&5 17283 17284 17285fi 17286 17287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17288 conftest$ac_exeext conftest.$ac_ext 17289 done 17290 LIBS=${ax_save_LIBS} 17291 CPPFLAGS=${ax_save_CPPFLAGS} 17292fi 17293{ echo "$as_me:$LINENO: result: $ax_cv_check_gl_libgl" >&5 17294echo "${ECHO_T}$ax_cv_check_gl_libgl" >&6; } 17295 17296 if test "X${ax_cv_check_gl_libgl}" = "Xno"; then 17297 no_gl="yes" 17298 GL_CFLAGS="" 17299 GL_LIBS="" 17300 else 17301 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}" 17302 fi 17303 ac_ext=c 17304ac_cpp='$CPP $CPPFLAGS' 17305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17307ac_compiler_gnu=$ac_cv_c_compiler_gnu 17308 17309fi 17310 17311 17312 17313 17314 17315 17316ac_ext=cpp 17317ac_cpp='$CXXCPP $CPPFLAGS' 17318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17321if test -z "$CXX"; then 17322 if test -n "$CCC"; then 17323 CXX=$CCC 17324 else 17325 if test -n "$ac_tool_prefix"; then 17326 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 17327 do 17328 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 17329set dummy $ac_tool_prefix$ac_prog; ac_word=$2 17330{ echo "$as_me:$LINENO: checking for $ac_word" >&5 17331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 17332if test "${ac_cv_prog_CXX+set}" = set; then 17333 echo $ECHO_N "(cached) $ECHO_C" >&6 17334else 17335 if test -n "$CXX"; then 17336 ac_cv_prog_CXX="$CXX" # Let the user override the test. 17337else 17338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17339for as_dir in $PATH 17340do 17341 IFS=$as_save_IFS 17342 test -z "$as_dir" && as_dir=. 17343 for ac_exec_ext in '' $ac_executable_extensions; do 17344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17345 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 17346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17347 break 2 17348 fi 17349done 17350done 17351IFS=$as_save_IFS 17352 17353fi 17354fi 17355CXX=$ac_cv_prog_CXX 17356if test -n "$CXX"; then 17357 { echo "$as_me:$LINENO: result: $CXX" >&5 17358echo "${ECHO_T}$CXX" >&6; } 17359else 17360 { echo "$as_me:$LINENO: result: no" >&5 17361echo "${ECHO_T}no" >&6; } 17362fi 17363 17364 17365 test -n "$CXX" && break 17366 done 17367fi 17368if test -z "$CXX"; then 17369 ac_ct_CXX=$CXX 17370 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 17371do 17372 # Extract the first word of "$ac_prog", so it can be a program name with args. 17373set dummy $ac_prog; ac_word=$2 17374{ echo "$as_me:$LINENO: checking for $ac_word" >&5 17375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 17376if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 17377 echo $ECHO_N "(cached) $ECHO_C" >&6 17378else 17379 if test -n "$ac_ct_CXX"; then 17380 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 17381else 17382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17383for as_dir in $PATH 17384do 17385 IFS=$as_save_IFS 17386 test -z "$as_dir" && as_dir=. 17387 for ac_exec_ext in '' $ac_executable_extensions; do 17388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17389 ac_cv_prog_ac_ct_CXX="$ac_prog" 17390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17391 break 2 17392 fi 17393done 17394done 17395IFS=$as_save_IFS 17396 17397fi 17398fi 17399ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 17400if test -n "$ac_ct_CXX"; then 17401 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 17402echo "${ECHO_T}$ac_ct_CXX" >&6; } 17403else 17404 { echo "$as_me:$LINENO: result: no" >&5 17405echo "${ECHO_T}no" >&6; } 17406fi 17407 17408 17409 test -n "$ac_ct_CXX" && break 17410done 17411 17412 if test "x$ac_ct_CXX" = x; then 17413 CXX="g++" 17414 else 17415 case $cross_compiling:$ac_tool_warned in 17416yes:) 17417{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 17418whose name does not start with the host triplet. If you think this 17419configuration is useful to you, please write to [email protected]." >&5 17420echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 17421whose name does not start with the host triplet. If you think this 17422configuration is useful to you, please write to [email protected]." >&2;} 17423ac_tool_warned=yes ;; 17424esac 17425 CXX=$ac_ct_CXX 17426 fi 17427fi 17428 17429 fi 17430fi 17431# Provide some information about the compiler. 17432echo "$as_me:$LINENO: checking for C++ compiler version" >&5 17433ac_compiler=`set X $ac_compile; echo $2` 17434{ (ac_try="$ac_compiler --version >&5" 17435case "(($ac_try" in 17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17437 *) ac_try_echo=$ac_try;; 17438esac 17439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17440 (eval "$ac_compiler --version >&5") 2>&5 17441 ac_status=$? 17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17443 (exit $ac_status); } 17444{ (ac_try="$ac_compiler -v >&5" 17445case "(($ac_try" in 17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17447 *) ac_try_echo=$ac_try;; 17448esac 17449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17450 (eval "$ac_compiler -v >&5") 2>&5 17451 ac_status=$? 17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17453 (exit $ac_status); } 17454{ (ac_try="$ac_compiler -V >&5" 17455case "(($ac_try" in 17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17457 *) ac_try_echo=$ac_try;; 17458esac 17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17460 (eval "$ac_compiler -V >&5") 2>&5 17461 ac_status=$? 17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17463 (exit $ac_status); } 17464 17465{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 17466echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 17467if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 17468 echo $ECHO_N "(cached) $ECHO_C" >&6 17469else 17470 cat >conftest.$ac_ext <<_ACEOF 17471/* confdefs.h. */ 17472_ACEOF 17473cat confdefs.h >>conftest.$ac_ext 17474cat >>conftest.$ac_ext <<_ACEOF 17475/* end confdefs.h. */ 17476 17477int 17478main () 17479{ 17480#ifndef __GNUC__ 17481 choke me 17482#endif 17483 17484 ; 17485 return 0; 17486} 17487_ACEOF 17488rm -f conftest.$ac_objext 17489if { (ac_try="$ac_compile" 17490case "(($ac_try" in 17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17492 *) ac_try_echo=$ac_try;; 17493esac 17494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17495 (eval "$ac_compile") 2>conftest.er1 17496 ac_status=$? 17497 grep -v '^ *+' conftest.er1 >conftest.err 17498 rm -f conftest.er1 17499 cat conftest.err >&5 17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17501 (exit $ac_status); } && { 17502 test -z "$ac_cxx_werror_flag" || 17503 test ! -s conftest.err 17504 } && test -s conftest.$ac_objext; then 17505 ac_compiler_gnu=yes 17506else 17507 echo "$as_me: failed program was:" >&5 17508sed 's/^/| /' conftest.$ac_ext >&5 17509 17510 ac_compiler_gnu=no 17511fi 17512 17513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17514ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 17515 17516fi 17517{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 17518echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 17519GXX=`test $ac_compiler_gnu = yes && echo yes` 17520ac_test_CXXFLAGS=${CXXFLAGS+set} 17521ac_save_CXXFLAGS=$CXXFLAGS 17522{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 17523echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 17524if test "${ac_cv_prog_cxx_g+set}" = set; then 17525 echo $ECHO_N "(cached) $ECHO_C" >&6 17526else 17527 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 17528 ac_cxx_werror_flag=yes 17529 ac_cv_prog_cxx_g=no 17530 CXXFLAGS="-g" 17531 cat >conftest.$ac_ext <<_ACEOF 17532/* confdefs.h. */ 17533_ACEOF 17534cat confdefs.h >>conftest.$ac_ext 17535cat >>conftest.$ac_ext <<_ACEOF 17536/* end confdefs.h. */ 17537 17538int 17539main () 17540{ 17541 17542 ; 17543 return 0; 17544} 17545_ACEOF 17546rm -f conftest.$ac_objext 17547if { (ac_try="$ac_compile" 17548case "(($ac_try" in 17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17550 *) ac_try_echo=$ac_try;; 17551esac 17552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17553 (eval "$ac_compile") 2>conftest.er1 17554 ac_status=$? 17555 grep -v '^ *+' conftest.er1 >conftest.err 17556 rm -f conftest.er1 17557 cat conftest.err >&5 17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17559 (exit $ac_status); } && { 17560 test -z "$ac_cxx_werror_flag" || 17561 test ! -s conftest.err 17562 } && test -s conftest.$ac_objext; then 17563 ac_cv_prog_cxx_g=yes 17564else 17565 echo "$as_me: failed program was:" >&5 17566sed 's/^/| /' conftest.$ac_ext >&5 17567 17568 CXXFLAGS="" 17569 cat >conftest.$ac_ext <<_ACEOF 17570/* confdefs.h. */ 17571_ACEOF 17572cat confdefs.h >>conftest.$ac_ext 17573cat >>conftest.$ac_ext <<_ACEOF 17574/* end confdefs.h. */ 17575 17576int 17577main () 17578{ 17579 17580 ; 17581 return 0; 17582} 17583_ACEOF 17584rm -f conftest.$ac_objext 17585if { (ac_try="$ac_compile" 17586case "(($ac_try" in 17587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17588 *) ac_try_echo=$ac_try;; 17589esac 17590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17591 (eval "$ac_compile") 2>conftest.er1 17592 ac_status=$? 17593 grep -v '^ *+' conftest.er1 >conftest.err 17594 rm -f conftest.er1 17595 cat conftest.err >&5 17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17597 (exit $ac_status); } && { 17598 test -z "$ac_cxx_werror_flag" || 17599 test ! -s conftest.err 17600 } && test -s conftest.$ac_objext; then 17601 : 17602else 17603 echo "$as_me: failed program was:" >&5 17604sed 's/^/| /' conftest.$ac_ext >&5 17605 17606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17607 CXXFLAGS="-g" 17608 cat >conftest.$ac_ext <<_ACEOF 17609/* confdefs.h. */ 17610_ACEOF 17611cat confdefs.h >>conftest.$ac_ext 17612cat >>conftest.$ac_ext <<_ACEOF 17613/* end confdefs.h. */ 17614 17615int 17616main () 17617{ 17618 17619 ; 17620 return 0; 17621} 17622_ACEOF 17623rm -f conftest.$ac_objext 17624if { (ac_try="$ac_compile" 17625case "(($ac_try" in 17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17627 *) ac_try_echo=$ac_try;; 17628esac 17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17630 (eval "$ac_compile") 2>conftest.er1 17631 ac_status=$? 17632 grep -v '^ *+' conftest.er1 >conftest.err 17633 rm -f conftest.er1 17634 cat conftest.err >&5 17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17636 (exit $ac_status); } && { 17637 test -z "$ac_cxx_werror_flag" || 17638 test ! -s conftest.err 17639 } && test -s conftest.$ac_objext; then 17640 ac_cv_prog_cxx_g=yes 17641else 17642 echo "$as_me: failed program was:" >&5 17643sed 's/^/| /' conftest.$ac_ext >&5 17644 17645 17646fi 17647 17648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17649fi 17650 17651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17652fi 17653 17654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17655 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 17656fi 17657{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 17658echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 17659if test "$ac_test_CXXFLAGS" = set; then 17660 CXXFLAGS=$ac_save_CXXFLAGS 17661elif test $ac_cv_prog_cxx_g = yes; then 17662 if test "$GXX" = yes; then 17663 CXXFLAGS="-g -O2" 17664 else 17665 CXXFLAGS="-g" 17666 fi 17667else 17668 if test "$GXX" = yes; then 17669 CXXFLAGS="-O2" 17670 else 17671 CXXFLAGS= 17672 fi 17673fi 17674ac_ext=c 17675ac_cpp='$CPP $CPPFLAGS' 17676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17678ac_compiler_gnu=$ac_cv_c_compiler_gnu 17679 17680depcc="$CXX" am_compiler_list= 17681 17682{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 17683echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 17684if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 17685 echo $ECHO_N "(cached) $ECHO_C" >&6 17686else 17687 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17688 # We make a subdir and do the tests there. Otherwise we can end up 17689 # making bogus files that we don't know about and never remove. For 17690 # instance it was reported that on HP-UX the gcc test will end up 17691 # making a dummy file named `D' -- because `-MD' means `put the output 17692 # in D'. 17693 mkdir conftest.dir 17694 # Copy depcomp to subdir because otherwise we won't find it if we're 17695 # using a relative directory. 17696 cp "$am_depcomp" conftest.dir 17697 cd conftest.dir 17698 # We will build objects and dependencies in a subdirectory because 17699 # it helps to detect inapplicable dependency modes. For instance 17700 # both Tru64's cc and ICC support -MD to output dependencies as a 17701 # side effect of compilation, but ICC will put the dependencies in 17702 # the current directory while Tru64 will put them in the object 17703 # directory. 17704 mkdir sub 17705 17706 am_cv_CXX_dependencies_compiler_type=none 17707 if test "$am_compiler_list" = ""; then 17708 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17709 fi 17710 for depmode in $am_compiler_list; do 17711 # Setup a source with many dependencies, because some compilers 17712 # like to wrap large dependency lists on column 80 (with \), and 17713 # we should not choose a depcomp mode which is confused by this. 17714 # 17715 # We need to recreate these files for each test, as the compiler may 17716 # overwrite some of them when testing with obscure command lines. 17717 # This happens at least with the AIX C compiler. 17718 : > sub/conftest.c 17719 for i in 1 2 3 4 5 6; do 17720 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17721 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 17722 # Solaris 8's {/usr,}/bin/sh. 17723 touch sub/conftst$i.h 17724 done 17725 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17726 17727 case $depmode in 17728 nosideeffect) 17729 # after this tag, mechanisms are not by side-effect, so they'll 17730 # only be used when explicitly requested 17731 if test "x$enable_dependency_tracking" = xyes; then 17732 continue 17733 else 17734 break 17735 fi 17736 ;; 17737 none) break ;; 17738 esac 17739 # We check with `-c' and `-o' for the sake of the "dashmstdout" 17740 # mode. It turns out that the SunPro C++ compiler does not properly 17741 # handle `-M -o', and we need to detect this. 17742 if depmode=$depmode \ 17743 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 17744 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17745 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 17746 >/dev/null 2>conftest.err && 17747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17748 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 17749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17750 # icc doesn't choke on unknown options, it will just issue warnings 17751 # or remarks (even with -Werror). So we grep stderr for any message 17752 # that says an option was ignored or not supported. 17753 # When given -MP, icc 7.0 and 7.1 complain thusly: 17754 # icc: Command line warning: ignoring option '-M'; no argument required 17755 # The diagnosis changed in icc 8.0: 17756 # icc: Command line remark: option '-MP' not supported 17757 if (grep 'ignoring option' conftest.err || 17758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17759 am_cv_CXX_dependencies_compiler_type=$depmode 17760 break 17761 fi 17762 fi 17763 done 17764 17765 cd .. 17766 rm -rf conftest.dir 17767else 17768 am_cv_CXX_dependencies_compiler_type=none 17769fi 17770 17771fi 17772{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 17773echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 17774CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 17775 17776 17777 17778if 17779 test "x$enable_dependency_tracking" != xno \ 17780 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 17781 am__fastdepCXX_TRUE= 17782 am__fastdepCXX_FALSE='#' 17783else 17784 am__fastdepCXX_TRUE='#' 17785 am__fastdepCXX_FALSE= 17786fi 17787 17788 17789if test -n "$CXX" && ( test "X$CXX" != "Xno" && 17790 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 17791 (test "X$CXX" != "Xg++"))) ; then 17792 ac_ext=cpp 17793ac_cpp='$CXXCPP $CPPFLAGS' 17794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17797{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 17798echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 17799if test -z "$CXXCPP"; then 17800 if test "${ac_cv_prog_CXXCPP+set}" = set; then 17801 echo $ECHO_N "(cached) $ECHO_C" >&6 17802else 17803 # Double quotes because CXXCPP needs to be expanded 17804 for CXXCPP in "$CXX -E" "/lib/cpp" 17805 do 17806 ac_preproc_ok=false 17807for ac_cxx_preproc_warn_flag in '' yes 17808do 17809 # Use a header file that comes with gcc, so configuring glibc 17810 # with a fresh cross-compiler works. 17811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17812 # <limits.h> exists even on freestanding compilers. 17813 # On the NeXT, cc -E runs the code through the compiler's parser, 17814 # not just through cpp. "Syntax error" is here to catch this case. 17815 cat >conftest.$ac_ext <<_ACEOF 17816/* confdefs.h. */ 17817_ACEOF 17818cat confdefs.h >>conftest.$ac_ext 17819cat >>conftest.$ac_ext <<_ACEOF 17820/* end confdefs.h. */ 17821#ifdef __STDC__ 17822# include <limits.h> 17823#else 17824# include <assert.h> 17825#endif 17826 Syntax error 17827_ACEOF 17828if { (ac_try="$ac_cpp conftest.$ac_ext" 17829case "(($ac_try" in 17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17831 *) ac_try_echo=$ac_try;; 17832esac 17833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17835 ac_status=$? 17836 grep -v '^ *+' conftest.er1 >conftest.err 17837 rm -f conftest.er1 17838 cat conftest.err >&5 17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17840 (exit $ac_status); } >/dev/null && { 17841 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17842 test ! -s conftest.err 17843 }; then 17844 : 17845else 17846 echo "$as_me: failed program was:" >&5 17847sed 's/^/| /' conftest.$ac_ext >&5 17848 17849 # Broken: fails on valid input. 17850continue 17851fi 17852 17853rm -f conftest.err conftest.$ac_ext 17854 17855 # OK, works on sane cases. Now check whether nonexistent headers 17856 # can be detected and how. 17857 cat >conftest.$ac_ext <<_ACEOF 17858/* confdefs.h. */ 17859_ACEOF 17860cat confdefs.h >>conftest.$ac_ext 17861cat >>conftest.$ac_ext <<_ACEOF 17862/* end confdefs.h. */ 17863#include <ac_nonexistent.h> 17864_ACEOF 17865if { (ac_try="$ac_cpp conftest.$ac_ext" 17866case "(($ac_try" in 17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17868 *) ac_try_echo=$ac_try;; 17869esac 17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17872 ac_status=$? 17873 grep -v '^ *+' conftest.er1 >conftest.err 17874 rm -f conftest.er1 17875 cat conftest.err >&5 17876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17877 (exit $ac_status); } >/dev/null && { 17878 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17879 test ! -s conftest.err 17880 }; then 17881 # Broken: success on invalid input. 17882continue 17883else 17884 echo "$as_me: failed program was:" >&5 17885sed 's/^/| /' conftest.$ac_ext >&5 17886 17887 # Passes both tests. 17888ac_preproc_ok=: 17889break 17890fi 17891 17892rm -f conftest.err conftest.$ac_ext 17893 17894done 17895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17896rm -f conftest.err conftest.$ac_ext 17897if $ac_preproc_ok; then 17898 break 17899fi 17900 17901 done 17902 ac_cv_prog_CXXCPP=$CXXCPP 17903 17904fi 17905 CXXCPP=$ac_cv_prog_CXXCPP 17906else 17907 ac_cv_prog_CXXCPP=$CXXCPP 17908fi 17909{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 17910echo "${ECHO_T}$CXXCPP" >&6; } 17911ac_preproc_ok=false 17912for ac_cxx_preproc_warn_flag in '' yes 17913do 17914 # Use a header file that comes with gcc, so configuring glibc 17915 # with a fresh cross-compiler works. 17916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17917 # <limits.h> exists even on freestanding compilers. 17918 # On the NeXT, cc -E runs the code through the compiler's parser, 17919 # not just through cpp. "Syntax error" is here to catch this case. 17920 cat >conftest.$ac_ext <<_ACEOF 17921/* confdefs.h. */ 17922_ACEOF 17923cat confdefs.h >>conftest.$ac_ext 17924cat >>conftest.$ac_ext <<_ACEOF 17925/* end confdefs.h. */ 17926#ifdef __STDC__ 17927# include <limits.h> 17928#else 17929# include <assert.h> 17930#endif 17931 Syntax error 17932_ACEOF 17933if { (ac_try="$ac_cpp conftest.$ac_ext" 17934case "(($ac_try" in 17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17936 *) ac_try_echo=$ac_try;; 17937esac 17938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17940 ac_status=$? 17941 grep -v '^ *+' conftest.er1 >conftest.err 17942 rm -f conftest.er1 17943 cat conftest.err >&5 17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17945 (exit $ac_status); } >/dev/null && { 17946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17947 test ! -s conftest.err 17948 }; then 17949 : 17950else 17951 echo "$as_me: failed program was:" >&5 17952sed 's/^/| /' conftest.$ac_ext >&5 17953 17954 # Broken: fails on valid input. 17955continue 17956fi 17957 17958rm -f conftest.err conftest.$ac_ext 17959 17960 # OK, works on sane cases. Now check whether nonexistent headers 17961 # can be detected and how. 17962 cat >conftest.$ac_ext <<_ACEOF 17963/* confdefs.h. */ 17964_ACEOF 17965cat confdefs.h >>conftest.$ac_ext 17966cat >>conftest.$ac_ext <<_ACEOF 17967/* end confdefs.h. */ 17968#include <ac_nonexistent.h> 17969_ACEOF 17970if { (ac_try="$ac_cpp conftest.$ac_ext" 17971case "(($ac_try" in 17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17973 *) ac_try_echo=$ac_try;; 17974esac 17975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17977 ac_status=$? 17978 grep -v '^ *+' conftest.er1 >conftest.err 17979 rm -f conftest.er1 17980 cat conftest.err >&5 17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17982 (exit $ac_status); } >/dev/null && { 17983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 17984 test ! -s conftest.err 17985 }; then 17986 # Broken: success on invalid input. 17987continue 17988else 17989 echo "$as_me: failed program was:" >&5 17990sed 's/^/| /' conftest.$ac_ext >&5 17991 17992 # Passes both tests. 17993ac_preproc_ok=: 17994break 17995fi 17996 17997rm -f conftest.err conftest.$ac_ext 17998 17999done 18000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 18001rm -f conftest.err conftest.$ac_ext 18002if $ac_preproc_ok; then 18003 : 18004else 18005 _lt_caught_CXX_error=yes 18006fi 18007 18008ac_ext=c 18009ac_cpp='$CPP $CPPFLAGS' 18010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18012ac_compiler_gnu=$ac_cv_c_compiler_gnu 18013 18014else 18015 _lt_caught_CXX_error=yes 18016fi 18017 18018 18019 18020ac_ext=cpp 18021ac_cpp='$CXXCPP $CPPFLAGS' 18022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18025if test -z "$CXX"; then 18026 if test -n "$CCC"; then 18027 CXX=$CCC 18028 else 18029 if test -n "$ac_tool_prefix"; then 18030 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 18031 do 18032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18033set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18034{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18036if test "${ac_cv_prog_CXX+set}" = set; then 18037 echo $ECHO_N "(cached) $ECHO_C" >&6 18038else 18039 if test -n "$CXX"; then 18040 ac_cv_prog_CXX="$CXX" # Let the user override the test. 18041else 18042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18043for as_dir in $PATH 18044do 18045 IFS=$as_save_IFS 18046 test -z "$as_dir" && as_dir=. 18047 for ac_exec_ext in '' $ac_executable_extensions; do 18048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18049 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 18050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18051 break 2 18052 fi 18053done 18054done 18055IFS=$as_save_IFS 18056 18057fi 18058fi 18059CXX=$ac_cv_prog_CXX 18060if test -n "$CXX"; then 18061 { echo "$as_me:$LINENO: result: $CXX" >&5 18062echo "${ECHO_T}$CXX" >&6; } 18063else 18064 { echo "$as_me:$LINENO: result: no" >&5 18065echo "${ECHO_T}no" >&6; } 18066fi 18067 18068 18069 test -n "$CXX" && break 18070 done 18071fi 18072if test -z "$CXX"; then 18073 ac_ct_CXX=$CXX 18074 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 18075do 18076 # Extract the first word of "$ac_prog", so it can be a program name with args. 18077set dummy $ac_prog; ac_word=$2 18078{ echo "$as_me:$LINENO: checking for $ac_word" >&5 18079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 18080if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 18081 echo $ECHO_N "(cached) $ECHO_C" >&6 18082else 18083 if test -n "$ac_ct_CXX"; then 18084 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 18085else 18086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18087for as_dir in $PATH 18088do 18089 IFS=$as_save_IFS 18090 test -z "$as_dir" && as_dir=. 18091 for ac_exec_ext in '' $ac_executable_extensions; do 18092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18093 ac_cv_prog_ac_ct_CXX="$ac_prog" 18094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18095 break 2 18096 fi 18097done 18098done 18099IFS=$as_save_IFS 18100 18101fi 18102fi 18103ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 18104if test -n "$ac_ct_CXX"; then 18105 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 18106echo "${ECHO_T}$ac_ct_CXX" >&6; } 18107else 18108 { echo "$as_me:$LINENO: result: no" >&5 18109echo "${ECHO_T}no" >&6; } 18110fi 18111 18112 18113 test -n "$ac_ct_CXX" && break 18114done 18115 18116 if test "x$ac_ct_CXX" = x; then 18117 CXX="g++" 18118 else 18119 case $cross_compiling:$ac_tool_warned in 18120yes:) 18121{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 18122whose name does not start with the host triplet. If you think this 18123configuration is useful to you, please write to [email protected]." >&5 18124echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 18125whose name does not start with the host triplet. If you think this 18126configuration is useful to you, please write to [email protected]." >&2;} 18127ac_tool_warned=yes ;; 18128esac 18129 CXX=$ac_ct_CXX 18130 fi 18131fi 18132 18133 fi 18134fi 18135# Provide some information about the compiler. 18136echo "$as_me:$LINENO: checking for C++ compiler version" >&5 18137ac_compiler=`set X $ac_compile; echo $2` 18138{ (ac_try="$ac_compiler --version >&5" 18139case "(($ac_try" in 18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18141 *) ac_try_echo=$ac_try;; 18142esac 18143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18144 (eval "$ac_compiler --version >&5") 2>&5 18145 ac_status=$? 18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18147 (exit $ac_status); } 18148{ (ac_try="$ac_compiler -v >&5" 18149case "(($ac_try" in 18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18151 *) ac_try_echo=$ac_try;; 18152esac 18153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18154 (eval "$ac_compiler -v >&5") 2>&5 18155 ac_status=$? 18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18157 (exit $ac_status); } 18158{ (ac_try="$ac_compiler -V >&5" 18159case "(($ac_try" in 18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18161 *) ac_try_echo=$ac_try;; 18162esac 18163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18164 (eval "$ac_compiler -V >&5") 2>&5 18165 ac_status=$? 18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18167 (exit $ac_status); } 18168 18169{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 18170echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 18171if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 18172 echo $ECHO_N "(cached) $ECHO_C" >&6 18173else 18174 cat >conftest.$ac_ext <<_ACEOF 18175/* confdefs.h. */ 18176_ACEOF 18177cat confdefs.h >>conftest.$ac_ext 18178cat >>conftest.$ac_ext <<_ACEOF 18179/* end confdefs.h. */ 18180 18181int 18182main () 18183{ 18184#ifndef __GNUC__ 18185 choke me 18186#endif 18187 18188 ; 18189 return 0; 18190} 18191_ACEOF 18192rm -f conftest.$ac_objext 18193if { (ac_try="$ac_compile" 18194case "(($ac_try" in 18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18196 *) ac_try_echo=$ac_try;; 18197esac 18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18199 (eval "$ac_compile") 2>conftest.er1 18200 ac_status=$? 18201 grep -v '^ *+' conftest.er1 >conftest.err 18202 rm -f conftest.er1 18203 cat conftest.err >&5 18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18205 (exit $ac_status); } && { 18206 test -z "$ac_cxx_werror_flag" || 18207 test ! -s conftest.err 18208 } && test -s conftest.$ac_objext; then 18209 ac_compiler_gnu=yes 18210else 18211 echo "$as_me: failed program was:" >&5 18212sed 's/^/| /' conftest.$ac_ext >&5 18213 18214 ac_compiler_gnu=no 18215fi 18216 18217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18218ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 18219 18220fi 18221{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 18222echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 18223GXX=`test $ac_compiler_gnu = yes && echo yes` 18224ac_test_CXXFLAGS=${CXXFLAGS+set} 18225ac_save_CXXFLAGS=$CXXFLAGS 18226{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 18227echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 18228if test "${ac_cv_prog_cxx_g+set}" = set; then 18229 echo $ECHO_N "(cached) $ECHO_C" >&6 18230else 18231 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 18232 ac_cxx_werror_flag=yes 18233 ac_cv_prog_cxx_g=no 18234 CXXFLAGS="-g" 18235 cat >conftest.$ac_ext <<_ACEOF 18236/* confdefs.h. */ 18237_ACEOF 18238cat confdefs.h >>conftest.$ac_ext 18239cat >>conftest.$ac_ext <<_ACEOF 18240/* end confdefs.h. */ 18241 18242int 18243main () 18244{ 18245 18246 ; 18247 return 0; 18248} 18249_ACEOF 18250rm -f conftest.$ac_objext 18251if { (ac_try="$ac_compile" 18252case "(($ac_try" in 18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18254 *) ac_try_echo=$ac_try;; 18255esac 18256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18257 (eval "$ac_compile") 2>conftest.er1 18258 ac_status=$? 18259 grep -v '^ *+' conftest.er1 >conftest.err 18260 rm -f conftest.er1 18261 cat conftest.err >&5 18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18263 (exit $ac_status); } && { 18264 test -z "$ac_cxx_werror_flag" || 18265 test ! -s conftest.err 18266 } && test -s conftest.$ac_objext; then 18267 ac_cv_prog_cxx_g=yes 18268else 18269 echo "$as_me: failed program was:" >&5 18270sed 's/^/| /' conftest.$ac_ext >&5 18271 18272 CXXFLAGS="" 18273 cat >conftest.$ac_ext <<_ACEOF 18274/* confdefs.h. */ 18275_ACEOF 18276cat confdefs.h >>conftest.$ac_ext 18277cat >>conftest.$ac_ext <<_ACEOF 18278/* end confdefs.h. */ 18279 18280int 18281main () 18282{ 18283 18284 ; 18285 return 0; 18286} 18287_ACEOF 18288rm -f conftest.$ac_objext 18289if { (ac_try="$ac_compile" 18290case "(($ac_try" in 18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18292 *) ac_try_echo=$ac_try;; 18293esac 18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18295 (eval "$ac_compile") 2>conftest.er1 18296 ac_status=$? 18297 grep -v '^ *+' conftest.er1 >conftest.err 18298 rm -f conftest.er1 18299 cat conftest.err >&5 18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18301 (exit $ac_status); } && { 18302 test -z "$ac_cxx_werror_flag" || 18303 test ! -s conftest.err 18304 } && test -s conftest.$ac_objext; then 18305 : 18306else 18307 echo "$as_me: failed program was:" >&5 18308sed 's/^/| /' conftest.$ac_ext >&5 18309 18310 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 18311 CXXFLAGS="-g" 18312 cat >conftest.$ac_ext <<_ACEOF 18313/* confdefs.h. */ 18314_ACEOF 18315cat confdefs.h >>conftest.$ac_ext 18316cat >>conftest.$ac_ext <<_ACEOF 18317/* end confdefs.h. */ 18318 18319int 18320main () 18321{ 18322 18323 ; 18324 return 0; 18325} 18326_ACEOF 18327rm -f conftest.$ac_objext 18328if { (ac_try="$ac_compile" 18329case "(($ac_try" in 18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18331 *) ac_try_echo=$ac_try;; 18332esac 18333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18334 (eval "$ac_compile") 2>conftest.er1 18335 ac_status=$? 18336 grep -v '^ *+' conftest.er1 >conftest.err 18337 rm -f conftest.er1 18338 cat conftest.err >&5 18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18340 (exit $ac_status); } && { 18341 test -z "$ac_cxx_werror_flag" || 18342 test ! -s conftest.err 18343 } && test -s conftest.$ac_objext; then 18344 ac_cv_prog_cxx_g=yes 18345else 18346 echo "$as_me: failed program was:" >&5 18347sed 's/^/| /' conftest.$ac_ext >&5 18348 18349 18350fi 18351 18352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18353fi 18354 18355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18356fi 18357 18358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 18360fi 18361{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 18362echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 18363if test "$ac_test_CXXFLAGS" = set; then 18364 CXXFLAGS=$ac_save_CXXFLAGS 18365elif test $ac_cv_prog_cxx_g = yes; then 18366 if test "$GXX" = yes; then 18367 CXXFLAGS="-g -O2" 18368 else 18369 CXXFLAGS="-g" 18370 fi 18371else 18372 if test "$GXX" = yes; then 18373 CXXFLAGS="-O2" 18374 else 18375 CXXFLAGS= 18376 fi 18377fi 18378ac_ext=c 18379ac_cpp='$CPP $CPPFLAGS' 18380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18382ac_compiler_gnu=$ac_cv_c_compiler_gnu 18383 18384depcc="$CXX" am_compiler_list= 18385 18386{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 18387echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 18388if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 18389 echo $ECHO_N "(cached) $ECHO_C" >&6 18390else 18391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 18392 # We make a subdir and do the tests there. Otherwise we can end up 18393 # making bogus files that we don't know about and never remove. For 18394 # instance it was reported that on HP-UX the gcc test will end up 18395 # making a dummy file named `D' -- because `-MD' means `put the output 18396 # in D'. 18397 mkdir conftest.dir 18398 # Copy depcomp to subdir because otherwise we won't find it if we're 18399 # using a relative directory. 18400 cp "$am_depcomp" conftest.dir 18401 cd conftest.dir 18402 # We will build objects and dependencies in a subdirectory because 18403 # it helps to detect inapplicable dependency modes. For instance 18404 # both Tru64's cc and ICC support -MD to output dependencies as a 18405 # side effect of compilation, but ICC will put the dependencies in 18406 # the current directory while Tru64 will put them in the object 18407 # directory. 18408 mkdir sub 18409 18410 am_cv_CXX_dependencies_compiler_type=none 18411 if test "$am_compiler_list" = ""; then 18412 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 18413 fi 18414 for depmode in $am_compiler_list; do 18415 # Setup a source with many dependencies, because some compilers 18416 # like to wrap large dependency lists on column 80 (with \), and 18417 # we should not choose a depcomp mode which is confused by this. 18418 # 18419 # We need to recreate these files for each test, as the compiler may 18420 # overwrite some of them when testing with obscure command lines. 18421 # This happens at least with the AIX C compiler. 18422 : > sub/conftest.c 18423 for i in 1 2 3 4 5 6; do 18424 echo '#include "conftst'$i'.h"' >> sub/conftest.c 18425 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 18426 # Solaris 8's {/usr,}/bin/sh. 18427 touch sub/conftst$i.h 18428 done 18429 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 18430 18431 case $depmode in 18432 nosideeffect) 18433 # after this tag, mechanisms are not by side-effect, so they'll 18434 # only be used when explicitly requested 18435 if test "x$enable_dependency_tracking" = xyes; then 18436 continue 18437 else 18438 break 18439 fi 18440 ;; 18441 none) break ;; 18442 esac 18443 # We check with `-c' and `-o' for the sake of the "dashmstdout" 18444 # mode. It turns out that the SunPro C++ compiler does not properly 18445 # handle `-M -o', and we need to detect this. 18446 if depmode=$depmode \ 18447 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 18448 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 18449 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 18450 >/dev/null 2>conftest.err && 18451 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 18452 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 18453 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 18454 # icc doesn't choke on unknown options, it will just issue warnings 18455 # or remarks (even with -Werror). So we grep stderr for any message 18456 # that says an option was ignored or not supported. 18457 # When given -MP, icc 7.0 and 7.1 complain thusly: 18458 # icc: Command line warning: ignoring option '-M'; no argument required 18459 # The diagnosis changed in icc 8.0: 18460 # icc: Command line remark: option '-MP' not supported 18461 if (grep 'ignoring option' conftest.err || 18462 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 18463 am_cv_CXX_dependencies_compiler_type=$depmode 18464 break 18465 fi 18466 fi 18467 done 18468 18469 cd .. 18470 rm -rf conftest.dir 18471else 18472 am_cv_CXX_dependencies_compiler_type=none 18473fi 18474 18475fi 18476{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 18477echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 18478CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 18479 18480 18481 18482if 18483 test "x$enable_dependency_tracking" != xno \ 18484 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 18485 am__fastdepCXX_TRUE= 18486 am__fastdepCXX_FALSE='#' 18487else 18488 am__fastdepCXX_TRUE='#' 18489 am__fastdepCXX_FALSE= 18490fi 18491 18492 18493ac_ext=cpp 18494ac_cpp='$CXXCPP $CPPFLAGS' 18495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18498 18499archive_cmds_need_lc_CXX=no 18500allow_undefined_flag_CXX= 18501always_export_symbols_CXX=no 18502archive_expsym_cmds_CXX= 18503compiler_needs_object_CXX=no 18504export_dynamic_flag_spec_CXX= 18505hardcode_direct_CXX=no 18506hardcode_direct_absolute_CXX=no 18507hardcode_libdir_flag_spec_CXX= 18508hardcode_libdir_flag_spec_ld_CXX= 18509hardcode_libdir_separator_CXX= 18510hardcode_minus_L_CXX=no 18511hardcode_shlibpath_var_CXX=unsupported 18512hardcode_automatic_CXX=no 18513inherit_rpath_CXX=no 18514module_cmds_CXX= 18515module_expsym_cmds_CXX= 18516link_all_deplibs_CXX=unknown 18517old_archive_cmds_CXX=$old_archive_cmds 18518no_undefined_flag_CXX= 18519whole_archive_flag_spec_CXX= 18520enable_shared_with_static_runtimes_CXX=no 18521 18522# Source file extension for C++ test sources. 18523ac_ext=cpp 18524 18525# Object file extension for compiled C++ test sources. 18526objext=o 18527objext_CXX=$objext 18528 18529# No sense in running all these tests if we already determined that 18530# the CXX compiler isn't working. Some variables (like enable_shared) 18531# are currently assumed to apply to all compilers on this platform, 18532# and will be corrupted by setting them based on a non-working compiler. 18533if test "$_lt_caught_CXX_error" != yes; then 18534 # Code to be used in simple compile tests 18535 lt_simple_compile_test_code="int some_variable = 0;" 18536 18537 # Code to be used in simple link tests 18538 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 18539 18540 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18541 18542 18543 18544 18545 18546 18547# If no C compiler was specified, use CC. 18548LTCC=${LTCC-"$CC"} 18549 18550# If no C compiler flags were specified, use CFLAGS. 18551LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18552 18553# Allow CC to be a program name with arguments. 18554compiler=$CC 18555 18556 18557 # save warnings/boilerplate of simple test code 18558 ac_outfile=conftest.$ac_objext 18559echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18560eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18561_lt_compiler_boilerplate=`cat conftest.err` 18562$RM conftest* 18563 18564 ac_outfile=conftest.$ac_objext 18565echo "$lt_simple_link_test_code" >conftest.$ac_ext 18566eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18567_lt_linker_boilerplate=`cat conftest.err` 18568$RM conftest* 18569 18570 18571 # Allow CC to be a program name with arguments. 18572 lt_save_CC=$CC 18573 lt_save_LD=$LD 18574 lt_save_GCC=$GCC 18575 GCC=$GXX 18576 lt_save_with_gnu_ld=$with_gnu_ld 18577 lt_save_path_LD=$lt_cv_path_LD 18578 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 18579 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 18580 else 18581 $as_unset lt_cv_prog_gnu_ld 18582 fi 18583 if test -n "${lt_cv_path_LDCXX+set}"; then 18584 lt_cv_path_LD=$lt_cv_path_LDCXX 18585 else 18586 $as_unset lt_cv_path_LD 18587 fi 18588 test -z "${LDCXX+set}" || LD=$LDCXX 18589 CC=${CXX-"c++"} 18590 compiler=$CC 18591 compiler_CXX=$CC 18592 for cc_temp in $compiler""; do 18593 case $cc_temp in 18594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18596 \-*) ;; 18597 *) break;; 18598 esac 18599done 18600cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18601 18602 18603 if test -n "$compiler"; then 18604 # We don't want -fno-exception when compiling C++ code, so set the 18605 # no_builtin_flag separately 18606 if test "$GXX" = yes; then 18607 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 18608 else 18609 lt_prog_compiler_no_builtin_flag_CXX= 18610 fi 18611 18612 if test "$GXX" = yes; then 18613 # Set up default GNU C++ configuration 18614 18615 18616 18617# Check whether --with-gnu-ld was given. 18618if test "${with_gnu_ld+set}" = set; then 18619 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 18620else 18621 with_gnu_ld=no 18622fi 18623 18624ac_prog=ld 18625if test "$GCC" = yes; then 18626 # Check if gcc -print-prog-name=ld gives a path. 18627 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 18628echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 18629 case $host in 18630 *-*-mingw*) 18631 # gcc leaves a trailing carriage return which upsets mingw 18632 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18633 *) 18634 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 18635 esac 18636 case $ac_prog in 18637 # Accept absolute paths. 18638 [\\/]* | ?:[\\/]*) 18639 re_direlt='/[^/][^/]*/\.\./' 18640 # Canonicalize the pathname of ld 18641 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 18642 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 18643 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 18644 done 18645 test -z "$LD" && LD="$ac_prog" 18646 ;; 18647 "") 18648 # If it fails, then pretend we aren't using GCC. 18649 ac_prog=ld 18650 ;; 18651 *) 18652 # If it is relative, then search for the first ld in PATH. 18653 with_gnu_ld=unknown 18654 ;; 18655 esac 18656elif test "$with_gnu_ld" = yes; then 18657 { echo "$as_me:$LINENO: checking for GNU ld" >&5 18658echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 18659else 18660 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 18661echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 18662fi 18663if test "${lt_cv_path_LD+set}" = set; then 18664 echo $ECHO_N "(cached) $ECHO_C" >&6 18665else 18666 if test -z "$LD"; then 18667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 18668 for ac_dir in $PATH; do 18669 IFS="$lt_save_ifs" 18670 test -z "$ac_dir" && ac_dir=. 18671 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 18672 lt_cv_path_LD="$ac_dir/$ac_prog" 18673 # Check to see if the program is GNU ld. I'd rather use --version, 18674 # but apparently some variants of GNU ld only accept -v. 18675 # Break only if it was the GNU/non-GNU ld that we prefer. 18676 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 18677 *GNU* | *'with BFD'*) 18678 test "$with_gnu_ld" != no && break 18679 ;; 18680 *) 18681 test "$with_gnu_ld" != yes && break 18682 ;; 18683 esac 18684 fi 18685 done 18686 IFS="$lt_save_ifs" 18687else 18688 lt_cv_path_LD="$LD" # Let the user override the test with a path. 18689fi 18690fi 18691 18692LD="$lt_cv_path_LD" 18693if test -n "$LD"; then 18694 { echo "$as_me:$LINENO: result: $LD" >&5 18695echo "${ECHO_T}$LD" >&6; } 18696else 18697 { echo "$as_me:$LINENO: result: no" >&5 18698echo "${ECHO_T}no" >&6; } 18699fi 18700test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 18701echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 18702 { (exit 1); exit 1; }; } 18703{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 18704echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 18705if test "${lt_cv_prog_gnu_ld+set}" = set; then 18706 echo $ECHO_N "(cached) $ECHO_C" >&6 18707else 18708 # I'd rather use --version here, but apparently some GNU lds only accept -v. 18709case `$LD -v 2>&1 </dev/null` in 18710*GNU* | *'with BFD'*) 18711 lt_cv_prog_gnu_ld=yes 18712 ;; 18713*) 18714 lt_cv_prog_gnu_ld=no 18715 ;; 18716esac 18717fi 18718{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 18719echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 18720with_gnu_ld=$lt_cv_prog_gnu_ld 18721 18722 18723 18724 18725 18726 18727 18728 # Check if GNU C++ uses GNU ld as the underlying linker, since the 18729 # archiving commands below assume that GNU ld is being used. 18730 if test "$with_gnu_ld" = yes; then 18731 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18732 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18733 18734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18735 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18736 18737 # If archive_cmds runs LD, not CC, wlarc should be empty 18738 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 18739 # investigate it a little bit more. (MM) 18740 wlarc='${wl}' 18741 18742 # ancient GNU ld didn't support --whole-archive et. al. 18743 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 18744 $GREP 'no-whole-archive' > /dev/null; then 18745 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18746 else 18747 whole_archive_flag_spec_CXX= 18748 fi 18749 else 18750 with_gnu_ld=no 18751 wlarc= 18752 18753 # A generic and very simple default shared library creation 18754 # command for GNU C++ for the case where it uses the native 18755 # linker, instead of GNU ld. If possible, this setting should 18756 # overridden to take advantage of the native linker features on 18757 # the platform it is being used on. 18758 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18759 fi 18760 18761 # Commands to make compiler produce verbose output that lists 18762 # what "hidden" libraries, object files and flags are used when 18763 # linking a shared library. 18764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 18765 18766 else 18767 GXX=no 18768 with_gnu_ld=no 18769 wlarc= 18770 fi 18771 18772 # PORTME: fill in a description of your system's C++ link characteristics 18773 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18774echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18775 ld_shlibs_CXX=yes 18776 case $host_os in 18777 aix3*) 18778 # FIXME: insert proper C++ library support 18779 ld_shlibs_CXX=no 18780 ;; 18781 aix4* | aix5*) 18782 if test "$host_cpu" = ia64; then 18783 # On IA64, the linker does run time linking by default, so we don't 18784 # have to do anything special. 18785 aix_use_runtimelinking=no 18786 exp_sym_flag='-Bexport' 18787 no_entry_flag="" 18788 else 18789 aix_use_runtimelinking=no 18790 18791 # Test if we are trying to use run time linking or normal 18792 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18793 # need to do runtime linking. 18794 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18795 for ld_flag in $LDFLAGS; do 18796 case $ld_flag in 18797 *-brtl*) 18798 aix_use_runtimelinking=yes 18799 break 18800 ;; 18801 esac 18802 done 18803 ;; 18804 esac 18805 18806 exp_sym_flag='-bexport' 18807 no_entry_flag='-bnoentry' 18808 fi 18809 18810 # When large executables or shared objects are built, AIX ld can 18811 # have problems creating the table of contents. If linking a library 18812 # or program results in "error TOC overflow" add -mminimal-toc to 18813 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18814 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18815 18816 archive_cmds_CXX='' 18817 hardcode_direct_CXX=yes 18818 hardcode_direct_absolute_CXX=yes 18819 hardcode_libdir_separator_CXX=':' 18820 link_all_deplibs_CXX=yes 18821 file_list_spec_CXX='${wl}-f,' 18822 18823 if test "$GXX" = yes; then 18824 case $host_os in aix4.[012]|aix4.[012].*) 18825 # We only want to do this on AIX 4.2 and lower, the check 18826 # below for broken collect2 doesn't work under 4.3+ 18827 collect2name=`${CC} -print-prog-name=collect2` 18828 if test -f "$collect2name" && 18829 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 18830 then 18831 # We have reworked collect2 18832 : 18833 else 18834 # We have old collect2 18835 hardcode_direct_CXX=unsupported 18836 # It fails to find uninstalled libraries when the uninstalled 18837 # path is not listed in the libpath. Setting hardcode_minus_L 18838 # to unsupported forces relinking 18839 hardcode_minus_L_CXX=yes 18840 hardcode_libdir_flag_spec_CXX='-L$libdir' 18841 hardcode_libdir_separator_CXX= 18842 fi 18843 esac 18844 shared_flag='-shared' 18845 if test "$aix_use_runtimelinking" = yes; then 18846 shared_flag="$shared_flag "'${wl}-G' 18847 fi 18848 else 18849 # not using gcc 18850 if test "$host_cpu" = ia64; then 18851 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18852 # chokes on -Wl,-G. The following line is correct: 18853 shared_flag='-G' 18854 else 18855 if test "$aix_use_runtimelinking" = yes; then 18856 shared_flag='${wl}-G' 18857 else 18858 shared_flag='${wl}-bM:SRE' 18859 fi 18860 fi 18861 fi 18862 18863 # It seems that -bexpall does not export symbols beginning with 18864 # underscore (_), so it is better to generate a list of symbols to 18865 # export. 18866 always_export_symbols_CXX=yes 18867 if test "$aix_use_runtimelinking" = yes; then 18868 # Warning - without using the other runtime loading flags (-brtl), 18869 # -berok will link without error, but may produce a broken library. 18870 allow_undefined_flag_CXX='-berok' 18871 # Determine the default libpath from the value encoded in an empty 18872 # executable. 18873 cat >conftest.$ac_ext <<_ACEOF 18874/* confdefs.h. */ 18875_ACEOF 18876cat confdefs.h >>conftest.$ac_ext 18877cat >>conftest.$ac_ext <<_ACEOF 18878/* end confdefs.h. */ 18879 18880int 18881main () 18882{ 18883 18884 ; 18885 return 0; 18886} 18887_ACEOF 18888rm -f conftest.$ac_objext conftest$ac_exeext 18889if { (ac_try="$ac_link" 18890case "(($ac_try" in 18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18892 *) ac_try_echo=$ac_try;; 18893esac 18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18895 (eval "$ac_link") 2>conftest.er1 18896 ac_status=$? 18897 grep -v '^ *+' conftest.er1 >conftest.err 18898 rm -f conftest.er1 18899 cat conftest.err >&5 18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18901 (exit $ac_status); } && { 18902 test -z "$ac_cxx_werror_flag" || 18903 test ! -s conftest.err 18904 } && test -s conftest$ac_exeext && 18905 $as_test_x conftest$ac_exeext; then 18906 18907lt_aix_libpath_sed=' 18908 /Import File Strings/,/^$/ { 18909 /^0/ { 18910 s/^0 *\(.*\)$/\1/ 18911 p 18912 } 18913 }' 18914aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18915# Check for a 64-bit object if we didn't find anything. 18916if test -z "$aix_libpath"; then 18917 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18918fi 18919else 18920 echo "$as_me: failed program was:" >&5 18921sed 's/^/| /' conftest.$ac_ext >&5 18922 18923 18924fi 18925 18926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18927 conftest$ac_exeext conftest.$ac_ext 18928if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18929 18930 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18931 18932 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18933 else 18934 if test "$host_cpu" = ia64; then 18935 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 18936 allow_undefined_flag_CXX="-z nodefs" 18937 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 18938 else 18939 # Determine the default libpath from the value encoded in an 18940 # empty executable. 18941 cat >conftest.$ac_ext <<_ACEOF 18942/* confdefs.h. */ 18943_ACEOF 18944cat confdefs.h >>conftest.$ac_ext 18945cat >>conftest.$ac_ext <<_ACEOF 18946/* end confdefs.h. */ 18947 18948int 18949main () 18950{ 18951 18952 ; 18953 return 0; 18954} 18955_ACEOF 18956rm -f conftest.$ac_objext conftest$ac_exeext 18957if { (ac_try="$ac_link" 18958case "(($ac_try" in 18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18960 *) ac_try_echo=$ac_try;; 18961esac 18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18963 (eval "$ac_link") 2>conftest.er1 18964 ac_status=$? 18965 grep -v '^ *+' conftest.er1 >conftest.err 18966 rm -f conftest.er1 18967 cat conftest.err >&5 18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18969 (exit $ac_status); } && { 18970 test -z "$ac_cxx_werror_flag" || 18971 test ! -s conftest.err 18972 } && test -s conftest$ac_exeext && 18973 $as_test_x conftest$ac_exeext; then 18974 18975lt_aix_libpath_sed=' 18976 /Import File Strings/,/^$/ { 18977 /^0/ { 18978 s/^0 *\(.*\)$/\1/ 18979 p 18980 } 18981 }' 18982aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18983# Check for a 64-bit object if we didn't find anything. 18984if test -z "$aix_libpath"; then 18985 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18986fi 18987else 18988 echo "$as_me: failed program was:" >&5 18989sed 's/^/| /' conftest.$ac_ext >&5 18990 18991 18992fi 18993 18994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18995 conftest$ac_exeext conftest.$ac_ext 18996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18997 18998 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 18999 # Warning - without using the other run time loading flags, 19000 # -berok will link without error, but may produce a broken library. 19001 no_undefined_flag_CXX=' ${wl}-bernotok' 19002 allow_undefined_flag_CXX=' ${wl}-berok' 19003 # Exported symbols can be pulled into shared objects from archives 19004 whole_archive_flag_spec_CXX='$convenience' 19005 archive_cmds_need_lc_CXX=yes 19006 # This is similar to how AIX traditionally builds its shared 19007 # libraries. 19008 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 19009 fi 19010 fi 19011 ;; 19012 19013 beos*) 19014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19015 allow_undefined_flag_CXX=unsupported 19016 # Joseph Beckenbach <[email protected]> says some releases of gcc 19017 # support --undefined. This deserves some investigation. FIXME 19018 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19019 else 19020 ld_shlibs_CXX=no 19021 fi 19022 ;; 19023 19024 chorus*) 19025 case $cc_basename in 19026 *) 19027 # FIXME: insert proper C++ library support 19028 ld_shlibs_CXX=no 19029 ;; 19030 esac 19031 ;; 19032 19033 cygwin* | mingw* | pw32*) 19034 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 19035 # as there is no search path for DLLs. 19036 hardcode_libdir_flag_spec_CXX='-L$libdir' 19037 allow_undefined_flag_CXX=unsupported 19038 always_export_symbols_CXX=no 19039 enable_shared_with_static_runtimes_CXX=yes 19040 19041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19043 # If the export-symbols file already is a .def file (1st line 19044 # is EXPORTS), use it as is; otherwise, prepend... 19045 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19046 cp $export_symbols $output_objdir/$soname.def; 19047 else 19048 echo EXPORTS > $output_objdir/$soname.def; 19049 cat $export_symbols >> $output_objdir/$soname.def; 19050 fi~ 19051 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19052 else 19053 ld_shlibs_CXX=no 19054 fi 19055 ;; 19056 darwin* | rhapsody*) 19057 case $host_os in 19058 rhapsody* | darwin1.[012]) 19059 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 19060 ;; 19061 *) # Darwin 1.3 on 19062 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 19063 10.[012]) 19064 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19065 ;; 19066 10.*) 19067 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 19068 ;; 19069 esac 19070 ;; 19071 esac 19072 archive_cmds_need_lc_CXX=no 19073 hardcode_direct_CXX=no 19074 hardcode_automatic_CXX=yes 19075 hardcode_shlibpath_var_CXX=unsupported 19076 whole_archive_flag_spec_CXX='' 19077 link_all_deplibs_CXX=yes 19078 19079 if test "$GXX" = yes ; then 19080 if test "${lt_cv_apple_cc_single_mod+set}" = set; then 19081 echo $ECHO_N "(cached) $ECHO_C" >&6 19082else 19083 lt_cv_apple_cc_single_mod=no 19084 if test -z "${LT_MULTI_MODULE}"; then 19085 # By default we will add the -single_module flag. You can override 19086 # by either setting the environment variable LT_MULTI_MODULE 19087 # non-empty at configure time, or by adding -multi-module to the 19088 # link flags. 19089 echo "int foo(void){return 1;}" > conftest.c 19090 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 19091 -dynamiclib ${wl}-single_module conftest.c 19092 if test -f libconftest.dylib; then 19093 lt_cv_apple_cc_single_mod=yes 19094 rm libconftest.dylib 19095 fi 19096 rm conftest.$ac_ext 19097 fi 19098fi 19099 19100 output_verbose_link_cmd=echo 19101 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then 19102 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 19103 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19104 else 19105 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 19106 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19107 fi 19108 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19109 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19110 else 19111 case $cc_basename in 19112 xlc*) 19113 output_verbose_link_cmd=echo 19114 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring' 19115 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19116 # Don't fix this by using the ld -exported_symbols_list flag, 19117 # it doesn't exist in older darwin lds 19118 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19119 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19120 ;; 19121 *) 19122 ld_shlibs_CXX=no 19123 ;; 19124 esac 19125 fi 19126 ;; 19127 19128 dgux*) 19129 case $cc_basename in 19130 ec++*) 19131 # FIXME: insert proper C++ library support 19132 ld_shlibs_CXX=no 19133 ;; 19134 ghcx*) 19135 # Green Hills C++ Compiler 19136 # FIXME: insert proper C++ library support 19137 ld_shlibs_CXX=no 19138 ;; 19139 *) 19140 # FIXME: insert proper C++ library support 19141 ld_shlibs_CXX=no 19142 ;; 19143 esac 19144 ;; 19145 19146 freebsd[12]*) 19147 # C++ shared libraries reported to be fairly broken before 19148 # switch to ELF 19149 ld_shlibs_CXX=no 19150 ;; 19151 19152 freebsd-elf*) 19153 archive_cmds_need_lc_CXX=no 19154 ;; 19155 19156 freebsd* | dragonfly*) 19157 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 19158 # conventions 19159 ld_shlibs_CXX=yes 19160 ;; 19161 19162 gnu*) 19163 ;; 19164 19165 hpux9*) 19166 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19167 hardcode_libdir_separator_CXX=: 19168 export_dynamic_flag_spec_CXX='${wl}-E' 19169 hardcode_direct_CXX=yes 19170 hardcode_minus_L_CXX=yes # Not in the search PATH, 19171 # but as the default 19172 # location of the library. 19173 19174 case $cc_basename in 19175 CC*) 19176 # FIXME: insert proper C++ library support 19177 ld_shlibs_CXX=no 19178 ;; 19179 aCC*) 19180 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19181 # Commands to make compiler produce verbose output that lists 19182 # what "hidden" libraries, object files and flags are used when 19183 # linking a shared library. 19184 # 19185 # There doesn't appear to be a way to prevent this compiler from 19186 # explicitly linking system object files so we need to strip them 19187 # from the output so that they don't get included in the library 19188 # dependencies. 19189 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 19190 ;; 19191 *) 19192 if test "$GXX" = yes; then 19193 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 19194 else 19195 # FIXME: insert proper C++ library support 19196 ld_shlibs_CXX=no 19197 fi 19198 ;; 19199 esac 19200 ;; 19201 19202 hpux10*|hpux11*) 19203 if test $with_gnu_ld = no; then 19204 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19205 hardcode_libdir_separator_CXX=: 19206 19207 case $host_cpu in 19208 hppa*64*|ia64*) 19209 ;; 19210 *) 19211 export_dynamic_flag_spec_CXX='${wl}-E' 19212 ;; 19213 esac 19214 fi 19215 case $host_cpu in 19216 hppa*64*|ia64*) 19217 hardcode_direct_CXX=no 19218 hardcode_shlibpath_var_CXX=no 19219 ;; 19220 *) 19221 hardcode_direct_CXX=yes 19222 hardcode_direct_absolute_CXX=yes 19223 hardcode_minus_L_CXX=yes # Not in the search PATH, 19224 # but as the default 19225 # location of the library. 19226 ;; 19227 esac 19228 19229 case $cc_basename in 19230 CC*) 19231 # FIXME: insert proper C++ library support 19232 ld_shlibs_CXX=no 19233 ;; 19234 aCC*) 19235 case $host_cpu in 19236 hppa*64*) 19237 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19238 ;; 19239 ia64*) 19240 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19241 ;; 19242 *) 19243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19244 ;; 19245 esac 19246 # Commands to make compiler produce verbose output that lists 19247 # what "hidden" libraries, object files and flags are used when 19248 # linking a shared library. 19249 # 19250 # There doesn't appear to be a way to prevent this compiler from 19251 # explicitly linking system object files so we need to strip them 19252 # from the output so that they don't get included in the library 19253 # dependencies. 19254 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 19255 ;; 19256 *) 19257 if test "$GXX" = yes; then 19258 if test $with_gnu_ld = no; then 19259 case $host_cpu in 19260 hppa*64*) 19261 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19262 ;; 19263 ia64*) 19264 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19265 ;; 19266 *) 19267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19268 ;; 19269 esac 19270 fi 19271 else 19272 # FIXME: insert proper C++ library support 19273 ld_shlibs_CXX=no 19274 fi 19275 ;; 19276 esac 19277 ;; 19278 19279 interix3*) 19280 hardcode_direct_CXX=no 19281 hardcode_shlibpath_var_CXX=no 19282 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19283 export_dynamic_flag_spec_CXX='${wl}-E' 19284 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19285 # Instead, shared libraries are loaded at an image base (0x10000000 by 19286 # default) and relocated if they conflict, which is a slow very memory 19287 # consuming and fragmenting process. To avoid this, we pick a random, 19288 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19289 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19290 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19291 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19292 ;; 19293 irix5* | irix6*) 19294 case $cc_basename in 19295 CC*) 19296 # SGI C++ 19297 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 19298 19299 # Archives containing C++ object files must be created using 19300 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 19301 # necessary to make sure instantiated templates are included 19302 # in the archive. 19303 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 19304 ;; 19305 *) 19306 if test "$GXX" = yes; then 19307 if test "$with_gnu_ld" = no; then 19308 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19309 else 19310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 19311 fi 19312 fi 19313 link_all_deplibs_CXX=yes 19314 ;; 19315 esac 19316 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19317 hardcode_libdir_separator_CXX=: 19318 inherit_rpath_CXX=yes 19319 ;; 19320 19321 linux* | k*bsd*-gnu) 19322 case $cc_basename in 19323 KCC*) 19324 # Kuck and Associates, Inc. (KAI) C++ Compiler 19325 19326 # KCC will only create a shared library if the output file 19327 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19328 # to its proper name (with version) after linking. 19329 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 19330 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 19331 # Commands to make compiler produce verbose output that lists 19332 # what "hidden" libraries, object files and flags are used when 19333 # linking a shared library. 19334 # 19335 # There doesn't appear to be a way to prevent this compiler from 19336 # explicitly linking system object files so we need to strip them 19337 # from the output so that they don't get included in the library 19338 # dependencies. 19339 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 19340 19341 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19343 19344 # Archives containing C++ object files must be created using 19345 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 19346 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 19347 ;; 19348 icpc* | ecpc* ) 19349 # Intel C++ 19350 with_gnu_ld=yes 19351 # version 8.0 and above of icpc choke on multiply defined symbols 19352 # if we add $predep_objects and $postdep_objects, however 7.1 and 19353 # earlier do not add the objects themselves. 19354 case `$CC -V 2>&1` in 19355 *"Version 7."*) 19356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19357 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19358 ;; 19359 *) # Version 8.0 or newer 19360 tmp_idyn= 19361 case $host_cpu in 19362 ia64*) tmp_idyn=' -i_dynamic';; 19363 esac 19364 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19365 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19366 ;; 19367 esac 19368 archive_cmds_need_lc_CXX=no 19369 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19370 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19371 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 19372 ;; 19373 pgCC*) 19374 # Portland Group C++ compiler 19375 case `$CC -V` in 19376 *pgCC\ [1-5]*) 19377 prelink_cmds_CXX='tpldir=Template.dir~ 19378 rm -rf $tpldir~ 19379 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 19380 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 19381 old_archive_cmds_CXX='tpldir=Template.dir~ 19382 rm -rf $tpldir~ 19383 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 19384 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 19385 $RANLIB $oldlib' 19386 archive_cmds_CXX='tpldir=Template.dir~ 19387 rm -rf $tpldir~ 19388 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19389 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 19390 archive_expsym_cmds_CXX='tpldir=Template.dir~ 19391 rm -rf $tpldir~ 19392 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19393 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 19394 ;; 19395 *) # Version 6 will use weak symbols 19396 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 19397 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 19398 ;; 19399 esac 19400 19401 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 19402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19403 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 19404 ;; 19405 cxx*) 19406 # Compaq C++ 19407 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19408 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 19409 19410 runpath_var=LD_RUN_PATH 19411 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19412 hardcode_libdir_separator_CXX=: 19413 19414 # Commands to make compiler produce verbose output that lists 19415 # what "hidden" libraries, object files and flags are used when 19416 # linking a shared library. 19417 # 19418 # There doesn't appear to be a way to prevent this compiler from 19419 # explicitly linking system object files so we need to strip them 19420 # from the output so that they don't get included in the library 19421 # dependencies. 19422 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 19423 ;; 19424 *) 19425 case `$CC -V 2>&1 | sed 5q` in 19426 *Sun\ C*) 19427 # Sun C++ 5.9 19428 no_undefined_flag_CXX=' -zdefs' 19429 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19430 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 19431 hardcode_libdir_flag_spec_CXX='-R$libdir' 19432 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 19433 compiler_needs_object_CXX=yes 19434 19435 # Not sure whether something based on 19436 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 19437 # would be better. 19438 output_verbose_link_cmd='echo' 19439 19440 # Archives containing C++ object files must be created using 19441 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19442 # necessary to make sure instantiated templates are included 19443 # in the archive. 19444 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19445 ;; 19446 esac 19447 ;; 19448 esac 19449 ;; 19450 19451 lynxos*) 19452 # FIXME: insert proper C++ library support 19453 ld_shlibs_CXX=no 19454 ;; 19455 19456 m88k*) 19457 # FIXME: insert proper C++ library support 19458 ld_shlibs_CXX=no 19459 ;; 19460 19461 mvs*) 19462 case $cc_basename in 19463 cxx*) 19464 # FIXME: insert proper C++ library support 19465 ld_shlibs_CXX=no 19466 ;; 19467 *) 19468 # FIXME: insert proper C++ library support 19469 ld_shlibs_CXX=no 19470 ;; 19471 esac 19472 ;; 19473 19474 netbsd*) 19475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19476 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 19477 wlarc= 19478 hardcode_libdir_flag_spec_CXX='-R$libdir' 19479 hardcode_direct_CXX=yes 19480 hardcode_shlibpath_var_CXX=no 19481 fi 19482 # Workaround some broken pre-1.5 toolchains 19483 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 19484 ;; 19485 19486 *nto* | *qnx*) 19487 ld_shlibs_CXX=yes 19488 ;; 19489 19490 openbsd2*) 19491 # C++ shared libraries are fairly broken 19492 ld_shlibs_CXX=no 19493 ;; 19494 19495 openbsd*) 19496 hardcode_direct_CXX=yes 19497 hardcode_shlibpath_var_CXX=no 19498 hardcode_direct_absolute_CXX=yes 19499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 19503 export_dynamic_flag_spec_CXX='${wl}-E' 19504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19505 fi 19506 output_verbose_link_cmd=echo 19507 ;; 19508 19509 osf3* | osf4* | osf5*) 19510 case $cc_basename in 19511 KCC*) 19512 # Kuck and Associates, Inc. (KAI) C++ Compiler 19513 19514 # KCC will only create a shared library if the output file 19515 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19516 # to its proper name (with version) after linking. 19517 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 19518 19519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19520 hardcode_libdir_separator_CXX=: 19521 19522 # Archives containing C++ object files must be created using 19523 # the KAI C++ compiler. 19524 case $host in 19525 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 19526 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 19527 esac 19528 ;; 19529 RCC*) 19530 # Rational C++ 2.4.1 19531 # FIXME: insert proper C++ library support 19532 ld_shlibs_CXX=no 19533 ;; 19534 cxx*) 19535 case $host in 19536 osf3*) 19537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 19538 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 19539 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19540 ;; 19541 *) 19542 allow_undefined_flag_CXX=' -expect_unresolved \*' 19543 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 19544 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 19545 echo "-hidden">> $lib.exp~ 19546 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 19547 $RM $lib.exp' 19548 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19549 ;; 19550 esac 19551 19552 hardcode_libdir_separator_CXX=: 19553 19554 # Commands to make compiler produce verbose output that lists 19555 # what "hidden" libraries, object files and flags are used when 19556 # linking a shared library. 19557 # 19558 # There doesn't appear to be a way to prevent this compiler from 19559 # explicitly linking system object files so we need to strip them 19560 # from the output so that they don't get included in the library 19561 # dependencies. 19562 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 19563 ;; 19564 *) 19565 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 19566 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 19567 case $host in 19568 osf3*) 19569 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19570 ;; 19571 *) 19572 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19573 ;; 19574 esac 19575 19576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19577 hardcode_libdir_separator_CXX=: 19578 19579 # Commands to make compiler produce verbose output that lists 19580 # what "hidden" libraries, object files and flags are used when 19581 # linking a shared library. 19582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 19583 19584 else 19585 # FIXME: insert proper C++ library support 19586 ld_shlibs_CXX=no 19587 fi 19588 ;; 19589 esac 19590 ;; 19591 19592 psos*) 19593 # FIXME: insert proper C++ library support 19594 ld_shlibs_CXX=no 19595 ;; 19596 19597 sunos4*) 19598 case $cc_basename in 19599 CC*) 19600 # Sun C++ 4.x 19601 # FIXME: insert proper C++ library support 19602 ld_shlibs_CXX=no 19603 ;; 19604 lcc*) 19605 # Lucid 19606 # FIXME: insert proper C++ library support 19607 ld_shlibs_CXX=no 19608 ;; 19609 *) 19610 # FIXME: insert proper C++ library support 19611 ld_shlibs_CXX=no 19612 ;; 19613 esac 19614 ;; 19615 19616 solaris*) 19617 case $cc_basename in 19618 CC*) 19619 # Sun C++ 4.2, 5.x and Centerline C++ 19620 archive_cmds_need_lc_CXX=yes 19621 no_undefined_flag_CXX=' -zdefs' 19622 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19623 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19624 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19625 19626 hardcode_libdir_flag_spec_CXX='-R$libdir' 19627 hardcode_shlibpath_var_CXX=no 19628 case $host_os in 19629 solaris2.[0-5] | solaris2.[0-5].*) ;; 19630 *) 19631 # The compiler driver will combine and reorder linker options, 19632 # but understands `-z linker_flag'. 19633 # Supported since Solaris 2.6 (maybe 2.5.1?) 19634 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 19635 ;; 19636 esac 19637 link_all_deplibs_CXX=yes 19638 19639 output_verbose_link_cmd='echo' 19640 19641 # Archives containing C++ object files must be created using 19642 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19643 # necessary to make sure instantiated templates are included 19644 # in the archive. 19645 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19646 ;; 19647 gcx*) 19648 # Green Hills C++ Compiler 19649 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19650 19651 # The C++ compiler must be used to create the archive. 19652 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 19653 ;; 19654 *) 19655 # GNU C++ compiler with Solaris linker 19656 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 19657 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 19658 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 19659 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19660 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19661 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19662 19663 # Commands to make compiler produce verbose output that lists 19664 # what "hidden" libraries, object files and flags are used when 19665 # linking a shared library. 19666 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 19667 else 19668 # g++ 2.7 appears to require `-G' NOT `-shared' on this 19669 # platform. 19670 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19672 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19673 19674 # Commands to make compiler produce verbose output that lists 19675 # what "hidden" libraries, object files and flags are used when 19676 # linking a shared library. 19677 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 19678 fi 19679 19680 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 19681 case $host_os in 19682 solaris2.[0-5] | solaris2.[0-5].*) ;; 19683 *) 19684 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 19685 ;; 19686 esac 19687 fi 19688 ;; 19689 esac 19690 ;; 19691 19692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19693 no_undefined_flag_CXX='${wl}-z,text' 19694 archive_cmds_need_lc_CXX=no 19695 hardcode_shlibpath_var_CXX=no 19696 runpath_var='LD_RUN_PATH' 19697 19698 case $cc_basename in 19699 CC*) 19700 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19701 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19702 ;; 19703 *) 19704 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19705 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19706 ;; 19707 esac 19708 ;; 19709 19710 sysv5* | sco3.2v5* | sco5v6*) 19711 # Note: We can NOT use -z defs as we might desire, because we do not 19712 # link with -lc, and that would cause any symbols used from libc to 19713 # always be unresolved, which means just about no library would 19714 # ever link correctly. If we're not using GNU ld we use -z text 19715 # though, which does catch some bad symbols but isn't as heavy-handed 19716 # as -z defs. 19717 no_undefined_flag_CXX='${wl}-z,text' 19718 allow_undefined_flag_CXX='${wl}-z,nodefs' 19719 archive_cmds_need_lc_CXX=no 19720 hardcode_shlibpath_var_CXX=no 19721 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 19722 hardcode_libdir_separator_CXX=':' 19723 link_all_deplibs_CXX=yes 19724 export_dynamic_flag_spec_CXX='${wl}-Bexport' 19725 runpath_var='LD_RUN_PATH' 19726 19727 case $cc_basename in 19728 CC*) 19729 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19730 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19731 ;; 19732 *) 19733 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19734 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19735 ;; 19736 esac 19737 ;; 19738 19739 tandem*) 19740 case $cc_basename in 19741 NCC*) 19742 # NonStop-UX NCC 3.20 19743 # FIXME: insert proper C++ library support 19744 ld_shlibs_CXX=no 19745 ;; 19746 *) 19747 # FIXME: insert proper C++ library support 19748 ld_shlibs_CXX=no 19749 ;; 19750 esac 19751 ;; 19752 19753 vxworks*) 19754 # FIXME: insert proper C++ library support 19755 ld_shlibs_CXX=no 19756 ;; 19757 19758 *) 19759 # FIXME: insert proper C++ library support 19760 ld_shlibs_CXX=no 19761 ;; 19762 esac 19763 19764 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 19765echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 19766 test "$ld_shlibs_CXX" = no && can_build_shared=no 19767 19768 GCC_CXX="$GXX" 19769 LD_CXX="$LD" 19770 19771 ## CAVEAT EMPTOR: 19772 ## There is no encapsulation within the following macros, do not change 19773 ## the running order or otherwise move them around unless you know exactly 19774 ## what you are doing... 19775 # Dependencies to place before and after the object being linked: 19776predep_objects_CXX= 19777postdep_objects_CXX= 19778predeps_CXX= 19779postdeps_CXX= 19780compiler_lib_search_path_CXX= 19781 19782cat > conftest.$ac_ext <<_LT_EOF 19783class Foo 19784{ 19785public: 19786 Foo (void) { a = 0; } 19787private: 19788 int a; 19789}; 19790_LT_EOF 19791 19792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19793 (eval $ac_compile) 2>&5 19794 ac_status=$? 19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19796 (exit $ac_status); }; then 19797 # Parse the compiler output and extract the necessary 19798 # objects, libraries and library flags. 19799 19800 # Sentinel used to keep track of whether or not we are before 19801 # the conftest object file. 19802 pre_test_object_deps_done=no 19803 19804 # The `*' in the case matches for architectures that use `case' in 19805 # $output_verbose_cmd can trigger glob expansion during the loop 19806 # eval without this substitution. 19807 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 19808 19809 for p in `eval $output_verbose_link_cmd`; do 19810 case $p in 19811 19812 -L* | -R* | -l*) 19813 # Some compilers place space between "-{L,R}" and the path. 19814 # Remove the space. 19815 if test $p = "-L" || 19816 test $p = "-R"; then 19817 prev=$p 19818 continue 19819 else 19820 prev= 19821 fi 19822 19823 if test "$pre_test_object_deps_done" = no; then 19824 case $p in 19825 -L* | -R*) 19826 # Internal compiler library paths should come after those 19827 # provided the user. The postdeps already come after the 19828 # user supplied libs so there is no need to process them. 19829 if test -z "$compiler_lib_search_path_CXX"; then 19830 compiler_lib_search_path_CXX="${prev}${p}" 19831 else 19832 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 19833 fi 19834 ;; 19835 # The "-l" case would never come before the object being 19836 # linked, so don't bother handling this case. 19837 esac 19838 else 19839 if test -z "$postdeps_CXX"; then 19840 postdeps_CXX="${prev}${p}" 19841 else 19842 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 19843 fi 19844 fi 19845 ;; 19846 19847 *.$objext) 19848 # This assumes that the test object file only shows up 19849 # once in the compiler output. 19850 if test "$p" = "conftest.$objext"; then 19851 pre_test_object_deps_done=yes 19852 continue 19853 fi 19854 19855 if test "$pre_test_object_deps_done" = no; then 19856 if test -z "$predep_objects_CXX"; then 19857 predep_objects_CXX="$p" 19858 else 19859 predep_objects_CXX="$predep_objects_CXX $p" 19860 fi 19861 else 19862 if test -z "$postdep_objects_CXX"; then 19863 postdep_objects_CXX="$p" 19864 else 19865 postdep_objects_CXX="$postdep_objects_CXX $p" 19866 fi 19867 fi 19868 ;; 19869 19870 *) ;; # Ignore the rest. 19871 19872 esac 19873 done 19874 19875 # Clean up. 19876 rm -f a.out a.exe 19877else 19878 echo "libtool.m4: error: problem compiling CXX test program" 19879fi 19880 19881$RM -f confest.$objext 19882 19883# PORTME: override above test on systems where it is broken 19884case $host_os in 19885interix3*) 19886 # Interix 3.5 installs completely hosed .la files for C++, so rather than 19887 # hack all around it, let's just trust "g++" to DTRT. 19888 predep_objects_CXX= 19889 postdep_objects_CXX= 19890 postdeps_CXX= 19891 ;; 19892 19893linux*) 19894 case `$CC -V 2>&1 | sed 5q` in 19895 *Sun\ C*) 19896 # Sun C++ 5.9 19897 19898 # The more standards-conforming stlport4 library is 19899 # incompatible with the Cstd library. Avoid specifying 19900 # it if it's in CXXFLAGS. Ignore libCrun as 19901 # -library=stlport4 depends on it. 19902 case " $CXX $CXXFLAGS " in 19903 *" -library=stlport4 "*) 19904 solaris_use_stlport4=yes 19905 ;; 19906 esac 19907 19908 if test "$solaris_use_stlport4" != yes; then 19909 postdeps_CXX='-library=Cstd -library=Crun' 19910 fi 19911 ;; 19912 esac 19913 ;; 19914 19915solaris*) 19916 case $cc_basename in 19917 CC*) 19918 # The more standards-conforming stlport4 library is 19919 # incompatible with the Cstd library. Avoid specifying 19920 # it if it's in CXXFLAGS. Ignore libCrun as 19921 # -library=stlport4 depends on it. 19922 case " $CXX $CXXFLAGS " in 19923 *" -library=stlport4 "*) 19924 solaris_use_stlport4=yes 19925 ;; 19926 esac 19927 19928 # Adding this requires a known-good setup of shared libraries for 19929 # Sun compiler versions before 5.6, else PIC objects from an old 19930 # archive will be linked into the output, leading to subtle bugs. 19931 if test "$solaris_use_stlport4" != yes; then 19932 postdeps_CXX='-library=Cstd -library=Crun' 19933 fi 19934 ;; 19935 esac 19936 ;; 19937esac 19938 19939 19940case " $postdeps_CXX " in 19941*" -lc "*) archive_cmds_need_lc_CXX=no ;; 19942esac 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 lt_prog_compiler_wl_CXX= 19970lt_prog_compiler_pic_CXX= 19971lt_prog_compiler_static_CXX= 19972 19973{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 19974echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 19975 19976 # C++ specific cases for pic, static, wl, etc. 19977 if test "$GXX" = yes; then 19978 lt_prog_compiler_wl_CXX='-Wl,' 19979 lt_prog_compiler_static_CXX='-static' 19980 19981 case $host_os in 19982 aix*) 19983 # All AIX code is PIC. 19984 if test "$host_cpu" = ia64; then 19985 # AIX 5 now supports IA64 processor 19986 lt_prog_compiler_static_CXX='-Bstatic' 19987 fi 19988 ;; 19989 amigaos*) 19990 if test "$host_cpu" = m68k; then 19991 # FIXME: we need at least 68020 code to build shared libraries, but 19992 # adding the `-m68020' flag to GCC prevents building anything better, 19993 # like `-m68040'. 19994 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 19995 fi 19996 ;; 19997 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19998 # PIC is the default for these OSes. 19999 ;; 20000 mingw* | cygwin* | os2* | pw32*) 20001 # This hack is so that the source file can tell whether it is being 20002 # built for inclusion in a dll (and should export symbols for example). 20003 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20004 # (--disable-auto-import) libraries 20005 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20006 ;; 20007 darwin* | rhapsody*) 20008 # PIC is the default on this platform 20009 # Common symbols not allowed in MH_DYLIB files 20010 lt_prog_compiler_pic_CXX='-fno-common' 20011 ;; 20012 *djgpp*) 20013 # DJGPP does not support shared libraries at all 20014 lt_prog_compiler_pic_CXX= 20015 ;; 20016 interix3*) 20017 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 20018 # Instead, we relocate shared libraries at runtime. 20019 ;; 20020 sysv4*MP*) 20021 if test -d /usr/nec; then 20022 lt_prog_compiler_pic_CXX=-Kconform_pic 20023 fi 20024 ;; 20025 hpux*) 20026 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 20027 # not for PA HP-UX. 20028 case $host_cpu in 20029 hppa*64*|ia64*) 20030 ;; 20031 *) 20032 lt_prog_compiler_pic_CXX='-fPIC' 20033 ;; 20034 esac 20035 ;; 20036 *qnx* | *nto*) 20037 # QNX uses GNU C++, but need to define -shared option too, otherwise 20038 # it will coredump. 20039 lt_prog_compiler_pic_CXX='-fPIC -shared' 20040 ;; 20041 *) 20042 lt_prog_compiler_pic_CXX='-fPIC' 20043 ;; 20044 esac 20045 else 20046 case $host_os in 20047 aix4* | aix5*) 20048 # All AIX code is PIC. 20049 if test "$host_cpu" = ia64; then 20050 # AIX 5 now supports IA64 processor 20051 lt_prog_compiler_static_CXX='-Bstatic' 20052 else 20053 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 20054 fi 20055 ;; 20056 chorus*) 20057 case $cc_basename in 20058 cxch68*) 20059 # Green Hills C++ Compiler 20060 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 20061 ;; 20062 esac 20063 ;; 20064 darwin*) 20065 # PIC is the default on this platform 20066 # Common symbols not allowed in MH_DYLIB files 20067 case $cc_basename in 20068 xlc*) 20069 lt_prog_compiler_pic_CXX='-qnocommon' 20070 lt_prog_compiler_wl_CXX='-Wl,' 20071 ;; 20072 esac 20073 ;; 20074 dgux*) 20075 case $cc_basename in 20076 ec++*) 20077 lt_prog_compiler_pic_CXX='-KPIC' 20078 ;; 20079 ghcx*) 20080 # Green Hills C++ Compiler 20081 lt_prog_compiler_pic_CXX='-pic' 20082 ;; 20083 *) 20084 ;; 20085 esac 20086 ;; 20087 freebsd* | dragonfly*) 20088 # FreeBSD uses GNU C++ 20089 ;; 20090 hpux9* | hpux10* | hpux11*) 20091 case $cc_basename in 20092 CC*) 20093 lt_prog_compiler_wl_CXX='-Wl,' 20094 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20095 if test "$host_cpu" != ia64; then 20096 lt_prog_compiler_pic_CXX='+Z' 20097 fi 20098 ;; 20099 aCC*) 20100 lt_prog_compiler_wl_CXX='-Wl,' 20101 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20102 case $host_cpu in 20103 hppa*64*|ia64*) 20104 # +Z the default 20105 ;; 20106 *) 20107 lt_prog_compiler_pic_CXX='+Z' 20108 ;; 20109 esac 20110 ;; 20111 *) 20112 ;; 20113 esac 20114 ;; 20115 interix*) 20116 # This is c89, which is MS Visual C++ (no shared libs) 20117 # Anyone wants to do a port? 20118 ;; 20119 irix5* | irix6* | nonstopux*) 20120 case $cc_basename in 20121 CC*) 20122 lt_prog_compiler_wl_CXX='-Wl,' 20123 lt_prog_compiler_static_CXX='-non_shared' 20124 # CC pic flag -KPIC is the default. 20125 ;; 20126 *) 20127 ;; 20128 esac 20129 ;; 20130 linux* | k*bsd*-gnu) 20131 case $cc_basename in 20132 KCC*) 20133 # KAI C++ Compiler 20134 lt_prog_compiler_wl_CXX='--backend -Wl,' 20135 lt_prog_compiler_pic_CXX='-fPIC' 20136 ;; 20137 icpc* | ecpc* ) 20138 # Intel C++ 20139 lt_prog_compiler_wl_CXX='-Wl,' 20140 lt_prog_compiler_pic_CXX='-KPIC' 20141 lt_prog_compiler_static_CXX='-static' 20142 ;; 20143 pgCC*) 20144 # Portland Group C++ compiler 20145 lt_prog_compiler_wl_CXX='-Wl,' 20146 lt_prog_compiler_pic_CXX='-fpic' 20147 lt_prog_compiler_static_CXX='-Bstatic' 20148 ;; 20149 cxx*) 20150 # Compaq C++ 20151 # Make sure the PIC flag is empty. It appears that all Alpha 20152 # Linux and Compaq Tru64 Unix objects are PIC. 20153 lt_prog_compiler_pic_CXX= 20154 lt_prog_compiler_static_CXX='-non_shared' 20155 ;; 20156 *) 20157 case `$CC -V 2>&1 | sed 5q` in 20158 *Sun\ C*) 20159 # Sun C++ 5.9 20160 lt_prog_compiler_pic_CXX='-KPIC' 20161 lt_prog_compiler_static_CXX='-Bstatic' 20162 lt_prog_compiler_wl_CXX='-Qoption ld ' 20163 ;; 20164 esac 20165 ;; 20166 esac 20167 ;; 20168 lynxos*) 20169 ;; 20170 m88k*) 20171 ;; 20172 mvs*) 20173 case $cc_basename in 20174 cxx*) 20175 lt_prog_compiler_pic_CXX='-W c,exportall' 20176 ;; 20177 *) 20178 ;; 20179 esac 20180 ;; 20181 netbsd*) 20182 ;; 20183 *qnx* | *nto*) 20184 # QNX uses GNU C++, but need to define -shared option too, otherwise 20185 # it will coredump. 20186 lt_prog_compiler_pic_CXX='-fPIC -shared' 20187 ;; 20188 osf3* | osf4* | osf5*) 20189 case $cc_basename in 20190 KCC*) 20191 lt_prog_compiler_wl_CXX='--backend -Wl,' 20192 ;; 20193 RCC*) 20194 # Rational C++ 2.4.1 20195 lt_prog_compiler_pic_CXX='-pic' 20196 ;; 20197 cxx*) 20198 # Digital/Compaq C++ 20199 lt_prog_compiler_wl_CXX='-Wl,' 20200 # Make sure the PIC flag is empty. It appears that all Alpha 20201 # Linux and Compaq Tru64 Unix objects are PIC. 20202 lt_prog_compiler_pic_CXX= 20203 lt_prog_compiler_static_CXX='-non_shared' 20204 ;; 20205 *) 20206 ;; 20207 esac 20208 ;; 20209 psos*) 20210 ;; 20211 solaris*) 20212 case $cc_basename in 20213 CC*) 20214 # Sun C++ 4.2, 5.x and Centerline C++ 20215 lt_prog_compiler_pic_CXX='-KPIC' 20216 lt_prog_compiler_static_CXX='-Bstatic' 20217 lt_prog_compiler_wl_CXX='-Qoption ld ' 20218 ;; 20219 gcx*) 20220 # Green Hills C++ Compiler 20221 lt_prog_compiler_pic_CXX='-PIC' 20222 ;; 20223 *) 20224 ;; 20225 esac 20226 ;; 20227 sunos4*) 20228 case $cc_basename in 20229 CC*) 20230 # Sun C++ 4.x 20231 lt_prog_compiler_pic_CXX='-pic' 20232 lt_prog_compiler_static_CXX='-Bstatic' 20233 ;; 20234 lcc*) 20235 # Lucid 20236 lt_prog_compiler_pic_CXX='-pic' 20237 ;; 20238 *) 20239 ;; 20240 esac 20241 ;; 20242 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 20243 case $cc_basename in 20244 CC*) 20245 lt_prog_compiler_wl_CXX='-Wl,' 20246 lt_prog_compiler_pic_CXX='-KPIC' 20247 lt_prog_compiler_static_CXX='-Bstatic' 20248 ;; 20249 esac 20250 ;; 20251 tandem*) 20252 case $cc_basename in 20253 NCC*) 20254 # NonStop-UX NCC 3.20 20255 lt_prog_compiler_pic_CXX='-KPIC' 20256 ;; 20257 *) 20258 ;; 20259 esac 20260 ;; 20261 vxworks*) 20262 ;; 20263 *) 20264 lt_prog_compiler_can_build_shared_CXX=no 20265 ;; 20266 esac 20267 fi 20268 20269case $host_os in 20270 # For platforms which do not support PIC, -DPIC is meaningless: 20271 *djgpp*) 20272 lt_prog_compiler_pic_CXX= 20273 ;; 20274 *) 20275 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 20276 ;; 20277esac 20278{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 20279echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 20280 20281 20282 20283# 20284# Check to make sure the PIC flag actually works. 20285# 20286if test -n "$lt_prog_compiler_pic_CXX"; then 20287 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 20288echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 20289if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 20290 echo $ECHO_N "(cached) $ECHO_C" >&6 20291else 20292 lt_prog_compiler_pic_works_CXX=no 20293 ac_outfile=conftest.$ac_objext 20294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20295 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 20296 # Insert the option either (1) after the last *FLAGS variable, or 20297 # (2) before a word containing "conftest.", or (3) at the end. 20298 # Note that $ac_compile itself does not contain backslashes and begins 20299 # with a dollar sign (not a hyphen), so the echo should work correctly. 20300 # The option is referenced via a variable to avoid confusing sed. 20301 lt_compile=`echo "$ac_compile" | $SED \ 20302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20304 -e 's:$: $lt_compiler_flag:'` 20305 (eval echo "\"\$as_me:20305: $lt_compile\"" >&5) 20306 (eval "$lt_compile" 2>conftest.err) 20307 ac_status=$? 20308 cat conftest.err >&5 20309 echo "$as_me:20309: \$? = $ac_status" >&5 20310 if (exit $ac_status) && test -s "$ac_outfile"; then 20311 # The compiler can only warn and ignore the option if not recognized 20312 # So say no if there are warnings other than the usual output. 20313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 20314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20315 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 20316 lt_prog_compiler_pic_works_CXX=yes 20317 fi 20318 fi 20319 $RM conftest* 20320 20321fi 20322{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 20323echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 20324 20325if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 20326 case $lt_prog_compiler_pic_CXX in 20327 "" | " "*) ;; 20328 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 20329 esac 20330else 20331 lt_prog_compiler_pic_CXX= 20332 lt_prog_compiler_can_build_shared_CXX=no 20333fi 20334 20335fi 20336 20337 20338 20339# 20340# Check to make sure the static flag actually works. 20341# 20342wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 20343{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 20344echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 20345if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 20346 echo $ECHO_N "(cached) $ECHO_C" >&6 20347else 20348 lt_prog_compiler_static_works_CXX=no 20349 save_LDFLAGS="$LDFLAGS" 20350 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 20351 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20353 # The linker can only warn and ignore the option if not recognized 20354 # So say no if there are warnings 20355 if test -s conftest.err; then 20356 # Append any errors to the config.log. 20357 cat conftest.err 1>&5 20358 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 20359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20360 if diff conftest.exp conftest.er2 >/dev/null; then 20361 lt_prog_compiler_static_works_CXX=yes 20362 fi 20363 else 20364 lt_prog_compiler_static_works_CXX=yes 20365 fi 20366 fi 20367 $RM conftest* 20368 LDFLAGS="$save_LDFLAGS" 20369 20370fi 20371{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 20372echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 20373 20374if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 20375 : 20376else 20377 lt_prog_compiler_static_CXX= 20378fi 20379 20380 20381 20382 20383 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 20384echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 20385if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 20386 echo $ECHO_N "(cached) $ECHO_C" >&6 20387else 20388 lt_cv_prog_compiler_c_o_CXX=no 20389 $RM -r conftest 2>/dev/null 20390 mkdir conftest 20391 cd conftest 20392 mkdir out 20393 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20394 20395 lt_compiler_flag="-o out/conftest2.$ac_objext" 20396 # Insert the option either (1) after the last *FLAGS variable, or 20397 # (2) before a word containing "conftest.", or (3) at the end. 20398 # Note that $ac_compile itself does not contain backslashes and begins 20399 # with a dollar sign (not a hyphen), so the echo should work correctly. 20400 lt_compile=`echo "$ac_compile" | $SED \ 20401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20403 -e 's:$: $lt_compiler_flag:'` 20404 (eval echo "\"\$as_me:20404: $lt_compile\"" >&5) 20405 (eval "$lt_compile" 2>out/conftest.err) 20406 ac_status=$? 20407 cat out/conftest.err >&5 20408 echo "$as_me:20408: \$? = $ac_status" >&5 20409 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20410 then 20411 # The compiler can only warn and ignore the option if not recognized 20412 # So say no if there are warnings 20413 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 20414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20416 lt_cv_prog_compiler_c_o_CXX=yes 20417 fi 20418 fi 20419 chmod u+w . 2>&5 20420 $RM conftest* 20421 # SGI C++ compiler will create directory out/ii_files/ for 20422 # template instantiation 20423 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20424 $RM out/* && rmdir out 20425 cd .. 20426 $RM -r conftest 20427 $RM conftest* 20428 20429fi 20430{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 20431echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 20432 20433 20434 20435 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 20436echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 20437if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 20438 echo $ECHO_N "(cached) $ECHO_C" >&6 20439else 20440 lt_cv_prog_compiler_c_o_CXX=no 20441 $RM -r conftest 2>/dev/null 20442 mkdir conftest 20443 cd conftest 20444 mkdir out 20445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20446 20447 lt_compiler_flag="-o out/conftest2.$ac_objext" 20448 # Insert the option either (1) after the last *FLAGS variable, or 20449 # (2) before a word containing "conftest.", or (3) at the end. 20450 # Note that $ac_compile itself does not contain backslashes and begins 20451 # with a dollar sign (not a hyphen), so the echo should work correctly. 20452 lt_compile=`echo "$ac_compile" | $SED \ 20453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20455 -e 's:$: $lt_compiler_flag:'` 20456 (eval echo "\"\$as_me:20456: $lt_compile\"" >&5) 20457 (eval "$lt_compile" 2>out/conftest.err) 20458 ac_status=$? 20459 cat out/conftest.err >&5 20460 echo "$as_me:20460: \$? = $ac_status" >&5 20461 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20462 then 20463 # The compiler can only warn and ignore the option if not recognized 20464 # So say no if there are warnings 20465 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 20466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20468 lt_cv_prog_compiler_c_o_CXX=yes 20469 fi 20470 fi 20471 chmod u+w . 2>&5 20472 $RM conftest* 20473 # SGI C++ compiler will create directory out/ii_files/ for 20474 # template instantiation 20475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20476 $RM out/* && rmdir out 20477 cd .. 20478 $RM -r conftest 20479 $RM conftest* 20480 20481fi 20482{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 20483echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 20484 20485 20486 20487 20488hard_links="nottested" 20489if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 20490 # do not overwrite the value of need_locks provided by the user 20491 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 20492echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 20493 hard_links=yes 20494 $RM conftest* 20495 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20496 touch conftest.a 20497 ln conftest.a conftest.b 2>&5 || hard_links=no 20498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20499 { echo "$as_me:$LINENO: result: $hard_links" >&5 20500echo "${ECHO_T}$hard_links" >&6; } 20501 if test "$hard_links" = no; then 20502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 20503echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 20504 need_locks=warn 20505 fi 20506else 20507 need_locks=no 20508fi 20509 20510 20511 20512 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20513echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 20514 20515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20516 case $host_os in 20517 aix4* | aix5*) 20518 # If we're using GNU nm, then we don't want the "-C" option. 20519 # -C means demangle to AIX nm, but means don't demangle with GNU nm 20520 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20521 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 20522 else 20523 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 20524 fi 20525 ;; 20526 pw32*) 20527 export_symbols_cmds_CXX="$ltdll_cmds" 20528 ;; 20529 cygwin* | mingw*) 20530 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 20531 ;; 20532 *) 20533 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20534 ;; 20535 esac 20536 20537{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 20538echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 20539test "$ld_shlibs_CXX" = no && can_build_shared=no 20540 20541with_gnu_ld_CXX=$with_gnu_ld 20542 20543 20544 20545 20546 20547 20548# 20549# Do we need to explicitly link libc? 20550# 20551case "x$archive_cmds_need_lc_CXX" in 20552x|xyes) 20553 # Assume -lc should be added 20554 archive_cmds_need_lc_CXX=yes 20555 20556 if test "$enable_shared" = yes && test "$GCC" = yes; then 20557 case $archive_cmds_CXX in 20558 *'~'*) 20559 # FIXME: we may have to deal with multi-command sequences. 20560 ;; 20561 '$CC '*) 20562 # Test whether the compiler implicitly links with -lc since on some 20563 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20564 # to ld, don't add -lc before -lgcc. 20565 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 20566echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 20567 $RM conftest* 20568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20569 20570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20571 (eval $ac_compile) 2>&5 20572 ac_status=$? 20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20574 (exit $ac_status); } 2>conftest.err; then 20575 soname=conftest 20576 lib=conftest 20577 libobjs=conftest.$ac_objext 20578 deplibs= 20579 wl=$lt_prog_compiler_wl_CXX 20580 pic_flag=$lt_prog_compiler_pic_CXX 20581 compiler_flags=-v 20582 linker_flags=-v 20583 verstring= 20584 output_objdir=. 20585 libname=conftest 20586 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 20587 allow_undefined_flag_CXX= 20588 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 20589 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20590 ac_status=$? 20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20592 (exit $ac_status); } 20593 then 20594 archive_cmds_need_lc_CXX=no 20595 else 20596 archive_cmds_need_lc_CXX=yes 20597 fi 20598 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 20599 else 20600 cat conftest.err 1>&5 20601 fi 20602 $RM conftest* 20603 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 20604echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 20605 ;; 20606 esac 20607 fi 20608 ;; 20609esac 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 20675echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 20676withGCC=$GXX 20677library_names_spec= 20678libname_spec='lib$name' 20679soname_spec= 20680shrext_cmds=".so" 20681postinstall_cmds= 20682postuninstall_cmds= 20683finish_cmds= 20684finish_eval= 20685shlibpath_var= 20686shlibpath_overrides_runpath=unknown 20687version_type=none 20688dynamic_linker="$host_os ld.so" 20689sys_lib_dlsearch_path_spec="/lib /usr/lib" 20690need_lib_prefix=unknown 20691hardcode_into_libs=no 20692 20693# when you set need_version to no, make sure it does not cause -set_version 20694# flags to be left without arguments 20695need_version=unknown 20696 20697case $host_os in 20698aix3*) 20699 version_type=linux 20700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 20701 shlibpath_var=LIBPATH 20702 20703 # AIX 3 has no versioning support, so we append a major version to the name. 20704 soname_spec='${libname}${release}${shared_ext}$major' 20705 ;; 20706 20707aix4* | aix5*) 20708 version_type=linux 20709 need_lib_prefix=no 20710 need_version=no 20711 hardcode_into_libs=yes 20712 if test "$host_cpu" = ia64; then 20713 # AIX 5 supports IA64 20714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 20715 shlibpath_var=LD_LIBRARY_PATH 20716 else 20717 # With GCC up to 2.95.x, collect2 would create an import file 20718 # for dependence libraries. The import file would start with 20719 # the line `#! .'. This would cause the generated library to 20720 # depend on `.', always an invalid library. This was fixed in 20721 # development snapshots of GCC prior to 3.0. 20722 case $host_os in 20723 aix4 | aix4.[01] | aix4.[01].*) 20724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20725 echo ' yes ' 20726 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 20727 : 20728 else 20729 can_build_shared=no 20730 fi 20731 ;; 20732 esac 20733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 20734 # soname into executable. Probably we can add versioning support to 20735 # collect2, so additional links can be useful in future. 20736 if test "$aix_use_runtimelinking" = yes; then 20737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20738 # instead of lib<name>.a to let people know that these are not 20739 # typical AIX shared libraries. 20740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20741 else 20742 # We preserve .a as extension for shared libraries through AIX4.2 20743 # and later when we are not doing run time linking. 20744 library_names_spec='${libname}${release}.a $libname.a' 20745 soname_spec='${libname}${release}${shared_ext}$major' 20746 fi 20747 shlibpath_var=LIBPATH 20748 fi 20749 ;; 20750 20751amigaos*) 20752 if test "$host_cpu" = m68k; then 20753 library_names_spec='$libname.ixlibrary $libname.a' 20754 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20755 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' 20756 else 20757 dynamic_linker=no 20758 fi 20759 ;; 20760 20761beos*) 20762 library_names_spec='${libname}${shared_ext}' 20763 dynamic_linker="$host_os ld.so" 20764 shlibpath_var=LIBRARY_PATH 20765 ;; 20766 20767bsdi[45]*) 20768 version_type=linux 20769 need_version=no 20770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20771 soname_spec='${libname}${release}${shared_ext}$major' 20772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20773 shlibpath_var=LD_LIBRARY_PATH 20774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20776 # the default ld.so.conf also contains /usr/contrib/lib and 20777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20778 # libtool to hard-code these into programs 20779 ;; 20780 20781cygwin* | mingw* | pw32*) 20782 version_type=windows 20783 shrext_cmds=".dll" 20784 need_version=no 20785 need_lib_prefix=no 20786 20787 case $withGCC,$host_os in 20788 yes,cygwin* | yes,mingw* | yes,pw32*) 20789 library_names_spec='$libname.dll.a' 20790 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20791 postinstall_cmds='base_file=`basename \${file}`~ 20792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 20793 dldir=$destdir/`dirname \$dlpath`~ 20794 test -d \$dldir || mkdir -p \$dldir~ 20795 $install_prog $dir/$dlname \$dldir/$dlname~ 20796 chmod a+x \$dldir/$dlname~ 20797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20799 fi' 20800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20801 dlpath=$dir/\$dldll~ 20802 $RM \$dlpath' 20803 shlibpath_overrides_runpath=yes 20804 20805 case $host_os in 20806 cygwin*) 20807 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20809 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 20810 ;; 20811 mingw*) 20812 # MinGW DLLs use traditional 'lib' prefix 20813 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20814 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20815 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 20816 # It is most probably a Windows format PATH printed by 20817 # mingw gcc, but we are running on Cygwin. Gcc prints its search 20818 # path with ; separators, and with drive letters. We can handle the 20819 # drive letters (cygwin fileutils understands them), so leave them, 20820 # especially as we might pass files found there to a mingw objdump, 20821 # which wouldn't understand a cygwinified path. Ahh. 20822 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20823 else 20824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20825 fi 20826 ;; 20827 pw32*) 20828 # pw32 DLLs use 'pw' prefix rather than 'lib' 20829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20830 ;; 20831 esac 20832 ;; 20833 20834 *) 20835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 20836 ;; 20837 esac 20838 dynamic_linker='Win32 ld.exe' 20839 # FIXME: first we should search . and the directory the executable is in 20840 shlibpath_var=PATH 20841 ;; 20842 20843darwin* | rhapsody*) 20844 dynamic_linker="$host_os dyld" 20845 version_type=darwin 20846 need_lib_prefix=no 20847 need_version=no 20848 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 20849 soname_spec='${libname}${release}${major}$shared_ext' 20850 shlibpath_overrides_runpath=yes 20851 shlibpath_var=DYLD_LIBRARY_PATH 20852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20853 20854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20855 ;; 20856 20857dgux*) 20858 version_type=linux 20859 need_lib_prefix=no 20860 need_version=no 20861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 20862 soname_spec='${libname}${release}${shared_ext}$major' 20863 shlibpath_var=LD_LIBRARY_PATH 20864 ;; 20865 20866freebsd1*) 20867 dynamic_linker=no 20868 ;; 20869 20870freebsd* | dragonfly*) 20871 # DragonFly does not have aout. When/if they implement a new 20872 # versioning mechanism, adjust this. 20873 if test -x /usr/bin/objformat; then 20874 objformat=`/usr/bin/objformat` 20875 else 20876 case $host_os in 20877 freebsd[123]*) objformat=aout ;; 20878 *) objformat=elf ;; 20879 esac 20880 fi 20881 version_type=freebsd-$objformat 20882 case $version_type in 20883 freebsd-elf*) 20884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20885 need_version=no 20886 need_lib_prefix=no 20887 ;; 20888 freebsd-*) 20889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20890 need_version=yes 20891 ;; 20892 esac 20893 shlibpath_var=LD_LIBRARY_PATH 20894 case $host_os in 20895 freebsd2*) 20896 shlibpath_overrides_runpath=yes 20897 ;; 20898 freebsd3.[01]* | freebsdelf3.[01]*) 20899 shlibpath_overrides_runpath=yes 20900 hardcode_into_libs=yes 20901 ;; 20902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20904 shlibpath_overrides_runpath=no 20905 hardcode_into_libs=yes 20906 ;; 20907 *) # from 4.6 on, and DragonFly 20908 shlibpath_overrides_runpath=yes 20909 hardcode_into_libs=yes 20910 ;; 20911 esac 20912 ;; 20913 20914gnu*) 20915 version_type=linux 20916 need_lib_prefix=no 20917 need_version=no 20918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20919 soname_spec='${libname}${release}${shared_ext}$major' 20920 shlibpath_var=LD_LIBRARY_PATH 20921 hardcode_into_libs=yes 20922 ;; 20923 20924hpux9* | hpux10* | hpux11*) 20925 # Give a soname corresponding to the major version so that dld.sl refuses to 20926 # link against other versions. 20927 version_type=sunos 20928 need_lib_prefix=no 20929 need_version=no 20930 case $host_cpu in 20931 ia64*) 20932 shrext_cmds='.so' 20933 hardcode_into_libs=yes 20934 dynamic_linker="$host_os dld.so" 20935 shlibpath_var=LD_LIBRARY_PATH 20936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20938 soname_spec='${libname}${release}${shared_ext}$major' 20939 if test "X$HPUX_IA64_MODE" = X32; then 20940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20941 else 20942 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20943 fi 20944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20945 ;; 20946 hppa*64*) 20947 shrext_cmds='.sl' 20948 hardcode_into_libs=yes 20949 dynamic_linker="$host_os dld.sl" 20950 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20951 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20953 soname_spec='${libname}${release}${shared_ext}$major' 20954 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20956 ;; 20957 *) 20958 shrext_cmds='.sl' 20959 dynamic_linker="$host_os dld.sl" 20960 shlibpath_var=SHLIB_PATH 20961 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20963 soname_spec='${libname}${release}${shared_ext}$major' 20964 ;; 20965 esac 20966 # HP-UX runs *really* slowly unless shared libraries are mode 555. 20967 postinstall_cmds='chmod 555 $lib' 20968 ;; 20969 20970interix3*) 20971 version_type=linux 20972 need_lib_prefix=no 20973 need_version=no 20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20975 soname_spec='${libname}${release}${shared_ext}$major' 20976 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20977 shlibpath_var=LD_LIBRARY_PATH 20978 shlibpath_overrides_runpath=no 20979 hardcode_into_libs=yes 20980 ;; 20981 20982irix5* | irix6* | nonstopux*) 20983 case $host_os in 20984 nonstopux*) version_type=nonstopux ;; 20985 *) 20986 if test "$lt_cv_prog_gnu_ld" = yes; then 20987 version_type=linux 20988 else 20989 version_type=irix 20990 fi ;; 20991 esac 20992 need_lib_prefix=no 20993 need_version=no 20994 soname_spec='${libname}${release}${shared_ext}$major' 20995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20996 case $host_os in 20997 irix5* | nonstopux*) 20998 libsuff= shlibsuff= 20999 ;; 21000 *) 21001 case $LD in # libtool.m4 will add one of these switches to LD 21002 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21003 libsuff= shlibsuff= libmagic=32-bit;; 21004 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21005 libsuff=32 shlibsuff=N32 libmagic=N32;; 21006 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21007 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21008 *) libsuff= shlibsuff= libmagic=never-match;; 21009 esac 21010 ;; 21011 esac 21012 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21013 shlibpath_overrides_runpath=no 21014 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 21015 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 21016 hardcode_into_libs=yes 21017 ;; 21018 21019# No shared lib support for Linux oldld, aout, or coff. 21020linux*oldld* | linux*aout* | linux*coff*) 21021 dynamic_linker=no 21022 ;; 21023 21024# This must be Linux ELF. 21025linux* | k*bsd*-gnu) 21026 version_type=linux 21027 need_lib_prefix=no 21028 need_version=no 21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21030 soname_spec='${libname}${release}${shared_ext}$major' 21031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21032 shlibpath_var=LD_LIBRARY_PATH 21033 shlibpath_overrides_runpath=no 21034 # Some binutils ld are patched to set DT_RUNPATH 21035 save_LDFLAGS=$LDFLAGS 21036 save_libdir=$libdir 21037 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 21038 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 21039 cat >conftest.$ac_ext <<_ACEOF 21040/* confdefs.h. */ 21041_ACEOF 21042cat confdefs.h >>conftest.$ac_ext 21043cat >>conftest.$ac_ext <<_ACEOF 21044/* end confdefs.h. */ 21045 21046int 21047main () 21048{ 21049 21050 ; 21051 return 0; 21052} 21053_ACEOF 21054rm -f conftest.$ac_objext conftest$ac_exeext 21055if { (ac_try="$ac_link" 21056case "(($ac_try" in 21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21058 *) ac_try_echo=$ac_try;; 21059esac 21060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21061 (eval "$ac_link") 2>conftest.er1 21062 ac_status=$? 21063 grep -v '^ *+' conftest.er1 >conftest.err 21064 rm -f conftest.er1 21065 cat conftest.err >&5 21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21067 (exit $ac_status); } && { 21068 test -z "$ac_cxx_werror_flag" || 21069 test ! -s conftest.err 21070 } && test -s conftest$ac_exeext && 21071 $as_test_x conftest$ac_exeext; then 21072 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then 21073 shlibpath_overrides_runpath=yes 21074fi 21075 21076else 21077 echo "$as_me: failed program was:" >&5 21078sed 's/^/| /' conftest.$ac_ext >&5 21079 21080 21081fi 21082 21083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21084 conftest$ac_exeext conftest.$ac_ext 21085 LDFLAGS=$save_LDFLAGS 21086 libdir=$save_libdir 21087 21088 # This implies no fast_install, which is unacceptable. 21089 # Some rework will be needed to allow for fast_install 21090 # before this can be enabled. 21091 hardcode_into_libs=yes 21092 21093 # Append ld.so.conf contents to the search path 21094 if test -f /etc/ld.so.conf; then 21095 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 21096 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21097 fi 21098 21099 # We used to test for /lib/ld.so.1 and disable shared libraries on 21100 # powerpc, because MkLinux only supported shared libraries with the 21101 # GNU dynamic linker. Since this was broken with cross compilers, 21102 # most powerpc-linux boxes support dynamic linking these days and 21103 # people can always --disable-shared, the test was removed, and we 21104 # assume the GNU/Linux dynamic linker is in use. 21105 dynamic_linker='GNU/Linux ld.so' 21106 ;; 21107 21108netbsd*) 21109 version_type=sunos 21110 need_lib_prefix=no 21111 need_version=no 21112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21115 dynamic_linker='NetBSD (a.out) ld.so' 21116 else 21117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21118 soname_spec='${libname}${release}${shared_ext}$major' 21119 dynamic_linker='NetBSD ld.elf_so' 21120 fi 21121 shlibpath_var=LD_LIBRARY_PATH 21122 shlibpath_overrides_runpath=yes 21123 hardcode_into_libs=yes 21124 ;; 21125 21126newsos6) 21127 version_type=linux 21128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21129 shlibpath_var=LD_LIBRARY_PATH 21130 shlibpath_overrides_runpath=yes 21131 ;; 21132 21133*nto* | *qnx*) 21134 version_type=qnx 21135 need_lib_prefix=no 21136 need_version=no 21137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21138 soname_spec='${libname}${release}${shared_ext}$major' 21139 shlibpath_var=LD_LIBRARY_PATH 21140 shlibpath_overrides_runpath=no 21141 hardcode_into_libs=yes 21142 dynamic_linker='ldqnx.so' 21143 ;; 21144 21145openbsd*) 21146 version_type=sunos 21147 sys_lib_dlsearch_path_spec="/usr/lib" 21148 need_lib_prefix=no 21149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21150 case $host_os in 21151 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21152 *) need_version=no ;; 21153 esac 21154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21156 shlibpath_var=LD_LIBRARY_PATH 21157 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21158 case $host_os in 21159 openbsd2.[89] | openbsd2.[89].*) 21160 shlibpath_overrides_runpath=no 21161 ;; 21162 *) 21163 shlibpath_overrides_runpath=yes 21164 ;; 21165 esac 21166 else 21167 shlibpath_overrides_runpath=yes 21168 fi 21169 ;; 21170 21171os2*) 21172 libname_spec='$name' 21173 shrext_cmds=".dll" 21174 need_lib_prefix=no 21175 library_names_spec='$libname${shared_ext} $libname.a' 21176 dynamic_linker='OS/2 ld.exe' 21177 shlibpath_var=LIBPATH 21178 ;; 21179 21180osf3* | osf4* | osf5*) 21181 version_type=osf 21182 need_lib_prefix=no 21183 need_version=no 21184 soname_spec='${libname}${release}${shared_ext}$major' 21185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21186 shlibpath_var=LD_LIBRARY_PATH 21187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21189 ;; 21190 21191rdos*) 21192 dynamic_linker=no 21193 ;; 21194 21195solaris*) 21196 version_type=linux 21197 need_lib_prefix=no 21198 need_version=no 21199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21200 soname_spec='${libname}${release}${shared_ext}$major' 21201 shlibpath_var=LD_LIBRARY_PATH 21202 shlibpath_overrides_runpath=yes 21203 hardcode_into_libs=yes 21204 # ldd complains unless libraries are executable 21205 postinstall_cmds='chmod +x $lib' 21206 ;; 21207 21208sunos4*) 21209 version_type=sunos 21210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21212 shlibpath_var=LD_LIBRARY_PATH 21213 shlibpath_overrides_runpath=yes 21214 if test "$with_gnu_ld" = yes; then 21215 need_lib_prefix=no 21216 fi 21217 need_version=yes 21218 ;; 21219 21220sysv4 | sysv4.3*) 21221 version_type=linux 21222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21223 soname_spec='${libname}${release}${shared_ext}$major' 21224 shlibpath_var=LD_LIBRARY_PATH 21225 case $host_vendor in 21226 sni) 21227 shlibpath_overrides_runpath=no 21228 need_lib_prefix=no 21229 runpath_var=LD_RUN_PATH 21230 ;; 21231 siemens) 21232 need_lib_prefix=no 21233 ;; 21234 motorola) 21235 need_lib_prefix=no 21236 need_version=no 21237 shlibpath_overrides_runpath=no 21238 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21239 ;; 21240 esac 21241 ;; 21242 21243sysv4*MP*) 21244 if test -d /usr/nec ;then 21245 version_type=linux 21246 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 21247 soname_spec='$libname${shared_ext}.$major' 21248 shlibpath_var=LD_LIBRARY_PATH 21249 fi 21250 ;; 21251 21252sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21253 version_type=freebsd-elf 21254 need_lib_prefix=no 21255 need_version=no 21256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21257 soname_spec='${libname}${release}${shared_ext}$major' 21258 shlibpath_var=LD_LIBRARY_PATH 21259 shlibpath_overrides_runpath=yes 21260 hardcode_into_libs=yes 21261 if test "$with_gnu_ld" = yes; then 21262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21263 else 21264 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21265 case $host_os in 21266 sco3.2v5*) 21267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21268 ;; 21269 esac 21270 fi 21271 sys_lib_dlsearch_path_spec='/usr/lib' 21272 ;; 21273 21274tpf*) 21275 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21276 version_type=linux 21277 need_lib_prefix=no 21278 need_version=no 21279 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21280 shlibpath_var=LD_LIBRARY_PATH 21281 shlibpath_overrides_runpath=no 21282 hardcode_into_libs=yes 21283 ;; 21284 21285uts4*) 21286 version_type=linux 21287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21288 soname_spec='${libname}${release}${shared_ext}$major' 21289 shlibpath_var=LD_LIBRARY_PATH 21290 ;; 21291 21292*) 21293 dynamic_linker=no 21294 ;; 21295esac 21296{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 21297echo "${ECHO_T}$dynamic_linker" >&6; } 21298test "$dynamic_linker" = no && can_build_shared=no 21299 21300variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21301if test "$GCC" = yes; then 21302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21303fi 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 21341echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 21342hardcode_action_CXX= 21343if test -n "$hardcode_libdir_flag_spec_CXX" || 21344 test -n "$runpath_var_CXX" || 21345 test "X$hardcode_automatic_CXX" = "Xyes" ; then 21346 21347 # We can hardcode non-existent directories. 21348 if test "$hardcode_direct_CXX" != no && 21349 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21350 # have to relink, otherwise we might link with an installed library 21351 # when we should be linking with a yet-to-be-installed one 21352 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 21353 test "$hardcode_minus_L_CXX" != no; then 21354 # Linking always hardcodes the temporary library directory. 21355 hardcode_action_CXX=relink 21356 else 21357 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21358 hardcode_action_CXX=immediate 21359 fi 21360else 21361 # We cannot hardcode anything, or else we can only hardcode existing 21362 # directories. 21363 hardcode_action_CXX=unsupported 21364fi 21365{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 21366echo "${ECHO_T}$hardcode_action_CXX" >&6; } 21367 21368if test "$hardcode_action_CXX" = relink || 21369 test "$inherit_rpath_CXX" = yes; then 21370 # Fast installation is not supported 21371 enable_fast_install=no 21372elif test "$shlibpath_overrides_runpath" = yes || 21373 test "$enable_shared" = no; then 21374 # Fast installation is not necessary 21375 enable_fast_install=needless 21376fi 21377 21378 21379 21380 21381 21382 21383 21384 fi # test -n "$compiler" 21385 21386 CC=$lt_save_CC 21387 LDCXX=$LD 21388 LD=$lt_save_LD 21389 GCC=$lt_save_GCC 21390 with_gnu_ld=$lt_save_with_gnu_ld 21391 lt_cv_path_LDCXX=$lt_cv_path_LD 21392 lt_cv_path_LD=$lt_save_path_LD 21393 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 21394 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 21395fi # test "$_lt_caught_CXX_error" != yes 21396 21397ac_ext=c 21398ac_cpp='$CPP $CPPFLAGS' 21399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21401ac_compiler_gnu=$ac_cv_c_compiler_gnu 21402 21403 21404GLU_CFLAGS="${GL_CFLAGS}" 21405if test "X${with_apple_opengl_framework}" != "Xyes"; then 21406 { echo "$as_me:$LINENO: checking for OpenGL Utility library" >&5 21407echo $ECHO_N "checking for OpenGL Utility library... $ECHO_C" >&6; } 21408if test "${ax_cv_check_glu_libglu+set}" = set; then 21409 echo $ECHO_N "(cached) $ECHO_C" >&6 21410else 21411 ax_cv_check_glu_libglu="no" 21412 ax_save_CPPFLAGS="${CPPFLAGS}" 21413 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}" 21414 ax_save_LIBS="${LIBS}" 21415 LIBS="" 21416 ax_check_libs="-lglu32 -lGLU" 21417 for ax_lib in ${ax_check_libs}; do 21418 if test X$ax_compiler_ms = Xyes; then 21419 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 21420 else 21421 ax_try_lib="${ax_lib}" 21422 fi 21423 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}" 21424 # 21425 # libGLU typically links with libstdc++ on POSIX platforms. However, 21426 # setting the language to C++ means that test program source is named 21427 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a 21428 # file. 21429 # 21430 ac_ext=cpp 21431ac_cpp='$CXXCPP $CPPFLAGS' 21432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21435 21436 if test X$ax_compiler_ms = Xyes; then 21437 ac_ext=c 21438ac_cpp='$CPP $CPPFLAGS' 21439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21441ac_compiler_gnu=$ac_cv_c_compiler_gnu 21442 21443 fi 21444 cat >conftest.$ac_ext <<_ACEOF 21445/* confdefs.h. */ 21446_ACEOF 21447cat confdefs.h >>conftest.$ac_ext 21448cat >>conftest.$ac_ext <<_ACEOF 21449/* end confdefs.h. */ 21450 21451# if HAVE_WINDOWS_H && defined(_WIN32) 21452# include <windows.h> 21453# endif 21454# include <GL/glu.h> 21455int 21456main () 21457{ 21458gluBeginCurve(0) 21459 ; 21460 return 0; 21461} 21462_ACEOF 21463rm -f conftest.$ac_objext conftest$ac_exeext 21464if { (ac_try="$ac_link" 21465case "(($ac_try" in 21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21467 *) ac_try_echo=$ac_try;; 21468esac 21469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21470 (eval "$ac_link") 2>conftest.er1 21471 ac_status=$? 21472 grep -v '^ *+' conftest.er1 >conftest.err 21473 rm -f conftest.er1 21474 cat conftest.err >&5 21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21476 (exit $ac_status); } && { 21477 test -z "$ac_c_werror_flag" || 21478 test ! -s conftest.err 21479 } && test -s conftest$ac_exeext && 21480 $as_test_x conftest$ac_exeext; then 21481 ax_cv_check_glu_libglu="${ax_try_lib}"; break 21482else 21483 echo "$as_me: failed program was:" >&5 21484sed 's/^/| /' conftest.$ac_ext >&5 21485 21486 21487fi 21488 21489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21490 conftest$ac_exeext conftest.$ac_ext 21491 if test X$ax_compiler_ms = Xyes; then 21492 ac_ext=cpp 21493ac_cpp='$CXXCPP $CPPFLAGS' 21494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21497 21498 fi 21499 ac_ext=c 21500ac_cpp='$CPP $CPPFLAGS' 21501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21503ac_compiler_gnu=$ac_cv_c_compiler_gnu 21504 21505 done 21506 LIBS=${ax_save_LIBS} 21507 CPPFLAGS=${ax_save_CPPFLAGS} 21508fi 21509{ echo "$as_me:$LINENO: result: $ax_cv_check_glu_libglu" >&5 21510echo "${ECHO_T}$ax_cv_check_glu_libglu" >&6; } 21511 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then 21512 no_glu="yes" 21513 GLU_CFLAGS="" 21514 GLU_LIBS="" 21515 else 21516 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}" 21517 fi 21518fi 21519 21520 21521 21522 21523if test "X$with_apple_opengl_framework" = "Xyes"; then 21524 GLUT_CFLAGS="${GLU_CFLAGS}" 21525 GLUT_LIBS="-framework GLUT -lobjc ${GL_LIBS}" 21526else 21527 GLUT_CFLAGS=${GLU_CFLAGS} 21528 GLUT_LIBS=${GLU_LIBS} 21529 21530 # 21531 # If X is present, assume GLUT depends on it. 21532 # 21533 if test "X${no_x}" != "Xyes"; then 21534 GLUT_LIBS="${X_PRE_LIBS} -lXmu -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}" 21535 fi 21536 21537 ac_ext=c 21538ac_cpp='$CPP $CPPFLAGS' 21539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21541ac_compiler_gnu=$ac_cv_c_compiler_gnu 21542 21543 21544 ax_save_CPPFLAGS="${CPPFLAGS}" 21545 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}" 21546 21547 { echo "$as_me:$LINENO: checking for GLUT library" >&5 21548echo $ECHO_N "checking for GLUT library... $ECHO_C" >&6; } 21549if test "${ax_cv_check_glut_libglut+set}" = set; then 21550 echo $ECHO_N "(cached) $ECHO_C" >&6 21551else 21552 ax_cv_check_glut_libglut="no" 21553 ax_save_LIBS="${LIBS}" 21554 LIBS="" 21555 ax_check_libs="-lglut32 -lglut" 21556 for ax_lib in ${ax_check_libs}; do 21557 if test X$ax_compiler_ms = Xyes; then 21558 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'` 21559 else 21560 ax_try_lib="${ax_lib}" 21561 fi 21562 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}" 21563 cat >conftest.$ac_ext <<_ACEOF 21564/* confdefs.h. */ 21565_ACEOF 21566cat confdefs.h >>conftest.$ac_ext 21567cat >>conftest.$ac_ext <<_ACEOF 21568/* end confdefs.h. */ 21569 21570# if HAVE_WINDOWS_H && defined(_WIN32) 21571# include <windows.h> 21572# endif 21573# include <GL/glut.h> 21574int 21575main () 21576{ 21577glutMainLoop() 21578 ; 21579 return 0; 21580} 21581_ACEOF 21582rm -f conftest.$ac_objext conftest$ac_exeext 21583if { (ac_try="$ac_link" 21584case "(($ac_try" in 21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21586 *) ac_try_echo=$ac_try;; 21587esac 21588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21589 (eval "$ac_link") 2>conftest.er1 21590 ac_status=$? 21591 grep -v '^ *+' conftest.er1 >conftest.err 21592 rm -f conftest.er1 21593 cat conftest.err >&5 21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21595 (exit $ac_status); } && { 21596 test -z "$ac_c_werror_flag" || 21597 test ! -s conftest.err 21598 } && test -s conftest$ac_exeext && 21599 $as_test_x conftest$ac_exeext; then 21600 ax_cv_check_glut_libglut="${ax_try_lib}"; break 21601else 21602 echo "$as_me: failed program was:" >&5 21603sed 's/^/| /' conftest.$ac_ext >&5 21604 21605 21606fi 21607 21608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21609 conftest$ac_exeext conftest.$ac_ext 21610 21611 done 21612 LIBS=${ax_save_LIBS} 21613 21614fi 21615{ echo "$as_me:$LINENO: result: $ax_cv_check_glut_libglut" >&5 21616echo "${ECHO_T}$ax_cv_check_glut_libglut" >&6; } 21617 CPPFLAGS="${ax_save_CPPFLAGS}" 21618 ac_ext=c 21619ac_cpp='$CPP $CPPFLAGS' 21620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21622ac_compiler_gnu=$ac_cv_c_compiler_gnu 21623 21624 21625 if test "X${ax_cv_check_glut_libglut}" = "Xno"; then 21626 no_glut="yes" 21627 GLUT_CFLAGS="" 21628 GLUT_LIBS="" 21629 else 21630 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}" 21631 fi 21632fi 21633 21634 21635 21636 21637 21638if test "$no_x" != "yes" -a "$no_gl" != "yes" \ 21639 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then 21640 HAVE_OPENGL=yes 21641fi 21642 21643 21644 21645if test "$HAVE_OPENGL" = "yes"; then 21646 HAVE_OPENGL_TRUE= 21647 HAVE_OPENGL_FALSE='#' 21648else 21649 HAVE_OPENGL_TRUE='#' 21650 HAVE_OPENGL_FALSE= 21651fi 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661# Check whether --enable-strip-chopping was given. 21662if test "${enable_strip_chopping+set}" = set; then 21663 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval 21664else 21665 HAVE_STRIPCHOP=yes 21666fi 21667 21668 21669# Check whether --with-default-strip-size was given. 21670if test "${with_default_strip_size+set}" = set; then 21671 withval=$with_default_strip_size; 21672fi 21673 21674 21675if test "$HAVE_STRIPCHOP" = "yes" \ 21676 -a "x$with_default_strip_size" != "xno"; then 21677 21678cat >>confdefs.h <<\_ACEOF 21679#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP 21680_ACEOF 21681 21682 21683 if test "x$with_default_strip_size" = "x" \ 21684 -o "x$with_default_strip_size" = "xyes"; then 21685 with_default_strip_size="8192" 21686 fi 21687 21688 21689cat >>confdefs.h <<_ACEOF 21690#define STRIP_SIZE_DEFAULT $with_default_strip_size 21691_ACEOF 21692 21693 21694fi 21695 21696 21697cat >>confdefs.h <<\_ACEOF 21698#define SUBIFD_SUPPORT 1 21699_ACEOF 21700 21701 21702 21703# Check whether --enable-extrasample-as-alpha was given. 21704if test "${enable_extrasample_as_alpha+set}" = set; then 21705 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval 21706else 21707 HAVE_EXTRASAMPLE_AS_ALPHA=yes 21708fi 21709 21710 21711if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then 21712 21713cat >>confdefs.h <<\_ACEOF 21714#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1 21715_ACEOF 21716 21717fi 21718 21719 21720# Check whether --enable-check-ycbcr-subsampling was given. 21721if test "${enable_check_ycbcr_subsampling+set}" = set; then 21722 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval 21723else 21724 CHECK_JPEG_YCBCR_SUBSAMPLING=yes 21725fi 21726 21727 21728if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then 21729 21730cat >>confdefs.h <<\_ACEOF 21731#define CHECK_JPEG_YCBCR_SUBSAMPLING 1 21732_ACEOF 21733 21734fi 21735 21736 21737 21738 21739ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h" 21740 21741 21742ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/acorn/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mac-cw/Makefile contrib/mac-mpw/Makefile contrib/mfs/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile" 21743 21744cat >confcache <<\_ACEOF 21745# This file is a shell script that caches the results of configure 21746# tests run on this system so they can be shared between configure 21747# scripts and configure runs, see configure's option --config-cache. 21748# It is not useful on other systems. If it contains results you don't 21749# want to keep, you may remove or edit it. 21750# 21751# config.status only pays attention to the cache file if you give it 21752# the --recheck option to rerun configure. 21753# 21754# `ac_cv_env_foo' variables (set or unset) will be overridden when 21755# loading this file, other *unset* `ac_cv_foo' will be assigned the 21756# following values. 21757 21758_ACEOF 21759 21760# The following way of writing the cache mishandles newlines in values, 21761# but we know of no workaround that is simple, portable, and efficient. 21762# So, we kill variables containing newlines. 21763# Ultrix sh set writes to stderr and can't be redirected directly, 21764# and sets the high bit in the cache file unless we assign to the vars. 21765( 21766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21767 eval ac_val=\$$ac_var 21768 case $ac_val in #( 21769 *${as_nl}*) 21770 case $ac_var in #( 21771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21772echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21773 esac 21774 case $ac_var in #( 21775 _ | IFS | as_nl) ;; #( 21776 *) $as_unset $ac_var ;; 21777 esac ;; 21778 esac 21779 done 21780 21781 (set) 2>&1 | 21782 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21783 *${as_nl}ac_space=\ *) 21784 # `set' does not quote correctly, so add quotes (double-quote 21785 # substitution turns \\\\ into \\, and sed turns \\ into \). 21786 sed -n \ 21787 "s/'/'\\\\''/g; 21788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21789 ;; #( 21790 *) 21791 # `set' quotes correctly as required by POSIX, so do not add quotes. 21792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21793 ;; 21794 esac | 21795 sort 21796) | 21797 sed ' 21798 /^ac_cv_env_/b end 21799 t clear 21800 :clear 21801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21802 t end 21803 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21804 :end' >>confcache 21805if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21806 if test -w "$cache_file"; then 21807 test "x$cache_file" != "x/dev/null" && 21808 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21809echo "$as_me: updating cache $cache_file" >&6;} 21810 cat confcache >$cache_file 21811 else 21812 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21813echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21814 fi 21815fi 21816rm -f confcache 21817 21818test "x$prefix" = xNONE && prefix=$ac_default_prefix 21819# Let make expand exec_prefix. 21820test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21821 21822DEFS=-DHAVE_CONFIG_H 21823 21824ac_libobjs= 21825ac_ltlibobjs= 21826for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21827 # 1. Remove the extension, and $U if already installed. 21828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21829 ac_i=`echo "$ac_i" | sed "$ac_script"` 21830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21831 # will be set to the directory where LIBOBJS objects are built. 21832 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21833 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21834done 21835LIBOBJS=$ac_libobjs 21836 21837LTLIBOBJS=$ac_ltlibobjs 21838 21839 21840if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21841 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21842Usually this means the macro was only invoked conditionally." >&5 21843echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21844Usually this means the macro was only invoked conditionally." >&2;} 21845 { (exit 1); exit 1; }; } 21846fi 21847if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21848 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21849Usually this means the macro was only invoked conditionally." >&5 21850echo "$as_me: error: conditional \"AMDEP\" was never defined. 21851Usually this means the macro was only invoked conditionally." >&2;} 21852 { (exit 1); exit 1; }; } 21853fi 21854if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21855 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21856Usually this means the macro was only invoked conditionally." >&5 21857echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21858Usually this means the macro was only invoked conditionally." >&2;} 21859 { (exit 1); exit 1; }; } 21860fi 21861if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then 21862 { { echo "$as_me:$LINENO: error: conditional \"HAVE_RPATH\" was never defined. 21863Usually this means the macro was only invoked conditionally." >&5 21864echo "$as_me: error: conditional \"HAVE_RPATH\" was never defined. 21865Usually this means the macro was only invoked conditionally." >&2;} 21866 { (exit 1); exit 1; }; } 21867fi 21868if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then 21869 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined. 21870Usually this means the macro was only invoked conditionally." >&5 21871echo "$as_me: error: conditional \"HAVE_CXX\" was never defined. 21872Usually this means the macro was only invoked conditionally." >&2;} 21873 { (exit 1); exit 1; }; } 21874fi 21875if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21876 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21877Usually this means the macro was only invoked conditionally." >&5 21878echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21879Usually this means the macro was only invoked conditionally." >&2;} 21880 { (exit 1); exit 1; }; } 21881fi 21882if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21883 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21884Usually this means the macro was only invoked conditionally." >&5 21885echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21886Usually this means the macro was only invoked conditionally." >&2;} 21887 { (exit 1); exit 1; }; } 21888fi 21889if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then 21890 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENGL\" was never defined. 21891Usually this means the macro was only invoked conditionally." >&5 21892echo "$as_me: error: conditional \"HAVE_OPENGL\" was never defined. 21893Usually this means the macro was only invoked conditionally." >&2;} 21894 { (exit 1); exit 1; }; } 21895fi 21896 21897: ${CONFIG_STATUS=./config.status} 21898ac_clean_files_save=$ac_clean_files 21899ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21900{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21901echo "$as_me: creating $CONFIG_STATUS" >&6;} 21902cat >$CONFIG_STATUS <<_ACEOF 21903#! $SHELL 21904# Generated by $as_me. 21905# Run this file to recreate the current configuration. 21906# Compiler output produced by configure, useful for debugging 21907# configure, is in config.log if it exists. 21908 21909debug=false 21910ac_cs_recheck=false 21911ac_cs_silent=false 21912SHELL=\${CONFIG_SHELL-$SHELL} 21913_ACEOF 21914 21915cat >>$CONFIG_STATUS <<\_ACEOF 21916## --------------------- ## 21917## M4sh Initialization. ## 21918## --------------------- ## 21919 21920# Be more Bourne compatible 21921DUALCASE=1; export DUALCASE # for MKS sh 21922if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21923 emulate sh 21924 NULLCMD=: 21925 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21926 # is contrary to our usage. Disable this feature. 21927 alias -g '${1+"$@"}'='"$@"' 21928 setopt NO_GLOB_SUBST 21929else 21930 case `(set -o) 2>/dev/null` in 21931 *posix*) set -o posix ;; 21932esac 21933 21934fi 21935 21936 21937 21938 21939# PATH needs CR 21940# Avoid depending upon Character Ranges. 21941as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21942as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21943as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21944as_cr_digits='0123456789' 21945as_cr_alnum=$as_cr_Letters$as_cr_digits 21946 21947# The user is always right. 21948if test "${PATH_SEPARATOR+set}" != set; then 21949 echo "#! /bin/sh" >conf$$.sh 21950 echo "exit 0" >>conf$$.sh 21951 chmod +x conf$$.sh 21952 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21953 PATH_SEPARATOR=';' 21954 else 21955 PATH_SEPARATOR=: 21956 fi 21957 rm -f conf$$.sh 21958fi 21959 21960# Support unset when possible. 21961if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21962 as_unset=unset 21963else 21964 as_unset=false 21965fi 21966 21967 21968# IFS 21969# We need space, tab and new line, in precisely that order. Quoting is 21970# there to prevent editors from complaining about space-tab. 21971# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21972# splitting by setting IFS to empty value.) 21973as_nl=' 21974' 21975IFS=" "" $as_nl" 21976 21977# Find who we are. Look in the path if we contain no directory separator. 21978case $0 in 21979 *[\\/]* ) as_myself=$0 ;; 21980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21981for as_dir in $PATH 21982do 21983 IFS=$as_save_IFS 21984 test -z "$as_dir" && as_dir=. 21985 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21986done 21987IFS=$as_save_IFS 21988 21989 ;; 21990esac 21991# We did not find ourselves, most probably we were run as `sh COMMAND' 21992# in which case we are not to be found in the path. 21993if test "x$as_myself" = x; then 21994 as_myself=$0 21995fi 21996if test ! -f "$as_myself"; then 21997 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21998 { (exit 1); exit 1; } 21999fi 22000 22001# Work around bugs in pre-3.0 UWIN ksh. 22002for as_var in ENV MAIL MAILPATH 22003do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22004done 22005PS1='$ ' 22006PS2='> ' 22007PS4='+ ' 22008 22009# NLS nuisances. 22010for as_var in \ 22011 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22012 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22013 LC_TELEPHONE LC_TIME 22014do 22015 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22016 eval $as_var=C; export $as_var 22017 else 22018 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22019 fi 22020done 22021 22022# Required to use basename. 22023if expr a : '\(a\)' >/dev/null 2>&1 && 22024 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22025 as_expr=expr 22026else 22027 as_expr=false 22028fi 22029 22030if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22031 as_basename=basename 22032else 22033 as_basename=false 22034fi 22035 22036 22037# Name of the executable. 22038as_me=`$as_basename -- "$0" || 22039$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22040 X"$0" : 'X\(//\)$' \| \ 22041 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22042echo X/"$0" | 22043 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22044 s//\1/ 22045 q 22046 } 22047 /^X\/\(\/\/\)$/{ 22048 s//\1/ 22049 q 22050 } 22051 /^X\/\(\/\).*/{ 22052 s//\1/ 22053 q 22054 } 22055 s/.*/./; q'` 22056 22057# CDPATH. 22058$as_unset CDPATH 22059 22060 22061 22062 as_lineno_1=$LINENO 22063 as_lineno_2=$LINENO 22064 test "x$as_lineno_1" != "x$as_lineno_2" && 22065 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22066 22067 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22068 # uniformly replaced by the line number. The first 'sed' inserts a 22069 # line-number line after each line using $LINENO; the second 'sed' 22070 # does the real work. The second script uses 'N' to pair each 22071 # line-number line with the line containing $LINENO, and appends 22072 # trailing '-' during substitution so that $LINENO is not a special 22073 # case at line end. 22074 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22075 # scripts with optimization help from Paolo Bonzini. Blame Lee 22076 # E. McMahon (1931-1989) for sed's syntax. :-) 22077 sed -n ' 22078 p 22079 /[$]LINENO/= 22080 ' <$as_myself | 22081 sed ' 22082 s/[$]LINENO.*/&-/ 22083 t lineno 22084 b 22085 :lineno 22086 N 22087 :loop 22088 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22089 t loop 22090 s/-\n.*// 22091 ' >$as_me.lineno && 22092 chmod +x "$as_me.lineno" || 22093 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22094 { (exit 1); exit 1; }; } 22095 22096 # Don't try to exec as it changes $[0], causing all sort of problems 22097 # (the dirname of $[0] is not the place where we might find the 22098 # original and so on. Autoconf is especially sensitive to this). 22099 . "./$as_me.lineno" 22100 # Exit status is that of the last command. 22101 exit 22102} 22103 22104 22105if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22106 as_dirname=dirname 22107else 22108 as_dirname=false 22109fi 22110 22111ECHO_C= ECHO_N= ECHO_T= 22112case `echo -n x` in 22113-n*) 22114 case `echo 'x\c'` in 22115 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22116 *) ECHO_C='\c';; 22117 esac;; 22118*) 22119 ECHO_N='-n';; 22120esac 22121 22122if expr a : '\(a\)' >/dev/null 2>&1 && 22123 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22124 as_expr=expr 22125else 22126 as_expr=false 22127fi 22128 22129rm -f conf$$ conf$$.exe conf$$.file 22130if test -d conf$$.dir; then 22131 rm -f conf$$.dir/conf$$.file 22132else 22133 rm -f conf$$.dir 22134 mkdir conf$$.dir 22135fi 22136echo >conf$$.file 22137if ln -s conf$$.file conf$$ 2>/dev/null; then 22138 as_ln_s='ln -s' 22139 # ... but there are two gotchas: 22140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22142 # In both cases, we have to default to `cp -p'. 22143 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22144 as_ln_s='cp -p' 22145elif ln conf$$.file conf$$ 2>/dev/null; then 22146 as_ln_s=ln 22147else 22148 as_ln_s='cp -p' 22149fi 22150rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22151rmdir conf$$.dir 2>/dev/null 22152 22153if mkdir -p . 2>/dev/null; then 22154 as_mkdir_p=: 22155else 22156 test -d ./-p && rmdir ./-p 22157 as_mkdir_p=false 22158fi 22159 22160if test -x / >/dev/null 2>&1; then 22161 as_test_x='test -x' 22162else 22163 if ls -dL / >/dev/null 2>&1; then 22164 as_ls_L_option=L 22165 else 22166 as_ls_L_option= 22167 fi 22168 as_test_x=' 22169 eval sh -c '\'' 22170 if test -d "$1"; then 22171 test -d "$1/."; 22172 else 22173 case $1 in 22174 -*)set "./$1";; 22175 esac; 22176 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22177 ???[sx]*):;;*)false;;esac;fi 22178 '\'' sh 22179 ' 22180fi 22181as_executable_p=$as_test_x 22182 22183# Sed expression to map a string onto a valid CPP name. 22184as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22185 22186# Sed expression to map a string onto a valid variable name. 22187as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22188 22189 22190exec 6>&1 22191 22192# Save the log message, to keep $[0] and so on meaningful, and to 22193# report actual input values of CONFIG_FILES etc. instead of their 22194# values after options handling. 22195ac_log=" 22196This file was extended by LibTIFF Software $as_me 3.8.2, which was 22197generated by GNU Autoconf 2.61. Invocation command line was 22198 22199 CONFIG_FILES = $CONFIG_FILES 22200 CONFIG_HEADERS = $CONFIG_HEADERS 22201 CONFIG_LINKS = $CONFIG_LINKS 22202 CONFIG_COMMANDS = $CONFIG_COMMANDS 22203 $ $0 $@ 22204 22205on `(hostname || uname -n) 2>/dev/null | sed 1q` 22206" 22207 22208_ACEOF 22209 22210cat >>$CONFIG_STATUS <<_ACEOF 22211# Files that config.status was made for. 22212config_files="$ac_config_files" 22213config_headers="$ac_config_headers" 22214config_commands="$ac_config_commands" 22215 22216_ACEOF 22217 22218cat >>$CONFIG_STATUS <<\_ACEOF 22219ac_cs_usage="\ 22220\`$as_me' instantiates files from templates according to the 22221current configuration. 22222 22223Usage: $0 [OPTIONS] [FILE]... 22224 22225 -h, --help print this help, then exit 22226 -V, --version print version number and configuration settings, then exit 22227 -q, --quiet do not print progress messages 22228 -d, --debug don't remove temporary files 22229 --recheck update $as_me by reconfiguring in the same conditions 22230 --file=FILE[:TEMPLATE] 22231 instantiate the configuration file FILE 22232 --header=FILE[:TEMPLATE] 22233 instantiate the configuration header FILE 22234 22235Configuration files: 22236$config_files 22237 22238Configuration headers: 22239$config_headers 22240 22241Configuration commands: 22242$config_commands 22243 22244Report bugs to <[email protected]>." 22245 22246_ACEOF 22247cat >>$CONFIG_STATUS <<_ACEOF 22248ac_cs_version="\\ 22249LibTIFF Software config.status 3.8.2 22250configured by $0, generated by GNU Autoconf 2.61, 22251 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22252 22253Copyright (C) 2006 Free Software Foundation, Inc. 22254This config.status script is free software; the Free Software Foundation 22255gives unlimited permission to copy, distribute and modify it." 22256 22257ac_pwd='$ac_pwd' 22258srcdir='$srcdir' 22259INSTALL='$INSTALL' 22260_ACEOF 22261 22262cat >>$CONFIG_STATUS <<\_ACEOF 22263# If no file are specified by the user, then we need to provide default 22264# value. By we need to know if files were specified by the user. 22265ac_need_defaults=: 22266while test $# != 0 22267do 22268 case $1 in 22269 --*=*) 22270 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22271 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22272 ac_shift=: 22273 ;; 22274 *) 22275 ac_option=$1 22276 ac_optarg=$2 22277 ac_shift=shift 22278 ;; 22279 esac 22280 22281 case $ac_option in 22282 # Handling of the options. 22283 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22284 ac_cs_recheck=: ;; 22285 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22286 echo "$ac_cs_version"; exit ;; 22287 --debug | --debu | --deb | --de | --d | -d ) 22288 debug=: ;; 22289 --file | --fil | --fi | --f ) 22290 $ac_shift 22291 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22292 ac_need_defaults=false;; 22293 --header | --heade | --head | --hea ) 22294 $ac_shift 22295 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22296 ac_need_defaults=false;; 22297 --he | --h) 22298 # Conflict between --help and --header 22299 { echo "$as_me: error: ambiguous option: $1 22300Try \`$0 --help' for more information." >&2 22301 { (exit 1); exit 1; }; };; 22302 --help | --hel | -h ) 22303 echo "$ac_cs_usage"; exit ;; 22304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22305 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22306 ac_cs_silent=: ;; 22307 22308 # This is an error. 22309 -*) { echo "$as_me: error: unrecognized option: $1 22310Try \`$0 --help' for more information." >&2 22311 { (exit 1); exit 1; }; } ;; 22312 22313 *) ac_config_targets="$ac_config_targets $1" 22314 ac_need_defaults=false ;; 22315 22316 esac 22317 shift 22318done 22319 22320ac_configure_extra_args= 22321 22322if $ac_cs_silent; then 22323 exec 6>/dev/null 22324 ac_configure_extra_args="$ac_configure_extra_args --silent" 22325fi 22326 22327_ACEOF 22328cat >>$CONFIG_STATUS <<_ACEOF 22329if \$ac_cs_recheck; then 22330 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22331 CONFIG_SHELL=$SHELL 22332 export CONFIG_SHELL 22333 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22334fi 22335 22336_ACEOF 22337cat >>$CONFIG_STATUS <<\_ACEOF 22338exec 5>>config.log 22339{ 22340 echo 22341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22342## Running $as_me. ## 22343_ASBOX 22344 echo "$ac_log" 22345} >&5 22346 22347_ACEOF 22348cat >>$CONFIG_STATUS <<_ACEOF 22349# 22350# INIT-COMMANDS 22351# 22352AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22353 22354 22355# The HP-UX ksh and POSIX shell print the target directory to stdout 22356# if CDPATH is set. 22357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22358 22359sed_quote_subst='$sed_quote_subst' 22360double_quote_subst='$double_quote_subst' 22361delay_variable_subst='$delay_variable_subst' 22362AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 22363DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 22364OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 22365macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 22366macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 22367enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 22368enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 22369pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 22370enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 22371host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 22372host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 22373host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 22374build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 22375build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 22376build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 22377SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 22378Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 22379GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 22380EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 22381FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 22382LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 22383NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 22384LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 22385max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 22386ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 22387exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 22388lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 22389lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 22390lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 22391reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 22392reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22393deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 22394file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 22395AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 22396AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22397STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 22398RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 22399old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22400old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22401old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22402CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 22403CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22404compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 22405GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 22406lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 22407lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 22408lt_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"`' 22409objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 22410SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 22411ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 22412MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 22413lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 22414lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 22415lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 22416lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 22417lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 22418need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 22419libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 22420shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22421extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22422archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 22423enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 22424export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22425whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22426compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 22427old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22428old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22429archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22430archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22431module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22432module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22433with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 22434allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22435no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22436hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22437hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 22438hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 22439hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 22440hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 22441hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 22442hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22443hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 22444inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 22445link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 22446fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 22447always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 22448export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22449exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22450include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22451prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22452file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 22453variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 22454need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 22455need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 22456version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 22457runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22458shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22459shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 22460libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22461library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 22462soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22463postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22464postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22465finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22466finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 22467hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 22468sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22469sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22470hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 22471enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 22472enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 22473enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 22474old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 22475striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 22476predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22477postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22478predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 22479postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 22480compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 22481LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22482old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22483compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22484GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22485lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22486lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22487lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22488lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22489lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22490archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22491enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22492export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22493whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22494compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22495old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22496old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22497archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22498archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22499module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22500module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22501with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22502allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22503no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22504hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22505hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22506hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22507hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22508hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22509hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22510hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22511hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22512inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22513link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22514fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22515always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22516export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22517exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22518include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22519prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22520file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22521hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22522predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22523postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22524predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22525postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22526compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22527 22528LTCC='$LTCC' 22529LTCFLAGS='$LTCFLAGS' 22530compiler='$compiler_DEFAULT' 22531 22532# Quote evaled strings. 22533for var in SED \ 22534GREP \ 22535EGREP \ 22536FGREP \ 22537LD \ 22538NM \ 22539LN_S \ 22540lt_SP2NL \ 22541lt_NL2SP \ 22542reload_flag \ 22543deplibs_check_method \ 22544file_magic_cmd \ 22545AR \ 22546AR_FLAGS \ 22547STRIP \ 22548RANLIB \ 22549CC \ 22550CFLAGS \ 22551compiler \ 22552lt_cv_sys_global_symbol_pipe \ 22553lt_cv_sys_global_symbol_to_cdecl \ 22554lt_cv_sys_global_symbol_to_c_name_address \ 22555SHELL \ 22556ECHO \ 22557lt_prog_compiler_no_builtin_flag \ 22558lt_prog_compiler_wl \ 22559lt_prog_compiler_pic \ 22560lt_prog_compiler_static \ 22561lt_cv_prog_compiler_c_o \ 22562need_locks \ 22563shrext_cmds \ 22564export_dynamic_flag_spec \ 22565whole_archive_flag_spec \ 22566compiler_needs_object \ 22567with_gnu_ld \ 22568allow_undefined_flag \ 22569no_undefined_flag \ 22570hardcode_libdir_flag_spec \ 22571hardcode_libdir_flag_spec_ld \ 22572hardcode_libdir_separator \ 22573fix_srcfile_path \ 22574exclude_expsyms \ 22575include_expsyms \ 22576file_list_spec \ 22577variables_saved_for_relink \ 22578libname_spec \ 22579library_names_spec \ 22580soname_spec \ 22581finish_eval \ 22582old_striplib \ 22583striplib \ 22584predep_objects \ 22585postdep_objects \ 22586predeps \ 22587postdeps \ 22588compiler_lib_search_path \ 22589LD_CXX \ 22590compiler_CXX \ 22591lt_prog_compiler_no_builtin_flag_CXX \ 22592lt_prog_compiler_wl_CXX \ 22593lt_prog_compiler_pic_CXX \ 22594lt_prog_compiler_static_CXX \ 22595lt_cv_prog_compiler_c_o_CXX \ 22596export_dynamic_flag_spec_CXX \ 22597whole_archive_flag_spec_CXX \ 22598compiler_needs_object_CXX \ 22599with_gnu_ld_CXX \ 22600allow_undefined_flag_CXX \ 22601no_undefined_flag_CXX \ 22602hardcode_libdir_flag_spec_CXX \ 22603hardcode_libdir_flag_spec_ld_CXX \ 22604hardcode_libdir_separator_CXX \ 22605fix_srcfile_path_CXX \ 22606exclude_expsyms_CXX \ 22607include_expsyms_CXX \ 22608file_list_spec_CXX \ 22609predep_objects_CXX \ 22610postdep_objects_CXX \ 22611predeps_CXX \ 22612postdeps_CXX \ 22613compiler_lib_search_path_CXX; do 22614 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22615 *[\\\\\\\`\\"\\\$]*) 22616 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22617 ;; 22618 *) 22619 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22620 ;; 22621 esac 22622done 22623 22624# Double-quote double-evaled strings. 22625for var in reload_cmds \ 22626old_postinstall_cmds \ 22627old_postuninstall_cmds \ 22628old_archive_cmds \ 22629extract_expsyms_cmds \ 22630old_archive_from_new_cmds \ 22631old_archive_from_expsyms_cmds \ 22632archive_cmds \ 22633archive_expsym_cmds \ 22634module_cmds \ 22635module_expsym_cmds \ 22636export_symbols_cmds \ 22637prelink_cmds \ 22638postinstall_cmds \ 22639postuninstall_cmds \ 22640finish_cmds \ 22641sys_lib_search_path_spec \ 22642sys_lib_dlsearch_path_spec \ 22643old_archive_cmds_CXX \ 22644old_archive_from_new_cmds_CXX \ 22645old_archive_from_expsyms_cmds_CXX \ 22646archive_cmds_CXX \ 22647archive_expsym_cmds_CXX \ 22648module_cmds_CXX \ 22649module_expsym_cmds_CXX \ 22650export_symbols_cmds_CXX \ 22651prelink_cmds_CXX; do 22652 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22653 *[\\\\\\\`\\"\\\$]*) 22654 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22655 ;; 22656 *) 22657 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22658 ;; 22659 esac 22660done 22661 22662# Fix-up fallback echo if it was mangled by the above quoting rules. 22663case \$lt_ECHO in 22664*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 22665 ;; 22666esac 22667 22668ac_aux_dir='$ac_aux_dir' 22669xsi_shell='$xsi_shell' 22670lt_shell_append='$lt_shell_append' 22671 22672# See if we are running on zsh, and set the options which allow our 22673# commands through without removal of \ escapes INIT. 22674if test -n "\${ZSH_VERSION+set}" ; then 22675 setopt NO_GLOB_SUBST 22676fi 22677 22678 22679 PACKAGE='$PACKAGE' 22680 VERSION='$VERSION' 22681 TIMESTAMP='$TIMESTAMP' 22682 RM='$RM' 22683 ofile='$ofile' 22684 22685 22686 22687 22688 22689 22690_ACEOF 22691 22692cat >>$CONFIG_STATUS <<\_ACEOF 22693 22694# Handling of arguments. 22695for ac_config_target in $ac_config_targets 22696do 22697 case $ac_config_target in 22698 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22699 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22700 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;; 22701 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;; 22702 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22703 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;; 22704 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 22705 "contrib/acorn/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/acorn/Makefile" ;; 22706 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;; 22707 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;; 22708 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;; 22709 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;; 22710 "contrib/mac-cw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-cw/Makefile" ;; 22711 "contrib/mac-mpw/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mac-mpw/Makefile" ;; 22712 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;; 22713 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;; 22714 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;; 22715 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;; 22716 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;; 22717 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;; 22718 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 22719 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;; 22720 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;; 22721 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;; 22722 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22723 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;; 22724 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22725 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 22726 22727 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22728echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22729 { (exit 1); exit 1; }; };; 22730 esac 22731done 22732 22733 22734# If the user did not use the arguments to specify the items to instantiate, 22735# then the envvar interface is used. Set only those that are not. 22736# We use the long form for the default assignment because of an extremely 22737# bizarre bug on SunOS 4.1.3. 22738if $ac_need_defaults; then 22739 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22740 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22741 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22742fi 22743 22744# Have a temporary directory for convenience. Make it in the build tree 22745# simply because there is no reason against having it here, and in addition, 22746# creating and moving files from /tmp can sometimes cause problems. 22747# Hook for its removal unless debugging. 22748# Note that there is a small window in which the directory will not be cleaned: 22749# after its creation but before its name has been assigned to `$tmp'. 22750$debug || 22751{ 22752 tmp= 22753 trap 'exit_status=$? 22754 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22755' 0 22756 trap '{ (exit 1); exit 1; }' 1 2 13 15 22757} 22758# Create a (secure) tmp directory for tmp files. 22759 22760{ 22761 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22762 test -n "$tmp" && test -d "$tmp" 22763} || 22764{ 22765 tmp=./conf$$-$RANDOM 22766 (umask 077 && mkdir "$tmp") 22767} || 22768{ 22769 echo "$me: cannot create a temporary directory in ." >&2 22770 { (exit 1); exit 1; } 22771} 22772 22773# 22774# Set up the sed scripts for CONFIG_FILES section. 22775# 22776 22777# No need to generate the scripts if there are no CONFIG_FILES. 22778# This happens for instance when ./config.status config.h 22779if test -n "$CONFIG_FILES"; then 22780 22781_ACEOF 22782 22783 22784 22785ac_delim='%!_!# ' 22786for ac_last_try in false false false false false :; do 22787 cat >conf$$subs.sed <<_ACEOF 22788SHELL!$SHELL$ac_delim 22789PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22790PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22791PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22792PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22793PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22794PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22795exec_prefix!$exec_prefix$ac_delim 22796prefix!$prefix$ac_delim 22797program_transform_name!$program_transform_name$ac_delim 22798bindir!$bindir$ac_delim 22799sbindir!$sbindir$ac_delim 22800libexecdir!$libexecdir$ac_delim 22801datarootdir!$datarootdir$ac_delim 22802datadir!$datadir$ac_delim 22803sysconfdir!$sysconfdir$ac_delim 22804sharedstatedir!$sharedstatedir$ac_delim 22805localstatedir!$localstatedir$ac_delim 22806includedir!$includedir$ac_delim 22807oldincludedir!$oldincludedir$ac_delim 22808docdir!$docdir$ac_delim 22809infodir!$infodir$ac_delim 22810htmldir!$htmldir$ac_delim 22811dvidir!$dvidir$ac_delim 22812pdfdir!$pdfdir$ac_delim 22813psdir!$psdir$ac_delim 22814libdir!$libdir$ac_delim 22815localedir!$localedir$ac_delim 22816mandir!$mandir$ac_delim 22817DEFS!$DEFS$ac_delim 22818ECHO_C!$ECHO_C$ac_delim 22819ECHO_N!$ECHO_N$ac_delim 22820ECHO_T!$ECHO_T$ac_delim 22821LIBS!$LIBS$ac_delim 22822build_alias!$build_alias$ac_delim 22823host_alias!$host_alias$ac_delim 22824target_alias!$target_alias$ac_delim 22825build!$build$ac_delim 22826build_cpu!$build_cpu$ac_delim 22827build_vendor!$build_vendor$ac_delim 22828build_os!$build_os$ac_delim 22829host!$host$ac_delim 22830host_cpu!$host_cpu$ac_delim 22831host_vendor!$host_vendor$ac_delim 22832host_os!$host_os$ac_delim 22833target!$target$ac_delim 22834target_cpu!$target_cpu$ac_delim 22835target_vendor!$target_vendor$ac_delim 22836target_os!$target_os$ac_delim 22837INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22838INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22839INSTALL_DATA!$INSTALL_DATA$ac_delim 22840CYGPATH_W!$CYGPATH_W$ac_delim 22841PACKAGE!$PACKAGE$ac_delim 22842VERSION!$VERSION$ac_delim 22843ACLOCAL!$ACLOCAL$ac_delim 22844AUTOCONF!$AUTOCONF$ac_delim 22845AUTOMAKE!$AUTOMAKE$ac_delim 22846AUTOHEADER!$AUTOHEADER$ac_delim 22847MAKEINFO!$MAKEINFO$ac_delim 22848install_sh!$install_sh$ac_delim 22849STRIP!$STRIP$ac_delim 22850INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22851mkdir_p!$mkdir_p$ac_delim 22852AWK!$AWK$ac_delim 22853SET_MAKE!$SET_MAKE$ac_delim 22854am__leading_dot!$am__leading_dot$ac_delim 22855AMTAR!$AMTAR$ac_delim 22856am__tar!$am__tar$ac_delim 22857am__untar!$am__untar$ac_delim 22858MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22859MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22860MAINT!$MAINT$ac_delim 22861LIBTIFF_MAJOR_VERSION!$LIBTIFF_MAJOR_VERSION$ac_delim 22862LIBTIFF_MINOR_VERSION!$LIBTIFF_MINOR_VERSION$ac_delim 22863LIBTIFF_MICRO_VERSION!$LIBTIFF_MICRO_VERSION$ac_delim 22864LIBTIFF_ALPHA_VERSION!$LIBTIFF_ALPHA_VERSION$ac_delim 22865LIBTIFF_VERSION!$LIBTIFF_VERSION$ac_delim 22866LIBTIFF_VERSION_INFO!$LIBTIFF_VERSION_INFO$ac_delim 22867LIBTIFF_RELEASE_DATE!$LIBTIFF_RELEASE_DATE$ac_delim 22868CC!$CC$ac_delim 22869CFLAGS!$CFLAGS$ac_delim 22870LDFLAGS!$LDFLAGS$ac_delim 22871CPPFLAGS!$CPPFLAGS$ac_delim 22872ac_ct_CC!$ac_ct_CC$ac_delim 22873EXEEXT!$EXEEXT$ac_delim 22874OBJEXT!$OBJEXT$ac_delim 22875DEPDIR!$DEPDIR$ac_delim 22876am__include!$am__include$ac_delim 22877am__quote!$am__quote$ac_delim 22878AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22879AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22880AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22881CCDEPMODE!$CCDEPMODE$ac_delim 22882am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22883am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22884LN_S!$LN_S$ac_delim 22885_ACEOF 22886 22887 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22888 break 22889 elif $ac_last_try; then 22890 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22891echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22892 { (exit 1); exit 1; }; } 22893 else 22894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22895 fi 22896done 22897 22898ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22899if test -n "$ac_eof"; then 22900 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22901 ac_eof=`expr $ac_eof + 1` 22902fi 22903 22904cat >>$CONFIG_STATUS <<_ACEOF 22905cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22906/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22907_ACEOF 22908sed ' 22909s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22910s/^/s,@/; s/!/@,|#_!!_#|/ 22911:n 22912t n 22913s/'"$ac_delim"'$/,g/; t 22914s/$/\\/; p 22915N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22916' >>$CONFIG_STATUS <conf$$subs.sed 22917rm -f conf$$subs.sed 22918cat >>$CONFIG_STATUS <<_ACEOF 22919CEOF$ac_eof 22920_ACEOF 22921 22922 22923ac_delim='%!_!# ' 22924for ac_last_try in false false false false false :; do 22925 cat >conf$$subs.sed <<_ACEOF 22926AS!$AS$ac_delim 22927DLLTOOL!$DLLTOOL$ac_delim 22928OBJDUMP!$OBJDUMP$ac_delim 22929LIBTOOL!$LIBTOOL$ac_delim 22930SED!$SED$ac_delim 22931GREP!$GREP$ac_delim 22932EGREP!$EGREP$ac_delim 22933FGREP!$FGREP$ac_delim 22934LD!$LD$ac_delim 22935DUMPBIN!$DUMPBIN$ac_delim 22936ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 22937NM!$NM$ac_delim 22938AR!$AR$ac_delim 22939RANLIB!$RANLIB$ac_delim 22940lt_ECHO!$lt_ECHO$ac_delim 22941CPP!$CPP$ac_delim 22942LIBOBJS!$LIBOBJS$ac_delim 22943HAVE_RPATH_TRUE!$HAVE_RPATH_TRUE$ac_delim 22944HAVE_RPATH_FALSE!$HAVE_RPATH_FALSE$ac_delim 22945LIBTIFF_DOCDIR!$LIBTIFF_DOCDIR$ac_delim 22946HAVE_CXX_TRUE!$HAVE_CXX_TRUE$ac_delim 22947HAVE_CXX_FALSE!$HAVE_CXX_FALSE$ac_delim 22948XMKMF!$XMKMF$ac_delim 22949X_CFLAGS!$X_CFLAGS$ac_delim 22950X_PRE_LIBS!$X_PRE_LIBS$ac_delim 22951X_LIBS!$X_LIBS$ac_delim 22952X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 22953acx_pthread_config!$acx_pthread_config$ac_delim 22954PTHREAD_CC!$PTHREAD_CC$ac_delim 22955PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim 22956PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim 22957GL_CFLAGS!$GL_CFLAGS$ac_delim 22958GL_LIBS!$GL_LIBS$ac_delim 22959CXX!$CXX$ac_delim 22960CXXFLAGS!$CXXFLAGS$ac_delim 22961ac_ct_CXX!$ac_ct_CXX$ac_delim 22962CXXDEPMODE!$CXXDEPMODE$ac_delim 22963am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22964am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22965CXXCPP!$CXXCPP$ac_delim 22966GLU_CFLAGS!$GLU_CFLAGS$ac_delim 22967GLU_LIBS!$GLU_LIBS$ac_delim 22968GLUT_CFLAGS!$GLUT_CFLAGS$ac_delim 22969GLUT_LIBS!$GLUT_LIBS$ac_delim 22970HAVE_OPENGL_TRUE!$HAVE_OPENGL_TRUE$ac_delim 22971HAVE_OPENGL_FALSE!$HAVE_OPENGL_FALSE$ac_delim 22972LIBDIR!$LIBDIR$ac_delim 22973LTLIBOBJS!$LTLIBOBJS$ac_delim 22974_ACEOF 22975 22976 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then 22977 break 22978 elif $ac_last_try; then 22979 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22980echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22981 { (exit 1); exit 1; }; } 22982 else 22983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22984 fi 22985done 22986 22987ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22988if test -n "$ac_eof"; then 22989 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22990 ac_eof=`expr $ac_eof + 1` 22991fi 22992 22993cat >>$CONFIG_STATUS <<_ACEOF 22994cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22996_ACEOF 22997sed ' 22998s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22999s/^/s,@/; s/!/@,|#_!!_#|/ 23000:n 23001t n 23002s/'"$ac_delim"'$/,g/; t 23003s/$/\\/; p 23004N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23005' >>$CONFIG_STATUS <conf$$subs.sed 23006rm -f conf$$subs.sed 23007cat >>$CONFIG_STATUS <<_ACEOF 23008:end 23009s/|#_!!_#|//g 23010CEOF$ac_eof 23011_ACEOF 23012 23013 23014# VPATH may cause trouble with some makes, so we remove $(srcdir), 23015# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23016# trailing colons and then remove the whole line if VPATH becomes empty 23017# (actually we leave an empty line to preserve line numbers). 23018if test "x$srcdir" = x.; then 23019 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23020s/:*\$(srcdir):*/:/ 23021s/:*\${srcdir}:*/:/ 23022s/:*@srcdir@:*/:/ 23023s/^\([^=]*=[ ]*\):*/\1/ 23024s/:*$// 23025s/^[^=]*=[ ]*$// 23026}' 23027fi 23028 23029cat >>$CONFIG_STATUS <<\_ACEOF 23030fi # test -n "$CONFIG_FILES" 23031 23032 23033for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23034do 23035 case $ac_tag in 23036 :[FHLC]) ac_mode=$ac_tag; continue;; 23037 esac 23038 case $ac_mode$ac_tag in 23039 :[FHL]*:*);; 23040 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23041echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23042 { (exit 1); exit 1; }; };; 23043 :[FH]-) ac_tag=-:-;; 23044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23045 esac 23046 ac_save_IFS=$IFS 23047 IFS=: 23048 set x $ac_tag 23049 IFS=$ac_save_IFS 23050 shift 23051 ac_file=$1 23052 shift 23053 23054 case $ac_mode in 23055 :L) ac_source=$1;; 23056 :[FH]) 23057 ac_file_inputs= 23058 for ac_f 23059 do 23060 case $ac_f in 23061 -) ac_f="$tmp/stdin";; 23062 *) # Look for the file first in the build tree, then in the source tree 23063 # (if the path is not absolute). The absolute path cannot be DOS-style, 23064 # because $ac_f cannot contain `:'. 23065 test -f "$ac_f" || 23066 case $ac_f in 23067 [\\/$]*) false;; 23068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23069 esac || 23070 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23071echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23072 { (exit 1); exit 1; }; };; 23073 esac 23074 ac_file_inputs="$ac_file_inputs $ac_f" 23075 done 23076 23077 # Let's still pretend it is `configure' which instantiates (i.e., don't 23078 # use $as_me), people would be surprised to read: 23079 # /* config.h. Generated by config.status. */ 23080 configure_input="Generated from "`IFS=: 23081 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23082 if test x"$ac_file" != x-; then 23083 configure_input="$ac_file. $configure_input" 23084 { echo "$as_me:$LINENO: creating $ac_file" >&5 23085echo "$as_me: creating $ac_file" >&6;} 23086 fi 23087 23088 case $ac_tag in 23089 *:-:* | *:-) cat >"$tmp/stdin";; 23090 esac 23091 ;; 23092 esac 23093 23094 ac_dir=`$as_dirname -- "$ac_file" || 23095$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23096 X"$ac_file" : 'X\(//\)[^/]' \| \ 23097 X"$ac_file" : 'X\(//\)$' \| \ 23098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23099echo X"$ac_file" | 23100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23101 s//\1/ 23102 q 23103 } 23104 /^X\(\/\/\)[^/].*/{ 23105 s//\1/ 23106 q 23107 } 23108 /^X\(\/\/\)$/{ 23109 s//\1/ 23110 q 23111 } 23112 /^X\(\/\).*/{ 23113 s//\1/ 23114 q 23115 } 23116 s/.*/./; q'` 23117 { as_dir="$ac_dir" 23118 case $as_dir in #( 23119 -*) as_dir=./$as_dir;; 23120 esac 23121 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23122 as_dirs= 23123 while :; do 23124 case $as_dir in #( 23125 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23126 *) as_qdir=$as_dir;; 23127 esac 23128 as_dirs="'$as_qdir' $as_dirs" 23129 as_dir=`$as_dirname -- "$as_dir" || 23130$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23131 X"$as_dir" : 'X\(//\)[^/]' \| \ 23132 X"$as_dir" : 'X\(//\)$' \| \ 23133 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23134echo X"$as_dir" | 23135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23136 s//\1/ 23137 q 23138 } 23139 /^X\(\/\/\)[^/].*/{ 23140 s//\1/ 23141 q 23142 } 23143 /^X\(\/\/\)$/{ 23144 s//\1/ 23145 q 23146 } 23147 /^X\(\/\).*/{ 23148 s//\1/ 23149 q 23150 } 23151 s/.*/./; q'` 23152 test -d "$as_dir" && break 23153 done 23154 test -z "$as_dirs" || eval "mkdir $as_dirs" 23155 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23156echo "$as_me: error: cannot create directory $as_dir" >&2;} 23157 { (exit 1); exit 1; }; }; } 23158 ac_builddir=. 23159 23160case "$ac_dir" in 23161.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23162*) 23163 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23164 # A ".." for each directory in $ac_dir_suffix. 23165 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23166 case $ac_top_builddir_sub in 23167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23169 esac ;; 23170esac 23171ac_abs_top_builddir=$ac_pwd 23172ac_abs_builddir=$ac_pwd$ac_dir_suffix 23173# for backward compatibility: 23174ac_top_builddir=$ac_top_build_prefix 23175 23176case $srcdir in 23177 .) # We are building in place. 23178 ac_srcdir=. 23179 ac_top_srcdir=$ac_top_builddir_sub 23180 ac_abs_top_srcdir=$ac_pwd ;; 23181 [\\/]* | ?:[\\/]* ) # Absolute name. 23182 ac_srcdir=$srcdir$ac_dir_suffix; 23183 ac_top_srcdir=$srcdir 23184 ac_abs_top_srcdir=$srcdir ;; 23185 *) # Relative name. 23186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23187 ac_top_srcdir=$ac_top_build_prefix$srcdir 23188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23189esac 23190ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23191 23192 23193 case $ac_mode in 23194 :F) 23195 # 23196 # CONFIG_FILE 23197 # 23198 23199 case $INSTALL in 23200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23202 esac 23203_ACEOF 23204 23205cat >>$CONFIG_STATUS <<\_ACEOF 23206# If the template does not know about datarootdir, expand it. 23207# FIXME: This hack should be removed a few years after 2.60. 23208ac_datarootdir_hack=; ac_datarootdir_seen= 23209 23210case `sed -n '/datarootdir/ { 23211 p 23212 q 23213} 23214/@datadir@/p 23215/@docdir@/p 23216/@infodir@/p 23217/@localedir@/p 23218/@mandir@/p 23219' $ac_file_inputs` in 23220*datarootdir*) ac_datarootdir_seen=yes;; 23221*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23222 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23223echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23224_ACEOF 23225cat >>$CONFIG_STATUS <<_ACEOF 23226 ac_datarootdir_hack=' 23227 s&@datadir@&$datadir&g 23228 s&@docdir@&$docdir&g 23229 s&@infodir@&$infodir&g 23230 s&@localedir@&$localedir&g 23231 s&@mandir@&$mandir&g 23232 s&\\\${datarootdir}&$datarootdir&g' ;; 23233esac 23234_ACEOF 23235 23236# Neutralize VPATH when `$srcdir' = `.'. 23237# Shell code in configure.ac might set extrasub. 23238# FIXME: do we really want to maintain this feature? 23239cat >>$CONFIG_STATUS <<_ACEOF 23240 sed "$ac_vpsub 23241$extrasub 23242_ACEOF 23243cat >>$CONFIG_STATUS <<\_ACEOF 23244:t 23245/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23246s&@configure_input@&$configure_input&;t t 23247s&@top_builddir@&$ac_top_builddir_sub&;t t 23248s&@srcdir@&$ac_srcdir&;t t 23249s&@abs_srcdir@&$ac_abs_srcdir&;t t 23250s&@top_srcdir@&$ac_top_srcdir&;t t 23251s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23252s&@builddir@&$ac_builddir&;t t 23253s&@abs_builddir@&$ac_abs_builddir&;t t 23254s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23255s&@INSTALL@&$ac_INSTALL&;t t 23256$ac_datarootdir_hack 23257" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23258 23259test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23260 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23262 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23263which seems to be undefined. Please make sure it is defined." >&5 23264echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23265which seems to be undefined. Please make sure it is defined." >&2;} 23266 23267 rm -f "$tmp/stdin" 23268 case $ac_file in 23269 -) cat "$tmp/out"; rm -f "$tmp/out";; 23270 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23271 esac 23272 ;; 23273 :H) 23274 # 23275 # CONFIG_HEADER 23276 # 23277_ACEOF 23278 23279# Transform confdefs.h into a sed script `conftest.defines', that 23280# substitutes the proper values into config.h.in to produce config.h. 23281rm -f conftest.defines conftest.tail 23282# First, append a space to every undef/define line, to ease matching. 23283echo 's/$/ /' >conftest.defines 23284# Then, protect against being on the right side of a sed subst, or in 23285# an unquoted here document, in config.status. If some macros were 23286# called several times there might be several #defines for the same 23287# symbol, which is useless. But do not sort them, since the last 23288# AC_DEFINE must be honored. 23289ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23290# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23291# NAME is the cpp macro being defined, VALUE is the value it is being given. 23292# PARAMS is the parameter list in the macro definition--in most cases, it's 23293# just an empty string. 23294ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23295ac_dB='\\)[ (].*,\\1define\\2' 23296ac_dC=' ' 23297ac_dD=' ,' 23298 23299uniq confdefs.h | 23300 sed -n ' 23301 t rset 23302 :rset 23303 s/^[ ]*#[ ]*define[ ][ ]*// 23304 t ok 23305 d 23306 :ok 23307 s/[\\&,]/\\&/g 23308 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23309 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23310 ' >>conftest.defines 23311 23312# Remove the space that was appended to ease matching. 23313# Then replace #undef with comments. This is necessary, for 23314# example, in the case of _POSIX_SOURCE, which is predefined and required 23315# on some systems where configure will not decide to define it. 23316# (The regexp can be short, since the line contains either #define or #undef.) 23317echo 's/ $// 23318s,^[ #]*u.*,/* & */,' >>conftest.defines 23319 23320# Break up conftest.defines: 23321ac_max_sed_lines=50 23322 23323# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23324# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23325# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23326# et cetera. 23327ac_in='$ac_file_inputs' 23328ac_out='"$tmp/out1"' 23329ac_nxt='"$tmp/out2"' 23330 23331while : 23332do 23333 # Write a here document: 23334 cat >>$CONFIG_STATUS <<_ACEOF 23335 # First, check the format of the line: 23336 cat >"\$tmp/defines.sed" <<\\CEOF 23337/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23338/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23339b 23340:def 23341_ACEOF 23342 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23343 echo 'CEOF 23344 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23345 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23346 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23347 grep . conftest.tail >/dev/null || break 23348 rm -f conftest.defines 23349 mv conftest.tail conftest.defines 23350done 23351rm -f conftest.defines conftest.tail 23352 23353echo "ac_result=$ac_in" >>$CONFIG_STATUS 23354cat >>$CONFIG_STATUS <<\_ACEOF 23355 if test x"$ac_file" != x-; then 23356 echo "/* $configure_input */" >"$tmp/config.h" 23357 cat "$ac_result" >>"$tmp/config.h" 23358 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23359 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23360echo "$as_me: $ac_file is unchanged" >&6;} 23361 else 23362 rm -f $ac_file 23363 mv "$tmp/config.h" $ac_file 23364 fi 23365 else 23366 echo "/* $configure_input */" 23367 cat "$ac_result" 23368 fi 23369 rm -f "$tmp/out12" 23370# Compute $ac_file's index in $config_headers. 23371_am_stamp_count=1 23372for _am_header in $config_headers :; do 23373 case $_am_header in 23374 $ac_file | $ac_file:* ) 23375 break ;; 23376 * ) 23377 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23378 esac 23379done 23380echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 23381$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23382 X$ac_file : 'X\(//\)[^/]' \| \ 23383 X$ac_file : 'X\(//\)$' \| \ 23384 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 23385echo X$ac_file | 23386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23387 s//\1/ 23388 q 23389 } 23390 /^X\(\/\/\)[^/].*/{ 23391 s//\1/ 23392 q 23393 } 23394 /^X\(\/\/\)$/{ 23395 s//\1/ 23396 q 23397 } 23398 /^X\(\/\).*/{ 23399 s//\1/ 23400 q 23401 } 23402 s/.*/./; q'`/stamp-h$_am_stamp_count 23403 ;; 23404 23405 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23406echo "$as_me: executing $ac_file commands" >&6;} 23407 ;; 23408 esac 23409 23410 23411 case $ac_file$ac_mode in 23412 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23413 # Strip MF so we end up with the name of the file. 23414 mf=`echo "$mf" | sed -e 's/:.*$//'` 23415 # Check whether this is an Automake generated Makefile or not. 23416 # We used to match only the files named `Makefile.in', but 23417 # some people rename them; so instead we look at the file content. 23418 # Grep'ing the first line is not enough: some people post-process 23419 # each Makefile.in and add a new line on top of each file to say so. 23420 # So let's grep whole file. 23421 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23422 dirpart=`$as_dirname -- "$mf" || 23423$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23424 X"$mf" : 'X\(//\)[^/]' \| \ 23425 X"$mf" : 'X\(//\)$' \| \ 23426 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23427echo X"$mf" | 23428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23429 s//\1/ 23430 q 23431 } 23432 /^X\(\/\/\)[^/].*/{ 23433 s//\1/ 23434 q 23435 } 23436 /^X\(\/\/\)$/{ 23437 s//\1/ 23438 q 23439 } 23440 /^X\(\/\).*/{ 23441 s//\1/ 23442 q 23443 } 23444 s/.*/./; q'` 23445 else 23446 continue 23447 fi 23448 # Extract the definition of DEPDIR, am__include, and am__quote 23449 # from the Makefile without running `make'. 23450 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23451 test -z "$DEPDIR" && continue 23452 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23453 test -z "am__include" && continue 23454 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23455 # When using ansi2knr, U may be empty or an underscore; expand it 23456 U=`sed -n 's/^U = //p' < "$mf"` 23457 # Find all dependency output files, they are included files with 23458 # $(DEPDIR) in their names. We invoke sed twice because it is the 23459 # simplest approach to changing $(DEPDIR) to its actual value in the 23460 # expansion. 23461 for file in `sed -n " 23462 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23463 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23464 # Make sure the directory exists. 23465 test -f "$dirpart/$file" && continue 23466 fdir=`$as_dirname -- "$file" || 23467$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23468 X"$file" : 'X\(//\)[^/]' \| \ 23469 X"$file" : 'X\(//\)$' \| \ 23470 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23471echo X"$file" | 23472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23473 s//\1/ 23474 q 23475 } 23476 /^X\(\/\/\)[^/].*/{ 23477 s//\1/ 23478 q 23479 } 23480 /^X\(\/\/\)$/{ 23481 s//\1/ 23482 q 23483 } 23484 /^X\(\/\).*/{ 23485 s//\1/ 23486 q 23487 } 23488 s/.*/./; q'` 23489 { as_dir=$dirpart/$fdir 23490 case $as_dir in #( 23491 -*) as_dir=./$as_dir;; 23492 esac 23493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23494 as_dirs= 23495 while :; do 23496 case $as_dir in #( 23497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23498 *) as_qdir=$as_dir;; 23499 esac 23500 as_dirs="'$as_qdir' $as_dirs" 23501 as_dir=`$as_dirname -- "$as_dir" || 23502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23503 X"$as_dir" : 'X\(//\)[^/]' \| \ 23504 X"$as_dir" : 'X\(//\)$' \| \ 23505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23506echo X"$as_dir" | 23507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23508 s//\1/ 23509 q 23510 } 23511 /^X\(\/\/\)[^/].*/{ 23512 s//\1/ 23513 q 23514 } 23515 /^X\(\/\/\)$/{ 23516 s//\1/ 23517 q 23518 } 23519 /^X\(\/\).*/{ 23520 s//\1/ 23521 q 23522 } 23523 s/.*/./; q'` 23524 test -d "$as_dir" && break 23525 done 23526 test -z "$as_dirs" || eval "mkdir $as_dirs" 23527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23528echo "$as_me: error: cannot create directory $as_dir" >&2;} 23529 { (exit 1); exit 1; }; }; } 23530 # echo "creating $dirpart/$file" 23531 echo '# dummy' > "$dirpart/$file" 23532 done 23533done 23534 ;; 23535 "libtool":C) 23536 23537 # See if we are running on zsh, and set the options which allow our 23538 # commands through without removal of \ escapes. 23539 if test -n "${ZSH_VERSION+set}" ; then 23540 setopt NO_GLOB_SUBST 23541 fi 23542 23543 cfgfile="${ofile}T" 23544 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23545 $RM "$cfgfile" 23546 23547 cat <<_LT_EOF >> "$cfgfile" 23548#! $SHELL 23549 23550# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 23551# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION 23552# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23553# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23554# 23555# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 23556# 2006, 2007 Free Software Foundation, Inc. 23557# 23558# This file is part of GNU Libtool: 23559# Originally by Gordon Matzigkeit <[email protected]>, 1996 23560# 23561# This program is free software; you can redistribute it and/or modify 23562# it under the terms of the GNU General Public License as published by 23563# the Free Software Foundation; either version 2 of the License, or 23564# (at your option) any later version. 23565# 23566# This program is distributed in the hope that it will be useful, but 23567# WITHOUT ANY WARRANTY; without even the implied warranty of 23568# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 23569# General Public License for more details. 23570# 23571# You should have received a copy of the GNU General Public License 23572# along with this program; if not, write to the Free Software 23573# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23574# 23575# As a special exception to the GNU General Public License, if you 23576# distribute this file as part of a program that contains a 23577# configuration script generated by Autoconf, you may include it under 23578# the same distribution terms that you use for the rest of that program. 23579 23580 23581# The names of the tagged configurations supported by this script. 23582available_tags="CXX " 23583 23584# ### BEGIN LIBTOOL CONFIG 23585 23586# Assembler program. 23587AS=$AS 23588 23589# DLL creation program. 23590DLLTOOL=$DLLTOOL 23591 23592# Object dumper program. 23593OBJDUMP=$OBJDUMP 23594 23595# Which release of libtool.m4 was used? 23596macro_version=$macro_version 23597macro_revision=$macro_revision 23598 23599# Whether or not to build shared libraries. 23600build_libtool_libs=$enable_shared 23601 23602# Whether or not to build static libraries. 23603build_old_libs=$enable_static 23604 23605# What type of objects to build. 23606pic_mode=$pic_mode 23607 23608# Whether or not to optimize for fast installation. 23609fast_install=$enable_fast_install 23610 23611# The host system. 23612host_alias=$host_alias 23613host=$host 23614host_os=$host_os 23615 23616# The build system. 23617build_alias=$build_alias 23618build=$build 23619build_os=$build_os 23620 23621# A sed program that does not truncate output. 23622SED=$lt_SED 23623 23624# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23625Xsed="\$SED -e 1s/^X//" 23626 23627# A grep program that handles long lines. 23628GREP=$lt_GREP 23629 23630# An ERE matcher. 23631EGREP=$lt_EGREP 23632 23633# A literal string matcher. 23634FGREP=$lt_FGREP 23635 23636# A BSD- or MS-compatible name lister. 23637NM=$lt_NM 23638 23639# Whether we need soft or hard links. 23640LN_S=$lt_LN_S 23641 23642# What is the maximum length of a command? 23643max_cmd_len=$max_cmd_len 23644 23645# Object file suffix (normally "o"). 23646objext=$ac_objext 23647 23648# Executable file suffix (normally ""). 23649exeext=$exeext 23650 23651# whether the shell understands "unset". 23652lt_unset=$lt_unset 23653 23654# turn spaces into newlines. 23655SP2NL=$lt_lt_SP2NL 23656 23657# turn newlines into spaces. 23658NL2SP=$lt_lt_NL2SP 23659 23660# How to create reloadable object files. 23661reload_flag=$lt_reload_flag 23662reload_cmds=$lt_reload_cmds 23663 23664# Method to check whether dependent libraries are shared objects. 23665deplibs_check_method=$lt_deplibs_check_method 23666 23667# Command to use when deplibs_check_method == "file_magic". 23668file_magic_cmd=$lt_file_magic_cmd 23669 23670# The archiver. 23671AR=$lt_AR 23672AR_FLAGS=$lt_AR_FLAGS 23673 23674# A symbol stripping program. 23675STRIP=$lt_STRIP 23676 23677# Commands used to install an old-style archive. 23678RANLIB=$lt_RANLIB 23679old_postinstall_cmds=$lt_old_postinstall_cmds 23680old_postuninstall_cmds=$lt_old_postuninstall_cmds 23681 23682# A C compiler. 23683LTCC=$lt_CC 23684 23685# LTCC compiler flags. 23686LTCFLAGS=$lt_CFLAGS 23687 23688# Take the output of nm and produce a listing of raw symbols and C names. 23689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23690 23691# Transform the output of nm in a proper C declaration. 23692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23693 23694# Transform the output of nm in a C name address pair. 23695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23696 23697# The name of the directory that contains temporary libtool files. 23698objdir=$objdir 23699 23700# Shell to use when invoking shell scripts. 23701SHELL=$lt_SHELL 23702 23703# An echo program that does not interpret backslashes. 23704ECHO=$lt_ECHO 23705 23706# Used to examine libraries when file_magic_cmd begins with "file". 23707MAGIC_CMD=$MAGIC_CMD 23708 23709# Must we lock files when doing compilation? 23710need_locks=$lt_need_locks 23711 23712# Old archive suffix (normally "a"). 23713libext=$libext 23714 23715# Shared library suffix (normally ".so"). 23716shrext_cmds=$lt_shrext_cmds 23717 23718# The commands to extract the exported symbol list from a shared archive. 23719extract_expsyms_cmds=$lt_extract_expsyms_cmds 23720 23721# Variables whose values should be saved in libtool wrapper scripts and 23722# restored at link time. 23723variables_saved_for_relink=$lt_variables_saved_for_relink 23724 23725# Do we need the "lib" prefix for modules? 23726need_lib_prefix=$need_lib_prefix 23727 23728# Do we need a version for libraries? 23729need_version=$need_version 23730 23731# Library versioning type. 23732version_type=$version_type 23733 23734# Shared library runtime path variable. 23735runpath_var=$runpath_var 23736 23737# Shared library path variable. 23738shlibpath_var=$shlibpath_var 23739 23740# Is shlibpath searched before the hard-coded library search path? 23741shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23742 23743# Format of library name prefix. 23744libname_spec=$lt_libname_spec 23745 23746# List of archive names. First name is the real one, the rest are links. 23747# The last name is the one that the linker finds with -lNAME 23748library_names_spec=$lt_library_names_spec 23749 23750# The coded name of the library, if different from the real name. 23751soname_spec=$lt_soname_spec 23752 23753# Command to use after installation of a shared archive. 23754postinstall_cmds=$lt_postinstall_cmds 23755 23756# Command to use after uninstallation of a shared archive. 23757postuninstall_cmds=$lt_postuninstall_cmds 23758 23759# Commands used to finish a libtool library installation in a directory. 23760finish_cmds=$lt_finish_cmds 23761 23762# As "finish_cmds", except a single script fragment to be evaled but 23763# not shown. 23764finish_eval=$lt_finish_eval 23765 23766# Whether we should hardcode library paths into libraries. 23767hardcode_into_libs=$hardcode_into_libs 23768 23769# Compile-time system search path for libraries. 23770sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23771 23772# Run-time system search path for libraries. 23773sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23774 23775# Whether dlopen is supported. 23776dlopen_support=$enable_dlopen 23777 23778# Whether dlopen of programs is supported. 23779dlopen_self=$enable_dlopen_self 23780 23781# Whether dlopen of statically linked programs is supported. 23782dlopen_self_static=$enable_dlopen_self_static 23783 23784# Commands to strip libraries. 23785old_striplib=$lt_old_striplib 23786striplib=$lt_striplib 23787 23788 23789# The linker used to build libraries. 23790LD=$lt_LD 23791 23792# Commands used to build an old-style archive. 23793old_archive_cmds=$lt_old_archive_cmds 23794 23795# A language specific compiler. 23796CC=$lt_compiler 23797 23798# Is the compiler the GNU compiler? 23799with_gcc=$GCC 23800 23801# Compiler flag to turn off builtin functions. 23802no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23803 23804# How to pass a linker flag through the compiler. 23805wl=$lt_lt_prog_compiler_wl 23806 23807# Additional compiler flags for building library objects. 23808pic_flag=$lt_lt_prog_compiler_pic 23809 23810# Compiler flag to prevent dynamic linking. 23811link_static_flag=$lt_lt_prog_compiler_static 23812 23813# Does compiler simultaneously support -c and -o options? 23814compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23815 23816# Whether or not to add -lc for building shared libraries. 23817build_libtool_need_lc=$archive_cmds_need_lc 23818 23819# Whether or not to disallow shared libs when runtime libs are static. 23820allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23821 23822# Compiler flag to allow reflexive dlopens. 23823export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23824 23825# Compiler flag to generate shared objects directly from archives. 23826whole_archive_flag_spec=$lt_whole_archive_flag_spec 23827 23828# Whether the compiler copes with passing no objects directly. 23829compiler_needs_object=$lt_compiler_needs_object 23830 23831# Create an old-style archive from a shared archive. 23832old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23833 23834# Create a temporary old-style archive to link instead of a shared archive. 23835old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23836 23837# Commands used to build a shared archive. 23838archive_cmds=$lt_archive_cmds 23839archive_expsym_cmds=$lt_archive_expsym_cmds 23840 23841# Commands used to build a loadable module if different from building 23842# a shared archive. 23843module_cmds=$lt_module_cmds 23844module_expsym_cmds=$lt_module_expsym_cmds 23845 23846# Whether we are building with GNU ld or not. 23847with_gnu_ld=$lt_with_gnu_ld 23848 23849# Flag that allows shared libraries with undefined symbols to be built. 23850allow_undefined_flag=$lt_allow_undefined_flag 23851 23852# Flag that enforces no undefined symbols. 23853no_undefined_flag=$lt_no_undefined_flag 23854 23855# Flag to hardcode \$libdir into a binary during linking. 23856# This must work even if \$libdir does not exist 23857hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23858 23859# If ld is used when linking, flag to hardcode \$libdir into a binary 23860# during linking. This must work even if \$libdir does not exist. 23861hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 23862 23863# Whether we need a single "-rpath" flag with a separated argument. 23864hardcode_libdir_separator=$lt_hardcode_libdir_separator 23865 23866# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23867# DIR into the resulting binary. 23868hardcode_direct=$hardcode_direct 23869 23870# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23871# DIR into the resulting binary and the resulting library dependency is 23872# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23873# library is relocated. 23874hardcode_direct_absolute=$hardcode_direct_absolute 23875 23876# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23877# into the resulting binary. 23878hardcode_minus_L=$hardcode_minus_L 23879 23880# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23881# into the resulting binary. 23882hardcode_shlibpath_var=$hardcode_shlibpath_var 23883 23884# Set to "yes" if building a shared library automatically hardcodes DIR 23885# into the library and all subsequent libraries and executables linked 23886# against it. 23887hardcode_automatic=$hardcode_automatic 23888 23889# Set to yes if linker adds runtime paths of dependent libraries 23890# to runtime path list. 23891inherit_rpath=$inherit_rpath 23892 23893# Whether libtool must link a program against all its dependency libraries. 23894link_all_deplibs=$link_all_deplibs 23895 23896# Fix the shell variable \$srcfile for the compiler. 23897fix_srcfile_path=$lt_fix_srcfile_path 23898 23899# Set to "yes" if exported symbols are required. 23900always_export_symbols=$always_export_symbols 23901 23902# The commands to list exported symbols. 23903export_symbols_cmds=$lt_export_symbols_cmds 23904 23905# Symbols that should not be listed in the preloaded symbols. 23906exclude_expsyms=$lt_exclude_expsyms 23907 23908# Symbols that must always be exported. 23909include_expsyms=$lt_include_expsyms 23910 23911# Commands necessary for linking programs (against libraries) with templates. 23912prelink_cmds=$lt_prelink_cmds 23913 23914# Specify filename containing input files. 23915file_list_spec=$lt_file_list_spec 23916 23917# How to hardcode a shared library path into an executable. 23918hardcode_action=$hardcode_action 23919 23920# Dependencies to place before and after the objects being linked to 23921# create a shared library. 23922predep_objects=$lt_predep_objects 23923postdep_objects=$lt_postdep_objects 23924predeps=$lt_predeps 23925postdeps=$lt_postdeps 23926 23927# The library search path used internally by the compiler when linking 23928# a shared library. 23929compiler_lib_search_path=$lt_compiler_lib_search_path 23930 23931# ### END LIBTOOL CONFIG 23932 23933_LT_EOF 23934 23935 case $host_os in 23936 aix3*) 23937 cat <<\_LT_EOF >> "$cfgfile" 23938# AIX sometimes has problems with the GCC collect2 program. For some 23939# reason, if we set the COLLECT_NAMES environment variable, the problems 23940# vanish in a puff of smoke. 23941if test "X${COLLECT_NAMES+set}" != Xset; then 23942 COLLECT_NAMES= 23943 export COLLECT_NAMES 23944fi 23945_LT_EOF 23946 ;; 23947 esac 23948 23949 23950ltmain="$ac_aux_dir/ltmain.sh" 23951 23952 23953 # We use sed instead of cat because bash on DJGPP gets confused if 23954 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23955 # text mode, it properly converts lines to CR/LF. This bash problem 23956 # is reportedly fixed, but why not run on old versions too? 23957 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 23958 || (rm -f "$cfgfile"; exit 1) 23959 23960 case $xsi_shell in 23961 yes) 23962 cat << \_LT_EOF >> "$cfgfile" 23963# func_dirname file append nondir_replacement 23964# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23965# otherwise set result to NONDIR_REPLACEMENT. 23966func_dirname () 23967{ 23968 case ${1} in 23969 */*) func_dirname_result="${1%/*}${2}" ;; 23970 * ) func_dirname_result="${3}" ;; 23971 esac 23972} 23973 23974# func_basename file 23975func_basename () 23976{ 23977 func_basename_result="${1##*/}" 23978} 23979 23980# func_stripname prefix suffix name 23981# strip PREFIX and SUFFIX off of NAME. 23982# PREFIX and SUFFIX must not contain globbing or regex special 23983# characters, hashes, percent signs, but SUFFIX may contain a leading 23984# dot (in which case that matches only a dot). 23985func_stripname () 23986{ 23987 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 23988 # positional parameters, so assign one to ordinary parameter first. 23989 func_stripname_result=${3} 23990 func_stripname_result=${func_stripname_result#"${1}"} 23991 func_stripname_result=${func_stripname_result%"${2}"} 23992} 23993 23994# func_opt_split 23995func_opt_split () 23996{ 23997 func_opt_split_opt=${1%%=*} 23998 func_opt_split_arg=${1#*=} 23999} 24000 24001# func_lo2o object 24002func_lo2o () 24003{ 24004 case ${1} in 24005 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 24006 *) func_lo2o_result=${1} ;; 24007 esac 24008} 24009_LT_EOF 24010 ;; 24011 *) # Bourne compatible functions. 24012 cat << \_LT_EOF >> "$cfgfile" 24013# func_dirname file append nondir_replacement 24014# Compute the dirname of FILE. If nonempty, add APPEND to the result, 24015# otherwise set result to NONDIR_REPLACEMENT. 24016func_dirname () 24017{ 24018 # Extract subdirectory from the argument. 24019 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 24020 if test "X$func_dirname_result" = "X${1}"; then 24021 func_dirname_result="${3}" 24022 else 24023 func_dirname_result="$func_dirname_result${2}" 24024 fi 24025} 24026 24027# func_basename file 24028func_basename () 24029{ 24030 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 24031} 24032 24033# func_stripname prefix suffix name 24034# strip PREFIX and SUFFIX off of NAME. 24035# PREFIX and SUFFIX must not contain globbing or regex special 24036# characters, hashes, percent signs, but SUFFIX may contain a leading 24037# dot (in which case that matches only a dot). 24038# func_strip_suffix prefix name 24039func_stripname () 24040{ 24041 case ${2} in 24042 .*) func_stripname_result=`$ECHO "X${3}" \ 24043 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 24044 *) func_stripname_result=`$ECHO "X${3}" \ 24045 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 24046 esac 24047} 24048 24049# sed scripts: 24050my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 24051my_sed_long_arg='1s/^-[^=]*=//' 24052 24053# func_opt_split 24054func_opt_split () 24055{ 24056 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 24057 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 24058} 24059 24060# func_lo2o object 24061func_lo2o () 24062{ 24063 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 24064} 24065_LT_EOF 24066esac 24067 24068case $lt_shell_append in 24069 yes) 24070 cat << \_LT_EOF >> "$cfgfile" 24071 24072# func_append var value 24073# Append VALUE to the end of shell variable VAR. 24074func_append () 24075{ 24076 eval "$1+=\$2" 24077} 24078_LT_EOF 24079 ;; 24080 *) 24081 cat << \_LT_EOF >> "$cfgfile" 24082 24083# func_append var value 24084# Append VALUE to the end of shell variable VAR. 24085func_append () 24086{ 24087 eval "$1=\$$1\$2" 24088} 24089_LT_EOF 24090 ;; 24091 esac 24092 24093 24094 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 24095 || (rm -f "$cfgfile"; exit 1) 24096 24097 mv -f "$cfgfile" "$ofile" || 24098 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24099 chmod +x "$ofile" 24100 24101 24102 cat <<_LT_EOF >> "$ofile" 24103 24104# ### BEGIN LIBTOOL TAG CONFIG: CXX 24105 24106# The linker used to build libraries. 24107LD=$lt_LD_CXX 24108 24109# Commands used to build an old-style archive. 24110old_archive_cmds=$lt_old_archive_cmds_CXX 24111 24112# A language specific compiler. 24113CC=$lt_compiler_CXX 24114 24115# Is the compiler the GNU compiler? 24116with_gcc=$GCC_CXX 24117 24118# Compiler flag to turn off builtin functions. 24119no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24120 24121# How to pass a linker flag through the compiler. 24122wl=$lt_lt_prog_compiler_wl_CXX 24123 24124# Additional compiler flags for building library objects. 24125pic_flag=$lt_lt_prog_compiler_pic_CXX 24126 24127# Compiler flag to prevent dynamic linking. 24128link_static_flag=$lt_lt_prog_compiler_static_CXX 24129 24130# Does compiler simultaneously support -c and -o options? 24131compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24132 24133# Whether or not to add -lc for building shared libraries. 24134build_libtool_need_lc=$archive_cmds_need_lc_CXX 24135 24136# Whether or not to disallow shared libs when runtime libs are static. 24137allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24138 24139# Compiler flag to allow reflexive dlopens. 24140export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24141 24142# Compiler flag to generate shared objects directly from archives. 24143whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24144 24145# Whether the compiler copes with passing no objects directly. 24146compiler_needs_object=$lt_compiler_needs_object_CXX 24147 24148# Create an old-style archive from a shared archive. 24149old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24150 24151# Create a temporary old-style archive to link instead of a shared archive. 24152old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24153 24154# Commands used to build a shared archive. 24155archive_cmds=$lt_archive_cmds_CXX 24156archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24157 24158# Commands used to build a loadable module if different from building 24159# a shared archive. 24160module_cmds=$lt_module_cmds_CXX 24161module_expsym_cmds=$lt_module_expsym_cmds_CXX 24162 24163# Whether we are building with GNU ld or not. 24164with_gnu_ld=$lt_with_gnu_ld_CXX 24165 24166# Flag that allows shared libraries with undefined symbols to be built. 24167allow_undefined_flag=$lt_allow_undefined_flag_CXX 24168 24169# Flag that enforces no undefined symbols. 24170no_undefined_flag=$lt_no_undefined_flag_CXX 24171 24172# Flag to hardcode \$libdir into a binary during linking. 24173# This must work even if \$libdir does not exist 24174hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 24175 24176# If ld is used when linking, flag to hardcode \$libdir into a binary 24177# during linking. This must work even if \$libdir does not exist. 24178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 24179 24180# Whether we need a single "-rpath" flag with a separated argument. 24181hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 24182 24183# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24184# DIR into the resulting binary. 24185hardcode_direct=$hardcode_direct_CXX 24186 24187# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24188# DIR into the resulting binary and the resulting library dependency is 24189# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 24190# library is relocated. 24191hardcode_direct_absolute=$hardcode_direct_absolute_CXX 24192 24193# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24194# into the resulting binary. 24195hardcode_minus_L=$hardcode_minus_L_CXX 24196 24197# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24198# into the resulting binary. 24199hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 24200 24201# Set to "yes" if building a shared library automatically hardcodes DIR 24202# into the library and all subsequent libraries and executables linked 24203# against it. 24204hardcode_automatic=$hardcode_automatic_CXX 24205 24206# Set to yes if linker adds runtime paths of dependent libraries 24207# to runtime path list. 24208inherit_rpath=$inherit_rpath_CXX 24209 24210# Whether libtool must link a program against all its dependency libraries. 24211link_all_deplibs=$link_all_deplibs_CXX 24212 24213# Fix the shell variable \$srcfile for the compiler. 24214fix_srcfile_path=$lt_fix_srcfile_path_CXX 24215 24216# Set to "yes" if exported symbols are required. 24217always_export_symbols=$always_export_symbols_CXX 24218 24219# The commands to list exported symbols. 24220export_symbols_cmds=$lt_export_symbols_cmds_CXX 24221 24222# Symbols that should not be listed in the preloaded symbols. 24223exclude_expsyms=$lt_exclude_expsyms_CXX 24224 24225# Symbols that must always be exported. 24226include_expsyms=$lt_include_expsyms_CXX 24227 24228# Commands necessary for linking programs (against libraries) with templates. 24229prelink_cmds=$lt_prelink_cmds_CXX 24230 24231# Specify filename containing input files. 24232file_list_spec=$lt_file_list_spec_CXX 24233 24234# How to hardcode a shared library path into an executable. 24235hardcode_action=$hardcode_action_CXX 24236 24237# Dependencies to place before and after the objects being linked to 24238# create a shared library. 24239predep_objects=$lt_predep_objects_CXX 24240postdep_objects=$lt_postdep_objects_CXX 24241predeps=$lt_predeps_CXX 24242postdeps=$lt_postdeps_CXX 24243 24244# The library search path used internally by the compiler when linking 24245# a shared library. 24246compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 24247 24248# ### END LIBTOOL TAG CONFIG: CXX 24249_LT_EOF 24250 24251 ;; 24252 24253 esac 24254done # for ac_tag 24255 24256 24257{ (exit 0); exit 0; } 24258_ACEOF 24259chmod +x $CONFIG_STATUS 24260ac_clean_files=$ac_clean_files_save 24261 24262 24263# configure is writing to config.log, and then calls config.status. 24264# config.status does its own redirection, appending to config.log. 24265# Unfortunately, on DOS this fails, as config.log is still kept open 24266# by configure, so config.status won't be able to write to it; its 24267# output is simply discarded. So we exec the FD to /dev/null, 24268# effectively closing config.log, so it can be properly (re)opened and 24269# appended to by config.status. When coming back to configure, we 24270# need to make the FD available again. 24271if test "$no_create" != yes; then 24272 ac_cs_success=: 24273 ac_config_status_args= 24274 test "$silent" = yes && 24275 ac_config_status_args="$ac_config_status_args --quiet" 24276 exec 5>/dev/null 24277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24278 exec 5>>config.log 24279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24280 # would make configure fail if this is the last instruction. 24281 $ac_cs_success || { (exit 1); exit 1; } 24282fi 24283 24284 24285 24286echo "" 24287echo "Libtiff is now configured for ${host}" 24288echo "" 24289echo " Installation directory: ${prefix}" 24290echo " Documentation directory: ${LIBTIFF_DOCDIR}" 24291echo " C compiler: ${CC} ${CFLAGS}" 24292echo " C++ compiler: ${CXX} ${CXXFLAGS}" 24293echo " Enable runtime linker paths: ${HAVE_RPATH}" 24294echo " Support Microsoft Document Imaging: ${HAVE_MDI}" 24295echo "" 24296echo " Support for internal codecs:" 24297echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}" 24298echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}" 24299echo " LZW algorithm: ${HAVE_LZW}" 24300echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}" 24301echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}" 24302echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}" 24303echo "" 24304echo " Support for external codecs:" 24305echo " ZLIB support: ${HAVE_ZLIB}" 24306echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}" 24307echo " JPEG support: ${HAVE_JPEG}" 24308echo " Old JPEG support: ${HAVE_OJPEG}" 24309echo " ISO JBIG support: ${HAVE_JBIG}" 24310echo "" 24311echo " C++ support: ${HAVE_CXX}" 24312echo "" 24313echo " OpenGL support: ${HAVE_OPENGL}" 24314echo "" 24315 24316