1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for libmpd 11.8.17. 4# 5# Report bugs to <qball@sarine.nl>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 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 qball@sarine.nl 234$0: about your system, including any error possibly output 235$0: before this message. Then install a modern shell, or 236$0: manually run the script under such a shell if you do 237$0: have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error STATUS ERROR [LINENO LOG_FD] 363# ---------------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with STATUS, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$1; test $as_status -eq 0 && as_status=1 370 if test "$4"; then 371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 373 fi 374 $as_echo "$as_me: error: $2" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$lt_ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543ECHO=${lt_ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $ECHO works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<_LT_EOF 562$* 563_LT_EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$lt_ECHO"; then 572 if test "X${echo_test_string+set}" != Xset; then 573 # find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 578 then 579 break 580 fi 581 done 582 fi 583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 586 test "X$echo_testing_string" = "X$echo_test_string"; then 587 : 588 else 589 # The Solaris, AIX, and Digital Unix default echo programs unquote 590 # backslashes. This makes it impossible to quote backslashes using 591 # echo "$something" | sed 's/\\/\\\\/g' 592 # 593 # So, first we look for a working echo in the user's PATH. 594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 596 for dir in $PATH /usr/ucb; do 597 IFS="$lt_save_ifs" 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 601 test "X$echo_testing_string" = "X$echo_test_string"; then 602 ECHO="$dir/echo" 603 break 604 fi 605 done 606 IFS="$lt_save_ifs" 607 608 if test "X$ECHO" = Xecho; then 609 # We didn't find a better echo, so look for alternatives. 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 612 test "X$echo_testing_string" = "X$echo_test_string"; then 613 # This shell has a builtin print -r that does the trick. 614 ECHO='print -r' 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 616 test "X$CONFIG_SHELL" != X/bin/ksh; then 617 # If we have ksh, try running configure again with it. 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 619 export ORIGINAL_CONFIG_SHELL 620 CONFIG_SHELL=/bin/ksh 621 export CONFIG_SHELL 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 623 else 624 # Try using printf. 625 ECHO='printf %s\n' 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 # Cool, printf works 630 : 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 632 test "X$echo_testing_string" = 'X\t' && 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 636 export CONFIG_SHELL 637 SHELL="$CONFIG_SHELL" 638 export SHELL 639 ECHO="$CONFIG_SHELL $0 --fallback-echo" 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 641 test "X$echo_testing_string" = 'X\t' && 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" 645 else 646 # maybe with a smaller string... 647 prev=: 648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 651 then 652 break 653 fi 654 prev="$cmd" 655 done 656 657 if test "$prev" != 'sed 50q "$0"'; then 658 echo_test_string=`eval $prev` 659 export echo_test_string 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 661 else 662 # Oops. We lost completely, so just stick with echo. 663 ECHO=echo 664 fi 665 fi 666 fi 667 fi 668 fi 669fi 670 671# Copy echo and quote the copy suitably for passing to libtool from 672# the Makefile, instead of quoting the original, which is used later. 673lt_ECHO=$ECHO 674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 676fi 677 678 679 680 681test -n "$DJDIR" || exec 7<&0 </dev/null 682exec 6>&1 683 684# Name of the host. 685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 686# so uname gets run too. 687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 688 689# 690# Initializations. 691# 692ac_default_prefix=/usr/local 693ac_clean_files= 694ac_config_libobj_dir=. 695LIBOBJS= 696cross_compiling=no 697subdirs= 698MFLAGS= 699MAKEFLAGS= 700 701# Identity of this package. 702PACKAGE_NAME='libmpd' 703PACKAGE_TARNAME='libmpd' 704PACKAGE_VERSION='11.8.17' 705PACKAGE_STRING='libmpd 11.8.17' 706PACKAGE_BUGREPORT='qball@sarine.nl' 707PACKAGE_URL='' 708 709# Factoring default headers for most tests. 710ac_includes_default="\ 711#include <stdio.h> 712#ifdef HAVE_SYS_TYPES_H 713# include <sys/types.h> 714#endif 715#ifdef HAVE_SYS_STAT_H 716# include <sys/stat.h> 717#endif 718#ifdef STDC_HEADERS 719# include <stdlib.h> 720# include <stddef.h> 721#else 722# ifdef HAVE_STDLIB_H 723# include <stdlib.h> 724# endif 725#endif 726#ifdef HAVE_STRING_H 727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 728# include <memory.h> 729# endif 730# include <string.h> 731#endif 732#ifdef HAVE_STRINGS_H 733# include <strings.h> 734#endif 735#ifdef HAVE_INTTYPES_H 736# include <inttypes.h> 737#endif 738#ifdef HAVE_STDINT_H 739# include <stdint.h> 740#endif 741#ifdef HAVE_UNISTD_H 742# include <unistd.h> 743#endif" 744 745ac_subst_vars='am__EXEEXT_FALSE 746am__EXEEXT_TRUE 747LTLIBOBJS 748glib_LIBS 749glib_CFLAGS 750PKG_CONFIG_LIBDIR 751PKG_CONFIG_PATH 752PKG_CONFIG 753EXTRA_LDFLAGS 754EXTRA_CFLAGS 755LIBOBJS 756CPP 757OTOOL64 758OTOOL 759LIPO 760NMEDIT 761DSYMUTIL 762lt_ECHO 763RANLIB 764AR 765LN_S 766NM 767ac_ct_DUMPBIN 768DUMPBIN 769LD 770FGREP 771EGREP 772GREP 773SED 774LIBTOOL 775OBJDUMP 776DLLTOOL 777AS 778host_os 779host_vendor 780host_cpu 781host 782build_os 783build_vendor 784build_cpu 785build 786am__fastdepCC_FALSE 787am__fastdepCC_TRUE 788CCDEPMODE 789AMDEPBACKSLASH 790AMDEP_FALSE 791AMDEP_TRUE 792am__quote 793am__include 794DEPDIR 795OBJEXT 796EXEEXT 797ac_ct_CC 798CPPFLAGS 799LDFLAGS 800CFLAGS 801CC 802LIBMPD_LIBTOOL_VERSION 803LIBMPD_MICRO_VERSION 804LIBMPD_MINOR_VERSION 805LIBMPD_MAJOR_VERSION 806am__untar 807am__tar 808AMTAR 809am__leading_dot 810SET_MAKE 811AWK 812mkdir_p 813MKDIR_P 814INSTALL_STRIP_PROGRAM 815STRIP 816install_sh 817MAKEINFO 818AUTOHEADER 819AUTOMAKE 820AUTOCONF 821ACLOCAL 822VERSION 823PACKAGE 824CYGPATH_W 825am__isrc 826INSTALL_DATA 827INSTALL_SCRIPT 828INSTALL_PROGRAM 829target_alias 830host_alias 831build_alias 832LIBS 833ECHO_T 834ECHO_N 835ECHO_C 836DEFS 837mandir 838localedir 839libdir 840psdir 841pdfdir 842dvidir 843htmldir 844infodir 845docdir 846oldincludedir 847includedir 848localstatedir 849sharedstatedir 850sysconfdir 851datadir 852datarootdir 853libexecdir 854sbindir 855bindir 856program_transform_name 857prefix 858exec_prefix 859PACKAGE_URL 860PACKAGE_BUGREPORT 861PACKAGE_STRING 862PACKAGE_VERSION 863PACKAGE_TARNAME 864PACKAGE_NAME 865PATH_SEPARATOR 866SHELL' 867ac_subst_files='' 868ac_user_opts=' 869enable_option_checking 870enable_dependency_tracking 871enable_shared 872enable_static 873with_pic 874enable_fast_install 875with_gnu_ld 876enable_libtool_lock 877' 878 ac_precious_vars='build_alias 879host_alias 880target_alias 881CC 882CFLAGS 883LDFLAGS 884LIBS 885CPPFLAGS 886CPP 887PKG_CONFIG 888PKG_CONFIG_PATH 889PKG_CONFIG_LIBDIR 890glib_CFLAGS 891glib_LIBS' 892 893 894# Initialize some variables set by options. 895ac_init_help= 896ac_init_version=false 897ac_unrecognized_opts= 898ac_unrecognized_sep= 899# The variables have the same names as the options, with 900# dashes changed to underlines. 901cache_file=/dev/null 902exec_prefix=NONE 903no_create= 904no_recursion= 905prefix=NONE 906program_prefix=NONE 907program_suffix=NONE 908program_transform_name=s,x,x, 909silent= 910site= 911srcdir= 912verbose= 913x_includes=NONE 914x_libraries=NONE 915 916# Installation directory options. 917# These are left unexpanded so users can "make install exec_prefix=/foo" 918# and all the variables that are supposed to be based on exec_prefix 919# by default will actually change. 920# Use braces instead of parens because sh, perl, etc. also accept them. 921# (The list follows the same order as the GNU Coding Standards.) 922bindir='${exec_prefix}/bin' 923sbindir='${exec_prefix}/sbin' 924libexecdir='${exec_prefix}/libexec' 925datarootdir='${prefix}/share' 926datadir='${datarootdir}' 927sysconfdir='${prefix}/etc' 928sharedstatedir='${prefix}/com' 929localstatedir='${prefix}/var' 930includedir='${prefix}/include' 931oldincludedir='/usr/include' 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933infodir='${datarootdir}/info' 934htmldir='${docdir}' 935dvidir='${docdir}' 936pdfdir='${docdir}' 937psdir='${docdir}' 938libdir='${exec_prefix}/lib' 939localedir='${datarootdir}/locale' 940mandir='${datarootdir}/man' 941 942ac_prev= 943ac_dashdash= 944for ac_option 945do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *=) ac_optarg= ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 # Accept the important Cygnus configure options, so we can diagnose typos. 960 961 case $ac_dashdash$ac_option in 962 --) 963 ac_dashdash=yes ;; 964 965 -bindir | --bindir | --bindi | --bind | --bin | --bi) 966 ac_prev=bindir ;; 967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 968 bindir=$ac_optarg ;; 969 970 -build | --build | --buil | --bui | --bu) 971 ac_prev=build_alias ;; 972 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 973 build_alias=$ac_optarg ;; 974 975 -cache-file | --cache-file | --cache-fil | --cache-fi \ 976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 977 ac_prev=cache_file ;; 978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 980 cache_file=$ac_optarg ;; 981 982 --config-cache | -C) 983 cache_file=config.cache ;; 984 985 -datadir | --datadir | --datadi | --datad) 986 ac_prev=datadir ;; 987 -datadir=* | --datadir=* | --datadi=* | --datad=*) 988 datadir=$ac_optarg ;; 989 990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 991 | --dataroo | --dataro | --datar) 992 ac_prev=datarootdir ;; 993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 995 datarootdir=$ac_optarg ;; 996 997 -disable-* | --disable-*) 998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 999 # Reject names that are not valid shell variable names. 1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1001 as_fn_error $? "invalid feature name: $ac_useropt" 1002 ac_useropt_orig=$ac_useropt 1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1004 case $ac_user_opts in 1005 *" 1006"enable_$ac_useropt" 1007"*) ;; 1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1009 ac_unrecognized_sep=', ';; 1010 esac 1011 eval enable_$ac_useropt=no ;; 1012 1013 -docdir | --docdir | --docdi | --doc | --do) 1014 ac_prev=docdir ;; 1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1016 docdir=$ac_optarg ;; 1017 1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1019 ac_prev=dvidir ;; 1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1021 dvidir=$ac_optarg ;; 1022 1023 -enable-* | --enable-*) 1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1027 as_fn_error $? "invalid feature name: $ac_useropt" 1028 ac_useropt_orig=$ac_useropt 1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1030 case $ac_user_opts in 1031 *" 1032"enable_$ac_useropt" 1033"*) ;; 1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1035 ac_unrecognized_sep=', ';; 1036 esac 1037 eval enable_$ac_useropt=\$ac_optarg ;; 1038 1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1041 | --exec | --exe | --ex) 1042 ac_prev=exec_prefix ;; 1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1045 | --exec=* | --exe=* | --ex=*) 1046 exec_prefix=$ac_optarg ;; 1047 1048 -gas | --gas | --ga | --g) 1049 # Obsolete; use --with-gas. 1050 with_gas=yes ;; 1051 1052 -help | --help | --hel | --he | -h) 1053 ac_init_help=long ;; 1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1055 ac_init_help=recursive ;; 1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1057 ac_init_help=short ;; 1058 1059 -host | --host | --hos | --ho) 1060 ac_prev=host_alias ;; 1061 -host=* | --host=* | --hos=* | --ho=*) 1062 host_alias=$ac_optarg ;; 1063 1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1065 ac_prev=htmldir ;; 1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1067 | --ht=*) 1068 htmldir=$ac_optarg ;; 1069 1070 -includedir | --includedir | --includedi | --included | --include \ 1071 | --includ | --inclu | --incl | --inc) 1072 ac_prev=includedir ;; 1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1074 | --includ=* | --inclu=* | --incl=* | --inc=*) 1075 includedir=$ac_optarg ;; 1076 1077 -infodir | --infodir | --infodi | --infod | --info | --inf) 1078 ac_prev=infodir ;; 1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1080 infodir=$ac_optarg ;; 1081 1082 -libdir | --libdir | --libdi | --libd) 1083 ac_prev=libdir ;; 1084 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1085 libdir=$ac_optarg ;; 1086 1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1088 | --libexe | --libex | --libe) 1089 ac_prev=libexecdir ;; 1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1091 | --libexe=* | --libex=* | --libe=*) 1092 libexecdir=$ac_optarg ;; 1093 1094 -localedir | --localedir | --localedi | --localed | --locale) 1095 ac_prev=localedir ;; 1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1097 localedir=$ac_optarg ;; 1098 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1100 | --localstate | --localstat | --localsta | --localst | --locals) 1101 ac_prev=localstatedir ;; 1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1104 localstatedir=$ac_optarg ;; 1105 1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1107 ac_prev=mandir ;; 1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1109 mandir=$ac_optarg ;; 1110 1111 -nfp | --nfp | --nf) 1112 # Obsolete; use --without-fp. 1113 with_fp=no ;; 1114 1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1116 | --no-cr | --no-c | -n) 1117 no_create=yes ;; 1118 1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1121 no_recursion=yes ;; 1122 1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1125 | --oldin | --oldi | --old | --ol | --o) 1126 ac_prev=oldincludedir ;; 1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1130 oldincludedir=$ac_optarg ;; 1131 1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1133 ac_prev=prefix ;; 1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1135 prefix=$ac_optarg ;; 1136 1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1138 | --program-pre | --program-pr | --program-p) 1139 ac_prev=program_prefix ;; 1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1142 program_prefix=$ac_optarg ;; 1143 1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1145 | --program-suf | --program-su | --program-s) 1146 ac_prev=program_suffix ;; 1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1149 program_suffix=$ac_optarg ;; 1150 1151 -program-transform-name | --program-transform-name \ 1152 | --program-transform-nam | --program-transform-na \ 1153 | --program-transform-n | --program-transform- \ 1154 | --program-transform | --program-transfor \ 1155 | --program-transfo | --program-transf \ 1156 | --program-trans | --program-tran \ 1157 | --progr-tra | --program-tr | --program-t) 1158 ac_prev=program_transform_name ;; 1159 -program-transform-name=* | --program-transform-name=* \ 1160 | --program-transform-nam=* | --program-transform-na=* \ 1161 | --program-transform-n=* | --program-transform-=* \ 1162 | --program-transform=* | --program-transfor=* \ 1163 | --program-transfo=* | --program-transf=* \ 1164 | --program-trans=* | --program-tran=* \ 1165 | --progr-tra=* | --program-tr=* | --program-t=*) 1166 program_transform_name=$ac_optarg ;; 1167 1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1169 ac_prev=pdfdir ;; 1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1171 pdfdir=$ac_optarg ;; 1172 1173 -psdir | --psdir | --psdi | --psd | --ps) 1174 ac_prev=psdir ;; 1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1176 psdir=$ac_optarg ;; 1177 1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1179 | -silent | --silent | --silen | --sile | --sil) 1180 silent=yes ;; 1181 1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1183 ac_prev=sbindir ;; 1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1185 | --sbi=* | --sb=*) 1186 sbindir=$ac_optarg ;; 1187 1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1190 | --sharedst | --shareds | --shared | --share | --shar \ 1191 | --sha | --sh) 1192 ac_prev=sharedstatedir ;; 1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1196 | --sha=* | --sh=*) 1197 sharedstatedir=$ac_optarg ;; 1198 1199 -site | --site | --sit) 1200 ac_prev=site ;; 1201 -site=* | --site=* | --sit=*) 1202 site=$ac_optarg ;; 1203 1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1205 ac_prev=srcdir ;; 1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1207 srcdir=$ac_optarg ;; 1208 1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1210 | --syscon | --sysco | --sysc | --sys | --sy) 1211 ac_prev=sysconfdir ;; 1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1214 sysconfdir=$ac_optarg ;; 1215 1216 -target | --target | --targe | --targ | --tar | --ta | --t) 1217 ac_prev=target_alias ;; 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1219 target_alias=$ac_optarg ;; 1220 1221 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1222 verbose=yes ;; 1223 1224 -version | --version | --versio | --versi | --vers | -V) 1225 ac_init_version=: ;; 1226 1227 -with-* | --with-*) 1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1231 as_fn_error $? "invalid package name: $ac_useropt" 1232 ac_useropt_orig=$ac_useropt 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1234 case $ac_user_opts in 1235 *" 1236"with_$ac_useropt" 1237"*) ;; 1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1239 ac_unrecognized_sep=', ';; 1240 esac 1241 eval with_$ac_useropt=\$ac_optarg ;; 1242 1243 -without-* | --without-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error $? "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=no ;; 1258 1259 --x) 1260 # Obsolete; use --with-x. 1261 with_x=yes ;; 1262 1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1264 | --x-incl | --x-inc | --x-in | --x-i) 1265 ac_prev=x_includes ;; 1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1268 x_includes=$ac_optarg ;; 1269 1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1272 ac_prev=x_libraries ;; 1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1275 x_libraries=$ac_optarg ;; 1276 1277 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1278Try \`$0 --help' for more information" 1279 ;; 1280 1281 *=*) 1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1283 # Reject names that are not valid shell variable names. 1284 case $ac_envvar in #( 1285 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1287 esac 1288 eval $ac_envvar=\$ac_optarg 1289 export $ac_envvar ;; 1290 1291 *) 1292 # FIXME: should be removed in autoconf 3.0. 1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1297 ;; 1298 1299 esac 1300done 1301 1302if test -n "$ac_prev"; then 1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1304 as_fn_error $? "missing argument to $ac_option" 1305fi 1306 1307if test -n "$ac_unrecognized_opts"; then 1308 case $enable_option_checking in 1309 no) ;; 1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1312 esac 1313fi 1314 1315# Check all directory arguments for consistency. 1316for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1317 datadir sysconfdir sharedstatedir localstatedir includedir \ 1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1319 libdir localedir mandir 1320do 1321 eval ac_val=\$$ac_var 1322 # Remove trailing slashes. 1323 case $ac_val in 1324 */ ) 1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1326 eval $ac_var=\$ac_val;; 1327 esac 1328 # Be sure to have absolute directory names. 1329 case $ac_val in 1330 [\\/$]* | ?:[\\/]* ) continue;; 1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1332 esac 1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1334done 1335 1336# There might be people who depend on the old broken behavior: `$host' 1337# used to hold the argument of --host etc. 1338# FIXME: To remove some day. 1339build=$build_alias 1340host=$host_alias 1341target=$target_alias 1342 1343# FIXME: To remove some day. 1344if test "x$host_alias" != x; then 1345 if test "x$build_alias" = x; then 1346 cross_compiling=maybe 1347 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1348 If a cross compiler is detected then cross compile mode will be used" >&2 1349 elif test "x$build_alias" != "x$host_alias"; then 1350 cross_compiling=yes 1351 fi 1352fi 1353 1354ac_tool_prefix= 1355test -n "$host_alias" && ac_tool_prefix=$host_alias- 1356 1357test "$silent" = yes && exec 6>/dev/null 1358 1359 1360ac_pwd=`pwd` && test -n "$ac_pwd" && 1361ac_ls_di=`ls -di .` && 1362ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1363 as_fn_error $? "working directory cannot be determined" 1364test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1365 as_fn_error $? "pwd does not report name of working directory" 1366 1367 1368# Find the source files, if location was not specified. 1369if test -z "$srcdir"; then 1370 ac_srcdir_defaulted=yes 1371 # Try the directory containing this script, then the parent directory. 1372 ac_confdir=`$as_dirname -- "$as_myself" || 1373$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1374 X"$as_myself" : 'X\(//\)[^/]' \| \ 1375 X"$as_myself" : 'X\(//\)$' \| \ 1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1377$as_echo X"$as_myself" | 1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\/\)[^/].*/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\/\)$/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\).*/{ 1391 s//\1/ 1392 q 1393 } 1394 s/.*/./; q'` 1395 srcdir=$ac_confdir 1396 if test ! -r "$srcdir/$ac_unique_file"; then 1397 srcdir=.. 1398 fi 1399else 1400 ac_srcdir_defaulted=no 1401fi 1402if test ! -r "$srcdir/$ac_unique_file"; then 1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1404 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1405fi 1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1407ac_abs_confdir=`( 1408 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1409 pwd)` 1410# When building in place, set srcdir=. 1411if test "$ac_abs_confdir" = "$ac_pwd"; then 1412 srcdir=. 1413fi 1414# Remove unnecessary trailing slashes from srcdir. 1415# Double slashes in file names in object file debugging info 1416# mess up M-x gdb in Emacs. 1417case $srcdir in 1418*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1419esac 1420for ac_var in $ac_precious_vars; do 1421 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1422 eval ac_env_${ac_var}_value=\$${ac_var} 1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1424 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1425done 1426 1427# 1428# Report the --help message. 1429# 1430if test "$ac_init_help" = "long"; then 1431 # Omit some internal or obsolete options to make the list less imposing. 1432 # This message is too long to be a string in the A/UX 3.1 sh. 1433 cat <<_ACEOF 1434\`configure' configures libmpd 11.8.17 to adapt to many kinds of systems. 1435 1436Usage: $0 [OPTION]... [VAR=VALUE]... 1437 1438To assign environment variables (e.g., CC, CFLAGS...), specify them as 1439VAR=VALUE. See below for descriptions of some of the useful variables. 1440 1441Defaults for the options are specified in brackets. 1442 1443Configuration: 1444 -h, --help display this help and exit 1445 --help=short display options specific to this package 1446 --help=recursive display the short help of all the included packages 1447 -V, --version display version information and exit 1448 -q, --quiet, --silent do not print \`checking ...' messages 1449 --cache-file=FILE cache test results in FILE [disabled] 1450 -C, --config-cache alias for \`--cache-file=config.cache' 1451 -n, --no-create do not create output files 1452 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1453 1454Installation directories: 1455 --prefix=PREFIX install architecture-independent files in PREFIX 1456 [$ac_default_prefix] 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1458 [PREFIX] 1459 1460By default, \`make install' will install all the files in 1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1462an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1463for instance \`--prefix=\$HOME'. 1464 1465For better control, use the options below. 1466 1467Fine tuning of the installation directories: 1468 --bindir=DIR user executables [EPREFIX/bin] 1469 --sbindir=DIR system admin executables [EPREFIX/sbin] 1470 --libexecdir=DIR program executables [EPREFIX/libexec] 1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1474 --libdir=DIR object code libraries [EPREFIX/lib] 1475 --includedir=DIR C header files [PREFIX/include] 1476 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1479 --infodir=DIR info documentation [DATAROOTDIR/info] 1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1481 --mandir=DIR man documentation [DATAROOTDIR/man] 1482 --docdir=DIR documentation root [DATAROOTDIR/doc/libmpd] 1483 --htmldir=DIR html documentation [DOCDIR] 1484 --dvidir=DIR dvi documentation [DOCDIR] 1485 --pdfdir=DIR pdf documentation [DOCDIR] 1486 --psdir=DIR ps documentation [DOCDIR] 1487_ACEOF 1488 1489 cat <<\_ACEOF 1490 1491Program names: 1492 --program-prefix=PREFIX prepend PREFIX to installed program names 1493 --program-suffix=SUFFIX append SUFFIX to installed program names 1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of libmpd 11.8.17:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --disable-dependency-tracking speeds up one-time build 1513 --enable-dependency-tracking do not reject slow dependency extractors 1514 --enable-shared[=PKGS] build shared libraries [default=yes] 1515 --enable-static[=PKGS] build static libraries [default=yes] 1516 --enable-fast-install[=PKGS] 1517 optimize for fast installation [default=yes] 1518 --disable-libtool-lock avoid locking (might break parallel builds) 1519 1520Optional Packages: 1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1523 --with-pic try to use only PIC/non-PIC objects [default=use 1524 both] 1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1526 1527Some influential environment variables: 1528 CC C compiler command 1529 CFLAGS C compiler flags 1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1531 nonstandard directory <lib dir> 1532 LIBS libraries to pass to the linker, e.g. -l<library> 1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1534 you have headers in a nonstandard directory <include dir> 1535 CPP C preprocessor 1536 PKG_CONFIG path to pkg-config utility 1537 PKG_CONFIG_PATH 1538 directories to add to pkg-config's search path 1539 PKG_CONFIG_LIBDIR 1540 path overriding pkg-config's built-in search path 1541 glib_CFLAGS C compiler flags for glib, overriding pkg-config 1542 glib_LIBS linker flags for glib, overriding pkg-config 1543 1544Use these variables to override the choices made by `configure' or to help 1545it to find libraries and programs with nonstandard names/locations. 1546 1547Report bugs to <qball@sarine.nl>. 1548_ACEOF 1549ac_status=$? 1550fi 1551 1552if test "$ac_init_help" = "recursive"; then 1553 # If there are subdirs, report their specific --help. 1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1555 test -d "$ac_dir" || 1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1557 continue 1558 ac_builddir=. 1559 1560case "$ac_dir" in 1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1562*) 1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1564 # A ".." for each directory in $ac_dir_suffix. 1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1566 case $ac_top_builddir_sub in 1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1569 esac ;; 1570esac 1571ac_abs_top_builddir=$ac_pwd 1572ac_abs_builddir=$ac_pwd$ac_dir_suffix 1573# for backward compatibility: 1574ac_top_builddir=$ac_top_build_prefix 1575 1576case $srcdir in 1577 .) # We are building in place. 1578 ac_srcdir=. 1579 ac_top_srcdir=$ac_top_builddir_sub 1580 ac_abs_top_srcdir=$ac_pwd ;; 1581 [\\/]* | ?:[\\/]* ) # Absolute name. 1582 ac_srcdir=$srcdir$ac_dir_suffix; 1583 ac_top_srcdir=$srcdir 1584 ac_abs_top_srcdir=$srcdir ;; 1585 *) # Relative name. 1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1587 ac_top_srcdir=$ac_top_build_prefix$srcdir 1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1589esac 1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1591 1592 cd "$ac_dir" || { ac_status=$?; continue; } 1593 # Check for guested configure. 1594 if test -f "$ac_srcdir/configure.gnu"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1597 elif test -f "$ac_srcdir/configure"; then 1598 echo && 1599 $SHELL "$ac_srcdir/configure" --help=recursive 1600 else 1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1602 fi || ac_status=$? 1603 cd "$ac_pwd" || { ac_status=$?; break; } 1604 done 1605fi 1606 1607test -n "$ac_init_help" && exit $ac_status 1608if $ac_init_version; then 1609 cat <<\_ACEOF 1610libmpd configure 11.8.17 1611generated by GNU Autoconf 2.67 1612 1613Copyright (C) 2010 Free Software Foundation, Inc. 1614This configure script is free software; the Free Software Foundation 1615gives unlimited permission to copy, distribute and modify it. 1616_ACEOF 1617 exit 1618fi 1619 1620## ------------------------ ## 1621## Autoconf initialization. ## 1622## ------------------------ ## 1623 1624# ac_fn_c_try_compile LINENO 1625# -------------------------- 1626# Try to compile conftest.$ac_ext, and return whether this succeeded. 1627ac_fn_c_try_compile () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 rm -f conftest.$ac_objext 1631 if { { ac_try="$ac_compile" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637$as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_compile") 2>conftest.err 1639 ac_status=$? 1640 if test -s conftest.err; then 1641 grep -v '^ *+' conftest.err >conftest.er1 1642 cat conftest.er1 >&5 1643 mv -f conftest.er1 conftest.err 1644 fi 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { 1647 test -z "$ac_c_werror_flag" || 1648 test ! -s conftest.err 1649 } && test -s conftest.$ac_objext; then : 1650 ac_retval=0 1651else 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656fi 1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_compile 1661 1662# ac_fn_c_try_link LINENO 1663# ----------------------- 1664# Try to link conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_link () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext conftest$ac_exeext 1669 if { { ac_try="$ac_link" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675$as_echo "$ac_try_echo"; } >&5 1676 (eval "$ac_link") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { 1685 test -z "$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 } && test -s conftest$ac_exeext && { 1688 test "$cross_compiling" = yes || 1689 $as_test_x conftest$ac_exeext 1690 }; then : 1691 ac_retval=0 1692else 1693 $as_echo "$as_me: failed program was:" >&5 1694sed 's/^/| /' conftest.$ac_ext >&5 1695 1696 ac_retval=1 1697fi 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1700 # interfere with the next link command; also delete a directory that is 1701 # left behind by Apple's compiler. We do this before executing the actions. 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_link 1707 1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1709# ------------------------------------------------------- 1710# Tests whether HEADER exists and can be compiled using the include files in 1711# INCLUDES, setting the cache variable VAR accordingly. 1712ac_fn_c_check_header_compile () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval "test \"\${$3+set}\"" = set; then : 1718 $as_echo_n "(cached) " >&6 1719else 1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722$4 1723#include <$2> 1724_ACEOF 1725if ac_fn_c_try_compile "$LINENO"; then : 1726 eval "$3=yes" 1727else 1728 eval "$3=no" 1729fi 1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1731fi 1732eval ac_res=\$$3 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1734$as_echo "$ac_res" >&6; } 1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1736 1737} # ac_fn_c_check_header_compile 1738 1739# ac_fn_c_try_cpp LINENO 1740# ---------------------- 1741# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1742ac_fn_c_try_cpp () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 if { { ac_try="$ac_cpp conftest.$ac_ext" 1746case "(($ac_try" in 1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1748 *) ac_try_echo=$ac_try;; 1749esac 1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1751$as_echo "$ac_try_echo"; } >&5 1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1753 ac_status=$? 1754 if test -s conftest.err; then 1755 grep -v '^ *+' conftest.err >conftest.er1 1756 cat conftest.er1 >&5 1757 mv -f conftest.er1 conftest.err 1758 fi 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } > conftest.i && { 1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1762 test ! -s conftest.err 1763 }; then : 1764 ac_retval=0 1765else 1766 $as_echo "$as_me: failed program was:" >&5 1767sed 's/^/| /' conftest.$ac_ext >&5 1768 1769 ac_retval=1 1770fi 1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_cpp 1775 1776# ac_fn_c_try_run LINENO 1777# ---------------------- 1778# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1779# that executables *can* be run. 1780ac_fn_c_try_run () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 if { { ac_try="$ac_link" 1784case "(($ac_try" in 1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1786 *) ac_try_echo=$ac_try;; 1787esac 1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1789$as_echo "$ac_try_echo"; } >&5 1790 (eval "$ac_link") 2>&5 1791 ac_status=$? 1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1794 { { case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_try") 2>&5 1801 ac_status=$? 1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; }; }; then : 1804 ac_retval=0 1805else 1806 $as_echo "$as_me: program exited with status $ac_status" >&5 1807 $as_echo "$as_me: failed program was:" >&5 1808sed 's/^/| /' conftest.$ac_ext >&5 1809 1810 ac_retval=$ac_status 1811fi 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_run 1817 1818# ac_fn_c_check_func LINENO FUNC VAR 1819# ---------------------------------- 1820# Tests whether FUNC exists, setting the cache variable VAR accordingly 1821ac_fn_c_check_func () 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 eval "test \"\${$3+set}\"" = set; then : 1827 $as_echo_n "(cached) " >&6 1828else 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1833#define $2 innocuous_$2 1834 1835/* System header to define __stub macros and hopefully few prototypes, 1836 which can conflict with char $2 (); below. 1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1838 <limits.h> exists even on freestanding compilers. */ 1839 1840#ifdef __STDC__ 1841# include <limits.h> 1842#else 1843# include <assert.h> 1844#endif 1845 1846#undef $2 1847 1848/* Override any GCC internal prototype to avoid an error. 1849 Use char because int might match the return type of a GCC 1850 builtin and then its argument prototype would still apply. */ 1851#ifdef __cplusplus 1852extern "C" 1853#endif 1854char $2 (); 1855/* The GNU C library defines this for functions which it implements 1856 to always fail with ENOSYS. Some functions are actually named 1857 something starting with __ and the normal name is an alias. */ 1858#if defined __stub_$2 || defined __stub___$2 1859choke me 1860#endif 1861 1862int 1863main () 1864{ 1865return $2 (); 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_link "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext \ 1876 conftest$ac_exeext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1882 1883} # ac_fn_c_check_func 1884 1885# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1886# ------------------------------------------------------- 1887# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1888# the include files in INCLUDES and setting the cache variable VAR 1889# accordingly. 1890ac_fn_c_check_header_mongrel () 1891{ 1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1893 if eval "test \"\${$3+set}\"" = set; then : 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval "test \"\${$3+set}\"" = set; then : 1897 $as_echo_n "(cached) " >&6 1898fi 1899eval ac_res=\$$3 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1901$as_echo "$ac_res" >&6; } 1902else 1903 # Is the header compilable? 1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1905$as_echo_n "checking $2 usability... " >&6; } 1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1907/* end confdefs.h. */ 1908$4 1909#include <$2> 1910_ACEOF 1911if ac_fn_c_try_compile "$LINENO"; then : 1912 ac_header_compiler=yes 1913else 1914 ac_header_compiler=no 1915fi 1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1918$as_echo "$ac_header_compiler" >&6; } 1919 1920# Is the header present? 1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1922$as_echo_n "checking $2 presence... " >&6; } 1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925#include <$2> 1926_ACEOF 1927if ac_fn_c_try_cpp "$LINENO"; then : 1928 ac_header_preproc=yes 1929else 1930 ac_header_preproc=no 1931fi 1932rm -f conftest.err conftest.i conftest.$ac_ext 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1934$as_echo "$ac_header_preproc" >&6; } 1935 1936# So? What about this header? 1937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1938 yes:no: ) 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1940$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1943 ;; 1944 no:yes:* ) 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1946$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1948$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1950$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1952$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1955( $as_echo "## ------------------------------ ## 1956## Report this to qball@sarine.nl ## 1957## ------------------------------ ##" 1958 ) | sed "s/^/$as_me: WARNING: /" >&2 1959 ;; 1960esac 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1962$as_echo_n "checking for $2... " >&6; } 1963if eval "test \"\${$3+set}\"" = set; then : 1964 $as_echo_n "(cached) " >&6 1965else 1966 eval "$3=\$ac_header_compiler" 1967fi 1968eval ac_res=\$$3 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970$as_echo "$ac_res" >&6; } 1971fi 1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1973 1974} # ac_fn_c_check_header_mongrel 1975cat >config.log <<_ACEOF 1976This file contains any messages produced by compilers while 1977running configure, to aid debugging if configure makes a mistake. 1978 1979It was created by libmpd $as_me 11.8.17, which was 1980generated by GNU Autoconf 2.67. Invocation command line was 1981 1982 $ $0 $@ 1983 1984_ACEOF 1985exec 5>>config.log 1986{ 1987cat <<_ASUNAME 1988## --------- ## 1989## Platform. ## 1990## --------- ## 1991 1992hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1993uname -m = `(uname -m) 2>/dev/null || echo unknown` 1994uname -r = `(uname -r) 2>/dev/null || echo unknown` 1995uname -s = `(uname -s) 2>/dev/null || echo unknown` 1996uname -v = `(uname -v) 2>/dev/null || echo unknown` 1997 1998/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1999/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2000 2001/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2002/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2003/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2004/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2005/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2006/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2007/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2008 2009_ASUNAME 2010 2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2012for as_dir in $PATH 2013do 2014 IFS=$as_save_IFS 2015 test -z "$as_dir" && as_dir=. 2016 $as_echo "PATH: $as_dir" 2017 done 2018IFS=$as_save_IFS 2019 2020} >&5 2021 2022cat >&5 <<_ACEOF 2023 2024 2025## ----------- ## 2026## Core tests. ## 2027## ----------- ## 2028 2029_ACEOF 2030 2031 2032# Keep a trace of the command line. 2033# Strip out --no-create and --no-recursion so they do not pile up. 2034# Strip out --silent because we don't want to record it for future runs. 2035# Also quote any args containing shell meta-characters. 2036# Make two passes to allow for proper duplicate-argument suppression. 2037ac_configure_args= 2038ac_configure_args0= 2039ac_configure_args1= 2040ac_must_keep_next=false 2041for ac_pass in 1 2 2042do 2043 for ac_arg 2044 do 2045 case $ac_arg in 2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2048 | -silent | --silent | --silen | --sile | --sil) 2049 continue ;; 2050 *\'*) 2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2052 esac 2053 case $ac_pass in 2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2055 2) 2056 as_fn_append ac_configure_args1 " '$ac_arg'" 2057 if test $ac_must_keep_next = true; then 2058 ac_must_keep_next=false # Got value, back to normal. 2059 else 2060 case $ac_arg in 2061 *=* | --config-cache | -C | -disable-* | --disable-* \ 2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2064 | -with-* | --with-* | -without-* | --without-* | --x) 2065 case "$ac_configure_args0 " in 2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2067 esac 2068 ;; 2069 -* ) ac_must_keep_next=true ;; 2070 esac 2071 fi 2072 as_fn_append ac_configure_args " '$ac_arg'" 2073 ;; 2074 esac 2075 done 2076done 2077{ ac_configure_args0=; unset ac_configure_args0;} 2078{ ac_configure_args1=; unset ac_configure_args1;} 2079 2080# When interrupted or exit'd, cleanup temporary files, and complete 2081# config.log. We remove comments because anyway the quotes in there 2082# would cause problems or look ugly. 2083# WARNING: Use '\'' to represent an apostrophe within the trap. 2084# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2085trap 'exit_status=$? 2086 # Save into config.log some information that might help in debugging. 2087 { 2088 echo 2089 2090 $as_echo "## ---------------- ## 2091## Cache variables. ## 2092## ---------------- ##" 2093 echo 2094 # The following way of writing the cache mishandles newlines in values, 2095( 2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2097 eval ac_val=\$$ac_var 2098 case $ac_val in #( 2099 *${as_nl}*) 2100 case $ac_var in #( 2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2102$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2103 esac 2104 case $ac_var in #( 2105 _ | IFS | as_nl) ;; #( 2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2107 *) { eval $ac_var=; unset $ac_var;} ;; 2108 esac ;; 2109 esac 2110 done 2111 (set) 2>&1 | 2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2113 *${as_nl}ac_space=\ *) 2114 sed -n \ 2115 "s/'\''/'\''\\\\'\'''\''/g; 2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2117 ;; #( 2118 *) 2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2120 ;; 2121 esac | 2122 sort 2123) 2124 echo 2125 2126 $as_echo "## ----------------- ## 2127## Output variables. ## 2128## ----------------- ##" 2129 echo 2130 for ac_var in $ac_subst_vars 2131 do 2132 eval ac_val=\$$ac_var 2133 case $ac_val in 2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2135 esac 2136 $as_echo "$ac_var='\''$ac_val'\''" 2137 done | sort 2138 echo 2139 2140 if test -n "$ac_subst_files"; then 2141 $as_echo "## ------------------- ## 2142## File substitutions. ## 2143## ------------------- ##" 2144 echo 2145 for ac_var in $ac_subst_files 2146 do 2147 eval ac_val=\$$ac_var 2148 case $ac_val in 2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2150 esac 2151 $as_echo "$ac_var='\''$ac_val'\''" 2152 done | sort 2153 echo 2154 fi 2155 2156 if test -s confdefs.h; then 2157 $as_echo "## ----------- ## 2158## confdefs.h. ## 2159## ----------- ##" 2160 echo 2161 cat confdefs.h 2162 echo 2163 fi 2164 test "$ac_signal" != 0 && 2165 $as_echo "$as_me: caught signal $ac_signal" 2166 $as_echo "$as_me: exit $exit_status" 2167 } >&5 2168 rm -f core *.core core.conftest.* && 2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2170 exit $exit_status 2171' 0 2172for ac_signal in 1 2 13 15; do 2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2174done 2175ac_signal=0 2176 2177# confdefs.h avoids OS command line length limits that DEFS can exceed. 2178rm -f -r conftest* confdefs.h 2179 2180$as_echo "/* confdefs.h */" > confdefs.h 2181 2182# Predefined preprocessor variables. 2183 2184cat >>confdefs.h <<_ACEOF 2185#define PACKAGE_NAME "$PACKAGE_NAME" 2186_ACEOF 2187 2188cat >>confdefs.h <<_ACEOF 2189#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2190_ACEOF 2191 2192cat >>confdefs.h <<_ACEOF 2193#define PACKAGE_VERSION "$PACKAGE_VERSION" 2194_ACEOF 2195 2196cat >>confdefs.h <<_ACEOF 2197#define PACKAGE_STRING "$PACKAGE_STRING" 2198_ACEOF 2199 2200cat >>confdefs.h <<_ACEOF 2201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2202_ACEOF 2203 2204cat >>confdefs.h <<_ACEOF 2205#define PACKAGE_URL "$PACKAGE_URL" 2206_ACEOF 2207 2208 2209# Let the site file select an alternate cache file if it wants to. 2210# Prefer an explicitly selected file to automatically selected ones. 2211ac_site_file1=NONE 2212ac_site_file2=NONE 2213if test -n "$CONFIG_SITE"; then 2214 # We do not want a PATH search for config.site. 2215 case $CONFIG_SITE in #(( 2216 -*) ac_site_file1=./$CONFIG_SITE;; 2217 */*) ac_site_file1=$CONFIG_SITE;; 2218 *) ac_site_file1=./$CONFIG_SITE;; 2219 esac 2220elif test "x$prefix" != xNONE; then 2221 ac_site_file1=$prefix/share/config.site 2222 ac_site_file2=$prefix/etc/config.site 2223else 2224 ac_site_file1=$ac_default_prefix/share/config.site 2225 ac_site_file2=$ac_default_prefix/etc/config.site 2226fi 2227for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2228do 2229 test "x$ac_site_file" = xNONE && continue 2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2232$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2233 sed 's/^/| /' "$ac_site_file" >&5 2234 . "$ac_site_file" \ 2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2237as_fn_error $? "failed to load site script $ac_site_file 2238See \`config.log' for more details" "$LINENO" 5 ; } 2239 fi 2240done 2241 2242if test -r "$cache_file"; then 2243 # Some versions of bash will fail to source /dev/null (special files 2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2247$as_echo "$as_me: loading cache $cache_file" >&6;} 2248 case $cache_file in 2249 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2250 *) . "./$cache_file";; 2251 esac 2252 fi 2253else 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2255$as_echo "$as_me: creating cache $cache_file" >&6;} 2256 >$cache_file 2257fi 2258 2259# Check that the precious variables saved in the cache have kept the same 2260# value. 2261ac_cache_corrupted=false 2262for ac_var in $ac_precious_vars; do 2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2264 eval ac_new_set=\$ac_env_${ac_var}_set 2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2266 eval ac_new_val=\$ac_env_${ac_var}_value 2267 case $ac_old_set,$ac_new_set in 2268 set,) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2270$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2271 ac_cache_corrupted=: ;; 2272 ,set) 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2274$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2275 ac_cache_corrupted=: ;; 2276 ,);; 2277 *) 2278 if test "x$ac_old_val" != "x$ac_new_val"; then 2279 # differences in whitespace do not lead to failure. 2280 ac_old_val_w=`echo x $ac_old_val` 2281 ac_new_val_w=`echo x $ac_new_val` 2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2284$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2285 ac_cache_corrupted=: 2286 else 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2288$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2289 eval $ac_var=\$ac_old_val 2290 fi 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2292$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2294$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2295 fi;; 2296 esac 2297 # Pass precious variables to config.status. 2298 if test "$ac_new_set" = set; then 2299 case $ac_new_val in 2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2301 *) ac_arg=$ac_var=$ac_new_val ;; 2302 esac 2303 case " $ac_configure_args " in 2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2306 esac 2307 fi 2308done 2309if $ac_cache_corrupted; then 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2313$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2315fi 2316## -------------------- ## 2317## Main body of script. ## 2318## -------------------- ## 2319 2320ac_ext=c 2321ac_cpp='$CPP $CPPFLAGS' 2322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2324ac_compiler_gnu=$ac_cv_c_compiler_gnu 2325 2326 2327ac_config_headers="$ac_config_headers config.h" 2328 2329 2330 2331 2332 2333am__api_version='1.11' 2334 2335ac_aux_dir= 2336for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2337 if test -f "$ac_dir/install-sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/install-sh -c" 2340 break 2341 elif test -f "$ac_dir/install.sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install.sh -c" 2344 break 2345 elif test -f "$ac_dir/shtool"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/shtool install -c" 2348 break 2349 fi 2350done 2351if test -z "$ac_aux_dir"; then 2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2353fi 2354 2355# These three variables are undocumented and unsupported, 2356# and are intended to be withdrawn in a future Autoconf release. 2357# They can cause serious problems if a builder's source tree is in a directory 2358# whose full name contains unusual characters. 2359ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2360ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2361ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2362 2363 2364# Find a good install program. We prefer a C program (faster), 2365# so one script is as good as another. But avoid the broken or 2366# incompatible versions: 2367# SysV /etc/install, /usr/sbin/install 2368# SunOS /usr/etc/install 2369# IRIX /sbin/install 2370# AIX /bin/install 2371# AmigaOS /C/install, which installs bootblocks on floppy discs 2372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2373# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2375# OS/2's system install, which has a completely different semantic 2376# ./install, which can be erroneously created by make from ./install.sh. 2377# Reject install programs that cannot install multiple files. 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2379$as_echo_n "checking for a BSD-compatible install... " >&6; } 2380if test -z "$INSTALL"; then 2381if test "${ac_cv_path_install+set}" = set; then : 2382 $as_echo_n "(cached) " >&6 2383else 2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2385for as_dir in $PATH 2386do 2387 IFS=$as_save_IFS 2388 test -z "$as_dir" && as_dir=. 2389 # Account for people who put trailing slashes in PATH elements. 2390case $as_dir/ in #(( 2391 ./ | .// | /[cC]/* | \ 2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2394 /usr/ucb/* ) ;; 2395 *) 2396 # OSF1 and SCO ODT 3.0 have their own names for install. 2397 # Don't use installbsd from OSF since it installs stuff as root 2398 # by default. 2399 for ac_prog in ginstall scoinst install; do 2400 for ac_exec_ext in '' $ac_executable_extensions; do 2401 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2402 if test $ac_prog = install && 2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2404 # AIX install. It has an incompatible calling convention. 2405 : 2406 elif test $ac_prog = install && 2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2408 # program-specific install script used by HP pwplus--don't use. 2409 : 2410 else 2411 rm -rf conftest.one conftest.two conftest.dir 2412 echo one > conftest.one 2413 echo two > conftest.two 2414 mkdir conftest.dir 2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2416 test -s conftest.one && test -s conftest.two && 2417 test -s conftest.dir/conftest.one && 2418 test -s conftest.dir/conftest.two 2419 then 2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2421 break 3 2422 fi 2423 fi 2424 fi 2425 done 2426 done 2427 ;; 2428esac 2429 2430 done 2431IFS=$as_save_IFS 2432 2433rm -rf conftest.one conftest.two conftest.dir 2434 2435fi 2436 if test "${ac_cv_path_install+set}" = set; then 2437 INSTALL=$ac_cv_path_install 2438 else 2439 # As a last resort, use the slow shell script. Don't cache a 2440 # value for INSTALL within a source directory, because that will 2441 # break other packages using the cache if that directory is 2442 # removed, or if the value is a relative name. 2443 INSTALL=$ac_install_sh 2444 fi 2445fi 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2447$as_echo "$INSTALL" >&6; } 2448 2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2450# It thinks the first close brace ends the variable substitution. 2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2452 2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2454 2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2456 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2458$as_echo_n "checking whether build environment is sane... " >&6; } 2459# Just in case 2460sleep 1 2461echo timestamp > conftest.file 2462# Reject unsafe characters in $srcdir or the absolute working directory 2463# name. Accept space and tab only in the latter. 2464am_lf=' 2465' 2466case `pwd` in 2467 *[\\\"\#\$\&\'\`$am_lf]*) 2468 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2469esac 2470case $srcdir in 2471 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2472 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2473esac 2474 2475# Do `set' in a subshell so we don't clobber the current shell's 2476# arguments. Must try -L first in case configure is actually a 2477# symlink; some systems play weird games with the mod time of symlinks 2478# (eg FreeBSD returns the mod time of the symlink's containing 2479# directory). 2480if ( 2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2482 if test "$*" = "X"; then 2483 # -L didn't work. 2484 set X `ls -t "$srcdir/configure" conftest.file` 2485 fi 2486 rm -f conftest.file 2487 if test "$*" != "X $srcdir/configure conftest.file" \ 2488 && test "$*" != "X conftest.file $srcdir/configure"; then 2489 2490 # If neither matched, then we have a broken ls. This can happen 2491 # if, for instance, CONFIG_SHELL is bash and it inherits a 2492 # broken ls alias from the environment. This has actually 2493 # happened. Such a system could not be considered "sane". 2494 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2495alias in your environment" "$LINENO" 5 2496 fi 2497 2498 test "$2" = conftest.file 2499 ) 2500then 2501 # Ok. 2502 : 2503else 2504 as_fn_error $? "newly created file is older than distributed files! 2505Check your system clock" "$LINENO" 5 2506fi 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2508$as_echo "yes" >&6; } 2509test "$program_prefix" != NONE && 2510 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2511# Use a double $ so make ignores it. 2512test "$program_suffix" != NONE && 2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2514# Double any \ or $. 2515# By default was `s,x,x', remove it if useless. 2516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2517program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2518 2519# expand $ac_aux_dir to an absolute path 2520am_aux_dir=`cd $ac_aux_dir && pwd` 2521 2522if test x"${MISSING+set}" != xset; then 2523 case $am_aux_dir in 2524 *\ * | *\ *) 2525 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2526 *) 2527 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2528 esac 2529fi 2530# Use eval to expand $SHELL 2531if eval "$MISSING --run true"; then 2532 am_missing_run="$MISSING --run " 2533else 2534 am_missing_run= 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2536$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2537fi 2538 2539if test x"${install_sh}" != xset; then 2540 case $am_aux_dir in 2541 *\ * | *\ *) 2542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2543 *) 2544 install_sh="\${SHELL} $am_aux_dir/install-sh" 2545 esac 2546fi 2547 2548# Installed binaries are usually stripped using `strip' when the user 2549# run `make install-strip'. However `strip' might not be the right 2550# tool to use in cross-compilation environments, therefore Automake 2551# will honor the `STRIP' environment variable to overrule this program. 2552if test "$cross_compiling" != no; then 2553 if test -n "$ac_tool_prefix"; then 2554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2555set dummy ${ac_tool_prefix}strip; ac_word=$2 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2557$as_echo_n "checking for $ac_word... " >&6; } 2558if test "${ac_cv_prog_STRIP+set}" = set; then : 2559 $as_echo_n "(cached) " >&6 2560else 2561 if test -n "$STRIP"; then 2562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2571 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2573 break 2 2574 fi 2575done 2576 done 2577IFS=$as_save_IFS 2578 2579fi 2580fi 2581STRIP=$ac_cv_prog_STRIP 2582if test -n "$STRIP"; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2584$as_echo "$STRIP" >&6; } 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588fi 2589 2590 2591fi 2592if test -z "$ac_cv_prog_STRIP"; then 2593 ac_ct_STRIP=$STRIP 2594 # Extract the first word of "strip", so it can be a program name with args. 2595set dummy strip; ac_word=$2 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2597$as_echo_n "checking for $ac_word... " >&6; } 2598if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 if test -n "$ac_ct_STRIP"; then 2602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2603else 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2611 ac_cv_prog_ac_ct_STRIP="strip" 2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615done 2616 done 2617IFS=$as_save_IFS 2618 2619fi 2620fi 2621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2622if test -n "$ac_ct_STRIP"; then 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2624$as_echo "$ac_ct_STRIP" >&6; } 2625else 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2627$as_echo "no" >&6; } 2628fi 2629 2630 if test "x$ac_ct_STRIP" = x; then 2631 STRIP=":" 2632 else 2633 case $cross_compiling:$ac_tool_warned in 2634yes:) 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2637ac_tool_warned=yes ;; 2638esac 2639 STRIP=$ac_ct_STRIP 2640 fi 2641else 2642 STRIP="$ac_cv_prog_STRIP" 2643fi 2644 2645fi 2646INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2647 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2649$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2650if test -z "$MKDIR_P"; then 2651 if test "${ac_cv_path_mkdir+set}" = set; then : 2652 $as_echo_n "(cached) " >&6 2653else 2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2656do 2657 IFS=$as_save_IFS 2658 test -z "$as_dir" && as_dir=. 2659 for ac_prog in mkdir gmkdir; do 2660 for ac_exec_ext in '' $ac_executable_extensions; do 2661 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2663 'mkdir (GNU coreutils) '* | \ 2664 'mkdir (coreutils) '* | \ 2665 'mkdir (fileutils) '4.1*) 2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2667 break 3;; 2668 esac 2669 done 2670 done 2671 done 2672IFS=$as_save_IFS 2673 2674fi 2675 2676 test -d ./--version && rmdir ./--version 2677 if test "${ac_cv_path_mkdir+set}" = set; then 2678 MKDIR_P="$ac_cv_path_mkdir -p" 2679 else 2680 # As a last resort, use the slow shell script. Don't cache a 2681 # value for MKDIR_P within a source directory, because that will 2682 # break other packages using the cache if that directory is 2683 # removed, or if the value is a relative name. 2684 MKDIR_P="$ac_install_sh -d" 2685 fi 2686fi 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2688$as_echo "$MKDIR_P" >&6; } 2689 2690mkdir_p="$MKDIR_P" 2691case $mkdir_p in 2692 [\\/$]* | ?:[\\/]*) ;; 2693 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2694esac 2695 2696for ac_prog in gawk mawk nawk awk 2697do 2698 # Extract the first word of "$ac_prog", so it can be a program name with args. 2699set dummy $ac_prog; ac_word=$2 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2701$as_echo_n "checking for $ac_word... " >&6; } 2702if test "${ac_cv_prog_AWK+set}" = set; then : 2703 $as_echo_n "(cached) " >&6 2704else 2705 if test -n "$AWK"; then 2706 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2707else 2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2709for as_dir in $PATH 2710do 2711 IFS=$as_save_IFS 2712 test -z "$as_dir" && as_dir=. 2713 for ac_exec_ext in '' $ac_executable_extensions; do 2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2715 ac_cv_prog_AWK="$ac_prog" 2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2717 break 2 2718 fi 2719done 2720 done 2721IFS=$as_save_IFS 2722 2723fi 2724fi 2725AWK=$ac_cv_prog_AWK 2726if test -n "$AWK"; then 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2728$as_echo "$AWK" >&6; } 2729else 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2731$as_echo "no" >&6; } 2732fi 2733 2734 2735 test -n "$AWK" && break 2736done 2737 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2739$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2740set x ${MAKE-make} 2741ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2742if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2743 $as_echo_n "(cached) " >&6 2744else 2745 cat >conftest.make <<\_ACEOF 2746SHELL = /bin/sh 2747all: 2748 @echo '@@@%%%=$(MAKE)=@@@%%%' 2749_ACEOF 2750# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2751case `${MAKE-make} -f conftest.make 2>/dev/null` in 2752 *@@@%%%=?*=@@@%%%*) 2753 eval ac_cv_prog_make_${ac_make}_set=yes;; 2754 *) 2755 eval ac_cv_prog_make_${ac_make}_set=no;; 2756esac 2757rm -f conftest.make 2758fi 2759if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2761$as_echo "yes" >&6; } 2762 SET_MAKE= 2763else 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2765$as_echo "no" >&6; } 2766 SET_MAKE="MAKE=${MAKE-make}" 2767fi 2768 2769rm -rf .tst 2>/dev/null 2770mkdir .tst 2>/dev/null 2771if test -d .tst; then 2772 am__leading_dot=. 2773else 2774 am__leading_dot=_ 2775fi 2776rmdir .tst 2>/dev/null 2777 2778if test "`cd $srcdir && pwd`" != "`pwd`"; then 2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2780 # is not polluted with repeated "-I." 2781 am__isrc=' -I$(srcdir)' 2782 # test to see if srcdir already configured 2783 if test -f $srcdir/config.status; then 2784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2785 fi 2786fi 2787 2788# test whether we have cygpath 2789if test -z "$CYGPATH_W"; then 2790 if (cygpath --version) >/dev/null 2>/dev/null; then 2791 CYGPATH_W='cygpath -w' 2792 else 2793 CYGPATH_W=echo 2794 fi 2795fi 2796 2797 2798# Define the identity of the package. 2799 PACKAGE='libmpd' 2800 VERSION='11.8.17' 2801 2802 2803cat >>confdefs.h <<_ACEOF 2804#define PACKAGE "$PACKAGE" 2805_ACEOF 2806 2807 2808cat >>confdefs.h <<_ACEOF 2809#define VERSION "$VERSION" 2810_ACEOF 2811 2812# Some tools Automake needs. 2813 2814ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2815 2816 2817AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2818 2819 2820AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2821 2822 2823AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2824 2825 2826MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2827 2828# We need awk for the "check" target. The system "awk" is bad on 2829# some platforms. 2830# Always define AMTAR for backward compatibility. 2831 2832AMTAR=${AMTAR-"${am_missing_run}tar"} 2833 2834am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2835 2836 2837 2838 2839 2840 2841 2842 2843# This makes sure the right substitution is done 2844LIBMPD_MAJOR_VERSION=11 2845LIBMPD_MINOR_VERSION=8 2846LIBMPD_MICRO_VERSION=17 2847 2848 2849 2850# C:R:A 2851# C is updated on abi break 2852# R is on changed source code. 2853# A is age (added interfaces) 2854# 2855LIBMPD_LIBTOOL_VERSION=4:0:3 2856 2857 2858ac_ext=c 2859ac_cpp='$CPP $CPPFLAGS' 2860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2862ac_compiler_gnu=$ac_cv_c_compiler_gnu 2863if test -n "$ac_tool_prefix"; then 2864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2865set dummy ${ac_tool_prefix}gcc; ac_word=$2 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867$as_echo_n "checking for $ac_word... " >&6; } 2868if test "${ac_cv_prog_CC+set}" = set; then : 2869 $as_echo_n "(cached) " >&6 2870else 2871 if test -n "$CC"; then 2872 ac_cv_prog_CC="$CC" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 test -z "$as_dir" && as_dir=. 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2881 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891CC=$ac_cv_prog_CC 2892if test -n "$CC"; then 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2894$as_echo "$CC" >&6; } 2895else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901fi 2902if test -z "$ac_cv_prog_CC"; then 2903 ac_ct_CC=$CC 2904 # Extract the first word of "gcc", so it can be a program name with args. 2905set dummy gcc; ac_word=$2 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2907$as_echo_n "checking for $ac_word... " >&6; } 2908if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2909 $as_echo_n "(cached) " >&6 2910else 2911 if test -n "$ac_ct_CC"; then 2912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2913else 2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2915for as_dir in $PATH 2916do 2917 IFS=$as_save_IFS 2918 test -z "$as_dir" && as_dir=. 2919 for ac_exec_ext in '' $ac_executable_extensions; do 2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2921 ac_cv_prog_ac_ct_CC="gcc" 2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2923 break 2 2924 fi 2925done 2926 done 2927IFS=$as_save_IFS 2928 2929fi 2930fi 2931ac_ct_CC=$ac_cv_prog_ac_ct_CC 2932if test -n "$ac_ct_CC"; then 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2934$as_echo "$ac_ct_CC" >&6; } 2935else 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2937$as_echo "no" >&6; } 2938fi 2939 2940 if test "x$ac_ct_CC" = x; then 2941 CC="" 2942 else 2943 case $cross_compiling:$ac_tool_warned in 2944yes:) 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2947ac_tool_warned=yes ;; 2948esac 2949 CC=$ac_ct_CC 2950 fi 2951else 2952 CC="$ac_cv_prog_CC" 2953fi 2954 2955if test -z "$CC"; then 2956 if test -n "$ac_tool_prefix"; then 2957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2958set dummy ${ac_tool_prefix}cc; ac_word=$2 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2960$as_echo_n "checking for $ac_word... " >&6; } 2961if test "${ac_cv_prog_CC+set}" = set; then : 2962 $as_echo_n "(cached) " >&6 2963else 2964 if test -n "$CC"; then 2965 ac_cv_prog_CC="$CC" # Let the user override the test. 2966else 2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2968for as_dir in $PATH 2969do 2970 IFS=$as_save_IFS 2971 test -z "$as_dir" && as_dir=. 2972 for ac_exec_ext in '' $ac_executable_extensions; do 2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2974 ac_cv_prog_CC="${ac_tool_prefix}cc" 2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2976 break 2 2977 fi 2978done 2979 done 2980IFS=$as_save_IFS 2981 2982fi 2983fi 2984CC=$ac_cv_prog_CC 2985if test -n "$CC"; then 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2987$as_echo "$CC" >&6; } 2988else 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2990$as_echo "no" >&6; } 2991fi 2992 2993 2994 fi 2995fi 2996if test -z "$CC"; then 2997 # Extract the first word of "cc", so it can be a program name with args. 2998set dummy cc; ac_word=$2 2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3000$as_echo_n "checking for $ac_word... " >&6; } 3001if test "${ac_cv_prog_CC+set}" = set; then : 3002 $as_echo_n "(cached) " >&6 3003else 3004 if test -n "$CC"; then 3005 ac_cv_prog_CC="$CC" # Let the user override the test. 3006else 3007 ac_prog_rejected=no 3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3009for as_dir in $PATH 3010do 3011 IFS=$as_save_IFS 3012 test -z "$as_dir" && as_dir=. 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3016 ac_prog_rejected=yes 3017 continue 3018 fi 3019 ac_cv_prog_CC="cc" 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023done 3024 done 3025IFS=$as_save_IFS 3026 3027if test $ac_prog_rejected = yes; then 3028 # We found a bogon in the path, so make sure we never use it. 3029 set dummy $ac_cv_prog_CC 3030 shift 3031 if test $# != 0; then 3032 # We chose a different compiler from the bogus one. 3033 # However, it has the same basename, so the bogon will be chosen 3034 # first if we set CC to just the basename; use the full file name. 3035 shift 3036 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3037 fi 3038fi 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 3051fi 3052if test -z "$CC"; then 3053 if test -n "$ac_tool_prefix"; then 3054 for ac_prog in cl.exe 3055 do 3056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3057set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3059$as_echo_n "checking for $ac_word... " >&6; } 3060if test "${ac_cv_prog_CC+set}" = set; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 if test -n "$CC"; then 3064 ac_cv_prog_CC="$CC" # Let the user override the test. 3065else 3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067for as_dir in $PATH 3068do 3069 IFS=$as_save_IFS 3070 test -z "$as_dir" && as_dir=. 3071 for ac_exec_ext in '' $ac_executable_extensions; do 3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3073 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3075 break 2 3076 fi 3077done 3078 done 3079IFS=$as_save_IFS 3080 3081fi 3082fi 3083CC=$ac_cv_prog_CC 3084if test -n "$CC"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3086$as_echo "$CC" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 3093 test -n "$CC" && break 3094 done 3095fi 3096if test -z "$CC"; then 3097 ac_ct_CC=$CC 3098 for ac_prog in cl.exe 3099do 3100 # Extract the first word of "$ac_prog", so it can be a program name with args. 3101set dummy $ac_prog; ac_word=$2 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3103$as_echo_n "checking for $ac_word... " >&6; } 3104if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 if test -n "$ac_ct_CC"; then 3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3109else 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3117 ac_cv_prog_ac_ct_CC="$ac_prog" 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121done 3122 done 3123IFS=$as_save_IFS 3124 3125fi 3126fi 3127ac_ct_CC=$ac_cv_prog_ac_ct_CC 3128if test -n "$ac_ct_CC"; then 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3130$as_echo "$ac_ct_CC" >&6; } 3131else 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3133$as_echo "no" >&6; } 3134fi 3135 3136 3137 test -n "$ac_ct_CC" && break 3138done 3139 3140 if test "x$ac_ct_CC" = x; then 3141 CC="" 3142 else 3143 case $cross_compiling:$ac_tool_warned in 3144yes:) 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3147ac_tool_warned=yes ;; 3148esac 3149 CC=$ac_ct_CC 3150 fi 3151fi 3152 3153fi 3154 3155 3156test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3158as_fn_error $? "no acceptable C compiler found in \$PATH 3159See \`config.log' for more details" "$LINENO" 5 ; } 3160 3161# Provide some information about the compiler. 3162$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3163set X $ac_compile 3164ac_compiler=$2 3165for ac_option in --version -v -V -qversion; do 3166 { { ac_try="$ac_compiler $ac_option >&5" 3167case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3172$as_echo "$ac_try_echo"; } >&5 3173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3174 ac_status=$? 3175 if test -s conftest.err; then 3176 sed '10a\ 3177... rest of stderr output deleted ... 3178 10q' conftest.err >conftest.er1 3179 cat conftest.er1 >&5 3180 fi 3181 rm -f conftest.er1 conftest.err 3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3183 test $ac_status = 0; } 3184done 3185 3186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3187/* end confdefs.h. */ 3188 3189int 3190main () 3191{ 3192 3193 ; 3194 return 0; 3195} 3196_ACEOF 3197ac_clean_files_save=$ac_clean_files 3198ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3199# Try to create an executable without -o first, disregard a.out. 3200# It will help us diagnose broken compilers, and finding out an intuition 3201# of exeext. 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3203$as_echo_n "checking whether the C compiler works... " >&6; } 3204ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3205 3206# The possible output files: 3207ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3208 3209ac_rmfiles= 3210for ac_file in $ac_files 3211do 3212 case $ac_file in 3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3214 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3215 esac 3216done 3217rm -f $ac_rmfiles 3218 3219if { { ac_try="$ac_link_default" 3220case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223esac 3224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3225$as_echo "$ac_try_echo"; } >&5 3226 (eval "$ac_link_default") 2>&5 3227 ac_status=$? 3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3229 test $ac_status = 0; }; then : 3230 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3231# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3232# in a Makefile. We should not override ac_cv_exeext if it was cached, 3233# so that the user can short-circuit this test for compilers unknown to 3234# Autoconf. 3235for ac_file in $ac_files '' 3236do 3237 test -f "$ac_file" || continue 3238 case $ac_file in 3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3240 ;; 3241 [ab].out ) 3242 # We found the default executable, but exeext='' is most 3243 # certainly right. 3244 break;; 3245 *.* ) 3246 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3247 then :; else 3248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3249 fi 3250 # We set ac_cv_exeext here because the later test for it is not 3251 # safe: cross compilers may not add the suffix if given an `-o' 3252 # argument, so we may need to know it at that point already. 3253 # Even if this section looks crufty: it has the advantage of 3254 # actually working. 3255 break;; 3256 * ) 3257 break;; 3258 esac 3259done 3260test "$ac_cv_exeext" = no && ac_cv_exeext= 3261 3262else 3263 ac_file='' 3264fi 3265if test -z "$ac_file"; then : 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3267$as_echo "no" >&6; } 3268$as_echo "$as_me: failed program was:" >&5 3269sed 's/^/| /' conftest.$ac_ext >&5 3270 3271{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3273as_fn_error 77 "C compiler cannot create executables 3274See \`config.log' for more details" "$LINENO" 5 ; } 3275else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3277$as_echo "yes" >&6; } 3278fi 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3280$as_echo_n "checking for C compiler default output file name... " >&6; } 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3282$as_echo "$ac_file" >&6; } 3283ac_exeext=$ac_cv_exeext 3284 3285rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3286ac_clean_files=$ac_clean_files_save 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3288$as_echo_n "checking for suffix of executables... " >&6; } 3289if { { ac_try="$ac_link" 3290case "(($ac_try" in 3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3292 *) ac_try_echo=$ac_try;; 3293esac 3294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3295$as_echo "$ac_try_echo"; } >&5 3296 (eval "$ac_link") 2>&5 3297 ac_status=$? 3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3299 test $ac_status = 0; }; then : 3300 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3301# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3302# work properly (i.e., refer to `conftest.exe'), while it won't with 3303# `rm'. 3304for ac_file in conftest.exe conftest conftest.*; do 3305 test -f "$ac_file" || continue 3306 case $ac_file in 3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3309 break;; 3310 * ) break;; 3311 esac 3312done 3313else 3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3316as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3317See \`config.log' for more details" "$LINENO" 5 ; } 3318fi 3319rm -f conftest conftest$ac_cv_exeext 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3321$as_echo "$ac_cv_exeext" >&6; } 3322 3323rm -f conftest.$ac_ext 3324EXEEXT=$ac_cv_exeext 3325ac_exeext=$EXEEXT 3326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327/* end confdefs.h. */ 3328#include <stdio.h> 3329int 3330main () 3331{ 3332FILE *f = fopen ("conftest.out", "w"); 3333 return ferror (f) || fclose (f) != 0; 3334 3335 ; 3336 return 0; 3337} 3338_ACEOF 3339ac_clean_files="$ac_clean_files conftest.out" 3340# Check that the compiler produces executables we can run. If not, either 3341# the compiler is broken, or we cross compile. 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3343$as_echo_n "checking whether we are cross compiling... " >&6; } 3344if test "$cross_compiling" != yes; then 3345 { { ac_try="$ac_link" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3351$as_echo "$ac_try_echo"; } >&5 3352 (eval "$ac_link") 2>&5 3353 ac_status=$? 3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3355 test $ac_status = 0; } 3356 if { ac_try='./conftest$ac_cv_exeext' 3357 { { case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3362$as_echo "$ac_try_echo"; } >&5 3363 (eval "$ac_try") 2>&5 3364 ac_status=$? 3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3366 test $ac_status = 0; }; }; then 3367 cross_compiling=no 3368 else 3369 if test "$cross_compiling" = maybe; then 3370 cross_compiling=yes 3371 else 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 run C compiled programs. 3375If you meant to cross compile, use \`--host'. 3376See \`config.log' for more details" "$LINENO" 5 ; } 3377 fi 3378 fi 3379fi 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3381$as_echo "$cross_compiling" >&6; } 3382 3383rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3384ac_clean_files=$ac_clean_files_save 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3386$as_echo_n "checking for suffix of object files... " >&6; } 3387if test "${ac_cv_objext+set}" = set; then : 3388 $as_echo_n "(cached) " >&6 3389else 3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3391/* end confdefs.h. */ 3392 3393int 3394main () 3395{ 3396 3397 ; 3398 return 0; 3399} 3400_ACEOF 3401rm -f conftest.o conftest.obj 3402if { { ac_try="$ac_compile" 3403case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406esac 3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3408$as_echo "$ac_try_echo"; } >&5 3409 (eval "$ac_compile") 2>&5 3410 ac_status=$? 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; }; then : 3413 for ac_file in conftest.o conftest.obj conftest.*; do 3414 test -f "$ac_file" || continue; 3415 case $ac_file in 3416 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3417 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3418 break;; 3419 esac 3420done 3421else 3422 $as_echo "$as_me: failed program was:" >&5 3423sed 's/^/| /' conftest.$ac_ext >&5 3424 3425{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3427as_fn_error $? "cannot compute suffix of object files: cannot compile 3428See \`config.log' for more details" "$LINENO" 5 ; } 3429fi 3430rm -f conftest.$ac_cv_objext conftest.$ac_ext 3431fi 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3433$as_echo "$ac_cv_objext" >&6; } 3434OBJEXT=$ac_cv_objext 3435ac_objext=$OBJEXT 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3437$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3438if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3439 $as_echo_n "(cached) " >&6 3440else 3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3442/* end confdefs.h. */ 3443 3444int 3445main () 3446{ 3447#ifndef __GNUC__ 3448 choke me 3449#endif 3450 3451 ; 3452 return 0; 3453} 3454_ACEOF 3455if ac_fn_c_try_compile "$LINENO"; then : 3456 ac_compiler_gnu=yes 3457else 3458 ac_compiler_gnu=no 3459fi 3460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3461ac_cv_c_compiler_gnu=$ac_compiler_gnu 3462 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3465$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3466if test $ac_compiler_gnu = yes; then 3467 GCC=yes 3468else 3469 GCC= 3470fi 3471ac_test_CFLAGS=${CFLAGS+set} 3472ac_save_CFLAGS=$CFLAGS 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3474$as_echo_n "checking whether $CC accepts -g... " >&6; } 3475if test "${ac_cv_prog_cc_g+set}" = set; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 ac_save_c_werror_flag=$ac_c_werror_flag 3479 ac_c_werror_flag=yes 3480 ac_cv_prog_cc_g=no 3481 CFLAGS="-g" 3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483/* end confdefs.h. */ 3484 3485int 3486main () 3487{ 3488 3489 ; 3490 return 0; 3491} 3492_ACEOF 3493if ac_fn_c_try_compile "$LINENO"; then : 3494 ac_cv_prog_cc_g=yes 3495else 3496 CFLAGS="" 3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498/* end confdefs.h. */ 3499 3500int 3501main () 3502{ 3503 3504 ; 3505 return 0; 3506} 3507_ACEOF 3508if ac_fn_c_try_compile "$LINENO"; then : 3509 3510else 3511 ac_c_werror_flag=$ac_save_c_werror_flag 3512 CFLAGS="-g" 3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3514/* end confdefs.h. */ 3515 3516int 3517main () 3518{ 3519 3520 ; 3521 return 0; 3522} 3523_ACEOF 3524if ac_fn_c_try_compile "$LINENO"; then : 3525 ac_cv_prog_cc_g=yes 3526fi 3527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3528fi 3529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3530fi 3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3532 ac_c_werror_flag=$ac_save_c_werror_flag 3533fi 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3535$as_echo "$ac_cv_prog_cc_g" >&6; } 3536if test "$ac_test_CFLAGS" = set; then 3537 CFLAGS=$ac_save_CFLAGS 3538elif test $ac_cv_prog_cc_g = yes; then 3539 if test "$GCC" = yes; then 3540 CFLAGS="-g -O2" 3541 else 3542 CFLAGS="-g" 3543 fi 3544else 3545 if test "$GCC" = yes; then 3546 CFLAGS="-O2" 3547 else 3548 CFLAGS= 3549 fi 3550fi 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3552$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3553if test "${ac_cv_prog_cc_c89+set}" = set; then : 3554 $as_echo_n "(cached) " >&6 3555else 3556 ac_cv_prog_cc_c89=no 3557ac_save_CC=$CC 3558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3559/* end confdefs.h. */ 3560#include <stdarg.h> 3561#include <stdio.h> 3562#include <sys/types.h> 3563#include <sys/stat.h> 3564/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3565struct buf { int x; }; 3566FILE * (*rcsopen) (struct buf *, struct stat *, int); 3567static char *e (p, i) 3568 char **p; 3569 int i; 3570{ 3571 return p[i]; 3572} 3573static char *f (char * (*g) (char **, int), char **p, ...) 3574{ 3575 char *s; 3576 va_list v; 3577 va_start (v,p); 3578 s = g (p, va_arg (v,int)); 3579 va_end (v); 3580 return s; 3581} 3582 3583/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3584 function prototypes and stuff, but not '\xHH' hex character constants. 3585 These don't provoke an error unfortunately, instead are silently treated 3586 as 'x'. The following induces an error, until -std is added to get 3587 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3588 array size at least. It's necessary to write '\x00'==0 to get something 3589 that's true only with -std. */ 3590int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3591 3592/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3593 inside strings and character constants. */ 3594#define FOO(x) 'x' 3595int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3596 3597int test (int i, double x); 3598struct s1 {int (*f) (int a);}; 3599struct s2 {int (*f) (double a);}; 3600int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3601int argc; 3602char **argv; 3603int 3604main () 3605{ 3606return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3607 ; 3608 return 0; 3609} 3610_ACEOF 3611for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3612 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3613do 3614 CC="$ac_save_CC $ac_arg" 3615 if ac_fn_c_try_compile "$LINENO"; then : 3616 ac_cv_prog_cc_c89=$ac_arg 3617fi 3618rm -f core conftest.err conftest.$ac_objext 3619 test "x$ac_cv_prog_cc_c89" != "xno" && break 3620done 3621rm -f conftest.$ac_ext 3622CC=$ac_save_CC 3623 3624fi 3625# AC_CACHE_VAL 3626case "x$ac_cv_prog_cc_c89" in 3627 x) 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3629$as_echo "none needed" >&6; } ;; 3630 xno) 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3632$as_echo "unsupported" >&6; } ;; 3633 *) 3634 CC="$CC $ac_cv_prog_cc_c89" 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3636$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3637esac 3638if test "x$ac_cv_prog_cc_c89" != xno; then : 3639 3640fi 3641 3642ac_ext=c 3643ac_cpp='$CPP $CPPFLAGS' 3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3646ac_compiler_gnu=$ac_cv_c_compiler_gnu 3647DEPDIR="${am__leading_dot}deps" 3648 3649ac_config_commands="$ac_config_commands depfiles" 3650 3651 3652am_make=${MAKE-make} 3653cat > confinc << 'END' 3654am__doit: 3655 @echo this is the am__doit target 3656.PHONY: am__doit 3657END 3658# If we don't find an include directive, just comment out the code. 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3660$as_echo_n "checking for style of include used by $am_make... " >&6; } 3661am__include="#" 3662am__quote= 3663_am_result=none 3664# First try GNU make style include. 3665echo "include confinc" > confmf 3666# Ignore all kinds of additional output from `make'. 3667case `$am_make -s -f confmf 2> /dev/null` in #( 3668*the\ am__doit\ target*) 3669 am__include=include 3670 am__quote= 3671 _am_result=GNU 3672 ;; 3673esac 3674# Now try BSD make style include. 3675if test "$am__include" = "#"; then 3676 echo '.include "confinc"' > confmf 3677 case `$am_make -s -f confmf 2> /dev/null` in #( 3678 *the\ am__doit\ target*) 3679 am__include=.include 3680 am__quote="\"" 3681 _am_result=BSD 3682 ;; 3683 esac 3684fi 3685 3686 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3688$as_echo "$_am_result" >&6; } 3689rm -f confinc confmf 3690 3691# Check whether --enable-dependency-tracking was given. 3692if test "${enable_dependency_tracking+set}" = set; then : 3693 enableval=$enable_dependency_tracking; 3694fi 3695 3696if test "x$enable_dependency_tracking" != xno; then 3697 am_depcomp="$ac_aux_dir/depcomp" 3698 AMDEPBACKSLASH='\' 3699fi 3700 if test "x$enable_dependency_tracking" != xno; then 3701 AMDEP_TRUE= 3702 AMDEP_FALSE='#' 3703else 3704 AMDEP_TRUE='#' 3705 AMDEP_FALSE= 3706fi 3707 3708 3709 3710depcc="$CC" am_compiler_list= 3711 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3713$as_echo_n "checking dependency style of $depcc... " >&6; } 3714if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3715 $as_echo_n "(cached) " >&6 3716else 3717 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3718 # We make a subdir and do the tests there. Otherwise we can end up 3719 # making bogus files that we don't know about and never remove. For 3720 # instance it was reported that on HP-UX the gcc test will end up 3721 # making a dummy file named `D' -- because `-MD' means `put the output 3722 # in D'. 3723 mkdir conftest.dir 3724 # Copy depcomp to subdir because otherwise we won't find it if we're 3725 # using a relative directory. 3726 cp "$am_depcomp" conftest.dir 3727 cd conftest.dir 3728 # We will build objects and dependencies in a subdirectory because 3729 # it helps to detect inapplicable dependency modes. For instance 3730 # both Tru64's cc and ICC support -MD to output dependencies as a 3731 # side effect of compilation, but ICC will put the dependencies in 3732 # the current directory while Tru64 will put them in the object 3733 # directory. 3734 mkdir sub 3735 3736 am_cv_CC_dependencies_compiler_type=none 3737 if test "$am_compiler_list" = ""; then 3738 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3739 fi 3740 am__universal=false 3741 case " $depcc " in #( 3742 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3743 esac 3744 3745 for depmode in $am_compiler_list; do 3746 # Setup a source with many dependencies, because some compilers 3747 # like to wrap large dependency lists on column 80 (with \), and 3748 # we should not choose a depcomp mode which is confused by this. 3749 # 3750 # We need to recreate these files for each test, as the compiler may 3751 # overwrite some of them when testing with obscure command lines. 3752 # This happens at least with the AIX C compiler. 3753 : > sub/conftest.c 3754 for i in 1 2 3 4 5 6; do 3755 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3756 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3757 # Solaris 8's {/usr,}/bin/sh. 3758 touch sub/conftst$i.h 3759 done 3760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3761 3762 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3763 # mode. It turns out that the SunPro C++ compiler does not properly 3764 # handle `-M -o', and we need to detect this. Also, some Intel 3765 # versions had trouble with output in subdirs 3766 am__obj=sub/conftest.${OBJEXT-o} 3767 am__minus_obj="-o $am__obj" 3768 case $depmode in 3769 gcc) 3770 # This depmode causes a compiler race in universal mode. 3771 test "$am__universal" = false || continue 3772 ;; 3773 nosideeffect) 3774 # after this tag, mechanisms are not by side-effect, so they'll 3775 # only be used when explicitly requested 3776 if test "x$enable_dependency_tracking" = xyes; then 3777 continue 3778 else 3779 break 3780 fi 3781 ;; 3782 msvisualcpp | msvcmsys) 3783 # This compiler won't grok `-c -o', but also, the minuso test has 3784 # not run yet. These depmodes are late enough in the game, and 3785 # so weak that their functioning should not be impacted. 3786 am__obj=conftest.${OBJEXT-o} 3787 am__minus_obj= 3788 ;; 3789 none) break ;; 3790 esac 3791 if depmode=$depmode \ 3792 source=sub/conftest.c object=$am__obj \ 3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3794 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3795 >/dev/null 2>conftest.err && 3796 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3797 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3798 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3799 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3800 # icc doesn't choke on unknown options, it will just issue warnings 3801 # or remarks (even with -Werror). So we grep stderr for any message 3802 # that says an option was ignored or not supported. 3803 # When given -MP, icc 7.0 and 7.1 complain thusly: 3804 # icc: Command line warning: ignoring option '-M'; no argument required 3805 # The diagnosis changed in icc 8.0: 3806 # icc: Command line remark: option '-MP' not supported 3807 if (grep 'ignoring option' conftest.err || 3808 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3809 am_cv_CC_dependencies_compiler_type=$depmode 3810 break 3811 fi 3812 fi 3813 done 3814 3815 cd .. 3816 rm -rf conftest.dir 3817else 3818 am_cv_CC_dependencies_compiler_type=none 3819fi 3820 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3823$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3824CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3825 3826 if 3827 test "x$enable_dependency_tracking" != xno \ 3828 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3829 am__fastdepCC_TRUE= 3830 am__fastdepCC_FALSE='#' 3831else 3832 am__fastdepCC_TRUE='#' 3833 am__fastdepCC_FALSE= 3834fi 3835 3836 3837# Make sure we can run config.sub. 3838$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3839 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3840 3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3842$as_echo_n "checking build system type... " >&6; } 3843if test "${ac_cv_build+set}" = set; then : 3844 $as_echo_n "(cached) " >&6 3845else 3846 ac_build_alias=$build_alias 3847test "x$ac_build_alias" = x && 3848 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3849test "x$ac_build_alias" = x && 3850 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3851ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3852 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3853 3854fi 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3856$as_echo "$ac_cv_build" >&6; } 3857case $ac_cv_build in 3858*-*-*) ;; 3859*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 3860esac 3861build=$ac_cv_build 3862ac_save_IFS=$IFS; IFS='-' 3863set x $ac_cv_build 3864shift 3865build_cpu=$1 3866build_vendor=$2 3867shift; shift 3868# Remember, the first character of IFS is used to create $*, 3869# except with old shells: 3870build_os=$* 3871IFS=$ac_save_IFS 3872case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3873 3874 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3876$as_echo_n "checking host system type... " >&6; } 3877if test "${ac_cv_host+set}" = set; then : 3878 $as_echo_n "(cached) " >&6 3879else 3880 if test "x$host_alias" = x; then 3881 ac_cv_host=$ac_cv_build 3882else 3883 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3884 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3885fi 3886 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3889$as_echo "$ac_cv_host" >&6; } 3890case $ac_cv_host in 3891*-*-*) ;; 3892*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 3893esac 3894host=$ac_cv_host 3895ac_save_IFS=$IFS; IFS='-' 3896set x $ac_cv_host 3897shift 3898host_cpu=$1 3899host_vendor=$2 3900shift; shift 3901# Remember, the first character of IFS is used to create $*, 3902# except with old shells: 3903host_os=$* 3904IFS=$ac_save_IFS 3905case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3906 3907 3908enable_win32_dll=yes 3909 3910case $host in 3911*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 3912 if test -n "$ac_tool_prefix"; then 3913 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3914set dummy ${ac_tool_prefix}as; ac_word=$2 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3916$as_echo_n "checking for $ac_word... " >&6; } 3917if test "${ac_cv_prog_AS+set}" = set; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 if test -n "$AS"; then 3921 ac_cv_prog_AS="$AS" # Let the user override the test. 3922else 3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH 3925do 3926 IFS=$as_save_IFS 3927 test -z "$as_dir" && as_dir=. 3928 for ac_exec_ext in '' $ac_executable_extensions; do 3929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3930 ac_cv_prog_AS="${ac_tool_prefix}as" 3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3932 break 2 3933 fi 3934done 3935 done 3936IFS=$as_save_IFS 3937 3938fi 3939fi 3940AS=$ac_cv_prog_AS 3941if test -n "$AS"; then 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3943$as_echo "$AS" >&6; } 3944else 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3946$as_echo "no" >&6; } 3947fi 3948 3949 3950fi 3951if test -z "$ac_cv_prog_AS"; then 3952 ac_ct_AS=$AS 3953 # Extract the first word of "as", so it can be a program name with args. 3954set dummy as; ac_word=$2 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3956$as_echo_n "checking for $ac_word... " >&6; } 3957if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 3958 $as_echo_n "(cached) " >&6 3959else 3960 if test -n "$ac_ct_AS"; then 3961 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3962else 3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_exec_ext in '' $ac_executable_extensions; do 3969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3970 ac_cv_prog_ac_ct_AS="as" 3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3972 break 2 3973 fi 3974done 3975 done 3976IFS=$as_save_IFS 3977 3978fi 3979fi 3980ac_ct_AS=$ac_cv_prog_ac_ct_AS 3981if test -n "$ac_ct_AS"; then 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3983$as_echo "$ac_ct_AS" >&6; } 3984else 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986$as_echo "no" >&6; } 3987fi 3988 3989 if test "x$ac_ct_AS" = x; then 3990 AS="false" 3991 else 3992 case $cross_compiling:$ac_tool_warned in 3993yes:) 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3996ac_tool_warned=yes ;; 3997esac 3998 AS=$ac_ct_AS 3999 fi 4000else 4001 AS="$ac_cv_prog_AS" 4002fi 4003 4004 if test -n "$ac_tool_prefix"; then 4005 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4006set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4008$as_echo_n "checking for $ac_word... " >&6; } 4009if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 4010 $as_echo_n "(cached) " >&6 4011else 4012 if test -n "$DLLTOOL"; then 4013 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4014else 4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_exec_ext in '' $ac_executable_extensions; do 4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4022 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4024 break 2 4025 fi 4026done 4027 done 4028IFS=$as_save_IFS 4029 4030fi 4031fi 4032DLLTOOL=$ac_cv_prog_DLLTOOL 4033if test -n "$DLLTOOL"; then 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4035$as_echo "$DLLTOOL" >&6; } 4036else 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4038$as_echo "no" >&6; } 4039fi 4040 4041 4042fi 4043if test -z "$ac_cv_prog_DLLTOOL"; then 4044 ac_ct_DLLTOOL=$DLLTOOL 4045 # Extract the first word of "dlltool", so it can be a program name with args. 4046set dummy dlltool; ac_word=$2 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4048$as_echo_n "checking for $ac_word... " >&6; } 4049if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 if test -n "$ac_ct_DLLTOOL"; then 4053 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4054else 4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4056for as_dir in $PATH 4057do 4058 IFS=$as_save_IFS 4059 test -z "$as_dir" && as_dir=. 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4062 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4064 break 2 4065 fi 4066done 4067 done 4068IFS=$as_save_IFS 4069 4070fi 4071fi 4072ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4073if test -n "$ac_ct_DLLTOOL"; then 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4075$as_echo "$ac_ct_DLLTOOL" >&6; } 4076else 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4078$as_echo "no" >&6; } 4079fi 4080 4081 if test "x$ac_ct_DLLTOOL" = x; then 4082 DLLTOOL="false" 4083 else 4084 case $cross_compiling:$ac_tool_warned in 4085yes:) 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4088ac_tool_warned=yes ;; 4089esac 4090 DLLTOOL=$ac_ct_DLLTOOL 4091 fi 4092else 4093 DLLTOOL="$ac_cv_prog_DLLTOOL" 4094fi 4095 4096 if test -n "$ac_tool_prefix"; then 4097 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4098set dummy ${ac_tool_prefix}objdump; ac_word=$2 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4100$as_echo_n "checking for $ac_word... " >&6; } 4101if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 if test -n "$OBJDUMP"; then 4105 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4106else 4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH 4109do 4110 IFS=$as_save_IFS 4111 test -z "$as_dir" && as_dir=. 4112 for ac_exec_ext in '' $ac_executable_extensions; do 4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4114 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4116 break 2 4117 fi 4118done 4119 done 4120IFS=$as_save_IFS 4121 4122fi 4123fi 4124OBJDUMP=$ac_cv_prog_OBJDUMP 4125if test -n "$OBJDUMP"; then 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4127$as_echo "$OBJDUMP" >&6; } 4128else 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4130$as_echo "no" >&6; } 4131fi 4132 4133 4134fi 4135if test -z "$ac_cv_prog_OBJDUMP"; then 4136 ac_ct_OBJDUMP=$OBJDUMP 4137 # Extract the first word of "objdump", so it can be a program name with args. 4138set dummy objdump; ac_word=$2 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4140$as_echo_n "checking for $ac_word... " >&6; } 4141if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if test -n "$ac_ct_OBJDUMP"; then 4145 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4146else 4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148for as_dir in $PATH 4149do 4150 IFS=$as_save_IFS 4151 test -z "$as_dir" && as_dir=. 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4154 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4156 break 2 4157 fi 4158done 4159 done 4160IFS=$as_save_IFS 4161 4162fi 4163fi 4164ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4165if test -n "$ac_ct_OBJDUMP"; then 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4167$as_echo "$ac_ct_OBJDUMP" >&6; } 4168else 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4170$as_echo "no" >&6; } 4171fi 4172 4173 if test "x$ac_ct_OBJDUMP" = x; then 4174 OBJDUMP="false" 4175 else 4176 case $cross_compiling:$ac_tool_warned in 4177yes:) 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4180ac_tool_warned=yes ;; 4181esac 4182 OBJDUMP=$ac_ct_OBJDUMP 4183 fi 4184else 4185 OBJDUMP="$ac_cv_prog_OBJDUMP" 4186fi 4187 4188 ;; 4189esac 4190 4191test -z "$AS" && AS=as 4192 4193 4194 4195 4196 4197test -z "$DLLTOOL" && DLLTOOL=dlltool 4198 4199 4200 4201 4202 4203test -z "$OBJDUMP" && OBJDUMP=objdump 4204 4205 4206 4207 4208 4209 4210 4211case `pwd` in 4212 *\ * | *\ *) 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4214$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4215esac 4216 4217 4218 4219macro_version='2.2.6b' 4220macro_revision='1.3017' 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234ltmain="$ac_aux_dir/ltmain.sh" 4235 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4237$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4238if test "${ac_cv_path_SED+set}" = set; then : 4239 $as_echo_n "(cached) " >&6 4240else 4241 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4242 for ac_i in 1 2 3 4 5 6 7; do 4243 ac_script="$ac_script$as_nl$ac_script" 4244 done 4245 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4246 { ac_script=; unset ac_script;} 4247 if test -z "$SED"; then 4248 ac_path_SED_found=false 4249 # Loop through the user's path and test for each of PROGNAME-LIST 4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4251for as_dir in $PATH 4252do 4253 IFS=$as_save_IFS 4254 test -z "$as_dir" && as_dir=. 4255 for ac_prog in sed gsed; do 4256 for ac_exec_ext in '' $ac_executable_extensions; do 4257 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4258 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4259# Check for GNU ac_path_SED and select it if it is found. 4260 # Check for GNU $ac_path_SED 4261case `"$ac_path_SED" --version 2>&1` in 4262*GNU*) 4263 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4264*) 4265 ac_count=0 4266 $as_echo_n 0123456789 >"conftest.in" 4267 while : 4268 do 4269 cat "conftest.in" "conftest.in" >"conftest.tmp" 4270 mv "conftest.tmp" "conftest.in" 4271 cp "conftest.in" "conftest.nl" 4272 $as_echo '' >> "conftest.nl" 4273 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4275 as_fn_arith $ac_count + 1 && ac_count=$as_val 4276 if test $ac_count -gt ${ac_path_SED_max-0}; then 4277 # Best one so far, save it but keep looking for a better one 4278 ac_cv_path_SED="$ac_path_SED" 4279 ac_path_SED_max=$ac_count 4280 fi 4281 # 10*(2^10) chars as input seems more than enough 4282 test $ac_count -gt 10 && break 4283 done 4284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4285esac 4286 4287 $ac_path_SED_found && break 3 4288 done 4289 done 4290 done 4291IFS=$as_save_IFS 4292 if test -z "$ac_cv_path_SED"; then 4293 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4294 fi 4295else 4296 ac_cv_path_SED=$SED 4297fi 4298 4299fi 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4301$as_echo "$ac_cv_path_SED" >&6; } 4302 SED="$ac_cv_path_SED" 4303 rm -f conftest.sed 4304 4305test -z "$SED" && SED=sed 4306Xsed="$SED -e 1s/^X//" 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4319$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4320if test "${ac_cv_path_GREP+set}" = set; then : 4321 $as_echo_n "(cached) " >&6 4322else 4323 if test -z "$GREP"; then 4324 ac_path_GREP_found=false 4325 # Loop through the user's path and test for each of PROGNAME-LIST 4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4327for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4328do 4329 IFS=$as_save_IFS 4330 test -z "$as_dir" && as_dir=. 4331 for ac_prog in grep ggrep; do 4332 for ac_exec_ext in '' $ac_executable_extensions; do 4333 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4334 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4335# Check for GNU ac_path_GREP and select it if it is found. 4336 # Check for GNU $ac_path_GREP 4337case `"$ac_path_GREP" --version 2>&1` in 4338*GNU*) 4339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4340*) 4341 ac_count=0 4342 $as_echo_n 0123456789 >"conftest.in" 4343 while : 4344 do 4345 cat "conftest.in" "conftest.in" >"conftest.tmp" 4346 mv "conftest.tmp" "conftest.in" 4347 cp "conftest.in" "conftest.nl" 4348 $as_echo 'GREP' >> "conftest.nl" 4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4351 as_fn_arith $ac_count + 1 && ac_count=$as_val 4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4353 # Best one so far, save it but keep looking for a better one 4354 ac_cv_path_GREP="$ac_path_GREP" 4355 ac_path_GREP_max=$ac_count 4356 fi 4357 # 10*(2^10) chars as input seems more than enough 4358 test $ac_count -gt 10 && break 4359 done 4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4361esac 4362 4363 $ac_path_GREP_found && break 3 4364 done 4365 done 4366 done 4367IFS=$as_save_IFS 4368 if test -z "$ac_cv_path_GREP"; then 4369 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4370 fi 4371else 4372 ac_cv_path_GREP=$GREP 4373fi 4374 4375fi 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4377$as_echo "$ac_cv_path_GREP" >&6; } 4378 GREP="$ac_cv_path_GREP" 4379 4380 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4382$as_echo_n "checking for egrep... " >&6; } 4383if test "${ac_cv_path_EGREP+set}" = set; then : 4384 $as_echo_n "(cached) " >&6 4385else 4386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4387 then ac_cv_path_EGREP="$GREP -E" 4388 else 4389 if test -z "$EGREP"; then 4390 ac_path_EGREP_found=false 4391 # Loop through the user's path and test for each of PROGNAME-LIST 4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4394do 4395 IFS=$as_save_IFS 4396 test -z "$as_dir" && as_dir=. 4397 for ac_prog in egrep; do 4398 for ac_exec_ext in '' $ac_executable_extensions; do 4399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4401# Check for GNU ac_path_EGREP and select it if it is found. 4402 # Check for GNU $ac_path_EGREP 4403case `"$ac_path_EGREP" --version 2>&1` in 4404*GNU*) 4405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4406*) 4407 ac_count=0 4408 $as_echo_n 0123456789 >"conftest.in" 4409 while : 4410 do 4411 cat "conftest.in" "conftest.in" >"conftest.tmp" 4412 mv "conftest.tmp" "conftest.in" 4413 cp "conftest.in" "conftest.nl" 4414 $as_echo 'EGREP' >> "conftest.nl" 4415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4417 as_fn_arith $ac_count + 1 && ac_count=$as_val 4418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4419 # Best one so far, save it but keep looking for a better one 4420 ac_cv_path_EGREP="$ac_path_EGREP" 4421 ac_path_EGREP_max=$ac_count 4422 fi 4423 # 10*(2^10) chars as input seems more than enough 4424 test $ac_count -gt 10 && break 4425 done 4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4427esac 4428 4429 $ac_path_EGREP_found && break 3 4430 done 4431 done 4432 done 4433IFS=$as_save_IFS 4434 if test -z "$ac_cv_path_EGREP"; then 4435 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4436 fi 4437else 4438 ac_cv_path_EGREP=$EGREP 4439fi 4440 4441 fi 4442fi 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4444$as_echo "$ac_cv_path_EGREP" >&6; } 4445 EGREP="$ac_cv_path_EGREP" 4446 4447 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4449$as_echo_n "checking for fgrep... " >&6; } 4450if test "${ac_cv_path_FGREP+set}" = set; then : 4451 $as_echo_n "(cached) " >&6 4452else 4453 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4454 then ac_cv_path_FGREP="$GREP -F" 4455 else 4456 if test -z "$FGREP"; then 4457 ac_path_FGREP_found=false 4458 # Loop through the user's path and test for each of PROGNAME-LIST 4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4461do 4462 IFS=$as_save_IFS 4463 test -z "$as_dir" && as_dir=. 4464 for ac_prog in fgrep; do 4465 for ac_exec_ext in '' $ac_executable_extensions; do 4466 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4467 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4468# Check for GNU ac_path_FGREP and select it if it is found. 4469 # Check for GNU $ac_path_FGREP 4470case `"$ac_path_FGREP" --version 2>&1` in 4471*GNU*) 4472 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4473*) 4474 ac_count=0 4475 $as_echo_n 0123456789 >"conftest.in" 4476 while : 4477 do 4478 cat "conftest.in" "conftest.in" >"conftest.tmp" 4479 mv "conftest.tmp" "conftest.in" 4480 cp "conftest.in" "conftest.nl" 4481 $as_echo 'FGREP' >> "conftest.nl" 4482 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4484 as_fn_arith $ac_count + 1 && ac_count=$as_val 4485 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4486 # Best one so far, save it but keep looking for a better one 4487 ac_cv_path_FGREP="$ac_path_FGREP" 4488 ac_path_FGREP_max=$ac_count 4489 fi 4490 # 10*(2^10) chars as input seems more than enough 4491 test $ac_count -gt 10 && break 4492 done 4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4494esac 4495 4496 $ac_path_FGREP_found && break 3 4497 done 4498 done 4499 done 4500IFS=$as_save_IFS 4501 if test -z "$ac_cv_path_FGREP"; then 4502 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4503 fi 4504else 4505 ac_cv_path_FGREP=$FGREP 4506fi 4507 4508 fi 4509fi 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4511$as_echo "$ac_cv_path_FGREP" >&6; } 4512 FGREP="$ac_cv_path_FGREP" 4513 4514 4515test -z "$GREP" && GREP=grep 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535# Check whether --with-gnu-ld was given. 4536if test "${with_gnu_ld+set}" = set; then : 4537 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4538else 4539 with_gnu_ld=no 4540fi 4541 4542ac_prog=ld 4543if test "$GCC" = yes; then 4544 # Check if gcc -print-prog-name=ld gives a path. 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4546$as_echo_n "checking for ld used by $CC... " >&6; } 4547 case $host in 4548 *-*-mingw*) 4549 # gcc leaves a trailing carriage return which upsets mingw 4550 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4551 *) 4552 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4553 esac 4554 case $ac_prog in 4555 # Accept absolute paths. 4556 [\\/]* | ?:[\\/]*) 4557 re_direlt='/[^/][^/]*/\.\./' 4558 # Canonicalize the pathname of ld 4559 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4560 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4561 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4562 done 4563 test -z "$LD" && LD="$ac_prog" 4564 ;; 4565 "") 4566 # If it fails, then pretend we aren't using GCC. 4567 ac_prog=ld 4568 ;; 4569 *) 4570 # If it is relative, then search for the first ld in PATH. 4571 with_gnu_ld=unknown 4572 ;; 4573 esac 4574elif test "$with_gnu_ld" = yes; then 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4576$as_echo_n "checking for GNU ld... " >&6; } 4577else 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4579$as_echo_n "checking for non-GNU ld... " >&6; } 4580fi 4581if test "${lt_cv_path_LD+set}" = set; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 if test -z "$LD"; then 4585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4586 for ac_dir in $PATH; do 4587 IFS="$lt_save_ifs" 4588 test -z "$ac_dir" && ac_dir=. 4589 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4590 lt_cv_path_LD="$ac_dir/$ac_prog" 4591 # Check to see if the program is GNU ld. I'd rather use --version, 4592 # but apparently some variants of GNU ld only accept -v. 4593 # Break only if it was the GNU/non-GNU ld that we prefer. 4594 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4595 *GNU* | *'with BFD'*) 4596 test "$with_gnu_ld" != no && break 4597 ;; 4598 *) 4599 test "$with_gnu_ld" != yes && break 4600 ;; 4601 esac 4602 fi 4603 done 4604 IFS="$lt_save_ifs" 4605else 4606 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4607fi 4608fi 4609 4610LD="$lt_cv_path_LD" 4611if test -n "$LD"; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4613$as_echo "$LD" >&6; } 4614else 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4616$as_echo "no" >&6; } 4617fi 4618test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4620$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4621if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4625case `$LD -v 2>&1 </dev/null` in 4626*GNU* | *'with BFD'*) 4627 lt_cv_prog_gnu_ld=yes 4628 ;; 4629*) 4630 lt_cv_prog_gnu_ld=no 4631 ;; 4632esac 4633fi 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4635$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4636with_gnu_ld=$lt_cv_prog_gnu_ld 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4647$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4648if test "${lt_cv_path_NM+set}" = set; then : 4649 $as_echo_n "(cached) " >&6 4650else 4651 if test -n "$NM"; then 4652 # Let the user override the test. 4653 lt_cv_path_NM="$NM" 4654else 4655 lt_nm_to_check="${ac_tool_prefix}nm" 4656 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4657 lt_nm_to_check="$lt_nm_to_check nm" 4658 fi 4659 for lt_tmp_nm in $lt_nm_to_check; do 4660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4661 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4662 IFS="$lt_save_ifs" 4663 test -z "$ac_dir" && ac_dir=. 4664 tmp_nm="$ac_dir/$lt_tmp_nm" 4665 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4666 # Check to see if the nm accepts a BSD-compat flag. 4667 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4668 # nm: unknown option "B" ignored 4669 # Tru64's nm complains that /dev/null is an invalid object file 4670 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4671 */dev/null* | *'Invalid file or object type'*) 4672 lt_cv_path_NM="$tmp_nm -B" 4673 break 4674 ;; 4675 *) 4676 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4677 */dev/null*) 4678 lt_cv_path_NM="$tmp_nm -p" 4679 break 4680 ;; 4681 *) 4682 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4683 continue # so that we can try to find one that supports BSD flags 4684 ;; 4685 esac 4686 ;; 4687 esac 4688 fi 4689 done 4690 IFS="$lt_save_ifs" 4691 done 4692 : ${lt_cv_path_NM=no} 4693fi 4694fi 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4696$as_echo "$lt_cv_path_NM" >&6; } 4697if test "$lt_cv_path_NM" != "no"; then 4698 NM="$lt_cv_path_NM" 4699else 4700 # Didn't find any BSD compatible name lister, look for dumpbin. 4701 if test -n "$ac_tool_prefix"; then 4702 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4703 do 4704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4705set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4707$as_echo_n "checking for $ac_word... " >&6; } 4708if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 if test -n "$DUMPBIN"; then 4712 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4713else 4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 test -z "$as_dir" && as_dir=. 4719 for ac_exec_ext in '' $ac_executable_extensions; do 4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4721 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4723 break 2 4724 fi 4725done 4726 done 4727IFS=$as_save_IFS 4728 4729fi 4730fi 4731DUMPBIN=$ac_cv_prog_DUMPBIN 4732if test -n "$DUMPBIN"; then 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4734$as_echo "$DUMPBIN" >&6; } 4735else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737$as_echo "no" >&6; } 4738fi 4739 4740 4741 test -n "$DUMPBIN" && break 4742 done 4743fi 4744if test -z "$DUMPBIN"; then 4745 ac_ct_DUMPBIN=$DUMPBIN 4746 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4747do 4748 # Extract the first word of "$ac_prog", so it can be a program name with args. 4749set dummy $ac_prog; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test -n "$ac_ct_DUMPBIN"; then 4756 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4757else 4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4765 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4776if test -n "$ac_ct_DUMPBIN"; then 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4778$as_echo "$ac_ct_DUMPBIN" >&6; } 4779else 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781$as_echo "no" >&6; } 4782fi 4783 4784 4785 test -n "$ac_ct_DUMPBIN" && break 4786done 4787 4788 if test "x$ac_ct_DUMPBIN" = x; then 4789 DUMPBIN=":" 4790 else 4791 case $cross_compiling:$ac_tool_warned in 4792yes:) 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4795ac_tool_warned=yes ;; 4796esac 4797 DUMPBIN=$ac_ct_DUMPBIN 4798 fi 4799fi 4800 4801 4802 if test "$DUMPBIN" != ":"; then 4803 NM="$DUMPBIN" 4804 fi 4805fi 4806test -z "$NM" && NM=nm 4807 4808 4809 4810 4811 4812 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4814$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4815if test "${lt_cv_nm_interface+set}" = set; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 lt_cv_nm_interface="BSD nm" 4819 echo "int some_variable = 0;" > conftest.$ac_ext 4820 (eval echo "\"\$as_me:4820: $ac_compile\"" >&5) 4821 (eval "$ac_compile" 2>conftest.err) 4822 cat conftest.err >&5 4823 (eval echo "\"\$as_me:4823: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4824 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4825 cat conftest.err >&5 4826 (eval echo "\"\$as_me:4826: output\"" >&5) 4827 cat conftest.out >&5 4828 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4829 lt_cv_nm_interface="MS dumpbin" 4830 fi 4831 rm -f conftest* 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4834$as_echo "$lt_cv_nm_interface" >&6; } 4835 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4837$as_echo_n "checking whether ln -s works... " >&6; } 4838LN_S=$as_ln_s 4839if test "$LN_S" = "ln -s"; then 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4841$as_echo "yes" >&6; } 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4844$as_echo "no, using $LN_S" >&6; } 4845fi 4846 4847# find the maximum length of command line arguments 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4849$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4850if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4851 $as_echo_n "(cached) " >&6 4852else 4853 i=0 4854 teststring="ABCD" 4855 4856 case $build_os in 4857 msdosdjgpp*) 4858 # On DJGPP, this test can blow up pretty badly due to problems in libc 4859 # (any single argument exceeding 2000 bytes causes a buffer overrun 4860 # during glob expansion). Even if it were fixed, the result of this 4861 # check would be larger than it should be. 4862 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4863 ;; 4864 4865 gnu*) 4866 # Under GNU Hurd, this test is not required because there is 4867 # no limit to the length of command line arguments. 4868 # Libtool will interpret -1 as no limit whatsoever 4869 lt_cv_sys_max_cmd_len=-1; 4870 ;; 4871 4872 cygwin* | mingw* | cegcc*) 4873 # On Win9x/ME, this test blows up -- it succeeds, but takes 4874 # about 5 minutes as the teststring grows exponentially. 4875 # Worse, since 9x/ME are not pre-emptively multitasking, 4876 # you end up with a "frozen" computer, even though with patience 4877 # the test eventually succeeds (with a max line length of 256k). 4878 # Instead, let's just punt: use the minimum linelength reported by 4879 # all of the supported platforms: 8192 (on NT/2K/XP). 4880 lt_cv_sys_max_cmd_len=8192; 4881 ;; 4882 4883 amigaos*) 4884 # On AmigaOS with pdksh, this test takes hours, literally. 4885 # So we just punt and use a minimum line length of 8192. 4886 lt_cv_sys_max_cmd_len=8192; 4887 ;; 4888 4889 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4890 # This has been around since 386BSD, at least. Likely further. 4891 if test -x /sbin/sysctl; then 4892 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4893 elif test -x /usr/sbin/sysctl; then 4894 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4895 else 4896 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4897 fi 4898 # And add a safety zone 4899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4901 ;; 4902 4903 interix*) 4904 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4905 lt_cv_sys_max_cmd_len=196608 4906 ;; 4907 4908 osf*) 4909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4911 # nice to cause kernel panics so lets avoid the loop below. 4912 # First set a reasonable default. 4913 lt_cv_sys_max_cmd_len=16384 4914 # 4915 if test -x /sbin/sysconfig; then 4916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4917 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4918 esac 4919 fi 4920 ;; 4921 sco3.2v5*) 4922 lt_cv_sys_max_cmd_len=102400 4923 ;; 4924 sysv5* | sco5v6* | sysv4.2uw2*) 4925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4926 if test -n "$kargmax"; then 4927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4928 else 4929 lt_cv_sys_max_cmd_len=32768 4930 fi 4931 ;; 4932 *) 4933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4934 if test -n "$lt_cv_sys_max_cmd_len"; then 4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4937 else 4938 # Make teststring a little bigger before we do anything with it. 4939 # a 1K string should be a reasonable start. 4940 for i in 1 2 3 4 5 6 7 8 ; do 4941 teststring=$teststring$teststring 4942 done 4943 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4944 # If test is not a shell built-in, we'll probably end up computing a 4945 # maximum length that is only half of the actual maximum length, but 4946 # we can't tell. 4947 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4948 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4949 test $i != 17 # 1/2 MB should be enough 4950 do 4951 i=`expr $i + 1` 4952 teststring=$teststring$teststring 4953 done 4954 # Only check the string length outside the loop. 4955 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4956 teststring= 4957 # Add a significant safety factor because C++ compilers can tack on 4958 # massive amounts of additional arguments before passing them to the 4959 # linker. It appears as though 1/2 is a usable value. 4960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4961 fi 4962 ;; 4963 esac 4964 4965fi 4966 4967if test -n $lt_cv_sys_max_cmd_len ; then 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4969$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4970else 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4972$as_echo "none" >&6; } 4973fi 4974max_cmd_len=$lt_cv_sys_max_cmd_len 4975 4976 4977 4978 4979 4980 4981: ${CP="cp -f"} 4982: ${MV="mv -f"} 4983: ${RM="rm -f"} 4984 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4986$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4987# Try some XSI features 4988xsi_shell=no 4989( _lt_dummy="a/b/c" 4990 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4991 = c,a/b,, \ 4992 && eval 'test $(( 1 + 1 )) -eq 2 \ 4993 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4994 && xsi_shell=yes 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4996$as_echo "$xsi_shell" >&6; } 4997 4998 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5000$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5001lt_shell_append=no 5002( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5003 >/dev/null 2>&1 \ 5004 && lt_shell_append=yes 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5006$as_echo "$lt_shell_append" >&6; } 5007 5008 5009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5010 lt_unset=unset 5011else 5012 lt_unset=false 5013fi 5014 5015 5016 5017 5018 5019# test EBCDIC or ASCII 5020case `echo X|tr X '\101'` in 5021 A) # ASCII based system 5022 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5023 lt_SP2NL='tr \040 \012' 5024 lt_NL2SP='tr \015\012 \040\040' 5025 ;; 5026 *) # EBCDIC based system 5027 lt_SP2NL='tr \100 \n' 5028 lt_NL2SP='tr \r\n \100\100' 5029 ;; 5030esac 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5041$as_echo_n "checking for $LD option to reload object files... " >&6; } 5042if test "${lt_cv_ld_reload_flag+set}" = set; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 lt_cv_ld_reload_flag='-r' 5046fi 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5048$as_echo "$lt_cv_ld_reload_flag" >&6; } 5049reload_flag=$lt_cv_ld_reload_flag 5050case $reload_flag in 5051"" | " "*) ;; 5052*) reload_flag=" $reload_flag" ;; 5053esac 5054reload_cmds='$LD$reload_flag -o $output$reload_objs' 5055case $host_os in 5056 darwin*) 5057 if test "$GCC" = yes; then 5058 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5059 else 5060 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5061 fi 5062 ;; 5063esac 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073if test -n "$ac_tool_prefix"; then 5074 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5075set dummy ${ac_tool_prefix}objdump; ac_word=$2 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5077$as_echo_n "checking for $ac_word... " >&6; } 5078if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 if test -n "$OBJDUMP"; then 5082 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5083else 5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5085for as_dir in $PATH 5086do 5087 IFS=$as_save_IFS 5088 test -z "$as_dir" && as_dir=. 5089 for ac_exec_ext in '' $ac_executable_extensions; do 5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5091 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5093 break 2 5094 fi 5095done 5096 done 5097IFS=$as_save_IFS 5098 5099fi 5100fi 5101OBJDUMP=$ac_cv_prog_OBJDUMP 5102if test -n "$OBJDUMP"; then 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5104$as_echo "$OBJDUMP" >&6; } 5105else 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5107$as_echo "no" >&6; } 5108fi 5109 5110 5111fi 5112if test -z "$ac_cv_prog_OBJDUMP"; then 5113 ac_ct_OBJDUMP=$OBJDUMP 5114 # Extract the first word of "objdump", so it can be a program name with args. 5115set dummy objdump; ac_word=$2 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5117$as_echo_n "checking for $ac_word... " >&6; } 5118if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 if test -n "$ac_ct_OBJDUMP"; then 5122 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5123else 5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5125for as_dir in $PATH 5126do 5127 IFS=$as_save_IFS 5128 test -z "$as_dir" && as_dir=. 5129 for ac_exec_ext in '' $ac_executable_extensions; do 5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5131 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5133 break 2 5134 fi 5135done 5136 done 5137IFS=$as_save_IFS 5138 5139fi 5140fi 5141ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5142if test -n "$ac_ct_OBJDUMP"; then 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5144$as_echo "$ac_ct_OBJDUMP" >&6; } 5145else 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147$as_echo "no" >&6; } 5148fi 5149 5150 if test "x$ac_ct_OBJDUMP" = x; then 5151 OBJDUMP="false" 5152 else 5153 case $cross_compiling:$ac_tool_warned in 5154yes:) 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5157ac_tool_warned=yes ;; 5158esac 5159 OBJDUMP=$ac_ct_OBJDUMP 5160 fi 5161else 5162 OBJDUMP="$ac_cv_prog_OBJDUMP" 5163fi 5164 5165test -z "$OBJDUMP" && OBJDUMP=objdump 5166 5167 5168 5169 5170 5171 5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5173$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5174if test "${lt_cv_deplibs_check_method+set}" = set; then : 5175 $as_echo_n "(cached) " >&6 5176else 5177 lt_cv_file_magic_cmd='$MAGIC_CMD' 5178lt_cv_file_magic_test_file= 5179lt_cv_deplibs_check_method='unknown' 5180# Need to set the preceding variable on all platforms that support 5181# interlibrary dependencies. 5182# 'none' -- dependencies not supported. 5183# `unknown' -- same as none, but documents that we really don't know. 5184# 'pass_all' -- all dependencies passed with no checks. 5185# 'test_compile' -- check by making test program. 5186# 'file_magic [[regex]]' -- check by looking for files in library path 5187# which responds to the $file_magic_cmd with a given extended regex. 5188# If you have `file' or equivalent on your system and you're not sure 5189# whether `pass_all' will *always* work, you probably want this one. 5190 5191case $host_os in 5192aix[4-9]*) 5193 lt_cv_deplibs_check_method=pass_all 5194 ;; 5195 5196beos*) 5197 lt_cv_deplibs_check_method=pass_all 5198 ;; 5199 5200bsdi[45]*) 5201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5202 lt_cv_file_magic_cmd='/usr/bin/file -L' 5203 lt_cv_file_magic_test_file=/shlib/libc.so 5204 ;; 5205 5206cygwin*) 5207 # func_win32_libid is a shell function defined in ltmain.sh 5208 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5209 lt_cv_file_magic_cmd='func_win32_libid' 5210 ;; 5211 5212mingw* | pw32*) 5213 # Base MSYS/MinGW do not provide the 'file' command needed by 5214 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5215 # unless we find 'file', for example because we are cross-compiling. 5216 if ( file / ) >/dev/null 2>&1; then 5217 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5218 lt_cv_file_magic_cmd='func_win32_libid' 5219 else 5220 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5221 lt_cv_file_magic_cmd='$OBJDUMP -f' 5222 fi 5223 ;; 5224 5225cegcc) 5226 # use the weaker test based on 'objdump'. See mingw*. 5227 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5228 lt_cv_file_magic_cmd='$OBJDUMP -f' 5229 ;; 5230 5231darwin* | rhapsody*) 5232 lt_cv_deplibs_check_method=pass_all 5233 ;; 5234 5235freebsd* | dragonfly*) 5236 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5237 case $host_cpu in 5238 i*86 ) 5239 # Not sure whether the presence of OpenBSD here was a mistake. 5240 # Let's accept both of them until this is cleared up. 5241 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5242 lt_cv_file_magic_cmd=/usr/bin/file 5243 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5244 ;; 5245 esac 5246 else 5247 lt_cv_deplibs_check_method=pass_all 5248 fi 5249 ;; 5250 5251gnu*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255hpux10.20* | hpux11*) 5256 lt_cv_file_magic_cmd=/usr/bin/file 5257 case $host_cpu in 5258 ia64*) 5259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5260 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5261 ;; 5262 hppa*64*) 5263 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]' 5264 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5265 ;; 5266 *) 5267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5268 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5269 ;; 5270 esac 5271 ;; 5272 5273interix[3-9]*) 5274 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5276 ;; 5277 5278irix5* | irix6* | nonstopux*) 5279 case $LD in 5280 *-32|*"-32 ") libmagic=32-bit;; 5281 *-n32|*"-n32 ") libmagic=N32;; 5282 *-64|*"-64 ") libmagic=64-bit;; 5283 *) libmagic=never-match;; 5284 esac 5285 lt_cv_deplibs_check_method=pass_all 5286 ;; 5287 5288# This must be Linux ELF. 5289linux* | k*bsd*-gnu | kopensolaris*-gnu) 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292 5293netbsd* | netbsdelf*-gnu) 5294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5296 else 5297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5298 fi 5299 ;; 5300 5301newos6*) 5302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5303 lt_cv_file_magic_cmd=/usr/bin/file 5304 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5305 ;; 5306 5307*nto* | *qnx*) 5308 lt_cv_deplibs_check_method=pass_all 5309 ;; 5310 5311openbsd*) 5312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5314 else 5315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5316 fi 5317 ;; 5318 5319osf3* | osf4* | osf5*) 5320 lt_cv_deplibs_check_method=pass_all 5321 ;; 5322 5323rdos*) 5324 lt_cv_deplibs_check_method=pass_all 5325 ;; 5326 5327solaris*) 5328 lt_cv_deplibs_check_method=pass_all 5329 ;; 5330 5331sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5332 lt_cv_deplibs_check_method=pass_all 5333 ;; 5334 5335sysv4 | sysv4.3*) 5336 case $host_vendor in 5337 motorola) 5338 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]' 5339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5340 ;; 5341 ncr) 5342 lt_cv_deplibs_check_method=pass_all 5343 ;; 5344 sequent) 5345 lt_cv_file_magic_cmd='/bin/file' 5346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5347 ;; 5348 sni) 5349 lt_cv_file_magic_cmd='/bin/file' 5350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5351 lt_cv_file_magic_test_file=/lib/libc.so 5352 ;; 5353 siemens) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356 pc) 5357 lt_cv_deplibs_check_method=pass_all 5358 ;; 5359 esac 5360 ;; 5361 5362tpf*) 5363 lt_cv_deplibs_check_method=pass_all 5364 ;; 5365esac 5366 5367fi 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5369$as_echo "$lt_cv_deplibs_check_method" >&6; } 5370file_magic_cmd=$lt_cv_file_magic_cmd 5371deplibs_check_method=$lt_cv_deplibs_check_method 5372test -z "$deplibs_check_method" && deplibs_check_method=unknown 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385if test -n "$ac_tool_prefix"; then 5386 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5387set dummy ${ac_tool_prefix}ar; ac_word=$2 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5389$as_echo_n "checking for $ac_word... " >&6; } 5390if test "${ac_cv_prog_AR+set}" = set; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 if test -n "$AR"; then 5394 ac_cv_prog_AR="$AR" # Let the user override the test. 5395else 5396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397for as_dir in $PATH 5398do 5399 IFS=$as_save_IFS 5400 test -z "$as_dir" && as_dir=. 5401 for ac_exec_ext in '' $ac_executable_extensions; do 5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5403 ac_cv_prog_AR="${ac_tool_prefix}ar" 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5405 break 2 5406 fi 5407done 5408 done 5409IFS=$as_save_IFS 5410 5411fi 5412fi 5413AR=$ac_cv_prog_AR 5414if test -n "$AR"; then 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5416$as_echo "$AR" >&6; } 5417else 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5419$as_echo "no" >&6; } 5420fi 5421 5422 5423fi 5424if test -z "$ac_cv_prog_AR"; then 5425 ac_ct_AR=$AR 5426 # Extract the first word of "ar", so it can be a program name with args. 5427set dummy ar; ac_word=$2 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5429$as_echo_n "checking for $ac_word... " >&6; } 5430if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5431 $as_echo_n "(cached) " >&6 5432else 5433 if test -n "$ac_ct_AR"; then 5434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5435else 5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5437for as_dir in $PATH 5438do 5439 IFS=$as_save_IFS 5440 test -z "$as_dir" && as_dir=. 5441 for ac_exec_ext in '' $ac_executable_extensions; do 5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5443 ac_cv_prog_ac_ct_AR="ar" 5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5445 break 2 5446 fi 5447done 5448 done 5449IFS=$as_save_IFS 5450 5451fi 5452fi 5453ac_ct_AR=$ac_cv_prog_ac_ct_AR 5454if test -n "$ac_ct_AR"; then 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5456$as_echo "$ac_ct_AR" >&6; } 5457else 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5459$as_echo "no" >&6; } 5460fi 5461 5462 if test "x$ac_ct_AR" = x; then 5463 AR="false" 5464 else 5465 case $cross_compiling:$ac_tool_warned in 5466yes:) 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5469ac_tool_warned=yes ;; 5470esac 5471 AR=$ac_ct_AR 5472 fi 5473else 5474 AR="$ac_cv_prog_AR" 5475fi 5476 5477test -z "$AR" && AR=ar 5478test -z "$AR_FLAGS" && AR_FLAGS=cru 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490if test -n "$ac_tool_prefix"; then 5491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5492set dummy ${ac_tool_prefix}strip; ac_word=$2 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5494$as_echo_n "checking for $ac_word... " >&6; } 5495if test "${ac_cv_prog_STRIP+set}" = set; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 if test -n "$STRIP"; then 5499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5500else 5501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502for as_dir in $PATH 5503do 5504 IFS=$as_save_IFS 5505 test -z "$as_dir" && as_dir=. 5506 for ac_exec_ext in '' $ac_executable_extensions; do 5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5508 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5510 break 2 5511 fi 5512done 5513 done 5514IFS=$as_save_IFS 5515 5516fi 5517fi 5518STRIP=$ac_cv_prog_STRIP 5519if test -n "$STRIP"; then 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5521$as_echo "$STRIP" >&6; } 5522else 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5524$as_echo "no" >&6; } 5525fi 5526 5527 5528fi 5529if test -z "$ac_cv_prog_STRIP"; then 5530 ac_ct_STRIP=$STRIP 5531 # Extract the first word of "strip", so it can be a program name with args. 5532set dummy strip; ac_word=$2 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5534$as_echo_n "checking for $ac_word... " >&6; } 5535if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 if test -n "$ac_ct_STRIP"; then 5539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5540else 5541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5542for as_dir in $PATH 5543do 5544 IFS=$as_save_IFS 5545 test -z "$as_dir" && as_dir=. 5546 for ac_exec_ext in '' $ac_executable_extensions; do 5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5548 ac_cv_prog_ac_ct_STRIP="strip" 5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5550 break 2 5551 fi 5552done 5553 done 5554IFS=$as_save_IFS 5555 5556fi 5557fi 5558ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5559if test -n "$ac_ct_STRIP"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5561$as_echo "$ac_ct_STRIP" >&6; } 5562else 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5564$as_echo "no" >&6; } 5565fi 5566 5567 if test "x$ac_ct_STRIP" = x; then 5568 STRIP=":" 5569 else 5570 case $cross_compiling:$ac_tool_warned in 5571yes:) 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5574ac_tool_warned=yes ;; 5575esac 5576 STRIP=$ac_ct_STRIP 5577 fi 5578else 5579 STRIP="$ac_cv_prog_STRIP" 5580fi 5581 5582test -z "$STRIP" && STRIP=: 5583 5584 5585 5586 5587 5588 5589if test -n "$ac_tool_prefix"; then 5590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5591set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5593$as_echo_n "checking for $ac_word... " >&6; } 5594if test "${ac_cv_prog_RANLIB+set}" = set; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 if test -n "$RANLIB"; then 5598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5599else 5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5601for as_dir in $PATH 5602do 5603 IFS=$as_save_IFS 5604 test -z "$as_dir" && as_dir=. 5605 for ac_exec_ext in '' $ac_executable_extensions; do 5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5609 break 2 5610 fi 5611done 5612 done 5613IFS=$as_save_IFS 5614 5615fi 5616fi 5617RANLIB=$ac_cv_prog_RANLIB 5618if test -n "$RANLIB"; then 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5620$as_echo "$RANLIB" >&6; } 5621else 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5623$as_echo "no" >&6; } 5624fi 5625 5626 5627fi 5628if test -z "$ac_cv_prog_RANLIB"; then 5629 ac_ct_RANLIB=$RANLIB 5630 # Extract the first word of "ranlib", so it can be a program name with args. 5631set dummy ranlib; ac_word=$2 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5633$as_echo_n "checking for $ac_word... " >&6; } 5634if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 if test -n "$ac_ct_RANLIB"; then 5638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5639else 5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5641for as_dir in $PATH 5642do 5643 IFS=$as_save_IFS 5644 test -z "$as_dir" && as_dir=. 5645 for ac_exec_ext in '' $ac_executable_extensions; do 5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5647 ac_cv_prog_ac_ct_RANLIB="ranlib" 5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5649 break 2 5650 fi 5651done 5652 done 5653IFS=$as_save_IFS 5654 5655fi 5656fi 5657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5658if test -n "$ac_ct_RANLIB"; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5660$as_echo "$ac_ct_RANLIB" >&6; } 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5663$as_echo "no" >&6; } 5664fi 5665 5666 if test "x$ac_ct_RANLIB" = x; then 5667 RANLIB=":" 5668 else 5669 case $cross_compiling:$ac_tool_warned in 5670yes:) 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5673ac_tool_warned=yes ;; 5674esac 5675 RANLIB=$ac_ct_RANLIB 5676 fi 5677else 5678 RANLIB="$ac_cv_prog_RANLIB" 5679fi 5680 5681test -z "$RANLIB" && RANLIB=: 5682 5683 5684 5685 5686 5687 5688# Determine commands to create old-style static archives. 5689old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5690old_postinstall_cmds='chmod 644 $oldlib' 5691old_postuninstall_cmds= 5692 5693if test -n "$RANLIB"; then 5694 case $host_os in 5695 openbsd*) 5696 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5697 ;; 5698 *) 5699 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5700 ;; 5701 esac 5702 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5703fi 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738# If no C compiler was specified, use CC. 5739LTCC=${LTCC-"$CC"} 5740 5741# If no C compiler flags were specified, use CFLAGS. 5742LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5743 5744# Allow CC to be a program name with arguments. 5745compiler=$CC 5746 5747 5748# Check for command to grab the raw symbol name followed by C symbol from nm. 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5750$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5751if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5752 $as_echo_n "(cached) " >&6 5753else 5754 5755# These are sane defaults that work on at least a few old systems. 5756# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5757 5758# Character class describing NM global symbol codes. 5759symcode='[BCDEGRST]' 5760 5761# Regexp to match symbols that can be accessed directly from C. 5762sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5763 5764# Define system-specific variables. 5765case $host_os in 5766aix*) 5767 symcode='[BCDT]' 5768 ;; 5769cygwin* | mingw* | pw32* | cegcc*) 5770 symcode='[ABCDGISTW]' 5771 ;; 5772hpux*) 5773 if test "$host_cpu" = ia64; then 5774 symcode='[ABCDEGRST]' 5775 fi 5776 ;; 5777irix* | nonstopux*) 5778 symcode='[BCDEGRST]' 5779 ;; 5780osf*) 5781 symcode='[BCDEGQRST]' 5782 ;; 5783solaris*) 5784 symcode='[BDRT]' 5785 ;; 5786sco3.2v5*) 5787 symcode='[DT]' 5788 ;; 5789sysv4.2uw2*) 5790 symcode='[DT]' 5791 ;; 5792sysv5* | sco5v6* | unixware* | OpenUNIX*) 5793 symcode='[ABDT]' 5794 ;; 5795sysv4) 5796 symcode='[DFNSTU]' 5797 ;; 5798esac 5799 5800# If we're using GNU nm, then use its standard symbol codes. 5801case `$NM -V 2>&1` in 5802*GNU* | *'with BFD'*) 5803 symcode='[ABCDGIRSTW]' ;; 5804esac 5805 5806# Transform an extracted symbol line into a proper C declaration. 5807# Some systems (esp. on ia64) link data and code symbols differently, 5808# so use this general approach. 5809lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5810 5811# Transform an extracted symbol line into symbol name and symbol address 5812lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5813lt_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'" 5814 5815# Handle CRLF in mingw tool chain 5816opt_cr= 5817case $build_os in 5818mingw*) 5819 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5820 ;; 5821esac 5822 5823# Try without a prefix underscore, then with it. 5824for ac_symprfx in "" "_"; do 5825 5826 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5827 symxfrm="\\1 $ac_symprfx\\2 \\2" 5828 5829 # Write the raw and C identifiers. 5830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5831 # Fake it for dumpbin and say T for any non-static function 5832 # and D for any global variable. 5833 # Also find C++ and __fastcall symbols from MSVC++, 5834 # which start with @ or ?. 5835 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5836" {last_section=section; section=\$ 3};"\ 5837" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5838" \$ 0!~/External *\|/{next};"\ 5839" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5840" {if(hide[section]) next};"\ 5841" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5842" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5843" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5844" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5845" ' prfx=^$ac_symprfx" 5846 else 5847 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5848 fi 5849 5850 # Check to see that the pipe works correctly. 5851 pipe_works=no 5852 5853 rm -f conftest* 5854 cat > conftest.$ac_ext <<_LT_EOF 5855#ifdef __cplusplus 5856extern "C" { 5857#endif 5858char nm_test_var; 5859void nm_test_func(void); 5860void nm_test_func(void){} 5861#ifdef __cplusplus 5862} 5863#endif 5864int main(){nm_test_var='a';nm_test_func();return(0);} 5865_LT_EOF 5866 5867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5868 (eval $ac_compile) 2>&5 5869 ac_status=$? 5870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5871 test $ac_status = 0; }; then 5872 # Now try to grab the symbols. 5873 nlist=conftest.nm 5874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5875 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5876 ac_status=$? 5877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5878 test $ac_status = 0; } && test -s "$nlist"; then 5879 # Try sorting and uniquifying the output. 5880 if sort "$nlist" | uniq > "$nlist"T; then 5881 mv -f "$nlist"T "$nlist" 5882 else 5883 rm -f "$nlist"T 5884 fi 5885 5886 # Make sure that we snagged all the symbols we need. 5887 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5888 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5889 cat <<_LT_EOF > conftest.$ac_ext 5890#ifdef __cplusplus 5891extern "C" { 5892#endif 5893 5894_LT_EOF 5895 # Now generate the symbol file. 5896 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5897 5898 cat <<_LT_EOF >> conftest.$ac_ext 5899 5900/* The mapping between symbol names and symbols. */ 5901const struct { 5902 const char *name; 5903 void *address; 5904} 5905lt__PROGRAM__LTX_preloaded_symbols[] = 5906{ 5907 { "@PROGRAM@", (void *) 0 }, 5908_LT_EOF 5909 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5910 cat <<\_LT_EOF >> conftest.$ac_ext 5911 {0, (void *) 0} 5912}; 5913 5914/* This works around a problem in FreeBSD linker */ 5915#ifdef FREEBSD_WORKAROUND 5916static const void *lt_preloaded_setup() { 5917 return lt__PROGRAM__LTX_preloaded_symbols; 5918} 5919#endif 5920 5921#ifdef __cplusplus 5922} 5923#endif 5924_LT_EOF 5925 # Now try linking the two files. 5926 mv conftest.$ac_objext conftstm.$ac_objext 5927 lt_save_LIBS="$LIBS" 5928 lt_save_CFLAGS="$CFLAGS" 5929 LIBS="conftstm.$ac_objext" 5930 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5932 (eval $ac_link) 2>&5 5933 ac_status=$? 5934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5935 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5936 pipe_works=yes 5937 fi 5938 LIBS="$lt_save_LIBS" 5939 CFLAGS="$lt_save_CFLAGS" 5940 else 5941 echo "cannot find nm_test_func in $nlist" >&5 5942 fi 5943 else 5944 echo "cannot find nm_test_var in $nlist" >&5 5945 fi 5946 else 5947 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5948 fi 5949 else 5950 echo "$progname: failed program was:" >&5 5951 cat conftest.$ac_ext >&5 5952 fi 5953 rm -rf conftest* conftst* 5954 5955 # Do not use the global_symbol_pipe unless it works. 5956 if test "$pipe_works" = yes; then 5957 break 5958 else 5959 lt_cv_sys_global_symbol_pipe= 5960 fi 5961done 5962 5963fi 5964 5965if test -z "$lt_cv_sys_global_symbol_pipe"; then 5966 lt_cv_sys_global_symbol_to_cdecl= 5967fi 5968if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5970$as_echo "failed" >&6; } 5971else 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5973$as_echo "ok" >&6; } 5974fi 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998# Check whether --enable-libtool-lock was given. 5999if test "${enable_libtool_lock+set}" = set; then : 6000 enableval=$enable_libtool_lock; 6001fi 6002 6003test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6004 6005# Some flags need to be propagated to the compiler or linker for good 6006# libtool support. 6007case $host in 6008ia64-*-hpux*) 6009 # Find out which ABI we are using. 6010 echo 'int i;' > conftest.$ac_ext 6011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6012 (eval $ac_compile) 2>&5 6013 ac_status=$? 6014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6015 test $ac_status = 0; }; then 6016 case `/usr/bin/file conftest.$ac_objext` in 6017 *ELF-32*) 6018 HPUX_IA64_MODE="32" 6019 ;; 6020 *ELF-64*) 6021 HPUX_IA64_MODE="64" 6022 ;; 6023 esac 6024 fi 6025 rm -rf conftest* 6026 ;; 6027*-*-irix6*) 6028 # Find out which ABI we are using. 6029 echo '#line 6029 "configure"' > conftest.$ac_ext 6030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6031 (eval $ac_compile) 2>&5 6032 ac_status=$? 6033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6034 test $ac_status = 0; }; then 6035 if test "$lt_cv_prog_gnu_ld" = yes; then 6036 case `/usr/bin/file conftest.$ac_objext` in 6037 *32-bit*) 6038 LD="${LD-ld} -melf32bsmip" 6039 ;; 6040 *N32*) 6041 LD="${LD-ld} -melf32bmipn32" 6042 ;; 6043 *64-bit*) 6044 LD="${LD-ld} -melf64bmip" 6045 ;; 6046 esac 6047 else 6048 case `/usr/bin/file conftest.$ac_objext` in 6049 *32-bit*) 6050 LD="${LD-ld} -32" 6051 ;; 6052 *N32*) 6053 LD="${LD-ld} -n32" 6054 ;; 6055 *64-bit*) 6056 LD="${LD-ld} -64" 6057 ;; 6058 esac 6059 fi 6060 fi 6061 rm -rf conftest* 6062 ;; 6063 6064x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6065s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6066 # Find out which ABI we are using. 6067 echo 'int i;' > conftest.$ac_ext 6068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6069 (eval $ac_compile) 2>&5 6070 ac_status=$? 6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6072 test $ac_status = 0; }; then 6073 case `/usr/bin/file conftest.o` in 6074 *32-bit*) 6075 case $host in 6076 x86_64-*kfreebsd*-gnu) 6077 LD="${LD-ld} -m elf_i386_fbsd" 6078 ;; 6079 x86_64-*linux*) 6080 LD="${LD-ld} -m elf_i386" 6081 ;; 6082 ppc64-*linux*|powerpc64-*linux*) 6083 LD="${LD-ld} -m elf32ppclinux" 6084 ;; 6085 s390x-*linux*) 6086 LD="${LD-ld} -m elf_s390" 6087 ;; 6088 sparc64-*linux*) 6089 LD="${LD-ld} -m elf32_sparc" 6090 ;; 6091 esac 6092 ;; 6093 *64-bit*) 6094 case $host in 6095 x86_64-*kfreebsd*-gnu) 6096 LD="${LD-ld} -m elf_x86_64_fbsd" 6097 ;; 6098 x86_64-*linux*) 6099 LD="${LD-ld} -m elf_x86_64" 6100 ;; 6101 ppc*-*linux*|powerpc*-*linux*) 6102 LD="${LD-ld} -m elf64ppc" 6103 ;; 6104 s390*-*linux*|s390*-*tpf*) 6105 LD="${LD-ld} -m elf64_s390" 6106 ;; 6107 sparc*-*linux*) 6108 LD="${LD-ld} -m elf64_sparc" 6109 ;; 6110 esac 6111 ;; 6112 esac 6113 fi 6114 rm -rf conftest* 6115 ;; 6116 6117*-*-sco3.2v5*) 6118 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6119 SAVE_CFLAGS="$CFLAGS" 6120 CFLAGS="$CFLAGS -belf" 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6122$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6123if test "${lt_cv_cc_needs_belf+set}" = set; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 ac_ext=c 6127ac_cpp='$CPP $CPPFLAGS' 6128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6130ac_compiler_gnu=$ac_cv_c_compiler_gnu 6131 6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6133/* end confdefs.h. */ 6134 6135int 6136main () 6137{ 6138 6139 ; 6140 return 0; 6141} 6142_ACEOF 6143if ac_fn_c_try_link "$LINENO"; then : 6144 lt_cv_cc_needs_belf=yes 6145else 6146 lt_cv_cc_needs_belf=no 6147fi 6148rm -f core conftest.err conftest.$ac_objext \ 6149 conftest$ac_exeext conftest.$ac_ext 6150 ac_ext=c 6151ac_cpp='$CPP $CPPFLAGS' 6152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6154ac_compiler_gnu=$ac_cv_c_compiler_gnu 6155 6156fi 6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6158$as_echo "$lt_cv_cc_needs_belf" >&6; } 6159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6161 CFLAGS="$SAVE_CFLAGS" 6162 fi 6163 ;; 6164sparc*-*solaris*) 6165 # Find out which ABI we are using. 6166 echo 'int i;' > conftest.$ac_ext 6167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6168 (eval $ac_compile) 2>&5 6169 ac_status=$? 6170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6171 test $ac_status = 0; }; then 6172 case `/usr/bin/file conftest.o` in 6173 *64-bit*) 6174 case $lt_cv_prog_gnu_ld in 6175 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6176 *) 6177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6178 LD="${LD-ld} -64" 6179 fi 6180 ;; 6181 esac 6182 ;; 6183 esac 6184 fi 6185 rm -rf conftest* 6186 ;; 6187esac 6188 6189need_locks="$enable_libtool_lock" 6190 6191 6192 case $host_os in 6193 rhapsody* | darwin*) 6194 if test -n "$ac_tool_prefix"; then 6195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198$as_echo_n "checking for $ac_word... " >&6; } 6199if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6200 $as_echo_n "(cached) " >&6 6201else 6202 if test -n "$DSYMUTIL"; then 6203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6204else 6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206for as_dir in $PATH 6207do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216done 6217 done 6218IFS=$as_save_IFS 6219 6220fi 6221fi 6222DSYMUTIL=$ac_cv_prog_DSYMUTIL 6223if test -n "$DSYMUTIL"; then 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6225$as_echo "$DSYMUTIL" >&6; } 6226else 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6228$as_echo "no" >&6; } 6229fi 6230 6231 6232fi 6233if test -z "$ac_cv_prog_DSYMUTIL"; then 6234 ac_ct_DSYMUTIL=$DSYMUTIL 6235 # Extract the first word of "dsymutil", so it can be a program name with args. 6236set dummy dsymutil; ac_word=$2 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6238$as_echo_n "checking for $ac_word... " >&6; } 6239if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6240 $as_echo_n "(cached) " >&6 6241else 6242 if test -n "$ac_ct_DSYMUTIL"; then 6243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6244else 6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246for as_dir in $PATH 6247do 6248 IFS=$as_save_IFS 6249 test -z "$as_dir" && as_dir=. 6250 for ac_exec_ext in '' $ac_executable_extensions; do 6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6254 break 2 6255 fi 6256done 6257 done 6258IFS=$as_save_IFS 6259 6260fi 6261fi 6262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6263if test -n "$ac_ct_DSYMUTIL"; then 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6265$as_echo "$ac_ct_DSYMUTIL" >&6; } 6266else 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6268$as_echo "no" >&6; } 6269fi 6270 6271 if test "x$ac_ct_DSYMUTIL" = x; then 6272 DSYMUTIL=":" 6273 else 6274 case $cross_compiling:$ac_tool_warned in 6275yes:) 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6278ac_tool_warned=yes ;; 6279esac 6280 DSYMUTIL=$ac_ct_DSYMUTIL 6281 fi 6282else 6283 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6284fi 6285 6286 if test -n "$ac_tool_prefix"; then 6287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6288set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6290$as_echo_n "checking for $ac_word... " >&6; } 6291if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 if test -n "$NMEDIT"; then 6295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6296else 6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6298for as_dir in $PATH 6299do 6300 IFS=$as_save_IFS 6301 test -z "$as_dir" && as_dir=. 6302 for ac_exec_ext in '' $ac_executable_extensions; do 6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6306 break 2 6307 fi 6308done 6309 done 6310IFS=$as_save_IFS 6311 6312fi 6313fi 6314NMEDIT=$ac_cv_prog_NMEDIT 6315if test -n "$NMEDIT"; then 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6317$as_echo "$NMEDIT" >&6; } 6318else 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320$as_echo "no" >&6; } 6321fi 6322 6323 6324fi 6325if test -z "$ac_cv_prog_NMEDIT"; then 6326 ac_ct_NMEDIT=$NMEDIT 6327 # Extract the first word of "nmedit", so it can be a program name with args. 6328set dummy nmedit; ac_word=$2 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6330$as_echo_n "checking for $ac_word... " >&6; } 6331if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 if test -n "$ac_ct_NMEDIT"; then 6335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6336else 6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338for as_dir in $PATH 6339do 6340 IFS=$as_save_IFS 6341 test -z "$as_dir" && as_dir=. 6342 for ac_exec_ext in '' $ac_executable_extensions; do 6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6344 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6346 break 2 6347 fi 6348done 6349 done 6350IFS=$as_save_IFS 6351 6352fi 6353fi 6354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6355if test -n "$ac_ct_NMEDIT"; then 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6357$as_echo "$ac_ct_NMEDIT" >&6; } 6358else 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6360$as_echo "no" >&6; } 6361fi 6362 6363 if test "x$ac_ct_NMEDIT" = x; then 6364 NMEDIT=":" 6365 else 6366 case $cross_compiling:$ac_tool_warned in 6367yes:) 6368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6370ac_tool_warned=yes ;; 6371esac 6372 NMEDIT=$ac_ct_NMEDIT 6373 fi 6374else 6375 NMEDIT="$ac_cv_prog_NMEDIT" 6376fi 6377 6378 if test -n "$ac_tool_prefix"; then 6379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6380set dummy ${ac_tool_prefix}lipo; ac_word=$2 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6382$as_echo_n "checking for $ac_word... " >&6; } 6383if test "${ac_cv_prog_LIPO+set}" = set; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 if test -n "$LIPO"; then 6387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6388else 6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 test -z "$as_dir" && as_dir=. 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400done 6401 done 6402IFS=$as_save_IFS 6403 6404fi 6405fi 6406LIPO=$ac_cv_prog_LIPO 6407if test -n "$LIPO"; then 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6409$as_echo "$LIPO" >&6; } 6410else 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6412$as_echo "no" >&6; } 6413fi 6414 6415 6416fi 6417if test -z "$ac_cv_prog_LIPO"; then 6418 ac_ct_LIPO=$LIPO 6419 # Extract the first word of "lipo", so it can be a program name with args. 6420set dummy lipo; ac_word=$2 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422$as_echo_n "checking for $ac_word... " >&6; } 6423if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 if test -n "$ac_ct_LIPO"; then 6427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6428else 6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6436 ac_cv_prog_ac_ct_LIPO="lipo" 6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441 done 6442IFS=$as_save_IFS 6443 6444fi 6445fi 6446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6447if test -n "$ac_ct_LIPO"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6449$as_echo "$ac_ct_LIPO" >&6; } 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452$as_echo "no" >&6; } 6453fi 6454 6455 if test "x$ac_ct_LIPO" = x; then 6456 LIPO=":" 6457 else 6458 case $cross_compiling:$ac_tool_warned in 6459yes:) 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6462ac_tool_warned=yes ;; 6463esac 6464 LIPO=$ac_ct_LIPO 6465 fi 6466else 6467 LIPO="$ac_cv_prog_LIPO" 6468fi 6469 6470 if test -n "$ac_tool_prefix"; then 6471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6472set dummy ${ac_tool_prefix}otool; ac_word=$2 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6474$as_echo_n "checking for $ac_word... " >&6; } 6475if test "${ac_cv_prog_OTOOL+set}" = set; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 if test -n "$OTOOL"; then 6479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493 done 6494IFS=$as_save_IFS 6495 6496fi 6497fi 6498OTOOL=$ac_cv_prog_OTOOL 6499if test -n "$OTOOL"; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6501$as_echo "$OTOOL" >&6; } 6502else 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6504$as_echo "no" >&6; } 6505fi 6506 6507 6508fi 6509if test -z "$ac_cv_prog_OTOOL"; then 6510 ac_ct_OTOOL=$OTOOL 6511 # Extract the first word of "otool", so it can be a program name with args. 6512set dummy otool; ac_word=$2 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6514$as_echo_n "checking for $ac_word... " >&6; } 6515if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 if test -n "$ac_ct_OTOOL"; then 6519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6520else 6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6522for as_dir in $PATH 6523do 6524 IFS=$as_save_IFS 6525 test -z "$as_dir" && as_dir=. 6526 for ac_exec_ext in '' $ac_executable_extensions; do 6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6528 ac_cv_prog_ac_ct_OTOOL="otool" 6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6530 break 2 6531 fi 6532done 6533 done 6534IFS=$as_save_IFS 6535 6536fi 6537fi 6538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6539if test -n "$ac_ct_OTOOL"; then 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6541$as_echo "$ac_ct_OTOOL" >&6; } 6542else 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6544$as_echo "no" >&6; } 6545fi 6546 6547 if test "x$ac_ct_OTOOL" = x; then 6548 OTOOL=":" 6549 else 6550 case $cross_compiling:$ac_tool_warned in 6551yes:) 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6554ac_tool_warned=yes ;; 6555esac 6556 OTOOL=$ac_ct_OTOOL 6557 fi 6558else 6559 OTOOL="$ac_cv_prog_OTOOL" 6560fi 6561 6562 if test -n "$ac_tool_prefix"; then 6563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6564set dummy ${ac_tool_prefix}otool64; ac_word=$2 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6566$as_echo_n "checking for $ac_word... " >&6; } 6567if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 if test -n "$OTOOL64"; then 6571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6572else 6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6574for as_dir in $PATH 6575do 6576 IFS=$as_save_IFS 6577 test -z "$as_dir" && as_dir=. 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584done 6585 done 6586IFS=$as_save_IFS 6587 6588fi 6589fi 6590OTOOL64=$ac_cv_prog_OTOOL64 6591if test -n "$OTOOL64"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6593$as_echo "$OTOOL64" >&6; } 6594else 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596$as_echo "no" >&6; } 6597fi 6598 6599 6600fi 6601if test -z "$ac_cv_prog_OTOOL64"; then 6602 ac_ct_OTOOL64=$OTOOL64 6603 # Extract the first word of "otool64", so it can be a program name with args. 6604set dummy otool64; ac_word=$2 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606$as_echo_n "checking for $ac_word... " >&6; } 6607if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 if test -n "$ac_ct_OTOOL64"; then 6611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6612else 6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614for as_dir in $PATH 6615do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6620 ac_cv_prog_ac_ct_OTOOL64="otool64" 6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6622 break 2 6623 fi 6624done 6625 done 6626IFS=$as_save_IFS 6627 6628fi 6629fi 6630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6631if test -n "$ac_ct_OTOOL64"; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6633$as_echo "$ac_ct_OTOOL64" >&6; } 6634else 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6636$as_echo "no" >&6; } 6637fi 6638 6639 if test "x$ac_ct_OTOOL64" = x; then 6640 OTOOL64=":" 6641 else 6642 case $cross_compiling:$ac_tool_warned in 6643yes:) 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6646ac_tool_warned=yes ;; 6647esac 6648 OTOOL64=$ac_ct_OTOOL64 6649 fi 6650else 6651 OTOOL64="$ac_cv_prog_OTOOL64" 6652fi 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6681$as_echo_n "checking for -single_module linker flag... " >&6; } 6682if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 lt_cv_apple_cc_single_mod=no 6686 if test -z "${LT_MULTI_MODULE}"; then 6687 # By default we will add the -single_module flag. You can override 6688 # by either setting the environment variable LT_MULTI_MODULE 6689 # non-empty at configure time, or by adding -multi_module to the 6690 # link flags. 6691 rm -rf libconftest.dylib* 6692 echo "int foo(void){return 1;}" > conftest.c 6693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6694-dynamiclib -Wl,-single_module conftest.c" >&5 6695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6697 _lt_result=$? 6698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6699 lt_cv_apple_cc_single_mod=yes 6700 else 6701 cat conftest.err >&5 6702 fi 6703 rm -rf libconftest.dylib* 6704 rm -f conftest.* 6705 fi 6706fi 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6708$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6710$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6711if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6712 $as_echo_n "(cached) " >&6 6713else 6714 lt_cv_ld_exported_symbols_list=no 6715 save_LDFLAGS=$LDFLAGS 6716 echo "_main" > conftest.sym 6717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719/* end confdefs.h. */ 6720 6721int 6722main () 6723{ 6724 6725 ; 6726 return 0; 6727} 6728_ACEOF 6729if ac_fn_c_try_link "$LINENO"; then : 6730 lt_cv_ld_exported_symbols_list=yes 6731else 6732 lt_cv_ld_exported_symbols_list=no 6733fi 6734rm -f core conftest.err conftest.$ac_objext \ 6735 conftest$ac_exeext conftest.$ac_ext 6736 LDFLAGS="$save_LDFLAGS" 6737 6738fi 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6740$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6741 case $host_os in 6742 rhapsody* | darwin1.[012]) 6743 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6744 darwin1.*) 6745 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6746 darwin*) # darwin 5.x on 6747 # if running on 10.5 or later, the deployment target defaults 6748 # to the OS version, if on x86, and 10.4, the deployment 6749 # target defaults to 10.4. Don't you love it? 6750 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6751 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6752 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6753 10.[012]*) 6754 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6755 10.*) 6756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6757 esac 6758 ;; 6759 esac 6760 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6761 _lt_dar_single_mod='$single_module' 6762 fi 6763 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6764 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6765 else 6766 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6767 fi 6768 if test "$DSYMUTIL" != ":"; then 6769 _lt_dsymutil='~$DSYMUTIL $lib || :' 6770 else 6771 _lt_dsymutil= 6772 fi 6773 ;; 6774 esac 6775 6776ac_ext=c 6777ac_cpp='$CPP $CPPFLAGS' 6778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6780ac_compiler_gnu=$ac_cv_c_compiler_gnu 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6782$as_echo_n "checking how to run the C preprocessor... " >&6; } 6783# On Suns, sometimes $CPP names a directory. 6784if test -n "$CPP" && test -d "$CPP"; then 6785 CPP= 6786fi 6787if test -z "$CPP"; then 6788 if test "${ac_cv_prog_CPP+set}" = set; then : 6789 $as_echo_n "(cached) " >&6 6790else 6791 # Double quotes because CPP needs to be expanded 6792 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6793 do 6794 ac_preproc_ok=false 6795for ac_c_preproc_warn_flag in '' yes 6796do 6797 # Use a header file that comes with gcc, so configuring glibc 6798 # with a fresh cross-compiler works. 6799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6800 # <limits.h> exists even on freestanding compilers. 6801 # On the NeXT, cc -E runs the code through the compiler's parser, 6802 # not just through cpp. "Syntax error" is here to catch this case. 6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6804/* end confdefs.h. */ 6805#ifdef __STDC__ 6806# include <limits.h> 6807#else 6808# include <assert.h> 6809#endif 6810 Syntax error 6811_ACEOF 6812if ac_fn_c_try_cpp "$LINENO"; then : 6813 6814else 6815 # Broken: fails on valid input. 6816continue 6817fi 6818rm -f conftest.err conftest.i conftest.$ac_ext 6819 6820 # OK, works on sane cases. Now check whether nonexistent headers 6821 # can be detected and how. 6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6823/* end confdefs.h. */ 6824#include <ac_nonexistent.h> 6825_ACEOF 6826if ac_fn_c_try_cpp "$LINENO"; then : 6827 # Broken: success on invalid input. 6828continue 6829else 6830 # Passes both tests. 6831ac_preproc_ok=: 6832break 6833fi 6834rm -f conftest.err conftest.i conftest.$ac_ext 6835 6836done 6837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6838rm -f conftest.i conftest.err conftest.$ac_ext 6839if $ac_preproc_ok; then : 6840 break 6841fi 6842 6843 done 6844 ac_cv_prog_CPP=$CPP 6845 6846fi 6847 CPP=$ac_cv_prog_CPP 6848else 6849 ac_cv_prog_CPP=$CPP 6850fi 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6852$as_echo "$CPP" >&6; } 6853ac_preproc_ok=false 6854for ac_c_preproc_warn_flag in '' yes 6855do 6856 # Use a header file that comes with gcc, so configuring glibc 6857 # with a fresh cross-compiler works. 6858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6859 # <limits.h> exists even on freestanding compilers. 6860 # On the NeXT, cc -E runs the code through the compiler's parser, 6861 # not just through cpp. "Syntax error" is here to catch this case. 6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6863/* end confdefs.h. */ 6864#ifdef __STDC__ 6865# include <limits.h> 6866#else 6867# include <assert.h> 6868#endif 6869 Syntax error 6870_ACEOF 6871if ac_fn_c_try_cpp "$LINENO"; then : 6872 6873else 6874 # Broken: fails on valid input. 6875continue 6876fi 6877rm -f conftest.err conftest.i conftest.$ac_ext 6878 6879 # OK, works on sane cases. Now check whether nonexistent headers 6880 # can be detected and how. 6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882/* end confdefs.h. */ 6883#include <ac_nonexistent.h> 6884_ACEOF 6885if ac_fn_c_try_cpp "$LINENO"; then : 6886 # Broken: success on invalid input. 6887continue 6888else 6889 # Passes both tests. 6890ac_preproc_ok=: 6891break 6892fi 6893rm -f conftest.err conftest.i conftest.$ac_ext 6894 6895done 6896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6897rm -f conftest.i conftest.err conftest.$ac_ext 6898if $ac_preproc_ok; then : 6899 6900else 6901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6903as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6904See \`config.log' for more details" "$LINENO" 5 ; } 6905fi 6906 6907ac_ext=c 6908ac_cpp='$CPP $CPPFLAGS' 6909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6911ac_compiler_gnu=$ac_cv_c_compiler_gnu 6912 6913 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6915$as_echo_n "checking for ANSI C header files... " >&6; } 6916if test "${ac_cv_header_stdc+set}" = set; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921#include <stdlib.h> 6922#include <stdarg.h> 6923#include <string.h> 6924#include <float.h> 6925 6926int 6927main () 6928{ 6929 6930 ; 6931 return 0; 6932} 6933_ACEOF 6934if ac_fn_c_try_compile "$LINENO"; then : 6935 ac_cv_header_stdc=yes 6936else 6937 ac_cv_header_stdc=no 6938fi 6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6940 6941if test $ac_cv_header_stdc = yes; then 6942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6944/* end confdefs.h. */ 6945#include <string.h> 6946 6947_ACEOF 6948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6949 $EGREP "memchr" >/dev/null 2>&1; then : 6950 6951else 6952 ac_cv_header_stdc=no 6953fi 6954rm -f conftest* 6955 6956fi 6957 6958if test $ac_cv_header_stdc = yes; then 6959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6961/* end confdefs.h. */ 6962#include <stdlib.h> 6963 6964_ACEOF 6965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6966 $EGREP "free" >/dev/null 2>&1; then : 6967 6968else 6969 ac_cv_header_stdc=no 6970fi 6971rm -f conftest* 6972 6973fi 6974 6975if test $ac_cv_header_stdc = yes; then 6976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6977 if test "$cross_compiling" = yes; then : 6978 : 6979else 6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6981/* end confdefs.h. */ 6982#include <ctype.h> 6983#include <stdlib.h> 6984#if ((' ' & 0x0FF) == 0x020) 6985# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6986# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6987#else 6988# define ISLOWER(c) \ 6989 (('a' <= (c) && (c) <= 'i') \ 6990 || ('j' <= (c) && (c) <= 'r') \ 6991 || ('s' <= (c) && (c) <= 'z')) 6992# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6993#endif 6994 6995#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6996int 6997main () 6998{ 6999 int i; 7000 for (i = 0; i < 256; i++) 7001 if (XOR (islower (i), ISLOWER (i)) 7002 || toupper (i) != TOUPPER (i)) 7003 return 2; 7004 return 0; 7005} 7006_ACEOF 7007if ac_fn_c_try_run "$LINENO"; then : 7008 7009else 7010 ac_cv_header_stdc=no 7011fi 7012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7013 conftest.$ac_objext conftest.beam conftest.$ac_ext 7014fi 7015 7016fi 7017fi 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7019$as_echo "$ac_cv_header_stdc" >&6; } 7020if test $ac_cv_header_stdc = yes; then 7021 7022$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7023 7024fi 7025 7026# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7027for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7028 inttypes.h stdint.h unistd.h 7029do : 7030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7031ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7032" 7033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7034 cat >>confdefs.h <<_ACEOF 7035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7036_ACEOF 7037 7038fi 7039 7040done 7041 7042 7043for ac_header in dlfcn.h 7044do : 7045 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7046" 7047if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7048 cat >>confdefs.h <<_ACEOF 7049#define HAVE_DLFCN_H 1 7050_ACEOF 7051 7052fi 7053 7054done 7055 7056 7057 7058# Set options 7059 7060 7061 7062 enable_dlopen=no 7063 7064 7065 7066 # Check whether --enable-shared was given. 7067if test "${enable_shared+set}" = set; then : 7068 enableval=$enable_shared; p=${PACKAGE-default} 7069 case $enableval in 7070 yes) enable_shared=yes ;; 7071 no) enable_shared=no ;; 7072 *) 7073 enable_shared=no 7074 # Look at the argument we got. We use all the common list separators. 7075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7076 for pkg in $enableval; do 7077 IFS="$lt_save_ifs" 7078 if test "X$pkg" = "X$p"; then 7079 enable_shared=yes 7080 fi 7081 done 7082 IFS="$lt_save_ifs" 7083 ;; 7084 esac 7085else 7086 enable_shared=yes 7087fi 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 # Check whether --enable-static was given. 7098if test "${enable_static+set}" = set; then : 7099 enableval=$enable_static; p=${PACKAGE-default} 7100 case $enableval in 7101 yes) enable_static=yes ;; 7102 no) enable_static=no ;; 7103 *) 7104 enable_static=no 7105 # Look at the argument we got. We use all the common list separators. 7106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7107 for pkg in $enableval; do 7108 IFS="$lt_save_ifs" 7109 if test "X$pkg" = "X$p"; then 7110 enable_static=yes 7111 fi 7112 done 7113 IFS="$lt_save_ifs" 7114 ;; 7115 esac 7116else 7117 enable_static=yes 7118fi 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129# Check whether --with-pic was given. 7130if test "${with_pic+set}" = set; then : 7131 withval=$with_pic; pic_mode="$withval" 7132else 7133 pic_mode=default 7134fi 7135 7136 7137test -z "$pic_mode" && pic_mode=default 7138 7139 7140 7141 7142 7143 7144 7145 # Check whether --enable-fast-install was given. 7146if test "${enable_fast_install+set}" = set; then : 7147 enableval=$enable_fast_install; p=${PACKAGE-default} 7148 case $enableval in 7149 yes) enable_fast_install=yes ;; 7150 no) enable_fast_install=no ;; 7151 *) 7152 enable_fast_install=no 7153 # Look at the argument we got. We use all the common list separators. 7154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7155 for pkg in $enableval; do 7156 IFS="$lt_save_ifs" 7157 if test "X$pkg" = "X$p"; then 7158 enable_fast_install=yes 7159 fi 7160 done 7161 IFS="$lt_save_ifs" 7162 ;; 7163 esac 7164else 7165 enable_fast_install=yes 7166fi 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178# This can be used to rebuild libtool when needed 7179LIBTOOL_DEPS="$ltmain" 7180 7181# Always use our own libtool. 7182LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208test -z "$LN_S" && LN_S="ln -s" 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223if test -n "${ZSH_VERSION+set}" ; then 7224 setopt NO_GLOB_SUBST 7225fi 7226 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7228$as_echo_n "checking for objdir... " >&6; } 7229if test "${lt_cv_objdir+set}" = set; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 rm -f .libs 2>/dev/null 7233mkdir .libs 2>/dev/null 7234if test -d .libs; then 7235 lt_cv_objdir=.libs 7236else 7237 # MS-DOS does not allow filenames that begin with a dot. 7238 lt_cv_objdir=_libs 7239fi 7240rmdir .libs 2>/dev/null 7241fi 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7243$as_echo "$lt_cv_objdir" >&6; } 7244objdir=$lt_cv_objdir 7245 7246 7247 7248 7249 7250cat >>confdefs.h <<_ACEOF 7251#define LT_OBJDIR "$lt_cv_objdir/" 7252_ACEOF 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270case $host_os in 7271aix3*) 7272 # AIX sometimes has problems with the GCC collect2 program. For some 7273 # reason, if we set the COLLECT_NAMES environment variable, the problems 7274 # vanish in a puff of smoke. 7275 if test "X${COLLECT_NAMES+set}" != Xset; then 7276 COLLECT_NAMES= 7277 export COLLECT_NAMES 7278 fi 7279 ;; 7280esac 7281 7282# Sed substitution that helps us do robust quoting. It backslashifies 7283# metacharacters that are still active within double-quoted strings. 7284sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7285 7286# Same as above, but do not quote variable references. 7287double_quote_subst='s/\(["`\\]\)/\\\1/g' 7288 7289# Sed substitution to delay expansion of an escaped shell variable in a 7290# double_quote_subst'ed string. 7291delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7292 7293# Sed substitution to delay expansion of an escaped single quote. 7294delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7295 7296# Sed substitution to avoid accidental globbing in evaled expressions 7297no_glob_subst='s/\*/\\\*/g' 7298 7299# Global variables: 7300ofile=libtool 7301can_build_shared=yes 7302 7303# All known linkers require a `.a' archive for static linking (except MSVC, 7304# which needs '.lib'). 7305libext=a 7306 7307with_gnu_ld="$lt_cv_prog_gnu_ld" 7308 7309old_CC="$CC" 7310old_CFLAGS="$CFLAGS" 7311 7312# Set sane defaults for various variables 7313test -z "$CC" && CC=cc 7314test -z "$LTCC" && LTCC=$CC 7315test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7316test -z "$LD" && LD=ld 7317test -z "$ac_objext" && ac_objext=o 7318 7319for cc_temp in $compiler""; do 7320 case $cc_temp in 7321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7323 \-*) ;; 7324 *) break;; 7325 esac 7326done 7327cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7328 7329 7330# Only perform the check for file, if the check method requires it 7331test -z "$MAGIC_CMD" && MAGIC_CMD=file 7332case $deplibs_check_method in 7333file_magic*) 7334 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7336$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7337if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 case $MAGIC_CMD in 7341[\\/*] | ?:[\\/]*) 7342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7343 ;; 7344*) 7345 lt_save_MAGIC_CMD="$MAGIC_CMD" 7346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7348 for ac_dir in $ac_dummy; do 7349 IFS="$lt_save_ifs" 7350 test -z "$ac_dir" && ac_dir=. 7351 if test -f $ac_dir/${ac_tool_prefix}file; then 7352 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7353 if test -n "$file_magic_test_file"; then 7354 case $deplibs_check_method in 7355 "file_magic "*) 7356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7359 $EGREP "$file_magic_regex" > /dev/null; then 7360 : 7361 else 7362 cat <<_LT_EOF 1>&2 7363 7364*** Warning: the command libtool uses to detect shared libraries, 7365*** $file_magic_cmd, produces output that libtool cannot recognize. 7366*** The result is that libtool may fail to recognize shared libraries 7367*** as such. This will affect the creation of libtool libraries that 7368*** depend on shared libraries, but programs linked with such libtool 7369*** libraries will work regardless of this problem. Nevertheless, you 7370*** may want to report the problem to your system manager and/or to 7371*** bug-libtool@gnu.org 7372 7373_LT_EOF 7374 fi ;; 7375 esac 7376 fi 7377 break 7378 fi 7379 done 7380 IFS="$lt_save_ifs" 7381 MAGIC_CMD="$lt_save_MAGIC_CMD" 7382 ;; 7383esac 7384fi 7385 7386MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7387if test -n "$MAGIC_CMD"; then 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7389$as_echo "$MAGIC_CMD" >&6; } 7390else 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7392$as_echo "no" >&6; } 7393fi 7394 7395 7396 7397 7398 7399if test -z "$lt_cv_path_MAGIC_CMD"; then 7400 if test -n "$ac_tool_prefix"; then 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7402$as_echo_n "checking for file... " >&6; } 7403if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 case $MAGIC_CMD in 7407[\\/*] | ?:[\\/]*) 7408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7409 ;; 7410*) 7411 lt_save_MAGIC_CMD="$MAGIC_CMD" 7412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7414 for ac_dir in $ac_dummy; do 7415 IFS="$lt_save_ifs" 7416 test -z "$ac_dir" && ac_dir=. 7417 if test -f $ac_dir/file; then 7418 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7419 if test -n "$file_magic_test_file"; then 7420 case $deplibs_check_method in 7421 "file_magic "*) 7422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7425 $EGREP "$file_magic_regex" > /dev/null; then 7426 : 7427 else 7428 cat <<_LT_EOF 1>&2 7429 7430*** Warning: the command libtool uses to detect shared libraries, 7431*** $file_magic_cmd, produces output that libtool cannot recognize. 7432*** The result is that libtool may fail to recognize shared libraries 7433*** as such. This will affect the creation of libtool libraries that 7434*** depend on shared libraries, but programs linked with such libtool 7435*** libraries will work regardless of this problem. Nevertheless, you 7436*** may want to report the problem to your system manager and/or to 7437*** bug-libtool@gnu.org 7438 7439_LT_EOF 7440 fi ;; 7441 esac 7442 fi 7443 break 7444 fi 7445 done 7446 IFS="$lt_save_ifs" 7447 MAGIC_CMD="$lt_save_MAGIC_CMD" 7448 ;; 7449esac 7450fi 7451 7452MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7453if test -n "$MAGIC_CMD"; then 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7455$as_echo "$MAGIC_CMD" >&6; } 7456else 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458$as_echo "no" >&6; } 7459fi 7460 7461 7462 else 7463 MAGIC_CMD=: 7464 fi 7465fi 7466 7467 fi 7468 ;; 7469esac 7470 7471# Use C for the default configuration in the libtool script 7472 7473lt_save_CC="$CC" 7474ac_ext=c 7475ac_cpp='$CPP $CPPFLAGS' 7476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7478ac_compiler_gnu=$ac_cv_c_compiler_gnu 7479 7480 7481# Source file extension for C test sources. 7482ac_ext=c 7483 7484# Object file extension for compiled C test sources. 7485objext=o 7486objext=$objext 7487 7488# Code to be used in simple compile tests 7489lt_simple_compile_test_code="int some_variable = 0;" 7490 7491# Code to be used in simple link tests 7492lt_simple_link_test_code='int main(){return(0);}' 7493 7494 7495 7496 7497 7498 7499 7500# If no C compiler was specified, use CC. 7501LTCC=${LTCC-"$CC"} 7502 7503# If no C compiler flags were specified, use CFLAGS. 7504LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7505 7506# Allow CC to be a program name with arguments. 7507compiler=$CC 7508 7509# Save the default compiler, since it gets overwritten when the other 7510# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7511compiler_DEFAULT=$CC 7512 7513# save warnings/boilerplate of simple test code 7514ac_outfile=conftest.$ac_objext 7515echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7516eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7517_lt_compiler_boilerplate=`cat conftest.err` 7518$RM conftest* 7519 7520ac_outfile=conftest.$ac_objext 7521echo "$lt_simple_link_test_code" >conftest.$ac_ext 7522eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7523_lt_linker_boilerplate=`cat conftest.err` 7524$RM -r conftest* 7525 7526 7527if test -n "$compiler"; then 7528 7529lt_prog_compiler_no_builtin_flag= 7530 7531if test "$GCC" = yes; then 7532 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7533 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7535$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7536if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7537 $as_echo_n "(cached) " >&6 7538else 7539 lt_cv_prog_compiler_rtti_exceptions=no 7540 ac_outfile=conftest.$ac_objext 7541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7542 lt_compiler_flag="-fno-rtti -fno-exceptions" 7543 # Insert the option either (1) after the last *FLAGS variable, or 7544 # (2) before a word containing "conftest.", or (3) at the end. 7545 # Note that $ac_compile itself does not contain backslashes and begins 7546 # with a dollar sign (not a hyphen), so the echo should work correctly. 7547 # The option is referenced via a variable to avoid confusing sed. 7548 lt_compile=`echo "$ac_compile" | $SED \ 7549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7551 -e 's:$: $lt_compiler_flag:'` 7552 (eval echo "\"\$as_me:7552: $lt_compile\"" >&5) 7553 (eval "$lt_compile" 2>conftest.err) 7554 ac_status=$? 7555 cat conftest.err >&5 7556 echo "$as_me:7556: \$? = $ac_status" >&5 7557 if (exit $ac_status) && test -s "$ac_outfile"; then 7558 # The compiler can only warn and ignore the option if not recognized 7559 # So say no if there are warnings other than the usual output. 7560 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7562 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7563 lt_cv_prog_compiler_rtti_exceptions=yes 7564 fi 7565 fi 7566 $RM conftest* 7567 7568fi 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7570$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7571 7572if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7573 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7574else 7575 : 7576fi 7577 7578fi 7579 7580 7581 7582 7583 7584 7585 lt_prog_compiler_wl= 7586lt_prog_compiler_pic= 7587lt_prog_compiler_static= 7588 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7590$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7591 7592 if test "$GCC" = yes; then 7593 lt_prog_compiler_wl='-Wl,' 7594 lt_prog_compiler_static='-static' 7595 7596 case $host_os in 7597 aix*) 7598 # All AIX code is PIC. 7599 if test "$host_cpu" = ia64; then 7600 # AIX 5 now supports IA64 processor 7601 lt_prog_compiler_static='-Bstatic' 7602 fi 7603 ;; 7604 7605 amigaos*) 7606 case $host_cpu in 7607 powerpc) 7608 # see comment about AmigaOS4 .so support 7609 lt_prog_compiler_pic='-fPIC' 7610 ;; 7611 m68k) 7612 # FIXME: we need at least 68020 code to build shared libraries, but 7613 # adding the `-m68020' flag to GCC prevents building anything better, 7614 # like `-m68040'. 7615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7616 ;; 7617 esac 7618 ;; 7619 7620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7621 # PIC is the default for these OSes. 7622 ;; 7623 7624 mingw* | cygwin* | pw32* | os2* | cegcc*) 7625 # This hack is so that the source file can tell whether it is being 7626 # built for inclusion in a dll (and should export symbols for example). 7627 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7628 # (--disable-auto-import) libraries 7629 lt_prog_compiler_pic='-DDLL_EXPORT' 7630 ;; 7631 7632 darwin* | rhapsody*) 7633 # PIC is the default on this platform 7634 # Common symbols not allowed in MH_DYLIB files 7635 lt_prog_compiler_pic='-fno-common' 7636 ;; 7637 7638 hpux*) 7639 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7640 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7641 # sets the default TLS model and affects inlining. 7642 case $host_cpu in 7643 hppa*64*) 7644 # +Z the default 7645 ;; 7646 *) 7647 lt_prog_compiler_pic='-fPIC' 7648 ;; 7649 esac 7650 ;; 7651 7652 interix[3-9]*) 7653 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7654 # Instead, we relocate shared libraries at runtime. 7655 ;; 7656 7657 msdosdjgpp*) 7658 # Just because we use GCC doesn't mean we suddenly get shared libraries 7659 # on systems that don't support them. 7660 lt_prog_compiler_can_build_shared=no 7661 enable_shared=no 7662 ;; 7663 7664 *nto* | *qnx*) 7665 # QNX uses GNU C++, but need to define -shared option too, otherwise 7666 # it will coredump. 7667 lt_prog_compiler_pic='-fPIC -shared' 7668 ;; 7669 7670 sysv4*MP*) 7671 if test -d /usr/nec; then 7672 lt_prog_compiler_pic=-Kconform_pic 7673 fi 7674 ;; 7675 7676 *) 7677 lt_prog_compiler_pic='-fPIC' 7678 ;; 7679 esac 7680 else 7681 # PORTME Check for flag to pass linker flags through the system compiler. 7682 case $host_os in 7683 aix*) 7684 lt_prog_compiler_wl='-Wl,' 7685 if test "$host_cpu" = ia64; then 7686 # AIX 5 now supports IA64 processor 7687 lt_prog_compiler_static='-Bstatic' 7688 else 7689 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7690 fi 7691 ;; 7692 7693 mingw* | cygwin* | pw32* | os2* | cegcc*) 7694 # This hack is so that the source file can tell whether it is being 7695 # built for inclusion in a dll (and should export symbols for example). 7696 lt_prog_compiler_pic='-DDLL_EXPORT' 7697 ;; 7698 7699 hpux9* | hpux10* | hpux11*) 7700 lt_prog_compiler_wl='-Wl,' 7701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7702 # not for PA HP-UX. 7703 case $host_cpu in 7704 hppa*64*|ia64*) 7705 # +Z the default 7706 ;; 7707 *) 7708 lt_prog_compiler_pic='+Z' 7709 ;; 7710 esac 7711 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7712 lt_prog_compiler_static='${wl}-a ${wl}archive' 7713 ;; 7714 7715 irix5* | irix6* | nonstopux*) 7716 lt_prog_compiler_wl='-Wl,' 7717 # PIC (with -KPIC) is the default. 7718 lt_prog_compiler_static='-non_shared' 7719 ;; 7720 7721 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7722 case $cc_basename in 7723 # old Intel for x86_64 which still supported -KPIC. 7724 ecc*) 7725 lt_prog_compiler_wl='-Wl,' 7726 lt_prog_compiler_pic='-KPIC' 7727 lt_prog_compiler_static='-static' 7728 ;; 7729 # icc used to be incompatible with GCC. 7730 # ICC 10 doesn't accept -KPIC any more. 7731 icc* | ifort*) 7732 lt_prog_compiler_wl='-Wl,' 7733 lt_prog_compiler_pic='-fPIC' 7734 lt_prog_compiler_static='-static' 7735 ;; 7736 # Lahey Fortran 8.1. 7737 lf95*) 7738 lt_prog_compiler_wl='-Wl,' 7739 lt_prog_compiler_pic='--shared' 7740 lt_prog_compiler_static='--static' 7741 ;; 7742 pgcc* | pgf77* | pgf90* | pgf95*) 7743 # Portland Group compilers (*not* the Pentium gcc compiler, 7744 # which looks to be a dead project) 7745 lt_prog_compiler_wl='-Wl,' 7746 lt_prog_compiler_pic='-fpic' 7747 lt_prog_compiler_static='-Bstatic' 7748 ;; 7749 ccc*) 7750 lt_prog_compiler_wl='-Wl,' 7751 # All Alpha code is PIC. 7752 lt_prog_compiler_static='-non_shared' 7753 ;; 7754 xl*) 7755 # IBM XL C 8.0/Fortran 10.1 on PPC 7756 lt_prog_compiler_wl='-Wl,' 7757 lt_prog_compiler_pic='-qpic' 7758 lt_prog_compiler_static='-qstaticlink' 7759 ;; 7760 *) 7761 case `$CC -V 2>&1 | sed 5q` in 7762 *Sun\ C*) 7763 # Sun C 5.9 7764 lt_prog_compiler_pic='-KPIC' 7765 lt_prog_compiler_static='-Bstatic' 7766 lt_prog_compiler_wl='-Wl,' 7767 ;; 7768 *Sun\ F*) 7769 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7770 lt_prog_compiler_pic='-KPIC' 7771 lt_prog_compiler_static='-Bstatic' 7772 lt_prog_compiler_wl='' 7773 ;; 7774 esac 7775 ;; 7776 esac 7777 ;; 7778 7779 newsos6) 7780 lt_prog_compiler_pic='-KPIC' 7781 lt_prog_compiler_static='-Bstatic' 7782 ;; 7783 7784 *nto* | *qnx*) 7785 # QNX uses GNU C++, but need to define -shared option too, otherwise 7786 # it will coredump. 7787 lt_prog_compiler_pic='-fPIC -shared' 7788 ;; 7789 7790 osf3* | osf4* | osf5*) 7791 lt_prog_compiler_wl='-Wl,' 7792 # All OSF/1 code is PIC. 7793 lt_prog_compiler_static='-non_shared' 7794 ;; 7795 7796 rdos*) 7797 lt_prog_compiler_static='-non_shared' 7798 ;; 7799 7800 solaris*) 7801 lt_prog_compiler_pic='-KPIC' 7802 lt_prog_compiler_static='-Bstatic' 7803 case $cc_basename in 7804 f77* | f90* | f95*) 7805 lt_prog_compiler_wl='-Qoption ld ';; 7806 *) 7807 lt_prog_compiler_wl='-Wl,';; 7808 esac 7809 ;; 7810 7811 sunos4*) 7812 lt_prog_compiler_wl='-Qoption ld ' 7813 lt_prog_compiler_pic='-PIC' 7814 lt_prog_compiler_static='-Bstatic' 7815 ;; 7816 7817 sysv4 | sysv4.2uw2* | sysv4.3*) 7818 lt_prog_compiler_wl='-Wl,' 7819 lt_prog_compiler_pic='-KPIC' 7820 lt_prog_compiler_static='-Bstatic' 7821 ;; 7822 7823 sysv4*MP*) 7824 if test -d /usr/nec ;then 7825 lt_prog_compiler_pic='-Kconform_pic' 7826 lt_prog_compiler_static='-Bstatic' 7827 fi 7828 ;; 7829 7830 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7831 lt_prog_compiler_wl='-Wl,' 7832 lt_prog_compiler_pic='-KPIC' 7833 lt_prog_compiler_static='-Bstatic' 7834 ;; 7835 7836 unicos*) 7837 lt_prog_compiler_wl='-Wl,' 7838 lt_prog_compiler_can_build_shared=no 7839 ;; 7840 7841 uts4*) 7842 lt_prog_compiler_pic='-pic' 7843 lt_prog_compiler_static='-Bstatic' 7844 ;; 7845 7846 *) 7847 lt_prog_compiler_can_build_shared=no 7848 ;; 7849 esac 7850 fi 7851 7852case $host_os in 7853 # For platforms which do not support PIC, -DPIC is meaningless: 7854 *djgpp*) 7855 lt_prog_compiler_pic= 7856 ;; 7857 *) 7858 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7859 ;; 7860esac 7861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7862$as_echo "$lt_prog_compiler_pic" >&6; } 7863 7864 7865 7866 7867 7868 7869# 7870# Check to make sure the PIC flag actually works. 7871# 7872if test -n "$lt_prog_compiler_pic"; then 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7874$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7875if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7876 $as_echo_n "(cached) " >&6 7877else 7878 lt_cv_prog_compiler_pic_works=no 7879 ac_outfile=conftest.$ac_objext 7880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7881 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7882 # Insert the option either (1) after the last *FLAGS variable, or 7883 # (2) before a word containing "conftest.", or (3) at the end. 7884 # Note that $ac_compile itself does not contain backslashes and begins 7885 # with a dollar sign (not a hyphen), so the echo should work correctly. 7886 # The option is referenced via a variable to avoid confusing sed. 7887 lt_compile=`echo "$ac_compile" | $SED \ 7888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7890 -e 's:$: $lt_compiler_flag:'` 7891 (eval echo "\"\$as_me:7891: $lt_compile\"" >&5) 7892 (eval "$lt_compile" 2>conftest.err) 7893 ac_status=$? 7894 cat conftest.err >&5 7895 echo "$as_me:7895: \$? = $ac_status" >&5 7896 if (exit $ac_status) && test -s "$ac_outfile"; then 7897 # The compiler can only warn and ignore the option if not recognized 7898 # So say no if there are warnings other than the usual output. 7899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7902 lt_cv_prog_compiler_pic_works=yes 7903 fi 7904 fi 7905 $RM conftest* 7906 7907fi 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7909$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7910 7911if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7912 case $lt_prog_compiler_pic in 7913 "" | " "*) ;; 7914 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7915 esac 7916else 7917 lt_prog_compiler_pic= 7918 lt_prog_compiler_can_build_shared=no 7919fi 7920 7921fi 7922 7923 7924 7925 7926 7927 7928# 7929# Check to make sure the static flag actually works. 7930# 7931wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7933$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7934if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 lt_cv_prog_compiler_static_works=no 7938 save_LDFLAGS="$LDFLAGS" 7939 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7940 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7942 # The linker can only warn and ignore the option if not recognized 7943 # So say no if there are warnings 7944 if test -s conftest.err; then 7945 # Append any errors to the config.log. 7946 cat conftest.err 1>&5 7947 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7949 if diff conftest.exp conftest.er2 >/dev/null; then 7950 lt_cv_prog_compiler_static_works=yes 7951 fi 7952 else 7953 lt_cv_prog_compiler_static_works=yes 7954 fi 7955 fi 7956 $RM -r conftest* 7957 LDFLAGS="$save_LDFLAGS" 7958 7959fi 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7961$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7962 7963if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7964 : 7965else 7966 lt_prog_compiler_static= 7967fi 7968 7969 7970 7971 7972 7973 7974 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7976$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7977if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7978 $as_echo_n "(cached) " >&6 7979else 7980 lt_cv_prog_compiler_c_o=no 7981 $RM -r conftest 2>/dev/null 7982 mkdir conftest 7983 cd conftest 7984 mkdir out 7985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7986 7987 lt_compiler_flag="-o out/conftest2.$ac_objext" 7988 # Insert the option either (1) after the last *FLAGS variable, or 7989 # (2) before a word containing "conftest.", or (3) at the end. 7990 # Note that $ac_compile itself does not contain backslashes and begins 7991 # with a dollar sign (not a hyphen), so the echo should work correctly. 7992 lt_compile=`echo "$ac_compile" | $SED \ 7993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7995 -e 's:$: $lt_compiler_flag:'` 7996 (eval echo "\"\$as_me:7996: $lt_compile\"" >&5) 7997 (eval "$lt_compile" 2>out/conftest.err) 7998 ac_status=$? 7999 cat out/conftest.err >&5 8000 echo "$as_me:8000: \$? = $ac_status" >&5 8001 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8002 then 8003 # The compiler can only warn and ignore the option if not recognized 8004 # So say no if there are warnings 8005 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8008 lt_cv_prog_compiler_c_o=yes 8009 fi 8010 fi 8011 chmod u+w . 2>&5 8012 $RM conftest* 8013 # SGI C++ compiler will create directory out/ii_files/ for 8014 # template instantiation 8015 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8016 $RM out/* && rmdir out 8017 cd .. 8018 $RM -r conftest 8019 $RM conftest* 8020 8021fi 8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8023$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8024 8025 8026 8027 8028 8029 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8031$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8032if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8033 $as_echo_n "(cached) " >&6 8034else 8035 lt_cv_prog_compiler_c_o=no 8036 $RM -r conftest 2>/dev/null 8037 mkdir conftest 8038 cd conftest 8039 mkdir out 8040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8041 8042 lt_compiler_flag="-o out/conftest2.$ac_objext" 8043 # Insert the option either (1) after the last *FLAGS variable, or 8044 # (2) before a word containing "conftest.", or (3) at the end. 8045 # Note that $ac_compile itself does not contain backslashes and begins 8046 # with a dollar sign (not a hyphen), so the echo should work correctly. 8047 lt_compile=`echo "$ac_compile" | $SED \ 8048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8050 -e 's:$: $lt_compiler_flag:'` 8051 (eval echo "\"\$as_me:8051: $lt_compile\"" >&5) 8052 (eval "$lt_compile" 2>out/conftest.err) 8053 ac_status=$? 8054 cat out/conftest.err >&5 8055 echo "$as_me:8055: \$? = $ac_status" >&5 8056 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8057 then 8058 # The compiler can only warn and ignore the option if not recognized 8059 # So say no if there are warnings 8060 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8063 lt_cv_prog_compiler_c_o=yes 8064 fi 8065 fi 8066 chmod u+w . 2>&5 8067 $RM conftest* 8068 # SGI C++ compiler will create directory out/ii_files/ for 8069 # template instantiation 8070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8071 $RM out/* && rmdir out 8072 cd .. 8073 $RM -r conftest 8074 $RM conftest* 8075 8076fi 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8078$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8079 8080 8081 8082 8083hard_links="nottested" 8084if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8085 # do not overwrite the value of need_locks provided by the user 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8087$as_echo_n "checking if we can lock with hard links... " >&6; } 8088 hard_links=yes 8089 $RM conftest* 8090 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8091 touch conftest.a 8092 ln conftest.a conftest.b 2>&5 || hard_links=no 8093 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8095$as_echo "$hard_links" >&6; } 8096 if test "$hard_links" = no; then 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8098$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8099 need_locks=warn 8100 fi 8101else 8102 need_locks=no 8103fi 8104 8105 8106 8107 8108 8109 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8111$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8112 8113 runpath_var= 8114 allow_undefined_flag= 8115 always_export_symbols=no 8116 archive_cmds= 8117 archive_expsym_cmds= 8118 compiler_needs_object=no 8119 enable_shared_with_static_runtimes=no 8120 export_dynamic_flag_spec= 8121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8122 hardcode_automatic=no 8123 hardcode_direct=no 8124 hardcode_direct_absolute=no 8125 hardcode_libdir_flag_spec= 8126 hardcode_libdir_flag_spec_ld= 8127 hardcode_libdir_separator= 8128 hardcode_minus_L=no 8129 hardcode_shlibpath_var=unsupported 8130 inherit_rpath=no 8131 link_all_deplibs=unknown 8132 module_cmds= 8133 module_expsym_cmds= 8134 old_archive_from_new_cmds= 8135 old_archive_from_expsyms_cmds= 8136 thread_safe_flag_spec= 8137 whole_archive_flag_spec= 8138 # include_expsyms should be a list of space-separated symbols to be *always* 8139 # included in the symbol list 8140 include_expsyms= 8141 # exclude_expsyms can be an extended regexp of symbols to exclude 8142 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8143 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8144 # as well as any symbol that contains `d'. 8145 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8146 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8147 # platforms (ab)use it in PIC code, but their linkers get confused if 8148 # the symbol is explicitly referenced. Since portable code cannot 8149 # rely on this symbol name, it's probably fine to never include it in 8150 # preloaded symbol tables. 8151 # Exclude shared library initialization/finalization symbols. 8152 extract_expsyms_cmds= 8153 8154 case $host_os in 8155 cygwin* | mingw* | pw32* | cegcc*) 8156 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8157 # When not using gcc, we currently assume that we are using 8158 # Microsoft Visual C++. 8159 if test "$GCC" != yes; then 8160 with_gnu_ld=no 8161 fi 8162 ;; 8163 interix*) 8164 # we just hope/assume this is gcc and not c89 (= MSVC++) 8165 with_gnu_ld=yes 8166 ;; 8167 openbsd*) 8168 with_gnu_ld=no 8169 ;; 8170 linux* | k*bsd*-gnu) 8171 link_all_deplibs=no 8172 ;; 8173 esac 8174 8175 ld_shlibs=yes 8176 if test "$with_gnu_ld" = yes; then 8177 # If archive_cmds runs LD, not CC, wlarc should be empty 8178 wlarc='${wl}' 8179 8180 # Set some defaults for GNU ld with shared library support. These 8181 # are reset later if shared libraries are not supported. Putting them 8182 # here allows them to be overridden if necessary. 8183 runpath_var=LD_RUN_PATH 8184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8185 export_dynamic_flag_spec='${wl}--export-dynamic' 8186 # ancient GNU ld didn't support --whole-archive et. al. 8187 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8188 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8189 else 8190 whole_archive_flag_spec= 8191 fi 8192 supports_anon_versioning=no 8193 case `$LD -v 2>&1` in 8194 *GNU\ gold*) supports_anon_versioning=yes ;; 8195 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8196 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8197 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8198 *\ 2.11.*) ;; # other 2.11 versions 8199 *) supports_anon_versioning=yes ;; 8200 esac 8201 8202 # See if GNU ld supports shared libraries. 8203 case $host_os in 8204 aix[3-9]*) 8205 # On AIX/PPC, the GNU linker is very broken 8206 if test "$host_cpu" != ia64; then 8207 ld_shlibs=no 8208 cat <<_LT_EOF 1>&2 8209 8210*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8211*** to be unable to reliably create shared libraries on AIX. 8212*** Therefore, libtool is disabling shared libraries support. If you 8213*** really care for shared libraries, you may want to modify your PATH 8214*** so that a non-GNU linker is found, and then restart. 8215 8216_LT_EOF 8217 fi 8218 ;; 8219 8220 amigaos*) 8221 case $host_cpu in 8222 powerpc) 8223 # see comment about AmigaOS4 .so support 8224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8225 archive_expsym_cmds='' 8226 ;; 8227 m68k) 8228 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)' 8229 hardcode_libdir_flag_spec='-L$libdir' 8230 hardcode_minus_L=yes 8231 ;; 8232 esac 8233 ;; 8234 8235 beos*) 8236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8237 allow_undefined_flag=unsupported 8238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8239 # support --undefined. This deserves some investigation. FIXME 8240 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8241 else 8242 ld_shlibs=no 8243 fi 8244 ;; 8245 8246 cygwin* | mingw* | pw32* | cegcc*) 8247 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8248 # as there is no search path for DLLs. 8249 hardcode_libdir_flag_spec='-L$libdir' 8250 allow_undefined_flag=unsupported 8251 always_export_symbols=no 8252 enable_shared_with_static_runtimes=yes 8253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8254 8255 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8257 # If the export-symbols file already is a .def file (1st line 8258 # is EXPORTS), use it as is; otherwise, prepend... 8259 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8260 cp $export_symbols $output_objdir/$soname.def; 8261 else 8262 echo EXPORTS > $output_objdir/$soname.def; 8263 cat $export_symbols >> $output_objdir/$soname.def; 8264 fi~ 8265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8266 else 8267 ld_shlibs=no 8268 fi 8269 ;; 8270 8271 interix[3-9]*) 8272 hardcode_direct=no 8273 hardcode_shlibpath_var=no 8274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8275 export_dynamic_flag_spec='${wl}-E' 8276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8277 # Instead, shared libraries are loaded at an image base (0x10000000 by 8278 # default) and relocated if they conflict, which is a slow very memory 8279 # consuming and fragmenting process. To avoid this, we pick a random, 8280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8281 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8283 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' 8284 ;; 8285 8286 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8287 tmp_diet=no 8288 if test "$host_os" = linux-dietlibc; then 8289 case $cc_basename in 8290 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8291 esac 8292 fi 8293 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8294 && test "$tmp_diet" = no 8295 then 8296 tmp_addflag= 8297 tmp_sharedflag='-shared' 8298 case $cc_basename,$host_cpu in 8299 pgcc*) # Portland Group C compiler 8300 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' 8301 tmp_addflag=' $pic_flag' 8302 ;; 8303 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8304 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' 8305 tmp_addflag=' $pic_flag -Mnomain' ;; 8306 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8307 tmp_addflag=' -i_dynamic' ;; 8308 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8309 tmp_addflag=' -i_dynamic -nofor_main' ;; 8310 ifc* | ifort*) # Intel Fortran compiler 8311 tmp_addflag=' -nofor_main' ;; 8312 lf95*) # Lahey Fortran 8.1 8313 whole_archive_flag_spec= 8314 tmp_sharedflag='--shared' ;; 8315 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8316 tmp_sharedflag='-qmkshrobj' 8317 tmp_addflag= ;; 8318 esac 8319 case `$CC -V 2>&1 | sed 5q` in 8320 *Sun\ C*) # Sun C 5.9 8321 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' 8322 compiler_needs_object=yes 8323 tmp_sharedflag='-G' ;; 8324 *Sun\ F*) # Sun Fortran 8.3 8325 tmp_sharedflag='-G' ;; 8326 esac 8327 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8328 8329 if test "x$supports_anon_versioning" = xyes; then 8330 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8331 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8332 echo "local: *; };" >> $output_objdir/$libname.ver~ 8333 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8334 fi 8335 8336 case $cc_basename in 8337 xlf*) 8338 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8339 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8340 hardcode_libdir_flag_spec= 8341 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8342 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8343 if test "x$supports_anon_versioning" = xyes; then 8344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8346 echo "local: *; };" >> $output_objdir/$libname.ver~ 8347 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8348 fi 8349 ;; 8350 esac 8351 else 8352 ld_shlibs=no 8353 fi 8354 ;; 8355 8356 netbsd* | netbsdelf*-gnu) 8357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8358 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8359 wlarc= 8360 else 8361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8363 fi 8364 ;; 8365 8366 solaris*) 8367 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8368 ld_shlibs=no 8369 cat <<_LT_EOF 1>&2 8370 8371*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8372*** create shared libraries on Solaris systems. Therefore, libtool 8373*** is disabling shared libraries support. We urge you to upgrade GNU 8374*** binutils to release 2.9.1 or newer. Another option is to modify 8375*** your PATH or compiler configuration so that the native linker is 8376*** used, and then restart. 8377 8378_LT_EOF 8379 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8382 else 8383 ld_shlibs=no 8384 fi 8385 ;; 8386 8387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8388 case `$LD -v 2>&1` in 8389 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8390 ld_shlibs=no 8391 cat <<_LT_EOF 1>&2 8392 8393*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8394*** reliably create shared libraries on SCO systems. Therefore, libtool 8395*** is disabling shared libraries support. We urge you to upgrade GNU 8396*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8397*** your PATH or compiler configuration so that the native linker is 8398*** used, and then restart. 8399 8400_LT_EOF 8401 ;; 8402 *) 8403 # For security reasons, it is highly recommended that you always 8404 # use absolute paths for naming shared libraries, and exclude the 8405 # DT_RUNPATH tag from executables and libraries. But doing so 8406 # requires that you compile everything twice, which is a pain. 8407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8408 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8411 else 8412 ld_shlibs=no 8413 fi 8414 ;; 8415 esac 8416 ;; 8417 8418 sunos4*) 8419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8420 wlarc= 8421 hardcode_direct=yes 8422 hardcode_shlibpath_var=no 8423 ;; 8424 8425 *) 8426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8429 else 8430 ld_shlibs=no 8431 fi 8432 ;; 8433 esac 8434 8435 if test "$ld_shlibs" = no; then 8436 runpath_var= 8437 hardcode_libdir_flag_spec= 8438 export_dynamic_flag_spec= 8439 whole_archive_flag_spec= 8440 fi 8441 else 8442 # PORTME fill in a description of your system's linker (not GNU ld) 8443 case $host_os in 8444 aix3*) 8445 allow_undefined_flag=unsupported 8446 always_export_symbols=yes 8447 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' 8448 # Note: this linker hardcodes the directories in LIBPATH if there 8449 # are no directories specified by -L. 8450 hardcode_minus_L=yes 8451 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8452 # Neither direct hardcoding nor static linking is supported with a 8453 # broken collect2. 8454 hardcode_direct=unsupported 8455 fi 8456 ;; 8457 8458 aix[4-9]*) 8459 if test "$host_cpu" = ia64; then 8460 # On IA64, the linker does run time linking by default, so we don't 8461 # have to do anything special. 8462 aix_use_runtimelinking=no 8463 exp_sym_flag='-Bexport' 8464 no_entry_flag="" 8465 else 8466 # If we're using GNU nm, then we don't want the "-C" option. 8467 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8468 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8469 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' 8470 else 8471 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' 8472 fi 8473 aix_use_runtimelinking=no 8474 8475 # Test if we are trying to use run time linking or normal 8476 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8477 # need to do runtime linking. 8478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8479 for ld_flag in $LDFLAGS; do 8480 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8481 aix_use_runtimelinking=yes 8482 break 8483 fi 8484 done 8485 ;; 8486 esac 8487 8488 exp_sym_flag='-bexport' 8489 no_entry_flag='-bnoentry' 8490 fi 8491 8492 # When large executables or shared objects are built, AIX ld can 8493 # have problems creating the table of contents. If linking a library 8494 # or program results in "error TOC overflow" add -mminimal-toc to 8495 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8497 8498 archive_cmds='' 8499 hardcode_direct=yes 8500 hardcode_direct_absolute=yes 8501 hardcode_libdir_separator=':' 8502 link_all_deplibs=yes 8503 file_list_spec='${wl}-f,' 8504 8505 if test "$GCC" = yes; then 8506 case $host_os in aix4.[012]|aix4.[012].*) 8507 # We only want to do this on AIX 4.2 and lower, the check 8508 # below for broken collect2 doesn't work under 4.3+ 8509 collect2name=`${CC} -print-prog-name=collect2` 8510 if test -f "$collect2name" && 8511 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8512 then 8513 # We have reworked collect2 8514 : 8515 else 8516 # We have old collect2 8517 hardcode_direct=unsupported 8518 # It fails to find uninstalled libraries when the uninstalled 8519 # path is not listed in the libpath. Setting hardcode_minus_L 8520 # to unsupported forces relinking 8521 hardcode_minus_L=yes 8522 hardcode_libdir_flag_spec='-L$libdir' 8523 hardcode_libdir_separator= 8524 fi 8525 ;; 8526 esac 8527 shared_flag='-shared' 8528 if test "$aix_use_runtimelinking" = yes; then 8529 shared_flag="$shared_flag "'${wl}-G' 8530 fi 8531 link_all_deplibs=no 8532 else 8533 # not using gcc 8534 if test "$host_cpu" = ia64; then 8535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8536 # chokes on -Wl,-G. The following line is correct: 8537 shared_flag='-G' 8538 else 8539 if test "$aix_use_runtimelinking" = yes; then 8540 shared_flag='${wl}-G' 8541 else 8542 shared_flag='${wl}-bM:SRE' 8543 fi 8544 fi 8545 fi 8546 8547 export_dynamic_flag_spec='${wl}-bexpall' 8548 # It seems that -bexpall does not export symbols beginning with 8549 # underscore (_), so it is better to generate a list of symbols to export. 8550 always_export_symbols=yes 8551 if test "$aix_use_runtimelinking" = yes; then 8552 # Warning - without using the other runtime loading flags (-brtl), 8553 # -berok will link without error, but may produce a broken library. 8554 allow_undefined_flag='-berok' 8555 # Determine the default libpath from the value encoded in an 8556 # empty executable. 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558/* end confdefs.h. */ 8559 8560int 8561main () 8562{ 8563 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568if ac_fn_c_try_link "$LINENO"; then : 8569 8570lt_aix_libpath_sed=' 8571 /Import File Strings/,/^$/ { 8572 /^0/ { 8573 s/^0 *\(.*\)$/\1/ 8574 p 8575 } 8576 }' 8577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8578# Check for a 64-bit object if we didn't find anything. 8579if test -z "$aix_libpath"; then 8580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8581fi 8582fi 8583rm -f core conftest.err conftest.$ac_objext \ 8584 conftest$ac_exeext conftest.$ac_ext 8585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8586 8587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8588 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" 8589 else 8590 if test "$host_cpu" = ia64; then 8591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8592 allow_undefined_flag="-z nodefs" 8593 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" 8594 else 8595 # Determine the default libpath from the value encoded in an 8596 # empty executable. 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598/* end confdefs.h. */ 8599 8600int 8601main () 8602{ 8603 8604 ; 8605 return 0; 8606} 8607_ACEOF 8608if ac_fn_c_try_link "$LINENO"; then : 8609 8610lt_aix_libpath_sed=' 8611 /Import File Strings/,/^$/ { 8612 /^0/ { 8613 s/^0 *\(.*\)$/\1/ 8614 p 8615 } 8616 }' 8617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8618# Check for a 64-bit object if we didn't find anything. 8619if test -z "$aix_libpath"; then 8620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8621fi 8622fi 8623rm -f core conftest.err conftest.$ac_objext \ 8624 conftest$ac_exeext conftest.$ac_ext 8625if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8626 8627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8628 # Warning - without using the other run time loading flags, 8629 # -berok will link without error, but may produce a broken library. 8630 no_undefined_flag=' ${wl}-bernotok' 8631 allow_undefined_flag=' ${wl}-berok' 8632 # Exported symbols can be pulled into shared objects from archives 8633 whole_archive_flag_spec='$convenience' 8634 archive_cmds_need_lc=yes 8635 # This is similar to how AIX traditionally builds its shared libraries. 8636 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' 8637 fi 8638 fi 8639 ;; 8640 8641 amigaos*) 8642 case $host_cpu in 8643 powerpc) 8644 # see comment about AmigaOS4 .so support 8645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8646 archive_expsym_cmds='' 8647 ;; 8648 m68k) 8649 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)' 8650 hardcode_libdir_flag_spec='-L$libdir' 8651 hardcode_minus_L=yes 8652 ;; 8653 esac 8654 ;; 8655 8656 bsdi[45]*) 8657 export_dynamic_flag_spec=-rdynamic 8658 ;; 8659 8660 cygwin* | mingw* | pw32* | cegcc*) 8661 # When not using gcc, we currently assume that we are using 8662 # Microsoft Visual C++. 8663 # hardcode_libdir_flag_spec is actually meaningless, as there is 8664 # no search path for DLLs. 8665 hardcode_libdir_flag_spec=' ' 8666 allow_undefined_flag=unsupported 8667 # Tell ltmain to make .lib files, not .a files. 8668 libext=lib 8669 # Tell ltmain to make .dll files, not .so files. 8670 shrext_cmds=".dll" 8671 # FIXME: Setting linknames here is a bad hack. 8672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8673 # The linker will automatically build a .lib file if we build a DLL. 8674 old_archive_from_new_cmds='true' 8675 # FIXME: Should let the user specify the lib program. 8676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8677 fix_srcfile_path='`cygpath -w "$srcfile"`' 8678 enable_shared_with_static_runtimes=yes 8679 ;; 8680 8681 darwin* | rhapsody*) 8682 8683 8684 archive_cmds_need_lc=no 8685 hardcode_direct=no 8686 hardcode_automatic=yes 8687 hardcode_shlibpath_var=unsupported 8688 whole_archive_flag_spec='' 8689 link_all_deplibs=yes 8690 allow_undefined_flag="$_lt_dar_allow_undefined" 8691 case $cc_basename in 8692 ifort*) _lt_dar_can_shared=yes ;; 8693 *) _lt_dar_can_shared=$GCC ;; 8694 esac 8695 if test "$_lt_dar_can_shared" = "yes"; then 8696 output_verbose_link_cmd=echo 8697 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8698 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8699 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}" 8700 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}" 8701 8702 else 8703 ld_shlibs=no 8704 fi 8705 8706 ;; 8707 8708 dgux*) 8709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8710 hardcode_libdir_flag_spec='-L$libdir' 8711 hardcode_shlibpath_var=no 8712 ;; 8713 8714 freebsd1*) 8715 ld_shlibs=no 8716 ;; 8717 8718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8719 # support. Future versions do this automatically, but an explicit c++rt0.o 8720 # does not break anything, and helps significantly (at the cost of a little 8721 # extra space). 8722 freebsd2.2*) 8723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8724 hardcode_libdir_flag_spec='-R$libdir' 8725 hardcode_direct=yes 8726 hardcode_shlibpath_var=no 8727 ;; 8728 8729 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8730 freebsd2*) 8731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8732 hardcode_direct=yes 8733 hardcode_minus_L=yes 8734 hardcode_shlibpath_var=no 8735 ;; 8736 8737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8738 freebsd* | dragonfly*) 8739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8740 hardcode_libdir_flag_spec='-R$libdir' 8741 hardcode_direct=yes 8742 hardcode_shlibpath_var=no 8743 ;; 8744 8745 hpux9*) 8746 if test "$GCC" = yes; then 8747 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' 8748 else 8749 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' 8750 fi 8751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8752 hardcode_libdir_separator=: 8753 hardcode_direct=yes 8754 8755 # hardcode_minus_L: Not really in the search PATH, 8756 # but as the default location of the library. 8757 hardcode_minus_L=yes 8758 export_dynamic_flag_spec='${wl}-E' 8759 ;; 8760 8761 hpux10*) 8762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8764 else 8765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8766 fi 8767 if test "$with_gnu_ld" = no; then 8768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8769 hardcode_libdir_flag_spec_ld='+b $libdir' 8770 hardcode_libdir_separator=: 8771 hardcode_direct=yes 8772 hardcode_direct_absolute=yes 8773 export_dynamic_flag_spec='${wl}-E' 8774 # hardcode_minus_L: Not really in the search PATH, 8775 # but as the default location of the library. 8776 hardcode_minus_L=yes 8777 fi 8778 ;; 8779 8780 hpux11*) 8781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8782 case $host_cpu in 8783 hppa*64*) 8784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8785 ;; 8786 ia64*) 8787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8788 ;; 8789 *) 8790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8791 ;; 8792 esac 8793 else 8794 case $host_cpu in 8795 hppa*64*) 8796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8797 ;; 8798 ia64*) 8799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8800 ;; 8801 *) 8802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8803 ;; 8804 esac 8805 fi 8806 if test "$with_gnu_ld" = no; then 8807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8808 hardcode_libdir_separator=: 8809 8810 case $host_cpu in 8811 hppa*64*|ia64*) 8812 hardcode_direct=no 8813 hardcode_shlibpath_var=no 8814 ;; 8815 *) 8816 hardcode_direct=yes 8817 hardcode_direct_absolute=yes 8818 export_dynamic_flag_spec='${wl}-E' 8819 8820 # hardcode_minus_L: Not really in the search PATH, 8821 # but as the default location of the library. 8822 hardcode_minus_L=yes 8823 ;; 8824 esac 8825 fi 8826 ;; 8827 8828 irix5* | irix6* | nonstopux*) 8829 if test "$GCC" = yes; then 8830 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' 8831 # Try to use the -exported_symbol ld option, if it does not 8832 # work, assume that -exports_file does not work either and 8833 # implicitly export all symbols. 8834 save_LDFLAGS="$LDFLAGS" 8835 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8837/* end confdefs.h. */ 8838int foo(void) {} 8839_ACEOF 8840if ac_fn_c_try_link "$LINENO"; then : 8841 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' 8842 8843fi 8844rm -f core conftest.err conftest.$ac_objext \ 8845 conftest$ac_exeext conftest.$ac_ext 8846 LDFLAGS="$save_LDFLAGS" 8847 else 8848 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' 8849 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' 8850 fi 8851 archive_cmds_need_lc='no' 8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8853 hardcode_libdir_separator=: 8854 inherit_rpath=yes 8855 link_all_deplibs=yes 8856 ;; 8857 8858 netbsd* | netbsdelf*-gnu) 8859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8861 else 8862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8863 fi 8864 hardcode_libdir_flag_spec='-R$libdir' 8865 hardcode_direct=yes 8866 hardcode_shlibpath_var=no 8867 ;; 8868 8869 newsos6) 8870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8871 hardcode_direct=yes 8872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8873 hardcode_libdir_separator=: 8874 hardcode_shlibpath_var=no 8875 ;; 8876 8877 *nto* | *qnx*) 8878 ;; 8879 8880 openbsd*) 8881 if test -f /usr/libexec/ld.so; then 8882 hardcode_direct=yes 8883 hardcode_shlibpath_var=no 8884 hardcode_direct_absolute=yes 8885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8889 export_dynamic_flag_spec='${wl}-E' 8890 else 8891 case $host_os in 8892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8894 hardcode_libdir_flag_spec='-R$libdir' 8895 ;; 8896 *) 8897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8899 ;; 8900 esac 8901 fi 8902 else 8903 ld_shlibs=no 8904 fi 8905 ;; 8906 8907 os2*) 8908 hardcode_libdir_flag_spec='-L$libdir' 8909 hardcode_minus_L=yes 8910 allow_undefined_flag=unsupported 8911 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' 8912 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8913 ;; 8914 8915 osf3*) 8916 if test "$GCC" = yes; then 8917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8918 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' 8919 else 8920 allow_undefined_flag=' -expect_unresolved \*' 8921 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' 8922 fi 8923 archive_cmds_need_lc='no' 8924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8925 hardcode_libdir_separator=: 8926 ;; 8927 8928 osf4* | osf5*) # as osf3* with the addition of -msym flag 8929 if test "$GCC" = yes; then 8930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8931 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' 8932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8933 else 8934 allow_undefined_flag=' -expect_unresolved \*' 8935 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' 8936 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~ 8937 $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' 8938 8939 # Both c and cxx compiler support -rpath directly 8940 hardcode_libdir_flag_spec='-rpath $libdir' 8941 fi 8942 archive_cmds_need_lc='no' 8943 hardcode_libdir_separator=: 8944 ;; 8945 8946 solaris*) 8947 no_undefined_flag=' -z defs' 8948 if test "$GCC" = yes; then 8949 wlarc='${wl}' 8950 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8952 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8953 else 8954 case `$CC -V 2>&1` in 8955 *"Compilers 5.0"*) 8956 wlarc='' 8957 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8960 ;; 8961 *) 8962 wlarc='${wl}' 8963 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8965 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8966 ;; 8967 esac 8968 fi 8969 hardcode_libdir_flag_spec='-R$libdir' 8970 hardcode_shlibpath_var=no 8971 case $host_os in 8972 solaris2.[0-5] | solaris2.[0-5].*) ;; 8973 *) 8974 # The compiler driver will combine and reorder linker options, 8975 # but understands `-z linker_flag'. GCC discards it without `$wl', 8976 # but is careful enough not to reorder. 8977 # Supported since Solaris 2.6 (maybe 2.5.1?) 8978 if test "$GCC" = yes; then 8979 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8980 else 8981 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8982 fi 8983 ;; 8984 esac 8985 link_all_deplibs=yes 8986 ;; 8987 8988 sunos4*) 8989 if test "x$host_vendor" = xsequent; then 8990 # Use $CC to link under sequent, because it throws in some extra .o 8991 # files that make .init and .fini sections work. 8992 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8993 else 8994 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8995 fi 8996 hardcode_libdir_flag_spec='-L$libdir' 8997 hardcode_direct=yes 8998 hardcode_minus_L=yes 8999 hardcode_shlibpath_var=no 9000 ;; 9001 9002 sysv4) 9003 case $host_vendor in 9004 sni) 9005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9006 hardcode_direct=yes # is this really true??? 9007 ;; 9008 siemens) 9009 ## LD is ld it makes a PLAMLIB 9010 ## CC just makes a GrossModule. 9011 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9012 reload_cmds='$CC -r -o $output$reload_objs' 9013 hardcode_direct=no 9014 ;; 9015 motorola) 9016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9017 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9018 ;; 9019 esac 9020 runpath_var='LD_RUN_PATH' 9021 hardcode_shlibpath_var=no 9022 ;; 9023 9024 sysv4.3*) 9025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9026 hardcode_shlibpath_var=no 9027 export_dynamic_flag_spec='-Bexport' 9028 ;; 9029 9030 sysv4*MP*) 9031 if test -d /usr/nec; then 9032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9033 hardcode_shlibpath_var=no 9034 runpath_var=LD_RUN_PATH 9035 hardcode_runpath_var=yes 9036 ld_shlibs=yes 9037 fi 9038 ;; 9039 9040 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9041 no_undefined_flag='${wl}-z,text' 9042 archive_cmds_need_lc=no 9043 hardcode_shlibpath_var=no 9044 runpath_var='LD_RUN_PATH' 9045 9046 if test "$GCC" = yes; then 9047 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9048 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9049 else 9050 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9051 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9052 fi 9053 ;; 9054 9055 sysv5* | sco3.2v5* | sco5v6*) 9056 # Note: We can NOT use -z defs as we might desire, because we do not 9057 # link with -lc, and that would cause any symbols used from libc to 9058 # always be unresolved, which means just about no library would 9059 # ever link correctly. If we're not using GNU ld we use -z text 9060 # though, which does catch some bad symbols but isn't as heavy-handed 9061 # as -z defs. 9062 no_undefined_flag='${wl}-z,text' 9063 allow_undefined_flag='${wl}-z,nodefs' 9064 archive_cmds_need_lc=no 9065 hardcode_shlibpath_var=no 9066 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9067 hardcode_libdir_separator=':' 9068 link_all_deplibs=yes 9069 export_dynamic_flag_spec='${wl}-Bexport' 9070 runpath_var='LD_RUN_PATH' 9071 9072 if test "$GCC" = yes; then 9073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9075 else 9076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9078 fi 9079 ;; 9080 9081 uts4*) 9082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9083 hardcode_libdir_flag_spec='-L$libdir' 9084 hardcode_shlibpath_var=no 9085 ;; 9086 9087 *) 9088 ld_shlibs=no 9089 ;; 9090 esac 9091 9092 if test x$host_vendor = xsni; then 9093 case $host in 9094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9095 export_dynamic_flag_spec='${wl}-Blargedynsym' 9096 ;; 9097 esac 9098 fi 9099 fi 9100 9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9102$as_echo "$ld_shlibs" >&6; } 9103test "$ld_shlibs" = no && can_build_shared=no 9104 9105with_gnu_ld=$with_gnu_ld 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121# 9122# Do we need to explicitly link libc? 9123# 9124case "x$archive_cmds_need_lc" in 9125x|xyes) 9126 # Assume -lc should be added 9127 archive_cmds_need_lc=yes 9128 9129 if test "$enable_shared" = yes && test "$GCC" = yes; then 9130 case $archive_cmds in 9131 *'~'*) 9132 # FIXME: we may have to deal with multi-command sequences. 9133 ;; 9134 '$CC '*) 9135 # Test whether the compiler implicitly links with -lc since on some 9136 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9137 # to ld, don't add -lc before -lgcc. 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9139$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9140 $RM conftest* 9141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9142 9143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9144 (eval $ac_compile) 2>&5 9145 ac_status=$? 9146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9147 test $ac_status = 0; } 2>conftest.err; then 9148 soname=conftest 9149 lib=conftest 9150 libobjs=conftest.$ac_objext 9151 deplibs= 9152 wl=$lt_prog_compiler_wl 9153 pic_flag=$lt_prog_compiler_pic 9154 compiler_flags=-v 9155 linker_flags=-v 9156 verstring= 9157 output_objdir=. 9158 libname=conftest 9159 lt_save_allow_undefined_flag=$allow_undefined_flag 9160 allow_undefined_flag= 9161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9162 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9163 ac_status=$? 9164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9165 test $ac_status = 0; } 9166 then 9167 archive_cmds_need_lc=no 9168 else 9169 archive_cmds_need_lc=yes 9170 fi 9171 allow_undefined_flag=$lt_save_allow_undefined_flag 9172 else 9173 cat conftest.err 1>&5 9174 fi 9175 $RM conftest* 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9177$as_echo "$archive_cmds_need_lc" >&6; } 9178 ;; 9179 esac 9180 fi 9181 ;; 9182esac 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9341$as_echo_n "checking dynamic linker characteristics... " >&6; } 9342 9343if test "$GCC" = yes; then 9344 case $host_os in 9345 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9346 *) lt_awk_arg="/^libraries:/" ;; 9347 esac 9348 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9349 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9350 # if the path contains ";" then we assume it to be the separator 9351 # otherwise default to the standard path separator (i.e. ":") - it is 9352 # assumed that no part of a normal pathname contains ";" but that should 9353 # okay in the real world where ";" in dirpaths is itself problematic. 9354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9355 else 9356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9357 fi 9358 # Ok, now we have the path, separated by spaces, we can step through it 9359 # and add multilib dir if necessary. 9360 lt_tmp_lt_search_path_spec= 9361 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9362 for lt_sys_path in $lt_search_path_spec; do 9363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9365 else 9366 test -d "$lt_sys_path" && \ 9367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9368 fi 9369 done 9370 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9371BEGIN {RS=" "; FS="/|\n";} { 9372 lt_foo=""; 9373 lt_count=0; 9374 for (lt_i = NF; lt_i > 0; lt_i--) { 9375 if ($lt_i != "" && $lt_i != ".") { 9376 if ($lt_i == "..") { 9377 lt_count++; 9378 } else { 9379 if (lt_count == 0) { 9380 lt_foo="/" $lt_i lt_foo; 9381 } else { 9382 lt_count--; 9383 } 9384 } 9385 } 9386 } 9387 if (lt_foo != "") { lt_freq[lt_foo]++; } 9388 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9389}'` 9390 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9391else 9392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9393fi 9394library_names_spec= 9395libname_spec='lib$name' 9396soname_spec= 9397shrext_cmds=".so" 9398postinstall_cmds= 9399postuninstall_cmds= 9400finish_cmds= 9401finish_eval= 9402shlibpath_var= 9403shlibpath_overrides_runpath=unknown 9404version_type=none 9405dynamic_linker="$host_os ld.so" 9406sys_lib_dlsearch_path_spec="/lib /usr/lib" 9407need_lib_prefix=unknown 9408hardcode_into_libs=no 9409 9410# when you set need_version to no, make sure it does not cause -set_version 9411# flags to be left without arguments 9412need_version=unknown 9413 9414case $host_os in 9415aix3*) 9416 version_type=linux 9417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9418 shlibpath_var=LIBPATH 9419 9420 # AIX 3 has no versioning support, so we append a major version to the name. 9421 soname_spec='${libname}${release}${shared_ext}$major' 9422 ;; 9423 9424aix[4-9]*) 9425 version_type=linux 9426 need_lib_prefix=no 9427 need_version=no 9428 hardcode_into_libs=yes 9429 if test "$host_cpu" = ia64; then 9430 # AIX 5 supports IA64 9431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9432 shlibpath_var=LD_LIBRARY_PATH 9433 else 9434 # With GCC up to 2.95.x, collect2 would create an import file 9435 # for dependence libraries. The import file would start with 9436 # the line `#! .'. This would cause the generated library to 9437 # depend on `.', always an invalid library. This was fixed in 9438 # development snapshots of GCC prior to 3.0. 9439 case $host_os in 9440 aix4 | aix4.[01] | aix4.[01].*) 9441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9442 echo ' yes ' 9443 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9444 : 9445 else 9446 can_build_shared=no 9447 fi 9448 ;; 9449 esac 9450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9451 # soname into executable. Probably we can add versioning support to 9452 # collect2, so additional links can be useful in future. 9453 if test "$aix_use_runtimelinking" = yes; then 9454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9455 # instead of lib<name>.a to let people know that these are not 9456 # typical AIX shared libraries. 9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9458 else 9459 # We preserve .a as extension for shared libraries through AIX4.2 9460 # and later when we are not doing run time linking. 9461 library_names_spec='${libname}${release}.a $libname.a' 9462 soname_spec='${libname}${release}${shared_ext}$major' 9463 fi 9464 shlibpath_var=LIBPATH 9465 fi 9466 ;; 9467 9468amigaos*) 9469 case $host_cpu in 9470 powerpc) 9471 # Since July 2007 AmigaOS4 officially supports .so libraries. 9472 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9474 ;; 9475 m68k) 9476 library_names_spec='$libname.ixlibrary $libname.a' 9477 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9478 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' 9479 ;; 9480 esac 9481 ;; 9482 9483beos*) 9484 library_names_spec='${libname}${shared_ext}' 9485 dynamic_linker="$host_os ld.so" 9486 shlibpath_var=LIBRARY_PATH 9487 ;; 9488 9489bsdi[45]*) 9490 version_type=linux 9491 need_version=no 9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9493 soname_spec='${libname}${release}${shared_ext}$major' 9494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9495 shlibpath_var=LD_LIBRARY_PATH 9496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9498 # the default ld.so.conf also contains /usr/contrib/lib and 9499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9500 # libtool to hard-code these into programs 9501 ;; 9502 9503cygwin* | mingw* | pw32* | cegcc*) 9504 version_type=windows 9505 shrext_cmds=".dll" 9506 need_version=no 9507 need_lib_prefix=no 9508 9509 case $GCC,$host_os in 9510 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9511 library_names_spec='$libname.dll.a' 9512 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9513 postinstall_cmds='base_file=`basename \${file}`~ 9514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9515 dldir=$destdir/`dirname \$dlpath`~ 9516 test -d \$dldir || mkdir -p \$dldir~ 9517 $install_prog $dir/$dlname \$dldir/$dlname~ 9518 chmod a+x \$dldir/$dlname~ 9519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9521 fi' 9522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9523 dlpath=$dir/\$dldll~ 9524 $RM \$dlpath' 9525 shlibpath_overrides_runpath=yes 9526 9527 case $host_os in 9528 cygwin*) 9529 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9531 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9532 ;; 9533 mingw* | cegcc*) 9534 # MinGW DLLs use traditional 'lib' prefix 9535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9536 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9537 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9538 # It is most probably a Windows format PATH printed by 9539 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9540 # path with ; separators, and with drive letters. We can handle the 9541 # drive letters (cygwin fileutils understands them), so leave them, 9542 # especially as we might pass files found there to a mingw objdump, 9543 # which wouldn't understand a cygwinified path. Ahh. 9544 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9545 else 9546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9547 fi 9548 ;; 9549 pw32*) 9550 # pw32 DLLs use 'pw' prefix rather than 'lib' 9551 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9552 ;; 9553 esac 9554 ;; 9555 9556 *) 9557 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9558 ;; 9559 esac 9560 dynamic_linker='Win32 ld.exe' 9561 # FIXME: first we should search . and the directory the executable is in 9562 shlibpath_var=PATH 9563 ;; 9564 9565darwin* | rhapsody*) 9566 dynamic_linker="$host_os dyld" 9567 version_type=darwin 9568 need_lib_prefix=no 9569 need_version=no 9570 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9571 soname_spec='${libname}${release}${major}$shared_ext' 9572 shlibpath_overrides_runpath=yes 9573 shlibpath_var=DYLD_LIBRARY_PATH 9574 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9575 9576 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9578 ;; 9579 9580dgux*) 9581 version_type=linux 9582 need_lib_prefix=no 9583 need_version=no 9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9585 soname_spec='${libname}${release}${shared_ext}$major' 9586 shlibpath_var=LD_LIBRARY_PATH 9587 ;; 9588 9589freebsd1*) 9590 dynamic_linker=no 9591 ;; 9592 9593freebsd* | dragonfly*) 9594 # DragonFly does not have aout. When/if they implement a new 9595 # versioning mechanism, adjust this. 9596 if test -x /usr/bin/objformat; then 9597 objformat=`/usr/bin/objformat` 9598 else 9599 case $host_os in 9600 freebsd[123]*) objformat=aout ;; 9601 *) objformat=elf ;; 9602 esac 9603 fi 9604 version_type=freebsd-$objformat 9605 case $version_type in 9606 freebsd-elf*) 9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9608 need_version=no 9609 need_lib_prefix=no 9610 ;; 9611 freebsd-*) 9612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9613 need_version=yes 9614 ;; 9615 esac 9616 shlibpath_var=LD_LIBRARY_PATH 9617 case $host_os in 9618 freebsd2*) 9619 shlibpath_overrides_runpath=yes 9620 ;; 9621 freebsd3.[01]* | freebsdelf3.[01]*) 9622 shlibpath_overrides_runpath=yes 9623 hardcode_into_libs=yes 9624 ;; 9625 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9626 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9627 shlibpath_overrides_runpath=no 9628 hardcode_into_libs=yes 9629 ;; 9630 *) # from 4.6 on, and DragonFly 9631 shlibpath_overrides_runpath=yes 9632 hardcode_into_libs=yes 9633 ;; 9634 esac 9635 ;; 9636 9637gnu*) 9638 version_type=linux 9639 need_lib_prefix=no 9640 need_version=no 9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9642 soname_spec='${libname}${release}${shared_ext}$major' 9643 shlibpath_var=LD_LIBRARY_PATH 9644 hardcode_into_libs=yes 9645 ;; 9646 9647hpux9* | hpux10* | hpux11*) 9648 # Give a soname corresponding to the major version so that dld.sl refuses to 9649 # link against other versions. 9650 version_type=sunos 9651 need_lib_prefix=no 9652 need_version=no 9653 case $host_cpu in 9654 ia64*) 9655 shrext_cmds='.so' 9656 hardcode_into_libs=yes 9657 dynamic_linker="$host_os dld.so" 9658 shlibpath_var=LD_LIBRARY_PATH 9659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9661 soname_spec='${libname}${release}${shared_ext}$major' 9662 if test "X$HPUX_IA64_MODE" = X32; then 9663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9664 else 9665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9666 fi 9667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9668 ;; 9669 hppa*64*) 9670 shrext_cmds='.sl' 9671 hardcode_into_libs=yes 9672 dynamic_linker="$host_os dld.sl" 9673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9676 soname_spec='${libname}${release}${shared_ext}$major' 9677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9679 ;; 9680 *) 9681 shrext_cmds='.sl' 9682 dynamic_linker="$host_os dld.sl" 9683 shlibpath_var=SHLIB_PATH 9684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9686 soname_spec='${libname}${release}${shared_ext}$major' 9687 ;; 9688 esac 9689 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9690 postinstall_cmds='chmod 555 $lib' 9691 ;; 9692 9693interix[3-9]*) 9694 version_type=linux 9695 need_lib_prefix=no 9696 need_version=no 9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9698 soname_spec='${libname}${release}${shared_ext}$major' 9699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9700 shlibpath_var=LD_LIBRARY_PATH 9701 shlibpath_overrides_runpath=no 9702 hardcode_into_libs=yes 9703 ;; 9704 9705irix5* | irix6* | nonstopux*) 9706 case $host_os in 9707 nonstopux*) version_type=nonstopux ;; 9708 *) 9709 if test "$lt_cv_prog_gnu_ld" = yes; then 9710 version_type=linux 9711 else 9712 version_type=irix 9713 fi ;; 9714 esac 9715 need_lib_prefix=no 9716 need_version=no 9717 soname_spec='${libname}${release}${shared_ext}$major' 9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9719 case $host_os in 9720 irix5* | nonstopux*) 9721 libsuff= shlibsuff= 9722 ;; 9723 *) 9724 case $LD in # libtool.m4 will add one of these switches to LD 9725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9726 libsuff= shlibsuff= libmagic=32-bit;; 9727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9728 libsuff=32 shlibsuff=N32 libmagic=N32;; 9729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9730 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9731 *) libsuff= shlibsuff= libmagic=never-match;; 9732 esac 9733 ;; 9734 esac 9735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9736 shlibpath_overrides_runpath=no 9737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9739 hardcode_into_libs=yes 9740 ;; 9741 9742# No shared lib support for Linux oldld, aout, or coff. 9743linux*oldld* | linux*aout* | linux*coff*) 9744 dynamic_linker=no 9745 ;; 9746 9747# This must be Linux ELF. 9748linux* | k*bsd*-gnu | kopensolaris*-gnu) 9749 version_type=linux 9750 need_lib_prefix=no 9751 need_version=no 9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9753 soname_spec='${libname}${release}${shared_ext}$major' 9754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9755 shlibpath_var=LD_LIBRARY_PATH 9756 shlibpath_overrides_runpath=no 9757 # Some binutils ld are patched to set DT_RUNPATH 9758 save_LDFLAGS=$LDFLAGS 9759 save_libdir=$libdir 9760 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9761 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9763/* end confdefs.h. */ 9764 9765int 9766main () 9767{ 9768 9769 ; 9770 return 0; 9771} 9772_ACEOF 9773if ac_fn_c_try_link "$LINENO"; then : 9774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9775 shlibpath_overrides_runpath=yes 9776fi 9777fi 9778rm -f core conftest.err conftest.$ac_objext \ 9779 conftest$ac_exeext conftest.$ac_ext 9780 LDFLAGS=$save_LDFLAGS 9781 libdir=$save_libdir 9782 9783 # This implies no fast_install, which is unacceptable. 9784 # Some rework will be needed to allow for fast_install 9785 # before this can be enabled. 9786 hardcode_into_libs=yes 9787 9788 # Append ld.so.conf contents to the search path 9789 if test -f /etc/ld.so.conf; then 9790 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' ' '` 9791 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9792 fi 9793 9794 # We used to test for /lib/ld.so.1 and disable shared libraries on 9795 # powerpc, because MkLinux only supported shared libraries with the 9796 # GNU dynamic linker. Since this was broken with cross compilers, 9797 # most powerpc-linux boxes support dynamic linking these days and 9798 # people can always --disable-shared, the test was removed, and we 9799 # assume the GNU/Linux dynamic linker is in use. 9800 dynamic_linker='GNU/Linux ld.so' 9801 ;; 9802 9803netbsdelf*-gnu) 9804 version_type=linux 9805 need_lib_prefix=no 9806 need_version=no 9807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9808 soname_spec='${libname}${release}${shared_ext}$major' 9809 shlibpath_var=LD_LIBRARY_PATH 9810 shlibpath_overrides_runpath=no 9811 hardcode_into_libs=yes 9812 dynamic_linker='NetBSD ld.elf_so' 9813 ;; 9814 9815netbsd*) 9816 version_type=sunos 9817 need_lib_prefix=no 9818 need_version=no 9819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9822 dynamic_linker='NetBSD (a.out) ld.so' 9823 else 9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9825 soname_spec='${libname}${release}${shared_ext}$major' 9826 dynamic_linker='NetBSD ld.elf_so' 9827 fi 9828 shlibpath_var=LD_LIBRARY_PATH 9829 shlibpath_overrides_runpath=yes 9830 hardcode_into_libs=yes 9831 ;; 9832 9833newsos6) 9834 version_type=linux 9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9836 shlibpath_var=LD_LIBRARY_PATH 9837 shlibpath_overrides_runpath=yes 9838 ;; 9839 9840*nto* | *qnx*) 9841 version_type=qnx 9842 need_lib_prefix=no 9843 need_version=no 9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9845 soname_spec='${libname}${release}${shared_ext}$major' 9846 shlibpath_var=LD_LIBRARY_PATH 9847 shlibpath_overrides_runpath=no 9848 hardcode_into_libs=yes 9849 dynamic_linker='ldqnx.so' 9850 ;; 9851 9852openbsd*) 9853 version_type=sunos 9854 sys_lib_dlsearch_path_spec="/usr/lib" 9855 need_lib_prefix=no 9856 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9857 case $host_os in 9858 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9859 *) need_version=no ;; 9860 esac 9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9863 shlibpath_var=LD_LIBRARY_PATH 9864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9865 case $host_os in 9866 openbsd2.[89] | openbsd2.[89].*) 9867 shlibpath_overrides_runpath=no 9868 ;; 9869 *) 9870 shlibpath_overrides_runpath=yes 9871 ;; 9872 esac 9873 else 9874 shlibpath_overrides_runpath=yes 9875 fi 9876 ;; 9877 9878os2*) 9879 libname_spec='$name' 9880 shrext_cmds=".dll" 9881 need_lib_prefix=no 9882 library_names_spec='$libname${shared_ext} $libname.a' 9883 dynamic_linker='OS/2 ld.exe' 9884 shlibpath_var=LIBPATH 9885 ;; 9886 9887osf3* | osf4* | osf5*) 9888 version_type=osf 9889 need_lib_prefix=no 9890 need_version=no 9891 soname_spec='${libname}${release}${shared_ext}$major' 9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9893 shlibpath_var=LD_LIBRARY_PATH 9894 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9895 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9896 ;; 9897 9898rdos*) 9899 dynamic_linker=no 9900 ;; 9901 9902solaris*) 9903 version_type=linux 9904 need_lib_prefix=no 9905 need_version=no 9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9907 soname_spec='${libname}${release}${shared_ext}$major' 9908 shlibpath_var=LD_LIBRARY_PATH 9909 shlibpath_overrides_runpath=yes 9910 hardcode_into_libs=yes 9911 # ldd complains unless libraries are executable 9912 postinstall_cmds='chmod +x $lib' 9913 ;; 9914 9915sunos4*) 9916 version_type=sunos 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9919 shlibpath_var=LD_LIBRARY_PATH 9920 shlibpath_overrides_runpath=yes 9921 if test "$with_gnu_ld" = yes; then 9922 need_lib_prefix=no 9923 fi 9924 need_version=yes 9925 ;; 9926 9927sysv4 | sysv4.3*) 9928 version_type=linux 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9930 soname_spec='${libname}${release}${shared_ext}$major' 9931 shlibpath_var=LD_LIBRARY_PATH 9932 case $host_vendor in 9933 sni) 9934 shlibpath_overrides_runpath=no 9935 need_lib_prefix=no 9936 runpath_var=LD_RUN_PATH 9937 ;; 9938 siemens) 9939 need_lib_prefix=no 9940 ;; 9941 motorola) 9942 need_lib_prefix=no 9943 need_version=no 9944 shlibpath_overrides_runpath=no 9945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9946 ;; 9947 esac 9948 ;; 9949 9950sysv4*MP*) 9951 if test -d /usr/nec ;then 9952 version_type=linux 9953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9954 soname_spec='$libname${shared_ext}.$major' 9955 shlibpath_var=LD_LIBRARY_PATH 9956 fi 9957 ;; 9958 9959sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9960 version_type=freebsd-elf 9961 need_lib_prefix=no 9962 need_version=no 9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9964 soname_spec='${libname}${release}${shared_ext}$major' 9965 shlibpath_var=LD_LIBRARY_PATH 9966 shlibpath_overrides_runpath=yes 9967 hardcode_into_libs=yes 9968 if test "$with_gnu_ld" = yes; then 9969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9970 else 9971 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9972 case $host_os in 9973 sco3.2v5*) 9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9975 ;; 9976 esac 9977 fi 9978 sys_lib_dlsearch_path_spec='/usr/lib' 9979 ;; 9980 9981tpf*) 9982 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9983 version_type=linux 9984 need_lib_prefix=no 9985 need_version=no 9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9987 shlibpath_var=LD_LIBRARY_PATH 9988 shlibpath_overrides_runpath=no 9989 hardcode_into_libs=yes 9990 ;; 9991 9992uts4*) 9993 version_type=linux 9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9995 soname_spec='${libname}${release}${shared_ext}$major' 9996 shlibpath_var=LD_LIBRARY_PATH 9997 ;; 9998 9999*) 10000 dynamic_linker=no 10001 ;; 10002esac 10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10004$as_echo "$dynamic_linker" >&6; } 10005test "$dynamic_linker" = no && can_build_shared=no 10006 10007variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10008if test "$GCC" = yes; then 10009 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10010fi 10011 10012if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10013 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10014fi 10015if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10016 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10017fi 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10106$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10107hardcode_action= 10108if test -n "$hardcode_libdir_flag_spec" || 10109 test -n "$runpath_var" || 10110 test "X$hardcode_automatic" = "Xyes" ; then 10111 10112 # We can hardcode non-existent directories. 10113 if test "$hardcode_direct" != no && 10114 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10115 # have to relink, otherwise we might link with an installed library 10116 # when we should be linking with a yet-to-be-installed one 10117 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10118 test "$hardcode_minus_L" != no; then 10119 # Linking always hardcodes the temporary library directory. 10120 hardcode_action=relink 10121 else 10122 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10123 hardcode_action=immediate 10124 fi 10125else 10126 # We cannot hardcode anything, or else we can only hardcode existing 10127 # directories. 10128 hardcode_action=unsupported 10129fi 10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10131$as_echo "$hardcode_action" >&6; } 10132 10133if test "$hardcode_action" = relink || 10134 test "$inherit_rpath" = yes; then 10135 # Fast installation is not supported 10136 enable_fast_install=no 10137elif test "$shlibpath_overrides_runpath" = yes || 10138 test "$enable_shared" = no; then 10139 # Fast installation is not necessary 10140 enable_fast_install=needless 10141fi 10142 10143 10144 10145 10146 10147 10148 if test "x$enable_dlopen" != xyes; then 10149 enable_dlopen=unknown 10150 enable_dlopen_self=unknown 10151 enable_dlopen_self_static=unknown 10152else 10153 lt_cv_dlopen=no 10154 lt_cv_dlopen_libs= 10155 10156 case $host_os in 10157 beos*) 10158 lt_cv_dlopen="load_add_on" 10159 lt_cv_dlopen_libs= 10160 lt_cv_dlopen_self=yes 10161 ;; 10162 10163 mingw* | pw32* | cegcc*) 10164 lt_cv_dlopen="LoadLibrary" 10165 lt_cv_dlopen_libs= 10166 ;; 10167 10168 cygwin*) 10169 lt_cv_dlopen="dlopen" 10170 lt_cv_dlopen_libs= 10171 ;; 10172 10173 darwin*) 10174 # if libdl is installed we need to link against it 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10176$as_echo_n "checking for dlopen in -ldl... " >&6; } 10177if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10178 $as_echo_n "(cached) " >&6 10179else 10180 ac_check_lib_save_LIBS=$LIBS 10181LIBS="-ldl $LIBS" 10182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10183/* end confdefs.h. */ 10184 10185/* Override any GCC internal prototype to avoid an error. 10186 Use char because int might match the return type of a GCC 10187 builtin and then its argument prototype would still apply. */ 10188#ifdef __cplusplus 10189extern "C" 10190#endif 10191char dlopen (); 10192int 10193main () 10194{ 10195return dlopen (); 10196 ; 10197 return 0; 10198} 10199_ACEOF 10200if ac_fn_c_try_link "$LINENO"; then : 10201 ac_cv_lib_dl_dlopen=yes 10202else 10203 ac_cv_lib_dl_dlopen=no 10204fi 10205rm -f core conftest.err conftest.$ac_objext \ 10206 conftest$ac_exeext conftest.$ac_ext 10207LIBS=$ac_check_lib_save_LIBS 10208fi 10209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10210$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10211if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10213else 10214 10215 lt_cv_dlopen="dyld" 10216 lt_cv_dlopen_libs= 10217 lt_cv_dlopen_self=yes 10218 10219fi 10220 10221 ;; 10222 10223 *) 10224 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10225if test "x$ac_cv_func_shl_load" = x""yes; then : 10226 lt_cv_dlopen="shl_load" 10227else 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10229$as_echo_n "checking for shl_load in -ldld... " >&6; } 10230if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10231 $as_echo_n "(cached) " >&6 10232else 10233 ac_check_lib_save_LIBS=$LIBS 10234LIBS="-ldld $LIBS" 10235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10236/* end confdefs.h. */ 10237 10238/* Override any GCC internal prototype to avoid an error. 10239 Use char because int might match the return type of a GCC 10240 builtin and then its argument prototype would still apply. */ 10241#ifdef __cplusplus 10242extern "C" 10243#endif 10244char shl_load (); 10245int 10246main () 10247{ 10248return shl_load (); 10249 ; 10250 return 0; 10251} 10252_ACEOF 10253if ac_fn_c_try_link "$LINENO"; then : 10254 ac_cv_lib_dld_shl_load=yes 10255else 10256 ac_cv_lib_dld_shl_load=no 10257fi 10258rm -f core conftest.err conftest.$ac_objext \ 10259 conftest$ac_exeext conftest.$ac_ext 10260LIBS=$ac_check_lib_save_LIBS 10261fi 10262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10263$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10264if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10266else 10267 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10268if test "x$ac_cv_func_dlopen" = x""yes; then : 10269 lt_cv_dlopen="dlopen" 10270else 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10272$as_echo_n "checking for dlopen in -ldl... " >&6; } 10273if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10274 $as_echo_n "(cached) " >&6 10275else 10276 ac_check_lib_save_LIBS=$LIBS 10277LIBS="-ldl $LIBS" 10278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280 10281/* Override any GCC internal prototype to avoid an error. 10282 Use char because int might match the return type of a GCC 10283 builtin and then its argument prototype would still apply. */ 10284#ifdef __cplusplus 10285extern "C" 10286#endif 10287char dlopen (); 10288int 10289main () 10290{ 10291return dlopen (); 10292 ; 10293 return 0; 10294} 10295_ACEOF 10296if ac_fn_c_try_link "$LINENO"; then : 10297 ac_cv_lib_dl_dlopen=yes 10298else 10299 ac_cv_lib_dl_dlopen=no 10300fi 10301rm -f core conftest.err conftest.$ac_objext \ 10302 conftest$ac_exeext conftest.$ac_ext 10303LIBS=$ac_check_lib_save_LIBS 10304fi 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10306$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10307if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10309else 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10311$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10312if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10313 $as_echo_n "(cached) " >&6 10314else 10315 ac_check_lib_save_LIBS=$LIBS 10316LIBS="-lsvld $LIBS" 10317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10318/* end confdefs.h. */ 10319 10320/* Override any GCC internal prototype to avoid an error. 10321 Use char because int might match the return type of a GCC 10322 builtin and then its argument prototype would still apply. */ 10323#ifdef __cplusplus 10324extern "C" 10325#endif 10326char dlopen (); 10327int 10328main () 10329{ 10330return dlopen (); 10331 ; 10332 return 0; 10333} 10334_ACEOF 10335if ac_fn_c_try_link "$LINENO"; then : 10336 ac_cv_lib_svld_dlopen=yes 10337else 10338 ac_cv_lib_svld_dlopen=no 10339fi 10340rm -f core conftest.err conftest.$ac_objext \ 10341 conftest$ac_exeext conftest.$ac_ext 10342LIBS=$ac_check_lib_save_LIBS 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10345$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10346if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10348else 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10350$as_echo_n "checking for dld_link in -ldld... " >&6; } 10351if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10352 $as_echo_n "(cached) " >&6 10353else 10354 ac_check_lib_save_LIBS=$LIBS 10355LIBS="-ldld $LIBS" 10356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357/* end confdefs.h. */ 10358 10359/* Override any GCC internal prototype to avoid an error. 10360 Use char because int might match the return type of a GCC 10361 builtin and then its argument prototype would still apply. */ 10362#ifdef __cplusplus 10363extern "C" 10364#endif 10365char dld_link (); 10366int 10367main () 10368{ 10369return dld_link (); 10370 ; 10371 return 0; 10372} 10373_ACEOF 10374if ac_fn_c_try_link "$LINENO"; then : 10375 ac_cv_lib_dld_dld_link=yes 10376else 10377 ac_cv_lib_dld_dld_link=no 10378fi 10379rm -f core conftest.err conftest.$ac_objext \ 10380 conftest$ac_exeext conftest.$ac_ext 10381LIBS=$ac_check_lib_save_LIBS 10382fi 10383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10384$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10385if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10386 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10387fi 10388 10389 10390fi 10391 10392 10393fi 10394 10395 10396fi 10397 10398 10399fi 10400 10401 10402fi 10403 10404 ;; 10405 esac 10406 10407 if test "x$lt_cv_dlopen" != xno; then 10408 enable_dlopen=yes 10409 else 10410 enable_dlopen=no 10411 fi 10412 10413 case $lt_cv_dlopen in 10414 dlopen) 10415 save_CPPFLAGS="$CPPFLAGS" 10416 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10417 10418 save_LDFLAGS="$LDFLAGS" 10419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10420 10421 save_LIBS="$LIBS" 10422 LIBS="$lt_cv_dlopen_libs $LIBS" 10423 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10425$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10426if test "${lt_cv_dlopen_self+set}" = set; then : 10427 $as_echo_n "(cached) " >&6 10428else 10429 if test "$cross_compiling" = yes; then : 10430 lt_cv_dlopen_self=cross 10431else 10432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10433 lt_status=$lt_dlunknown 10434 cat > conftest.$ac_ext <<_LT_EOF 10435#line 10435 "configure" 10436#include "confdefs.h" 10437 10438#if HAVE_DLFCN_H 10439#include <dlfcn.h> 10440#endif 10441 10442#include <stdio.h> 10443 10444#ifdef RTLD_GLOBAL 10445# define LT_DLGLOBAL RTLD_GLOBAL 10446#else 10447# ifdef DL_GLOBAL 10448# define LT_DLGLOBAL DL_GLOBAL 10449# else 10450# define LT_DLGLOBAL 0 10451# endif 10452#endif 10453 10454/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10455 find out it does not work in some platform. */ 10456#ifndef LT_DLLAZY_OR_NOW 10457# ifdef RTLD_LAZY 10458# define LT_DLLAZY_OR_NOW RTLD_LAZY 10459# else 10460# ifdef DL_LAZY 10461# define LT_DLLAZY_OR_NOW DL_LAZY 10462# else 10463# ifdef RTLD_NOW 10464# define LT_DLLAZY_OR_NOW RTLD_NOW 10465# else 10466# ifdef DL_NOW 10467# define LT_DLLAZY_OR_NOW DL_NOW 10468# else 10469# define LT_DLLAZY_OR_NOW 0 10470# endif 10471# endif 10472# endif 10473# endif 10474#endif 10475 10476void fnord() { int i=42;} 10477int main () 10478{ 10479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10480 int status = $lt_dlunknown; 10481 10482 if (self) 10483 { 10484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10485 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10486 /* dlclose (self); */ 10487 } 10488 else 10489 puts (dlerror ()); 10490 10491 return status; 10492} 10493_LT_EOF 10494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10495 (eval $ac_link) 2>&5 10496 ac_status=$? 10497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10498 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10499 (./conftest; exit; ) >&5 2>/dev/null 10500 lt_status=$? 10501 case x$lt_status in 10502 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10503 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10504 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10505 esac 10506 else : 10507 # compilation failed 10508 lt_cv_dlopen_self=no 10509 fi 10510fi 10511rm -fr conftest* 10512 10513 10514fi 10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10516$as_echo "$lt_cv_dlopen_self" >&6; } 10517 10518 if test "x$lt_cv_dlopen_self" = xyes; then 10519 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10521$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10522if test "${lt_cv_dlopen_self_static+set}" = set; then : 10523 $as_echo_n "(cached) " >&6 10524else 10525 if test "$cross_compiling" = yes; then : 10526 lt_cv_dlopen_self_static=cross 10527else 10528 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10529 lt_status=$lt_dlunknown 10530 cat > conftest.$ac_ext <<_LT_EOF 10531#line 10531 "configure" 10532#include "confdefs.h" 10533 10534#if HAVE_DLFCN_H 10535#include <dlfcn.h> 10536#endif 10537 10538#include <stdio.h> 10539 10540#ifdef RTLD_GLOBAL 10541# define LT_DLGLOBAL RTLD_GLOBAL 10542#else 10543# ifdef DL_GLOBAL 10544# define LT_DLGLOBAL DL_GLOBAL 10545# else 10546# define LT_DLGLOBAL 0 10547# endif 10548#endif 10549 10550/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10551 find out it does not work in some platform. */ 10552#ifndef LT_DLLAZY_OR_NOW 10553# ifdef RTLD_LAZY 10554# define LT_DLLAZY_OR_NOW RTLD_LAZY 10555# else 10556# ifdef DL_LAZY 10557# define LT_DLLAZY_OR_NOW DL_LAZY 10558# else 10559# ifdef RTLD_NOW 10560# define LT_DLLAZY_OR_NOW RTLD_NOW 10561# else 10562# ifdef DL_NOW 10563# define LT_DLLAZY_OR_NOW DL_NOW 10564# else 10565# define LT_DLLAZY_OR_NOW 0 10566# endif 10567# endif 10568# endif 10569# endif 10570#endif 10571 10572void fnord() { int i=42;} 10573int main () 10574{ 10575 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10576 int status = $lt_dlunknown; 10577 10578 if (self) 10579 { 10580 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10581 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10582 /* dlclose (self); */ 10583 } 10584 else 10585 puts (dlerror ()); 10586 10587 return status; 10588} 10589_LT_EOF 10590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10591 (eval $ac_link) 2>&5 10592 ac_status=$? 10593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10594 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10595 (./conftest; exit; ) >&5 2>/dev/null 10596 lt_status=$? 10597 case x$lt_status in 10598 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10599 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10600 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10601 esac 10602 else : 10603 # compilation failed 10604 lt_cv_dlopen_self_static=no 10605 fi 10606fi 10607rm -fr conftest* 10608 10609 10610fi 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10612$as_echo "$lt_cv_dlopen_self_static" >&6; } 10613 fi 10614 10615 CPPFLAGS="$save_CPPFLAGS" 10616 LDFLAGS="$save_LDFLAGS" 10617 LIBS="$save_LIBS" 10618 ;; 10619 esac 10620 10621 case $lt_cv_dlopen_self in 10622 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10623 *) enable_dlopen_self=unknown ;; 10624 esac 10625 10626 case $lt_cv_dlopen_self_static in 10627 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10628 *) enable_dlopen_self_static=unknown ;; 10629 esac 10630fi 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648striplib= 10649old_striplib= 10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10651$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10652if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10653 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10654 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10656$as_echo "yes" >&6; } 10657else 10658# FIXME - insert some real tests, host_os isn't really good enough 10659 case $host_os in 10660 darwin*) 10661 if test -n "$STRIP" ; then 10662 striplib="$STRIP -x" 10663 old_striplib="$STRIP -S" 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10665$as_echo "yes" >&6; } 10666 else 10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10668$as_echo "no" >&6; } 10669 fi 10670 ;; 10671 *) 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10673$as_echo "no" >&6; } 10674 ;; 10675 esac 10676fi 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 # Report which library types will actually be built 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10691$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10693$as_echo "$can_build_shared" >&6; } 10694 10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10696$as_echo_n "checking whether to build shared libraries... " >&6; } 10697 test "$can_build_shared" = "no" && enable_shared=no 10698 10699 # On AIX, shared libraries and static libraries use the same namespace, and 10700 # are all built from PIC. 10701 case $host_os in 10702 aix3*) 10703 test "$enable_shared" = yes && enable_static=no 10704 if test -n "$RANLIB"; then 10705 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10706 postinstall_cmds='$RANLIB $lib' 10707 fi 10708 ;; 10709 10710 aix[4-9]*) 10711 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10712 test "$enable_shared" = yes && enable_static=no 10713 fi 10714 ;; 10715 esac 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10717$as_echo "$enable_shared" >&6; } 10718 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10720$as_echo_n "checking whether to build static libraries... " >&6; } 10721 # Make sure either enable_shared or enable_static is yes. 10722 test "$enable_shared" = yes || enable_static=yes 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10724$as_echo "$enable_static" >&6; } 10725 10726 10727 10728 10729fi 10730ac_ext=c 10731ac_cpp='$CPP $CPPFLAGS' 10732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10734ac_compiler_gnu=$ac_cv_c_compiler_gnu 10735 10736CC="$lt_save_CC" 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 ac_config_commands="$ac_config_commands libtool" 10751 10752 10753 10754 10755# Only expand once: 10756 10757 10758 10759ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 10760if test "x$ac_cv_func_strndup" = x""yes; then : 10761 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 10762 10763else 10764 case " $LIBOBJS " in 10765 *" strndup.$ac_objext "* ) ;; 10766 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 10767 ;; 10768esac 10769 10770fi 10771 10772 10773 10774EXTRA_CFLAGS= 10775EXTRA_LDFLAGS= 10776case $host in 10777 *-*-mingw32* | *-*-windows) 10778 EXTRA_CFLAGS="-mno-cygwin -mwindows -mms-bitfields -fno-strict-aliasing -DMPD_NO_GAI" 10779 EXTRA_LDFLAGS="-export-all-symbols -mwindows -no-undefined -lws2_32 -mms-bitfields" ;; 10780 *-*-cygwin*) 10781 EXTRA_CFLAGS="-fno-strict-aliasing" 10782 EXTRA_LDFLAGS="-export-all-symbols -mms-bitfields";; 10783esac 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10794 if test -n "$ac_tool_prefix"; then 10795 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10796set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10798$as_echo_n "checking for $ac_word... " >&6; } 10799if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 case $PKG_CONFIG in 10803 [\\/]* | ?:[\\/]*) 10804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10805 ;; 10806 *) 10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10808for as_dir in $PATH 10809do 10810 IFS=$as_save_IFS 10811 test -z "$as_dir" && as_dir=. 10812 for ac_exec_ext in '' $ac_executable_extensions; do 10813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10814 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10816 break 2 10817 fi 10818done 10819 done 10820IFS=$as_save_IFS 10821 10822 ;; 10823esac 10824fi 10825PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10826if test -n "$PKG_CONFIG"; then 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10828$as_echo "$PKG_CONFIG" >&6; } 10829else 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10831$as_echo "no" >&6; } 10832fi 10833 10834 10835fi 10836if test -z "$ac_cv_path_PKG_CONFIG"; then 10837 ac_pt_PKG_CONFIG=$PKG_CONFIG 10838 # Extract the first word of "pkg-config", so it can be a program name with args. 10839set dummy pkg-config; ac_word=$2 10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10841$as_echo_n "checking for $ac_word... " >&6; } 10842if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 10843 $as_echo_n "(cached) " >&6 10844else 10845 case $ac_pt_PKG_CONFIG in 10846 [\\/]* | ?:[\\/]*) 10847 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10848 ;; 10849 *) 10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10851for as_dir in $PATH 10852do 10853 IFS=$as_save_IFS 10854 test -z "$as_dir" && as_dir=. 10855 for ac_exec_ext in '' $ac_executable_extensions; do 10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10857 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10859 break 2 10860 fi 10861done 10862 done 10863IFS=$as_save_IFS 10864 10865 ;; 10866esac 10867fi 10868ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10869if test -n "$ac_pt_PKG_CONFIG"; then 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10871$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10872else 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10874$as_echo "no" >&6; } 10875fi 10876 10877 if test "x$ac_pt_PKG_CONFIG" = x; then 10878 PKG_CONFIG="" 10879 else 10880 case $cross_compiling:$ac_tool_warned in 10881yes:) 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10884ac_tool_warned=yes ;; 10885esac 10886 PKG_CONFIG=$ac_pt_PKG_CONFIG 10887 fi 10888else 10889 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10890fi 10891 10892fi 10893if test -n "$PKG_CONFIG"; then 10894 _pkg_min_version=0.9.0 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10896$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10897 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10899$as_echo "yes" >&6; } 10900 else 10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10902$as_echo "no" >&6; } 10903 PKG_CONFIG="" 10904 fi 10905fi 10906 10907pkg_failed=no 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib" >&5 10909$as_echo_n "checking for glib... " >&6; } 10910 10911if test -n "$glib_CFLAGS"; then 10912 pkg_cv_glib_CFLAGS="$glib_CFLAGS" 10913 elif test -n "$PKG_CONFIG"; then 10914 if test -n "$PKG_CONFIG" && \ 10915 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 10916 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 10917 ac_status=$? 10918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10919 test $ac_status = 0; }; then 10920 pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null` 10921else 10922 pkg_failed=yes 10923fi 10924 else 10925 pkg_failed=untried 10926fi 10927if test -n "$glib_LIBS"; then 10928 pkg_cv_glib_LIBS="$glib_LIBS" 10929 elif test -n "$PKG_CONFIG"; then 10930 if test -n "$PKG_CONFIG" && \ 10931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 10932 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 10933 ac_status=$? 10934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10935 test $ac_status = 0; }; then 10936 pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null` 10937else 10938 pkg_failed=yes 10939fi 10940 else 10941 pkg_failed=untried 10942fi 10943 10944 10945 10946if test $pkg_failed = yes; then 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10948$as_echo "no" >&6; } 10949 10950if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10951 _pkg_short_errors_supported=yes 10952else 10953 _pkg_short_errors_supported=no 10954fi 10955 if test $_pkg_short_errors_supported = yes; then 10956 glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.16" 2>&1` 10957 else 10958 glib_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.16" 2>&1` 10959 fi 10960 # Put the nasty error message in config.log where it belongs 10961 echo "$glib_PKG_ERRORS" >&5 10962 10963 as_fn_error $? "Package requirements (glib-2.0 >= 2.16) were not met: 10964 10965$glib_PKG_ERRORS 10966 10967Consider adjusting the PKG_CONFIG_PATH environment variable if you 10968installed software in a non-standard prefix. 10969 10970Alternatively, you may set the environment variables glib_CFLAGS 10971and glib_LIBS to avoid the need to call pkg-config. 10972See the pkg-config man page for more details." "$LINENO" 5 10973elif test $pkg_failed = untried; then 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10975$as_echo "no" >&6; } 10976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10978as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10979is in your PATH or set the PKG_CONFIG environment variable to the full 10980path to pkg-config. 10981 10982Alternatively, you may set the environment variables glib_CFLAGS 10983and glib_LIBS to avoid the need to call pkg-config. 10984See the pkg-config man page for more details. 10985 10986To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10987See \`config.log' for more details" "$LINENO" 5 ; } 10988else 10989 glib_CFLAGS=$pkg_cv_glib_CFLAGS 10990 glib_LIBS=$pkg_cv_glib_LIBS 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10992$as_echo "yes" >&6; } 10993 10994fi 10995 10996 10997 10998# Checks for header files. 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11000$as_echo_n "checking for ANSI C header files... " >&6; } 11001if test "${ac_cv_header_stdc+set}" = set; then : 11002 $as_echo_n "(cached) " >&6 11003else 11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11005/* end confdefs.h. */ 11006#include <stdlib.h> 11007#include <stdarg.h> 11008#include <string.h> 11009#include <float.h> 11010 11011int 11012main () 11013{ 11014 11015 ; 11016 return 0; 11017} 11018_ACEOF 11019if ac_fn_c_try_compile "$LINENO"; then : 11020 ac_cv_header_stdc=yes 11021else 11022 ac_cv_header_stdc=no 11023fi 11024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11025 11026if test $ac_cv_header_stdc = yes; then 11027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029/* end confdefs.h. */ 11030#include <string.h> 11031 11032_ACEOF 11033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11034 $EGREP "memchr" >/dev/null 2>&1; then : 11035 11036else 11037 ac_cv_header_stdc=no 11038fi 11039rm -f conftest* 11040 11041fi 11042 11043if test $ac_cv_header_stdc = yes; then 11044 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11046/* end confdefs.h. */ 11047#include <stdlib.h> 11048 11049_ACEOF 11050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11051 $EGREP "free" >/dev/null 2>&1; then : 11052 11053else 11054 ac_cv_header_stdc=no 11055fi 11056rm -f conftest* 11057 11058fi 11059 11060if test $ac_cv_header_stdc = yes; then 11061 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11062 if test "$cross_compiling" = yes; then : 11063 : 11064else 11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11066/* end confdefs.h. */ 11067#include <ctype.h> 11068#include <stdlib.h> 11069#if ((' ' & 0x0FF) == 0x020) 11070# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11071# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11072#else 11073# define ISLOWER(c) \ 11074 (('a' <= (c) && (c) <= 'i') \ 11075 || ('j' <= (c) && (c) <= 'r') \ 11076 || ('s' <= (c) && (c) <= 'z')) 11077# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11078#endif 11079 11080#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11081int 11082main () 11083{ 11084 int i; 11085 for (i = 0; i < 256; i++) 11086 if (XOR (islower (i), ISLOWER (i)) 11087 || toupper (i) != TOUPPER (i)) 11088 return 2; 11089 return 0; 11090} 11091_ACEOF 11092if ac_fn_c_try_run "$LINENO"; then : 11093 11094else 11095 ac_cv_header_stdc=no 11096fi 11097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11098 conftest.$ac_objext conftest.beam conftest.$ac_ext 11099fi 11100 11101fi 11102fi 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11104$as_echo "$ac_cv_header_stdc" >&6; } 11105if test $ac_cv_header_stdc = yes; then 11106 11107$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11108 11109fi 11110 11111for ac_header in stdlib.h string.h unistd.h 11112do : 11113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11114ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11115if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11116 cat >>confdefs.h <<_ACEOF 11117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11118_ACEOF 11119 11120fi 11121 11122done 11123 11124 11125ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile example/Makefile example/testcase/Makefile libmpd.pc src/libmpd-version.h doc/libmpd.doxy" 11126 11127cat >confcache <<\_ACEOF 11128# This file is a shell script that caches the results of configure 11129# tests run on this system so they can be shared between configure 11130# scripts and configure runs, see configure's option --config-cache. 11131# It is not useful on other systems. If it contains results you don't 11132# want to keep, you may remove or edit it. 11133# 11134# config.status only pays attention to the cache file if you give it 11135# the --recheck option to rerun configure. 11136# 11137# `ac_cv_env_foo' variables (set or unset) will be overridden when 11138# loading this file, other *unset* `ac_cv_foo' will be assigned the 11139# following values. 11140 11141_ACEOF 11142 11143# The following way of writing the cache mishandles newlines in values, 11144# but we know of no workaround that is simple, portable, and efficient. 11145# So, we kill variables containing newlines. 11146# Ultrix sh set writes to stderr and can't be redirected directly, 11147# and sets the high bit in the cache file unless we assign to the vars. 11148( 11149 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11150 eval ac_val=\$$ac_var 11151 case $ac_val in #( 11152 *${as_nl}*) 11153 case $ac_var in #( 11154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11155$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11156 esac 11157 case $ac_var in #( 11158 _ | IFS | as_nl) ;; #( 11159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11160 *) { eval $ac_var=; unset $ac_var;} ;; 11161 esac ;; 11162 esac 11163 done 11164 11165 (set) 2>&1 | 11166 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11167 *${as_nl}ac_space=\ *) 11168 # `set' does not quote correctly, so add quotes: double-quote 11169 # substitution turns \\\\ into \\, and sed turns \\ into \. 11170 sed -n \ 11171 "s/'/'\\\\''/g; 11172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11173 ;; #( 11174 *) 11175 # `set' quotes correctly as required by POSIX, so do not add quotes. 11176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11177 ;; 11178 esac | 11179 sort 11180) | 11181 sed ' 11182 /^ac_cv_env_/b end 11183 t clear 11184 :clear 11185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11186 t end 11187 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11188 :end' >>confcache 11189if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11190 if test -w "$cache_file"; then 11191 test "x$cache_file" != "x/dev/null" && 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11193$as_echo "$as_me: updating cache $cache_file" >&6;} 11194 cat confcache >$cache_file 11195 else 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11197$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11198 fi 11199fi 11200rm -f confcache 11201 11202test "x$prefix" = xNONE && prefix=$ac_default_prefix 11203# Let make expand exec_prefix. 11204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11205 11206DEFS=-DHAVE_CONFIG_H 11207 11208ac_libobjs= 11209ac_ltlibobjs= 11210U= 11211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11212 # 1. Remove the extension, and $U if already installed. 11213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11214 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11216 # will be set to the directory where LIBOBJS objects are built. 11217 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11218 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11219done 11220LIBOBJS=$ac_libobjs 11221 11222LTLIBOBJS=$ac_ltlibobjs 11223 11224 11225 if test -n "$EXEEXT"; then 11226 am__EXEEXT_TRUE= 11227 am__EXEEXT_FALSE='#' 11228else 11229 am__EXEEXT_TRUE='#' 11230 am__EXEEXT_FALSE= 11231fi 11232 11233if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11234 as_fn_error $? "conditional \"AMDEP\" was never defined. 11235Usually this means the macro was only invoked conditionally." "$LINENO" 5 11236fi 11237if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11238 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11239Usually this means the macro was only invoked conditionally." "$LINENO" 5 11240fi 11241 11242: ${CONFIG_STATUS=./config.status} 11243ac_write_fail=0 11244ac_clean_files_save=$ac_clean_files 11245ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11246{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11247$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11248as_write_fail=0 11249cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11250#! $SHELL 11251# Generated by $as_me. 11252# Run this file to recreate the current configuration. 11253# Compiler output produced by configure, useful for debugging 11254# configure, is in config.log if it exists. 11255 11256debug=false 11257ac_cs_recheck=false 11258ac_cs_silent=false 11259 11260SHELL=\${CONFIG_SHELL-$SHELL} 11261export SHELL 11262_ASEOF 11263cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11264## -------------------- ## 11265## M4sh Initialization. ## 11266## -------------------- ## 11267 11268# Be more Bourne compatible 11269DUALCASE=1; export DUALCASE # for MKS sh 11270if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11271 emulate sh 11272 NULLCMD=: 11273 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11274 # is contrary to our usage. Disable this feature. 11275 alias -g '${1+"$@"}'='"$@"' 11276 setopt NO_GLOB_SUBST 11277else 11278 case `(set -o) 2>/dev/null` in #( 11279 *posix*) : 11280 set -o posix ;; #( 11281 *) : 11282 ;; 11283esac 11284fi 11285 11286 11287as_nl=' 11288' 11289export as_nl 11290# Printing a long string crashes Solaris 7 /usr/bin/printf. 11291as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11292as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11293as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11294# Prefer a ksh shell builtin over an external printf program on Solaris, 11295# but without wasting forks for bash or zsh. 11296if test -z "$BASH_VERSION$ZSH_VERSION" \ 11297 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11298 as_echo='print -r --' 11299 as_echo_n='print -rn --' 11300elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11301 as_echo='printf %s\n' 11302 as_echo_n='printf %s' 11303else 11304 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11305 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11306 as_echo_n='/usr/ucb/echo -n' 11307 else 11308 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11309 as_echo_n_body='eval 11310 arg=$1; 11311 case $arg in #( 11312 *"$as_nl"*) 11313 expr "X$arg" : "X\\(.*\\)$as_nl"; 11314 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11315 esac; 11316 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11317 ' 11318 export as_echo_n_body 11319 as_echo_n='sh -c $as_echo_n_body as_echo' 11320 fi 11321 export as_echo_body 11322 as_echo='sh -c $as_echo_body as_echo' 11323fi 11324 11325# The user is always right. 11326if test "${PATH_SEPARATOR+set}" != set; then 11327 PATH_SEPARATOR=: 11328 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11329 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11330 PATH_SEPARATOR=';' 11331 } 11332fi 11333 11334 11335# IFS 11336# We need space, tab and new line, in precisely that order. Quoting is 11337# there to prevent editors from complaining about space-tab. 11338# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11339# splitting by setting IFS to empty value.) 11340IFS=" "" $as_nl" 11341 11342# Find who we are. Look in the path if we contain no directory separator. 11343case $0 in #(( 11344 *[\\/]* ) as_myself=$0 ;; 11345 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11346for as_dir in $PATH 11347do 11348 IFS=$as_save_IFS 11349 test -z "$as_dir" && as_dir=. 11350 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11351 done 11352IFS=$as_save_IFS 11353 11354 ;; 11355esac 11356# We did not find ourselves, most probably we were run as `sh COMMAND' 11357# in which case we are not to be found in the path. 11358if test "x$as_myself" = x; then 11359 as_myself=$0 11360fi 11361if test ! -f "$as_myself"; then 11362 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11363 exit 1 11364fi 11365 11366# Unset variables that we do not need and which cause bugs (e.g. in 11367# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11368# suppresses any "Segmentation fault" message there. '((' could 11369# trigger a bug in pdksh 5.2.14. 11370for as_var in BASH_ENV ENV MAIL MAILPATH 11371do eval test x\${$as_var+set} = xset \ 11372 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11373done 11374PS1='$ ' 11375PS2='> ' 11376PS4='+ ' 11377 11378# NLS nuisances. 11379LC_ALL=C 11380export LC_ALL 11381LANGUAGE=C 11382export LANGUAGE 11383 11384# CDPATH. 11385(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11386 11387 11388# as_fn_error STATUS ERROR [LINENO LOG_FD] 11389# ---------------------------------------- 11390# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11391# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11392# script with STATUS, using 1 if that was 0. 11393as_fn_error () 11394{ 11395 as_status=$1; test $as_status -eq 0 && as_status=1 11396 if test "$4"; then 11397 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11398 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11399 fi 11400 $as_echo "$as_me: error: $2" >&2 11401 as_fn_exit $as_status 11402} # as_fn_error 11403 11404 11405# as_fn_set_status STATUS 11406# ----------------------- 11407# Set $? to STATUS, without forking. 11408as_fn_set_status () 11409{ 11410 return $1 11411} # as_fn_set_status 11412 11413# as_fn_exit STATUS 11414# ----------------- 11415# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11416as_fn_exit () 11417{ 11418 set +e 11419 as_fn_set_status $1 11420 exit $1 11421} # as_fn_exit 11422 11423# as_fn_unset VAR 11424# --------------- 11425# Portably unset VAR. 11426as_fn_unset () 11427{ 11428 { eval $1=; unset $1;} 11429} 11430as_unset=as_fn_unset 11431# as_fn_append VAR VALUE 11432# ---------------------- 11433# Append the text in VALUE to the end of the definition contained in VAR. Take 11434# advantage of any shell optimizations that allow amortized linear growth over 11435# repeated appends, instead of the typical quadratic growth present in naive 11436# implementations. 11437if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11438 eval 'as_fn_append () 11439 { 11440 eval $1+=\$2 11441 }' 11442else 11443 as_fn_append () 11444 { 11445 eval $1=\$$1\$2 11446 } 11447fi # as_fn_append 11448 11449# as_fn_arith ARG... 11450# ------------------ 11451# Perform arithmetic evaluation on the ARGs, and store the result in the 11452# global $as_val. Take advantage of shells that can avoid forks. The arguments 11453# must be portable across $(()) and expr. 11454if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11455 eval 'as_fn_arith () 11456 { 11457 as_val=$(( $* )) 11458 }' 11459else 11460 as_fn_arith () 11461 { 11462 as_val=`expr "$@" || test $? -eq 1` 11463 } 11464fi # as_fn_arith 11465 11466 11467if expr a : '\(a\)' >/dev/null 2>&1 && 11468 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11469 as_expr=expr 11470else 11471 as_expr=false 11472fi 11473 11474if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11475 as_basename=basename 11476else 11477 as_basename=false 11478fi 11479 11480if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11481 as_dirname=dirname 11482else 11483 as_dirname=false 11484fi 11485 11486as_me=`$as_basename -- "$0" || 11487$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11488 X"$0" : 'X\(//\)$' \| \ 11489 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11490$as_echo X/"$0" | 11491 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11492 s//\1/ 11493 q 11494 } 11495 /^X\/\(\/\/\)$/{ 11496 s//\1/ 11497 q 11498 } 11499 /^X\/\(\/\).*/{ 11500 s//\1/ 11501 q 11502 } 11503 s/.*/./; q'` 11504 11505# Avoid depending upon Character Ranges. 11506as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11507as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11508as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11509as_cr_digits='0123456789' 11510as_cr_alnum=$as_cr_Letters$as_cr_digits 11511 11512ECHO_C= ECHO_N= ECHO_T= 11513case `echo -n x` in #((((( 11514-n*) 11515 case `echo 'xy\c'` in 11516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11517 xy) ECHO_C='\c';; 11518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11519 ECHO_T=' ';; 11520 esac;; 11521*) 11522 ECHO_N='-n';; 11523esac 11524 11525rm -f conf$$ conf$$.exe conf$$.file 11526if test -d conf$$.dir; then 11527 rm -f conf$$.dir/conf$$.file 11528else 11529 rm -f conf$$.dir 11530 mkdir conf$$.dir 2>/dev/null 11531fi 11532if (echo >conf$$.file) 2>/dev/null; then 11533 if ln -s conf$$.file conf$$ 2>/dev/null; then 11534 as_ln_s='ln -s' 11535 # ... but there are two gotchas: 11536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11538 # In both cases, we have to default to `cp -p'. 11539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11540 as_ln_s='cp -p' 11541 elif ln conf$$.file conf$$ 2>/dev/null; then 11542 as_ln_s=ln 11543 else 11544 as_ln_s='cp -p' 11545 fi 11546else 11547 as_ln_s='cp -p' 11548fi 11549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11550rmdir conf$$.dir 2>/dev/null 11551 11552 11553# as_fn_mkdir_p 11554# ------------- 11555# Create "$as_dir" as a directory, including parents if necessary. 11556as_fn_mkdir_p () 11557{ 11558 11559 case $as_dir in #( 11560 -*) as_dir=./$as_dir;; 11561 esac 11562 test -d "$as_dir" || eval $as_mkdir_p || { 11563 as_dirs= 11564 while :; do 11565 case $as_dir in #( 11566 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11567 *) as_qdir=$as_dir;; 11568 esac 11569 as_dirs="'$as_qdir' $as_dirs" 11570 as_dir=`$as_dirname -- "$as_dir" || 11571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11572 X"$as_dir" : 'X\(//\)[^/]' \| \ 11573 X"$as_dir" : 'X\(//\)$' \| \ 11574 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11575$as_echo X"$as_dir" | 11576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11577 s//\1/ 11578 q 11579 } 11580 /^X\(\/\/\)[^/].*/{ 11581 s//\1/ 11582 q 11583 } 11584 /^X\(\/\/\)$/{ 11585 s//\1/ 11586 q 11587 } 11588 /^X\(\/\).*/{ 11589 s//\1/ 11590 q 11591 } 11592 s/.*/./; q'` 11593 test -d "$as_dir" && break 11594 done 11595 test -z "$as_dirs" || eval "mkdir $as_dirs" 11596 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11597 11598 11599} # as_fn_mkdir_p 11600if mkdir -p . 2>/dev/null; then 11601 as_mkdir_p='mkdir -p "$as_dir"' 11602else 11603 test -d ./-p && rmdir ./-p 11604 as_mkdir_p=false 11605fi 11606 11607if test -x / >/dev/null 2>&1; then 11608 as_test_x='test -x' 11609else 11610 if ls -dL / >/dev/null 2>&1; then 11611 as_ls_L_option=L 11612 else 11613 as_ls_L_option= 11614 fi 11615 as_test_x=' 11616 eval sh -c '\'' 11617 if test -d "$1"; then 11618 test -d "$1/."; 11619 else 11620 case $1 in #( 11621 -*)set "./$1";; 11622 esac; 11623 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11624 ???[sx]*):;;*)false;;esac;fi 11625 '\'' sh 11626 ' 11627fi 11628as_executable_p=$as_test_x 11629 11630# Sed expression to map a string onto a valid CPP name. 11631as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11632 11633# Sed expression to map a string onto a valid variable name. 11634as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11635 11636 11637exec 6>&1 11638## ----------------------------------- ## 11639## Main body of $CONFIG_STATUS script. ## 11640## ----------------------------------- ## 11641_ASEOF 11642test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11643 11644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11645# Save the log message, to keep $0 and so on meaningful, and to 11646# report actual input values of CONFIG_FILES etc. instead of their 11647# values after options handling. 11648ac_log=" 11649This file was extended by libmpd $as_me 11.8.17, which was 11650generated by GNU Autoconf 2.67. Invocation command line was 11651 11652 CONFIG_FILES = $CONFIG_FILES 11653 CONFIG_HEADERS = $CONFIG_HEADERS 11654 CONFIG_LINKS = $CONFIG_LINKS 11655 CONFIG_COMMANDS = $CONFIG_COMMANDS 11656 $ $0 $@ 11657 11658on `(hostname || uname -n) 2>/dev/null | sed 1q` 11659" 11660 11661_ACEOF 11662 11663case $ac_config_files in *" 11664"*) set x $ac_config_files; shift; ac_config_files=$*;; 11665esac 11666 11667case $ac_config_headers in *" 11668"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11669esac 11670 11671 11672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11673# Files that config.status was made for. 11674config_files="$ac_config_files" 11675config_headers="$ac_config_headers" 11676config_commands="$ac_config_commands" 11677 11678_ACEOF 11679 11680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11681ac_cs_usage="\ 11682\`$as_me' instantiates files and other configuration actions 11683from templates according to the current configuration. Unless the files 11684and actions are specified as TAGs, all are instantiated by default. 11685 11686Usage: $0 [OPTION]... [TAG]... 11687 11688 -h, --help print this help, then exit 11689 -V, --version print version number and configuration settings, then exit 11690 --config print configuration, then exit 11691 -q, --quiet, --silent 11692 do not print progress messages 11693 -d, --debug don't remove temporary files 11694 --recheck update $as_me by reconfiguring in the same conditions 11695 --file=FILE[:TEMPLATE] 11696 instantiate the configuration file FILE 11697 --header=FILE[:TEMPLATE] 11698 instantiate the configuration header FILE 11699 11700Configuration files: 11701$config_files 11702 11703Configuration headers: 11704$config_headers 11705 11706Configuration commands: 11707$config_commands 11708 11709Report bugs to <qball@sarine.nl>." 11710 11711_ACEOF 11712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11713ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11714ac_cs_version="\\ 11715libmpd config.status 11.8.17 11716configured by $0, generated by GNU Autoconf 2.67, 11717 with options \\"\$ac_cs_config\\" 11718 11719Copyright (C) 2010 Free Software Foundation, Inc. 11720This config.status script is free software; the Free Software Foundation 11721gives unlimited permission to copy, distribute and modify it." 11722 11723ac_pwd='$ac_pwd' 11724srcdir='$srcdir' 11725INSTALL='$INSTALL' 11726MKDIR_P='$MKDIR_P' 11727AWK='$AWK' 11728test -n "\$AWK" || AWK=awk 11729_ACEOF 11730 11731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11732# The default lists apply if the user does not specify any file. 11733ac_need_defaults=: 11734while test $# != 0 11735do 11736 case $1 in 11737 --*=?*) 11738 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11740 ac_shift=: 11741 ;; 11742 --*=) 11743 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11744 ac_optarg= 11745 ac_shift=: 11746 ;; 11747 *) 11748 ac_option=$1 11749 ac_optarg=$2 11750 ac_shift=shift 11751 ;; 11752 esac 11753 11754 case $ac_option in 11755 # Handling of the options. 11756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11757 ac_cs_recheck=: ;; 11758 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11759 $as_echo "$ac_cs_version"; exit ;; 11760 --config | --confi | --conf | --con | --co | --c ) 11761 $as_echo "$ac_cs_config"; exit ;; 11762 --debug | --debu | --deb | --de | --d | -d ) 11763 debug=: ;; 11764 --file | --fil | --fi | --f ) 11765 $ac_shift 11766 case $ac_optarg in 11767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11768 '') as_fn_error $? "missing file argument" ;; 11769 esac 11770 as_fn_append CONFIG_FILES " '$ac_optarg'" 11771 ac_need_defaults=false;; 11772 --header | --heade | --head | --hea ) 11773 $ac_shift 11774 case $ac_optarg in 11775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11776 esac 11777 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11778 ac_need_defaults=false;; 11779 --he | --h) 11780 # Conflict between --help and --header 11781 as_fn_error $? "ambiguous option: \`$1' 11782Try \`$0 --help' for more information.";; 11783 --help | --hel | -h ) 11784 $as_echo "$ac_cs_usage"; exit ;; 11785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11786 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11787 ac_cs_silent=: ;; 11788 11789 # This is an error. 11790 -*) as_fn_error $? "unrecognized option: \`$1' 11791Try \`$0 --help' for more information." ;; 11792 11793 *) as_fn_append ac_config_targets " $1" 11794 ac_need_defaults=false ;; 11795 11796 esac 11797 shift 11798done 11799 11800ac_configure_extra_args= 11801 11802if $ac_cs_silent; then 11803 exec 6>/dev/null 11804 ac_configure_extra_args="$ac_configure_extra_args --silent" 11805fi 11806 11807_ACEOF 11808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11809if \$ac_cs_recheck; then 11810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11811 shift 11812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11813 CONFIG_SHELL='$SHELL' 11814 export CONFIG_SHELL 11815 exec "\$@" 11816fi 11817 11818_ACEOF 11819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11820exec 5>>config.log 11821{ 11822 echo 11823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11824## Running $as_me. ## 11825_ASBOX 11826 $as_echo "$ac_log" 11827} >&5 11828 11829_ACEOF 11830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11831# 11832# INIT-COMMANDS 11833# 11834AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11835 11836 11837# The HP-UX ksh and POSIX shell print the target directory to stdout 11838# if CDPATH is set. 11839(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11840 11841sed_quote_subst='$sed_quote_subst' 11842double_quote_subst='$double_quote_subst' 11843delay_variable_subst='$delay_variable_subst' 11844AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 11845DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 11846OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 11847macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 11848macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 11849enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 11850enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 11851pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 11852enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 11853host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 11854host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 11855host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 11856build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 11857build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 11858build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 11859SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 11860Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 11861GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 11862EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 11863FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 11864LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 11865NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 11866LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 11867max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 11868ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 11869exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 11870lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 11871lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 11872lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 11873reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 11874reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11875deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 11876file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 11877AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 11878AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 11879STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 11880RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 11881old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11882old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11883old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11884CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 11885CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 11886compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 11887GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 11888lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 11889lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 11890lt_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"`' 11891lt_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"`' 11892objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 11893SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 11894ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 11895MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 11896lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 11897lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 11898lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 11899lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 11900lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 11901need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 11902DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 11903NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 11904LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 11905OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 11906OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 11907libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 11908shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11909extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11910archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 11911enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 11912export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11913whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11914compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 11915old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11916old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11917archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11918archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11919module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11920module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11921with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 11922allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 11923no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 11924hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 11925hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 11926hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 11927hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 11928hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 11929hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 11930hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11931hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 11932inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 11933link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 11934fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 11935always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 11936export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11937exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 11938include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 11939prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11940file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 11941variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 11942need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 11943need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 11944version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 11945runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11946shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 11947shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 11948libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 11949library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 11950soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 11951postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11952postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11953finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 11954finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 11955hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 11956sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 11957sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 11958hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 11959enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 11960enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 11961enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 11962old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 11963striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 11964 11965LTCC='$LTCC' 11966LTCFLAGS='$LTCFLAGS' 11967compiler='$compiler_DEFAULT' 11968 11969# Quote evaled strings. 11970for var in SED \ 11971GREP \ 11972EGREP \ 11973FGREP \ 11974LD \ 11975NM \ 11976LN_S \ 11977lt_SP2NL \ 11978lt_NL2SP \ 11979reload_flag \ 11980deplibs_check_method \ 11981file_magic_cmd \ 11982AR \ 11983AR_FLAGS \ 11984STRIP \ 11985RANLIB \ 11986CC \ 11987CFLAGS \ 11988compiler \ 11989lt_cv_sys_global_symbol_pipe \ 11990lt_cv_sys_global_symbol_to_cdecl \ 11991lt_cv_sys_global_symbol_to_c_name_address \ 11992lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 11993SHELL \ 11994ECHO \ 11995lt_prog_compiler_no_builtin_flag \ 11996lt_prog_compiler_wl \ 11997lt_prog_compiler_pic \ 11998lt_prog_compiler_static \ 11999lt_cv_prog_compiler_c_o \ 12000need_locks \ 12001DSYMUTIL \ 12002NMEDIT \ 12003LIPO \ 12004OTOOL \ 12005OTOOL64 \ 12006shrext_cmds \ 12007export_dynamic_flag_spec \ 12008whole_archive_flag_spec \ 12009compiler_needs_object \ 12010with_gnu_ld \ 12011allow_undefined_flag \ 12012no_undefined_flag \ 12013hardcode_libdir_flag_spec \ 12014hardcode_libdir_flag_spec_ld \ 12015hardcode_libdir_separator \ 12016fix_srcfile_path \ 12017exclude_expsyms \ 12018include_expsyms \ 12019file_list_spec \ 12020variables_saved_for_relink \ 12021libname_spec \ 12022library_names_spec \ 12023soname_spec \ 12024finish_eval \ 12025old_striplib \ 12026striplib; do 12027 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12028 *[\\\\\\\`\\"\\\$]*) 12029 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12030 ;; 12031 *) 12032 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12033 ;; 12034 esac 12035done 12036 12037# Double-quote double-evaled strings. 12038for var in reload_cmds \ 12039old_postinstall_cmds \ 12040old_postuninstall_cmds \ 12041old_archive_cmds \ 12042extract_expsyms_cmds \ 12043old_archive_from_new_cmds \ 12044old_archive_from_expsyms_cmds \ 12045archive_cmds \ 12046archive_expsym_cmds \ 12047module_cmds \ 12048module_expsym_cmds \ 12049export_symbols_cmds \ 12050prelink_cmds \ 12051postinstall_cmds \ 12052postuninstall_cmds \ 12053finish_cmds \ 12054sys_lib_search_path_spec \ 12055sys_lib_dlsearch_path_spec; do 12056 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12057 *[\\\\\\\`\\"\\\$]*) 12058 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12059 ;; 12060 *) 12061 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12062 ;; 12063 esac 12064done 12065 12066# Fix-up fallback echo if it was mangled by the above quoting rules. 12067case \$lt_ECHO in 12068*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12069 ;; 12070esac 12071 12072ac_aux_dir='$ac_aux_dir' 12073xsi_shell='$xsi_shell' 12074lt_shell_append='$lt_shell_append' 12075 12076# See if we are running on zsh, and set the options which allow our 12077# commands through without removal of \ escapes INIT. 12078if test -n "\${ZSH_VERSION+set}" ; then 12079 setopt NO_GLOB_SUBST 12080fi 12081 12082 12083 PACKAGE='$PACKAGE' 12084 VERSION='$VERSION' 12085 TIMESTAMP='$TIMESTAMP' 12086 RM='$RM' 12087 ofile='$ofile' 12088 12089 12090 12091 12092_ACEOF 12093 12094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12095 12096# Handling of arguments. 12097for ac_config_target in $ac_config_targets 12098do 12099 case $ac_config_target in 12100 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12101 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12102 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12103 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12104 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12105 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12106 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;; 12107 "example/testcase/Makefile") CONFIG_FILES="$CONFIG_FILES example/testcase/Makefile" ;; 12108 "libmpd.pc") CONFIG_FILES="$CONFIG_FILES libmpd.pc" ;; 12109 "src/libmpd-version.h") CONFIG_FILES="$CONFIG_FILES src/libmpd-version.h" ;; 12110 "doc/libmpd.doxy") CONFIG_FILES="$CONFIG_FILES doc/libmpd.doxy" ;; 12111 12112 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 12113 esac 12114done 12115 12116 12117# If the user did not use the arguments to specify the items to instantiate, 12118# then the envvar interface is used. Set only those that are not. 12119# We use the long form for the default assignment because of an extremely 12120# bizarre bug on SunOS 4.1.3. 12121if $ac_need_defaults; then 12122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12124 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12125fi 12126 12127# Have a temporary directory for convenience. Make it in the build tree 12128# simply because there is no reason against having it here, and in addition, 12129# creating and moving files from /tmp can sometimes cause problems. 12130# Hook for its removal unless debugging. 12131# Note that there is a small window in which the directory will not be cleaned: 12132# after its creation but before its name has been assigned to `$tmp'. 12133$debug || 12134{ 12135 tmp= 12136 trap 'exit_status=$? 12137 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12138' 0 12139 trap 'as_fn_exit 1' 1 2 13 15 12140} 12141# Create a (secure) tmp directory for tmp files. 12142 12143{ 12144 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12145 test -n "$tmp" && test -d "$tmp" 12146} || 12147{ 12148 tmp=./conf$$-$RANDOM 12149 (umask 077 && mkdir "$tmp") 12150} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12151 12152# Set up the scripts for CONFIG_FILES section. 12153# No need to generate them if there are no CONFIG_FILES. 12154# This happens for instance with `./config.status config.h'. 12155if test -n "$CONFIG_FILES"; then 12156 12157 12158ac_cr=`echo X | tr X '\015'` 12159# On cygwin, bash can eat \r inside `` if the user requested igncr. 12160# But we know of no other shell where ac_cr would be empty at this 12161# point, so we can use a bashism as a fallback. 12162if test "x$ac_cr" = x; then 12163 eval ac_cr=\$\'\\r\' 12164fi 12165ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12166if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12167 ac_cs_awk_cr='\\r' 12168else 12169 ac_cs_awk_cr=$ac_cr 12170fi 12171 12172echo 'BEGIN {' >"$tmp/subs1.awk" && 12173_ACEOF 12174 12175 12176{ 12177 echo "cat >conf$$subs.awk <<_ACEOF" && 12178 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12179 echo "_ACEOF" 12180} >conf$$subs.sh || 12181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12182ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12183ac_delim='%!_!# ' 12184for ac_last_try in false false false false false :; do 12185 . ./conf$$subs.sh || 12186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12187 12188 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12189 if test $ac_delim_n = $ac_delim_num; then 12190 break 12191 elif $ac_last_try; then 12192 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12193 else 12194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12195 fi 12196done 12197rm -f conf$$subs.sh 12198 12199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12200cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12201_ACEOF 12202sed -n ' 12203h 12204s/^/S["/; s/!.*/"]=/ 12205p 12206g 12207s/^[^!]*!// 12208:repl 12209t repl 12210s/'"$ac_delim"'$// 12211t delim 12212:nl 12213h 12214s/\(.\{148\}\)..*/\1/ 12215t more1 12216s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12217p 12218n 12219b repl 12220:more1 12221s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12222p 12223g 12224s/.\{148\}// 12225t nl 12226:delim 12227h 12228s/\(.\{148\}\)..*/\1/ 12229t more2 12230s/["\\]/\\&/g; s/^/"/; s/$/"/ 12231p 12232b 12233:more2 12234s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12235p 12236g 12237s/.\{148\}// 12238t delim 12239' <conf$$subs.awk | sed ' 12240/^[^""]/{ 12241 N 12242 s/\n// 12243} 12244' >>$CONFIG_STATUS || ac_write_fail=1 12245rm -f conf$$subs.awk 12246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12247_ACAWK 12248cat >>"\$tmp/subs1.awk" <<_ACAWK && 12249 for (key in S) S_is_set[key] = 1 12250 FS = "" 12251 12252} 12253{ 12254 line = $ 0 12255 nfields = split(line, field, "@") 12256 substed = 0 12257 len = length(field[1]) 12258 for (i = 2; i < nfields; i++) { 12259 key = field[i] 12260 keylen = length(key) 12261 if (S_is_set[key]) { 12262 value = S[key] 12263 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12264 len += length(value) + length(field[++i]) 12265 substed = 1 12266 } else 12267 len += 1 + keylen 12268 } 12269 12270 print line 12271} 12272 12273_ACAWK 12274_ACEOF 12275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12276if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12278else 12279 cat 12280fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12281 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12282_ACEOF 12283 12284# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12285# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12286# trailing colons and then remove the whole line if VPATH becomes empty 12287# (actually we leave an empty line to preserve line numbers). 12288if test "x$srcdir" = x.; then 12289 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12290h 12291s/// 12292s/^/:/ 12293s/[ ]*$/:/ 12294s/:\$(srcdir):/:/g 12295s/:\${srcdir}:/:/g 12296s/:@srcdir@:/:/g 12297s/^:*// 12298s/:*$// 12299x 12300s/\(=[ ]*\).*/\1/ 12301G 12302s/\n// 12303s/^[^=]*=[ ]*$// 12304}' 12305fi 12306 12307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12308fi # test -n "$CONFIG_FILES" 12309 12310# Set up the scripts for CONFIG_HEADERS section. 12311# No need to generate them if there are no CONFIG_HEADERS. 12312# This happens for instance with `./config.status Makefile'. 12313if test -n "$CONFIG_HEADERS"; then 12314cat >"$tmp/defines.awk" <<\_ACAWK || 12315BEGIN { 12316_ACEOF 12317 12318# Transform confdefs.h into an awk script `defines.awk', embedded as 12319# here-document in config.status, that substitutes the proper values into 12320# config.h.in to produce config.h. 12321 12322# Create a delimiter string that does not exist in confdefs.h, to ease 12323# handling of long lines. 12324ac_delim='%!_!# ' 12325for ac_last_try in false false :; do 12326 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12327 if test -z "$ac_t"; then 12328 break 12329 elif $ac_last_try; then 12330 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12331 else 12332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12333 fi 12334done 12335 12336# For the awk script, D is an array of macro values keyed by name, 12337# likewise P contains macro parameters if any. Preserve backslash 12338# newline sequences. 12339 12340ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12341sed -n ' 12342s/.\{148\}/&'"$ac_delim"'/g 12343t rset 12344:rset 12345s/^[ ]*#[ ]*define[ ][ ]*/ / 12346t def 12347d 12348:def 12349s/\\$// 12350t bsnl 12351s/["\\]/\\&/g 12352s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12353D["\1"]=" \3"/p 12354s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12355d 12356:bsnl 12357s/["\\]/\\&/g 12358s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12359D["\1"]=" \3\\\\\\n"\\/p 12360t cont 12361s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12362t cont 12363d 12364:cont 12365n 12366s/.\{148\}/&'"$ac_delim"'/g 12367t clear 12368:clear 12369s/\\$// 12370t bsnlc 12371s/["\\]/\\&/g; s/^/"/; s/$/"/p 12372d 12373:bsnlc 12374s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12375b cont 12376' <confdefs.h | sed ' 12377s/'"$ac_delim"'/"\\\ 12378"/g' >>$CONFIG_STATUS || ac_write_fail=1 12379 12380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12381 for (key in D) D_is_set[key] = 1 12382 FS = "" 12383} 12384/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12385 line = \$ 0 12386 split(line, arg, " ") 12387 if (arg[1] == "#") { 12388 defundef = arg[2] 12389 mac1 = arg[3] 12390 } else { 12391 defundef = substr(arg[1], 2) 12392 mac1 = arg[2] 12393 } 12394 split(mac1, mac2, "(") #) 12395 macro = mac2[1] 12396 prefix = substr(line, 1, index(line, defundef) - 1) 12397 if (D_is_set[macro]) { 12398 # Preserve the white space surrounding the "#". 12399 print prefix "define", macro P[macro] D[macro] 12400 next 12401 } else { 12402 # Replace #undef with comments. This is necessary, for example, 12403 # in the case of _POSIX_SOURCE, which is predefined and required 12404 # on some systems where configure will not decide to define it. 12405 if (defundef == "undef") { 12406 print "/*", prefix defundef, macro, "*/" 12407 next 12408 } 12409 } 12410} 12411{ print } 12412_ACAWK 12413_ACEOF 12414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12415 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12416fi # test -n "$CONFIG_HEADERS" 12417 12418 12419eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12420shift 12421for ac_tag 12422do 12423 case $ac_tag in 12424 :[FHLC]) ac_mode=$ac_tag; continue;; 12425 esac 12426 case $ac_mode$ac_tag in 12427 :[FHL]*:*);; 12428 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 12429 :[FH]-) ac_tag=-:-;; 12430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12431 esac 12432 ac_save_IFS=$IFS 12433 IFS=: 12434 set x $ac_tag 12435 IFS=$ac_save_IFS 12436 shift 12437 ac_file=$1 12438 shift 12439 12440 case $ac_mode in 12441 :L) ac_source=$1;; 12442 :[FH]) 12443 ac_file_inputs= 12444 for ac_f 12445 do 12446 case $ac_f in 12447 -) ac_f="$tmp/stdin";; 12448 *) # Look for the file first in the build tree, then in the source tree 12449 # (if the path is not absolute). The absolute path cannot be DOS-style, 12450 # because $ac_f cannot contain `:'. 12451 test -f "$ac_f" || 12452 case $ac_f in 12453 [\\/$]*) false;; 12454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12455 esac || 12456 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 12457 esac 12458 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12459 as_fn_append ac_file_inputs " '$ac_f'" 12460 done 12461 12462 # Let's still pretend it is `configure' which instantiates (i.e., don't 12463 # use $as_me), people would be surprised to read: 12464 # /* config.h. Generated by config.status. */ 12465 configure_input='Generated from '` 12466 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12467 `' by configure.' 12468 if test x"$ac_file" != x-; then 12469 configure_input="$ac_file. $configure_input" 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12471$as_echo "$as_me: creating $ac_file" >&6;} 12472 fi 12473 # Neutralize special characters interpreted by sed in replacement strings. 12474 case $configure_input in #( 12475 *\&* | *\|* | *\\* ) 12476 ac_sed_conf_input=`$as_echo "$configure_input" | 12477 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12478 *) ac_sed_conf_input=$configure_input;; 12479 esac 12480 12481 case $ac_tag in 12482 *:-:* | *:-) cat >"$tmp/stdin" \ 12483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12484 esac 12485 ;; 12486 esac 12487 12488 ac_dir=`$as_dirname -- "$ac_file" || 12489$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12490 X"$ac_file" : 'X\(//\)[^/]' \| \ 12491 X"$ac_file" : 'X\(//\)$' \| \ 12492 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12493$as_echo X"$ac_file" | 12494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12495 s//\1/ 12496 q 12497 } 12498 /^X\(\/\/\)[^/].*/{ 12499 s//\1/ 12500 q 12501 } 12502 /^X\(\/\/\)$/{ 12503 s//\1/ 12504 q 12505 } 12506 /^X\(\/\).*/{ 12507 s//\1/ 12508 q 12509 } 12510 s/.*/./; q'` 12511 as_dir="$ac_dir"; as_fn_mkdir_p 12512 ac_builddir=. 12513 12514case "$ac_dir" in 12515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12516*) 12517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12518 # A ".." for each directory in $ac_dir_suffix. 12519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12520 case $ac_top_builddir_sub in 12521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12523 esac ;; 12524esac 12525ac_abs_top_builddir=$ac_pwd 12526ac_abs_builddir=$ac_pwd$ac_dir_suffix 12527# for backward compatibility: 12528ac_top_builddir=$ac_top_build_prefix 12529 12530case $srcdir in 12531 .) # We are building in place. 12532 ac_srcdir=. 12533 ac_top_srcdir=$ac_top_builddir_sub 12534 ac_abs_top_srcdir=$ac_pwd ;; 12535 [\\/]* | ?:[\\/]* ) # Absolute name. 12536 ac_srcdir=$srcdir$ac_dir_suffix; 12537 ac_top_srcdir=$srcdir 12538 ac_abs_top_srcdir=$srcdir ;; 12539 *) # Relative name. 12540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12541 ac_top_srcdir=$ac_top_build_prefix$srcdir 12542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12543esac 12544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12545 12546 12547 case $ac_mode in 12548 :F) 12549 # 12550 # CONFIG_FILE 12551 # 12552 12553 case $INSTALL in 12554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12556 esac 12557 ac_MKDIR_P=$MKDIR_P 12558 case $MKDIR_P in 12559 [\\/$]* | ?:[\\/]* ) ;; 12560 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12561 esac 12562_ACEOF 12563 12564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12565# If the template does not know about datarootdir, expand it. 12566# FIXME: This hack should be removed a few years after 2.60. 12567ac_datarootdir_hack=; ac_datarootdir_seen= 12568ac_sed_dataroot=' 12569/datarootdir/ { 12570 p 12571 q 12572} 12573/@datadir@/p 12574/@docdir@/p 12575/@infodir@/p 12576/@localedir@/p 12577/@mandir@/p' 12578case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12579*datarootdir*) ac_datarootdir_seen=yes;; 12580*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12582$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12583_ACEOF 12584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12585 ac_datarootdir_hack=' 12586 s&@datadir@&$datadir&g 12587 s&@docdir@&$docdir&g 12588 s&@infodir@&$infodir&g 12589 s&@localedir@&$localedir&g 12590 s&@mandir@&$mandir&g 12591 s&\\\${datarootdir}&$datarootdir&g' ;; 12592esac 12593_ACEOF 12594 12595# Neutralize VPATH when `$srcdir' = `.'. 12596# Shell code in configure.ac might set extrasub. 12597# FIXME: do we really want to maintain this feature? 12598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12599ac_sed_extra="$ac_vpsub 12600$extrasub 12601_ACEOF 12602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12603:t 12604/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12605s|@configure_input@|$ac_sed_conf_input|;t t 12606s&@top_builddir@&$ac_top_builddir_sub&;t t 12607s&@top_build_prefix@&$ac_top_build_prefix&;t t 12608s&@srcdir@&$ac_srcdir&;t t 12609s&@abs_srcdir@&$ac_abs_srcdir&;t t 12610s&@top_srcdir@&$ac_top_srcdir&;t t 12611s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12612s&@builddir@&$ac_builddir&;t t 12613s&@abs_builddir@&$ac_abs_builddir&;t t 12614s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12615s&@INSTALL@&$ac_INSTALL&;t t 12616s&@MKDIR_P@&$ac_MKDIR_P&;t t 12617$ac_datarootdir_hack 12618" 12619eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12621 12622test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12626which seems to be undefined. Please make sure it is defined" >&5 12627$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12628which seems to be undefined. Please make sure it is defined" >&2;} 12629 12630 rm -f "$tmp/stdin" 12631 case $ac_file in 12632 -) cat "$tmp/out" && rm -f "$tmp/out";; 12633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12634 esac \ 12635 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12636 ;; 12637 :H) 12638 # 12639 # CONFIG_HEADER 12640 # 12641 if test x"$ac_file" != x-; then 12642 { 12643 $as_echo "/* $configure_input */" \ 12644 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12645 } >"$tmp/config.h" \ 12646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12647 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12649$as_echo "$as_me: $ac_file is unchanged" >&6;} 12650 else 12651 rm -f "$ac_file" 12652 mv "$tmp/config.h" "$ac_file" \ 12653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12654 fi 12655 else 12656 $as_echo "/* $configure_input */" \ 12657 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12658 || as_fn_error $? "could not create -" "$LINENO" 5 12659 fi 12660# Compute "$ac_file"'s index in $config_headers. 12661_am_arg="$ac_file" 12662_am_stamp_count=1 12663for _am_header in $config_headers :; do 12664 case $_am_header in 12665 $_am_arg | $_am_arg:* ) 12666 break ;; 12667 * ) 12668 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12669 esac 12670done 12671echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12672$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12673 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12674 X"$_am_arg" : 'X\(//\)$' \| \ 12675 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12676$as_echo X"$_am_arg" | 12677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12678 s//\1/ 12679 q 12680 } 12681 /^X\(\/\/\)[^/].*/{ 12682 s//\1/ 12683 q 12684 } 12685 /^X\(\/\/\)$/{ 12686 s//\1/ 12687 q 12688 } 12689 /^X\(\/\).*/{ 12690 s//\1/ 12691 q 12692 } 12693 s/.*/./; q'`/stamp-h$_am_stamp_count 12694 ;; 12695 12696 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12697$as_echo "$as_me: executing $ac_file commands" >&6;} 12698 ;; 12699 esac 12700 12701 12702 case $ac_file$ac_mode in 12703 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12704 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12705 # are listed without --file. Let's play safe and only enable the eval 12706 # if we detect the quoting. 12707 case $CONFIG_FILES in 12708 *\'*) eval set x "$CONFIG_FILES" ;; 12709 *) set x $CONFIG_FILES ;; 12710 esac 12711 shift 12712 for mf 12713 do 12714 # Strip MF so we end up with the name of the file. 12715 mf=`echo "$mf" | sed -e 's/:.*$//'` 12716 # Check whether this is an Automake generated Makefile or not. 12717 # We used to match only the files named `Makefile.in', but 12718 # some people rename them; so instead we look at the file content. 12719 # Grep'ing the first line is not enough: some people post-process 12720 # each Makefile.in and add a new line on top of each file to say so. 12721 # Grep'ing the whole file is not good either: AIX grep has a line 12722 # limit of 2048, but all sed's we know have understand at least 4000. 12723 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12724 dirpart=`$as_dirname -- "$mf" || 12725$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12726 X"$mf" : 'X\(//\)[^/]' \| \ 12727 X"$mf" : 'X\(//\)$' \| \ 12728 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12729$as_echo X"$mf" | 12730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12731 s//\1/ 12732 q 12733 } 12734 /^X\(\/\/\)[^/].*/{ 12735 s//\1/ 12736 q 12737 } 12738 /^X\(\/\/\)$/{ 12739 s//\1/ 12740 q 12741 } 12742 /^X\(\/\).*/{ 12743 s//\1/ 12744 q 12745 } 12746 s/.*/./; q'` 12747 else 12748 continue 12749 fi 12750 # Extract the definition of DEPDIR, am__include, and am__quote 12751 # from the Makefile without running `make'. 12752 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12753 test -z "$DEPDIR" && continue 12754 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12755 test -z "am__include" && continue 12756 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12757 # When using ansi2knr, U may be empty or an underscore; expand it 12758 U=`sed -n 's/^U = //p' < "$mf"` 12759 # Find all dependency output files, they are included files with 12760 # $(DEPDIR) in their names. We invoke sed twice because it is the 12761 # simplest approach to changing $(DEPDIR) to its actual value in the 12762 # expansion. 12763 for file in `sed -n " 12764 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12766 # Make sure the directory exists. 12767 test -f "$dirpart/$file" && continue 12768 fdir=`$as_dirname -- "$file" || 12769$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12770 X"$file" : 'X\(//\)[^/]' \| \ 12771 X"$file" : 'X\(//\)$' \| \ 12772 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12773$as_echo X"$file" | 12774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12775 s//\1/ 12776 q 12777 } 12778 /^X\(\/\/\)[^/].*/{ 12779 s//\1/ 12780 q 12781 } 12782 /^X\(\/\/\)$/{ 12783 s//\1/ 12784 q 12785 } 12786 /^X\(\/\).*/{ 12787 s//\1/ 12788 q 12789 } 12790 s/.*/./; q'` 12791 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12792 # echo "creating $dirpart/$file" 12793 echo '# dummy' > "$dirpart/$file" 12794 done 12795 done 12796} 12797 ;; 12798 "libtool":C) 12799 12800 # See if we are running on zsh, and set the options which allow our 12801 # commands through without removal of \ escapes. 12802 if test -n "${ZSH_VERSION+set}" ; then 12803 setopt NO_GLOB_SUBST 12804 fi 12805 12806 cfgfile="${ofile}T" 12807 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 12808 $RM "$cfgfile" 12809 12810 cat <<_LT_EOF >> "$cfgfile" 12811#! $SHELL 12812 12813# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12814# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 12815# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12816# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12817# 12818# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 12819# 2006, 2007, 2008 Free Software Foundation, Inc. 12820# Written by Gordon Matzigkeit, 1996 12821# 12822# This file is part of GNU Libtool. 12823# 12824# GNU Libtool is free software; you can redistribute it and/or 12825# modify it under the terms of the GNU General Public License as 12826# published by the Free Software Foundation; either version 2 of 12827# the License, or (at your option) any later version. 12828# 12829# As a special exception to the GNU General Public License, 12830# if you distribute this file as part of a program or library that 12831# is built using GNU Libtool, you may include this file under the 12832# same distribution terms that you use for the rest of that program. 12833# 12834# GNU Libtool is distributed in the hope that it will be useful, 12835# but WITHOUT ANY WARRANTY; without even the implied warranty of 12836# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12837# GNU General Public License for more details. 12838# 12839# You should have received a copy of the GNU General Public License 12840# along with GNU Libtool; see the file COPYING. If not, a copy 12841# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 12842# obtained by writing to the Free Software Foundation, Inc., 12843# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12844 12845 12846# The names of the tagged configurations supported by this script. 12847available_tags="" 12848 12849# ### BEGIN LIBTOOL CONFIG 12850 12851# Assembler program. 12852AS=$AS 12853 12854# DLL creation program. 12855DLLTOOL=$DLLTOOL 12856 12857# Object dumper program. 12858OBJDUMP=$OBJDUMP 12859 12860# Which release of libtool.m4 was used? 12861macro_version=$macro_version 12862macro_revision=$macro_revision 12863 12864# Whether or not to build shared libraries. 12865build_libtool_libs=$enable_shared 12866 12867# Whether or not to build static libraries. 12868build_old_libs=$enable_static 12869 12870# What type of objects to build. 12871pic_mode=$pic_mode 12872 12873# Whether or not to optimize for fast installation. 12874fast_install=$enable_fast_install 12875 12876# The host system. 12877host_alias=$host_alias 12878host=$host 12879host_os=$host_os 12880 12881# The build system. 12882build_alias=$build_alias 12883build=$build 12884build_os=$build_os 12885 12886# A sed program that does not truncate output. 12887SED=$lt_SED 12888 12889# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12890Xsed="\$SED -e 1s/^X//" 12891 12892# A grep program that handles long lines. 12893GREP=$lt_GREP 12894 12895# An ERE matcher. 12896EGREP=$lt_EGREP 12897 12898# A literal string matcher. 12899FGREP=$lt_FGREP 12900 12901# A BSD- or MS-compatible name lister. 12902NM=$lt_NM 12903 12904# Whether we need soft or hard links. 12905LN_S=$lt_LN_S 12906 12907# What is the maximum length of a command? 12908max_cmd_len=$max_cmd_len 12909 12910# Object file suffix (normally "o"). 12911objext=$ac_objext 12912 12913# Executable file suffix (normally ""). 12914exeext=$exeext 12915 12916# whether the shell understands "unset". 12917lt_unset=$lt_unset 12918 12919# turn spaces into newlines. 12920SP2NL=$lt_lt_SP2NL 12921 12922# turn newlines into spaces. 12923NL2SP=$lt_lt_NL2SP 12924 12925# How to create reloadable object files. 12926reload_flag=$lt_reload_flag 12927reload_cmds=$lt_reload_cmds 12928 12929# Method to check whether dependent libraries are shared objects. 12930deplibs_check_method=$lt_deplibs_check_method 12931 12932# Command to use when deplibs_check_method == "file_magic". 12933file_magic_cmd=$lt_file_magic_cmd 12934 12935# The archiver. 12936AR=$lt_AR 12937AR_FLAGS=$lt_AR_FLAGS 12938 12939# A symbol stripping program. 12940STRIP=$lt_STRIP 12941 12942# Commands used to install an old-style archive. 12943RANLIB=$lt_RANLIB 12944old_postinstall_cmds=$lt_old_postinstall_cmds 12945old_postuninstall_cmds=$lt_old_postuninstall_cmds 12946 12947# A C compiler. 12948LTCC=$lt_CC 12949 12950# LTCC compiler flags. 12951LTCFLAGS=$lt_CFLAGS 12952 12953# Take the output of nm and produce a listing of raw symbols and C names. 12954global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12955 12956# Transform the output of nm in a proper C declaration. 12957global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12958 12959# Transform the output of nm in a C name address pair. 12960global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12961 12962# Transform the output of nm in a C name address pair when lib prefix is needed. 12963global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 12964 12965# The name of the directory that contains temporary libtool files. 12966objdir=$objdir 12967 12968# Shell to use when invoking shell scripts. 12969SHELL=$lt_SHELL 12970 12971# An echo program that does not interpret backslashes. 12972ECHO=$lt_ECHO 12973 12974# Used to examine libraries when file_magic_cmd begins with "file". 12975MAGIC_CMD=$MAGIC_CMD 12976 12977# Must we lock files when doing compilation? 12978need_locks=$lt_need_locks 12979 12980# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 12981DSYMUTIL=$lt_DSYMUTIL 12982 12983# Tool to change global to local symbols on Mac OS X. 12984NMEDIT=$lt_NMEDIT 12985 12986# Tool to manipulate fat objects and archives on Mac OS X. 12987LIPO=$lt_LIPO 12988 12989# ldd/readelf like tool for Mach-O binaries on Mac OS X. 12990OTOOL=$lt_OTOOL 12991 12992# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 12993OTOOL64=$lt_OTOOL64 12994 12995# Old archive suffix (normally "a"). 12996libext=$libext 12997 12998# Shared library suffix (normally ".so"). 12999shrext_cmds=$lt_shrext_cmds 13000 13001# The commands to extract the exported symbol list from a shared archive. 13002extract_expsyms_cmds=$lt_extract_expsyms_cmds 13003 13004# Variables whose values should be saved in libtool wrapper scripts and 13005# restored at link time. 13006variables_saved_for_relink=$lt_variables_saved_for_relink 13007 13008# Do we need the "lib" prefix for modules? 13009need_lib_prefix=$need_lib_prefix 13010 13011# Do we need a version for libraries? 13012need_version=$need_version 13013 13014# Library versioning type. 13015version_type=$version_type 13016 13017# Shared library runtime path variable. 13018runpath_var=$runpath_var 13019 13020# Shared library path variable. 13021shlibpath_var=$shlibpath_var 13022 13023# Is shlibpath searched before the hard-coded library search path? 13024shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13025 13026# Format of library name prefix. 13027libname_spec=$lt_libname_spec 13028 13029# List of archive names. First name is the real one, the rest are links. 13030# The last name is the one that the linker finds with -lNAME 13031library_names_spec=$lt_library_names_spec 13032 13033# The coded name of the library, if different from the real name. 13034soname_spec=$lt_soname_spec 13035 13036# Command to use after installation of a shared archive. 13037postinstall_cmds=$lt_postinstall_cmds 13038 13039# Command to use after uninstallation of a shared archive. 13040postuninstall_cmds=$lt_postuninstall_cmds 13041 13042# Commands used to finish a libtool library installation in a directory. 13043finish_cmds=$lt_finish_cmds 13044 13045# As "finish_cmds", except a single script fragment to be evaled but 13046# not shown. 13047finish_eval=$lt_finish_eval 13048 13049# Whether we should hardcode library paths into libraries. 13050hardcode_into_libs=$hardcode_into_libs 13051 13052# Compile-time system search path for libraries. 13053sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13054 13055# Run-time system search path for libraries. 13056sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13057 13058# Whether dlopen is supported. 13059dlopen_support=$enable_dlopen 13060 13061# Whether dlopen of programs is supported. 13062dlopen_self=$enable_dlopen_self 13063 13064# Whether dlopen of statically linked programs is supported. 13065dlopen_self_static=$enable_dlopen_self_static 13066 13067# Commands to strip libraries. 13068old_striplib=$lt_old_striplib 13069striplib=$lt_striplib 13070 13071 13072# The linker used to build libraries. 13073LD=$lt_LD 13074 13075# Commands used to build an old-style archive. 13076old_archive_cmds=$lt_old_archive_cmds 13077 13078# A language specific compiler. 13079CC=$lt_compiler 13080 13081# Is the compiler the GNU compiler? 13082with_gcc=$GCC 13083 13084# Compiler flag to turn off builtin functions. 13085no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13086 13087# How to pass a linker flag through the compiler. 13088wl=$lt_lt_prog_compiler_wl 13089 13090# Additional compiler flags for building library objects. 13091pic_flag=$lt_lt_prog_compiler_pic 13092 13093# Compiler flag to prevent dynamic linking. 13094link_static_flag=$lt_lt_prog_compiler_static 13095 13096# Does compiler simultaneously support -c and -o options? 13097compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13098 13099# Whether or not to add -lc for building shared libraries. 13100build_libtool_need_lc=$archive_cmds_need_lc 13101 13102# Whether or not to disallow shared libs when runtime libs are static. 13103allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13104 13105# Compiler flag to allow reflexive dlopens. 13106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13107 13108# Compiler flag to generate shared objects directly from archives. 13109whole_archive_flag_spec=$lt_whole_archive_flag_spec 13110 13111# Whether the compiler copes with passing no objects directly. 13112compiler_needs_object=$lt_compiler_needs_object 13113 13114# Create an old-style archive from a shared archive. 13115old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13116 13117# Create a temporary old-style archive to link instead of a shared archive. 13118old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13119 13120# Commands used to build a shared archive. 13121archive_cmds=$lt_archive_cmds 13122archive_expsym_cmds=$lt_archive_expsym_cmds 13123 13124# Commands used to build a loadable module if different from building 13125# a shared archive. 13126module_cmds=$lt_module_cmds 13127module_expsym_cmds=$lt_module_expsym_cmds 13128 13129# Whether we are building with GNU ld or not. 13130with_gnu_ld=$lt_with_gnu_ld 13131 13132# Flag that allows shared libraries with undefined symbols to be built. 13133allow_undefined_flag=$lt_allow_undefined_flag 13134 13135# Flag that enforces no undefined symbols. 13136no_undefined_flag=$lt_no_undefined_flag 13137 13138# Flag to hardcode \$libdir into a binary during linking. 13139# This must work even if \$libdir does not exist 13140hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13141 13142# If ld is used when linking, flag to hardcode \$libdir into a binary 13143# during linking. This must work even if \$libdir does not exist. 13144hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13145 13146# Whether we need a single "-rpath" flag with a separated argument. 13147hardcode_libdir_separator=$lt_hardcode_libdir_separator 13148 13149# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13150# DIR into the resulting binary. 13151hardcode_direct=$hardcode_direct 13152 13153# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13154# DIR into the resulting binary and the resulting library dependency is 13155# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13156# library is relocated. 13157hardcode_direct_absolute=$hardcode_direct_absolute 13158 13159# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13160# into the resulting binary. 13161hardcode_minus_L=$hardcode_minus_L 13162 13163# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13164# into the resulting binary. 13165hardcode_shlibpath_var=$hardcode_shlibpath_var 13166 13167# Set to "yes" if building a shared library automatically hardcodes DIR 13168# into the library and all subsequent libraries and executables linked 13169# against it. 13170hardcode_automatic=$hardcode_automatic 13171 13172# Set to yes if linker adds runtime paths of dependent libraries 13173# to runtime path list. 13174inherit_rpath=$inherit_rpath 13175 13176# Whether libtool must link a program against all its dependency libraries. 13177link_all_deplibs=$link_all_deplibs 13178 13179# Fix the shell variable \$srcfile for the compiler. 13180fix_srcfile_path=$lt_fix_srcfile_path 13181 13182# Set to "yes" if exported symbols are required. 13183always_export_symbols=$always_export_symbols 13184 13185# The commands to list exported symbols. 13186export_symbols_cmds=$lt_export_symbols_cmds 13187 13188# Symbols that should not be listed in the preloaded symbols. 13189exclude_expsyms=$lt_exclude_expsyms 13190 13191# Symbols that must always be exported. 13192include_expsyms=$lt_include_expsyms 13193 13194# Commands necessary for linking programs (against libraries) with templates. 13195prelink_cmds=$lt_prelink_cmds 13196 13197# Specify filename containing input files. 13198file_list_spec=$lt_file_list_spec 13199 13200# How to hardcode a shared library path into an executable. 13201hardcode_action=$hardcode_action 13202 13203# ### END LIBTOOL CONFIG 13204 13205_LT_EOF 13206 13207 case $host_os in 13208 aix3*) 13209 cat <<\_LT_EOF >> "$cfgfile" 13210# AIX sometimes has problems with the GCC collect2 program. For some 13211# reason, if we set the COLLECT_NAMES environment variable, the problems 13212# vanish in a puff of smoke. 13213if test "X${COLLECT_NAMES+set}" != Xset; then 13214 COLLECT_NAMES= 13215 export COLLECT_NAMES 13216fi 13217_LT_EOF 13218 ;; 13219 esac 13220 13221 13222ltmain="$ac_aux_dir/ltmain.sh" 13223 13224 13225 # We use sed instead of cat because bash on DJGPP gets confused if 13226 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13227 # text mode, it properly converts lines to CR/LF. This bash problem 13228 # is reportedly fixed, but why not run on old versions too? 13229 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13230 || (rm -f "$cfgfile"; exit 1) 13231 13232 case $xsi_shell in 13233 yes) 13234 cat << \_LT_EOF >> "$cfgfile" 13235 13236# func_dirname file append nondir_replacement 13237# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13238# otherwise set result to NONDIR_REPLACEMENT. 13239func_dirname () 13240{ 13241 case ${1} in 13242 */*) func_dirname_result="${1%/*}${2}" ;; 13243 * ) func_dirname_result="${3}" ;; 13244 esac 13245} 13246 13247# func_basename file 13248func_basename () 13249{ 13250 func_basename_result="${1##*/}" 13251} 13252 13253# func_dirname_and_basename file append nondir_replacement 13254# perform func_basename and func_dirname in a single function 13255# call: 13256# dirname: Compute the dirname of FILE. If nonempty, 13257# add APPEND to the result, otherwise set result 13258# to NONDIR_REPLACEMENT. 13259# value returned in "$func_dirname_result" 13260# basename: Compute filename of FILE. 13261# value retuned in "$func_basename_result" 13262# Implementation must be kept synchronized with func_dirname 13263# and func_basename. For efficiency, we do not delegate to 13264# those functions but instead duplicate the functionality here. 13265func_dirname_and_basename () 13266{ 13267 case ${1} in 13268 */*) func_dirname_result="${1%/*}${2}" ;; 13269 * ) func_dirname_result="${3}" ;; 13270 esac 13271 func_basename_result="${1##*/}" 13272} 13273 13274# func_stripname prefix suffix name 13275# strip PREFIX and SUFFIX off of NAME. 13276# PREFIX and SUFFIX must not contain globbing or regex special 13277# characters, hashes, percent signs, but SUFFIX may contain a leading 13278# dot (in which case that matches only a dot). 13279func_stripname () 13280{ 13281 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13282 # positional parameters, so assign one to ordinary parameter first. 13283 func_stripname_result=${3} 13284 func_stripname_result=${func_stripname_result#"${1}"} 13285 func_stripname_result=${func_stripname_result%"${2}"} 13286} 13287 13288# func_opt_split 13289func_opt_split () 13290{ 13291 func_opt_split_opt=${1%%=*} 13292 func_opt_split_arg=${1#*=} 13293} 13294 13295# func_lo2o object 13296func_lo2o () 13297{ 13298 case ${1} in 13299 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13300 *) func_lo2o_result=${1} ;; 13301 esac 13302} 13303 13304# func_xform libobj-or-source 13305func_xform () 13306{ 13307 func_xform_result=${1%.*}.lo 13308} 13309 13310# func_arith arithmetic-term... 13311func_arith () 13312{ 13313 func_arith_result=$(( $* )) 13314} 13315 13316# func_len string 13317# STRING may not start with a hyphen. 13318func_len () 13319{ 13320 func_len_result=${#1} 13321} 13322 13323_LT_EOF 13324 ;; 13325 *) # Bourne compatible functions. 13326 cat << \_LT_EOF >> "$cfgfile" 13327 13328# func_dirname file append nondir_replacement 13329# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13330# otherwise set result to NONDIR_REPLACEMENT. 13331func_dirname () 13332{ 13333 # Extract subdirectory from the argument. 13334 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 13335 if test "X$func_dirname_result" = "X${1}"; then 13336 func_dirname_result="${3}" 13337 else 13338 func_dirname_result="$func_dirname_result${2}" 13339 fi 13340} 13341 13342# func_basename file 13343func_basename () 13344{ 13345 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 13346} 13347 13348 13349# func_stripname prefix suffix name 13350# strip PREFIX and SUFFIX off of NAME. 13351# PREFIX and SUFFIX must not contain globbing or regex special 13352# characters, hashes, percent signs, but SUFFIX may contain a leading 13353# dot (in which case that matches only a dot). 13354# func_strip_suffix prefix name 13355func_stripname () 13356{ 13357 case ${2} in 13358 .*) func_stripname_result=`$ECHO "X${3}" \ 13359 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 13360 *) func_stripname_result=`$ECHO "X${3}" \ 13361 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 13362 esac 13363} 13364 13365# sed scripts: 13366my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13367my_sed_long_arg='1s/^-[^=]*=//' 13368 13369# func_opt_split 13370func_opt_split () 13371{ 13372 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 13373 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 13374} 13375 13376# func_lo2o object 13377func_lo2o () 13378{ 13379 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 13380} 13381 13382# func_xform libobj-or-source 13383func_xform () 13384{ 13385 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 13386} 13387 13388# func_arith arithmetic-term... 13389func_arith () 13390{ 13391 func_arith_result=`expr "$@"` 13392} 13393 13394# func_len string 13395# STRING may not start with a hyphen. 13396func_len () 13397{ 13398 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13399} 13400 13401_LT_EOF 13402esac 13403 13404case $lt_shell_append in 13405 yes) 13406 cat << \_LT_EOF >> "$cfgfile" 13407 13408# func_append var value 13409# Append VALUE to the end of shell variable VAR. 13410func_append () 13411{ 13412 eval "$1+=\$2" 13413} 13414_LT_EOF 13415 ;; 13416 *) 13417 cat << \_LT_EOF >> "$cfgfile" 13418 13419# func_append var value 13420# Append VALUE to the end of shell variable VAR. 13421func_append () 13422{ 13423 eval "$1=\$$1\$2" 13424} 13425 13426_LT_EOF 13427 ;; 13428 esac 13429 13430 13431 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13432 || (rm -f "$cfgfile"; exit 1) 13433 13434 mv -f "$cfgfile" "$ofile" || 13435 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13436 chmod +x "$ofile" 13437 13438 ;; 13439 13440 esac 13441done # for ac_tag 13442 13443 13444as_fn_exit 0 13445_ACEOF 13446ac_clean_files=$ac_clean_files_save 13447 13448test $ac_write_fail = 0 || 13449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13450 13451 13452# configure is writing to config.log, and then calls config.status. 13453# config.status does its own redirection, appending to config.log. 13454# Unfortunately, on DOS this fails, as config.log is still kept open 13455# by configure, so config.status won't be able to write to it; its 13456# output is simply discarded. So we exec the FD to /dev/null, 13457# effectively closing config.log, so it can be properly (re)opened and 13458# appended to by config.status. When coming back to configure, we 13459# need to make the FD available again. 13460if test "$no_create" != yes; then 13461 ac_cs_success=: 13462 ac_config_status_args= 13463 test "$silent" = yes && 13464 ac_config_status_args="$ac_config_status_args --quiet" 13465 exec 5>/dev/null 13466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13467 exec 5>>config.log 13468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13469 # would make configure fail if this is the last instruction. 13470 $ac_cs_success || as_fn_exit 1 13471fi 13472if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13474$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13475fi 13476 13477