configure revision e4f6584c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for xf86-video-siliconmotion 1.7.4. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$lt_ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544ECHO=${lt_ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $ECHO works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<_LT_EOF 563$* 564_LT_EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$lt_ECHO"; then 573 if test "X${echo_test_string+set}" != Xset; then 574 # find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 579 then 580 break 581 fi 582 done 583 fi 584 585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589 else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 ECHO="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$ECHO" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 ECHO='print -r' 616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 ECHO='printf %s\n' 627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 ECHO="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 ECHO="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 ECHO=echo 665 fi 666 fi 667 fi 668 fi 669 fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674lt_ECHO=$ECHO 675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682test -n "$DJDIR" || exec 7<&0 </dev/null 683exec 6>&1 684 685# Name of the host. 686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 687# so uname gets run too. 688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 689 690# 691# Initializations. 692# 693ac_default_prefix=/usr/local 694ac_clean_files= 695ac_config_libobj_dir=. 696LIBOBJS= 697cross_compiling=no 698subdirs= 699MFLAGS= 700MAKEFLAGS= 701 702# Identity of this package. 703PACKAGE_NAME='xf86-video-siliconmotion' 704PACKAGE_TARNAME='xf86-video-siliconmotion' 705PACKAGE_VERSION='1.7.4' 706PACKAGE_STRING='xf86-video-siliconmotion 1.7.4' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710# Factoring default headers for most tests. 711ac_includes_default="\ 712#include <stdio.h> 713#ifdef HAVE_SYS_TYPES_H 714# include <sys/types.h> 715#endif 716#ifdef HAVE_SYS_STAT_H 717# include <sys/stat.h> 718#endif 719#ifdef STDC_HEADERS 720# include <stdlib.h> 721# include <stddef.h> 722#else 723# ifdef HAVE_STDLIB_H 724# include <stdlib.h> 725# endif 726#endif 727#ifdef HAVE_STRING_H 728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729# include <memory.h> 730# endif 731# include <string.h> 732#endif 733#ifdef HAVE_STRINGS_H 734# include <strings.h> 735#endif 736#ifdef HAVE_INTTYPES_H 737# include <inttypes.h> 738#endif 739#ifdef HAVE_STDINT_H 740# include <stdint.h> 741#endif 742#ifdef HAVE_UNISTD_H 743# include <unistd.h> 744#endif" 745 746ac_unique_file="Makefile.am" 747ac_subst_vars='am__EXEEXT_FALSE 748am__EXEEXT_TRUE 749LTLIBOBJS 750LIBOBJS 751DRIVER_NAME 752moduledir 753XMODES_FALSE 754XMODES_TRUE 755XSERVER_LIBPCIACCESS_FALSE 756XSERVER_LIBPCIACCESS_TRUE 757PCIACCESS_LIBS 758PCIACCESS_CFLAGS 759HAVE_XEXTPROTO_71_FALSE 760HAVE_XEXTPROTO_71_TRUE 761XEXT_LIBS 762XEXT_CFLAGS 763XORG_LIBS 764XORG_CFLAGS 765OTOOL64 766OTOOL 767LIPO 768NMEDIT 769DSYMUTIL 770lt_ECHO 771RANLIB 772AR 773OBJDUMP 774LN_S 775NM 776ac_ct_DUMPBIN 777DUMPBIN 778LD 779FGREP 780SED 781LIBTOOL 782MAINT 783MAINTAINER_MODE_FALSE 784MAINTAINER_MODE_TRUE 785am__fastdepCC_FALSE 786am__fastdepCC_TRUE 787CCDEPMODE 788AMDEPBACKSLASH 789AMDEP_FALSE 790AMDEP_TRUE 791am__quote 792am__include 793DEPDIR 794am__untar 795am__tar 796AMTAR 797am__leading_dot 798SET_MAKE 799AWK 800mkdir_p 801MKDIR_P 802INSTALL_STRIP_PROGRAM 803STRIP 804install_sh 805MAKEINFO 806AUTOHEADER 807AUTOMAKE 808AUTOCONF 809ACLOCAL 810VERSION 811PACKAGE 812CYGPATH_W 813am__isrc 814INSTALL_DATA 815INSTALL_SCRIPT 816INSTALL_PROGRAM 817AM_BACKSLASH 818AM_DEFAULT_VERBOSITY 819ADMIN_MAN_DIR 820DRIVER_MAN_DIR 821MISC_MAN_DIR 822FILE_MAN_DIR 823LIB_MAN_DIR 824APP_MAN_DIR 825ADMIN_MAN_SUFFIX 826DRIVER_MAN_SUFFIX 827MISC_MAN_SUFFIX 828FILE_MAN_SUFFIX 829LIB_MAN_SUFFIX 830APP_MAN_SUFFIX 831host_os 832host_vendor 833host_cpu 834host 835build_os 836build_vendor 837build_cpu 838build 839INSTALL_CMD 840PKG_CONFIG 841CHANGELOG_CMD 842CWARNFLAGS 843EGREP 844GREP 845CPP 846OBJEXT 847EXEEXT 848ac_ct_CC 849CPPFLAGS 850LDFLAGS 851CFLAGS 852CC 853target_alias 854host_alias 855build_alias 856LIBS 857ECHO_T 858ECHO_N 859ECHO_C 860DEFS 861mandir 862localedir 863libdir 864psdir 865pdfdir 866dvidir 867htmldir 868infodir 869docdir 870oldincludedir 871includedir 872localstatedir 873sharedstatedir 874sysconfdir 875datadir 876datarootdir 877libexecdir 878sbindir 879bindir 880program_transform_name 881prefix 882exec_prefix 883PACKAGE_URL 884PACKAGE_BUGREPORT 885PACKAGE_STRING 886PACKAGE_VERSION 887PACKAGE_TARNAME 888PACKAGE_NAME 889PATH_SEPARATOR 890SHELL' 891ac_subst_files='' 892ac_user_opts=' 893enable_option_checking 894enable_strict_compilation 895with_release_version 896enable_silent_rules 897enable_dependency_tracking 898enable_maintainer_mode 899enable_static 900enable_shared 901with_pic 902enable_fast_install 903with_gnu_ld 904enable_libtool_lock 905with_xorg_module_dir 906' 907 ac_precious_vars='build_alias 908host_alias 909target_alias 910CC 911CFLAGS 912LDFLAGS 913LIBS 914CPPFLAGS 915CPP 916PKG_CONFIG 917XORG_CFLAGS 918XORG_LIBS 919XEXT_CFLAGS 920XEXT_LIBS 921PCIACCESS_CFLAGS 922PCIACCESS_LIBS' 923 924 925# Initialize some variables set by options. 926ac_init_help= 927ac_init_version=false 928ac_unrecognized_opts= 929ac_unrecognized_sep= 930# The variables have the same names as the options, with 931# dashes changed to underlines. 932cache_file=/dev/null 933exec_prefix=NONE 934no_create= 935no_recursion= 936prefix=NONE 937program_prefix=NONE 938program_suffix=NONE 939program_transform_name=s,x,x, 940silent= 941site= 942srcdir= 943verbose= 944x_includes=NONE 945x_libraries=NONE 946 947# Installation directory options. 948# These are left unexpanded so users can "make install exec_prefix=/foo" 949# and all the variables that are supposed to be based on exec_prefix 950# by default will actually change. 951# Use braces instead of parens because sh, perl, etc. also accept them. 952# (The list follows the same order as the GNU Coding Standards.) 953bindir='${exec_prefix}/bin' 954sbindir='${exec_prefix}/sbin' 955libexecdir='${exec_prefix}/libexec' 956datarootdir='${prefix}/share' 957datadir='${datarootdir}' 958sysconfdir='${prefix}/etc' 959sharedstatedir='${prefix}/com' 960localstatedir='${prefix}/var' 961includedir='${prefix}/include' 962oldincludedir='/usr/include' 963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 964infodir='${datarootdir}/info' 965htmldir='${docdir}' 966dvidir='${docdir}' 967pdfdir='${docdir}' 968psdir='${docdir}' 969libdir='${exec_prefix}/lib' 970localedir='${datarootdir}/locale' 971mandir='${datarootdir}/man' 972 973ac_prev= 974ac_dashdash= 975for ac_option 976do 977 # If the previous option needs an argument, assign it. 978 if test -n "$ac_prev"; then 979 eval $ac_prev=\$ac_option 980 ac_prev= 981 continue 982 fi 983 984 case $ac_option in 985 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 986 *) ac_optarg=yes ;; 987 esac 988 989 # Accept the important Cygnus configure options, so we can diagnose typos. 990 991 case $ac_dashdash$ac_option in 992 --) 993 ac_dashdash=yes ;; 994 995 -bindir | --bindir | --bindi | --bind | --bin | --bi) 996 ac_prev=bindir ;; 997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 998 bindir=$ac_optarg ;; 999 1000 -build | --build | --buil | --bui | --bu) 1001 ac_prev=build_alias ;; 1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1003 build_alias=$ac_optarg ;; 1004 1005 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1007 ac_prev=cache_file ;; 1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1010 cache_file=$ac_optarg ;; 1011 1012 --config-cache | -C) 1013 cache_file=config.cache ;; 1014 1015 -datadir | --datadir | --datadi | --datad) 1016 ac_prev=datadir ;; 1017 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1018 datadir=$ac_optarg ;; 1019 1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1021 | --dataroo | --dataro | --datar) 1022 ac_prev=datarootdir ;; 1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1025 datarootdir=$ac_optarg ;; 1026 1027 -disable-* | --disable-*) 1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1031 as_fn_error "invalid feature name: $ac_useropt" 1032 ac_useropt_orig=$ac_useropt 1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1034 case $ac_user_opts in 1035 *" 1036"enable_$ac_useropt" 1037"*) ;; 1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1039 ac_unrecognized_sep=', ';; 1040 esac 1041 eval enable_$ac_useropt=no ;; 1042 1043 -docdir | --docdir | --docdi | --doc | --do) 1044 ac_prev=docdir ;; 1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1046 docdir=$ac_optarg ;; 1047 1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1049 ac_prev=dvidir ;; 1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1051 dvidir=$ac_optarg ;; 1052 1053 -enable-* | --enable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=\$ac_optarg ;; 1068 1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1071 | --exec | --exe | --ex) 1072 ac_prev=exec_prefix ;; 1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1075 | --exec=* | --exe=* | --ex=*) 1076 exec_prefix=$ac_optarg ;; 1077 1078 -gas | --gas | --ga | --g) 1079 # Obsolete; use --with-gas. 1080 with_gas=yes ;; 1081 1082 -help | --help | --hel | --he | -h) 1083 ac_init_help=long ;; 1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1085 ac_init_help=recursive ;; 1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1087 ac_init_help=short ;; 1088 1089 -host | --host | --hos | --ho) 1090 ac_prev=host_alias ;; 1091 -host=* | --host=* | --hos=* | --ho=*) 1092 host_alias=$ac_optarg ;; 1093 1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1095 ac_prev=htmldir ;; 1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1097 | --ht=*) 1098 htmldir=$ac_optarg ;; 1099 1100 -includedir | --includedir | --includedi | --included | --include \ 1101 | --includ | --inclu | --incl | --inc) 1102 ac_prev=includedir ;; 1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1104 | --includ=* | --inclu=* | --incl=* | --inc=*) 1105 includedir=$ac_optarg ;; 1106 1107 -infodir | --infodir | --infodi | --infod | --info | --inf) 1108 ac_prev=infodir ;; 1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1110 infodir=$ac_optarg ;; 1111 1112 -libdir | --libdir | --libdi | --libd) 1113 ac_prev=libdir ;; 1114 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1115 libdir=$ac_optarg ;; 1116 1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1118 | --libexe | --libex | --libe) 1119 ac_prev=libexecdir ;; 1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1121 | --libexe=* | --libex=* | --libe=*) 1122 libexecdir=$ac_optarg ;; 1123 1124 -localedir | --localedir | --localedi | --localed | --locale) 1125 ac_prev=localedir ;; 1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1127 localedir=$ac_optarg ;; 1128 1129 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1130 | --localstate | --localstat | --localsta | --localst | --locals) 1131 ac_prev=localstatedir ;; 1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1134 localstatedir=$ac_optarg ;; 1135 1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1137 ac_prev=mandir ;; 1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1139 mandir=$ac_optarg ;; 1140 1141 -nfp | --nfp | --nf) 1142 # Obsolete; use --without-fp. 1143 with_fp=no ;; 1144 1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1146 | --no-cr | --no-c | -n) 1147 no_create=yes ;; 1148 1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1151 no_recursion=yes ;; 1152 1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1155 | --oldin | --oldi | --old | --ol | --o) 1156 ac_prev=oldincludedir ;; 1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1160 oldincludedir=$ac_optarg ;; 1161 1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1163 ac_prev=prefix ;; 1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1165 prefix=$ac_optarg ;; 1166 1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1168 | --program-pre | --program-pr | --program-p) 1169 ac_prev=program_prefix ;; 1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1172 program_prefix=$ac_optarg ;; 1173 1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1175 | --program-suf | --program-su | --program-s) 1176 ac_prev=program_suffix ;; 1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1179 program_suffix=$ac_optarg ;; 1180 1181 -program-transform-name | --program-transform-name \ 1182 | --program-transform-nam | --program-transform-na \ 1183 | --program-transform-n | --program-transform- \ 1184 | --program-transform | --program-transfor \ 1185 | --program-transfo | --program-transf \ 1186 | --program-trans | --program-tran \ 1187 | --progr-tra | --program-tr | --program-t) 1188 ac_prev=program_transform_name ;; 1189 -program-transform-name=* | --program-transform-name=* \ 1190 | --program-transform-nam=* | --program-transform-na=* \ 1191 | --program-transform-n=* | --program-transform-=* \ 1192 | --program-transform=* | --program-transfor=* \ 1193 | --program-transfo=* | --program-transf=* \ 1194 | --program-trans=* | --program-tran=* \ 1195 | --progr-tra=* | --program-tr=* | --program-t=*) 1196 program_transform_name=$ac_optarg ;; 1197 1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1199 ac_prev=pdfdir ;; 1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1201 pdfdir=$ac_optarg ;; 1202 1203 -psdir | --psdir | --psdi | --psd | --ps) 1204 ac_prev=psdir ;; 1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1206 psdir=$ac_optarg ;; 1207 1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1209 | -silent | --silent | --silen | --sile | --sil) 1210 silent=yes ;; 1211 1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1213 ac_prev=sbindir ;; 1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1215 | --sbi=* | --sb=*) 1216 sbindir=$ac_optarg ;; 1217 1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1220 | --sharedst | --shareds | --shared | --share | --shar \ 1221 | --sha | --sh) 1222 ac_prev=sharedstatedir ;; 1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1226 | --sha=* | --sh=*) 1227 sharedstatedir=$ac_optarg ;; 1228 1229 -site | --site | --sit) 1230 ac_prev=site ;; 1231 -site=* | --site=* | --sit=*) 1232 site=$ac_optarg ;; 1233 1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1235 ac_prev=srcdir ;; 1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1237 srcdir=$ac_optarg ;; 1238 1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1240 | --syscon | --sysco | --sysc | --sys | --sy) 1241 ac_prev=sysconfdir ;; 1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1244 sysconfdir=$ac_optarg ;; 1245 1246 -target | --target | --targe | --targ | --tar | --ta | --t) 1247 ac_prev=target_alias ;; 1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1249 target_alias=$ac_optarg ;; 1250 1251 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1252 verbose=yes ;; 1253 1254 -version | --version | --versio | --versi | --vers | -V) 1255 ac_init_version=: ;; 1256 1257 -with-* | --with-*) 1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1261 as_fn_error "invalid package name: $ac_useropt" 1262 ac_useropt_orig=$ac_useropt 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1264 case $ac_user_opts in 1265 *" 1266"with_$ac_useropt" 1267"*) ;; 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1269 ac_unrecognized_sep=', ';; 1270 esac 1271 eval with_$ac_useropt=\$ac_optarg ;; 1272 1273 -without-* | --without-*) 1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1275 # Reject names that are not valid shell variable names. 1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1277 as_fn_error "invalid package name: $ac_useropt" 1278 ac_useropt_orig=$ac_useropt 1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1280 case $ac_user_opts in 1281 *" 1282"with_$ac_useropt" 1283"*) ;; 1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1285 ac_unrecognized_sep=', ';; 1286 esac 1287 eval with_$ac_useropt=no ;; 1288 1289 --x) 1290 # Obsolete; use --with-x. 1291 with_x=yes ;; 1292 1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1294 | --x-incl | --x-inc | --x-in | --x-i) 1295 ac_prev=x_includes ;; 1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1298 x_includes=$ac_optarg ;; 1299 1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1302 ac_prev=x_libraries ;; 1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1305 x_libraries=$ac_optarg ;; 1306 1307 -*) as_fn_error "unrecognized option: \`$ac_option' 1308Try \`$0 --help' for more information." 1309 ;; 1310 1311 *=*) 1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1313 # Reject names that are not valid shell variable names. 1314 case $ac_envvar in #( 1315 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1316 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1317 esac 1318 eval $ac_envvar=\$ac_optarg 1319 export $ac_envvar ;; 1320 1321 *) 1322 # FIXME: should be removed in autoconf 3.0. 1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1327 ;; 1328 1329 esac 1330done 1331 1332if test -n "$ac_prev"; then 1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1334 as_fn_error "missing argument to $ac_option" 1335fi 1336 1337if test -n "$ac_unrecognized_opts"; then 1338 case $enable_option_checking in 1339 no) ;; 1340 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1342 esac 1343fi 1344 1345# Check all directory arguments for consistency. 1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1347 datadir sysconfdir sharedstatedir localstatedir includedir \ 1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1349 libdir localedir mandir 1350do 1351 eval ac_val=\$$ac_var 1352 # Remove trailing slashes. 1353 case $ac_val in 1354 */ ) 1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1356 eval $ac_var=\$ac_val;; 1357 esac 1358 # Be sure to have absolute directory names. 1359 case $ac_val in 1360 [\\/$]* | ?:[\\/]* ) continue;; 1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1362 esac 1363 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1364done 1365 1366# There might be people who depend on the old broken behavior: `$host' 1367# used to hold the argument of --host etc. 1368# FIXME: To remove some day. 1369build=$build_alias 1370host=$host_alias 1371target=$target_alias 1372 1373# FIXME: To remove some day. 1374if test "x$host_alias" != x; then 1375 if test "x$build_alias" = x; then 1376 cross_compiling=maybe 1377 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1378 If a cross compiler is detected then cross compile mode will be used." >&2 1379 elif test "x$build_alias" != "x$host_alias"; then 1380 cross_compiling=yes 1381 fi 1382fi 1383 1384ac_tool_prefix= 1385test -n "$host_alias" && ac_tool_prefix=$host_alias- 1386 1387test "$silent" = yes && exec 6>/dev/null 1388 1389 1390ac_pwd=`pwd` && test -n "$ac_pwd" && 1391ac_ls_di=`ls -di .` && 1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1393 as_fn_error "working directory cannot be determined" 1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1395 as_fn_error "pwd does not report name of working directory" 1396 1397 1398# Find the source files, if location was not specified. 1399if test -z "$srcdir"; then 1400 ac_srcdir_defaulted=yes 1401 # Try the directory containing this script, then the parent directory. 1402 ac_confdir=`$as_dirname -- "$as_myself" || 1403$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1404 X"$as_myself" : 'X\(//\)[^/]' \| \ 1405 X"$as_myself" : 'X\(//\)$' \| \ 1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1407$as_echo X"$as_myself" | 1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1409 s//\1/ 1410 q 1411 } 1412 /^X\(\/\/\)[^/].*/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\/\)$/{ 1417 s//\1/ 1418 q 1419 } 1420 /^X\(\/\).*/{ 1421 s//\1/ 1422 q 1423 } 1424 s/.*/./; q'` 1425 srcdir=$ac_confdir 1426 if test ! -r "$srcdir/$ac_unique_file"; then 1427 srcdir=.. 1428 fi 1429else 1430 ac_srcdir_defaulted=no 1431fi 1432if test ! -r "$srcdir/$ac_unique_file"; then 1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1434 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1435fi 1436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1437ac_abs_confdir=`( 1438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1439 pwd)` 1440# When building in place, set srcdir=. 1441if test "$ac_abs_confdir" = "$ac_pwd"; then 1442 srcdir=. 1443fi 1444# Remove unnecessary trailing slashes from srcdir. 1445# Double slashes in file names in object file debugging info 1446# mess up M-x gdb in Emacs. 1447case $srcdir in 1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1449esac 1450for ac_var in $ac_precious_vars; do 1451 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1452 eval ac_env_${ac_var}_value=\$${ac_var} 1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1454 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1455done 1456 1457# 1458# Report the --help message. 1459# 1460if test "$ac_init_help" = "long"; then 1461 # Omit some internal or obsolete options to make the list less imposing. 1462 # This message is too long to be a string in the A/UX 3.1 sh. 1463 cat <<_ACEOF 1464\`configure' configures xf86-video-siliconmotion 1.7.4 to adapt to many kinds of systems. 1465 1466Usage: $0 [OPTION]... [VAR=VALUE]... 1467 1468To assign environment variables (e.g., CC, CFLAGS...), specify them as 1469VAR=VALUE. See below for descriptions of some of the useful variables. 1470 1471Defaults for the options are specified in brackets. 1472 1473Configuration: 1474 -h, --help display this help and exit 1475 --help=short display options specific to this package 1476 --help=recursive display the short help of all the included packages 1477 -V, --version display version information and exit 1478 -q, --quiet, --silent do not print \`checking...' messages 1479 --cache-file=FILE cache test results in FILE [disabled] 1480 -C, --config-cache alias for \`--cache-file=config.cache' 1481 -n, --no-create do not create output files 1482 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1483 1484Installation directories: 1485 --prefix=PREFIX install architecture-independent files in PREFIX 1486 [$ac_default_prefix] 1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1488 [PREFIX] 1489 1490By default, \`make install' will install all the files in 1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1492an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1493for instance \`--prefix=\$HOME'. 1494 1495For better control, use the options below. 1496 1497Fine tuning of the installation directories: 1498 --bindir=DIR user executables [EPREFIX/bin] 1499 --sbindir=DIR system admin executables [EPREFIX/sbin] 1500 --libexecdir=DIR program executables [EPREFIX/libexec] 1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1504 --libdir=DIR object code libraries [EPREFIX/lib] 1505 --includedir=DIR C header files [PREFIX/include] 1506 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1509 --infodir=DIR info documentation [DATAROOTDIR/info] 1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1511 --mandir=DIR man documentation [DATAROOTDIR/man] 1512 --docdir=DIR documentation root 1513 [DATAROOTDIR/doc/xf86-video-siliconmotion] 1514 --htmldir=DIR html documentation [DOCDIR] 1515 --dvidir=DIR dvi documentation [DOCDIR] 1516 --pdfdir=DIR pdf documentation [DOCDIR] 1517 --psdir=DIR ps documentation [DOCDIR] 1518_ACEOF 1519 1520 cat <<\_ACEOF 1521 1522Program names: 1523 --program-prefix=PREFIX prepend PREFIX to installed program names 1524 --program-suffix=SUFFIX append SUFFIX to installed program names 1525 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1526 1527System types: 1528 --build=BUILD configure for building on BUILD [guessed] 1529 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1530_ACEOF 1531fi 1532 1533if test -n "$ac_init_help"; then 1534 case $ac_init_help in 1535 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.4:";; 1536 esac 1537 cat <<\_ACEOF 1538 1539Optional Features: 1540 --disable-option-checking ignore unrecognized --enable/--with options 1541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1543 --enable-strict-compilation 1544 Enable all warnings from compiler and make them 1545 errors (default: disabled) 1546 --enable-silent-rules less verbose build output (undo: `make V=1') 1547 --disable-silent-rules verbose build output (undo: `make V=0') 1548 --disable-dependency-tracking speeds up one-time build 1549 --enable-dependency-tracking do not reject slow dependency extractors 1550 --enable-maintainer-mode enable make rules and dependencies not useful 1551 (and sometimes confusing) to the casual installer 1552 --enable-static[=PKGS] build static libraries [default=no] 1553 --enable-shared[=PKGS] build shared libraries [default=yes] 1554 --enable-fast-install[=PKGS] 1555 optimize for fast installation [default=yes] 1556 --disable-libtool-lock avoid locking (might break parallel builds) 1557 1558Optional Packages: 1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1561 --with-release-version=STRING 1562 Use release version string in package name 1563 --with-pic try to use only PIC/non-PIC objects [default=use 1564 both] 1565 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1566 --with-xorg-module-dir=DIR 1567 Default xorg module directory 1568 [[default=$libdir/xorg/modules]] 1569 1570Some influential environment variables: 1571 CC C compiler command 1572 CFLAGS C compiler flags 1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1574 nonstandard directory <lib dir> 1575 LIBS libraries to pass to the linker, e.g. -l<library> 1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1577 you have headers in a nonstandard directory <include dir> 1578 CPP C preprocessor 1579 PKG_CONFIG path to pkg-config utility 1580 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1581 XORG_LIBS linker flags for XORG, overriding pkg-config 1582 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1583 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1584 PCIACCESS_CFLAGS 1585 C compiler flags for PCIACCESS, overriding pkg-config 1586 PCIACCESS_LIBS 1587 linker flags for PCIACCESS, overriding pkg-config 1588 1589Use these variables to override the choices made by `configure' or to help 1590it to find libraries and programs with nonstandard names/locations. 1591 1592Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1593_ACEOF 1594ac_status=$? 1595fi 1596 1597if test "$ac_init_help" = "recursive"; then 1598 # If there are subdirs, report their specific --help. 1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1600 test -d "$ac_dir" || 1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1602 continue 1603 ac_builddir=. 1604 1605case "$ac_dir" in 1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1607*) 1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1609 # A ".." for each directory in $ac_dir_suffix. 1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1611 case $ac_top_builddir_sub in 1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1614 esac ;; 1615esac 1616ac_abs_top_builddir=$ac_pwd 1617ac_abs_builddir=$ac_pwd$ac_dir_suffix 1618# for backward compatibility: 1619ac_top_builddir=$ac_top_build_prefix 1620 1621case $srcdir in 1622 .) # We are building in place. 1623 ac_srcdir=. 1624 ac_top_srcdir=$ac_top_builddir_sub 1625 ac_abs_top_srcdir=$ac_pwd ;; 1626 [\\/]* | ?:[\\/]* ) # Absolute name. 1627 ac_srcdir=$srcdir$ac_dir_suffix; 1628 ac_top_srcdir=$srcdir 1629 ac_abs_top_srcdir=$srcdir ;; 1630 *) # Relative name. 1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1632 ac_top_srcdir=$ac_top_build_prefix$srcdir 1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1634esac 1635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1636 1637 cd "$ac_dir" || { ac_status=$?; continue; } 1638 # Check for guested configure. 1639 if test -f "$ac_srcdir/configure.gnu"; then 1640 echo && 1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1642 elif test -f "$ac_srcdir/configure"; then 1643 echo && 1644 $SHELL "$ac_srcdir/configure" --help=recursive 1645 else 1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1647 fi || ac_status=$? 1648 cd "$ac_pwd" || { ac_status=$?; break; } 1649 done 1650fi 1651 1652test -n "$ac_init_help" && exit $ac_status 1653if $ac_init_version; then 1654 cat <<\_ACEOF 1655xf86-video-siliconmotion configure 1.7.4 1656generated by GNU Autoconf 2.65 1657 1658Copyright (C) 2009 Free Software Foundation, Inc. 1659This configure script is free software; the Free Software Foundation 1660gives unlimited permission to copy, distribute and modify it. 1661_ACEOF 1662 exit 1663fi 1664 1665## ------------------------ ## 1666## Autoconf initialization. ## 1667## ------------------------ ## 1668 1669# ac_fn_c_try_compile LINENO 1670# -------------------------- 1671# Try to compile conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_compile () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 rm -f conftest.$ac_objext 1676 if { { ac_try="$ac_compile" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_compile") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { 1692 test -z "$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 } && test -s conftest.$ac_objext; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 1701fi 1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_compile 1706 1707# ac_fn_c_check_decl LINENO SYMBOL VAR 1708# ------------------------------------ 1709# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1710ac_fn_c_check_decl () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1714$as_echo_n "checking whether $2 is declared... " >&6; } 1715if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1716 $as_echo_n "(cached) " >&6 1717else 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720$4 1721int 1722main () 1723{ 1724#ifndef $2 1725 (void) $2; 1726#endif 1727 1728 ; 1729 return 0; 1730} 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 eval "$3=yes" 1734else 1735 eval "$3=no" 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738fi 1739eval ac_res=\$$3 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1741$as_echo "$ac_res" >&6; } 1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1743 1744} # ac_fn_c_check_decl 1745 1746# ac_fn_c_try_cpp LINENO 1747# ---------------------- 1748# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1749ac_fn_c_try_cpp () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 if { { ac_try="$ac_cpp conftest.$ac_ext" 1753case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1760 ac_status=$? 1761 if test -s conftest.err; then 1762 grep -v '^ *+' conftest.err >conftest.er1 1763 cat conftest.er1 >&5 1764 mv -f conftest.er1 conftest.err 1765 fi 1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1767 test $ac_status = 0; } >/dev/null && { 1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1769 test ! -s conftest.err 1770 }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1779 as_fn_set_status $ac_retval 1780 1781} # ac_fn_c_try_cpp 1782 1783# ac_fn_c_try_run LINENO 1784# ---------------------- 1785# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1786# that executables *can* be run. 1787ac_fn_c_try_run () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 if { { ac_try="$ac_link" 1791case "(($ac_try" in 1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1793 *) ac_try_echo=$ac_try;; 1794esac 1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1796$as_echo "$ac_try_echo"; } >&5 1797 (eval "$ac_link") 2>&5 1798 ac_status=$? 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1801 { { case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_try") 2>&5 1808 ac_status=$? 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; }; }; then : 1811 ac_retval=0 1812else 1813 $as_echo "$as_me: program exited with status $ac_status" >&5 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=$ac_status 1818fi 1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_run 1824 1825# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1826# ------------------------------------------------------- 1827# Tests whether HEADER exists and can be compiled using the include files in 1828# INCLUDES, setting the cache variable VAR accordingly. 1829ac_fn_c_check_header_compile () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833$as_echo_n "checking for $2... " >&6; } 1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1835 $as_echo_n "(cached) " >&6 1836else 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839$4 1840#include <$2> 1841_ACEOF 1842if ac_fn_c_try_compile "$LINENO"; then : 1843 eval "$3=yes" 1844else 1845 eval "$3=no" 1846fi 1847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1848fi 1849eval ac_res=\$$3 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1851$as_echo "$ac_res" >&6; } 1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1853 1854} # ac_fn_c_check_header_compile 1855 1856# ac_fn_c_try_link LINENO 1857# ----------------------- 1858# Try to link conftest.$ac_ext, and return whether this succeeded. 1859ac_fn_c_try_link () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 rm -f conftest.$ac_objext conftest$ac_exeext 1863 if { { ac_try="$ac_link" 1864case "(($ac_try" in 1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1866 *) ac_try_echo=$ac_try;; 1867esac 1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1869$as_echo "$ac_try_echo"; } >&5 1870 (eval "$ac_link") 2>conftest.err 1871 ac_status=$? 1872 if test -s conftest.err; then 1873 grep -v '^ *+' conftest.err >conftest.er1 1874 cat conftest.er1 >&5 1875 mv -f conftest.er1 conftest.err 1876 fi 1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; } && { 1879 test -z "$ac_c_werror_flag" || 1880 test ! -s conftest.err 1881 } && test -s conftest$ac_exeext && { 1882 test "$cross_compiling" = yes || 1883 $as_test_x conftest$ac_exeext 1884 }; then : 1885 ac_retval=0 1886else 1887 $as_echo "$as_me: failed program was:" >&5 1888sed 's/^/| /' conftest.$ac_ext >&5 1889 1890 ac_retval=1 1891fi 1892 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1893 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1894 # interfere with the next link command; also delete a directory that is 1895 # left behind by Apple's compiler. We do this before executing the actions. 1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1898 as_fn_set_status $ac_retval 1899 1900} # ac_fn_c_try_link 1901 1902# ac_fn_c_check_func LINENO FUNC VAR 1903# ---------------------------------- 1904# Tests whether FUNC exists, setting the cache variable VAR accordingly 1905ac_fn_c_check_func () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1909$as_echo_n "checking for $2... " >&6; } 1910if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1911 $as_echo_n "(cached) " >&6 1912else 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1916 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1917#define $2 innocuous_$2 1918 1919/* System header to define __stub macros and hopefully few prototypes, 1920 which can conflict with char $2 (); below. 1921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1922 <limits.h> exists even on freestanding compilers. */ 1923 1924#ifdef __STDC__ 1925# include <limits.h> 1926#else 1927# include <assert.h> 1928#endif 1929 1930#undef $2 1931 1932/* Override any GCC internal prototype to avoid an error. 1933 Use char because int might match the return type of a GCC 1934 builtin and then its argument prototype would still apply. */ 1935#ifdef __cplusplus 1936extern "C" 1937#endif 1938char $2 (); 1939/* The GNU C library defines this for functions which it implements 1940 to always fail with ENOSYS. Some functions are actually named 1941 something starting with __ and the normal name is an alias. */ 1942#if defined __stub_$2 || defined __stub___$2 1943choke me 1944#endif 1945 1946int 1947main () 1948{ 1949return $2 (); 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_link "$LINENO"; then : 1955 eval "$3=yes" 1956else 1957 eval "$3=no" 1958fi 1959rm -f core conftest.err conftest.$ac_objext \ 1960 conftest$ac_exeext conftest.$ac_ext 1961fi 1962eval ac_res=\$$3 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1964$as_echo "$ac_res" >&6; } 1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1966 1967} # ac_fn_c_check_func 1968cat >config.log <<_ACEOF 1969This file contains any messages produced by compilers while 1970running configure, to aid debugging if configure makes a mistake. 1971 1972It was created by xf86-video-siliconmotion $as_me 1.7.4, which was 1973generated by GNU Autoconf 2.65. Invocation command line was 1974 1975 $ $0 $@ 1976 1977_ACEOF 1978exec 5>>config.log 1979{ 1980cat <<_ASUNAME 1981## --------- ## 1982## Platform. ## 1983## --------- ## 1984 1985hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1986uname -m = `(uname -m) 2>/dev/null || echo unknown` 1987uname -r = `(uname -r) 2>/dev/null || echo unknown` 1988uname -s = `(uname -s) 2>/dev/null || echo unknown` 1989uname -v = `(uname -v) 2>/dev/null || echo unknown` 1990 1991/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1992/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1993 1994/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1995/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1996/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1997/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1998/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1999/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2000/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2001 2002_ASUNAME 2003 2004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005for as_dir in $PATH 2006do 2007 IFS=$as_save_IFS 2008 test -z "$as_dir" && as_dir=. 2009 $as_echo "PATH: $as_dir" 2010 done 2011IFS=$as_save_IFS 2012 2013} >&5 2014 2015cat >&5 <<_ACEOF 2016 2017 2018## ----------- ## 2019## Core tests. ## 2020## ----------- ## 2021 2022_ACEOF 2023 2024 2025# Keep a trace of the command line. 2026# Strip out --no-create and --no-recursion so they do not pile up. 2027# Strip out --silent because we don't want to record it for future runs. 2028# Also quote any args containing shell meta-characters. 2029# Make two passes to allow for proper duplicate-argument suppression. 2030ac_configure_args= 2031ac_configure_args0= 2032ac_configure_args1= 2033ac_must_keep_next=false 2034for ac_pass in 1 2 2035do 2036 for ac_arg 2037 do 2038 case $ac_arg in 2039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2041 | -silent | --silent | --silen | --sile | --sil) 2042 continue ;; 2043 *\'*) 2044 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2045 esac 2046 case $ac_pass in 2047 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2048 2) 2049 as_fn_append ac_configure_args1 " '$ac_arg'" 2050 if test $ac_must_keep_next = true; then 2051 ac_must_keep_next=false # Got value, back to normal. 2052 else 2053 case $ac_arg in 2054 *=* | --config-cache | -C | -disable-* | --disable-* \ 2055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2057 | -with-* | --with-* | -without-* | --without-* | --x) 2058 case "$ac_configure_args0 " in 2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2060 esac 2061 ;; 2062 -* ) ac_must_keep_next=true ;; 2063 esac 2064 fi 2065 as_fn_append ac_configure_args " '$ac_arg'" 2066 ;; 2067 esac 2068 done 2069done 2070{ ac_configure_args0=; unset ac_configure_args0;} 2071{ ac_configure_args1=; unset ac_configure_args1;} 2072 2073# When interrupted or exit'd, cleanup temporary files, and complete 2074# config.log. We remove comments because anyway the quotes in there 2075# would cause problems or look ugly. 2076# WARNING: Use '\'' to represent an apostrophe within the trap. 2077# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2078trap 'exit_status=$? 2079 # Save into config.log some information that might help in debugging. 2080 { 2081 echo 2082 2083 cat <<\_ASBOX 2084## ---------------- ## 2085## Cache variables. ## 2086## ---------------- ## 2087_ASBOX 2088 echo 2089 # The following way of writing the cache mishandles newlines in values, 2090( 2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2092 eval ac_val=\$$ac_var 2093 case $ac_val in #( 2094 *${as_nl}*) 2095 case $ac_var in #( 2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2097$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2098 esac 2099 case $ac_var in #( 2100 _ | IFS | as_nl) ;; #( 2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2102 *) { eval $ac_var=; unset $ac_var;} ;; 2103 esac ;; 2104 esac 2105 done 2106 (set) 2>&1 | 2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2108 *${as_nl}ac_space=\ *) 2109 sed -n \ 2110 "s/'\''/'\''\\\\'\'''\''/g; 2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2112 ;; #( 2113 *) 2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2115 ;; 2116 esac | 2117 sort 2118) 2119 echo 2120 2121 cat <<\_ASBOX 2122## ----------------- ## 2123## Output variables. ## 2124## ----------------- ## 2125_ASBOX 2126 echo 2127 for ac_var in $ac_subst_vars 2128 do 2129 eval ac_val=\$$ac_var 2130 case $ac_val in 2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2132 esac 2133 $as_echo "$ac_var='\''$ac_val'\''" 2134 done | sort 2135 echo 2136 2137 if test -n "$ac_subst_files"; then 2138 cat <<\_ASBOX 2139## ------------------- ## 2140## File substitutions. ## 2141## ------------------- ## 2142_ASBOX 2143 echo 2144 for ac_var in $ac_subst_files 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 fi 2154 2155 if test -s confdefs.h; then 2156 cat <<\_ASBOX 2157## ----------- ## 2158## confdefs.h. ## 2159## ----------- ## 2160_ASBOX 2161 echo 2162 cat confdefs.h 2163 echo 2164 fi 2165 test "$ac_signal" != 0 && 2166 $as_echo "$as_me: caught signal $ac_signal" 2167 $as_echo "$as_me: exit $exit_status" 2168 } >&5 2169 rm -f core *.core core.conftest.* && 2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2171 exit $exit_status 2172' 0 2173for ac_signal in 1 2 13 15; do 2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2175done 2176ac_signal=0 2177 2178# confdefs.h avoids OS command line length limits that DEFS can exceed. 2179rm -f -r conftest* confdefs.h 2180 2181$as_echo "/* confdefs.h */" > confdefs.h 2182 2183# Predefined preprocessor variables. 2184 2185cat >>confdefs.h <<_ACEOF 2186#define PACKAGE_NAME "$PACKAGE_NAME" 2187_ACEOF 2188 2189cat >>confdefs.h <<_ACEOF 2190#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2191_ACEOF 2192 2193cat >>confdefs.h <<_ACEOF 2194#define PACKAGE_VERSION "$PACKAGE_VERSION" 2195_ACEOF 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_STRING "$PACKAGE_STRING" 2199_ACEOF 2200 2201cat >>confdefs.h <<_ACEOF 2202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2203_ACEOF 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_URL "$PACKAGE_URL" 2207_ACEOF 2208 2209 2210# Let the site file select an alternate cache file if it wants to. 2211# Prefer an explicitly selected file to automatically selected ones. 2212ac_site_file1=NONE 2213ac_site_file2=NONE 2214if test -n "$CONFIG_SITE"; then 2215 ac_site_file1=$CONFIG_SITE 2216elif test "x$prefix" != xNONE; then 2217 ac_site_file1=$prefix/share/config.site 2218 ac_site_file2=$prefix/etc/config.site 2219else 2220 ac_site_file1=$ac_default_prefix/share/config.site 2221 ac_site_file2=$ac_default_prefix/etc/config.site 2222fi 2223for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2224do 2225 test "x$ac_site_file" = xNONE && continue 2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2228$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2229 sed 's/^/| /' "$ac_site_file" >&5 2230 . "$ac_site_file" 2231 fi 2232done 2233 2234if test -r "$cache_file"; then 2235 # Some versions of bash will fail to source /dev/null (special files 2236 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2237 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2239$as_echo "$as_me: loading cache $cache_file" >&6;} 2240 case $cache_file in 2241 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2242 *) . "./$cache_file";; 2243 esac 2244 fi 2245else 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2247$as_echo "$as_me: creating cache $cache_file" >&6;} 2248 >$cache_file 2249fi 2250 2251# Check that the precious variables saved in the cache have kept the same 2252# value. 2253ac_cache_corrupted=false 2254for ac_var in $ac_precious_vars; do 2255 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2256 eval ac_new_set=\$ac_env_${ac_var}_set 2257 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2258 eval ac_new_val=\$ac_env_${ac_var}_value 2259 case $ac_old_set,$ac_new_set in 2260 set,) 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2262$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2263 ac_cache_corrupted=: ;; 2264 ,set) 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2266$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2267 ac_cache_corrupted=: ;; 2268 ,);; 2269 *) 2270 if test "x$ac_old_val" != "x$ac_new_val"; then 2271 # differences in whitespace do not lead to failure. 2272 ac_old_val_w=`echo x $ac_old_val` 2273 ac_new_val_w=`echo x $ac_new_val` 2274 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2276$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2277 ac_cache_corrupted=: 2278 else 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2280$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2281 eval $ac_var=\$ac_old_val 2282 fi 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2284$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2286$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2287 fi;; 2288 esac 2289 # Pass precious variables to config.status. 2290 if test "$ac_new_set" = set; then 2291 case $ac_new_val in 2292 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2293 *) ac_arg=$ac_var=$ac_new_val ;; 2294 esac 2295 case " $ac_configure_args " in 2296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2297 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2298 esac 2299 fi 2300done 2301if $ac_cache_corrupted; then 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2305$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2306 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2307fi 2308## -------------------- ## 2309## Main body of script. ## 2310## -------------------- ## 2311 2312ac_ext=c 2313ac_cpp='$CPP $CPPFLAGS' 2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2316ac_compiler_gnu=$ac_cv_c_compiler_gnu 2317 2318 2319 2320# Require xorg-macros 1.4 for XORG_DEFAULT_OPTIONS & XORG_INSTALL 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332ac_ext=c 2333ac_cpp='$CPP $CPPFLAGS' 2334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2336ac_compiler_gnu=$ac_cv_c_compiler_gnu 2337if test -n "$ac_tool_prefix"; then 2338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2339set dummy ${ac_tool_prefix}gcc; ac_word=$2 2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2341$as_echo_n "checking for $ac_word... " >&6; } 2342if test "${ac_cv_prog_CC+set}" = set; then : 2343 $as_echo_n "(cached) " >&6 2344else 2345 if test -n "$CC"; then 2346 ac_cv_prog_CC="$CC" # Let the user override the test. 2347else 2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349for as_dir in $PATH 2350do 2351 IFS=$as_save_IFS 2352 test -z "$as_dir" && as_dir=. 2353 for ac_exec_ext in '' $ac_executable_extensions; do 2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2355 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2357 break 2 2358 fi 2359done 2360 done 2361IFS=$as_save_IFS 2362 2363fi 2364fi 2365CC=$ac_cv_prog_CC 2366if test -n "$CC"; then 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2368$as_echo "$CC" >&6; } 2369else 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2371$as_echo "no" >&6; } 2372fi 2373 2374 2375fi 2376if test -z "$ac_cv_prog_CC"; then 2377 ac_ct_CC=$CC 2378 # Extract the first word of "gcc", so it can be a program name with args. 2379set dummy gcc; ac_word=$2 2380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2381$as_echo_n "checking for $ac_word... " >&6; } 2382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2383 $as_echo_n "(cached) " >&6 2384else 2385 if test -n "$ac_ct_CC"; then 2386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2387else 2388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2389for as_dir in $PATH 2390do 2391 IFS=$as_save_IFS 2392 test -z "$as_dir" && as_dir=. 2393 for ac_exec_ext in '' $ac_executable_extensions; do 2394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2395 ac_cv_prog_ac_ct_CC="gcc" 2396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2397 break 2 2398 fi 2399done 2400 done 2401IFS=$as_save_IFS 2402 2403fi 2404fi 2405ac_ct_CC=$ac_cv_prog_ac_ct_CC 2406if test -n "$ac_ct_CC"; then 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2408$as_echo "$ac_ct_CC" >&6; } 2409else 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2411$as_echo "no" >&6; } 2412fi 2413 2414 if test "x$ac_ct_CC" = x; then 2415 CC="" 2416 else 2417 case $cross_compiling:$ac_tool_warned in 2418yes:) 2419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2421ac_tool_warned=yes ;; 2422esac 2423 CC=$ac_ct_CC 2424 fi 2425else 2426 CC="$ac_cv_prog_CC" 2427fi 2428 2429if test -z "$CC"; then 2430 if test -n "$ac_tool_prefix"; then 2431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2432set dummy ${ac_tool_prefix}cc; ac_word=$2 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2434$as_echo_n "checking for $ac_word... " >&6; } 2435if test "${ac_cv_prog_CC+set}" = set; then : 2436 $as_echo_n "(cached) " >&6 2437else 2438 if test -n "$CC"; then 2439 ac_cv_prog_CC="$CC" # Let the user override the test. 2440else 2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2442for as_dir in $PATH 2443do 2444 IFS=$as_save_IFS 2445 test -z "$as_dir" && as_dir=. 2446 for ac_exec_ext in '' $ac_executable_extensions; do 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2448 ac_cv_prog_CC="${ac_tool_prefix}cc" 2449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2450 break 2 2451 fi 2452done 2453 done 2454IFS=$as_save_IFS 2455 2456fi 2457fi 2458CC=$ac_cv_prog_CC 2459if test -n "$CC"; then 2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2461$as_echo "$CC" >&6; } 2462else 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2464$as_echo "no" >&6; } 2465fi 2466 2467 2468 fi 2469fi 2470if test -z "$CC"; then 2471 # Extract the first word of "cc", so it can be a program name with args. 2472set dummy cc; ac_word=$2 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2474$as_echo_n "checking for $ac_word... " >&6; } 2475if test "${ac_cv_prog_CC+set}" = set; then : 2476 $as_echo_n "(cached) " >&6 2477else 2478 if test -n "$CC"; then 2479 ac_cv_prog_CC="$CC" # Let the user override the test. 2480else 2481 ac_prog_rejected=no 2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483for as_dir in $PATH 2484do 2485 IFS=$as_save_IFS 2486 test -z "$as_dir" && as_dir=. 2487 for ac_exec_ext in '' $ac_executable_extensions; do 2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2490 ac_prog_rejected=yes 2491 continue 2492 fi 2493 ac_cv_prog_CC="cc" 2494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2495 break 2 2496 fi 2497done 2498 done 2499IFS=$as_save_IFS 2500 2501if test $ac_prog_rejected = yes; then 2502 # We found a bogon in the path, so make sure we never use it. 2503 set dummy $ac_cv_prog_CC 2504 shift 2505 if test $# != 0; then 2506 # We chose a different compiler from the bogus one. 2507 # However, it has the same basename, so the bogon will be chosen 2508 # first if we set CC to just the basename; use the full file name. 2509 shift 2510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2511 fi 2512fi 2513fi 2514fi 2515CC=$ac_cv_prog_CC 2516if test -n "$CC"; then 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2518$as_echo "$CC" >&6; } 2519else 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2521$as_echo "no" >&6; } 2522fi 2523 2524 2525fi 2526if test -z "$CC"; then 2527 if test -n "$ac_tool_prefix"; then 2528 for ac_prog in cl.exe 2529 do 2530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2531set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2533$as_echo_n "checking for $ac_word... " >&6; } 2534if test "${ac_cv_prog_CC+set}" = set; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 if test -n "$CC"; then 2538 ac_cv_prog_CC="$CC" # Let the user override the test. 2539else 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552 done 2553IFS=$as_save_IFS 2554 2555fi 2556fi 2557CC=$ac_cv_prog_CC 2558if test -n "$CC"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2560$as_echo "$CC" >&6; } 2561else 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2563$as_echo "no" >&6; } 2564fi 2565 2566 2567 test -n "$CC" && break 2568 done 2569fi 2570if test -z "$CC"; then 2571 ac_ct_CC=$CC 2572 for ac_prog in cl.exe 2573do 2574 # Extract the first word of "$ac_prog", so it can be a program name with args. 2575set dummy $ac_prog; ac_word=$2 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2577$as_echo_n "checking for $ac_word... " >&6; } 2578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2579 $as_echo_n "(cached) " >&6 2580else 2581 if test -n "$ac_ct_CC"; then 2582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2583else 2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2585for as_dir in $PATH 2586do 2587 IFS=$as_save_IFS 2588 test -z "$as_dir" && as_dir=. 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2591 ac_cv_prog_ac_ct_CC="$ac_prog" 2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2593 break 2 2594 fi 2595done 2596 done 2597IFS=$as_save_IFS 2598 2599fi 2600fi 2601ac_ct_CC=$ac_cv_prog_ac_ct_CC 2602if test -n "$ac_ct_CC"; then 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2604$as_echo "$ac_ct_CC" >&6; } 2605else 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2607$as_echo "no" >&6; } 2608fi 2609 2610 2611 test -n "$ac_ct_CC" && break 2612done 2613 2614 if test "x$ac_ct_CC" = x; then 2615 CC="" 2616 else 2617 case $cross_compiling:$ac_tool_warned in 2618yes:) 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2621ac_tool_warned=yes ;; 2622esac 2623 CC=$ac_ct_CC 2624 fi 2625fi 2626 2627fi 2628 2629 2630test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2632as_fn_error "no acceptable C compiler found in \$PATH 2633See \`config.log' for more details." "$LINENO" 5; } 2634 2635# Provide some information about the compiler. 2636$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2637set X $ac_compile 2638ac_compiler=$2 2639for ac_option in --version -v -V -qversion; do 2640 { { ac_try="$ac_compiler $ac_option >&5" 2641case "(($ac_try" in 2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2643 *) ac_try_echo=$ac_try;; 2644esac 2645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2646$as_echo "$ac_try_echo"; } >&5 2647 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2648 ac_status=$? 2649 if test -s conftest.err; then 2650 sed '10a\ 2651... rest of stderr output deleted ... 2652 10q' conftest.err >conftest.er1 2653 cat conftest.er1 >&5 2654 fi 2655 rm -f conftest.er1 conftest.err 2656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2657 test $ac_status = 0; } 2658done 2659 2660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2661/* end confdefs.h. */ 2662 2663int 2664main () 2665{ 2666 2667 ; 2668 return 0; 2669} 2670_ACEOF 2671ac_clean_files_save=$ac_clean_files 2672ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2673# Try to create an executable without -o first, disregard a.out. 2674# It will help us diagnose broken compilers, and finding out an intuition 2675# of exeext. 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2677$as_echo_n "checking whether the C compiler works... " >&6; } 2678ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2679 2680# The possible output files: 2681ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2682 2683ac_rmfiles= 2684for ac_file in $ac_files 2685do 2686 case $ac_file in 2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2688 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2689 esac 2690done 2691rm -f $ac_rmfiles 2692 2693if { { ac_try="$ac_link_default" 2694case "(($ac_try" in 2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2696 *) ac_try_echo=$ac_try;; 2697esac 2698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2699$as_echo "$ac_try_echo"; } >&5 2700 (eval "$ac_link_default") 2>&5 2701 ac_status=$? 2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2703 test $ac_status = 0; }; then : 2704 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2705# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2706# in a Makefile. We should not override ac_cv_exeext if it was cached, 2707# so that the user can short-circuit this test for compilers unknown to 2708# Autoconf. 2709for ac_file in $ac_files '' 2710do 2711 test -f "$ac_file" || continue 2712 case $ac_file in 2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2714 ;; 2715 [ab].out ) 2716 # We found the default executable, but exeext='' is most 2717 # certainly right. 2718 break;; 2719 *.* ) 2720 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2721 then :; else 2722 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2723 fi 2724 # We set ac_cv_exeext here because the later test for it is not 2725 # safe: cross compilers may not add the suffix if given an `-o' 2726 # argument, so we may need to know it at that point already. 2727 # Even if this section looks crufty: it has the advantage of 2728 # actually working. 2729 break;; 2730 * ) 2731 break;; 2732 esac 2733done 2734test "$ac_cv_exeext" = no && ac_cv_exeext= 2735 2736else 2737 ac_file='' 2738fi 2739if test -z "$ac_file"; then : 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2741$as_echo "no" >&6; } 2742$as_echo "$as_me: failed program was:" >&5 2743sed 's/^/| /' conftest.$ac_ext >&5 2744 2745{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2747{ as_fn_set_status 77 2748as_fn_error "C compiler cannot create executables 2749See \`config.log' for more details." "$LINENO" 5; }; } 2750else 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2752$as_echo "yes" >&6; } 2753fi 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2755$as_echo_n "checking for C compiler default output file name... " >&6; } 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2757$as_echo "$ac_file" >&6; } 2758ac_exeext=$ac_cv_exeext 2759 2760rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2761ac_clean_files=$ac_clean_files_save 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2763$as_echo_n "checking for suffix of executables... " >&6; } 2764if { { ac_try="$ac_link" 2765case "(($ac_try" in 2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2767 *) ac_try_echo=$ac_try;; 2768esac 2769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2770$as_echo "$ac_try_echo"; } >&5 2771 (eval "$ac_link") 2>&5 2772 ac_status=$? 2773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2774 test $ac_status = 0; }; then : 2775 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2776# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2777# work properly (i.e., refer to `conftest.exe'), while it won't with 2778# `rm'. 2779for ac_file in conftest.exe conftest conftest.*; do 2780 test -f "$ac_file" || continue 2781 case $ac_file in 2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2783 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2784 break;; 2785 * ) break;; 2786 esac 2787done 2788else 2789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2790$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2791as_fn_error "cannot compute suffix of executables: cannot compile and link 2792See \`config.log' for more details." "$LINENO" 5; } 2793fi 2794rm -f conftest conftest$ac_cv_exeext 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2796$as_echo "$ac_cv_exeext" >&6; } 2797 2798rm -f conftest.$ac_ext 2799EXEEXT=$ac_cv_exeext 2800ac_exeext=$EXEEXT 2801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2802/* end confdefs.h. */ 2803#include <stdio.h> 2804int 2805main () 2806{ 2807FILE *f = fopen ("conftest.out", "w"); 2808 return ferror (f) || fclose (f) != 0; 2809 2810 ; 2811 return 0; 2812} 2813_ACEOF 2814ac_clean_files="$ac_clean_files conftest.out" 2815# Check that the compiler produces executables we can run. If not, either 2816# the compiler is broken, or we cross compile. 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2818$as_echo_n "checking whether we are cross compiling... " >&6; } 2819if test "$cross_compiling" != yes; then 2820 { { ac_try="$ac_link" 2821case "(($ac_try" in 2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2823 *) ac_try_echo=$ac_try;; 2824esac 2825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2826$as_echo "$ac_try_echo"; } >&5 2827 (eval "$ac_link") 2>&5 2828 ac_status=$? 2829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2830 test $ac_status = 0; } 2831 if { ac_try='./conftest$ac_cv_exeext' 2832 { { case "(($ac_try" in 2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2834 *) ac_try_echo=$ac_try;; 2835esac 2836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2837$as_echo "$ac_try_echo"; } >&5 2838 (eval "$ac_try") 2>&5 2839 ac_status=$? 2840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2841 test $ac_status = 0; }; }; then 2842 cross_compiling=no 2843 else 2844 if test "$cross_compiling" = maybe; then 2845 cross_compiling=yes 2846 else 2847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2849as_fn_error "cannot run C compiled programs. 2850If you meant to cross compile, use \`--host'. 2851See \`config.log' for more details." "$LINENO" 5; } 2852 fi 2853 fi 2854fi 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2856$as_echo "$cross_compiling" >&6; } 2857 2858rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2859ac_clean_files=$ac_clean_files_save 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2861$as_echo_n "checking for suffix of object files... " >&6; } 2862if test "${ac_cv_objext+set}" = set; then : 2863 $as_echo_n "(cached) " >&6 2864else 2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2866/* end confdefs.h. */ 2867 2868int 2869main () 2870{ 2871 2872 ; 2873 return 0; 2874} 2875_ACEOF 2876rm -f conftest.o conftest.obj 2877if { { ac_try="$ac_compile" 2878case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881esac 2882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2883$as_echo "$ac_try_echo"; } >&5 2884 (eval "$ac_compile") 2>&5 2885 ac_status=$? 2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2887 test $ac_status = 0; }; then : 2888 for ac_file in conftest.o conftest.obj conftest.*; do 2889 test -f "$ac_file" || continue; 2890 case $ac_file in 2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2892 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2893 break;; 2894 esac 2895done 2896else 2897 $as_echo "$as_me: failed program was:" >&5 2898sed 's/^/| /' conftest.$ac_ext >&5 2899 2900{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2902as_fn_error "cannot compute suffix of object files: cannot compile 2903See \`config.log' for more details." "$LINENO" 5; } 2904fi 2905rm -f conftest.$ac_cv_objext conftest.$ac_ext 2906fi 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2908$as_echo "$ac_cv_objext" >&6; } 2909OBJEXT=$ac_cv_objext 2910ac_objext=$OBJEXT 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2912$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2913if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2917/* end confdefs.h. */ 2918 2919int 2920main () 2921{ 2922#ifndef __GNUC__ 2923 choke me 2924#endif 2925 2926 ; 2927 return 0; 2928} 2929_ACEOF 2930if ac_fn_c_try_compile "$LINENO"; then : 2931 ac_compiler_gnu=yes 2932else 2933 ac_compiler_gnu=no 2934fi 2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2936ac_cv_c_compiler_gnu=$ac_compiler_gnu 2937 2938fi 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2940$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2941if test $ac_compiler_gnu = yes; then 2942 GCC=yes 2943else 2944 GCC= 2945fi 2946ac_test_CFLAGS=${CFLAGS+set} 2947ac_save_CFLAGS=$CFLAGS 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2949$as_echo_n "checking whether $CC accepts -g... " >&6; } 2950if test "${ac_cv_prog_cc_g+set}" = set; then : 2951 $as_echo_n "(cached) " >&6 2952else 2953 ac_save_c_werror_flag=$ac_c_werror_flag 2954 ac_c_werror_flag=yes 2955 ac_cv_prog_cc_g=no 2956 CFLAGS="-g" 2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2958/* end confdefs.h. */ 2959 2960int 2961main () 2962{ 2963 2964 ; 2965 return 0; 2966} 2967_ACEOF 2968if ac_fn_c_try_compile "$LINENO"; then : 2969 ac_cv_prog_cc_g=yes 2970else 2971 CFLAGS="" 2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2973/* end confdefs.h. */ 2974 2975int 2976main () 2977{ 2978 2979 ; 2980 return 0; 2981} 2982_ACEOF 2983if ac_fn_c_try_compile "$LINENO"; then : 2984 2985else 2986 ac_c_werror_flag=$ac_save_c_werror_flag 2987 CFLAGS="-g" 2988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2989/* end confdefs.h. */ 2990 2991int 2992main () 2993{ 2994 2995 ; 2996 return 0; 2997} 2998_ACEOF 2999if ac_fn_c_try_compile "$LINENO"; then : 3000 ac_cv_prog_cc_g=yes 3001fi 3002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3003fi 3004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3005fi 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3007 ac_c_werror_flag=$ac_save_c_werror_flag 3008fi 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3010$as_echo "$ac_cv_prog_cc_g" >&6; } 3011if test "$ac_test_CFLAGS" = set; then 3012 CFLAGS=$ac_save_CFLAGS 3013elif test $ac_cv_prog_cc_g = yes; then 3014 if test "$GCC" = yes; then 3015 CFLAGS="-g -O2" 3016 else 3017 CFLAGS="-g" 3018 fi 3019else 3020 if test "$GCC" = yes; then 3021 CFLAGS="-O2" 3022 else 3023 CFLAGS= 3024 fi 3025fi 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3027$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3028if test "${ac_cv_prog_cc_c89+set}" = set; then : 3029 $as_echo_n "(cached) " >&6 3030else 3031 ac_cv_prog_cc_c89=no 3032ac_save_CC=$CC 3033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3034/* end confdefs.h. */ 3035#include <stdarg.h> 3036#include <stdio.h> 3037#include <sys/types.h> 3038#include <sys/stat.h> 3039/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3040struct buf { int x; }; 3041FILE * (*rcsopen) (struct buf *, struct stat *, int); 3042static char *e (p, i) 3043 char **p; 3044 int i; 3045{ 3046 return p[i]; 3047} 3048static char *f (char * (*g) (char **, int), char **p, ...) 3049{ 3050 char *s; 3051 va_list v; 3052 va_start (v,p); 3053 s = g (p, va_arg (v,int)); 3054 va_end (v); 3055 return s; 3056} 3057 3058/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3059 function prototypes and stuff, but not '\xHH' hex character constants. 3060 These don't provoke an error unfortunately, instead are silently treated 3061 as 'x'. The following induces an error, until -std is added to get 3062 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3063 array size at least. It's necessary to write '\x00'==0 to get something 3064 that's true only with -std. */ 3065int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3066 3067/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3068 inside strings and character constants. */ 3069#define FOO(x) 'x' 3070int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3071 3072int test (int i, double x); 3073struct s1 {int (*f) (int a);}; 3074struct s2 {int (*f) (double a);}; 3075int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3076int argc; 3077char **argv; 3078int 3079main () 3080{ 3081return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3082 ; 3083 return 0; 3084} 3085_ACEOF 3086for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3087 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3088do 3089 CC="$ac_save_CC $ac_arg" 3090 if ac_fn_c_try_compile "$LINENO"; then : 3091 ac_cv_prog_cc_c89=$ac_arg 3092fi 3093rm -f core conftest.err conftest.$ac_objext 3094 test "x$ac_cv_prog_cc_c89" != "xno" && break 3095done 3096rm -f conftest.$ac_ext 3097CC=$ac_save_CC 3098 3099fi 3100# AC_CACHE_VAL 3101case "x$ac_cv_prog_cc_c89" in 3102 x) 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3104$as_echo "none needed" >&6; } ;; 3105 xno) 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3107$as_echo "unsupported" >&6; } ;; 3108 *) 3109 CC="$CC $ac_cv_prog_cc_c89" 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3111$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3112esac 3113if test "x$ac_cv_prog_cc_c89" != xno; then : 3114 3115fi 3116 3117ac_ext=c 3118ac_cpp='$CPP $CPPFLAGS' 3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3121ac_compiler_gnu=$ac_cv_c_compiler_gnu 3122 3123 3124ac_ext=c 3125ac_cpp='$CPP $CPPFLAGS' 3126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3128ac_compiler_gnu=$ac_cv_c_compiler_gnu 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3130$as_echo_n "checking how to run the C preprocessor... " >&6; } 3131# On Suns, sometimes $CPP names a directory. 3132if test -n "$CPP" && test -d "$CPP"; then 3133 CPP= 3134fi 3135if test -z "$CPP"; then 3136 if test "${ac_cv_prog_CPP+set}" = set; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 # Double quotes because CPP needs to be expanded 3140 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3141 do 3142 ac_preproc_ok=false 3143for ac_c_preproc_warn_flag in '' yes 3144do 3145 # Use a header file that comes with gcc, so configuring glibc 3146 # with a fresh cross-compiler works. 3147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3148 # <limits.h> exists even on freestanding compilers. 3149 # On the NeXT, cc -E runs the code through the compiler's parser, 3150 # not just through cpp. "Syntax error" is here to catch this case. 3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3152/* end confdefs.h. */ 3153#ifdef __STDC__ 3154# include <limits.h> 3155#else 3156# include <assert.h> 3157#endif 3158 Syntax error 3159_ACEOF 3160if ac_fn_c_try_cpp "$LINENO"; then : 3161 3162else 3163 # Broken: fails on valid input. 3164continue 3165fi 3166rm -f conftest.err conftest.$ac_ext 3167 3168 # OK, works on sane cases. Now check whether nonexistent headers 3169 # can be detected and how. 3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3171/* end confdefs.h. */ 3172#include <ac_nonexistent.h> 3173_ACEOF 3174if ac_fn_c_try_cpp "$LINENO"; then : 3175 # Broken: success on invalid input. 3176continue 3177else 3178 # Passes both tests. 3179ac_preproc_ok=: 3180break 3181fi 3182rm -f conftest.err conftest.$ac_ext 3183 3184done 3185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3186rm -f conftest.err conftest.$ac_ext 3187if $ac_preproc_ok; then : 3188 break 3189fi 3190 3191 done 3192 ac_cv_prog_CPP=$CPP 3193 3194fi 3195 CPP=$ac_cv_prog_CPP 3196else 3197 ac_cv_prog_CPP=$CPP 3198fi 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3200$as_echo "$CPP" >&6; } 3201ac_preproc_ok=false 3202for ac_c_preproc_warn_flag in '' yes 3203do 3204 # Use a header file that comes with gcc, so configuring glibc 3205 # with a fresh cross-compiler works. 3206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3207 # <limits.h> exists even on freestanding compilers. 3208 # On the NeXT, cc -E runs the code through the compiler's parser, 3209 # not just through cpp. "Syntax error" is here to catch this case. 3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3211/* end confdefs.h. */ 3212#ifdef __STDC__ 3213# include <limits.h> 3214#else 3215# include <assert.h> 3216#endif 3217 Syntax error 3218_ACEOF 3219if ac_fn_c_try_cpp "$LINENO"; then : 3220 3221else 3222 # Broken: fails on valid input. 3223continue 3224fi 3225rm -f conftest.err conftest.$ac_ext 3226 3227 # OK, works on sane cases. Now check whether nonexistent headers 3228 # can be detected and how. 3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3230/* end confdefs.h. */ 3231#include <ac_nonexistent.h> 3232_ACEOF 3233if ac_fn_c_try_cpp "$LINENO"; then : 3234 # Broken: success on invalid input. 3235continue 3236else 3237 # Passes both tests. 3238ac_preproc_ok=: 3239break 3240fi 3241rm -f conftest.err conftest.$ac_ext 3242 3243done 3244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3245rm -f conftest.err conftest.$ac_ext 3246if $ac_preproc_ok; then : 3247 3248else 3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3251as_fn_error "C preprocessor \"$CPP\" fails sanity check 3252See \`config.log' for more details." "$LINENO" 5; } 3253fi 3254 3255ac_ext=c 3256ac_cpp='$CPP $CPPFLAGS' 3257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3259ac_compiler_gnu=$ac_cv_c_compiler_gnu 3260 3261 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3263$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3264if test "${ac_cv_path_GREP+set}" = set; then : 3265 $as_echo_n "(cached) " >&6 3266else 3267 if test -z "$GREP"; then 3268 ac_path_GREP_found=false 3269 # Loop through the user's path and test for each of PROGNAME-LIST 3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3272do 3273 IFS=$as_save_IFS 3274 test -z "$as_dir" && as_dir=. 3275 for ac_prog in grep ggrep; do 3276 for ac_exec_ext in '' $ac_executable_extensions; do 3277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3278 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3279# Check for GNU ac_path_GREP and select it if it is found. 3280 # Check for GNU $ac_path_GREP 3281case `"$ac_path_GREP" --version 2>&1` in 3282*GNU*) 3283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3284*) 3285 ac_count=0 3286 $as_echo_n 0123456789 >"conftest.in" 3287 while : 3288 do 3289 cat "conftest.in" "conftest.in" >"conftest.tmp" 3290 mv "conftest.tmp" "conftest.in" 3291 cp "conftest.in" "conftest.nl" 3292 $as_echo 'GREP' >> "conftest.nl" 3293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3295 as_fn_arith $ac_count + 1 && ac_count=$as_val 3296 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3297 # Best one so far, save it but keep looking for a better one 3298 ac_cv_path_GREP="$ac_path_GREP" 3299 ac_path_GREP_max=$ac_count 3300 fi 3301 # 10*(2^10) chars as input seems more than enough 3302 test $ac_count -gt 10 && break 3303 done 3304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3305esac 3306 3307 $ac_path_GREP_found && break 3 3308 done 3309 done 3310 done 3311IFS=$as_save_IFS 3312 if test -z "$ac_cv_path_GREP"; then 3313 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3314 fi 3315else 3316 ac_cv_path_GREP=$GREP 3317fi 3318 3319fi 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3321$as_echo "$ac_cv_path_GREP" >&6; } 3322 GREP="$ac_cv_path_GREP" 3323 3324 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3326$as_echo_n "checking for egrep... " >&6; } 3327if test "${ac_cv_path_EGREP+set}" = set; then : 3328 $as_echo_n "(cached) " >&6 3329else 3330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3331 then ac_cv_path_EGREP="$GREP -E" 3332 else 3333 if test -z "$EGREP"; then 3334 ac_path_EGREP_found=false 3335 # Loop through the user's path and test for each of PROGNAME-LIST 3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3338do 3339 IFS=$as_save_IFS 3340 test -z "$as_dir" && as_dir=. 3341 for ac_prog in egrep; do 3342 for ac_exec_ext in '' $ac_executable_extensions; do 3343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3344 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3345# Check for GNU ac_path_EGREP and select it if it is found. 3346 # Check for GNU $ac_path_EGREP 3347case `"$ac_path_EGREP" --version 2>&1` in 3348*GNU*) 3349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3350*) 3351 ac_count=0 3352 $as_echo_n 0123456789 >"conftest.in" 3353 while : 3354 do 3355 cat "conftest.in" "conftest.in" >"conftest.tmp" 3356 mv "conftest.tmp" "conftest.in" 3357 cp "conftest.in" "conftest.nl" 3358 $as_echo 'EGREP' >> "conftest.nl" 3359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3361 as_fn_arith $ac_count + 1 && ac_count=$as_val 3362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3363 # Best one so far, save it but keep looking for a better one 3364 ac_cv_path_EGREP="$ac_path_EGREP" 3365 ac_path_EGREP_max=$ac_count 3366 fi 3367 # 10*(2^10) chars as input seems more than enough 3368 test $ac_count -gt 10 && break 3369 done 3370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3371esac 3372 3373 $ac_path_EGREP_found && break 3 3374 done 3375 done 3376 done 3377IFS=$as_save_IFS 3378 if test -z "$ac_cv_path_EGREP"; then 3379 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3380 fi 3381else 3382 ac_cv_path_EGREP=$EGREP 3383fi 3384 3385 fi 3386fi 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3388$as_echo "$ac_cv_path_EGREP" >&6; } 3389 EGREP="$ac_cv_path_EGREP" 3390 3391 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3393$as_echo_n "checking for ANSI C header files... " >&6; } 3394if test "${ac_cv_header_stdc+set}" = set; then : 3395 $as_echo_n "(cached) " >&6 3396else 3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399#include <stdlib.h> 3400#include <stdarg.h> 3401#include <string.h> 3402#include <float.h> 3403 3404int 3405main () 3406{ 3407 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412if ac_fn_c_try_compile "$LINENO"; then : 3413 ac_cv_header_stdc=yes 3414else 3415 ac_cv_header_stdc=no 3416fi 3417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3418 3419if test $ac_cv_header_stdc = yes; then 3420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3422/* end confdefs.h. */ 3423#include <string.h> 3424 3425_ACEOF 3426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3427 $EGREP "memchr" >/dev/null 2>&1; then : 3428 3429else 3430 ac_cv_header_stdc=no 3431fi 3432rm -f conftest* 3433 3434fi 3435 3436if test $ac_cv_header_stdc = yes; then 3437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440#include <stdlib.h> 3441 3442_ACEOF 3443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3444 $EGREP "free" >/dev/null 2>&1; then : 3445 3446else 3447 ac_cv_header_stdc=no 3448fi 3449rm -f conftest* 3450 3451fi 3452 3453if test $ac_cv_header_stdc = yes; then 3454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3455 if test "$cross_compiling" = yes; then : 3456 : 3457else 3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3459/* end confdefs.h. */ 3460#include <ctype.h> 3461#include <stdlib.h> 3462#if ((' ' & 0x0FF) == 0x020) 3463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3465#else 3466# define ISLOWER(c) \ 3467 (('a' <= (c) && (c) <= 'i') \ 3468 || ('j' <= (c) && (c) <= 'r') \ 3469 || ('s' <= (c) && (c) <= 'z')) 3470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3471#endif 3472 3473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3474int 3475main () 3476{ 3477 int i; 3478 for (i = 0; i < 256; i++) 3479 if (XOR (islower (i), ISLOWER (i)) 3480 || toupper (i) != TOUPPER (i)) 3481 return 2; 3482 return 0; 3483} 3484_ACEOF 3485if ac_fn_c_try_run "$LINENO"; then : 3486 3487else 3488 ac_cv_header_stdc=no 3489fi 3490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3491 conftest.$ac_objext conftest.beam conftest.$ac_ext 3492fi 3493 3494fi 3495fi 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3497$as_echo "$ac_cv_header_stdc" >&6; } 3498if test $ac_cv_header_stdc = yes; then 3499 3500$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3501 3502fi 3503 3504# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3505for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3506 inttypes.h stdint.h unistd.h 3507do : 3508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3509ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3510" 3511eval as_val=\$$as_ac_Header 3512 if test "x$as_val" = x""yes; then : 3513 cat >>confdefs.h <<_ACEOF 3514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3515_ACEOF 3516 3517fi 3518 3519done 3520 3521 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3523$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3524if test "${ac_cv_prog_cc_c99+set}" = set; then : 3525 $as_echo_n "(cached) " >&6 3526else 3527 ac_cv_prog_cc_c99=no 3528ac_save_CC=$CC 3529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531#include <stdarg.h> 3532#include <stdbool.h> 3533#include <stdlib.h> 3534#include <wchar.h> 3535#include <stdio.h> 3536 3537// Check varargs macros. These examples are taken from C99 6.10.3.5. 3538#define debug(...) fprintf (stderr, __VA_ARGS__) 3539#define showlist(...) puts (#__VA_ARGS__) 3540#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3541static void 3542test_varargs_macros (void) 3543{ 3544 int x = 1234; 3545 int y = 5678; 3546 debug ("Flag"); 3547 debug ("X = %d\n", x); 3548 showlist (The first, second, and third items.); 3549 report (x>y, "x is %d but y is %d", x, y); 3550} 3551 3552// Check long long types. 3553#define BIG64 18446744073709551615ull 3554#define BIG32 4294967295ul 3555#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3556#if !BIG_OK 3557 your preprocessor is broken; 3558#endif 3559#if BIG_OK 3560#else 3561 your preprocessor is broken; 3562#endif 3563static long long int bignum = -9223372036854775807LL; 3564static unsigned long long int ubignum = BIG64; 3565 3566struct incomplete_array 3567{ 3568 int datasize; 3569 double data[]; 3570}; 3571 3572struct named_init { 3573 int number; 3574 const wchar_t *name; 3575 double average; 3576}; 3577 3578typedef const char *ccp; 3579 3580static inline int 3581test_restrict (ccp restrict text) 3582{ 3583 // See if C++-style comments work. 3584 // Iterate through items via the restricted pointer. 3585 // Also check for declarations in for loops. 3586 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3587 continue; 3588 return 0; 3589} 3590 3591// Check varargs and va_copy. 3592static void 3593test_varargs (const char *format, ...) 3594{ 3595 va_list args; 3596 va_start (args, format); 3597 va_list args_copy; 3598 va_copy (args_copy, args); 3599 3600 const char *str; 3601 int number; 3602 float fnumber; 3603 3604 while (*format) 3605 { 3606 switch (*format++) 3607 { 3608 case 's': // string 3609 str = va_arg (args_copy, const char *); 3610 break; 3611 case 'd': // int 3612 number = va_arg (args_copy, int); 3613 break; 3614 case 'f': // float 3615 fnumber = va_arg (args_copy, double); 3616 break; 3617 default: 3618 break; 3619 } 3620 } 3621 va_end (args_copy); 3622 va_end (args); 3623} 3624 3625int 3626main () 3627{ 3628 3629 // Check bool. 3630 _Bool success = false; 3631 3632 // Check restrict. 3633 if (test_restrict ("String literal") == 0) 3634 success = true; 3635 char *restrict newvar = "Another string"; 3636 3637 // Check varargs. 3638 test_varargs ("s, d' f .", "string", 65, 34.234); 3639 test_varargs_macros (); 3640 3641 // Check flexible array members. 3642 struct incomplete_array *ia = 3643 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3644 ia->datasize = 10; 3645 for (int i = 0; i < ia->datasize; ++i) 3646 ia->data[i] = i * 1.234; 3647 3648 // Check named initializers. 3649 struct named_init ni = { 3650 .number = 34, 3651 .name = L"Test wide string", 3652 .average = 543.34343, 3653 }; 3654 3655 ni.number = 58; 3656 3657 int dynamic_array[ni.number]; 3658 dynamic_array[ni.number - 1] = 543; 3659 3660 // work around unused variable warnings 3661 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3662 || dynamic_array[ni.number - 1] != 543); 3663 3664 ; 3665 return 0; 3666} 3667_ACEOF 3668for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3669do 3670 CC="$ac_save_CC $ac_arg" 3671 if ac_fn_c_try_compile "$LINENO"; then : 3672 ac_cv_prog_cc_c99=$ac_arg 3673fi 3674rm -f core conftest.err conftest.$ac_objext 3675 test "x$ac_cv_prog_cc_c99" != "xno" && break 3676done 3677rm -f conftest.$ac_ext 3678CC=$ac_save_CC 3679 3680fi 3681# AC_CACHE_VAL 3682case "x$ac_cv_prog_cc_c99" in 3683 x) 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3685$as_echo "none needed" >&6; } ;; 3686 xno) 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3688$as_echo "unsupported" >&6; } ;; 3689 *) 3690 CC="$CC $ac_cv_prog_cc_c99" 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3692$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3693esac 3694if test "x$ac_cv_prog_cc_c99" != xno; then : 3695 3696fi 3697 3698 3699 3700 3701if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3702 if test -n "$ac_tool_prefix"; then 3703 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3704set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3706$as_echo_n "checking for $ac_word... " >&6; } 3707if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 3708 $as_echo_n "(cached) " >&6 3709else 3710 case $PKG_CONFIG in 3711 [\\/]* | ?:[\\/]*) 3712 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3713 ;; 3714 *) 3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3716for as_dir in $PATH 3717do 3718 IFS=$as_save_IFS 3719 test -z "$as_dir" && as_dir=. 3720 for ac_exec_ext in '' $ac_executable_extensions; do 3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3722 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3724 break 2 3725 fi 3726done 3727 done 3728IFS=$as_save_IFS 3729 3730 ;; 3731esac 3732fi 3733PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3734if test -n "$PKG_CONFIG"; then 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3736$as_echo "$PKG_CONFIG" >&6; } 3737else 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3739$as_echo "no" >&6; } 3740fi 3741 3742 3743fi 3744if test -z "$ac_cv_path_PKG_CONFIG"; then 3745 ac_pt_PKG_CONFIG=$PKG_CONFIG 3746 # Extract the first word of "pkg-config", so it can be a program name with args. 3747set dummy pkg-config; ac_word=$2 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3749$as_echo_n "checking for $ac_word... " >&6; } 3750if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 3751 $as_echo_n "(cached) " >&6 3752else 3753 case $ac_pt_PKG_CONFIG in 3754 [\\/]* | ?:[\\/]*) 3755 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3756 ;; 3757 *) 3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3759for as_dir in $PATH 3760do 3761 IFS=$as_save_IFS 3762 test -z "$as_dir" && as_dir=. 3763 for ac_exec_ext in '' $ac_executable_extensions; do 3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3765 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3767 break 2 3768 fi 3769done 3770 done 3771IFS=$as_save_IFS 3772 3773 ;; 3774esac 3775fi 3776ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3777if test -n "$ac_pt_PKG_CONFIG"; then 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3779$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3780else 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3782$as_echo "no" >&6; } 3783fi 3784 3785 if test "x$ac_pt_PKG_CONFIG" = x; then 3786 PKG_CONFIG="" 3787 else 3788 case $cross_compiling:$ac_tool_warned in 3789yes:) 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3792ac_tool_warned=yes ;; 3793esac 3794 PKG_CONFIG=$ac_pt_PKG_CONFIG 3795 fi 3796else 3797 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3798fi 3799 3800fi 3801if test -n "$PKG_CONFIG"; then 3802 _pkg_min_version=0.9.0 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3804$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3805 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3807$as_echo "yes" >&6; } 3808 else 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3810$as_echo "no" >&6; } 3811 PKG_CONFIG="" 3812 fi 3813 3814fi 3815ac_aux_dir= 3816for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3817 for ac_t in install-sh install.sh shtool; do 3818 if test -f "$ac_dir/$ac_t"; then 3819 ac_aux_dir=$ac_dir 3820 ac_install_sh="$ac_aux_dir/$ac_t -c" 3821 break 2 3822 fi 3823 done 3824done 3825if test -z "$ac_aux_dir"; then 3826 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3827fi 3828 3829# These three variables are undocumented and unsupported, 3830# and are intended to be withdrawn in a future Autoconf release. 3831# They can cause serious problems if a builder's source tree is in a directory 3832# whose full name contains unusual characters. 3833ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3834ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3835ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3836 3837 3838# Make sure we can run config.sub. 3839$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3840 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3841 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3843$as_echo_n "checking build system type... " >&6; } 3844if test "${ac_cv_build+set}" = set; then : 3845 $as_echo_n "(cached) " >&6 3846else 3847 ac_build_alias=$build_alias 3848test "x$ac_build_alias" = x && 3849 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3850test "x$ac_build_alias" = x && 3851 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3852ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3853 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3854 3855fi 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3857$as_echo "$ac_cv_build" >&6; } 3858case $ac_cv_build in 3859*-*-*) ;; 3860*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3861esac 3862build=$ac_cv_build 3863ac_save_IFS=$IFS; IFS='-' 3864set x $ac_cv_build 3865shift 3866build_cpu=$1 3867build_vendor=$2 3868shift; shift 3869# Remember, the first character of IFS is used to create $*, 3870# except with old shells: 3871build_os=$* 3872IFS=$ac_save_IFS 3873case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3874 3875 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3877$as_echo_n "checking host system type... " >&6; } 3878if test "${ac_cv_host+set}" = set; then : 3879 $as_echo_n "(cached) " >&6 3880else 3881 if test "x$host_alias" = x; then 3882 ac_cv_host=$ac_cv_build 3883else 3884 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3885 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3886fi 3887 3888fi 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3890$as_echo "$ac_cv_host" >&6; } 3891case $ac_cv_host in 3892*-*-*) ;; 3893*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3894esac 3895host=$ac_cv_host 3896ac_save_IFS=$IFS; IFS='-' 3897set x $ac_cv_host 3898shift 3899host_cpu=$1 3900host_vendor=$2 3901shift; shift 3902# Remember, the first character of IFS is used to create $*, 3903# except with old shells: 3904host_os=$* 3905IFS=$ac_save_IFS 3906case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3907 3908 3909 3910 3911 3912if test "x$GCC" = xyes ; then 3913 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 3914-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 3915-Wbad-function-cast -Wformat=2" 3916 case `$CC -dumpversion` in 3917 3.4.* | 4.*) 3918 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 3919 ;; 3920 esac 3921else 3922 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3923if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 3924 SUNCC="yes" 3925else 3926 SUNCC="no" 3927fi 3928 3929 if test "x$SUNCC" = "xyes"; then 3930 CWARNFLAGS="-v" 3931 fi 3932fi 3933 3934 3935 3936 3937 3938 3939 3940# Check whether --enable-strict-compilation was given. 3941if test "${enable_strict_compilation+set}" = set; then : 3942 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 3943else 3944 STRICT_COMPILE=no 3945fi 3946 3947if test "x$STRICT_COMPILE" = "xyes"; then 3948 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 3949if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 3950 SUNCC="yes" 3951else 3952 SUNCC="no" 3953fi 3954 3955 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 3956if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 3957 INTELCC="yes" 3958else 3959 INTELCC="no" 3960fi 3961 3962 if test "x$GCC" = xyes ; then 3963 STRICT_CFLAGS="-pedantic -Werror" 3964 elif test "x$SUNCC" = "xyes"; then 3965 STRICT_CFLAGS="-errwarn" 3966 elif test "x$INTELCC" = "xyes"; then 3967 STRICT_CFLAGS="-Werror" 3968 fi 3969fi 3970CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 3971 3972 3973 3974 3975# Check whether --with-release-version was given. 3976if test "${with_release_version+set}" = set; then : 3977 withval=$with_release_version; RELEASE_VERSION="$withval" 3978else 3979 RELEASE_VERSION="" 3980fi 3981 3982 if test "x$RELEASE_VERSION" != "x"; then 3983 PACKAGE="$PACKAGE-$RELEASE_VERSION" 3984 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 3986$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 3987 fi 3988 3989cat >>confdefs.h <<_ACEOF 3990#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 3991_ACEOF 3992 3993 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 3994 if test "x$PVM" = "x"; then 3995 PVM="0" 3996 fi 3997 3998cat >>confdefs.h <<_ACEOF 3999#define PACKAGE_VERSION_MINOR $PVM 4000_ACEOF 4001 4002 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4003 if test "x$PVP" = "x"; then 4004 PVP="0" 4005 fi 4006 4007cat >>confdefs.h <<_ACEOF 4008#define PACKAGE_VERSION_PATCHLEVEL $PVP 4009_ACEOF 4010 4011 4012 4013CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4014mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4015|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4016echo 'git directory not found: installing possibly empty changelog.' >&2)" 4017 4018 4019 4020 4021macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4022INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4023mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4024|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4025echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4026 4027 4028 4029 4030 4031if test x$APP_MAN_SUFFIX = x ; then 4032 APP_MAN_SUFFIX=1 4033fi 4034if test x$APP_MAN_DIR = x ; then 4035 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4036fi 4037 4038if test x$LIB_MAN_SUFFIX = x ; then 4039 LIB_MAN_SUFFIX=3 4040fi 4041if test x$LIB_MAN_DIR = x ; then 4042 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4043fi 4044 4045if test x$FILE_MAN_SUFFIX = x ; then 4046 case $host_os in 4047 solaris*) FILE_MAN_SUFFIX=4 ;; 4048 *) FILE_MAN_SUFFIX=5 ;; 4049 esac 4050fi 4051if test x$FILE_MAN_DIR = x ; then 4052 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4053fi 4054 4055if test x$MISC_MAN_SUFFIX = x ; then 4056 case $host_os in 4057 solaris*) MISC_MAN_SUFFIX=5 ;; 4058 *) MISC_MAN_SUFFIX=7 ;; 4059 esac 4060fi 4061if test x$MISC_MAN_DIR = x ; then 4062 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4063fi 4064 4065if test x$DRIVER_MAN_SUFFIX = x ; then 4066 case $host_os in 4067 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4068 *) DRIVER_MAN_SUFFIX=4 ;; 4069 esac 4070fi 4071if test x$DRIVER_MAN_DIR = x ; then 4072 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4073fi 4074 4075if test x$ADMIN_MAN_SUFFIX = x ; then 4076 case $host_os in 4077 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4078 *) ADMIN_MAN_SUFFIX=8 ;; 4079 esac 4080fi 4081if test x$ADMIN_MAN_DIR = x ; then 4082 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4083fi 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099# Check whether --enable-silent-rules was given. 4100if test "${enable_silent_rules+set}" = set; then : 4101 enableval=$enable_silent_rules; 4102fi 4103 4104case $enable_silent_rules in 4105yes) AM_DEFAULT_VERBOSITY=0;; 4106no) AM_DEFAULT_VERBOSITY=1;; 4107*) AM_DEFAULT_VERBOSITY=0;; 4108esac 4109AM_BACKSLASH='\' 4110 4111 4112 4113 4114ac_config_headers="$ac_config_headers config.h" 4115 4116ac_aux_dir= 4117for ac_dir in . "$srcdir"/.; do 4118 for ac_t in install-sh install.sh shtool; do 4119 if test -f "$ac_dir/$ac_t"; then 4120 ac_aux_dir=$ac_dir 4121 ac_install_sh="$ac_aux_dir/$ac_t -c" 4122 break 2 4123 fi 4124 done 4125done 4126if test -z "$ac_aux_dir"; then 4127 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 4128fi 4129 4130# These three variables are undocumented and unsupported, 4131# and are intended to be withdrawn in a future Autoconf release. 4132# They can cause serious problems if a builder's source tree is in a directory 4133# whose full name contains unusual characters. 4134ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4135ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4136ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4137 4138 4139 4140am__api_version='1.11' 4141 4142# Find a good install program. We prefer a C program (faster), 4143# so one script is as good as another. But avoid the broken or 4144# incompatible versions: 4145# SysV /etc/install, /usr/sbin/install 4146# SunOS /usr/etc/install 4147# IRIX /sbin/install 4148# AIX /bin/install 4149# AmigaOS /C/install, which installs bootblocks on floppy discs 4150# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4151# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4152# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4153# OS/2's system install, which has a completely different semantic 4154# ./install, which can be erroneously created by make from ./install.sh. 4155# Reject install programs that cannot install multiple files. 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4157$as_echo_n "checking for a BSD-compatible install... " >&6; } 4158if test -z "$INSTALL"; then 4159if test "${ac_cv_path_install+set}" = set; then : 4160 $as_echo_n "(cached) " >&6 4161else 4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4163for as_dir in $PATH 4164do 4165 IFS=$as_save_IFS 4166 test -z "$as_dir" && as_dir=. 4167 # Account for people who put trailing slashes in PATH elements. 4168case $as_dir/ in #(( 4169 ./ | .// | /[cC]/* | \ 4170 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4171 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4172 /usr/ucb/* ) ;; 4173 *) 4174 # OSF1 and SCO ODT 3.0 have their own names for install. 4175 # Don't use installbsd from OSF since it installs stuff as root 4176 # by default. 4177 for ac_prog in ginstall scoinst install; do 4178 for ac_exec_ext in '' $ac_executable_extensions; do 4179 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4180 if test $ac_prog = install && 4181 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4182 # AIX install. It has an incompatible calling convention. 4183 : 4184 elif test $ac_prog = install && 4185 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4186 # program-specific install script used by HP pwplus--don't use. 4187 : 4188 else 4189 rm -rf conftest.one conftest.two conftest.dir 4190 echo one > conftest.one 4191 echo two > conftest.two 4192 mkdir conftest.dir 4193 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4194 test -s conftest.one && test -s conftest.two && 4195 test -s conftest.dir/conftest.one && 4196 test -s conftest.dir/conftest.two 4197 then 4198 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4199 break 3 4200 fi 4201 fi 4202 fi 4203 done 4204 done 4205 ;; 4206esac 4207 4208 done 4209IFS=$as_save_IFS 4210 4211rm -rf conftest.one conftest.two conftest.dir 4212 4213fi 4214 if test "${ac_cv_path_install+set}" = set; then 4215 INSTALL=$ac_cv_path_install 4216 else 4217 # As a last resort, use the slow shell script. Don't cache a 4218 # value for INSTALL within a source directory, because that will 4219 # break other packages using the cache if that directory is 4220 # removed, or if the value is a relative name. 4221 INSTALL=$ac_install_sh 4222 fi 4223fi 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4225$as_echo "$INSTALL" >&6; } 4226 4227# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4228# It thinks the first close brace ends the variable substitution. 4229test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4230 4231test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4232 4233test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4234 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4236$as_echo_n "checking whether build environment is sane... " >&6; } 4237# Just in case 4238sleep 1 4239echo timestamp > conftest.file 4240# Reject unsafe characters in $srcdir or the absolute working directory 4241# name. Accept space and tab only in the latter. 4242am_lf=' 4243' 4244case `pwd` in 4245 *[\\\"\#\$\&\'\`$am_lf]*) 4246 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 4247esac 4248case $srcdir in 4249 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4250 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 4251esac 4252 4253# Do `set' in a subshell so we don't clobber the current shell's 4254# arguments. Must try -L first in case configure is actually a 4255# symlink; some systems play weird games with the mod time of symlinks 4256# (eg FreeBSD returns the mod time of the symlink's containing 4257# directory). 4258if ( 4259 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4260 if test "$*" = "X"; then 4261 # -L didn't work. 4262 set X `ls -t "$srcdir/configure" conftest.file` 4263 fi 4264 rm -f conftest.file 4265 if test "$*" != "X $srcdir/configure conftest.file" \ 4266 && test "$*" != "X conftest.file $srcdir/configure"; then 4267 4268 # If neither matched, then we have a broken ls. This can happen 4269 # if, for instance, CONFIG_SHELL is bash and it inherits a 4270 # broken ls alias from the environment. This has actually 4271 # happened. Such a system could not be considered "sane". 4272 as_fn_error "ls -t appears to fail. Make sure there is not a broken 4273alias in your environment" "$LINENO" 5 4274 fi 4275 4276 test "$2" = conftest.file 4277 ) 4278then 4279 # Ok. 4280 : 4281else 4282 as_fn_error "newly created file is older than distributed files! 4283Check your system clock" "$LINENO" 5 4284fi 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4286$as_echo "yes" >&6; } 4287test "$program_prefix" != NONE && 4288 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4289# Use a double $ so make ignores it. 4290test "$program_suffix" != NONE && 4291 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4292# Double any \ or $. 4293# By default was `s,x,x', remove it if useless. 4294ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4295program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 4296 4297# expand $ac_aux_dir to an absolute path 4298am_aux_dir=`cd $ac_aux_dir && pwd` 4299 4300if test x"${MISSING+set}" != xset; then 4301 case $am_aux_dir in 4302 *\ * | *\ *) 4303 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 4304 *) 4305 MISSING="\${SHELL} $am_aux_dir/missing" ;; 4306 esac 4307fi 4308# Use eval to expand $SHELL 4309if eval "$MISSING --run true"; then 4310 am_missing_run="$MISSING --run " 4311else 4312 am_missing_run= 4313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 4314$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4315fi 4316 4317if test x"${install_sh}" != xset; then 4318 case $am_aux_dir in 4319 *\ * | *\ *) 4320 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4321 *) 4322 install_sh="\${SHELL} $am_aux_dir/install-sh" 4323 esac 4324fi 4325 4326# Installed binaries are usually stripped using `strip' when the user 4327# run `make install-strip'. However `strip' might not be the right 4328# tool to use in cross-compilation environments, therefore Automake 4329# will honor the `STRIP' environment variable to overrule this program. 4330if test "$cross_compiling" != no; then 4331 if test -n "$ac_tool_prefix"; then 4332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4333set dummy ${ac_tool_prefix}strip; ac_word=$2 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4335$as_echo_n "checking for $ac_word... " >&6; } 4336if test "${ac_cv_prog_STRIP+set}" = set; then : 4337 $as_echo_n "(cached) " >&6 4338else 4339 if test -n "$STRIP"; then 4340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4341else 4342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4343for as_dir in $PATH 4344do 4345 IFS=$as_save_IFS 4346 test -z "$as_dir" && as_dir=. 4347 for ac_exec_ext in '' $ac_executable_extensions; do 4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4349 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4351 break 2 4352 fi 4353done 4354 done 4355IFS=$as_save_IFS 4356 4357fi 4358fi 4359STRIP=$ac_cv_prog_STRIP 4360if test -n "$STRIP"; then 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4362$as_echo "$STRIP" >&6; } 4363else 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4365$as_echo "no" >&6; } 4366fi 4367 4368 4369fi 4370if test -z "$ac_cv_prog_STRIP"; then 4371 ac_ct_STRIP=$STRIP 4372 # Extract the first word of "strip", so it can be a program name with args. 4373set dummy strip; ac_word=$2 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4375$as_echo_n "checking for $ac_word... " >&6; } 4376if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 4377 $as_echo_n "(cached) " >&6 4378else 4379 if test -n "$ac_ct_STRIP"; then 4380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4381else 4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4383for as_dir in $PATH 4384do 4385 IFS=$as_save_IFS 4386 test -z "$as_dir" && as_dir=. 4387 for ac_exec_ext in '' $ac_executable_extensions; do 4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4389 ac_cv_prog_ac_ct_STRIP="strip" 4390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4391 break 2 4392 fi 4393done 4394 done 4395IFS=$as_save_IFS 4396 4397fi 4398fi 4399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4400if test -n "$ac_ct_STRIP"; then 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4402$as_echo "$ac_ct_STRIP" >&6; } 4403else 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4405$as_echo "no" >&6; } 4406fi 4407 4408 if test "x$ac_ct_STRIP" = x; then 4409 STRIP=":" 4410 else 4411 case $cross_compiling:$ac_tool_warned in 4412yes:) 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4415ac_tool_warned=yes ;; 4416esac 4417 STRIP=$ac_ct_STRIP 4418 fi 4419else 4420 STRIP="$ac_cv_prog_STRIP" 4421fi 4422 4423fi 4424INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4425 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4427$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4428if test -z "$MKDIR_P"; then 4429 if test "${ac_cv_path_mkdir+set}" = set; then : 4430 $as_echo_n "(cached) " >&6 4431else 4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4434do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_prog in mkdir gmkdir; do 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4440 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4441 'mkdir (GNU coreutils) '* | \ 4442 'mkdir (coreutils) '* | \ 4443 'mkdir (fileutils) '4.1*) 4444 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4445 break 3;; 4446 esac 4447 done 4448 done 4449 done 4450IFS=$as_save_IFS 4451 4452fi 4453 4454 test -d ./--version && rmdir ./--version 4455 if test "${ac_cv_path_mkdir+set}" = set; then 4456 MKDIR_P="$ac_cv_path_mkdir -p" 4457 else 4458 # As a last resort, use the slow shell script. Don't cache a 4459 # value for MKDIR_P within a source directory, because that will 4460 # break other packages using the cache if that directory is 4461 # removed, or if the value is a relative name. 4462 MKDIR_P="$ac_install_sh -d" 4463 fi 4464fi 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4466$as_echo "$MKDIR_P" >&6; } 4467 4468mkdir_p="$MKDIR_P" 4469case $mkdir_p in 4470 [\\/$]* | ?:[\\/]*) ;; 4471 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4472esac 4473 4474for ac_prog in gawk mawk nawk awk 4475do 4476 # Extract the first word of "$ac_prog", so it can be a program name with args. 4477set dummy $ac_prog; ac_word=$2 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4479$as_echo_n "checking for $ac_word... " >&6; } 4480if test "${ac_cv_prog_AWK+set}" = set; then : 4481 $as_echo_n "(cached) " >&6 4482else 4483 if test -n "$AWK"; then 4484 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4485else 4486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4487for as_dir in $PATH 4488do 4489 IFS=$as_save_IFS 4490 test -z "$as_dir" && as_dir=. 4491 for ac_exec_ext in '' $ac_executable_extensions; do 4492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4493 ac_cv_prog_AWK="$ac_prog" 4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4495 break 2 4496 fi 4497done 4498 done 4499IFS=$as_save_IFS 4500 4501fi 4502fi 4503AWK=$ac_cv_prog_AWK 4504if test -n "$AWK"; then 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4506$as_echo "$AWK" >&6; } 4507else 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4509$as_echo "no" >&6; } 4510fi 4511 4512 4513 test -n "$AWK" && break 4514done 4515 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4517$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4518set x ${MAKE-make} 4519ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4520if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 cat >conftest.make <<\_ACEOF 4524SHELL = /bin/sh 4525all: 4526 @echo '@@@%%%=$(MAKE)=@@@%%%' 4527_ACEOF 4528# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4529case `${MAKE-make} -f conftest.make 2>/dev/null` in 4530 *@@@%%%=?*=@@@%%%*) 4531 eval ac_cv_prog_make_${ac_make}_set=yes;; 4532 *) 4533 eval ac_cv_prog_make_${ac_make}_set=no;; 4534esac 4535rm -f conftest.make 4536fi 4537if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4539$as_echo "yes" >&6; } 4540 SET_MAKE= 4541else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; } 4544 SET_MAKE="MAKE=${MAKE-make}" 4545fi 4546 4547rm -rf .tst 2>/dev/null 4548mkdir .tst 2>/dev/null 4549if test -d .tst; then 4550 am__leading_dot=. 4551else 4552 am__leading_dot=_ 4553fi 4554rmdir .tst 2>/dev/null 4555 4556DEPDIR="${am__leading_dot}deps" 4557 4558ac_config_commands="$ac_config_commands depfiles" 4559 4560 4561am_make=${MAKE-make} 4562cat > confinc << 'END' 4563am__doit: 4564 @echo this is the am__doit target 4565.PHONY: am__doit 4566END 4567# If we don't find an include directive, just comment out the code. 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4569$as_echo_n "checking for style of include used by $am_make... " >&6; } 4570am__include="#" 4571am__quote= 4572_am_result=none 4573# First try GNU make style include. 4574echo "include confinc" > confmf 4575# Ignore all kinds of additional output from `make'. 4576case `$am_make -s -f confmf 2> /dev/null` in #( 4577*the\ am__doit\ target*) 4578 am__include=include 4579 am__quote= 4580 _am_result=GNU 4581 ;; 4582esac 4583# Now try BSD make style include. 4584if test "$am__include" = "#"; then 4585 echo '.include "confinc"' > confmf 4586 case `$am_make -s -f confmf 2> /dev/null` in #( 4587 *the\ am__doit\ target*) 4588 am__include=.include 4589 am__quote="\"" 4590 _am_result=BSD 4591 ;; 4592 esac 4593fi 4594 4595 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4597$as_echo "$_am_result" >&6; } 4598rm -f confinc confmf 4599 4600# Check whether --enable-dependency-tracking was given. 4601if test "${enable_dependency_tracking+set}" = set; then : 4602 enableval=$enable_dependency_tracking; 4603fi 4604 4605if test "x$enable_dependency_tracking" != xno; then 4606 am_depcomp="$ac_aux_dir/depcomp" 4607 AMDEPBACKSLASH='\' 4608fi 4609 if test "x$enable_dependency_tracking" != xno; then 4610 AMDEP_TRUE= 4611 AMDEP_FALSE='#' 4612else 4613 AMDEP_TRUE='#' 4614 AMDEP_FALSE= 4615fi 4616 4617 4618if test "`cd $srcdir && pwd`" != "`pwd`"; then 4619 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4620 # is not polluted with repeated "-I." 4621 am__isrc=' -I$(srcdir)' 4622 # test to see if srcdir already configured 4623 if test -f $srcdir/config.status; then 4624 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4625 fi 4626fi 4627 4628# test whether we have cygpath 4629if test -z "$CYGPATH_W"; then 4630 if (cygpath --version) >/dev/null 2>/dev/null; then 4631 CYGPATH_W='cygpath -w' 4632 else 4633 CYGPATH_W=echo 4634 fi 4635fi 4636 4637 4638# Define the identity of the package. 4639 PACKAGE='xf86-video-siliconmotion' 4640 VERSION='1.7.4' 4641 4642 4643cat >>confdefs.h <<_ACEOF 4644#define PACKAGE "$PACKAGE" 4645_ACEOF 4646 4647 4648cat >>confdefs.h <<_ACEOF 4649#define VERSION "$VERSION" 4650_ACEOF 4651 4652# Some tools Automake needs. 4653 4654ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4655 4656 4657AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4658 4659 4660AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4661 4662 4663AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4664 4665 4666MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4667 4668# We need awk for the "check" target. The system "awk" is bad on 4669# some platforms. 4670# Always define AMTAR for backward compatibility. 4671 4672AMTAR=${AMTAR-"${am_missing_run}tar"} 4673 4674am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4675 4676 4677 4678 4679depcc="$CC" am_compiler_list= 4680 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4682$as_echo_n "checking dependency style of $depcc... " >&6; } 4683if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4684 $as_echo_n "(cached) " >&6 4685else 4686 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4687 # We make a subdir and do the tests there. Otherwise we can end up 4688 # making bogus files that we don't know about and never remove. For 4689 # instance it was reported that on HP-UX the gcc test will end up 4690 # making a dummy file named `D' -- because `-MD' means `put the output 4691 # in D'. 4692 mkdir conftest.dir 4693 # Copy depcomp to subdir because otherwise we won't find it if we're 4694 # using a relative directory. 4695 cp "$am_depcomp" conftest.dir 4696 cd conftest.dir 4697 # We will build objects and dependencies in a subdirectory because 4698 # it helps to detect inapplicable dependency modes. For instance 4699 # both Tru64's cc and ICC support -MD to output dependencies as a 4700 # side effect of compilation, but ICC will put the dependencies in 4701 # the current directory while Tru64 will put them in the object 4702 # directory. 4703 mkdir sub 4704 4705 am_cv_CC_dependencies_compiler_type=none 4706 if test "$am_compiler_list" = ""; then 4707 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4708 fi 4709 am__universal=false 4710 case " $depcc " in #( 4711 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4712 esac 4713 4714 for depmode in $am_compiler_list; do 4715 # Setup a source with many dependencies, because some compilers 4716 # like to wrap large dependency lists on column 80 (with \), and 4717 # we should not choose a depcomp mode which is confused by this. 4718 # 4719 # We need to recreate these files for each test, as the compiler may 4720 # overwrite some of them when testing with obscure command lines. 4721 # This happens at least with the AIX C compiler. 4722 : > sub/conftest.c 4723 for i in 1 2 3 4 5 6; do 4724 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4725 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4726 # Solaris 8's {/usr,}/bin/sh. 4727 touch sub/conftst$i.h 4728 done 4729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4730 4731 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4732 # mode. It turns out that the SunPro C++ compiler does not properly 4733 # handle `-M -o', and we need to detect this. Also, some Intel 4734 # versions had trouble with output in subdirs 4735 am__obj=sub/conftest.${OBJEXT-o} 4736 am__minus_obj="-o $am__obj" 4737 case $depmode in 4738 gcc) 4739 # This depmode causes a compiler race in universal mode. 4740 test "$am__universal" = false || continue 4741 ;; 4742 nosideeffect) 4743 # after this tag, mechanisms are not by side-effect, so they'll 4744 # only be used when explicitly requested 4745 if test "x$enable_dependency_tracking" = xyes; then 4746 continue 4747 else 4748 break 4749 fi 4750 ;; 4751 msvisualcpp | msvcmsys) 4752 # This compiler won't grok `-c -o', but also, the minuso test has 4753 # not run yet. These depmodes are late enough in the game, and 4754 # so weak that their functioning should not be impacted. 4755 am__obj=conftest.${OBJEXT-o} 4756 am__minus_obj= 4757 ;; 4758 none) break ;; 4759 esac 4760 if depmode=$depmode \ 4761 source=sub/conftest.c object=$am__obj \ 4762 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4763 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4764 >/dev/null 2>conftest.err && 4765 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4767 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4769 # icc doesn't choke on unknown options, it will just issue warnings 4770 # or remarks (even with -Werror). So we grep stderr for any message 4771 # that says an option was ignored or not supported. 4772 # When given -MP, icc 7.0 and 7.1 complain thusly: 4773 # icc: Command line warning: ignoring option '-M'; no argument required 4774 # The diagnosis changed in icc 8.0: 4775 # icc: Command line remark: option '-MP' not supported 4776 if (grep 'ignoring option' conftest.err || 4777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4778 am_cv_CC_dependencies_compiler_type=$depmode 4779 break 4780 fi 4781 fi 4782 done 4783 4784 cd .. 4785 rm -rf conftest.dir 4786else 4787 am_cv_CC_dependencies_compiler_type=none 4788fi 4789 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4792$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4793CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4794 4795 if 4796 test "x$enable_dependency_tracking" != xno \ 4797 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4798 am__fastdepCC_TRUE= 4799 am__fastdepCC_FALSE='#' 4800else 4801 am__fastdepCC_TRUE='#' 4802 am__fastdepCC_FALSE= 4803fi 4804 4805 4806 4807 4808 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4810$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4811 # Check whether --enable-maintainer-mode was given. 4812if test "${enable_maintainer_mode+set}" = set; then : 4813 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4814else 4815 USE_MAINTAINER_MODE=no 4816fi 4817 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4819$as_echo "$USE_MAINTAINER_MODE" >&6; } 4820 if test $USE_MAINTAINER_MODE = yes; then 4821 MAINTAINER_MODE_TRUE= 4822 MAINTAINER_MODE_FALSE='#' 4823else 4824 MAINTAINER_MODE_TRUE='#' 4825 MAINTAINER_MODE_FALSE= 4826fi 4827 4828 MAINT=$MAINTAINER_MODE_TRUE 4829 4830 4831 4832# Checks for programs. 4833# Check whether --enable-static was given. 4834if test "${enable_static+set}" = set; then : 4835 enableval=$enable_static; p=${PACKAGE-default} 4836 case $enableval in 4837 yes) enable_static=yes ;; 4838 no) enable_static=no ;; 4839 *) 4840 enable_static=no 4841 # Look at the argument we got. We use all the common list separators. 4842 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4843 for pkg in $enableval; do 4844 IFS="$lt_save_ifs" 4845 if test "X$pkg" = "X$p"; then 4846 enable_static=yes 4847 fi 4848 done 4849 IFS="$lt_save_ifs" 4850 ;; 4851 esac 4852else 4853 enable_static=no 4854fi 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864case `pwd` in 4865 *\ * | *\ *) 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4867$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4868esac 4869 4870 4871 4872macro_version='2.2.6' 4873macro_revision='1.3012' 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887ltmain="$ac_aux_dir/ltmain.sh" 4888 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4890$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4891if test "${ac_cv_path_SED+set}" = set; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4895 for ac_i in 1 2 3 4 5 6 7; do 4896 ac_script="$ac_script$as_nl$ac_script" 4897 done 4898 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4899 { ac_script=; unset ac_script;} 4900 if test -z "$SED"; then 4901 ac_path_SED_found=false 4902 # Loop through the user's path and test for each of PROGNAME-LIST 4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904for as_dir in $PATH 4905do 4906 IFS=$as_save_IFS 4907 test -z "$as_dir" && as_dir=. 4908 for ac_prog in sed gsed; do 4909 for ac_exec_ext in '' $ac_executable_extensions; do 4910 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4911 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4912# Check for GNU ac_path_SED and select it if it is found. 4913 # Check for GNU $ac_path_SED 4914case `"$ac_path_SED" --version 2>&1` in 4915*GNU*) 4916 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4917*) 4918 ac_count=0 4919 $as_echo_n 0123456789 >"conftest.in" 4920 while : 4921 do 4922 cat "conftest.in" "conftest.in" >"conftest.tmp" 4923 mv "conftest.tmp" "conftest.in" 4924 cp "conftest.in" "conftest.nl" 4925 $as_echo '' >> "conftest.nl" 4926 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4928 as_fn_arith $ac_count + 1 && ac_count=$as_val 4929 if test $ac_count -gt ${ac_path_SED_max-0}; then 4930 # Best one so far, save it but keep looking for a better one 4931 ac_cv_path_SED="$ac_path_SED" 4932 ac_path_SED_max=$ac_count 4933 fi 4934 # 10*(2^10) chars as input seems more than enough 4935 test $ac_count -gt 10 && break 4936 done 4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4938esac 4939 4940 $ac_path_SED_found && break 3 4941 done 4942 done 4943 done 4944IFS=$as_save_IFS 4945 if test -z "$ac_cv_path_SED"; then 4946 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4947 fi 4948else 4949 ac_cv_path_SED=$SED 4950fi 4951 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4954$as_echo "$ac_cv_path_SED" >&6; } 4955 SED="$ac_cv_path_SED" 4956 rm -f conftest.sed 4957 4958test -z "$SED" && SED=sed 4959Xsed="$SED -e 1s/^X//" 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4972$as_echo_n "checking for fgrep... " >&6; } 4973if test "${ac_cv_path_FGREP+set}" = set; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4977 then ac_cv_path_FGREP="$GREP -F" 4978 else 4979 if test -z "$FGREP"; then 4980 ac_path_FGREP_found=false 4981 # Loop through the user's path and test for each of PROGNAME-LIST 4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4983for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4984do 4985 IFS=$as_save_IFS 4986 test -z "$as_dir" && as_dir=. 4987 for ac_prog in fgrep; do 4988 for ac_exec_ext in '' $ac_executable_extensions; do 4989 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4990 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4991# Check for GNU ac_path_FGREP and select it if it is found. 4992 # Check for GNU $ac_path_FGREP 4993case `"$ac_path_FGREP" --version 2>&1` in 4994*GNU*) 4995 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4996*) 4997 ac_count=0 4998 $as_echo_n 0123456789 >"conftest.in" 4999 while : 5000 do 5001 cat "conftest.in" "conftest.in" >"conftest.tmp" 5002 mv "conftest.tmp" "conftest.in" 5003 cp "conftest.in" "conftest.nl" 5004 $as_echo 'FGREP' >> "conftest.nl" 5005 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5007 as_fn_arith $ac_count + 1 && ac_count=$as_val 5008 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5009 # Best one so far, save it but keep looking for a better one 5010 ac_cv_path_FGREP="$ac_path_FGREP" 5011 ac_path_FGREP_max=$ac_count 5012 fi 5013 # 10*(2^10) chars as input seems more than enough 5014 test $ac_count -gt 10 && break 5015 done 5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5017esac 5018 5019 $ac_path_FGREP_found && break 3 5020 done 5021 done 5022 done 5023IFS=$as_save_IFS 5024 if test -z "$ac_cv_path_FGREP"; then 5025 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5026 fi 5027else 5028 ac_cv_path_FGREP=$FGREP 5029fi 5030 5031 fi 5032fi 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5034$as_echo "$ac_cv_path_FGREP" >&6; } 5035 FGREP="$ac_cv_path_FGREP" 5036 5037 5038test -z "$GREP" && GREP=grep 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058# Check whether --with-gnu-ld was given. 5059if test "${with_gnu_ld+set}" = set; then : 5060 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5061else 5062 with_gnu_ld=no 5063fi 5064 5065ac_prog=ld 5066if test "$GCC" = yes; then 5067 # Check if gcc -print-prog-name=ld gives a path. 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5069$as_echo_n "checking for ld used by $CC... " >&6; } 5070 case $host in 5071 *-*-mingw*) 5072 # gcc leaves a trailing carriage return which upsets mingw 5073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5074 *) 5075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5076 esac 5077 case $ac_prog in 5078 # Accept absolute paths. 5079 [\\/]* | ?:[\\/]*) 5080 re_direlt='/[^/][^/]*/\.\./' 5081 # Canonicalize the pathname of ld 5082 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5083 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5084 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5085 done 5086 test -z "$LD" && LD="$ac_prog" 5087 ;; 5088 "") 5089 # If it fails, then pretend we aren't using GCC. 5090 ac_prog=ld 5091 ;; 5092 *) 5093 # If it is relative, then search for the first ld in PATH. 5094 with_gnu_ld=unknown 5095 ;; 5096 esac 5097elif test "$with_gnu_ld" = yes; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5099$as_echo_n "checking for GNU ld... " >&6; } 5100else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5102$as_echo_n "checking for non-GNU ld... " >&6; } 5103fi 5104if test "${lt_cv_path_LD+set}" = set; then : 5105 $as_echo_n "(cached) " >&6 5106else 5107 if test -z "$LD"; then 5108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5109 for ac_dir in $PATH; do 5110 IFS="$lt_save_ifs" 5111 test -z "$ac_dir" && ac_dir=. 5112 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5113 lt_cv_path_LD="$ac_dir/$ac_prog" 5114 # Check to see if the program is GNU ld. I'd rather use --version, 5115 # but apparently some variants of GNU ld only accept -v. 5116 # Break only if it was the GNU/non-GNU ld that we prefer. 5117 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5118 *GNU* | *'with BFD'*) 5119 test "$with_gnu_ld" != no && break 5120 ;; 5121 *) 5122 test "$with_gnu_ld" != yes && break 5123 ;; 5124 esac 5125 fi 5126 done 5127 IFS="$lt_save_ifs" 5128else 5129 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5130fi 5131fi 5132 5133LD="$lt_cv_path_LD" 5134if test -n "$LD"; then 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5136$as_echo "$LD" >&6; } 5137else 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5139$as_echo "no" >&6; } 5140fi 5141test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5143$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5144if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5145 $as_echo_n "(cached) " >&6 5146else 5147 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5148case `$LD -v 2>&1 </dev/null` in 5149*GNU* | *'with BFD'*) 5150 lt_cv_prog_gnu_ld=yes 5151 ;; 5152*) 5153 lt_cv_prog_gnu_ld=no 5154 ;; 5155esac 5156fi 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5158$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5159with_gnu_ld=$lt_cv_prog_gnu_ld 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5170$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5171if test "${lt_cv_path_NM+set}" = set; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 if test -n "$NM"; then 5175 # Let the user override the test. 5176 lt_cv_path_NM="$NM" 5177else 5178 lt_nm_to_check="${ac_tool_prefix}nm" 5179 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5180 lt_nm_to_check="$lt_nm_to_check nm" 5181 fi 5182 for lt_tmp_nm in $lt_nm_to_check; do 5183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5184 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5185 IFS="$lt_save_ifs" 5186 test -z "$ac_dir" && ac_dir=. 5187 tmp_nm="$ac_dir/$lt_tmp_nm" 5188 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5189 # Check to see if the nm accepts a BSD-compat flag. 5190 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5191 # nm: unknown option "B" ignored 5192 # Tru64's nm complains that /dev/null is an invalid object file 5193 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5194 */dev/null* | *'Invalid file or object type'*) 5195 lt_cv_path_NM="$tmp_nm -B" 5196 break 5197 ;; 5198 *) 5199 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5200 */dev/null*) 5201 lt_cv_path_NM="$tmp_nm -p" 5202 break 5203 ;; 5204 *) 5205 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5206 continue # so that we can try to find one that supports BSD flags 5207 ;; 5208 esac 5209 ;; 5210 esac 5211 fi 5212 done 5213 IFS="$lt_save_ifs" 5214 done 5215 : ${lt_cv_path_NM=no} 5216fi 5217fi 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5219$as_echo "$lt_cv_path_NM" >&6; } 5220if test "$lt_cv_path_NM" != "no"; then 5221 NM="$lt_cv_path_NM" 5222else 5223 # Didn't find any BSD compatible name lister, look for dumpbin. 5224 if test -n "$ac_tool_prefix"; then 5225 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5226 do 5227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5228set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5230$as_echo_n "checking for $ac_word... " >&6; } 5231if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 if test -n "$DUMPBIN"; then 5235 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5236else 5237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5238for as_dir in $PATH 5239do 5240 IFS=$as_save_IFS 5241 test -z "$as_dir" && as_dir=. 5242 for ac_exec_ext in '' $ac_executable_extensions; do 5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5244 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5246 break 2 5247 fi 5248done 5249 done 5250IFS=$as_save_IFS 5251 5252fi 5253fi 5254DUMPBIN=$ac_cv_prog_DUMPBIN 5255if test -n "$DUMPBIN"; then 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5257$as_echo "$DUMPBIN" >&6; } 5258else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260$as_echo "no" >&6; } 5261fi 5262 5263 5264 test -n "$DUMPBIN" && break 5265 done 5266fi 5267if test -z "$DUMPBIN"; then 5268 ac_ct_DUMPBIN=$DUMPBIN 5269 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5270do 5271 # Extract the first word of "$ac_prog", so it can be a program name with args. 5272set dummy $ac_prog; ac_word=$2 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5274$as_echo_n "checking for $ac_word... " >&6; } 5275if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 if test -n "$ac_ct_DUMPBIN"; then 5279 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5280else 5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282for as_dir in $PATH 5283do 5284 IFS=$as_save_IFS 5285 test -z "$as_dir" && as_dir=. 5286 for ac_exec_ext in '' $ac_executable_extensions; do 5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5288 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5290 break 2 5291 fi 5292done 5293 done 5294IFS=$as_save_IFS 5295 5296fi 5297fi 5298ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5299if test -n "$ac_ct_DUMPBIN"; then 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5301$as_echo "$ac_ct_DUMPBIN" >&6; } 5302else 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5304$as_echo "no" >&6; } 5305fi 5306 5307 5308 test -n "$ac_ct_DUMPBIN" && break 5309done 5310 5311 if test "x$ac_ct_DUMPBIN" = x; then 5312 DUMPBIN=":" 5313 else 5314 case $cross_compiling:$ac_tool_warned in 5315yes:) 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5318ac_tool_warned=yes ;; 5319esac 5320 DUMPBIN=$ac_ct_DUMPBIN 5321 fi 5322fi 5323 5324 5325 if test "$DUMPBIN" != ":"; then 5326 NM="$DUMPBIN" 5327 fi 5328fi 5329test -z "$NM" && NM=nm 5330 5331 5332 5333 5334 5335 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5337$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5338if test "${lt_cv_nm_interface+set}" = set; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 lt_cv_nm_interface="BSD nm" 5342 echo "int some_variable = 0;" > conftest.$ac_ext 5343 (eval echo "\"\$as_me:5343: $ac_compile\"" >&5) 5344 (eval "$ac_compile" 2>conftest.err) 5345 cat conftest.err >&5 5346 (eval echo "\"\$as_me:5346: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5347 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5348 cat conftest.err >&5 5349 (eval echo "\"\$as_me:5349: output\"" >&5) 5350 cat conftest.out >&5 5351 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5352 lt_cv_nm_interface="MS dumpbin" 5353 fi 5354 rm -f conftest* 5355fi 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5357$as_echo "$lt_cv_nm_interface" >&6; } 5358 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5360$as_echo_n "checking whether ln -s works... " >&6; } 5361LN_S=$as_ln_s 5362if test "$LN_S" = "ln -s"; then 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5364$as_echo "yes" >&6; } 5365else 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5367$as_echo "no, using $LN_S" >&6; } 5368fi 5369 5370# find the maximum length of command line arguments 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5372$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5373if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 i=0 5377 teststring="ABCD" 5378 5379 case $build_os in 5380 msdosdjgpp*) 5381 # On DJGPP, this test can blow up pretty badly due to problems in libc 5382 # (any single argument exceeding 2000 bytes causes a buffer overrun 5383 # during glob expansion). Even if it were fixed, the result of this 5384 # check would be larger than it should be. 5385 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5386 ;; 5387 5388 gnu*) 5389 # Under GNU Hurd, this test is not required because there is 5390 # no limit to the length of command line arguments. 5391 # Libtool will interpret -1 as no limit whatsoever 5392 lt_cv_sys_max_cmd_len=-1; 5393 ;; 5394 5395 cygwin* | mingw* | cegcc*) 5396 # On Win9x/ME, this test blows up -- it succeeds, but takes 5397 # about 5 minutes as the teststring grows exponentially. 5398 # Worse, since 9x/ME are not pre-emptively multitasking, 5399 # you end up with a "frozen" computer, even though with patience 5400 # the test eventually succeeds (with a max line length of 256k). 5401 # Instead, let's just punt: use the minimum linelength reported by 5402 # all of the supported platforms: 8192 (on NT/2K/XP). 5403 lt_cv_sys_max_cmd_len=8192; 5404 ;; 5405 5406 amigaos*) 5407 # On AmigaOS with pdksh, this test takes hours, literally. 5408 # So we just punt and use a minimum line length of 8192. 5409 lt_cv_sys_max_cmd_len=8192; 5410 ;; 5411 5412 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5413 # This has been around since 386BSD, at least. Likely further. 5414 if test -x /sbin/sysctl; then 5415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5416 elif test -x /usr/sbin/sysctl; then 5417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5418 else 5419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5420 fi 5421 # And add a safety zone 5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5424 ;; 5425 5426 interix*) 5427 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5428 lt_cv_sys_max_cmd_len=196608 5429 ;; 5430 5431 osf*) 5432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5434 # nice to cause kernel panics so lets avoid the loop below. 5435 # First set a reasonable default. 5436 lt_cv_sys_max_cmd_len=16384 5437 # 5438 if test -x /sbin/sysconfig; then 5439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5440 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5441 esac 5442 fi 5443 ;; 5444 sco3.2v5*) 5445 lt_cv_sys_max_cmd_len=102400 5446 ;; 5447 sysv5* | sco5v6* | sysv4.2uw2*) 5448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5449 if test -n "$kargmax"; then 5450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5451 else 5452 lt_cv_sys_max_cmd_len=32768 5453 fi 5454 ;; 5455 *) 5456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5457 if test -n "$lt_cv_sys_max_cmd_len"; then 5458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5460 else 5461 # Make teststring a little bigger before we do anything with it. 5462 # a 1K string should be a reasonable start. 5463 for i in 1 2 3 4 5 6 7 8 ; do 5464 teststring=$teststring$teststring 5465 done 5466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5467 # If test is not a shell built-in, we'll probably end up computing a 5468 # maximum length that is only half of the actual maximum length, but 5469 # we can't tell. 5470 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5471 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5472 test $i != 17 # 1/2 MB should be enough 5473 do 5474 i=`expr $i + 1` 5475 teststring=$teststring$teststring 5476 done 5477 # Only check the string length outside the loop. 5478 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5479 teststring= 5480 # Add a significant safety factor because C++ compilers can tack on 5481 # massive amounts of additional arguments before passing them to the 5482 # linker. It appears as though 1/2 is a usable value. 5483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5484 fi 5485 ;; 5486 esac 5487 5488fi 5489 5490if test -n $lt_cv_sys_max_cmd_len ; then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5492$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5493else 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5495$as_echo "none" >&6; } 5496fi 5497max_cmd_len=$lt_cv_sys_max_cmd_len 5498 5499 5500 5501 5502 5503 5504: ${CP="cp -f"} 5505: ${MV="mv -f"} 5506: ${RM="rm -f"} 5507 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5509$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5510# Try some XSI features 5511xsi_shell=no 5512( _lt_dummy="a/b/c" 5513 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5514 = c,a/b,, \ 5515 && eval 'test $(( 1 + 1 )) -eq 2 \ 5516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5517 && xsi_shell=yes 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5519$as_echo "$xsi_shell" >&6; } 5520 5521 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5523$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5524lt_shell_append=no 5525( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5526 >/dev/null 2>&1 \ 5527 && lt_shell_append=yes 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5529$as_echo "$lt_shell_append" >&6; } 5530 5531 5532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5533 lt_unset=unset 5534else 5535 lt_unset=false 5536fi 5537 5538 5539 5540 5541 5542# test EBCDIC or ASCII 5543case `echo X|tr X '\101'` in 5544 A) # ASCII based system 5545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5546 lt_SP2NL='tr \040 \012' 5547 lt_NL2SP='tr \015\012 \040\040' 5548 ;; 5549 *) # EBCDIC based system 5550 lt_SP2NL='tr \100 \n' 5551 lt_NL2SP='tr \r\n \100\100' 5552 ;; 5553esac 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5564$as_echo_n "checking for $LD option to reload object files... " >&6; } 5565if test "${lt_cv_ld_reload_flag+set}" = set; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 lt_cv_ld_reload_flag='-r' 5569fi 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5571$as_echo "$lt_cv_ld_reload_flag" >&6; } 5572reload_flag=$lt_cv_ld_reload_flag 5573case $reload_flag in 5574"" | " "*) ;; 5575*) reload_flag=" $reload_flag" ;; 5576esac 5577reload_cmds='$LD$reload_flag -o $output$reload_objs' 5578case $host_os in 5579 darwin*) 5580 if test "$GCC" = yes; then 5581 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5582 else 5583 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5584 fi 5585 ;; 5586esac 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596if test -n "$ac_tool_prefix"; then 5597 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5598set dummy ${ac_tool_prefix}objdump; ac_word=$2 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5600$as_echo_n "checking for $ac_word... " >&6; } 5601if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 if test -n "$OBJDUMP"; then 5605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5606else 5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5608for as_dir in $PATH 5609do 5610 IFS=$as_save_IFS 5611 test -z "$as_dir" && as_dir=. 5612 for ac_exec_ext in '' $ac_executable_extensions; do 5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5616 break 2 5617 fi 5618done 5619 done 5620IFS=$as_save_IFS 5621 5622fi 5623fi 5624OBJDUMP=$ac_cv_prog_OBJDUMP 5625if test -n "$OBJDUMP"; then 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5627$as_echo "$OBJDUMP" >&6; } 5628else 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5630$as_echo "no" >&6; } 5631fi 5632 5633 5634fi 5635if test -z "$ac_cv_prog_OBJDUMP"; then 5636 ac_ct_OBJDUMP=$OBJDUMP 5637 # Extract the first word of "objdump", so it can be a program name with args. 5638set dummy objdump; ac_word=$2 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640$as_echo_n "checking for $ac_word... " >&6; } 5641if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 if test -n "$ac_ct_OBJDUMP"; then 5645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5646else 5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5654 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662fi 5663fi 5664ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5665if test -n "$ac_ct_OBJDUMP"; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5667$as_echo "$ac_ct_OBJDUMP" >&6; } 5668else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670$as_echo "no" >&6; } 5671fi 5672 5673 if test "x$ac_ct_OBJDUMP" = x; then 5674 OBJDUMP="false" 5675 else 5676 case $cross_compiling:$ac_tool_warned in 5677yes:) 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5680ac_tool_warned=yes ;; 5681esac 5682 OBJDUMP=$ac_ct_OBJDUMP 5683 fi 5684else 5685 OBJDUMP="$ac_cv_prog_OBJDUMP" 5686fi 5687 5688test -z "$OBJDUMP" && OBJDUMP=objdump 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5699$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5700if test "${lt_cv_deplibs_check_method+set}" = set; then : 5701 $as_echo_n "(cached) " >&6 5702else 5703 lt_cv_file_magic_cmd='$MAGIC_CMD' 5704lt_cv_file_magic_test_file= 5705lt_cv_deplibs_check_method='unknown' 5706# Need to set the preceding variable on all platforms that support 5707# interlibrary dependencies. 5708# 'none' -- dependencies not supported. 5709# `unknown' -- same as none, but documents that we really don't know. 5710# 'pass_all' -- all dependencies passed with no checks. 5711# 'test_compile' -- check by making test program. 5712# 'file_magic [[regex]]' -- check by looking for files in library path 5713# which responds to the $file_magic_cmd with a given extended regex. 5714# If you have `file' or equivalent on your system and you're not sure 5715# whether `pass_all' will *always* work, you probably want this one. 5716 5717case $host_os in 5718aix[4-9]*) 5719 lt_cv_deplibs_check_method=pass_all 5720 ;; 5721 5722beos*) 5723 lt_cv_deplibs_check_method=pass_all 5724 ;; 5725 5726bsdi[45]*) 5727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5728 lt_cv_file_magic_cmd='/usr/bin/file -L' 5729 lt_cv_file_magic_test_file=/shlib/libc.so 5730 ;; 5731 5732cygwin*) 5733 # func_win32_libid is a shell function defined in ltmain.sh 5734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5735 lt_cv_file_magic_cmd='func_win32_libid' 5736 ;; 5737 5738mingw* | pw32*) 5739 # Base MSYS/MinGW do not provide the 'file' command needed by 5740 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5741 # unless we find 'file', for example because we are cross-compiling. 5742 if ( file / ) >/dev/null 2>&1; then 5743 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5744 lt_cv_file_magic_cmd='func_win32_libid' 5745 else 5746 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5747 lt_cv_file_magic_cmd='$OBJDUMP -f' 5748 fi 5749 ;; 5750 5751cegcc) 5752 # use the weaker test based on 'objdump'. See mingw*. 5753 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5754 lt_cv_file_magic_cmd='$OBJDUMP -f' 5755 ;; 5756 5757darwin* | rhapsody*) 5758 lt_cv_deplibs_check_method=pass_all 5759 ;; 5760 5761freebsd* | dragonfly*) 5762 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5763 case $host_cpu in 5764 i*86 ) 5765 # Not sure whether the presence of OpenBSD here was a mistake. 5766 # Let's accept both of them until this is cleared up. 5767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5768 lt_cv_file_magic_cmd=/usr/bin/file 5769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5770 ;; 5771 esac 5772 else 5773 lt_cv_deplibs_check_method=pass_all 5774 fi 5775 ;; 5776 5777gnu*) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 5781hpux10.20* | hpux11*) 5782 lt_cv_file_magic_cmd=/usr/bin/file 5783 case $host_cpu in 5784 ia64*) 5785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5786 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5787 ;; 5788 hppa*64*) 5789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 5790 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5791 ;; 5792 *) 5793 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5794 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5795 ;; 5796 esac 5797 ;; 5798 5799interix[3-9]*) 5800 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5802 ;; 5803 5804irix5* | irix6* | nonstopux*) 5805 case $LD in 5806 *-32|*"-32 ") libmagic=32-bit;; 5807 *-n32|*"-n32 ") libmagic=N32;; 5808 *-64|*"-64 ") libmagic=64-bit;; 5809 *) libmagic=never-match;; 5810 esac 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814# This must be Linux ELF. 5815linux* | k*bsd*-gnu) 5816 lt_cv_deplibs_check_method=pass_all 5817 ;; 5818 5819netbsd*) 5820 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5822 else 5823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5824 fi 5825 ;; 5826 5827newos6*) 5828 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5829 lt_cv_file_magic_cmd=/usr/bin/file 5830 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5831 ;; 5832 5833*nto* | *qnx*) 5834 lt_cv_deplibs_check_method=pass_all 5835 ;; 5836 5837openbsd*) 5838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5840 else 5841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5842 fi 5843 ;; 5844 5845osf3* | osf4* | osf5*) 5846 lt_cv_deplibs_check_method=pass_all 5847 ;; 5848 5849rdos*) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 5853solaris*) 5854 lt_cv_deplibs_check_method=pass_all 5855 ;; 5856 5857sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5858 lt_cv_deplibs_check_method=pass_all 5859 ;; 5860 5861sysv4 | sysv4.3*) 5862 case $host_vendor in 5863 motorola) 5864 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]' 5865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5866 ;; 5867 ncr) 5868 lt_cv_deplibs_check_method=pass_all 5869 ;; 5870 sequent) 5871 lt_cv_file_magic_cmd='/bin/file' 5872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5873 ;; 5874 sni) 5875 lt_cv_file_magic_cmd='/bin/file' 5876 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5877 lt_cv_file_magic_test_file=/lib/libc.so 5878 ;; 5879 siemens) 5880 lt_cv_deplibs_check_method=pass_all 5881 ;; 5882 pc) 5883 lt_cv_deplibs_check_method=pass_all 5884 ;; 5885 esac 5886 ;; 5887 5888tpf*) 5889 lt_cv_deplibs_check_method=pass_all 5890 ;; 5891esac 5892 5893fi 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5895$as_echo "$lt_cv_deplibs_check_method" >&6; } 5896file_magic_cmd=$lt_cv_file_magic_cmd 5897deplibs_check_method=$lt_cv_deplibs_check_method 5898test -z "$deplibs_check_method" && deplibs_check_method=unknown 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911if test -n "$ac_tool_prefix"; then 5912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5913set dummy ${ac_tool_prefix}ar; ac_word=$2 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5915$as_echo_n "checking for $ac_word... " >&6; } 5916if test "${ac_cv_prog_AR+set}" = set; then : 5917 $as_echo_n "(cached) " >&6 5918else 5919 if test -n "$AR"; then 5920 ac_cv_prog_AR="$AR" # Let the user override the test. 5921else 5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5923for as_dir in $PATH 5924do 5925 IFS=$as_save_IFS 5926 test -z "$as_dir" && as_dir=. 5927 for ac_exec_ext in '' $ac_executable_extensions; do 5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5929 ac_cv_prog_AR="${ac_tool_prefix}ar" 5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5931 break 2 5932 fi 5933done 5934 done 5935IFS=$as_save_IFS 5936 5937fi 5938fi 5939AR=$ac_cv_prog_AR 5940if test -n "$AR"; then 5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5942$as_echo "$AR" >&6; } 5943else 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5945$as_echo "no" >&6; } 5946fi 5947 5948 5949fi 5950if test -z "$ac_cv_prog_AR"; then 5951 ac_ct_AR=$AR 5952 # Extract the first word of "ar", so it can be a program name with args. 5953set dummy ar; ac_word=$2 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5955$as_echo_n "checking for $ac_word... " >&6; } 5956if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 if test -n "$ac_ct_AR"; then 5960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5961else 5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963for as_dir in $PATH 5964do 5965 IFS=$as_save_IFS 5966 test -z "$as_dir" && as_dir=. 5967 for ac_exec_ext in '' $ac_executable_extensions; do 5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5969 ac_cv_prog_ac_ct_AR="ar" 5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5971 break 2 5972 fi 5973done 5974 done 5975IFS=$as_save_IFS 5976 5977fi 5978fi 5979ac_ct_AR=$ac_cv_prog_ac_ct_AR 5980if test -n "$ac_ct_AR"; then 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5982$as_echo "$ac_ct_AR" >&6; } 5983else 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5985$as_echo "no" >&6; } 5986fi 5987 5988 if test "x$ac_ct_AR" = x; then 5989 AR="false" 5990 else 5991 case $cross_compiling:$ac_tool_warned in 5992yes:) 5993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5995ac_tool_warned=yes ;; 5996esac 5997 AR=$ac_ct_AR 5998 fi 5999else 6000 AR="$ac_cv_prog_AR" 6001fi 6002 6003test -z "$AR" && AR=ar 6004test -z "$AR_FLAGS" && AR_FLAGS=cru 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016if test -n "$ac_tool_prefix"; then 6017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6018set dummy ${ac_tool_prefix}strip; ac_word=$2 6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6020$as_echo_n "checking for $ac_word... " >&6; } 6021if test "${ac_cv_prog_STRIP+set}" = set; then : 6022 $as_echo_n "(cached) " >&6 6023else 6024 if test -n "$STRIP"; then 6025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6026else 6027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6028for as_dir in $PATH 6029do 6030 IFS=$as_save_IFS 6031 test -z "$as_dir" && as_dir=. 6032 for ac_exec_ext in '' $ac_executable_extensions; do 6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6034 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6036 break 2 6037 fi 6038done 6039 done 6040IFS=$as_save_IFS 6041 6042fi 6043fi 6044STRIP=$ac_cv_prog_STRIP 6045if test -n "$STRIP"; then 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6047$as_echo "$STRIP" >&6; } 6048else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6050$as_echo "no" >&6; } 6051fi 6052 6053 6054fi 6055if test -z "$ac_cv_prog_STRIP"; then 6056 ac_ct_STRIP=$STRIP 6057 # Extract the first word of "strip", so it can be a program name with args. 6058set dummy strip; ac_word=$2 6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6060$as_echo_n "checking for $ac_word... " >&6; } 6061if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6062 $as_echo_n "(cached) " >&6 6063else 6064 if test -n "$ac_ct_STRIP"; then 6065 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6066else 6067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6068for as_dir in $PATH 6069do 6070 IFS=$as_save_IFS 6071 test -z "$as_dir" && as_dir=. 6072 for ac_exec_ext in '' $ac_executable_extensions; do 6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6074 ac_cv_prog_ac_ct_STRIP="strip" 6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6076 break 2 6077 fi 6078done 6079 done 6080IFS=$as_save_IFS 6081 6082fi 6083fi 6084ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6085if test -n "$ac_ct_STRIP"; then 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6087$as_echo "$ac_ct_STRIP" >&6; } 6088else 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6090$as_echo "no" >&6; } 6091fi 6092 6093 if test "x$ac_ct_STRIP" = x; then 6094 STRIP=":" 6095 else 6096 case $cross_compiling:$ac_tool_warned in 6097yes:) 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6100ac_tool_warned=yes ;; 6101esac 6102 STRIP=$ac_ct_STRIP 6103 fi 6104else 6105 STRIP="$ac_cv_prog_STRIP" 6106fi 6107 6108test -z "$STRIP" && STRIP=: 6109 6110 6111 6112 6113 6114 6115if test -n "$ac_tool_prefix"; then 6116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6117set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6119$as_echo_n "checking for $ac_word... " >&6; } 6120if test "${ac_cv_prog_RANLIB+set}" = set; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if test -n "$RANLIB"; then 6124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6125else 6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 test -z "$as_dir" && as_dir=. 6131 for ac_exec_ext in '' $ac_executable_extensions; do 6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6135 break 2 6136 fi 6137done 6138 done 6139IFS=$as_save_IFS 6140 6141fi 6142fi 6143RANLIB=$ac_cv_prog_RANLIB 6144if test -n "$RANLIB"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6146$as_echo "$RANLIB" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153fi 6154if test -z "$ac_cv_prog_RANLIB"; then 6155 ac_ct_RANLIB=$RANLIB 6156 # Extract the first word of "ranlib", so it can be a program name with args. 6157set dummy ranlib; ac_word=$2 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159$as_echo_n "checking for $ac_word... " >&6; } 6160if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 if test -n "$ac_ct_RANLIB"; then 6164 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6165else 6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6167for as_dir in $PATH 6168do 6169 IFS=$as_save_IFS 6170 test -z "$as_dir" && as_dir=. 6171 for ac_exec_ext in '' $ac_executable_extensions; do 6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6173 ac_cv_prog_ac_ct_RANLIB="ranlib" 6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6175 break 2 6176 fi 6177done 6178 done 6179IFS=$as_save_IFS 6180 6181fi 6182fi 6183ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6184if test -n "$ac_ct_RANLIB"; then 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6186$as_echo "$ac_ct_RANLIB" >&6; } 6187else 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189$as_echo "no" >&6; } 6190fi 6191 6192 if test "x$ac_ct_RANLIB" = x; then 6193 RANLIB=":" 6194 else 6195 case $cross_compiling:$ac_tool_warned in 6196yes:) 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6199ac_tool_warned=yes ;; 6200esac 6201 RANLIB=$ac_ct_RANLIB 6202 fi 6203else 6204 RANLIB="$ac_cv_prog_RANLIB" 6205fi 6206 6207test -z "$RANLIB" && RANLIB=: 6208 6209 6210 6211 6212 6213 6214# Determine commands to create old-style static archives. 6215old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6216old_postinstall_cmds='chmod 644 $oldlib' 6217old_postuninstall_cmds= 6218 6219if test -n "$RANLIB"; then 6220 case $host_os in 6221 openbsd*) 6222 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6223 ;; 6224 *) 6225 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6226 ;; 6227 esac 6228 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6229fi 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264# If no C compiler was specified, use CC. 6265LTCC=${LTCC-"$CC"} 6266 6267# If no C compiler flags were specified, use CFLAGS. 6268LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6269 6270# Allow CC to be a program name with arguments. 6271compiler=$CC 6272 6273 6274# Check for command to grab the raw symbol name followed by C symbol from nm. 6275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6276$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6277if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 6281# These are sane defaults that work on at least a few old systems. 6282# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6283 6284# Character class describing NM global symbol codes. 6285symcode='[BCDEGRST]' 6286 6287# Regexp to match symbols that can be accessed directly from C. 6288sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6289 6290# Define system-specific variables. 6291case $host_os in 6292aix*) 6293 symcode='[BCDT]' 6294 ;; 6295cygwin* | mingw* | pw32* | cegcc*) 6296 symcode='[ABCDGISTW]' 6297 ;; 6298hpux*) 6299 if test "$host_cpu" = ia64; then 6300 symcode='[ABCDEGRST]' 6301 fi 6302 ;; 6303irix* | nonstopux*) 6304 symcode='[BCDEGRST]' 6305 ;; 6306osf*) 6307 symcode='[BCDEGQRST]' 6308 ;; 6309solaris*) 6310 symcode='[BDRT]' 6311 ;; 6312sco3.2v5*) 6313 symcode='[DT]' 6314 ;; 6315sysv4.2uw2*) 6316 symcode='[DT]' 6317 ;; 6318sysv5* | sco5v6* | unixware* | OpenUNIX*) 6319 symcode='[ABDT]' 6320 ;; 6321sysv4) 6322 symcode='[DFNSTU]' 6323 ;; 6324esac 6325 6326# If we're using GNU nm, then use its standard symbol codes. 6327case `$NM -V 2>&1` in 6328*GNU* | *'with BFD'*) 6329 symcode='[ABCDGIRSTW]' ;; 6330esac 6331 6332# Transform an extracted symbol line into a proper C declaration. 6333# Some systems (esp. on ia64) link data and code symbols differently, 6334# so use this general approach. 6335lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6336 6337# Transform an extracted symbol line into symbol name and symbol address 6338lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6339lt_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'" 6340 6341# Handle CRLF in mingw tool chain 6342opt_cr= 6343case $build_os in 6344mingw*) 6345 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6346 ;; 6347esac 6348 6349# Try without a prefix underscore, then with it. 6350for ac_symprfx in "" "_"; do 6351 6352 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6353 symxfrm="\\1 $ac_symprfx\\2 \\2" 6354 6355 # Write the raw and C identifiers. 6356 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6357 # Fake it for dumpbin and say T for any non-static function 6358 # and D for any global variable. 6359 # Also find C++ and __fastcall symbols from MSVC++, 6360 # which start with @ or ?. 6361 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6362" {last_section=section; section=\$ 3};"\ 6363" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6364" \$ 0!~/External *\|/{next};"\ 6365" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6366" {if(hide[section]) next};"\ 6367" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6368" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6369" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6370" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6371" ' prfx=^$ac_symprfx" 6372 else 6373 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6374 fi 6375 6376 # Check to see that the pipe works correctly. 6377 pipe_works=no 6378 6379 rm -f conftest* 6380 cat > conftest.$ac_ext <<_LT_EOF 6381#ifdef __cplusplus 6382extern "C" { 6383#endif 6384char nm_test_var; 6385void nm_test_func(void); 6386void nm_test_func(void){} 6387#ifdef __cplusplus 6388} 6389#endif 6390int main(){nm_test_var='a';nm_test_func();return(0);} 6391_LT_EOF 6392 6393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6394 (eval $ac_compile) 2>&5 6395 ac_status=$? 6396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6397 test $ac_status = 0; }; then 6398 # Now try to grab the symbols. 6399 nlist=conftest.nm 6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6401 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6402 ac_status=$? 6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6404 test $ac_status = 0; } && test -s "$nlist"; then 6405 # Try sorting and uniquifying the output. 6406 if sort "$nlist" | uniq > "$nlist"T; then 6407 mv -f "$nlist"T "$nlist" 6408 else 6409 rm -f "$nlist"T 6410 fi 6411 6412 # Make sure that we snagged all the symbols we need. 6413 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6414 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6415 cat <<_LT_EOF > conftest.$ac_ext 6416#ifdef __cplusplus 6417extern "C" { 6418#endif 6419 6420_LT_EOF 6421 # Now generate the symbol file. 6422 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6423 6424 cat <<_LT_EOF >> conftest.$ac_ext 6425 6426/* The mapping between symbol names and symbols. */ 6427const struct { 6428 const char *name; 6429 void *address; 6430} 6431lt__PROGRAM__LTX_preloaded_symbols[] = 6432{ 6433 { "@PROGRAM@", (void *) 0 }, 6434_LT_EOF 6435 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6436 cat <<\_LT_EOF >> conftest.$ac_ext 6437 {0, (void *) 0} 6438}; 6439 6440/* This works around a problem in FreeBSD linker */ 6441#ifdef FREEBSD_WORKAROUND 6442static const void *lt_preloaded_setup() { 6443 return lt__PROGRAM__LTX_preloaded_symbols; 6444} 6445#endif 6446 6447#ifdef __cplusplus 6448} 6449#endif 6450_LT_EOF 6451 # Now try linking the two files. 6452 mv conftest.$ac_objext conftstm.$ac_objext 6453 lt_save_LIBS="$LIBS" 6454 lt_save_CFLAGS="$CFLAGS" 6455 LIBS="conftstm.$ac_objext" 6456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6458 (eval $ac_link) 2>&5 6459 ac_status=$? 6460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6461 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6462 pipe_works=yes 6463 fi 6464 LIBS="$lt_save_LIBS" 6465 CFLAGS="$lt_save_CFLAGS" 6466 else 6467 echo "cannot find nm_test_func in $nlist" >&5 6468 fi 6469 else 6470 echo "cannot find nm_test_var in $nlist" >&5 6471 fi 6472 else 6473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6474 fi 6475 else 6476 echo "$progname: failed program was:" >&5 6477 cat conftest.$ac_ext >&5 6478 fi 6479 rm -rf conftest* conftst* 6480 6481 # Do not use the global_symbol_pipe unless it works. 6482 if test "$pipe_works" = yes; then 6483 break 6484 else 6485 lt_cv_sys_global_symbol_pipe= 6486 fi 6487done 6488 6489fi 6490 6491if test -z "$lt_cv_sys_global_symbol_pipe"; then 6492 lt_cv_sys_global_symbol_to_cdecl= 6493fi 6494if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6496$as_echo "failed" >&6; } 6497else 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6499$as_echo "ok" >&6; } 6500fi 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523# Check whether --enable-libtool-lock was given. 6524if test "${enable_libtool_lock+set}" = set; then : 6525 enableval=$enable_libtool_lock; 6526fi 6527 6528test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6529 6530# Some flags need to be propagated to the compiler or linker for good 6531# libtool support. 6532case $host in 6533ia64-*-hpux*) 6534 # Find out which ABI we are using. 6535 echo 'int i;' > conftest.$ac_ext 6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6537 (eval $ac_compile) 2>&5 6538 ac_status=$? 6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6540 test $ac_status = 0; }; then 6541 case `/usr/bin/file conftest.$ac_objext` in 6542 *ELF-32*) 6543 HPUX_IA64_MODE="32" 6544 ;; 6545 *ELF-64*) 6546 HPUX_IA64_MODE="64" 6547 ;; 6548 esac 6549 fi 6550 rm -rf conftest* 6551 ;; 6552*-*-irix6*) 6553 # Find out which ABI we are using. 6554 echo '#line 6554 "configure"' > conftest.$ac_ext 6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6556 (eval $ac_compile) 2>&5 6557 ac_status=$? 6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6559 test $ac_status = 0; }; then 6560 if test "$lt_cv_prog_gnu_ld" = yes; then 6561 case `/usr/bin/file conftest.$ac_objext` in 6562 *32-bit*) 6563 LD="${LD-ld} -melf32bsmip" 6564 ;; 6565 *N32*) 6566 LD="${LD-ld} -melf32bmipn32" 6567 ;; 6568 *64-bit*) 6569 LD="${LD-ld} -melf64bmip" 6570 ;; 6571 esac 6572 else 6573 case `/usr/bin/file conftest.$ac_objext` in 6574 *32-bit*) 6575 LD="${LD-ld} -32" 6576 ;; 6577 *N32*) 6578 LD="${LD-ld} -n32" 6579 ;; 6580 *64-bit*) 6581 LD="${LD-ld} -64" 6582 ;; 6583 esac 6584 fi 6585 fi 6586 rm -rf conftest* 6587 ;; 6588 6589x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6590s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6591 # Find out which ABI we are using. 6592 echo 'int i;' > conftest.$ac_ext 6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6594 (eval $ac_compile) 2>&5 6595 ac_status=$? 6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6597 test $ac_status = 0; }; then 6598 case `/usr/bin/file conftest.o` in 6599 *32-bit*) 6600 case $host in 6601 x86_64-*kfreebsd*-gnu) 6602 LD="${LD-ld} -m elf_i386_fbsd" 6603 ;; 6604 x86_64-*linux*) 6605 LD="${LD-ld} -m elf_i386" 6606 ;; 6607 ppc64-*linux*|powerpc64-*linux*) 6608 LD="${LD-ld} -m elf32ppclinux" 6609 ;; 6610 s390x-*linux*) 6611 LD="${LD-ld} -m elf_s390" 6612 ;; 6613 sparc64-*linux*) 6614 LD="${LD-ld} -m elf32_sparc" 6615 ;; 6616 esac 6617 ;; 6618 *64-bit*) 6619 case $host in 6620 x86_64-*kfreebsd*-gnu) 6621 LD="${LD-ld} -m elf_x86_64_fbsd" 6622 ;; 6623 x86_64-*linux*) 6624 LD="${LD-ld} -m elf_x86_64" 6625 ;; 6626 ppc*-*linux*|powerpc*-*linux*) 6627 LD="${LD-ld} -m elf64ppc" 6628 ;; 6629 s390*-*linux*|s390*-*tpf*) 6630 LD="${LD-ld} -m elf64_s390" 6631 ;; 6632 sparc*-*linux*) 6633 LD="${LD-ld} -m elf64_sparc" 6634 ;; 6635 esac 6636 ;; 6637 esac 6638 fi 6639 rm -rf conftest* 6640 ;; 6641 6642*-*-sco3.2v5*) 6643 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6644 SAVE_CFLAGS="$CFLAGS" 6645 CFLAGS="$CFLAGS -belf" 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6647$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6648if test "${lt_cv_cc_needs_belf+set}" = set; then : 6649 $as_echo_n "(cached) " >&6 6650else 6651 ac_ext=c 6652ac_cpp='$CPP $CPPFLAGS' 6653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6655ac_compiler_gnu=$ac_cv_c_compiler_gnu 6656 6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658/* end confdefs.h. */ 6659 6660int 6661main () 6662{ 6663 6664 ; 6665 return 0; 6666} 6667_ACEOF 6668if ac_fn_c_try_link "$LINENO"; then : 6669 lt_cv_cc_needs_belf=yes 6670else 6671 lt_cv_cc_needs_belf=no 6672fi 6673rm -f core conftest.err conftest.$ac_objext \ 6674 conftest$ac_exeext conftest.$ac_ext 6675 ac_ext=c 6676ac_cpp='$CPP $CPPFLAGS' 6677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6679ac_compiler_gnu=$ac_cv_c_compiler_gnu 6680 6681fi 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6683$as_echo "$lt_cv_cc_needs_belf" >&6; } 6684 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6685 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6686 CFLAGS="$SAVE_CFLAGS" 6687 fi 6688 ;; 6689sparc*-*solaris*) 6690 # Find out which ABI we are using. 6691 echo 'int i;' > conftest.$ac_ext 6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6693 (eval $ac_compile) 2>&5 6694 ac_status=$? 6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6696 test $ac_status = 0; }; then 6697 case `/usr/bin/file conftest.o` in 6698 *64-bit*) 6699 case $lt_cv_prog_gnu_ld in 6700 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6701 *) 6702 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6703 LD="${LD-ld} -64" 6704 fi 6705 ;; 6706 esac 6707 ;; 6708 esac 6709 fi 6710 rm -rf conftest* 6711 ;; 6712esac 6713 6714need_locks="$enable_libtool_lock" 6715 6716 6717 case $host_os in 6718 rhapsody* | darwin*) 6719 if test -n "$ac_tool_prefix"; then 6720 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6721set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6723$as_echo_n "checking for $ac_word... " >&6; } 6724if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 if test -n "$DSYMUTIL"; then 6728 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6729else 6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6731for as_dir in $PATH 6732do 6733 IFS=$as_save_IFS 6734 test -z "$as_dir" && as_dir=. 6735 for ac_exec_ext in '' $ac_executable_extensions; do 6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6737 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6739 break 2 6740 fi 6741done 6742 done 6743IFS=$as_save_IFS 6744 6745fi 6746fi 6747DSYMUTIL=$ac_cv_prog_DSYMUTIL 6748if test -n "$DSYMUTIL"; then 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6750$as_echo "$DSYMUTIL" >&6; } 6751else 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6753$as_echo "no" >&6; } 6754fi 6755 6756 6757fi 6758if test -z "$ac_cv_prog_DSYMUTIL"; then 6759 ac_ct_DSYMUTIL=$DSYMUTIL 6760 # Extract the first word of "dsymutil", so it can be a program name with args. 6761set dummy dsymutil; ac_word=$2 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6763$as_echo_n "checking for $ac_word... " >&6; } 6764if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 if test -n "$ac_ct_DSYMUTIL"; then 6768 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6769else 6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6771for as_dir in $PATH 6772do 6773 IFS=$as_save_IFS 6774 test -z "$as_dir" && as_dir=. 6775 for ac_exec_ext in '' $ac_executable_extensions; do 6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6777 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6779 break 2 6780 fi 6781done 6782 done 6783IFS=$as_save_IFS 6784 6785fi 6786fi 6787ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6788if test -n "$ac_ct_DSYMUTIL"; then 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6790$as_echo "$ac_ct_DSYMUTIL" >&6; } 6791else 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6793$as_echo "no" >&6; } 6794fi 6795 6796 if test "x$ac_ct_DSYMUTIL" = x; then 6797 DSYMUTIL=":" 6798 else 6799 case $cross_compiling:$ac_tool_warned in 6800yes:) 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6803ac_tool_warned=yes ;; 6804esac 6805 DSYMUTIL=$ac_ct_DSYMUTIL 6806 fi 6807else 6808 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6809fi 6810 6811 if test -n "$ac_tool_prefix"; then 6812 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6813set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6815$as_echo_n "checking for $ac_word... " >&6; } 6816if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6817 $as_echo_n "(cached) " >&6 6818else 6819 if test -n "$NMEDIT"; then 6820 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6821else 6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6823for as_dir in $PATH 6824do 6825 IFS=$as_save_IFS 6826 test -z "$as_dir" && as_dir=. 6827 for ac_exec_ext in '' $ac_executable_extensions; do 6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6829 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6831 break 2 6832 fi 6833done 6834 done 6835IFS=$as_save_IFS 6836 6837fi 6838fi 6839NMEDIT=$ac_cv_prog_NMEDIT 6840if test -n "$NMEDIT"; then 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6842$as_echo "$NMEDIT" >&6; } 6843else 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6845$as_echo "no" >&6; } 6846fi 6847 6848 6849fi 6850if test -z "$ac_cv_prog_NMEDIT"; then 6851 ac_ct_NMEDIT=$NMEDIT 6852 # Extract the first word of "nmedit", so it can be a program name with args. 6853set dummy nmedit; ac_word=$2 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6855$as_echo_n "checking for $ac_word... " >&6; } 6856if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6857 $as_echo_n "(cached) " >&6 6858else 6859 if test -n "$ac_ct_NMEDIT"; then 6860 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6861else 6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6863for as_dir in $PATH 6864do 6865 IFS=$as_save_IFS 6866 test -z "$as_dir" && as_dir=. 6867 for ac_exec_ext in '' $ac_executable_extensions; do 6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6869 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6871 break 2 6872 fi 6873done 6874 done 6875IFS=$as_save_IFS 6876 6877fi 6878fi 6879ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6880if test -n "$ac_ct_NMEDIT"; then 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6882$as_echo "$ac_ct_NMEDIT" >&6; } 6883else 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6885$as_echo "no" >&6; } 6886fi 6887 6888 if test "x$ac_ct_NMEDIT" = x; then 6889 NMEDIT=":" 6890 else 6891 case $cross_compiling:$ac_tool_warned in 6892yes:) 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6895ac_tool_warned=yes ;; 6896esac 6897 NMEDIT=$ac_ct_NMEDIT 6898 fi 6899else 6900 NMEDIT="$ac_cv_prog_NMEDIT" 6901fi 6902 6903 if test -n "$ac_tool_prefix"; then 6904 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6905set dummy ${ac_tool_prefix}lipo; ac_word=$2 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6907$as_echo_n "checking for $ac_word... " >&6; } 6908if test "${ac_cv_prog_LIPO+set}" = set; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 if test -n "$LIPO"; then 6912 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6913else 6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6915for as_dir in $PATH 6916do 6917 IFS=$as_save_IFS 6918 test -z "$as_dir" && as_dir=. 6919 for ac_exec_ext in '' $ac_executable_extensions; do 6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6921 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6923 break 2 6924 fi 6925done 6926 done 6927IFS=$as_save_IFS 6928 6929fi 6930fi 6931LIPO=$ac_cv_prog_LIPO 6932if test -n "$LIPO"; then 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6934$as_echo "$LIPO" >&6; } 6935else 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6937$as_echo "no" >&6; } 6938fi 6939 6940 6941fi 6942if test -z "$ac_cv_prog_LIPO"; then 6943 ac_ct_LIPO=$LIPO 6944 # Extract the first word of "lipo", so it can be a program name with args. 6945set dummy lipo; ac_word=$2 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6947$as_echo_n "checking for $ac_word... " >&6; } 6948if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 if test -n "$ac_ct_LIPO"; then 6952 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6953else 6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6955for as_dir in $PATH 6956do 6957 IFS=$as_save_IFS 6958 test -z "$as_dir" && as_dir=. 6959 for ac_exec_ext in '' $ac_executable_extensions; do 6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6961 ac_cv_prog_ac_ct_LIPO="lipo" 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6963 break 2 6964 fi 6965done 6966 done 6967IFS=$as_save_IFS 6968 6969fi 6970fi 6971ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6972if test -n "$ac_ct_LIPO"; then 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6974$as_echo "$ac_ct_LIPO" >&6; } 6975else 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6977$as_echo "no" >&6; } 6978fi 6979 6980 if test "x$ac_ct_LIPO" = x; then 6981 LIPO=":" 6982 else 6983 case $cross_compiling:$ac_tool_warned in 6984yes:) 6985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6987ac_tool_warned=yes ;; 6988esac 6989 LIPO=$ac_ct_LIPO 6990 fi 6991else 6992 LIPO="$ac_cv_prog_LIPO" 6993fi 6994 6995 if test -n "$ac_tool_prefix"; then 6996 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6997set dummy ${ac_tool_prefix}otool; ac_word=$2 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6999$as_echo_n "checking for $ac_word... " >&6; } 7000if test "${ac_cv_prog_OTOOL+set}" = set; then : 7001 $as_echo_n "(cached) " >&6 7002else 7003 if test -n "$OTOOL"; then 7004 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7005else 7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7007for as_dir in $PATH 7008do 7009 IFS=$as_save_IFS 7010 test -z "$as_dir" && as_dir=. 7011 for ac_exec_ext in '' $ac_executable_extensions; do 7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7013 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7015 break 2 7016 fi 7017done 7018 done 7019IFS=$as_save_IFS 7020 7021fi 7022fi 7023OTOOL=$ac_cv_prog_OTOOL 7024if test -n "$OTOOL"; then 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7026$as_echo "$OTOOL" >&6; } 7027else 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7029$as_echo "no" >&6; } 7030fi 7031 7032 7033fi 7034if test -z "$ac_cv_prog_OTOOL"; then 7035 ac_ct_OTOOL=$OTOOL 7036 # Extract the first word of "otool", so it can be a program name with args. 7037set dummy otool; ac_word=$2 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7039$as_echo_n "checking for $ac_word... " >&6; } 7040if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 if test -n "$ac_ct_OTOOL"; then 7044 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7045else 7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7047for as_dir in $PATH 7048do 7049 IFS=$as_save_IFS 7050 test -z "$as_dir" && as_dir=. 7051 for ac_exec_ext in '' $ac_executable_extensions; do 7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7053 ac_cv_prog_ac_ct_OTOOL="otool" 7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7055 break 2 7056 fi 7057done 7058 done 7059IFS=$as_save_IFS 7060 7061fi 7062fi 7063ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7064if test -n "$ac_ct_OTOOL"; then 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7066$as_echo "$ac_ct_OTOOL" >&6; } 7067else 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7069$as_echo "no" >&6; } 7070fi 7071 7072 if test "x$ac_ct_OTOOL" = x; then 7073 OTOOL=":" 7074 else 7075 case $cross_compiling:$ac_tool_warned in 7076yes:) 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7079ac_tool_warned=yes ;; 7080esac 7081 OTOOL=$ac_ct_OTOOL 7082 fi 7083else 7084 OTOOL="$ac_cv_prog_OTOOL" 7085fi 7086 7087 if test -n "$ac_tool_prefix"; then 7088 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7089set dummy ${ac_tool_prefix}otool64; ac_word=$2 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7091$as_echo_n "checking for $ac_word... " >&6; } 7092if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 if test -n "$OTOOL64"; then 7096 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7097else 7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7099for as_dir in $PATH 7100do 7101 IFS=$as_save_IFS 7102 test -z "$as_dir" && as_dir=. 7103 for ac_exec_ext in '' $ac_executable_extensions; do 7104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7105 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7107 break 2 7108 fi 7109done 7110 done 7111IFS=$as_save_IFS 7112 7113fi 7114fi 7115OTOOL64=$ac_cv_prog_OTOOL64 7116if test -n "$OTOOL64"; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7118$as_echo "$OTOOL64" >&6; } 7119else 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7121$as_echo "no" >&6; } 7122fi 7123 7124 7125fi 7126if test -z "$ac_cv_prog_OTOOL64"; then 7127 ac_ct_OTOOL64=$OTOOL64 7128 # Extract the first word of "otool64", so it can be a program name with args. 7129set dummy otool64; ac_word=$2 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7131$as_echo_n "checking for $ac_word... " >&6; } 7132if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 if test -n "$ac_ct_OTOOL64"; then 7136 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7137else 7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7139for as_dir in $PATH 7140do 7141 IFS=$as_save_IFS 7142 test -z "$as_dir" && as_dir=. 7143 for ac_exec_ext in '' $ac_executable_extensions; do 7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7145 ac_cv_prog_ac_ct_OTOOL64="otool64" 7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7147 break 2 7148 fi 7149done 7150 done 7151IFS=$as_save_IFS 7152 7153fi 7154fi 7155ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7156if test -n "$ac_ct_OTOOL64"; then 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7158$as_echo "$ac_ct_OTOOL64" >&6; } 7159else 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7161$as_echo "no" >&6; } 7162fi 7163 7164 if test "x$ac_ct_OTOOL64" = x; then 7165 OTOOL64=":" 7166 else 7167 case $cross_compiling:$ac_tool_warned in 7168yes:) 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7171ac_tool_warned=yes ;; 7172esac 7173 OTOOL64=$ac_ct_OTOOL64 7174 fi 7175else 7176 OTOOL64="$ac_cv_prog_OTOOL64" 7177fi 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7206$as_echo_n "checking for -single_module linker flag... " >&6; } 7207if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7208 $as_echo_n "(cached) " >&6 7209else 7210 lt_cv_apple_cc_single_mod=no 7211 if test -z "${LT_MULTI_MODULE}"; then 7212 # By default we will add the -single_module flag. You can override 7213 # by either setting the environment variable LT_MULTI_MODULE 7214 # non-empty at configure time, or by adding -multi_module to the 7215 # link flags. 7216 rm -rf libconftest.dylib* 7217 echo "int foo(void){return 1;}" > conftest.c 7218 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7219-dynamiclib -Wl,-single_module conftest.c" >&5 7220 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7221 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7222 _lt_result=$? 7223 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7224 lt_cv_apple_cc_single_mod=yes 7225 else 7226 cat conftest.err >&5 7227 fi 7228 rm -rf libconftest.dylib* 7229 rm -f conftest.* 7230 fi 7231fi 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7233$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7235$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7236if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 lt_cv_ld_exported_symbols_list=no 7240 save_LDFLAGS=$LDFLAGS 7241 echo "_main" > conftest.sym 7242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245 7246int 7247main () 7248{ 7249 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254if ac_fn_c_try_link "$LINENO"; then : 7255 lt_cv_ld_exported_symbols_list=yes 7256else 7257 lt_cv_ld_exported_symbols_list=no 7258fi 7259rm -f core conftest.err conftest.$ac_objext \ 7260 conftest$ac_exeext conftest.$ac_ext 7261 LDFLAGS="$save_LDFLAGS" 7262 7263fi 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7265$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7266 case $host_os in 7267 rhapsody* | darwin1.[012]) 7268 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7269 darwin1.*) 7270 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7271 darwin*) # darwin 5.x on 7272 # if running on 10.5 or later, the deployment target defaults 7273 # to the OS version, if on x86, and 10.4, the deployment 7274 # target defaults to 10.4. Don't you love it? 7275 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7276 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7278 10.[012]*) 7279 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7280 10.*) 7281 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7282 esac 7283 ;; 7284 esac 7285 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7286 _lt_dar_single_mod='$single_module' 7287 fi 7288 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7289 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7290 else 7291 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7292 fi 7293 if test "$DSYMUTIL" != ":"; then 7294 _lt_dsymutil='~$DSYMUTIL $lib || :' 7295 else 7296 _lt_dsymutil= 7297 fi 7298 ;; 7299 esac 7300 7301for ac_header in dlfcn.h 7302do : 7303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7304" 7305if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7306 cat >>confdefs.h <<_ACEOF 7307#define HAVE_DLFCN_H 1 7308_ACEOF 7309 7310fi 7311 7312done 7313 7314 7315 7316# Set options 7317 7318 7319 7320 enable_dlopen=no 7321 7322 7323 enable_win32_dll=no 7324 7325 7326 # Check whether --enable-shared was given. 7327if test "${enable_shared+set}" = set; then : 7328 enableval=$enable_shared; p=${PACKAGE-default} 7329 case $enableval in 7330 yes) enable_shared=yes ;; 7331 no) enable_shared=no ;; 7332 *) 7333 enable_shared=no 7334 # Look at the argument we got. We use all the common list separators. 7335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7336 for pkg in $enableval; do 7337 IFS="$lt_save_ifs" 7338 if test "X$pkg" = "X$p"; then 7339 enable_shared=yes 7340 fi 7341 done 7342 IFS="$lt_save_ifs" 7343 ;; 7344 esac 7345else 7346 enable_shared=yes 7347fi 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359# Check whether --with-pic was given. 7360if test "${with_pic+set}" = set; then : 7361 withval=$with_pic; pic_mode="$withval" 7362else 7363 pic_mode=default 7364fi 7365 7366 7367test -z "$pic_mode" && pic_mode=default 7368 7369 7370 7371 7372 7373 7374 7375 # Check whether --enable-fast-install was given. 7376if test "${enable_fast_install+set}" = set; then : 7377 enableval=$enable_fast_install; p=${PACKAGE-default} 7378 case $enableval in 7379 yes) enable_fast_install=yes ;; 7380 no) enable_fast_install=no ;; 7381 *) 7382 enable_fast_install=no 7383 # Look at the argument we got. We use all the common list separators. 7384 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7385 for pkg in $enableval; do 7386 IFS="$lt_save_ifs" 7387 if test "X$pkg" = "X$p"; then 7388 enable_fast_install=yes 7389 fi 7390 done 7391 IFS="$lt_save_ifs" 7392 ;; 7393 esac 7394else 7395 enable_fast_install=yes 7396fi 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408# This can be used to rebuild libtool when needed 7409LIBTOOL_DEPS="$ltmain" 7410 7411# Always use our own libtool. 7412LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438test -z "$LN_S" && LN_S="ln -s" 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453if test -n "${ZSH_VERSION+set}" ; then 7454 setopt NO_GLOB_SUBST 7455fi 7456 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7458$as_echo_n "checking for objdir... " >&6; } 7459if test "${lt_cv_objdir+set}" = set; then : 7460 $as_echo_n "(cached) " >&6 7461else 7462 rm -f .libs 2>/dev/null 7463mkdir .libs 2>/dev/null 7464if test -d .libs; then 7465 lt_cv_objdir=.libs 7466else 7467 # MS-DOS does not allow filenames that begin with a dot. 7468 lt_cv_objdir=_libs 7469fi 7470rmdir .libs 2>/dev/null 7471fi 7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7473$as_echo "$lt_cv_objdir" >&6; } 7474objdir=$lt_cv_objdir 7475 7476 7477 7478 7479 7480cat >>confdefs.h <<_ACEOF 7481#define LT_OBJDIR "$lt_cv_objdir/" 7482_ACEOF 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500case $host_os in 7501aix3*) 7502 # AIX sometimes has problems with the GCC collect2 program. For some 7503 # reason, if we set the COLLECT_NAMES environment variable, the problems 7504 # vanish in a puff of smoke. 7505 if test "X${COLLECT_NAMES+set}" != Xset; then 7506 COLLECT_NAMES= 7507 export COLLECT_NAMES 7508 fi 7509 ;; 7510esac 7511 7512# Sed substitution that helps us do robust quoting. It backslashifies 7513# metacharacters that are still active within double-quoted strings. 7514sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7515 7516# Same as above, but do not quote variable references. 7517double_quote_subst='s/\(["`\\]\)/\\\1/g' 7518 7519# Sed substitution to delay expansion of an escaped shell variable in a 7520# double_quote_subst'ed string. 7521delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7522 7523# Sed substitution to delay expansion of an escaped single quote. 7524delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7525 7526# Sed substitution to avoid accidental globbing in evaled expressions 7527no_glob_subst='s/\*/\\\*/g' 7528 7529# Global variables: 7530ofile=libtool 7531can_build_shared=yes 7532 7533# All known linkers require a `.a' archive for static linking (except MSVC, 7534# which needs '.lib'). 7535libext=a 7536 7537with_gnu_ld="$lt_cv_prog_gnu_ld" 7538 7539old_CC="$CC" 7540old_CFLAGS="$CFLAGS" 7541 7542# Set sane defaults for various variables 7543test -z "$CC" && CC=cc 7544test -z "$LTCC" && LTCC=$CC 7545test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7546test -z "$LD" && LD=ld 7547test -z "$ac_objext" && ac_objext=o 7548 7549for cc_temp in $compiler""; do 7550 case $cc_temp in 7551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7553 \-*) ;; 7554 *) break;; 7555 esac 7556done 7557cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7558 7559 7560# Only perform the check for file, if the check method requires it 7561test -z "$MAGIC_CMD" && MAGIC_CMD=file 7562case $deplibs_check_method in 7563file_magic*) 7564 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7566$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7567if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 case $MAGIC_CMD in 7571[\\/*] | ?:[\\/]*) 7572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7573 ;; 7574*) 7575 lt_save_MAGIC_CMD="$MAGIC_CMD" 7576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7578 for ac_dir in $ac_dummy; do 7579 IFS="$lt_save_ifs" 7580 test -z "$ac_dir" && ac_dir=. 7581 if test -f $ac_dir/${ac_tool_prefix}file; then 7582 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7583 if test -n "$file_magic_test_file"; then 7584 case $deplibs_check_method in 7585 "file_magic "*) 7586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7589 $EGREP "$file_magic_regex" > /dev/null; then 7590 : 7591 else 7592 cat <<_LT_EOF 1>&2 7593 7594*** Warning: the command libtool uses to detect shared libraries, 7595*** $file_magic_cmd, produces output that libtool cannot recognize. 7596*** The result is that libtool may fail to recognize shared libraries 7597*** as such. This will affect the creation of libtool libraries that 7598*** depend on shared libraries, but programs linked with such libtool 7599*** libraries will work regardless of this problem. Nevertheless, you 7600*** may want to report the problem to your system manager and/or to 7601*** bug-libtool@gnu.org 7602 7603_LT_EOF 7604 fi ;; 7605 esac 7606 fi 7607 break 7608 fi 7609 done 7610 IFS="$lt_save_ifs" 7611 MAGIC_CMD="$lt_save_MAGIC_CMD" 7612 ;; 7613esac 7614fi 7615 7616MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7617if test -n "$MAGIC_CMD"; then 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7619$as_echo "$MAGIC_CMD" >&6; } 7620else 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7622$as_echo "no" >&6; } 7623fi 7624 7625 7626 7627 7628 7629if test -z "$lt_cv_path_MAGIC_CMD"; then 7630 if test -n "$ac_tool_prefix"; then 7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7632$as_echo_n "checking for file... " >&6; } 7633if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 case $MAGIC_CMD in 7637[\\/*] | ?:[\\/]*) 7638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7639 ;; 7640*) 7641 lt_save_MAGIC_CMD="$MAGIC_CMD" 7642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7644 for ac_dir in $ac_dummy; do 7645 IFS="$lt_save_ifs" 7646 test -z "$ac_dir" && ac_dir=. 7647 if test -f $ac_dir/file; then 7648 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7649 if test -n "$file_magic_test_file"; then 7650 case $deplibs_check_method in 7651 "file_magic "*) 7652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7655 $EGREP "$file_magic_regex" > /dev/null; then 7656 : 7657 else 7658 cat <<_LT_EOF 1>&2 7659 7660*** Warning: the command libtool uses to detect shared libraries, 7661*** $file_magic_cmd, produces output that libtool cannot recognize. 7662*** The result is that libtool may fail to recognize shared libraries 7663*** as such. This will affect the creation of libtool libraries that 7664*** depend on shared libraries, but programs linked with such libtool 7665*** libraries will work regardless of this problem. Nevertheless, you 7666*** may want to report the problem to your system manager and/or to 7667*** bug-libtool@gnu.org 7668 7669_LT_EOF 7670 fi ;; 7671 esac 7672 fi 7673 break 7674 fi 7675 done 7676 IFS="$lt_save_ifs" 7677 MAGIC_CMD="$lt_save_MAGIC_CMD" 7678 ;; 7679esac 7680fi 7681 7682MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7683if test -n "$MAGIC_CMD"; then 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7685$as_echo "$MAGIC_CMD" >&6; } 7686else 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7688$as_echo "no" >&6; } 7689fi 7690 7691 7692 else 7693 MAGIC_CMD=: 7694 fi 7695fi 7696 7697 fi 7698 ;; 7699esac 7700 7701# Use C for the default configuration in the libtool script 7702 7703lt_save_CC="$CC" 7704ac_ext=c 7705ac_cpp='$CPP $CPPFLAGS' 7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7708ac_compiler_gnu=$ac_cv_c_compiler_gnu 7709 7710 7711# Source file extension for C test sources. 7712ac_ext=c 7713 7714# Object file extension for compiled C test sources. 7715objext=o 7716objext=$objext 7717 7718# Code to be used in simple compile tests 7719lt_simple_compile_test_code="int some_variable = 0;" 7720 7721# Code to be used in simple link tests 7722lt_simple_link_test_code='int main(){return(0);}' 7723 7724 7725 7726 7727 7728 7729 7730# If no C compiler was specified, use CC. 7731LTCC=${LTCC-"$CC"} 7732 7733# If no C compiler flags were specified, use CFLAGS. 7734LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7735 7736# Allow CC to be a program name with arguments. 7737compiler=$CC 7738 7739# Save the default compiler, since it gets overwritten when the other 7740# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7741compiler_DEFAULT=$CC 7742 7743# save warnings/boilerplate of simple test code 7744ac_outfile=conftest.$ac_objext 7745echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7746eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7747_lt_compiler_boilerplate=`cat conftest.err` 7748$RM conftest* 7749 7750ac_outfile=conftest.$ac_objext 7751echo "$lt_simple_link_test_code" >conftest.$ac_ext 7752eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7753_lt_linker_boilerplate=`cat conftest.err` 7754$RM -r conftest* 7755 7756 7757if test -n "$compiler"; then 7758 7759lt_prog_compiler_no_builtin_flag= 7760 7761if test "$GCC" = yes; then 7762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7763 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7765$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7766if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 lt_cv_prog_compiler_rtti_exceptions=no 7770 ac_outfile=conftest.$ac_objext 7771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7772 lt_compiler_flag="-fno-rtti -fno-exceptions" 7773 # Insert the option either (1) after the last *FLAGS variable, or 7774 # (2) before a word containing "conftest.", or (3) at the end. 7775 # Note that $ac_compile itself does not contain backslashes and begins 7776 # with a dollar sign (not a hyphen), so the echo should work correctly. 7777 # The option is referenced via a variable to avoid confusing sed. 7778 lt_compile=`echo "$ac_compile" | $SED \ 7779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7781 -e 's:$: $lt_compiler_flag:'` 7782 (eval echo "\"\$as_me:7782: $lt_compile\"" >&5) 7783 (eval "$lt_compile" 2>conftest.err) 7784 ac_status=$? 7785 cat conftest.err >&5 7786 echo "$as_me:7786: \$? = $ac_status" >&5 7787 if (exit $ac_status) && test -s "$ac_outfile"; then 7788 # The compiler can only warn and ignore the option if not recognized 7789 # So say no if there are warnings other than the usual output. 7790 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7793 lt_cv_prog_compiler_rtti_exceptions=yes 7794 fi 7795 fi 7796 $RM conftest* 7797 7798fi 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7800$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7801 7802if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7803 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7804else 7805 : 7806fi 7807 7808fi 7809 7810 7811 7812 7813 7814 7815 lt_prog_compiler_wl= 7816lt_prog_compiler_pic= 7817lt_prog_compiler_static= 7818 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7820$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7821 7822 if test "$GCC" = yes; then 7823 lt_prog_compiler_wl='-Wl,' 7824 lt_prog_compiler_static='-static' 7825 7826 case $host_os in 7827 aix*) 7828 # All AIX code is PIC. 7829 if test "$host_cpu" = ia64; then 7830 # AIX 5 now supports IA64 processor 7831 lt_prog_compiler_static='-Bstatic' 7832 fi 7833 ;; 7834 7835 amigaos*) 7836 case $host_cpu in 7837 powerpc) 7838 # see comment about AmigaOS4 .so support 7839 lt_prog_compiler_pic='-fPIC' 7840 ;; 7841 m68k) 7842 # FIXME: we need at least 68020 code to build shared libraries, but 7843 # adding the `-m68020' flag to GCC prevents building anything better, 7844 # like `-m68040'. 7845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7846 ;; 7847 esac 7848 ;; 7849 7850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7851 # PIC is the default for these OSes. 7852 ;; 7853 7854 mingw* | cygwin* | pw32* | os2* | cegcc*) 7855 # This hack is so that the source file can tell whether it is being 7856 # built for inclusion in a dll (and should export symbols for example). 7857 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7858 # (--disable-auto-import) libraries 7859 lt_prog_compiler_pic='-DDLL_EXPORT' 7860 ;; 7861 7862 darwin* | rhapsody*) 7863 # PIC is the default on this platform 7864 # Common symbols not allowed in MH_DYLIB files 7865 lt_prog_compiler_pic='-fno-common' 7866 ;; 7867 7868 hpux*) 7869 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7870 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7871 # sets the default TLS model and affects inlining. 7872 case $host_cpu in 7873 hppa*64*) 7874 # +Z the default 7875 ;; 7876 *) 7877 lt_prog_compiler_pic='-fPIC' 7878 ;; 7879 esac 7880 ;; 7881 7882 interix[3-9]*) 7883 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7884 # Instead, we relocate shared libraries at runtime. 7885 ;; 7886 7887 msdosdjgpp*) 7888 # Just because we use GCC doesn't mean we suddenly get shared libraries 7889 # on systems that don't support them. 7890 lt_prog_compiler_can_build_shared=no 7891 enable_shared=no 7892 ;; 7893 7894 *nto* | *qnx*) 7895 # QNX uses GNU C++, but need to define -shared option too, otherwise 7896 # it will coredump. 7897 lt_prog_compiler_pic='-fPIC -shared' 7898 ;; 7899 7900 sysv4*MP*) 7901 if test -d /usr/nec; then 7902 lt_prog_compiler_pic=-Kconform_pic 7903 fi 7904 ;; 7905 7906 *) 7907 lt_prog_compiler_pic='-fPIC' 7908 ;; 7909 esac 7910 else 7911 # PORTME Check for flag to pass linker flags through the system compiler. 7912 case $host_os in 7913 aix*) 7914 lt_prog_compiler_wl='-Wl,' 7915 if test "$host_cpu" = ia64; then 7916 # AIX 5 now supports IA64 processor 7917 lt_prog_compiler_static='-Bstatic' 7918 else 7919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7920 fi 7921 ;; 7922 7923 mingw* | cygwin* | pw32* | os2* | cegcc*) 7924 # This hack is so that the source file can tell whether it is being 7925 # built for inclusion in a dll (and should export symbols for example). 7926 lt_prog_compiler_pic='-DDLL_EXPORT' 7927 ;; 7928 7929 hpux9* | hpux10* | hpux11*) 7930 lt_prog_compiler_wl='-Wl,' 7931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7932 # not for PA HP-UX. 7933 case $host_cpu in 7934 hppa*64*|ia64*) 7935 # +Z the default 7936 ;; 7937 *) 7938 lt_prog_compiler_pic='+Z' 7939 ;; 7940 esac 7941 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7942 lt_prog_compiler_static='${wl}-a ${wl}archive' 7943 ;; 7944 7945 irix5* | irix6* | nonstopux*) 7946 lt_prog_compiler_wl='-Wl,' 7947 # PIC (with -KPIC) is the default. 7948 lt_prog_compiler_static='-non_shared' 7949 ;; 7950 7951 linux* | k*bsd*-gnu) 7952 case $cc_basename in 7953 # old Intel for x86_64 which still supported -KPIC. 7954 ecc*) 7955 lt_prog_compiler_wl='-Wl,' 7956 lt_prog_compiler_pic='-KPIC' 7957 lt_prog_compiler_static='-static' 7958 ;; 7959 # icc used to be incompatible with GCC. 7960 # ICC 10 doesn't accept -KPIC any more. 7961 icc* | ifort*) 7962 lt_prog_compiler_wl='-Wl,' 7963 lt_prog_compiler_pic='-fPIC' 7964 lt_prog_compiler_static='-static' 7965 ;; 7966 # Lahey Fortran 8.1. 7967 lf95*) 7968 lt_prog_compiler_wl='-Wl,' 7969 lt_prog_compiler_pic='--shared' 7970 lt_prog_compiler_static='--static' 7971 ;; 7972 pgcc* | pgf77* | pgf90* | pgf95*) 7973 # Portland Group compilers (*not* the Pentium gcc compiler, 7974 # which looks to be a dead project) 7975 lt_prog_compiler_wl='-Wl,' 7976 lt_prog_compiler_pic='-fpic' 7977 lt_prog_compiler_static='-Bstatic' 7978 ;; 7979 ccc*) 7980 lt_prog_compiler_wl='-Wl,' 7981 # All Alpha code is PIC. 7982 lt_prog_compiler_static='-non_shared' 7983 ;; 7984 xl*) 7985 # IBM XL C 8.0/Fortran 10.1 on PPC 7986 lt_prog_compiler_wl='-Wl,' 7987 lt_prog_compiler_pic='-qpic' 7988 lt_prog_compiler_static='-qstaticlink' 7989 ;; 7990 *) 7991 case `$CC -V 2>&1 | sed 5q` in 7992 *Sun\ C*) 7993 # Sun C 5.9 7994 lt_prog_compiler_pic='-KPIC' 7995 lt_prog_compiler_static='-Bstatic' 7996 lt_prog_compiler_wl='-Wl,' 7997 ;; 7998 *Sun\ F*) 7999 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8000 lt_prog_compiler_pic='-KPIC' 8001 lt_prog_compiler_static='-Bstatic' 8002 lt_prog_compiler_wl='' 8003 ;; 8004 esac 8005 ;; 8006 esac 8007 ;; 8008 8009 newsos6) 8010 lt_prog_compiler_pic='-KPIC' 8011 lt_prog_compiler_static='-Bstatic' 8012 ;; 8013 8014 *nto* | *qnx*) 8015 # QNX uses GNU C++, but need to define -shared option too, otherwise 8016 # it will coredump. 8017 lt_prog_compiler_pic='-fPIC -shared' 8018 ;; 8019 8020 osf3* | osf4* | osf5*) 8021 lt_prog_compiler_wl='-Wl,' 8022 # All OSF/1 code is PIC. 8023 lt_prog_compiler_static='-non_shared' 8024 ;; 8025 8026 rdos*) 8027 lt_prog_compiler_static='-non_shared' 8028 ;; 8029 8030 solaris*) 8031 lt_prog_compiler_pic='-KPIC' 8032 lt_prog_compiler_static='-Bstatic' 8033 case $cc_basename in 8034 f77* | f90* | f95*) 8035 lt_prog_compiler_wl='-Qoption ld ';; 8036 *) 8037 lt_prog_compiler_wl='-Wl,';; 8038 esac 8039 ;; 8040 8041 sunos4*) 8042 lt_prog_compiler_wl='-Qoption ld ' 8043 lt_prog_compiler_pic='-PIC' 8044 lt_prog_compiler_static='-Bstatic' 8045 ;; 8046 8047 sysv4 | sysv4.2uw2* | sysv4.3*) 8048 lt_prog_compiler_wl='-Wl,' 8049 lt_prog_compiler_pic='-KPIC' 8050 lt_prog_compiler_static='-Bstatic' 8051 ;; 8052 8053 sysv4*MP*) 8054 if test -d /usr/nec ;then 8055 lt_prog_compiler_pic='-Kconform_pic' 8056 lt_prog_compiler_static='-Bstatic' 8057 fi 8058 ;; 8059 8060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8061 lt_prog_compiler_wl='-Wl,' 8062 lt_prog_compiler_pic='-KPIC' 8063 lt_prog_compiler_static='-Bstatic' 8064 ;; 8065 8066 unicos*) 8067 lt_prog_compiler_wl='-Wl,' 8068 lt_prog_compiler_can_build_shared=no 8069 ;; 8070 8071 uts4*) 8072 lt_prog_compiler_pic='-pic' 8073 lt_prog_compiler_static='-Bstatic' 8074 ;; 8075 8076 *) 8077 lt_prog_compiler_can_build_shared=no 8078 ;; 8079 esac 8080 fi 8081 8082case $host_os in 8083 # For platforms which do not support PIC, -DPIC is meaningless: 8084 *djgpp*) 8085 lt_prog_compiler_pic= 8086 ;; 8087 *) 8088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8089 ;; 8090esac 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8092$as_echo "$lt_prog_compiler_pic" >&6; } 8093 8094 8095 8096 8097 8098 8099# 8100# Check to make sure the PIC flag actually works. 8101# 8102if test -n "$lt_prog_compiler_pic"; then 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8104$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8105if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 lt_cv_prog_compiler_pic_works=no 8109 ac_outfile=conftest.$ac_objext 8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8112 # Insert the option either (1) after the last *FLAGS variable, or 8113 # (2) before a word containing "conftest.", or (3) at the end. 8114 # Note that $ac_compile itself does not contain backslashes and begins 8115 # with a dollar sign (not a hyphen), so the echo should work correctly. 8116 # The option is referenced via a variable to avoid confusing sed. 8117 lt_compile=`echo "$ac_compile" | $SED \ 8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8120 -e 's:$: $lt_compiler_flag:'` 8121 (eval echo "\"\$as_me:8121: $lt_compile\"" >&5) 8122 (eval "$lt_compile" 2>conftest.err) 8123 ac_status=$? 8124 cat conftest.err >&5 8125 echo "$as_me:8125: \$? = $ac_status" >&5 8126 if (exit $ac_status) && test -s "$ac_outfile"; then 8127 # The compiler can only warn and ignore the option if not recognized 8128 # So say no if there are warnings other than the usual output. 8129 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8132 lt_cv_prog_compiler_pic_works=yes 8133 fi 8134 fi 8135 $RM conftest* 8136 8137fi 8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8139$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8140 8141if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8142 case $lt_prog_compiler_pic in 8143 "" | " "*) ;; 8144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8145 esac 8146else 8147 lt_prog_compiler_pic= 8148 lt_prog_compiler_can_build_shared=no 8149fi 8150 8151fi 8152 8153 8154 8155 8156 8157 8158# 8159# Check to make sure the static flag actually works. 8160# 8161wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8163$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8164if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 lt_cv_prog_compiler_static_works=no 8168 save_LDFLAGS="$LDFLAGS" 8169 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8170 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8171 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8172 # The linker can only warn and ignore the option if not recognized 8173 # So say no if there are warnings 8174 if test -s conftest.err; then 8175 # Append any errors to the config.log. 8176 cat conftest.err 1>&5 8177 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8179 if diff conftest.exp conftest.er2 >/dev/null; then 8180 lt_cv_prog_compiler_static_works=yes 8181 fi 8182 else 8183 lt_cv_prog_compiler_static_works=yes 8184 fi 8185 fi 8186 $RM -r conftest* 8187 LDFLAGS="$save_LDFLAGS" 8188 8189fi 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8191$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8192 8193if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8194 : 8195else 8196 lt_prog_compiler_static= 8197fi 8198 8199 8200 8201 8202 8203 8204 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8206$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8207if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 lt_cv_prog_compiler_c_o=no 8211 $RM -r conftest 2>/dev/null 8212 mkdir conftest 8213 cd conftest 8214 mkdir out 8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8216 8217 lt_compiler_flag="-o out/conftest2.$ac_objext" 8218 # Insert the option either (1) after the last *FLAGS variable, or 8219 # (2) before a word containing "conftest.", or (3) at the end. 8220 # Note that $ac_compile itself does not contain backslashes and begins 8221 # with a dollar sign (not a hyphen), so the echo should work correctly. 8222 lt_compile=`echo "$ac_compile" | $SED \ 8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8225 -e 's:$: $lt_compiler_flag:'` 8226 (eval echo "\"\$as_me:8226: $lt_compile\"" >&5) 8227 (eval "$lt_compile" 2>out/conftest.err) 8228 ac_status=$? 8229 cat out/conftest.err >&5 8230 echo "$as_me:8230: \$? = $ac_status" >&5 8231 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8232 then 8233 # The compiler can only warn and ignore the option if not recognized 8234 # So say no if there are warnings 8235 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8238 lt_cv_prog_compiler_c_o=yes 8239 fi 8240 fi 8241 chmod u+w . 2>&5 8242 $RM conftest* 8243 # SGI C++ compiler will create directory out/ii_files/ for 8244 # template instantiation 8245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8246 $RM out/* && rmdir out 8247 cd .. 8248 $RM -r conftest 8249 $RM conftest* 8250 8251fi 8252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8253$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8254 8255 8256 8257 8258 8259 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8262if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8263 $as_echo_n "(cached) " >&6 8264else 8265 lt_cv_prog_compiler_c_o=no 8266 $RM -r conftest 2>/dev/null 8267 mkdir conftest 8268 cd conftest 8269 mkdir out 8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8271 8272 lt_compiler_flag="-o out/conftest2.$ac_objext" 8273 # Insert the option either (1) after the last *FLAGS variable, or 8274 # (2) before a word containing "conftest.", or (3) at the end. 8275 # Note that $ac_compile itself does not contain backslashes and begins 8276 # with a dollar sign (not a hyphen), so the echo should work correctly. 8277 lt_compile=`echo "$ac_compile" | $SED \ 8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8280 -e 's:$: $lt_compiler_flag:'` 8281 (eval echo "\"\$as_me:8281: $lt_compile\"" >&5) 8282 (eval "$lt_compile" 2>out/conftest.err) 8283 ac_status=$? 8284 cat out/conftest.err >&5 8285 echo "$as_me:8285: \$? = $ac_status" >&5 8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8287 then 8288 # The compiler can only warn and ignore the option if not recognized 8289 # So say no if there are warnings 8290 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8293 lt_cv_prog_compiler_c_o=yes 8294 fi 8295 fi 8296 chmod u+w . 2>&5 8297 $RM conftest* 8298 # SGI C++ compiler will create directory out/ii_files/ for 8299 # template instantiation 8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8301 $RM out/* && rmdir out 8302 cd .. 8303 $RM -r conftest 8304 $RM conftest* 8305 8306fi 8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8308$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8309 8310 8311 8312 8313hard_links="nottested" 8314if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8315 # do not overwrite the value of need_locks provided by the user 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8317$as_echo_n "checking if we can lock with hard links... " >&6; } 8318 hard_links=yes 8319 $RM conftest* 8320 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8321 touch conftest.a 8322 ln conftest.a conftest.b 2>&5 || hard_links=no 8323 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8325$as_echo "$hard_links" >&6; } 8326 if test "$hard_links" = no; then 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8328$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8329 need_locks=warn 8330 fi 8331else 8332 need_locks=no 8333fi 8334 8335 8336 8337 8338 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8341$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8342 8343 runpath_var= 8344 allow_undefined_flag= 8345 always_export_symbols=no 8346 archive_cmds= 8347 archive_expsym_cmds= 8348 compiler_needs_object=no 8349 enable_shared_with_static_runtimes=no 8350 export_dynamic_flag_spec= 8351 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8352 hardcode_automatic=no 8353 hardcode_direct=no 8354 hardcode_direct_absolute=no 8355 hardcode_libdir_flag_spec= 8356 hardcode_libdir_flag_spec_ld= 8357 hardcode_libdir_separator= 8358 hardcode_minus_L=no 8359 hardcode_shlibpath_var=unsupported 8360 inherit_rpath=no 8361 link_all_deplibs=unknown 8362 module_cmds= 8363 module_expsym_cmds= 8364 old_archive_from_new_cmds= 8365 old_archive_from_expsyms_cmds= 8366 thread_safe_flag_spec= 8367 whole_archive_flag_spec= 8368 # include_expsyms should be a list of space-separated symbols to be *always* 8369 # included in the symbol list 8370 include_expsyms= 8371 # exclude_expsyms can be an extended regexp of symbols to exclude 8372 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8374 # as well as any symbol that contains `d'. 8375 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8377 # platforms (ab)use it in PIC code, but their linkers get confused if 8378 # the symbol is explicitly referenced. Since portable code cannot 8379 # rely on this symbol name, it's probably fine to never include it in 8380 # preloaded symbol tables. 8381 # Exclude shared library initialization/finalization symbols. 8382 extract_expsyms_cmds= 8383 8384 case $host_os in 8385 cygwin* | mingw* | pw32* | cegcc*) 8386 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8387 # When not using gcc, we currently assume that we are using 8388 # Microsoft Visual C++. 8389 if test "$GCC" != yes; then 8390 with_gnu_ld=no 8391 fi 8392 ;; 8393 interix*) 8394 # we just hope/assume this is gcc and not c89 (= MSVC++) 8395 with_gnu_ld=yes 8396 ;; 8397 openbsd*) 8398 with_gnu_ld=no 8399 ;; 8400 esac 8401 8402 ld_shlibs=yes 8403 if test "$with_gnu_ld" = yes; then 8404 # If archive_cmds runs LD, not CC, wlarc should be empty 8405 wlarc='${wl}' 8406 8407 # Set some defaults for GNU ld with shared library support. These 8408 # are reset later if shared libraries are not supported. Putting them 8409 # here allows them to be overridden if necessary. 8410 runpath_var=LD_RUN_PATH 8411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8412 export_dynamic_flag_spec='${wl}--export-dynamic' 8413 # ancient GNU ld didn't support --whole-archive et. al. 8414 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8415 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8416 else 8417 whole_archive_flag_spec= 8418 fi 8419 supports_anon_versioning=no 8420 case `$LD -v 2>&1` in 8421 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8422 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8423 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8424 *\ 2.11.*) ;; # other 2.11 versions 8425 *) supports_anon_versioning=yes ;; 8426 esac 8427 8428 # See if GNU ld supports shared libraries. 8429 case $host_os in 8430 aix[3-9]*) 8431 # On AIX/PPC, the GNU linker is very broken 8432 if test "$host_cpu" != ia64; then 8433 ld_shlibs=no 8434 cat <<_LT_EOF 1>&2 8435 8436*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8437*** to be unable to reliably create shared libraries on AIX. 8438*** Therefore, libtool is disabling shared libraries support. If you 8439*** really care for shared libraries, you may want to modify your PATH 8440*** so that a non-GNU linker is found, and then restart. 8441 8442_LT_EOF 8443 fi 8444 ;; 8445 8446 amigaos*) 8447 case $host_cpu in 8448 powerpc) 8449 # see comment about AmigaOS4 .so support 8450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8451 archive_expsym_cmds='' 8452 ;; 8453 m68k) 8454 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)' 8455 hardcode_libdir_flag_spec='-L$libdir' 8456 hardcode_minus_L=yes 8457 ;; 8458 esac 8459 ;; 8460 8461 beos*) 8462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8463 allow_undefined_flag=unsupported 8464 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8465 # support --undefined. This deserves some investigation. FIXME 8466 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8467 else 8468 ld_shlibs=no 8469 fi 8470 ;; 8471 8472 cygwin* | mingw* | pw32* | cegcc*) 8473 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8474 # as there is no search path for DLLs. 8475 hardcode_libdir_flag_spec='-L$libdir' 8476 allow_undefined_flag=unsupported 8477 always_export_symbols=no 8478 enable_shared_with_static_runtimes=yes 8479 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8480 8481 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8483 # If the export-symbols file already is a .def file (1st line 8484 # is EXPORTS), use it as is; otherwise, prepend... 8485 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8486 cp $export_symbols $output_objdir/$soname.def; 8487 else 8488 echo EXPORTS > $output_objdir/$soname.def; 8489 cat $export_symbols >> $output_objdir/$soname.def; 8490 fi~ 8491 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8492 else 8493 ld_shlibs=no 8494 fi 8495 ;; 8496 8497 interix[3-9]*) 8498 hardcode_direct=no 8499 hardcode_shlibpath_var=no 8500 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8501 export_dynamic_flag_spec='${wl}-E' 8502 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8503 # Instead, shared libraries are loaded at an image base (0x10000000 by 8504 # default) and relocated if they conflict, which is a slow very memory 8505 # consuming and fragmenting process. To avoid this, we pick a random, 8506 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8507 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8508 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8509 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' 8510 ;; 8511 8512 gnu* | linux* | tpf* | k*bsd*-gnu) 8513 tmp_diet=no 8514 if test "$host_os" = linux-dietlibc; then 8515 case $cc_basename in 8516 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8517 esac 8518 fi 8519 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8520 && test "$tmp_diet" = no 8521 then 8522 tmp_addflag= 8523 tmp_sharedflag='-shared' 8524 case $cc_basename,$host_cpu in 8525 pgcc*) # Portland Group C compiler 8526 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8527 tmp_addflag=' $pic_flag' 8528 ;; 8529 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8530 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8531 tmp_addflag=' $pic_flag -Mnomain' ;; 8532 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8533 tmp_addflag=' -i_dynamic' ;; 8534 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8535 tmp_addflag=' -i_dynamic -nofor_main' ;; 8536 ifc* | ifort*) # Intel Fortran compiler 8537 tmp_addflag=' -nofor_main' ;; 8538 lf95*) # Lahey Fortran 8.1 8539 whole_archive_flag_spec= 8540 tmp_sharedflag='--shared' ;; 8541 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8542 tmp_sharedflag='-qmkshrobj' 8543 tmp_addflag= ;; 8544 esac 8545 case `$CC -V 2>&1 | sed 5q` in 8546 *Sun\ C*) # Sun C 5.9 8547 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8548 compiler_needs_object=yes 8549 tmp_sharedflag='-G' ;; 8550 *Sun\ F*) # Sun Fortran 8.3 8551 tmp_sharedflag='-G' ;; 8552 esac 8553 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8554 8555 if test "x$supports_anon_versioning" = xyes; then 8556 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8558 echo "local: *; };" >> $output_objdir/$libname.ver~ 8559 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8560 fi 8561 8562 case $cc_basename in 8563 xlf*) 8564 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8565 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8566 hardcode_libdir_flag_spec= 8567 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8568 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8569 if test "x$supports_anon_versioning" = xyes; then 8570 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8571 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8572 echo "local: *; };" >> $output_objdir/$libname.ver~ 8573 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8574 fi 8575 ;; 8576 esac 8577 else 8578 ld_shlibs=no 8579 fi 8580 ;; 8581 8582 netbsd*) 8583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8584 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8585 wlarc= 8586 else 8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8589 fi 8590 ;; 8591 8592 solaris*) 8593 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8594 ld_shlibs=no 8595 cat <<_LT_EOF 1>&2 8596 8597*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8598*** create shared libraries on Solaris systems. Therefore, libtool 8599*** is disabling shared libraries support. We urge you to upgrade GNU 8600*** binutils to release 2.9.1 or newer. Another option is to modify 8601*** your PATH or compiler configuration so that the native linker is 8602*** used, and then restart. 8603 8604_LT_EOF 8605 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8608 else 8609 ld_shlibs=no 8610 fi 8611 ;; 8612 8613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8614 case `$LD -v 2>&1` in 8615 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8616 ld_shlibs=no 8617 cat <<_LT_EOF 1>&2 8618 8619*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8620*** reliably create shared libraries on SCO systems. Therefore, libtool 8621*** is disabling shared libraries support. We urge you to upgrade GNU 8622*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8623*** your PATH or compiler configuration so that the native linker is 8624*** used, and then restart. 8625 8626_LT_EOF 8627 ;; 8628 *) 8629 # For security reasons, it is highly recommended that you always 8630 # use absolute paths for naming shared libraries, and exclude the 8631 # DT_RUNPATH tag from executables and libraries. But doing so 8632 # requires that you compile everything twice, which is a pain. 8633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8637 else 8638 ld_shlibs=no 8639 fi 8640 ;; 8641 esac 8642 ;; 8643 8644 sunos4*) 8645 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8646 wlarc= 8647 hardcode_direct=yes 8648 hardcode_shlibpath_var=no 8649 ;; 8650 8651 *) 8652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8654 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8655 else 8656 ld_shlibs=no 8657 fi 8658 ;; 8659 esac 8660 8661 if test "$ld_shlibs" = no; then 8662 runpath_var= 8663 hardcode_libdir_flag_spec= 8664 export_dynamic_flag_spec= 8665 whole_archive_flag_spec= 8666 fi 8667 else 8668 # PORTME fill in a description of your system's linker (not GNU ld) 8669 case $host_os in 8670 aix3*) 8671 allow_undefined_flag=unsupported 8672 always_export_symbols=yes 8673 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' 8674 # Note: this linker hardcodes the directories in LIBPATH if there 8675 # are no directories specified by -L. 8676 hardcode_minus_L=yes 8677 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8678 # Neither direct hardcoding nor static linking is supported with a 8679 # broken collect2. 8680 hardcode_direct=unsupported 8681 fi 8682 ;; 8683 8684 aix[4-9]*) 8685 if test "$host_cpu" = ia64; then 8686 # On IA64, the linker does run time linking by default, so we don't 8687 # have to do anything special. 8688 aix_use_runtimelinking=no 8689 exp_sym_flag='-Bexport' 8690 no_entry_flag="" 8691 else 8692 # If we're using GNU nm, then we don't want the "-C" option. 8693 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8695 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8696 else 8697 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' 8698 fi 8699 aix_use_runtimelinking=no 8700 8701 # Test if we are trying to use run time linking or normal 8702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8703 # need to do runtime linking. 8704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8705 for ld_flag in $LDFLAGS; do 8706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8707 aix_use_runtimelinking=yes 8708 break 8709 fi 8710 done 8711 ;; 8712 esac 8713 8714 exp_sym_flag='-bexport' 8715 no_entry_flag='-bnoentry' 8716 fi 8717 8718 # When large executables or shared objects are built, AIX ld can 8719 # have problems creating the table of contents. If linking a library 8720 # or program results in "error TOC overflow" add -mminimal-toc to 8721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8723 8724 archive_cmds='' 8725 hardcode_direct=yes 8726 hardcode_direct_absolute=yes 8727 hardcode_libdir_separator=':' 8728 link_all_deplibs=yes 8729 file_list_spec='${wl}-f,' 8730 8731 if test "$GCC" = yes; then 8732 case $host_os in aix4.[012]|aix4.[012].*) 8733 # We only want to do this on AIX 4.2 and lower, the check 8734 # below for broken collect2 doesn't work under 4.3+ 8735 collect2name=`${CC} -print-prog-name=collect2` 8736 if test -f "$collect2name" && 8737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8738 then 8739 # We have reworked collect2 8740 : 8741 else 8742 # We have old collect2 8743 hardcode_direct=unsupported 8744 # It fails to find uninstalled libraries when the uninstalled 8745 # path is not listed in the libpath. Setting hardcode_minus_L 8746 # to unsupported forces relinking 8747 hardcode_minus_L=yes 8748 hardcode_libdir_flag_spec='-L$libdir' 8749 hardcode_libdir_separator= 8750 fi 8751 ;; 8752 esac 8753 shared_flag='-shared' 8754 if test "$aix_use_runtimelinking" = yes; then 8755 shared_flag="$shared_flag "'${wl}-G' 8756 fi 8757 else 8758 # not using gcc 8759 if test "$host_cpu" = ia64; then 8760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8761 # chokes on -Wl,-G. The following line is correct: 8762 shared_flag='-G' 8763 else 8764 if test "$aix_use_runtimelinking" = yes; then 8765 shared_flag='${wl}-G' 8766 else 8767 shared_flag='${wl}-bM:SRE' 8768 fi 8769 fi 8770 fi 8771 8772 export_dynamic_flag_spec='${wl}-bexpall' 8773 # It seems that -bexpall does not export symbols beginning with 8774 # underscore (_), so it is better to generate a list of symbols to export. 8775 always_export_symbols=yes 8776 if test "$aix_use_runtimelinking" = yes; then 8777 # Warning - without using the other runtime loading flags (-brtl), 8778 # -berok will link without error, but may produce a broken library. 8779 allow_undefined_flag='-berok' 8780 # Determine the default libpath from the value encoded in an 8781 # empty executable. 8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8783/* end confdefs.h. */ 8784 8785int 8786main () 8787{ 8788 8789 ; 8790 return 0; 8791} 8792_ACEOF 8793if ac_fn_c_try_link "$LINENO"; then : 8794 8795lt_aix_libpath_sed=' 8796 /Import File Strings/,/^$/ { 8797 /^0/ { 8798 s/^0 *\(.*\)$/\1/ 8799 p 8800 } 8801 }' 8802aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8803# Check for a 64-bit object if we didn't find anything. 8804if test -z "$aix_libpath"; then 8805 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8806fi 8807fi 8808rm -f core conftest.err conftest.$ac_objext \ 8809 conftest$ac_exeext conftest.$ac_ext 8810if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8811 8812 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8813 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8814 else 8815 if test "$host_cpu" = ia64; then 8816 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8817 allow_undefined_flag="-z nodefs" 8818 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" 8819 else 8820 # Determine the default libpath from the value encoded in an 8821 # empty executable. 8822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8823/* end confdefs.h. */ 8824 8825int 8826main () 8827{ 8828 8829 ; 8830 return 0; 8831} 8832_ACEOF 8833if ac_fn_c_try_link "$LINENO"; then : 8834 8835lt_aix_libpath_sed=' 8836 /Import File Strings/,/^$/ { 8837 /^0/ { 8838 s/^0 *\(.*\)$/\1/ 8839 p 8840 } 8841 }' 8842aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8843# Check for a 64-bit object if we didn't find anything. 8844if test -z "$aix_libpath"; then 8845 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8846fi 8847fi 8848rm -f core conftest.err conftest.$ac_objext \ 8849 conftest$ac_exeext conftest.$ac_ext 8850if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8851 8852 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8853 # Warning - without using the other run time loading flags, 8854 # -berok will link without error, but may produce a broken library. 8855 no_undefined_flag=' ${wl}-bernotok' 8856 allow_undefined_flag=' ${wl}-berok' 8857 # Exported symbols can be pulled into shared objects from archives 8858 whole_archive_flag_spec='$convenience' 8859 archive_cmds_need_lc=yes 8860 # This is similar to how AIX traditionally builds its shared libraries. 8861 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' 8862 fi 8863 fi 8864 ;; 8865 8866 amigaos*) 8867 case $host_cpu in 8868 powerpc) 8869 # see comment about AmigaOS4 .so support 8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8871 archive_expsym_cmds='' 8872 ;; 8873 m68k) 8874 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)' 8875 hardcode_libdir_flag_spec='-L$libdir' 8876 hardcode_minus_L=yes 8877 ;; 8878 esac 8879 ;; 8880 8881 bsdi[45]*) 8882 export_dynamic_flag_spec=-rdynamic 8883 ;; 8884 8885 cygwin* | mingw* | pw32* | cegcc*) 8886 # When not using gcc, we currently assume that we are using 8887 # Microsoft Visual C++. 8888 # hardcode_libdir_flag_spec is actually meaningless, as there is 8889 # no search path for DLLs. 8890 hardcode_libdir_flag_spec=' ' 8891 allow_undefined_flag=unsupported 8892 # Tell ltmain to make .lib files, not .a files. 8893 libext=lib 8894 # Tell ltmain to make .dll files, not .so files. 8895 shrext_cmds=".dll" 8896 # FIXME: Setting linknames here is a bad hack. 8897 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8898 # The linker will automatically build a .lib file if we build a DLL. 8899 old_archive_from_new_cmds='true' 8900 # FIXME: Should let the user specify the lib program. 8901 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8902 fix_srcfile_path='`cygpath -w "$srcfile"`' 8903 enable_shared_with_static_runtimes=yes 8904 ;; 8905 8906 darwin* | rhapsody*) 8907 8908 8909 archive_cmds_need_lc=no 8910 hardcode_direct=no 8911 hardcode_automatic=yes 8912 hardcode_shlibpath_var=unsupported 8913 whole_archive_flag_spec='' 8914 link_all_deplibs=yes 8915 allow_undefined_flag="$_lt_dar_allow_undefined" 8916 case $cc_basename in 8917 ifort*) _lt_dar_can_shared=yes ;; 8918 *) _lt_dar_can_shared=$GCC ;; 8919 esac 8920 if test "$_lt_dar_can_shared" = "yes"; then 8921 output_verbose_link_cmd=echo 8922 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8923 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8924 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}" 8925 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}" 8926 8927 else 8928 ld_shlibs=no 8929 fi 8930 8931 ;; 8932 8933 dgux*) 8934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8935 hardcode_libdir_flag_spec='-L$libdir' 8936 hardcode_shlibpath_var=no 8937 ;; 8938 8939 freebsd1*) 8940 ld_shlibs=no 8941 ;; 8942 8943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8944 # support. Future versions do this automatically, but an explicit c++rt0.o 8945 # does not break anything, and helps significantly (at the cost of a little 8946 # extra space). 8947 freebsd2.2*) 8948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8949 hardcode_libdir_flag_spec='-R$libdir' 8950 hardcode_direct=yes 8951 hardcode_shlibpath_var=no 8952 ;; 8953 8954 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8955 freebsd2*) 8956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8957 hardcode_direct=yes 8958 hardcode_minus_L=yes 8959 hardcode_shlibpath_var=no 8960 ;; 8961 8962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8963 freebsd* | dragonfly*) 8964 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8965 hardcode_libdir_flag_spec='-R$libdir' 8966 hardcode_direct=yes 8967 hardcode_shlibpath_var=no 8968 ;; 8969 8970 hpux9*) 8971 if test "$GCC" = yes; then 8972 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' 8973 else 8974 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' 8975 fi 8976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8977 hardcode_libdir_separator=: 8978 hardcode_direct=yes 8979 8980 # hardcode_minus_L: Not really in the search PATH, 8981 # but as the default location of the library. 8982 hardcode_minus_L=yes 8983 export_dynamic_flag_spec='${wl}-E' 8984 ;; 8985 8986 hpux10*) 8987 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8988 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8989 else 8990 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8991 fi 8992 if test "$with_gnu_ld" = no; then 8993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8994 hardcode_libdir_flag_spec_ld='+b $libdir' 8995 hardcode_libdir_separator=: 8996 hardcode_direct=yes 8997 hardcode_direct_absolute=yes 8998 export_dynamic_flag_spec='${wl}-E' 8999 # hardcode_minus_L: Not really in the search PATH, 9000 # but as the default location of the library. 9001 hardcode_minus_L=yes 9002 fi 9003 ;; 9004 9005 hpux11*) 9006 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9007 case $host_cpu in 9008 hppa*64*) 9009 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9010 ;; 9011 ia64*) 9012 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9013 ;; 9014 *) 9015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9016 ;; 9017 esac 9018 else 9019 case $host_cpu in 9020 hppa*64*) 9021 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9022 ;; 9023 ia64*) 9024 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9025 ;; 9026 *) 9027 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9028 ;; 9029 esac 9030 fi 9031 if test "$with_gnu_ld" = no; then 9032 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9033 hardcode_libdir_separator=: 9034 9035 case $host_cpu in 9036 hppa*64*|ia64*) 9037 hardcode_direct=no 9038 hardcode_shlibpath_var=no 9039 ;; 9040 *) 9041 hardcode_direct=yes 9042 hardcode_direct_absolute=yes 9043 export_dynamic_flag_spec='${wl}-E' 9044 9045 # hardcode_minus_L: Not really in the search PATH, 9046 # but as the default location of the library. 9047 hardcode_minus_L=yes 9048 ;; 9049 esac 9050 fi 9051 ;; 9052 9053 irix5* | irix6* | nonstopux*) 9054 if test "$GCC" = yes; then 9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9056 # Try to use the -exported_symbol ld option, if it does not 9057 # work, assume that -exports_file does not work either and 9058 # implicitly export all symbols. 9059 save_LDFLAGS="$LDFLAGS" 9060 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063int foo(void) {} 9064_ACEOF 9065if ac_fn_c_try_link "$LINENO"; then : 9066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9067 9068fi 9069rm -f core conftest.err conftest.$ac_objext \ 9070 conftest$ac_exeext conftest.$ac_ext 9071 LDFLAGS="$save_LDFLAGS" 9072 else 9073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9075 fi 9076 archive_cmds_need_lc='no' 9077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9078 hardcode_libdir_separator=: 9079 inherit_rpath=yes 9080 link_all_deplibs=yes 9081 ;; 9082 9083 netbsd*) 9084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9086 else 9087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9088 fi 9089 hardcode_libdir_flag_spec='-R$libdir' 9090 hardcode_direct=yes 9091 hardcode_shlibpath_var=no 9092 ;; 9093 9094 newsos6) 9095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9096 hardcode_direct=yes 9097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9098 hardcode_libdir_separator=: 9099 hardcode_shlibpath_var=no 9100 ;; 9101 9102 *nto* | *qnx*) 9103 ;; 9104 9105 openbsd*) 9106 if test -f /usr/libexec/ld.so; then 9107 hardcode_direct=yes 9108 hardcode_shlibpath_var=no 9109 hardcode_direct_absolute=yes 9110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9112 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9113 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9114 export_dynamic_flag_spec='${wl}-E' 9115 else 9116 case $host_os in 9117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9119 hardcode_libdir_flag_spec='-R$libdir' 9120 ;; 9121 *) 9122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9123 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9124 ;; 9125 esac 9126 fi 9127 else 9128 ld_shlibs=no 9129 fi 9130 ;; 9131 9132 os2*) 9133 hardcode_libdir_flag_spec='-L$libdir' 9134 hardcode_minus_L=yes 9135 allow_undefined_flag=unsupported 9136 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' 9137 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9138 ;; 9139 9140 osf3*) 9141 if test "$GCC" = yes; then 9142 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9143 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9144 else 9145 allow_undefined_flag=' -expect_unresolved \*' 9146 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9147 fi 9148 archive_cmds_need_lc='no' 9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9150 hardcode_libdir_separator=: 9151 ;; 9152 9153 osf4* | osf5*) # as osf3* with the addition of -msym flag 9154 if test "$GCC" = yes; then 9155 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9156 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9158 else 9159 allow_undefined_flag=' -expect_unresolved \*' 9160 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9161 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~ 9162 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9163 9164 # Both c and cxx compiler support -rpath directly 9165 hardcode_libdir_flag_spec='-rpath $libdir' 9166 fi 9167 archive_cmds_need_lc='no' 9168 hardcode_libdir_separator=: 9169 ;; 9170 9171 solaris*) 9172 no_undefined_flag=' -z defs' 9173 if test "$GCC" = yes; then 9174 wlarc='${wl}' 9175 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9177 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9178 else 9179 case `$CC -V 2>&1` in 9180 *"Compilers 5.0"*) 9181 wlarc='' 9182 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9184 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9185 ;; 9186 *) 9187 wlarc='${wl}' 9188 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9189 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9190 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9191 ;; 9192 esac 9193 fi 9194 hardcode_libdir_flag_spec='-R$libdir' 9195 hardcode_shlibpath_var=no 9196 case $host_os in 9197 solaris2.[0-5] | solaris2.[0-5].*) ;; 9198 *) 9199 # The compiler driver will combine and reorder linker options, 9200 # but understands `-z linker_flag'. GCC discards it without `$wl', 9201 # but is careful enough not to reorder. 9202 # Supported since Solaris 2.6 (maybe 2.5.1?) 9203 if test "$GCC" = yes; then 9204 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9205 else 9206 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9207 fi 9208 ;; 9209 esac 9210 link_all_deplibs=yes 9211 ;; 9212 9213 sunos4*) 9214 if test "x$host_vendor" = xsequent; then 9215 # Use $CC to link under sequent, because it throws in some extra .o 9216 # files that make .init and .fini sections work. 9217 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9218 else 9219 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9220 fi 9221 hardcode_libdir_flag_spec='-L$libdir' 9222 hardcode_direct=yes 9223 hardcode_minus_L=yes 9224 hardcode_shlibpath_var=no 9225 ;; 9226 9227 sysv4) 9228 case $host_vendor in 9229 sni) 9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9231 hardcode_direct=yes # is this really true??? 9232 ;; 9233 siemens) 9234 ## LD is ld it makes a PLAMLIB 9235 ## CC just makes a GrossModule. 9236 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9237 reload_cmds='$CC -r -o $output$reload_objs' 9238 hardcode_direct=no 9239 ;; 9240 motorola) 9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9242 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9243 ;; 9244 esac 9245 runpath_var='LD_RUN_PATH' 9246 hardcode_shlibpath_var=no 9247 ;; 9248 9249 sysv4.3*) 9250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9251 hardcode_shlibpath_var=no 9252 export_dynamic_flag_spec='-Bexport' 9253 ;; 9254 9255 sysv4*MP*) 9256 if test -d /usr/nec; then 9257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9258 hardcode_shlibpath_var=no 9259 runpath_var=LD_RUN_PATH 9260 hardcode_runpath_var=yes 9261 ld_shlibs=yes 9262 fi 9263 ;; 9264 9265 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9266 no_undefined_flag='${wl}-z,text' 9267 archive_cmds_need_lc=no 9268 hardcode_shlibpath_var=no 9269 runpath_var='LD_RUN_PATH' 9270 9271 if test "$GCC" = yes; then 9272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9274 else 9275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9277 fi 9278 ;; 9279 9280 sysv5* | sco3.2v5* | sco5v6*) 9281 # Note: We can NOT use -z defs as we might desire, because we do not 9282 # link with -lc, and that would cause any symbols used from libc to 9283 # always be unresolved, which means just about no library would 9284 # ever link correctly. If we're not using GNU ld we use -z text 9285 # though, which does catch some bad symbols but isn't as heavy-handed 9286 # as -z defs. 9287 no_undefined_flag='${wl}-z,text' 9288 allow_undefined_flag='${wl}-z,nodefs' 9289 archive_cmds_need_lc=no 9290 hardcode_shlibpath_var=no 9291 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9292 hardcode_libdir_separator=':' 9293 link_all_deplibs=yes 9294 export_dynamic_flag_spec='${wl}-Bexport' 9295 runpath_var='LD_RUN_PATH' 9296 9297 if test "$GCC" = yes; then 9298 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9299 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9300 else 9301 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9302 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9303 fi 9304 ;; 9305 9306 uts4*) 9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9308 hardcode_libdir_flag_spec='-L$libdir' 9309 hardcode_shlibpath_var=no 9310 ;; 9311 9312 *) 9313 ld_shlibs=no 9314 ;; 9315 esac 9316 9317 if test x$host_vendor = xsni; then 9318 case $host in 9319 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9320 export_dynamic_flag_spec='${wl}-Blargedynsym' 9321 ;; 9322 esac 9323 fi 9324 fi 9325 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9327$as_echo "$ld_shlibs" >&6; } 9328test "$ld_shlibs" = no && can_build_shared=no 9329 9330with_gnu_ld=$with_gnu_ld 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346# 9347# Do we need to explicitly link libc? 9348# 9349case "x$archive_cmds_need_lc" in 9350x|xyes) 9351 # Assume -lc should be added 9352 archive_cmds_need_lc=yes 9353 9354 if test "$enable_shared" = yes && test "$GCC" = yes; then 9355 case $archive_cmds in 9356 *'~'*) 9357 # FIXME: we may have to deal with multi-command sequences. 9358 ;; 9359 '$CC '*) 9360 # Test whether the compiler implicitly links with -lc since on some 9361 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9362 # to ld, don't add -lc before -lgcc. 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9364$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9365 $RM conftest* 9366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9367 9368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9369 (eval $ac_compile) 2>&5 9370 ac_status=$? 9371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9372 test $ac_status = 0; } 2>conftest.err; then 9373 soname=conftest 9374 lib=conftest 9375 libobjs=conftest.$ac_objext 9376 deplibs= 9377 wl=$lt_prog_compiler_wl 9378 pic_flag=$lt_prog_compiler_pic 9379 compiler_flags=-v 9380 linker_flags=-v 9381 verstring= 9382 output_objdir=. 9383 libname=conftest 9384 lt_save_allow_undefined_flag=$allow_undefined_flag 9385 allow_undefined_flag= 9386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9387 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9388 ac_status=$? 9389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9390 test $ac_status = 0; } 9391 then 9392 archive_cmds_need_lc=no 9393 else 9394 archive_cmds_need_lc=yes 9395 fi 9396 allow_undefined_flag=$lt_save_allow_undefined_flag 9397 else 9398 cat conftest.err 1>&5 9399 fi 9400 $RM conftest* 9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9402$as_echo "$archive_cmds_need_lc" >&6; } 9403 ;; 9404 esac 9405 fi 9406 ;; 9407esac 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9566$as_echo_n "checking dynamic linker characteristics... " >&6; } 9567 9568if test "$GCC" = yes; then 9569 case $host_os in 9570 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9571 *) lt_awk_arg="/^libraries:/" ;; 9572 esac 9573 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9574 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9575 # if the path contains ";" then we assume it to be the separator 9576 # otherwise default to the standard path separator (i.e. ":") - it is 9577 # assumed that no part of a normal pathname contains ";" but that should 9578 # okay in the real world where ";" in dirpaths is itself problematic. 9579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9580 else 9581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9582 fi 9583 # Ok, now we have the path, separated by spaces, we can step through it 9584 # and add multilib dir if necessary. 9585 lt_tmp_lt_search_path_spec= 9586 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9587 for lt_sys_path in $lt_search_path_spec; do 9588 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9589 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9590 else 9591 test -d "$lt_sys_path" && \ 9592 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9593 fi 9594 done 9595 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9596BEGIN {RS=" "; FS="/|\n";} { 9597 lt_foo=""; 9598 lt_count=0; 9599 for (lt_i = NF; lt_i > 0; lt_i--) { 9600 if ($lt_i != "" && $lt_i != ".") { 9601 if ($lt_i == "..") { 9602 lt_count++; 9603 } else { 9604 if (lt_count == 0) { 9605 lt_foo="/" $lt_i lt_foo; 9606 } else { 9607 lt_count--; 9608 } 9609 } 9610 } 9611 } 9612 if (lt_foo != "") { lt_freq[lt_foo]++; } 9613 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9614}'` 9615 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9616else 9617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9618fi 9619library_names_spec= 9620libname_spec='lib$name' 9621soname_spec= 9622shrext_cmds=".so" 9623postinstall_cmds= 9624postuninstall_cmds= 9625finish_cmds= 9626finish_eval= 9627shlibpath_var= 9628shlibpath_overrides_runpath=unknown 9629version_type=none 9630dynamic_linker="$host_os ld.so" 9631sys_lib_dlsearch_path_spec="/lib /usr/lib" 9632need_lib_prefix=unknown 9633hardcode_into_libs=no 9634 9635# when you set need_version to no, make sure it does not cause -set_version 9636# flags to be left without arguments 9637need_version=unknown 9638 9639case $host_os in 9640aix3*) 9641 version_type=linux 9642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9643 shlibpath_var=LIBPATH 9644 9645 # AIX 3 has no versioning support, so we append a major version to the name. 9646 soname_spec='${libname}${release}${shared_ext}$major' 9647 ;; 9648 9649aix[4-9]*) 9650 version_type=linux 9651 need_lib_prefix=no 9652 need_version=no 9653 hardcode_into_libs=yes 9654 if test "$host_cpu" = ia64; then 9655 # AIX 5 supports IA64 9656 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9657 shlibpath_var=LD_LIBRARY_PATH 9658 else 9659 # With GCC up to 2.95.x, collect2 would create an import file 9660 # for dependence libraries. The import file would start with 9661 # the line `#! .'. This would cause the generated library to 9662 # depend on `.', always an invalid library. This was fixed in 9663 # development snapshots of GCC prior to 3.0. 9664 case $host_os in 9665 aix4 | aix4.[01] | aix4.[01].*) 9666 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9667 echo ' yes ' 9668 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9669 : 9670 else 9671 can_build_shared=no 9672 fi 9673 ;; 9674 esac 9675 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9676 # soname into executable. Probably we can add versioning support to 9677 # collect2, so additional links can be useful in future. 9678 if test "$aix_use_runtimelinking" = yes; then 9679 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9680 # instead of lib<name>.a to let people know that these are not 9681 # typical AIX shared libraries. 9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9683 else 9684 # We preserve .a as extension for shared libraries through AIX4.2 9685 # and later when we are not doing run time linking. 9686 library_names_spec='${libname}${release}.a $libname.a' 9687 soname_spec='${libname}${release}${shared_ext}$major' 9688 fi 9689 shlibpath_var=LIBPATH 9690 fi 9691 ;; 9692 9693amigaos*) 9694 case $host_cpu in 9695 powerpc) 9696 # Since July 2007 AmigaOS4 officially supports .so libraries. 9697 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9699 ;; 9700 m68k) 9701 library_names_spec='$libname.ixlibrary $libname.a' 9702 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9703 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9704 ;; 9705 esac 9706 ;; 9707 9708beos*) 9709 library_names_spec='${libname}${shared_ext}' 9710 dynamic_linker="$host_os ld.so" 9711 shlibpath_var=LIBRARY_PATH 9712 ;; 9713 9714bsdi[45]*) 9715 version_type=linux 9716 need_version=no 9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9718 soname_spec='${libname}${release}${shared_ext}$major' 9719 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9720 shlibpath_var=LD_LIBRARY_PATH 9721 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9722 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9723 # the default ld.so.conf also contains /usr/contrib/lib and 9724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9725 # libtool to hard-code these into programs 9726 ;; 9727 9728cygwin* | mingw* | pw32* | cegcc*) 9729 version_type=windows 9730 shrext_cmds=".dll" 9731 need_version=no 9732 need_lib_prefix=no 9733 9734 case $GCC,$host_os in 9735 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9736 library_names_spec='$libname.dll.a' 9737 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9738 postinstall_cmds='base_file=`basename \${file}`~ 9739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9740 dldir=$destdir/`dirname \$dlpath`~ 9741 test -d \$dldir || mkdir -p \$dldir~ 9742 $install_prog $dir/$dlname \$dldir/$dlname~ 9743 chmod a+x \$dldir/$dlname~ 9744 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9745 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9746 fi' 9747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9748 dlpath=$dir/\$dldll~ 9749 $RM \$dlpath' 9750 shlibpath_overrides_runpath=yes 9751 9752 case $host_os in 9753 cygwin*) 9754 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9755 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9756 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9757 ;; 9758 mingw* | cegcc*) 9759 # MinGW DLLs use traditional 'lib' prefix 9760 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9761 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9762 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9763 # It is most probably a Windows format PATH printed by 9764 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9765 # path with ; separators, and with drive letters. We can handle the 9766 # drive letters (cygwin fileutils understands them), so leave them, 9767 # especially as we might pass files found there to a mingw objdump, 9768 # which wouldn't understand a cygwinified path. Ahh. 9769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9770 else 9771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9772 fi 9773 ;; 9774 pw32*) 9775 # pw32 DLLs use 'pw' prefix rather than 'lib' 9776 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9777 ;; 9778 esac 9779 ;; 9780 9781 *) 9782 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9783 ;; 9784 esac 9785 dynamic_linker='Win32 ld.exe' 9786 # FIXME: first we should search . and the directory the executable is in 9787 shlibpath_var=PATH 9788 ;; 9789 9790darwin* | rhapsody*) 9791 dynamic_linker="$host_os dyld" 9792 version_type=darwin 9793 need_lib_prefix=no 9794 need_version=no 9795 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9796 soname_spec='${libname}${release}${major}$shared_ext' 9797 shlibpath_overrides_runpath=yes 9798 shlibpath_var=DYLD_LIBRARY_PATH 9799 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9800 9801 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9803 ;; 9804 9805dgux*) 9806 version_type=linux 9807 need_lib_prefix=no 9808 need_version=no 9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9810 soname_spec='${libname}${release}${shared_ext}$major' 9811 shlibpath_var=LD_LIBRARY_PATH 9812 ;; 9813 9814freebsd1*) 9815 dynamic_linker=no 9816 ;; 9817 9818freebsd* | dragonfly*) 9819 # DragonFly does not have aout. When/if they implement a new 9820 # versioning mechanism, adjust this. 9821 if test -x /usr/bin/objformat; then 9822 objformat=`/usr/bin/objformat` 9823 else 9824 case $host_os in 9825 freebsd[123]*) objformat=aout ;; 9826 *) objformat=elf ;; 9827 esac 9828 fi 9829 version_type=freebsd-$objformat 9830 case $version_type in 9831 freebsd-elf*) 9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9833 need_version=no 9834 need_lib_prefix=no 9835 ;; 9836 freebsd-*) 9837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9838 need_version=yes 9839 ;; 9840 esac 9841 shlibpath_var=LD_LIBRARY_PATH 9842 case $host_os in 9843 freebsd2*) 9844 shlibpath_overrides_runpath=yes 9845 ;; 9846 freebsd3.[01]* | freebsdelf3.[01]*) 9847 shlibpath_overrides_runpath=yes 9848 hardcode_into_libs=yes 9849 ;; 9850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9852 shlibpath_overrides_runpath=no 9853 hardcode_into_libs=yes 9854 ;; 9855 *) # from 4.6 on, and DragonFly 9856 shlibpath_overrides_runpath=yes 9857 hardcode_into_libs=yes 9858 ;; 9859 esac 9860 ;; 9861 9862gnu*) 9863 version_type=linux 9864 need_lib_prefix=no 9865 need_version=no 9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9867 soname_spec='${libname}${release}${shared_ext}$major' 9868 shlibpath_var=LD_LIBRARY_PATH 9869 hardcode_into_libs=yes 9870 ;; 9871 9872hpux9* | hpux10* | hpux11*) 9873 # Give a soname corresponding to the major version so that dld.sl refuses to 9874 # link against other versions. 9875 version_type=sunos 9876 need_lib_prefix=no 9877 need_version=no 9878 case $host_cpu in 9879 ia64*) 9880 shrext_cmds='.so' 9881 hardcode_into_libs=yes 9882 dynamic_linker="$host_os dld.so" 9883 shlibpath_var=LD_LIBRARY_PATH 9884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9886 soname_spec='${libname}${release}${shared_ext}$major' 9887 if test "X$HPUX_IA64_MODE" = X32; then 9888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9889 else 9890 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9891 fi 9892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9893 ;; 9894 hppa*64*) 9895 shrext_cmds='.sl' 9896 hardcode_into_libs=yes 9897 dynamic_linker="$host_os dld.sl" 9898 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9901 soname_spec='${libname}${release}${shared_ext}$major' 9902 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9904 ;; 9905 *) 9906 shrext_cmds='.sl' 9907 dynamic_linker="$host_os dld.sl" 9908 shlibpath_var=SHLIB_PATH 9909 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9911 soname_spec='${libname}${release}${shared_ext}$major' 9912 ;; 9913 esac 9914 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9915 postinstall_cmds='chmod 555 $lib' 9916 ;; 9917 9918interix[3-9]*) 9919 version_type=linux 9920 need_lib_prefix=no 9921 need_version=no 9922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9923 soname_spec='${libname}${release}${shared_ext}$major' 9924 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9925 shlibpath_var=LD_LIBRARY_PATH 9926 shlibpath_overrides_runpath=no 9927 hardcode_into_libs=yes 9928 ;; 9929 9930irix5* | irix6* | nonstopux*) 9931 case $host_os in 9932 nonstopux*) version_type=nonstopux ;; 9933 *) 9934 if test "$lt_cv_prog_gnu_ld" = yes; then 9935 version_type=linux 9936 else 9937 version_type=irix 9938 fi ;; 9939 esac 9940 need_lib_prefix=no 9941 need_version=no 9942 soname_spec='${libname}${release}${shared_ext}$major' 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9944 case $host_os in 9945 irix5* | nonstopux*) 9946 libsuff= shlibsuff= 9947 ;; 9948 *) 9949 case $LD in # libtool.m4 will add one of these switches to LD 9950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9951 libsuff= shlibsuff= libmagic=32-bit;; 9952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9953 libsuff=32 shlibsuff=N32 libmagic=N32;; 9954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9955 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9956 *) libsuff= shlibsuff= libmagic=never-match;; 9957 esac 9958 ;; 9959 esac 9960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9961 shlibpath_overrides_runpath=no 9962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9964 hardcode_into_libs=yes 9965 ;; 9966 9967# No shared lib support for Linux oldld, aout, or coff. 9968linux*oldld* | linux*aout* | linux*coff*) 9969 dynamic_linker=no 9970 ;; 9971 9972# This must be Linux ELF. 9973linux* | k*bsd*-gnu) 9974 version_type=linux 9975 need_lib_prefix=no 9976 need_version=no 9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9978 soname_spec='${libname}${release}${shared_ext}$major' 9979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9980 shlibpath_var=LD_LIBRARY_PATH 9981 shlibpath_overrides_runpath=no 9982 # Some binutils ld are patched to set DT_RUNPATH 9983 save_LDFLAGS=$LDFLAGS 9984 save_libdir=$libdir 9985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988/* end confdefs.h. */ 9989 9990int 9991main () 9992{ 9993 9994 ; 9995 return 0; 9996} 9997_ACEOF 9998if ac_fn_c_try_link "$LINENO"; then : 9999 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10000 shlibpath_overrides_runpath=yes 10001fi 10002fi 10003rm -f core conftest.err conftest.$ac_objext \ 10004 conftest$ac_exeext conftest.$ac_ext 10005 LDFLAGS=$save_LDFLAGS 10006 libdir=$save_libdir 10007 10008 # This implies no fast_install, which is unacceptable. 10009 # Some rework will be needed to allow for fast_install 10010 # before this can be enabled. 10011 hardcode_into_libs=yes 10012 10013 # Append ld.so.conf contents to the search path 10014 if test -f /etc/ld.so.conf; then 10015 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10017 fi 10018 10019 # We used to test for /lib/ld.so.1 and disable shared libraries on 10020 # powerpc, because MkLinux only supported shared libraries with the 10021 # GNU dynamic linker. Since this was broken with cross compilers, 10022 # most powerpc-linux boxes support dynamic linking these days and 10023 # people can always --disable-shared, the test was removed, and we 10024 # assume the GNU/Linux dynamic linker is in use. 10025 dynamic_linker='GNU/Linux ld.so' 10026 ;; 10027 10028netbsd*) 10029 version_type=sunos 10030 need_lib_prefix=no 10031 need_version=no 10032 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10035 dynamic_linker='NetBSD (a.out) ld.so' 10036 else 10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10038 soname_spec='${libname}${release}${shared_ext}$major' 10039 dynamic_linker='NetBSD ld.elf_so' 10040 fi 10041 shlibpath_var=LD_LIBRARY_PATH 10042 shlibpath_overrides_runpath=yes 10043 hardcode_into_libs=yes 10044 ;; 10045 10046newsos6) 10047 version_type=linux 10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10049 shlibpath_var=LD_LIBRARY_PATH 10050 shlibpath_overrides_runpath=yes 10051 ;; 10052 10053*nto* | *qnx*) 10054 version_type=qnx 10055 need_lib_prefix=no 10056 need_version=no 10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10058 soname_spec='${libname}${release}${shared_ext}$major' 10059 shlibpath_var=LD_LIBRARY_PATH 10060 shlibpath_overrides_runpath=no 10061 hardcode_into_libs=yes 10062 dynamic_linker='ldqnx.so' 10063 ;; 10064 10065openbsd*) 10066 version_type=sunos 10067 sys_lib_dlsearch_path_spec="/usr/lib" 10068 need_lib_prefix=no 10069 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10070 case $host_os in 10071 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10072 *) need_version=no ;; 10073 esac 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10076 shlibpath_var=LD_LIBRARY_PATH 10077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10078 case $host_os in 10079 openbsd2.[89] | openbsd2.[89].*) 10080 shlibpath_overrides_runpath=no 10081 ;; 10082 *) 10083 shlibpath_overrides_runpath=yes 10084 ;; 10085 esac 10086 else 10087 shlibpath_overrides_runpath=yes 10088 fi 10089 ;; 10090 10091os2*) 10092 libname_spec='$name' 10093 shrext_cmds=".dll" 10094 need_lib_prefix=no 10095 library_names_spec='$libname${shared_ext} $libname.a' 10096 dynamic_linker='OS/2 ld.exe' 10097 shlibpath_var=LIBPATH 10098 ;; 10099 10100osf3* | osf4* | osf5*) 10101 version_type=osf 10102 need_lib_prefix=no 10103 need_version=no 10104 soname_spec='${libname}${release}${shared_ext}$major' 10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10106 shlibpath_var=LD_LIBRARY_PATH 10107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10108 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10109 ;; 10110 10111rdos*) 10112 dynamic_linker=no 10113 ;; 10114 10115solaris*) 10116 version_type=linux 10117 need_lib_prefix=no 10118 need_version=no 10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10120 soname_spec='${libname}${release}${shared_ext}$major' 10121 shlibpath_var=LD_LIBRARY_PATH 10122 shlibpath_overrides_runpath=yes 10123 hardcode_into_libs=yes 10124 # ldd complains unless libraries are executable 10125 postinstall_cmds='chmod +x $lib' 10126 ;; 10127 10128sunos4*) 10129 version_type=sunos 10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10132 shlibpath_var=LD_LIBRARY_PATH 10133 shlibpath_overrides_runpath=yes 10134 if test "$with_gnu_ld" = yes; then 10135 need_lib_prefix=no 10136 fi 10137 need_version=yes 10138 ;; 10139 10140sysv4 | sysv4.3*) 10141 version_type=linux 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10143 soname_spec='${libname}${release}${shared_ext}$major' 10144 shlibpath_var=LD_LIBRARY_PATH 10145 case $host_vendor in 10146 sni) 10147 shlibpath_overrides_runpath=no 10148 need_lib_prefix=no 10149 runpath_var=LD_RUN_PATH 10150 ;; 10151 siemens) 10152 need_lib_prefix=no 10153 ;; 10154 motorola) 10155 need_lib_prefix=no 10156 need_version=no 10157 shlibpath_overrides_runpath=no 10158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10159 ;; 10160 esac 10161 ;; 10162 10163sysv4*MP*) 10164 if test -d /usr/nec ;then 10165 version_type=linux 10166 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10167 soname_spec='$libname${shared_ext}.$major' 10168 shlibpath_var=LD_LIBRARY_PATH 10169 fi 10170 ;; 10171 10172sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10173 version_type=freebsd-elf 10174 need_lib_prefix=no 10175 need_version=no 10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10177 soname_spec='${libname}${release}${shared_ext}$major' 10178 shlibpath_var=LD_LIBRARY_PATH 10179 shlibpath_overrides_runpath=yes 10180 hardcode_into_libs=yes 10181 if test "$with_gnu_ld" = yes; then 10182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10183 else 10184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10185 case $host_os in 10186 sco3.2v5*) 10187 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10188 ;; 10189 esac 10190 fi 10191 sys_lib_dlsearch_path_spec='/usr/lib' 10192 ;; 10193 10194tpf*) 10195 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10196 version_type=linux 10197 need_lib_prefix=no 10198 need_version=no 10199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10200 shlibpath_var=LD_LIBRARY_PATH 10201 shlibpath_overrides_runpath=no 10202 hardcode_into_libs=yes 10203 ;; 10204 10205uts4*) 10206 version_type=linux 10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10208 soname_spec='${libname}${release}${shared_ext}$major' 10209 shlibpath_var=LD_LIBRARY_PATH 10210 ;; 10211 10212*) 10213 dynamic_linker=no 10214 ;; 10215esac 10216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10217$as_echo "$dynamic_linker" >&6; } 10218test "$dynamic_linker" = no && can_build_shared=no 10219 10220variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10221if test "$GCC" = yes; then 10222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10223fi 10224 10225if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10226 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10227fi 10228if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10229 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10230fi 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10319$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10320hardcode_action= 10321if test -n "$hardcode_libdir_flag_spec" || 10322 test -n "$runpath_var" || 10323 test "X$hardcode_automatic" = "Xyes" ; then 10324 10325 # We can hardcode non-existent directories. 10326 if test "$hardcode_direct" != no && 10327 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10328 # have to relink, otherwise we might link with an installed library 10329 # when we should be linking with a yet-to-be-installed one 10330 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10331 test "$hardcode_minus_L" != no; then 10332 # Linking always hardcodes the temporary library directory. 10333 hardcode_action=relink 10334 else 10335 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10336 hardcode_action=immediate 10337 fi 10338else 10339 # We cannot hardcode anything, or else we can only hardcode existing 10340 # directories. 10341 hardcode_action=unsupported 10342fi 10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10344$as_echo "$hardcode_action" >&6; } 10345 10346if test "$hardcode_action" = relink || 10347 test "$inherit_rpath" = yes; then 10348 # Fast installation is not supported 10349 enable_fast_install=no 10350elif test "$shlibpath_overrides_runpath" = yes || 10351 test "$enable_shared" = no; then 10352 # Fast installation is not necessary 10353 enable_fast_install=needless 10354fi 10355 10356 10357 10358 10359 10360 10361 if test "x$enable_dlopen" != xyes; then 10362 enable_dlopen=unknown 10363 enable_dlopen_self=unknown 10364 enable_dlopen_self_static=unknown 10365else 10366 lt_cv_dlopen=no 10367 lt_cv_dlopen_libs= 10368 10369 case $host_os in 10370 beos*) 10371 lt_cv_dlopen="load_add_on" 10372 lt_cv_dlopen_libs= 10373 lt_cv_dlopen_self=yes 10374 ;; 10375 10376 mingw* | pw32* | cegcc*) 10377 lt_cv_dlopen="LoadLibrary" 10378 lt_cv_dlopen_libs= 10379 ;; 10380 10381 cygwin*) 10382 lt_cv_dlopen="dlopen" 10383 lt_cv_dlopen_libs= 10384 ;; 10385 10386 darwin*) 10387 # if libdl is installed we need to link against it 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10389$as_echo_n "checking for dlopen in -ldl... " >&6; } 10390if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10391 $as_echo_n "(cached) " >&6 10392else 10393 ac_check_lib_save_LIBS=$LIBS 10394LIBS="-ldl $LIBS" 10395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397 10398/* Override any GCC internal prototype to avoid an error. 10399 Use char because int might match the return type of a GCC 10400 builtin and then its argument prototype would still apply. */ 10401#ifdef __cplusplus 10402extern "C" 10403#endif 10404char dlopen (); 10405int 10406main () 10407{ 10408return dlopen (); 10409 ; 10410 return 0; 10411} 10412_ACEOF 10413if ac_fn_c_try_link "$LINENO"; then : 10414 ac_cv_lib_dl_dlopen=yes 10415else 10416 ac_cv_lib_dl_dlopen=no 10417fi 10418rm -f core conftest.err conftest.$ac_objext \ 10419 conftest$ac_exeext conftest.$ac_ext 10420LIBS=$ac_check_lib_save_LIBS 10421fi 10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10423$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10424if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10425 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10426else 10427 10428 lt_cv_dlopen="dyld" 10429 lt_cv_dlopen_libs= 10430 lt_cv_dlopen_self=yes 10431 10432fi 10433 10434 ;; 10435 10436 *) 10437 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10438if test "x$ac_cv_func_shl_load" = x""yes; then : 10439 lt_cv_dlopen="shl_load" 10440else 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10442$as_echo_n "checking for shl_load in -ldld... " >&6; } 10443if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10444 $as_echo_n "(cached) " >&6 10445else 10446 ac_check_lib_save_LIBS=$LIBS 10447LIBS="-ldld $LIBS" 10448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449/* end confdefs.h. */ 10450 10451/* Override any GCC internal prototype to avoid an error. 10452 Use char because int might match the return type of a GCC 10453 builtin and then its argument prototype would still apply. */ 10454#ifdef __cplusplus 10455extern "C" 10456#endif 10457char shl_load (); 10458int 10459main () 10460{ 10461return shl_load (); 10462 ; 10463 return 0; 10464} 10465_ACEOF 10466if ac_fn_c_try_link "$LINENO"; then : 10467 ac_cv_lib_dld_shl_load=yes 10468else 10469 ac_cv_lib_dld_shl_load=no 10470fi 10471rm -f core conftest.err conftest.$ac_objext \ 10472 conftest$ac_exeext conftest.$ac_ext 10473LIBS=$ac_check_lib_save_LIBS 10474fi 10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10476$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10477if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10478 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10479else 10480 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10481if test "x$ac_cv_func_dlopen" = x""yes; then : 10482 lt_cv_dlopen="dlopen" 10483else 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10485$as_echo_n "checking for dlopen in -ldl... " >&6; } 10486if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10487 $as_echo_n "(cached) " >&6 10488else 10489 ac_check_lib_save_LIBS=$LIBS 10490LIBS="-ldl $LIBS" 10491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492/* end confdefs.h. */ 10493 10494/* Override any GCC internal prototype to avoid an error. 10495 Use char because int might match the return type of a GCC 10496 builtin and then its argument prototype would still apply. */ 10497#ifdef __cplusplus 10498extern "C" 10499#endif 10500char dlopen (); 10501int 10502main () 10503{ 10504return dlopen (); 10505 ; 10506 return 0; 10507} 10508_ACEOF 10509if ac_fn_c_try_link "$LINENO"; then : 10510 ac_cv_lib_dl_dlopen=yes 10511else 10512 ac_cv_lib_dl_dlopen=no 10513fi 10514rm -f core conftest.err conftest.$ac_objext \ 10515 conftest$ac_exeext conftest.$ac_ext 10516LIBS=$ac_check_lib_save_LIBS 10517fi 10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10519$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10520if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10522else 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10524$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10525if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10526 $as_echo_n "(cached) " >&6 10527else 10528 ac_check_lib_save_LIBS=$LIBS 10529LIBS="-lsvld $LIBS" 10530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531/* end confdefs.h. */ 10532 10533/* Override any GCC internal prototype to avoid an error. 10534 Use char because int might match the return type of a GCC 10535 builtin and then its argument prototype would still apply. */ 10536#ifdef __cplusplus 10537extern "C" 10538#endif 10539char dlopen (); 10540int 10541main () 10542{ 10543return dlopen (); 10544 ; 10545 return 0; 10546} 10547_ACEOF 10548if ac_fn_c_try_link "$LINENO"; then : 10549 ac_cv_lib_svld_dlopen=yes 10550else 10551 ac_cv_lib_svld_dlopen=no 10552fi 10553rm -f core conftest.err conftest.$ac_objext \ 10554 conftest$ac_exeext conftest.$ac_ext 10555LIBS=$ac_check_lib_save_LIBS 10556fi 10557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10558$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10559if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10561else 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10563$as_echo_n "checking for dld_link in -ldld... " >&6; } 10564if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10565 $as_echo_n "(cached) " >&6 10566else 10567 ac_check_lib_save_LIBS=$LIBS 10568LIBS="-ldld $LIBS" 10569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10570/* end confdefs.h. */ 10571 10572/* Override any GCC internal prototype to avoid an error. 10573 Use char because int might match the return type of a GCC 10574 builtin and then its argument prototype would still apply. */ 10575#ifdef __cplusplus 10576extern "C" 10577#endif 10578char dld_link (); 10579int 10580main () 10581{ 10582return dld_link (); 10583 ; 10584 return 0; 10585} 10586_ACEOF 10587if ac_fn_c_try_link "$LINENO"; then : 10588 ac_cv_lib_dld_dld_link=yes 10589else 10590 ac_cv_lib_dld_dld_link=no 10591fi 10592rm -f core conftest.err conftest.$ac_objext \ 10593 conftest$ac_exeext conftest.$ac_ext 10594LIBS=$ac_check_lib_save_LIBS 10595fi 10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10597$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10598if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10599 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10600fi 10601 10602 10603fi 10604 10605 10606fi 10607 10608 10609fi 10610 10611 10612fi 10613 10614 10615fi 10616 10617 ;; 10618 esac 10619 10620 if test "x$lt_cv_dlopen" != xno; then 10621 enable_dlopen=yes 10622 else 10623 enable_dlopen=no 10624 fi 10625 10626 case $lt_cv_dlopen in 10627 dlopen) 10628 save_CPPFLAGS="$CPPFLAGS" 10629 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10630 10631 save_LDFLAGS="$LDFLAGS" 10632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10633 10634 save_LIBS="$LIBS" 10635 LIBS="$lt_cv_dlopen_libs $LIBS" 10636 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10638$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10639if test "${lt_cv_dlopen_self+set}" = set; then : 10640 $as_echo_n "(cached) " >&6 10641else 10642 if test "$cross_compiling" = yes; then : 10643 lt_cv_dlopen_self=cross 10644else 10645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10646 lt_status=$lt_dlunknown 10647 cat > conftest.$ac_ext <<_LT_EOF 10648#line 10648 "configure" 10649#include "confdefs.h" 10650 10651#if HAVE_DLFCN_H 10652#include <dlfcn.h> 10653#endif 10654 10655#include <stdio.h> 10656 10657#ifdef RTLD_GLOBAL 10658# define LT_DLGLOBAL RTLD_GLOBAL 10659#else 10660# ifdef DL_GLOBAL 10661# define LT_DLGLOBAL DL_GLOBAL 10662# else 10663# define LT_DLGLOBAL 0 10664# endif 10665#endif 10666 10667/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10668 find out it does not work in some platform. */ 10669#ifndef LT_DLLAZY_OR_NOW 10670# ifdef RTLD_LAZY 10671# define LT_DLLAZY_OR_NOW RTLD_LAZY 10672# else 10673# ifdef DL_LAZY 10674# define LT_DLLAZY_OR_NOW DL_LAZY 10675# else 10676# ifdef RTLD_NOW 10677# define LT_DLLAZY_OR_NOW RTLD_NOW 10678# else 10679# ifdef DL_NOW 10680# define LT_DLLAZY_OR_NOW DL_NOW 10681# else 10682# define LT_DLLAZY_OR_NOW 0 10683# endif 10684# endif 10685# endif 10686# endif 10687#endif 10688 10689void fnord() { int i=42;} 10690int main () 10691{ 10692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10693 int status = $lt_dlunknown; 10694 10695 if (self) 10696 { 10697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10698 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10699 /* dlclose (self); */ 10700 } 10701 else 10702 puts (dlerror ()); 10703 10704 return status; 10705} 10706_LT_EOF 10707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10708 (eval $ac_link) 2>&5 10709 ac_status=$? 10710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10711 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10712 (./conftest; exit; ) >&5 2>/dev/null 10713 lt_status=$? 10714 case x$lt_status in 10715 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10716 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10717 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10718 esac 10719 else : 10720 # compilation failed 10721 lt_cv_dlopen_self=no 10722 fi 10723fi 10724rm -fr conftest* 10725 10726 10727fi 10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10729$as_echo "$lt_cv_dlopen_self" >&6; } 10730 10731 if test "x$lt_cv_dlopen_self" = xyes; then 10732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10734$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10735if test "${lt_cv_dlopen_self_static+set}" = set; then : 10736 $as_echo_n "(cached) " >&6 10737else 10738 if test "$cross_compiling" = yes; then : 10739 lt_cv_dlopen_self_static=cross 10740else 10741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10742 lt_status=$lt_dlunknown 10743 cat > conftest.$ac_ext <<_LT_EOF 10744#line 10744 "configure" 10745#include "confdefs.h" 10746 10747#if HAVE_DLFCN_H 10748#include <dlfcn.h> 10749#endif 10750 10751#include <stdio.h> 10752 10753#ifdef RTLD_GLOBAL 10754# define LT_DLGLOBAL RTLD_GLOBAL 10755#else 10756# ifdef DL_GLOBAL 10757# define LT_DLGLOBAL DL_GLOBAL 10758# else 10759# define LT_DLGLOBAL 0 10760# endif 10761#endif 10762 10763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10764 find out it does not work in some platform. */ 10765#ifndef LT_DLLAZY_OR_NOW 10766# ifdef RTLD_LAZY 10767# define LT_DLLAZY_OR_NOW RTLD_LAZY 10768# else 10769# ifdef DL_LAZY 10770# define LT_DLLAZY_OR_NOW DL_LAZY 10771# else 10772# ifdef RTLD_NOW 10773# define LT_DLLAZY_OR_NOW RTLD_NOW 10774# else 10775# ifdef DL_NOW 10776# define LT_DLLAZY_OR_NOW DL_NOW 10777# else 10778# define LT_DLLAZY_OR_NOW 0 10779# endif 10780# endif 10781# endif 10782# endif 10783#endif 10784 10785void fnord() { int i=42;} 10786int main () 10787{ 10788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10789 int status = $lt_dlunknown; 10790 10791 if (self) 10792 { 10793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10795 /* dlclose (self); */ 10796 } 10797 else 10798 puts (dlerror ()); 10799 10800 return status; 10801} 10802_LT_EOF 10803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10804 (eval $ac_link) 2>&5 10805 ac_status=$? 10806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10807 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10808 (./conftest; exit; ) >&5 2>/dev/null 10809 lt_status=$? 10810 case x$lt_status in 10811 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10812 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10813 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10814 esac 10815 else : 10816 # compilation failed 10817 lt_cv_dlopen_self_static=no 10818 fi 10819fi 10820rm -fr conftest* 10821 10822 10823fi 10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10825$as_echo "$lt_cv_dlopen_self_static" >&6; } 10826 fi 10827 10828 CPPFLAGS="$save_CPPFLAGS" 10829 LDFLAGS="$save_LDFLAGS" 10830 LIBS="$save_LIBS" 10831 ;; 10832 esac 10833 10834 case $lt_cv_dlopen_self in 10835 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10836 *) enable_dlopen_self=unknown ;; 10837 esac 10838 10839 case $lt_cv_dlopen_self_static in 10840 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10841 *) enable_dlopen_self_static=unknown ;; 10842 esac 10843fi 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861striplib= 10862old_striplib= 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10864$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10865if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10866 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10867 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10869$as_echo "yes" >&6; } 10870else 10871# FIXME - insert some real tests, host_os isn't really good enough 10872 case $host_os in 10873 darwin*) 10874 if test -n "$STRIP" ; then 10875 striplib="$STRIP -x" 10876 old_striplib="$STRIP -S" 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10878$as_echo "yes" >&6; } 10879 else 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10881$as_echo "no" >&6; } 10882 fi 10883 ;; 10884 *) 10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10886$as_echo "no" >&6; } 10887 ;; 10888 esac 10889fi 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 # Report which library types will actually be built 10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10904$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10906$as_echo "$can_build_shared" >&6; } 10907 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10909$as_echo_n "checking whether to build shared libraries... " >&6; } 10910 test "$can_build_shared" = "no" && enable_shared=no 10911 10912 # On AIX, shared libraries and static libraries use the same namespace, and 10913 # are all built from PIC. 10914 case $host_os in 10915 aix3*) 10916 test "$enable_shared" = yes && enable_static=no 10917 if test -n "$RANLIB"; then 10918 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10919 postinstall_cmds='$RANLIB $lib' 10920 fi 10921 ;; 10922 10923 aix[4-9]*) 10924 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10925 test "$enable_shared" = yes && enable_static=no 10926 fi 10927 ;; 10928 esac 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10930$as_echo "$enable_shared" >&6; } 10931 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10933$as_echo_n "checking whether to build static libraries... " >&6; } 10934 # Make sure either enable_shared or enable_static is yes. 10935 test "$enable_shared" = yes || enable_static=yes 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10937$as_echo "$enable_static" >&6; } 10938 10939 10940 10941 10942fi 10943ac_ext=c 10944ac_cpp='$CPP $CPPFLAGS' 10945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10947ac_compiler_gnu=$ac_cv_c_compiler_gnu 10948 10949CC="$lt_save_CC" 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 ac_config_commands="$ac_config_commands libtool" 10964 10965 10966 10967 10968# Only expand once: 10969 10970 10971ac_ext=c 10972ac_cpp='$CPP $CPPFLAGS' 10973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10975ac_compiler_gnu=$ac_cv_c_compiler_gnu 10976if test -n "$ac_tool_prefix"; then 10977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 10978set dummy ${ac_tool_prefix}gcc; ac_word=$2 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10980$as_echo_n "checking for $ac_word... " >&6; } 10981if test "${ac_cv_prog_CC+set}" = set; then : 10982 $as_echo_n "(cached) " >&6 10983else 10984 if test -n "$CC"; then 10985 ac_cv_prog_CC="$CC" # Let the user override the test. 10986else 10987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10988for as_dir in $PATH 10989do 10990 IFS=$as_save_IFS 10991 test -z "$as_dir" && as_dir=. 10992 for ac_exec_ext in '' $ac_executable_extensions; do 10993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10994 ac_cv_prog_CC="${ac_tool_prefix}gcc" 10995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10996 break 2 10997 fi 10998done 10999 done 11000IFS=$as_save_IFS 11001 11002fi 11003fi 11004CC=$ac_cv_prog_CC 11005if test -n "$CC"; then 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11007$as_echo "$CC" >&6; } 11008else 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11010$as_echo "no" >&6; } 11011fi 11012 11013 11014fi 11015if test -z "$ac_cv_prog_CC"; then 11016 ac_ct_CC=$CC 11017 # Extract the first word of "gcc", so it can be a program name with args. 11018set dummy gcc; ac_word=$2 11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11020$as_echo_n "checking for $ac_word... " >&6; } 11021if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11022 $as_echo_n "(cached) " >&6 11023else 11024 if test -n "$ac_ct_CC"; then 11025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11026else 11027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11028for as_dir in $PATH 11029do 11030 IFS=$as_save_IFS 11031 test -z "$as_dir" && as_dir=. 11032 for ac_exec_ext in '' $ac_executable_extensions; do 11033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11034 ac_cv_prog_ac_ct_CC="gcc" 11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11036 break 2 11037 fi 11038done 11039 done 11040IFS=$as_save_IFS 11041 11042fi 11043fi 11044ac_ct_CC=$ac_cv_prog_ac_ct_CC 11045if test -n "$ac_ct_CC"; then 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11047$as_echo "$ac_ct_CC" >&6; } 11048else 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11050$as_echo "no" >&6; } 11051fi 11052 11053 if test "x$ac_ct_CC" = x; then 11054 CC="" 11055 else 11056 case $cross_compiling:$ac_tool_warned in 11057yes:) 11058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11060ac_tool_warned=yes ;; 11061esac 11062 CC=$ac_ct_CC 11063 fi 11064else 11065 CC="$ac_cv_prog_CC" 11066fi 11067 11068if test -z "$CC"; then 11069 if test -n "$ac_tool_prefix"; then 11070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11071set dummy ${ac_tool_prefix}cc; ac_word=$2 11072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11073$as_echo_n "checking for $ac_word... " >&6; } 11074if test "${ac_cv_prog_CC+set}" = set; then : 11075 $as_echo_n "(cached) " >&6 11076else 11077 if test -n "$CC"; then 11078 ac_cv_prog_CC="$CC" # Let the user override the test. 11079else 11080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11081for as_dir in $PATH 11082do 11083 IFS=$as_save_IFS 11084 test -z "$as_dir" && as_dir=. 11085 for ac_exec_ext in '' $ac_executable_extensions; do 11086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11087 ac_cv_prog_CC="${ac_tool_prefix}cc" 11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11089 break 2 11090 fi 11091done 11092 done 11093IFS=$as_save_IFS 11094 11095fi 11096fi 11097CC=$ac_cv_prog_CC 11098if test -n "$CC"; then 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11100$as_echo "$CC" >&6; } 11101else 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11103$as_echo "no" >&6; } 11104fi 11105 11106 11107 fi 11108fi 11109if test -z "$CC"; then 11110 # Extract the first word of "cc", so it can be a program name with args. 11111set dummy cc; ac_word=$2 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11113$as_echo_n "checking for $ac_word... " >&6; } 11114if test "${ac_cv_prog_CC+set}" = set; then : 11115 $as_echo_n "(cached) " >&6 11116else 11117 if test -n "$CC"; then 11118 ac_cv_prog_CC="$CC" # Let the user override the test. 11119else 11120 ac_prog_rejected=no 11121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11122for as_dir in $PATH 11123do 11124 IFS=$as_save_IFS 11125 test -z "$as_dir" && as_dir=. 11126 for ac_exec_ext in '' $ac_executable_extensions; do 11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11129 ac_prog_rejected=yes 11130 continue 11131 fi 11132 ac_cv_prog_CC="cc" 11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11134 break 2 11135 fi 11136done 11137 done 11138IFS=$as_save_IFS 11139 11140if test $ac_prog_rejected = yes; then 11141 # We found a bogon in the path, so make sure we never use it. 11142 set dummy $ac_cv_prog_CC 11143 shift 11144 if test $# != 0; then 11145 # We chose a different compiler from the bogus one. 11146 # However, it has the same basename, so the bogon will be chosen 11147 # first if we set CC to just the basename; use the full file name. 11148 shift 11149 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11150 fi 11151fi 11152fi 11153fi 11154CC=$ac_cv_prog_CC 11155if test -n "$CC"; then 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11157$as_echo "$CC" >&6; } 11158else 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11160$as_echo "no" >&6; } 11161fi 11162 11163 11164fi 11165if test -z "$CC"; then 11166 if test -n "$ac_tool_prefix"; then 11167 for ac_prog in cl.exe 11168 do 11169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11170set dummy $ac_tool_prefix$ac_prog; 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 test "${ac_cv_prog_CC+set}" = set; then : 11174 $as_echo_n "(cached) " >&6 11175else 11176 if test -n "$CC"; then 11177 ac_cv_prog_CC="$CC" # Let the user override the test. 11178else 11179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11180for as_dir in $PATH 11181do 11182 IFS=$as_save_IFS 11183 test -z "$as_dir" && as_dir=. 11184 for ac_exec_ext in '' $ac_executable_extensions; do 11185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11188 break 2 11189 fi 11190done 11191 done 11192IFS=$as_save_IFS 11193 11194fi 11195fi 11196CC=$ac_cv_prog_CC 11197if test -n "$CC"; then 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11199$as_echo "$CC" >&6; } 11200else 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11202$as_echo "no" >&6; } 11203fi 11204 11205 11206 test -n "$CC" && break 11207 done 11208fi 11209if test -z "$CC"; then 11210 ac_ct_CC=$CC 11211 for ac_prog in cl.exe 11212do 11213 # Extract the first word of "$ac_prog", so it can be a program name with args. 11214set dummy $ac_prog; ac_word=$2 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11216$as_echo_n "checking for $ac_word... " >&6; } 11217if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11218 $as_echo_n "(cached) " >&6 11219else 11220 if test -n "$ac_ct_CC"; then 11221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11222else 11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11224for as_dir in $PATH 11225do 11226 IFS=$as_save_IFS 11227 test -z "$as_dir" && as_dir=. 11228 for ac_exec_ext in '' $ac_executable_extensions; do 11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11230 ac_cv_prog_ac_ct_CC="$ac_prog" 11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11232 break 2 11233 fi 11234done 11235 done 11236IFS=$as_save_IFS 11237 11238fi 11239fi 11240ac_ct_CC=$ac_cv_prog_ac_ct_CC 11241if test -n "$ac_ct_CC"; then 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11243$as_echo "$ac_ct_CC" >&6; } 11244else 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11246$as_echo "no" >&6; } 11247fi 11248 11249 11250 test -n "$ac_ct_CC" && break 11251done 11252 11253 if test "x$ac_ct_CC" = x; then 11254 CC="" 11255 else 11256 case $cross_compiling:$ac_tool_warned in 11257yes:) 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11260ac_tool_warned=yes ;; 11261esac 11262 CC=$ac_ct_CC 11263 fi 11264fi 11265 11266fi 11267 11268 11269test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11271as_fn_error "no acceptable C compiler found in \$PATH 11272See \`config.log' for more details." "$LINENO" 5; } 11273 11274# Provide some information about the compiler. 11275$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11276set X $ac_compile 11277ac_compiler=$2 11278for ac_option in --version -v -V -qversion; do 11279 { { ac_try="$ac_compiler $ac_option >&5" 11280case "(($ac_try" in 11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11282 *) ac_try_echo=$ac_try;; 11283esac 11284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11285$as_echo "$ac_try_echo"; } >&5 11286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11287 ac_status=$? 11288 if test -s conftest.err; then 11289 sed '10a\ 11290... rest of stderr output deleted ... 11291 10q' conftest.err >conftest.er1 11292 cat conftest.er1 >&5 11293 fi 11294 rm -f conftest.er1 conftest.err 11295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11296 test $ac_status = 0; } 11297done 11298 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11300$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11301if test "${ac_cv_c_compiler_gnu+set}" = set; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11305/* end confdefs.h. */ 11306 11307int 11308main () 11309{ 11310#ifndef __GNUC__ 11311 choke me 11312#endif 11313 11314 ; 11315 return 0; 11316} 11317_ACEOF 11318if ac_fn_c_try_compile "$LINENO"; then : 11319 ac_compiler_gnu=yes 11320else 11321 ac_compiler_gnu=no 11322fi 11323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11324ac_cv_c_compiler_gnu=$ac_compiler_gnu 11325 11326fi 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11328$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11329if test $ac_compiler_gnu = yes; then 11330 GCC=yes 11331else 11332 GCC= 11333fi 11334ac_test_CFLAGS=${CFLAGS+set} 11335ac_save_CFLAGS=$CFLAGS 11336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11337$as_echo_n "checking whether $CC accepts -g... " >&6; } 11338if test "${ac_cv_prog_cc_g+set}" = set; then : 11339 $as_echo_n "(cached) " >&6 11340else 11341 ac_save_c_werror_flag=$ac_c_werror_flag 11342 ac_c_werror_flag=yes 11343 ac_cv_prog_cc_g=no 11344 CFLAGS="-g" 11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11346/* end confdefs.h. */ 11347 11348int 11349main () 11350{ 11351 11352 ; 11353 return 0; 11354} 11355_ACEOF 11356if ac_fn_c_try_compile "$LINENO"; then : 11357 ac_cv_prog_cc_g=yes 11358else 11359 CFLAGS="" 11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11361/* end confdefs.h. */ 11362 11363int 11364main () 11365{ 11366 11367 ; 11368 return 0; 11369} 11370_ACEOF 11371if ac_fn_c_try_compile "$LINENO"; then : 11372 11373else 11374 ac_c_werror_flag=$ac_save_c_werror_flag 11375 CFLAGS="-g" 11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11377/* end confdefs.h. */ 11378 11379int 11380main () 11381{ 11382 11383 ; 11384 return 0; 11385} 11386_ACEOF 11387if ac_fn_c_try_compile "$LINENO"; then : 11388 ac_cv_prog_cc_g=yes 11389fi 11390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11391fi 11392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11393fi 11394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11395 ac_c_werror_flag=$ac_save_c_werror_flag 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11398$as_echo "$ac_cv_prog_cc_g" >&6; } 11399if test "$ac_test_CFLAGS" = set; then 11400 CFLAGS=$ac_save_CFLAGS 11401elif test $ac_cv_prog_cc_g = yes; then 11402 if test "$GCC" = yes; then 11403 CFLAGS="-g -O2" 11404 else 11405 CFLAGS="-g" 11406 fi 11407else 11408 if test "$GCC" = yes; then 11409 CFLAGS="-O2" 11410 else 11411 CFLAGS= 11412 fi 11413fi 11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11415$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11416if test "${ac_cv_prog_cc_c89+set}" = set; then : 11417 $as_echo_n "(cached) " >&6 11418else 11419 ac_cv_prog_cc_c89=no 11420ac_save_CC=$CC 11421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11422/* end confdefs.h. */ 11423#include <stdarg.h> 11424#include <stdio.h> 11425#include <sys/types.h> 11426#include <sys/stat.h> 11427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11428struct buf { int x; }; 11429FILE * (*rcsopen) (struct buf *, struct stat *, int); 11430static char *e (p, i) 11431 char **p; 11432 int i; 11433{ 11434 return p[i]; 11435} 11436static char *f (char * (*g) (char **, int), char **p, ...) 11437{ 11438 char *s; 11439 va_list v; 11440 va_start (v,p); 11441 s = g (p, va_arg (v,int)); 11442 va_end (v); 11443 return s; 11444} 11445 11446/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11447 function prototypes and stuff, but not '\xHH' hex character constants. 11448 These don't provoke an error unfortunately, instead are silently treated 11449 as 'x'. The following induces an error, until -std is added to get 11450 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11451 array size at least. It's necessary to write '\x00'==0 to get something 11452 that's true only with -std. */ 11453int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11454 11455/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11456 inside strings and character constants. */ 11457#define FOO(x) 'x' 11458int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11459 11460int test (int i, double x); 11461struct s1 {int (*f) (int a);}; 11462struct s2 {int (*f) (double a);}; 11463int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11464int argc; 11465char **argv; 11466int 11467main () 11468{ 11469return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11475 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11476do 11477 CC="$ac_save_CC $ac_arg" 11478 if ac_fn_c_try_compile "$LINENO"; then : 11479 ac_cv_prog_cc_c89=$ac_arg 11480fi 11481rm -f core conftest.err conftest.$ac_objext 11482 test "x$ac_cv_prog_cc_c89" != "xno" && break 11483done 11484rm -f conftest.$ac_ext 11485CC=$ac_save_CC 11486 11487fi 11488# AC_CACHE_VAL 11489case "x$ac_cv_prog_cc_c89" in 11490 x) 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11492$as_echo "none needed" >&6; } ;; 11493 xno) 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11495$as_echo "unsupported" >&6; } ;; 11496 *) 11497 CC="$CC $ac_cv_prog_cc_c89" 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11499$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11500esac 11501if test "x$ac_cv_prog_cc_c89" != xno; then : 11502 11503fi 11504 11505ac_ext=c 11506ac_cpp='$CPP $CPPFLAGS' 11507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11509ac_compiler_gnu=$ac_cv_c_compiler_gnu 11510 11511 11512 11513 11514 11515# Check whether --with-xorg-module-dir was given. 11516if test "${with_xorg_module_dir+set}" = set; then : 11517 withval=$with_xorg_module_dir; moduledir="$withval" 11518else 11519 moduledir="$libdir/xorg/modules" 11520fi 11521 11522 11523# Checks for extensions 11524 11525 11526 SAVE_CFLAGS="$CFLAGS" 11527 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11529/* end confdefs.h. */ 11530 11531#include "xorg-server.h" 11532#if !defined RANDR 11533#error RANDR not defined 11534#endif 11535 11536int 11537main () 11538{ 11539 11540 ; 11541 return 0; 11542} 11543_ACEOF 11544if ac_fn_c_try_compile "$LINENO"; then : 11545 _EXT_CHECK=yes 11546else 11547 _EXT_CHECK=no 11548fi 11549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11550 CFLAGS="$SAVE_CFLAGS" 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 11552$as_echo_n "checking if RANDR is defined... " >&6; } 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11554$as_echo "$_EXT_CHECK" >&6; } 11555 if test "$_EXT_CHECK" != no; then 11556 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11557 fi 11558 11559 11560 11561 SAVE_CFLAGS="$CFLAGS" 11562 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11564/* end confdefs.h. */ 11565 11566#include "xorg-server.h" 11567#if !defined RENDER 11568#error RENDER not defined 11569#endif 11570 11571int 11572main () 11573{ 11574 11575 ; 11576 return 0; 11577} 11578_ACEOF 11579if ac_fn_c_try_compile "$LINENO"; then : 11580 _EXT_CHECK=yes 11581else 11582 _EXT_CHECK=no 11583fi 11584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11585 CFLAGS="$SAVE_CFLAGS" 11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 11587$as_echo_n "checking if RENDER is defined... " >&6; } 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11589$as_echo "$_EXT_CHECK" >&6; } 11590 if test "$_EXT_CHECK" != no; then 11591 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 11592 fi 11593 11594 11595 11596 SAVE_CFLAGS="$CFLAGS" 11597 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11599/* end confdefs.h. */ 11600 11601#include "xorg-server.h" 11602#if !defined XV 11603#error XV not defined 11604#endif 11605 11606int 11607main () 11608{ 11609 11610 ; 11611 return 0; 11612} 11613_ACEOF 11614if ac_fn_c_try_compile "$LINENO"; then : 11615 _EXT_CHECK=yes 11616else 11617 _EXT_CHECK=no 11618fi 11619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11620 CFLAGS="$SAVE_CFLAGS" 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 11622$as_echo_n "checking if XV is defined... " >&6; } 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11624$as_echo "$_EXT_CHECK" >&6; } 11625 if test "$_EXT_CHECK" != no; then 11626 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 11627 fi 11628 11629 11630 11631 SAVE_CFLAGS="$CFLAGS" 11632 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11634/* end confdefs.h. */ 11635 11636#include "xorg-server.h" 11637#if !defined DPMSExtension 11638#error DPMSExtension not defined 11639#endif 11640 11641int 11642main () 11643{ 11644 11645 ; 11646 return 0; 11647} 11648_ACEOF 11649if ac_fn_c_try_compile "$LINENO"; then : 11650 _EXT_CHECK=yes 11651else 11652 _EXT_CHECK=no 11653fi 11654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11655 CFLAGS="$SAVE_CFLAGS" 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 11657$as_echo_n "checking if DPMSExtension is defined... " >&6; } 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11659$as_echo "$_EXT_CHECK" >&6; } 11660 if test "$_EXT_CHECK" != no; then 11661 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 11662 fi 11663 11664 11665# Checks for pkg-config packages 11666 11667pkg_failed=no 11668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11669$as_echo_n "checking for XORG... " >&6; } 11670 11671if test -n "$XORG_CFLAGS"; then 11672 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 11673 elif test -n "$PKG_CONFIG"; then 11674 if test -n "$PKG_CONFIG" && \ 11675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11676 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 11677 ac_status=$? 11678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11679 test $ac_status = 0; }; then 11680 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11681else 11682 pkg_failed=yes 11683fi 11684 else 11685 pkg_failed=untried 11686fi 11687if test -n "$XORG_LIBS"; then 11688 pkg_cv_XORG_LIBS="$XORG_LIBS" 11689 elif test -n "$PKG_CONFIG"; then 11690 if test -n "$PKG_CONFIG" && \ 11691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11692 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 11693 ac_status=$? 11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11695 test $ac_status = 0; }; then 11696 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11697else 11698 pkg_failed=yes 11699fi 11700 else 11701 pkg_failed=untried 11702fi 11703 11704 11705 11706if test $pkg_failed = yes; then 11707 11708if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11709 _pkg_short_errors_supported=yes 11710else 11711 _pkg_short_errors_supported=no 11712fi 11713 if test $_pkg_short_errors_supported = yes; then 11714 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 11715 else 11716 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 11717 fi 11718 # Put the nasty error message in config.log where it belongs 11719 echo "$XORG_PKG_ERRORS" >&5 11720 11721 as_fn_error "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 11722 11723$XORG_PKG_ERRORS 11724 11725Consider adjusting the PKG_CONFIG_PATH environment variable if you 11726installed software in a non-standard prefix. 11727 11728Alternatively, you may set the environment variables XORG_CFLAGS 11729and XORG_LIBS to avoid the need to call pkg-config. 11730See the pkg-config man page for more details. 11731" "$LINENO" 5 11732elif test $pkg_failed = untried; then 11733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11735as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11736is in your PATH or set the PKG_CONFIG environment variable to the full 11737path to pkg-config. 11738 11739Alternatively, you may set the environment variables XORG_CFLAGS 11740and XORG_LIBS to avoid the need to call pkg-config. 11741See the pkg-config man page for more details. 11742 11743To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11744See \`config.log' for more details." "$LINENO" 5; } 11745else 11746 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 11747 XORG_LIBS=$pkg_cv_XORG_LIBS 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11749$as_echo "yes" >&6; } 11750 : 11751fi 11752 11753pkg_failed=no 11754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 11755$as_echo_n "checking for XEXT... " >&6; } 11756 11757if test -n "$XEXT_CFLAGS"; then 11758 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 11759 elif test -n "$PKG_CONFIG"; then 11760 if test -n "$PKG_CONFIG" && \ 11761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 11762 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 11763 ac_status=$? 11764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11765 test $ac_status = 0; }; then 11766 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 11767else 11768 pkg_failed=yes 11769fi 11770 else 11771 pkg_failed=untried 11772fi 11773if test -n "$XEXT_LIBS"; then 11774 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 11775 elif test -n "$PKG_CONFIG"; then 11776 if test -n "$PKG_CONFIG" && \ 11777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 11778 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 11779 ac_status=$? 11780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11781 test $ac_status = 0; }; then 11782 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 11783else 11784 pkg_failed=yes 11785fi 11786 else 11787 pkg_failed=untried 11788fi 11789 11790 11791 11792if test $pkg_failed = yes; then 11793 11794if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11795 _pkg_short_errors_supported=yes 11796else 11797 _pkg_short_errors_supported=no 11798fi 11799 if test $_pkg_short_errors_supported = yes; then 11800 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 11801 else 11802 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 11803 fi 11804 # Put the nasty error message in config.log where it belongs 11805 echo "$XEXT_PKG_ERRORS" >&5 11806 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11808$as_echo "no" >&6; } 11809 HAVE_XEXTPROTO_71="no" 11810elif test $pkg_failed = untried; then 11811 HAVE_XEXTPROTO_71="no" 11812else 11813 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 11814 XEXT_LIBS=$pkg_cv_XEXT_LIBS 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11816$as_echo "yes" >&6; } 11817 HAVE_XEXTPROTO_71="yes"; 11818$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 11819 11820fi 11821 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 11822 HAVE_XEXTPROTO_71_TRUE= 11823 HAVE_XEXTPROTO_71_FALSE='#' 11824else 11825 HAVE_XEXTPROTO_71_TRUE='#' 11826 HAVE_XEXTPROTO_71_FALSE= 11827fi 11828 11829 11830# Checks for libraries. 11831SAVE_CPPFLAGS="$CPPFLAGS" 11832CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 11833ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 11834" 11835if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then : 11836 XSERVER_LIBPCIACCESS=yes 11837else 11838 XSERVER_LIBPCIACCESS=no 11839fi 11840 11841ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\" 11842" 11843if test "x$ac_cv_header_xf86Modes_h" = x""yes; then : 11844 XMODES=yes 11845else 11846 XMODES=no 11847fi 11848 11849 11850CPPFLAGS="$SAVE_CPPFLAGS" 11851 11852# Checks for header files. 11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11854$as_echo_n "checking for ANSI C header files... " >&6; } 11855if test "${ac_cv_header_stdc+set}" = set; then : 11856 $as_echo_n "(cached) " >&6 11857else 11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11859/* end confdefs.h. */ 11860#include <stdlib.h> 11861#include <stdarg.h> 11862#include <string.h> 11863#include <float.h> 11864 11865int 11866main () 11867{ 11868 11869 ; 11870 return 0; 11871} 11872_ACEOF 11873if ac_fn_c_try_compile "$LINENO"; then : 11874 ac_cv_header_stdc=yes 11875else 11876 ac_cv_header_stdc=no 11877fi 11878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11879 11880if test $ac_cv_header_stdc = yes; then 11881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11883/* end confdefs.h. */ 11884#include <string.h> 11885 11886_ACEOF 11887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11888 $EGREP "memchr" >/dev/null 2>&1; then : 11889 11890else 11891 ac_cv_header_stdc=no 11892fi 11893rm -f conftest* 11894 11895fi 11896 11897if test $ac_cv_header_stdc = yes; then 11898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11900/* end confdefs.h. */ 11901#include <stdlib.h> 11902 11903_ACEOF 11904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11905 $EGREP "free" >/dev/null 2>&1; then : 11906 11907else 11908 ac_cv_header_stdc=no 11909fi 11910rm -f conftest* 11911 11912fi 11913 11914if test $ac_cv_header_stdc = yes; then 11915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11916 if test "$cross_compiling" = yes; then : 11917 : 11918else 11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11920/* end confdefs.h. */ 11921#include <ctype.h> 11922#include <stdlib.h> 11923#if ((' ' & 0x0FF) == 0x020) 11924# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11925# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11926#else 11927# define ISLOWER(c) \ 11928 (('a' <= (c) && (c) <= 'i') \ 11929 || ('j' <= (c) && (c) <= 'r') \ 11930 || ('s' <= (c) && (c) <= 'z')) 11931# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11932#endif 11933 11934#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11935int 11936main () 11937{ 11938 int i; 11939 for (i = 0; i < 256; i++) 11940 if (XOR (islower (i), ISLOWER (i)) 11941 || toupper (i) != TOUPPER (i)) 11942 return 2; 11943 return 0; 11944} 11945_ACEOF 11946if ac_fn_c_try_run "$LINENO"; then : 11947 11948else 11949 ac_cv_header_stdc=no 11950fi 11951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11952 conftest.$ac_objext conftest.beam conftest.$ac_ext 11953fi 11954 11955fi 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11958$as_echo "$ac_cv_header_stdc" >&6; } 11959if test $ac_cv_header_stdc = yes; then 11960 11961$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11962 11963fi 11964 11965 11966if test "x$XSERVER_LIBPCIACCESS" = xyes; then 11967 11968pkg_failed=no 11969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 11970$as_echo_n "checking for PCIACCESS... " >&6; } 11971 11972if test -n "$PCIACCESS_CFLAGS"; then 11973 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 11974 elif test -n "$PKG_CONFIG"; then 11975 if test -n "$PKG_CONFIG" && \ 11976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 11977 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 11978 ac_status=$? 11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11980 test $ac_status = 0; }; then 11981 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 11982else 11983 pkg_failed=yes 11984fi 11985 else 11986 pkg_failed=untried 11987fi 11988if test -n "$PCIACCESS_LIBS"; then 11989 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 11990 elif test -n "$PKG_CONFIG"; then 11991 if test -n "$PKG_CONFIG" && \ 11992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 11993 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 11994 ac_status=$? 11995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11996 test $ac_status = 0; }; then 11997 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 11998else 11999 pkg_failed=yes 12000fi 12001 else 12002 pkg_failed=untried 12003fi 12004 12005 12006 12007if test $pkg_failed = yes; then 12008 12009if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12010 _pkg_short_errors_supported=yes 12011else 12012 _pkg_short_errors_supported=no 12013fi 12014 if test $_pkg_short_errors_supported = yes; then 12015 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 12016 else 12017 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 12018 fi 12019 # Put the nasty error message in config.log where it belongs 12020 echo "$PCIACCESS_PKG_ERRORS" >&5 12021 12022 as_fn_error "Package requirements (pciaccess >= 0.8.0) were not met: 12023 12024$PCIACCESS_PKG_ERRORS 12025 12026Consider adjusting the PKG_CONFIG_PATH environment variable if you 12027installed software in a non-standard prefix. 12028 12029Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12030and PCIACCESS_LIBS to avoid the need to call pkg-config. 12031See the pkg-config man page for more details. 12032" "$LINENO" 5 12033elif test $pkg_failed = untried; then 12034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12036as_fn_error "The pkg-config script could not be found or is too old. Make sure it 12037is in your PATH or set the PKG_CONFIG environment variable to the full 12038path to pkg-config. 12039 12040Alternatively, you may set the environment variables PCIACCESS_CFLAGS 12041and PCIACCESS_LIBS to avoid the need to call pkg-config. 12042See the pkg-config man page for more details. 12043 12044To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12045See \`config.log' for more details." "$LINENO" 5; } 12046else 12047 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 12048 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12050$as_echo "yes" >&6; } 12051 : 12052fi 12053fi 12054 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 12055 XSERVER_LIBPCIACCESS_TRUE= 12056 XSERVER_LIBPCIACCESS_FALSE='#' 12057else 12058 XSERVER_LIBPCIACCESS_TRUE='#' 12059 XSERVER_LIBPCIACCESS_FALSE= 12060fi 12061 12062 if test "x$XMODES" = xyes; then 12063 XMODES_TRUE= 12064 XMODES_FALSE='#' 12065else 12066 XMODES_TRUE='#' 12067 XMODES_FALSE= 12068fi 12069 12070 12071if test "x$XMODES" = xyes; then 12072 12073$as_echo "#define HAVE_XMODES 1" >>confdefs.h 12074 12075fi 12076 12077 12078 12079DRIVER_NAME=siliconmotion 12080 12081 12082ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 12083 12084cat >confcache <<\_ACEOF 12085# This file is a shell script that caches the results of configure 12086# tests run on this system so they can be shared between configure 12087# scripts and configure runs, see configure's option --config-cache. 12088# It is not useful on other systems. If it contains results you don't 12089# want to keep, you may remove or edit it. 12090# 12091# config.status only pays attention to the cache file if you give it 12092# the --recheck option to rerun configure. 12093# 12094# `ac_cv_env_foo' variables (set or unset) will be overridden when 12095# loading this file, other *unset* `ac_cv_foo' will be assigned the 12096# following values. 12097 12098_ACEOF 12099 12100# The following way of writing the cache mishandles newlines in values, 12101# but we know of no workaround that is simple, portable, and efficient. 12102# So, we kill variables containing newlines. 12103# Ultrix sh set writes to stderr and can't be redirected directly, 12104# and sets the high bit in the cache file unless we assign to the vars. 12105( 12106 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12107 eval ac_val=\$$ac_var 12108 case $ac_val in #( 12109 *${as_nl}*) 12110 case $ac_var in #( 12111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12112$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12113 esac 12114 case $ac_var in #( 12115 _ | IFS | as_nl) ;; #( 12116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12117 *) { eval $ac_var=; unset $ac_var;} ;; 12118 esac ;; 12119 esac 12120 done 12121 12122 (set) 2>&1 | 12123 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12124 *${as_nl}ac_space=\ *) 12125 # `set' does not quote correctly, so add quotes: double-quote 12126 # substitution turns \\\\ into \\, and sed turns \\ into \. 12127 sed -n \ 12128 "s/'/'\\\\''/g; 12129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12130 ;; #( 12131 *) 12132 # `set' quotes correctly as required by POSIX, so do not add quotes. 12133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12134 ;; 12135 esac | 12136 sort 12137) | 12138 sed ' 12139 /^ac_cv_env_/b end 12140 t clear 12141 :clear 12142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12143 t end 12144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12145 :end' >>confcache 12146if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12147 if test -w "$cache_file"; then 12148 test "x$cache_file" != "x/dev/null" && 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12150$as_echo "$as_me: updating cache $cache_file" >&6;} 12151 cat confcache >$cache_file 12152 else 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12154$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12155 fi 12156fi 12157rm -f confcache 12158 12159test "x$prefix" = xNONE && prefix=$ac_default_prefix 12160# Let make expand exec_prefix. 12161test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12162 12163DEFS=-DHAVE_CONFIG_H 12164 12165ac_libobjs= 12166ac_ltlibobjs= 12167for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12168 # 1. Remove the extension, and $U if already installed. 12169 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12170 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12171 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12172 # will be set to the directory where LIBOBJS objects are built. 12173 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12174 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12175done 12176LIBOBJS=$ac_libobjs 12177 12178LTLIBOBJS=$ac_ltlibobjs 12179 12180 12181if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12182 as_fn_error "conditional \"AMDEP\" was never defined. 12183Usually this means the macro was only invoked conditionally." "$LINENO" 5 12184fi 12185if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12186 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12187Usually this means the macro was only invoked conditionally." "$LINENO" 5 12188fi 12189 if test -n "$EXEEXT"; then 12190 am__EXEEXT_TRUE= 12191 am__EXEEXT_FALSE='#' 12192else 12193 am__EXEEXT_TRUE='#' 12194 am__EXEEXT_FALSE= 12195fi 12196 12197if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12198 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 12199Usually this means the macro was only invoked conditionally." "$LINENO" 5 12200fi 12201if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 12202 as_fn_error "conditional \"HAVE_XEXTPROTO_71\" was never defined. 12203Usually this means the macro was only invoked conditionally." "$LINENO" 5 12204fi 12205if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 12206 as_fn_error "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 12207Usually this means the macro was only invoked conditionally." "$LINENO" 5 12208fi 12209if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then 12210 as_fn_error "conditional \"XMODES\" was never defined. 12211Usually this means the macro was only invoked conditionally." "$LINENO" 5 12212fi 12213 12214: ${CONFIG_STATUS=./config.status} 12215ac_write_fail=0 12216ac_clean_files_save=$ac_clean_files 12217ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12218{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12219$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12220as_write_fail=0 12221cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12222#! $SHELL 12223# Generated by $as_me. 12224# Run this file to recreate the current configuration. 12225# Compiler output produced by configure, useful for debugging 12226# configure, is in config.log if it exists. 12227 12228debug=false 12229ac_cs_recheck=false 12230ac_cs_silent=false 12231 12232SHELL=\${CONFIG_SHELL-$SHELL} 12233export SHELL 12234_ASEOF 12235cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12236## -------------------- ## 12237## M4sh Initialization. ## 12238## -------------------- ## 12239 12240# Be more Bourne compatible 12241DUALCASE=1; export DUALCASE # for MKS sh 12242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12243 emulate sh 12244 NULLCMD=: 12245 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12246 # is contrary to our usage. Disable this feature. 12247 alias -g '${1+"$@"}'='"$@"' 12248 setopt NO_GLOB_SUBST 12249else 12250 case `(set -o) 2>/dev/null` in #( 12251 *posix*) : 12252 set -o posix ;; #( 12253 *) : 12254 ;; 12255esac 12256fi 12257 12258 12259as_nl=' 12260' 12261export as_nl 12262# Printing a long string crashes Solaris 7 /usr/bin/printf. 12263as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12265as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12266# Prefer a ksh shell builtin over an external printf program on Solaris, 12267# but without wasting forks for bash or zsh. 12268if test -z "$BASH_VERSION$ZSH_VERSION" \ 12269 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12270 as_echo='print -r --' 12271 as_echo_n='print -rn --' 12272elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12273 as_echo='printf %s\n' 12274 as_echo_n='printf %s' 12275else 12276 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12277 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12278 as_echo_n='/usr/ucb/echo -n' 12279 else 12280 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12281 as_echo_n_body='eval 12282 arg=$1; 12283 case $arg in #( 12284 *"$as_nl"*) 12285 expr "X$arg" : "X\\(.*\\)$as_nl"; 12286 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12287 esac; 12288 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12289 ' 12290 export as_echo_n_body 12291 as_echo_n='sh -c $as_echo_n_body as_echo' 12292 fi 12293 export as_echo_body 12294 as_echo='sh -c $as_echo_body as_echo' 12295fi 12296 12297# The user is always right. 12298if test "${PATH_SEPARATOR+set}" != set; then 12299 PATH_SEPARATOR=: 12300 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12301 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12302 PATH_SEPARATOR=';' 12303 } 12304fi 12305 12306 12307# IFS 12308# We need space, tab and new line, in precisely that order. Quoting is 12309# there to prevent editors from complaining about space-tab. 12310# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12311# splitting by setting IFS to empty value.) 12312IFS=" "" $as_nl" 12313 12314# Find who we are. Look in the path if we contain no directory separator. 12315case $0 in #(( 12316 *[\\/]* ) as_myself=$0 ;; 12317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12318for as_dir in $PATH 12319do 12320 IFS=$as_save_IFS 12321 test -z "$as_dir" && as_dir=. 12322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12323 done 12324IFS=$as_save_IFS 12325 12326 ;; 12327esac 12328# We did not find ourselves, most probably we were run as `sh COMMAND' 12329# in which case we are not to be found in the path. 12330if test "x$as_myself" = x; then 12331 as_myself=$0 12332fi 12333if test ! -f "$as_myself"; then 12334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12335 exit 1 12336fi 12337 12338# Unset variables that we do not need and which cause bugs (e.g. in 12339# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12340# suppresses any "Segmentation fault" message there. '((' could 12341# trigger a bug in pdksh 5.2.14. 12342for as_var in BASH_ENV ENV MAIL MAILPATH 12343do eval test x\${$as_var+set} = xset \ 12344 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12345done 12346PS1='$ ' 12347PS2='> ' 12348PS4='+ ' 12349 12350# NLS nuisances. 12351LC_ALL=C 12352export LC_ALL 12353LANGUAGE=C 12354export LANGUAGE 12355 12356# CDPATH. 12357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12358 12359 12360# as_fn_error ERROR [LINENO LOG_FD] 12361# --------------------------------- 12362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12364# script with status $?, using 1 if that was 0. 12365as_fn_error () 12366{ 12367 as_status=$?; test $as_status -eq 0 && as_status=1 12368 if test "$3"; then 12369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12371 fi 12372 $as_echo "$as_me: error: $1" >&2 12373 as_fn_exit $as_status 12374} # as_fn_error 12375 12376 12377# as_fn_set_status STATUS 12378# ----------------------- 12379# Set $? to STATUS, without forking. 12380as_fn_set_status () 12381{ 12382 return $1 12383} # as_fn_set_status 12384 12385# as_fn_exit STATUS 12386# ----------------- 12387# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12388as_fn_exit () 12389{ 12390 set +e 12391 as_fn_set_status $1 12392 exit $1 12393} # as_fn_exit 12394 12395# as_fn_unset VAR 12396# --------------- 12397# Portably unset VAR. 12398as_fn_unset () 12399{ 12400 { eval $1=; unset $1;} 12401} 12402as_unset=as_fn_unset 12403# as_fn_append VAR VALUE 12404# ---------------------- 12405# Append the text in VALUE to the end of the definition contained in VAR. Take 12406# advantage of any shell optimizations that allow amortized linear growth over 12407# repeated appends, instead of the typical quadratic growth present in naive 12408# implementations. 12409if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12410 eval 'as_fn_append () 12411 { 12412 eval $1+=\$2 12413 }' 12414else 12415 as_fn_append () 12416 { 12417 eval $1=\$$1\$2 12418 } 12419fi # as_fn_append 12420 12421# as_fn_arith ARG... 12422# ------------------ 12423# Perform arithmetic evaluation on the ARGs, and store the result in the 12424# global $as_val. Take advantage of shells that can avoid forks. The arguments 12425# must be portable across $(()) and expr. 12426if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12427 eval 'as_fn_arith () 12428 { 12429 as_val=$(( $* )) 12430 }' 12431else 12432 as_fn_arith () 12433 { 12434 as_val=`expr "$@" || test $? -eq 1` 12435 } 12436fi # as_fn_arith 12437 12438 12439if expr a : '\(a\)' >/dev/null 2>&1 && 12440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12441 as_expr=expr 12442else 12443 as_expr=false 12444fi 12445 12446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12447 as_basename=basename 12448else 12449 as_basename=false 12450fi 12451 12452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12453 as_dirname=dirname 12454else 12455 as_dirname=false 12456fi 12457 12458as_me=`$as_basename -- "$0" || 12459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12460 X"$0" : 'X\(//\)$' \| \ 12461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12462$as_echo X/"$0" | 12463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12464 s//\1/ 12465 q 12466 } 12467 /^X\/\(\/\/\)$/{ 12468 s//\1/ 12469 q 12470 } 12471 /^X\/\(\/\).*/{ 12472 s//\1/ 12473 q 12474 } 12475 s/.*/./; q'` 12476 12477# Avoid depending upon Character Ranges. 12478as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12481as_cr_digits='0123456789' 12482as_cr_alnum=$as_cr_Letters$as_cr_digits 12483 12484ECHO_C= ECHO_N= ECHO_T= 12485case `echo -n x` in #((((( 12486-n*) 12487 case `echo 'xy\c'` in 12488 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12489 xy) ECHO_C='\c';; 12490 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12491 ECHO_T=' ';; 12492 esac;; 12493*) 12494 ECHO_N='-n';; 12495esac 12496 12497rm -f conf$$ conf$$.exe conf$$.file 12498if test -d conf$$.dir; then 12499 rm -f conf$$.dir/conf$$.file 12500else 12501 rm -f conf$$.dir 12502 mkdir conf$$.dir 2>/dev/null 12503fi 12504if (echo >conf$$.file) 2>/dev/null; then 12505 if ln -s conf$$.file conf$$ 2>/dev/null; then 12506 as_ln_s='ln -s' 12507 # ... but there are two gotchas: 12508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12510 # In both cases, we have to default to `cp -p'. 12511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12512 as_ln_s='cp -p' 12513 elif ln conf$$.file conf$$ 2>/dev/null; then 12514 as_ln_s=ln 12515 else 12516 as_ln_s='cp -p' 12517 fi 12518else 12519 as_ln_s='cp -p' 12520fi 12521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12522rmdir conf$$.dir 2>/dev/null 12523 12524 12525# as_fn_mkdir_p 12526# ------------- 12527# Create "$as_dir" as a directory, including parents if necessary. 12528as_fn_mkdir_p () 12529{ 12530 12531 case $as_dir in #( 12532 -*) as_dir=./$as_dir;; 12533 esac 12534 test -d "$as_dir" || eval $as_mkdir_p || { 12535 as_dirs= 12536 while :; do 12537 case $as_dir in #( 12538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12539 *) as_qdir=$as_dir;; 12540 esac 12541 as_dirs="'$as_qdir' $as_dirs" 12542 as_dir=`$as_dirname -- "$as_dir" || 12543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12544 X"$as_dir" : 'X\(//\)[^/]' \| \ 12545 X"$as_dir" : 'X\(//\)$' \| \ 12546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12547$as_echo X"$as_dir" | 12548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12549 s//\1/ 12550 q 12551 } 12552 /^X\(\/\/\)[^/].*/{ 12553 s//\1/ 12554 q 12555 } 12556 /^X\(\/\/\)$/{ 12557 s//\1/ 12558 q 12559 } 12560 /^X\(\/\).*/{ 12561 s//\1/ 12562 q 12563 } 12564 s/.*/./; q'` 12565 test -d "$as_dir" && break 12566 done 12567 test -z "$as_dirs" || eval "mkdir $as_dirs" 12568 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12569 12570 12571} # as_fn_mkdir_p 12572if mkdir -p . 2>/dev/null; then 12573 as_mkdir_p='mkdir -p "$as_dir"' 12574else 12575 test -d ./-p && rmdir ./-p 12576 as_mkdir_p=false 12577fi 12578 12579if test -x / >/dev/null 2>&1; then 12580 as_test_x='test -x' 12581else 12582 if ls -dL / >/dev/null 2>&1; then 12583 as_ls_L_option=L 12584 else 12585 as_ls_L_option= 12586 fi 12587 as_test_x=' 12588 eval sh -c '\'' 12589 if test -d "$1"; then 12590 test -d "$1/."; 12591 else 12592 case $1 in #( 12593 -*)set "./$1";; 12594 esac; 12595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12596 ???[sx]*):;;*)false;;esac;fi 12597 '\'' sh 12598 ' 12599fi 12600as_executable_p=$as_test_x 12601 12602# Sed expression to map a string onto a valid CPP name. 12603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12604 12605# Sed expression to map a string onto a valid variable name. 12606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12607 12608 12609exec 6>&1 12610## ----------------------------------- ## 12611## Main body of $CONFIG_STATUS script. ## 12612## ----------------------------------- ## 12613_ASEOF 12614test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12615 12616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12617# Save the log message, to keep $0 and so on meaningful, and to 12618# report actual input values of CONFIG_FILES etc. instead of their 12619# values after options handling. 12620ac_log=" 12621This file was extended by xf86-video-siliconmotion $as_me 1.7.4, which was 12622generated by GNU Autoconf 2.65. Invocation command line was 12623 12624 CONFIG_FILES = $CONFIG_FILES 12625 CONFIG_HEADERS = $CONFIG_HEADERS 12626 CONFIG_LINKS = $CONFIG_LINKS 12627 CONFIG_COMMANDS = $CONFIG_COMMANDS 12628 $ $0 $@ 12629 12630on `(hostname || uname -n) 2>/dev/null | sed 1q` 12631" 12632 12633_ACEOF 12634 12635case $ac_config_files in *" 12636"*) set x $ac_config_files; shift; ac_config_files=$*;; 12637esac 12638 12639case $ac_config_headers in *" 12640"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12641esac 12642 12643 12644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12645# Files that config.status was made for. 12646config_files="$ac_config_files" 12647config_headers="$ac_config_headers" 12648config_commands="$ac_config_commands" 12649 12650_ACEOF 12651 12652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12653ac_cs_usage="\ 12654\`$as_me' instantiates files and other configuration actions 12655from templates according to the current configuration. Unless the files 12656and actions are specified as TAGs, all are instantiated by default. 12657 12658Usage: $0 [OPTION]... [TAG]... 12659 12660 -h, --help print this help, then exit 12661 -V, --version print version number and configuration settings, then exit 12662 --config print configuration, then exit 12663 -q, --quiet, --silent 12664 do not print progress messages 12665 -d, --debug don't remove temporary files 12666 --recheck update $as_me by reconfiguring in the same conditions 12667 --file=FILE[:TEMPLATE] 12668 instantiate the configuration file FILE 12669 --header=FILE[:TEMPLATE] 12670 instantiate the configuration header FILE 12671 12672Configuration files: 12673$config_files 12674 12675Configuration headers: 12676$config_headers 12677 12678Configuration commands: 12679$config_commands 12680 12681Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12682 12683_ACEOF 12684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12685ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12686ac_cs_version="\\ 12687xf86-video-siliconmotion config.status 1.7.4 12688configured by $0, generated by GNU Autoconf 2.65, 12689 with options \\"\$ac_cs_config\\" 12690 12691Copyright (C) 2009 Free Software Foundation, Inc. 12692This config.status script is free software; the Free Software Foundation 12693gives unlimited permission to copy, distribute and modify it." 12694 12695ac_pwd='$ac_pwd' 12696srcdir='$srcdir' 12697INSTALL='$INSTALL' 12698MKDIR_P='$MKDIR_P' 12699AWK='$AWK' 12700test -n "\$AWK" || AWK=awk 12701_ACEOF 12702 12703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12704# The default lists apply if the user does not specify any file. 12705ac_need_defaults=: 12706while test $# != 0 12707do 12708 case $1 in 12709 --*=*) 12710 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12711 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12712 ac_shift=: 12713 ;; 12714 *) 12715 ac_option=$1 12716 ac_optarg=$2 12717 ac_shift=shift 12718 ;; 12719 esac 12720 12721 case $ac_option in 12722 # Handling of the options. 12723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12724 ac_cs_recheck=: ;; 12725 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12726 $as_echo "$ac_cs_version"; exit ;; 12727 --config | --confi | --conf | --con | --co | --c ) 12728 $as_echo "$ac_cs_config"; exit ;; 12729 --debug | --debu | --deb | --de | --d | -d ) 12730 debug=: ;; 12731 --file | --fil | --fi | --f ) 12732 $ac_shift 12733 case $ac_optarg in 12734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12735 esac 12736 as_fn_append CONFIG_FILES " '$ac_optarg'" 12737 ac_need_defaults=false;; 12738 --header | --heade | --head | --hea ) 12739 $ac_shift 12740 case $ac_optarg in 12741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12742 esac 12743 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12744 ac_need_defaults=false;; 12745 --he | --h) 12746 # Conflict between --help and --header 12747 as_fn_error "ambiguous option: \`$1' 12748Try \`$0 --help' for more information.";; 12749 --help | --hel | -h ) 12750 $as_echo "$ac_cs_usage"; exit ;; 12751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12752 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12753 ac_cs_silent=: ;; 12754 12755 # This is an error. 12756 -*) as_fn_error "unrecognized option: \`$1' 12757Try \`$0 --help' for more information." ;; 12758 12759 *) as_fn_append ac_config_targets " $1" 12760 ac_need_defaults=false ;; 12761 12762 esac 12763 shift 12764done 12765 12766ac_configure_extra_args= 12767 12768if $ac_cs_silent; then 12769 exec 6>/dev/null 12770 ac_configure_extra_args="$ac_configure_extra_args --silent" 12771fi 12772 12773_ACEOF 12774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12775if \$ac_cs_recheck; then 12776 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12777 shift 12778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12779 CONFIG_SHELL='$SHELL' 12780 export CONFIG_SHELL 12781 exec "\$@" 12782fi 12783 12784_ACEOF 12785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12786exec 5>>config.log 12787{ 12788 echo 12789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12790## Running $as_me. ## 12791_ASBOX 12792 $as_echo "$ac_log" 12793} >&5 12794 12795_ACEOF 12796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12797# 12798# INIT-COMMANDS 12799# 12800AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12801 12802 12803# The HP-UX ksh and POSIX shell print the target directory to stdout 12804# if CDPATH is set. 12805(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12806 12807sed_quote_subst='$sed_quote_subst' 12808double_quote_subst='$double_quote_subst' 12809delay_variable_subst='$delay_variable_subst' 12810enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12811macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12812macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12813enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12814pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12815enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12816host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12817host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12818host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12819build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12820build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12821build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12822SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12823Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12824GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12825EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12826FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12827LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12828NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12829LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12830max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12831ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12832exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12833lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12834lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12835lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12836reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12837reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12838OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12839deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12840file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12841AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12842AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12843STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12844RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12845old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12846old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12847old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12848CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12849CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12850compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12851GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12852lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12853lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12854lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 12855lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12856objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12857SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12858ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12859MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12860lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12861lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12862lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12863lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12864lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12865need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12866DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12867NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12868LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12869OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12870OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12871libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12872shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12873extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12874archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12875enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12876export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12877whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12878compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12879old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12880old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12881archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12882archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12883module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12884module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12885with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12886allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12887no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12888hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12889hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12890hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12891hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12892hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12893hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12894hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12895hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12896inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12897link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12898fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12899always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12900export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12901exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12902include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12903prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12904file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12905variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12906need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12907need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12908version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12909runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12910shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12911shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12912libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12913library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12914soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12915postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12916postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12917finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12918finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12919hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12920sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12921sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12922hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12923enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12924enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12925enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12926old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12927striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12928 12929LTCC='$LTCC' 12930LTCFLAGS='$LTCFLAGS' 12931compiler='$compiler_DEFAULT' 12932 12933# Quote evaled strings. 12934for var in SED \ 12935GREP \ 12936EGREP \ 12937FGREP \ 12938LD \ 12939NM \ 12940LN_S \ 12941lt_SP2NL \ 12942lt_NL2SP \ 12943reload_flag \ 12944OBJDUMP \ 12945deplibs_check_method \ 12946file_magic_cmd \ 12947AR \ 12948AR_FLAGS \ 12949STRIP \ 12950RANLIB \ 12951CC \ 12952CFLAGS \ 12953compiler \ 12954lt_cv_sys_global_symbol_pipe \ 12955lt_cv_sys_global_symbol_to_cdecl \ 12956lt_cv_sys_global_symbol_to_c_name_address \ 12957lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12958SHELL \ 12959ECHO \ 12960lt_prog_compiler_no_builtin_flag \ 12961lt_prog_compiler_wl \ 12962lt_prog_compiler_pic \ 12963lt_prog_compiler_static \ 12964lt_cv_prog_compiler_c_o \ 12965need_locks \ 12966DSYMUTIL \ 12967NMEDIT \ 12968LIPO \ 12969OTOOL \ 12970OTOOL64 \ 12971shrext_cmds \ 12972export_dynamic_flag_spec \ 12973whole_archive_flag_spec \ 12974compiler_needs_object \ 12975with_gnu_ld \ 12976allow_undefined_flag \ 12977no_undefined_flag \ 12978hardcode_libdir_flag_spec \ 12979hardcode_libdir_flag_spec_ld \ 12980hardcode_libdir_separator \ 12981fix_srcfile_path \ 12982exclude_expsyms \ 12983include_expsyms \ 12984file_list_spec \ 12985variables_saved_for_relink \ 12986libname_spec \ 12987library_names_spec \ 12988soname_spec \ 12989finish_eval \ 12990old_striplib \ 12991striplib; do 12992 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12993 *[\\\\\\\`\\"\\\$]*) 12994 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12995 ;; 12996 *) 12997 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12998 ;; 12999 esac 13000done 13001 13002# Double-quote double-evaled strings. 13003for var in reload_cmds \ 13004old_postinstall_cmds \ 13005old_postuninstall_cmds \ 13006old_archive_cmds \ 13007extract_expsyms_cmds \ 13008old_archive_from_new_cmds \ 13009old_archive_from_expsyms_cmds \ 13010archive_cmds \ 13011archive_expsym_cmds \ 13012module_cmds \ 13013module_expsym_cmds \ 13014export_symbols_cmds \ 13015prelink_cmds \ 13016postinstall_cmds \ 13017postuninstall_cmds \ 13018finish_cmds \ 13019sys_lib_search_path_spec \ 13020sys_lib_dlsearch_path_spec; do 13021 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13022 *[\\\\\\\`\\"\\\$]*) 13023 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13024 ;; 13025 *) 13026 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13027 ;; 13028 esac 13029done 13030 13031# Fix-up fallback echo if it was mangled by the above quoting rules. 13032case \$lt_ECHO in 13033*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13034 ;; 13035esac 13036 13037ac_aux_dir='$ac_aux_dir' 13038xsi_shell='$xsi_shell' 13039lt_shell_append='$lt_shell_append' 13040 13041# See if we are running on zsh, and set the options which allow our 13042# commands through without removal of \ escapes INIT. 13043if test -n "\${ZSH_VERSION+set}" ; then 13044 setopt NO_GLOB_SUBST 13045fi 13046 13047 13048 PACKAGE='$PACKAGE' 13049 VERSION='$VERSION' 13050 TIMESTAMP='$TIMESTAMP' 13051 RM='$RM' 13052 ofile='$ofile' 13053 13054 13055 13056 13057_ACEOF 13058 13059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13060 13061# Handling of arguments. 13062for ac_config_target in $ac_config_targets 13063do 13064 case $ac_config_target in 13065 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13066 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13067 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13068 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13069 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13070 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13071 13072 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13073 esac 13074done 13075 13076 13077# If the user did not use the arguments to specify the items to instantiate, 13078# then the envvar interface is used. Set only those that are not. 13079# We use the long form for the default assignment because of an extremely 13080# bizarre bug on SunOS 4.1.3. 13081if $ac_need_defaults; then 13082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13083 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13084 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13085fi 13086 13087# Have a temporary directory for convenience. Make it in the build tree 13088# simply because there is no reason against having it here, and in addition, 13089# creating and moving files from /tmp can sometimes cause problems. 13090# Hook for its removal unless debugging. 13091# Note that there is a small window in which the directory will not be cleaned: 13092# after its creation but before its name has been assigned to `$tmp'. 13093$debug || 13094{ 13095 tmp= 13096 trap 'exit_status=$? 13097 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13098' 0 13099 trap 'as_fn_exit 1' 1 2 13 15 13100} 13101# Create a (secure) tmp directory for tmp files. 13102 13103{ 13104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13105 test -n "$tmp" && test -d "$tmp" 13106} || 13107{ 13108 tmp=./conf$$-$RANDOM 13109 (umask 077 && mkdir "$tmp") 13110} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13111 13112# Set up the scripts for CONFIG_FILES section. 13113# No need to generate them if there are no CONFIG_FILES. 13114# This happens for instance with `./config.status config.h'. 13115if test -n "$CONFIG_FILES"; then 13116 13117 13118ac_cr=`echo X | tr X '\015'` 13119# On cygwin, bash can eat \r inside `` if the user requested igncr. 13120# But we know of no other shell where ac_cr would be empty at this 13121# point, so we can use a bashism as a fallback. 13122if test "x$ac_cr" = x; then 13123 eval ac_cr=\$\'\\r\' 13124fi 13125ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13126if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13127 ac_cs_awk_cr='\r' 13128else 13129 ac_cs_awk_cr=$ac_cr 13130fi 13131 13132echo 'BEGIN {' >"$tmp/subs1.awk" && 13133_ACEOF 13134 13135 13136{ 13137 echo "cat >conf$$subs.awk <<_ACEOF" && 13138 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13139 echo "_ACEOF" 13140} >conf$$subs.sh || 13141 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13142ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13143ac_delim='%!_!# ' 13144for ac_last_try in false false false false false :; do 13145 . ./conf$$subs.sh || 13146 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13147 13148 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13149 if test $ac_delim_n = $ac_delim_num; then 13150 break 13151 elif $ac_last_try; then 13152 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13153 else 13154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13155 fi 13156done 13157rm -f conf$$subs.sh 13158 13159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13160cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13161_ACEOF 13162sed -n ' 13163h 13164s/^/S["/; s/!.*/"]=/ 13165p 13166g 13167s/^[^!]*!// 13168:repl 13169t repl 13170s/'"$ac_delim"'$// 13171t delim 13172:nl 13173h 13174s/\(.\{148\}\)..*/\1/ 13175t more1 13176s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13177p 13178n 13179b repl 13180:more1 13181s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13182p 13183g 13184s/.\{148\}// 13185t nl 13186:delim 13187h 13188s/\(.\{148\}\)..*/\1/ 13189t more2 13190s/["\\]/\\&/g; s/^/"/; s/$/"/ 13191p 13192b 13193:more2 13194s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13195p 13196g 13197s/.\{148\}// 13198t delim 13199' <conf$$subs.awk | sed ' 13200/^[^""]/{ 13201 N 13202 s/\n// 13203} 13204' >>$CONFIG_STATUS || ac_write_fail=1 13205rm -f conf$$subs.awk 13206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13207_ACAWK 13208cat >>"\$tmp/subs1.awk" <<_ACAWK && 13209 for (key in S) S_is_set[key] = 1 13210 FS = "" 13211 13212} 13213{ 13214 line = $ 0 13215 nfields = split(line, field, "@") 13216 substed = 0 13217 len = length(field[1]) 13218 for (i = 2; i < nfields; i++) { 13219 key = field[i] 13220 keylen = length(key) 13221 if (S_is_set[key]) { 13222 value = S[key] 13223 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13224 len += length(value) + length(field[++i]) 13225 substed = 1 13226 } else 13227 len += 1 + keylen 13228 } 13229 13230 print line 13231} 13232 13233_ACAWK 13234_ACEOF 13235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13236if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13237 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13238else 13239 cat 13240fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13241 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13242_ACEOF 13243 13244# VPATH may cause trouble with some makes, so we remove $(srcdir), 13245# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13246# trailing colons and then remove the whole line if VPATH becomes empty 13247# (actually we leave an empty line to preserve line numbers). 13248if test "x$srcdir" = x.; then 13249 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13250s/:*\$(srcdir):*/:/ 13251s/:*\${srcdir}:*/:/ 13252s/:*@srcdir@:*/:/ 13253s/^\([^=]*=[ ]*\):*/\1/ 13254s/:*$// 13255s/^[^=]*=[ ]*$// 13256}' 13257fi 13258 13259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13260fi # test -n "$CONFIG_FILES" 13261 13262# Set up the scripts for CONFIG_HEADERS section. 13263# No need to generate them if there are no CONFIG_HEADERS. 13264# This happens for instance with `./config.status Makefile'. 13265if test -n "$CONFIG_HEADERS"; then 13266cat >"$tmp/defines.awk" <<\_ACAWK || 13267BEGIN { 13268_ACEOF 13269 13270# Transform confdefs.h into an awk script `defines.awk', embedded as 13271# here-document in config.status, that substitutes the proper values into 13272# config.h.in to produce config.h. 13273 13274# Create a delimiter string that does not exist in confdefs.h, to ease 13275# handling of long lines. 13276ac_delim='%!_!# ' 13277for ac_last_try in false false :; do 13278 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13279 if test -z "$ac_t"; then 13280 break 13281 elif $ac_last_try; then 13282 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13283 else 13284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13285 fi 13286done 13287 13288# For the awk script, D is an array of macro values keyed by name, 13289# likewise P contains macro parameters if any. Preserve backslash 13290# newline sequences. 13291 13292ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13293sed -n ' 13294s/.\{148\}/&'"$ac_delim"'/g 13295t rset 13296:rset 13297s/^[ ]*#[ ]*define[ ][ ]*/ / 13298t def 13299d 13300:def 13301s/\\$// 13302t bsnl 13303s/["\\]/\\&/g 13304s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13305D["\1"]=" \3"/p 13306s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13307d 13308:bsnl 13309s/["\\]/\\&/g 13310s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13311D["\1"]=" \3\\\\\\n"\\/p 13312t cont 13313s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13314t cont 13315d 13316:cont 13317n 13318s/.\{148\}/&'"$ac_delim"'/g 13319t clear 13320:clear 13321s/\\$// 13322t bsnlc 13323s/["\\]/\\&/g; s/^/"/; s/$/"/p 13324d 13325:bsnlc 13326s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13327b cont 13328' <confdefs.h | sed ' 13329s/'"$ac_delim"'/"\\\ 13330"/g' >>$CONFIG_STATUS || ac_write_fail=1 13331 13332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13333 for (key in D) D_is_set[key] = 1 13334 FS = "" 13335} 13336/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13337 line = \$ 0 13338 split(line, arg, " ") 13339 if (arg[1] == "#") { 13340 defundef = arg[2] 13341 mac1 = arg[3] 13342 } else { 13343 defundef = substr(arg[1], 2) 13344 mac1 = arg[2] 13345 } 13346 split(mac1, mac2, "(") #) 13347 macro = mac2[1] 13348 prefix = substr(line, 1, index(line, defundef) - 1) 13349 if (D_is_set[macro]) { 13350 # Preserve the white space surrounding the "#". 13351 print prefix "define", macro P[macro] D[macro] 13352 next 13353 } else { 13354 # Replace #undef with comments. This is necessary, for example, 13355 # in the case of _POSIX_SOURCE, which is predefined and required 13356 # on some systems where configure will not decide to define it. 13357 if (defundef == "undef") { 13358 print "/*", prefix defundef, macro, "*/" 13359 next 13360 } 13361 } 13362} 13363{ print } 13364_ACAWK 13365_ACEOF 13366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13367 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13368fi # test -n "$CONFIG_HEADERS" 13369 13370 13371eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13372shift 13373for ac_tag 13374do 13375 case $ac_tag in 13376 :[FHLC]) ac_mode=$ac_tag; continue;; 13377 esac 13378 case $ac_mode$ac_tag in 13379 :[FHL]*:*);; 13380 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13381 :[FH]-) ac_tag=-:-;; 13382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13383 esac 13384 ac_save_IFS=$IFS 13385 IFS=: 13386 set x $ac_tag 13387 IFS=$ac_save_IFS 13388 shift 13389 ac_file=$1 13390 shift 13391 13392 case $ac_mode in 13393 :L) ac_source=$1;; 13394 :[FH]) 13395 ac_file_inputs= 13396 for ac_f 13397 do 13398 case $ac_f in 13399 -) ac_f="$tmp/stdin";; 13400 *) # Look for the file first in the build tree, then in the source tree 13401 # (if the path is not absolute). The absolute path cannot be DOS-style, 13402 # because $ac_f cannot contain `:'. 13403 test -f "$ac_f" || 13404 case $ac_f in 13405 [\\/$]*) false;; 13406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13407 esac || 13408 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13409 esac 13410 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13411 as_fn_append ac_file_inputs " '$ac_f'" 13412 done 13413 13414 # Let's still pretend it is `configure' which instantiates (i.e., don't 13415 # use $as_me), people would be surprised to read: 13416 # /* config.h. Generated by config.status. */ 13417 configure_input='Generated from '` 13418 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13419 `' by configure.' 13420 if test x"$ac_file" != x-; then 13421 configure_input="$ac_file. $configure_input" 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13423$as_echo "$as_me: creating $ac_file" >&6;} 13424 fi 13425 # Neutralize special characters interpreted by sed in replacement strings. 13426 case $configure_input in #( 13427 *\&* | *\|* | *\\* ) 13428 ac_sed_conf_input=`$as_echo "$configure_input" | 13429 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13430 *) ac_sed_conf_input=$configure_input;; 13431 esac 13432 13433 case $ac_tag in 13434 *:-:* | *:-) cat >"$tmp/stdin" \ 13435 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13436 esac 13437 ;; 13438 esac 13439 13440 ac_dir=`$as_dirname -- "$ac_file" || 13441$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13442 X"$ac_file" : 'X\(//\)[^/]' \| \ 13443 X"$ac_file" : 'X\(//\)$' \| \ 13444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13445$as_echo X"$ac_file" | 13446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13447 s//\1/ 13448 q 13449 } 13450 /^X\(\/\/\)[^/].*/{ 13451 s//\1/ 13452 q 13453 } 13454 /^X\(\/\/\)$/{ 13455 s//\1/ 13456 q 13457 } 13458 /^X\(\/\).*/{ 13459 s//\1/ 13460 q 13461 } 13462 s/.*/./; q'` 13463 as_dir="$ac_dir"; as_fn_mkdir_p 13464 ac_builddir=. 13465 13466case "$ac_dir" in 13467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13468*) 13469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13470 # A ".." for each directory in $ac_dir_suffix. 13471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13472 case $ac_top_builddir_sub in 13473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13475 esac ;; 13476esac 13477ac_abs_top_builddir=$ac_pwd 13478ac_abs_builddir=$ac_pwd$ac_dir_suffix 13479# for backward compatibility: 13480ac_top_builddir=$ac_top_build_prefix 13481 13482case $srcdir in 13483 .) # We are building in place. 13484 ac_srcdir=. 13485 ac_top_srcdir=$ac_top_builddir_sub 13486 ac_abs_top_srcdir=$ac_pwd ;; 13487 [\\/]* | ?:[\\/]* ) # Absolute name. 13488 ac_srcdir=$srcdir$ac_dir_suffix; 13489 ac_top_srcdir=$srcdir 13490 ac_abs_top_srcdir=$srcdir ;; 13491 *) # Relative name. 13492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13493 ac_top_srcdir=$ac_top_build_prefix$srcdir 13494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13495esac 13496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13497 13498 13499 case $ac_mode in 13500 :F) 13501 # 13502 # CONFIG_FILE 13503 # 13504 13505 case $INSTALL in 13506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13507 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13508 esac 13509 ac_MKDIR_P=$MKDIR_P 13510 case $MKDIR_P in 13511 [\\/$]* | ?:[\\/]* ) ;; 13512 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13513 esac 13514_ACEOF 13515 13516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13517# If the template does not know about datarootdir, expand it. 13518# FIXME: This hack should be removed a few years after 2.60. 13519ac_datarootdir_hack=; ac_datarootdir_seen= 13520ac_sed_dataroot=' 13521/datarootdir/ { 13522 p 13523 q 13524} 13525/@datadir@/p 13526/@docdir@/p 13527/@infodir@/p 13528/@localedir@/p 13529/@mandir@/p' 13530case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13531*datarootdir*) ac_datarootdir_seen=yes;; 13532*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13534$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13535_ACEOF 13536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13537 ac_datarootdir_hack=' 13538 s&@datadir@&$datadir&g 13539 s&@docdir@&$docdir&g 13540 s&@infodir@&$infodir&g 13541 s&@localedir@&$localedir&g 13542 s&@mandir@&$mandir&g 13543 s&\\\${datarootdir}&$datarootdir&g' ;; 13544esac 13545_ACEOF 13546 13547# Neutralize VPATH when `$srcdir' = `.'. 13548# Shell code in configure.ac might set extrasub. 13549# FIXME: do we really want to maintain this feature? 13550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13551ac_sed_extra="$ac_vpsub 13552$extrasub 13553_ACEOF 13554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13555:t 13556/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13557s|@configure_input@|$ac_sed_conf_input|;t t 13558s&@top_builddir@&$ac_top_builddir_sub&;t t 13559s&@top_build_prefix@&$ac_top_build_prefix&;t t 13560s&@srcdir@&$ac_srcdir&;t t 13561s&@abs_srcdir@&$ac_abs_srcdir&;t t 13562s&@top_srcdir@&$ac_top_srcdir&;t t 13563s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13564s&@builddir@&$ac_builddir&;t t 13565s&@abs_builddir@&$ac_abs_builddir&;t t 13566s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13567s&@INSTALL@&$ac_INSTALL&;t t 13568s&@MKDIR_P@&$ac_MKDIR_P&;t t 13569$ac_datarootdir_hack 13570" 13571eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13572 || as_fn_error "could not create $ac_file" "$LINENO" 5 13573 13574test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13575 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13576 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13578which seems to be undefined. Please make sure it is defined." >&5 13579$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13580which seems to be undefined. Please make sure it is defined." >&2;} 13581 13582 rm -f "$tmp/stdin" 13583 case $ac_file in 13584 -) cat "$tmp/out" && rm -f "$tmp/out";; 13585 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13586 esac \ 13587 || as_fn_error "could not create $ac_file" "$LINENO" 5 13588 ;; 13589 :H) 13590 # 13591 # CONFIG_HEADER 13592 # 13593 if test x"$ac_file" != x-; then 13594 { 13595 $as_echo "/* $configure_input */" \ 13596 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13597 } >"$tmp/config.h" \ 13598 || as_fn_error "could not create $ac_file" "$LINENO" 5 13599 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13601$as_echo "$as_me: $ac_file is unchanged" >&6;} 13602 else 13603 rm -f "$ac_file" 13604 mv "$tmp/config.h" "$ac_file" \ 13605 || as_fn_error "could not create $ac_file" "$LINENO" 5 13606 fi 13607 else 13608 $as_echo "/* $configure_input */" \ 13609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13610 || as_fn_error "could not create -" "$LINENO" 5 13611 fi 13612# Compute "$ac_file"'s index in $config_headers. 13613_am_arg="$ac_file" 13614_am_stamp_count=1 13615for _am_header in $config_headers :; do 13616 case $_am_header in 13617 $_am_arg | $_am_arg:* ) 13618 break ;; 13619 * ) 13620 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13621 esac 13622done 13623echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13624$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13625 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13626 X"$_am_arg" : 'X\(//\)$' \| \ 13627 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13628$as_echo X"$_am_arg" | 13629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13630 s//\1/ 13631 q 13632 } 13633 /^X\(\/\/\)[^/].*/{ 13634 s//\1/ 13635 q 13636 } 13637 /^X\(\/\/\)$/{ 13638 s//\1/ 13639 q 13640 } 13641 /^X\(\/\).*/{ 13642 s//\1/ 13643 q 13644 } 13645 s/.*/./; q'`/stamp-h$_am_stamp_count 13646 ;; 13647 13648 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13649$as_echo "$as_me: executing $ac_file commands" >&6;} 13650 ;; 13651 esac 13652 13653 13654 case $ac_file$ac_mode in 13655 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13656 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13657 # are listed without --file. Let's play safe and only enable the eval 13658 # if we detect the quoting. 13659 case $CONFIG_FILES in 13660 *\'*) eval set x "$CONFIG_FILES" ;; 13661 *) set x $CONFIG_FILES ;; 13662 esac 13663 shift 13664 for mf 13665 do 13666 # Strip MF so we end up with the name of the file. 13667 mf=`echo "$mf" | sed -e 's/:.*$//'` 13668 # Check whether this is an Automake generated Makefile or not. 13669 # We used to match only the files named `Makefile.in', but 13670 # some people rename them; so instead we look at the file content. 13671 # Grep'ing the first line is not enough: some people post-process 13672 # each Makefile.in and add a new line on top of each file to say so. 13673 # Grep'ing the whole file is not good either: AIX grep has a line 13674 # limit of 2048, but all sed's we know have understand at least 4000. 13675 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13676 dirpart=`$as_dirname -- "$mf" || 13677$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13678 X"$mf" : 'X\(//\)[^/]' \| \ 13679 X"$mf" : 'X\(//\)$' \| \ 13680 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13681$as_echo X"$mf" | 13682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13683 s//\1/ 13684 q 13685 } 13686 /^X\(\/\/\)[^/].*/{ 13687 s//\1/ 13688 q 13689 } 13690 /^X\(\/\/\)$/{ 13691 s//\1/ 13692 q 13693 } 13694 /^X\(\/\).*/{ 13695 s//\1/ 13696 q 13697 } 13698 s/.*/./; q'` 13699 else 13700 continue 13701 fi 13702 # Extract the definition of DEPDIR, am__include, and am__quote 13703 # from the Makefile without running `make'. 13704 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13705 test -z "$DEPDIR" && continue 13706 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13707 test -z "am__include" && continue 13708 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13709 # When using ansi2knr, U may be empty or an underscore; expand it 13710 U=`sed -n 's/^U = //p' < "$mf"` 13711 # Find all dependency output files, they are included files with 13712 # $(DEPDIR) in their names. We invoke sed twice because it is the 13713 # simplest approach to changing $(DEPDIR) to its actual value in the 13714 # expansion. 13715 for file in `sed -n " 13716 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13717 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13718 # Make sure the directory exists. 13719 test -f "$dirpart/$file" && continue 13720 fdir=`$as_dirname -- "$file" || 13721$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13722 X"$file" : 'X\(//\)[^/]' \| \ 13723 X"$file" : 'X\(//\)$' \| \ 13724 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13725$as_echo X"$file" | 13726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13727 s//\1/ 13728 q 13729 } 13730 /^X\(\/\/\)[^/].*/{ 13731 s//\1/ 13732 q 13733 } 13734 /^X\(\/\/\)$/{ 13735 s//\1/ 13736 q 13737 } 13738 /^X\(\/\).*/{ 13739 s//\1/ 13740 q 13741 } 13742 s/.*/./; q'` 13743 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13744 # echo "creating $dirpart/$file" 13745 echo '# dummy' > "$dirpart/$file" 13746 done 13747 done 13748} 13749 ;; 13750 "libtool":C) 13751 13752 # See if we are running on zsh, and set the options which allow our 13753 # commands through without removal of \ escapes. 13754 if test -n "${ZSH_VERSION+set}" ; then 13755 setopt NO_GLOB_SUBST 13756 fi 13757 13758 cfgfile="${ofile}T" 13759 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13760 $RM "$cfgfile" 13761 13762 cat <<_LT_EOF >> "$cfgfile" 13763#! $SHELL 13764 13765# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13766# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13768# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13769# 13770# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13771# 2006, 2007, 2008 Free Software Foundation, Inc. 13772# Written by Gordon Matzigkeit, 1996 13773# 13774# This file is part of GNU Libtool. 13775# 13776# GNU Libtool is free software; you can redistribute it and/or 13777# modify it under the terms of the GNU General Public License as 13778# published by the Free Software Foundation; either version 2 of 13779# the License, or (at your option) any later version. 13780# 13781# As a special exception to the GNU General Public License, 13782# if you distribute this file as part of a program or library that 13783# is built using GNU Libtool, you may include this file under the 13784# same distribution terms that you use for the rest of that program. 13785# 13786# GNU Libtool is distributed in the hope that it will be useful, 13787# but WITHOUT ANY WARRANTY; without even the implied warranty of 13788# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13789# GNU General Public License for more details. 13790# 13791# You should have received a copy of the GNU General Public License 13792# along with GNU Libtool; see the file COPYING. If not, a copy 13793# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13794# obtained by writing to the Free Software Foundation, Inc., 13795# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13796 13797 13798# The names of the tagged configurations supported by this script. 13799available_tags="" 13800 13801# ### BEGIN LIBTOOL CONFIG 13802 13803# Whether or not to build static libraries. 13804build_old_libs=$enable_static 13805 13806# Which release of libtool.m4 was used? 13807macro_version=$macro_version 13808macro_revision=$macro_revision 13809 13810# Whether or not to build shared libraries. 13811build_libtool_libs=$enable_shared 13812 13813# What type of objects to build. 13814pic_mode=$pic_mode 13815 13816# Whether or not to optimize for fast installation. 13817fast_install=$enable_fast_install 13818 13819# The host system. 13820host_alias=$host_alias 13821host=$host 13822host_os=$host_os 13823 13824# The build system. 13825build_alias=$build_alias 13826build=$build 13827build_os=$build_os 13828 13829# A sed program that does not truncate output. 13830SED=$lt_SED 13831 13832# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13833Xsed="\$SED -e 1s/^X//" 13834 13835# A grep program that handles long lines. 13836GREP=$lt_GREP 13837 13838# An ERE matcher. 13839EGREP=$lt_EGREP 13840 13841# A literal string matcher. 13842FGREP=$lt_FGREP 13843 13844# A BSD- or MS-compatible name lister. 13845NM=$lt_NM 13846 13847# Whether we need soft or hard links. 13848LN_S=$lt_LN_S 13849 13850# What is the maximum length of a command? 13851max_cmd_len=$max_cmd_len 13852 13853# Object file suffix (normally "o"). 13854objext=$ac_objext 13855 13856# Executable file suffix (normally ""). 13857exeext=$exeext 13858 13859# whether the shell understands "unset". 13860lt_unset=$lt_unset 13861 13862# turn spaces into newlines. 13863SP2NL=$lt_lt_SP2NL 13864 13865# turn newlines into spaces. 13866NL2SP=$lt_lt_NL2SP 13867 13868# How to create reloadable object files. 13869reload_flag=$lt_reload_flag 13870reload_cmds=$lt_reload_cmds 13871 13872# An object symbol dumper. 13873OBJDUMP=$lt_OBJDUMP 13874 13875# Method to check whether dependent libraries are shared objects. 13876deplibs_check_method=$lt_deplibs_check_method 13877 13878# Command to use when deplibs_check_method == "file_magic". 13879file_magic_cmd=$lt_file_magic_cmd 13880 13881# The archiver. 13882AR=$lt_AR 13883AR_FLAGS=$lt_AR_FLAGS 13884 13885# A symbol stripping program. 13886STRIP=$lt_STRIP 13887 13888# Commands used to install an old-style archive. 13889RANLIB=$lt_RANLIB 13890old_postinstall_cmds=$lt_old_postinstall_cmds 13891old_postuninstall_cmds=$lt_old_postuninstall_cmds 13892 13893# A C compiler. 13894LTCC=$lt_CC 13895 13896# LTCC compiler flags. 13897LTCFLAGS=$lt_CFLAGS 13898 13899# Take the output of nm and produce a listing of raw symbols and C names. 13900global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13901 13902# Transform the output of nm in a proper C declaration. 13903global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13904 13905# Transform the output of nm in a C name address pair. 13906global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13907 13908# Transform the output of nm in a C name address pair when lib prefix is needed. 13909global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13910 13911# The name of the directory that contains temporary libtool files. 13912objdir=$objdir 13913 13914# Shell to use when invoking shell scripts. 13915SHELL=$lt_SHELL 13916 13917# An echo program that does not interpret backslashes. 13918ECHO=$lt_ECHO 13919 13920# Used to examine libraries when file_magic_cmd begins with "file". 13921MAGIC_CMD=$MAGIC_CMD 13922 13923# Must we lock files when doing compilation? 13924need_locks=$lt_need_locks 13925 13926# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13927DSYMUTIL=$lt_DSYMUTIL 13928 13929# Tool to change global to local symbols on Mac OS X. 13930NMEDIT=$lt_NMEDIT 13931 13932# Tool to manipulate fat objects and archives on Mac OS X. 13933LIPO=$lt_LIPO 13934 13935# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13936OTOOL=$lt_OTOOL 13937 13938# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13939OTOOL64=$lt_OTOOL64 13940 13941# Old archive suffix (normally "a"). 13942libext=$libext 13943 13944# Shared library suffix (normally ".so"). 13945shrext_cmds=$lt_shrext_cmds 13946 13947# The commands to extract the exported symbol list from a shared archive. 13948extract_expsyms_cmds=$lt_extract_expsyms_cmds 13949 13950# Variables whose values should be saved in libtool wrapper scripts and 13951# restored at link time. 13952variables_saved_for_relink=$lt_variables_saved_for_relink 13953 13954# Do we need the "lib" prefix for modules? 13955need_lib_prefix=$need_lib_prefix 13956 13957# Do we need a version for libraries? 13958need_version=$need_version 13959 13960# Library versioning type. 13961version_type=$version_type 13962 13963# Shared library runtime path variable. 13964runpath_var=$runpath_var 13965 13966# Shared library path variable. 13967shlibpath_var=$shlibpath_var 13968 13969# Is shlibpath searched before the hard-coded library search path? 13970shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13971 13972# Format of library name prefix. 13973libname_spec=$lt_libname_spec 13974 13975# List of archive names. First name is the real one, the rest are links. 13976# The last name is the one that the linker finds with -lNAME 13977library_names_spec=$lt_library_names_spec 13978 13979# The coded name of the library, if different from the real name. 13980soname_spec=$lt_soname_spec 13981 13982# Command to use after installation of a shared archive. 13983postinstall_cmds=$lt_postinstall_cmds 13984 13985# Command to use after uninstallation of a shared archive. 13986postuninstall_cmds=$lt_postuninstall_cmds 13987 13988# Commands used to finish a libtool library installation in a directory. 13989finish_cmds=$lt_finish_cmds 13990 13991# As "finish_cmds", except a single script fragment to be evaled but 13992# not shown. 13993finish_eval=$lt_finish_eval 13994 13995# Whether we should hardcode library paths into libraries. 13996hardcode_into_libs=$hardcode_into_libs 13997 13998# Compile-time system search path for libraries. 13999sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14000 14001# Run-time system search path for libraries. 14002sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14003 14004# Whether dlopen is supported. 14005dlopen_support=$enable_dlopen 14006 14007# Whether dlopen of programs is supported. 14008dlopen_self=$enable_dlopen_self 14009 14010# Whether dlopen of statically linked programs is supported. 14011dlopen_self_static=$enable_dlopen_self_static 14012 14013# Commands to strip libraries. 14014old_striplib=$lt_old_striplib 14015striplib=$lt_striplib 14016 14017 14018# The linker used to build libraries. 14019LD=$lt_LD 14020 14021# Commands used to build an old-style archive. 14022old_archive_cmds=$lt_old_archive_cmds 14023 14024# A language specific compiler. 14025CC=$lt_compiler 14026 14027# Is the compiler the GNU compiler? 14028with_gcc=$GCC 14029 14030# Compiler flag to turn off builtin functions. 14031no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14032 14033# How to pass a linker flag through the compiler. 14034wl=$lt_lt_prog_compiler_wl 14035 14036# Additional compiler flags for building library objects. 14037pic_flag=$lt_lt_prog_compiler_pic 14038 14039# Compiler flag to prevent dynamic linking. 14040link_static_flag=$lt_lt_prog_compiler_static 14041 14042# Does compiler simultaneously support -c and -o options? 14043compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14044 14045# Whether or not to add -lc for building shared libraries. 14046build_libtool_need_lc=$archive_cmds_need_lc 14047 14048# Whether or not to disallow shared libs when runtime libs are static. 14049allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14050 14051# Compiler flag to allow reflexive dlopens. 14052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14053 14054# Compiler flag to generate shared objects directly from archives. 14055whole_archive_flag_spec=$lt_whole_archive_flag_spec 14056 14057# Whether the compiler copes with passing no objects directly. 14058compiler_needs_object=$lt_compiler_needs_object 14059 14060# Create an old-style archive from a shared archive. 14061old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14062 14063# Create a temporary old-style archive to link instead of a shared archive. 14064old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14065 14066# Commands used to build a shared archive. 14067archive_cmds=$lt_archive_cmds 14068archive_expsym_cmds=$lt_archive_expsym_cmds 14069 14070# Commands used to build a loadable module if different from building 14071# a shared archive. 14072module_cmds=$lt_module_cmds 14073module_expsym_cmds=$lt_module_expsym_cmds 14074 14075# Whether we are building with GNU ld or not. 14076with_gnu_ld=$lt_with_gnu_ld 14077 14078# Flag that allows shared libraries with undefined symbols to be built. 14079allow_undefined_flag=$lt_allow_undefined_flag 14080 14081# Flag that enforces no undefined symbols. 14082no_undefined_flag=$lt_no_undefined_flag 14083 14084# Flag to hardcode \$libdir into a binary during linking. 14085# This must work even if \$libdir does not exist 14086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14087 14088# If ld is used when linking, flag to hardcode \$libdir into a binary 14089# during linking. This must work even if \$libdir does not exist. 14090hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14091 14092# Whether we need a single "-rpath" flag with a separated argument. 14093hardcode_libdir_separator=$lt_hardcode_libdir_separator 14094 14095# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14096# DIR into the resulting binary. 14097hardcode_direct=$hardcode_direct 14098 14099# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14100# DIR into the resulting binary and the resulting library dependency is 14101# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14102# library is relocated. 14103hardcode_direct_absolute=$hardcode_direct_absolute 14104 14105# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14106# into the resulting binary. 14107hardcode_minus_L=$hardcode_minus_L 14108 14109# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14110# into the resulting binary. 14111hardcode_shlibpath_var=$hardcode_shlibpath_var 14112 14113# Set to "yes" if building a shared library automatically hardcodes DIR 14114# into the library and all subsequent libraries and executables linked 14115# against it. 14116hardcode_automatic=$hardcode_automatic 14117 14118# Set to yes if linker adds runtime paths of dependent libraries 14119# to runtime path list. 14120inherit_rpath=$inherit_rpath 14121 14122# Whether libtool must link a program against all its dependency libraries. 14123link_all_deplibs=$link_all_deplibs 14124 14125# Fix the shell variable \$srcfile for the compiler. 14126fix_srcfile_path=$lt_fix_srcfile_path 14127 14128# Set to "yes" if exported symbols are required. 14129always_export_symbols=$always_export_symbols 14130 14131# The commands to list exported symbols. 14132export_symbols_cmds=$lt_export_symbols_cmds 14133 14134# Symbols that should not be listed in the preloaded symbols. 14135exclude_expsyms=$lt_exclude_expsyms 14136 14137# Symbols that must always be exported. 14138include_expsyms=$lt_include_expsyms 14139 14140# Commands necessary for linking programs (against libraries) with templates. 14141prelink_cmds=$lt_prelink_cmds 14142 14143# Specify filename containing input files. 14144file_list_spec=$lt_file_list_spec 14145 14146# How to hardcode a shared library path into an executable. 14147hardcode_action=$hardcode_action 14148 14149# ### END LIBTOOL CONFIG 14150 14151_LT_EOF 14152 14153 case $host_os in 14154 aix3*) 14155 cat <<\_LT_EOF >> "$cfgfile" 14156# AIX sometimes has problems with the GCC collect2 program. For some 14157# reason, if we set the COLLECT_NAMES environment variable, the problems 14158# vanish in a puff of smoke. 14159if test "X${COLLECT_NAMES+set}" != Xset; then 14160 COLLECT_NAMES= 14161 export COLLECT_NAMES 14162fi 14163_LT_EOF 14164 ;; 14165 esac 14166 14167 14168ltmain="$ac_aux_dir/ltmain.sh" 14169 14170 14171 # We use sed instead of cat because bash on DJGPP gets confused if 14172 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14173 # text mode, it properly converts lines to CR/LF. This bash problem 14174 # is reportedly fixed, but why not run on old versions too? 14175 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14176 || (rm -f "$cfgfile"; exit 1) 14177 14178 case $xsi_shell in 14179 yes) 14180 cat << \_LT_EOF >> "$cfgfile" 14181 14182# func_dirname file append nondir_replacement 14183# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14184# otherwise set result to NONDIR_REPLACEMENT. 14185func_dirname () 14186{ 14187 case ${1} in 14188 */*) func_dirname_result="${1%/*}${2}" ;; 14189 * ) func_dirname_result="${3}" ;; 14190 esac 14191} 14192 14193# func_basename file 14194func_basename () 14195{ 14196 func_basename_result="${1##*/}" 14197} 14198 14199# func_dirname_and_basename file append nondir_replacement 14200# perform func_basename and func_dirname in a single function 14201# call: 14202# dirname: Compute the dirname of FILE. If nonempty, 14203# add APPEND to the result, otherwise set result 14204# to NONDIR_REPLACEMENT. 14205# value returned in "$func_dirname_result" 14206# basename: Compute filename of FILE. 14207# value retuned in "$func_basename_result" 14208# Implementation must be kept synchronized with func_dirname 14209# and func_basename. For efficiency, we do not delegate to 14210# those functions but instead duplicate the functionality here. 14211func_dirname_and_basename () 14212{ 14213 case ${1} in 14214 */*) func_dirname_result="${1%/*}${2}" ;; 14215 * ) func_dirname_result="${3}" ;; 14216 esac 14217 func_basename_result="${1##*/}" 14218} 14219 14220# func_stripname prefix suffix name 14221# strip PREFIX and SUFFIX off of NAME. 14222# PREFIX and SUFFIX must not contain globbing or regex special 14223# characters, hashes, percent signs, but SUFFIX may contain a leading 14224# dot (in which case that matches only a dot). 14225func_stripname () 14226{ 14227 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14228 # positional parameters, so assign one to ordinary parameter first. 14229 func_stripname_result=${3} 14230 func_stripname_result=${func_stripname_result#"${1}"} 14231 func_stripname_result=${func_stripname_result%"${2}"} 14232} 14233 14234# func_opt_split 14235func_opt_split () 14236{ 14237 func_opt_split_opt=${1%%=*} 14238 func_opt_split_arg=${1#*=} 14239} 14240 14241# func_lo2o object 14242func_lo2o () 14243{ 14244 case ${1} in 14245 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14246 *) func_lo2o_result=${1} ;; 14247 esac 14248} 14249 14250# func_xform libobj-or-source 14251func_xform () 14252{ 14253 func_xform_result=${1%.*}.lo 14254} 14255 14256# func_arith arithmetic-term... 14257func_arith () 14258{ 14259 func_arith_result=$(( $* )) 14260} 14261 14262# func_len string 14263# STRING may not start with a hyphen. 14264func_len () 14265{ 14266 func_len_result=${#1} 14267} 14268 14269_LT_EOF 14270 ;; 14271 *) # Bourne compatible functions. 14272 cat << \_LT_EOF >> "$cfgfile" 14273 14274# func_dirname file append nondir_replacement 14275# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14276# otherwise set result to NONDIR_REPLACEMENT. 14277func_dirname () 14278{ 14279 # Extract subdirectory from the argument. 14280 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14281 if test "X$func_dirname_result" = "X${1}"; then 14282 func_dirname_result="${3}" 14283 else 14284 func_dirname_result="$func_dirname_result${2}" 14285 fi 14286} 14287 14288# func_basename file 14289func_basename () 14290{ 14291 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14292} 14293 14294 14295# func_stripname prefix suffix name 14296# strip PREFIX and SUFFIX off of NAME. 14297# PREFIX and SUFFIX must not contain globbing or regex special 14298# characters, hashes, percent signs, but SUFFIX may contain a leading 14299# dot (in which case that matches only a dot). 14300# func_strip_suffix prefix name 14301func_stripname () 14302{ 14303 case ${2} in 14304 .*) func_stripname_result=`$ECHO "X${3}" \ 14305 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14306 *) func_stripname_result=`$ECHO "X${3}" \ 14307 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14308 esac 14309} 14310 14311# sed scripts: 14312my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14313my_sed_long_arg='1s/^-[^=]*=//' 14314 14315# func_opt_split 14316func_opt_split () 14317{ 14318 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14319 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14320} 14321 14322# func_lo2o object 14323func_lo2o () 14324{ 14325 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14326} 14327 14328# func_xform libobj-or-source 14329func_xform () 14330{ 14331 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14332} 14333 14334# func_arith arithmetic-term... 14335func_arith () 14336{ 14337 func_arith_result=`expr "$@"` 14338} 14339 14340# func_len string 14341# STRING may not start with a hyphen. 14342func_len () 14343{ 14344 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14345} 14346 14347_LT_EOF 14348esac 14349 14350case $lt_shell_append in 14351 yes) 14352 cat << \_LT_EOF >> "$cfgfile" 14353 14354# func_append var value 14355# Append VALUE to the end of shell variable VAR. 14356func_append () 14357{ 14358 eval "$1+=\$2" 14359} 14360_LT_EOF 14361 ;; 14362 *) 14363 cat << \_LT_EOF >> "$cfgfile" 14364 14365# func_append var value 14366# Append VALUE to the end of shell variable VAR. 14367func_append () 14368{ 14369 eval "$1=\$$1\$2" 14370} 14371 14372_LT_EOF 14373 ;; 14374 esac 14375 14376 14377 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14378 || (rm -f "$cfgfile"; exit 1) 14379 14380 mv -f "$cfgfile" "$ofile" || 14381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14382 chmod +x "$ofile" 14383 14384 ;; 14385 14386 esac 14387done # for ac_tag 14388 14389 14390as_fn_exit 0 14391_ACEOF 14392ac_clean_files=$ac_clean_files_save 14393 14394test $ac_write_fail = 0 || 14395 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14396 14397 14398# configure is writing to config.log, and then calls config.status. 14399# config.status does its own redirection, appending to config.log. 14400# Unfortunately, on DOS this fails, as config.log is still kept open 14401# by configure, so config.status won't be able to write to it; its 14402# output is simply discarded. So we exec the FD to /dev/null, 14403# effectively closing config.log, so it can be properly (re)opened and 14404# appended to by config.status. When coming back to configure, we 14405# need to make the FD available again. 14406if test "$no_create" != yes; then 14407 ac_cs_success=: 14408 ac_config_status_args= 14409 test "$silent" = yes && 14410 ac_config_status_args="$ac_config_status_args --quiet" 14411 exec 5>/dev/null 14412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14413 exec 5>>config.log 14414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14415 # would make configure fail if this is the last instruction. 14416 $ac_cs_success || as_fn_exit $? 14417fi 14418if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14420$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14421fi 14422 14423