configure revision 602e473d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libxcb 1.6. 4# 5# Report bugs to <xcb@lists.freedesktop.org>. 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: xcb@lists.freedesktop.org about your system, including 235$0: any error possibly output before this message. Then 236$0: install a modern shell, or manually run the script 237$0: under such a shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error ERROR [LINENO LOG_FD] 363# --------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with status $?, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$lt_ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543ECHO=${lt_ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $ECHO works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<_LT_EOF 562$* 563_LT_EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$lt_ECHO"; then 572 if test "X${echo_test_string+set}" != Xset; then 573 # find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 578 then 579 break 580 fi 581 done 582 fi 583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 586 test "X$echo_testing_string" = "X$echo_test_string"; then 587 : 588 else 589 # The Solaris, AIX, and Digital Unix default echo programs unquote 590 # backslashes. This makes it impossible to quote backslashes using 591 # echo "$something" | sed 's/\\/\\\\/g' 592 # 593 # So, first we look for a working echo in the user's PATH. 594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 596 for dir in $PATH /usr/ucb; do 597 IFS="$lt_save_ifs" 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 601 test "X$echo_testing_string" = "X$echo_test_string"; then 602 ECHO="$dir/echo" 603 break 604 fi 605 done 606 IFS="$lt_save_ifs" 607 608 if test "X$ECHO" = Xecho; then 609 # We didn't find a better echo, so look for alternatives. 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 612 test "X$echo_testing_string" = "X$echo_test_string"; then 613 # This shell has a builtin print -r that does the trick. 614 ECHO='print -r' 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 616 test "X$CONFIG_SHELL" != X/bin/ksh; then 617 # If we have ksh, try running configure again with it. 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 619 export ORIGINAL_CONFIG_SHELL 620 CONFIG_SHELL=/bin/ksh 621 export CONFIG_SHELL 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 623 else 624 # Try using printf. 625 ECHO='printf %s\n' 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 # Cool, printf works 630 : 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 632 test "X$echo_testing_string" = 'X\t' && 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 636 export CONFIG_SHELL 637 SHELL="$CONFIG_SHELL" 638 export SHELL 639 ECHO="$CONFIG_SHELL $0 --fallback-echo" 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 641 test "X$echo_testing_string" = 'X\t' && 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" 645 else 646 # maybe with a smaller string... 647 prev=: 648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 651 then 652 break 653 fi 654 prev="$cmd" 655 done 656 657 if test "$prev" != 'sed 50q "$0"'; then 658 echo_test_string=`eval $prev` 659 export echo_test_string 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 661 else 662 # Oops. We lost completely, so just stick with echo. 663 ECHO=echo 664 fi 665 fi 666 fi 667 fi 668 fi 669fi 670 671# Copy echo and quote the copy suitably for passing to libtool from 672# the Makefile, instead of quoting the original, which is used later. 673lt_ECHO=$ECHO 674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 676fi 677 678 679 680 681test -n "$DJDIR" || exec 7<&0 </dev/null 682exec 6>&1 683 684# Name of the host. 685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 686# so uname gets run too. 687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 688 689# 690# Initializations. 691# 692ac_default_prefix=/usr/local 693ac_clean_files= 694ac_config_libobj_dir=. 695LIBOBJS= 696cross_compiling=no 697subdirs= 698MFLAGS= 699MAKEFLAGS= 700 701# Identity of this package. 702PACKAGE_NAME='libxcb' 703PACKAGE_TARNAME='libxcb' 704PACKAGE_VERSION='1.6' 705PACKAGE_STRING='libxcb 1.6' 706PACKAGE_BUGREPORT='xcb@lists.freedesktop.org' 707PACKAGE_URL='' 708 709ac_unique_file="xcb.pc.in" 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 750LAUNCHD 751BUILD_XVMC_FALSE 752BUILD_XVMC_TRUE 753BUILD_XV_FALSE 754BUILD_XV_TRUE 755BUILD_XTEST_FALSE 756BUILD_XTEST_TRUE 757BUILD_SELINUX_FALSE 758BUILD_SELINUX_TRUE 759BUILD_XPRINT_FALSE 760BUILD_XPRINT_TRUE 761BUILD_XINPUT_FALSE 762BUILD_XINPUT_TRUE 763BUILD_XINERAMA_FALSE 764BUILD_XINERAMA_TRUE 765BUILD_XFREE86_DRI_FALSE 766BUILD_XFREE86_DRI_TRUE 767BUILD_XFIXES_FALSE 768BUILD_XFIXES_TRUE 769BUILD_XEVIE_FALSE 770BUILD_XEVIE_TRUE 771BUILD_SYNC_FALSE 772BUILD_SYNC_TRUE 773BUILD_SHM_FALSE 774BUILD_SHM_TRUE 775BUILD_SHAPE_FALSE 776BUILD_SHAPE_TRUE 777BUILD_SCREENSAVER_FALSE 778BUILD_SCREENSAVER_TRUE 779BUILD_RESOURCE_FALSE 780BUILD_RESOURCE_TRUE 781BUILD_RENDER_FALSE 782BUILD_RENDER_TRUE 783BUILD_RECORD_FALSE 784BUILD_RECORD_TRUE 785BUILD_RANDR_FALSE 786BUILD_RANDR_TRUE 787BUILD_GLX_FALSE 788BUILD_GLX_TRUE 789BUILD_DRI2_FALSE 790BUILD_DRI2_TRUE 791BUILD_DPMS_FALSE 792BUILD_DPMS_TRUE 793BUILD_DAMAGE_FALSE 794BUILD_DAMAGE_TRUE 795BUILD_COMPOSITE_FALSE 796BUILD_COMPOSITE_TRUE 797BUILD_DOCS_FALSE 798BUILD_DOCS_TRUE 799DOXYGEN 800DOT 801BUILD_DOCS 802CWARNFLAGS 803xcbincludedir 804XCBPROTO_XCBPYTHONDIR 805XCBPROTO_VERSION 806XCBPROTO_XCBINCLUDEDIR 807NEEDED 808XDMCP_LIBS 809XDMCP_CFLAGS 810NEEDED_LIBS 811NEEDED_CFLAGS 812XCBPROTO_LIBS 813XCBPROTO_CFLAGS 814HTML_CHECK_RESULT 815XSLTPROC 816CPP 817OTOOL64 818OTOOL 819LIPO 820NMEDIT 821DSYMUTIL 822lt_ECHO 823RANLIB 824AR 825OBJDUMP 826LN_S 827NM 828ac_ct_DUMPBIN 829DUMPBIN 830LD 831FGREP 832EGREP 833GREP 834SED 835am__fastdepCC_FALSE 836am__fastdepCC_TRUE 837CCDEPMODE 838AMDEPBACKSLASH 839AMDEP_FALSE 840AMDEP_TRUE 841am__quote 842am__include 843DEPDIR 844OBJEXT 845EXEEXT 846ac_ct_CC 847CPPFLAGS 848LDFLAGS 849CFLAGS 850CC 851host_os 852host_vendor 853host_cpu 854host 855build_os 856build_vendor 857build_cpu 858build 859LIBTOOL 860HAVE_CHECK_FALSE 861HAVE_CHECK_TRUE 862CHECK_LIBS 863CHECK_CFLAGS 864PKG_CONFIG 865pkgpyexecdir 866pyexecdir 867pkgpythondir 868pythondir 869PYTHON_PLATFORM 870PYTHON_EXEC_PREFIX 871PYTHON_PREFIX 872PYTHON_VERSION 873PYTHON 874am__untar 875am__tar 876AMTAR 877am__leading_dot 878SET_MAKE 879AWK 880mkdir_p 881MKDIR_P 882INSTALL_STRIP_PROGRAM 883STRIP 884install_sh 885MAKEINFO 886AUTOHEADER 887AUTOMAKE 888AUTOCONF 889ACLOCAL 890VERSION 891PACKAGE 892CYGPATH_W 893am__isrc 894INSTALL_DATA 895INSTALL_SCRIPT 896INSTALL_PROGRAM 897target_alias 898host_alias 899build_alias 900LIBS 901ECHO_T 902ECHO_N 903ECHO_C 904DEFS 905mandir 906localedir 907libdir 908psdir 909pdfdir 910dvidir 911htmldir 912infodir 913docdir 914oldincludedir 915includedir 916localstatedir 917sharedstatedir 918sysconfdir 919datadir 920datarootdir 921libexecdir 922sbindir 923bindir 924program_transform_name 925prefix 926exec_prefix 927PACKAGE_URL 928PACKAGE_BUGREPORT 929PACKAGE_STRING 930PACKAGE_VERSION 931PACKAGE_TARNAME 932PACKAGE_NAME 933PATH_SEPARATOR 934SHELL' 935ac_subst_files='' 936ac_user_opts=' 937enable_option_checking 938enable_shared 939enable_static 940with_pic 941enable_fast_install 942enable_dependency_tracking 943with_gnu_ld 944enable_libtool_lock 945with_queue_size 946enable_build_docs 947with_doxygen 948enable_composite 949enable_damage 950enable_dpms 951enable_dri2 952enable_glx 953enable_randr 954enable_record 955enable_render 956enable_resource 957enable_screensaver 958enable_shape 959enable_shm 960enable_sync 961enable_xevie 962enable_xfixes 963enable_xfree86_dri 964enable_xinerama 965enable_xinput 966enable_xprint 967enable_selinux 968enable_xtest 969enable_xv 970enable_xvmc 971with_launchd 972' 973 ac_precious_vars='build_alias 974host_alias 975target_alias 976PKG_CONFIG 977CHECK_CFLAGS 978CHECK_LIBS 979CC 980CFLAGS 981LDFLAGS 982LIBS 983CPPFLAGS 984CPP 985XCBPROTO_CFLAGS 986XCBPROTO_LIBS 987NEEDED_CFLAGS 988NEEDED_LIBS 989XDMCP_CFLAGS 990XDMCP_LIBS' 991 992 993# Initialize some variables set by options. 994ac_init_help= 995ac_init_version=false 996ac_unrecognized_opts= 997ac_unrecognized_sep= 998# The variables have the same names as the options, with 999# dashes changed to underlines. 1000cache_file=/dev/null 1001exec_prefix=NONE 1002no_create= 1003no_recursion= 1004prefix=NONE 1005program_prefix=NONE 1006program_suffix=NONE 1007program_transform_name=s,x,x, 1008silent= 1009site= 1010srcdir= 1011verbose= 1012x_includes=NONE 1013x_libraries=NONE 1014 1015# Installation directory options. 1016# These are left unexpanded so users can "make install exec_prefix=/foo" 1017# and all the variables that are supposed to be based on exec_prefix 1018# by default will actually change. 1019# Use braces instead of parens because sh, perl, etc. also accept them. 1020# (The list follows the same order as the GNU Coding Standards.) 1021bindir='${exec_prefix}/bin' 1022sbindir='${exec_prefix}/sbin' 1023libexecdir='${exec_prefix}/libexec' 1024datarootdir='${prefix}/share' 1025datadir='${datarootdir}' 1026sysconfdir='${prefix}/etc' 1027sharedstatedir='${prefix}/com' 1028localstatedir='${prefix}/var' 1029includedir='${prefix}/include' 1030oldincludedir='/usr/include' 1031docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1032infodir='${datarootdir}/info' 1033htmldir='${docdir}' 1034dvidir='${docdir}' 1035pdfdir='${docdir}' 1036psdir='${docdir}' 1037libdir='${exec_prefix}/lib' 1038localedir='${datarootdir}/locale' 1039mandir='${datarootdir}/man' 1040 1041ac_prev= 1042ac_dashdash= 1043for ac_option 1044do 1045 # If the previous option needs an argument, assign it. 1046 if test -n "$ac_prev"; then 1047 eval $ac_prev=\$ac_option 1048 ac_prev= 1049 continue 1050 fi 1051 1052 case $ac_option in 1053 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1054 *) ac_optarg=yes ;; 1055 esac 1056 1057 # Accept the important Cygnus configure options, so we can diagnose typos. 1058 1059 case $ac_dashdash$ac_option in 1060 --) 1061 ac_dashdash=yes ;; 1062 1063 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1064 ac_prev=bindir ;; 1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1066 bindir=$ac_optarg ;; 1067 1068 -build | --build | --buil | --bui | --bu) 1069 ac_prev=build_alias ;; 1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1071 build_alias=$ac_optarg ;; 1072 1073 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1075 ac_prev=cache_file ;; 1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1078 cache_file=$ac_optarg ;; 1079 1080 --config-cache | -C) 1081 cache_file=config.cache ;; 1082 1083 -datadir | --datadir | --datadi | --datad) 1084 ac_prev=datadir ;; 1085 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1086 datadir=$ac_optarg ;; 1087 1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1089 | --dataroo | --dataro | --datar) 1090 ac_prev=datarootdir ;; 1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1093 datarootdir=$ac_optarg ;; 1094 1095 -disable-* | --disable-*) 1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 as_fn_error "invalid feature name: $ac_useropt" 1100 ac_useropt_orig=$ac_useropt 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 case $ac_user_opts in 1103 *" 1104"enable_$ac_useropt" 1105"*) ;; 1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1107 ac_unrecognized_sep=', ';; 1108 esac 1109 eval enable_$ac_useropt=no ;; 1110 1111 -docdir | --docdir | --docdi | --doc | --do) 1112 ac_prev=docdir ;; 1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1114 docdir=$ac_optarg ;; 1115 1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1117 ac_prev=dvidir ;; 1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1119 dvidir=$ac_optarg ;; 1120 1121 -enable-* | --enable-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error "invalid feature name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"enable_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval enable_$ac_useropt=\$ac_optarg ;; 1136 1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1139 | --exec | --exe | --ex) 1140 ac_prev=exec_prefix ;; 1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1143 | --exec=* | --exe=* | --ex=*) 1144 exec_prefix=$ac_optarg ;; 1145 1146 -gas | --gas | --ga | --g) 1147 # Obsolete; use --with-gas. 1148 with_gas=yes ;; 1149 1150 -help | --help | --hel | --he | -h) 1151 ac_init_help=long ;; 1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1153 ac_init_help=recursive ;; 1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1155 ac_init_help=short ;; 1156 1157 -host | --host | --hos | --ho) 1158 ac_prev=host_alias ;; 1159 -host=* | --host=* | --hos=* | --ho=*) 1160 host_alias=$ac_optarg ;; 1161 1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1163 ac_prev=htmldir ;; 1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1165 | --ht=*) 1166 htmldir=$ac_optarg ;; 1167 1168 -includedir | --includedir | --includedi | --included | --include \ 1169 | --includ | --inclu | --incl | --inc) 1170 ac_prev=includedir ;; 1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1172 | --includ=* | --inclu=* | --incl=* | --inc=*) 1173 includedir=$ac_optarg ;; 1174 1175 -infodir | --infodir | --infodi | --infod | --info | --inf) 1176 ac_prev=infodir ;; 1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1178 infodir=$ac_optarg ;; 1179 1180 -libdir | --libdir | --libdi | --libd) 1181 ac_prev=libdir ;; 1182 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1183 libdir=$ac_optarg ;; 1184 1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1186 | --libexe | --libex | --libe) 1187 ac_prev=libexecdir ;; 1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1189 | --libexe=* | --libex=* | --libe=*) 1190 libexecdir=$ac_optarg ;; 1191 1192 -localedir | --localedir | --localedi | --localed | --locale) 1193 ac_prev=localedir ;; 1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1195 localedir=$ac_optarg ;; 1196 1197 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1198 | --localstate | --localstat | --localsta | --localst | --locals) 1199 ac_prev=localstatedir ;; 1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1202 localstatedir=$ac_optarg ;; 1203 1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1205 ac_prev=mandir ;; 1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1207 mandir=$ac_optarg ;; 1208 1209 -nfp | --nfp | --nf) 1210 # Obsolete; use --without-fp. 1211 with_fp=no ;; 1212 1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1214 | --no-cr | --no-c | -n) 1215 no_create=yes ;; 1216 1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1219 no_recursion=yes ;; 1220 1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1223 | --oldin | --oldi | --old | --ol | --o) 1224 ac_prev=oldincludedir ;; 1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1228 oldincludedir=$ac_optarg ;; 1229 1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1231 ac_prev=prefix ;; 1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1233 prefix=$ac_optarg ;; 1234 1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1236 | --program-pre | --program-pr | --program-p) 1237 ac_prev=program_prefix ;; 1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1240 program_prefix=$ac_optarg ;; 1241 1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1243 | --program-suf | --program-su | --program-s) 1244 ac_prev=program_suffix ;; 1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1247 program_suffix=$ac_optarg ;; 1248 1249 -program-transform-name | --program-transform-name \ 1250 | --program-transform-nam | --program-transform-na \ 1251 | --program-transform-n | --program-transform- \ 1252 | --program-transform | --program-transfor \ 1253 | --program-transfo | --program-transf \ 1254 | --program-trans | --program-tran \ 1255 | --progr-tra | --program-tr | --program-t) 1256 ac_prev=program_transform_name ;; 1257 -program-transform-name=* | --program-transform-name=* \ 1258 | --program-transform-nam=* | --program-transform-na=* \ 1259 | --program-transform-n=* | --program-transform-=* \ 1260 | --program-transform=* | --program-transfor=* \ 1261 | --program-transfo=* | --program-transf=* \ 1262 | --program-trans=* | --program-tran=* \ 1263 | --progr-tra=* | --program-tr=* | --program-t=*) 1264 program_transform_name=$ac_optarg ;; 1265 1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1267 ac_prev=pdfdir ;; 1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1269 pdfdir=$ac_optarg ;; 1270 1271 -psdir | --psdir | --psdi | --psd | --ps) 1272 ac_prev=psdir ;; 1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1274 psdir=$ac_optarg ;; 1275 1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1277 | -silent | --silent | --silen | --sile | --sil) 1278 silent=yes ;; 1279 1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1281 ac_prev=sbindir ;; 1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1283 | --sbi=* | --sb=*) 1284 sbindir=$ac_optarg ;; 1285 1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1288 | --sharedst | --shareds | --shared | --share | --shar \ 1289 | --sha | --sh) 1290 ac_prev=sharedstatedir ;; 1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1294 | --sha=* | --sh=*) 1295 sharedstatedir=$ac_optarg ;; 1296 1297 -site | --site | --sit) 1298 ac_prev=site ;; 1299 -site=* | --site=* | --sit=*) 1300 site=$ac_optarg ;; 1301 1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1303 ac_prev=srcdir ;; 1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1305 srcdir=$ac_optarg ;; 1306 1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1308 | --syscon | --sysco | --sysc | --sys | --sy) 1309 ac_prev=sysconfdir ;; 1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1312 sysconfdir=$ac_optarg ;; 1313 1314 -target | --target | --targe | --targ | --tar | --ta | --t) 1315 ac_prev=target_alias ;; 1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1317 target_alias=$ac_optarg ;; 1318 1319 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1320 verbose=yes ;; 1321 1322 -version | --version | --versio | --versi | --vers | -V) 1323 ac_init_version=: ;; 1324 1325 -with-* | --with-*) 1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1327 # Reject names that are not valid shell variable names. 1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1329 as_fn_error "invalid package name: $ac_useropt" 1330 ac_useropt_orig=$ac_useropt 1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1332 case $ac_user_opts in 1333 *" 1334"with_$ac_useropt" 1335"*) ;; 1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1337 ac_unrecognized_sep=', ';; 1338 esac 1339 eval with_$ac_useropt=\$ac_optarg ;; 1340 1341 -without-* | --without-*) 1342 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1343 # Reject names that are not valid shell variable names. 1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1345 as_fn_error "invalid package name: $ac_useropt" 1346 ac_useropt_orig=$ac_useropt 1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1348 case $ac_user_opts in 1349 *" 1350"with_$ac_useropt" 1351"*) ;; 1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1353 ac_unrecognized_sep=', ';; 1354 esac 1355 eval with_$ac_useropt=no ;; 1356 1357 --x) 1358 # Obsolete; use --with-x. 1359 with_x=yes ;; 1360 1361 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1362 | --x-incl | --x-inc | --x-in | --x-i) 1363 ac_prev=x_includes ;; 1364 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1365 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1366 x_includes=$ac_optarg ;; 1367 1368 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1369 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1370 ac_prev=x_libraries ;; 1371 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1372 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1373 x_libraries=$ac_optarg ;; 1374 1375 -*) as_fn_error "unrecognized option: \`$ac_option' 1376Try \`$0 --help' for more information." 1377 ;; 1378 1379 *=*) 1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1381 # Reject names that are not valid shell variable names. 1382 case $ac_envvar in #( 1383 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1384 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1385 esac 1386 eval $ac_envvar=\$ac_optarg 1387 export $ac_envvar ;; 1388 1389 *) 1390 # FIXME: should be removed in autoconf 3.0. 1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1394 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1395 ;; 1396 1397 esac 1398done 1399 1400if test -n "$ac_prev"; then 1401 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1402 as_fn_error "missing argument to $ac_option" 1403fi 1404 1405if test -n "$ac_unrecognized_opts"; then 1406 case $enable_option_checking in 1407 no) ;; 1408 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1410 esac 1411fi 1412 1413# Check all directory arguments for consistency. 1414for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1415 datadir sysconfdir sharedstatedir localstatedir includedir \ 1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1417 libdir localedir mandir 1418do 1419 eval ac_val=\$$ac_var 1420 # Remove trailing slashes. 1421 case $ac_val in 1422 */ ) 1423 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1424 eval $ac_var=\$ac_val;; 1425 esac 1426 # Be sure to have absolute directory names. 1427 case $ac_val in 1428 [\\/$]* | ?:[\\/]* ) continue;; 1429 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1430 esac 1431 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1432done 1433 1434# There might be people who depend on the old broken behavior: `$host' 1435# used to hold the argument of --host etc. 1436# FIXME: To remove some day. 1437build=$build_alias 1438host=$host_alias 1439target=$target_alias 1440 1441# FIXME: To remove some day. 1442if test "x$host_alias" != x; then 1443 if test "x$build_alias" = x; then 1444 cross_compiling=maybe 1445 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1446 If a cross compiler is detected then cross compile mode will be used." >&2 1447 elif test "x$build_alias" != "x$host_alias"; then 1448 cross_compiling=yes 1449 fi 1450fi 1451 1452ac_tool_prefix= 1453test -n "$host_alias" && ac_tool_prefix=$host_alias- 1454 1455test "$silent" = yes && exec 6>/dev/null 1456 1457 1458ac_pwd=`pwd` && test -n "$ac_pwd" && 1459ac_ls_di=`ls -di .` && 1460ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1461 as_fn_error "working directory cannot be determined" 1462test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1463 as_fn_error "pwd does not report name of working directory" 1464 1465 1466# Find the source files, if location was not specified. 1467if test -z "$srcdir"; then 1468 ac_srcdir_defaulted=yes 1469 # Try the directory containing this script, then the parent directory. 1470 ac_confdir=`$as_dirname -- "$as_myself" || 1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1472 X"$as_myself" : 'X\(//\)[^/]' \| \ 1473 X"$as_myself" : 'X\(//\)$' \| \ 1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1475$as_echo X"$as_myself" | 1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1477 s//\1/ 1478 q 1479 } 1480 /^X\(\/\/\)[^/].*/{ 1481 s//\1/ 1482 q 1483 } 1484 /^X\(\/\/\)$/{ 1485 s//\1/ 1486 q 1487 } 1488 /^X\(\/\).*/{ 1489 s//\1/ 1490 q 1491 } 1492 s/.*/./; q'` 1493 srcdir=$ac_confdir 1494 if test ! -r "$srcdir/$ac_unique_file"; then 1495 srcdir=.. 1496 fi 1497else 1498 ac_srcdir_defaulted=no 1499fi 1500if test ! -r "$srcdir/$ac_unique_file"; then 1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1502 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1503fi 1504ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1505ac_abs_confdir=`( 1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1507 pwd)` 1508# When building in place, set srcdir=. 1509if test "$ac_abs_confdir" = "$ac_pwd"; then 1510 srcdir=. 1511fi 1512# Remove unnecessary trailing slashes from srcdir. 1513# Double slashes in file names in object file debugging info 1514# mess up M-x gdb in Emacs. 1515case $srcdir in 1516*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1517esac 1518for ac_var in $ac_precious_vars; do 1519 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1520 eval ac_env_${ac_var}_value=\$${ac_var} 1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1522 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1523done 1524 1525# 1526# Report the --help message. 1527# 1528if test "$ac_init_help" = "long"; then 1529 # Omit some internal or obsolete options to make the list less imposing. 1530 # This message is too long to be a string in the A/UX 3.1 sh. 1531 cat <<_ACEOF 1532\`configure' configures libxcb 1.6 to adapt to many kinds of systems. 1533 1534Usage: $0 [OPTION]... [VAR=VALUE]... 1535 1536To assign environment variables (e.g., CC, CFLAGS...), specify them as 1537VAR=VALUE. See below for descriptions of some of the useful variables. 1538 1539Defaults for the options are specified in brackets. 1540 1541Configuration: 1542 -h, --help display this help and exit 1543 --help=short display options specific to this package 1544 --help=recursive display the short help of all the included packages 1545 -V, --version display version information and exit 1546 -q, --quiet, --silent do not print \`checking...' messages 1547 --cache-file=FILE cache test results in FILE [disabled] 1548 -C, --config-cache alias for \`--cache-file=config.cache' 1549 -n, --no-create do not create output files 1550 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1551 1552Installation directories: 1553 --prefix=PREFIX install architecture-independent files in PREFIX 1554 [$ac_default_prefix] 1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1556 [PREFIX] 1557 1558By default, \`make install' will install all the files in 1559\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1560an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1561for instance \`--prefix=\$HOME'. 1562 1563For better control, use the options below. 1564 1565Fine tuning of the installation directories: 1566 --bindir=DIR user executables [EPREFIX/bin] 1567 --sbindir=DIR system admin executables [EPREFIX/sbin] 1568 --libexecdir=DIR program executables [EPREFIX/libexec] 1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1572 --libdir=DIR object code libraries [EPREFIX/lib] 1573 --includedir=DIR C header files [PREFIX/include] 1574 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1577 --infodir=DIR info documentation [DATAROOTDIR/info] 1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1579 --mandir=DIR man documentation [DATAROOTDIR/man] 1580 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb] 1581 --htmldir=DIR html documentation [DOCDIR] 1582 --dvidir=DIR dvi documentation [DOCDIR] 1583 --pdfdir=DIR pdf documentation [DOCDIR] 1584 --psdir=DIR ps documentation [DOCDIR] 1585_ACEOF 1586 1587 cat <<\_ACEOF 1588 1589Program names: 1590 --program-prefix=PREFIX prepend PREFIX to installed program names 1591 --program-suffix=SUFFIX append SUFFIX to installed program names 1592 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1593 1594System types: 1595 --build=BUILD configure for building on BUILD [guessed] 1596 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1597_ACEOF 1598fi 1599 1600if test -n "$ac_init_help"; then 1601 case $ac_init_help in 1602 short | recursive ) echo "Configuration of libxcb 1.6:";; 1603 esac 1604 cat <<\_ACEOF 1605 1606Optional Features: 1607 --disable-option-checking ignore unrecognized --enable/--with options 1608 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1609 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1610 --enable-shared[=PKGS] build shared libraries [default=yes] 1611 --enable-static[=PKGS] build static libraries [default=yes] 1612 --enable-fast-install[=PKGS] 1613 optimize for fast installation [default=yes] 1614 --disable-dependency-tracking speeds up one-time build 1615 --enable-dependency-tracking do not reject slow dependency extractors 1616 --disable-libtool-lock avoid locking (might break parallel builds) 1617 --disable-build-docs Disable the build of the documentation 1618 --enable-composite Build XCB Composite Extension (default: "yes") 1619 --enable-damage Build XCB Damage Extension (default: "yes") 1620 --enable-dpms Build XCB DPMS Extension (default: "yes") 1621 --enable-dri2 Build XCB DRI2 Extension (default: "yes") 1622 --enable-glx Build XCB GLX Extension (default: "yes") 1623 --enable-randr Build XCB RandR Extension (default: "yes") 1624 --enable-record Build XCB Record Extension (default: "yes") 1625 --enable-render Build XCB Render Extension (default: "yes") 1626 --enable-resource Build XCB Resource Extension (default: "yes") 1627 --enable-screensaver Build XCB Screensaver Extension (default: "yes") 1628 --enable-shape Build XCB Shape Extension (default: "yes") 1629 --enable-shm Build XCB Shm Extension (default: "yes") 1630 --enable-sync Build XCB Sync Extension (default: "yes") 1631 --enable-xevie Build XCB Xevie Extension (default: "yes") 1632 --enable-xfixes Build XCB XFixes Extension (default: "yes") 1633 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: "yes") 1634 --enable-xinerama Build XCB Xinerama Extension (default: "yes") 1635 --enable-xinput Build XCB XInput Extension (default: "no") 1636 --enable-xprint Build XCB Xprint Extension (default: "yes") 1637 --enable-selinux Build XCB SELinux Extension (default: "no") 1638 --enable-xtest Build XCB XTest Extension (default: "yes") 1639 --enable-xv Build XCB Xv Extension (default: "yes") 1640 --enable-xvmc Build XCB XvMC Extension (default: "yes") 1641 1642Optional Packages: 1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1645 --with-pic try to use only PIC/non-PIC objects [default=use 1646 both] 1647 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1648 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384) 1649 --with-doxygen=FILE doxygen program to use (eg /usr/bin/doxygen) 1650 --with-launchd Build with support for Apple's launchd (default: 1651 auto) 1652 1653Some influential environment variables: 1654 PKG_CONFIG path to pkg-config utility 1655 CHECK_CFLAGS 1656 C compiler flags for CHECK, overriding pkg-config 1657 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1658 CC C compiler command 1659 CFLAGS C compiler flags 1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1661 nonstandard directory <lib dir> 1662 LIBS libraries to pass to the linker, e.g. -l<library> 1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1664 you have headers in a nonstandard directory <include dir> 1665 CPP C preprocessor 1666 XCBPROTO_CFLAGS 1667 C compiler flags for XCBPROTO, overriding pkg-config 1668 XCBPROTO_LIBS 1669 linker flags for XCBPROTO, overriding pkg-config 1670 NEEDED_CFLAGS 1671 C compiler flags for NEEDED, overriding pkg-config 1672 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config 1673 XDMCP_CFLAGS 1674 C compiler flags for XDMCP, overriding pkg-config 1675 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1676 1677Use these variables to override the choices made by `configure' or to help 1678it to find libraries and programs with nonstandard names/locations. 1679 1680Report bugs to <xcb@lists.freedesktop.org>. 1681_ACEOF 1682ac_status=$? 1683fi 1684 1685if test "$ac_init_help" = "recursive"; then 1686 # If there are subdirs, report their specific --help. 1687 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1688 test -d "$ac_dir" || 1689 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1690 continue 1691 ac_builddir=. 1692 1693case "$ac_dir" in 1694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1695*) 1696 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1697 # A ".." for each directory in $ac_dir_suffix. 1698 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1699 case $ac_top_builddir_sub in 1700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1702 esac ;; 1703esac 1704ac_abs_top_builddir=$ac_pwd 1705ac_abs_builddir=$ac_pwd$ac_dir_suffix 1706# for backward compatibility: 1707ac_top_builddir=$ac_top_build_prefix 1708 1709case $srcdir in 1710 .) # We are building in place. 1711 ac_srcdir=. 1712 ac_top_srcdir=$ac_top_builddir_sub 1713 ac_abs_top_srcdir=$ac_pwd ;; 1714 [\\/]* | ?:[\\/]* ) # Absolute name. 1715 ac_srcdir=$srcdir$ac_dir_suffix; 1716 ac_top_srcdir=$srcdir 1717 ac_abs_top_srcdir=$srcdir ;; 1718 *) # Relative name. 1719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1720 ac_top_srcdir=$ac_top_build_prefix$srcdir 1721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1722esac 1723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1724 1725 cd "$ac_dir" || { ac_status=$?; continue; } 1726 # Check for guested configure. 1727 if test -f "$ac_srcdir/configure.gnu"; then 1728 echo && 1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1730 elif test -f "$ac_srcdir/configure"; then 1731 echo && 1732 $SHELL "$ac_srcdir/configure" --help=recursive 1733 else 1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1735 fi || ac_status=$? 1736 cd "$ac_pwd" || { ac_status=$?; break; } 1737 done 1738fi 1739 1740test -n "$ac_init_help" && exit $ac_status 1741if $ac_init_version; then 1742 cat <<\_ACEOF 1743libxcb configure 1.6 1744generated by GNU Autoconf 2.65 1745 1746Copyright (C) 2009 Free Software Foundation, Inc. 1747This configure script is free software; the Free Software Foundation 1748gives unlimited permission to copy, distribute and modify it. 1749_ACEOF 1750 exit 1751fi 1752 1753## ------------------------ ## 1754## Autoconf initialization. ## 1755## ------------------------ ## 1756 1757# ac_fn_c_try_compile LINENO 1758# -------------------------- 1759# Try to compile conftest.$ac_ext, and return whether this succeeded. 1760ac_fn_c_try_compile () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 rm -f conftest.$ac_objext 1764 if { { ac_try="$ac_compile" 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_compile") 2>conftest.err 1772 ac_status=$? 1773 if test -s conftest.err; then 1774 grep -v '^ *+' conftest.err >conftest.er1 1775 cat conftest.er1 >&5 1776 mv -f conftest.er1 conftest.err 1777 fi 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { 1780 test -z "$ac_c_werror_flag" || 1781 test ! -s conftest.err 1782 } && test -s conftest.$ac_objext; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: failed program was:" >&5 1786sed 's/^/| /' conftest.$ac_ext >&5 1787 1788 ac_retval=1 1789fi 1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1791 as_fn_set_status $ac_retval 1792 1793} # ac_fn_c_try_compile 1794 1795# ac_fn_c_try_link LINENO 1796# ----------------------- 1797# Try to link conftest.$ac_ext, and return whether this succeeded. 1798ac_fn_c_try_link () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 rm -f conftest.$ac_objext conftest$ac_exeext 1802 if { { ac_try="$ac_link" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_link") 2>conftest.err 1810 ac_status=$? 1811 if test -s conftest.err; then 1812 grep -v '^ *+' conftest.err >conftest.er1 1813 cat conftest.er1 >&5 1814 mv -f conftest.er1 conftest.err 1815 fi 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } && { 1818 test -z "$ac_c_werror_flag" || 1819 test ! -s conftest.err 1820 } && test -s conftest$ac_exeext && { 1821 test "$cross_compiling" = yes || 1822 $as_test_x conftest$ac_exeext 1823 }; then : 1824 ac_retval=0 1825else 1826 $as_echo "$as_me: failed program was:" >&5 1827sed 's/^/| /' conftest.$ac_ext >&5 1828 1829 ac_retval=1 1830fi 1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1833 # interfere with the next link command; also delete a directory that is 1834 # left behind by Apple's compiler. We do this before executing the actions. 1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1836 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1837 as_fn_set_status $ac_retval 1838 1839} # ac_fn_c_try_link 1840 1841# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1842# ------------------------------------------------------- 1843# Tests whether HEADER exists and can be compiled using the include files in 1844# INCLUDES, setting the cache variable VAR accordingly. 1845ac_fn_c_check_header_compile () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1849$as_echo_n "checking for $2... " >&6; } 1850if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855$4 1856#include <$2> 1857_ACEOF 1858if ac_fn_c_try_compile "$LINENO"; then : 1859 eval "$3=yes" 1860else 1861 eval "$3=no" 1862fi 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1869 1870} # ac_fn_c_check_header_compile 1871 1872# ac_fn_c_try_cpp LINENO 1873# ---------------------- 1874# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1875ac_fn_c_try_cpp () 1876{ 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 if { { ac_try="$ac_cpp conftest.$ac_ext" 1879case "(($ac_try" in 1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1881 *) ac_try_echo=$ac_try;; 1882esac 1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1884$as_echo "$ac_try_echo"; } >&5 1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1886 ac_status=$? 1887 if test -s conftest.err; then 1888 grep -v '^ *+' conftest.err >conftest.er1 1889 cat conftest.er1 >&5 1890 mv -f conftest.er1 conftest.err 1891 fi 1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1893 test $ac_status = 0; } >/dev/null && { 1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1895 test ! -s conftest.err 1896 }; then : 1897 ac_retval=0 1898else 1899 $as_echo "$as_me: failed program was:" >&5 1900sed 's/^/| /' conftest.$ac_ext >&5 1901 1902 ac_retval=1 1903fi 1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1905 as_fn_set_status $ac_retval 1906 1907} # ac_fn_c_try_cpp 1908 1909# ac_fn_c_try_run LINENO 1910# ---------------------- 1911# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1912# that executables *can* be run. 1913ac_fn_c_try_run () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 if { { ac_try="$ac_link" 1917case "(($ac_try" in 1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1919 *) ac_try_echo=$ac_try;; 1920esac 1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1922$as_echo "$ac_try_echo"; } >&5 1923 (eval "$ac_link") 2>&5 1924 ac_status=$? 1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1926 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1927 { { case "(($ac_try" in 1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1929 *) ac_try_echo=$ac_try;; 1930esac 1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1932$as_echo "$ac_try_echo"; } >&5 1933 (eval "$ac_try") 2>&5 1934 ac_status=$? 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; }; }; then : 1937 ac_retval=0 1938else 1939 $as_echo "$as_me: program exited with status $ac_status" >&5 1940 $as_echo "$as_me: failed program was:" >&5 1941sed 's/^/| /' conftest.$ac_ext >&5 1942 1943 ac_retval=$ac_status 1944fi 1945 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1947 as_fn_set_status $ac_retval 1948 1949} # ac_fn_c_try_run 1950 1951# ac_fn_c_check_func LINENO FUNC VAR 1952# ---------------------------------- 1953# Tests whether FUNC exists, setting the cache variable VAR accordingly 1954ac_fn_c_check_func () 1955{ 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1965 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1966#define $2 innocuous_$2 1967 1968/* System header to define __stub macros and hopefully few prototypes, 1969 which can conflict with char $2 (); below. 1970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1971 <limits.h> exists even on freestanding compilers. */ 1972 1973#ifdef __STDC__ 1974# include <limits.h> 1975#else 1976# include <assert.h> 1977#endif 1978 1979#undef $2 1980 1981/* Override any GCC internal prototype to avoid an error. 1982 Use char because int might match the return type of a GCC 1983 builtin and then its argument prototype would still apply. */ 1984#ifdef __cplusplus 1985extern "C" 1986#endif 1987char $2 (); 1988/* The GNU C library defines this for functions which it implements 1989 to always fail with ENOSYS. Some functions are actually named 1990 something starting with __ and the normal name is an alias. */ 1991#if defined __stub_$2 || defined __stub___$2 1992choke me 1993#endif 1994 1995int 1996main () 1997{ 1998return $2 (); 1999 ; 2000 return 0; 2001} 2002_ACEOF 2003if ac_fn_c_try_link "$LINENO"; then : 2004 eval "$3=yes" 2005else 2006 eval "$3=no" 2007fi 2008rm -f core conftest.err conftest.$ac_objext \ 2009 conftest$ac_exeext conftest.$ac_ext 2010fi 2011eval ac_res=\$$3 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2013$as_echo "$ac_res" >&6; } 2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2015 2016} # ac_fn_c_check_func 2017 2018# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2019# ---------------------------------------------------- 2020# Tries to find if the field MEMBER exists in type AGGR, after including 2021# INCLUDES, setting cache variable VAR accordingly. 2022ac_fn_c_check_member () 2023{ 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2026$as_echo_n "checking for $2.$3... " >&6; } 2027if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2028 $as_echo_n "(cached) " >&6 2029else 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$5 2033int 2034main () 2035{ 2036static $2 ac_aggr; 2037if (ac_aggr.$3) 2038return 0; 2039 ; 2040 return 0; 2041} 2042_ACEOF 2043if ac_fn_c_try_compile "$LINENO"; then : 2044 eval "$4=yes" 2045else 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$5 2049int 2050main () 2051{ 2052static $2 ac_aggr; 2053if (sizeof ac_aggr.$3) 2054return 0; 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059if ac_fn_c_try_compile "$LINENO"; then : 2060 eval "$4=yes" 2061else 2062 eval "$4=no" 2063fi 2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2065fi 2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2067fi 2068eval ac_res=\$$4 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2070$as_echo "$ac_res" >&6; } 2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2072 2073} # ac_fn_c_check_member 2074 2075# ac_fn_c_check_decl LINENO SYMBOL VAR 2076# ------------------------------------ 2077# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2078ac_fn_c_check_decl () 2079{ 2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2082$as_echo_n "checking whether $2 is declared... " >&6; } 2083if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2084 $as_echo_n "(cached) " >&6 2085else 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089int 2090main () 2091{ 2092#ifndef $2 2093 (void) $2; 2094#endif 2095 2096 ; 2097 return 0; 2098} 2099_ACEOF 2100if ac_fn_c_try_compile "$LINENO"; then : 2101 eval "$3=yes" 2102else 2103 eval "$3=no" 2104fi 2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2106fi 2107eval ac_res=\$$3 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2109$as_echo "$ac_res" >&6; } 2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2111 2112} # ac_fn_c_check_decl 2113cat >config.log <<_ACEOF 2114This file contains any messages produced by compilers while 2115running configure, to aid debugging if configure makes a mistake. 2116 2117It was created by libxcb $as_me 1.6, which was 2118generated by GNU Autoconf 2.65. Invocation command line was 2119 2120 $ $0 $@ 2121 2122_ACEOF 2123exec 5>>config.log 2124{ 2125cat <<_ASUNAME 2126## --------- ## 2127## Platform. ## 2128## --------- ## 2129 2130hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2131uname -m = `(uname -m) 2>/dev/null || echo unknown` 2132uname -r = `(uname -r) 2>/dev/null || echo unknown` 2133uname -s = `(uname -s) 2>/dev/null || echo unknown` 2134uname -v = `(uname -v) 2>/dev/null || echo unknown` 2135 2136/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2137/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2138 2139/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2140/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2141/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2142/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2143/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2144/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2145/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2146 2147_ASUNAME 2148 2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2150for as_dir in $PATH 2151do 2152 IFS=$as_save_IFS 2153 test -z "$as_dir" && as_dir=. 2154 $as_echo "PATH: $as_dir" 2155 done 2156IFS=$as_save_IFS 2157 2158} >&5 2159 2160cat >&5 <<_ACEOF 2161 2162 2163## ----------- ## 2164## Core tests. ## 2165## ----------- ## 2166 2167_ACEOF 2168 2169 2170# Keep a trace of the command line. 2171# Strip out --no-create and --no-recursion so they do not pile up. 2172# Strip out --silent because we don't want to record it for future runs. 2173# Also quote any args containing shell meta-characters. 2174# Make two passes to allow for proper duplicate-argument suppression. 2175ac_configure_args= 2176ac_configure_args0= 2177ac_configure_args1= 2178ac_must_keep_next=false 2179for ac_pass in 1 2 2180do 2181 for ac_arg 2182 do 2183 case $ac_arg in 2184 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2186 | -silent | --silent | --silen | --sile | --sil) 2187 continue ;; 2188 *\'*) 2189 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2190 esac 2191 case $ac_pass in 2192 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2193 2) 2194 as_fn_append ac_configure_args1 " '$ac_arg'" 2195 if test $ac_must_keep_next = true; then 2196 ac_must_keep_next=false # Got value, back to normal. 2197 else 2198 case $ac_arg in 2199 *=* | --config-cache | -C | -disable-* | --disable-* \ 2200 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2201 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2202 | -with-* | --with-* | -without-* | --without-* | --x) 2203 case "$ac_configure_args0 " in 2204 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2205 esac 2206 ;; 2207 -* ) ac_must_keep_next=true ;; 2208 esac 2209 fi 2210 as_fn_append ac_configure_args " '$ac_arg'" 2211 ;; 2212 esac 2213 done 2214done 2215{ ac_configure_args0=; unset ac_configure_args0;} 2216{ ac_configure_args1=; unset ac_configure_args1;} 2217 2218# When interrupted or exit'd, cleanup temporary files, and complete 2219# config.log. We remove comments because anyway the quotes in there 2220# would cause problems or look ugly. 2221# WARNING: Use '\'' to represent an apostrophe within the trap. 2222# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2223trap 'exit_status=$? 2224 # Save into config.log some information that might help in debugging. 2225 { 2226 echo 2227 2228 cat <<\_ASBOX 2229## ---------------- ## 2230## Cache variables. ## 2231## ---------------- ## 2232_ASBOX 2233 echo 2234 # The following way of writing the cache mishandles newlines in values, 2235( 2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2237 eval ac_val=\$$ac_var 2238 case $ac_val in #( 2239 *${as_nl}*) 2240 case $ac_var in #( 2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2243 esac 2244 case $ac_var in #( 2245 _ | IFS | as_nl) ;; #( 2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2247 *) { eval $ac_var=; unset $ac_var;} ;; 2248 esac ;; 2249 esac 2250 done 2251 (set) 2>&1 | 2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2253 *${as_nl}ac_space=\ *) 2254 sed -n \ 2255 "s/'\''/'\''\\\\'\'''\''/g; 2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2257 ;; #( 2258 *) 2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2260 ;; 2261 esac | 2262 sort 2263) 2264 echo 2265 2266 cat <<\_ASBOX 2267## ----------------- ## 2268## Output variables. ## 2269## ----------------- ## 2270_ASBOX 2271 echo 2272 for ac_var in $ac_subst_vars 2273 do 2274 eval ac_val=\$$ac_var 2275 case $ac_val in 2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2277 esac 2278 $as_echo "$ac_var='\''$ac_val'\''" 2279 done | sort 2280 echo 2281 2282 if test -n "$ac_subst_files"; then 2283 cat <<\_ASBOX 2284## ------------------- ## 2285## File substitutions. ## 2286## ------------------- ## 2287_ASBOX 2288 echo 2289 for ac_var in $ac_subst_files 2290 do 2291 eval ac_val=\$$ac_var 2292 case $ac_val in 2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2294 esac 2295 $as_echo "$ac_var='\''$ac_val'\''" 2296 done | sort 2297 echo 2298 fi 2299 2300 if test -s confdefs.h; then 2301 cat <<\_ASBOX 2302## ----------- ## 2303## confdefs.h. ## 2304## ----------- ## 2305_ASBOX 2306 echo 2307 cat confdefs.h 2308 echo 2309 fi 2310 test "$ac_signal" != 0 && 2311 $as_echo "$as_me: caught signal $ac_signal" 2312 $as_echo "$as_me: exit $exit_status" 2313 } >&5 2314 rm -f core *.core core.conftest.* && 2315 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2316 exit $exit_status 2317' 0 2318for ac_signal in 1 2 13 15; do 2319 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2320done 2321ac_signal=0 2322 2323# confdefs.h avoids OS command line length limits that DEFS can exceed. 2324rm -f -r conftest* confdefs.h 2325 2326$as_echo "/* confdefs.h */" > confdefs.h 2327 2328# Predefined preprocessor variables. 2329 2330cat >>confdefs.h <<_ACEOF 2331#define PACKAGE_NAME "$PACKAGE_NAME" 2332_ACEOF 2333 2334cat >>confdefs.h <<_ACEOF 2335#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2336_ACEOF 2337 2338cat >>confdefs.h <<_ACEOF 2339#define PACKAGE_VERSION "$PACKAGE_VERSION" 2340_ACEOF 2341 2342cat >>confdefs.h <<_ACEOF 2343#define PACKAGE_STRING "$PACKAGE_STRING" 2344_ACEOF 2345 2346cat >>confdefs.h <<_ACEOF 2347#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2348_ACEOF 2349 2350cat >>confdefs.h <<_ACEOF 2351#define PACKAGE_URL "$PACKAGE_URL" 2352_ACEOF 2353 2354 2355# Let the site file select an alternate cache file if it wants to. 2356# Prefer an explicitly selected file to automatically selected ones. 2357ac_site_file1=NONE 2358ac_site_file2=NONE 2359if test -n "$CONFIG_SITE"; then 2360 ac_site_file1=$CONFIG_SITE 2361elif test "x$prefix" != xNONE; then 2362 ac_site_file1=$prefix/share/config.site 2363 ac_site_file2=$prefix/etc/config.site 2364else 2365 ac_site_file1=$ac_default_prefix/share/config.site 2366 ac_site_file2=$ac_default_prefix/etc/config.site 2367fi 2368for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2369do 2370 test "x$ac_site_file" = xNONE && continue 2371 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2373$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2374 sed 's/^/| /' "$ac_site_file" >&5 2375 . "$ac_site_file" 2376 fi 2377done 2378 2379if test -r "$cache_file"; then 2380 # Some versions of bash will fail to source /dev/null (special files 2381 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2384$as_echo "$as_me: loading cache $cache_file" >&6;} 2385 case $cache_file in 2386 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2387 *) . "./$cache_file";; 2388 esac 2389 fi 2390else 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2392$as_echo "$as_me: creating cache $cache_file" >&6;} 2393 >$cache_file 2394fi 2395 2396# Check that the precious variables saved in the cache have kept the same 2397# value. 2398ac_cache_corrupted=false 2399for ac_var in $ac_precious_vars; do 2400 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2401 eval ac_new_set=\$ac_env_${ac_var}_set 2402 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2403 eval ac_new_val=\$ac_env_${ac_var}_value 2404 case $ac_old_set,$ac_new_set in 2405 set,) 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2407$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2408 ac_cache_corrupted=: ;; 2409 ,set) 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2411$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2412 ac_cache_corrupted=: ;; 2413 ,);; 2414 *) 2415 if test "x$ac_old_val" != "x$ac_new_val"; then 2416 # differences in whitespace do not lead to failure. 2417 ac_old_val_w=`echo x $ac_old_val` 2418 ac_new_val_w=`echo x $ac_new_val` 2419 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2421$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2422 ac_cache_corrupted=: 2423 else 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2425$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2426 eval $ac_var=\$ac_old_val 2427 fi 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2429$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2431$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2432 fi;; 2433 esac 2434 # Pass precious variables to config.status. 2435 if test "$ac_new_set" = set; then 2436 case $ac_new_val in 2437 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2438 *) ac_arg=$ac_var=$ac_new_val ;; 2439 esac 2440 case " $ac_configure_args " in 2441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2442 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2443 esac 2444 fi 2445done 2446if $ac_cache_corrupted; then 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2450$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2451 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2452fi 2453## -------------------- ## 2454## Main body of script. ## 2455## -------------------- ## 2456 2457ac_ext=c 2458ac_cpp='$CPP $CPPFLAGS' 2459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2461ac_compiler_gnu=$ac_cv_c_compiler_gnu 2462 2463 2464 2465am__api_version='1.11' 2466 2467ac_aux_dir= 2468for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2469 for ac_t in install-sh install.sh shtool; do 2470 if test -f "$ac_dir/$ac_t"; then 2471 ac_aux_dir=$ac_dir 2472 ac_install_sh="$ac_aux_dir/$ac_t -c" 2473 break 2 2474 fi 2475 done 2476done 2477if test -z "$ac_aux_dir"; then 2478 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2479fi 2480 2481# These three variables are undocumented and unsupported, 2482# and are intended to be withdrawn in a future Autoconf release. 2483# They can cause serious problems if a builder's source tree is in a directory 2484# whose full name contains unusual characters. 2485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2488 2489 2490# Find a good install program. We prefer a C program (faster), 2491# so one script is as good as another. But avoid the broken or 2492# incompatible versions: 2493# SysV /etc/install, /usr/sbin/install 2494# SunOS /usr/etc/install 2495# IRIX /sbin/install 2496# AIX /bin/install 2497# AmigaOS /C/install, which installs bootblocks on floppy discs 2498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2499# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2501# OS/2's system install, which has a completely different semantic 2502# ./install, which can be erroneously created by make from ./install.sh. 2503# Reject install programs that cannot install multiple files. 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2505$as_echo_n "checking for a BSD-compatible install... " >&6; } 2506if test -z "$INSTALL"; then 2507if test "${ac_cv_path_install+set}" = set; then : 2508 $as_echo_n "(cached) " >&6 2509else 2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2511for as_dir in $PATH 2512do 2513 IFS=$as_save_IFS 2514 test -z "$as_dir" && as_dir=. 2515 # Account for people who put trailing slashes in PATH elements. 2516case $as_dir/ in #(( 2517 ./ | .// | /[cC]/* | \ 2518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2519 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2520 /usr/ucb/* ) ;; 2521 *) 2522 # OSF1 and SCO ODT 3.0 have their own names for install. 2523 # Don't use installbsd from OSF since it installs stuff as root 2524 # by default. 2525 for ac_prog in ginstall scoinst install; do 2526 for ac_exec_ext in '' $ac_executable_extensions; do 2527 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2528 if test $ac_prog = install && 2529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2530 # AIX install. It has an incompatible calling convention. 2531 : 2532 elif test $ac_prog = install && 2533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2534 # program-specific install script used by HP pwplus--don't use. 2535 : 2536 else 2537 rm -rf conftest.one conftest.two conftest.dir 2538 echo one > conftest.one 2539 echo two > conftest.two 2540 mkdir conftest.dir 2541 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2542 test -s conftest.one && test -s conftest.two && 2543 test -s conftest.dir/conftest.one && 2544 test -s conftest.dir/conftest.two 2545 then 2546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2547 break 3 2548 fi 2549 fi 2550 fi 2551 done 2552 done 2553 ;; 2554esac 2555 2556 done 2557IFS=$as_save_IFS 2558 2559rm -rf conftest.one conftest.two conftest.dir 2560 2561fi 2562 if test "${ac_cv_path_install+set}" = set; then 2563 INSTALL=$ac_cv_path_install 2564 else 2565 # As a last resort, use the slow shell script. Don't cache a 2566 # value for INSTALL within a source directory, because that will 2567 # break other packages using the cache if that directory is 2568 # removed, or if the value is a relative name. 2569 INSTALL=$ac_install_sh 2570 fi 2571fi 2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2573$as_echo "$INSTALL" >&6; } 2574 2575# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2576# It thinks the first close brace ends the variable substitution. 2577test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2578 2579test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2580 2581test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2582 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2584$as_echo_n "checking whether build environment is sane... " >&6; } 2585# Just in case 2586sleep 1 2587echo timestamp > conftest.file 2588# Reject unsafe characters in $srcdir or the absolute working directory 2589# name. Accept space and tab only in the latter. 2590am_lf=' 2591' 2592case `pwd` in 2593 *[\\\"\#\$\&\'\`$am_lf]*) 2594 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2595esac 2596case $srcdir in 2597 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2598 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2599esac 2600 2601# Do `set' in a subshell so we don't clobber the current shell's 2602# arguments. Must try -L first in case configure is actually a 2603# symlink; some systems play weird games with the mod time of symlinks 2604# (eg FreeBSD returns the mod time of the symlink's containing 2605# directory). 2606if ( 2607 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2608 if test "$*" = "X"; then 2609 # -L didn't work. 2610 set X `ls -t "$srcdir/configure" conftest.file` 2611 fi 2612 rm -f conftest.file 2613 if test "$*" != "X $srcdir/configure conftest.file" \ 2614 && test "$*" != "X conftest.file $srcdir/configure"; then 2615 2616 # If neither matched, then we have a broken ls. This can happen 2617 # if, for instance, CONFIG_SHELL is bash and it inherits a 2618 # broken ls alias from the environment. This has actually 2619 # happened. Such a system could not be considered "sane". 2620 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2621alias in your environment" "$LINENO" 5 2622 fi 2623 2624 test "$2" = conftest.file 2625 ) 2626then 2627 # Ok. 2628 : 2629else 2630 as_fn_error "newly created file is older than distributed files! 2631Check your system clock" "$LINENO" 5 2632fi 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2634$as_echo "yes" >&6; } 2635test "$program_prefix" != NONE && 2636 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2637# Use a double $ so make ignores it. 2638test "$program_suffix" != NONE && 2639 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2640# Double any \ or $. 2641# By default was `s,x,x', remove it if useless. 2642ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2643program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2644 2645# expand $ac_aux_dir to an absolute path 2646am_aux_dir=`cd $ac_aux_dir && pwd` 2647 2648if test x"${MISSING+set}" != xset; then 2649 case $am_aux_dir in 2650 *\ * | *\ *) 2651 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2652 *) 2653 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2654 esac 2655fi 2656# Use eval to expand $SHELL 2657if eval "$MISSING --run true"; then 2658 am_missing_run="$MISSING --run " 2659else 2660 am_missing_run= 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2662$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2663fi 2664 2665if test x"${install_sh}" != xset; then 2666 case $am_aux_dir in 2667 *\ * | *\ *) 2668 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2669 *) 2670 install_sh="\${SHELL} $am_aux_dir/install-sh" 2671 esac 2672fi 2673 2674# Installed binaries are usually stripped using `strip' when the user 2675# run `make install-strip'. However `strip' might not be the right 2676# tool to use in cross-compilation environments, therefore Automake 2677# will honor the `STRIP' environment variable to overrule this program. 2678if test "$cross_compiling" != no; then 2679 if test -n "$ac_tool_prefix"; then 2680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2681set dummy ${ac_tool_prefix}strip; ac_word=$2 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2683$as_echo_n "checking for $ac_word... " >&6; } 2684if test "${ac_cv_prog_STRIP+set}" = set; then : 2685 $as_echo_n "(cached) " >&6 2686else 2687 if test -n "$STRIP"; then 2688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2689else 2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2697 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2699 break 2 2700 fi 2701done 2702 done 2703IFS=$as_save_IFS 2704 2705fi 2706fi 2707STRIP=$ac_cv_prog_STRIP 2708if test -n "$STRIP"; then 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2710$as_echo "$STRIP" >&6; } 2711else 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2713$as_echo "no" >&6; } 2714fi 2715 2716 2717fi 2718if test -z "$ac_cv_prog_STRIP"; then 2719 ac_ct_STRIP=$STRIP 2720 # Extract the first word of "strip", so it can be a program name with args. 2721set dummy strip; ac_word=$2 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2723$as_echo_n "checking for $ac_word... " >&6; } 2724if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2725 $as_echo_n "(cached) " >&6 2726else 2727 if test -n "$ac_ct_STRIP"; then 2728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2729else 2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2731for as_dir in $PATH 2732do 2733 IFS=$as_save_IFS 2734 test -z "$as_dir" && as_dir=. 2735 for ac_exec_ext in '' $ac_executable_extensions; do 2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2737 ac_cv_prog_ac_ct_STRIP="strip" 2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2739 break 2 2740 fi 2741done 2742 done 2743IFS=$as_save_IFS 2744 2745fi 2746fi 2747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2748if test -n "$ac_ct_STRIP"; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2750$as_echo "$ac_ct_STRIP" >&6; } 2751else 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2753$as_echo "no" >&6; } 2754fi 2755 2756 if test "x$ac_ct_STRIP" = x; then 2757 STRIP=":" 2758 else 2759 case $cross_compiling:$ac_tool_warned in 2760yes:) 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2763ac_tool_warned=yes ;; 2764esac 2765 STRIP=$ac_ct_STRIP 2766 fi 2767else 2768 STRIP="$ac_cv_prog_STRIP" 2769fi 2770 2771fi 2772INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2773 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2775$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2776if test -z "$MKDIR_P"; then 2777 if test "${ac_cv_path_mkdir+set}" = set; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_prog in mkdir gmkdir; do 2786 for ac_exec_ext in '' $ac_executable_extensions; do 2787 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2788 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2789 'mkdir (GNU coreutils) '* | \ 2790 'mkdir (coreutils) '* | \ 2791 'mkdir (fileutils) '4.1*) 2792 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2793 break 3;; 2794 esac 2795 done 2796 done 2797 done 2798IFS=$as_save_IFS 2799 2800fi 2801 2802 test -d ./--version && rmdir ./--version 2803 if test "${ac_cv_path_mkdir+set}" = set; then 2804 MKDIR_P="$ac_cv_path_mkdir -p" 2805 else 2806 # As a last resort, use the slow shell script. Don't cache a 2807 # value for MKDIR_P within a source directory, because that will 2808 # break other packages using the cache if that directory is 2809 # removed, or if the value is a relative name. 2810 MKDIR_P="$ac_install_sh -d" 2811 fi 2812fi 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2814$as_echo "$MKDIR_P" >&6; } 2815 2816mkdir_p="$MKDIR_P" 2817case $mkdir_p in 2818 [\\/$]* | ?:[\\/]*) ;; 2819 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2820esac 2821 2822for ac_prog in gawk mawk nawk awk 2823do 2824 # Extract the first word of "$ac_prog", so it can be a program name with args. 2825set dummy $ac_prog; ac_word=$2 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827$as_echo_n "checking for $ac_word... " >&6; } 2828if test "${ac_cv_prog_AWK+set}" = set; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test -n "$AWK"; then 2832 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2841 ac_cv_prog_AWK="$ac_prog" 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi 2850fi 2851AWK=$ac_cv_prog_AWK 2852if test -n "$AWK"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2854$as_echo "$AWK" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 2861 test -n "$AWK" && break 2862done 2863 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2865$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2866set x ${MAKE-make} 2867ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2868if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2869 $as_echo_n "(cached) " >&6 2870else 2871 cat >conftest.make <<\_ACEOF 2872SHELL = /bin/sh 2873all: 2874 @echo '@@@%%%=$(MAKE)=@@@%%%' 2875_ACEOF 2876# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2877case `${MAKE-make} -f conftest.make 2>/dev/null` in 2878 *@@@%%%=?*=@@@%%%*) 2879 eval ac_cv_prog_make_${ac_make}_set=yes;; 2880 *) 2881 eval ac_cv_prog_make_${ac_make}_set=no;; 2882esac 2883rm -f conftest.make 2884fi 2885if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2887$as_echo "yes" >&6; } 2888 SET_MAKE= 2889else 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891$as_echo "no" >&6; } 2892 SET_MAKE="MAKE=${MAKE-make}" 2893fi 2894 2895rm -rf .tst 2>/dev/null 2896mkdir .tst 2>/dev/null 2897if test -d .tst; then 2898 am__leading_dot=. 2899else 2900 am__leading_dot=_ 2901fi 2902rmdir .tst 2>/dev/null 2903 2904if test "`cd $srcdir && pwd`" != "`pwd`"; then 2905 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2906 # is not polluted with repeated "-I." 2907 am__isrc=' -I$(srcdir)' 2908 # test to see if srcdir already configured 2909 if test -f $srcdir/config.status; then 2910 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2911 fi 2912fi 2913 2914# test whether we have cygpath 2915if test -z "$CYGPATH_W"; then 2916 if (cygpath --version) >/dev/null 2>/dev/null; then 2917 CYGPATH_W='cygpath -w' 2918 else 2919 CYGPATH_W=echo 2920 fi 2921fi 2922 2923 2924# Define the identity of the package. 2925 PACKAGE='libxcb' 2926 VERSION='1.6' 2927 2928 2929cat >>confdefs.h <<_ACEOF 2930#define PACKAGE "$PACKAGE" 2931_ACEOF 2932 2933 2934cat >>confdefs.h <<_ACEOF 2935#define VERSION "$VERSION" 2936_ACEOF 2937 2938# Some tools Automake needs. 2939 2940ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2941 2942 2943AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2944 2945 2946AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2947 2948 2949AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2950 2951 2952MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2953 2954# We need awk for the "check" target. The system "awk" is bad on 2955# some platforms. 2956# Always define AMTAR for backward compatibility. 2957 2958AMTAR=${AMTAR-"${am_missing_run}tar"} 2959 2960am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 if test -n "$PYTHON"; then 2972 # If the user set $PYTHON, use it and don't search something else. 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5 2974$as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; } 2975 prog="import sys 2976# split strings by '.' and convert to numeric. Append some zeros 2977# because we need at least 4 digits for the hex conversion. 2978# map returns an iterator in Python 3.0 and a list in 2.x 2979minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] 2980minverhex = 0 2981# xrange is not present in Python 3.0 and range returns an iterator 2982for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 2983sys.exit(sys.hexversion < minverhex)" 2984 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 2985 ($PYTHON -c "$prog") >&5 2>&5 2986 ac_status=$? 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); }; then : 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2990$as_echo "yes" >&6; } 2991else 2992 as_fn_error "too old" "$LINENO" 5 2993fi 2994 am_display_PYTHON=$PYTHON 2995 else 2996 # Otherwise, try each interpreter until we find one that satisfies 2997 # VERSION. 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5 2999$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; } 3000if test "${am_cv_pathless_PYTHON+set}" = set; then : 3001 $as_echo_n "(cached) " >&6 3002else 3003 3004 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 3005 test "$am_cv_pathless_PYTHON" = none && break 3006 prog="import sys 3007# split strings by '.' and convert to numeric. Append some zeros 3008# because we need at least 4 digits for the hex conversion. 3009# map returns an iterator in Python 3.0 and a list in 2.x 3010minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0] 3011minverhex = 0 3012# xrange is not present in Python 3.0 and range returns an iterator 3013for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3014sys.exit(sys.hexversion < minverhex)" 3015 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 3016 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 3017 ac_status=$? 3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3019 (exit $ac_status); }; then : 3020 break 3021fi 3022 done 3023fi 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 3025$as_echo "$am_cv_pathless_PYTHON" >&6; } 3026 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 3027 if test "$am_cv_pathless_PYTHON" = none; then 3028 PYTHON=: 3029 else 3030 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 3031set dummy $am_cv_pathless_PYTHON; ac_word=$2 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033$as_echo_n "checking for $ac_word... " >&6; } 3034if test "${ac_cv_path_PYTHON+set}" = set; then : 3035 $as_echo_n "(cached) " >&6 3036else 3037 case $PYTHON in 3038 [\\/]* | ?:[\\/]*) 3039 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 3040 ;; 3041 *) 3042 as_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 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057 ;; 3058esac 3059fi 3060PYTHON=$ac_cv_path_PYTHON 3061if test -n "$PYTHON"; then 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3063$as_echo "$PYTHON" >&6; } 3064else 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3066$as_echo "no" >&6; } 3067fi 3068 3069 3070 fi 3071 am_display_PYTHON=$am_cv_pathless_PYTHON 3072 fi 3073 3074 3075 if test "$PYTHON" = :; then 3076 as_fn_error "no suitable Python interpreter found" "$LINENO" 5 3077 else 3078 3079 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 3081$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 3082if test "${am_cv_python_version+set}" = set; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 3086fi 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 3088$as_echo "$am_cv_python_version" >&6; } 3089 PYTHON_VERSION=$am_cv_python_version 3090 3091 3092 3093 PYTHON_PREFIX='${prefix}' 3094 3095 PYTHON_EXEC_PREFIX='${exec_prefix}' 3096 3097 3098 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 3100$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 3101if test "${am_cv_python_platform+set}" = set; then : 3102 $as_echo_n "(cached) " >&6 3103else 3104 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 3105fi 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 3107$as_echo "$am_cv_python_platform" >&6; } 3108 PYTHON_PLATFORM=$am_cv_python_platform 3109 3110 3111 3112 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 3114$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 3115if test "${am_cv_python_pythondir+set}" = set; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test "x$prefix" = xNONE 3119 then 3120 am_py_prefix=$ac_default_prefix 3121 else 3122 am_py_prefix=$prefix 3123 fi 3124 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null || 3125 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"` 3126 case $am_cv_python_pythondir in 3127 $am_py_prefix*) 3128 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 3129 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 3130 ;; 3131 *) 3132 case $am_py_prefix in 3133 /usr|/System*) ;; 3134 *) 3135 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 3136 ;; 3137 esac 3138 ;; 3139 esac 3140 3141fi 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 3143$as_echo "$am_cv_python_pythondir" >&6; } 3144 pythondir=$am_cv_python_pythondir 3145 3146 3147 3148 pkgpythondir=\${pythondir}/$PACKAGE 3149 3150 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 3152$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 3153if test "${am_cv_python_pyexecdir+set}" = set; then : 3154 $as_echo_n "(cached) " >&6 3155else 3156 if test "x$exec_prefix" = xNONE 3157 then 3158 am_py_exec_prefix=$am_py_prefix 3159 else 3160 am_py_exec_prefix=$exec_prefix 3161 fi 3162 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null || 3163 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"` 3164 case $am_cv_python_pyexecdir in 3165 $am_py_exec_prefix*) 3166 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 3167 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 3168 ;; 3169 *) 3170 case $am_py_exec_prefix in 3171 /usr|/System*) ;; 3172 *) 3173 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 3174 ;; 3175 esac 3176 ;; 3177 esac 3178 3179fi 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 3181$as_echo "$am_cv_python_pyexecdir" >&6; } 3182 pyexecdir=$am_cv_python_pyexecdir 3183 3184 3185 3186 pkgpyexecdir=\${pyexecdir}/$PACKAGE 3187 3188 3189 3190 fi 3191 3192 3193 3194 3195 3196if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3197 if test -n "$ac_tool_prefix"; then 3198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201$as_echo_n "checking for $ac_word... " >&6; } 3202if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 case $PKG_CONFIG in 3206 [\\/]* | ?:[\\/]*) 3207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3208 ;; 3209 *) 3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3211for as_dir in $PATH 3212do 3213 IFS=$as_save_IFS 3214 test -z "$as_dir" && as_dir=. 3215 for ac_exec_ext in '' $ac_executable_extensions; do 3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3219 break 2 3220 fi 3221done 3222 done 3223IFS=$as_save_IFS 3224 3225 ;; 3226esac 3227fi 3228PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3229if test -n "$PKG_CONFIG"; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3231$as_echo "$PKG_CONFIG" >&6; } 3232else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234$as_echo "no" >&6; } 3235fi 3236 3237 3238fi 3239if test -z "$ac_cv_path_PKG_CONFIG"; then 3240 ac_pt_PKG_CONFIG=$PKG_CONFIG 3241 # Extract the first word of "pkg-config", so it can be a program name with args. 3242set dummy pkg-config; ac_word=$2 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244$as_echo_n "checking for $ac_word... " >&6; } 3245if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 case $ac_pt_PKG_CONFIG in 3249 [\\/]* | ?:[\\/]*) 3250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3251 ;; 3252 *) 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254for as_dir in $PATH 3255do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for ac_exec_ext in '' $ac_executable_extensions; do 3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3262 break 2 3263 fi 3264done 3265 done 3266IFS=$as_save_IFS 3267 3268 ;; 3269esac 3270fi 3271ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3272if test -n "$ac_pt_PKG_CONFIG"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3274$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3275else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277$as_echo "no" >&6; } 3278fi 3279 3280 if test "x$ac_pt_PKG_CONFIG" = x; then 3281 PKG_CONFIG="" 3282 else 3283 case $cross_compiling:$ac_tool_warned in 3284yes:) 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3287ac_tool_warned=yes ;; 3288esac 3289 PKG_CONFIG=$ac_pt_PKG_CONFIG 3290 fi 3291else 3292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3293fi 3294 3295fi 3296if test -n "$PKG_CONFIG"; then 3297 _pkg_min_version=0.9.0 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3299$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3302$as_echo "yes" >&6; } 3303 else 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305$as_echo "no" >&6; } 3306 PKG_CONFIG="" 3307 fi 3308 3309fi 3310 3311pkg_failed=no 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 3313$as_echo_n "checking for CHECK... " >&6; } 3314 3315if test -n "$PKG_CONFIG"; then 3316 if test -n "$CHECK_CFLAGS"; then 3317 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 3318 else 3319 if test -n "$PKG_CONFIG" && \ 3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 3321 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 3322 ac_status=$? 3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3324 test $ac_status = 0; }; then 3325 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null` 3326else 3327 pkg_failed=yes 3328fi 3329 fi 3330else 3331 pkg_failed=untried 3332fi 3333if test -n "$PKG_CONFIG"; then 3334 if test -n "$CHECK_LIBS"; then 3335 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 3336 else 3337 if test -n "$PKG_CONFIG" && \ 3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 3339 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 3340 ac_status=$? 3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; }; then 3343 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null` 3344else 3345 pkg_failed=yes 3346fi 3347 fi 3348else 3349 pkg_failed=untried 3350fi 3351 3352 3353 3354if test $pkg_failed = yes; then 3355 3356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 3357 _pkg_short_errors_supported=yes 3358else 3359 _pkg_short_errors_supported=no 3360fi 3361 if test $_pkg_short_errors_supported = yes; then 3362 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check >= 0.9.4"` 3363 else 3364 CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check >= 0.9.4"` 3365 fi 3366 # Put the nasty error message in config.log where it belongs 3367 echo "$CHECK_PKG_ERRORS" >&5 3368 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3370$as_echo "no" >&6; } 3371 HAVE_CHECK=no 3372elif test $pkg_failed = untried; then 3373 HAVE_CHECK=no 3374else 3375 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 3376 CHECK_LIBS=$pkg_cv_CHECK_LIBS 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3378$as_echo "yes" >&6; } 3379 HAVE_CHECK=yes 3380fi 3381 if test x$HAVE_CHECK = xyes; then 3382 HAVE_CHECK_TRUE= 3383 HAVE_CHECK_FALSE='#' 3384else 3385 HAVE_CHECK_TRUE='#' 3386 HAVE_CHECK_FALSE= 3387fi 3388 3389 3390ac_config_headers="$ac_config_headers src/config.h" 3391 3392 3393case `pwd` in 3394 *\ * | *\ *) 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3396$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3397esac 3398 3399 3400 3401macro_version='2.2.6b' 3402macro_revision='1.3017' 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416ltmain="$ac_aux_dir/ltmain.sh" 3417 3418# Make sure we can run config.sub. 3419$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3420 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3421 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3423$as_echo_n "checking build system type... " >&6; } 3424if test "${ac_cv_build+set}" = set; then : 3425 $as_echo_n "(cached) " >&6 3426else 3427 ac_build_alias=$build_alias 3428test "x$ac_build_alias" = x && 3429 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3430test "x$ac_build_alias" = x && 3431 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3432ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3433 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3434 3435fi 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3437$as_echo "$ac_cv_build" >&6; } 3438case $ac_cv_build in 3439*-*-*) ;; 3440*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3441esac 3442build=$ac_cv_build 3443ac_save_IFS=$IFS; IFS='-' 3444set x $ac_cv_build 3445shift 3446build_cpu=$1 3447build_vendor=$2 3448shift; shift 3449# Remember, the first character of IFS is used to create $*, 3450# except with old shells: 3451build_os=$* 3452IFS=$ac_save_IFS 3453case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3454 3455 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3457$as_echo_n "checking host system type... " >&6; } 3458if test "${ac_cv_host+set}" = set; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 if test "x$host_alias" = x; then 3462 ac_cv_host=$ac_cv_build 3463else 3464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3465 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3466fi 3467 3468fi 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3470$as_echo "$ac_cv_host" >&6; } 3471case $ac_cv_host in 3472*-*-*) ;; 3473*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3474esac 3475host=$ac_cv_host 3476ac_save_IFS=$IFS; IFS='-' 3477set x $ac_cv_host 3478shift 3479host_cpu=$1 3480host_vendor=$2 3481shift; shift 3482# Remember, the first character of IFS is used to create $*, 3483# except with old shells: 3484host_os=$* 3485IFS=$ac_save_IFS 3486case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3487 3488 3489DEPDIR="${am__leading_dot}deps" 3490 3491ac_config_commands="$ac_config_commands depfiles" 3492 3493 3494am_make=${MAKE-make} 3495cat > confinc << 'END' 3496am__doit: 3497 @echo this is the am__doit target 3498.PHONY: am__doit 3499END 3500# If we don't find an include directive, just comment out the code. 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3502$as_echo_n "checking for style of include used by $am_make... " >&6; } 3503am__include="#" 3504am__quote= 3505_am_result=none 3506# First try GNU make style include. 3507echo "include confinc" > confmf 3508# Ignore all kinds of additional output from `make'. 3509case `$am_make -s -f confmf 2> /dev/null` in #( 3510*the\ am__doit\ target*) 3511 am__include=include 3512 am__quote= 3513 _am_result=GNU 3514 ;; 3515esac 3516# Now try BSD make style include. 3517if test "$am__include" = "#"; then 3518 echo '.include "confinc"' > confmf 3519 case `$am_make -s -f confmf 2> /dev/null` in #( 3520 *the\ am__doit\ target*) 3521 am__include=.include 3522 am__quote="\"" 3523 _am_result=BSD 3524 ;; 3525 esac 3526fi 3527 3528 3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3530$as_echo "$_am_result" >&6; } 3531rm -f confinc confmf 3532 3533# Check whether --enable-dependency-tracking was given. 3534if test "${enable_dependency_tracking+set}" = set; then : 3535 enableval=$enable_dependency_tracking; 3536fi 3537 3538if test "x$enable_dependency_tracking" != xno; then 3539 am_depcomp="$ac_aux_dir/depcomp" 3540 AMDEPBACKSLASH='\' 3541fi 3542 if test "x$enable_dependency_tracking" != xno; then 3543 AMDEP_TRUE= 3544 AMDEP_FALSE='#' 3545else 3546 AMDEP_TRUE='#' 3547 AMDEP_FALSE= 3548fi 3549 3550 3551ac_ext=c 3552ac_cpp='$CPP $CPPFLAGS' 3553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3555ac_compiler_gnu=$ac_cv_c_compiler_gnu 3556if test -n "$ac_tool_prefix"; then 3557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3558set dummy ${ac_tool_prefix}gcc; ac_word=$2 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3560$as_echo_n "checking for $ac_word... " >&6; } 3561if test "${ac_cv_prog_CC+set}" = set; then : 3562 $as_echo_n "(cached) " >&6 3563else 3564 if test -n "$CC"; then 3565 ac_cv_prog_CC="$CC" # Let the user override the test. 3566else 3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3568for as_dir in $PATH 3569do 3570 IFS=$as_save_IFS 3571 test -z "$as_dir" && as_dir=. 3572 for ac_exec_ext in '' $ac_executable_extensions; do 3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3574 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3576 break 2 3577 fi 3578done 3579 done 3580IFS=$as_save_IFS 3581 3582fi 3583fi 3584CC=$ac_cv_prog_CC 3585if test -n "$CC"; then 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3587$as_echo "$CC" >&6; } 3588else 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3590$as_echo "no" >&6; } 3591fi 3592 3593 3594fi 3595if test -z "$ac_cv_prog_CC"; then 3596 ac_ct_CC=$CC 3597 # Extract the first word of "gcc", so it can be a program name with args. 3598set dummy gcc; ac_word=$2 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600$as_echo_n "checking for $ac_word... " >&6; } 3601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 if test -n "$ac_ct_CC"; then 3605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3614 ac_cv_prog_ac_ct_CC="gcc" 3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3616 break 2 3617 fi 3618done 3619 done 3620IFS=$as_save_IFS 3621 3622fi 3623fi 3624ac_ct_CC=$ac_cv_prog_ac_ct_CC 3625if test -n "$ac_ct_CC"; then 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3627$as_echo "$ac_ct_CC" >&6; } 3628else 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3630$as_echo "no" >&6; } 3631fi 3632 3633 if test "x$ac_ct_CC" = x; then 3634 CC="" 3635 else 3636 case $cross_compiling:$ac_tool_warned in 3637yes:) 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3640ac_tool_warned=yes ;; 3641esac 3642 CC=$ac_ct_CC 3643 fi 3644else 3645 CC="$ac_cv_prog_CC" 3646fi 3647 3648if test -z "$CC"; then 3649 if test -n "$ac_tool_prefix"; then 3650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3651set dummy ${ac_tool_prefix}cc; ac_word=$2 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3653$as_echo_n "checking for $ac_word... " >&6; } 3654if test "${ac_cv_prog_CC+set}" = set; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 if test -n "$CC"; then 3658 ac_cv_prog_CC="$CC" # Let the user override the test. 3659else 3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3661for as_dir in $PATH 3662do 3663 IFS=$as_save_IFS 3664 test -z "$as_dir" && as_dir=. 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3667 ac_cv_prog_CC="${ac_tool_prefix}cc" 3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3669 break 2 3670 fi 3671done 3672 done 3673IFS=$as_save_IFS 3674 3675fi 3676fi 3677CC=$ac_cv_prog_CC 3678if test -n "$CC"; then 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3680$as_echo "$CC" >&6; } 3681else 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683$as_echo "no" >&6; } 3684fi 3685 3686 3687 fi 3688fi 3689if test -z "$CC"; then 3690 # Extract the first word of "cc", so it can be a program name with args. 3691set dummy cc; ac_word=$2 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3693$as_echo_n "checking for $ac_word... " >&6; } 3694if test "${ac_cv_prog_CC+set}" = set; then : 3695 $as_echo_n "(cached) " >&6 3696else 3697 if test -n "$CC"; then 3698 ac_cv_prog_CC="$CC" # Let the user override the test. 3699else 3700 ac_prog_rejected=no 3701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702for as_dir in $PATH 3703do 3704 IFS=$as_save_IFS 3705 test -z "$as_dir" && as_dir=. 3706 for ac_exec_ext in '' $ac_executable_extensions; do 3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3709 ac_prog_rejected=yes 3710 continue 3711 fi 3712 ac_cv_prog_CC="cc" 3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3714 break 2 3715 fi 3716done 3717 done 3718IFS=$as_save_IFS 3719 3720if test $ac_prog_rejected = yes; then 3721 # We found a bogon in the path, so make sure we never use it. 3722 set dummy $ac_cv_prog_CC 3723 shift 3724 if test $# != 0; then 3725 # We chose a different compiler from the bogus one. 3726 # However, it has the same basename, so the bogon will be chosen 3727 # first if we set CC to just the basename; use the full file name. 3728 shift 3729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3730 fi 3731fi 3732fi 3733fi 3734CC=$ac_cv_prog_CC 3735if test -n "$CC"; then 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3737$as_echo "$CC" >&6; } 3738else 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3740$as_echo "no" >&6; } 3741fi 3742 3743 3744fi 3745if test -z "$CC"; then 3746 if test -n "$ac_tool_prefix"; then 3747 for ac_prog in cl.exe 3748 do 3749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3750set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3752$as_echo_n "checking for $ac_word... " >&6; } 3753if test "${ac_cv_prog_CC+set}" = set; then : 3754 $as_echo_n "(cached) " >&6 3755else 3756 if test -n "$CC"; then 3757 ac_cv_prog_CC="$CC" # Let the user override the test. 3758else 3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3760for as_dir in $PATH 3761do 3762 IFS=$as_save_IFS 3763 test -z "$as_dir" && as_dir=. 3764 for ac_exec_ext in '' $ac_executable_extensions; do 3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3768 break 2 3769 fi 3770done 3771 done 3772IFS=$as_save_IFS 3773 3774fi 3775fi 3776CC=$ac_cv_prog_CC 3777if test -n "$CC"; then 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3779$as_echo "$CC" >&6; } 3780else 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3782$as_echo "no" >&6; } 3783fi 3784 3785 3786 test -n "$CC" && break 3787 done 3788fi 3789if test -z "$CC"; then 3790 ac_ct_CC=$CC 3791 for ac_prog in cl.exe 3792do 3793 # Extract the first word of "$ac_prog", so it can be a program name with args. 3794set dummy $ac_prog; ac_word=$2 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3796$as_echo_n "checking for $ac_word... " >&6; } 3797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3798 $as_echo_n "(cached) " >&6 3799else 3800 if test -n "$ac_ct_CC"; then 3801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3802else 3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3804for as_dir in $PATH 3805do 3806 IFS=$as_save_IFS 3807 test -z "$as_dir" && as_dir=. 3808 for ac_exec_ext in '' $ac_executable_extensions; do 3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3810 ac_cv_prog_ac_ct_CC="$ac_prog" 3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3812 break 2 3813 fi 3814done 3815 done 3816IFS=$as_save_IFS 3817 3818fi 3819fi 3820ac_ct_CC=$ac_cv_prog_ac_ct_CC 3821if test -n "$ac_ct_CC"; then 3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3823$as_echo "$ac_ct_CC" >&6; } 3824else 3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3826$as_echo "no" >&6; } 3827fi 3828 3829 3830 test -n "$ac_ct_CC" && break 3831done 3832 3833 if test "x$ac_ct_CC" = x; then 3834 CC="" 3835 else 3836 case $cross_compiling:$ac_tool_warned in 3837yes:) 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3840ac_tool_warned=yes ;; 3841esac 3842 CC=$ac_ct_CC 3843 fi 3844fi 3845 3846fi 3847 3848 3849test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3851as_fn_error "no acceptable C compiler found in \$PATH 3852See \`config.log' for more details." "$LINENO" 5; } 3853 3854# Provide some information about the compiler. 3855$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3856set X $ac_compile 3857ac_compiler=$2 3858for ac_option in --version -v -V -qversion; do 3859 { { ac_try="$ac_compiler $ac_option >&5" 3860case "(($ac_try" in 3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3862 *) ac_try_echo=$ac_try;; 3863esac 3864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3865$as_echo "$ac_try_echo"; } >&5 3866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3867 ac_status=$? 3868 if test -s conftest.err; then 3869 sed '10a\ 3870... rest of stderr output deleted ... 3871 10q' conftest.err >conftest.er1 3872 cat conftest.er1 >&5 3873 fi 3874 rm -f conftest.er1 conftest.err 3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3876 test $ac_status = 0; } 3877done 3878 3879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3880/* end confdefs.h. */ 3881 3882int 3883main () 3884{ 3885 3886 ; 3887 return 0; 3888} 3889_ACEOF 3890ac_clean_files_save=$ac_clean_files 3891ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3892# Try to create an executable without -o first, disregard a.out. 3893# It will help us diagnose broken compilers, and finding out an intuition 3894# of exeext. 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3896$as_echo_n "checking whether the C compiler works... " >&6; } 3897ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3898 3899# The possible output files: 3900ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3901 3902ac_rmfiles= 3903for ac_file in $ac_files 3904do 3905 case $ac_file in 3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3907 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3908 esac 3909done 3910rm -f $ac_rmfiles 3911 3912if { { ac_try="$ac_link_default" 3913case "(($ac_try" in 3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3915 *) ac_try_echo=$ac_try;; 3916esac 3917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3918$as_echo "$ac_try_echo"; } >&5 3919 (eval "$ac_link_default") 2>&5 3920 ac_status=$? 3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3922 test $ac_status = 0; }; then : 3923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3924# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3925# in a Makefile. We should not override ac_cv_exeext if it was cached, 3926# so that the user can short-circuit this test for compilers unknown to 3927# Autoconf. 3928for ac_file in $ac_files '' 3929do 3930 test -f "$ac_file" || continue 3931 case $ac_file in 3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3933 ;; 3934 [ab].out ) 3935 # We found the default executable, but exeext='' is most 3936 # certainly right. 3937 break;; 3938 *.* ) 3939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3940 then :; else 3941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3942 fi 3943 # We set ac_cv_exeext here because the later test for it is not 3944 # safe: cross compilers may not add the suffix if given an `-o' 3945 # argument, so we may need to know it at that point already. 3946 # Even if this section looks crufty: it has the advantage of 3947 # actually working. 3948 break;; 3949 * ) 3950 break;; 3951 esac 3952done 3953test "$ac_cv_exeext" = no && ac_cv_exeext= 3954 3955else 3956 ac_file='' 3957fi 3958if test -z "$ac_file"; then : 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3960$as_echo "no" >&6; } 3961$as_echo "$as_me: failed program was:" >&5 3962sed 's/^/| /' conftest.$ac_ext >&5 3963 3964{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3966{ as_fn_set_status 77 3967as_fn_error "C compiler cannot create executables 3968See \`config.log' for more details." "$LINENO" 5; }; } 3969else 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3971$as_echo "yes" >&6; } 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3974$as_echo_n "checking for C compiler default output file name... " >&6; } 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3976$as_echo "$ac_file" >&6; } 3977ac_exeext=$ac_cv_exeext 3978 3979rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3980ac_clean_files=$ac_clean_files_save 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3982$as_echo_n "checking for suffix of executables... " >&6; } 3983if { { ac_try="$ac_link" 3984case "(($ac_try" in 3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3986 *) ac_try_echo=$ac_try;; 3987esac 3988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3989$as_echo "$ac_try_echo"; } >&5 3990 (eval "$ac_link") 2>&5 3991 ac_status=$? 3992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3993 test $ac_status = 0; }; then : 3994 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3995# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3996# work properly (i.e., refer to `conftest.exe'), while it won't with 3997# `rm'. 3998for ac_file in conftest.exe conftest conftest.*; do 3999 test -f "$ac_file" || continue 4000 case $ac_file in 4001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4003 break;; 4004 * ) break;; 4005 esac 4006done 4007else 4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4010as_fn_error "cannot compute suffix of executables: cannot compile and link 4011See \`config.log' for more details." "$LINENO" 5; } 4012fi 4013rm -f conftest conftest$ac_cv_exeext 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4015$as_echo "$ac_cv_exeext" >&6; } 4016 4017rm -f conftest.$ac_ext 4018EXEEXT=$ac_cv_exeext 4019ac_exeext=$EXEEXT 4020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021/* end confdefs.h. */ 4022#include <stdio.h> 4023int 4024main () 4025{ 4026FILE *f = fopen ("conftest.out", "w"); 4027 return ferror (f) || fclose (f) != 0; 4028 4029 ; 4030 return 0; 4031} 4032_ACEOF 4033ac_clean_files="$ac_clean_files conftest.out" 4034# Check that the compiler produces executables we can run. If not, either 4035# the compiler is broken, or we cross compile. 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4037$as_echo_n "checking whether we are cross compiling... " >&6; } 4038if test "$cross_compiling" != yes; then 4039 { { ac_try="$ac_link" 4040case "(($ac_try" in 4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4042 *) ac_try_echo=$ac_try;; 4043esac 4044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4045$as_echo "$ac_try_echo"; } >&5 4046 (eval "$ac_link") 2>&5 4047 ac_status=$? 4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4049 test $ac_status = 0; } 4050 if { ac_try='./conftest$ac_cv_exeext' 4051 { { case "(($ac_try" in 4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053 *) ac_try_echo=$ac_try;; 4054esac 4055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4056$as_echo "$ac_try_echo"; } >&5 4057 (eval "$ac_try") 2>&5 4058 ac_status=$? 4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4060 test $ac_status = 0; }; }; then 4061 cross_compiling=no 4062 else 4063 if test "$cross_compiling" = maybe; then 4064 cross_compiling=yes 4065 else 4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4068as_fn_error "cannot run C compiled programs. 4069If you meant to cross compile, use \`--host'. 4070See \`config.log' for more details." "$LINENO" 5; } 4071 fi 4072 fi 4073fi 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4075$as_echo "$cross_compiling" >&6; } 4076 4077rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4078ac_clean_files=$ac_clean_files_save 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4080$as_echo_n "checking for suffix of object files... " >&6; } 4081if test "${ac_cv_objext+set}" = set; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085/* end confdefs.h. */ 4086 4087int 4088main () 4089{ 4090 4091 ; 4092 return 0; 4093} 4094_ACEOF 4095rm -f conftest.o conftest.obj 4096if { { ac_try="$ac_compile" 4097case "(($ac_try" in 4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4099 *) ac_try_echo=$ac_try;; 4100esac 4101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4102$as_echo "$ac_try_echo"; } >&5 4103 (eval "$ac_compile") 2>&5 4104 ac_status=$? 4105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4106 test $ac_status = 0; }; then : 4107 for ac_file in conftest.o conftest.obj conftest.*; do 4108 test -f "$ac_file" || continue; 4109 case $ac_file in 4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4112 break;; 4113 esac 4114done 4115else 4116 $as_echo "$as_me: failed program was:" >&5 4117sed 's/^/| /' conftest.$ac_ext >&5 4118 4119{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4121as_fn_error "cannot compute suffix of object files: cannot compile 4122See \`config.log' for more details." "$LINENO" 5; } 4123fi 4124rm -f conftest.$ac_cv_objext conftest.$ac_ext 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4127$as_echo "$ac_cv_objext" >&6; } 4128OBJEXT=$ac_cv_objext 4129ac_objext=$OBJEXT 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4131$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4132if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4133 $as_echo_n "(cached) " >&6 4134else 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main () 4140{ 4141#ifndef __GNUC__ 4142 choke me 4143#endif 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149if ac_fn_c_try_compile "$LINENO"; then : 4150 ac_compiler_gnu=yes 4151else 4152 ac_compiler_gnu=no 4153fi 4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4155ac_cv_c_compiler_gnu=$ac_compiler_gnu 4156 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4159$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4160if test $ac_compiler_gnu = yes; then 4161 GCC=yes 4162else 4163 GCC= 4164fi 4165ac_test_CFLAGS=${CFLAGS+set} 4166ac_save_CFLAGS=$CFLAGS 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4168$as_echo_n "checking whether $CC accepts -g... " >&6; } 4169if test "${ac_cv_prog_cc_g+set}" = set; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 ac_save_c_werror_flag=$ac_c_werror_flag 4173 ac_c_werror_flag=yes 4174 ac_cv_prog_cc_g=no 4175 CFLAGS="-g" 4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177/* end confdefs.h. */ 4178 4179int 4180main () 4181{ 4182 4183 ; 4184 return 0; 4185} 4186_ACEOF 4187if ac_fn_c_try_compile "$LINENO"; then : 4188 ac_cv_prog_cc_g=yes 4189else 4190 CFLAGS="" 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main () 4196{ 4197 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202if ac_fn_c_try_compile "$LINENO"; then : 4203 4204else 4205 ac_c_werror_flag=$ac_save_c_werror_flag 4206 CFLAGS="-g" 4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209 4210int 4211main () 4212{ 4213 4214 ; 4215 return 0; 4216} 4217_ACEOF 4218if ac_fn_c_try_compile "$LINENO"; then : 4219 ac_cv_prog_cc_g=yes 4220fi 4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4222fi 4223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4224fi 4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4226 ac_c_werror_flag=$ac_save_c_werror_flag 4227fi 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4229$as_echo "$ac_cv_prog_cc_g" >&6; } 4230if test "$ac_test_CFLAGS" = set; then 4231 CFLAGS=$ac_save_CFLAGS 4232elif test $ac_cv_prog_cc_g = yes; then 4233 if test "$GCC" = yes; then 4234 CFLAGS="-g -O2" 4235 else 4236 CFLAGS="-g" 4237 fi 4238else 4239 if test "$GCC" = yes; then 4240 CFLAGS="-O2" 4241 else 4242 CFLAGS= 4243 fi 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4246$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4247if test "${ac_cv_prog_cc_c89+set}" = set; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 ac_cv_prog_cc_c89=no 4251ac_save_CC=$CC 4252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253/* end confdefs.h. */ 4254#include <stdarg.h> 4255#include <stdio.h> 4256#include <sys/types.h> 4257#include <sys/stat.h> 4258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4259struct buf { int x; }; 4260FILE * (*rcsopen) (struct buf *, struct stat *, int); 4261static char *e (p, i) 4262 char **p; 4263 int i; 4264{ 4265 return p[i]; 4266} 4267static char *f (char * (*g) (char **, int), char **p, ...) 4268{ 4269 char *s; 4270 va_list v; 4271 va_start (v,p); 4272 s = g (p, va_arg (v,int)); 4273 va_end (v); 4274 return s; 4275} 4276 4277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4278 function prototypes and stuff, but not '\xHH' hex character constants. 4279 These don't provoke an error unfortunately, instead are silently treated 4280 as 'x'. The following induces an error, until -std is added to get 4281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4282 array size at least. It's necessary to write '\x00'==0 to get something 4283 that's true only with -std. */ 4284int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4285 4286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4287 inside strings and character constants. */ 4288#define FOO(x) 'x' 4289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4290 4291int test (int i, double x); 4292struct s1 {int (*f) (int a);}; 4293struct s2 {int (*f) (double a);}; 4294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4295int argc; 4296char **argv; 4297int 4298main () 4299{ 4300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4301 ; 4302 return 0; 4303} 4304_ACEOF 4305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4307do 4308 CC="$ac_save_CC $ac_arg" 4309 if ac_fn_c_try_compile "$LINENO"; then : 4310 ac_cv_prog_cc_c89=$ac_arg 4311fi 4312rm -f core conftest.err conftest.$ac_objext 4313 test "x$ac_cv_prog_cc_c89" != "xno" && break 4314done 4315rm -f conftest.$ac_ext 4316CC=$ac_save_CC 4317 4318fi 4319# AC_CACHE_VAL 4320case "x$ac_cv_prog_cc_c89" in 4321 x) 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4323$as_echo "none needed" >&6; } ;; 4324 xno) 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4326$as_echo "unsupported" >&6; } ;; 4327 *) 4328 CC="$CC $ac_cv_prog_cc_c89" 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4330$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4331esac 4332if test "x$ac_cv_prog_cc_c89" != xno; then : 4333 4334fi 4335 4336ac_ext=c 4337ac_cpp='$CPP $CPPFLAGS' 4338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4340ac_compiler_gnu=$ac_cv_c_compiler_gnu 4341 4342depcc="$CC" am_compiler_list= 4343 4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4345$as_echo_n "checking dependency style of $depcc... " >&6; } 4346if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4347 $as_echo_n "(cached) " >&6 4348else 4349 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4350 # We make a subdir and do the tests there. Otherwise we can end up 4351 # making bogus files that we don't know about and never remove. For 4352 # instance it was reported that on HP-UX the gcc test will end up 4353 # making a dummy file named `D' -- because `-MD' means `put the output 4354 # in D'. 4355 mkdir conftest.dir 4356 # Copy depcomp to subdir because otherwise we won't find it if we're 4357 # using a relative directory. 4358 cp "$am_depcomp" conftest.dir 4359 cd conftest.dir 4360 # We will build objects and dependencies in a subdirectory because 4361 # it helps to detect inapplicable dependency modes. For instance 4362 # both Tru64's cc and ICC support -MD to output dependencies as a 4363 # side effect of compilation, but ICC will put the dependencies in 4364 # the current directory while Tru64 will put them in the object 4365 # directory. 4366 mkdir sub 4367 4368 am_cv_CC_dependencies_compiler_type=none 4369 if test "$am_compiler_list" = ""; then 4370 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4371 fi 4372 am__universal=false 4373 case " $depcc " in #( 4374 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4375 esac 4376 4377 for depmode in $am_compiler_list; do 4378 # Setup a source with many dependencies, because some compilers 4379 # like to wrap large dependency lists on column 80 (with \), and 4380 # we should not choose a depcomp mode which is confused by this. 4381 # 4382 # We need to recreate these files for each test, as the compiler may 4383 # overwrite some of them when testing with obscure command lines. 4384 # This happens at least with the AIX C compiler. 4385 : > sub/conftest.c 4386 for i in 1 2 3 4 5 6; do 4387 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4388 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4389 # Solaris 8's {/usr,}/bin/sh. 4390 touch sub/conftst$i.h 4391 done 4392 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4393 4394 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4395 # mode. It turns out that the SunPro C++ compiler does not properly 4396 # handle `-M -o', and we need to detect this. Also, some Intel 4397 # versions had trouble with output in subdirs 4398 am__obj=sub/conftest.${OBJEXT-o} 4399 am__minus_obj="-o $am__obj" 4400 case $depmode in 4401 gcc) 4402 # This depmode causes a compiler race in universal mode. 4403 test "$am__universal" = false || continue 4404 ;; 4405 nosideeffect) 4406 # after this tag, mechanisms are not by side-effect, so they'll 4407 # only be used when explicitly requested 4408 if test "x$enable_dependency_tracking" = xyes; then 4409 continue 4410 else 4411 break 4412 fi 4413 ;; 4414 msvisualcpp | msvcmsys) 4415 # This compiler won't grok `-c -o', but also, the minuso test has 4416 # not run yet. These depmodes are late enough in the game, and 4417 # so weak that their functioning should not be impacted. 4418 am__obj=conftest.${OBJEXT-o} 4419 am__minus_obj= 4420 ;; 4421 none) break ;; 4422 esac 4423 if depmode=$depmode \ 4424 source=sub/conftest.c object=$am__obj \ 4425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4426 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4427 >/dev/null 2>conftest.err && 4428 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4430 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4432 # icc doesn't choke on unknown options, it will just issue warnings 4433 # or remarks (even with -Werror). So we grep stderr for any message 4434 # that says an option was ignored or not supported. 4435 # When given -MP, icc 7.0 and 7.1 complain thusly: 4436 # icc: Command line warning: ignoring option '-M'; no argument required 4437 # The diagnosis changed in icc 8.0: 4438 # icc: Command line remark: option '-MP' not supported 4439 if (grep 'ignoring option' conftest.err || 4440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4441 am_cv_CC_dependencies_compiler_type=$depmode 4442 break 4443 fi 4444 fi 4445 done 4446 4447 cd .. 4448 rm -rf conftest.dir 4449else 4450 am_cv_CC_dependencies_compiler_type=none 4451fi 4452 4453fi 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4455$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4456CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4457 4458 if 4459 test "x$enable_dependency_tracking" != xno \ 4460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4461 am__fastdepCC_TRUE= 4462 am__fastdepCC_FALSE='#' 4463else 4464 am__fastdepCC_TRUE='#' 4465 am__fastdepCC_FALSE= 4466fi 4467 4468 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4470$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4471if test "${ac_cv_path_SED+set}" = set; then : 4472 $as_echo_n "(cached) " >&6 4473else 4474 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4475 for ac_i in 1 2 3 4 5 6 7; do 4476 ac_script="$ac_script$as_nl$ac_script" 4477 done 4478 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4479 { ac_script=; unset ac_script;} 4480 if test -z "$SED"; then 4481 ac_path_SED_found=false 4482 # Loop through the user's path and test for each of PROGNAME-LIST 4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4484for as_dir in $PATH 4485do 4486 IFS=$as_save_IFS 4487 test -z "$as_dir" && as_dir=. 4488 for ac_prog in sed gsed; do 4489 for ac_exec_ext in '' $ac_executable_extensions; do 4490 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4491 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4492# Check for GNU ac_path_SED and select it if it is found. 4493 # Check for GNU $ac_path_SED 4494case `"$ac_path_SED" --version 2>&1` in 4495*GNU*) 4496 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4497*) 4498 ac_count=0 4499 $as_echo_n 0123456789 >"conftest.in" 4500 while : 4501 do 4502 cat "conftest.in" "conftest.in" >"conftest.tmp" 4503 mv "conftest.tmp" "conftest.in" 4504 cp "conftest.in" "conftest.nl" 4505 $as_echo '' >> "conftest.nl" 4506 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4508 as_fn_arith $ac_count + 1 && ac_count=$as_val 4509 if test $ac_count -gt ${ac_path_SED_max-0}; then 4510 # Best one so far, save it but keep looking for a better one 4511 ac_cv_path_SED="$ac_path_SED" 4512 ac_path_SED_max=$ac_count 4513 fi 4514 # 10*(2^10) chars as input seems more than enough 4515 test $ac_count -gt 10 && break 4516 done 4517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4518esac 4519 4520 $ac_path_SED_found && break 3 4521 done 4522 done 4523 done 4524IFS=$as_save_IFS 4525 if test -z "$ac_cv_path_SED"; then 4526 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4527 fi 4528else 4529 ac_cv_path_SED=$SED 4530fi 4531 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4534$as_echo "$ac_cv_path_SED" >&6; } 4535 SED="$ac_cv_path_SED" 4536 rm -f conftest.sed 4537 4538test -z "$SED" && SED=sed 4539Xsed="$SED -e 1s/^X//" 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4552$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4553if test "${ac_cv_path_GREP+set}" = set; then : 4554 $as_echo_n "(cached) " >&6 4555else 4556 if test -z "$GREP"; then 4557 ac_path_GREP_found=false 4558 # Loop through the user's path and test for each of PROGNAME-LIST 4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4560for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4561do 4562 IFS=$as_save_IFS 4563 test -z "$as_dir" && as_dir=. 4564 for ac_prog in grep ggrep; do 4565 for ac_exec_ext in '' $ac_executable_extensions; do 4566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4568# Check for GNU ac_path_GREP and select it if it is found. 4569 # Check for GNU $ac_path_GREP 4570case `"$ac_path_GREP" --version 2>&1` in 4571*GNU*) 4572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4573*) 4574 ac_count=0 4575 $as_echo_n 0123456789 >"conftest.in" 4576 while : 4577 do 4578 cat "conftest.in" "conftest.in" >"conftest.tmp" 4579 mv "conftest.tmp" "conftest.in" 4580 cp "conftest.in" "conftest.nl" 4581 $as_echo 'GREP' >> "conftest.nl" 4582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4584 as_fn_arith $ac_count + 1 && ac_count=$as_val 4585 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4586 # Best one so far, save it but keep looking for a better one 4587 ac_cv_path_GREP="$ac_path_GREP" 4588 ac_path_GREP_max=$ac_count 4589 fi 4590 # 10*(2^10) chars as input seems more than enough 4591 test $ac_count -gt 10 && break 4592 done 4593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4594esac 4595 4596 $ac_path_GREP_found && break 3 4597 done 4598 done 4599 done 4600IFS=$as_save_IFS 4601 if test -z "$ac_cv_path_GREP"; then 4602 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4603 fi 4604else 4605 ac_cv_path_GREP=$GREP 4606fi 4607 4608fi 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4610$as_echo "$ac_cv_path_GREP" >&6; } 4611 GREP="$ac_cv_path_GREP" 4612 4613 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4615$as_echo_n "checking for egrep... " >&6; } 4616if test "${ac_cv_path_EGREP+set}" = set; then : 4617 $as_echo_n "(cached) " >&6 4618else 4619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4620 then ac_cv_path_EGREP="$GREP -E" 4621 else 4622 if test -z "$EGREP"; then 4623 ac_path_EGREP_found=false 4624 # Loop through the user's path and test for each of PROGNAME-LIST 4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4626for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4627do 4628 IFS=$as_save_IFS 4629 test -z "$as_dir" && as_dir=. 4630 for ac_prog in egrep; do 4631 for ac_exec_ext in '' $ac_executable_extensions; do 4632 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4633 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4634# Check for GNU ac_path_EGREP and select it if it is found. 4635 # Check for GNU $ac_path_EGREP 4636case `"$ac_path_EGREP" --version 2>&1` in 4637*GNU*) 4638 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4639*) 4640 ac_count=0 4641 $as_echo_n 0123456789 >"conftest.in" 4642 while : 4643 do 4644 cat "conftest.in" "conftest.in" >"conftest.tmp" 4645 mv "conftest.tmp" "conftest.in" 4646 cp "conftest.in" "conftest.nl" 4647 $as_echo 'EGREP' >> "conftest.nl" 4648 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4650 as_fn_arith $ac_count + 1 && ac_count=$as_val 4651 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4652 # Best one so far, save it but keep looking for a better one 4653 ac_cv_path_EGREP="$ac_path_EGREP" 4654 ac_path_EGREP_max=$ac_count 4655 fi 4656 # 10*(2^10) chars as input seems more than enough 4657 test $ac_count -gt 10 && break 4658 done 4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4660esac 4661 4662 $ac_path_EGREP_found && break 3 4663 done 4664 done 4665 done 4666IFS=$as_save_IFS 4667 if test -z "$ac_cv_path_EGREP"; then 4668 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4669 fi 4670else 4671 ac_cv_path_EGREP=$EGREP 4672fi 4673 4674 fi 4675fi 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4677$as_echo "$ac_cv_path_EGREP" >&6; } 4678 EGREP="$ac_cv_path_EGREP" 4679 4680 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4682$as_echo_n "checking for fgrep... " >&6; } 4683if test "${ac_cv_path_FGREP+set}" = set; then : 4684 $as_echo_n "(cached) " >&6 4685else 4686 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4687 then ac_cv_path_FGREP="$GREP -F" 4688 else 4689 if test -z "$FGREP"; then 4690 ac_path_FGREP_found=false 4691 # Loop through the user's path and test for each of PROGNAME-LIST 4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_prog in fgrep; do 4698 for ac_exec_ext in '' $ac_executable_extensions; do 4699 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4700 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4701# Check for GNU ac_path_FGREP and select it if it is found. 4702 # Check for GNU $ac_path_FGREP 4703case `"$ac_path_FGREP" --version 2>&1` in 4704*GNU*) 4705 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4706*) 4707 ac_count=0 4708 $as_echo_n 0123456789 >"conftest.in" 4709 while : 4710 do 4711 cat "conftest.in" "conftest.in" >"conftest.tmp" 4712 mv "conftest.tmp" "conftest.in" 4713 cp "conftest.in" "conftest.nl" 4714 $as_echo 'FGREP' >> "conftest.nl" 4715 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4717 as_fn_arith $ac_count + 1 && ac_count=$as_val 4718 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4719 # Best one so far, save it but keep looking for a better one 4720 ac_cv_path_FGREP="$ac_path_FGREP" 4721 ac_path_FGREP_max=$ac_count 4722 fi 4723 # 10*(2^10) chars as input seems more than enough 4724 test $ac_count -gt 10 && break 4725 done 4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4727esac 4728 4729 $ac_path_FGREP_found && break 3 4730 done 4731 done 4732 done 4733IFS=$as_save_IFS 4734 if test -z "$ac_cv_path_FGREP"; then 4735 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4736 fi 4737else 4738 ac_cv_path_FGREP=$FGREP 4739fi 4740 4741 fi 4742fi 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4744$as_echo "$ac_cv_path_FGREP" >&6; } 4745 FGREP="$ac_cv_path_FGREP" 4746 4747 4748test -z "$GREP" && GREP=grep 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768# Check whether --with-gnu-ld was given. 4769if test "${with_gnu_ld+set}" = set; then : 4770 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4771else 4772 with_gnu_ld=no 4773fi 4774 4775ac_prog=ld 4776if test "$GCC" = yes; then 4777 # Check if gcc -print-prog-name=ld gives a path. 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4779$as_echo_n "checking for ld used by $CC... " >&6; } 4780 case $host in 4781 *-*-mingw*) 4782 # gcc leaves a trailing carriage return which upsets mingw 4783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4784 *) 4785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4786 esac 4787 case $ac_prog in 4788 # Accept absolute paths. 4789 [\\/]* | ?:[\\/]*) 4790 re_direlt='/[^/][^/]*/\.\./' 4791 # Canonicalize the pathname of ld 4792 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4793 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4794 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4795 done 4796 test -z "$LD" && LD="$ac_prog" 4797 ;; 4798 "") 4799 # If it fails, then pretend we aren't using GCC. 4800 ac_prog=ld 4801 ;; 4802 *) 4803 # If it is relative, then search for the first ld in PATH. 4804 with_gnu_ld=unknown 4805 ;; 4806 esac 4807elif test "$with_gnu_ld" = yes; then 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4809$as_echo_n "checking for GNU ld... " >&6; } 4810else 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4812$as_echo_n "checking for non-GNU ld... " >&6; } 4813fi 4814if test "${lt_cv_path_LD+set}" = set; then : 4815 $as_echo_n "(cached) " >&6 4816else 4817 if test -z "$LD"; then 4818 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4819 for ac_dir in $PATH; do 4820 IFS="$lt_save_ifs" 4821 test -z "$ac_dir" && ac_dir=. 4822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4823 lt_cv_path_LD="$ac_dir/$ac_prog" 4824 # Check to see if the program is GNU ld. I'd rather use --version, 4825 # but apparently some variants of GNU ld only accept -v. 4826 # Break only if it was the GNU/non-GNU ld that we prefer. 4827 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4828 *GNU* | *'with BFD'*) 4829 test "$with_gnu_ld" != no && break 4830 ;; 4831 *) 4832 test "$with_gnu_ld" != yes && break 4833 ;; 4834 esac 4835 fi 4836 done 4837 IFS="$lt_save_ifs" 4838else 4839 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4840fi 4841fi 4842 4843LD="$lt_cv_path_LD" 4844if test -n "$LD"; then 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4846$as_echo "$LD" >&6; } 4847else 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4849$as_echo "no" >&6; } 4850fi 4851test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4853$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4854if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4858case `$LD -v 2>&1 </dev/null` in 4859*GNU* | *'with BFD'*) 4860 lt_cv_prog_gnu_ld=yes 4861 ;; 4862*) 4863 lt_cv_prog_gnu_ld=no 4864 ;; 4865esac 4866fi 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4868$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4869with_gnu_ld=$lt_cv_prog_gnu_ld 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4880$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4881if test "${lt_cv_path_NM+set}" = set; then : 4882 $as_echo_n "(cached) " >&6 4883else 4884 if test -n "$NM"; then 4885 # Let the user override the test. 4886 lt_cv_path_NM="$NM" 4887else 4888 lt_nm_to_check="${ac_tool_prefix}nm" 4889 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4890 lt_nm_to_check="$lt_nm_to_check nm" 4891 fi 4892 for lt_tmp_nm in $lt_nm_to_check; do 4893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4894 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4895 IFS="$lt_save_ifs" 4896 test -z "$ac_dir" && ac_dir=. 4897 tmp_nm="$ac_dir/$lt_tmp_nm" 4898 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4899 # Check to see if the nm accepts a BSD-compat flag. 4900 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4901 # nm: unknown option "B" ignored 4902 # Tru64's nm complains that /dev/null is an invalid object file 4903 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4904 */dev/null* | *'Invalid file or object type'*) 4905 lt_cv_path_NM="$tmp_nm -B" 4906 break 4907 ;; 4908 *) 4909 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4910 */dev/null*) 4911 lt_cv_path_NM="$tmp_nm -p" 4912 break 4913 ;; 4914 *) 4915 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4916 continue # so that we can try to find one that supports BSD flags 4917 ;; 4918 esac 4919 ;; 4920 esac 4921 fi 4922 done 4923 IFS="$lt_save_ifs" 4924 done 4925 : ${lt_cv_path_NM=no} 4926fi 4927fi 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4929$as_echo "$lt_cv_path_NM" >&6; } 4930if test "$lt_cv_path_NM" != "no"; then 4931 NM="$lt_cv_path_NM" 4932else 4933 # Didn't find any BSD compatible name lister, look for dumpbin. 4934 if test -n "$ac_tool_prefix"; then 4935 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4936 do 4937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4938set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4940$as_echo_n "checking for $ac_word... " >&6; } 4941if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 if test -n "$DUMPBIN"; then 4945 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4946else 4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4948for as_dir in $PATH 4949do 4950 IFS=$as_save_IFS 4951 test -z "$as_dir" && as_dir=. 4952 for ac_exec_ext in '' $ac_executable_extensions; do 4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4954 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4956 break 2 4957 fi 4958done 4959 done 4960IFS=$as_save_IFS 4961 4962fi 4963fi 4964DUMPBIN=$ac_cv_prog_DUMPBIN 4965if test -n "$DUMPBIN"; then 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4967$as_echo "$DUMPBIN" >&6; } 4968else 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4970$as_echo "no" >&6; } 4971fi 4972 4973 4974 test -n "$DUMPBIN" && break 4975 done 4976fi 4977if test -z "$DUMPBIN"; then 4978 ac_ct_DUMPBIN=$DUMPBIN 4979 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4980do 4981 # Extract the first word of "$ac_prog", so it can be a program name with args. 4982set dummy $ac_prog; ac_word=$2 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984$as_echo_n "checking for $ac_word... " >&6; } 4985if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4986 $as_echo_n "(cached) " >&6 4987else 4988 if test -n "$ac_ct_DUMPBIN"; then 4989 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4990else 4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4992for as_dir in $PATH 4993do 4994 IFS=$as_save_IFS 4995 test -z "$as_dir" && as_dir=. 4996 for ac_exec_ext in '' $ac_executable_extensions; do 4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4998 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5000 break 2 5001 fi 5002done 5003 done 5004IFS=$as_save_IFS 5005 5006fi 5007fi 5008ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5009if test -n "$ac_ct_DUMPBIN"; then 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5011$as_echo "$ac_ct_DUMPBIN" >&6; } 5012else 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5014$as_echo "no" >&6; } 5015fi 5016 5017 5018 test -n "$ac_ct_DUMPBIN" && break 5019done 5020 5021 if test "x$ac_ct_DUMPBIN" = x; then 5022 DUMPBIN=":" 5023 else 5024 case $cross_compiling:$ac_tool_warned in 5025yes:) 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5028ac_tool_warned=yes ;; 5029esac 5030 DUMPBIN=$ac_ct_DUMPBIN 5031 fi 5032fi 5033 5034 5035 if test "$DUMPBIN" != ":"; then 5036 NM="$DUMPBIN" 5037 fi 5038fi 5039test -z "$NM" && NM=nm 5040 5041 5042 5043 5044 5045 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5047$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5048if test "${lt_cv_nm_interface+set}" = set; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 lt_cv_nm_interface="BSD nm" 5052 echo "int some_variable = 0;" > conftest.$ac_ext 5053 (eval echo "\"\$as_me:5053: $ac_compile\"" >&5) 5054 (eval "$ac_compile" 2>conftest.err) 5055 cat conftest.err >&5 5056 (eval echo "\"\$as_me:5056: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5057 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5058 cat conftest.err >&5 5059 (eval echo "\"\$as_me:5059: output\"" >&5) 5060 cat conftest.out >&5 5061 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5062 lt_cv_nm_interface="MS dumpbin" 5063 fi 5064 rm -f conftest* 5065fi 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5067$as_echo "$lt_cv_nm_interface" >&6; } 5068 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5070$as_echo_n "checking whether ln -s works... " >&6; } 5071LN_S=$as_ln_s 5072if test "$LN_S" = "ln -s"; then 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5074$as_echo "yes" >&6; } 5075else 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5077$as_echo "no, using $LN_S" >&6; } 5078fi 5079 5080# find the maximum length of command line arguments 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5082$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5083if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 i=0 5087 teststring="ABCD" 5088 5089 case $build_os in 5090 msdosdjgpp*) 5091 # On DJGPP, this test can blow up pretty badly due to problems in libc 5092 # (any single argument exceeding 2000 bytes causes a buffer overrun 5093 # during glob expansion). Even if it were fixed, the result of this 5094 # check would be larger than it should be. 5095 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5096 ;; 5097 5098 gnu*) 5099 # Under GNU Hurd, this test is not required because there is 5100 # no limit to the length of command line arguments. 5101 # Libtool will interpret -1 as no limit whatsoever 5102 lt_cv_sys_max_cmd_len=-1; 5103 ;; 5104 5105 cygwin* | mingw* | cegcc*) 5106 # On Win9x/ME, this test blows up -- it succeeds, but takes 5107 # about 5 minutes as the teststring grows exponentially. 5108 # Worse, since 9x/ME are not pre-emptively multitasking, 5109 # you end up with a "frozen" computer, even though with patience 5110 # the test eventually succeeds (with a max line length of 256k). 5111 # Instead, let's just punt: use the minimum linelength reported by 5112 # all of the supported platforms: 8192 (on NT/2K/XP). 5113 lt_cv_sys_max_cmd_len=8192; 5114 ;; 5115 5116 amigaos*) 5117 # On AmigaOS with pdksh, this test takes hours, literally. 5118 # So we just punt and use a minimum line length of 8192. 5119 lt_cv_sys_max_cmd_len=8192; 5120 ;; 5121 5122 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5123 # This has been around since 386BSD, at least. Likely further. 5124 if test -x /sbin/sysctl; then 5125 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5126 elif test -x /usr/sbin/sysctl; then 5127 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5128 else 5129 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5130 fi 5131 # And add a safety zone 5132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5134 ;; 5135 5136 interix*) 5137 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5138 lt_cv_sys_max_cmd_len=196608 5139 ;; 5140 5141 osf*) 5142 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5143 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5144 # nice to cause kernel panics so lets avoid the loop below. 5145 # First set a reasonable default. 5146 lt_cv_sys_max_cmd_len=16384 5147 # 5148 if test -x /sbin/sysconfig; then 5149 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5150 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5151 esac 5152 fi 5153 ;; 5154 sco3.2v5*) 5155 lt_cv_sys_max_cmd_len=102400 5156 ;; 5157 sysv5* | sco5v6* | sysv4.2uw2*) 5158 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5159 if test -n "$kargmax"; then 5160 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5161 else 5162 lt_cv_sys_max_cmd_len=32768 5163 fi 5164 ;; 5165 *) 5166 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5167 if test -n "$lt_cv_sys_max_cmd_len"; then 5168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5170 else 5171 # Make teststring a little bigger before we do anything with it. 5172 # a 1K string should be a reasonable start. 5173 for i in 1 2 3 4 5 6 7 8 ; do 5174 teststring=$teststring$teststring 5175 done 5176 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5177 # If test is not a shell built-in, we'll probably end up computing a 5178 # maximum length that is only half of the actual maximum length, but 5179 # we can't tell. 5180 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5181 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5182 test $i != 17 # 1/2 MB should be enough 5183 do 5184 i=`expr $i + 1` 5185 teststring=$teststring$teststring 5186 done 5187 # Only check the string length outside the loop. 5188 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5189 teststring= 5190 # Add a significant safety factor because C++ compilers can tack on 5191 # massive amounts of additional arguments before passing them to the 5192 # linker. It appears as though 1/2 is a usable value. 5193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5194 fi 5195 ;; 5196 esac 5197 5198fi 5199 5200if test -n $lt_cv_sys_max_cmd_len ; then 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5202$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5203else 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5205$as_echo "none" >&6; } 5206fi 5207max_cmd_len=$lt_cv_sys_max_cmd_len 5208 5209 5210 5211 5212 5213 5214: ${CP="cp -f"} 5215: ${MV="mv -f"} 5216: ${RM="rm -f"} 5217 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5219$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5220# Try some XSI features 5221xsi_shell=no 5222( _lt_dummy="a/b/c" 5223 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5224 = c,a/b,, \ 5225 && eval 'test $(( 1 + 1 )) -eq 2 \ 5226 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5227 && xsi_shell=yes 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5229$as_echo "$xsi_shell" >&6; } 5230 5231 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5233$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5234lt_shell_append=no 5235( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5236 >/dev/null 2>&1 \ 5237 && lt_shell_append=yes 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5239$as_echo "$lt_shell_append" >&6; } 5240 5241 5242if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5243 lt_unset=unset 5244else 5245 lt_unset=false 5246fi 5247 5248 5249 5250 5251 5252# test EBCDIC or ASCII 5253case `echo X|tr X '\101'` in 5254 A) # ASCII based system 5255 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5256 lt_SP2NL='tr \040 \012' 5257 lt_NL2SP='tr \015\012 \040\040' 5258 ;; 5259 *) # EBCDIC based system 5260 lt_SP2NL='tr \100 \n' 5261 lt_NL2SP='tr \r\n \100\100' 5262 ;; 5263esac 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5274$as_echo_n "checking for $LD option to reload object files... " >&6; } 5275if test "${lt_cv_ld_reload_flag+set}" = set; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 lt_cv_ld_reload_flag='-r' 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5281$as_echo "$lt_cv_ld_reload_flag" >&6; } 5282reload_flag=$lt_cv_ld_reload_flag 5283case $reload_flag in 5284"" | " "*) ;; 5285*) reload_flag=" $reload_flag" ;; 5286esac 5287reload_cmds='$LD$reload_flag -o $output$reload_objs' 5288case $host_os in 5289 darwin*) 5290 if test "$GCC" = yes; then 5291 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5292 else 5293 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5294 fi 5295 ;; 5296esac 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306if test -n "$ac_tool_prefix"; then 5307 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5308set dummy ${ac_tool_prefix}objdump; ac_word=$2 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5310$as_echo_n "checking for $ac_word... " >&6; } 5311if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5312 $as_echo_n "(cached) " >&6 5313else 5314 if test -n "$OBJDUMP"; then 5315 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5316else 5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5318for as_dir in $PATH 5319do 5320 IFS=$as_save_IFS 5321 test -z "$as_dir" && as_dir=. 5322 for ac_exec_ext in '' $ac_executable_extensions; do 5323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5324 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5326 break 2 5327 fi 5328done 5329 done 5330IFS=$as_save_IFS 5331 5332fi 5333fi 5334OBJDUMP=$ac_cv_prog_OBJDUMP 5335if test -n "$OBJDUMP"; then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5337$as_echo "$OBJDUMP" >&6; } 5338else 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5340$as_echo "no" >&6; } 5341fi 5342 5343 5344fi 5345if test -z "$ac_cv_prog_OBJDUMP"; then 5346 ac_ct_OBJDUMP=$OBJDUMP 5347 # Extract the first word of "objdump", so it can be a program name with args. 5348set dummy objdump; ac_word=$2 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5350$as_echo_n "checking for $ac_word... " >&6; } 5351if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 if test -n "$ac_ct_OBJDUMP"; then 5355 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5356else 5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5358for as_dir in $PATH 5359do 5360 IFS=$as_save_IFS 5361 test -z "$as_dir" && as_dir=. 5362 for ac_exec_ext in '' $ac_executable_extensions; do 5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5364 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5366 break 2 5367 fi 5368done 5369 done 5370IFS=$as_save_IFS 5371 5372fi 5373fi 5374ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5375if test -n "$ac_ct_OBJDUMP"; then 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5377$as_echo "$ac_ct_OBJDUMP" >&6; } 5378else 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5380$as_echo "no" >&6; } 5381fi 5382 5383 if test "x$ac_ct_OBJDUMP" = x; then 5384 OBJDUMP="false" 5385 else 5386 case $cross_compiling:$ac_tool_warned in 5387yes:) 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5390ac_tool_warned=yes ;; 5391esac 5392 OBJDUMP=$ac_ct_OBJDUMP 5393 fi 5394else 5395 OBJDUMP="$ac_cv_prog_OBJDUMP" 5396fi 5397 5398test -z "$OBJDUMP" && OBJDUMP=objdump 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5409$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5410if test "${lt_cv_deplibs_check_method+set}" = set; then : 5411 $as_echo_n "(cached) " >&6 5412else 5413 lt_cv_file_magic_cmd='$MAGIC_CMD' 5414lt_cv_file_magic_test_file= 5415lt_cv_deplibs_check_method='unknown' 5416# Need to set the preceding variable on all platforms that support 5417# interlibrary dependencies. 5418# 'none' -- dependencies not supported. 5419# `unknown' -- same as none, but documents that we really don't know. 5420# 'pass_all' -- all dependencies passed with no checks. 5421# 'test_compile' -- check by making test program. 5422# 'file_magic [[regex]]' -- check by looking for files in library path 5423# which responds to the $file_magic_cmd with a given extended regex. 5424# If you have `file' or equivalent on your system and you're not sure 5425# whether `pass_all' will *always* work, you probably want this one. 5426 5427case $host_os in 5428aix[4-9]*) 5429 lt_cv_deplibs_check_method=pass_all 5430 ;; 5431 5432beos*) 5433 lt_cv_deplibs_check_method=pass_all 5434 ;; 5435 5436bsdi[45]*) 5437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5438 lt_cv_file_magic_cmd='/usr/bin/file -L' 5439 lt_cv_file_magic_test_file=/shlib/libc.so 5440 ;; 5441 5442cygwin*) 5443 # func_win32_libid is a shell function defined in ltmain.sh 5444 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5445 lt_cv_file_magic_cmd='func_win32_libid' 5446 ;; 5447 5448mingw* | pw32*) 5449 # Base MSYS/MinGW do not provide the 'file' command needed by 5450 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5451 # unless we find 'file', for example because we are cross-compiling. 5452 if ( file / ) >/dev/null 2>&1; then 5453 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5454 lt_cv_file_magic_cmd='func_win32_libid' 5455 else 5456 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5457 lt_cv_file_magic_cmd='$OBJDUMP -f' 5458 fi 5459 ;; 5460 5461cegcc) 5462 # use the weaker test based on 'objdump'. See mingw*. 5463 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5464 lt_cv_file_magic_cmd='$OBJDUMP -f' 5465 ;; 5466 5467darwin* | rhapsody*) 5468 lt_cv_deplibs_check_method=pass_all 5469 ;; 5470 5471freebsd* | dragonfly*) 5472 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5473 case $host_cpu in 5474 i*86 ) 5475 # Not sure whether the presence of OpenBSD here was a mistake. 5476 # Let's accept both of them until this is cleared up. 5477 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5478 lt_cv_file_magic_cmd=/usr/bin/file 5479 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5480 ;; 5481 esac 5482 else 5483 lt_cv_deplibs_check_method=pass_all 5484 fi 5485 ;; 5486 5487gnu*) 5488 lt_cv_deplibs_check_method=pass_all 5489 ;; 5490 5491hpux10.20* | hpux11*) 5492 lt_cv_file_magic_cmd=/usr/bin/file 5493 case $host_cpu in 5494 ia64*) 5495 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5496 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5497 ;; 5498 hppa*64*) 5499 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]' 5500 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5501 ;; 5502 *) 5503 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5504 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5505 ;; 5506 esac 5507 ;; 5508 5509interix[3-9]*) 5510 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5512 ;; 5513 5514irix5* | irix6* | nonstopux*) 5515 case $LD in 5516 *-32|*"-32 ") libmagic=32-bit;; 5517 *-n32|*"-n32 ") libmagic=N32;; 5518 *-64|*"-64 ") libmagic=64-bit;; 5519 *) libmagic=never-match;; 5520 esac 5521 lt_cv_deplibs_check_method=pass_all 5522 ;; 5523 5524# This must be Linux ELF. 5525linux* | k*bsd*-gnu | kopensolaris*-gnu) 5526 lt_cv_deplibs_check_method=pass_all 5527 ;; 5528 5529netbsd* | netbsdelf*-gnu) 5530 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5532 else 5533 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5534 fi 5535 ;; 5536 5537newos6*) 5538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5539 lt_cv_file_magic_cmd=/usr/bin/file 5540 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5541 ;; 5542 5543*nto* | *qnx*) 5544 lt_cv_deplibs_check_method=pass_all 5545 ;; 5546 5547openbsd*) 5548 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5550 else 5551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5552 fi 5553 ;; 5554 5555osf3* | osf4* | osf5*) 5556 lt_cv_deplibs_check_method=pass_all 5557 ;; 5558 5559rdos*) 5560 lt_cv_deplibs_check_method=pass_all 5561 ;; 5562 5563solaris*) 5564 lt_cv_deplibs_check_method=pass_all 5565 ;; 5566 5567sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5568 lt_cv_deplibs_check_method=pass_all 5569 ;; 5570 5571sysv4 | sysv4.3*) 5572 case $host_vendor in 5573 motorola) 5574 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]' 5575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5576 ;; 5577 ncr) 5578 lt_cv_deplibs_check_method=pass_all 5579 ;; 5580 sequent) 5581 lt_cv_file_magic_cmd='/bin/file' 5582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5583 ;; 5584 sni) 5585 lt_cv_file_magic_cmd='/bin/file' 5586 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5587 lt_cv_file_magic_test_file=/lib/libc.so 5588 ;; 5589 siemens) 5590 lt_cv_deplibs_check_method=pass_all 5591 ;; 5592 pc) 5593 lt_cv_deplibs_check_method=pass_all 5594 ;; 5595 esac 5596 ;; 5597 5598tpf*) 5599 lt_cv_deplibs_check_method=pass_all 5600 ;; 5601esac 5602 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5605$as_echo "$lt_cv_deplibs_check_method" >&6; } 5606file_magic_cmd=$lt_cv_file_magic_cmd 5607deplibs_check_method=$lt_cv_deplibs_check_method 5608test -z "$deplibs_check_method" && deplibs_check_method=unknown 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621if test -n "$ac_tool_prefix"; then 5622 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5623set dummy ${ac_tool_prefix}ar; ac_word=$2 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5625$as_echo_n "checking for $ac_word... " >&6; } 5626if test "${ac_cv_prog_AR+set}" = set; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 if test -n "$AR"; then 5630 ac_cv_prog_AR="$AR" # Let the user override the test. 5631else 5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5633for as_dir in $PATH 5634do 5635 IFS=$as_save_IFS 5636 test -z "$as_dir" && as_dir=. 5637 for ac_exec_ext in '' $ac_executable_extensions; do 5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5639 ac_cv_prog_AR="${ac_tool_prefix}ar" 5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5641 break 2 5642 fi 5643done 5644 done 5645IFS=$as_save_IFS 5646 5647fi 5648fi 5649AR=$ac_cv_prog_AR 5650if test -n "$AR"; then 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5652$as_echo "$AR" >&6; } 5653else 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5655$as_echo "no" >&6; } 5656fi 5657 5658 5659fi 5660if test -z "$ac_cv_prog_AR"; then 5661 ac_ct_AR=$AR 5662 # Extract the first word of "ar", so it can be a program name with args. 5663set dummy ar; ac_word=$2 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5665$as_echo_n "checking for $ac_word... " >&6; } 5666if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5667 $as_echo_n "(cached) " >&6 5668else 5669 if test -n "$ac_ct_AR"; then 5670 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5671else 5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5673for as_dir in $PATH 5674do 5675 IFS=$as_save_IFS 5676 test -z "$as_dir" && as_dir=. 5677 for ac_exec_ext in '' $ac_executable_extensions; do 5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5679 ac_cv_prog_ac_ct_AR="ar" 5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5681 break 2 5682 fi 5683done 5684 done 5685IFS=$as_save_IFS 5686 5687fi 5688fi 5689ac_ct_AR=$ac_cv_prog_ac_ct_AR 5690if test -n "$ac_ct_AR"; then 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5692$as_echo "$ac_ct_AR" >&6; } 5693else 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5695$as_echo "no" >&6; } 5696fi 5697 5698 if test "x$ac_ct_AR" = x; then 5699 AR="false" 5700 else 5701 case $cross_compiling:$ac_tool_warned in 5702yes:) 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5705ac_tool_warned=yes ;; 5706esac 5707 AR=$ac_ct_AR 5708 fi 5709else 5710 AR="$ac_cv_prog_AR" 5711fi 5712 5713test -z "$AR" && AR=ar 5714test -z "$AR_FLAGS" && AR_FLAGS=cru 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726if test -n "$ac_tool_prefix"; then 5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5728set dummy ${ac_tool_prefix}strip; ac_word=$2 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5730$as_echo_n "checking for $ac_word... " >&6; } 5731if test "${ac_cv_prog_STRIP+set}" = set; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 if test -n "$STRIP"; then 5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5736else 5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5738for as_dir in $PATH 5739do 5740 IFS=$as_save_IFS 5741 test -z "$as_dir" && as_dir=. 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5746 break 2 5747 fi 5748done 5749 done 5750IFS=$as_save_IFS 5751 5752fi 5753fi 5754STRIP=$ac_cv_prog_STRIP 5755if test -n "$STRIP"; then 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5757$as_echo "$STRIP" >&6; } 5758else 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5760$as_echo "no" >&6; } 5761fi 5762 5763 5764fi 5765if test -z "$ac_cv_prog_STRIP"; then 5766 ac_ct_STRIP=$STRIP 5767 # Extract the first word of "strip", so it can be a program name with args. 5768set dummy strip; ac_word=$2 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5770$as_echo_n "checking for $ac_word... " >&6; } 5771if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 if test -n "$ac_ct_STRIP"; then 5775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5776else 5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5778for as_dir in $PATH 5779do 5780 IFS=$as_save_IFS 5781 test -z "$as_dir" && as_dir=. 5782 for ac_exec_ext in '' $ac_executable_extensions; do 5783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5784 ac_cv_prog_ac_ct_STRIP="strip" 5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5786 break 2 5787 fi 5788done 5789 done 5790IFS=$as_save_IFS 5791 5792fi 5793fi 5794ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5795if test -n "$ac_ct_STRIP"; then 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5797$as_echo "$ac_ct_STRIP" >&6; } 5798else 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5800$as_echo "no" >&6; } 5801fi 5802 5803 if test "x$ac_ct_STRIP" = x; then 5804 STRIP=":" 5805 else 5806 case $cross_compiling:$ac_tool_warned in 5807yes:) 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5810ac_tool_warned=yes ;; 5811esac 5812 STRIP=$ac_ct_STRIP 5813 fi 5814else 5815 STRIP="$ac_cv_prog_STRIP" 5816fi 5817 5818test -z "$STRIP" && STRIP=: 5819 5820 5821 5822 5823 5824 5825if test -n "$ac_tool_prefix"; then 5826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5827set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5829$as_echo_n "checking for $ac_word... " >&6; } 5830if test "${ac_cv_prog_RANLIB+set}" = set; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 if test -n "$RANLIB"; then 5834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5835else 5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5837for as_dir in $PATH 5838do 5839 IFS=$as_save_IFS 5840 test -z "$as_dir" && as_dir=. 5841 for ac_exec_ext in '' $ac_executable_extensions; do 5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5845 break 2 5846 fi 5847done 5848 done 5849IFS=$as_save_IFS 5850 5851fi 5852fi 5853RANLIB=$ac_cv_prog_RANLIB 5854if test -n "$RANLIB"; then 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5856$as_echo "$RANLIB" >&6; } 5857else 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5859$as_echo "no" >&6; } 5860fi 5861 5862 5863fi 5864if test -z "$ac_cv_prog_RANLIB"; then 5865 ac_ct_RANLIB=$RANLIB 5866 # Extract the first word of "ranlib", so it can be a program name with args. 5867set dummy ranlib; ac_word=$2 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5869$as_echo_n "checking for $ac_word... " >&6; } 5870if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 if test -n "$ac_ct_RANLIB"; then 5874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5875else 5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5877for as_dir in $PATH 5878do 5879 IFS=$as_save_IFS 5880 test -z "$as_dir" && as_dir=. 5881 for ac_exec_ext in '' $ac_executable_extensions; do 5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5883 ac_cv_prog_ac_ct_RANLIB="ranlib" 5884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5885 break 2 5886 fi 5887done 5888 done 5889IFS=$as_save_IFS 5890 5891fi 5892fi 5893ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5894if test -n "$ac_ct_RANLIB"; then 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5896$as_echo "$ac_ct_RANLIB" >&6; } 5897else 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5899$as_echo "no" >&6; } 5900fi 5901 5902 if test "x$ac_ct_RANLIB" = x; then 5903 RANLIB=":" 5904 else 5905 case $cross_compiling:$ac_tool_warned in 5906yes:) 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5909ac_tool_warned=yes ;; 5910esac 5911 RANLIB=$ac_ct_RANLIB 5912 fi 5913else 5914 RANLIB="$ac_cv_prog_RANLIB" 5915fi 5916 5917test -z "$RANLIB" && RANLIB=: 5918 5919 5920 5921 5922 5923 5924# Determine commands to create old-style static archives. 5925old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5926old_postinstall_cmds='chmod 644 $oldlib' 5927old_postuninstall_cmds= 5928 5929if test -n "$RANLIB"; then 5930 case $host_os in 5931 openbsd*) 5932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5933 ;; 5934 *) 5935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5936 ;; 5937 esac 5938 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5939fi 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974# If no C compiler was specified, use CC. 5975LTCC=${LTCC-"$CC"} 5976 5977# If no C compiler flags were specified, use CFLAGS. 5978LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5979 5980# Allow CC to be a program name with arguments. 5981compiler=$CC 5982 5983 5984# Check for command to grab the raw symbol name followed by C symbol from nm. 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5986$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5987if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 5991# These are sane defaults that work on at least a few old systems. 5992# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5993 5994# Character class describing NM global symbol codes. 5995symcode='[BCDEGRST]' 5996 5997# Regexp to match symbols that can be accessed directly from C. 5998sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5999 6000# Define system-specific variables. 6001case $host_os in 6002aix*) 6003 symcode='[BCDT]' 6004 ;; 6005cygwin* | mingw* | pw32* | cegcc*) 6006 symcode='[ABCDGISTW]' 6007 ;; 6008hpux*) 6009 if test "$host_cpu" = ia64; then 6010 symcode='[ABCDEGRST]' 6011 fi 6012 ;; 6013irix* | nonstopux*) 6014 symcode='[BCDEGRST]' 6015 ;; 6016osf*) 6017 symcode='[BCDEGQRST]' 6018 ;; 6019solaris*) 6020 symcode='[BDRT]' 6021 ;; 6022sco3.2v5*) 6023 symcode='[DT]' 6024 ;; 6025sysv4.2uw2*) 6026 symcode='[DT]' 6027 ;; 6028sysv5* | sco5v6* | unixware* | OpenUNIX*) 6029 symcode='[ABDT]' 6030 ;; 6031sysv4) 6032 symcode='[DFNSTU]' 6033 ;; 6034esac 6035 6036# If we're using GNU nm, then use its standard symbol codes. 6037case `$NM -V 2>&1` in 6038*GNU* | *'with BFD'*) 6039 symcode='[ABCDGIRSTW]' ;; 6040esac 6041 6042# Transform an extracted symbol line into a proper C declaration. 6043# Some systems (esp. on ia64) link data and code symbols differently, 6044# so use this general approach. 6045lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6046 6047# Transform an extracted symbol line into symbol name and symbol address 6048lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6049lt_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'" 6050 6051# Handle CRLF in mingw tool chain 6052opt_cr= 6053case $build_os in 6054mingw*) 6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6056 ;; 6057esac 6058 6059# Try without a prefix underscore, then with it. 6060for ac_symprfx in "" "_"; do 6061 6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6063 symxfrm="\\1 $ac_symprfx\\2 \\2" 6064 6065 # Write the raw and C identifiers. 6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6067 # Fake it for dumpbin and say T for any non-static function 6068 # and D for any global variable. 6069 # Also find C++ and __fastcall symbols from MSVC++, 6070 # which start with @ or ?. 6071 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6072" {last_section=section; section=\$ 3};"\ 6073" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6074" \$ 0!~/External *\|/{next};"\ 6075" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6076" {if(hide[section]) next};"\ 6077" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6078" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6079" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6080" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6081" ' prfx=^$ac_symprfx" 6082 else 6083 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6084 fi 6085 6086 # Check to see that the pipe works correctly. 6087 pipe_works=no 6088 6089 rm -f conftest* 6090 cat > conftest.$ac_ext <<_LT_EOF 6091#ifdef __cplusplus 6092extern "C" { 6093#endif 6094char nm_test_var; 6095void nm_test_func(void); 6096void nm_test_func(void){} 6097#ifdef __cplusplus 6098} 6099#endif 6100int main(){nm_test_var='a';nm_test_func();return(0);} 6101_LT_EOF 6102 6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6104 (eval $ac_compile) 2>&5 6105 ac_status=$? 6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6107 test $ac_status = 0; }; then 6108 # Now try to grab the symbols. 6109 nlist=conftest.nm 6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6111 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6112 ac_status=$? 6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6114 test $ac_status = 0; } && test -s "$nlist"; then 6115 # Try sorting and uniquifying the output. 6116 if sort "$nlist" | uniq > "$nlist"T; then 6117 mv -f "$nlist"T "$nlist" 6118 else 6119 rm -f "$nlist"T 6120 fi 6121 6122 # Make sure that we snagged all the symbols we need. 6123 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6124 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6125 cat <<_LT_EOF > conftest.$ac_ext 6126#ifdef __cplusplus 6127extern "C" { 6128#endif 6129 6130_LT_EOF 6131 # Now generate the symbol file. 6132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6133 6134 cat <<_LT_EOF >> conftest.$ac_ext 6135 6136/* The mapping between symbol names and symbols. */ 6137const struct { 6138 const char *name; 6139 void *address; 6140} 6141lt__PROGRAM__LTX_preloaded_symbols[] = 6142{ 6143 { "@PROGRAM@", (void *) 0 }, 6144_LT_EOF 6145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6146 cat <<\_LT_EOF >> conftest.$ac_ext 6147 {0, (void *) 0} 6148}; 6149 6150/* This works around a problem in FreeBSD linker */ 6151#ifdef FREEBSD_WORKAROUND 6152static const void *lt_preloaded_setup() { 6153 return lt__PROGRAM__LTX_preloaded_symbols; 6154} 6155#endif 6156 6157#ifdef __cplusplus 6158} 6159#endif 6160_LT_EOF 6161 # Now try linking the two files. 6162 mv conftest.$ac_objext conftstm.$ac_objext 6163 lt_save_LIBS="$LIBS" 6164 lt_save_CFLAGS="$CFLAGS" 6165 LIBS="conftstm.$ac_objext" 6166 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6168 (eval $ac_link) 2>&5 6169 ac_status=$? 6170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6171 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6172 pipe_works=yes 6173 fi 6174 LIBS="$lt_save_LIBS" 6175 CFLAGS="$lt_save_CFLAGS" 6176 else 6177 echo "cannot find nm_test_func in $nlist" >&5 6178 fi 6179 else 6180 echo "cannot find nm_test_var in $nlist" >&5 6181 fi 6182 else 6183 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6184 fi 6185 else 6186 echo "$progname: failed program was:" >&5 6187 cat conftest.$ac_ext >&5 6188 fi 6189 rm -rf conftest* conftst* 6190 6191 # Do not use the global_symbol_pipe unless it works. 6192 if test "$pipe_works" = yes; then 6193 break 6194 else 6195 lt_cv_sys_global_symbol_pipe= 6196 fi 6197done 6198 6199fi 6200 6201if test -z "$lt_cv_sys_global_symbol_pipe"; then 6202 lt_cv_sys_global_symbol_to_cdecl= 6203fi 6204if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6206$as_echo "failed" >&6; } 6207else 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6209$as_echo "ok" >&6; } 6210fi 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234# Check whether --enable-libtool-lock was given. 6235if test "${enable_libtool_lock+set}" = set; then : 6236 enableval=$enable_libtool_lock; 6237fi 6238 6239test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6240 6241# Some flags need to be propagated to the compiler or linker for good 6242# libtool support. 6243case $host in 6244ia64-*-hpux*) 6245 # Find out which ABI we are using. 6246 echo 'int i;' > conftest.$ac_ext 6247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6248 (eval $ac_compile) 2>&5 6249 ac_status=$? 6250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6251 test $ac_status = 0; }; then 6252 case `/usr/bin/file conftest.$ac_objext` in 6253 *ELF-32*) 6254 HPUX_IA64_MODE="32" 6255 ;; 6256 *ELF-64*) 6257 HPUX_IA64_MODE="64" 6258 ;; 6259 esac 6260 fi 6261 rm -rf conftest* 6262 ;; 6263*-*-irix6*) 6264 # Find out which ABI we are using. 6265 echo '#line 6265 "configure"' > conftest.$ac_ext 6266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6267 (eval $ac_compile) 2>&5 6268 ac_status=$? 6269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6270 test $ac_status = 0; }; then 6271 if test "$lt_cv_prog_gnu_ld" = yes; then 6272 case `/usr/bin/file conftest.$ac_objext` in 6273 *32-bit*) 6274 LD="${LD-ld} -melf32bsmip" 6275 ;; 6276 *N32*) 6277 LD="${LD-ld} -melf32bmipn32" 6278 ;; 6279 *64-bit*) 6280 LD="${LD-ld} -melf64bmip" 6281 ;; 6282 esac 6283 else 6284 case `/usr/bin/file conftest.$ac_objext` in 6285 *32-bit*) 6286 LD="${LD-ld} -32" 6287 ;; 6288 *N32*) 6289 LD="${LD-ld} -n32" 6290 ;; 6291 *64-bit*) 6292 LD="${LD-ld} -64" 6293 ;; 6294 esac 6295 fi 6296 fi 6297 rm -rf conftest* 6298 ;; 6299 6300x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6301s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6302 # Find out which ABI we are using. 6303 echo 'int i;' > conftest.$ac_ext 6304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6305 (eval $ac_compile) 2>&5 6306 ac_status=$? 6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6308 test $ac_status = 0; }; then 6309 case `/usr/bin/file conftest.o` in 6310 *32-bit*) 6311 case $host in 6312 x86_64-*kfreebsd*-gnu) 6313 LD="${LD-ld} -m elf_i386_fbsd" 6314 ;; 6315 x86_64-*linux*) 6316 LD="${LD-ld} -m elf_i386" 6317 ;; 6318 ppc64-*linux*|powerpc64-*linux*) 6319 LD="${LD-ld} -m elf32ppclinux" 6320 ;; 6321 s390x-*linux*) 6322 LD="${LD-ld} -m elf_s390" 6323 ;; 6324 sparc64-*linux*) 6325 LD="${LD-ld} -m elf32_sparc" 6326 ;; 6327 esac 6328 ;; 6329 *64-bit*) 6330 case $host in 6331 x86_64-*kfreebsd*-gnu) 6332 LD="${LD-ld} -m elf_x86_64_fbsd" 6333 ;; 6334 x86_64-*linux*) 6335 LD="${LD-ld} -m elf_x86_64" 6336 ;; 6337 ppc*-*linux*|powerpc*-*linux*) 6338 LD="${LD-ld} -m elf64ppc" 6339 ;; 6340 s390*-*linux*|s390*-*tpf*) 6341 LD="${LD-ld} -m elf64_s390" 6342 ;; 6343 sparc*-*linux*) 6344 LD="${LD-ld} -m elf64_sparc" 6345 ;; 6346 esac 6347 ;; 6348 esac 6349 fi 6350 rm -rf conftest* 6351 ;; 6352 6353*-*-sco3.2v5*) 6354 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6355 SAVE_CFLAGS="$CFLAGS" 6356 CFLAGS="$CFLAGS -belf" 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6358$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6359if test "${lt_cv_cc_needs_belf+set}" = set; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 ac_ext=c 6363ac_cpp='$CPP $CPPFLAGS' 6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6366ac_compiler_gnu=$ac_cv_c_compiler_gnu 6367 6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6369/* end confdefs.h. */ 6370 6371int 6372main () 6373{ 6374 6375 ; 6376 return 0; 6377} 6378_ACEOF 6379if ac_fn_c_try_link "$LINENO"; then : 6380 lt_cv_cc_needs_belf=yes 6381else 6382 lt_cv_cc_needs_belf=no 6383fi 6384rm -f core conftest.err conftest.$ac_objext \ 6385 conftest$ac_exeext conftest.$ac_ext 6386 ac_ext=c 6387ac_cpp='$CPP $CPPFLAGS' 6388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6390ac_compiler_gnu=$ac_cv_c_compiler_gnu 6391 6392fi 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6394$as_echo "$lt_cv_cc_needs_belf" >&6; } 6395 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6396 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6397 CFLAGS="$SAVE_CFLAGS" 6398 fi 6399 ;; 6400sparc*-*solaris*) 6401 # Find out which ABI we are using. 6402 echo 'int i;' > conftest.$ac_ext 6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6404 (eval $ac_compile) 2>&5 6405 ac_status=$? 6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6407 test $ac_status = 0; }; then 6408 case `/usr/bin/file conftest.o` in 6409 *64-bit*) 6410 case $lt_cv_prog_gnu_ld in 6411 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6412 *) 6413 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6414 LD="${LD-ld} -64" 6415 fi 6416 ;; 6417 esac 6418 ;; 6419 esac 6420 fi 6421 rm -rf conftest* 6422 ;; 6423esac 6424 6425need_locks="$enable_libtool_lock" 6426 6427 6428 case $host_os in 6429 rhapsody* | darwin*) 6430 if test -n "$ac_tool_prefix"; then 6431 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6432set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6434$as_echo_n "checking for $ac_word... " >&6; } 6435if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 if test -n "$DSYMUTIL"; then 6439 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6440else 6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6442for as_dir in $PATH 6443do 6444 IFS=$as_save_IFS 6445 test -z "$as_dir" && as_dir=. 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6448 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6450 break 2 6451 fi 6452done 6453 done 6454IFS=$as_save_IFS 6455 6456fi 6457fi 6458DSYMUTIL=$ac_cv_prog_DSYMUTIL 6459if test -n "$DSYMUTIL"; then 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6461$as_echo "$DSYMUTIL" >&6; } 6462else 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6464$as_echo "no" >&6; } 6465fi 6466 6467 6468fi 6469if test -z "$ac_cv_prog_DSYMUTIL"; then 6470 ac_ct_DSYMUTIL=$DSYMUTIL 6471 # Extract the first word of "dsymutil", so it can be a program name with args. 6472set dummy dsymutil; ac_word=$2 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6474$as_echo_n "checking for $ac_word... " >&6; } 6475if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 if test -n "$ac_ct_DSYMUTIL"; then 6479 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6488 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493 done 6494IFS=$as_save_IFS 6495 6496fi 6497fi 6498ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6499if test -n "$ac_ct_DSYMUTIL"; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6501$as_echo "$ac_ct_DSYMUTIL" >&6; } 6502else 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6504$as_echo "no" >&6; } 6505fi 6506 6507 if test "x$ac_ct_DSYMUTIL" = x; then 6508 DSYMUTIL=":" 6509 else 6510 case $cross_compiling:$ac_tool_warned in 6511yes:) 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6514ac_tool_warned=yes ;; 6515esac 6516 DSYMUTIL=$ac_ct_DSYMUTIL 6517 fi 6518else 6519 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6520fi 6521 6522 if test -n "$ac_tool_prefix"; then 6523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6524set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6526$as_echo_n "checking for $ac_word... " >&6; } 6527if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6528 $as_echo_n "(cached) " >&6 6529else 6530 if test -n "$NMEDIT"; then 6531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6532else 6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6534for as_dir in $PATH 6535do 6536 IFS=$as_save_IFS 6537 test -z "$as_dir" && as_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6542 break 2 6543 fi 6544done 6545 done 6546IFS=$as_save_IFS 6547 6548fi 6549fi 6550NMEDIT=$ac_cv_prog_NMEDIT 6551if test -n "$NMEDIT"; then 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6553$as_echo "$NMEDIT" >&6; } 6554else 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6556$as_echo "no" >&6; } 6557fi 6558 6559 6560fi 6561if test -z "$ac_cv_prog_NMEDIT"; then 6562 ac_ct_NMEDIT=$NMEDIT 6563 # Extract the first word of "nmedit", so it can be a program name with args. 6564set dummy nmedit; ac_word=$2 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6566$as_echo_n "checking for $ac_word... " >&6; } 6567if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 if test -n "$ac_ct_NMEDIT"; then 6571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6572else 6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574for as_dir in $PATH 6575do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584done 6585 done 6586IFS=$as_save_IFS 6587 6588fi 6589fi 6590ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6591if test -n "$ac_ct_NMEDIT"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6593$as_echo "$ac_ct_NMEDIT" >&6; } 6594else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596$as_echo "no" >&6; } 6597fi 6598 6599 if test "x$ac_ct_NMEDIT" = x; then 6600 NMEDIT=":" 6601 else 6602 case $cross_compiling:$ac_tool_warned in 6603yes:) 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6606ac_tool_warned=yes ;; 6607esac 6608 NMEDIT=$ac_ct_NMEDIT 6609 fi 6610else 6611 NMEDIT="$ac_cv_prog_NMEDIT" 6612fi 6613 6614 if test -n "$ac_tool_prefix"; then 6615 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6616set dummy ${ac_tool_prefix}lipo; ac_word=$2 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6618$as_echo_n "checking for $ac_word... " >&6; } 6619if test "${ac_cv_prog_LIPO+set}" = set; then : 6620 $as_echo_n "(cached) " >&6 6621else 6622 if test -n "$LIPO"; then 6623 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6624else 6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6626for as_dir in $PATH 6627do 6628 IFS=$as_save_IFS 6629 test -z "$as_dir" && as_dir=. 6630 for ac_exec_ext in '' $ac_executable_extensions; do 6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6632 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6634 break 2 6635 fi 6636done 6637 done 6638IFS=$as_save_IFS 6639 6640fi 6641fi 6642LIPO=$ac_cv_prog_LIPO 6643if test -n "$LIPO"; then 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6645$as_echo "$LIPO" >&6; } 6646else 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6648$as_echo "no" >&6; } 6649fi 6650 6651 6652fi 6653if test -z "$ac_cv_prog_LIPO"; then 6654 ac_ct_LIPO=$LIPO 6655 # Extract the first word of "lipo", so it can be a program name with args. 6656set dummy lipo; ac_word=$2 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6658$as_echo_n "checking for $ac_word... " >&6; } 6659if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 if test -n "$ac_ct_LIPO"; then 6663 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6664else 6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6666for as_dir in $PATH 6667do 6668 IFS=$as_save_IFS 6669 test -z "$as_dir" && as_dir=. 6670 for ac_exec_ext in '' $ac_executable_extensions; do 6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6672 ac_cv_prog_ac_ct_LIPO="lipo" 6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6674 break 2 6675 fi 6676done 6677 done 6678IFS=$as_save_IFS 6679 6680fi 6681fi 6682ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6683if test -n "$ac_ct_LIPO"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6685$as_echo "$ac_ct_LIPO" >&6; } 6686else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688$as_echo "no" >&6; } 6689fi 6690 6691 if test "x$ac_ct_LIPO" = x; then 6692 LIPO=":" 6693 else 6694 case $cross_compiling:$ac_tool_warned in 6695yes:) 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6698ac_tool_warned=yes ;; 6699esac 6700 LIPO=$ac_ct_LIPO 6701 fi 6702else 6703 LIPO="$ac_cv_prog_LIPO" 6704fi 6705 6706 if test -n "$ac_tool_prefix"; then 6707 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6708set dummy ${ac_tool_prefix}otool; ac_word=$2 6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6710$as_echo_n "checking for $ac_word... " >&6; } 6711if test "${ac_cv_prog_OTOOL+set}" = set; then : 6712 $as_echo_n "(cached) " >&6 6713else 6714 if test -n "$OTOOL"; then 6715 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6716else 6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6718for as_dir in $PATH 6719do 6720 IFS=$as_save_IFS 6721 test -z "$as_dir" && as_dir=. 6722 for ac_exec_ext in '' $ac_executable_extensions; do 6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6724 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6726 break 2 6727 fi 6728done 6729 done 6730IFS=$as_save_IFS 6731 6732fi 6733fi 6734OTOOL=$ac_cv_prog_OTOOL 6735if test -n "$OTOOL"; then 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6737$as_echo "$OTOOL" >&6; } 6738else 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6740$as_echo "no" >&6; } 6741fi 6742 6743 6744fi 6745if test -z "$ac_cv_prog_OTOOL"; then 6746 ac_ct_OTOOL=$OTOOL 6747 # Extract the first word of "otool", so it can be a program name with args. 6748set dummy otool; ac_word=$2 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6750$as_echo_n "checking for $ac_word... " >&6; } 6751if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6752 $as_echo_n "(cached) " >&6 6753else 6754 if test -n "$ac_ct_OTOOL"; then 6755 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6756else 6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6758for as_dir in $PATH 6759do 6760 IFS=$as_save_IFS 6761 test -z "$as_dir" && as_dir=. 6762 for ac_exec_ext in '' $ac_executable_extensions; do 6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6764 ac_cv_prog_ac_ct_OTOOL="otool" 6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6766 break 2 6767 fi 6768done 6769 done 6770IFS=$as_save_IFS 6771 6772fi 6773fi 6774ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6775if test -n "$ac_ct_OTOOL"; then 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6777$as_echo "$ac_ct_OTOOL" >&6; } 6778else 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6780$as_echo "no" >&6; } 6781fi 6782 6783 if test "x$ac_ct_OTOOL" = x; then 6784 OTOOL=":" 6785 else 6786 case $cross_compiling:$ac_tool_warned in 6787yes:) 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6790ac_tool_warned=yes ;; 6791esac 6792 OTOOL=$ac_ct_OTOOL 6793 fi 6794else 6795 OTOOL="$ac_cv_prog_OTOOL" 6796fi 6797 6798 if test -n "$ac_tool_prefix"; then 6799 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6800set dummy ${ac_tool_prefix}otool64; ac_word=$2 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6802$as_echo_n "checking for $ac_word... " >&6; } 6803if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 if test -n "$OTOOL64"; then 6807 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6808else 6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6810for as_dir in $PATH 6811do 6812 IFS=$as_save_IFS 6813 test -z "$as_dir" && as_dir=. 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6816 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821 done 6822IFS=$as_save_IFS 6823 6824fi 6825fi 6826OTOOL64=$ac_cv_prog_OTOOL64 6827if test -n "$OTOOL64"; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6829$as_echo "$OTOOL64" >&6; } 6830else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832$as_echo "no" >&6; } 6833fi 6834 6835 6836fi 6837if test -z "$ac_cv_prog_OTOOL64"; then 6838 ac_ct_OTOOL64=$OTOOL64 6839 # Extract the first word of "otool64", so it can be a program name with args. 6840set dummy otool64; ac_word=$2 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6842$as_echo_n "checking for $ac_word... " >&6; } 6843if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 if test -n "$ac_ct_OTOOL64"; then 6847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6848else 6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6850for as_dir in $PATH 6851do 6852 IFS=$as_save_IFS 6853 test -z "$as_dir" && as_dir=. 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6856 ac_cv_prog_ac_ct_OTOOL64="otool64" 6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6858 break 2 6859 fi 6860done 6861 done 6862IFS=$as_save_IFS 6863 6864fi 6865fi 6866ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6867if test -n "$ac_ct_OTOOL64"; then 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6869$as_echo "$ac_ct_OTOOL64" >&6; } 6870else 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6872$as_echo "no" >&6; } 6873fi 6874 6875 if test "x$ac_ct_OTOOL64" = x; then 6876 OTOOL64=":" 6877 else 6878 case $cross_compiling:$ac_tool_warned in 6879yes:) 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6882ac_tool_warned=yes ;; 6883esac 6884 OTOOL64=$ac_ct_OTOOL64 6885 fi 6886else 6887 OTOOL64="$ac_cv_prog_OTOOL64" 6888fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6917$as_echo_n "checking for -single_module linker flag... " >&6; } 6918if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6919 $as_echo_n "(cached) " >&6 6920else 6921 lt_cv_apple_cc_single_mod=no 6922 if test -z "${LT_MULTI_MODULE}"; then 6923 # By default we will add the -single_module flag. You can override 6924 # by either setting the environment variable LT_MULTI_MODULE 6925 # non-empty at configure time, or by adding -multi_module to the 6926 # link flags. 6927 rm -rf libconftest.dylib* 6928 echo "int foo(void){return 1;}" > conftest.c 6929 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6930-dynamiclib -Wl,-single_module conftest.c" >&5 6931 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6932 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6933 _lt_result=$? 6934 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6935 lt_cv_apple_cc_single_mod=yes 6936 else 6937 cat conftest.err >&5 6938 fi 6939 rm -rf libconftest.dylib* 6940 rm -f conftest.* 6941 fi 6942fi 6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6944$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6946$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6947if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 lt_cv_ld_exported_symbols_list=no 6951 save_LDFLAGS=$LDFLAGS 6952 echo "_main" > conftest.sym 6953 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955/* end confdefs.h. */ 6956 6957int 6958main () 6959{ 6960 6961 ; 6962 return 0; 6963} 6964_ACEOF 6965if ac_fn_c_try_link "$LINENO"; then : 6966 lt_cv_ld_exported_symbols_list=yes 6967else 6968 lt_cv_ld_exported_symbols_list=no 6969fi 6970rm -f core conftest.err conftest.$ac_objext \ 6971 conftest$ac_exeext conftest.$ac_ext 6972 LDFLAGS="$save_LDFLAGS" 6973 6974fi 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6976$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6977 case $host_os in 6978 rhapsody* | darwin1.[012]) 6979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6980 darwin1.*) 6981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6982 darwin*) # darwin 5.x on 6983 # if running on 10.5 or later, the deployment target defaults 6984 # to the OS version, if on x86, and 10.4, the deployment 6985 # target defaults to 10.4. Don't you love it? 6986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6987 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6989 10.[012]*) 6990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6991 10.*) 6992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6993 esac 6994 ;; 6995 esac 6996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6997 _lt_dar_single_mod='$single_module' 6998 fi 6999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7001 else 7002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7003 fi 7004 if test "$DSYMUTIL" != ":"; then 7005 _lt_dsymutil='~$DSYMUTIL $lib || :' 7006 else 7007 _lt_dsymutil= 7008 fi 7009 ;; 7010 esac 7011 7012ac_ext=c 7013ac_cpp='$CPP $CPPFLAGS' 7014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7016ac_compiler_gnu=$ac_cv_c_compiler_gnu 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7018$as_echo_n "checking how to run the C preprocessor... " >&6; } 7019# On Suns, sometimes $CPP names a directory. 7020if test -n "$CPP" && test -d "$CPP"; then 7021 CPP= 7022fi 7023if test -z "$CPP"; then 7024 if test "${ac_cv_prog_CPP+set}" = set; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 # Double quotes because CPP needs to be expanded 7028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7029 do 7030 ac_preproc_ok=false 7031for ac_c_preproc_warn_flag in '' yes 7032do 7033 # Use a header file that comes with gcc, so configuring glibc 7034 # with a fresh cross-compiler works. 7035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7036 # <limits.h> exists even on freestanding compilers. 7037 # On the NeXT, cc -E runs the code through the compiler's parser, 7038 # not just through cpp. "Syntax error" is here to catch this case. 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041#ifdef __STDC__ 7042# include <limits.h> 7043#else 7044# include <assert.h> 7045#endif 7046 Syntax error 7047_ACEOF 7048if ac_fn_c_try_cpp "$LINENO"; then : 7049 7050else 7051 # Broken: fails on valid input. 7052continue 7053fi 7054rm -f conftest.err conftest.$ac_ext 7055 7056 # OK, works on sane cases. Now check whether nonexistent headers 7057 # can be detected and how. 7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059/* end confdefs.h. */ 7060#include <ac_nonexistent.h> 7061_ACEOF 7062if ac_fn_c_try_cpp "$LINENO"; then : 7063 # Broken: success on invalid input. 7064continue 7065else 7066 # Passes both tests. 7067ac_preproc_ok=: 7068break 7069fi 7070rm -f conftest.err conftest.$ac_ext 7071 7072done 7073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7074rm -f conftest.err conftest.$ac_ext 7075if $ac_preproc_ok; then : 7076 break 7077fi 7078 7079 done 7080 ac_cv_prog_CPP=$CPP 7081 7082fi 7083 CPP=$ac_cv_prog_CPP 7084else 7085 ac_cv_prog_CPP=$CPP 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7088$as_echo "$CPP" >&6; } 7089ac_preproc_ok=false 7090for ac_c_preproc_warn_flag in '' yes 7091do 7092 # Use a header file that comes with gcc, so configuring glibc 7093 # with a fresh cross-compiler works. 7094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7095 # <limits.h> exists even on freestanding compilers. 7096 # On the NeXT, cc -E runs the code through the compiler's parser, 7097 # not just through cpp. "Syntax error" is here to catch this case. 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100#ifdef __STDC__ 7101# include <limits.h> 7102#else 7103# include <assert.h> 7104#endif 7105 Syntax error 7106_ACEOF 7107if ac_fn_c_try_cpp "$LINENO"; then : 7108 7109else 7110 # Broken: fails on valid input. 7111continue 7112fi 7113rm -f conftest.err conftest.$ac_ext 7114 7115 # OK, works on sane cases. Now check whether nonexistent headers 7116 # can be detected and how. 7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119#include <ac_nonexistent.h> 7120_ACEOF 7121if ac_fn_c_try_cpp "$LINENO"; then : 7122 # Broken: success on invalid input. 7123continue 7124else 7125 # Passes both tests. 7126ac_preproc_ok=: 7127break 7128fi 7129rm -f conftest.err conftest.$ac_ext 7130 7131done 7132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7133rm -f conftest.err conftest.$ac_ext 7134if $ac_preproc_ok; then : 7135 7136else 7137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7139as_fn_error "C preprocessor \"$CPP\" fails sanity check 7140See \`config.log' for more details." "$LINENO" 5; } 7141fi 7142 7143ac_ext=c 7144ac_cpp='$CPP $CPPFLAGS' 7145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7147ac_compiler_gnu=$ac_cv_c_compiler_gnu 7148 7149 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7151$as_echo_n "checking for ANSI C header files... " >&6; } 7152if test "${ac_cv_header_stdc+set}" = set; then : 7153 $as_echo_n "(cached) " >&6 7154else 7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7156/* end confdefs.h. */ 7157#include <stdlib.h> 7158#include <stdarg.h> 7159#include <string.h> 7160#include <float.h> 7161 7162int 7163main () 7164{ 7165 7166 ; 7167 return 0; 7168} 7169_ACEOF 7170if ac_fn_c_try_compile "$LINENO"; then : 7171 ac_cv_header_stdc=yes 7172else 7173 ac_cv_header_stdc=no 7174fi 7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7176 7177if test $ac_cv_header_stdc = yes; then 7178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181#include <string.h> 7182 7183_ACEOF 7184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7185 $EGREP "memchr" >/dev/null 2>&1; then : 7186 7187else 7188 ac_cv_header_stdc=no 7189fi 7190rm -f conftest* 7191 7192fi 7193 7194if test $ac_cv_header_stdc = yes; then 7195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198#include <stdlib.h> 7199 7200_ACEOF 7201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7202 $EGREP "free" >/dev/null 2>&1; then : 7203 7204else 7205 ac_cv_header_stdc=no 7206fi 7207rm -f conftest* 7208 7209fi 7210 7211if test $ac_cv_header_stdc = yes; then 7212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7213 if test "$cross_compiling" = yes; then : 7214 : 7215else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218#include <ctype.h> 7219#include <stdlib.h> 7220#if ((' ' & 0x0FF) == 0x020) 7221# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7222# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7223#else 7224# define ISLOWER(c) \ 7225 (('a' <= (c) && (c) <= 'i') \ 7226 || ('j' <= (c) && (c) <= 'r') \ 7227 || ('s' <= (c) && (c) <= 'z')) 7228# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7229#endif 7230 7231#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7232int 7233main () 7234{ 7235 int i; 7236 for (i = 0; i < 256; i++) 7237 if (XOR (islower (i), ISLOWER (i)) 7238 || toupper (i) != TOUPPER (i)) 7239 return 2; 7240 return 0; 7241} 7242_ACEOF 7243if ac_fn_c_try_run "$LINENO"; then : 7244 7245else 7246 ac_cv_header_stdc=no 7247fi 7248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7249 conftest.$ac_objext conftest.beam conftest.$ac_ext 7250fi 7251 7252fi 7253fi 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7255$as_echo "$ac_cv_header_stdc" >&6; } 7256if test $ac_cv_header_stdc = yes; then 7257 7258$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7259 7260fi 7261 7262# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7263for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7264 inttypes.h stdint.h unistd.h 7265do : 7266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7267ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7268" 7269eval as_val=\$$as_ac_Header 7270 if test "x$as_val" = x""yes; then : 7271 cat >>confdefs.h <<_ACEOF 7272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7273_ACEOF 7274 7275fi 7276 7277done 7278 7279 7280for ac_header in dlfcn.h 7281do : 7282 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7283" 7284if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7285 cat >>confdefs.h <<_ACEOF 7286#define HAVE_DLFCN_H 1 7287_ACEOF 7288 7289fi 7290 7291done 7292 7293 7294 7295# Set options 7296 7297 7298 7299 enable_dlopen=no 7300 7301 7302 enable_win32_dll=no 7303 7304 7305 # Check whether --enable-shared was given. 7306if test "${enable_shared+set}" = set; then : 7307 enableval=$enable_shared; p=${PACKAGE-default} 7308 case $enableval in 7309 yes) enable_shared=yes ;; 7310 no) enable_shared=no ;; 7311 *) 7312 enable_shared=no 7313 # Look at the argument we got. We use all the common list separators. 7314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7315 for pkg in $enableval; do 7316 IFS="$lt_save_ifs" 7317 if test "X$pkg" = "X$p"; then 7318 enable_shared=yes 7319 fi 7320 done 7321 IFS="$lt_save_ifs" 7322 ;; 7323 esac 7324else 7325 enable_shared=yes 7326fi 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 # Check whether --enable-static was given. 7337if test "${enable_static+set}" = set; then : 7338 enableval=$enable_static; p=${PACKAGE-default} 7339 case $enableval in 7340 yes) enable_static=yes ;; 7341 no) enable_static=no ;; 7342 *) 7343 enable_static=no 7344 # Look at the argument we got. We use all the common list separators. 7345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7346 for pkg in $enableval; do 7347 IFS="$lt_save_ifs" 7348 if test "X$pkg" = "X$p"; then 7349 enable_static=yes 7350 fi 7351 done 7352 IFS="$lt_save_ifs" 7353 ;; 7354 esac 7355else 7356 enable_static=yes 7357fi 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368# Check whether --with-pic was given. 7369if test "${with_pic+set}" = set; then : 7370 withval=$with_pic; pic_mode="$withval" 7371else 7372 pic_mode=default 7373fi 7374 7375 7376test -z "$pic_mode" && pic_mode=default 7377 7378 7379 7380 7381 7382 7383 7384 # Check whether --enable-fast-install was given. 7385if test "${enable_fast_install+set}" = set; then : 7386 enableval=$enable_fast_install; p=${PACKAGE-default} 7387 case $enableval in 7388 yes) enable_fast_install=yes ;; 7389 no) enable_fast_install=no ;; 7390 *) 7391 enable_fast_install=no 7392 # Look at the argument we got. We use all the common list separators. 7393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7394 for pkg in $enableval; do 7395 IFS="$lt_save_ifs" 7396 if test "X$pkg" = "X$p"; then 7397 enable_fast_install=yes 7398 fi 7399 done 7400 IFS="$lt_save_ifs" 7401 ;; 7402 esac 7403else 7404 enable_fast_install=yes 7405fi 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417# This can be used to rebuild libtool when needed 7418LIBTOOL_DEPS="$ltmain" 7419 7420# Always use our own libtool. 7421LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447test -z "$LN_S" && LN_S="ln -s" 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462if test -n "${ZSH_VERSION+set}" ; then 7463 setopt NO_GLOB_SUBST 7464fi 7465 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7467$as_echo_n "checking for objdir... " >&6; } 7468if test "${lt_cv_objdir+set}" = set; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 rm -f .libs 2>/dev/null 7472mkdir .libs 2>/dev/null 7473if test -d .libs; then 7474 lt_cv_objdir=.libs 7475else 7476 # MS-DOS does not allow filenames that begin with a dot. 7477 lt_cv_objdir=_libs 7478fi 7479rmdir .libs 2>/dev/null 7480fi 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7482$as_echo "$lt_cv_objdir" >&6; } 7483objdir=$lt_cv_objdir 7484 7485 7486 7487 7488 7489cat >>confdefs.h <<_ACEOF 7490#define LT_OBJDIR "$lt_cv_objdir/" 7491_ACEOF 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509case $host_os in 7510aix3*) 7511 # AIX sometimes has problems with the GCC collect2 program. For some 7512 # reason, if we set the COLLECT_NAMES environment variable, the problems 7513 # vanish in a puff of smoke. 7514 if test "X${COLLECT_NAMES+set}" != Xset; then 7515 COLLECT_NAMES= 7516 export COLLECT_NAMES 7517 fi 7518 ;; 7519esac 7520 7521# Sed substitution that helps us do robust quoting. It backslashifies 7522# metacharacters that are still active within double-quoted strings. 7523sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7524 7525# Same as above, but do not quote variable references. 7526double_quote_subst='s/\(["`\\]\)/\\\1/g' 7527 7528# Sed substitution to delay expansion of an escaped shell variable in a 7529# double_quote_subst'ed string. 7530delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7531 7532# Sed substitution to delay expansion of an escaped single quote. 7533delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7534 7535# Sed substitution to avoid accidental globbing in evaled expressions 7536no_glob_subst='s/\*/\\\*/g' 7537 7538# Global variables: 7539ofile=libtool 7540can_build_shared=yes 7541 7542# All known linkers require a `.a' archive for static linking (except MSVC, 7543# which needs '.lib'). 7544libext=a 7545 7546with_gnu_ld="$lt_cv_prog_gnu_ld" 7547 7548old_CC="$CC" 7549old_CFLAGS="$CFLAGS" 7550 7551# Set sane defaults for various variables 7552test -z "$CC" && CC=cc 7553test -z "$LTCC" && LTCC=$CC 7554test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7555test -z "$LD" && LD=ld 7556test -z "$ac_objext" && ac_objext=o 7557 7558for cc_temp in $compiler""; do 7559 case $cc_temp in 7560 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7561 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7562 \-*) ;; 7563 *) break;; 7564 esac 7565done 7566cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7567 7568 7569# Only perform the check for file, if the check method requires it 7570test -z "$MAGIC_CMD" && MAGIC_CMD=file 7571case $deplibs_check_method in 7572file_magic*) 7573 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7575$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7576if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7577 $as_echo_n "(cached) " >&6 7578else 7579 case $MAGIC_CMD in 7580[\\/*] | ?:[\\/]*) 7581 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7582 ;; 7583*) 7584 lt_save_MAGIC_CMD="$MAGIC_CMD" 7585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7586 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7587 for ac_dir in $ac_dummy; do 7588 IFS="$lt_save_ifs" 7589 test -z "$ac_dir" && ac_dir=. 7590 if test -f $ac_dir/${ac_tool_prefix}file; then 7591 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7592 if test -n "$file_magic_test_file"; then 7593 case $deplibs_check_method in 7594 "file_magic "*) 7595 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7597 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7598 $EGREP "$file_magic_regex" > /dev/null; then 7599 : 7600 else 7601 cat <<_LT_EOF 1>&2 7602 7603*** Warning: the command libtool uses to detect shared libraries, 7604*** $file_magic_cmd, produces output that libtool cannot recognize. 7605*** The result is that libtool may fail to recognize shared libraries 7606*** as such. This will affect the creation of libtool libraries that 7607*** depend on shared libraries, but programs linked with such libtool 7608*** libraries will work regardless of this problem. Nevertheless, you 7609*** may want to report the problem to your system manager and/or to 7610*** bug-libtool@gnu.org 7611 7612_LT_EOF 7613 fi ;; 7614 esac 7615 fi 7616 break 7617 fi 7618 done 7619 IFS="$lt_save_ifs" 7620 MAGIC_CMD="$lt_save_MAGIC_CMD" 7621 ;; 7622esac 7623fi 7624 7625MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7626if test -n "$MAGIC_CMD"; then 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7628$as_echo "$MAGIC_CMD" >&6; } 7629else 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7631$as_echo "no" >&6; } 7632fi 7633 7634 7635 7636 7637 7638if test -z "$lt_cv_path_MAGIC_CMD"; then 7639 if test -n "$ac_tool_prefix"; then 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7641$as_echo_n "checking for file... " >&6; } 7642if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7643 $as_echo_n "(cached) " >&6 7644else 7645 case $MAGIC_CMD in 7646[\\/*] | ?:[\\/]*) 7647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7648 ;; 7649*) 7650 lt_save_MAGIC_CMD="$MAGIC_CMD" 7651 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7653 for ac_dir in $ac_dummy; do 7654 IFS="$lt_save_ifs" 7655 test -z "$ac_dir" && ac_dir=. 7656 if test -f $ac_dir/file; then 7657 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7658 if test -n "$file_magic_test_file"; then 7659 case $deplibs_check_method in 7660 "file_magic "*) 7661 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7664 $EGREP "$file_magic_regex" > /dev/null; then 7665 : 7666 else 7667 cat <<_LT_EOF 1>&2 7668 7669*** Warning: the command libtool uses to detect shared libraries, 7670*** $file_magic_cmd, produces output that libtool cannot recognize. 7671*** The result is that libtool may fail to recognize shared libraries 7672*** as such. This will affect the creation of libtool libraries that 7673*** depend on shared libraries, but programs linked with such libtool 7674*** libraries will work regardless of this problem. Nevertheless, you 7675*** may want to report the problem to your system manager and/or to 7676*** bug-libtool@gnu.org 7677 7678_LT_EOF 7679 fi ;; 7680 esac 7681 fi 7682 break 7683 fi 7684 done 7685 IFS="$lt_save_ifs" 7686 MAGIC_CMD="$lt_save_MAGIC_CMD" 7687 ;; 7688esac 7689fi 7690 7691MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7692if test -n "$MAGIC_CMD"; then 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7694$as_echo "$MAGIC_CMD" >&6; } 7695else 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7697$as_echo "no" >&6; } 7698fi 7699 7700 7701 else 7702 MAGIC_CMD=: 7703 fi 7704fi 7705 7706 fi 7707 ;; 7708esac 7709 7710# Use C for the default configuration in the libtool script 7711 7712lt_save_CC="$CC" 7713ac_ext=c 7714ac_cpp='$CPP $CPPFLAGS' 7715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7717ac_compiler_gnu=$ac_cv_c_compiler_gnu 7718 7719 7720# Source file extension for C test sources. 7721ac_ext=c 7722 7723# Object file extension for compiled C test sources. 7724objext=o 7725objext=$objext 7726 7727# Code to be used in simple compile tests 7728lt_simple_compile_test_code="int some_variable = 0;" 7729 7730# Code to be used in simple link tests 7731lt_simple_link_test_code='int main(){return(0);}' 7732 7733 7734 7735 7736 7737 7738 7739# If no C compiler was specified, use CC. 7740LTCC=${LTCC-"$CC"} 7741 7742# If no C compiler flags were specified, use CFLAGS. 7743LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7744 7745# Allow CC to be a program name with arguments. 7746compiler=$CC 7747 7748# Save the default compiler, since it gets overwritten when the other 7749# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7750compiler_DEFAULT=$CC 7751 7752# save warnings/boilerplate of simple test code 7753ac_outfile=conftest.$ac_objext 7754echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7755eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7756_lt_compiler_boilerplate=`cat conftest.err` 7757$RM conftest* 7758 7759ac_outfile=conftest.$ac_objext 7760echo "$lt_simple_link_test_code" >conftest.$ac_ext 7761eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7762_lt_linker_boilerplate=`cat conftest.err` 7763$RM -r conftest* 7764 7765 7766if test -n "$compiler"; then 7767 7768lt_prog_compiler_no_builtin_flag= 7769 7770if test "$GCC" = yes; then 7771 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7772 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7774$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7775if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 lt_cv_prog_compiler_rtti_exceptions=no 7779 ac_outfile=conftest.$ac_objext 7780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7781 lt_compiler_flag="-fno-rtti -fno-exceptions" 7782 # Insert the option either (1) after the last *FLAGS variable, or 7783 # (2) before a word containing "conftest.", or (3) at the end. 7784 # Note that $ac_compile itself does not contain backslashes and begins 7785 # with a dollar sign (not a hyphen), so the echo should work correctly. 7786 # The option is referenced via a variable to avoid confusing sed. 7787 lt_compile=`echo "$ac_compile" | $SED \ 7788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7790 -e 's:$: $lt_compiler_flag:'` 7791 (eval echo "\"\$as_me:7791: $lt_compile\"" >&5) 7792 (eval "$lt_compile" 2>conftest.err) 7793 ac_status=$? 7794 cat conftest.err >&5 7795 echo "$as_me:7795: \$? = $ac_status" >&5 7796 if (exit $ac_status) && test -s "$ac_outfile"; then 7797 # The compiler can only warn and ignore the option if not recognized 7798 # So say no if there are warnings other than the usual output. 7799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7800 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7801 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7802 lt_cv_prog_compiler_rtti_exceptions=yes 7803 fi 7804 fi 7805 $RM conftest* 7806 7807fi 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7809$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7810 7811if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7812 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7813else 7814 : 7815fi 7816 7817fi 7818 7819 7820 7821 7822 7823 7824 lt_prog_compiler_wl= 7825lt_prog_compiler_pic= 7826lt_prog_compiler_static= 7827 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7829$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7830 7831 if test "$GCC" = yes; then 7832 lt_prog_compiler_wl='-Wl,' 7833 lt_prog_compiler_static='-static' 7834 7835 case $host_os in 7836 aix*) 7837 # All AIX code is PIC. 7838 if test "$host_cpu" = ia64; then 7839 # AIX 5 now supports IA64 processor 7840 lt_prog_compiler_static='-Bstatic' 7841 fi 7842 ;; 7843 7844 amigaos*) 7845 case $host_cpu in 7846 powerpc) 7847 # see comment about AmigaOS4 .so support 7848 lt_prog_compiler_pic='-fPIC' 7849 ;; 7850 m68k) 7851 # FIXME: we need at least 68020 code to build shared libraries, but 7852 # adding the `-m68020' flag to GCC prevents building anything better, 7853 # like `-m68040'. 7854 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7855 ;; 7856 esac 7857 ;; 7858 7859 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7860 # PIC is the default for these OSes. 7861 ;; 7862 7863 mingw* | cygwin* | pw32* | os2* | cegcc*) 7864 # This hack is so that the source file can tell whether it is being 7865 # built for inclusion in a dll (and should export symbols for example). 7866 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7867 # (--disable-auto-import) libraries 7868 lt_prog_compiler_pic='-DDLL_EXPORT' 7869 ;; 7870 7871 darwin* | rhapsody*) 7872 # PIC is the default on this platform 7873 # Common symbols not allowed in MH_DYLIB files 7874 lt_prog_compiler_pic='-fno-common' 7875 ;; 7876 7877 hpux*) 7878 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7879 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7880 # sets the default TLS model and affects inlining. 7881 case $host_cpu in 7882 hppa*64*) 7883 # +Z the default 7884 ;; 7885 *) 7886 lt_prog_compiler_pic='-fPIC' 7887 ;; 7888 esac 7889 ;; 7890 7891 interix[3-9]*) 7892 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7893 # Instead, we relocate shared libraries at runtime. 7894 ;; 7895 7896 msdosdjgpp*) 7897 # Just because we use GCC doesn't mean we suddenly get shared libraries 7898 # on systems that don't support them. 7899 lt_prog_compiler_can_build_shared=no 7900 enable_shared=no 7901 ;; 7902 7903 *nto* | *qnx*) 7904 # QNX uses GNU C++, but need to define -shared option too, otherwise 7905 # it will coredump. 7906 lt_prog_compiler_pic='-fPIC -shared' 7907 ;; 7908 7909 sysv4*MP*) 7910 if test -d /usr/nec; then 7911 lt_prog_compiler_pic=-Kconform_pic 7912 fi 7913 ;; 7914 7915 *) 7916 lt_prog_compiler_pic='-fPIC' 7917 ;; 7918 esac 7919 else 7920 # PORTME Check for flag to pass linker flags through the system compiler. 7921 case $host_os in 7922 aix*) 7923 lt_prog_compiler_wl='-Wl,' 7924 if test "$host_cpu" = ia64; then 7925 # AIX 5 now supports IA64 processor 7926 lt_prog_compiler_static='-Bstatic' 7927 else 7928 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7929 fi 7930 ;; 7931 7932 mingw* | cygwin* | pw32* | os2* | cegcc*) 7933 # This hack is so that the source file can tell whether it is being 7934 # built for inclusion in a dll (and should export symbols for example). 7935 lt_prog_compiler_pic='-DDLL_EXPORT' 7936 ;; 7937 7938 hpux9* | hpux10* | hpux11*) 7939 lt_prog_compiler_wl='-Wl,' 7940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7941 # not for PA HP-UX. 7942 case $host_cpu in 7943 hppa*64*|ia64*) 7944 # +Z the default 7945 ;; 7946 *) 7947 lt_prog_compiler_pic='+Z' 7948 ;; 7949 esac 7950 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7951 lt_prog_compiler_static='${wl}-a ${wl}archive' 7952 ;; 7953 7954 irix5* | irix6* | nonstopux*) 7955 lt_prog_compiler_wl='-Wl,' 7956 # PIC (with -KPIC) is the default. 7957 lt_prog_compiler_static='-non_shared' 7958 ;; 7959 7960 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7961 case $cc_basename in 7962 # old Intel for x86_64 which still supported -KPIC. 7963 ecc*) 7964 lt_prog_compiler_wl='-Wl,' 7965 lt_prog_compiler_pic='-KPIC' 7966 lt_prog_compiler_static='-static' 7967 ;; 7968 # icc used to be incompatible with GCC. 7969 # ICC 10 doesn't accept -KPIC any more. 7970 icc* | ifort*) 7971 lt_prog_compiler_wl='-Wl,' 7972 lt_prog_compiler_pic='-fPIC' 7973 lt_prog_compiler_static='-static' 7974 ;; 7975 # Lahey Fortran 8.1. 7976 lf95*) 7977 lt_prog_compiler_wl='-Wl,' 7978 lt_prog_compiler_pic='--shared' 7979 lt_prog_compiler_static='--static' 7980 ;; 7981 pgcc* | pgf77* | pgf90* | pgf95*) 7982 # Portland Group compilers (*not* the Pentium gcc compiler, 7983 # which looks to be a dead project) 7984 lt_prog_compiler_wl='-Wl,' 7985 lt_prog_compiler_pic='-fpic' 7986 lt_prog_compiler_static='-Bstatic' 7987 ;; 7988 ccc*) 7989 lt_prog_compiler_wl='-Wl,' 7990 # All Alpha code is PIC. 7991 lt_prog_compiler_static='-non_shared' 7992 ;; 7993 xl*) 7994 # IBM XL C 8.0/Fortran 10.1 on PPC 7995 lt_prog_compiler_wl='-Wl,' 7996 lt_prog_compiler_pic='-qpic' 7997 lt_prog_compiler_static='-qstaticlink' 7998 ;; 7999 *) 8000 case `$CC -V 2>&1 | sed 5q` in 8001 *Sun\ C*) 8002 # Sun C 5.9 8003 lt_prog_compiler_pic='-KPIC' 8004 lt_prog_compiler_static='-Bstatic' 8005 lt_prog_compiler_wl='-Wl,' 8006 ;; 8007 *Sun\ F*) 8008 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8009 lt_prog_compiler_pic='-KPIC' 8010 lt_prog_compiler_static='-Bstatic' 8011 lt_prog_compiler_wl='' 8012 ;; 8013 esac 8014 ;; 8015 esac 8016 ;; 8017 8018 newsos6) 8019 lt_prog_compiler_pic='-KPIC' 8020 lt_prog_compiler_static='-Bstatic' 8021 ;; 8022 8023 *nto* | *qnx*) 8024 # QNX uses GNU C++, but need to define -shared option too, otherwise 8025 # it will coredump. 8026 lt_prog_compiler_pic='-fPIC -shared' 8027 ;; 8028 8029 osf3* | osf4* | osf5*) 8030 lt_prog_compiler_wl='-Wl,' 8031 # All OSF/1 code is PIC. 8032 lt_prog_compiler_static='-non_shared' 8033 ;; 8034 8035 rdos*) 8036 lt_prog_compiler_static='-non_shared' 8037 ;; 8038 8039 solaris*) 8040 lt_prog_compiler_pic='-KPIC' 8041 lt_prog_compiler_static='-Bstatic' 8042 case $cc_basename in 8043 f77* | f90* | f95*) 8044 lt_prog_compiler_wl='-Qoption ld ';; 8045 *) 8046 lt_prog_compiler_wl='-Wl,';; 8047 esac 8048 ;; 8049 8050 sunos4*) 8051 lt_prog_compiler_wl='-Qoption ld ' 8052 lt_prog_compiler_pic='-PIC' 8053 lt_prog_compiler_static='-Bstatic' 8054 ;; 8055 8056 sysv4 | sysv4.2uw2* | sysv4.3*) 8057 lt_prog_compiler_wl='-Wl,' 8058 lt_prog_compiler_pic='-KPIC' 8059 lt_prog_compiler_static='-Bstatic' 8060 ;; 8061 8062 sysv4*MP*) 8063 if test -d /usr/nec ;then 8064 lt_prog_compiler_pic='-Kconform_pic' 8065 lt_prog_compiler_static='-Bstatic' 8066 fi 8067 ;; 8068 8069 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8070 lt_prog_compiler_wl='-Wl,' 8071 lt_prog_compiler_pic='-KPIC' 8072 lt_prog_compiler_static='-Bstatic' 8073 ;; 8074 8075 unicos*) 8076 lt_prog_compiler_wl='-Wl,' 8077 lt_prog_compiler_can_build_shared=no 8078 ;; 8079 8080 uts4*) 8081 lt_prog_compiler_pic='-pic' 8082 lt_prog_compiler_static='-Bstatic' 8083 ;; 8084 8085 *) 8086 lt_prog_compiler_can_build_shared=no 8087 ;; 8088 esac 8089 fi 8090 8091case $host_os in 8092 # For platforms which do not support PIC, -DPIC is meaningless: 8093 *djgpp*) 8094 lt_prog_compiler_pic= 8095 ;; 8096 *) 8097 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8098 ;; 8099esac 8100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8101$as_echo "$lt_prog_compiler_pic" >&6; } 8102 8103 8104 8105 8106 8107 8108# 8109# Check to make sure the PIC flag actually works. 8110# 8111if test -n "$lt_prog_compiler_pic"; then 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8113$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8114if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8115 $as_echo_n "(cached) " >&6 8116else 8117 lt_cv_prog_compiler_pic_works=no 8118 ac_outfile=conftest.$ac_objext 8119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8120 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8121 # Insert the option either (1) after the last *FLAGS variable, or 8122 # (2) before a word containing "conftest.", or (3) at the end. 8123 # Note that $ac_compile itself does not contain backslashes and begins 8124 # with a dollar sign (not a hyphen), so the echo should work correctly. 8125 # The option is referenced via a variable to avoid confusing sed. 8126 lt_compile=`echo "$ac_compile" | $SED \ 8127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8129 -e 's:$: $lt_compiler_flag:'` 8130 (eval echo "\"\$as_me:8130: $lt_compile\"" >&5) 8131 (eval "$lt_compile" 2>conftest.err) 8132 ac_status=$? 8133 cat conftest.err >&5 8134 echo "$as_me:8134: \$? = $ac_status" >&5 8135 if (exit $ac_status) && test -s "$ac_outfile"; then 8136 # The compiler can only warn and ignore the option if not recognized 8137 # So say no if there are warnings other than the usual output. 8138 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8141 lt_cv_prog_compiler_pic_works=yes 8142 fi 8143 fi 8144 $RM conftest* 8145 8146fi 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8148$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8149 8150if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8151 case $lt_prog_compiler_pic in 8152 "" | " "*) ;; 8153 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8154 esac 8155else 8156 lt_prog_compiler_pic= 8157 lt_prog_compiler_can_build_shared=no 8158fi 8159 8160fi 8161 8162 8163 8164 8165 8166 8167# 8168# Check to make sure the static flag actually works. 8169# 8170wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8172$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8173if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8174 $as_echo_n "(cached) " >&6 8175else 8176 lt_cv_prog_compiler_static_works=no 8177 save_LDFLAGS="$LDFLAGS" 8178 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8179 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8181 # The linker can only warn and ignore the option if not recognized 8182 # So say no if there are warnings 8183 if test -s conftest.err; then 8184 # Append any errors to the config.log. 8185 cat conftest.err 1>&5 8186 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8188 if diff conftest.exp conftest.er2 >/dev/null; then 8189 lt_cv_prog_compiler_static_works=yes 8190 fi 8191 else 8192 lt_cv_prog_compiler_static_works=yes 8193 fi 8194 fi 8195 $RM -r conftest* 8196 LDFLAGS="$save_LDFLAGS" 8197 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8200$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8201 8202if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8203 : 8204else 8205 lt_prog_compiler_static= 8206fi 8207 8208 8209 8210 8211 8212 8213 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8215$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8216if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8217 $as_echo_n "(cached) " >&6 8218else 8219 lt_cv_prog_compiler_c_o=no 8220 $RM -r conftest 2>/dev/null 8221 mkdir conftest 8222 cd conftest 8223 mkdir out 8224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8225 8226 lt_compiler_flag="-o out/conftest2.$ac_objext" 8227 # Insert the option either (1) after the last *FLAGS variable, or 8228 # (2) before a word containing "conftest.", or (3) at the end. 8229 # Note that $ac_compile itself does not contain backslashes and begins 8230 # with a dollar sign (not a hyphen), so the echo should work correctly. 8231 lt_compile=`echo "$ac_compile" | $SED \ 8232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8234 -e 's:$: $lt_compiler_flag:'` 8235 (eval echo "\"\$as_me:8235: $lt_compile\"" >&5) 8236 (eval "$lt_compile" 2>out/conftest.err) 8237 ac_status=$? 8238 cat out/conftest.err >&5 8239 echo "$as_me:8239: \$? = $ac_status" >&5 8240 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8241 then 8242 # The compiler can only warn and ignore the option if not recognized 8243 # So say no if there are warnings 8244 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8247 lt_cv_prog_compiler_c_o=yes 8248 fi 8249 fi 8250 chmod u+w . 2>&5 8251 $RM conftest* 8252 # SGI C++ compiler will create directory out/ii_files/ for 8253 # template instantiation 8254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8255 $RM out/* && rmdir out 8256 cd .. 8257 $RM -r conftest 8258 $RM conftest* 8259 8260fi 8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8262$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8263 8264 8265 8266 8267 8268 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8270$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8271if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8272 $as_echo_n "(cached) " >&6 8273else 8274 lt_cv_prog_compiler_c_o=no 8275 $RM -r conftest 2>/dev/null 8276 mkdir conftest 8277 cd conftest 8278 mkdir out 8279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8280 8281 lt_compiler_flag="-o out/conftest2.$ac_objext" 8282 # Insert the option either (1) after the last *FLAGS variable, or 8283 # (2) before a word containing "conftest.", or (3) at the end. 8284 # Note that $ac_compile itself does not contain backslashes and begins 8285 # with a dollar sign (not a hyphen), so the echo should work correctly. 8286 lt_compile=`echo "$ac_compile" | $SED \ 8287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8289 -e 's:$: $lt_compiler_flag:'` 8290 (eval echo "\"\$as_me:8290: $lt_compile\"" >&5) 8291 (eval "$lt_compile" 2>out/conftest.err) 8292 ac_status=$? 8293 cat out/conftest.err >&5 8294 echo "$as_me:8294: \$? = $ac_status" >&5 8295 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8296 then 8297 # The compiler can only warn and ignore the option if not recognized 8298 # So say no if there are warnings 8299 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8302 lt_cv_prog_compiler_c_o=yes 8303 fi 8304 fi 8305 chmod u+w . 2>&5 8306 $RM conftest* 8307 # SGI C++ compiler will create directory out/ii_files/ for 8308 # template instantiation 8309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8310 $RM out/* && rmdir out 8311 cd .. 8312 $RM -r conftest 8313 $RM conftest* 8314 8315fi 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8317$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8318 8319 8320 8321 8322hard_links="nottested" 8323if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8324 # do not overwrite the value of need_locks provided by the user 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8326$as_echo_n "checking if we can lock with hard links... " >&6; } 8327 hard_links=yes 8328 $RM conftest* 8329 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8330 touch conftest.a 8331 ln conftest.a conftest.b 2>&5 || hard_links=no 8332 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8334$as_echo "$hard_links" >&6; } 8335 if test "$hard_links" = no; then 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8337$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8338 need_locks=warn 8339 fi 8340else 8341 need_locks=no 8342fi 8343 8344 8345 8346 8347 8348 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8350$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8351 8352 runpath_var= 8353 allow_undefined_flag= 8354 always_export_symbols=no 8355 archive_cmds= 8356 archive_expsym_cmds= 8357 compiler_needs_object=no 8358 enable_shared_with_static_runtimes=no 8359 export_dynamic_flag_spec= 8360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8361 hardcode_automatic=no 8362 hardcode_direct=no 8363 hardcode_direct_absolute=no 8364 hardcode_libdir_flag_spec= 8365 hardcode_libdir_flag_spec_ld= 8366 hardcode_libdir_separator= 8367 hardcode_minus_L=no 8368 hardcode_shlibpath_var=unsupported 8369 inherit_rpath=no 8370 link_all_deplibs=unknown 8371 module_cmds= 8372 module_expsym_cmds= 8373 old_archive_from_new_cmds= 8374 old_archive_from_expsyms_cmds= 8375 thread_safe_flag_spec= 8376 whole_archive_flag_spec= 8377 # include_expsyms should be a list of space-separated symbols to be *always* 8378 # included in the symbol list 8379 include_expsyms= 8380 # exclude_expsyms can be an extended regexp of symbols to exclude 8381 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8382 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8383 # as well as any symbol that contains `d'. 8384 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8385 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8386 # platforms (ab)use it in PIC code, but their linkers get confused if 8387 # the symbol is explicitly referenced. Since portable code cannot 8388 # rely on this symbol name, it's probably fine to never include it in 8389 # preloaded symbol tables. 8390 # Exclude shared library initialization/finalization symbols. 8391 extract_expsyms_cmds= 8392 8393 case $host_os in 8394 cygwin* | mingw* | pw32* | cegcc*) 8395 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8396 # When not using gcc, we currently assume that we are using 8397 # Microsoft Visual C++. 8398 if test "$GCC" != yes; then 8399 with_gnu_ld=no 8400 fi 8401 ;; 8402 interix*) 8403 # we just hope/assume this is gcc and not c89 (= MSVC++) 8404 with_gnu_ld=yes 8405 ;; 8406 openbsd*) 8407 with_gnu_ld=no 8408 ;; 8409 linux* | k*bsd*-gnu) 8410 link_all_deplibs=no 8411 ;; 8412 esac 8413 8414 ld_shlibs=yes 8415 if test "$with_gnu_ld" = yes; then 8416 # If archive_cmds runs LD, not CC, wlarc should be empty 8417 wlarc='${wl}' 8418 8419 # Set some defaults for GNU ld with shared library support. These 8420 # are reset later if shared libraries are not supported. Putting them 8421 # here allows them to be overridden if necessary. 8422 runpath_var=LD_RUN_PATH 8423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8424 export_dynamic_flag_spec='${wl}--export-dynamic' 8425 # ancient GNU ld didn't support --whole-archive et. al. 8426 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8427 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8428 else 8429 whole_archive_flag_spec= 8430 fi 8431 supports_anon_versioning=no 8432 case `$LD -v 2>&1` in 8433 *GNU\ gold*) supports_anon_versioning=yes ;; 8434 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8435 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8436 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8437 *\ 2.11.*) ;; # other 2.11 versions 8438 *) supports_anon_versioning=yes ;; 8439 esac 8440 8441 # See if GNU ld supports shared libraries. 8442 case $host_os in 8443 aix[3-9]*) 8444 # On AIX/PPC, the GNU linker is very broken 8445 if test "$host_cpu" != ia64; then 8446 ld_shlibs=no 8447 cat <<_LT_EOF 1>&2 8448 8449*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8450*** to be unable to reliably create shared libraries on AIX. 8451*** Therefore, libtool is disabling shared libraries support. If you 8452*** really care for shared libraries, you may want to modify your PATH 8453*** so that a non-GNU linker is found, and then restart. 8454 8455_LT_EOF 8456 fi 8457 ;; 8458 8459 amigaos*) 8460 case $host_cpu in 8461 powerpc) 8462 # see comment about AmigaOS4 .so support 8463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8464 archive_expsym_cmds='' 8465 ;; 8466 m68k) 8467 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)' 8468 hardcode_libdir_flag_spec='-L$libdir' 8469 hardcode_minus_L=yes 8470 ;; 8471 esac 8472 ;; 8473 8474 beos*) 8475 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8476 allow_undefined_flag=unsupported 8477 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8478 # support --undefined. This deserves some investigation. FIXME 8479 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8480 else 8481 ld_shlibs=no 8482 fi 8483 ;; 8484 8485 cygwin* | mingw* | pw32* | cegcc*) 8486 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8487 # as there is no search path for DLLs. 8488 hardcode_libdir_flag_spec='-L$libdir' 8489 allow_undefined_flag=unsupported 8490 always_export_symbols=no 8491 enable_shared_with_static_runtimes=yes 8492 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8493 8494 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8496 # If the export-symbols file already is a .def file (1st line 8497 # is EXPORTS), use it as is; otherwise, prepend... 8498 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8499 cp $export_symbols $output_objdir/$soname.def; 8500 else 8501 echo EXPORTS > $output_objdir/$soname.def; 8502 cat $export_symbols >> $output_objdir/$soname.def; 8503 fi~ 8504 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8505 else 8506 ld_shlibs=no 8507 fi 8508 ;; 8509 8510 interix[3-9]*) 8511 hardcode_direct=no 8512 hardcode_shlibpath_var=no 8513 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8514 export_dynamic_flag_spec='${wl}-E' 8515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8516 # Instead, shared libraries are loaded at an image base (0x10000000 by 8517 # default) and relocated if they conflict, which is a slow very memory 8518 # consuming and fragmenting process. To avoid this, we pick a random, 8519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8520 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8521 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8522 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' 8523 ;; 8524 8525 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8526 tmp_diet=no 8527 if test "$host_os" = linux-dietlibc; then 8528 case $cc_basename in 8529 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8530 esac 8531 fi 8532 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8533 && test "$tmp_diet" = no 8534 then 8535 tmp_addflag= 8536 tmp_sharedflag='-shared' 8537 case $cc_basename,$host_cpu in 8538 pgcc*) # Portland Group C compiler 8539 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' 8540 tmp_addflag=' $pic_flag' 8541 ;; 8542 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8543 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' 8544 tmp_addflag=' $pic_flag -Mnomain' ;; 8545 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8546 tmp_addflag=' -i_dynamic' ;; 8547 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8548 tmp_addflag=' -i_dynamic -nofor_main' ;; 8549 ifc* | ifort*) # Intel Fortran compiler 8550 tmp_addflag=' -nofor_main' ;; 8551 lf95*) # Lahey Fortran 8.1 8552 whole_archive_flag_spec= 8553 tmp_sharedflag='--shared' ;; 8554 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8555 tmp_sharedflag='-qmkshrobj' 8556 tmp_addflag= ;; 8557 esac 8558 case `$CC -V 2>&1 | sed 5q` in 8559 *Sun\ C*) # Sun C 5.9 8560 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' 8561 compiler_needs_object=yes 8562 tmp_sharedflag='-G' ;; 8563 *Sun\ F*) # Sun Fortran 8.3 8564 tmp_sharedflag='-G' ;; 8565 esac 8566 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8567 8568 if test "x$supports_anon_versioning" = xyes; then 8569 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8571 echo "local: *; };" >> $output_objdir/$libname.ver~ 8572 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8573 fi 8574 8575 case $cc_basename in 8576 xlf*) 8577 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8578 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8579 hardcode_libdir_flag_spec= 8580 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8581 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8582 if test "x$supports_anon_versioning" = xyes; then 8583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8585 echo "local: *; };" >> $output_objdir/$libname.ver~ 8586 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8587 fi 8588 ;; 8589 esac 8590 else 8591 ld_shlibs=no 8592 fi 8593 ;; 8594 8595 netbsd* | netbsdelf*-gnu) 8596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8597 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8598 wlarc= 8599 else 8600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8602 fi 8603 ;; 8604 8605 solaris*) 8606 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8607 ld_shlibs=no 8608 cat <<_LT_EOF 1>&2 8609 8610*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8611*** create shared libraries on Solaris systems. Therefore, libtool 8612*** is disabling shared libraries support. We urge you to upgrade GNU 8613*** binutils to release 2.9.1 or newer. Another option is to modify 8614*** your PATH or compiler configuration so that the native linker is 8615*** used, and then restart. 8616 8617_LT_EOF 8618 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8620 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8621 else 8622 ld_shlibs=no 8623 fi 8624 ;; 8625 8626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8627 case `$LD -v 2>&1` in 8628 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8629 ld_shlibs=no 8630 cat <<_LT_EOF 1>&2 8631 8632*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8633*** reliably create shared libraries on SCO systems. Therefore, libtool 8634*** is disabling shared libraries support. We urge you to upgrade GNU 8635*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8636*** your PATH or compiler configuration so that the native linker is 8637*** used, and then restart. 8638 8639_LT_EOF 8640 ;; 8641 *) 8642 # For security reasons, it is highly recommended that you always 8643 # use absolute paths for naming shared libraries, and exclude the 8644 # DT_RUNPATH tag from executables and libraries. But doing so 8645 # requires that you compile everything twice, which is a pain. 8646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8650 else 8651 ld_shlibs=no 8652 fi 8653 ;; 8654 esac 8655 ;; 8656 8657 sunos4*) 8658 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8659 wlarc= 8660 hardcode_direct=yes 8661 hardcode_shlibpath_var=no 8662 ;; 8663 8664 *) 8665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8668 else 8669 ld_shlibs=no 8670 fi 8671 ;; 8672 esac 8673 8674 if test "$ld_shlibs" = no; then 8675 runpath_var= 8676 hardcode_libdir_flag_spec= 8677 export_dynamic_flag_spec= 8678 whole_archive_flag_spec= 8679 fi 8680 else 8681 # PORTME fill in a description of your system's linker (not GNU ld) 8682 case $host_os in 8683 aix3*) 8684 allow_undefined_flag=unsupported 8685 always_export_symbols=yes 8686 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' 8687 # Note: this linker hardcodes the directories in LIBPATH if there 8688 # are no directories specified by -L. 8689 hardcode_minus_L=yes 8690 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8691 # Neither direct hardcoding nor static linking is supported with a 8692 # broken collect2. 8693 hardcode_direct=unsupported 8694 fi 8695 ;; 8696 8697 aix[4-9]*) 8698 if test "$host_cpu" = ia64; then 8699 # On IA64, the linker does run time linking by default, so we don't 8700 # have to do anything special. 8701 aix_use_runtimelinking=no 8702 exp_sym_flag='-Bexport' 8703 no_entry_flag="" 8704 else 8705 # If we're using GNU nm, then we don't want the "-C" option. 8706 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8707 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8708 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' 8709 else 8710 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' 8711 fi 8712 aix_use_runtimelinking=no 8713 8714 # Test if we are trying to use run time linking or normal 8715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8716 # need to do runtime linking. 8717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8718 for ld_flag in $LDFLAGS; do 8719 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8720 aix_use_runtimelinking=yes 8721 break 8722 fi 8723 done 8724 ;; 8725 esac 8726 8727 exp_sym_flag='-bexport' 8728 no_entry_flag='-bnoentry' 8729 fi 8730 8731 # When large executables or shared objects are built, AIX ld can 8732 # have problems creating the table of contents. If linking a library 8733 # or program results in "error TOC overflow" add -mminimal-toc to 8734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8736 8737 archive_cmds='' 8738 hardcode_direct=yes 8739 hardcode_direct_absolute=yes 8740 hardcode_libdir_separator=':' 8741 link_all_deplibs=yes 8742 file_list_spec='${wl}-f,' 8743 8744 if test "$GCC" = yes; then 8745 case $host_os in aix4.[012]|aix4.[012].*) 8746 # We only want to do this on AIX 4.2 and lower, the check 8747 # below for broken collect2 doesn't work under 4.3+ 8748 collect2name=`${CC} -print-prog-name=collect2` 8749 if test -f "$collect2name" && 8750 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8751 then 8752 # We have reworked collect2 8753 : 8754 else 8755 # We have old collect2 8756 hardcode_direct=unsupported 8757 # It fails to find uninstalled libraries when the uninstalled 8758 # path is not listed in the libpath. Setting hardcode_minus_L 8759 # to unsupported forces relinking 8760 hardcode_minus_L=yes 8761 hardcode_libdir_flag_spec='-L$libdir' 8762 hardcode_libdir_separator= 8763 fi 8764 ;; 8765 esac 8766 shared_flag='-shared' 8767 if test "$aix_use_runtimelinking" = yes; then 8768 shared_flag="$shared_flag "'${wl}-G' 8769 fi 8770 link_all_deplibs=no 8771 else 8772 # not using gcc 8773 if test "$host_cpu" = ia64; then 8774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8775 # chokes on -Wl,-G. The following line is correct: 8776 shared_flag='-G' 8777 else 8778 if test "$aix_use_runtimelinking" = yes; then 8779 shared_flag='${wl}-G' 8780 else 8781 shared_flag='${wl}-bM:SRE' 8782 fi 8783 fi 8784 fi 8785 8786 export_dynamic_flag_spec='${wl}-bexpall' 8787 # It seems that -bexpall does not export symbols beginning with 8788 # underscore (_), so it is better to generate a list of symbols to export. 8789 always_export_symbols=yes 8790 if test "$aix_use_runtimelinking" = yes; then 8791 # Warning - without using the other runtime loading flags (-brtl), 8792 # -berok will link without error, but may produce a broken library. 8793 allow_undefined_flag='-berok' 8794 # Determine the default libpath from the value encoded in an 8795 # empty executable. 8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8797/* end confdefs.h. */ 8798 8799int 8800main () 8801{ 8802 8803 ; 8804 return 0; 8805} 8806_ACEOF 8807if ac_fn_c_try_link "$LINENO"; then : 8808 8809lt_aix_libpath_sed=' 8810 /Import File Strings/,/^$/ { 8811 /^0/ { 8812 s/^0 *\(.*\)$/\1/ 8813 p 8814 } 8815 }' 8816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8817# Check for a 64-bit object if we didn't find anything. 8818if test -z "$aix_libpath"; then 8819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8820fi 8821fi 8822rm -f core conftest.err conftest.$ac_objext \ 8823 conftest$ac_exeext conftest.$ac_ext 8824if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8825 8826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8827 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" 8828 else 8829 if test "$host_cpu" = ia64; then 8830 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8831 allow_undefined_flag="-z nodefs" 8832 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" 8833 else 8834 # Determine the default libpath from the value encoded in an 8835 # empty executable. 8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8837/* end confdefs.h. */ 8838 8839int 8840main () 8841{ 8842 8843 ; 8844 return 0; 8845} 8846_ACEOF 8847if ac_fn_c_try_link "$LINENO"; then : 8848 8849lt_aix_libpath_sed=' 8850 /Import File Strings/,/^$/ { 8851 /^0/ { 8852 s/^0 *\(.*\)$/\1/ 8853 p 8854 } 8855 }' 8856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8857# Check for a 64-bit object if we didn't find anything. 8858if test -z "$aix_libpath"; then 8859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8860fi 8861fi 8862rm -f core conftest.err conftest.$ac_objext \ 8863 conftest$ac_exeext conftest.$ac_ext 8864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8865 8866 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8867 # Warning - without using the other run time loading flags, 8868 # -berok will link without error, but may produce a broken library. 8869 no_undefined_flag=' ${wl}-bernotok' 8870 allow_undefined_flag=' ${wl}-berok' 8871 # Exported symbols can be pulled into shared objects from archives 8872 whole_archive_flag_spec='$convenience' 8873 archive_cmds_need_lc=yes 8874 # This is similar to how AIX traditionally builds its shared libraries. 8875 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' 8876 fi 8877 fi 8878 ;; 8879 8880 amigaos*) 8881 case $host_cpu in 8882 powerpc) 8883 # see comment about AmigaOS4 .so support 8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8885 archive_expsym_cmds='' 8886 ;; 8887 m68k) 8888 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)' 8889 hardcode_libdir_flag_spec='-L$libdir' 8890 hardcode_minus_L=yes 8891 ;; 8892 esac 8893 ;; 8894 8895 bsdi[45]*) 8896 export_dynamic_flag_spec=-rdynamic 8897 ;; 8898 8899 cygwin* | mingw* | pw32* | cegcc*) 8900 # When not using gcc, we currently assume that we are using 8901 # Microsoft Visual C++. 8902 # hardcode_libdir_flag_spec is actually meaningless, as there is 8903 # no search path for DLLs. 8904 hardcode_libdir_flag_spec=' ' 8905 allow_undefined_flag=unsupported 8906 # Tell ltmain to make .lib files, not .a files. 8907 libext=lib 8908 # Tell ltmain to make .dll files, not .so files. 8909 shrext_cmds=".dll" 8910 # FIXME: Setting linknames here is a bad hack. 8911 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8912 # The linker will automatically build a .lib file if we build a DLL. 8913 old_archive_from_new_cmds='true' 8914 # FIXME: Should let the user specify the lib program. 8915 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8916 fix_srcfile_path='`cygpath -w "$srcfile"`' 8917 enable_shared_with_static_runtimes=yes 8918 ;; 8919 8920 darwin* | rhapsody*) 8921 8922 8923 archive_cmds_need_lc=no 8924 hardcode_direct=no 8925 hardcode_automatic=yes 8926 hardcode_shlibpath_var=unsupported 8927 whole_archive_flag_spec='' 8928 link_all_deplibs=yes 8929 allow_undefined_flag="$_lt_dar_allow_undefined" 8930 case $cc_basename in 8931 ifort*) _lt_dar_can_shared=yes ;; 8932 *) _lt_dar_can_shared=$GCC ;; 8933 esac 8934 if test "$_lt_dar_can_shared" = "yes"; then 8935 output_verbose_link_cmd=echo 8936 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8937 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8938 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}" 8939 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}" 8940 8941 else 8942 ld_shlibs=no 8943 fi 8944 8945 ;; 8946 8947 dgux*) 8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8949 hardcode_libdir_flag_spec='-L$libdir' 8950 hardcode_shlibpath_var=no 8951 ;; 8952 8953 freebsd1*) 8954 ld_shlibs=no 8955 ;; 8956 8957 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8958 # support. Future versions do this automatically, but an explicit c++rt0.o 8959 # does not break anything, and helps significantly (at the cost of a little 8960 # extra space). 8961 freebsd2.2*) 8962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8963 hardcode_libdir_flag_spec='-R$libdir' 8964 hardcode_direct=yes 8965 hardcode_shlibpath_var=no 8966 ;; 8967 8968 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8969 freebsd2*) 8970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8971 hardcode_direct=yes 8972 hardcode_minus_L=yes 8973 hardcode_shlibpath_var=no 8974 ;; 8975 8976 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8977 freebsd* | dragonfly*) 8978 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8979 hardcode_libdir_flag_spec='-R$libdir' 8980 hardcode_direct=yes 8981 hardcode_shlibpath_var=no 8982 ;; 8983 8984 hpux9*) 8985 if test "$GCC" = yes; then 8986 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' 8987 else 8988 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' 8989 fi 8990 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8991 hardcode_libdir_separator=: 8992 hardcode_direct=yes 8993 8994 # hardcode_minus_L: Not really in the search PATH, 8995 # but as the default location of the library. 8996 hardcode_minus_L=yes 8997 export_dynamic_flag_spec='${wl}-E' 8998 ;; 8999 9000 hpux10*) 9001 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9002 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9003 else 9004 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9005 fi 9006 if test "$with_gnu_ld" = no; then 9007 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9008 hardcode_libdir_flag_spec_ld='+b $libdir' 9009 hardcode_libdir_separator=: 9010 hardcode_direct=yes 9011 hardcode_direct_absolute=yes 9012 export_dynamic_flag_spec='${wl}-E' 9013 # hardcode_minus_L: Not really in the search PATH, 9014 # but as the default location of the library. 9015 hardcode_minus_L=yes 9016 fi 9017 ;; 9018 9019 hpux11*) 9020 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9021 case $host_cpu in 9022 hppa*64*) 9023 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9024 ;; 9025 ia64*) 9026 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9027 ;; 9028 *) 9029 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9030 ;; 9031 esac 9032 else 9033 case $host_cpu in 9034 hppa*64*) 9035 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9036 ;; 9037 ia64*) 9038 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9039 ;; 9040 *) 9041 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9042 ;; 9043 esac 9044 fi 9045 if test "$with_gnu_ld" = no; then 9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9047 hardcode_libdir_separator=: 9048 9049 case $host_cpu in 9050 hppa*64*|ia64*) 9051 hardcode_direct=no 9052 hardcode_shlibpath_var=no 9053 ;; 9054 *) 9055 hardcode_direct=yes 9056 hardcode_direct_absolute=yes 9057 export_dynamic_flag_spec='${wl}-E' 9058 9059 # hardcode_minus_L: Not really in the search PATH, 9060 # but as the default location of the library. 9061 hardcode_minus_L=yes 9062 ;; 9063 esac 9064 fi 9065 ;; 9066 9067 irix5* | irix6* | nonstopux*) 9068 if test "$GCC" = yes; then 9069 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' 9070 # Try to use the -exported_symbol ld option, if it does not 9071 # work, assume that -exports_file does not work either and 9072 # implicitly export all symbols. 9073 save_LDFLAGS="$LDFLAGS" 9074 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9076/* end confdefs.h. */ 9077int foo(void) {} 9078_ACEOF 9079if ac_fn_c_try_link "$LINENO"; then : 9080 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' 9081 9082fi 9083rm -f core conftest.err conftest.$ac_objext \ 9084 conftest$ac_exeext conftest.$ac_ext 9085 LDFLAGS="$save_LDFLAGS" 9086 else 9087 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' 9088 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' 9089 fi 9090 archive_cmds_need_lc='no' 9091 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9092 hardcode_libdir_separator=: 9093 inherit_rpath=yes 9094 link_all_deplibs=yes 9095 ;; 9096 9097 netbsd* | netbsdelf*-gnu) 9098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9099 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9100 else 9101 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9102 fi 9103 hardcode_libdir_flag_spec='-R$libdir' 9104 hardcode_direct=yes 9105 hardcode_shlibpath_var=no 9106 ;; 9107 9108 newsos6) 9109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9110 hardcode_direct=yes 9111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9112 hardcode_libdir_separator=: 9113 hardcode_shlibpath_var=no 9114 ;; 9115 9116 *nto* | *qnx*) 9117 ;; 9118 9119 openbsd*) 9120 if test -f /usr/libexec/ld.so; then 9121 hardcode_direct=yes 9122 hardcode_shlibpath_var=no 9123 hardcode_direct_absolute=yes 9124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9126 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9128 export_dynamic_flag_spec='${wl}-E' 9129 else 9130 case $host_os in 9131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9133 hardcode_libdir_flag_spec='-R$libdir' 9134 ;; 9135 *) 9136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9137 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9138 ;; 9139 esac 9140 fi 9141 else 9142 ld_shlibs=no 9143 fi 9144 ;; 9145 9146 os2*) 9147 hardcode_libdir_flag_spec='-L$libdir' 9148 hardcode_minus_L=yes 9149 allow_undefined_flag=unsupported 9150 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' 9151 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9152 ;; 9153 9154 osf3*) 9155 if test "$GCC" = yes; then 9156 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9157 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' 9158 else 9159 allow_undefined_flag=' -expect_unresolved \*' 9160 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' 9161 fi 9162 archive_cmds_need_lc='no' 9163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9164 hardcode_libdir_separator=: 9165 ;; 9166 9167 osf4* | osf5*) # as osf3* with the addition of -msym flag 9168 if test "$GCC" = yes; then 9169 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9170 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' 9171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9172 else 9173 allow_undefined_flag=' -expect_unresolved \*' 9174 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' 9175 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~ 9176 $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' 9177 9178 # Both c and cxx compiler support -rpath directly 9179 hardcode_libdir_flag_spec='-rpath $libdir' 9180 fi 9181 archive_cmds_need_lc='no' 9182 hardcode_libdir_separator=: 9183 ;; 9184 9185 solaris*) 9186 no_undefined_flag=' -z defs' 9187 if test "$GCC" = yes; then 9188 wlarc='${wl}' 9189 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9191 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9192 else 9193 case `$CC -V 2>&1` in 9194 *"Compilers 5.0"*) 9195 wlarc='' 9196 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9197 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9198 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9199 ;; 9200 *) 9201 wlarc='${wl}' 9202 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9203 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9204 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9205 ;; 9206 esac 9207 fi 9208 hardcode_libdir_flag_spec='-R$libdir' 9209 hardcode_shlibpath_var=no 9210 case $host_os in 9211 solaris2.[0-5] | solaris2.[0-5].*) ;; 9212 *) 9213 # The compiler driver will combine and reorder linker options, 9214 # but understands `-z linker_flag'. GCC discards it without `$wl', 9215 # but is careful enough not to reorder. 9216 # Supported since Solaris 2.6 (maybe 2.5.1?) 9217 if test "$GCC" = yes; then 9218 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9219 else 9220 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9221 fi 9222 ;; 9223 esac 9224 link_all_deplibs=yes 9225 ;; 9226 9227 sunos4*) 9228 if test "x$host_vendor" = xsequent; then 9229 # Use $CC to link under sequent, because it throws in some extra .o 9230 # files that make .init and .fini sections work. 9231 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9232 else 9233 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9234 fi 9235 hardcode_libdir_flag_spec='-L$libdir' 9236 hardcode_direct=yes 9237 hardcode_minus_L=yes 9238 hardcode_shlibpath_var=no 9239 ;; 9240 9241 sysv4) 9242 case $host_vendor in 9243 sni) 9244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9245 hardcode_direct=yes # is this really true??? 9246 ;; 9247 siemens) 9248 ## LD is ld it makes a PLAMLIB 9249 ## CC just makes a GrossModule. 9250 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9251 reload_cmds='$CC -r -o $output$reload_objs' 9252 hardcode_direct=no 9253 ;; 9254 motorola) 9255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9256 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9257 ;; 9258 esac 9259 runpath_var='LD_RUN_PATH' 9260 hardcode_shlibpath_var=no 9261 ;; 9262 9263 sysv4.3*) 9264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9265 hardcode_shlibpath_var=no 9266 export_dynamic_flag_spec='-Bexport' 9267 ;; 9268 9269 sysv4*MP*) 9270 if test -d /usr/nec; then 9271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9272 hardcode_shlibpath_var=no 9273 runpath_var=LD_RUN_PATH 9274 hardcode_runpath_var=yes 9275 ld_shlibs=yes 9276 fi 9277 ;; 9278 9279 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9280 no_undefined_flag='${wl}-z,text' 9281 archive_cmds_need_lc=no 9282 hardcode_shlibpath_var=no 9283 runpath_var='LD_RUN_PATH' 9284 9285 if test "$GCC" = yes; then 9286 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9287 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9288 else 9289 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9290 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9291 fi 9292 ;; 9293 9294 sysv5* | sco3.2v5* | sco5v6*) 9295 # Note: We can NOT use -z defs as we might desire, because we do not 9296 # link with -lc, and that would cause any symbols used from libc to 9297 # always be unresolved, which means just about no library would 9298 # ever link correctly. If we're not using GNU ld we use -z text 9299 # though, which does catch some bad symbols but isn't as heavy-handed 9300 # as -z defs. 9301 no_undefined_flag='${wl}-z,text' 9302 allow_undefined_flag='${wl}-z,nodefs' 9303 archive_cmds_need_lc=no 9304 hardcode_shlibpath_var=no 9305 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9306 hardcode_libdir_separator=':' 9307 link_all_deplibs=yes 9308 export_dynamic_flag_spec='${wl}-Bexport' 9309 runpath_var='LD_RUN_PATH' 9310 9311 if test "$GCC" = yes; then 9312 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9313 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9314 else 9315 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9316 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9317 fi 9318 ;; 9319 9320 uts4*) 9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9322 hardcode_libdir_flag_spec='-L$libdir' 9323 hardcode_shlibpath_var=no 9324 ;; 9325 9326 *) 9327 ld_shlibs=no 9328 ;; 9329 esac 9330 9331 if test x$host_vendor = xsni; then 9332 case $host in 9333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9334 export_dynamic_flag_spec='${wl}-Blargedynsym' 9335 ;; 9336 esac 9337 fi 9338 fi 9339 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9341$as_echo "$ld_shlibs" >&6; } 9342test "$ld_shlibs" = no && can_build_shared=no 9343 9344with_gnu_ld=$with_gnu_ld 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360# 9361# Do we need to explicitly link libc? 9362# 9363case "x$archive_cmds_need_lc" in 9364x|xyes) 9365 # Assume -lc should be added 9366 archive_cmds_need_lc=yes 9367 9368 if test "$enable_shared" = yes && test "$GCC" = yes; then 9369 case $archive_cmds in 9370 *'~'*) 9371 # FIXME: we may have to deal with multi-command sequences. 9372 ;; 9373 '$CC '*) 9374 # Test whether the compiler implicitly links with -lc since on some 9375 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9376 # to ld, don't add -lc before -lgcc. 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9378$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9379 $RM conftest* 9380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9381 9382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9383 (eval $ac_compile) 2>&5 9384 ac_status=$? 9385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9386 test $ac_status = 0; } 2>conftest.err; then 9387 soname=conftest 9388 lib=conftest 9389 libobjs=conftest.$ac_objext 9390 deplibs= 9391 wl=$lt_prog_compiler_wl 9392 pic_flag=$lt_prog_compiler_pic 9393 compiler_flags=-v 9394 linker_flags=-v 9395 verstring= 9396 output_objdir=. 9397 libname=conftest 9398 lt_save_allow_undefined_flag=$allow_undefined_flag 9399 allow_undefined_flag= 9400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9401 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9402 ac_status=$? 9403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9404 test $ac_status = 0; } 9405 then 9406 archive_cmds_need_lc=no 9407 else 9408 archive_cmds_need_lc=yes 9409 fi 9410 allow_undefined_flag=$lt_save_allow_undefined_flag 9411 else 9412 cat conftest.err 1>&5 9413 fi 9414 $RM conftest* 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9416$as_echo "$archive_cmds_need_lc" >&6; } 9417 ;; 9418 esac 9419 fi 9420 ;; 9421esac 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9580$as_echo_n "checking dynamic linker characteristics... " >&6; } 9581 9582if test "$GCC" = yes; then 9583 case $host_os in 9584 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9585 *) lt_awk_arg="/^libraries:/" ;; 9586 esac 9587 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9588 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9589 # if the path contains ";" then we assume it to be the separator 9590 # otherwise default to the standard path separator (i.e. ":") - it is 9591 # assumed that no part of a normal pathname contains ";" but that should 9592 # okay in the real world where ";" in dirpaths is itself problematic. 9593 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9594 else 9595 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9596 fi 9597 # Ok, now we have the path, separated by spaces, we can step through it 9598 # and add multilib dir if necessary. 9599 lt_tmp_lt_search_path_spec= 9600 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9601 for lt_sys_path in $lt_search_path_spec; do 9602 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9604 else 9605 test -d "$lt_sys_path" && \ 9606 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9607 fi 9608 done 9609 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9610BEGIN {RS=" "; FS="/|\n";} { 9611 lt_foo=""; 9612 lt_count=0; 9613 for (lt_i = NF; lt_i > 0; lt_i--) { 9614 if ($lt_i != "" && $lt_i != ".") { 9615 if ($lt_i == "..") { 9616 lt_count++; 9617 } else { 9618 if (lt_count == 0) { 9619 lt_foo="/" $lt_i lt_foo; 9620 } else { 9621 lt_count--; 9622 } 9623 } 9624 } 9625 } 9626 if (lt_foo != "") { lt_freq[lt_foo]++; } 9627 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9628}'` 9629 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9630else 9631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9632fi 9633library_names_spec= 9634libname_spec='lib$name' 9635soname_spec= 9636shrext_cmds=".so" 9637postinstall_cmds= 9638postuninstall_cmds= 9639finish_cmds= 9640finish_eval= 9641shlibpath_var= 9642shlibpath_overrides_runpath=unknown 9643version_type=none 9644dynamic_linker="$host_os ld.so" 9645sys_lib_dlsearch_path_spec="/lib /usr/lib" 9646need_lib_prefix=unknown 9647hardcode_into_libs=no 9648 9649# when you set need_version to no, make sure it does not cause -set_version 9650# flags to be left without arguments 9651need_version=unknown 9652 9653case $host_os in 9654aix3*) 9655 version_type=linux 9656 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9657 shlibpath_var=LIBPATH 9658 9659 # AIX 3 has no versioning support, so we append a major version to the name. 9660 soname_spec='${libname}${release}${shared_ext}$major' 9661 ;; 9662 9663aix[4-9]*) 9664 version_type=linux 9665 need_lib_prefix=no 9666 need_version=no 9667 hardcode_into_libs=yes 9668 if test "$host_cpu" = ia64; then 9669 # AIX 5 supports IA64 9670 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9671 shlibpath_var=LD_LIBRARY_PATH 9672 else 9673 # With GCC up to 2.95.x, collect2 would create an import file 9674 # for dependence libraries. The import file would start with 9675 # the line `#! .'. This would cause the generated library to 9676 # depend on `.', always an invalid library. This was fixed in 9677 # development snapshots of GCC prior to 3.0. 9678 case $host_os in 9679 aix4 | aix4.[01] | aix4.[01].*) 9680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9681 echo ' yes ' 9682 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9683 : 9684 else 9685 can_build_shared=no 9686 fi 9687 ;; 9688 esac 9689 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9690 # soname into executable. Probably we can add versioning support to 9691 # collect2, so additional links can be useful in future. 9692 if test "$aix_use_runtimelinking" = yes; then 9693 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9694 # instead of lib<name>.a to let people know that these are not 9695 # typical AIX shared libraries. 9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9697 else 9698 # We preserve .a as extension for shared libraries through AIX4.2 9699 # and later when we are not doing run time linking. 9700 library_names_spec='${libname}${release}.a $libname.a' 9701 soname_spec='${libname}${release}${shared_ext}$major' 9702 fi 9703 shlibpath_var=LIBPATH 9704 fi 9705 ;; 9706 9707amigaos*) 9708 case $host_cpu in 9709 powerpc) 9710 # Since July 2007 AmigaOS4 officially supports .so libraries. 9711 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9713 ;; 9714 m68k) 9715 library_names_spec='$libname.ixlibrary $libname.a' 9716 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9717 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' 9718 ;; 9719 esac 9720 ;; 9721 9722beos*) 9723 library_names_spec='${libname}${shared_ext}' 9724 dynamic_linker="$host_os ld.so" 9725 shlibpath_var=LIBRARY_PATH 9726 ;; 9727 9728bsdi[45]*) 9729 version_type=linux 9730 need_version=no 9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9732 soname_spec='${libname}${release}${shared_ext}$major' 9733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9734 shlibpath_var=LD_LIBRARY_PATH 9735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9737 # the default ld.so.conf also contains /usr/contrib/lib and 9738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9739 # libtool to hard-code these into programs 9740 ;; 9741 9742cygwin* | mingw* | pw32* | cegcc*) 9743 version_type=windows 9744 shrext_cmds=".dll" 9745 need_version=no 9746 need_lib_prefix=no 9747 9748 case $GCC,$host_os in 9749 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9750 library_names_spec='$libname.dll.a' 9751 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9752 postinstall_cmds='base_file=`basename \${file}`~ 9753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9754 dldir=$destdir/`dirname \$dlpath`~ 9755 test -d \$dldir || mkdir -p \$dldir~ 9756 $install_prog $dir/$dlname \$dldir/$dlname~ 9757 chmod a+x \$dldir/$dlname~ 9758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9760 fi' 9761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9762 dlpath=$dir/\$dldll~ 9763 $RM \$dlpath' 9764 shlibpath_overrides_runpath=yes 9765 9766 case $host_os in 9767 cygwin*) 9768 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9771 ;; 9772 mingw* | cegcc*) 9773 # MinGW DLLs use traditional 'lib' prefix 9774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9775 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9776 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9777 # It is most probably a Windows format PATH printed by 9778 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9779 # path with ; separators, and with drive letters. We can handle the 9780 # drive letters (cygwin fileutils understands them), so leave them, 9781 # especially as we might pass files found there to a mingw objdump, 9782 # which wouldn't understand a cygwinified path. Ahh. 9783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9784 else 9785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9786 fi 9787 ;; 9788 pw32*) 9789 # pw32 DLLs use 'pw' prefix rather than 'lib' 9790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9791 ;; 9792 esac 9793 ;; 9794 9795 *) 9796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9797 ;; 9798 esac 9799 dynamic_linker='Win32 ld.exe' 9800 # FIXME: first we should search . and the directory the executable is in 9801 shlibpath_var=PATH 9802 ;; 9803 9804darwin* | rhapsody*) 9805 dynamic_linker="$host_os dyld" 9806 version_type=darwin 9807 need_lib_prefix=no 9808 need_version=no 9809 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9810 soname_spec='${libname}${release}${major}$shared_ext' 9811 shlibpath_overrides_runpath=yes 9812 shlibpath_var=DYLD_LIBRARY_PATH 9813 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9814 9815 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9816 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9817 ;; 9818 9819dgux*) 9820 version_type=linux 9821 need_lib_prefix=no 9822 need_version=no 9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9824 soname_spec='${libname}${release}${shared_ext}$major' 9825 shlibpath_var=LD_LIBRARY_PATH 9826 ;; 9827 9828freebsd1*) 9829 dynamic_linker=no 9830 ;; 9831 9832freebsd* | dragonfly*) 9833 # DragonFly does not have aout. When/if they implement a new 9834 # versioning mechanism, adjust this. 9835 if test -x /usr/bin/objformat; then 9836 objformat=`/usr/bin/objformat` 9837 else 9838 case $host_os in 9839 freebsd[123]*) objformat=aout ;; 9840 *) objformat=elf ;; 9841 esac 9842 fi 9843 version_type=freebsd-$objformat 9844 case $version_type in 9845 freebsd-elf*) 9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9847 need_version=no 9848 need_lib_prefix=no 9849 ;; 9850 freebsd-*) 9851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9852 need_version=yes 9853 ;; 9854 esac 9855 shlibpath_var=LD_LIBRARY_PATH 9856 case $host_os in 9857 freebsd2*) 9858 shlibpath_overrides_runpath=yes 9859 ;; 9860 freebsd3.[01]* | freebsdelf3.[01]*) 9861 shlibpath_overrides_runpath=yes 9862 hardcode_into_libs=yes 9863 ;; 9864 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9865 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9866 shlibpath_overrides_runpath=no 9867 hardcode_into_libs=yes 9868 ;; 9869 *) # from 4.6 on, and DragonFly 9870 shlibpath_overrides_runpath=yes 9871 hardcode_into_libs=yes 9872 ;; 9873 esac 9874 ;; 9875 9876gnu*) 9877 version_type=linux 9878 need_lib_prefix=no 9879 need_version=no 9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9881 soname_spec='${libname}${release}${shared_ext}$major' 9882 shlibpath_var=LD_LIBRARY_PATH 9883 hardcode_into_libs=yes 9884 ;; 9885 9886hpux9* | hpux10* | hpux11*) 9887 # Give a soname corresponding to the major version so that dld.sl refuses to 9888 # link against other versions. 9889 version_type=sunos 9890 need_lib_prefix=no 9891 need_version=no 9892 case $host_cpu in 9893 ia64*) 9894 shrext_cmds='.so' 9895 hardcode_into_libs=yes 9896 dynamic_linker="$host_os dld.so" 9897 shlibpath_var=LD_LIBRARY_PATH 9898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9900 soname_spec='${libname}${release}${shared_ext}$major' 9901 if test "X$HPUX_IA64_MODE" = X32; then 9902 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9903 else 9904 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9905 fi 9906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9907 ;; 9908 hppa*64*) 9909 shrext_cmds='.sl' 9910 hardcode_into_libs=yes 9911 dynamic_linker="$host_os dld.sl" 9912 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9913 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9915 soname_spec='${libname}${release}${shared_ext}$major' 9916 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9917 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9918 ;; 9919 *) 9920 shrext_cmds='.sl' 9921 dynamic_linker="$host_os dld.sl" 9922 shlibpath_var=SHLIB_PATH 9923 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9925 soname_spec='${libname}${release}${shared_ext}$major' 9926 ;; 9927 esac 9928 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9929 postinstall_cmds='chmod 555 $lib' 9930 ;; 9931 9932interix[3-9]*) 9933 version_type=linux 9934 need_lib_prefix=no 9935 need_version=no 9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9937 soname_spec='${libname}${release}${shared_ext}$major' 9938 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9939 shlibpath_var=LD_LIBRARY_PATH 9940 shlibpath_overrides_runpath=no 9941 hardcode_into_libs=yes 9942 ;; 9943 9944irix5* | irix6* | nonstopux*) 9945 case $host_os in 9946 nonstopux*) version_type=nonstopux ;; 9947 *) 9948 if test "$lt_cv_prog_gnu_ld" = yes; then 9949 version_type=linux 9950 else 9951 version_type=irix 9952 fi ;; 9953 esac 9954 need_lib_prefix=no 9955 need_version=no 9956 soname_spec='${libname}${release}${shared_ext}$major' 9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9958 case $host_os in 9959 irix5* | nonstopux*) 9960 libsuff= shlibsuff= 9961 ;; 9962 *) 9963 case $LD in # libtool.m4 will add one of these switches to LD 9964 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9965 libsuff= shlibsuff= libmagic=32-bit;; 9966 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9967 libsuff=32 shlibsuff=N32 libmagic=N32;; 9968 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9969 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9970 *) libsuff= shlibsuff= libmagic=never-match;; 9971 esac 9972 ;; 9973 esac 9974 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9975 shlibpath_overrides_runpath=no 9976 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9977 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9978 hardcode_into_libs=yes 9979 ;; 9980 9981# No shared lib support for Linux oldld, aout, or coff. 9982linux*oldld* | linux*aout* | linux*coff*) 9983 dynamic_linker=no 9984 ;; 9985 9986# This must be Linux ELF. 9987linux* | k*bsd*-gnu | kopensolaris*-gnu) 9988 version_type=linux 9989 need_lib_prefix=no 9990 need_version=no 9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9992 soname_spec='${libname}${release}${shared_ext}$major' 9993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9994 shlibpath_var=LD_LIBRARY_PATH 9995 shlibpath_overrides_runpath=no 9996 # Some binutils ld are patched to set DT_RUNPATH 9997 save_LDFLAGS=$LDFLAGS 9998 save_libdir=$libdir 9999 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10000 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10002/* end confdefs.h. */ 10003 10004int 10005main () 10006{ 10007 10008 ; 10009 return 0; 10010} 10011_ACEOF 10012if ac_fn_c_try_link "$LINENO"; then : 10013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10014 shlibpath_overrides_runpath=yes 10015fi 10016fi 10017rm -f core conftest.err conftest.$ac_objext \ 10018 conftest$ac_exeext conftest.$ac_ext 10019 LDFLAGS=$save_LDFLAGS 10020 libdir=$save_libdir 10021 10022 # This implies no fast_install, which is unacceptable. 10023 # Some rework will be needed to allow for fast_install 10024 # before this can be enabled. 10025 hardcode_into_libs=yes 10026 10027 # Append ld.so.conf contents to the search path 10028 if test -f /etc/ld.so.conf; then 10029 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' ' '` 10030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10031 fi 10032 10033 # We used to test for /lib/ld.so.1 and disable shared libraries on 10034 # powerpc, because MkLinux only supported shared libraries with the 10035 # GNU dynamic linker. Since this was broken with cross compilers, 10036 # most powerpc-linux boxes support dynamic linking these days and 10037 # people can always --disable-shared, the test was removed, and we 10038 # assume the GNU/Linux dynamic linker is in use. 10039 dynamic_linker='GNU/Linux ld.so' 10040 ;; 10041 10042netbsdelf*-gnu) 10043 version_type=linux 10044 need_lib_prefix=no 10045 need_version=no 10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10047 soname_spec='${libname}${release}${shared_ext}$major' 10048 shlibpath_var=LD_LIBRARY_PATH 10049 shlibpath_overrides_runpath=no 10050 hardcode_into_libs=yes 10051 dynamic_linker='NetBSD ld.elf_so' 10052 ;; 10053 10054netbsd*) 10055 version_type=sunos 10056 need_lib_prefix=no 10057 need_version=no 10058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10061 dynamic_linker='NetBSD (a.out) ld.so' 10062 else 10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10064 soname_spec='${libname}${release}${shared_ext}$major' 10065 dynamic_linker='NetBSD ld.elf_so' 10066 fi 10067 shlibpath_var=LD_LIBRARY_PATH 10068 shlibpath_overrides_runpath=yes 10069 hardcode_into_libs=yes 10070 ;; 10071 10072newsos6) 10073 version_type=linux 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 shlibpath_var=LD_LIBRARY_PATH 10076 shlibpath_overrides_runpath=yes 10077 ;; 10078 10079*nto* | *qnx*) 10080 version_type=qnx 10081 need_lib_prefix=no 10082 need_version=no 10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10084 soname_spec='${libname}${release}${shared_ext}$major' 10085 shlibpath_var=LD_LIBRARY_PATH 10086 shlibpath_overrides_runpath=no 10087 hardcode_into_libs=yes 10088 dynamic_linker='ldqnx.so' 10089 ;; 10090 10091openbsd*) 10092 version_type=sunos 10093 sys_lib_dlsearch_path_spec="/usr/lib" 10094 need_lib_prefix=no 10095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10096 case $host_os in 10097 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10098 *) need_version=no ;; 10099 esac 10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10102 shlibpath_var=LD_LIBRARY_PATH 10103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10104 case $host_os in 10105 openbsd2.[89] | openbsd2.[89].*) 10106 shlibpath_overrides_runpath=no 10107 ;; 10108 *) 10109 shlibpath_overrides_runpath=yes 10110 ;; 10111 esac 10112 else 10113 shlibpath_overrides_runpath=yes 10114 fi 10115 ;; 10116 10117os2*) 10118 libname_spec='$name' 10119 shrext_cmds=".dll" 10120 need_lib_prefix=no 10121 library_names_spec='$libname${shared_ext} $libname.a' 10122 dynamic_linker='OS/2 ld.exe' 10123 shlibpath_var=LIBPATH 10124 ;; 10125 10126osf3* | osf4* | osf5*) 10127 version_type=osf 10128 need_lib_prefix=no 10129 need_version=no 10130 soname_spec='${libname}${release}${shared_ext}$major' 10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10132 shlibpath_var=LD_LIBRARY_PATH 10133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10135 ;; 10136 10137rdos*) 10138 dynamic_linker=no 10139 ;; 10140 10141solaris*) 10142 version_type=linux 10143 need_lib_prefix=no 10144 need_version=no 10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10146 soname_spec='${libname}${release}${shared_ext}$major' 10147 shlibpath_var=LD_LIBRARY_PATH 10148 shlibpath_overrides_runpath=yes 10149 hardcode_into_libs=yes 10150 # ldd complains unless libraries are executable 10151 postinstall_cmds='chmod +x $lib' 10152 ;; 10153 10154sunos4*) 10155 version_type=sunos 10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10157 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10158 shlibpath_var=LD_LIBRARY_PATH 10159 shlibpath_overrides_runpath=yes 10160 if test "$with_gnu_ld" = yes; then 10161 need_lib_prefix=no 10162 fi 10163 need_version=yes 10164 ;; 10165 10166sysv4 | sysv4.3*) 10167 version_type=linux 10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10169 soname_spec='${libname}${release}${shared_ext}$major' 10170 shlibpath_var=LD_LIBRARY_PATH 10171 case $host_vendor in 10172 sni) 10173 shlibpath_overrides_runpath=no 10174 need_lib_prefix=no 10175 runpath_var=LD_RUN_PATH 10176 ;; 10177 siemens) 10178 need_lib_prefix=no 10179 ;; 10180 motorola) 10181 need_lib_prefix=no 10182 need_version=no 10183 shlibpath_overrides_runpath=no 10184 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10185 ;; 10186 esac 10187 ;; 10188 10189sysv4*MP*) 10190 if test -d /usr/nec ;then 10191 version_type=linux 10192 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10193 soname_spec='$libname${shared_ext}.$major' 10194 shlibpath_var=LD_LIBRARY_PATH 10195 fi 10196 ;; 10197 10198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10199 version_type=freebsd-elf 10200 need_lib_prefix=no 10201 need_version=no 10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10203 soname_spec='${libname}${release}${shared_ext}$major' 10204 shlibpath_var=LD_LIBRARY_PATH 10205 shlibpath_overrides_runpath=yes 10206 hardcode_into_libs=yes 10207 if test "$with_gnu_ld" = yes; then 10208 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10209 else 10210 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10211 case $host_os in 10212 sco3.2v5*) 10213 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10214 ;; 10215 esac 10216 fi 10217 sys_lib_dlsearch_path_spec='/usr/lib' 10218 ;; 10219 10220tpf*) 10221 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10222 version_type=linux 10223 need_lib_prefix=no 10224 need_version=no 10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10226 shlibpath_var=LD_LIBRARY_PATH 10227 shlibpath_overrides_runpath=no 10228 hardcode_into_libs=yes 10229 ;; 10230 10231uts4*) 10232 version_type=linux 10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10234 soname_spec='${libname}${release}${shared_ext}$major' 10235 shlibpath_var=LD_LIBRARY_PATH 10236 ;; 10237 10238*) 10239 dynamic_linker=no 10240 ;; 10241esac 10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10243$as_echo "$dynamic_linker" >&6; } 10244test "$dynamic_linker" = no && can_build_shared=no 10245 10246variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10247if test "$GCC" = yes; then 10248 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10249fi 10250 10251if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10252 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10253fi 10254if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10255 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10256fi 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10345$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10346hardcode_action= 10347if test -n "$hardcode_libdir_flag_spec" || 10348 test -n "$runpath_var" || 10349 test "X$hardcode_automatic" = "Xyes" ; then 10350 10351 # We can hardcode non-existent directories. 10352 if test "$hardcode_direct" != no && 10353 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10354 # have to relink, otherwise we might link with an installed library 10355 # when we should be linking with a yet-to-be-installed one 10356 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10357 test "$hardcode_minus_L" != no; then 10358 # Linking always hardcodes the temporary library directory. 10359 hardcode_action=relink 10360 else 10361 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10362 hardcode_action=immediate 10363 fi 10364else 10365 # We cannot hardcode anything, or else we can only hardcode existing 10366 # directories. 10367 hardcode_action=unsupported 10368fi 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10370$as_echo "$hardcode_action" >&6; } 10371 10372if test "$hardcode_action" = relink || 10373 test "$inherit_rpath" = yes; then 10374 # Fast installation is not supported 10375 enable_fast_install=no 10376elif test "$shlibpath_overrides_runpath" = yes || 10377 test "$enable_shared" = no; then 10378 # Fast installation is not necessary 10379 enable_fast_install=needless 10380fi 10381 10382 10383 10384 10385 10386 10387 if test "x$enable_dlopen" != xyes; then 10388 enable_dlopen=unknown 10389 enable_dlopen_self=unknown 10390 enable_dlopen_self_static=unknown 10391else 10392 lt_cv_dlopen=no 10393 lt_cv_dlopen_libs= 10394 10395 case $host_os in 10396 beos*) 10397 lt_cv_dlopen="load_add_on" 10398 lt_cv_dlopen_libs= 10399 lt_cv_dlopen_self=yes 10400 ;; 10401 10402 mingw* | pw32* | cegcc*) 10403 lt_cv_dlopen="LoadLibrary" 10404 lt_cv_dlopen_libs= 10405 ;; 10406 10407 cygwin*) 10408 lt_cv_dlopen="dlopen" 10409 lt_cv_dlopen_libs= 10410 ;; 10411 10412 darwin*) 10413 # if libdl is installed we need to link against it 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10415$as_echo_n "checking for dlopen in -ldl... " >&6; } 10416if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10417 $as_echo_n "(cached) " >&6 10418else 10419 ac_check_lib_save_LIBS=$LIBS 10420LIBS="-ldl $LIBS" 10421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10422/* end confdefs.h. */ 10423 10424/* Override any GCC internal prototype to avoid an error. 10425 Use char because int might match the return type of a GCC 10426 builtin and then its argument prototype would still apply. */ 10427#ifdef __cplusplus 10428extern "C" 10429#endif 10430char dlopen (); 10431int 10432main () 10433{ 10434return dlopen (); 10435 ; 10436 return 0; 10437} 10438_ACEOF 10439if ac_fn_c_try_link "$LINENO"; then : 10440 ac_cv_lib_dl_dlopen=yes 10441else 10442 ac_cv_lib_dl_dlopen=no 10443fi 10444rm -f core conftest.err conftest.$ac_objext \ 10445 conftest$ac_exeext conftest.$ac_ext 10446LIBS=$ac_check_lib_save_LIBS 10447fi 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10449$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10450if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10452else 10453 10454 lt_cv_dlopen="dyld" 10455 lt_cv_dlopen_libs= 10456 lt_cv_dlopen_self=yes 10457 10458fi 10459 10460 ;; 10461 10462 *) 10463 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10464if test "x$ac_cv_func_shl_load" = x""yes; then : 10465 lt_cv_dlopen="shl_load" 10466else 10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10468$as_echo_n "checking for shl_load in -ldld... " >&6; } 10469if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10470 $as_echo_n "(cached) " >&6 10471else 10472 ac_check_lib_save_LIBS=$LIBS 10473LIBS="-ldld $LIBS" 10474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10475/* end confdefs.h. */ 10476 10477/* Override any GCC internal prototype to avoid an error. 10478 Use char because int might match the return type of a GCC 10479 builtin and then its argument prototype would still apply. */ 10480#ifdef __cplusplus 10481extern "C" 10482#endif 10483char shl_load (); 10484int 10485main () 10486{ 10487return shl_load (); 10488 ; 10489 return 0; 10490} 10491_ACEOF 10492if ac_fn_c_try_link "$LINENO"; then : 10493 ac_cv_lib_dld_shl_load=yes 10494else 10495 ac_cv_lib_dld_shl_load=no 10496fi 10497rm -f core conftest.err conftest.$ac_objext \ 10498 conftest$ac_exeext conftest.$ac_ext 10499LIBS=$ac_check_lib_save_LIBS 10500fi 10501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10502$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10503if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10504 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10505else 10506 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10507if test "x$ac_cv_func_dlopen" = x""yes; then : 10508 lt_cv_dlopen="dlopen" 10509else 10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10511$as_echo_n "checking for dlopen in -ldl... " >&6; } 10512if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10513 $as_echo_n "(cached) " >&6 10514else 10515 ac_check_lib_save_LIBS=$LIBS 10516LIBS="-ldl $LIBS" 10517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10518/* end confdefs.h. */ 10519 10520/* Override any GCC internal prototype to avoid an error. 10521 Use char because int might match the return type of a GCC 10522 builtin and then its argument prototype would still apply. */ 10523#ifdef __cplusplus 10524extern "C" 10525#endif 10526char dlopen (); 10527int 10528main () 10529{ 10530return dlopen (); 10531 ; 10532 return 0; 10533} 10534_ACEOF 10535if ac_fn_c_try_link "$LINENO"; then : 10536 ac_cv_lib_dl_dlopen=yes 10537else 10538 ac_cv_lib_dl_dlopen=no 10539fi 10540rm -f core conftest.err conftest.$ac_objext \ 10541 conftest$ac_exeext conftest.$ac_ext 10542LIBS=$ac_check_lib_save_LIBS 10543fi 10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10545$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10546if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10548else 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10550$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10551if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10552 $as_echo_n "(cached) " >&6 10553else 10554 ac_check_lib_save_LIBS=$LIBS 10555LIBS="-lsvld $LIBS" 10556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557/* end confdefs.h. */ 10558 10559/* Override any GCC internal prototype to avoid an error. 10560 Use char because int might match the return type of a GCC 10561 builtin and then its argument prototype would still apply. */ 10562#ifdef __cplusplus 10563extern "C" 10564#endif 10565char dlopen (); 10566int 10567main () 10568{ 10569return dlopen (); 10570 ; 10571 return 0; 10572} 10573_ACEOF 10574if ac_fn_c_try_link "$LINENO"; then : 10575 ac_cv_lib_svld_dlopen=yes 10576else 10577 ac_cv_lib_svld_dlopen=no 10578fi 10579rm -f core conftest.err conftest.$ac_objext \ 10580 conftest$ac_exeext conftest.$ac_ext 10581LIBS=$ac_check_lib_save_LIBS 10582fi 10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10584$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10585if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10587else 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10589$as_echo_n "checking for dld_link in -ldld... " >&6; } 10590if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 ac_check_lib_save_LIBS=$LIBS 10594LIBS="-ldld $LIBS" 10595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10596/* end confdefs.h. */ 10597 10598/* Override any GCC internal prototype to avoid an error. 10599 Use char because int might match the return type of a GCC 10600 builtin and then its argument prototype would still apply. */ 10601#ifdef __cplusplus 10602extern "C" 10603#endif 10604char dld_link (); 10605int 10606main () 10607{ 10608return dld_link (); 10609 ; 10610 return 0; 10611} 10612_ACEOF 10613if ac_fn_c_try_link "$LINENO"; then : 10614 ac_cv_lib_dld_dld_link=yes 10615else 10616 ac_cv_lib_dld_dld_link=no 10617fi 10618rm -f core conftest.err conftest.$ac_objext \ 10619 conftest$ac_exeext conftest.$ac_ext 10620LIBS=$ac_check_lib_save_LIBS 10621fi 10622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10623$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10624if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10625 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10626fi 10627 10628 10629fi 10630 10631 10632fi 10633 10634 10635fi 10636 10637 10638fi 10639 10640 10641fi 10642 10643 ;; 10644 esac 10645 10646 if test "x$lt_cv_dlopen" != xno; then 10647 enable_dlopen=yes 10648 else 10649 enable_dlopen=no 10650 fi 10651 10652 case $lt_cv_dlopen in 10653 dlopen) 10654 save_CPPFLAGS="$CPPFLAGS" 10655 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10656 10657 save_LDFLAGS="$LDFLAGS" 10658 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10659 10660 save_LIBS="$LIBS" 10661 LIBS="$lt_cv_dlopen_libs $LIBS" 10662 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10664$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10665if test "${lt_cv_dlopen_self+set}" = set; then : 10666 $as_echo_n "(cached) " >&6 10667else 10668 if test "$cross_compiling" = yes; then : 10669 lt_cv_dlopen_self=cross 10670else 10671 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10672 lt_status=$lt_dlunknown 10673 cat > conftest.$ac_ext <<_LT_EOF 10674#line 10674 "configure" 10675#include "confdefs.h" 10676 10677#if HAVE_DLFCN_H 10678#include <dlfcn.h> 10679#endif 10680 10681#include <stdio.h> 10682 10683#ifdef RTLD_GLOBAL 10684# define LT_DLGLOBAL RTLD_GLOBAL 10685#else 10686# ifdef DL_GLOBAL 10687# define LT_DLGLOBAL DL_GLOBAL 10688# else 10689# define LT_DLGLOBAL 0 10690# endif 10691#endif 10692 10693/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10694 find out it does not work in some platform. */ 10695#ifndef LT_DLLAZY_OR_NOW 10696# ifdef RTLD_LAZY 10697# define LT_DLLAZY_OR_NOW RTLD_LAZY 10698# else 10699# ifdef DL_LAZY 10700# define LT_DLLAZY_OR_NOW DL_LAZY 10701# else 10702# ifdef RTLD_NOW 10703# define LT_DLLAZY_OR_NOW RTLD_NOW 10704# else 10705# ifdef DL_NOW 10706# define LT_DLLAZY_OR_NOW DL_NOW 10707# else 10708# define LT_DLLAZY_OR_NOW 0 10709# endif 10710# endif 10711# endif 10712# endif 10713#endif 10714 10715void fnord() { int i=42;} 10716int main () 10717{ 10718 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10719 int status = $lt_dlunknown; 10720 10721 if (self) 10722 { 10723 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10724 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10725 /* dlclose (self); */ 10726 } 10727 else 10728 puts (dlerror ()); 10729 10730 return status; 10731} 10732_LT_EOF 10733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10734 (eval $ac_link) 2>&5 10735 ac_status=$? 10736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10737 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10738 (./conftest; exit; ) >&5 2>/dev/null 10739 lt_status=$? 10740 case x$lt_status in 10741 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10742 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10743 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10744 esac 10745 else : 10746 # compilation failed 10747 lt_cv_dlopen_self=no 10748 fi 10749fi 10750rm -fr conftest* 10751 10752 10753fi 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10755$as_echo "$lt_cv_dlopen_self" >&6; } 10756 10757 if test "x$lt_cv_dlopen_self" = xyes; then 10758 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10760$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10761if test "${lt_cv_dlopen_self_static+set}" = set; then : 10762 $as_echo_n "(cached) " >&6 10763else 10764 if test "$cross_compiling" = yes; then : 10765 lt_cv_dlopen_self_static=cross 10766else 10767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10768 lt_status=$lt_dlunknown 10769 cat > conftest.$ac_ext <<_LT_EOF 10770#line 10770 "configure" 10771#include "confdefs.h" 10772 10773#if HAVE_DLFCN_H 10774#include <dlfcn.h> 10775#endif 10776 10777#include <stdio.h> 10778 10779#ifdef RTLD_GLOBAL 10780# define LT_DLGLOBAL RTLD_GLOBAL 10781#else 10782# ifdef DL_GLOBAL 10783# define LT_DLGLOBAL DL_GLOBAL 10784# else 10785# define LT_DLGLOBAL 0 10786# endif 10787#endif 10788 10789/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10790 find out it does not work in some platform. */ 10791#ifndef LT_DLLAZY_OR_NOW 10792# ifdef RTLD_LAZY 10793# define LT_DLLAZY_OR_NOW RTLD_LAZY 10794# else 10795# ifdef DL_LAZY 10796# define LT_DLLAZY_OR_NOW DL_LAZY 10797# else 10798# ifdef RTLD_NOW 10799# define LT_DLLAZY_OR_NOW RTLD_NOW 10800# else 10801# ifdef DL_NOW 10802# define LT_DLLAZY_OR_NOW DL_NOW 10803# else 10804# define LT_DLLAZY_OR_NOW 0 10805# endif 10806# endif 10807# endif 10808# endif 10809#endif 10810 10811void fnord() { int i=42;} 10812int main () 10813{ 10814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10815 int status = $lt_dlunknown; 10816 10817 if (self) 10818 { 10819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10820 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10821 /* dlclose (self); */ 10822 } 10823 else 10824 puts (dlerror ()); 10825 10826 return status; 10827} 10828_LT_EOF 10829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10830 (eval $ac_link) 2>&5 10831 ac_status=$? 10832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10833 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10834 (./conftest; exit; ) >&5 2>/dev/null 10835 lt_status=$? 10836 case x$lt_status in 10837 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10838 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10839 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10840 esac 10841 else : 10842 # compilation failed 10843 lt_cv_dlopen_self_static=no 10844 fi 10845fi 10846rm -fr conftest* 10847 10848 10849fi 10850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10851$as_echo "$lt_cv_dlopen_self_static" >&6; } 10852 fi 10853 10854 CPPFLAGS="$save_CPPFLAGS" 10855 LDFLAGS="$save_LDFLAGS" 10856 LIBS="$save_LIBS" 10857 ;; 10858 esac 10859 10860 case $lt_cv_dlopen_self in 10861 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10862 *) enable_dlopen_self=unknown ;; 10863 esac 10864 10865 case $lt_cv_dlopen_self_static in 10866 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10867 *) enable_dlopen_self_static=unknown ;; 10868 esac 10869fi 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887striplib= 10888old_striplib= 10889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10890$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10891if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10892 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10893 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10895$as_echo "yes" >&6; } 10896else 10897# FIXME - insert some real tests, host_os isn't really good enough 10898 case $host_os in 10899 darwin*) 10900 if test -n "$STRIP" ; then 10901 striplib="$STRIP -x" 10902 old_striplib="$STRIP -S" 10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10904$as_echo "yes" >&6; } 10905 else 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10907$as_echo "no" >&6; } 10908 fi 10909 ;; 10910 *) 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10912$as_echo "no" >&6; } 10913 ;; 10914 esac 10915fi 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 # Report which library types will actually be built 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10930$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10932$as_echo "$can_build_shared" >&6; } 10933 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10935$as_echo_n "checking whether to build shared libraries... " >&6; } 10936 test "$can_build_shared" = "no" && enable_shared=no 10937 10938 # On AIX, shared libraries and static libraries use the same namespace, and 10939 # are all built from PIC. 10940 case $host_os in 10941 aix3*) 10942 test "$enable_shared" = yes && enable_static=no 10943 if test -n "$RANLIB"; then 10944 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10945 postinstall_cmds='$RANLIB $lib' 10946 fi 10947 ;; 10948 10949 aix[4-9]*) 10950 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10951 test "$enable_shared" = yes && enable_static=no 10952 fi 10953 ;; 10954 esac 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10956$as_echo "$enable_shared" >&6; } 10957 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10959$as_echo_n "checking whether to build static libraries... " >&6; } 10960 # Make sure either enable_shared or enable_static is yes. 10961 test "$enable_shared" = yes || enable_static=yes 10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10963$as_echo "$enable_static" >&6; } 10964 10965 10966 10967 10968fi 10969ac_ext=c 10970ac_cpp='$CPP $CPPFLAGS' 10971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10973ac_compiler_gnu=$ac_cv_c_compiler_gnu 10974 10975CC="$lt_save_CC" 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 ac_config_commands="$ac_config_commands libtool" 10990 10991 10992 10993 10994# Only expand once: 10995 10996 10997ac_ext=c 10998ac_cpp='$CPP $CPPFLAGS' 10999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11001ac_compiler_gnu=$ac_cv_c_compiler_gnu 11002if test -n "$ac_tool_prefix"; then 11003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11004set dummy ${ac_tool_prefix}gcc; ac_word=$2 11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11006$as_echo_n "checking for $ac_word... " >&6; } 11007if test "${ac_cv_prog_CC+set}" = set; then : 11008 $as_echo_n "(cached) " >&6 11009else 11010 if test -n "$CC"; then 11011 ac_cv_prog_CC="$CC" # Let the user override the test. 11012else 11013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11014for as_dir in $PATH 11015do 11016 IFS=$as_save_IFS 11017 test -z "$as_dir" && as_dir=. 11018 for ac_exec_ext in '' $ac_executable_extensions; do 11019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11020 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11022 break 2 11023 fi 11024done 11025 done 11026IFS=$as_save_IFS 11027 11028fi 11029fi 11030CC=$ac_cv_prog_CC 11031if test -n "$CC"; then 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11033$as_echo "$CC" >&6; } 11034else 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11036$as_echo "no" >&6; } 11037fi 11038 11039 11040fi 11041if test -z "$ac_cv_prog_CC"; then 11042 ac_ct_CC=$CC 11043 # Extract the first word of "gcc", so it can be a program name with args. 11044set dummy gcc; ac_word=$2 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11046$as_echo_n "checking for $ac_word... " >&6; } 11047if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11048 $as_echo_n "(cached) " >&6 11049else 11050 if test -n "$ac_ct_CC"; then 11051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11052else 11053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11054for as_dir in $PATH 11055do 11056 IFS=$as_save_IFS 11057 test -z "$as_dir" && as_dir=. 11058 for ac_exec_ext in '' $ac_executable_extensions; do 11059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11060 ac_cv_prog_ac_ct_CC="gcc" 11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11062 break 2 11063 fi 11064done 11065 done 11066IFS=$as_save_IFS 11067 11068fi 11069fi 11070ac_ct_CC=$ac_cv_prog_ac_ct_CC 11071if test -n "$ac_ct_CC"; then 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11073$as_echo "$ac_ct_CC" >&6; } 11074else 11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11076$as_echo "no" >&6; } 11077fi 11078 11079 if test "x$ac_ct_CC" = x; then 11080 CC="" 11081 else 11082 case $cross_compiling:$ac_tool_warned in 11083yes:) 11084{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11085$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11086ac_tool_warned=yes ;; 11087esac 11088 CC=$ac_ct_CC 11089 fi 11090else 11091 CC="$ac_cv_prog_CC" 11092fi 11093 11094if test -z "$CC"; then 11095 if test -n "$ac_tool_prefix"; then 11096 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11097set dummy ${ac_tool_prefix}cc; ac_word=$2 11098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11099$as_echo_n "checking for $ac_word... " >&6; } 11100if test "${ac_cv_prog_CC+set}" = set; then : 11101 $as_echo_n "(cached) " >&6 11102else 11103 if test -n "$CC"; then 11104 ac_cv_prog_CC="$CC" # Let the user override the test. 11105else 11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11107for as_dir in $PATH 11108do 11109 IFS=$as_save_IFS 11110 test -z "$as_dir" && as_dir=. 11111 for ac_exec_ext in '' $ac_executable_extensions; do 11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11113 ac_cv_prog_CC="${ac_tool_prefix}cc" 11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11115 break 2 11116 fi 11117done 11118 done 11119IFS=$as_save_IFS 11120 11121fi 11122fi 11123CC=$ac_cv_prog_CC 11124if test -n "$CC"; then 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11126$as_echo "$CC" >&6; } 11127else 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11129$as_echo "no" >&6; } 11130fi 11131 11132 11133 fi 11134fi 11135if test -z "$CC"; then 11136 # Extract the first word of "cc", so it can be a program name with args. 11137set dummy cc; ac_word=$2 11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11139$as_echo_n "checking for $ac_word... " >&6; } 11140if test "${ac_cv_prog_CC+set}" = set; then : 11141 $as_echo_n "(cached) " >&6 11142else 11143 if test -n "$CC"; then 11144 ac_cv_prog_CC="$CC" # Let the user override the test. 11145else 11146 ac_prog_rejected=no 11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11148for as_dir in $PATH 11149do 11150 IFS=$as_save_IFS 11151 test -z "$as_dir" && as_dir=. 11152 for ac_exec_ext in '' $ac_executable_extensions; do 11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11155 ac_prog_rejected=yes 11156 continue 11157 fi 11158 ac_cv_prog_CC="cc" 11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11160 break 2 11161 fi 11162done 11163 done 11164IFS=$as_save_IFS 11165 11166if test $ac_prog_rejected = yes; then 11167 # We found a bogon in the path, so make sure we never use it. 11168 set dummy $ac_cv_prog_CC 11169 shift 11170 if test $# != 0; then 11171 # We chose a different compiler from the bogus one. 11172 # However, it has the same basename, so the bogon will be chosen 11173 # first if we set CC to just the basename; use the full file name. 11174 shift 11175 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11176 fi 11177fi 11178fi 11179fi 11180CC=$ac_cv_prog_CC 11181if test -n "$CC"; then 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11183$as_echo "$CC" >&6; } 11184else 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11186$as_echo "no" >&6; } 11187fi 11188 11189 11190fi 11191if test -z "$CC"; then 11192 if test -n "$ac_tool_prefix"; then 11193 for ac_prog in cl.exe 11194 do 11195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11196set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11198$as_echo_n "checking for $ac_word... " >&6; } 11199if test "${ac_cv_prog_CC+set}" = set; then : 11200 $as_echo_n "(cached) " >&6 11201else 11202 if test -n "$CC"; then 11203 ac_cv_prog_CC="$CC" # Let the user override the test. 11204else 11205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11206for as_dir in $PATH 11207do 11208 IFS=$as_save_IFS 11209 test -z "$as_dir" && as_dir=. 11210 for ac_exec_ext in '' $ac_executable_extensions; do 11211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11214 break 2 11215 fi 11216done 11217 done 11218IFS=$as_save_IFS 11219 11220fi 11221fi 11222CC=$ac_cv_prog_CC 11223if test -n "$CC"; then 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11225$as_echo "$CC" >&6; } 11226else 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11228$as_echo "no" >&6; } 11229fi 11230 11231 11232 test -n "$CC" && break 11233 done 11234fi 11235if test -z "$CC"; then 11236 ac_ct_CC=$CC 11237 for ac_prog in cl.exe 11238do 11239 # Extract the first word of "$ac_prog", so it can be a program name with args. 11240set dummy $ac_prog; ac_word=$2 11241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11242$as_echo_n "checking for $ac_word... " >&6; } 11243if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11244 $as_echo_n "(cached) " >&6 11245else 11246 if test -n "$ac_ct_CC"; then 11247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11248else 11249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11250for as_dir in $PATH 11251do 11252 IFS=$as_save_IFS 11253 test -z "$as_dir" && as_dir=. 11254 for ac_exec_ext in '' $ac_executable_extensions; do 11255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11256 ac_cv_prog_ac_ct_CC="$ac_prog" 11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11258 break 2 11259 fi 11260done 11261 done 11262IFS=$as_save_IFS 11263 11264fi 11265fi 11266ac_ct_CC=$ac_cv_prog_ac_ct_CC 11267if test -n "$ac_ct_CC"; then 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11269$as_echo "$ac_ct_CC" >&6; } 11270else 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11272$as_echo "no" >&6; } 11273fi 11274 11275 11276 test -n "$ac_ct_CC" && break 11277done 11278 11279 if test "x$ac_ct_CC" = x; then 11280 CC="" 11281 else 11282 case $cross_compiling:$ac_tool_warned in 11283yes:) 11284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11286ac_tool_warned=yes ;; 11287esac 11288 CC=$ac_ct_CC 11289 fi 11290fi 11291 11292fi 11293 11294 11295test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11297as_fn_error "no acceptable C compiler found in \$PATH 11298See \`config.log' for more details." "$LINENO" 5; } 11299 11300# Provide some information about the compiler. 11301$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11302set X $ac_compile 11303ac_compiler=$2 11304for ac_option in --version -v -V -qversion; do 11305 { { ac_try="$ac_compiler $ac_option >&5" 11306case "(($ac_try" in 11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11308 *) ac_try_echo=$ac_try;; 11309esac 11310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11311$as_echo "$ac_try_echo"; } >&5 11312 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11313 ac_status=$? 11314 if test -s conftest.err; then 11315 sed '10a\ 11316... rest of stderr output deleted ... 11317 10q' conftest.err >conftest.er1 11318 cat conftest.er1 >&5 11319 fi 11320 rm -f conftest.er1 conftest.err 11321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11322 test $ac_status = 0; } 11323done 11324 11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11326$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11327if test "${ac_cv_c_compiler_gnu+set}" = set; then : 11328 $as_echo_n "(cached) " >&6 11329else 11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11331/* end confdefs.h. */ 11332 11333int 11334main () 11335{ 11336#ifndef __GNUC__ 11337 choke me 11338#endif 11339 11340 ; 11341 return 0; 11342} 11343_ACEOF 11344if ac_fn_c_try_compile "$LINENO"; then : 11345 ac_compiler_gnu=yes 11346else 11347 ac_compiler_gnu=no 11348fi 11349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11350ac_cv_c_compiler_gnu=$ac_compiler_gnu 11351 11352fi 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11354$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11355if test $ac_compiler_gnu = yes; then 11356 GCC=yes 11357else 11358 GCC= 11359fi 11360ac_test_CFLAGS=${CFLAGS+set} 11361ac_save_CFLAGS=$CFLAGS 11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11363$as_echo_n "checking whether $CC accepts -g... " >&6; } 11364if test "${ac_cv_prog_cc_g+set}" = set; then : 11365 $as_echo_n "(cached) " >&6 11366else 11367 ac_save_c_werror_flag=$ac_c_werror_flag 11368 ac_c_werror_flag=yes 11369 ac_cv_prog_cc_g=no 11370 CFLAGS="-g" 11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11372/* end confdefs.h. */ 11373 11374int 11375main () 11376{ 11377 11378 ; 11379 return 0; 11380} 11381_ACEOF 11382if ac_fn_c_try_compile "$LINENO"; then : 11383 ac_cv_prog_cc_g=yes 11384else 11385 CFLAGS="" 11386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11387/* end confdefs.h. */ 11388 11389int 11390main () 11391{ 11392 11393 ; 11394 return 0; 11395} 11396_ACEOF 11397if ac_fn_c_try_compile "$LINENO"; then : 11398 11399else 11400 ac_c_werror_flag=$ac_save_c_werror_flag 11401 CFLAGS="-g" 11402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11403/* end confdefs.h. */ 11404 11405int 11406main () 11407{ 11408 11409 ; 11410 return 0; 11411} 11412_ACEOF 11413if ac_fn_c_try_compile "$LINENO"; then : 11414 ac_cv_prog_cc_g=yes 11415fi 11416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11417fi 11418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11419fi 11420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11421 ac_c_werror_flag=$ac_save_c_werror_flag 11422fi 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11424$as_echo "$ac_cv_prog_cc_g" >&6; } 11425if test "$ac_test_CFLAGS" = set; then 11426 CFLAGS=$ac_save_CFLAGS 11427elif test $ac_cv_prog_cc_g = yes; then 11428 if test "$GCC" = yes; then 11429 CFLAGS="-g -O2" 11430 else 11431 CFLAGS="-g" 11432 fi 11433else 11434 if test "$GCC" = yes; then 11435 CFLAGS="-O2" 11436 else 11437 CFLAGS= 11438 fi 11439fi 11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11441$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11442if test "${ac_cv_prog_cc_c89+set}" = set; then : 11443 $as_echo_n "(cached) " >&6 11444else 11445 ac_cv_prog_cc_c89=no 11446ac_save_CC=$CC 11447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11448/* end confdefs.h. */ 11449#include <stdarg.h> 11450#include <stdio.h> 11451#include <sys/types.h> 11452#include <sys/stat.h> 11453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11454struct buf { int x; }; 11455FILE * (*rcsopen) (struct buf *, struct stat *, int); 11456static char *e (p, i) 11457 char **p; 11458 int i; 11459{ 11460 return p[i]; 11461} 11462static char *f (char * (*g) (char **, int), char **p, ...) 11463{ 11464 char *s; 11465 va_list v; 11466 va_start (v,p); 11467 s = g (p, va_arg (v,int)); 11468 va_end (v); 11469 return s; 11470} 11471 11472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11473 function prototypes and stuff, but not '\xHH' hex character constants. 11474 These don't provoke an error unfortunately, instead are silently treated 11475 as 'x'. The following induces an error, until -std is added to get 11476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11477 array size at least. It's necessary to write '\x00'==0 to get something 11478 that's true only with -std. */ 11479int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11480 11481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11482 inside strings and character constants. */ 11483#define FOO(x) 'x' 11484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11485 11486int test (int i, double x); 11487struct s1 {int (*f) (int a);}; 11488struct s2 {int (*f) (double a);}; 11489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11490int argc; 11491char **argv; 11492int 11493main () 11494{ 11495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11496 ; 11497 return 0; 11498} 11499_ACEOF 11500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11502do 11503 CC="$ac_save_CC $ac_arg" 11504 if ac_fn_c_try_compile "$LINENO"; then : 11505 ac_cv_prog_cc_c89=$ac_arg 11506fi 11507rm -f core conftest.err conftest.$ac_objext 11508 test "x$ac_cv_prog_cc_c89" != "xno" && break 11509done 11510rm -f conftest.$ac_ext 11511CC=$ac_save_CC 11512 11513fi 11514# AC_CACHE_VAL 11515case "x$ac_cv_prog_cc_c89" in 11516 x) 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11518$as_echo "none needed" >&6; } ;; 11519 xno) 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11521$as_echo "unsupported" >&6; } ;; 11522 *) 11523 CC="$CC $ac_cv_prog_cc_c89" 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11526esac 11527if test "x$ac_cv_prog_cc_c89" != xno; then : 11528 11529fi 11530 11531ac_ext=c 11532ac_cpp='$CPP $CPPFLAGS' 11533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11535ac_compiler_gnu=$ac_cv_c_compiler_gnu 11536 11537depcc="$CC" am_compiler_list= 11538 11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11540$as_echo_n "checking dependency style of $depcc... " >&6; } 11541if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 11542 $as_echo_n "(cached) " >&6 11543else 11544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11545 # We make a subdir and do the tests there. Otherwise we can end up 11546 # making bogus files that we don't know about and never remove. For 11547 # instance it was reported that on HP-UX the gcc test will end up 11548 # making a dummy file named `D' -- because `-MD' means `put the output 11549 # in D'. 11550 mkdir conftest.dir 11551 # Copy depcomp to subdir because otherwise we won't find it if we're 11552 # using a relative directory. 11553 cp "$am_depcomp" conftest.dir 11554 cd conftest.dir 11555 # We will build objects and dependencies in a subdirectory because 11556 # it helps to detect inapplicable dependency modes. For instance 11557 # both Tru64's cc and ICC support -MD to output dependencies as a 11558 # side effect of compilation, but ICC will put the dependencies in 11559 # the current directory while Tru64 will put them in the object 11560 # directory. 11561 mkdir sub 11562 11563 am_cv_CC_dependencies_compiler_type=none 11564 if test "$am_compiler_list" = ""; then 11565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11566 fi 11567 am__universal=false 11568 case " $depcc " in #( 11569 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11570 esac 11571 11572 for depmode in $am_compiler_list; do 11573 # Setup a source with many dependencies, because some compilers 11574 # like to wrap large dependency lists on column 80 (with \), and 11575 # we should not choose a depcomp mode which is confused by this. 11576 # 11577 # We need to recreate these files for each test, as the compiler may 11578 # overwrite some of them when testing with obscure command lines. 11579 # This happens at least with the AIX C compiler. 11580 : > sub/conftest.c 11581 for i in 1 2 3 4 5 6; do 11582 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11584 # Solaris 8's {/usr,}/bin/sh. 11585 touch sub/conftst$i.h 11586 done 11587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11588 11589 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11590 # mode. It turns out that the SunPro C++ compiler does not properly 11591 # handle `-M -o', and we need to detect this. Also, some Intel 11592 # versions had trouble with output in subdirs 11593 am__obj=sub/conftest.${OBJEXT-o} 11594 am__minus_obj="-o $am__obj" 11595 case $depmode in 11596 gcc) 11597 # This depmode causes a compiler race in universal mode. 11598 test "$am__universal" = false || continue 11599 ;; 11600 nosideeffect) 11601 # after this tag, mechanisms are not by side-effect, so they'll 11602 # only be used when explicitly requested 11603 if test "x$enable_dependency_tracking" = xyes; then 11604 continue 11605 else 11606 break 11607 fi 11608 ;; 11609 msvisualcpp | msvcmsys) 11610 # This compiler won't grok `-c -o', but also, the minuso test has 11611 # not run yet. These depmodes are late enough in the game, and 11612 # so weak that their functioning should not be impacted. 11613 am__obj=conftest.${OBJEXT-o} 11614 am__minus_obj= 11615 ;; 11616 none) break ;; 11617 esac 11618 if depmode=$depmode \ 11619 source=sub/conftest.c object=$am__obj \ 11620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11622 >/dev/null 2>conftest.err && 11623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11627 # icc doesn't choke on unknown options, it will just issue warnings 11628 # or remarks (even with -Werror). So we grep stderr for any message 11629 # that says an option was ignored or not supported. 11630 # When given -MP, icc 7.0 and 7.1 complain thusly: 11631 # icc: Command line warning: ignoring option '-M'; no argument required 11632 # The diagnosis changed in icc 8.0: 11633 # icc: Command line remark: option '-MP' not supported 11634 if (grep 'ignoring option' conftest.err || 11635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11636 am_cv_CC_dependencies_compiler_type=$depmode 11637 break 11638 fi 11639 fi 11640 done 11641 11642 cd .. 11643 rm -rf conftest.dir 11644else 11645 am_cv_CC_dependencies_compiler_type=none 11646fi 11647 11648fi 11649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11650$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11651CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11652 11653 if 11654 test "x$enable_dependency_tracking" != xno \ 11655 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11656 am__fastdepCC_TRUE= 11657 am__fastdepCC_FALSE='#' 11658else 11659 am__fastdepCC_TRUE='#' 11660 am__fastdepCC_FALSE= 11661fi 11662 11663 11664 11665# Extract the first word of "xsltproc", so it can be a program name with args. 11666set dummy xsltproc; ac_word=$2 11667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11668$as_echo_n "checking for $ac_word... " >&6; } 11669if test "${ac_cv_path_XSLTPROC+set}" = set; then : 11670 $as_echo_n "(cached) " >&6 11671else 11672 case $XSLTPROC in 11673 [\\/]* | ?:[\\/]*) 11674 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 11675 ;; 11676 *) 11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11678for as_dir in $PATH 11679do 11680 IFS=$as_save_IFS 11681 test -z "$as_dir" && as_dir=. 11682 for ac_exec_ext in '' $ac_executable_extensions; do 11683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11684 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 11685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11686 break 2 11687 fi 11688done 11689 done 11690IFS=$as_save_IFS 11691 11692 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no" 11693 ;; 11694esac 11695fi 11696XSLTPROC=$ac_cv_path_XSLTPROC 11697if test -n "$XSLTPROC"; then 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 11699$as_echo "$XSLTPROC" >&6; } 11700else 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11702$as_echo "no" >&6; } 11703fi 11704 11705 11706if test "$XSLTPROC" = "no"; then 11707 as_fn_error "XCB requires xsltproc." "$LINENO" 5 11708fi 11709 11710HTML_CHECK_RESULT=false 11711if test x"$HAVE_CHECK" = xyes; then 11712 if test x"$XSLTPROC" != xno; then 11713 HTML_CHECK_RESULT=true 11714 fi 11715fi 11716 11717 11718# Checks for pkg-config packages 11719 11720pkg_failed=no 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5 11722$as_echo_n "checking for XCBPROTO... " >&6; } 11723 11724if test -n "$PKG_CONFIG"; then 11725 if test -n "$XCBPROTO_CFLAGS"; then 11726 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS" 11727 else 11728 if test -n "$PKG_CONFIG" && \ 11729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.6\""; } >&5 11730 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.6") 2>&5 11731 ac_status=$? 11732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11733 test $ac_status = 0; }; then 11734 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.6" 2>/dev/null` 11735else 11736 pkg_failed=yes 11737fi 11738 fi 11739else 11740 pkg_failed=untried 11741fi 11742if test -n "$PKG_CONFIG"; then 11743 if test -n "$XCBPROTO_LIBS"; then 11744 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS" 11745 else 11746 if test -n "$PKG_CONFIG" && \ 11747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.6\""; } >&5 11748 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.6") 2>&5 11749 ac_status=$? 11750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11751 test $ac_status = 0; }; then 11752 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.6" 2>/dev/null` 11753else 11754 pkg_failed=yes 11755fi 11756 fi 11757else 11758 pkg_failed=untried 11759fi 11760 11761 11762 11763if test $pkg_failed = yes; then 11764 11765if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11766 _pkg_short_errors_supported=yes 11767else 11768 _pkg_short_errors_supported=no 11769fi 11770 if test $_pkg_short_errors_supported = yes; then 11771 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-proto >= 1.6"` 11772 else 11773 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-proto >= 1.6"` 11774 fi 11775 # Put the nasty error message in config.log where it belongs 11776 echo "$XCBPROTO_PKG_ERRORS" >&5 11777 11778 as_fn_error "Package requirements (xcb-proto >= 1.6) were not met: 11779 11780$XCBPROTO_PKG_ERRORS 11781 11782Consider adjusting the PKG_CONFIG_PATH environment variable if you 11783installed software in a non-standard prefix. 11784 11785Alternatively, you may set the environment variables XCBPROTO_CFLAGS 11786and XCBPROTO_LIBS to avoid the need to call pkg-config. 11787See the pkg-config man page for more details. 11788" "$LINENO" 5 11789elif test $pkg_failed = untried; then 11790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11792as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11793is in your PATH or set the PKG_CONFIG environment variable to the full 11794path to pkg-config. 11795 11796Alternatively, you may set the environment variables XCBPROTO_CFLAGS 11797and XCBPROTO_LIBS to avoid the need to call pkg-config. 11798See the pkg-config man page for more details. 11799 11800To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11801See \`config.log' for more details." "$LINENO" 5; } 11802else 11803 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS 11804 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11806$as_echo "yes" >&6; } 11807 : 11808fi 11809NEEDED="pthread-stubs xau >= 0.99.2" 11810 11811pkg_failed=no 11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5 11813$as_echo_n "checking for NEEDED... " >&6; } 11814 11815if test -n "$PKG_CONFIG"; then 11816 if test -n "$NEEDED_CFLAGS"; then 11817 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS" 11818 else 11819 if test -n "$PKG_CONFIG" && \ 11820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 11821 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 11822 ac_status=$? 11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11824 test $ac_status = 0; }; then 11825 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null` 11826else 11827 pkg_failed=yes 11828fi 11829 fi 11830else 11831 pkg_failed=untried 11832fi 11833if test -n "$PKG_CONFIG"; then 11834 if test -n "$NEEDED_LIBS"; then 11835 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS" 11836 else 11837 if test -n "$PKG_CONFIG" && \ 11838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 11839 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 11840 ac_status=$? 11841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11842 test $ac_status = 0; }; then 11843 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null` 11844else 11845 pkg_failed=yes 11846fi 11847 fi 11848else 11849 pkg_failed=untried 11850fi 11851 11852 11853 11854if test $pkg_failed = yes; then 11855 11856if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11857 _pkg_short_errors_supported=yes 11858else 11859 _pkg_short_errors_supported=no 11860fi 11861 if test $_pkg_short_errors_supported = yes; then 11862 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$NEEDED"` 11863 else 11864 NEEDED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$NEEDED"` 11865 fi 11866 # Put the nasty error message in config.log where it belongs 11867 echo "$NEEDED_PKG_ERRORS" >&5 11868 11869 as_fn_error "Package requirements ($NEEDED) were not met: 11870 11871$NEEDED_PKG_ERRORS 11872 11873Consider adjusting the PKG_CONFIG_PATH environment variable if you 11874installed software in a non-standard prefix. 11875 11876Alternatively, you may set the environment variables NEEDED_CFLAGS 11877and NEEDED_LIBS to avoid the need to call pkg-config. 11878See the pkg-config man page for more details. 11879" "$LINENO" 5 11880elif test $pkg_failed = untried; then 11881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11883as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11884is in your PATH or set the PKG_CONFIG environment variable to the full 11885path to pkg-config. 11886 11887Alternatively, you may set the environment variables NEEDED_CFLAGS 11888and NEEDED_LIBS to avoid the need to call pkg-config. 11889See the pkg-config man page for more details. 11890 11891To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11892See \`config.log' for more details." "$LINENO" 5; } 11893else 11894 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS 11895 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11897$as_echo "yes" >&6; } 11898 : 11899fi 11900 11901have_xdmcp="no" 11902 11903pkg_failed=no 11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 11905$as_echo_n "checking for XDMCP... " >&6; } 11906 11907if test -n "$PKG_CONFIG"; then 11908 if test -n "$XDMCP_CFLAGS"; then 11909 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 11910 else 11911 if test -n "$PKG_CONFIG" && \ 11912 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 11913 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 11914 ac_status=$? 11915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11916 test $ac_status = 0; }; then 11917 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 11918else 11919 pkg_failed=yes 11920fi 11921 fi 11922else 11923 pkg_failed=untried 11924fi 11925if test -n "$PKG_CONFIG"; then 11926 if test -n "$XDMCP_LIBS"; then 11927 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 11928 else 11929 if test -n "$PKG_CONFIG" && \ 11930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 11931 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 11932 ac_status=$? 11933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11934 test $ac_status = 0; }; then 11935 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 11936else 11937 pkg_failed=yes 11938fi 11939 fi 11940else 11941 pkg_failed=untried 11942fi 11943 11944 11945 11946if test $pkg_failed = yes; then 11947 11948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11949 _pkg_short_errors_supported=yes 11950else 11951 _pkg_short_errors_supported=no 11952fi 11953 if test $_pkg_short_errors_supported = yes; then 11954 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"` 11955 else 11956 XDMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"` 11957 fi 11958 # Put the nasty error message in config.log where it belongs 11959 echo "$XDMCP_PKG_ERRORS" >&5 11960 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11962$as_echo "no" >&6; } 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11964$as_echo "no" >&6; } 11965elif test $pkg_failed = untried; then 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11967$as_echo "no" >&6; } 11968else 11969 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 11970 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11972$as_echo "yes" >&6; } 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 11974$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 11975if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 11976 $as_echo_n "(cached) " >&6 11977else 11978 ac_check_lib_save_LIBS=$LIBS 11979LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 11980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11981/* end confdefs.h. */ 11982 11983/* Override any GCC internal prototype to avoid an error. 11984 Use char because int might match the return type of a GCC 11985 builtin and then its argument prototype would still apply. */ 11986#ifdef __cplusplus 11987extern "C" 11988#endif 11989char XdmcpWrap (); 11990int 11991main () 11992{ 11993return XdmcpWrap (); 11994 ; 11995 return 0; 11996} 11997_ACEOF 11998if ac_fn_c_try_link "$LINENO"; then : 11999 ac_cv_lib_Xdmcp_XdmcpWrap=yes 12000else 12001 ac_cv_lib_Xdmcp_XdmcpWrap=no 12002fi 12003rm -f core conftest.err conftest.$ac_objext \ 12004 conftest$ac_exeext conftest.$ac_ext 12005LIBS=$ac_check_lib_save_LIBS 12006fi 12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 12008$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 12009if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 12010 12011 12012$as_echo "#define HASXDMAUTH 1" >>confdefs.h 12013 12014 NEEDED="$NEEDED xdmcp" 12015 have_xdmcp="yes" 12016 12017else 12018 12019 XDMCP_CFLAGS= 12020 XDMCP_LIBS= 12021 12022fi 12023 12024fi 12025 12026 12027 12028# Find the xcb-proto protocol descriptions 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5 12030$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; } 12031XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` 12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5 12033$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; } 12034 12035 12036# Find the xcb-proto version 12037XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto` 12038 12039 12040# Find the xcbgen Python package 12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5 12042$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; } 12043XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto` 12044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5 12045$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; } 12046 12047 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12049$as_echo_n "checking for ANSI C header files... " >&6; } 12050if test "${ac_cv_header_stdc+set}" = set; then : 12051 $as_echo_n "(cached) " >&6 12052else 12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055#include <stdlib.h> 12056#include <stdarg.h> 12057#include <string.h> 12058#include <float.h> 12059 12060int 12061main () 12062{ 12063 12064 ; 12065 return 0; 12066} 12067_ACEOF 12068if ac_fn_c_try_compile "$LINENO"; then : 12069 ac_cv_header_stdc=yes 12070else 12071 ac_cv_header_stdc=no 12072fi 12073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12074 12075if test $ac_cv_header_stdc = yes; then 12076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12078/* end confdefs.h. */ 12079#include <string.h> 12080 12081_ACEOF 12082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12083 $EGREP "memchr" >/dev/null 2>&1; then : 12084 12085else 12086 ac_cv_header_stdc=no 12087fi 12088rm -f conftest* 12089 12090fi 12091 12092if test $ac_cv_header_stdc = yes; then 12093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12095/* end confdefs.h. */ 12096#include <stdlib.h> 12097 12098_ACEOF 12099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12100 $EGREP "free" >/dev/null 2>&1; then : 12101 12102else 12103 ac_cv_header_stdc=no 12104fi 12105rm -f conftest* 12106 12107fi 12108 12109if test $ac_cv_header_stdc = yes; then 12110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12111 if test "$cross_compiling" = yes; then : 12112 : 12113else 12114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115/* end confdefs.h. */ 12116#include <ctype.h> 12117#include <stdlib.h> 12118#if ((' ' & 0x0FF) == 0x020) 12119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12121#else 12122# define ISLOWER(c) \ 12123 (('a' <= (c) && (c) <= 'i') \ 12124 || ('j' <= (c) && (c) <= 'r') \ 12125 || ('s' <= (c) && (c) <= 'z')) 12126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12127#endif 12128 12129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12130int 12131main () 12132{ 12133 int i; 12134 for (i = 0; i < 256; i++) 12135 if (XOR (islower (i), ISLOWER (i)) 12136 || toupper (i) != TOUPPER (i)) 12137 return 2; 12138 return 0; 12139} 12140_ACEOF 12141if ac_fn_c_try_run "$LINENO"; then : 12142 12143else 12144 ac_cv_header_stdc=no 12145fi 12146rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12147 conftest.$ac_objext conftest.beam conftest.$ac_ext 12148fi 12149 12150fi 12151fi 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12153$as_echo "$ac_cv_header_stdc" >&6; } 12154if test $ac_cv_header_stdc = yes; then 12155 12156$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12157 12158fi 12159 12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 12161$as_echo_n "checking for library containing getaddrinfo... " >&6; } 12162if test "${ac_cv_search_getaddrinfo+set}" = set; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 ac_func_search_save_LIBS=$LIBS 12166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12167/* end confdefs.h. */ 12168 12169/* Override any GCC internal prototype to avoid an error. 12170 Use char because int might match the return type of a GCC 12171 builtin and then its argument prototype would still apply. */ 12172#ifdef __cplusplus 12173extern "C" 12174#endif 12175char getaddrinfo (); 12176int 12177main () 12178{ 12179return getaddrinfo (); 12180 ; 12181 return 0; 12182} 12183_ACEOF 12184for ac_lib in '' socket; do 12185 if test -z "$ac_lib"; then 12186 ac_res="none required" 12187 else 12188 ac_res=-l$ac_lib 12189 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12190 fi 12191 if ac_fn_c_try_link "$LINENO"; then : 12192 ac_cv_search_getaddrinfo=$ac_res 12193fi 12194rm -f core conftest.err conftest.$ac_objext \ 12195 conftest$ac_exeext 12196 if test "${ac_cv_search_getaddrinfo+set}" = set; then : 12197 break 12198fi 12199done 12200if test "${ac_cv_search_getaddrinfo+set}" = set; then : 12201 12202else 12203 ac_cv_search_getaddrinfo=no 12204fi 12205rm conftest.$ac_ext 12206LIBS=$ac_func_search_save_LIBS 12207fi 12208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 12209$as_echo "$ac_cv_search_getaddrinfo" >&6; } 12210ac_res=$ac_cv_search_getaddrinfo 12211if test "$ac_res" != no; then : 12212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12213 12214fi 12215 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 12217$as_echo_n "checking for library containing connect... " >&6; } 12218if test "${ac_cv_search_connect+set}" = set; then : 12219 $as_echo_n "(cached) " >&6 12220else 12221 ac_func_search_save_LIBS=$LIBS 12222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12223/* end confdefs.h. */ 12224 12225/* Override any GCC internal prototype to avoid an error. 12226 Use char because int might match the return type of a GCC 12227 builtin and then its argument prototype would still apply. */ 12228#ifdef __cplusplus 12229extern "C" 12230#endif 12231char connect (); 12232int 12233main () 12234{ 12235return connect (); 12236 ; 12237 return 0; 12238} 12239_ACEOF 12240for ac_lib in '' socket; do 12241 if test -z "$ac_lib"; then 12242 ac_res="none required" 12243 else 12244 ac_res=-l$ac_lib 12245 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12246 fi 12247 if ac_fn_c_try_link "$LINENO"; then : 12248 ac_cv_search_connect=$ac_res 12249fi 12250rm -f core conftest.err conftest.$ac_objext \ 12251 conftest$ac_exeext 12252 if test "${ac_cv_search_connect+set}" = set; then : 12253 break 12254fi 12255done 12256if test "${ac_cv_search_connect+set}" = set; then : 12257 12258else 12259 ac_cv_search_connect=no 12260fi 12261rm conftest.$ac_ext 12262LIBS=$ac_func_search_save_LIBS 12263fi 12264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 12265$as_echo "$ac_cv_search_connect" >&6; } 12266ac_res=$ac_cv_search_connect 12267if test "$ac_res" != no; then : 12268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12269 12270fi 12271 12272 12273case $host_os in 12274linux*) 12275 12276$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h 12277 12278 ;; 12279esac 12280 12281 12282# Check whether --with-queue-size was given. 12283if test "${with_queue_size+set}" = set; then : 12284 withval=$with_queue_size; xcb_queue_buffer_size="$withval" 12285else 12286 xcb_queue_buffer_size=16384 12287fi 12288 12289 12290cat >>confdefs.h <<_ACEOF 12291#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size 12292_ACEOF 12293 12294 12295ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h> 12296 #include <sys/un.h> 12297 12298" 12299if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then : 12300 12301$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h 12302 12303fi 12304 12305 12306xcbincludedir='${includedir}/xcb' 12307 12308 12309if test "x$GCC" = xyes ; then 12310 CWARNFLAGS="-Wall -pedantic -Wpointer-arith \ 12311 -Wstrict-prototypes -Wmissing-declarations -Wnested-externs" 12312else 12313 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12314if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 12315 SUNCC="yes" 12316else 12317 SUNCC="no" 12318fi 12319 12320 if test "x$SUNCC" = "xyes"; then 12321 CWARNFLAGS="-v" 12322 fi 12323fi 12324 12325 12326 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5 12328$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; } 12329 12330save_CFLAGS=${CFLAGS} 12331CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" 12332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12333/* end confdefs.h. */ 12334 12335#pragma GCC visibility push(hidden) 12336extern void f(int); 12337#pragma GCC visibility pop 12338 12339int 12340main () 12341{ 12342 12343 12344 ; 12345 return 0; 12346} 12347_ACEOF 12348if ac_fn_c_try_compile "$LINENO"; then : 12349 12350$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h 12351 12352 : 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12354$as_echo "yes" >&6; } 12355else 12356 : 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12358$as_echo "no" >&6; } 12359fi 12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12361 12362CFLAGS=${save_CFLAGS} 12363 12364 12365# htmldir is not defined prior to autoconf 2.59c, so on earlier versions 12366# set an equivalent value. 12367 12368 12369 12370DOXYGEN="doxygen" 12371 12372# Check whether --enable-build_docs was given. 12373if test "${enable_build_docs+set}" = set; then : 12374 enableval=$enable_build_docs; if test x"$enableval" != x"yes" ; then 12375 enable_build_docs="no" 12376 else 12377 enable_build_docs="yes" 12378 fi 12379else 12380 enable_build_docs="yes" 12381fi 12382 12383 12384if test "$enable_build_docs" = "no" ; then 12385 BUILD_DOCS=no 12386else 12387 12388# Check whether --with-doxygen was given. 12389if test "${with_doxygen+set}" = set; then : 12390 withval=$with_doxygen; DOXYGEN=${withval} 12391 # Extract the first word of "${DOXYGEN}", so it can be a program name with args. 12392set dummy ${DOXYGEN}; ac_word=$2 12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12394$as_echo_n "checking for $ac_word... " >&6; } 12395if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then : 12396 $as_echo_n "(cached) " >&6 12397else 12398 if test -n "$BUILD_DOCS"; then 12399 ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test. 12400else 12401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12402for as_dir in $PATH 12403do 12404 IFS=$as_save_IFS 12405 test -z "$as_dir" && as_dir=. 12406 for ac_exec_ext in '' $ac_executable_extensions; do 12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12408 ac_cv_prog_BUILD_DOCS="yes" 12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12410 break 2 12411 fi 12412done 12413 done 12414IFS=$as_save_IFS 12415 12416 test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no" 12417fi 12418fi 12419BUILD_DOCS=$ac_cv_prog_BUILD_DOCS 12420if test -n "$BUILD_DOCS"; then 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DOCS" >&5 12422$as_echo "$BUILD_DOCS" >&6; } 12423else 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12425$as_echo "no" >&6; } 12426fi 12427 12428 12429 if test $BUILD_DOCS = no; then 12430 echo "WARNING:" 12431 echo "The doxygen program you specified:" 12432 echo "$DOXYGEN" 12433 echo "was not found. Please check the path and make sure " 12434 echo "the program exists and is executable." 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5 12436$as_echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;} 12437 fi 12438else 12439 # Extract the first word of "${DOXYGEN}", so it can be a program name with args. 12440set dummy ${DOXYGEN}; ac_word=$2 12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12442$as_echo_n "checking for $ac_word... " >&6; } 12443if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then : 12444 $as_echo_n "(cached) " >&6 12445else 12446 if test -n "$BUILD_DOCS"; then 12447 ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test. 12448else 12449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12450for as_dir in $PATH 12451do 12452 IFS=$as_save_IFS 12453 test -z "$as_dir" && as_dir=. 12454 for ac_exec_ext in '' $ac_executable_extensions; do 12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12456 ac_cv_prog_BUILD_DOCS="yes" 12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12458 break 2 12459 fi 12460done 12461 done 12462IFS=$as_save_IFS 12463 12464 test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no" 12465fi 12466fi 12467BUILD_DOCS=$ac_cv_prog_BUILD_DOCS 12468if test -n "$BUILD_DOCS"; then 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DOCS" >&5 12470$as_echo "$BUILD_DOCS" >&6; } 12471else 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12473$as_echo "no" >&6; } 12474fi 12475 12476 12477 if test ${BUILD_DOCS} = no; then 12478 echo "WARNING:" 12479 echo "The doxygen program was not found in your execute" 12480 echo "You may have doxygen installed somewhere not covered by your path." 12481 echo "" 12482 echo "If this is the case make sure you have the packages installed, AND" 12483 echo "that the doxygen program is in your execute path (see your" 12484 echo "shell manual page on setting the \$PATH environment variable), OR" 12485 echo "alternatively, specify the program to use with --with-doxygen." 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5 12487$as_echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;} 12488 fi 12489fi 12490 12491 # Extract the first word of "dot", so it can be a program name with args. 12492set dummy dot; ac_word=$2 12493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12494$as_echo_n "checking for $ac_word... " >&6; } 12495if test "${ac_cv_path_DOT+set}" = set; then : 12496 $as_echo_n "(cached) " >&6 12497else 12498 case $DOT in 12499 [\\/]* | ?:[\\/]*) 12500 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 12501 ;; 12502 *) 12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12504for as_dir in $PATH 12505do 12506 IFS=$as_save_IFS 12507 test -z "$as_dir" && as_dir=. 12508 for ac_exec_ext in '' $ac_executable_extensions; do 12509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12510 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12512 break 2 12513 fi 12514done 12515 done 12516IFS=$as_save_IFS 12517 12518 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="no" 12519 ;; 12520esac 12521fi 12522DOT=$ac_cv_path_DOT 12523if test -n "$DOT"; then 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 12525$as_echo "$DOT" >&6; } 12526else 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12528$as_echo "no" >&6; } 12529fi 12530 12531 12532 if test "$DOT" = "no"; then 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: no dot detected. Documentation will not be built" >&5 12534$as_echo "$as_me: WARNING: Warning: no dot detected. Documentation will not be built" >&2;} 12535 BUILD_DOCS="no" 12536 fi 12537fi 12538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation is built" >&5 12539$as_echo_n "checking whether documentation is built... " >&6; } 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BUILD_DOCS}" >&5 12541$as_echo "${BUILD_DOCS}" >&6; } 12542 12543 12544 12545 if test "x$BUILD_DOCS" = "xyes"; then 12546 BUILD_DOCS_TRUE= 12547 BUILD_DOCS_FALSE='#' 12548else 12549 BUILD_DOCS_TRUE='#' 12550 BUILD_DOCS_FALSE= 12551fi 12552 12553 12554 12555 12556case $host_os in 12557 # darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard) 12558 darwin*) ;; 12559 *) 12560 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 12561if test "x$ac_cv_func_poll" = x""yes; then : 12562 12563$as_echo "#define USE_POLL 1" >>confdefs.h 12564 12565fi 12566 12567 ;; 12568esac 12569 12570 12571 12572# Check whether --enable-composite was given. 12573if test "${enable_composite+set}" = set; then : 12574 enableval=$enable_composite; BUILD_COMPOSITE=$enableval 12575else 12576 BUILD_COMPOSITE="yes" 12577fi 12578 12579 12580 if test "x$BUILD_COMPOSITE" = "xyes"; then 12581 BUILD_COMPOSITE_TRUE= 12582 BUILD_COMPOSITE_FALSE='#' 12583else 12584 BUILD_COMPOSITE_TRUE='#' 12585 BUILD_COMPOSITE_FALSE= 12586fi 12587 12588 12589 12590 12591# Check whether --enable-damage was given. 12592if test "${enable_damage+set}" = set; then : 12593 enableval=$enable_damage; BUILD_DAMAGE=$enableval 12594else 12595 BUILD_DAMAGE="yes" 12596fi 12597 12598 12599 if test "x$BUILD_DAMAGE" = "xyes"; then 12600 BUILD_DAMAGE_TRUE= 12601 BUILD_DAMAGE_FALSE='#' 12602else 12603 BUILD_DAMAGE_TRUE='#' 12604 BUILD_DAMAGE_FALSE= 12605fi 12606 12607 12608 12609 12610# Check whether --enable-dpms was given. 12611if test "${enable_dpms+set}" = set; then : 12612 enableval=$enable_dpms; BUILD_DPMS=$enableval 12613else 12614 BUILD_DPMS="yes" 12615fi 12616 12617 12618 if test "x$BUILD_DPMS" = "xyes"; then 12619 BUILD_DPMS_TRUE= 12620 BUILD_DPMS_FALSE='#' 12621else 12622 BUILD_DPMS_TRUE='#' 12623 BUILD_DPMS_FALSE= 12624fi 12625 12626 12627 12628 12629# Check whether --enable-dri2 was given. 12630if test "${enable_dri2+set}" = set; then : 12631 enableval=$enable_dri2; BUILD_DRI2=$enableval 12632else 12633 BUILD_DRI2="yes" 12634fi 12635 12636 12637 if test "x$BUILD_DRI2" = "xyes"; then 12638 BUILD_DRI2_TRUE= 12639 BUILD_DRI2_FALSE='#' 12640else 12641 BUILD_DRI2_TRUE='#' 12642 BUILD_DRI2_FALSE= 12643fi 12644 12645 12646 12647 12648# Check whether --enable-glx was given. 12649if test "${enable_glx+set}" = set; then : 12650 enableval=$enable_glx; BUILD_GLX=$enableval 12651else 12652 BUILD_GLX="yes" 12653fi 12654 12655 12656 if test "x$BUILD_GLX" = "xyes"; then 12657 BUILD_GLX_TRUE= 12658 BUILD_GLX_FALSE='#' 12659else 12660 BUILD_GLX_TRUE='#' 12661 BUILD_GLX_FALSE= 12662fi 12663 12664 12665 12666 12667# Check whether --enable-randr was given. 12668if test "${enable_randr+set}" = set; then : 12669 enableval=$enable_randr; BUILD_RANDR=$enableval 12670else 12671 BUILD_RANDR="yes" 12672fi 12673 12674 12675 if test "x$BUILD_RANDR" = "xyes"; then 12676 BUILD_RANDR_TRUE= 12677 BUILD_RANDR_FALSE='#' 12678else 12679 BUILD_RANDR_TRUE='#' 12680 BUILD_RANDR_FALSE= 12681fi 12682 12683 12684 12685 12686# Check whether --enable-record was given. 12687if test "${enable_record+set}" = set; then : 12688 enableval=$enable_record; BUILD_RECORD=$enableval 12689else 12690 BUILD_RECORD="yes" 12691fi 12692 12693 12694 if test "x$BUILD_RECORD" = "xyes"; then 12695 BUILD_RECORD_TRUE= 12696 BUILD_RECORD_FALSE='#' 12697else 12698 BUILD_RECORD_TRUE='#' 12699 BUILD_RECORD_FALSE= 12700fi 12701 12702 12703 12704 12705# Check whether --enable-render was given. 12706if test "${enable_render+set}" = set; then : 12707 enableval=$enable_render; BUILD_RENDER=$enableval 12708else 12709 BUILD_RENDER="yes" 12710fi 12711 12712 12713 if test "x$BUILD_RENDER" = "xyes"; then 12714 BUILD_RENDER_TRUE= 12715 BUILD_RENDER_FALSE='#' 12716else 12717 BUILD_RENDER_TRUE='#' 12718 BUILD_RENDER_FALSE= 12719fi 12720 12721 12722 12723 12724# Check whether --enable-resource was given. 12725if test "${enable_resource+set}" = set; then : 12726 enableval=$enable_resource; BUILD_RESOURCE=$enableval 12727else 12728 BUILD_RESOURCE="yes" 12729fi 12730 12731 12732 if test "x$BUILD_RESOURCE" = "xyes"; then 12733 BUILD_RESOURCE_TRUE= 12734 BUILD_RESOURCE_FALSE='#' 12735else 12736 BUILD_RESOURCE_TRUE='#' 12737 BUILD_RESOURCE_FALSE= 12738fi 12739 12740 12741 12742 12743# Check whether --enable-screensaver was given. 12744if test "${enable_screensaver+set}" = set; then : 12745 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval 12746else 12747 BUILD_SCREENSAVER="yes" 12748fi 12749 12750 12751 if test "x$BUILD_SCREENSAVER" = "xyes"; then 12752 BUILD_SCREENSAVER_TRUE= 12753 BUILD_SCREENSAVER_FALSE='#' 12754else 12755 BUILD_SCREENSAVER_TRUE='#' 12756 BUILD_SCREENSAVER_FALSE= 12757fi 12758 12759 12760 12761 12762# Check whether --enable-shape was given. 12763if test "${enable_shape+set}" = set; then : 12764 enableval=$enable_shape; BUILD_SHAPE=$enableval 12765else 12766 BUILD_SHAPE="yes" 12767fi 12768 12769 12770 if test "x$BUILD_SHAPE" = "xyes"; then 12771 BUILD_SHAPE_TRUE= 12772 BUILD_SHAPE_FALSE='#' 12773else 12774 BUILD_SHAPE_TRUE='#' 12775 BUILD_SHAPE_FALSE= 12776fi 12777 12778 12779 12780 12781# Check whether --enable-shm was given. 12782if test "${enable_shm+set}" = set; then : 12783 enableval=$enable_shm; BUILD_SHM=$enableval 12784else 12785 BUILD_SHM="yes" 12786fi 12787 12788 12789 if test "x$BUILD_SHM" = "xyes"; then 12790 BUILD_SHM_TRUE= 12791 BUILD_SHM_FALSE='#' 12792else 12793 BUILD_SHM_TRUE='#' 12794 BUILD_SHM_FALSE= 12795fi 12796 12797 12798 12799 12800# Check whether --enable-sync was given. 12801if test "${enable_sync+set}" = set; then : 12802 enableval=$enable_sync; BUILD_SYNC=$enableval 12803else 12804 BUILD_SYNC="yes" 12805fi 12806 12807 12808 if test "x$BUILD_SYNC" = "xyes"; then 12809 BUILD_SYNC_TRUE= 12810 BUILD_SYNC_FALSE='#' 12811else 12812 BUILD_SYNC_TRUE='#' 12813 BUILD_SYNC_FALSE= 12814fi 12815 12816 12817 12818 12819# Check whether --enable-xevie was given. 12820if test "${enable_xevie+set}" = set; then : 12821 enableval=$enable_xevie; BUILD_XEVIE=$enableval 12822else 12823 BUILD_XEVIE="yes" 12824fi 12825 12826 12827 if test "x$BUILD_XEVIE" = "xyes"; then 12828 BUILD_XEVIE_TRUE= 12829 BUILD_XEVIE_FALSE='#' 12830else 12831 BUILD_XEVIE_TRUE='#' 12832 BUILD_XEVIE_FALSE= 12833fi 12834 12835 12836 12837 12838# Check whether --enable-xfixes was given. 12839if test "${enable_xfixes+set}" = set; then : 12840 enableval=$enable_xfixes; BUILD_XFIXES=$enableval 12841else 12842 BUILD_XFIXES="yes" 12843fi 12844 12845 12846 if test "x$BUILD_XFIXES" = "xyes"; then 12847 BUILD_XFIXES_TRUE= 12848 BUILD_XFIXES_FALSE='#' 12849else 12850 BUILD_XFIXES_TRUE='#' 12851 BUILD_XFIXES_FALSE= 12852fi 12853 12854 12855 12856 12857# Check whether --enable-xfree86-dri was given. 12858if test "${enable_xfree86_dri+set}" = set; then : 12859 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval 12860else 12861 BUILD_XFREE86_DRI="yes" 12862fi 12863 12864 12865 if test "x$BUILD_XFREE86_DRI" = "xyes"; then 12866 BUILD_XFREE86_DRI_TRUE= 12867 BUILD_XFREE86_DRI_FALSE='#' 12868else 12869 BUILD_XFREE86_DRI_TRUE='#' 12870 BUILD_XFREE86_DRI_FALSE= 12871fi 12872 12873 12874 12875 12876# Check whether --enable-xinerama was given. 12877if test "${enable_xinerama+set}" = set; then : 12878 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval 12879else 12880 BUILD_XINERAMA="yes" 12881fi 12882 12883 12884 if test "x$BUILD_XINERAMA" = "xyes"; then 12885 BUILD_XINERAMA_TRUE= 12886 BUILD_XINERAMA_FALSE='#' 12887else 12888 BUILD_XINERAMA_TRUE='#' 12889 BUILD_XINERAMA_FALSE= 12890fi 12891 12892 12893 12894 12895# Check whether --enable-xinput was given. 12896if test "${enable_xinput+set}" = set; then : 12897 enableval=$enable_xinput; BUILD_XINPUT=$enableval 12898else 12899 BUILD_XINPUT="no" 12900fi 12901 12902 12903 if test "x$BUILD_XINPUT" = "xyes"; then 12904 BUILD_XINPUT_TRUE= 12905 BUILD_XINPUT_FALSE='#' 12906else 12907 BUILD_XINPUT_TRUE='#' 12908 BUILD_XINPUT_FALSE= 12909fi 12910 12911 12912 12913 12914# Check whether --enable-xprint was given. 12915if test "${enable_xprint+set}" = set; then : 12916 enableval=$enable_xprint; BUILD_XPRINT=$enableval 12917else 12918 BUILD_XPRINT="yes" 12919fi 12920 12921 12922 if test "x$BUILD_XPRINT" = "xyes"; then 12923 BUILD_XPRINT_TRUE= 12924 BUILD_XPRINT_FALSE='#' 12925else 12926 BUILD_XPRINT_TRUE='#' 12927 BUILD_XPRINT_FALSE= 12928fi 12929 12930 12931 12932 12933# Check whether --enable-selinux was given. 12934if test "${enable_selinux+set}" = set; then : 12935 enableval=$enable_selinux; BUILD_SELINUX=$enableval 12936else 12937 BUILD_SELINUX="no" 12938fi 12939 12940 12941 if test "x$BUILD_SELINUX" = "xyes"; then 12942 BUILD_SELINUX_TRUE= 12943 BUILD_SELINUX_FALSE='#' 12944else 12945 BUILD_SELINUX_TRUE='#' 12946 BUILD_SELINUX_FALSE= 12947fi 12948 12949 12950 12951 12952# Check whether --enable-xtest was given. 12953if test "${enable_xtest+set}" = set; then : 12954 enableval=$enable_xtest; BUILD_XTEST=$enableval 12955else 12956 BUILD_XTEST="yes" 12957fi 12958 12959 12960 if test "x$BUILD_XTEST" = "xyes"; then 12961 BUILD_XTEST_TRUE= 12962 BUILD_XTEST_FALSE='#' 12963else 12964 BUILD_XTEST_TRUE='#' 12965 BUILD_XTEST_FALSE= 12966fi 12967 12968 12969 12970 12971# Check whether --enable-xv was given. 12972if test "${enable_xv+set}" = set; then : 12973 enableval=$enable_xv; BUILD_XV=$enableval 12974else 12975 BUILD_XV="yes" 12976fi 12977 12978 12979 if test "x$BUILD_XV" = "xyes"; then 12980 BUILD_XV_TRUE= 12981 BUILD_XV_FALSE='#' 12982else 12983 BUILD_XV_TRUE='#' 12984 BUILD_XV_FALSE= 12985fi 12986 12987 12988 12989 12990# Check whether --enable-xvmc was given. 12991if test "${enable_xvmc+set}" = set; then : 12992 enableval=$enable_xvmc; BUILD_XVMC=$enableval 12993else 12994 BUILD_XVMC="yes" 12995fi 12996 12997 12998 if test "x$BUILD_XVMC" = "xyes"; then 12999 BUILD_XVMC_TRUE= 13000 BUILD_XVMC_FALSE='#' 13001else 13002 BUILD_XVMC_TRUE='#' 13003 BUILD_XVMC_FALSE= 13004fi 13005 13006 13007 13008 13009# Check whether --with-launchd was given. 13010if test "${with_launchd+set}" = set; then : 13011 withval=$with_launchd; LAUNCHD=$withval 13012else 13013 LAUNCHD=auto 13014fi 13015 13016if test "x$LAUNCHD" = xauto; then 13017 unset LAUNCHD 13018 # Extract the first word of "launchd", so it can be a program name with args. 13019set dummy launchd; ac_word=$2 13020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13021$as_echo_n "checking for $ac_word... " >&6; } 13022if test "${ac_cv_prog_LAUNCHD+set}" = set; then : 13023 $as_echo_n "(cached) " >&6 13024else 13025 if test -n "$LAUNCHD"; then 13026 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 13027else 13028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13029for as_dir in $PATH 13030do 13031 IFS=$as_save_IFS 13032 test -z "$as_dir" && as_dir=. 13033 for ac_exec_ext in '' $ac_executable_extensions; do 13034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13035 ac_cv_prog_LAUNCHD="yes" 13036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13037 break 2 13038 fi 13039done 13040 done 13041IFS=$as_save_IFS 13042 13043 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 13044fi 13045fi 13046LAUNCHD=$ac_cv_prog_LAUNCHD 13047if test -n "$LAUNCHD"; then 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 13049$as_echo "$LAUNCHD" >&6; } 13050else 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13052$as_echo "no" >&6; } 13053fi 13054 13055 13056fi 13057 13058if test "x$LAUNCHD" = xyes ; then 13059 13060$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 13061 13062fi 13063 13064ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile" 13065 13066 13067ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc" 13068 13069 13070ac_config_files="$ac_config_files doc/xcb.doxygen" 13071 13072 13073cat >confcache <<\_ACEOF 13074# This file is a shell script that caches the results of configure 13075# tests run on this system so they can be shared between configure 13076# scripts and configure runs, see configure's option --config-cache. 13077# It is not useful on other systems. If it contains results you don't 13078# want to keep, you may remove or edit it. 13079# 13080# config.status only pays attention to the cache file if you give it 13081# the --recheck option to rerun configure. 13082# 13083# `ac_cv_env_foo' variables (set or unset) will be overridden when 13084# loading this file, other *unset* `ac_cv_foo' will be assigned the 13085# following values. 13086 13087_ACEOF 13088 13089# The following way of writing the cache mishandles newlines in values, 13090# but we know of no workaround that is simple, portable, and efficient. 13091# So, we kill variables containing newlines. 13092# Ultrix sh set writes to stderr and can't be redirected directly, 13093# and sets the high bit in the cache file unless we assign to the vars. 13094( 13095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13096 eval ac_val=\$$ac_var 13097 case $ac_val in #( 13098 *${as_nl}*) 13099 case $ac_var in #( 13100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13102 esac 13103 case $ac_var in #( 13104 _ | IFS | as_nl) ;; #( 13105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13106 *) { eval $ac_var=; unset $ac_var;} ;; 13107 esac ;; 13108 esac 13109 done 13110 13111 (set) 2>&1 | 13112 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13113 *${as_nl}ac_space=\ *) 13114 # `set' does not quote correctly, so add quotes: double-quote 13115 # substitution turns \\\\ into \\, and sed turns \\ into \. 13116 sed -n \ 13117 "s/'/'\\\\''/g; 13118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13119 ;; #( 13120 *) 13121 # `set' quotes correctly as required by POSIX, so do not add quotes. 13122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13123 ;; 13124 esac | 13125 sort 13126) | 13127 sed ' 13128 /^ac_cv_env_/b end 13129 t clear 13130 :clear 13131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13132 t end 13133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13134 :end' >>confcache 13135if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13136 if test -w "$cache_file"; then 13137 test "x$cache_file" != "x/dev/null" && 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13139$as_echo "$as_me: updating cache $cache_file" >&6;} 13140 cat confcache >$cache_file 13141 else 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13143$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13144 fi 13145fi 13146rm -f confcache 13147 13148test "x$prefix" = xNONE && prefix=$ac_default_prefix 13149# Let make expand exec_prefix. 13150test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13151 13152DEFS=-DHAVE_CONFIG_H 13153 13154ac_libobjs= 13155ac_ltlibobjs= 13156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13157 # 1. Remove the extension, and $U if already installed. 13158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13161 # will be set to the directory where LIBOBJS objects are built. 13162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13164done 13165LIBOBJS=$ac_libobjs 13166 13167LTLIBOBJS=$ac_ltlibobjs 13168 13169 13170 if test -n "$EXEEXT"; then 13171 am__EXEEXT_TRUE= 13172 am__EXEEXT_FALSE='#' 13173else 13174 am__EXEEXT_TRUE='#' 13175 am__EXEEXT_FALSE= 13176fi 13177 13178if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then 13179 as_fn_error "conditional \"HAVE_CHECK\" was never defined. 13180Usually this means the macro was only invoked conditionally." "$LINENO" 5 13181fi 13182if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13183 as_fn_error "conditional \"AMDEP\" was never defined. 13184Usually this means the macro was only invoked conditionally." "$LINENO" 5 13185fi 13186if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13187 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13188Usually this means the macro was only invoked conditionally." "$LINENO" 5 13189fi 13190if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13191 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13192Usually this means the macro was only invoked conditionally." "$LINENO" 5 13193fi 13194if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 13195 as_fn_error "conditional \"BUILD_DOCS\" was never defined. 13196Usually this means the macro was only invoked conditionally." "$LINENO" 5 13197fi 13198if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then 13199 as_fn_error "conditional \"BUILD_COMPOSITE\" was never defined. 13200Usually this means the macro was only invoked conditionally." "$LINENO" 5 13201fi 13202if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then 13203 as_fn_error "conditional \"BUILD_DAMAGE\" was never defined. 13204Usually this means the macro was only invoked conditionally." "$LINENO" 5 13205fi 13206if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then 13207 as_fn_error "conditional \"BUILD_DPMS\" was never defined. 13208Usually this means the macro was only invoked conditionally." "$LINENO" 5 13209fi 13210if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then 13211 as_fn_error "conditional \"BUILD_DRI2\" was never defined. 13212Usually this means the macro was only invoked conditionally." "$LINENO" 5 13213fi 13214if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 13215 as_fn_error "conditional \"BUILD_GLX\" was never defined. 13216Usually this means the macro was only invoked conditionally." "$LINENO" 5 13217fi 13218if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then 13219 as_fn_error "conditional \"BUILD_RANDR\" was never defined. 13220Usually this means the macro was only invoked conditionally." "$LINENO" 5 13221fi 13222if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then 13223 as_fn_error "conditional \"BUILD_RECORD\" was never defined. 13224Usually this means the macro was only invoked conditionally." "$LINENO" 5 13225fi 13226if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then 13227 as_fn_error "conditional \"BUILD_RENDER\" was never defined. 13228Usually this means the macro was only invoked conditionally." "$LINENO" 5 13229fi 13230if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then 13231 as_fn_error "conditional \"BUILD_RESOURCE\" was never defined. 13232Usually this means the macro was only invoked conditionally." "$LINENO" 5 13233fi 13234if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then 13235 as_fn_error "conditional \"BUILD_SCREENSAVER\" was never defined. 13236Usually this means the macro was only invoked conditionally." "$LINENO" 5 13237fi 13238if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then 13239 as_fn_error "conditional \"BUILD_SHAPE\" was never defined. 13240Usually this means the macro was only invoked conditionally." "$LINENO" 5 13241fi 13242if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then 13243 as_fn_error "conditional \"BUILD_SHM\" was never defined. 13244Usually this means the macro was only invoked conditionally." "$LINENO" 5 13245fi 13246if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then 13247 as_fn_error "conditional \"BUILD_SYNC\" was never defined. 13248Usually this means the macro was only invoked conditionally." "$LINENO" 5 13249fi 13250if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then 13251 as_fn_error "conditional \"BUILD_XEVIE\" was never defined. 13252Usually this means the macro was only invoked conditionally." "$LINENO" 5 13253fi 13254if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then 13255 as_fn_error "conditional \"BUILD_XFIXES\" was never defined. 13256Usually this means the macro was only invoked conditionally." "$LINENO" 5 13257fi 13258if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then 13259 as_fn_error "conditional \"BUILD_XFREE86_DRI\" was never defined. 13260Usually this means the macro was only invoked conditionally." "$LINENO" 5 13261fi 13262if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then 13263 as_fn_error "conditional \"BUILD_XINERAMA\" was never defined. 13264Usually this means the macro was only invoked conditionally." "$LINENO" 5 13265fi 13266if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then 13267 as_fn_error "conditional \"BUILD_XINPUT\" was never defined. 13268Usually this means the macro was only invoked conditionally." "$LINENO" 5 13269fi 13270if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then 13271 as_fn_error "conditional \"BUILD_XPRINT\" was never defined. 13272Usually this means the macro was only invoked conditionally." "$LINENO" 5 13273fi 13274if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then 13275 as_fn_error "conditional \"BUILD_SELINUX\" was never defined. 13276Usually this means the macro was only invoked conditionally." "$LINENO" 5 13277fi 13278if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then 13279 as_fn_error "conditional \"BUILD_XTEST\" was never defined. 13280Usually this means the macro was only invoked conditionally." "$LINENO" 5 13281fi 13282if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then 13283 as_fn_error "conditional \"BUILD_XV\" was never defined. 13284Usually this means the macro was only invoked conditionally." "$LINENO" 5 13285fi 13286if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then 13287 as_fn_error "conditional \"BUILD_XVMC\" was never defined. 13288Usually this means the macro was only invoked conditionally." "$LINENO" 5 13289fi 13290 13291: ${CONFIG_STATUS=./config.status} 13292ac_write_fail=0 13293ac_clean_files_save=$ac_clean_files 13294ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13295{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13296$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13297as_write_fail=0 13298cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13299#! $SHELL 13300# Generated by $as_me. 13301# Run this file to recreate the current configuration. 13302# Compiler output produced by configure, useful for debugging 13303# configure, is in config.log if it exists. 13304 13305debug=false 13306ac_cs_recheck=false 13307ac_cs_silent=false 13308 13309SHELL=\${CONFIG_SHELL-$SHELL} 13310export SHELL 13311_ASEOF 13312cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13313## -------------------- ## 13314## M4sh Initialization. ## 13315## -------------------- ## 13316 13317# Be more Bourne compatible 13318DUALCASE=1; export DUALCASE # for MKS sh 13319if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13320 emulate sh 13321 NULLCMD=: 13322 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13323 # is contrary to our usage. Disable this feature. 13324 alias -g '${1+"$@"}'='"$@"' 13325 setopt NO_GLOB_SUBST 13326else 13327 case `(set -o) 2>/dev/null` in #( 13328 *posix*) : 13329 set -o posix ;; #( 13330 *) : 13331 ;; 13332esac 13333fi 13334 13335 13336as_nl=' 13337' 13338export as_nl 13339# Printing a long string crashes Solaris 7 /usr/bin/printf. 13340as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13341as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13342as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13343# Prefer a ksh shell builtin over an external printf program on Solaris, 13344# but without wasting forks for bash or zsh. 13345if test -z "$BASH_VERSION$ZSH_VERSION" \ 13346 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13347 as_echo='print -r --' 13348 as_echo_n='print -rn --' 13349elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13350 as_echo='printf %s\n' 13351 as_echo_n='printf %s' 13352else 13353 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13354 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13355 as_echo_n='/usr/ucb/echo -n' 13356 else 13357 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13358 as_echo_n_body='eval 13359 arg=$1; 13360 case $arg in #( 13361 *"$as_nl"*) 13362 expr "X$arg" : "X\\(.*\\)$as_nl"; 13363 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13364 esac; 13365 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13366 ' 13367 export as_echo_n_body 13368 as_echo_n='sh -c $as_echo_n_body as_echo' 13369 fi 13370 export as_echo_body 13371 as_echo='sh -c $as_echo_body as_echo' 13372fi 13373 13374# The user is always right. 13375if test "${PATH_SEPARATOR+set}" != set; then 13376 PATH_SEPARATOR=: 13377 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13378 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13379 PATH_SEPARATOR=';' 13380 } 13381fi 13382 13383 13384# IFS 13385# We need space, tab and new line, in precisely that order. Quoting is 13386# there to prevent editors from complaining about space-tab. 13387# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13388# splitting by setting IFS to empty value.) 13389IFS=" "" $as_nl" 13390 13391# Find who we are. Look in the path if we contain no directory separator. 13392case $0 in #(( 13393 *[\\/]* ) as_myself=$0 ;; 13394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13395for as_dir in $PATH 13396do 13397 IFS=$as_save_IFS 13398 test -z "$as_dir" && as_dir=. 13399 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13400 done 13401IFS=$as_save_IFS 13402 13403 ;; 13404esac 13405# We did not find ourselves, most probably we were run as `sh COMMAND' 13406# in which case we are not to be found in the path. 13407if test "x$as_myself" = x; then 13408 as_myself=$0 13409fi 13410if test ! -f "$as_myself"; then 13411 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13412 exit 1 13413fi 13414 13415# Unset variables that we do not need and which cause bugs (e.g. in 13416# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13417# suppresses any "Segmentation fault" message there. '((' could 13418# trigger a bug in pdksh 5.2.14. 13419for as_var in BASH_ENV ENV MAIL MAILPATH 13420do eval test x\${$as_var+set} = xset \ 13421 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13422done 13423PS1='$ ' 13424PS2='> ' 13425PS4='+ ' 13426 13427# NLS nuisances. 13428LC_ALL=C 13429export LC_ALL 13430LANGUAGE=C 13431export LANGUAGE 13432 13433# CDPATH. 13434(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13435 13436 13437# as_fn_error ERROR [LINENO LOG_FD] 13438# --------------------------------- 13439# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13440# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13441# script with status $?, using 1 if that was 0. 13442as_fn_error () 13443{ 13444 as_status=$?; test $as_status -eq 0 && as_status=1 13445 if test "$3"; then 13446 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13447 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 13448 fi 13449 $as_echo "$as_me: error: $1" >&2 13450 as_fn_exit $as_status 13451} # as_fn_error 13452 13453 13454# as_fn_set_status STATUS 13455# ----------------------- 13456# Set $? to STATUS, without forking. 13457as_fn_set_status () 13458{ 13459 return $1 13460} # as_fn_set_status 13461 13462# as_fn_exit STATUS 13463# ----------------- 13464# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13465as_fn_exit () 13466{ 13467 set +e 13468 as_fn_set_status $1 13469 exit $1 13470} # as_fn_exit 13471 13472# as_fn_unset VAR 13473# --------------- 13474# Portably unset VAR. 13475as_fn_unset () 13476{ 13477 { eval $1=; unset $1;} 13478} 13479as_unset=as_fn_unset 13480# as_fn_append VAR VALUE 13481# ---------------------- 13482# Append the text in VALUE to the end of the definition contained in VAR. Take 13483# advantage of any shell optimizations that allow amortized linear growth over 13484# repeated appends, instead of the typical quadratic growth present in naive 13485# implementations. 13486if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13487 eval 'as_fn_append () 13488 { 13489 eval $1+=\$2 13490 }' 13491else 13492 as_fn_append () 13493 { 13494 eval $1=\$$1\$2 13495 } 13496fi # as_fn_append 13497 13498# as_fn_arith ARG... 13499# ------------------ 13500# Perform arithmetic evaluation on the ARGs, and store the result in the 13501# global $as_val. Take advantage of shells that can avoid forks. The arguments 13502# must be portable across $(()) and expr. 13503if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13504 eval 'as_fn_arith () 13505 { 13506 as_val=$(( $* )) 13507 }' 13508else 13509 as_fn_arith () 13510 { 13511 as_val=`expr "$@" || test $? -eq 1` 13512 } 13513fi # as_fn_arith 13514 13515 13516if expr a : '\(a\)' >/dev/null 2>&1 && 13517 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13518 as_expr=expr 13519else 13520 as_expr=false 13521fi 13522 13523if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13524 as_basename=basename 13525else 13526 as_basename=false 13527fi 13528 13529if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13530 as_dirname=dirname 13531else 13532 as_dirname=false 13533fi 13534 13535as_me=`$as_basename -- "$0" || 13536$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13537 X"$0" : 'X\(//\)$' \| \ 13538 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13539$as_echo X/"$0" | 13540 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13541 s//\1/ 13542 q 13543 } 13544 /^X\/\(\/\/\)$/{ 13545 s//\1/ 13546 q 13547 } 13548 /^X\/\(\/\).*/{ 13549 s//\1/ 13550 q 13551 } 13552 s/.*/./; q'` 13553 13554# Avoid depending upon Character Ranges. 13555as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13556as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13557as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13558as_cr_digits='0123456789' 13559as_cr_alnum=$as_cr_Letters$as_cr_digits 13560 13561ECHO_C= ECHO_N= ECHO_T= 13562case `echo -n x` in #((((( 13563-n*) 13564 case `echo 'xy\c'` in 13565 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13566 xy) ECHO_C='\c';; 13567 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13568 ECHO_T=' ';; 13569 esac;; 13570*) 13571 ECHO_N='-n';; 13572esac 13573 13574rm -f conf$$ conf$$.exe conf$$.file 13575if test -d conf$$.dir; then 13576 rm -f conf$$.dir/conf$$.file 13577else 13578 rm -f conf$$.dir 13579 mkdir conf$$.dir 2>/dev/null 13580fi 13581if (echo >conf$$.file) 2>/dev/null; then 13582 if ln -s conf$$.file conf$$ 2>/dev/null; then 13583 as_ln_s='ln -s' 13584 # ... but there are two gotchas: 13585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13587 # In both cases, we have to default to `cp -p'. 13588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13589 as_ln_s='cp -p' 13590 elif ln conf$$.file conf$$ 2>/dev/null; then 13591 as_ln_s=ln 13592 else 13593 as_ln_s='cp -p' 13594 fi 13595else 13596 as_ln_s='cp -p' 13597fi 13598rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13599rmdir conf$$.dir 2>/dev/null 13600 13601 13602# as_fn_mkdir_p 13603# ------------- 13604# Create "$as_dir" as a directory, including parents if necessary. 13605as_fn_mkdir_p () 13606{ 13607 13608 case $as_dir in #( 13609 -*) as_dir=./$as_dir;; 13610 esac 13611 test -d "$as_dir" || eval $as_mkdir_p || { 13612 as_dirs= 13613 while :; do 13614 case $as_dir in #( 13615 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13616 *) as_qdir=$as_dir;; 13617 esac 13618 as_dirs="'$as_qdir' $as_dirs" 13619 as_dir=`$as_dirname -- "$as_dir" || 13620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13621 X"$as_dir" : 'X\(//\)[^/]' \| \ 13622 X"$as_dir" : 'X\(//\)$' \| \ 13623 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13624$as_echo X"$as_dir" | 13625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13626 s//\1/ 13627 q 13628 } 13629 /^X\(\/\/\)[^/].*/{ 13630 s//\1/ 13631 q 13632 } 13633 /^X\(\/\/\)$/{ 13634 s//\1/ 13635 q 13636 } 13637 /^X\(\/\).*/{ 13638 s//\1/ 13639 q 13640 } 13641 s/.*/./; q'` 13642 test -d "$as_dir" && break 13643 done 13644 test -z "$as_dirs" || eval "mkdir $as_dirs" 13645 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 13646 13647 13648} # as_fn_mkdir_p 13649if mkdir -p . 2>/dev/null; then 13650 as_mkdir_p='mkdir -p "$as_dir"' 13651else 13652 test -d ./-p && rmdir ./-p 13653 as_mkdir_p=false 13654fi 13655 13656if test -x / >/dev/null 2>&1; then 13657 as_test_x='test -x' 13658else 13659 if ls -dL / >/dev/null 2>&1; then 13660 as_ls_L_option=L 13661 else 13662 as_ls_L_option= 13663 fi 13664 as_test_x=' 13665 eval sh -c '\'' 13666 if test -d "$1"; then 13667 test -d "$1/."; 13668 else 13669 case $1 in #( 13670 -*)set "./$1";; 13671 esac; 13672 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13673 ???[sx]*):;;*)false;;esac;fi 13674 '\'' sh 13675 ' 13676fi 13677as_executable_p=$as_test_x 13678 13679# Sed expression to map a string onto a valid CPP name. 13680as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13681 13682# Sed expression to map a string onto a valid variable name. 13683as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13684 13685 13686exec 6>&1 13687## ----------------------------------- ## 13688## Main body of $CONFIG_STATUS script. ## 13689## ----------------------------------- ## 13690_ASEOF 13691test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13692 13693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13694# Save the log message, to keep $0 and so on meaningful, and to 13695# report actual input values of CONFIG_FILES etc. instead of their 13696# values after options handling. 13697ac_log=" 13698This file was extended by libxcb $as_me 1.6, which was 13699generated by GNU Autoconf 2.65. Invocation command line was 13700 13701 CONFIG_FILES = $CONFIG_FILES 13702 CONFIG_HEADERS = $CONFIG_HEADERS 13703 CONFIG_LINKS = $CONFIG_LINKS 13704 CONFIG_COMMANDS = $CONFIG_COMMANDS 13705 $ $0 $@ 13706 13707on `(hostname || uname -n) 2>/dev/null | sed 1q` 13708" 13709 13710_ACEOF 13711 13712case $ac_config_files in *" 13713"*) set x $ac_config_files; shift; ac_config_files=$*;; 13714esac 13715 13716case $ac_config_headers in *" 13717"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13718esac 13719 13720 13721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13722# Files that config.status was made for. 13723config_files="$ac_config_files" 13724config_headers="$ac_config_headers" 13725config_commands="$ac_config_commands" 13726 13727_ACEOF 13728 13729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13730ac_cs_usage="\ 13731\`$as_me' instantiates files and other configuration actions 13732from templates according to the current configuration. Unless the files 13733and actions are specified as TAGs, all are instantiated by default. 13734 13735Usage: $0 [OPTION]... [TAG]... 13736 13737 -h, --help print this help, then exit 13738 -V, --version print version number and configuration settings, then exit 13739 --config print configuration, then exit 13740 -q, --quiet, --silent 13741 do not print progress messages 13742 -d, --debug don't remove temporary files 13743 --recheck update $as_me by reconfiguring in the same conditions 13744 --file=FILE[:TEMPLATE] 13745 instantiate the configuration file FILE 13746 --header=FILE[:TEMPLATE] 13747 instantiate the configuration header FILE 13748 13749Configuration files: 13750$config_files 13751 13752Configuration headers: 13753$config_headers 13754 13755Configuration commands: 13756$config_commands 13757 13758Report bugs to <xcb@lists.freedesktop.org>." 13759 13760_ACEOF 13761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13762ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13763ac_cs_version="\\ 13764libxcb config.status 1.6 13765configured by $0, generated by GNU Autoconf 2.65, 13766 with options \\"\$ac_cs_config\\" 13767 13768Copyright (C) 2009 Free Software Foundation, Inc. 13769This config.status script is free software; the Free Software Foundation 13770gives unlimited permission to copy, distribute and modify it." 13771 13772ac_pwd='$ac_pwd' 13773srcdir='$srcdir' 13774INSTALL='$INSTALL' 13775MKDIR_P='$MKDIR_P' 13776AWK='$AWK' 13777test -n "\$AWK" || AWK=awk 13778_ACEOF 13779 13780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13781# The default lists apply if the user does not specify any file. 13782ac_need_defaults=: 13783while test $# != 0 13784do 13785 case $1 in 13786 --*=*) 13787 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13788 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13789 ac_shift=: 13790 ;; 13791 *) 13792 ac_option=$1 13793 ac_optarg=$2 13794 ac_shift=shift 13795 ;; 13796 esac 13797 13798 case $ac_option in 13799 # Handling of the options. 13800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13801 ac_cs_recheck=: ;; 13802 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13803 $as_echo "$ac_cs_version"; exit ;; 13804 --config | --confi | --conf | --con | --co | --c ) 13805 $as_echo "$ac_cs_config"; exit ;; 13806 --debug | --debu | --deb | --de | --d | -d ) 13807 debug=: ;; 13808 --file | --fil | --fi | --f ) 13809 $ac_shift 13810 case $ac_optarg in 13811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13812 esac 13813 as_fn_append CONFIG_FILES " '$ac_optarg'" 13814 ac_need_defaults=false;; 13815 --header | --heade | --head | --hea ) 13816 $ac_shift 13817 case $ac_optarg in 13818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13819 esac 13820 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13821 ac_need_defaults=false;; 13822 --he | --h) 13823 # Conflict between --help and --header 13824 as_fn_error "ambiguous option: \`$1' 13825Try \`$0 --help' for more information.";; 13826 --help | --hel | -h ) 13827 $as_echo "$ac_cs_usage"; exit ;; 13828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13829 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13830 ac_cs_silent=: ;; 13831 13832 # This is an error. 13833 -*) as_fn_error "unrecognized option: \`$1' 13834Try \`$0 --help' for more information." ;; 13835 13836 *) as_fn_append ac_config_targets " $1" 13837 ac_need_defaults=false ;; 13838 13839 esac 13840 shift 13841done 13842 13843ac_configure_extra_args= 13844 13845if $ac_cs_silent; then 13846 exec 6>/dev/null 13847 ac_configure_extra_args="$ac_configure_extra_args --silent" 13848fi 13849 13850_ACEOF 13851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13852if \$ac_cs_recheck; then 13853 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13854 shift 13855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13856 CONFIG_SHELL='$SHELL' 13857 export CONFIG_SHELL 13858 exec "\$@" 13859fi 13860 13861_ACEOF 13862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13863exec 5>>config.log 13864{ 13865 echo 13866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13867## Running $as_me. ## 13868_ASBOX 13869 $as_echo "$ac_log" 13870} >&5 13871 13872_ACEOF 13873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13874# 13875# INIT-COMMANDS 13876# 13877AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13878 13879 13880# The HP-UX ksh and POSIX shell print the target directory to stdout 13881# if CDPATH is set. 13882(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13883 13884sed_quote_subst='$sed_quote_subst' 13885double_quote_subst='$double_quote_subst' 13886delay_variable_subst='$delay_variable_subst' 13887macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13888macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13889enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13890enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13891pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13892enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13893host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13894host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13895host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13896build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13897build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13898build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13899SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13900Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13901GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13902EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13903FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13904LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13905NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13906LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13907max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13908ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13909exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13910lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13911lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13912lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13913reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13914reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13915OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13916deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13917file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13918AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13919AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13920STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13921RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13922old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13923old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13924old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13925CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13926CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13927compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13928GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13929lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13930lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13931lt_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"`' 13932lt_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"`' 13933objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13934SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13935ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13936MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13937lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13938lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13939lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13940lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13941lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13942need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13943DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13944NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13945LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13946OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13947OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13948libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13949shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13950extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13951archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13952enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13953export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13954whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13955compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13956old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13957old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13958archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13959archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13960module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13961module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13962with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13963allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13964no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13965hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13966hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13967hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13968hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13969hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13970hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13971hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13972hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13973inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13974link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13975fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13976always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13977export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13978exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13979include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13980prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13981file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13982variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13983need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13984need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13985version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13986runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13987shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13988shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13989libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13990library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13991soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13992postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13993postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13994finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13995finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13996hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13997sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13998sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13999hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14000enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14001enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14002enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14003old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14004striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14005 14006LTCC='$LTCC' 14007LTCFLAGS='$LTCFLAGS' 14008compiler='$compiler_DEFAULT' 14009 14010# Quote evaled strings. 14011for var in SED \ 14012GREP \ 14013EGREP \ 14014FGREP \ 14015LD \ 14016NM \ 14017LN_S \ 14018lt_SP2NL \ 14019lt_NL2SP \ 14020reload_flag \ 14021OBJDUMP \ 14022deplibs_check_method \ 14023file_magic_cmd \ 14024AR \ 14025AR_FLAGS \ 14026STRIP \ 14027RANLIB \ 14028CC \ 14029CFLAGS \ 14030compiler \ 14031lt_cv_sys_global_symbol_pipe \ 14032lt_cv_sys_global_symbol_to_cdecl \ 14033lt_cv_sys_global_symbol_to_c_name_address \ 14034lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14035SHELL \ 14036ECHO \ 14037lt_prog_compiler_no_builtin_flag \ 14038lt_prog_compiler_wl \ 14039lt_prog_compiler_pic \ 14040lt_prog_compiler_static \ 14041lt_cv_prog_compiler_c_o \ 14042need_locks \ 14043DSYMUTIL \ 14044NMEDIT \ 14045LIPO \ 14046OTOOL \ 14047OTOOL64 \ 14048shrext_cmds \ 14049export_dynamic_flag_spec \ 14050whole_archive_flag_spec \ 14051compiler_needs_object \ 14052with_gnu_ld \ 14053allow_undefined_flag \ 14054no_undefined_flag \ 14055hardcode_libdir_flag_spec \ 14056hardcode_libdir_flag_spec_ld \ 14057hardcode_libdir_separator \ 14058fix_srcfile_path \ 14059exclude_expsyms \ 14060include_expsyms \ 14061file_list_spec \ 14062variables_saved_for_relink \ 14063libname_spec \ 14064library_names_spec \ 14065soname_spec \ 14066finish_eval \ 14067old_striplib \ 14068striplib; do 14069 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14070 *[\\\\\\\`\\"\\\$]*) 14071 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14072 ;; 14073 *) 14074 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14075 ;; 14076 esac 14077done 14078 14079# Double-quote double-evaled strings. 14080for var in reload_cmds \ 14081old_postinstall_cmds \ 14082old_postuninstall_cmds \ 14083old_archive_cmds \ 14084extract_expsyms_cmds \ 14085old_archive_from_new_cmds \ 14086old_archive_from_expsyms_cmds \ 14087archive_cmds \ 14088archive_expsym_cmds \ 14089module_cmds \ 14090module_expsym_cmds \ 14091export_symbols_cmds \ 14092prelink_cmds \ 14093postinstall_cmds \ 14094postuninstall_cmds \ 14095finish_cmds \ 14096sys_lib_search_path_spec \ 14097sys_lib_dlsearch_path_spec; do 14098 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14099 *[\\\\\\\`\\"\\\$]*) 14100 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14101 ;; 14102 *) 14103 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14104 ;; 14105 esac 14106done 14107 14108# Fix-up fallback echo if it was mangled by the above quoting rules. 14109case \$lt_ECHO in 14110*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14111 ;; 14112esac 14113 14114ac_aux_dir='$ac_aux_dir' 14115xsi_shell='$xsi_shell' 14116lt_shell_append='$lt_shell_append' 14117 14118# See if we are running on zsh, and set the options which allow our 14119# commands through without removal of \ escapes INIT. 14120if test -n "\${ZSH_VERSION+set}" ; then 14121 setopt NO_GLOB_SUBST 14122fi 14123 14124 14125 PACKAGE='$PACKAGE' 14126 VERSION='$VERSION' 14127 TIMESTAMP='$TIMESTAMP' 14128 RM='$RM' 14129 ofile='$ofile' 14130 14131 14132 14133 14134_ACEOF 14135 14136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14137 14138# Handling of arguments. 14139for ac_config_target in $ac_config_targets 14140do 14141 case $ac_config_target in 14142 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 14143 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14144 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14145 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14146 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14147 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14148 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14149 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;; 14150 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;; 14151 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;; 14152 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;; 14153 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;; 14154 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;; 14155 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;; 14156 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;; 14157 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;; 14158 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;; 14159 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;; 14160 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;; 14161 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;; 14162 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;; 14163 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;; 14164 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;; 14165 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;; 14166 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;; 14167 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;; 14168 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;; 14169 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;; 14170 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;; 14171 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;; 14172 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;; 14173 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;; 14174 14175 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14176 esac 14177done 14178 14179 14180# If the user did not use the arguments to specify the items to instantiate, 14181# then the envvar interface is used. Set only those that are not. 14182# We use the long form for the default assignment because of an extremely 14183# bizarre bug on SunOS 4.1.3. 14184if $ac_need_defaults; then 14185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14187 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14188fi 14189 14190# Have a temporary directory for convenience. Make it in the build tree 14191# simply because there is no reason against having it here, and in addition, 14192# creating and moving files from /tmp can sometimes cause problems. 14193# Hook for its removal unless debugging. 14194# Note that there is a small window in which the directory will not be cleaned: 14195# after its creation but before its name has been assigned to `$tmp'. 14196$debug || 14197{ 14198 tmp= 14199 trap 'exit_status=$? 14200 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14201' 0 14202 trap 'as_fn_exit 1' 1 2 13 15 14203} 14204# Create a (secure) tmp directory for tmp files. 14205 14206{ 14207 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14208 test -n "$tmp" && test -d "$tmp" 14209} || 14210{ 14211 tmp=./conf$$-$RANDOM 14212 (umask 077 && mkdir "$tmp") 14213} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 14214 14215# Set up the scripts for CONFIG_FILES section. 14216# No need to generate them if there are no CONFIG_FILES. 14217# This happens for instance with `./config.status config.h'. 14218if test -n "$CONFIG_FILES"; then 14219 14220 14221ac_cr=`echo X | tr X '\015'` 14222# On cygwin, bash can eat \r inside `` if the user requested igncr. 14223# But we know of no other shell where ac_cr would be empty at this 14224# point, so we can use a bashism as a fallback. 14225if test "x$ac_cr" = x; then 14226 eval ac_cr=\$\'\\r\' 14227fi 14228ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14229if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14230 ac_cs_awk_cr='\r' 14231else 14232 ac_cs_awk_cr=$ac_cr 14233fi 14234 14235echo 'BEGIN {' >"$tmp/subs1.awk" && 14236_ACEOF 14237 14238 14239{ 14240 echo "cat >conf$$subs.awk <<_ACEOF" && 14241 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14242 echo "_ACEOF" 14243} >conf$$subs.sh || 14244 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14245ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14246ac_delim='%!_!# ' 14247for ac_last_try in false false false false false :; do 14248 . ./conf$$subs.sh || 14249 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14250 14251 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14252 if test $ac_delim_n = $ac_delim_num; then 14253 break 14254 elif $ac_last_try; then 14255 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14256 else 14257 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14258 fi 14259done 14260rm -f conf$$subs.sh 14261 14262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14263cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14264_ACEOF 14265sed -n ' 14266h 14267s/^/S["/; s/!.*/"]=/ 14268p 14269g 14270s/^[^!]*!// 14271:repl 14272t repl 14273s/'"$ac_delim"'$// 14274t delim 14275:nl 14276h 14277s/\(.\{148\}\)..*/\1/ 14278t more1 14279s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14280p 14281n 14282b repl 14283:more1 14284s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14285p 14286g 14287s/.\{148\}// 14288t nl 14289:delim 14290h 14291s/\(.\{148\}\)..*/\1/ 14292t more2 14293s/["\\]/\\&/g; s/^/"/; s/$/"/ 14294p 14295b 14296:more2 14297s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14298p 14299g 14300s/.\{148\}// 14301t delim 14302' <conf$$subs.awk | sed ' 14303/^[^""]/{ 14304 N 14305 s/\n// 14306} 14307' >>$CONFIG_STATUS || ac_write_fail=1 14308rm -f conf$$subs.awk 14309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14310_ACAWK 14311cat >>"\$tmp/subs1.awk" <<_ACAWK && 14312 for (key in S) S_is_set[key] = 1 14313 FS = "" 14314 14315} 14316{ 14317 line = $ 0 14318 nfields = split(line, field, "@") 14319 substed = 0 14320 len = length(field[1]) 14321 for (i = 2; i < nfields; i++) { 14322 key = field[i] 14323 keylen = length(key) 14324 if (S_is_set[key]) { 14325 value = S[key] 14326 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14327 len += length(value) + length(field[++i]) 14328 substed = 1 14329 } else 14330 len += 1 + keylen 14331 } 14332 14333 print line 14334} 14335 14336_ACAWK 14337_ACEOF 14338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14339if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14340 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14341else 14342 cat 14343fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14344 || as_fn_error "could not setup config files machinery" "$LINENO" 5 14345_ACEOF 14346 14347# VPATH may cause trouble with some makes, so we remove $(srcdir), 14348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14349# trailing colons and then remove the whole line if VPATH becomes empty 14350# (actually we leave an empty line to preserve line numbers). 14351if test "x$srcdir" = x.; then 14352 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14353s/:*\$(srcdir):*/:/ 14354s/:*\${srcdir}:*/:/ 14355s/:*@srcdir@:*/:/ 14356s/^\([^=]*=[ ]*\):*/\1/ 14357s/:*$// 14358s/^[^=]*=[ ]*$// 14359}' 14360fi 14361 14362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14363fi # test -n "$CONFIG_FILES" 14364 14365# Set up the scripts for CONFIG_HEADERS section. 14366# No need to generate them if there are no CONFIG_HEADERS. 14367# This happens for instance with `./config.status Makefile'. 14368if test -n "$CONFIG_HEADERS"; then 14369cat >"$tmp/defines.awk" <<\_ACAWK || 14370BEGIN { 14371_ACEOF 14372 14373# Transform confdefs.h into an awk script `defines.awk', embedded as 14374# here-document in config.status, that substitutes the proper values into 14375# config.h.in to produce config.h. 14376 14377# Create a delimiter string that does not exist in confdefs.h, to ease 14378# handling of long lines. 14379ac_delim='%!_!# ' 14380for ac_last_try in false false :; do 14381 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14382 if test -z "$ac_t"; then 14383 break 14384 elif $ac_last_try; then 14385 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 14386 else 14387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14388 fi 14389done 14390 14391# For the awk script, D is an array of macro values keyed by name, 14392# likewise P contains macro parameters if any. Preserve backslash 14393# newline sequences. 14394 14395ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14396sed -n ' 14397s/.\{148\}/&'"$ac_delim"'/g 14398t rset 14399:rset 14400s/^[ ]*#[ ]*define[ ][ ]*/ / 14401t def 14402d 14403:def 14404s/\\$// 14405t bsnl 14406s/["\\]/\\&/g 14407s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14408D["\1"]=" \3"/p 14409s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14410d 14411:bsnl 14412s/["\\]/\\&/g 14413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14414D["\1"]=" \3\\\\\\n"\\/p 14415t cont 14416s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14417t cont 14418d 14419:cont 14420n 14421s/.\{148\}/&'"$ac_delim"'/g 14422t clear 14423:clear 14424s/\\$// 14425t bsnlc 14426s/["\\]/\\&/g; s/^/"/; s/$/"/p 14427d 14428:bsnlc 14429s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14430b cont 14431' <confdefs.h | sed ' 14432s/'"$ac_delim"'/"\\\ 14433"/g' >>$CONFIG_STATUS || ac_write_fail=1 14434 14435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14436 for (key in D) D_is_set[key] = 1 14437 FS = "" 14438} 14439/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14440 line = \$ 0 14441 split(line, arg, " ") 14442 if (arg[1] == "#") { 14443 defundef = arg[2] 14444 mac1 = arg[3] 14445 } else { 14446 defundef = substr(arg[1], 2) 14447 mac1 = arg[2] 14448 } 14449 split(mac1, mac2, "(") #) 14450 macro = mac2[1] 14451 prefix = substr(line, 1, index(line, defundef) - 1) 14452 if (D_is_set[macro]) { 14453 # Preserve the white space surrounding the "#". 14454 print prefix "define", macro P[macro] D[macro] 14455 next 14456 } else { 14457 # Replace #undef with comments. This is necessary, for example, 14458 # in the case of _POSIX_SOURCE, which is predefined and required 14459 # on some systems where configure will not decide to define it. 14460 if (defundef == "undef") { 14461 print "/*", prefix defundef, macro, "*/" 14462 next 14463 } 14464 } 14465} 14466{ print } 14467_ACAWK 14468_ACEOF 14469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14470 as_fn_error "could not setup config headers machinery" "$LINENO" 5 14471fi # test -n "$CONFIG_HEADERS" 14472 14473 14474eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14475shift 14476for ac_tag 14477do 14478 case $ac_tag in 14479 :[FHLC]) ac_mode=$ac_tag; continue;; 14480 esac 14481 case $ac_mode$ac_tag in 14482 :[FHL]*:*);; 14483 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 14484 :[FH]-) ac_tag=-:-;; 14485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14486 esac 14487 ac_save_IFS=$IFS 14488 IFS=: 14489 set x $ac_tag 14490 IFS=$ac_save_IFS 14491 shift 14492 ac_file=$1 14493 shift 14494 14495 case $ac_mode in 14496 :L) ac_source=$1;; 14497 :[FH]) 14498 ac_file_inputs= 14499 for ac_f 14500 do 14501 case $ac_f in 14502 -) ac_f="$tmp/stdin";; 14503 *) # Look for the file first in the build tree, then in the source tree 14504 # (if the path is not absolute). The absolute path cannot be DOS-style, 14505 # because $ac_f cannot contain `:'. 14506 test -f "$ac_f" || 14507 case $ac_f in 14508 [\\/$]*) false;; 14509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14510 esac || 14511 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14512 esac 14513 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14514 as_fn_append ac_file_inputs " '$ac_f'" 14515 done 14516 14517 # Let's still pretend it is `configure' which instantiates (i.e., don't 14518 # use $as_me), people would be surprised to read: 14519 # /* config.h. Generated by config.status. */ 14520 configure_input='Generated from '` 14521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14522 `' by configure.' 14523 if test x"$ac_file" != x-; then 14524 configure_input="$ac_file. $configure_input" 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14526$as_echo "$as_me: creating $ac_file" >&6;} 14527 fi 14528 # Neutralize special characters interpreted by sed in replacement strings. 14529 case $configure_input in #( 14530 *\&* | *\|* | *\\* ) 14531 ac_sed_conf_input=`$as_echo "$configure_input" | 14532 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14533 *) ac_sed_conf_input=$configure_input;; 14534 esac 14535 14536 case $ac_tag in 14537 *:-:* | *:-) cat >"$tmp/stdin" \ 14538 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 14539 esac 14540 ;; 14541 esac 14542 14543 ac_dir=`$as_dirname -- "$ac_file" || 14544$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14545 X"$ac_file" : 'X\(//\)[^/]' \| \ 14546 X"$ac_file" : 'X\(//\)$' \| \ 14547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14548$as_echo X"$ac_file" | 14549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14550 s//\1/ 14551 q 14552 } 14553 /^X\(\/\/\)[^/].*/{ 14554 s//\1/ 14555 q 14556 } 14557 /^X\(\/\/\)$/{ 14558 s//\1/ 14559 q 14560 } 14561 /^X\(\/\).*/{ 14562 s//\1/ 14563 q 14564 } 14565 s/.*/./; q'` 14566 as_dir="$ac_dir"; as_fn_mkdir_p 14567 ac_builddir=. 14568 14569case "$ac_dir" in 14570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14571*) 14572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14573 # A ".." for each directory in $ac_dir_suffix. 14574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14575 case $ac_top_builddir_sub in 14576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14578 esac ;; 14579esac 14580ac_abs_top_builddir=$ac_pwd 14581ac_abs_builddir=$ac_pwd$ac_dir_suffix 14582# for backward compatibility: 14583ac_top_builddir=$ac_top_build_prefix 14584 14585case $srcdir in 14586 .) # We are building in place. 14587 ac_srcdir=. 14588 ac_top_srcdir=$ac_top_builddir_sub 14589 ac_abs_top_srcdir=$ac_pwd ;; 14590 [\\/]* | ?:[\\/]* ) # Absolute name. 14591 ac_srcdir=$srcdir$ac_dir_suffix; 14592 ac_top_srcdir=$srcdir 14593 ac_abs_top_srcdir=$srcdir ;; 14594 *) # Relative name. 14595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14596 ac_top_srcdir=$ac_top_build_prefix$srcdir 14597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14598esac 14599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14600 14601 14602 case $ac_mode in 14603 :F) 14604 # 14605 # CONFIG_FILE 14606 # 14607 14608 case $INSTALL in 14609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14610 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14611 esac 14612 ac_MKDIR_P=$MKDIR_P 14613 case $MKDIR_P in 14614 [\\/$]* | ?:[\\/]* ) ;; 14615 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14616 esac 14617_ACEOF 14618 14619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14620# If the template does not know about datarootdir, expand it. 14621# FIXME: This hack should be removed a few years after 2.60. 14622ac_datarootdir_hack=; ac_datarootdir_seen= 14623ac_sed_dataroot=' 14624/datarootdir/ { 14625 p 14626 q 14627} 14628/@datadir@/p 14629/@docdir@/p 14630/@infodir@/p 14631/@localedir@/p 14632/@mandir@/p' 14633case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14634*datarootdir*) ac_datarootdir_seen=yes;; 14635*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14637$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14638_ACEOF 14639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14640 ac_datarootdir_hack=' 14641 s&@datadir@&$datadir&g 14642 s&@docdir@&$docdir&g 14643 s&@infodir@&$infodir&g 14644 s&@localedir@&$localedir&g 14645 s&@mandir@&$mandir&g 14646 s&\\\${datarootdir}&$datarootdir&g' ;; 14647esac 14648_ACEOF 14649 14650# Neutralize VPATH when `$srcdir' = `.'. 14651# Shell code in configure.ac might set extrasub. 14652# FIXME: do we really want to maintain this feature? 14653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14654ac_sed_extra="$ac_vpsub 14655$extrasub 14656_ACEOF 14657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14658:t 14659/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14660s|@configure_input@|$ac_sed_conf_input|;t t 14661s&@top_builddir@&$ac_top_builddir_sub&;t t 14662s&@top_build_prefix@&$ac_top_build_prefix&;t t 14663s&@srcdir@&$ac_srcdir&;t t 14664s&@abs_srcdir@&$ac_abs_srcdir&;t t 14665s&@top_srcdir@&$ac_top_srcdir&;t t 14666s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14667s&@builddir@&$ac_builddir&;t t 14668s&@abs_builddir@&$ac_abs_builddir&;t t 14669s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14670s&@INSTALL@&$ac_INSTALL&;t t 14671s&@MKDIR_P@&$ac_MKDIR_P&;t t 14672$ac_datarootdir_hack 14673" 14674eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14675 || as_fn_error "could not create $ac_file" "$LINENO" 5 14676 14677test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14678 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14681which seems to be undefined. Please make sure it is defined." >&5 14682$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14683which seems to be undefined. Please make sure it is defined." >&2;} 14684 14685 rm -f "$tmp/stdin" 14686 case $ac_file in 14687 -) cat "$tmp/out" && rm -f "$tmp/out";; 14688 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14689 esac \ 14690 || as_fn_error "could not create $ac_file" "$LINENO" 5 14691 ;; 14692 :H) 14693 # 14694 # CONFIG_HEADER 14695 # 14696 if test x"$ac_file" != x-; then 14697 { 14698 $as_echo "/* $configure_input */" \ 14699 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14700 } >"$tmp/config.h" \ 14701 || as_fn_error "could not create $ac_file" "$LINENO" 5 14702 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14704$as_echo "$as_me: $ac_file is unchanged" >&6;} 14705 else 14706 rm -f "$ac_file" 14707 mv "$tmp/config.h" "$ac_file" \ 14708 || as_fn_error "could not create $ac_file" "$LINENO" 5 14709 fi 14710 else 14711 $as_echo "/* $configure_input */" \ 14712 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14713 || as_fn_error "could not create -" "$LINENO" 5 14714 fi 14715# Compute "$ac_file"'s index in $config_headers. 14716_am_arg="$ac_file" 14717_am_stamp_count=1 14718for _am_header in $config_headers :; do 14719 case $_am_header in 14720 $_am_arg | $_am_arg:* ) 14721 break ;; 14722 * ) 14723 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14724 esac 14725done 14726echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14727$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14728 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14729 X"$_am_arg" : 'X\(//\)$' \| \ 14730 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14731$as_echo X"$_am_arg" | 14732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14733 s//\1/ 14734 q 14735 } 14736 /^X\(\/\/\)[^/].*/{ 14737 s//\1/ 14738 q 14739 } 14740 /^X\(\/\/\)$/{ 14741 s//\1/ 14742 q 14743 } 14744 /^X\(\/\).*/{ 14745 s//\1/ 14746 q 14747 } 14748 s/.*/./; q'`/stamp-h$_am_stamp_count 14749 ;; 14750 14751 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14752$as_echo "$as_me: executing $ac_file commands" >&6;} 14753 ;; 14754 esac 14755 14756 14757 case $ac_file$ac_mode in 14758 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14759 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14760 # are listed without --file. Let's play safe and only enable the eval 14761 # if we detect the quoting. 14762 case $CONFIG_FILES in 14763 *\'*) eval set x "$CONFIG_FILES" ;; 14764 *) set x $CONFIG_FILES ;; 14765 esac 14766 shift 14767 for mf 14768 do 14769 # Strip MF so we end up with the name of the file. 14770 mf=`echo "$mf" | sed -e 's/:.*$//'` 14771 # Check whether this is an Automake generated Makefile or not. 14772 # We used to match only the files named `Makefile.in', but 14773 # some people rename them; so instead we look at the file content. 14774 # Grep'ing the first line is not enough: some people post-process 14775 # each Makefile.in and add a new line on top of each file to say so. 14776 # Grep'ing the whole file is not good either: AIX grep has a line 14777 # limit of 2048, but all sed's we know have understand at least 4000. 14778 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14779 dirpart=`$as_dirname -- "$mf" || 14780$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14781 X"$mf" : 'X\(//\)[^/]' \| \ 14782 X"$mf" : 'X\(//\)$' \| \ 14783 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14784$as_echo X"$mf" | 14785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14786 s//\1/ 14787 q 14788 } 14789 /^X\(\/\/\)[^/].*/{ 14790 s//\1/ 14791 q 14792 } 14793 /^X\(\/\/\)$/{ 14794 s//\1/ 14795 q 14796 } 14797 /^X\(\/\).*/{ 14798 s//\1/ 14799 q 14800 } 14801 s/.*/./; q'` 14802 else 14803 continue 14804 fi 14805 # Extract the definition of DEPDIR, am__include, and am__quote 14806 # from the Makefile without running `make'. 14807 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14808 test -z "$DEPDIR" && continue 14809 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14810 test -z "am__include" && continue 14811 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14812 # When using ansi2knr, U may be empty or an underscore; expand it 14813 U=`sed -n 's/^U = //p' < "$mf"` 14814 # Find all dependency output files, they are included files with 14815 # $(DEPDIR) in their names. We invoke sed twice because it is the 14816 # simplest approach to changing $(DEPDIR) to its actual value in the 14817 # expansion. 14818 for file in `sed -n " 14819 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14820 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14821 # Make sure the directory exists. 14822 test -f "$dirpart/$file" && continue 14823 fdir=`$as_dirname -- "$file" || 14824$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14825 X"$file" : 'X\(//\)[^/]' \| \ 14826 X"$file" : 'X\(//\)$' \| \ 14827 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14828$as_echo X"$file" | 14829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14830 s//\1/ 14831 q 14832 } 14833 /^X\(\/\/\)[^/].*/{ 14834 s//\1/ 14835 q 14836 } 14837 /^X\(\/\/\)$/{ 14838 s//\1/ 14839 q 14840 } 14841 /^X\(\/\).*/{ 14842 s//\1/ 14843 q 14844 } 14845 s/.*/./; q'` 14846 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14847 # echo "creating $dirpart/$file" 14848 echo '# dummy' > "$dirpart/$file" 14849 done 14850 done 14851} 14852 ;; 14853 "libtool":C) 14854 14855 # See if we are running on zsh, and set the options which allow our 14856 # commands through without removal of \ escapes. 14857 if test -n "${ZSH_VERSION+set}" ; then 14858 setopt NO_GLOB_SUBST 14859 fi 14860 14861 cfgfile="${ofile}T" 14862 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14863 $RM "$cfgfile" 14864 14865 cat <<_LT_EOF >> "$cfgfile" 14866#! $SHELL 14867 14868# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14869# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14870# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14871# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14872# 14873# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14874# 2006, 2007, 2008 Free Software Foundation, Inc. 14875# Written by Gordon Matzigkeit, 1996 14876# 14877# This file is part of GNU Libtool. 14878# 14879# GNU Libtool is free software; you can redistribute it and/or 14880# modify it under the terms of the GNU General Public License as 14881# published by the Free Software Foundation; either version 2 of 14882# the License, or (at your option) any later version. 14883# 14884# As a special exception to the GNU General Public License, 14885# if you distribute this file as part of a program or library that 14886# is built using GNU Libtool, you may include this file under the 14887# same distribution terms that you use for the rest of that program. 14888# 14889# GNU Libtool is distributed in the hope that it will be useful, 14890# but WITHOUT ANY WARRANTY; without even the implied warranty of 14891# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14892# GNU General Public License for more details. 14893# 14894# You should have received a copy of the GNU General Public License 14895# along with GNU Libtool; see the file COPYING. If not, a copy 14896# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14897# obtained by writing to the Free Software Foundation, Inc., 14898# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14899 14900 14901# The names of the tagged configurations supported by this script. 14902available_tags="" 14903 14904# ### BEGIN LIBTOOL CONFIG 14905 14906# Which release of libtool.m4 was used? 14907macro_version=$macro_version 14908macro_revision=$macro_revision 14909 14910# Whether or not to build shared libraries. 14911build_libtool_libs=$enable_shared 14912 14913# Whether or not to build static libraries. 14914build_old_libs=$enable_static 14915 14916# What type of objects to build. 14917pic_mode=$pic_mode 14918 14919# Whether or not to optimize for fast installation. 14920fast_install=$enable_fast_install 14921 14922# The host system. 14923host_alias=$host_alias 14924host=$host 14925host_os=$host_os 14926 14927# The build system. 14928build_alias=$build_alias 14929build=$build 14930build_os=$build_os 14931 14932# A sed program that does not truncate output. 14933SED=$lt_SED 14934 14935# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14936Xsed="\$SED -e 1s/^X//" 14937 14938# A grep program that handles long lines. 14939GREP=$lt_GREP 14940 14941# An ERE matcher. 14942EGREP=$lt_EGREP 14943 14944# A literal string matcher. 14945FGREP=$lt_FGREP 14946 14947# A BSD- or MS-compatible name lister. 14948NM=$lt_NM 14949 14950# Whether we need soft or hard links. 14951LN_S=$lt_LN_S 14952 14953# What is the maximum length of a command? 14954max_cmd_len=$max_cmd_len 14955 14956# Object file suffix (normally "o"). 14957objext=$ac_objext 14958 14959# Executable file suffix (normally ""). 14960exeext=$exeext 14961 14962# whether the shell understands "unset". 14963lt_unset=$lt_unset 14964 14965# turn spaces into newlines. 14966SP2NL=$lt_lt_SP2NL 14967 14968# turn newlines into spaces. 14969NL2SP=$lt_lt_NL2SP 14970 14971# How to create reloadable object files. 14972reload_flag=$lt_reload_flag 14973reload_cmds=$lt_reload_cmds 14974 14975# An object symbol dumper. 14976OBJDUMP=$lt_OBJDUMP 14977 14978# Method to check whether dependent libraries are shared objects. 14979deplibs_check_method=$lt_deplibs_check_method 14980 14981# Command to use when deplibs_check_method == "file_magic". 14982file_magic_cmd=$lt_file_magic_cmd 14983 14984# The archiver. 14985AR=$lt_AR 14986AR_FLAGS=$lt_AR_FLAGS 14987 14988# A symbol stripping program. 14989STRIP=$lt_STRIP 14990 14991# Commands used to install an old-style archive. 14992RANLIB=$lt_RANLIB 14993old_postinstall_cmds=$lt_old_postinstall_cmds 14994old_postuninstall_cmds=$lt_old_postuninstall_cmds 14995 14996# A C compiler. 14997LTCC=$lt_CC 14998 14999# LTCC compiler flags. 15000LTCFLAGS=$lt_CFLAGS 15001 15002# Take the output of nm and produce a listing of raw symbols and C names. 15003global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15004 15005# Transform the output of nm in a proper C declaration. 15006global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15007 15008# Transform the output of nm in a C name address pair. 15009global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15010 15011# Transform the output of nm in a C name address pair when lib prefix is needed. 15012global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15013 15014# The name of the directory that contains temporary libtool files. 15015objdir=$objdir 15016 15017# Shell to use when invoking shell scripts. 15018SHELL=$lt_SHELL 15019 15020# An echo program that does not interpret backslashes. 15021ECHO=$lt_ECHO 15022 15023# Used to examine libraries when file_magic_cmd begins with "file". 15024MAGIC_CMD=$MAGIC_CMD 15025 15026# Must we lock files when doing compilation? 15027need_locks=$lt_need_locks 15028 15029# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15030DSYMUTIL=$lt_DSYMUTIL 15031 15032# Tool to change global to local symbols on Mac OS X. 15033NMEDIT=$lt_NMEDIT 15034 15035# Tool to manipulate fat objects and archives on Mac OS X. 15036LIPO=$lt_LIPO 15037 15038# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15039OTOOL=$lt_OTOOL 15040 15041# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15042OTOOL64=$lt_OTOOL64 15043 15044# Old archive suffix (normally "a"). 15045libext=$libext 15046 15047# Shared library suffix (normally ".so"). 15048shrext_cmds=$lt_shrext_cmds 15049 15050# The commands to extract the exported symbol list from a shared archive. 15051extract_expsyms_cmds=$lt_extract_expsyms_cmds 15052 15053# Variables whose values should be saved in libtool wrapper scripts and 15054# restored at link time. 15055variables_saved_for_relink=$lt_variables_saved_for_relink 15056 15057# Do we need the "lib" prefix for modules? 15058need_lib_prefix=$need_lib_prefix 15059 15060# Do we need a version for libraries? 15061need_version=$need_version 15062 15063# Library versioning type. 15064version_type=$version_type 15065 15066# Shared library runtime path variable. 15067runpath_var=$runpath_var 15068 15069# Shared library path variable. 15070shlibpath_var=$shlibpath_var 15071 15072# Is shlibpath searched before the hard-coded library search path? 15073shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15074 15075# Format of library name prefix. 15076libname_spec=$lt_libname_spec 15077 15078# List of archive names. First name is the real one, the rest are links. 15079# The last name is the one that the linker finds with -lNAME 15080library_names_spec=$lt_library_names_spec 15081 15082# The coded name of the library, if different from the real name. 15083soname_spec=$lt_soname_spec 15084 15085# Command to use after installation of a shared archive. 15086postinstall_cmds=$lt_postinstall_cmds 15087 15088# Command to use after uninstallation of a shared archive. 15089postuninstall_cmds=$lt_postuninstall_cmds 15090 15091# Commands used to finish a libtool library installation in a directory. 15092finish_cmds=$lt_finish_cmds 15093 15094# As "finish_cmds", except a single script fragment to be evaled but 15095# not shown. 15096finish_eval=$lt_finish_eval 15097 15098# Whether we should hardcode library paths into libraries. 15099hardcode_into_libs=$hardcode_into_libs 15100 15101# Compile-time system search path for libraries. 15102sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15103 15104# Run-time system search path for libraries. 15105sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15106 15107# Whether dlopen is supported. 15108dlopen_support=$enable_dlopen 15109 15110# Whether dlopen of programs is supported. 15111dlopen_self=$enable_dlopen_self 15112 15113# Whether dlopen of statically linked programs is supported. 15114dlopen_self_static=$enable_dlopen_self_static 15115 15116# Commands to strip libraries. 15117old_striplib=$lt_old_striplib 15118striplib=$lt_striplib 15119 15120 15121# The linker used to build libraries. 15122LD=$lt_LD 15123 15124# Commands used to build an old-style archive. 15125old_archive_cmds=$lt_old_archive_cmds 15126 15127# A language specific compiler. 15128CC=$lt_compiler 15129 15130# Is the compiler the GNU compiler? 15131with_gcc=$GCC 15132 15133# Compiler flag to turn off builtin functions. 15134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15135 15136# How to pass a linker flag through the compiler. 15137wl=$lt_lt_prog_compiler_wl 15138 15139# Additional compiler flags for building library objects. 15140pic_flag=$lt_lt_prog_compiler_pic 15141 15142# Compiler flag to prevent dynamic linking. 15143link_static_flag=$lt_lt_prog_compiler_static 15144 15145# Does compiler simultaneously support -c and -o options? 15146compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15147 15148# Whether or not to add -lc for building shared libraries. 15149build_libtool_need_lc=$archive_cmds_need_lc 15150 15151# Whether or not to disallow shared libs when runtime libs are static. 15152allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15153 15154# Compiler flag to allow reflexive dlopens. 15155export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15156 15157# Compiler flag to generate shared objects directly from archives. 15158whole_archive_flag_spec=$lt_whole_archive_flag_spec 15159 15160# Whether the compiler copes with passing no objects directly. 15161compiler_needs_object=$lt_compiler_needs_object 15162 15163# Create an old-style archive from a shared archive. 15164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15165 15166# Create a temporary old-style archive to link instead of a shared archive. 15167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15168 15169# Commands used to build a shared archive. 15170archive_cmds=$lt_archive_cmds 15171archive_expsym_cmds=$lt_archive_expsym_cmds 15172 15173# Commands used to build a loadable module if different from building 15174# a shared archive. 15175module_cmds=$lt_module_cmds 15176module_expsym_cmds=$lt_module_expsym_cmds 15177 15178# Whether we are building with GNU ld or not. 15179with_gnu_ld=$lt_with_gnu_ld 15180 15181# Flag that allows shared libraries with undefined symbols to be built. 15182allow_undefined_flag=$lt_allow_undefined_flag 15183 15184# Flag that enforces no undefined symbols. 15185no_undefined_flag=$lt_no_undefined_flag 15186 15187# Flag to hardcode \$libdir into a binary during linking. 15188# This must work even if \$libdir does not exist 15189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15190 15191# If ld is used when linking, flag to hardcode \$libdir into a binary 15192# during linking. This must work even if \$libdir does not exist. 15193hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15194 15195# Whether we need a single "-rpath" flag with a separated argument. 15196hardcode_libdir_separator=$lt_hardcode_libdir_separator 15197 15198# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15199# DIR into the resulting binary. 15200hardcode_direct=$hardcode_direct 15201 15202# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15203# DIR into the resulting binary and the resulting library dependency is 15204# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15205# library is relocated. 15206hardcode_direct_absolute=$hardcode_direct_absolute 15207 15208# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15209# into the resulting binary. 15210hardcode_minus_L=$hardcode_minus_L 15211 15212# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15213# into the resulting binary. 15214hardcode_shlibpath_var=$hardcode_shlibpath_var 15215 15216# Set to "yes" if building a shared library automatically hardcodes DIR 15217# into the library and all subsequent libraries and executables linked 15218# against it. 15219hardcode_automatic=$hardcode_automatic 15220 15221# Set to yes if linker adds runtime paths of dependent libraries 15222# to runtime path list. 15223inherit_rpath=$inherit_rpath 15224 15225# Whether libtool must link a program against all its dependency libraries. 15226link_all_deplibs=$link_all_deplibs 15227 15228# Fix the shell variable \$srcfile for the compiler. 15229fix_srcfile_path=$lt_fix_srcfile_path 15230 15231# Set to "yes" if exported symbols are required. 15232always_export_symbols=$always_export_symbols 15233 15234# The commands to list exported symbols. 15235export_symbols_cmds=$lt_export_symbols_cmds 15236 15237# Symbols that should not be listed in the preloaded symbols. 15238exclude_expsyms=$lt_exclude_expsyms 15239 15240# Symbols that must always be exported. 15241include_expsyms=$lt_include_expsyms 15242 15243# Commands necessary for linking programs (against libraries) with templates. 15244prelink_cmds=$lt_prelink_cmds 15245 15246# Specify filename containing input files. 15247file_list_spec=$lt_file_list_spec 15248 15249# How to hardcode a shared library path into an executable. 15250hardcode_action=$hardcode_action 15251 15252# ### END LIBTOOL CONFIG 15253 15254_LT_EOF 15255 15256 case $host_os in 15257 aix3*) 15258 cat <<\_LT_EOF >> "$cfgfile" 15259# AIX sometimes has problems with the GCC collect2 program. For some 15260# reason, if we set the COLLECT_NAMES environment variable, the problems 15261# vanish in a puff of smoke. 15262if test "X${COLLECT_NAMES+set}" != Xset; then 15263 COLLECT_NAMES= 15264 export COLLECT_NAMES 15265fi 15266_LT_EOF 15267 ;; 15268 esac 15269 15270 15271ltmain="$ac_aux_dir/ltmain.sh" 15272 15273 15274 # We use sed instead of cat because bash on DJGPP gets confused if 15275 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15276 # text mode, it properly converts lines to CR/LF. This bash problem 15277 # is reportedly fixed, but why not run on old versions too? 15278 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15279 || (rm -f "$cfgfile"; exit 1) 15280 15281 case $xsi_shell in 15282 yes) 15283 cat << \_LT_EOF >> "$cfgfile" 15284 15285# func_dirname file append nondir_replacement 15286# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15287# otherwise set result to NONDIR_REPLACEMENT. 15288func_dirname () 15289{ 15290 case ${1} in 15291 */*) func_dirname_result="${1%/*}${2}" ;; 15292 * ) func_dirname_result="${3}" ;; 15293 esac 15294} 15295 15296# func_basename file 15297func_basename () 15298{ 15299 func_basename_result="${1##*/}" 15300} 15301 15302# func_dirname_and_basename file append nondir_replacement 15303# perform func_basename and func_dirname in a single function 15304# call: 15305# dirname: Compute the dirname of FILE. If nonempty, 15306# add APPEND to the result, otherwise set result 15307# to NONDIR_REPLACEMENT. 15308# value returned in "$func_dirname_result" 15309# basename: Compute filename of FILE. 15310# value retuned in "$func_basename_result" 15311# Implementation must be kept synchronized with func_dirname 15312# and func_basename. For efficiency, we do not delegate to 15313# those functions but instead duplicate the functionality here. 15314func_dirname_and_basename () 15315{ 15316 case ${1} in 15317 */*) func_dirname_result="${1%/*}${2}" ;; 15318 * ) func_dirname_result="${3}" ;; 15319 esac 15320 func_basename_result="${1##*/}" 15321} 15322 15323# func_stripname prefix suffix name 15324# strip PREFIX and SUFFIX off of NAME. 15325# PREFIX and SUFFIX must not contain globbing or regex special 15326# characters, hashes, percent signs, but SUFFIX may contain a leading 15327# dot (in which case that matches only a dot). 15328func_stripname () 15329{ 15330 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15331 # positional parameters, so assign one to ordinary parameter first. 15332 func_stripname_result=${3} 15333 func_stripname_result=${func_stripname_result#"${1}"} 15334 func_stripname_result=${func_stripname_result%"${2}"} 15335} 15336 15337# func_opt_split 15338func_opt_split () 15339{ 15340 func_opt_split_opt=${1%%=*} 15341 func_opt_split_arg=${1#*=} 15342} 15343 15344# func_lo2o object 15345func_lo2o () 15346{ 15347 case ${1} in 15348 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15349 *) func_lo2o_result=${1} ;; 15350 esac 15351} 15352 15353# func_xform libobj-or-source 15354func_xform () 15355{ 15356 func_xform_result=${1%.*}.lo 15357} 15358 15359# func_arith arithmetic-term... 15360func_arith () 15361{ 15362 func_arith_result=$(( $* )) 15363} 15364 15365# func_len string 15366# STRING may not start with a hyphen. 15367func_len () 15368{ 15369 func_len_result=${#1} 15370} 15371 15372_LT_EOF 15373 ;; 15374 *) # Bourne compatible functions. 15375 cat << \_LT_EOF >> "$cfgfile" 15376 15377# func_dirname file append nondir_replacement 15378# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15379# otherwise set result to NONDIR_REPLACEMENT. 15380func_dirname () 15381{ 15382 # Extract subdirectory from the argument. 15383 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15384 if test "X$func_dirname_result" = "X${1}"; then 15385 func_dirname_result="${3}" 15386 else 15387 func_dirname_result="$func_dirname_result${2}" 15388 fi 15389} 15390 15391# func_basename file 15392func_basename () 15393{ 15394 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15395} 15396 15397 15398# func_stripname prefix suffix name 15399# strip PREFIX and SUFFIX off of NAME. 15400# PREFIX and SUFFIX must not contain globbing or regex special 15401# characters, hashes, percent signs, but SUFFIX may contain a leading 15402# dot (in which case that matches only a dot). 15403# func_strip_suffix prefix name 15404func_stripname () 15405{ 15406 case ${2} in 15407 .*) func_stripname_result=`$ECHO "X${3}" \ 15408 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15409 *) func_stripname_result=`$ECHO "X${3}" \ 15410 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15411 esac 15412} 15413 15414# sed scripts: 15415my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15416my_sed_long_arg='1s/^-[^=]*=//' 15417 15418# func_opt_split 15419func_opt_split () 15420{ 15421 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15422 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15423} 15424 15425# func_lo2o object 15426func_lo2o () 15427{ 15428 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15429} 15430 15431# func_xform libobj-or-source 15432func_xform () 15433{ 15434 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15435} 15436 15437# func_arith arithmetic-term... 15438func_arith () 15439{ 15440 func_arith_result=`expr "$@"` 15441} 15442 15443# func_len string 15444# STRING may not start with a hyphen. 15445func_len () 15446{ 15447 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15448} 15449 15450_LT_EOF 15451esac 15452 15453case $lt_shell_append in 15454 yes) 15455 cat << \_LT_EOF >> "$cfgfile" 15456 15457# func_append var value 15458# Append VALUE to the end of shell variable VAR. 15459func_append () 15460{ 15461 eval "$1+=\$2" 15462} 15463_LT_EOF 15464 ;; 15465 *) 15466 cat << \_LT_EOF >> "$cfgfile" 15467 15468# func_append var value 15469# Append VALUE to the end of shell variable VAR. 15470func_append () 15471{ 15472 eval "$1=\$$1\$2" 15473} 15474 15475_LT_EOF 15476 ;; 15477 esac 15478 15479 15480 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15481 || (rm -f "$cfgfile"; exit 1) 15482 15483 mv -f "$cfgfile" "$ofile" || 15484 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15485 chmod +x "$ofile" 15486 15487 ;; 15488 15489 esac 15490done # for ac_tag 15491 15492 15493as_fn_exit 0 15494_ACEOF 15495ac_clean_files=$ac_clean_files_save 15496 15497test $ac_write_fail = 0 || 15498 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 15499 15500 15501# configure is writing to config.log, and then calls config.status. 15502# config.status does its own redirection, appending to config.log. 15503# Unfortunately, on DOS this fails, as config.log is still kept open 15504# by configure, so config.status won't be able to write to it; its 15505# output is simply discarded. So we exec the FD to /dev/null, 15506# effectively closing config.log, so it can be properly (re)opened and 15507# appended to by config.status. When coming back to configure, we 15508# need to make the FD available again. 15509if test "$no_create" != yes; then 15510 ac_cs_success=: 15511 ac_config_status_args= 15512 test "$silent" = yes && 15513 ac_config_status_args="$ac_config_status_args --quiet" 15514 exec 5>/dev/null 15515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15516 exec 5>>config.log 15517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15518 # would make configure fail if this is the last instruction. 15519 $ac_cs_success || as_fn_exit $? 15520fi 15521if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15523$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15524fi 15525 15526 15527 15528echo "" 15529echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}" 15530echo "" 15531echo " Configuration" 15532echo " XDM support.........: ${have_xdmcp}" 15533echo " Build unit tests....: ${HAVE_CHECK}" 15534echo " XCB buffer size.....: ${xcb_queue_buffer_size}" 15535echo "" 15536echo " Used CFLAGS:" 15537echo " CPPFLAGS............: ${CPPFLAGS}" 15538echo " CFLAGS..............: ${CFLAGS}" 15539echo " Warning CFLAGS......: ${CWARNFLAGS}" 15540echo "" 15541echo " Installation:" 15542echo " Prefix..............: ${prefix}" 15543echo "" 15544