configure revision 417cc7e8
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libXdamage 1.1.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$lt_ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544ECHO=${lt_ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $ECHO works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<_LT_EOF 563$* 564_LT_EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$lt_ECHO"; then 573 if test "X${echo_test_string+set}" != Xset; then 574 # find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 579 then 580 break 581 fi 582 done 583 fi 584 585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589 else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 ECHO="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$ECHO" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 ECHO='print -r' 616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 ECHO='printf %s\n' 627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 ECHO="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 ECHO="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 ECHO=echo 665 fi 666 fi 667 fi 668 fi 669 fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674lt_ECHO=$ECHO 675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682test -n "$DJDIR" || exec 7<&0 </dev/null 683exec 6>&1 684 685# Name of the host. 686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 687# so uname gets run too. 688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 689 690# 691# Initializations. 692# 693ac_default_prefix=/usr/local 694ac_clean_files= 695ac_config_libobj_dir=. 696LIBOBJS= 697cross_compiling=no 698subdirs= 699MFLAGS= 700MAKEFLAGS= 701 702# Identity of this package. 703PACKAGE_NAME='libXdamage' 704PACKAGE_TARNAME='libXdamage' 705PACKAGE_VERSION='1.1.3' 706PACKAGE_STRING='libXdamage 1.1.3' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710# Factoring default headers for most tests. 711ac_includes_default="\ 712#include <stdio.h> 713#ifdef HAVE_SYS_TYPES_H 714# include <sys/types.h> 715#endif 716#ifdef HAVE_SYS_STAT_H 717# include <sys/stat.h> 718#endif 719#ifdef STDC_HEADERS 720# include <stdlib.h> 721# include <stddef.h> 722#else 723# ifdef HAVE_STDLIB_H 724# include <stdlib.h> 725# endif 726#endif 727#ifdef HAVE_STRING_H 728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729# include <memory.h> 730# endif 731# include <string.h> 732#endif 733#ifdef HAVE_STRINGS_H 734# include <strings.h> 735#endif 736#ifdef HAVE_INTTYPES_H 737# include <inttypes.h> 738#endif 739#ifdef HAVE_STDINT_H 740# include <stdint.h> 741#endif 742#ifdef HAVE_UNISTD_H 743# include <unistd.h> 744#endif" 745 746ac_subst_vars='am__EXEEXT_FALSE 747am__EXEEXT_TRUE 748LTLIBOBJS 749LIBOBJS 750XDAMAGE_LIBS 751XDAMAGE_CFLAGS 752DAMAGEEXT_VERSION 753OTOOL64 754OTOOL 755LIPO 756NMEDIT 757DSYMUTIL 758lt_ECHO 759RANLIB 760AR 761OBJDUMP 762LN_S 763NM 764ac_ct_DUMPBIN 765DUMPBIN 766LD 767FGREP 768LIBTOOL 769AM_BACKSLASH 770AM_DEFAULT_VERBOSITY 771MAN_SUBSTS 772XORG_MAN_PAGE 773ADMIN_MAN_DIR 774DRIVER_MAN_DIR 775MISC_MAN_DIR 776FILE_MAN_DIR 777LIB_MAN_DIR 778APP_MAN_DIR 779ADMIN_MAN_SUFFIX 780DRIVER_MAN_SUFFIX 781MISC_MAN_SUFFIX 782FILE_MAN_SUFFIX 783LIB_MAN_SUFFIX 784APP_MAN_SUFFIX 785SED 786host_os 787host_vendor 788host_cpu 789host 790build_os 791build_vendor 792build_cpu 793build 794INSTALL_CMD 795PKG_CONFIG 796CHANGELOG_CMD 797CWARNFLAGS 798EGREP 799GREP 800CPP 801am__fastdepCC_FALSE 802am__fastdepCC_TRUE 803CCDEPMODE 804AMDEPBACKSLASH 805AMDEP_FALSE 806AMDEP_TRUE 807am__quote 808am__include 809DEPDIR 810OBJEXT 811EXEEXT 812ac_ct_CC 813CPPFLAGS 814LDFLAGS 815CFLAGS 816CC 817MAINT 818MAINTAINER_MODE_FALSE 819MAINTAINER_MODE_TRUE 820am__untar 821am__tar 822AMTAR 823am__leading_dot 824SET_MAKE 825AWK 826mkdir_p 827MKDIR_P 828INSTALL_STRIP_PROGRAM 829STRIP 830install_sh 831MAKEINFO 832AUTOHEADER 833AUTOMAKE 834AUTOCONF 835ACLOCAL 836VERSION 837PACKAGE 838CYGPATH_W 839am__isrc 840INSTALL_DATA 841INSTALL_SCRIPT 842INSTALL_PROGRAM 843target_alias 844host_alias 845build_alias 846LIBS 847ECHO_T 848ECHO_N 849ECHO_C 850DEFS 851mandir 852localedir 853libdir 854psdir 855pdfdir 856dvidir 857htmldir 858infodir 859docdir 860oldincludedir 861includedir 862localstatedir 863sharedstatedir 864sysconfdir 865datadir 866datarootdir 867libexecdir 868sbindir 869bindir 870program_transform_name 871prefix 872exec_prefix 873PACKAGE_URL 874PACKAGE_BUGREPORT 875PACKAGE_STRING 876PACKAGE_VERSION 877PACKAGE_TARNAME 878PACKAGE_NAME 879PATH_SEPARATOR 880SHELL' 881ac_subst_files='' 882ac_user_opts=' 883enable_option_checking 884enable_maintainer_mode 885enable_dependency_tracking 886enable_strict_compilation 887enable_silent_rules 888enable_shared 889enable_static 890with_pic 891enable_fast_install 892with_gnu_ld 893enable_libtool_lock 894' 895 ac_precious_vars='build_alias 896host_alias 897target_alias 898CC 899CFLAGS 900LDFLAGS 901LIBS 902CPPFLAGS 903CPP 904PKG_CONFIG 905XDAMAGE_CFLAGS 906XDAMAGE_LIBS' 907 908 909# Initialize some variables set by options. 910ac_init_help= 911ac_init_version=false 912ac_unrecognized_opts= 913ac_unrecognized_sep= 914# The variables have the same names as the options, with 915# dashes changed to underlines. 916cache_file=/dev/null 917exec_prefix=NONE 918no_create= 919no_recursion= 920prefix=NONE 921program_prefix=NONE 922program_suffix=NONE 923program_transform_name=s,x,x, 924silent= 925site= 926srcdir= 927verbose= 928x_includes=NONE 929x_libraries=NONE 930 931# Installation directory options. 932# These are left unexpanded so users can "make install exec_prefix=/foo" 933# and all the variables that are supposed to be based on exec_prefix 934# by default will actually change. 935# Use braces instead of parens because sh, perl, etc. also accept them. 936# (The list follows the same order as the GNU Coding Standards.) 937bindir='${exec_prefix}/bin' 938sbindir='${exec_prefix}/sbin' 939libexecdir='${exec_prefix}/libexec' 940datarootdir='${prefix}/share' 941datadir='${datarootdir}' 942sysconfdir='${prefix}/etc' 943sharedstatedir='${prefix}/com' 944localstatedir='${prefix}/var' 945includedir='${prefix}/include' 946oldincludedir='/usr/include' 947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 948infodir='${datarootdir}/info' 949htmldir='${docdir}' 950dvidir='${docdir}' 951pdfdir='${docdir}' 952psdir='${docdir}' 953libdir='${exec_prefix}/lib' 954localedir='${datarootdir}/locale' 955mandir='${datarootdir}/man' 956 957ac_prev= 958ac_dashdash= 959for ac_option 960do 961 # If the previous option needs an argument, assign it. 962 if test -n "$ac_prev"; then 963 eval $ac_prev=\$ac_option 964 ac_prev= 965 continue 966 fi 967 968 case $ac_option in 969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 970 *) ac_optarg=yes ;; 971 esac 972 973 # Accept the important Cygnus configure options, so we can diagnose typos. 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=no ;; 1026 1027 -docdir | --docdir | --docdi | --doc | --do) 1028 ac_prev=docdir ;; 1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1030 docdir=$ac_optarg ;; 1031 1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1033 ac_prev=dvidir ;; 1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1035 dvidir=$ac_optarg ;; 1036 1037 -enable-* | --enable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error "invalid feature name: $ac_useropt" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=\$ac_optarg ;; 1052 1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1055 | --exec | --exe | --ex) 1056 ac_prev=exec_prefix ;; 1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1059 | --exec=* | --exe=* | --ex=*) 1060 exec_prefix=$ac_optarg ;; 1061 1062 -gas | --gas | --ga | --g) 1063 # Obsolete; use --with-gas. 1064 with_gas=yes ;; 1065 1066 -help | --help | --hel | --he | -h) 1067 ac_init_help=long ;; 1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1069 ac_init_help=recursive ;; 1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1071 ac_init_help=short ;; 1072 1073 -host | --host | --hos | --ho) 1074 ac_prev=host_alias ;; 1075 -host=* | --host=* | --hos=* | --ho=*) 1076 host_alias=$ac_optarg ;; 1077 1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1079 ac_prev=htmldir ;; 1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1081 | --ht=*) 1082 htmldir=$ac_optarg ;; 1083 1084 -includedir | --includedir | --includedi | --included | --include \ 1085 | --includ | --inclu | --incl | --inc) 1086 ac_prev=includedir ;; 1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1088 | --includ=* | --inclu=* | --incl=* | --inc=*) 1089 includedir=$ac_optarg ;; 1090 1091 -infodir | --infodir | --infodi | --infod | --info | --inf) 1092 ac_prev=infodir ;; 1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1094 infodir=$ac_optarg ;; 1095 1096 -libdir | --libdir | --libdi | --libd) 1097 ac_prev=libdir ;; 1098 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1099 libdir=$ac_optarg ;; 1100 1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1102 | --libexe | --libex | --libe) 1103 ac_prev=libexecdir ;; 1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1105 | --libexe=* | --libex=* | --libe=*) 1106 libexecdir=$ac_optarg ;; 1107 1108 -localedir | --localedir | --localedi | --localed | --locale) 1109 ac_prev=localedir ;; 1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1111 localedir=$ac_optarg ;; 1112 1113 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1114 | --localstate | --localstat | --localsta | --localst | --locals) 1115 ac_prev=localstatedir ;; 1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1118 localstatedir=$ac_optarg ;; 1119 1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1121 ac_prev=mandir ;; 1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1123 mandir=$ac_optarg ;; 1124 1125 -nfp | --nfp | --nf) 1126 # Obsolete; use --without-fp. 1127 with_fp=no ;; 1128 1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1130 | --no-cr | --no-c | -n) 1131 no_create=yes ;; 1132 1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1135 no_recursion=yes ;; 1136 1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1139 | --oldin | --oldi | --old | --ol | --o) 1140 ac_prev=oldincludedir ;; 1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1144 oldincludedir=$ac_optarg ;; 1145 1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1147 ac_prev=prefix ;; 1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1149 prefix=$ac_optarg ;; 1150 1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1152 | --program-pre | --program-pr | --program-p) 1153 ac_prev=program_prefix ;; 1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1156 program_prefix=$ac_optarg ;; 1157 1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1159 | --program-suf | --program-su | --program-s) 1160 ac_prev=program_suffix ;; 1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1163 program_suffix=$ac_optarg ;; 1164 1165 -program-transform-name | --program-transform-name \ 1166 | --program-transform-nam | --program-transform-na \ 1167 | --program-transform-n | --program-transform- \ 1168 | --program-transform | --program-transfor \ 1169 | --program-transfo | --program-transf \ 1170 | --program-trans | --program-tran \ 1171 | --progr-tra | --program-tr | --program-t) 1172 ac_prev=program_transform_name ;; 1173 -program-transform-name=* | --program-transform-name=* \ 1174 | --program-transform-nam=* | --program-transform-na=* \ 1175 | --program-transform-n=* | --program-transform-=* \ 1176 | --program-transform=* | --program-transfor=* \ 1177 | --program-transfo=* | --program-transf=* \ 1178 | --program-trans=* | --program-tran=* \ 1179 | --progr-tra=* | --program-tr=* | --program-t=*) 1180 program_transform_name=$ac_optarg ;; 1181 1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1183 ac_prev=pdfdir ;; 1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1185 pdfdir=$ac_optarg ;; 1186 1187 -psdir | --psdir | --psdi | --psd | --ps) 1188 ac_prev=psdir ;; 1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1190 psdir=$ac_optarg ;; 1191 1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1193 | -silent | --silent | --silen | --sile | --sil) 1194 silent=yes ;; 1195 1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1197 ac_prev=sbindir ;; 1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1199 | --sbi=* | --sb=*) 1200 sbindir=$ac_optarg ;; 1201 1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1204 | --sharedst | --shareds | --shared | --share | --shar \ 1205 | --sha | --sh) 1206 ac_prev=sharedstatedir ;; 1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1210 | --sha=* | --sh=*) 1211 sharedstatedir=$ac_optarg ;; 1212 1213 -site | --site | --sit) 1214 ac_prev=site ;; 1215 -site=* | --site=* | --sit=*) 1216 site=$ac_optarg ;; 1217 1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1219 ac_prev=srcdir ;; 1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1221 srcdir=$ac_optarg ;; 1222 1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1224 | --syscon | --sysco | --sysc | --sys | --sy) 1225 ac_prev=sysconfdir ;; 1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1228 sysconfdir=$ac_optarg ;; 1229 1230 -target | --target | --targe | --targ | --tar | --ta | --t) 1231 ac_prev=target_alias ;; 1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1233 target_alias=$ac_optarg ;; 1234 1235 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1236 verbose=yes ;; 1237 1238 -version | --version | --versio | --versi | --vers | -V) 1239 ac_init_version=: ;; 1240 1241 -with-* | --with-*) 1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1243 # Reject names that are not valid shell variable names. 1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1245 as_fn_error "invalid package name: $ac_useropt" 1246 ac_useropt_orig=$ac_useropt 1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1248 case $ac_user_opts in 1249 *" 1250"with_$ac_useropt" 1251"*) ;; 1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1253 ac_unrecognized_sep=', ';; 1254 esac 1255 eval with_$ac_useropt=\$ac_optarg ;; 1256 1257 -without-* | --without-*) 1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1261 as_fn_error "invalid package name: $ac_useropt" 1262 ac_useropt_orig=$ac_useropt 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1264 case $ac_user_opts in 1265 *" 1266"with_$ac_useropt" 1267"*) ;; 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1269 ac_unrecognized_sep=', ';; 1270 esac 1271 eval with_$ac_useropt=no ;; 1272 1273 --x) 1274 # Obsolete; use --with-x. 1275 with_x=yes ;; 1276 1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1278 | --x-incl | --x-inc | --x-in | --x-i) 1279 ac_prev=x_includes ;; 1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1282 x_includes=$ac_optarg ;; 1283 1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1286 ac_prev=x_libraries ;; 1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1289 x_libraries=$ac_optarg ;; 1290 1291 -*) as_fn_error "unrecognized option: \`$ac_option' 1292Try \`$0 --help' for more information." 1293 ;; 1294 1295 *=*) 1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1297 # Reject names that are not valid shell variable names. 1298 case $ac_envvar in #( 1299 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1300 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1301 esac 1302 eval $ac_envvar=\$ac_optarg 1303 export $ac_envvar ;; 1304 1305 *) 1306 # FIXME: should be removed in autoconf 3.0. 1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1310 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1311 ;; 1312 1313 esac 1314done 1315 1316if test -n "$ac_prev"; then 1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1318 as_fn_error "missing argument to $ac_option" 1319fi 1320 1321if test -n "$ac_unrecognized_opts"; then 1322 case $enable_option_checking in 1323 no) ;; 1324 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1326 esac 1327fi 1328 1329# Check all directory arguments for consistency. 1330for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1331 datadir sysconfdir sharedstatedir localstatedir includedir \ 1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1333 libdir localedir mandir 1334do 1335 eval ac_val=\$$ac_var 1336 # Remove trailing slashes. 1337 case $ac_val in 1338 */ ) 1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1340 eval $ac_var=\$ac_val;; 1341 esac 1342 # Be sure to have absolute directory names. 1343 case $ac_val in 1344 [\\/$]* | ?:[\\/]* ) continue;; 1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1346 esac 1347 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1348done 1349 1350# There might be people who depend on the old broken behavior: `$host' 1351# used to hold the argument of --host etc. 1352# FIXME: To remove some day. 1353build=$build_alias 1354host=$host_alias 1355target=$target_alias 1356 1357# FIXME: To remove some day. 1358if test "x$host_alias" != x; then 1359 if test "x$build_alias" = x; then 1360 cross_compiling=maybe 1361 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1362 If a cross compiler is detected then cross compile mode will be used." >&2 1363 elif test "x$build_alias" != "x$host_alias"; then 1364 cross_compiling=yes 1365 fi 1366fi 1367 1368ac_tool_prefix= 1369test -n "$host_alias" && ac_tool_prefix=$host_alias- 1370 1371test "$silent" = yes && exec 6>/dev/null 1372 1373 1374ac_pwd=`pwd` && test -n "$ac_pwd" && 1375ac_ls_di=`ls -di .` && 1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1377 as_fn_error "working directory cannot be determined" 1378test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1379 as_fn_error "pwd does not report name of working directory" 1380 1381 1382# Find the source files, if location was not specified. 1383if test -z "$srcdir"; then 1384 ac_srcdir_defaulted=yes 1385 # Try the directory containing this script, then the parent directory. 1386 ac_confdir=`$as_dirname -- "$as_myself" || 1387$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1388 X"$as_myself" : 'X\(//\)[^/]' \| \ 1389 X"$as_myself" : 'X\(//\)$' \| \ 1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1391$as_echo X"$as_myself" | 1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1393 s//\1/ 1394 q 1395 } 1396 /^X\(\/\/\)[^/].*/{ 1397 s//\1/ 1398 q 1399 } 1400 /^X\(\/\/\)$/{ 1401 s//\1/ 1402 q 1403 } 1404 /^X\(\/\).*/{ 1405 s//\1/ 1406 q 1407 } 1408 s/.*/./; q'` 1409 srcdir=$ac_confdir 1410 if test ! -r "$srcdir/$ac_unique_file"; then 1411 srcdir=.. 1412 fi 1413else 1414 ac_srcdir_defaulted=no 1415fi 1416if test ! -r "$srcdir/$ac_unique_file"; then 1417 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1418 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1419fi 1420ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1421ac_abs_confdir=`( 1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1423 pwd)` 1424# When building in place, set srcdir=. 1425if test "$ac_abs_confdir" = "$ac_pwd"; then 1426 srcdir=. 1427fi 1428# Remove unnecessary trailing slashes from srcdir. 1429# Double slashes in file names in object file debugging info 1430# mess up M-x gdb in Emacs. 1431case $srcdir in 1432*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1433esac 1434for ac_var in $ac_precious_vars; do 1435 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1436 eval ac_env_${ac_var}_value=\$${ac_var} 1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1439done 1440 1441# 1442# Report the --help message. 1443# 1444if test "$ac_init_help" = "long"; then 1445 # Omit some internal or obsolete options to make the list less imposing. 1446 # This message is too long to be a string in the A/UX 3.1 sh. 1447 cat <<_ACEOF 1448\`configure' configures libXdamage 1.1.3 to adapt to many kinds of systems. 1449 1450Usage: $0 [OPTION]... [VAR=VALUE]... 1451 1452To assign environment variables (e.g., CC, CFLAGS...), specify them as 1453VAR=VALUE. See below for descriptions of some of the useful variables. 1454 1455Defaults for the options are specified in brackets. 1456 1457Configuration: 1458 -h, --help display this help and exit 1459 --help=short display options specific to this package 1460 --help=recursive display the short help of all the included packages 1461 -V, --version display version information and exit 1462 -q, --quiet, --silent do not print \`checking...' messages 1463 --cache-file=FILE cache test results in FILE [disabled] 1464 -C, --config-cache alias for \`--cache-file=config.cache' 1465 -n, --no-create do not create output files 1466 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1467 1468Installation directories: 1469 --prefix=PREFIX install architecture-independent files in PREFIX 1470 [$ac_default_prefix] 1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1472 [PREFIX] 1473 1474By default, \`make install' will install all the files in 1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1476an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1477for instance \`--prefix=\$HOME'. 1478 1479For better control, use the options below. 1480 1481Fine tuning of the installation directories: 1482 --bindir=DIR user executables [EPREFIX/bin] 1483 --sbindir=DIR system admin executables [EPREFIX/sbin] 1484 --libexecdir=DIR program executables [EPREFIX/libexec] 1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1488 --libdir=DIR object code libraries [EPREFIX/lib] 1489 --includedir=DIR C header files [PREFIX/include] 1490 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1493 --infodir=DIR info documentation [DATAROOTDIR/info] 1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1495 --mandir=DIR man documentation [DATAROOTDIR/man] 1496 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdamage] 1497 --htmldir=DIR html documentation [DOCDIR] 1498 --dvidir=DIR dvi documentation [DOCDIR] 1499 --pdfdir=DIR pdf documentation [DOCDIR] 1500 --psdir=DIR ps documentation [DOCDIR] 1501_ACEOF 1502 1503 cat <<\_ACEOF 1504 1505Program names: 1506 --program-prefix=PREFIX prepend PREFIX to installed program names 1507 --program-suffix=SUFFIX append SUFFIX to installed program names 1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1509 1510System types: 1511 --build=BUILD configure for building on BUILD [guessed] 1512 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1513_ACEOF 1514fi 1515 1516if test -n "$ac_init_help"; then 1517 case $ac_init_help in 1518 short | recursive ) echo "Configuration of libXdamage 1.1.3:";; 1519 esac 1520 cat <<\_ACEOF 1521 1522Optional Features: 1523 --disable-option-checking ignore unrecognized --enable/--with options 1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1526 --enable-maintainer-mode enable make rules and dependencies not useful 1527 (and sometimes confusing) to the casual installer 1528 --disable-dependency-tracking speeds up one-time build 1529 --enable-dependency-tracking do not reject slow dependency extractors 1530 --enable-strict-compilation 1531 Enable all warnings from compiler and make them 1532 errors (default: disabled) 1533 --enable-silent-rules less verbose build output (undo: `make V=1') 1534 --disable-silent-rules verbose build output (undo: `make V=0') 1535 --enable-shared[=PKGS] build shared libraries [default=yes] 1536 --enable-static[=PKGS] build static libraries [default=yes] 1537 --enable-fast-install[=PKGS] 1538 optimize for fast installation [default=yes] 1539 --disable-libtool-lock avoid locking (might break parallel builds) 1540 1541Optional Packages: 1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1544 --with-pic try to use only PIC/non-PIC objects [default=use 1545 both] 1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1547 1548Some influential environment variables: 1549 CC C compiler command 1550 CFLAGS C compiler flags 1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1552 nonstandard directory <lib dir> 1553 LIBS libraries to pass to the linker, e.g. -l<library> 1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1555 you have headers in a nonstandard directory <include dir> 1556 CPP C preprocessor 1557 PKG_CONFIG path to pkg-config utility 1558 XDAMAGE_CFLAGS 1559 C compiler flags for XDAMAGE, overriding pkg-config 1560 XDAMAGE_LIBS 1561 linker flags for XDAMAGE, overriding pkg-config 1562 1563Use these variables to override the choices made by `configure' or to help 1564it to find libraries and programs with nonstandard names/locations. 1565 1566Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1567_ACEOF 1568ac_status=$? 1569fi 1570 1571if test "$ac_init_help" = "recursive"; then 1572 # If there are subdirs, report their specific --help. 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1574 test -d "$ac_dir" || 1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1576 continue 1577 ac_builddir=. 1578 1579case "$ac_dir" in 1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1581*) 1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1583 # A ".." for each directory in $ac_dir_suffix. 1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1585 case $ac_top_builddir_sub in 1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1588 esac ;; 1589esac 1590ac_abs_top_builddir=$ac_pwd 1591ac_abs_builddir=$ac_pwd$ac_dir_suffix 1592# for backward compatibility: 1593ac_top_builddir=$ac_top_build_prefix 1594 1595case $srcdir in 1596 .) # We are building in place. 1597 ac_srcdir=. 1598 ac_top_srcdir=$ac_top_builddir_sub 1599 ac_abs_top_srcdir=$ac_pwd ;; 1600 [\\/]* | ?:[\\/]* ) # Absolute name. 1601 ac_srcdir=$srcdir$ac_dir_suffix; 1602 ac_top_srcdir=$srcdir 1603 ac_abs_top_srcdir=$srcdir ;; 1604 *) # Relative name. 1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1606 ac_top_srcdir=$ac_top_build_prefix$srcdir 1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1608esac 1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1610 1611 cd "$ac_dir" || { ac_status=$?; continue; } 1612 # Check for guested configure. 1613 if test -f "$ac_srcdir/configure.gnu"; then 1614 echo && 1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1616 elif test -f "$ac_srcdir/configure"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure" --help=recursive 1619 else 1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1621 fi || ac_status=$? 1622 cd "$ac_pwd" || { ac_status=$?; break; } 1623 done 1624fi 1625 1626test -n "$ac_init_help" && exit $ac_status 1627if $ac_init_version; then 1628 cat <<\_ACEOF 1629libXdamage configure 1.1.3 1630generated by GNU Autoconf 2.65 1631 1632Copyright (C) 2009 Free Software Foundation, Inc. 1633This configure script is free software; the Free Software Foundation 1634gives unlimited permission to copy, distribute and modify it. 1635_ACEOF 1636 exit 1637fi 1638 1639## ------------------------ ## 1640## Autoconf initialization. ## 1641## ------------------------ ## 1642 1643# ac_fn_c_try_compile LINENO 1644# -------------------------- 1645# Try to compile conftest.$ac_ext, and return whether this succeeded. 1646ac_fn_c_try_compile () 1647{ 1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1649 rm -f conftest.$ac_objext 1650 if { { ac_try="$ac_compile" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_compile") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } && { 1666 test -z "$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 } && test -s conftest.$ac_objext; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_compile 1680 1681# ac_fn_c_check_decl LINENO SYMBOL VAR 1682# ------------------------------------ 1683# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1684ac_fn_c_check_decl () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1688$as_echo_n "checking whether $2 is declared... " >&6; } 1689if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1690 $as_echo_n "(cached) " >&6 1691else 1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693/* end confdefs.h. */ 1694$4 1695int 1696main () 1697{ 1698#ifndef $2 1699 (void) $2; 1700#endif 1701 1702 ; 1703 return 0; 1704} 1705_ACEOF 1706if ac_fn_c_try_compile "$LINENO"; then : 1707 eval "$3=yes" 1708else 1709 eval "$3=no" 1710fi 1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1712fi 1713eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715$as_echo "$ac_res" >&6; } 1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1717 1718} # ac_fn_c_check_decl 1719 1720# ac_fn_c_try_cpp LINENO 1721# ---------------------- 1722# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1723ac_fn_c_try_cpp () 1724{ 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1726 if { { ac_try="$ac_cpp conftest.$ac_ext" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1734 ac_status=$? 1735 if test -s conftest.err; then 1736 grep -v '^ *+' conftest.err >conftest.er1 1737 cat conftest.er1 >&5 1738 mv -f conftest.er1 conftest.err 1739 fi 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } >/dev/null && { 1742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1743 test ! -s conftest.err 1744 }; then : 1745 ac_retval=0 1746else 1747 $as_echo "$as_me: failed program was:" >&5 1748sed 's/^/| /' conftest.$ac_ext >&5 1749 1750 ac_retval=1 1751fi 1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_cpp 1756 1757# ac_fn_c_try_run LINENO 1758# ---------------------- 1759# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1760# that executables *can* be run. 1761ac_fn_c_try_run () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 if { { ac_try="$ac_link" 1765case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_link") 2>&5 1772 ac_status=$? 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1775 { { case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_try") 2>&5 1782 ac_status=$? 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; }; }; then : 1785 ac_retval=0 1786else 1787 $as_echo "$as_me: program exited with status $ac_status" >&5 1788 $as_echo "$as_me: failed program was:" >&5 1789sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=$ac_status 1792fi 1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1795 as_fn_set_status $ac_retval 1796 1797} # ac_fn_c_try_run 1798 1799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1800# ------------------------------------------------------- 1801# Tests whether HEADER exists and can be compiled using the include files in 1802# INCLUDES, setting the cache variable VAR accordingly. 1803ac_fn_c_check_header_compile () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1809 $as_echo_n "(cached) " >&6 1810else 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813$4 1814#include <$2> 1815_ACEOF 1816if ac_fn_c_try_compile "$LINENO"; then : 1817 eval "$3=yes" 1818else 1819 eval "$3=no" 1820fi 1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1822fi 1823eval ac_res=\$$3 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825$as_echo "$ac_res" >&6; } 1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1827 1828} # ac_fn_c_check_header_compile 1829 1830# ac_fn_c_try_link LINENO 1831# ----------------------- 1832# Try to link conftest.$ac_ext, and return whether this succeeded. 1833ac_fn_c_try_link () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 rm -f conftest.$ac_objext conftest$ac_exeext 1837 if { { ac_try="$ac_link" 1838case "(($ac_try" in 1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1840 *) ac_try_echo=$ac_try;; 1841esac 1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1843$as_echo "$ac_try_echo"; } >&5 1844 (eval "$ac_link") 2>conftest.err 1845 ac_status=$? 1846 if test -s conftest.err; then 1847 grep -v '^ *+' conftest.err >conftest.er1 1848 cat conftest.er1 >&5 1849 mv -f conftest.er1 conftest.err 1850 fi 1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; } && { 1853 test -z "$ac_c_werror_flag" || 1854 test ! -s conftest.err 1855 } && test -s conftest$ac_exeext && { 1856 test "$cross_compiling" = yes || 1857 $as_test_x conftest$ac_exeext 1858 }; then : 1859 ac_retval=0 1860else 1861 $as_echo "$as_me: failed program was:" >&5 1862sed 's/^/| /' conftest.$ac_ext >&5 1863 1864 ac_retval=1 1865fi 1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1868 # interfere with the next link command; also delete a directory that is 1869 # left behind by Apple's compiler. We do this before executing the actions. 1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1872 as_fn_set_status $ac_retval 1873 1874} # ac_fn_c_try_link 1875 1876# ac_fn_c_check_func LINENO FUNC VAR 1877# ---------------------------------- 1878# Tests whether FUNC exists, setting the cache variable VAR accordingly 1879ac_fn_c_check_func () 1880{ 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883$as_echo_n "checking for $2... " >&6; } 1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1885 $as_echo_n "(cached) " >&6 1886else 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1891#define $2 innocuous_$2 1892 1893/* System header to define __stub macros and hopefully few prototypes, 1894 which can conflict with char $2 (); below. 1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1896 <limits.h> exists even on freestanding compilers. */ 1897 1898#ifdef __STDC__ 1899# include <limits.h> 1900#else 1901# include <assert.h> 1902#endif 1903 1904#undef $2 1905 1906/* Override any GCC internal prototype to avoid an error. 1907 Use char because int might match the return type of a GCC 1908 builtin and then its argument prototype would still apply. */ 1909#ifdef __cplusplus 1910extern "C" 1911#endif 1912char $2 (); 1913/* The GNU C library defines this for functions which it implements 1914 to always fail with ENOSYS. Some functions are actually named 1915 something starting with __ and the normal name is an alias. */ 1916#if defined __stub_$2 || defined __stub___$2 1917choke me 1918#endif 1919 1920int 1921main () 1922{ 1923return $2 (); 1924 ; 1925 return 0; 1926} 1927_ACEOF 1928if ac_fn_c_try_link "$LINENO"; then : 1929 eval "$3=yes" 1930else 1931 eval "$3=no" 1932fi 1933rm -f core conftest.err conftest.$ac_objext \ 1934 conftest$ac_exeext conftest.$ac_ext 1935fi 1936eval ac_res=\$$3 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1938$as_echo "$ac_res" >&6; } 1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1940 1941} # ac_fn_c_check_func 1942cat >config.log <<_ACEOF 1943This file contains any messages produced by compilers while 1944running configure, to aid debugging if configure makes a mistake. 1945 1946It was created by libXdamage $as_me 1.1.3, which was 1947generated by GNU Autoconf 2.65. Invocation command line was 1948 1949 $ $0 $@ 1950 1951_ACEOF 1952exec 5>>config.log 1953{ 1954cat <<_ASUNAME 1955## --------- ## 1956## Platform. ## 1957## --------- ## 1958 1959hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1960uname -m = `(uname -m) 2>/dev/null || echo unknown` 1961uname -r = `(uname -r) 2>/dev/null || echo unknown` 1962uname -s = `(uname -s) 2>/dev/null || echo unknown` 1963uname -v = `(uname -v) 2>/dev/null || echo unknown` 1964 1965/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1966/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1967 1968/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1969/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1970/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1971/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1972/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1973/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1974/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1975 1976_ASUNAME 1977 1978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1979for as_dir in $PATH 1980do 1981 IFS=$as_save_IFS 1982 test -z "$as_dir" && as_dir=. 1983 $as_echo "PATH: $as_dir" 1984 done 1985IFS=$as_save_IFS 1986 1987} >&5 1988 1989cat >&5 <<_ACEOF 1990 1991 1992## ----------- ## 1993## Core tests. ## 1994## ----------- ## 1995 1996_ACEOF 1997 1998 1999# Keep a trace of the command line. 2000# Strip out --no-create and --no-recursion so they do not pile up. 2001# Strip out --silent because we don't want to record it for future runs. 2002# Also quote any args containing shell meta-characters. 2003# Make two passes to allow for proper duplicate-argument suppression. 2004ac_configure_args= 2005ac_configure_args0= 2006ac_configure_args1= 2007ac_must_keep_next=false 2008for ac_pass in 1 2 2009do 2010 for ac_arg 2011 do 2012 case $ac_arg in 2013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2015 | -silent | --silent | --silen | --sile | --sil) 2016 continue ;; 2017 *\'*) 2018 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2019 esac 2020 case $ac_pass in 2021 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2022 2) 2023 as_fn_append ac_configure_args1 " '$ac_arg'" 2024 if test $ac_must_keep_next = true; then 2025 ac_must_keep_next=false # Got value, back to normal. 2026 else 2027 case $ac_arg in 2028 *=* | --config-cache | -C | -disable-* | --disable-* \ 2029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2031 | -with-* | --with-* | -without-* | --without-* | --x) 2032 case "$ac_configure_args0 " in 2033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2034 esac 2035 ;; 2036 -* ) ac_must_keep_next=true ;; 2037 esac 2038 fi 2039 as_fn_append ac_configure_args " '$ac_arg'" 2040 ;; 2041 esac 2042 done 2043done 2044{ ac_configure_args0=; unset ac_configure_args0;} 2045{ ac_configure_args1=; unset ac_configure_args1;} 2046 2047# When interrupted or exit'd, cleanup temporary files, and complete 2048# config.log. We remove comments because anyway the quotes in there 2049# would cause problems or look ugly. 2050# WARNING: Use '\'' to represent an apostrophe within the trap. 2051# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2052trap 'exit_status=$? 2053 # Save into config.log some information that might help in debugging. 2054 { 2055 echo 2056 2057 cat <<\_ASBOX 2058## ---------------- ## 2059## Cache variables. ## 2060## ---------------- ## 2061_ASBOX 2062 echo 2063 # The following way of writing the cache mishandles newlines in values, 2064( 2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in #( 2068 *${as_nl}*) 2069 case $ac_var in #( 2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2072 esac 2073 case $ac_var in #( 2074 _ | IFS | as_nl) ;; #( 2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2076 *) { eval $ac_var=; unset $ac_var;} ;; 2077 esac ;; 2078 esac 2079 done 2080 (set) 2>&1 | 2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2082 *${as_nl}ac_space=\ *) 2083 sed -n \ 2084 "s/'\''/'\''\\\\'\'''\''/g; 2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2086 ;; #( 2087 *) 2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2089 ;; 2090 esac | 2091 sort 2092) 2093 echo 2094 2095 cat <<\_ASBOX 2096## ----------------- ## 2097## Output variables. ## 2098## ----------------- ## 2099_ASBOX 2100 echo 2101 for ac_var in $ac_subst_vars 2102 do 2103 eval ac_val=\$$ac_var 2104 case $ac_val in 2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2106 esac 2107 $as_echo "$ac_var='\''$ac_val'\''" 2108 done | sort 2109 echo 2110 2111 if test -n "$ac_subst_files"; then 2112 cat <<\_ASBOX 2113## ------------------- ## 2114## File substitutions. ## 2115## ------------------- ## 2116_ASBOX 2117 echo 2118 for ac_var in $ac_subst_files 2119 do 2120 eval ac_val=\$$ac_var 2121 case $ac_val in 2122 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2123 esac 2124 $as_echo "$ac_var='\''$ac_val'\''" 2125 done | sort 2126 echo 2127 fi 2128 2129 if test -s confdefs.h; then 2130 cat <<\_ASBOX 2131## ----------- ## 2132## confdefs.h. ## 2133## ----------- ## 2134_ASBOX 2135 echo 2136 cat confdefs.h 2137 echo 2138 fi 2139 test "$ac_signal" != 0 && 2140 $as_echo "$as_me: caught signal $ac_signal" 2141 $as_echo "$as_me: exit $exit_status" 2142 } >&5 2143 rm -f core *.core core.conftest.* && 2144 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2145 exit $exit_status 2146' 0 2147for ac_signal in 1 2 13 15; do 2148 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2149done 2150ac_signal=0 2151 2152# confdefs.h avoids OS command line length limits that DEFS can exceed. 2153rm -f -r conftest* confdefs.h 2154 2155$as_echo "/* confdefs.h */" > confdefs.h 2156 2157# Predefined preprocessor variables. 2158 2159cat >>confdefs.h <<_ACEOF 2160#define PACKAGE_NAME "$PACKAGE_NAME" 2161_ACEOF 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_VERSION "$PACKAGE_VERSION" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_STRING "$PACKAGE_STRING" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_URL "$PACKAGE_URL" 2181_ACEOF 2182 2183 2184# Let the site file select an alternate cache file if it wants to. 2185# Prefer an explicitly selected file to automatically selected ones. 2186ac_site_file1=NONE 2187ac_site_file2=NONE 2188if test -n "$CONFIG_SITE"; then 2189 ac_site_file1=$CONFIG_SITE 2190elif test "x$prefix" != xNONE; then 2191 ac_site_file1=$prefix/share/config.site 2192 ac_site_file2=$prefix/etc/config.site 2193else 2194 ac_site_file1=$ac_default_prefix/share/config.site 2195 ac_site_file2=$ac_default_prefix/etc/config.site 2196fi 2197for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2198do 2199 test "x$ac_site_file" = xNONE && continue 2200 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2202$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2203 sed 's/^/| /' "$ac_site_file" >&5 2204 . "$ac_site_file" 2205 fi 2206done 2207 2208if test -r "$cache_file"; then 2209 # Some versions of bash will fail to source /dev/null (special files 2210 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2211 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2213$as_echo "$as_me: loading cache $cache_file" >&6;} 2214 case $cache_file in 2215 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2216 *) . "./$cache_file";; 2217 esac 2218 fi 2219else 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2221$as_echo "$as_me: creating cache $cache_file" >&6;} 2222 >$cache_file 2223fi 2224 2225# Check that the precious variables saved in the cache have kept the same 2226# value. 2227ac_cache_corrupted=false 2228for ac_var in $ac_precious_vars; do 2229 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2230 eval ac_new_set=\$ac_env_${ac_var}_set 2231 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2232 eval ac_new_val=\$ac_env_${ac_var}_value 2233 case $ac_old_set,$ac_new_set in 2234 set,) 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2236$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2237 ac_cache_corrupted=: ;; 2238 ,set) 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2240$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2241 ac_cache_corrupted=: ;; 2242 ,);; 2243 *) 2244 if test "x$ac_old_val" != "x$ac_new_val"; then 2245 # differences in whitespace do not lead to failure. 2246 ac_old_val_w=`echo x $ac_old_val` 2247 ac_new_val_w=`echo x $ac_new_val` 2248 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2250$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2251 ac_cache_corrupted=: 2252 else 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2254$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2255 eval $ac_var=\$ac_old_val 2256 fi 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2258$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2260$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2261 fi;; 2262 esac 2263 # Pass precious variables to config.status. 2264 if test "$ac_new_set" = set; then 2265 case $ac_new_val in 2266 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2267 *) ac_arg=$ac_var=$ac_new_val ;; 2268 esac 2269 case " $ac_configure_args " in 2270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2271 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2272 esac 2273 fi 2274done 2275if $ac_cache_corrupted; then 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2279$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2280 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2281fi 2282## -------------------- ## 2283## Main body of script. ## 2284## -------------------- ## 2285 2286ac_ext=c 2287ac_cpp='$CPP $CPPFLAGS' 2288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2290ac_compiler_gnu=$ac_cv_c_compiler_gnu 2291 2292 2293am__api_version='1.11' 2294 2295ac_aux_dir= 2296for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2297 for ac_t in install-sh install.sh shtool; do 2298 if test -f "$ac_dir/$ac_t"; then 2299 ac_aux_dir=$ac_dir 2300 ac_install_sh="$ac_aux_dir/$ac_t -c" 2301 break 2 2302 fi 2303 done 2304done 2305if test -z "$ac_aux_dir"; then 2306 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2307fi 2308 2309# These three variables are undocumented and unsupported, 2310# and are intended to be withdrawn in a future Autoconf release. 2311# They can cause serious problems if a builder's source tree is in a directory 2312# whose full name contains unusual characters. 2313ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2314ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2315ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2316 2317 2318# Find a good install program. We prefer a C program (faster), 2319# so one script is as good as another. But avoid the broken or 2320# incompatible versions: 2321# SysV /etc/install, /usr/sbin/install 2322# SunOS /usr/etc/install 2323# IRIX /sbin/install 2324# AIX /bin/install 2325# AmigaOS /C/install, which installs bootblocks on floppy discs 2326# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2327# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2328# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2329# OS/2's system install, which has a completely different semantic 2330# ./install, which can be erroneously created by make from ./install.sh. 2331# Reject install programs that cannot install multiple files. 2332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2333$as_echo_n "checking for a BSD-compatible install... " >&6; } 2334if test -z "$INSTALL"; then 2335if test "${ac_cv_path_install+set}" = set; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339for as_dir in $PATH 2340do 2341 IFS=$as_save_IFS 2342 test -z "$as_dir" && as_dir=. 2343 # Account for people who put trailing slashes in PATH elements. 2344case $as_dir/ in #(( 2345 ./ | .// | /[cC]/* | \ 2346 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2347 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2348 /usr/ucb/* ) ;; 2349 *) 2350 # OSF1 and SCO ODT 3.0 have their own names for install. 2351 # Don't use installbsd from OSF since it installs stuff as root 2352 # by default. 2353 for ac_prog in ginstall scoinst install; do 2354 for ac_exec_ext in '' $ac_executable_extensions; do 2355 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2356 if test $ac_prog = install && 2357 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2358 # AIX install. It has an incompatible calling convention. 2359 : 2360 elif test $ac_prog = install && 2361 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2362 # program-specific install script used by HP pwplus--don't use. 2363 : 2364 else 2365 rm -rf conftest.one conftest.two conftest.dir 2366 echo one > conftest.one 2367 echo two > conftest.two 2368 mkdir conftest.dir 2369 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2370 test -s conftest.one && test -s conftest.two && 2371 test -s conftest.dir/conftest.one && 2372 test -s conftest.dir/conftest.two 2373 then 2374 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2375 break 3 2376 fi 2377 fi 2378 fi 2379 done 2380 done 2381 ;; 2382esac 2383 2384 done 2385IFS=$as_save_IFS 2386 2387rm -rf conftest.one conftest.two conftest.dir 2388 2389fi 2390 if test "${ac_cv_path_install+set}" = set; then 2391 INSTALL=$ac_cv_path_install 2392 else 2393 # As a last resort, use the slow shell script. Don't cache a 2394 # value for INSTALL within a source directory, because that will 2395 # break other packages using the cache if that directory is 2396 # removed, or if the value is a relative name. 2397 INSTALL=$ac_install_sh 2398 fi 2399fi 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2401$as_echo "$INSTALL" >&6; } 2402 2403# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2404# It thinks the first close brace ends the variable substitution. 2405test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2406 2407test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2408 2409test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2410 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2412$as_echo_n "checking whether build environment is sane... " >&6; } 2413# Just in case 2414sleep 1 2415echo timestamp > conftest.file 2416# Reject unsafe characters in $srcdir or the absolute working directory 2417# name. Accept space and tab only in the latter. 2418am_lf=' 2419' 2420case `pwd` in 2421 *[\\\"\#\$\&\'\`$am_lf]*) 2422 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2423esac 2424case $srcdir in 2425 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2426 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2427esac 2428 2429# Do `set' in a subshell so we don't clobber the current shell's 2430# arguments. Must try -L first in case configure is actually a 2431# symlink; some systems play weird games with the mod time of symlinks 2432# (eg FreeBSD returns the mod time of the symlink's containing 2433# directory). 2434if ( 2435 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2436 if test "$*" = "X"; then 2437 # -L didn't work. 2438 set X `ls -t "$srcdir/configure" conftest.file` 2439 fi 2440 rm -f conftest.file 2441 if test "$*" != "X $srcdir/configure conftest.file" \ 2442 && test "$*" != "X conftest.file $srcdir/configure"; then 2443 2444 # If neither matched, then we have a broken ls. This can happen 2445 # if, for instance, CONFIG_SHELL is bash and it inherits a 2446 # broken ls alias from the environment. This has actually 2447 # happened. Such a system could not be considered "sane". 2448 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2449alias in your environment" "$LINENO" 5 2450 fi 2451 2452 test "$2" = conftest.file 2453 ) 2454then 2455 # Ok. 2456 : 2457else 2458 as_fn_error "newly created file is older than distributed files! 2459Check your system clock" "$LINENO" 5 2460fi 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2462$as_echo "yes" >&6; } 2463test "$program_prefix" != NONE && 2464 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2465# Use a double $ so make ignores it. 2466test "$program_suffix" != NONE && 2467 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2468# Double any \ or $. 2469# By default was `s,x,x', remove it if useless. 2470ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2471program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2472 2473# expand $ac_aux_dir to an absolute path 2474am_aux_dir=`cd $ac_aux_dir && pwd` 2475 2476if test x"${MISSING+set}" != xset; then 2477 case $am_aux_dir in 2478 *\ * | *\ *) 2479 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2480 *) 2481 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2482 esac 2483fi 2484# Use eval to expand $SHELL 2485if eval "$MISSING --run true"; then 2486 am_missing_run="$MISSING --run " 2487else 2488 am_missing_run= 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2490$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2491fi 2492 2493if test x"${install_sh}" != xset; then 2494 case $am_aux_dir in 2495 *\ * | *\ *) 2496 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2497 *) 2498 install_sh="\${SHELL} $am_aux_dir/install-sh" 2499 esac 2500fi 2501 2502# Installed binaries are usually stripped using `strip' when the user 2503# run `make install-strip'. However `strip' might not be the right 2504# tool to use in cross-compilation environments, therefore Automake 2505# will honor the `STRIP' environment variable to overrule this program. 2506if test "$cross_compiling" != no; then 2507 if test -n "$ac_tool_prefix"; then 2508 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2509set dummy ${ac_tool_prefix}strip; ac_word=$2 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2511$as_echo_n "checking for $ac_word... " >&6; } 2512if test "${ac_cv_prog_STRIP+set}" = set; then : 2513 $as_echo_n "(cached) " >&6 2514else 2515 if test -n "$STRIP"; then 2516 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2525 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535STRIP=$ac_cv_prog_STRIP 2536if test -n "$STRIP"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2538$as_echo "$STRIP" >&6; } 2539else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2541$as_echo "no" >&6; } 2542fi 2543 2544 2545fi 2546if test -z "$ac_cv_prog_STRIP"; then 2547 ac_ct_STRIP=$STRIP 2548 # Extract the first word of "strip", so it can be a program name with args. 2549set dummy strip; ac_word=$2 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2551$as_echo_n "checking for $ac_word... " >&6; } 2552if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2553 $as_echo_n "(cached) " >&6 2554else 2555 if test -n "$ac_ct_STRIP"; then 2556 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2557else 2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2559for as_dir in $PATH 2560do 2561 IFS=$as_save_IFS 2562 test -z "$as_dir" && as_dir=. 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2565 ac_cv_prog_ac_ct_STRIP="strip" 2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2567 break 2 2568 fi 2569done 2570 done 2571IFS=$as_save_IFS 2572 2573fi 2574fi 2575ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2576if test -n "$ac_ct_STRIP"; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2578$as_echo "$ac_ct_STRIP" >&6; } 2579else 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2581$as_echo "no" >&6; } 2582fi 2583 2584 if test "x$ac_ct_STRIP" = x; then 2585 STRIP=":" 2586 else 2587 case $cross_compiling:$ac_tool_warned in 2588yes:) 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2591ac_tool_warned=yes ;; 2592esac 2593 STRIP=$ac_ct_STRIP 2594 fi 2595else 2596 STRIP="$ac_cv_prog_STRIP" 2597fi 2598 2599fi 2600INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2601 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2603$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2604if test -z "$MKDIR_P"; then 2605 if test "${ac_cv_path_mkdir+set}" = set; then : 2606 $as_echo_n "(cached) " >&6 2607else 2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_prog in mkdir gmkdir; do 2614 for ac_exec_ext in '' $ac_executable_extensions; do 2615 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2616 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2617 'mkdir (GNU coreutils) '* | \ 2618 'mkdir (coreutils) '* | \ 2619 'mkdir (fileutils) '4.1*) 2620 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2621 break 3;; 2622 esac 2623 done 2624 done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629 2630 test -d ./--version && rmdir ./--version 2631 if test "${ac_cv_path_mkdir+set}" = set; then 2632 MKDIR_P="$ac_cv_path_mkdir -p" 2633 else 2634 # As a last resort, use the slow shell script. Don't cache a 2635 # value for MKDIR_P within a source directory, because that will 2636 # break other packages using the cache if that directory is 2637 # removed, or if the value is a relative name. 2638 MKDIR_P="$ac_install_sh -d" 2639 fi 2640fi 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2642$as_echo "$MKDIR_P" >&6; } 2643 2644mkdir_p="$MKDIR_P" 2645case $mkdir_p in 2646 [\\/$]* | ?:[\\/]*) ;; 2647 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2648esac 2649 2650for ac_prog in gawk mawk nawk awk 2651do 2652 # Extract the first word of "$ac_prog", so it can be a program name with args. 2653set dummy $ac_prog; ac_word=$2 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2655$as_echo_n "checking for $ac_word... " >&6; } 2656if test "${ac_cv_prog_AWK+set}" = set; then : 2657 $as_echo_n "(cached) " >&6 2658else 2659 if test -n "$AWK"; then 2660 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2669 ac_cv_prog_AWK="$ac_prog" 2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674 done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679AWK=$ac_cv_prog_AWK 2680if test -n "$AWK"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2682$as_echo "$AWK" >&6; } 2683else 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2685$as_echo "no" >&6; } 2686fi 2687 2688 2689 test -n "$AWK" && break 2690done 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2693$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2694set x ${MAKE-make} 2695ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2696if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2697 $as_echo_n "(cached) " >&6 2698else 2699 cat >conftest.make <<\_ACEOF 2700SHELL = /bin/sh 2701all: 2702 @echo '@@@%%%=$(MAKE)=@@@%%%' 2703_ACEOF 2704# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2705case `${MAKE-make} -f conftest.make 2>/dev/null` in 2706 *@@@%%%=?*=@@@%%%*) 2707 eval ac_cv_prog_make_${ac_make}_set=yes;; 2708 *) 2709 eval ac_cv_prog_make_${ac_make}_set=no;; 2710esac 2711rm -f conftest.make 2712fi 2713if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2715$as_echo "yes" >&6; } 2716 SET_MAKE= 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720 SET_MAKE="MAKE=${MAKE-make}" 2721fi 2722 2723rm -rf .tst 2>/dev/null 2724mkdir .tst 2>/dev/null 2725if test -d .tst; then 2726 am__leading_dot=. 2727else 2728 am__leading_dot=_ 2729fi 2730rmdir .tst 2>/dev/null 2731 2732if test "`cd $srcdir && pwd`" != "`pwd`"; then 2733 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2734 # is not polluted with repeated "-I." 2735 am__isrc=' -I$(srcdir)' 2736 # test to see if srcdir already configured 2737 if test -f $srcdir/config.status; then 2738 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2739 fi 2740fi 2741 2742# test whether we have cygpath 2743if test -z "$CYGPATH_W"; then 2744 if (cygpath --version) >/dev/null 2>/dev/null; then 2745 CYGPATH_W='cygpath -w' 2746 else 2747 CYGPATH_W=echo 2748 fi 2749fi 2750 2751 2752# Define the identity of the package. 2753 PACKAGE='libXdamage' 2754 VERSION='1.1.3' 2755 2756 2757cat >>confdefs.h <<_ACEOF 2758#define PACKAGE "$PACKAGE" 2759_ACEOF 2760 2761 2762cat >>confdefs.h <<_ACEOF 2763#define VERSION "$VERSION" 2764_ACEOF 2765 2766# Some tools Automake needs. 2767 2768ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2769 2770 2771AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2772 2773 2774AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2775 2776 2777AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2778 2779 2780MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2781 2782# We need awk for the "check" target. The system "awk" is bad on 2783# some platforms. 2784# Always define AMTAR for backward compatibility. 2785 2786AMTAR=${AMTAR-"${am_missing_run}tar"} 2787 2788am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2789 2790 2791 2792 2793 2794 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2796$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2797 # Check whether --enable-maintainer-mode was given. 2798if test "${enable_maintainer_mode+set}" = set; then : 2799 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2800else 2801 USE_MAINTAINER_MODE=no 2802fi 2803 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2805$as_echo "$USE_MAINTAINER_MODE" >&6; } 2806 if test $USE_MAINTAINER_MODE = yes; then 2807 MAINTAINER_MODE_TRUE= 2808 MAINTAINER_MODE_FALSE='#' 2809else 2810 MAINTAINER_MODE_TRUE='#' 2811 MAINTAINER_MODE_FALSE= 2812fi 2813 2814 MAINT=$MAINTAINER_MODE_TRUE 2815 2816 2817 2818# Require xorg-macros: XORG_DEFAULT_OPTIONS 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830DEPDIR="${am__leading_dot}deps" 2831 2832ac_config_commands="$ac_config_commands depfiles" 2833 2834 2835am_make=${MAKE-make} 2836cat > confinc << 'END' 2837am__doit: 2838 @echo this is the am__doit target 2839.PHONY: am__doit 2840END 2841# If we don't find an include directive, just comment out the code. 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2843$as_echo_n "checking for style of include used by $am_make... " >&6; } 2844am__include="#" 2845am__quote= 2846_am_result=none 2847# First try GNU make style include. 2848echo "include confinc" > confmf 2849# Ignore all kinds of additional output from `make'. 2850case `$am_make -s -f confmf 2> /dev/null` in #( 2851*the\ am__doit\ target*) 2852 am__include=include 2853 am__quote= 2854 _am_result=GNU 2855 ;; 2856esac 2857# Now try BSD make style include. 2858if test "$am__include" = "#"; then 2859 echo '.include "confinc"' > confmf 2860 case `$am_make -s -f confmf 2> /dev/null` in #( 2861 *the\ am__doit\ target*) 2862 am__include=.include 2863 am__quote="\"" 2864 _am_result=BSD 2865 ;; 2866 esac 2867fi 2868 2869 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2871$as_echo "$_am_result" >&6; } 2872rm -f confinc confmf 2873 2874# Check whether --enable-dependency-tracking was given. 2875if test "${enable_dependency_tracking+set}" = set; then : 2876 enableval=$enable_dependency_tracking; 2877fi 2878 2879if test "x$enable_dependency_tracking" != xno; then 2880 am_depcomp="$ac_aux_dir/depcomp" 2881 AMDEPBACKSLASH='\' 2882fi 2883 if test "x$enable_dependency_tracking" != xno; then 2884 AMDEP_TRUE= 2885 AMDEP_FALSE='#' 2886else 2887 AMDEP_TRUE='#' 2888 AMDEP_FALSE= 2889fi 2890 2891 2892ac_ext=c 2893ac_cpp='$CPP $CPPFLAGS' 2894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2896ac_compiler_gnu=$ac_cv_c_compiler_gnu 2897if test -n "$ac_tool_prefix"; then 2898 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2899set dummy ${ac_tool_prefix}gcc; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if test "${ac_cv_prog_CC+set}" = set; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if test -n "$CC"; then 2906 ac_cv_prog_CC="$CC" # Let the user override the test. 2907else 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2915 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924fi 2925CC=$ac_cv_prog_CC 2926if test -n "$CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2928$as_echo "$CC" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 2935fi 2936if test -z "$ac_cv_prog_CC"; then 2937 ac_ct_CC=$CC 2938 # Extract the first word of "gcc", so it can be a program name with args. 2939set dummy gcc; ac_word=$2 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2941$as_echo_n "checking for $ac_word... " >&6; } 2942if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 if test -n "$ac_ct_CC"; then 2946 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2947else 2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949for as_dir in $PATH 2950do 2951 IFS=$as_save_IFS 2952 test -z "$as_dir" && as_dir=. 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2955 ac_cv_prog_ac_ct_CC="gcc" 2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959done 2960 done 2961IFS=$as_save_IFS 2962 2963fi 2964fi 2965ac_ct_CC=$ac_cv_prog_ac_ct_CC 2966if test -n "$ac_ct_CC"; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2968$as_echo "$ac_ct_CC" >&6; } 2969else 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971$as_echo "no" >&6; } 2972fi 2973 2974 if test "x$ac_ct_CC" = x; then 2975 CC="" 2976 else 2977 case $cross_compiling:$ac_tool_warned in 2978yes:) 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2981ac_tool_warned=yes ;; 2982esac 2983 CC=$ac_ct_CC 2984 fi 2985else 2986 CC="$ac_cv_prog_CC" 2987fi 2988 2989if test -z "$CC"; then 2990 if test -n "$ac_tool_prefix"; then 2991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2992set dummy ${ac_tool_prefix}cc; ac_word=$2 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994$as_echo_n "checking for $ac_word... " >&6; } 2995if test "${ac_cv_prog_CC+set}" = set; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if test -n "$CC"; then 2999 ac_cv_prog_CC="$CC" # Let the user override the test. 3000else 3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002for as_dir in $PATH 3003do 3004 IFS=$as_save_IFS 3005 test -z "$as_dir" && as_dir=. 3006 for ac_exec_ext in '' $ac_executable_extensions; do 3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3008 ac_cv_prog_CC="${ac_tool_prefix}cc" 3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3010 break 2 3011 fi 3012done 3013 done 3014IFS=$as_save_IFS 3015 3016fi 3017fi 3018CC=$ac_cv_prog_CC 3019if test -n "$CC"; then 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3021$as_echo "$CC" >&6; } 3022else 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3024$as_echo "no" >&6; } 3025fi 3026 3027 3028 fi 3029fi 3030if test -z "$CC"; then 3031 # Extract the first word of "cc", so it can be a program name with args. 3032set dummy cc; ac_word=$2 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3034$as_echo_n "checking for $ac_word... " >&6; } 3035if test "${ac_cv_prog_CC+set}" = set; then : 3036 $as_echo_n "(cached) " >&6 3037else 3038 if test -n "$CC"; then 3039 ac_cv_prog_CC="$CC" # Let the user override the test. 3040else 3041 ac_prog_rejected=no 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3050 ac_prog_rejected=yes 3051 continue 3052 fi 3053 ac_cv_prog_CC="cc" 3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3055 break 2 3056 fi 3057done 3058 done 3059IFS=$as_save_IFS 3060 3061if test $ac_prog_rejected = yes; then 3062 # We found a bogon in the path, so make sure we never use it. 3063 set dummy $ac_cv_prog_CC 3064 shift 3065 if test $# != 0; then 3066 # We chose a different compiler from the bogus one. 3067 # However, it has the same basename, so the bogon will be chosen 3068 # first if we set CC to just the basename; use the full file name. 3069 shift 3070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3071 fi 3072fi 3073fi 3074fi 3075CC=$ac_cv_prog_CC 3076if test -n "$CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3078$as_echo "$CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 3085fi 3086if test -z "$CC"; then 3087 if test -n "$ac_tool_prefix"; then 3088 for ac_prog in cl.exe 3089 do 3090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3091set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3093$as_echo_n "checking for $ac_word... " >&6; } 3094if test "${ac_cv_prog_CC+set}" = set; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 if test -n "$CC"; then 3098 ac_cv_prog_CC="$CC" # Let the user override the test. 3099else 3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH 3102do 3103 IFS=$as_save_IFS 3104 test -z "$as_dir" && as_dir=. 3105 for ac_exec_ext in '' $ac_executable_extensions; do 3106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111done 3112 done 3113IFS=$as_save_IFS 3114 3115fi 3116fi 3117CC=$ac_cv_prog_CC 3118if test -n "$CC"; then 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3120$as_echo "$CC" >&6; } 3121else 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3123$as_echo "no" >&6; } 3124fi 3125 3126 3127 test -n "$CC" && break 3128 done 3129fi 3130if test -z "$CC"; then 3131 ac_ct_CC=$CC 3132 for ac_prog in cl.exe 3133do 3134 # Extract the first word of "$ac_prog", so it can be a program name with args. 3135set dummy $ac_prog; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$ac_ct_CC"; then 3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3151 ac_cv_prog_ac_ct_CC="$ac_prog" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161ac_ct_CC=$ac_cv_prog_ac_ct_CC 3162if test -n "$ac_ct_CC"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3164$as_echo "$ac_ct_CC" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 3171 test -n "$ac_ct_CC" && break 3172done 3173 3174 if test "x$ac_ct_CC" = x; then 3175 CC="" 3176 else 3177 case $cross_compiling:$ac_tool_warned in 3178yes:) 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3181ac_tool_warned=yes ;; 3182esac 3183 CC=$ac_ct_CC 3184 fi 3185fi 3186 3187fi 3188 3189 3190test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3192as_fn_error "no acceptable C compiler found in \$PATH 3193See \`config.log' for more details." "$LINENO" 5; } 3194 3195# Provide some information about the compiler. 3196$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3197set X $ac_compile 3198ac_compiler=$2 3199for ac_option in --version -v -V -qversion; do 3200 { { ac_try="$ac_compiler $ac_option >&5" 3201case "(($ac_try" in 3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3203 *) ac_try_echo=$ac_try;; 3204esac 3205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3206$as_echo "$ac_try_echo"; } >&5 3207 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3208 ac_status=$? 3209 if test -s conftest.err; then 3210 sed '10a\ 3211... rest of stderr output deleted ... 3212 10q' conftest.err >conftest.er1 3213 cat conftest.er1 >&5 3214 fi 3215 rm -f conftest.er1 conftest.err 3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; } 3218done 3219 3220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221/* end confdefs.h. */ 3222 3223int 3224main () 3225{ 3226 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231ac_clean_files_save=$ac_clean_files 3232ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3233# Try to create an executable without -o first, disregard a.out. 3234# It will help us diagnose broken compilers, and finding out an intuition 3235# of exeext. 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3237$as_echo_n "checking whether the C compiler works... " >&6; } 3238ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3239 3240# The possible output files: 3241ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3242 3243ac_rmfiles= 3244for ac_file in $ac_files 3245do 3246 case $ac_file in 3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3248 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3249 esac 3250done 3251rm -f $ac_rmfiles 3252 3253if { { ac_try="$ac_link_default" 3254case "(($ac_try" in 3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3256 *) ac_try_echo=$ac_try;; 3257esac 3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3259$as_echo "$ac_try_echo"; } >&5 3260 (eval "$ac_link_default") 2>&5 3261 ac_status=$? 3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3263 test $ac_status = 0; }; then : 3264 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3265# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3266# in a Makefile. We should not override ac_cv_exeext if it was cached, 3267# so that the user can short-circuit this test for compilers unknown to 3268# Autoconf. 3269for ac_file in $ac_files '' 3270do 3271 test -f "$ac_file" || continue 3272 case $ac_file in 3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3274 ;; 3275 [ab].out ) 3276 # We found the default executable, but exeext='' is most 3277 # certainly right. 3278 break;; 3279 *.* ) 3280 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3281 then :; else 3282 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3283 fi 3284 # We set ac_cv_exeext here because the later test for it is not 3285 # safe: cross compilers may not add the suffix if given an `-o' 3286 # argument, so we may need to know it at that point already. 3287 # Even if this section looks crufty: it has the advantage of 3288 # actually working. 3289 break;; 3290 * ) 3291 break;; 3292 esac 3293done 3294test "$ac_cv_exeext" = no && ac_cv_exeext= 3295 3296else 3297 ac_file='' 3298fi 3299if test -z "$ac_file"; then : 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301$as_echo "no" >&6; } 3302$as_echo "$as_me: failed program was:" >&5 3303sed 's/^/| /' conftest.$ac_ext >&5 3304 3305{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3307{ as_fn_set_status 77 3308as_fn_error "C compiler cannot create executables 3309See \`config.log' for more details." "$LINENO" 5; }; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3312$as_echo "yes" >&6; } 3313fi 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3315$as_echo_n "checking for C compiler default output file name... " >&6; } 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3317$as_echo "$ac_file" >&6; } 3318ac_exeext=$ac_cv_exeext 3319 3320rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3321ac_clean_files=$ac_clean_files_save 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3323$as_echo_n "checking for suffix of executables... " >&6; } 3324if { { ac_try="$ac_link" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3330$as_echo "$ac_try_echo"; } >&5 3331 (eval "$ac_link") 2>&5 3332 ac_status=$? 3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3334 test $ac_status = 0; }; then : 3335 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3336# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3337# work properly (i.e., refer to `conftest.exe'), while it won't with 3338# `rm'. 3339for ac_file in conftest.exe conftest conftest.*; do 3340 test -f "$ac_file" || continue 3341 case $ac_file in 3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3344 break;; 3345 * ) break;; 3346 esac 3347done 3348else 3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3351as_fn_error "cannot compute suffix of executables: cannot compile and link 3352See \`config.log' for more details." "$LINENO" 5; } 3353fi 3354rm -f conftest conftest$ac_cv_exeext 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3356$as_echo "$ac_cv_exeext" >&6; } 3357 3358rm -f conftest.$ac_ext 3359EXEEXT=$ac_cv_exeext 3360ac_exeext=$EXEEXT 3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363#include <stdio.h> 3364int 3365main () 3366{ 3367FILE *f = fopen ("conftest.out", "w"); 3368 return ferror (f) || fclose (f) != 0; 3369 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374ac_clean_files="$ac_clean_files conftest.out" 3375# Check that the compiler produces executables we can run. If not, either 3376# the compiler is broken, or we cross compile. 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3378$as_echo_n "checking whether we are cross compiling... " >&6; } 3379if test "$cross_compiling" != yes; then 3380 { { ac_try="$ac_link" 3381case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3386$as_echo "$ac_try_echo"; } >&5 3387 (eval "$ac_link") 2>&5 3388 ac_status=$? 3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3390 test $ac_status = 0; } 3391 if { ac_try='./conftest$ac_cv_exeext' 3392 { { case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397$as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_try") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; }; then 3402 cross_compiling=no 3403 else 3404 if test "$cross_compiling" = maybe; then 3405 cross_compiling=yes 3406 else 3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3409as_fn_error "cannot run C compiled programs. 3410If you meant to cross compile, use \`--host'. 3411See \`config.log' for more details." "$LINENO" 5; } 3412 fi 3413 fi 3414fi 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3416$as_echo "$cross_compiling" >&6; } 3417 3418rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3419ac_clean_files=$ac_clean_files_save 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3421$as_echo_n "checking for suffix of object files... " >&6; } 3422if test "${ac_cv_objext+set}" = set; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436rm -f conftest.o conftest.obj 3437if { { ac_try="$ac_compile" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_compile") 2>&5 3445 ac_status=$? 3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; }; then : 3448 for ac_file in conftest.o conftest.obj conftest.*; do 3449 test -f "$ac_file" || continue; 3450 case $ac_file in 3451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3452 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3453 break;; 3454 esac 3455done 3456else 3457 $as_echo "$as_me: failed program was:" >&5 3458sed 's/^/| /' conftest.$ac_ext >&5 3459 3460{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3462as_fn_error "cannot compute suffix of object files: cannot compile 3463See \`config.log' for more details." "$LINENO" 5; } 3464fi 3465rm -f conftest.$ac_cv_objext conftest.$ac_ext 3466fi 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3468$as_echo "$ac_cv_objext" >&6; } 3469OBJEXT=$ac_cv_objext 3470ac_objext=$OBJEXT 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3472$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3473if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3474 $as_echo_n "(cached) " >&6 3475else 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478 3479int 3480main () 3481{ 3482#ifndef __GNUC__ 3483 choke me 3484#endif 3485 3486 ; 3487 return 0; 3488} 3489_ACEOF 3490if ac_fn_c_try_compile "$LINENO"; then : 3491 ac_compiler_gnu=yes 3492else 3493 ac_compiler_gnu=no 3494fi 3495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3496ac_cv_c_compiler_gnu=$ac_compiler_gnu 3497 3498fi 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3500$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3501if test $ac_compiler_gnu = yes; then 3502 GCC=yes 3503else 3504 GCC= 3505fi 3506ac_test_CFLAGS=${CFLAGS+set} 3507ac_save_CFLAGS=$CFLAGS 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3509$as_echo_n "checking whether $CC accepts -g... " >&6; } 3510if test "${ac_cv_prog_cc_g+set}" = set; then : 3511 $as_echo_n "(cached) " >&6 3512else 3513 ac_save_c_werror_flag=$ac_c_werror_flag 3514 ac_c_werror_flag=yes 3515 ac_cv_prog_cc_g=no 3516 CFLAGS="-g" 3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3518/* end confdefs.h. */ 3519 3520int 3521main () 3522{ 3523 3524 ; 3525 return 0; 3526} 3527_ACEOF 3528if ac_fn_c_try_compile "$LINENO"; then : 3529 ac_cv_prog_cc_g=yes 3530else 3531 CFLAGS="" 3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3533/* end confdefs.h. */ 3534 3535int 3536main () 3537{ 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543if ac_fn_c_try_compile "$LINENO"; then : 3544 3545else 3546 ac_c_werror_flag=$ac_save_c_werror_flag 3547 CFLAGS="-g" 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550 3551int 3552main () 3553{ 3554 3555 ; 3556 return 0; 3557} 3558_ACEOF 3559if ac_fn_c_try_compile "$LINENO"; then : 3560 ac_cv_prog_cc_g=yes 3561fi 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3563fi 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565fi 3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3567 ac_c_werror_flag=$ac_save_c_werror_flag 3568fi 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3570$as_echo "$ac_cv_prog_cc_g" >&6; } 3571if test "$ac_test_CFLAGS" = set; then 3572 CFLAGS=$ac_save_CFLAGS 3573elif test $ac_cv_prog_cc_g = yes; then 3574 if test "$GCC" = yes; then 3575 CFLAGS="-g -O2" 3576 else 3577 CFLAGS="-g" 3578 fi 3579else 3580 if test "$GCC" = yes; then 3581 CFLAGS="-O2" 3582 else 3583 CFLAGS= 3584 fi 3585fi 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3587$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3588if test "${ac_cv_prog_cc_c89+set}" = set; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 ac_cv_prog_cc_c89=no 3592ac_save_CC=$CC 3593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595#include <stdarg.h> 3596#include <stdio.h> 3597#include <sys/types.h> 3598#include <sys/stat.h> 3599/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3600struct buf { int x; }; 3601FILE * (*rcsopen) (struct buf *, struct stat *, int); 3602static char *e (p, i) 3603 char **p; 3604 int i; 3605{ 3606 return p[i]; 3607} 3608static char *f (char * (*g) (char **, int), char **p, ...) 3609{ 3610 char *s; 3611 va_list v; 3612 va_start (v,p); 3613 s = g (p, va_arg (v,int)); 3614 va_end (v); 3615 return s; 3616} 3617 3618/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3619 function prototypes and stuff, but not '\xHH' hex character constants. 3620 These don't provoke an error unfortunately, instead are silently treated 3621 as 'x'. The following induces an error, until -std is added to get 3622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3623 array size at least. It's necessary to write '\x00'==0 to get something 3624 that's true only with -std. */ 3625int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3626 3627/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3628 inside strings and character constants. */ 3629#define FOO(x) 'x' 3630int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3631 3632int test (int i, double x); 3633struct s1 {int (*f) (int a);}; 3634struct s2 {int (*f) (double a);}; 3635int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3636int argc; 3637char **argv; 3638int 3639main () 3640{ 3641return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3642 ; 3643 return 0; 3644} 3645_ACEOF 3646for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3648do 3649 CC="$ac_save_CC $ac_arg" 3650 if ac_fn_c_try_compile "$LINENO"; then : 3651 ac_cv_prog_cc_c89=$ac_arg 3652fi 3653rm -f core conftest.err conftest.$ac_objext 3654 test "x$ac_cv_prog_cc_c89" != "xno" && break 3655done 3656rm -f conftest.$ac_ext 3657CC=$ac_save_CC 3658 3659fi 3660# AC_CACHE_VAL 3661case "x$ac_cv_prog_cc_c89" in 3662 x) 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3664$as_echo "none needed" >&6; } ;; 3665 xno) 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3667$as_echo "unsupported" >&6; } ;; 3668 *) 3669 CC="$CC $ac_cv_prog_cc_c89" 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3671$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3672esac 3673if test "x$ac_cv_prog_cc_c89" != xno; then : 3674 3675fi 3676 3677ac_ext=c 3678ac_cpp='$CPP $CPPFLAGS' 3679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3681ac_compiler_gnu=$ac_cv_c_compiler_gnu 3682 3683depcc="$CC" am_compiler_list= 3684 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3686$as_echo_n "checking dependency style of $depcc... " >&6; } 3687if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3688 $as_echo_n "(cached) " >&6 3689else 3690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3691 # We make a subdir and do the tests there. Otherwise we can end up 3692 # making bogus files that we don't know about and never remove. For 3693 # instance it was reported that on HP-UX the gcc test will end up 3694 # making a dummy file named `D' -- because `-MD' means `put the output 3695 # in D'. 3696 mkdir conftest.dir 3697 # Copy depcomp to subdir because otherwise we won't find it if we're 3698 # using a relative directory. 3699 cp "$am_depcomp" conftest.dir 3700 cd conftest.dir 3701 # We will build objects and dependencies in a subdirectory because 3702 # it helps to detect inapplicable dependency modes. For instance 3703 # both Tru64's cc and ICC support -MD to output dependencies as a 3704 # side effect of compilation, but ICC will put the dependencies in 3705 # the current directory while Tru64 will put them in the object 3706 # directory. 3707 mkdir sub 3708 3709 am_cv_CC_dependencies_compiler_type=none 3710 if test "$am_compiler_list" = ""; then 3711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3712 fi 3713 am__universal=false 3714 case " $depcc " in #( 3715 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3716 esac 3717 3718 for depmode in $am_compiler_list; do 3719 # Setup a source with many dependencies, because some compilers 3720 # like to wrap large dependency lists on column 80 (with \), and 3721 # we should not choose a depcomp mode which is confused by this. 3722 # 3723 # We need to recreate these files for each test, as the compiler may 3724 # overwrite some of them when testing with obscure command lines. 3725 # This happens at least with the AIX C compiler. 3726 : > sub/conftest.c 3727 for i in 1 2 3 4 5 6; do 3728 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3729 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3730 # Solaris 8's {/usr,}/bin/sh. 3731 touch sub/conftst$i.h 3732 done 3733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3734 3735 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3736 # mode. It turns out that the SunPro C++ compiler does not properly 3737 # handle `-M -o', and we need to detect this. Also, some Intel 3738 # versions had trouble with output in subdirs 3739 am__obj=sub/conftest.${OBJEXT-o} 3740 am__minus_obj="-o $am__obj" 3741 case $depmode in 3742 gcc) 3743 # This depmode causes a compiler race in universal mode. 3744 test "$am__universal" = false || continue 3745 ;; 3746 nosideeffect) 3747 # after this tag, mechanisms are not by side-effect, so they'll 3748 # only be used when explicitly requested 3749 if test "x$enable_dependency_tracking" = xyes; then 3750 continue 3751 else 3752 break 3753 fi 3754 ;; 3755 msvisualcpp | msvcmsys) 3756 # This compiler won't grok `-c -o', but also, the minuso test has 3757 # not run yet. These depmodes are late enough in the game, and 3758 # so weak that their functioning should not be impacted. 3759 am__obj=conftest.${OBJEXT-o} 3760 am__minus_obj= 3761 ;; 3762 none) break ;; 3763 esac 3764 if depmode=$depmode \ 3765 source=sub/conftest.c object=$am__obj \ 3766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3767 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3768 >/dev/null 2>conftest.err && 3769 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3771 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3773 # icc doesn't choke on unknown options, it will just issue warnings 3774 # or remarks (even with -Werror). So we grep stderr for any message 3775 # that says an option was ignored or not supported. 3776 # When given -MP, icc 7.0 and 7.1 complain thusly: 3777 # icc: Command line warning: ignoring option '-M'; no argument required 3778 # The diagnosis changed in icc 8.0: 3779 # icc: Command line remark: option '-MP' not supported 3780 if (grep 'ignoring option' conftest.err || 3781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3782 am_cv_CC_dependencies_compiler_type=$depmode 3783 break 3784 fi 3785 fi 3786 done 3787 3788 cd .. 3789 rm -rf conftest.dir 3790else 3791 am_cv_CC_dependencies_compiler_type=none 3792fi 3793 3794fi 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3796$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3797CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3798 3799 if 3800 test "x$enable_dependency_tracking" != xno \ 3801 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3802 am__fastdepCC_TRUE= 3803 am__fastdepCC_FALSE='#' 3804else 3805 am__fastdepCC_TRUE='#' 3806 am__fastdepCC_FALSE= 3807fi 3808 3809 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3811$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3812if test "${ac_cv_prog_cc_c99+set}" = set; then : 3813 $as_echo_n "(cached) " >&6 3814else 3815 ac_cv_prog_cc_c99=no 3816ac_save_CC=$CC 3817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3818/* end confdefs.h. */ 3819#include <stdarg.h> 3820#include <stdbool.h> 3821#include <stdlib.h> 3822#include <wchar.h> 3823#include <stdio.h> 3824 3825// Check varargs macros. These examples are taken from C99 6.10.3.5. 3826#define debug(...) fprintf (stderr, __VA_ARGS__) 3827#define showlist(...) puts (#__VA_ARGS__) 3828#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3829static void 3830test_varargs_macros (void) 3831{ 3832 int x = 1234; 3833 int y = 5678; 3834 debug ("Flag"); 3835 debug ("X = %d\n", x); 3836 showlist (The first, second, and third items.); 3837 report (x>y, "x is %d but y is %d", x, y); 3838} 3839 3840// Check long long types. 3841#define BIG64 18446744073709551615ull 3842#define BIG32 4294967295ul 3843#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3844#if !BIG_OK 3845 your preprocessor is broken; 3846#endif 3847#if BIG_OK 3848#else 3849 your preprocessor is broken; 3850#endif 3851static long long int bignum = -9223372036854775807LL; 3852static unsigned long long int ubignum = BIG64; 3853 3854struct incomplete_array 3855{ 3856 int datasize; 3857 double data[]; 3858}; 3859 3860struct named_init { 3861 int number; 3862 const wchar_t *name; 3863 double average; 3864}; 3865 3866typedef const char *ccp; 3867 3868static inline int 3869test_restrict (ccp restrict text) 3870{ 3871 // See if C++-style comments work. 3872 // Iterate through items via the restricted pointer. 3873 // Also check for declarations in for loops. 3874 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3875 continue; 3876 return 0; 3877} 3878 3879// Check varargs and va_copy. 3880static void 3881test_varargs (const char *format, ...) 3882{ 3883 va_list args; 3884 va_start (args, format); 3885 va_list args_copy; 3886 va_copy (args_copy, args); 3887 3888 const char *str; 3889 int number; 3890 float fnumber; 3891 3892 while (*format) 3893 { 3894 switch (*format++) 3895 { 3896 case 's': // string 3897 str = va_arg (args_copy, const char *); 3898 break; 3899 case 'd': // int 3900 number = va_arg (args_copy, int); 3901 break; 3902 case 'f': // float 3903 fnumber = va_arg (args_copy, double); 3904 break; 3905 default: 3906 break; 3907 } 3908 } 3909 va_end (args_copy); 3910 va_end (args); 3911} 3912 3913int 3914main () 3915{ 3916 3917 // Check bool. 3918 _Bool success = false; 3919 3920 // Check restrict. 3921 if (test_restrict ("String literal") == 0) 3922 success = true; 3923 char *restrict newvar = "Another string"; 3924 3925 // Check varargs. 3926 test_varargs ("s, d' f .", "string", 65, 34.234); 3927 test_varargs_macros (); 3928 3929 // Check flexible array members. 3930 struct incomplete_array *ia = 3931 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3932 ia->datasize = 10; 3933 for (int i = 0; i < ia->datasize; ++i) 3934 ia->data[i] = i * 1.234; 3935 3936 // Check named initializers. 3937 struct named_init ni = { 3938 .number = 34, 3939 .name = L"Test wide string", 3940 .average = 543.34343, 3941 }; 3942 3943 ni.number = 58; 3944 3945 int dynamic_array[ni.number]; 3946 dynamic_array[ni.number - 1] = 543; 3947 3948 // work around unused variable warnings 3949 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3950 || dynamic_array[ni.number - 1] != 543); 3951 3952 ; 3953 return 0; 3954} 3955_ACEOF 3956for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3957do 3958 CC="$ac_save_CC $ac_arg" 3959 if ac_fn_c_try_compile "$LINENO"; then : 3960 ac_cv_prog_cc_c99=$ac_arg 3961fi 3962rm -f core conftest.err conftest.$ac_objext 3963 test "x$ac_cv_prog_cc_c99" != "xno" && break 3964done 3965rm -f conftest.$ac_ext 3966CC=$ac_save_CC 3967 3968fi 3969# AC_CACHE_VAL 3970case "x$ac_cv_prog_cc_c99" in 3971 x) 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3973$as_echo "none needed" >&6; } ;; 3974 xno) 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3976$as_echo "unsupported" >&6; } ;; 3977 *) 3978 CC="$CC $ac_cv_prog_cc_c99" 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3980$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3981esac 3982if test "x$ac_cv_prog_cc_c99" != xno; then : 3983 3984fi 3985 3986 3987 3988ac_ext=c 3989ac_cpp='$CPP $CPPFLAGS' 3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3992ac_compiler_gnu=$ac_cv_c_compiler_gnu 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3994$as_echo_n "checking how to run the C preprocessor... " >&6; } 3995# On Suns, sometimes $CPP names a directory. 3996if test -n "$CPP" && test -d "$CPP"; then 3997 CPP= 3998fi 3999if test -z "$CPP"; then 4000 if test "${ac_cv_prog_CPP+set}" = set; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 # Double quotes because CPP needs to be expanded 4004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4005 do 4006 ac_preproc_ok=false 4007for ac_c_preproc_warn_flag in '' yes 4008do 4009 # Use a header file that comes with gcc, so configuring glibc 4010 # with a fresh cross-compiler works. 4011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4012 # <limits.h> exists even on freestanding compilers. 4013 # On the NeXT, cc -E runs the code through the compiler's parser, 4014 # not just through cpp. "Syntax error" is here to catch this case. 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017#ifdef __STDC__ 4018# include <limits.h> 4019#else 4020# include <assert.h> 4021#endif 4022 Syntax error 4023_ACEOF 4024if ac_fn_c_try_cpp "$LINENO"; then : 4025 4026else 4027 # Broken: fails on valid input. 4028continue 4029fi 4030rm -f conftest.err conftest.$ac_ext 4031 4032 # OK, works on sane cases. Now check whether nonexistent headers 4033 # can be detected and how. 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <ac_nonexistent.h> 4037_ACEOF 4038if ac_fn_c_try_cpp "$LINENO"; then : 4039 # Broken: success on invalid input. 4040continue 4041else 4042 # Passes both tests. 4043ac_preproc_ok=: 4044break 4045fi 4046rm -f conftest.err conftest.$ac_ext 4047 4048done 4049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4050rm -f conftest.err conftest.$ac_ext 4051if $ac_preproc_ok; then : 4052 break 4053fi 4054 4055 done 4056 ac_cv_prog_CPP=$CPP 4057 4058fi 4059 CPP=$ac_cv_prog_CPP 4060else 4061 ac_cv_prog_CPP=$CPP 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4064$as_echo "$CPP" >&6; } 4065ac_preproc_ok=false 4066for ac_c_preproc_warn_flag in '' yes 4067do 4068 # Use a header file that comes with gcc, so configuring glibc 4069 # with a fresh cross-compiler works. 4070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4071 # <limits.h> exists even on freestanding compilers. 4072 # On the NeXT, cc -E runs the code through the compiler's parser, 4073 # not just through cpp. "Syntax error" is here to catch this case. 4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076#ifdef __STDC__ 4077# include <limits.h> 4078#else 4079# include <assert.h> 4080#endif 4081 Syntax error 4082_ACEOF 4083if ac_fn_c_try_cpp "$LINENO"; then : 4084 4085else 4086 # Broken: fails on valid input. 4087continue 4088fi 4089rm -f conftest.err conftest.$ac_ext 4090 4091 # OK, works on sane cases. Now check whether nonexistent headers 4092 # can be detected and how. 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4094/* end confdefs.h. */ 4095#include <ac_nonexistent.h> 4096_ACEOF 4097if ac_fn_c_try_cpp "$LINENO"; then : 4098 # Broken: success on invalid input. 4099continue 4100else 4101 # Passes both tests. 4102ac_preproc_ok=: 4103break 4104fi 4105rm -f conftest.err conftest.$ac_ext 4106 4107done 4108# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4109rm -f conftest.err conftest.$ac_ext 4110if $ac_preproc_ok; then : 4111 4112else 4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4115as_fn_error "C preprocessor \"$CPP\" fails sanity check 4116See \`config.log' for more details." "$LINENO" 5; } 4117fi 4118 4119ac_ext=c 4120ac_cpp='$CPP $CPPFLAGS' 4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4123ac_compiler_gnu=$ac_cv_c_compiler_gnu 4124 4125 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4127$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4128if test "${ac_cv_path_GREP+set}" = set; then : 4129 $as_echo_n "(cached) " >&6 4130else 4131 if test -z "$GREP"; then 4132 ac_path_GREP_found=false 4133 # Loop through the user's path and test for each of PROGNAME-LIST 4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4135for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4136do 4137 IFS=$as_save_IFS 4138 test -z "$as_dir" && as_dir=. 4139 for ac_prog in grep ggrep; do 4140 for ac_exec_ext in '' $ac_executable_extensions; do 4141 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4142 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4143# Check for GNU ac_path_GREP and select it if it is found. 4144 # Check for GNU $ac_path_GREP 4145case `"$ac_path_GREP" --version 2>&1` in 4146*GNU*) 4147 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4148*) 4149 ac_count=0 4150 $as_echo_n 0123456789 >"conftest.in" 4151 while : 4152 do 4153 cat "conftest.in" "conftest.in" >"conftest.tmp" 4154 mv "conftest.tmp" "conftest.in" 4155 cp "conftest.in" "conftest.nl" 4156 $as_echo 'GREP' >> "conftest.nl" 4157 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4158 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4159 as_fn_arith $ac_count + 1 && ac_count=$as_val 4160 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4161 # Best one so far, save it but keep looking for a better one 4162 ac_cv_path_GREP="$ac_path_GREP" 4163 ac_path_GREP_max=$ac_count 4164 fi 4165 # 10*(2^10) chars as input seems more than enough 4166 test $ac_count -gt 10 && break 4167 done 4168 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4169esac 4170 4171 $ac_path_GREP_found && break 3 4172 done 4173 done 4174 done 4175IFS=$as_save_IFS 4176 if test -z "$ac_cv_path_GREP"; then 4177 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4178 fi 4179else 4180 ac_cv_path_GREP=$GREP 4181fi 4182 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4185$as_echo "$ac_cv_path_GREP" >&6; } 4186 GREP="$ac_cv_path_GREP" 4187 4188 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4190$as_echo_n "checking for egrep... " >&6; } 4191if test "${ac_cv_path_EGREP+set}" = set; then : 4192 $as_echo_n "(cached) " >&6 4193else 4194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4195 then ac_cv_path_EGREP="$GREP -E" 4196 else 4197 if test -z "$EGREP"; then 4198 ac_path_EGREP_found=false 4199 # Loop through the user's path and test for each of PROGNAME-LIST 4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4202do 4203 IFS=$as_save_IFS 4204 test -z "$as_dir" && as_dir=. 4205 for ac_prog in egrep; do 4206 for ac_exec_ext in '' $ac_executable_extensions; do 4207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4209# Check for GNU ac_path_EGREP and select it if it is found. 4210 # Check for GNU $ac_path_EGREP 4211case `"$ac_path_EGREP" --version 2>&1` in 4212*GNU*) 4213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4214*) 4215 ac_count=0 4216 $as_echo_n 0123456789 >"conftest.in" 4217 while : 4218 do 4219 cat "conftest.in" "conftest.in" >"conftest.tmp" 4220 mv "conftest.tmp" "conftest.in" 4221 cp "conftest.in" "conftest.nl" 4222 $as_echo 'EGREP' >> "conftest.nl" 4223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4225 as_fn_arith $ac_count + 1 && ac_count=$as_val 4226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4227 # Best one so far, save it but keep looking for a better one 4228 ac_cv_path_EGREP="$ac_path_EGREP" 4229 ac_path_EGREP_max=$ac_count 4230 fi 4231 # 10*(2^10) chars as input seems more than enough 4232 test $ac_count -gt 10 && break 4233 done 4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4235esac 4236 4237 $ac_path_EGREP_found && break 3 4238 done 4239 done 4240 done 4241IFS=$as_save_IFS 4242 if test -z "$ac_cv_path_EGREP"; then 4243 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4244 fi 4245else 4246 ac_cv_path_EGREP=$EGREP 4247fi 4248 4249 fi 4250fi 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4252$as_echo "$ac_cv_path_EGREP" >&6; } 4253 EGREP="$ac_cv_path_EGREP" 4254 4255 4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4257$as_echo_n "checking for ANSI C header files... " >&6; } 4258if test "${ac_cv_header_stdc+set}" = set; then : 4259 $as_echo_n "(cached) " >&6 4260else 4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4262/* end confdefs.h. */ 4263#include <stdlib.h> 4264#include <stdarg.h> 4265#include <string.h> 4266#include <float.h> 4267 4268int 4269main () 4270{ 4271 4272 ; 4273 return 0; 4274} 4275_ACEOF 4276if ac_fn_c_try_compile "$LINENO"; then : 4277 ac_cv_header_stdc=yes 4278else 4279 ac_cv_header_stdc=no 4280fi 4281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4282 4283if test $ac_cv_header_stdc = yes; then 4284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <string.h> 4288 4289_ACEOF 4290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4291 $EGREP "memchr" >/dev/null 2>&1; then : 4292 4293else 4294 ac_cv_header_stdc=no 4295fi 4296rm -f conftest* 4297 4298fi 4299 4300if test $ac_cv_header_stdc = yes; then 4301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304#include <stdlib.h> 4305 4306_ACEOF 4307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4308 $EGREP "free" >/dev/null 2>&1; then : 4309 4310else 4311 ac_cv_header_stdc=no 4312fi 4313rm -f conftest* 4314 4315fi 4316 4317if test $ac_cv_header_stdc = yes; then 4318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4319 if test "$cross_compiling" = yes; then : 4320 : 4321else 4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323/* end confdefs.h. */ 4324#include <ctype.h> 4325#include <stdlib.h> 4326#if ((' ' & 0x0FF) == 0x020) 4327# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4328# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4329#else 4330# define ISLOWER(c) \ 4331 (('a' <= (c) && (c) <= 'i') \ 4332 || ('j' <= (c) && (c) <= 'r') \ 4333 || ('s' <= (c) && (c) <= 'z')) 4334# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4335#endif 4336 4337#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4338int 4339main () 4340{ 4341 int i; 4342 for (i = 0; i < 256; i++) 4343 if (XOR (islower (i), ISLOWER (i)) 4344 || toupper (i) != TOUPPER (i)) 4345 return 2; 4346 return 0; 4347} 4348_ACEOF 4349if ac_fn_c_try_run "$LINENO"; then : 4350 4351else 4352 ac_cv_header_stdc=no 4353fi 4354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4355 conftest.$ac_objext conftest.beam conftest.$ac_ext 4356fi 4357 4358fi 4359fi 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4361$as_echo "$ac_cv_header_stdc" >&6; } 4362if test $ac_cv_header_stdc = yes; then 4363 4364$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4365 4366fi 4367 4368# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4369for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4370 inttypes.h stdint.h unistd.h 4371do : 4372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4373ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4374" 4375eval as_val=\$$as_ac_Header 4376 if test "x$as_val" = x""yes; then : 4377 cat >>confdefs.h <<_ACEOF 4378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4379_ACEOF 4380 4381fi 4382 4383done 4384 4385 4386 4387 4388if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4389 if test -n "$ac_tool_prefix"; then 4390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4391set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4393$as_echo_n "checking for $ac_word... " >&6; } 4394if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 case $PKG_CONFIG in 4398 [\\/]* | ?:[\\/]*) 4399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4400 ;; 4401 *) 4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403for as_dir in $PATH 4404do 4405 IFS=$as_save_IFS 4406 test -z "$as_dir" && as_dir=. 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4411 break 2 4412 fi 4413done 4414 done 4415IFS=$as_save_IFS 4416 4417 ;; 4418esac 4419fi 4420PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4421if test -n "$PKG_CONFIG"; then 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4423$as_echo "$PKG_CONFIG" >&6; } 4424else 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4426$as_echo "no" >&6; } 4427fi 4428 4429 4430fi 4431if test -z "$ac_cv_path_PKG_CONFIG"; then 4432 ac_pt_PKG_CONFIG=$PKG_CONFIG 4433 # Extract the first word of "pkg-config", so it can be a program name with args. 4434set dummy pkg-config; ac_word=$2 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4436$as_echo_n "checking for $ac_word... " >&6; } 4437if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4438 $as_echo_n "(cached) " >&6 4439else 4440 case $ac_pt_PKG_CONFIG in 4441 [\\/]* | ?:[\\/]*) 4442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4443 ;; 4444 *) 4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4446for as_dir in $PATH 4447do 4448 IFS=$as_save_IFS 4449 test -z "$as_dir" && as_dir=. 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4454 break 2 4455 fi 4456done 4457 done 4458IFS=$as_save_IFS 4459 4460 ;; 4461esac 4462fi 4463ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4464if test -n "$ac_pt_PKG_CONFIG"; then 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4466$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4467else 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4469$as_echo "no" >&6; } 4470fi 4471 4472 if test "x$ac_pt_PKG_CONFIG" = x; then 4473 PKG_CONFIG="" 4474 else 4475 case $cross_compiling:$ac_tool_warned in 4476yes:) 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4479ac_tool_warned=yes ;; 4480esac 4481 PKG_CONFIG=$ac_pt_PKG_CONFIG 4482 fi 4483else 4484 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4485fi 4486 4487fi 4488if test -n "$PKG_CONFIG"; then 4489 _pkg_min_version=0.9.0 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4491$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4492 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4494$as_echo "yes" >&6; } 4495 else 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497$as_echo "no" >&6; } 4498 PKG_CONFIG="" 4499 fi 4500 4501fi 4502# Make sure we can run config.sub. 4503$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4504 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4505 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4507$as_echo_n "checking build system type... " >&6; } 4508if test "${ac_cv_build+set}" = set; then : 4509 $as_echo_n "(cached) " >&6 4510else 4511 ac_build_alias=$build_alias 4512test "x$ac_build_alias" = x && 4513 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4514test "x$ac_build_alias" = x && 4515 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4516ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4517 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4518 4519fi 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4521$as_echo "$ac_cv_build" >&6; } 4522case $ac_cv_build in 4523*-*-*) ;; 4524*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4525esac 4526build=$ac_cv_build 4527ac_save_IFS=$IFS; IFS='-' 4528set x $ac_cv_build 4529shift 4530build_cpu=$1 4531build_vendor=$2 4532shift; shift 4533# Remember, the first character of IFS is used to create $*, 4534# except with old shells: 4535build_os=$* 4536IFS=$ac_save_IFS 4537case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4538 4539 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4541$as_echo_n "checking host system type... " >&6; } 4542if test "${ac_cv_host+set}" = set; then : 4543 $as_echo_n "(cached) " >&6 4544else 4545 if test "x$host_alias" = x; then 4546 ac_cv_host=$ac_cv_build 4547else 4548 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4549 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4550fi 4551 4552fi 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4554$as_echo "$ac_cv_host" >&6; } 4555case $ac_cv_host in 4556*-*-*) ;; 4557*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4558esac 4559host=$ac_cv_host 4560ac_save_IFS=$IFS; IFS='-' 4561set x $ac_cv_host 4562shift 4563host_cpu=$1 4564host_vendor=$2 4565shift; shift 4566# Remember, the first character of IFS is used to create $*, 4567# except with old shells: 4568host_os=$* 4569IFS=$ac_save_IFS 4570case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4571 4572 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4574$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4575if test "${ac_cv_path_SED+set}" = set; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4579 for ac_i in 1 2 3 4 5 6 7; do 4580 ac_script="$ac_script$as_nl$ac_script" 4581 done 4582 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4583 { ac_script=; unset ac_script;} 4584 if test -z "$SED"; then 4585 ac_path_SED_found=false 4586 # Loop through the user's path and test for each of PROGNAME-LIST 4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4588for as_dir in $PATH 4589do 4590 IFS=$as_save_IFS 4591 test -z "$as_dir" && as_dir=. 4592 for ac_prog in sed gsed; do 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4595 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4596# Check for GNU ac_path_SED and select it if it is found. 4597 # Check for GNU $ac_path_SED 4598case `"$ac_path_SED" --version 2>&1` in 4599*GNU*) 4600 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4601*) 4602 ac_count=0 4603 $as_echo_n 0123456789 >"conftest.in" 4604 while : 4605 do 4606 cat "conftest.in" "conftest.in" >"conftest.tmp" 4607 mv "conftest.tmp" "conftest.in" 4608 cp "conftest.in" "conftest.nl" 4609 $as_echo '' >> "conftest.nl" 4610 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4612 as_fn_arith $ac_count + 1 && ac_count=$as_val 4613 if test $ac_count -gt ${ac_path_SED_max-0}; then 4614 # Best one so far, save it but keep looking for a better one 4615 ac_cv_path_SED="$ac_path_SED" 4616 ac_path_SED_max=$ac_count 4617 fi 4618 # 10*(2^10) chars as input seems more than enough 4619 test $ac_count -gt 10 && break 4620 done 4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4622esac 4623 4624 $ac_path_SED_found && break 3 4625 done 4626 done 4627 done 4628IFS=$as_save_IFS 4629 if test -z "$ac_cv_path_SED"; then 4630 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4631 fi 4632else 4633 ac_cv_path_SED=$SED 4634fi 4635 4636fi 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4638$as_echo "$ac_cv_path_SED" >&6; } 4639 SED="$ac_cv_path_SED" 4640 rm -f conftest.sed 4641 4642 4643 4644 4645 4646if test "x$GCC" = xyes ; then 4647 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4648-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4649-Wbad-function-cast -Wformat=2" 4650 case `$CC -dumpversion` in 4651 3.4.* | 4.*) 4652 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4653 ;; 4654 esac 4655else 4656 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4657if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4658 SUNCC="yes" 4659else 4660 SUNCC="no" 4661fi 4662 4663 if test "x$SUNCC" = "xyes"; then 4664 CWARNFLAGS="-v" 4665 fi 4666fi 4667 4668 4669 4670# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4671 4672 4673 4674# Check whether --enable-strict-compilation was given. 4675if test "${enable_strict_compilation+set}" = set; then : 4676 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4677else 4678 STRICT_COMPILE=no 4679fi 4680 4681if test "x$STRICT_COMPILE" = "xyes"; then 4682 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4683if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4684 SUNCC="yes" 4685else 4686 SUNCC="no" 4687fi 4688 4689 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4690if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 4691 INTELCC="yes" 4692else 4693 INTELCC="no" 4694fi 4695 4696 if test "x$GCC" = xyes ; then 4697 STRICT_CFLAGS="-pedantic -Werror" 4698 elif test "x$SUNCC" = "xyes"; then 4699 STRICT_CFLAGS="-errwarn" 4700 elif test "x$INTELCC" = "xyes"; then 4701 STRICT_CFLAGS="-Werror" 4702 fi 4703fi 4704CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4705 4706 4707 4708 4709cat >>confdefs.h <<_ACEOF 4710#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4711_ACEOF 4712 4713 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4714 if test "x$PVM" = "x"; then 4715 PVM="0" 4716 fi 4717 4718cat >>confdefs.h <<_ACEOF 4719#define PACKAGE_VERSION_MINOR $PVM 4720_ACEOF 4721 4722 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4723 if test "x$PVP" = "x"; then 4724 PVP="0" 4725 fi 4726 4727cat >>confdefs.h <<_ACEOF 4728#define PACKAGE_VERSION_PATCHLEVEL $PVP 4729_ACEOF 4730 4731 4732 4733CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4734mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4735|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4736echo 'git directory not found: installing possibly empty changelog.' >&2)" 4737 4738 4739 4740 4741macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4742INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4743mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4744|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4745echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4746 4747 4748 4749 4750 4751 4752if test x$APP_MAN_SUFFIX = x ; then 4753 APP_MAN_SUFFIX=1 4754fi 4755if test x$APP_MAN_DIR = x ; then 4756 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4757fi 4758 4759if test x$LIB_MAN_SUFFIX = x ; then 4760 LIB_MAN_SUFFIX=3 4761fi 4762if test x$LIB_MAN_DIR = x ; then 4763 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4764fi 4765 4766if test x$FILE_MAN_SUFFIX = x ; then 4767 case $host_os in 4768 solaris*) FILE_MAN_SUFFIX=4 ;; 4769 *) FILE_MAN_SUFFIX=5 ;; 4770 esac 4771fi 4772if test x$FILE_MAN_DIR = x ; then 4773 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4774fi 4775 4776if test x$MISC_MAN_SUFFIX = x ; then 4777 case $host_os in 4778 solaris*) MISC_MAN_SUFFIX=5 ;; 4779 *) MISC_MAN_SUFFIX=7 ;; 4780 esac 4781fi 4782if test x$MISC_MAN_DIR = x ; then 4783 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4784fi 4785 4786if test x$DRIVER_MAN_SUFFIX = x ; then 4787 case $host_os in 4788 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4789 *) DRIVER_MAN_SUFFIX=4 ;; 4790 esac 4791fi 4792if test x$DRIVER_MAN_DIR = x ; then 4793 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4794fi 4795 4796if test x$ADMIN_MAN_SUFFIX = x ; then 4797 case $host_os in 4798 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4799 *) ADMIN_MAN_SUFFIX=8 ;; 4800 esac 4801fi 4802if test x$ADMIN_MAN_DIR = x ; then 4803 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4804fi 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820XORG_MAN_PAGE="X Version 11" 4821 4822MAN_SUBSTS="\ 4823 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4824 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4825 -e 's|__xservername__|Xorg|g' \ 4826 -e 's|__xconfigfile__|xorg.conf|g' \ 4827 -e 's|__projectroot__|\$(prefix)|g' \ 4828 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4829 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4830 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4831 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4832 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4833 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4834 4835 4836 4837# Check whether --enable-silent-rules was given. 4838if test "${enable_silent_rules+set}" = set; then : 4839 enableval=$enable_silent_rules; 4840fi 4841 4842case $enable_silent_rules in 4843yes) AM_DEFAULT_VERBOSITY=0;; 4844no) AM_DEFAULT_VERBOSITY=1;; 4845*) AM_DEFAULT_VERBOSITY=0;; 4846esac 4847AM_BACKSLASH='\' 4848 4849 4850ac_config_headers="$ac_config_headers config.h" 4851 4852 4853# Check for progs 4854ac_ext=c 4855ac_cpp='$CPP $CPPFLAGS' 4856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4858ac_compiler_gnu=$ac_cv_c_compiler_gnu 4859if test -n "$ac_tool_prefix"; then 4860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4861set dummy ${ac_tool_prefix}gcc; ac_word=$2 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4863$as_echo_n "checking for $ac_word... " >&6; } 4864if test "${ac_cv_prog_CC+set}" = set; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 if test -n "$CC"; then 4868 ac_cv_prog_CC="$CC" # Let the user override the test. 4869else 4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871for as_dir in $PATH 4872do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4877 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4879 break 2 4880 fi 4881done 4882 done 4883IFS=$as_save_IFS 4884 4885fi 4886fi 4887CC=$ac_cv_prog_CC 4888if test -n "$CC"; then 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4890$as_echo "$CC" >&6; } 4891else 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4893$as_echo "no" >&6; } 4894fi 4895 4896 4897fi 4898if test -z "$ac_cv_prog_CC"; then 4899 ac_ct_CC=$CC 4900 # Extract the first word of "gcc", so it can be a program name with args. 4901set dummy gcc; ac_word=$2 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4903$as_echo_n "checking for $ac_word... " >&6; } 4904if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4905 $as_echo_n "(cached) " >&6 4906else 4907 if test -n "$ac_ct_CC"; then 4908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4909else 4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4911for as_dir in $PATH 4912do 4913 IFS=$as_save_IFS 4914 test -z "$as_dir" && as_dir=. 4915 for ac_exec_ext in '' $ac_executable_extensions; do 4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4917 ac_cv_prog_ac_ct_CC="gcc" 4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4919 break 2 4920 fi 4921done 4922 done 4923IFS=$as_save_IFS 4924 4925fi 4926fi 4927ac_ct_CC=$ac_cv_prog_ac_ct_CC 4928if test -n "$ac_ct_CC"; then 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4930$as_echo "$ac_ct_CC" >&6; } 4931else 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4933$as_echo "no" >&6; } 4934fi 4935 4936 if test "x$ac_ct_CC" = x; then 4937 CC="" 4938 else 4939 case $cross_compiling:$ac_tool_warned in 4940yes:) 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4943ac_tool_warned=yes ;; 4944esac 4945 CC=$ac_ct_CC 4946 fi 4947else 4948 CC="$ac_cv_prog_CC" 4949fi 4950 4951if test -z "$CC"; then 4952 if test -n "$ac_tool_prefix"; then 4953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4954set dummy ${ac_tool_prefix}cc; ac_word=$2 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4956$as_echo_n "checking for $ac_word... " >&6; } 4957if test "${ac_cv_prog_CC+set}" = set; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 if test -n "$CC"; then 4961 ac_cv_prog_CC="$CC" # Let the user override the test. 4962else 4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964for as_dir in $PATH 4965do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4970 ac_cv_prog_CC="${ac_tool_prefix}cc" 4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4972 break 2 4973 fi 4974done 4975 done 4976IFS=$as_save_IFS 4977 4978fi 4979fi 4980CC=$ac_cv_prog_CC 4981if test -n "$CC"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4983$as_echo "$CC" >&6; } 4984else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986$as_echo "no" >&6; } 4987fi 4988 4989 4990 fi 4991fi 4992if test -z "$CC"; then 4993 # Extract the first word of "cc", so it can be a program name with args. 4994set dummy cc; ac_word=$2 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4996$as_echo_n "checking for $ac_word... " >&6; } 4997if test "${ac_cv_prog_CC+set}" = set; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 if test -n "$CC"; then 5001 ac_cv_prog_CC="$CC" # Let the user override the test. 5002else 5003 ac_prog_rejected=no 5004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5005for as_dir in $PATH 5006do 5007 IFS=$as_save_IFS 5008 test -z "$as_dir" && as_dir=. 5009 for ac_exec_ext in '' $ac_executable_extensions; do 5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5012 ac_prog_rejected=yes 5013 continue 5014 fi 5015 ac_cv_prog_CC="cc" 5016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5017 break 2 5018 fi 5019done 5020 done 5021IFS=$as_save_IFS 5022 5023if test $ac_prog_rejected = yes; then 5024 # We found a bogon in the path, so make sure we never use it. 5025 set dummy $ac_cv_prog_CC 5026 shift 5027 if test $# != 0; then 5028 # We chose a different compiler from the bogus one. 5029 # However, it has the same basename, so the bogon will be chosen 5030 # first if we set CC to just the basename; use the full file name. 5031 shift 5032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5033 fi 5034fi 5035fi 5036fi 5037CC=$ac_cv_prog_CC 5038if test -n "$CC"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5040$as_echo "$CC" >&6; } 5041else 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5043$as_echo "no" >&6; } 5044fi 5045 5046 5047fi 5048if test -z "$CC"; then 5049 if test -n "$ac_tool_prefix"; then 5050 for ac_prog in cl.exe 5051 do 5052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5053set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5055$as_echo_n "checking for $ac_word... " >&6; } 5056if test "${ac_cv_prog_CC+set}" = set; then : 5057 $as_echo_n "(cached) " >&6 5058else 5059 if test -n "$CC"; then 5060 ac_cv_prog_CC="$CC" # Let the user override the test. 5061else 5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5063for as_dir in $PATH 5064do 5065 IFS=$as_save_IFS 5066 test -z "$as_dir" && as_dir=. 5067 for ac_exec_ext in '' $ac_executable_extensions; do 5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5071 break 2 5072 fi 5073done 5074 done 5075IFS=$as_save_IFS 5076 5077fi 5078fi 5079CC=$ac_cv_prog_CC 5080if test -n "$CC"; then 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5082$as_echo "$CC" >&6; } 5083else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5085$as_echo "no" >&6; } 5086fi 5087 5088 5089 test -n "$CC" && break 5090 done 5091fi 5092if test -z "$CC"; then 5093 ac_ct_CC=$CC 5094 for ac_prog in cl.exe 5095do 5096 # Extract the first word of "$ac_prog", so it can be a program name with args. 5097set dummy $ac_prog; ac_word=$2 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5099$as_echo_n "checking for $ac_word... " >&6; } 5100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 if test -n "$ac_ct_CC"; then 5104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5105else 5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5107for as_dir in $PATH 5108do 5109 IFS=$as_save_IFS 5110 test -z "$as_dir" && as_dir=. 5111 for ac_exec_ext in '' $ac_executable_extensions; do 5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5113 ac_cv_prog_ac_ct_CC="$ac_prog" 5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5115 break 2 5116 fi 5117done 5118 done 5119IFS=$as_save_IFS 5120 5121fi 5122fi 5123ac_ct_CC=$ac_cv_prog_ac_ct_CC 5124if test -n "$ac_ct_CC"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5126$as_echo "$ac_ct_CC" >&6; } 5127else 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129$as_echo "no" >&6; } 5130fi 5131 5132 5133 test -n "$ac_ct_CC" && break 5134done 5135 5136 if test "x$ac_ct_CC" = x; then 5137 CC="" 5138 else 5139 case $cross_compiling:$ac_tool_warned in 5140yes:) 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5143ac_tool_warned=yes ;; 5144esac 5145 CC=$ac_ct_CC 5146 fi 5147fi 5148 5149fi 5150 5151 5152test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5154as_fn_error "no acceptable C compiler found in \$PATH 5155See \`config.log' for more details." "$LINENO" 5; } 5156 5157# Provide some information about the compiler. 5158$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5159set X $ac_compile 5160ac_compiler=$2 5161for ac_option in --version -v -V -qversion; do 5162 { { ac_try="$ac_compiler $ac_option >&5" 5163case "(($ac_try" in 5164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5165 *) ac_try_echo=$ac_try;; 5166esac 5167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5168$as_echo "$ac_try_echo"; } >&5 5169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5170 ac_status=$? 5171 if test -s conftest.err; then 5172 sed '10a\ 5173... rest of stderr output deleted ... 5174 10q' conftest.err >conftest.er1 5175 cat conftest.er1 >&5 5176 fi 5177 rm -f conftest.er1 conftest.err 5178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5179 test $ac_status = 0; } 5180done 5181 5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5183$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5184if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5185 $as_echo_n "(cached) " >&6 5186else 5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188/* end confdefs.h. */ 5189 5190int 5191main () 5192{ 5193#ifndef __GNUC__ 5194 choke me 5195#endif 5196 5197 ; 5198 return 0; 5199} 5200_ACEOF 5201if ac_fn_c_try_compile "$LINENO"; then : 5202 ac_compiler_gnu=yes 5203else 5204 ac_compiler_gnu=no 5205fi 5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5207ac_cv_c_compiler_gnu=$ac_compiler_gnu 5208 5209fi 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5211$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5212if test $ac_compiler_gnu = yes; then 5213 GCC=yes 5214else 5215 GCC= 5216fi 5217ac_test_CFLAGS=${CFLAGS+set} 5218ac_save_CFLAGS=$CFLAGS 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5220$as_echo_n "checking whether $CC accepts -g... " >&6; } 5221if test "${ac_cv_prog_cc_g+set}" = set; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 ac_save_c_werror_flag=$ac_c_werror_flag 5225 ac_c_werror_flag=yes 5226 ac_cv_prog_cc_g=no 5227 CFLAGS="-g" 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5229/* end confdefs.h. */ 5230 5231int 5232main () 5233{ 5234 5235 ; 5236 return 0; 5237} 5238_ACEOF 5239if ac_fn_c_try_compile "$LINENO"; then : 5240 ac_cv_prog_cc_g=yes 5241else 5242 CFLAGS="" 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245 5246int 5247main () 5248{ 5249 5250 ; 5251 return 0; 5252} 5253_ACEOF 5254if ac_fn_c_try_compile "$LINENO"; then : 5255 5256else 5257 ac_c_werror_flag=$ac_save_c_werror_flag 5258 CFLAGS="-g" 5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261 5262int 5263main () 5264{ 5265 5266 ; 5267 return 0; 5268} 5269_ACEOF 5270if ac_fn_c_try_compile "$LINENO"; then : 5271 ac_cv_prog_cc_g=yes 5272fi 5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5274fi 5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5276fi 5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5278 ac_c_werror_flag=$ac_save_c_werror_flag 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5281$as_echo "$ac_cv_prog_cc_g" >&6; } 5282if test "$ac_test_CFLAGS" = set; then 5283 CFLAGS=$ac_save_CFLAGS 5284elif test $ac_cv_prog_cc_g = yes; then 5285 if test "$GCC" = yes; then 5286 CFLAGS="-g -O2" 5287 else 5288 CFLAGS="-g" 5289 fi 5290else 5291 if test "$GCC" = yes; then 5292 CFLAGS="-O2" 5293 else 5294 CFLAGS= 5295 fi 5296fi 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5298$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5299if test "${ac_cv_prog_cc_c89+set}" = set; then : 5300 $as_echo_n "(cached) " >&6 5301else 5302 ac_cv_prog_cc_c89=no 5303ac_save_CC=$CC 5304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306#include <stdarg.h> 5307#include <stdio.h> 5308#include <sys/types.h> 5309#include <sys/stat.h> 5310/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5311struct buf { int x; }; 5312FILE * (*rcsopen) (struct buf *, struct stat *, int); 5313static char *e (p, i) 5314 char **p; 5315 int i; 5316{ 5317 return p[i]; 5318} 5319static char *f (char * (*g) (char **, int), char **p, ...) 5320{ 5321 char *s; 5322 va_list v; 5323 va_start (v,p); 5324 s = g (p, va_arg (v,int)); 5325 va_end (v); 5326 return s; 5327} 5328 5329/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5330 function prototypes and stuff, but not '\xHH' hex character constants. 5331 These don't provoke an error unfortunately, instead are silently treated 5332 as 'x'. The following induces an error, until -std is added to get 5333 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5334 array size at least. It's necessary to write '\x00'==0 to get something 5335 that's true only with -std. */ 5336int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5337 5338/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5339 inside strings and character constants. */ 5340#define FOO(x) 'x' 5341int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5342 5343int test (int i, double x); 5344struct s1 {int (*f) (int a);}; 5345struct s2 {int (*f) (double a);}; 5346int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5347int argc; 5348char **argv; 5349int 5350main () 5351{ 5352return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5353 ; 5354 return 0; 5355} 5356_ACEOF 5357for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5358 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5359do 5360 CC="$ac_save_CC $ac_arg" 5361 if ac_fn_c_try_compile "$LINENO"; then : 5362 ac_cv_prog_cc_c89=$ac_arg 5363fi 5364rm -f core conftest.err conftest.$ac_objext 5365 test "x$ac_cv_prog_cc_c89" != "xno" && break 5366done 5367rm -f conftest.$ac_ext 5368CC=$ac_save_CC 5369 5370fi 5371# AC_CACHE_VAL 5372case "x$ac_cv_prog_cc_c89" in 5373 x) 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5375$as_echo "none needed" >&6; } ;; 5376 xno) 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5378$as_echo "unsupported" >&6; } ;; 5379 *) 5380 CC="$CC $ac_cv_prog_cc_c89" 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5382$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5383esac 5384if test "x$ac_cv_prog_cc_c89" != xno; then : 5385 5386fi 5387 5388ac_ext=c 5389ac_cpp='$CPP $CPPFLAGS' 5390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5392ac_compiler_gnu=$ac_cv_c_compiler_gnu 5393 5394depcc="$CC" am_compiler_list= 5395 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5397$as_echo_n "checking dependency style of $depcc... " >&6; } 5398if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5402 # We make a subdir and do the tests there. Otherwise we can end up 5403 # making bogus files that we don't know about and never remove. For 5404 # instance it was reported that on HP-UX the gcc test will end up 5405 # making a dummy file named `D' -- because `-MD' means `put the output 5406 # in D'. 5407 mkdir conftest.dir 5408 # Copy depcomp to subdir because otherwise we won't find it if we're 5409 # using a relative directory. 5410 cp "$am_depcomp" conftest.dir 5411 cd conftest.dir 5412 # We will build objects and dependencies in a subdirectory because 5413 # it helps to detect inapplicable dependency modes. For instance 5414 # both Tru64's cc and ICC support -MD to output dependencies as a 5415 # side effect of compilation, but ICC will put the dependencies in 5416 # the current directory while Tru64 will put them in the object 5417 # directory. 5418 mkdir sub 5419 5420 am_cv_CC_dependencies_compiler_type=none 5421 if test "$am_compiler_list" = ""; then 5422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5423 fi 5424 am__universal=false 5425 case " $depcc " in #( 5426 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5427 esac 5428 5429 for depmode in $am_compiler_list; do 5430 # Setup a source with many dependencies, because some compilers 5431 # like to wrap large dependency lists on column 80 (with \), and 5432 # we should not choose a depcomp mode which is confused by this. 5433 # 5434 # We need to recreate these files for each test, as the compiler may 5435 # overwrite some of them when testing with obscure command lines. 5436 # This happens at least with the AIX C compiler. 5437 : > sub/conftest.c 5438 for i in 1 2 3 4 5 6; do 5439 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5440 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5441 # Solaris 8's {/usr,}/bin/sh. 5442 touch sub/conftst$i.h 5443 done 5444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5445 5446 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5447 # mode. It turns out that the SunPro C++ compiler does not properly 5448 # handle `-M -o', and we need to detect this. Also, some Intel 5449 # versions had trouble with output in subdirs 5450 am__obj=sub/conftest.${OBJEXT-o} 5451 am__minus_obj="-o $am__obj" 5452 case $depmode in 5453 gcc) 5454 # This depmode causes a compiler race in universal mode. 5455 test "$am__universal" = false || continue 5456 ;; 5457 nosideeffect) 5458 # after this tag, mechanisms are not by side-effect, so they'll 5459 # only be used when explicitly requested 5460 if test "x$enable_dependency_tracking" = xyes; then 5461 continue 5462 else 5463 break 5464 fi 5465 ;; 5466 msvisualcpp | msvcmsys) 5467 # This compiler won't grok `-c -o', but also, the minuso test has 5468 # not run yet. These depmodes are late enough in the game, and 5469 # so weak that their functioning should not be impacted. 5470 am__obj=conftest.${OBJEXT-o} 5471 am__minus_obj= 5472 ;; 5473 none) break ;; 5474 esac 5475 if depmode=$depmode \ 5476 source=sub/conftest.c object=$am__obj \ 5477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5479 >/dev/null 2>conftest.err && 5480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5484 # icc doesn't choke on unknown options, it will just issue warnings 5485 # or remarks (even with -Werror). So we grep stderr for any message 5486 # that says an option was ignored or not supported. 5487 # When given -MP, icc 7.0 and 7.1 complain thusly: 5488 # icc: Command line warning: ignoring option '-M'; no argument required 5489 # The diagnosis changed in icc 8.0: 5490 # icc: Command line remark: option '-MP' not supported 5491 if (grep 'ignoring option' conftest.err || 5492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5493 am_cv_CC_dependencies_compiler_type=$depmode 5494 break 5495 fi 5496 fi 5497 done 5498 5499 cd .. 5500 rm -rf conftest.dir 5501else 5502 am_cv_CC_dependencies_compiler_type=none 5503fi 5504 5505fi 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5507$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5508CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5509 5510 if 5511 test "x$enable_dependency_tracking" != xno \ 5512 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5513 am__fastdepCC_TRUE= 5514 am__fastdepCC_FALSE='#' 5515else 5516 am__fastdepCC_TRUE='#' 5517 am__fastdepCC_FALSE= 5518fi 5519 5520 5521case `pwd` in 5522 *\ * | *\ *) 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5524$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5525esac 5526 5527 5528 5529macro_version='2.2.6b' 5530macro_revision='1.3017' 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544ltmain="$ac_aux_dir/ltmain.sh" 5545 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5547$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5548if test "${ac_cv_path_SED+set}" = set; then : 5549 $as_echo_n "(cached) " >&6 5550else 5551 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5552 for ac_i in 1 2 3 4 5 6 7; do 5553 ac_script="$ac_script$as_nl$ac_script" 5554 done 5555 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5556 { ac_script=; unset ac_script;} 5557 if test -z "$SED"; then 5558 ac_path_SED_found=false 5559 # Loop through the user's path and test for each of PROGNAME-LIST 5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5561for as_dir in $PATH 5562do 5563 IFS=$as_save_IFS 5564 test -z "$as_dir" && as_dir=. 5565 for ac_prog in sed gsed; do 5566 for ac_exec_ext in '' $ac_executable_extensions; do 5567 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5568 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5569# Check for GNU ac_path_SED and select it if it is found. 5570 # Check for GNU $ac_path_SED 5571case `"$ac_path_SED" --version 2>&1` in 5572*GNU*) 5573 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5574*) 5575 ac_count=0 5576 $as_echo_n 0123456789 >"conftest.in" 5577 while : 5578 do 5579 cat "conftest.in" "conftest.in" >"conftest.tmp" 5580 mv "conftest.tmp" "conftest.in" 5581 cp "conftest.in" "conftest.nl" 5582 $as_echo '' >> "conftest.nl" 5583 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5585 as_fn_arith $ac_count + 1 && ac_count=$as_val 5586 if test $ac_count -gt ${ac_path_SED_max-0}; then 5587 # Best one so far, save it but keep looking for a better one 5588 ac_cv_path_SED="$ac_path_SED" 5589 ac_path_SED_max=$ac_count 5590 fi 5591 # 10*(2^10) chars as input seems more than enough 5592 test $ac_count -gt 10 && break 5593 done 5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5595esac 5596 5597 $ac_path_SED_found && break 3 5598 done 5599 done 5600 done 5601IFS=$as_save_IFS 5602 if test -z "$ac_cv_path_SED"; then 5603 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5604 fi 5605else 5606 ac_cv_path_SED=$SED 5607fi 5608 5609fi 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5611$as_echo "$ac_cv_path_SED" >&6; } 5612 SED="$ac_cv_path_SED" 5613 rm -f conftest.sed 5614 5615test -z "$SED" && SED=sed 5616Xsed="$SED -e 1s/^X//" 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5629$as_echo_n "checking for fgrep... " >&6; } 5630if test "${ac_cv_path_FGREP+set}" = set; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5634 then ac_cv_path_FGREP="$GREP -F" 5635 else 5636 if test -z "$FGREP"; then 5637 ac_path_FGREP_found=false 5638 # Loop through the user's path and test for each of PROGNAME-LIST 5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5641do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_prog in fgrep; do 5645 for ac_exec_ext in '' $ac_executable_extensions; do 5646 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5647 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5648# Check for GNU ac_path_FGREP and select it if it is found. 5649 # Check for GNU $ac_path_FGREP 5650case `"$ac_path_FGREP" --version 2>&1` in 5651*GNU*) 5652 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5653*) 5654 ac_count=0 5655 $as_echo_n 0123456789 >"conftest.in" 5656 while : 5657 do 5658 cat "conftest.in" "conftest.in" >"conftest.tmp" 5659 mv "conftest.tmp" "conftest.in" 5660 cp "conftest.in" "conftest.nl" 5661 $as_echo 'FGREP' >> "conftest.nl" 5662 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5664 as_fn_arith $ac_count + 1 && ac_count=$as_val 5665 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5666 # Best one so far, save it but keep looking for a better one 5667 ac_cv_path_FGREP="$ac_path_FGREP" 5668 ac_path_FGREP_max=$ac_count 5669 fi 5670 # 10*(2^10) chars as input seems more than enough 5671 test $ac_count -gt 10 && break 5672 done 5673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5674esac 5675 5676 $ac_path_FGREP_found && break 3 5677 done 5678 done 5679 done 5680IFS=$as_save_IFS 5681 if test -z "$ac_cv_path_FGREP"; then 5682 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5683 fi 5684else 5685 ac_cv_path_FGREP=$FGREP 5686fi 5687 5688 fi 5689fi 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5691$as_echo "$ac_cv_path_FGREP" >&6; } 5692 FGREP="$ac_cv_path_FGREP" 5693 5694 5695test -z "$GREP" && GREP=grep 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715# Check whether --with-gnu-ld was given. 5716if test "${with_gnu_ld+set}" = set; then : 5717 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5718else 5719 with_gnu_ld=no 5720fi 5721 5722ac_prog=ld 5723if test "$GCC" = yes; then 5724 # Check if gcc -print-prog-name=ld gives a path. 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5726$as_echo_n "checking for ld used by $CC... " >&6; } 5727 case $host in 5728 *-*-mingw*) 5729 # gcc leaves a trailing carriage return which upsets mingw 5730 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5731 *) 5732 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5733 esac 5734 case $ac_prog in 5735 # Accept absolute paths. 5736 [\\/]* | ?:[\\/]*) 5737 re_direlt='/[^/][^/]*/\.\./' 5738 # Canonicalize the pathname of ld 5739 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5740 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5741 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5742 done 5743 test -z "$LD" && LD="$ac_prog" 5744 ;; 5745 "") 5746 # If it fails, then pretend we aren't using GCC. 5747 ac_prog=ld 5748 ;; 5749 *) 5750 # If it is relative, then search for the first ld in PATH. 5751 with_gnu_ld=unknown 5752 ;; 5753 esac 5754elif test "$with_gnu_ld" = yes; then 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5756$as_echo_n "checking for GNU ld... " >&6; } 5757else 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5759$as_echo_n "checking for non-GNU ld... " >&6; } 5760fi 5761if test "${lt_cv_path_LD+set}" = set; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -z "$LD"; then 5765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5766 for ac_dir in $PATH; do 5767 IFS="$lt_save_ifs" 5768 test -z "$ac_dir" && ac_dir=. 5769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5770 lt_cv_path_LD="$ac_dir/$ac_prog" 5771 # Check to see if the program is GNU ld. I'd rather use --version, 5772 # but apparently some variants of GNU ld only accept -v. 5773 # Break only if it was the GNU/non-GNU ld that we prefer. 5774 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5775 *GNU* | *'with BFD'*) 5776 test "$with_gnu_ld" != no && break 5777 ;; 5778 *) 5779 test "$with_gnu_ld" != yes && break 5780 ;; 5781 esac 5782 fi 5783 done 5784 IFS="$lt_save_ifs" 5785else 5786 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5787fi 5788fi 5789 5790LD="$lt_cv_path_LD" 5791if test -n "$LD"; then 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5793$as_echo "$LD" >&6; } 5794else 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5796$as_echo "no" >&6; } 5797fi 5798test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5800$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5801if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5805case `$LD -v 2>&1 </dev/null` in 5806*GNU* | *'with BFD'*) 5807 lt_cv_prog_gnu_ld=yes 5808 ;; 5809*) 5810 lt_cv_prog_gnu_ld=no 5811 ;; 5812esac 5813fi 5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5815$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5816with_gnu_ld=$lt_cv_prog_gnu_ld 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5827$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5828if test "${lt_cv_path_NM+set}" = set; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 if test -n "$NM"; then 5832 # Let the user override the test. 5833 lt_cv_path_NM="$NM" 5834else 5835 lt_nm_to_check="${ac_tool_prefix}nm" 5836 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5837 lt_nm_to_check="$lt_nm_to_check nm" 5838 fi 5839 for lt_tmp_nm in $lt_nm_to_check; do 5840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5841 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5842 IFS="$lt_save_ifs" 5843 test -z "$ac_dir" && ac_dir=. 5844 tmp_nm="$ac_dir/$lt_tmp_nm" 5845 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5846 # Check to see if the nm accepts a BSD-compat flag. 5847 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5848 # nm: unknown option "B" ignored 5849 # Tru64's nm complains that /dev/null is an invalid object file 5850 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5851 */dev/null* | *'Invalid file or object type'*) 5852 lt_cv_path_NM="$tmp_nm -B" 5853 break 5854 ;; 5855 *) 5856 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5857 */dev/null*) 5858 lt_cv_path_NM="$tmp_nm -p" 5859 break 5860 ;; 5861 *) 5862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5863 continue # so that we can try to find one that supports BSD flags 5864 ;; 5865 esac 5866 ;; 5867 esac 5868 fi 5869 done 5870 IFS="$lt_save_ifs" 5871 done 5872 : ${lt_cv_path_NM=no} 5873fi 5874fi 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5876$as_echo "$lt_cv_path_NM" >&6; } 5877if test "$lt_cv_path_NM" != "no"; then 5878 NM="$lt_cv_path_NM" 5879else 5880 # Didn't find any BSD compatible name lister, look for dumpbin. 5881 if test -n "$ac_tool_prefix"; then 5882 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5883 do 5884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5885set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5887$as_echo_n "checking for $ac_word... " >&6; } 5888if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 if test -n "$DUMPBIN"; then 5892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5893else 5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5895for as_dir in $PATH 5896do 5897 IFS=$as_save_IFS 5898 test -z "$as_dir" && as_dir=. 5899 for ac_exec_ext in '' $ac_executable_extensions; do 5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5901 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5903 break 2 5904 fi 5905done 5906 done 5907IFS=$as_save_IFS 5908 5909fi 5910fi 5911DUMPBIN=$ac_cv_prog_DUMPBIN 5912if test -n "$DUMPBIN"; then 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5914$as_echo "$DUMPBIN" >&6; } 5915else 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5917$as_echo "no" >&6; } 5918fi 5919 5920 5921 test -n "$DUMPBIN" && break 5922 done 5923fi 5924if test -z "$DUMPBIN"; then 5925 ac_ct_DUMPBIN=$DUMPBIN 5926 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5927do 5928 # Extract the first word of "$ac_prog", so it can be a program name with args. 5929set dummy $ac_prog; ac_word=$2 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5931$as_echo_n "checking for $ac_word... " >&6; } 5932if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5933 $as_echo_n "(cached) " >&6 5934else 5935 if test -n "$ac_ct_DUMPBIN"; then 5936 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5937else 5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939for as_dir in $PATH 5940do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 break 2 5948 fi 5949done 5950 done 5951IFS=$as_save_IFS 5952 5953fi 5954fi 5955ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5956if test -n "$ac_ct_DUMPBIN"; then 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5958$as_echo "$ac_ct_DUMPBIN" >&6; } 5959else 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5961$as_echo "no" >&6; } 5962fi 5963 5964 5965 test -n "$ac_ct_DUMPBIN" && break 5966done 5967 5968 if test "x$ac_ct_DUMPBIN" = x; then 5969 DUMPBIN=":" 5970 else 5971 case $cross_compiling:$ac_tool_warned in 5972yes:) 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5975ac_tool_warned=yes ;; 5976esac 5977 DUMPBIN=$ac_ct_DUMPBIN 5978 fi 5979fi 5980 5981 5982 if test "$DUMPBIN" != ":"; then 5983 NM="$DUMPBIN" 5984 fi 5985fi 5986test -z "$NM" && NM=nm 5987 5988 5989 5990 5991 5992 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5994$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5995if test "${lt_cv_nm_interface+set}" = set; then : 5996 $as_echo_n "(cached) " >&6 5997else 5998 lt_cv_nm_interface="BSD nm" 5999 echo "int some_variable = 0;" > conftest.$ac_ext 6000 (eval echo "\"\$as_me:6000: $ac_compile\"" >&5) 6001 (eval "$ac_compile" 2>conftest.err) 6002 cat conftest.err >&5 6003 (eval echo "\"\$as_me:6003: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6004 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6005 cat conftest.err >&5 6006 (eval echo "\"\$as_me:6006: output\"" >&5) 6007 cat conftest.out >&5 6008 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6009 lt_cv_nm_interface="MS dumpbin" 6010 fi 6011 rm -f conftest* 6012fi 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6014$as_echo "$lt_cv_nm_interface" >&6; } 6015 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6017$as_echo_n "checking whether ln -s works... " >&6; } 6018LN_S=$as_ln_s 6019if test "$LN_S" = "ln -s"; then 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6021$as_echo "yes" >&6; } 6022else 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6024$as_echo "no, using $LN_S" >&6; } 6025fi 6026 6027# find the maximum length of command line arguments 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6029$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6030if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 i=0 6034 teststring="ABCD" 6035 6036 case $build_os in 6037 msdosdjgpp*) 6038 # On DJGPP, this test can blow up pretty badly due to problems in libc 6039 # (any single argument exceeding 2000 bytes causes a buffer overrun 6040 # during glob expansion). Even if it were fixed, the result of this 6041 # check would be larger than it should be. 6042 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6043 ;; 6044 6045 gnu*) 6046 # Under GNU Hurd, this test is not required because there is 6047 # no limit to the length of command line arguments. 6048 # Libtool will interpret -1 as no limit whatsoever 6049 lt_cv_sys_max_cmd_len=-1; 6050 ;; 6051 6052 cygwin* | mingw* | cegcc*) 6053 # On Win9x/ME, this test blows up -- it succeeds, but takes 6054 # about 5 minutes as the teststring grows exponentially. 6055 # Worse, since 9x/ME are not pre-emptively multitasking, 6056 # you end up with a "frozen" computer, even though with patience 6057 # the test eventually succeeds (with a max line length of 256k). 6058 # Instead, let's just punt: use the minimum linelength reported by 6059 # all of the supported platforms: 8192 (on NT/2K/XP). 6060 lt_cv_sys_max_cmd_len=8192; 6061 ;; 6062 6063 amigaos*) 6064 # On AmigaOS with pdksh, this test takes hours, literally. 6065 # So we just punt and use a minimum line length of 8192. 6066 lt_cv_sys_max_cmd_len=8192; 6067 ;; 6068 6069 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6070 # This has been around since 386BSD, at least. Likely further. 6071 if test -x /sbin/sysctl; then 6072 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6073 elif test -x /usr/sbin/sysctl; then 6074 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6075 else 6076 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6077 fi 6078 # And add a safety zone 6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6081 ;; 6082 6083 interix*) 6084 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6085 lt_cv_sys_max_cmd_len=196608 6086 ;; 6087 6088 osf*) 6089 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6090 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6091 # nice to cause kernel panics so lets avoid the loop below. 6092 # First set a reasonable default. 6093 lt_cv_sys_max_cmd_len=16384 6094 # 6095 if test -x /sbin/sysconfig; then 6096 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6097 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6098 esac 6099 fi 6100 ;; 6101 sco3.2v5*) 6102 lt_cv_sys_max_cmd_len=102400 6103 ;; 6104 sysv5* | sco5v6* | sysv4.2uw2*) 6105 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6106 if test -n "$kargmax"; then 6107 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6108 else 6109 lt_cv_sys_max_cmd_len=32768 6110 fi 6111 ;; 6112 *) 6113 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6114 if test -n "$lt_cv_sys_max_cmd_len"; then 6115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6117 else 6118 # Make teststring a little bigger before we do anything with it. 6119 # a 1K string should be a reasonable start. 6120 for i in 1 2 3 4 5 6 7 8 ; do 6121 teststring=$teststring$teststring 6122 done 6123 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6124 # If test is not a shell built-in, we'll probably end up computing a 6125 # maximum length that is only half of the actual maximum length, but 6126 # we can't tell. 6127 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6128 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6129 test $i != 17 # 1/2 MB should be enough 6130 do 6131 i=`expr $i + 1` 6132 teststring=$teststring$teststring 6133 done 6134 # Only check the string length outside the loop. 6135 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6136 teststring= 6137 # Add a significant safety factor because C++ compilers can tack on 6138 # massive amounts of additional arguments before passing them to the 6139 # linker. It appears as though 1/2 is a usable value. 6140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6141 fi 6142 ;; 6143 esac 6144 6145fi 6146 6147if test -n $lt_cv_sys_max_cmd_len ; then 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6149$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6150else 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6152$as_echo "none" >&6; } 6153fi 6154max_cmd_len=$lt_cv_sys_max_cmd_len 6155 6156 6157 6158 6159 6160 6161: ${CP="cp -f"} 6162: ${MV="mv -f"} 6163: ${RM="rm -f"} 6164 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6166$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6167# Try some XSI features 6168xsi_shell=no 6169( _lt_dummy="a/b/c" 6170 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6171 = c,a/b,, \ 6172 && eval 'test $(( 1 + 1 )) -eq 2 \ 6173 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6174 && xsi_shell=yes 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6176$as_echo "$xsi_shell" >&6; } 6177 6178 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6180$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6181lt_shell_append=no 6182( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6183 >/dev/null 2>&1 \ 6184 && lt_shell_append=yes 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6186$as_echo "$lt_shell_append" >&6; } 6187 6188 6189if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6190 lt_unset=unset 6191else 6192 lt_unset=false 6193fi 6194 6195 6196 6197 6198 6199# test EBCDIC or ASCII 6200case `echo X|tr X '\101'` in 6201 A) # ASCII based system 6202 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6203 lt_SP2NL='tr \040 \012' 6204 lt_NL2SP='tr \015\012 \040\040' 6205 ;; 6206 *) # EBCDIC based system 6207 lt_SP2NL='tr \100 \n' 6208 lt_NL2SP='tr \r\n \100\100' 6209 ;; 6210esac 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6221$as_echo_n "checking for $LD option to reload object files... " >&6; } 6222if test "${lt_cv_ld_reload_flag+set}" = set; then : 6223 $as_echo_n "(cached) " >&6 6224else 6225 lt_cv_ld_reload_flag='-r' 6226fi 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6228$as_echo "$lt_cv_ld_reload_flag" >&6; } 6229reload_flag=$lt_cv_ld_reload_flag 6230case $reload_flag in 6231"" | " "*) ;; 6232*) reload_flag=" $reload_flag" ;; 6233esac 6234reload_cmds='$LD$reload_flag -o $output$reload_objs' 6235case $host_os in 6236 darwin*) 6237 if test "$GCC" = yes; then 6238 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6239 else 6240 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6241 fi 6242 ;; 6243esac 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253if test -n "$ac_tool_prefix"; then 6254 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6255set dummy ${ac_tool_prefix}objdump; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$OBJDUMP"; then 6262 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6271 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281OBJDUMP=$ac_cv_prog_OBJDUMP 6282if test -n "$OBJDUMP"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6284$as_echo "$OBJDUMP" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 6291fi 6292if test -z "$ac_cv_prog_OBJDUMP"; then 6293 ac_ct_OBJDUMP=$OBJDUMP 6294 # Extract the first word of "objdump", so it can be a program name with args. 6295set dummy objdump; ac_word=$2 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297$as_echo_n "checking for $ac_word... " >&6; } 6298if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 if test -n "$ac_ct_OBJDUMP"; then 6302 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6303else 6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305for as_dir in $PATH 6306do 6307 IFS=$as_save_IFS 6308 test -z "$as_dir" && as_dir=. 6309 for ac_exec_ext in '' $ac_executable_extensions; do 6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6311 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6313 break 2 6314 fi 6315done 6316 done 6317IFS=$as_save_IFS 6318 6319fi 6320fi 6321ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6322if test -n "$ac_ct_OBJDUMP"; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6324$as_echo "$ac_ct_OBJDUMP" >&6; } 6325else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6327$as_echo "no" >&6; } 6328fi 6329 6330 if test "x$ac_ct_OBJDUMP" = x; then 6331 OBJDUMP="false" 6332 else 6333 case $cross_compiling:$ac_tool_warned in 6334yes:) 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6337ac_tool_warned=yes ;; 6338esac 6339 OBJDUMP=$ac_ct_OBJDUMP 6340 fi 6341else 6342 OBJDUMP="$ac_cv_prog_OBJDUMP" 6343fi 6344 6345test -z "$OBJDUMP" && OBJDUMP=objdump 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6356$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6357if test "${lt_cv_deplibs_check_method+set}" = set; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 lt_cv_file_magic_cmd='$MAGIC_CMD' 6361lt_cv_file_magic_test_file= 6362lt_cv_deplibs_check_method='unknown' 6363# Need to set the preceding variable on all platforms that support 6364# interlibrary dependencies. 6365# 'none' -- dependencies not supported. 6366# `unknown' -- same as none, but documents that we really don't know. 6367# 'pass_all' -- all dependencies passed with no checks. 6368# 'test_compile' -- check by making test program. 6369# 'file_magic [[regex]]' -- check by looking for files in library path 6370# which responds to the $file_magic_cmd with a given extended regex. 6371# If you have `file' or equivalent on your system and you're not sure 6372# whether `pass_all' will *always* work, you probably want this one. 6373 6374case $host_os in 6375aix[4-9]*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379beos*) 6380 lt_cv_deplibs_check_method=pass_all 6381 ;; 6382 6383bsdi[45]*) 6384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6385 lt_cv_file_magic_cmd='/usr/bin/file -L' 6386 lt_cv_file_magic_test_file=/shlib/libc.so 6387 ;; 6388 6389cygwin*) 6390 # func_win32_libid is a shell function defined in ltmain.sh 6391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6392 lt_cv_file_magic_cmd='func_win32_libid' 6393 ;; 6394 6395mingw* | pw32*) 6396 # Base MSYS/MinGW do not provide the 'file' command needed by 6397 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6398 # unless we find 'file', for example because we are cross-compiling. 6399 if ( file / ) >/dev/null 2>&1; then 6400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6401 lt_cv_file_magic_cmd='func_win32_libid' 6402 else 6403 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6404 lt_cv_file_magic_cmd='$OBJDUMP -f' 6405 fi 6406 ;; 6407 6408cegcc) 6409 # use the weaker test based on 'objdump'. See mingw*. 6410 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6411 lt_cv_file_magic_cmd='$OBJDUMP -f' 6412 ;; 6413 6414darwin* | rhapsody*) 6415 lt_cv_deplibs_check_method=pass_all 6416 ;; 6417 6418freebsd* | dragonfly*) 6419 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6420 case $host_cpu in 6421 i*86 ) 6422 # Not sure whether the presence of OpenBSD here was a mistake. 6423 # Let's accept both of them until this is cleared up. 6424 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6425 lt_cv_file_magic_cmd=/usr/bin/file 6426 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6427 ;; 6428 esac 6429 else 6430 lt_cv_deplibs_check_method=pass_all 6431 fi 6432 ;; 6433 6434gnu*) 6435 lt_cv_deplibs_check_method=pass_all 6436 ;; 6437 6438hpux10.20* | hpux11*) 6439 lt_cv_file_magic_cmd=/usr/bin/file 6440 case $host_cpu in 6441 ia64*) 6442 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6443 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6444 ;; 6445 hppa*64*) 6446 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]' 6447 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6448 ;; 6449 *) 6450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6451 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6452 ;; 6453 esac 6454 ;; 6455 6456interix[3-9]*) 6457 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6459 ;; 6460 6461irix5* | irix6* | nonstopux*) 6462 case $LD in 6463 *-32|*"-32 ") libmagic=32-bit;; 6464 *-n32|*"-n32 ") libmagic=N32;; 6465 *-64|*"-64 ") libmagic=64-bit;; 6466 *) libmagic=never-match;; 6467 esac 6468 lt_cv_deplibs_check_method=pass_all 6469 ;; 6470 6471# This must be Linux ELF. 6472linux* | k*bsd*-gnu) 6473 lt_cv_deplibs_check_method=pass_all 6474 ;; 6475 6476netbsd*) 6477 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6479 else 6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6481 fi 6482 ;; 6483 6484newos6*) 6485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6486 lt_cv_file_magic_cmd=/usr/bin/file 6487 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6488 ;; 6489 6490*nto* | *qnx*) 6491 lt_cv_deplibs_check_method=pass_all 6492 ;; 6493 6494openbsd*) 6495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6497 else 6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6499 fi 6500 ;; 6501 6502osf3* | osf4* | osf5*) 6503 lt_cv_deplibs_check_method=pass_all 6504 ;; 6505 6506rdos*) 6507 lt_cv_deplibs_check_method=pass_all 6508 ;; 6509 6510solaris*) 6511 lt_cv_deplibs_check_method=pass_all 6512 ;; 6513 6514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6515 lt_cv_deplibs_check_method=pass_all 6516 ;; 6517 6518sysv4 | sysv4.3*) 6519 case $host_vendor in 6520 motorola) 6521 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]' 6522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6523 ;; 6524 ncr) 6525 lt_cv_deplibs_check_method=pass_all 6526 ;; 6527 sequent) 6528 lt_cv_file_magic_cmd='/bin/file' 6529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6530 ;; 6531 sni) 6532 lt_cv_file_magic_cmd='/bin/file' 6533 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6534 lt_cv_file_magic_test_file=/lib/libc.so 6535 ;; 6536 siemens) 6537 lt_cv_deplibs_check_method=pass_all 6538 ;; 6539 pc) 6540 lt_cv_deplibs_check_method=pass_all 6541 ;; 6542 esac 6543 ;; 6544 6545tpf*) 6546 lt_cv_deplibs_check_method=pass_all 6547 ;; 6548esac 6549 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6552$as_echo "$lt_cv_deplibs_check_method" >&6; } 6553file_magic_cmd=$lt_cv_file_magic_cmd 6554deplibs_check_method=$lt_cv_deplibs_check_method 6555test -z "$deplibs_check_method" && deplibs_check_method=unknown 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568if test -n "$ac_tool_prefix"; then 6569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6570set dummy ${ac_tool_prefix}ar; ac_word=$2 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6572$as_echo_n "checking for $ac_word... " >&6; } 6573if test "${ac_cv_prog_AR+set}" = set; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 if test -n "$AR"; then 6577 ac_cv_prog_AR="$AR" # Let the user override the test. 6578else 6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6580for as_dir in $PATH 6581do 6582 IFS=$as_save_IFS 6583 test -z "$as_dir" && as_dir=. 6584 for ac_exec_ext in '' $ac_executable_extensions; do 6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6586 ac_cv_prog_AR="${ac_tool_prefix}ar" 6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6588 break 2 6589 fi 6590done 6591 done 6592IFS=$as_save_IFS 6593 6594fi 6595fi 6596AR=$ac_cv_prog_AR 6597if test -n "$AR"; then 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6599$as_echo "$AR" >&6; } 6600else 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6602$as_echo "no" >&6; } 6603fi 6604 6605 6606fi 6607if test -z "$ac_cv_prog_AR"; then 6608 ac_ct_AR=$AR 6609 # Extract the first word of "ar", so it can be a program name with args. 6610set dummy ar; ac_word=$2 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6612$as_echo_n "checking for $ac_word... " >&6; } 6613if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6614 $as_echo_n "(cached) " >&6 6615else 6616 if test -n "$ac_ct_AR"; then 6617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6618else 6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6620for as_dir in $PATH 6621do 6622 IFS=$as_save_IFS 6623 test -z "$as_dir" && as_dir=. 6624 for ac_exec_ext in '' $ac_executable_extensions; do 6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6626 ac_cv_prog_ac_ct_AR="ar" 6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6628 break 2 6629 fi 6630done 6631 done 6632IFS=$as_save_IFS 6633 6634fi 6635fi 6636ac_ct_AR=$ac_cv_prog_ac_ct_AR 6637if test -n "$ac_ct_AR"; then 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6639$as_echo "$ac_ct_AR" >&6; } 6640else 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6642$as_echo "no" >&6; } 6643fi 6644 6645 if test "x$ac_ct_AR" = x; then 6646 AR="false" 6647 else 6648 case $cross_compiling:$ac_tool_warned in 6649yes:) 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6652ac_tool_warned=yes ;; 6653esac 6654 AR=$ac_ct_AR 6655 fi 6656else 6657 AR="$ac_cv_prog_AR" 6658fi 6659 6660test -z "$AR" && AR=ar 6661test -z "$AR_FLAGS" && AR_FLAGS=cru 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673if test -n "$ac_tool_prefix"; then 6674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6675set dummy ${ac_tool_prefix}strip; ac_word=$2 6676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6677$as_echo_n "checking for $ac_word... " >&6; } 6678if test "${ac_cv_prog_STRIP+set}" = set; then : 6679 $as_echo_n "(cached) " >&6 6680else 6681 if test -n "$STRIP"; then 6682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6683else 6684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6685for as_dir in $PATH 6686do 6687 IFS=$as_save_IFS 6688 test -z "$as_dir" && as_dir=. 6689 for ac_exec_ext in '' $ac_executable_extensions; do 6690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6691 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6693 break 2 6694 fi 6695done 6696 done 6697IFS=$as_save_IFS 6698 6699fi 6700fi 6701STRIP=$ac_cv_prog_STRIP 6702if test -n "$STRIP"; then 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6704$as_echo "$STRIP" >&6; } 6705else 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6707$as_echo "no" >&6; } 6708fi 6709 6710 6711fi 6712if test -z "$ac_cv_prog_STRIP"; then 6713 ac_ct_STRIP=$STRIP 6714 # Extract the first word of "strip", so it can be a program name with args. 6715set dummy strip; ac_word=$2 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6717$as_echo_n "checking for $ac_word... " >&6; } 6718if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6719 $as_echo_n "(cached) " >&6 6720else 6721 if test -n "$ac_ct_STRIP"; then 6722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6723else 6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6725for as_dir in $PATH 6726do 6727 IFS=$as_save_IFS 6728 test -z "$as_dir" && as_dir=. 6729 for ac_exec_ext in '' $ac_executable_extensions; do 6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6731 ac_cv_prog_ac_ct_STRIP="strip" 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6733 break 2 6734 fi 6735done 6736 done 6737IFS=$as_save_IFS 6738 6739fi 6740fi 6741ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6742if test -n "$ac_ct_STRIP"; then 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6744$as_echo "$ac_ct_STRIP" >&6; } 6745else 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6747$as_echo "no" >&6; } 6748fi 6749 6750 if test "x$ac_ct_STRIP" = x; then 6751 STRIP=":" 6752 else 6753 case $cross_compiling:$ac_tool_warned in 6754yes:) 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6757ac_tool_warned=yes ;; 6758esac 6759 STRIP=$ac_ct_STRIP 6760 fi 6761else 6762 STRIP="$ac_cv_prog_STRIP" 6763fi 6764 6765test -z "$STRIP" && STRIP=: 6766 6767 6768 6769 6770 6771 6772if test -n "$ac_tool_prefix"; then 6773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6774set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6776$as_echo_n "checking for $ac_word... " >&6; } 6777if test "${ac_cv_prog_RANLIB+set}" = set; then : 6778 $as_echo_n "(cached) " >&6 6779else 6780 if test -n "$RANLIB"; then 6781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6782else 6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6784for as_dir in $PATH 6785do 6786 IFS=$as_save_IFS 6787 test -z "$as_dir" && as_dir=. 6788 for ac_exec_ext in '' $ac_executable_extensions; do 6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6792 break 2 6793 fi 6794done 6795 done 6796IFS=$as_save_IFS 6797 6798fi 6799fi 6800RANLIB=$ac_cv_prog_RANLIB 6801if test -n "$RANLIB"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6803$as_echo "$RANLIB" >&6; } 6804else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806$as_echo "no" >&6; } 6807fi 6808 6809 6810fi 6811if test -z "$ac_cv_prog_RANLIB"; then 6812 ac_ct_RANLIB=$RANLIB 6813 # Extract the first word of "ranlib", so it can be a program name with args. 6814set dummy ranlib; ac_word=$2 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6816$as_echo_n "checking for $ac_word... " >&6; } 6817if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 if test -n "$ac_ct_RANLIB"; then 6821 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6822else 6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824for as_dir in $PATH 6825do 6826 IFS=$as_save_IFS 6827 test -z "$as_dir" && as_dir=. 6828 for ac_exec_ext in '' $ac_executable_extensions; do 6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6830 ac_cv_prog_ac_ct_RANLIB="ranlib" 6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6832 break 2 6833 fi 6834done 6835 done 6836IFS=$as_save_IFS 6837 6838fi 6839fi 6840ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6841if test -n "$ac_ct_RANLIB"; then 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6843$as_echo "$ac_ct_RANLIB" >&6; } 6844else 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6846$as_echo "no" >&6; } 6847fi 6848 6849 if test "x$ac_ct_RANLIB" = x; then 6850 RANLIB=":" 6851 else 6852 case $cross_compiling:$ac_tool_warned in 6853yes:) 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6856ac_tool_warned=yes ;; 6857esac 6858 RANLIB=$ac_ct_RANLIB 6859 fi 6860else 6861 RANLIB="$ac_cv_prog_RANLIB" 6862fi 6863 6864test -z "$RANLIB" && RANLIB=: 6865 6866 6867 6868 6869 6870 6871# Determine commands to create old-style static archives. 6872old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6873old_postinstall_cmds='chmod 644 $oldlib' 6874old_postuninstall_cmds= 6875 6876if test -n "$RANLIB"; then 6877 case $host_os in 6878 openbsd*) 6879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6880 ;; 6881 *) 6882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6883 ;; 6884 esac 6885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6886fi 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921# If no C compiler was specified, use CC. 6922LTCC=${LTCC-"$CC"} 6923 6924# If no C compiler flags were specified, use CFLAGS. 6925LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6926 6927# Allow CC to be a program name with arguments. 6928compiler=$CC 6929 6930 6931# Check for command to grab the raw symbol name followed by C symbol from nm. 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6933$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6934if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 6938# These are sane defaults that work on at least a few old systems. 6939# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6940 6941# Character class describing NM global symbol codes. 6942symcode='[BCDEGRST]' 6943 6944# Regexp to match symbols that can be accessed directly from C. 6945sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6946 6947# Define system-specific variables. 6948case $host_os in 6949aix*) 6950 symcode='[BCDT]' 6951 ;; 6952cygwin* | mingw* | pw32* | cegcc*) 6953 symcode='[ABCDGISTW]' 6954 ;; 6955hpux*) 6956 if test "$host_cpu" = ia64; then 6957 symcode='[ABCDEGRST]' 6958 fi 6959 ;; 6960irix* | nonstopux*) 6961 symcode='[BCDEGRST]' 6962 ;; 6963osf*) 6964 symcode='[BCDEGQRST]' 6965 ;; 6966solaris*) 6967 symcode='[BDRT]' 6968 ;; 6969sco3.2v5*) 6970 symcode='[DT]' 6971 ;; 6972sysv4.2uw2*) 6973 symcode='[DT]' 6974 ;; 6975sysv5* | sco5v6* | unixware* | OpenUNIX*) 6976 symcode='[ABDT]' 6977 ;; 6978sysv4) 6979 symcode='[DFNSTU]' 6980 ;; 6981esac 6982 6983# If we're using GNU nm, then use its standard symbol codes. 6984case `$NM -V 2>&1` in 6985*GNU* | *'with BFD'*) 6986 symcode='[ABCDGIRSTW]' ;; 6987esac 6988 6989# Transform an extracted symbol line into a proper C declaration. 6990# Some systems (esp. on ia64) link data and code symbols differently, 6991# so use this general approach. 6992lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6993 6994# Transform an extracted symbol line into symbol name and symbol address 6995lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6996lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6997 6998# Handle CRLF in mingw tool chain 6999opt_cr= 7000case $build_os in 7001mingw*) 7002 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7003 ;; 7004esac 7005 7006# Try without a prefix underscore, then with it. 7007for ac_symprfx in "" "_"; do 7008 7009 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7010 symxfrm="\\1 $ac_symprfx\\2 \\2" 7011 7012 # Write the raw and C identifiers. 7013 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7014 # Fake it for dumpbin and say T for any non-static function 7015 # and D for any global variable. 7016 # Also find C++ and __fastcall symbols from MSVC++, 7017 # which start with @ or ?. 7018 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7019" {last_section=section; section=\$ 3};"\ 7020" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7021" \$ 0!~/External *\|/{next};"\ 7022" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7023" {if(hide[section]) next};"\ 7024" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7025" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7026" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7027" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7028" ' prfx=^$ac_symprfx" 7029 else 7030 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7031 fi 7032 7033 # Check to see that the pipe works correctly. 7034 pipe_works=no 7035 7036 rm -f conftest* 7037 cat > conftest.$ac_ext <<_LT_EOF 7038#ifdef __cplusplus 7039extern "C" { 7040#endif 7041char nm_test_var; 7042void nm_test_func(void); 7043void nm_test_func(void){} 7044#ifdef __cplusplus 7045} 7046#endif 7047int main(){nm_test_var='a';nm_test_func();return(0);} 7048_LT_EOF 7049 7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7051 (eval $ac_compile) 2>&5 7052 ac_status=$? 7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7054 test $ac_status = 0; }; then 7055 # Now try to grab the symbols. 7056 nlist=conftest.nm 7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7058 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7059 ac_status=$? 7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7061 test $ac_status = 0; } && test -s "$nlist"; then 7062 # Try sorting and uniquifying the output. 7063 if sort "$nlist" | uniq > "$nlist"T; then 7064 mv -f "$nlist"T "$nlist" 7065 else 7066 rm -f "$nlist"T 7067 fi 7068 7069 # Make sure that we snagged all the symbols we need. 7070 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7071 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7072 cat <<_LT_EOF > conftest.$ac_ext 7073#ifdef __cplusplus 7074extern "C" { 7075#endif 7076 7077_LT_EOF 7078 # Now generate the symbol file. 7079 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7080 7081 cat <<_LT_EOF >> conftest.$ac_ext 7082 7083/* The mapping between symbol names and symbols. */ 7084const struct { 7085 const char *name; 7086 void *address; 7087} 7088lt__PROGRAM__LTX_preloaded_symbols[] = 7089{ 7090 { "@PROGRAM@", (void *) 0 }, 7091_LT_EOF 7092 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7093 cat <<\_LT_EOF >> conftest.$ac_ext 7094 {0, (void *) 0} 7095}; 7096 7097/* This works around a problem in FreeBSD linker */ 7098#ifdef FREEBSD_WORKAROUND 7099static const void *lt_preloaded_setup() { 7100 return lt__PROGRAM__LTX_preloaded_symbols; 7101} 7102#endif 7103 7104#ifdef __cplusplus 7105} 7106#endif 7107_LT_EOF 7108 # Now try linking the two files. 7109 mv conftest.$ac_objext conftstm.$ac_objext 7110 lt_save_LIBS="$LIBS" 7111 lt_save_CFLAGS="$CFLAGS" 7112 LIBS="conftstm.$ac_objext" 7113 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7115 (eval $ac_link) 2>&5 7116 ac_status=$? 7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7118 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7119 pipe_works=yes 7120 fi 7121 LIBS="$lt_save_LIBS" 7122 CFLAGS="$lt_save_CFLAGS" 7123 else 7124 echo "cannot find nm_test_func in $nlist" >&5 7125 fi 7126 else 7127 echo "cannot find nm_test_var in $nlist" >&5 7128 fi 7129 else 7130 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7131 fi 7132 else 7133 echo "$progname: failed program was:" >&5 7134 cat conftest.$ac_ext >&5 7135 fi 7136 rm -rf conftest* conftst* 7137 7138 # Do not use the global_symbol_pipe unless it works. 7139 if test "$pipe_works" = yes; then 7140 break 7141 else 7142 lt_cv_sys_global_symbol_pipe= 7143 fi 7144done 7145 7146fi 7147 7148if test -z "$lt_cv_sys_global_symbol_pipe"; then 7149 lt_cv_sys_global_symbol_to_cdecl= 7150fi 7151if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7153$as_echo "failed" >&6; } 7154else 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7156$as_echo "ok" >&6; } 7157fi 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180# Check whether --enable-libtool-lock was given. 7181if test "${enable_libtool_lock+set}" = set; then : 7182 enableval=$enable_libtool_lock; 7183fi 7184 7185test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7186 7187# Some flags need to be propagated to the compiler or linker for good 7188# libtool support. 7189case $host in 7190ia64-*-hpux*) 7191 # Find out which ABI we are using. 7192 echo 'int i;' > conftest.$ac_ext 7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7194 (eval $ac_compile) 2>&5 7195 ac_status=$? 7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7197 test $ac_status = 0; }; then 7198 case `/usr/bin/file conftest.$ac_objext` in 7199 *ELF-32*) 7200 HPUX_IA64_MODE="32" 7201 ;; 7202 *ELF-64*) 7203 HPUX_IA64_MODE="64" 7204 ;; 7205 esac 7206 fi 7207 rm -rf conftest* 7208 ;; 7209*-*-irix6*) 7210 # Find out which ABI we are using. 7211 echo '#line 7211 "configure"' > conftest.$ac_ext 7212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7213 (eval $ac_compile) 2>&5 7214 ac_status=$? 7215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7216 test $ac_status = 0; }; then 7217 if test "$lt_cv_prog_gnu_ld" = yes; then 7218 case `/usr/bin/file conftest.$ac_objext` in 7219 *32-bit*) 7220 LD="${LD-ld} -melf32bsmip" 7221 ;; 7222 *N32*) 7223 LD="${LD-ld} -melf32bmipn32" 7224 ;; 7225 *64-bit*) 7226 LD="${LD-ld} -melf64bmip" 7227 ;; 7228 esac 7229 else 7230 case `/usr/bin/file conftest.$ac_objext` in 7231 *32-bit*) 7232 LD="${LD-ld} -32" 7233 ;; 7234 *N32*) 7235 LD="${LD-ld} -n32" 7236 ;; 7237 *64-bit*) 7238 LD="${LD-ld} -64" 7239 ;; 7240 esac 7241 fi 7242 fi 7243 rm -rf conftest* 7244 ;; 7245 7246x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7247s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7248 # Find out which ABI we are using. 7249 echo 'int i;' > conftest.$ac_ext 7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7251 (eval $ac_compile) 2>&5 7252 ac_status=$? 7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7254 test $ac_status = 0; }; then 7255 case `/usr/bin/file conftest.o` in 7256 *32-bit*) 7257 case $host in 7258 x86_64-*kfreebsd*-gnu) 7259 LD="${LD-ld} -m elf_i386_fbsd" 7260 ;; 7261 x86_64-*linux*) 7262 LD="${LD-ld} -m elf_i386" 7263 ;; 7264 ppc64-*linux*|powerpc64-*linux*) 7265 LD="${LD-ld} -m elf32ppclinux" 7266 ;; 7267 s390x-*linux*) 7268 LD="${LD-ld} -m elf_s390" 7269 ;; 7270 sparc64-*linux*) 7271 LD="${LD-ld} -m elf32_sparc" 7272 ;; 7273 esac 7274 ;; 7275 *64-bit*) 7276 case $host in 7277 x86_64-*kfreebsd*-gnu) 7278 LD="${LD-ld} -m elf_x86_64_fbsd" 7279 ;; 7280 x86_64-*linux*) 7281 LD="${LD-ld} -m elf_x86_64" 7282 ;; 7283 ppc*-*linux*|powerpc*-*linux*) 7284 LD="${LD-ld} -m elf64ppc" 7285 ;; 7286 s390*-*linux*|s390*-*tpf*) 7287 LD="${LD-ld} -m elf64_s390" 7288 ;; 7289 sparc*-*linux*) 7290 LD="${LD-ld} -m elf64_sparc" 7291 ;; 7292 esac 7293 ;; 7294 esac 7295 fi 7296 rm -rf conftest* 7297 ;; 7298 7299*-*-sco3.2v5*) 7300 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7301 SAVE_CFLAGS="$CFLAGS" 7302 CFLAGS="$CFLAGS -belf" 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7304$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7305if test "${lt_cv_cc_needs_belf+set}" = set; then : 7306 $as_echo_n "(cached) " >&6 7307else 7308 ac_ext=c 7309ac_cpp='$CPP $CPPFLAGS' 7310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7312ac_compiler_gnu=$ac_cv_c_compiler_gnu 7313 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316 7317int 7318main () 7319{ 7320 7321 ; 7322 return 0; 7323} 7324_ACEOF 7325if ac_fn_c_try_link "$LINENO"; then : 7326 lt_cv_cc_needs_belf=yes 7327else 7328 lt_cv_cc_needs_belf=no 7329fi 7330rm -f core conftest.err conftest.$ac_objext \ 7331 conftest$ac_exeext conftest.$ac_ext 7332 ac_ext=c 7333ac_cpp='$CPP $CPPFLAGS' 7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7336ac_compiler_gnu=$ac_cv_c_compiler_gnu 7337 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7340$as_echo "$lt_cv_cc_needs_belf" >&6; } 7341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7343 CFLAGS="$SAVE_CFLAGS" 7344 fi 7345 ;; 7346sparc*-*solaris*) 7347 # Find out which ABI we are using. 7348 echo 'int i;' > conftest.$ac_ext 7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7350 (eval $ac_compile) 2>&5 7351 ac_status=$? 7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7353 test $ac_status = 0; }; then 7354 case `/usr/bin/file conftest.o` in 7355 *64-bit*) 7356 case $lt_cv_prog_gnu_ld in 7357 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7358 *) 7359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7360 LD="${LD-ld} -64" 7361 fi 7362 ;; 7363 esac 7364 ;; 7365 esac 7366 fi 7367 rm -rf conftest* 7368 ;; 7369esac 7370 7371need_locks="$enable_libtool_lock" 7372 7373 7374 case $host_os in 7375 rhapsody* | darwin*) 7376 if test -n "$ac_tool_prefix"; then 7377 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7378set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7380$as_echo_n "checking for $ac_word... " >&6; } 7381if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 if test -n "$DSYMUTIL"; then 7385 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7386else 7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7388for as_dir in $PATH 7389do 7390 IFS=$as_save_IFS 7391 test -z "$as_dir" && as_dir=. 7392 for ac_exec_ext in '' $ac_executable_extensions; do 7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7394 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7396 break 2 7397 fi 7398done 7399 done 7400IFS=$as_save_IFS 7401 7402fi 7403fi 7404DSYMUTIL=$ac_cv_prog_DSYMUTIL 7405if test -n "$DSYMUTIL"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7407$as_echo "$DSYMUTIL" >&6; } 7408else 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410$as_echo "no" >&6; } 7411fi 7412 7413 7414fi 7415if test -z "$ac_cv_prog_DSYMUTIL"; then 7416 ac_ct_DSYMUTIL=$DSYMUTIL 7417 # Extract the first word of "dsymutil", so it can be a program name with args. 7418set dummy dsymutil; ac_word=$2 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7420$as_echo_n "checking for $ac_word... " >&6; } 7421if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 if test -n "$ac_ct_DSYMUTIL"; then 7425 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7426else 7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7428for as_dir in $PATH 7429do 7430 IFS=$as_save_IFS 7431 test -z "$as_dir" && as_dir=. 7432 for ac_exec_ext in '' $ac_executable_extensions; do 7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7434 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7436 break 2 7437 fi 7438done 7439 done 7440IFS=$as_save_IFS 7441 7442fi 7443fi 7444ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7445if test -n "$ac_ct_DSYMUTIL"; then 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7447$as_echo "$ac_ct_DSYMUTIL" >&6; } 7448else 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7450$as_echo "no" >&6; } 7451fi 7452 7453 if test "x$ac_ct_DSYMUTIL" = x; then 7454 DSYMUTIL=":" 7455 else 7456 case $cross_compiling:$ac_tool_warned in 7457yes:) 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7460ac_tool_warned=yes ;; 7461esac 7462 DSYMUTIL=$ac_ct_DSYMUTIL 7463 fi 7464else 7465 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7466fi 7467 7468 if test -n "$ac_tool_prefix"; then 7469 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7470set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$NMEDIT"; then 7477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7486 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496NMEDIT=$ac_cv_prog_NMEDIT 7497if test -n "$NMEDIT"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7499$as_echo "$NMEDIT" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 7506fi 7507if test -z "$ac_cv_prog_NMEDIT"; then 7508 ac_ct_NMEDIT=$NMEDIT 7509 # Extract the first word of "nmedit", so it can be a program name with args. 7510set dummy nmedit; ac_word=$2 7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7512$as_echo_n "checking for $ac_word... " >&6; } 7513if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7514 $as_echo_n "(cached) " >&6 7515else 7516 if test -n "$ac_ct_NMEDIT"; then 7517 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7518else 7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7520for as_dir in $PATH 7521do 7522 IFS=$as_save_IFS 7523 test -z "$as_dir" && as_dir=. 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7526 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7528 break 2 7529 fi 7530done 7531 done 7532IFS=$as_save_IFS 7533 7534fi 7535fi 7536ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7537if test -n "$ac_ct_NMEDIT"; then 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7539$as_echo "$ac_ct_NMEDIT" >&6; } 7540else 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7542$as_echo "no" >&6; } 7543fi 7544 7545 if test "x$ac_ct_NMEDIT" = x; then 7546 NMEDIT=":" 7547 else 7548 case $cross_compiling:$ac_tool_warned in 7549yes:) 7550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7552ac_tool_warned=yes ;; 7553esac 7554 NMEDIT=$ac_ct_NMEDIT 7555 fi 7556else 7557 NMEDIT="$ac_cv_prog_NMEDIT" 7558fi 7559 7560 if test -n "$ac_tool_prefix"; then 7561 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7562set dummy ${ac_tool_prefix}lipo; ac_word=$2 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564$as_echo_n "checking for $ac_word... " >&6; } 7565if test "${ac_cv_prog_LIPO+set}" = set; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 if test -n "$LIPO"; then 7569 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 test -z "$as_dir" && as_dir=. 7576 for ac_exec_ext in '' $ac_executable_extensions; do 7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7578 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7580 break 2 7581 fi 7582done 7583 done 7584IFS=$as_save_IFS 7585 7586fi 7587fi 7588LIPO=$ac_cv_prog_LIPO 7589if test -n "$LIPO"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7591$as_echo "$LIPO" >&6; } 7592else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594$as_echo "no" >&6; } 7595fi 7596 7597 7598fi 7599if test -z "$ac_cv_prog_LIPO"; then 7600 ac_ct_LIPO=$LIPO 7601 # Extract the first word of "lipo", so it can be a program name with args. 7602set dummy lipo; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 if test -n "$ac_ct_LIPO"; then 7609 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7618 ac_cv_prog_ac_ct_LIPO="lipo" 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623 done 7624IFS=$as_save_IFS 7625 7626fi 7627fi 7628ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7629if test -n "$ac_ct_LIPO"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7631$as_echo "$ac_ct_LIPO" >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 if test "x$ac_ct_LIPO" = x; then 7638 LIPO=":" 7639 else 7640 case $cross_compiling:$ac_tool_warned in 7641yes:) 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7644ac_tool_warned=yes ;; 7645esac 7646 LIPO=$ac_ct_LIPO 7647 fi 7648else 7649 LIPO="$ac_cv_prog_LIPO" 7650fi 7651 7652 if test -n "$ac_tool_prefix"; then 7653 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7654set dummy ${ac_tool_prefix}otool; ac_word=$2 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7656$as_echo_n "checking for $ac_word... " >&6; } 7657if test "${ac_cv_prog_OTOOL+set}" = set; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 if test -n "$OTOOL"; then 7661 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7662else 7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7664for as_dir in $PATH 7665do 7666 IFS=$as_save_IFS 7667 test -z "$as_dir" && as_dir=. 7668 for ac_exec_ext in '' $ac_executable_extensions; do 7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7670 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7672 break 2 7673 fi 7674done 7675 done 7676IFS=$as_save_IFS 7677 7678fi 7679fi 7680OTOOL=$ac_cv_prog_OTOOL 7681if test -n "$OTOOL"; then 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7683$as_echo "$OTOOL" >&6; } 7684else 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7686$as_echo "no" >&6; } 7687fi 7688 7689 7690fi 7691if test -z "$ac_cv_prog_OTOOL"; then 7692 ac_ct_OTOOL=$OTOOL 7693 # Extract the first word of "otool", so it can be a program name with args. 7694set dummy otool; ac_word=$2 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7696$as_echo_n "checking for $ac_word... " >&6; } 7697if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 if test -n "$ac_ct_OTOOL"; then 7701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7702else 7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704for as_dir in $PATH 7705do 7706 IFS=$as_save_IFS 7707 test -z "$as_dir" && as_dir=. 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7710 ac_cv_prog_ac_ct_OTOOL="otool" 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714done 7715 done 7716IFS=$as_save_IFS 7717 7718fi 7719fi 7720ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7721if test -n "$ac_ct_OTOOL"; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7723$as_echo "$ac_ct_OTOOL" >&6; } 7724else 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7726$as_echo "no" >&6; } 7727fi 7728 7729 if test "x$ac_ct_OTOOL" = x; then 7730 OTOOL=":" 7731 else 7732 case $cross_compiling:$ac_tool_warned in 7733yes:) 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7736ac_tool_warned=yes ;; 7737esac 7738 OTOOL=$ac_ct_OTOOL 7739 fi 7740else 7741 OTOOL="$ac_cv_prog_OTOOL" 7742fi 7743 7744 if test -n "$ac_tool_prefix"; then 7745 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7746set dummy ${ac_tool_prefix}otool64; ac_word=$2 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7748$as_echo_n "checking for $ac_word... " >&6; } 7749if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 if test -n "$OTOOL64"; then 7753 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7754else 7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7756for as_dir in $PATH 7757do 7758 IFS=$as_save_IFS 7759 test -z "$as_dir" && as_dir=. 7760 for ac_exec_ext in '' $ac_executable_extensions; do 7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7762 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7764 break 2 7765 fi 7766done 7767 done 7768IFS=$as_save_IFS 7769 7770fi 7771fi 7772OTOOL64=$ac_cv_prog_OTOOL64 7773if test -n "$OTOOL64"; then 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7775$as_echo "$OTOOL64" >&6; } 7776else 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7778$as_echo "no" >&6; } 7779fi 7780 7781 7782fi 7783if test -z "$ac_cv_prog_OTOOL64"; then 7784 ac_ct_OTOOL64=$OTOOL64 7785 # Extract the first word of "otool64", so it can be a program name with args. 7786set dummy otool64; ac_word=$2 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7788$as_echo_n "checking for $ac_word... " >&6; } 7789if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 if test -n "$ac_ct_OTOOL64"; then 7793 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7794else 7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7796for as_dir in $PATH 7797do 7798 IFS=$as_save_IFS 7799 test -z "$as_dir" && as_dir=. 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7802 ac_cv_prog_ac_ct_OTOOL64="otool64" 7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7804 break 2 7805 fi 7806done 7807 done 7808IFS=$as_save_IFS 7809 7810fi 7811fi 7812ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7813if test -n "$ac_ct_OTOOL64"; then 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7815$as_echo "$ac_ct_OTOOL64" >&6; } 7816else 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7818$as_echo "no" >&6; } 7819fi 7820 7821 if test "x$ac_ct_OTOOL64" = x; then 7822 OTOOL64=":" 7823 else 7824 case $cross_compiling:$ac_tool_warned in 7825yes:) 7826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7828ac_tool_warned=yes ;; 7829esac 7830 OTOOL64=$ac_ct_OTOOL64 7831 fi 7832else 7833 OTOOL64="$ac_cv_prog_OTOOL64" 7834fi 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7863$as_echo_n "checking for -single_module linker flag... " >&6; } 7864if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7865 $as_echo_n "(cached) " >&6 7866else 7867 lt_cv_apple_cc_single_mod=no 7868 if test -z "${LT_MULTI_MODULE}"; then 7869 # By default we will add the -single_module flag. You can override 7870 # by either setting the environment variable LT_MULTI_MODULE 7871 # non-empty at configure time, or by adding -multi_module to the 7872 # link flags. 7873 rm -rf libconftest.dylib* 7874 echo "int foo(void){return 1;}" > conftest.c 7875 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7876-dynamiclib -Wl,-single_module conftest.c" >&5 7877 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7878 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7879 _lt_result=$? 7880 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7881 lt_cv_apple_cc_single_mod=yes 7882 else 7883 cat conftest.err >&5 7884 fi 7885 rm -rf libconftest.dylib* 7886 rm -f conftest.* 7887 fi 7888fi 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7890$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7892$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7893if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7894 $as_echo_n "(cached) " >&6 7895else 7896 lt_cv_ld_exported_symbols_list=no 7897 save_LDFLAGS=$LDFLAGS 7898 echo "_main" > conftest.sym 7899 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901/* end confdefs.h. */ 7902 7903int 7904main () 7905{ 7906 7907 ; 7908 return 0; 7909} 7910_ACEOF 7911if ac_fn_c_try_link "$LINENO"; then : 7912 lt_cv_ld_exported_symbols_list=yes 7913else 7914 lt_cv_ld_exported_symbols_list=no 7915fi 7916rm -f core conftest.err conftest.$ac_objext \ 7917 conftest$ac_exeext conftest.$ac_ext 7918 LDFLAGS="$save_LDFLAGS" 7919 7920fi 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7922$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7923 case $host_os in 7924 rhapsody* | darwin1.[012]) 7925 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7926 darwin1.*) 7927 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7928 darwin*) # darwin 5.x on 7929 # if running on 10.5 or later, the deployment target defaults 7930 # to the OS version, if on x86, and 10.4, the deployment 7931 # target defaults to 10.4. Don't you love it? 7932 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7933 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7934 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7935 10.[012]*) 7936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7937 10.*) 7938 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7939 esac 7940 ;; 7941 esac 7942 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7943 _lt_dar_single_mod='$single_module' 7944 fi 7945 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7946 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7947 else 7948 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7949 fi 7950 if test "$DSYMUTIL" != ":"; then 7951 _lt_dsymutil='~$DSYMUTIL $lib || :' 7952 else 7953 _lt_dsymutil= 7954 fi 7955 ;; 7956 esac 7957 7958for ac_header in dlfcn.h 7959do : 7960 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7961" 7962if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7963 cat >>confdefs.h <<_ACEOF 7964#define HAVE_DLFCN_H 1 7965_ACEOF 7966 7967fi 7968 7969done 7970 7971 7972 7973# Set options 7974 7975 7976 7977 enable_dlopen=no 7978 7979 7980 enable_win32_dll=no 7981 7982 7983 # Check whether --enable-shared was given. 7984if test "${enable_shared+set}" = set; then : 7985 enableval=$enable_shared; p=${PACKAGE-default} 7986 case $enableval in 7987 yes) enable_shared=yes ;; 7988 no) enable_shared=no ;; 7989 *) 7990 enable_shared=no 7991 # Look at the argument we got. We use all the common list separators. 7992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7993 for pkg in $enableval; do 7994 IFS="$lt_save_ifs" 7995 if test "X$pkg" = "X$p"; then 7996 enable_shared=yes 7997 fi 7998 done 7999 IFS="$lt_save_ifs" 8000 ;; 8001 esac 8002else 8003 enable_shared=yes 8004fi 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 # Check whether --enable-static was given. 8015if test "${enable_static+set}" = set; then : 8016 enableval=$enable_static; p=${PACKAGE-default} 8017 case $enableval in 8018 yes) enable_static=yes ;; 8019 no) enable_static=no ;; 8020 *) 8021 enable_static=no 8022 # Look at the argument we got. We use all the common list separators. 8023 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8024 for pkg in $enableval; do 8025 IFS="$lt_save_ifs" 8026 if test "X$pkg" = "X$p"; then 8027 enable_static=yes 8028 fi 8029 done 8030 IFS="$lt_save_ifs" 8031 ;; 8032 esac 8033else 8034 enable_static=yes 8035fi 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046# Check whether --with-pic was given. 8047if test "${with_pic+set}" = set; then : 8048 withval=$with_pic; pic_mode="$withval" 8049else 8050 pic_mode=default 8051fi 8052 8053 8054test -z "$pic_mode" && pic_mode=default 8055 8056 8057 8058 8059 8060 8061 8062 # Check whether --enable-fast-install was given. 8063if test "${enable_fast_install+set}" = set; then : 8064 enableval=$enable_fast_install; p=${PACKAGE-default} 8065 case $enableval in 8066 yes) enable_fast_install=yes ;; 8067 no) enable_fast_install=no ;; 8068 *) 8069 enable_fast_install=no 8070 # Look at the argument we got. We use all the common list separators. 8071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8072 for pkg in $enableval; do 8073 IFS="$lt_save_ifs" 8074 if test "X$pkg" = "X$p"; then 8075 enable_fast_install=yes 8076 fi 8077 done 8078 IFS="$lt_save_ifs" 8079 ;; 8080 esac 8081else 8082 enable_fast_install=yes 8083fi 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095# This can be used to rebuild libtool when needed 8096LIBTOOL_DEPS="$ltmain" 8097 8098# Always use our own libtool. 8099LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125test -z "$LN_S" && LN_S="ln -s" 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140if test -n "${ZSH_VERSION+set}" ; then 8141 setopt NO_GLOB_SUBST 8142fi 8143 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8145$as_echo_n "checking for objdir... " >&6; } 8146if test "${lt_cv_objdir+set}" = set; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 rm -f .libs 2>/dev/null 8150mkdir .libs 2>/dev/null 8151if test -d .libs; then 8152 lt_cv_objdir=.libs 8153else 8154 # MS-DOS does not allow filenames that begin with a dot. 8155 lt_cv_objdir=_libs 8156fi 8157rmdir .libs 2>/dev/null 8158fi 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8160$as_echo "$lt_cv_objdir" >&6; } 8161objdir=$lt_cv_objdir 8162 8163 8164 8165 8166 8167cat >>confdefs.h <<_ACEOF 8168#define LT_OBJDIR "$lt_cv_objdir/" 8169_ACEOF 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187case $host_os in 8188aix3*) 8189 # AIX sometimes has problems with the GCC collect2 program. For some 8190 # reason, if we set the COLLECT_NAMES environment variable, the problems 8191 # vanish in a puff of smoke. 8192 if test "X${COLLECT_NAMES+set}" != Xset; then 8193 COLLECT_NAMES= 8194 export COLLECT_NAMES 8195 fi 8196 ;; 8197esac 8198 8199# Sed substitution that helps us do robust quoting. It backslashifies 8200# metacharacters that are still active within double-quoted strings. 8201sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8202 8203# Same as above, but do not quote variable references. 8204double_quote_subst='s/\(["`\\]\)/\\\1/g' 8205 8206# Sed substitution to delay expansion of an escaped shell variable in a 8207# double_quote_subst'ed string. 8208delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8209 8210# Sed substitution to delay expansion of an escaped single quote. 8211delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8212 8213# Sed substitution to avoid accidental globbing in evaled expressions 8214no_glob_subst='s/\*/\\\*/g' 8215 8216# Global variables: 8217ofile=libtool 8218can_build_shared=yes 8219 8220# All known linkers require a `.a' archive for static linking (except MSVC, 8221# which needs '.lib'). 8222libext=a 8223 8224with_gnu_ld="$lt_cv_prog_gnu_ld" 8225 8226old_CC="$CC" 8227old_CFLAGS="$CFLAGS" 8228 8229# Set sane defaults for various variables 8230test -z "$CC" && CC=cc 8231test -z "$LTCC" && LTCC=$CC 8232test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8233test -z "$LD" && LD=ld 8234test -z "$ac_objext" && ac_objext=o 8235 8236for cc_temp in $compiler""; do 8237 case $cc_temp in 8238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8240 \-*) ;; 8241 *) break;; 8242 esac 8243done 8244cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8245 8246 8247# Only perform the check for file, if the check method requires it 8248test -z "$MAGIC_CMD" && MAGIC_CMD=file 8249case $deplibs_check_method in 8250file_magic*) 8251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8253$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8254if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 case $MAGIC_CMD in 8258[\\/*] | ?:[\\/]*) 8259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8260 ;; 8261*) 8262 lt_save_MAGIC_CMD="$MAGIC_CMD" 8263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8265 for ac_dir in $ac_dummy; do 8266 IFS="$lt_save_ifs" 8267 test -z "$ac_dir" && ac_dir=. 8268 if test -f $ac_dir/${ac_tool_prefix}file; then 8269 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8270 if test -n "$file_magic_test_file"; then 8271 case $deplibs_check_method in 8272 "file_magic "*) 8273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8276 $EGREP "$file_magic_regex" > /dev/null; then 8277 : 8278 else 8279 cat <<_LT_EOF 1>&2 8280 8281*** Warning: the command libtool uses to detect shared libraries, 8282*** $file_magic_cmd, produces output that libtool cannot recognize. 8283*** The result is that libtool may fail to recognize shared libraries 8284*** as such. This will affect the creation of libtool libraries that 8285*** depend on shared libraries, but programs linked with such libtool 8286*** libraries will work regardless of this problem. Nevertheless, you 8287*** may want to report the problem to your system manager and/or to 8288*** bug-libtool@gnu.org 8289 8290_LT_EOF 8291 fi ;; 8292 esac 8293 fi 8294 break 8295 fi 8296 done 8297 IFS="$lt_save_ifs" 8298 MAGIC_CMD="$lt_save_MAGIC_CMD" 8299 ;; 8300esac 8301fi 8302 8303MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8304if test -n "$MAGIC_CMD"; then 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8306$as_echo "$MAGIC_CMD" >&6; } 8307else 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8309$as_echo "no" >&6; } 8310fi 8311 8312 8313 8314 8315 8316if test -z "$lt_cv_path_MAGIC_CMD"; then 8317 if test -n "$ac_tool_prefix"; then 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8319$as_echo_n "checking for file... " >&6; } 8320if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 case $MAGIC_CMD in 8324[\\/*] | ?:[\\/]*) 8325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8326 ;; 8327*) 8328 lt_save_MAGIC_CMD="$MAGIC_CMD" 8329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8331 for ac_dir in $ac_dummy; do 8332 IFS="$lt_save_ifs" 8333 test -z "$ac_dir" && ac_dir=. 8334 if test -f $ac_dir/file; then 8335 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8336 if test -n "$file_magic_test_file"; then 8337 case $deplibs_check_method in 8338 "file_magic "*) 8339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8342 $EGREP "$file_magic_regex" > /dev/null; then 8343 : 8344 else 8345 cat <<_LT_EOF 1>&2 8346 8347*** Warning: the command libtool uses to detect shared libraries, 8348*** $file_magic_cmd, produces output that libtool cannot recognize. 8349*** The result is that libtool may fail to recognize shared libraries 8350*** as such. This will affect the creation of libtool libraries that 8351*** depend on shared libraries, but programs linked with such libtool 8352*** libraries will work regardless of this problem. Nevertheless, you 8353*** may want to report the problem to your system manager and/or to 8354*** bug-libtool@gnu.org 8355 8356_LT_EOF 8357 fi ;; 8358 esac 8359 fi 8360 break 8361 fi 8362 done 8363 IFS="$lt_save_ifs" 8364 MAGIC_CMD="$lt_save_MAGIC_CMD" 8365 ;; 8366esac 8367fi 8368 8369MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8370if test -n "$MAGIC_CMD"; then 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8372$as_echo "$MAGIC_CMD" >&6; } 8373else 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8375$as_echo "no" >&6; } 8376fi 8377 8378 8379 else 8380 MAGIC_CMD=: 8381 fi 8382fi 8383 8384 fi 8385 ;; 8386esac 8387 8388# Use C for the default configuration in the libtool script 8389 8390lt_save_CC="$CC" 8391ac_ext=c 8392ac_cpp='$CPP $CPPFLAGS' 8393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8395ac_compiler_gnu=$ac_cv_c_compiler_gnu 8396 8397 8398# Source file extension for C test sources. 8399ac_ext=c 8400 8401# Object file extension for compiled C test sources. 8402objext=o 8403objext=$objext 8404 8405# Code to be used in simple compile tests 8406lt_simple_compile_test_code="int some_variable = 0;" 8407 8408# Code to be used in simple link tests 8409lt_simple_link_test_code='int main(){return(0);}' 8410 8411 8412 8413 8414 8415 8416 8417# If no C compiler was specified, use CC. 8418LTCC=${LTCC-"$CC"} 8419 8420# If no C compiler flags were specified, use CFLAGS. 8421LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8422 8423# Allow CC to be a program name with arguments. 8424compiler=$CC 8425 8426# Save the default compiler, since it gets overwritten when the other 8427# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8428compiler_DEFAULT=$CC 8429 8430# save warnings/boilerplate of simple test code 8431ac_outfile=conftest.$ac_objext 8432echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8433eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8434_lt_compiler_boilerplate=`cat conftest.err` 8435$RM conftest* 8436 8437ac_outfile=conftest.$ac_objext 8438echo "$lt_simple_link_test_code" >conftest.$ac_ext 8439eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8440_lt_linker_boilerplate=`cat conftest.err` 8441$RM -r conftest* 8442 8443 8444if test -n "$compiler"; then 8445 8446lt_prog_compiler_no_builtin_flag= 8447 8448if test "$GCC" = yes; then 8449 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8450 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8452$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8453if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 lt_cv_prog_compiler_rtti_exceptions=no 8457 ac_outfile=conftest.$ac_objext 8458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8459 lt_compiler_flag="-fno-rtti -fno-exceptions" 8460 # Insert the option either (1) after the last *FLAGS variable, or 8461 # (2) before a word containing "conftest.", or (3) at the end. 8462 # Note that $ac_compile itself does not contain backslashes and begins 8463 # with a dollar sign (not a hyphen), so the echo should work correctly. 8464 # The option is referenced via a variable to avoid confusing sed. 8465 lt_compile=`echo "$ac_compile" | $SED \ 8466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8468 -e 's:$: $lt_compiler_flag:'` 8469 (eval echo "\"\$as_me:8469: $lt_compile\"" >&5) 8470 (eval "$lt_compile" 2>conftest.err) 8471 ac_status=$? 8472 cat conftest.err >&5 8473 echo "$as_me:8473: \$? = $ac_status" >&5 8474 if (exit $ac_status) && test -s "$ac_outfile"; then 8475 # The compiler can only warn and ignore the option if not recognized 8476 # So say no if there are warnings other than the usual output. 8477 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8480 lt_cv_prog_compiler_rtti_exceptions=yes 8481 fi 8482 fi 8483 $RM conftest* 8484 8485fi 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8487$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8488 8489if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8490 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8491else 8492 : 8493fi 8494 8495fi 8496 8497 8498 8499 8500 8501 8502 lt_prog_compiler_wl= 8503lt_prog_compiler_pic= 8504lt_prog_compiler_static= 8505 8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8507$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8508 8509 if test "$GCC" = yes; then 8510 lt_prog_compiler_wl='-Wl,' 8511 lt_prog_compiler_static='-static' 8512 8513 case $host_os in 8514 aix*) 8515 # All AIX code is PIC. 8516 if test "$host_cpu" = ia64; then 8517 # AIX 5 now supports IA64 processor 8518 lt_prog_compiler_static='-Bstatic' 8519 fi 8520 ;; 8521 8522 amigaos*) 8523 case $host_cpu in 8524 powerpc) 8525 # see comment about AmigaOS4 .so support 8526 lt_prog_compiler_pic='-fPIC' 8527 ;; 8528 m68k) 8529 # FIXME: we need at least 68020 code to build shared libraries, but 8530 # adding the `-m68020' flag to GCC prevents building anything better, 8531 # like `-m68040'. 8532 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8533 ;; 8534 esac 8535 ;; 8536 8537 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8538 # PIC is the default for these OSes. 8539 ;; 8540 8541 mingw* | cygwin* | pw32* | os2* | cegcc*) 8542 # This hack is so that the source file can tell whether it is being 8543 # built for inclusion in a dll (and should export symbols for example). 8544 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8545 # (--disable-auto-import) libraries 8546 lt_prog_compiler_pic='-DDLL_EXPORT' 8547 ;; 8548 8549 darwin* | rhapsody*) 8550 # PIC is the default on this platform 8551 # Common symbols not allowed in MH_DYLIB files 8552 lt_prog_compiler_pic='-fno-common' 8553 ;; 8554 8555 hpux*) 8556 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8557 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8558 # sets the default TLS model and affects inlining. 8559 case $host_cpu in 8560 hppa*64*) 8561 # +Z the default 8562 ;; 8563 *) 8564 lt_prog_compiler_pic='-fPIC' 8565 ;; 8566 esac 8567 ;; 8568 8569 interix[3-9]*) 8570 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8571 # Instead, we relocate shared libraries at runtime. 8572 ;; 8573 8574 msdosdjgpp*) 8575 # Just because we use GCC doesn't mean we suddenly get shared libraries 8576 # on systems that don't support them. 8577 lt_prog_compiler_can_build_shared=no 8578 enable_shared=no 8579 ;; 8580 8581 *nto* | *qnx*) 8582 # QNX uses GNU C++, but need to define -shared option too, otherwise 8583 # it will coredump. 8584 lt_prog_compiler_pic='-fPIC -shared' 8585 ;; 8586 8587 sysv4*MP*) 8588 if test -d /usr/nec; then 8589 lt_prog_compiler_pic=-Kconform_pic 8590 fi 8591 ;; 8592 8593 *) 8594 lt_prog_compiler_pic='-fPIC' 8595 ;; 8596 esac 8597 else 8598 # PORTME Check for flag to pass linker flags through the system compiler. 8599 case $host_os in 8600 aix*) 8601 lt_prog_compiler_wl='-Wl,' 8602 if test "$host_cpu" = ia64; then 8603 # AIX 5 now supports IA64 processor 8604 lt_prog_compiler_static='-Bstatic' 8605 else 8606 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8607 fi 8608 ;; 8609 8610 mingw* | cygwin* | pw32* | os2* | cegcc*) 8611 # This hack is so that the source file can tell whether it is being 8612 # built for inclusion in a dll (and should export symbols for example). 8613 lt_prog_compiler_pic='-DDLL_EXPORT' 8614 ;; 8615 8616 hpux9* | hpux10* | hpux11*) 8617 lt_prog_compiler_wl='-Wl,' 8618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8619 # not for PA HP-UX. 8620 case $host_cpu in 8621 hppa*64*|ia64*) 8622 # +Z the default 8623 ;; 8624 *) 8625 lt_prog_compiler_pic='+Z' 8626 ;; 8627 esac 8628 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8629 lt_prog_compiler_static='${wl}-a ${wl}archive' 8630 ;; 8631 8632 irix5* | irix6* | nonstopux*) 8633 lt_prog_compiler_wl='-Wl,' 8634 # PIC (with -KPIC) is the default. 8635 lt_prog_compiler_static='-non_shared' 8636 ;; 8637 8638 linux* | k*bsd*-gnu) 8639 case $cc_basename in 8640 # old Intel for x86_64 which still supported -KPIC. 8641 ecc*) 8642 lt_prog_compiler_wl='-Wl,' 8643 lt_prog_compiler_pic='-KPIC' 8644 lt_prog_compiler_static='-static' 8645 ;; 8646 # icc used to be incompatible with GCC. 8647 # ICC 10 doesn't accept -KPIC any more. 8648 icc* | ifort*) 8649 lt_prog_compiler_wl='-Wl,' 8650 lt_prog_compiler_pic='-fPIC' 8651 lt_prog_compiler_static='-static' 8652 ;; 8653 # Lahey Fortran 8.1. 8654 lf95*) 8655 lt_prog_compiler_wl='-Wl,' 8656 lt_prog_compiler_pic='--shared' 8657 lt_prog_compiler_static='--static' 8658 ;; 8659 pgcc* | pgf77* | pgf90* | pgf95*) 8660 # Portland Group compilers (*not* the Pentium gcc compiler, 8661 # which looks to be a dead project) 8662 lt_prog_compiler_wl='-Wl,' 8663 lt_prog_compiler_pic='-fpic' 8664 lt_prog_compiler_static='-Bstatic' 8665 ;; 8666 ccc*) 8667 lt_prog_compiler_wl='-Wl,' 8668 # All Alpha code is PIC. 8669 lt_prog_compiler_static='-non_shared' 8670 ;; 8671 xl*) 8672 # IBM XL C 8.0/Fortran 10.1 on PPC 8673 lt_prog_compiler_wl='-Wl,' 8674 lt_prog_compiler_pic='-qpic' 8675 lt_prog_compiler_static='-qstaticlink' 8676 ;; 8677 *) 8678 case `$CC -V 2>&1 | sed 5q` in 8679 *Sun\ C*) 8680 # Sun C 5.9 8681 lt_prog_compiler_pic='-KPIC' 8682 lt_prog_compiler_static='-Bstatic' 8683 lt_prog_compiler_wl='-Wl,' 8684 ;; 8685 *Sun\ F*) 8686 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8687 lt_prog_compiler_pic='-KPIC' 8688 lt_prog_compiler_static='-Bstatic' 8689 lt_prog_compiler_wl='' 8690 ;; 8691 esac 8692 ;; 8693 esac 8694 ;; 8695 8696 newsos6) 8697 lt_prog_compiler_pic='-KPIC' 8698 lt_prog_compiler_static='-Bstatic' 8699 ;; 8700 8701 *nto* | *qnx*) 8702 # QNX uses GNU C++, but need to define -shared option too, otherwise 8703 # it will coredump. 8704 lt_prog_compiler_pic='-fPIC -shared' 8705 ;; 8706 8707 osf3* | osf4* | osf5*) 8708 lt_prog_compiler_wl='-Wl,' 8709 # All OSF/1 code is PIC. 8710 lt_prog_compiler_static='-non_shared' 8711 ;; 8712 8713 rdos*) 8714 lt_prog_compiler_static='-non_shared' 8715 ;; 8716 8717 solaris*) 8718 lt_prog_compiler_pic='-KPIC' 8719 lt_prog_compiler_static='-Bstatic' 8720 case $cc_basename in 8721 f77* | f90* | f95*) 8722 lt_prog_compiler_wl='-Qoption ld ';; 8723 *) 8724 lt_prog_compiler_wl='-Wl,';; 8725 esac 8726 ;; 8727 8728 sunos4*) 8729 lt_prog_compiler_wl='-Qoption ld ' 8730 lt_prog_compiler_pic='-PIC' 8731 lt_prog_compiler_static='-Bstatic' 8732 ;; 8733 8734 sysv4 | sysv4.2uw2* | sysv4.3*) 8735 lt_prog_compiler_wl='-Wl,' 8736 lt_prog_compiler_pic='-KPIC' 8737 lt_prog_compiler_static='-Bstatic' 8738 ;; 8739 8740 sysv4*MP*) 8741 if test -d /usr/nec ;then 8742 lt_prog_compiler_pic='-Kconform_pic' 8743 lt_prog_compiler_static='-Bstatic' 8744 fi 8745 ;; 8746 8747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8748 lt_prog_compiler_wl='-Wl,' 8749 lt_prog_compiler_pic='-KPIC' 8750 lt_prog_compiler_static='-Bstatic' 8751 ;; 8752 8753 unicos*) 8754 lt_prog_compiler_wl='-Wl,' 8755 lt_prog_compiler_can_build_shared=no 8756 ;; 8757 8758 uts4*) 8759 lt_prog_compiler_pic='-pic' 8760 lt_prog_compiler_static='-Bstatic' 8761 ;; 8762 8763 *) 8764 lt_prog_compiler_can_build_shared=no 8765 ;; 8766 esac 8767 fi 8768 8769case $host_os in 8770 # For platforms which do not support PIC, -DPIC is meaningless: 8771 *djgpp*) 8772 lt_prog_compiler_pic= 8773 ;; 8774 *) 8775 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8776 ;; 8777esac 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8779$as_echo "$lt_prog_compiler_pic" >&6; } 8780 8781 8782 8783 8784 8785 8786# 8787# Check to make sure the PIC flag actually works. 8788# 8789if test -n "$lt_prog_compiler_pic"; then 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8791$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8792if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8793 $as_echo_n "(cached) " >&6 8794else 8795 lt_cv_prog_compiler_pic_works=no 8796 ac_outfile=conftest.$ac_objext 8797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8799 # Insert the option either (1) after the last *FLAGS variable, or 8800 # (2) before a word containing "conftest.", or (3) at the end. 8801 # Note that $ac_compile itself does not contain backslashes and begins 8802 # with a dollar sign (not a hyphen), so the echo should work correctly. 8803 # The option is referenced via a variable to avoid confusing sed. 8804 lt_compile=`echo "$ac_compile" | $SED \ 8805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8807 -e 's:$: $lt_compiler_flag:'` 8808 (eval echo "\"\$as_me:8808: $lt_compile\"" >&5) 8809 (eval "$lt_compile" 2>conftest.err) 8810 ac_status=$? 8811 cat conftest.err >&5 8812 echo "$as_me:8812: \$? = $ac_status" >&5 8813 if (exit $ac_status) && test -s "$ac_outfile"; then 8814 # The compiler can only warn and ignore the option if not recognized 8815 # So say no if there are warnings other than the usual output. 8816 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8819 lt_cv_prog_compiler_pic_works=yes 8820 fi 8821 fi 8822 $RM conftest* 8823 8824fi 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8826$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8827 8828if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8829 case $lt_prog_compiler_pic in 8830 "" | " "*) ;; 8831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8832 esac 8833else 8834 lt_prog_compiler_pic= 8835 lt_prog_compiler_can_build_shared=no 8836fi 8837 8838fi 8839 8840 8841 8842 8843 8844 8845# 8846# Check to make sure the static flag actually works. 8847# 8848wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8850$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8851if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8852 $as_echo_n "(cached) " >&6 8853else 8854 lt_cv_prog_compiler_static_works=no 8855 save_LDFLAGS="$LDFLAGS" 8856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8857 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8859 # The linker can only warn and ignore the option if not recognized 8860 # So say no if there are warnings 8861 if test -s conftest.err; then 8862 # Append any errors to the config.log. 8863 cat conftest.err 1>&5 8864 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8866 if diff conftest.exp conftest.er2 >/dev/null; then 8867 lt_cv_prog_compiler_static_works=yes 8868 fi 8869 else 8870 lt_cv_prog_compiler_static_works=yes 8871 fi 8872 fi 8873 $RM -r conftest* 8874 LDFLAGS="$save_LDFLAGS" 8875 8876fi 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8878$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8879 8880if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8881 : 8882else 8883 lt_prog_compiler_static= 8884fi 8885 8886 8887 8888 8889 8890 8891 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8893$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8894if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 lt_cv_prog_compiler_c_o=no 8898 $RM -r conftest 2>/dev/null 8899 mkdir conftest 8900 cd conftest 8901 mkdir out 8902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8903 8904 lt_compiler_flag="-o out/conftest2.$ac_objext" 8905 # Insert the option either (1) after the last *FLAGS variable, or 8906 # (2) before a word containing "conftest.", or (3) at the end. 8907 # Note that $ac_compile itself does not contain backslashes and begins 8908 # with a dollar sign (not a hyphen), so the echo should work correctly. 8909 lt_compile=`echo "$ac_compile" | $SED \ 8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8912 -e 's:$: $lt_compiler_flag:'` 8913 (eval echo "\"\$as_me:8913: $lt_compile\"" >&5) 8914 (eval "$lt_compile" 2>out/conftest.err) 8915 ac_status=$? 8916 cat out/conftest.err >&5 8917 echo "$as_me:8917: \$? = $ac_status" >&5 8918 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8919 then 8920 # The compiler can only warn and ignore the option if not recognized 8921 # So say no if there are warnings 8922 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8925 lt_cv_prog_compiler_c_o=yes 8926 fi 8927 fi 8928 chmod u+w . 2>&5 8929 $RM conftest* 8930 # SGI C++ compiler will create directory out/ii_files/ for 8931 # template instantiation 8932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8933 $RM out/* && rmdir out 8934 cd .. 8935 $RM -r conftest 8936 $RM conftest* 8937 8938fi 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8940$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8941 8942 8943 8944 8945 8946 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8948$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8949if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8950 $as_echo_n "(cached) " >&6 8951else 8952 lt_cv_prog_compiler_c_o=no 8953 $RM -r conftest 2>/dev/null 8954 mkdir conftest 8955 cd conftest 8956 mkdir out 8957 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8958 8959 lt_compiler_flag="-o out/conftest2.$ac_objext" 8960 # Insert the option either (1) after the last *FLAGS variable, or 8961 # (2) before a word containing "conftest.", or (3) at the end. 8962 # Note that $ac_compile itself does not contain backslashes and begins 8963 # with a dollar sign (not a hyphen), so the echo should work correctly. 8964 lt_compile=`echo "$ac_compile" | $SED \ 8965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8967 -e 's:$: $lt_compiler_flag:'` 8968 (eval echo "\"\$as_me:8968: $lt_compile\"" >&5) 8969 (eval "$lt_compile" 2>out/conftest.err) 8970 ac_status=$? 8971 cat out/conftest.err >&5 8972 echo "$as_me:8972: \$? = $ac_status" >&5 8973 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8974 then 8975 # The compiler can only warn and ignore the option if not recognized 8976 # So say no if there are warnings 8977 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8978 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8979 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8980 lt_cv_prog_compiler_c_o=yes 8981 fi 8982 fi 8983 chmod u+w . 2>&5 8984 $RM conftest* 8985 # SGI C++ compiler will create directory out/ii_files/ for 8986 # template instantiation 8987 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8988 $RM out/* && rmdir out 8989 cd .. 8990 $RM -r conftest 8991 $RM conftest* 8992 8993fi 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8995$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8996 8997 8998 8999 9000hard_links="nottested" 9001if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9002 # do not overwrite the value of need_locks provided by the user 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9004$as_echo_n "checking if we can lock with hard links... " >&6; } 9005 hard_links=yes 9006 $RM conftest* 9007 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9008 touch conftest.a 9009 ln conftest.a conftest.b 2>&5 || hard_links=no 9010 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9012$as_echo "$hard_links" >&6; } 9013 if test "$hard_links" = no; then 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9015$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9016 need_locks=warn 9017 fi 9018else 9019 need_locks=no 9020fi 9021 9022 9023 9024 9025 9026 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9028$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9029 9030 runpath_var= 9031 allow_undefined_flag= 9032 always_export_symbols=no 9033 archive_cmds= 9034 archive_expsym_cmds= 9035 compiler_needs_object=no 9036 enable_shared_with_static_runtimes=no 9037 export_dynamic_flag_spec= 9038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9039 hardcode_automatic=no 9040 hardcode_direct=no 9041 hardcode_direct_absolute=no 9042 hardcode_libdir_flag_spec= 9043 hardcode_libdir_flag_spec_ld= 9044 hardcode_libdir_separator= 9045 hardcode_minus_L=no 9046 hardcode_shlibpath_var=unsupported 9047 inherit_rpath=no 9048 link_all_deplibs=unknown 9049 module_cmds= 9050 module_expsym_cmds= 9051 old_archive_from_new_cmds= 9052 old_archive_from_expsyms_cmds= 9053 thread_safe_flag_spec= 9054 whole_archive_flag_spec= 9055 # include_expsyms should be a list of space-separated symbols to be *always* 9056 # included in the symbol list 9057 include_expsyms= 9058 # exclude_expsyms can be an extended regexp of symbols to exclude 9059 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9061 # as well as any symbol that contains `d'. 9062 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9064 # platforms (ab)use it in PIC code, but their linkers get confused if 9065 # the symbol is explicitly referenced. Since portable code cannot 9066 # rely on this symbol name, it's probably fine to never include it in 9067 # preloaded symbol tables. 9068 # Exclude shared library initialization/finalization symbols. 9069 extract_expsyms_cmds= 9070 9071 case $host_os in 9072 cygwin* | mingw* | pw32* | cegcc*) 9073 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9074 # When not using gcc, we currently assume that we are using 9075 # Microsoft Visual C++. 9076 if test "$GCC" != yes; then 9077 with_gnu_ld=no 9078 fi 9079 ;; 9080 interix*) 9081 # we just hope/assume this is gcc and not c89 (= MSVC++) 9082 with_gnu_ld=yes 9083 ;; 9084 openbsd*) 9085 with_gnu_ld=no 9086 ;; 9087 esac 9088 9089 ld_shlibs=yes 9090 if test "$with_gnu_ld" = yes; then 9091 # If archive_cmds runs LD, not CC, wlarc should be empty 9092 wlarc='${wl}' 9093 9094 # Set some defaults for GNU ld with shared library support. These 9095 # are reset later if shared libraries are not supported. Putting them 9096 # here allows them to be overridden if necessary. 9097 runpath_var=LD_RUN_PATH 9098 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9099 export_dynamic_flag_spec='${wl}--export-dynamic' 9100 # ancient GNU ld didn't support --whole-archive et. al. 9101 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9102 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9103 else 9104 whole_archive_flag_spec= 9105 fi 9106 supports_anon_versioning=no 9107 case `$LD -v 2>&1` in 9108 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9111 *\ 2.11.*) ;; # other 2.11 versions 9112 *) supports_anon_versioning=yes ;; 9113 esac 9114 9115 # See if GNU ld supports shared libraries. 9116 case $host_os in 9117 aix[3-9]*) 9118 # On AIX/PPC, the GNU linker is very broken 9119 if test "$host_cpu" != ia64; then 9120 ld_shlibs=no 9121 cat <<_LT_EOF 1>&2 9122 9123*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9124*** to be unable to reliably create shared libraries on AIX. 9125*** Therefore, libtool is disabling shared libraries support. If you 9126*** really care for shared libraries, you may want to modify your PATH 9127*** so that a non-GNU linker is found, and then restart. 9128 9129_LT_EOF 9130 fi 9131 ;; 9132 9133 amigaos*) 9134 case $host_cpu in 9135 powerpc) 9136 # see comment about AmigaOS4 .so support 9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9138 archive_expsym_cmds='' 9139 ;; 9140 m68k) 9141 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)' 9142 hardcode_libdir_flag_spec='-L$libdir' 9143 hardcode_minus_L=yes 9144 ;; 9145 esac 9146 ;; 9147 9148 beos*) 9149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9150 allow_undefined_flag=unsupported 9151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9152 # support --undefined. This deserves some investigation. FIXME 9153 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9154 else 9155 ld_shlibs=no 9156 fi 9157 ;; 9158 9159 cygwin* | mingw* | pw32* | cegcc*) 9160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9161 # as there is no search path for DLLs. 9162 hardcode_libdir_flag_spec='-L$libdir' 9163 allow_undefined_flag=unsupported 9164 always_export_symbols=no 9165 enable_shared_with_static_runtimes=yes 9166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9167 9168 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9170 # If the export-symbols file already is a .def file (1st line 9171 # is EXPORTS), use it as is; otherwise, prepend... 9172 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9173 cp $export_symbols $output_objdir/$soname.def; 9174 else 9175 echo EXPORTS > $output_objdir/$soname.def; 9176 cat $export_symbols >> $output_objdir/$soname.def; 9177 fi~ 9178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9179 else 9180 ld_shlibs=no 9181 fi 9182 ;; 9183 9184 interix[3-9]*) 9185 hardcode_direct=no 9186 hardcode_shlibpath_var=no 9187 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9188 export_dynamic_flag_spec='${wl}-E' 9189 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9190 # Instead, shared libraries are loaded at an image base (0x10000000 by 9191 # default) and relocated if they conflict, which is a slow very memory 9192 # consuming and fragmenting process. To avoid this, we pick a random, 9193 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9194 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9195 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9196 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' 9197 ;; 9198 9199 gnu* | linux* | tpf* | k*bsd*-gnu) 9200 tmp_diet=no 9201 if test "$host_os" = linux-dietlibc; then 9202 case $cc_basename in 9203 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9204 esac 9205 fi 9206 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9207 && test "$tmp_diet" = no 9208 then 9209 tmp_addflag= 9210 tmp_sharedflag='-shared' 9211 case $cc_basename,$host_cpu in 9212 pgcc*) # Portland Group C compiler 9213 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' 9214 tmp_addflag=' $pic_flag' 9215 ;; 9216 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9217 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' 9218 tmp_addflag=' $pic_flag -Mnomain' ;; 9219 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9220 tmp_addflag=' -i_dynamic' ;; 9221 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9222 tmp_addflag=' -i_dynamic -nofor_main' ;; 9223 ifc* | ifort*) # Intel Fortran compiler 9224 tmp_addflag=' -nofor_main' ;; 9225 lf95*) # Lahey Fortran 8.1 9226 whole_archive_flag_spec= 9227 tmp_sharedflag='--shared' ;; 9228 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9229 tmp_sharedflag='-qmkshrobj' 9230 tmp_addflag= ;; 9231 esac 9232 case `$CC -V 2>&1 | sed 5q` in 9233 *Sun\ C*) # Sun C 5.9 9234 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' 9235 compiler_needs_object=yes 9236 tmp_sharedflag='-G' ;; 9237 *Sun\ F*) # Sun Fortran 8.3 9238 tmp_sharedflag='-G' ;; 9239 esac 9240 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9241 9242 if test "x$supports_anon_versioning" = xyes; then 9243 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9245 echo "local: *; };" >> $output_objdir/$libname.ver~ 9246 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9247 fi 9248 9249 case $cc_basename in 9250 xlf*) 9251 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9252 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9253 hardcode_libdir_flag_spec= 9254 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9255 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9256 if test "x$supports_anon_versioning" = xyes; then 9257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9259 echo "local: *; };" >> $output_objdir/$libname.ver~ 9260 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9261 fi 9262 ;; 9263 esac 9264 else 9265 ld_shlibs=no 9266 fi 9267 ;; 9268 9269 netbsd*) 9270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9271 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9272 wlarc= 9273 else 9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9276 fi 9277 ;; 9278 9279 solaris*) 9280 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9281 ld_shlibs=no 9282 cat <<_LT_EOF 1>&2 9283 9284*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9285*** create shared libraries on Solaris systems. Therefore, libtool 9286*** is disabling shared libraries support. We urge you to upgrade GNU 9287*** binutils to release 2.9.1 or newer. Another option is to modify 9288*** your PATH or compiler configuration so that the native linker is 9289*** used, and then restart. 9290 9291_LT_EOF 9292 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9295 else 9296 ld_shlibs=no 9297 fi 9298 ;; 9299 9300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9301 case `$LD -v 2>&1` in 9302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9303 ld_shlibs=no 9304 cat <<_LT_EOF 1>&2 9305 9306*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9307*** reliably create shared libraries on SCO systems. Therefore, libtool 9308*** is disabling shared libraries support. We urge you to upgrade GNU 9309*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9310*** your PATH or compiler configuration so that the native linker is 9311*** used, and then restart. 9312 9313_LT_EOF 9314 ;; 9315 *) 9316 # For security reasons, it is highly recommended that you always 9317 # use absolute paths for naming shared libraries, and exclude the 9318 # DT_RUNPATH tag from executables and libraries. But doing so 9319 # requires that you compile everything twice, which is a pain. 9320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9324 else 9325 ld_shlibs=no 9326 fi 9327 ;; 9328 esac 9329 ;; 9330 9331 sunos4*) 9332 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9333 wlarc= 9334 hardcode_direct=yes 9335 hardcode_shlibpath_var=no 9336 ;; 9337 9338 *) 9339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9342 else 9343 ld_shlibs=no 9344 fi 9345 ;; 9346 esac 9347 9348 if test "$ld_shlibs" = no; then 9349 runpath_var= 9350 hardcode_libdir_flag_spec= 9351 export_dynamic_flag_spec= 9352 whole_archive_flag_spec= 9353 fi 9354 else 9355 # PORTME fill in a description of your system's linker (not GNU ld) 9356 case $host_os in 9357 aix3*) 9358 allow_undefined_flag=unsupported 9359 always_export_symbols=yes 9360 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' 9361 # Note: this linker hardcodes the directories in LIBPATH if there 9362 # are no directories specified by -L. 9363 hardcode_minus_L=yes 9364 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9365 # Neither direct hardcoding nor static linking is supported with a 9366 # broken collect2. 9367 hardcode_direct=unsupported 9368 fi 9369 ;; 9370 9371 aix[4-9]*) 9372 if test "$host_cpu" = ia64; then 9373 # On IA64, the linker does run time linking by default, so we don't 9374 # have to do anything special. 9375 aix_use_runtimelinking=no 9376 exp_sym_flag='-Bexport' 9377 no_entry_flag="" 9378 else 9379 # If we're using GNU nm, then we don't want the "-C" option. 9380 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9381 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9382 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' 9383 else 9384 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' 9385 fi 9386 aix_use_runtimelinking=no 9387 9388 # Test if we are trying to use run time linking or normal 9389 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9390 # need to do runtime linking. 9391 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9392 for ld_flag in $LDFLAGS; do 9393 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9394 aix_use_runtimelinking=yes 9395 break 9396 fi 9397 done 9398 ;; 9399 esac 9400 9401 exp_sym_flag='-bexport' 9402 no_entry_flag='-bnoentry' 9403 fi 9404 9405 # When large executables or shared objects are built, AIX ld can 9406 # have problems creating the table of contents. If linking a library 9407 # or program results in "error TOC overflow" add -mminimal-toc to 9408 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9409 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9410 9411 archive_cmds='' 9412 hardcode_direct=yes 9413 hardcode_direct_absolute=yes 9414 hardcode_libdir_separator=':' 9415 link_all_deplibs=yes 9416 file_list_spec='${wl}-f,' 9417 9418 if test "$GCC" = yes; then 9419 case $host_os in aix4.[012]|aix4.[012].*) 9420 # We only want to do this on AIX 4.2 and lower, the check 9421 # below for broken collect2 doesn't work under 4.3+ 9422 collect2name=`${CC} -print-prog-name=collect2` 9423 if test -f "$collect2name" && 9424 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9425 then 9426 # We have reworked collect2 9427 : 9428 else 9429 # We have old collect2 9430 hardcode_direct=unsupported 9431 # It fails to find uninstalled libraries when the uninstalled 9432 # path is not listed in the libpath. Setting hardcode_minus_L 9433 # to unsupported forces relinking 9434 hardcode_minus_L=yes 9435 hardcode_libdir_flag_spec='-L$libdir' 9436 hardcode_libdir_separator= 9437 fi 9438 ;; 9439 esac 9440 shared_flag='-shared' 9441 if test "$aix_use_runtimelinking" = yes; then 9442 shared_flag="$shared_flag "'${wl}-G' 9443 fi 9444 else 9445 # not using gcc 9446 if test "$host_cpu" = ia64; then 9447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9448 # chokes on -Wl,-G. The following line is correct: 9449 shared_flag='-G' 9450 else 9451 if test "$aix_use_runtimelinking" = yes; then 9452 shared_flag='${wl}-G' 9453 else 9454 shared_flag='${wl}-bM:SRE' 9455 fi 9456 fi 9457 fi 9458 9459 export_dynamic_flag_spec='${wl}-bexpall' 9460 # It seems that -bexpall does not export symbols beginning with 9461 # underscore (_), so it is better to generate a list of symbols to export. 9462 always_export_symbols=yes 9463 if test "$aix_use_runtimelinking" = yes; then 9464 # Warning - without using the other runtime loading flags (-brtl), 9465 # -berok will link without error, but may produce a broken library. 9466 allow_undefined_flag='-berok' 9467 # Determine the default libpath from the value encoded in an 9468 # empty executable. 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471 9472int 9473main () 9474{ 9475 9476 ; 9477 return 0; 9478} 9479_ACEOF 9480if ac_fn_c_try_link "$LINENO"; then : 9481 9482lt_aix_libpath_sed=' 9483 /Import File Strings/,/^$/ { 9484 /^0/ { 9485 s/^0 *\(.*\)$/\1/ 9486 p 9487 } 9488 }' 9489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9490# Check for a 64-bit object if we didn't find anything. 9491if test -z "$aix_libpath"; then 9492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9493fi 9494fi 9495rm -f core conftest.err conftest.$ac_objext \ 9496 conftest$ac_exeext conftest.$ac_ext 9497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9498 9499 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9500 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" 9501 else 9502 if test "$host_cpu" = ia64; then 9503 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9504 allow_undefined_flag="-z nodefs" 9505 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" 9506 else 9507 # Determine the default libpath from the value encoded in an 9508 # empty executable. 9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510/* end confdefs.h. */ 9511 9512int 9513main () 9514{ 9515 9516 ; 9517 return 0; 9518} 9519_ACEOF 9520if ac_fn_c_try_link "$LINENO"; then : 9521 9522lt_aix_libpath_sed=' 9523 /Import File Strings/,/^$/ { 9524 /^0/ { 9525 s/^0 *\(.*\)$/\1/ 9526 p 9527 } 9528 }' 9529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9530# Check for a 64-bit object if we didn't find anything. 9531if test -z "$aix_libpath"; then 9532 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9533fi 9534fi 9535rm -f core conftest.err conftest.$ac_objext \ 9536 conftest$ac_exeext conftest.$ac_ext 9537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9538 9539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9540 # Warning - without using the other run time loading flags, 9541 # -berok will link without error, but may produce a broken library. 9542 no_undefined_flag=' ${wl}-bernotok' 9543 allow_undefined_flag=' ${wl}-berok' 9544 # Exported symbols can be pulled into shared objects from archives 9545 whole_archive_flag_spec='$convenience' 9546 archive_cmds_need_lc=yes 9547 # This is similar to how AIX traditionally builds its shared libraries. 9548 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' 9549 fi 9550 fi 9551 ;; 9552 9553 amigaos*) 9554 case $host_cpu in 9555 powerpc) 9556 # see comment about AmigaOS4 .so support 9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9558 archive_expsym_cmds='' 9559 ;; 9560 m68k) 9561 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)' 9562 hardcode_libdir_flag_spec='-L$libdir' 9563 hardcode_minus_L=yes 9564 ;; 9565 esac 9566 ;; 9567 9568 bsdi[45]*) 9569 export_dynamic_flag_spec=-rdynamic 9570 ;; 9571 9572 cygwin* | mingw* | pw32* | cegcc*) 9573 # When not using gcc, we currently assume that we are using 9574 # Microsoft Visual C++. 9575 # hardcode_libdir_flag_spec is actually meaningless, as there is 9576 # no search path for DLLs. 9577 hardcode_libdir_flag_spec=' ' 9578 allow_undefined_flag=unsupported 9579 # Tell ltmain to make .lib files, not .a files. 9580 libext=lib 9581 # Tell ltmain to make .dll files, not .so files. 9582 shrext_cmds=".dll" 9583 # FIXME: Setting linknames here is a bad hack. 9584 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9585 # The linker will automatically build a .lib file if we build a DLL. 9586 old_archive_from_new_cmds='true' 9587 # FIXME: Should let the user specify the lib program. 9588 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9589 fix_srcfile_path='`cygpath -w "$srcfile"`' 9590 enable_shared_with_static_runtimes=yes 9591 ;; 9592 9593 darwin* | rhapsody*) 9594 9595 9596 archive_cmds_need_lc=no 9597 hardcode_direct=no 9598 hardcode_automatic=yes 9599 hardcode_shlibpath_var=unsupported 9600 whole_archive_flag_spec='' 9601 link_all_deplibs=yes 9602 allow_undefined_flag="$_lt_dar_allow_undefined" 9603 case $cc_basename in 9604 ifort*) _lt_dar_can_shared=yes ;; 9605 *) _lt_dar_can_shared=$GCC ;; 9606 esac 9607 if test "$_lt_dar_can_shared" = "yes"; then 9608 output_verbose_link_cmd=echo 9609 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9610 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9611 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9612 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9613 9614 else 9615 ld_shlibs=no 9616 fi 9617 9618 ;; 9619 9620 dgux*) 9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9622 hardcode_libdir_flag_spec='-L$libdir' 9623 hardcode_shlibpath_var=no 9624 ;; 9625 9626 freebsd1*) 9627 ld_shlibs=no 9628 ;; 9629 9630 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9631 # support. Future versions do this automatically, but an explicit c++rt0.o 9632 # does not break anything, and helps significantly (at the cost of a little 9633 # extra space). 9634 freebsd2.2*) 9635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9636 hardcode_libdir_flag_spec='-R$libdir' 9637 hardcode_direct=yes 9638 hardcode_shlibpath_var=no 9639 ;; 9640 9641 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9642 freebsd2*) 9643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9644 hardcode_direct=yes 9645 hardcode_minus_L=yes 9646 hardcode_shlibpath_var=no 9647 ;; 9648 9649 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9650 freebsd* | dragonfly*) 9651 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9652 hardcode_libdir_flag_spec='-R$libdir' 9653 hardcode_direct=yes 9654 hardcode_shlibpath_var=no 9655 ;; 9656 9657 hpux9*) 9658 if test "$GCC" = yes; then 9659 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' 9660 else 9661 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' 9662 fi 9663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9664 hardcode_libdir_separator=: 9665 hardcode_direct=yes 9666 9667 # hardcode_minus_L: Not really in the search PATH, 9668 # but as the default location of the library. 9669 hardcode_minus_L=yes 9670 export_dynamic_flag_spec='${wl}-E' 9671 ;; 9672 9673 hpux10*) 9674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9675 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9676 else 9677 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9678 fi 9679 if test "$with_gnu_ld" = no; then 9680 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9681 hardcode_libdir_flag_spec_ld='+b $libdir' 9682 hardcode_libdir_separator=: 9683 hardcode_direct=yes 9684 hardcode_direct_absolute=yes 9685 export_dynamic_flag_spec='${wl}-E' 9686 # hardcode_minus_L: Not really in the search PATH, 9687 # but as the default location of the library. 9688 hardcode_minus_L=yes 9689 fi 9690 ;; 9691 9692 hpux11*) 9693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9694 case $host_cpu in 9695 hppa*64*) 9696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9697 ;; 9698 ia64*) 9699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9700 ;; 9701 *) 9702 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9703 ;; 9704 esac 9705 else 9706 case $host_cpu in 9707 hppa*64*) 9708 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9709 ;; 9710 ia64*) 9711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9712 ;; 9713 *) 9714 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9715 ;; 9716 esac 9717 fi 9718 if test "$with_gnu_ld" = no; then 9719 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9720 hardcode_libdir_separator=: 9721 9722 case $host_cpu in 9723 hppa*64*|ia64*) 9724 hardcode_direct=no 9725 hardcode_shlibpath_var=no 9726 ;; 9727 *) 9728 hardcode_direct=yes 9729 hardcode_direct_absolute=yes 9730 export_dynamic_flag_spec='${wl}-E' 9731 9732 # hardcode_minus_L: Not really in the search PATH, 9733 # but as the default location of the library. 9734 hardcode_minus_L=yes 9735 ;; 9736 esac 9737 fi 9738 ;; 9739 9740 irix5* | irix6* | nonstopux*) 9741 if test "$GCC" = yes; then 9742 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' 9743 # Try to use the -exported_symbol ld option, if it does not 9744 # work, assume that -exports_file does not work either and 9745 # implicitly export all symbols. 9746 save_LDFLAGS="$LDFLAGS" 9747 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9749/* end confdefs.h. */ 9750int foo(void) {} 9751_ACEOF 9752if ac_fn_c_try_link "$LINENO"; then : 9753 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' 9754 9755fi 9756rm -f core conftest.err conftest.$ac_objext \ 9757 conftest$ac_exeext conftest.$ac_ext 9758 LDFLAGS="$save_LDFLAGS" 9759 else 9760 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' 9761 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' 9762 fi 9763 archive_cmds_need_lc='no' 9764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9765 hardcode_libdir_separator=: 9766 inherit_rpath=yes 9767 link_all_deplibs=yes 9768 ;; 9769 9770 netbsd*) 9771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9773 else 9774 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9775 fi 9776 hardcode_libdir_flag_spec='-R$libdir' 9777 hardcode_direct=yes 9778 hardcode_shlibpath_var=no 9779 ;; 9780 9781 newsos6) 9782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9783 hardcode_direct=yes 9784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9785 hardcode_libdir_separator=: 9786 hardcode_shlibpath_var=no 9787 ;; 9788 9789 *nto* | *qnx*) 9790 ;; 9791 9792 openbsd*) 9793 if test -f /usr/libexec/ld.so; then 9794 hardcode_direct=yes 9795 hardcode_shlibpath_var=no 9796 hardcode_direct_absolute=yes 9797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9799 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9801 export_dynamic_flag_spec='${wl}-E' 9802 else 9803 case $host_os in 9804 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9806 hardcode_libdir_flag_spec='-R$libdir' 9807 ;; 9808 *) 9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9811 ;; 9812 esac 9813 fi 9814 else 9815 ld_shlibs=no 9816 fi 9817 ;; 9818 9819 os2*) 9820 hardcode_libdir_flag_spec='-L$libdir' 9821 hardcode_minus_L=yes 9822 allow_undefined_flag=unsupported 9823 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' 9824 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9825 ;; 9826 9827 osf3*) 9828 if test "$GCC" = yes; then 9829 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9830 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' 9831 else 9832 allow_undefined_flag=' -expect_unresolved \*' 9833 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' 9834 fi 9835 archive_cmds_need_lc='no' 9836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9837 hardcode_libdir_separator=: 9838 ;; 9839 9840 osf4* | osf5*) # as osf3* with the addition of -msym flag 9841 if test "$GCC" = yes; then 9842 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9843 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' 9844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9845 else 9846 allow_undefined_flag=' -expect_unresolved \*' 9847 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' 9848 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~ 9849 $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' 9850 9851 # Both c and cxx compiler support -rpath directly 9852 hardcode_libdir_flag_spec='-rpath $libdir' 9853 fi 9854 archive_cmds_need_lc='no' 9855 hardcode_libdir_separator=: 9856 ;; 9857 9858 solaris*) 9859 no_undefined_flag=' -z defs' 9860 if test "$GCC" = yes; then 9861 wlarc='${wl}' 9862 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9864 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9865 else 9866 case `$CC -V 2>&1` in 9867 *"Compilers 5.0"*) 9868 wlarc='' 9869 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9872 ;; 9873 *) 9874 wlarc='${wl}' 9875 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9877 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9878 ;; 9879 esac 9880 fi 9881 hardcode_libdir_flag_spec='-R$libdir' 9882 hardcode_shlibpath_var=no 9883 case $host_os in 9884 solaris2.[0-5] | solaris2.[0-5].*) ;; 9885 *) 9886 # The compiler driver will combine and reorder linker options, 9887 # but understands `-z linker_flag'. GCC discards it without `$wl', 9888 # but is careful enough not to reorder. 9889 # Supported since Solaris 2.6 (maybe 2.5.1?) 9890 if test "$GCC" = yes; then 9891 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9892 else 9893 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9894 fi 9895 ;; 9896 esac 9897 link_all_deplibs=yes 9898 ;; 9899 9900 sunos4*) 9901 if test "x$host_vendor" = xsequent; then 9902 # Use $CC to link under sequent, because it throws in some extra .o 9903 # files that make .init and .fini sections work. 9904 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9905 else 9906 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9907 fi 9908 hardcode_libdir_flag_spec='-L$libdir' 9909 hardcode_direct=yes 9910 hardcode_minus_L=yes 9911 hardcode_shlibpath_var=no 9912 ;; 9913 9914 sysv4) 9915 case $host_vendor in 9916 sni) 9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9918 hardcode_direct=yes # is this really true??? 9919 ;; 9920 siemens) 9921 ## LD is ld it makes a PLAMLIB 9922 ## CC just makes a GrossModule. 9923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9924 reload_cmds='$CC -r -o $output$reload_objs' 9925 hardcode_direct=no 9926 ;; 9927 motorola) 9928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9929 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9930 ;; 9931 esac 9932 runpath_var='LD_RUN_PATH' 9933 hardcode_shlibpath_var=no 9934 ;; 9935 9936 sysv4.3*) 9937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9938 hardcode_shlibpath_var=no 9939 export_dynamic_flag_spec='-Bexport' 9940 ;; 9941 9942 sysv4*MP*) 9943 if test -d /usr/nec; then 9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9945 hardcode_shlibpath_var=no 9946 runpath_var=LD_RUN_PATH 9947 hardcode_runpath_var=yes 9948 ld_shlibs=yes 9949 fi 9950 ;; 9951 9952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9953 no_undefined_flag='${wl}-z,text' 9954 archive_cmds_need_lc=no 9955 hardcode_shlibpath_var=no 9956 runpath_var='LD_RUN_PATH' 9957 9958 if test "$GCC" = yes; then 9959 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9960 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9961 else 9962 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9963 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9964 fi 9965 ;; 9966 9967 sysv5* | sco3.2v5* | sco5v6*) 9968 # Note: We can NOT use -z defs as we might desire, because we do not 9969 # link with -lc, and that would cause any symbols used from libc to 9970 # always be unresolved, which means just about no library would 9971 # ever link correctly. If we're not using GNU ld we use -z text 9972 # though, which does catch some bad symbols but isn't as heavy-handed 9973 # as -z defs. 9974 no_undefined_flag='${wl}-z,text' 9975 allow_undefined_flag='${wl}-z,nodefs' 9976 archive_cmds_need_lc=no 9977 hardcode_shlibpath_var=no 9978 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9979 hardcode_libdir_separator=':' 9980 link_all_deplibs=yes 9981 export_dynamic_flag_spec='${wl}-Bexport' 9982 runpath_var='LD_RUN_PATH' 9983 9984 if test "$GCC" = yes; then 9985 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9986 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9987 else 9988 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9989 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9990 fi 9991 ;; 9992 9993 uts4*) 9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9995 hardcode_libdir_flag_spec='-L$libdir' 9996 hardcode_shlibpath_var=no 9997 ;; 9998 9999 *) 10000 ld_shlibs=no 10001 ;; 10002 esac 10003 10004 if test x$host_vendor = xsni; then 10005 case $host in 10006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10007 export_dynamic_flag_spec='${wl}-Blargedynsym' 10008 ;; 10009 esac 10010 fi 10011 fi 10012 10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10014$as_echo "$ld_shlibs" >&6; } 10015test "$ld_shlibs" = no && can_build_shared=no 10016 10017with_gnu_ld=$with_gnu_ld 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033# 10034# Do we need to explicitly link libc? 10035# 10036case "x$archive_cmds_need_lc" in 10037x|xyes) 10038 # Assume -lc should be added 10039 archive_cmds_need_lc=yes 10040 10041 if test "$enable_shared" = yes && test "$GCC" = yes; then 10042 case $archive_cmds in 10043 *'~'*) 10044 # FIXME: we may have to deal with multi-command sequences. 10045 ;; 10046 '$CC '*) 10047 # Test whether the compiler implicitly links with -lc since on some 10048 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10049 # to ld, don't add -lc before -lgcc. 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10051$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10052 $RM conftest* 10053 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10054 10055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10056 (eval $ac_compile) 2>&5 10057 ac_status=$? 10058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10059 test $ac_status = 0; } 2>conftest.err; then 10060 soname=conftest 10061 lib=conftest 10062 libobjs=conftest.$ac_objext 10063 deplibs= 10064 wl=$lt_prog_compiler_wl 10065 pic_flag=$lt_prog_compiler_pic 10066 compiler_flags=-v 10067 linker_flags=-v 10068 verstring= 10069 output_objdir=. 10070 libname=conftest 10071 lt_save_allow_undefined_flag=$allow_undefined_flag 10072 allow_undefined_flag= 10073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10074 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10075 ac_status=$? 10076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10077 test $ac_status = 0; } 10078 then 10079 archive_cmds_need_lc=no 10080 else 10081 archive_cmds_need_lc=yes 10082 fi 10083 allow_undefined_flag=$lt_save_allow_undefined_flag 10084 else 10085 cat conftest.err 1>&5 10086 fi 10087 $RM conftest* 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10089$as_echo "$archive_cmds_need_lc" >&6; } 10090 ;; 10091 esac 10092 fi 10093 ;; 10094esac 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10253$as_echo_n "checking dynamic linker characteristics... " >&6; } 10254 10255if test "$GCC" = yes; then 10256 case $host_os in 10257 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10258 *) lt_awk_arg="/^libraries:/" ;; 10259 esac 10260 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10261 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10262 # if the path contains ";" then we assume it to be the separator 10263 # otherwise default to the standard path separator (i.e. ":") - it is 10264 # assumed that no part of a normal pathname contains ";" but that should 10265 # okay in the real world where ";" in dirpaths is itself problematic. 10266 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10267 else 10268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10269 fi 10270 # Ok, now we have the path, separated by spaces, we can step through it 10271 # and add multilib dir if necessary. 10272 lt_tmp_lt_search_path_spec= 10273 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10274 for lt_sys_path in $lt_search_path_spec; do 10275 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10277 else 10278 test -d "$lt_sys_path" && \ 10279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10280 fi 10281 done 10282 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10283BEGIN {RS=" "; FS="/|\n";} { 10284 lt_foo=""; 10285 lt_count=0; 10286 for (lt_i = NF; lt_i > 0; lt_i--) { 10287 if ($lt_i != "" && $lt_i != ".") { 10288 if ($lt_i == "..") { 10289 lt_count++; 10290 } else { 10291 if (lt_count == 0) { 10292 lt_foo="/" $lt_i lt_foo; 10293 } else { 10294 lt_count--; 10295 } 10296 } 10297 } 10298 } 10299 if (lt_foo != "") { lt_freq[lt_foo]++; } 10300 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10301}'` 10302 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10303else 10304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10305fi 10306library_names_spec= 10307libname_spec='lib$name' 10308soname_spec= 10309shrext_cmds=".so" 10310postinstall_cmds= 10311postuninstall_cmds= 10312finish_cmds= 10313finish_eval= 10314shlibpath_var= 10315shlibpath_overrides_runpath=unknown 10316version_type=none 10317dynamic_linker="$host_os ld.so" 10318sys_lib_dlsearch_path_spec="/lib /usr/lib" 10319need_lib_prefix=unknown 10320hardcode_into_libs=no 10321 10322# when you set need_version to no, make sure it does not cause -set_version 10323# flags to be left without arguments 10324need_version=unknown 10325 10326case $host_os in 10327aix3*) 10328 version_type=linux 10329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10330 shlibpath_var=LIBPATH 10331 10332 # AIX 3 has no versioning support, so we append a major version to the name. 10333 soname_spec='${libname}${release}${shared_ext}$major' 10334 ;; 10335 10336aix[4-9]*) 10337 version_type=linux 10338 need_lib_prefix=no 10339 need_version=no 10340 hardcode_into_libs=yes 10341 if test "$host_cpu" = ia64; then 10342 # AIX 5 supports IA64 10343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10344 shlibpath_var=LD_LIBRARY_PATH 10345 else 10346 # With GCC up to 2.95.x, collect2 would create an import file 10347 # for dependence libraries. The import file would start with 10348 # the line `#! .'. This would cause the generated library to 10349 # depend on `.', always an invalid library. This was fixed in 10350 # development snapshots of GCC prior to 3.0. 10351 case $host_os in 10352 aix4 | aix4.[01] | aix4.[01].*) 10353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10354 echo ' yes ' 10355 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10356 : 10357 else 10358 can_build_shared=no 10359 fi 10360 ;; 10361 esac 10362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10363 # soname into executable. Probably we can add versioning support to 10364 # collect2, so additional links can be useful in future. 10365 if test "$aix_use_runtimelinking" = yes; then 10366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10367 # instead of lib<name>.a to let people know that these are not 10368 # typical AIX shared libraries. 10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10370 else 10371 # We preserve .a as extension for shared libraries through AIX4.2 10372 # and later when we are not doing run time linking. 10373 library_names_spec='${libname}${release}.a $libname.a' 10374 soname_spec='${libname}${release}${shared_ext}$major' 10375 fi 10376 shlibpath_var=LIBPATH 10377 fi 10378 ;; 10379 10380amigaos*) 10381 case $host_cpu in 10382 powerpc) 10383 # Since July 2007 AmigaOS4 officially supports .so libraries. 10384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10386 ;; 10387 m68k) 10388 library_names_spec='$libname.ixlibrary $libname.a' 10389 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10390 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' 10391 ;; 10392 esac 10393 ;; 10394 10395beos*) 10396 library_names_spec='${libname}${shared_ext}' 10397 dynamic_linker="$host_os ld.so" 10398 shlibpath_var=LIBRARY_PATH 10399 ;; 10400 10401bsdi[45]*) 10402 version_type=linux 10403 need_version=no 10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10405 soname_spec='${libname}${release}${shared_ext}$major' 10406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10407 shlibpath_var=LD_LIBRARY_PATH 10408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10410 # the default ld.so.conf also contains /usr/contrib/lib and 10411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10412 # libtool to hard-code these into programs 10413 ;; 10414 10415cygwin* | mingw* | pw32* | cegcc*) 10416 version_type=windows 10417 shrext_cmds=".dll" 10418 need_version=no 10419 need_lib_prefix=no 10420 10421 case $GCC,$host_os in 10422 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10423 library_names_spec='$libname.dll.a' 10424 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10425 postinstall_cmds='base_file=`basename \${file}`~ 10426 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10427 dldir=$destdir/`dirname \$dlpath`~ 10428 test -d \$dldir || mkdir -p \$dldir~ 10429 $install_prog $dir/$dlname \$dldir/$dlname~ 10430 chmod a+x \$dldir/$dlname~ 10431 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10432 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10433 fi' 10434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10435 dlpath=$dir/\$dldll~ 10436 $RM \$dlpath' 10437 shlibpath_overrides_runpath=yes 10438 10439 case $host_os in 10440 cygwin*) 10441 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10442 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10443 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10444 ;; 10445 mingw* | cegcc*) 10446 # MinGW DLLs use traditional 'lib' prefix 10447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10448 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10449 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10450 # It is most probably a Windows format PATH printed by 10451 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10452 # path with ; separators, and with drive letters. We can handle the 10453 # drive letters (cygwin fileutils understands them), so leave them, 10454 # especially as we might pass files found there to a mingw objdump, 10455 # which wouldn't understand a cygwinified path. Ahh. 10456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10457 else 10458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10459 fi 10460 ;; 10461 pw32*) 10462 # pw32 DLLs use 'pw' prefix rather than 'lib' 10463 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10464 ;; 10465 esac 10466 ;; 10467 10468 *) 10469 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10470 ;; 10471 esac 10472 dynamic_linker='Win32 ld.exe' 10473 # FIXME: first we should search . and the directory the executable is in 10474 shlibpath_var=PATH 10475 ;; 10476 10477darwin* | rhapsody*) 10478 dynamic_linker="$host_os dyld" 10479 version_type=darwin 10480 need_lib_prefix=no 10481 need_version=no 10482 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10483 soname_spec='${libname}${release}${major}$shared_ext' 10484 shlibpath_overrides_runpath=yes 10485 shlibpath_var=DYLD_LIBRARY_PATH 10486 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10487 10488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10489 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10490 ;; 10491 10492dgux*) 10493 version_type=linux 10494 need_lib_prefix=no 10495 need_version=no 10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10497 soname_spec='${libname}${release}${shared_ext}$major' 10498 shlibpath_var=LD_LIBRARY_PATH 10499 ;; 10500 10501freebsd1*) 10502 dynamic_linker=no 10503 ;; 10504 10505freebsd* | dragonfly*) 10506 # DragonFly does not have aout. When/if they implement a new 10507 # versioning mechanism, adjust this. 10508 if test -x /usr/bin/objformat; then 10509 objformat=`/usr/bin/objformat` 10510 else 10511 case $host_os in 10512 freebsd[123]*) objformat=aout ;; 10513 *) objformat=elf ;; 10514 esac 10515 fi 10516 version_type=freebsd-$objformat 10517 case $version_type in 10518 freebsd-elf*) 10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10520 need_version=no 10521 need_lib_prefix=no 10522 ;; 10523 freebsd-*) 10524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10525 need_version=yes 10526 ;; 10527 esac 10528 shlibpath_var=LD_LIBRARY_PATH 10529 case $host_os in 10530 freebsd2*) 10531 shlibpath_overrides_runpath=yes 10532 ;; 10533 freebsd3.[01]* | freebsdelf3.[01]*) 10534 shlibpath_overrides_runpath=yes 10535 hardcode_into_libs=yes 10536 ;; 10537 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10538 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10539 shlibpath_overrides_runpath=no 10540 hardcode_into_libs=yes 10541 ;; 10542 *) # from 4.6 on, and DragonFly 10543 shlibpath_overrides_runpath=yes 10544 hardcode_into_libs=yes 10545 ;; 10546 esac 10547 ;; 10548 10549gnu*) 10550 version_type=linux 10551 need_lib_prefix=no 10552 need_version=no 10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10554 soname_spec='${libname}${release}${shared_ext}$major' 10555 shlibpath_var=LD_LIBRARY_PATH 10556 hardcode_into_libs=yes 10557 ;; 10558 10559hpux9* | hpux10* | hpux11*) 10560 # Give a soname corresponding to the major version so that dld.sl refuses to 10561 # link against other versions. 10562 version_type=sunos 10563 need_lib_prefix=no 10564 need_version=no 10565 case $host_cpu in 10566 ia64*) 10567 shrext_cmds='.so' 10568 hardcode_into_libs=yes 10569 dynamic_linker="$host_os dld.so" 10570 shlibpath_var=LD_LIBRARY_PATH 10571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10573 soname_spec='${libname}${release}${shared_ext}$major' 10574 if test "X$HPUX_IA64_MODE" = X32; then 10575 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10576 else 10577 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10578 fi 10579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10580 ;; 10581 hppa*64*) 10582 shrext_cmds='.sl' 10583 hardcode_into_libs=yes 10584 dynamic_linker="$host_os dld.sl" 10585 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10591 ;; 10592 *) 10593 shrext_cmds='.sl' 10594 dynamic_linker="$host_os dld.sl" 10595 shlibpath_var=SHLIB_PATH 10596 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10598 soname_spec='${libname}${release}${shared_ext}$major' 10599 ;; 10600 esac 10601 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10602 postinstall_cmds='chmod 555 $lib' 10603 ;; 10604 10605interix[3-9]*) 10606 version_type=linux 10607 need_lib_prefix=no 10608 need_version=no 10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10610 soname_spec='${libname}${release}${shared_ext}$major' 10611 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10612 shlibpath_var=LD_LIBRARY_PATH 10613 shlibpath_overrides_runpath=no 10614 hardcode_into_libs=yes 10615 ;; 10616 10617irix5* | irix6* | nonstopux*) 10618 case $host_os in 10619 nonstopux*) version_type=nonstopux ;; 10620 *) 10621 if test "$lt_cv_prog_gnu_ld" = yes; then 10622 version_type=linux 10623 else 10624 version_type=irix 10625 fi ;; 10626 esac 10627 need_lib_prefix=no 10628 need_version=no 10629 soname_spec='${libname}${release}${shared_ext}$major' 10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10631 case $host_os in 10632 irix5* | nonstopux*) 10633 libsuff= shlibsuff= 10634 ;; 10635 *) 10636 case $LD in # libtool.m4 will add one of these switches to LD 10637 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10638 libsuff= shlibsuff= libmagic=32-bit;; 10639 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10640 libsuff=32 shlibsuff=N32 libmagic=N32;; 10641 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10642 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10643 *) libsuff= shlibsuff= libmagic=never-match;; 10644 esac 10645 ;; 10646 esac 10647 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10648 shlibpath_overrides_runpath=no 10649 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10650 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10651 hardcode_into_libs=yes 10652 ;; 10653 10654# No shared lib support for Linux oldld, aout, or coff. 10655linux*oldld* | linux*aout* | linux*coff*) 10656 dynamic_linker=no 10657 ;; 10658 10659# This must be Linux ELF. 10660linux* | k*bsd*-gnu) 10661 version_type=linux 10662 need_lib_prefix=no 10663 need_version=no 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10667 shlibpath_var=LD_LIBRARY_PATH 10668 shlibpath_overrides_runpath=no 10669 # Some binutils ld are patched to set DT_RUNPATH 10670 save_LDFLAGS=$LDFLAGS 10671 save_libdir=$libdir 10672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10675/* end confdefs.h. */ 10676 10677int 10678main () 10679{ 10680 10681 ; 10682 return 0; 10683} 10684_ACEOF 10685if ac_fn_c_try_link "$LINENO"; then : 10686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10687 shlibpath_overrides_runpath=yes 10688fi 10689fi 10690rm -f core conftest.err conftest.$ac_objext \ 10691 conftest$ac_exeext conftest.$ac_ext 10692 LDFLAGS=$save_LDFLAGS 10693 libdir=$save_libdir 10694 10695 # This implies no fast_install, which is unacceptable. 10696 # Some rework will be needed to allow for fast_install 10697 # before this can be enabled. 10698 hardcode_into_libs=yes 10699 10700 # Append ld.so.conf contents to the search path 10701 if test -f /etc/ld.so.conf; then 10702 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10704 fi 10705 10706 # We used to test for /lib/ld.so.1 and disable shared libraries on 10707 # powerpc, because MkLinux only supported shared libraries with the 10708 # GNU dynamic linker. Since this was broken with cross compilers, 10709 # most powerpc-linux boxes support dynamic linking these days and 10710 # people can always --disable-shared, the test was removed, and we 10711 # assume the GNU/Linux dynamic linker is in use. 10712 dynamic_linker='GNU/Linux ld.so' 10713 ;; 10714 10715netbsd*) 10716 version_type=sunos 10717 need_lib_prefix=no 10718 need_version=no 10719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10722 dynamic_linker='NetBSD (a.out) ld.so' 10723 else 10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10725 soname_spec='${libname}${release}${shared_ext}$major' 10726 dynamic_linker='NetBSD ld.elf_so' 10727 fi 10728 shlibpath_var=LD_LIBRARY_PATH 10729 shlibpath_overrides_runpath=yes 10730 hardcode_into_libs=yes 10731 ;; 10732 10733newsos6) 10734 version_type=linux 10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10736 shlibpath_var=LD_LIBRARY_PATH 10737 shlibpath_overrides_runpath=yes 10738 ;; 10739 10740*nto* | *qnx*) 10741 version_type=qnx 10742 need_lib_prefix=no 10743 need_version=no 10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10745 soname_spec='${libname}${release}${shared_ext}$major' 10746 shlibpath_var=LD_LIBRARY_PATH 10747 shlibpath_overrides_runpath=no 10748 hardcode_into_libs=yes 10749 dynamic_linker='ldqnx.so' 10750 ;; 10751 10752openbsd*) 10753 version_type=sunos 10754 sys_lib_dlsearch_path_spec="/usr/lib" 10755 need_lib_prefix=no 10756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10757 case $host_os in 10758 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10759 *) need_version=no ;; 10760 esac 10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10763 shlibpath_var=LD_LIBRARY_PATH 10764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10765 case $host_os in 10766 openbsd2.[89] | openbsd2.[89].*) 10767 shlibpath_overrides_runpath=no 10768 ;; 10769 *) 10770 shlibpath_overrides_runpath=yes 10771 ;; 10772 esac 10773 else 10774 shlibpath_overrides_runpath=yes 10775 fi 10776 ;; 10777 10778os2*) 10779 libname_spec='$name' 10780 shrext_cmds=".dll" 10781 need_lib_prefix=no 10782 library_names_spec='$libname${shared_ext} $libname.a' 10783 dynamic_linker='OS/2 ld.exe' 10784 shlibpath_var=LIBPATH 10785 ;; 10786 10787osf3* | osf4* | osf5*) 10788 version_type=osf 10789 need_lib_prefix=no 10790 need_version=no 10791 soname_spec='${libname}${release}${shared_ext}$major' 10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10793 shlibpath_var=LD_LIBRARY_PATH 10794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10796 ;; 10797 10798rdos*) 10799 dynamic_linker=no 10800 ;; 10801 10802solaris*) 10803 version_type=linux 10804 need_lib_prefix=no 10805 need_version=no 10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10807 soname_spec='${libname}${release}${shared_ext}$major' 10808 shlibpath_var=LD_LIBRARY_PATH 10809 shlibpath_overrides_runpath=yes 10810 hardcode_into_libs=yes 10811 # ldd complains unless libraries are executable 10812 postinstall_cmds='chmod +x $lib' 10813 ;; 10814 10815sunos4*) 10816 version_type=sunos 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10819 shlibpath_var=LD_LIBRARY_PATH 10820 shlibpath_overrides_runpath=yes 10821 if test "$with_gnu_ld" = yes; then 10822 need_lib_prefix=no 10823 fi 10824 need_version=yes 10825 ;; 10826 10827sysv4 | sysv4.3*) 10828 version_type=linux 10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10830 soname_spec='${libname}${release}${shared_ext}$major' 10831 shlibpath_var=LD_LIBRARY_PATH 10832 case $host_vendor in 10833 sni) 10834 shlibpath_overrides_runpath=no 10835 need_lib_prefix=no 10836 runpath_var=LD_RUN_PATH 10837 ;; 10838 siemens) 10839 need_lib_prefix=no 10840 ;; 10841 motorola) 10842 need_lib_prefix=no 10843 need_version=no 10844 shlibpath_overrides_runpath=no 10845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10846 ;; 10847 esac 10848 ;; 10849 10850sysv4*MP*) 10851 if test -d /usr/nec ;then 10852 version_type=linux 10853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10854 soname_spec='$libname${shared_ext}.$major' 10855 shlibpath_var=LD_LIBRARY_PATH 10856 fi 10857 ;; 10858 10859sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10860 version_type=freebsd-elf 10861 need_lib_prefix=no 10862 need_version=no 10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10864 soname_spec='${libname}${release}${shared_ext}$major' 10865 shlibpath_var=LD_LIBRARY_PATH 10866 shlibpath_overrides_runpath=yes 10867 hardcode_into_libs=yes 10868 if test "$with_gnu_ld" = yes; then 10869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10870 else 10871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10872 case $host_os in 10873 sco3.2v5*) 10874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10875 ;; 10876 esac 10877 fi 10878 sys_lib_dlsearch_path_spec='/usr/lib' 10879 ;; 10880 10881tpf*) 10882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10883 version_type=linux 10884 need_lib_prefix=no 10885 need_version=no 10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10887 shlibpath_var=LD_LIBRARY_PATH 10888 shlibpath_overrides_runpath=no 10889 hardcode_into_libs=yes 10890 ;; 10891 10892uts4*) 10893 version_type=linux 10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10895 soname_spec='${libname}${release}${shared_ext}$major' 10896 shlibpath_var=LD_LIBRARY_PATH 10897 ;; 10898 10899*) 10900 dynamic_linker=no 10901 ;; 10902esac 10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10904$as_echo "$dynamic_linker" >&6; } 10905test "$dynamic_linker" = no && can_build_shared=no 10906 10907variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10908if test "$GCC" = yes; then 10909 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10910fi 10911 10912if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10913 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10914fi 10915if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10916 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10917fi 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11006$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11007hardcode_action= 11008if test -n "$hardcode_libdir_flag_spec" || 11009 test -n "$runpath_var" || 11010 test "X$hardcode_automatic" = "Xyes" ; then 11011 11012 # We can hardcode non-existent directories. 11013 if test "$hardcode_direct" != no && 11014 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11015 # have to relink, otherwise we might link with an installed library 11016 # when we should be linking with a yet-to-be-installed one 11017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11018 test "$hardcode_minus_L" != no; then 11019 # Linking always hardcodes the temporary library directory. 11020 hardcode_action=relink 11021 else 11022 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11023 hardcode_action=immediate 11024 fi 11025else 11026 # We cannot hardcode anything, or else we can only hardcode existing 11027 # directories. 11028 hardcode_action=unsupported 11029fi 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11031$as_echo "$hardcode_action" >&6; } 11032 11033if test "$hardcode_action" = relink || 11034 test "$inherit_rpath" = yes; then 11035 # Fast installation is not supported 11036 enable_fast_install=no 11037elif test "$shlibpath_overrides_runpath" = yes || 11038 test "$enable_shared" = no; then 11039 # Fast installation is not necessary 11040 enable_fast_install=needless 11041fi 11042 11043 11044 11045 11046 11047 11048 if test "x$enable_dlopen" != xyes; then 11049 enable_dlopen=unknown 11050 enable_dlopen_self=unknown 11051 enable_dlopen_self_static=unknown 11052else 11053 lt_cv_dlopen=no 11054 lt_cv_dlopen_libs= 11055 11056 case $host_os in 11057 beos*) 11058 lt_cv_dlopen="load_add_on" 11059 lt_cv_dlopen_libs= 11060 lt_cv_dlopen_self=yes 11061 ;; 11062 11063 mingw* | pw32* | cegcc*) 11064 lt_cv_dlopen="LoadLibrary" 11065 lt_cv_dlopen_libs= 11066 ;; 11067 11068 cygwin*) 11069 lt_cv_dlopen="dlopen" 11070 lt_cv_dlopen_libs= 11071 ;; 11072 11073 darwin*) 11074 # if libdl is installed we need to link against it 11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11076$as_echo_n "checking for dlopen in -ldl... " >&6; } 11077if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11078 $as_echo_n "(cached) " >&6 11079else 11080 ac_check_lib_save_LIBS=$LIBS 11081LIBS="-ldl $LIBS" 11082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11083/* end confdefs.h. */ 11084 11085/* Override any GCC internal prototype to avoid an error. 11086 Use char because int might match the return type of a GCC 11087 builtin and then its argument prototype would still apply. */ 11088#ifdef __cplusplus 11089extern "C" 11090#endif 11091char dlopen (); 11092int 11093main () 11094{ 11095return dlopen (); 11096 ; 11097 return 0; 11098} 11099_ACEOF 11100if ac_fn_c_try_link "$LINENO"; then : 11101 ac_cv_lib_dl_dlopen=yes 11102else 11103 ac_cv_lib_dl_dlopen=no 11104fi 11105rm -f core conftest.err conftest.$ac_objext \ 11106 conftest$ac_exeext conftest.$ac_ext 11107LIBS=$ac_check_lib_save_LIBS 11108fi 11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11110$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11111if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11113else 11114 11115 lt_cv_dlopen="dyld" 11116 lt_cv_dlopen_libs= 11117 lt_cv_dlopen_self=yes 11118 11119fi 11120 11121 ;; 11122 11123 *) 11124 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11125if test "x$ac_cv_func_shl_load" = x""yes; then : 11126 lt_cv_dlopen="shl_load" 11127else 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11129$as_echo_n "checking for shl_load in -ldld... " >&6; } 11130if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 ac_check_lib_save_LIBS=$LIBS 11134LIBS="-ldld $LIBS" 11135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11136/* end confdefs.h. */ 11137 11138/* Override any GCC internal prototype to avoid an error. 11139 Use char because int might match the return type of a GCC 11140 builtin and then its argument prototype would still apply. */ 11141#ifdef __cplusplus 11142extern "C" 11143#endif 11144char shl_load (); 11145int 11146main () 11147{ 11148return shl_load (); 11149 ; 11150 return 0; 11151} 11152_ACEOF 11153if ac_fn_c_try_link "$LINENO"; then : 11154 ac_cv_lib_dld_shl_load=yes 11155else 11156 ac_cv_lib_dld_shl_load=no 11157fi 11158rm -f core conftest.err conftest.$ac_objext \ 11159 conftest$ac_exeext conftest.$ac_ext 11160LIBS=$ac_check_lib_save_LIBS 11161fi 11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11163$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11164if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11165 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11166else 11167 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11168if test "x$ac_cv_func_dlopen" = x""yes; then : 11169 lt_cv_dlopen="dlopen" 11170else 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11172$as_echo_n "checking for dlopen in -ldl... " >&6; } 11173if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11174 $as_echo_n "(cached) " >&6 11175else 11176 ac_check_lib_save_LIBS=$LIBS 11177LIBS="-ldl $LIBS" 11178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11179/* end confdefs.h. */ 11180 11181/* Override any GCC internal prototype to avoid an error. 11182 Use char because int might match the return type of a GCC 11183 builtin and then its argument prototype would still apply. */ 11184#ifdef __cplusplus 11185extern "C" 11186#endif 11187char dlopen (); 11188int 11189main () 11190{ 11191return dlopen (); 11192 ; 11193 return 0; 11194} 11195_ACEOF 11196if ac_fn_c_try_link "$LINENO"; then : 11197 ac_cv_lib_dl_dlopen=yes 11198else 11199 ac_cv_lib_dl_dlopen=no 11200fi 11201rm -f core conftest.err conftest.$ac_objext \ 11202 conftest$ac_exeext conftest.$ac_ext 11203LIBS=$ac_check_lib_save_LIBS 11204fi 11205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11206$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11207if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11209else 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11211$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11212if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11213 $as_echo_n "(cached) " >&6 11214else 11215 ac_check_lib_save_LIBS=$LIBS 11216LIBS="-lsvld $LIBS" 11217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11218/* end confdefs.h. */ 11219 11220/* Override any GCC internal prototype to avoid an error. 11221 Use char because int might match the return type of a GCC 11222 builtin and then its argument prototype would still apply. */ 11223#ifdef __cplusplus 11224extern "C" 11225#endif 11226char dlopen (); 11227int 11228main () 11229{ 11230return dlopen (); 11231 ; 11232 return 0; 11233} 11234_ACEOF 11235if ac_fn_c_try_link "$LINENO"; then : 11236 ac_cv_lib_svld_dlopen=yes 11237else 11238 ac_cv_lib_svld_dlopen=no 11239fi 11240rm -f core conftest.err conftest.$ac_objext \ 11241 conftest$ac_exeext conftest.$ac_ext 11242LIBS=$ac_check_lib_save_LIBS 11243fi 11244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11245$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11246if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11248else 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11250$as_echo_n "checking for dld_link in -ldld... " >&6; } 11251if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11252 $as_echo_n "(cached) " >&6 11253else 11254 ac_check_lib_save_LIBS=$LIBS 11255LIBS="-ldld $LIBS" 11256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11257/* end confdefs.h. */ 11258 11259/* Override any GCC internal prototype to avoid an error. 11260 Use char because int might match the return type of a GCC 11261 builtin and then its argument prototype would still apply. */ 11262#ifdef __cplusplus 11263extern "C" 11264#endif 11265char dld_link (); 11266int 11267main () 11268{ 11269return dld_link (); 11270 ; 11271 return 0; 11272} 11273_ACEOF 11274if ac_fn_c_try_link "$LINENO"; then : 11275 ac_cv_lib_dld_dld_link=yes 11276else 11277 ac_cv_lib_dld_dld_link=no 11278fi 11279rm -f core conftest.err conftest.$ac_objext \ 11280 conftest$ac_exeext conftest.$ac_ext 11281LIBS=$ac_check_lib_save_LIBS 11282fi 11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11284$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11285if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11286 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11287fi 11288 11289 11290fi 11291 11292 11293fi 11294 11295 11296fi 11297 11298 11299fi 11300 11301 11302fi 11303 11304 ;; 11305 esac 11306 11307 if test "x$lt_cv_dlopen" != xno; then 11308 enable_dlopen=yes 11309 else 11310 enable_dlopen=no 11311 fi 11312 11313 case $lt_cv_dlopen in 11314 dlopen) 11315 save_CPPFLAGS="$CPPFLAGS" 11316 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11317 11318 save_LDFLAGS="$LDFLAGS" 11319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11320 11321 save_LIBS="$LIBS" 11322 LIBS="$lt_cv_dlopen_libs $LIBS" 11323 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11325$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11326if test "${lt_cv_dlopen_self+set}" = set; then : 11327 $as_echo_n "(cached) " >&6 11328else 11329 if test "$cross_compiling" = yes; then : 11330 lt_cv_dlopen_self=cross 11331else 11332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11333 lt_status=$lt_dlunknown 11334 cat > conftest.$ac_ext <<_LT_EOF 11335#line 11335 "configure" 11336#include "confdefs.h" 11337 11338#if HAVE_DLFCN_H 11339#include <dlfcn.h> 11340#endif 11341 11342#include <stdio.h> 11343 11344#ifdef RTLD_GLOBAL 11345# define LT_DLGLOBAL RTLD_GLOBAL 11346#else 11347# ifdef DL_GLOBAL 11348# define LT_DLGLOBAL DL_GLOBAL 11349# else 11350# define LT_DLGLOBAL 0 11351# endif 11352#endif 11353 11354/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11355 find out it does not work in some platform. */ 11356#ifndef LT_DLLAZY_OR_NOW 11357# ifdef RTLD_LAZY 11358# define LT_DLLAZY_OR_NOW RTLD_LAZY 11359# else 11360# ifdef DL_LAZY 11361# define LT_DLLAZY_OR_NOW DL_LAZY 11362# else 11363# ifdef RTLD_NOW 11364# define LT_DLLAZY_OR_NOW RTLD_NOW 11365# else 11366# ifdef DL_NOW 11367# define LT_DLLAZY_OR_NOW DL_NOW 11368# else 11369# define LT_DLLAZY_OR_NOW 0 11370# endif 11371# endif 11372# endif 11373# endif 11374#endif 11375 11376void fnord() { int i=42;} 11377int main () 11378{ 11379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11380 int status = $lt_dlunknown; 11381 11382 if (self) 11383 { 11384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11386 /* dlclose (self); */ 11387 } 11388 else 11389 puts (dlerror ()); 11390 11391 return status; 11392} 11393_LT_EOF 11394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11395 (eval $ac_link) 2>&5 11396 ac_status=$? 11397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11398 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11399 (./conftest; exit; ) >&5 2>/dev/null 11400 lt_status=$? 11401 case x$lt_status in 11402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11405 esac 11406 else : 11407 # compilation failed 11408 lt_cv_dlopen_self=no 11409 fi 11410fi 11411rm -fr conftest* 11412 11413 11414fi 11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11416$as_echo "$lt_cv_dlopen_self" >&6; } 11417 11418 if test "x$lt_cv_dlopen_self" = xyes; then 11419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11421$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11422if test "${lt_cv_dlopen_self_static+set}" = set; then : 11423 $as_echo_n "(cached) " >&6 11424else 11425 if test "$cross_compiling" = yes; then : 11426 lt_cv_dlopen_self_static=cross 11427else 11428 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11429 lt_status=$lt_dlunknown 11430 cat > conftest.$ac_ext <<_LT_EOF 11431#line 11431 "configure" 11432#include "confdefs.h" 11433 11434#if HAVE_DLFCN_H 11435#include <dlfcn.h> 11436#endif 11437 11438#include <stdio.h> 11439 11440#ifdef RTLD_GLOBAL 11441# define LT_DLGLOBAL RTLD_GLOBAL 11442#else 11443# ifdef DL_GLOBAL 11444# define LT_DLGLOBAL DL_GLOBAL 11445# else 11446# define LT_DLGLOBAL 0 11447# endif 11448#endif 11449 11450/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11451 find out it does not work in some platform. */ 11452#ifndef LT_DLLAZY_OR_NOW 11453# ifdef RTLD_LAZY 11454# define LT_DLLAZY_OR_NOW RTLD_LAZY 11455# else 11456# ifdef DL_LAZY 11457# define LT_DLLAZY_OR_NOW DL_LAZY 11458# else 11459# ifdef RTLD_NOW 11460# define LT_DLLAZY_OR_NOW RTLD_NOW 11461# else 11462# ifdef DL_NOW 11463# define LT_DLLAZY_OR_NOW DL_NOW 11464# else 11465# define LT_DLLAZY_OR_NOW 0 11466# endif 11467# endif 11468# endif 11469# endif 11470#endif 11471 11472void fnord() { int i=42;} 11473int main () 11474{ 11475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11476 int status = $lt_dlunknown; 11477 11478 if (self) 11479 { 11480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11481 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11482 /* dlclose (self); */ 11483 } 11484 else 11485 puts (dlerror ()); 11486 11487 return status; 11488} 11489_LT_EOF 11490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11491 (eval $ac_link) 2>&5 11492 ac_status=$? 11493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11494 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11495 (./conftest; exit; ) >&5 2>/dev/null 11496 lt_status=$? 11497 case x$lt_status in 11498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11500 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11501 esac 11502 else : 11503 # compilation failed 11504 lt_cv_dlopen_self_static=no 11505 fi 11506fi 11507rm -fr conftest* 11508 11509 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11512$as_echo "$lt_cv_dlopen_self_static" >&6; } 11513 fi 11514 11515 CPPFLAGS="$save_CPPFLAGS" 11516 LDFLAGS="$save_LDFLAGS" 11517 LIBS="$save_LIBS" 11518 ;; 11519 esac 11520 11521 case $lt_cv_dlopen_self in 11522 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11523 *) enable_dlopen_self=unknown ;; 11524 esac 11525 11526 case $lt_cv_dlopen_self_static in 11527 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11528 *) enable_dlopen_self_static=unknown ;; 11529 esac 11530fi 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548striplib= 11549old_striplib= 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11551$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11552if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11553 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11554 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11556$as_echo "yes" >&6; } 11557else 11558# FIXME - insert some real tests, host_os isn't really good enough 11559 case $host_os in 11560 darwin*) 11561 if test -n "$STRIP" ; then 11562 striplib="$STRIP -x" 11563 old_striplib="$STRIP -S" 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11565$as_echo "yes" >&6; } 11566 else 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11568$as_echo "no" >&6; } 11569 fi 11570 ;; 11571 *) 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11573$as_echo "no" >&6; } 11574 ;; 11575 esac 11576fi 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 # Report which library types will actually be built 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11591$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11593$as_echo "$can_build_shared" >&6; } 11594 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11596$as_echo_n "checking whether to build shared libraries... " >&6; } 11597 test "$can_build_shared" = "no" && enable_shared=no 11598 11599 # On AIX, shared libraries and static libraries use the same namespace, and 11600 # are all built from PIC. 11601 case $host_os in 11602 aix3*) 11603 test "$enable_shared" = yes && enable_static=no 11604 if test -n "$RANLIB"; then 11605 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11606 postinstall_cmds='$RANLIB $lib' 11607 fi 11608 ;; 11609 11610 aix[4-9]*) 11611 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11612 test "$enable_shared" = yes && enable_static=no 11613 fi 11614 ;; 11615 esac 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11617$as_echo "$enable_shared" >&6; } 11618 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11620$as_echo_n "checking whether to build static libraries... " >&6; } 11621 # Make sure either enable_shared or enable_static is yes. 11622 test "$enable_shared" = yes || enable_static=yes 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11624$as_echo "$enable_static" >&6; } 11625 11626 11627 11628 11629fi 11630ac_ext=c 11631ac_cpp='$CPP $CPPFLAGS' 11632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11634ac_compiler_gnu=$ac_cv_c_compiler_gnu 11635 11636CC="$lt_save_CC" 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 ac_config_commands="$ac_config_commands libtool" 11651 11652 11653 11654 11655# Only expand once: 11656 11657 11658 11659# Check damageext configuration, strip extra digits from package version to 11660# find the required protocol version 11661 11662DAMAGEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 11663 11664 11665pkg_failed=no 11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDAMAGE" >&5 11667$as_echo_n "checking for XDAMAGE... " >&6; } 11668 11669if test -n "$XDAMAGE_CFLAGS"; then 11670 pkg_cv_XDAMAGE_CFLAGS="$XDAMAGE_CFLAGS" 11671 elif test -n "$PKG_CONFIG"; then 11672 if test -n "$PKG_CONFIG" && \ 11673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5 11674 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5 11675 ac_status=$? 11676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11677 test $ac_status = 0; }; then 11678 pkg_cv_XDAMAGE_CFLAGS=`$PKG_CONFIG --cflags "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null` 11679else 11680 pkg_failed=yes 11681fi 11682 else 11683 pkg_failed=untried 11684fi 11685if test -n "$XDAMAGE_LIBS"; then 11686 pkg_cv_XDAMAGE_LIBS="$XDAMAGE_LIBS" 11687 elif test -n "$PKG_CONFIG"; then 11688 if test -n "$PKG_CONFIG" && \ 11689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto x11\""; } >&5 11690 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11") 2>&5 11691 ac_status=$? 11692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11693 test $ac_status = 0; }; then 11694 pkg_cv_XDAMAGE_LIBS=`$PKG_CONFIG --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>/dev/null` 11695else 11696 pkg_failed=yes 11697fi 11698 else 11699 pkg_failed=untried 11700fi 11701 11702 11703 11704if test $pkg_failed = yes; then 11705 11706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11707 _pkg_short_errors_supported=yes 11708else 11709 _pkg_short_errors_supported=no 11710fi 11711 if test $_pkg_short_errors_supported = yes; then 11712 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1` 11713 else 11714 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11" 2>&1` 11715 fi 11716 # Put the nasty error message in config.log where it belongs 11717 echo "$XDAMAGE_PKG_ERRORS" >&5 11718 11719 as_fn_error "Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11) were not met: 11720 11721$XDAMAGE_PKG_ERRORS 11722 11723Consider adjusting the PKG_CONFIG_PATH environment variable if you 11724installed software in a non-standard prefix. 11725 11726Alternatively, you may set the environment variables XDAMAGE_CFLAGS 11727and XDAMAGE_LIBS to avoid the need to call pkg-config. 11728See the pkg-config man page for more details. 11729" "$LINENO" 5 11730elif test $pkg_failed = untried; then 11731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11733as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11734is in your PATH or set the PKG_CONFIG environment variable to the full 11735path to pkg-config. 11736 11737Alternatively, you may set the environment variables XDAMAGE_CFLAGS 11738and XDAMAGE_LIBS to avoid the need to call pkg-config. 11739See the pkg-config man page for more details. 11740 11741To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11742See \`config.log' for more details." "$LINENO" 5; } 11743else 11744 XDAMAGE_CFLAGS=$pkg_cv_XDAMAGE_CFLAGS 11745 XDAMAGE_LIBS=$pkg_cv_XDAMAGE_LIBS 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11747$as_echo "yes" >&6; } 11748 : 11749fi 11750 11751 11752ac_config_files="$ac_config_files Makefile src/Makefile xdamage.pc" 11753 11754cat >confcache <<\_ACEOF 11755# This file is a shell script that caches the results of configure 11756# tests run on this system so they can be shared between configure 11757# scripts and configure runs, see configure's option --config-cache. 11758# It is not useful on other systems. If it contains results you don't 11759# want to keep, you may remove or edit it. 11760# 11761# config.status only pays attention to the cache file if you give it 11762# the --recheck option to rerun configure. 11763# 11764# `ac_cv_env_foo' variables (set or unset) will be overridden when 11765# loading this file, other *unset* `ac_cv_foo' will be assigned the 11766# following values. 11767 11768_ACEOF 11769 11770# The following way of writing the cache mishandles newlines in values, 11771# but we know of no workaround that is simple, portable, and efficient. 11772# So, we kill variables containing newlines. 11773# Ultrix sh set writes to stderr and can't be redirected directly, 11774# and sets the high bit in the cache file unless we assign to the vars. 11775( 11776 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11777 eval ac_val=\$$ac_var 11778 case $ac_val in #( 11779 *${as_nl}*) 11780 case $ac_var in #( 11781 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11782$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11783 esac 11784 case $ac_var in #( 11785 _ | IFS | as_nl) ;; #( 11786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11787 *) { eval $ac_var=; unset $ac_var;} ;; 11788 esac ;; 11789 esac 11790 done 11791 11792 (set) 2>&1 | 11793 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11794 *${as_nl}ac_space=\ *) 11795 # `set' does not quote correctly, so add quotes: double-quote 11796 # substitution turns \\\\ into \\, and sed turns \\ into \. 11797 sed -n \ 11798 "s/'/'\\\\''/g; 11799 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11800 ;; #( 11801 *) 11802 # `set' quotes correctly as required by POSIX, so do not add quotes. 11803 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11804 ;; 11805 esac | 11806 sort 11807) | 11808 sed ' 11809 /^ac_cv_env_/b end 11810 t clear 11811 :clear 11812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11813 t end 11814 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11815 :end' >>confcache 11816if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11817 if test -w "$cache_file"; then 11818 test "x$cache_file" != "x/dev/null" && 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11820$as_echo "$as_me: updating cache $cache_file" >&6;} 11821 cat confcache >$cache_file 11822 else 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11824$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11825 fi 11826fi 11827rm -f confcache 11828 11829test "x$prefix" = xNONE && prefix=$ac_default_prefix 11830# Let make expand exec_prefix. 11831test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11832 11833DEFS=-DHAVE_CONFIG_H 11834 11835ac_libobjs= 11836ac_ltlibobjs= 11837for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11838 # 1. Remove the extension, and $U if already installed. 11839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11840 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11842 # will be set to the directory where LIBOBJS objects are built. 11843 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11844 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11845done 11846LIBOBJS=$ac_libobjs 11847 11848LTLIBOBJS=$ac_ltlibobjs 11849 11850 11851 if test -n "$EXEEXT"; then 11852 am__EXEEXT_TRUE= 11853 am__EXEEXT_FALSE='#' 11854else 11855 am__EXEEXT_TRUE='#' 11856 am__EXEEXT_FALSE= 11857fi 11858 11859if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11860 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11861Usually this means the macro was only invoked conditionally." "$LINENO" 5 11862fi 11863if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11864 as_fn_error "conditional \"AMDEP\" was never defined. 11865Usually this means the macro was only invoked conditionally." "$LINENO" 5 11866fi 11867if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11868 as_fn_error "conditional \"am__fastdepCC\" was never defined. 11869Usually this means the macro was only invoked conditionally." "$LINENO" 5 11870fi 11871if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11872 as_fn_error "conditional \"am__fastdepCC\" was never defined. 11873Usually this means the macro was only invoked conditionally." "$LINENO" 5 11874fi 11875 11876: ${CONFIG_STATUS=./config.status} 11877ac_write_fail=0 11878ac_clean_files_save=$ac_clean_files 11879ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11880{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11881$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11882as_write_fail=0 11883cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11884#! $SHELL 11885# Generated by $as_me. 11886# Run this file to recreate the current configuration. 11887# Compiler output produced by configure, useful for debugging 11888# configure, is in config.log if it exists. 11889 11890debug=false 11891ac_cs_recheck=false 11892ac_cs_silent=false 11893 11894SHELL=\${CONFIG_SHELL-$SHELL} 11895export SHELL 11896_ASEOF 11897cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11898## -------------------- ## 11899## M4sh Initialization. ## 11900## -------------------- ## 11901 11902# Be more Bourne compatible 11903DUALCASE=1; export DUALCASE # for MKS sh 11904if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11905 emulate sh 11906 NULLCMD=: 11907 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11908 # is contrary to our usage. Disable this feature. 11909 alias -g '${1+"$@"}'='"$@"' 11910 setopt NO_GLOB_SUBST 11911else 11912 case `(set -o) 2>/dev/null` in #( 11913 *posix*) : 11914 set -o posix ;; #( 11915 *) : 11916 ;; 11917esac 11918fi 11919 11920 11921as_nl=' 11922' 11923export as_nl 11924# Printing a long string crashes Solaris 7 /usr/bin/printf. 11925as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11926as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11927as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11928# Prefer a ksh shell builtin over an external printf program on Solaris, 11929# but without wasting forks for bash or zsh. 11930if test -z "$BASH_VERSION$ZSH_VERSION" \ 11931 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11932 as_echo='print -r --' 11933 as_echo_n='print -rn --' 11934elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11935 as_echo='printf %s\n' 11936 as_echo_n='printf %s' 11937else 11938 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11939 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11940 as_echo_n='/usr/ucb/echo -n' 11941 else 11942 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11943 as_echo_n_body='eval 11944 arg=$1; 11945 case $arg in #( 11946 *"$as_nl"*) 11947 expr "X$arg" : "X\\(.*\\)$as_nl"; 11948 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11949 esac; 11950 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11951 ' 11952 export as_echo_n_body 11953 as_echo_n='sh -c $as_echo_n_body as_echo' 11954 fi 11955 export as_echo_body 11956 as_echo='sh -c $as_echo_body as_echo' 11957fi 11958 11959# The user is always right. 11960if test "${PATH_SEPARATOR+set}" != set; then 11961 PATH_SEPARATOR=: 11962 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11963 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11964 PATH_SEPARATOR=';' 11965 } 11966fi 11967 11968 11969# IFS 11970# We need space, tab and new line, in precisely that order. Quoting is 11971# there to prevent editors from complaining about space-tab. 11972# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11973# splitting by setting IFS to empty value.) 11974IFS=" "" $as_nl" 11975 11976# Find who we are. Look in the path if we contain no directory separator. 11977case $0 in #(( 11978 *[\\/]* ) as_myself=$0 ;; 11979 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11980for as_dir in $PATH 11981do 11982 IFS=$as_save_IFS 11983 test -z "$as_dir" && as_dir=. 11984 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11985 done 11986IFS=$as_save_IFS 11987 11988 ;; 11989esac 11990# We did not find ourselves, most probably we were run as `sh COMMAND' 11991# in which case we are not to be found in the path. 11992if test "x$as_myself" = x; then 11993 as_myself=$0 11994fi 11995if test ! -f "$as_myself"; then 11996 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11997 exit 1 11998fi 11999 12000# Unset variables that we do not need and which cause bugs (e.g. in 12001# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12002# suppresses any "Segmentation fault" message there. '((' could 12003# trigger a bug in pdksh 5.2.14. 12004for as_var in BASH_ENV ENV MAIL MAILPATH 12005do eval test x\${$as_var+set} = xset \ 12006 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12007done 12008PS1='$ ' 12009PS2='> ' 12010PS4='+ ' 12011 12012# NLS nuisances. 12013LC_ALL=C 12014export LC_ALL 12015LANGUAGE=C 12016export LANGUAGE 12017 12018# CDPATH. 12019(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12020 12021 12022# as_fn_error ERROR [LINENO LOG_FD] 12023# --------------------------------- 12024# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12025# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12026# script with status $?, using 1 if that was 0. 12027as_fn_error () 12028{ 12029 as_status=$?; test $as_status -eq 0 && as_status=1 12030 if test "$3"; then 12031 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12032 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12033 fi 12034 $as_echo "$as_me: error: $1" >&2 12035 as_fn_exit $as_status 12036} # as_fn_error 12037 12038 12039# as_fn_set_status STATUS 12040# ----------------------- 12041# Set $? to STATUS, without forking. 12042as_fn_set_status () 12043{ 12044 return $1 12045} # as_fn_set_status 12046 12047# as_fn_exit STATUS 12048# ----------------- 12049# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12050as_fn_exit () 12051{ 12052 set +e 12053 as_fn_set_status $1 12054 exit $1 12055} # as_fn_exit 12056 12057# as_fn_unset VAR 12058# --------------- 12059# Portably unset VAR. 12060as_fn_unset () 12061{ 12062 { eval $1=; unset $1;} 12063} 12064as_unset=as_fn_unset 12065# as_fn_append VAR VALUE 12066# ---------------------- 12067# Append the text in VALUE to the end of the definition contained in VAR. Take 12068# advantage of any shell optimizations that allow amortized linear growth over 12069# repeated appends, instead of the typical quadratic growth present in naive 12070# implementations. 12071if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12072 eval 'as_fn_append () 12073 { 12074 eval $1+=\$2 12075 }' 12076else 12077 as_fn_append () 12078 { 12079 eval $1=\$$1\$2 12080 } 12081fi # as_fn_append 12082 12083# as_fn_arith ARG... 12084# ------------------ 12085# Perform arithmetic evaluation on the ARGs, and store the result in the 12086# global $as_val. Take advantage of shells that can avoid forks. The arguments 12087# must be portable across $(()) and expr. 12088if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12089 eval 'as_fn_arith () 12090 { 12091 as_val=$(( $* )) 12092 }' 12093else 12094 as_fn_arith () 12095 { 12096 as_val=`expr "$@" || test $? -eq 1` 12097 } 12098fi # as_fn_arith 12099 12100 12101if expr a : '\(a\)' >/dev/null 2>&1 && 12102 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12103 as_expr=expr 12104else 12105 as_expr=false 12106fi 12107 12108if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12109 as_basename=basename 12110else 12111 as_basename=false 12112fi 12113 12114if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12115 as_dirname=dirname 12116else 12117 as_dirname=false 12118fi 12119 12120as_me=`$as_basename -- "$0" || 12121$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12122 X"$0" : 'X\(//\)$' \| \ 12123 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12124$as_echo X/"$0" | 12125 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12126 s//\1/ 12127 q 12128 } 12129 /^X\/\(\/\/\)$/{ 12130 s//\1/ 12131 q 12132 } 12133 /^X\/\(\/\).*/{ 12134 s//\1/ 12135 q 12136 } 12137 s/.*/./; q'` 12138 12139# Avoid depending upon Character Ranges. 12140as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12141as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12142as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12143as_cr_digits='0123456789' 12144as_cr_alnum=$as_cr_Letters$as_cr_digits 12145 12146ECHO_C= ECHO_N= ECHO_T= 12147case `echo -n x` in #((((( 12148-n*) 12149 case `echo 'xy\c'` in 12150 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12151 xy) ECHO_C='\c';; 12152 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12153 ECHO_T=' ';; 12154 esac;; 12155*) 12156 ECHO_N='-n';; 12157esac 12158 12159rm -f conf$$ conf$$.exe conf$$.file 12160if test -d conf$$.dir; then 12161 rm -f conf$$.dir/conf$$.file 12162else 12163 rm -f conf$$.dir 12164 mkdir conf$$.dir 2>/dev/null 12165fi 12166if (echo >conf$$.file) 2>/dev/null; then 12167 if ln -s conf$$.file conf$$ 2>/dev/null; then 12168 as_ln_s='ln -s' 12169 # ... but there are two gotchas: 12170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12172 # In both cases, we have to default to `cp -p'. 12173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12174 as_ln_s='cp -p' 12175 elif ln conf$$.file conf$$ 2>/dev/null; then 12176 as_ln_s=ln 12177 else 12178 as_ln_s='cp -p' 12179 fi 12180else 12181 as_ln_s='cp -p' 12182fi 12183rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12184rmdir conf$$.dir 2>/dev/null 12185 12186 12187# as_fn_mkdir_p 12188# ------------- 12189# Create "$as_dir" as a directory, including parents if necessary. 12190as_fn_mkdir_p () 12191{ 12192 12193 case $as_dir in #( 12194 -*) as_dir=./$as_dir;; 12195 esac 12196 test -d "$as_dir" || eval $as_mkdir_p || { 12197 as_dirs= 12198 while :; do 12199 case $as_dir in #( 12200 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12201 *) as_qdir=$as_dir;; 12202 esac 12203 as_dirs="'$as_qdir' $as_dirs" 12204 as_dir=`$as_dirname -- "$as_dir" || 12205$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12206 X"$as_dir" : 'X\(//\)[^/]' \| \ 12207 X"$as_dir" : 'X\(//\)$' \| \ 12208 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12209$as_echo X"$as_dir" | 12210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12211 s//\1/ 12212 q 12213 } 12214 /^X\(\/\/\)[^/].*/{ 12215 s//\1/ 12216 q 12217 } 12218 /^X\(\/\/\)$/{ 12219 s//\1/ 12220 q 12221 } 12222 /^X\(\/\).*/{ 12223 s//\1/ 12224 q 12225 } 12226 s/.*/./; q'` 12227 test -d "$as_dir" && break 12228 done 12229 test -z "$as_dirs" || eval "mkdir $as_dirs" 12230 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12231 12232 12233} # as_fn_mkdir_p 12234if mkdir -p . 2>/dev/null; then 12235 as_mkdir_p='mkdir -p "$as_dir"' 12236else 12237 test -d ./-p && rmdir ./-p 12238 as_mkdir_p=false 12239fi 12240 12241if test -x / >/dev/null 2>&1; then 12242 as_test_x='test -x' 12243else 12244 if ls -dL / >/dev/null 2>&1; then 12245 as_ls_L_option=L 12246 else 12247 as_ls_L_option= 12248 fi 12249 as_test_x=' 12250 eval sh -c '\'' 12251 if test -d "$1"; then 12252 test -d "$1/."; 12253 else 12254 case $1 in #( 12255 -*)set "./$1";; 12256 esac; 12257 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12258 ???[sx]*):;;*)false;;esac;fi 12259 '\'' sh 12260 ' 12261fi 12262as_executable_p=$as_test_x 12263 12264# Sed expression to map a string onto a valid CPP name. 12265as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12266 12267# Sed expression to map a string onto a valid variable name. 12268as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12269 12270 12271exec 6>&1 12272## ----------------------------------- ## 12273## Main body of $CONFIG_STATUS script. ## 12274## ----------------------------------- ## 12275_ASEOF 12276test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12277 12278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12279# Save the log message, to keep $0 and so on meaningful, and to 12280# report actual input values of CONFIG_FILES etc. instead of their 12281# values after options handling. 12282ac_log=" 12283This file was extended by libXdamage $as_me 1.1.3, which was 12284generated by GNU Autoconf 2.65. Invocation command line was 12285 12286 CONFIG_FILES = $CONFIG_FILES 12287 CONFIG_HEADERS = $CONFIG_HEADERS 12288 CONFIG_LINKS = $CONFIG_LINKS 12289 CONFIG_COMMANDS = $CONFIG_COMMANDS 12290 $ $0 $@ 12291 12292on `(hostname || uname -n) 2>/dev/null | sed 1q` 12293" 12294 12295_ACEOF 12296 12297case $ac_config_files in *" 12298"*) set x $ac_config_files; shift; ac_config_files=$*;; 12299esac 12300 12301case $ac_config_headers in *" 12302"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12303esac 12304 12305 12306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12307# Files that config.status was made for. 12308config_files="$ac_config_files" 12309config_headers="$ac_config_headers" 12310config_commands="$ac_config_commands" 12311 12312_ACEOF 12313 12314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12315ac_cs_usage="\ 12316\`$as_me' instantiates files and other configuration actions 12317from templates according to the current configuration. Unless the files 12318and actions are specified as TAGs, all are instantiated by default. 12319 12320Usage: $0 [OPTION]... [TAG]... 12321 12322 -h, --help print this help, then exit 12323 -V, --version print version number and configuration settings, then exit 12324 --config print configuration, then exit 12325 -q, --quiet, --silent 12326 do not print progress messages 12327 -d, --debug don't remove temporary files 12328 --recheck update $as_me by reconfiguring in the same conditions 12329 --file=FILE[:TEMPLATE] 12330 instantiate the configuration file FILE 12331 --header=FILE[:TEMPLATE] 12332 instantiate the configuration header FILE 12333 12334Configuration files: 12335$config_files 12336 12337Configuration headers: 12338$config_headers 12339 12340Configuration commands: 12341$config_commands 12342 12343Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12344 12345_ACEOF 12346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12347ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12348ac_cs_version="\\ 12349libXdamage config.status 1.1.3 12350configured by $0, generated by GNU Autoconf 2.65, 12351 with options \\"\$ac_cs_config\\" 12352 12353Copyright (C) 2009 Free Software Foundation, Inc. 12354This config.status script is free software; the Free Software Foundation 12355gives unlimited permission to copy, distribute and modify it." 12356 12357ac_pwd='$ac_pwd' 12358srcdir='$srcdir' 12359INSTALL='$INSTALL' 12360MKDIR_P='$MKDIR_P' 12361AWK='$AWK' 12362test -n "\$AWK" || AWK=awk 12363_ACEOF 12364 12365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12366# The default lists apply if the user does not specify any file. 12367ac_need_defaults=: 12368while test $# != 0 12369do 12370 case $1 in 12371 --*=*) 12372 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12373 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12374 ac_shift=: 12375 ;; 12376 *) 12377 ac_option=$1 12378 ac_optarg=$2 12379 ac_shift=shift 12380 ;; 12381 esac 12382 12383 case $ac_option in 12384 # Handling of the options. 12385 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12386 ac_cs_recheck=: ;; 12387 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12388 $as_echo "$ac_cs_version"; exit ;; 12389 --config | --confi | --conf | --con | --co | --c ) 12390 $as_echo "$ac_cs_config"; exit ;; 12391 --debug | --debu | --deb | --de | --d | -d ) 12392 debug=: ;; 12393 --file | --fil | --fi | --f ) 12394 $ac_shift 12395 case $ac_optarg in 12396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12397 esac 12398 as_fn_append CONFIG_FILES " '$ac_optarg'" 12399 ac_need_defaults=false;; 12400 --header | --heade | --head | --hea ) 12401 $ac_shift 12402 case $ac_optarg in 12403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12404 esac 12405 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12406 ac_need_defaults=false;; 12407 --he | --h) 12408 # Conflict between --help and --header 12409 as_fn_error "ambiguous option: \`$1' 12410Try \`$0 --help' for more information.";; 12411 --help | --hel | -h ) 12412 $as_echo "$ac_cs_usage"; exit ;; 12413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12414 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12415 ac_cs_silent=: ;; 12416 12417 # This is an error. 12418 -*) as_fn_error "unrecognized option: \`$1' 12419Try \`$0 --help' for more information." ;; 12420 12421 *) as_fn_append ac_config_targets " $1" 12422 ac_need_defaults=false ;; 12423 12424 esac 12425 shift 12426done 12427 12428ac_configure_extra_args= 12429 12430if $ac_cs_silent; then 12431 exec 6>/dev/null 12432 ac_configure_extra_args="$ac_configure_extra_args --silent" 12433fi 12434 12435_ACEOF 12436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12437if \$ac_cs_recheck; then 12438 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12439 shift 12440 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12441 CONFIG_SHELL='$SHELL' 12442 export CONFIG_SHELL 12443 exec "\$@" 12444fi 12445 12446_ACEOF 12447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12448exec 5>>config.log 12449{ 12450 echo 12451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12452## Running $as_me. ## 12453_ASBOX 12454 $as_echo "$ac_log" 12455} >&5 12456 12457_ACEOF 12458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12459# 12460# INIT-COMMANDS 12461# 12462AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12463 12464 12465# The HP-UX ksh and POSIX shell print the target directory to stdout 12466# if CDPATH is set. 12467(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12468 12469sed_quote_subst='$sed_quote_subst' 12470double_quote_subst='$double_quote_subst' 12471delay_variable_subst='$delay_variable_subst' 12472macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12473macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12474enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12475enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12476pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12477enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12478host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12479host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12480host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12481build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12482build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12483build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12484SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12485Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12486GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12487EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12488FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12489LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12490NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12491LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12492max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12493ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12494exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12495lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12496lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12497lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12498reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12499reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12500OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12501deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12502file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12503AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12504AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12505STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12506RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12507old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12508old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12509old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12510CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12511CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12512compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12513GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12514lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12515lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12516lt_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"`' 12517lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12518objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12519SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12520ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12521MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12522lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12523lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12524lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12525lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12526lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12527need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12528DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12529NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12530LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12531OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12532OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12533libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12534shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12535extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12536archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12537enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12538export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12539whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12540compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12541old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12542old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12543archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12544archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12545module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12546module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12547with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12548allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12549no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12550hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12551hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12552hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12553hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12554hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12555hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12556hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12557hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12558inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12559link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12560fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12561always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12562export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12563exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12564include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12565prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12566file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12567variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12568need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12569need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12570version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12571runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12572shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12573shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12574libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12575library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12576soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12577postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12578postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12579finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12580finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12581hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12582sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12583sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12584hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12585enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12586enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12587enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12588old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12589striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12590 12591LTCC='$LTCC' 12592LTCFLAGS='$LTCFLAGS' 12593compiler='$compiler_DEFAULT' 12594 12595# Quote evaled strings. 12596for var in SED \ 12597GREP \ 12598EGREP \ 12599FGREP \ 12600LD \ 12601NM \ 12602LN_S \ 12603lt_SP2NL \ 12604lt_NL2SP \ 12605reload_flag \ 12606OBJDUMP \ 12607deplibs_check_method \ 12608file_magic_cmd \ 12609AR \ 12610AR_FLAGS \ 12611STRIP \ 12612RANLIB \ 12613CC \ 12614CFLAGS \ 12615compiler \ 12616lt_cv_sys_global_symbol_pipe \ 12617lt_cv_sys_global_symbol_to_cdecl \ 12618lt_cv_sys_global_symbol_to_c_name_address \ 12619lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12620SHELL \ 12621ECHO \ 12622lt_prog_compiler_no_builtin_flag \ 12623lt_prog_compiler_wl \ 12624lt_prog_compiler_pic \ 12625lt_prog_compiler_static \ 12626lt_cv_prog_compiler_c_o \ 12627need_locks \ 12628DSYMUTIL \ 12629NMEDIT \ 12630LIPO \ 12631OTOOL \ 12632OTOOL64 \ 12633shrext_cmds \ 12634export_dynamic_flag_spec \ 12635whole_archive_flag_spec \ 12636compiler_needs_object \ 12637with_gnu_ld \ 12638allow_undefined_flag \ 12639no_undefined_flag \ 12640hardcode_libdir_flag_spec \ 12641hardcode_libdir_flag_spec_ld \ 12642hardcode_libdir_separator \ 12643fix_srcfile_path \ 12644exclude_expsyms \ 12645include_expsyms \ 12646file_list_spec \ 12647variables_saved_for_relink \ 12648libname_spec \ 12649library_names_spec \ 12650soname_spec \ 12651finish_eval \ 12652old_striplib \ 12653striplib; do 12654 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12655 *[\\\\\\\`\\"\\\$]*) 12656 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12657 ;; 12658 *) 12659 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12660 ;; 12661 esac 12662done 12663 12664# Double-quote double-evaled strings. 12665for var in reload_cmds \ 12666old_postinstall_cmds \ 12667old_postuninstall_cmds \ 12668old_archive_cmds \ 12669extract_expsyms_cmds \ 12670old_archive_from_new_cmds \ 12671old_archive_from_expsyms_cmds \ 12672archive_cmds \ 12673archive_expsym_cmds \ 12674module_cmds \ 12675module_expsym_cmds \ 12676export_symbols_cmds \ 12677prelink_cmds \ 12678postinstall_cmds \ 12679postuninstall_cmds \ 12680finish_cmds \ 12681sys_lib_search_path_spec \ 12682sys_lib_dlsearch_path_spec; do 12683 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12684 *[\\\\\\\`\\"\\\$]*) 12685 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12686 ;; 12687 *) 12688 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12689 ;; 12690 esac 12691done 12692 12693# Fix-up fallback echo if it was mangled by the above quoting rules. 12694case \$lt_ECHO in 12695*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12696 ;; 12697esac 12698 12699ac_aux_dir='$ac_aux_dir' 12700xsi_shell='$xsi_shell' 12701lt_shell_append='$lt_shell_append' 12702 12703# See if we are running on zsh, and set the options which allow our 12704# commands through without removal of \ escapes INIT. 12705if test -n "\${ZSH_VERSION+set}" ; then 12706 setopt NO_GLOB_SUBST 12707fi 12708 12709 12710 PACKAGE='$PACKAGE' 12711 VERSION='$VERSION' 12712 TIMESTAMP='$TIMESTAMP' 12713 RM='$RM' 12714 ofile='$ofile' 12715 12716 12717 12718 12719_ACEOF 12720 12721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12722 12723# Handling of arguments. 12724for ac_config_target in $ac_config_targets 12725do 12726 case $ac_config_target in 12727 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12728 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12729 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12730 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12731 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12732 "xdamage.pc") CONFIG_FILES="$CONFIG_FILES xdamage.pc" ;; 12733 12734 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12735 esac 12736done 12737 12738 12739# If the user did not use the arguments to specify the items to instantiate, 12740# then the envvar interface is used. Set only those that are not. 12741# We use the long form for the default assignment because of an extremely 12742# bizarre bug on SunOS 4.1.3. 12743if $ac_need_defaults; then 12744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12747fi 12748 12749# Have a temporary directory for convenience. Make it in the build tree 12750# simply because there is no reason against having it here, and in addition, 12751# creating and moving files from /tmp can sometimes cause problems. 12752# Hook for its removal unless debugging. 12753# Note that there is a small window in which the directory will not be cleaned: 12754# after its creation but before its name has been assigned to `$tmp'. 12755$debug || 12756{ 12757 tmp= 12758 trap 'exit_status=$? 12759 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12760' 0 12761 trap 'as_fn_exit 1' 1 2 13 15 12762} 12763# Create a (secure) tmp directory for tmp files. 12764 12765{ 12766 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12767 test -n "$tmp" && test -d "$tmp" 12768} || 12769{ 12770 tmp=./conf$$-$RANDOM 12771 (umask 077 && mkdir "$tmp") 12772} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12773 12774# Set up the scripts for CONFIG_FILES section. 12775# No need to generate them if there are no CONFIG_FILES. 12776# This happens for instance with `./config.status config.h'. 12777if test -n "$CONFIG_FILES"; then 12778 12779 12780ac_cr=`echo X | tr X '\015'` 12781# On cygwin, bash can eat \r inside `` if the user requested igncr. 12782# But we know of no other shell where ac_cr would be empty at this 12783# point, so we can use a bashism as a fallback. 12784if test "x$ac_cr" = x; then 12785 eval ac_cr=\$\'\\r\' 12786fi 12787ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12788if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12789 ac_cs_awk_cr='\r' 12790else 12791 ac_cs_awk_cr=$ac_cr 12792fi 12793 12794echo 'BEGIN {' >"$tmp/subs1.awk" && 12795_ACEOF 12796 12797 12798{ 12799 echo "cat >conf$$subs.awk <<_ACEOF" && 12800 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12801 echo "_ACEOF" 12802} >conf$$subs.sh || 12803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12804ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12805ac_delim='%!_!# ' 12806for ac_last_try in false false false false false :; do 12807 . ./conf$$subs.sh || 12808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12809 12810 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12811 if test $ac_delim_n = $ac_delim_num; then 12812 break 12813 elif $ac_last_try; then 12814 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12815 else 12816 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12817 fi 12818done 12819rm -f conf$$subs.sh 12820 12821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12822cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12823_ACEOF 12824sed -n ' 12825h 12826s/^/S["/; s/!.*/"]=/ 12827p 12828g 12829s/^[^!]*!// 12830:repl 12831t repl 12832s/'"$ac_delim"'$// 12833t delim 12834:nl 12835h 12836s/\(.\{148\}\)..*/\1/ 12837t more1 12838s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12839p 12840n 12841b repl 12842:more1 12843s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12844p 12845g 12846s/.\{148\}// 12847t nl 12848:delim 12849h 12850s/\(.\{148\}\)..*/\1/ 12851t more2 12852s/["\\]/\\&/g; s/^/"/; s/$/"/ 12853p 12854b 12855:more2 12856s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12857p 12858g 12859s/.\{148\}// 12860t delim 12861' <conf$$subs.awk | sed ' 12862/^[^""]/{ 12863 N 12864 s/\n// 12865} 12866' >>$CONFIG_STATUS || ac_write_fail=1 12867rm -f conf$$subs.awk 12868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12869_ACAWK 12870cat >>"\$tmp/subs1.awk" <<_ACAWK && 12871 for (key in S) S_is_set[key] = 1 12872 FS = "" 12873 12874} 12875{ 12876 line = $ 0 12877 nfields = split(line, field, "@") 12878 substed = 0 12879 len = length(field[1]) 12880 for (i = 2; i < nfields; i++) { 12881 key = field[i] 12882 keylen = length(key) 12883 if (S_is_set[key]) { 12884 value = S[key] 12885 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12886 len += length(value) + length(field[++i]) 12887 substed = 1 12888 } else 12889 len += 1 + keylen 12890 } 12891 12892 print line 12893} 12894 12895_ACAWK 12896_ACEOF 12897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12898if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12899 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12900else 12901 cat 12902fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12903 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12904_ACEOF 12905 12906# VPATH may cause trouble with some makes, so we remove $(srcdir), 12907# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12908# trailing colons and then remove the whole line if VPATH becomes empty 12909# (actually we leave an empty line to preserve line numbers). 12910if test "x$srcdir" = x.; then 12911 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12912s/:*\$(srcdir):*/:/ 12913s/:*\${srcdir}:*/:/ 12914s/:*@srcdir@:*/:/ 12915s/^\([^=]*=[ ]*\):*/\1/ 12916s/:*$// 12917s/^[^=]*=[ ]*$// 12918}' 12919fi 12920 12921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12922fi # test -n "$CONFIG_FILES" 12923 12924# Set up the scripts for CONFIG_HEADERS section. 12925# No need to generate them if there are no CONFIG_HEADERS. 12926# This happens for instance with `./config.status Makefile'. 12927if test -n "$CONFIG_HEADERS"; then 12928cat >"$tmp/defines.awk" <<\_ACAWK || 12929BEGIN { 12930_ACEOF 12931 12932# Transform confdefs.h into an awk script `defines.awk', embedded as 12933# here-document in config.status, that substitutes the proper values into 12934# config.h.in to produce config.h. 12935 12936# Create a delimiter string that does not exist in confdefs.h, to ease 12937# handling of long lines. 12938ac_delim='%!_!# ' 12939for ac_last_try in false false :; do 12940 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12941 if test -z "$ac_t"; then 12942 break 12943 elif $ac_last_try; then 12944 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12945 else 12946 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12947 fi 12948done 12949 12950# For the awk script, D is an array of macro values keyed by name, 12951# likewise P contains macro parameters if any. Preserve backslash 12952# newline sequences. 12953 12954ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12955sed -n ' 12956s/.\{148\}/&'"$ac_delim"'/g 12957t rset 12958:rset 12959s/^[ ]*#[ ]*define[ ][ ]*/ / 12960t def 12961d 12962:def 12963s/\\$// 12964t bsnl 12965s/["\\]/\\&/g 12966s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12967D["\1"]=" \3"/p 12968s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12969d 12970:bsnl 12971s/["\\]/\\&/g 12972s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12973D["\1"]=" \3\\\\\\n"\\/p 12974t cont 12975s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12976t cont 12977d 12978:cont 12979n 12980s/.\{148\}/&'"$ac_delim"'/g 12981t clear 12982:clear 12983s/\\$// 12984t bsnlc 12985s/["\\]/\\&/g; s/^/"/; s/$/"/p 12986d 12987:bsnlc 12988s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12989b cont 12990' <confdefs.h | sed ' 12991s/'"$ac_delim"'/"\\\ 12992"/g' >>$CONFIG_STATUS || ac_write_fail=1 12993 12994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12995 for (key in D) D_is_set[key] = 1 12996 FS = "" 12997} 12998/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12999 line = \$ 0 13000 split(line, arg, " ") 13001 if (arg[1] == "#") { 13002 defundef = arg[2] 13003 mac1 = arg[3] 13004 } else { 13005 defundef = substr(arg[1], 2) 13006 mac1 = arg[2] 13007 } 13008 split(mac1, mac2, "(") #) 13009 macro = mac2[1] 13010 prefix = substr(line, 1, index(line, defundef) - 1) 13011 if (D_is_set[macro]) { 13012 # Preserve the white space surrounding the "#". 13013 print prefix "define", macro P[macro] D[macro] 13014 next 13015 } else { 13016 # Replace #undef with comments. This is necessary, for example, 13017 # in the case of _POSIX_SOURCE, which is predefined and required 13018 # on some systems where configure will not decide to define it. 13019 if (defundef == "undef") { 13020 print "/*", prefix defundef, macro, "*/" 13021 next 13022 } 13023 } 13024} 13025{ print } 13026_ACAWK 13027_ACEOF 13028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13029 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13030fi # test -n "$CONFIG_HEADERS" 13031 13032 13033eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13034shift 13035for ac_tag 13036do 13037 case $ac_tag in 13038 :[FHLC]) ac_mode=$ac_tag; continue;; 13039 esac 13040 case $ac_mode$ac_tag in 13041 :[FHL]*:*);; 13042 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13043 :[FH]-) ac_tag=-:-;; 13044 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13045 esac 13046 ac_save_IFS=$IFS 13047 IFS=: 13048 set x $ac_tag 13049 IFS=$ac_save_IFS 13050 shift 13051 ac_file=$1 13052 shift 13053 13054 case $ac_mode in 13055 :L) ac_source=$1;; 13056 :[FH]) 13057 ac_file_inputs= 13058 for ac_f 13059 do 13060 case $ac_f in 13061 -) ac_f="$tmp/stdin";; 13062 *) # Look for the file first in the build tree, then in the source tree 13063 # (if the path is not absolute). The absolute path cannot be DOS-style, 13064 # because $ac_f cannot contain `:'. 13065 test -f "$ac_f" || 13066 case $ac_f in 13067 [\\/$]*) false;; 13068 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13069 esac || 13070 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13071 esac 13072 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13073 as_fn_append ac_file_inputs " '$ac_f'" 13074 done 13075 13076 # Let's still pretend it is `configure' which instantiates (i.e., don't 13077 # use $as_me), people would be surprised to read: 13078 # /* config.h. Generated by config.status. */ 13079 configure_input='Generated from '` 13080 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13081 `' by configure.' 13082 if test x"$ac_file" != x-; then 13083 configure_input="$ac_file. $configure_input" 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13085$as_echo "$as_me: creating $ac_file" >&6;} 13086 fi 13087 # Neutralize special characters interpreted by sed in replacement strings. 13088 case $configure_input in #( 13089 *\&* | *\|* | *\\* ) 13090 ac_sed_conf_input=`$as_echo "$configure_input" | 13091 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13092 *) ac_sed_conf_input=$configure_input;; 13093 esac 13094 13095 case $ac_tag in 13096 *:-:* | *:-) cat >"$tmp/stdin" \ 13097 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13098 esac 13099 ;; 13100 esac 13101 13102 ac_dir=`$as_dirname -- "$ac_file" || 13103$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13104 X"$ac_file" : 'X\(//\)[^/]' \| \ 13105 X"$ac_file" : 'X\(//\)$' \| \ 13106 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13107$as_echo X"$ac_file" | 13108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13109 s//\1/ 13110 q 13111 } 13112 /^X\(\/\/\)[^/].*/{ 13113 s//\1/ 13114 q 13115 } 13116 /^X\(\/\/\)$/{ 13117 s//\1/ 13118 q 13119 } 13120 /^X\(\/\).*/{ 13121 s//\1/ 13122 q 13123 } 13124 s/.*/./; q'` 13125 as_dir="$ac_dir"; as_fn_mkdir_p 13126 ac_builddir=. 13127 13128case "$ac_dir" in 13129.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13130*) 13131 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13132 # A ".." for each directory in $ac_dir_suffix. 13133 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13134 case $ac_top_builddir_sub in 13135 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13136 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13137 esac ;; 13138esac 13139ac_abs_top_builddir=$ac_pwd 13140ac_abs_builddir=$ac_pwd$ac_dir_suffix 13141# for backward compatibility: 13142ac_top_builddir=$ac_top_build_prefix 13143 13144case $srcdir in 13145 .) # We are building in place. 13146 ac_srcdir=. 13147 ac_top_srcdir=$ac_top_builddir_sub 13148 ac_abs_top_srcdir=$ac_pwd ;; 13149 [\\/]* | ?:[\\/]* ) # Absolute name. 13150 ac_srcdir=$srcdir$ac_dir_suffix; 13151 ac_top_srcdir=$srcdir 13152 ac_abs_top_srcdir=$srcdir ;; 13153 *) # Relative name. 13154 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13155 ac_top_srcdir=$ac_top_build_prefix$srcdir 13156 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13157esac 13158ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13159 13160 13161 case $ac_mode in 13162 :F) 13163 # 13164 # CONFIG_FILE 13165 # 13166 13167 case $INSTALL in 13168 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13169 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13170 esac 13171 ac_MKDIR_P=$MKDIR_P 13172 case $MKDIR_P in 13173 [\\/$]* | ?:[\\/]* ) ;; 13174 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13175 esac 13176_ACEOF 13177 13178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13179# If the template does not know about datarootdir, expand it. 13180# FIXME: This hack should be removed a few years after 2.60. 13181ac_datarootdir_hack=; ac_datarootdir_seen= 13182ac_sed_dataroot=' 13183/datarootdir/ { 13184 p 13185 q 13186} 13187/@datadir@/p 13188/@docdir@/p 13189/@infodir@/p 13190/@localedir@/p 13191/@mandir@/p' 13192case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13193*datarootdir*) ac_datarootdir_seen=yes;; 13194*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13196$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13197_ACEOF 13198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13199 ac_datarootdir_hack=' 13200 s&@datadir@&$datadir&g 13201 s&@docdir@&$docdir&g 13202 s&@infodir@&$infodir&g 13203 s&@localedir@&$localedir&g 13204 s&@mandir@&$mandir&g 13205 s&\\\${datarootdir}&$datarootdir&g' ;; 13206esac 13207_ACEOF 13208 13209# Neutralize VPATH when `$srcdir' = `.'. 13210# Shell code in configure.ac might set extrasub. 13211# FIXME: do we really want to maintain this feature? 13212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13213ac_sed_extra="$ac_vpsub 13214$extrasub 13215_ACEOF 13216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13217:t 13218/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13219s|@configure_input@|$ac_sed_conf_input|;t t 13220s&@top_builddir@&$ac_top_builddir_sub&;t t 13221s&@top_build_prefix@&$ac_top_build_prefix&;t t 13222s&@srcdir@&$ac_srcdir&;t t 13223s&@abs_srcdir@&$ac_abs_srcdir&;t t 13224s&@top_srcdir@&$ac_top_srcdir&;t t 13225s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13226s&@builddir@&$ac_builddir&;t t 13227s&@abs_builddir@&$ac_abs_builddir&;t t 13228s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13229s&@INSTALL@&$ac_INSTALL&;t t 13230s&@MKDIR_P@&$ac_MKDIR_P&;t t 13231$ac_datarootdir_hack 13232" 13233eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13234 || as_fn_error "could not create $ac_file" "$LINENO" 5 13235 13236test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13237 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13240which seems to be undefined. Please make sure it is defined." >&5 13241$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13242which seems to be undefined. Please make sure it is defined." >&2;} 13243 13244 rm -f "$tmp/stdin" 13245 case $ac_file in 13246 -) cat "$tmp/out" && rm -f "$tmp/out";; 13247 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13248 esac \ 13249 || as_fn_error "could not create $ac_file" "$LINENO" 5 13250 ;; 13251 :H) 13252 # 13253 # CONFIG_HEADER 13254 # 13255 if test x"$ac_file" != x-; then 13256 { 13257 $as_echo "/* $configure_input */" \ 13258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13259 } >"$tmp/config.h" \ 13260 || as_fn_error "could not create $ac_file" "$LINENO" 5 13261 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13263$as_echo "$as_me: $ac_file is unchanged" >&6;} 13264 else 13265 rm -f "$ac_file" 13266 mv "$tmp/config.h" "$ac_file" \ 13267 || as_fn_error "could not create $ac_file" "$LINENO" 5 13268 fi 13269 else 13270 $as_echo "/* $configure_input */" \ 13271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13272 || as_fn_error "could not create -" "$LINENO" 5 13273 fi 13274# Compute "$ac_file"'s index in $config_headers. 13275_am_arg="$ac_file" 13276_am_stamp_count=1 13277for _am_header in $config_headers :; do 13278 case $_am_header in 13279 $_am_arg | $_am_arg:* ) 13280 break ;; 13281 * ) 13282 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13283 esac 13284done 13285echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13286$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13287 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13288 X"$_am_arg" : 'X\(//\)$' \| \ 13289 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13290$as_echo X"$_am_arg" | 13291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13292 s//\1/ 13293 q 13294 } 13295 /^X\(\/\/\)[^/].*/{ 13296 s//\1/ 13297 q 13298 } 13299 /^X\(\/\/\)$/{ 13300 s//\1/ 13301 q 13302 } 13303 /^X\(\/\).*/{ 13304 s//\1/ 13305 q 13306 } 13307 s/.*/./; q'`/stamp-h$_am_stamp_count 13308 ;; 13309 13310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13311$as_echo "$as_me: executing $ac_file commands" >&6;} 13312 ;; 13313 esac 13314 13315 13316 case $ac_file$ac_mode in 13317 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13318 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13319 # are listed without --file. Let's play safe and only enable the eval 13320 # if we detect the quoting. 13321 case $CONFIG_FILES in 13322 *\'*) eval set x "$CONFIG_FILES" ;; 13323 *) set x $CONFIG_FILES ;; 13324 esac 13325 shift 13326 for mf 13327 do 13328 # Strip MF so we end up with the name of the file. 13329 mf=`echo "$mf" | sed -e 's/:.*$//'` 13330 # Check whether this is an Automake generated Makefile or not. 13331 # We used to match only the files named `Makefile.in', but 13332 # some people rename them; so instead we look at the file content. 13333 # Grep'ing the first line is not enough: some people post-process 13334 # each Makefile.in and add a new line on top of each file to say so. 13335 # Grep'ing the whole file is not good either: AIX grep has a line 13336 # limit of 2048, but all sed's we know have understand at least 4000. 13337 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13338 dirpart=`$as_dirname -- "$mf" || 13339$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13340 X"$mf" : 'X\(//\)[^/]' \| \ 13341 X"$mf" : 'X\(//\)$' \| \ 13342 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13343$as_echo X"$mf" | 13344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13345 s//\1/ 13346 q 13347 } 13348 /^X\(\/\/\)[^/].*/{ 13349 s//\1/ 13350 q 13351 } 13352 /^X\(\/\/\)$/{ 13353 s//\1/ 13354 q 13355 } 13356 /^X\(\/\).*/{ 13357 s//\1/ 13358 q 13359 } 13360 s/.*/./; q'` 13361 else 13362 continue 13363 fi 13364 # Extract the definition of DEPDIR, am__include, and am__quote 13365 # from the Makefile without running `make'. 13366 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13367 test -z "$DEPDIR" && continue 13368 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13369 test -z "am__include" && continue 13370 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13371 # When using ansi2knr, U may be empty or an underscore; expand it 13372 U=`sed -n 's/^U = //p' < "$mf"` 13373 # Find all dependency output files, they are included files with 13374 # $(DEPDIR) in their names. We invoke sed twice because it is the 13375 # simplest approach to changing $(DEPDIR) to its actual value in the 13376 # expansion. 13377 for file in `sed -n " 13378 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13379 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13380 # Make sure the directory exists. 13381 test -f "$dirpart/$file" && continue 13382 fdir=`$as_dirname -- "$file" || 13383$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13384 X"$file" : 'X\(//\)[^/]' \| \ 13385 X"$file" : 'X\(//\)$' \| \ 13386 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13387$as_echo X"$file" | 13388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13389 s//\1/ 13390 q 13391 } 13392 /^X\(\/\/\)[^/].*/{ 13393 s//\1/ 13394 q 13395 } 13396 /^X\(\/\/\)$/{ 13397 s//\1/ 13398 q 13399 } 13400 /^X\(\/\).*/{ 13401 s//\1/ 13402 q 13403 } 13404 s/.*/./; q'` 13405 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13406 # echo "creating $dirpart/$file" 13407 echo '# dummy' > "$dirpart/$file" 13408 done 13409 done 13410} 13411 ;; 13412 "libtool":C) 13413 13414 # See if we are running on zsh, and set the options which allow our 13415 # commands through without removal of \ escapes. 13416 if test -n "${ZSH_VERSION+set}" ; then 13417 setopt NO_GLOB_SUBST 13418 fi 13419 13420 cfgfile="${ofile}T" 13421 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13422 $RM "$cfgfile" 13423 13424 cat <<_LT_EOF >> "$cfgfile" 13425#! $SHELL 13426 13427# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13428# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13429# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13430# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13431# 13432# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13433# 2006, 2007, 2008 Free Software Foundation, Inc. 13434# Written by Gordon Matzigkeit, 1996 13435# 13436# This file is part of GNU Libtool. 13437# 13438# GNU Libtool is free software; you can redistribute it and/or 13439# modify it under the terms of the GNU General Public License as 13440# published by the Free Software Foundation; either version 2 of 13441# the License, or (at your option) any later version. 13442# 13443# As a special exception to the GNU General Public License, 13444# if you distribute this file as part of a program or library that 13445# is built using GNU Libtool, you may include this file under the 13446# same distribution terms that you use for the rest of that program. 13447# 13448# GNU Libtool is distributed in the hope that it will be useful, 13449# but WITHOUT ANY WARRANTY; without even the implied warranty of 13450# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13451# GNU General Public License for more details. 13452# 13453# You should have received a copy of the GNU General Public License 13454# along with GNU Libtool; see the file COPYING. If not, a copy 13455# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13456# obtained by writing to the Free Software Foundation, Inc., 13457# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13458 13459 13460# The names of the tagged configurations supported by this script. 13461available_tags="" 13462 13463# ### BEGIN LIBTOOL CONFIG 13464 13465# Which release of libtool.m4 was used? 13466macro_version=$macro_version 13467macro_revision=$macro_revision 13468 13469# Whether or not to build shared libraries. 13470build_libtool_libs=$enable_shared 13471 13472# Whether or not to build static libraries. 13473build_old_libs=$enable_static 13474 13475# What type of objects to build. 13476pic_mode=$pic_mode 13477 13478# Whether or not to optimize for fast installation. 13479fast_install=$enable_fast_install 13480 13481# The host system. 13482host_alias=$host_alias 13483host=$host 13484host_os=$host_os 13485 13486# The build system. 13487build_alias=$build_alias 13488build=$build 13489build_os=$build_os 13490 13491# A sed program that does not truncate output. 13492SED=$lt_SED 13493 13494# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13495Xsed="\$SED -e 1s/^X//" 13496 13497# A grep program that handles long lines. 13498GREP=$lt_GREP 13499 13500# An ERE matcher. 13501EGREP=$lt_EGREP 13502 13503# A literal string matcher. 13504FGREP=$lt_FGREP 13505 13506# A BSD- or MS-compatible name lister. 13507NM=$lt_NM 13508 13509# Whether we need soft or hard links. 13510LN_S=$lt_LN_S 13511 13512# What is the maximum length of a command? 13513max_cmd_len=$max_cmd_len 13514 13515# Object file suffix (normally "o"). 13516objext=$ac_objext 13517 13518# Executable file suffix (normally ""). 13519exeext=$exeext 13520 13521# whether the shell understands "unset". 13522lt_unset=$lt_unset 13523 13524# turn spaces into newlines. 13525SP2NL=$lt_lt_SP2NL 13526 13527# turn newlines into spaces. 13528NL2SP=$lt_lt_NL2SP 13529 13530# How to create reloadable object files. 13531reload_flag=$lt_reload_flag 13532reload_cmds=$lt_reload_cmds 13533 13534# An object symbol dumper. 13535OBJDUMP=$lt_OBJDUMP 13536 13537# Method to check whether dependent libraries are shared objects. 13538deplibs_check_method=$lt_deplibs_check_method 13539 13540# Command to use when deplibs_check_method == "file_magic". 13541file_magic_cmd=$lt_file_magic_cmd 13542 13543# The archiver. 13544AR=$lt_AR 13545AR_FLAGS=$lt_AR_FLAGS 13546 13547# A symbol stripping program. 13548STRIP=$lt_STRIP 13549 13550# Commands used to install an old-style archive. 13551RANLIB=$lt_RANLIB 13552old_postinstall_cmds=$lt_old_postinstall_cmds 13553old_postuninstall_cmds=$lt_old_postuninstall_cmds 13554 13555# A C compiler. 13556LTCC=$lt_CC 13557 13558# LTCC compiler flags. 13559LTCFLAGS=$lt_CFLAGS 13560 13561# Take the output of nm and produce a listing of raw symbols and C names. 13562global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13563 13564# Transform the output of nm in a proper C declaration. 13565global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13566 13567# Transform the output of nm in a C name address pair. 13568global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13569 13570# Transform the output of nm in a C name address pair when lib prefix is needed. 13571global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13572 13573# The name of the directory that contains temporary libtool files. 13574objdir=$objdir 13575 13576# Shell to use when invoking shell scripts. 13577SHELL=$lt_SHELL 13578 13579# An echo program that does not interpret backslashes. 13580ECHO=$lt_ECHO 13581 13582# Used to examine libraries when file_magic_cmd begins with "file". 13583MAGIC_CMD=$MAGIC_CMD 13584 13585# Must we lock files when doing compilation? 13586need_locks=$lt_need_locks 13587 13588# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13589DSYMUTIL=$lt_DSYMUTIL 13590 13591# Tool to change global to local symbols on Mac OS X. 13592NMEDIT=$lt_NMEDIT 13593 13594# Tool to manipulate fat objects and archives on Mac OS X. 13595LIPO=$lt_LIPO 13596 13597# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13598OTOOL=$lt_OTOOL 13599 13600# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13601OTOOL64=$lt_OTOOL64 13602 13603# Old archive suffix (normally "a"). 13604libext=$libext 13605 13606# Shared library suffix (normally ".so"). 13607shrext_cmds=$lt_shrext_cmds 13608 13609# The commands to extract the exported symbol list from a shared archive. 13610extract_expsyms_cmds=$lt_extract_expsyms_cmds 13611 13612# Variables whose values should be saved in libtool wrapper scripts and 13613# restored at link time. 13614variables_saved_for_relink=$lt_variables_saved_for_relink 13615 13616# Do we need the "lib" prefix for modules? 13617need_lib_prefix=$need_lib_prefix 13618 13619# Do we need a version for libraries? 13620need_version=$need_version 13621 13622# Library versioning type. 13623version_type=$version_type 13624 13625# Shared library runtime path variable. 13626runpath_var=$runpath_var 13627 13628# Shared library path variable. 13629shlibpath_var=$shlibpath_var 13630 13631# Is shlibpath searched before the hard-coded library search path? 13632shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13633 13634# Format of library name prefix. 13635libname_spec=$lt_libname_spec 13636 13637# List of archive names. First name is the real one, the rest are links. 13638# The last name is the one that the linker finds with -lNAME 13639library_names_spec=$lt_library_names_spec 13640 13641# The coded name of the library, if different from the real name. 13642soname_spec=$lt_soname_spec 13643 13644# Command to use after installation of a shared archive. 13645postinstall_cmds=$lt_postinstall_cmds 13646 13647# Command to use after uninstallation of a shared archive. 13648postuninstall_cmds=$lt_postuninstall_cmds 13649 13650# Commands used to finish a libtool library installation in a directory. 13651finish_cmds=$lt_finish_cmds 13652 13653# As "finish_cmds", except a single script fragment to be evaled but 13654# not shown. 13655finish_eval=$lt_finish_eval 13656 13657# Whether we should hardcode library paths into libraries. 13658hardcode_into_libs=$hardcode_into_libs 13659 13660# Compile-time system search path for libraries. 13661sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13662 13663# Run-time system search path for libraries. 13664sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13665 13666# Whether dlopen is supported. 13667dlopen_support=$enable_dlopen 13668 13669# Whether dlopen of programs is supported. 13670dlopen_self=$enable_dlopen_self 13671 13672# Whether dlopen of statically linked programs is supported. 13673dlopen_self_static=$enable_dlopen_self_static 13674 13675# Commands to strip libraries. 13676old_striplib=$lt_old_striplib 13677striplib=$lt_striplib 13678 13679 13680# The linker used to build libraries. 13681LD=$lt_LD 13682 13683# Commands used to build an old-style archive. 13684old_archive_cmds=$lt_old_archive_cmds 13685 13686# A language specific compiler. 13687CC=$lt_compiler 13688 13689# Is the compiler the GNU compiler? 13690with_gcc=$GCC 13691 13692# Compiler flag to turn off builtin functions. 13693no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13694 13695# How to pass a linker flag through the compiler. 13696wl=$lt_lt_prog_compiler_wl 13697 13698# Additional compiler flags for building library objects. 13699pic_flag=$lt_lt_prog_compiler_pic 13700 13701# Compiler flag to prevent dynamic linking. 13702link_static_flag=$lt_lt_prog_compiler_static 13703 13704# Does compiler simultaneously support -c and -o options? 13705compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13706 13707# Whether or not to add -lc for building shared libraries. 13708build_libtool_need_lc=$archive_cmds_need_lc 13709 13710# Whether or not to disallow shared libs when runtime libs are static. 13711allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13712 13713# Compiler flag to allow reflexive dlopens. 13714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13715 13716# Compiler flag to generate shared objects directly from archives. 13717whole_archive_flag_spec=$lt_whole_archive_flag_spec 13718 13719# Whether the compiler copes with passing no objects directly. 13720compiler_needs_object=$lt_compiler_needs_object 13721 13722# Create an old-style archive from a shared archive. 13723old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13724 13725# Create a temporary old-style archive to link instead of a shared archive. 13726old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13727 13728# Commands used to build a shared archive. 13729archive_cmds=$lt_archive_cmds 13730archive_expsym_cmds=$lt_archive_expsym_cmds 13731 13732# Commands used to build a loadable module if different from building 13733# a shared archive. 13734module_cmds=$lt_module_cmds 13735module_expsym_cmds=$lt_module_expsym_cmds 13736 13737# Whether we are building with GNU ld or not. 13738with_gnu_ld=$lt_with_gnu_ld 13739 13740# Flag that allows shared libraries with undefined symbols to be built. 13741allow_undefined_flag=$lt_allow_undefined_flag 13742 13743# Flag that enforces no undefined symbols. 13744no_undefined_flag=$lt_no_undefined_flag 13745 13746# Flag to hardcode \$libdir into a binary during linking. 13747# This must work even if \$libdir does not exist 13748hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13749 13750# If ld is used when linking, flag to hardcode \$libdir into a binary 13751# during linking. This must work even if \$libdir does not exist. 13752hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13753 13754# Whether we need a single "-rpath" flag with a separated argument. 13755hardcode_libdir_separator=$lt_hardcode_libdir_separator 13756 13757# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13758# DIR into the resulting binary. 13759hardcode_direct=$hardcode_direct 13760 13761# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13762# DIR into the resulting binary and the resulting library dependency is 13763# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13764# library is relocated. 13765hardcode_direct_absolute=$hardcode_direct_absolute 13766 13767# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13768# into the resulting binary. 13769hardcode_minus_L=$hardcode_minus_L 13770 13771# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13772# into the resulting binary. 13773hardcode_shlibpath_var=$hardcode_shlibpath_var 13774 13775# Set to "yes" if building a shared library automatically hardcodes DIR 13776# into the library and all subsequent libraries and executables linked 13777# against it. 13778hardcode_automatic=$hardcode_automatic 13779 13780# Set to yes if linker adds runtime paths of dependent libraries 13781# to runtime path list. 13782inherit_rpath=$inherit_rpath 13783 13784# Whether libtool must link a program against all its dependency libraries. 13785link_all_deplibs=$link_all_deplibs 13786 13787# Fix the shell variable \$srcfile for the compiler. 13788fix_srcfile_path=$lt_fix_srcfile_path 13789 13790# Set to "yes" if exported symbols are required. 13791always_export_symbols=$always_export_symbols 13792 13793# The commands to list exported symbols. 13794export_symbols_cmds=$lt_export_symbols_cmds 13795 13796# Symbols that should not be listed in the preloaded symbols. 13797exclude_expsyms=$lt_exclude_expsyms 13798 13799# Symbols that must always be exported. 13800include_expsyms=$lt_include_expsyms 13801 13802# Commands necessary for linking programs (against libraries) with templates. 13803prelink_cmds=$lt_prelink_cmds 13804 13805# Specify filename containing input files. 13806file_list_spec=$lt_file_list_spec 13807 13808# How to hardcode a shared library path into an executable. 13809hardcode_action=$hardcode_action 13810 13811# ### END LIBTOOL CONFIG 13812 13813_LT_EOF 13814 13815 case $host_os in 13816 aix3*) 13817 cat <<\_LT_EOF >> "$cfgfile" 13818# AIX sometimes has problems with the GCC collect2 program. For some 13819# reason, if we set the COLLECT_NAMES environment variable, the problems 13820# vanish in a puff of smoke. 13821if test "X${COLLECT_NAMES+set}" != Xset; then 13822 COLLECT_NAMES= 13823 export COLLECT_NAMES 13824fi 13825_LT_EOF 13826 ;; 13827 esac 13828 13829 13830ltmain="$ac_aux_dir/ltmain.sh" 13831 13832 13833 # We use sed instead of cat because bash on DJGPP gets confused if 13834 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13835 # text mode, it properly converts lines to CR/LF. This bash problem 13836 # is reportedly fixed, but why not run on old versions too? 13837 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13838 || (rm -f "$cfgfile"; exit 1) 13839 13840 case $xsi_shell in 13841 yes) 13842 cat << \_LT_EOF >> "$cfgfile" 13843 13844# func_dirname file append nondir_replacement 13845# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13846# otherwise set result to NONDIR_REPLACEMENT. 13847func_dirname () 13848{ 13849 case ${1} in 13850 */*) func_dirname_result="${1%/*}${2}" ;; 13851 * ) func_dirname_result="${3}" ;; 13852 esac 13853} 13854 13855# func_basename file 13856func_basename () 13857{ 13858 func_basename_result="${1##*/}" 13859} 13860 13861# func_dirname_and_basename file append nondir_replacement 13862# perform func_basename and func_dirname in a single function 13863# call: 13864# dirname: Compute the dirname of FILE. If nonempty, 13865# add APPEND to the result, otherwise set result 13866# to NONDIR_REPLACEMENT. 13867# value returned in "$func_dirname_result" 13868# basename: Compute filename of FILE. 13869# value retuned in "$func_basename_result" 13870# Implementation must be kept synchronized with func_dirname 13871# and func_basename. For efficiency, we do not delegate to 13872# those functions but instead duplicate the functionality here. 13873func_dirname_and_basename () 13874{ 13875 case ${1} in 13876 */*) func_dirname_result="${1%/*}${2}" ;; 13877 * ) func_dirname_result="${3}" ;; 13878 esac 13879 func_basename_result="${1##*/}" 13880} 13881 13882# func_stripname prefix suffix name 13883# strip PREFIX and SUFFIX off of NAME. 13884# PREFIX and SUFFIX must not contain globbing or regex special 13885# characters, hashes, percent signs, but SUFFIX may contain a leading 13886# dot (in which case that matches only a dot). 13887func_stripname () 13888{ 13889 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13890 # positional parameters, so assign one to ordinary parameter first. 13891 func_stripname_result=${3} 13892 func_stripname_result=${func_stripname_result#"${1}"} 13893 func_stripname_result=${func_stripname_result%"${2}"} 13894} 13895 13896# func_opt_split 13897func_opt_split () 13898{ 13899 func_opt_split_opt=${1%%=*} 13900 func_opt_split_arg=${1#*=} 13901} 13902 13903# func_lo2o object 13904func_lo2o () 13905{ 13906 case ${1} in 13907 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13908 *) func_lo2o_result=${1} ;; 13909 esac 13910} 13911 13912# func_xform libobj-or-source 13913func_xform () 13914{ 13915 func_xform_result=${1%.*}.lo 13916} 13917 13918# func_arith arithmetic-term... 13919func_arith () 13920{ 13921 func_arith_result=$(( $* )) 13922} 13923 13924# func_len string 13925# STRING may not start with a hyphen. 13926func_len () 13927{ 13928 func_len_result=${#1} 13929} 13930 13931_LT_EOF 13932 ;; 13933 *) # Bourne compatible functions. 13934 cat << \_LT_EOF >> "$cfgfile" 13935 13936# func_dirname file append nondir_replacement 13937# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13938# otherwise set result to NONDIR_REPLACEMENT. 13939func_dirname () 13940{ 13941 # Extract subdirectory from the argument. 13942 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13943 if test "X$func_dirname_result" = "X${1}"; then 13944 func_dirname_result="${3}" 13945 else 13946 func_dirname_result="$func_dirname_result${2}" 13947 fi 13948} 13949 13950# func_basename file 13951func_basename () 13952{ 13953 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13954} 13955 13956 13957# func_stripname prefix suffix name 13958# strip PREFIX and SUFFIX off of NAME. 13959# PREFIX and SUFFIX must not contain globbing or regex special 13960# characters, hashes, percent signs, but SUFFIX may contain a leading 13961# dot (in which case that matches only a dot). 13962# func_strip_suffix prefix name 13963func_stripname () 13964{ 13965 case ${2} in 13966 .*) func_stripname_result=`$ECHO "X${3}" \ 13967 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13968 *) func_stripname_result=`$ECHO "X${3}" \ 13969 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13970 esac 13971} 13972 13973# sed scripts: 13974my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13975my_sed_long_arg='1s/^-[^=]*=//' 13976 13977# func_opt_split 13978func_opt_split () 13979{ 13980 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13981 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13982} 13983 13984# func_lo2o object 13985func_lo2o () 13986{ 13987 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13988} 13989 13990# func_xform libobj-or-source 13991func_xform () 13992{ 13993 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13994} 13995 13996# func_arith arithmetic-term... 13997func_arith () 13998{ 13999 func_arith_result=`expr "$@"` 14000} 14001 14002# func_len string 14003# STRING may not start with a hyphen. 14004func_len () 14005{ 14006 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14007} 14008 14009_LT_EOF 14010esac 14011 14012case $lt_shell_append in 14013 yes) 14014 cat << \_LT_EOF >> "$cfgfile" 14015 14016# func_append var value 14017# Append VALUE to the end of shell variable VAR. 14018func_append () 14019{ 14020 eval "$1+=\$2" 14021} 14022_LT_EOF 14023 ;; 14024 *) 14025 cat << \_LT_EOF >> "$cfgfile" 14026 14027# func_append var value 14028# Append VALUE to the end of shell variable VAR. 14029func_append () 14030{ 14031 eval "$1=\$$1\$2" 14032} 14033 14034_LT_EOF 14035 ;; 14036 esac 14037 14038 14039 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14040 || (rm -f "$cfgfile"; exit 1) 14041 14042 mv -f "$cfgfile" "$ofile" || 14043 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14044 chmod +x "$ofile" 14045 14046 ;; 14047 14048 esac 14049done # for ac_tag 14050 14051 14052as_fn_exit 0 14053_ACEOF 14054ac_clean_files=$ac_clean_files_save 14055 14056test $ac_write_fail = 0 || 14057 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14058 14059 14060# configure is writing to config.log, and then calls config.status. 14061# config.status does its own redirection, appending to config.log. 14062# Unfortunately, on DOS this fails, as config.log is still kept open 14063# by configure, so config.status won't be able to write to it; its 14064# output is simply discarded. So we exec the FD to /dev/null, 14065# effectively closing config.log, so it can be properly (re)opened and 14066# appended to by config.status. When coming back to configure, we 14067# need to make the FD available again. 14068if test "$no_create" != yes; then 14069 ac_cs_success=: 14070 ac_config_status_args= 14071 test "$silent" = yes && 14072 ac_config_status_args="$ac_config_status_args --quiet" 14073 exec 5>/dev/null 14074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14075 exec 5>>config.log 14076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14077 # would make configure fail if this is the last instruction. 14078 $ac_cs_success || as_fn_exit $? 14079fi 14080if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14082$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14083fi 14084 14085 14086