configure revision 7aa89044
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXcomposite 0.4.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, 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. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550as_awk_strverscmp=' 551 # Use only awk features that work with 7th edition Unix awk (1978). 552 # My, what an old awk you have, Mr. Solaris! 553 END { 554 while (length(v1) && length(v2)) { 555 # Set d1 to be the next thing to compare from v1, and likewise for d2. 556 # Normally this is a single character, but if v1 and v2 contain digits, 557 # compare them as integers and fractions as strverscmp does. 558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 559 # Split v1 and v2 into their leading digit string components d1 and d2, 560 # and advance v1 and v2 past the leading digit strings. 561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 565 if (d1 ~ /^0/) { 566 if (d2 ~ /^0/) { 567 # Compare two fractions. 568 while (d1 ~ /^0/ && d2 ~ /^0/) { 569 d1 = substr(d1, 2); len1-- 570 d2 = substr(d2, 2); len2-- 571 } 572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 573 # The two components differ in length, and the common prefix 574 # contains only leading zeros. Consider the longer to be less. 575 d1 = -len1 576 d2 = -len2 577 } else { 578 # Otherwise, compare as strings. 579 d1 = "x" d1 580 d2 = "x" d2 581 } 582 } else { 583 # A fraction is less than an integer. 584 exit 1 585 } 586 } else { 587 if (d2 ~ /^0/) { 588 # An integer is greater than a fraction. 589 exit 2 590 } else { 591 # Compare two integers. 592 d1 += 0 593 d2 += 0 594 } 595 } 596 } else { 597 # The normal case, without worrying about digits. 598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 600 } 601 if (d1 < d2) exit 1 602 if (d1 > d2) exit 2 603 } 604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 605 # which mishandles some comparisons of empty strings to integers. 606 if (length(v2)) exit 1 607 if (length(v1)) exit 2 608 } 609' 610 611test -n "$DJDIR" || exec 7<&0 </dev/null 612exec 6>&1 613 614# Name of the host. 615# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 616# so uname gets run too. 617ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 618 619# 620# Initializations. 621# 622ac_default_prefix=/usr/local 623ac_clean_files= 624ac_config_libobj_dir=. 625LIBOBJS= 626cross_compiling=no 627subdirs= 628MFLAGS= 629MAKEFLAGS= 630 631# Identity of this package. 632PACKAGE_NAME='libXcomposite' 633PACKAGE_TARNAME='libXcomposite' 634PACKAGE_VERSION='0.4.3' 635PACKAGE_STRING='libXcomposite 0.4.3' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639# Factoring default headers for most tests. 640ac_includes_default="\ 641#include <stdio.h> 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef STDC_HEADERS 649# include <stdlib.h> 650# include <stddef.h> 651#else 652# ifdef HAVE_STDLIB_H 653# include <stdlib.h> 654# endif 655#endif 656#ifdef HAVE_STRING_H 657# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 658# include <memory.h> 659# endif 660# include <string.h> 661#endif 662#ifdef HAVE_STRINGS_H 663# include <strings.h> 664#endif 665#ifdef HAVE_INTTYPES_H 666# include <inttypes.h> 667#endif 668#ifdef HAVE_STDINT_H 669# include <stdint.h> 670#endif 671#ifdef HAVE_UNISTD_H 672# include <unistd.h> 673#endif" 674 675ac_subst_vars='am__EXEEXT_FALSE 676am__EXEEXT_TRUE 677LTLIBOBJS 678LIBOBJS 679XFIXES_LIBS 680XFIXES_CFLAGS 681XCOMPOSITE_LIBS 682XCOMPOSITE_CFLAGS 683COMPOSITEEXT_VERSION 684INSTALL_MANPAGES_FALSE 685INSTALL_MANPAGES_TRUE 686HAVE_XMLTO_FALSE 687HAVE_XMLTO_TRUE 688HAVE_XMLTO_TEXT_FALSE 689HAVE_XMLTO_TEXT_TRUE 690XMLTO 691AM_BACKSLASH 692AM_DEFAULT_VERBOSITY 693MAN_SUBSTS 694XORG_MAN_PAGE 695ADMIN_MAN_DIR 696DRIVER_MAN_DIR 697MISC_MAN_DIR 698FILE_MAN_DIR 699LIB_MAN_DIR 700APP_MAN_DIR 701ADMIN_MAN_SUFFIX 702DRIVER_MAN_SUFFIX 703MISC_MAN_SUFFIX 704FILE_MAN_SUFFIX 705LIB_MAN_SUFFIX 706APP_MAN_SUFFIX 707INSTALL_CMD 708PKG_CONFIG 709CHANGELOG_CMD 710CWARNFLAGS 711CPP 712OTOOL64 713OTOOL 714LIPO 715NMEDIT 716DSYMUTIL 717RANLIB 718AR 719OBJDUMP 720LN_S 721NM 722ac_ct_DUMPBIN 723DUMPBIN 724LD 725FGREP 726EGREP 727GREP 728SED 729host_os 730host_vendor 731host_cpu 732host 733build_os 734build_vendor 735build_cpu 736build 737LIBTOOL 738am__fastdepCC_FALSE 739am__fastdepCC_TRUE 740CCDEPMODE 741AMDEPBACKSLASH 742AMDEP_FALSE 743AMDEP_TRUE 744am__quote 745am__include 746DEPDIR 747OBJEXT 748EXEEXT 749ac_ct_CC 750CPPFLAGS 751LDFLAGS 752CFLAGS 753CC 754MAINT 755MAINTAINER_MODE_FALSE 756MAINTAINER_MODE_TRUE 757am__untar 758am__tar 759AMTAR 760am__leading_dot 761SET_MAKE 762AWK 763mkdir_p 764MKDIR_P 765INSTALL_STRIP_PROGRAM 766STRIP 767install_sh 768MAKEINFO 769AUTOHEADER 770AUTOMAKE 771AUTOCONF 772ACLOCAL 773VERSION 774PACKAGE 775CYGPATH_W 776am__isrc 777INSTALL_DATA 778INSTALL_SCRIPT 779INSTALL_PROGRAM 780target_alias 781host_alias 782build_alias 783LIBS 784ECHO_T 785ECHO_N 786ECHO_C 787DEFS 788mandir 789localedir 790libdir 791psdir 792pdfdir 793dvidir 794htmldir 795infodir 796docdir 797oldincludedir 798includedir 799localstatedir 800sharedstatedir 801sysconfdir 802datadir 803datarootdir 804libexecdir 805sbindir 806bindir 807program_transform_name 808prefix 809exec_prefix 810PACKAGE_URL 811PACKAGE_BUGREPORT 812PACKAGE_STRING 813PACKAGE_VERSION 814PACKAGE_TARNAME 815PACKAGE_NAME 816PATH_SEPARATOR 817SHELL' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821enable_maintainer_mode 822enable_dependency_tracking 823enable_shared 824enable_static 825with_pic 826enable_fast_install 827with_gnu_ld 828enable_libtool_lock 829enable_strict_compilation 830enable_silent_rules 831with_xmlto 832' 833 ac_precious_vars='build_alias 834host_alias 835target_alias 836CC 837CFLAGS 838LDFLAGS 839LIBS 840CPPFLAGS 841CPP 842PKG_CONFIG 843XMLTO 844XCOMPOSITE_CFLAGS 845XCOMPOSITE_LIBS 846XFIXES_CFLAGS 847XFIXES_LIBS' 848 849 850# Initialize some variables set by options. 851ac_init_help= 852ac_init_version=false 853ac_unrecognized_opts= 854ac_unrecognized_sep= 855# The variables have the same names as the options, with 856# dashes changed to underlines. 857cache_file=/dev/null 858exec_prefix=NONE 859no_create= 860no_recursion= 861prefix=NONE 862program_prefix=NONE 863program_suffix=NONE 864program_transform_name=s,x,x, 865silent= 866site= 867srcdir= 868verbose= 869x_includes=NONE 870x_libraries=NONE 871 872# Installation directory options. 873# These are left unexpanded so users can "make install exec_prefix=/foo" 874# and all the variables that are supposed to be based on exec_prefix 875# by default will actually change. 876# Use braces instead of parens because sh, perl, etc. also accept them. 877# (The list follows the same order as the GNU Coding Standards.) 878bindir='${exec_prefix}/bin' 879sbindir='${exec_prefix}/sbin' 880libexecdir='${exec_prefix}/libexec' 881datarootdir='${prefix}/share' 882datadir='${datarootdir}' 883sysconfdir='${prefix}/etc' 884sharedstatedir='${prefix}/com' 885localstatedir='${prefix}/var' 886includedir='${prefix}/include' 887oldincludedir='/usr/include' 888docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 889infodir='${datarootdir}/info' 890htmldir='${docdir}' 891dvidir='${docdir}' 892pdfdir='${docdir}' 893psdir='${docdir}' 894libdir='${exec_prefix}/lib' 895localedir='${datarootdir}/locale' 896mandir='${datarootdir}/man' 897 898ac_prev= 899ac_dashdash= 900for ac_option 901do 902 # If the previous option needs an argument, assign it. 903 if test -n "$ac_prev"; then 904 eval $ac_prev=\$ac_option 905 ac_prev= 906 continue 907 fi 908 909 case $ac_option in 910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 911 *=) ac_optarg= ;; 912 *) ac_optarg=yes ;; 913 esac 914 915 # Accept the important Cygnus configure options, so we can diagnose typos. 916 917 case $ac_dashdash$ac_option in 918 --) 919 ac_dashdash=yes ;; 920 921 -bindir | --bindir | --bindi | --bind | --bin | --bi) 922 ac_prev=bindir ;; 923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 924 bindir=$ac_optarg ;; 925 926 -build | --build | --buil | --bui | --bu) 927 ac_prev=build_alias ;; 928 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 929 build_alias=$ac_optarg ;; 930 931 -cache-file | --cache-file | --cache-fil | --cache-fi \ 932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 933 ac_prev=cache_file ;; 934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 936 cache_file=$ac_optarg ;; 937 938 --config-cache | -C) 939 cache_file=config.cache ;; 940 941 -datadir | --datadir | --datadi | --datad) 942 ac_prev=datadir ;; 943 -datadir=* | --datadir=* | --datadi=* | --datad=*) 944 datadir=$ac_optarg ;; 945 946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 947 | --dataroo | --dataro | --datar) 948 ac_prev=datarootdir ;; 949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 951 datarootdir=$ac_optarg ;; 952 953 -disable-* | --disable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: $ac_useropt" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962"enable_$ac_useropt" 963"*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=no ;; 968 969 -docdir | --docdir | --docdi | --doc | --do) 970 ac_prev=docdir ;; 971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 972 docdir=$ac_optarg ;; 973 974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 975 ac_prev=dvidir ;; 976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 977 dvidir=$ac_optarg ;; 978 979 -enable-* | --enable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: $ac_useropt" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988"enable_$ac_useropt" 989"*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=\$ac_optarg ;; 994 995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 997 | --exec | --exe | --ex) 998 ac_prev=exec_prefix ;; 999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1001 | --exec=* | --exe=* | --ex=*) 1002 exec_prefix=$ac_optarg ;; 1003 1004 -gas | --gas | --ga | --g) 1005 # Obsolete; use --with-gas. 1006 with_gas=yes ;; 1007 1008 -help | --help | --hel | --he | -h) 1009 ac_init_help=long ;; 1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1011 ac_init_help=recursive ;; 1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1013 ac_init_help=short ;; 1014 1015 -host | --host | --hos | --ho) 1016 ac_prev=host_alias ;; 1017 -host=* | --host=* | --hos=* | --ho=*) 1018 host_alias=$ac_optarg ;; 1019 1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1021 ac_prev=htmldir ;; 1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1023 | --ht=*) 1024 htmldir=$ac_optarg ;; 1025 1026 -includedir | --includedir | --includedi | --included | --include \ 1027 | --includ | --inclu | --incl | --inc) 1028 ac_prev=includedir ;; 1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1030 | --includ=* | --inclu=* | --incl=* | --inc=*) 1031 includedir=$ac_optarg ;; 1032 1033 -infodir | --infodir | --infodi | --infod | --info | --inf) 1034 ac_prev=infodir ;; 1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1036 infodir=$ac_optarg ;; 1037 1038 -libdir | --libdir | --libdi | --libd) 1039 ac_prev=libdir ;; 1040 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1041 libdir=$ac_optarg ;; 1042 1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1044 | --libexe | --libex | --libe) 1045 ac_prev=libexecdir ;; 1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1047 | --libexe=* | --libex=* | --libe=*) 1048 libexecdir=$ac_optarg ;; 1049 1050 -localedir | --localedir | --localedi | --localed | --locale) 1051 ac_prev=localedir ;; 1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1053 localedir=$ac_optarg ;; 1054 1055 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1056 | --localstate | --localstat | --localsta | --localst | --locals) 1057 ac_prev=localstatedir ;; 1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1060 localstatedir=$ac_optarg ;; 1061 1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1063 ac_prev=mandir ;; 1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1065 mandir=$ac_optarg ;; 1066 1067 -nfp | --nfp | --nf) 1068 # Obsolete; use --without-fp. 1069 with_fp=no ;; 1070 1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1072 | --no-cr | --no-c | -n) 1073 no_create=yes ;; 1074 1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1077 no_recursion=yes ;; 1078 1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1081 | --oldin | --oldi | --old | --ol | --o) 1082 ac_prev=oldincludedir ;; 1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1086 oldincludedir=$ac_optarg ;; 1087 1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1089 ac_prev=prefix ;; 1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1091 prefix=$ac_optarg ;; 1092 1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1094 | --program-pre | --program-pr | --program-p) 1095 ac_prev=program_prefix ;; 1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1098 program_prefix=$ac_optarg ;; 1099 1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1101 | --program-suf | --program-su | --program-s) 1102 ac_prev=program_suffix ;; 1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1105 program_suffix=$ac_optarg ;; 1106 1107 -program-transform-name | --program-transform-name \ 1108 | --program-transform-nam | --program-transform-na \ 1109 | --program-transform-n | --program-transform- \ 1110 | --program-transform | --program-transfor \ 1111 | --program-transfo | --program-transf \ 1112 | --program-trans | --program-tran \ 1113 | --progr-tra | --program-tr | --program-t) 1114 ac_prev=program_transform_name ;; 1115 -program-transform-name=* | --program-transform-name=* \ 1116 | --program-transform-nam=* | --program-transform-na=* \ 1117 | --program-transform-n=* | --program-transform-=* \ 1118 | --program-transform=* | --program-transfor=* \ 1119 | --program-transfo=* | --program-transf=* \ 1120 | --program-trans=* | --program-tran=* \ 1121 | --progr-tra=* | --program-tr=* | --program-t=*) 1122 program_transform_name=$ac_optarg ;; 1123 1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1125 ac_prev=pdfdir ;; 1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1127 pdfdir=$ac_optarg ;; 1128 1129 -psdir | --psdir | --psdi | --psd | --ps) 1130 ac_prev=psdir ;; 1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1132 psdir=$ac_optarg ;; 1133 1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1135 | -silent | --silent | --silen | --sile | --sil) 1136 silent=yes ;; 1137 1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1139 ac_prev=sbindir ;; 1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1141 | --sbi=* | --sb=*) 1142 sbindir=$ac_optarg ;; 1143 1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1146 | --sharedst | --shareds | --shared | --share | --shar \ 1147 | --sha | --sh) 1148 ac_prev=sharedstatedir ;; 1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1152 | --sha=* | --sh=*) 1153 sharedstatedir=$ac_optarg ;; 1154 1155 -site | --site | --sit) 1156 ac_prev=site ;; 1157 -site=* | --site=* | --sit=*) 1158 site=$ac_optarg ;; 1159 1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1161 ac_prev=srcdir ;; 1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1163 srcdir=$ac_optarg ;; 1164 1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1166 | --syscon | --sysco | --sysc | --sys | --sy) 1167 ac_prev=sysconfdir ;; 1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1170 sysconfdir=$ac_optarg ;; 1171 1172 -target | --target | --targe | --targ | --tar | --ta | --t) 1173 ac_prev=target_alias ;; 1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1175 target_alias=$ac_optarg ;; 1176 1177 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1178 verbose=yes ;; 1179 1180 -version | --version | --versio | --versi | --vers | -V) 1181 ac_init_version=: ;; 1182 1183 -with-* | --with-*) 1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1185 # Reject names that are not valid shell variable names. 1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1187 as_fn_error $? "invalid package name: $ac_useropt" 1188 ac_useropt_orig=$ac_useropt 1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1190 case $ac_user_opts in 1191 *" 1192"with_$ac_useropt" 1193"*) ;; 1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1195 ac_unrecognized_sep=', ';; 1196 esac 1197 eval with_$ac_useropt=\$ac_optarg ;; 1198 1199 -without-* | --without-*) 1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1201 # Reject names that are not valid shell variable names. 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1203 as_fn_error $? "invalid package name: $ac_useropt" 1204 ac_useropt_orig=$ac_useropt 1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1206 case $ac_user_opts in 1207 *" 1208"with_$ac_useropt" 1209"*) ;; 1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1211 ac_unrecognized_sep=', ';; 1212 esac 1213 eval with_$ac_useropt=no ;; 1214 1215 --x) 1216 # Obsolete; use --with-x. 1217 with_x=yes ;; 1218 1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1220 | --x-incl | --x-inc | --x-in | --x-i) 1221 ac_prev=x_includes ;; 1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1224 x_includes=$ac_optarg ;; 1225 1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1228 ac_prev=x_libraries ;; 1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1231 x_libraries=$ac_optarg ;; 1232 1233 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1234Try \`$0 --help' for more information" 1235 ;; 1236 1237 *=*) 1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1239 # Reject names that are not valid shell variable names. 1240 case $ac_envvar in #( 1241 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1242 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1243 esac 1244 eval $ac_envvar=\$ac_optarg 1245 export $ac_envvar ;; 1246 1247 *) 1248 # FIXME: should be removed in autoconf 3.0. 1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1253 ;; 1254 1255 esac 1256done 1257 1258if test -n "$ac_prev"; then 1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1260 as_fn_error $? "missing argument to $ac_option" 1261fi 1262 1263if test -n "$ac_unrecognized_opts"; then 1264 case $enable_option_checking in 1265 no) ;; 1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1268 esac 1269fi 1270 1271# Check all directory arguments for consistency. 1272for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1273 datadir sysconfdir sharedstatedir localstatedir includedir \ 1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1275 libdir localedir mandir 1276do 1277 eval ac_val=\$$ac_var 1278 # Remove trailing slashes. 1279 case $ac_val in 1280 */ ) 1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1282 eval $ac_var=\$ac_val;; 1283 esac 1284 # Be sure to have absolute directory names. 1285 case $ac_val in 1286 [\\/$]* | ?:[\\/]* ) continue;; 1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1288 esac 1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1290done 1291 1292# There might be people who depend on the old broken behavior: `$host' 1293# used to hold the argument of --host etc. 1294# FIXME: To remove some day. 1295build=$build_alias 1296host=$host_alias 1297target=$target_alias 1298 1299# FIXME: To remove some day. 1300if test "x$host_alias" != x; then 1301 if test "x$build_alias" = x; then 1302 cross_compiling=maybe 1303 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1304 If a cross compiler is detected then cross compile mode will be used" >&2 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 as_fn_error $? "working directory cannot be determined" 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1321 as_fn_error $? "pwd does not report name of working directory" 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$as_myself" || 1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$as_myself" : 'X\(//\)[^/]' \| \ 1331 X"$as_myself" : 'X\(//\)$' \| \ 1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1333$as_echo X"$as_myself" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1365 pwd)` 1366# When building in place, set srcdir=. 1367if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 srcdir=. 1369fi 1370# Remove unnecessary trailing slashes from srcdir. 1371# Double slashes in file names in object file debugging info 1372# mess up M-x gdb in Emacs. 1373case $srcdir in 1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1375esac 1376for ac_var in $ac_precious_vars; do 1377 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_env_${ac_var}_value=\$${ac_var} 1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1381done 1382 1383# 1384# Report the --help message. 1385# 1386if test "$ac_init_help" = "long"; then 1387 # Omit some internal or obsolete options to make the list less imposing. 1388 # This message is too long to be a string in the A/UX 3.1 sh. 1389 cat <<_ACEOF 1390\`configure' configures libXcomposite 0.4.3 to adapt to many kinds of systems. 1391 1392Usage: $0 [OPTION]... [VAR=VALUE]... 1393 1394To assign environment variables (e.g., CC, CFLAGS...), specify them as 1395VAR=VALUE. See below for descriptions of some of the useful variables. 1396 1397Defaults for the options are specified in brackets. 1398 1399Configuration: 1400 -h, --help display this help and exit 1401 --help=short display options specific to this package 1402 --help=recursive display the short help of all the included packages 1403 -V, --version display version information and exit 1404 -q, --quiet, --silent do not print \`checking ...' messages 1405 --cache-file=FILE cache test results in FILE [disabled] 1406 -C, --config-cache alias for \`--cache-file=config.cache' 1407 -n, --no-create do not create output files 1408 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1409 1410Installation directories: 1411 --prefix=PREFIX install architecture-independent files in PREFIX 1412 [$ac_default_prefix] 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1414 [PREFIX] 1415 1416By default, \`make install' will install all the files in 1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1418an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1419for instance \`--prefix=\$HOME'. 1420 1421For better control, use the options below. 1422 1423Fine tuning of the installation directories: 1424 --bindir=DIR user executables [EPREFIX/bin] 1425 --sbindir=DIR system admin executables [EPREFIX/sbin] 1426 --libexecdir=DIR program executables [EPREFIX/libexec] 1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1430 --libdir=DIR object code libraries [EPREFIX/lib] 1431 --includedir=DIR C header files [PREFIX/include] 1432 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1435 --infodir=DIR info documentation [DATAROOTDIR/info] 1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1437 --mandir=DIR man documentation [DATAROOTDIR/man] 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcomposite] 1439 --htmldir=DIR html documentation [DOCDIR] 1440 --dvidir=DIR dvi documentation [DOCDIR] 1441 --pdfdir=DIR pdf documentation [DOCDIR] 1442 --psdir=DIR ps documentation [DOCDIR] 1443_ACEOF 1444 1445 cat <<\_ACEOF 1446 1447Program names: 1448 --program-prefix=PREFIX prepend PREFIX to installed program names 1449 --program-suffix=SUFFIX append SUFFIX to installed program names 1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1451 1452System types: 1453 --build=BUILD configure for building on BUILD [guessed] 1454 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1455_ACEOF 1456fi 1457 1458if test -n "$ac_init_help"; then 1459 case $ac_init_help in 1460 short | recursive ) echo "Configuration of libXcomposite 0.4.3:";; 1461 esac 1462 cat <<\_ACEOF 1463 1464Optional Features: 1465 --disable-option-checking ignore unrecognized --enable/--with options 1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1468 --enable-maintainer-mode enable make rules and dependencies not useful 1469 (and sometimes confusing) to the casual installer 1470 --disable-dependency-tracking speeds up one-time build 1471 --enable-dependency-tracking do not reject slow dependency extractors 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-static[=PKGS] build static libraries [default=yes] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --disable-libtool-lock avoid locking (might break parallel builds) 1477 --enable-strict-compilation 1478 Enable all warnings from compiler and make them 1479 errors (default: disabled) 1480 --enable-silent-rules less verbose build output (undo: `make V=1') 1481 --disable-silent-rules verbose build output (undo: `make V=0') 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-pic try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1489 --with-xmlto Use xmlto to regenerate documentation (default: yes, 1490 if installed) 1491 1492Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 LIBS libraries to pass to the linker, e.g. -l<library> 1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1499 you have headers in a nonstandard directory <include dir> 1500 CPP C preprocessor 1501 PKG_CONFIG path to pkg-config utility 1502 XMLTO Path to xmlto command 1503 XCOMPOSITE_CFLAGS 1504 C compiler flags for XCOMPOSITE, overriding pkg-config 1505 XCOMPOSITE_LIBS 1506 linker flags for XCOMPOSITE, overriding pkg-config 1507 XFIXES_CFLAGS 1508 C compiler flags for XFIXES, overriding pkg-config 1509 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1510 1511Use these variables to override the choices made by `configure' or to help 1512it to find libraries and programs with nonstandard names/locations. 1513 1514Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1515_ACEOF 1516ac_status=$? 1517fi 1518 1519if test "$ac_init_help" = "recursive"; then 1520 # If there are subdirs, report their specific --help. 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1522 test -d "$ac_dir" || 1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1524 continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577libXcomposite configure 0.4.3 1578generated by GNU Autoconf 2.68 1579 1580Copyright (C) 2010 Free Software Foundation, Inc. 1581This configure script is free software; the Free Software Foundation 1582gives unlimited permission to copy, distribute and modify it. 1583_ACEOF 1584 exit 1585fi 1586 1587## ------------------------ ## 1588## Autoconf initialization. ## 1589## ------------------------ ## 1590 1591# ac_fn_c_try_compile LINENO 1592# -------------------------- 1593# Try to compile conftest.$ac_ext, and return whether this succeeded. 1594ac_fn_c_try_compile () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 rm -f conftest.$ac_objext 1598 if { { ac_try="$ac_compile" 1599case "(($ac_try" in 1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1601 *) ac_try_echo=$ac_try;; 1602esac 1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1604$as_echo "$ac_try_echo"; } >&5 1605 (eval "$ac_compile") 2>conftest.err 1606 ac_status=$? 1607 if test -s conftest.err; then 1608 grep -v '^ *+' conftest.err >conftest.er1 1609 cat conftest.er1 >&5 1610 mv -f conftest.er1 conftest.err 1611 fi 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; } && { 1614 test -z "$ac_c_werror_flag" || 1615 test ! -s conftest.err 1616 } && test -s conftest.$ac_objext; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622 ac_retval=1 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_compile 1628 1629# ac_fn_c_try_link LINENO 1630# ----------------------- 1631# Try to link conftest.$ac_ext, and return whether this succeeded. 1632ac_fn_c_try_link () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 rm -f conftest.$ac_objext conftest$ac_exeext 1636 if { { ac_try="$ac_link" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_link") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } && { 1652 test -z "$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 } && test -s conftest$ac_exeext && { 1655 test "$cross_compiling" = yes || 1656 $as_test_x conftest$ac_exeext 1657 }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1667 # interfere with the next link command; also delete a directory that is 1668 # left behind by Apple's compiler. We do this before executing the actions. 1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_link 1674 1675# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1676# ------------------------------------------------------- 1677# Tests whether HEADER exists and can be compiled using the include files in 1678# INCLUDES, setting the cache variable VAR accordingly. 1679ac_fn_c_check_header_compile () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1683$as_echo_n "checking for $2... " >&6; } 1684if eval \${$3+:} false; then : 1685 $as_echo_n "(cached) " >&6 1686else 1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1688/* end confdefs.h. */ 1689$4 1690#include <$2> 1691_ACEOF 1692if ac_fn_c_try_compile "$LINENO"; then : 1693 eval "$3=yes" 1694else 1695 eval "$3=no" 1696fi 1697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1698fi 1699eval ac_res=\$$3 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1701$as_echo "$ac_res" >&6; } 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 1704} # ac_fn_c_check_header_compile 1705 1706# ac_fn_c_try_cpp LINENO 1707# ---------------------- 1708# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1709ac_fn_c_try_cpp () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 if { { ac_try="$ac_cpp conftest.$ac_ext" 1713case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1720 ac_status=$? 1721 if test -s conftest.err; then 1722 grep -v '^ *+' conftest.err >conftest.er1 1723 cat conftest.er1 >&5 1724 mv -f conftest.er1 conftest.err 1725 fi 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } > conftest.i && { 1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1729 test ! -s conftest.err 1730 }; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_cpp 1742 1743# ac_fn_c_try_run LINENO 1744# ---------------------- 1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1746# that executables *can* be run. 1747ac_fn_c_try_run () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_link" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756$as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>&5 1758 ac_status=$? 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1761 { { case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_try") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; }; }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: program exited with status $ac_status" >&5 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=$ac_status 1778fi 1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_run 1784 1785# ac_fn_c_check_func LINENO FUNC VAR 1786# ---------------------------------- 1787# Tests whether FUNC exists, setting the cache variable VAR accordingly 1788ac_fn_c_check_func () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1792$as_echo_n "checking for $2... " >&6; } 1793if eval \${$3+:} false; then : 1794 $as_echo_n "(cached) " >&6 1795else 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1800#define $2 innocuous_$2 1801 1802/* System header to define __stub macros and hopefully few prototypes, 1803 which can conflict with char $2 (); below. 1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1805 <limits.h> exists even on freestanding compilers. */ 1806 1807#ifdef __STDC__ 1808# include <limits.h> 1809#else 1810# include <assert.h> 1811#endif 1812 1813#undef $2 1814 1815/* Override any GCC internal prototype to avoid an error. 1816 Use char because int might match the return type of a GCC 1817 builtin and then its argument prototype would still apply. */ 1818#ifdef __cplusplus 1819extern "C" 1820#endif 1821char $2 (); 1822/* The GNU C library defines this for functions which it implements 1823 to always fail with ENOSYS. Some functions are actually named 1824 something starting with __ and the normal name is an alias. */ 1825#if defined __stub_$2 || defined __stub___$2 1826choke me 1827#endif 1828 1829int 1830main () 1831{ 1832return $2 (); 1833 ; 1834 return 0; 1835} 1836_ACEOF 1837if ac_fn_c_try_link "$LINENO"; then : 1838 eval "$3=yes" 1839else 1840 eval "$3=no" 1841fi 1842rm -f core conftest.err conftest.$ac_objext \ 1843 conftest$ac_exeext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 1850} # ac_fn_c_check_func 1851 1852# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1853# --------------------------------------------- 1854# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1855# accordingly. 1856ac_fn_c_check_decl () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 as_decl_name=`echo $2|sed 's/ *(.*//'` 1860 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1862$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1867/* end confdefs.h. */ 1868$4 1869int 1870main () 1871{ 1872#ifndef $as_decl_name 1873#ifdef __cplusplus 1874 (void) $as_decl_use; 1875#else 1876 (void) $as_decl_name; 1877#endif 1878#endif 1879 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_decl 1897cat >config.log <<_ACEOF 1898This file contains any messages produced by compilers while 1899running configure, to aid debugging if configure makes a mistake. 1900 1901It was created by libXcomposite $as_me 0.4.3, which was 1902generated by GNU Autoconf 2.68. Invocation command line was 1903 1904 $ $0 $@ 1905 1906_ACEOF 1907exec 5>>config.log 1908{ 1909cat <<_ASUNAME 1910## --------- ## 1911## Platform. ## 1912## --------- ## 1913 1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1915uname -m = `(uname -m) 2>/dev/null || echo unknown` 1916uname -r = `(uname -r) 2>/dev/null || echo unknown` 1917uname -s = `(uname -s) 2>/dev/null || echo unknown` 1918uname -v = `(uname -v) 2>/dev/null || echo unknown` 1919 1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1921/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1922 1923/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1924/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1926/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1927/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1928/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1929/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1930 1931_ASUNAME 1932 1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1934for as_dir in $PATH 1935do 1936 IFS=$as_save_IFS 1937 test -z "$as_dir" && as_dir=. 1938 $as_echo "PATH: $as_dir" 1939 done 1940IFS=$as_save_IFS 1941 1942} >&5 1943 1944cat >&5 <<_ACEOF 1945 1946 1947## ----------- ## 1948## Core tests. ## 1949## ----------- ## 1950 1951_ACEOF 1952 1953 1954# Keep a trace of the command line. 1955# Strip out --no-create and --no-recursion so they do not pile up. 1956# Strip out --silent because we don't want to record it for future runs. 1957# Also quote any args containing shell meta-characters. 1958# Make two passes to allow for proper duplicate-argument suppression. 1959ac_configure_args= 1960ac_configure_args0= 1961ac_configure_args1= 1962ac_must_keep_next=false 1963for ac_pass in 1 2 1964do 1965 for ac_arg 1966 do 1967 case $ac_arg in 1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1970 | -silent | --silent | --silen | --sile | --sil) 1971 continue ;; 1972 *\'*) 1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1974 esac 1975 case $ac_pass in 1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1977 2) 1978 as_fn_append ac_configure_args1 " '$ac_arg'" 1979 if test $ac_must_keep_next = true; then 1980 ac_must_keep_next=false # Got value, back to normal. 1981 else 1982 case $ac_arg in 1983 *=* | --config-cache | -C | -disable-* | --disable-* \ 1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1986 | -with-* | --with-* | -without-* | --without-* | --x) 1987 case "$ac_configure_args0 " in 1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1989 esac 1990 ;; 1991 -* ) ac_must_keep_next=true ;; 1992 esac 1993 fi 1994 as_fn_append ac_configure_args " '$ac_arg'" 1995 ;; 1996 esac 1997 done 1998done 1999{ ac_configure_args0=; unset ac_configure_args0;} 2000{ ac_configure_args1=; unset ac_configure_args1;} 2001 2002# When interrupted or exit'd, cleanup temporary files, and complete 2003# config.log. We remove comments because anyway the quotes in there 2004# would cause problems or look ugly. 2005# WARNING: Use '\'' to represent an apostrophe within the trap. 2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2007trap 'exit_status=$? 2008 # Save into config.log some information that might help in debugging. 2009 { 2010 echo 2011 2012 $as_echo "## ---------------- ## 2013## Cache variables. ## 2014## ---------------- ##" 2015 echo 2016 # The following way of writing the cache mishandles newlines in values, 2017( 2018 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2019 eval ac_val=\$$ac_var 2020 case $ac_val in #( 2021 *${as_nl}*) 2022 case $ac_var in #( 2023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2025 esac 2026 case $ac_var in #( 2027 _ | IFS | as_nl) ;; #( 2028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2029 *) { eval $ac_var=; unset $ac_var;} ;; 2030 esac ;; 2031 esac 2032 done 2033 (set) 2>&1 | 2034 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2035 *${as_nl}ac_space=\ *) 2036 sed -n \ 2037 "s/'\''/'\''\\\\'\'''\''/g; 2038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2039 ;; #( 2040 *) 2041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2042 ;; 2043 esac | 2044 sort 2045) 2046 echo 2047 2048 $as_echo "## ----------------- ## 2049## Output variables. ## 2050## ----------------- ##" 2051 echo 2052 for ac_var in $ac_subst_vars 2053 do 2054 eval ac_val=\$$ac_var 2055 case $ac_val in 2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2057 esac 2058 $as_echo "$ac_var='\''$ac_val'\''" 2059 done | sort 2060 echo 2061 2062 if test -n "$ac_subst_files"; then 2063 $as_echo "## ------------------- ## 2064## File substitutions. ## 2065## ------------------- ##" 2066 echo 2067 for ac_var in $ac_subst_files 2068 do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in 2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2072 esac 2073 $as_echo "$ac_var='\''$ac_val'\''" 2074 done | sort 2075 echo 2076 fi 2077 2078 if test -s confdefs.h; then 2079 $as_echo "## ----------- ## 2080## confdefs.h. ## 2081## ----------- ##" 2082 echo 2083 cat confdefs.h 2084 echo 2085 fi 2086 test "$ac_signal" != 0 && 2087 $as_echo "$as_me: caught signal $ac_signal" 2088 $as_echo "$as_me: exit $exit_status" 2089 } >&5 2090 rm -f core *.core core.conftest.* && 2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2092 exit $exit_status 2093' 0 2094for ac_signal in 1 2 13 15; do 2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2096done 2097ac_signal=0 2098 2099# confdefs.h avoids OS command line length limits that DEFS can exceed. 2100rm -f -r conftest* confdefs.h 2101 2102$as_echo "/* confdefs.h */" > confdefs.h 2103 2104# Predefined preprocessor variables. 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_NAME "$PACKAGE_NAME" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_VERSION "$PACKAGE_VERSION" 2116_ACEOF 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_STRING "$PACKAGE_STRING" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2124_ACEOF 2125 2126cat >>confdefs.h <<_ACEOF 2127#define PACKAGE_URL "$PACKAGE_URL" 2128_ACEOF 2129 2130 2131# Let the site file select an alternate cache file if it wants to. 2132# Prefer an explicitly selected file to automatically selected ones. 2133ac_site_file1=NONE 2134ac_site_file2=NONE 2135if test -n "$CONFIG_SITE"; then 2136 # We do not want a PATH search for config.site. 2137 case $CONFIG_SITE in #(( 2138 -*) ac_site_file1=./$CONFIG_SITE;; 2139 */*) ac_site_file1=$CONFIG_SITE;; 2140 *) ac_site_file1=./$CONFIG_SITE;; 2141 esac 2142elif test "x$prefix" != xNONE; then 2143 ac_site_file1=$prefix/share/config.site 2144 ac_site_file2=$prefix/etc/config.site 2145else 2146 ac_site_file1=$ac_default_prefix/share/config.site 2147 ac_site_file2=$ac_default_prefix/etc/config.site 2148fi 2149for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2150do 2151 test "x$ac_site_file" = xNONE && continue 2152 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2154$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2155 sed 's/^/| /' "$ac_site_file" >&5 2156 . "$ac_site_file" \ 2157 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2159as_fn_error $? "failed to load site script $ac_site_file 2160See \`config.log' for more details" "$LINENO" 5; } 2161 fi 2162done 2163 2164if test -r "$cache_file"; then 2165 # Some versions of bash will fail to source /dev/null (special files 2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2169$as_echo "$as_me: loading cache $cache_file" >&6;} 2170 case $cache_file in 2171 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2172 *) . "./$cache_file";; 2173 esac 2174 fi 2175else 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2177$as_echo "$as_me: creating cache $cache_file" >&6;} 2178 >$cache_file 2179fi 2180 2181# Check that the precious variables saved in the cache have kept the same 2182# value. 2183ac_cache_corrupted=false 2184for ac_var in $ac_precious_vars; do 2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2186 eval ac_new_set=\$ac_env_${ac_var}_set 2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2188 eval ac_new_val=\$ac_env_${ac_var}_value 2189 case $ac_old_set,$ac_new_set in 2190 set,) 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2193 ac_cache_corrupted=: ;; 2194 ,set) 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2197 ac_cache_corrupted=: ;; 2198 ,);; 2199 *) 2200 if test "x$ac_old_val" != "x$ac_new_val"; then 2201 # differences in whitespace do not lead to failure. 2202 ac_old_val_w=`echo x $ac_old_val` 2203 ac_new_val_w=`echo x $ac_new_val` 2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2207 ac_cache_corrupted=: 2208 else 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2211 eval $ac_var=\$ac_old_val 2212 fi 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2214$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2216$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2217 fi;; 2218 esac 2219 # Pass precious variables to config.status. 2220 if test "$ac_new_set" = set; then 2221 case $ac_new_val in 2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2223 *) ac_arg=$ac_var=$ac_new_val ;; 2224 esac 2225 case " $ac_configure_args " in 2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2228 esac 2229 fi 2230done 2231if $ac_cache_corrupted; then 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2237fi 2238## -------------------- ## 2239## Main body of script. ## 2240## -------------------- ## 2241 2242ac_ext=c 2243ac_cpp='$CPP $CPPFLAGS' 2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2246ac_compiler_gnu=$ac_cv_c_compiler_gnu 2247 2248 2249am__api_version='1.11' 2250 2251ac_aux_dir= 2252for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2253 if test -f "$ac_dir/install-sh"; then 2254 ac_aux_dir=$ac_dir 2255 ac_install_sh="$ac_aux_dir/install-sh -c" 2256 break 2257 elif test -f "$ac_dir/install.sh"; then 2258 ac_aux_dir=$ac_dir 2259 ac_install_sh="$ac_aux_dir/install.sh -c" 2260 break 2261 elif test -f "$ac_dir/shtool"; then 2262 ac_aux_dir=$ac_dir 2263 ac_install_sh="$ac_aux_dir/shtool install -c" 2264 break 2265 fi 2266done 2267if test -z "$ac_aux_dir"; then 2268 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2269fi 2270 2271# These three variables are undocumented and unsupported, 2272# and are intended to be withdrawn in a future Autoconf release. 2273# They can cause serious problems if a builder's source tree is in a directory 2274# whose full name contains unusual characters. 2275ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2276ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2277ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2278 2279 2280# Find a good install program. We prefer a C program (faster), 2281# so one script is as good as another. But avoid the broken or 2282# incompatible versions: 2283# SysV /etc/install, /usr/sbin/install 2284# SunOS /usr/etc/install 2285# IRIX /sbin/install 2286# AIX /bin/install 2287# AmigaOS /C/install, which installs bootblocks on floppy discs 2288# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2289# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2290# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2291# OS/2's system install, which has a completely different semantic 2292# ./install, which can be erroneously created by make from ./install.sh. 2293# Reject install programs that cannot install multiple files. 2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2295$as_echo_n "checking for a BSD-compatible install... " >&6; } 2296if test -z "$INSTALL"; then 2297if ${ac_cv_path_install+:} false; then : 2298 $as_echo_n "(cached) " >&6 2299else 2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 # Account for people who put trailing slashes in PATH elements. 2306case $as_dir/ in #(( 2307 ./ | .// | /[cC]/* | \ 2308 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2309 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2310 /usr/ucb/* ) ;; 2311 *) 2312 # OSF1 and SCO ODT 3.0 have their own names for install. 2313 # Don't use installbsd from OSF since it installs stuff as root 2314 # by default. 2315 for ac_prog in ginstall scoinst install; do 2316 for ac_exec_ext in '' $ac_executable_extensions; do 2317 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2318 if test $ac_prog = install && 2319 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2320 # AIX install. It has an incompatible calling convention. 2321 : 2322 elif test $ac_prog = install && 2323 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2324 # program-specific install script used by HP pwplus--don't use. 2325 : 2326 else 2327 rm -rf conftest.one conftest.two conftest.dir 2328 echo one > conftest.one 2329 echo two > conftest.two 2330 mkdir conftest.dir 2331 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2332 test -s conftest.one && test -s conftest.two && 2333 test -s conftest.dir/conftest.one && 2334 test -s conftest.dir/conftest.two 2335 then 2336 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2337 break 3 2338 fi 2339 fi 2340 fi 2341 done 2342 done 2343 ;; 2344esac 2345 2346 done 2347IFS=$as_save_IFS 2348 2349rm -rf conftest.one conftest.two conftest.dir 2350 2351fi 2352 if test "${ac_cv_path_install+set}" = set; then 2353 INSTALL=$ac_cv_path_install 2354 else 2355 # As a last resort, use the slow shell script. Don't cache a 2356 # value for INSTALL within a source directory, because that will 2357 # break other packages using the cache if that directory is 2358 # removed, or if the value is a relative name. 2359 INSTALL=$ac_install_sh 2360 fi 2361fi 2362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2363$as_echo "$INSTALL" >&6; } 2364 2365# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2366# It thinks the first close brace ends the variable substitution. 2367test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2368 2369test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2370 2371test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2372 2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2374$as_echo_n "checking whether build environment is sane... " >&6; } 2375# Just in case 2376sleep 1 2377echo timestamp > conftest.file 2378# Reject unsafe characters in $srcdir or the absolute working directory 2379# name. Accept space and tab only in the latter. 2380am_lf=' 2381' 2382case `pwd` in 2383 *[\\\"\#\$\&\'\`$am_lf]*) 2384 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2385esac 2386case $srcdir in 2387 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2388 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2389esac 2390 2391# Do `set' in a subshell so we don't clobber the current shell's 2392# arguments. Must try -L first in case configure is actually a 2393# symlink; some systems play weird games with the mod time of symlinks 2394# (eg FreeBSD returns the mod time of the symlink's containing 2395# directory). 2396if ( 2397 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2398 if test "$*" = "X"; then 2399 # -L didn't work. 2400 set X `ls -t "$srcdir/configure" conftest.file` 2401 fi 2402 rm -f conftest.file 2403 if test "$*" != "X $srcdir/configure conftest.file" \ 2404 && test "$*" != "X conftest.file $srcdir/configure"; then 2405 2406 # If neither matched, then we have a broken ls. This can happen 2407 # if, for instance, CONFIG_SHELL is bash and it inherits a 2408 # broken ls alias from the environment. This has actually 2409 # happened. Such a system could not be considered "sane". 2410 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2411alias in your environment" "$LINENO" 5 2412 fi 2413 2414 test "$2" = conftest.file 2415 ) 2416then 2417 # Ok. 2418 : 2419else 2420 as_fn_error $? "newly created file is older than distributed files! 2421Check your system clock" "$LINENO" 5 2422fi 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2424$as_echo "yes" >&6; } 2425test "$program_prefix" != NONE && 2426 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2427# Use a double $ so make ignores it. 2428test "$program_suffix" != NONE && 2429 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2430# Double any \ or $. 2431# By default was `s,x,x', remove it if useless. 2432ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2433program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2434 2435# expand $ac_aux_dir to an absolute path 2436am_aux_dir=`cd $ac_aux_dir && pwd` 2437 2438if test x"${MISSING+set}" != xset; then 2439 case $am_aux_dir in 2440 *\ * | *\ *) 2441 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2442 *) 2443 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2444 esac 2445fi 2446# Use eval to expand $SHELL 2447if eval "$MISSING --run true"; then 2448 am_missing_run="$MISSING --run " 2449else 2450 am_missing_run= 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2452$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2453fi 2454 2455if test x"${install_sh}" != xset; then 2456 case $am_aux_dir in 2457 *\ * | *\ *) 2458 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2459 *) 2460 install_sh="\${SHELL} $am_aux_dir/install-sh" 2461 esac 2462fi 2463 2464# Installed binaries are usually stripped using `strip' when the user 2465# run `make install-strip'. However `strip' might not be the right 2466# tool to use in cross-compilation environments, therefore Automake 2467# will honor the `STRIP' environment variable to overrule this program. 2468if test "$cross_compiling" != no; then 2469 if test -n "$ac_tool_prefix"; then 2470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2471set dummy ${ac_tool_prefix}strip; ac_word=$2 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2473$as_echo_n "checking for $ac_word... " >&6; } 2474if ${ac_cv_prog_STRIP+:} false; then : 2475 $as_echo_n "(cached) " >&6 2476else 2477 if test -n "$STRIP"; then 2478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2479else 2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 for ac_exec_ext in '' $ac_executable_extensions; do 2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2487 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2489 break 2 2490 fi 2491done 2492 done 2493IFS=$as_save_IFS 2494 2495fi 2496fi 2497STRIP=$ac_cv_prog_STRIP 2498if test -n "$STRIP"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2500$as_echo "$STRIP" >&6; } 2501else 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2503$as_echo "no" >&6; } 2504fi 2505 2506 2507fi 2508if test -z "$ac_cv_prog_STRIP"; then 2509 ac_ct_STRIP=$STRIP 2510 # Extract the first word of "strip", so it can be a program name with args. 2511set dummy strip; ac_word=$2 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2513$as_echo_n "checking for $ac_word... " >&6; } 2514if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2515 $as_echo_n "(cached) " >&6 2516else 2517 if test -n "$ac_ct_STRIP"; then 2518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2519else 2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH 2522do 2523 IFS=$as_save_IFS 2524 test -z "$as_dir" && as_dir=. 2525 for ac_exec_ext in '' $ac_executable_extensions; do 2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2527 ac_cv_prog_ac_ct_STRIP="strip" 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531done 2532 done 2533IFS=$as_save_IFS 2534 2535fi 2536fi 2537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2538if test -n "$ac_ct_STRIP"; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2540$as_echo "$ac_ct_STRIP" >&6; } 2541else 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2543$as_echo "no" >&6; } 2544fi 2545 2546 if test "x$ac_ct_STRIP" = x; then 2547 STRIP=":" 2548 else 2549 case $cross_compiling:$ac_tool_warned in 2550yes:) 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2553ac_tool_warned=yes ;; 2554esac 2555 STRIP=$ac_ct_STRIP 2556 fi 2557else 2558 STRIP="$ac_cv_prog_STRIP" 2559fi 2560 2561fi 2562INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2563 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2565$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2566if test -z "$MKDIR_P"; then 2567 if ${ac_cv_path_mkdir+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569else 2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_prog in mkdir gmkdir; do 2576 for ac_exec_ext in '' $ac_executable_extensions; do 2577 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2578 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2579 'mkdir (GNU coreutils) '* | \ 2580 'mkdir (coreutils) '* | \ 2581 'mkdir (fileutils) '4.1*) 2582 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2583 break 3;; 2584 esac 2585 done 2586 done 2587 done 2588IFS=$as_save_IFS 2589 2590fi 2591 2592 test -d ./--version && rmdir ./--version 2593 if test "${ac_cv_path_mkdir+set}" = set; then 2594 MKDIR_P="$ac_cv_path_mkdir -p" 2595 else 2596 # As a last resort, use the slow shell script. Don't cache a 2597 # value for MKDIR_P within a source directory, because that will 2598 # break other packages using the cache if that directory is 2599 # removed, or if the value is a relative name. 2600 MKDIR_P="$ac_install_sh -d" 2601 fi 2602fi 2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2604$as_echo "$MKDIR_P" >&6; } 2605 2606mkdir_p="$MKDIR_P" 2607case $mkdir_p in 2608 [\\/$]* | ?:[\\/]*) ;; 2609 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2610esac 2611 2612for ac_prog in gawk mawk nawk awk 2613do 2614 # Extract the first word of "$ac_prog", so it can be a program name with args. 2615set dummy $ac_prog; ac_word=$2 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2617$as_echo_n "checking for $ac_word... " >&6; } 2618if ${ac_cv_prog_AWK+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 if test -n "$AWK"; then 2622 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2631 ac_cv_prog_AWK="$ac_prog" 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636 done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641AWK=$ac_cv_prog_AWK 2642if test -n "$AWK"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2644$as_echo "$AWK" >&6; } 2645else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647$as_echo "no" >&6; } 2648fi 2649 2650 2651 test -n "$AWK" && break 2652done 2653 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2655$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2656set x ${MAKE-make} 2657ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2658if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2659 $as_echo_n "(cached) " >&6 2660else 2661 cat >conftest.make <<\_ACEOF 2662SHELL = /bin/sh 2663all: 2664 @echo '@@@%%%=$(MAKE)=@@@%%%' 2665_ACEOF 2666# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2667case `${MAKE-make} -f conftest.make 2>/dev/null` in 2668 *@@@%%%=?*=@@@%%%*) 2669 eval ac_cv_prog_make_${ac_make}_set=yes;; 2670 *) 2671 eval ac_cv_prog_make_${ac_make}_set=no;; 2672esac 2673rm -f conftest.make 2674fi 2675if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2677$as_echo "yes" >&6; } 2678 SET_MAKE= 2679else 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2681$as_echo "no" >&6; } 2682 SET_MAKE="MAKE=${MAKE-make}" 2683fi 2684 2685rm -rf .tst 2>/dev/null 2686mkdir .tst 2>/dev/null 2687if test -d .tst; then 2688 am__leading_dot=. 2689else 2690 am__leading_dot=_ 2691fi 2692rmdir .tst 2>/dev/null 2693 2694if test "`cd $srcdir && pwd`" != "`pwd`"; then 2695 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2696 # is not polluted with repeated "-I." 2697 am__isrc=' -I$(srcdir)' 2698 # test to see if srcdir already configured 2699 if test -f $srcdir/config.status; then 2700 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2701 fi 2702fi 2703 2704# test whether we have cygpath 2705if test -z "$CYGPATH_W"; then 2706 if (cygpath --version) >/dev/null 2>/dev/null; then 2707 CYGPATH_W='cygpath -w' 2708 else 2709 CYGPATH_W=echo 2710 fi 2711fi 2712 2713 2714# Define the identity of the package. 2715 PACKAGE='libXcomposite' 2716 VERSION='0.4.3' 2717 2718 2719cat >>confdefs.h <<_ACEOF 2720#define PACKAGE "$PACKAGE" 2721_ACEOF 2722 2723 2724cat >>confdefs.h <<_ACEOF 2725#define VERSION "$VERSION" 2726_ACEOF 2727 2728# Some tools Automake needs. 2729 2730ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2731 2732 2733AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2734 2735 2736AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2737 2738 2739AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2740 2741 2742MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2743 2744# We need awk for the "check" target. The system "awk" is bad on 2745# some platforms. 2746# Always define AMTAR for backward compatibility. 2747 2748AMTAR=${AMTAR-"${am_missing_run}tar"} 2749 2750am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2751 2752 2753 2754 2755 2756 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2758$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2759 # Check whether --enable-maintainer-mode was given. 2760if test "${enable_maintainer_mode+set}" = set; then : 2761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2762else 2763 USE_MAINTAINER_MODE=no 2764fi 2765 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2767$as_echo "$USE_MAINTAINER_MODE" >&6; } 2768 if test $USE_MAINTAINER_MODE = yes; then 2769 MAINTAINER_MODE_TRUE= 2770 MAINTAINER_MODE_FALSE='#' 2771else 2772 MAINTAINER_MODE_TRUE='#' 2773 MAINTAINER_MODE_FALSE= 2774fi 2775 2776 MAINT=$MAINTAINER_MODE_TRUE 2777 2778 2779 2780# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792ac_config_headers="$ac_config_headers config.h" 2793 2794 2795# Check for progs 2796ac_ext=c 2797ac_cpp='$CPP $CPPFLAGS' 2798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2800ac_compiler_gnu=$ac_cv_c_compiler_gnu 2801if test -n "$ac_tool_prefix"; then 2802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2803set dummy ${ac_tool_prefix}gcc; ac_word=$2 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2805$as_echo_n "checking for $ac_word... " >&6; } 2806if ${ac_cv_prog_CC+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 if test -n "$CC"; then 2810 ac_cv_prog_CC="$CC" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2819 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824 done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829CC=$ac_cv_prog_CC 2830if test -n "$CC"; then 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2832$as_echo "$CC" >&6; } 2833else 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2835$as_echo "no" >&6; } 2836fi 2837 2838 2839fi 2840if test -z "$ac_cv_prog_CC"; then 2841 ac_ct_CC=$CC 2842 # Extract the first word of "gcc", so it can be a program name with args. 2843set dummy gcc; ac_word=$2 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845$as_echo_n "checking for $ac_word... " >&6; } 2846if ${ac_cv_prog_ac_ct_CC+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$ac_ct_CC"; then 2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 2855 IFS=$as_save_IFS 2856 test -z "$as_dir" && as_dir=. 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2859 ac_cv_prog_ac_ct_CC="gcc" 2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2861 break 2 2862 fi 2863done 2864 done 2865IFS=$as_save_IFS 2866 2867fi 2868fi 2869ac_ct_CC=$ac_cv_prog_ac_ct_CC 2870if test -n "$ac_ct_CC"; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2872$as_echo "$ac_ct_CC" >&6; } 2873else 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875$as_echo "no" >&6; } 2876fi 2877 2878 if test "x$ac_ct_CC" = x; then 2879 CC="" 2880 else 2881 case $cross_compiling:$ac_tool_warned in 2882yes:) 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2885ac_tool_warned=yes ;; 2886esac 2887 CC=$ac_ct_CC 2888 fi 2889else 2890 CC="$ac_cv_prog_CC" 2891fi 2892 2893if test -z "$CC"; then 2894 if test -n "$ac_tool_prefix"; then 2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2896set dummy ${ac_tool_prefix}cc; ac_word=$2 2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2898$as_echo_n "checking for $ac_word... " >&6; } 2899if ${ac_cv_prog_CC+:} false; then : 2900 $as_echo_n "(cached) " >&6 2901else 2902 if test -n "$CC"; then 2903 ac_cv_prog_CC="$CC" # Let the user override the test. 2904else 2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906for as_dir in $PATH 2907do 2908 IFS=$as_save_IFS 2909 test -z "$as_dir" && as_dir=. 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2912 ac_cv_prog_CC="${ac_tool_prefix}cc" 2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916done 2917 done 2918IFS=$as_save_IFS 2919 2920fi 2921fi 2922CC=$ac_cv_prog_CC 2923if test -n "$CC"; then 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2925$as_echo "$CC" >&6; } 2926else 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2928$as_echo "no" >&6; } 2929fi 2930 2931 2932 fi 2933fi 2934if test -z "$CC"; then 2935 # Extract the first word of "cc", so it can be a program name with args. 2936set dummy cc; ac_word=$2 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2938$as_echo_n "checking for $ac_word... " >&6; } 2939if ${ac_cv_prog_CC+:} false; then : 2940 $as_echo_n "(cached) " >&6 2941else 2942 if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945 ac_prog_rejected=no 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2954 ac_prog_rejected=yes 2955 continue 2956 fi 2957 ac_cv_prog_CC="cc" 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962 done 2963IFS=$as_save_IFS 2964 2965if test $ac_prog_rejected = yes; then 2966 # We found a bogon in the path, so make sure we never use it. 2967 set dummy $ac_cv_prog_CC 2968 shift 2969 if test $# != 0; then 2970 # We chose a different compiler from the bogus one. 2971 # However, it has the same basename, so the bogon will be chosen 2972 # first if we set CC to just the basename; use the full file name. 2973 shift 2974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2975 fi 2976fi 2977fi 2978fi 2979CC=$ac_cv_prog_CC 2980if test -n "$CC"; then 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2982$as_echo "$CC" >&6; } 2983else 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 2989fi 2990if test -z "$CC"; then 2991 if test -n "$ac_tool_prefix"; then 2992 for ac_prog in cl.exe 2993 do 2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2995set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if ${ac_cv_prog_CC+:} false; then : 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$CC"; then 3002 ac_cv_prog_CC="$CC" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016 done 3017IFS=$as_save_IFS 3018 3019fi 3020fi 3021CC=$ac_cv_prog_CC 3022if test -n "$CC"; then 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3024$as_echo "$CC" >&6; } 3025else 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027$as_echo "no" >&6; } 3028fi 3029 3030 3031 test -n "$CC" && break 3032 done 3033fi 3034if test -z "$CC"; then 3035 ac_ct_CC=$CC 3036 for ac_prog in cl.exe 3037do 3038 # Extract the first word of "$ac_prog", so it can be a program name with args. 3039set dummy $ac_prog; ac_word=$2 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3041$as_echo_n "checking for $ac_word... " >&6; } 3042if ${ac_cv_prog_ac_ct_CC+:} false; then : 3043 $as_echo_n "(cached) " >&6 3044else 3045 if test -n "$ac_ct_CC"; then 3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 test -z "$as_dir" && as_dir=. 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3055 ac_cv_prog_ac_ct_CC="$ac_prog" 3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065ac_ct_CC=$ac_cv_prog_ac_ct_CC 3066if test -n "$ac_ct_CC"; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3068$as_echo "$ac_ct_CC" >&6; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075 test -n "$ac_ct_CC" && break 3076done 3077 3078 if test "x$ac_ct_CC" = x; then 3079 CC="" 3080 else 3081 case $cross_compiling:$ac_tool_warned in 3082yes:) 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3085ac_tool_warned=yes ;; 3086esac 3087 CC=$ac_ct_CC 3088 fi 3089fi 3090 3091fi 3092 3093 3094test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3096as_fn_error $? "no acceptable C compiler found in \$PATH 3097See \`config.log' for more details" "$LINENO" 5; } 3098 3099# Provide some information about the compiler. 3100$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3101set X $ac_compile 3102ac_compiler=$2 3103for ac_option in --version -v -V -qversion; do 3104 { { ac_try="$ac_compiler $ac_option >&5" 3105case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108esac 3109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3110$as_echo "$ac_try_echo"; } >&5 3111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3112 ac_status=$? 3113 if test -s conftest.err; then 3114 sed '10a\ 3115... rest of stderr output deleted ... 3116 10q' conftest.err >conftest.er1 3117 cat conftest.er1 >&5 3118 fi 3119 rm -f conftest.er1 conftest.err 3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3121 test $ac_status = 0; } 3122done 3123 3124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3125/* end confdefs.h. */ 3126 3127int 3128main () 3129{ 3130 3131 ; 3132 return 0; 3133} 3134_ACEOF 3135ac_clean_files_save=$ac_clean_files 3136ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3137# Try to create an executable without -o first, disregard a.out. 3138# It will help us diagnose broken compilers, and finding out an intuition 3139# of exeext. 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3141$as_echo_n "checking whether the C compiler works... " >&6; } 3142ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3143 3144# The possible output files: 3145ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3146 3147ac_rmfiles= 3148for ac_file in $ac_files 3149do 3150 case $ac_file in 3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3152 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3153 esac 3154done 3155rm -f $ac_rmfiles 3156 3157if { { ac_try="$ac_link_default" 3158case "(($ac_try" in 3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160 *) ac_try_echo=$ac_try;; 3161esac 3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3163$as_echo "$ac_try_echo"; } >&5 3164 (eval "$ac_link_default") 2>&5 3165 ac_status=$? 3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167 test $ac_status = 0; }; then : 3168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3169# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3170# in a Makefile. We should not override ac_cv_exeext if it was cached, 3171# so that the user can short-circuit this test for compilers unknown to 3172# Autoconf. 3173for ac_file in $ac_files '' 3174do 3175 test -f "$ac_file" || continue 3176 case $ac_file in 3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3178 ;; 3179 [ab].out ) 3180 # We found the default executable, but exeext='' is most 3181 # certainly right. 3182 break;; 3183 *.* ) 3184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3185 then :; else 3186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3187 fi 3188 # We set ac_cv_exeext here because the later test for it is not 3189 # safe: cross compilers may not add the suffix if given an `-o' 3190 # argument, so we may need to know it at that point already. 3191 # Even if this section looks crufty: it has the advantage of 3192 # actually working. 3193 break;; 3194 * ) 3195 break;; 3196 esac 3197done 3198test "$ac_cv_exeext" = no && ac_cv_exeext= 3199 3200else 3201 ac_file='' 3202fi 3203if test -z "$ac_file"; then : 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206$as_echo "$as_me: failed program was:" >&5 3207sed 's/^/| /' conftest.$ac_ext >&5 3208 3209{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3211as_fn_error 77 "C compiler cannot create executables 3212See \`config.log' for more details" "$LINENO" 5; } 3213else 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3215$as_echo "yes" >&6; } 3216fi 3217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3218$as_echo_n "checking for C compiler default output file name... " >&6; } 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3220$as_echo "$ac_file" >&6; } 3221ac_exeext=$ac_cv_exeext 3222 3223rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3224ac_clean_files=$ac_clean_files_save 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3226$as_echo_n "checking for suffix of executables... " >&6; } 3227if { { ac_try="$ac_link" 3228case "(($ac_try" in 3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3230 *) ac_try_echo=$ac_try;; 3231esac 3232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3233$as_echo "$ac_try_echo"; } >&5 3234 (eval "$ac_link") 2>&5 3235 ac_status=$? 3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3237 test $ac_status = 0; }; then : 3238 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3239# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3240# work properly (i.e., refer to `conftest.exe'), while it won't with 3241# `rm'. 3242for ac_file in conftest.exe conftest conftest.*; do 3243 test -f "$ac_file" || continue 3244 case $ac_file in 3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3247 break;; 3248 * ) break;; 3249 esac 3250done 3251else 3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3254as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3255See \`config.log' for more details" "$LINENO" 5; } 3256fi 3257rm -f conftest conftest$ac_cv_exeext 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3259$as_echo "$ac_cv_exeext" >&6; } 3260 3261rm -f conftest.$ac_ext 3262EXEEXT=$ac_cv_exeext 3263ac_exeext=$EXEEXT 3264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3265/* end confdefs.h. */ 3266#include <stdio.h> 3267int 3268main () 3269{ 3270FILE *f = fopen ("conftest.out", "w"); 3271 return ferror (f) || fclose (f) != 0; 3272 3273 ; 3274 return 0; 3275} 3276_ACEOF 3277ac_clean_files="$ac_clean_files conftest.out" 3278# Check that the compiler produces executables we can run. If not, either 3279# the compiler is broken, or we cross compile. 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3281$as_echo_n "checking whether we are cross compiling... " >&6; } 3282if test "$cross_compiling" != yes; then 3283 { { ac_try="$ac_link" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3289$as_echo "$ac_try_echo"; } >&5 3290 (eval "$ac_link") 2>&5 3291 ac_status=$? 3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3293 test $ac_status = 0; } 3294 if { ac_try='./conftest$ac_cv_exeext' 3295 { { case "(($ac_try" in 3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3297 *) ac_try_echo=$ac_try;; 3298esac 3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3300$as_echo "$ac_try_echo"; } >&5 3301 (eval "$ac_try") 2>&5 3302 ac_status=$? 3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3304 test $ac_status = 0; }; }; then 3305 cross_compiling=no 3306 else 3307 if test "$cross_compiling" = maybe; then 3308 cross_compiling=yes 3309 else 3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3312as_fn_error $? "cannot run C compiled programs. 3313If you meant to cross compile, use \`--host'. 3314See \`config.log' for more details" "$LINENO" 5; } 3315 fi 3316 fi 3317fi 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3319$as_echo "$cross_compiling" >&6; } 3320 3321rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3322ac_clean_files=$ac_clean_files_save 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3324$as_echo_n "checking for suffix of object files... " >&6; } 3325if ${ac_cv_objext+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3329/* end confdefs.h. */ 3330 3331int 3332main () 3333{ 3334 3335 ; 3336 return 0; 3337} 3338_ACEOF 3339rm -f conftest.o conftest.obj 3340if { { ac_try="$ac_compile" 3341case "(($ac_try" in 3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3343 *) ac_try_echo=$ac_try;; 3344esac 3345eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3346$as_echo "$ac_try_echo"; } >&5 3347 (eval "$ac_compile") 2>&5 3348 ac_status=$? 3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3350 test $ac_status = 0; }; then : 3351 for ac_file in conftest.o conftest.obj conftest.*; do 3352 test -f "$ac_file" || continue; 3353 case $ac_file in 3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3356 break;; 3357 esac 3358done 3359else 3360 $as_echo "$as_me: failed program was:" >&5 3361sed 's/^/| /' conftest.$ac_ext >&5 3362 3363{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3365as_fn_error $? "cannot compute suffix of object files: cannot compile 3366See \`config.log' for more details" "$LINENO" 5; } 3367fi 3368rm -f conftest.$ac_cv_objext conftest.$ac_ext 3369fi 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3371$as_echo "$ac_cv_objext" >&6; } 3372OBJEXT=$ac_cv_objext 3373ac_objext=$OBJEXT 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3375$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3376if ${ac_cv_c_compiler_gnu+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3380/* end confdefs.h. */ 3381 3382int 3383main () 3384{ 3385#ifndef __GNUC__ 3386 choke me 3387#endif 3388 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393if ac_fn_c_try_compile "$LINENO"; then : 3394 ac_compiler_gnu=yes 3395else 3396 ac_compiler_gnu=no 3397fi 3398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3399ac_cv_c_compiler_gnu=$ac_compiler_gnu 3400 3401fi 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3403$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3404if test $ac_compiler_gnu = yes; then 3405 GCC=yes 3406else 3407 GCC= 3408fi 3409ac_test_CFLAGS=${CFLAGS+set} 3410ac_save_CFLAGS=$CFLAGS 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3412$as_echo_n "checking whether $CC accepts -g... " >&6; } 3413if ${ac_cv_prog_cc_g+:} false; then : 3414 $as_echo_n "(cached) " >&6 3415else 3416 ac_save_c_werror_flag=$ac_c_werror_flag 3417 ac_c_werror_flag=yes 3418 ac_cv_prog_cc_g=no 3419 CFLAGS="-g" 3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422 3423int 3424main () 3425{ 3426 3427 ; 3428 return 0; 3429} 3430_ACEOF 3431if ac_fn_c_try_compile "$LINENO"; then : 3432 ac_cv_prog_cc_g=yes 3433else 3434 CFLAGS="" 3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436/* end confdefs.h. */ 3437 3438int 3439main () 3440{ 3441 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446if ac_fn_c_try_compile "$LINENO"; then : 3447 3448else 3449 ac_c_werror_flag=$ac_save_c_werror_flag 3450 CFLAGS="-g" 3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453 3454int 3455main () 3456{ 3457 3458 ; 3459 return 0; 3460} 3461_ACEOF 3462if ac_fn_c_try_compile "$LINENO"; then : 3463 ac_cv_prog_cc_g=yes 3464fi 3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3466fi 3467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3468fi 3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3470 ac_c_werror_flag=$ac_save_c_werror_flag 3471fi 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3473$as_echo "$ac_cv_prog_cc_g" >&6; } 3474if test "$ac_test_CFLAGS" = set; then 3475 CFLAGS=$ac_save_CFLAGS 3476elif test $ac_cv_prog_cc_g = yes; then 3477 if test "$GCC" = yes; then 3478 CFLAGS="-g -O2" 3479 else 3480 CFLAGS="-g" 3481 fi 3482else 3483 if test "$GCC" = yes; then 3484 CFLAGS="-O2" 3485 else 3486 CFLAGS= 3487 fi 3488fi 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3490$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3491if ${ac_cv_prog_cc_c89+:} false; then : 3492 $as_echo_n "(cached) " >&6 3493else 3494 ac_cv_prog_cc_c89=no 3495ac_save_CC=$CC 3496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3497/* end confdefs.h. */ 3498#include <stdarg.h> 3499#include <stdio.h> 3500#include <sys/types.h> 3501#include <sys/stat.h> 3502/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3503struct buf { int x; }; 3504FILE * (*rcsopen) (struct buf *, struct stat *, int); 3505static char *e (p, i) 3506 char **p; 3507 int i; 3508{ 3509 return p[i]; 3510} 3511static char *f (char * (*g) (char **, int), char **p, ...) 3512{ 3513 char *s; 3514 va_list v; 3515 va_start (v,p); 3516 s = g (p, va_arg (v,int)); 3517 va_end (v); 3518 return s; 3519} 3520 3521/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3522 function prototypes and stuff, but not '\xHH' hex character constants. 3523 These don't provoke an error unfortunately, instead are silently treated 3524 as 'x'. The following induces an error, until -std is added to get 3525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3526 array size at least. It's necessary to write '\x00'==0 to get something 3527 that's true only with -std. */ 3528int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3529 3530/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3531 inside strings and character constants. */ 3532#define FOO(x) 'x' 3533int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3534 3535int test (int i, double x); 3536struct s1 {int (*f) (int a);}; 3537struct s2 {int (*f) (double a);}; 3538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3539int argc; 3540char **argv; 3541int 3542main () 3543{ 3544return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3545 ; 3546 return 0; 3547} 3548_ACEOF 3549for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3550 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3551do 3552 CC="$ac_save_CC $ac_arg" 3553 if ac_fn_c_try_compile "$LINENO"; then : 3554 ac_cv_prog_cc_c89=$ac_arg 3555fi 3556rm -f core conftest.err conftest.$ac_objext 3557 test "x$ac_cv_prog_cc_c89" != "xno" && break 3558done 3559rm -f conftest.$ac_ext 3560CC=$ac_save_CC 3561 3562fi 3563# AC_CACHE_VAL 3564case "x$ac_cv_prog_cc_c89" in 3565 x) 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3567$as_echo "none needed" >&6; } ;; 3568 xno) 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3570$as_echo "unsupported" >&6; } ;; 3571 *) 3572 CC="$CC $ac_cv_prog_cc_c89" 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3574$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3575esac 3576if test "x$ac_cv_prog_cc_c89" != xno; then : 3577 3578fi 3579 3580ac_ext=c 3581ac_cpp='$CPP $CPPFLAGS' 3582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3584ac_compiler_gnu=$ac_cv_c_compiler_gnu 3585DEPDIR="${am__leading_dot}deps" 3586 3587ac_config_commands="$ac_config_commands depfiles" 3588 3589 3590am_make=${MAKE-make} 3591cat > confinc << 'END' 3592am__doit: 3593 @echo this is the am__doit target 3594.PHONY: am__doit 3595END 3596# If we don't find an include directive, just comment out the code. 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3598$as_echo_n "checking for style of include used by $am_make... " >&6; } 3599am__include="#" 3600am__quote= 3601_am_result=none 3602# First try GNU make style include. 3603echo "include confinc" > confmf 3604# Ignore all kinds of additional output from `make'. 3605case `$am_make -s -f confmf 2> /dev/null` in #( 3606*the\ am__doit\ target*) 3607 am__include=include 3608 am__quote= 3609 _am_result=GNU 3610 ;; 3611esac 3612# Now try BSD make style include. 3613if test "$am__include" = "#"; then 3614 echo '.include "confinc"' > confmf 3615 case `$am_make -s -f confmf 2> /dev/null` in #( 3616 *the\ am__doit\ target*) 3617 am__include=.include 3618 am__quote="\"" 3619 _am_result=BSD 3620 ;; 3621 esac 3622fi 3623 3624 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3626$as_echo "$_am_result" >&6; } 3627rm -f confinc confmf 3628 3629# Check whether --enable-dependency-tracking was given. 3630if test "${enable_dependency_tracking+set}" = set; then : 3631 enableval=$enable_dependency_tracking; 3632fi 3633 3634if test "x$enable_dependency_tracking" != xno; then 3635 am_depcomp="$ac_aux_dir/depcomp" 3636 AMDEPBACKSLASH='\' 3637fi 3638 if test "x$enable_dependency_tracking" != xno; then 3639 AMDEP_TRUE= 3640 AMDEP_FALSE='#' 3641else 3642 AMDEP_TRUE='#' 3643 AMDEP_FALSE= 3644fi 3645 3646 3647 3648depcc="$CC" am_compiler_list= 3649 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3651$as_echo_n "checking dependency style of $depcc... " >&6; } 3652if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3656 # We make a subdir and do the tests there. Otherwise we can end up 3657 # making bogus files that we don't know about and never remove. For 3658 # instance it was reported that on HP-UX the gcc test will end up 3659 # making a dummy file named `D' -- because `-MD' means `put the output 3660 # in D'. 3661 mkdir conftest.dir 3662 # Copy depcomp to subdir because otherwise we won't find it if we're 3663 # using a relative directory. 3664 cp "$am_depcomp" conftest.dir 3665 cd conftest.dir 3666 # We will build objects and dependencies in a subdirectory because 3667 # it helps to detect inapplicable dependency modes. For instance 3668 # both Tru64's cc and ICC support -MD to output dependencies as a 3669 # side effect of compilation, but ICC will put the dependencies in 3670 # the current directory while Tru64 will put them in the object 3671 # directory. 3672 mkdir sub 3673 3674 am_cv_CC_dependencies_compiler_type=none 3675 if test "$am_compiler_list" = ""; then 3676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3677 fi 3678 am__universal=false 3679 case " $depcc " in #( 3680 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3681 esac 3682 3683 for depmode in $am_compiler_list; do 3684 # Setup a source with many dependencies, because some compilers 3685 # like to wrap large dependency lists on column 80 (with \), and 3686 # we should not choose a depcomp mode which is confused by this. 3687 # 3688 # We need to recreate these files for each test, as the compiler may 3689 # overwrite some of them when testing with obscure command lines. 3690 # This happens at least with the AIX C compiler. 3691 : > sub/conftest.c 3692 for i in 1 2 3 4 5 6; do 3693 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3694 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3695 # Solaris 8's {/usr,}/bin/sh. 3696 touch sub/conftst$i.h 3697 done 3698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3699 3700 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3701 # mode. It turns out that the SunPro C++ compiler does not properly 3702 # handle `-M -o', and we need to detect this. Also, some Intel 3703 # versions had trouble with output in subdirs 3704 am__obj=sub/conftest.${OBJEXT-o} 3705 am__minus_obj="-o $am__obj" 3706 case $depmode in 3707 gcc) 3708 # This depmode causes a compiler race in universal mode. 3709 test "$am__universal" = false || continue 3710 ;; 3711 nosideeffect) 3712 # after this tag, mechanisms are not by side-effect, so they'll 3713 # only be used when explicitly requested 3714 if test "x$enable_dependency_tracking" = xyes; then 3715 continue 3716 else 3717 break 3718 fi 3719 ;; 3720 msvisualcpp | msvcmsys) 3721 # This compiler won't grok `-c -o', but also, the minuso test has 3722 # not run yet. These depmodes are late enough in the game, and 3723 # so weak that their functioning should not be impacted. 3724 am__obj=conftest.${OBJEXT-o} 3725 am__minus_obj= 3726 ;; 3727 none) break ;; 3728 esac 3729 if depmode=$depmode \ 3730 source=sub/conftest.c object=$am__obj \ 3731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3733 >/dev/null 2>conftest.err && 3734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3738 # icc doesn't choke on unknown options, it will just issue warnings 3739 # or remarks (even with -Werror). So we grep stderr for any message 3740 # that says an option was ignored or not supported. 3741 # When given -MP, icc 7.0 and 7.1 complain thusly: 3742 # icc: Command line warning: ignoring option '-M'; no argument required 3743 # The diagnosis changed in icc 8.0: 3744 # icc: Command line remark: option '-MP' not supported 3745 if (grep 'ignoring option' conftest.err || 3746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3747 am_cv_CC_dependencies_compiler_type=$depmode 3748 break 3749 fi 3750 fi 3751 done 3752 3753 cd .. 3754 rm -rf conftest.dir 3755else 3756 am_cv_CC_dependencies_compiler_type=none 3757fi 3758 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3761$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3762CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3763 3764 if 3765 test "x$enable_dependency_tracking" != xno \ 3766 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3767 am__fastdepCC_TRUE= 3768 am__fastdepCC_FALSE='#' 3769else 3770 am__fastdepCC_TRUE='#' 3771 am__fastdepCC_FALSE= 3772fi 3773 3774 3775case `pwd` in 3776 *\ * | *\ *) 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3778$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3779esac 3780 3781 3782 3783macro_version='2.2.10' 3784macro_revision='1.3175' 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798ltmain="$ac_aux_dir/ltmain.sh" 3799 3800# Make sure we can run config.sub. 3801$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3802 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3803 3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3805$as_echo_n "checking build system type... " >&6; } 3806if ${ac_cv_build+:} false; then : 3807 $as_echo_n "(cached) " >&6 3808else 3809 ac_build_alias=$build_alias 3810test "x$ac_build_alias" = x && 3811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3812test "x$ac_build_alias" = x && 3813 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3816 3817fi 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3819$as_echo "$ac_cv_build" >&6; } 3820case $ac_cv_build in 3821*-*-*) ;; 3822*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3823esac 3824build=$ac_cv_build 3825ac_save_IFS=$IFS; IFS='-' 3826set x $ac_cv_build 3827shift 3828build_cpu=$1 3829build_vendor=$2 3830shift; shift 3831# Remember, the first character of IFS is used to create $*, 3832# except with old shells: 3833build_os=$* 3834IFS=$ac_save_IFS 3835case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3836 3837 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3839$as_echo_n "checking host system type... " >&6; } 3840if ${ac_cv_host+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 if test "x$host_alias" = x; then 3844 ac_cv_host=$ac_cv_build 3845else 3846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3848fi 3849 3850fi 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3852$as_echo "$ac_cv_host" >&6; } 3853case $ac_cv_host in 3854*-*-*) ;; 3855*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3856esac 3857host=$ac_cv_host 3858ac_save_IFS=$IFS; IFS='-' 3859set x $ac_cv_host 3860shift 3861host_cpu=$1 3862host_vendor=$2 3863shift; shift 3864# Remember, the first character of IFS is used to create $*, 3865# except with old shells: 3866host_os=$* 3867IFS=$ac_save_IFS 3868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3869 3870 3871# Backslashify metacharacters that are still active within 3872# double-quoted strings. 3873sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3874 3875# Same as above, but do not quote variable references. 3876double_quote_subst='s/\(["`\\]\)/\\\1/g' 3877 3878# Sed substitution to delay expansion of an escaped shell variable in a 3879# double_quote_subst'ed string. 3880delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3881 3882# Sed substitution to delay expansion of an escaped single quote. 3883delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3884 3885# Sed substitution to avoid accidental globbing in evaled expressions 3886no_glob_subst='s/\*/\\\*/g' 3887 3888ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3889ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3890ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3891 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3893$as_echo_n "checking how to print strings... " >&6; } 3894# Test print first, because it will be a builtin if present. 3895if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 3896 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3897 ECHO='print -r --' 3898elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3899 ECHO='printf %s\n' 3900else 3901 # Use this function as a fallback that always works. 3902 func_fallback_echo () 3903 { 3904 eval 'cat <<_LTECHO_EOF 3905$1 3906_LTECHO_EOF' 3907 } 3908 ECHO='func_fallback_echo' 3909fi 3910 3911# func_echo_all arg... 3912# Invoke $ECHO with all args, space-separated. 3913func_echo_all () 3914{ 3915 $ECHO "" 3916} 3917 3918case "$ECHO" in 3919 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3920$as_echo "printf" >&6; } ;; 3921 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3922$as_echo "print -r" >&6; } ;; 3923 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3924$as_echo "cat" >&6; } ;; 3925esac 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3941$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3942if ${ac_cv_path_SED+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3946 for ac_i in 1 2 3 4 5 6 7; do 3947 ac_script="$ac_script$as_nl$ac_script" 3948 done 3949 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3950 { ac_script=; unset ac_script;} 3951 if test -z "$SED"; then 3952 ac_path_SED_found=false 3953 # Loop through the user's path and test for each of PROGNAME-LIST 3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3955for as_dir in $PATH 3956do 3957 IFS=$as_save_IFS 3958 test -z "$as_dir" && as_dir=. 3959 for ac_prog in sed gsed; do 3960 for ac_exec_ext in '' $ac_executable_extensions; do 3961 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3962 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3963# Check for GNU ac_path_SED and select it if it is found. 3964 # Check for GNU $ac_path_SED 3965case `"$ac_path_SED" --version 2>&1` in 3966*GNU*) 3967 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3968*) 3969 ac_count=0 3970 $as_echo_n 0123456789 >"conftest.in" 3971 while : 3972 do 3973 cat "conftest.in" "conftest.in" >"conftest.tmp" 3974 mv "conftest.tmp" "conftest.in" 3975 cp "conftest.in" "conftest.nl" 3976 $as_echo '' >> "conftest.nl" 3977 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3979 as_fn_arith $ac_count + 1 && ac_count=$as_val 3980 if test $ac_count -gt ${ac_path_SED_max-0}; then 3981 # Best one so far, save it but keep looking for a better one 3982 ac_cv_path_SED="$ac_path_SED" 3983 ac_path_SED_max=$ac_count 3984 fi 3985 # 10*(2^10) chars as input seems more than enough 3986 test $ac_count -gt 10 && break 3987 done 3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3989esac 3990 3991 $ac_path_SED_found && break 3 3992 done 3993 done 3994 done 3995IFS=$as_save_IFS 3996 if test -z "$ac_cv_path_SED"; then 3997 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3998 fi 3999else 4000 ac_cv_path_SED=$SED 4001fi 4002 4003fi 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4005$as_echo "$ac_cv_path_SED" >&6; } 4006 SED="$ac_cv_path_SED" 4007 rm -f conftest.sed 4008 4009test -z "$SED" && SED=sed 4010Xsed="$SED -e 1s/^X//" 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4023$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4024if ${ac_cv_path_GREP+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 if test -z "$GREP"; then 4028 ac_path_GREP_found=false 4029 # Loop through the user's path and test for each of PROGNAME-LIST 4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4032do 4033 IFS=$as_save_IFS 4034 test -z "$as_dir" && as_dir=. 4035 for ac_prog in grep ggrep; do 4036 for ac_exec_ext in '' $ac_executable_extensions; do 4037 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4038 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4039# Check for GNU ac_path_GREP and select it if it is found. 4040 # Check for GNU $ac_path_GREP 4041case `"$ac_path_GREP" --version 2>&1` in 4042*GNU*) 4043 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4044*) 4045 ac_count=0 4046 $as_echo_n 0123456789 >"conftest.in" 4047 while : 4048 do 4049 cat "conftest.in" "conftest.in" >"conftest.tmp" 4050 mv "conftest.tmp" "conftest.in" 4051 cp "conftest.in" "conftest.nl" 4052 $as_echo 'GREP' >> "conftest.nl" 4053 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4055 as_fn_arith $ac_count + 1 && ac_count=$as_val 4056 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4057 # Best one so far, save it but keep looking for a better one 4058 ac_cv_path_GREP="$ac_path_GREP" 4059 ac_path_GREP_max=$ac_count 4060 fi 4061 # 10*(2^10) chars as input seems more than enough 4062 test $ac_count -gt 10 && break 4063 done 4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4065esac 4066 4067 $ac_path_GREP_found && break 3 4068 done 4069 done 4070 done 4071IFS=$as_save_IFS 4072 if test -z "$ac_cv_path_GREP"; then 4073 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4074 fi 4075else 4076 ac_cv_path_GREP=$GREP 4077fi 4078 4079fi 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4081$as_echo "$ac_cv_path_GREP" >&6; } 4082 GREP="$ac_cv_path_GREP" 4083 4084 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4086$as_echo_n "checking for egrep... " >&6; } 4087if ${ac_cv_path_EGREP+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4091 then ac_cv_path_EGREP="$GREP -E" 4092 else 4093 if test -z "$EGREP"; then 4094 ac_path_EGREP_found=false 4095 # Loop through the user's path and test for each of PROGNAME-LIST 4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4098do 4099 IFS=$as_save_IFS 4100 test -z "$as_dir" && as_dir=. 4101 for ac_prog in egrep; do 4102 for ac_exec_ext in '' $ac_executable_extensions; do 4103 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4104 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4105# Check for GNU ac_path_EGREP and select it if it is found. 4106 # Check for GNU $ac_path_EGREP 4107case `"$ac_path_EGREP" --version 2>&1` in 4108*GNU*) 4109 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4110*) 4111 ac_count=0 4112 $as_echo_n 0123456789 >"conftest.in" 4113 while : 4114 do 4115 cat "conftest.in" "conftest.in" >"conftest.tmp" 4116 mv "conftest.tmp" "conftest.in" 4117 cp "conftest.in" "conftest.nl" 4118 $as_echo 'EGREP' >> "conftest.nl" 4119 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4121 as_fn_arith $ac_count + 1 && ac_count=$as_val 4122 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4123 # Best one so far, save it but keep looking for a better one 4124 ac_cv_path_EGREP="$ac_path_EGREP" 4125 ac_path_EGREP_max=$ac_count 4126 fi 4127 # 10*(2^10) chars as input seems more than enough 4128 test $ac_count -gt 10 && break 4129 done 4130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4131esac 4132 4133 $ac_path_EGREP_found && break 3 4134 done 4135 done 4136 done 4137IFS=$as_save_IFS 4138 if test -z "$ac_cv_path_EGREP"; then 4139 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4140 fi 4141else 4142 ac_cv_path_EGREP=$EGREP 4143fi 4144 4145 fi 4146fi 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4148$as_echo "$ac_cv_path_EGREP" >&6; } 4149 EGREP="$ac_cv_path_EGREP" 4150 4151 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4153$as_echo_n "checking for fgrep... " >&6; } 4154if ${ac_cv_path_FGREP+:} false; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4158 then ac_cv_path_FGREP="$GREP -F" 4159 else 4160 if test -z "$FGREP"; then 4161 ac_path_FGREP_found=false 4162 # Loop through the user's path and test for each of PROGNAME-LIST 4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4165do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_prog in fgrep; do 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4171 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4172# Check for GNU ac_path_FGREP and select it if it is found. 4173 # Check for GNU $ac_path_FGREP 4174case `"$ac_path_FGREP" --version 2>&1` in 4175*GNU*) 4176 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4177*) 4178 ac_count=0 4179 $as_echo_n 0123456789 >"conftest.in" 4180 while : 4181 do 4182 cat "conftest.in" "conftest.in" >"conftest.tmp" 4183 mv "conftest.tmp" "conftest.in" 4184 cp "conftest.in" "conftest.nl" 4185 $as_echo 'FGREP' >> "conftest.nl" 4186 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4188 as_fn_arith $ac_count + 1 && ac_count=$as_val 4189 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4190 # Best one so far, save it but keep looking for a better one 4191 ac_cv_path_FGREP="$ac_path_FGREP" 4192 ac_path_FGREP_max=$ac_count 4193 fi 4194 # 10*(2^10) chars as input seems more than enough 4195 test $ac_count -gt 10 && break 4196 done 4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4198esac 4199 4200 $ac_path_FGREP_found && break 3 4201 done 4202 done 4203 done 4204IFS=$as_save_IFS 4205 if test -z "$ac_cv_path_FGREP"; then 4206 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4207 fi 4208else 4209 ac_cv_path_FGREP=$FGREP 4210fi 4211 4212 fi 4213fi 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4215$as_echo "$ac_cv_path_FGREP" >&6; } 4216 FGREP="$ac_cv_path_FGREP" 4217 4218 4219test -z "$GREP" && GREP=grep 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239# Check whether --with-gnu-ld was given. 4240if test "${with_gnu_ld+set}" = set; then : 4241 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4242else 4243 with_gnu_ld=no 4244fi 4245 4246ac_prog=ld 4247if test "$GCC" = yes; then 4248 # Check if gcc -print-prog-name=ld gives a path. 4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4250$as_echo_n "checking for ld used by $CC... " >&6; } 4251 case $host in 4252 *-*-mingw*) 4253 # gcc leaves a trailing carriage return which upsets mingw 4254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4255 *) 4256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4257 esac 4258 case $ac_prog in 4259 # Accept absolute paths. 4260 [\\/]* | ?:[\\/]*) 4261 re_direlt='/[^/][^/]*/\.\./' 4262 # Canonicalize the pathname of ld 4263 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4264 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4265 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4266 done 4267 test -z "$LD" && LD="$ac_prog" 4268 ;; 4269 "") 4270 # If it fails, then pretend we aren't using GCC. 4271 ac_prog=ld 4272 ;; 4273 *) 4274 # If it is relative, then search for the first ld in PATH. 4275 with_gnu_ld=unknown 4276 ;; 4277 esac 4278elif test "$with_gnu_ld" = yes; then 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4280$as_echo_n "checking for GNU ld... " >&6; } 4281else 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4283$as_echo_n "checking for non-GNU ld... " >&6; } 4284fi 4285if ${lt_cv_path_LD+:} false; then : 4286 $as_echo_n "(cached) " >&6 4287else 4288 if test -z "$LD"; then 4289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4290 for ac_dir in $PATH; do 4291 IFS="$lt_save_ifs" 4292 test -z "$ac_dir" && ac_dir=. 4293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4294 lt_cv_path_LD="$ac_dir/$ac_prog" 4295 # Check to see if the program is GNU ld. I'd rather use --version, 4296 # but apparently some variants of GNU ld only accept -v. 4297 # Break only if it was the GNU/non-GNU ld that we prefer. 4298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4299 *GNU* | *'with BFD'*) 4300 test "$with_gnu_ld" != no && break 4301 ;; 4302 *) 4303 test "$with_gnu_ld" != yes && break 4304 ;; 4305 esac 4306 fi 4307 done 4308 IFS="$lt_save_ifs" 4309else 4310 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4311fi 4312fi 4313 4314LD="$lt_cv_path_LD" 4315if test -n "$LD"; then 4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4317$as_echo "$LD" >&6; } 4318else 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4320$as_echo "no" >&6; } 4321fi 4322test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4324$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4325if ${lt_cv_prog_gnu_ld+:} false; then : 4326 $as_echo_n "(cached) " >&6 4327else 4328 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4329case `$LD -v 2>&1 </dev/null` in 4330*GNU* | *'with BFD'*) 4331 lt_cv_prog_gnu_ld=yes 4332 ;; 4333*) 4334 lt_cv_prog_gnu_ld=no 4335 ;; 4336esac 4337fi 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4339$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4340with_gnu_ld=$lt_cv_prog_gnu_ld 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4351$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4352if ${lt_cv_path_NM+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -n "$NM"; then 4356 # Let the user override the test. 4357 lt_cv_path_NM="$NM" 4358else 4359 lt_nm_to_check="${ac_tool_prefix}nm" 4360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4361 lt_nm_to_check="$lt_nm_to_check nm" 4362 fi 4363 for lt_tmp_nm in $lt_nm_to_check; do 4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4366 IFS="$lt_save_ifs" 4367 test -z "$ac_dir" && ac_dir=. 4368 tmp_nm="$ac_dir/$lt_tmp_nm" 4369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4370 # Check to see if the nm accepts a BSD-compat flag. 4371 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4372 # nm: unknown option "B" ignored 4373 # Tru64's nm complains that /dev/null is an invalid object file 4374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4375 */dev/null* | *'Invalid file or object type'*) 4376 lt_cv_path_NM="$tmp_nm -B" 4377 break 4378 ;; 4379 *) 4380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4381 */dev/null*) 4382 lt_cv_path_NM="$tmp_nm -p" 4383 break 4384 ;; 4385 *) 4386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4387 continue # so that we can try to find one that supports BSD flags 4388 ;; 4389 esac 4390 ;; 4391 esac 4392 fi 4393 done 4394 IFS="$lt_save_ifs" 4395 done 4396 : ${lt_cv_path_NM=no} 4397fi 4398fi 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4400$as_echo "$lt_cv_path_NM" >&6; } 4401if test "$lt_cv_path_NM" != "no"; then 4402 NM="$lt_cv_path_NM" 4403else 4404 # Didn't find any BSD compatible name lister, look for dumpbin. 4405 if test -n "$DUMPBIN"; then : 4406 # Let the user override the test. 4407 else 4408 if test -n "$ac_tool_prefix"; then 4409 for ac_prog in dumpbin "link -dump" 4410 do 4411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4412set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4414$as_echo_n "checking for $ac_word... " >&6; } 4415if ${ac_cv_prog_DUMPBIN+:} false; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 if test -n "$DUMPBIN"; then 4419 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4420else 4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4422for as_dir in $PATH 4423do 4424 IFS=$as_save_IFS 4425 test -z "$as_dir" && as_dir=. 4426 for ac_exec_ext in '' $ac_executable_extensions; do 4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4428 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4430 break 2 4431 fi 4432done 4433 done 4434IFS=$as_save_IFS 4435 4436fi 4437fi 4438DUMPBIN=$ac_cv_prog_DUMPBIN 4439if test -n "$DUMPBIN"; then 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4441$as_echo "$DUMPBIN" >&6; } 4442else 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444$as_echo "no" >&6; } 4445fi 4446 4447 4448 test -n "$DUMPBIN" && break 4449 done 4450fi 4451if test -z "$DUMPBIN"; then 4452 ac_ct_DUMPBIN=$DUMPBIN 4453 for ac_prog in dumpbin "link -dump" 4454do 4455 # Extract the first word of "$ac_prog", so it can be a program name with args. 4456set dummy $ac_prog; ac_word=$2 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4458$as_echo_n "checking for $ac_word... " >&6; } 4459if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 if test -n "$ac_ct_DUMPBIN"; then 4463 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4464else 4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4466for as_dir in $PATH 4467do 4468 IFS=$as_save_IFS 4469 test -z "$as_dir" && as_dir=. 4470 for ac_exec_ext in '' $ac_executable_extensions; do 4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4472 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4474 break 2 4475 fi 4476done 4477 done 4478IFS=$as_save_IFS 4479 4480fi 4481fi 4482ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4483if test -n "$ac_ct_DUMPBIN"; then 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4485$as_echo "$ac_ct_DUMPBIN" >&6; } 4486else 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488$as_echo "no" >&6; } 4489fi 4490 4491 4492 test -n "$ac_ct_DUMPBIN" && break 4493done 4494 4495 if test "x$ac_ct_DUMPBIN" = x; then 4496 DUMPBIN=":" 4497 else 4498 case $cross_compiling:$ac_tool_warned in 4499yes:) 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4502ac_tool_warned=yes ;; 4503esac 4504 DUMPBIN=$ac_ct_DUMPBIN 4505 fi 4506fi 4507 4508 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4509 *COFF*) 4510 DUMPBIN="$DUMPBIN -symbols" 4511 ;; 4512 *) 4513 DUMPBIN=: 4514 ;; 4515 esac 4516 fi 4517 4518 if test "$DUMPBIN" != ":"; then 4519 NM="$DUMPBIN" 4520 fi 4521fi 4522test -z "$NM" && NM=nm 4523 4524 4525 4526 4527 4528 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4530$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4531if ${lt_cv_nm_interface+:} false; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 lt_cv_nm_interface="BSD nm" 4535 echo "int some_variable = 0;" > conftest.$ac_ext 4536 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4537 (eval "$ac_compile" 2>conftest.err) 4538 cat conftest.err >&5 4539 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4541 cat conftest.err >&5 4542 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4543 cat conftest.out >&5 4544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4545 lt_cv_nm_interface="MS dumpbin" 4546 fi 4547 rm -f conftest* 4548fi 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4550$as_echo "$lt_cv_nm_interface" >&6; } 4551 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4553$as_echo_n "checking whether ln -s works... " >&6; } 4554LN_S=$as_ln_s 4555if test "$LN_S" = "ln -s"; then 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4557$as_echo "yes" >&6; } 4558else 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4560$as_echo "no, using $LN_S" >&6; } 4561fi 4562 4563# find the maximum length of command line arguments 4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4565$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4566if ${lt_cv_sys_max_cmd_len+:} false; then : 4567 $as_echo_n "(cached) " >&6 4568else 4569 i=0 4570 teststring="ABCD" 4571 4572 case $build_os in 4573 msdosdjgpp*) 4574 # On DJGPP, this test can blow up pretty badly due to problems in libc 4575 # (any single argument exceeding 2000 bytes causes a buffer overrun 4576 # during glob expansion). Even if it were fixed, the result of this 4577 # check would be larger than it should be. 4578 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4579 ;; 4580 4581 gnu*) 4582 # Under GNU Hurd, this test is not required because there is 4583 # no limit to the length of command line arguments. 4584 # Libtool will interpret -1 as no limit whatsoever 4585 lt_cv_sys_max_cmd_len=-1; 4586 ;; 4587 4588 cygwin* | mingw* | cegcc*) 4589 # On Win9x/ME, this test blows up -- it succeeds, but takes 4590 # about 5 minutes as the teststring grows exponentially. 4591 # Worse, since 9x/ME are not pre-emptively multitasking, 4592 # you end up with a "frozen" computer, even though with patience 4593 # the test eventually succeeds (with a max line length of 256k). 4594 # Instead, let's just punt: use the minimum linelength reported by 4595 # all of the supported platforms: 8192 (on NT/2K/XP). 4596 lt_cv_sys_max_cmd_len=8192; 4597 ;; 4598 4599 mint*) 4600 # On MiNT this can take a long time and run out of memory. 4601 lt_cv_sys_max_cmd_len=8192; 4602 ;; 4603 4604 amigaos*) 4605 # On AmigaOS with pdksh, this test takes hours, literally. 4606 # So we just punt and use a minimum line length of 8192. 4607 lt_cv_sys_max_cmd_len=8192; 4608 ;; 4609 4610 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4611 # This has been around since 386BSD, at least. Likely further. 4612 if test -x /sbin/sysctl; then 4613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4614 elif test -x /usr/sbin/sysctl; then 4615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4616 else 4617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4618 fi 4619 # And add a safety zone 4620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4622 ;; 4623 4624 interix*) 4625 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4626 lt_cv_sys_max_cmd_len=196608 4627 ;; 4628 4629 osf*) 4630 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4631 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4632 # nice to cause kernel panics so lets avoid the loop below. 4633 # First set a reasonable default. 4634 lt_cv_sys_max_cmd_len=16384 4635 # 4636 if test -x /sbin/sysconfig; then 4637 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4638 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4639 esac 4640 fi 4641 ;; 4642 sco3.2v5*) 4643 lt_cv_sys_max_cmd_len=102400 4644 ;; 4645 sysv5* | sco5v6* | sysv4.2uw2*) 4646 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4647 if test -n "$kargmax"; then 4648 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4649 else 4650 lt_cv_sys_max_cmd_len=32768 4651 fi 4652 ;; 4653 *) 4654 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4655 if test -n "$lt_cv_sys_max_cmd_len"; then 4656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4658 else 4659 # Make teststring a little bigger before we do anything with it. 4660 # a 1K string should be a reasonable start. 4661 for i in 1 2 3 4 5 6 7 8 ; do 4662 teststring=$teststring$teststring 4663 done 4664 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4665 # If test is not a shell built-in, we'll probably end up computing a 4666 # maximum length that is only half of the actual maximum length, but 4667 # we can't tell. 4668 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4669 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4670 test $i != 17 # 1/2 MB should be enough 4671 do 4672 i=`expr $i + 1` 4673 teststring=$teststring$teststring 4674 done 4675 # Only check the string length outside the loop. 4676 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4677 teststring= 4678 # Add a significant safety factor because C++ compilers can tack on 4679 # massive amounts of additional arguments before passing them to the 4680 # linker. It appears as though 1/2 is a usable value. 4681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4682 fi 4683 ;; 4684 esac 4685 4686fi 4687 4688if test -n $lt_cv_sys_max_cmd_len ; then 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4690$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4691else 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4693$as_echo "none" >&6; } 4694fi 4695max_cmd_len=$lt_cv_sys_max_cmd_len 4696 4697 4698 4699 4700 4701 4702: ${CP="cp -f"} 4703: ${MV="mv -f"} 4704: ${RM="rm -f"} 4705 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4707$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4708# Try some XSI features 4709xsi_shell=no 4710( _lt_dummy="a/b/c" 4711 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4712 = c,a/b,, \ 4713 && eval 'test $(( 1 + 1 )) -eq 2 \ 4714 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4715 && xsi_shell=yes 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4717$as_echo "$xsi_shell" >&6; } 4718 4719 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4721$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4722lt_shell_append=no 4723( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4724 >/dev/null 2>&1 \ 4725 && lt_shell_append=yes 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4727$as_echo "$lt_shell_append" >&6; } 4728 4729 4730if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4731 lt_unset=unset 4732else 4733 lt_unset=false 4734fi 4735 4736 4737 4738 4739 4740# test EBCDIC or ASCII 4741case `echo X|tr X '\101'` in 4742 A) # ASCII based system 4743 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4744 lt_SP2NL='tr \040 \012' 4745 lt_NL2SP='tr \015\012 \040\040' 4746 ;; 4747 *) # EBCDIC based system 4748 lt_SP2NL='tr \100 \n' 4749 lt_NL2SP='tr \r\n \100\100' 4750 ;; 4751esac 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4762$as_echo_n "checking for $LD option to reload object files... " >&6; } 4763if ${lt_cv_ld_reload_flag+:} false; then : 4764 $as_echo_n "(cached) " >&6 4765else 4766 lt_cv_ld_reload_flag='-r' 4767fi 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4769$as_echo "$lt_cv_ld_reload_flag" >&6; } 4770reload_flag=$lt_cv_ld_reload_flag 4771case $reload_flag in 4772"" | " "*) ;; 4773*) reload_flag=" $reload_flag" ;; 4774esac 4775reload_cmds='$LD$reload_flag -o $output$reload_objs' 4776case $host_os in 4777 darwin*) 4778 if test "$GCC" = yes; then 4779 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4780 else 4781 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4782 fi 4783 ;; 4784esac 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794if test -n "$ac_tool_prefix"; then 4795 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4796set dummy ${ac_tool_prefix}objdump; ac_word=$2 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4798$as_echo_n "checking for $ac_word... " >&6; } 4799if ${ac_cv_prog_OBJDUMP+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 if test -n "$OBJDUMP"; then 4803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4804else 4805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4806for as_dir in $PATH 4807do 4808 IFS=$as_save_IFS 4809 test -z "$as_dir" && as_dir=. 4810 for ac_exec_ext in '' $ac_executable_extensions; do 4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4812 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4814 break 2 4815 fi 4816done 4817 done 4818IFS=$as_save_IFS 4819 4820fi 4821fi 4822OBJDUMP=$ac_cv_prog_OBJDUMP 4823if test -n "$OBJDUMP"; then 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4825$as_echo "$OBJDUMP" >&6; } 4826else 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4828$as_echo "no" >&6; } 4829fi 4830 4831 4832fi 4833if test -z "$ac_cv_prog_OBJDUMP"; then 4834 ac_ct_OBJDUMP=$OBJDUMP 4835 # Extract the first word of "objdump", so it can be a program name with args. 4836set dummy objdump; ac_word=$2 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4838$as_echo_n "checking for $ac_word... " >&6; } 4839if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 if test -n "$ac_ct_OBJDUMP"; then 4843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4844else 4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4846for as_dir in $PATH 4847do 4848 IFS=$as_save_IFS 4849 test -z "$as_dir" && as_dir=. 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4852 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4854 break 2 4855 fi 4856done 4857 done 4858IFS=$as_save_IFS 4859 4860fi 4861fi 4862ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4863if test -n "$ac_ct_OBJDUMP"; then 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4865$as_echo "$ac_ct_OBJDUMP" >&6; } 4866else 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4868$as_echo "no" >&6; } 4869fi 4870 4871 if test "x$ac_ct_OBJDUMP" = x; then 4872 OBJDUMP="false" 4873 else 4874 case $cross_compiling:$ac_tool_warned in 4875yes:) 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4878ac_tool_warned=yes ;; 4879esac 4880 OBJDUMP=$ac_ct_OBJDUMP 4881 fi 4882else 4883 OBJDUMP="$ac_cv_prog_OBJDUMP" 4884fi 4885 4886test -z "$OBJDUMP" && OBJDUMP=objdump 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4897$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4898if ${lt_cv_deplibs_check_method+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 lt_cv_file_magic_cmd='$MAGIC_CMD' 4902lt_cv_file_magic_test_file= 4903lt_cv_deplibs_check_method='unknown' 4904# Need to set the preceding variable on all platforms that support 4905# interlibrary dependencies. 4906# 'none' -- dependencies not supported. 4907# `unknown' -- same as none, but documents that we really don't know. 4908# 'pass_all' -- all dependencies passed with no checks. 4909# 'test_compile' -- check by making test program. 4910# 'file_magic [[regex]]' -- check by looking for files in library path 4911# which responds to the $file_magic_cmd with a given extended regex. 4912# If you have `file' or equivalent on your system and you're not sure 4913# whether `pass_all' will *always* work, you probably want this one. 4914 4915case $host_os in 4916aix[4-9]*) 4917 lt_cv_deplibs_check_method=pass_all 4918 ;; 4919 4920beos*) 4921 lt_cv_deplibs_check_method=pass_all 4922 ;; 4923 4924bsdi[45]*) 4925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4926 lt_cv_file_magic_cmd='/usr/bin/file -L' 4927 lt_cv_file_magic_test_file=/shlib/libc.so 4928 ;; 4929 4930cygwin*) 4931 # func_win32_libid is a shell function defined in ltmain.sh 4932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4933 lt_cv_file_magic_cmd='func_win32_libid' 4934 ;; 4935 4936mingw* | pw32*) 4937 # Base MSYS/MinGW do not provide the 'file' command needed by 4938 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4939 # unless we find 'file', for example because we are cross-compiling. 4940 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4941 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4943 lt_cv_file_magic_cmd='func_win32_libid' 4944 else 4945 # Keep this pattern in sync with the one in func_win32_libid. 4946 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4947 lt_cv_file_magic_cmd='$OBJDUMP -f' 4948 fi 4949 ;; 4950 4951cegcc*) 4952 # use the weaker test based on 'objdump'. See mingw*. 4953 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4954 lt_cv_file_magic_cmd='$OBJDUMP -f' 4955 ;; 4956 4957darwin* | rhapsody*) 4958 lt_cv_deplibs_check_method=pass_all 4959 ;; 4960 4961freebsd* | dragonfly*) 4962 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4963 case $host_cpu in 4964 i*86 ) 4965 # Not sure whether the presence of OpenBSD here was a mistake. 4966 # Let's accept both of them until this is cleared up. 4967 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4968 lt_cv_file_magic_cmd=/usr/bin/file 4969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4970 ;; 4971 esac 4972 else 4973 lt_cv_deplibs_check_method=pass_all 4974 fi 4975 ;; 4976 4977gnu*) 4978 lt_cv_deplibs_check_method=pass_all 4979 ;; 4980 4981haiku*) 4982 lt_cv_deplibs_check_method=pass_all 4983 ;; 4984 4985hpux10.20* | hpux11*) 4986 lt_cv_file_magic_cmd=/usr/bin/file 4987 case $host_cpu in 4988 ia64*) 4989 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4990 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4991 ;; 4992 hppa*64*) 4993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 4994 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4995 ;; 4996 *) 4997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4998 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4999 ;; 5000 esac 5001 ;; 5002 5003interix[3-9]*) 5004 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5006 ;; 5007 5008irix5* | irix6* | nonstopux*) 5009 case $LD in 5010 *-32|*"-32 ") libmagic=32-bit;; 5011 *-n32|*"-n32 ") libmagic=N32;; 5012 *-64|*"-64 ") libmagic=64-bit;; 5013 *) libmagic=never-match;; 5014 esac 5015 lt_cv_deplibs_check_method=pass_all 5016 ;; 5017 5018# This must be Linux ELF. 5019linux* | k*bsd*-gnu | kopensolaris*-gnu) 5020 lt_cv_deplibs_check_method=pass_all 5021 ;; 5022 5023netbsd*) 5024 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5026 else 5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5028 fi 5029 ;; 5030 5031newos6*) 5032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5033 lt_cv_file_magic_cmd=/usr/bin/file 5034 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5035 ;; 5036 5037*nto* | *qnx*) 5038 lt_cv_deplibs_check_method=pass_all 5039 ;; 5040 5041openbsd*) 5042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5044 else 5045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5046 fi 5047 ;; 5048 5049osf3* | osf4* | osf5*) 5050 lt_cv_deplibs_check_method=pass_all 5051 ;; 5052 5053rdos*) 5054 lt_cv_deplibs_check_method=pass_all 5055 ;; 5056 5057solaris*) 5058 lt_cv_deplibs_check_method=pass_all 5059 ;; 5060 5061sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5062 lt_cv_deplibs_check_method=pass_all 5063 ;; 5064 5065sysv4 | sysv4.3*) 5066 case $host_vendor in 5067 motorola) 5068 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]' 5069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5070 ;; 5071 ncr) 5072 lt_cv_deplibs_check_method=pass_all 5073 ;; 5074 sequent) 5075 lt_cv_file_magic_cmd='/bin/file' 5076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5077 ;; 5078 sni) 5079 lt_cv_file_magic_cmd='/bin/file' 5080 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5081 lt_cv_file_magic_test_file=/lib/libc.so 5082 ;; 5083 siemens) 5084 lt_cv_deplibs_check_method=pass_all 5085 ;; 5086 pc) 5087 lt_cv_deplibs_check_method=pass_all 5088 ;; 5089 esac 5090 ;; 5091 5092tpf*) 5093 lt_cv_deplibs_check_method=pass_all 5094 ;; 5095esac 5096 5097fi 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5099$as_echo "$lt_cv_deplibs_check_method" >&6; } 5100file_magic_cmd=$lt_cv_file_magic_cmd 5101deplibs_check_method=$lt_cv_deplibs_check_method 5102test -z "$deplibs_check_method" && deplibs_check_method=unknown 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115if test -n "$ac_tool_prefix"; then 5116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5117set dummy ${ac_tool_prefix}ar; ac_word=$2 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5119$as_echo_n "checking for $ac_word... " >&6; } 5120if ${ac_cv_prog_AR+:} false; then : 5121 $as_echo_n "(cached) " >&6 5122else 5123 if test -n "$AR"; then 5124 ac_cv_prog_AR="$AR" # Let the user override the test. 5125else 5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5127for as_dir in $PATH 5128do 5129 IFS=$as_save_IFS 5130 test -z "$as_dir" && as_dir=. 5131 for ac_exec_ext in '' $ac_executable_extensions; do 5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5133 ac_cv_prog_AR="${ac_tool_prefix}ar" 5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5135 break 2 5136 fi 5137done 5138 done 5139IFS=$as_save_IFS 5140 5141fi 5142fi 5143AR=$ac_cv_prog_AR 5144if test -n "$AR"; then 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5146$as_echo "$AR" >&6; } 5147else 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5149$as_echo "no" >&6; } 5150fi 5151 5152 5153fi 5154if test -z "$ac_cv_prog_AR"; then 5155 ac_ct_AR=$AR 5156 # Extract the first word of "ar", so it can be a program name with args. 5157set dummy ar; ac_word=$2 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5159$as_echo_n "checking for $ac_word... " >&6; } 5160if ${ac_cv_prog_ac_ct_AR+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 if test -n "$ac_ct_AR"; then 5164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5165else 5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5167for as_dir in $PATH 5168do 5169 IFS=$as_save_IFS 5170 test -z "$as_dir" && as_dir=. 5171 for ac_exec_ext in '' $ac_executable_extensions; do 5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5173 ac_cv_prog_ac_ct_AR="ar" 5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5175 break 2 5176 fi 5177done 5178 done 5179IFS=$as_save_IFS 5180 5181fi 5182fi 5183ac_ct_AR=$ac_cv_prog_ac_ct_AR 5184if test -n "$ac_ct_AR"; then 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5186$as_echo "$ac_ct_AR" >&6; } 5187else 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5189$as_echo "no" >&6; } 5190fi 5191 5192 if test "x$ac_ct_AR" = x; then 5193 AR="false" 5194 else 5195 case $cross_compiling:$ac_tool_warned in 5196yes:) 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5199ac_tool_warned=yes ;; 5200esac 5201 AR=$ac_ct_AR 5202 fi 5203else 5204 AR="$ac_cv_prog_AR" 5205fi 5206 5207test -z "$AR" && AR=ar 5208test -z "$AR_FLAGS" && AR_FLAGS=cru 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220if test -n "$ac_tool_prefix"; then 5221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5222set dummy ${ac_tool_prefix}strip; ac_word=$2 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5224$as_echo_n "checking for $ac_word... " >&6; } 5225if ${ac_cv_prog_STRIP+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 5228 if test -n "$STRIP"; then 5229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5230else 5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232for as_dir in $PATH 5233do 5234 IFS=$as_save_IFS 5235 test -z "$as_dir" && as_dir=. 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5238 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5240 break 2 5241 fi 5242done 5243 done 5244IFS=$as_save_IFS 5245 5246fi 5247fi 5248STRIP=$ac_cv_prog_STRIP 5249if test -n "$STRIP"; then 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5251$as_echo "$STRIP" >&6; } 5252else 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254$as_echo "no" >&6; } 5255fi 5256 5257 5258fi 5259if test -z "$ac_cv_prog_STRIP"; then 5260 ac_ct_STRIP=$STRIP 5261 # Extract the first word of "strip", so it can be a program name with args. 5262set dummy strip; ac_word=$2 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5264$as_echo_n "checking for $ac_word... " >&6; } 5265if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5266 $as_echo_n "(cached) " >&6 5267else 5268 if test -n "$ac_ct_STRIP"; then 5269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5270else 5271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272for as_dir in $PATH 5273do 5274 IFS=$as_save_IFS 5275 test -z "$as_dir" && as_dir=. 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5278 ac_cv_prog_ac_ct_STRIP="strip" 5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5280 break 2 5281 fi 5282done 5283 done 5284IFS=$as_save_IFS 5285 5286fi 5287fi 5288ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5289if test -n "$ac_ct_STRIP"; then 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5291$as_echo "$ac_ct_STRIP" >&6; } 5292else 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5294$as_echo "no" >&6; } 5295fi 5296 5297 if test "x$ac_ct_STRIP" = x; then 5298 STRIP=":" 5299 else 5300 case $cross_compiling:$ac_tool_warned in 5301yes:) 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5304ac_tool_warned=yes ;; 5305esac 5306 STRIP=$ac_ct_STRIP 5307 fi 5308else 5309 STRIP="$ac_cv_prog_STRIP" 5310fi 5311 5312test -z "$STRIP" && STRIP=: 5313 5314 5315 5316 5317 5318 5319if test -n "$ac_tool_prefix"; then 5320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5321set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5323$as_echo_n "checking for $ac_word... " >&6; } 5324if ${ac_cv_prog_RANLIB+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326else 5327 if test -n "$RANLIB"; then 5328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5329else 5330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 test -z "$as_dir" && as_dir=. 5335 for ac_exec_ext in '' $ac_executable_extensions; do 5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5339 break 2 5340 fi 5341done 5342 done 5343IFS=$as_save_IFS 5344 5345fi 5346fi 5347RANLIB=$ac_cv_prog_RANLIB 5348if test -n "$RANLIB"; then 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5350$as_echo "$RANLIB" >&6; } 5351else 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5353$as_echo "no" >&6; } 5354fi 5355 5356 5357fi 5358if test -z "$ac_cv_prog_RANLIB"; then 5359 ac_ct_RANLIB=$RANLIB 5360 # Extract the first word of "ranlib", so it can be a program name with args. 5361set dummy ranlib; ac_word=$2 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363$as_echo_n "checking for $ac_word... " >&6; } 5364if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 if test -n "$ac_ct_RANLIB"; then 5368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5369else 5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5371for as_dir in $PATH 5372do 5373 IFS=$as_save_IFS 5374 test -z "$as_dir" && as_dir=. 5375 for ac_exec_ext in '' $ac_executable_extensions; do 5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5377 ac_cv_prog_ac_ct_RANLIB="ranlib" 5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 break 2 5380 fi 5381done 5382 done 5383IFS=$as_save_IFS 5384 5385fi 5386fi 5387ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5388if test -n "$ac_ct_RANLIB"; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5390$as_echo "$ac_ct_RANLIB" >&6; } 5391else 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393$as_echo "no" >&6; } 5394fi 5395 5396 if test "x$ac_ct_RANLIB" = x; then 5397 RANLIB=":" 5398 else 5399 case $cross_compiling:$ac_tool_warned in 5400yes:) 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5403ac_tool_warned=yes ;; 5404esac 5405 RANLIB=$ac_ct_RANLIB 5406 fi 5407else 5408 RANLIB="$ac_cv_prog_RANLIB" 5409fi 5410 5411test -z "$RANLIB" && RANLIB=: 5412 5413 5414 5415 5416 5417 5418# Determine commands to create old-style static archives. 5419old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5420old_postinstall_cmds='chmod 644 $oldlib' 5421old_postuninstall_cmds= 5422 5423if test -n "$RANLIB"; then 5424 case $host_os in 5425 openbsd*) 5426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5427 ;; 5428 *) 5429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5430 ;; 5431 esac 5432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5433fi 5434 5435case $host_os in 5436 darwin*) 5437 lock_old_archive_extraction=yes ;; 5438 *) 5439 lock_old_archive_extraction=no ;; 5440esac 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480# If no C compiler was specified, use CC. 5481LTCC=${LTCC-"$CC"} 5482 5483# If no C compiler flags were specified, use CFLAGS. 5484LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5485 5486# Allow CC to be a program name with arguments. 5487compiler=$CC 5488 5489 5490# Check for command to grab the raw symbol name followed by C symbol from nm. 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5492$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5493if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 5497# These are sane defaults that work on at least a few old systems. 5498# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5499 5500# Character class describing NM global symbol codes. 5501symcode='[BCDEGRST]' 5502 5503# Regexp to match symbols that can be accessed directly from C. 5504sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5505 5506# Define system-specific variables. 5507case $host_os in 5508aix*) 5509 symcode='[BCDT]' 5510 ;; 5511cygwin* | mingw* | pw32* | cegcc*) 5512 symcode='[ABCDGISTW]' 5513 ;; 5514hpux*) 5515 if test "$host_cpu" = ia64; then 5516 symcode='[ABCDEGRST]' 5517 fi 5518 ;; 5519irix* | nonstopux*) 5520 symcode='[BCDEGRST]' 5521 ;; 5522osf*) 5523 symcode='[BCDEGQRST]' 5524 ;; 5525solaris*) 5526 symcode='[BDRT]' 5527 ;; 5528sco3.2v5*) 5529 symcode='[DT]' 5530 ;; 5531sysv4.2uw2*) 5532 symcode='[DT]' 5533 ;; 5534sysv5* | sco5v6* | unixware* | OpenUNIX*) 5535 symcode='[ABDT]' 5536 ;; 5537sysv4) 5538 symcode='[DFNSTU]' 5539 ;; 5540esac 5541 5542# If we're using GNU nm, then use its standard symbol codes. 5543case `$NM -V 2>&1` in 5544*GNU* | *'with BFD'*) 5545 symcode='[ABCDGIRSTW]' ;; 5546esac 5547 5548# Transform an extracted symbol line into a proper C declaration. 5549# Some systems (esp. on ia64) link data and code symbols differently, 5550# so use this general approach. 5551lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5552 5553# Transform an extracted symbol line into symbol name and symbol address 5554lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5555lt_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'" 5556 5557# Handle CRLF in mingw tool chain 5558opt_cr= 5559case $build_os in 5560mingw*) 5561 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5562 ;; 5563esac 5564 5565# Try without a prefix underscore, then with it. 5566for ac_symprfx in "" "_"; do 5567 5568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5569 symxfrm="\\1 $ac_symprfx\\2 \\2" 5570 5571 # Write the raw and C identifiers. 5572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5573 # Fake it for dumpbin and say T for any non-static function 5574 # and D for any global variable. 5575 # Also find C++ and __fastcall symbols from MSVC++, 5576 # which start with @ or ?. 5577 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5578" {last_section=section; section=\$ 3};"\ 5579" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5580" \$ 0!~/External *\|/{next};"\ 5581" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5582" {if(hide[section]) next};"\ 5583" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5584" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5585" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5586" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5587" ' prfx=^$ac_symprfx" 5588 else 5589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5590 fi 5591 5592 # Check to see that the pipe works correctly. 5593 pipe_works=no 5594 5595 rm -f conftest* 5596 cat > conftest.$ac_ext <<_LT_EOF 5597#ifdef __cplusplus 5598extern "C" { 5599#endif 5600char nm_test_var; 5601void nm_test_func(void); 5602void nm_test_func(void){} 5603#ifdef __cplusplus 5604} 5605#endif 5606int main(){nm_test_var='a';nm_test_func();return(0);} 5607_LT_EOF 5608 5609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5610 (eval $ac_compile) 2>&5 5611 ac_status=$? 5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5613 test $ac_status = 0; }; then 5614 # Now try to grab the symbols. 5615 nlist=conftest.nm 5616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5617 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5618 ac_status=$? 5619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5620 test $ac_status = 0; } && test -s "$nlist"; then 5621 # Try sorting and uniquifying the output. 5622 if sort "$nlist" | uniq > "$nlist"T; then 5623 mv -f "$nlist"T "$nlist" 5624 else 5625 rm -f "$nlist"T 5626 fi 5627 5628 # Make sure that we snagged all the symbols we need. 5629 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5630 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5631 cat <<_LT_EOF > conftest.$ac_ext 5632#ifdef __cplusplus 5633extern "C" { 5634#endif 5635 5636_LT_EOF 5637 # Now generate the symbol file. 5638 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5639 5640 cat <<_LT_EOF >> conftest.$ac_ext 5641 5642/* The mapping between symbol names and symbols. */ 5643const struct { 5644 const char *name; 5645 void *address; 5646} 5647lt__PROGRAM__LTX_preloaded_symbols[] = 5648{ 5649 { "@PROGRAM@", (void *) 0 }, 5650_LT_EOF 5651 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5652 cat <<\_LT_EOF >> conftest.$ac_ext 5653 {0, (void *) 0} 5654}; 5655 5656/* This works around a problem in FreeBSD linker */ 5657#ifdef FREEBSD_WORKAROUND 5658static const void *lt_preloaded_setup() { 5659 return lt__PROGRAM__LTX_preloaded_symbols; 5660} 5661#endif 5662 5663#ifdef __cplusplus 5664} 5665#endif 5666_LT_EOF 5667 # Now try linking the two files. 5668 mv conftest.$ac_objext conftstm.$ac_objext 5669 lt_save_LIBS="$LIBS" 5670 lt_save_CFLAGS="$CFLAGS" 5671 LIBS="conftstm.$ac_objext" 5672 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5674 (eval $ac_link) 2>&5 5675 ac_status=$? 5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5677 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5678 pipe_works=yes 5679 fi 5680 LIBS="$lt_save_LIBS" 5681 CFLAGS="$lt_save_CFLAGS" 5682 else 5683 echo "cannot find nm_test_func in $nlist" >&5 5684 fi 5685 else 5686 echo "cannot find nm_test_var in $nlist" >&5 5687 fi 5688 else 5689 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5690 fi 5691 else 5692 echo "$progname: failed program was:" >&5 5693 cat conftest.$ac_ext >&5 5694 fi 5695 rm -rf conftest* conftst* 5696 5697 # Do not use the global_symbol_pipe unless it works. 5698 if test "$pipe_works" = yes; then 5699 break 5700 else 5701 lt_cv_sys_global_symbol_pipe= 5702 fi 5703done 5704 5705fi 5706 5707if test -z "$lt_cv_sys_global_symbol_pipe"; then 5708 lt_cv_sys_global_symbol_to_cdecl= 5709fi 5710if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5712$as_echo "failed" >&6; } 5713else 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5715$as_echo "ok" >&6; } 5716fi 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740# Check whether --enable-libtool-lock was given. 5741if test "${enable_libtool_lock+set}" = set; then : 5742 enableval=$enable_libtool_lock; 5743fi 5744 5745test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5746 5747# Some flags need to be propagated to the compiler or linker for good 5748# libtool support. 5749case $host in 5750ia64-*-hpux*) 5751 # Find out which ABI we are using. 5752 echo 'int i;' > conftest.$ac_ext 5753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5754 (eval $ac_compile) 2>&5 5755 ac_status=$? 5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5757 test $ac_status = 0; }; then 5758 case `/usr/bin/file conftest.$ac_objext` in 5759 *ELF-32*) 5760 HPUX_IA64_MODE="32" 5761 ;; 5762 *ELF-64*) 5763 HPUX_IA64_MODE="64" 5764 ;; 5765 esac 5766 fi 5767 rm -rf conftest* 5768 ;; 5769*-*-irix6*) 5770 # Find out which ABI we are using. 5771 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5773 (eval $ac_compile) 2>&5 5774 ac_status=$? 5775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5776 test $ac_status = 0; }; then 5777 if test "$lt_cv_prog_gnu_ld" = yes; then 5778 case `/usr/bin/file conftest.$ac_objext` in 5779 *32-bit*) 5780 LD="${LD-ld} -melf32bsmip" 5781 ;; 5782 *N32*) 5783 LD="${LD-ld} -melf32bmipn32" 5784 ;; 5785 *64-bit*) 5786 LD="${LD-ld} -melf64bmip" 5787 ;; 5788 esac 5789 else 5790 case `/usr/bin/file conftest.$ac_objext` in 5791 *32-bit*) 5792 LD="${LD-ld} -32" 5793 ;; 5794 *N32*) 5795 LD="${LD-ld} -n32" 5796 ;; 5797 *64-bit*) 5798 LD="${LD-ld} -64" 5799 ;; 5800 esac 5801 fi 5802 fi 5803 rm -rf conftest* 5804 ;; 5805 5806x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5807s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5808 # Find out which ABI we are using. 5809 echo 'int i;' > conftest.$ac_ext 5810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5811 (eval $ac_compile) 2>&5 5812 ac_status=$? 5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5814 test $ac_status = 0; }; then 5815 case `/usr/bin/file conftest.o` in 5816 *32-bit*) 5817 case $host in 5818 x86_64-*kfreebsd*-gnu) 5819 LD="${LD-ld} -m elf_i386_fbsd" 5820 ;; 5821 x86_64-*linux*) 5822 LD="${LD-ld} -m elf_i386" 5823 ;; 5824 ppc64-*linux*|powerpc64-*linux*) 5825 LD="${LD-ld} -m elf32ppclinux" 5826 ;; 5827 s390x-*linux*) 5828 LD="${LD-ld} -m elf_s390" 5829 ;; 5830 sparc64-*linux*) 5831 LD="${LD-ld} -m elf32_sparc" 5832 ;; 5833 esac 5834 ;; 5835 *64-bit*) 5836 case $host in 5837 x86_64-*kfreebsd*-gnu) 5838 LD="${LD-ld} -m elf_x86_64_fbsd" 5839 ;; 5840 x86_64-*linux*) 5841 LD="${LD-ld} -m elf_x86_64" 5842 ;; 5843 ppc*-*linux*|powerpc*-*linux*) 5844 LD="${LD-ld} -m elf64ppc" 5845 ;; 5846 s390*-*linux*|s390*-*tpf*) 5847 LD="${LD-ld} -m elf64_s390" 5848 ;; 5849 sparc*-*linux*) 5850 LD="${LD-ld} -m elf64_sparc" 5851 ;; 5852 esac 5853 ;; 5854 esac 5855 fi 5856 rm -rf conftest* 5857 ;; 5858 5859*-*-sco3.2v5*) 5860 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5861 SAVE_CFLAGS="$CFLAGS" 5862 CFLAGS="$CFLAGS -belf" 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5864$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5865if ${lt_cv_cc_needs_belf+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 ac_ext=c 5869ac_cpp='$CPP $CPPFLAGS' 5870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5872ac_compiler_gnu=$ac_cv_c_compiler_gnu 5873 5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875/* end confdefs.h. */ 5876 5877int 5878main () 5879{ 5880 5881 ; 5882 return 0; 5883} 5884_ACEOF 5885if ac_fn_c_try_link "$LINENO"; then : 5886 lt_cv_cc_needs_belf=yes 5887else 5888 lt_cv_cc_needs_belf=no 5889fi 5890rm -f core conftest.err conftest.$ac_objext \ 5891 conftest$ac_exeext conftest.$ac_ext 5892 ac_ext=c 5893ac_cpp='$CPP $CPPFLAGS' 5894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5896ac_compiler_gnu=$ac_cv_c_compiler_gnu 5897 5898fi 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5900$as_echo "$lt_cv_cc_needs_belf" >&6; } 5901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5903 CFLAGS="$SAVE_CFLAGS" 5904 fi 5905 ;; 5906sparc*-*solaris*) 5907 # Find out which ABI we are using. 5908 echo 'int i;' > conftest.$ac_ext 5909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5910 (eval $ac_compile) 2>&5 5911 ac_status=$? 5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5913 test $ac_status = 0; }; then 5914 case `/usr/bin/file conftest.o` in 5915 *64-bit*) 5916 case $lt_cv_prog_gnu_ld in 5917 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5918 *) 5919 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5920 LD="${LD-ld} -64" 5921 fi 5922 ;; 5923 esac 5924 ;; 5925 esac 5926 fi 5927 rm -rf conftest* 5928 ;; 5929esac 5930 5931need_locks="$enable_libtool_lock" 5932 5933 5934 case $host_os in 5935 rhapsody* | darwin*) 5936 if test -n "$ac_tool_prefix"; then 5937 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5938set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5940$as_echo_n "checking for $ac_word... " >&6; } 5941if ${ac_cv_prog_DSYMUTIL+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 if test -n "$DSYMUTIL"; then 5945 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5946else 5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5948for as_dir in $PATH 5949do 5950 IFS=$as_save_IFS 5951 test -z "$as_dir" && as_dir=. 5952 for ac_exec_ext in '' $ac_executable_extensions; do 5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5954 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5956 break 2 5957 fi 5958done 5959 done 5960IFS=$as_save_IFS 5961 5962fi 5963fi 5964DSYMUTIL=$ac_cv_prog_DSYMUTIL 5965if test -n "$DSYMUTIL"; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5967$as_echo "$DSYMUTIL" >&6; } 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970$as_echo "no" >&6; } 5971fi 5972 5973 5974fi 5975if test -z "$ac_cv_prog_DSYMUTIL"; then 5976 ac_ct_DSYMUTIL=$DSYMUTIL 5977 # Extract the first word of "dsymutil", so it can be a program name with args. 5978set dummy dsymutil; ac_word=$2 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5980$as_echo_n "checking for $ac_word... " >&6; } 5981if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 if test -n "$ac_ct_DSYMUTIL"; then 5985 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5986else 5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5988for as_dir in $PATH 5989do 5990 IFS=$as_save_IFS 5991 test -z "$as_dir" && as_dir=. 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5994 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5996 break 2 5997 fi 5998done 5999 done 6000IFS=$as_save_IFS 6001 6002fi 6003fi 6004ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6005if test -n "$ac_ct_DSYMUTIL"; then 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6007$as_echo "$ac_ct_DSYMUTIL" >&6; } 6008else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010$as_echo "no" >&6; } 6011fi 6012 6013 if test "x$ac_ct_DSYMUTIL" = x; then 6014 DSYMUTIL=":" 6015 else 6016 case $cross_compiling:$ac_tool_warned in 6017yes:) 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6020ac_tool_warned=yes ;; 6021esac 6022 DSYMUTIL=$ac_ct_DSYMUTIL 6023 fi 6024else 6025 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6026fi 6027 6028 if test -n "$ac_tool_prefix"; then 6029 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6030set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6032$as_echo_n "checking for $ac_word... " >&6; } 6033if ${ac_cv_prog_NMEDIT+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 if test -n "$NMEDIT"; then 6037 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6038else 6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6040for as_dir in $PATH 6041do 6042 IFS=$as_save_IFS 6043 test -z "$as_dir" && as_dir=. 6044 for ac_exec_ext in '' $ac_executable_extensions; do 6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6046 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6048 break 2 6049 fi 6050done 6051 done 6052IFS=$as_save_IFS 6053 6054fi 6055fi 6056NMEDIT=$ac_cv_prog_NMEDIT 6057if test -n "$NMEDIT"; then 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6059$as_echo "$NMEDIT" >&6; } 6060else 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6062$as_echo "no" >&6; } 6063fi 6064 6065 6066fi 6067if test -z "$ac_cv_prog_NMEDIT"; then 6068 ac_ct_NMEDIT=$NMEDIT 6069 # Extract the first word of "nmedit", so it can be a program name with args. 6070set dummy nmedit; ac_word=$2 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6072$as_echo_n "checking for $ac_word... " >&6; } 6073if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 if test -n "$ac_ct_NMEDIT"; then 6077 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6078else 6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6080for as_dir in $PATH 6081do 6082 IFS=$as_save_IFS 6083 test -z "$as_dir" && as_dir=. 6084 for ac_exec_ext in '' $ac_executable_extensions; do 6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6086 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6088 break 2 6089 fi 6090done 6091 done 6092IFS=$as_save_IFS 6093 6094fi 6095fi 6096ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6097if test -n "$ac_ct_NMEDIT"; then 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6099$as_echo "$ac_ct_NMEDIT" >&6; } 6100else 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6102$as_echo "no" >&6; } 6103fi 6104 6105 if test "x$ac_ct_NMEDIT" = x; then 6106 NMEDIT=":" 6107 else 6108 case $cross_compiling:$ac_tool_warned in 6109yes:) 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6112ac_tool_warned=yes ;; 6113esac 6114 NMEDIT=$ac_ct_NMEDIT 6115 fi 6116else 6117 NMEDIT="$ac_cv_prog_NMEDIT" 6118fi 6119 6120 if test -n "$ac_tool_prefix"; then 6121 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6122set dummy ${ac_tool_prefix}lipo; ac_word=$2 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6124$as_echo_n "checking for $ac_word... " >&6; } 6125if ${ac_cv_prog_LIPO+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127else 6128 if test -n "$LIPO"; then 6129 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6130else 6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6132for as_dir in $PATH 6133do 6134 IFS=$as_save_IFS 6135 test -z "$as_dir" && as_dir=. 6136 for ac_exec_ext in '' $ac_executable_extensions; do 6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6138 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6140 break 2 6141 fi 6142done 6143 done 6144IFS=$as_save_IFS 6145 6146fi 6147fi 6148LIPO=$ac_cv_prog_LIPO 6149if test -n "$LIPO"; then 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6151$as_echo "$LIPO" >&6; } 6152else 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154$as_echo "no" >&6; } 6155fi 6156 6157 6158fi 6159if test -z "$ac_cv_prog_LIPO"; then 6160 ac_ct_LIPO=$LIPO 6161 # Extract the first word of "lipo", so it can be a program name with args. 6162set dummy lipo; ac_word=$2 6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6164$as_echo_n "checking for $ac_word... " >&6; } 6165if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6166 $as_echo_n "(cached) " >&6 6167else 6168 if test -n "$ac_ct_LIPO"; then 6169 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6170else 6171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6172for as_dir in $PATH 6173do 6174 IFS=$as_save_IFS 6175 test -z "$as_dir" && as_dir=. 6176 for ac_exec_ext in '' $ac_executable_extensions; do 6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6178 ac_cv_prog_ac_ct_LIPO="lipo" 6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6180 break 2 6181 fi 6182done 6183 done 6184IFS=$as_save_IFS 6185 6186fi 6187fi 6188ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6189if test -n "$ac_ct_LIPO"; then 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6191$as_echo "$ac_ct_LIPO" >&6; } 6192else 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6194$as_echo "no" >&6; } 6195fi 6196 6197 if test "x$ac_ct_LIPO" = x; then 6198 LIPO=":" 6199 else 6200 case $cross_compiling:$ac_tool_warned in 6201yes:) 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6204ac_tool_warned=yes ;; 6205esac 6206 LIPO=$ac_ct_LIPO 6207 fi 6208else 6209 LIPO="$ac_cv_prog_LIPO" 6210fi 6211 6212 if test -n "$ac_tool_prefix"; then 6213 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6214set dummy ${ac_tool_prefix}otool; ac_word=$2 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6216$as_echo_n "checking for $ac_word... " >&6; } 6217if ${ac_cv_prog_OTOOL+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 if test -n "$OTOOL"; then 6221 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6222else 6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6224for as_dir in $PATH 6225do 6226 IFS=$as_save_IFS 6227 test -z "$as_dir" && as_dir=. 6228 for ac_exec_ext in '' $ac_executable_extensions; do 6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6230 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6232 break 2 6233 fi 6234done 6235 done 6236IFS=$as_save_IFS 6237 6238fi 6239fi 6240OTOOL=$ac_cv_prog_OTOOL 6241if test -n "$OTOOL"; then 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6243$as_echo "$OTOOL" >&6; } 6244else 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6246$as_echo "no" >&6; } 6247fi 6248 6249 6250fi 6251if test -z "$ac_cv_prog_OTOOL"; then 6252 ac_ct_OTOOL=$OTOOL 6253 # Extract the first word of "otool", so it can be a program name with args. 6254set dummy otool; ac_word=$2 6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6256$as_echo_n "checking for $ac_word... " >&6; } 6257if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6258 $as_echo_n "(cached) " >&6 6259else 6260 if test -n "$ac_ct_OTOOL"; then 6261 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6262else 6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6264for as_dir in $PATH 6265do 6266 IFS=$as_save_IFS 6267 test -z "$as_dir" && as_dir=. 6268 for ac_exec_ext in '' $ac_executable_extensions; do 6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6270 ac_cv_prog_ac_ct_OTOOL="otool" 6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6272 break 2 6273 fi 6274done 6275 done 6276IFS=$as_save_IFS 6277 6278fi 6279fi 6280ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6281if test -n "$ac_ct_OTOOL"; then 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6283$as_echo "$ac_ct_OTOOL" >&6; } 6284else 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6286$as_echo "no" >&6; } 6287fi 6288 6289 if test "x$ac_ct_OTOOL" = x; then 6290 OTOOL=":" 6291 else 6292 case $cross_compiling:$ac_tool_warned in 6293yes:) 6294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6296ac_tool_warned=yes ;; 6297esac 6298 OTOOL=$ac_ct_OTOOL 6299 fi 6300else 6301 OTOOL="$ac_cv_prog_OTOOL" 6302fi 6303 6304 if test -n "$ac_tool_prefix"; then 6305 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6306set dummy ${ac_tool_prefix}otool64; ac_word=$2 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6308$as_echo_n "checking for $ac_word... " >&6; } 6309if ${ac_cv_prog_OTOOL64+:} false; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 if test -n "$OTOOL64"; then 6313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6314else 6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316for as_dir in $PATH 6317do 6318 IFS=$as_save_IFS 6319 test -z "$as_dir" && as_dir=. 6320 for ac_exec_ext in '' $ac_executable_extensions; do 6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6322 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6324 break 2 6325 fi 6326done 6327 done 6328IFS=$as_save_IFS 6329 6330fi 6331fi 6332OTOOL64=$ac_cv_prog_OTOOL64 6333if test -n "$OTOOL64"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6335$as_echo "$OTOOL64" >&6; } 6336else 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6338$as_echo "no" >&6; } 6339fi 6340 6341 6342fi 6343if test -z "$ac_cv_prog_OTOOL64"; then 6344 ac_ct_OTOOL64=$OTOOL64 6345 # Extract the first word of "otool64", so it can be a program name with args. 6346set dummy otool64; ac_word=$2 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6348$as_echo_n "checking for $ac_word... " >&6; } 6349if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351else 6352 if test -n "$ac_ct_OTOOL64"; then 6353 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6354else 6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6356for as_dir in $PATH 6357do 6358 IFS=$as_save_IFS 6359 test -z "$as_dir" && as_dir=. 6360 for ac_exec_ext in '' $ac_executable_extensions; do 6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6362 ac_cv_prog_ac_ct_OTOOL64="otool64" 6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6364 break 2 6365 fi 6366done 6367 done 6368IFS=$as_save_IFS 6369 6370fi 6371fi 6372ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6373if test -n "$ac_ct_OTOOL64"; then 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6375$as_echo "$ac_ct_OTOOL64" >&6; } 6376else 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6378$as_echo "no" >&6; } 6379fi 6380 6381 if test "x$ac_ct_OTOOL64" = x; then 6382 OTOOL64=":" 6383 else 6384 case $cross_compiling:$ac_tool_warned in 6385yes:) 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6388ac_tool_warned=yes ;; 6389esac 6390 OTOOL64=$ac_ct_OTOOL64 6391 fi 6392else 6393 OTOOL64="$ac_cv_prog_OTOOL64" 6394fi 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6423$as_echo_n "checking for -single_module linker flag... " >&6; } 6424if ${lt_cv_apple_cc_single_mod+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 lt_cv_apple_cc_single_mod=no 6428 if test -z "${LT_MULTI_MODULE}"; then 6429 # By default we will add the -single_module flag. You can override 6430 # by either setting the environment variable LT_MULTI_MODULE 6431 # non-empty at configure time, or by adding -multi_module to the 6432 # link flags. 6433 rm -rf libconftest.dylib* 6434 echo "int foo(void){return 1;}" > conftest.c 6435 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6436-dynamiclib -Wl,-single_module conftest.c" >&5 6437 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6438 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6439 _lt_result=$? 6440 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6441 lt_cv_apple_cc_single_mod=yes 6442 else 6443 cat conftest.err >&5 6444 fi 6445 rm -rf libconftest.dylib* 6446 rm -f conftest.* 6447 fi 6448fi 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6450$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6452$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6453if ${lt_cv_ld_exported_symbols_list+:} false; then : 6454 $as_echo_n "(cached) " >&6 6455else 6456 lt_cv_ld_exported_symbols_list=no 6457 save_LDFLAGS=$LDFLAGS 6458 echo "_main" > conftest.sym 6459 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461/* end confdefs.h. */ 6462 6463int 6464main () 6465{ 6466 6467 ; 6468 return 0; 6469} 6470_ACEOF 6471if ac_fn_c_try_link "$LINENO"; then : 6472 lt_cv_ld_exported_symbols_list=yes 6473else 6474 lt_cv_ld_exported_symbols_list=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext \ 6477 conftest$ac_exeext conftest.$ac_ext 6478 LDFLAGS="$save_LDFLAGS" 6479 6480fi 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6482$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6484$as_echo_n "checking for -force_load linker flag... " >&6; } 6485if ${lt_cv_ld_force_load+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 lt_cv_ld_force_load=no 6489 cat > conftest.c << _LT_EOF 6490int forced_loaded() { return 2;} 6491_LT_EOF 6492 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6493 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6494 echo "$AR cru libconftest.a conftest.o" >&5 6495 $AR cru libconftest.a conftest.o 2>&5 6496 echo "$RANLIB libconftest.a" >&5 6497 $RANLIB libconftest.a 2>&5 6498 cat > conftest.c << _LT_EOF 6499int main() { return 0;} 6500_LT_EOF 6501 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6502 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6503 _lt_result=$? 6504 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6505 lt_cv_ld_force_load=yes 6506 else 6507 cat conftest.err >&5 6508 fi 6509 rm -f conftest.err libconftest.a conftest conftest.c 6510 rm -rf conftest.dSYM 6511 6512fi 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6514$as_echo "$lt_cv_ld_force_load" >&6; } 6515 case $host_os in 6516 rhapsody* | darwin1.[012]) 6517 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6518 darwin1.*) 6519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6520 darwin*) # darwin 5.x on 6521 # if running on 10.5 or later, the deployment target defaults 6522 # to the OS version, if on x86, and 10.4, the deployment 6523 # target defaults to 10.4. Don't you love it? 6524 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6525 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6527 10.[012]*) 6528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6529 10.*) 6530 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6531 esac 6532 ;; 6533 esac 6534 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6535 _lt_dar_single_mod='$single_module' 6536 fi 6537 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6538 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6539 else 6540 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6541 fi 6542 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6543 _lt_dsymutil='~$DSYMUTIL $lib || :' 6544 else 6545 _lt_dsymutil= 6546 fi 6547 ;; 6548 esac 6549 6550ac_ext=c 6551ac_cpp='$CPP $CPPFLAGS' 6552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6554ac_compiler_gnu=$ac_cv_c_compiler_gnu 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6556$as_echo_n "checking how to run the C preprocessor... " >&6; } 6557# On Suns, sometimes $CPP names a directory. 6558if test -n "$CPP" && test -d "$CPP"; then 6559 CPP= 6560fi 6561if test -z "$CPP"; then 6562 if ${ac_cv_prog_CPP+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 # Double quotes because CPP needs to be expanded 6566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6567 do 6568 ac_preproc_ok=false 6569for ac_c_preproc_warn_flag in '' yes 6570do 6571 # Use a header file that comes with gcc, so configuring glibc 6572 # with a fresh cross-compiler works. 6573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6574 # <limits.h> exists even on freestanding compilers. 6575 # On the NeXT, cc -E runs the code through the compiler's parser, 6576 # not just through cpp. "Syntax error" is here to catch this case. 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6578/* end confdefs.h. */ 6579#ifdef __STDC__ 6580# include <limits.h> 6581#else 6582# include <assert.h> 6583#endif 6584 Syntax error 6585_ACEOF 6586if ac_fn_c_try_cpp "$LINENO"; then : 6587 6588else 6589 # Broken: fails on valid input. 6590continue 6591fi 6592rm -f conftest.err conftest.i conftest.$ac_ext 6593 6594 # OK, works on sane cases. Now check whether nonexistent headers 6595 # can be detected and how. 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597/* end confdefs.h. */ 6598#include <ac_nonexistent.h> 6599_ACEOF 6600if ac_fn_c_try_cpp "$LINENO"; then : 6601 # Broken: success on invalid input. 6602continue 6603else 6604 # Passes both tests. 6605ac_preproc_ok=: 6606break 6607fi 6608rm -f conftest.err conftest.i conftest.$ac_ext 6609 6610done 6611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6612rm -f conftest.i conftest.err conftest.$ac_ext 6613if $ac_preproc_ok; then : 6614 break 6615fi 6616 6617 done 6618 ac_cv_prog_CPP=$CPP 6619 6620fi 6621 CPP=$ac_cv_prog_CPP 6622else 6623 ac_cv_prog_CPP=$CPP 6624fi 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6626$as_echo "$CPP" >&6; } 6627ac_preproc_ok=false 6628for ac_c_preproc_warn_flag in '' yes 6629do 6630 # Use a header file that comes with gcc, so configuring glibc 6631 # with a fresh cross-compiler works. 6632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6633 # <limits.h> exists even on freestanding compilers. 6634 # On the NeXT, cc -E runs the code through the compiler's parser, 6635 # not just through cpp. "Syntax error" is here to catch this case. 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637/* end confdefs.h. */ 6638#ifdef __STDC__ 6639# include <limits.h> 6640#else 6641# include <assert.h> 6642#endif 6643 Syntax error 6644_ACEOF 6645if ac_fn_c_try_cpp "$LINENO"; then : 6646 6647else 6648 # Broken: fails on valid input. 6649continue 6650fi 6651rm -f conftest.err conftest.i conftest.$ac_ext 6652 6653 # OK, works on sane cases. Now check whether nonexistent headers 6654 # can be detected and how. 6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656/* end confdefs.h. */ 6657#include <ac_nonexistent.h> 6658_ACEOF 6659if ac_fn_c_try_cpp "$LINENO"; then : 6660 # Broken: success on invalid input. 6661continue 6662else 6663 # Passes both tests. 6664ac_preproc_ok=: 6665break 6666fi 6667rm -f conftest.err conftest.i conftest.$ac_ext 6668 6669done 6670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6671rm -f conftest.i conftest.err conftest.$ac_ext 6672if $ac_preproc_ok; then : 6673 6674else 6675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6677as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6678See \`config.log' for more details" "$LINENO" 5; } 6679fi 6680 6681ac_ext=c 6682ac_cpp='$CPP $CPPFLAGS' 6683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6685ac_compiler_gnu=$ac_cv_c_compiler_gnu 6686 6687 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6689$as_echo_n "checking for ANSI C header files... " >&6; } 6690if ${ac_cv_header_stdc+:} false; then : 6691 $as_echo_n "(cached) " >&6 6692else 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694/* end confdefs.h. */ 6695#include <stdlib.h> 6696#include <stdarg.h> 6697#include <string.h> 6698#include <float.h> 6699 6700int 6701main () 6702{ 6703 6704 ; 6705 return 0; 6706} 6707_ACEOF 6708if ac_fn_c_try_compile "$LINENO"; then : 6709 ac_cv_header_stdc=yes 6710else 6711 ac_cv_header_stdc=no 6712fi 6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6714 6715if test $ac_cv_header_stdc = yes; then 6716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6718/* end confdefs.h. */ 6719#include <string.h> 6720 6721_ACEOF 6722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6723 $EGREP "memchr" >/dev/null 2>&1; then : 6724 6725else 6726 ac_cv_header_stdc=no 6727fi 6728rm -f conftest* 6729 6730fi 6731 6732if test $ac_cv_header_stdc = yes; then 6733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6735/* end confdefs.h. */ 6736#include <stdlib.h> 6737 6738_ACEOF 6739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6740 $EGREP "free" >/dev/null 2>&1; then : 6741 6742else 6743 ac_cv_header_stdc=no 6744fi 6745rm -f conftest* 6746 6747fi 6748 6749if test $ac_cv_header_stdc = yes; then 6750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6751 if test "$cross_compiling" = yes; then : 6752 : 6753else 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755/* end confdefs.h. */ 6756#include <ctype.h> 6757#include <stdlib.h> 6758#if ((' ' & 0x0FF) == 0x020) 6759# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6760# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6761#else 6762# define ISLOWER(c) \ 6763 (('a' <= (c) && (c) <= 'i') \ 6764 || ('j' <= (c) && (c) <= 'r') \ 6765 || ('s' <= (c) && (c) <= 'z')) 6766# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6767#endif 6768 6769#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6770int 6771main () 6772{ 6773 int i; 6774 for (i = 0; i < 256; i++) 6775 if (XOR (islower (i), ISLOWER (i)) 6776 || toupper (i) != TOUPPER (i)) 6777 return 2; 6778 return 0; 6779} 6780_ACEOF 6781if ac_fn_c_try_run "$LINENO"; then : 6782 6783else 6784 ac_cv_header_stdc=no 6785fi 6786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6787 conftest.$ac_objext conftest.beam conftest.$ac_ext 6788fi 6789 6790fi 6791fi 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6793$as_echo "$ac_cv_header_stdc" >&6; } 6794if test $ac_cv_header_stdc = yes; then 6795 6796$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6797 6798fi 6799 6800# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6801for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6802 inttypes.h stdint.h unistd.h 6803do : 6804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6805ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6806" 6807if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6808 cat >>confdefs.h <<_ACEOF 6809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6810_ACEOF 6811 6812fi 6813 6814done 6815 6816 6817for ac_header in dlfcn.h 6818do : 6819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6820" 6821if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6822 cat >>confdefs.h <<_ACEOF 6823#define HAVE_DLFCN_H 1 6824_ACEOF 6825 6826fi 6827 6828done 6829 6830 6831 6832 6833 6834# Set options 6835 6836 6837 6838 enable_dlopen=no 6839 6840 6841 enable_win32_dll=no 6842 6843 6844 # Check whether --enable-shared was given. 6845if test "${enable_shared+set}" = set; then : 6846 enableval=$enable_shared; p=${PACKAGE-default} 6847 case $enableval in 6848 yes) enable_shared=yes ;; 6849 no) enable_shared=no ;; 6850 *) 6851 enable_shared=no 6852 # Look at the argument we got. We use all the common list separators. 6853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6854 for pkg in $enableval; do 6855 IFS="$lt_save_ifs" 6856 if test "X$pkg" = "X$p"; then 6857 enable_shared=yes 6858 fi 6859 done 6860 IFS="$lt_save_ifs" 6861 ;; 6862 esac 6863else 6864 enable_shared=yes 6865fi 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 # Check whether --enable-static was given. 6876if test "${enable_static+set}" = set; then : 6877 enableval=$enable_static; p=${PACKAGE-default} 6878 case $enableval in 6879 yes) enable_static=yes ;; 6880 no) enable_static=no ;; 6881 *) 6882 enable_static=no 6883 # Look at the argument we got. We use all the common list separators. 6884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6885 for pkg in $enableval; do 6886 IFS="$lt_save_ifs" 6887 if test "X$pkg" = "X$p"; then 6888 enable_static=yes 6889 fi 6890 done 6891 IFS="$lt_save_ifs" 6892 ;; 6893 esac 6894else 6895 enable_static=yes 6896fi 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907# Check whether --with-pic was given. 6908if test "${with_pic+set}" = set; then : 6909 withval=$with_pic; pic_mode="$withval" 6910else 6911 pic_mode=default 6912fi 6913 6914 6915test -z "$pic_mode" && pic_mode=default 6916 6917 6918 6919 6920 6921 6922 6923 # Check whether --enable-fast-install was given. 6924if test "${enable_fast_install+set}" = set; then : 6925 enableval=$enable_fast_install; p=${PACKAGE-default} 6926 case $enableval in 6927 yes) enable_fast_install=yes ;; 6928 no) enable_fast_install=no ;; 6929 *) 6930 enable_fast_install=no 6931 # Look at the argument we got. We use all the common list separators. 6932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6933 for pkg in $enableval; do 6934 IFS="$lt_save_ifs" 6935 if test "X$pkg" = "X$p"; then 6936 enable_fast_install=yes 6937 fi 6938 done 6939 IFS="$lt_save_ifs" 6940 ;; 6941 esac 6942else 6943 enable_fast_install=yes 6944fi 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956# This can be used to rebuild libtool when needed 6957LIBTOOL_DEPS="$ltmain" 6958 6959# Always use our own libtool. 6960LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987test -z "$LN_S" && LN_S="ln -s" 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002if test -n "${ZSH_VERSION+set}" ; then 7003 setopt NO_GLOB_SUBST 7004fi 7005 7006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7007$as_echo_n "checking for objdir... " >&6; } 7008if ${lt_cv_objdir+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 rm -f .libs 2>/dev/null 7012mkdir .libs 2>/dev/null 7013if test -d .libs; then 7014 lt_cv_objdir=.libs 7015else 7016 # MS-DOS does not allow filenames that begin with a dot. 7017 lt_cv_objdir=_libs 7018fi 7019rmdir .libs 2>/dev/null 7020fi 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7022$as_echo "$lt_cv_objdir" >&6; } 7023objdir=$lt_cv_objdir 7024 7025 7026 7027 7028 7029cat >>confdefs.h <<_ACEOF 7030#define LT_OBJDIR "$lt_cv_objdir/" 7031_ACEOF 7032 7033 7034 7035 7036case $host_os in 7037aix3*) 7038 # AIX sometimes has problems with the GCC collect2 program. For some 7039 # reason, if we set the COLLECT_NAMES environment variable, the problems 7040 # vanish in a puff of smoke. 7041 if test "X${COLLECT_NAMES+set}" != Xset; then 7042 COLLECT_NAMES= 7043 export COLLECT_NAMES 7044 fi 7045 ;; 7046esac 7047 7048# Global variables: 7049ofile=libtool 7050can_build_shared=yes 7051 7052# All known linkers require a `.a' archive for static linking (except MSVC, 7053# which needs '.lib'). 7054libext=a 7055 7056with_gnu_ld="$lt_cv_prog_gnu_ld" 7057 7058old_CC="$CC" 7059old_CFLAGS="$CFLAGS" 7060 7061# Set sane defaults for various variables 7062test -z "$CC" && CC=cc 7063test -z "$LTCC" && LTCC=$CC 7064test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7065test -z "$LD" && LD=ld 7066test -z "$ac_objext" && ac_objext=o 7067 7068for cc_temp in $compiler""; do 7069 case $cc_temp in 7070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7072 \-*) ;; 7073 *) break;; 7074 esac 7075done 7076cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7077 7078 7079# Only perform the check for file, if the check method requires it 7080test -z "$MAGIC_CMD" && MAGIC_CMD=file 7081case $deplibs_check_method in 7082file_magic*) 7083 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7085$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7086if ${lt_cv_path_MAGIC_CMD+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 case $MAGIC_CMD in 7090[\\/*] | ?:[\\/]*) 7091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7092 ;; 7093*) 7094 lt_save_MAGIC_CMD="$MAGIC_CMD" 7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7097 for ac_dir in $ac_dummy; do 7098 IFS="$lt_save_ifs" 7099 test -z "$ac_dir" && ac_dir=. 7100 if test -f $ac_dir/${ac_tool_prefix}file; then 7101 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7102 if test -n "$file_magic_test_file"; then 7103 case $deplibs_check_method in 7104 "file_magic "*) 7105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7108 $EGREP "$file_magic_regex" > /dev/null; then 7109 : 7110 else 7111 cat <<_LT_EOF 1>&2 7112 7113*** Warning: the command libtool uses to detect shared libraries, 7114*** $file_magic_cmd, produces output that libtool cannot recognize. 7115*** The result is that libtool may fail to recognize shared libraries 7116*** as such. This will affect the creation of libtool libraries that 7117*** depend on shared libraries, but programs linked with such libtool 7118*** libraries will work regardless of this problem. Nevertheless, you 7119*** may want to report the problem to your system manager and/or to 7120*** bug-libtool@gnu.org 7121 7122_LT_EOF 7123 fi ;; 7124 esac 7125 fi 7126 break 7127 fi 7128 done 7129 IFS="$lt_save_ifs" 7130 MAGIC_CMD="$lt_save_MAGIC_CMD" 7131 ;; 7132esac 7133fi 7134 7135MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7136if test -n "$MAGIC_CMD"; then 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7138$as_echo "$MAGIC_CMD" >&6; } 7139else 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7141$as_echo "no" >&6; } 7142fi 7143 7144 7145 7146 7147 7148if test -z "$lt_cv_path_MAGIC_CMD"; then 7149 if test -n "$ac_tool_prefix"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7151$as_echo_n "checking for file... " >&6; } 7152if ${lt_cv_path_MAGIC_CMD+:} false; then : 7153 $as_echo_n "(cached) " >&6 7154else 7155 case $MAGIC_CMD in 7156[\\/*] | ?:[\\/]*) 7157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7158 ;; 7159*) 7160 lt_save_MAGIC_CMD="$MAGIC_CMD" 7161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7163 for ac_dir in $ac_dummy; do 7164 IFS="$lt_save_ifs" 7165 test -z "$ac_dir" && ac_dir=. 7166 if test -f $ac_dir/file; then 7167 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7168 if test -n "$file_magic_test_file"; then 7169 case $deplibs_check_method in 7170 "file_magic "*) 7171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7174 $EGREP "$file_magic_regex" > /dev/null; then 7175 : 7176 else 7177 cat <<_LT_EOF 1>&2 7178 7179*** Warning: the command libtool uses to detect shared libraries, 7180*** $file_magic_cmd, produces output that libtool cannot recognize. 7181*** The result is that libtool may fail to recognize shared libraries 7182*** as such. This will affect the creation of libtool libraries that 7183*** depend on shared libraries, but programs linked with such libtool 7184*** libraries will work regardless of this problem. Nevertheless, you 7185*** may want to report the problem to your system manager and/or to 7186*** bug-libtool@gnu.org 7187 7188_LT_EOF 7189 fi ;; 7190 esac 7191 fi 7192 break 7193 fi 7194 done 7195 IFS="$lt_save_ifs" 7196 MAGIC_CMD="$lt_save_MAGIC_CMD" 7197 ;; 7198esac 7199fi 7200 7201MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7202if test -n "$MAGIC_CMD"; then 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7204$as_echo "$MAGIC_CMD" >&6; } 7205else 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7207$as_echo "no" >&6; } 7208fi 7209 7210 7211 else 7212 MAGIC_CMD=: 7213 fi 7214fi 7215 7216 fi 7217 ;; 7218esac 7219 7220# Use C for the default configuration in the libtool script 7221 7222lt_save_CC="$CC" 7223ac_ext=c 7224ac_cpp='$CPP $CPPFLAGS' 7225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7227ac_compiler_gnu=$ac_cv_c_compiler_gnu 7228 7229 7230# Source file extension for C test sources. 7231ac_ext=c 7232 7233# Object file extension for compiled C test sources. 7234objext=o 7235objext=$objext 7236 7237# Code to be used in simple compile tests 7238lt_simple_compile_test_code="int some_variable = 0;" 7239 7240# Code to be used in simple link tests 7241lt_simple_link_test_code='int main(){return(0);}' 7242 7243 7244 7245 7246 7247 7248 7249# If no C compiler was specified, use CC. 7250LTCC=${LTCC-"$CC"} 7251 7252# If no C compiler flags were specified, use CFLAGS. 7253LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7254 7255# Allow CC to be a program name with arguments. 7256compiler=$CC 7257 7258# Save the default compiler, since it gets overwritten when the other 7259# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7260compiler_DEFAULT=$CC 7261 7262# save warnings/boilerplate of simple test code 7263ac_outfile=conftest.$ac_objext 7264echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7265eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7266_lt_compiler_boilerplate=`cat conftest.err` 7267$RM conftest* 7268 7269ac_outfile=conftest.$ac_objext 7270echo "$lt_simple_link_test_code" >conftest.$ac_ext 7271eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7272_lt_linker_boilerplate=`cat conftest.err` 7273$RM -r conftest* 7274 7275 7276if test -n "$compiler"; then 7277 7278lt_prog_compiler_no_builtin_flag= 7279 7280if test "$GCC" = yes; then 7281 case $cc_basename in 7282 nvcc*) 7283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7284 *) 7285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7286 esac 7287 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7289$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7290if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7291 $as_echo_n "(cached) " >&6 7292else 7293 lt_cv_prog_compiler_rtti_exceptions=no 7294 ac_outfile=conftest.$ac_objext 7295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7296 lt_compiler_flag="-fno-rtti -fno-exceptions" 7297 # Insert the option either (1) after the last *FLAGS variable, or 7298 # (2) before a word containing "conftest.", or (3) at the end. 7299 # Note that $ac_compile itself does not contain backslashes and begins 7300 # with a dollar sign (not a hyphen), so the echo should work correctly. 7301 # The option is referenced via a variable to avoid confusing sed. 7302 lt_compile=`echo "$ac_compile" | $SED \ 7303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7305 -e 's:$: $lt_compiler_flag:'` 7306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7307 (eval "$lt_compile" 2>conftest.err) 7308 ac_status=$? 7309 cat conftest.err >&5 7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7311 if (exit $ac_status) && test -s "$ac_outfile"; then 7312 # The compiler can only warn and ignore the option if not recognized 7313 # So say no if there are warnings other than the usual output. 7314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7317 lt_cv_prog_compiler_rtti_exceptions=yes 7318 fi 7319 fi 7320 $RM conftest* 7321 7322fi 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7324$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7325 7326if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7328else 7329 : 7330fi 7331 7332fi 7333 7334 7335 7336 7337 7338 7339 lt_prog_compiler_wl= 7340lt_prog_compiler_pic= 7341lt_prog_compiler_static= 7342 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7344$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7345 7346 if test "$GCC" = yes; then 7347 lt_prog_compiler_wl='-Wl,' 7348 lt_prog_compiler_static='-static' 7349 7350 case $host_os in 7351 aix*) 7352 # All AIX code is PIC. 7353 if test "$host_cpu" = ia64; then 7354 # AIX 5 now supports IA64 processor 7355 lt_prog_compiler_static='-Bstatic' 7356 fi 7357 ;; 7358 7359 amigaos*) 7360 case $host_cpu in 7361 powerpc) 7362 # see comment about AmigaOS4 .so support 7363 lt_prog_compiler_pic='-fPIC' 7364 ;; 7365 m68k) 7366 # FIXME: we need at least 68020 code to build shared libraries, but 7367 # adding the `-m68020' flag to GCC prevents building anything better, 7368 # like `-m68040'. 7369 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7370 ;; 7371 esac 7372 ;; 7373 7374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7375 # PIC is the default for these OSes. 7376 ;; 7377 7378 mingw* | cygwin* | pw32* | os2* | cegcc*) 7379 # This hack is so that the source file can tell whether it is being 7380 # built for inclusion in a dll (and should export symbols for example). 7381 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7382 # (--disable-auto-import) libraries 7383 lt_prog_compiler_pic='-DDLL_EXPORT' 7384 ;; 7385 7386 darwin* | rhapsody*) 7387 # PIC is the default on this platform 7388 # Common symbols not allowed in MH_DYLIB files 7389 lt_prog_compiler_pic='-fno-common' 7390 ;; 7391 7392 haiku*) 7393 # PIC is the default for Haiku. 7394 # The "-static" flag exists, but is broken. 7395 lt_prog_compiler_static= 7396 ;; 7397 7398 hpux*) 7399 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7400 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7401 # sets the default TLS model and affects inlining. 7402 case $host_cpu in 7403 hppa*64*) 7404 # +Z the default 7405 ;; 7406 *) 7407 lt_prog_compiler_pic='-fPIC' 7408 ;; 7409 esac 7410 ;; 7411 7412 interix[3-9]*) 7413 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7414 # Instead, we relocate shared libraries at runtime. 7415 ;; 7416 7417 msdosdjgpp*) 7418 # Just because we use GCC doesn't mean we suddenly get shared libraries 7419 # on systems that don't support them. 7420 lt_prog_compiler_can_build_shared=no 7421 enable_shared=no 7422 ;; 7423 7424 *nto* | *qnx*) 7425 # QNX uses GNU C++, but need to define -shared option too, otherwise 7426 # it will coredump. 7427 lt_prog_compiler_pic='-fPIC -shared' 7428 ;; 7429 7430 sysv4*MP*) 7431 if test -d /usr/nec; then 7432 lt_prog_compiler_pic=-Kconform_pic 7433 fi 7434 ;; 7435 7436 *) 7437 lt_prog_compiler_pic='-fPIC' 7438 ;; 7439 esac 7440 7441 case $cc_basename in 7442 nvcc*) # Cuda Compiler Driver 2.2 7443 lt_prog_compiler_wl='-Xlinker ' 7444 lt_prog_compiler_pic='-Xcompiler -fPIC' 7445 ;; 7446 esac 7447 else 7448 # PORTME Check for flag to pass linker flags through the system compiler. 7449 case $host_os in 7450 aix*) 7451 lt_prog_compiler_wl='-Wl,' 7452 if test "$host_cpu" = ia64; then 7453 # AIX 5 now supports IA64 processor 7454 lt_prog_compiler_static='-Bstatic' 7455 else 7456 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7457 fi 7458 ;; 7459 7460 mingw* | cygwin* | pw32* | os2* | cegcc*) 7461 # This hack is so that the source file can tell whether it is being 7462 # built for inclusion in a dll (and should export symbols for example). 7463 lt_prog_compiler_pic='-DDLL_EXPORT' 7464 ;; 7465 7466 hpux9* | hpux10* | hpux11*) 7467 lt_prog_compiler_wl='-Wl,' 7468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7469 # not for PA HP-UX. 7470 case $host_cpu in 7471 hppa*64*|ia64*) 7472 # +Z the default 7473 ;; 7474 *) 7475 lt_prog_compiler_pic='+Z' 7476 ;; 7477 esac 7478 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7479 lt_prog_compiler_static='${wl}-a ${wl}archive' 7480 ;; 7481 7482 irix5* | irix6* | nonstopux*) 7483 lt_prog_compiler_wl='-Wl,' 7484 # PIC (with -KPIC) is the default. 7485 lt_prog_compiler_static='-non_shared' 7486 ;; 7487 7488 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7489 case $cc_basename in 7490 # old Intel for x86_64 which still supported -KPIC. 7491 ecc*) 7492 lt_prog_compiler_wl='-Wl,' 7493 lt_prog_compiler_pic='-KPIC' 7494 lt_prog_compiler_static='-static' 7495 ;; 7496 # icc used to be incompatible with GCC. 7497 # ICC 10 doesn't accept -KPIC any more. 7498 icc* | ifort*) 7499 lt_prog_compiler_wl='-Wl,' 7500 lt_prog_compiler_pic='-fPIC' 7501 lt_prog_compiler_static='-static' 7502 ;; 7503 # Lahey Fortran 8.1. 7504 lf95*) 7505 lt_prog_compiler_wl='-Wl,' 7506 lt_prog_compiler_pic='--shared' 7507 lt_prog_compiler_static='--static' 7508 ;; 7509 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7510 # Portland Group compilers (*not* the Pentium gcc compiler, 7511 # which looks to be a dead project) 7512 lt_prog_compiler_wl='-Wl,' 7513 lt_prog_compiler_pic='-fpic' 7514 lt_prog_compiler_static='-Bstatic' 7515 ;; 7516 ccc*) 7517 lt_prog_compiler_wl='-Wl,' 7518 # All Alpha code is PIC. 7519 lt_prog_compiler_static='-non_shared' 7520 ;; 7521 xl* | bgxl* | bgf* | mpixl*) 7522 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7523 lt_prog_compiler_wl='-Wl,' 7524 lt_prog_compiler_pic='-qpic' 7525 lt_prog_compiler_static='-qstaticlink' 7526 ;; 7527 *) 7528 case `$CC -V 2>&1 | sed 5q` in 7529 *Sun\ F* | *Sun*Fortran*) 7530 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7531 lt_prog_compiler_pic='-KPIC' 7532 lt_prog_compiler_static='-Bstatic' 7533 lt_prog_compiler_wl='' 7534 ;; 7535 *Sun\ C*) 7536 # Sun C 5.9 7537 lt_prog_compiler_pic='-KPIC' 7538 lt_prog_compiler_static='-Bstatic' 7539 lt_prog_compiler_wl='-Wl,' 7540 ;; 7541 esac 7542 ;; 7543 esac 7544 ;; 7545 7546 newsos6) 7547 lt_prog_compiler_pic='-KPIC' 7548 lt_prog_compiler_static='-Bstatic' 7549 ;; 7550 7551 *nto* | *qnx*) 7552 # QNX uses GNU C++, but need to define -shared option too, otherwise 7553 # it will coredump. 7554 lt_prog_compiler_pic='-fPIC -shared' 7555 ;; 7556 7557 osf3* | osf4* | osf5*) 7558 lt_prog_compiler_wl='-Wl,' 7559 # All OSF/1 code is PIC. 7560 lt_prog_compiler_static='-non_shared' 7561 ;; 7562 7563 rdos*) 7564 lt_prog_compiler_static='-non_shared' 7565 ;; 7566 7567 solaris*) 7568 lt_prog_compiler_pic='-KPIC' 7569 lt_prog_compiler_static='-Bstatic' 7570 case $cc_basename in 7571 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7572 lt_prog_compiler_wl='-Qoption ld ';; 7573 *) 7574 lt_prog_compiler_wl='-Wl,';; 7575 esac 7576 ;; 7577 7578 sunos4*) 7579 lt_prog_compiler_wl='-Qoption ld ' 7580 lt_prog_compiler_pic='-PIC' 7581 lt_prog_compiler_static='-Bstatic' 7582 ;; 7583 7584 sysv4 | sysv4.2uw2* | sysv4.3*) 7585 lt_prog_compiler_wl='-Wl,' 7586 lt_prog_compiler_pic='-KPIC' 7587 lt_prog_compiler_static='-Bstatic' 7588 ;; 7589 7590 sysv4*MP*) 7591 if test -d /usr/nec ;then 7592 lt_prog_compiler_pic='-Kconform_pic' 7593 lt_prog_compiler_static='-Bstatic' 7594 fi 7595 ;; 7596 7597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7598 lt_prog_compiler_wl='-Wl,' 7599 lt_prog_compiler_pic='-KPIC' 7600 lt_prog_compiler_static='-Bstatic' 7601 ;; 7602 7603 unicos*) 7604 lt_prog_compiler_wl='-Wl,' 7605 lt_prog_compiler_can_build_shared=no 7606 ;; 7607 7608 uts4*) 7609 lt_prog_compiler_pic='-pic' 7610 lt_prog_compiler_static='-Bstatic' 7611 ;; 7612 7613 *) 7614 lt_prog_compiler_can_build_shared=no 7615 ;; 7616 esac 7617 fi 7618 7619case $host_os in 7620 # For platforms which do not support PIC, -DPIC is meaningless: 7621 *djgpp*) 7622 lt_prog_compiler_pic= 7623 ;; 7624 *) 7625 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7626 ;; 7627esac 7628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7629$as_echo "$lt_prog_compiler_pic" >&6; } 7630 7631 7632 7633 7634 7635 7636# 7637# Check to make sure the PIC flag actually works. 7638# 7639if test -n "$lt_prog_compiler_pic"; then 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7641$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7642if ${lt_cv_prog_compiler_pic_works+:} false; then : 7643 $as_echo_n "(cached) " >&6 7644else 7645 lt_cv_prog_compiler_pic_works=no 7646 ac_outfile=conftest.$ac_objext 7647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7649 # Insert the option either (1) after the last *FLAGS variable, or 7650 # (2) before a word containing "conftest.", or (3) at the end. 7651 # Note that $ac_compile itself does not contain backslashes and begins 7652 # with a dollar sign (not a hyphen), so the echo should work correctly. 7653 # The option is referenced via a variable to avoid confusing sed. 7654 lt_compile=`echo "$ac_compile" | $SED \ 7655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7657 -e 's:$: $lt_compiler_flag:'` 7658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7659 (eval "$lt_compile" 2>conftest.err) 7660 ac_status=$? 7661 cat conftest.err >&5 7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7663 if (exit $ac_status) && test -s "$ac_outfile"; then 7664 # The compiler can only warn and ignore the option if not recognized 7665 # So say no if there are warnings other than the usual output. 7666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7669 lt_cv_prog_compiler_pic_works=yes 7670 fi 7671 fi 7672 $RM conftest* 7673 7674fi 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7676$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7677 7678if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7679 case $lt_prog_compiler_pic in 7680 "" | " "*) ;; 7681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7682 esac 7683else 7684 lt_prog_compiler_pic= 7685 lt_prog_compiler_can_build_shared=no 7686fi 7687 7688fi 7689 7690 7691 7692 7693 7694 7695# 7696# Check to make sure the static flag actually works. 7697# 7698wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7700$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7701if ${lt_cv_prog_compiler_static_works+:} false; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 lt_cv_prog_compiler_static_works=no 7705 save_LDFLAGS="$LDFLAGS" 7706 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7707 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7709 # The linker can only warn and ignore the option if not recognized 7710 # So say no if there are warnings 7711 if test -s conftest.err; then 7712 # Append any errors to the config.log. 7713 cat conftest.err 1>&5 7714 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7716 if diff conftest.exp conftest.er2 >/dev/null; then 7717 lt_cv_prog_compiler_static_works=yes 7718 fi 7719 else 7720 lt_cv_prog_compiler_static_works=yes 7721 fi 7722 fi 7723 $RM -r conftest* 7724 LDFLAGS="$save_LDFLAGS" 7725 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7728$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7729 7730if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7731 : 7732else 7733 lt_prog_compiler_static= 7734fi 7735 7736 7737 7738 7739 7740 7741 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7743$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7744if ${lt_cv_prog_compiler_c_o+:} false; then : 7745 $as_echo_n "(cached) " >&6 7746else 7747 lt_cv_prog_compiler_c_o=no 7748 $RM -r conftest 2>/dev/null 7749 mkdir conftest 7750 cd conftest 7751 mkdir out 7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7753 7754 lt_compiler_flag="-o out/conftest2.$ac_objext" 7755 # Insert the option either (1) after the last *FLAGS variable, or 7756 # (2) before a word containing "conftest.", or (3) at the end. 7757 # Note that $ac_compile itself does not contain backslashes and begins 7758 # with a dollar sign (not a hyphen), so the echo should work correctly. 7759 lt_compile=`echo "$ac_compile" | $SED \ 7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7762 -e 's:$: $lt_compiler_flag:'` 7763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7764 (eval "$lt_compile" 2>out/conftest.err) 7765 ac_status=$? 7766 cat out/conftest.err >&5 7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7768 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7769 then 7770 # The compiler can only warn and ignore the option if not recognized 7771 # So say no if there are warnings 7772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7775 lt_cv_prog_compiler_c_o=yes 7776 fi 7777 fi 7778 chmod u+w . 2>&5 7779 $RM conftest* 7780 # SGI C++ compiler will create directory out/ii_files/ for 7781 # template instantiation 7782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7783 $RM out/* && rmdir out 7784 cd .. 7785 $RM -r conftest 7786 $RM conftest* 7787 7788fi 7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7790$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7791 7792 7793 7794 7795 7796 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7799if ${lt_cv_prog_compiler_c_o+:} false; then : 7800 $as_echo_n "(cached) " >&6 7801else 7802 lt_cv_prog_compiler_c_o=no 7803 $RM -r conftest 2>/dev/null 7804 mkdir conftest 7805 cd conftest 7806 mkdir out 7807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7808 7809 lt_compiler_flag="-o out/conftest2.$ac_objext" 7810 # Insert the option either (1) after the last *FLAGS variable, or 7811 # (2) before a word containing "conftest.", or (3) at the end. 7812 # Note that $ac_compile itself does not contain backslashes and begins 7813 # with a dollar sign (not a hyphen), so the echo should work correctly. 7814 lt_compile=`echo "$ac_compile" | $SED \ 7815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7817 -e 's:$: $lt_compiler_flag:'` 7818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7819 (eval "$lt_compile" 2>out/conftest.err) 7820 ac_status=$? 7821 cat out/conftest.err >&5 7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7823 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7824 then 7825 # The compiler can only warn and ignore the option if not recognized 7826 # So say no if there are warnings 7827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7830 lt_cv_prog_compiler_c_o=yes 7831 fi 7832 fi 7833 chmod u+w . 2>&5 7834 $RM conftest* 7835 # SGI C++ compiler will create directory out/ii_files/ for 7836 # template instantiation 7837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7838 $RM out/* && rmdir out 7839 cd .. 7840 $RM -r conftest 7841 $RM conftest* 7842 7843fi 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7845$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7846 7847 7848 7849 7850hard_links="nottested" 7851if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7852 # do not overwrite the value of need_locks provided by the user 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7854$as_echo_n "checking if we can lock with hard links... " >&6; } 7855 hard_links=yes 7856 $RM conftest* 7857 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7858 touch conftest.a 7859 ln conftest.a conftest.b 2>&5 || hard_links=no 7860 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7862$as_echo "$hard_links" >&6; } 7863 if test "$hard_links" = no; then 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7865$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7866 need_locks=warn 7867 fi 7868else 7869 need_locks=no 7870fi 7871 7872 7873 7874 7875 7876 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7878$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7879 7880 runpath_var= 7881 allow_undefined_flag= 7882 always_export_symbols=no 7883 archive_cmds= 7884 archive_expsym_cmds= 7885 compiler_needs_object=no 7886 enable_shared_with_static_runtimes=no 7887 export_dynamic_flag_spec= 7888 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7889 hardcode_automatic=no 7890 hardcode_direct=no 7891 hardcode_direct_absolute=no 7892 hardcode_libdir_flag_spec= 7893 hardcode_libdir_flag_spec_ld= 7894 hardcode_libdir_separator= 7895 hardcode_minus_L=no 7896 hardcode_shlibpath_var=unsupported 7897 inherit_rpath=no 7898 link_all_deplibs=unknown 7899 module_cmds= 7900 module_expsym_cmds= 7901 old_archive_from_new_cmds= 7902 old_archive_from_expsyms_cmds= 7903 thread_safe_flag_spec= 7904 whole_archive_flag_spec= 7905 # include_expsyms should be a list of space-separated symbols to be *always* 7906 # included in the symbol list 7907 include_expsyms= 7908 # exclude_expsyms can be an extended regexp of symbols to exclude 7909 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7911 # as well as any symbol that contains `d'. 7912 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7914 # platforms (ab)use it in PIC code, but their linkers get confused if 7915 # the symbol is explicitly referenced. Since portable code cannot 7916 # rely on this symbol name, it's probably fine to never include it in 7917 # preloaded symbol tables. 7918 # Exclude shared library initialization/finalization symbols. 7919 extract_expsyms_cmds= 7920 7921 case $host_os in 7922 cygwin* | mingw* | pw32* | cegcc*) 7923 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7924 # When not using gcc, we currently assume that we are using 7925 # Microsoft Visual C++. 7926 if test "$GCC" != yes; then 7927 with_gnu_ld=no 7928 fi 7929 ;; 7930 interix*) 7931 # we just hope/assume this is gcc and not c89 (= MSVC++) 7932 with_gnu_ld=yes 7933 ;; 7934 openbsd*) 7935 with_gnu_ld=no 7936 ;; 7937 esac 7938 7939 ld_shlibs=yes 7940 7941 # On some targets, GNU ld is compatible enough with the native linker 7942 # that we're better off using the native interface for both. 7943 lt_use_gnu_ld_interface=no 7944 if test "$with_gnu_ld" = yes; then 7945 case $host_os in 7946 aix*) 7947 # The AIX port of GNU ld has always aspired to compatibility 7948 # with the native linker. However, as the warning in the GNU ld 7949 # block says, versions before 2.19.5* couldn't really create working 7950 # shared libraries, regardless of the interface used. 7951 case `$LD -v 2>&1` in 7952 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 7953 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 7954 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 7955 *) 7956 lt_use_gnu_ld_interface=yes 7957 ;; 7958 esac 7959 ;; 7960 *) 7961 lt_use_gnu_ld_interface=yes 7962 ;; 7963 esac 7964 fi 7965 7966 if test "$lt_use_gnu_ld_interface" = yes; then 7967 # If archive_cmds runs LD, not CC, wlarc should be empty 7968 wlarc='${wl}' 7969 7970 # Set some defaults for GNU ld with shared library support. These 7971 # are reset later if shared libraries are not supported. Putting them 7972 # here allows them to be overridden if necessary. 7973 runpath_var=LD_RUN_PATH 7974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7975 export_dynamic_flag_spec='${wl}--export-dynamic' 7976 # ancient GNU ld didn't support --whole-archive et. al. 7977 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7978 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7979 else 7980 whole_archive_flag_spec= 7981 fi 7982 supports_anon_versioning=no 7983 case `$LD -v 2>&1` in 7984 *GNU\ gold*) supports_anon_versioning=yes ;; 7985 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7986 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7987 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7988 *\ 2.11.*) ;; # other 2.11 versions 7989 *) supports_anon_versioning=yes ;; 7990 esac 7991 7992 # See if GNU ld supports shared libraries. 7993 case $host_os in 7994 aix[3-9]*) 7995 # On AIX/PPC, the GNU linker is very broken 7996 if test "$host_cpu" != ia64; then 7997 ld_shlibs=no 7998 cat <<_LT_EOF 1>&2 7999 8000*** Warning: the GNU linker, at least up to release 2.19, is reported 8001*** to be unable to reliably create shared libraries on AIX. 8002*** Therefore, libtool is disabling shared libraries support. If you 8003*** really care for shared libraries, you may want to install binutils 8004*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8005*** You will then need to restart the configuration process. 8006 8007_LT_EOF 8008 fi 8009 ;; 8010 8011 amigaos*) 8012 case $host_cpu in 8013 powerpc) 8014 # see comment about AmigaOS4 .so support 8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8016 archive_expsym_cmds='' 8017 ;; 8018 m68k) 8019 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)' 8020 hardcode_libdir_flag_spec='-L$libdir' 8021 hardcode_minus_L=yes 8022 ;; 8023 esac 8024 ;; 8025 8026 beos*) 8027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8028 allow_undefined_flag=unsupported 8029 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8030 # support --undefined. This deserves some investigation. FIXME 8031 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8032 else 8033 ld_shlibs=no 8034 fi 8035 ;; 8036 8037 cygwin* | mingw* | pw32* | cegcc*) 8038 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8039 # as there is no search path for DLLs. 8040 hardcode_libdir_flag_spec='-L$libdir' 8041 export_dynamic_flag_spec='${wl}--export-all-symbols' 8042 allow_undefined_flag=unsupported 8043 always_export_symbols=no 8044 enable_shared_with_static_runtimes=yes 8045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8046 8047 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8049 # If the export-symbols file already is a .def file (1st line 8050 # is EXPORTS), use it as is; otherwise, prepend... 8051 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8052 cp $export_symbols $output_objdir/$soname.def; 8053 else 8054 echo EXPORTS > $output_objdir/$soname.def; 8055 cat $export_symbols >> $output_objdir/$soname.def; 8056 fi~ 8057 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8058 else 8059 ld_shlibs=no 8060 fi 8061 ;; 8062 8063 haiku*) 8064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8065 link_all_deplibs=yes 8066 ;; 8067 8068 interix[3-9]*) 8069 hardcode_direct=no 8070 hardcode_shlibpath_var=no 8071 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8072 export_dynamic_flag_spec='${wl}-E' 8073 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8074 # Instead, shared libraries are loaded at an image base (0x10000000 by 8075 # default) and relocated if they conflict, which is a slow very memory 8076 # consuming and fragmenting process. To avoid this, we pick a random, 8077 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8078 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8079 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8080 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' 8081 ;; 8082 8083 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8084 tmp_diet=no 8085 if test "$host_os" = linux-dietlibc; then 8086 case $cc_basename in 8087 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8088 esac 8089 fi 8090 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8091 && test "$tmp_diet" = no 8092 then 8093 tmp_addflag= 8094 tmp_sharedflag='-shared' 8095 case $cc_basename,$host_cpu in 8096 pgcc*) # Portland Group C compiler 8097 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8098 tmp_addflag=' $pic_flag' 8099 ;; 8100 pgf77* | pgf90* | pgf95* | pgfortran*) 8101 # Portland Group f77 and f90 compilers 8102 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8103 tmp_addflag=' $pic_flag -Mnomain' ;; 8104 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8105 tmp_addflag=' -i_dynamic' ;; 8106 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8107 tmp_addflag=' -i_dynamic -nofor_main' ;; 8108 ifc* | ifort*) # Intel Fortran compiler 8109 tmp_addflag=' -nofor_main' ;; 8110 lf95*) # Lahey Fortran 8.1 8111 whole_archive_flag_spec= 8112 tmp_sharedflag='--shared' ;; 8113 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8114 tmp_sharedflag='-qmkshrobj' 8115 tmp_addflag= ;; 8116 nvcc*) # Cuda Compiler Driver 2.2 8117 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8118 compiler_needs_object=yes 8119 ;; 8120 esac 8121 case `$CC -V 2>&1 | sed 5q` in 8122 *Sun\ C*) # Sun C 5.9 8123 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8124 compiler_needs_object=yes 8125 tmp_sharedflag='-G' ;; 8126 *Sun\ F*) # Sun Fortran 8.3 8127 tmp_sharedflag='-G' ;; 8128 esac 8129 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8130 8131 if test "x$supports_anon_versioning" = xyes; then 8132 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8134 echo "local: *; };" >> $output_objdir/$libname.ver~ 8135 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8136 fi 8137 8138 case $cc_basename in 8139 xlf* | bgf* | bgxlf* | mpixlf*) 8140 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8141 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8142 hardcode_libdir_flag_spec= 8143 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8144 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8145 if test "x$supports_anon_versioning" = xyes; then 8146 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8148 echo "local: *; };" >> $output_objdir/$libname.ver~ 8149 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8150 fi 8151 ;; 8152 esac 8153 else 8154 ld_shlibs=no 8155 fi 8156 ;; 8157 8158 netbsd*) 8159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8160 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8161 wlarc= 8162 else 8163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8165 fi 8166 ;; 8167 8168 solaris*) 8169 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8170 ld_shlibs=no 8171 cat <<_LT_EOF 1>&2 8172 8173*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8174*** create shared libraries on Solaris systems. Therefore, libtool 8175*** is disabling shared libraries support. We urge you to upgrade GNU 8176*** binutils to release 2.9.1 or newer. Another option is to modify 8177*** your PATH or compiler configuration so that the native linker is 8178*** used, and then restart. 8179 8180_LT_EOF 8181 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8184 else 8185 ld_shlibs=no 8186 fi 8187 ;; 8188 8189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8190 case `$LD -v 2>&1` in 8191 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8192 ld_shlibs=no 8193 cat <<_LT_EOF 1>&2 8194 8195*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8196*** reliably create shared libraries on SCO systems. Therefore, libtool 8197*** is disabling shared libraries support. We urge you to upgrade GNU 8198*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8199*** your PATH or compiler configuration so that the native linker is 8200*** used, and then restart. 8201 8202_LT_EOF 8203 ;; 8204 *) 8205 # For security reasons, it is highly recommended that you always 8206 # use absolute paths for naming shared libraries, and exclude the 8207 # DT_RUNPATH tag from executables and libraries. But doing so 8208 # requires that you compile everything twice, which is a pain. 8209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8213 else 8214 ld_shlibs=no 8215 fi 8216 ;; 8217 esac 8218 ;; 8219 8220 sunos4*) 8221 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8222 wlarc= 8223 hardcode_direct=yes 8224 hardcode_shlibpath_var=no 8225 ;; 8226 8227 *) 8228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8231 else 8232 ld_shlibs=no 8233 fi 8234 ;; 8235 esac 8236 8237 if test "$ld_shlibs" = no; then 8238 runpath_var= 8239 hardcode_libdir_flag_spec= 8240 export_dynamic_flag_spec= 8241 whole_archive_flag_spec= 8242 fi 8243 else 8244 # PORTME fill in a description of your system's linker (not GNU ld) 8245 case $host_os in 8246 aix3*) 8247 allow_undefined_flag=unsupported 8248 always_export_symbols=yes 8249 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' 8250 # Note: this linker hardcodes the directories in LIBPATH if there 8251 # are no directories specified by -L. 8252 hardcode_minus_L=yes 8253 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8254 # Neither direct hardcoding nor static linking is supported with a 8255 # broken collect2. 8256 hardcode_direct=unsupported 8257 fi 8258 ;; 8259 8260 aix[4-9]*) 8261 if test "$host_cpu" = ia64; then 8262 # On IA64, the linker does run time linking by default, so we don't 8263 # have to do anything special. 8264 aix_use_runtimelinking=no 8265 exp_sym_flag='-Bexport' 8266 no_entry_flag="" 8267 else 8268 # If we're using GNU nm, then we don't want the "-C" option. 8269 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8270 # Also, AIX nm treats weak defined symbols like other global 8271 # defined symbols, whereas GNU nm marks them as "W". 8272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8273 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8274 else 8275 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' 8276 fi 8277 aix_use_runtimelinking=no 8278 8279 # Test if we are trying to use run time linking or normal 8280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8281 # need to do runtime linking. 8282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8283 for ld_flag in $LDFLAGS; do 8284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8285 aix_use_runtimelinking=yes 8286 break 8287 fi 8288 done 8289 ;; 8290 esac 8291 8292 exp_sym_flag='-bexport' 8293 no_entry_flag='-bnoentry' 8294 fi 8295 8296 # When large executables or shared objects are built, AIX ld can 8297 # have problems creating the table of contents. If linking a library 8298 # or program results in "error TOC overflow" add -mminimal-toc to 8299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8301 8302 archive_cmds='' 8303 hardcode_direct=yes 8304 hardcode_direct_absolute=yes 8305 hardcode_libdir_separator=':' 8306 link_all_deplibs=yes 8307 file_list_spec='${wl}-f,' 8308 8309 if test "$GCC" = yes; then 8310 case $host_os in aix4.[012]|aix4.[012].*) 8311 # We only want to do this on AIX 4.2 and lower, the check 8312 # below for broken collect2 doesn't work under 4.3+ 8313 collect2name=`${CC} -print-prog-name=collect2` 8314 if test -f "$collect2name" && 8315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8316 then 8317 # We have reworked collect2 8318 : 8319 else 8320 # We have old collect2 8321 hardcode_direct=unsupported 8322 # It fails to find uninstalled libraries when the uninstalled 8323 # path is not listed in the libpath. Setting hardcode_minus_L 8324 # to unsupported forces relinking 8325 hardcode_minus_L=yes 8326 hardcode_libdir_flag_spec='-L$libdir' 8327 hardcode_libdir_separator= 8328 fi 8329 ;; 8330 esac 8331 shared_flag='-shared' 8332 if test "$aix_use_runtimelinking" = yes; then 8333 shared_flag="$shared_flag "'${wl}-G' 8334 fi 8335 else 8336 # not using gcc 8337 if test "$host_cpu" = ia64; then 8338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8339 # chokes on -Wl,-G. The following line is correct: 8340 shared_flag='-G' 8341 else 8342 if test "$aix_use_runtimelinking" = yes; then 8343 shared_flag='${wl}-G' 8344 else 8345 shared_flag='${wl}-bM:SRE' 8346 fi 8347 fi 8348 fi 8349 8350 export_dynamic_flag_spec='${wl}-bexpall' 8351 # It seems that -bexpall does not export symbols beginning with 8352 # underscore (_), so it is better to generate a list of symbols to export. 8353 always_export_symbols=yes 8354 if test "$aix_use_runtimelinking" = yes; then 8355 # Warning - without using the other runtime loading flags (-brtl), 8356 # -berok will link without error, but may produce a broken library. 8357 allow_undefined_flag='-berok' 8358 # Determine the default libpath from the value encoded in an 8359 # empty executable. 8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8361/* end confdefs.h. */ 8362 8363int 8364main () 8365{ 8366 8367 ; 8368 return 0; 8369} 8370_ACEOF 8371if ac_fn_c_try_link "$LINENO"; then : 8372 8373lt_aix_libpath_sed=' 8374 /Import File Strings/,/^$/ { 8375 /^0/ { 8376 s/^0 *\(.*\)$/\1/ 8377 p 8378 } 8379 }' 8380aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8381# Check for a 64-bit object if we didn't find anything. 8382if test -z "$aix_libpath"; then 8383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8384fi 8385fi 8386rm -f core conftest.err conftest.$ac_objext \ 8387 conftest$ac_exeext conftest.$ac_ext 8388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8389 8390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8391 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8392 else 8393 if test "$host_cpu" = ia64; then 8394 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8395 allow_undefined_flag="-z nodefs" 8396 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" 8397 else 8398 # Determine the default libpath from the value encoded in an 8399 # empty executable. 8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8401/* end confdefs.h. */ 8402 8403int 8404main () 8405{ 8406 8407 ; 8408 return 0; 8409} 8410_ACEOF 8411if ac_fn_c_try_link "$LINENO"; then : 8412 8413lt_aix_libpath_sed=' 8414 /Import File Strings/,/^$/ { 8415 /^0/ { 8416 s/^0 *\(.*\)$/\1/ 8417 p 8418 } 8419 }' 8420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8421# Check for a 64-bit object if we didn't find anything. 8422if test -z "$aix_libpath"; then 8423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8424fi 8425fi 8426rm -f core conftest.err conftest.$ac_objext \ 8427 conftest$ac_exeext conftest.$ac_ext 8428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8429 8430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8431 # Warning - without using the other run time loading flags, 8432 # -berok will link without error, but may produce a broken library. 8433 no_undefined_flag=' ${wl}-bernotok' 8434 allow_undefined_flag=' ${wl}-berok' 8435 if test "$with_gnu_ld" = yes; then 8436 # We only use this code for GNU lds that support --whole-archive. 8437 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8438 else 8439 # Exported symbols can be pulled into shared objects from archives 8440 whole_archive_flag_spec='$convenience' 8441 fi 8442 archive_cmds_need_lc=yes 8443 # This is similar to how AIX traditionally builds its shared libraries. 8444 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' 8445 fi 8446 fi 8447 ;; 8448 8449 amigaos*) 8450 case $host_cpu in 8451 powerpc) 8452 # see comment about AmigaOS4 .so support 8453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8454 archive_expsym_cmds='' 8455 ;; 8456 m68k) 8457 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)' 8458 hardcode_libdir_flag_spec='-L$libdir' 8459 hardcode_minus_L=yes 8460 ;; 8461 esac 8462 ;; 8463 8464 bsdi[45]*) 8465 export_dynamic_flag_spec=-rdynamic 8466 ;; 8467 8468 cygwin* | mingw* | pw32* | cegcc*) 8469 # When not using gcc, we currently assume that we are using 8470 # Microsoft Visual C++. 8471 # hardcode_libdir_flag_spec is actually meaningless, as there is 8472 # no search path for DLLs. 8473 hardcode_libdir_flag_spec=' ' 8474 allow_undefined_flag=unsupported 8475 # Tell ltmain to make .lib files, not .a files. 8476 libext=lib 8477 # Tell ltmain to make .dll files, not .so files. 8478 shrext_cmds=".dll" 8479 # FIXME: Setting linknames here is a bad hack. 8480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8481 # The linker will automatically build a .lib file if we build a DLL. 8482 old_archive_from_new_cmds='true' 8483 # FIXME: Should let the user specify the lib program. 8484 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8485 fix_srcfile_path='`cygpath -w "$srcfile"`' 8486 enable_shared_with_static_runtimes=yes 8487 ;; 8488 8489 darwin* | rhapsody*) 8490 8491 8492 archive_cmds_need_lc=no 8493 hardcode_direct=no 8494 hardcode_automatic=yes 8495 hardcode_shlibpath_var=unsupported 8496 if test "$lt_cv_ld_force_load" = "yes"; then 8497 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 8498 else 8499 whole_archive_flag_spec='' 8500 fi 8501 link_all_deplibs=yes 8502 allow_undefined_flag="$_lt_dar_allow_undefined" 8503 case $cc_basename in 8504 ifort*) _lt_dar_can_shared=yes ;; 8505 *) _lt_dar_can_shared=$GCC ;; 8506 esac 8507 if test "$_lt_dar_can_shared" = "yes"; then 8508 output_verbose_link_cmd=func_echo_all 8509 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8510 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8511 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}" 8512 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}" 8513 8514 else 8515 ld_shlibs=no 8516 fi 8517 8518 ;; 8519 8520 dgux*) 8521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8522 hardcode_libdir_flag_spec='-L$libdir' 8523 hardcode_shlibpath_var=no 8524 ;; 8525 8526 freebsd1*) 8527 ld_shlibs=no 8528 ;; 8529 8530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8531 # support. Future versions do this automatically, but an explicit c++rt0.o 8532 # does not break anything, and helps significantly (at the cost of a little 8533 # extra space). 8534 freebsd2.2*) 8535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8536 hardcode_libdir_flag_spec='-R$libdir' 8537 hardcode_direct=yes 8538 hardcode_shlibpath_var=no 8539 ;; 8540 8541 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8542 freebsd2*) 8543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8544 hardcode_direct=yes 8545 hardcode_minus_L=yes 8546 hardcode_shlibpath_var=no 8547 ;; 8548 8549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8550 freebsd* | dragonfly*) 8551 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8552 hardcode_libdir_flag_spec='-R$libdir' 8553 hardcode_direct=yes 8554 hardcode_shlibpath_var=no 8555 ;; 8556 8557 hpux9*) 8558 if test "$GCC" = yes; then 8559 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' 8560 else 8561 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' 8562 fi 8563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8564 hardcode_libdir_separator=: 8565 hardcode_direct=yes 8566 8567 # hardcode_minus_L: Not really in the search PATH, 8568 # but as the default location of the library. 8569 hardcode_minus_L=yes 8570 export_dynamic_flag_spec='${wl}-E' 8571 ;; 8572 8573 hpux10*) 8574 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8575 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8576 else 8577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8578 fi 8579 if test "$with_gnu_ld" = no; then 8580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8581 hardcode_libdir_flag_spec_ld='+b $libdir' 8582 hardcode_libdir_separator=: 8583 hardcode_direct=yes 8584 hardcode_direct_absolute=yes 8585 export_dynamic_flag_spec='${wl}-E' 8586 # hardcode_minus_L: Not really in the search PATH, 8587 # but as the default location of the library. 8588 hardcode_minus_L=yes 8589 fi 8590 ;; 8591 8592 hpux11*) 8593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8594 case $host_cpu in 8595 hppa*64*) 8596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8597 ;; 8598 ia64*) 8599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8600 ;; 8601 *) 8602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8603 ;; 8604 esac 8605 else 8606 case $host_cpu in 8607 hppa*64*) 8608 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8609 ;; 8610 ia64*) 8611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8612 ;; 8613 *) 8614 8615 # Older versions of the 11.00 compiler do not understand -b yet 8616 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8618$as_echo_n "checking if $CC understands -b... " >&6; } 8619if ${lt_cv_prog_compiler__b+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 lt_cv_prog_compiler__b=no 8623 save_LDFLAGS="$LDFLAGS" 8624 LDFLAGS="$LDFLAGS -b" 8625 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8627 # The linker can only warn and ignore the option if not recognized 8628 # So say no if there are warnings 8629 if test -s conftest.err; then 8630 # Append any errors to the config.log. 8631 cat conftest.err 1>&5 8632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8634 if diff conftest.exp conftest.er2 >/dev/null; then 8635 lt_cv_prog_compiler__b=yes 8636 fi 8637 else 8638 lt_cv_prog_compiler__b=yes 8639 fi 8640 fi 8641 $RM -r conftest* 8642 LDFLAGS="$save_LDFLAGS" 8643 8644fi 8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8646$as_echo "$lt_cv_prog_compiler__b" >&6; } 8647 8648if test x"$lt_cv_prog_compiler__b" = xyes; then 8649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8650else 8651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8652fi 8653 8654 ;; 8655 esac 8656 fi 8657 if test "$with_gnu_ld" = no; then 8658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8659 hardcode_libdir_separator=: 8660 8661 case $host_cpu in 8662 hppa*64*|ia64*) 8663 hardcode_direct=no 8664 hardcode_shlibpath_var=no 8665 ;; 8666 *) 8667 hardcode_direct=yes 8668 hardcode_direct_absolute=yes 8669 export_dynamic_flag_spec='${wl}-E' 8670 8671 # hardcode_minus_L: Not really in the search PATH, 8672 # but as the default location of the library. 8673 hardcode_minus_L=yes 8674 ;; 8675 esac 8676 fi 8677 ;; 8678 8679 irix5* | irix6* | nonstopux*) 8680 if test "$GCC" = yes; then 8681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8682 # Try to use the -exported_symbol ld option, if it does not 8683 # work, assume that -exports_file does not work either and 8684 # implicitly export all symbols. 8685 save_LDFLAGS="$LDFLAGS" 8686 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8688/* end confdefs.h. */ 8689int foo(void) {} 8690_ACEOF 8691if ac_fn_c_try_link "$LINENO"; then : 8692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8693 8694fi 8695rm -f core conftest.err conftest.$ac_objext \ 8696 conftest$ac_exeext conftest.$ac_ext 8697 LDFLAGS="$save_LDFLAGS" 8698 else 8699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8701 fi 8702 archive_cmds_need_lc='no' 8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8704 hardcode_libdir_separator=: 8705 inherit_rpath=yes 8706 link_all_deplibs=yes 8707 ;; 8708 8709 netbsd*) 8710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8712 else 8713 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8714 fi 8715 hardcode_libdir_flag_spec='-R$libdir' 8716 hardcode_direct=yes 8717 hardcode_shlibpath_var=no 8718 ;; 8719 8720 newsos6) 8721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8722 hardcode_direct=yes 8723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8724 hardcode_libdir_separator=: 8725 hardcode_shlibpath_var=no 8726 ;; 8727 8728 *nto* | *qnx*) 8729 ;; 8730 8731 openbsd*) 8732 if test -f /usr/libexec/ld.so; then 8733 hardcode_direct=yes 8734 hardcode_shlibpath_var=no 8735 hardcode_direct_absolute=yes 8736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8738 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8740 export_dynamic_flag_spec='${wl}-E' 8741 else 8742 case $host_os in 8743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8745 hardcode_libdir_flag_spec='-R$libdir' 8746 ;; 8747 *) 8748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8750 ;; 8751 esac 8752 fi 8753 else 8754 ld_shlibs=no 8755 fi 8756 ;; 8757 8758 os2*) 8759 hardcode_libdir_flag_spec='-L$libdir' 8760 hardcode_minus_L=yes 8761 allow_undefined_flag=unsupported 8762 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' 8763 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8764 ;; 8765 8766 osf3*) 8767 if test "$GCC" = yes; then 8768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8769 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8770 else 8771 allow_undefined_flag=' -expect_unresolved \*' 8772 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8773 fi 8774 archive_cmds_need_lc='no' 8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8776 hardcode_libdir_separator=: 8777 ;; 8778 8779 osf4* | osf5*) # as osf3* with the addition of -msym flag 8780 if test "$GCC" = yes; then 8781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8782 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8784 else 8785 allow_undefined_flag=' -expect_unresolved \*' 8786 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 8787 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~ 8788 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8789 8790 # Both c and cxx compiler support -rpath directly 8791 hardcode_libdir_flag_spec='-rpath $libdir' 8792 fi 8793 archive_cmds_need_lc='no' 8794 hardcode_libdir_separator=: 8795 ;; 8796 8797 solaris*) 8798 no_undefined_flag=' -z defs' 8799 if test "$GCC" = yes; then 8800 wlarc='${wl}' 8801 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8803 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8804 else 8805 case `$CC -V 2>&1` in 8806 *"Compilers 5.0"*) 8807 wlarc='' 8808 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8811 ;; 8812 *) 8813 wlarc='${wl}' 8814 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8816 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8817 ;; 8818 esac 8819 fi 8820 hardcode_libdir_flag_spec='-R$libdir' 8821 hardcode_shlibpath_var=no 8822 case $host_os in 8823 solaris2.[0-5] | solaris2.[0-5].*) ;; 8824 *) 8825 # The compiler driver will combine and reorder linker options, 8826 # but understands `-z linker_flag'. GCC discards it without `$wl', 8827 # but is careful enough not to reorder. 8828 # Supported since Solaris 2.6 (maybe 2.5.1?) 8829 if test "$GCC" = yes; then 8830 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8831 else 8832 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8833 fi 8834 ;; 8835 esac 8836 link_all_deplibs=yes 8837 ;; 8838 8839 sunos4*) 8840 if test "x$host_vendor" = xsequent; then 8841 # Use $CC to link under sequent, because it throws in some extra .o 8842 # files that make .init and .fini sections work. 8843 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8844 else 8845 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8846 fi 8847 hardcode_libdir_flag_spec='-L$libdir' 8848 hardcode_direct=yes 8849 hardcode_minus_L=yes 8850 hardcode_shlibpath_var=no 8851 ;; 8852 8853 sysv4) 8854 case $host_vendor in 8855 sni) 8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8857 hardcode_direct=yes # is this really true??? 8858 ;; 8859 siemens) 8860 ## LD is ld it makes a PLAMLIB 8861 ## CC just makes a GrossModule. 8862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8863 reload_cmds='$CC -r -o $output$reload_objs' 8864 hardcode_direct=no 8865 ;; 8866 motorola) 8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8868 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8869 ;; 8870 esac 8871 runpath_var='LD_RUN_PATH' 8872 hardcode_shlibpath_var=no 8873 ;; 8874 8875 sysv4.3*) 8876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8877 hardcode_shlibpath_var=no 8878 export_dynamic_flag_spec='-Bexport' 8879 ;; 8880 8881 sysv4*MP*) 8882 if test -d /usr/nec; then 8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8884 hardcode_shlibpath_var=no 8885 runpath_var=LD_RUN_PATH 8886 hardcode_runpath_var=yes 8887 ld_shlibs=yes 8888 fi 8889 ;; 8890 8891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8892 no_undefined_flag='${wl}-z,text' 8893 archive_cmds_need_lc=no 8894 hardcode_shlibpath_var=no 8895 runpath_var='LD_RUN_PATH' 8896 8897 if test "$GCC" = yes; then 8898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8900 else 8901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8903 fi 8904 ;; 8905 8906 sysv5* | sco3.2v5* | sco5v6*) 8907 # Note: We can NOT use -z defs as we might desire, because we do not 8908 # link with -lc, and that would cause any symbols used from libc to 8909 # always be unresolved, which means just about no library would 8910 # ever link correctly. If we're not using GNU ld we use -z text 8911 # though, which does catch some bad symbols but isn't as heavy-handed 8912 # as -z defs. 8913 no_undefined_flag='${wl}-z,text' 8914 allow_undefined_flag='${wl}-z,nodefs' 8915 archive_cmds_need_lc=no 8916 hardcode_shlibpath_var=no 8917 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8918 hardcode_libdir_separator=':' 8919 link_all_deplibs=yes 8920 export_dynamic_flag_spec='${wl}-Bexport' 8921 runpath_var='LD_RUN_PATH' 8922 8923 if test "$GCC" = yes; then 8924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8926 else 8927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8929 fi 8930 ;; 8931 8932 uts4*) 8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8934 hardcode_libdir_flag_spec='-L$libdir' 8935 hardcode_shlibpath_var=no 8936 ;; 8937 8938 *) 8939 ld_shlibs=no 8940 ;; 8941 esac 8942 8943 if test x$host_vendor = xsni; then 8944 case $host in 8945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8946 export_dynamic_flag_spec='${wl}-Blargedynsym' 8947 ;; 8948 esac 8949 fi 8950 fi 8951 8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8953$as_echo "$ld_shlibs" >&6; } 8954test "$ld_shlibs" = no && can_build_shared=no 8955 8956with_gnu_ld=$with_gnu_ld 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972# 8973# Do we need to explicitly link libc? 8974# 8975case "x$archive_cmds_need_lc" in 8976x|xyes) 8977 # Assume -lc should be added 8978 archive_cmds_need_lc=yes 8979 8980 if test "$enable_shared" = yes && test "$GCC" = yes; then 8981 case $archive_cmds in 8982 *'~'*) 8983 # FIXME: we may have to deal with multi-command sequences. 8984 ;; 8985 '$CC '*) 8986 # Test whether the compiler implicitly links with -lc since on some 8987 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8988 # to ld, don't add -lc before -lgcc. 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8990$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8991if ${lt_cv_archive_cmds_need_lc+:} false; then : 8992 $as_echo_n "(cached) " >&6 8993else 8994 $RM conftest* 8995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8996 8997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8998 (eval $ac_compile) 2>&5 8999 ac_status=$? 9000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9001 test $ac_status = 0; } 2>conftest.err; then 9002 soname=conftest 9003 lib=conftest 9004 libobjs=conftest.$ac_objext 9005 deplibs= 9006 wl=$lt_prog_compiler_wl 9007 pic_flag=$lt_prog_compiler_pic 9008 compiler_flags=-v 9009 linker_flags=-v 9010 verstring= 9011 output_objdir=. 9012 libname=conftest 9013 lt_save_allow_undefined_flag=$allow_undefined_flag 9014 allow_undefined_flag= 9015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9016 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9017 ac_status=$? 9018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9019 test $ac_status = 0; } 9020 then 9021 lt_cv_archive_cmds_need_lc=no 9022 else 9023 lt_cv_archive_cmds_need_lc=yes 9024 fi 9025 allow_undefined_flag=$lt_save_allow_undefined_flag 9026 else 9027 cat conftest.err 1>&5 9028 fi 9029 $RM conftest* 9030 9031fi 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9033$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9034 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9035 ;; 9036 esac 9037 fi 9038 ;; 9039esac 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9198$as_echo_n "checking dynamic linker characteristics... " >&6; } 9199 9200if test "$GCC" = yes; then 9201 case $host_os in 9202 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9203 *) lt_awk_arg="/^libraries:/" ;; 9204 esac 9205 case $host_os in 9206 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9207 *) lt_sed_strip_eq="s,=/,/,g" ;; 9208 esac 9209 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9210 case $lt_search_path_spec in 9211 *\;*) 9212 # if the path contains ";" then we assume it to be the separator 9213 # otherwise default to the standard path separator (i.e. ":") - it is 9214 # assumed that no part of a normal pathname contains ";" but that should 9215 # okay in the real world where ";" in dirpaths is itself problematic. 9216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9217 ;; 9218 *) 9219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9220 ;; 9221 esac 9222 # Ok, now we have the path, separated by spaces, we can step through it 9223 # and add multilib dir if necessary. 9224 lt_tmp_lt_search_path_spec= 9225 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9226 for lt_sys_path in $lt_search_path_spec; do 9227 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9229 else 9230 test -d "$lt_sys_path" && \ 9231 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9232 fi 9233 done 9234 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9235BEGIN {RS=" "; FS="/|\n";} { 9236 lt_foo=""; 9237 lt_count=0; 9238 for (lt_i = NF; lt_i > 0; lt_i--) { 9239 if ($lt_i != "" && $lt_i != ".") { 9240 if ($lt_i == "..") { 9241 lt_count++; 9242 } else { 9243 if (lt_count == 0) { 9244 lt_foo="/" $lt_i lt_foo; 9245 } else { 9246 lt_count--; 9247 } 9248 } 9249 } 9250 } 9251 if (lt_foo != "") { lt_freq[lt_foo]++; } 9252 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9253}'` 9254 # AWK program above erroneously prepends '/' to C:/dos/paths 9255 # for these hosts. 9256 case $host_os in 9257 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9258 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9259 esac 9260 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9261else 9262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9263fi 9264library_names_spec= 9265libname_spec='lib$name' 9266soname_spec= 9267shrext_cmds=".so" 9268postinstall_cmds= 9269postuninstall_cmds= 9270finish_cmds= 9271finish_eval= 9272shlibpath_var= 9273shlibpath_overrides_runpath=unknown 9274version_type=none 9275dynamic_linker="$host_os ld.so" 9276sys_lib_dlsearch_path_spec="/lib /usr/lib" 9277need_lib_prefix=unknown 9278hardcode_into_libs=no 9279 9280# when you set need_version to no, make sure it does not cause -set_version 9281# flags to be left without arguments 9282need_version=unknown 9283 9284case $host_os in 9285aix3*) 9286 version_type=linux 9287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9288 shlibpath_var=LIBPATH 9289 9290 # AIX 3 has no versioning support, so we append a major version to the name. 9291 soname_spec='${libname}${release}${shared_ext}$major' 9292 ;; 9293 9294aix[4-9]*) 9295 version_type=linux 9296 need_lib_prefix=no 9297 need_version=no 9298 hardcode_into_libs=yes 9299 if test "$host_cpu" = ia64; then 9300 # AIX 5 supports IA64 9301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9302 shlibpath_var=LD_LIBRARY_PATH 9303 else 9304 # With GCC up to 2.95.x, collect2 would create an import file 9305 # for dependence libraries. The import file would start with 9306 # the line `#! .'. This would cause the generated library to 9307 # depend on `.', always an invalid library. This was fixed in 9308 # development snapshots of GCC prior to 3.0. 9309 case $host_os in 9310 aix4 | aix4.[01] | aix4.[01].*) 9311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9312 echo ' yes ' 9313 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9314 : 9315 else 9316 can_build_shared=no 9317 fi 9318 ;; 9319 esac 9320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9321 # soname into executable. Probably we can add versioning support to 9322 # collect2, so additional links can be useful in future. 9323 if test "$aix_use_runtimelinking" = yes; then 9324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9325 # instead of lib<name>.a to let people know that these are not 9326 # typical AIX shared libraries. 9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9328 else 9329 # We preserve .a as extension for shared libraries through AIX4.2 9330 # and later when we are not doing run time linking. 9331 library_names_spec='${libname}${release}.a $libname.a' 9332 soname_spec='${libname}${release}${shared_ext}$major' 9333 fi 9334 shlibpath_var=LIBPATH 9335 fi 9336 ;; 9337 9338amigaos*) 9339 case $host_cpu in 9340 powerpc) 9341 # Since July 2007 AmigaOS4 officially supports .so libraries. 9342 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9344 ;; 9345 m68k) 9346 library_names_spec='$libname.ixlibrary $libname.a' 9347 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9348 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 9349 ;; 9350 esac 9351 ;; 9352 9353beos*) 9354 library_names_spec='${libname}${shared_ext}' 9355 dynamic_linker="$host_os ld.so" 9356 shlibpath_var=LIBRARY_PATH 9357 ;; 9358 9359bsdi[45]*) 9360 version_type=linux 9361 need_version=no 9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9363 soname_spec='${libname}${release}${shared_ext}$major' 9364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9365 shlibpath_var=LD_LIBRARY_PATH 9366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9368 # the default ld.so.conf also contains /usr/contrib/lib and 9369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9370 # libtool to hard-code these into programs 9371 ;; 9372 9373cygwin* | mingw* | pw32* | cegcc*) 9374 version_type=windows 9375 shrext_cmds=".dll" 9376 need_version=no 9377 need_lib_prefix=no 9378 9379 case $GCC,$host_os in 9380 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9381 library_names_spec='$libname.dll.a' 9382 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9383 postinstall_cmds='base_file=`basename \${file}`~ 9384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9385 dldir=$destdir/`dirname \$dlpath`~ 9386 test -d \$dldir || mkdir -p \$dldir~ 9387 $install_prog $dir/$dlname \$dldir/$dlname~ 9388 chmod a+x \$dldir/$dlname~ 9389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9391 fi' 9392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9393 dlpath=$dir/\$dldll~ 9394 $RM \$dlpath' 9395 shlibpath_overrides_runpath=yes 9396 9397 case $host_os in 9398 cygwin*) 9399 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9401 9402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9403 ;; 9404 mingw* | cegcc*) 9405 # MinGW DLLs use traditional 'lib' prefix 9406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9407 ;; 9408 pw32*) 9409 # pw32 DLLs use 'pw' prefix rather than 'lib' 9410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9411 ;; 9412 esac 9413 ;; 9414 9415 *) 9416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9417 ;; 9418 esac 9419 dynamic_linker='Win32 ld.exe' 9420 # FIXME: first we should search . and the directory the executable is in 9421 shlibpath_var=PATH 9422 ;; 9423 9424darwin* | rhapsody*) 9425 dynamic_linker="$host_os dyld" 9426 version_type=darwin 9427 need_lib_prefix=no 9428 need_version=no 9429 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9430 soname_spec='${libname}${release}${major}$shared_ext' 9431 shlibpath_overrides_runpath=yes 9432 shlibpath_var=DYLD_LIBRARY_PATH 9433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9434 9435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9437 ;; 9438 9439dgux*) 9440 version_type=linux 9441 need_lib_prefix=no 9442 need_version=no 9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9444 soname_spec='${libname}${release}${shared_ext}$major' 9445 shlibpath_var=LD_LIBRARY_PATH 9446 ;; 9447 9448freebsd1*) 9449 dynamic_linker=no 9450 ;; 9451 9452freebsd* | dragonfly*) 9453 # DragonFly does not have aout. When/if they implement a new 9454 # versioning mechanism, adjust this. 9455 if test -x /usr/bin/objformat; then 9456 objformat=`/usr/bin/objformat` 9457 else 9458 case $host_os in 9459 freebsd[123]*) objformat=aout ;; 9460 *) objformat=elf ;; 9461 esac 9462 fi 9463 version_type=freebsd-$objformat 9464 case $version_type in 9465 freebsd-elf*) 9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9467 need_version=no 9468 need_lib_prefix=no 9469 ;; 9470 freebsd-*) 9471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9472 need_version=yes 9473 ;; 9474 esac 9475 shlibpath_var=LD_LIBRARY_PATH 9476 case $host_os in 9477 freebsd2*) 9478 shlibpath_overrides_runpath=yes 9479 ;; 9480 freebsd3.[01]* | freebsdelf3.[01]*) 9481 shlibpath_overrides_runpath=yes 9482 hardcode_into_libs=yes 9483 ;; 9484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9486 shlibpath_overrides_runpath=no 9487 hardcode_into_libs=yes 9488 ;; 9489 *) # from 4.6 on, and DragonFly 9490 shlibpath_overrides_runpath=yes 9491 hardcode_into_libs=yes 9492 ;; 9493 esac 9494 ;; 9495 9496gnu*) 9497 version_type=linux 9498 need_lib_prefix=no 9499 need_version=no 9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9501 soname_spec='${libname}${release}${shared_ext}$major' 9502 shlibpath_var=LD_LIBRARY_PATH 9503 hardcode_into_libs=yes 9504 ;; 9505 9506haiku*) 9507 version_type=linux 9508 need_lib_prefix=no 9509 need_version=no 9510 dynamic_linker="$host_os runtime_loader" 9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9512 soname_spec='${libname}${release}${shared_ext}$major' 9513 shlibpath_var=LIBRARY_PATH 9514 shlibpath_overrides_runpath=yes 9515 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9516 hardcode_into_libs=yes 9517 ;; 9518 9519hpux9* | hpux10* | hpux11*) 9520 # Give a soname corresponding to the major version so that dld.sl refuses to 9521 # link against other versions. 9522 version_type=sunos 9523 need_lib_prefix=no 9524 need_version=no 9525 case $host_cpu in 9526 ia64*) 9527 shrext_cmds='.so' 9528 hardcode_into_libs=yes 9529 dynamic_linker="$host_os dld.so" 9530 shlibpath_var=LD_LIBRARY_PATH 9531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9533 soname_spec='${libname}${release}${shared_ext}$major' 9534 if test "X$HPUX_IA64_MODE" = X32; then 9535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9536 else 9537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9538 fi 9539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9540 ;; 9541 hppa*64*) 9542 shrext_cmds='.sl' 9543 hardcode_into_libs=yes 9544 dynamic_linker="$host_os dld.sl" 9545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9548 soname_spec='${libname}${release}${shared_ext}$major' 9549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9551 ;; 9552 *) 9553 shrext_cmds='.sl' 9554 dynamic_linker="$host_os dld.sl" 9555 shlibpath_var=SHLIB_PATH 9556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9558 soname_spec='${libname}${release}${shared_ext}$major' 9559 ;; 9560 esac 9561 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9562 postinstall_cmds='chmod 555 $lib' 9563 # or fails outright, so override atomically: 9564 install_override_mode=555 9565 ;; 9566 9567interix[3-9]*) 9568 version_type=linux 9569 need_lib_prefix=no 9570 need_version=no 9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9572 soname_spec='${libname}${release}${shared_ext}$major' 9573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9574 shlibpath_var=LD_LIBRARY_PATH 9575 shlibpath_overrides_runpath=no 9576 hardcode_into_libs=yes 9577 ;; 9578 9579irix5* | irix6* | nonstopux*) 9580 case $host_os in 9581 nonstopux*) version_type=nonstopux ;; 9582 *) 9583 if test "$lt_cv_prog_gnu_ld" = yes; then 9584 version_type=linux 9585 else 9586 version_type=irix 9587 fi ;; 9588 esac 9589 need_lib_prefix=no 9590 need_version=no 9591 soname_spec='${libname}${release}${shared_ext}$major' 9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9593 case $host_os in 9594 irix5* | nonstopux*) 9595 libsuff= shlibsuff= 9596 ;; 9597 *) 9598 case $LD in # libtool.m4 will add one of these switches to LD 9599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9600 libsuff= shlibsuff= libmagic=32-bit;; 9601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9602 libsuff=32 shlibsuff=N32 libmagic=N32;; 9603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9604 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9605 *) libsuff= shlibsuff= libmagic=never-match;; 9606 esac 9607 ;; 9608 esac 9609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9610 shlibpath_overrides_runpath=no 9611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9613 hardcode_into_libs=yes 9614 ;; 9615 9616# No shared lib support for Linux oldld, aout, or coff. 9617linux*oldld* | linux*aout* | linux*coff*) 9618 dynamic_linker=no 9619 ;; 9620 9621# This must be Linux ELF. 9622linux* | k*bsd*-gnu | kopensolaris*-gnu) 9623 version_type=linux 9624 need_lib_prefix=no 9625 need_version=no 9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9627 soname_spec='${libname}${release}${shared_ext}$major' 9628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9629 shlibpath_var=LD_LIBRARY_PATH 9630 shlibpath_overrides_runpath=no 9631 9632 # Some binutils ld are patched to set DT_RUNPATH 9633 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 9634 $as_echo_n "(cached) " >&6 9635else 9636 lt_cv_shlibpath_overrides_runpath=no 9637 save_LDFLAGS=$LDFLAGS 9638 save_libdir=$libdir 9639 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9640 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643 9644int 9645main () 9646{ 9647 9648 ; 9649 return 0; 9650} 9651_ACEOF 9652if ac_fn_c_try_link "$LINENO"; then : 9653 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9654 lt_cv_shlibpath_overrides_runpath=yes 9655fi 9656fi 9657rm -f core conftest.err conftest.$ac_objext \ 9658 conftest$ac_exeext conftest.$ac_ext 9659 LDFLAGS=$save_LDFLAGS 9660 libdir=$save_libdir 9661 9662fi 9663 9664 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 9665 9666 # This implies no fast_install, which is unacceptable. 9667 # Some rework will be needed to allow for fast_install 9668 # before this can be enabled. 9669 hardcode_into_libs=yes 9670 9671 # Append ld.so.conf contents to the search path 9672 if test -f /etc/ld.so.conf; then 9673 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;s/"//g;/^$/d' | tr '\n' ' '` 9674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9675 fi 9676 9677 # We used to test for /lib/ld.so.1 and disable shared libraries on 9678 # powerpc, because MkLinux only supported shared libraries with the 9679 # GNU dynamic linker. Since this was broken with cross compilers, 9680 # most powerpc-linux boxes support dynamic linking these days and 9681 # people can always --disable-shared, the test was removed, and we 9682 # assume the GNU/Linux dynamic linker is in use. 9683 dynamic_linker='GNU/Linux ld.so' 9684 ;; 9685 9686netbsd*) 9687 version_type=sunos 9688 need_lib_prefix=no 9689 need_version=no 9690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9693 dynamic_linker='NetBSD (a.out) ld.so' 9694 else 9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9696 soname_spec='${libname}${release}${shared_ext}$major' 9697 dynamic_linker='NetBSD ld.elf_so' 9698 fi 9699 shlibpath_var=LD_LIBRARY_PATH 9700 shlibpath_overrides_runpath=yes 9701 hardcode_into_libs=yes 9702 ;; 9703 9704newsos6) 9705 version_type=linux 9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9707 shlibpath_var=LD_LIBRARY_PATH 9708 shlibpath_overrides_runpath=yes 9709 ;; 9710 9711*nto* | *qnx*) 9712 version_type=qnx 9713 need_lib_prefix=no 9714 need_version=no 9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9716 soname_spec='${libname}${release}${shared_ext}$major' 9717 shlibpath_var=LD_LIBRARY_PATH 9718 shlibpath_overrides_runpath=no 9719 hardcode_into_libs=yes 9720 dynamic_linker='ldqnx.so' 9721 ;; 9722 9723openbsd*) 9724 version_type=sunos 9725 sys_lib_dlsearch_path_spec="/usr/lib" 9726 need_lib_prefix=no 9727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9728 case $host_os in 9729 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9730 *) need_version=no ;; 9731 esac 9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9734 shlibpath_var=LD_LIBRARY_PATH 9735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9736 case $host_os in 9737 openbsd2.[89] | openbsd2.[89].*) 9738 shlibpath_overrides_runpath=no 9739 ;; 9740 *) 9741 shlibpath_overrides_runpath=yes 9742 ;; 9743 esac 9744 else 9745 shlibpath_overrides_runpath=yes 9746 fi 9747 ;; 9748 9749os2*) 9750 libname_spec='$name' 9751 shrext_cmds=".dll" 9752 need_lib_prefix=no 9753 library_names_spec='$libname${shared_ext} $libname.a' 9754 dynamic_linker='OS/2 ld.exe' 9755 shlibpath_var=LIBPATH 9756 ;; 9757 9758osf3* | osf4* | osf5*) 9759 version_type=osf 9760 need_lib_prefix=no 9761 need_version=no 9762 soname_spec='${libname}${release}${shared_ext}$major' 9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9764 shlibpath_var=LD_LIBRARY_PATH 9765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9767 ;; 9768 9769rdos*) 9770 dynamic_linker=no 9771 ;; 9772 9773solaris*) 9774 version_type=linux 9775 need_lib_prefix=no 9776 need_version=no 9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9778 soname_spec='${libname}${release}${shared_ext}$major' 9779 shlibpath_var=LD_LIBRARY_PATH 9780 shlibpath_overrides_runpath=yes 9781 hardcode_into_libs=yes 9782 # ldd complains unless libraries are executable 9783 postinstall_cmds='chmod +x $lib' 9784 ;; 9785 9786sunos4*) 9787 version_type=sunos 9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9790 shlibpath_var=LD_LIBRARY_PATH 9791 shlibpath_overrides_runpath=yes 9792 if test "$with_gnu_ld" = yes; then 9793 need_lib_prefix=no 9794 fi 9795 need_version=yes 9796 ;; 9797 9798sysv4 | sysv4.3*) 9799 version_type=linux 9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9801 soname_spec='${libname}${release}${shared_ext}$major' 9802 shlibpath_var=LD_LIBRARY_PATH 9803 case $host_vendor in 9804 sni) 9805 shlibpath_overrides_runpath=no 9806 need_lib_prefix=no 9807 runpath_var=LD_RUN_PATH 9808 ;; 9809 siemens) 9810 need_lib_prefix=no 9811 ;; 9812 motorola) 9813 need_lib_prefix=no 9814 need_version=no 9815 shlibpath_overrides_runpath=no 9816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9817 ;; 9818 esac 9819 ;; 9820 9821sysv4*MP*) 9822 if test -d /usr/nec ;then 9823 version_type=linux 9824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9825 soname_spec='$libname${shared_ext}.$major' 9826 shlibpath_var=LD_LIBRARY_PATH 9827 fi 9828 ;; 9829 9830sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9831 version_type=freebsd-elf 9832 need_lib_prefix=no 9833 need_version=no 9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9835 soname_spec='${libname}${release}${shared_ext}$major' 9836 shlibpath_var=LD_LIBRARY_PATH 9837 shlibpath_overrides_runpath=yes 9838 hardcode_into_libs=yes 9839 if test "$with_gnu_ld" = yes; then 9840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9841 else 9842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9843 case $host_os in 9844 sco3.2v5*) 9845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9846 ;; 9847 esac 9848 fi 9849 sys_lib_dlsearch_path_spec='/usr/lib' 9850 ;; 9851 9852tpf*) 9853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9854 version_type=linux 9855 need_lib_prefix=no 9856 need_version=no 9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9858 shlibpath_var=LD_LIBRARY_PATH 9859 shlibpath_overrides_runpath=no 9860 hardcode_into_libs=yes 9861 ;; 9862 9863uts4*) 9864 version_type=linux 9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9866 soname_spec='${libname}${release}${shared_ext}$major' 9867 shlibpath_var=LD_LIBRARY_PATH 9868 ;; 9869 9870*) 9871 dynamic_linker=no 9872 ;; 9873esac 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9875$as_echo "$dynamic_linker" >&6; } 9876test "$dynamic_linker" = no && can_build_shared=no 9877 9878variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9879if test "$GCC" = yes; then 9880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9881fi 9882 9883if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9884 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9885fi 9886if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9887 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9888fi 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9982$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9983hardcode_action= 9984if test -n "$hardcode_libdir_flag_spec" || 9985 test -n "$runpath_var" || 9986 test "X$hardcode_automatic" = "Xyes" ; then 9987 9988 # We can hardcode non-existent directories. 9989 if test "$hardcode_direct" != no && 9990 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9991 # have to relink, otherwise we might link with an installed library 9992 # when we should be linking with a yet-to-be-installed one 9993 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9994 test "$hardcode_minus_L" != no; then 9995 # Linking always hardcodes the temporary library directory. 9996 hardcode_action=relink 9997 else 9998 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9999 hardcode_action=immediate 10000 fi 10001else 10002 # We cannot hardcode anything, or else we can only hardcode existing 10003 # directories. 10004 hardcode_action=unsupported 10005fi 10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10007$as_echo "$hardcode_action" >&6; } 10008 10009if test "$hardcode_action" = relink || 10010 test "$inherit_rpath" = yes; then 10011 # Fast installation is not supported 10012 enable_fast_install=no 10013elif test "$shlibpath_overrides_runpath" = yes || 10014 test "$enable_shared" = no; then 10015 # Fast installation is not necessary 10016 enable_fast_install=needless 10017fi 10018 10019 10020 10021 10022 10023 10024 if test "x$enable_dlopen" != xyes; then 10025 enable_dlopen=unknown 10026 enable_dlopen_self=unknown 10027 enable_dlopen_self_static=unknown 10028else 10029 lt_cv_dlopen=no 10030 lt_cv_dlopen_libs= 10031 10032 case $host_os in 10033 beos*) 10034 lt_cv_dlopen="load_add_on" 10035 lt_cv_dlopen_libs= 10036 lt_cv_dlopen_self=yes 10037 ;; 10038 10039 mingw* | pw32* | cegcc*) 10040 lt_cv_dlopen="LoadLibrary" 10041 lt_cv_dlopen_libs= 10042 ;; 10043 10044 cygwin*) 10045 lt_cv_dlopen="dlopen" 10046 lt_cv_dlopen_libs= 10047 ;; 10048 10049 darwin*) 10050 # if libdl is installed we need to link against it 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10052$as_echo_n "checking for dlopen in -ldl... " >&6; } 10053if ${ac_cv_lib_dl_dlopen+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 ac_check_lib_save_LIBS=$LIBS 10057LIBS="-ldl $LIBS" 10058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10059/* end confdefs.h. */ 10060 10061/* Override any GCC internal prototype to avoid an error. 10062 Use char because int might match the return type of a GCC 10063 builtin and then its argument prototype would still apply. */ 10064#ifdef __cplusplus 10065extern "C" 10066#endif 10067char dlopen (); 10068int 10069main () 10070{ 10071return dlopen (); 10072 ; 10073 return 0; 10074} 10075_ACEOF 10076if ac_fn_c_try_link "$LINENO"; then : 10077 ac_cv_lib_dl_dlopen=yes 10078else 10079 ac_cv_lib_dl_dlopen=no 10080fi 10081rm -f core conftest.err conftest.$ac_objext \ 10082 conftest$ac_exeext conftest.$ac_ext 10083LIBS=$ac_check_lib_save_LIBS 10084fi 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10086$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10087if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10089else 10090 10091 lt_cv_dlopen="dyld" 10092 lt_cv_dlopen_libs= 10093 lt_cv_dlopen_self=yes 10094 10095fi 10096 10097 ;; 10098 10099 *) 10100 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10101if test "x$ac_cv_func_shl_load" = xyes; then : 10102 lt_cv_dlopen="shl_load" 10103else 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10105$as_echo_n "checking for shl_load in -ldld... " >&6; } 10106if ${ac_cv_lib_dld_shl_load+:} false; then : 10107 $as_echo_n "(cached) " >&6 10108else 10109 ac_check_lib_save_LIBS=$LIBS 10110LIBS="-ldld $LIBS" 10111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112/* end confdefs.h. */ 10113 10114/* Override any GCC internal prototype to avoid an error. 10115 Use char because int might match the return type of a GCC 10116 builtin and then its argument prototype would still apply. */ 10117#ifdef __cplusplus 10118extern "C" 10119#endif 10120char shl_load (); 10121int 10122main () 10123{ 10124return shl_load (); 10125 ; 10126 return 0; 10127} 10128_ACEOF 10129if ac_fn_c_try_link "$LINENO"; then : 10130 ac_cv_lib_dld_shl_load=yes 10131else 10132 ac_cv_lib_dld_shl_load=no 10133fi 10134rm -f core conftest.err conftest.$ac_objext \ 10135 conftest$ac_exeext conftest.$ac_ext 10136LIBS=$ac_check_lib_save_LIBS 10137fi 10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10139$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10140if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10141 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10142else 10143 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10144if test "x$ac_cv_func_dlopen" = xyes; then : 10145 lt_cv_dlopen="dlopen" 10146else 10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10148$as_echo_n "checking for dlopen in -ldl... " >&6; } 10149if ${ac_cv_lib_dl_dlopen+:} false; then : 10150 $as_echo_n "(cached) " >&6 10151else 10152 ac_check_lib_save_LIBS=$LIBS 10153LIBS="-ldl $LIBS" 10154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10155/* end confdefs.h. */ 10156 10157/* Override any GCC internal prototype to avoid an error. 10158 Use char because int might match the return type of a GCC 10159 builtin and then its argument prototype would still apply. */ 10160#ifdef __cplusplus 10161extern "C" 10162#endif 10163char dlopen (); 10164int 10165main () 10166{ 10167return dlopen (); 10168 ; 10169 return 0; 10170} 10171_ACEOF 10172if ac_fn_c_try_link "$LINENO"; then : 10173 ac_cv_lib_dl_dlopen=yes 10174else 10175 ac_cv_lib_dl_dlopen=no 10176fi 10177rm -f core conftest.err conftest.$ac_objext \ 10178 conftest$ac_exeext conftest.$ac_ext 10179LIBS=$ac_check_lib_save_LIBS 10180fi 10181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10182$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10183if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10185else 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10187$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10188if ${ac_cv_lib_svld_dlopen+:} false; then : 10189 $as_echo_n "(cached) " >&6 10190else 10191 ac_check_lib_save_LIBS=$LIBS 10192LIBS="-lsvld $LIBS" 10193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10194/* end confdefs.h. */ 10195 10196/* Override any GCC internal prototype to avoid an error. 10197 Use char because int might match the return type of a GCC 10198 builtin and then its argument prototype would still apply. */ 10199#ifdef __cplusplus 10200extern "C" 10201#endif 10202char dlopen (); 10203int 10204main () 10205{ 10206return dlopen (); 10207 ; 10208 return 0; 10209} 10210_ACEOF 10211if ac_fn_c_try_link "$LINENO"; then : 10212 ac_cv_lib_svld_dlopen=yes 10213else 10214 ac_cv_lib_svld_dlopen=no 10215fi 10216rm -f core conftest.err conftest.$ac_objext \ 10217 conftest$ac_exeext conftest.$ac_ext 10218LIBS=$ac_check_lib_save_LIBS 10219fi 10220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10221$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10222if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10224else 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10226$as_echo_n "checking for dld_link in -ldld... " >&6; } 10227if ${ac_cv_lib_dld_dld_link+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 ac_check_lib_save_LIBS=$LIBS 10231LIBS="-ldld $LIBS" 10232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10233/* end confdefs.h. */ 10234 10235/* Override any GCC internal prototype to avoid an error. 10236 Use char because int might match the return type of a GCC 10237 builtin and then its argument prototype would still apply. */ 10238#ifdef __cplusplus 10239extern "C" 10240#endif 10241char dld_link (); 10242int 10243main () 10244{ 10245return dld_link (); 10246 ; 10247 return 0; 10248} 10249_ACEOF 10250if ac_fn_c_try_link "$LINENO"; then : 10251 ac_cv_lib_dld_dld_link=yes 10252else 10253 ac_cv_lib_dld_dld_link=no 10254fi 10255rm -f core conftest.err conftest.$ac_objext \ 10256 conftest$ac_exeext conftest.$ac_ext 10257LIBS=$ac_check_lib_save_LIBS 10258fi 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10260$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10261if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10262 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10263fi 10264 10265 10266fi 10267 10268 10269fi 10270 10271 10272fi 10273 10274 10275fi 10276 10277 10278fi 10279 10280 ;; 10281 esac 10282 10283 if test "x$lt_cv_dlopen" != xno; then 10284 enable_dlopen=yes 10285 else 10286 enable_dlopen=no 10287 fi 10288 10289 case $lt_cv_dlopen in 10290 dlopen) 10291 save_CPPFLAGS="$CPPFLAGS" 10292 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10293 10294 save_LDFLAGS="$LDFLAGS" 10295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10296 10297 save_LIBS="$LIBS" 10298 LIBS="$lt_cv_dlopen_libs $LIBS" 10299 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10301$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10302if ${lt_cv_dlopen_self+:} false; then : 10303 $as_echo_n "(cached) " >&6 10304else 10305 if test "$cross_compiling" = yes; then : 10306 lt_cv_dlopen_self=cross 10307else 10308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10309 lt_status=$lt_dlunknown 10310 cat > conftest.$ac_ext <<_LT_EOF 10311#line $LINENO "configure" 10312#include "confdefs.h" 10313 10314#if HAVE_DLFCN_H 10315#include <dlfcn.h> 10316#endif 10317 10318#include <stdio.h> 10319 10320#ifdef RTLD_GLOBAL 10321# define LT_DLGLOBAL RTLD_GLOBAL 10322#else 10323# ifdef DL_GLOBAL 10324# define LT_DLGLOBAL DL_GLOBAL 10325# else 10326# define LT_DLGLOBAL 0 10327# endif 10328#endif 10329 10330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10331 find out it does not work in some platform. */ 10332#ifndef LT_DLLAZY_OR_NOW 10333# ifdef RTLD_LAZY 10334# define LT_DLLAZY_OR_NOW RTLD_LAZY 10335# else 10336# ifdef DL_LAZY 10337# define LT_DLLAZY_OR_NOW DL_LAZY 10338# else 10339# ifdef RTLD_NOW 10340# define LT_DLLAZY_OR_NOW RTLD_NOW 10341# else 10342# ifdef DL_NOW 10343# define LT_DLLAZY_OR_NOW DL_NOW 10344# else 10345# define LT_DLLAZY_OR_NOW 0 10346# endif 10347# endif 10348# endif 10349# endif 10350#endif 10351 10352/* When -fvisbility=hidden is used, assume the code has been annotated 10353 correspondingly for the symbols needed. */ 10354#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10355void fnord () __attribute__((visibility("default"))); 10356#endif 10357 10358void fnord () { int i=42; } 10359int main () 10360{ 10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10362 int status = $lt_dlunknown; 10363 10364 if (self) 10365 { 10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10367 else 10368 { 10369 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10370 else puts (dlerror ()); 10371 } 10372 /* dlclose (self); */ 10373 } 10374 else 10375 puts (dlerror ()); 10376 10377 return status; 10378} 10379_LT_EOF 10380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10381 (eval $ac_link) 2>&5 10382 ac_status=$? 10383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10384 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10385 (./conftest; exit; ) >&5 2>/dev/null 10386 lt_status=$? 10387 case x$lt_status in 10388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10390 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10391 esac 10392 else : 10393 # compilation failed 10394 lt_cv_dlopen_self=no 10395 fi 10396fi 10397rm -fr conftest* 10398 10399 10400fi 10401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10402$as_echo "$lt_cv_dlopen_self" >&6; } 10403 10404 if test "x$lt_cv_dlopen_self" = xyes; then 10405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10407$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10408if ${lt_cv_dlopen_self_static+:} false; then : 10409 $as_echo_n "(cached) " >&6 10410else 10411 if test "$cross_compiling" = yes; then : 10412 lt_cv_dlopen_self_static=cross 10413else 10414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10415 lt_status=$lt_dlunknown 10416 cat > conftest.$ac_ext <<_LT_EOF 10417#line $LINENO "configure" 10418#include "confdefs.h" 10419 10420#if HAVE_DLFCN_H 10421#include <dlfcn.h> 10422#endif 10423 10424#include <stdio.h> 10425 10426#ifdef RTLD_GLOBAL 10427# define LT_DLGLOBAL RTLD_GLOBAL 10428#else 10429# ifdef DL_GLOBAL 10430# define LT_DLGLOBAL DL_GLOBAL 10431# else 10432# define LT_DLGLOBAL 0 10433# endif 10434#endif 10435 10436/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10437 find out it does not work in some platform. */ 10438#ifndef LT_DLLAZY_OR_NOW 10439# ifdef RTLD_LAZY 10440# define LT_DLLAZY_OR_NOW RTLD_LAZY 10441# else 10442# ifdef DL_LAZY 10443# define LT_DLLAZY_OR_NOW DL_LAZY 10444# else 10445# ifdef RTLD_NOW 10446# define LT_DLLAZY_OR_NOW RTLD_NOW 10447# else 10448# ifdef DL_NOW 10449# define LT_DLLAZY_OR_NOW DL_NOW 10450# else 10451# define LT_DLLAZY_OR_NOW 0 10452# endif 10453# endif 10454# endif 10455# endif 10456#endif 10457 10458/* When -fvisbility=hidden is used, assume the code has been annotated 10459 correspondingly for the symbols needed. */ 10460#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10461void fnord () __attribute__((visibility("default"))); 10462#endif 10463 10464void fnord () { int i=42; } 10465int main () 10466{ 10467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10468 int status = $lt_dlunknown; 10469 10470 if (self) 10471 { 10472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10473 else 10474 { 10475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10476 else puts (dlerror ()); 10477 } 10478 /* dlclose (self); */ 10479 } 10480 else 10481 puts (dlerror ()); 10482 10483 return status; 10484} 10485_LT_EOF 10486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10487 (eval $ac_link) 2>&5 10488 ac_status=$? 10489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10491 (./conftest; exit; ) >&5 2>/dev/null 10492 lt_status=$? 10493 case x$lt_status in 10494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10496 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10497 esac 10498 else : 10499 # compilation failed 10500 lt_cv_dlopen_self_static=no 10501 fi 10502fi 10503rm -fr conftest* 10504 10505 10506fi 10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10508$as_echo "$lt_cv_dlopen_self_static" >&6; } 10509 fi 10510 10511 CPPFLAGS="$save_CPPFLAGS" 10512 LDFLAGS="$save_LDFLAGS" 10513 LIBS="$save_LIBS" 10514 ;; 10515 esac 10516 10517 case $lt_cv_dlopen_self in 10518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10519 *) enable_dlopen_self=unknown ;; 10520 esac 10521 10522 case $lt_cv_dlopen_self_static in 10523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10524 *) enable_dlopen_self_static=unknown ;; 10525 esac 10526fi 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544striplib= 10545old_striplib= 10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10547$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10548if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10549 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10550 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10552$as_echo "yes" >&6; } 10553else 10554# FIXME - insert some real tests, host_os isn't really good enough 10555 case $host_os in 10556 darwin*) 10557 if test -n "$STRIP" ; then 10558 striplib="$STRIP -x" 10559 old_striplib="$STRIP -S" 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10561$as_echo "yes" >&6; } 10562 else 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10564$as_echo "no" >&6; } 10565 fi 10566 ;; 10567 *) 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10569$as_echo "no" >&6; } 10570 ;; 10571 esac 10572fi 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 # Report which library types will actually be built 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10587$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10589$as_echo "$can_build_shared" >&6; } 10590 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10592$as_echo_n "checking whether to build shared libraries... " >&6; } 10593 test "$can_build_shared" = "no" && enable_shared=no 10594 10595 # On AIX, shared libraries and static libraries use the same namespace, and 10596 # are all built from PIC. 10597 case $host_os in 10598 aix3*) 10599 test "$enable_shared" = yes && enable_static=no 10600 if test -n "$RANLIB"; then 10601 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10602 postinstall_cmds='$RANLIB $lib' 10603 fi 10604 ;; 10605 10606 aix[4-9]*) 10607 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10608 test "$enable_shared" = yes && enable_static=no 10609 fi 10610 ;; 10611 esac 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10613$as_echo "$enable_shared" >&6; } 10614 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10616$as_echo_n "checking whether to build static libraries... " >&6; } 10617 # Make sure either enable_shared or enable_static is yes. 10618 test "$enable_shared" = yes || enable_static=yes 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10620$as_echo "$enable_static" >&6; } 10621 10622 10623 10624 10625fi 10626ac_ext=c 10627ac_cpp='$CPP $CPPFLAGS' 10628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10630ac_compiler_gnu=$ac_cv_c_compiler_gnu 10631 10632CC="$lt_save_CC" 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 ac_config_commands="$ac_config_commands libtool" 10647 10648 10649 10650 10651# Only expand once: 10652 10653 10654 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 10656$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 10657if ${ac_cv_prog_cc_c99+:} false; then : 10658 $as_echo_n "(cached) " >&6 10659else 10660 ac_cv_prog_cc_c99=no 10661ac_save_CC=$CC 10662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663/* end confdefs.h. */ 10664#include <stdarg.h> 10665#include <stdbool.h> 10666#include <stdlib.h> 10667#include <wchar.h> 10668#include <stdio.h> 10669 10670// Check varargs macros. These examples are taken from C99 6.10.3.5. 10671#define debug(...) fprintf (stderr, __VA_ARGS__) 10672#define showlist(...) puts (#__VA_ARGS__) 10673#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 10674static void 10675test_varargs_macros (void) 10676{ 10677 int x = 1234; 10678 int y = 5678; 10679 debug ("Flag"); 10680 debug ("X = %d\n", x); 10681 showlist (The first, second, and third items.); 10682 report (x>y, "x is %d but y is %d", x, y); 10683} 10684 10685// Check long long types. 10686#define BIG64 18446744073709551615ull 10687#define BIG32 4294967295ul 10688#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 10689#if !BIG_OK 10690 your preprocessor is broken; 10691#endif 10692#if BIG_OK 10693#else 10694 your preprocessor is broken; 10695#endif 10696static long long int bignum = -9223372036854775807LL; 10697static unsigned long long int ubignum = BIG64; 10698 10699struct incomplete_array 10700{ 10701 int datasize; 10702 double data[]; 10703}; 10704 10705struct named_init { 10706 int number; 10707 const wchar_t *name; 10708 double average; 10709}; 10710 10711typedef const char *ccp; 10712 10713static inline int 10714test_restrict (ccp restrict text) 10715{ 10716 // See if C++-style comments work. 10717 // Iterate through items via the restricted pointer. 10718 // Also check for declarations in for loops. 10719 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 10720 continue; 10721 return 0; 10722} 10723 10724// Check varargs and va_copy. 10725static void 10726test_varargs (const char *format, ...) 10727{ 10728 va_list args; 10729 va_start (args, format); 10730 va_list args_copy; 10731 va_copy (args_copy, args); 10732 10733 const char *str; 10734 int number; 10735 float fnumber; 10736 10737 while (*format) 10738 { 10739 switch (*format++) 10740 { 10741 case 's': // string 10742 str = va_arg (args_copy, const char *); 10743 break; 10744 case 'd': // int 10745 number = va_arg (args_copy, int); 10746 break; 10747 case 'f': // float 10748 fnumber = va_arg (args_copy, double); 10749 break; 10750 default: 10751 break; 10752 } 10753 } 10754 va_end (args_copy); 10755 va_end (args); 10756} 10757 10758int 10759main () 10760{ 10761 10762 // Check bool. 10763 _Bool success = false; 10764 10765 // Check restrict. 10766 if (test_restrict ("String literal") == 0) 10767 success = true; 10768 char *restrict newvar = "Another string"; 10769 10770 // Check varargs. 10771 test_varargs ("s, d' f .", "string", 65, 34.234); 10772 test_varargs_macros (); 10773 10774 // Check flexible array members. 10775 struct incomplete_array *ia = 10776 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 10777 ia->datasize = 10; 10778 for (int i = 0; i < ia->datasize; ++i) 10779 ia->data[i] = i * 1.234; 10780 10781 // Check named initializers. 10782 struct named_init ni = { 10783 .number = 34, 10784 .name = L"Test wide string", 10785 .average = 543.34343, 10786 }; 10787 10788 ni.number = 58; 10789 10790 int dynamic_array[ni.number]; 10791 dynamic_array[ni.number - 1] = 543; 10792 10793 // work around unused variable warnings 10794 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 10795 || dynamic_array[ni.number - 1] != 543); 10796 10797 ; 10798 return 0; 10799} 10800_ACEOF 10801for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 10802do 10803 CC="$ac_save_CC $ac_arg" 10804 if ac_fn_c_try_compile "$LINENO"; then : 10805 ac_cv_prog_cc_c99=$ac_arg 10806fi 10807rm -f core conftest.err conftest.$ac_objext 10808 test "x$ac_cv_prog_cc_c99" != "xno" && break 10809done 10810rm -f conftest.$ac_ext 10811CC=$ac_save_CC 10812 10813fi 10814# AC_CACHE_VAL 10815case "x$ac_cv_prog_cc_c99" in 10816 x) 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 10818$as_echo "none needed" >&6; } ;; 10819 xno) 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 10821$as_echo "unsupported" >&6; } ;; 10822 *) 10823 CC="$CC $ac_cv_prog_cc_c99" 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 10825$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 10826esac 10827if test "x$ac_cv_prog_cc_c99" != xno; then : 10828 10829fi 10830 10831 10832 10833 10834if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10835 if test -n "$ac_tool_prefix"; then 10836 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10837set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10839$as_echo_n "checking for $ac_word... " >&6; } 10840if ${ac_cv_path_PKG_CONFIG+:} false; then : 10841 $as_echo_n "(cached) " >&6 10842else 10843 case $PKG_CONFIG in 10844 [\\/]* | ?:[\\/]*) 10845 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10846 ;; 10847 *) 10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10849for as_dir in $PATH 10850do 10851 IFS=$as_save_IFS 10852 test -z "$as_dir" && as_dir=. 10853 for ac_exec_ext in '' $ac_executable_extensions; do 10854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10855 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10857 break 2 10858 fi 10859done 10860 done 10861IFS=$as_save_IFS 10862 10863 ;; 10864esac 10865fi 10866PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10867if test -n "$PKG_CONFIG"; then 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10869$as_echo "$PKG_CONFIG" >&6; } 10870else 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10872$as_echo "no" >&6; } 10873fi 10874 10875 10876fi 10877if test -z "$ac_cv_path_PKG_CONFIG"; then 10878 ac_pt_PKG_CONFIG=$PKG_CONFIG 10879 # Extract the first word of "pkg-config", so it can be a program name with args. 10880set dummy pkg-config; ac_word=$2 10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10882$as_echo_n "checking for $ac_word... " >&6; } 10883if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885else 10886 case $ac_pt_PKG_CONFIG in 10887 [\\/]* | ?:[\\/]*) 10888 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10889 ;; 10890 *) 10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10892for as_dir in $PATH 10893do 10894 IFS=$as_save_IFS 10895 test -z "$as_dir" && as_dir=. 10896 for ac_exec_ext in '' $ac_executable_extensions; do 10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10898 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10900 break 2 10901 fi 10902done 10903 done 10904IFS=$as_save_IFS 10905 10906 ;; 10907esac 10908fi 10909ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10910if test -n "$ac_pt_PKG_CONFIG"; then 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10912$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10913else 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10915$as_echo "no" >&6; } 10916fi 10917 10918 if test "x$ac_pt_PKG_CONFIG" = x; then 10919 PKG_CONFIG="" 10920 else 10921 case $cross_compiling:$ac_tool_warned in 10922yes:) 10923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10925ac_tool_warned=yes ;; 10926esac 10927 PKG_CONFIG=$ac_pt_PKG_CONFIG 10928 fi 10929else 10930 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10931fi 10932 10933fi 10934if test -n "$PKG_CONFIG"; then 10935 _pkg_min_version=0.9.0 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10937$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10938 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10940$as_echo "yes" >&6; } 10941 else 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10943$as_echo "no" >&6; } 10944 PKG_CONFIG="" 10945 fi 10946 10947fi 10948 10949 10950 10951 10952if test "x$GCC" = xyes ; then 10953 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 10954-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 10955-Wbad-function-cast -Wformat=2" 10956 case `$CC -dumpversion` in 10957 3.4.* | 4.*) 10958 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 10959 ;; 10960 esac 10961else 10962 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 10963if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 10964 SUNCC="yes" 10965else 10966 SUNCC="no" 10967fi 10968 10969 if test "x$SUNCC" = "xyes"; then 10970 CWARNFLAGS="-v" 10971 fi 10972fi 10973 10974 10975 10976# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 10977 10978 10979 10980# Check whether --enable-strict-compilation was given. 10981if test "${enable_strict_compilation+set}" = set; then : 10982 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10983else 10984 STRICT_COMPILE=no 10985fi 10986 10987if test "x$STRICT_COMPILE" = "xyes"; then 10988 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 10989if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 10990 SUNCC="yes" 10991else 10992 SUNCC="no" 10993fi 10994 10995 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 10996if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 10997 INTELCC="yes" 10998else 10999 INTELCC="no" 11000fi 11001 11002 if test "x$GCC" = xyes ; then 11003 STRICT_CFLAGS="-pedantic -Werror" 11004 elif test "x$SUNCC" = "xyes"; then 11005 STRICT_CFLAGS="-errwarn" 11006 elif test "x$INTELCC" = "xyes"; then 11007 STRICT_CFLAGS="-Werror" 11008 fi 11009fi 11010CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11011 11012 11013 11014 11015cat >>confdefs.h <<_ACEOF 11016#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11017_ACEOF 11018 11019 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11020 if test "x$PVM" = "x"; then 11021 PVM="0" 11022 fi 11023 11024cat >>confdefs.h <<_ACEOF 11025#define PACKAGE_VERSION_MINOR $PVM 11026_ACEOF 11027 11028 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11029 if test "x$PVP" = "x"; then 11030 PVP="0" 11031 fi 11032 11033cat >>confdefs.h <<_ACEOF 11034#define PACKAGE_VERSION_PATCHLEVEL $PVP 11035_ACEOF 11036 11037 11038 11039CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 11040mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11041|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 11042echo 'git directory not found: installing possibly empty changelog.' >&2)" 11043 11044 11045 11046 11047macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11048INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11049mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11050|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 11051echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 11052 11053 11054 11055 11056 11057 11058if test x$APP_MAN_SUFFIX = x ; then 11059 APP_MAN_SUFFIX=1 11060fi 11061if test x$APP_MAN_DIR = x ; then 11062 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11063fi 11064 11065if test x$LIB_MAN_SUFFIX = x ; then 11066 LIB_MAN_SUFFIX=3 11067fi 11068if test x$LIB_MAN_DIR = x ; then 11069 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11070fi 11071 11072if test x$FILE_MAN_SUFFIX = x ; then 11073 case $host_os in 11074 solaris*) FILE_MAN_SUFFIX=4 ;; 11075 *) FILE_MAN_SUFFIX=5 ;; 11076 esac 11077fi 11078if test x$FILE_MAN_DIR = x ; then 11079 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11080fi 11081 11082if test x$MISC_MAN_SUFFIX = x ; then 11083 case $host_os in 11084 solaris*) MISC_MAN_SUFFIX=5 ;; 11085 *) MISC_MAN_SUFFIX=7 ;; 11086 esac 11087fi 11088if test x$MISC_MAN_DIR = x ; then 11089 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11090fi 11091 11092if test x$DRIVER_MAN_SUFFIX = x ; then 11093 case $host_os in 11094 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11095 *) DRIVER_MAN_SUFFIX=4 ;; 11096 esac 11097fi 11098if test x$DRIVER_MAN_DIR = x ; then 11099 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11100fi 11101 11102if test x$ADMIN_MAN_SUFFIX = x ; then 11103 case $host_os in 11104 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11105 *) ADMIN_MAN_SUFFIX=8 ;; 11106 esac 11107fi 11108if test x$ADMIN_MAN_DIR = x ; then 11109 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11110fi 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126XORG_MAN_PAGE="X Version 11" 11127 11128MAN_SUBSTS="\ 11129 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11130 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11131 -e 's|__xservername__|Xorg|g' \ 11132 -e 's|__xconfigfile__|xorg.conf|g' \ 11133 -e 's|__projectroot__|\$(prefix)|g' \ 11134 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11135 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11136 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11137 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11138 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11139 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11140 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11141 11142 11143 11144# Check whether --enable-silent-rules was given. 11145if test "${enable_silent_rules+set}" = set; then : 11146 enableval=$enable_silent_rules; 11147fi 11148 11149case $enable_silent_rules in 11150yes) AM_DEFAULT_VERBOSITY=0;; 11151no) AM_DEFAULT_VERBOSITY=1;; 11152*) AM_DEFAULT_VERBOSITY=0;; 11153esac 11154AM_BACKSLASH='\' 11155 11156 11157 11158 11159 11160# Check whether --with-xmlto was given. 11161if test "${with_xmlto+set}" = set; then : 11162 withval=$with_xmlto; use_xmlto=$withval 11163else 11164 use_xmlto=auto 11165fi 11166 11167 11168if test "x$use_xmlto" = x"auto"; then 11169 # Extract the first word of "xmlto", so it can be a program name with args. 11170set dummy xmlto; ac_word=$2 11171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11172$as_echo_n "checking for $ac_word... " >&6; } 11173if ${ac_cv_path_XMLTO+:} false; then : 11174 $as_echo_n "(cached) " >&6 11175else 11176 case $XMLTO in 11177 [\\/]* | ?:[\\/]*) 11178 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11179 ;; 11180 *) 11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11182for as_dir in $PATH 11183do 11184 IFS=$as_save_IFS 11185 test -z "$as_dir" && as_dir=. 11186 for ac_exec_ext in '' $ac_executable_extensions; do 11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11188 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11190 break 2 11191 fi 11192done 11193 done 11194IFS=$as_save_IFS 11195 11196 ;; 11197esac 11198fi 11199XMLTO=$ac_cv_path_XMLTO 11200if test -n "$XMLTO"; then 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11202$as_echo "$XMLTO" >&6; } 11203else 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11205$as_echo "no" >&6; } 11206fi 11207 11208 11209 if test "x$XMLTO" = "x"; then 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 11211$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 11212 have_xmlto=no 11213 else 11214 have_xmlto=yes 11215 fi 11216elif test "x$use_xmlto" = x"yes" ; then 11217 # Extract the first word of "xmlto", so it can be a program name with args. 11218set dummy xmlto; ac_word=$2 11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11220$as_echo_n "checking for $ac_word... " >&6; } 11221if ${ac_cv_path_XMLTO+:} false; then : 11222 $as_echo_n "(cached) " >&6 11223else 11224 case $XMLTO in 11225 [\\/]* | ?:[\\/]*) 11226 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 11227 ;; 11228 *) 11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11230for as_dir in $PATH 11231do 11232 IFS=$as_save_IFS 11233 test -z "$as_dir" && as_dir=. 11234 for ac_exec_ext in '' $ac_executable_extensions; do 11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11236 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11238 break 2 11239 fi 11240done 11241 done 11242IFS=$as_save_IFS 11243 11244 ;; 11245esac 11246fi 11247XMLTO=$ac_cv_path_XMLTO 11248if test -n "$XMLTO"; then 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 11250$as_echo "$XMLTO" >&6; } 11251else 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11253$as_echo "no" >&6; } 11254fi 11255 11256 11257 if test "x$XMLTO" = "x"; then 11258 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 11259 fi 11260 have_xmlto=yes 11261elif test "x$use_xmlto" = x"no" ; then 11262 if test "x$XMLTO" != "x"; then 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 11264$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 11265 fi 11266 have_xmlto=no 11267else 11268 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 11269fi 11270 11271# Test for a minimum version of xmlto, if provided. 11272if test "$have_xmlto" = yes; then 11273 # scrape the xmlto version 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 11275$as_echo_n "checking the xmlto version... " >&6; } 11276 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 11278$as_echo "$xmlto_version" >&6; } 11279 as_arg_v1=$xmlto_version 11280as_arg_v2=0.0.20 11281awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 11282case $? in #( 11283 1) : 11284 if test "x$use_xmlto" = xauto; then 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 11286$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 11287 have_xmlto=no 11288 else 11289 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 11290 fi ;; #( 11291 0) : 11292 ;; #( 11293 2) : 11294 ;; #( 11295 *) : 11296 ;; 11297esac 11298fi 11299 11300# Test for the ability of xmlto to generate a text target 11301have_xmlto_text=no 11302cat > conftest.xml << "EOF" 11303EOF 11304if test "$have_xmlto" = yes; then : 11305 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 11306 have_xmlto_text=yes 11307else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 11309$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 11310fi 11311fi 11312rm -f conftest.xml 11313 if test $have_xmlto_text = yes; then 11314 HAVE_XMLTO_TEXT_TRUE= 11315 HAVE_XMLTO_TEXT_FALSE='#' 11316else 11317 HAVE_XMLTO_TEXT_TRUE='#' 11318 HAVE_XMLTO_TEXT_FALSE= 11319fi 11320 11321 if test "$have_xmlto" = yes; then 11322 HAVE_XMLTO_TRUE= 11323 HAVE_XMLTO_FALSE='#' 11324else 11325 HAVE_XMLTO_TRUE='#' 11326 HAVE_XMLTO_FALSE= 11327fi 11328 11329 11330 11331# Determine if the source for man pages is available 11332# It may already be present (tarball) or can be generated using xmlto 11333 if test -f "$srcdir/man/Xcomposite.man" || test "x$have_xmlto" = xyes; then 11334 INSTALL_MANPAGES_TRUE= 11335 INSTALL_MANPAGES_FALSE='#' 11336else 11337 INSTALL_MANPAGES_TRUE='#' 11338 INSTALL_MANPAGES_FALSE= 11339fi 11340 11341 11342# Check compositeext configuration, strip extra digits from package version to 11343# find the required protocol version 11344 11345if test "$VERSION" = "" ; then 11346 VERSION=$PACKAGE_VERSION; 11347fi 11348COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 11349 11350 11351pkg_failed=no 11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCOMPOSITE" >&5 11353$as_echo_n "checking for XCOMPOSITE... " >&6; } 11354 11355if test -n "$XCOMPOSITE_CFLAGS"; then 11356 pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS" 11357 elif test -n "$PKG_CONFIG"; then 11358 if test -n "$PKG_CONFIG" && \ 11359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11\""; } >&5 11360 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11") 2>&5 11361 ac_status=$? 11362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11363 test $ac_status = 0; }; then 11364 pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>/dev/null` 11365else 11366 pkg_failed=yes 11367fi 11368 else 11369 pkg_failed=untried 11370fi 11371if test -n "$XCOMPOSITE_LIBS"; then 11372 pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS" 11373 elif test -n "$PKG_CONFIG"; then 11374 if test -n "$PKG_CONFIG" && \ 11375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11\""; } >&5 11376 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11") 2>&5 11377 ac_status=$? 11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11379 test $ac_status = 0; }; then 11380 pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>/dev/null` 11381else 11382 pkg_failed=yes 11383fi 11384 else 11385 pkg_failed=untried 11386fi 11387 11388 11389 11390if test $pkg_failed = yes; then 11391 11392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11393 _pkg_short_errors_supported=yes 11394else 11395 _pkg_short_errors_supported=no 11396fi 11397 if test $_pkg_short_errors_supported = yes; then 11398 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>&1` 11399 else 11400 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>&1` 11401 fi 11402 # Put the nasty error message in config.log where it belongs 11403 echo "$XCOMPOSITE_PKG_ERRORS" >&5 11404 11405 as_fn_error $? "Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11) were not met: 11406 11407$XCOMPOSITE_PKG_ERRORS 11408 11409Consider adjusting the PKG_CONFIG_PATH environment variable if you 11410installed software in a non-standard prefix. 11411 11412Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS 11413and XCOMPOSITE_LIBS to avoid the need to call pkg-config. 11414See the pkg-config man page for more details. 11415" "$LINENO" 5 11416elif test $pkg_failed = untried; then 11417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11419as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11420is in your PATH or set the PKG_CONFIG environment variable to the full 11421path to pkg-config. 11422 11423Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS 11424and XCOMPOSITE_LIBS to avoid the need to call pkg-config. 11425See the pkg-config man page for more details. 11426 11427To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11428See \`config.log' for more details" "$LINENO" 5; } 11429else 11430 XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS 11431 XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11433$as_echo "yes" >&6; } 11434 : 11435fi 11436 11437pkg_failed=no 11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5 11439$as_echo_n "checking for XFIXES... " >&6; } 11440 11441if test -n "$XFIXES_CFLAGS"; then 11442 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 11443 elif test -n "$PKG_CONFIG"; then 11444 if test -n "$PKG_CONFIG" && \ 11445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5 11446 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5 11447 ac_status=$? 11448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11449 test $ac_status = 0; }; then 11450 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null` 11451else 11452 pkg_failed=yes 11453fi 11454 else 11455 pkg_failed=untried 11456fi 11457if test -n "$XFIXES_LIBS"; then 11458 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 11459 elif test -n "$PKG_CONFIG"; then 11460 if test -n "$PKG_CONFIG" && \ 11461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5 11462 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5 11463 ac_status=$? 11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11465 test $ac_status = 0; }; then 11466 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null` 11467else 11468 pkg_failed=yes 11469fi 11470 else 11471 pkg_failed=untried 11472fi 11473 11474 11475 11476if test $pkg_failed = yes; then 11477 11478if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11479 _pkg_short_errors_supported=yes 11480else 11481 _pkg_short_errors_supported=no 11482fi 11483 if test $_pkg_short_errors_supported = yes; then 11484 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfixes" 2>&1` 11485 else 11486 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfixes" 2>&1` 11487 fi 11488 # Put the nasty error message in config.log where it belongs 11489 echo "$XFIXES_PKG_ERRORS" >&5 11490 11491 as_fn_error $? "Package requirements (xfixes) were not met: 11492 11493$XFIXES_PKG_ERRORS 11494 11495Consider adjusting the PKG_CONFIG_PATH environment variable if you 11496installed software in a non-standard prefix. 11497 11498Alternatively, you may set the environment variables XFIXES_CFLAGS 11499and XFIXES_LIBS to avoid the need to call pkg-config. 11500See the pkg-config man page for more details. 11501" "$LINENO" 5 11502elif test $pkg_failed = untried; then 11503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11505as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11506is in your PATH or set the PKG_CONFIG environment variable to the full 11507path to pkg-config. 11508 11509Alternatively, you may set the environment variables XFIXES_CFLAGS 11510and XFIXES_LIBS to avoid the need to call pkg-config. 11511See the pkg-config man page for more details. 11512 11513To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11514See \`config.log' for more details" "$LINENO" 5; } 11515else 11516 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 11517 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11519$as_echo "yes" >&6; } 11520 : 11521fi 11522 11523ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcomposite.pc" 11524 11525cat >confcache <<\_ACEOF 11526# This file is a shell script that caches the results of configure 11527# tests run on this system so they can be shared between configure 11528# scripts and configure runs, see configure's option --config-cache. 11529# It is not useful on other systems. If it contains results you don't 11530# want to keep, you may remove or edit it. 11531# 11532# config.status only pays attention to the cache file if you give it 11533# the --recheck option to rerun configure. 11534# 11535# `ac_cv_env_foo' variables (set or unset) will be overridden when 11536# loading this file, other *unset* `ac_cv_foo' will be assigned the 11537# following values. 11538 11539_ACEOF 11540 11541# The following way of writing the cache mishandles newlines in values, 11542# but we know of no workaround that is simple, portable, and efficient. 11543# So, we kill variables containing newlines. 11544# Ultrix sh set writes to stderr and can't be redirected directly, 11545# and sets the high bit in the cache file unless we assign to the vars. 11546( 11547 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11548 eval ac_val=\$$ac_var 11549 case $ac_val in #( 11550 *${as_nl}*) 11551 case $ac_var in #( 11552 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11553$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11554 esac 11555 case $ac_var in #( 11556 _ | IFS | as_nl) ;; #( 11557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11558 *) { eval $ac_var=; unset $ac_var;} ;; 11559 esac ;; 11560 esac 11561 done 11562 11563 (set) 2>&1 | 11564 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11565 *${as_nl}ac_space=\ *) 11566 # `set' does not quote correctly, so add quotes: double-quote 11567 # substitution turns \\\\ into \\, and sed turns \\ into \. 11568 sed -n \ 11569 "s/'/'\\\\''/g; 11570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11571 ;; #( 11572 *) 11573 # `set' quotes correctly as required by POSIX, so do not add quotes. 11574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11575 ;; 11576 esac | 11577 sort 11578) | 11579 sed ' 11580 /^ac_cv_env_/b end 11581 t clear 11582 :clear 11583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11584 t end 11585 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11586 :end' >>confcache 11587if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11588 if test -w "$cache_file"; then 11589 if test "x$cache_file" != "x/dev/null"; then 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11591$as_echo "$as_me: updating cache $cache_file" >&6;} 11592 if test ! -f "$cache_file" || test -h "$cache_file"; then 11593 cat confcache >"$cache_file" 11594 else 11595 case $cache_file in #( 11596 */* | ?:*) 11597 mv -f confcache "$cache_file"$$ && 11598 mv -f "$cache_file"$$ "$cache_file" ;; #( 11599 *) 11600 mv -f confcache "$cache_file" ;; 11601 esac 11602 fi 11603 fi 11604 else 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11606$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11607 fi 11608fi 11609rm -f confcache 11610 11611test "x$prefix" = xNONE && prefix=$ac_default_prefix 11612# Let make expand exec_prefix. 11613test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11614 11615DEFS=-DHAVE_CONFIG_H 11616 11617ac_libobjs= 11618ac_ltlibobjs= 11619U= 11620for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11621 # 1. Remove the extension, and $U if already installed. 11622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11623 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11625 # will be set to the directory where LIBOBJS objects are built. 11626 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11627 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11628done 11629LIBOBJS=$ac_libobjs 11630 11631LTLIBOBJS=$ac_ltlibobjs 11632 11633 11634 if test -n "$EXEEXT"; then 11635 am__EXEEXT_TRUE= 11636 am__EXEEXT_FALSE='#' 11637else 11638 am__EXEEXT_TRUE='#' 11639 am__EXEEXT_FALSE= 11640fi 11641 11642if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11643 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11644Usually this means the macro was only invoked conditionally." "$LINENO" 5 11645fi 11646if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11647 as_fn_error $? "conditional \"AMDEP\" was never defined. 11648Usually this means the macro was only invoked conditionally." "$LINENO" 5 11649fi 11650if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11651 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11652Usually this means the macro was only invoked conditionally." "$LINENO" 5 11653fi 11654if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 11655 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 11656Usually this means the macro was only invoked conditionally." "$LINENO" 5 11657fi 11658if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 11659 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 11660Usually this means the macro was only invoked conditionally." "$LINENO" 5 11661fi 11662if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 11663 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 11664Usually this means the macro was only invoked conditionally." "$LINENO" 5 11665fi 11666 11667: "${CONFIG_STATUS=./config.status}" 11668ac_write_fail=0 11669ac_clean_files_save=$ac_clean_files 11670ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11672$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11673as_write_fail=0 11674cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11675#! $SHELL 11676# Generated by $as_me. 11677# Run this file to recreate the current configuration. 11678# Compiler output produced by configure, useful for debugging 11679# configure, is in config.log if it exists. 11680 11681debug=false 11682ac_cs_recheck=false 11683ac_cs_silent=false 11684 11685SHELL=\${CONFIG_SHELL-$SHELL} 11686export SHELL 11687_ASEOF 11688cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11689## -------------------- ## 11690## M4sh Initialization. ## 11691## -------------------- ## 11692 11693# Be more Bourne compatible 11694DUALCASE=1; export DUALCASE # for MKS sh 11695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11696 emulate sh 11697 NULLCMD=: 11698 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11699 # is contrary to our usage. Disable this feature. 11700 alias -g '${1+"$@"}'='"$@"' 11701 setopt NO_GLOB_SUBST 11702else 11703 case `(set -o) 2>/dev/null` in #( 11704 *posix*) : 11705 set -o posix ;; #( 11706 *) : 11707 ;; 11708esac 11709fi 11710 11711 11712as_nl=' 11713' 11714export as_nl 11715# Printing a long string crashes Solaris 7 /usr/bin/printf. 11716as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11717as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11718as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11719# Prefer a ksh shell builtin over an external printf program on Solaris, 11720# but without wasting forks for bash or zsh. 11721if test -z "$BASH_VERSION$ZSH_VERSION" \ 11722 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11723 as_echo='print -r --' 11724 as_echo_n='print -rn --' 11725elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11726 as_echo='printf %s\n' 11727 as_echo_n='printf %s' 11728else 11729 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11730 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11731 as_echo_n='/usr/ucb/echo -n' 11732 else 11733 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11734 as_echo_n_body='eval 11735 arg=$1; 11736 case $arg in #( 11737 *"$as_nl"*) 11738 expr "X$arg" : "X\\(.*\\)$as_nl"; 11739 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11740 esac; 11741 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11742 ' 11743 export as_echo_n_body 11744 as_echo_n='sh -c $as_echo_n_body as_echo' 11745 fi 11746 export as_echo_body 11747 as_echo='sh -c $as_echo_body as_echo' 11748fi 11749 11750# The user is always right. 11751if test "${PATH_SEPARATOR+set}" != set; then 11752 PATH_SEPARATOR=: 11753 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11754 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11755 PATH_SEPARATOR=';' 11756 } 11757fi 11758 11759 11760# IFS 11761# We need space, tab and new line, in precisely that order. Quoting is 11762# there to prevent editors from complaining about space-tab. 11763# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11764# splitting by setting IFS to empty value.) 11765IFS=" "" $as_nl" 11766 11767# Find who we are. Look in the path if we contain no directory separator. 11768as_myself= 11769case $0 in #(( 11770 *[\\/]* ) as_myself=$0 ;; 11771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11772for as_dir in $PATH 11773do 11774 IFS=$as_save_IFS 11775 test -z "$as_dir" && as_dir=. 11776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11777 done 11778IFS=$as_save_IFS 11779 11780 ;; 11781esac 11782# We did not find ourselves, most probably we were run as `sh COMMAND' 11783# in which case we are not to be found in the path. 11784if test "x$as_myself" = x; then 11785 as_myself=$0 11786fi 11787if test ! -f "$as_myself"; then 11788 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11789 exit 1 11790fi 11791 11792# Unset variables that we do not need and which cause bugs (e.g. in 11793# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11794# suppresses any "Segmentation fault" message there. '((' could 11795# trigger a bug in pdksh 5.2.14. 11796for as_var in BASH_ENV ENV MAIL MAILPATH 11797do eval test x\${$as_var+set} = xset \ 11798 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11799done 11800PS1='$ ' 11801PS2='> ' 11802PS4='+ ' 11803 11804# NLS nuisances. 11805LC_ALL=C 11806export LC_ALL 11807LANGUAGE=C 11808export LANGUAGE 11809 11810# CDPATH. 11811(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11812 11813 11814# as_fn_error STATUS ERROR [LINENO LOG_FD] 11815# ---------------------------------------- 11816# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11817# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11818# script with STATUS, using 1 if that was 0. 11819as_fn_error () 11820{ 11821 as_status=$1; test $as_status -eq 0 && as_status=1 11822 if test "$4"; then 11823 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11824 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11825 fi 11826 $as_echo "$as_me: error: $2" >&2 11827 as_fn_exit $as_status 11828} # as_fn_error 11829 11830 11831# as_fn_set_status STATUS 11832# ----------------------- 11833# Set $? to STATUS, without forking. 11834as_fn_set_status () 11835{ 11836 return $1 11837} # as_fn_set_status 11838 11839# as_fn_exit STATUS 11840# ----------------- 11841# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11842as_fn_exit () 11843{ 11844 set +e 11845 as_fn_set_status $1 11846 exit $1 11847} # as_fn_exit 11848 11849# as_fn_unset VAR 11850# --------------- 11851# Portably unset VAR. 11852as_fn_unset () 11853{ 11854 { eval $1=; unset $1;} 11855} 11856as_unset=as_fn_unset 11857# as_fn_append VAR VALUE 11858# ---------------------- 11859# Append the text in VALUE to the end of the definition contained in VAR. Take 11860# advantage of any shell optimizations that allow amortized linear growth over 11861# repeated appends, instead of the typical quadratic growth present in naive 11862# implementations. 11863if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11864 eval 'as_fn_append () 11865 { 11866 eval $1+=\$2 11867 }' 11868else 11869 as_fn_append () 11870 { 11871 eval $1=\$$1\$2 11872 } 11873fi # as_fn_append 11874 11875# as_fn_arith ARG... 11876# ------------------ 11877# Perform arithmetic evaluation on the ARGs, and store the result in the 11878# global $as_val. Take advantage of shells that can avoid forks. The arguments 11879# must be portable across $(()) and expr. 11880if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11881 eval 'as_fn_arith () 11882 { 11883 as_val=$(( $* )) 11884 }' 11885else 11886 as_fn_arith () 11887 { 11888 as_val=`expr "$@" || test $? -eq 1` 11889 } 11890fi # as_fn_arith 11891 11892 11893if expr a : '\(a\)' >/dev/null 2>&1 && 11894 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11895 as_expr=expr 11896else 11897 as_expr=false 11898fi 11899 11900if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11901 as_basename=basename 11902else 11903 as_basename=false 11904fi 11905 11906if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11907 as_dirname=dirname 11908else 11909 as_dirname=false 11910fi 11911 11912as_me=`$as_basename -- "$0" || 11913$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11914 X"$0" : 'X\(//\)$' \| \ 11915 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11916$as_echo X/"$0" | 11917 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11918 s//\1/ 11919 q 11920 } 11921 /^X\/\(\/\/\)$/{ 11922 s//\1/ 11923 q 11924 } 11925 /^X\/\(\/\).*/{ 11926 s//\1/ 11927 q 11928 } 11929 s/.*/./; q'` 11930 11931# Avoid depending upon Character Ranges. 11932as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11933as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11934as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11935as_cr_digits='0123456789' 11936as_cr_alnum=$as_cr_Letters$as_cr_digits 11937 11938ECHO_C= ECHO_N= ECHO_T= 11939case `echo -n x` in #((((( 11940-n*) 11941 case `echo 'xy\c'` in 11942 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11943 xy) ECHO_C='\c';; 11944 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11945 ECHO_T=' ';; 11946 esac;; 11947*) 11948 ECHO_N='-n';; 11949esac 11950 11951rm -f conf$$ conf$$.exe conf$$.file 11952if test -d conf$$.dir; then 11953 rm -f conf$$.dir/conf$$.file 11954else 11955 rm -f conf$$.dir 11956 mkdir conf$$.dir 2>/dev/null 11957fi 11958if (echo >conf$$.file) 2>/dev/null; then 11959 if ln -s conf$$.file conf$$ 2>/dev/null; then 11960 as_ln_s='ln -s' 11961 # ... but there are two gotchas: 11962 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11963 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11964 # In both cases, we have to default to `cp -p'. 11965 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11966 as_ln_s='cp -p' 11967 elif ln conf$$.file conf$$ 2>/dev/null; then 11968 as_ln_s=ln 11969 else 11970 as_ln_s='cp -p' 11971 fi 11972else 11973 as_ln_s='cp -p' 11974fi 11975rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11976rmdir conf$$.dir 2>/dev/null 11977 11978 11979# as_fn_mkdir_p 11980# ------------- 11981# Create "$as_dir" as a directory, including parents if necessary. 11982as_fn_mkdir_p () 11983{ 11984 11985 case $as_dir in #( 11986 -*) as_dir=./$as_dir;; 11987 esac 11988 test -d "$as_dir" || eval $as_mkdir_p || { 11989 as_dirs= 11990 while :; do 11991 case $as_dir in #( 11992 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11993 *) as_qdir=$as_dir;; 11994 esac 11995 as_dirs="'$as_qdir' $as_dirs" 11996 as_dir=`$as_dirname -- "$as_dir" || 11997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11998 X"$as_dir" : 'X\(//\)[^/]' \| \ 11999 X"$as_dir" : 'X\(//\)$' \| \ 12000 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12001$as_echo X"$as_dir" | 12002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12003 s//\1/ 12004 q 12005 } 12006 /^X\(\/\/\)[^/].*/{ 12007 s//\1/ 12008 q 12009 } 12010 /^X\(\/\/\)$/{ 12011 s//\1/ 12012 q 12013 } 12014 /^X\(\/\).*/{ 12015 s//\1/ 12016 q 12017 } 12018 s/.*/./; q'` 12019 test -d "$as_dir" && break 12020 done 12021 test -z "$as_dirs" || eval "mkdir $as_dirs" 12022 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12023 12024 12025} # as_fn_mkdir_p 12026if mkdir -p . 2>/dev/null; then 12027 as_mkdir_p='mkdir -p "$as_dir"' 12028else 12029 test -d ./-p && rmdir ./-p 12030 as_mkdir_p=false 12031fi 12032 12033if test -x / >/dev/null 2>&1; then 12034 as_test_x='test -x' 12035else 12036 if ls -dL / >/dev/null 2>&1; then 12037 as_ls_L_option=L 12038 else 12039 as_ls_L_option= 12040 fi 12041 as_test_x=' 12042 eval sh -c '\'' 12043 if test -d "$1"; then 12044 test -d "$1/."; 12045 else 12046 case $1 in #( 12047 -*)set "./$1";; 12048 esac; 12049 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12050 ???[sx]*):;;*)false;;esac;fi 12051 '\'' sh 12052 ' 12053fi 12054as_executable_p=$as_test_x 12055 12056# Sed expression to map a string onto a valid CPP name. 12057as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12058 12059# Sed expression to map a string onto a valid variable name. 12060as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12061 12062 12063exec 6>&1 12064## ----------------------------------- ## 12065## Main body of $CONFIG_STATUS script. ## 12066## ----------------------------------- ## 12067_ASEOF 12068test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12069 12070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12071# Save the log message, to keep $0 and so on meaningful, and to 12072# report actual input values of CONFIG_FILES etc. instead of their 12073# values after options handling. 12074ac_log=" 12075This file was extended by libXcomposite $as_me 0.4.3, which was 12076generated by GNU Autoconf 2.68. Invocation command line was 12077 12078 CONFIG_FILES = $CONFIG_FILES 12079 CONFIG_HEADERS = $CONFIG_HEADERS 12080 CONFIG_LINKS = $CONFIG_LINKS 12081 CONFIG_COMMANDS = $CONFIG_COMMANDS 12082 $ $0 $@ 12083 12084on `(hostname || uname -n) 2>/dev/null | sed 1q` 12085" 12086 12087_ACEOF 12088 12089case $ac_config_files in *" 12090"*) set x $ac_config_files; shift; ac_config_files=$*;; 12091esac 12092 12093case $ac_config_headers in *" 12094"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12095esac 12096 12097 12098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12099# Files that config.status was made for. 12100config_files="$ac_config_files" 12101config_headers="$ac_config_headers" 12102config_commands="$ac_config_commands" 12103 12104_ACEOF 12105 12106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12107ac_cs_usage="\ 12108\`$as_me' instantiates files and other configuration actions 12109from templates according to the current configuration. Unless the files 12110and actions are specified as TAGs, all are instantiated by default. 12111 12112Usage: $0 [OPTION]... [TAG]... 12113 12114 -h, --help print this help, then exit 12115 -V, --version print version number and configuration settings, then exit 12116 --config print configuration, then exit 12117 -q, --quiet, --silent 12118 do not print progress messages 12119 -d, --debug don't remove temporary files 12120 --recheck update $as_me by reconfiguring in the same conditions 12121 --file=FILE[:TEMPLATE] 12122 instantiate the configuration file FILE 12123 --header=FILE[:TEMPLATE] 12124 instantiate the configuration header FILE 12125 12126Configuration files: 12127$config_files 12128 12129Configuration headers: 12130$config_headers 12131 12132Configuration commands: 12133$config_commands 12134 12135Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12136 12137_ACEOF 12138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12139ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12140ac_cs_version="\\ 12141libXcomposite config.status 0.4.3 12142configured by $0, generated by GNU Autoconf 2.68, 12143 with options \\"\$ac_cs_config\\" 12144 12145Copyright (C) 2010 Free Software Foundation, Inc. 12146This config.status script is free software; the Free Software Foundation 12147gives unlimited permission to copy, distribute and modify it." 12148 12149ac_pwd='$ac_pwd' 12150srcdir='$srcdir' 12151INSTALL='$INSTALL' 12152MKDIR_P='$MKDIR_P' 12153AWK='$AWK' 12154test -n "\$AWK" || AWK=awk 12155_ACEOF 12156 12157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12158# The default lists apply if the user does not specify any file. 12159ac_need_defaults=: 12160while test $# != 0 12161do 12162 case $1 in 12163 --*=?*) 12164 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12165 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12166 ac_shift=: 12167 ;; 12168 --*=) 12169 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12170 ac_optarg= 12171 ac_shift=: 12172 ;; 12173 *) 12174 ac_option=$1 12175 ac_optarg=$2 12176 ac_shift=shift 12177 ;; 12178 esac 12179 12180 case $ac_option in 12181 # Handling of the options. 12182 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12183 ac_cs_recheck=: ;; 12184 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12185 $as_echo "$ac_cs_version"; exit ;; 12186 --config | --confi | --conf | --con | --co | --c ) 12187 $as_echo "$ac_cs_config"; exit ;; 12188 --debug | --debu | --deb | --de | --d | -d ) 12189 debug=: ;; 12190 --file | --fil | --fi | --f ) 12191 $ac_shift 12192 case $ac_optarg in 12193 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12194 '') as_fn_error $? "missing file argument" ;; 12195 esac 12196 as_fn_append CONFIG_FILES " '$ac_optarg'" 12197 ac_need_defaults=false;; 12198 --header | --heade | --head | --hea ) 12199 $ac_shift 12200 case $ac_optarg in 12201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12202 esac 12203 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12204 ac_need_defaults=false;; 12205 --he | --h) 12206 # Conflict between --help and --header 12207 as_fn_error $? "ambiguous option: \`$1' 12208Try \`$0 --help' for more information.";; 12209 --help | --hel | -h ) 12210 $as_echo "$ac_cs_usage"; exit ;; 12211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12212 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12213 ac_cs_silent=: ;; 12214 12215 # This is an error. 12216 -*) as_fn_error $? "unrecognized option: \`$1' 12217Try \`$0 --help' for more information." ;; 12218 12219 *) as_fn_append ac_config_targets " $1" 12220 ac_need_defaults=false ;; 12221 12222 esac 12223 shift 12224done 12225 12226ac_configure_extra_args= 12227 12228if $ac_cs_silent; then 12229 exec 6>/dev/null 12230 ac_configure_extra_args="$ac_configure_extra_args --silent" 12231fi 12232 12233_ACEOF 12234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12235if \$ac_cs_recheck; then 12236 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12237 shift 12238 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12239 CONFIG_SHELL='$SHELL' 12240 export CONFIG_SHELL 12241 exec "\$@" 12242fi 12243 12244_ACEOF 12245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12246exec 5>>config.log 12247{ 12248 echo 12249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12250## Running $as_me. ## 12251_ASBOX 12252 $as_echo "$ac_log" 12253} >&5 12254 12255_ACEOF 12256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12257# 12258# INIT-COMMANDS 12259# 12260AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12261 12262 12263# The HP-UX ksh and POSIX shell print the target directory to stdout 12264# if CDPATH is set. 12265(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12266 12267sed_quote_subst='$sed_quote_subst' 12268double_quote_subst='$double_quote_subst' 12269delay_variable_subst='$delay_variable_subst' 12270macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12271macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12272enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12273enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12274pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12275enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12276SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12277ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12278host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12279host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12280host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12281build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12282build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12283build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12284SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12285Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12286GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12287EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12288FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12289LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12290NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12291LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12292max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12293ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12294exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12295lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12296lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12297lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12298reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12299reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12300OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12301deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12302file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12303AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12304AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12305STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12306RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12307old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12308old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12309old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12310lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12311CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12312CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12313compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12314GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12315lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12316lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12317lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12318lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 12319objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12320MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12321lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12322lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12323lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12324lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12325lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12326need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12327DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12328NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12329LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12330OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12331OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12332libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12333shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12334extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12335archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12336enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12337export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12338whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12339compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12340old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12341old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12342archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12343archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12344module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12345module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12346with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12347allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12348no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12349hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12350hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12351hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12352hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12353hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12354hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12355hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12356hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12357inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12358link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12359fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12360always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12361export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12362exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12363include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12364prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12365file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12366variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12367need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12368need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12369version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12370runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12371shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12372shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12373libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12374library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12375soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12376install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12377postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12378postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12379finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12380finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12381hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12382sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12383sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12384hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12385enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12386enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12387enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12388old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12389striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12390 12391LTCC='$LTCC' 12392LTCFLAGS='$LTCFLAGS' 12393compiler='$compiler_DEFAULT' 12394 12395# A function that is used when there is no print builtin or printf. 12396func_fallback_echo () 12397{ 12398 eval 'cat <<_LTECHO_EOF 12399\$1 12400_LTECHO_EOF' 12401} 12402 12403# Quote evaled strings. 12404for var in SHELL \ 12405ECHO \ 12406SED \ 12407GREP \ 12408EGREP \ 12409FGREP \ 12410LD \ 12411NM \ 12412LN_S \ 12413lt_SP2NL \ 12414lt_NL2SP \ 12415reload_flag \ 12416OBJDUMP \ 12417deplibs_check_method \ 12418file_magic_cmd \ 12419AR \ 12420AR_FLAGS \ 12421STRIP \ 12422RANLIB \ 12423CC \ 12424CFLAGS \ 12425compiler \ 12426lt_cv_sys_global_symbol_pipe \ 12427lt_cv_sys_global_symbol_to_cdecl \ 12428lt_cv_sys_global_symbol_to_c_name_address \ 12429lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12430lt_prog_compiler_no_builtin_flag \ 12431lt_prog_compiler_wl \ 12432lt_prog_compiler_pic \ 12433lt_prog_compiler_static \ 12434lt_cv_prog_compiler_c_o \ 12435need_locks \ 12436DSYMUTIL \ 12437NMEDIT \ 12438LIPO \ 12439OTOOL \ 12440OTOOL64 \ 12441shrext_cmds \ 12442export_dynamic_flag_spec \ 12443whole_archive_flag_spec \ 12444compiler_needs_object \ 12445with_gnu_ld \ 12446allow_undefined_flag \ 12447no_undefined_flag \ 12448hardcode_libdir_flag_spec \ 12449hardcode_libdir_flag_spec_ld \ 12450hardcode_libdir_separator \ 12451fix_srcfile_path \ 12452exclude_expsyms \ 12453include_expsyms \ 12454file_list_spec \ 12455variables_saved_for_relink \ 12456libname_spec \ 12457library_names_spec \ 12458soname_spec \ 12459install_override_mode \ 12460finish_eval \ 12461old_striplib \ 12462striplib; do 12463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12464 *[\\\\\\\`\\"\\\$]*) 12465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12466 ;; 12467 *) 12468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12469 ;; 12470 esac 12471done 12472 12473# Double-quote double-evaled strings. 12474for var in reload_cmds \ 12475old_postinstall_cmds \ 12476old_postuninstall_cmds \ 12477old_archive_cmds \ 12478extract_expsyms_cmds \ 12479old_archive_from_new_cmds \ 12480old_archive_from_expsyms_cmds \ 12481archive_cmds \ 12482archive_expsym_cmds \ 12483module_cmds \ 12484module_expsym_cmds \ 12485export_symbols_cmds \ 12486prelink_cmds \ 12487postinstall_cmds \ 12488postuninstall_cmds \ 12489finish_cmds \ 12490sys_lib_search_path_spec \ 12491sys_lib_dlsearch_path_spec; do 12492 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12493 *[\\\\\\\`\\"\\\$]*) 12494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12495 ;; 12496 *) 12497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12498 ;; 12499 esac 12500done 12501 12502ac_aux_dir='$ac_aux_dir' 12503xsi_shell='$xsi_shell' 12504lt_shell_append='$lt_shell_append' 12505 12506# See if we are running on zsh, and set the options which allow our 12507# commands through without removal of \ escapes INIT. 12508if test -n "\${ZSH_VERSION+set}" ; then 12509 setopt NO_GLOB_SUBST 12510fi 12511 12512 12513 PACKAGE='$PACKAGE' 12514 VERSION='$VERSION' 12515 TIMESTAMP='$TIMESTAMP' 12516 RM='$RM' 12517 ofile='$ofile' 12518 12519 12520 12521 12522_ACEOF 12523 12524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12525 12526# Handling of arguments. 12527for ac_config_target in $ac_config_targets 12528do 12529 case $ac_config_target in 12530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12531 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12532 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12533 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12534 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12535 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12536 "xcomposite.pc") CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;; 12537 12538 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12539 esac 12540done 12541 12542 12543# If the user did not use the arguments to specify the items to instantiate, 12544# then the envvar interface is used. Set only those that are not. 12545# We use the long form for the default assignment because of an extremely 12546# bizarre bug on SunOS 4.1.3. 12547if $ac_need_defaults; then 12548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12551fi 12552 12553# Have a temporary directory for convenience. Make it in the build tree 12554# simply because there is no reason against having it here, and in addition, 12555# creating and moving files from /tmp can sometimes cause problems. 12556# Hook for its removal unless debugging. 12557# Note that there is a small window in which the directory will not be cleaned: 12558# after its creation but before its name has been assigned to `$tmp'. 12559$debug || 12560{ 12561 tmp= ac_tmp= 12562 trap 'exit_status=$? 12563 : "${ac_tmp:=$tmp}" 12564 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12565' 0 12566 trap 'as_fn_exit 1' 1 2 13 15 12567} 12568# Create a (secure) tmp directory for tmp files. 12569 12570{ 12571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12572 test -d "$tmp" 12573} || 12574{ 12575 tmp=./conf$$-$RANDOM 12576 (umask 077 && mkdir "$tmp") 12577} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12578ac_tmp=$tmp 12579 12580# Set up the scripts for CONFIG_FILES section. 12581# No need to generate them if there are no CONFIG_FILES. 12582# This happens for instance with `./config.status config.h'. 12583if test -n "$CONFIG_FILES"; then 12584 12585 12586ac_cr=`echo X | tr X '\015'` 12587# On cygwin, bash can eat \r inside `` if the user requested igncr. 12588# But we know of no other shell where ac_cr would be empty at this 12589# point, so we can use a bashism as a fallback. 12590if test "x$ac_cr" = x; then 12591 eval ac_cr=\$\'\\r\' 12592fi 12593ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12594if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12595 ac_cs_awk_cr='\\r' 12596else 12597 ac_cs_awk_cr=$ac_cr 12598fi 12599 12600echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12601_ACEOF 12602 12603 12604{ 12605 echo "cat >conf$$subs.awk <<_ACEOF" && 12606 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12607 echo "_ACEOF" 12608} >conf$$subs.sh || 12609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12610ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12611ac_delim='%!_!# ' 12612for ac_last_try in false false false false false :; do 12613 . ./conf$$subs.sh || 12614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12615 12616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12617 if test $ac_delim_n = $ac_delim_num; then 12618 break 12619 elif $ac_last_try; then 12620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12621 else 12622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12623 fi 12624done 12625rm -f conf$$subs.sh 12626 12627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12628cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12629_ACEOF 12630sed -n ' 12631h 12632s/^/S["/; s/!.*/"]=/ 12633p 12634g 12635s/^[^!]*!// 12636:repl 12637t repl 12638s/'"$ac_delim"'$// 12639t delim 12640:nl 12641h 12642s/\(.\{148\}\)..*/\1/ 12643t more1 12644s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12645p 12646n 12647b repl 12648:more1 12649s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12650p 12651g 12652s/.\{148\}// 12653t nl 12654:delim 12655h 12656s/\(.\{148\}\)..*/\1/ 12657t more2 12658s/["\\]/\\&/g; s/^/"/; s/$/"/ 12659p 12660b 12661:more2 12662s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12663p 12664g 12665s/.\{148\}// 12666t delim 12667' <conf$$subs.awk | sed ' 12668/^[^""]/{ 12669 N 12670 s/\n// 12671} 12672' >>$CONFIG_STATUS || ac_write_fail=1 12673rm -f conf$$subs.awk 12674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12675_ACAWK 12676cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12677 for (key in S) S_is_set[key] = 1 12678 FS = "" 12679 12680} 12681{ 12682 line = $ 0 12683 nfields = split(line, field, "@") 12684 substed = 0 12685 len = length(field[1]) 12686 for (i = 2; i < nfields; i++) { 12687 key = field[i] 12688 keylen = length(key) 12689 if (S_is_set[key]) { 12690 value = S[key] 12691 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12692 len += length(value) + length(field[++i]) 12693 substed = 1 12694 } else 12695 len += 1 + keylen 12696 } 12697 12698 print line 12699} 12700 12701_ACAWK 12702_ACEOF 12703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12704if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12705 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12706else 12707 cat 12708fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12709 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12710_ACEOF 12711 12712# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12713# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12714# trailing colons and then remove the whole line if VPATH becomes empty 12715# (actually we leave an empty line to preserve line numbers). 12716if test "x$srcdir" = x.; then 12717 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12718h 12719s/// 12720s/^/:/ 12721s/[ ]*$/:/ 12722s/:\$(srcdir):/:/g 12723s/:\${srcdir}:/:/g 12724s/:@srcdir@:/:/g 12725s/^:*// 12726s/:*$// 12727x 12728s/\(=[ ]*\).*/\1/ 12729G 12730s/\n// 12731s/^[^=]*=[ ]*$// 12732}' 12733fi 12734 12735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12736fi # test -n "$CONFIG_FILES" 12737 12738# Set up the scripts for CONFIG_HEADERS section. 12739# No need to generate them if there are no CONFIG_HEADERS. 12740# This happens for instance with `./config.status Makefile'. 12741if test -n "$CONFIG_HEADERS"; then 12742cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12743BEGIN { 12744_ACEOF 12745 12746# Transform confdefs.h into an awk script `defines.awk', embedded as 12747# here-document in config.status, that substitutes the proper values into 12748# config.h.in to produce config.h. 12749 12750# Create a delimiter string that does not exist in confdefs.h, to ease 12751# handling of long lines. 12752ac_delim='%!_!# ' 12753for ac_last_try in false false :; do 12754 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12755 if test -z "$ac_tt"; then 12756 break 12757 elif $ac_last_try; then 12758 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12759 else 12760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12761 fi 12762done 12763 12764# For the awk script, D is an array of macro values keyed by name, 12765# likewise P contains macro parameters if any. Preserve backslash 12766# newline sequences. 12767 12768ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12769sed -n ' 12770s/.\{148\}/&'"$ac_delim"'/g 12771t rset 12772:rset 12773s/^[ ]*#[ ]*define[ ][ ]*/ / 12774t def 12775d 12776:def 12777s/\\$// 12778t bsnl 12779s/["\\]/\\&/g 12780s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12781D["\1"]=" \3"/p 12782s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12783d 12784:bsnl 12785s/["\\]/\\&/g 12786s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12787D["\1"]=" \3\\\\\\n"\\/p 12788t cont 12789s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12790t cont 12791d 12792:cont 12793n 12794s/.\{148\}/&'"$ac_delim"'/g 12795t clear 12796:clear 12797s/\\$// 12798t bsnlc 12799s/["\\]/\\&/g; s/^/"/; s/$/"/p 12800d 12801:bsnlc 12802s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12803b cont 12804' <confdefs.h | sed ' 12805s/'"$ac_delim"'/"\\\ 12806"/g' >>$CONFIG_STATUS || ac_write_fail=1 12807 12808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12809 for (key in D) D_is_set[key] = 1 12810 FS = "" 12811} 12812/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12813 line = \$ 0 12814 split(line, arg, " ") 12815 if (arg[1] == "#") { 12816 defundef = arg[2] 12817 mac1 = arg[3] 12818 } else { 12819 defundef = substr(arg[1], 2) 12820 mac1 = arg[2] 12821 } 12822 split(mac1, mac2, "(") #) 12823 macro = mac2[1] 12824 prefix = substr(line, 1, index(line, defundef) - 1) 12825 if (D_is_set[macro]) { 12826 # Preserve the white space surrounding the "#". 12827 print prefix "define", macro P[macro] D[macro] 12828 next 12829 } else { 12830 # Replace #undef with comments. This is necessary, for example, 12831 # in the case of _POSIX_SOURCE, which is predefined and required 12832 # on some systems where configure will not decide to define it. 12833 if (defundef == "undef") { 12834 print "/*", prefix defundef, macro, "*/" 12835 next 12836 } 12837 } 12838} 12839{ print } 12840_ACAWK 12841_ACEOF 12842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12843 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12844fi # test -n "$CONFIG_HEADERS" 12845 12846 12847eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12848shift 12849for ac_tag 12850do 12851 case $ac_tag in 12852 :[FHLC]) ac_mode=$ac_tag; continue;; 12853 esac 12854 case $ac_mode$ac_tag in 12855 :[FHL]*:*);; 12856 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12857 :[FH]-) ac_tag=-:-;; 12858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12859 esac 12860 ac_save_IFS=$IFS 12861 IFS=: 12862 set x $ac_tag 12863 IFS=$ac_save_IFS 12864 shift 12865 ac_file=$1 12866 shift 12867 12868 case $ac_mode in 12869 :L) ac_source=$1;; 12870 :[FH]) 12871 ac_file_inputs= 12872 for ac_f 12873 do 12874 case $ac_f in 12875 -) ac_f="$ac_tmp/stdin";; 12876 *) # Look for the file first in the build tree, then in the source tree 12877 # (if the path is not absolute). The absolute path cannot be DOS-style, 12878 # because $ac_f cannot contain `:'. 12879 test -f "$ac_f" || 12880 case $ac_f in 12881 [\\/$]*) false;; 12882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12883 esac || 12884 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12885 esac 12886 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12887 as_fn_append ac_file_inputs " '$ac_f'" 12888 done 12889 12890 # Let's still pretend it is `configure' which instantiates (i.e., don't 12891 # use $as_me), people would be surprised to read: 12892 # /* config.h. Generated by config.status. */ 12893 configure_input='Generated from '` 12894 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12895 `' by configure.' 12896 if test x"$ac_file" != x-; then 12897 configure_input="$ac_file. $configure_input" 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12899$as_echo "$as_me: creating $ac_file" >&6;} 12900 fi 12901 # Neutralize special characters interpreted by sed in replacement strings. 12902 case $configure_input in #( 12903 *\&* | *\|* | *\\* ) 12904 ac_sed_conf_input=`$as_echo "$configure_input" | 12905 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12906 *) ac_sed_conf_input=$configure_input;; 12907 esac 12908 12909 case $ac_tag in 12910 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12912 esac 12913 ;; 12914 esac 12915 12916 ac_dir=`$as_dirname -- "$ac_file" || 12917$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12918 X"$ac_file" : 'X\(//\)[^/]' \| \ 12919 X"$ac_file" : 'X\(//\)$' \| \ 12920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12921$as_echo X"$ac_file" | 12922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12923 s//\1/ 12924 q 12925 } 12926 /^X\(\/\/\)[^/].*/{ 12927 s//\1/ 12928 q 12929 } 12930 /^X\(\/\/\)$/{ 12931 s//\1/ 12932 q 12933 } 12934 /^X\(\/\).*/{ 12935 s//\1/ 12936 q 12937 } 12938 s/.*/./; q'` 12939 as_dir="$ac_dir"; as_fn_mkdir_p 12940 ac_builddir=. 12941 12942case "$ac_dir" in 12943.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12944*) 12945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12946 # A ".." for each directory in $ac_dir_suffix. 12947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12948 case $ac_top_builddir_sub in 12949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12951 esac ;; 12952esac 12953ac_abs_top_builddir=$ac_pwd 12954ac_abs_builddir=$ac_pwd$ac_dir_suffix 12955# for backward compatibility: 12956ac_top_builddir=$ac_top_build_prefix 12957 12958case $srcdir in 12959 .) # We are building in place. 12960 ac_srcdir=. 12961 ac_top_srcdir=$ac_top_builddir_sub 12962 ac_abs_top_srcdir=$ac_pwd ;; 12963 [\\/]* | ?:[\\/]* ) # Absolute name. 12964 ac_srcdir=$srcdir$ac_dir_suffix; 12965 ac_top_srcdir=$srcdir 12966 ac_abs_top_srcdir=$srcdir ;; 12967 *) # Relative name. 12968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12969 ac_top_srcdir=$ac_top_build_prefix$srcdir 12970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12971esac 12972ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12973 12974 12975 case $ac_mode in 12976 :F) 12977 # 12978 # CONFIG_FILE 12979 # 12980 12981 case $INSTALL in 12982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12984 esac 12985 ac_MKDIR_P=$MKDIR_P 12986 case $MKDIR_P in 12987 [\\/$]* | ?:[\\/]* ) ;; 12988 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12989 esac 12990_ACEOF 12991 12992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12993# If the template does not know about datarootdir, expand it. 12994# FIXME: This hack should be removed a few years after 2.60. 12995ac_datarootdir_hack=; ac_datarootdir_seen= 12996ac_sed_dataroot=' 12997/datarootdir/ { 12998 p 12999 q 13000} 13001/@datadir@/p 13002/@docdir@/p 13003/@infodir@/p 13004/@localedir@/p 13005/@mandir@/p' 13006case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13007*datarootdir*) ac_datarootdir_seen=yes;; 13008*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13010$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13011_ACEOF 13012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13013 ac_datarootdir_hack=' 13014 s&@datadir@&$datadir&g 13015 s&@docdir@&$docdir&g 13016 s&@infodir@&$infodir&g 13017 s&@localedir@&$localedir&g 13018 s&@mandir@&$mandir&g 13019 s&\\\${datarootdir}&$datarootdir&g' ;; 13020esac 13021_ACEOF 13022 13023# Neutralize VPATH when `$srcdir' = `.'. 13024# Shell code in configure.ac might set extrasub. 13025# FIXME: do we really want to maintain this feature? 13026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13027ac_sed_extra="$ac_vpsub 13028$extrasub 13029_ACEOF 13030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13031:t 13032/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13033s|@configure_input@|$ac_sed_conf_input|;t t 13034s&@top_builddir@&$ac_top_builddir_sub&;t t 13035s&@top_build_prefix@&$ac_top_build_prefix&;t t 13036s&@srcdir@&$ac_srcdir&;t t 13037s&@abs_srcdir@&$ac_abs_srcdir&;t t 13038s&@top_srcdir@&$ac_top_srcdir&;t t 13039s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13040s&@builddir@&$ac_builddir&;t t 13041s&@abs_builddir@&$ac_abs_builddir&;t t 13042s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13043s&@INSTALL@&$ac_INSTALL&;t t 13044s&@MKDIR_P@&$ac_MKDIR_P&;t t 13045$ac_datarootdir_hack 13046" 13047eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13049 13050test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13053 "$ac_tmp/out"`; test -z "$ac_out"; } && 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13055which seems to be undefined. Please make sure it is defined" >&5 13056$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13057which seems to be undefined. Please make sure it is defined" >&2;} 13058 13059 rm -f "$ac_tmp/stdin" 13060 case $ac_file in 13061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13063 esac \ 13064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13065 ;; 13066 :H) 13067 # 13068 # CONFIG_HEADER 13069 # 13070 if test x"$ac_file" != x-; then 13071 { 13072 $as_echo "/* $configure_input */" \ 13073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13074 } >"$ac_tmp/config.h" \ 13075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13076 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13078$as_echo "$as_me: $ac_file is unchanged" >&6;} 13079 else 13080 rm -f "$ac_file" 13081 mv "$ac_tmp/config.h" "$ac_file" \ 13082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13083 fi 13084 else 13085 $as_echo "/* $configure_input */" \ 13086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13087 || as_fn_error $? "could not create -" "$LINENO" 5 13088 fi 13089# Compute "$ac_file"'s index in $config_headers. 13090_am_arg="$ac_file" 13091_am_stamp_count=1 13092for _am_header in $config_headers :; do 13093 case $_am_header in 13094 $_am_arg | $_am_arg:* ) 13095 break ;; 13096 * ) 13097 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13098 esac 13099done 13100echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13101$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13102 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13103 X"$_am_arg" : 'X\(//\)$' \| \ 13104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13105$as_echo X"$_am_arg" | 13106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13107 s//\1/ 13108 q 13109 } 13110 /^X\(\/\/\)[^/].*/{ 13111 s//\1/ 13112 q 13113 } 13114 /^X\(\/\/\)$/{ 13115 s//\1/ 13116 q 13117 } 13118 /^X\(\/\).*/{ 13119 s//\1/ 13120 q 13121 } 13122 s/.*/./; q'`/stamp-h$_am_stamp_count 13123 ;; 13124 13125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13126$as_echo "$as_me: executing $ac_file commands" >&6;} 13127 ;; 13128 esac 13129 13130 13131 case $ac_file$ac_mode in 13132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13133 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13134 # are listed without --file. Let's play safe and only enable the eval 13135 # if we detect the quoting. 13136 case $CONFIG_FILES in 13137 *\'*) eval set x "$CONFIG_FILES" ;; 13138 *) set x $CONFIG_FILES ;; 13139 esac 13140 shift 13141 for mf 13142 do 13143 # Strip MF so we end up with the name of the file. 13144 mf=`echo "$mf" | sed -e 's/:.*$//'` 13145 # Check whether this is an Automake generated Makefile or not. 13146 # We used to match only the files named `Makefile.in', but 13147 # some people rename them; so instead we look at the file content. 13148 # Grep'ing the first line is not enough: some people post-process 13149 # each Makefile.in and add a new line on top of each file to say so. 13150 # Grep'ing the whole file is not good either: AIX grep has a line 13151 # limit of 2048, but all sed's we know have understand at least 4000. 13152 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13153 dirpart=`$as_dirname -- "$mf" || 13154$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13155 X"$mf" : 'X\(//\)[^/]' \| \ 13156 X"$mf" : 'X\(//\)$' \| \ 13157 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13158$as_echo X"$mf" | 13159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13160 s//\1/ 13161 q 13162 } 13163 /^X\(\/\/\)[^/].*/{ 13164 s//\1/ 13165 q 13166 } 13167 /^X\(\/\/\)$/{ 13168 s//\1/ 13169 q 13170 } 13171 /^X\(\/\).*/{ 13172 s//\1/ 13173 q 13174 } 13175 s/.*/./; q'` 13176 else 13177 continue 13178 fi 13179 # Extract the definition of DEPDIR, am__include, and am__quote 13180 # from the Makefile without running `make'. 13181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13182 test -z "$DEPDIR" && continue 13183 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13184 test -z "am__include" && continue 13185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13186 # When using ansi2knr, U may be empty or an underscore; expand it 13187 U=`sed -n 's/^U = //p' < "$mf"` 13188 # Find all dependency output files, they are included files with 13189 # $(DEPDIR) in their names. We invoke sed twice because it is the 13190 # simplest approach to changing $(DEPDIR) to its actual value in the 13191 # expansion. 13192 for file in `sed -n " 13193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13195 # Make sure the directory exists. 13196 test -f "$dirpart/$file" && continue 13197 fdir=`$as_dirname -- "$file" || 13198$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13199 X"$file" : 'X\(//\)[^/]' \| \ 13200 X"$file" : 'X\(//\)$' \| \ 13201 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13202$as_echo X"$file" | 13203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13204 s//\1/ 13205 q 13206 } 13207 /^X\(\/\/\)[^/].*/{ 13208 s//\1/ 13209 q 13210 } 13211 /^X\(\/\/\)$/{ 13212 s//\1/ 13213 q 13214 } 13215 /^X\(\/\).*/{ 13216 s//\1/ 13217 q 13218 } 13219 s/.*/./; q'` 13220 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13221 # echo "creating $dirpart/$file" 13222 echo '# dummy' > "$dirpart/$file" 13223 done 13224 done 13225} 13226 ;; 13227 "libtool":C) 13228 13229 # See if we are running on zsh, and set the options which allow our 13230 # commands through without removal of \ escapes. 13231 if test -n "${ZSH_VERSION+set}" ; then 13232 setopt NO_GLOB_SUBST 13233 fi 13234 13235 cfgfile="${ofile}T" 13236 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13237 $RM "$cfgfile" 13238 13239 cat <<_LT_EOF >> "$cfgfile" 13240#! $SHELL 13241 13242# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13243# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13244# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13245# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13246# 13247# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13248# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 13249# Inc. 13250# Written by Gordon Matzigkeit, 1996 13251# 13252# This file is part of GNU Libtool. 13253# 13254# GNU Libtool is free software; you can redistribute it and/or 13255# modify it under the terms of the GNU General Public License as 13256# published by the Free Software Foundation; either version 2 of 13257# the License, or (at your option) any later version. 13258# 13259# As a special exception to the GNU General Public License, 13260# if you distribute this file as part of a program or library that 13261# is built using GNU Libtool, you may include this file under the 13262# same distribution terms that you use for the rest of that program. 13263# 13264# GNU Libtool is distributed in the hope that it will be useful, 13265# but WITHOUT ANY WARRANTY; without even the implied warranty of 13266# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13267# GNU General Public License for more details. 13268# 13269# You should have received a copy of the GNU General Public License 13270# along with GNU Libtool; see the file COPYING. If not, a copy 13271# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13272# obtained by writing to the Free Software Foundation, Inc., 13273# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13274 13275 13276# The names of the tagged configurations supported by this script. 13277available_tags="" 13278 13279# ### BEGIN LIBTOOL CONFIG 13280 13281# Which release of libtool.m4 was used? 13282macro_version=$macro_version 13283macro_revision=$macro_revision 13284 13285# Whether or not to build shared libraries. 13286build_libtool_libs=$enable_shared 13287 13288# Whether or not to build static libraries. 13289build_old_libs=$enable_static 13290 13291# What type of objects to build. 13292pic_mode=$pic_mode 13293 13294# Whether or not to optimize for fast installation. 13295fast_install=$enable_fast_install 13296 13297# Shell to use when invoking shell scripts. 13298SHELL=$lt_SHELL 13299 13300# An echo program that protects backslashes. 13301ECHO=$lt_ECHO 13302 13303# The host system. 13304host_alias=$host_alias 13305host=$host 13306host_os=$host_os 13307 13308# The build system. 13309build_alias=$build_alias 13310build=$build 13311build_os=$build_os 13312 13313# A sed program that does not truncate output. 13314SED=$lt_SED 13315 13316# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13317Xsed="\$SED -e 1s/^X//" 13318 13319# A grep program that handles long lines. 13320GREP=$lt_GREP 13321 13322# An ERE matcher. 13323EGREP=$lt_EGREP 13324 13325# A literal string matcher. 13326FGREP=$lt_FGREP 13327 13328# A BSD- or MS-compatible name lister. 13329NM=$lt_NM 13330 13331# Whether we need soft or hard links. 13332LN_S=$lt_LN_S 13333 13334# What is the maximum length of a command? 13335max_cmd_len=$max_cmd_len 13336 13337# Object file suffix (normally "o"). 13338objext=$ac_objext 13339 13340# Executable file suffix (normally ""). 13341exeext=$exeext 13342 13343# whether the shell understands "unset". 13344lt_unset=$lt_unset 13345 13346# turn spaces into newlines. 13347SP2NL=$lt_lt_SP2NL 13348 13349# turn newlines into spaces. 13350NL2SP=$lt_lt_NL2SP 13351 13352# An object symbol dumper. 13353OBJDUMP=$lt_OBJDUMP 13354 13355# Method to check whether dependent libraries are shared objects. 13356deplibs_check_method=$lt_deplibs_check_method 13357 13358# Command to use when deplibs_check_method == "file_magic". 13359file_magic_cmd=$lt_file_magic_cmd 13360 13361# The archiver. 13362AR=$lt_AR 13363AR_FLAGS=$lt_AR_FLAGS 13364 13365# A symbol stripping program. 13366STRIP=$lt_STRIP 13367 13368# Commands used to install an old-style archive. 13369RANLIB=$lt_RANLIB 13370old_postinstall_cmds=$lt_old_postinstall_cmds 13371old_postuninstall_cmds=$lt_old_postuninstall_cmds 13372 13373# Whether to use a lock for old archive extraction. 13374lock_old_archive_extraction=$lock_old_archive_extraction 13375 13376# A C compiler. 13377LTCC=$lt_CC 13378 13379# LTCC compiler flags. 13380LTCFLAGS=$lt_CFLAGS 13381 13382# Take the output of nm and produce a listing of raw symbols and C names. 13383global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13384 13385# Transform the output of nm in a proper C declaration. 13386global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13387 13388# Transform the output of nm in a C name address pair. 13389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13390 13391# Transform the output of nm in a C name address pair when lib prefix is needed. 13392global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13393 13394# The name of the directory that contains temporary libtool files. 13395objdir=$objdir 13396 13397# Used to examine libraries when file_magic_cmd begins with "file". 13398MAGIC_CMD=$MAGIC_CMD 13399 13400# Must we lock files when doing compilation? 13401need_locks=$lt_need_locks 13402 13403# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13404DSYMUTIL=$lt_DSYMUTIL 13405 13406# Tool to change global to local symbols on Mac OS X. 13407NMEDIT=$lt_NMEDIT 13408 13409# Tool to manipulate fat objects and archives on Mac OS X. 13410LIPO=$lt_LIPO 13411 13412# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13413OTOOL=$lt_OTOOL 13414 13415# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13416OTOOL64=$lt_OTOOL64 13417 13418# Old archive suffix (normally "a"). 13419libext=$libext 13420 13421# Shared library suffix (normally ".so"). 13422shrext_cmds=$lt_shrext_cmds 13423 13424# The commands to extract the exported symbol list from a shared archive. 13425extract_expsyms_cmds=$lt_extract_expsyms_cmds 13426 13427# Variables whose values should be saved in libtool wrapper scripts and 13428# restored at link time. 13429variables_saved_for_relink=$lt_variables_saved_for_relink 13430 13431# Do we need the "lib" prefix for modules? 13432need_lib_prefix=$need_lib_prefix 13433 13434# Do we need a version for libraries? 13435need_version=$need_version 13436 13437# Library versioning type. 13438version_type=$version_type 13439 13440# Shared library runtime path variable. 13441runpath_var=$runpath_var 13442 13443# Shared library path variable. 13444shlibpath_var=$shlibpath_var 13445 13446# Is shlibpath searched before the hard-coded library search path? 13447shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13448 13449# Format of library name prefix. 13450libname_spec=$lt_libname_spec 13451 13452# List of archive names. First name is the real one, the rest are links. 13453# The last name is the one that the linker finds with -lNAME 13454library_names_spec=$lt_library_names_spec 13455 13456# The coded name of the library, if different from the real name. 13457soname_spec=$lt_soname_spec 13458 13459# Permission mode override for installation of shared libraries. 13460install_override_mode=$lt_install_override_mode 13461 13462# Command to use after installation of a shared archive. 13463postinstall_cmds=$lt_postinstall_cmds 13464 13465# Command to use after uninstallation of a shared archive. 13466postuninstall_cmds=$lt_postuninstall_cmds 13467 13468# Commands used to finish a libtool library installation in a directory. 13469finish_cmds=$lt_finish_cmds 13470 13471# As "finish_cmds", except a single script fragment to be evaled but 13472# not shown. 13473finish_eval=$lt_finish_eval 13474 13475# Whether we should hardcode library paths into libraries. 13476hardcode_into_libs=$hardcode_into_libs 13477 13478# Compile-time system search path for libraries. 13479sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13480 13481# Run-time system search path for libraries. 13482sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13483 13484# Whether dlopen is supported. 13485dlopen_support=$enable_dlopen 13486 13487# Whether dlopen of programs is supported. 13488dlopen_self=$enable_dlopen_self 13489 13490# Whether dlopen of statically linked programs is supported. 13491dlopen_self_static=$enable_dlopen_self_static 13492 13493# Commands to strip libraries. 13494old_striplib=$lt_old_striplib 13495striplib=$lt_striplib 13496 13497 13498# The linker used to build libraries. 13499LD=$lt_LD 13500 13501# How to create reloadable object files. 13502reload_flag=$lt_reload_flag 13503reload_cmds=$lt_reload_cmds 13504 13505# Commands used to build an old-style archive. 13506old_archive_cmds=$lt_old_archive_cmds 13507 13508# A language specific compiler. 13509CC=$lt_compiler 13510 13511# Is the compiler the GNU compiler? 13512with_gcc=$GCC 13513 13514# Compiler flag to turn off builtin functions. 13515no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13516 13517# How to pass a linker flag through the compiler. 13518wl=$lt_lt_prog_compiler_wl 13519 13520# Additional compiler flags for building library objects. 13521pic_flag=$lt_lt_prog_compiler_pic 13522 13523# Compiler flag to prevent dynamic linking. 13524link_static_flag=$lt_lt_prog_compiler_static 13525 13526# Does compiler simultaneously support -c and -o options? 13527compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13528 13529# Whether or not to add -lc for building shared libraries. 13530build_libtool_need_lc=$archive_cmds_need_lc 13531 13532# Whether or not to disallow shared libs when runtime libs are static. 13533allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13534 13535# Compiler flag to allow reflexive dlopens. 13536export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13537 13538# Compiler flag to generate shared objects directly from archives. 13539whole_archive_flag_spec=$lt_whole_archive_flag_spec 13540 13541# Whether the compiler copes with passing no objects directly. 13542compiler_needs_object=$lt_compiler_needs_object 13543 13544# Create an old-style archive from a shared archive. 13545old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13546 13547# Create a temporary old-style archive to link instead of a shared archive. 13548old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13549 13550# Commands used to build a shared archive. 13551archive_cmds=$lt_archive_cmds 13552archive_expsym_cmds=$lt_archive_expsym_cmds 13553 13554# Commands used to build a loadable module if different from building 13555# a shared archive. 13556module_cmds=$lt_module_cmds 13557module_expsym_cmds=$lt_module_expsym_cmds 13558 13559# Whether we are building with GNU ld or not. 13560with_gnu_ld=$lt_with_gnu_ld 13561 13562# Flag that allows shared libraries with undefined symbols to be built. 13563allow_undefined_flag=$lt_allow_undefined_flag 13564 13565# Flag that enforces no undefined symbols. 13566no_undefined_flag=$lt_no_undefined_flag 13567 13568# Flag to hardcode \$libdir into a binary during linking. 13569# This must work even if \$libdir does not exist 13570hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13571 13572# If ld is used when linking, flag to hardcode \$libdir into a binary 13573# during linking. This must work even if \$libdir does not exist. 13574hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13575 13576# Whether we need a single "-rpath" flag with a separated argument. 13577hardcode_libdir_separator=$lt_hardcode_libdir_separator 13578 13579# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13580# DIR into the resulting binary. 13581hardcode_direct=$hardcode_direct 13582 13583# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13584# DIR into the resulting binary and the resulting library dependency is 13585# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13586# library is relocated. 13587hardcode_direct_absolute=$hardcode_direct_absolute 13588 13589# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13590# into the resulting binary. 13591hardcode_minus_L=$hardcode_minus_L 13592 13593# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13594# into the resulting binary. 13595hardcode_shlibpath_var=$hardcode_shlibpath_var 13596 13597# Set to "yes" if building a shared library automatically hardcodes DIR 13598# into the library and all subsequent libraries and executables linked 13599# against it. 13600hardcode_automatic=$hardcode_automatic 13601 13602# Set to yes if linker adds runtime paths of dependent libraries 13603# to runtime path list. 13604inherit_rpath=$inherit_rpath 13605 13606# Whether libtool must link a program against all its dependency libraries. 13607link_all_deplibs=$link_all_deplibs 13608 13609# Fix the shell variable \$srcfile for the compiler. 13610fix_srcfile_path=$lt_fix_srcfile_path 13611 13612# Set to "yes" if exported symbols are required. 13613always_export_symbols=$always_export_symbols 13614 13615# The commands to list exported symbols. 13616export_symbols_cmds=$lt_export_symbols_cmds 13617 13618# Symbols that should not be listed in the preloaded symbols. 13619exclude_expsyms=$lt_exclude_expsyms 13620 13621# Symbols that must always be exported. 13622include_expsyms=$lt_include_expsyms 13623 13624# Commands necessary for linking programs (against libraries) with templates. 13625prelink_cmds=$lt_prelink_cmds 13626 13627# Specify filename containing input files. 13628file_list_spec=$lt_file_list_spec 13629 13630# How to hardcode a shared library path into an executable. 13631hardcode_action=$hardcode_action 13632 13633# ### END LIBTOOL CONFIG 13634 13635_LT_EOF 13636 13637 case $host_os in 13638 aix3*) 13639 cat <<\_LT_EOF >> "$cfgfile" 13640# AIX sometimes has problems with the GCC collect2 program. For some 13641# reason, if we set the COLLECT_NAMES environment variable, the problems 13642# vanish in a puff of smoke. 13643if test "X${COLLECT_NAMES+set}" != Xset; then 13644 COLLECT_NAMES= 13645 export COLLECT_NAMES 13646fi 13647_LT_EOF 13648 ;; 13649 esac 13650 13651 13652ltmain="$ac_aux_dir/ltmain.sh" 13653 13654 13655 # We use sed instead of cat because bash on DJGPP gets confused if 13656 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13657 # text mode, it properly converts lines to CR/LF. This bash problem 13658 # is reportedly fixed, but why not run on old versions too? 13659 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13660 || (rm -f "$cfgfile"; exit 1) 13661 13662 case $xsi_shell in 13663 yes) 13664 cat << \_LT_EOF >> "$cfgfile" 13665 13666# func_dirname file append nondir_replacement 13667# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13668# otherwise set result to NONDIR_REPLACEMENT. 13669func_dirname () 13670{ 13671 case ${1} in 13672 */*) func_dirname_result="${1%/*}${2}" ;; 13673 * ) func_dirname_result="${3}" ;; 13674 esac 13675} 13676 13677# func_basename file 13678func_basename () 13679{ 13680 func_basename_result="${1##*/}" 13681} 13682 13683# func_dirname_and_basename file append nondir_replacement 13684# perform func_basename and func_dirname in a single function 13685# call: 13686# dirname: Compute the dirname of FILE. If nonempty, 13687# add APPEND to the result, otherwise set result 13688# to NONDIR_REPLACEMENT. 13689# value returned in "$func_dirname_result" 13690# basename: Compute filename of FILE. 13691# value retuned in "$func_basename_result" 13692# Implementation must be kept synchronized with func_dirname 13693# and func_basename. For efficiency, we do not delegate to 13694# those functions but instead duplicate the functionality here. 13695func_dirname_and_basename () 13696{ 13697 case ${1} in 13698 */*) func_dirname_result="${1%/*}${2}" ;; 13699 * ) func_dirname_result="${3}" ;; 13700 esac 13701 func_basename_result="${1##*/}" 13702} 13703 13704# func_stripname prefix suffix name 13705# strip PREFIX and SUFFIX off of NAME. 13706# PREFIX and SUFFIX must not contain globbing or regex special 13707# characters, hashes, percent signs, but SUFFIX may contain a leading 13708# dot (in which case that matches only a dot). 13709func_stripname () 13710{ 13711 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13712 # positional parameters, so assign one to ordinary parameter first. 13713 func_stripname_result=${3} 13714 func_stripname_result=${func_stripname_result#"${1}"} 13715 func_stripname_result=${func_stripname_result%"${2}"} 13716} 13717 13718# func_opt_split 13719func_opt_split () 13720{ 13721 func_opt_split_opt=${1%%=*} 13722 func_opt_split_arg=${1#*=} 13723} 13724 13725# func_lo2o object 13726func_lo2o () 13727{ 13728 case ${1} in 13729 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13730 *) func_lo2o_result=${1} ;; 13731 esac 13732} 13733 13734# func_xform libobj-or-source 13735func_xform () 13736{ 13737 func_xform_result=${1%.*}.lo 13738} 13739 13740# func_arith arithmetic-term... 13741func_arith () 13742{ 13743 func_arith_result=$(( $* )) 13744} 13745 13746# func_len string 13747# STRING may not start with a hyphen. 13748func_len () 13749{ 13750 func_len_result=${#1} 13751} 13752 13753_LT_EOF 13754 ;; 13755 *) # Bourne compatible functions. 13756 cat << \_LT_EOF >> "$cfgfile" 13757 13758# func_dirname file append nondir_replacement 13759# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13760# otherwise set result to NONDIR_REPLACEMENT. 13761func_dirname () 13762{ 13763 # Extract subdirectory from the argument. 13764 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13765 if test "X$func_dirname_result" = "X${1}"; then 13766 func_dirname_result="${3}" 13767 else 13768 func_dirname_result="$func_dirname_result${2}" 13769 fi 13770} 13771 13772# func_basename file 13773func_basename () 13774{ 13775 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13776} 13777 13778 13779# func_stripname prefix suffix name 13780# strip PREFIX and SUFFIX off of NAME. 13781# PREFIX and SUFFIX must not contain globbing or regex special 13782# characters, hashes, percent signs, but SUFFIX may contain a leading 13783# dot (in which case that matches only a dot). 13784# func_strip_suffix prefix name 13785func_stripname () 13786{ 13787 case ${2} in 13788 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13789 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13790 esac 13791} 13792 13793# sed scripts: 13794my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13795my_sed_long_arg='1s/^-[^=]*=//' 13796 13797# func_opt_split 13798func_opt_split () 13799{ 13800 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13801 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13802} 13803 13804# func_lo2o object 13805func_lo2o () 13806{ 13807 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13808} 13809 13810# func_xform libobj-or-source 13811func_xform () 13812{ 13813 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13814} 13815 13816# func_arith arithmetic-term... 13817func_arith () 13818{ 13819 func_arith_result=`expr "$@"` 13820} 13821 13822# func_len string 13823# STRING may not start with a hyphen. 13824func_len () 13825{ 13826 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13827} 13828 13829_LT_EOF 13830esac 13831 13832case $lt_shell_append in 13833 yes) 13834 cat << \_LT_EOF >> "$cfgfile" 13835 13836# func_append var value 13837# Append VALUE to the end of shell variable VAR. 13838func_append () 13839{ 13840 eval "$1+=\$2" 13841} 13842_LT_EOF 13843 ;; 13844 *) 13845 cat << \_LT_EOF >> "$cfgfile" 13846 13847# func_append var value 13848# Append VALUE to the end of shell variable VAR. 13849func_append () 13850{ 13851 eval "$1=\$$1\$2" 13852} 13853 13854_LT_EOF 13855 ;; 13856 esac 13857 13858 13859 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13860 || (rm -f "$cfgfile"; exit 1) 13861 13862 mv -f "$cfgfile" "$ofile" || 13863 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13864 chmod +x "$ofile" 13865 13866 ;; 13867 13868 esac 13869done # for ac_tag 13870 13871 13872as_fn_exit 0 13873_ACEOF 13874ac_clean_files=$ac_clean_files_save 13875 13876test $ac_write_fail = 0 || 13877 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13878 13879 13880# configure is writing to config.log, and then calls config.status. 13881# config.status does its own redirection, appending to config.log. 13882# Unfortunately, on DOS this fails, as config.log is still kept open 13883# by configure, so config.status won't be able to write to it; its 13884# output is simply discarded. So we exec the FD to /dev/null, 13885# effectively closing config.log, so it can be properly (re)opened and 13886# appended to by config.status. When coming back to configure, we 13887# need to make the FD available again. 13888if test "$no_create" != yes; then 13889 ac_cs_success=: 13890 ac_config_status_args= 13891 test "$silent" = yes && 13892 ac_config_status_args="$ac_config_status_args --quiet" 13893 exec 5>/dev/null 13894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13895 exec 5>>config.log 13896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13897 # would make configure fail if this is the last instruction. 13898 $ac_cs_success || as_fn_exit 1 13899fi 13900if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13902$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13903fi 13904 13905 13906