1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for gmpc-magnatune 11.8.16. 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='gmpc-magnatune' 703PACKAGE_TARNAME='gmpc-magnatune' 704PACKAGE_VERSION='11.8.16' 705PACKAGE_STRING='gmpc-magnatune 11.8.16' 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 748LIBOBJS 749gmpcmagnatune_LIBS 750gmpcmagnatune_CFLAGS 751PKG_CONFIG_LIBDIR 752PKG_CONFIG_PATH 753PKG_CONFIG 754OTOOL64 755OTOOL 756LIPO 757NMEDIT 758DSYMUTIL 759lt_ECHO 760RANLIB 761AR 762OBJDUMP 763LN_S 764NM 765ac_ct_DUMPBIN 766DUMPBIN 767LD 768FGREP 769SED 770host_os 771host_vendor 772host_cpu 773host 774build_os 775build_vendor 776build_cpu 777build 778LIBTOOL 779MKINSTALLDIRS 780POSUB 781POFILES 782PO_IN_DATADIR_FALSE 783PO_IN_DATADIR_TRUE 784INTLLIBS 785INSTOBJEXT 786GMOFILES 787CATOBJEXT 788CATALOGS 789MSGFMT_OPTS 790EGREP 791GREP 792CPP 793GETTEXT_PACKAGE 794DATADIRNAME 795am__fastdepCC_FALSE 796am__fastdepCC_TRUE 797CCDEPMODE 798AMDEPBACKSLASH 799AMDEP_FALSE 800AMDEP_TRUE 801am__quote 802am__include 803DEPDIR 804OBJEXT 805EXEEXT 806ac_ct_CC 807CPPFLAGS 808LDFLAGS 809CFLAGS 810CC 811ALL_LINGUAS 812INTLTOOL_PERL 813GMSGFMT 814MSGFMT 815MSGMERGE 816XGETTEXT 817INTLTOOL_POLICY_RULE 818INTLTOOL_SERVICE_RULE 819INTLTOOL_THEME_RULE 820INTLTOOL_SCHEMAS_RULE 821INTLTOOL_CAVES_RULE 822INTLTOOL_XML_NOMERGE_RULE 823INTLTOOL_XML_RULE 824INTLTOOL_KBD_RULE 825INTLTOOL_XAM_RULE 826INTLTOOL_UI_RULE 827INTLTOOL_SOUNDLIST_RULE 828INTLTOOL_SHEET_RULE 829INTLTOOL_SERVER_RULE 830INTLTOOL_PONG_RULE 831INTLTOOL_OAF_RULE 832INTLTOOL_PROP_RULE 833INTLTOOL_KEYS_RULE 834INTLTOOL_DIRECTORY_RULE 835INTLTOOL_DESKTOP_RULE 836INTLTOOL_EXTRACT 837INTLTOOL_MERGE 838INTLTOOL_UPDATE 839USE_NLS 840am__untar 841am__tar 842AMTAR 843am__leading_dot 844SET_MAKE 845AWK 846mkdir_p 847MKDIR_P 848INSTALL_STRIP_PROGRAM 849STRIP 850install_sh 851MAKEINFO 852AUTOHEADER 853AUTOMAKE 854AUTOCONF 855ACLOCAL 856VERSION 857PACKAGE 858CYGPATH_W 859am__isrc 860INSTALL_DATA 861INSTALL_SCRIPT 862INSTALL_PROGRAM 863target_alias 864host_alias 865build_alias 866LIBS 867ECHO_T 868ECHO_N 869ECHO_C 870DEFS 871mandir 872localedir 873libdir 874psdir 875pdfdir 876dvidir 877htmldir 878infodir 879docdir 880oldincludedir 881includedir 882localstatedir 883sharedstatedir 884sysconfdir 885datadir 886datarootdir 887libexecdir 888sbindir 889bindir 890program_transform_name 891prefix 892exec_prefix 893PACKAGE_URL 894PACKAGE_BUGREPORT 895PACKAGE_STRING 896PACKAGE_VERSION 897PACKAGE_TARNAME 898PACKAGE_NAME 899PATH_SEPARATOR 900SHELL' 901ac_subst_files='' 902ac_user_opts=' 903enable_option_checking 904enable_nls 905enable_dependency_tracking 906enable_static 907enable_shared 908with_pic 909enable_fast_install 910with_gnu_ld 911enable_libtool_lock 912' 913 ac_precious_vars='build_alias 914host_alias 915target_alias 916CC 917CFLAGS 918LDFLAGS 919LIBS 920CPPFLAGS 921CPP 922PKG_CONFIG 923PKG_CONFIG_PATH 924PKG_CONFIG_LIBDIR 925gmpcmagnatune_CFLAGS 926gmpcmagnatune_LIBS' 927 928 929# Initialize some variables set by options. 930ac_init_help= 931ac_init_version=false 932ac_unrecognized_opts= 933ac_unrecognized_sep= 934# The variables have the same names as the options, with 935# dashes changed to underlines. 936cache_file=/dev/null 937exec_prefix=NONE 938no_create= 939no_recursion= 940prefix=NONE 941program_prefix=NONE 942program_suffix=NONE 943program_transform_name=s,x,x, 944silent= 945site= 946srcdir= 947verbose= 948x_includes=NONE 949x_libraries=NONE 950 951# Installation directory options. 952# These are left unexpanded so users can "make install exec_prefix=/foo" 953# and all the variables that are supposed to be based on exec_prefix 954# by default will actually change. 955# Use braces instead of parens because sh, perl, etc. also accept them. 956# (The list follows the same order as the GNU Coding Standards.) 957bindir='${exec_prefix}/bin' 958sbindir='${exec_prefix}/sbin' 959libexecdir='${exec_prefix}/libexec' 960datarootdir='${prefix}/share' 961datadir='${datarootdir}' 962sysconfdir='${prefix}/etc' 963sharedstatedir='${prefix}/com' 964localstatedir='${prefix}/var' 965includedir='${prefix}/include' 966oldincludedir='/usr/include' 967docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 968infodir='${datarootdir}/info' 969htmldir='${docdir}' 970dvidir='${docdir}' 971pdfdir='${docdir}' 972psdir='${docdir}' 973libdir='${exec_prefix}/lib' 974localedir='${datarootdir}/locale' 975mandir='${datarootdir}/man' 976 977ac_prev= 978ac_dashdash= 979for ac_option 980do 981 # If the previous option needs an argument, assign it. 982 if test -n "$ac_prev"; then 983 eval $ac_prev=\$ac_option 984 ac_prev= 985 continue 986 fi 987 988 case $ac_option in 989 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 990 *=) ac_optarg= ;; 991 *) ac_optarg=yes ;; 992 esac 993 994 # Accept the important Cygnus configure options, so we can diagnose typos. 995 996 case $ac_dashdash$ac_option in 997 --) 998 ac_dashdash=yes ;; 999 1000 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1001 ac_prev=bindir ;; 1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1003 bindir=$ac_optarg ;; 1004 1005 -build | --build | --buil | --bui | --bu) 1006 ac_prev=build_alias ;; 1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1008 build_alias=$ac_optarg ;; 1009 1010 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1012 ac_prev=cache_file ;; 1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1015 cache_file=$ac_optarg ;; 1016 1017 --config-cache | -C) 1018 cache_file=config.cache ;; 1019 1020 -datadir | --datadir | --datadi | --datad) 1021 ac_prev=datadir ;; 1022 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1023 datadir=$ac_optarg ;; 1024 1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1026 | --dataroo | --dataro | --datar) 1027 ac_prev=datarootdir ;; 1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1030 datarootdir=$ac_optarg ;; 1031 1032 -disable-* | --disable-*) 1033 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1036 as_fn_error $? "invalid feature name: $ac_useropt" 1037 ac_useropt_orig=$ac_useropt 1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1039 case $ac_user_opts in 1040 *" 1041"enable_$ac_useropt" 1042"*) ;; 1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1044 ac_unrecognized_sep=', ';; 1045 esac 1046 eval enable_$ac_useropt=no ;; 1047 1048 -docdir | --docdir | --docdi | --doc | --do) 1049 ac_prev=docdir ;; 1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1051 docdir=$ac_optarg ;; 1052 1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1054 ac_prev=dvidir ;; 1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1056 dvidir=$ac_optarg ;; 1057 1058 -enable-* | --enable-*) 1059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1060 # Reject names that are not valid shell variable names. 1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1062 as_fn_error $? "invalid feature name: $ac_useropt" 1063 ac_useropt_orig=$ac_useropt 1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1065 case $ac_user_opts in 1066 *" 1067"enable_$ac_useropt" 1068"*) ;; 1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1070 ac_unrecognized_sep=', ';; 1071 esac 1072 eval enable_$ac_useropt=\$ac_optarg ;; 1073 1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1076 | --exec | --exe | --ex) 1077 ac_prev=exec_prefix ;; 1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1080 | --exec=* | --exe=* | --ex=*) 1081 exec_prefix=$ac_optarg ;; 1082 1083 -gas | --gas | --ga | --g) 1084 # Obsolete; use --with-gas. 1085 with_gas=yes ;; 1086 1087 -help | --help | --hel | --he | -h) 1088 ac_init_help=long ;; 1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1090 ac_init_help=recursive ;; 1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1092 ac_init_help=short ;; 1093 1094 -host | --host | --hos | --ho) 1095 ac_prev=host_alias ;; 1096 -host=* | --host=* | --hos=* | --ho=*) 1097 host_alias=$ac_optarg ;; 1098 1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1100 ac_prev=htmldir ;; 1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1102 | --ht=*) 1103 htmldir=$ac_optarg ;; 1104 1105 -includedir | --includedir | --includedi | --included | --include \ 1106 | --includ | --inclu | --incl | --inc) 1107 ac_prev=includedir ;; 1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1109 | --includ=* | --inclu=* | --incl=* | --inc=*) 1110 includedir=$ac_optarg ;; 1111 1112 -infodir | --infodir | --infodi | --infod | --info | --inf) 1113 ac_prev=infodir ;; 1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1115 infodir=$ac_optarg ;; 1116 1117 -libdir | --libdir | --libdi | --libd) 1118 ac_prev=libdir ;; 1119 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1120 libdir=$ac_optarg ;; 1121 1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1123 | --libexe | --libex | --libe) 1124 ac_prev=libexecdir ;; 1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1126 | --libexe=* | --libex=* | --libe=*) 1127 libexecdir=$ac_optarg ;; 1128 1129 -localedir | --localedir | --localedi | --localed | --locale) 1130 ac_prev=localedir ;; 1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1132 localedir=$ac_optarg ;; 1133 1134 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1135 | --localstate | --localstat | --localsta | --localst | --locals) 1136 ac_prev=localstatedir ;; 1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1139 localstatedir=$ac_optarg ;; 1140 1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1142 ac_prev=mandir ;; 1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1144 mandir=$ac_optarg ;; 1145 1146 -nfp | --nfp | --nf) 1147 # Obsolete; use --without-fp. 1148 with_fp=no ;; 1149 1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1151 | --no-cr | --no-c | -n) 1152 no_create=yes ;; 1153 1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1156 no_recursion=yes ;; 1157 1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1160 | --oldin | --oldi | --old | --ol | --o) 1161 ac_prev=oldincludedir ;; 1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1165 oldincludedir=$ac_optarg ;; 1166 1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1168 ac_prev=prefix ;; 1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1170 prefix=$ac_optarg ;; 1171 1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1173 | --program-pre | --program-pr | --program-p) 1174 ac_prev=program_prefix ;; 1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1177 program_prefix=$ac_optarg ;; 1178 1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1180 | --program-suf | --program-su | --program-s) 1181 ac_prev=program_suffix ;; 1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1184 program_suffix=$ac_optarg ;; 1185 1186 -program-transform-name | --program-transform-name \ 1187 | --program-transform-nam | --program-transform-na \ 1188 | --program-transform-n | --program-transform- \ 1189 | --program-transform | --program-transfor \ 1190 | --program-transfo | --program-transf \ 1191 | --program-trans | --program-tran \ 1192 | --progr-tra | --program-tr | --program-t) 1193 ac_prev=program_transform_name ;; 1194 -program-transform-name=* | --program-transform-name=* \ 1195 | --program-transform-nam=* | --program-transform-na=* \ 1196 | --program-transform-n=* | --program-transform-=* \ 1197 | --program-transform=* | --program-transfor=* \ 1198 | --program-transfo=* | --program-transf=* \ 1199 | --program-trans=* | --program-tran=* \ 1200 | --progr-tra=* | --program-tr=* | --program-t=*) 1201 program_transform_name=$ac_optarg ;; 1202 1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1204 ac_prev=pdfdir ;; 1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1206 pdfdir=$ac_optarg ;; 1207 1208 -psdir | --psdir | --psdi | --psd | --ps) 1209 ac_prev=psdir ;; 1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1211 psdir=$ac_optarg ;; 1212 1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1214 | -silent | --silent | --silen | --sile | --sil) 1215 silent=yes ;; 1216 1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1218 ac_prev=sbindir ;; 1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1220 | --sbi=* | --sb=*) 1221 sbindir=$ac_optarg ;; 1222 1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1225 | --sharedst | --shareds | --shared | --share | --shar \ 1226 | --sha | --sh) 1227 ac_prev=sharedstatedir ;; 1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1231 | --sha=* | --sh=*) 1232 sharedstatedir=$ac_optarg ;; 1233 1234 -site | --site | --sit) 1235 ac_prev=site ;; 1236 -site=* | --site=* | --sit=*) 1237 site=$ac_optarg ;; 1238 1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1240 ac_prev=srcdir ;; 1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1242 srcdir=$ac_optarg ;; 1243 1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1245 | --syscon | --sysco | --sysc | --sys | --sy) 1246 ac_prev=sysconfdir ;; 1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1249 sysconfdir=$ac_optarg ;; 1250 1251 -target | --target | --targe | --targ | --tar | --ta | --t) 1252 ac_prev=target_alias ;; 1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1254 target_alias=$ac_optarg ;; 1255 1256 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1257 verbose=yes ;; 1258 1259 -version | --version | --versio | --versi | --vers | -V) 1260 ac_init_version=: ;; 1261 1262 -with-* | --with-*) 1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1264 # Reject names that are not valid shell variable names. 1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1266 as_fn_error $? "invalid package name: $ac_useropt" 1267 ac_useropt_orig=$ac_useropt 1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1269 case $ac_user_opts in 1270 *" 1271"with_$ac_useropt" 1272"*) ;; 1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1274 ac_unrecognized_sep=', ';; 1275 esac 1276 eval with_$ac_useropt=\$ac_optarg ;; 1277 1278 -without-* | --without-*) 1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1282 as_fn_error $? "invalid package name: $ac_useropt" 1283 ac_useropt_orig=$ac_useropt 1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1285 case $ac_user_opts in 1286 *" 1287"with_$ac_useropt" 1288"*) ;; 1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1290 ac_unrecognized_sep=', ';; 1291 esac 1292 eval with_$ac_useropt=no ;; 1293 1294 --x) 1295 # Obsolete; use --with-x. 1296 with_x=yes ;; 1297 1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1299 | --x-incl | --x-inc | --x-in | --x-i) 1300 ac_prev=x_includes ;; 1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1303 x_includes=$ac_optarg ;; 1304 1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1307 ac_prev=x_libraries ;; 1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1310 x_libraries=$ac_optarg ;; 1311 1312 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1313Try \`$0 --help' for more information" 1314 ;; 1315 1316 *=*) 1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1318 # Reject names that are not valid shell variable names. 1319 case $ac_envvar in #( 1320 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1322 esac 1323 eval $ac_envvar=\$ac_optarg 1324 export $ac_envvar ;; 1325 1326 *) 1327 # FIXME: should be removed in autoconf 3.0. 1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1332 ;; 1333 1334 esac 1335done 1336 1337if test -n "$ac_prev"; then 1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1339 as_fn_error $? "missing argument to $ac_option" 1340fi 1341 1342if test -n "$ac_unrecognized_opts"; then 1343 case $enable_option_checking in 1344 no) ;; 1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1347 esac 1348fi 1349 1350# Check all directory arguments for consistency. 1351for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1352 datadir sysconfdir sharedstatedir localstatedir includedir \ 1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1354 libdir localedir mandir 1355do 1356 eval ac_val=\$$ac_var 1357 # Remove trailing slashes. 1358 case $ac_val in 1359 */ ) 1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1361 eval $ac_var=\$ac_val;; 1362 esac 1363 # Be sure to have absolute directory names. 1364 case $ac_val in 1365 [\\/$]* | ?:[\\/]* ) continue;; 1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1367 esac 1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1369done 1370 1371# There might be people who depend on the old broken behavior: `$host' 1372# used to hold the argument of --host etc. 1373# FIXME: To remove some day. 1374build=$build_alias 1375host=$host_alias 1376target=$target_alias 1377 1378# FIXME: To remove some day. 1379if test "x$host_alias" != x; then 1380 if test "x$build_alias" = x; then 1381 cross_compiling=maybe 1382 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1383 If a cross compiler is detected then cross compile mode will be used" >&2 1384 elif test "x$build_alias" != "x$host_alias"; then 1385 cross_compiling=yes 1386 fi 1387fi 1388 1389ac_tool_prefix= 1390test -n "$host_alias" && ac_tool_prefix=$host_alias- 1391 1392test "$silent" = yes && exec 6>/dev/null 1393 1394 1395ac_pwd=`pwd` && test -n "$ac_pwd" && 1396ac_ls_di=`ls -di .` && 1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1398 as_fn_error $? "working directory cannot be determined" 1399test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1400 as_fn_error $? "pwd does not report name of working directory" 1401 1402 1403# Find the source files, if location was not specified. 1404if test -z "$srcdir"; then 1405 ac_srcdir_defaulted=yes 1406 # Try the directory containing this script, then the parent directory. 1407 ac_confdir=`$as_dirname -- "$as_myself" || 1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1409 X"$as_myself" : 'X\(//\)[^/]' \| \ 1410 X"$as_myself" : 'X\(//\)$' \| \ 1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1412$as_echo X"$as_myself" | 1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\/\)[^/].*/{ 1418 s//\1/ 1419 q 1420 } 1421 /^X\(\/\/\)$/{ 1422 s//\1/ 1423 q 1424 } 1425 /^X\(\/\).*/{ 1426 s//\1/ 1427 q 1428 } 1429 s/.*/./; q'` 1430 srcdir=$ac_confdir 1431 if test ! -r "$srcdir/$ac_unique_file"; then 1432 srcdir=.. 1433 fi 1434else 1435 ac_srcdir_defaulted=no 1436fi 1437if test ! -r "$srcdir/$ac_unique_file"; then 1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1440fi 1441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1442ac_abs_confdir=`( 1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1444 pwd)` 1445# When building in place, set srcdir=. 1446if test "$ac_abs_confdir" = "$ac_pwd"; then 1447 srcdir=. 1448fi 1449# Remove unnecessary trailing slashes from srcdir. 1450# Double slashes in file names in object file debugging info 1451# mess up M-x gdb in Emacs. 1452case $srcdir in 1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1454esac 1455for ac_var in $ac_precious_vars; do 1456 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1457 eval ac_env_${ac_var}_value=\$${ac_var} 1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1459 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1460done 1461 1462# 1463# Report the --help message. 1464# 1465if test "$ac_init_help" = "long"; then 1466 # Omit some internal or obsolete options to make the list less imposing. 1467 # This message is too long to be a string in the A/UX 3.1 sh. 1468 cat <<_ACEOF 1469\`configure' configures gmpc-magnatune 11.8.16 to adapt to many kinds of systems. 1470 1471Usage: $0 [OPTION]... [VAR=VALUE]... 1472 1473To assign environment variables (e.g., CC, CFLAGS...), specify them as 1474VAR=VALUE. See below for descriptions of some of the useful variables. 1475 1476Defaults for the options are specified in brackets. 1477 1478Configuration: 1479 -h, --help display this help and exit 1480 --help=short display options specific to this package 1481 --help=recursive display the short help of all the included packages 1482 -V, --version display version information and exit 1483 -q, --quiet, --silent do not print \`checking ...' messages 1484 --cache-file=FILE cache test results in FILE [disabled] 1485 -C, --config-cache alias for \`--cache-file=config.cache' 1486 -n, --no-create do not create output files 1487 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1488 1489Installation directories: 1490 --prefix=PREFIX install architecture-independent files in PREFIX 1491 [$ac_default_prefix] 1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1493 [PREFIX] 1494 1495By default, \`make install' will install all the files in 1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1497an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1498for instance \`--prefix=\$HOME'. 1499 1500For better control, use the options below. 1501 1502Fine tuning of the installation directories: 1503 --bindir=DIR user executables [EPREFIX/bin] 1504 --sbindir=DIR system admin executables [EPREFIX/sbin] 1505 --libexecdir=DIR program executables [EPREFIX/libexec] 1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1509 --libdir=DIR object code libraries [EPREFIX/lib] 1510 --includedir=DIR C header files [PREFIX/include] 1511 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1514 --infodir=DIR info documentation [DATAROOTDIR/info] 1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1516 --mandir=DIR man documentation [DATAROOTDIR/man] 1517 --docdir=DIR documentation root [DATAROOTDIR/doc/gmpc-magnatune] 1518 --htmldir=DIR html documentation [DOCDIR] 1519 --dvidir=DIR dvi documentation [DOCDIR] 1520 --pdfdir=DIR pdf documentation [DOCDIR] 1521 --psdir=DIR ps documentation [DOCDIR] 1522_ACEOF 1523 1524 cat <<\_ACEOF 1525 1526Program names: 1527 --program-prefix=PREFIX prepend PREFIX to installed program names 1528 --program-suffix=SUFFIX append SUFFIX to installed program names 1529 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1530 1531System types: 1532 --build=BUILD configure for building on BUILD [guessed] 1533 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1534_ACEOF 1535fi 1536 1537if test -n "$ac_init_help"; then 1538 case $ac_init_help in 1539 short | recursive ) echo "Configuration of gmpc-magnatune 11.8.16:";; 1540 esac 1541 cat <<\_ACEOF 1542 1543Optional Features: 1544 --disable-option-checking ignore unrecognized --enable/--with options 1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1547 --disable-nls do not use Native Language Support 1548 --disable-dependency-tracking speeds up one-time build 1549 --enable-dependency-tracking do not reject slow dependency extractors 1550 --enable-static[=PKGS] build static libraries [default=no] 1551 --enable-shared[=PKGS] build shared libraries [default=yes] 1552 --enable-fast-install[=PKGS] 1553 optimize for fast installation [default=yes] 1554 --disable-libtool-lock avoid locking (might break parallel builds) 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-pic try to use only PIC/non-PIC objects [default=use 1560 both] 1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1562 1563Some influential environment variables: 1564 CC C compiler command 1565 CFLAGS C compiler flags 1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1567 nonstandard directory <lib dir> 1568 LIBS libraries to pass to the linker, e.g. -l<library> 1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1570 you have headers in a nonstandard directory <include dir> 1571 CPP C preprocessor 1572 PKG_CONFIG path to pkg-config utility 1573 PKG_CONFIG_PATH 1574 directories to add to pkg-config's search path 1575 PKG_CONFIG_LIBDIR 1576 path overriding pkg-config's built-in search path 1577 gmpcmagnatune_CFLAGS 1578 C compiler flags for gmpcmagnatune, overriding pkg-config 1579 gmpcmagnatune_LIBS 1580 linker flags for gmpcmagnatune, overriding pkg-config 1581 1582Use these variables to override the choices made by `configure' or to help 1583it to find libraries and programs with nonstandard names/locations. 1584 1585Report bugs to <qball@sarine.nl>. 1586_ACEOF 1587ac_status=$? 1588fi 1589 1590if test "$ac_init_help" = "recursive"; then 1591 # If there are subdirs, report their specific --help. 1592 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1593 test -d "$ac_dir" || 1594 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1595 continue 1596 ac_builddir=. 1597 1598case "$ac_dir" in 1599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1600*) 1601 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1602 # A ".." for each directory in $ac_dir_suffix. 1603 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1604 case $ac_top_builddir_sub in 1605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1607 esac ;; 1608esac 1609ac_abs_top_builddir=$ac_pwd 1610ac_abs_builddir=$ac_pwd$ac_dir_suffix 1611# for backward compatibility: 1612ac_top_builddir=$ac_top_build_prefix 1613 1614case $srcdir in 1615 .) # We are building in place. 1616 ac_srcdir=. 1617 ac_top_srcdir=$ac_top_builddir_sub 1618 ac_abs_top_srcdir=$ac_pwd ;; 1619 [\\/]* | ?:[\\/]* ) # Absolute name. 1620 ac_srcdir=$srcdir$ac_dir_suffix; 1621 ac_top_srcdir=$srcdir 1622 ac_abs_top_srcdir=$srcdir ;; 1623 *) # Relative name. 1624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1625 ac_top_srcdir=$ac_top_build_prefix$srcdir 1626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1627esac 1628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1629 1630 cd "$ac_dir" || { ac_status=$?; continue; } 1631 # Check for guested configure. 1632 if test -f "$ac_srcdir/configure.gnu"; then 1633 echo && 1634 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1635 elif test -f "$ac_srcdir/configure"; then 1636 echo && 1637 $SHELL "$ac_srcdir/configure" --help=recursive 1638 else 1639 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1640 fi || ac_status=$? 1641 cd "$ac_pwd" || { ac_status=$?; break; } 1642 done 1643fi 1644 1645test -n "$ac_init_help" && exit $ac_status 1646if $ac_init_version; then 1647 cat <<\_ACEOF 1648gmpc-magnatune configure 11.8.16 1649generated by GNU Autoconf 2.67 1650 1651Copyright (C) 2010 Free Software Foundation, Inc. 1652This configure script is free software; the Free Software Foundation 1653gives unlimited permission to copy, distribute and modify it. 1654_ACEOF 1655 exit 1656fi 1657 1658## ------------------------ ## 1659## Autoconf initialization. ## 1660## ------------------------ ## 1661 1662# ac_fn_c_try_compile LINENO 1663# -------------------------- 1664# Try to compile conftest.$ac_ext, and return whether this succeeded. 1665ac_fn_c_try_compile () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext 1669 if { { ac_try="$ac_compile" 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_compile") 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_objext; then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694fi 1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1696 as_fn_set_status $ac_retval 1697 1698} # ac_fn_c_try_compile 1699 1700# ac_fn_c_try_link LINENO 1701# ----------------------- 1702# Try to link conftest.$ac_ext, and return whether this succeeded. 1703ac_fn_c_try_link () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 rm -f conftest.$ac_objext conftest$ac_exeext 1707 if { { ac_try="$ac_link" 1708case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_link") 2>conftest.err 1715 ac_status=$? 1716 if test -s conftest.err; then 1717 grep -v '^ *+' conftest.err >conftest.er1 1718 cat conftest.er1 >&5 1719 mv -f conftest.er1 conftest.err 1720 fi 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; } && { 1723 test -z "$ac_c_werror_flag" || 1724 test ! -s conftest.err 1725 } && test -s conftest$ac_exeext && { 1726 test "$cross_compiling" = yes || 1727 $as_test_x conftest$ac_exeext 1728 }; then : 1729 ac_retval=0 1730else 1731 $as_echo "$as_me: failed program was:" >&5 1732sed 's/^/| /' conftest.$ac_ext >&5 1733 1734 ac_retval=1 1735fi 1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1738 # interfere with the next link command; also delete a directory that is 1739 # left behind by Apple's compiler. We do this before executing the actions. 1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_link 1745 1746# ac_fn_c_check_func LINENO FUNC VAR 1747# ---------------------------------- 1748# Tests whether FUNC exists, setting the cache variable VAR accordingly 1749ac_fn_c_check_func () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1753$as_echo_n "checking for $2... " >&6; } 1754if eval "test \"\${$3+set}\"" = set; then : 1755 $as_echo_n "(cached) " >&6 1756else 1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1761#define $2 innocuous_$2 1762 1763/* System header to define __stub macros and hopefully few prototypes, 1764 which can conflict with char $2 (); below. 1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1766 <limits.h> exists even on freestanding compilers. */ 1767 1768#ifdef __STDC__ 1769# include <limits.h> 1770#else 1771# include <assert.h> 1772#endif 1773 1774#undef $2 1775 1776/* Override any GCC internal prototype to avoid an error. 1777 Use char because int might match the return type of a GCC 1778 builtin and then its argument prototype would still apply. */ 1779#ifdef __cplusplus 1780extern "C" 1781#endif 1782char $2 (); 1783/* The GNU C library defines this for functions which it implements 1784 to always fail with ENOSYS. Some functions are actually named 1785 something starting with __ and the normal name is an alias. */ 1786#if defined __stub_$2 || defined __stub___$2 1787choke me 1788#endif 1789 1790int 1791main () 1792{ 1793return $2 (); 1794 ; 1795 return 0; 1796} 1797_ACEOF 1798if ac_fn_c_try_link "$LINENO"; then : 1799 eval "$3=yes" 1800else 1801 eval "$3=no" 1802fi 1803rm -f core conftest.err conftest.$ac_objext \ 1804 conftest$ac_exeext conftest.$ac_ext 1805fi 1806eval ac_res=\$$3 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1808$as_echo "$ac_res" >&6; } 1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1810 1811} # ac_fn_c_check_func 1812 1813# ac_fn_c_try_cpp LINENO 1814# ---------------------- 1815# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1816ac_fn_c_try_cpp () 1817{ 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 if { { ac_try="$ac_cpp conftest.$ac_ext" 1820case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823esac 1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1825$as_echo "$ac_try_echo"; } >&5 1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1827 ac_status=$? 1828 if test -s conftest.err; then 1829 grep -v '^ *+' conftest.err >conftest.er1 1830 cat conftest.er1 >&5 1831 mv -f conftest.er1 conftest.err 1832 fi 1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1834 test $ac_status = 0; } > conftest.i && { 1835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1836 test ! -s conftest.err 1837 }; then : 1838 ac_retval=0 1839else 1840 $as_echo "$as_me: failed program was:" >&5 1841sed 's/^/| /' conftest.$ac_ext >&5 1842 1843 ac_retval=1 1844fi 1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1846 as_fn_set_status $ac_retval 1847 1848} # ac_fn_c_try_cpp 1849 1850# ac_fn_c_try_run LINENO 1851# ---------------------- 1852# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1853# that executables *can* be run. 1854ac_fn_c_try_run () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 if { { ac_try="$ac_link" 1858case "(($ac_try" in 1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1860 *) ac_try_echo=$ac_try;; 1861esac 1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1863$as_echo "$ac_try_echo"; } >&5 1864 (eval "$ac_link") 2>&5 1865 ac_status=$? 1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1867 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1868 { { case "(($ac_try" in 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1870 *) ac_try_echo=$ac_try;; 1871esac 1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1873$as_echo "$ac_try_echo"; } >&5 1874 (eval "$ac_try") 2>&5 1875 ac_status=$? 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; }; }; then : 1878 ac_retval=0 1879else 1880 $as_echo "$as_me: program exited with status $ac_status" >&5 1881 $as_echo "$as_me: failed program was:" >&5 1882sed 's/^/| /' conftest.$ac_ext >&5 1883 1884 ac_retval=$ac_status 1885fi 1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1888 as_fn_set_status $ac_retval 1889 1890} # ac_fn_c_try_run 1891 1892# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1893# ------------------------------------------------------- 1894# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1895# the include files in INCLUDES and setting the cache variable VAR 1896# accordingly. 1897ac_fn_c_check_header_mongrel () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 if eval "test \"\${$3+set}\"" = set; then : 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1902$as_echo_n "checking for $2... " >&6; } 1903if eval "test \"\${$3+set}\"" = set; then : 1904 $as_echo_n "(cached) " >&6 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909else 1910 # Is the header compilable? 1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1912$as_echo_n "checking $2 usability... " >&6; } 1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916#include <$2> 1917_ACEOF 1918if ac_fn_c_try_compile "$LINENO"; then : 1919 ac_header_compiler=yes 1920else 1921 ac_header_compiler=no 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1925$as_echo "$ac_header_compiler" >&6; } 1926 1927# Is the header present? 1928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1929$as_echo_n "checking $2 presence... " >&6; } 1930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932#include <$2> 1933_ACEOF 1934if ac_fn_c_try_cpp "$LINENO"; then : 1935 ac_header_preproc=yes 1936else 1937 ac_header_preproc=no 1938fi 1939rm -f conftest.err conftest.i conftest.$ac_ext 1940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1941$as_echo "$ac_header_preproc" >&6; } 1942 1943# So? What about this header? 1944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1945 yes:no: ) 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1947$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1949$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1950 ;; 1951 no:yes:* ) 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1953$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1955$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1957$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1959$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1962( $as_echo "## ------------------------------ ## 1963## Report this to qball@sarine.nl ## 1964## ------------------------------ ##" 1965 ) | sed "s/^/$as_me: WARNING: /" >&2 1966 ;; 1967esac 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1969$as_echo_n "checking for $2... " >&6; } 1970if eval "test \"\${$3+set}\"" = set; then : 1971 $as_echo_n "(cached) " >&6 1972else 1973 eval "$3=\$ac_header_compiler" 1974fi 1975eval ac_res=\$$3 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977$as_echo "$ac_res" >&6; } 1978fi 1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1980 1981} # ac_fn_c_check_header_mongrel 1982 1983# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1984# ------------------------------------------------------- 1985# Tests whether HEADER exists and can be compiled using the include files in 1986# INCLUDES, setting the cache variable VAR accordingly. 1987ac_fn_c_check_header_compile () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1991$as_echo_n "checking for $2... " >&6; } 1992if eval "test \"\${$3+set}\"" = set; then : 1993 $as_echo_n "(cached) " >&6 1994else 1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1996/* end confdefs.h. */ 1997$4 1998#include <$2> 1999_ACEOF 2000if ac_fn_c_try_compile "$LINENO"; then : 2001 eval "$3=yes" 2002else 2003 eval "$3=no" 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007eval ac_res=\$$3 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2009$as_echo "$ac_res" >&6; } 2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2011 2012} # ac_fn_c_check_header_compile 2013cat >config.log <<_ACEOF 2014This file contains any messages produced by compilers while 2015running configure, to aid debugging if configure makes a mistake. 2016 2017It was created by gmpc-magnatune $as_me 11.8.16, which was 2018generated by GNU Autoconf 2.67. Invocation command line was 2019 2020 $ $0 $@ 2021 2022_ACEOF 2023exec 5>>config.log 2024{ 2025cat <<_ASUNAME 2026## --------- ## 2027## Platform. ## 2028## --------- ## 2029 2030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2031uname -m = `(uname -m) 2>/dev/null || echo unknown` 2032uname -r = `(uname -r) 2>/dev/null || echo unknown` 2033uname -s = `(uname -s) 2>/dev/null || echo unknown` 2034uname -v = `(uname -v) 2>/dev/null || echo unknown` 2035 2036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2037/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2038 2039/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2040/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2042/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2043/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2044/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2045/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2046 2047_ASUNAME 2048 2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2050for as_dir in $PATH 2051do 2052 IFS=$as_save_IFS 2053 test -z "$as_dir" && as_dir=. 2054 $as_echo "PATH: $as_dir" 2055 done 2056IFS=$as_save_IFS 2057 2058} >&5 2059 2060cat >&5 <<_ACEOF 2061 2062 2063## ----------- ## 2064## Core tests. ## 2065## ----------- ## 2066 2067_ACEOF 2068 2069 2070# Keep a trace of the command line. 2071# Strip out --no-create and --no-recursion so they do not pile up. 2072# Strip out --silent because we don't want to record it for future runs. 2073# Also quote any args containing shell meta-characters. 2074# Make two passes to allow for proper duplicate-argument suppression. 2075ac_configure_args= 2076ac_configure_args0= 2077ac_configure_args1= 2078ac_must_keep_next=false 2079for ac_pass in 1 2 2080do 2081 for ac_arg 2082 do 2083 case $ac_arg in 2084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2086 | -silent | --silent | --silen | --sile | --sil) 2087 continue ;; 2088 *\'*) 2089 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2090 esac 2091 case $ac_pass in 2092 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2093 2) 2094 as_fn_append ac_configure_args1 " '$ac_arg'" 2095 if test $ac_must_keep_next = true; then 2096 ac_must_keep_next=false # Got value, back to normal. 2097 else 2098 case $ac_arg in 2099 *=* | --config-cache | -C | -disable-* | --disable-* \ 2100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2102 | -with-* | --with-* | -without-* | --without-* | --x) 2103 case "$ac_configure_args0 " in 2104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2105 esac 2106 ;; 2107 -* ) ac_must_keep_next=true ;; 2108 esac 2109 fi 2110 as_fn_append ac_configure_args " '$ac_arg'" 2111 ;; 2112 esac 2113 done 2114done 2115{ ac_configure_args0=; unset ac_configure_args0;} 2116{ ac_configure_args1=; unset ac_configure_args1;} 2117 2118# When interrupted or exit'd, cleanup temporary files, and complete 2119# config.log. We remove comments because anyway the quotes in there 2120# would cause problems or look ugly. 2121# WARNING: Use '\'' to represent an apostrophe within the trap. 2122# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2123trap 'exit_status=$? 2124 # Save into config.log some information that might help in debugging. 2125 { 2126 echo 2127 2128 $as_echo "## ---------------- ## 2129## Cache variables. ## 2130## ---------------- ##" 2131 echo 2132 # The following way of writing the cache mishandles newlines in values, 2133( 2134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2135 eval ac_val=\$$ac_var 2136 case $ac_val in #( 2137 *${as_nl}*) 2138 case $ac_var in #( 2139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2140$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2141 esac 2142 case $ac_var in #( 2143 _ | IFS | as_nl) ;; #( 2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2145 *) { eval $ac_var=; unset $ac_var;} ;; 2146 esac ;; 2147 esac 2148 done 2149 (set) 2>&1 | 2150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2151 *${as_nl}ac_space=\ *) 2152 sed -n \ 2153 "s/'\''/'\''\\\\'\'''\''/g; 2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2155 ;; #( 2156 *) 2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2158 ;; 2159 esac | 2160 sort 2161) 2162 echo 2163 2164 $as_echo "## ----------------- ## 2165## Output variables. ## 2166## ----------------- ##" 2167 echo 2168 for ac_var in $ac_subst_vars 2169 do 2170 eval ac_val=\$$ac_var 2171 case $ac_val in 2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2173 esac 2174 $as_echo "$ac_var='\''$ac_val'\''" 2175 done | sort 2176 echo 2177 2178 if test -n "$ac_subst_files"; then 2179 $as_echo "## ------------------- ## 2180## File substitutions. ## 2181## ------------------- ##" 2182 echo 2183 for ac_var in $ac_subst_files 2184 do 2185 eval ac_val=\$$ac_var 2186 case $ac_val in 2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2188 esac 2189 $as_echo "$ac_var='\''$ac_val'\''" 2190 done | sort 2191 echo 2192 fi 2193 2194 if test -s confdefs.h; then 2195 $as_echo "## ----------- ## 2196## confdefs.h. ## 2197## ----------- ##" 2198 echo 2199 cat confdefs.h 2200 echo 2201 fi 2202 test "$ac_signal" != 0 && 2203 $as_echo "$as_me: caught signal $ac_signal" 2204 $as_echo "$as_me: exit $exit_status" 2205 } >&5 2206 rm -f core *.core core.conftest.* && 2207 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2208 exit $exit_status 2209' 0 2210for ac_signal in 1 2 13 15; do 2211 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2212done 2213ac_signal=0 2214 2215# confdefs.h avoids OS command line length limits that DEFS can exceed. 2216rm -f -r conftest* confdefs.h 2217 2218$as_echo "/* confdefs.h */" > confdefs.h 2219 2220# Predefined preprocessor variables. 2221 2222cat >>confdefs.h <<_ACEOF 2223#define PACKAGE_NAME "$PACKAGE_NAME" 2224_ACEOF 2225 2226cat >>confdefs.h <<_ACEOF 2227#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2228_ACEOF 2229 2230cat >>confdefs.h <<_ACEOF 2231#define PACKAGE_VERSION "$PACKAGE_VERSION" 2232_ACEOF 2233 2234cat >>confdefs.h <<_ACEOF 2235#define PACKAGE_STRING "$PACKAGE_STRING" 2236_ACEOF 2237 2238cat >>confdefs.h <<_ACEOF 2239#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2240_ACEOF 2241 2242cat >>confdefs.h <<_ACEOF 2243#define PACKAGE_URL "$PACKAGE_URL" 2244_ACEOF 2245 2246 2247# Let the site file select an alternate cache file if it wants to. 2248# Prefer an explicitly selected file to automatically selected ones. 2249ac_site_file1=NONE 2250ac_site_file2=NONE 2251if test -n "$CONFIG_SITE"; then 2252 # We do not want a PATH search for config.site. 2253 case $CONFIG_SITE in #(( 2254 -*) ac_site_file1=./$CONFIG_SITE;; 2255 */*) ac_site_file1=$CONFIG_SITE;; 2256 *) ac_site_file1=./$CONFIG_SITE;; 2257 esac 2258elif test "x$prefix" != xNONE; then 2259 ac_site_file1=$prefix/share/config.site 2260 ac_site_file2=$prefix/etc/config.site 2261else 2262 ac_site_file1=$ac_default_prefix/share/config.site 2263 ac_site_file2=$ac_default_prefix/etc/config.site 2264fi 2265for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2266do 2267 test "x$ac_site_file" = xNONE && continue 2268 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2270$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2271 sed 's/^/| /' "$ac_site_file" >&5 2272 . "$ac_site_file" \ 2273 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2275as_fn_error $? "failed to load site script $ac_site_file 2276See \`config.log' for more details" "$LINENO" 5 ; } 2277 fi 2278done 2279 2280if test -r "$cache_file"; then 2281 # Some versions of bash will fail to source /dev/null (special files 2282 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2283 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2285$as_echo "$as_me: loading cache $cache_file" >&6;} 2286 case $cache_file in 2287 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2288 *) . "./$cache_file";; 2289 esac 2290 fi 2291else 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2293$as_echo "$as_me: creating cache $cache_file" >&6;} 2294 >$cache_file 2295fi 2296 2297# Check that the precious variables saved in the cache have kept the same 2298# value. 2299ac_cache_corrupted=false 2300for ac_var in $ac_precious_vars; do 2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2302 eval ac_new_set=\$ac_env_${ac_var}_set 2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2304 eval ac_new_val=\$ac_env_${ac_var}_value 2305 case $ac_old_set,$ac_new_set in 2306 set,) 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2308$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2309 ac_cache_corrupted=: ;; 2310 ,set) 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2312$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2313 ac_cache_corrupted=: ;; 2314 ,);; 2315 *) 2316 if test "x$ac_old_val" != "x$ac_new_val"; then 2317 # differences in whitespace do not lead to failure. 2318 ac_old_val_w=`echo x $ac_old_val` 2319 ac_new_val_w=`echo x $ac_new_val` 2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2322$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2323 ac_cache_corrupted=: 2324 else 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2326$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2327 eval $ac_var=\$ac_old_val 2328 fi 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2330$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2332$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2333 fi;; 2334 esac 2335 # Pass precious variables to config.status. 2336 if test "$ac_new_set" = set; then 2337 case $ac_new_val in 2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2339 *) ac_arg=$ac_var=$ac_new_val ;; 2340 esac 2341 case " $ac_configure_args " in 2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2344 esac 2345 fi 2346done 2347if $ac_cache_corrupted; then 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2351$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2352 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2353fi 2354## -------------------- ## 2355## Main body of script. ## 2356## -------------------- ## 2357 2358ac_ext=c 2359ac_cpp='$CPP $CPPFLAGS' 2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2362ac_compiler_gnu=$ac_cv_c_compiler_gnu 2363 2364 2365 2366 2367 2368 2369 2370ac_config_headers="$ac_config_headers config.h" 2371 2372am__api_version='1.11' 2373 2374ac_aux_dir= 2375for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2376 if test -f "$ac_dir/install-sh"; then 2377 ac_aux_dir=$ac_dir 2378 ac_install_sh="$ac_aux_dir/install-sh -c" 2379 break 2380 elif test -f "$ac_dir/install.sh"; then 2381 ac_aux_dir=$ac_dir 2382 ac_install_sh="$ac_aux_dir/install.sh -c" 2383 break 2384 elif test -f "$ac_dir/shtool"; then 2385 ac_aux_dir=$ac_dir 2386 ac_install_sh="$ac_aux_dir/shtool install -c" 2387 break 2388 fi 2389done 2390if test -z "$ac_aux_dir"; then 2391 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2392fi 2393 2394# These three variables are undocumented and unsupported, 2395# and are intended to be withdrawn in a future Autoconf release. 2396# They can cause serious problems if a builder's source tree is in a directory 2397# whose full name contains unusual characters. 2398ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2399ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2400ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2401 2402 2403# Find a good install program. We prefer a C program (faster), 2404# so one script is as good as another. But avoid the broken or 2405# incompatible versions: 2406# SysV /etc/install, /usr/sbin/install 2407# SunOS /usr/etc/install 2408# IRIX /sbin/install 2409# AIX /bin/install 2410# AmigaOS /C/install, which installs bootblocks on floppy discs 2411# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2412# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2413# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2414# OS/2's system install, which has a completely different semantic 2415# ./install, which can be erroneously created by make from ./install.sh. 2416# Reject install programs that cannot install multiple files. 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2418$as_echo_n "checking for a BSD-compatible install... " >&6; } 2419if test -z "$INSTALL"; then 2420if test "${ac_cv_path_install+set}" = set; then : 2421 $as_echo_n "(cached) " >&6 2422else 2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2424for as_dir in $PATH 2425do 2426 IFS=$as_save_IFS 2427 test -z "$as_dir" && as_dir=. 2428 # Account for people who put trailing slashes in PATH elements. 2429case $as_dir/ in #(( 2430 ./ | .// | /[cC]/* | \ 2431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2432 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2433 /usr/ucb/* ) ;; 2434 *) 2435 # OSF1 and SCO ODT 3.0 have their own names for install. 2436 # Don't use installbsd from OSF since it installs stuff as root 2437 # by default. 2438 for ac_prog in ginstall scoinst install; do 2439 for ac_exec_ext in '' $ac_executable_extensions; do 2440 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2441 if test $ac_prog = install && 2442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2443 # AIX install. It has an incompatible calling convention. 2444 : 2445 elif test $ac_prog = install && 2446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2447 # program-specific install script used by HP pwplus--don't use. 2448 : 2449 else 2450 rm -rf conftest.one conftest.two conftest.dir 2451 echo one > conftest.one 2452 echo two > conftest.two 2453 mkdir conftest.dir 2454 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2455 test -s conftest.one && test -s conftest.two && 2456 test -s conftest.dir/conftest.one && 2457 test -s conftest.dir/conftest.two 2458 then 2459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2460 break 3 2461 fi 2462 fi 2463 fi 2464 done 2465 done 2466 ;; 2467esac 2468 2469 done 2470IFS=$as_save_IFS 2471 2472rm -rf conftest.one conftest.two conftest.dir 2473 2474fi 2475 if test "${ac_cv_path_install+set}" = set; then 2476 INSTALL=$ac_cv_path_install 2477 else 2478 # As a last resort, use the slow shell script. Don't cache a 2479 # value for INSTALL within a source directory, because that will 2480 # break other packages using the cache if that directory is 2481 # removed, or if the value is a relative name. 2482 INSTALL=$ac_install_sh 2483 fi 2484fi 2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2486$as_echo "$INSTALL" >&6; } 2487 2488# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2489# It thinks the first close brace ends the variable substitution. 2490test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2491 2492test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2493 2494test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2495 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2497$as_echo_n "checking whether build environment is sane... " >&6; } 2498# Just in case 2499sleep 1 2500echo timestamp > conftest.file 2501# Reject unsafe characters in $srcdir or the absolute working directory 2502# name. Accept space and tab only in the latter. 2503am_lf=' 2504' 2505case `pwd` in 2506 *[\\\"\#\$\&\'\`$am_lf]*) 2507 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2508esac 2509case $srcdir in 2510 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2511 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2512esac 2513 2514# Do `set' in a subshell so we don't clobber the current shell's 2515# arguments. Must try -L first in case configure is actually a 2516# symlink; some systems play weird games with the mod time of symlinks 2517# (eg FreeBSD returns the mod time of the symlink's containing 2518# directory). 2519if ( 2520 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2521 if test "$*" = "X"; then 2522 # -L didn't work. 2523 set X `ls -t "$srcdir/configure" conftest.file` 2524 fi 2525 rm -f conftest.file 2526 if test "$*" != "X $srcdir/configure conftest.file" \ 2527 && test "$*" != "X conftest.file $srcdir/configure"; then 2528 2529 # If neither matched, then we have a broken ls. This can happen 2530 # if, for instance, CONFIG_SHELL is bash and it inherits a 2531 # broken ls alias from the environment. This has actually 2532 # happened. Such a system could not be considered "sane". 2533 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2534alias in your environment" "$LINENO" 5 2535 fi 2536 2537 test "$2" = conftest.file 2538 ) 2539then 2540 # Ok. 2541 : 2542else 2543 as_fn_error $? "newly created file is older than distributed files! 2544Check your system clock" "$LINENO" 5 2545fi 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2547$as_echo "yes" >&6; } 2548test "$program_prefix" != NONE && 2549 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2550# Use a double $ so make ignores it. 2551test "$program_suffix" != NONE && 2552 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2553# Double any \ or $. 2554# By default was `s,x,x', remove it if useless. 2555ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2556program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2557 2558# expand $ac_aux_dir to an absolute path 2559am_aux_dir=`cd $ac_aux_dir && pwd` 2560 2561if test x"${MISSING+set}" != xset; then 2562 case $am_aux_dir in 2563 *\ * | *\ *) 2564 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2565 *) 2566 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2567 esac 2568fi 2569# Use eval to expand $SHELL 2570if eval "$MISSING --run true"; then 2571 am_missing_run="$MISSING --run " 2572else 2573 am_missing_run= 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2575$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2576fi 2577 2578if test x"${install_sh}" != xset; then 2579 case $am_aux_dir in 2580 *\ * | *\ *) 2581 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2582 *) 2583 install_sh="\${SHELL} $am_aux_dir/install-sh" 2584 esac 2585fi 2586 2587# Installed binaries are usually stripped using `strip' when the user 2588# run `make install-strip'. However `strip' might not be the right 2589# tool to use in cross-compilation environments, therefore Automake 2590# will honor the `STRIP' environment variable to overrule this program. 2591if test "$cross_compiling" != no; then 2592 if test -n "$ac_tool_prefix"; then 2593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2594set dummy ${ac_tool_prefix}strip; ac_word=$2 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2596$as_echo_n "checking for $ac_word... " >&6; } 2597if test "${ac_cv_prog_STRIP+set}" = set; then : 2598 $as_echo_n "(cached) " >&6 2599else 2600 if test -n "$STRIP"; then 2601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2602else 2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2604for as_dir in $PATH 2605do 2606 IFS=$as_save_IFS 2607 test -z "$as_dir" && as_dir=. 2608 for ac_exec_ext in '' $ac_executable_extensions; do 2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2610 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2612 break 2 2613 fi 2614done 2615 done 2616IFS=$as_save_IFS 2617 2618fi 2619fi 2620STRIP=$ac_cv_prog_STRIP 2621if test -n "$STRIP"; then 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2623$as_echo "$STRIP" >&6; } 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2626$as_echo "no" >&6; } 2627fi 2628 2629 2630fi 2631if test -z "$ac_cv_prog_STRIP"; then 2632 ac_ct_STRIP=$STRIP 2633 # Extract the first word of "strip", so it can be a program name with args. 2634set dummy strip; ac_word=$2 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2636$as_echo_n "checking for $ac_word... " >&6; } 2637if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2638 $as_echo_n "(cached) " >&6 2639else 2640 if test -n "$ac_ct_STRIP"; then 2641 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2642else 2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_exec_ext in '' $ac_executable_extensions; do 2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2650 ac_cv_prog_ac_ct_STRIP="strip" 2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2652 break 2 2653 fi 2654done 2655 done 2656IFS=$as_save_IFS 2657 2658fi 2659fi 2660ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2661if test -n "$ac_ct_STRIP"; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2663$as_echo "$ac_ct_STRIP" >&6; } 2664else 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666$as_echo "no" >&6; } 2667fi 2668 2669 if test "x$ac_ct_STRIP" = x; then 2670 STRIP=":" 2671 else 2672 case $cross_compiling:$ac_tool_warned in 2673yes:) 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2676ac_tool_warned=yes ;; 2677esac 2678 STRIP=$ac_ct_STRIP 2679 fi 2680else 2681 STRIP="$ac_cv_prog_STRIP" 2682fi 2683 2684fi 2685INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2686 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2688$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2689if test -z "$MKDIR_P"; then 2690 if test "${ac_cv_path_mkdir+set}" = set; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2694for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2695do 2696 IFS=$as_save_IFS 2697 test -z "$as_dir" && as_dir=. 2698 for ac_prog in mkdir gmkdir; do 2699 for ac_exec_ext in '' $ac_executable_extensions; do 2700 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2701 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2702 'mkdir (GNU coreutils) '* | \ 2703 'mkdir (coreutils) '* | \ 2704 'mkdir (fileutils) '4.1*) 2705 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2706 break 3;; 2707 esac 2708 done 2709 done 2710 done 2711IFS=$as_save_IFS 2712 2713fi 2714 2715 test -d ./--version && rmdir ./--version 2716 if test "${ac_cv_path_mkdir+set}" = set; then 2717 MKDIR_P="$ac_cv_path_mkdir -p" 2718 else 2719 # As a last resort, use the slow shell script. Don't cache a 2720 # value for MKDIR_P within a source directory, because that will 2721 # break other packages using the cache if that directory is 2722 # removed, or if the value is a relative name. 2723 MKDIR_P="$ac_install_sh -d" 2724 fi 2725fi 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2727$as_echo "$MKDIR_P" >&6; } 2728 2729mkdir_p="$MKDIR_P" 2730case $mkdir_p in 2731 [\\/$]* | ?:[\\/]*) ;; 2732 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2733esac 2734 2735for ac_prog in gawk mawk nawk awk 2736do 2737 # Extract the first word of "$ac_prog", so it can be a program name with args. 2738set dummy $ac_prog; ac_word=$2 2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2740$as_echo_n "checking for $ac_word... " >&6; } 2741if test "${ac_cv_prog_AWK+set}" = set; then : 2742 $as_echo_n "(cached) " >&6 2743else 2744 if test -n "$AWK"; then 2745 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2746else 2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748for as_dir in $PATH 2749do 2750 IFS=$as_save_IFS 2751 test -z "$as_dir" && as_dir=. 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2754 ac_cv_prog_AWK="$ac_prog" 2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2756 break 2 2757 fi 2758done 2759 done 2760IFS=$as_save_IFS 2761 2762fi 2763fi 2764AWK=$ac_cv_prog_AWK 2765if test -n "$AWK"; then 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2767$as_echo "$AWK" >&6; } 2768else 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2770$as_echo "no" >&6; } 2771fi 2772 2773 2774 test -n "$AWK" && break 2775done 2776 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2778$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2779set x ${MAKE-make} 2780ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2781if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2782 $as_echo_n "(cached) " >&6 2783else 2784 cat >conftest.make <<\_ACEOF 2785SHELL = /bin/sh 2786all: 2787 @echo '@@@%%%=$(MAKE)=@@@%%%' 2788_ACEOF 2789# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2790case `${MAKE-make} -f conftest.make 2>/dev/null` in 2791 *@@@%%%=?*=@@@%%%*) 2792 eval ac_cv_prog_make_${ac_make}_set=yes;; 2793 *) 2794 eval ac_cv_prog_make_${ac_make}_set=no;; 2795esac 2796rm -f conftest.make 2797fi 2798if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2800$as_echo "yes" >&6; } 2801 SET_MAKE= 2802else 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2804$as_echo "no" >&6; } 2805 SET_MAKE="MAKE=${MAKE-make}" 2806fi 2807 2808rm -rf .tst 2>/dev/null 2809mkdir .tst 2>/dev/null 2810if test -d .tst; then 2811 am__leading_dot=. 2812else 2813 am__leading_dot=_ 2814fi 2815rmdir .tst 2>/dev/null 2816 2817if test "`cd $srcdir && pwd`" != "`pwd`"; then 2818 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2819 # is not polluted with repeated "-I." 2820 am__isrc=' -I$(srcdir)' 2821 # test to see if srcdir already configured 2822 if test -f $srcdir/config.status; then 2823 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2824 fi 2825fi 2826 2827# test whether we have cygpath 2828if test -z "$CYGPATH_W"; then 2829 if (cygpath --version) >/dev/null 2>/dev/null; then 2830 CYGPATH_W='cygpath -w' 2831 else 2832 CYGPATH_W=echo 2833 fi 2834fi 2835 2836 2837# Define the identity of the package. 2838 PACKAGE='gmpc-magnatune' 2839 VERSION='11.8.16' 2840 2841 2842cat >>confdefs.h <<_ACEOF 2843#define PACKAGE "$PACKAGE" 2844_ACEOF 2845 2846 2847cat >>confdefs.h <<_ACEOF 2848#define VERSION "$VERSION" 2849_ACEOF 2850 2851# Some tools Automake needs. 2852 2853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2854 2855 2856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2857 2858 2859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2860 2861 2862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2863 2864 2865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2866 2867# We need awk for the "check" target. The system "awk" is bad on 2868# some platforms. 2869# Always define AMTAR for backward compatibility. 2870 2871AMTAR=${AMTAR-"${am_missing_run}tar"} 2872 2873am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2874 2875 2876 2877 2878 2879 2880 2881$as_echo "#define PLUGIN_MAJOR_VERSION 11" >>confdefs.h 2882 2883 2884$as_echo "#define PLUGIN_MINOR_VERSION 8" >>confdefs.h 2885 2886 2887$as_echo "#define PLUGIN_MICRO_VERSION 16" >>confdefs.h 2888 2889 2890 2891#intltool, libtool. Check for CC compiler 2892 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 2894$as_echo_n "checking whether NLS is requested... " >&6; } 2895 # Check whether --enable-nls was given. 2896if test "${enable_nls+set}" = set; then : 2897 enableval=$enable_nls; USE_NLS=$enableval 2898else 2899 USE_NLS=yes 2900fi 2901 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 2903$as_echo "$USE_NLS" >&6; } 2904 2905 2906DEPDIR="${am__leading_dot}deps" 2907 2908ac_config_commands="$ac_config_commands depfiles" 2909 2910 2911am_make=${MAKE-make} 2912cat > confinc << 'END' 2913am__doit: 2914 @echo this is the am__doit target 2915.PHONY: am__doit 2916END 2917# If we don't find an include directive, just comment out the code. 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2919$as_echo_n "checking for style of include used by $am_make... " >&6; } 2920am__include="#" 2921am__quote= 2922_am_result=none 2923# First try GNU make style include. 2924echo "include confinc" > confmf 2925# Ignore all kinds of additional output from `make'. 2926case `$am_make -s -f confmf 2> /dev/null` in #( 2927*the\ am__doit\ target*) 2928 am__include=include 2929 am__quote= 2930 _am_result=GNU 2931 ;; 2932esac 2933# Now try BSD make style include. 2934if test "$am__include" = "#"; then 2935 echo '.include "confinc"' > confmf 2936 case `$am_make -s -f confmf 2> /dev/null` in #( 2937 *the\ am__doit\ target*) 2938 am__include=.include 2939 am__quote="\"" 2940 _am_result=BSD 2941 ;; 2942 esac 2943fi 2944 2945 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2947$as_echo "$_am_result" >&6; } 2948rm -f confinc confmf 2949 2950# Check whether --enable-dependency-tracking was given. 2951if test "${enable_dependency_tracking+set}" = set; then : 2952 enableval=$enable_dependency_tracking; 2953fi 2954 2955if test "x$enable_dependency_tracking" != xno; then 2956 am_depcomp="$ac_aux_dir/depcomp" 2957 AMDEPBACKSLASH='\' 2958fi 2959 if test "x$enable_dependency_tracking" != xno; then 2960 AMDEP_TRUE= 2961 AMDEP_FALSE='#' 2962else 2963 AMDEP_TRUE='#' 2964 AMDEP_FALSE= 2965fi 2966 2967 2968ac_ext=c 2969ac_cpp='$CPP $CPPFLAGS' 2970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2972ac_compiler_gnu=$ac_cv_c_compiler_gnu 2973if test -n "$ac_tool_prefix"; then 2974 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2975set dummy ${ac_tool_prefix}gcc; ac_word=$2 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2977$as_echo_n "checking for $ac_word... " >&6; } 2978if test "${ac_cv_prog_CC+set}" = set; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 if test -n "$CC"; then 2982 ac_cv_prog_CC="$CC" # Let the user override the test. 2983else 2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2985for as_dir in $PATH 2986do 2987 IFS=$as_save_IFS 2988 test -z "$as_dir" && as_dir=. 2989 for ac_exec_ext in '' $ac_executable_extensions; do 2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2991 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2993 break 2 2994 fi 2995done 2996 done 2997IFS=$as_save_IFS 2998 2999fi 3000fi 3001CC=$ac_cv_prog_CC 3002if test -n "$CC"; then 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3004$as_echo "$CC" >&6; } 3005else 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3007$as_echo "no" >&6; } 3008fi 3009 3010 3011fi 3012if test -z "$ac_cv_prog_CC"; then 3013 ac_ct_CC=$CC 3014 # Extract the first word of "gcc", so it can be a program name with args. 3015set dummy gcc; ac_word=$2 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017$as_echo_n "checking for $ac_word... " >&6; } 3018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3019 $as_echo_n "(cached) " >&6 3020else 3021 if test -n "$ac_ct_CC"; then 3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3023else 3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025for as_dir in $PATH 3026do 3027 IFS=$as_save_IFS 3028 test -z "$as_dir" && as_dir=. 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3031 ac_cv_prog_ac_ct_CC="gcc" 3032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035done 3036 done 3037IFS=$as_save_IFS 3038 3039fi 3040fi 3041ac_ct_CC=$ac_cv_prog_ac_ct_CC 3042if test -n "$ac_ct_CC"; then 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3044$as_echo "$ac_ct_CC" >&6; } 3045else 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3047$as_echo "no" >&6; } 3048fi 3049 3050 if test "x$ac_ct_CC" = x; then 3051 CC="" 3052 else 3053 case $cross_compiling:$ac_tool_warned in 3054yes:) 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3057ac_tool_warned=yes ;; 3058esac 3059 CC=$ac_ct_CC 3060 fi 3061else 3062 CC="$ac_cv_prog_CC" 3063fi 3064 3065if test -z "$CC"; then 3066 if test -n "$ac_tool_prefix"; then 3067 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3068set dummy ${ac_tool_prefix}cc; ac_word=$2 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070$as_echo_n "checking for $ac_word... " >&6; } 3071if test "${ac_cv_prog_CC+set}" = set; then : 3072 $as_echo_n "(cached) " >&6 3073else 3074 if test -n "$CC"; then 3075 ac_cv_prog_CC="$CC" # Let the user override the test. 3076else 3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3078for as_dir in $PATH 3079do 3080 IFS=$as_save_IFS 3081 test -z "$as_dir" && as_dir=. 3082 for ac_exec_ext in '' $ac_executable_extensions; do 3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3084 ac_cv_prog_CC="${ac_tool_prefix}cc" 3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3086 break 2 3087 fi 3088done 3089 done 3090IFS=$as_save_IFS 3091 3092fi 3093fi 3094CC=$ac_cv_prog_CC 3095if test -n "$CC"; then 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3097$as_echo "$CC" >&6; } 3098else 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3100$as_echo "no" >&6; } 3101fi 3102 3103 3104 fi 3105fi 3106if test -z "$CC"; then 3107 # Extract the first word of "cc", so it can be a program name with args. 3108set dummy cc; ac_word=$2 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3110$as_echo_n "checking for $ac_word... " >&6; } 3111if test "${ac_cv_prog_CC+set}" = set; then : 3112 $as_echo_n "(cached) " >&6 3113else 3114 if test -n "$CC"; then 3115 ac_cv_prog_CC="$CC" # Let the user override the test. 3116else 3117 ac_prog_rejected=no 3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3119for as_dir in $PATH 3120do 3121 IFS=$as_save_IFS 3122 test -z "$as_dir" && as_dir=. 3123 for ac_exec_ext in '' $ac_executable_extensions; do 3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3125 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3126 ac_prog_rejected=yes 3127 continue 3128 fi 3129 ac_cv_prog_CC="cc" 3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3131 break 2 3132 fi 3133done 3134 done 3135IFS=$as_save_IFS 3136 3137if test $ac_prog_rejected = yes; then 3138 # We found a bogon in the path, so make sure we never use it. 3139 set dummy $ac_cv_prog_CC 3140 shift 3141 if test $# != 0; then 3142 # We chose a different compiler from the bogus one. 3143 # However, it has the same basename, so the bogon will be chosen 3144 # first if we set CC to just the basename; use the full file name. 3145 shift 3146 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3147 fi 3148fi 3149fi 3150fi 3151CC=$ac_cv_prog_CC 3152if test -n "$CC"; then 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3154$as_echo "$CC" >&6; } 3155else 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157$as_echo "no" >&6; } 3158fi 3159 3160 3161fi 3162if test -z "$CC"; then 3163 if test -n "$ac_tool_prefix"; then 3164 for ac_prog in cl.exe 3165 do 3166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3167set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3169$as_echo_n "checking for $ac_word... " >&6; } 3170if test "${ac_cv_prog_CC+set}" = set; then : 3171 $as_echo_n "(cached) " >&6 3172else 3173 if test -n "$CC"; then 3174 ac_cv_prog_CC="$CC" # Let the user override the test. 3175else 3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3177for as_dir in $PATH 3178do 3179 IFS=$as_save_IFS 3180 test -z "$as_dir" && as_dir=. 3181 for ac_exec_ext in '' $ac_executable_extensions; do 3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3183 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3185 break 2 3186 fi 3187done 3188 done 3189IFS=$as_save_IFS 3190 3191fi 3192fi 3193CC=$ac_cv_prog_CC 3194if test -n "$CC"; then 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3196$as_echo "$CC" >&6; } 3197else 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3199$as_echo "no" >&6; } 3200fi 3201 3202 3203 test -n "$CC" && break 3204 done 3205fi 3206if test -z "$CC"; then 3207 ac_ct_CC=$CC 3208 for ac_prog in cl.exe 3209do 3210 # Extract the first word of "$ac_prog", so it can be a program name with args. 3211set dummy $ac_prog; ac_word=$2 3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3213$as_echo_n "checking for $ac_word... " >&6; } 3214if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 if test -n "$ac_ct_CC"; then 3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3219else 3220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_exec_ext in '' $ac_executable_extensions; do 3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3227 ac_cv_prog_ac_ct_CC="$ac_prog" 3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3229 break 2 3230 fi 3231done 3232 done 3233IFS=$as_save_IFS 3234 3235fi 3236fi 3237ac_ct_CC=$ac_cv_prog_ac_ct_CC 3238if test -n "$ac_ct_CC"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3240$as_echo "$ac_ct_CC" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 3247 test -n "$ac_ct_CC" && break 3248done 3249 3250 if test "x$ac_ct_CC" = x; then 3251 CC="" 3252 else 3253 case $cross_compiling:$ac_tool_warned in 3254yes:) 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3257ac_tool_warned=yes ;; 3258esac 3259 CC=$ac_ct_CC 3260 fi 3261fi 3262 3263fi 3264 3265 3266test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3268as_fn_error $? "no acceptable C compiler found in \$PATH 3269See \`config.log' for more details" "$LINENO" 5 ; } 3270 3271# Provide some information about the compiler. 3272$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3273set X $ac_compile 3274ac_compiler=$2 3275for ac_option in --version -v -V -qversion; do 3276 { { ac_try="$ac_compiler $ac_option >&5" 3277case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282$as_echo "$ac_try_echo"; } >&5 3283 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3284 ac_status=$? 3285 if test -s conftest.err; then 3286 sed '10a\ 3287... rest of stderr output deleted ... 3288 10q' conftest.err >conftest.er1 3289 cat conftest.er1 >&5 3290 fi 3291 rm -f conftest.er1 conftest.err 3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3293 test $ac_status = 0; } 3294done 3295 3296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3297/* end confdefs.h. */ 3298 3299int 3300main () 3301{ 3302 3303 ; 3304 return 0; 3305} 3306_ACEOF 3307ac_clean_files_save=$ac_clean_files 3308ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3309# Try to create an executable without -o first, disregard a.out. 3310# It will help us diagnose broken compilers, and finding out an intuition 3311# of exeext. 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3313$as_echo_n "checking whether the C compiler works... " >&6; } 3314ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3315 3316# The possible output files: 3317ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3318 3319ac_rmfiles= 3320for ac_file in $ac_files 3321do 3322 case $ac_file in 3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3324 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3325 esac 3326done 3327rm -f $ac_rmfiles 3328 3329if { { ac_try="$ac_link_default" 3330case "(($ac_try" in 3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3332 *) ac_try_echo=$ac_try;; 3333esac 3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3335$as_echo "$ac_try_echo"; } >&5 3336 (eval "$ac_link_default") 2>&5 3337 ac_status=$? 3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3339 test $ac_status = 0; }; then : 3340 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3341# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3342# in a Makefile. We should not override ac_cv_exeext if it was cached, 3343# so that the user can short-circuit this test for compilers unknown to 3344# Autoconf. 3345for ac_file in $ac_files '' 3346do 3347 test -f "$ac_file" || continue 3348 case $ac_file in 3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3350 ;; 3351 [ab].out ) 3352 # We found the default executable, but exeext='' is most 3353 # certainly right. 3354 break;; 3355 *.* ) 3356 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3357 then :; else 3358 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3359 fi 3360 # We set ac_cv_exeext here because the later test for it is not 3361 # safe: cross compilers may not add the suffix if given an `-o' 3362 # argument, so we may need to know it at that point already. 3363 # Even if this section looks crufty: it has the advantage of 3364 # actually working. 3365 break;; 3366 * ) 3367 break;; 3368 esac 3369done 3370test "$ac_cv_exeext" = no && ac_cv_exeext= 3371 3372else 3373 ac_file='' 3374fi 3375if test -z "$ac_file"; then : 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3377$as_echo "no" >&6; } 3378$as_echo "$as_me: failed program was:" >&5 3379sed 's/^/| /' conftest.$ac_ext >&5 3380 3381{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3383as_fn_error 77 "C compiler cannot create executables 3384See \`config.log' for more details" "$LINENO" 5 ; } 3385else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3387$as_echo "yes" >&6; } 3388fi 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3390$as_echo_n "checking for C compiler default output file name... " >&6; } 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3392$as_echo "$ac_file" >&6; } 3393ac_exeext=$ac_cv_exeext 3394 3395rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3396ac_clean_files=$ac_clean_files_save 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3398$as_echo_n "checking for suffix of executables... " >&6; } 3399if { { ac_try="$ac_link" 3400case "(($ac_try" in 3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3402 *) ac_try_echo=$ac_try;; 3403esac 3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3405$as_echo "$ac_try_echo"; } >&5 3406 (eval "$ac_link") 2>&5 3407 ac_status=$? 3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3409 test $ac_status = 0; }; then : 3410 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3411# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3412# work properly (i.e., refer to `conftest.exe'), while it won't with 3413# `rm'. 3414for ac_file in conftest.exe conftest conftest.*; do 3415 test -f "$ac_file" || continue 3416 case $ac_file in 3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3418 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3419 break;; 3420 * ) break;; 3421 esac 3422done 3423else 3424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3426as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3427See \`config.log' for more details" "$LINENO" 5 ; } 3428fi 3429rm -f conftest conftest$ac_cv_exeext 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3431$as_echo "$ac_cv_exeext" >&6; } 3432 3433rm -f conftest.$ac_ext 3434EXEEXT=$ac_cv_exeext 3435ac_exeext=$EXEEXT 3436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3437/* end confdefs.h. */ 3438#include <stdio.h> 3439int 3440main () 3441{ 3442FILE *f = fopen ("conftest.out", "w"); 3443 return ferror (f) || fclose (f) != 0; 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449ac_clean_files="$ac_clean_files conftest.out" 3450# Check that the compiler produces executables we can run. If not, either 3451# the compiler is broken, or we cross compile. 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3453$as_echo_n "checking whether we are cross compiling... " >&6; } 3454if test "$cross_compiling" != yes; then 3455 { { ac_try="$ac_link" 3456case "(($ac_try" in 3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3458 *) ac_try_echo=$ac_try;; 3459esac 3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3461$as_echo "$ac_try_echo"; } >&5 3462 (eval "$ac_link") 2>&5 3463 ac_status=$? 3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3465 test $ac_status = 0; } 3466 if { ac_try='./conftest$ac_cv_exeext' 3467 { { case "(($ac_try" in 3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3469 *) ac_try_echo=$ac_try;; 3470esac 3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3472$as_echo "$ac_try_echo"; } >&5 3473 (eval "$ac_try") 2>&5 3474 ac_status=$? 3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3476 test $ac_status = 0; }; }; then 3477 cross_compiling=no 3478 else 3479 if test "$cross_compiling" = maybe; then 3480 cross_compiling=yes 3481 else 3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3484as_fn_error $? "cannot run C compiled programs. 3485If you meant to cross compile, use \`--host'. 3486See \`config.log' for more details" "$LINENO" 5 ; } 3487 fi 3488 fi 3489fi 3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3491$as_echo "$cross_compiling" >&6; } 3492 3493rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3494ac_clean_files=$ac_clean_files_save 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3496$as_echo_n "checking for suffix of object files... " >&6; } 3497if test "${ac_cv_objext+set}" = set; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511rm -f conftest.o conftest.obj 3512if { { ac_try="$ac_compile" 3513case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516esac 3517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3518$as_echo "$ac_try_echo"; } >&5 3519 (eval "$ac_compile") 2>&5 3520 ac_status=$? 3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3522 test $ac_status = 0; }; then : 3523 for ac_file in conftest.o conftest.obj conftest.*; do 3524 test -f "$ac_file" || continue; 3525 case $ac_file in 3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3528 break;; 3529 esac 3530done 3531else 3532 $as_echo "$as_me: failed program was:" >&5 3533sed 's/^/| /' conftest.$ac_ext >&5 3534 3535{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3537as_fn_error $? "cannot compute suffix of object files: cannot compile 3538See \`config.log' for more details" "$LINENO" 5 ; } 3539fi 3540rm -f conftest.$ac_cv_objext conftest.$ac_ext 3541fi 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3543$as_echo "$ac_cv_objext" >&6; } 3544OBJEXT=$ac_cv_objext 3545ac_objext=$OBJEXT 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3547$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3548if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3552/* end confdefs.h. */ 3553 3554int 3555main () 3556{ 3557#ifndef __GNUC__ 3558 choke me 3559#endif 3560 3561 ; 3562 return 0; 3563} 3564_ACEOF 3565if ac_fn_c_try_compile "$LINENO"; then : 3566 ac_compiler_gnu=yes 3567else 3568 ac_compiler_gnu=no 3569fi 3570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3571ac_cv_c_compiler_gnu=$ac_compiler_gnu 3572 3573fi 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3575$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3576if test $ac_compiler_gnu = yes; then 3577 GCC=yes 3578else 3579 GCC= 3580fi 3581ac_test_CFLAGS=${CFLAGS+set} 3582ac_save_CFLAGS=$CFLAGS 3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3584$as_echo_n "checking whether $CC accepts -g... " >&6; } 3585if test "${ac_cv_prog_cc_g+set}" = set; then : 3586 $as_echo_n "(cached) " >&6 3587else 3588 ac_save_c_werror_flag=$ac_c_werror_flag 3589 ac_c_werror_flag=yes 3590 ac_cv_prog_cc_g=no 3591 CFLAGS="-g" 3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3593/* end confdefs.h. */ 3594 3595int 3596main () 3597{ 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603if ac_fn_c_try_compile "$LINENO"; then : 3604 ac_cv_prog_cc_g=yes 3605else 3606 CFLAGS="" 3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609 3610int 3611main () 3612{ 3613 3614 ; 3615 return 0; 3616} 3617_ACEOF 3618if ac_fn_c_try_compile "$LINENO"; then : 3619 3620else 3621 ac_c_werror_flag=$ac_save_c_werror_flag 3622 CFLAGS="-g" 3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625 3626int 3627main () 3628{ 3629 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634if ac_fn_c_try_compile "$LINENO"; then : 3635 ac_cv_prog_cc_g=yes 3636fi 3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3638fi 3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3640fi 3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3642 ac_c_werror_flag=$ac_save_c_werror_flag 3643fi 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3645$as_echo "$ac_cv_prog_cc_g" >&6; } 3646if test "$ac_test_CFLAGS" = set; then 3647 CFLAGS=$ac_save_CFLAGS 3648elif test $ac_cv_prog_cc_g = yes; then 3649 if test "$GCC" = yes; then 3650 CFLAGS="-g -O2" 3651 else 3652 CFLAGS="-g" 3653 fi 3654else 3655 if test "$GCC" = yes; then 3656 CFLAGS="-O2" 3657 else 3658 CFLAGS= 3659 fi 3660fi 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3662$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3663if test "${ac_cv_prog_cc_c89+set}" = set; then : 3664 $as_echo_n "(cached) " >&6 3665else 3666 ac_cv_prog_cc_c89=no 3667ac_save_CC=$CC 3668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669/* end confdefs.h. */ 3670#include <stdarg.h> 3671#include <stdio.h> 3672#include <sys/types.h> 3673#include <sys/stat.h> 3674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3675struct buf { int x; }; 3676FILE * (*rcsopen) (struct buf *, struct stat *, int); 3677static char *e (p, i) 3678 char **p; 3679 int i; 3680{ 3681 return p[i]; 3682} 3683static char *f (char * (*g) (char **, int), char **p, ...) 3684{ 3685 char *s; 3686 va_list v; 3687 va_start (v,p); 3688 s = g (p, va_arg (v,int)); 3689 va_end (v); 3690 return s; 3691} 3692 3693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3694 function prototypes and stuff, but not '\xHH' hex character constants. 3695 These don't provoke an error unfortunately, instead are silently treated 3696 as 'x'. The following induces an error, until -std is added to get 3697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3698 array size at least. It's necessary to write '\x00'==0 to get something 3699 that's true only with -std. */ 3700int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3701 3702/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3703 inside strings and character constants. */ 3704#define FOO(x) 'x' 3705int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3706 3707int test (int i, double x); 3708struct s1 {int (*f) (int a);}; 3709struct s2 {int (*f) (double a);}; 3710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3711int argc; 3712char **argv; 3713int 3714main () 3715{ 3716return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3723do 3724 CC="$ac_save_CC $ac_arg" 3725 if ac_fn_c_try_compile "$LINENO"; then : 3726 ac_cv_prog_cc_c89=$ac_arg 3727fi 3728rm -f core conftest.err conftest.$ac_objext 3729 test "x$ac_cv_prog_cc_c89" != "xno" && break 3730done 3731rm -f conftest.$ac_ext 3732CC=$ac_save_CC 3733 3734fi 3735# AC_CACHE_VAL 3736case "x$ac_cv_prog_cc_c89" in 3737 x) 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3739$as_echo "none needed" >&6; } ;; 3740 xno) 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3742$as_echo "unsupported" >&6; } ;; 3743 *) 3744 CC="$CC $ac_cv_prog_cc_c89" 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3746$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3747esac 3748if test "x$ac_cv_prog_cc_c89" != xno; then : 3749 3750fi 3751 3752ac_ext=c 3753ac_cpp='$CPP $CPPFLAGS' 3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3756ac_compiler_gnu=$ac_cv_c_compiler_gnu 3757 3758depcc="$CC" am_compiler_list= 3759 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3761$as_echo_n "checking dependency style of $depcc... " >&6; } 3762if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3763 $as_echo_n "(cached) " >&6 3764else 3765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3766 # We make a subdir and do the tests there. Otherwise we can end up 3767 # making bogus files that we don't know about and never remove. For 3768 # instance it was reported that on HP-UX the gcc test will end up 3769 # making a dummy file named `D' -- because `-MD' means `put the output 3770 # in D'. 3771 mkdir conftest.dir 3772 # Copy depcomp to subdir because otherwise we won't find it if we're 3773 # using a relative directory. 3774 cp "$am_depcomp" conftest.dir 3775 cd conftest.dir 3776 # We will build objects and dependencies in a subdirectory because 3777 # it helps to detect inapplicable dependency modes. For instance 3778 # both Tru64's cc and ICC support -MD to output dependencies as a 3779 # side effect of compilation, but ICC will put the dependencies in 3780 # the current directory while Tru64 will put them in the object 3781 # directory. 3782 mkdir sub 3783 3784 am_cv_CC_dependencies_compiler_type=none 3785 if test "$am_compiler_list" = ""; then 3786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3787 fi 3788 am__universal=false 3789 case " $depcc " in #( 3790 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3791 esac 3792 3793 for depmode in $am_compiler_list; do 3794 # Setup a source with many dependencies, because some compilers 3795 # like to wrap large dependency lists on column 80 (with \), and 3796 # we should not choose a depcomp mode which is confused by this. 3797 # 3798 # We need to recreate these files for each test, as the compiler may 3799 # overwrite some of them when testing with obscure command lines. 3800 # This happens at least with the AIX C compiler. 3801 : > sub/conftest.c 3802 for i in 1 2 3 4 5 6; do 3803 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3804 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3805 # Solaris 8's {/usr,}/bin/sh. 3806 touch sub/conftst$i.h 3807 done 3808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3809 3810 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3811 # mode. It turns out that the SunPro C++ compiler does not properly 3812 # handle `-M -o', and we need to detect this. Also, some Intel 3813 # versions had trouble with output in subdirs 3814 am__obj=sub/conftest.${OBJEXT-o} 3815 am__minus_obj="-o $am__obj" 3816 case $depmode in 3817 gcc) 3818 # This depmode causes a compiler race in universal mode. 3819 test "$am__universal" = false || continue 3820 ;; 3821 nosideeffect) 3822 # after this tag, mechanisms are not by side-effect, so they'll 3823 # only be used when explicitly requested 3824 if test "x$enable_dependency_tracking" = xyes; then 3825 continue 3826 else 3827 break 3828 fi 3829 ;; 3830 msvisualcpp | msvcmsys) 3831 # This compiler won't grok `-c -o', but also, the minuso test has 3832 # not run yet. These depmodes are late enough in the game, and 3833 # so weak that their functioning should not be impacted. 3834 am__obj=conftest.${OBJEXT-o} 3835 am__minus_obj= 3836 ;; 3837 none) break ;; 3838 esac 3839 if depmode=$depmode \ 3840 source=sub/conftest.c object=$am__obj \ 3841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3843 >/dev/null 2>conftest.err && 3844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3848 # icc doesn't choke on unknown options, it will just issue warnings 3849 # or remarks (even with -Werror). So we grep stderr for any message 3850 # that says an option was ignored or not supported. 3851 # When given -MP, icc 7.0 and 7.1 complain thusly: 3852 # icc: Command line warning: ignoring option '-M'; no argument required 3853 # The diagnosis changed in icc 8.0: 3854 # icc: Command line remark: option '-MP' not supported 3855 if (grep 'ignoring option' conftest.err || 3856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3857 am_cv_CC_dependencies_compiler_type=$depmode 3858 break 3859 fi 3860 fi 3861 done 3862 3863 cd .. 3864 rm -rf conftest.dir 3865else 3866 am_cv_CC_dependencies_compiler_type=none 3867fi 3868 3869fi 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3871$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3872CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3873 3874 if 3875 test "x$enable_dependency_tracking" != xno \ 3876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3877 am__fastdepCC_TRUE= 3878 am__fastdepCC_FALSE='#' 3879else 3880 am__fastdepCC_TRUE='#' 3881 am__fastdepCC_FALSE= 3882fi 3883 3884 3885 3886 3887 3888case "$am__api_version" in 3889 1.01234) 3890 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 3891 ;; 3892 *) 3893 ;; 3894esac 3895 3896if test -n "0.21"; then 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.21" >&5 3898$as_echo_n "checking for intltool >= 0.21... " >&6; } 3899 3900 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.21 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 3901 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` 3902 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 3903 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 3905$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } 3906 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 3907 as_fn_error $? "Your intltool is too old. You need intltool 0.21 or later." "$LINENO" 5 3908fi 3909 3910# Extract the first word of "intltool-update", so it can be a program name with args. 3911set dummy intltool-update; ac_word=$2 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3913$as_echo_n "checking for $ac_word... " >&6; } 3914if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 case $INTLTOOL_UPDATE in 3918 [\\/]* | ?:[\\/]*) 3919 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path. 3920 ;; 3921 *) 3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3923for as_dir in $PATH 3924do 3925 IFS=$as_save_IFS 3926 test -z "$as_dir" && as_dir=. 3927 for ac_exec_ext in '' $ac_executable_extensions; do 3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3929 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext" 3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3931 break 2 3932 fi 3933done 3934 done 3935IFS=$as_save_IFS 3936 3937 ;; 3938esac 3939fi 3940INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE 3941if test -n "$INTLTOOL_UPDATE"; then 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5 3943$as_echo "$INTLTOOL_UPDATE" >&6; } 3944else 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3946$as_echo "no" >&6; } 3947fi 3948 3949 3950# Extract the first word of "intltool-merge", so it can be a program name with args. 3951set dummy intltool-merge; ac_word=$2 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3953$as_echo_n "checking for $ac_word... " >&6; } 3954if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then : 3955 $as_echo_n "(cached) " >&6 3956else 3957 case $INTLTOOL_MERGE in 3958 [\\/]* | ?:[\\/]*) 3959 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path. 3960 ;; 3961 *) 3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3963for as_dir in $PATH 3964do 3965 IFS=$as_save_IFS 3966 test -z "$as_dir" && as_dir=. 3967 for ac_exec_ext in '' $ac_executable_extensions; do 3968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3969 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext" 3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3971 break 2 3972 fi 3973done 3974 done 3975IFS=$as_save_IFS 3976 3977 ;; 3978esac 3979fi 3980INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE 3981if test -n "$INTLTOOL_MERGE"; then 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5 3983$as_echo "$INTLTOOL_MERGE" >&6; } 3984else 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986$as_echo "no" >&6; } 3987fi 3988 3989 3990# Extract the first word of "intltool-extract", so it can be a program name with args. 3991set dummy intltool-extract; ac_word=$2 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3993$as_echo_n "checking for $ac_word... " >&6; } 3994if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then : 3995 $as_echo_n "(cached) " >&6 3996else 3997 case $INTLTOOL_EXTRACT in 3998 [\\/]* | ?:[\\/]*) 3999 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path. 4000 ;; 4001 *) 4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4003for as_dir in $PATH 4004do 4005 IFS=$as_save_IFS 4006 test -z "$as_dir" && as_dir=. 4007 for ac_exec_ext in '' $ac_executable_extensions; do 4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4009 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext" 4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4011 break 2 4012 fi 4013done 4014 done 4015IFS=$as_save_IFS 4016 4017 ;; 4018esac 4019fi 4020INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT 4021if test -n "$INTLTOOL_EXTRACT"; then 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5 4023$as_echo "$INTLTOOL_EXTRACT" >&6; } 4024else 4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4026$as_echo "no" >&6; } 4027fi 4028 4029 4030if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then 4031 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 4032fi 4033 4034 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4035INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4036 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4037 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4038 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' 4039 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4040 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4041 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4042INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4043 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4044 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4045 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 4046 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4047 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4048 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4049 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4050 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4051 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4052 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150# Check the gettext tools to make sure they are GNU 4151# Extract the first word of "xgettext", so it can be a program name with args. 4152set dummy xgettext; ac_word=$2 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4154$as_echo_n "checking for $ac_word... " >&6; } 4155if test "${ac_cv_path_XGETTEXT+set}" = set; then : 4156 $as_echo_n "(cached) " >&6 4157else 4158 case $XGETTEXT in 4159 [\\/]* | ?:[\\/]*) 4160 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4161 ;; 4162 *) 4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH 4165do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_exec_ext in '' $ac_executable_extensions; do 4169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4170 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4172 break 2 4173 fi 4174done 4175 done 4176IFS=$as_save_IFS 4177 4178 ;; 4179esac 4180fi 4181XGETTEXT=$ac_cv_path_XGETTEXT 4182if test -n "$XGETTEXT"; then 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 4184$as_echo "$XGETTEXT" >&6; } 4185else 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4187$as_echo "no" >&6; } 4188fi 4189 4190 4191# Extract the first word of "msgmerge", so it can be a program name with args. 4192set dummy msgmerge; ac_word=$2 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4194$as_echo_n "checking for $ac_word... " >&6; } 4195if test "${ac_cv_path_MSGMERGE+set}" = set; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 case $MSGMERGE in 4199 [\\/]* | ?:[\\/]*) 4200 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4201 ;; 4202 *) 4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4204for as_dir in $PATH 4205do 4206 IFS=$as_save_IFS 4207 test -z "$as_dir" && as_dir=. 4208 for ac_exec_ext in '' $ac_executable_extensions; do 4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4210 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 4211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4212 break 2 4213 fi 4214done 4215 done 4216IFS=$as_save_IFS 4217 4218 ;; 4219esac 4220fi 4221MSGMERGE=$ac_cv_path_MSGMERGE 4222if test -n "$MSGMERGE"; then 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 4224$as_echo "$MSGMERGE" >&6; } 4225else 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227$as_echo "no" >&6; } 4228fi 4229 4230 4231# Extract the first word of "msgfmt", so it can be a program name with args. 4232set dummy msgfmt; ac_word=$2 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4234$as_echo_n "checking for $ac_word... " >&6; } 4235if test "${ac_cv_path_MSGFMT+set}" = set; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 case $MSGFMT in 4239 [\\/]* | ?:[\\/]*) 4240 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4241 ;; 4242 *) 4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244for as_dir in $PATH 4245do 4246 IFS=$as_save_IFS 4247 test -z "$as_dir" && as_dir=. 4248 for ac_exec_ext in '' $ac_executable_extensions; do 4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4250 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4252 break 2 4253 fi 4254done 4255 done 4256IFS=$as_save_IFS 4257 4258 ;; 4259esac 4260fi 4261MSGFMT=$ac_cv_path_MSGFMT 4262if test -n "$MSGFMT"; then 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 4264$as_echo "$MSGFMT" >&6; } 4265else 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4267$as_echo "no" >&6; } 4268fi 4269 4270 4271# Extract the first word of "gmsgfmt", so it can be a program name with args. 4272set dummy gmsgfmt; ac_word=$2 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4274$as_echo_n "checking for $ac_word... " >&6; } 4275if test "${ac_cv_path_GMSGFMT+set}" = set; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 case $GMSGFMT in 4279 [\\/]* | ?:[\\/]*) 4280 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4281 ;; 4282 *) 4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4284for as_dir in $PATH 4285do 4286 IFS=$as_save_IFS 4287 test -z "$as_dir" && as_dir=. 4288 for ac_exec_ext in '' $ac_executable_extensions; do 4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4290 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4292 break 2 4293 fi 4294done 4295 done 4296IFS=$as_save_IFS 4297 4298 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4299 ;; 4300esac 4301fi 4302GMSGFMT=$ac_cv_path_GMSGFMT 4303if test -n "$GMSGFMT"; then 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 4305$as_echo "$GMSGFMT" >&6; } 4306else 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4308$as_echo "no" >&6; } 4309fi 4310 4311 4312if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then 4313 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 4314fi 4315xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" 4316mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" 4317mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" 4318if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then 4319 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 4320fi 4321 4322# Extract the first word of "perl", so it can be a program name with args. 4323set dummy perl; ac_word=$2 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4325$as_echo_n "checking for $ac_word... " >&6; } 4326if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 case $INTLTOOL_PERL in 4330 [\\/]* | ?:[\\/]*) 4331 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 4332 ;; 4333 *) 4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4335for as_dir in $PATH 4336do 4337 IFS=$as_save_IFS 4338 test -z "$as_dir" && as_dir=. 4339 for ac_exec_ext in '' $ac_executable_extensions; do 4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4341 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4343 break 2 4344 fi 4345done 4346 done 4347IFS=$as_save_IFS 4348 4349 ;; 4350esac 4351fi 4352INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 4353if test -n "$INTLTOOL_PERL"; then 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 4355$as_echo "$INTLTOOL_PERL" >&6; } 4356else 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4358$as_echo "no" >&6; } 4359fi 4360 4361 4362if test -z "$INTLTOOL_PERL"; then 4363 as_fn_error $? "perl not found" "$LINENO" 5 4364fi 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 4366$as_echo_n "checking for perl >= 5.8.1... " >&6; } 4367$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 4368if test $? -ne 0; then 4369 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 4370else 4371 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 4373$as_echo "$IT_PERL_VERSION" >&6; } 4374fi 4375if test "x" != "xno-xml"; then 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 4377$as_echo_n "checking for XML::Parser... " >&6; } 4378 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 4380$as_echo "ok" >&6; } 4381 else 4382 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 4383 fi 4384fi 4385 4386# Substitute ALL_LINGUAS so we can use it in po/Makefile 4387 4388 4389# Set DATADIRNAME correctly if it is not set yet 4390# (copied from glib-gettext.m4) 4391if test -z "$DATADIRNAME"; then 4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4393/* end confdefs.h. */ 4394 4395int 4396main () 4397{ 4398extern int _nl_msg_cat_cntr; 4399 return _nl_msg_cat_cntr 4400 ; 4401 return 0; 4402} 4403_ACEOF 4404if ac_fn_c_try_link "$LINENO"; then : 4405 DATADIRNAME=share 4406else 4407 case $host in 4408 *-*-solaris*) 4409 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 4410if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 4411 DATADIRNAME=share 4412else 4413 DATADIRNAME=lib 4414fi 4415 4416 ;; 4417 *) 4418 DATADIRNAME=lib 4419 ;; 4420 esac 4421fi 4422rm -f core conftest.err conftest.$ac_objext \ 4423 conftest$ac_exeext conftest.$ac_ext 4424fi 4425 4426 4427 4428 4429 4430 4431# i18n support 4432ALL_LINGUAS="" 4433 4434GETTEXT_PACKAGE=gmpc-magnatune 4435 4436 4437cat >>confdefs.h <<_ACEOF 4438#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 4439_ACEOF 4440 4441ac_ext=c 4442ac_cpp='$CPP $CPPFLAGS' 4443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4445ac_compiler_gnu=$ac_cv_c_compiler_gnu 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4447$as_echo_n "checking how to run the C preprocessor... " >&6; } 4448# On Suns, sometimes $CPP names a directory. 4449if test -n "$CPP" && test -d "$CPP"; then 4450 CPP= 4451fi 4452if test -z "$CPP"; then 4453 if test "${ac_cv_prog_CPP+set}" = set; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 # Double quotes because CPP needs to be expanded 4457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4458 do 4459 ac_preproc_ok=false 4460for ac_c_preproc_warn_flag in '' yes 4461do 4462 # Use a header file that comes with gcc, so configuring glibc 4463 # with a fresh cross-compiler works. 4464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4465 # <limits.h> exists even on freestanding compilers. 4466 # On the NeXT, cc -E runs the code through the compiler's parser, 4467 # not just through cpp. "Syntax error" is here to catch this case. 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469/* end confdefs.h. */ 4470#ifdef __STDC__ 4471# include <limits.h> 4472#else 4473# include <assert.h> 4474#endif 4475 Syntax error 4476_ACEOF 4477if ac_fn_c_try_cpp "$LINENO"; then : 4478 4479else 4480 # Broken: fails on valid input. 4481continue 4482fi 4483rm -f conftest.err conftest.i conftest.$ac_ext 4484 4485 # OK, works on sane cases. Now check whether nonexistent headers 4486 # can be detected and how. 4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489#include <ac_nonexistent.h> 4490_ACEOF 4491if ac_fn_c_try_cpp "$LINENO"; then : 4492 # Broken: success on invalid input. 4493continue 4494else 4495 # Passes both tests. 4496ac_preproc_ok=: 4497break 4498fi 4499rm -f conftest.err conftest.i conftest.$ac_ext 4500 4501done 4502# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4503rm -f conftest.i conftest.err conftest.$ac_ext 4504if $ac_preproc_ok; then : 4505 break 4506fi 4507 4508 done 4509 ac_cv_prog_CPP=$CPP 4510 4511fi 4512 CPP=$ac_cv_prog_CPP 4513else 4514 ac_cv_prog_CPP=$CPP 4515fi 4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4517$as_echo "$CPP" >&6; } 4518ac_preproc_ok=false 4519for ac_c_preproc_warn_flag in '' yes 4520do 4521 # Use a header file that comes with gcc, so configuring glibc 4522 # with a fresh cross-compiler works. 4523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4524 # <limits.h> exists even on freestanding compilers. 4525 # On the NeXT, cc -E runs the code through the compiler's parser, 4526 # not just through cpp. "Syntax error" is here to catch this case. 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4528/* end confdefs.h. */ 4529#ifdef __STDC__ 4530# include <limits.h> 4531#else 4532# include <assert.h> 4533#endif 4534 Syntax error 4535_ACEOF 4536if ac_fn_c_try_cpp "$LINENO"; then : 4537 4538else 4539 # Broken: fails on valid input. 4540continue 4541fi 4542rm -f conftest.err conftest.i conftest.$ac_ext 4543 4544 # OK, works on sane cases. Now check whether nonexistent headers 4545 # can be detected and how. 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548#include <ac_nonexistent.h> 4549_ACEOF 4550if ac_fn_c_try_cpp "$LINENO"; then : 4551 # Broken: success on invalid input. 4552continue 4553else 4554 # Passes both tests. 4555ac_preproc_ok=: 4556break 4557fi 4558rm -f conftest.err conftest.i conftest.$ac_ext 4559 4560done 4561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4562rm -f conftest.i conftest.err conftest.$ac_ext 4563if $ac_preproc_ok; then : 4564 4565else 4566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4568as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4569See \`config.log' for more details" "$LINENO" 5 ; } 4570fi 4571 4572ac_ext=c 4573ac_cpp='$CPP $CPPFLAGS' 4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4576ac_compiler_gnu=$ac_cv_c_compiler_gnu 4577 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4580$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4581if test "${ac_cv_path_GREP+set}" = set; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 if test -z "$GREP"; then 4585 ac_path_GREP_found=false 4586 # Loop through the user's path and test for each of PROGNAME-LIST 4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4589do 4590 IFS=$as_save_IFS 4591 test -z "$as_dir" && as_dir=. 4592 for ac_prog in grep ggrep; do 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4595 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4596# Check for GNU ac_path_GREP and select it if it is found. 4597 # Check for GNU $ac_path_GREP 4598case `"$ac_path_GREP" --version 2>&1` in 4599*GNU*) 4600 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4601*) 4602 ac_count=0 4603 $as_echo_n 0123456789 >"conftest.in" 4604 while : 4605 do 4606 cat "conftest.in" "conftest.in" >"conftest.tmp" 4607 mv "conftest.tmp" "conftest.in" 4608 cp "conftest.in" "conftest.nl" 4609 $as_echo 'GREP' >> "conftest.nl" 4610 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4612 as_fn_arith $ac_count + 1 && ac_count=$as_val 4613 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4614 # Best one so far, save it but keep looking for a better one 4615 ac_cv_path_GREP="$ac_path_GREP" 4616 ac_path_GREP_max=$ac_count 4617 fi 4618 # 10*(2^10) chars as input seems more than enough 4619 test $ac_count -gt 10 && break 4620 done 4621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4622esac 4623 4624 $ac_path_GREP_found && break 3 4625 done 4626 done 4627 done 4628IFS=$as_save_IFS 4629 if test -z "$ac_cv_path_GREP"; then 4630 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4631 fi 4632else 4633 ac_cv_path_GREP=$GREP 4634fi 4635 4636fi 4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4638$as_echo "$ac_cv_path_GREP" >&6; } 4639 GREP="$ac_cv_path_GREP" 4640 4641 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4643$as_echo_n "checking for egrep... " >&6; } 4644if test "${ac_cv_path_EGREP+set}" = set; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4648 then ac_cv_path_EGREP="$GREP -E" 4649 else 4650 if test -z "$EGREP"; then 4651 ac_path_EGREP_found=false 4652 # Loop through the user's path and test for each of PROGNAME-LIST 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4655do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_prog in egrep; do 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4661 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4662# Check for GNU ac_path_EGREP and select it if it is found. 4663 # Check for GNU $ac_path_EGREP 4664case `"$ac_path_EGREP" --version 2>&1` in 4665*GNU*) 4666 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4667*) 4668 ac_count=0 4669 $as_echo_n 0123456789 >"conftest.in" 4670 while : 4671 do 4672 cat "conftest.in" "conftest.in" >"conftest.tmp" 4673 mv "conftest.tmp" "conftest.in" 4674 cp "conftest.in" "conftest.nl" 4675 $as_echo 'EGREP' >> "conftest.nl" 4676 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4678 as_fn_arith $ac_count + 1 && ac_count=$as_val 4679 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4680 # Best one so far, save it but keep looking for a better one 4681 ac_cv_path_EGREP="$ac_path_EGREP" 4682 ac_path_EGREP_max=$ac_count 4683 fi 4684 # 10*(2^10) chars as input seems more than enough 4685 test $ac_count -gt 10 && break 4686 done 4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4688esac 4689 4690 $ac_path_EGREP_found && break 3 4691 done 4692 done 4693 done 4694IFS=$as_save_IFS 4695 if test -z "$ac_cv_path_EGREP"; then 4696 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4697 fi 4698else 4699 ac_cv_path_EGREP=$EGREP 4700fi 4701 4702 fi 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4705$as_echo "$ac_cv_path_EGREP" >&6; } 4706 EGREP="$ac_cv_path_EGREP" 4707 4708 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4710$as_echo_n "checking for ANSI C header files... " >&6; } 4711if test "${ac_cv_header_stdc+set}" = set; then : 4712 $as_echo_n "(cached) " >&6 4713else 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715/* end confdefs.h. */ 4716#include <stdlib.h> 4717#include <stdarg.h> 4718#include <string.h> 4719#include <float.h> 4720 4721int 4722main () 4723{ 4724 4725 ; 4726 return 0; 4727} 4728_ACEOF 4729if ac_fn_c_try_compile "$LINENO"; then : 4730 ac_cv_header_stdc=yes 4731else 4732 ac_cv_header_stdc=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735 4736if test $ac_cv_header_stdc = yes; then 4737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739/* end confdefs.h. */ 4740#include <string.h> 4741 4742_ACEOF 4743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4744 $EGREP "memchr" >/dev/null 2>&1; then : 4745 4746else 4747 ac_cv_header_stdc=no 4748fi 4749rm -f conftest* 4750 4751fi 4752 4753if test $ac_cv_header_stdc = yes; then 4754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4756/* end confdefs.h. */ 4757#include <stdlib.h> 4758 4759_ACEOF 4760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4761 $EGREP "free" >/dev/null 2>&1; then : 4762 4763else 4764 ac_cv_header_stdc=no 4765fi 4766rm -f conftest* 4767 4768fi 4769 4770if test $ac_cv_header_stdc = yes; then 4771 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4772 if test "$cross_compiling" = yes; then : 4773 : 4774else 4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4776/* end confdefs.h. */ 4777#include <ctype.h> 4778#include <stdlib.h> 4779#if ((' ' & 0x0FF) == 0x020) 4780# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4781# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4782#else 4783# define ISLOWER(c) \ 4784 (('a' <= (c) && (c) <= 'i') \ 4785 || ('j' <= (c) && (c) <= 'r') \ 4786 || ('s' <= (c) && (c) <= 'z')) 4787# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4788#endif 4789 4790#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4791int 4792main () 4793{ 4794 int i; 4795 for (i = 0; i < 256; i++) 4796 if (XOR (islower (i), ISLOWER (i)) 4797 || toupper (i) != TOUPPER (i)) 4798 return 2; 4799 return 0; 4800} 4801_ACEOF 4802if ac_fn_c_try_run "$LINENO"; then : 4803 4804else 4805 ac_cv_header_stdc=no 4806fi 4807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4808 conftest.$ac_objext conftest.beam conftest.$ac_ext 4809fi 4810 4811fi 4812fi 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4814$as_echo "$ac_cv_header_stdc" >&6; } 4815if test $ac_cv_header_stdc = yes; then 4816 4817$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4818 4819fi 4820 4821# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4822for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4823 inttypes.h stdint.h unistd.h 4824do : 4825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4826ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4827" 4828if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4829 cat >>confdefs.h <<_ACEOF 4830#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4831_ACEOF 4832 4833fi 4834 4835done 4836 4837 4838 4839 for ac_header in locale.h 4840do : 4841 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 4842if test "x$ac_cv_header_locale_h" = x""yes; then : 4843 cat >>confdefs.h <<_ACEOF 4844#define HAVE_LOCALE_H 1 4845_ACEOF 4846 4847fi 4848 4849done 4850 4851 if test $ac_cv_header_locale_h = yes; then 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 4853$as_echo_n "checking for LC_MESSAGES... " >&6; } 4854if test "${am_cv_val_LC_MESSAGES+set}" = set; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859#include <locale.h> 4860int 4861main () 4862{ 4863return LC_MESSAGES 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868if ac_fn_c_try_link "$LINENO"; then : 4869 am_cv_val_LC_MESSAGES=yes 4870else 4871 am_cv_val_LC_MESSAGES=no 4872fi 4873rm -f core conftest.err conftest.$ac_objext \ 4874 conftest$ac_exeext conftest.$ac_ext 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 4877$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 4878 if test $am_cv_val_LC_MESSAGES = yes; then 4879 4880$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 4881 4882 fi 4883 fi 4884 USE_NLS=yes 4885 4886 4887 gt_cv_have_gettext=no 4888 4889 CATOBJEXT=NONE 4890 XGETTEXT=: 4891 INTLLIBS= 4892 4893 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 4894if test "x$ac_cv_header_libintl_h" = x""yes; then : 4895 gt_cv_func_dgettext_libintl="no" 4896 libintl_extra_libs="" 4897 4898 # 4899 # First check in libc 4900 # 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 4902$as_echo_n "checking for ngettext in libc... " >&6; } 4903if test "${gt_cv_func_ngettext_libc+set}" = set; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908 4909#include <libintl.h> 4910 4911int 4912main () 4913{ 4914return !ngettext ("","", 1) 4915 ; 4916 return 0; 4917} 4918_ACEOF 4919if ac_fn_c_try_link "$LINENO"; then : 4920 gt_cv_func_ngettext_libc=yes 4921else 4922 gt_cv_func_ngettext_libc=no 4923fi 4924rm -f core conftest.err conftest.$ac_objext \ 4925 conftest$ac_exeext conftest.$ac_ext 4926 4927fi 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5 4929$as_echo "$gt_cv_func_ngettext_libc" >&6; } 4930 4931 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 4933$as_echo_n "checking for dgettext in libc... " >&6; } 4934if test "${gt_cv_func_dgettext_libc+set}" = set; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4938/* end confdefs.h. */ 4939 4940#include <libintl.h> 4941 4942int 4943main () 4944{ 4945return !dgettext ("","") 4946 ; 4947 return 0; 4948} 4949_ACEOF 4950if ac_fn_c_try_link "$LINENO"; then : 4951 gt_cv_func_dgettext_libc=yes 4952else 4953 gt_cv_func_dgettext_libc=no 4954fi 4955rm -f core conftest.err conftest.$ac_objext \ 4956 conftest$ac_exeext conftest.$ac_ext 4957 4958fi 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5 4960$as_echo "$gt_cv_func_dgettext_libc" >&6; } 4961 fi 4962 4963 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4964 for ac_func in bind_textdomain_codeset 4965do : 4966 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 4967if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 4968 cat >>confdefs.h <<_ACEOF 4969#define HAVE_BIND_TEXTDOMAIN_CODESET 1 4970_ACEOF 4971 4972fi 4973done 4974 4975 fi 4976 4977 # 4978 # If we don't have everything we want, check in libintl 4979 # 4980 if test "$gt_cv_func_dgettext_libc" != "yes" \ 4981 || test "$gt_cv_func_ngettext_libc" != "yes" \ 4982 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 4983 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 4985$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 4986if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then : 4987 $as_echo_n "(cached) " >&6 4988else 4989 ac_check_lib_save_LIBS=$LIBS 4990LIBS="-lintl $LIBS" 4991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4992/* end confdefs.h. */ 4993 4994/* Override any GCC internal prototype to avoid an error. 4995 Use char because int might match the return type of a GCC 4996 builtin and then its argument prototype would still apply. */ 4997#ifdef __cplusplus 4998extern "C" 4999#endif 5000char bindtextdomain (); 5001int 5002main () 5003{ 5004return bindtextdomain (); 5005 ; 5006 return 0; 5007} 5008_ACEOF 5009if ac_fn_c_try_link "$LINENO"; then : 5010 ac_cv_lib_intl_bindtextdomain=yes 5011else 5012 ac_cv_lib_intl_bindtextdomain=no 5013fi 5014rm -f core conftest.err conftest.$ac_objext \ 5015 conftest$ac_exeext conftest.$ac_ext 5016LIBS=$ac_check_lib_save_LIBS 5017fi 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 5019$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 5020if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then : 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 5022$as_echo_n "checking for ngettext in -lintl... " >&6; } 5023if test "${ac_cv_lib_intl_ngettext+set}" = set; then : 5024 $as_echo_n "(cached) " >&6 5025else 5026 ac_check_lib_save_LIBS=$LIBS 5027LIBS="-lintl $LIBS" 5028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5029/* end confdefs.h. */ 5030 5031/* Override any GCC internal prototype to avoid an error. 5032 Use char because int might match the return type of a GCC 5033 builtin and then its argument prototype would still apply. */ 5034#ifdef __cplusplus 5035extern "C" 5036#endif 5037char ngettext (); 5038int 5039main () 5040{ 5041return ngettext (); 5042 ; 5043 return 0; 5044} 5045_ACEOF 5046if ac_fn_c_try_link "$LINENO"; then : 5047 ac_cv_lib_intl_ngettext=yes 5048else 5049 ac_cv_lib_intl_ngettext=no 5050fi 5051rm -f core conftest.err conftest.$ac_objext \ 5052 conftest$ac_exeext conftest.$ac_ext 5053LIBS=$ac_check_lib_save_LIBS 5054fi 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 5056$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 5057if test "x$ac_cv_lib_intl_ngettext" = x""yes; then : 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 5059$as_echo_n "checking for dgettext in -lintl... " >&6; } 5060if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 ac_check_lib_save_LIBS=$LIBS 5064LIBS="-lintl $LIBS" 5065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5066/* end confdefs.h. */ 5067 5068/* Override any GCC internal prototype to avoid an error. 5069 Use char because int might match the return type of a GCC 5070 builtin and then its argument prototype would still apply. */ 5071#ifdef __cplusplus 5072extern "C" 5073#endif 5074char dgettext (); 5075int 5076main () 5077{ 5078return dgettext (); 5079 ; 5080 return 0; 5081} 5082_ACEOF 5083if ac_fn_c_try_link "$LINENO"; then : 5084 ac_cv_lib_intl_dgettext=yes 5085else 5086 ac_cv_lib_intl_dgettext=no 5087fi 5088rm -f core conftest.err conftest.$ac_objext \ 5089 conftest$ac_exeext conftest.$ac_ext 5090LIBS=$ac_check_lib_save_LIBS 5091fi 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 5093$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 5094if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 5095 gt_cv_func_dgettext_libintl=yes 5096fi 5097 5098fi 5099 5100fi 5101 5102 5103 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5 5105$as_echo_n "checking if -liconv is needed to use gettext... " >&6; } 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 5107$as_echo "" >&6; } 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 5109$as_echo_n "checking for ngettext in -lintl... " >&6; } 5110if test "${ac_cv_lib_intl_ngettext+set}" = set; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 ac_check_lib_save_LIBS=$LIBS 5114LIBS="-lintl -liconv $LIBS" 5115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117 5118/* Override any GCC internal prototype to avoid an error. 5119 Use char because int might match the return type of a GCC 5120 builtin and then its argument prototype would still apply. */ 5121#ifdef __cplusplus 5122extern "C" 5123#endif 5124char ngettext (); 5125int 5126main () 5127{ 5128return ngettext (); 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133if ac_fn_c_try_link "$LINENO"; then : 5134 ac_cv_lib_intl_ngettext=yes 5135else 5136 ac_cv_lib_intl_ngettext=no 5137fi 5138rm -f core conftest.err conftest.$ac_objext \ 5139 conftest$ac_exeext conftest.$ac_ext 5140LIBS=$ac_check_lib_save_LIBS 5141fi 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 5143$as_echo "$ac_cv_lib_intl_ngettext" >&6; } 5144if test "x$ac_cv_lib_intl_ngettext" = x""yes; then : 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 5146$as_echo_n "checking for dcgettext in -lintl... " >&6; } 5147if test "${ac_cv_lib_intl_dcgettext+set}" = set; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 ac_check_lib_save_LIBS=$LIBS 5151LIBS="-lintl -liconv $LIBS" 5152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5153/* end confdefs.h. */ 5154 5155/* Override any GCC internal prototype to avoid an error. 5156 Use char because int might match the return type of a GCC 5157 builtin and then its argument prototype would still apply. */ 5158#ifdef __cplusplus 5159extern "C" 5160#endif 5161char dcgettext (); 5162int 5163main () 5164{ 5165return dcgettext (); 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170if ac_fn_c_try_link "$LINENO"; then : 5171 ac_cv_lib_intl_dcgettext=yes 5172else 5173 ac_cv_lib_intl_dcgettext=no 5174fi 5175rm -f core conftest.err conftest.$ac_objext \ 5176 conftest$ac_exeext conftest.$ac_ext 5177LIBS=$ac_check_lib_save_LIBS 5178fi 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 5180$as_echo "$ac_cv_lib_intl_dcgettext" >&6; } 5181if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then : 5182 gt_cv_func_dgettext_libintl=yes 5183 libintl_extra_libs=-liconv 5184else 5185 : 5186fi 5187 5188else 5189 : 5190fi 5191 5192 fi 5193 5194 # 5195 # If we found libintl, then check in it for bind_textdomain_codeset(); 5196 # we'll prefer libc if neither have bind_textdomain_codeset(), 5197 # and both have dgettext and ngettext 5198 # 5199 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 5200 glib_save_LIBS="$LIBS" 5201 LIBS="$LIBS -lintl $libintl_extra_libs" 5202 unset ac_cv_func_bind_textdomain_codeset 5203 for ac_func in bind_textdomain_codeset 5204do : 5205 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 5206if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 5207 cat >>confdefs.h <<_ACEOF 5208#define HAVE_BIND_TEXTDOMAIN_CODESET 1 5209_ACEOF 5210 5211fi 5212done 5213 5214 LIBS="$glib_save_LIBS" 5215 5216 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 5217 gt_cv_func_dgettext_libc=no 5218 else 5219 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5220 && test "$gt_cv_func_ngettext_libc" = "yes"; then 5221 gt_cv_func_dgettext_libintl=no 5222 fi 5223 fi 5224 fi 5225 fi 5226 5227 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5228 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 5229 gt_cv_have_gettext=yes 5230 fi 5231 5232 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 5233 INTLLIBS="-lintl $libintl_extra_libs" 5234 fi 5235 5236 if test "$gt_cv_have_gettext" = "yes"; then 5237 5238$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 5239 5240 # Extract the first word of "msgfmt", so it can be a program name with args. 5241set dummy msgfmt; ac_word=$2 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5243$as_echo_n "checking for $ac_word... " >&6; } 5244if test "${ac_cv_path_MSGFMT+set}" = set; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 case "$MSGFMT" in 5248 /*) 5249 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5250 ;; 5251 *) 5252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5253 for ac_dir in $PATH; do 5254 test -z "$ac_dir" && ac_dir=. 5255 if test -f $ac_dir/$ac_word; then 5256 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 5257 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 5258 break 5259 fi 5260 fi 5261 done 5262 IFS="$ac_save_ifs" 5263 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 5264 ;; 5265esac 5266fi 5267MSGFMT="$ac_cv_path_MSGFMT" 5268if test "$MSGFMT" != "no"; then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5270$as_echo "$MSGFMT" >&6; } 5271else 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5273$as_echo "no" >&6; } 5274fi 5275 if test "$MSGFMT" != "no"; then 5276 glib_save_LIBS="$LIBS" 5277 LIBS="$LIBS $INTLLIBS" 5278 for ac_func in dcgettext 5279do : 5280 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" 5281if test "x$ac_cv_func_dcgettext" = x""yes; then : 5282 cat >>confdefs.h <<_ACEOF 5283#define HAVE_DCGETTEXT 1 5284_ACEOF 5285 5286fi 5287done 5288 5289 MSGFMT_OPTS= 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5 5291$as_echo_n "checking if msgfmt accepts -c... " >&6; } 5292 cat >conftest.foo <<_ACEOF 5293 5294msgid "" 5295msgstr "" 5296"Content-Type: text/plain; charset=UTF-8\n" 5297"Project-Id-Version: test 1.0\n" 5298"PO-Revision-Date: 2007-02-15 12:01+0100\n" 5299"Last-Translator: test <foo@bar.xx>\n" 5300"Language-Team: C <LL@li.org>\n" 5301"MIME-Version: 1.0\n" 5302"Content-Transfer-Encoding: 8bit\n" 5303 5304_ACEOF 5305if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5 5306 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 5307 ac_status=$? 5308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5309 test $ac_status = 0; }; then 5310 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5311$as_echo "yes" >&6; } 5312else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5313$as_echo "no" >&6; } 5314echo "$as_me: failed input was:" >&5 5315sed 's/^/| /' conftest.foo >&5 5316fi 5317 5318 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5319set dummy gmsgfmt; ac_word=$2 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5321$as_echo_n "checking for $ac_word... " >&6; } 5322if test "${ac_cv_path_GMSGFMT+set}" = set; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 case $GMSGFMT in 5326 [\\/]* | ?:[\\/]*) 5327 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5328 ;; 5329 *) 5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 test -z "$as_dir" && as_dir=. 5335 for ac_exec_ext in '' $ac_executable_extensions; do 5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5337 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5339 break 2 5340 fi 5341done 5342 done 5343IFS=$as_save_IFS 5344 5345 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5346 ;; 5347esac 5348fi 5349GMSGFMT=$ac_cv_path_GMSGFMT 5350if test -n "$GMSGFMT"; then 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5352$as_echo "$GMSGFMT" >&6; } 5353else 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5355$as_echo "no" >&6; } 5356fi 5357 5358 5359 # Extract the first word of "xgettext", so it can be a program name with args. 5360set dummy xgettext; ac_word=$2 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5362$as_echo_n "checking for $ac_word... " >&6; } 5363if test "${ac_cv_path_XGETTEXT+set}" = set; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 case "$XGETTEXT" in 5367 /*) 5368 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5369 ;; 5370 *) 5371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5372 for ac_dir in $PATH; do 5373 test -z "$ac_dir" && ac_dir=. 5374 if test -f $ac_dir/$ac_word; then 5375 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 5376 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 5377 break 5378 fi 5379 fi 5380 done 5381 IFS="$ac_save_ifs" 5382 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5383 ;; 5384esac 5385fi 5386XGETTEXT="$ac_cv_path_XGETTEXT" 5387if test "$XGETTEXT" != ":"; then 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5389$as_echo "$XGETTEXT" >&6; } 5390else 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5392$as_echo "no" >&6; } 5393fi 5394 5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5396/* end confdefs.h. */ 5397 5398int 5399main () 5400{ 5401extern int _nl_msg_cat_cntr; 5402 return _nl_msg_cat_cntr 5403 ; 5404 return 0; 5405} 5406_ACEOF 5407if ac_fn_c_try_link "$LINENO"; then : 5408 CATOBJEXT=.gmo 5409 DATADIRNAME=share 5410else 5411 case $host in 5412 *-*-solaris*) 5413 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 5414if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : 5415 CATOBJEXT=.gmo 5416 DATADIRNAME=share 5417else 5418 CATOBJEXT=.mo 5419 DATADIRNAME=lib 5420fi 5421 5422 ;; 5423 *) 5424 CATOBJEXT=.mo 5425 DATADIRNAME=lib 5426 ;; 5427 esac 5428fi 5429rm -f core conftest.err conftest.$ac_objext \ 5430 conftest$ac_exeext conftest.$ac_ext 5431 LIBS="$glib_save_LIBS" 5432 INSTOBJEXT=.mo 5433 else 5434 gt_cv_have_gettext=no 5435 fi 5436 fi 5437 5438fi 5439 5440 5441 5442 if test "$gt_cv_have_gettext" = "yes" ; then 5443 5444$as_echo "#define ENABLE_NLS 1" >>confdefs.h 5445 5446 fi 5447 5448 if test "$XGETTEXT" != ":"; then 5449 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 5450 : ; 5451 else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 5453$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 5454 XGETTEXT=":" 5455 fi 5456 fi 5457 5458 # We need to process the po/ directory. 5459 POSUB=po 5460 5461 ac_config_commands="$ac_config_commands default-1" 5462 5463 5464 for lang in $ALL_LINGUAS; do 5465 GMOFILES="$GMOFILES $lang.gmo" 5466 POFILES="$POFILES $lang.po" 5467 done 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 if test "$gt_cv_have_gettext" = "yes"; then 5482 if test "x$ALL_LINGUAS" = "x"; then 5483 LINGUAS= 5484 else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 5486$as_echo_n "checking for catalogs to be installed... " >&6; } 5487 NEW_LINGUAS= 5488 for presentlang in $ALL_LINGUAS; do 5489 useit=no 5490 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 5491 desiredlanguages="$LINGUAS" 5492 else 5493 desiredlanguages="$ALL_LINGUAS" 5494 fi 5495 for desiredlang in $desiredlanguages; do 5496 # Use the presentlang catalog if desiredlang is 5497 # a. equal to presentlang, or 5498 # b. a variant of presentlang (because in this case, 5499 # presentlang can be used as a fallback for messages 5500 # which are not translated in the desiredlang catalog). 5501 case "$desiredlang" in 5502 "$presentlang"*) useit=yes;; 5503 esac 5504 done 5505 if test $useit = yes; then 5506 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 5507 fi 5508 done 5509 LINGUAS=$NEW_LINGUAS 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 5511$as_echo "$LINGUAS" >&6; } 5512 fi 5513 5514 if test -n "$LINGUAS"; then 5515 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 5516 fi 5517 fi 5518 5519 MKINSTALLDIRS= 5520 if test -n "$ac_aux_dir"; then 5521 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 5522 fi 5523 if test -z "$MKINSTALLDIRS"; then 5524 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5525 fi 5526 5527 5528 test -d po || mkdir po 5529 if test "x$srcdir" != "x."; then 5530 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 5531 posrcprefix="$srcdir/" 5532 else 5533 posrcprefix="../$srcdir/" 5534 fi 5535 else 5536 posrcprefix="../" 5537 fi 5538 rm -f po/POTFILES 5539 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 5540 < $srcdir/po/POTFILES.in > po/POTFILES 5541 5542 5543 5544if test "x${prefix}" = "xNONE"; then 5545 PACKAGE_PREFIX="${ac_default_prefix}" 5546else 5547 PACKAGE_PREFIX="${prefix}" 5548fi 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_PREFIX" >&5 5550$as_echo "$PACKAGE_PREFIX" >&6; } 5551PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale" 5552 5553cat >>confdefs.h <<_ACEOF 5554#define PACKAGE_LOCALE_DIR "$PACKAGE_LOCALE_DIR" 5555_ACEOF 5556 5557 5558 5559ac_ext=c 5560ac_cpp='$CPP $CPPFLAGS' 5561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5563ac_compiler_gnu=$ac_cv_c_compiler_gnu 5564if test -n "$ac_tool_prefix"; then 5565 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5566set dummy ${ac_tool_prefix}gcc; ac_word=$2 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5568$as_echo_n "checking for $ac_word... " >&6; } 5569if test "${ac_cv_prog_CC+set}" = set; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 if test -n "$CC"; then 5573 ac_cv_prog_CC="$CC" # Let the user override the test. 5574else 5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5576for as_dir in $PATH 5577do 5578 IFS=$as_save_IFS 5579 test -z "$as_dir" && as_dir=. 5580 for ac_exec_ext in '' $ac_executable_extensions; do 5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5582 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5584 break 2 5585 fi 5586done 5587 done 5588IFS=$as_save_IFS 5589 5590fi 5591fi 5592CC=$ac_cv_prog_CC 5593if test -n "$CC"; then 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5595$as_echo "$CC" >&6; } 5596else 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5598$as_echo "no" >&6; } 5599fi 5600 5601 5602fi 5603if test -z "$ac_cv_prog_CC"; then 5604 ac_ct_CC=$CC 5605 # Extract the first word of "gcc", so it can be a program name with args. 5606set dummy gcc; ac_word=$2 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5608$as_echo_n "checking for $ac_word... " >&6; } 5609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 if test -n "$ac_ct_CC"; then 5613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5614else 5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5616for as_dir in $PATH 5617do 5618 IFS=$as_save_IFS 5619 test -z "$as_dir" && as_dir=. 5620 for ac_exec_ext in '' $ac_executable_extensions; do 5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5622 ac_cv_prog_ac_ct_CC="gcc" 5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5624 break 2 5625 fi 5626done 5627 done 5628IFS=$as_save_IFS 5629 5630fi 5631fi 5632ac_ct_CC=$ac_cv_prog_ac_ct_CC 5633if test -n "$ac_ct_CC"; then 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5635$as_echo "$ac_ct_CC" >&6; } 5636else 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5638$as_echo "no" >&6; } 5639fi 5640 5641 if test "x$ac_ct_CC" = x; then 5642 CC="" 5643 else 5644 case $cross_compiling:$ac_tool_warned in 5645yes:) 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5648ac_tool_warned=yes ;; 5649esac 5650 CC=$ac_ct_CC 5651 fi 5652else 5653 CC="$ac_cv_prog_CC" 5654fi 5655 5656if test -z "$CC"; then 5657 if test -n "$ac_tool_prefix"; then 5658 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5659set dummy ${ac_tool_prefix}cc; ac_word=$2 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5661$as_echo_n "checking for $ac_word... " >&6; } 5662if test "${ac_cv_prog_CC+set}" = set; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$CC"; then 5666 ac_cv_prog_CC="$CC" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5675 ac_cv_prog_CC="${ac_tool_prefix}cc" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680 done 5681IFS=$as_save_IFS 5682 5683fi 5684fi 5685CC=$ac_cv_prog_CC 5686if test -n "$CC"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5688$as_echo "$CC" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 5695 fi 5696fi 5697if test -z "$CC"; then 5698 # Extract the first word of "cc", so it can be a program name with args. 5699set dummy cc; ac_word=$2 5700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5701$as_echo_n "checking for $ac_word... " >&6; } 5702if test "${ac_cv_prog_CC+set}" = set; then : 5703 $as_echo_n "(cached) " >&6 5704else 5705 if test -n "$CC"; then 5706 ac_cv_prog_CC="$CC" # Let the user override the test. 5707else 5708 ac_prog_rejected=no 5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5710for as_dir in $PATH 5711do 5712 IFS=$as_save_IFS 5713 test -z "$as_dir" && as_dir=. 5714 for ac_exec_ext in '' $ac_executable_extensions; do 5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5716 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5717 ac_prog_rejected=yes 5718 continue 5719 fi 5720 ac_cv_prog_CC="cc" 5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5722 break 2 5723 fi 5724done 5725 done 5726IFS=$as_save_IFS 5727 5728if test $ac_prog_rejected = yes; then 5729 # We found a bogon in the path, so make sure we never use it. 5730 set dummy $ac_cv_prog_CC 5731 shift 5732 if test $# != 0; then 5733 # We chose a different compiler from the bogus one. 5734 # However, it has the same basename, so the bogon will be chosen 5735 # first if we set CC to just the basename; use the full file name. 5736 shift 5737 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5738 fi 5739fi 5740fi 5741fi 5742CC=$ac_cv_prog_CC 5743if test -n "$CC"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5745$as_echo "$CC" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 5752fi 5753if test -z "$CC"; then 5754 if test -n "$ac_tool_prefix"; then 5755 for ac_prog in cl.exe 5756 do 5757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5758set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760$as_echo_n "checking for $ac_word... " >&6; } 5761if test "${ac_cv_prog_CC+set}" = set; then : 5762 $as_echo_n "(cached) " >&6 5763else 5764 if test -n "$CC"; then 5765 ac_cv_prog_CC="$CC" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782fi 5783fi 5784CC=$ac_cv_prog_CC 5785if test -n "$CC"; then 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5787$as_echo "$CC" >&6; } 5788else 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790$as_echo "no" >&6; } 5791fi 5792 5793 5794 test -n "$CC" && break 5795 done 5796fi 5797if test -z "$CC"; then 5798 ac_ct_CC=$CC 5799 for ac_prog in cl.exe 5800do 5801 # Extract the first word of "$ac_prog", so it can be a program name with args. 5802set dummy $ac_prog; ac_word=$2 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5804$as_echo_n "checking for $ac_word... " >&6; } 5805if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 if test -n "$ac_ct_CC"; then 5809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5810else 5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5812for as_dir in $PATH 5813do 5814 IFS=$as_save_IFS 5815 test -z "$as_dir" && as_dir=. 5816 for ac_exec_ext in '' $ac_executable_extensions; do 5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5818 ac_cv_prog_ac_ct_CC="$ac_prog" 5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5820 break 2 5821 fi 5822done 5823 done 5824IFS=$as_save_IFS 5825 5826fi 5827fi 5828ac_ct_CC=$ac_cv_prog_ac_ct_CC 5829if test -n "$ac_ct_CC"; then 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5831$as_echo "$ac_ct_CC" >&6; } 5832else 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5834$as_echo "no" >&6; } 5835fi 5836 5837 5838 test -n "$ac_ct_CC" && break 5839done 5840 5841 if test "x$ac_ct_CC" = x; then 5842 CC="" 5843 else 5844 case $cross_compiling:$ac_tool_warned in 5845yes:) 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5848ac_tool_warned=yes ;; 5849esac 5850 CC=$ac_ct_CC 5851 fi 5852fi 5853 5854fi 5855 5856 5857test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5859as_fn_error $? "no acceptable C compiler found in \$PATH 5860See \`config.log' for more details" "$LINENO" 5 ; } 5861 5862# Provide some information about the compiler. 5863$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5864set X $ac_compile 5865ac_compiler=$2 5866for ac_option in --version -v -V -qversion; do 5867 { { ac_try="$ac_compiler $ac_option >&5" 5868case "(($ac_try" in 5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5870 *) ac_try_echo=$ac_try;; 5871esac 5872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5873$as_echo "$ac_try_echo"; } >&5 5874 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5875 ac_status=$? 5876 if test -s conftest.err; then 5877 sed '10a\ 5878... rest of stderr output deleted ... 5879 10q' conftest.err >conftest.er1 5880 cat conftest.er1 >&5 5881 fi 5882 rm -f conftest.er1 conftest.err 5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5884 test $ac_status = 0; } 5885done 5886 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5888$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5889if test "${ac_cv_c_compiler_gnu+set}" = set; then : 5890 $as_echo_n "(cached) " >&6 5891else 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894 5895int 5896main () 5897{ 5898#ifndef __GNUC__ 5899 choke me 5900#endif 5901 5902 ; 5903 return 0; 5904} 5905_ACEOF 5906if ac_fn_c_try_compile "$LINENO"; then : 5907 ac_compiler_gnu=yes 5908else 5909 ac_compiler_gnu=no 5910fi 5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5912ac_cv_c_compiler_gnu=$ac_compiler_gnu 5913 5914fi 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5916$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5917if test $ac_compiler_gnu = yes; then 5918 GCC=yes 5919else 5920 GCC= 5921fi 5922ac_test_CFLAGS=${CFLAGS+set} 5923ac_save_CFLAGS=$CFLAGS 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5925$as_echo_n "checking whether $CC accepts -g... " >&6; } 5926if test "${ac_cv_prog_cc_g+set}" = set; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 ac_save_c_werror_flag=$ac_c_werror_flag 5930 ac_c_werror_flag=yes 5931 ac_cv_prog_cc_g=no 5932 CFLAGS="-g" 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5934/* end confdefs.h. */ 5935 5936int 5937main () 5938{ 5939 5940 ; 5941 return 0; 5942} 5943_ACEOF 5944if ac_fn_c_try_compile "$LINENO"; then : 5945 ac_cv_prog_cc_g=yes 5946else 5947 CFLAGS="" 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949/* end confdefs.h. */ 5950 5951int 5952main () 5953{ 5954 5955 ; 5956 return 0; 5957} 5958_ACEOF 5959if ac_fn_c_try_compile "$LINENO"; then : 5960 5961else 5962 ac_c_werror_flag=$ac_save_c_werror_flag 5963 CFLAGS="-g" 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966 5967int 5968main () 5969{ 5970 5971 ; 5972 return 0; 5973} 5974_ACEOF 5975if ac_fn_c_try_compile "$LINENO"; then : 5976 ac_cv_prog_cc_g=yes 5977fi 5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5979fi 5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5981fi 5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5983 ac_c_werror_flag=$ac_save_c_werror_flag 5984fi 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5986$as_echo "$ac_cv_prog_cc_g" >&6; } 5987if test "$ac_test_CFLAGS" = set; then 5988 CFLAGS=$ac_save_CFLAGS 5989elif test $ac_cv_prog_cc_g = yes; then 5990 if test "$GCC" = yes; then 5991 CFLAGS="-g -O2" 5992 else 5993 CFLAGS="-g" 5994 fi 5995else 5996 if test "$GCC" = yes; then 5997 CFLAGS="-O2" 5998 else 5999 CFLAGS= 6000 fi 6001fi 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6003$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6004if test "${ac_cv_prog_cc_c89+set}" = set; then : 6005 $as_echo_n "(cached) " >&6 6006else 6007 ac_cv_prog_cc_c89=no 6008ac_save_CC=$CC 6009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011#include <stdarg.h> 6012#include <stdio.h> 6013#include <sys/types.h> 6014#include <sys/stat.h> 6015/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6016struct buf { int x; }; 6017FILE * (*rcsopen) (struct buf *, struct stat *, int); 6018static char *e (p, i) 6019 char **p; 6020 int i; 6021{ 6022 return p[i]; 6023} 6024static char *f (char * (*g) (char **, int), char **p, ...) 6025{ 6026 char *s; 6027 va_list v; 6028 va_start (v,p); 6029 s = g (p, va_arg (v,int)); 6030 va_end (v); 6031 return s; 6032} 6033 6034/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6035 function prototypes and stuff, but not '\xHH' hex character constants. 6036 These don't provoke an error unfortunately, instead are silently treated 6037 as 'x'. The following induces an error, until -std is added to get 6038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6039 array size at least. It's necessary to write '\x00'==0 to get something 6040 that's true only with -std. */ 6041int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6042 6043/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6044 inside strings and character constants. */ 6045#define FOO(x) 'x' 6046int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6047 6048int test (int i, double x); 6049struct s1 {int (*f) (int a);}; 6050struct s2 {int (*f) (double a);}; 6051int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6052int argc; 6053char **argv; 6054int 6055main () 6056{ 6057return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6058 ; 6059 return 0; 6060} 6061_ACEOF 6062for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6064do 6065 CC="$ac_save_CC $ac_arg" 6066 if ac_fn_c_try_compile "$LINENO"; then : 6067 ac_cv_prog_cc_c89=$ac_arg 6068fi 6069rm -f core conftest.err conftest.$ac_objext 6070 test "x$ac_cv_prog_cc_c89" != "xno" && break 6071done 6072rm -f conftest.$ac_ext 6073CC=$ac_save_CC 6074 6075fi 6076# AC_CACHE_VAL 6077case "x$ac_cv_prog_cc_c89" in 6078 x) 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6080$as_echo "none needed" >&6; } ;; 6081 xno) 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6083$as_echo "unsupported" >&6; } ;; 6084 *) 6085 CC="$CC $ac_cv_prog_cc_c89" 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6087$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6088esac 6089if test "x$ac_cv_prog_cc_c89" != xno; then : 6090 6091fi 6092 6093ac_ext=c 6094ac_cpp='$CPP $CPPFLAGS' 6095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6097ac_compiler_gnu=$ac_cv_c_compiler_gnu 6098 6099depcc="$CC" am_compiler_list= 6100 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6102$as_echo_n "checking dependency style of $depcc... " >&6; } 6103if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6107 # We make a subdir and do the tests there. Otherwise we can end up 6108 # making bogus files that we don't know about and never remove. For 6109 # instance it was reported that on HP-UX the gcc test will end up 6110 # making a dummy file named `D' -- because `-MD' means `put the output 6111 # in D'. 6112 mkdir conftest.dir 6113 # Copy depcomp to subdir because otherwise we won't find it if we're 6114 # using a relative directory. 6115 cp "$am_depcomp" conftest.dir 6116 cd conftest.dir 6117 # We will build objects and dependencies in a subdirectory because 6118 # it helps to detect inapplicable dependency modes. For instance 6119 # both Tru64's cc and ICC support -MD to output dependencies as a 6120 # side effect of compilation, but ICC will put the dependencies in 6121 # the current directory while Tru64 will put them in the object 6122 # directory. 6123 mkdir sub 6124 6125 am_cv_CC_dependencies_compiler_type=none 6126 if test "$am_compiler_list" = ""; then 6127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6128 fi 6129 am__universal=false 6130 case " $depcc " in #( 6131 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6132 esac 6133 6134 for depmode in $am_compiler_list; do 6135 # Setup a source with many dependencies, because some compilers 6136 # like to wrap large dependency lists on column 80 (with \), and 6137 # we should not choose a depcomp mode which is confused by this. 6138 # 6139 # We need to recreate these files for each test, as the compiler may 6140 # overwrite some of them when testing with obscure command lines. 6141 # This happens at least with the AIX C compiler. 6142 : > sub/conftest.c 6143 for i in 1 2 3 4 5 6; do 6144 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6146 # Solaris 8's {/usr,}/bin/sh. 6147 touch sub/conftst$i.h 6148 done 6149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6150 6151 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6152 # mode. It turns out that the SunPro C++ compiler does not properly 6153 # handle `-M -o', and we need to detect this. Also, some Intel 6154 # versions had trouble with output in subdirs 6155 am__obj=sub/conftest.${OBJEXT-o} 6156 am__minus_obj="-o $am__obj" 6157 case $depmode in 6158 gcc) 6159 # This depmode causes a compiler race in universal mode. 6160 test "$am__universal" = false || continue 6161 ;; 6162 nosideeffect) 6163 # after this tag, mechanisms are not by side-effect, so they'll 6164 # only be used when explicitly requested 6165 if test "x$enable_dependency_tracking" = xyes; then 6166 continue 6167 else 6168 break 6169 fi 6170 ;; 6171 msvisualcpp | msvcmsys) 6172 # This compiler won't grok `-c -o', but also, the minuso test has 6173 # not run yet. These depmodes are late enough in the game, and 6174 # so weak that their functioning should not be impacted. 6175 am__obj=conftest.${OBJEXT-o} 6176 am__minus_obj= 6177 ;; 6178 none) break ;; 6179 esac 6180 if depmode=$depmode \ 6181 source=sub/conftest.c object=$am__obj \ 6182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6183 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6184 >/dev/null 2>conftest.err && 6185 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6187 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6189 # icc doesn't choke on unknown options, it will just issue warnings 6190 # or remarks (even with -Werror). So we grep stderr for any message 6191 # that says an option was ignored or not supported. 6192 # When given -MP, icc 7.0 and 7.1 complain thusly: 6193 # icc: Command line warning: ignoring option '-M'; no argument required 6194 # The diagnosis changed in icc 8.0: 6195 # icc: Command line remark: option '-MP' not supported 6196 if (grep 'ignoring option' conftest.err || 6197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6198 am_cv_CC_dependencies_compiler_type=$depmode 6199 break 6200 fi 6201 fi 6202 done 6203 6204 cd .. 6205 rm -rf conftest.dir 6206else 6207 am_cv_CC_dependencies_compiler_type=none 6208fi 6209 6210fi 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6212$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6213CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6214 6215 if 6216 test "x$enable_dependency_tracking" != xno \ 6217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6218 am__fastdepCC_TRUE= 6219 am__fastdepCC_FALSE='#' 6220else 6221 am__fastdepCC_TRUE='#' 6222 am__fastdepCC_FALSE= 6223fi 6224 6225 6226# Check whether --enable-static was given. 6227if test "${enable_static+set}" = set; then : 6228 enableval=$enable_static; p=${PACKAGE-default} 6229 case $enableval in 6230 yes) enable_static=yes ;; 6231 no) enable_static=no ;; 6232 *) 6233 enable_static=no 6234 # Look at the argument we got. We use all the common list separators. 6235 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6236 for pkg in $enableval; do 6237 IFS="$lt_save_ifs" 6238 if test "X$pkg" = "X$p"; then 6239 enable_static=yes 6240 fi 6241 done 6242 IFS="$lt_save_ifs" 6243 ;; 6244 esac 6245else 6246 enable_static=no 6247fi 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257enable_dlopen=yes 6258 6259 6260 6261case `pwd` in 6262 *\ * | *\ *) 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6264$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6265esac 6266 6267 6268 6269macro_version='2.2.6b' 6270macro_revision='1.3017' 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284ltmain="$ac_aux_dir/ltmain.sh" 6285 6286# Make sure we can run config.sub. 6287$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6288 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6289 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6291$as_echo_n "checking build system type... " >&6; } 6292if test "${ac_cv_build+set}" = set; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 ac_build_alias=$build_alias 6296test "x$ac_build_alias" = x && 6297 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6298test "x$ac_build_alias" = x && 6299 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6300ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6301 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6302 6303fi 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6305$as_echo "$ac_cv_build" >&6; } 6306case $ac_cv_build in 6307*-*-*) ;; 6308*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 6309esac 6310build=$ac_cv_build 6311ac_save_IFS=$IFS; IFS='-' 6312set x $ac_cv_build 6313shift 6314build_cpu=$1 6315build_vendor=$2 6316shift; shift 6317# Remember, the first character of IFS is used to create $*, 6318# except with old shells: 6319build_os=$* 6320IFS=$ac_save_IFS 6321case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6322 6323 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6325$as_echo_n "checking host system type... " >&6; } 6326if test "${ac_cv_host+set}" = set; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 if test "x$host_alias" = x; then 6330 ac_cv_host=$ac_cv_build 6331else 6332 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6333 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6334fi 6335 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6338$as_echo "$ac_cv_host" >&6; } 6339case $ac_cv_host in 6340*-*-*) ;; 6341*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 6342esac 6343host=$ac_cv_host 6344ac_save_IFS=$IFS; IFS='-' 6345set x $ac_cv_host 6346shift 6347host_cpu=$1 6348host_vendor=$2 6349shift; shift 6350# Remember, the first character of IFS is used to create $*, 6351# except with old shells: 6352host_os=$* 6353IFS=$ac_save_IFS 6354case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6355 6356 6357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6358$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6359if test "${ac_cv_path_SED+set}" = set; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6363 for ac_i in 1 2 3 4 5 6 7; do 6364 ac_script="$ac_script$as_nl$ac_script" 6365 done 6366 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6367 { ac_script=; unset ac_script;} 6368 if test -z "$SED"; then 6369 ac_path_SED_found=false 6370 # Loop through the user's path and test for each of PROGNAME-LIST 6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6372for as_dir in $PATH 6373do 6374 IFS=$as_save_IFS 6375 test -z "$as_dir" && as_dir=. 6376 for ac_prog in sed gsed; do 6377 for ac_exec_ext in '' $ac_executable_extensions; do 6378 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6379 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6380# Check for GNU ac_path_SED and select it if it is found. 6381 # Check for GNU $ac_path_SED 6382case `"$ac_path_SED" --version 2>&1` in 6383*GNU*) 6384 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6385*) 6386 ac_count=0 6387 $as_echo_n 0123456789 >"conftest.in" 6388 while : 6389 do 6390 cat "conftest.in" "conftest.in" >"conftest.tmp" 6391 mv "conftest.tmp" "conftest.in" 6392 cp "conftest.in" "conftest.nl" 6393 $as_echo '' >> "conftest.nl" 6394 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6396 as_fn_arith $ac_count + 1 && ac_count=$as_val 6397 if test $ac_count -gt ${ac_path_SED_max-0}; then 6398 # Best one so far, save it but keep looking for a better one 6399 ac_cv_path_SED="$ac_path_SED" 6400 ac_path_SED_max=$ac_count 6401 fi 6402 # 10*(2^10) chars as input seems more than enough 6403 test $ac_count -gt 10 && break 6404 done 6405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6406esac 6407 6408 $ac_path_SED_found && break 3 6409 done 6410 done 6411 done 6412IFS=$as_save_IFS 6413 if test -z "$ac_cv_path_SED"; then 6414 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6415 fi 6416else 6417 ac_cv_path_SED=$SED 6418fi 6419 6420fi 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6422$as_echo "$ac_cv_path_SED" >&6; } 6423 SED="$ac_cv_path_SED" 6424 rm -f conftest.sed 6425 6426test -z "$SED" && SED=sed 6427Xsed="$SED -e 1s/^X//" 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6440$as_echo_n "checking for fgrep... " >&6; } 6441if test "${ac_cv_path_FGREP+set}" = set; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6445 then ac_cv_path_FGREP="$GREP -F" 6446 else 6447 if test -z "$FGREP"; then 6448 ac_path_FGREP_found=false 6449 # Loop through the user's path and test for each of PROGNAME-LIST 6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6451for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6452do 6453 IFS=$as_save_IFS 6454 test -z "$as_dir" && as_dir=. 6455 for ac_prog in fgrep; do 6456 for ac_exec_ext in '' $ac_executable_extensions; do 6457 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6458 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6459# Check for GNU ac_path_FGREP and select it if it is found. 6460 # Check for GNU $ac_path_FGREP 6461case `"$ac_path_FGREP" --version 2>&1` in 6462*GNU*) 6463 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6464*) 6465 ac_count=0 6466 $as_echo_n 0123456789 >"conftest.in" 6467 while : 6468 do 6469 cat "conftest.in" "conftest.in" >"conftest.tmp" 6470 mv "conftest.tmp" "conftest.in" 6471 cp "conftest.in" "conftest.nl" 6472 $as_echo 'FGREP' >> "conftest.nl" 6473 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6475 as_fn_arith $ac_count + 1 && ac_count=$as_val 6476 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6477 # Best one so far, save it but keep looking for a better one 6478 ac_cv_path_FGREP="$ac_path_FGREP" 6479 ac_path_FGREP_max=$ac_count 6480 fi 6481 # 10*(2^10) chars as input seems more than enough 6482 test $ac_count -gt 10 && break 6483 done 6484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6485esac 6486 6487 $ac_path_FGREP_found && break 3 6488 done 6489 done 6490 done 6491IFS=$as_save_IFS 6492 if test -z "$ac_cv_path_FGREP"; then 6493 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6494 fi 6495else 6496 ac_cv_path_FGREP=$FGREP 6497fi 6498 6499 fi 6500fi 6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6502$as_echo "$ac_cv_path_FGREP" >&6; } 6503 FGREP="$ac_cv_path_FGREP" 6504 6505 6506test -z "$GREP" && GREP=grep 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526# Check whether --with-gnu-ld was given. 6527if test "${with_gnu_ld+set}" = set; then : 6528 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6529else 6530 with_gnu_ld=no 6531fi 6532 6533ac_prog=ld 6534if test "$GCC" = yes; then 6535 # Check if gcc -print-prog-name=ld gives a path. 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6537$as_echo_n "checking for ld used by $CC... " >&6; } 6538 case $host in 6539 *-*-mingw*) 6540 # gcc leaves a trailing carriage return which upsets mingw 6541 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6542 *) 6543 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6544 esac 6545 case $ac_prog in 6546 # Accept absolute paths. 6547 [\\/]* | ?:[\\/]*) 6548 re_direlt='/[^/][^/]*/\.\./' 6549 # Canonicalize the pathname of ld 6550 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6551 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6552 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6553 done 6554 test -z "$LD" && LD="$ac_prog" 6555 ;; 6556 "") 6557 # If it fails, then pretend we aren't using GCC. 6558 ac_prog=ld 6559 ;; 6560 *) 6561 # If it is relative, then search for the first ld in PATH. 6562 with_gnu_ld=unknown 6563 ;; 6564 esac 6565elif test "$with_gnu_ld" = yes; then 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6567$as_echo_n "checking for GNU ld... " >&6; } 6568else 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6570$as_echo_n "checking for non-GNU ld... " >&6; } 6571fi 6572if test "${lt_cv_path_LD+set}" = set; then : 6573 $as_echo_n "(cached) " >&6 6574else 6575 if test -z "$LD"; then 6576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6577 for ac_dir in $PATH; do 6578 IFS="$lt_save_ifs" 6579 test -z "$ac_dir" && ac_dir=. 6580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6581 lt_cv_path_LD="$ac_dir/$ac_prog" 6582 # Check to see if the program is GNU ld. I'd rather use --version, 6583 # but apparently some variants of GNU ld only accept -v. 6584 # Break only if it was the GNU/non-GNU ld that we prefer. 6585 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6586 *GNU* | *'with BFD'*) 6587 test "$with_gnu_ld" != no && break 6588 ;; 6589 *) 6590 test "$with_gnu_ld" != yes && break 6591 ;; 6592 esac 6593 fi 6594 done 6595 IFS="$lt_save_ifs" 6596else 6597 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6598fi 6599fi 6600 6601LD="$lt_cv_path_LD" 6602if test -n "$LD"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6604$as_echo "$LD" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6611$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6612if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6613 $as_echo_n "(cached) " >&6 6614else 6615 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6616case `$LD -v 2>&1 </dev/null` in 6617*GNU* | *'with BFD'*) 6618 lt_cv_prog_gnu_ld=yes 6619 ;; 6620*) 6621 lt_cv_prog_gnu_ld=no 6622 ;; 6623esac 6624fi 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6626$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6627with_gnu_ld=$lt_cv_prog_gnu_ld 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6638$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6639if test "${lt_cv_path_NM+set}" = set; then : 6640 $as_echo_n "(cached) " >&6 6641else 6642 if test -n "$NM"; then 6643 # Let the user override the test. 6644 lt_cv_path_NM="$NM" 6645else 6646 lt_nm_to_check="${ac_tool_prefix}nm" 6647 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6648 lt_nm_to_check="$lt_nm_to_check nm" 6649 fi 6650 for lt_tmp_nm in $lt_nm_to_check; do 6651 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6652 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6653 IFS="$lt_save_ifs" 6654 test -z "$ac_dir" && ac_dir=. 6655 tmp_nm="$ac_dir/$lt_tmp_nm" 6656 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6657 # Check to see if the nm accepts a BSD-compat flag. 6658 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6659 # nm: unknown option "B" ignored 6660 # Tru64's nm complains that /dev/null is an invalid object file 6661 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6662 */dev/null* | *'Invalid file or object type'*) 6663 lt_cv_path_NM="$tmp_nm -B" 6664 break 6665 ;; 6666 *) 6667 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6668 */dev/null*) 6669 lt_cv_path_NM="$tmp_nm -p" 6670 break 6671 ;; 6672 *) 6673 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6674 continue # so that we can try to find one that supports BSD flags 6675 ;; 6676 esac 6677 ;; 6678 esac 6679 fi 6680 done 6681 IFS="$lt_save_ifs" 6682 done 6683 : ${lt_cv_path_NM=no} 6684fi 6685fi 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6687$as_echo "$lt_cv_path_NM" >&6; } 6688if test "$lt_cv_path_NM" != "no"; then 6689 NM="$lt_cv_path_NM" 6690else 6691 # Didn't find any BSD compatible name lister, look for dumpbin. 6692 if test -n "$ac_tool_prefix"; then 6693 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6694 do 6695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6696set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6698$as_echo_n "checking for $ac_word... " >&6; } 6699if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6700 $as_echo_n "(cached) " >&6 6701else 6702 if test -n "$DUMPBIN"; then 6703 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6704else 6705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6706for as_dir in $PATH 6707do 6708 IFS=$as_save_IFS 6709 test -z "$as_dir" && as_dir=. 6710 for ac_exec_ext in '' $ac_executable_extensions; do 6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6712 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6714 break 2 6715 fi 6716done 6717 done 6718IFS=$as_save_IFS 6719 6720fi 6721fi 6722DUMPBIN=$ac_cv_prog_DUMPBIN 6723if test -n "$DUMPBIN"; then 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6725$as_echo "$DUMPBIN" >&6; } 6726else 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6728$as_echo "no" >&6; } 6729fi 6730 6731 6732 test -n "$DUMPBIN" && break 6733 done 6734fi 6735if test -z "$DUMPBIN"; then 6736 ac_ct_DUMPBIN=$DUMPBIN 6737 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6738do 6739 # Extract the first word of "$ac_prog", so it can be a program name with args. 6740set dummy $ac_prog; ac_word=$2 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6742$as_echo_n "checking for $ac_word... " >&6; } 6743if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 if test -n "$ac_ct_DUMPBIN"; then 6747 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6756 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6767if test -n "$ac_ct_DUMPBIN"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6769$as_echo "$ac_ct_DUMPBIN" >&6; } 6770else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772$as_echo "no" >&6; } 6773fi 6774 6775 6776 test -n "$ac_ct_DUMPBIN" && break 6777done 6778 6779 if test "x$ac_ct_DUMPBIN" = x; then 6780 DUMPBIN=":" 6781 else 6782 case $cross_compiling:$ac_tool_warned in 6783yes:) 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6786ac_tool_warned=yes ;; 6787esac 6788 DUMPBIN=$ac_ct_DUMPBIN 6789 fi 6790fi 6791 6792 6793 if test "$DUMPBIN" != ":"; then 6794 NM="$DUMPBIN" 6795 fi 6796fi 6797test -z "$NM" && NM=nm 6798 6799 6800 6801 6802 6803 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6805$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6806if test "${lt_cv_nm_interface+set}" = set; then : 6807 $as_echo_n "(cached) " >&6 6808else 6809 lt_cv_nm_interface="BSD nm" 6810 echo "int some_variable = 0;" > conftest.$ac_ext 6811 (eval echo "\"\$as_me:6811: $ac_compile\"" >&5) 6812 (eval "$ac_compile" 2>conftest.err) 6813 cat conftest.err >&5 6814 (eval echo "\"\$as_me:6814: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6815 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6816 cat conftest.err >&5 6817 (eval echo "\"\$as_me:6817: output\"" >&5) 6818 cat conftest.out >&5 6819 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6820 lt_cv_nm_interface="MS dumpbin" 6821 fi 6822 rm -f conftest* 6823fi 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6825$as_echo "$lt_cv_nm_interface" >&6; } 6826 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6828$as_echo_n "checking whether ln -s works... " >&6; } 6829LN_S=$as_ln_s 6830if test "$LN_S" = "ln -s"; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6832$as_echo "yes" >&6; } 6833else 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6835$as_echo "no, using $LN_S" >&6; } 6836fi 6837 6838# find the maximum length of command line arguments 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6840$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6841if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 i=0 6845 teststring="ABCD" 6846 6847 case $build_os in 6848 msdosdjgpp*) 6849 # On DJGPP, this test can blow up pretty badly due to problems in libc 6850 # (any single argument exceeding 2000 bytes causes a buffer overrun 6851 # during glob expansion). Even if it were fixed, the result of this 6852 # check would be larger than it should be. 6853 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6854 ;; 6855 6856 gnu*) 6857 # Under GNU Hurd, this test is not required because there is 6858 # no limit to the length of command line arguments. 6859 # Libtool will interpret -1 as no limit whatsoever 6860 lt_cv_sys_max_cmd_len=-1; 6861 ;; 6862 6863 cygwin* | mingw* | cegcc*) 6864 # On Win9x/ME, this test blows up -- it succeeds, but takes 6865 # about 5 minutes as the teststring grows exponentially. 6866 # Worse, since 9x/ME are not pre-emptively multitasking, 6867 # you end up with a "frozen" computer, even though with patience 6868 # the test eventually succeeds (with a max line length of 256k). 6869 # Instead, let's just punt: use the minimum linelength reported by 6870 # all of the supported platforms: 8192 (on NT/2K/XP). 6871 lt_cv_sys_max_cmd_len=8192; 6872 ;; 6873 6874 amigaos*) 6875 # On AmigaOS with pdksh, this test takes hours, literally. 6876 # So we just punt and use a minimum line length of 8192. 6877 lt_cv_sys_max_cmd_len=8192; 6878 ;; 6879 6880 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6881 # This has been around since 386BSD, at least. Likely further. 6882 if test -x /sbin/sysctl; then 6883 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6884 elif test -x /usr/sbin/sysctl; then 6885 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6886 else 6887 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6888 fi 6889 # And add a safety zone 6890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6892 ;; 6893 6894 interix*) 6895 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6896 lt_cv_sys_max_cmd_len=196608 6897 ;; 6898 6899 osf*) 6900 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6901 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6902 # nice to cause kernel panics so lets avoid the loop below. 6903 # First set a reasonable default. 6904 lt_cv_sys_max_cmd_len=16384 6905 # 6906 if test -x /sbin/sysconfig; then 6907 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6908 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6909 esac 6910 fi 6911 ;; 6912 sco3.2v5*) 6913 lt_cv_sys_max_cmd_len=102400 6914 ;; 6915 sysv5* | sco5v6* | sysv4.2uw2*) 6916 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6917 if test -n "$kargmax"; then 6918 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6919 else 6920 lt_cv_sys_max_cmd_len=32768 6921 fi 6922 ;; 6923 *) 6924 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6925 if test -n "$lt_cv_sys_max_cmd_len"; then 6926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6928 else 6929 # Make teststring a little bigger before we do anything with it. 6930 # a 1K string should be a reasonable start. 6931 for i in 1 2 3 4 5 6 7 8 ; do 6932 teststring=$teststring$teststring 6933 done 6934 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6935 # If test is not a shell built-in, we'll probably end up computing a 6936 # maximum length that is only half of the actual maximum length, but 6937 # we can't tell. 6938 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6939 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6940 test $i != 17 # 1/2 MB should be enough 6941 do 6942 i=`expr $i + 1` 6943 teststring=$teststring$teststring 6944 done 6945 # Only check the string length outside the loop. 6946 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6947 teststring= 6948 # Add a significant safety factor because C++ compilers can tack on 6949 # massive amounts of additional arguments before passing them to the 6950 # linker. It appears as though 1/2 is a usable value. 6951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6952 fi 6953 ;; 6954 esac 6955 6956fi 6957 6958if test -n $lt_cv_sys_max_cmd_len ; then 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6960$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6961else 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6963$as_echo "none" >&6; } 6964fi 6965max_cmd_len=$lt_cv_sys_max_cmd_len 6966 6967 6968 6969 6970 6971 6972: ${CP="cp -f"} 6973: ${MV="mv -f"} 6974: ${RM="rm -f"} 6975 6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6977$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6978# Try some XSI features 6979xsi_shell=no 6980( _lt_dummy="a/b/c" 6981 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6982 = c,a/b,, \ 6983 && eval 'test $(( 1 + 1 )) -eq 2 \ 6984 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6985 && xsi_shell=yes 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6987$as_echo "$xsi_shell" >&6; } 6988 6989 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6991$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6992lt_shell_append=no 6993( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6994 >/dev/null 2>&1 \ 6995 && lt_shell_append=yes 6996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6997$as_echo "$lt_shell_append" >&6; } 6998 6999 7000if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7001 lt_unset=unset 7002else 7003 lt_unset=false 7004fi 7005 7006 7007 7008 7009 7010# test EBCDIC or ASCII 7011case `echo X|tr X '\101'` in 7012 A) # ASCII based system 7013 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7014 lt_SP2NL='tr \040 \012' 7015 lt_NL2SP='tr \015\012 \040\040' 7016 ;; 7017 *) # EBCDIC based system 7018 lt_SP2NL='tr \100 \n' 7019 lt_NL2SP='tr \r\n \100\100' 7020 ;; 7021esac 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7032$as_echo_n "checking for $LD option to reload object files... " >&6; } 7033if test "${lt_cv_ld_reload_flag+set}" = set; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 lt_cv_ld_reload_flag='-r' 7037fi 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7039$as_echo "$lt_cv_ld_reload_flag" >&6; } 7040reload_flag=$lt_cv_ld_reload_flag 7041case $reload_flag in 7042"" | " "*) ;; 7043*) reload_flag=" $reload_flag" ;; 7044esac 7045reload_cmds='$LD$reload_flag -o $output$reload_objs' 7046case $host_os in 7047 darwin*) 7048 if test "$GCC" = yes; then 7049 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7050 else 7051 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7052 fi 7053 ;; 7054esac 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064if test -n "$ac_tool_prefix"; then 7065 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7066set dummy ${ac_tool_prefix}objdump; ac_word=$2 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7068$as_echo_n "checking for $ac_word... " >&6; } 7069if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 7070 $as_echo_n "(cached) " >&6 7071else 7072 if test -n "$OBJDUMP"; then 7073 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7074else 7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7076for as_dir in $PATH 7077do 7078 IFS=$as_save_IFS 7079 test -z "$as_dir" && as_dir=. 7080 for ac_exec_ext in '' $ac_executable_extensions; do 7081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7082 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7084 break 2 7085 fi 7086done 7087 done 7088IFS=$as_save_IFS 7089 7090fi 7091fi 7092OBJDUMP=$ac_cv_prog_OBJDUMP 7093if test -n "$OBJDUMP"; then 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7095$as_echo "$OBJDUMP" >&6; } 7096else 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7098$as_echo "no" >&6; } 7099fi 7100 7101 7102fi 7103if test -z "$ac_cv_prog_OBJDUMP"; then 7104 ac_ct_OBJDUMP=$OBJDUMP 7105 # Extract the first word of "objdump", so it can be a program name with args. 7106set dummy objdump; ac_word=$2 7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7108$as_echo_n "checking for $ac_word... " >&6; } 7109if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 if test -n "$ac_ct_OBJDUMP"; then 7113 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7114else 7115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7116for as_dir in $PATH 7117do 7118 IFS=$as_save_IFS 7119 test -z "$as_dir" && as_dir=. 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7122 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7124 break 2 7125 fi 7126done 7127 done 7128IFS=$as_save_IFS 7129 7130fi 7131fi 7132ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7133if test -n "$ac_ct_OBJDUMP"; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7135$as_echo "$ac_ct_OBJDUMP" >&6; } 7136else 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7138$as_echo "no" >&6; } 7139fi 7140 7141 if test "x$ac_ct_OBJDUMP" = x; then 7142 OBJDUMP="false" 7143 else 7144 case $cross_compiling:$ac_tool_warned in 7145yes:) 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7148ac_tool_warned=yes ;; 7149esac 7150 OBJDUMP=$ac_ct_OBJDUMP 7151 fi 7152else 7153 OBJDUMP="$ac_cv_prog_OBJDUMP" 7154fi 7155 7156test -z "$OBJDUMP" && OBJDUMP=objdump 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7167$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7168if test "${lt_cv_deplibs_check_method+set}" = set; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 lt_cv_file_magic_cmd='$MAGIC_CMD' 7172lt_cv_file_magic_test_file= 7173lt_cv_deplibs_check_method='unknown' 7174# Need to set the preceding variable on all platforms that support 7175# interlibrary dependencies. 7176# 'none' -- dependencies not supported. 7177# `unknown' -- same as none, but documents that we really don't know. 7178# 'pass_all' -- all dependencies passed with no checks. 7179# 'test_compile' -- check by making test program. 7180# 'file_magic [[regex]]' -- check by looking for files in library path 7181# which responds to the $file_magic_cmd with a given extended regex. 7182# If you have `file' or equivalent on your system and you're not sure 7183# whether `pass_all' will *always* work, you probably want this one. 7184 7185case $host_os in 7186aix[4-9]*) 7187 lt_cv_deplibs_check_method=pass_all 7188 ;; 7189 7190beos*) 7191 lt_cv_deplibs_check_method=pass_all 7192 ;; 7193 7194bsdi[45]*) 7195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7196 lt_cv_file_magic_cmd='/usr/bin/file -L' 7197 lt_cv_file_magic_test_file=/shlib/libc.so 7198 ;; 7199 7200cygwin*) 7201 # func_win32_libid is a shell function defined in ltmain.sh 7202 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7203 lt_cv_file_magic_cmd='func_win32_libid' 7204 ;; 7205 7206mingw* | pw32*) 7207 # Base MSYS/MinGW do not provide the 'file' command needed by 7208 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7209 # unless we find 'file', for example because we are cross-compiling. 7210 if ( file / ) >/dev/null 2>&1; then 7211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7212 lt_cv_file_magic_cmd='func_win32_libid' 7213 else 7214 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7215 lt_cv_file_magic_cmd='$OBJDUMP -f' 7216 fi 7217 ;; 7218 7219cegcc) 7220 # use the weaker test based on 'objdump'. See mingw*. 7221 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7222 lt_cv_file_magic_cmd='$OBJDUMP -f' 7223 ;; 7224 7225darwin* | rhapsody*) 7226 lt_cv_deplibs_check_method=pass_all 7227 ;; 7228 7229freebsd* | dragonfly*) 7230 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7231 case $host_cpu in 7232 i*86 ) 7233 # Not sure whether the presence of OpenBSD here was a mistake. 7234 # Let's accept both of them until this is cleared up. 7235 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7236 lt_cv_file_magic_cmd=/usr/bin/file 7237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7238 ;; 7239 esac 7240 else 7241 lt_cv_deplibs_check_method=pass_all 7242 fi 7243 ;; 7244 7245gnu*) 7246 lt_cv_deplibs_check_method=pass_all 7247 ;; 7248 7249hpux10.20* | hpux11*) 7250 lt_cv_file_magic_cmd=/usr/bin/file 7251 case $host_cpu in 7252 ia64*) 7253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7254 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7255 ;; 7256 hppa*64*) 7257 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]' 7258 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7259 ;; 7260 *) 7261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7262 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7263 ;; 7264 esac 7265 ;; 7266 7267interix[3-9]*) 7268 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7270 ;; 7271 7272irix5* | irix6* | nonstopux*) 7273 case $LD in 7274 *-32|*"-32 ") libmagic=32-bit;; 7275 *-n32|*"-n32 ") libmagic=N32;; 7276 *-64|*"-64 ") libmagic=64-bit;; 7277 *) libmagic=never-match;; 7278 esac 7279 lt_cv_deplibs_check_method=pass_all 7280 ;; 7281 7282# This must be Linux ELF. 7283linux* | k*bsd*-gnu | kopensolaris*-gnu) 7284 lt_cv_deplibs_check_method=pass_all 7285 ;; 7286 7287netbsd* | netbsdelf*-gnu) 7288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7290 else 7291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7292 fi 7293 ;; 7294 7295newos6*) 7296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7297 lt_cv_file_magic_cmd=/usr/bin/file 7298 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7299 ;; 7300 7301*nto* | *qnx*) 7302 lt_cv_deplibs_check_method=pass_all 7303 ;; 7304 7305openbsd*) 7306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7308 else 7309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7310 fi 7311 ;; 7312 7313osf3* | osf4* | osf5*) 7314 lt_cv_deplibs_check_method=pass_all 7315 ;; 7316 7317rdos*) 7318 lt_cv_deplibs_check_method=pass_all 7319 ;; 7320 7321solaris*) 7322 lt_cv_deplibs_check_method=pass_all 7323 ;; 7324 7325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7326 lt_cv_deplibs_check_method=pass_all 7327 ;; 7328 7329sysv4 | sysv4.3*) 7330 case $host_vendor in 7331 motorola) 7332 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]' 7333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7334 ;; 7335 ncr) 7336 lt_cv_deplibs_check_method=pass_all 7337 ;; 7338 sequent) 7339 lt_cv_file_magic_cmd='/bin/file' 7340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7341 ;; 7342 sni) 7343 lt_cv_file_magic_cmd='/bin/file' 7344 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7345 lt_cv_file_magic_test_file=/lib/libc.so 7346 ;; 7347 siemens) 7348 lt_cv_deplibs_check_method=pass_all 7349 ;; 7350 pc) 7351 lt_cv_deplibs_check_method=pass_all 7352 ;; 7353 esac 7354 ;; 7355 7356tpf*) 7357 lt_cv_deplibs_check_method=pass_all 7358 ;; 7359esac 7360 7361fi 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7363$as_echo "$lt_cv_deplibs_check_method" >&6; } 7364file_magic_cmd=$lt_cv_file_magic_cmd 7365deplibs_check_method=$lt_cv_deplibs_check_method 7366test -z "$deplibs_check_method" && deplibs_check_method=unknown 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379if test -n "$ac_tool_prefix"; then 7380 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7381set dummy ${ac_tool_prefix}ar; ac_word=$2 7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7383$as_echo_n "checking for $ac_word... " >&6; } 7384if test "${ac_cv_prog_AR+set}" = set; then : 7385 $as_echo_n "(cached) " >&6 7386else 7387 if test -n "$AR"; then 7388 ac_cv_prog_AR="$AR" # Let the user override the test. 7389else 7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7391for as_dir in $PATH 7392do 7393 IFS=$as_save_IFS 7394 test -z "$as_dir" && as_dir=. 7395 for ac_exec_ext in '' $ac_executable_extensions; do 7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7397 ac_cv_prog_AR="${ac_tool_prefix}ar" 7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7399 break 2 7400 fi 7401done 7402 done 7403IFS=$as_save_IFS 7404 7405fi 7406fi 7407AR=$ac_cv_prog_AR 7408if test -n "$AR"; then 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7410$as_echo "$AR" >&6; } 7411else 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7413$as_echo "no" >&6; } 7414fi 7415 7416 7417fi 7418if test -z "$ac_cv_prog_AR"; then 7419 ac_ct_AR=$AR 7420 # Extract the first word of "ar", so it can be a program name with args. 7421set dummy ar; ac_word=$2 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423$as_echo_n "checking for $ac_word... " >&6; } 7424if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 if test -n "$ac_ct_AR"; then 7428 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7429else 7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431for as_dir in $PATH 7432do 7433 IFS=$as_save_IFS 7434 test -z "$as_dir" && as_dir=. 7435 for ac_exec_ext in '' $ac_executable_extensions; do 7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7437 ac_cv_prog_ac_ct_AR="ar" 7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7439 break 2 7440 fi 7441done 7442 done 7443IFS=$as_save_IFS 7444 7445fi 7446fi 7447ac_ct_AR=$ac_cv_prog_ac_ct_AR 7448if test -n "$ac_ct_AR"; then 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7450$as_echo "$ac_ct_AR" >&6; } 7451else 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7453$as_echo "no" >&6; } 7454fi 7455 7456 if test "x$ac_ct_AR" = x; then 7457 AR="false" 7458 else 7459 case $cross_compiling:$ac_tool_warned in 7460yes:) 7461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7463ac_tool_warned=yes ;; 7464esac 7465 AR=$ac_ct_AR 7466 fi 7467else 7468 AR="$ac_cv_prog_AR" 7469fi 7470 7471test -z "$AR" && AR=ar 7472test -z "$AR_FLAGS" && AR_FLAGS=cru 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484if test -n "$ac_tool_prefix"; then 7485 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7486set dummy ${ac_tool_prefix}strip; ac_word=$2 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7488$as_echo_n "checking for $ac_word... " >&6; } 7489if test "${ac_cv_prog_STRIP+set}" = set; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 if test -n "$STRIP"; then 7493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7494else 7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7496for as_dir in $PATH 7497do 7498 IFS=$as_save_IFS 7499 test -z "$as_dir" && as_dir=. 7500 for ac_exec_ext in '' $ac_executable_extensions; do 7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7502 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7504 break 2 7505 fi 7506done 7507 done 7508IFS=$as_save_IFS 7509 7510fi 7511fi 7512STRIP=$ac_cv_prog_STRIP 7513if test -n "$STRIP"; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7515$as_echo "$STRIP" >&6; } 7516else 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518$as_echo "no" >&6; } 7519fi 7520 7521 7522fi 7523if test -z "$ac_cv_prog_STRIP"; then 7524 ac_ct_STRIP=$STRIP 7525 # Extract the first word of "strip", so it can be a program name with args. 7526set dummy strip; ac_word=$2 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7528$as_echo_n "checking for $ac_word... " >&6; } 7529if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7530 $as_echo_n "(cached) " >&6 7531else 7532 if test -n "$ac_ct_STRIP"; then 7533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7534else 7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7536for as_dir in $PATH 7537do 7538 IFS=$as_save_IFS 7539 test -z "$as_dir" && as_dir=. 7540 for ac_exec_ext in '' $ac_executable_extensions; do 7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7542 ac_cv_prog_ac_ct_STRIP="strip" 7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7544 break 2 7545 fi 7546done 7547 done 7548IFS=$as_save_IFS 7549 7550fi 7551fi 7552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7553if test -n "$ac_ct_STRIP"; then 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7555$as_echo "$ac_ct_STRIP" >&6; } 7556else 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7558$as_echo "no" >&6; } 7559fi 7560 7561 if test "x$ac_ct_STRIP" = x; then 7562 STRIP=":" 7563 else 7564 case $cross_compiling:$ac_tool_warned in 7565yes:) 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7568ac_tool_warned=yes ;; 7569esac 7570 STRIP=$ac_ct_STRIP 7571 fi 7572else 7573 STRIP="$ac_cv_prog_STRIP" 7574fi 7575 7576test -z "$STRIP" && STRIP=: 7577 7578 7579 7580 7581 7582 7583if test -n "$ac_tool_prefix"; then 7584 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7585set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7587$as_echo_n "checking for $ac_word... " >&6; } 7588if test "${ac_cv_prog_RANLIB+set}" = set; then : 7589 $as_echo_n "(cached) " >&6 7590else 7591 if test -n "$RANLIB"; then 7592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7593else 7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7595for as_dir in $PATH 7596do 7597 IFS=$as_save_IFS 7598 test -z "$as_dir" && as_dir=. 7599 for ac_exec_ext in '' $ac_executable_extensions; do 7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7603 break 2 7604 fi 7605done 7606 done 7607IFS=$as_save_IFS 7608 7609fi 7610fi 7611RANLIB=$ac_cv_prog_RANLIB 7612if test -n "$RANLIB"; then 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7614$as_echo "$RANLIB" >&6; } 7615else 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7617$as_echo "no" >&6; } 7618fi 7619 7620 7621fi 7622if test -z "$ac_cv_prog_RANLIB"; then 7623 ac_ct_RANLIB=$RANLIB 7624 # Extract the first word of "ranlib", so it can be a program name with args. 7625set dummy ranlib; ac_word=$2 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7627$as_echo_n "checking for $ac_word... " >&6; } 7628if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 if test -n "$ac_ct_RANLIB"; then 7632 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7633else 7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7635for as_dir in $PATH 7636do 7637 IFS=$as_save_IFS 7638 test -z "$as_dir" && as_dir=. 7639 for ac_exec_ext in '' $ac_executable_extensions; do 7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7641 ac_cv_prog_ac_ct_RANLIB="ranlib" 7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7643 break 2 7644 fi 7645done 7646 done 7647IFS=$as_save_IFS 7648 7649fi 7650fi 7651ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7652if test -n "$ac_ct_RANLIB"; then 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7654$as_echo "$ac_ct_RANLIB" >&6; } 7655else 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7657$as_echo "no" >&6; } 7658fi 7659 7660 if test "x$ac_ct_RANLIB" = x; then 7661 RANLIB=":" 7662 else 7663 case $cross_compiling:$ac_tool_warned in 7664yes:) 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7667ac_tool_warned=yes ;; 7668esac 7669 RANLIB=$ac_ct_RANLIB 7670 fi 7671else 7672 RANLIB="$ac_cv_prog_RANLIB" 7673fi 7674 7675test -z "$RANLIB" && RANLIB=: 7676 7677 7678 7679 7680 7681 7682# Determine commands to create old-style static archives. 7683old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7684old_postinstall_cmds='chmod 644 $oldlib' 7685old_postuninstall_cmds= 7686 7687if test -n "$RANLIB"; then 7688 case $host_os in 7689 openbsd*) 7690 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7691 ;; 7692 *) 7693 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7694 ;; 7695 esac 7696 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7697fi 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732# If no C compiler was specified, use CC. 7733LTCC=${LTCC-"$CC"} 7734 7735# If no C compiler flags were specified, use CFLAGS. 7736LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7737 7738# Allow CC to be a program name with arguments. 7739compiler=$CC 7740 7741 7742# Check for command to grab the raw symbol name followed by C symbol from nm. 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7744$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7745if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7746 $as_echo_n "(cached) " >&6 7747else 7748 7749# These are sane defaults that work on at least a few old systems. 7750# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7751 7752# Character class describing NM global symbol codes. 7753symcode='[BCDEGRST]' 7754 7755# Regexp to match symbols that can be accessed directly from C. 7756sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7757 7758# Define system-specific variables. 7759case $host_os in 7760aix*) 7761 symcode='[BCDT]' 7762 ;; 7763cygwin* | mingw* | pw32* | cegcc*) 7764 symcode='[ABCDGISTW]' 7765 ;; 7766hpux*) 7767 if test "$host_cpu" = ia64; then 7768 symcode='[ABCDEGRST]' 7769 fi 7770 ;; 7771irix* | nonstopux*) 7772 symcode='[BCDEGRST]' 7773 ;; 7774osf*) 7775 symcode='[BCDEGQRST]' 7776 ;; 7777solaris*) 7778 symcode='[BDRT]' 7779 ;; 7780sco3.2v5*) 7781 symcode='[DT]' 7782 ;; 7783sysv4.2uw2*) 7784 symcode='[DT]' 7785 ;; 7786sysv5* | sco5v6* | unixware* | OpenUNIX*) 7787 symcode='[ABDT]' 7788 ;; 7789sysv4) 7790 symcode='[DFNSTU]' 7791 ;; 7792esac 7793 7794# If we're using GNU nm, then use its standard symbol codes. 7795case `$NM -V 2>&1` in 7796*GNU* | *'with BFD'*) 7797 symcode='[ABCDGIRSTW]' ;; 7798esac 7799 7800# Transform an extracted symbol line into a proper C declaration. 7801# Some systems (esp. on ia64) link data and code symbols differently, 7802# so use this general approach. 7803lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7804 7805# Transform an extracted symbol line into symbol name and symbol address 7806lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7807lt_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'" 7808 7809# Handle CRLF in mingw tool chain 7810opt_cr= 7811case $build_os in 7812mingw*) 7813 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7814 ;; 7815esac 7816 7817# Try without a prefix underscore, then with it. 7818for ac_symprfx in "" "_"; do 7819 7820 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7821 symxfrm="\\1 $ac_symprfx\\2 \\2" 7822 7823 # Write the raw and C identifiers. 7824 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7825 # Fake it for dumpbin and say T for any non-static function 7826 # and D for any global variable. 7827 # Also find C++ and __fastcall symbols from MSVC++, 7828 # which start with @ or ?. 7829 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7830" {last_section=section; section=\$ 3};"\ 7831" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7832" \$ 0!~/External *\|/{next};"\ 7833" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7834" {if(hide[section]) next};"\ 7835" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7836" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7837" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7838" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7839" ' prfx=^$ac_symprfx" 7840 else 7841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7842 fi 7843 7844 # Check to see that the pipe works correctly. 7845 pipe_works=no 7846 7847 rm -f conftest* 7848 cat > conftest.$ac_ext <<_LT_EOF 7849#ifdef __cplusplus 7850extern "C" { 7851#endif 7852char nm_test_var; 7853void nm_test_func(void); 7854void nm_test_func(void){} 7855#ifdef __cplusplus 7856} 7857#endif 7858int main(){nm_test_var='a';nm_test_func();return(0);} 7859_LT_EOF 7860 7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7862 (eval $ac_compile) 2>&5 7863 ac_status=$? 7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7865 test $ac_status = 0; }; then 7866 # Now try to grab the symbols. 7867 nlist=conftest.nm 7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7869 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7870 ac_status=$? 7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7872 test $ac_status = 0; } && test -s "$nlist"; then 7873 # Try sorting and uniquifying the output. 7874 if sort "$nlist" | uniq > "$nlist"T; then 7875 mv -f "$nlist"T "$nlist" 7876 else 7877 rm -f "$nlist"T 7878 fi 7879 7880 # Make sure that we snagged all the symbols we need. 7881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7883 cat <<_LT_EOF > conftest.$ac_ext 7884#ifdef __cplusplus 7885extern "C" { 7886#endif 7887 7888_LT_EOF 7889 # Now generate the symbol file. 7890 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7891 7892 cat <<_LT_EOF >> conftest.$ac_ext 7893 7894/* The mapping between symbol names and symbols. */ 7895const struct { 7896 const char *name; 7897 void *address; 7898} 7899lt__PROGRAM__LTX_preloaded_symbols[] = 7900{ 7901 { "@PROGRAM@", (void *) 0 }, 7902_LT_EOF 7903 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7904 cat <<\_LT_EOF >> conftest.$ac_ext 7905 {0, (void *) 0} 7906}; 7907 7908/* This works around a problem in FreeBSD linker */ 7909#ifdef FREEBSD_WORKAROUND 7910static const void *lt_preloaded_setup() { 7911 return lt__PROGRAM__LTX_preloaded_symbols; 7912} 7913#endif 7914 7915#ifdef __cplusplus 7916} 7917#endif 7918_LT_EOF 7919 # Now try linking the two files. 7920 mv conftest.$ac_objext conftstm.$ac_objext 7921 lt_save_LIBS="$LIBS" 7922 lt_save_CFLAGS="$CFLAGS" 7923 LIBS="conftstm.$ac_objext" 7924 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7926 (eval $ac_link) 2>&5 7927 ac_status=$? 7928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7929 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7930 pipe_works=yes 7931 fi 7932 LIBS="$lt_save_LIBS" 7933 CFLAGS="$lt_save_CFLAGS" 7934 else 7935 echo "cannot find nm_test_func in $nlist" >&5 7936 fi 7937 else 7938 echo "cannot find nm_test_var in $nlist" >&5 7939 fi 7940 else 7941 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7942 fi 7943 else 7944 echo "$progname: failed program was:" >&5 7945 cat conftest.$ac_ext >&5 7946 fi 7947 rm -rf conftest* conftst* 7948 7949 # Do not use the global_symbol_pipe unless it works. 7950 if test "$pipe_works" = yes; then 7951 break 7952 else 7953 lt_cv_sys_global_symbol_pipe= 7954 fi 7955done 7956 7957fi 7958 7959if test -z "$lt_cv_sys_global_symbol_pipe"; then 7960 lt_cv_sys_global_symbol_to_cdecl= 7961fi 7962if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7964$as_echo "failed" >&6; } 7965else 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7967$as_echo "ok" >&6; } 7968fi 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991# Check whether --enable-libtool-lock was given. 7992if test "${enable_libtool_lock+set}" = set; then : 7993 enableval=$enable_libtool_lock; 7994fi 7995 7996test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7997 7998# Some flags need to be propagated to the compiler or linker for good 7999# libtool support. 8000case $host in 8001ia64-*-hpux*) 8002 # Find out which ABI we are using. 8003 echo 'int i;' > conftest.$ac_ext 8004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8005 (eval $ac_compile) 2>&5 8006 ac_status=$? 8007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8008 test $ac_status = 0; }; then 8009 case `/usr/bin/file conftest.$ac_objext` in 8010 *ELF-32*) 8011 HPUX_IA64_MODE="32" 8012 ;; 8013 *ELF-64*) 8014 HPUX_IA64_MODE="64" 8015 ;; 8016 esac 8017 fi 8018 rm -rf conftest* 8019 ;; 8020*-*-irix6*) 8021 # Find out which ABI we are using. 8022 echo '#line 8022 "configure"' > conftest.$ac_ext 8023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8024 (eval $ac_compile) 2>&5 8025 ac_status=$? 8026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8027 test $ac_status = 0; }; then 8028 if test "$lt_cv_prog_gnu_ld" = yes; then 8029 case `/usr/bin/file conftest.$ac_objext` in 8030 *32-bit*) 8031 LD="${LD-ld} -melf32bsmip" 8032 ;; 8033 *N32*) 8034 LD="${LD-ld} -melf32bmipn32" 8035 ;; 8036 *64-bit*) 8037 LD="${LD-ld} -melf64bmip" 8038 ;; 8039 esac 8040 else 8041 case `/usr/bin/file conftest.$ac_objext` in 8042 *32-bit*) 8043 LD="${LD-ld} -32" 8044 ;; 8045 *N32*) 8046 LD="${LD-ld} -n32" 8047 ;; 8048 *64-bit*) 8049 LD="${LD-ld} -64" 8050 ;; 8051 esac 8052 fi 8053 fi 8054 rm -rf conftest* 8055 ;; 8056 8057x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8058s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8059 # Find out which ABI we are using. 8060 echo 'int i;' > conftest.$ac_ext 8061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8062 (eval $ac_compile) 2>&5 8063 ac_status=$? 8064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8065 test $ac_status = 0; }; then 8066 case `/usr/bin/file conftest.o` in 8067 *32-bit*) 8068 case $host in 8069 x86_64-*kfreebsd*-gnu) 8070 LD="${LD-ld} -m elf_i386_fbsd" 8071 ;; 8072 x86_64-*linux*) 8073 LD="${LD-ld} -m elf_i386" 8074 ;; 8075 ppc64-*linux*|powerpc64-*linux*) 8076 LD="${LD-ld} -m elf32ppclinux" 8077 ;; 8078 s390x-*linux*) 8079 LD="${LD-ld} -m elf_s390" 8080 ;; 8081 sparc64-*linux*) 8082 LD="${LD-ld} -m elf32_sparc" 8083 ;; 8084 esac 8085 ;; 8086 *64-bit*) 8087 case $host in 8088 x86_64-*kfreebsd*-gnu) 8089 LD="${LD-ld} -m elf_x86_64_fbsd" 8090 ;; 8091 x86_64-*linux*) 8092 LD="${LD-ld} -m elf_x86_64" 8093 ;; 8094 ppc*-*linux*|powerpc*-*linux*) 8095 LD="${LD-ld} -m elf64ppc" 8096 ;; 8097 s390*-*linux*|s390*-*tpf*) 8098 LD="${LD-ld} -m elf64_s390" 8099 ;; 8100 sparc*-*linux*) 8101 LD="${LD-ld} -m elf64_sparc" 8102 ;; 8103 esac 8104 ;; 8105 esac 8106 fi 8107 rm -rf conftest* 8108 ;; 8109 8110*-*-sco3.2v5*) 8111 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8112 SAVE_CFLAGS="$CFLAGS" 8113 CFLAGS="$CFLAGS -belf" 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8115$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8116if test "${lt_cv_cc_needs_belf+set}" = set; then : 8117 $as_echo_n "(cached) " >&6 8118else 8119 ac_ext=c 8120ac_cpp='$CPP $CPPFLAGS' 8121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8123ac_compiler_gnu=$ac_cv_c_compiler_gnu 8124 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127 8128int 8129main () 8130{ 8131 8132 ; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_c_try_link "$LINENO"; then : 8137 lt_cv_cc_needs_belf=yes 8138else 8139 lt_cv_cc_needs_belf=no 8140fi 8141rm -f core conftest.err conftest.$ac_objext \ 8142 conftest$ac_exeext conftest.$ac_ext 8143 ac_ext=c 8144ac_cpp='$CPP $CPPFLAGS' 8145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8147ac_compiler_gnu=$ac_cv_c_compiler_gnu 8148 8149fi 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8151$as_echo "$lt_cv_cc_needs_belf" >&6; } 8152 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8153 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8154 CFLAGS="$SAVE_CFLAGS" 8155 fi 8156 ;; 8157sparc*-*solaris*) 8158 # Find out which ABI we are using. 8159 echo 'int i;' > conftest.$ac_ext 8160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8161 (eval $ac_compile) 2>&5 8162 ac_status=$? 8163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8164 test $ac_status = 0; }; then 8165 case `/usr/bin/file conftest.o` in 8166 *64-bit*) 8167 case $lt_cv_prog_gnu_ld in 8168 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8169 *) 8170 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8171 LD="${LD-ld} -64" 8172 fi 8173 ;; 8174 esac 8175 ;; 8176 esac 8177 fi 8178 rm -rf conftest* 8179 ;; 8180esac 8181 8182need_locks="$enable_libtool_lock" 8183 8184 8185 case $host_os in 8186 rhapsody* | darwin*) 8187 if test -n "$ac_tool_prefix"; then 8188 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8189set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8191$as_echo_n "checking for $ac_word... " >&6; } 8192if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 8193 $as_echo_n "(cached) " >&6 8194else 8195 if test -n "$DSYMUTIL"; then 8196 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8197else 8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8199for as_dir in $PATH 8200do 8201 IFS=$as_save_IFS 8202 test -z "$as_dir" && as_dir=. 8203 for ac_exec_ext in '' $ac_executable_extensions; do 8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8205 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8207 break 2 8208 fi 8209done 8210 done 8211IFS=$as_save_IFS 8212 8213fi 8214fi 8215DSYMUTIL=$ac_cv_prog_DSYMUTIL 8216if test -n "$DSYMUTIL"; then 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8218$as_echo "$DSYMUTIL" >&6; } 8219else 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8221$as_echo "no" >&6; } 8222fi 8223 8224 8225fi 8226if test -z "$ac_cv_prog_DSYMUTIL"; then 8227 ac_ct_DSYMUTIL=$DSYMUTIL 8228 # Extract the first word of "dsymutil", so it can be a program name with args. 8229set dummy dsymutil; ac_word=$2 8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8231$as_echo_n "checking for $ac_word... " >&6; } 8232if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 8233 $as_echo_n "(cached) " >&6 8234else 8235 if test -n "$ac_ct_DSYMUTIL"; then 8236 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8237else 8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8239for as_dir in $PATH 8240do 8241 IFS=$as_save_IFS 8242 test -z "$as_dir" && as_dir=. 8243 for ac_exec_ext in '' $ac_executable_extensions; do 8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8245 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8247 break 2 8248 fi 8249done 8250 done 8251IFS=$as_save_IFS 8252 8253fi 8254fi 8255ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8256if test -n "$ac_ct_DSYMUTIL"; then 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8258$as_echo "$ac_ct_DSYMUTIL" >&6; } 8259else 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8261$as_echo "no" >&6; } 8262fi 8263 8264 if test "x$ac_ct_DSYMUTIL" = x; then 8265 DSYMUTIL=":" 8266 else 8267 case $cross_compiling:$ac_tool_warned in 8268yes:) 8269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8271ac_tool_warned=yes ;; 8272esac 8273 DSYMUTIL=$ac_ct_DSYMUTIL 8274 fi 8275else 8276 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8277fi 8278 8279 if test -n "$ac_tool_prefix"; then 8280 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8281set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8283$as_echo_n "checking for $ac_word... " >&6; } 8284if test "${ac_cv_prog_NMEDIT+set}" = set; then : 8285 $as_echo_n "(cached) " >&6 8286else 8287 if test -n "$NMEDIT"; then 8288 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8289else 8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8291for as_dir in $PATH 8292do 8293 IFS=$as_save_IFS 8294 test -z "$as_dir" && as_dir=. 8295 for ac_exec_ext in '' $ac_executable_extensions; do 8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8297 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8299 break 2 8300 fi 8301done 8302 done 8303IFS=$as_save_IFS 8304 8305fi 8306fi 8307NMEDIT=$ac_cv_prog_NMEDIT 8308if test -n "$NMEDIT"; then 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8310$as_echo "$NMEDIT" >&6; } 8311else 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8313$as_echo "no" >&6; } 8314fi 8315 8316 8317fi 8318if test -z "$ac_cv_prog_NMEDIT"; then 8319 ac_ct_NMEDIT=$NMEDIT 8320 # Extract the first word of "nmedit", so it can be a program name with args. 8321set dummy nmedit; ac_word=$2 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8323$as_echo_n "checking for $ac_word... " >&6; } 8324if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 if test -n "$ac_ct_NMEDIT"; then 8328 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8329else 8330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8331for as_dir in $PATH 8332do 8333 IFS=$as_save_IFS 8334 test -z "$as_dir" && as_dir=. 8335 for ac_exec_ext in '' $ac_executable_extensions; do 8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8337 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8339 break 2 8340 fi 8341done 8342 done 8343IFS=$as_save_IFS 8344 8345fi 8346fi 8347ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8348if test -n "$ac_ct_NMEDIT"; then 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8350$as_echo "$ac_ct_NMEDIT" >&6; } 8351else 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8353$as_echo "no" >&6; } 8354fi 8355 8356 if test "x$ac_ct_NMEDIT" = x; then 8357 NMEDIT=":" 8358 else 8359 case $cross_compiling:$ac_tool_warned in 8360yes:) 8361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8363ac_tool_warned=yes ;; 8364esac 8365 NMEDIT=$ac_ct_NMEDIT 8366 fi 8367else 8368 NMEDIT="$ac_cv_prog_NMEDIT" 8369fi 8370 8371 if test -n "$ac_tool_prefix"; then 8372 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8373set dummy ${ac_tool_prefix}lipo; ac_word=$2 8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8375$as_echo_n "checking for $ac_word... " >&6; } 8376if test "${ac_cv_prog_LIPO+set}" = set; then : 8377 $as_echo_n "(cached) " >&6 8378else 8379 if test -n "$LIPO"; then 8380 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8381else 8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8383for as_dir in $PATH 8384do 8385 IFS=$as_save_IFS 8386 test -z "$as_dir" && as_dir=. 8387 for ac_exec_ext in '' $ac_executable_extensions; do 8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8389 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8391 break 2 8392 fi 8393done 8394 done 8395IFS=$as_save_IFS 8396 8397fi 8398fi 8399LIPO=$ac_cv_prog_LIPO 8400if test -n "$LIPO"; then 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8402$as_echo "$LIPO" >&6; } 8403else 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8405$as_echo "no" >&6; } 8406fi 8407 8408 8409fi 8410if test -z "$ac_cv_prog_LIPO"; then 8411 ac_ct_LIPO=$LIPO 8412 # Extract the first word of "lipo", so it can be a program name with args. 8413set dummy lipo; ac_word=$2 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8415$as_echo_n "checking for $ac_word... " >&6; } 8416if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 if test -n "$ac_ct_LIPO"; then 8420 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8421else 8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8423for as_dir in $PATH 8424do 8425 IFS=$as_save_IFS 8426 test -z "$as_dir" && as_dir=. 8427 for ac_exec_ext in '' $ac_executable_extensions; do 8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8429 ac_cv_prog_ac_ct_LIPO="lipo" 8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8431 break 2 8432 fi 8433done 8434 done 8435IFS=$as_save_IFS 8436 8437fi 8438fi 8439ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8440if test -n "$ac_ct_LIPO"; then 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8442$as_echo "$ac_ct_LIPO" >&6; } 8443else 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8445$as_echo "no" >&6; } 8446fi 8447 8448 if test "x$ac_ct_LIPO" = x; then 8449 LIPO=":" 8450 else 8451 case $cross_compiling:$ac_tool_warned in 8452yes:) 8453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8455ac_tool_warned=yes ;; 8456esac 8457 LIPO=$ac_ct_LIPO 8458 fi 8459else 8460 LIPO="$ac_cv_prog_LIPO" 8461fi 8462 8463 if test -n "$ac_tool_prefix"; then 8464 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8465set dummy ${ac_tool_prefix}otool; ac_word=$2 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8467$as_echo_n "checking for $ac_word... " >&6; } 8468if test "${ac_cv_prog_OTOOL+set}" = set; then : 8469 $as_echo_n "(cached) " >&6 8470else 8471 if test -n "$OTOOL"; then 8472 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8473else 8474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8475for as_dir in $PATH 8476do 8477 IFS=$as_save_IFS 8478 test -z "$as_dir" && as_dir=. 8479 for ac_exec_ext in '' $ac_executable_extensions; do 8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8481 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8483 break 2 8484 fi 8485done 8486 done 8487IFS=$as_save_IFS 8488 8489fi 8490fi 8491OTOOL=$ac_cv_prog_OTOOL 8492if test -n "$OTOOL"; then 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8494$as_echo "$OTOOL" >&6; } 8495else 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8497$as_echo "no" >&6; } 8498fi 8499 8500 8501fi 8502if test -z "$ac_cv_prog_OTOOL"; then 8503 ac_ct_OTOOL=$OTOOL 8504 # Extract the first word of "otool", so it can be a program name with args. 8505set dummy otool; ac_word=$2 8506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8507$as_echo_n "checking for $ac_word... " >&6; } 8508if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 8509 $as_echo_n "(cached) " >&6 8510else 8511 if test -n "$ac_ct_OTOOL"; then 8512 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8513else 8514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8515for as_dir in $PATH 8516do 8517 IFS=$as_save_IFS 8518 test -z "$as_dir" && as_dir=. 8519 for ac_exec_ext in '' $ac_executable_extensions; do 8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8521 ac_cv_prog_ac_ct_OTOOL="otool" 8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8523 break 2 8524 fi 8525done 8526 done 8527IFS=$as_save_IFS 8528 8529fi 8530fi 8531ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8532if test -n "$ac_ct_OTOOL"; then 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8534$as_echo "$ac_ct_OTOOL" >&6; } 8535else 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8537$as_echo "no" >&6; } 8538fi 8539 8540 if test "x$ac_ct_OTOOL" = x; then 8541 OTOOL=":" 8542 else 8543 case $cross_compiling:$ac_tool_warned in 8544yes:) 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8547ac_tool_warned=yes ;; 8548esac 8549 OTOOL=$ac_ct_OTOOL 8550 fi 8551else 8552 OTOOL="$ac_cv_prog_OTOOL" 8553fi 8554 8555 if test -n "$ac_tool_prefix"; then 8556 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8557set dummy ${ac_tool_prefix}otool64; ac_word=$2 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8559$as_echo_n "checking for $ac_word... " >&6; } 8560if test "${ac_cv_prog_OTOOL64+set}" = set; then : 8561 $as_echo_n "(cached) " >&6 8562else 8563 if test -n "$OTOOL64"; then 8564 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8565else 8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8567for as_dir in $PATH 8568do 8569 IFS=$as_save_IFS 8570 test -z "$as_dir" && as_dir=. 8571 for ac_exec_ext in '' $ac_executable_extensions; do 8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8573 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8575 break 2 8576 fi 8577done 8578 done 8579IFS=$as_save_IFS 8580 8581fi 8582fi 8583OTOOL64=$ac_cv_prog_OTOOL64 8584if test -n "$OTOOL64"; then 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8586$as_echo "$OTOOL64" >&6; } 8587else 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8589$as_echo "no" >&6; } 8590fi 8591 8592 8593fi 8594if test -z "$ac_cv_prog_OTOOL64"; then 8595 ac_ct_OTOOL64=$OTOOL64 8596 # Extract the first word of "otool64", so it can be a program name with args. 8597set dummy otool64; ac_word=$2 8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8599$as_echo_n "checking for $ac_word... " >&6; } 8600if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 if test -n "$ac_ct_OTOOL64"; then 8604 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8605else 8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8607for as_dir in $PATH 8608do 8609 IFS=$as_save_IFS 8610 test -z "$as_dir" && as_dir=. 8611 for ac_exec_ext in '' $ac_executable_extensions; do 8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8613 ac_cv_prog_ac_ct_OTOOL64="otool64" 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8615 break 2 8616 fi 8617done 8618 done 8619IFS=$as_save_IFS 8620 8621fi 8622fi 8623ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8624if test -n "$ac_ct_OTOOL64"; then 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8626$as_echo "$ac_ct_OTOOL64" >&6; } 8627else 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8629$as_echo "no" >&6; } 8630fi 8631 8632 if test "x$ac_ct_OTOOL64" = x; then 8633 OTOOL64=":" 8634 else 8635 case $cross_compiling:$ac_tool_warned in 8636yes:) 8637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8639ac_tool_warned=yes ;; 8640esac 8641 OTOOL64=$ac_ct_OTOOL64 8642 fi 8643else 8644 OTOOL64="$ac_cv_prog_OTOOL64" 8645fi 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8674$as_echo_n "checking for -single_module linker flag... " >&6; } 8675if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 lt_cv_apple_cc_single_mod=no 8679 if test -z "${LT_MULTI_MODULE}"; then 8680 # By default we will add the -single_module flag. You can override 8681 # by either setting the environment variable LT_MULTI_MODULE 8682 # non-empty at configure time, or by adding -multi_module to the 8683 # link flags. 8684 rm -rf libconftest.dylib* 8685 echo "int foo(void){return 1;}" > conftest.c 8686 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8687-dynamiclib -Wl,-single_module conftest.c" >&5 8688 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8689 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8690 _lt_result=$? 8691 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8692 lt_cv_apple_cc_single_mod=yes 8693 else 8694 cat conftest.err >&5 8695 fi 8696 rm -rf libconftest.dylib* 8697 rm -f conftest.* 8698 fi 8699fi 8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8701$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8703$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8704if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 lt_cv_ld_exported_symbols_list=no 8708 save_LDFLAGS=$LDFLAGS 8709 echo "_main" > conftest.sym 8710 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713 8714int 8715main () 8716{ 8717 8718 ; 8719 return 0; 8720} 8721_ACEOF 8722if ac_fn_c_try_link "$LINENO"; then : 8723 lt_cv_ld_exported_symbols_list=yes 8724else 8725 lt_cv_ld_exported_symbols_list=no 8726fi 8727rm -f core conftest.err conftest.$ac_objext \ 8728 conftest$ac_exeext conftest.$ac_ext 8729 LDFLAGS="$save_LDFLAGS" 8730 8731fi 8732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8733$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8734 case $host_os in 8735 rhapsody* | darwin1.[012]) 8736 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8737 darwin1.*) 8738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8739 darwin*) # darwin 5.x on 8740 # if running on 10.5 or later, the deployment target defaults 8741 # to the OS version, if on x86, and 10.4, the deployment 8742 # target defaults to 10.4. Don't you love it? 8743 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8744 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8745 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8746 10.[012]*) 8747 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8748 10.*) 8749 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8750 esac 8751 ;; 8752 esac 8753 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8754 _lt_dar_single_mod='$single_module' 8755 fi 8756 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8757 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8758 else 8759 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8760 fi 8761 if test "$DSYMUTIL" != ":"; then 8762 _lt_dsymutil='~$DSYMUTIL $lib || :' 8763 else 8764 _lt_dsymutil= 8765 fi 8766 ;; 8767 esac 8768 8769for ac_header in dlfcn.h 8770do : 8771 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8772" 8773if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8774 cat >>confdefs.h <<_ACEOF 8775#define HAVE_DLFCN_H 1 8776_ACEOF 8777 8778fi 8779 8780done 8781 8782 8783 8784# Set options 8785 8786 8787 8788 8789 enable_win32_dll=no 8790 8791 8792 # Check whether --enable-shared was given. 8793if test "${enable_shared+set}" = set; then : 8794 enableval=$enable_shared; p=${PACKAGE-default} 8795 case $enableval in 8796 yes) enable_shared=yes ;; 8797 no) enable_shared=no ;; 8798 *) 8799 enable_shared=no 8800 # Look at the argument we got. We use all the common list separators. 8801 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8802 for pkg in $enableval; do 8803 IFS="$lt_save_ifs" 8804 if test "X$pkg" = "X$p"; then 8805 enable_shared=yes 8806 fi 8807 done 8808 IFS="$lt_save_ifs" 8809 ;; 8810 esac 8811else 8812 enable_shared=yes 8813fi 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825# Check whether --with-pic was given. 8826if test "${with_pic+set}" = set; then : 8827 withval=$with_pic; pic_mode="$withval" 8828else 8829 pic_mode=default 8830fi 8831 8832 8833test -z "$pic_mode" && pic_mode=default 8834 8835 8836 8837 8838 8839 8840 8841 # Check whether --enable-fast-install was given. 8842if test "${enable_fast_install+set}" = set; then : 8843 enableval=$enable_fast_install; p=${PACKAGE-default} 8844 case $enableval in 8845 yes) enable_fast_install=yes ;; 8846 no) enable_fast_install=no ;; 8847 *) 8848 enable_fast_install=no 8849 # Look at the argument we got. We use all the common list separators. 8850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8851 for pkg in $enableval; do 8852 IFS="$lt_save_ifs" 8853 if test "X$pkg" = "X$p"; then 8854 enable_fast_install=yes 8855 fi 8856 done 8857 IFS="$lt_save_ifs" 8858 ;; 8859 esac 8860else 8861 enable_fast_install=yes 8862fi 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874# This can be used to rebuild libtool when needed 8875LIBTOOL_DEPS="$ltmain" 8876 8877# Always use our own libtool. 8878LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904test -z "$LN_S" && LN_S="ln -s" 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919if test -n "${ZSH_VERSION+set}" ; then 8920 setopt NO_GLOB_SUBST 8921fi 8922 8923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8924$as_echo_n "checking for objdir... " >&6; } 8925if test "${lt_cv_objdir+set}" = set; then : 8926 $as_echo_n "(cached) " >&6 8927else 8928 rm -f .libs 2>/dev/null 8929mkdir .libs 2>/dev/null 8930if test -d .libs; then 8931 lt_cv_objdir=.libs 8932else 8933 # MS-DOS does not allow filenames that begin with a dot. 8934 lt_cv_objdir=_libs 8935fi 8936rmdir .libs 2>/dev/null 8937fi 8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8939$as_echo "$lt_cv_objdir" >&6; } 8940objdir=$lt_cv_objdir 8941 8942 8943 8944 8945 8946cat >>confdefs.h <<_ACEOF 8947#define LT_OBJDIR "$lt_cv_objdir/" 8948_ACEOF 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966case $host_os in 8967aix3*) 8968 # AIX sometimes has problems with the GCC collect2 program. For some 8969 # reason, if we set the COLLECT_NAMES environment variable, the problems 8970 # vanish in a puff of smoke. 8971 if test "X${COLLECT_NAMES+set}" != Xset; then 8972 COLLECT_NAMES= 8973 export COLLECT_NAMES 8974 fi 8975 ;; 8976esac 8977 8978# Sed substitution that helps us do robust quoting. It backslashifies 8979# metacharacters that are still active within double-quoted strings. 8980sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8981 8982# Same as above, but do not quote variable references. 8983double_quote_subst='s/\(["`\\]\)/\\\1/g' 8984 8985# Sed substitution to delay expansion of an escaped shell variable in a 8986# double_quote_subst'ed string. 8987delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8988 8989# Sed substitution to delay expansion of an escaped single quote. 8990delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8991 8992# Sed substitution to avoid accidental globbing in evaled expressions 8993no_glob_subst='s/\*/\\\*/g' 8994 8995# Global variables: 8996ofile=libtool 8997can_build_shared=yes 8998 8999# All known linkers require a `.a' archive for static linking (except MSVC, 9000# which needs '.lib'). 9001libext=a 9002 9003with_gnu_ld="$lt_cv_prog_gnu_ld" 9004 9005old_CC="$CC" 9006old_CFLAGS="$CFLAGS" 9007 9008# Set sane defaults for various variables 9009test -z "$CC" && CC=cc 9010test -z "$LTCC" && LTCC=$CC 9011test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9012test -z "$LD" && LD=ld 9013test -z "$ac_objext" && ac_objext=o 9014 9015for cc_temp in $compiler""; do 9016 case $cc_temp in 9017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9019 \-*) ;; 9020 *) break;; 9021 esac 9022done 9023cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9024 9025 9026# Only perform the check for file, if the check method requires it 9027test -z "$MAGIC_CMD" && MAGIC_CMD=file 9028case $deplibs_check_method in 9029file_magic*) 9030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9032$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9033if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9034 $as_echo_n "(cached) " >&6 9035else 9036 case $MAGIC_CMD in 9037[\\/*] | ?:[\\/]*) 9038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9039 ;; 9040*) 9041 lt_save_MAGIC_CMD="$MAGIC_CMD" 9042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9044 for ac_dir in $ac_dummy; do 9045 IFS="$lt_save_ifs" 9046 test -z "$ac_dir" && ac_dir=. 9047 if test -f $ac_dir/${ac_tool_prefix}file; then 9048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9049 if test -n "$file_magic_test_file"; then 9050 case $deplibs_check_method in 9051 "file_magic "*) 9052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9055 $EGREP "$file_magic_regex" > /dev/null; then 9056 : 9057 else 9058 cat <<_LT_EOF 1>&2 9059 9060*** Warning: the command libtool uses to detect shared libraries, 9061*** $file_magic_cmd, produces output that libtool cannot recognize. 9062*** The result is that libtool may fail to recognize shared libraries 9063*** as such. This will affect the creation of libtool libraries that 9064*** depend on shared libraries, but programs linked with such libtool 9065*** libraries will work regardless of this problem. Nevertheless, you 9066*** may want to report the problem to your system manager and/or to 9067*** bug-libtool@gnu.org 9068 9069_LT_EOF 9070 fi ;; 9071 esac 9072 fi 9073 break 9074 fi 9075 done 9076 IFS="$lt_save_ifs" 9077 MAGIC_CMD="$lt_save_MAGIC_CMD" 9078 ;; 9079esac 9080fi 9081 9082MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9083if test -n "$MAGIC_CMD"; then 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9085$as_echo "$MAGIC_CMD" >&6; } 9086else 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9088$as_echo "no" >&6; } 9089fi 9090 9091 9092 9093 9094 9095if test -z "$lt_cv_path_MAGIC_CMD"; then 9096 if test -n "$ac_tool_prefix"; then 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9098$as_echo_n "checking for file... " >&6; } 9099if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9100 $as_echo_n "(cached) " >&6 9101else 9102 case $MAGIC_CMD in 9103[\\/*] | ?:[\\/]*) 9104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9105 ;; 9106*) 9107 lt_save_MAGIC_CMD="$MAGIC_CMD" 9108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9110 for ac_dir in $ac_dummy; do 9111 IFS="$lt_save_ifs" 9112 test -z "$ac_dir" && ac_dir=. 9113 if test -f $ac_dir/file; then 9114 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9115 if test -n "$file_magic_test_file"; then 9116 case $deplibs_check_method in 9117 "file_magic "*) 9118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9121 $EGREP "$file_magic_regex" > /dev/null; then 9122 : 9123 else 9124 cat <<_LT_EOF 1>&2 9125 9126*** Warning: the command libtool uses to detect shared libraries, 9127*** $file_magic_cmd, produces output that libtool cannot recognize. 9128*** The result is that libtool may fail to recognize shared libraries 9129*** as such. This will affect the creation of libtool libraries that 9130*** depend on shared libraries, but programs linked with such libtool 9131*** libraries will work regardless of this problem. Nevertheless, you 9132*** may want to report the problem to your system manager and/or to 9133*** bug-libtool@gnu.org 9134 9135_LT_EOF 9136 fi ;; 9137 esac 9138 fi 9139 break 9140 fi 9141 done 9142 IFS="$lt_save_ifs" 9143 MAGIC_CMD="$lt_save_MAGIC_CMD" 9144 ;; 9145esac 9146fi 9147 9148MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9149if test -n "$MAGIC_CMD"; then 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9151$as_echo "$MAGIC_CMD" >&6; } 9152else 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9154$as_echo "no" >&6; } 9155fi 9156 9157 9158 else 9159 MAGIC_CMD=: 9160 fi 9161fi 9162 9163 fi 9164 ;; 9165esac 9166 9167# Use C for the default configuration in the libtool script 9168 9169lt_save_CC="$CC" 9170ac_ext=c 9171ac_cpp='$CPP $CPPFLAGS' 9172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9174ac_compiler_gnu=$ac_cv_c_compiler_gnu 9175 9176 9177# Source file extension for C test sources. 9178ac_ext=c 9179 9180# Object file extension for compiled C test sources. 9181objext=o 9182objext=$objext 9183 9184# Code to be used in simple compile tests 9185lt_simple_compile_test_code="int some_variable = 0;" 9186 9187# Code to be used in simple link tests 9188lt_simple_link_test_code='int main(){return(0);}' 9189 9190 9191 9192 9193 9194 9195 9196# If no C compiler was specified, use CC. 9197LTCC=${LTCC-"$CC"} 9198 9199# If no C compiler flags were specified, use CFLAGS. 9200LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9201 9202# Allow CC to be a program name with arguments. 9203compiler=$CC 9204 9205# Save the default compiler, since it gets overwritten when the other 9206# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9207compiler_DEFAULT=$CC 9208 9209# save warnings/boilerplate of simple test code 9210ac_outfile=conftest.$ac_objext 9211echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9213_lt_compiler_boilerplate=`cat conftest.err` 9214$RM conftest* 9215 9216ac_outfile=conftest.$ac_objext 9217echo "$lt_simple_link_test_code" >conftest.$ac_ext 9218eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9219_lt_linker_boilerplate=`cat conftest.err` 9220$RM -r conftest* 9221 9222 9223if test -n "$compiler"; then 9224 9225lt_prog_compiler_no_builtin_flag= 9226 9227if test "$GCC" = yes; then 9228 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9229 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9231$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9232if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 lt_cv_prog_compiler_rtti_exceptions=no 9236 ac_outfile=conftest.$ac_objext 9237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9238 lt_compiler_flag="-fno-rtti -fno-exceptions" 9239 # Insert the option either (1) after the last *FLAGS variable, or 9240 # (2) before a word containing "conftest.", or (3) at the end. 9241 # Note that $ac_compile itself does not contain backslashes and begins 9242 # with a dollar sign (not a hyphen), so the echo should work correctly. 9243 # The option is referenced via a variable to avoid confusing sed. 9244 lt_compile=`echo "$ac_compile" | $SED \ 9245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9247 -e 's:$: $lt_compiler_flag:'` 9248 (eval echo "\"\$as_me:9248: $lt_compile\"" >&5) 9249 (eval "$lt_compile" 2>conftest.err) 9250 ac_status=$? 9251 cat conftest.err >&5 9252 echo "$as_me:9252: \$? = $ac_status" >&5 9253 if (exit $ac_status) && test -s "$ac_outfile"; then 9254 # The compiler can only warn and ignore the option if not recognized 9255 # So say no if there are warnings other than the usual output. 9256 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9259 lt_cv_prog_compiler_rtti_exceptions=yes 9260 fi 9261 fi 9262 $RM conftest* 9263 9264fi 9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9266$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9267 9268if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9269 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9270else 9271 : 9272fi 9273 9274fi 9275 9276 9277 9278 9279 9280 9281 lt_prog_compiler_wl= 9282lt_prog_compiler_pic= 9283lt_prog_compiler_static= 9284 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9286$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9287 9288 if test "$GCC" = yes; then 9289 lt_prog_compiler_wl='-Wl,' 9290 lt_prog_compiler_static='-static' 9291 9292 case $host_os in 9293 aix*) 9294 # All AIX code is PIC. 9295 if test "$host_cpu" = ia64; then 9296 # AIX 5 now supports IA64 processor 9297 lt_prog_compiler_static='-Bstatic' 9298 fi 9299 ;; 9300 9301 amigaos*) 9302 case $host_cpu in 9303 powerpc) 9304 # see comment about AmigaOS4 .so support 9305 lt_prog_compiler_pic='-fPIC' 9306 ;; 9307 m68k) 9308 # FIXME: we need at least 68020 code to build shared libraries, but 9309 # adding the `-m68020' flag to GCC prevents building anything better, 9310 # like `-m68040'. 9311 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9312 ;; 9313 esac 9314 ;; 9315 9316 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9317 # PIC is the default for these OSes. 9318 ;; 9319 9320 mingw* | cygwin* | pw32* | os2* | cegcc*) 9321 # This hack is so that the source file can tell whether it is being 9322 # built for inclusion in a dll (and should export symbols for example). 9323 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9324 # (--disable-auto-import) libraries 9325 lt_prog_compiler_pic='-DDLL_EXPORT' 9326 ;; 9327 9328 darwin* | rhapsody*) 9329 # PIC is the default on this platform 9330 # Common symbols not allowed in MH_DYLIB files 9331 lt_prog_compiler_pic='-fno-common' 9332 ;; 9333 9334 hpux*) 9335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9337 # sets the default TLS model and affects inlining. 9338 case $host_cpu in 9339 hppa*64*) 9340 # +Z the default 9341 ;; 9342 *) 9343 lt_prog_compiler_pic='-fPIC' 9344 ;; 9345 esac 9346 ;; 9347 9348 interix[3-9]*) 9349 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9350 # Instead, we relocate shared libraries at runtime. 9351 ;; 9352 9353 msdosdjgpp*) 9354 # Just because we use GCC doesn't mean we suddenly get shared libraries 9355 # on systems that don't support them. 9356 lt_prog_compiler_can_build_shared=no 9357 enable_shared=no 9358 ;; 9359 9360 *nto* | *qnx*) 9361 # QNX uses GNU C++, but need to define -shared option too, otherwise 9362 # it will coredump. 9363 lt_prog_compiler_pic='-fPIC -shared' 9364 ;; 9365 9366 sysv4*MP*) 9367 if test -d /usr/nec; then 9368 lt_prog_compiler_pic=-Kconform_pic 9369 fi 9370 ;; 9371 9372 *) 9373 lt_prog_compiler_pic='-fPIC' 9374 ;; 9375 esac 9376 else 9377 # PORTME Check for flag to pass linker flags through the system compiler. 9378 case $host_os in 9379 aix*) 9380 lt_prog_compiler_wl='-Wl,' 9381 if test "$host_cpu" = ia64; then 9382 # AIX 5 now supports IA64 processor 9383 lt_prog_compiler_static='-Bstatic' 9384 else 9385 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9386 fi 9387 ;; 9388 9389 mingw* | cygwin* | pw32* | os2* | cegcc*) 9390 # This hack is so that the source file can tell whether it is being 9391 # built for inclusion in a dll (and should export symbols for example). 9392 lt_prog_compiler_pic='-DDLL_EXPORT' 9393 ;; 9394 9395 hpux9* | hpux10* | hpux11*) 9396 lt_prog_compiler_wl='-Wl,' 9397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9398 # not for PA HP-UX. 9399 case $host_cpu in 9400 hppa*64*|ia64*) 9401 # +Z the default 9402 ;; 9403 *) 9404 lt_prog_compiler_pic='+Z' 9405 ;; 9406 esac 9407 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9408 lt_prog_compiler_static='${wl}-a ${wl}archive' 9409 ;; 9410 9411 irix5* | irix6* | nonstopux*) 9412 lt_prog_compiler_wl='-Wl,' 9413 # PIC (with -KPIC) is the default. 9414 lt_prog_compiler_static='-non_shared' 9415 ;; 9416 9417 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9418 case $cc_basename in 9419 # old Intel for x86_64 which still supported -KPIC. 9420 ecc*) 9421 lt_prog_compiler_wl='-Wl,' 9422 lt_prog_compiler_pic='-KPIC' 9423 lt_prog_compiler_static='-static' 9424 ;; 9425 # icc used to be incompatible with GCC. 9426 # ICC 10 doesn't accept -KPIC any more. 9427 icc* | ifort*) 9428 lt_prog_compiler_wl='-Wl,' 9429 lt_prog_compiler_pic='-fPIC' 9430 lt_prog_compiler_static='-static' 9431 ;; 9432 # Lahey Fortran 8.1. 9433 lf95*) 9434 lt_prog_compiler_wl='-Wl,' 9435 lt_prog_compiler_pic='--shared' 9436 lt_prog_compiler_static='--static' 9437 ;; 9438 pgcc* | pgf77* | pgf90* | pgf95*) 9439 # Portland Group compilers (*not* the Pentium gcc compiler, 9440 # which looks to be a dead project) 9441 lt_prog_compiler_wl='-Wl,' 9442 lt_prog_compiler_pic='-fpic' 9443 lt_prog_compiler_static='-Bstatic' 9444 ;; 9445 ccc*) 9446 lt_prog_compiler_wl='-Wl,' 9447 # All Alpha code is PIC. 9448 lt_prog_compiler_static='-non_shared' 9449 ;; 9450 xl*) 9451 # IBM XL C 8.0/Fortran 10.1 on PPC 9452 lt_prog_compiler_wl='-Wl,' 9453 lt_prog_compiler_pic='-qpic' 9454 lt_prog_compiler_static='-qstaticlink' 9455 ;; 9456 *) 9457 case `$CC -V 2>&1 | sed 5q` in 9458 *Sun\ C*) 9459 # Sun C 5.9 9460 lt_prog_compiler_pic='-KPIC' 9461 lt_prog_compiler_static='-Bstatic' 9462 lt_prog_compiler_wl='-Wl,' 9463 ;; 9464 *Sun\ F*) 9465 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9466 lt_prog_compiler_pic='-KPIC' 9467 lt_prog_compiler_static='-Bstatic' 9468 lt_prog_compiler_wl='' 9469 ;; 9470 esac 9471 ;; 9472 esac 9473 ;; 9474 9475 newsos6) 9476 lt_prog_compiler_pic='-KPIC' 9477 lt_prog_compiler_static='-Bstatic' 9478 ;; 9479 9480 *nto* | *qnx*) 9481 # QNX uses GNU C++, but need to define -shared option too, otherwise 9482 # it will coredump. 9483 lt_prog_compiler_pic='-fPIC -shared' 9484 ;; 9485 9486 osf3* | osf4* | osf5*) 9487 lt_prog_compiler_wl='-Wl,' 9488 # All OSF/1 code is PIC. 9489 lt_prog_compiler_static='-non_shared' 9490 ;; 9491 9492 rdos*) 9493 lt_prog_compiler_static='-non_shared' 9494 ;; 9495 9496 solaris*) 9497 lt_prog_compiler_pic='-KPIC' 9498 lt_prog_compiler_static='-Bstatic' 9499 case $cc_basename in 9500 f77* | f90* | f95*) 9501 lt_prog_compiler_wl='-Qoption ld ';; 9502 *) 9503 lt_prog_compiler_wl='-Wl,';; 9504 esac 9505 ;; 9506 9507 sunos4*) 9508 lt_prog_compiler_wl='-Qoption ld ' 9509 lt_prog_compiler_pic='-PIC' 9510 lt_prog_compiler_static='-Bstatic' 9511 ;; 9512 9513 sysv4 | sysv4.2uw2* | sysv4.3*) 9514 lt_prog_compiler_wl='-Wl,' 9515 lt_prog_compiler_pic='-KPIC' 9516 lt_prog_compiler_static='-Bstatic' 9517 ;; 9518 9519 sysv4*MP*) 9520 if test -d /usr/nec ;then 9521 lt_prog_compiler_pic='-Kconform_pic' 9522 lt_prog_compiler_static='-Bstatic' 9523 fi 9524 ;; 9525 9526 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9527 lt_prog_compiler_wl='-Wl,' 9528 lt_prog_compiler_pic='-KPIC' 9529 lt_prog_compiler_static='-Bstatic' 9530 ;; 9531 9532 unicos*) 9533 lt_prog_compiler_wl='-Wl,' 9534 lt_prog_compiler_can_build_shared=no 9535 ;; 9536 9537 uts4*) 9538 lt_prog_compiler_pic='-pic' 9539 lt_prog_compiler_static='-Bstatic' 9540 ;; 9541 9542 *) 9543 lt_prog_compiler_can_build_shared=no 9544 ;; 9545 esac 9546 fi 9547 9548case $host_os in 9549 # For platforms which do not support PIC, -DPIC is meaningless: 9550 *djgpp*) 9551 lt_prog_compiler_pic= 9552 ;; 9553 *) 9554 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9555 ;; 9556esac 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9558$as_echo "$lt_prog_compiler_pic" >&6; } 9559 9560 9561 9562 9563 9564 9565# 9566# Check to make sure the PIC flag actually works. 9567# 9568if test -n "$lt_prog_compiler_pic"; then 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9570$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9571if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9572 $as_echo_n "(cached) " >&6 9573else 9574 lt_cv_prog_compiler_pic_works=no 9575 ac_outfile=conftest.$ac_objext 9576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9577 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9578 # Insert the option either (1) after the last *FLAGS variable, or 9579 # (2) before a word containing "conftest.", or (3) at the end. 9580 # Note that $ac_compile itself does not contain backslashes and begins 9581 # with a dollar sign (not a hyphen), so the echo should work correctly. 9582 # The option is referenced via a variable to avoid confusing sed. 9583 lt_compile=`echo "$ac_compile" | $SED \ 9584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9586 -e 's:$: $lt_compiler_flag:'` 9587 (eval echo "\"\$as_me:9587: $lt_compile\"" >&5) 9588 (eval "$lt_compile" 2>conftest.err) 9589 ac_status=$? 9590 cat conftest.err >&5 9591 echo "$as_me:9591: \$? = $ac_status" >&5 9592 if (exit $ac_status) && test -s "$ac_outfile"; then 9593 # The compiler can only warn and ignore the option if not recognized 9594 # So say no if there are warnings other than the usual output. 9595 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9598 lt_cv_prog_compiler_pic_works=yes 9599 fi 9600 fi 9601 $RM conftest* 9602 9603fi 9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9605$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9606 9607if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9608 case $lt_prog_compiler_pic in 9609 "" | " "*) ;; 9610 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9611 esac 9612else 9613 lt_prog_compiler_pic= 9614 lt_prog_compiler_can_build_shared=no 9615fi 9616 9617fi 9618 9619 9620 9621 9622 9623 9624# 9625# Check to make sure the static flag actually works. 9626# 9627wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9629$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9630if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9631 $as_echo_n "(cached) " >&6 9632else 9633 lt_cv_prog_compiler_static_works=no 9634 save_LDFLAGS="$LDFLAGS" 9635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9636 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9638 # The linker can only warn and ignore the option if not recognized 9639 # So say no if there are warnings 9640 if test -s conftest.err; then 9641 # Append any errors to the config.log. 9642 cat conftest.err 1>&5 9643 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9645 if diff conftest.exp conftest.er2 >/dev/null; then 9646 lt_cv_prog_compiler_static_works=yes 9647 fi 9648 else 9649 lt_cv_prog_compiler_static_works=yes 9650 fi 9651 fi 9652 $RM -r conftest* 9653 LDFLAGS="$save_LDFLAGS" 9654 9655fi 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9657$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9658 9659if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9660 : 9661else 9662 lt_prog_compiler_static= 9663fi 9664 9665 9666 9667 9668 9669 9670 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9672$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9673if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9674 $as_echo_n "(cached) " >&6 9675else 9676 lt_cv_prog_compiler_c_o=no 9677 $RM -r conftest 2>/dev/null 9678 mkdir conftest 9679 cd conftest 9680 mkdir out 9681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9682 9683 lt_compiler_flag="-o out/conftest2.$ac_objext" 9684 # Insert the option either (1) after the last *FLAGS variable, or 9685 # (2) before a word containing "conftest.", or (3) at the end. 9686 # Note that $ac_compile itself does not contain backslashes and begins 9687 # with a dollar sign (not a hyphen), so the echo should work correctly. 9688 lt_compile=`echo "$ac_compile" | $SED \ 9689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9691 -e 's:$: $lt_compiler_flag:'` 9692 (eval echo "\"\$as_me:9692: $lt_compile\"" >&5) 9693 (eval "$lt_compile" 2>out/conftest.err) 9694 ac_status=$? 9695 cat out/conftest.err >&5 9696 echo "$as_me:9696: \$? = $ac_status" >&5 9697 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9698 then 9699 # The compiler can only warn and ignore the option if not recognized 9700 # So say no if there are warnings 9701 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9704 lt_cv_prog_compiler_c_o=yes 9705 fi 9706 fi 9707 chmod u+w . 2>&5 9708 $RM conftest* 9709 # SGI C++ compiler will create directory out/ii_files/ for 9710 # template instantiation 9711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9712 $RM out/* && rmdir out 9713 cd .. 9714 $RM -r conftest 9715 $RM conftest* 9716 9717fi 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9719$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9720 9721 9722 9723 9724 9725 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9727$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9728if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 lt_cv_prog_compiler_c_o=no 9732 $RM -r conftest 2>/dev/null 9733 mkdir conftest 9734 cd conftest 9735 mkdir out 9736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9737 9738 lt_compiler_flag="-o out/conftest2.$ac_objext" 9739 # Insert the option either (1) after the last *FLAGS variable, or 9740 # (2) before a word containing "conftest.", or (3) at the end. 9741 # Note that $ac_compile itself does not contain backslashes and begins 9742 # with a dollar sign (not a hyphen), so the echo should work correctly. 9743 lt_compile=`echo "$ac_compile" | $SED \ 9744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9746 -e 's:$: $lt_compiler_flag:'` 9747 (eval echo "\"\$as_me:9747: $lt_compile\"" >&5) 9748 (eval "$lt_compile" 2>out/conftest.err) 9749 ac_status=$? 9750 cat out/conftest.err >&5 9751 echo "$as_me:9751: \$? = $ac_status" >&5 9752 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9753 then 9754 # The compiler can only warn and ignore the option if not recognized 9755 # So say no if there are warnings 9756 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9759 lt_cv_prog_compiler_c_o=yes 9760 fi 9761 fi 9762 chmod u+w . 2>&5 9763 $RM conftest* 9764 # SGI C++ compiler will create directory out/ii_files/ for 9765 # template instantiation 9766 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9767 $RM out/* && rmdir out 9768 cd .. 9769 $RM -r conftest 9770 $RM conftest* 9771 9772fi 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9774$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9775 9776 9777 9778 9779hard_links="nottested" 9780if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9781 # do not overwrite the value of need_locks provided by the user 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9783$as_echo_n "checking if we can lock with hard links... " >&6; } 9784 hard_links=yes 9785 $RM conftest* 9786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9787 touch conftest.a 9788 ln conftest.a conftest.b 2>&5 || hard_links=no 9789 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9791$as_echo "$hard_links" >&6; } 9792 if test "$hard_links" = no; then 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9794$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9795 need_locks=warn 9796 fi 9797else 9798 need_locks=no 9799fi 9800 9801 9802 9803 9804 9805 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9807$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9808 9809 runpath_var= 9810 allow_undefined_flag= 9811 always_export_symbols=no 9812 archive_cmds= 9813 archive_expsym_cmds= 9814 compiler_needs_object=no 9815 enable_shared_with_static_runtimes=no 9816 export_dynamic_flag_spec= 9817 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9818 hardcode_automatic=no 9819 hardcode_direct=no 9820 hardcode_direct_absolute=no 9821 hardcode_libdir_flag_spec= 9822 hardcode_libdir_flag_spec_ld= 9823 hardcode_libdir_separator= 9824 hardcode_minus_L=no 9825 hardcode_shlibpath_var=unsupported 9826 inherit_rpath=no 9827 link_all_deplibs=unknown 9828 module_cmds= 9829 module_expsym_cmds= 9830 old_archive_from_new_cmds= 9831 old_archive_from_expsyms_cmds= 9832 thread_safe_flag_spec= 9833 whole_archive_flag_spec= 9834 # include_expsyms should be a list of space-separated symbols to be *always* 9835 # included in the symbol list 9836 include_expsyms= 9837 # exclude_expsyms can be an extended regexp of symbols to exclude 9838 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9839 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9840 # as well as any symbol that contains `d'. 9841 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9842 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9843 # platforms (ab)use it in PIC code, but their linkers get confused if 9844 # the symbol is explicitly referenced. Since portable code cannot 9845 # rely on this symbol name, it's probably fine to never include it in 9846 # preloaded symbol tables. 9847 # Exclude shared library initialization/finalization symbols. 9848 extract_expsyms_cmds= 9849 9850 case $host_os in 9851 cygwin* | mingw* | pw32* | cegcc*) 9852 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9853 # When not using gcc, we currently assume that we are using 9854 # Microsoft Visual C++. 9855 if test "$GCC" != yes; then 9856 with_gnu_ld=no 9857 fi 9858 ;; 9859 interix*) 9860 # we just hope/assume this is gcc and not c89 (= MSVC++) 9861 with_gnu_ld=yes 9862 ;; 9863 openbsd*) 9864 with_gnu_ld=no 9865 ;; 9866 linux* | k*bsd*-gnu) 9867 link_all_deplibs=no 9868 ;; 9869 esac 9870 9871 ld_shlibs=yes 9872 if test "$with_gnu_ld" = yes; then 9873 # If archive_cmds runs LD, not CC, wlarc should be empty 9874 wlarc='${wl}' 9875 9876 # Set some defaults for GNU ld with shared library support. These 9877 # are reset later if shared libraries are not supported. Putting them 9878 # here allows them to be overridden if necessary. 9879 runpath_var=LD_RUN_PATH 9880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9881 export_dynamic_flag_spec='${wl}--export-dynamic' 9882 # ancient GNU ld didn't support --whole-archive et. al. 9883 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9884 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9885 else 9886 whole_archive_flag_spec= 9887 fi 9888 supports_anon_versioning=no 9889 case `$LD -v 2>&1` in 9890 *GNU\ gold*) supports_anon_versioning=yes ;; 9891 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9892 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9893 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9894 *\ 2.11.*) ;; # other 2.11 versions 9895 *) supports_anon_versioning=yes ;; 9896 esac 9897 9898 # See if GNU ld supports shared libraries. 9899 case $host_os in 9900 aix[3-9]*) 9901 # On AIX/PPC, the GNU linker is very broken 9902 if test "$host_cpu" != ia64; then 9903 ld_shlibs=no 9904 cat <<_LT_EOF 1>&2 9905 9906*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9907*** to be unable to reliably create shared libraries on AIX. 9908*** Therefore, libtool is disabling shared libraries support. If you 9909*** really care for shared libraries, you may want to modify your PATH 9910*** so that a non-GNU linker is found, and then restart. 9911 9912_LT_EOF 9913 fi 9914 ;; 9915 9916 amigaos*) 9917 case $host_cpu in 9918 powerpc) 9919 # see comment about AmigaOS4 .so support 9920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9921 archive_expsym_cmds='' 9922 ;; 9923 m68k) 9924 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)' 9925 hardcode_libdir_flag_spec='-L$libdir' 9926 hardcode_minus_L=yes 9927 ;; 9928 esac 9929 ;; 9930 9931 beos*) 9932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9933 allow_undefined_flag=unsupported 9934 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9935 # support --undefined. This deserves some investigation. FIXME 9936 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9937 else 9938 ld_shlibs=no 9939 fi 9940 ;; 9941 9942 cygwin* | mingw* | pw32* | cegcc*) 9943 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9944 # as there is no search path for DLLs. 9945 hardcode_libdir_flag_spec='-L$libdir' 9946 allow_undefined_flag=unsupported 9947 always_export_symbols=no 9948 enable_shared_with_static_runtimes=yes 9949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9950 9951 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9953 # If the export-symbols file already is a .def file (1st line 9954 # is EXPORTS), use it as is; otherwise, prepend... 9955 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9956 cp $export_symbols $output_objdir/$soname.def; 9957 else 9958 echo EXPORTS > $output_objdir/$soname.def; 9959 cat $export_symbols >> $output_objdir/$soname.def; 9960 fi~ 9961 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9962 else 9963 ld_shlibs=no 9964 fi 9965 ;; 9966 9967 interix[3-9]*) 9968 hardcode_direct=no 9969 hardcode_shlibpath_var=no 9970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9971 export_dynamic_flag_spec='${wl}-E' 9972 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9973 # Instead, shared libraries are loaded at an image base (0x10000000 by 9974 # default) and relocated if they conflict, which is a slow very memory 9975 # consuming and fragmenting process. To avoid this, we pick a random, 9976 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9977 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9978 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9979 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' 9980 ;; 9981 9982 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9983 tmp_diet=no 9984 if test "$host_os" = linux-dietlibc; then 9985 case $cc_basename in 9986 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9987 esac 9988 fi 9989 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9990 && test "$tmp_diet" = no 9991 then 9992 tmp_addflag= 9993 tmp_sharedflag='-shared' 9994 case $cc_basename,$host_cpu in 9995 pgcc*) # Portland Group C compiler 9996 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' 9997 tmp_addflag=' $pic_flag' 9998 ;; 9999 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10000 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' 10001 tmp_addflag=' $pic_flag -Mnomain' ;; 10002 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10003 tmp_addflag=' -i_dynamic' ;; 10004 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10005 tmp_addflag=' -i_dynamic -nofor_main' ;; 10006 ifc* | ifort*) # Intel Fortran compiler 10007 tmp_addflag=' -nofor_main' ;; 10008 lf95*) # Lahey Fortran 8.1 10009 whole_archive_flag_spec= 10010 tmp_sharedflag='--shared' ;; 10011 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10012 tmp_sharedflag='-qmkshrobj' 10013 tmp_addflag= ;; 10014 esac 10015 case `$CC -V 2>&1 | sed 5q` in 10016 *Sun\ C*) # Sun C 5.9 10017 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' 10018 compiler_needs_object=yes 10019 tmp_sharedflag='-G' ;; 10020 *Sun\ F*) # Sun Fortran 8.3 10021 tmp_sharedflag='-G' ;; 10022 esac 10023 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10024 10025 if test "x$supports_anon_versioning" = xyes; then 10026 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10028 echo "local: *; };" >> $output_objdir/$libname.ver~ 10029 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10030 fi 10031 10032 case $cc_basename in 10033 xlf*) 10034 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10035 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10036 hardcode_libdir_flag_spec= 10037 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10038 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 10039 if test "x$supports_anon_versioning" = xyes; then 10040 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10042 echo "local: *; };" >> $output_objdir/$libname.ver~ 10043 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10044 fi 10045 ;; 10046 esac 10047 else 10048 ld_shlibs=no 10049 fi 10050 ;; 10051 10052 netbsd* | netbsdelf*-gnu) 10053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10054 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10055 wlarc= 10056 else 10057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10059 fi 10060 ;; 10061 10062 solaris*) 10063 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10064 ld_shlibs=no 10065 cat <<_LT_EOF 1>&2 10066 10067*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10068*** create shared libraries on Solaris systems. Therefore, libtool 10069*** is disabling shared libraries support. We urge you to upgrade GNU 10070*** binutils to release 2.9.1 or newer. Another option is to modify 10071*** your PATH or compiler configuration so that the native linker is 10072*** used, and then restart. 10073 10074_LT_EOF 10075 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10078 else 10079 ld_shlibs=no 10080 fi 10081 ;; 10082 10083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10084 case `$LD -v 2>&1` in 10085 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10086 ld_shlibs=no 10087 cat <<_LT_EOF 1>&2 10088 10089*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10090*** reliably create shared libraries on SCO systems. Therefore, libtool 10091*** is disabling shared libraries support. We urge you to upgrade GNU 10092*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10093*** your PATH or compiler configuration so that the native linker is 10094*** used, and then restart. 10095 10096_LT_EOF 10097 ;; 10098 *) 10099 # For security reasons, it is highly recommended that you always 10100 # use absolute paths for naming shared libraries, and exclude the 10101 # DT_RUNPATH tag from executables and libraries. But doing so 10102 # requires that you compile everything twice, which is a pain. 10103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10107 else 10108 ld_shlibs=no 10109 fi 10110 ;; 10111 esac 10112 ;; 10113 10114 sunos4*) 10115 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10116 wlarc= 10117 hardcode_direct=yes 10118 hardcode_shlibpath_var=no 10119 ;; 10120 10121 *) 10122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10125 else 10126 ld_shlibs=no 10127 fi 10128 ;; 10129 esac 10130 10131 if test "$ld_shlibs" = no; then 10132 runpath_var= 10133 hardcode_libdir_flag_spec= 10134 export_dynamic_flag_spec= 10135 whole_archive_flag_spec= 10136 fi 10137 else 10138 # PORTME fill in a description of your system's linker (not GNU ld) 10139 case $host_os in 10140 aix3*) 10141 allow_undefined_flag=unsupported 10142 always_export_symbols=yes 10143 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' 10144 # Note: this linker hardcodes the directories in LIBPATH if there 10145 # are no directories specified by -L. 10146 hardcode_minus_L=yes 10147 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10148 # Neither direct hardcoding nor static linking is supported with a 10149 # broken collect2. 10150 hardcode_direct=unsupported 10151 fi 10152 ;; 10153 10154 aix[4-9]*) 10155 if test "$host_cpu" = ia64; then 10156 # On IA64, the linker does run time linking by default, so we don't 10157 # have to do anything special. 10158 aix_use_runtimelinking=no 10159 exp_sym_flag='-Bexport' 10160 no_entry_flag="" 10161 else 10162 # If we're using GNU nm, then we don't want the "-C" option. 10163 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10165 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' 10166 else 10167 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' 10168 fi 10169 aix_use_runtimelinking=no 10170 10171 # Test if we are trying to use run time linking or normal 10172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10173 # need to do runtime linking. 10174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10175 for ld_flag in $LDFLAGS; do 10176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10177 aix_use_runtimelinking=yes 10178 break 10179 fi 10180 done 10181 ;; 10182 esac 10183 10184 exp_sym_flag='-bexport' 10185 no_entry_flag='-bnoentry' 10186 fi 10187 10188 # When large executables or shared objects are built, AIX ld can 10189 # have problems creating the table of contents. If linking a library 10190 # or program results in "error TOC overflow" add -mminimal-toc to 10191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10193 10194 archive_cmds='' 10195 hardcode_direct=yes 10196 hardcode_direct_absolute=yes 10197 hardcode_libdir_separator=':' 10198 link_all_deplibs=yes 10199 file_list_spec='${wl}-f,' 10200 10201 if test "$GCC" = yes; then 10202 case $host_os in aix4.[012]|aix4.[012].*) 10203 # We only want to do this on AIX 4.2 and lower, the check 10204 # below for broken collect2 doesn't work under 4.3+ 10205 collect2name=`${CC} -print-prog-name=collect2` 10206 if test -f "$collect2name" && 10207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10208 then 10209 # We have reworked collect2 10210 : 10211 else 10212 # We have old collect2 10213 hardcode_direct=unsupported 10214 # It fails to find uninstalled libraries when the uninstalled 10215 # path is not listed in the libpath. Setting hardcode_minus_L 10216 # to unsupported forces relinking 10217 hardcode_minus_L=yes 10218 hardcode_libdir_flag_spec='-L$libdir' 10219 hardcode_libdir_separator= 10220 fi 10221 ;; 10222 esac 10223 shared_flag='-shared' 10224 if test "$aix_use_runtimelinking" = yes; then 10225 shared_flag="$shared_flag "'${wl}-G' 10226 fi 10227 link_all_deplibs=no 10228 else 10229 # not using gcc 10230 if test "$host_cpu" = ia64; then 10231 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10232 # chokes on -Wl,-G. The following line is correct: 10233 shared_flag='-G' 10234 else 10235 if test "$aix_use_runtimelinking" = yes; then 10236 shared_flag='${wl}-G' 10237 else 10238 shared_flag='${wl}-bM:SRE' 10239 fi 10240 fi 10241 fi 10242 10243 export_dynamic_flag_spec='${wl}-bexpall' 10244 # It seems that -bexpall does not export symbols beginning with 10245 # underscore (_), so it is better to generate a list of symbols to export. 10246 always_export_symbols=yes 10247 if test "$aix_use_runtimelinking" = yes; then 10248 # Warning - without using the other runtime loading flags (-brtl), 10249 # -berok will link without error, but may produce a broken library. 10250 allow_undefined_flag='-berok' 10251 # Determine the default libpath from the value encoded in an 10252 # empty executable. 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255 10256int 10257main () 10258{ 10259 10260 ; 10261 return 0; 10262} 10263_ACEOF 10264if ac_fn_c_try_link "$LINENO"; then : 10265 10266lt_aix_libpath_sed=' 10267 /Import File Strings/,/^$/ { 10268 /^0/ { 10269 s/^0 *\(.*\)$/\1/ 10270 p 10271 } 10272 }' 10273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10274# Check for a 64-bit object if we didn't find anything. 10275if test -z "$aix_libpath"; then 10276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10277fi 10278fi 10279rm -f core conftest.err conftest.$ac_objext \ 10280 conftest$ac_exeext conftest.$ac_ext 10281if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10282 10283 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10284 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" 10285 else 10286 if test "$host_cpu" = ia64; then 10287 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10288 allow_undefined_flag="-z nodefs" 10289 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" 10290 else 10291 # Determine the default libpath from the value encoded in an 10292 # empty executable. 10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10294/* end confdefs.h. */ 10295 10296int 10297main () 10298{ 10299 10300 ; 10301 return 0; 10302} 10303_ACEOF 10304if ac_fn_c_try_link "$LINENO"; then : 10305 10306lt_aix_libpath_sed=' 10307 /Import File Strings/,/^$/ { 10308 /^0/ { 10309 s/^0 *\(.*\)$/\1/ 10310 p 10311 } 10312 }' 10313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10314# Check for a 64-bit object if we didn't find anything. 10315if test -z "$aix_libpath"; then 10316 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10317fi 10318fi 10319rm -f core conftest.err conftest.$ac_objext \ 10320 conftest$ac_exeext conftest.$ac_ext 10321if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10322 10323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10324 # Warning - without using the other run time loading flags, 10325 # -berok will link without error, but may produce a broken library. 10326 no_undefined_flag=' ${wl}-bernotok' 10327 allow_undefined_flag=' ${wl}-berok' 10328 # Exported symbols can be pulled into shared objects from archives 10329 whole_archive_flag_spec='$convenience' 10330 archive_cmds_need_lc=yes 10331 # This is similar to how AIX traditionally builds its shared libraries. 10332 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' 10333 fi 10334 fi 10335 ;; 10336 10337 amigaos*) 10338 case $host_cpu in 10339 powerpc) 10340 # see comment about AmigaOS4 .so support 10341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10342 archive_expsym_cmds='' 10343 ;; 10344 m68k) 10345 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)' 10346 hardcode_libdir_flag_spec='-L$libdir' 10347 hardcode_minus_L=yes 10348 ;; 10349 esac 10350 ;; 10351 10352 bsdi[45]*) 10353 export_dynamic_flag_spec=-rdynamic 10354 ;; 10355 10356 cygwin* | mingw* | pw32* | cegcc*) 10357 # When not using gcc, we currently assume that we are using 10358 # Microsoft Visual C++. 10359 # hardcode_libdir_flag_spec is actually meaningless, as there is 10360 # no search path for DLLs. 10361 hardcode_libdir_flag_spec=' ' 10362 allow_undefined_flag=unsupported 10363 # Tell ltmain to make .lib files, not .a files. 10364 libext=lib 10365 # Tell ltmain to make .dll files, not .so files. 10366 shrext_cmds=".dll" 10367 # FIXME: Setting linknames here is a bad hack. 10368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10369 # The linker will automatically build a .lib file if we build a DLL. 10370 old_archive_from_new_cmds='true' 10371 # FIXME: Should let the user specify the lib program. 10372 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10373 fix_srcfile_path='`cygpath -w "$srcfile"`' 10374 enable_shared_with_static_runtimes=yes 10375 ;; 10376 10377 darwin* | rhapsody*) 10378 10379 10380 archive_cmds_need_lc=no 10381 hardcode_direct=no 10382 hardcode_automatic=yes 10383 hardcode_shlibpath_var=unsupported 10384 whole_archive_flag_spec='' 10385 link_all_deplibs=yes 10386 allow_undefined_flag="$_lt_dar_allow_undefined" 10387 case $cc_basename in 10388 ifort*) _lt_dar_can_shared=yes ;; 10389 *) _lt_dar_can_shared=$GCC ;; 10390 esac 10391 if test "$_lt_dar_can_shared" = "yes"; then 10392 output_verbose_link_cmd=echo 10393 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10394 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10395 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}" 10396 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}" 10397 10398 else 10399 ld_shlibs=no 10400 fi 10401 10402 ;; 10403 10404 dgux*) 10405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10406 hardcode_libdir_flag_spec='-L$libdir' 10407 hardcode_shlibpath_var=no 10408 ;; 10409 10410 freebsd1*) 10411 ld_shlibs=no 10412 ;; 10413 10414 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10415 # support. Future versions do this automatically, but an explicit c++rt0.o 10416 # does not break anything, and helps significantly (at the cost of a little 10417 # extra space). 10418 freebsd2.2*) 10419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10420 hardcode_libdir_flag_spec='-R$libdir' 10421 hardcode_direct=yes 10422 hardcode_shlibpath_var=no 10423 ;; 10424 10425 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10426 freebsd2*) 10427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10428 hardcode_direct=yes 10429 hardcode_minus_L=yes 10430 hardcode_shlibpath_var=no 10431 ;; 10432 10433 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10434 freebsd* | dragonfly*) 10435 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10436 hardcode_libdir_flag_spec='-R$libdir' 10437 hardcode_direct=yes 10438 hardcode_shlibpath_var=no 10439 ;; 10440 10441 hpux9*) 10442 if test "$GCC" = yes; then 10443 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' 10444 else 10445 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' 10446 fi 10447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10448 hardcode_libdir_separator=: 10449 hardcode_direct=yes 10450 10451 # hardcode_minus_L: Not really in the search PATH, 10452 # but as the default location of the library. 10453 hardcode_minus_L=yes 10454 export_dynamic_flag_spec='${wl}-E' 10455 ;; 10456 10457 hpux10*) 10458 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10460 else 10461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10462 fi 10463 if test "$with_gnu_ld" = no; then 10464 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10465 hardcode_libdir_flag_spec_ld='+b $libdir' 10466 hardcode_libdir_separator=: 10467 hardcode_direct=yes 10468 hardcode_direct_absolute=yes 10469 export_dynamic_flag_spec='${wl}-E' 10470 # hardcode_minus_L: Not really in the search PATH, 10471 # but as the default location of the library. 10472 hardcode_minus_L=yes 10473 fi 10474 ;; 10475 10476 hpux11*) 10477 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10478 case $host_cpu in 10479 hppa*64*) 10480 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10481 ;; 10482 ia64*) 10483 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10484 ;; 10485 *) 10486 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10487 ;; 10488 esac 10489 else 10490 case $host_cpu in 10491 hppa*64*) 10492 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10493 ;; 10494 ia64*) 10495 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10496 ;; 10497 *) 10498 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10499 ;; 10500 esac 10501 fi 10502 if test "$with_gnu_ld" = no; then 10503 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10504 hardcode_libdir_separator=: 10505 10506 case $host_cpu in 10507 hppa*64*|ia64*) 10508 hardcode_direct=no 10509 hardcode_shlibpath_var=no 10510 ;; 10511 *) 10512 hardcode_direct=yes 10513 hardcode_direct_absolute=yes 10514 export_dynamic_flag_spec='${wl}-E' 10515 10516 # hardcode_minus_L: Not really in the search PATH, 10517 # but as the default location of the library. 10518 hardcode_minus_L=yes 10519 ;; 10520 esac 10521 fi 10522 ;; 10523 10524 irix5* | irix6* | nonstopux*) 10525 if test "$GCC" = yes; then 10526 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' 10527 # Try to use the -exported_symbol ld option, if it does not 10528 # work, assume that -exports_file does not work either and 10529 # implicitly export all symbols. 10530 save_LDFLAGS="$LDFLAGS" 10531 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10533/* end confdefs.h. */ 10534int foo(void) {} 10535_ACEOF 10536if ac_fn_c_try_link "$LINENO"; then : 10537 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' 10538 10539fi 10540rm -f core conftest.err conftest.$ac_objext \ 10541 conftest$ac_exeext conftest.$ac_ext 10542 LDFLAGS="$save_LDFLAGS" 10543 else 10544 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' 10545 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' 10546 fi 10547 archive_cmds_need_lc='no' 10548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10549 hardcode_libdir_separator=: 10550 inherit_rpath=yes 10551 link_all_deplibs=yes 10552 ;; 10553 10554 netbsd* | netbsdelf*-gnu) 10555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10557 else 10558 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10559 fi 10560 hardcode_libdir_flag_spec='-R$libdir' 10561 hardcode_direct=yes 10562 hardcode_shlibpath_var=no 10563 ;; 10564 10565 newsos6) 10566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10567 hardcode_direct=yes 10568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10569 hardcode_libdir_separator=: 10570 hardcode_shlibpath_var=no 10571 ;; 10572 10573 *nto* | *qnx*) 10574 ;; 10575 10576 openbsd*) 10577 if test -f /usr/libexec/ld.so; then 10578 hardcode_direct=yes 10579 hardcode_shlibpath_var=no 10580 hardcode_direct_absolute=yes 10581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10583 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10585 export_dynamic_flag_spec='${wl}-E' 10586 else 10587 case $host_os in 10588 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10590 hardcode_libdir_flag_spec='-R$libdir' 10591 ;; 10592 *) 10593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10594 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10595 ;; 10596 esac 10597 fi 10598 else 10599 ld_shlibs=no 10600 fi 10601 ;; 10602 10603 os2*) 10604 hardcode_libdir_flag_spec='-L$libdir' 10605 hardcode_minus_L=yes 10606 allow_undefined_flag=unsupported 10607 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' 10608 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10609 ;; 10610 10611 osf3*) 10612 if test "$GCC" = yes; then 10613 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10614 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' 10615 else 10616 allow_undefined_flag=' -expect_unresolved \*' 10617 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' 10618 fi 10619 archive_cmds_need_lc='no' 10620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10621 hardcode_libdir_separator=: 10622 ;; 10623 10624 osf4* | osf5*) # as osf3* with the addition of -msym flag 10625 if test "$GCC" = yes; then 10626 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10627 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' 10628 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10629 else 10630 allow_undefined_flag=' -expect_unresolved \*' 10631 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' 10632 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~ 10633 $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' 10634 10635 # Both c and cxx compiler support -rpath directly 10636 hardcode_libdir_flag_spec='-rpath $libdir' 10637 fi 10638 archive_cmds_need_lc='no' 10639 hardcode_libdir_separator=: 10640 ;; 10641 10642 solaris*) 10643 no_undefined_flag=' -z defs' 10644 if test "$GCC" = yes; then 10645 wlarc='${wl}' 10646 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10648 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10649 else 10650 case `$CC -V 2>&1` in 10651 *"Compilers 5.0"*) 10652 wlarc='' 10653 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10654 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10655 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10656 ;; 10657 *) 10658 wlarc='${wl}' 10659 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10660 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10661 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10662 ;; 10663 esac 10664 fi 10665 hardcode_libdir_flag_spec='-R$libdir' 10666 hardcode_shlibpath_var=no 10667 case $host_os in 10668 solaris2.[0-5] | solaris2.[0-5].*) ;; 10669 *) 10670 # The compiler driver will combine and reorder linker options, 10671 # but understands `-z linker_flag'. GCC discards it without `$wl', 10672 # but is careful enough not to reorder. 10673 # Supported since Solaris 2.6 (maybe 2.5.1?) 10674 if test "$GCC" = yes; then 10675 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10676 else 10677 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10678 fi 10679 ;; 10680 esac 10681 link_all_deplibs=yes 10682 ;; 10683 10684 sunos4*) 10685 if test "x$host_vendor" = xsequent; then 10686 # Use $CC to link under sequent, because it throws in some extra .o 10687 # files that make .init and .fini sections work. 10688 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10689 else 10690 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10691 fi 10692 hardcode_libdir_flag_spec='-L$libdir' 10693 hardcode_direct=yes 10694 hardcode_minus_L=yes 10695 hardcode_shlibpath_var=no 10696 ;; 10697 10698 sysv4) 10699 case $host_vendor in 10700 sni) 10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10702 hardcode_direct=yes # is this really true??? 10703 ;; 10704 siemens) 10705 ## LD is ld it makes a PLAMLIB 10706 ## CC just makes a GrossModule. 10707 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10708 reload_cmds='$CC -r -o $output$reload_objs' 10709 hardcode_direct=no 10710 ;; 10711 motorola) 10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10713 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10714 ;; 10715 esac 10716 runpath_var='LD_RUN_PATH' 10717 hardcode_shlibpath_var=no 10718 ;; 10719 10720 sysv4.3*) 10721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10722 hardcode_shlibpath_var=no 10723 export_dynamic_flag_spec='-Bexport' 10724 ;; 10725 10726 sysv4*MP*) 10727 if test -d /usr/nec; then 10728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10729 hardcode_shlibpath_var=no 10730 runpath_var=LD_RUN_PATH 10731 hardcode_runpath_var=yes 10732 ld_shlibs=yes 10733 fi 10734 ;; 10735 10736 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10737 no_undefined_flag='${wl}-z,text' 10738 archive_cmds_need_lc=no 10739 hardcode_shlibpath_var=no 10740 runpath_var='LD_RUN_PATH' 10741 10742 if test "$GCC" = yes; then 10743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10745 else 10746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10748 fi 10749 ;; 10750 10751 sysv5* | sco3.2v5* | sco5v6*) 10752 # Note: We can NOT use -z defs as we might desire, because we do not 10753 # link with -lc, and that would cause any symbols used from libc to 10754 # always be unresolved, which means just about no library would 10755 # ever link correctly. If we're not using GNU ld we use -z text 10756 # though, which does catch some bad symbols but isn't as heavy-handed 10757 # as -z defs. 10758 no_undefined_flag='${wl}-z,text' 10759 allow_undefined_flag='${wl}-z,nodefs' 10760 archive_cmds_need_lc=no 10761 hardcode_shlibpath_var=no 10762 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10763 hardcode_libdir_separator=':' 10764 link_all_deplibs=yes 10765 export_dynamic_flag_spec='${wl}-Bexport' 10766 runpath_var='LD_RUN_PATH' 10767 10768 if test "$GCC" = yes; then 10769 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10770 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10771 else 10772 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10773 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10774 fi 10775 ;; 10776 10777 uts4*) 10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10779 hardcode_libdir_flag_spec='-L$libdir' 10780 hardcode_shlibpath_var=no 10781 ;; 10782 10783 *) 10784 ld_shlibs=no 10785 ;; 10786 esac 10787 10788 if test x$host_vendor = xsni; then 10789 case $host in 10790 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10791 export_dynamic_flag_spec='${wl}-Blargedynsym' 10792 ;; 10793 esac 10794 fi 10795 fi 10796 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10798$as_echo "$ld_shlibs" >&6; } 10799test "$ld_shlibs" = no && can_build_shared=no 10800 10801with_gnu_ld=$with_gnu_ld 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817# 10818# Do we need to explicitly link libc? 10819# 10820case "x$archive_cmds_need_lc" in 10821x|xyes) 10822 # Assume -lc should be added 10823 archive_cmds_need_lc=yes 10824 10825 if test "$enable_shared" = yes && test "$GCC" = yes; then 10826 case $archive_cmds in 10827 *'~'*) 10828 # FIXME: we may have to deal with multi-command sequences. 10829 ;; 10830 '$CC '*) 10831 # Test whether the compiler implicitly links with -lc since on some 10832 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10833 # to ld, don't add -lc before -lgcc. 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10835$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10836 $RM conftest* 10837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10838 10839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10840 (eval $ac_compile) 2>&5 10841 ac_status=$? 10842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10843 test $ac_status = 0; } 2>conftest.err; then 10844 soname=conftest 10845 lib=conftest 10846 libobjs=conftest.$ac_objext 10847 deplibs= 10848 wl=$lt_prog_compiler_wl 10849 pic_flag=$lt_prog_compiler_pic 10850 compiler_flags=-v 10851 linker_flags=-v 10852 verstring= 10853 output_objdir=. 10854 libname=conftest 10855 lt_save_allow_undefined_flag=$allow_undefined_flag 10856 allow_undefined_flag= 10857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10858 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10859 ac_status=$? 10860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10861 test $ac_status = 0; } 10862 then 10863 archive_cmds_need_lc=no 10864 else 10865 archive_cmds_need_lc=yes 10866 fi 10867 allow_undefined_flag=$lt_save_allow_undefined_flag 10868 else 10869 cat conftest.err 1>&5 10870 fi 10871 $RM conftest* 10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10873$as_echo "$archive_cmds_need_lc" >&6; } 10874 ;; 10875 esac 10876 fi 10877 ;; 10878esac 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11037$as_echo_n "checking dynamic linker characteristics... " >&6; } 11038 11039if test "$GCC" = yes; then 11040 case $host_os in 11041 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11042 *) lt_awk_arg="/^libraries:/" ;; 11043 esac 11044 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11045 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 11046 # if the path contains ";" then we assume it to be the separator 11047 # otherwise default to the standard path separator (i.e. ":") - it is 11048 # assumed that no part of a normal pathname contains ";" but that should 11049 # okay in the real world where ";" in dirpaths is itself problematic. 11050 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 11051 else 11052 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11053 fi 11054 # Ok, now we have the path, separated by spaces, we can step through it 11055 # and add multilib dir if necessary. 11056 lt_tmp_lt_search_path_spec= 11057 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11058 for lt_sys_path in $lt_search_path_spec; do 11059 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11061 else 11062 test -d "$lt_sys_path" && \ 11063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11064 fi 11065 done 11066 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 11067BEGIN {RS=" "; FS="/|\n";} { 11068 lt_foo=""; 11069 lt_count=0; 11070 for (lt_i = NF; lt_i > 0; lt_i--) { 11071 if ($lt_i != "" && $lt_i != ".") { 11072 if ($lt_i == "..") { 11073 lt_count++; 11074 } else { 11075 if (lt_count == 0) { 11076 lt_foo="/" $lt_i lt_foo; 11077 } else { 11078 lt_count--; 11079 } 11080 } 11081 } 11082 } 11083 if (lt_foo != "") { lt_freq[lt_foo]++; } 11084 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11085}'` 11086 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 11087else 11088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11089fi 11090library_names_spec= 11091libname_spec='lib$name' 11092soname_spec= 11093shrext_cmds=".so" 11094postinstall_cmds= 11095postuninstall_cmds= 11096finish_cmds= 11097finish_eval= 11098shlibpath_var= 11099shlibpath_overrides_runpath=unknown 11100version_type=none 11101dynamic_linker="$host_os ld.so" 11102sys_lib_dlsearch_path_spec="/lib /usr/lib" 11103need_lib_prefix=unknown 11104hardcode_into_libs=no 11105 11106# when you set need_version to no, make sure it does not cause -set_version 11107# flags to be left without arguments 11108need_version=unknown 11109 11110case $host_os in 11111aix3*) 11112 version_type=linux 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11114 shlibpath_var=LIBPATH 11115 11116 # AIX 3 has no versioning support, so we append a major version to the name. 11117 soname_spec='${libname}${release}${shared_ext}$major' 11118 ;; 11119 11120aix[4-9]*) 11121 version_type=linux 11122 need_lib_prefix=no 11123 need_version=no 11124 hardcode_into_libs=yes 11125 if test "$host_cpu" = ia64; then 11126 # AIX 5 supports IA64 11127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11128 shlibpath_var=LD_LIBRARY_PATH 11129 else 11130 # With GCC up to 2.95.x, collect2 would create an import file 11131 # for dependence libraries. The import file would start with 11132 # the line `#! .'. This would cause the generated library to 11133 # depend on `.', always an invalid library. This was fixed in 11134 # development snapshots of GCC prior to 3.0. 11135 case $host_os in 11136 aix4 | aix4.[01] | aix4.[01].*) 11137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11138 echo ' yes ' 11139 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11140 : 11141 else 11142 can_build_shared=no 11143 fi 11144 ;; 11145 esac 11146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11147 # soname into executable. Probably we can add versioning support to 11148 # collect2, so additional links can be useful in future. 11149 if test "$aix_use_runtimelinking" = yes; then 11150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11151 # instead of lib<name>.a to let people know that these are not 11152 # typical AIX shared libraries. 11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11154 else 11155 # We preserve .a as extension for shared libraries through AIX4.2 11156 # and later when we are not doing run time linking. 11157 library_names_spec='${libname}${release}.a $libname.a' 11158 soname_spec='${libname}${release}${shared_ext}$major' 11159 fi 11160 shlibpath_var=LIBPATH 11161 fi 11162 ;; 11163 11164amigaos*) 11165 case $host_cpu in 11166 powerpc) 11167 # Since July 2007 AmigaOS4 officially supports .so libraries. 11168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11170 ;; 11171 m68k) 11172 library_names_spec='$libname.ixlibrary $libname.a' 11173 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11174 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' 11175 ;; 11176 esac 11177 ;; 11178 11179beos*) 11180 library_names_spec='${libname}${shared_ext}' 11181 dynamic_linker="$host_os ld.so" 11182 shlibpath_var=LIBRARY_PATH 11183 ;; 11184 11185bsdi[45]*) 11186 version_type=linux 11187 need_version=no 11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11189 soname_spec='${libname}${release}${shared_ext}$major' 11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11191 shlibpath_var=LD_LIBRARY_PATH 11192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11194 # the default ld.so.conf also contains /usr/contrib/lib and 11195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11196 # libtool to hard-code these into programs 11197 ;; 11198 11199cygwin* | mingw* | pw32* | cegcc*) 11200 version_type=windows 11201 shrext_cmds=".dll" 11202 need_version=no 11203 need_lib_prefix=no 11204 11205 case $GCC,$host_os in 11206 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11207 library_names_spec='$libname.dll.a' 11208 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11209 postinstall_cmds='base_file=`basename \${file}`~ 11210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11211 dldir=$destdir/`dirname \$dlpath`~ 11212 test -d \$dldir || mkdir -p \$dldir~ 11213 $install_prog $dir/$dlname \$dldir/$dlname~ 11214 chmod a+x \$dldir/$dlname~ 11215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11217 fi' 11218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11219 dlpath=$dir/\$dldll~ 11220 $RM \$dlpath' 11221 shlibpath_overrides_runpath=yes 11222 11223 case $host_os in 11224 cygwin*) 11225 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11228 ;; 11229 mingw* | cegcc*) 11230 # MinGW DLLs use traditional 'lib' prefix 11231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11232 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11233 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11234 # It is most probably a Windows format PATH printed by 11235 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11236 # path with ; separators, and with drive letters. We can handle the 11237 # drive letters (cygwin fileutils understands them), so leave them, 11238 # especially as we might pass files found there to a mingw objdump, 11239 # which wouldn't understand a cygwinified path. Ahh. 11240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11241 else 11242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11243 fi 11244 ;; 11245 pw32*) 11246 # pw32 DLLs use 'pw' prefix rather than 'lib' 11247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11248 ;; 11249 esac 11250 ;; 11251 11252 *) 11253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11254 ;; 11255 esac 11256 dynamic_linker='Win32 ld.exe' 11257 # FIXME: first we should search . and the directory the executable is in 11258 shlibpath_var=PATH 11259 ;; 11260 11261darwin* | rhapsody*) 11262 dynamic_linker="$host_os dyld" 11263 version_type=darwin 11264 need_lib_prefix=no 11265 need_version=no 11266 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11267 soname_spec='${libname}${release}${major}$shared_ext' 11268 shlibpath_overrides_runpath=yes 11269 shlibpath_var=DYLD_LIBRARY_PATH 11270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11271 11272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11274 ;; 11275 11276dgux*) 11277 version_type=linux 11278 need_lib_prefix=no 11279 need_version=no 11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11281 soname_spec='${libname}${release}${shared_ext}$major' 11282 shlibpath_var=LD_LIBRARY_PATH 11283 ;; 11284 11285freebsd1*) 11286 dynamic_linker=no 11287 ;; 11288 11289freebsd* | dragonfly*) 11290 # DragonFly does not have aout. When/if they implement a new 11291 # versioning mechanism, adjust this. 11292 if test -x /usr/bin/objformat; then 11293 objformat=`/usr/bin/objformat` 11294 else 11295 case $host_os in 11296 freebsd[123]*) objformat=aout ;; 11297 *) objformat=elf ;; 11298 esac 11299 fi 11300 version_type=freebsd-$objformat 11301 case $version_type in 11302 freebsd-elf*) 11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11304 need_version=no 11305 need_lib_prefix=no 11306 ;; 11307 freebsd-*) 11308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11309 need_version=yes 11310 ;; 11311 esac 11312 shlibpath_var=LD_LIBRARY_PATH 11313 case $host_os in 11314 freebsd2*) 11315 shlibpath_overrides_runpath=yes 11316 ;; 11317 freebsd3.[01]* | freebsdelf3.[01]*) 11318 shlibpath_overrides_runpath=yes 11319 hardcode_into_libs=yes 11320 ;; 11321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11323 shlibpath_overrides_runpath=no 11324 hardcode_into_libs=yes 11325 ;; 11326 *) # from 4.6 on, and DragonFly 11327 shlibpath_overrides_runpath=yes 11328 hardcode_into_libs=yes 11329 ;; 11330 esac 11331 ;; 11332 11333gnu*) 11334 version_type=linux 11335 need_lib_prefix=no 11336 need_version=no 11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11338 soname_spec='${libname}${release}${shared_ext}$major' 11339 shlibpath_var=LD_LIBRARY_PATH 11340 hardcode_into_libs=yes 11341 ;; 11342 11343hpux9* | hpux10* | hpux11*) 11344 # Give a soname corresponding to the major version so that dld.sl refuses to 11345 # link against other versions. 11346 version_type=sunos 11347 need_lib_prefix=no 11348 need_version=no 11349 case $host_cpu in 11350 ia64*) 11351 shrext_cmds='.so' 11352 hardcode_into_libs=yes 11353 dynamic_linker="$host_os dld.so" 11354 shlibpath_var=LD_LIBRARY_PATH 11355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11357 soname_spec='${libname}${release}${shared_ext}$major' 11358 if test "X$HPUX_IA64_MODE" = X32; then 11359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11360 else 11361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11362 fi 11363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11364 ;; 11365 hppa*64*) 11366 shrext_cmds='.sl' 11367 hardcode_into_libs=yes 11368 dynamic_linker="$host_os dld.sl" 11369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11372 soname_spec='${libname}${release}${shared_ext}$major' 11373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11375 ;; 11376 *) 11377 shrext_cmds='.sl' 11378 dynamic_linker="$host_os dld.sl" 11379 shlibpath_var=SHLIB_PATH 11380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11382 soname_spec='${libname}${release}${shared_ext}$major' 11383 ;; 11384 esac 11385 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11386 postinstall_cmds='chmod 555 $lib' 11387 ;; 11388 11389interix[3-9]*) 11390 version_type=linux 11391 need_lib_prefix=no 11392 need_version=no 11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11394 soname_spec='${libname}${release}${shared_ext}$major' 11395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=no 11398 hardcode_into_libs=yes 11399 ;; 11400 11401irix5* | irix6* | nonstopux*) 11402 case $host_os in 11403 nonstopux*) version_type=nonstopux ;; 11404 *) 11405 if test "$lt_cv_prog_gnu_ld" = yes; then 11406 version_type=linux 11407 else 11408 version_type=irix 11409 fi ;; 11410 esac 11411 need_lib_prefix=no 11412 need_version=no 11413 soname_spec='${libname}${release}${shared_ext}$major' 11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11415 case $host_os in 11416 irix5* | nonstopux*) 11417 libsuff= shlibsuff= 11418 ;; 11419 *) 11420 case $LD in # libtool.m4 will add one of these switches to LD 11421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11422 libsuff= shlibsuff= libmagic=32-bit;; 11423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11424 libsuff=32 shlibsuff=N32 libmagic=N32;; 11425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11426 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11427 *) libsuff= shlibsuff= libmagic=never-match;; 11428 esac 11429 ;; 11430 esac 11431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11432 shlibpath_overrides_runpath=no 11433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11435 hardcode_into_libs=yes 11436 ;; 11437 11438# No shared lib support for Linux oldld, aout, or coff. 11439linux*oldld* | linux*aout* | linux*coff*) 11440 dynamic_linker=no 11441 ;; 11442 11443# This must be Linux ELF. 11444linux* | k*bsd*-gnu | kopensolaris*-gnu) 11445 version_type=linux 11446 need_lib_prefix=no 11447 need_version=no 11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11449 soname_spec='${libname}${release}${shared_ext}$major' 11450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11451 shlibpath_var=LD_LIBRARY_PATH 11452 shlibpath_overrides_runpath=no 11453 # Some binutils ld are patched to set DT_RUNPATH 11454 save_LDFLAGS=$LDFLAGS 11455 save_libdir=$libdir 11456 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11457 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11459/* end confdefs.h. */ 11460 11461int 11462main () 11463{ 11464 11465 ; 11466 return 0; 11467} 11468_ACEOF 11469if ac_fn_c_try_link "$LINENO"; then : 11470 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11471 shlibpath_overrides_runpath=yes 11472fi 11473fi 11474rm -f core conftest.err conftest.$ac_objext \ 11475 conftest$ac_exeext conftest.$ac_ext 11476 LDFLAGS=$save_LDFLAGS 11477 libdir=$save_libdir 11478 11479 # This implies no fast_install, which is unacceptable. 11480 # Some rework will be needed to allow for fast_install 11481 # before this can be enabled. 11482 hardcode_into_libs=yes 11483 11484 # Append ld.so.conf contents to the search path 11485 if test -f /etc/ld.so.conf; then 11486 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' ' '` 11487 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11488 fi 11489 11490 # We used to test for /lib/ld.so.1 and disable shared libraries on 11491 # powerpc, because MkLinux only supported shared libraries with the 11492 # GNU dynamic linker. Since this was broken with cross compilers, 11493 # most powerpc-linux boxes support dynamic linking these days and 11494 # people can always --disable-shared, the test was removed, and we 11495 # assume the GNU/Linux dynamic linker is in use. 11496 dynamic_linker='GNU/Linux ld.so' 11497 ;; 11498 11499netbsdelf*-gnu) 11500 version_type=linux 11501 need_lib_prefix=no 11502 need_version=no 11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11504 soname_spec='${libname}${release}${shared_ext}$major' 11505 shlibpath_var=LD_LIBRARY_PATH 11506 shlibpath_overrides_runpath=no 11507 hardcode_into_libs=yes 11508 dynamic_linker='NetBSD ld.elf_so' 11509 ;; 11510 11511netbsd*) 11512 version_type=sunos 11513 need_lib_prefix=no 11514 need_version=no 11515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11518 dynamic_linker='NetBSD (a.out) ld.so' 11519 else 11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11521 soname_spec='${libname}${release}${shared_ext}$major' 11522 dynamic_linker='NetBSD ld.elf_so' 11523 fi 11524 shlibpath_var=LD_LIBRARY_PATH 11525 shlibpath_overrides_runpath=yes 11526 hardcode_into_libs=yes 11527 ;; 11528 11529newsos6) 11530 version_type=linux 11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11532 shlibpath_var=LD_LIBRARY_PATH 11533 shlibpath_overrides_runpath=yes 11534 ;; 11535 11536*nto* | *qnx*) 11537 version_type=qnx 11538 need_lib_prefix=no 11539 need_version=no 11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11541 soname_spec='${libname}${release}${shared_ext}$major' 11542 shlibpath_var=LD_LIBRARY_PATH 11543 shlibpath_overrides_runpath=no 11544 hardcode_into_libs=yes 11545 dynamic_linker='ldqnx.so' 11546 ;; 11547 11548openbsd*) 11549 version_type=sunos 11550 sys_lib_dlsearch_path_spec="/usr/lib" 11551 need_lib_prefix=no 11552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11553 case $host_os in 11554 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11555 *) need_version=no ;; 11556 esac 11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11561 case $host_os in 11562 openbsd2.[89] | openbsd2.[89].*) 11563 shlibpath_overrides_runpath=no 11564 ;; 11565 *) 11566 shlibpath_overrides_runpath=yes 11567 ;; 11568 esac 11569 else 11570 shlibpath_overrides_runpath=yes 11571 fi 11572 ;; 11573 11574os2*) 11575 libname_spec='$name' 11576 shrext_cmds=".dll" 11577 need_lib_prefix=no 11578 library_names_spec='$libname${shared_ext} $libname.a' 11579 dynamic_linker='OS/2 ld.exe' 11580 shlibpath_var=LIBPATH 11581 ;; 11582 11583osf3* | osf4* | osf5*) 11584 version_type=osf 11585 need_lib_prefix=no 11586 need_version=no 11587 soname_spec='${libname}${release}${shared_ext}$major' 11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11589 shlibpath_var=LD_LIBRARY_PATH 11590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11592 ;; 11593 11594rdos*) 11595 dynamic_linker=no 11596 ;; 11597 11598solaris*) 11599 version_type=linux 11600 need_lib_prefix=no 11601 need_version=no 11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11603 soname_spec='${libname}${release}${shared_ext}$major' 11604 shlibpath_var=LD_LIBRARY_PATH 11605 shlibpath_overrides_runpath=yes 11606 hardcode_into_libs=yes 11607 # ldd complains unless libraries are executable 11608 postinstall_cmds='chmod +x $lib' 11609 ;; 11610 11611sunos4*) 11612 version_type=sunos 11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11614 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11615 shlibpath_var=LD_LIBRARY_PATH 11616 shlibpath_overrides_runpath=yes 11617 if test "$with_gnu_ld" = yes; then 11618 need_lib_prefix=no 11619 fi 11620 need_version=yes 11621 ;; 11622 11623sysv4 | sysv4.3*) 11624 version_type=linux 11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11626 soname_spec='${libname}${release}${shared_ext}$major' 11627 shlibpath_var=LD_LIBRARY_PATH 11628 case $host_vendor in 11629 sni) 11630 shlibpath_overrides_runpath=no 11631 need_lib_prefix=no 11632 runpath_var=LD_RUN_PATH 11633 ;; 11634 siemens) 11635 need_lib_prefix=no 11636 ;; 11637 motorola) 11638 need_lib_prefix=no 11639 need_version=no 11640 shlibpath_overrides_runpath=no 11641 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11642 ;; 11643 esac 11644 ;; 11645 11646sysv4*MP*) 11647 if test -d /usr/nec ;then 11648 version_type=linux 11649 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11650 soname_spec='$libname${shared_ext}.$major' 11651 shlibpath_var=LD_LIBRARY_PATH 11652 fi 11653 ;; 11654 11655sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11656 version_type=freebsd-elf 11657 need_lib_prefix=no 11658 need_version=no 11659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11660 soname_spec='${libname}${release}${shared_ext}$major' 11661 shlibpath_var=LD_LIBRARY_PATH 11662 shlibpath_overrides_runpath=yes 11663 hardcode_into_libs=yes 11664 if test "$with_gnu_ld" = yes; then 11665 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11666 else 11667 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11668 case $host_os in 11669 sco3.2v5*) 11670 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11671 ;; 11672 esac 11673 fi 11674 sys_lib_dlsearch_path_spec='/usr/lib' 11675 ;; 11676 11677tpf*) 11678 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11679 version_type=linux 11680 need_lib_prefix=no 11681 need_version=no 11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11683 shlibpath_var=LD_LIBRARY_PATH 11684 shlibpath_overrides_runpath=no 11685 hardcode_into_libs=yes 11686 ;; 11687 11688uts4*) 11689 version_type=linux 11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11691 soname_spec='${libname}${release}${shared_ext}$major' 11692 shlibpath_var=LD_LIBRARY_PATH 11693 ;; 11694 11695*) 11696 dynamic_linker=no 11697 ;; 11698esac 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11700$as_echo "$dynamic_linker" >&6; } 11701test "$dynamic_linker" = no && can_build_shared=no 11702 11703variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11704if test "$GCC" = yes; then 11705 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11706fi 11707 11708if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11709 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11710fi 11711if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11712 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11713fi 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11802$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11803hardcode_action= 11804if test -n "$hardcode_libdir_flag_spec" || 11805 test -n "$runpath_var" || 11806 test "X$hardcode_automatic" = "Xyes" ; then 11807 11808 # We can hardcode non-existent directories. 11809 if test "$hardcode_direct" != no && 11810 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11811 # have to relink, otherwise we might link with an installed library 11812 # when we should be linking with a yet-to-be-installed one 11813 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11814 test "$hardcode_minus_L" != no; then 11815 # Linking always hardcodes the temporary library directory. 11816 hardcode_action=relink 11817 else 11818 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11819 hardcode_action=immediate 11820 fi 11821else 11822 # We cannot hardcode anything, or else we can only hardcode existing 11823 # directories. 11824 hardcode_action=unsupported 11825fi 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11827$as_echo "$hardcode_action" >&6; } 11828 11829if test "$hardcode_action" = relink || 11830 test "$inherit_rpath" = yes; then 11831 # Fast installation is not supported 11832 enable_fast_install=no 11833elif test "$shlibpath_overrides_runpath" = yes || 11834 test "$enable_shared" = no; then 11835 # Fast installation is not necessary 11836 enable_fast_install=needless 11837fi 11838 11839 11840 11841 11842 11843 11844 if test "x$enable_dlopen" != xyes; then 11845 enable_dlopen=unknown 11846 enable_dlopen_self=unknown 11847 enable_dlopen_self_static=unknown 11848else 11849 lt_cv_dlopen=no 11850 lt_cv_dlopen_libs= 11851 11852 case $host_os in 11853 beos*) 11854 lt_cv_dlopen="load_add_on" 11855 lt_cv_dlopen_libs= 11856 lt_cv_dlopen_self=yes 11857 ;; 11858 11859 mingw* | pw32* | cegcc*) 11860 lt_cv_dlopen="LoadLibrary" 11861 lt_cv_dlopen_libs= 11862 ;; 11863 11864 cygwin*) 11865 lt_cv_dlopen="dlopen" 11866 lt_cv_dlopen_libs= 11867 ;; 11868 11869 darwin*) 11870 # if libdl is installed we need to link against it 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11872$as_echo_n "checking for dlopen in -ldl... " >&6; } 11873if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11874 $as_echo_n "(cached) " >&6 11875else 11876 ac_check_lib_save_LIBS=$LIBS 11877LIBS="-ldl $LIBS" 11878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11879/* end confdefs.h. */ 11880 11881/* Override any GCC internal prototype to avoid an error. 11882 Use char because int might match the return type of a GCC 11883 builtin and then its argument prototype would still apply. */ 11884#ifdef __cplusplus 11885extern "C" 11886#endif 11887char dlopen (); 11888int 11889main () 11890{ 11891return dlopen (); 11892 ; 11893 return 0; 11894} 11895_ACEOF 11896if ac_fn_c_try_link "$LINENO"; then : 11897 ac_cv_lib_dl_dlopen=yes 11898else 11899 ac_cv_lib_dl_dlopen=no 11900fi 11901rm -f core conftest.err conftest.$ac_objext \ 11902 conftest$ac_exeext conftest.$ac_ext 11903LIBS=$ac_check_lib_save_LIBS 11904fi 11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11906$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11907if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11909else 11910 11911 lt_cv_dlopen="dyld" 11912 lt_cv_dlopen_libs= 11913 lt_cv_dlopen_self=yes 11914 11915fi 11916 11917 ;; 11918 11919 *) 11920 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11921if test "x$ac_cv_func_shl_load" = x""yes; then : 11922 lt_cv_dlopen="shl_load" 11923else 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11925$as_echo_n "checking for shl_load in -ldld... " >&6; } 11926if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11927 $as_echo_n "(cached) " >&6 11928else 11929 ac_check_lib_save_LIBS=$LIBS 11930LIBS="-ldld $LIBS" 11931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11932/* end confdefs.h. */ 11933 11934/* Override any GCC internal prototype to avoid an error. 11935 Use char because int might match the return type of a GCC 11936 builtin and then its argument prototype would still apply. */ 11937#ifdef __cplusplus 11938extern "C" 11939#endif 11940char shl_load (); 11941int 11942main () 11943{ 11944return shl_load (); 11945 ; 11946 return 0; 11947} 11948_ACEOF 11949if ac_fn_c_try_link "$LINENO"; then : 11950 ac_cv_lib_dld_shl_load=yes 11951else 11952 ac_cv_lib_dld_shl_load=no 11953fi 11954rm -f core conftest.err conftest.$ac_objext \ 11955 conftest$ac_exeext conftest.$ac_ext 11956LIBS=$ac_check_lib_save_LIBS 11957fi 11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11959$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11960if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11961 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11962else 11963 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11964if test "x$ac_cv_func_dlopen" = x""yes; then : 11965 lt_cv_dlopen="dlopen" 11966else 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11968$as_echo_n "checking for dlopen in -ldl... " >&6; } 11969if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11970 $as_echo_n "(cached) " >&6 11971else 11972 ac_check_lib_save_LIBS=$LIBS 11973LIBS="-ldl $LIBS" 11974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11975/* end confdefs.h. */ 11976 11977/* Override any GCC internal prototype to avoid an error. 11978 Use char because int might match the return type of a GCC 11979 builtin and then its argument prototype would still apply. */ 11980#ifdef __cplusplus 11981extern "C" 11982#endif 11983char dlopen (); 11984int 11985main () 11986{ 11987return dlopen (); 11988 ; 11989 return 0; 11990} 11991_ACEOF 11992if ac_fn_c_try_link "$LINENO"; then : 11993 ac_cv_lib_dl_dlopen=yes 11994else 11995 ac_cv_lib_dl_dlopen=no 11996fi 11997rm -f core conftest.err conftest.$ac_objext \ 11998 conftest$ac_exeext conftest.$ac_ext 11999LIBS=$ac_check_lib_save_LIBS 12000fi 12001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12002$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12003if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12005else 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12007$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12008if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 12009 $as_echo_n "(cached) " >&6 12010else 12011 ac_check_lib_save_LIBS=$LIBS 12012LIBS="-lsvld $LIBS" 12013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12014/* end confdefs.h. */ 12015 12016/* Override any GCC internal prototype to avoid an error. 12017 Use char because int might match the return type of a GCC 12018 builtin and then its argument prototype would still apply. */ 12019#ifdef __cplusplus 12020extern "C" 12021#endif 12022char dlopen (); 12023int 12024main () 12025{ 12026return dlopen (); 12027 ; 12028 return 0; 12029} 12030_ACEOF 12031if ac_fn_c_try_link "$LINENO"; then : 12032 ac_cv_lib_svld_dlopen=yes 12033else 12034 ac_cv_lib_svld_dlopen=no 12035fi 12036rm -f core conftest.err conftest.$ac_objext \ 12037 conftest$ac_exeext conftest.$ac_ext 12038LIBS=$ac_check_lib_save_LIBS 12039fi 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12041$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12042if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 12043 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12044else 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12046$as_echo_n "checking for dld_link in -ldld... " >&6; } 12047if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 12048 $as_echo_n "(cached) " >&6 12049else 12050 ac_check_lib_save_LIBS=$LIBS 12051LIBS="-ldld $LIBS" 12052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12053/* end confdefs.h. */ 12054 12055/* Override any GCC internal prototype to avoid an error. 12056 Use char because int might match the return type of a GCC 12057 builtin and then its argument prototype would still apply. */ 12058#ifdef __cplusplus 12059extern "C" 12060#endif 12061char dld_link (); 12062int 12063main () 12064{ 12065return dld_link (); 12066 ; 12067 return 0; 12068} 12069_ACEOF 12070if ac_fn_c_try_link "$LINENO"; then : 12071 ac_cv_lib_dld_dld_link=yes 12072else 12073 ac_cv_lib_dld_dld_link=no 12074fi 12075rm -f core conftest.err conftest.$ac_objext \ 12076 conftest$ac_exeext conftest.$ac_ext 12077LIBS=$ac_check_lib_save_LIBS 12078fi 12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12080$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12081if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 12082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12083fi 12084 12085 12086fi 12087 12088 12089fi 12090 12091 12092fi 12093 12094 12095fi 12096 12097 12098fi 12099 12100 ;; 12101 esac 12102 12103 if test "x$lt_cv_dlopen" != xno; then 12104 enable_dlopen=yes 12105 else 12106 enable_dlopen=no 12107 fi 12108 12109 case $lt_cv_dlopen in 12110 dlopen) 12111 save_CPPFLAGS="$CPPFLAGS" 12112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12113 12114 save_LDFLAGS="$LDFLAGS" 12115 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12116 12117 save_LIBS="$LIBS" 12118 LIBS="$lt_cv_dlopen_libs $LIBS" 12119 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12121$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12122if test "${lt_cv_dlopen_self+set}" = set; then : 12123 $as_echo_n "(cached) " >&6 12124else 12125 if test "$cross_compiling" = yes; then : 12126 lt_cv_dlopen_self=cross 12127else 12128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12129 lt_status=$lt_dlunknown 12130 cat > conftest.$ac_ext <<_LT_EOF 12131#line 12131 "configure" 12132#include "confdefs.h" 12133 12134#if HAVE_DLFCN_H 12135#include <dlfcn.h> 12136#endif 12137 12138#include <stdio.h> 12139 12140#ifdef RTLD_GLOBAL 12141# define LT_DLGLOBAL RTLD_GLOBAL 12142#else 12143# ifdef DL_GLOBAL 12144# define LT_DLGLOBAL DL_GLOBAL 12145# else 12146# define LT_DLGLOBAL 0 12147# endif 12148#endif 12149 12150/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12151 find out it does not work in some platform. */ 12152#ifndef LT_DLLAZY_OR_NOW 12153# ifdef RTLD_LAZY 12154# define LT_DLLAZY_OR_NOW RTLD_LAZY 12155# else 12156# ifdef DL_LAZY 12157# define LT_DLLAZY_OR_NOW DL_LAZY 12158# else 12159# ifdef RTLD_NOW 12160# define LT_DLLAZY_OR_NOW RTLD_NOW 12161# else 12162# ifdef DL_NOW 12163# define LT_DLLAZY_OR_NOW DL_NOW 12164# else 12165# define LT_DLLAZY_OR_NOW 0 12166# endif 12167# endif 12168# endif 12169# endif 12170#endif 12171 12172void fnord() { int i=42;} 12173int main () 12174{ 12175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12176 int status = $lt_dlunknown; 12177 12178 if (self) 12179 { 12180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12182 /* dlclose (self); */ 12183 } 12184 else 12185 puts (dlerror ()); 12186 12187 return status; 12188} 12189_LT_EOF 12190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12191 (eval $ac_link) 2>&5 12192 ac_status=$? 12193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12194 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12195 (./conftest; exit; ) >&5 2>/dev/null 12196 lt_status=$? 12197 case x$lt_status in 12198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12201 esac 12202 else : 12203 # compilation failed 12204 lt_cv_dlopen_self=no 12205 fi 12206fi 12207rm -fr conftest* 12208 12209 12210fi 12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12212$as_echo "$lt_cv_dlopen_self" >&6; } 12213 12214 if test "x$lt_cv_dlopen_self" = xyes; then 12215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12217$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12218if test "${lt_cv_dlopen_self_static+set}" = set; then : 12219 $as_echo_n "(cached) " >&6 12220else 12221 if test "$cross_compiling" = yes; then : 12222 lt_cv_dlopen_self_static=cross 12223else 12224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12225 lt_status=$lt_dlunknown 12226 cat > conftest.$ac_ext <<_LT_EOF 12227#line 12227 "configure" 12228#include "confdefs.h" 12229 12230#if HAVE_DLFCN_H 12231#include <dlfcn.h> 12232#endif 12233 12234#include <stdio.h> 12235 12236#ifdef RTLD_GLOBAL 12237# define LT_DLGLOBAL RTLD_GLOBAL 12238#else 12239# ifdef DL_GLOBAL 12240# define LT_DLGLOBAL DL_GLOBAL 12241# else 12242# define LT_DLGLOBAL 0 12243# endif 12244#endif 12245 12246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12247 find out it does not work in some platform. */ 12248#ifndef LT_DLLAZY_OR_NOW 12249# ifdef RTLD_LAZY 12250# define LT_DLLAZY_OR_NOW RTLD_LAZY 12251# else 12252# ifdef DL_LAZY 12253# define LT_DLLAZY_OR_NOW DL_LAZY 12254# else 12255# ifdef RTLD_NOW 12256# define LT_DLLAZY_OR_NOW RTLD_NOW 12257# else 12258# ifdef DL_NOW 12259# define LT_DLLAZY_OR_NOW DL_NOW 12260# else 12261# define LT_DLLAZY_OR_NOW 0 12262# endif 12263# endif 12264# endif 12265# endif 12266#endif 12267 12268void fnord() { int i=42;} 12269int main () 12270{ 12271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12272 int status = $lt_dlunknown; 12273 12274 if (self) 12275 { 12276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12278 /* dlclose (self); */ 12279 } 12280 else 12281 puts (dlerror ()); 12282 12283 return status; 12284} 12285_LT_EOF 12286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12287 (eval $ac_link) 2>&5 12288 ac_status=$? 12289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12290 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12291 (./conftest; exit; ) >&5 2>/dev/null 12292 lt_status=$? 12293 case x$lt_status in 12294 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12295 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12296 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12297 esac 12298 else : 12299 # compilation failed 12300 lt_cv_dlopen_self_static=no 12301 fi 12302fi 12303rm -fr conftest* 12304 12305 12306fi 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12308$as_echo "$lt_cv_dlopen_self_static" >&6; } 12309 fi 12310 12311 CPPFLAGS="$save_CPPFLAGS" 12312 LDFLAGS="$save_LDFLAGS" 12313 LIBS="$save_LIBS" 12314 ;; 12315 esac 12316 12317 case $lt_cv_dlopen_self in 12318 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12319 *) enable_dlopen_self=unknown ;; 12320 esac 12321 12322 case $lt_cv_dlopen_self_static in 12323 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12324 *) enable_dlopen_self_static=unknown ;; 12325 esac 12326fi 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344striplib= 12345old_striplib= 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12347$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12348if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12349 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12350 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12352$as_echo "yes" >&6; } 12353else 12354# FIXME - insert some real tests, host_os isn't really good enough 12355 case $host_os in 12356 darwin*) 12357 if test -n "$STRIP" ; then 12358 striplib="$STRIP -x" 12359 old_striplib="$STRIP -S" 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12361$as_echo "yes" >&6; } 12362 else 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12364$as_echo "no" >&6; } 12365 fi 12366 ;; 12367 *) 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12369$as_echo "no" >&6; } 12370 ;; 12371 esac 12372fi 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 # Report which library types will actually be built 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12387$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12389$as_echo "$can_build_shared" >&6; } 12390 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12392$as_echo_n "checking whether to build shared libraries... " >&6; } 12393 test "$can_build_shared" = "no" && enable_shared=no 12394 12395 # On AIX, shared libraries and static libraries use the same namespace, and 12396 # are all built from PIC. 12397 case $host_os in 12398 aix3*) 12399 test "$enable_shared" = yes && enable_static=no 12400 if test -n "$RANLIB"; then 12401 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12402 postinstall_cmds='$RANLIB $lib' 12403 fi 12404 ;; 12405 12406 aix[4-9]*) 12407 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12408 test "$enable_shared" = yes && enable_static=no 12409 fi 12410 ;; 12411 esac 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12413$as_echo "$enable_shared" >&6; } 12414 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12416$as_echo_n "checking whether to build static libraries... " >&6; } 12417 # Make sure either enable_shared or enable_static is yes. 12418 test "$enable_shared" = yes || enable_static=yes 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12420$as_echo "$enable_static" >&6; } 12421 12422 12423 12424 12425fi 12426ac_ext=c 12427ac_cpp='$CPP $CPPFLAGS' 12428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12430ac_compiler_gnu=$ac_cv_c_compiler_gnu 12431 12432CC="$lt_save_CC" 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 ac_config_commands="$ac_config_commands libtool" 12447 12448 12449 12450 12451# Only expand once: 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12462 if test -n "$ac_tool_prefix"; then 12463 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12464set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12466$as_echo_n "checking for $ac_word... " >&6; } 12467if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12468 $as_echo_n "(cached) " >&6 12469else 12470 case $PKG_CONFIG in 12471 [\\/]* | ?:[\\/]*) 12472 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12473 ;; 12474 *) 12475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12476for as_dir in $PATH 12477do 12478 IFS=$as_save_IFS 12479 test -z "$as_dir" && as_dir=. 12480 for ac_exec_ext in '' $ac_executable_extensions; do 12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12482 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12484 break 2 12485 fi 12486done 12487 done 12488IFS=$as_save_IFS 12489 12490 ;; 12491esac 12492fi 12493PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12494if test -n "$PKG_CONFIG"; then 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12496$as_echo "$PKG_CONFIG" >&6; } 12497else 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12499$as_echo "no" >&6; } 12500fi 12501 12502 12503fi 12504if test -z "$ac_cv_path_PKG_CONFIG"; then 12505 ac_pt_PKG_CONFIG=$PKG_CONFIG 12506 # Extract the first word of "pkg-config", so it can be a program name with args. 12507set dummy pkg-config; ac_word=$2 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12509$as_echo_n "checking for $ac_word... " >&6; } 12510if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 12511 $as_echo_n "(cached) " >&6 12512else 12513 case $ac_pt_PKG_CONFIG in 12514 [\\/]* | ?:[\\/]*) 12515 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12516 ;; 12517 *) 12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12519for as_dir in $PATH 12520do 12521 IFS=$as_save_IFS 12522 test -z "$as_dir" && as_dir=. 12523 for ac_exec_ext in '' $ac_executable_extensions; do 12524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12525 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12527 break 2 12528 fi 12529done 12530 done 12531IFS=$as_save_IFS 12532 12533 ;; 12534esac 12535fi 12536ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12537if test -n "$ac_pt_PKG_CONFIG"; then 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12539$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12540else 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542$as_echo "no" >&6; } 12543fi 12544 12545 if test "x$ac_pt_PKG_CONFIG" = x; then 12546 PKG_CONFIG="" 12547 else 12548 case $cross_compiling:$ac_tool_warned in 12549yes:) 12550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12552ac_tool_warned=yes ;; 12553esac 12554 PKG_CONFIG=$ac_pt_PKG_CONFIG 12555 fi 12556else 12557 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12558fi 12559 12560fi 12561if test -n "$PKG_CONFIG"; then 12562 _pkg_min_version=0.9.0 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12564$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12565 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12567$as_echo "yes" >&6; } 12568 else 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12570$as_echo "no" >&6; } 12571 PKG_CONFIG="" 12572 fi 12573fi 12574 12575pkg_failed=no 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmpcmagnatune" >&5 12577$as_echo_n "checking for gmpcmagnatune... " >&6; } 12578 12579if test -n "$gmpcmagnatune_CFLAGS"; then 12580 pkg_cv_gmpcmagnatune_CFLAGS="$gmpcmagnatune_CFLAGS" 12581 elif test -n "$PKG_CONFIG"; then 12582 if test -n "$PKG_CONFIG" && \ 12583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" 12584 glib-2.0 >= 2.16 12585 gobject-2.0 >= 2.4 12586 gtk+-2.0 >= 2.4 12587 gmodule-2.0 12588 libmpd >= 0.15.98 12589 gmpc > 0.20.2 12590 sqlite3 12591\""; } >&5 12592 ($PKG_CONFIG --exists --print-errors " 12593 glib-2.0 >= 2.16 12594 gobject-2.0 >= 2.4 12595 gtk+-2.0 >= 2.4 12596 gmodule-2.0 12597 libmpd >= 0.15.98 12598 gmpc > 0.20.2 12599 sqlite3 12600") 2>&5 12601 ac_status=$? 12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12603 test $ac_status = 0; }; then 12604 pkg_cv_gmpcmagnatune_CFLAGS=`$PKG_CONFIG --cflags " 12605 glib-2.0 >= 2.16 12606 gobject-2.0 >= 2.4 12607 gtk+-2.0 >= 2.4 12608 gmodule-2.0 12609 libmpd >= 0.15.98 12610 gmpc > 0.20.2 12611 sqlite3 12612" 2>/dev/null` 12613else 12614 pkg_failed=yes 12615fi 12616 else 12617 pkg_failed=untried 12618fi 12619if test -n "$gmpcmagnatune_LIBS"; then 12620 pkg_cv_gmpcmagnatune_LIBS="$gmpcmagnatune_LIBS" 12621 elif test -n "$PKG_CONFIG"; then 12622 if test -n "$PKG_CONFIG" && \ 12623 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" 12624 glib-2.0 >= 2.16 12625 gobject-2.0 >= 2.4 12626 gtk+-2.0 >= 2.4 12627 gmodule-2.0 12628 libmpd >= 0.15.98 12629 gmpc > 0.20.2 12630 sqlite3 12631\""; } >&5 12632 ($PKG_CONFIG --exists --print-errors " 12633 glib-2.0 >= 2.16 12634 gobject-2.0 >= 2.4 12635 gtk+-2.0 >= 2.4 12636 gmodule-2.0 12637 libmpd >= 0.15.98 12638 gmpc > 0.20.2 12639 sqlite3 12640") 2>&5 12641 ac_status=$? 12642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12643 test $ac_status = 0; }; then 12644 pkg_cv_gmpcmagnatune_LIBS=`$PKG_CONFIG --libs " 12645 glib-2.0 >= 2.16 12646 gobject-2.0 >= 2.4 12647 gtk+-2.0 >= 2.4 12648 gmodule-2.0 12649 libmpd >= 0.15.98 12650 gmpc > 0.20.2 12651 sqlite3 12652" 2>/dev/null` 12653else 12654 pkg_failed=yes 12655fi 12656 else 12657 pkg_failed=untried 12658fi 12659 12660 12661 12662if test $pkg_failed = yes; then 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12664$as_echo "no" >&6; } 12665 12666if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12667 _pkg_short_errors_supported=yes 12668else 12669 _pkg_short_errors_supported=no 12670fi 12671 if test $_pkg_short_errors_supported = yes; then 12672 gmpcmagnatune_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " 12673 glib-2.0 >= 2.16 12674 gobject-2.0 >= 2.4 12675 gtk+-2.0 >= 2.4 12676 gmodule-2.0 12677 libmpd >= 0.15.98 12678 gmpc > 0.20.2 12679 sqlite3 12680" 2>&1` 12681 else 12682 gmpcmagnatune_PKG_ERRORS=`$PKG_CONFIG --print-errors " 12683 glib-2.0 >= 2.16 12684 gobject-2.0 >= 2.4 12685 gtk+-2.0 >= 2.4 12686 gmodule-2.0 12687 libmpd >= 0.15.98 12688 gmpc > 0.20.2 12689 sqlite3 12690" 2>&1` 12691 fi 12692 # Put the nasty error message in config.log where it belongs 12693 echo "$gmpcmagnatune_PKG_ERRORS" >&5 12694 12695 as_fn_error $? "Package requirements ( 12696 glib-2.0 >= 2.16 12697 gobject-2.0 >= 2.4 12698 gtk+-2.0 >= 2.4 12699 gmodule-2.0 12700 libmpd >= 0.15.98 12701 gmpc > 0.20.2 12702 sqlite3 12703) were not met: 12704 12705$gmpcmagnatune_PKG_ERRORS 12706 12707Consider adjusting the PKG_CONFIG_PATH environment variable if you 12708installed software in a non-standard prefix. 12709 12710Alternatively, you may set the environment variables gmpcmagnatune_CFLAGS 12711and gmpcmagnatune_LIBS to avoid the need to call pkg-config. 12712See the pkg-config man page for more details." "$LINENO" 5 12713elif test $pkg_failed = untried; then 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12715$as_echo "no" >&6; } 12716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12718as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12719is in your PATH or set the PKG_CONFIG environment variable to the full 12720path to pkg-config. 12721 12722Alternatively, you may set the environment variables gmpcmagnatune_CFLAGS 12723and gmpcmagnatune_LIBS to avoid the need to call pkg-config. 12724See the pkg-config man page for more details. 12725 12726To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12727See \`config.log' for more details" "$LINENO" 5 ; } 12728else 12729 gmpcmagnatune_CFLAGS=$pkg_cv_gmpcmagnatune_CFLAGS 12730 gmpcmagnatune_LIBS=$pkg_cv_gmpcmagnatune_LIBS 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12732$as_echo "yes" >&6; } 12733 12734fi 12735 12736 12737 12738ac_config_files="$ac_config_files Makefile src/Makefile data/Makefile po/Makefile.in" 12739 12740cat >confcache <<\_ACEOF 12741# This file is a shell script that caches the results of configure 12742# tests run on this system so they can be shared between configure 12743# scripts and configure runs, see configure's option --config-cache. 12744# It is not useful on other systems. If it contains results you don't 12745# want to keep, you may remove or edit it. 12746# 12747# config.status only pays attention to the cache file if you give it 12748# the --recheck option to rerun configure. 12749# 12750# `ac_cv_env_foo' variables (set or unset) will be overridden when 12751# loading this file, other *unset* `ac_cv_foo' will be assigned the 12752# following values. 12753 12754_ACEOF 12755 12756# The following way of writing the cache mishandles newlines in values, 12757# but we know of no workaround that is simple, portable, and efficient. 12758# So, we kill variables containing newlines. 12759# Ultrix sh set writes to stderr and can't be redirected directly, 12760# and sets the high bit in the cache file unless we assign to the vars. 12761( 12762 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12763 eval ac_val=\$$ac_var 12764 case $ac_val in #( 12765 *${as_nl}*) 12766 case $ac_var in #( 12767 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12768$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12769 esac 12770 case $ac_var in #( 12771 _ | IFS | as_nl) ;; #( 12772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12773 *) { eval $ac_var=; unset $ac_var;} ;; 12774 esac ;; 12775 esac 12776 done 12777 12778 (set) 2>&1 | 12779 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12780 *${as_nl}ac_space=\ *) 12781 # `set' does not quote correctly, so add quotes: double-quote 12782 # substitution turns \\\\ into \\, and sed turns \\ into \. 12783 sed -n \ 12784 "s/'/'\\\\''/g; 12785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12786 ;; #( 12787 *) 12788 # `set' quotes correctly as required by POSIX, so do not add quotes. 12789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12790 ;; 12791 esac | 12792 sort 12793) | 12794 sed ' 12795 /^ac_cv_env_/b end 12796 t clear 12797 :clear 12798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12799 t end 12800 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12801 :end' >>confcache 12802if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12803 if test -w "$cache_file"; then 12804 test "x$cache_file" != "x/dev/null" && 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12806$as_echo "$as_me: updating cache $cache_file" >&6;} 12807 cat confcache >$cache_file 12808 else 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12810$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12811 fi 12812fi 12813rm -f confcache 12814 12815test "x$prefix" = xNONE && prefix=$ac_default_prefix 12816# Let make expand exec_prefix. 12817test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12818 12819DEFS=-DHAVE_CONFIG_H 12820 12821ac_libobjs= 12822ac_ltlibobjs= 12823U= 12824for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12825 # 1. Remove the extension, and $U if already installed. 12826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12829 # will be set to the directory where LIBOBJS objects are built. 12830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12832done 12833LIBOBJS=$ac_libobjs 12834 12835LTLIBOBJS=$ac_ltlibobjs 12836 12837 12838 if test -n "$EXEEXT"; then 12839 am__EXEEXT_TRUE= 12840 am__EXEEXT_FALSE='#' 12841else 12842 am__EXEEXT_TRUE='#' 12843 am__EXEEXT_FALSE= 12844fi 12845 12846if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12847 as_fn_error $? "conditional \"AMDEP\" was never defined. 12848Usually this means the macro was only invoked conditionally." "$LINENO" 5 12849fi 12850if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12851 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12852Usually this means the macro was only invoked conditionally." "$LINENO" 5 12853fi 12854 12855 ac_config_commands="$ac_config_commands po/stamp-it" 12856 12857 12858if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12859 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12860Usually this means the macro was only invoked conditionally." "$LINENO" 5 12861fi 12862 12863: ${CONFIG_STATUS=./config.status} 12864ac_write_fail=0 12865ac_clean_files_save=$ac_clean_files 12866ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12867{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12868$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12869as_write_fail=0 12870cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12871#! $SHELL 12872# Generated by $as_me. 12873# Run this file to recreate the current configuration. 12874# Compiler output produced by configure, useful for debugging 12875# configure, is in config.log if it exists. 12876 12877debug=false 12878ac_cs_recheck=false 12879ac_cs_silent=false 12880 12881SHELL=\${CONFIG_SHELL-$SHELL} 12882export SHELL 12883_ASEOF 12884cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12885## -------------------- ## 12886## M4sh Initialization. ## 12887## -------------------- ## 12888 12889# Be more Bourne compatible 12890DUALCASE=1; export DUALCASE # for MKS sh 12891if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12892 emulate sh 12893 NULLCMD=: 12894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12895 # is contrary to our usage. Disable this feature. 12896 alias -g '${1+"$@"}'='"$@"' 12897 setopt NO_GLOB_SUBST 12898else 12899 case `(set -o) 2>/dev/null` in #( 12900 *posix*) : 12901 set -o posix ;; #( 12902 *) : 12903 ;; 12904esac 12905fi 12906 12907 12908as_nl=' 12909' 12910export as_nl 12911# Printing a long string crashes Solaris 7 /usr/bin/printf. 12912as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12913as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12914as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12915# Prefer a ksh shell builtin over an external printf program on Solaris, 12916# but without wasting forks for bash or zsh. 12917if test -z "$BASH_VERSION$ZSH_VERSION" \ 12918 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12919 as_echo='print -r --' 12920 as_echo_n='print -rn --' 12921elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12922 as_echo='printf %s\n' 12923 as_echo_n='printf %s' 12924else 12925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12927 as_echo_n='/usr/ucb/echo -n' 12928 else 12929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12930 as_echo_n_body='eval 12931 arg=$1; 12932 case $arg in #( 12933 *"$as_nl"*) 12934 expr "X$arg" : "X\\(.*\\)$as_nl"; 12935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12936 esac; 12937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12938 ' 12939 export as_echo_n_body 12940 as_echo_n='sh -c $as_echo_n_body as_echo' 12941 fi 12942 export as_echo_body 12943 as_echo='sh -c $as_echo_body as_echo' 12944fi 12945 12946# The user is always right. 12947if test "${PATH_SEPARATOR+set}" != set; then 12948 PATH_SEPARATOR=: 12949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12951 PATH_SEPARATOR=';' 12952 } 12953fi 12954 12955 12956# IFS 12957# We need space, tab and new line, in precisely that order. Quoting is 12958# there to prevent editors from complaining about space-tab. 12959# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12960# splitting by setting IFS to empty value.) 12961IFS=" "" $as_nl" 12962 12963# Find who we are. Look in the path if we contain no directory separator. 12964case $0 in #(( 12965 *[\\/]* ) as_myself=$0 ;; 12966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12967for as_dir in $PATH 12968do 12969 IFS=$as_save_IFS 12970 test -z "$as_dir" && as_dir=. 12971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12972 done 12973IFS=$as_save_IFS 12974 12975 ;; 12976esac 12977# We did not find ourselves, most probably we were run as `sh COMMAND' 12978# in which case we are not to be found in the path. 12979if test "x$as_myself" = x; then 12980 as_myself=$0 12981fi 12982if test ! -f "$as_myself"; then 12983 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12984 exit 1 12985fi 12986 12987# Unset variables that we do not need and which cause bugs (e.g. in 12988# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12989# suppresses any "Segmentation fault" message there. '((' could 12990# trigger a bug in pdksh 5.2.14. 12991for as_var in BASH_ENV ENV MAIL MAILPATH 12992do eval test x\${$as_var+set} = xset \ 12993 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12994done 12995PS1='$ ' 12996PS2='> ' 12997PS4='+ ' 12998 12999# NLS nuisances. 13000LC_ALL=C 13001export LC_ALL 13002LANGUAGE=C 13003export LANGUAGE 13004 13005# CDPATH. 13006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13007 13008 13009# as_fn_error STATUS ERROR [LINENO LOG_FD] 13010# ---------------------------------------- 13011# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13012# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13013# script with STATUS, using 1 if that was 0. 13014as_fn_error () 13015{ 13016 as_status=$1; test $as_status -eq 0 && as_status=1 13017 if test "$4"; then 13018 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13019 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13020 fi 13021 $as_echo "$as_me: error: $2" >&2 13022 as_fn_exit $as_status 13023} # as_fn_error 13024 13025 13026# as_fn_set_status STATUS 13027# ----------------------- 13028# Set $? to STATUS, without forking. 13029as_fn_set_status () 13030{ 13031 return $1 13032} # as_fn_set_status 13033 13034# as_fn_exit STATUS 13035# ----------------- 13036# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13037as_fn_exit () 13038{ 13039 set +e 13040 as_fn_set_status $1 13041 exit $1 13042} # as_fn_exit 13043 13044# as_fn_unset VAR 13045# --------------- 13046# Portably unset VAR. 13047as_fn_unset () 13048{ 13049 { eval $1=; unset $1;} 13050} 13051as_unset=as_fn_unset 13052# as_fn_append VAR VALUE 13053# ---------------------- 13054# Append the text in VALUE to the end of the definition contained in VAR. Take 13055# advantage of any shell optimizations that allow amortized linear growth over 13056# repeated appends, instead of the typical quadratic growth present in naive 13057# implementations. 13058if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13059 eval 'as_fn_append () 13060 { 13061 eval $1+=\$2 13062 }' 13063else 13064 as_fn_append () 13065 { 13066 eval $1=\$$1\$2 13067 } 13068fi # as_fn_append 13069 13070# as_fn_arith ARG... 13071# ------------------ 13072# Perform arithmetic evaluation on the ARGs, and store the result in the 13073# global $as_val. Take advantage of shells that can avoid forks. The arguments 13074# must be portable across $(()) and expr. 13075if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13076 eval 'as_fn_arith () 13077 { 13078 as_val=$(( $* )) 13079 }' 13080else 13081 as_fn_arith () 13082 { 13083 as_val=`expr "$@" || test $? -eq 1` 13084 } 13085fi # as_fn_arith 13086 13087 13088if expr a : '\(a\)' >/dev/null 2>&1 && 13089 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13090 as_expr=expr 13091else 13092 as_expr=false 13093fi 13094 13095if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13096 as_basename=basename 13097else 13098 as_basename=false 13099fi 13100 13101if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13102 as_dirname=dirname 13103else 13104 as_dirname=false 13105fi 13106 13107as_me=`$as_basename -- "$0" || 13108$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13109 X"$0" : 'X\(//\)$' \| \ 13110 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13111$as_echo X/"$0" | 13112 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13113 s//\1/ 13114 q 13115 } 13116 /^X\/\(\/\/\)$/{ 13117 s//\1/ 13118 q 13119 } 13120 /^X\/\(\/\).*/{ 13121 s//\1/ 13122 q 13123 } 13124 s/.*/./; q'` 13125 13126# Avoid depending upon Character Ranges. 13127as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13129as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13130as_cr_digits='0123456789' 13131as_cr_alnum=$as_cr_Letters$as_cr_digits 13132 13133ECHO_C= ECHO_N= ECHO_T= 13134case `echo -n x` in #((((( 13135-n*) 13136 case `echo 'xy\c'` in 13137 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13138 xy) ECHO_C='\c';; 13139 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13140 ECHO_T=' ';; 13141 esac;; 13142*) 13143 ECHO_N='-n';; 13144esac 13145 13146rm -f conf$$ conf$$.exe conf$$.file 13147if test -d conf$$.dir; then 13148 rm -f conf$$.dir/conf$$.file 13149else 13150 rm -f conf$$.dir 13151 mkdir conf$$.dir 2>/dev/null 13152fi 13153if (echo >conf$$.file) 2>/dev/null; then 13154 if ln -s conf$$.file conf$$ 2>/dev/null; then 13155 as_ln_s='ln -s' 13156 # ... but there are two gotchas: 13157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13159 # In both cases, we have to default to `cp -p'. 13160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13161 as_ln_s='cp -p' 13162 elif ln conf$$.file conf$$ 2>/dev/null; then 13163 as_ln_s=ln 13164 else 13165 as_ln_s='cp -p' 13166 fi 13167else 13168 as_ln_s='cp -p' 13169fi 13170rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13171rmdir conf$$.dir 2>/dev/null 13172 13173 13174# as_fn_mkdir_p 13175# ------------- 13176# Create "$as_dir" as a directory, including parents if necessary. 13177as_fn_mkdir_p () 13178{ 13179 13180 case $as_dir in #( 13181 -*) as_dir=./$as_dir;; 13182 esac 13183 test -d "$as_dir" || eval $as_mkdir_p || { 13184 as_dirs= 13185 while :; do 13186 case $as_dir in #( 13187 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13188 *) as_qdir=$as_dir;; 13189 esac 13190 as_dirs="'$as_qdir' $as_dirs" 13191 as_dir=`$as_dirname -- "$as_dir" || 13192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13193 X"$as_dir" : 'X\(//\)[^/]' \| \ 13194 X"$as_dir" : 'X\(//\)$' \| \ 13195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13196$as_echo X"$as_dir" | 13197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13198 s//\1/ 13199 q 13200 } 13201 /^X\(\/\/\)[^/].*/{ 13202 s//\1/ 13203 q 13204 } 13205 /^X\(\/\/\)$/{ 13206 s//\1/ 13207 q 13208 } 13209 /^X\(\/\).*/{ 13210 s//\1/ 13211 q 13212 } 13213 s/.*/./; q'` 13214 test -d "$as_dir" && break 13215 done 13216 test -z "$as_dirs" || eval "mkdir $as_dirs" 13217 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13218 13219 13220} # as_fn_mkdir_p 13221if mkdir -p . 2>/dev/null; then 13222 as_mkdir_p='mkdir -p "$as_dir"' 13223else 13224 test -d ./-p && rmdir ./-p 13225 as_mkdir_p=false 13226fi 13227 13228if test -x / >/dev/null 2>&1; then 13229 as_test_x='test -x' 13230else 13231 if ls -dL / >/dev/null 2>&1; then 13232 as_ls_L_option=L 13233 else 13234 as_ls_L_option= 13235 fi 13236 as_test_x=' 13237 eval sh -c '\'' 13238 if test -d "$1"; then 13239 test -d "$1/."; 13240 else 13241 case $1 in #( 13242 -*)set "./$1";; 13243 esac; 13244 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13245 ???[sx]*):;;*)false;;esac;fi 13246 '\'' sh 13247 ' 13248fi 13249as_executable_p=$as_test_x 13250 13251# Sed expression to map a string onto a valid CPP name. 13252as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13253 13254# Sed expression to map a string onto a valid variable name. 13255as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13256 13257 13258exec 6>&1 13259## ----------------------------------- ## 13260## Main body of $CONFIG_STATUS script. ## 13261## ----------------------------------- ## 13262_ASEOF 13263test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13264 13265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13266# Save the log message, to keep $0 and so on meaningful, and to 13267# report actual input values of CONFIG_FILES etc. instead of their 13268# values after options handling. 13269ac_log=" 13270This file was extended by gmpc-magnatune $as_me 11.8.16, which was 13271generated by GNU Autoconf 2.67. Invocation command line was 13272 13273 CONFIG_FILES = $CONFIG_FILES 13274 CONFIG_HEADERS = $CONFIG_HEADERS 13275 CONFIG_LINKS = $CONFIG_LINKS 13276 CONFIG_COMMANDS = $CONFIG_COMMANDS 13277 $ $0 $@ 13278 13279on `(hostname || uname -n) 2>/dev/null | sed 1q` 13280" 13281 13282_ACEOF 13283 13284case $ac_config_files in *" 13285"*) set x $ac_config_files; shift; ac_config_files=$*;; 13286esac 13287 13288case $ac_config_headers in *" 13289"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13290esac 13291 13292 13293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13294# Files that config.status was made for. 13295config_files="$ac_config_files" 13296config_headers="$ac_config_headers" 13297config_commands="$ac_config_commands" 13298 13299_ACEOF 13300 13301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13302ac_cs_usage="\ 13303\`$as_me' instantiates files and other configuration actions 13304from templates according to the current configuration. Unless the files 13305and actions are specified as TAGs, all are instantiated by default. 13306 13307Usage: $0 [OPTION]... [TAG]... 13308 13309 -h, --help print this help, then exit 13310 -V, --version print version number and configuration settings, then exit 13311 --config print configuration, then exit 13312 -q, --quiet, --silent 13313 do not print progress messages 13314 -d, --debug don't remove temporary files 13315 --recheck update $as_me by reconfiguring in the same conditions 13316 --file=FILE[:TEMPLATE] 13317 instantiate the configuration file FILE 13318 --header=FILE[:TEMPLATE] 13319 instantiate the configuration header FILE 13320 13321Configuration files: 13322$config_files 13323 13324Configuration headers: 13325$config_headers 13326 13327Configuration commands: 13328$config_commands 13329 13330Report bugs to <qball@sarine.nl>." 13331 13332_ACEOF 13333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13334ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13335ac_cs_version="\\ 13336gmpc-magnatune config.status 11.8.16 13337configured by $0, generated by GNU Autoconf 2.67, 13338 with options \\"\$ac_cs_config\\" 13339 13340Copyright (C) 2010 Free Software Foundation, Inc. 13341This config.status script is free software; the Free Software Foundation 13342gives unlimited permission to copy, distribute and modify it." 13343 13344ac_pwd='$ac_pwd' 13345srcdir='$srcdir' 13346INSTALL='$INSTALL' 13347MKDIR_P='$MKDIR_P' 13348AWK='$AWK' 13349test -n "\$AWK" || AWK=awk 13350_ACEOF 13351 13352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13353# The default lists apply if the user does not specify any file. 13354ac_need_defaults=: 13355while test $# != 0 13356do 13357 case $1 in 13358 --*=?*) 13359 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13361 ac_shift=: 13362 ;; 13363 --*=) 13364 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13365 ac_optarg= 13366 ac_shift=: 13367 ;; 13368 *) 13369 ac_option=$1 13370 ac_optarg=$2 13371 ac_shift=shift 13372 ;; 13373 esac 13374 13375 case $ac_option in 13376 # Handling of the options. 13377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13378 ac_cs_recheck=: ;; 13379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13380 $as_echo "$ac_cs_version"; exit ;; 13381 --config | --confi | --conf | --con | --co | --c ) 13382 $as_echo "$ac_cs_config"; exit ;; 13383 --debug | --debu | --deb | --de | --d | -d ) 13384 debug=: ;; 13385 --file | --fil | --fi | --f ) 13386 $ac_shift 13387 case $ac_optarg in 13388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13389 '') as_fn_error $? "missing file argument" ;; 13390 esac 13391 as_fn_append CONFIG_FILES " '$ac_optarg'" 13392 ac_need_defaults=false;; 13393 --header | --heade | --head | --hea ) 13394 $ac_shift 13395 case $ac_optarg in 13396 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13397 esac 13398 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13399 ac_need_defaults=false;; 13400 --he | --h) 13401 # Conflict between --help and --header 13402 as_fn_error $? "ambiguous option: \`$1' 13403Try \`$0 --help' for more information.";; 13404 --help | --hel | -h ) 13405 $as_echo "$ac_cs_usage"; exit ;; 13406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13407 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13408 ac_cs_silent=: ;; 13409 13410 # This is an error. 13411 -*) as_fn_error $? "unrecognized option: \`$1' 13412Try \`$0 --help' for more information." ;; 13413 13414 *) as_fn_append ac_config_targets " $1" 13415 ac_need_defaults=false ;; 13416 13417 esac 13418 shift 13419done 13420 13421ac_configure_extra_args= 13422 13423if $ac_cs_silent; then 13424 exec 6>/dev/null 13425 ac_configure_extra_args="$ac_configure_extra_args --silent" 13426fi 13427 13428_ACEOF 13429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13430if \$ac_cs_recheck; then 13431 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13432 shift 13433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13434 CONFIG_SHELL='$SHELL' 13435 export CONFIG_SHELL 13436 exec "\$@" 13437fi 13438 13439_ACEOF 13440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13441exec 5>>config.log 13442{ 13443 echo 13444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13445## Running $as_me. ## 13446_ASBOX 13447 $as_echo "$ac_log" 13448} >&5 13449 13450_ACEOF 13451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13452# 13453# INIT-COMMANDS 13454# 13455AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13456 13457 13458 13459# The HP-UX ksh and POSIX shell print the target directory to stdout 13460# if CDPATH is set. 13461(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13462 13463sed_quote_subst='$sed_quote_subst' 13464double_quote_subst='$double_quote_subst' 13465delay_variable_subst='$delay_variable_subst' 13466enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13467macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13468macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13469enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13470pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13471enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13472host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13473host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13474host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13475build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13476build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13477build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13478SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13479Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13480GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13481EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13482FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13483LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13484NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13485LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13486max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13487ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13488exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13489lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13490lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13491lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13492reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13493reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13494OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13495deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13496file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13497AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13498AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13499STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13500RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13501old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13502old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13503old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13504CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13505CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13506compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13507GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13508lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13509lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13510lt_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"`' 13511lt_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"`' 13512objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13513SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13514ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13515MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13516lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13517lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13518lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13519lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13520lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13521need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13522DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13523NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13524LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13525OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13526OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13527libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13528shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13529extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13530archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13531enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13532export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13533whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13534compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13535old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13536old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13537archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13538archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13539module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13540module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13541with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13542allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13543no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13544hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13545hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13546hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13547hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13548hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13549hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13550hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13551hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13552inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13553link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13554fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13555always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13556export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13557exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13558include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13559prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13560file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13561variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13562need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13563need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13564version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13565runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13566shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13567shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13568libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13569library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13570soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13571postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13572postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13573finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13574finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13575hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13576sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13577sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13578hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13579enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13580enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13581enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13582old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13583striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13584 13585LTCC='$LTCC' 13586LTCFLAGS='$LTCFLAGS' 13587compiler='$compiler_DEFAULT' 13588 13589# Quote evaled strings. 13590for var in SED \ 13591GREP \ 13592EGREP \ 13593FGREP \ 13594LD \ 13595NM \ 13596LN_S \ 13597lt_SP2NL \ 13598lt_NL2SP \ 13599reload_flag \ 13600OBJDUMP \ 13601deplibs_check_method \ 13602file_magic_cmd \ 13603AR \ 13604AR_FLAGS \ 13605STRIP \ 13606RANLIB \ 13607CC \ 13608CFLAGS \ 13609compiler \ 13610lt_cv_sys_global_symbol_pipe \ 13611lt_cv_sys_global_symbol_to_cdecl \ 13612lt_cv_sys_global_symbol_to_c_name_address \ 13613lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13614SHELL \ 13615ECHO \ 13616lt_prog_compiler_no_builtin_flag \ 13617lt_prog_compiler_wl \ 13618lt_prog_compiler_pic \ 13619lt_prog_compiler_static \ 13620lt_cv_prog_compiler_c_o \ 13621need_locks \ 13622DSYMUTIL \ 13623NMEDIT \ 13624LIPO \ 13625OTOOL \ 13626OTOOL64 \ 13627shrext_cmds \ 13628export_dynamic_flag_spec \ 13629whole_archive_flag_spec \ 13630compiler_needs_object \ 13631with_gnu_ld \ 13632allow_undefined_flag \ 13633no_undefined_flag \ 13634hardcode_libdir_flag_spec \ 13635hardcode_libdir_flag_spec_ld \ 13636hardcode_libdir_separator \ 13637fix_srcfile_path \ 13638exclude_expsyms \ 13639include_expsyms \ 13640file_list_spec \ 13641variables_saved_for_relink \ 13642libname_spec \ 13643library_names_spec \ 13644soname_spec \ 13645finish_eval \ 13646old_striplib \ 13647striplib; do 13648 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13649 *[\\\\\\\`\\"\\\$]*) 13650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13651 ;; 13652 *) 13653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13654 ;; 13655 esac 13656done 13657 13658# Double-quote double-evaled strings. 13659for var in reload_cmds \ 13660old_postinstall_cmds \ 13661old_postuninstall_cmds \ 13662old_archive_cmds \ 13663extract_expsyms_cmds \ 13664old_archive_from_new_cmds \ 13665old_archive_from_expsyms_cmds \ 13666archive_cmds \ 13667archive_expsym_cmds \ 13668module_cmds \ 13669module_expsym_cmds \ 13670export_symbols_cmds \ 13671prelink_cmds \ 13672postinstall_cmds \ 13673postuninstall_cmds \ 13674finish_cmds \ 13675sys_lib_search_path_spec \ 13676sys_lib_dlsearch_path_spec; do 13677 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13678 *[\\\\\\\`\\"\\\$]*) 13679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13680 ;; 13681 *) 13682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13683 ;; 13684 esac 13685done 13686 13687# Fix-up fallback echo if it was mangled by the above quoting rules. 13688case \$lt_ECHO in 13689*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13690 ;; 13691esac 13692 13693ac_aux_dir='$ac_aux_dir' 13694xsi_shell='$xsi_shell' 13695lt_shell_append='$lt_shell_append' 13696 13697# See if we are running on zsh, and set the options which allow our 13698# commands through without removal of \ escapes INIT. 13699if test -n "\${ZSH_VERSION+set}" ; then 13700 setopt NO_GLOB_SUBST 13701fi 13702 13703 13704 PACKAGE='$PACKAGE' 13705 VERSION='$VERSION' 13706 TIMESTAMP='$TIMESTAMP' 13707 RM='$RM' 13708 ofile='$ofile' 13709 13710 13711 13712 13713_ACEOF 13714 13715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13716 13717# Handling of arguments. 13718for ac_config_target in $ac_config_targets 13719do 13720 case $ac_config_target in 13721 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13722 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13723 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13724 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13725 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13726 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13727 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 13728 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 13729 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; 13730 13731 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 13732 esac 13733done 13734 13735 13736# If the user did not use the arguments to specify the items to instantiate, 13737# then the envvar interface is used. Set only those that are not. 13738# We use the long form for the default assignment because of an extremely 13739# bizarre bug on SunOS 4.1.3. 13740if $ac_need_defaults; then 13741 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13742 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13743 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13744fi 13745 13746# Have a temporary directory for convenience. Make it in the build tree 13747# simply because there is no reason against having it here, and in addition, 13748# creating and moving files from /tmp can sometimes cause problems. 13749# Hook for its removal unless debugging. 13750# Note that there is a small window in which the directory will not be cleaned: 13751# after its creation but before its name has been assigned to `$tmp'. 13752$debug || 13753{ 13754 tmp= 13755 trap 'exit_status=$? 13756 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13757' 0 13758 trap 'as_fn_exit 1' 1 2 13 15 13759} 13760# Create a (secure) tmp directory for tmp files. 13761 13762{ 13763 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13764 test -n "$tmp" && test -d "$tmp" 13765} || 13766{ 13767 tmp=./conf$$-$RANDOM 13768 (umask 077 && mkdir "$tmp") 13769} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13770 13771# Set up the scripts for CONFIG_FILES section. 13772# No need to generate them if there are no CONFIG_FILES. 13773# This happens for instance with `./config.status config.h'. 13774if test -n "$CONFIG_FILES"; then 13775 13776 13777ac_cr=`echo X | tr X '\015'` 13778# On cygwin, bash can eat \r inside `` if the user requested igncr. 13779# But we know of no other shell where ac_cr would be empty at this 13780# point, so we can use a bashism as a fallback. 13781if test "x$ac_cr" = x; then 13782 eval ac_cr=\$\'\\r\' 13783fi 13784ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13785if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13786 ac_cs_awk_cr='\\r' 13787else 13788 ac_cs_awk_cr=$ac_cr 13789fi 13790 13791echo 'BEGIN {' >"$tmp/subs1.awk" && 13792_ACEOF 13793 13794 13795{ 13796 echo "cat >conf$$subs.awk <<_ACEOF" && 13797 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13798 echo "_ACEOF" 13799} >conf$$subs.sh || 13800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13801ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13802ac_delim='%!_!# ' 13803for ac_last_try in false false false false false :; do 13804 . ./conf$$subs.sh || 13805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13806 13807 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13808 if test $ac_delim_n = $ac_delim_num; then 13809 break 13810 elif $ac_last_try; then 13811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13812 else 13813 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13814 fi 13815done 13816rm -f conf$$subs.sh 13817 13818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13819cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13820_ACEOF 13821sed -n ' 13822h 13823s/^/S["/; s/!.*/"]=/ 13824p 13825g 13826s/^[^!]*!// 13827:repl 13828t repl 13829s/'"$ac_delim"'$// 13830t delim 13831:nl 13832h 13833s/\(.\{148\}\)..*/\1/ 13834t more1 13835s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13836p 13837n 13838b repl 13839:more1 13840s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13841p 13842g 13843s/.\{148\}// 13844t nl 13845:delim 13846h 13847s/\(.\{148\}\)..*/\1/ 13848t more2 13849s/["\\]/\\&/g; s/^/"/; s/$/"/ 13850p 13851b 13852:more2 13853s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13854p 13855g 13856s/.\{148\}// 13857t delim 13858' <conf$$subs.awk | sed ' 13859/^[^""]/{ 13860 N 13861 s/\n// 13862} 13863' >>$CONFIG_STATUS || ac_write_fail=1 13864rm -f conf$$subs.awk 13865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13866_ACAWK 13867cat >>"\$tmp/subs1.awk" <<_ACAWK && 13868 for (key in S) S_is_set[key] = 1 13869 FS = "" 13870 13871} 13872{ 13873 line = $ 0 13874 nfields = split(line, field, "@") 13875 substed = 0 13876 len = length(field[1]) 13877 for (i = 2; i < nfields; i++) { 13878 key = field[i] 13879 keylen = length(key) 13880 if (S_is_set[key]) { 13881 value = S[key] 13882 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13883 len += length(value) + length(field[++i]) 13884 substed = 1 13885 } else 13886 len += 1 + keylen 13887 } 13888 13889 print line 13890} 13891 13892_ACAWK 13893_ACEOF 13894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13895if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13896 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13897else 13898 cat 13899fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13900 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13901_ACEOF 13902 13903# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13904# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13905# trailing colons and then remove the whole line if VPATH becomes empty 13906# (actually we leave an empty line to preserve line numbers). 13907if test "x$srcdir" = x.; then 13908 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13909h 13910s/// 13911s/^/:/ 13912s/[ ]*$/:/ 13913s/:\$(srcdir):/:/g 13914s/:\${srcdir}:/:/g 13915s/:@srcdir@:/:/g 13916s/^:*// 13917s/:*$// 13918x 13919s/\(=[ ]*\).*/\1/ 13920G 13921s/\n// 13922s/^[^=]*=[ ]*$// 13923}' 13924fi 13925 13926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13927fi # test -n "$CONFIG_FILES" 13928 13929# Set up the scripts for CONFIG_HEADERS section. 13930# No need to generate them if there are no CONFIG_HEADERS. 13931# This happens for instance with `./config.status Makefile'. 13932if test -n "$CONFIG_HEADERS"; then 13933cat >"$tmp/defines.awk" <<\_ACAWK || 13934BEGIN { 13935_ACEOF 13936 13937# Transform confdefs.h into an awk script `defines.awk', embedded as 13938# here-document in config.status, that substitutes the proper values into 13939# config.h.in to produce config.h. 13940 13941# Create a delimiter string that does not exist in confdefs.h, to ease 13942# handling of long lines. 13943ac_delim='%!_!# ' 13944for ac_last_try in false false :; do 13945 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13946 if test -z "$ac_t"; then 13947 break 13948 elif $ac_last_try; then 13949 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13950 else 13951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13952 fi 13953done 13954 13955# For the awk script, D is an array of macro values keyed by name, 13956# likewise P contains macro parameters if any. Preserve backslash 13957# newline sequences. 13958 13959ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13960sed -n ' 13961s/.\{148\}/&'"$ac_delim"'/g 13962t rset 13963:rset 13964s/^[ ]*#[ ]*define[ ][ ]*/ / 13965t def 13966d 13967:def 13968s/\\$// 13969t bsnl 13970s/["\\]/\\&/g 13971s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13972D["\1"]=" \3"/p 13973s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13974d 13975:bsnl 13976s/["\\]/\\&/g 13977s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13978D["\1"]=" \3\\\\\\n"\\/p 13979t cont 13980s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13981t cont 13982d 13983:cont 13984n 13985s/.\{148\}/&'"$ac_delim"'/g 13986t clear 13987:clear 13988s/\\$// 13989t bsnlc 13990s/["\\]/\\&/g; s/^/"/; s/$/"/p 13991d 13992:bsnlc 13993s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13994b cont 13995' <confdefs.h | sed ' 13996s/'"$ac_delim"'/"\\\ 13997"/g' >>$CONFIG_STATUS || ac_write_fail=1 13998 13999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14000 for (key in D) D_is_set[key] = 1 14001 FS = "" 14002} 14003/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14004 line = \$ 0 14005 split(line, arg, " ") 14006 if (arg[1] == "#") { 14007 defundef = arg[2] 14008 mac1 = arg[3] 14009 } else { 14010 defundef = substr(arg[1], 2) 14011 mac1 = arg[2] 14012 } 14013 split(mac1, mac2, "(") #) 14014 macro = mac2[1] 14015 prefix = substr(line, 1, index(line, defundef) - 1) 14016 if (D_is_set[macro]) { 14017 # Preserve the white space surrounding the "#". 14018 print prefix "define", macro P[macro] D[macro] 14019 next 14020 } else { 14021 # Replace #undef with comments. This is necessary, for example, 14022 # in the case of _POSIX_SOURCE, which is predefined and required 14023 # on some systems where configure will not decide to define it. 14024 if (defundef == "undef") { 14025 print "/*", prefix defundef, macro, "*/" 14026 next 14027 } 14028 } 14029} 14030{ print } 14031_ACAWK 14032_ACEOF 14033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14034 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14035fi # test -n "$CONFIG_HEADERS" 14036 14037 14038eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14039shift 14040for ac_tag 14041do 14042 case $ac_tag in 14043 :[FHLC]) ac_mode=$ac_tag; continue;; 14044 esac 14045 case $ac_mode$ac_tag in 14046 :[FHL]*:*);; 14047 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 14048 :[FH]-) ac_tag=-:-;; 14049 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14050 esac 14051 ac_save_IFS=$IFS 14052 IFS=: 14053 set x $ac_tag 14054 IFS=$ac_save_IFS 14055 shift 14056 ac_file=$1 14057 shift 14058 14059 case $ac_mode in 14060 :L) ac_source=$1;; 14061 :[FH]) 14062 ac_file_inputs= 14063 for ac_f 14064 do 14065 case $ac_f in 14066 -) ac_f="$tmp/stdin";; 14067 *) # Look for the file first in the build tree, then in the source tree 14068 # (if the path is not absolute). The absolute path cannot be DOS-style, 14069 # because $ac_f cannot contain `:'. 14070 test -f "$ac_f" || 14071 case $ac_f in 14072 [\\/$]*) false;; 14073 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14074 esac || 14075 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 14076 esac 14077 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14078 as_fn_append ac_file_inputs " '$ac_f'" 14079 done 14080 14081 # Let's still pretend it is `configure' which instantiates (i.e., don't 14082 # use $as_me), people would be surprised to read: 14083 # /* config.h. Generated by config.status. */ 14084 configure_input='Generated from '` 14085 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14086 `' by configure.' 14087 if test x"$ac_file" != x-; then 14088 configure_input="$ac_file. $configure_input" 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14090$as_echo "$as_me: creating $ac_file" >&6;} 14091 fi 14092 # Neutralize special characters interpreted by sed in replacement strings. 14093 case $configure_input in #( 14094 *\&* | *\|* | *\\* ) 14095 ac_sed_conf_input=`$as_echo "$configure_input" | 14096 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14097 *) ac_sed_conf_input=$configure_input;; 14098 esac 14099 14100 case $ac_tag in 14101 *:-:* | *:-) cat >"$tmp/stdin" \ 14102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14103 esac 14104 ;; 14105 esac 14106 14107 ac_dir=`$as_dirname -- "$ac_file" || 14108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14109 X"$ac_file" : 'X\(//\)[^/]' \| \ 14110 X"$ac_file" : 'X\(//\)$' \| \ 14111 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14112$as_echo X"$ac_file" | 14113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14114 s//\1/ 14115 q 14116 } 14117 /^X\(\/\/\)[^/].*/{ 14118 s//\1/ 14119 q 14120 } 14121 /^X\(\/\/\)$/{ 14122 s//\1/ 14123 q 14124 } 14125 /^X\(\/\).*/{ 14126 s//\1/ 14127 q 14128 } 14129 s/.*/./; q'` 14130 as_dir="$ac_dir"; as_fn_mkdir_p 14131 ac_builddir=. 14132 14133case "$ac_dir" in 14134.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14135*) 14136 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14137 # A ".." for each directory in $ac_dir_suffix. 14138 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14139 case $ac_top_builddir_sub in 14140 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14141 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14142 esac ;; 14143esac 14144ac_abs_top_builddir=$ac_pwd 14145ac_abs_builddir=$ac_pwd$ac_dir_suffix 14146# for backward compatibility: 14147ac_top_builddir=$ac_top_build_prefix 14148 14149case $srcdir in 14150 .) # We are building in place. 14151 ac_srcdir=. 14152 ac_top_srcdir=$ac_top_builddir_sub 14153 ac_abs_top_srcdir=$ac_pwd ;; 14154 [\\/]* | ?:[\\/]* ) # Absolute name. 14155 ac_srcdir=$srcdir$ac_dir_suffix; 14156 ac_top_srcdir=$srcdir 14157 ac_abs_top_srcdir=$srcdir ;; 14158 *) # Relative name. 14159 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14160 ac_top_srcdir=$ac_top_build_prefix$srcdir 14161 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14162esac 14163ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14164 14165 14166 case $ac_mode in 14167 :F) 14168 # 14169 # CONFIG_FILE 14170 # 14171 14172 case $INSTALL in 14173 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14174 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14175 esac 14176 ac_MKDIR_P=$MKDIR_P 14177 case $MKDIR_P in 14178 [\\/$]* | ?:[\\/]* ) ;; 14179 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14180 esac 14181_ACEOF 14182 14183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14184# If the template does not know about datarootdir, expand it. 14185# FIXME: This hack should be removed a few years after 2.60. 14186ac_datarootdir_hack=; ac_datarootdir_seen= 14187ac_sed_dataroot=' 14188/datarootdir/ { 14189 p 14190 q 14191} 14192/@datadir@/p 14193/@docdir@/p 14194/@infodir@/p 14195/@localedir@/p 14196/@mandir@/p' 14197case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14198*datarootdir*) ac_datarootdir_seen=yes;; 14199*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14201$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14202_ACEOF 14203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14204 ac_datarootdir_hack=' 14205 s&@datadir@&$datadir&g 14206 s&@docdir@&$docdir&g 14207 s&@infodir@&$infodir&g 14208 s&@localedir@&$localedir&g 14209 s&@mandir@&$mandir&g 14210 s&\\\${datarootdir}&$datarootdir&g' ;; 14211esac 14212_ACEOF 14213 14214# Neutralize VPATH when `$srcdir' = `.'. 14215# Shell code in configure.ac might set extrasub. 14216# FIXME: do we really want to maintain this feature? 14217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14218ac_sed_extra="$ac_vpsub 14219$extrasub 14220_ACEOF 14221cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14222:t 14223/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14224s|@configure_input@|$ac_sed_conf_input|;t t 14225s&@top_builddir@&$ac_top_builddir_sub&;t t 14226s&@top_build_prefix@&$ac_top_build_prefix&;t t 14227s&@srcdir@&$ac_srcdir&;t t 14228s&@abs_srcdir@&$ac_abs_srcdir&;t t 14229s&@top_srcdir@&$ac_top_srcdir&;t t 14230s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14231s&@builddir@&$ac_builddir&;t t 14232s&@abs_builddir@&$ac_abs_builddir&;t t 14233s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14234s&@INSTALL@&$ac_INSTALL&;t t 14235s&@MKDIR_P@&$ac_MKDIR_P&;t t 14236$ac_datarootdir_hack 14237" 14238eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14240 14241test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14242 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14243 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14245which seems to be undefined. Please make sure it is defined" >&5 14246$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14247which seems to be undefined. Please make sure it is defined" >&2;} 14248 14249 rm -f "$tmp/stdin" 14250 case $ac_file in 14251 -) cat "$tmp/out" && rm -f "$tmp/out";; 14252 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14253 esac \ 14254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14255 ;; 14256 :H) 14257 # 14258 # CONFIG_HEADER 14259 # 14260 if test x"$ac_file" != x-; then 14261 { 14262 $as_echo "/* $configure_input */" \ 14263 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14264 } >"$tmp/config.h" \ 14265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14266 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14267 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14268$as_echo "$as_me: $ac_file is unchanged" >&6;} 14269 else 14270 rm -f "$ac_file" 14271 mv "$tmp/config.h" "$ac_file" \ 14272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14273 fi 14274 else 14275 $as_echo "/* $configure_input */" \ 14276 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14277 || as_fn_error $? "could not create -" "$LINENO" 5 14278 fi 14279# Compute "$ac_file"'s index in $config_headers. 14280_am_arg="$ac_file" 14281_am_stamp_count=1 14282for _am_header in $config_headers :; do 14283 case $_am_header in 14284 $_am_arg | $_am_arg:* ) 14285 break ;; 14286 * ) 14287 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14288 esac 14289done 14290echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14291$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14292 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14293 X"$_am_arg" : 'X\(//\)$' \| \ 14294 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14295$as_echo X"$_am_arg" | 14296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14297 s//\1/ 14298 q 14299 } 14300 /^X\(\/\/\)[^/].*/{ 14301 s//\1/ 14302 q 14303 } 14304 /^X\(\/\/\)$/{ 14305 s//\1/ 14306 q 14307 } 14308 /^X\(\/\).*/{ 14309 s//\1/ 14310 q 14311 } 14312 s/.*/./; q'`/stamp-h$_am_stamp_count 14313 ;; 14314 14315 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14316$as_echo "$as_me: executing $ac_file commands" >&6;} 14317 ;; 14318 esac 14319 14320 14321 case $ac_file$ac_mode in 14322 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14323 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14324 # are listed without --file. Let's play safe and only enable the eval 14325 # if we detect the quoting. 14326 case $CONFIG_FILES in 14327 *\'*) eval set x "$CONFIG_FILES" ;; 14328 *) set x $CONFIG_FILES ;; 14329 esac 14330 shift 14331 for mf 14332 do 14333 # Strip MF so we end up with the name of the file. 14334 mf=`echo "$mf" | sed -e 's/:.*$//'` 14335 # Check whether this is an Automake generated Makefile or not. 14336 # We used to match only the files named `Makefile.in', but 14337 # some people rename them; so instead we look at the file content. 14338 # Grep'ing the first line is not enough: some people post-process 14339 # each Makefile.in and add a new line on top of each file to say so. 14340 # Grep'ing the whole file is not good either: AIX grep has a line 14341 # limit of 2048, but all sed's we know have understand at least 4000. 14342 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14343 dirpart=`$as_dirname -- "$mf" || 14344$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14345 X"$mf" : 'X\(//\)[^/]' \| \ 14346 X"$mf" : 'X\(//\)$' \| \ 14347 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14348$as_echo X"$mf" | 14349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14350 s//\1/ 14351 q 14352 } 14353 /^X\(\/\/\)[^/].*/{ 14354 s//\1/ 14355 q 14356 } 14357 /^X\(\/\/\)$/{ 14358 s//\1/ 14359 q 14360 } 14361 /^X\(\/\).*/{ 14362 s//\1/ 14363 q 14364 } 14365 s/.*/./; q'` 14366 else 14367 continue 14368 fi 14369 # Extract the definition of DEPDIR, am__include, and am__quote 14370 # from the Makefile without running `make'. 14371 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14372 test -z "$DEPDIR" && continue 14373 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14374 test -z "am__include" && continue 14375 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14376 # When using ansi2knr, U may be empty or an underscore; expand it 14377 U=`sed -n 's/^U = //p' < "$mf"` 14378 # Find all dependency output files, they are included files with 14379 # $(DEPDIR) in their names. We invoke sed twice because it is the 14380 # simplest approach to changing $(DEPDIR) to its actual value in the 14381 # expansion. 14382 for file in `sed -n " 14383 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14384 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14385 # Make sure the directory exists. 14386 test -f "$dirpart/$file" && continue 14387 fdir=`$as_dirname -- "$file" || 14388$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14389 X"$file" : 'X\(//\)[^/]' \| \ 14390 X"$file" : 'X\(//\)$' \| \ 14391 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14392$as_echo X"$file" | 14393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14394 s//\1/ 14395 q 14396 } 14397 /^X\(\/\/\)[^/].*/{ 14398 s//\1/ 14399 q 14400 } 14401 /^X\(\/\/\)$/{ 14402 s//\1/ 14403 q 14404 } 14405 /^X\(\/\).*/{ 14406 s//\1/ 14407 q 14408 } 14409 s/.*/./; q'` 14410 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14411 # echo "creating $dirpart/$file" 14412 echo '# dummy' > "$dirpart/$file" 14413 done 14414 done 14415} 14416 ;; 14417 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 14418 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 14419 esac ;; 14420 "libtool":C) 14421 14422 # See if we are running on zsh, and set the options which allow our 14423 # commands through without removal of \ escapes. 14424 if test -n "${ZSH_VERSION+set}" ; then 14425 setopt NO_GLOB_SUBST 14426 fi 14427 14428 cfgfile="${ofile}T" 14429 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14430 $RM "$cfgfile" 14431 14432 cat <<_LT_EOF >> "$cfgfile" 14433#! $SHELL 14434 14435# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14436# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14437# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14438# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14439# 14440# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14441# 2006, 2007, 2008 Free Software Foundation, Inc. 14442# Written by Gordon Matzigkeit, 1996 14443# 14444# This file is part of GNU Libtool. 14445# 14446# GNU Libtool is free software; you can redistribute it and/or 14447# modify it under the terms of the GNU General Public License as 14448# published by the Free Software Foundation; either version 2 of 14449# the License, or (at your option) any later version. 14450# 14451# As a special exception to the GNU General Public License, 14452# if you distribute this file as part of a program or library that 14453# is built using GNU Libtool, you may include this file under the 14454# same distribution terms that you use for the rest of that program. 14455# 14456# GNU Libtool is distributed in the hope that it will be useful, 14457# but WITHOUT ANY WARRANTY; without even the implied warranty of 14458# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14459# GNU General Public License for more details. 14460# 14461# You should have received a copy of the GNU General Public License 14462# along with GNU Libtool; see the file COPYING. If not, a copy 14463# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14464# obtained by writing to the Free Software Foundation, Inc., 14465# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14466 14467 14468# The names of the tagged configurations supported by this script. 14469available_tags="" 14470 14471# ### BEGIN LIBTOOL CONFIG 14472 14473# Whether or not to build static libraries. 14474build_old_libs=$enable_static 14475 14476# Which release of libtool.m4 was used? 14477macro_version=$macro_version 14478macro_revision=$macro_revision 14479 14480# Whether or not to build shared libraries. 14481build_libtool_libs=$enable_shared 14482 14483# What type of objects to build. 14484pic_mode=$pic_mode 14485 14486# Whether or not to optimize for fast installation. 14487fast_install=$enable_fast_install 14488 14489# The host system. 14490host_alias=$host_alias 14491host=$host 14492host_os=$host_os 14493 14494# The build system. 14495build_alias=$build_alias 14496build=$build 14497build_os=$build_os 14498 14499# A sed program that does not truncate output. 14500SED=$lt_SED 14501 14502# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14503Xsed="\$SED -e 1s/^X//" 14504 14505# A grep program that handles long lines. 14506GREP=$lt_GREP 14507 14508# An ERE matcher. 14509EGREP=$lt_EGREP 14510 14511# A literal string matcher. 14512FGREP=$lt_FGREP 14513 14514# A BSD- or MS-compatible name lister. 14515NM=$lt_NM 14516 14517# Whether we need soft or hard links. 14518LN_S=$lt_LN_S 14519 14520# What is the maximum length of a command? 14521max_cmd_len=$max_cmd_len 14522 14523# Object file suffix (normally "o"). 14524objext=$ac_objext 14525 14526# Executable file suffix (normally ""). 14527exeext=$exeext 14528 14529# whether the shell understands "unset". 14530lt_unset=$lt_unset 14531 14532# turn spaces into newlines. 14533SP2NL=$lt_lt_SP2NL 14534 14535# turn newlines into spaces. 14536NL2SP=$lt_lt_NL2SP 14537 14538# How to create reloadable object files. 14539reload_flag=$lt_reload_flag 14540reload_cmds=$lt_reload_cmds 14541 14542# An object symbol dumper. 14543OBJDUMP=$lt_OBJDUMP 14544 14545# Method to check whether dependent libraries are shared objects. 14546deplibs_check_method=$lt_deplibs_check_method 14547 14548# Command to use when deplibs_check_method == "file_magic". 14549file_magic_cmd=$lt_file_magic_cmd 14550 14551# The archiver. 14552AR=$lt_AR 14553AR_FLAGS=$lt_AR_FLAGS 14554 14555# A symbol stripping program. 14556STRIP=$lt_STRIP 14557 14558# Commands used to install an old-style archive. 14559RANLIB=$lt_RANLIB 14560old_postinstall_cmds=$lt_old_postinstall_cmds 14561old_postuninstall_cmds=$lt_old_postuninstall_cmds 14562 14563# A C compiler. 14564LTCC=$lt_CC 14565 14566# LTCC compiler flags. 14567LTCFLAGS=$lt_CFLAGS 14568 14569# Take the output of nm and produce a listing of raw symbols and C names. 14570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14571 14572# Transform the output of nm in a proper C declaration. 14573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14574 14575# Transform the output of nm in a C name address pair. 14576global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14577 14578# Transform the output of nm in a C name address pair when lib prefix is needed. 14579global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14580 14581# The name of the directory that contains temporary libtool files. 14582objdir=$objdir 14583 14584# Shell to use when invoking shell scripts. 14585SHELL=$lt_SHELL 14586 14587# An echo program that does not interpret backslashes. 14588ECHO=$lt_ECHO 14589 14590# Used to examine libraries when file_magic_cmd begins with "file". 14591MAGIC_CMD=$MAGIC_CMD 14592 14593# Must we lock files when doing compilation? 14594need_locks=$lt_need_locks 14595 14596# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14597DSYMUTIL=$lt_DSYMUTIL 14598 14599# Tool to change global to local symbols on Mac OS X. 14600NMEDIT=$lt_NMEDIT 14601 14602# Tool to manipulate fat objects and archives on Mac OS X. 14603LIPO=$lt_LIPO 14604 14605# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14606OTOOL=$lt_OTOOL 14607 14608# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14609OTOOL64=$lt_OTOOL64 14610 14611# Old archive suffix (normally "a"). 14612libext=$libext 14613 14614# Shared library suffix (normally ".so"). 14615shrext_cmds=$lt_shrext_cmds 14616 14617# The commands to extract the exported symbol list from a shared archive. 14618extract_expsyms_cmds=$lt_extract_expsyms_cmds 14619 14620# Variables whose values should be saved in libtool wrapper scripts and 14621# restored at link time. 14622variables_saved_for_relink=$lt_variables_saved_for_relink 14623 14624# Do we need the "lib" prefix for modules? 14625need_lib_prefix=$need_lib_prefix 14626 14627# Do we need a version for libraries? 14628need_version=$need_version 14629 14630# Library versioning type. 14631version_type=$version_type 14632 14633# Shared library runtime path variable. 14634runpath_var=$runpath_var 14635 14636# Shared library path variable. 14637shlibpath_var=$shlibpath_var 14638 14639# Is shlibpath searched before the hard-coded library search path? 14640shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14641 14642# Format of library name prefix. 14643libname_spec=$lt_libname_spec 14644 14645# List of archive names. First name is the real one, the rest are links. 14646# The last name is the one that the linker finds with -lNAME 14647library_names_spec=$lt_library_names_spec 14648 14649# The coded name of the library, if different from the real name. 14650soname_spec=$lt_soname_spec 14651 14652# Command to use after installation of a shared archive. 14653postinstall_cmds=$lt_postinstall_cmds 14654 14655# Command to use after uninstallation of a shared archive. 14656postuninstall_cmds=$lt_postuninstall_cmds 14657 14658# Commands used to finish a libtool library installation in a directory. 14659finish_cmds=$lt_finish_cmds 14660 14661# As "finish_cmds", except a single script fragment to be evaled but 14662# not shown. 14663finish_eval=$lt_finish_eval 14664 14665# Whether we should hardcode library paths into libraries. 14666hardcode_into_libs=$hardcode_into_libs 14667 14668# Compile-time system search path for libraries. 14669sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14670 14671# Run-time system search path for libraries. 14672sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14673 14674# Whether dlopen is supported. 14675dlopen_support=$enable_dlopen 14676 14677# Whether dlopen of programs is supported. 14678dlopen_self=$enable_dlopen_self 14679 14680# Whether dlopen of statically linked programs is supported. 14681dlopen_self_static=$enable_dlopen_self_static 14682 14683# Commands to strip libraries. 14684old_striplib=$lt_old_striplib 14685striplib=$lt_striplib 14686 14687 14688# The linker used to build libraries. 14689LD=$lt_LD 14690 14691# Commands used to build an old-style archive. 14692old_archive_cmds=$lt_old_archive_cmds 14693 14694# A language specific compiler. 14695CC=$lt_compiler 14696 14697# Is the compiler the GNU compiler? 14698with_gcc=$GCC 14699 14700# Compiler flag to turn off builtin functions. 14701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14702 14703# How to pass a linker flag through the compiler. 14704wl=$lt_lt_prog_compiler_wl 14705 14706# Additional compiler flags for building library objects. 14707pic_flag=$lt_lt_prog_compiler_pic 14708 14709# Compiler flag to prevent dynamic linking. 14710link_static_flag=$lt_lt_prog_compiler_static 14711 14712# Does compiler simultaneously support -c and -o options? 14713compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14714 14715# Whether or not to add -lc for building shared libraries. 14716build_libtool_need_lc=$archive_cmds_need_lc 14717 14718# Whether or not to disallow shared libs when runtime libs are static. 14719allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14720 14721# Compiler flag to allow reflexive dlopens. 14722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14723 14724# Compiler flag to generate shared objects directly from archives. 14725whole_archive_flag_spec=$lt_whole_archive_flag_spec 14726 14727# Whether the compiler copes with passing no objects directly. 14728compiler_needs_object=$lt_compiler_needs_object 14729 14730# Create an old-style archive from a shared archive. 14731old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14732 14733# Create a temporary old-style archive to link instead of a shared archive. 14734old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14735 14736# Commands used to build a shared archive. 14737archive_cmds=$lt_archive_cmds 14738archive_expsym_cmds=$lt_archive_expsym_cmds 14739 14740# Commands used to build a loadable module if different from building 14741# a shared archive. 14742module_cmds=$lt_module_cmds 14743module_expsym_cmds=$lt_module_expsym_cmds 14744 14745# Whether we are building with GNU ld or not. 14746with_gnu_ld=$lt_with_gnu_ld 14747 14748# Flag that allows shared libraries with undefined symbols to be built. 14749allow_undefined_flag=$lt_allow_undefined_flag 14750 14751# Flag that enforces no undefined symbols. 14752no_undefined_flag=$lt_no_undefined_flag 14753 14754# Flag to hardcode \$libdir into a binary during linking. 14755# This must work even if \$libdir does not exist 14756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14757 14758# If ld is used when linking, flag to hardcode \$libdir into a binary 14759# during linking. This must work even if \$libdir does not exist. 14760hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14761 14762# Whether we need a single "-rpath" flag with a separated argument. 14763hardcode_libdir_separator=$lt_hardcode_libdir_separator 14764 14765# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14766# DIR into the resulting binary. 14767hardcode_direct=$hardcode_direct 14768 14769# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14770# DIR into the resulting binary and the resulting library dependency is 14771# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14772# library is relocated. 14773hardcode_direct_absolute=$hardcode_direct_absolute 14774 14775# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14776# into the resulting binary. 14777hardcode_minus_L=$hardcode_minus_L 14778 14779# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14780# into the resulting binary. 14781hardcode_shlibpath_var=$hardcode_shlibpath_var 14782 14783# Set to "yes" if building a shared library automatically hardcodes DIR 14784# into the library and all subsequent libraries and executables linked 14785# against it. 14786hardcode_automatic=$hardcode_automatic 14787 14788# Set to yes if linker adds runtime paths of dependent libraries 14789# to runtime path list. 14790inherit_rpath=$inherit_rpath 14791 14792# Whether libtool must link a program against all its dependency libraries. 14793link_all_deplibs=$link_all_deplibs 14794 14795# Fix the shell variable \$srcfile for the compiler. 14796fix_srcfile_path=$lt_fix_srcfile_path 14797 14798# Set to "yes" if exported symbols are required. 14799always_export_symbols=$always_export_symbols 14800 14801# The commands to list exported symbols. 14802export_symbols_cmds=$lt_export_symbols_cmds 14803 14804# Symbols that should not be listed in the preloaded symbols. 14805exclude_expsyms=$lt_exclude_expsyms 14806 14807# Symbols that must always be exported. 14808include_expsyms=$lt_include_expsyms 14809 14810# Commands necessary for linking programs (against libraries) with templates. 14811prelink_cmds=$lt_prelink_cmds 14812 14813# Specify filename containing input files. 14814file_list_spec=$lt_file_list_spec 14815 14816# How to hardcode a shared library path into an executable. 14817hardcode_action=$hardcode_action 14818 14819# ### END LIBTOOL CONFIG 14820 14821_LT_EOF 14822 14823 case $host_os in 14824 aix3*) 14825 cat <<\_LT_EOF >> "$cfgfile" 14826# AIX sometimes has problems with the GCC collect2 program. For some 14827# reason, if we set the COLLECT_NAMES environment variable, the problems 14828# vanish in a puff of smoke. 14829if test "X${COLLECT_NAMES+set}" != Xset; then 14830 COLLECT_NAMES= 14831 export COLLECT_NAMES 14832fi 14833_LT_EOF 14834 ;; 14835 esac 14836 14837 14838ltmain="$ac_aux_dir/ltmain.sh" 14839 14840 14841 # We use sed instead of cat because bash on DJGPP gets confused if 14842 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14843 # text mode, it properly converts lines to CR/LF. This bash problem 14844 # is reportedly fixed, but why not run on old versions too? 14845 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14846 || (rm -f "$cfgfile"; exit 1) 14847 14848 case $xsi_shell in 14849 yes) 14850 cat << \_LT_EOF >> "$cfgfile" 14851 14852# func_dirname file append nondir_replacement 14853# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14854# otherwise set result to NONDIR_REPLACEMENT. 14855func_dirname () 14856{ 14857 case ${1} in 14858 */*) func_dirname_result="${1%/*}${2}" ;; 14859 * ) func_dirname_result="${3}" ;; 14860 esac 14861} 14862 14863# func_basename file 14864func_basename () 14865{ 14866 func_basename_result="${1##*/}" 14867} 14868 14869# func_dirname_and_basename file append nondir_replacement 14870# perform func_basename and func_dirname in a single function 14871# call: 14872# dirname: Compute the dirname of FILE. If nonempty, 14873# add APPEND to the result, otherwise set result 14874# to NONDIR_REPLACEMENT. 14875# value returned in "$func_dirname_result" 14876# basename: Compute filename of FILE. 14877# value retuned in "$func_basename_result" 14878# Implementation must be kept synchronized with func_dirname 14879# and func_basename. For efficiency, we do not delegate to 14880# those functions but instead duplicate the functionality here. 14881func_dirname_and_basename () 14882{ 14883 case ${1} in 14884 */*) func_dirname_result="${1%/*}${2}" ;; 14885 * ) func_dirname_result="${3}" ;; 14886 esac 14887 func_basename_result="${1##*/}" 14888} 14889 14890# func_stripname prefix suffix name 14891# strip PREFIX and SUFFIX off of NAME. 14892# PREFIX and SUFFIX must not contain globbing or regex special 14893# characters, hashes, percent signs, but SUFFIX may contain a leading 14894# dot (in which case that matches only a dot). 14895func_stripname () 14896{ 14897 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14898 # positional parameters, so assign one to ordinary parameter first. 14899 func_stripname_result=${3} 14900 func_stripname_result=${func_stripname_result#"${1}"} 14901 func_stripname_result=${func_stripname_result%"${2}"} 14902} 14903 14904# func_opt_split 14905func_opt_split () 14906{ 14907 func_opt_split_opt=${1%%=*} 14908 func_opt_split_arg=${1#*=} 14909} 14910 14911# func_lo2o object 14912func_lo2o () 14913{ 14914 case ${1} in 14915 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14916 *) func_lo2o_result=${1} ;; 14917 esac 14918} 14919 14920# func_xform libobj-or-source 14921func_xform () 14922{ 14923 func_xform_result=${1%.*}.lo 14924} 14925 14926# func_arith arithmetic-term... 14927func_arith () 14928{ 14929 func_arith_result=$(( $* )) 14930} 14931 14932# func_len string 14933# STRING may not start with a hyphen. 14934func_len () 14935{ 14936 func_len_result=${#1} 14937} 14938 14939_LT_EOF 14940 ;; 14941 *) # Bourne compatible functions. 14942 cat << \_LT_EOF >> "$cfgfile" 14943 14944# func_dirname file append nondir_replacement 14945# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14946# otherwise set result to NONDIR_REPLACEMENT. 14947func_dirname () 14948{ 14949 # Extract subdirectory from the argument. 14950 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14951 if test "X$func_dirname_result" = "X${1}"; then 14952 func_dirname_result="${3}" 14953 else 14954 func_dirname_result="$func_dirname_result${2}" 14955 fi 14956} 14957 14958# func_basename file 14959func_basename () 14960{ 14961 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14962} 14963 14964 14965# func_stripname prefix suffix name 14966# strip PREFIX and SUFFIX off of NAME. 14967# PREFIX and SUFFIX must not contain globbing or regex special 14968# characters, hashes, percent signs, but SUFFIX may contain a leading 14969# dot (in which case that matches only a dot). 14970# func_strip_suffix prefix name 14971func_stripname () 14972{ 14973 case ${2} in 14974 .*) func_stripname_result=`$ECHO "X${3}" \ 14975 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14976 *) func_stripname_result=`$ECHO "X${3}" \ 14977 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14978 esac 14979} 14980 14981# sed scripts: 14982my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14983my_sed_long_arg='1s/^-[^=]*=//' 14984 14985# func_opt_split 14986func_opt_split () 14987{ 14988 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14989 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14990} 14991 14992# func_lo2o object 14993func_lo2o () 14994{ 14995 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14996} 14997 14998# func_xform libobj-or-source 14999func_xform () 15000{ 15001 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15002} 15003 15004# func_arith arithmetic-term... 15005func_arith () 15006{ 15007 func_arith_result=`expr "$@"` 15008} 15009 15010# func_len string 15011# STRING may not start with a hyphen. 15012func_len () 15013{ 15014 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15015} 15016 15017_LT_EOF 15018esac 15019 15020case $lt_shell_append in 15021 yes) 15022 cat << \_LT_EOF >> "$cfgfile" 15023 15024# func_append var value 15025# Append VALUE to the end of shell variable VAR. 15026func_append () 15027{ 15028 eval "$1+=\$2" 15029} 15030_LT_EOF 15031 ;; 15032 *) 15033 cat << \_LT_EOF >> "$cfgfile" 15034 15035# func_append var value 15036# Append VALUE to the end of shell variable VAR. 15037func_append () 15038{ 15039 eval "$1=\$$1\$2" 15040} 15041 15042_LT_EOF 15043 ;; 15044 esac 15045 15046 15047 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15048 || (rm -f "$cfgfile"; exit 1) 15049 15050 mv -f "$cfgfile" "$ofile" || 15051 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15052 chmod +x "$ofile" 15053 15054 ;; 15055 "po/stamp-it":C) 15056 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then 15057 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 15058 fi 15059 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" 15060 >"po/stamp-it.tmp" 15061 sed '/^#/d 15062 s/^[[].*] *// 15063 /^[ ]*$/d 15064 '"s|^| $ac_top_srcdir/|" \ 15065 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" 15066 15067 sed '/^POTFILES =/,/[^\\]$/ { 15068 /^POTFILES =/!d 15069 r po/POTFILES 15070 } 15071 ' "po/Makefile.in" >"po/Makefile" 15072 rm -f "po/Makefile.tmp" 15073 mv "po/stamp-it.tmp" "po/stamp-it" 15074 ;; 15075 15076 esac 15077done # for ac_tag 15078 15079 15080as_fn_exit 0 15081_ACEOF 15082ac_clean_files=$ac_clean_files_save 15083 15084test $ac_write_fail = 0 || 15085 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15086 15087 15088# configure is writing to config.log, and then calls config.status. 15089# config.status does its own redirection, appending to config.log. 15090# Unfortunately, on DOS this fails, as config.log is still kept open 15091# by configure, so config.status won't be able to write to it; its 15092# output is simply discarded. So we exec the FD to /dev/null, 15093# effectively closing config.log, so it can be properly (re)opened and 15094# appended to by config.status. When coming back to configure, we 15095# need to make the FD available again. 15096if test "$no_create" != yes; then 15097 ac_cs_success=: 15098 ac_config_status_args= 15099 test "$silent" = yes && 15100 ac_config_status_args="$ac_config_status_args --quiet" 15101 exec 5>/dev/null 15102 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15103 exec 5>>config.log 15104 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15105 # would make configure fail if this is the last instruction. 15106 $ac_cs_success || as_fn_exit 1 15107fi 15108if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15110$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15111fi 15112 15113