configure revision 5f5b92ff
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for xf86-video-apm 1.2.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$lt_ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544ECHO=${lt_ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $ECHO works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<_LT_EOF 563$* 564_LT_EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$lt_ECHO"; then 573 if test "X${echo_test_string+set}" != Xset; then 574 # find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 578 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 579 then 580 break 581 fi 582 done 583 fi 584 585 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589 else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 ECHO="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$ECHO" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 ECHO='print -r' 616 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 ECHO='printf %s\n' 627 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 ECHO="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 ECHO="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 ECHO=echo 665 fi 666 fi 667 fi 668 fi 669 fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674lt_ECHO=$ECHO 675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682test -n "$DJDIR" || exec 7<&0 </dev/null 683exec 6>&1 684 685# Name of the host. 686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 687# so uname gets run too. 688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 689 690# 691# Initializations. 692# 693ac_default_prefix=/usr/local 694ac_clean_files= 695ac_config_libobj_dir=. 696LIBOBJS= 697cross_compiling=no 698subdirs= 699MFLAGS= 700MAKEFLAGS= 701 702# Identity of this package. 703PACKAGE_NAME='xf86-video-apm' 704PACKAGE_TARNAME='xf86-video-apm' 705PACKAGE_VERSION='1.2.3' 706PACKAGE_STRING='xf86-video-apm 1.2.3' 707PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 708PACKAGE_URL='' 709 710ac_unique_file="Makefile.am" 711# Factoring default headers for most tests. 712ac_includes_default="\ 713#include <stdio.h> 714#ifdef HAVE_SYS_TYPES_H 715# include <sys/types.h> 716#endif 717#ifdef HAVE_SYS_STAT_H 718# include <sys/stat.h> 719#endif 720#ifdef STDC_HEADERS 721# include <stdlib.h> 722# include <stddef.h> 723#else 724# ifdef HAVE_STDLIB_H 725# include <stdlib.h> 726# endif 727#endif 728#ifdef HAVE_STRING_H 729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 730# include <memory.h> 731# endif 732# include <string.h> 733#endif 734#ifdef HAVE_STRINGS_H 735# include <strings.h> 736#endif 737#ifdef HAVE_INTTYPES_H 738# include <inttypes.h> 739#endif 740#ifdef HAVE_STDINT_H 741# include <stdint.h> 742#endif 743#ifdef HAVE_UNISTD_H 744# include <unistd.h> 745#endif" 746 747ac_subst_vars='am__EXEEXT_FALSE 748am__EXEEXT_TRUE 749LTLIBOBJS 750LIBOBJS 751DRIVER_NAME 752PCIACCESS_LIBS 753PCIACCESS_CFLAGS 754HAVE_XEXTPROTO_71_FALSE 755HAVE_XEXTPROTO_71_TRUE 756XEXT_LIBS 757XEXT_CFLAGS 758XORG_LIBS 759XORG_CFLAGS 760moduledir 761OTOOL64 762OTOOL 763LIPO 764NMEDIT 765DSYMUTIL 766lt_ECHO 767RANLIB 768AR 769OBJDUMP 770LN_S 771NM 772ac_ct_DUMPBIN 773DUMPBIN 774LD 775FGREP 776LIBTOOL 777AM_BACKSLASH 778AM_DEFAULT_VERBOSITY 779MAN_SUBSTS 780XORG_MAN_PAGE 781ADMIN_MAN_DIR 782DRIVER_MAN_DIR 783MISC_MAN_DIR 784FILE_MAN_DIR 785LIB_MAN_DIR 786APP_MAN_DIR 787ADMIN_MAN_SUFFIX 788DRIVER_MAN_SUFFIX 789MISC_MAN_SUFFIX 790FILE_MAN_SUFFIX 791LIB_MAN_SUFFIX 792APP_MAN_SUFFIX 793SED 794host_os 795host_vendor 796host_cpu 797host 798build_os 799build_vendor 800build_cpu 801build 802INSTALL_CMD 803PKG_CONFIG 804CHANGELOG_CMD 805CWARNFLAGS 806EGREP 807GREP 808CPP 809am__fastdepCC_FALSE 810am__fastdepCC_TRUE 811CCDEPMODE 812AMDEPBACKSLASH 813AMDEP_FALSE 814AMDEP_TRUE 815am__quote 816am__include 817DEPDIR 818OBJEXT 819EXEEXT 820ac_ct_CC 821CPPFLAGS 822LDFLAGS 823CFLAGS 824CC 825MAINT 826MAINTAINER_MODE_FALSE 827MAINTAINER_MODE_TRUE 828am__untar 829am__tar 830AMTAR 831am__leading_dot 832SET_MAKE 833AWK 834mkdir_p 835MKDIR_P 836INSTALL_STRIP_PROGRAM 837STRIP 838install_sh 839MAKEINFO 840AUTOHEADER 841AUTOMAKE 842AUTOCONF 843ACLOCAL 844VERSION 845PACKAGE 846CYGPATH_W 847am__isrc 848INSTALL_DATA 849INSTALL_SCRIPT 850INSTALL_PROGRAM 851target_alias 852host_alias 853build_alias 854LIBS 855ECHO_T 856ECHO_N 857ECHO_C 858DEFS 859mandir 860localedir 861libdir 862psdir 863pdfdir 864dvidir 865htmldir 866infodir 867docdir 868oldincludedir 869includedir 870localstatedir 871sharedstatedir 872sysconfdir 873datadir 874datarootdir 875libexecdir 876sbindir 877bindir 878program_transform_name 879prefix 880exec_prefix 881PACKAGE_URL 882PACKAGE_BUGREPORT 883PACKAGE_STRING 884PACKAGE_VERSION 885PACKAGE_TARNAME 886PACKAGE_NAME 887PATH_SEPARATOR 888SHELL' 889ac_subst_files='' 890ac_user_opts=' 891enable_option_checking 892enable_maintainer_mode 893enable_dependency_tracking 894enable_strict_compilation 895enable_silent_rules 896enable_static 897enable_shared 898with_pic 899enable_fast_install 900with_gnu_ld 901enable_libtool_lock 902with_xorg_module_dir 903' 904 ac_precious_vars='build_alias 905host_alias 906target_alias 907CC 908CFLAGS 909LDFLAGS 910LIBS 911CPPFLAGS 912CPP 913PKG_CONFIG 914XORG_CFLAGS 915XORG_LIBS 916XEXT_CFLAGS 917XEXT_LIBS 918PCIACCESS_CFLAGS 919PCIACCESS_LIBS' 920 921 922# Initialize some variables set by options. 923ac_init_help= 924ac_init_version=false 925ac_unrecognized_opts= 926ac_unrecognized_sep= 927# The variables have the same names as the options, with 928# dashes changed to underlines. 929cache_file=/dev/null 930exec_prefix=NONE 931no_create= 932no_recursion= 933prefix=NONE 934program_prefix=NONE 935program_suffix=NONE 936program_transform_name=s,x,x, 937silent= 938site= 939srcdir= 940verbose= 941x_includes=NONE 942x_libraries=NONE 943 944# Installation directory options. 945# These are left unexpanded so users can "make install exec_prefix=/foo" 946# and all the variables that are supposed to be based on exec_prefix 947# by default will actually change. 948# Use braces instead of parens because sh, perl, etc. also accept them. 949# (The list follows the same order as the GNU Coding Standards.) 950bindir='${exec_prefix}/bin' 951sbindir='${exec_prefix}/sbin' 952libexecdir='${exec_prefix}/libexec' 953datarootdir='${prefix}/share' 954datadir='${datarootdir}' 955sysconfdir='${prefix}/etc' 956sharedstatedir='${prefix}/com' 957localstatedir='${prefix}/var' 958includedir='${prefix}/include' 959oldincludedir='/usr/include' 960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 961infodir='${datarootdir}/info' 962htmldir='${docdir}' 963dvidir='${docdir}' 964pdfdir='${docdir}' 965psdir='${docdir}' 966libdir='${exec_prefix}/lib' 967localedir='${datarootdir}/locale' 968mandir='${datarootdir}/man' 969 970ac_prev= 971ac_dashdash= 972for ac_option 973do 974 # If the previous option needs an argument, assign it. 975 if test -n "$ac_prev"; then 976 eval $ac_prev=\$ac_option 977 ac_prev= 978 continue 979 fi 980 981 case $ac_option in 982 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 983 *) ac_optarg=yes ;; 984 esac 985 986 # Accept the important Cygnus configure options, so we can diagnose typos. 987 988 case $ac_dashdash$ac_option in 989 --) 990 ac_dashdash=yes ;; 991 992 -bindir | --bindir | --bindi | --bind | --bin | --bi) 993 ac_prev=bindir ;; 994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 995 bindir=$ac_optarg ;; 996 997 -build | --build | --buil | --bui | --bu) 998 ac_prev=build_alias ;; 999 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1000 build_alias=$ac_optarg ;; 1001 1002 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1004 ac_prev=cache_file ;; 1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1007 cache_file=$ac_optarg ;; 1008 1009 --config-cache | -C) 1010 cache_file=config.cache ;; 1011 1012 -datadir | --datadir | --datadi | --datad) 1013 ac_prev=datadir ;; 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1015 datadir=$ac_optarg ;; 1016 1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1018 | --dataroo | --dataro | --datar) 1019 ac_prev=datarootdir ;; 1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1022 datarootdir=$ac_optarg ;; 1023 1024 -disable-* | --disable-*) 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1026 # Reject names that are not valid shell variable names. 1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1028 as_fn_error "invalid feature name: $ac_useropt" 1029 ac_useropt_orig=$ac_useropt 1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1031 case $ac_user_opts in 1032 *" 1033"enable_$ac_useropt" 1034"*) ;; 1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1036 ac_unrecognized_sep=', ';; 1037 esac 1038 eval enable_$ac_useropt=no ;; 1039 1040 -docdir | --docdir | --docdi | --doc | --do) 1041 ac_prev=docdir ;; 1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1043 docdir=$ac_optarg ;; 1044 1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1046 ac_prev=dvidir ;; 1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1048 dvidir=$ac_optarg ;; 1049 1050 -enable-* | --enable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 as_fn_error "invalid feature name: $ac_useropt" 1055 ac_useropt_orig=$ac_useropt 1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1057 case $ac_user_opts in 1058 *" 1059"enable_$ac_useropt" 1060"*) ;; 1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1062 ac_unrecognized_sep=', ';; 1063 esac 1064 eval enable_$ac_useropt=\$ac_optarg ;; 1065 1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1068 | --exec | --exe | --ex) 1069 ac_prev=exec_prefix ;; 1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1072 | --exec=* | --exe=* | --ex=*) 1073 exec_prefix=$ac_optarg ;; 1074 1075 -gas | --gas | --ga | --g) 1076 # Obsolete; use --with-gas. 1077 with_gas=yes ;; 1078 1079 -help | --help | --hel | --he | -h) 1080 ac_init_help=long ;; 1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1082 ac_init_help=recursive ;; 1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1084 ac_init_help=short ;; 1085 1086 -host | --host | --hos | --ho) 1087 ac_prev=host_alias ;; 1088 -host=* | --host=* | --hos=* | --ho=*) 1089 host_alias=$ac_optarg ;; 1090 1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1092 ac_prev=htmldir ;; 1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1094 | --ht=*) 1095 htmldir=$ac_optarg ;; 1096 1097 -includedir | --includedir | --includedi | --included | --include \ 1098 | --includ | --inclu | --incl | --inc) 1099 ac_prev=includedir ;; 1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1101 | --includ=* | --inclu=* | --incl=* | --inc=*) 1102 includedir=$ac_optarg ;; 1103 1104 -infodir | --infodir | --infodi | --infod | --info | --inf) 1105 ac_prev=infodir ;; 1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1107 infodir=$ac_optarg ;; 1108 1109 -libdir | --libdir | --libdi | --libd) 1110 ac_prev=libdir ;; 1111 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1112 libdir=$ac_optarg ;; 1113 1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1115 | --libexe | --libex | --libe) 1116 ac_prev=libexecdir ;; 1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1118 | --libexe=* | --libex=* | --libe=*) 1119 libexecdir=$ac_optarg ;; 1120 1121 -localedir | --localedir | --localedi | --localed | --locale) 1122 ac_prev=localedir ;; 1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1124 localedir=$ac_optarg ;; 1125 1126 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1127 | --localstate | --localstat | --localsta | --localst | --locals) 1128 ac_prev=localstatedir ;; 1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1131 localstatedir=$ac_optarg ;; 1132 1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1134 ac_prev=mandir ;; 1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1136 mandir=$ac_optarg ;; 1137 1138 -nfp | --nfp | --nf) 1139 # Obsolete; use --without-fp. 1140 with_fp=no ;; 1141 1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1143 | --no-cr | --no-c | -n) 1144 no_create=yes ;; 1145 1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1148 no_recursion=yes ;; 1149 1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1152 | --oldin | --oldi | --old | --ol | --o) 1153 ac_prev=oldincludedir ;; 1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1157 oldincludedir=$ac_optarg ;; 1158 1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1160 ac_prev=prefix ;; 1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1162 prefix=$ac_optarg ;; 1163 1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1165 | --program-pre | --program-pr | --program-p) 1166 ac_prev=program_prefix ;; 1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1169 program_prefix=$ac_optarg ;; 1170 1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1172 | --program-suf | --program-su | --program-s) 1173 ac_prev=program_suffix ;; 1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1176 program_suffix=$ac_optarg ;; 1177 1178 -program-transform-name | --program-transform-name \ 1179 | --program-transform-nam | --program-transform-na \ 1180 | --program-transform-n | --program-transform- \ 1181 | --program-transform | --program-transfor \ 1182 | --program-transfo | --program-transf \ 1183 | --program-trans | --program-tran \ 1184 | --progr-tra | --program-tr | --program-t) 1185 ac_prev=program_transform_name ;; 1186 -program-transform-name=* | --program-transform-name=* \ 1187 | --program-transform-nam=* | --program-transform-na=* \ 1188 | --program-transform-n=* | --program-transform-=* \ 1189 | --program-transform=* | --program-transfor=* \ 1190 | --program-transfo=* | --program-transf=* \ 1191 | --program-trans=* | --program-tran=* \ 1192 | --progr-tra=* | --program-tr=* | --program-t=*) 1193 program_transform_name=$ac_optarg ;; 1194 1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1196 ac_prev=pdfdir ;; 1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1198 pdfdir=$ac_optarg ;; 1199 1200 -psdir | --psdir | --psdi | --psd | --ps) 1201 ac_prev=psdir ;; 1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1203 psdir=$ac_optarg ;; 1204 1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1206 | -silent | --silent | --silen | --sile | --sil) 1207 silent=yes ;; 1208 1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1210 ac_prev=sbindir ;; 1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1212 | --sbi=* | --sb=*) 1213 sbindir=$ac_optarg ;; 1214 1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1217 | --sharedst | --shareds | --shared | --share | --shar \ 1218 | --sha | --sh) 1219 ac_prev=sharedstatedir ;; 1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1223 | --sha=* | --sh=*) 1224 sharedstatedir=$ac_optarg ;; 1225 1226 -site | --site | --sit) 1227 ac_prev=site ;; 1228 -site=* | --site=* | --sit=*) 1229 site=$ac_optarg ;; 1230 1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1232 ac_prev=srcdir ;; 1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1234 srcdir=$ac_optarg ;; 1235 1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1237 | --syscon | --sysco | --sysc | --sys | --sy) 1238 ac_prev=sysconfdir ;; 1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1241 sysconfdir=$ac_optarg ;; 1242 1243 -target | --target | --targe | --targ | --tar | --ta | --t) 1244 ac_prev=target_alias ;; 1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1246 target_alias=$ac_optarg ;; 1247 1248 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1249 verbose=yes ;; 1250 1251 -version | --version | --versio | --versi | --vers | -V) 1252 ac_init_version=: ;; 1253 1254 -with-* | --with-*) 1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1258 as_fn_error "invalid package name: $ac_useropt" 1259 ac_useropt_orig=$ac_useropt 1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1261 case $ac_user_opts in 1262 *" 1263"with_$ac_useropt" 1264"*) ;; 1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1266 ac_unrecognized_sep=', ';; 1267 esac 1268 eval with_$ac_useropt=\$ac_optarg ;; 1269 1270 -without-* | --without-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 as_fn_error "invalid package name: $ac_useropt" 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=no ;; 1285 1286 --x) 1287 # Obsolete; use --with-x. 1288 with_x=yes ;; 1289 1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1291 | --x-incl | --x-inc | --x-in | --x-i) 1292 ac_prev=x_includes ;; 1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1295 x_includes=$ac_optarg ;; 1296 1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1299 ac_prev=x_libraries ;; 1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1302 x_libraries=$ac_optarg ;; 1303 1304 -*) as_fn_error "unrecognized option: \`$ac_option' 1305Try \`$0 --help' for more information." 1306 ;; 1307 1308 *=*) 1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1310 # Reject names that are not valid shell variable names. 1311 case $ac_envvar in #( 1312 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1313 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1314 esac 1315 eval $ac_envvar=\$ac_optarg 1316 export $ac_envvar ;; 1317 1318 *) 1319 # FIXME: should be removed in autoconf 3.0. 1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1324 ;; 1325 1326 esac 1327done 1328 1329if test -n "$ac_prev"; then 1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1331 as_fn_error "missing argument to $ac_option" 1332fi 1333 1334if test -n "$ac_unrecognized_opts"; then 1335 case $enable_option_checking in 1336 no) ;; 1337 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1339 esac 1340fi 1341 1342# Check all directory arguments for consistency. 1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1344 datadir sysconfdir sharedstatedir localstatedir includedir \ 1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1346 libdir localedir mandir 1347do 1348 eval ac_val=\$$ac_var 1349 # Remove trailing slashes. 1350 case $ac_val in 1351 */ ) 1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1353 eval $ac_var=\$ac_val;; 1354 esac 1355 # Be sure to have absolute directory names. 1356 case $ac_val in 1357 [\\/$]* | ?:[\\/]* ) continue;; 1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1359 esac 1360 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1361done 1362 1363# There might be people who depend on the old broken behavior: `$host' 1364# used to hold the argument of --host etc. 1365# FIXME: To remove some day. 1366build=$build_alias 1367host=$host_alias 1368target=$target_alias 1369 1370# FIXME: To remove some day. 1371if test "x$host_alias" != x; then 1372 if test "x$build_alias" = x; then 1373 cross_compiling=maybe 1374 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1375 If a cross compiler is detected then cross compile mode will be used." >&2 1376 elif test "x$build_alias" != "x$host_alias"; then 1377 cross_compiling=yes 1378 fi 1379fi 1380 1381ac_tool_prefix= 1382test -n "$host_alias" && ac_tool_prefix=$host_alias- 1383 1384test "$silent" = yes && exec 6>/dev/null 1385 1386 1387ac_pwd=`pwd` && test -n "$ac_pwd" && 1388ac_ls_di=`ls -di .` && 1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1390 as_fn_error "working directory cannot be determined" 1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1392 as_fn_error "pwd does not report name of working directory" 1393 1394 1395# Find the source files, if location was not specified. 1396if test -z "$srcdir"; then 1397 ac_srcdir_defaulted=yes 1398 # Try the directory containing this script, then the parent directory. 1399 ac_confdir=`$as_dirname -- "$as_myself" || 1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1401 X"$as_myself" : 'X\(//\)[^/]' \| \ 1402 X"$as_myself" : 'X\(//\)$' \| \ 1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1404$as_echo X"$as_myself" | 1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1406 s//\1/ 1407 q 1408 } 1409 /^X\(\/\/\)[^/].*/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\/\)$/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\).*/{ 1418 s//\1/ 1419 q 1420 } 1421 s/.*/./; q'` 1422 srcdir=$ac_confdir 1423 if test ! -r "$srcdir/$ac_unique_file"; then 1424 srcdir=.. 1425 fi 1426else 1427 ac_srcdir_defaulted=no 1428fi 1429if test ! -r "$srcdir/$ac_unique_file"; then 1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1431 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1432fi 1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1434ac_abs_confdir=`( 1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1436 pwd)` 1437# When building in place, set srcdir=. 1438if test "$ac_abs_confdir" = "$ac_pwd"; then 1439 srcdir=. 1440fi 1441# Remove unnecessary trailing slashes from srcdir. 1442# Double slashes in file names in object file debugging info 1443# mess up M-x gdb in Emacs. 1444case $srcdir in 1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1446esac 1447for ac_var in $ac_precious_vars; do 1448 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1449 eval ac_env_${ac_var}_value=\$${ac_var} 1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1451 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1452done 1453 1454# 1455# Report the --help message. 1456# 1457if test "$ac_init_help" = "long"; then 1458 # Omit some internal or obsolete options to make the list less imposing. 1459 # This message is too long to be a string in the A/UX 3.1 sh. 1460 cat <<_ACEOF 1461\`configure' configures xf86-video-apm 1.2.3 to adapt to many kinds of systems. 1462 1463Usage: $0 [OPTION]... [VAR=VALUE]... 1464 1465To assign environment variables (e.g., CC, CFLAGS...), specify them as 1466VAR=VALUE. See below for descriptions of some of the useful variables. 1467 1468Defaults for the options are specified in brackets. 1469 1470Configuration: 1471 -h, --help display this help and exit 1472 --help=short display options specific to this package 1473 --help=recursive display the short help of all the included packages 1474 -V, --version display version information and exit 1475 -q, --quiet, --silent do not print \`checking...' messages 1476 --cache-file=FILE cache test results in FILE [disabled] 1477 -C, --config-cache alias for \`--cache-file=config.cache' 1478 -n, --no-create do not create output files 1479 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1480 1481Installation directories: 1482 --prefix=PREFIX install architecture-independent files in PREFIX 1483 [$ac_default_prefix] 1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1485 [PREFIX] 1486 1487By default, \`make install' will install all the files in 1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1489an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1490for instance \`--prefix=\$HOME'. 1491 1492For better control, use the options below. 1493 1494Fine tuning of the installation directories: 1495 --bindir=DIR user executables [EPREFIX/bin] 1496 --sbindir=DIR system admin executables [EPREFIX/sbin] 1497 --libexecdir=DIR program executables [EPREFIX/libexec] 1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1501 --libdir=DIR object code libraries [EPREFIX/lib] 1502 --includedir=DIR C header files [PREFIX/include] 1503 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1506 --infodir=DIR info documentation [DATAROOTDIR/info] 1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1508 --mandir=DIR man documentation [DATAROOTDIR/man] 1509 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-apm] 1510 --htmldir=DIR html documentation [DOCDIR] 1511 --dvidir=DIR dvi documentation [DOCDIR] 1512 --pdfdir=DIR pdf documentation [DOCDIR] 1513 --psdir=DIR ps documentation [DOCDIR] 1514_ACEOF 1515 1516 cat <<\_ACEOF 1517 1518Program names: 1519 --program-prefix=PREFIX prepend PREFIX to installed program names 1520 --program-suffix=SUFFIX append SUFFIX to installed program names 1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1522 1523System types: 1524 --build=BUILD configure for building on BUILD [guessed] 1525 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1526_ACEOF 1527fi 1528 1529if test -n "$ac_init_help"; then 1530 case $ac_init_help in 1531 short | recursive ) echo "Configuration of xf86-video-apm 1.2.3:";; 1532 esac 1533 cat <<\_ACEOF 1534 1535Optional Features: 1536 --disable-option-checking ignore unrecognized --enable/--with options 1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1539 --enable-maintainer-mode enable make rules and dependencies not useful 1540 (and sometimes confusing) to the casual installer 1541 --disable-dependency-tracking speeds up one-time build 1542 --enable-dependency-tracking do not reject slow dependency extractors 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 --enable-static[=PKGS] build static libraries [default=no] 1549 --enable-shared[=PKGS] build shared libraries [default=yes] 1550 --enable-fast-install[=PKGS] 1551 optimize for fast installation [default=yes] 1552 --disable-libtool-lock avoid locking (might break parallel builds) 1553 1554Optional Packages: 1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1557 --with-pic try to use only PIC/non-PIC objects [default=use 1558 both] 1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1560 --with-xorg-module-dir=DIR 1561 1562Some influential environment variables: 1563 CC C compiler command 1564 CFLAGS C compiler flags 1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1566 nonstandard directory <lib dir> 1567 LIBS libraries to pass to the linker, e.g. -l<library> 1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1569 you have headers in a nonstandard directory <include dir> 1570 CPP C preprocessor 1571 PKG_CONFIG path to pkg-config utility 1572 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1573 XORG_LIBS linker flags for XORG, overriding pkg-config 1574 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1575 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1576 PCIACCESS_CFLAGS 1577 C compiler flags for PCIACCESS, overriding pkg-config 1578 PCIACCESS_LIBS 1579 linker flags for PCIACCESS, overriding pkg-config 1580 1581Use these variables to override the choices made by `configure' or to help 1582it to find libraries and programs with nonstandard names/locations. 1583 1584Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1585_ACEOF 1586ac_status=$? 1587fi 1588 1589if test "$ac_init_help" = "recursive"; then 1590 # If there are subdirs, report their specific --help. 1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1592 test -d "$ac_dir" || 1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1594 continue 1595 ac_builddir=. 1596 1597case "$ac_dir" in 1598.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1599*) 1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1601 # A ".." for each directory in $ac_dir_suffix. 1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1603 case $ac_top_builddir_sub in 1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1606 esac ;; 1607esac 1608ac_abs_top_builddir=$ac_pwd 1609ac_abs_builddir=$ac_pwd$ac_dir_suffix 1610# for backward compatibility: 1611ac_top_builddir=$ac_top_build_prefix 1612 1613case $srcdir in 1614 .) # We are building in place. 1615 ac_srcdir=. 1616 ac_top_srcdir=$ac_top_builddir_sub 1617 ac_abs_top_srcdir=$ac_pwd ;; 1618 [\\/]* | ?:[\\/]* ) # Absolute name. 1619 ac_srcdir=$srcdir$ac_dir_suffix; 1620 ac_top_srcdir=$srcdir 1621 ac_abs_top_srcdir=$srcdir ;; 1622 *) # Relative name. 1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1624 ac_top_srcdir=$ac_top_build_prefix$srcdir 1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1626esac 1627ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1628 1629 cd "$ac_dir" || { ac_status=$?; continue; } 1630 # Check for guested configure. 1631 if test -f "$ac_srcdir/configure.gnu"; then 1632 echo && 1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1634 elif test -f "$ac_srcdir/configure"; then 1635 echo && 1636 $SHELL "$ac_srcdir/configure" --help=recursive 1637 else 1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1639 fi || ac_status=$? 1640 cd "$ac_pwd" || { ac_status=$?; break; } 1641 done 1642fi 1643 1644test -n "$ac_init_help" && exit $ac_status 1645if $ac_init_version; then 1646 cat <<\_ACEOF 1647xf86-video-apm configure 1.2.3 1648generated by GNU Autoconf 2.65 1649 1650Copyright (C) 2009 Free Software Foundation, Inc. 1651This configure script is free software; the Free Software Foundation 1652gives unlimited permission to copy, distribute and modify it. 1653_ACEOF 1654 exit 1655fi 1656 1657## ------------------------ ## 1658## Autoconf initialization. ## 1659## ------------------------ ## 1660 1661# ac_fn_c_try_compile LINENO 1662# -------------------------- 1663# Try to compile conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_compile () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 rm -f conftest.$ac_objext 1668 if { { ac_try="$ac_compile" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_compile") 2>conftest.err 1676 ac_status=$? 1677 if test -s conftest.err; then 1678 grep -v '^ *+' conftest.err >conftest.er1 1679 cat conftest.er1 >&5 1680 mv -f conftest.er1 conftest.err 1681 fi 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } && { 1684 test -z "$ac_c_werror_flag" || 1685 test ! -s conftest.err 1686 } && test -s conftest.$ac_objext; then : 1687 ac_retval=0 1688else 1689 $as_echo "$as_me: failed program was:" >&5 1690sed 's/^/| /' conftest.$ac_ext >&5 1691 1692 ac_retval=1 1693fi 1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1695 as_fn_set_status $ac_retval 1696 1697} # ac_fn_c_try_compile 1698 1699# ac_fn_c_check_decl LINENO SYMBOL VAR 1700# ------------------------------------ 1701# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1702ac_fn_c_check_decl () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1706$as_echo_n "checking whether $2 is declared... " >&6; } 1707if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1708 $as_echo_n "(cached) " >&6 1709else 1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712$4 1713int 1714main () 1715{ 1716#ifndef $2 1717 (void) $2; 1718#endif 1719 1720 ; 1721 return 0; 1722} 1723_ACEOF 1724if ac_fn_c_try_compile "$LINENO"; then : 1725 eval "$3=yes" 1726else 1727 eval "$3=no" 1728fi 1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1730fi 1731eval ac_res=\$$3 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733$as_echo "$ac_res" >&6; } 1734 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1735 1736} # ac_fn_c_check_decl 1737 1738# ac_fn_c_try_cpp LINENO 1739# ---------------------- 1740# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1741ac_fn_c_try_cpp () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 if { { ac_try="$ac_cpp conftest.$ac_ext" 1745case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1752 ac_status=$? 1753 if test -s conftest.err; then 1754 grep -v '^ *+' conftest.err >conftest.er1 1755 cat conftest.er1 >&5 1756 mv -f conftest.er1 conftest.err 1757 fi 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; } >/dev/null && { 1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1761 test ! -s conftest.err 1762 }; then : 1763 ac_retval=0 1764else 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=1 1769fi 1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1771 as_fn_set_status $ac_retval 1772 1773} # ac_fn_c_try_cpp 1774 1775# ac_fn_c_try_run LINENO 1776# ---------------------- 1777# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1778# that executables *can* be run. 1779ac_fn_c_try_run () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 if { { ac_try="$ac_link" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788$as_echo "$ac_try_echo"; } >&5 1789 (eval "$ac_link") 2>&5 1790 ac_status=$? 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1793 { { case "(($ac_try" in 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1795 *) ac_try_echo=$ac_try;; 1796esac 1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1798$as_echo "$ac_try_echo"; } >&5 1799 (eval "$ac_try") 2>&5 1800 ac_status=$? 1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1802 test $ac_status = 0; }; }; then : 1803 ac_retval=0 1804else 1805 $as_echo "$as_me: program exited with status $ac_status" >&5 1806 $as_echo "$as_me: failed program was:" >&5 1807sed 's/^/| /' conftest.$ac_ext >&5 1808 1809 ac_retval=$ac_status 1810fi 1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1813 as_fn_set_status $ac_retval 1814 1815} # ac_fn_c_try_run 1816 1817# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1818# ------------------------------------------------------- 1819# Tests whether HEADER exists and can be compiled using the include files in 1820# INCLUDES, setting the cache variable VAR accordingly. 1821ac_fn_c_check_header_compile () 1822{ 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825$as_echo_n "checking for $2... " >&6; } 1826if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1827 $as_echo_n "(cached) " >&6 1828else 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831$4 1832#include <$2> 1833_ACEOF 1834if ac_fn_c_try_compile "$LINENO"; then : 1835 eval "$3=yes" 1836else 1837 eval "$3=no" 1838fi 1839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1840fi 1841eval ac_res=\$$3 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843$as_echo "$ac_res" >&6; } 1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1845 1846} # ac_fn_c_check_header_compile 1847 1848# ac_fn_c_try_link LINENO 1849# ----------------------- 1850# Try to link conftest.$ac_ext, and return whether this succeeded. 1851ac_fn_c_try_link () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 rm -f conftest.$ac_objext conftest$ac_exeext 1855 if { { ac_try="$ac_link" 1856case "(($ac_try" in 1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1858 *) ac_try_echo=$ac_try;; 1859esac 1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1861$as_echo "$ac_try_echo"; } >&5 1862 (eval "$ac_link") 2>conftest.err 1863 ac_status=$? 1864 if test -s conftest.err; then 1865 grep -v '^ *+' conftest.err >conftest.er1 1866 cat conftest.er1 >&5 1867 mv -f conftest.er1 conftest.err 1868 fi 1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1870 test $ac_status = 0; } && { 1871 test -z "$ac_c_werror_flag" || 1872 test ! -s conftest.err 1873 } && test -s conftest$ac_exeext && { 1874 test "$cross_compiling" = yes || 1875 $as_test_x conftest$ac_exeext 1876 }; then : 1877 ac_retval=0 1878else 1879 $as_echo "$as_me: failed program was:" >&5 1880sed 's/^/| /' conftest.$ac_ext >&5 1881 1882 ac_retval=1 1883fi 1884 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1885 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1886 # interfere with the next link command; also delete a directory that is 1887 # left behind by Apple's compiler. We do this before executing the actions. 1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1890 as_fn_set_status $ac_retval 1891 1892} # ac_fn_c_try_link 1893 1894# ac_fn_c_check_func LINENO FUNC VAR 1895# ---------------------------------- 1896# Tests whether FUNC exists, setting the cache variable VAR accordingly 1897ac_fn_c_check_func () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1901$as_echo_n "checking for $2... " >&6; } 1902if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1903 $as_echo_n "(cached) " >&6 1904else 1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1909#define $2 innocuous_$2 1910 1911/* System header to define __stub macros and hopefully few prototypes, 1912 which can conflict with char $2 (); below. 1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1914 <limits.h> exists even on freestanding compilers. */ 1915 1916#ifdef __STDC__ 1917# include <limits.h> 1918#else 1919# include <assert.h> 1920#endif 1921 1922#undef $2 1923 1924/* Override any GCC internal prototype to avoid an error. 1925 Use char because int might match the return type of a GCC 1926 builtin and then its argument prototype would still apply. */ 1927#ifdef __cplusplus 1928extern "C" 1929#endif 1930char $2 (); 1931/* The GNU C library defines this for functions which it implements 1932 to always fail with ENOSYS. Some functions are actually named 1933 something starting with __ and the normal name is an alias. */ 1934#if defined __stub_$2 || defined __stub___$2 1935choke me 1936#endif 1937 1938int 1939main () 1940{ 1941return $2 (); 1942 ; 1943 return 0; 1944} 1945_ACEOF 1946if ac_fn_c_try_link "$LINENO"; then : 1947 eval "$3=yes" 1948else 1949 eval "$3=no" 1950fi 1951rm -f core conftest.err conftest.$ac_objext \ 1952 conftest$ac_exeext conftest.$ac_ext 1953fi 1954eval ac_res=\$$3 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1956$as_echo "$ac_res" >&6; } 1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1958 1959} # ac_fn_c_check_func 1960cat >config.log <<_ACEOF 1961This file contains any messages produced by compilers while 1962running configure, to aid debugging if configure makes a mistake. 1963 1964It was created by xf86-video-apm $as_me 1.2.3, which was 1965generated by GNU Autoconf 2.65. Invocation command line was 1966 1967 $ $0 $@ 1968 1969_ACEOF 1970exec 5>>config.log 1971{ 1972cat <<_ASUNAME 1973## --------- ## 1974## Platform. ## 1975## --------- ## 1976 1977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1978uname -m = `(uname -m) 2>/dev/null || echo unknown` 1979uname -r = `(uname -r) 2>/dev/null || echo unknown` 1980uname -s = `(uname -s) 2>/dev/null || echo unknown` 1981uname -v = `(uname -v) 2>/dev/null || echo unknown` 1982 1983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1984/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1985 1986/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1987/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1989/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1990/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1991/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1992/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1993 1994_ASUNAME 1995 1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1997for as_dir in $PATH 1998do 1999 IFS=$as_save_IFS 2000 test -z "$as_dir" && as_dir=. 2001 $as_echo "PATH: $as_dir" 2002 done 2003IFS=$as_save_IFS 2004 2005} >&5 2006 2007cat >&5 <<_ACEOF 2008 2009 2010## ----------- ## 2011## Core tests. ## 2012## ----------- ## 2013 2014_ACEOF 2015 2016 2017# Keep a trace of the command line. 2018# Strip out --no-create and --no-recursion so they do not pile up. 2019# Strip out --silent because we don't want to record it for future runs. 2020# Also quote any args containing shell meta-characters. 2021# Make two passes to allow for proper duplicate-argument suppression. 2022ac_configure_args= 2023ac_configure_args0= 2024ac_configure_args1= 2025ac_must_keep_next=false 2026for ac_pass in 1 2 2027do 2028 for ac_arg 2029 do 2030 case $ac_arg in 2031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2033 | -silent | --silent | --silen | --sile | --sil) 2034 continue ;; 2035 *\'*) 2036 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2037 esac 2038 case $ac_pass in 2039 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2040 2) 2041 as_fn_append ac_configure_args1 " '$ac_arg'" 2042 if test $ac_must_keep_next = true; then 2043 ac_must_keep_next=false # Got value, back to normal. 2044 else 2045 case $ac_arg in 2046 *=* | --config-cache | -C | -disable-* | --disable-* \ 2047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2049 | -with-* | --with-* | -without-* | --without-* | --x) 2050 case "$ac_configure_args0 " in 2051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2052 esac 2053 ;; 2054 -* ) ac_must_keep_next=true ;; 2055 esac 2056 fi 2057 as_fn_append ac_configure_args " '$ac_arg'" 2058 ;; 2059 esac 2060 done 2061done 2062{ ac_configure_args0=; unset ac_configure_args0;} 2063{ ac_configure_args1=; unset ac_configure_args1;} 2064 2065# When interrupted or exit'd, cleanup temporary files, and complete 2066# config.log. We remove comments because anyway the quotes in there 2067# would cause problems or look ugly. 2068# WARNING: Use '\'' to represent an apostrophe within the trap. 2069# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2070trap 'exit_status=$? 2071 # Save into config.log some information that might help in debugging. 2072 { 2073 echo 2074 2075 cat <<\_ASBOX 2076## ---------------- ## 2077## Cache variables. ## 2078## ---------------- ## 2079_ASBOX 2080 echo 2081 # The following way of writing the cache mishandles newlines in values, 2082( 2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in #( 2086 *${as_nl}*) 2087 case $ac_var in #( 2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2090 esac 2091 case $ac_var in #( 2092 _ | IFS | as_nl) ;; #( 2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2094 *) { eval $ac_var=; unset $ac_var;} ;; 2095 esac ;; 2096 esac 2097 done 2098 (set) 2>&1 | 2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2100 *${as_nl}ac_space=\ *) 2101 sed -n \ 2102 "s/'\''/'\''\\\\'\'''\''/g; 2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2104 ;; #( 2105 *) 2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2107 ;; 2108 esac | 2109 sort 2110) 2111 echo 2112 2113 cat <<\_ASBOX 2114## ----------------- ## 2115## Output variables. ## 2116## ----------------- ## 2117_ASBOX 2118 echo 2119 for ac_var in $ac_subst_vars 2120 do 2121 eval ac_val=\$$ac_var 2122 case $ac_val in 2123 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2124 esac 2125 $as_echo "$ac_var='\''$ac_val'\''" 2126 done | sort 2127 echo 2128 2129 if test -n "$ac_subst_files"; then 2130 cat <<\_ASBOX 2131## ------------------- ## 2132## File substitutions. ## 2133## ------------------- ## 2134_ASBOX 2135 echo 2136 for ac_var in $ac_subst_files 2137 do 2138 eval ac_val=\$$ac_var 2139 case $ac_val in 2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2141 esac 2142 $as_echo "$ac_var='\''$ac_val'\''" 2143 done | sort 2144 echo 2145 fi 2146 2147 if test -s confdefs.h; then 2148 cat <<\_ASBOX 2149## ----------- ## 2150## confdefs.h. ## 2151## ----------- ## 2152_ASBOX 2153 echo 2154 cat confdefs.h 2155 echo 2156 fi 2157 test "$ac_signal" != 0 && 2158 $as_echo "$as_me: caught signal $ac_signal" 2159 $as_echo "$as_me: exit $exit_status" 2160 } >&5 2161 rm -f core *.core core.conftest.* && 2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2163 exit $exit_status 2164' 0 2165for ac_signal in 1 2 13 15; do 2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2167done 2168ac_signal=0 2169 2170# confdefs.h avoids OS command line length limits that DEFS can exceed. 2171rm -f -r conftest* confdefs.h 2172 2173$as_echo "/* confdefs.h */" > confdefs.h 2174 2175# Predefined preprocessor variables. 2176 2177cat >>confdefs.h <<_ACEOF 2178#define PACKAGE_NAME "$PACKAGE_NAME" 2179_ACEOF 2180 2181cat >>confdefs.h <<_ACEOF 2182#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2183_ACEOF 2184 2185cat >>confdefs.h <<_ACEOF 2186#define PACKAGE_VERSION "$PACKAGE_VERSION" 2187_ACEOF 2188 2189cat >>confdefs.h <<_ACEOF 2190#define PACKAGE_STRING "$PACKAGE_STRING" 2191_ACEOF 2192 2193cat >>confdefs.h <<_ACEOF 2194#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2195_ACEOF 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_URL "$PACKAGE_URL" 2199_ACEOF 2200 2201 2202# Let the site file select an alternate cache file if it wants to. 2203# Prefer an explicitly selected file to automatically selected ones. 2204ac_site_file1=NONE 2205ac_site_file2=NONE 2206if test -n "$CONFIG_SITE"; then 2207 ac_site_file1=$CONFIG_SITE 2208elif test "x$prefix" != xNONE; then 2209 ac_site_file1=$prefix/share/config.site 2210 ac_site_file2=$prefix/etc/config.site 2211else 2212 ac_site_file1=$ac_default_prefix/share/config.site 2213 ac_site_file2=$ac_default_prefix/etc/config.site 2214fi 2215for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2216do 2217 test "x$ac_site_file" = xNONE && continue 2218 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2220$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2221 sed 's/^/| /' "$ac_site_file" >&5 2222 . "$ac_site_file" 2223 fi 2224done 2225 2226if test -r "$cache_file"; then 2227 # Some versions of bash will fail to source /dev/null (special files 2228 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2229 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2231$as_echo "$as_me: loading cache $cache_file" >&6;} 2232 case $cache_file in 2233 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2234 *) . "./$cache_file";; 2235 esac 2236 fi 2237else 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2239$as_echo "$as_me: creating cache $cache_file" >&6;} 2240 >$cache_file 2241fi 2242 2243# Check that the precious variables saved in the cache have kept the same 2244# value. 2245ac_cache_corrupted=false 2246for ac_var in $ac_precious_vars; do 2247 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2248 eval ac_new_set=\$ac_env_${ac_var}_set 2249 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2250 eval ac_new_val=\$ac_env_${ac_var}_value 2251 case $ac_old_set,$ac_new_set in 2252 set,) 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2254$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2255 ac_cache_corrupted=: ;; 2256 ,set) 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2258$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2259 ac_cache_corrupted=: ;; 2260 ,);; 2261 *) 2262 if test "x$ac_old_val" != "x$ac_new_val"; then 2263 # differences in whitespace do not lead to failure. 2264 ac_old_val_w=`echo x $ac_old_val` 2265 ac_new_val_w=`echo x $ac_new_val` 2266 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2268$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2269 ac_cache_corrupted=: 2270 else 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2272$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2273 eval $ac_var=\$ac_old_val 2274 fi 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2276$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2278$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2279 fi;; 2280 esac 2281 # Pass precious variables to config.status. 2282 if test "$ac_new_set" = set; then 2283 case $ac_new_val in 2284 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2285 *) ac_arg=$ac_var=$ac_new_val ;; 2286 esac 2287 case " $ac_configure_args " in 2288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2289 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2290 esac 2291 fi 2292done 2293if $ac_cache_corrupted; then 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2297$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2298 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2299fi 2300## -------------------- ## 2301## Main body of script. ## 2302## -------------------- ## 2303 2304ac_ext=c 2305ac_cpp='$CPP $CPPFLAGS' 2306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2308ac_compiler_gnu=$ac_cv_c_compiler_gnu 2309 2310 2311 2312ac_config_headers="$ac_config_headers config.h" 2313 2314ac_aux_dir= 2315for ac_dir in . "$srcdir"/.; do 2316 for ac_t in install-sh install.sh shtool; do 2317 if test -f "$ac_dir/$ac_t"; then 2318 ac_aux_dir=$ac_dir 2319 ac_install_sh="$ac_aux_dir/$ac_t -c" 2320 break 2 2321 fi 2322 done 2323done 2324if test -z "$ac_aux_dir"; then 2325 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2326fi 2327 2328# These three variables are undocumented and unsupported, 2329# and are intended to be withdrawn in a future Autoconf release. 2330# They can cause serious problems if a builder's source tree is in a directory 2331# whose full name contains unusual characters. 2332ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2333ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2334ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2335 2336 2337 2338# Initialize Automake 2339am__api_version='1.11' 2340 2341# Find a good install program. We prefer a C program (faster), 2342# so one script is as good as another. But avoid the broken or 2343# incompatible versions: 2344# SysV /etc/install, /usr/sbin/install 2345# SunOS /usr/etc/install 2346# IRIX /sbin/install 2347# AIX /bin/install 2348# AmigaOS /C/install, which installs bootblocks on floppy discs 2349# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2350# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2351# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2352# OS/2's system install, which has a completely different semantic 2353# ./install, which can be erroneously created by make from ./install.sh. 2354# Reject install programs that cannot install multiple files. 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2356$as_echo_n "checking for a BSD-compatible install... " >&6; } 2357if test -z "$INSTALL"; then 2358if test "${ac_cv_path_install+set}" = set; then : 2359 $as_echo_n "(cached) " >&6 2360else 2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2362for as_dir in $PATH 2363do 2364 IFS=$as_save_IFS 2365 test -z "$as_dir" && as_dir=. 2366 # Account for people who put trailing slashes in PATH elements. 2367case $as_dir/ in #(( 2368 ./ | .// | /[cC]/* | \ 2369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2370 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2371 /usr/ucb/* ) ;; 2372 *) 2373 # OSF1 and SCO ODT 3.0 have their own names for install. 2374 # Don't use installbsd from OSF since it installs stuff as root 2375 # by default. 2376 for ac_prog in ginstall scoinst install; do 2377 for ac_exec_ext in '' $ac_executable_extensions; do 2378 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2379 if test $ac_prog = install && 2380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2381 # AIX install. It has an incompatible calling convention. 2382 : 2383 elif test $ac_prog = install && 2384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2385 # program-specific install script used by HP pwplus--don't use. 2386 : 2387 else 2388 rm -rf conftest.one conftest.two conftest.dir 2389 echo one > conftest.one 2390 echo two > conftest.two 2391 mkdir conftest.dir 2392 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2393 test -s conftest.one && test -s conftest.two && 2394 test -s conftest.dir/conftest.one && 2395 test -s conftest.dir/conftest.two 2396 then 2397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2398 break 3 2399 fi 2400 fi 2401 fi 2402 done 2403 done 2404 ;; 2405esac 2406 2407 done 2408IFS=$as_save_IFS 2409 2410rm -rf conftest.one conftest.two conftest.dir 2411 2412fi 2413 if test "${ac_cv_path_install+set}" = set; then 2414 INSTALL=$ac_cv_path_install 2415 else 2416 # As a last resort, use the slow shell script. Don't cache a 2417 # value for INSTALL within a source directory, because that will 2418 # break other packages using the cache if that directory is 2419 # removed, or if the value is a relative name. 2420 INSTALL=$ac_install_sh 2421 fi 2422fi 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2424$as_echo "$INSTALL" >&6; } 2425 2426# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2427# It thinks the first close brace ends the variable substitution. 2428test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2429 2430test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2431 2432test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2433 2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2435$as_echo_n "checking whether build environment is sane... " >&6; } 2436# Just in case 2437sleep 1 2438echo timestamp > conftest.file 2439# Reject unsafe characters in $srcdir or the absolute working directory 2440# name. Accept space and tab only in the latter. 2441am_lf=' 2442' 2443case `pwd` in 2444 *[\\\"\#\$\&\'\`$am_lf]*) 2445 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2446esac 2447case $srcdir in 2448 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2449 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2450esac 2451 2452# Do `set' in a subshell so we don't clobber the current shell's 2453# arguments. Must try -L first in case configure is actually a 2454# symlink; some systems play weird games with the mod time of symlinks 2455# (eg FreeBSD returns the mod time of the symlink's containing 2456# directory). 2457if ( 2458 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2459 if test "$*" = "X"; then 2460 # -L didn't work. 2461 set X `ls -t "$srcdir/configure" conftest.file` 2462 fi 2463 rm -f conftest.file 2464 if test "$*" != "X $srcdir/configure conftest.file" \ 2465 && test "$*" != "X conftest.file $srcdir/configure"; then 2466 2467 # If neither matched, then we have a broken ls. This can happen 2468 # if, for instance, CONFIG_SHELL is bash and it inherits a 2469 # broken ls alias from the environment. This has actually 2470 # happened. Such a system could not be considered "sane". 2471 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2472alias in your environment" "$LINENO" 5 2473 fi 2474 2475 test "$2" = conftest.file 2476 ) 2477then 2478 # Ok. 2479 : 2480else 2481 as_fn_error "newly created file is older than distributed files! 2482Check your system clock" "$LINENO" 5 2483fi 2484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2485$as_echo "yes" >&6; } 2486test "$program_prefix" != NONE && 2487 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2488# Use a double $ so make ignores it. 2489test "$program_suffix" != NONE && 2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2491# Double any \ or $. 2492# By default was `s,x,x', remove it if useless. 2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2495 2496# expand $ac_aux_dir to an absolute path 2497am_aux_dir=`cd $ac_aux_dir && pwd` 2498 2499if test x"${MISSING+set}" != xset; then 2500 case $am_aux_dir in 2501 *\ * | *\ *) 2502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2503 *) 2504 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2505 esac 2506fi 2507# Use eval to expand $SHELL 2508if eval "$MISSING --run true"; then 2509 am_missing_run="$MISSING --run " 2510else 2511 am_missing_run= 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2513$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2514fi 2515 2516if test x"${install_sh}" != xset; then 2517 case $am_aux_dir in 2518 *\ * | *\ *) 2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2520 *) 2521 install_sh="\${SHELL} $am_aux_dir/install-sh" 2522 esac 2523fi 2524 2525# Installed binaries are usually stripped using `strip' when the user 2526# run `make install-strip'. However `strip' might not be the right 2527# tool to use in cross-compilation environments, therefore Automake 2528# will honor the `STRIP' environment variable to overrule this program. 2529if test "$cross_compiling" != no; then 2530 if test -n "$ac_tool_prefix"; then 2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2532set dummy ${ac_tool_prefix}strip; ac_word=$2 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2534$as_echo_n "checking for $ac_word... " >&6; } 2535if test "${ac_cv_prog_STRIP+set}" = set; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 if test -n "$STRIP"; then 2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2540else 2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2548 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2550 break 2 2551 fi 2552done 2553 done 2554IFS=$as_save_IFS 2555 2556fi 2557fi 2558STRIP=$ac_cv_prog_STRIP 2559if test -n "$STRIP"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2561$as_echo "$STRIP" >&6; } 2562else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2564$as_echo "no" >&6; } 2565fi 2566 2567 2568fi 2569if test -z "$ac_cv_prog_STRIP"; then 2570 ac_ct_STRIP=$STRIP 2571 # Extract the first word of "strip", so it can be a program name with args. 2572set dummy strip; ac_word=$2 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2574$as_echo_n "checking for $ac_word... " >&6; } 2575if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2576 $as_echo_n "(cached) " >&6 2577else 2578 if test -n "$ac_ct_STRIP"; then 2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2580else 2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2588 ac_cv_prog_ac_ct_STRIP="strip" 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593 done 2594IFS=$as_save_IFS 2595 2596fi 2597fi 2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2599if test -n "$ac_ct_STRIP"; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2601$as_echo "$ac_ct_STRIP" >&6; } 2602else 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2604$as_echo "no" >&6; } 2605fi 2606 2607 if test "x$ac_ct_STRIP" = x; then 2608 STRIP=":" 2609 else 2610 case $cross_compiling:$ac_tool_warned in 2611yes:) 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2614ac_tool_warned=yes ;; 2615esac 2616 STRIP=$ac_ct_STRIP 2617 fi 2618else 2619 STRIP="$ac_cv_prog_STRIP" 2620fi 2621 2622fi 2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2624 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2627if test -z "$MKDIR_P"; then 2628 if test "${ac_cv_path_mkdir+set}" = set; then : 2629 $as_echo_n "(cached) " >&6 2630else 2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_prog in mkdir gmkdir; do 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2640 'mkdir (GNU coreutils) '* | \ 2641 'mkdir (coreutils) '* | \ 2642 'mkdir (fileutils) '4.1*) 2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2644 break 3;; 2645 esac 2646 done 2647 done 2648 done 2649IFS=$as_save_IFS 2650 2651fi 2652 2653 test -d ./--version && rmdir ./--version 2654 if test "${ac_cv_path_mkdir+set}" = set; then 2655 MKDIR_P="$ac_cv_path_mkdir -p" 2656 else 2657 # As a last resort, use the slow shell script. Don't cache a 2658 # value for MKDIR_P within a source directory, because that will 2659 # break other packages using the cache if that directory is 2660 # removed, or if the value is a relative name. 2661 MKDIR_P="$ac_install_sh -d" 2662 fi 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2665$as_echo "$MKDIR_P" >&6; } 2666 2667mkdir_p="$MKDIR_P" 2668case $mkdir_p in 2669 [\\/$]* | ?:[\\/]*) ;; 2670 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2671esac 2672 2673for ac_prog in gawk mawk nawk awk 2674do 2675 # Extract the first word of "$ac_prog", so it can be a program name with args. 2676set dummy $ac_prog; ac_word=$2 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678$as_echo_n "checking for $ac_word... " >&6; } 2679if test "${ac_cv_prog_AWK+set}" = set; then : 2680 $as_echo_n "(cached) " >&6 2681else 2682 if test -n "$AWK"; then 2683 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2684else 2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686for as_dir in $PATH 2687do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2692 ac_cv_prog_AWK="$ac_prog" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696done 2697 done 2698IFS=$as_save_IFS 2699 2700fi 2701fi 2702AWK=$ac_cv_prog_AWK 2703if test -n "$AWK"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2705$as_echo "$AWK" >&6; } 2706else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708$as_echo "no" >&6; } 2709fi 2710 2711 2712 test -n "$AWK" && break 2713done 2714 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2716$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2717set x ${MAKE-make} 2718ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2719if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 cat >conftest.make <<\_ACEOF 2723SHELL = /bin/sh 2724all: 2725 @echo '@@@%%%=$(MAKE)=@@@%%%' 2726_ACEOF 2727# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2728case `${MAKE-make} -f conftest.make 2>/dev/null` in 2729 *@@@%%%=?*=@@@%%%*) 2730 eval ac_cv_prog_make_${ac_make}_set=yes;; 2731 *) 2732 eval ac_cv_prog_make_${ac_make}_set=no;; 2733esac 2734rm -f conftest.make 2735fi 2736if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2738$as_echo "yes" >&6; } 2739 SET_MAKE= 2740else 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2742$as_echo "no" >&6; } 2743 SET_MAKE="MAKE=${MAKE-make}" 2744fi 2745 2746rm -rf .tst 2>/dev/null 2747mkdir .tst 2>/dev/null 2748if test -d .tst; then 2749 am__leading_dot=. 2750else 2751 am__leading_dot=_ 2752fi 2753rmdir .tst 2>/dev/null 2754 2755if test "`cd $srcdir && pwd`" != "`pwd`"; then 2756 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2757 # is not polluted with repeated "-I." 2758 am__isrc=' -I$(srcdir)' 2759 # test to see if srcdir already configured 2760 if test -f $srcdir/config.status; then 2761 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2762 fi 2763fi 2764 2765# test whether we have cygpath 2766if test -z "$CYGPATH_W"; then 2767 if (cygpath --version) >/dev/null 2>/dev/null; then 2768 CYGPATH_W='cygpath -w' 2769 else 2770 CYGPATH_W=echo 2771 fi 2772fi 2773 2774 2775# Define the identity of the package. 2776 PACKAGE='xf86-video-apm' 2777 VERSION='1.2.3' 2778 2779 2780cat >>confdefs.h <<_ACEOF 2781#define PACKAGE "$PACKAGE" 2782_ACEOF 2783 2784 2785cat >>confdefs.h <<_ACEOF 2786#define VERSION "$VERSION" 2787_ACEOF 2788 2789# Some tools Automake needs. 2790 2791ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2792 2793 2794AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2795 2796 2797AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2798 2799 2800AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2801 2802 2803MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2804 2805# We need awk for the "check" target. The system "awk" is bad on 2806# some platforms. 2807# Always define AMTAR for backward compatibility. 2808 2809AMTAR=${AMTAR-"${am_missing_run}tar"} 2810 2811am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2812 2813 2814 2815 2816 2817 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2819$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2820 # Check whether --enable-maintainer-mode was given. 2821if test "${enable_maintainer_mode+set}" = set; then : 2822 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2823else 2824 USE_MAINTAINER_MODE=no 2825fi 2826 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2828$as_echo "$USE_MAINTAINER_MODE" >&6; } 2829 if test $USE_MAINTAINER_MODE = yes; then 2830 MAINTAINER_MODE_TRUE= 2831 MAINTAINER_MODE_FALSE='#' 2832else 2833 MAINTAINER_MODE_TRUE='#' 2834 MAINTAINER_MODE_FALSE= 2835fi 2836 2837 MAINT=$MAINTAINER_MODE_TRUE 2838 2839 2840 2841# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853DEPDIR="${am__leading_dot}deps" 2854 2855ac_config_commands="$ac_config_commands depfiles" 2856 2857 2858am_make=${MAKE-make} 2859cat > confinc << 'END' 2860am__doit: 2861 @echo this is the am__doit target 2862.PHONY: am__doit 2863END 2864# If we don't find an include directive, just comment out the code. 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2866$as_echo_n "checking for style of include used by $am_make... " >&6; } 2867am__include="#" 2868am__quote= 2869_am_result=none 2870# First try GNU make style include. 2871echo "include confinc" > confmf 2872# Ignore all kinds of additional output from `make'. 2873case `$am_make -s -f confmf 2> /dev/null` in #( 2874*the\ am__doit\ target*) 2875 am__include=include 2876 am__quote= 2877 _am_result=GNU 2878 ;; 2879esac 2880# Now try BSD make style include. 2881if test "$am__include" = "#"; then 2882 echo '.include "confinc"' > confmf 2883 case `$am_make -s -f confmf 2> /dev/null` in #( 2884 *the\ am__doit\ target*) 2885 am__include=.include 2886 am__quote="\"" 2887 _am_result=BSD 2888 ;; 2889 esac 2890fi 2891 2892 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2894$as_echo "$_am_result" >&6; } 2895rm -f confinc confmf 2896 2897# Check whether --enable-dependency-tracking was given. 2898if test "${enable_dependency_tracking+set}" = set; then : 2899 enableval=$enable_dependency_tracking; 2900fi 2901 2902if test "x$enable_dependency_tracking" != xno; then 2903 am_depcomp="$ac_aux_dir/depcomp" 2904 AMDEPBACKSLASH='\' 2905fi 2906 if test "x$enable_dependency_tracking" != xno; then 2907 AMDEP_TRUE= 2908 AMDEP_FALSE='#' 2909else 2910 AMDEP_TRUE='#' 2911 AMDEP_FALSE= 2912fi 2913 2914 2915ac_ext=c 2916ac_cpp='$CPP $CPPFLAGS' 2917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2919ac_compiler_gnu=$ac_cv_c_compiler_gnu 2920if test -n "$ac_tool_prefix"; then 2921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2922set dummy ${ac_tool_prefix}gcc; ac_word=$2 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924$as_echo_n "checking for $ac_word... " >&6; } 2925if test "${ac_cv_prog_CC+set}" = set; then : 2926 $as_echo_n "(cached) " >&6 2927else 2928 if test -n "$CC"; then 2929 ac_cv_prog_CC="$CC" # Let the user override the test. 2930else 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 test -z "$as_dir" && as_dir=. 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2938 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2940 break 2 2941 fi 2942done 2943 done 2944IFS=$as_save_IFS 2945 2946fi 2947fi 2948CC=$ac_cv_prog_CC 2949if test -n "$CC"; then 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2951$as_echo "$CC" >&6; } 2952else 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954$as_echo "no" >&6; } 2955fi 2956 2957 2958fi 2959if test -z "$ac_cv_prog_CC"; then 2960 ac_ct_CC=$CC 2961 # Extract the first word of "gcc", so it can be a program name with args. 2962set dummy gcc; ac_word=$2 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2964$as_echo_n "checking for $ac_word... " >&6; } 2965if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2966 $as_echo_n "(cached) " >&6 2967else 2968 if test -n "$ac_ct_CC"; then 2969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2970else 2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972for as_dir in $PATH 2973do 2974 IFS=$as_save_IFS 2975 test -z "$as_dir" && as_dir=. 2976 for ac_exec_ext in '' $ac_executable_extensions; do 2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2978 ac_cv_prog_ac_ct_CC="gcc" 2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2980 break 2 2981 fi 2982done 2983 done 2984IFS=$as_save_IFS 2985 2986fi 2987fi 2988ac_ct_CC=$ac_cv_prog_ac_ct_CC 2989if test -n "$ac_ct_CC"; then 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2991$as_echo "$ac_ct_CC" >&6; } 2992else 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2994$as_echo "no" >&6; } 2995fi 2996 2997 if test "x$ac_ct_CC" = x; then 2998 CC="" 2999 else 3000 case $cross_compiling:$ac_tool_warned in 3001yes:) 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3004ac_tool_warned=yes ;; 3005esac 3006 CC=$ac_ct_CC 3007 fi 3008else 3009 CC="$ac_cv_prog_CC" 3010fi 3011 3012if test -z "$CC"; then 3013 if test -n "$ac_tool_prefix"; then 3014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3015set dummy ${ac_tool_prefix}cc; ac_word=$2 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017$as_echo_n "checking for $ac_word... " >&6; } 3018if test "${ac_cv_prog_CC+set}" = set; then : 3019 $as_echo_n "(cached) " >&6 3020else 3021 if test -n "$CC"; then 3022 ac_cv_prog_CC="$CC" # Let the user override the test. 3023else 3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH 3026do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3031 ac_cv_prog_CC="${ac_tool_prefix}cc" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036 done 3037IFS=$as_save_IFS 3038 3039fi 3040fi 3041CC=$ac_cv_prog_CC 3042if test -n "$CC"; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3044$as_echo "$CC" >&6; } 3045else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047$as_echo "no" >&6; } 3048fi 3049 3050 3051 fi 3052fi 3053if test -z "$CC"; then 3054 # Extract the first word of "cc", so it can be a program name with args. 3055set dummy cc; ac_word=$2 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3057$as_echo_n "checking for $ac_word... " >&6; } 3058if test "${ac_cv_prog_CC+set}" = set; then : 3059 $as_echo_n "(cached) " >&6 3060else 3061 if test -n "$CC"; then 3062 ac_cv_prog_CC="$CC" # Let the user override the test. 3063else 3064 ac_prog_rejected=no 3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3066for as_dir in $PATH 3067do 3068 IFS=$as_save_IFS 3069 test -z "$as_dir" && as_dir=. 3070 for ac_exec_ext in '' $ac_executable_extensions; do 3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3073 ac_prog_rejected=yes 3074 continue 3075 fi 3076 ac_cv_prog_CC="cc" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084if test $ac_prog_rejected = yes; then 3085 # We found a bogon in the path, so make sure we never use it. 3086 set dummy $ac_cv_prog_CC 3087 shift 3088 if test $# != 0; then 3089 # We chose a different compiler from the bogus one. 3090 # However, it has the same basename, so the bogon will be chosen 3091 # first if we set CC to just the basename; use the full file name. 3092 shift 3093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3094 fi 3095fi 3096fi 3097fi 3098CC=$ac_cv_prog_CC 3099if test -n "$CC"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3101$as_echo "$CC" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108fi 3109if test -z "$CC"; then 3110 if test -n "$ac_tool_prefix"; then 3111 for ac_prog in cl.exe 3112 do 3113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3114set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3116$as_echo_n "checking for $ac_word... " >&6; } 3117if test "${ac_cv_prog_CC+set}" = set; then : 3118 $as_echo_n "(cached) " >&6 3119else 3120 if test -n "$CC"; then 3121 ac_cv_prog_CC="$CC" # Let the user override the test. 3122else 3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124for as_dir in $PATH 3125do 3126 IFS=$as_save_IFS 3127 test -z "$as_dir" && as_dir=. 3128 for ac_exec_ext in '' $ac_executable_extensions; do 3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 break 2 3133 fi 3134done 3135 done 3136IFS=$as_save_IFS 3137 3138fi 3139fi 3140CC=$ac_cv_prog_CC 3141if test -n "$CC"; then 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3143$as_echo "$CC" >&6; } 3144else 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3146$as_echo "no" >&6; } 3147fi 3148 3149 3150 test -n "$CC" && break 3151 done 3152fi 3153if test -z "$CC"; then 3154 ac_ct_CC=$CC 3155 for ac_prog in cl.exe 3156do 3157 # Extract the first word of "$ac_prog", so it can be a program name with args. 3158set dummy $ac_prog; ac_word=$2 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3160$as_echo_n "checking for $ac_word... " >&6; } 3161if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 if test -n "$ac_ct_CC"; then 3165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3166else 3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168for as_dir in $PATH 3169do 3170 IFS=$as_save_IFS 3171 test -z "$as_dir" && as_dir=. 3172 for ac_exec_ext in '' $ac_executable_extensions; do 3173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3174 ac_cv_prog_ac_ct_CC="$ac_prog" 3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3176 break 2 3177 fi 3178done 3179 done 3180IFS=$as_save_IFS 3181 3182fi 3183fi 3184ac_ct_CC=$ac_cv_prog_ac_ct_CC 3185if test -n "$ac_ct_CC"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3187$as_echo "$ac_ct_CC" >&6; } 3188else 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; } 3191fi 3192 3193 3194 test -n "$ac_ct_CC" && break 3195done 3196 3197 if test "x$ac_ct_CC" = x; then 3198 CC="" 3199 else 3200 case $cross_compiling:$ac_tool_warned in 3201yes:) 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3204ac_tool_warned=yes ;; 3205esac 3206 CC=$ac_ct_CC 3207 fi 3208fi 3209 3210fi 3211 3212 3213test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215as_fn_error "no acceptable C compiler found in \$PATH 3216See \`config.log' for more details." "$LINENO" 5; } 3217 3218# Provide some information about the compiler. 3219$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3220set X $ac_compile 3221ac_compiler=$2 3222for ac_option in --version -v -V -qversion; do 3223 { { ac_try="$ac_compiler $ac_option >&5" 3224case "(($ac_try" in 3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3226 *) ac_try_echo=$ac_try;; 3227esac 3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3229$as_echo "$ac_try_echo"; } >&5 3230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3231 ac_status=$? 3232 if test -s conftest.err; then 3233 sed '10a\ 3234... rest of stderr output deleted ... 3235 10q' conftest.err >conftest.er1 3236 cat conftest.er1 >&5 3237 fi 3238 rm -f conftest.er1 conftest.err 3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3240 test $ac_status = 0; } 3241done 3242 3243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244/* end confdefs.h. */ 3245 3246int 3247main () 3248{ 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254ac_clean_files_save=$ac_clean_files 3255ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3256# Try to create an executable without -o first, disregard a.out. 3257# It will help us diagnose broken compilers, and finding out an intuition 3258# of exeext. 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3260$as_echo_n "checking whether the C compiler works... " >&6; } 3261ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3262 3263# The possible output files: 3264ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3265 3266ac_rmfiles= 3267for ac_file in $ac_files 3268do 3269 case $ac_file in 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3271 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3272 esac 3273done 3274rm -f $ac_rmfiles 3275 3276if { { ac_try="$ac_link_default" 3277case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282$as_echo "$ac_try_echo"; } >&5 3283 (eval "$ac_link_default") 2>&5 3284 ac_status=$? 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; }; then : 3287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3288# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3289# in a Makefile. We should not override ac_cv_exeext if it was cached, 3290# so that the user can short-circuit this test for compilers unknown to 3291# Autoconf. 3292for ac_file in $ac_files '' 3293do 3294 test -f "$ac_file" || continue 3295 case $ac_file in 3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3297 ;; 3298 [ab].out ) 3299 # We found the default executable, but exeext='' is most 3300 # certainly right. 3301 break;; 3302 *.* ) 3303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3304 then :; else 3305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3306 fi 3307 # We set ac_cv_exeext here because the later test for it is not 3308 # safe: cross compilers may not add the suffix if given an `-o' 3309 # argument, so we may need to know it at that point already. 3310 # Even if this section looks crufty: it has the advantage of 3311 # actually working. 3312 break;; 3313 * ) 3314 break;; 3315 esac 3316done 3317test "$ac_cv_exeext" = no && ac_cv_exeext= 3318 3319else 3320 ac_file='' 3321fi 3322if test -z "$ac_file"; then : 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3324$as_echo "no" >&6; } 3325$as_echo "$as_me: failed program was:" >&5 3326sed 's/^/| /' conftest.$ac_ext >&5 3327 3328{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3330{ as_fn_set_status 77 3331as_fn_error "C compiler cannot create executables 3332See \`config.log' for more details." "$LINENO" 5; }; } 3333else 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3335$as_echo "yes" >&6; } 3336fi 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3338$as_echo_n "checking for C compiler default output file name... " >&6; } 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3340$as_echo "$ac_file" >&6; } 3341ac_exeext=$ac_cv_exeext 3342 3343rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3344ac_clean_files=$ac_clean_files_save 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3346$as_echo_n "checking for suffix of executables... " >&6; } 3347if { { ac_try="$ac_link" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3353$as_echo "$ac_try_echo"; } >&5 3354 (eval "$ac_link") 2>&5 3355 ac_status=$? 3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3357 test $ac_status = 0; }; then : 3358 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3359# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3360# work properly (i.e., refer to `conftest.exe'), while it won't with 3361# `rm'. 3362for ac_file in conftest.exe conftest conftest.*; do 3363 test -f "$ac_file" || continue 3364 case $ac_file in 3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3367 break;; 3368 * ) break;; 3369 esac 3370done 3371else 3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3374as_fn_error "cannot compute suffix of executables: cannot compile and link 3375See \`config.log' for more details." "$LINENO" 5; } 3376fi 3377rm -f conftest conftest$ac_cv_exeext 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3379$as_echo "$ac_cv_exeext" >&6; } 3380 3381rm -f conftest.$ac_ext 3382EXEEXT=$ac_cv_exeext 3383ac_exeext=$EXEEXT 3384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385/* end confdefs.h. */ 3386#include <stdio.h> 3387int 3388main () 3389{ 3390FILE *f = fopen ("conftest.out", "w"); 3391 return ferror (f) || fclose (f) != 0; 3392 3393 ; 3394 return 0; 3395} 3396_ACEOF 3397ac_clean_files="$ac_clean_files conftest.out" 3398# Check that the compiler produces executables we can run. If not, either 3399# the compiler is broken, or we cross compile. 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3401$as_echo_n "checking whether we are cross compiling... " >&6; } 3402if test "$cross_compiling" != yes; then 3403 { { ac_try="$ac_link" 3404case "(($ac_try" in 3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3406 *) ac_try_echo=$ac_try;; 3407esac 3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3409$as_echo "$ac_try_echo"; } >&5 3410 (eval "$ac_link") 2>&5 3411 ac_status=$? 3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3413 test $ac_status = 0; } 3414 if { ac_try='./conftest$ac_cv_exeext' 3415 { { case "(($ac_try" in 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3417 *) ac_try_echo=$ac_try;; 3418esac 3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3420$as_echo "$ac_try_echo"; } >&5 3421 (eval "$ac_try") 2>&5 3422 ac_status=$? 3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3424 test $ac_status = 0; }; }; then 3425 cross_compiling=no 3426 else 3427 if test "$cross_compiling" = maybe; then 3428 cross_compiling=yes 3429 else 3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3432as_fn_error "cannot run C compiled programs. 3433If you meant to cross compile, use \`--host'. 3434See \`config.log' for more details." "$LINENO" 5; } 3435 fi 3436 fi 3437fi 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3439$as_echo "$cross_compiling" >&6; } 3440 3441rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3442ac_clean_files=$ac_clean_files_save 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3444$as_echo_n "checking for suffix of object files... " >&6; } 3445if test "${ac_cv_objext+set}" = set; then : 3446 $as_echo_n "(cached) " >&6 3447else 3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450 3451int 3452main () 3453{ 3454 3455 ; 3456 return 0; 3457} 3458_ACEOF 3459rm -f conftest.o conftest.obj 3460if { { ac_try="$ac_compile" 3461case "(($ac_try" in 3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3463 *) ac_try_echo=$ac_try;; 3464esac 3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3466$as_echo "$ac_try_echo"; } >&5 3467 (eval "$ac_compile") 2>&5 3468 ac_status=$? 3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3470 test $ac_status = 0; }; then : 3471 for ac_file in conftest.o conftest.obj conftest.*; do 3472 test -f "$ac_file" || continue; 3473 case $ac_file in 3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3476 break;; 3477 esac 3478done 3479else 3480 $as_echo "$as_me: failed program was:" >&5 3481sed 's/^/| /' conftest.$ac_ext >&5 3482 3483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3485as_fn_error "cannot compute suffix of object files: cannot compile 3486See \`config.log' for more details." "$LINENO" 5; } 3487fi 3488rm -f conftest.$ac_cv_objext conftest.$ac_ext 3489fi 3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3491$as_echo "$ac_cv_objext" >&6; } 3492OBJEXT=$ac_cv_objext 3493ac_objext=$OBJEXT 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3495$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3496if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3500/* end confdefs.h. */ 3501 3502int 3503main () 3504{ 3505#ifndef __GNUC__ 3506 choke me 3507#endif 3508 3509 ; 3510 return 0; 3511} 3512_ACEOF 3513if ac_fn_c_try_compile "$LINENO"; then : 3514 ac_compiler_gnu=yes 3515else 3516 ac_compiler_gnu=no 3517fi 3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3519ac_cv_c_compiler_gnu=$ac_compiler_gnu 3520 3521fi 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3523$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3524if test $ac_compiler_gnu = yes; then 3525 GCC=yes 3526else 3527 GCC= 3528fi 3529ac_test_CFLAGS=${CFLAGS+set} 3530ac_save_CFLAGS=$CFLAGS 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3532$as_echo_n "checking whether $CC accepts -g... " >&6; } 3533if test "${ac_cv_prog_cc_g+set}" = set; then : 3534 $as_echo_n "(cached) " >&6 3535else 3536 ac_save_c_werror_flag=$ac_c_werror_flag 3537 ac_c_werror_flag=yes 3538 ac_cv_prog_cc_g=no 3539 CFLAGS="-g" 3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542 3543int 3544main () 3545{ 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551if ac_fn_c_try_compile "$LINENO"; then : 3552 ac_cv_prog_cc_g=yes 3553else 3554 CFLAGS="" 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557 3558int 3559main () 3560{ 3561 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566if ac_fn_c_try_compile "$LINENO"; then : 3567 3568else 3569 ac_c_werror_flag=$ac_save_c_werror_flag 3570 CFLAGS="-g" 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573 3574int 3575main () 3576{ 3577 3578 ; 3579 return 0; 3580} 3581_ACEOF 3582if ac_fn_c_try_compile "$LINENO"; then : 3583 ac_cv_prog_cc_g=yes 3584fi 3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3586fi 3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3588fi 3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590 ac_c_werror_flag=$ac_save_c_werror_flag 3591fi 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3593$as_echo "$ac_cv_prog_cc_g" >&6; } 3594if test "$ac_test_CFLAGS" = set; then 3595 CFLAGS=$ac_save_CFLAGS 3596elif test $ac_cv_prog_cc_g = yes; then 3597 if test "$GCC" = yes; then 3598 CFLAGS="-g -O2" 3599 else 3600 CFLAGS="-g" 3601 fi 3602else 3603 if test "$GCC" = yes; then 3604 CFLAGS="-O2" 3605 else 3606 CFLAGS= 3607 fi 3608fi 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3610$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3611if test "${ac_cv_prog_cc_c89+set}" = set; then : 3612 $as_echo_n "(cached) " >&6 3613else 3614 ac_cv_prog_cc_c89=no 3615ac_save_CC=$CC 3616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3617/* end confdefs.h. */ 3618#include <stdarg.h> 3619#include <stdio.h> 3620#include <sys/types.h> 3621#include <sys/stat.h> 3622/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3623struct buf { int x; }; 3624FILE * (*rcsopen) (struct buf *, struct stat *, int); 3625static char *e (p, i) 3626 char **p; 3627 int i; 3628{ 3629 return p[i]; 3630} 3631static char *f (char * (*g) (char **, int), char **p, ...) 3632{ 3633 char *s; 3634 va_list v; 3635 va_start (v,p); 3636 s = g (p, va_arg (v,int)); 3637 va_end (v); 3638 return s; 3639} 3640 3641/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3642 function prototypes and stuff, but not '\xHH' hex character constants. 3643 These don't provoke an error unfortunately, instead are silently treated 3644 as 'x'. The following induces an error, until -std is added to get 3645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3646 array size at least. It's necessary to write '\x00'==0 to get something 3647 that's true only with -std. */ 3648int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3649 3650/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3651 inside strings and character constants. */ 3652#define FOO(x) 'x' 3653int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3654 3655int test (int i, double x); 3656struct s1 {int (*f) (int a);}; 3657struct s2 {int (*f) (double a);}; 3658int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3659int argc; 3660char **argv; 3661int 3662main () 3663{ 3664return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3671do 3672 CC="$ac_save_CC $ac_arg" 3673 if ac_fn_c_try_compile "$LINENO"; then : 3674 ac_cv_prog_cc_c89=$ac_arg 3675fi 3676rm -f core conftest.err conftest.$ac_objext 3677 test "x$ac_cv_prog_cc_c89" != "xno" && break 3678done 3679rm -f conftest.$ac_ext 3680CC=$ac_save_CC 3681 3682fi 3683# AC_CACHE_VAL 3684case "x$ac_cv_prog_cc_c89" in 3685 x) 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3687$as_echo "none needed" >&6; } ;; 3688 xno) 3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3690$as_echo "unsupported" >&6; } ;; 3691 *) 3692 CC="$CC $ac_cv_prog_cc_c89" 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3694$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3695esac 3696if test "x$ac_cv_prog_cc_c89" != xno; then : 3697 3698fi 3699 3700ac_ext=c 3701ac_cpp='$CPP $CPPFLAGS' 3702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3704ac_compiler_gnu=$ac_cv_c_compiler_gnu 3705 3706depcc="$CC" am_compiler_list= 3707 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3709$as_echo_n "checking dependency style of $depcc... " >&6; } 3710if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3714 # We make a subdir and do the tests there. Otherwise we can end up 3715 # making bogus files that we don't know about and never remove. For 3716 # instance it was reported that on HP-UX the gcc test will end up 3717 # making a dummy file named `D' -- because `-MD' means `put the output 3718 # in D'. 3719 mkdir conftest.dir 3720 # Copy depcomp to subdir because otherwise we won't find it if we're 3721 # using a relative directory. 3722 cp "$am_depcomp" conftest.dir 3723 cd conftest.dir 3724 # We will build objects and dependencies in a subdirectory because 3725 # it helps to detect inapplicable dependency modes. For instance 3726 # both Tru64's cc and ICC support -MD to output dependencies as a 3727 # side effect of compilation, but ICC will put the dependencies in 3728 # the current directory while Tru64 will put them in the object 3729 # directory. 3730 mkdir sub 3731 3732 am_cv_CC_dependencies_compiler_type=none 3733 if test "$am_compiler_list" = ""; then 3734 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3735 fi 3736 am__universal=false 3737 case " $depcc " in #( 3738 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3739 esac 3740 3741 for depmode in $am_compiler_list; do 3742 # Setup a source with many dependencies, because some compilers 3743 # like to wrap large dependency lists on column 80 (with \), and 3744 # we should not choose a depcomp mode which is confused by this. 3745 # 3746 # We need to recreate these files for each test, as the compiler may 3747 # overwrite some of them when testing with obscure command lines. 3748 # This happens at least with the AIX C compiler. 3749 : > sub/conftest.c 3750 for i in 1 2 3 4 5 6; do 3751 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3752 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3753 # Solaris 8's {/usr,}/bin/sh. 3754 touch sub/conftst$i.h 3755 done 3756 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3757 3758 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3759 # mode. It turns out that the SunPro C++ compiler does not properly 3760 # handle `-M -o', and we need to detect this. Also, some Intel 3761 # versions had trouble with output in subdirs 3762 am__obj=sub/conftest.${OBJEXT-o} 3763 am__minus_obj="-o $am__obj" 3764 case $depmode in 3765 gcc) 3766 # This depmode causes a compiler race in universal mode. 3767 test "$am__universal" = false || continue 3768 ;; 3769 nosideeffect) 3770 # after this tag, mechanisms are not by side-effect, so they'll 3771 # only be used when explicitly requested 3772 if test "x$enable_dependency_tracking" = xyes; then 3773 continue 3774 else 3775 break 3776 fi 3777 ;; 3778 msvisualcpp | msvcmsys) 3779 # This compiler won't grok `-c -o', but also, the minuso test has 3780 # not run yet. These depmodes are late enough in the game, and 3781 # so weak that their functioning should not be impacted. 3782 am__obj=conftest.${OBJEXT-o} 3783 am__minus_obj= 3784 ;; 3785 none) break ;; 3786 esac 3787 if depmode=$depmode \ 3788 source=sub/conftest.c object=$am__obj \ 3789 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3790 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3791 >/dev/null 2>conftest.err && 3792 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3794 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3796 # icc doesn't choke on unknown options, it will just issue warnings 3797 # or remarks (even with -Werror). So we grep stderr for any message 3798 # that says an option was ignored or not supported. 3799 # When given -MP, icc 7.0 and 7.1 complain thusly: 3800 # icc: Command line warning: ignoring option '-M'; no argument required 3801 # The diagnosis changed in icc 8.0: 3802 # icc: Command line remark: option '-MP' not supported 3803 if (grep 'ignoring option' conftest.err || 3804 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3805 am_cv_CC_dependencies_compiler_type=$depmode 3806 break 3807 fi 3808 fi 3809 done 3810 3811 cd .. 3812 rm -rf conftest.dir 3813else 3814 am_cv_CC_dependencies_compiler_type=none 3815fi 3816 3817fi 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3819$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3820CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3821 3822 if 3823 test "x$enable_dependency_tracking" != xno \ 3824 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3825 am__fastdepCC_TRUE= 3826 am__fastdepCC_FALSE='#' 3827else 3828 am__fastdepCC_TRUE='#' 3829 am__fastdepCC_FALSE= 3830fi 3831 3832 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3834$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3835if test "${ac_cv_prog_cc_c99+set}" = set; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 ac_cv_prog_cc_c99=no 3839ac_save_CC=$CC 3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842#include <stdarg.h> 3843#include <stdbool.h> 3844#include <stdlib.h> 3845#include <wchar.h> 3846#include <stdio.h> 3847 3848// Check varargs macros. These examples are taken from C99 6.10.3.5. 3849#define debug(...) fprintf (stderr, __VA_ARGS__) 3850#define showlist(...) puts (#__VA_ARGS__) 3851#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3852static void 3853test_varargs_macros (void) 3854{ 3855 int x = 1234; 3856 int y = 5678; 3857 debug ("Flag"); 3858 debug ("X = %d\n", x); 3859 showlist (The first, second, and third items.); 3860 report (x>y, "x is %d but y is %d", x, y); 3861} 3862 3863// Check long long types. 3864#define BIG64 18446744073709551615ull 3865#define BIG32 4294967295ul 3866#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3867#if !BIG_OK 3868 your preprocessor is broken; 3869#endif 3870#if BIG_OK 3871#else 3872 your preprocessor is broken; 3873#endif 3874static long long int bignum = -9223372036854775807LL; 3875static unsigned long long int ubignum = BIG64; 3876 3877struct incomplete_array 3878{ 3879 int datasize; 3880 double data[]; 3881}; 3882 3883struct named_init { 3884 int number; 3885 const wchar_t *name; 3886 double average; 3887}; 3888 3889typedef const char *ccp; 3890 3891static inline int 3892test_restrict (ccp restrict text) 3893{ 3894 // See if C++-style comments work. 3895 // Iterate through items via the restricted pointer. 3896 // Also check for declarations in for loops. 3897 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3898 continue; 3899 return 0; 3900} 3901 3902// Check varargs and va_copy. 3903static void 3904test_varargs (const char *format, ...) 3905{ 3906 va_list args; 3907 va_start (args, format); 3908 va_list args_copy; 3909 va_copy (args_copy, args); 3910 3911 const char *str; 3912 int number; 3913 float fnumber; 3914 3915 while (*format) 3916 { 3917 switch (*format++) 3918 { 3919 case 's': // string 3920 str = va_arg (args_copy, const char *); 3921 break; 3922 case 'd': // int 3923 number = va_arg (args_copy, int); 3924 break; 3925 case 'f': // float 3926 fnumber = va_arg (args_copy, double); 3927 break; 3928 default: 3929 break; 3930 } 3931 } 3932 va_end (args_copy); 3933 va_end (args); 3934} 3935 3936int 3937main () 3938{ 3939 3940 // Check bool. 3941 _Bool success = false; 3942 3943 // Check restrict. 3944 if (test_restrict ("String literal") == 0) 3945 success = true; 3946 char *restrict newvar = "Another string"; 3947 3948 // Check varargs. 3949 test_varargs ("s, d' f .", "string", 65, 34.234); 3950 test_varargs_macros (); 3951 3952 // Check flexible array members. 3953 struct incomplete_array *ia = 3954 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3955 ia->datasize = 10; 3956 for (int i = 0; i < ia->datasize; ++i) 3957 ia->data[i] = i * 1.234; 3958 3959 // Check named initializers. 3960 struct named_init ni = { 3961 .number = 34, 3962 .name = L"Test wide string", 3963 .average = 543.34343, 3964 }; 3965 3966 ni.number = 58; 3967 3968 int dynamic_array[ni.number]; 3969 dynamic_array[ni.number - 1] = 543; 3970 3971 // work around unused variable warnings 3972 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3973 || dynamic_array[ni.number - 1] != 543); 3974 3975 ; 3976 return 0; 3977} 3978_ACEOF 3979for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3980do 3981 CC="$ac_save_CC $ac_arg" 3982 if ac_fn_c_try_compile "$LINENO"; then : 3983 ac_cv_prog_cc_c99=$ac_arg 3984fi 3985rm -f core conftest.err conftest.$ac_objext 3986 test "x$ac_cv_prog_cc_c99" != "xno" && break 3987done 3988rm -f conftest.$ac_ext 3989CC=$ac_save_CC 3990 3991fi 3992# AC_CACHE_VAL 3993case "x$ac_cv_prog_cc_c99" in 3994 x) 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3996$as_echo "none needed" >&6; } ;; 3997 xno) 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3999$as_echo "unsupported" >&6; } ;; 4000 *) 4001 CC="$CC $ac_cv_prog_cc_c99" 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4003$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4004esac 4005if test "x$ac_cv_prog_cc_c99" != xno; then : 4006 4007fi 4008 4009 4010 4011ac_ext=c 4012ac_cpp='$CPP $CPPFLAGS' 4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4015ac_compiler_gnu=$ac_cv_c_compiler_gnu 4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4017$as_echo_n "checking how to run the C preprocessor... " >&6; } 4018# On Suns, sometimes $CPP names a directory. 4019if test -n "$CPP" && test -d "$CPP"; then 4020 CPP= 4021fi 4022if test -z "$CPP"; then 4023 if test "${ac_cv_prog_CPP+set}" = set; then : 4024 $as_echo_n "(cached) " >&6 4025else 4026 # Double quotes because CPP needs to be expanded 4027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4028 do 4029 ac_preproc_ok=false 4030for ac_c_preproc_warn_flag in '' yes 4031do 4032 # Use a header file that comes with gcc, so configuring glibc 4033 # with a fresh cross-compiler works. 4034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4035 # <limits.h> exists even on freestanding compilers. 4036 # On the NeXT, cc -E runs the code through the compiler's parser, 4037 # not just through cpp. "Syntax error" is here to catch this case. 4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4039/* end confdefs.h. */ 4040#ifdef __STDC__ 4041# include <limits.h> 4042#else 4043# include <assert.h> 4044#endif 4045 Syntax error 4046_ACEOF 4047if ac_fn_c_try_cpp "$LINENO"; then : 4048 4049else 4050 # Broken: fails on valid input. 4051continue 4052fi 4053rm -f conftest.err conftest.$ac_ext 4054 4055 # OK, works on sane cases. Now check whether nonexistent headers 4056 # can be detected and how. 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059#include <ac_nonexistent.h> 4060_ACEOF 4061if ac_fn_c_try_cpp "$LINENO"; then : 4062 # Broken: success on invalid input. 4063continue 4064else 4065 # Passes both tests. 4066ac_preproc_ok=: 4067break 4068fi 4069rm -f conftest.err conftest.$ac_ext 4070 4071done 4072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4073rm -f conftest.err conftest.$ac_ext 4074if $ac_preproc_ok; then : 4075 break 4076fi 4077 4078 done 4079 ac_cv_prog_CPP=$CPP 4080 4081fi 4082 CPP=$ac_cv_prog_CPP 4083else 4084 ac_cv_prog_CPP=$CPP 4085fi 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4087$as_echo "$CPP" >&6; } 4088ac_preproc_ok=false 4089for ac_c_preproc_warn_flag in '' yes 4090do 4091 # Use a header file that comes with gcc, so configuring glibc 4092 # with a fresh cross-compiler works. 4093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4094 # <limits.h> exists even on freestanding compilers. 4095 # On the NeXT, cc -E runs the code through the compiler's parser, 4096 # not just through cpp. "Syntax error" is here to catch this case. 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099#ifdef __STDC__ 4100# include <limits.h> 4101#else 4102# include <assert.h> 4103#endif 4104 Syntax error 4105_ACEOF 4106if ac_fn_c_try_cpp "$LINENO"; then : 4107 4108else 4109 # Broken: fails on valid input. 4110continue 4111fi 4112rm -f conftest.err conftest.$ac_ext 4113 4114 # OK, works on sane cases. Now check whether nonexistent headers 4115 # can be detected and how. 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4117/* end confdefs.h. */ 4118#include <ac_nonexistent.h> 4119_ACEOF 4120if ac_fn_c_try_cpp "$LINENO"; then : 4121 # Broken: success on invalid input. 4122continue 4123else 4124 # Passes both tests. 4125ac_preproc_ok=: 4126break 4127fi 4128rm -f conftest.err conftest.$ac_ext 4129 4130done 4131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4132rm -f conftest.err conftest.$ac_ext 4133if $ac_preproc_ok; then : 4134 4135else 4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4138as_fn_error "C preprocessor \"$CPP\" fails sanity check 4139See \`config.log' for more details." "$LINENO" 5; } 4140fi 4141 4142ac_ext=c 4143ac_cpp='$CPP $CPPFLAGS' 4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4146ac_compiler_gnu=$ac_cv_c_compiler_gnu 4147 4148 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4150$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4151if test "${ac_cv_path_GREP+set}" = set; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 if test -z "$GREP"; then 4155 ac_path_GREP_found=false 4156 # Loop through the user's path and test for each of PROGNAME-LIST 4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4159do 4160 IFS=$as_save_IFS 4161 test -z "$as_dir" && as_dir=. 4162 for ac_prog in grep ggrep; do 4163 for ac_exec_ext in '' $ac_executable_extensions; do 4164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4165 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4166# Check for GNU ac_path_GREP and select it if it is found. 4167 # Check for GNU $ac_path_GREP 4168case `"$ac_path_GREP" --version 2>&1` in 4169*GNU*) 4170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4171*) 4172 ac_count=0 4173 $as_echo_n 0123456789 >"conftest.in" 4174 while : 4175 do 4176 cat "conftest.in" "conftest.in" >"conftest.tmp" 4177 mv "conftest.tmp" "conftest.in" 4178 cp "conftest.in" "conftest.nl" 4179 $as_echo 'GREP' >> "conftest.nl" 4180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4182 as_fn_arith $ac_count + 1 && ac_count=$as_val 4183 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4184 # Best one so far, save it but keep looking for a better one 4185 ac_cv_path_GREP="$ac_path_GREP" 4186 ac_path_GREP_max=$ac_count 4187 fi 4188 # 10*(2^10) chars as input seems more than enough 4189 test $ac_count -gt 10 && break 4190 done 4191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4192esac 4193 4194 $ac_path_GREP_found && break 3 4195 done 4196 done 4197 done 4198IFS=$as_save_IFS 4199 if test -z "$ac_cv_path_GREP"; then 4200 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4201 fi 4202else 4203 ac_cv_path_GREP=$GREP 4204fi 4205 4206fi 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4208$as_echo "$ac_cv_path_GREP" >&6; } 4209 GREP="$ac_cv_path_GREP" 4210 4211 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4213$as_echo_n "checking for egrep... " >&6; } 4214if test "${ac_cv_path_EGREP+set}" = set; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4218 then ac_cv_path_EGREP="$GREP -E" 4219 else 4220 if test -z "$EGREP"; then 4221 ac_path_EGREP_found=false 4222 # Loop through the user's path and test for each of PROGNAME-LIST 4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4225do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_prog in egrep; do 4229 for ac_exec_ext in '' $ac_executable_extensions; do 4230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4231 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4232# Check for GNU ac_path_EGREP and select it if it is found. 4233 # Check for GNU $ac_path_EGREP 4234case `"$ac_path_EGREP" --version 2>&1` in 4235*GNU*) 4236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4237*) 4238 ac_count=0 4239 $as_echo_n 0123456789 >"conftest.in" 4240 while : 4241 do 4242 cat "conftest.in" "conftest.in" >"conftest.tmp" 4243 mv "conftest.tmp" "conftest.in" 4244 cp "conftest.in" "conftest.nl" 4245 $as_echo 'EGREP' >> "conftest.nl" 4246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4248 as_fn_arith $ac_count + 1 && ac_count=$as_val 4249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4250 # Best one so far, save it but keep looking for a better one 4251 ac_cv_path_EGREP="$ac_path_EGREP" 4252 ac_path_EGREP_max=$ac_count 4253 fi 4254 # 10*(2^10) chars as input seems more than enough 4255 test $ac_count -gt 10 && break 4256 done 4257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4258esac 4259 4260 $ac_path_EGREP_found && break 3 4261 done 4262 done 4263 done 4264IFS=$as_save_IFS 4265 if test -z "$ac_cv_path_EGREP"; then 4266 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4267 fi 4268else 4269 ac_cv_path_EGREP=$EGREP 4270fi 4271 4272 fi 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4275$as_echo "$ac_cv_path_EGREP" >&6; } 4276 EGREP="$ac_cv_path_EGREP" 4277 4278 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4280$as_echo_n "checking for ANSI C header files... " >&6; } 4281if test "${ac_cv_header_stdc+set}" = set; then : 4282 $as_echo_n "(cached) " >&6 4283else 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#include <stdlib.h> 4287#include <stdarg.h> 4288#include <string.h> 4289#include <float.h> 4290 4291int 4292main () 4293{ 4294 4295 ; 4296 return 0; 4297} 4298_ACEOF 4299if ac_fn_c_try_compile "$LINENO"; then : 4300 ac_cv_header_stdc=yes 4301else 4302 ac_cv_header_stdc=no 4303fi 4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4305 4306if test $ac_cv_header_stdc = yes; then 4307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310#include <string.h> 4311 4312_ACEOF 4313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4314 $EGREP "memchr" >/dev/null 2>&1; then : 4315 4316else 4317 ac_cv_header_stdc=no 4318fi 4319rm -f conftest* 4320 4321fi 4322 4323if test $ac_cv_header_stdc = yes; then 4324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327#include <stdlib.h> 4328 4329_ACEOF 4330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4331 $EGREP "free" >/dev/null 2>&1; then : 4332 4333else 4334 ac_cv_header_stdc=no 4335fi 4336rm -f conftest* 4337 4338fi 4339 4340if test $ac_cv_header_stdc = yes; then 4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4342 if test "$cross_compiling" = yes; then : 4343 : 4344else 4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346/* end confdefs.h. */ 4347#include <ctype.h> 4348#include <stdlib.h> 4349#if ((' ' & 0x0FF) == 0x020) 4350# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4351# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4352#else 4353# define ISLOWER(c) \ 4354 (('a' <= (c) && (c) <= 'i') \ 4355 || ('j' <= (c) && (c) <= 'r') \ 4356 || ('s' <= (c) && (c) <= 'z')) 4357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4358#endif 4359 4360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4361int 4362main () 4363{ 4364 int i; 4365 for (i = 0; i < 256; i++) 4366 if (XOR (islower (i), ISLOWER (i)) 4367 || toupper (i) != TOUPPER (i)) 4368 return 2; 4369 return 0; 4370} 4371_ACEOF 4372if ac_fn_c_try_run "$LINENO"; then : 4373 4374else 4375 ac_cv_header_stdc=no 4376fi 4377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4378 conftest.$ac_objext conftest.beam conftest.$ac_ext 4379fi 4380 4381fi 4382fi 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4384$as_echo "$ac_cv_header_stdc" >&6; } 4385if test $ac_cv_header_stdc = yes; then 4386 4387$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4388 4389fi 4390 4391# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4392for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4393 inttypes.h stdint.h unistd.h 4394do : 4395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4396ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4397" 4398eval as_val=\$$as_ac_Header 4399 if test "x$as_val" = x""yes; then : 4400 cat >>confdefs.h <<_ACEOF 4401#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4402_ACEOF 4403 4404fi 4405 4406done 4407 4408 4409 4410 4411if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4412 if test -n "$ac_tool_prefix"; then 4413 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4414set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4416$as_echo_n "checking for $ac_word... " >&6; } 4417if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4418 $as_echo_n "(cached) " >&6 4419else 4420 case $PKG_CONFIG in 4421 [\\/]* | ?:[\\/]*) 4422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4423 ;; 4424 *) 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4434 break 2 4435 fi 4436done 4437 done 4438IFS=$as_save_IFS 4439 4440 ;; 4441esac 4442fi 4443PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4444if test -n "$PKG_CONFIG"; then 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4446$as_echo "$PKG_CONFIG" >&6; } 4447else 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4449$as_echo "no" >&6; } 4450fi 4451 4452 4453fi 4454if test -z "$ac_cv_path_PKG_CONFIG"; then 4455 ac_pt_PKG_CONFIG=$PKG_CONFIG 4456 # Extract the first word of "pkg-config", so it can be a program name with args. 4457set dummy pkg-config; ac_word=$2 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4459$as_echo_n "checking for $ac_word... " >&6; } 4460if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 case $ac_pt_PKG_CONFIG in 4464 [\\/]* | ?:[\\/]*) 4465 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4466 ;; 4467 *) 4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4475 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479done 4480 done 4481IFS=$as_save_IFS 4482 4483 ;; 4484esac 4485fi 4486ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4487if test -n "$ac_pt_PKG_CONFIG"; then 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4489$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4490else 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4492$as_echo "no" >&6; } 4493fi 4494 4495 if test "x$ac_pt_PKG_CONFIG" = x; then 4496 PKG_CONFIG="" 4497 else 4498 case $cross_compiling:$ac_tool_warned in 4499yes:) 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4502ac_tool_warned=yes ;; 4503esac 4504 PKG_CONFIG=$ac_pt_PKG_CONFIG 4505 fi 4506else 4507 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4508fi 4509 4510fi 4511if test -n "$PKG_CONFIG"; then 4512 _pkg_min_version=0.9.0 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4514$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4515 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4517$as_echo "yes" >&6; } 4518 else 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520$as_echo "no" >&6; } 4521 PKG_CONFIG="" 4522 fi 4523 4524fi 4525# Make sure we can run config.sub. 4526$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4527 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4528 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4530$as_echo_n "checking build system type... " >&6; } 4531if test "${ac_cv_build+set}" = set; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 ac_build_alias=$build_alias 4535test "x$ac_build_alias" = x && 4536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4537test "x$ac_build_alias" = x && 4538 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4539ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4540 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4541 4542fi 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4544$as_echo "$ac_cv_build" >&6; } 4545case $ac_cv_build in 4546*-*-*) ;; 4547*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4548esac 4549build=$ac_cv_build 4550ac_save_IFS=$IFS; IFS='-' 4551set x $ac_cv_build 4552shift 4553build_cpu=$1 4554build_vendor=$2 4555shift; shift 4556# Remember, the first character of IFS is used to create $*, 4557# except with old shells: 4558build_os=$* 4559IFS=$ac_save_IFS 4560case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4561 4562 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4564$as_echo_n "checking host system type... " >&6; } 4565if test "${ac_cv_host+set}" = set; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test "x$host_alias" = x; then 4569 ac_cv_host=$ac_cv_build 4570else 4571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4572 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4573fi 4574 4575fi 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4577$as_echo "$ac_cv_host" >&6; } 4578case $ac_cv_host in 4579*-*-*) ;; 4580*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4581esac 4582host=$ac_cv_host 4583ac_save_IFS=$IFS; IFS='-' 4584set x $ac_cv_host 4585shift 4586host_cpu=$1 4587host_vendor=$2 4588shift; shift 4589# Remember, the first character of IFS is used to create $*, 4590# except with old shells: 4591host_os=$* 4592IFS=$ac_save_IFS 4593case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4594 4595 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4597$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4598if test "${ac_cv_path_SED+set}" = set; then : 4599 $as_echo_n "(cached) " >&6 4600else 4601 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4602 for ac_i in 1 2 3 4 5 6 7; do 4603 ac_script="$ac_script$as_nl$ac_script" 4604 done 4605 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4606 { ac_script=; unset ac_script;} 4607 if test -z "$SED"; then 4608 ac_path_SED_found=false 4609 # Loop through the user's path and test for each of PROGNAME-LIST 4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4611for as_dir in $PATH 4612do 4613 IFS=$as_save_IFS 4614 test -z "$as_dir" && as_dir=. 4615 for ac_prog in sed gsed; do 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4618 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4619# Check for GNU ac_path_SED and select it if it is found. 4620 # Check for GNU $ac_path_SED 4621case `"$ac_path_SED" --version 2>&1` in 4622*GNU*) 4623 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4624*) 4625 ac_count=0 4626 $as_echo_n 0123456789 >"conftest.in" 4627 while : 4628 do 4629 cat "conftest.in" "conftest.in" >"conftest.tmp" 4630 mv "conftest.tmp" "conftest.in" 4631 cp "conftest.in" "conftest.nl" 4632 $as_echo '' >> "conftest.nl" 4633 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4635 as_fn_arith $ac_count + 1 && ac_count=$as_val 4636 if test $ac_count -gt ${ac_path_SED_max-0}; then 4637 # Best one so far, save it but keep looking for a better one 4638 ac_cv_path_SED="$ac_path_SED" 4639 ac_path_SED_max=$ac_count 4640 fi 4641 # 10*(2^10) chars as input seems more than enough 4642 test $ac_count -gt 10 && break 4643 done 4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4645esac 4646 4647 $ac_path_SED_found && break 3 4648 done 4649 done 4650 done 4651IFS=$as_save_IFS 4652 if test -z "$ac_cv_path_SED"; then 4653 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4654 fi 4655else 4656 ac_cv_path_SED=$SED 4657fi 4658 4659fi 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4661$as_echo "$ac_cv_path_SED" >&6; } 4662 SED="$ac_cv_path_SED" 4663 rm -f conftest.sed 4664 4665 4666 4667 4668 4669if test "x$GCC" = xyes ; then 4670 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4671-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4672-Wbad-function-cast -Wformat=2" 4673 case `$CC -dumpversion` in 4674 3.4.* | 4.*) 4675 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4676 ;; 4677 esac 4678else 4679 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4680if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4681 SUNCC="yes" 4682else 4683 SUNCC="no" 4684fi 4685 4686 if test "x$SUNCC" = "xyes"; then 4687 CWARNFLAGS="-v" 4688 fi 4689fi 4690 4691 4692 4693# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4694 4695 4696 4697# Check whether --enable-strict-compilation was given. 4698if test "${enable_strict_compilation+set}" = set; then : 4699 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4700else 4701 STRICT_COMPILE=no 4702fi 4703 4704if test "x$STRICT_COMPILE" = "xyes"; then 4705 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4706if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4707 SUNCC="yes" 4708else 4709 SUNCC="no" 4710fi 4711 4712 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4713if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 4714 INTELCC="yes" 4715else 4716 INTELCC="no" 4717fi 4718 4719 if test "x$GCC" = xyes ; then 4720 STRICT_CFLAGS="-pedantic -Werror" 4721 elif test "x$SUNCC" = "xyes"; then 4722 STRICT_CFLAGS="-errwarn" 4723 elif test "x$INTELCC" = "xyes"; then 4724 STRICT_CFLAGS="-Werror" 4725 fi 4726fi 4727CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4728 4729 4730 4731 4732cat >>confdefs.h <<_ACEOF 4733#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4734_ACEOF 4735 4736 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4737 if test "x$PVM" = "x"; then 4738 PVM="0" 4739 fi 4740 4741cat >>confdefs.h <<_ACEOF 4742#define PACKAGE_VERSION_MINOR $PVM 4743_ACEOF 4744 4745 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4746 if test "x$PVP" = "x"; then 4747 PVP="0" 4748 fi 4749 4750cat >>confdefs.h <<_ACEOF 4751#define PACKAGE_VERSION_PATCHLEVEL $PVP 4752_ACEOF 4753 4754 4755 4756CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4757mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4758|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4759echo 'git directory not found: installing possibly empty changelog.' >&2)" 4760 4761 4762 4763 4764macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4765INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4766mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4767|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4768echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4769 4770 4771 4772 4773 4774 4775if test x$APP_MAN_SUFFIX = x ; then 4776 APP_MAN_SUFFIX=1 4777fi 4778if test x$APP_MAN_DIR = x ; then 4779 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4780fi 4781 4782if test x$LIB_MAN_SUFFIX = x ; then 4783 LIB_MAN_SUFFIX=3 4784fi 4785if test x$LIB_MAN_DIR = x ; then 4786 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4787fi 4788 4789if test x$FILE_MAN_SUFFIX = x ; then 4790 case $host_os in 4791 solaris*) FILE_MAN_SUFFIX=4 ;; 4792 *) FILE_MAN_SUFFIX=5 ;; 4793 esac 4794fi 4795if test x$FILE_MAN_DIR = x ; then 4796 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4797fi 4798 4799if test x$MISC_MAN_SUFFIX = x ; then 4800 case $host_os in 4801 solaris*) MISC_MAN_SUFFIX=5 ;; 4802 *) MISC_MAN_SUFFIX=7 ;; 4803 esac 4804fi 4805if test x$MISC_MAN_DIR = x ; then 4806 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4807fi 4808 4809if test x$DRIVER_MAN_SUFFIX = x ; then 4810 case $host_os in 4811 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4812 *) DRIVER_MAN_SUFFIX=4 ;; 4813 esac 4814fi 4815if test x$DRIVER_MAN_DIR = x ; then 4816 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4817fi 4818 4819if test x$ADMIN_MAN_SUFFIX = x ; then 4820 case $host_os in 4821 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4822 *) ADMIN_MAN_SUFFIX=8 ;; 4823 esac 4824fi 4825if test x$ADMIN_MAN_DIR = x ; then 4826 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4827fi 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843XORG_MAN_PAGE="X Version 11" 4844 4845MAN_SUBSTS="\ 4846 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4847 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4848 -e 's|__xservername__|Xorg|g' \ 4849 -e 's|__xconfigfile__|xorg.conf|g' \ 4850 -e 's|__projectroot__|\$(prefix)|g' \ 4851 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4852 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4853 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4854 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4855 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4856 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4857 4858 4859 4860# Check whether --enable-silent-rules was given. 4861if test "${enable_silent_rules+set}" = set; then : 4862 enableval=$enable_silent_rules; 4863fi 4864 4865case $enable_silent_rules in 4866yes) AM_DEFAULT_VERBOSITY=0;; 4867no) AM_DEFAULT_VERBOSITY=1;; 4868*) AM_DEFAULT_VERBOSITY=0;; 4869esac 4870AM_BACKSLASH='\' 4871 4872 4873 4874# Initialize libtool 4875# Check whether --enable-static was given. 4876if test "${enable_static+set}" = set; then : 4877 enableval=$enable_static; p=${PACKAGE-default} 4878 case $enableval in 4879 yes) enable_static=yes ;; 4880 no) enable_static=no ;; 4881 *) 4882 enable_static=no 4883 # Look at the argument we got. We use all the common list separators. 4884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4885 for pkg in $enableval; do 4886 IFS="$lt_save_ifs" 4887 if test "X$pkg" = "X$p"; then 4888 enable_static=yes 4889 fi 4890 done 4891 IFS="$lt_save_ifs" 4892 ;; 4893 esac 4894else 4895 enable_static=no 4896fi 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906case `pwd` in 4907 *\ * | *\ *) 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4909$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4910esac 4911 4912 4913 4914macro_version='2.2.6b' 4915macro_revision='1.3017' 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929ltmain="$ac_aux_dir/ltmain.sh" 4930 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4932$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4933if test "${ac_cv_path_SED+set}" = set; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4937 for ac_i in 1 2 3 4 5 6 7; do 4938 ac_script="$ac_script$as_nl$ac_script" 4939 done 4940 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4941 { ac_script=; unset ac_script;} 4942 if test -z "$SED"; then 4943 ac_path_SED_found=false 4944 # Loop through the user's path and test for each of PROGNAME-LIST 4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946for as_dir in $PATH 4947do 4948 IFS=$as_save_IFS 4949 test -z "$as_dir" && as_dir=. 4950 for ac_prog in sed gsed; do 4951 for ac_exec_ext in '' $ac_executable_extensions; do 4952 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4953 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4954# Check for GNU ac_path_SED and select it if it is found. 4955 # Check for GNU $ac_path_SED 4956case `"$ac_path_SED" --version 2>&1` in 4957*GNU*) 4958 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4959*) 4960 ac_count=0 4961 $as_echo_n 0123456789 >"conftest.in" 4962 while : 4963 do 4964 cat "conftest.in" "conftest.in" >"conftest.tmp" 4965 mv "conftest.tmp" "conftest.in" 4966 cp "conftest.in" "conftest.nl" 4967 $as_echo '' >> "conftest.nl" 4968 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4970 as_fn_arith $ac_count + 1 && ac_count=$as_val 4971 if test $ac_count -gt ${ac_path_SED_max-0}; then 4972 # Best one so far, save it but keep looking for a better one 4973 ac_cv_path_SED="$ac_path_SED" 4974 ac_path_SED_max=$ac_count 4975 fi 4976 # 10*(2^10) chars as input seems more than enough 4977 test $ac_count -gt 10 && break 4978 done 4979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4980esac 4981 4982 $ac_path_SED_found && break 3 4983 done 4984 done 4985 done 4986IFS=$as_save_IFS 4987 if test -z "$ac_cv_path_SED"; then 4988 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4989 fi 4990else 4991 ac_cv_path_SED=$SED 4992fi 4993 4994fi 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4996$as_echo "$ac_cv_path_SED" >&6; } 4997 SED="$ac_cv_path_SED" 4998 rm -f conftest.sed 4999 5000test -z "$SED" && SED=sed 5001Xsed="$SED -e 1s/^X//" 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5014$as_echo_n "checking for fgrep... " >&6; } 5015if test "${ac_cv_path_FGREP+set}" = set; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5019 then ac_cv_path_FGREP="$GREP -F" 5020 else 5021 if test -z "$FGREP"; then 5022 ac_path_FGREP_found=false 5023 # Loop through the user's path and test for each of PROGNAME-LIST 5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5025for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5026do 5027 IFS=$as_save_IFS 5028 test -z "$as_dir" && as_dir=. 5029 for ac_prog in fgrep; do 5030 for ac_exec_ext in '' $ac_executable_extensions; do 5031 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5032 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5033# Check for GNU ac_path_FGREP and select it if it is found. 5034 # Check for GNU $ac_path_FGREP 5035case `"$ac_path_FGREP" --version 2>&1` in 5036*GNU*) 5037 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5038*) 5039 ac_count=0 5040 $as_echo_n 0123456789 >"conftest.in" 5041 while : 5042 do 5043 cat "conftest.in" "conftest.in" >"conftest.tmp" 5044 mv "conftest.tmp" "conftest.in" 5045 cp "conftest.in" "conftest.nl" 5046 $as_echo 'FGREP' >> "conftest.nl" 5047 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5049 as_fn_arith $ac_count + 1 && ac_count=$as_val 5050 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5051 # Best one so far, save it but keep looking for a better one 5052 ac_cv_path_FGREP="$ac_path_FGREP" 5053 ac_path_FGREP_max=$ac_count 5054 fi 5055 # 10*(2^10) chars as input seems more than enough 5056 test $ac_count -gt 10 && break 5057 done 5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5059esac 5060 5061 $ac_path_FGREP_found && break 3 5062 done 5063 done 5064 done 5065IFS=$as_save_IFS 5066 if test -z "$ac_cv_path_FGREP"; then 5067 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5068 fi 5069else 5070 ac_cv_path_FGREP=$FGREP 5071fi 5072 5073 fi 5074fi 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5076$as_echo "$ac_cv_path_FGREP" >&6; } 5077 FGREP="$ac_cv_path_FGREP" 5078 5079 5080test -z "$GREP" && GREP=grep 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100# Check whether --with-gnu-ld was given. 5101if test "${with_gnu_ld+set}" = set; then : 5102 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5103else 5104 with_gnu_ld=no 5105fi 5106 5107ac_prog=ld 5108if test "$GCC" = yes; then 5109 # Check if gcc -print-prog-name=ld gives a path. 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5111$as_echo_n "checking for ld used by $CC... " >&6; } 5112 case $host in 5113 *-*-mingw*) 5114 # gcc leaves a trailing carriage return which upsets mingw 5115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5116 *) 5117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5118 esac 5119 case $ac_prog in 5120 # Accept absolute paths. 5121 [\\/]* | ?:[\\/]*) 5122 re_direlt='/[^/][^/]*/\.\./' 5123 # Canonicalize the pathname of ld 5124 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5125 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5126 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5127 done 5128 test -z "$LD" && LD="$ac_prog" 5129 ;; 5130 "") 5131 # If it fails, then pretend we aren't using GCC. 5132 ac_prog=ld 5133 ;; 5134 *) 5135 # If it is relative, then search for the first ld in PATH. 5136 with_gnu_ld=unknown 5137 ;; 5138 esac 5139elif test "$with_gnu_ld" = yes; then 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5141$as_echo_n "checking for GNU ld... " >&6; } 5142else 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5144$as_echo_n "checking for non-GNU ld... " >&6; } 5145fi 5146if test "${lt_cv_path_LD+set}" = set; then : 5147 $as_echo_n "(cached) " >&6 5148else 5149 if test -z "$LD"; then 5150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5151 for ac_dir in $PATH; do 5152 IFS="$lt_save_ifs" 5153 test -z "$ac_dir" && ac_dir=. 5154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5155 lt_cv_path_LD="$ac_dir/$ac_prog" 5156 # Check to see if the program is GNU ld. I'd rather use --version, 5157 # but apparently some variants of GNU ld only accept -v. 5158 # Break only if it was the GNU/non-GNU ld that we prefer. 5159 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5160 *GNU* | *'with BFD'*) 5161 test "$with_gnu_ld" != no && break 5162 ;; 5163 *) 5164 test "$with_gnu_ld" != yes && break 5165 ;; 5166 esac 5167 fi 5168 done 5169 IFS="$lt_save_ifs" 5170else 5171 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5172fi 5173fi 5174 5175LD="$lt_cv_path_LD" 5176if test -n "$LD"; then 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5178$as_echo "$LD" >&6; } 5179else 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5181$as_echo "no" >&6; } 5182fi 5183test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5185$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5186if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5190case `$LD -v 2>&1 </dev/null` in 5191*GNU* | *'with BFD'*) 5192 lt_cv_prog_gnu_ld=yes 5193 ;; 5194*) 5195 lt_cv_prog_gnu_ld=no 5196 ;; 5197esac 5198fi 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5200$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5201with_gnu_ld=$lt_cv_prog_gnu_ld 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5212$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5213if test "${lt_cv_path_NM+set}" = set; then : 5214 $as_echo_n "(cached) " >&6 5215else 5216 if test -n "$NM"; then 5217 # Let the user override the test. 5218 lt_cv_path_NM="$NM" 5219else 5220 lt_nm_to_check="${ac_tool_prefix}nm" 5221 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5222 lt_nm_to_check="$lt_nm_to_check nm" 5223 fi 5224 for lt_tmp_nm in $lt_nm_to_check; do 5225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5226 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5227 IFS="$lt_save_ifs" 5228 test -z "$ac_dir" && ac_dir=. 5229 tmp_nm="$ac_dir/$lt_tmp_nm" 5230 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5231 # Check to see if the nm accepts a BSD-compat flag. 5232 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5233 # nm: unknown option "B" ignored 5234 # Tru64's nm complains that /dev/null is an invalid object file 5235 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5236 */dev/null* | *'Invalid file or object type'*) 5237 lt_cv_path_NM="$tmp_nm -B" 5238 break 5239 ;; 5240 *) 5241 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5242 */dev/null*) 5243 lt_cv_path_NM="$tmp_nm -p" 5244 break 5245 ;; 5246 *) 5247 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5248 continue # so that we can try to find one that supports BSD flags 5249 ;; 5250 esac 5251 ;; 5252 esac 5253 fi 5254 done 5255 IFS="$lt_save_ifs" 5256 done 5257 : ${lt_cv_path_NM=no} 5258fi 5259fi 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5261$as_echo "$lt_cv_path_NM" >&6; } 5262if test "$lt_cv_path_NM" != "no"; then 5263 NM="$lt_cv_path_NM" 5264else 5265 # Didn't find any BSD compatible name lister, look for dumpbin. 5266 if test -n "$ac_tool_prefix"; then 5267 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5268 do 5269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5270set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5272$as_echo_n "checking for $ac_word... " >&6; } 5273if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 if test -n "$DUMPBIN"; then 5277 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5278else 5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280for as_dir in $PATH 5281do 5282 IFS=$as_save_IFS 5283 test -z "$as_dir" && as_dir=. 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5286 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5288 break 2 5289 fi 5290done 5291 done 5292IFS=$as_save_IFS 5293 5294fi 5295fi 5296DUMPBIN=$ac_cv_prog_DUMPBIN 5297if test -n "$DUMPBIN"; then 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5299$as_echo "$DUMPBIN" >&6; } 5300else 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5302$as_echo "no" >&6; } 5303fi 5304 5305 5306 test -n "$DUMPBIN" && break 5307 done 5308fi 5309if test -z "$DUMPBIN"; then 5310 ac_ct_DUMPBIN=$DUMPBIN 5311 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5312do 5313 # Extract the first word of "$ac_prog", so it can be a program name with args. 5314set dummy $ac_prog; ac_word=$2 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5316$as_echo_n "checking for $ac_word... " >&6; } 5317if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5318 $as_echo_n "(cached) " >&6 5319else 5320 if test -n "$ac_ct_DUMPBIN"; then 5321 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5322else 5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5324for as_dir in $PATH 5325do 5326 IFS=$as_save_IFS 5327 test -z "$as_dir" && as_dir=. 5328 for ac_exec_ext in '' $ac_executable_extensions; do 5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5330 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5332 break 2 5333 fi 5334done 5335 done 5336IFS=$as_save_IFS 5337 5338fi 5339fi 5340ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5341if test -n "$ac_ct_DUMPBIN"; then 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5343$as_echo "$ac_ct_DUMPBIN" >&6; } 5344else 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5346$as_echo "no" >&6; } 5347fi 5348 5349 5350 test -n "$ac_ct_DUMPBIN" && break 5351done 5352 5353 if test "x$ac_ct_DUMPBIN" = x; then 5354 DUMPBIN=":" 5355 else 5356 case $cross_compiling:$ac_tool_warned in 5357yes:) 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5360ac_tool_warned=yes ;; 5361esac 5362 DUMPBIN=$ac_ct_DUMPBIN 5363 fi 5364fi 5365 5366 5367 if test "$DUMPBIN" != ":"; then 5368 NM="$DUMPBIN" 5369 fi 5370fi 5371test -z "$NM" && NM=nm 5372 5373 5374 5375 5376 5377 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5379$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5380if test "${lt_cv_nm_interface+set}" = set; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 lt_cv_nm_interface="BSD nm" 5384 echo "int some_variable = 0;" > conftest.$ac_ext 5385 (eval echo "\"\$as_me:5385: $ac_compile\"" >&5) 5386 (eval "$ac_compile" 2>conftest.err) 5387 cat conftest.err >&5 5388 (eval echo "\"\$as_me:5388: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5389 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5390 cat conftest.err >&5 5391 (eval echo "\"\$as_me:5391: output\"" >&5) 5392 cat conftest.out >&5 5393 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5394 lt_cv_nm_interface="MS dumpbin" 5395 fi 5396 rm -f conftest* 5397fi 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5399$as_echo "$lt_cv_nm_interface" >&6; } 5400 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5402$as_echo_n "checking whether ln -s works... " >&6; } 5403LN_S=$as_ln_s 5404if test "$LN_S" = "ln -s"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5406$as_echo "yes" >&6; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5409$as_echo "no, using $LN_S" >&6; } 5410fi 5411 5412# find the maximum length of command line arguments 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5414$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5415if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 i=0 5419 teststring="ABCD" 5420 5421 case $build_os in 5422 msdosdjgpp*) 5423 # On DJGPP, this test can blow up pretty badly due to problems in libc 5424 # (any single argument exceeding 2000 bytes causes a buffer overrun 5425 # during glob expansion). Even if it were fixed, the result of this 5426 # check would be larger than it should be. 5427 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5428 ;; 5429 5430 gnu*) 5431 # Under GNU Hurd, this test is not required because there is 5432 # no limit to the length of command line arguments. 5433 # Libtool will interpret -1 as no limit whatsoever 5434 lt_cv_sys_max_cmd_len=-1; 5435 ;; 5436 5437 cygwin* | mingw* | cegcc*) 5438 # On Win9x/ME, this test blows up -- it succeeds, but takes 5439 # about 5 minutes as the teststring grows exponentially. 5440 # Worse, since 9x/ME are not pre-emptively multitasking, 5441 # you end up with a "frozen" computer, even though with patience 5442 # the test eventually succeeds (with a max line length of 256k). 5443 # Instead, let's just punt: use the minimum linelength reported by 5444 # all of the supported platforms: 8192 (on NT/2K/XP). 5445 lt_cv_sys_max_cmd_len=8192; 5446 ;; 5447 5448 amigaos*) 5449 # On AmigaOS with pdksh, this test takes hours, literally. 5450 # So we just punt and use a minimum line length of 8192. 5451 lt_cv_sys_max_cmd_len=8192; 5452 ;; 5453 5454 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5455 # This has been around since 386BSD, at least. Likely further. 5456 if test -x /sbin/sysctl; then 5457 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5458 elif test -x /usr/sbin/sysctl; then 5459 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5460 else 5461 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5462 fi 5463 # And add a safety zone 5464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5466 ;; 5467 5468 interix*) 5469 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5470 lt_cv_sys_max_cmd_len=196608 5471 ;; 5472 5473 osf*) 5474 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5475 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5476 # nice to cause kernel panics so lets avoid the loop below. 5477 # First set a reasonable default. 5478 lt_cv_sys_max_cmd_len=16384 5479 # 5480 if test -x /sbin/sysconfig; then 5481 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5482 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5483 esac 5484 fi 5485 ;; 5486 sco3.2v5*) 5487 lt_cv_sys_max_cmd_len=102400 5488 ;; 5489 sysv5* | sco5v6* | sysv4.2uw2*) 5490 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5491 if test -n "$kargmax"; then 5492 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5493 else 5494 lt_cv_sys_max_cmd_len=32768 5495 fi 5496 ;; 5497 *) 5498 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5499 if test -n "$lt_cv_sys_max_cmd_len"; then 5500 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5502 else 5503 # Make teststring a little bigger before we do anything with it. 5504 # a 1K string should be a reasonable start. 5505 for i in 1 2 3 4 5 6 7 8 ; do 5506 teststring=$teststring$teststring 5507 done 5508 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5509 # If test is not a shell built-in, we'll probably end up computing a 5510 # maximum length that is only half of the actual maximum length, but 5511 # we can't tell. 5512 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5513 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5514 test $i != 17 # 1/2 MB should be enough 5515 do 5516 i=`expr $i + 1` 5517 teststring=$teststring$teststring 5518 done 5519 # Only check the string length outside the loop. 5520 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5521 teststring= 5522 # Add a significant safety factor because C++ compilers can tack on 5523 # massive amounts of additional arguments before passing them to the 5524 # linker. It appears as though 1/2 is a usable value. 5525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5526 fi 5527 ;; 5528 esac 5529 5530fi 5531 5532if test -n $lt_cv_sys_max_cmd_len ; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5534$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5537$as_echo "none" >&6; } 5538fi 5539max_cmd_len=$lt_cv_sys_max_cmd_len 5540 5541 5542 5543 5544 5545 5546: ${CP="cp -f"} 5547: ${MV="mv -f"} 5548: ${RM="rm -f"} 5549 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5551$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5552# Try some XSI features 5553xsi_shell=no 5554( _lt_dummy="a/b/c" 5555 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5556 = c,a/b,, \ 5557 && eval 'test $(( 1 + 1 )) -eq 2 \ 5558 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5559 && xsi_shell=yes 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5561$as_echo "$xsi_shell" >&6; } 5562 5563 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5565$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5566lt_shell_append=no 5567( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5568 >/dev/null 2>&1 \ 5569 && lt_shell_append=yes 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5571$as_echo "$lt_shell_append" >&6; } 5572 5573 5574if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5575 lt_unset=unset 5576else 5577 lt_unset=false 5578fi 5579 5580 5581 5582 5583 5584# test EBCDIC or ASCII 5585case `echo X|tr X '\101'` in 5586 A) # ASCII based system 5587 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5588 lt_SP2NL='tr \040 \012' 5589 lt_NL2SP='tr \015\012 \040\040' 5590 ;; 5591 *) # EBCDIC based system 5592 lt_SP2NL='tr \100 \n' 5593 lt_NL2SP='tr \r\n \100\100' 5594 ;; 5595esac 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5606$as_echo_n "checking for $LD option to reload object files... " >&6; } 5607if test "${lt_cv_ld_reload_flag+set}" = set; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 lt_cv_ld_reload_flag='-r' 5611fi 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5613$as_echo "$lt_cv_ld_reload_flag" >&6; } 5614reload_flag=$lt_cv_ld_reload_flag 5615case $reload_flag in 5616"" | " "*) ;; 5617*) reload_flag=" $reload_flag" ;; 5618esac 5619reload_cmds='$LD$reload_flag -o $output$reload_objs' 5620case $host_os in 5621 darwin*) 5622 if test "$GCC" = yes; then 5623 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5624 else 5625 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5626 fi 5627 ;; 5628esac 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638if test -n "$ac_tool_prefix"; then 5639 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5640set dummy ${ac_tool_prefix}objdump; ac_word=$2 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5642$as_echo_n "checking for $ac_word... " >&6; } 5643if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5644 $as_echo_n "(cached) " >&6 5645else 5646 if test -n "$OBJDUMP"; then 5647 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5648else 5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5650for as_dir in $PATH 5651do 5652 IFS=$as_save_IFS 5653 test -z "$as_dir" && as_dir=. 5654 for ac_exec_ext in '' $ac_executable_extensions; do 5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5656 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5658 break 2 5659 fi 5660done 5661 done 5662IFS=$as_save_IFS 5663 5664fi 5665fi 5666OBJDUMP=$ac_cv_prog_OBJDUMP 5667if test -n "$OBJDUMP"; then 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5669$as_echo "$OBJDUMP" >&6; } 5670else 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5672$as_echo "no" >&6; } 5673fi 5674 5675 5676fi 5677if test -z "$ac_cv_prog_OBJDUMP"; then 5678 ac_ct_OBJDUMP=$OBJDUMP 5679 # Extract the first word of "objdump", so it can be a program name with args. 5680set dummy objdump; ac_word=$2 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5682$as_echo_n "checking for $ac_word... " >&6; } 5683if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 if test -n "$ac_ct_OBJDUMP"; then 5687 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5688else 5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5690for as_dir in $PATH 5691do 5692 IFS=$as_save_IFS 5693 test -z "$as_dir" && as_dir=. 5694 for ac_exec_ext in '' $ac_executable_extensions; do 5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5696 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5698 break 2 5699 fi 5700done 5701 done 5702IFS=$as_save_IFS 5703 5704fi 5705fi 5706ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5707if test -n "$ac_ct_OBJDUMP"; then 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5709$as_echo "$ac_ct_OBJDUMP" >&6; } 5710else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5712$as_echo "no" >&6; } 5713fi 5714 5715 if test "x$ac_ct_OBJDUMP" = x; then 5716 OBJDUMP="false" 5717 else 5718 case $cross_compiling:$ac_tool_warned in 5719yes:) 5720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5722ac_tool_warned=yes ;; 5723esac 5724 OBJDUMP=$ac_ct_OBJDUMP 5725 fi 5726else 5727 OBJDUMP="$ac_cv_prog_OBJDUMP" 5728fi 5729 5730test -z "$OBJDUMP" && OBJDUMP=objdump 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5741$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5742if test "${lt_cv_deplibs_check_method+set}" = set; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 lt_cv_file_magic_cmd='$MAGIC_CMD' 5746lt_cv_file_magic_test_file= 5747lt_cv_deplibs_check_method='unknown' 5748# Need to set the preceding variable on all platforms that support 5749# interlibrary dependencies. 5750# 'none' -- dependencies not supported. 5751# `unknown' -- same as none, but documents that we really don't know. 5752# 'pass_all' -- all dependencies passed with no checks. 5753# 'test_compile' -- check by making test program. 5754# 'file_magic [[regex]]' -- check by looking for files in library path 5755# which responds to the $file_magic_cmd with a given extended regex. 5756# If you have `file' or equivalent on your system and you're not sure 5757# whether `pass_all' will *always* work, you probably want this one. 5758 5759case $host_os in 5760aix[4-9]*) 5761 lt_cv_deplibs_check_method=pass_all 5762 ;; 5763 5764beos*) 5765 lt_cv_deplibs_check_method=pass_all 5766 ;; 5767 5768bsdi[45]*) 5769 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5770 lt_cv_file_magic_cmd='/usr/bin/file -L' 5771 lt_cv_file_magic_test_file=/shlib/libc.so 5772 ;; 5773 5774cygwin*) 5775 # func_win32_libid is a shell function defined in ltmain.sh 5776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5777 lt_cv_file_magic_cmd='func_win32_libid' 5778 ;; 5779 5780mingw* | pw32*) 5781 # Base MSYS/MinGW do not provide the 'file' command needed by 5782 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5783 # unless we find 'file', for example because we are cross-compiling. 5784 if ( file / ) >/dev/null 2>&1; then 5785 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5786 lt_cv_file_magic_cmd='func_win32_libid' 5787 else 5788 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5789 lt_cv_file_magic_cmd='$OBJDUMP -f' 5790 fi 5791 ;; 5792 5793cegcc) 5794 # use the weaker test based on 'objdump'. See mingw*. 5795 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5796 lt_cv_file_magic_cmd='$OBJDUMP -f' 5797 ;; 5798 5799darwin* | rhapsody*) 5800 lt_cv_deplibs_check_method=pass_all 5801 ;; 5802 5803freebsd* | dragonfly*) 5804 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5805 case $host_cpu in 5806 i*86 ) 5807 # Not sure whether the presence of OpenBSD here was a mistake. 5808 # Let's accept both of them until this is cleared up. 5809 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5810 lt_cv_file_magic_cmd=/usr/bin/file 5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5812 ;; 5813 esac 5814 else 5815 lt_cv_deplibs_check_method=pass_all 5816 fi 5817 ;; 5818 5819gnu*) 5820 lt_cv_deplibs_check_method=pass_all 5821 ;; 5822 5823hpux10.20* | hpux11*) 5824 lt_cv_file_magic_cmd=/usr/bin/file 5825 case $host_cpu in 5826 ia64*) 5827 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5828 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5829 ;; 5830 hppa*64*) 5831 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]' 5832 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5833 ;; 5834 *) 5835 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5836 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5837 ;; 5838 esac 5839 ;; 5840 5841interix[3-9]*) 5842 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5843 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5844 ;; 5845 5846irix5* | irix6* | nonstopux*) 5847 case $LD in 5848 *-32|*"-32 ") libmagic=32-bit;; 5849 *-n32|*"-n32 ") libmagic=N32;; 5850 *-64|*"-64 ") libmagic=64-bit;; 5851 *) libmagic=never-match;; 5852 esac 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855 5856# This must be Linux ELF. 5857linux* | k*bsd*-gnu) 5858 lt_cv_deplibs_check_method=pass_all 5859 ;; 5860 5861netbsd*) 5862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5864 else 5865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5866 fi 5867 ;; 5868 5869newos6*) 5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5871 lt_cv_file_magic_cmd=/usr/bin/file 5872 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5873 ;; 5874 5875*nto* | *qnx*) 5876 lt_cv_deplibs_check_method=pass_all 5877 ;; 5878 5879openbsd*) 5880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5882 else 5883 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5884 fi 5885 ;; 5886 5887osf3* | osf4* | osf5*) 5888 lt_cv_deplibs_check_method=pass_all 5889 ;; 5890 5891rdos*) 5892 lt_cv_deplibs_check_method=pass_all 5893 ;; 5894 5895solaris*) 5896 lt_cv_deplibs_check_method=pass_all 5897 ;; 5898 5899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5900 lt_cv_deplibs_check_method=pass_all 5901 ;; 5902 5903sysv4 | sysv4.3*) 5904 case $host_vendor in 5905 motorola) 5906 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]' 5907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5908 ;; 5909 ncr) 5910 lt_cv_deplibs_check_method=pass_all 5911 ;; 5912 sequent) 5913 lt_cv_file_magic_cmd='/bin/file' 5914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5915 ;; 5916 sni) 5917 lt_cv_file_magic_cmd='/bin/file' 5918 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5919 lt_cv_file_magic_test_file=/lib/libc.so 5920 ;; 5921 siemens) 5922 lt_cv_deplibs_check_method=pass_all 5923 ;; 5924 pc) 5925 lt_cv_deplibs_check_method=pass_all 5926 ;; 5927 esac 5928 ;; 5929 5930tpf*) 5931 lt_cv_deplibs_check_method=pass_all 5932 ;; 5933esac 5934 5935fi 5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5937$as_echo "$lt_cv_deplibs_check_method" >&6; } 5938file_magic_cmd=$lt_cv_file_magic_cmd 5939deplibs_check_method=$lt_cv_deplibs_check_method 5940test -z "$deplibs_check_method" && deplibs_check_method=unknown 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953if test -n "$ac_tool_prefix"; then 5954 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5955set dummy ${ac_tool_prefix}ar; ac_word=$2 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957$as_echo_n "checking for $ac_word... " >&6; } 5958if test "${ac_cv_prog_AR+set}" = set; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 if test -n "$AR"; then 5962 ac_cv_prog_AR="$AR" # Let the user override the test. 5963else 5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5965for as_dir in $PATH 5966do 5967 IFS=$as_save_IFS 5968 test -z "$as_dir" && as_dir=. 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5971 ac_cv_prog_AR="${ac_tool_prefix}ar" 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979fi 5980fi 5981AR=$ac_cv_prog_AR 5982if test -n "$AR"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5984$as_echo "$AR" >&6; } 5985else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987$as_echo "no" >&6; } 5988fi 5989 5990 5991fi 5992if test -z "$ac_cv_prog_AR"; then 5993 ac_ct_AR=$AR 5994 # Extract the first word of "ar", so it can be a program name with args. 5995set dummy ar; ac_word=$2 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5997$as_echo_n "checking for $ac_word... " >&6; } 5998if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 if test -n "$ac_ct_AR"; then 6002 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6003else 6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005for as_dir in $PATH 6006do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6011 ac_cv_prog_ac_ct_AR="ar" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015done 6016 done 6017IFS=$as_save_IFS 6018 6019fi 6020fi 6021ac_ct_AR=$ac_cv_prog_ac_ct_AR 6022if test -n "$ac_ct_AR"; then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6024$as_echo "$ac_ct_AR" >&6; } 6025else 6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6027$as_echo "no" >&6; } 6028fi 6029 6030 if test "x$ac_ct_AR" = x; then 6031 AR="false" 6032 else 6033 case $cross_compiling:$ac_tool_warned in 6034yes:) 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6036$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6037ac_tool_warned=yes ;; 6038esac 6039 AR=$ac_ct_AR 6040 fi 6041else 6042 AR="$ac_cv_prog_AR" 6043fi 6044 6045test -z "$AR" && AR=ar 6046test -z "$AR_FLAGS" && AR_FLAGS=cru 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058if test -n "$ac_tool_prefix"; then 6059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6060set dummy ${ac_tool_prefix}strip; ac_word=$2 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6062$as_echo_n "checking for $ac_word... " >&6; } 6063if test "${ac_cv_prog_STRIP+set}" = set; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 if test -n "$STRIP"; then 6067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6068else 6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6070for as_dir in $PATH 6071do 6072 IFS=$as_save_IFS 6073 test -z "$as_dir" && as_dir=. 6074 for ac_exec_ext in '' $ac_executable_extensions; do 6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6076 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6078 break 2 6079 fi 6080done 6081 done 6082IFS=$as_save_IFS 6083 6084fi 6085fi 6086STRIP=$ac_cv_prog_STRIP 6087if test -n "$STRIP"; then 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6089$as_echo "$STRIP" >&6; } 6090else 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6092$as_echo "no" >&6; } 6093fi 6094 6095 6096fi 6097if test -z "$ac_cv_prog_STRIP"; then 6098 ac_ct_STRIP=$STRIP 6099 # Extract the first word of "strip", so it can be a program name with args. 6100set dummy strip; ac_word=$2 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6102$as_echo_n "checking for $ac_word... " >&6; } 6103if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 if test -n "$ac_ct_STRIP"; then 6107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6108else 6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6110for as_dir in $PATH 6111do 6112 IFS=$as_save_IFS 6113 test -z "$as_dir" && as_dir=. 6114 for ac_exec_ext in '' $ac_executable_extensions; do 6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6116 ac_cv_prog_ac_ct_STRIP="strip" 6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6118 break 2 6119 fi 6120done 6121 done 6122IFS=$as_save_IFS 6123 6124fi 6125fi 6126ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6127if test -n "$ac_ct_STRIP"; then 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6129$as_echo "$ac_ct_STRIP" >&6; } 6130else 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6132$as_echo "no" >&6; } 6133fi 6134 6135 if test "x$ac_ct_STRIP" = x; then 6136 STRIP=":" 6137 else 6138 case $cross_compiling:$ac_tool_warned in 6139yes:) 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6141$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6142ac_tool_warned=yes ;; 6143esac 6144 STRIP=$ac_ct_STRIP 6145 fi 6146else 6147 STRIP="$ac_cv_prog_STRIP" 6148fi 6149 6150test -z "$STRIP" && STRIP=: 6151 6152 6153 6154 6155 6156 6157if test -n "$ac_tool_prefix"; then 6158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6159set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6161$as_echo_n "checking for $ac_word... " >&6; } 6162if test "${ac_cv_prog_RANLIB+set}" = set; then : 6163 $as_echo_n "(cached) " >&6 6164else 6165 if test -n "$RANLIB"; then 6166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6167else 6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169for as_dir in $PATH 6170do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 for ac_exec_ext in '' $ac_executable_extensions; do 6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6177 break 2 6178 fi 6179done 6180 done 6181IFS=$as_save_IFS 6182 6183fi 6184fi 6185RANLIB=$ac_cv_prog_RANLIB 6186if test -n "$RANLIB"; then 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6188$as_echo "$RANLIB" >&6; } 6189else 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6191$as_echo "no" >&6; } 6192fi 6193 6194 6195fi 6196if test -z "$ac_cv_prog_RANLIB"; then 6197 ac_ct_RANLIB=$RANLIB 6198 # Extract the first word of "ranlib", so it can be a program name with args. 6199set dummy ranlib; ac_word=$2 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6201$as_echo_n "checking for $ac_word... " >&6; } 6202if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 if test -n "$ac_ct_RANLIB"; then 6206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6207else 6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209for as_dir in $PATH 6210do 6211 IFS=$as_save_IFS 6212 test -z "$as_dir" && as_dir=. 6213 for ac_exec_ext in '' $ac_executable_extensions; do 6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6215 ac_cv_prog_ac_ct_RANLIB="ranlib" 6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6217 break 2 6218 fi 6219done 6220 done 6221IFS=$as_save_IFS 6222 6223fi 6224fi 6225ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6226if test -n "$ac_ct_RANLIB"; then 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6228$as_echo "$ac_ct_RANLIB" >&6; } 6229else 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231$as_echo "no" >&6; } 6232fi 6233 6234 if test "x$ac_ct_RANLIB" = x; then 6235 RANLIB=":" 6236 else 6237 case $cross_compiling:$ac_tool_warned in 6238yes:) 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6241ac_tool_warned=yes ;; 6242esac 6243 RANLIB=$ac_ct_RANLIB 6244 fi 6245else 6246 RANLIB="$ac_cv_prog_RANLIB" 6247fi 6248 6249test -z "$RANLIB" && RANLIB=: 6250 6251 6252 6253 6254 6255 6256# Determine commands to create old-style static archives. 6257old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6258old_postinstall_cmds='chmod 644 $oldlib' 6259old_postuninstall_cmds= 6260 6261if test -n "$RANLIB"; then 6262 case $host_os in 6263 openbsd*) 6264 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6265 ;; 6266 *) 6267 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6268 ;; 6269 esac 6270 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6271fi 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306# If no C compiler was specified, use CC. 6307LTCC=${LTCC-"$CC"} 6308 6309# If no C compiler flags were specified, use CFLAGS. 6310LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6311 6312# Allow CC to be a program name with arguments. 6313compiler=$CC 6314 6315 6316# Check for command to grab the raw symbol name followed by C symbol from nm. 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6318$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6319if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 6323# These are sane defaults that work on at least a few old systems. 6324# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6325 6326# Character class describing NM global symbol codes. 6327symcode='[BCDEGRST]' 6328 6329# Regexp to match symbols that can be accessed directly from C. 6330sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6331 6332# Define system-specific variables. 6333case $host_os in 6334aix*) 6335 symcode='[BCDT]' 6336 ;; 6337cygwin* | mingw* | pw32* | cegcc*) 6338 symcode='[ABCDGISTW]' 6339 ;; 6340hpux*) 6341 if test "$host_cpu" = ia64; then 6342 symcode='[ABCDEGRST]' 6343 fi 6344 ;; 6345irix* | nonstopux*) 6346 symcode='[BCDEGRST]' 6347 ;; 6348osf*) 6349 symcode='[BCDEGQRST]' 6350 ;; 6351solaris*) 6352 symcode='[BDRT]' 6353 ;; 6354sco3.2v5*) 6355 symcode='[DT]' 6356 ;; 6357sysv4.2uw2*) 6358 symcode='[DT]' 6359 ;; 6360sysv5* | sco5v6* | unixware* | OpenUNIX*) 6361 symcode='[ABDT]' 6362 ;; 6363sysv4) 6364 symcode='[DFNSTU]' 6365 ;; 6366esac 6367 6368# If we're using GNU nm, then use its standard symbol codes. 6369case `$NM -V 2>&1` in 6370*GNU* | *'with BFD'*) 6371 symcode='[ABCDGIRSTW]' ;; 6372esac 6373 6374# Transform an extracted symbol line into a proper C declaration. 6375# Some systems (esp. on ia64) link data and code symbols differently, 6376# so use this general approach. 6377lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6378 6379# Transform an extracted symbol line into symbol name and symbol address 6380lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6381lt_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'" 6382 6383# Handle CRLF in mingw tool chain 6384opt_cr= 6385case $build_os in 6386mingw*) 6387 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6388 ;; 6389esac 6390 6391# Try without a prefix underscore, then with it. 6392for ac_symprfx in "" "_"; do 6393 6394 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6395 symxfrm="\\1 $ac_symprfx\\2 \\2" 6396 6397 # Write the raw and C identifiers. 6398 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6399 # Fake it for dumpbin and say T for any non-static function 6400 # and D for any global variable. 6401 # Also find C++ and __fastcall symbols from MSVC++, 6402 # which start with @ or ?. 6403 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6404" {last_section=section; section=\$ 3};"\ 6405" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6406" \$ 0!~/External *\|/{next};"\ 6407" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6408" {if(hide[section]) next};"\ 6409" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6410" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6411" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6412" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6413" ' prfx=^$ac_symprfx" 6414 else 6415 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6416 fi 6417 6418 # Check to see that the pipe works correctly. 6419 pipe_works=no 6420 6421 rm -f conftest* 6422 cat > conftest.$ac_ext <<_LT_EOF 6423#ifdef __cplusplus 6424extern "C" { 6425#endif 6426char nm_test_var; 6427void nm_test_func(void); 6428void nm_test_func(void){} 6429#ifdef __cplusplus 6430} 6431#endif 6432int main(){nm_test_var='a';nm_test_func();return(0);} 6433_LT_EOF 6434 6435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6436 (eval $ac_compile) 2>&5 6437 ac_status=$? 6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6439 test $ac_status = 0; }; then 6440 # Now try to grab the symbols. 6441 nlist=conftest.nm 6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6443 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6444 ac_status=$? 6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6446 test $ac_status = 0; } && test -s "$nlist"; then 6447 # Try sorting and uniquifying the output. 6448 if sort "$nlist" | uniq > "$nlist"T; then 6449 mv -f "$nlist"T "$nlist" 6450 else 6451 rm -f "$nlist"T 6452 fi 6453 6454 # Make sure that we snagged all the symbols we need. 6455 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6456 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6457 cat <<_LT_EOF > conftest.$ac_ext 6458#ifdef __cplusplus 6459extern "C" { 6460#endif 6461 6462_LT_EOF 6463 # Now generate the symbol file. 6464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6465 6466 cat <<_LT_EOF >> conftest.$ac_ext 6467 6468/* The mapping between symbol names and symbols. */ 6469const struct { 6470 const char *name; 6471 void *address; 6472} 6473lt__PROGRAM__LTX_preloaded_symbols[] = 6474{ 6475 { "@PROGRAM@", (void *) 0 }, 6476_LT_EOF 6477 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6478 cat <<\_LT_EOF >> conftest.$ac_ext 6479 {0, (void *) 0} 6480}; 6481 6482/* This works around a problem in FreeBSD linker */ 6483#ifdef FREEBSD_WORKAROUND 6484static const void *lt_preloaded_setup() { 6485 return lt__PROGRAM__LTX_preloaded_symbols; 6486} 6487#endif 6488 6489#ifdef __cplusplus 6490} 6491#endif 6492_LT_EOF 6493 # Now try linking the two files. 6494 mv conftest.$ac_objext conftstm.$ac_objext 6495 lt_save_LIBS="$LIBS" 6496 lt_save_CFLAGS="$CFLAGS" 6497 LIBS="conftstm.$ac_objext" 6498 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6500 (eval $ac_link) 2>&5 6501 ac_status=$? 6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6503 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6504 pipe_works=yes 6505 fi 6506 LIBS="$lt_save_LIBS" 6507 CFLAGS="$lt_save_CFLAGS" 6508 else 6509 echo "cannot find nm_test_func in $nlist" >&5 6510 fi 6511 else 6512 echo "cannot find nm_test_var in $nlist" >&5 6513 fi 6514 else 6515 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6516 fi 6517 else 6518 echo "$progname: failed program was:" >&5 6519 cat conftest.$ac_ext >&5 6520 fi 6521 rm -rf conftest* conftst* 6522 6523 # Do not use the global_symbol_pipe unless it works. 6524 if test "$pipe_works" = yes; then 6525 break 6526 else 6527 lt_cv_sys_global_symbol_pipe= 6528 fi 6529done 6530 6531fi 6532 6533if test -z "$lt_cv_sys_global_symbol_pipe"; then 6534 lt_cv_sys_global_symbol_to_cdecl= 6535fi 6536if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6538$as_echo "failed" >&6; } 6539else 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6541$as_echo "ok" >&6; } 6542fi 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565# Check whether --enable-libtool-lock was given. 6566if test "${enable_libtool_lock+set}" = set; then : 6567 enableval=$enable_libtool_lock; 6568fi 6569 6570test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6571 6572# Some flags need to be propagated to the compiler or linker for good 6573# libtool support. 6574case $host in 6575ia64-*-hpux*) 6576 # Find out which ABI we are using. 6577 echo 'int i;' > conftest.$ac_ext 6578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6579 (eval $ac_compile) 2>&5 6580 ac_status=$? 6581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6582 test $ac_status = 0; }; then 6583 case `/usr/bin/file conftest.$ac_objext` in 6584 *ELF-32*) 6585 HPUX_IA64_MODE="32" 6586 ;; 6587 *ELF-64*) 6588 HPUX_IA64_MODE="64" 6589 ;; 6590 esac 6591 fi 6592 rm -rf conftest* 6593 ;; 6594*-*-irix6*) 6595 # Find out which ABI we are using. 6596 echo '#line 6596 "configure"' > conftest.$ac_ext 6597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6598 (eval $ac_compile) 2>&5 6599 ac_status=$? 6600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6601 test $ac_status = 0; }; then 6602 if test "$lt_cv_prog_gnu_ld" = yes; then 6603 case `/usr/bin/file conftest.$ac_objext` in 6604 *32-bit*) 6605 LD="${LD-ld} -melf32bsmip" 6606 ;; 6607 *N32*) 6608 LD="${LD-ld} -melf32bmipn32" 6609 ;; 6610 *64-bit*) 6611 LD="${LD-ld} -melf64bmip" 6612 ;; 6613 esac 6614 else 6615 case `/usr/bin/file conftest.$ac_objext` in 6616 *32-bit*) 6617 LD="${LD-ld} -32" 6618 ;; 6619 *N32*) 6620 LD="${LD-ld} -n32" 6621 ;; 6622 *64-bit*) 6623 LD="${LD-ld} -64" 6624 ;; 6625 esac 6626 fi 6627 fi 6628 rm -rf conftest* 6629 ;; 6630 6631x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6632s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6633 # Find out which ABI we are using. 6634 echo 'int i;' > conftest.$ac_ext 6635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6636 (eval $ac_compile) 2>&5 6637 ac_status=$? 6638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6639 test $ac_status = 0; }; then 6640 case `/usr/bin/file conftest.o` in 6641 *32-bit*) 6642 case $host in 6643 x86_64-*kfreebsd*-gnu) 6644 LD="${LD-ld} -m elf_i386_fbsd" 6645 ;; 6646 x86_64-*linux*) 6647 LD="${LD-ld} -m elf_i386" 6648 ;; 6649 ppc64-*linux*|powerpc64-*linux*) 6650 LD="${LD-ld} -m elf32ppclinux" 6651 ;; 6652 s390x-*linux*) 6653 LD="${LD-ld} -m elf_s390" 6654 ;; 6655 sparc64-*linux*) 6656 LD="${LD-ld} -m elf32_sparc" 6657 ;; 6658 esac 6659 ;; 6660 *64-bit*) 6661 case $host in 6662 x86_64-*kfreebsd*-gnu) 6663 LD="${LD-ld} -m elf_x86_64_fbsd" 6664 ;; 6665 x86_64-*linux*) 6666 LD="${LD-ld} -m elf_x86_64" 6667 ;; 6668 ppc*-*linux*|powerpc*-*linux*) 6669 LD="${LD-ld} -m elf64ppc" 6670 ;; 6671 s390*-*linux*|s390*-*tpf*) 6672 LD="${LD-ld} -m elf64_s390" 6673 ;; 6674 sparc*-*linux*) 6675 LD="${LD-ld} -m elf64_sparc" 6676 ;; 6677 esac 6678 ;; 6679 esac 6680 fi 6681 rm -rf conftest* 6682 ;; 6683 6684*-*-sco3.2v5*) 6685 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6686 SAVE_CFLAGS="$CFLAGS" 6687 CFLAGS="$CFLAGS -belf" 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6689$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6690if test "${lt_cv_cc_needs_belf+set}" = set; then : 6691 $as_echo_n "(cached) " >&6 6692else 6693 ac_ext=c 6694ac_cpp='$CPP $CPPFLAGS' 6695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6697ac_compiler_gnu=$ac_cv_c_compiler_gnu 6698 6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700/* end confdefs.h. */ 6701 6702int 6703main () 6704{ 6705 6706 ; 6707 return 0; 6708} 6709_ACEOF 6710if ac_fn_c_try_link "$LINENO"; then : 6711 lt_cv_cc_needs_belf=yes 6712else 6713 lt_cv_cc_needs_belf=no 6714fi 6715rm -f core conftest.err conftest.$ac_objext \ 6716 conftest$ac_exeext conftest.$ac_ext 6717 ac_ext=c 6718ac_cpp='$CPP $CPPFLAGS' 6719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6721ac_compiler_gnu=$ac_cv_c_compiler_gnu 6722 6723fi 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6725$as_echo "$lt_cv_cc_needs_belf" >&6; } 6726 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6727 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6728 CFLAGS="$SAVE_CFLAGS" 6729 fi 6730 ;; 6731sparc*-*solaris*) 6732 # Find out which ABI we are using. 6733 echo 'int i;' > conftest.$ac_ext 6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6735 (eval $ac_compile) 2>&5 6736 ac_status=$? 6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6738 test $ac_status = 0; }; then 6739 case `/usr/bin/file conftest.o` in 6740 *64-bit*) 6741 case $lt_cv_prog_gnu_ld in 6742 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6743 *) 6744 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6745 LD="${LD-ld} -64" 6746 fi 6747 ;; 6748 esac 6749 ;; 6750 esac 6751 fi 6752 rm -rf conftest* 6753 ;; 6754esac 6755 6756need_locks="$enable_libtool_lock" 6757 6758 6759 case $host_os in 6760 rhapsody* | darwin*) 6761 if test -n "$ac_tool_prefix"; then 6762 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6763set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$DSYMUTIL"; then 6770 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6779 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789DSYMUTIL=$ac_cv_prog_DSYMUTIL 6790if test -n "$DSYMUTIL"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6792$as_echo "$DSYMUTIL" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 6799fi 6800if test -z "$ac_cv_prog_DSYMUTIL"; then 6801 ac_ct_DSYMUTIL=$DSYMUTIL 6802 # Extract the first word of "dsymutil", so it can be a program name with args. 6803set dummy dsymutil; ac_word=$2 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6805$as_echo_n "checking for $ac_word... " >&6; } 6806if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 if test -n "$ac_ct_DSYMUTIL"; then 6810 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6811else 6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6813for as_dir in $PATH 6814do 6815 IFS=$as_save_IFS 6816 test -z "$as_dir" && as_dir=. 6817 for ac_exec_ext in '' $ac_executable_extensions; do 6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6819 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6821 break 2 6822 fi 6823done 6824 done 6825IFS=$as_save_IFS 6826 6827fi 6828fi 6829ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6830if test -n "$ac_ct_DSYMUTIL"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6832$as_echo "$ac_ct_DSYMUTIL" >&6; } 6833else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6835$as_echo "no" >&6; } 6836fi 6837 6838 if test "x$ac_ct_DSYMUTIL" = x; then 6839 DSYMUTIL=":" 6840 else 6841 case $cross_compiling:$ac_tool_warned in 6842yes:) 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6845ac_tool_warned=yes ;; 6846esac 6847 DSYMUTIL=$ac_ct_DSYMUTIL 6848 fi 6849else 6850 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6851fi 6852 6853 if test -n "$ac_tool_prefix"; then 6854 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6855set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857$as_echo_n "checking for $ac_word... " >&6; } 6858if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 if test -n "$NMEDIT"; then 6862 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6871 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876 done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881NMEDIT=$ac_cv_prog_NMEDIT 6882if test -n "$NMEDIT"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6884$as_echo "$NMEDIT" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888fi 6889 6890 6891fi 6892if test -z "$ac_cv_prog_NMEDIT"; then 6893 ac_ct_NMEDIT=$NMEDIT 6894 # Extract the first word of "nmedit", so it can be a program name with args. 6895set dummy nmedit; ac_word=$2 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6897$as_echo_n "checking for $ac_word... " >&6; } 6898if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 if test -n "$ac_ct_NMEDIT"; then 6902 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916 done 6917IFS=$as_save_IFS 6918 6919fi 6920fi 6921ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6922if test -n "$ac_ct_NMEDIT"; then 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6924$as_echo "$ac_ct_NMEDIT" >&6; } 6925else 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6927$as_echo "no" >&6; } 6928fi 6929 6930 if test "x$ac_ct_NMEDIT" = x; then 6931 NMEDIT=":" 6932 else 6933 case $cross_compiling:$ac_tool_warned in 6934yes:) 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6937ac_tool_warned=yes ;; 6938esac 6939 NMEDIT=$ac_ct_NMEDIT 6940 fi 6941else 6942 NMEDIT="$ac_cv_prog_NMEDIT" 6943fi 6944 6945 if test -n "$ac_tool_prefix"; then 6946 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6947set dummy ${ac_tool_prefix}lipo; ac_word=$2 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6949$as_echo_n "checking for $ac_word... " >&6; } 6950if test "${ac_cv_prog_LIPO+set}" = set; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 if test -n "$LIPO"; then 6954 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6955else 6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957for as_dir in $PATH 6958do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6963 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967done 6968 done 6969IFS=$as_save_IFS 6970 6971fi 6972fi 6973LIPO=$ac_cv_prog_LIPO 6974if test -n "$LIPO"; then 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6976$as_echo "$LIPO" >&6; } 6977else 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6979$as_echo "no" >&6; } 6980fi 6981 6982 6983fi 6984if test -z "$ac_cv_prog_LIPO"; then 6985 ac_ct_LIPO=$LIPO 6986 # Extract the first word of "lipo", so it can be a program name with args. 6987set dummy lipo; ac_word=$2 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6989$as_echo_n "checking for $ac_word... " >&6; } 6990if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6991 $as_echo_n "(cached) " >&6 6992else 6993 if test -n "$ac_ct_LIPO"; then 6994 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6995else 6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997for as_dir in $PATH 6998do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7003 ac_cv_prog_ac_ct_LIPO="lipo" 7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007done 7008 done 7009IFS=$as_save_IFS 7010 7011fi 7012fi 7013ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7014if test -n "$ac_ct_LIPO"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7016$as_echo "$ac_ct_LIPO" >&6; } 7017else 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7019$as_echo "no" >&6; } 7020fi 7021 7022 if test "x$ac_ct_LIPO" = x; then 7023 LIPO=":" 7024 else 7025 case $cross_compiling:$ac_tool_warned in 7026yes:) 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7029ac_tool_warned=yes ;; 7030esac 7031 LIPO=$ac_ct_LIPO 7032 fi 7033else 7034 LIPO="$ac_cv_prog_LIPO" 7035fi 7036 7037 if test -n "$ac_tool_prefix"; then 7038 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7039set dummy ${ac_tool_prefix}otool; ac_word=$2 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7041$as_echo_n "checking for $ac_word... " >&6; } 7042if test "${ac_cv_prog_OTOOL+set}" = set; then : 7043 $as_echo_n "(cached) " >&6 7044else 7045 if test -n "$OTOOL"; then 7046 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7047else 7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7049for as_dir in $PATH 7050do 7051 IFS=$as_save_IFS 7052 test -z "$as_dir" && as_dir=. 7053 for ac_exec_ext in '' $ac_executable_extensions; do 7054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7055 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7057 break 2 7058 fi 7059done 7060 done 7061IFS=$as_save_IFS 7062 7063fi 7064fi 7065OTOOL=$ac_cv_prog_OTOOL 7066if test -n "$OTOOL"; then 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7068$as_echo "$OTOOL" >&6; } 7069else 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7071$as_echo "no" >&6; } 7072fi 7073 7074 7075fi 7076if test -z "$ac_cv_prog_OTOOL"; then 7077 ac_ct_OTOOL=$OTOOL 7078 # Extract the first word of "otool", so it can be a program name with args. 7079set dummy otool; ac_word=$2 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7081$as_echo_n "checking for $ac_word... " >&6; } 7082if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 if test -n "$ac_ct_OTOOL"; then 7086 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7087else 7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7089for as_dir in $PATH 7090do 7091 IFS=$as_save_IFS 7092 test -z "$as_dir" && as_dir=. 7093 for ac_exec_ext in '' $ac_executable_extensions; do 7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7095 ac_cv_prog_ac_ct_OTOOL="otool" 7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7097 break 2 7098 fi 7099done 7100 done 7101IFS=$as_save_IFS 7102 7103fi 7104fi 7105ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7106if test -n "$ac_ct_OTOOL"; then 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7108$as_echo "$ac_ct_OTOOL" >&6; } 7109else 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7111$as_echo "no" >&6; } 7112fi 7113 7114 if test "x$ac_ct_OTOOL" = x; then 7115 OTOOL=":" 7116 else 7117 case $cross_compiling:$ac_tool_warned in 7118yes:) 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7121ac_tool_warned=yes ;; 7122esac 7123 OTOOL=$ac_ct_OTOOL 7124 fi 7125else 7126 OTOOL="$ac_cv_prog_OTOOL" 7127fi 7128 7129 if test -n "$ac_tool_prefix"; then 7130 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7131set dummy ${ac_tool_prefix}otool64; ac_word=$2 7132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7133$as_echo_n "checking for $ac_word... " >&6; } 7134if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 if test -n "$OTOOL64"; then 7138 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7139else 7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7141for as_dir in $PATH 7142do 7143 IFS=$as_save_IFS 7144 test -z "$as_dir" && as_dir=. 7145 for ac_exec_ext in '' $ac_executable_extensions; do 7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7147 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7149 break 2 7150 fi 7151done 7152 done 7153IFS=$as_save_IFS 7154 7155fi 7156fi 7157OTOOL64=$ac_cv_prog_OTOOL64 7158if test -n "$OTOOL64"; then 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7160$as_echo "$OTOOL64" >&6; } 7161else 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7163$as_echo "no" >&6; } 7164fi 7165 7166 7167fi 7168if test -z "$ac_cv_prog_OTOOL64"; then 7169 ac_ct_OTOOL64=$OTOOL64 7170 # Extract the first word of "otool64", so it can be a program name with args. 7171set dummy otool64; ac_word=$2 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7173$as_echo_n "checking for $ac_word... " >&6; } 7174if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 if test -n "$ac_ct_OTOOL64"; then 7178 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7179else 7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7181for as_dir in $PATH 7182do 7183 IFS=$as_save_IFS 7184 test -z "$as_dir" && as_dir=. 7185 for ac_exec_ext in '' $ac_executable_extensions; do 7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7187 ac_cv_prog_ac_ct_OTOOL64="otool64" 7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7189 break 2 7190 fi 7191done 7192 done 7193IFS=$as_save_IFS 7194 7195fi 7196fi 7197ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7198if test -n "$ac_ct_OTOOL64"; then 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7200$as_echo "$ac_ct_OTOOL64" >&6; } 7201else 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7203$as_echo "no" >&6; } 7204fi 7205 7206 if test "x$ac_ct_OTOOL64" = x; then 7207 OTOOL64=":" 7208 else 7209 case $cross_compiling:$ac_tool_warned in 7210yes:) 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7213ac_tool_warned=yes ;; 7214esac 7215 OTOOL64=$ac_ct_OTOOL64 7216 fi 7217else 7218 OTOOL64="$ac_cv_prog_OTOOL64" 7219fi 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7248$as_echo_n "checking for -single_module linker flag... " >&6; } 7249if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 lt_cv_apple_cc_single_mod=no 7253 if test -z "${LT_MULTI_MODULE}"; then 7254 # By default we will add the -single_module flag. You can override 7255 # by either setting the environment variable LT_MULTI_MODULE 7256 # non-empty at configure time, or by adding -multi_module to the 7257 # link flags. 7258 rm -rf libconftest.dylib* 7259 echo "int foo(void){return 1;}" > conftest.c 7260 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7261-dynamiclib -Wl,-single_module conftest.c" >&5 7262 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7263 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7264 _lt_result=$? 7265 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7266 lt_cv_apple_cc_single_mod=yes 7267 else 7268 cat conftest.err >&5 7269 fi 7270 rm -rf libconftest.dylib* 7271 rm -f conftest.* 7272 fi 7273fi 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7275$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7277$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7278if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 lt_cv_ld_exported_symbols_list=no 7282 save_LDFLAGS=$LDFLAGS 7283 echo "_main" > conftest.sym 7284 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7286/* end confdefs.h. */ 7287 7288int 7289main () 7290{ 7291 7292 ; 7293 return 0; 7294} 7295_ACEOF 7296if ac_fn_c_try_link "$LINENO"; then : 7297 lt_cv_ld_exported_symbols_list=yes 7298else 7299 lt_cv_ld_exported_symbols_list=no 7300fi 7301rm -f core conftest.err conftest.$ac_objext \ 7302 conftest$ac_exeext conftest.$ac_ext 7303 LDFLAGS="$save_LDFLAGS" 7304 7305fi 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7307$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7308 case $host_os in 7309 rhapsody* | darwin1.[012]) 7310 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7311 darwin1.*) 7312 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7313 darwin*) # darwin 5.x on 7314 # if running on 10.5 or later, the deployment target defaults 7315 # to the OS version, if on x86, and 10.4, the deployment 7316 # target defaults to 10.4. Don't you love it? 7317 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7318 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7319 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7320 10.[012]*) 7321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7322 10.*) 7323 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7324 esac 7325 ;; 7326 esac 7327 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7328 _lt_dar_single_mod='$single_module' 7329 fi 7330 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7331 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7332 else 7333 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7334 fi 7335 if test "$DSYMUTIL" != ":"; then 7336 _lt_dsymutil='~$DSYMUTIL $lib || :' 7337 else 7338 _lt_dsymutil= 7339 fi 7340 ;; 7341 esac 7342 7343for ac_header in dlfcn.h 7344do : 7345 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7346" 7347if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7348 cat >>confdefs.h <<_ACEOF 7349#define HAVE_DLFCN_H 1 7350_ACEOF 7351 7352fi 7353 7354done 7355 7356 7357 7358# Set options 7359 7360 7361 7362 enable_dlopen=no 7363 7364 7365 enable_win32_dll=no 7366 7367 7368 # Check whether --enable-shared was given. 7369if test "${enable_shared+set}" = set; then : 7370 enableval=$enable_shared; p=${PACKAGE-default} 7371 case $enableval in 7372 yes) enable_shared=yes ;; 7373 no) enable_shared=no ;; 7374 *) 7375 enable_shared=no 7376 # Look at the argument we got. We use all the common list separators. 7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7378 for pkg in $enableval; do 7379 IFS="$lt_save_ifs" 7380 if test "X$pkg" = "X$p"; then 7381 enable_shared=yes 7382 fi 7383 done 7384 IFS="$lt_save_ifs" 7385 ;; 7386 esac 7387else 7388 enable_shared=yes 7389fi 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401# Check whether --with-pic was given. 7402if test "${with_pic+set}" = set; then : 7403 withval=$with_pic; pic_mode="$withval" 7404else 7405 pic_mode=default 7406fi 7407 7408 7409test -z "$pic_mode" && pic_mode=default 7410 7411 7412 7413 7414 7415 7416 7417 # Check whether --enable-fast-install was given. 7418if test "${enable_fast_install+set}" = set; then : 7419 enableval=$enable_fast_install; p=${PACKAGE-default} 7420 case $enableval in 7421 yes) enable_fast_install=yes ;; 7422 no) enable_fast_install=no ;; 7423 *) 7424 enable_fast_install=no 7425 # Look at the argument we got. We use all the common list separators. 7426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7427 for pkg in $enableval; do 7428 IFS="$lt_save_ifs" 7429 if test "X$pkg" = "X$p"; then 7430 enable_fast_install=yes 7431 fi 7432 done 7433 IFS="$lt_save_ifs" 7434 ;; 7435 esac 7436else 7437 enable_fast_install=yes 7438fi 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450# This can be used to rebuild libtool when needed 7451LIBTOOL_DEPS="$ltmain" 7452 7453# Always use our own libtool. 7454LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480test -z "$LN_S" && LN_S="ln -s" 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495if test -n "${ZSH_VERSION+set}" ; then 7496 setopt NO_GLOB_SUBST 7497fi 7498 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7500$as_echo_n "checking for objdir... " >&6; } 7501if test "${lt_cv_objdir+set}" = set; then : 7502 $as_echo_n "(cached) " >&6 7503else 7504 rm -f .libs 2>/dev/null 7505mkdir .libs 2>/dev/null 7506if test -d .libs; then 7507 lt_cv_objdir=.libs 7508else 7509 # MS-DOS does not allow filenames that begin with a dot. 7510 lt_cv_objdir=_libs 7511fi 7512rmdir .libs 2>/dev/null 7513fi 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7515$as_echo "$lt_cv_objdir" >&6; } 7516objdir=$lt_cv_objdir 7517 7518 7519 7520 7521 7522cat >>confdefs.h <<_ACEOF 7523#define LT_OBJDIR "$lt_cv_objdir/" 7524_ACEOF 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542case $host_os in 7543aix3*) 7544 # AIX sometimes has problems with the GCC collect2 program. For some 7545 # reason, if we set the COLLECT_NAMES environment variable, the problems 7546 # vanish in a puff of smoke. 7547 if test "X${COLLECT_NAMES+set}" != Xset; then 7548 COLLECT_NAMES= 7549 export COLLECT_NAMES 7550 fi 7551 ;; 7552esac 7553 7554# Sed substitution that helps us do robust quoting. It backslashifies 7555# metacharacters that are still active within double-quoted strings. 7556sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7557 7558# Same as above, but do not quote variable references. 7559double_quote_subst='s/\(["`\\]\)/\\\1/g' 7560 7561# Sed substitution to delay expansion of an escaped shell variable in a 7562# double_quote_subst'ed string. 7563delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7564 7565# Sed substitution to delay expansion of an escaped single quote. 7566delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7567 7568# Sed substitution to avoid accidental globbing in evaled expressions 7569no_glob_subst='s/\*/\\\*/g' 7570 7571# Global variables: 7572ofile=libtool 7573can_build_shared=yes 7574 7575# All known linkers require a `.a' archive for static linking (except MSVC, 7576# which needs '.lib'). 7577libext=a 7578 7579with_gnu_ld="$lt_cv_prog_gnu_ld" 7580 7581old_CC="$CC" 7582old_CFLAGS="$CFLAGS" 7583 7584# Set sane defaults for various variables 7585test -z "$CC" && CC=cc 7586test -z "$LTCC" && LTCC=$CC 7587test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7588test -z "$LD" && LD=ld 7589test -z "$ac_objext" && ac_objext=o 7590 7591for cc_temp in $compiler""; do 7592 case $cc_temp in 7593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7595 \-*) ;; 7596 *) break;; 7597 esac 7598done 7599cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7600 7601 7602# Only perform the check for file, if the check method requires it 7603test -z "$MAGIC_CMD" && MAGIC_CMD=file 7604case $deplibs_check_method in 7605file_magic*) 7606 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7608$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7609if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 case $MAGIC_CMD in 7613[\\/*] | ?:[\\/]*) 7614 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7615 ;; 7616*) 7617 lt_save_MAGIC_CMD="$MAGIC_CMD" 7618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7619 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7620 for ac_dir in $ac_dummy; do 7621 IFS="$lt_save_ifs" 7622 test -z "$ac_dir" && ac_dir=. 7623 if test -f $ac_dir/${ac_tool_prefix}file; then 7624 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7625 if test -n "$file_magic_test_file"; then 7626 case $deplibs_check_method in 7627 "file_magic "*) 7628 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7630 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7631 $EGREP "$file_magic_regex" > /dev/null; then 7632 : 7633 else 7634 cat <<_LT_EOF 1>&2 7635 7636*** Warning: the command libtool uses to detect shared libraries, 7637*** $file_magic_cmd, produces output that libtool cannot recognize. 7638*** The result is that libtool may fail to recognize shared libraries 7639*** as such. This will affect the creation of libtool libraries that 7640*** depend on shared libraries, but programs linked with such libtool 7641*** libraries will work regardless of this problem. Nevertheless, you 7642*** may want to report the problem to your system manager and/or to 7643*** bug-libtool@gnu.org 7644 7645_LT_EOF 7646 fi ;; 7647 esac 7648 fi 7649 break 7650 fi 7651 done 7652 IFS="$lt_save_ifs" 7653 MAGIC_CMD="$lt_save_MAGIC_CMD" 7654 ;; 7655esac 7656fi 7657 7658MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7659if test -n "$MAGIC_CMD"; then 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7661$as_echo "$MAGIC_CMD" >&6; } 7662else 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7664$as_echo "no" >&6; } 7665fi 7666 7667 7668 7669 7670 7671if test -z "$lt_cv_path_MAGIC_CMD"; then 7672 if test -n "$ac_tool_prefix"; then 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7674$as_echo_n "checking for file... " >&6; } 7675if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7676 $as_echo_n "(cached) " >&6 7677else 7678 case $MAGIC_CMD in 7679[\\/*] | ?:[\\/]*) 7680 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7681 ;; 7682*) 7683 lt_save_MAGIC_CMD="$MAGIC_CMD" 7684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7686 for ac_dir in $ac_dummy; do 7687 IFS="$lt_save_ifs" 7688 test -z "$ac_dir" && ac_dir=. 7689 if test -f $ac_dir/file; then 7690 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7691 if test -n "$file_magic_test_file"; then 7692 case $deplibs_check_method in 7693 "file_magic "*) 7694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7697 $EGREP "$file_magic_regex" > /dev/null; then 7698 : 7699 else 7700 cat <<_LT_EOF 1>&2 7701 7702*** Warning: the command libtool uses to detect shared libraries, 7703*** $file_magic_cmd, produces output that libtool cannot recognize. 7704*** The result is that libtool may fail to recognize shared libraries 7705*** as such. This will affect the creation of libtool libraries that 7706*** depend on shared libraries, but programs linked with such libtool 7707*** libraries will work regardless of this problem. Nevertheless, you 7708*** may want to report the problem to your system manager and/or to 7709*** bug-libtool@gnu.org 7710 7711_LT_EOF 7712 fi ;; 7713 esac 7714 fi 7715 break 7716 fi 7717 done 7718 IFS="$lt_save_ifs" 7719 MAGIC_CMD="$lt_save_MAGIC_CMD" 7720 ;; 7721esac 7722fi 7723 7724MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7725if test -n "$MAGIC_CMD"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7727$as_echo "$MAGIC_CMD" >&6; } 7728else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7730$as_echo "no" >&6; } 7731fi 7732 7733 7734 else 7735 MAGIC_CMD=: 7736 fi 7737fi 7738 7739 fi 7740 ;; 7741esac 7742 7743# Use C for the default configuration in the libtool script 7744 7745lt_save_CC="$CC" 7746ac_ext=c 7747ac_cpp='$CPP $CPPFLAGS' 7748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7750ac_compiler_gnu=$ac_cv_c_compiler_gnu 7751 7752 7753# Source file extension for C test sources. 7754ac_ext=c 7755 7756# Object file extension for compiled C test sources. 7757objext=o 7758objext=$objext 7759 7760# Code to be used in simple compile tests 7761lt_simple_compile_test_code="int some_variable = 0;" 7762 7763# Code to be used in simple link tests 7764lt_simple_link_test_code='int main(){return(0);}' 7765 7766 7767 7768 7769 7770 7771 7772# If no C compiler was specified, use CC. 7773LTCC=${LTCC-"$CC"} 7774 7775# If no C compiler flags were specified, use CFLAGS. 7776LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7777 7778# Allow CC to be a program name with arguments. 7779compiler=$CC 7780 7781# Save the default compiler, since it gets overwritten when the other 7782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7783compiler_DEFAULT=$CC 7784 7785# save warnings/boilerplate of simple test code 7786ac_outfile=conftest.$ac_objext 7787echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7789_lt_compiler_boilerplate=`cat conftest.err` 7790$RM conftest* 7791 7792ac_outfile=conftest.$ac_objext 7793echo "$lt_simple_link_test_code" >conftest.$ac_ext 7794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7795_lt_linker_boilerplate=`cat conftest.err` 7796$RM -r conftest* 7797 7798 7799if test -n "$compiler"; then 7800 7801lt_prog_compiler_no_builtin_flag= 7802 7803if test "$GCC" = yes; then 7804 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7805 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7807$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7808if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 lt_cv_prog_compiler_rtti_exceptions=no 7812 ac_outfile=conftest.$ac_objext 7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7814 lt_compiler_flag="-fno-rtti -fno-exceptions" 7815 # Insert the option either (1) after the last *FLAGS variable, or 7816 # (2) before a word containing "conftest.", or (3) at the end. 7817 # Note that $ac_compile itself does not contain backslashes and begins 7818 # with a dollar sign (not a hyphen), so the echo should work correctly. 7819 # The option is referenced via a variable to avoid confusing sed. 7820 lt_compile=`echo "$ac_compile" | $SED \ 7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7823 -e 's:$: $lt_compiler_flag:'` 7824 (eval echo "\"\$as_me:7824: $lt_compile\"" >&5) 7825 (eval "$lt_compile" 2>conftest.err) 7826 ac_status=$? 7827 cat conftest.err >&5 7828 echo "$as_me:7828: \$? = $ac_status" >&5 7829 if (exit $ac_status) && test -s "$ac_outfile"; then 7830 # The compiler can only warn and ignore the option if not recognized 7831 # So say no if there are warnings other than the usual output. 7832 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7835 lt_cv_prog_compiler_rtti_exceptions=yes 7836 fi 7837 fi 7838 $RM conftest* 7839 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7842$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7843 7844if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7845 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7846else 7847 : 7848fi 7849 7850fi 7851 7852 7853 7854 7855 7856 7857 lt_prog_compiler_wl= 7858lt_prog_compiler_pic= 7859lt_prog_compiler_static= 7860 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7862$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7863 7864 if test "$GCC" = yes; then 7865 lt_prog_compiler_wl='-Wl,' 7866 lt_prog_compiler_static='-static' 7867 7868 case $host_os in 7869 aix*) 7870 # All AIX code is PIC. 7871 if test "$host_cpu" = ia64; then 7872 # AIX 5 now supports IA64 processor 7873 lt_prog_compiler_static='-Bstatic' 7874 fi 7875 ;; 7876 7877 amigaos*) 7878 case $host_cpu in 7879 powerpc) 7880 # see comment about AmigaOS4 .so support 7881 lt_prog_compiler_pic='-fPIC' 7882 ;; 7883 m68k) 7884 # FIXME: we need at least 68020 code to build shared libraries, but 7885 # adding the `-m68020' flag to GCC prevents building anything better, 7886 # like `-m68040'. 7887 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7888 ;; 7889 esac 7890 ;; 7891 7892 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7893 # PIC is the default for these OSes. 7894 ;; 7895 7896 mingw* | cygwin* | pw32* | os2* | cegcc*) 7897 # This hack is so that the source file can tell whether it is being 7898 # built for inclusion in a dll (and should export symbols for example). 7899 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7900 # (--disable-auto-import) libraries 7901 lt_prog_compiler_pic='-DDLL_EXPORT' 7902 ;; 7903 7904 darwin* | rhapsody*) 7905 # PIC is the default on this platform 7906 # Common symbols not allowed in MH_DYLIB files 7907 lt_prog_compiler_pic='-fno-common' 7908 ;; 7909 7910 hpux*) 7911 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7912 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7913 # sets the default TLS model and affects inlining. 7914 case $host_cpu in 7915 hppa*64*) 7916 # +Z the default 7917 ;; 7918 *) 7919 lt_prog_compiler_pic='-fPIC' 7920 ;; 7921 esac 7922 ;; 7923 7924 interix[3-9]*) 7925 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7926 # Instead, we relocate shared libraries at runtime. 7927 ;; 7928 7929 msdosdjgpp*) 7930 # Just because we use GCC doesn't mean we suddenly get shared libraries 7931 # on systems that don't support them. 7932 lt_prog_compiler_can_build_shared=no 7933 enable_shared=no 7934 ;; 7935 7936 *nto* | *qnx*) 7937 # QNX uses GNU C++, but need to define -shared option too, otherwise 7938 # it will coredump. 7939 lt_prog_compiler_pic='-fPIC -shared' 7940 ;; 7941 7942 sysv4*MP*) 7943 if test -d /usr/nec; then 7944 lt_prog_compiler_pic=-Kconform_pic 7945 fi 7946 ;; 7947 7948 *) 7949 lt_prog_compiler_pic='-fPIC' 7950 ;; 7951 esac 7952 else 7953 # PORTME Check for flag to pass linker flags through the system compiler. 7954 case $host_os in 7955 aix*) 7956 lt_prog_compiler_wl='-Wl,' 7957 if test "$host_cpu" = ia64; then 7958 # AIX 5 now supports IA64 processor 7959 lt_prog_compiler_static='-Bstatic' 7960 else 7961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7962 fi 7963 ;; 7964 7965 mingw* | cygwin* | pw32* | os2* | cegcc*) 7966 # This hack is so that the source file can tell whether it is being 7967 # built for inclusion in a dll (and should export symbols for example). 7968 lt_prog_compiler_pic='-DDLL_EXPORT' 7969 ;; 7970 7971 hpux9* | hpux10* | hpux11*) 7972 lt_prog_compiler_wl='-Wl,' 7973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7974 # not for PA HP-UX. 7975 case $host_cpu in 7976 hppa*64*|ia64*) 7977 # +Z the default 7978 ;; 7979 *) 7980 lt_prog_compiler_pic='+Z' 7981 ;; 7982 esac 7983 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7984 lt_prog_compiler_static='${wl}-a ${wl}archive' 7985 ;; 7986 7987 irix5* | irix6* | nonstopux*) 7988 lt_prog_compiler_wl='-Wl,' 7989 # PIC (with -KPIC) is the default. 7990 lt_prog_compiler_static='-non_shared' 7991 ;; 7992 7993 linux* | k*bsd*-gnu) 7994 case $cc_basename in 7995 # old Intel for x86_64 which still supported -KPIC. 7996 ecc*) 7997 lt_prog_compiler_wl='-Wl,' 7998 lt_prog_compiler_pic='-KPIC' 7999 lt_prog_compiler_static='-static' 8000 ;; 8001 # icc used to be incompatible with GCC. 8002 # ICC 10 doesn't accept -KPIC any more. 8003 icc* | ifort*) 8004 lt_prog_compiler_wl='-Wl,' 8005 lt_prog_compiler_pic='-fPIC' 8006 lt_prog_compiler_static='-static' 8007 ;; 8008 # Lahey Fortran 8.1. 8009 lf95*) 8010 lt_prog_compiler_wl='-Wl,' 8011 lt_prog_compiler_pic='--shared' 8012 lt_prog_compiler_static='--static' 8013 ;; 8014 pgcc* | pgf77* | pgf90* | pgf95*) 8015 # Portland Group compilers (*not* the Pentium gcc compiler, 8016 # which looks to be a dead project) 8017 lt_prog_compiler_wl='-Wl,' 8018 lt_prog_compiler_pic='-fpic' 8019 lt_prog_compiler_static='-Bstatic' 8020 ;; 8021 ccc*) 8022 lt_prog_compiler_wl='-Wl,' 8023 # All Alpha code is PIC. 8024 lt_prog_compiler_static='-non_shared' 8025 ;; 8026 xl*) 8027 # IBM XL C 8.0/Fortran 10.1 on PPC 8028 lt_prog_compiler_wl='-Wl,' 8029 lt_prog_compiler_pic='-qpic' 8030 lt_prog_compiler_static='-qstaticlink' 8031 ;; 8032 *) 8033 case `$CC -V 2>&1 | sed 5q` in 8034 *Sun\ C*) 8035 # Sun C 5.9 8036 lt_prog_compiler_pic='-KPIC' 8037 lt_prog_compiler_static='-Bstatic' 8038 lt_prog_compiler_wl='-Wl,' 8039 ;; 8040 *Sun\ F*) 8041 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8042 lt_prog_compiler_pic='-KPIC' 8043 lt_prog_compiler_static='-Bstatic' 8044 lt_prog_compiler_wl='' 8045 ;; 8046 esac 8047 ;; 8048 esac 8049 ;; 8050 8051 newsos6) 8052 lt_prog_compiler_pic='-KPIC' 8053 lt_prog_compiler_static='-Bstatic' 8054 ;; 8055 8056 *nto* | *qnx*) 8057 # QNX uses GNU C++, but need to define -shared option too, otherwise 8058 # it will coredump. 8059 lt_prog_compiler_pic='-fPIC -shared' 8060 ;; 8061 8062 osf3* | osf4* | osf5*) 8063 lt_prog_compiler_wl='-Wl,' 8064 # All OSF/1 code is PIC. 8065 lt_prog_compiler_static='-non_shared' 8066 ;; 8067 8068 rdos*) 8069 lt_prog_compiler_static='-non_shared' 8070 ;; 8071 8072 solaris*) 8073 lt_prog_compiler_pic='-KPIC' 8074 lt_prog_compiler_static='-Bstatic' 8075 case $cc_basename in 8076 f77* | f90* | f95*) 8077 lt_prog_compiler_wl='-Qoption ld ';; 8078 *) 8079 lt_prog_compiler_wl='-Wl,';; 8080 esac 8081 ;; 8082 8083 sunos4*) 8084 lt_prog_compiler_wl='-Qoption ld ' 8085 lt_prog_compiler_pic='-PIC' 8086 lt_prog_compiler_static='-Bstatic' 8087 ;; 8088 8089 sysv4 | sysv4.2uw2* | sysv4.3*) 8090 lt_prog_compiler_wl='-Wl,' 8091 lt_prog_compiler_pic='-KPIC' 8092 lt_prog_compiler_static='-Bstatic' 8093 ;; 8094 8095 sysv4*MP*) 8096 if test -d /usr/nec ;then 8097 lt_prog_compiler_pic='-Kconform_pic' 8098 lt_prog_compiler_static='-Bstatic' 8099 fi 8100 ;; 8101 8102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8103 lt_prog_compiler_wl='-Wl,' 8104 lt_prog_compiler_pic='-KPIC' 8105 lt_prog_compiler_static='-Bstatic' 8106 ;; 8107 8108 unicos*) 8109 lt_prog_compiler_wl='-Wl,' 8110 lt_prog_compiler_can_build_shared=no 8111 ;; 8112 8113 uts4*) 8114 lt_prog_compiler_pic='-pic' 8115 lt_prog_compiler_static='-Bstatic' 8116 ;; 8117 8118 *) 8119 lt_prog_compiler_can_build_shared=no 8120 ;; 8121 esac 8122 fi 8123 8124case $host_os in 8125 # For platforms which do not support PIC, -DPIC is meaningless: 8126 *djgpp*) 8127 lt_prog_compiler_pic= 8128 ;; 8129 *) 8130 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8131 ;; 8132esac 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8134$as_echo "$lt_prog_compiler_pic" >&6; } 8135 8136 8137 8138 8139 8140 8141# 8142# Check to make sure the PIC flag actually works. 8143# 8144if test -n "$lt_prog_compiler_pic"; then 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8146$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8147if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8148 $as_echo_n "(cached) " >&6 8149else 8150 lt_cv_prog_compiler_pic_works=no 8151 ac_outfile=conftest.$ac_objext 8152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8153 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8154 # Insert the option either (1) after the last *FLAGS variable, or 8155 # (2) before a word containing "conftest.", or (3) at the end. 8156 # Note that $ac_compile itself does not contain backslashes and begins 8157 # with a dollar sign (not a hyphen), so the echo should work correctly. 8158 # The option is referenced via a variable to avoid confusing sed. 8159 lt_compile=`echo "$ac_compile" | $SED \ 8160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8162 -e 's:$: $lt_compiler_flag:'` 8163 (eval echo "\"\$as_me:8163: $lt_compile\"" >&5) 8164 (eval "$lt_compile" 2>conftest.err) 8165 ac_status=$? 8166 cat conftest.err >&5 8167 echo "$as_me:8167: \$? = $ac_status" >&5 8168 if (exit $ac_status) && test -s "$ac_outfile"; then 8169 # The compiler can only warn and ignore the option if not recognized 8170 # So say no if there are warnings other than the usual output. 8171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8174 lt_cv_prog_compiler_pic_works=yes 8175 fi 8176 fi 8177 $RM conftest* 8178 8179fi 8180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8181$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8182 8183if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8184 case $lt_prog_compiler_pic in 8185 "" | " "*) ;; 8186 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8187 esac 8188else 8189 lt_prog_compiler_pic= 8190 lt_prog_compiler_can_build_shared=no 8191fi 8192 8193fi 8194 8195 8196 8197 8198 8199 8200# 8201# Check to make sure the static flag actually works. 8202# 8203wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8205$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8206if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 lt_cv_prog_compiler_static_works=no 8210 save_LDFLAGS="$LDFLAGS" 8211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8212 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8214 # The linker can only warn and ignore the option if not recognized 8215 # So say no if there are warnings 8216 if test -s conftest.err; then 8217 # Append any errors to the config.log. 8218 cat conftest.err 1>&5 8219 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8221 if diff conftest.exp conftest.er2 >/dev/null; then 8222 lt_cv_prog_compiler_static_works=yes 8223 fi 8224 else 8225 lt_cv_prog_compiler_static_works=yes 8226 fi 8227 fi 8228 $RM -r conftest* 8229 LDFLAGS="$save_LDFLAGS" 8230 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8233$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8234 8235if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8236 : 8237else 8238 lt_prog_compiler_static= 8239fi 8240 8241 8242 8243 8244 8245 8246 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8248$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8249if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 lt_cv_prog_compiler_c_o=no 8253 $RM -r conftest 2>/dev/null 8254 mkdir conftest 8255 cd conftest 8256 mkdir out 8257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8258 8259 lt_compiler_flag="-o out/conftest2.$ac_objext" 8260 # Insert the option either (1) after the last *FLAGS variable, or 8261 # (2) before a word containing "conftest.", or (3) at the end. 8262 # Note that $ac_compile itself does not contain backslashes and begins 8263 # with a dollar sign (not a hyphen), so the echo should work correctly. 8264 lt_compile=`echo "$ac_compile" | $SED \ 8265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8267 -e 's:$: $lt_compiler_flag:'` 8268 (eval echo "\"\$as_me:8268: $lt_compile\"" >&5) 8269 (eval "$lt_compile" 2>out/conftest.err) 8270 ac_status=$? 8271 cat out/conftest.err >&5 8272 echo "$as_me:8272: \$? = $ac_status" >&5 8273 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8274 then 8275 # The compiler can only warn and ignore the option if not recognized 8276 # So say no if there are warnings 8277 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8280 lt_cv_prog_compiler_c_o=yes 8281 fi 8282 fi 8283 chmod u+w . 2>&5 8284 $RM conftest* 8285 # SGI C++ compiler will create directory out/ii_files/ for 8286 # template instantiation 8287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8288 $RM out/* && rmdir out 8289 cd .. 8290 $RM -r conftest 8291 $RM conftest* 8292 8293fi 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8295$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8296 8297 8298 8299 8300 8301 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8304if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 lt_cv_prog_compiler_c_o=no 8308 $RM -r conftest 2>/dev/null 8309 mkdir conftest 8310 cd conftest 8311 mkdir out 8312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8313 8314 lt_compiler_flag="-o out/conftest2.$ac_objext" 8315 # Insert the option either (1) after the last *FLAGS variable, or 8316 # (2) before a word containing "conftest.", or (3) at the end. 8317 # Note that $ac_compile itself does not contain backslashes and begins 8318 # with a dollar sign (not a hyphen), so the echo should work correctly. 8319 lt_compile=`echo "$ac_compile" | $SED \ 8320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8322 -e 's:$: $lt_compiler_flag:'` 8323 (eval echo "\"\$as_me:8323: $lt_compile\"" >&5) 8324 (eval "$lt_compile" 2>out/conftest.err) 8325 ac_status=$? 8326 cat out/conftest.err >&5 8327 echo "$as_me:8327: \$? = $ac_status" >&5 8328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8329 then 8330 # The compiler can only warn and ignore the option if not recognized 8331 # So say no if there are warnings 8332 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8335 lt_cv_prog_compiler_c_o=yes 8336 fi 8337 fi 8338 chmod u+w . 2>&5 8339 $RM conftest* 8340 # SGI C++ compiler will create directory out/ii_files/ for 8341 # template instantiation 8342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8343 $RM out/* && rmdir out 8344 cd .. 8345 $RM -r conftest 8346 $RM conftest* 8347 8348fi 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8350$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8351 8352 8353 8354 8355hard_links="nottested" 8356if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8357 # do not overwrite the value of need_locks provided by the user 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8359$as_echo_n "checking if we can lock with hard links... " >&6; } 8360 hard_links=yes 8361 $RM conftest* 8362 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8363 touch conftest.a 8364 ln conftest.a conftest.b 2>&5 || hard_links=no 8365 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8367$as_echo "$hard_links" >&6; } 8368 if test "$hard_links" = no; then 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8370$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8371 need_locks=warn 8372 fi 8373else 8374 need_locks=no 8375fi 8376 8377 8378 8379 8380 8381 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8383$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8384 8385 runpath_var= 8386 allow_undefined_flag= 8387 always_export_symbols=no 8388 archive_cmds= 8389 archive_expsym_cmds= 8390 compiler_needs_object=no 8391 enable_shared_with_static_runtimes=no 8392 export_dynamic_flag_spec= 8393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8394 hardcode_automatic=no 8395 hardcode_direct=no 8396 hardcode_direct_absolute=no 8397 hardcode_libdir_flag_spec= 8398 hardcode_libdir_flag_spec_ld= 8399 hardcode_libdir_separator= 8400 hardcode_minus_L=no 8401 hardcode_shlibpath_var=unsupported 8402 inherit_rpath=no 8403 link_all_deplibs=unknown 8404 module_cmds= 8405 module_expsym_cmds= 8406 old_archive_from_new_cmds= 8407 old_archive_from_expsyms_cmds= 8408 thread_safe_flag_spec= 8409 whole_archive_flag_spec= 8410 # include_expsyms should be a list of space-separated symbols to be *always* 8411 # included in the symbol list 8412 include_expsyms= 8413 # exclude_expsyms can be an extended regexp of symbols to exclude 8414 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8415 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8416 # as well as any symbol that contains `d'. 8417 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8419 # platforms (ab)use it in PIC code, but their linkers get confused if 8420 # the symbol is explicitly referenced. Since portable code cannot 8421 # rely on this symbol name, it's probably fine to never include it in 8422 # preloaded symbol tables. 8423 # Exclude shared library initialization/finalization symbols. 8424 extract_expsyms_cmds= 8425 8426 case $host_os in 8427 cygwin* | mingw* | pw32* | cegcc*) 8428 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8429 # When not using gcc, we currently assume that we are using 8430 # Microsoft Visual C++. 8431 if test "$GCC" != yes; then 8432 with_gnu_ld=no 8433 fi 8434 ;; 8435 interix*) 8436 # we just hope/assume this is gcc and not c89 (= MSVC++) 8437 with_gnu_ld=yes 8438 ;; 8439 openbsd*) 8440 with_gnu_ld=no 8441 ;; 8442 esac 8443 8444 ld_shlibs=yes 8445 if test "$with_gnu_ld" = yes; then 8446 # If archive_cmds runs LD, not CC, wlarc should be empty 8447 wlarc='${wl}' 8448 8449 # Set some defaults for GNU ld with shared library support. These 8450 # are reset later if shared libraries are not supported. Putting them 8451 # here allows them to be overridden if necessary. 8452 runpath_var=LD_RUN_PATH 8453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8454 export_dynamic_flag_spec='${wl}--export-dynamic' 8455 # ancient GNU ld didn't support --whole-archive et. al. 8456 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8457 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8458 else 8459 whole_archive_flag_spec= 8460 fi 8461 supports_anon_versioning=no 8462 case `$LD -v 2>&1` in 8463 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8464 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8465 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8466 *\ 2.11.*) ;; # other 2.11 versions 8467 *) supports_anon_versioning=yes ;; 8468 esac 8469 8470 # See if GNU ld supports shared libraries. 8471 case $host_os in 8472 aix[3-9]*) 8473 # On AIX/PPC, the GNU linker is very broken 8474 if test "$host_cpu" != ia64; then 8475 ld_shlibs=no 8476 cat <<_LT_EOF 1>&2 8477 8478*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8479*** to be unable to reliably create shared libraries on AIX. 8480*** Therefore, libtool is disabling shared libraries support. If you 8481*** really care for shared libraries, you may want to modify your PATH 8482*** so that a non-GNU linker is found, and then restart. 8483 8484_LT_EOF 8485 fi 8486 ;; 8487 8488 amigaos*) 8489 case $host_cpu in 8490 powerpc) 8491 # see comment about AmigaOS4 .so support 8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8493 archive_expsym_cmds='' 8494 ;; 8495 m68k) 8496 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)' 8497 hardcode_libdir_flag_spec='-L$libdir' 8498 hardcode_minus_L=yes 8499 ;; 8500 esac 8501 ;; 8502 8503 beos*) 8504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8505 allow_undefined_flag=unsupported 8506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8507 # support --undefined. This deserves some investigation. FIXME 8508 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8509 else 8510 ld_shlibs=no 8511 fi 8512 ;; 8513 8514 cygwin* | mingw* | pw32* | cegcc*) 8515 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8516 # as there is no search path for DLLs. 8517 hardcode_libdir_flag_spec='-L$libdir' 8518 allow_undefined_flag=unsupported 8519 always_export_symbols=no 8520 enable_shared_with_static_runtimes=yes 8521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8522 8523 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8525 # If the export-symbols file already is a .def file (1st line 8526 # is EXPORTS), use it as is; otherwise, prepend... 8527 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8528 cp $export_symbols $output_objdir/$soname.def; 8529 else 8530 echo EXPORTS > $output_objdir/$soname.def; 8531 cat $export_symbols >> $output_objdir/$soname.def; 8532 fi~ 8533 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8534 else 8535 ld_shlibs=no 8536 fi 8537 ;; 8538 8539 interix[3-9]*) 8540 hardcode_direct=no 8541 hardcode_shlibpath_var=no 8542 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8543 export_dynamic_flag_spec='${wl}-E' 8544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8545 # Instead, shared libraries are loaded at an image base (0x10000000 by 8546 # default) and relocated if they conflict, which is a slow very memory 8547 # consuming and fragmenting process. To avoid this, we pick a random, 8548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8549 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8551 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' 8552 ;; 8553 8554 gnu* | linux* | tpf* | k*bsd*-gnu) 8555 tmp_diet=no 8556 if test "$host_os" = linux-dietlibc; then 8557 case $cc_basename in 8558 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8559 esac 8560 fi 8561 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8562 && test "$tmp_diet" = no 8563 then 8564 tmp_addflag= 8565 tmp_sharedflag='-shared' 8566 case $cc_basename,$host_cpu in 8567 pgcc*) # Portland Group C compiler 8568 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' 8569 tmp_addflag=' $pic_flag' 8570 ;; 8571 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8572 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' 8573 tmp_addflag=' $pic_flag -Mnomain' ;; 8574 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8575 tmp_addflag=' -i_dynamic' ;; 8576 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8577 tmp_addflag=' -i_dynamic -nofor_main' ;; 8578 ifc* | ifort*) # Intel Fortran compiler 8579 tmp_addflag=' -nofor_main' ;; 8580 lf95*) # Lahey Fortran 8.1 8581 whole_archive_flag_spec= 8582 tmp_sharedflag='--shared' ;; 8583 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8584 tmp_sharedflag='-qmkshrobj' 8585 tmp_addflag= ;; 8586 esac 8587 case `$CC -V 2>&1 | sed 5q` in 8588 *Sun\ C*) # Sun C 5.9 8589 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' 8590 compiler_needs_object=yes 8591 tmp_sharedflag='-G' ;; 8592 *Sun\ F*) # Sun Fortran 8.3 8593 tmp_sharedflag='-G' ;; 8594 esac 8595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8596 8597 if test "x$supports_anon_versioning" = xyes; then 8598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8600 echo "local: *; };" >> $output_objdir/$libname.ver~ 8601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8602 fi 8603 8604 case $cc_basename in 8605 xlf*) 8606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8608 hardcode_libdir_flag_spec= 8609 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8611 if test "x$supports_anon_versioning" = xyes; then 8612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8614 echo "local: *; };" >> $output_objdir/$libname.ver~ 8615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8616 fi 8617 ;; 8618 esac 8619 else 8620 ld_shlibs=no 8621 fi 8622 ;; 8623 8624 netbsd*) 8625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8627 wlarc= 8628 else 8629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8631 fi 8632 ;; 8633 8634 solaris*) 8635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8636 ld_shlibs=no 8637 cat <<_LT_EOF 1>&2 8638 8639*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8640*** create shared libraries on Solaris systems. Therefore, libtool 8641*** is disabling shared libraries support. We urge you to upgrade GNU 8642*** binutils to release 2.9.1 or newer. Another option is to modify 8643*** your PATH or compiler configuration so that the native linker is 8644*** used, and then restart. 8645 8646_LT_EOF 8647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8650 else 8651 ld_shlibs=no 8652 fi 8653 ;; 8654 8655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8656 case `$LD -v 2>&1` in 8657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8658 ld_shlibs=no 8659 cat <<_LT_EOF 1>&2 8660 8661*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8662*** reliably create shared libraries on SCO systems. Therefore, libtool 8663*** is disabling shared libraries support. We urge you to upgrade GNU 8664*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8665*** your PATH or compiler configuration so that the native linker is 8666*** used, and then restart. 8667 8668_LT_EOF 8669 ;; 8670 *) 8671 # For security reasons, it is highly recommended that you always 8672 # use absolute paths for naming shared libraries, and exclude the 8673 # DT_RUNPATH tag from executables and libraries. But doing so 8674 # requires that you compile everything twice, which is a pain. 8675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8679 else 8680 ld_shlibs=no 8681 fi 8682 ;; 8683 esac 8684 ;; 8685 8686 sunos4*) 8687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8688 wlarc= 8689 hardcode_direct=yes 8690 hardcode_shlibpath_var=no 8691 ;; 8692 8693 *) 8694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8697 else 8698 ld_shlibs=no 8699 fi 8700 ;; 8701 esac 8702 8703 if test "$ld_shlibs" = no; then 8704 runpath_var= 8705 hardcode_libdir_flag_spec= 8706 export_dynamic_flag_spec= 8707 whole_archive_flag_spec= 8708 fi 8709 else 8710 # PORTME fill in a description of your system's linker (not GNU ld) 8711 case $host_os in 8712 aix3*) 8713 allow_undefined_flag=unsupported 8714 always_export_symbols=yes 8715 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' 8716 # Note: this linker hardcodes the directories in LIBPATH if there 8717 # are no directories specified by -L. 8718 hardcode_minus_L=yes 8719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8720 # Neither direct hardcoding nor static linking is supported with a 8721 # broken collect2. 8722 hardcode_direct=unsupported 8723 fi 8724 ;; 8725 8726 aix[4-9]*) 8727 if test "$host_cpu" = ia64; then 8728 # On IA64, the linker does run time linking by default, so we don't 8729 # have to do anything special. 8730 aix_use_runtimelinking=no 8731 exp_sym_flag='-Bexport' 8732 no_entry_flag="" 8733 else 8734 # If we're using GNU nm, then we don't want the "-C" option. 8735 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8736 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8737 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' 8738 else 8739 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' 8740 fi 8741 aix_use_runtimelinking=no 8742 8743 # Test if we are trying to use run time linking or normal 8744 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8745 # need to do runtime linking. 8746 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8747 for ld_flag in $LDFLAGS; do 8748 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8749 aix_use_runtimelinking=yes 8750 break 8751 fi 8752 done 8753 ;; 8754 esac 8755 8756 exp_sym_flag='-bexport' 8757 no_entry_flag='-bnoentry' 8758 fi 8759 8760 # When large executables or shared objects are built, AIX ld can 8761 # have problems creating the table of contents. If linking a library 8762 # or program results in "error TOC overflow" add -mminimal-toc to 8763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8765 8766 archive_cmds='' 8767 hardcode_direct=yes 8768 hardcode_direct_absolute=yes 8769 hardcode_libdir_separator=':' 8770 link_all_deplibs=yes 8771 file_list_spec='${wl}-f,' 8772 8773 if test "$GCC" = yes; then 8774 case $host_os in aix4.[012]|aix4.[012].*) 8775 # We only want to do this on AIX 4.2 and lower, the check 8776 # below for broken collect2 doesn't work under 4.3+ 8777 collect2name=`${CC} -print-prog-name=collect2` 8778 if test -f "$collect2name" && 8779 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8780 then 8781 # We have reworked collect2 8782 : 8783 else 8784 # We have old collect2 8785 hardcode_direct=unsupported 8786 # It fails to find uninstalled libraries when the uninstalled 8787 # path is not listed in the libpath. Setting hardcode_minus_L 8788 # to unsupported forces relinking 8789 hardcode_minus_L=yes 8790 hardcode_libdir_flag_spec='-L$libdir' 8791 hardcode_libdir_separator= 8792 fi 8793 ;; 8794 esac 8795 shared_flag='-shared' 8796 if test "$aix_use_runtimelinking" = yes; then 8797 shared_flag="$shared_flag "'${wl}-G' 8798 fi 8799 else 8800 # not using gcc 8801 if test "$host_cpu" = ia64; then 8802 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8803 # chokes on -Wl,-G. The following line is correct: 8804 shared_flag='-G' 8805 else 8806 if test "$aix_use_runtimelinking" = yes; then 8807 shared_flag='${wl}-G' 8808 else 8809 shared_flag='${wl}-bM:SRE' 8810 fi 8811 fi 8812 fi 8813 8814 export_dynamic_flag_spec='${wl}-bexpall' 8815 # It seems that -bexpall does not export symbols beginning with 8816 # underscore (_), so it is better to generate a list of symbols to export. 8817 always_export_symbols=yes 8818 if test "$aix_use_runtimelinking" = yes; then 8819 # Warning - without using the other runtime loading flags (-brtl), 8820 # -berok will link without error, but may produce a broken library. 8821 allow_undefined_flag='-berok' 8822 # Determine the default libpath from the value encoded in an 8823 # empty executable. 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826 8827int 8828main () 8829{ 8830 8831 ; 8832 return 0; 8833} 8834_ACEOF 8835if ac_fn_c_try_link "$LINENO"; then : 8836 8837lt_aix_libpath_sed=' 8838 /Import File Strings/,/^$/ { 8839 /^0/ { 8840 s/^0 *\(.*\)$/\1/ 8841 p 8842 } 8843 }' 8844aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8845# Check for a 64-bit object if we didn't find anything. 8846if test -z "$aix_libpath"; then 8847 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8848fi 8849fi 8850rm -f core conftest.err conftest.$ac_objext \ 8851 conftest$ac_exeext conftest.$ac_ext 8852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8853 8854 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8855 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" 8856 else 8857 if test "$host_cpu" = ia64; then 8858 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8859 allow_undefined_flag="-z nodefs" 8860 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" 8861 else 8862 # Determine the default libpath from the value encoded in an 8863 # empty executable. 8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8865/* end confdefs.h. */ 8866 8867int 8868main () 8869{ 8870 8871 ; 8872 return 0; 8873} 8874_ACEOF 8875if ac_fn_c_try_link "$LINENO"; then : 8876 8877lt_aix_libpath_sed=' 8878 /Import File Strings/,/^$/ { 8879 /^0/ { 8880 s/^0 *\(.*\)$/\1/ 8881 p 8882 } 8883 }' 8884aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8885# Check for a 64-bit object if we didn't find anything. 8886if test -z "$aix_libpath"; then 8887 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8888fi 8889fi 8890rm -f core conftest.err conftest.$ac_objext \ 8891 conftest$ac_exeext conftest.$ac_ext 8892if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8893 8894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8895 # Warning - without using the other run time loading flags, 8896 # -berok will link without error, but may produce a broken library. 8897 no_undefined_flag=' ${wl}-bernotok' 8898 allow_undefined_flag=' ${wl}-berok' 8899 # Exported symbols can be pulled into shared objects from archives 8900 whole_archive_flag_spec='$convenience' 8901 archive_cmds_need_lc=yes 8902 # This is similar to how AIX traditionally builds its shared libraries. 8903 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' 8904 fi 8905 fi 8906 ;; 8907 8908 amigaos*) 8909 case $host_cpu in 8910 powerpc) 8911 # see comment about AmigaOS4 .so support 8912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8913 archive_expsym_cmds='' 8914 ;; 8915 m68k) 8916 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)' 8917 hardcode_libdir_flag_spec='-L$libdir' 8918 hardcode_minus_L=yes 8919 ;; 8920 esac 8921 ;; 8922 8923 bsdi[45]*) 8924 export_dynamic_flag_spec=-rdynamic 8925 ;; 8926 8927 cygwin* | mingw* | pw32* | cegcc*) 8928 # When not using gcc, we currently assume that we are using 8929 # Microsoft Visual C++. 8930 # hardcode_libdir_flag_spec is actually meaningless, as there is 8931 # no search path for DLLs. 8932 hardcode_libdir_flag_spec=' ' 8933 allow_undefined_flag=unsupported 8934 # Tell ltmain to make .lib files, not .a files. 8935 libext=lib 8936 # Tell ltmain to make .dll files, not .so files. 8937 shrext_cmds=".dll" 8938 # FIXME: Setting linknames here is a bad hack. 8939 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8940 # The linker will automatically build a .lib file if we build a DLL. 8941 old_archive_from_new_cmds='true' 8942 # FIXME: Should let the user specify the lib program. 8943 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8944 fix_srcfile_path='`cygpath -w "$srcfile"`' 8945 enable_shared_with_static_runtimes=yes 8946 ;; 8947 8948 darwin* | rhapsody*) 8949 8950 8951 archive_cmds_need_lc=no 8952 hardcode_direct=no 8953 hardcode_automatic=yes 8954 hardcode_shlibpath_var=unsupported 8955 whole_archive_flag_spec='' 8956 link_all_deplibs=yes 8957 allow_undefined_flag="$_lt_dar_allow_undefined" 8958 case $cc_basename in 8959 ifort*) _lt_dar_can_shared=yes ;; 8960 *) _lt_dar_can_shared=$GCC ;; 8961 esac 8962 if test "$_lt_dar_can_shared" = "yes"; then 8963 output_verbose_link_cmd=echo 8964 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8965 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8966 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}" 8967 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}" 8968 8969 else 8970 ld_shlibs=no 8971 fi 8972 8973 ;; 8974 8975 dgux*) 8976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8977 hardcode_libdir_flag_spec='-L$libdir' 8978 hardcode_shlibpath_var=no 8979 ;; 8980 8981 freebsd1*) 8982 ld_shlibs=no 8983 ;; 8984 8985 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8986 # support. Future versions do this automatically, but an explicit c++rt0.o 8987 # does not break anything, and helps significantly (at the cost of a little 8988 # extra space). 8989 freebsd2.2*) 8990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8991 hardcode_libdir_flag_spec='-R$libdir' 8992 hardcode_direct=yes 8993 hardcode_shlibpath_var=no 8994 ;; 8995 8996 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8997 freebsd2*) 8998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8999 hardcode_direct=yes 9000 hardcode_minus_L=yes 9001 hardcode_shlibpath_var=no 9002 ;; 9003 9004 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9005 freebsd* | dragonfly*) 9006 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9007 hardcode_libdir_flag_spec='-R$libdir' 9008 hardcode_direct=yes 9009 hardcode_shlibpath_var=no 9010 ;; 9011 9012 hpux9*) 9013 if test "$GCC" = yes; then 9014 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' 9015 else 9016 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' 9017 fi 9018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9019 hardcode_libdir_separator=: 9020 hardcode_direct=yes 9021 9022 # hardcode_minus_L: Not really in the search PATH, 9023 # but as the default location of the library. 9024 hardcode_minus_L=yes 9025 export_dynamic_flag_spec='${wl}-E' 9026 ;; 9027 9028 hpux10*) 9029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9030 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9031 else 9032 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9033 fi 9034 if test "$with_gnu_ld" = no; then 9035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9036 hardcode_libdir_flag_spec_ld='+b $libdir' 9037 hardcode_libdir_separator=: 9038 hardcode_direct=yes 9039 hardcode_direct_absolute=yes 9040 export_dynamic_flag_spec='${wl}-E' 9041 # hardcode_minus_L: Not really in the search PATH, 9042 # but as the default location of the library. 9043 hardcode_minus_L=yes 9044 fi 9045 ;; 9046 9047 hpux11*) 9048 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9049 case $host_cpu in 9050 hppa*64*) 9051 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9052 ;; 9053 ia64*) 9054 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9055 ;; 9056 *) 9057 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9058 ;; 9059 esac 9060 else 9061 case $host_cpu in 9062 hppa*64*) 9063 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9064 ;; 9065 ia64*) 9066 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9067 ;; 9068 *) 9069 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9070 ;; 9071 esac 9072 fi 9073 if test "$with_gnu_ld" = no; then 9074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9075 hardcode_libdir_separator=: 9076 9077 case $host_cpu in 9078 hppa*64*|ia64*) 9079 hardcode_direct=no 9080 hardcode_shlibpath_var=no 9081 ;; 9082 *) 9083 hardcode_direct=yes 9084 hardcode_direct_absolute=yes 9085 export_dynamic_flag_spec='${wl}-E' 9086 9087 # hardcode_minus_L: Not really in the search PATH, 9088 # but as the default location of the library. 9089 hardcode_minus_L=yes 9090 ;; 9091 esac 9092 fi 9093 ;; 9094 9095 irix5* | irix6* | nonstopux*) 9096 if test "$GCC" = yes; then 9097 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' 9098 # Try to use the -exported_symbol ld option, if it does not 9099 # work, assume that -exports_file does not work either and 9100 # implicitly export all symbols. 9101 save_LDFLAGS="$LDFLAGS" 9102 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9104/* end confdefs.h. */ 9105int foo(void) {} 9106_ACEOF 9107if ac_fn_c_try_link "$LINENO"; then : 9108 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' 9109 9110fi 9111rm -f core conftest.err conftest.$ac_objext \ 9112 conftest$ac_exeext conftest.$ac_ext 9113 LDFLAGS="$save_LDFLAGS" 9114 else 9115 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' 9116 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' 9117 fi 9118 archive_cmds_need_lc='no' 9119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9120 hardcode_libdir_separator=: 9121 inherit_rpath=yes 9122 link_all_deplibs=yes 9123 ;; 9124 9125 netbsd*) 9126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9128 else 9129 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9130 fi 9131 hardcode_libdir_flag_spec='-R$libdir' 9132 hardcode_direct=yes 9133 hardcode_shlibpath_var=no 9134 ;; 9135 9136 newsos6) 9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9138 hardcode_direct=yes 9139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9140 hardcode_libdir_separator=: 9141 hardcode_shlibpath_var=no 9142 ;; 9143 9144 *nto* | *qnx*) 9145 ;; 9146 9147 openbsd*) 9148 if test -f /usr/libexec/ld.so; then 9149 hardcode_direct=yes 9150 hardcode_shlibpath_var=no 9151 hardcode_direct_absolute=yes 9152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9154 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9156 export_dynamic_flag_spec='${wl}-E' 9157 else 9158 case $host_os in 9159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9161 hardcode_libdir_flag_spec='-R$libdir' 9162 ;; 9163 *) 9164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9166 ;; 9167 esac 9168 fi 9169 else 9170 ld_shlibs=no 9171 fi 9172 ;; 9173 9174 os2*) 9175 hardcode_libdir_flag_spec='-L$libdir' 9176 hardcode_minus_L=yes 9177 allow_undefined_flag=unsupported 9178 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' 9179 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9180 ;; 9181 9182 osf3*) 9183 if test "$GCC" = yes; then 9184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9185 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' 9186 else 9187 allow_undefined_flag=' -expect_unresolved \*' 9188 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' 9189 fi 9190 archive_cmds_need_lc='no' 9191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9192 hardcode_libdir_separator=: 9193 ;; 9194 9195 osf4* | osf5*) # as osf3* with the addition of -msym flag 9196 if test "$GCC" = yes; then 9197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9198 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' 9199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9200 else 9201 allow_undefined_flag=' -expect_unresolved \*' 9202 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' 9203 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~ 9204 $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' 9205 9206 # Both c and cxx compiler support -rpath directly 9207 hardcode_libdir_flag_spec='-rpath $libdir' 9208 fi 9209 archive_cmds_need_lc='no' 9210 hardcode_libdir_separator=: 9211 ;; 9212 9213 solaris*) 9214 no_undefined_flag=' -z defs' 9215 if test "$GCC" = yes; then 9216 wlarc='${wl}' 9217 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9219 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9220 else 9221 case `$CC -V 2>&1` in 9222 *"Compilers 5.0"*) 9223 wlarc='' 9224 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9227 ;; 9228 *) 9229 wlarc='${wl}' 9230 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9232 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9233 ;; 9234 esac 9235 fi 9236 hardcode_libdir_flag_spec='-R$libdir' 9237 hardcode_shlibpath_var=no 9238 case $host_os in 9239 solaris2.[0-5] | solaris2.[0-5].*) ;; 9240 *) 9241 # The compiler driver will combine and reorder linker options, 9242 # but understands `-z linker_flag'. GCC discards it without `$wl', 9243 # but is careful enough not to reorder. 9244 # Supported since Solaris 2.6 (maybe 2.5.1?) 9245 if test "$GCC" = yes; then 9246 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9247 else 9248 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9249 fi 9250 ;; 9251 esac 9252 link_all_deplibs=yes 9253 ;; 9254 9255 sunos4*) 9256 if test "x$host_vendor" = xsequent; then 9257 # Use $CC to link under sequent, because it throws in some extra .o 9258 # files that make .init and .fini sections work. 9259 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9260 else 9261 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9262 fi 9263 hardcode_libdir_flag_spec='-L$libdir' 9264 hardcode_direct=yes 9265 hardcode_minus_L=yes 9266 hardcode_shlibpath_var=no 9267 ;; 9268 9269 sysv4) 9270 case $host_vendor in 9271 sni) 9272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9273 hardcode_direct=yes # is this really true??? 9274 ;; 9275 siemens) 9276 ## LD is ld it makes a PLAMLIB 9277 ## CC just makes a GrossModule. 9278 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9279 reload_cmds='$CC -r -o $output$reload_objs' 9280 hardcode_direct=no 9281 ;; 9282 motorola) 9283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9284 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9285 ;; 9286 esac 9287 runpath_var='LD_RUN_PATH' 9288 hardcode_shlibpath_var=no 9289 ;; 9290 9291 sysv4.3*) 9292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9293 hardcode_shlibpath_var=no 9294 export_dynamic_flag_spec='-Bexport' 9295 ;; 9296 9297 sysv4*MP*) 9298 if test -d /usr/nec; then 9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9300 hardcode_shlibpath_var=no 9301 runpath_var=LD_RUN_PATH 9302 hardcode_runpath_var=yes 9303 ld_shlibs=yes 9304 fi 9305 ;; 9306 9307 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9308 no_undefined_flag='${wl}-z,text' 9309 archive_cmds_need_lc=no 9310 hardcode_shlibpath_var=no 9311 runpath_var='LD_RUN_PATH' 9312 9313 if test "$GCC" = yes; then 9314 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9315 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9316 else 9317 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9318 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9319 fi 9320 ;; 9321 9322 sysv5* | sco3.2v5* | sco5v6*) 9323 # Note: We can NOT use -z defs as we might desire, because we do not 9324 # link with -lc, and that would cause any symbols used from libc to 9325 # always be unresolved, which means just about no library would 9326 # ever link correctly. If we're not using GNU ld we use -z text 9327 # though, which does catch some bad symbols but isn't as heavy-handed 9328 # as -z defs. 9329 no_undefined_flag='${wl}-z,text' 9330 allow_undefined_flag='${wl}-z,nodefs' 9331 archive_cmds_need_lc=no 9332 hardcode_shlibpath_var=no 9333 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9334 hardcode_libdir_separator=':' 9335 link_all_deplibs=yes 9336 export_dynamic_flag_spec='${wl}-Bexport' 9337 runpath_var='LD_RUN_PATH' 9338 9339 if test "$GCC" = yes; then 9340 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9341 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9342 else 9343 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9344 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9345 fi 9346 ;; 9347 9348 uts4*) 9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9350 hardcode_libdir_flag_spec='-L$libdir' 9351 hardcode_shlibpath_var=no 9352 ;; 9353 9354 *) 9355 ld_shlibs=no 9356 ;; 9357 esac 9358 9359 if test x$host_vendor = xsni; then 9360 case $host in 9361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9362 export_dynamic_flag_spec='${wl}-Blargedynsym' 9363 ;; 9364 esac 9365 fi 9366 fi 9367 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9369$as_echo "$ld_shlibs" >&6; } 9370test "$ld_shlibs" = no && can_build_shared=no 9371 9372with_gnu_ld=$with_gnu_ld 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388# 9389# Do we need to explicitly link libc? 9390# 9391case "x$archive_cmds_need_lc" in 9392x|xyes) 9393 # Assume -lc should be added 9394 archive_cmds_need_lc=yes 9395 9396 if test "$enable_shared" = yes && test "$GCC" = yes; then 9397 case $archive_cmds in 9398 *'~'*) 9399 # FIXME: we may have to deal with multi-command sequences. 9400 ;; 9401 '$CC '*) 9402 # Test whether the compiler implicitly links with -lc since on some 9403 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9404 # to ld, don't add -lc before -lgcc. 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9406$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9407 $RM conftest* 9408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9409 9410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9411 (eval $ac_compile) 2>&5 9412 ac_status=$? 9413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9414 test $ac_status = 0; } 2>conftest.err; then 9415 soname=conftest 9416 lib=conftest 9417 libobjs=conftest.$ac_objext 9418 deplibs= 9419 wl=$lt_prog_compiler_wl 9420 pic_flag=$lt_prog_compiler_pic 9421 compiler_flags=-v 9422 linker_flags=-v 9423 verstring= 9424 output_objdir=. 9425 libname=conftest 9426 lt_save_allow_undefined_flag=$allow_undefined_flag 9427 allow_undefined_flag= 9428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9429 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9430 ac_status=$? 9431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9432 test $ac_status = 0; } 9433 then 9434 archive_cmds_need_lc=no 9435 else 9436 archive_cmds_need_lc=yes 9437 fi 9438 allow_undefined_flag=$lt_save_allow_undefined_flag 9439 else 9440 cat conftest.err 1>&5 9441 fi 9442 $RM conftest* 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9444$as_echo "$archive_cmds_need_lc" >&6; } 9445 ;; 9446 esac 9447 fi 9448 ;; 9449esac 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9608$as_echo_n "checking dynamic linker characteristics... " >&6; } 9609 9610if test "$GCC" = yes; then 9611 case $host_os in 9612 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9613 *) lt_awk_arg="/^libraries:/" ;; 9614 esac 9615 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9616 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9617 # if the path contains ";" then we assume it to be the separator 9618 # otherwise default to the standard path separator (i.e. ":") - it is 9619 # assumed that no part of a normal pathname contains ";" but that should 9620 # okay in the real world where ";" in dirpaths is itself problematic. 9621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9622 else 9623 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9624 fi 9625 # Ok, now we have the path, separated by spaces, we can step through it 9626 # and add multilib dir if necessary. 9627 lt_tmp_lt_search_path_spec= 9628 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9629 for lt_sys_path in $lt_search_path_spec; do 9630 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9631 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9632 else 9633 test -d "$lt_sys_path" && \ 9634 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9635 fi 9636 done 9637 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9638BEGIN {RS=" "; FS="/|\n";} { 9639 lt_foo=""; 9640 lt_count=0; 9641 for (lt_i = NF; lt_i > 0; lt_i--) { 9642 if ($lt_i != "" && $lt_i != ".") { 9643 if ($lt_i == "..") { 9644 lt_count++; 9645 } else { 9646 if (lt_count == 0) { 9647 lt_foo="/" $lt_i lt_foo; 9648 } else { 9649 lt_count--; 9650 } 9651 } 9652 } 9653 } 9654 if (lt_foo != "") { lt_freq[lt_foo]++; } 9655 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9656}'` 9657 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9658else 9659 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9660fi 9661library_names_spec= 9662libname_spec='lib$name' 9663soname_spec= 9664shrext_cmds=".so" 9665postinstall_cmds= 9666postuninstall_cmds= 9667finish_cmds= 9668finish_eval= 9669shlibpath_var= 9670shlibpath_overrides_runpath=unknown 9671version_type=none 9672dynamic_linker="$host_os ld.so" 9673sys_lib_dlsearch_path_spec="/lib /usr/lib" 9674need_lib_prefix=unknown 9675hardcode_into_libs=no 9676 9677# when you set need_version to no, make sure it does not cause -set_version 9678# flags to be left without arguments 9679need_version=unknown 9680 9681case $host_os in 9682aix3*) 9683 version_type=linux 9684 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9685 shlibpath_var=LIBPATH 9686 9687 # AIX 3 has no versioning support, so we append a major version to the name. 9688 soname_spec='${libname}${release}${shared_ext}$major' 9689 ;; 9690 9691aix[4-9]*) 9692 version_type=linux 9693 need_lib_prefix=no 9694 need_version=no 9695 hardcode_into_libs=yes 9696 if test "$host_cpu" = ia64; then 9697 # AIX 5 supports IA64 9698 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9699 shlibpath_var=LD_LIBRARY_PATH 9700 else 9701 # With GCC up to 2.95.x, collect2 would create an import file 9702 # for dependence libraries. The import file would start with 9703 # the line `#! .'. This would cause the generated library to 9704 # depend on `.', always an invalid library. This was fixed in 9705 # development snapshots of GCC prior to 3.0. 9706 case $host_os in 9707 aix4 | aix4.[01] | aix4.[01].*) 9708 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9709 echo ' yes ' 9710 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9711 : 9712 else 9713 can_build_shared=no 9714 fi 9715 ;; 9716 esac 9717 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9718 # soname into executable. Probably we can add versioning support to 9719 # collect2, so additional links can be useful in future. 9720 if test "$aix_use_runtimelinking" = yes; then 9721 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9722 # instead of lib<name>.a to let people know that these are not 9723 # typical AIX shared libraries. 9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9725 else 9726 # We preserve .a as extension for shared libraries through AIX4.2 9727 # and later when we are not doing run time linking. 9728 library_names_spec='${libname}${release}.a $libname.a' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 fi 9731 shlibpath_var=LIBPATH 9732 fi 9733 ;; 9734 9735amigaos*) 9736 case $host_cpu in 9737 powerpc) 9738 # Since July 2007 AmigaOS4 officially supports .so libraries. 9739 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9741 ;; 9742 m68k) 9743 library_names_spec='$libname.ixlibrary $libname.a' 9744 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9745 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' 9746 ;; 9747 esac 9748 ;; 9749 9750beos*) 9751 library_names_spec='${libname}${shared_ext}' 9752 dynamic_linker="$host_os ld.so" 9753 shlibpath_var=LIBRARY_PATH 9754 ;; 9755 9756bsdi[45]*) 9757 version_type=linux 9758 need_version=no 9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9760 soname_spec='${libname}${release}${shared_ext}$major' 9761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9762 shlibpath_var=LD_LIBRARY_PATH 9763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9765 # the default ld.so.conf also contains /usr/contrib/lib and 9766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9767 # libtool to hard-code these into programs 9768 ;; 9769 9770cygwin* | mingw* | pw32* | cegcc*) 9771 version_type=windows 9772 shrext_cmds=".dll" 9773 need_version=no 9774 need_lib_prefix=no 9775 9776 case $GCC,$host_os in 9777 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9778 library_names_spec='$libname.dll.a' 9779 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9780 postinstall_cmds='base_file=`basename \${file}`~ 9781 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9782 dldir=$destdir/`dirname \$dlpath`~ 9783 test -d \$dldir || mkdir -p \$dldir~ 9784 $install_prog $dir/$dlname \$dldir/$dlname~ 9785 chmod a+x \$dldir/$dlname~ 9786 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9787 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9788 fi' 9789 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9790 dlpath=$dir/\$dldll~ 9791 $RM \$dlpath' 9792 shlibpath_overrides_runpath=yes 9793 9794 case $host_os in 9795 cygwin*) 9796 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9797 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9798 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9799 ;; 9800 mingw* | cegcc*) 9801 # MinGW DLLs use traditional 'lib' prefix 9802 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9803 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9804 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9805 # It is most probably a Windows format PATH printed by 9806 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9807 # path with ; separators, and with drive letters. We can handle the 9808 # drive letters (cygwin fileutils understands them), so leave them, 9809 # especially as we might pass files found there to a mingw objdump, 9810 # which wouldn't understand a cygwinified path. Ahh. 9811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9812 else 9813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9814 fi 9815 ;; 9816 pw32*) 9817 # pw32 DLLs use 'pw' prefix rather than 'lib' 9818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9819 ;; 9820 esac 9821 ;; 9822 9823 *) 9824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9825 ;; 9826 esac 9827 dynamic_linker='Win32 ld.exe' 9828 # FIXME: first we should search . and the directory the executable is in 9829 shlibpath_var=PATH 9830 ;; 9831 9832darwin* | rhapsody*) 9833 dynamic_linker="$host_os dyld" 9834 version_type=darwin 9835 need_lib_prefix=no 9836 need_version=no 9837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9838 soname_spec='${libname}${release}${major}$shared_ext' 9839 shlibpath_overrides_runpath=yes 9840 shlibpath_var=DYLD_LIBRARY_PATH 9841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9842 9843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9845 ;; 9846 9847dgux*) 9848 version_type=linux 9849 need_lib_prefix=no 9850 need_version=no 9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9852 soname_spec='${libname}${release}${shared_ext}$major' 9853 shlibpath_var=LD_LIBRARY_PATH 9854 ;; 9855 9856freebsd1*) 9857 dynamic_linker=no 9858 ;; 9859 9860freebsd* | dragonfly*) 9861 # DragonFly does not have aout. When/if they implement a new 9862 # versioning mechanism, adjust this. 9863 if test -x /usr/bin/objformat; then 9864 objformat=`/usr/bin/objformat` 9865 else 9866 case $host_os in 9867 freebsd[123]*) objformat=aout ;; 9868 *) objformat=elf ;; 9869 esac 9870 fi 9871 version_type=freebsd-$objformat 9872 case $version_type in 9873 freebsd-elf*) 9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9875 need_version=no 9876 need_lib_prefix=no 9877 ;; 9878 freebsd-*) 9879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9880 need_version=yes 9881 ;; 9882 esac 9883 shlibpath_var=LD_LIBRARY_PATH 9884 case $host_os in 9885 freebsd2*) 9886 shlibpath_overrides_runpath=yes 9887 ;; 9888 freebsd3.[01]* | freebsdelf3.[01]*) 9889 shlibpath_overrides_runpath=yes 9890 hardcode_into_libs=yes 9891 ;; 9892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9894 shlibpath_overrides_runpath=no 9895 hardcode_into_libs=yes 9896 ;; 9897 *) # from 4.6 on, and DragonFly 9898 shlibpath_overrides_runpath=yes 9899 hardcode_into_libs=yes 9900 ;; 9901 esac 9902 ;; 9903 9904gnu*) 9905 version_type=linux 9906 need_lib_prefix=no 9907 need_version=no 9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9909 soname_spec='${libname}${release}${shared_ext}$major' 9910 shlibpath_var=LD_LIBRARY_PATH 9911 hardcode_into_libs=yes 9912 ;; 9913 9914hpux9* | hpux10* | hpux11*) 9915 # Give a soname corresponding to the major version so that dld.sl refuses to 9916 # link against other versions. 9917 version_type=sunos 9918 need_lib_prefix=no 9919 need_version=no 9920 case $host_cpu in 9921 ia64*) 9922 shrext_cmds='.so' 9923 hardcode_into_libs=yes 9924 dynamic_linker="$host_os dld.so" 9925 shlibpath_var=LD_LIBRARY_PATH 9926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9928 soname_spec='${libname}${release}${shared_ext}$major' 9929 if test "X$HPUX_IA64_MODE" = X32; then 9930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9931 else 9932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9933 fi 9934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9935 ;; 9936 hppa*64*) 9937 shrext_cmds='.sl' 9938 hardcode_into_libs=yes 9939 dynamic_linker="$host_os dld.sl" 9940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9943 soname_spec='${libname}${release}${shared_ext}$major' 9944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9946 ;; 9947 *) 9948 shrext_cmds='.sl' 9949 dynamic_linker="$host_os dld.sl" 9950 shlibpath_var=SHLIB_PATH 9951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9953 soname_spec='${libname}${release}${shared_ext}$major' 9954 ;; 9955 esac 9956 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9957 postinstall_cmds='chmod 555 $lib' 9958 ;; 9959 9960interix[3-9]*) 9961 version_type=linux 9962 need_lib_prefix=no 9963 need_version=no 9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9965 soname_spec='${libname}${release}${shared_ext}$major' 9966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9967 shlibpath_var=LD_LIBRARY_PATH 9968 shlibpath_overrides_runpath=no 9969 hardcode_into_libs=yes 9970 ;; 9971 9972irix5* | irix6* | nonstopux*) 9973 case $host_os in 9974 nonstopux*) version_type=nonstopux ;; 9975 *) 9976 if test "$lt_cv_prog_gnu_ld" = yes; then 9977 version_type=linux 9978 else 9979 version_type=irix 9980 fi ;; 9981 esac 9982 need_lib_prefix=no 9983 need_version=no 9984 soname_spec='${libname}${release}${shared_ext}$major' 9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9986 case $host_os in 9987 irix5* | nonstopux*) 9988 libsuff= shlibsuff= 9989 ;; 9990 *) 9991 case $LD in # libtool.m4 will add one of these switches to LD 9992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9993 libsuff= shlibsuff= libmagic=32-bit;; 9994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9995 libsuff=32 shlibsuff=N32 libmagic=N32;; 9996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9997 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9998 *) libsuff= shlibsuff= libmagic=never-match;; 9999 esac 10000 ;; 10001 esac 10002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10003 shlibpath_overrides_runpath=no 10004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10006 hardcode_into_libs=yes 10007 ;; 10008 10009# No shared lib support for Linux oldld, aout, or coff. 10010linux*oldld* | linux*aout* | linux*coff*) 10011 dynamic_linker=no 10012 ;; 10013 10014# This must be Linux ELF. 10015linux* | k*bsd*-gnu) 10016 version_type=linux 10017 need_lib_prefix=no 10018 need_version=no 10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10020 soname_spec='${libname}${release}${shared_ext}$major' 10021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10022 shlibpath_var=LD_LIBRARY_PATH 10023 shlibpath_overrides_runpath=no 10024 # Some binutils ld are patched to set DT_RUNPATH 10025 save_LDFLAGS=$LDFLAGS 10026 save_libdir=$libdir 10027 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10028 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031 10032int 10033main () 10034{ 10035 10036 ; 10037 return 0; 10038} 10039_ACEOF 10040if ac_fn_c_try_link "$LINENO"; then : 10041 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10042 shlibpath_overrides_runpath=yes 10043fi 10044fi 10045rm -f core conftest.err conftest.$ac_objext \ 10046 conftest$ac_exeext conftest.$ac_ext 10047 LDFLAGS=$save_LDFLAGS 10048 libdir=$save_libdir 10049 10050 # This implies no fast_install, which is unacceptable. 10051 # Some rework will be needed to allow for fast_install 10052 # before this can be enabled. 10053 hardcode_into_libs=yes 10054 10055 # Append ld.so.conf contents to the search path 10056 if test -f /etc/ld.so.conf; then 10057 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' ' '` 10058 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10059 fi 10060 10061 # We used to test for /lib/ld.so.1 and disable shared libraries on 10062 # powerpc, because MkLinux only supported shared libraries with the 10063 # GNU dynamic linker. Since this was broken with cross compilers, 10064 # most powerpc-linux boxes support dynamic linking these days and 10065 # people can always --disable-shared, the test was removed, and we 10066 # assume the GNU/Linux dynamic linker is in use. 10067 dynamic_linker='GNU/Linux ld.so' 10068 ;; 10069 10070netbsd*) 10071 version_type=sunos 10072 need_lib_prefix=no 10073 need_version=no 10074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10077 dynamic_linker='NetBSD (a.out) ld.so' 10078 else 10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10080 soname_spec='${libname}${release}${shared_ext}$major' 10081 dynamic_linker='NetBSD ld.elf_so' 10082 fi 10083 shlibpath_var=LD_LIBRARY_PATH 10084 shlibpath_overrides_runpath=yes 10085 hardcode_into_libs=yes 10086 ;; 10087 10088newsos6) 10089 version_type=linux 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10091 shlibpath_var=LD_LIBRARY_PATH 10092 shlibpath_overrides_runpath=yes 10093 ;; 10094 10095*nto* | *qnx*) 10096 version_type=qnx 10097 need_lib_prefix=no 10098 need_version=no 10099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10100 soname_spec='${libname}${release}${shared_ext}$major' 10101 shlibpath_var=LD_LIBRARY_PATH 10102 shlibpath_overrides_runpath=no 10103 hardcode_into_libs=yes 10104 dynamic_linker='ldqnx.so' 10105 ;; 10106 10107openbsd*) 10108 version_type=sunos 10109 sys_lib_dlsearch_path_spec="/usr/lib" 10110 need_lib_prefix=no 10111 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10112 case $host_os in 10113 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10114 *) need_version=no ;; 10115 esac 10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10118 shlibpath_var=LD_LIBRARY_PATH 10119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10120 case $host_os in 10121 openbsd2.[89] | openbsd2.[89].*) 10122 shlibpath_overrides_runpath=no 10123 ;; 10124 *) 10125 shlibpath_overrides_runpath=yes 10126 ;; 10127 esac 10128 else 10129 shlibpath_overrides_runpath=yes 10130 fi 10131 ;; 10132 10133os2*) 10134 libname_spec='$name' 10135 shrext_cmds=".dll" 10136 need_lib_prefix=no 10137 library_names_spec='$libname${shared_ext} $libname.a' 10138 dynamic_linker='OS/2 ld.exe' 10139 shlibpath_var=LIBPATH 10140 ;; 10141 10142osf3* | osf4* | osf5*) 10143 version_type=osf 10144 need_lib_prefix=no 10145 need_version=no 10146 soname_spec='${libname}${release}${shared_ext}$major' 10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10148 shlibpath_var=LD_LIBRARY_PATH 10149 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10150 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10151 ;; 10152 10153rdos*) 10154 dynamic_linker=no 10155 ;; 10156 10157solaris*) 10158 version_type=linux 10159 need_lib_prefix=no 10160 need_version=no 10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10162 soname_spec='${libname}${release}${shared_ext}$major' 10163 shlibpath_var=LD_LIBRARY_PATH 10164 shlibpath_overrides_runpath=yes 10165 hardcode_into_libs=yes 10166 # ldd complains unless libraries are executable 10167 postinstall_cmds='chmod +x $lib' 10168 ;; 10169 10170sunos4*) 10171 version_type=sunos 10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10173 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10174 shlibpath_var=LD_LIBRARY_PATH 10175 shlibpath_overrides_runpath=yes 10176 if test "$with_gnu_ld" = yes; then 10177 need_lib_prefix=no 10178 fi 10179 need_version=yes 10180 ;; 10181 10182sysv4 | sysv4.3*) 10183 version_type=linux 10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10185 soname_spec='${libname}${release}${shared_ext}$major' 10186 shlibpath_var=LD_LIBRARY_PATH 10187 case $host_vendor in 10188 sni) 10189 shlibpath_overrides_runpath=no 10190 need_lib_prefix=no 10191 runpath_var=LD_RUN_PATH 10192 ;; 10193 siemens) 10194 need_lib_prefix=no 10195 ;; 10196 motorola) 10197 need_lib_prefix=no 10198 need_version=no 10199 shlibpath_overrides_runpath=no 10200 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10201 ;; 10202 esac 10203 ;; 10204 10205sysv4*MP*) 10206 if test -d /usr/nec ;then 10207 version_type=linux 10208 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10209 soname_spec='$libname${shared_ext}.$major' 10210 shlibpath_var=LD_LIBRARY_PATH 10211 fi 10212 ;; 10213 10214sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10215 version_type=freebsd-elf 10216 need_lib_prefix=no 10217 need_version=no 10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10219 soname_spec='${libname}${release}${shared_ext}$major' 10220 shlibpath_var=LD_LIBRARY_PATH 10221 shlibpath_overrides_runpath=yes 10222 hardcode_into_libs=yes 10223 if test "$with_gnu_ld" = yes; then 10224 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10225 else 10226 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10227 case $host_os in 10228 sco3.2v5*) 10229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10230 ;; 10231 esac 10232 fi 10233 sys_lib_dlsearch_path_spec='/usr/lib' 10234 ;; 10235 10236tpf*) 10237 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10238 version_type=linux 10239 need_lib_prefix=no 10240 need_version=no 10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10242 shlibpath_var=LD_LIBRARY_PATH 10243 shlibpath_overrides_runpath=no 10244 hardcode_into_libs=yes 10245 ;; 10246 10247uts4*) 10248 version_type=linux 10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10250 soname_spec='${libname}${release}${shared_ext}$major' 10251 shlibpath_var=LD_LIBRARY_PATH 10252 ;; 10253 10254*) 10255 dynamic_linker=no 10256 ;; 10257esac 10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10259$as_echo "$dynamic_linker" >&6; } 10260test "$dynamic_linker" = no && can_build_shared=no 10261 10262variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10263if test "$GCC" = yes; then 10264 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10265fi 10266 10267if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10268 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10269fi 10270if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10271 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10272fi 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10361$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10362hardcode_action= 10363if test -n "$hardcode_libdir_flag_spec" || 10364 test -n "$runpath_var" || 10365 test "X$hardcode_automatic" = "Xyes" ; then 10366 10367 # We can hardcode non-existent directories. 10368 if test "$hardcode_direct" != no && 10369 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10370 # have to relink, otherwise we might link with an installed library 10371 # when we should be linking with a yet-to-be-installed one 10372 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10373 test "$hardcode_minus_L" != no; then 10374 # Linking always hardcodes the temporary library directory. 10375 hardcode_action=relink 10376 else 10377 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10378 hardcode_action=immediate 10379 fi 10380else 10381 # We cannot hardcode anything, or else we can only hardcode existing 10382 # directories. 10383 hardcode_action=unsupported 10384fi 10385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10386$as_echo "$hardcode_action" >&6; } 10387 10388if test "$hardcode_action" = relink || 10389 test "$inherit_rpath" = yes; then 10390 # Fast installation is not supported 10391 enable_fast_install=no 10392elif test "$shlibpath_overrides_runpath" = yes || 10393 test "$enable_shared" = no; then 10394 # Fast installation is not necessary 10395 enable_fast_install=needless 10396fi 10397 10398 10399 10400 10401 10402 10403 if test "x$enable_dlopen" != xyes; then 10404 enable_dlopen=unknown 10405 enable_dlopen_self=unknown 10406 enable_dlopen_self_static=unknown 10407else 10408 lt_cv_dlopen=no 10409 lt_cv_dlopen_libs= 10410 10411 case $host_os in 10412 beos*) 10413 lt_cv_dlopen="load_add_on" 10414 lt_cv_dlopen_libs= 10415 lt_cv_dlopen_self=yes 10416 ;; 10417 10418 mingw* | pw32* | cegcc*) 10419 lt_cv_dlopen="LoadLibrary" 10420 lt_cv_dlopen_libs= 10421 ;; 10422 10423 cygwin*) 10424 lt_cv_dlopen="dlopen" 10425 lt_cv_dlopen_libs= 10426 ;; 10427 10428 darwin*) 10429 # if libdl is installed we need to link against it 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10431$as_echo_n "checking for dlopen in -ldl... " >&6; } 10432if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10433 $as_echo_n "(cached) " >&6 10434else 10435 ac_check_lib_save_LIBS=$LIBS 10436LIBS="-ldl $LIBS" 10437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10438/* end confdefs.h. */ 10439 10440/* Override any GCC internal prototype to avoid an error. 10441 Use char because int might match the return type of a GCC 10442 builtin and then its argument prototype would still apply. */ 10443#ifdef __cplusplus 10444extern "C" 10445#endif 10446char dlopen (); 10447int 10448main () 10449{ 10450return dlopen (); 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO"; then : 10456 ac_cv_lib_dl_dlopen=yes 10457else 10458 ac_cv_lib_dl_dlopen=no 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462LIBS=$ac_check_lib_save_LIBS 10463fi 10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10465$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10466if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10468else 10469 10470 lt_cv_dlopen="dyld" 10471 lt_cv_dlopen_libs= 10472 lt_cv_dlopen_self=yes 10473 10474fi 10475 10476 ;; 10477 10478 *) 10479 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10480if test "x$ac_cv_func_shl_load" = x""yes; then : 10481 lt_cv_dlopen="shl_load" 10482else 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10484$as_echo_n "checking for shl_load in -ldld... " >&6; } 10485if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10486 $as_echo_n "(cached) " >&6 10487else 10488 ac_check_lib_save_LIBS=$LIBS 10489LIBS="-ldld $LIBS" 10490cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10491/* end confdefs.h. */ 10492 10493/* Override any GCC internal prototype to avoid an error. 10494 Use char because int might match the return type of a GCC 10495 builtin and then its argument prototype would still apply. */ 10496#ifdef __cplusplus 10497extern "C" 10498#endif 10499char shl_load (); 10500int 10501main () 10502{ 10503return shl_load (); 10504 ; 10505 return 0; 10506} 10507_ACEOF 10508if ac_fn_c_try_link "$LINENO"; then : 10509 ac_cv_lib_dld_shl_load=yes 10510else 10511 ac_cv_lib_dld_shl_load=no 10512fi 10513rm -f core conftest.err conftest.$ac_objext \ 10514 conftest$ac_exeext conftest.$ac_ext 10515LIBS=$ac_check_lib_save_LIBS 10516fi 10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10518$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10519if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10520 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10521else 10522 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10523if test "x$ac_cv_func_dlopen" = x""yes; then : 10524 lt_cv_dlopen="dlopen" 10525else 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10527$as_echo_n "checking for dlopen in -ldl... " >&6; } 10528if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10529 $as_echo_n "(cached) " >&6 10530else 10531 ac_check_lib_save_LIBS=$LIBS 10532LIBS="-ldl $LIBS" 10533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10534/* end confdefs.h. */ 10535 10536/* Override any GCC internal prototype to avoid an error. 10537 Use char because int might match the return type of a GCC 10538 builtin and then its argument prototype would still apply. */ 10539#ifdef __cplusplus 10540extern "C" 10541#endif 10542char dlopen (); 10543int 10544main () 10545{ 10546return dlopen (); 10547 ; 10548 return 0; 10549} 10550_ACEOF 10551if ac_fn_c_try_link "$LINENO"; then : 10552 ac_cv_lib_dl_dlopen=yes 10553else 10554 ac_cv_lib_dl_dlopen=no 10555fi 10556rm -f core conftest.err conftest.$ac_objext \ 10557 conftest$ac_exeext conftest.$ac_ext 10558LIBS=$ac_check_lib_save_LIBS 10559fi 10560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10561$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10562if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10563 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10564else 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10566$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10567if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10568 $as_echo_n "(cached) " >&6 10569else 10570 ac_check_lib_save_LIBS=$LIBS 10571LIBS="-lsvld $LIBS" 10572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10573/* end confdefs.h. */ 10574 10575/* Override any GCC internal prototype to avoid an error. 10576 Use char because int might match the return type of a GCC 10577 builtin and then its argument prototype would still apply. */ 10578#ifdef __cplusplus 10579extern "C" 10580#endif 10581char dlopen (); 10582int 10583main () 10584{ 10585return dlopen (); 10586 ; 10587 return 0; 10588} 10589_ACEOF 10590if ac_fn_c_try_link "$LINENO"; then : 10591 ac_cv_lib_svld_dlopen=yes 10592else 10593 ac_cv_lib_svld_dlopen=no 10594fi 10595rm -f core conftest.err conftest.$ac_objext \ 10596 conftest$ac_exeext conftest.$ac_ext 10597LIBS=$ac_check_lib_save_LIBS 10598fi 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10600$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10601if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10603else 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10605$as_echo_n "checking for dld_link in -ldld... " >&6; } 10606if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10607 $as_echo_n "(cached) " >&6 10608else 10609 ac_check_lib_save_LIBS=$LIBS 10610LIBS="-ldld $LIBS" 10611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10612/* end confdefs.h. */ 10613 10614/* Override any GCC internal prototype to avoid an error. 10615 Use char because int might match the return type of a GCC 10616 builtin and then its argument prototype would still apply. */ 10617#ifdef __cplusplus 10618extern "C" 10619#endif 10620char dld_link (); 10621int 10622main () 10623{ 10624return dld_link (); 10625 ; 10626 return 0; 10627} 10628_ACEOF 10629if ac_fn_c_try_link "$LINENO"; then : 10630 ac_cv_lib_dld_dld_link=yes 10631else 10632 ac_cv_lib_dld_dld_link=no 10633fi 10634rm -f core conftest.err conftest.$ac_objext \ 10635 conftest$ac_exeext conftest.$ac_ext 10636LIBS=$ac_check_lib_save_LIBS 10637fi 10638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10639$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10640if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10641 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10642fi 10643 10644 10645fi 10646 10647 10648fi 10649 10650 10651fi 10652 10653 10654fi 10655 10656 10657fi 10658 10659 ;; 10660 esac 10661 10662 if test "x$lt_cv_dlopen" != xno; then 10663 enable_dlopen=yes 10664 else 10665 enable_dlopen=no 10666 fi 10667 10668 case $lt_cv_dlopen in 10669 dlopen) 10670 save_CPPFLAGS="$CPPFLAGS" 10671 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10672 10673 save_LDFLAGS="$LDFLAGS" 10674 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10675 10676 save_LIBS="$LIBS" 10677 LIBS="$lt_cv_dlopen_libs $LIBS" 10678 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10680$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10681if test "${lt_cv_dlopen_self+set}" = set; then : 10682 $as_echo_n "(cached) " >&6 10683else 10684 if test "$cross_compiling" = yes; then : 10685 lt_cv_dlopen_self=cross 10686else 10687 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10688 lt_status=$lt_dlunknown 10689 cat > conftest.$ac_ext <<_LT_EOF 10690#line 10690 "configure" 10691#include "confdefs.h" 10692 10693#if HAVE_DLFCN_H 10694#include <dlfcn.h> 10695#endif 10696 10697#include <stdio.h> 10698 10699#ifdef RTLD_GLOBAL 10700# define LT_DLGLOBAL RTLD_GLOBAL 10701#else 10702# ifdef DL_GLOBAL 10703# define LT_DLGLOBAL DL_GLOBAL 10704# else 10705# define LT_DLGLOBAL 0 10706# endif 10707#endif 10708 10709/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10710 find out it does not work in some platform. */ 10711#ifndef LT_DLLAZY_OR_NOW 10712# ifdef RTLD_LAZY 10713# define LT_DLLAZY_OR_NOW RTLD_LAZY 10714# else 10715# ifdef DL_LAZY 10716# define LT_DLLAZY_OR_NOW DL_LAZY 10717# else 10718# ifdef RTLD_NOW 10719# define LT_DLLAZY_OR_NOW RTLD_NOW 10720# else 10721# ifdef DL_NOW 10722# define LT_DLLAZY_OR_NOW DL_NOW 10723# else 10724# define LT_DLLAZY_OR_NOW 0 10725# endif 10726# endif 10727# endif 10728# endif 10729#endif 10730 10731void fnord() { int i=42;} 10732int main () 10733{ 10734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10735 int status = $lt_dlunknown; 10736 10737 if (self) 10738 { 10739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10740 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10741 /* dlclose (self); */ 10742 } 10743 else 10744 puts (dlerror ()); 10745 10746 return status; 10747} 10748_LT_EOF 10749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10750 (eval $ac_link) 2>&5 10751 ac_status=$? 10752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10753 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10754 (./conftest; exit; ) >&5 2>/dev/null 10755 lt_status=$? 10756 case x$lt_status in 10757 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10758 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10759 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10760 esac 10761 else : 10762 # compilation failed 10763 lt_cv_dlopen_self=no 10764 fi 10765fi 10766rm -fr conftest* 10767 10768 10769fi 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10771$as_echo "$lt_cv_dlopen_self" >&6; } 10772 10773 if test "x$lt_cv_dlopen_self" = xyes; then 10774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10776$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10777if test "${lt_cv_dlopen_self_static+set}" = set; then : 10778 $as_echo_n "(cached) " >&6 10779else 10780 if test "$cross_compiling" = yes; then : 10781 lt_cv_dlopen_self_static=cross 10782else 10783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10784 lt_status=$lt_dlunknown 10785 cat > conftest.$ac_ext <<_LT_EOF 10786#line 10786 "configure" 10787#include "confdefs.h" 10788 10789#if HAVE_DLFCN_H 10790#include <dlfcn.h> 10791#endif 10792 10793#include <stdio.h> 10794 10795#ifdef RTLD_GLOBAL 10796# define LT_DLGLOBAL RTLD_GLOBAL 10797#else 10798# ifdef DL_GLOBAL 10799# define LT_DLGLOBAL DL_GLOBAL 10800# else 10801# define LT_DLGLOBAL 0 10802# endif 10803#endif 10804 10805/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10806 find out it does not work in some platform. */ 10807#ifndef LT_DLLAZY_OR_NOW 10808# ifdef RTLD_LAZY 10809# define LT_DLLAZY_OR_NOW RTLD_LAZY 10810# else 10811# ifdef DL_LAZY 10812# define LT_DLLAZY_OR_NOW DL_LAZY 10813# else 10814# ifdef RTLD_NOW 10815# define LT_DLLAZY_OR_NOW RTLD_NOW 10816# else 10817# ifdef DL_NOW 10818# define LT_DLLAZY_OR_NOW DL_NOW 10819# else 10820# define LT_DLLAZY_OR_NOW 0 10821# endif 10822# endif 10823# endif 10824# endif 10825#endif 10826 10827void fnord() { int i=42;} 10828int main () 10829{ 10830 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10831 int status = $lt_dlunknown; 10832 10833 if (self) 10834 { 10835 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10836 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10837 /* dlclose (self); */ 10838 } 10839 else 10840 puts (dlerror ()); 10841 10842 return status; 10843} 10844_LT_EOF 10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10846 (eval $ac_link) 2>&5 10847 ac_status=$? 10848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10849 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10850 (./conftest; exit; ) >&5 2>/dev/null 10851 lt_status=$? 10852 case x$lt_status in 10853 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10854 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10855 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10856 esac 10857 else : 10858 # compilation failed 10859 lt_cv_dlopen_self_static=no 10860 fi 10861fi 10862rm -fr conftest* 10863 10864 10865fi 10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10867$as_echo "$lt_cv_dlopen_self_static" >&6; } 10868 fi 10869 10870 CPPFLAGS="$save_CPPFLAGS" 10871 LDFLAGS="$save_LDFLAGS" 10872 LIBS="$save_LIBS" 10873 ;; 10874 esac 10875 10876 case $lt_cv_dlopen_self in 10877 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10878 *) enable_dlopen_self=unknown ;; 10879 esac 10880 10881 case $lt_cv_dlopen_self_static in 10882 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10883 *) enable_dlopen_self_static=unknown ;; 10884 esac 10885fi 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903striplib= 10904old_striplib= 10905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10906$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10907if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10909 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10911$as_echo "yes" >&6; } 10912else 10913# FIXME - insert some real tests, host_os isn't really good enough 10914 case $host_os in 10915 darwin*) 10916 if test -n "$STRIP" ; then 10917 striplib="$STRIP -x" 10918 old_striplib="$STRIP -S" 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10920$as_echo "yes" >&6; } 10921 else 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10923$as_echo "no" >&6; } 10924 fi 10925 ;; 10926 *) 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10928$as_echo "no" >&6; } 10929 ;; 10930 esac 10931fi 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 # Report which library types will actually be built 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10946$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10948$as_echo "$can_build_shared" >&6; } 10949 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10951$as_echo_n "checking whether to build shared libraries... " >&6; } 10952 test "$can_build_shared" = "no" && enable_shared=no 10953 10954 # On AIX, shared libraries and static libraries use the same namespace, and 10955 # are all built from PIC. 10956 case $host_os in 10957 aix3*) 10958 test "$enable_shared" = yes && enable_static=no 10959 if test -n "$RANLIB"; then 10960 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10961 postinstall_cmds='$RANLIB $lib' 10962 fi 10963 ;; 10964 10965 aix[4-9]*) 10966 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10967 test "$enable_shared" = yes && enable_static=no 10968 fi 10969 ;; 10970 esac 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10972$as_echo "$enable_shared" >&6; } 10973 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10975$as_echo_n "checking whether to build static libraries... " >&6; } 10976 # Make sure either enable_shared or enable_static is yes. 10977 test "$enable_shared" = yes || enable_static=yes 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10979$as_echo "$enable_static" >&6; } 10980 10981 10982 10983 10984fi 10985ac_ext=c 10986ac_cpp='$CPP $CPPFLAGS' 10987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10989ac_compiler_gnu=$ac_cv_c_compiler_gnu 10990 10991CC="$lt_save_CC" 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 ac_config_commands="$ac_config_commands libtool" 11006 11007 11008 11009 11010# Only expand once: 11011 11012 11013 11014 11015 11016# Define a configure option for an alternate module directory 11017 11018# Check whether --with-xorg-module-dir was given. 11019if test "${with_xorg_module_dir+set}" = set; then : 11020 withval=$with_xorg_module_dir; moduledir="$withval" 11021else 11022 moduledir="$libdir/xorg/modules" 11023fi 11024 11025 11026 11027 11028# Store the list of server defined optional extensions in REQUIRED_MODULES 11029 11030 11031 SAVE_CFLAGS="$CFLAGS" 11032 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11034/* end confdefs.h. */ 11035 11036#include "xorg-server.h" 11037#if !defined RANDR 11038#error RANDR not defined 11039#endif 11040 11041int 11042main () 11043{ 11044 11045 ; 11046 return 0; 11047} 11048_ACEOF 11049if ac_fn_c_try_compile "$LINENO"; then : 11050 _EXT_CHECK=yes 11051else 11052 _EXT_CHECK=no 11053fi 11054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11055 CFLAGS="$SAVE_CFLAGS" 11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 11057$as_echo_n "checking if RANDR is defined... " >&6; } 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11059$as_echo "$_EXT_CHECK" >&6; } 11060 if test "$_EXT_CHECK" != no; then 11061 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 11062 fi 11063 11064 11065 11066 SAVE_CFLAGS="$CFLAGS" 11067 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11069/* end confdefs.h. */ 11070 11071#include "xorg-server.h" 11072#if !defined RENDER 11073#error RENDER not defined 11074#endif 11075 11076int 11077main () 11078{ 11079 11080 ; 11081 return 0; 11082} 11083_ACEOF 11084if ac_fn_c_try_compile "$LINENO"; then : 11085 _EXT_CHECK=yes 11086else 11087 _EXT_CHECK=no 11088fi 11089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11090 CFLAGS="$SAVE_CFLAGS" 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 11092$as_echo_n "checking if RENDER is defined... " >&6; } 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11094$as_echo "$_EXT_CHECK" >&6; } 11095 if test "$_EXT_CHECK" != no; then 11096 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 11097 fi 11098 11099 11100 11101 SAVE_CFLAGS="$CFLAGS" 11102 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11104/* end confdefs.h. */ 11105 11106#include "xorg-server.h" 11107#if !defined XV 11108#error XV not defined 11109#endif 11110 11111int 11112main () 11113{ 11114 11115 ; 11116 return 0; 11117} 11118_ACEOF 11119if ac_fn_c_try_compile "$LINENO"; then : 11120 _EXT_CHECK=yes 11121else 11122 _EXT_CHECK=no 11123fi 11124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11125 CFLAGS="$SAVE_CFLAGS" 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 11127$as_echo_n "checking if XV is defined... " >&6; } 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11129$as_echo "$_EXT_CHECK" >&6; } 11130 if test "$_EXT_CHECK" != no; then 11131 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 11132 fi 11133 11134 11135 11136 SAVE_CFLAGS="$CFLAGS" 11137 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11139/* end confdefs.h. */ 11140 11141#include "xorg-server.h" 11142#if !defined DPMSExtension 11143#error DPMSExtension not defined 11144#endif 11145 11146int 11147main () 11148{ 11149 11150 ; 11151 return 0; 11152} 11153_ACEOF 11154if ac_fn_c_try_compile "$LINENO"; then : 11155 _EXT_CHECK=yes 11156else 11157 _EXT_CHECK=no 11158fi 11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11160 CFLAGS="$SAVE_CFLAGS" 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 11162$as_echo_n "checking if DPMSExtension is defined... " >&6; } 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 11164$as_echo "$_EXT_CHECK" >&6; } 11165 if test "$_EXT_CHECK" != no; then 11166 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 11167 fi 11168 11169 11170# Obtain compiler/linker options for the driver dependencies 11171 11172pkg_failed=no 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 11174$as_echo_n "checking for XORG... " >&6; } 11175 11176if test -n "$XORG_CFLAGS"; then 11177 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 11178 elif test -n "$PKG_CONFIG"; then 11179 if test -n "$PKG_CONFIG" && \ 11180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11181 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 11182 ac_status=$? 11183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11184 test $ac_status = 0; }; then 11185 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11186else 11187 pkg_failed=yes 11188fi 11189 else 11190 pkg_failed=untried 11191fi 11192if test -n "$XORG_LIBS"; then 11193 pkg_cv_XORG_LIBS="$XORG_LIBS" 11194 elif test -n "$PKG_CONFIG"; then 11195 if test -n "$PKG_CONFIG" && \ 11196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 11197 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 11198 ac_status=$? 11199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11200 test $ac_status = 0; }; then 11201 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 11202else 11203 pkg_failed=yes 11204fi 11205 else 11206 pkg_failed=untried 11207fi 11208 11209 11210 11211if test $pkg_failed = yes; then 11212 11213if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11214 _pkg_short_errors_supported=yes 11215else 11216 _pkg_short_errors_supported=no 11217fi 11218 if test $_pkg_short_errors_supported = yes; then 11219 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 11220 else 11221 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 11222 fi 11223 # Put the nasty error message in config.log where it belongs 11224 echo "$XORG_PKG_ERRORS" >&5 11225 11226 as_fn_error "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 11227 11228$XORG_PKG_ERRORS 11229 11230Consider adjusting the PKG_CONFIG_PATH environment variable if you 11231installed software in a non-standard prefix. 11232 11233Alternatively, you may set the environment variables XORG_CFLAGS 11234and XORG_LIBS to avoid the need to call pkg-config. 11235See the pkg-config man page for more details. 11236" "$LINENO" 5 11237elif test $pkg_failed = untried; then 11238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11240as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11241is in your PATH or set the PKG_CONFIG environment variable to the full 11242path to pkg-config. 11243 11244Alternatively, you may set the environment variables XORG_CFLAGS 11245and XORG_LIBS to avoid the need to call pkg-config. 11246See the pkg-config man page for more details. 11247 11248To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11249See \`config.log' for more details." "$LINENO" 5; } 11250else 11251 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 11252 XORG_LIBS=$pkg_cv_XORG_LIBS 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11254$as_echo "yes" >&6; } 11255 : 11256fi 11257 11258pkg_failed=no 11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 11260$as_echo_n "checking for XEXT... " >&6; } 11261 11262if test -n "$XEXT_CFLAGS"; then 11263 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 11264 elif test -n "$PKG_CONFIG"; then 11265 if test -n "$PKG_CONFIG" && \ 11266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 11267 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 11268 ac_status=$? 11269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11270 test $ac_status = 0; }; then 11271 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 11272else 11273 pkg_failed=yes 11274fi 11275 else 11276 pkg_failed=untried 11277fi 11278if test -n "$XEXT_LIBS"; then 11279 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 11280 elif test -n "$PKG_CONFIG"; then 11281 if test -n "$PKG_CONFIG" && \ 11282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 11283 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 11284 ac_status=$? 11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11286 test $ac_status = 0; }; then 11287 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 11288else 11289 pkg_failed=yes 11290fi 11291 else 11292 pkg_failed=untried 11293fi 11294 11295 11296 11297if test $pkg_failed = yes; then 11298 11299if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11300 _pkg_short_errors_supported=yes 11301else 11302 _pkg_short_errors_supported=no 11303fi 11304 if test $_pkg_short_errors_supported = yes; then 11305 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1` 11306 else 11307 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1` 11308 fi 11309 # Put the nasty error message in config.log where it belongs 11310 echo "$XEXT_PKG_ERRORS" >&5 11311 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11313$as_echo "no" >&6; } 11314 HAVE_XEXTPROTO_71="no" 11315elif test $pkg_failed = untried; then 11316 HAVE_XEXTPROTO_71="no" 11317else 11318 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 11319 XEXT_LIBS=$pkg_cv_XEXT_LIBS 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11321$as_echo "yes" >&6; } 11322 HAVE_XEXTPROTO_71="yes"; 11323$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 11324 11325fi 11326 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 11327 HAVE_XEXTPROTO_71_TRUE= 11328 HAVE_XEXTPROTO_71_FALSE='#' 11329else 11330 HAVE_XEXTPROTO_71_TRUE='#' 11331 HAVE_XEXTPROTO_71_FALSE= 11332fi 11333 11334 11335 11336 11337pkg_failed=no 11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 11339$as_echo_n "checking for PCIACCESS... " >&6; } 11340 11341if test -n "$PCIACCESS_CFLAGS"; then 11342 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 11343 elif test -n "$PKG_CONFIG"; then 11344 if test -n "$PKG_CONFIG" && \ 11345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 11346 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 11347 ac_status=$? 11348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11349 test $ac_status = 0; }; then 11350 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 11351else 11352 pkg_failed=yes 11353fi 11354 else 11355 pkg_failed=untried 11356fi 11357if test -n "$PCIACCESS_LIBS"; then 11358 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 11359 elif test -n "$PKG_CONFIG"; then 11360 if test -n "$PKG_CONFIG" && \ 11361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 11362 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 11363 ac_status=$? 11364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11365 test $ac_status = 0; }; then 11366 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 11367else 11368 pkg_failed=yes 11369fi 11370 else 11371 pkg_failed=untried 11372fi 11373 11374 11375 11376if test $pkg_failed = yes; then 11377 11378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11379 _pkg_short_errors_supported=yes 11380else 11381 _pkg_short_errors_supported=no 11382fi 11383 if test $_pkg_short_errors_supported = yes; then 11384 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1` 11385 else 11386 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1` 11387 fi 11388 # Put the nasty error message in config.log where it belongs 11389 echo "$PCIACCESS_PKG_ERRORS" >&5 11390 11391 as_fn_error "Package requirements (pciaccess >= 0.8.0) were not met: 11392 11393$PCIACCESS_PKG_ERRORS 11394 11395Consider adjusting the PKG_CONFIG_PATH environment variable if you 11396installed software in a non-standard prefix. 11397 11398Alternatively, you may set the environment variables PCIACCESS_CFLAGS 11399and PCIACCESS_LIBS to avoid the need to call pkg-config. 11400See the pkg-config man page for more details. 11401" "$LINENO" 5 11402elif test $pkg_failed = untried; then 11403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11405as_fn_error "The pkg-config script could not be found or is too old. Make sure it 11406is in your PATH or set the PKG_CONFIG environment variable to the full 11407path to pkg-config. 11408 11409Alternatively, you may set the environment variables PCIACCESS_CFLAGS 11410and PCIACCESS_LIBS to avoid the need to call pkg-config. 11411See the pkg-config man page for more details. 11412 11413To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11414See \`config.log' for more details." "$LINENO" 5; } 11415else 11416 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 11417 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11419$as_echo "yes" >&6; } 11420 : 11421fi 11422 11423DRIVER_NAME=apm 11424 11425 11426ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 11427 11428cat >confcache <<\_ACEOF 11429# This file is a shell script that caches the results of configure 11430# tests run on this system so they can be shared between configure 11431# scripts and configure runs, see configure's option --config-cache. 11432# It is not useful on other systems. If it contains results you don't 11433# want to keep, you may remove or edit it. 11434# 11435# config.status only pays attention to the cache file if you give it 11436# the --recheck option to rerun configure. 11437# 11438# `ac_cv_env_foo' variables (set or unset) will be overridden when 11439# loading this file, other *unset* `ac_cv_foo' will be assigned the 11440# following values. 11441 11442_ACEOF 11443 11444# The following way of writing the cache mishandles newlines in values, 11445# but we know of no workaround that is simple, portable, and efficient. 11446# So, we kill variables containing newlines. 11447# Ultrix sh set writes to stderr and can't be redirected directly, 11448# and sets the high bit in the cache file unless we assign to the vars. 11449( 11450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11451 eval ac_val=\$$ac_var 11452 case $ac_val in #( 11453 *${as_nl}*) 11454 case $ac_var in #( 11455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11456$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11457 esac 11458 case $ac_var in #( 11459 _ | IFS | as_nl) ;; #( 11460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11461 *) { eval $ac_var=; unset $ac_var;} ;; 11462 esac ;; 11463 esac 11464 done 11465 11466 (set) 2>&1 | 11467 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11468 *${as_nl}ac_space=\ *) 11469 # `set' does not quote correctly, so add quotes: double-quote 11470 # substitution turns \\\\ into \\, and sed turns \\ into \. 11471 sed -n \ 11472 "s/'/'\\\\''/g; 11473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11474 ;; #( 11475 *) 11476 # `set' quotes correctly as required by POSIX, so do not add quotes. 11477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11478 ;; 11479 esac | 11480 sort 11481) | 11482 sed ' 11483 /^ac_cv_env_/b end 11484 t clear 11485 :clear 11486 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11487 t end 11488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11489 :end' >>confcache 11490if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11491 if test -w "$cache_file"; then 11492 test "x$cache_file" != "x/dev/null" && 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11494$as_echo "$as_me: updating cache $cache_file" >&6;} 11495 cat confcache >$cache_file 11496 else 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11498$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11499 fi 11500fi 11501rm -f confcache 11502 11503test "x$prefix" = xNONE && prefix=$ac_default_prefix 11504# Let make expand exec_prefix. 11505test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11506 11507DEFS=-DHAVE_CONFIG_H 11508 11509ac_libobjs= 11510ac_ltlibobjs= 11511for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11512 # 1. Remove the extension, and $U if already installed. 11513 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11514 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11515 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11516 # will be set to the directory where LIBOBJS objects are built. 11517 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11518 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11519done 11520LIBOBJS=$ac_libobjs 11521 11522LTLIBOBJS=$ac_ltlibobjs 11523 11524 11525 if test -n "$EXEEXT"; then 11526 am__EXEEXT_TRUE= 11527 am__EXEEXT_FALSE='#' 11528else 11529 am__EXEEXT_TRUE='#' 11530 am__EXEEXT_FALSE= 11531fi 11532 11533if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11534 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11535Usually this means the macro was only invoked conditionally." "$LINENO" 5 11536fi 11537if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11538 as_fn_error "conditional \"AMDEP\" was never defined. 11539Usually this means the macro was only invoked conditionally." "$LINENO" 5 11540fi 11541if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11542 as_fn_error "conditional \"am__fastdepCC\" was never defined. 11543Usually this means the macro was only invoked conditionally." "$LINENO" 5 11544fi 11545if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 11546 as_fn_error "conditional \"HAVE_XEXTPROTO_71\" was never defined. 11547Usually this means the macro was only invoked conditionally." "$LINENO" 5 11548fi 11549 11550: ${CONFIG_STATUS=./config.status} 11551ac_write_fail=0 11552ac_clean_files_save=$ac_clean_files 11553ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11554{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11555$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11556as_write_fail=0 11557cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11558#! $SHELL 11559# Generated by $as_me. 11560# Run this file to recreate the current configuration. 11561# Compiler output produced by configure, useful for debugging 11562# configure, is in config.log if it exists. 11563 11564debug=false 11565ac_cs_recheck=false 11566ac_cs_silent=false 11567 11568SHELL=\${CONFIG_SHELL-$SHELL} 11569export SHELL 11570_ASEOF 11571cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11572## -------------------- ## 11573## M4sh Initialization. ## 11574## -------------------- ## 11575 11576# Be more Bourne compatible 11577DUALCASE=1; export DUALCASE # for MKS sh 11578if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11579 emulate sh 11580 NULLCMD=: 11581 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11582 # is contrary to our usage. Disable this feature. 11583 alias -g '${1+"$@"}'='"$@"' 11584 setopt NO_GLOB_SUBST 11585else 11586 case `(set -o) 2>/dev/null` in #( 11587 *posix*) : 11588 set -o posix ;; #( 11589 *) : 11590 ;; 11591esac 11592fi 11593 11594 11595as_nl=' 11596' 11597export as_nl 11598# Printing a long string crashes Solaris 7 /usr/bin/printf. 11599as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11600as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11602# Prefer a ksh shell builtin over an external printf program on Solaris, 11603# but without wasting forks for bash or zsh. 11604if test -z "$BASH_VERSION$ZSH_VERSION" \ 11605 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11606 as_echo='print -r --' 11607 as_echo_n='print -rn --' 11608elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11609 as_echo='printf %s\n' 11610 as_echo_n='printf %s' 11611else 11612 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11613 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11614 as_echo_n='/usr/ucb/echo -n' 11615 else 11616 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11617 as_echo_n_body='eval 11618 arg=$1; 11619 case $arg in #( 11620 *"$as_nl"*) 11621 expr "X$arg" : "X\\(.*\\)$as_nl"; 11622 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11623 esac; 11624 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11625 ' 11626 export as_echo_n_body 11627 as_echo_n='sh -c $as_echo_n_body as_echo' 11628 fi 11629 export as_echo_body 11630 as_echo='sh -c $as_echo_body as_echo' 11631fi 11632 11633# The user is always right. 11634if test "${PATH_SEPARATOR+set}" != set; then 11635 PATH_SEPARATOR=: 11636 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11637 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11638 PATH_SEPARATOR=';' 11639 } 11640fi 11641 11642 11643# IFS 11644# We need space, tab and new line, in precisely that order. Quoting is 11645# there to prevent editors from complaining about space-tab. 11646# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11647# splitting by setting IFS to empty value.) 11648IFS=" "" $as_nl" 11649 11650# Find who we are. Look in the path if we contain no directory separator. 11651case $0 in #(( 11652 *[\\/]* ) as_myself=$0 ;; 11653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11654for as_dir in $PATH 11655do 11656 IFS=$as_save_IFS 11657 test -z "$as_dir" && as_dir=. 11658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11659 done 11660IFS=$as_save_IFS 11661 11662 ;; 11663esac 11664# We did not find ourselves, most probably we were run as `sh COMMAND' 11665# in which case we are not to be found in the path. 11666if test "x$as_myself" = x; then 11667 as_myself=$0 11668fi 11669if test ! -f "$as_myself"; then 11670 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11671 exit 1 11672fi 11673 11674# Unset variables that we do not need and which cause bugs (e.g. in 11675# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11676# suppresses any "Segmentation fault" message there. '((' could 11677# trigger a bug in pdksh 5.2.14. 11678for as_var in BASH_ENV ENV MAIL MAILPATH 11679do eval test x\${$as_var+set} = xset \ 11680 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11681done 11682PS1='$ ' 11683PS2='> ' 11684PS4='+ ' 11685 11686# NLS nuisances. 11687LC_ALL=C 11688export LC_ALL 11689LANGUAGE=C 11690export LANGUAGE 11691 11692# CDPATH. 11693(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11694 11695 11696# as_fn_error ERROR [LINENO LOG_FD] 11697# --------------------------------- 11698# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11699# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11700# script with status $?, using 1 if that was 0. 11701as_fn_error () 11702{ 11703 as_status=$?; test $as_status -eq 0 && as_status=1 11704 if test "$3"; then 11705 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11706 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11707 fi 11708 $as_echo "$as_me: error: $1" >&2 11709 as_fn_exit $as_status 11710} # as_fn_error 11711 11712 11713# as_fn_set_status STATUS 11714# ----------------------- 11715# Set $? to STATUS, without forking. 11716as_fn_set_status () 11717{ 11718 return $1 11719} # as_fn_set_status 11720 11721# as_fn_exit STATUS 11722# ----------------- 11723# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11724as_fn_exit () 11725{ 11726 set +e 11727 as_fn_set_status $1 11728 exit $1 11729} # as_fn_exit 11730 11731# as_fn_unset VAR 11732# --------------- 11733# Portably unset VAR. 11734as_fn_unset () 11735{ 11736 { eval $1=; unset $1;} 11737} 11738as_unset=as_fn_unset 11739# as_fn_append VAR VALUE 11740# ---------------------- 11741# Append the text in VALUE to the end of the definition contained in VAR. Take 11742# advantage of any shell optimizations that allow amortized linear growth over 11743# repeated appends, instead of the typical quadratic growth present in naive 11744# implementations. 11745if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11746 eval 'as_fn_append () 11747 { 11748 eval $1+=\$2 11749 }' 11750else 11751 as_fn_append () 11752 { 11753 eval $1=\$$1\$2 11754 } 11755fi # as_fn_append 11756 11757# as_fn_arith ARG... 11758# ------------------ 11759# Perform arithmetic evaluation on the ARGs, and store the result in the 11760# global $as_val. Take advantage of shells that can avoid forks. The arguments 11761# must be portable across $(()) and expr. 11762if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11763 eval 'as_fn_arith () 11764 { 11765 as_val=$(( $* )) 11766 }' 11767else 11768 as_fn_arith () 11769 { 11770 as_val=`expr "$@" || test $? -eq 1` 11771 } 11772fi # as_fn_arith 11773 11774 11775if expr a : '\(a\)' >/dev/null 2>&1 && 11776 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11777 as_expr=expr 11778else 11779 as_expr=false 11780fi 11781 11782if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11783 as_basename=basename 11784else 11785 as_basename=false 11786fi 11787 11788if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11789 as_dirname=dirname 11790else 11791 as_dirname=false 11792fi 11793 11794as_me=`$as_basename -- "$0" || 11795$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11796 X"$0" : 'X\(//\)$' \| \ 11797 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11798$as_echo X/"$0" | 11799 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11800 s//\1/ 11801 q 11802 } 11803 /^X\/\(\/\/\)$/{ 11804 s//\1/ 11805 q 11806 } 11807 /^X\/\(\/\).*/{ 11808 s//\1/ 11809 q 11810 } 11811 s/.*/./; q'` 11812 11813# Avoid depending upon Character Ranges. 11814as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11815as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11816as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11817as_cr_digits='0123456789' 11818as_cr_alnum=$as_cr_Letters$as_cr_digits 11819 11820ECHO_C= ECHO_N= ECHO_T= 11821case `echo -n x` in #((((( 11822-n*) 11823 case `echo 'xy\c'` in 11824 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11825 xy) ECHO_C='\c';; 11826 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11827 ECHO_T=' ';; 11828 esac;; 11829*) 11830 ECHO_N='-n';; 11831esac 11832 11833rm -f conf$$ conf$$.exe conf$$.file 11834if test -d conf$$.dir; then 11835 rm -f conf$$.dir/conf$$.file 11836else 11837 rm -f conf$$.dir 11838 mkdir conf$$.dir 2>/dev/null 11839fi 11840if (echo >conf$$.file) 2>/dev/null; then 11841 if ln -s conf$$.file conf$$ 2>/dev/null; then 11842 as_ln_s='ln -s' 11843 # ... but there are two gotchas: 11844 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11845 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11846 # In both cases, we have to default to `cp -p'. 11847 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11848 as_ln_s='cp -p' 11849 elif ln conf$$.file conf$$ 2>/dev/null; then 11850 as_ln_s=ln 11851 else 11852 as_ln_s='cp -p' 11853 fi 11854else 11855 as_ln_s='cp -p' 11856fi 11857rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11858rmdir conf$$.dir 2>/dev/null 11859 11860 11861# as_fn_mkdir_p 11862# ------------- 11863# Create "$as_dir" as a directory, including parents if necessary. 11864as_fn_mkdir_p () 11865{ 11866 11867 case $as_dir in #( 11868 -*) as_dir=./$as_dir;; 11869 esac 11870 test -d "$as_dir" || eval $as_mkdir_p || { 11871 as_dirs= 11872 while :; do 11873 case $as_dir in #( 11874 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11875 *) as_qdir=$as_dir;; 11876 esac 11877 as_dirs="'$as_qdir' $as_dirs" 11878 as_dir=`$as_dirname -- "$as_dir" || 11879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11880 X"$as_dir" : 'X\(//\)[^/]' \| \ 11881 X"$as_dir" : 'X\(//\)$' \| \ 11882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11883$as_echo X"$as_dir" | 11884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11885 s//\1/ 11886 q 11887 } 11888 /^X\(\/\/\)[^/].*/{ 11889 s//\1/ 11890 q 11891 } 11892 /^X\(\/\/\)$/{ 11893 s//\1/ 11894 q 11895 } 11896 /^X\(\/\).*/{ 11897 s//\1/ 11898 q 11899 } 11900 s/.*/./; q'` 11901 test -d "$as_dir" && break 11902 done 11903 test -z "$as_dirs" || eval "mkdir $as_dirs" 11904 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11905 11906 11907} # as_fn_mkdir_p 11908if mkdir -p . 2>/dev/null; then 11909 as_mkdir_p='mkdir -p "$as_dir"' 11910else 11911 test -d ./-p && rmdir ./-p 11912 as_mkdir_p=false 11913fi 11914 11915if test -x / >/dev/null 2>&1; then 11916 as_test_x='test -x' 11917else 11918 if ls -dL / >/dev/null 2>&1; then 11919 as_ls_L_option=L 11920 else 11921 as_ls_L_option= 11922 fi 11923 as_test_x=' 11924 eval sh -c '\'' 11925 if test -d "$1"; then 11926 test -d "$1/."; 11927 else 11928 case $1 in #( 11929 -*)set "./$1";; 11930 esac; 11931 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11932 ???[sx]*):;;*)false;;esac;fi 11933 '\'' sh 11934 ' 11935fi 11936as_executable_p=$as_test_x 11937 11938# Sed expression to map a string onto a valid CPP name. 11939as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11940 11941# Sed expression to map a string onto a valid variable name. 11942as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11943 11944 11945exec 6>&1 11946## ----------------------------------- ## 11947## Main body of $CONFIG_STATUS script. ## 11948## ----------------------------------- ## 11949_ASEOF 11950test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11951 11952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11953# Save the log message, to keep $0 and so on meaningful, and to 11954# report actual input values of CONFIG_FILES etc. instead of their 11955# values after options handling. 11956ac_log=" 11957This file was extended by xf86-video-apm $as_me 1.2.3, which was 11958generated by GNU Autoconf 2.65. Invocation command line was 11959 11960 CONFIG_FILES = $CONFIG_FILES 11961 CONFIG_HEADERS = $CONFIG_HEADERS 11962 CONFIG_LINKS = $CONFIG_LINKS 11963 CONFIG_COMMANDS = $CONFIG_COMMANDS 11964 $ $0 $@ 11965 11966on `(hostname || uname -n) 2>/dev/null | sed 1q` 11967" 11968 11969_ACEOF 11970 11971case $ac_config_files in *" 11972"*) set x $ac_config_files; shift; ac_config_files=$*;; 11973esac 11974 11975case $ac_config_headers in *" 11976"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11977esac 11978 11979 11980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11981# Files that config.status was made for. 11982config_files="$ac_config_files" 11983config_headers="$ac_config_headers" 11984config_commands="$ac_config_commands" 11985 11986_ACEOF 11987 11988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11989ac_cs_usage="\ 11990\`$as_me' instantiates files and other configuration actions 11991from templates according to the current configuration. Unless the files 11992and actions are specified as TAGs, all are instantiated by default. 11993 11994Usage: $0 [OPTION]... [TAG]... 11995 11996 -h, --help print this help, then exit 11997 -V, --version print version number and configuration settings, then exit 11998 --config print configuration, then exit 11999 -q, --quiet, --silent 12000 do not print progress messages 12001 -d, --debug don't remove temporary files 12002 --recheck update $as_me by reconfiguring in the same conditions 12003 --file=FILE[:TEMPLATE] 12004 instantiate the configuration file FILE 12005 --header=FILE[:TEMPLATE] 12006 instantiate the configuration header FILE 12007 12008Configuration files: 12009$config_files 12010 12011Configuration headers: 12012$config_headers 12013 12014Configuration commands: 12015$config_commands 12016 12017Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12018 12019_ACEOF 12020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12021ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12022ac_cs_version="\\ 12023xf86-video-apm config.status 1.2.3 12024configured by $0, generated by GNU Autoconf 2.65, 12025 with options \\"\$ac_cs_config\\" 12026 12027Copyright (C) 2009 Free Software Foundation, Inc. 12028This config.status script is free software; the Free Software Foundation 12029gives unlimited permission to copy, distribute and modify it." 12030 12031ac_pwd='$ac_pwd' 12032srcdir='$srcdir' 12033INSTALL='$INSTALL' 12034MKDIR_P='$MKDIR_P' 12035AWK='$AWK' 12036test -n "\$AWK" || AWK=awk 12037_ACEOF 12038 12039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12040# The default lists apply if the user does not specify any file. 12041ac_need_defaults=: 12042while test $# != 0 12043do 12044 case $1 in 12045 --*=*) 12046 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12047 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12048 ac_shift=: 12049 ;; 12050 *) 12051 ac_option=$1 12052 ac_optarg=$2 12053 ac_shift=shift 12054 ;; 12055 esac 12056 12057 case $ac_option in 12058 # Handling of the options. 12059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12060 ac_cs_recheck=: ;; 12061 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12062 $as_echo "$ac_cs_version"; exit ;; 12063 --config | --confi | --conf | --con | --co | --c ) 12064 $as_echo "$ac_cs_config"; exit ;; 12065 --debug | --debu | --deb | --de | --d | -d ) 12066 debug=: ;; 12067 --file | --fil | --fi | --f ) 12068 $ac_shift 12069 case $ac_optarg in 12070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12071 esac 12072 as_fn_append CONFIG_FILES " '$ac_optarg'" 12073 ac_need_defaults=false;; 12074 --header | --heade | --head | --hea ) 12075 $ac_shift 12076 case $ac_optarg in 12077 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12078 esac 12079 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12080 ac_need_defaults=false;; 12081 --he | --h) 12082 # Conflict between --help and --header 12083 as_fn_error "ambiguous option: \`$1' 12084Try \`$0 --help' for more information.";; 12085 --help | --hel | -h ) 12086 $as_echo "$ac_cs_usage"; exit ;; 12087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12088 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12089 ac_cs_silent=: ;; 12090 12091 # This is an error. 12092 -*) as_fn_error "unrecognized option: \`$1' 12093Try \`$0 --help' for more information." ;; 12094 12095 *) as_fn_append ac_config_targets " $1" 12096 ac_need_defaults=false ;; 12097 12098 esac 12099 shift 12100done 12101 12102ac_configure_extra_args= 12103 12104if $ac_cs_silent; then 12105 exec 6>/dev/null 12106 ac_configure_extra_args="$ac_configure_extra_args --silent" 12107fi 12108 12109_ACEOF 12110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12111if \$ac_cs_recheck; then 12112 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12113 shift 12114 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12115 CONFIG_SHELL='$SHELL' 12116 export CONFIG_SHELL 12117 exec "\$@" 12118fi 12119 12120_ACEOF 12121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12122exec 5>>config.log 12123{ 12124 echo 12125 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12126## Running $as_me. ## 12127_ASBOX 12128 $as_echo "$ac_log" 12129} >&5 12130 12131_ACEOF 12132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12133# 12134# INIT-COMMANDS 12135# 12136AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12137 12138 12139# The HP-UX ksh and POSIX shell print the target directory to stdout 12140# if CDPATH is set. 12141(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12142 12143sed_quote_subst='$sed_quote_subst' 12144double_quote_subst='$double_quote_subst' 12145delay_variable_subst='$delay_variable_subst' 12146enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12147macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12148macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12149enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12150pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12151enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12152host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12153host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12154host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12155build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12156build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12157build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12158SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12159Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12160GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12161EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12162FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12163LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12164NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12165LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12166max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12167ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12168exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12169lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12170lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12171lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12172reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12173reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12174OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12175deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12176file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12177AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12178AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12179STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12180RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12181old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12182old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12183old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12184CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12185CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12186compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12187GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12188lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12189lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12190lt_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"`' 12191lt_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"`' 12192objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12193SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12194ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12195MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12196lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12197lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12198lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12199lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12200lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12201need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12202DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12203NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12204LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12205OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12206OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12207libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12208shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12209extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12210archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12211enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12212export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12213whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12214compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12215old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12216old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12217archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12218archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12219module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12220module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12221with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12222allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12223no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12224hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12225hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12226hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12227hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12228hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12229hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12230hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12231hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12232inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12233link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12234fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12235always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12236export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12237exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12238include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12239prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12240file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12241variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12242need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12243need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12244version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12245runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12246shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12247shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12248libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12249library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12250soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12251postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12252postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12253finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12254finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12255hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12256sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12257sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12258hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12259enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12260enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12261enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12262old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12263striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12264 12265LTCC='$LTCC' 12266LTCFLAGS='$LTCFLAGS' 12267compiler='$compiler_DEFAULT' 12268 12269# Quote evaled strings. 12270for var in SED \ 12271GREP \ 12272EGREP \ 12273FGREP \ 12274LD \ 12275NM \ 12276LN_S \ 12277lt_SP2NL \ 12278lt_NL2SP \ 12279reload_flag \ 12280OBJDUMP \ 12281deplibs_check_method \ 12282file_magic_cmd \ 12283AR \ 12284AR_FLAGS \ 12285STRIP \ 12286RANLIB \ 12287CC \ 12288CFLAGS \ 12289compiler \ 12290lt_cv_sys_global_symbol_pipe \ 12291lt_cv_sys_global_symbol_to_cdecl \ 12292lt_cv_sys_global_symbol_to_c_name_address \ 12293lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12294SHELL \ 12295ECHO \ 12296lt_prog_compiler_no_builtin_flag \ 12297lt_prog_compiler_wl \ 12298lt_prog_compiler_pic \ 12299lt_prog_compiler_static \ 12300lt_cv_prog_compiler_c_o \ 12301need_locks \ 12302DSYMUTIL \ 12303NMEDIT \ 12304LIPO \ 12305OTOOL \ 12306OTOOL64 \ 12307shrext_cmds \ 12308export_dynamic_flag_spec \ 12309whole_archive_flag_spec \ 12310compiler_needs_object \ 12311with_gnu_ld \ 12312allow_undefined_flag \ 12313no_undefined_flag \ 12314hardcode_libdir_flag_spec \ 12315hardcode_libdir_flag_spec_ld \ 12316hardcode_libdir_separator \ 12317fix_srcfile_path \ 12318exclude_expsyms \ 12319include_expsyms \ 12320file_list_spec \ 12321variables_saved_for_relink \ 12322libname_spec \ 12323library_names_spec \ 12324soname_spec \ 12325finish_eval \ 12326old_striplib \ 12327striplib; do 12328 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12329 *[\\\\\\\`\\"\\\$]*) 12330 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12331 ;; 12332 *) 12333 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12334 ;; 12335 esac 12336done 12337 12338# Double-quote double-evaled strings. 12339for var in reload_cmds \ 12340old_postinstall_cmds \ 12341old_postuninstall_cmds \ 12342old_archive_cmds \ 12343extract_expsyms_cmds \ 12344old_archive_from_new_cmds \ 12345old_archive_from_expsyms_cmds \ 12346archive_cmds \ 12347archive_expsym_cmds \ 12348module_cmds \ 12349module_expsym_cmds \ 12350export_symbols_cmds \ 12351prelink_cmds \ 12352postinstall_cmds \ 12353postuninstall_cmds \ 12354finish_cmds \ 12355sys_lib_search_path_spec \ 12356sys_lib_dlsearch_path_spec; do 12357 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12358 *[\\\\\\\`\\"\\\$]*) 12359 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12360 ;; 12361 *) 12362 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12363 ;; 12364 esac 12365done 12366 12367# Fix-up fallback echo if it was mangled by the above quoting rules. 12368case \$lt_ECHO in 12369*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12370 ;; 12371esac 12372 12373ac_aux_dir='$ac_aux_dir' 12374xsi_shell='$xsi_shell' 12375lt_shell_append='$lt_shell_append' 12376 12377# See if we are running on zsh, and set the options which allow our 12378# commands through without removal of \ escapes INIT. 12379if test -n "\${ZSH_VERSION+set}" ; then 12380 setopt NO_GLOB_SUBST 12381fi 12382 12383 12384 PACKAGE='$PACKAGE' 12385 VERSION='$VERSION' 12386 TIMESTAMP='$TIMESTAMP' 12387 RM='$RM' 12388 ofile='$ofile' 12389 12390 12391 12392 12393_ACEOF 12394 12395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12396 12397# Handling of arguments. 12398for ac_config_target in $ac_config_targets 12399do 12400 case $ac_config_target in 12401 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12402 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12403 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12404 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12405 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12406 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12407 12408 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12409 esac 12410done 12411 12412 12413# If the user did not use the arguments to specify the items to instantiate, 12414# then the envvar interface is used. Set only those that are not. 12415# We use the long form for the default assignment because of an extremely 12416# bizarre bug on SunOS 4.1.3. 12417if $ac_need_defaults; then 12418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12420 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12421fi 12422 12423# Have a temporary directory for convenience. Make it in the build tree 12424# simply because there is no reason against having it here, and in addition, 12425# creating and moving files from /tmp can sometimes cause problems. 12426# Hook for its removal unless debugging. 12427# Note that there is a small window in which the directory will not be cleaned: 12428# after its creation but before its name has been assigned to `$tmp'. 12429$debug || 12430{ 12431 tmp= 12432 trap 'exit_status=$? 12433 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12434' 0 12435 trap 'as_fn_exit 1' 1 2 13 15 12436} 12437# Create a (secure) tmp directory for tmp files. 12438 12439{ 12440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12441 test -n "$tmp" && test -d "$tmp" 12442} || 12443{ 12444 tmp=./conf$$-$RANDOM 12445 (umask 077 && mkdir "$tmp") 12446} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12447 12448# Set up the scripts for CONFIG_FILES section. 12449# No need to generate them if there are no CONFIG_FILES. 12450# This happens for instance with `./config.status config.h'. 12451if test -n "$CONFIG_FILES"; then 12452 12453 12454ac_cr=`echo X | tr X '\015'` 12455# On cygwin, bash can eat \r inside `` if the user requested igncr. 12456# But we know of no other shell where ac_cr would be empty at this 12457# point, so we can use a bashism as a fallback. 12458if test "x$ac_cr" = x; then 12459 eval ac_cr=\$\'\\r\' 12460fi 12461ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12462if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12463 ac_cs_awk_cr='\r' 12464else 12465 ac_cs_awk_cr=$ac_cr 12466fi 12467 12468echo 'BEGIN {' >"$tmp/subs1.awk" && 12469_ACEOF 12470 12471 12472{ 12473 echo "cat >conf$$subs.awk <<_ACEOF" && 12474 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12475 echo "_ACEOF" 12476} >conf$$subs.sh || 12477 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12478ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12479ac_delim='%!_!# ' 12480for ac_last_try in false false false false false :; do 12481 . ./conf$$subs.sh || 12482 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12483 12484 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12485 if test $ac_delim_n = $ac_delim_num; then 12486 break 12487 elif $ac_last_try; then 12488 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12489 else 12490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12491 fi 12492done 12493rm -f conf$$subs.sh 12494 12495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12496cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12497_ACEOF 12498sed -n ' 12499h 12500s/^/S["/; s/!.*/"]=/ 12501p 12502g 12503s/^[^!]*!// 12504:repl 12505t repl 12506s/'"$ac_delim"'$// 12507t delim 12508:nl 12509h 12510s/\(.\{148\}\)..*/\1/ 12511t more1 12512s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12513p 12514n 12515b repl 12516:more1 12517s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12518p 12519g 12520s/.\{148\}// 12521t nl 12522:delim 12523h 12524s/\(.\{148\}\)..*/\1/ 12525t more2 12526s/["\\]/\\&/g; s/^/"/; s/$/"/ 12527p 12528b 12529:more2 12530s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12531p 12532g 12533s/.\{148\}// 12534t delim 12535' <conf$$subs.awk | sed ' 12536/^[^""]/{ 12537 N 12538 s/\n// 12539} 12540' >>$CONFIG_STATUS || ac_write_fail=1 12541rm -f conf$$subs.awk 12542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12543_ACAWK 12544cat >>"\$tmp/subs1.awk" <<_ACAWK && 12545 for (key in S) S_is_set[key] = 1 12546 FS = "" 12547 12548} 12549{ 12550 line = $ 0 12551 nfields = split(line, field, "@") 12552 substed = 0 12553 len = length(field[1]) 12554 for (i = 2; i < nfields; i++) { 12555 key = field[i] 12556 keylen = length(key) 12557 if (S_is_set[key]) { 12558 value = S[key] 12559 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12560 len += length(value) + length(field[++i]) 12561 substed = 1 12562 } else 12563 len += 1 + keylen 12564 } 12565 12566 print line 12567} 12568 12569_ACAWK 12570_ACEOF 12571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12572if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12573 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12574else 12575 cat 12576fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12577 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12578_ACEOF 12579 12580# VPATH may cause trouble with some makes, so we remove $(srcdir), 12581# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12582# trailing colons and then remove the whole line if VPATH becomes empty 12583# (actually we leave an empty line to preserve line numbers). 12584if test "x$srcdir" = x.; then 12585 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12586s/:*\$(srcdir):*/:/ 12587s/:*\${srcdir}:*/:/ 12588s/:*@srcdir@:*/:/ 12589s/^\([^=]*=[ ]*\):*/\1/ 12590s/:*$// 12591s/^[^=]*=[ ]*$// 12592}' 12593fi 12594 12595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12596fi # test -n "$CONFIG_FILES" 12597 12598# Set up the scripts for CONFIG_HEADERS section. 12599# No need to generate them if there are no CONFIG_HEADERS. 12600# This happens for instance with `./config.status Makefile'. 12601if test -n "$CONFIG_HEADERS"; then 12602cat >"$tmp/defines.awk" <<\_ACAWK || 12603BEGIN { 12604_ACEOF 12605 12606# Transform confdefs.h into an awk script `defines.awk', embedded as 12607# here-document in config.status, that substitutes the proper values into 12608# config.h.in to produce config.h. 12609 12610# Create a delimiter string that does not exist in confdefs.h, to ease 12611# handling of long lines. 12612ac_delim='%!_!# ' 12613for ac_last_try in false false :; do 12614 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12615 if test -z "$ac_t"; then 12616 break 12617 elif $ac_last_try; then 12618 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12619 else 12620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12621 fi 12622done 12623 12624# For the awk script, D is an array of macro values keyed by name, 12625# likewise P contains macro parameters if any. Preserve backslash 12626# newline sequences. 12627 12628ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12629sed -n ' 12630s/.\{148\}/&'"$ac_delim"'/g 12631t rset 12632:rset 12633s/^[ ]*#[ ]*define[ ][ ]*/ / 12634t def 12635d 12636:def 12637s/\\$// 12638t bsnl 12639s/["\\]/\\&/g 12640s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12641D["\1"]=" \3"/p 12642s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12643d 12644:bsnl 12645s/["\\]/\\&/g 12646s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12647D["\1"]=" \3\\\\\\n"\\/p 12648t cont 12649s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12650t cont 12651d 12652:cont 12653n 12654s/.\{148\}/&'"$ac_delim"'/g 12655t clear 12656:clear 12657s/\\$// 12658t bsnlc 12659s/["\\]/\\&/g; s/^/"/; s/$/"/p 12660d 12661:bsnlc 12662s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12663b cont 12664' <confdefs.h | sed ' 12665s/'"$ac_delim"'/"\\\ 12666"/g' >>$CONFIG_STATUS || ac_write_fail=1 12667 12668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12669 for (key in D) D_is_set[key] = 1 12670 FS = "" 12671} 12672/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12673 line = \$ 0 12674 split(line, arg, " ") 12675 if (arg[1] == "#") { 12676 defundef = arg[2] 12677 mac1 = arg[3] 12678 } else { 12679 defundef = substr(arg[1], 2) 12680 mac1 = arg[2] 12681 } 12682 split(mac1, mac2, "(") #) 12683 macro = mac2[1] 12684 prefix = substr(line, 1, index(line, defundef) - 1) 12685 if (D_is_set[macro]) { 12686 # Preserve the white space surrounding the "#". 12687 print prefix "define", macro P[macro] D[macro] 12688 next 12689 } else { 12690 # Replace #undef with comments. This is necessary, for example, 12691 # in the case of _POSIX_SOURCE, which is predefined and required 12692 # on some systems where configure will not decide to define it. 12693 if (defundef == "undef") { 12694 print "/*", prefix defundef, macro, "*/" 12695 next 12696 } 12697 } 12698} 12699{ print } 12700_ACAWK 12701_ACEOF 12702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12703 as_fn_error "could not setup config headers machinery" "$LINENO" 5 12704fi # test -n "$CONFIG_HEADERS" 12705 12706 12707eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12708shift 12709for ac_tag 12710do 12711 case $ac_tag in 12712 :[FHLC]) ac_mode=$ac_tag; continue;; 12713 esac 12714 case $ac_mode$ac_tag in 12715 :[FHL]*:*);; 12716 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12717 :[FH]-) ac_tag=-:-;; 12718 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12719 esac 12720 ac_save_IFS=$IFS 12721 IFS=: 12722 set x $ac_tag 12723 IFS=$ac_save_IFS 12724 shift 12725 ac_file=$1 12726 shift 12727 12728 case $ac_mode in 12729 :L) ac_source=$1;; 12730 :[FH]) 12731 ac_file_inputs= 12732 for ac_f 12733 do 12734 case $ac_f in 12735 -) ac_f="$tmp/stdin";; 12736 *) # Look for the file first in the build tree, then in the source tree 12737 # (if the path is not absolute). The absolute path cannot be DOS-style, 12738 # because $ac_f cannot contain `:'. 12739 test -f "$ac_f" || 12740 case $ac_f in 12741 [\\/$]*) false;; 12742 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12743 esac || 12744 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12745 esac 12746 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12747 as_fn_append ac_file_inputs " '$ac_f'" 12748 done 12749 12750 # Let's still pretend it is `configure' which instantiates (i.e., don't 12751 # use $as_me), people would be surprised to read: 12752 # /* config.h. Generated by config.status. */ 12753 configure_input='Generated from '` 12754 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12755 `' by configure.' 12756 if test x"$ac_file" != x-; then 12757 configure_input="$ac_file. $configure_input" 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12759$as_echo "$as_me: creating $ac_file" >&6;} 12760 fi 12761 # Neutralize special characters interpreted by sed in replacement strings. 12762 case $configure_input in #( 12763 *\&* | *\|* | *\\* ) 12764 ac_sed_conf_input=`$as_echo "$configure_input" | 12765 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12766 *) ac_sed_conf_input=$configure_input;; 12767 esac 12768 12769 case $ac_tag in 12770 *:-:* | *:-) cat >"$tmp/stdin" \ 12771 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12772 esac 12773 ;; 12774 esac 12775 12776 ac_dir=`$as_dirname -- "$ac_file" || 12777$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12778 X"$ac_file" : 'X\(//\)[^/]' \| \ 12779 X"$ac_file" : 'X\(//\)$' \| \ 12780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12781$as_echo X"$ac_file" | 12782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12783 s//\1/ 12784 q 12785 } 12786 /^X\(\/\/\)[^/].*/{ 12787 s//\1/ 12788 q 12789 } 12790 /^X\(\/\/\)$/{ 12791 s//\1/ 12792 q 12793 } 12794 /^X\(\/\).*/{ 12795 s//\1/ 12796 q 12797 } 12798 s/.*/./; q'` 12799 as_dir="$ac_dir"; as_fn_mkdir_p 12800 ac_builddir=. 12801 12802case "$ac_dir" in 12803.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12804*) 12805 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12806 # A ".." for each directory in $ac_dir_suffix. 12807 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12808 case $ac_top_builddir_sub in 12809 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12810 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12811 esac ;; 12812esac 12813ac_abs_top_builddir=$ac_pwd 12814ac_abs_builddir=$ac_pwd$ac_dir_suffix 12815# for backward compatibility: 12816ac_top_builddir=$ac_top_build_prefix 12817 12818case $srcdir in 12819 .) # We are building in place. 12820 ac_srcdir=. 12821 ac_top_srcdir=$ac_top_builddir_sub 12822 ac_abs_top_srcdir=$ac_pwd ;; 12823 [\\/]* | ?:[\\/]* ) # Absolute name. 12824 ac_srcdir=$srcdir$ac_dir_suffix; 12825 ac_top_srcdir=$srcdir 12826 ac_abs_top_srcdir=$srcdir ;; 12827 *) # Relative name. 12828 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12829 ac_top_srcdir=$ac_top_build_prefix$srcdir 12830 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12831esac 12832ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12833 12834 12835 case $ac_mode in 12836 :F) 12837 # 12838 # CONFIG_FILE 12839 # 12840 12841 case $INSTALL in 12842 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12843 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12844 esac 12845 ac_MKDIR_P=$MKDIR_P 12846 case $MKDIR_P in 12847 [\\/$]* | ?:[\\/]* ) ;; 12848 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12849 esac 12850_ACEOF 12851 12852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12853# If the template does not know about datarootdir, expand it. 12854# FIXME: This hack should be removed a few years after 2.60. 12855ac_datarootdir_hack=; ac_datarootdir_seen= 12856ac_sed_dataroot=' 12857/datarootdir/ { 12858 p 12859 q 12860} 12861/@datadir@/p 12862/@docdir@/p 12863/@infodir@/p 12864/@localedir@/p 12865/@mandir@/p' 12866case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12867*datarootdir*) ac_datarootdir_seen=yes;; 12868*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12870$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12871_ACEOF 12872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12873 ac_datarootdir_hack=' 12874 s&@datadir@&$datadir&g 12875 s&@docdir@&$docdir&g 12876 s&@infodir@&$infodir&g 12877 s&@localedir@&$localedir&g 12878 s&@mandir@&$mandir&g 12879 s&\\\${datarootdir}&$datarootdir&g' ;; 12880esac 12881_ACEOF 12882 12883# Neutralize VPATH when `$srcdir' = `.'. 12884# Shell code in configure.ac might set extrasub. 12885# FIXME: do we really want to maintain this feature? 12886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12887ac_sed_extra="$ac_vpsub 12888$extrasub 12889_ACEOF 12890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12891:t 12892/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12893s|@configure_input@|$ac_sed_conf_input|;t t 12894s&@top_builddir@&$ac_top_builddir_sub&;t t 12895s&@top_build_prefix@&$ac_top_build_prefix&;t t 12896s&@srcdir@&$ac_srcdir&;t t 12897s&@abs_srcdir@&$ac_abs_srcdir&;t t 12898s&@top_srcdir@&$ac_top_srcdir&;t t 12899s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12900s&@builddir@&$ac_builddir&;t t 12901s&@abs_builddir@&$ac_abs_builddir&;t t 12902s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12903s&@INSTALL@&$ac_INSTALL&;t t 12904s&@MKDIR_P@&$ac_MKDIR_P&;t t 12905$ac_datarootdir_hack 12906" 12907eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12908 || as_fn_error "could not create $ac_file" "$LINENO" 5 12909 12910test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12911 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12912 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12914which seems to be undefined. Please make sure it is defined." >&5 12915$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12916which seems to be undefined. Please make sure it is defined." >&2;} 12917 12918 rm -f "$tmp/stdin" 12919 case $ac_file in 12920 -) cat "$tmp/out" && rm -f "$tmp/out";; 12921 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12922 esac \ 12923 || as_fn_error "could not create $ac_file" "$LINENO" 5 12924 ;; 12925 :H) 12926 # 12927 # CONFIG_HEADER 12928 # 12929 if test x"$ac_file" != x-; then 12930 { 12931 $as_echo "/* $configure_input */" \ 12932 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12933 } >"$tmp/config.h" \ 12934 || as_fn_error "could not create $ac_file" "$LINENO" 5 12935 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12937$as_echo "$as_me: $ac_file is unchanged" >&6;} 12938 else 12939 rm -f "$ac_file" 12940 mv "$tmp/config.h" "$ac_file" \ 12941 || as_fn_error "could not create $ac_file" "$LINENO" 5 12942 fi 12943 else 12944 $as_echo "/* $configure_input */" \ 12945 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12946 || as_fn_error "could not create -" "$LINENO" 5 12947 fi 12948# Compute "$ac_file"'s index in $config_headers. 12949_am_arg="$ac_file" 12950_am_stamp_count=1 12951for _am_header in $config_headers :; do 12952 case $_am_header in 12953 $_am_arg | $_am_arg:* ) 12954 break ;; 12955 * ) 12956 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12957 esac 12958done 12959echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12960$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12961 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12962 X"$_am_arg" : 'X\(//\)$' \| \ 12963 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12964$as_echo X"$_am_arg" | 12965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12966 s//\1/ 12967 q 12968 } 12969 /^X\(\/\/\)[^/].*/{ 12970 s//\1/ 12971 q 12972 } 12973 /^X\(\/\/\)$/{ 12974 s//\1/ 12975 q 12976 } 12977 /^X\(\/\).*/{ 12978 s//\1/ 12979 q 12980 } 12981 s/.*/./; q'`/stamp-h$_am_stamp_count 12982 ;; 12983 12984 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12985$as_echo "$as_me: executing $ac_file commands" >&6;} 12986 ;; 12987 esac 12988 12989 12990 case $ac_file$ac_mode in 12991 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12992 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12993 # are listed without --file. Let's play safe and only enable the eval 12994 # if we detect the quoting. 12995 case $CONFIG_FILES in 12996 *\'*) eval set x "$CONFIG_FILES" ;; 12997 *) set x $CONFIG_FILES ;; 12998 esac 12999 shift 13000 for mf 13001 do 13002 # Strip MF so we end up with the name of the file. 13003 mf=`echo "$mf" | sed -e 's/:.*$//'` 13004 # Check whether this is an Automake generated Makefile or not. 13005 # We used to match only the files named `Makefile.in', but 13006 # some people rename them; so instead we look at the file content. 13007 # Grep'ing the first line is not enough: some people post-process 13008 # each Makefile.in and add a new line on top of each file to say so. 13009 # Grep'ing the whole file is not good either: AIX grep has a line 13010 # limit of 2048, but all sed's we know have understand at least 4000. 13011 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13012 dirpart=`$as_dirname -- "$mf" || 13013$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13014 X"$mf" : 'X\(//\)[^/]' \| \ 13015 X"$mf" : 'X\(//\)$' \| \ 13016 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13017$as_echo X"$mf" | 13018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13019 s//\1/ 13020 q 13021 } 13022 /^X\(\/\/\)[^/].*/{ 13023 s//\1/ 13024 q 13025 } 13026 /^X\(\/\/\)$/{ 13027 s//\1/ 13028 q 13029 } 13030 /^X\(\/\).*/{ 13031 s//\1/ 13032 q 13033 } 13034 s/.*/./; q'` 13035 else 13036 continue 13037 fi 13038 # Extract the definition of DEPDIR, am__include, and am__quote 13039 # from the Makefile without running `make'. 13040 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13041 test -z "$DEPDIR" && continue 13042 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13043 test -z "am__include" && continue 13044 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13045 # When using ansi2knr, U may be empty or an underscore; expand it 13046 U=`sed -n 's/^U = //p' < "$mf"` 13047 # Find all dependency output files, they are included files with 13048 # $(DEPDIR) in their names. We invoke sed twice because it is the 13049 # simplest approach to changing $(DEPDIR) to its actual value in the 13050 # expansion. 13051 for file in `sed -n " 13052 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13053 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13054 # Make sure the directory exists. 13055 test -f "$dirpart/$file" && continue 13056 fdir=`$as_dirname -- "$file" || 13057$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13058 X"$file" : 'X\(//\)[^/]' \| \ 13059 X"$file" : 'X\(//\)$' \| \ 13060 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13061$as_echo X"$file" | 13062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13063 s//\1/ 13064 q 13065 } 13066 /^X\(\/\/\)[^/].*/{ 13067 s//\1/ 13068 q 13069 } 13070 /^X\(\/\/\)$/{ 13071 s//\1/ 13072 q 13073 } 13074 /^X\(\/\).*/{ 13075 s//\1/ 13076 q 13077 } 13078 s/.*/./; q'` 13079 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13080 # echo "creating $dirpart/$file" 13081 echo '# dummy' > "$dirpart/$file" 13082 done 13083 done 13084} 13085 ;; 13086 "libtool":C) 13087 13088 # See if we are running on zsh, and set the options which allow our 13089 # commands through without removal of \ escapes. 13090 if test -n "${ZSH_VERSION+set}" ; then 13091 setopt NO_GLOB_SUBST 13092 fi 13093 13094 cfgfile="${ofile}T" 13095 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13096 $RM "$cfgfile" 13097 13098 cat <<_LT_EOF >> "$cfgfile" 13099#! $SHELL 13100 13101# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13102# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13103# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13104# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13105# 13106# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13107# 2006, 2007, 2008 Free Software Foundation, Inc. 13108# Written by Gordon Matzigkeit, 1996 13109# 13110# This file is part of GNU Libtool. 13111# 13112# GNU Libtool is free software; you can redistribute it and/or 13113# modify it under the terms of the GNU General Public License as 13114# published by the Free Software Foundation; either version 2 of 13115# the License, or (at your option) any later version. 13116# 13117# As a special exception to the GNU General Public License, 13118# if you distribute this file as part of a program or library that 13119# is built using GNU Libtool, you may include this file under the 13120# same distribution terms that you use for the rest of that program. 13121# 13122# GNU Libtool is distributed in the hope that it will be useful, 13123# but WITHOUT ANY WARRANTY; without even the implied warranty of 13124# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13125# GNU General Public License for more details. 13126# 13127# You should have received a copy of the GNU General Public License 13128# along with GNU Libtool; see the file COPYING. If not, a copy 13129# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13130# obtained by writing to the Free Software Foundation, Inc., 13131# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13132 13133 13134# The names of the tagged configurations supported by this script. 13135available_tags="" 13136 13137# ### BEGIN LIBTOOL CONFIG 13138 13139# Whether or not to build static libraries. 13140build_old_libs=$enable_static 13141 13142# Which release of libtool.m4 was used? 13143macro_version=$macro_version 13144macro_revision=$macro_revision 13145 13146# Whether or not to build shared libraries. 13147build_libtool_libs=$enable_shared 13148 13149# What type of objects to build. 13150pic_mode=$pic_mode 13151 13152# Whether or not to optimize for fast installation. 13153fast_install=$enable_fast_install 13154 13155# The host system. 13156host_alias=$host_alias 13157host=$host 13158host_os=$host_os 13159 13160# The build system. 13161build_alias=$build_alias 13162build=$build 13163build_os=$build_os 13164 13165# A sed program that does not truncate output. 13166SED=$lt_SED 13167 13168# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13169Xsed="\$SED -e 1s/^X//" 13170 13171# A grep program that handles long lines. 13172GREP=$lt_GREP 13173 13174# An ERE matcher. 13175EGREP=$lt_EGREP 13176 13177# A literal string matcher. 13178FGREP=$lt_FGREP 13179 13180# A BSD- or MS-compatible name lister. 13181NM=$lt_NM 13182 13183# Whether we need soft or hard links. 13184LN_S=$lt_LN_S 13185 13186# What is the maximum length of a command? 13187max_cmd_len=$max_cmd_len 13188 13189# Object file suffix (normally "o"). 13190objext=$ac_objext 13191 13192# Executable file suffix (normally ""). 13193exeext=$exeext 13194 13195# whether the shell understands "unset". 13196lt_unset=$lt_unset 13197 13198# turn spaces into newlines. 13199SP2NL=$lt_lt_SP2NL 13200 13201# turn newlines into spaces. 13202NL2SP=$lt_lt_NL2SP 13203 13204# How to create reloadable object files. 13205reload_flag=$lt_reload_flag 13206reload_cmds=$lt_reload_cmds 13207 13208# An object symbol dumper. 13209OBJDUMP=$lt_OBJDUMP 13210 13211# Method to check whether dependent libraries are shared objects. 13212deplibs_check_method=$lt_deplibs_check_method 13213 13214# Command to use when deplibs_check_method == "file_magic". 13215file_magic_cmd=$lt_file_magic_cmd 13216 13217# The archiver. 13218AR=$lt_AR 13219AR_FLAGS=$lt_AR_FLAGS 13220 13221# A symbol stripping program. 13222STRIP=$lt_STRIP 13223 13224# Commands used to install an old-style archive. 13225RANLIB=$lt_RANLIB 13226old_postinstall_cmds=$lt_old_postinstall_cmds 13227old_postuninstall_cmds=$lt_old_postuninstall_cmds 13228 13229# A C compiler. 13230LTCC=$lt_CC 13231 13232# LTCC compiler flags. 13233LTCFLAGS=$lt_CFLAGS 13234 13235# Take the output of nm and produce a listing of raw symbols and C names. 13236global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13237 13238# Transform the output of nm in a proper C declaration. 13239global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13240 13241# Transform the output of nm in a C name address pair. 13242global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13243 13244# Transform the output of nm in a C name address pair when lib prefix is needed. 13245global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13246 13247# The name of the directory that contains temporary libtool files. 13248objdir=$objdir 13249 13250# Shell to use when invoking shell scripts. 13251SHELL=$lt_SHELL 13252 13253# An echo program that does not interpret backslashes. 13254ECHO=$lt_ECHO 13255 13256# Used to examine libraries when file_magic_cmd begins with "file". 13257MAGIC_CMD=$MAGIC_CMD 13258 13259# Must we lock files when doing compilation? 13260need_locks=$lt_need_locks 13261 13262# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13263DSYMUTIL=$lt_DSYMUTIL 13264 13265# Tool to change global to local symbols on Mac OS X. 13266NMEDIT=$lt_NMEDIT 13267 13268# Tool to manipulate fat objects and archives on Mac OS X. 13269LIPO=$lt_LIPO 13270 13271# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13272OTOOL=$lt_OTOOL 13273 13274# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13275OTOOL64=$lt_OTOOL64 13276 13277# Old archive suffix (normally "a"). 13278libext=$libext 13279 13280# Shared library suffix (normally ".so"). 13281shrext_cmds=$lt_shrext_cmds 13282 13283# The commands to extract the exported symbol list from a shared archive. 13284extract_expsyms_cmds=$lt_extract_expsyms_cmds 13285 13286# Variables whose values should be saved in libtool wrapper scripts and 13287# restored at link time. 13288variables_saved_for_relink=$lt_variables_saved_for_relink 13289 13290# Do we need the "lib" prefix for modules? 13291need_lib_prefix=$need_lib_prefix 13292 13293# Do we need a version for libraries? 13294need_version=$need_version 13295 13296# Library versioning type. 13297version_type=$version_type 13298 13299# Shared library runtime path variable. 13300runpath_var=$runpath_var 13301 13302# Shared library path variable. 13303shlibpath_var=$shlibpath_var 13304 13305# Is shlibpath searched before the hard-coded library search path? 13306shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13307 13308# Format of library name prefix. 13309libname_spec=$lt_libname_spec 13310 13311# List of archive names. First name is the real one, the rest are links. 13312# The last name is the one that the linker finds with -lNAME 13313library_names_spec=$lt_library_names_spec 13314 13315# The coded name of the library, if different from the real name. 13316soname_spec=$lt_soname_spec 13317 13318# Command to use after installation of a shared archive. 13319postinstall_cmds=$lt_postinstall_cmds 13320 13321# Command to use after uninstallation of a shared archive. 13322postuninstall_cmds=$lt_postuninstall_cmds 13323 13324# Commands used to finish a libtool library installation in a directory. 13325finish_cmds=$lt_finish_cmds 13326 13327# As "finish_cmds", except a single script fragment to be evaled but 13328# not shown. 13329finish_eval=$lt_finish_eval 13330 13331# Whether we should hardcode library paths into libraries. 13332hardcode_into_libs=$hardcode_into_libs 13333 13334# Compile-time system search path for libraries. 13335sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13336 13337# Run-time system search path for libraries. 13338sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13339 13340# Whether dlopen is supported. 13341dlopen_support=$enable_dlopen 13342 13343# Whether dlopen of programs is supported. 13344dlopen_self=$enable_dlopen_self 13345 13346# Whether dlopen of statically linked programs is supported. 13347dlopen_self_static=$enable_dlopen_self_static 13348 13349# Commands to strip libraries. 13350old_striplib=$lt_old_striplib 13351striplib=$lt_striplib 13352 13353 13354# The linker used to build libraries. 13355LD=$lt_LD 13356 13357# Commands used to build an old-style archive. 13358old_archive_cmds=$lt_old_archive_cmds 13359 13360# A language specific compiler. 13361CC=$lt_compiler 13362 13363# Is the compiler the GNU compiler? 13364with_gcc=$GCC 13365 13366# Compiler flag to turn off builtin functions. 13367no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13368 13369# How to pass a linker flag through the compiler. 13370wl=$lt_lt_prog_compiler_wl 13371 13372# Additional compiler flags for building library objects. 13373pic_flag=$lt_lt_prog_compiler_pic 13374 13375# Compiler flag to prevent dynamic linking. 13376link_static_flag=$lt_lt_prog_compiler_static 13377 13378# Does compiler simultaneously support -c and -o options? 13379compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13380 13381# Whether or not to add -lc for building shared libraries. 13382build_libtool_need_lc=$archive_cmds_need_lc 13383 13384# Whether or not to disallow shared libs when runtime libs are static. 13385allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13386 13387# Compiler flag to allow reflexive dlopens. 13388export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13389 13390# Compiler flag to generate shared objects directly from archives. 13391whole_archive_flag_spec=$lt_whole_archive_flag_spec 13392 13393# Whether the compiler copes with passing no objects directly. 13394compiler_needs_object=$lt_compiler_needs_object 13395 13396# Create an old-style archive from a shared archive. 13397old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13398 13399# Create a temporary old-style archive to link instead of a shared archive. 13400old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13401 13402# Commands used to build a shared archive. 13403archive_cmds=$lt_archive_cmds 13404archive_expsym_cmds=$lt_archive_expsym_cmds 13405 13406# Commands used to build a loadable module if different from building 13407# a shared archive. 13408module_cmds=$lt_module_cmds 13409module_expsym_cmds=$lt_module_expsym_cmds 13410 13411# Whether we are building with GNU ld or not. 13412with_gnu_ld=$lt_with_gnu_ld 13413 13414# Flag that allows shared libraries with undefined symbols to be built. 13415allow_undefined_flag=$lt_allow_undefined_flag 13416 13417# Flag that enforces no undefined symbols. 13418no_undefined_flag=$lt_no_undefined_flag 13419 13420# Flag to hardcode \$libdir into a binary during linking. 13421# This must work even if \$libdir does not exist 13422hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13423 13424# If ld is used when linking, flag to hardcode \$libdir into a binary 13425# during linking. This must work even if \$libdir does not exist. 13426hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13427 13428# Whether we need a single "-rpath" flag with a separated argument. 13429hardcode_libdir_separator=$lt_hardcode_libdir_separator 13430 13431# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13432# DIR into the resulting binary. 13433hardcode_direct=$hardcode_direct 13434 13435# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13436# DIR into the resulting binary and the resulting library dependency is 13437# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13438# library is relocated. 13439hardcode_direct_absolute=$hardcode_direct_absolute 13440 13441# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13442# into the resulting binary. 13443hardcode_minus_L=$hardcode_minus_L 13444 13445# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13446# into the resulting binary. 13447hardcode_shlibpath_var=$hardcode_shlibpath_var 13448 13449# Set to "yes" if building a shared library automatically hardcodes DIR 13450# into the library and all subsequent libraries and executables linked 13451# against it. 13452hardcode_automatic=$hardcode_automatic 13453 13454# Set to yes if linker adds runtime paths of dependent libraries 13455# to runtime path list. 13456inherit_rpath=$inherit_rpath 13457 13458# Whether libtool must link a program against all its dependency libraries. 13459link_all_deplibs=$link_all_deplibs 13460 13461# Fix the shell variable \$srcfile for the compiler. 13462fix_srcfile_path=$lt_fix_srcfile_path 13463 13464# Set to "yes" if exported symbols are required. 13465always_export_symbols=$always_export_symbols 13466 13467# The commands to list exported symbols. 13468export_symbols_cmds=$lt_export_symbols_cmds 13469 13470# Symbols that should not be listed in the preloaded symbols. 13471exclude_expsyms=$lt_exclude_expsyms 13472 13473# Symbols that must always be exported. 13474include_expsyms=$lt_include_expsyms 13475 13476# Commands necessary for linking programs (against libraries) with templates. 13477prelink_cmds=$lt_prelink_cmds 13478 13479# Specify filename containing input files. 13480file_list_spec=$lt_file_list_spec 13481 13482# How to hardcode a shared library path into an executable. 13483hardcode_action=$hardcode_action 13484 13485# ### END LIBTOOL CONFIG 13486 13487_LT_EOF 13488 13489 case $host_os in 13490 aix3*) 13491 cat <<\_LT_EOF >> "$cfgfile" 13492# AIX sometimes has problems with the GCC collect2 program. For some 13493# reason, if we set the COLLECT_NAMES environment variable, the problems 13494# vanish in a puff of smoke. 13495if test "X${COLLECT_NAMES+set}" != Xset; then 13496 COLLECT_NAMES= 13497 export COLLECT_NAMES 13498fi 13499_LT_EOF 13500 ;; 13501 esac 13502 13503 13504ltmain="$ac_aux_dir/ltmain.sh" 13505 13506 13507 # We use sed instead of cat because bash on DJGPP gets confused if 13508 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13509 # text mode, it properly converts lines to CR/LF. This bash problem 13510 # is reportedly fixed, but why not run on old versions too? 13511 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13512 || (rm -f "$cfgfile"; exit 1) 13513 13514 case $xsi_shell in 13515 yes) 13516 cat << \_LT_EOF >> "$cfgfile" 13517 13518# func_dirname file append nondir_replacement 13519# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13520# otherwise set result to NONDIR_REPLACEMENT. 13521func_dirname () 13522{ 13523 case ${1} in 13524 */*) func_dirname_result="${1%/*}${2}" ;; 13525 * ) func_dirname_result="${3}" ;; 13526 esac 13527} 13528 13529# func_basename file 13530func_basename () 13531{ 13532 func_basename_result="${1##*/}" 13533} 13534 13535# func_dirname_and_basename file append nondir_replacement 13536# perform func_basename and func_dirname in a single function 13537# call: 13538# dirname: Compute the dirname of FILE. If nonempty, 13539# add APPEND to the result, otherwise set result 13540# to NONDIR_REPLACEMENT. 13541# value returned in "$func_dirname_result" 13542# basename: Compute filename of FILE. 13543# value retuned in "$func_basename_result" 13544# Implementation must be kept synchronized with func_dirname 13545# and func_basename. For efficiency, we do not delegate to 13546# those functions but instead duplicate the functionality here. 13547func_dirname_and_basename () 13548{ 13549 case ${1} in 13550 */*) func_dirname_result="${1%/*}${2}" ;; 13551 * ) func_dirname_result="${3}" ;; 13552 esac 13553 func_basename_result="${1##*/}" 13554} 13555 13556# func_stripname prefix suffix name 13557# strip PREFIX and SUFFIX off of NAME. 13558# PREFIX and SUFFIX must not contain globbing or regex special 13559# characters, hashes, percent signs, but SUFFIX may contain a leading 13560# dot (in which case that matches only a dot). 13561func_stripname () 13562{ 13563 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13564 # positional parameters, so assign one to ordinary parameter first. 13565 func_stripname_result=${3} 13566 func_stripname_result=${func_stripname_result#"${1}"} 13567 func_stripname_result=${func_stripname_result%"${2}"} 13568} 13569 13570# func_opt_split 13571func_opt_split () 13572{ 13573 func_opt_split_opt=${1%%=*} 13574 func_opt_split_arg=${1#*=} 13575} 13576 13577# func_lo2o object 13578func_lo2o () 13579{ 13580 case ${1} in 13581 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13582 *) func_lo2o_result=${1} ;; 13583 esac 13584} 13585 13586# func_xform libobj-or-source 13587func_xform () 13588{ 13589 func_xform_result=${1%.*}.lo 13590} 13591 13592# func_arith arithmetic-term... 13593func_arith () 13594{ 13595 func_arith_result=$(( $* )) 13596} 13597 13598# func_len string 13599# STRING may not start with a hyphen. 13600func_len () 13601{ 13602 func_len_result=${#1} 13603} 13604 13605_LT_EOF 13606 ;; 13607 *) # Bourne compatible functions. 13608 cat << \_LT_EOF >> "$cfgfile" 13609 13610# func_dirname file append nondir_replacement 13611# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13612# otherwise set result to NONDIR_REPLACEMENT. 13613func_dirname () 13614{ 13615 # Extract subdirectory from the argument. 13616 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13617 if test "X$func_dirname_result" = "X${1}"; then 13618 func_dirname_result="${3}" 13619 else 13620 func_dirname_result="$func_dirname_result${2}" 13621 fi 13622} 13623 13624# func_basename file 13625func_basename () 13626{ 13627 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13628} 13629 13630 13631# func_stripname prefix suffix name 13632# strip PREFIX and SUFFIX off of NAME. 13633# PREFIX and SUFFIX must not contain globbing or regex special 13634# characters, hashes, percent signs, but SUFFIX may contain a leading 13635# dot (in which case that matches only a dot). 13636# func_strip_suffix prefix name 13637func_stripname () 13638{ 13639 case ${2} in 13640 .*) func_stripname_result=`$ECHO "X${3}" \ 13641 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13642 *) func_stripname_result=`$ECHO "X${3}" \ 13643 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13644 esac 13645} 13646 13647# sed scripts: 13648my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13649my_sed_long_arg='1s/^-[^=]*=//' 13650 13651# func_opt_split 13652func_opt_split () 13653{ 13654 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13655 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13656} 13657 13658# func_lo2o object 13659func_lo2o () 13660{ 13661 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13662} 13663 13664# func_xform libobj-or-source 13665func_xform () 13666{ 13667 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13668} 13669 13670# func_arith arithmetic-term... 13671func_arith () 13672{ 13673 func_arith_result=`expr "$@"` 13674} 13675 13676# func_len string 13677# STRING may not start with a hyphen. 13678func_len () 13679{ 13680 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13681} 13682 13683_LT_EOF 13684esac 13685 13686case $lt_shell_append in 13687 yes) 13688 cat << \_LT_EOF >> "$cfgfile" 13689 13690# func_append var value 13691# Append VALUE to the end of shell variable VAR. 13692func_append () 13693{ 13694 eval "$1+=\$2" 13695} 13696_LT_EOF 13697 ;; 13698 *) 13699 cat << \_LT_EOF >> "$cfgfile" 13700 13701# func_append var value 13702# Append VALUE to the end of shell variable VAR. 13703func_append () 13704{ 13705 eval "$1=\$$1\$2" 13706} 13707 13708_LT_EOF 13709 ;; 13710 esac 13711 13712 13713 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13714 || (rm -f "$cfgfile"; exit 1) 13715 13716 mv -f "$cfgfile" "$ofile" || 13717 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13718 chmod +x "$ofile" 13719 13720 ;; 13721 13722 esac 13723done # for ac_tag 13724 13725 13726as_fn_exit 0 13727_ACEOF 13728ac_clean_files=$ac_clean_files_save 13729 13730test $ac_write_fail = 0 || 13731 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13732 13733 13734# configure is writing to config.log, and then calls config.status. 13735# config.status does its own redirection, appending to config.log. 13736# Unfortunately, on DOS this fails, as config.log is still kept open 13737# by configure, so config.status won't be able to write to it; its 13738# output is simply discarded. So we exec the FD to /dev/null, 13739# effectively closing config.log, so it can be properly (re)opened and 13740# appended to by config.status. When coming back to configure, we 13741# need to make the FD available again. 13742if test "$no_create" != yes; then 13743 ac_cs_success=: 13744 ac_config_status_args= 13745 test "$silent" = yes && 13746 ac_config_status_args="$ac_config_status_args --quiet" 13747 exec 5>/dev/null 13748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13749 exec 5>>config.log 13750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13751 # would make configure fail if this is the last instruction. 13752 $ac_cs_success || as_fn_exit $? 13753fi 13754if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13756$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13757fi 13758 13759