1#! /bin/sh 2# From configure.ac Id: configure.ac,v 1.10 2003/06/05 02:48:13 rob Exp . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.65 for ID3 Tag 0.15.0b. 5# 6# Report bugs to <support@underbit.com>. 7# 8# 9# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 10# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 11# Inc. 12# 13# 14# This configure script is free software; the Free Software Foundation 15# gives unlimited permission to copy, distribute and modify it. 16## -------------------- ## 17## M4sh Initialization. ## 18## -------------------- ## 19 20# Be more Bourne compatible 21DUALCASE=1; export DUALCASE # for MKS sh 22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39as_nl=' 40' 41export as_nl 42# Printing a long string crashes Solaris 7 /usr/bin/printf. 43as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 46# Prefer a ksh shell builtin over an external printf program on Solaris, 47# but without wasting forks for bash or zsh. 48if test -z "$BASH_VERSION$ZSH_VERSION" \ 49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='print -r --' 51 as_echo_n='print -rn --' 52elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='printf %s\n' 54 as_echo_n='printf %s' 55else 56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 58 as_echo_n='/usr/ucb/echo -n' 59 else 60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 61 as_echo_n_body='eval 62 arg=$1; 63 case $arg in #( 64 *"$as_nl"*) 65 expr "X$arg" : "X\\(.*\\)$as_nl"; 66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 67 esac; 68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69 ' 70 export as_echo_n_body 71 as_echo_n='sh -c $as_echo_n_body as_echo' 72 fi 73 export as_echo_body 74 as_echo='sh -c $as_echo_body as_echo' 75fi 76 77# The user is always right. 78if test "${PATH_SEPARATOR+set}" != set; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# IFS 88# We need space, tab and new line, in precisely that order. Quoting is 89# there to prevent editors from complaining about space-tab. 90# (If _AS_PATH_WALK were called with IFS unset, it would disable word 91# splitting by setting IFS to empty value.) 92IFS=" "" $as_nl" 93 94# Find who we are. Look in the path if we contain no directory separator. 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 BASH_ENV=/dev/null 221 ENV=/dev/null 222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 223 export CONFIG_SHELL 224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 225fi 226 227 if test x$as_have_required = xno; then : 228 $as_echo "$0: This script requires a shell more modern than all" 229 $as_echo "$0: the shells that I found on your system." 230 if test x${ZSH_VERSION+set} = xset ; then 231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 232 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 233 else 234 $as_echo "$0: Please tell bug-autoconf@gnu.org and 235$0: support@underbit.com about your system, including any 236$0: error possibly output before this message. Then install 237$0: a modern shell, or manually run the script under such a 238$0: shell if you do have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533# Find the correct PATH separator. Usually this is `:', but 534# DJGPP uses `;' like DOS. 535if test "X${PATH_SEPARATOR+set}" != Xset; then 536 UNAME=${UNAME-`uname 2>/dev/null`} 537 case X$UNAME in 538 *-DOS) lt_cv_sys_path_separator=';' ;; 539 *) lt_cv_sys_path_separator=':' ;; 540 esac 541 PATH_SEPARATOR=$lt_cv_sys_path_separator 542fi 543 544 545# Check that we are running under the correct shell. 546SHELL=${CONFIG_SHELL-/bin/sh} 547 548case X$ECHO in 549X*--fallback-echo) 550 # Remove one level of quotation (which was required for Make). 551 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 552 ;; 553esac 554 555echo=${ECHO-echo} 556if test "X$1" = X--no-reexec; then 557 # Discard the --no-reexec flag, and continue. 558 shift 559elif test "X$1" = X--fallback-echo; then 560 # Avoid inline document here, it may be left over 561 : 562elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 563 # Yippee, $echo works! 564 : 565else 566 # Restart under the correct shell. 567 exec $SHELL "$0" --no-reexec ${1+"$@"} 568fi 569 570if test "X$1" = X--fallback-echo; then 571 # used as fallback echo 572 shift 573 cat <<EOF 574 575EOF 576 exit 0 577fi 578 579# The HP-UX ksh and POSIX shell print the target directory to stdout 580# if CDPATH is set. 581if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 582 583if test -z "$ECHO"; then 584if test "X${echo_test_string+set}" != Xset; then 585# find a string as large as possible, as long as the shell can cope with it 586 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 587 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 588 if (echo_test_string="`eval $cmd`") 2>/dev/null && 589 echo_test_string="`eval $cmd`" && 590 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 591 then 592 break 593 fi 594 done 595fi 596 597if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 598 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 599 test "X$echo_testing_string" = "X$echo_test_string"; then 600 : 601else 602 # The Solaris, AIX, and Digital Unix default echo programs unquote 603 # backslashes. This makes it impossible to quote backslashes using 604 # echo "$something" | sed 's/\\/\\\\/g' 605 # 606 # So, first we look for a working echo in the user's PATH. 607 608 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 609 for dir in $PATH /usr/ucb; do 610 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 611 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 echo="$dir/echo" 615 break 616 fi 617 done 618 IFS="$save_ifs" 619 620 if test "X$echo" = Xecho; then 621 # We didn't find a better echo, so look for alternatives. 622 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 # This shell has a builtin print -r that does the trick. 626 echo='print -r' 627 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 628 test "X$CONFIG_SHELL" != X/bin/ksh; then 629 # If we have ksh, try running configure again with it. 630 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 631 export ORIGINAL_CONFIG_SHELL 632 CONFIG_SHELL=/bin/ksh 633 export CONFIG_SHELL 634 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 635 else 636 # Try using printf. 637 echo='printf %s\n' 638 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 639 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 # Cool, printf works 642 : 643 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 644 test "X$echo_testing_string" = 'X\t' && 645 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 648 export CONFIG_SHELL 649 SHELL="$CONFIG_SHELL" 650 export SHELL 651 echo="$CONFIG_SHELL $0 --fallback-echo" 652 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 echo="$CONFIG_SHELL $0 --fallback-echo" 657 else 658 # maybe with a smaller string... 659 prev=: 660 661 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 662 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 663 then 664 break 665 fi 666 prev="$cmd" 667 done 668 669 if test "$prev" != 'sed 50q "$0"'; then 670 echo_test_string=`eval $prev` 671 export echo_test_string 672 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 673 else 674 # Oops. We lost completely, so just stick with echo. 675 echo=echo 676 fi 677 fi 678 fi 679 fi 680fi 681fi 682 683# Copy echo and quote the copy suitably for passing to libtool from 684# the Makefile, instead of quoting the original, which is used later. 685ECHO=$echo 686if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 687 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 688fi 689 690 691 692test -n "$DJDIR" || exec 7<&0 </dev/null 693exec 6>&1 694 695# Name of the host. 696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 697# so uname gets run too. 698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 699 700# 701# Initializations. 702# 703ac_default_prefix=/usr/local 704ac_clean_files= 705ac_config_libobj_dir=. 706LIBOBJS= 707cross_compiling=no 708subdirs= 709MFLAGS= 710MAKEFLAGS= 711 712# Identity of this package. 713PACKAGE_NAME='ID3 Tag' 714PACKAGE_TARNAME='libid3tag' 715PACKAGE_VERSION='0.15.0b' 716PACKAGE_STRING='ID3 Tag 0.15.0b' 717PACKAGE_BUGREPORT='support@underbit.com' 718PACKAGE_URL='' 719 720ac_unique_file="id3tag.h" 721# Factoring default headers for most tests. 722ac_includes_default="\ 723#include <stdio.h> 724#ifdef HAVE_SYS_TYPES_H 725# include <sys/types.h> 726#endif 727#ifdef HAVE_SYS_STAT_H 728# include <sys/stat.h> 729#endif 730#ifdef STDC_HEADERS 731# include <stdlib.h> 732# include <stddef.h> 733#else 734# ifdef HAVE_STDLIB_H 735# include <stdlib.h> 736# endif 737#endif 738#ifdef HAVE_STRING_H 739# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 740# include <memory.h> 741# endif 742# include <string.h> 743#endif 744#ifdef HAVE_STRINGS_H 745# include <strings.h> 746#endif 747#ifdef HAVE_INTTYPES_H 748# include <inttypes.h> 749#endif 750#ifdef HAVE_STDINT_H 751# include <stdint.h> 752#endif 753#ifdef HAVE_UNISTD_H 754# include <unistd.h> 755#endif" 756 757ac_subst_vars='LTLIBOBJS 758LIBOBJS 759DEBUG_FALSE 760DEBUG_TRUE 761LIBTOOL_DEPS 762LIBTOOL 763EGREP 764GREP 765CPP 766RANLIB 767ECHO 768LN_S 769am__fastdepCC_FALSE 770am__fastdepCC_TRUE 771CCDEPMODE 772AMDEPBACKSLASH 773AMDEP_FALSE 774AMDEP_TRUE 775am__quote 776am__include 777DEPDIR 778OBJEXT 779EXEEXT 780ac_ct_CC 781CPPFLAGS 782LDFLAGS 783CFLAGS 784CC 785host_os 786host_vendor 787host_cpu 788host 789build_os 790build_vendor 791build_cpu 792build 793am__leading_dot 794SET_MAKE 795AWK 796INSTALL_STRIP_PROGRAM 797STRIP 798install_sh 799AMTAR 800MAKEINFO 801AUTOHEADER 802AUTOMAKE 803AUTOCONF 804ACLOCAL 805VERSION 806PACKAGE 807CYGPATH_W 808INSTALL_DATA 809INSTALL_SCRIPT 810INSTALL_PROGRAM 811target_alias 812host_alias 813build_alias 814LIBS 815ECHO_T 816ECHO_N 817ECHO_C 818DEFS 819mandir 820localedir 821libdir 822psdir 823pdfdir 824dvidir 825htmldir 826infodir 827docdir 828oldincludedir 829includedir 830localstatedir 831sharedstatedir 832sysconfdir 833datadir 834datarootdir 835libexecdir 836sbindir 837bindir 838program_transform_name 839prefix 840exec_prefix 841PACKAGE_URL 842PACKAGE_BUGREPORT 843PACKAGE_STRING 844PACKAGE_VERSION 845PACKAGE_TARNAME 846PACKAGE_NAME 847PATH_SEPARATOR 848SHELL' 849ac_subst_files='' 850ac_user_opts=' 851enable_option_checking 852enable_dependency_tracking 853enable_shared 854enable_static 855enable_fast_install 856with_gnu_ld 857enable_libtool_lock 858with_pic 859enable_profiling 860enable_debugging 861' 862 ac_precious_vars='build_alias 863host_alias 864target_alias 865CC 866CFLAGS 867LDFLAGS 868LIBS 869CPPFLAGS 870CPP' 871 872 873# Initialize some variables set by options. 874ac_init_help= 875ac_init_version=false 876ac_unrecognized_opts= 877ac_unrecognized_sep= 878# The variables have the same names as the options, with 879# dashes changed to underlines. 880cache_file=/dev/null 881exec_prefix=NONE 882no_create= 883no_recursion= 884prefix=NONE 885program_prefix=NONE 886program_suffix=NONE 887program_transform_name=s,x,x, 888silent= 889site= 890srcdir= 891verbose= 892x_includes=NONE 893x_libraries=NONE 894 895# Installation directory options. 896# These are left unexpanded so users can "make install exec_prefix=/foo" 897# and all the variables that are supposed to be based on exec_prefix 898# by default will actually change. 899# Use braces instead of parens because sh, perl, etc. also accept them. 900# (The list follows the same order as the GNU Coding Standards.) 901bindir='${exec_prefix}/bin' 902sbindir='${exec_prefix}/sbin' 903libexecdir='${exec_prefix}/libexec' 904datarootdir='${prefix}/share' 905datadir='${datarootdir}' 906sysconfdir='${prefix}/etc' 907sharedstatedir='${prefix}/com' 908localstatedir='${prefix}/var' 909includedir='${prefix}/include' 910oldincludedir='/usr/include' 911docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 912infodir='${datarootdir}/info' 913htmldir='${docdir}' 914dvidir='${docdir}' 915pdfdir='${docdir}' 916psdir='${docdir}' 917libdir='${exec_prefix}/lib' 918localedir='${datarootdir}/locale' 919mandir='${datarootdir}/man' 920 921ac_prev= 922ac_dashdash= 923for ac_option 924do 925 # If the previous option needs an argument, assign it. 926 if test -n "$ac_prev"; then 927 eval $ac_prev=\$ac_option 928 ac_prev= 929 continue 930 fi 931 932 case $ac_option in 933 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 934 *) ac_optarg=yes ;; 935 esac 936 937 # Accept the important Cygnus configure options, so we can diagnose typos. 938 939 case $ac_dashdash$ac_option in 940 --) 941 ac_dashdash=yes ;; 942 943 -bindir | --bindir | --bindi | --bind | --bin | --bi) 944 ac_prev=bindir ;; 945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 946 bindir=$ac_optarg ;; 947 948 -build | --build | --buil | --bui | --bu) 949 ac_prev=build_alias ;; 950 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 951 build_alias=$ac_optarg ;; 952 953 -cache-file | --cache-file | --cache-fil | --cache-fi \ 954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 955 ac_prev=cache_file ;; 956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 958 cache_file=$ac_optarg ;; 959 960 --config-cache | -C) 961 cache_file=config.cache ;; 962 963 -datadir | --datadir | --datadi | --datad) 964 ac_prev=datadir ;; 965 -datadir=* | --datadir=* | --datadi=* | --datad=*) 966 datadir=$ac_optarg ;; 967 968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 969 | --dataroo | --dataro | --datar) 970 ac_prev=datarootdir ;; 971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 973 datarootdir=$ac_optarg ;; 974 975 -disable-* | --disable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error "invalid feature name: $ac_useropt" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984"enable_$ac_useropt" 985"*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=no ;; 990 991 -docdir | --docdir | --docdi | --doc | --do) 992 ac_prev=docdir ;; 993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 994 docdir=$ac_optarg ;; 995 996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 997 ac_prev=dvidir ;; 998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 999 dvidir=$ac_optarg ;; 1000 1001 -enable-* | --enable-*) 1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1003 # Reject names that are not valid shell variable names. 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1005 as_fn_error "invalid feature name: $ac_useropt" 1006 ac_useropt_orig=$ac_useropt 1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1008 case $ac_user_opts in 1009 *" 1010"enable_$ac_useropt" 1011"*) ;; 1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1013 ac_unrecognized_sep=', ';; 1014 esac 1015 eval enable_$ac_useropt=\$ac_optarg ;; 1016 1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1019 | --exec | --exe | --ex) 1020 ac_prev=exec_prefix ;; 1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1023 | --exec=* | --exe=* | --ex=*) 1024 exec_prefix=$ac_optarg ;; 1025 1026 -gas | --gas | --ga | --g) 1027 # Obsolete; use --with-gas. 1028 with_gas=yes ;; 1029 1030 -help | --help | --hel | --he | -h) 1031 ac_init_help=long ;; 1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1033 ac_init_help=recursive ;; 1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1035 ac_init_help=short ;; 1036 1037 -host | --host | --hos | --ho) 1038 ac_prev=host_alias ;; 1039 -host=* | --host=* | --hos=* | --ho=*) 1040 host_alias=$ac_optarg ;; 1041 1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1043 ac_prev=htmldir ;; 1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1045 | --ht=*) 1046 htmldir=$ac_optarg ;; 1047 1048 -includedir | --includedir | --includedi | --included | --include \ 1049 | --includ | --inclu | --incl | --inc) 1050 ac_prev=includedir ;; 1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1052 | --includ=* | --inclu=* | --incl=* | --inc=*) 1053 includedir=$ac_optarg ;; 1054 1055 -infodir | --infodir | --infodi | --infod | --info | --inf) 1056 ac_prev=infodir ;; 1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1058 infodir=$ac_optarg ;; 1059 1060 -libdir | --libdir | --libdi | --libd) 1061 ac_prev=libdir ;; 1062 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1063 libdir=$ac_optarg ;; 1064 1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1066 | --libexe | --libex | --libe) 1067 ac_prev=libexecdir ;; 1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1069 | --libexe=* | --libex=* | --libe=*) 1070 libexecdir=$ac_optarg ;; 1071 1072 -localedir | --localedir | --localedi | --localed | --locale) 1073 ac_prev=localedir ;; 1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1075 localedir=$ac_optarg ;; 1076 1077 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1078 | --localstate | --localstat | --localsta | --localst | --locals) 1079 ac_prev=localstatedir ;; 1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1082 localstatedir=$ac_optarg ;; 1083 1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1085 ac_prev=mandir ;; 1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1087 mandir=$ac_optarg ;; 1088 1089 -nfp | --nfp | --nf) 1090 # Obsolete; use --without-fp. 1091 with_fp=no ;; 1092 1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1094 | --no-cr | --no-c | -n) 1095 no_create=yes ;; 1096 1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1099 no_recursion=yes ;; 1100 1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1103 | --oldin | --oldi | --old | --ol | --o) 1104 ac_prev=oldincludedir ;; 1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1108 oldincludedir=$ac_optarg ;; 1109 1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1111 ac_prev=prefix ;; 1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1113 prefix=$ac_optarg ;; 1114 1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1116 | --program-pre | --program-pr | --program-p) 1117 ac_prev=program_prefix ;; 1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1120 program_prefix=$ac_optarg ;; 1121 1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1123 | --program-suf | --program-su | --program-s) 1124 ac_prev=program_suffix ;; 1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1127 program_suffix=$ac_optarg ;; 1128 1129 -program-transform-name | --program-transform-name \ 1130 | --program-transform-nam | --program-transform-na \ 1131 | --program-transform-n | --program-transform- \ 1132 | --program-transform | --program-transfor \ 1133 | --program-transfo | --program-transf \ 1134 | --program-trans | --program-tran \ 1135 | --progr-tra | --program-tr | --program-t) 1136 ac_prev=program_transform_name ;; 1137 -program-transform-name=* | --program-transform-name=* \ 1138 | --program-transform-nam=* | --program-transform-na=* \ 1139 | --program-transform-n=* | --program-transform-=* \ 1140 | --program-transform=* | --program-transfor=* \ 1141 | --program-transfo=* | --program-transf=* \ 1142 | --program-trans=* | --program-tran=* \ 1143 | --progr-tra=* | --program-tr=* | --program-t=*) 1144 program_transform_name=$ac_optarg ;; 1145 1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1147 ac_prev=pdfdir ;; 1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1149 pdfdir=$ac_optarg ;; 1150 1151 -psdir | --psdir | --psdi | --psd | --ps) 1152 ac_prev=psdir ;; 1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1154 psdir=$ac_optarg ;; 1155 1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1157 | -silent | --silent | --silen | --sile | --sil) 1158 silent=yes ;; 1159 1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1161 ac_prev=sbindir ;; 1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1163 | --sbi=* | --sb=*) 1164 sbindir=$ac_optarg ;; 1165 1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1168 | --sharedst | --shareds | --shared | --share | --shar \ 1169 | --sha | --sh) 1170 ac_prev=sharedstatedir ;; 1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1174 | --sha=* | --sh=*) 1175 sharedstatedir=$ac_optarg ;; 1176 1177 -site | --site | --sit) 1178 ac_prev=site ;; 1179 -site=* | --site=* | --sit=*) 1180 site=$ac_optarg ;; 1181 1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1183 ac_prev=srcdir ;; 1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1185 srcdir=$ac_optarg ;; 1186 1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1188 | --syscon | --sysco | --sysc | --sys | --sy) 1189 ac_prev=sysconfdir ;; 1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1192 sysconfdir=$ac_optarg ;; 1193 1194 -target | --target | --targe | --targ | --tar | --ta | --t) 1195 ac_prev=target_alias ;; 1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1197 target_alias=$ac_optarg ;; 1198 1199 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1200 verbose=yes ;; 1201 1202 -version | --version | --versio | --versi | --vers | -V) 1203 ac_init_version=: ;; 1204 1205 -with-* | --with-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error "invalid package name: $ac_useropt" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214"with_$ac_useropt" 1215"*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=\$ac_optarg ;; 1220 1221 -without-* | --without-*) 1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1223 # Reject names that are not valid shell variable names. 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225 as_fn_error "invalid package name: $ac_useropt" 1226 ac_useropt_orig=$ac_useropt 1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1228 case $ac_user_opts in 1229 *" 1230"with_$ac_useropt" 1231"*) ;; 1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1233 ac_unrecognized_sep=', ';; 1234 esac 1235 eval with_$ac_useropt=no ;; 1236 1237 --x) 1238 # Obsolete; use --with-x. 1239 with_x=yes ;; 1240 1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1242 | --x-incl | --x-inc | --x-in | --x-i) 1243 ac_prev=x_includes ;; 1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1246 x_includes=$ac_optarg ;; 1247 1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1250 ac_prev=x_libraries ;; 1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1253 x_libraries=$ac_optarg ;; 1254 1255 -*) as_fn_error "unrecognized option: \`$ac_option' 1256Try \`$0 --help' for more information." 1257 ;; 1258 1259 *=*) 1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261 # Reject names that are not valid shell variable names. 1262 case $ac_envvar in #( 1263 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1264 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1265 esac 1266 eval $ac_envvar=\$ac_optarg 1267 export $ac_envvar ;; 1268 1269 *) 1270 # FIXME: should be removed in autoconf 3.0. 1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1275 ;; 1276 1277 esac 1278done 1279 1280if test -n "$ac_prev"; then 1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1282 as_fn_error "missing argument to $ac_option" 1283fi 1284 1285if test -n "$ac_unrecognized_opts"; then 1286 case $enable_option_checking in 1287 no) ;; 1288 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1290 esac 1291fi 1292 1293# Check all directory arguments for consistency. 1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1295 datadir sysconfdir sharedstatedir localstatedir includedir \ 1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1297 libdir localedir mandir 1298do 1299 eval ac_val=\$$ac_var 1300 # Remove trailing slashes. 1301 case $ac_val in 1302 */ ) 1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1304 eval $ac_var=\$ac_val;; 1305 esac 1306 # Be sure to have absolute directory names. 1307 case $ac_val in 1308 [\\/$]* | ?:[\\/]* ) continue;; 1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1310 esac 1311 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1312done 1313 1314# There might be people who depend on the old broken behavior: `$host' 1315# used to hold the argument of --host etc. 1316# FIXME: To remove some day. 1317build=$build_alias 1318host=$host_alias 1319target=$target_alias 1320 1321# FIXME: To remove some day. 1322if test "x$host_alias" != x; then 1323 if test "x$build_alias" = x; then 1324 cross_compiling=maybe 1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1326 If a cross compiler is detected then cross compile mode will be used." >&2 1327 elif test "x$build_alias" != "x$host_alias"; then 1328 cross_compiling=yes 1329 fi 1330fi 1331 1332ac_tool_prefix= 1333test -n "$host_alias" && ac_tool_prefix=$host_alias- 1334 1335test "$silent" = yes && exec 6>/dev/null 1336 1337 1338ac_pwd=`pwd` && test -n "$ac_pwd" && 1339ac_ls_di=`ls -di .` && 1340ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1341 as_fn_error "working directory cannot be determined" 1342test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1343 as_fn_error "pwd does not report name of working directory" 1344 1345 1346# Find the source files, if location was not specified. 1347if test -z "$srcdir"; then 1348 ac_srcdir_defaulted=yes 1349 # Try the directory containing this script, then the parent directory. 1350 ac_confdir=`$as_dirname -- "$as_myself" || 1351$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1352 X"$as_myself" : 'X\(//\)[^/]' \| \ 1353 X"$as_myself" : 'X\(//\)$' \| \ 1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1355$as_echo X"$as_myself" | 1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)[^/].*/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\/\)$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\).*/{ 1369 s//\1/ 1370 q 1371 } 1372 s/.*/./; q'` 1373 srcdir=$ac_confdir 1374 if test ! -r "$srcdir/$ac_unique_file"; then 1375 srcdir=.. 1376 fi 1377else 1378 ac_srcdir_defaulted=no 1379fi 1380if test ! -r "$srcdir/$ac_unique_file"; then 1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1382 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1383fi 1384ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1385ac_abs_confdir=`( 1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1387 pwd)` 1388# When building in place, set srcdir=. 1389if test "$ac_abs_confdir" = "$ac_pwd"; then 1390 srcdir=. 1391fi 1392# Remove unnecessary trailing slashes from srcdir. 1393# Double slashes in file names in object file debugging info 1394# mess up M-x gdb in Emacs. 1395case $srcdir in 1396*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1397esac 1398for ac_var in $ac_precious_vars; do 1399 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_env_${ac_var}_value=\$${ac_var} 1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1403done 1404 1405# 1406# Report the --help message. 1407# 1408if test "$ac_init_help" = "long"; then 1409 # Omit some internal or obsolete options to make the list less imposing. 1410 # This message is too long to be a string in the A/UX 3.1 sh. 1411 cat <<_ACEOF 1412\`configure' configures ID3 Tag 0.15.0b to adapt to many kinds of systems. 1413 1414Usage: $0 [OPTION]... [VAR=VALUE]... 1415 1416To assign environment variables (e.g., CC, CFLAGS...), specify them as 1417VAR=VALUE. See below for descriptions of some of the useful variables. 1418 1419Defaults for the options are specified in brackets. 1420 1421Configuration: 1422 -h, --help display this help and exit 1423 --help=short display options specific to this package 1424 --help=recursive display the short help of all the included packages 1425 -V, --version display version information and exit 1426 -q, --quiet, --silent do not print \`checking...' messages 1427 --cache-file=FILE cache test results in FILE [disabled] 1428 -C, --config-cache alias for \`--cache-file=config.cache' 1429 -n, --no-create do not create output files 1430 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1431 1432Installation directories: 1433 --prefix=PREFIX install architecture-independent files in PREFIX 1434 [$ac_default_prefix] 1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1436 [PREFIX] 1437 1438By default, \`make install' will install all the files in 1439\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1440an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1441for instance \`--prefix=\$HOME'. 1442 1443For better control, use the options below. 1444 1445Fine tuning of the installation directories: 1446 --bindir=DIR user executables [EPREFIX/bin] 1447 --sbindir=DIR system admin executables [EPREFIX/sbin] 1448 --libexecdir=DIR program executables [EPREFIX/libexec] 1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1452 --libdir=DIR object code libraries [EPREFIX/lib] 1453 --includedir=DIR C header files [PREFIX/include] 1454 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1457 --infodir=DIR info documentation [DATAROOTDIR/info] 1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1459 --mandir=DIR man documentation [DATAROOTDIR/man] 1460 --docdir=DIR documentation root [DATAROOTDIR/doc/libid3tag] 1461 --htmldir=DIR html documentation [DOCDIR] 1462 --dvidir=DIR dvi documentation [DOCDIR] 1463 --pdfdir=DIR pdf documentation [DOCDIR] 1464 --psdir=DIR ps documentation [DOCDIR] 1465_ACEOF 1466 1467 cat <<\_ACEOF 1468 1469Program names: 1470 --program-prefix=PREFIX prepend PREFIX to installed program names 1471 --program-suffix=SUFFIX append SUFFIX to installed program names 1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1473 1474System types: 1475 --build=BUILD configure for building on BUILD [guessed] 1476 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1477_ACEOF 1478fi 1479 1480if test -n "$ac_init_help"; then 1481 case $ac_init_help in 1482 short | recursive ) echo "Configuration of ID3 Tag 0.15.0b:";; 1483 esac 1484 cat <<\_ACEOF 1485 1486Optional Features: 1487 --disable-option-checking ignore unrecognized --enable/--with options 1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1490 --disable-dependency-tracking Speeds up one-time builds 1491 --enable-dependency-tracking Do not reject slow dependency extractors 1492 --enable-shared=PKGS build shared libraries default=yes 1493 --enable-static=PKGS build static libraries default=yes 1494 --enable-fast-install=PKGS optimize for fast installation default=yes 1495 --disable-libtool-lock avoid locking (might break parallel builds) 1496 --enable-profiling generate profiling code 1497 --enable-debugging enable diagnostic debugging support 1498 --disable-debugging do not enable debugging and use more optimization 1499 1500Optional Packages: 1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1503 --with-gnu-ld assume the C compiler uses GNU ld default=no 1504 --with-pic try to use only PIC/non-PIC objects default=use both 1505 1506Some influential environment variables: 1507 CC C compiler command 1508 CFLAGS C compiler flags 1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1510 nonstandard directory <lib dir> 1511 LIBS libraries to pass to the linker, e.g. -l<library> 1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1513 you have headers in a nonstandard directory <include dir> 1514 CPP C preprocessor 1515 1516Use these variables to override the choices made by `configure' or to help 1517it to find libraries and programs with nonstandard names/locations. 1518 1519Report bugs to <support@underbit.com>. 1520_ACEOF 1521ac_status=$? 1522fi 1523 1524if test "$ac_init_help" = "recursive"; then 1525 # If there are subdirs, report their specific --help. 1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1527 test -d "$ac_dir" || 1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1529 continue 1530 ac_builddir=. 1531 1532case "$ac_dir" in 1533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1534*) 1535 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1536 # A ".." for each directory in $ac_dir_suffix. 1537 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1538 case $ac_top_builddir_sub in 1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1541 esac ;; 1542esac 1543ac_abs_top_builddir=$ac_pwd 1544ac_abs_builddir=$ac_pwd$ac_dir_suffix 1545# for backward compatibility: 1546ac_top_builddir=$ac_top_build_prefix 1547 1548case $srcdir in 1549 .) # We are building in place. 1550 ac_srcdir=. 1551 ac_top_srcdir=$ac_top_builddir_sub 1552 ac_abs_top_srcdir=$ac_pwd ;; 1553 [\\/]* | ?:[\\/]* ) # Absolute name. 1554 ac_srcdir=$srcdir$ac_dir_suffix; 1555 ac_top_srcdir=$srcdir 1556 ac_abs_top_srcdir=$srcdir ;; 1557 *) # Relative name. 1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1559 ac_top_srcdir=$ac_top_build_prefix$srcdir 1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1561esac 1562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1563 1564 cd "$ac_dir" || { ac_status=$?; continue; } 1565 # Check for guested configure. 1566 if test -f "$ac_srcdir/configure.gnu"; then 1567 echo && 1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1569 elif test -f "$ac_srcdir/configure"; then 1570 echo && 1571 $SHELL "$ac_srcdir/configure" --help=recursive 1572 else 1573 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1574 fi || ac_status=$? 1575 cd "$ac_pwd" || { ac_status=$?; break; } 1576 done 1577fi 1578 1579test -n "$ac_init_help" && exit $ac_status 1580if $ac_init_version; then 1581 cat <<\_ACEOF 1582ID3 Tag configure 0.15.0b 1583generated by GNU Autoconf 2.65 1584 1585Copyright (C) 2009 Free Software Foundation, Inc. 1586This configure script is free software; the Free Software Foundation 1587gives unlimited permission to copy, distribute and modify it. 1588_ACEOF 1589 exit 1590fi 1591 1592## ------------------------ ## 1593## Autoconf initialization. ## 1594## ------------------------ ## 1595 1596# ac_fn_c_try_compile LINENO 1597# -------------------------- 1598# Try to compile conftest.$ac_ext, and return whether this succeeded. 1599ac_fn_c_try_compile () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 rm -f conftest.$ac_objext 1603 if { { ac_try="$ac_compile" 1604case "(($ac_try" in 1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1606 *) ac_try_echo=$ac_try;; 1607esac 1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1609$as_echo "$ac_try_echo"; } >&5 1610 (eval "$ac_compile") 2>conftest.err 1611 ac_status=$? 1612 if test -s conftest.err; then 1613 grep -v '^ *+' conftest.err >conftest.er1 1614 cat conftest.er1 >&5 1615 mv -f conftest.er1 conftest.err 1616 fi 1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1618 test $ac_status = 0; } && { 1619 test -z "$ac_c_werror_flag" || 1620 test ! -s conftest.err 1621 } && test -s conftest.$ac_objext; then : 1622 ac_retval=0 1623else 1624 $as_echo "$as_me: failed program was:" >&5 1625sed 's/^/| /' conftest.$ac_ext >&5 1626 1627 ac_retval=1 1628fi 1629 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1630 as_fn_set_status $ac_retval 1631 1632} # ac_fn_c_try_compile 1633 1634# ac_fn_c_try_link LINENO 1635# ----------------------- 1636# Try to link conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_link () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 rm -f conftest.$ac_objext conftest$ac_exeext 1641 if { { ac_try="$ac_link" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_link") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { 1657 test -z "$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 } && test -s conftest$ac_exeext && { 1660 test "$cross_compiling" = yes || 1661 $as_test_x conftest$ac_exeext 1662 }; then : 1663 ac_retval=0 1664else 1665 $as_echo "$as_me: failed program was:" >&5 1666sed 's/^/| /' conftest.$ac_ext >&5 1667 1668 ac_retval=1 1669fi 1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1672 # interfere with the next link command; also delete a directory that is 1673 # left behind by Apple's compiler. We do this before executing the actions. 1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1676 as_fn_set_status $ac_retval 1677 1678} # ac_fn_c_try_link 1679 1680# ac_fn_c_check_func LINENO FUNC VAR 1681# ---------------------------------- 1682# Tests whether FUNC exists, setting the cache variable VAR accordingly 1683ac_fn_c_check_func () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1687$as_echo_n "checking for $2... " >&6; } 1688if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1689 $as_echo_n "(cached) " >&6 1690else 1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1692/* end confdefs.h. */ 1693/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1694 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1695#define $2 innocuous_$2 1696 1697/* System header to define __stub macros and hopefully few prototypes, 1698 which can conflict with char $2 (); below. 1699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1700 <limits.h> exists even on freestanding compilers. */ 1701 1702#ifdef __STDC__ 1703# include <limits.h> 1704#else 1705# include <assert.h> 1706#endif 1707 1708#undef $2 1709 1710/* Override any GCC internal prototype to avoid an error. 1711 Use char because int might match the return type of a GCC 1712 builtin and then its argument prototype would still apply. */ 1713#ifdef __cplusplus 1714extern "C" 1715#endif 1716char $2 (); 1717/* The GNU C library defines this for functions which it implements 1718 to always fail with ENOSYS. Some functions are actually named 1719 something starting with __ and the normal name is an alias. */ 1720#if defined __stub_$2 || defined __stub___$2 1721choke me 1722#endif 1723 1724int 1725main () 1726{ 1727return $2 (); 1728 ; 1729 return 0; 1730} 1731_ACEOF 1732if ac_fn_c_try_link "$LINENO"; then : 1733 eval "$3=yes" 1734else 1735 eval "$3=no" 1736fi 1737rm -f core conftest.err conftest.$ac_objext \ 1738 conftest$ac_exeext conftest.$ac_ext 1739fi 1740eval ac_res=\$$3 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1742$as_echo "$ac_res" >&6; } 1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1744 1745} # ac_fn_c_check_func 1746 1747# ac_fn_c_try_cpp LINENO 1748# ---------------------- 1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1750ac_fn_c_try_cpp () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if { { ac_try="$ac_cpp conftest.$ac_ext" 1754case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1761 ac_status=$? 1762 if test -s conftest.err; then 1763 grep -v '^ *+' conftest.err >conftest.er1 1764 cat conftest.er1 >&5 1765 mv -f conftest.er1 conftest.err 1766 fi 1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; } >/dev/null && { 1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1770 test ! -s conftest.err 1771 }; then : 1772 ac_retval=0 1773else 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=1 1778fi 1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1780 as_fn_set_status $ac_retval 1781 1782} # ac_fn_c_try_cpp 1783 1784# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1785# ------------------------------------------------------- 1786# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1787# the include files in INCLUDES and setting the cache variable VAR 1788# accordingly. 1789ac_fn_c_check_header_mongrel () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794$as_echo_n "checking for $2... " >&6; } 1795if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1796 $as_echo_n "(cached) " >&6 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801else 1802 # Is the header compilable? 1803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1804$as_echo_n "checking $2 usability... " >&6; } 1805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1806/* end confdefs.h. */ 1807$4 1808#include <$2> 1809_ACEOF 1810if ac_fn_c_try_compile "$LINENO"; then : 1811 ac_header_compiler=yes 1812else 1813 ac_header_compiler=no 1814fi 1815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1817$as_echo "$ac_header_compiler" >&6; } 1818 1819# Is the header present? 1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1821$as_echo_n "checking $2 presence... " >&6; } 1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824#include <$2> 1825_ACEOF 1826if ac_fn_c_try_cpp "$LINENO"; then : 1827 ac_header_preproc=yes 1828else 1829 ac_header_preproc=no 1830fi 1831rm -f conftest.err conftest.$ac_ext 1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1833$as_echo "$ac_header_preproc" >&6; } 1834 1835# So? What about this header? 1836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1837 yes:no: ) 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1839$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1841$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1842 ;; 1843 no:yes:* ) 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1845$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1847$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1849$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1851$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1853$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1854( cat <<\_ASBOX 1855## ----------------------------------- ## 1856## Report this to support@underbit.com ## 1857## ----------------------------------- ## 1858_ASBOX 1859 ) | sed "s/^/$as_me: WARNING: /" >&2 1860 ;; 1861esac 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1863$as_echo_n "checking for $2... " >&6; } 1864if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1865 $as_echo_n "(cached) " >&6 1866else 1867 eval "$3=\$ac_header_compiler" 1868fi 1869eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871$as_echo "$ac_res" >&6; } 1872fi 1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1874 1875} # ac_fn_c_check_header_mongrel 1876 1877# ac_fn_c_try_run LINENO 1878# ---------------------- 1879# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1880# that executables *can* be run. 1881ac_fn_c_try_run () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 if { { ac_try="$ac_link" 1885case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888esac 1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890$as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_link") 2>&5 1892 ac_status=$? 1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1894 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1895 { { case "(($ac_try" in 1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1897 *) ac_try_echo=$ac_try;; 1898esac 1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1900$as_echo "$ac_try_echo"; } >&5 1901 (eval "$ac_try") 2>&5 1902 ac_status=$? 1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1904 test $ac_status = 0; }; }; then : 1905 ac_retval=0 1906else 1907 $as_echo "$as_me: program exited with status $ac_status" >&5 1908 $as_echo "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=$ac_status 1912fi 1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1915 as_fn_set_status $ac_retval 1916 1917} # ac_fn_c_try_run 1918 1919# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1920# ------------------------------------------------------- 1921# Tests whether HEADER exists and can be compiled using the include files in 1922# INCLUDES, setting the cache variable VAR accordingly. 1923ac_fn_c_check_header_compile () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927$as_echo_n "checking for $2... " >&6; } 1928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1929 $as_echo_n "(cached) " >&6 1930else 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$4 1934#include <$2> 1935_ACEOF 1936if ac_fn_c_try_compile "$LINENO"; then : 1937 eval "$3=yes" 1938else 1939 eval "$3=no" 1940fi 1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1942fi 1943eval ac_res=\$$3 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1945$as_echo "$ac_res" >&6; } 1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1947 1948} # ac_fn_c_check_header_compile 1949cat >config.log <<_ACEOF 1950This file contains any messages produced by compilers while 1951running configure, to aid debugging if configure makes a mistake. 1952 1953It was created by ID3 Tag $as_me 0.15.0b, which was 1954generated by GNU Autoconf 2.65. Invocation command line was 1955 1956 $ $0 $@ 1957 1958_ACEOF 1959exec 5>>config.log 1960{ 1961cat <<_ASUNAME 1962## --------- ## 1963## Platform. ## 1964## --------- ## 1965 1966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1967uname -m = `(uname -m) 2>/dev/null || echo unknown` 1968uname -r = `(uname -r) 2>/dev/null || echo unknown` 1969uname -s = `(uname -s) 2>/dev/null || echo unknown` 1970uname -v = `(uname -v) 2>/dev/null || echo unknown` 1971 1972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1974 1975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1978/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1982 1983_ASUNAME 1984 1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1986for as_dir in $PATH 1987do 1988 IFS=$as_save_IFS 1989 test -z "$as_dir" && as_dir=. 1990 $as_echo "PATH: $as_dir" 1991 done 1992IFS=$as_save_IFS 1993 1994} >&5 1995 1996cat >&5 <<_ACEOF 1997 1998 1999## ----------- ## 2000## Core tests. ## 2001## ----------- ## 2002 2003_ACEOF 2004 2005 2006# Keep a trace of the command line. 2007# Strip out --no-create and --no-recursion so they do not pile up. 2008# Strip out --silent because we don't want to record it for future runs. 2009# Also quote any args containing shell meta-characters. 2010# Make two passes to allow for proper duplicate-argument suppression. 2011ac_configure_args= 2012ac_configure_args0= 2013ac_configure_args1= 2014ac_must_keep_next=false 2015for ac_pass in 1 2 2016do 2017 for ac_arg 2018 do 2019 case $ac_arg in 2020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2022 | -silent | --silent | --silen | --sile | --sil) 2023 continue ;; 2024 *\'*) 2025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2026 esac 2027 case $ac_pass in 2028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2029 2) 2030 as_fn_append ac_configure_args1 " '$ac_arg'" 2031 if test $ac_must_keep_next = true; then 2032 ac_must_keep_next=false # Got value, back to normal. 2033 else 2034 case $ac_arg in 2035 *=* | --config-cache | -C | -disable-* | --disable-* \ 2036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2038 | -with-* | --with-* | -without-* | --without-* | --x) 2039 case "$ac_configure_args0 " in 2040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2041 esac 2042 ;; 2043 -* ) ac_must_keep_next=true ;; 2044 esac 2045 fi 2046 as_fn_append ac_configure_args " '$ac_arg'" 2047 ;; 2048 esac 2049 done 2050done 2051{ ac_configure_args0=; unset ac_configure_args0;} 2052{ ac_configure_args1=; unset ac_configure_args1;} 2053 2054# When interrupted or exit'd, cleanup temporary files, and complete 2055# config.log. We remove comments because anyway the quotes in there 2056# would cause problems or look ugly. 2057# WARNING: Use '\'' to represent an apostrophe within the trap. 2058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2059trap 'exit_status=$? 2060 # Save into config.log some information that might help in debugging. 2061 { 2062 echo 2063 2064 cat <<\_ASBOX 2065## ---------------- ## 2066## Cache variables. ## 2067## ---------------- ## 2068_ASBOX 2069 echo 2070 # The following way of writing the cache mishandles newlines in values, 2071( 2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2073 eval ac_val=\$$ac_var 2074 case $ac_val in #( 2075 *${as_nl}*) 2076 case $ac_var in #( 2077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2079 esac 2080 case $ac_var in #( 2081 _ | IFS | as_nl) ;; #( 2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2083 *) { eval $ac_var=; unset $ac_var;} ;; 2084 esac ;; 2085 esac 2086 done 2087 (set) 2>&1 | 2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2089 *${as_nl}ac_space=\ *) 2090 sed -n \ 2091 "s/'\''/'\''\\\\'\'''\''/g; 2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2093 ;; #( 2094 *) 2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2096 ;; 2097 esac | 2098 sort 2099) 2100 echo 2101 2102 cat <<\_ASBOX 2103## ----------------- ## 2104## Output variables. ## 2105## ----------------- ## 2106_ASBOX 2107 echo 2108 for ac_var in $ac_subst_vars 2109 do 2110 eval ac_val=\$$ac_var 2111 case $ac_val in 2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2113 esac 2114 $as_echo "$ac_var='\''$ac_val'\''" 2115 done | sort 2116 echo 2117 2118 if test -n "$ac_subst_files"; then 2119 cat <<\_ASBOX 2120## ------------------- ## 2121## File substitutions. ## 2122## ------------------- ## 2123_ASBOX 2124 echo 2125 for ac_var in $ac_subst_files 2126 do 2127 eval ac_val=\$$ac_var 2128 case $ac_val in 2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2130 esac 2131 $as_echo "$ac_var='\''$ac_val'\''" 2132 done | sort 2133 echo 2134 fi 2135 2136 if test -s confdefs.h; then 2137 cat <<\_ASBOX 2138## ----------- ## 2139## confdefs.h. ## 2140## ----------- ## 2141_ASBOX 2142 echo 2143 cat confdefs.h 2144 echo 2145 fi 2146 test "$ac_signal" != 0 && 2147 $as_echo "$as_me: caught signal $ac_signal" 2148 $as_echo "$as_me: exit $exit_status" 2149 } >&5 2150 rm -f core *.core core.conftest.* && 2151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2152 exit $exit_status 2153' 0 2154for ac_signal in 1 2 13 15; do 2155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2156done 2157ac_signal=0 2158 2159# confdefs.h avoids OS command line length limits that DEFS can exceed. 2160rm -f -r conftest* confdefs.h 2161 2162$as_echo "/* confdefs.h */" > confdefs.h 2163 2164# Predefined preprocessor variables. 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_NAME "$PACKAGE_NAME" 2168_ACEOF 2169 2170cat >>confdefs.h <<_ACEOF 2171#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2172_ACEOF 2173 2174cat >>confdefs.h <<_ACEOF 2175#define PACKAGE_VERSION "$PACKAGE_VERSION" 2176_ACEOF 2177 2178cat >>confdefs.h <<_ACEOF 2179#define PACKAGE_STRING "$PACKAGE_STRING" 2180_ACEOF 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2184_ACEOF 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_URL "$PACKAGE_URL" 2188_ACEOF 2189 2190 2191# Let the site file select an alternate cache file if it wants to. 2192# Prefer an explicitly selected file to automatically selected ones. 2193ac_site_file1=NONE 2194ac_site_file2=NONE 2195if test -n "$CONFIG_SITE"; then 2196 ac_site_file1=$CONFIG_SITE 2197elif test "x$prefix" != xNONE; then 2198 ac_site_file1=$prefix/share/config.site 2199 ac_site_file2=$prefix/etc/config.site 2200else 2201 ac_site_file1=$ac_default_prefix/share/config.site 2202 ac_site_file2=$ac_default_prefix/etc/config.site 2203fi 2204for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2205do 2206 test "x$ac_site_file" = xNONE && continue 2207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2209$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2210 sed 's/^/| /' "$ac_site_file" >&5 2211 . "$ac_site_file" 2212 fi 2213done 2214 2215if test -r "$cache_file"; then 2216 # Some versions of bash will fail to source /dev/null (special files 2217 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2220$as_echo "$as_me: loading cache $cache_file" >&6;} 2221 case $cache_file in 2222 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2223 *) . "./$cache_file";; 2224 esac 2225 fi 2226else 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2228$as_echo "$as_me: creating cache $cache_file" >&6;} 2229 >$cache_file 2230fi 2231 2232# Check that the precious variables saved in the cache have kept the same 2233# value. 2234ac_cache_corrupted=false 2235for ac_var in $ac_precious_vars; do 2236 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2237 eval ac_new_set=\$ac_env_${ac_var}_set 2238 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2239 eval ac_new_val=\$ac_env_${ac_var}_value 2240 case $ac_old_set,$ac_new_set in 2241 set,) 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2243$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2244 ac_cache_corrupted=: ;; 2245 ,set) 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2247$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2248 ac_cache_corrupted=: ;; 2249 ,);; 2250 *) 2251 if test "x$ac_old_val" != "x$ac_new_val"; then 2252 # differences in whitespace do not lead to failure. 2253 ac_old_val_w=`echo x $ac_old_val` 2254 ac_new_val_w=`echo x $ac_new_val` 2255 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2257$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2258 ac_cache_corrupted=: 2259 else 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2261$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2262 eval $ac_var=\$ac_old_val 2263 fi 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2265$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2267$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2268 fi;; 2269 esac 2270 # Pass precious variables to config.status. 2271 if test "$ac_new_set" = set; then 2272 case $ac_new_val in 2273 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2274 *) ac_arg=$ac_var=$ac_new_val ;; 2275 esac 2276 case " $ac_configure_args " in 2277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2278 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2279 esac 2280 fi 2281done 2282if $ac_cache_corrupted; then 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2286$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2287 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2288fi 2289## -------------------- ## 2290## Main body of script. ## 2291## -------------------- ## 2292 2293ac_ext=c 2294ac_cpp='$CPP $CPPFLAGS' 2295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2297ac_compiler_gnu=$ac_cv_c_compiler_gnu 2298 2299 2300 2301 2302 2303 2304am__api_version="1.7" 2305ac_aux_dir= 2306for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2307 for ac_t in install-sh install.sh shtool; do 2308 if test -f "$ac_dir/$ac_t"; then 2309 ac_aux_dir=$ac_dir 2310 ac_install_sh="$ac_aux_dir/$ac_t -c" 2311 break 2 2312 fi 2313 done 2314done 2315if test -z "$ac_aux_dir"; then 2316 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2317fi 2318 2319# These three variables are undocumented and unsupported, 2320# and are intended to be withdrawn in a future Autoconf release. 2321# They can cause serious problems if a builder's source tree is in a directory 2322# whose full name contains unusual characters. 2323ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2324ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2325ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2326 2327 2328# Find a good install program. We prefer a C program (faster), 2329# so one script is as good as another. But avoid the broken or 2330# incompatible versions: 2331# SysV /etc/install, /usr/sbin/install 2332# SunOS /usr/etc/install 2333# IRIX /sbin/install 2334# AIX /bin/install 2335# AmigaOS /C/install, which installs bootblocks on floppy discs 2336# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2337# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2338# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2339# OS/2's system install, which has a completely different semantic 2340# ./install, which can be erroneously created by make from ./install.sh. 2341# Reject install programs that cannot install multiple files. 2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2343$as_echo_n "checking for a BSD-compatible install... " >&6; } 2344if test -z "$INSTALL"; then 2345if test "${ac_cv_path_install+set}" = set; then : 2346 $as_echo_n "(cached) " >&6 2347else 2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2349for as_dir in $PATH 2350do 2351 IFS=$as_save_IFS 2352 test -z "$as_dir" && as_dir=. 2353 # Account for people who put trailing slashes in PATH elements. 2354case $as_dir/ in #(( 2355 ./ | .// | /[cC]/* | \ 2356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2357 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2358 /usr/ucb/* ) ;; 2359 *) 2360 # OSF1 and SCO ODT 3.0 have their own names for install. 2361 # Don't use installbsd from OSF since it installs stuff as root 2362 # by default. 2363 for ac_prog in ginstall scoinst install; do 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2366 if test $ac_prog = install && 2367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2368 # AIX install. It has an incompatible calling convention. 2369 : 2370 elif test $ac_prog = install && 2371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2372 # program-specific install script used by HP pwplus--don't use. 2373 : 2374 else 2375 rm -rf conftest.one conftest.two conftest.dir 2376 echo one > conftest.one 2377 echo two > conftest.two 2378 mkdir conftest.dir 2379 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2380 test -s conftest.one && test -s conftest.two && 2381 test -s conftest.dir/conftest.one && 2382 test -s conftest.dir/conftest.two 2383 then 2384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2385 break 3 2386 fi 2387 fi 2388 fi 2389 done 2390 done 2391 ;; 2392esac 2393 2394 done 2395IFS=$as_save_IFS 2396 2397rm -rf conftest.one conftest.two conftest.dir 2398 2399fi 2400 if test "${ac_cv_path_install+set}" = set; then 2401 INSTALL=$ac_cv_path_install 2402 else 2403 # As a last resort, use the slow shell script. Don't cache a 2404 # value for INSTALL within a source directory, because that will 2405 # break other packages using the cache if that directory is 2406 # removed, or if the value is a relative name. 2407 INSTALL=$ac_install_sh 2408 fi 2409fi 2410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2411$as_echo "$INSTALL" >&6; } 2412 2413# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2414# It thinks the first close brace ends the variable substitution. 2415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2416 2417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2418 2419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2420 2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2422$as_echo_n "checking whether build environment is sane... " >&6; } 2423# Just in case 2424sleep 1 2425echo timestamp > conftest.file 2426# Do `set' in a subshell so we don't clobber the current shell's 2427# arguments. Must try -L first in case configure is actually a 2428# symlink; some systems play weird games with the mod time of symlinks 2429# (eg FreeBSD returns the mod time of the symlink's containing 2430# directory). 2431if ( 2432 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2433 if test "$*" = "X"; then 2434 # -L didn't work. 2435 set X `ls -t $srcdir/configure conftest.file` 2436 fi 2437 rm -f conftest.file 2438 if test "$*" != "X $srcdir/configure conftest.file" \ 2439 && test "$*" != "X conftest.file $srcdir/configure"; then 2440 2441 # If neither matched, then we have a broken ls. This can happen 2442 # if, for instance, CONFIG_SHELL is bash and it inherits a 2443 # broken ls alias from the environment. This has actually 2444 # happened. Such a system could not be considered "sane". 2445 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2446alias in your environment" "$LINENO" 5 2447 fi 2448 2449 test "$2" = conftest.file 2450 ) 2451then 2452 # Ok. 2453 : 2454else 2455 as_fn_error "newly created file is older than distributed files! 2456Check your system clock" "$LINENO" 5 2457fi 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2459$as_echo "yes" >&6; } 2460test "$program_prefix" != NONE && 2461 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2462# Use a double $ so make ignores it. 2463test "$program_suffix" != NONE && 2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2465# Double any \ or $. 2466# By default was `s,x,x', remove it if useless. 2467ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2468program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2469 2470 2471# expand $ac_aux_dir to an absolute path 2472am_aux_dir=`cd $ac_aux_dir && pwd` 2473 2474test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2475# Use eval to expand $SHELL 2476if eval "$MISSING --run true"; then 2477 am_missing_run="$MISSING --run " 2478else 2479 am_missing_run= 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2481$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2482fi 2483 2484for ac_prog in gawk mawk nawk awk 2485do 2486 # Extract the first word of "$ac_prog", so it can be a program name with args. 2487set dummy $ac_prog; ac_word=$2 2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2489$as_echo_n "checking for $ac_word... " >&6; } 2490if test "${ac_cv_prog_AWK+set}" = set; then : 2491 $as_echo_n "(cached) " >&6 2492else 2493 if test -n "$AWK"; then 2494 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2495else 2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_exec_ext in '' $ac_executable_extensions; do 2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2503 ac_cv_prog_AWK="$ac_prog" 2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2505 break 2 2506 fi 2507done 2508 done 2509IFS=$as_save_IFS 2510 2511fi 2512fi 2513AWK=$ac_cv_prog_AWK 2514if test -n "$AWK"; then 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2516$as_echo "$AWK" >&6; } 2517else 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2519$as_echo "no" >&6; } 2520fi 2521 2522 2523 test -n "$AWK" && break 2524done 2525 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2527$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2528set x ${MAKE-make} 2529ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2530if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2531 $as_echo_n "(cached) " >&6 2532else 2533 cat >conftest.make <<\_ACEOF 2534SHELL = /bin/sh 2535all: 2536 @echo '@@@%%%=$(MAKE)=@@@%%%' 2537_ACEOF 2538# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2539case `${MAKE-make} -f conftest.make 2>/dev/null` in 2540 *@@@%%%=?*=@@@%%%*) 2541 eval ac_cv_prog_make_${ac_make}_set=yes;; 2542 *) 2543 eval ac_cv_prog_make_${ac_make}_set=no;; 2544esac 2545rm -f conftest.make 2546fi 2547if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2549$as_echo "yes" >&6; } 2550 SET_MAKE= 2551else 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2553$as_echo "no" >&6; } 2554 SET_MAKE="MAKE=${MAKE-make}" 2555fi 2556 2557rm -rf .tst 2>/dev/null 2558mkdir .tst 2>/dev/null 2559if test -d .tst; then 2560 am__leading_dot=. 2561else 2562 am__leading_dot=_ 2563fi 2564rmdir .tst 2>/dev/null 2565 2566 # test to see if srcdir already configured 2567if test "`cd $srcdir && pwd`" != "`pwd`" && 2568 test -f $srcdir/config.status; then 2569 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2570fi 2571 2572# test whether we have cygpath 2573if test -z "$CYGPATH_W"; then 2574 if (cygpath --version) >/dev/null 2>/dev/null; then 2575 CYGPATH_W='cygpath -w' 2576 else 2577 CYGPATH_W=echo 2578 fi 2579fi 2580 2581 2582# Define the identity of the package. 2583 PACKAGE='libid3tag' 2584 VERSION='0.15.0b' 2585 2586 2587cat >>confdefs.h <<_ACEOF 2588#define PACKAGE "$PACKAGE" 2589_ACEOF 2590 2591 2592cat >>confdefs.h <<_ACEOF 2593#define VERSION "$VERSION" 2594_ACEOF 2595 2596# Some tools Automake needs. 2597 2598ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2599 2600 2601AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2602 2603 2604AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2605 2606 2607AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2608 2609 2610MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2611 2612 2613AMTAR=${AMTAR-"${am_missing_run}tar"} 2614 2615install_sh=${install_sh-"$am_aux_dir/install-sh"} 2616 2617# Installed binaries are usually stripped using `strip' when the user 2618# run `make install-strip'. However `strip' might not be the right 2619# tool to use in cross-compilation environments, therefore Automake 2620# will honor the `STRIP' environment variable to overrule this program. 2621if test "$cross_compiling" != no; then 2622 if test -n "$ac_tool_prefix"; then 2623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2624set dummy ${ac_tool_prefix}strip; ac_word=$2 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2626$as_echo_n "checking for $ac_word... " >&6; } 2627if test "${ac_cv_prog_STRIP+set}" = set; then : 2628 $as_echo_n "(cached) " >&6 2629else 2630 if test -n "$STRIP"; then 2631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2632else 2633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2634for as_dir in $PATH 2635do 2636 IFS=$as_save_IFS 2637 test -z "$as_dir" && as_dir=. 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2640 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2642 break 2 2643 fi 2644done 2645 done 2646IFS=$as_save_IFS 2647 2648fi 2649fi 2650STRIP=$ac_cv_prog_STRIP 2651if test -n "$STRIP"; then 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2653$as_echo "$STRIP" >&6; } 2654else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2656$as_echo "no" >&6; } 2657fi 2658 2659 2660fi 2661if test -z "$ac_cv_prog_STRIP"; then 2662 ac_ct_STRIP=$STRIP 2663 # Extract the first word of "strip", so it can be a program name with args. 2664set dummy strip; ac_word=$2 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2666$as_echo_n "checking for $ac_word... " >&6; } 2667if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2668 $as_echo_n "(cached) " >&6 2669else 2670 if test -n "$ac_ct_STRIP"; then 2671 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2672else 2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674for as_dir in $PATH 2675do 2676 IFS=$as_save_IFS 2677 test -z "$as_dir" && as_dir=. 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2680 ac_cv_prog_ac_ct_STRIP="strip" 2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2682 break 2 2683 fi 2684done 2685 done 2686IFS=$as_save_IFS 2687 2688fi 2689fi 2690ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2691if test -n "$ac_ct_STRIP"; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2693$as_echo "$ac_ct_STRIP" >&6; } 2694else 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2696$as_echo "no" >&6; } 2697fi 2698 2699 if test "x$ac_ct_STRIP" = x; then 2700 STRIP=":" 2701 else 2702 case $cross_compiling:$ac_tool_warned in 2703yes:) 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2706ac_tool_warned=yes ;; 2707esac 2708 STRIP=$ac_ct_STRIP 2709 fi 2710else 2711 STRIP="$ac_cv_prog_STRIP" 2712fi 2713 2714fi 2715INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2716 2717# We need awk for the "check" target. The system "awk" is bad on 2718# some platforms. 2719 2720 2721 2722 2723ac_config_headers="$ac_config_headers config.h" 2724 2725 2726 2727# Make sure we can run config.sub. 2728$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2729 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2730 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2732$as_echo_n "checking build system type... " >&6; } 2733if test "${ac_cv_build+set}" = set; then : 2734 $as_echo_n "(cached) " >&6 2735else 2736 ac_build_alias=$build_alias 2737test "x$ac_build_alias" = x && 2738 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2739test "x$ac_build_alias" = x && 2740 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2741ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2742 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2743 2744fi 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2746$as_echo "$ac_cv_build" >&6; } 2747case $ac_cv_build in 2748*-*-*) ;; 2749*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2750esac 2751build=$ac_cv_build 2752ac_save_IFS=$IFS; IFS='-' 2753set x $ac_cv_build 2754shift 2755build_cpu=$1 2756build_vendor=$2 2757shift; shift 2758# Remember, the first character of IFS is used to create $*, 2759# except with old shells: 2760build_os=$* 2761IFS=$ac_save_IFS 2762case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2763 2764 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2766$as_echo_n "checking host system type... " >&6; } 2767if test "${ac_cv_host+set}" = set; then : 2768 $as_echo_n "(cached) " >&6 2769else 2770 if test "x$host_alias" = x; then 2771 ac_cv_host=$ac_cv_build 2772else 2773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2774 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2775fi 2776 2777fi 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2779$as_echo "$ac_cv_host" >&6; } 2780case $ac_cv_host in 2781*-*-*) ;; 2782*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2783esac 2784host=$ac_cv_host 2785ac_save_IFS=$IFS; IFS='-' 2786set x $ac_cv_host 2787shift 2788host_cpu=$1 2789host_vendor=$2 2790shift; shift 2791# Remember, the first character of IFS is used to create $*, 2792# except with old shells: 2793host_os=$* 2794IFS=$ac_save_IFS 2795case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2796 2797 2798 2799 2800ac_ext=c 2801ac_cpp='$CPP $CPPFLAGS' 2802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2804ac_compiler_gnu=$ac_cv_c_compiler_gnu 2805if test -n "$ac_tool_prefix"; then 2806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2807set dummy ${ac_tool_prefix}gcc; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if test "${ac_cv_prog_CC+set}" = set; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2823 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833CC=$ac_cv_prog_CC 2834if test -n "$CC"; then 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2836$as_echo "$CC" >&6; } 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840fi 2841 2842 2843fi 2844if test -z "$ac_cv_prog_CC"; then 2845 ac_ct_CC=$CC 2846 # Extract the first word of "gcc", so it can be a program name with args. 2847set dummy gcc; ac_word=$2 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$ac_ct_CC"; then 2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2855else 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2863 ac_cv_prog_ac_ct_CC="gcc" 2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873ac_ct_CC=$ac_cv_prog_ac_ct_CC 2874if test -n "$ac_ct_CC"; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2876$as_echo "$ac_ct_CC" >&6; } 2877else 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879$as_echo "no" >&6; } 2880fi 2881 2882 if test "x$ac_ct_CC" = x; then 2883 CC="" 2884 else 2885 case $cross_compiling:$ac_tool_warned in 2886yes:) 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2889ac_tool_warned=yes ;; 2890esac 2891 CC=$ac_ct_CC 2892 fi 2893else 2894 CC="$ac_cv_prog_CC" 2895fi 2896 2897if test -z "$CC"; then 2898 if test -n "$ac_tool_prefix"; then 2899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2900set dummy ${ac_tool_prefix}cc; ac_word=$2 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2902$as_echo_n "checking for $ac_word... " >&6; } 2903if test "${ac_cv_prog_CC+set}" = set; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 if test -n "$CC"; then 2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2916 ac_cv_prog_CC="${ac_tool_prefix}cc" 2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920done 2921 done 2922IFS=$as_save_IFS 2923 2924fi 2925fi 2926CC=$ac_cv_prog_CC 2927if test -n "$CC"; then 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2929$as_echo "$CC" >&6; } 2930else 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932$as_echo "no" >&6; } 2933fi 2934 2935 2936 fi 2937fi 2938if test -z "$CC"; then 2939 # Extract the first word of "cc", so it can be a program name with args. 2940set dummy cc; ac_word=$2 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2942$as_echo_n "checking for $ac_word... " >&6; } 2943if test "${ac_cv_prog_CC+set}" = set; then : 2944 $as_echo_n "(cached) " >&6 2945else 2946 if test -n "$CC"; then 2947 ac_cv_prog_CC="$CC" # Let the user override the test. 2948else 2949 ac_prog_rejected=no 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2958 ac_prog_rejected=yes 2959 continue 2960 fi 2961 ac_cv_prog_CC="cc" 2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2963 break 2 2964 fi 2965done 2966 done 2967IFS=$as_save_IFS 2968 2969if test $ac_prog_rejected = yes; then 2970 # We found a bogon in the path, so make sure we never use it. 2971 set dummy $ac_cv_prog_CC 2972 shift 2973 if test $# != 0; then 2974 # We chose a different compiler from the bogus one. 2975 # However, it has the same basename, so the bogon will be chosen 2976 # first if we set CC to just the basename; use the full file name. 2977 shift 2978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2979 fi 2980fi 2981fi 2982fi 2983CC=$ac_cv_prog_CC 2984if test -n "$CC"; then 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2986$as_echo "$CC" >&6; } 2987else 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989$as_echo "no" >&6; } 2990fi 2991 2992 2993fi 2994if test -z "$CC"; then 2995 if test -n "$ac_tool_prefix"; then 2996 for ac_prog in cl.exe 2997 do 2998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2999set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3001$as_echo_n "checking for $ac_word... " >&6; } 3002if test "${ac_cv_prog_CC+set}" = set; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 if test -n "$CC"; then 3006 ac_cv_prog_CC="$CC" # Let the user override the test. 3007else 3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3009for as_dir in $PATH 3010do 3011 IFS=$as_save_IFS 3012 test -z "$as_dir" && as_dir=. 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019done 3020 done 3021IFS=$as_save_IFS 3022 3023fi 3024fi 3025CC=$ac_cv_prog_CC 3026if test -n "$CC"; then 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3028$as_echo "$CC" >&6; } 3029else 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032fi 3033 3034 3035 test -n "$CC" && break 3036 done 3037fi 3038if test -z "$CC"; then 3039 ac_ct_CC=$CC 3040 for ac_prog in cl.exe 3041do 3042 # Extract the first word of "$ac_prog", so it can be a program name with args. 3043set dummy $ac_prog; ac_word=$2 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045$as_echo_n "checking for $ac_word... " >&6; } 3046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 if test -n "$ac_ct_CC"; then 3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3051else 3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3053for as_dir in $PATH 3054do 3055 IFS=$as_save_IFS 3056 test -z "$as_dir" && as_dir=. 3057 for ac_exec_ext in '' $ac_executable_extensions; do 3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3059 ac_cv_prog_ac_ct_CC="$ac_prog" 3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3061 break 2 3062 fi 3063done 3064 done 3065IFS=$as_save_IFS 3066 3067fi 3068fi 3069ac_ct_CC=$ac_cv_prog_ac_ct_CC 3070if test -n "$ac_ct_CC"; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3072$as_echo "$ac_ct_CC" >&6; } 3073else 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3075$as_echo "no" >&6; } 3076fi 3077 3078 3079 test -n "$ac_ct_CC" && break 3080done 3081 3082 if test "x$ac_ct_CC" = x; then 3083 CC="" 3084 else 3085 case $cross_compiling:$ac_tool_warned in 3086yes:) 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3089ac_tool_warned=yes ;; 3090esac 3091 CC=$ac_ct_CC 3092 fi 3093fi 3094 3095fi 3096 3097 3098test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3100as_fn_error "no acceptable C compiler found in \$PATH 3101See \`config.log' for more details." "$LINENO" 5; } 3102 3103# Provide some information about the compiler. 3104$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3105set X $ac_compile 3106ac_compiler=$2 3107for ac_option in --version -v -V -qversion; do 3108 { { ac_try="$ac_compiler $ac_option >&5" 3109case "(($ac_try" in 3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3111 *) ac_try_echo=$ac_try;; 3112esac 3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3114$as_echo "$ac_try_echo"; } >&5 3115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3116 ac_status=$? 3117 if test -s conftest.err; then 3118 sed '10a\ 3119... rest of stderr output deleted ... 3120 10q' conftest.err >conftest.er1 3121 cat conftest.er1 >&5 3122 fi 3123 rm -f conftest.er1 conftest.err 3124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3125 test $ac_status = 0; } 3126done 3127 3128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3129/* end confdefs.h. */ 3130 3131int 3132main () 3133{ 3134 3135 ; 3136 return 0; 3137} 3138_ACEOF 3139ac_clean_files_save=$ac_clean_files 3140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3141# Try to create an executable without -o first, disregard a.out. 3142# It will help us diagnose broken compilers, and finding out an intuition 3143# of exeext. 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3145$as_echo_n "checking whether the C compiler works... " >&6; } 3146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3147 3148# The possible output files: 3149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3150 3151ac_rmfiles= 3152for ac_file in $ac_files 3153do 3154 case $ac_file in 3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3156 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3157 esac 3158done 3159rm -f $ac_rmfiles 3160 3161if { { ac_try="$ac_link_default" 3162case "(($ac_try" in 3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3164 *) ac_try_echo=$ac_try;; 3165esac 3166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3167$as_echo "$ac_try_echo"; } >&5 3168 (eval "$ac_link_default") 2>&5 3169 ac_status=$? 3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3171 test $ac_status = 0; }; then : 3172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3174# in a Makefile. We should not override ac_cv_exeext if it was cached, 3175# so that the user can short-circuit this test for compilers unknown to 3176# Autoconf. 3177for ac_file in $ac_files '' 3178do 3179 test -f "$ac_file" || continue 3180 case $ac_file in 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3182 ;; 3183 [ab].out ) 3184 # We found the default executable, but exeext='' is most 3185 # certainly right. 3186 break;; 3187 *.* ) 3188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3189 then :; else 3190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3191 fi 3192 # We set ac_cv_exeext here because the later test for it is not 3193 # safe: cross compilers may not add the suffix if given an `-o' 3194 # argument, so we may need to know it at that point already. 3195 # Even if this section looks crufty: it has the advantage of 3196 # actually working. 3197 break;; 3198 * ) 3199 break;; 3200 esac 3201done 3202test "$ac_cv_exeext" = no && ac_cv_exeext= 3203 3204else 3205 ac_file='' 3206fi 3207if test -z "$ac_file"; then : 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209$as_echo "no" >&6; } 3210$as_echo "$as_me: failed program was:" >&5 3211sed 's/^/| /' conftest.$ac_ext >&5 3212 3213{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3215{ as_fn_set_status 77 3216as_fn_error "C compiler cannot create executables 3217See \`config.log' for more details." "$LINENO" 5; }; } 3218else 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3220$as_echo "yes" >&6; } 3221fi 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3223$as_echo_n "checking for C compiler default output file name... " >&6; } 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3225$as_echo "$ac_file" >&6; } 3226ac_exeext=$ac_cv_exeext 3227 3228rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3229ac_clean_files=$ac_clean_files_save 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3231$as_echo_n "checking for suffix of executables... " >&6; } 3232if { { ac_try="$ac_link" 3233case "(($ac_try" in 3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 *) ac_try_echo=$ac_try;; 3236esac 3237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3238$as_echo "$ac_try_echo"; } >&5 3239 (eval "$ac_link") 2>&5 3240 ac_status=$? 3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3242 test $ac_status = 0; }; then : 3243 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3244# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3245# work properly (i.e., refer to `conftest.exe'), while it won't with 3246# `rm'. 3247for ac_file in conftest.exe conftest conftest.*; do 3248 test -f "$ac_file" || continue 3249 case $ac_file in 3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3252 break;; 3253 * ) break;; 3254 esac 3255done 3256else 3257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3259as_fn_error "cannot compute suffix of executables: cannot compile and link 3260See \`config.log' for more details." "$LINENO" 5; } 3261fi 3262rm -f conftest conftest$ac_cv_exeext 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3264$as_echo "$ac_cv_exeext" >&6; } 3265 3266rm -f conftest.$ac_ext 3267EXEEXT=$ac_cv_exeext 3268ac_exeext=$EXEEXT 3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3270/* end confdefs.h. */ 3271#include <stdio.h> 3272int 3273main () 3274{ 3275FILE *f = fopen ("conftest.out", "w"); 3276 return ferror (f) || fclose (f) != 0; 3277 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282ac_clean_files="$ac_clean_files conftest.out" 3283# Check that the compiler produces executables we can run. If not, either 3284# the compiler is broken, or we cross compile. 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3286$as_echo_n "checking whether we are cross compiling... " >&6; } 3287if test "$cross_compiling" != yes; then 3288 { { ac_try="$ac_link" 3289case "(($ac_try" in 3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3291 *) ac_try_echo=$ac_try;; 3292esac 3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3294$as_echo "$ac_try_echo"; } >&5 3295 (eval "$ac_link") 2>&5 3296 ac_status=$? 3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3298 test $ac_status = 0; } 3299 if { ac_try='./conftest$ac_cv_exeext' 3300 { { case "(($ac_try" in 3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3302 *) ac_try_echo=$ac_try;; 3303esac 3304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3305$as_echo "$ac_try_echo"; } >&5 3306 (eval "$ac_try") 2>&5 3307 ac_status=$? 3308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3309 test $ac_status = 0; }; }; then 3310 cross_compiling=no 3311 else 3312 if test "$cross_compiling" = maybe; then 3313 cross_compiling=yes 3314 else 3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3317as_fn_error "cannot run C compiled programs. 3318If you meant to cross compile, use \`--host'. 3319See \`config.log' for more details." "$LINENO" 5; } 3320 fi 3321 fi 3322fi 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3324$as_echo "$cross_compiling" >&6; } 3325 3326rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3327ac_clean_files=$ac_clean_files_save 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3329$as_echo_n "checking for suffix of object files... " >&6; } 3330if test "${ac_cv_objext+set}" = set; then : 3331 $as_echo_n "(cached) " >&6 3332else 3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3334/* end confdefs.h. */ 3335 3336int 3337main () 3338{ 3339 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344rm -f conftest.o conftest.obj 3345if { { ac_try="$ac_compile" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3351$as_echo "$ac_try_echo"; } >&5 3352 (eval "$ac_compile") 2>&5 3353 ac_status=$? 3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3355 test $ac_status = 0; }; then : 3356 for ac_file in conftest.o conftest.obj conftest.*; do 3357 test -f "$ac_file" || continue; 3358 case $ac_file in 3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3360 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3361 break;; 3362 esac 3363done 3364else 3365 $as_echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3370as_fn_error "cannot compute suffix of object files: cannot compile 3371See \`config.log' for more details." "$LINENO" 5; } 3372fi 3373rm -f conftest.$ac_cv_objext conftest.$ac_ext 3374fi 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3376$as_echo "$ac_cv_objext" >&6; } 3377OBJEXT=$ac_cv_objext 3378ac_objext=$OBJEXT 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3380$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3381if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3382 $as_echo_n "(cached) " >&6 3383else 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385/* end confdefs.h. */ 3386 3387int 3388main () 3389{ 3390#ifndef __GNUC__ 3391 choke me 3392#endif 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398if ac_fn_c_try_compile "$LINENO"; then : 3399 ac_compiler_gnu=yes 3400else 3401 ac_compiler_gnu=no 3402fi 3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3404ac_cv_c_compiler_gnu=$ac_compiler_gnu 3405 3406fi 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3408$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3409if test $ac_compiler_gnu = yes; then 3410 GCC=yes 3411else 3412 GCC= 3413fi 3414ac_test_CFLAGS=${CFLAGS+set} 3415ac_save_CFLAGS=$CFLAGS 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3417$as_echo_n "checking whether $CC accepts -g... " >&6; } 3418if test "${ac_cv_prog_cc_g+set}" = set; then : 3419 $as_echo_n "(cached) " >&6 3420else 3421 ac_save_c_werror_flag=$ac_c_werror_flag 3422 ac_c_werror_flag=yes 3423 ac_cv_prog_cc_g=no 3424 CFLAGS="-g" 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426/* end confdefs.h. */ 3427 3428int 3429main () 3430{ 3431 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436if ac_fn_c_try_compile "$LINENO"; then : 3437 ac_cv_prog_cc_g=yes 3438else 3439 CFLAGS="" 3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3441/* end confdefs.h. */ 3442 3443int 3444main () 3445{ 3446 3447 ; 3448 return 0; 3449} 3450_ACEOF 3451if ac_fn_c_try_compile "$LINENO"; then : 3452 3453else 3454 ac_c_werror_flag=$ac_save_c_werror_flag 3455 CFLAGS="-g" 3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3457/* end confdefs.h. */ 3458 3459int 3460main () 3461{ 3462 3463 ; 3464 return 0; 3465} 3466_ACEOF 3467if ac_fn_c_try_compile "$LINENO"; then : 3468 ac_cv_prog_cc_g=yes 3469fi 3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3471fi 3472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3473fi 3474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3475 ac_c_werror_flag=$ac_save_c_werror_flag 3476fi 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3478$as_echo "$ac_cv_prog_cc_g" >&6; } 3479if test "$ac_test_CFLAGS" = set; then 3480 CFLAGS=$ac_save_CFLAGS 3481elif test $ac_cv_prog_cc_g = yes; then 3482 if test "$GCC" = yes; then 3483 CFLAGS="-g -O2" 3484 else 3485 CFLAGS="-g" 3486 fi 3487else 3488 if test "$GCC" = yes; then 3489 CFLAGS="-O2" 3490 else 3491 CFLAGS= 3492 fi 3493fi 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3495$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3496if test "${ac_cv_prog_cc_c89+set}" = set; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 ac_cv_prog_cc_c89=no 3500ac_save_CC=$CC 3501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503#include <stdarg.h> 3504#include <stdio.h> 3505#include <sys/types.h> 3506#include <sys/stat.h> 3507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3508struct buf { int x; }; 3509FILE * (*rcsopen) (struct buf *, struct stat *, int); 3510static char *e (p, i) 3511 char **p; 3512 int i; 3513{ 3514 return p[i]; 3515} 3516static char *f (char * (*g) (char **, int), char **p, ...) 3517{ 3518 char *s; 3519 va_list v; 3520 va_start (v,p); 3521 s = g (p, va_arg (v,int)); 3522 va_end (v); 3523 return s; 3524} 3525 3526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3527 function prototypes and stuff, but not '\xHH' hex character constants. 3528 These don't provoke an error unfortunately, instead are silently treated 3529 as 'x'. The following induces an error, until -std is added to get 3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3531 array size at least. It's necessary to write '\x00'==0 to get something 3532 that's true only with -std. */ 3533int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3534 3535/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3536 inside strings and character constants. */ 3537#define FOO(x) 'x' 3538int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3539 3540int test (int i, double x); 3541struct s1 {int (*f) (int a);}; 3542struct s2 {int (*f) (double a);}; 3543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3544int argc; 3545char **argv; 3546int 3547main () 3548{ 3549return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3550 ; 3551 return 0; 3552} 3553_ACEOF 3554for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3555 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3556do 3557 CC="$ac_save_CC $ac_arg" 3558 if ac_fn_c_try_compile "$LINENO"; then : 3559 ac_cv_prog_cc_c89=$ac_arg 3560fi 3561rm -f core conftest.err conftest.$ac_objext 3562 test "x$ac_cv_prog_cc_c89" != "xno" && break 3563done 3564rm -f conftest.$ac_ext 3565CC=$ac_save_CC 3566 3567fi 3568# AC_CACHE_VAL 3569case "x$ac_cv_prog_cc_c89" in 3570 x) 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3572$as_echo "none needed" >&6; } ;; 3573 xno) 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3575$as_echo "unsupported" >&6; } ;; 3576 *) 3577 CC="$CC $ac_cv_prog_cc_c89" 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3579$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3580esac 3581if test "x$ac_cv_prog_cc_c89" != xno; then : 3582 3583fi 3584 3585ac_ext=c 3586ac_cpp='$CPP $CPPFLAGS' 3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3589ac_compiler_gnu=$ac_cv_c_compiler_gnu 3590DEPDIR="${am__leading_dot}deps" 3591 3592ac_config_commands="$ac_config_commands depfiles" 3593 3594 3595am_make=${MAKE-make} 3596cat > confinc << 'END' 3597am__doit: 3598 @echo done 3599.PHONY: am__doit 3600END 3601# If we don't find an include directive, just comment out the code. 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3603$as_echo_n "checking for style of include used by $am_make... " >&6; } 3604am__include="#" 3605am__quote= 3606_am_result=none 3607# First try GNU make style include. 3608echo "include confinc" > confmf 3609# We grep out `Entering directory' and `Leaving directory' 3610# messages which can occur if `w' ends up in MAKEFLAGS. 3611# In particular we don't look at `^make:' because GNU make might 3612# be invoked under some other name (usually "gmake"), in which 3613# case it prints its new name instead of `make'. 3614if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3615 am__include=include 3616 am__quote= 3617 _am_result=GNU 3618fi 3619# Now try BSD make style include. 3620if test "$am__include" = "#"; then 3621 echo '.include "confinc"' > confmf 3622 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3623 am__include=.include 3624 am__quote="\"" 3625 _am_result=BSD 3626 fi 3627fi 3628 3629 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3631$as_echo "$_am_result" >&6; } 3632rm -f confinc confmf 3633 3634# Check whether --enable-dependency-tracking was given. 3635if test "${enable_dependency_tracking+set}" = set; then : 3636 enableval=$enable_dependency_tracking; 3637fi 3638 3639if test "x$enable_dependency_tracking" != xno; then 3640 am_depcomp="$ac_aux_dir/depcomp" 3641 AMDEPBACKSLASH='\' 3642fi 3643 3644 3645if test "x$enable_dependency_tracking" != xno; then 3646 AMDEP_TRUE= 3647 AMDEP_FALSE='#' 3648else 3649 AMDEP_TRUE='#' 3650 AMDEP_FALSE= 3651fi 3652 3653 3654 3655 3656depcc="$CC" am_compiler_list= 3657 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3659$as_echo_n "checking dependency style of $depcc... " >&6; } 3660if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3664 # We make a subdir and do the tests there. Otherwise we can end up 3665 # making bogus files that we don't know about and never remove. For 3666 # instance it was reported that on HP-UX the gcc test will end up 3667 # making a dummy file named `D' -- because `-MD' means `put the output 3668 # in D'. 3669 mkdir conftest.dir 3670 # Copy depcomp to subdir because otherwise we won't find it if we're 3671 # using a relative directory. 3672 cp "$am_depcomp" conftest.dir 3673 cd conftest.dir 3674 3675 am_cv_CC_dependencies_compiler_type=none 3676 if test "$am_compiler_list" = ""; then 3677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3678 fi 3679 for depmode in $am_compiler_list; do 3680 # We need to recreate these files for each test, as the compiler may 3681 # overwrite some of them when testing with obscure command lines. 3682 # This happens at least with the AIX C compiler. 3683 echo '#include "conftest.h"' > conftest.c 3684 echo 'int i;' > conftest.h 3685 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 3686 3687 case $depmode in 3688 nosideeffect) 3689 # after this tag, mechanisms are not by side-effect, so they'll 3690 # only be used when explicitly requested 3691 if test "x$enable_dependency_tracking" = xyes; then 3692 continue 3693 else 3694 break 3695 fi 3696 ;; 3697 none) break ;; 3698 esac 3699 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3700 # mode. It turns out that the SunPro C++ compiler does not properly 3701 # handle `-M -o', and we need to detect this. 3702 if depmode=$depmode \ 3703 source=conftest.c object=conftest.o \ 3704 depfile=conftest.Po tmpdepfile=conftest.TPo \ 3705 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \ 3706 >/dev/null 2>conftest.err && 3707 grep conftest.h conftest.Po > /dev/null 2>&1 && 3708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3709 # icc doesn't choke on unknown options, it will just issue warnings 3710 # (even with -Werror). So we grep stderr for any message 3711 # that says an option was ignored. 3712 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3713 am_cv_CC_dependencies_compiler_type=$depmode 3714 break 3715 fi 3716 fi 3717 done 3718 3719 cd .. 3720 rm -rf conftest.dir 3721else 3722 am_cv_CC_dependencies_compiler_type=none 3723fi 3724 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3727$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3728CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3729 3730 3731 3732if 3733 test "x$enable_dependency_tracking" != xno \ 3734 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3735 am__fastdepCC_TRUE= 3736 am__fastdepCC_FALSE='#' 3737else 3738 am__fastdepCC_TRUE='#' 3739 am__fastdepCC_FALSE= 3740fi 3741 3742 3743 3744if test "$GCC" = yes 3745then 3746 case "$host" in 3747 *-*-mingw*) 3748 case "$build" in 3749 *-*-cygwin*) 3750 CPPFLAGS="$CPPFLAGS -mno-cygwin" 3751 LDFLAGS="$LDFLAGS -mno-cygwin" 3752 ;; 3753 esac 3754 esac 3755 3756fi 3757 3758 3759# Check whether --enable-shared was given. 3760if test "${enable_shared+set}" = set; then : 3761 enableval=$enable_shared; p=${PACKAGE-default} 3762case $enableval in 3763yes) enable_shared=yes ;; 3764no) enable_shared=no ;; 3765*) 3766 enable_shared=no 3767 # Look at the argument we got. We use all the common list separators. 3768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3769 for pkg in $enableval; do 3770 if test "X$pkg" = "X$p"; then 3771 enable_shared=yes 3772 fi 3773 done 3774 IFS="$ac_save_ifs" 3775 ;; 3776esac 3777else 3778 enable_shared=yes 3779fi 3780 3781# Check whether --enable-static was given. 3782if test "${enable_static+set}" = set; then : 3783 enableval=$enable_static; p=${PACKAGE-default} 3784case $enableval in 3785yes) enable_static=yes ;; 3786no) enable_static=no ;; 3787*) 3788 enable_static=no 3789 # Look at the argument we got. We use all the common list separators. 3790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3791 for pkg in $enableval; do 3792 if test "X$pkg" = "X$p"; then 3793 enable_static=yes 3794 fi 3795 done 3796 IFS="$ac_save_ifs" 3797 ;; 3798esac 3799else 3800 enable_static=yes 3801fi 3802 3803# Check whether --enable-fast-install was given. 3804if test "${enable_fast_install+set}" = set; then : 3805 enableval=$enable_fast_install; p=${PACKAGE-default} 3806case $enableval in 3807yes) enable_fast_install=yes ;; 3808no) enable_fast_install=no ;; 3809*) 3810 enable_fast_install=no 3811 # Look at the argument we got. We use all the common list separators. 3812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3813 for pkg in $enableval; do 3814 if test "X$pkg" = "X$p"; then 3815 enable_fast_install=yes 3816 fi 3817 done 3818 IFS="$ac_save_ifs" 3819 ;; 3820esac 3821else 3822 enable_fast_install=yes 3823fi 3824 3825# Find the correct PATH separator. Usually this is `:', but 3826# DJGPP uses `;' like DOS. 3827if test "X${PATH_SEPARATOR+set}" != Xset; then 3828 UNAME=${UNAME-`uname 2>/dev/null`} 3829 case X$UNAME in 3830 *-DOS) lt_cv_sys_path_separator=';' ;; 3831 *) lt_cv_sys_path_separator=':' ;; 3832 esac 3833 PATH_SEPARATOR=$lt_cv_sys_path_separator 3834fi 3835 3836 3837# Check whether --with-gnu-ld was given. 3838if test "${with_gnu_ld+set}" = set; then : 3839 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3840else 3841 with_gnu_ld=no 3842fi 3843 3844ac_prog=ld 3845if test "$GCC" = yes; then 3846 # Check if gcc -print-prog-name=ld gives a path. 3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 3848$as_echo_n "checking for ld used by GCC... " >&6; } 3849 case $host in 3850 *-*-mingw*) 3851 # gcc leaves a trailing carriage return which upsets mingw 3852 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3853 *) 3854 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3855 esac 3856 case $ac_prog in 3857 # Accept absolute paths. 3858 [\\/]* | [A-Za-z]:[\\/]*) 3859 re_direlt='/[^/][^/]*/\.\./' 3860 # Canonicalize the path of ld 3861 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3862 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3863 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3864 done 3865 test -z "$LD" && LD="$ac_prog" 3866 ;; 3867 "") 3868 # If it fails, then pretend we aren't using GCC. 3869 ac_prog=ld 3870 ;; 3871 *) 3872 # If it is relative, then search for the first ld in PATH. 3873 with_gnu_ld=unknown 3874 ;; 3875 esac 3876elif test "$with_gnu_ld" = yes; then 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3878$as_echo_n "checking for GNU ld... " >&6; } 3879else 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3881$as_echo_n "checking for non-GNU ld... " >&6; } 3882fi 3883if test "${lt_cv_path_LD+set}" = set; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if test -z "$LD"; then 3887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3888 for ac_dir in $PATH; do 3889 test -z "$ac_dir" && ac_dir=. 3890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3891 lt_cv_path_LD="$ac_dir/$ac_prog" 3892 # Check to see if the program is GNU ld. I'd rather use --version, 3893 # but apparently some GNU ld's only accept -v. 3894 # Break only if it was the GNU/non-GNU ld that we prefer. 3895 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3896 test "$with_gnu_ld" != no && break 3897 else 3898 test "$with_gnu_ld" != yes && break 3899 fi 3900 fi 3901 done 3902 IFS="$ac_save_ifs" 3903else 3904 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3905fi 3906fi 3907 3908LD="$lt_cv_path_LD" 3909if test -n "$LD"; then 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3911$as_echo "$LD" >&6; } 3912else 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3914$as_echo "no" >&6; } 3915fi 3916test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3918$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3919if test "${lt_cv_prog_gnu_ld+set}" = set; then : 3920 $as_echo_n "(cached) " >&6 3921else 3922 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3923if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3924 lt_cv_prog_gnu_ld=yes 3925else 3926 lt_cv_prog_gnu_ld=no 3927fi 3928fi 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3930$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3931with_gnu_ld=$lt_cv_prog_gnu_ld 3932 3933 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 3935$as_echo_n "checking for $LD option to reload object files... " >&6; } 3936if test "${lt_cv_ld_reload_flag+set}" = set; then : 3937 $as_echo_n "(cached) " >&6 3938else 3939 lt_cv_ld_reload_flag='-r' 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 3942$as_echo "$lt_cv_ld_reload_flag" >&6; } 3943reload_flag=$lt_cv_ld_reload_flag 3944test -n "$reload_flag" && reload_flag=" $reload_flag" 3945 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 3947$as_echo_n "checking for BSD-compatible nm... " >&6; } 3948if test "${lt_cv_path_NM+set}" = set; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 if test -n "$NM"; then 3952 # Let the user override the test. 3953 lt_cv_path_NM="$NM" 3954else 3955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3956 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3957 test -z "$ac_dir" && ac_dir=. 3958 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3959 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3960 # Check to see if the nm accepts a BSD-compat flag. 3961 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3962 # nm: unknown option "B" ignored 3963 # Tru64's nm complains that /dev/null is an invalid object file 3964 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3965 lt_cv_path_NM="$tmp_nm -B" 3966 break 3967 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3968 lt_cv_path_NM="$tmp_nm -p" 3969 break 3970 else 3971 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3972 continue # so that we can try to find one that supports BSD flags 3973 fi 3974 fi 3975 done 3976 IFS="$ac_save_ifs" 3977 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3978fi 3979fi 3980 3981NM="$lt_cv_path_NM" 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 3983$as_echo "$NM" >&6; } 3984 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3986$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3987if test "${lt_cv_path_SED+set}" = set; then : 3988 $as_echo_n "(cached) " >&6 3989else 3990 # Loop through the user's path and test for sed and gsed. 3991# Then use that list of sed's as ones to test for truncation. 3992as_executable_p="test -f" 3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3994for as_dir in $PATH 3995do 3996 IFS=$as_save_IFS 3997 test -z "$as_dir" && as_dir=. 3998 for ac_prog in sed gsed; do 3999 for ac_exec_ext in '' $ac_executable_extensions; do 4000 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4001 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" 4002 fi 4003 done 4004 done 4005done 4006 4007 # Create a temporary directory, and hook for its removal unless debugging. 4008$debug || 4009{ 4010 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 4011 trap '{ (exit 1); exit 1; }' 1 2 13 15 4012} 4013 4014# Create a (secure) tmp directory for tmp files. 4015: ${TMPDIR=/tmp} 4016{ 4017 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && 4018 test -n "$tmp" && test -d "$tmp" 4019} || 4020{ 4021 tmp=$TMPDIR/sed$$-$RANDOM 4022 (umask 077 && mkdir $tmp) 4023} || 4024{ 4025 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 4026 { (exit 1); exit 1; } 4027} 4028 _max=0 4029 _count=0 4030 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 4031 # along with /bin/sed that truncates output. 4032 for _sed in $_sed_list /usr/xpg4/bin/sed; do 4033 test ! -f ${_sed} && break 4034 cat /dev/null > "$tmp/sed.in" 4035 _count=0 4036 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" 4037 # Check for GNU sed and select it if it is found. 4038 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then 4039 lt_cv_path_SED=${_sed} 4040 break 4041 fi 4042 while true; do 4043 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" 4044 mv "$tmp/sed.tmp" "$tmp/sed.in" 4045 cp "$tmp/sed.in" "$tmp/sed.nl" 4046 echo >>"$tmp/sed.nl" 4047 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break 4048 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break 4049 # 40000 chars as input seems more than enough 4050 test $_count -gt 10 && break 4051 _count=`expr $_count + 1` 4052 if test $_count -gt $_max; then 4053 _max=$_count 4054 lt_cv_path_SED=$_sed 4055 fi 4056 done 4057 done 4058 rm -rf "$tmp" 4059 4060fi 4061 4062if test "X$SED" != "X"; then 4063 lt_cv_path_SED=$SED 4064else 4065 SED=$lt_cv_path_SED 4066fi 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4068$as_echo "$SED" >&6; } 4069 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4071$as_echo_n "checking whether ln -s works... " >&6; } 4072LN_S=$as_ln_s 4073if test "$LN_S" = "ln -s"; then 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4075$as_echo "yes" >&6; } 4076else 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4078$as_echo "no, using $LN_S" >&6; } 4079fi 4080 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5 4082$as_echo_n "checking how to recognise dependent libraries... " >&6; } 4083if test "${lt_cv_deplibs_check_method+set}" = set; then : 4084 $as_echo_n "(cached) " >&6 4085else 4086 lt_cv_file_magic_cmd='$MAGIC_CMD' 4087lt_cv_file_magic_test_file= 4088lt_cv_deplibs_check_method='unknown' 4089# Need to set the preceding variable on all platforms that support 4090# interlibrary dependencies. 4091# 'none' -- dependencies not supported. 4092# `unknown' -- same as none, but documents that we really don't know. 4093# 'pass_all' -- all dependencies passed with no checks. 4094# 'test_compile' -- check by making test program. 4095# 'file_magic [[regex]]' -- check by looking for files in library path 4096# which responds to the $file_magic_cmd with a given egrep regex. 4097# If you have `file' or equivalent on your system and you're not sure 4098# whether `pass_all' will *always* work, you probably want this one. 4099 4100case $host_os in 4101aix4* | aix5*) 4102 lt_cv_deplibs_check_method=pass_all 4103 ;; 4104 4105beos*) 4106 lt_cv_deplibs_check_method=pass_all 4107 ;; 4108 4109bsdi4*) 4110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4111 lt_cv_file_magic_cmd='/usr/bin/file -L' 4112 lt_cv_file_magic_test_file=/shlib/libc.so 4113 ;; 4114 4115cygwin* | mingw* | pw32*) 4116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4117 lt_cv_file_magic_cmd='$OBJDUMP -f' 4118 ;; 4119 4120darwin* | rhapsody*) 4121 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 4122 lt_cv_file_magic_cmd='/usr/bin/file -L' 4123 case "$host_os" in 4124 rhapsody* | darwin1.[012]) 4125 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 4126 ;; 4127 *) # Darwin 1.3 on 4128 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 4129 ;; 4130 esac 4131 ;; 4132 4133freebsd*) 4134 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4135 case $host_cpu in 4136 i*86 ) 4137 # Not sure whether the presence of OpenBSD here was a mistake. 4138 # Let's accept both of them until this is cleared up. 4139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4140 lt_cv_file_magic_cmd=/usr/bin/file 4141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4142 ;; 4143 esac 4144 else 4145 lt_cv_deplibs_check_method=pass_all 4146 fi 4147 ;; 4148 4149gnu*) 4150 lt_cv_deplibs_check_method=pass_all 4151 ;; 4152 4153hpux10.20*|hpux11*) 4154 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4155 lt_cv_file_magic_cmd=/usr/bin/file 4156 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4157 ;; 4158 4159irix5* | irix6* | nonstopux*) 4160 case $host_os in 4161 irix5* | nonstopux*) 4162 # this will be overridden with pass_all, but let us keep it just in case 4163 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 4164 ;; 4165 *) 4166 case $LD in 4167 *-32|*"-32 ") libmagic=32-bit;; 4168 *-n32|*"-n32 ") libmagic=N32;; 4169 *-64|*"-64 ") libmagic=64-bit;; 4170 *) libmagic=never-match;; 4171 esac 4172 # this will be overridden with pass_all, but let us keep it just in case 4173 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 4174 ;; 4175 esac 4176 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 4177 lt_cv_deplibs_check_method=pass_all 4178 ;; 4179 4180# This must be Linux ELF. 4181linux-gnu*) 4182 case $host_cpu in 4183 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k) 4184 lt_cv_deplibs_check_method=pass_all ;; 4185 *) 4186 # glibc up to 2.1.1 does not perform some relocations on ARM 4187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 4188 esac 4189 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 4190 ;; 4191 4192netbsd*) 4193 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4194 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 4195 else 4196 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 4197 fi 4198 ;; 4199 4200newos6*) 4201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4202 lt_cv_file_magic_cmd=/usr/bin/file 4203 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4204 ;; 4205 4206openbsd*) 4207 lt_cv_file_magic_cmd=/usr/bin/file 4208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4211 else 4212 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4213 fi 4214 ;; 4215 4216osf3* | osf4* | osf5*) 4217 # this will be overridden with pass_all, but let us keep it just in case 4218 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4219 lt_cv_file_magic_test_file=/shlib/libc.so 4220 lt_cv_deplibs_check_method=pass_all 4221 ;; 4222 4223sco3.2v5*) 4224 lt_cv_deplibs_check_method=pass_all 4225 ;; 4226 4227solaris*) 4228 lt_cv_deplibs_check_method=pass_all 4229 lt_cv_file_magic_test_file=/lib/libc.so 4230 ;; 4231 4232sysv5uw[78]* | sysv4*uw2*) 4233 lt_cv_deplibs_check_method=pass_all 4234 ;; 4235 4236sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4237 case $host_vendor in 4238 motorola) 4239 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]' 4240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4241 ;; 4242 ncr) 4243 lt_cv_deplibs_check_method=pass_all 4244 ;; 4245 sequent) 4246 lt_cv_file_magic_cmd='/bin/file' 4247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4248 ;; 4249 sni) 4250 lt_cv_file_magic_cmd='/bin/file' 4251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4252 lt_cv_file_magic_test_file=/lib/libc.so 4253 ;; 4254 siemens) 4255 lt_cv_deplibs_check_method=pass_all 4256 ;; 4257 esac 4258 ;; 4259esac 4260 4261fi 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4263$as_echo "$lt_cv_deplibs_check_method" >&6; } 4264file_magic_cmd=$lt_cv_file_magic_cmd 4265deplibs_check_method=$lt_cv_deplibs_check_method 4266 4267 4268 4269 4270 4271 4272 4273 4274# Check for command to grab the raw symbol name followed by C symbol from nm. 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output" >&5 4276$as_echo_n "checking command to parse $NM output... " >&6; } 4277if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 4281# These are sane defaults that work on at least a few old systems. 4282# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4283 4284# Character class describing NM global symbol codes. 4285symcode='[BCDEGRST]' 4286 4287# Regexp to match symbols that can be accessed directly from C. 4288sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4289 4290# Transform the above into a raw symbol and a C symbol. 4291symxfrm='\1 \2\3 \3' 4292 4293# Transform an extracted symbol line into a proper C declaration 4294lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 4295 4296# Transform an extracted symbol line into symbol name and symbol address 4297lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4298 4299# Define system-specific variables. 4300case $host_os in 4301aix*) 4302 symcode='[BCDT]' 4303 ;; 4304cygwin* | mingw* | pw32*) 4305 symcode='[ABCDGISTW]' 4306 ;; 4307hpux*) # Its linker distinguishes data from code symbols 4308 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4309 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4310 ;; 4311irix* | nonstopux*) 4312 symcode='[BCDEGRST]' 4313 ;; 4314osf*) 4315 symcode='[BCDEGQRST]' 4316 ;; 4317solaris* | sysv5*) 4318 symcode='[BDT]' 4319 ;; 4320sysv4) 4321 symcode='[DFNSTU]' 4322 ;; 4323esac 4324 4325# Handle CRLF in mingw tool chain 4326opt_cr= 4327case $host_os in 4328mingw*) 4329 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4330 ;; 4331esac 4332 4333# If we're using GNU nm, then use its standard symbol codes. 4334if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 4335 symcode='[ABCDGISTW]' 4336fi 4337 4338# Try without a prefix undercore, then with it. 4339for ac_symprfx in "" "_"; do 4340 4341 # Write the raw and C identifiers. 4342lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4343 4344 # Check to see that the pipe works correctly. 4345 pipe_works=no 4346 rm -f conftest* 4347 cat > conftest.$ac_ext <<EOF 4348#ifdef __cplusplus 4349extern "C" { 4350#endif 4351char nm_test_var; 4352void nm_test_func(){} 4353#ifdef __cplusplus 4354} 4355#endif 4356int main(){nm_test_var='a';nm_test_func();return(0);} 4357EOF 4358 4359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4360 (eval $ac_compile) 2>&5 4361 ac_status=$? 4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4363 test $ac_status = 0; }; then 4364 # Now try to grab the symbols. 4365 nlist=conftest.nm 4366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 4367 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4368 ac_status=$? 4369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4370 test $ac_status = 0; } && test -s "$nlist"; then 4371 # Try sorting and uniquifying the output. 4372 if sort "$nlist" | uniq > "$nlist"T; then 4373 mv -f "$nlist"T "$nlist" 4374 else 4375 rm -f "$nlist"T 4376 fi 4377 4378 # Make sure that we snagged all the symbols we need. 4379 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 4380 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 4381 cat <<EOF > conftest.$ac_ext 4382#ifdef __cplusplus 4383extern "C" { 4384#endif 4385 4386EOF 4387 # Now generate the symbol file. 4388 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 4389 4390 cat <<EOF >> conftest.$ac_ext 4391#if defined (__STDC__) && __STDC__ 4392# define lt_ptr void * 4393#else 4394# define lt_ptr char * 4395# define const 4396#endif 4397 4398/* The mapping between symbol names and symbols. */ 4399const struct { 4400 const char *name; 4401 lt_ptr address; 4402} 4403lt_preloaded_symbols[] = 4404{ 4405EOF 4406 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 4407 cat <<\EOF >> conftest.$ac_ext 4408 {0, (lt_ptr) 0} 4409}; 4410 4411#ifdef __cplusplus 4412} 4413#endif 4414EOF 4415 # Now try linking the two files. 4416 mv conftest.$ac_objext conftstm.$ac_objext 4417 save_LIBS="$LIBS" 4418 save_CFLAGS="$CFLAGS" 4419 LIBS="conftstm.$ac_objext" 4420 CFLAGS="$CFLAGS$no_builtin_flag" 4421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 4422 (eval $ac_link) 2>&5 4423 ac_status=$? 4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4425 test $ac_status = 0; } && test -s conftest$ac_exeext; then 4426 pipe_works=yes 4427 fi 4428 LIBS="$save_LIBS" 4429 CFLAGS="$save_CFLAGS" 4430 else 4431 echo "cannot find nm_test_func in $nlist" >&5 4432 fi 4433 else 4434 echo "cannot find nm_test_var in $nlist" >&5 4435 fi 4436 else 4437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4438 fi 4439 else 4440 echo "$progname: failed program was:" >&5 4441 cat conftest.$ac_ext >&5 4442 fi 4443 rm -f conftest* conftst* 4444 4445 # Do not use the global_symbol_pipe unless it works. 4446 if test "$pipe_works" = yes; then 4447 break 4448 else 4449 lt_cv_sys_global_symbol_pipe= 4450 fi 4451done 4452 4453fi 4454 4455global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 4456if test -z "$lt_cv_sys_global_symbol_pipe"; then 4457 global_symbol_to_cdecl= 4458 global_symbol_to_c_name_address= 4459else 4460 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4461 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 4462fi 4463if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 4464then 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 4466$as_echo "failed" >&6; } 4467else 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 4469$as_echo "ok" >&6; } 4470fi 4471 4472ac_ext=c 4473ac_cpp='$CPP $CPPFLAGS' 4474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4476ac_compiler_gnu=$ac_cv_c_compiler_gnu 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4478$as_echo_n "checking how to run the C preprocessor... " >&6; } 4479# On Suns, sometimes $CPP names a directory. 4480if test -n "$CPP" && test -d "$CPP"; then 4481 CPP= 4482fi 4483if test -z "$CPP"; then 4484 if test "${ac_cv_prog_CPP+set}" = set; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 # Double quotes because CPP needs to be expanded 4488 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4489 do 4490 ac_preproc_ok=false 4491for ac_c_preproc_warn_flag in '' yes 4492do 4493 # Use a header file that comes with gcc, so configuring glibc 4494 # with a fresh cross-compiler works. 4495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4496 # <limits.h> exists even on freestanding compilers. 4497 # On the NeXT, cc -E runs the code through the compiler's parser, 4498 # not just through cpp. "Syntax error" is here to catch this case. 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4500/* end confdefs.h. */ 4501#ifdef __STDC__ 4502# include <limits.h> 4503#else 4504# include <assert.h> 4505#endif 4506 Syntax error 4507_ACEOF 4508if ac_fn_c_try_cpp "$LINENO"; then : 4509 4510else 4511 # Broken: fails on valid input. 4512continue 4513fi 4514rm -f conftest.err conftest.$ac_ext 4515 4516 # OK, works on sane cases. Now check whether nonexistent headers 4517 # can be detected and how. 4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4519/* end confdefs.h. */ 4520#include <ac_nonexistent.h> 4521_ACEOF 4522if ac_fn_c_try_cpp "$LINENO"; then : 4523 # Broken: success on invalid input. 4524continue 4525else 4526 # Passes both tests. 4527ac_preproc_ok=: 4528break 4529fi 4530rm -f conftest.err conftest.$ac_ext 4531 4532done 4533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4534rm -f conftest.err conftest.$ac_ext 4535if $ac_preproc_ok; then : 4536 break 4537fi 4538 4539 done 4540 ac_cv_prog_CPP=$CPP 4541 4542fi 4543 CPP=$ac_cv_prog_CPP 4544else 4545 ac_cv_prog_CPP=$CPP 4546fi 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4548$as_echo "$CPP" >&6; } 4549ac_preproc_ok=false 4550for ac_c_preproc_warn_flag in '' yes 4551do 4552 # Use a header file that comes with gcc, so configuring glibc 4553 # with a fresh cross-compiler works. 4554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4555 # <limits.h> exists even on freestanding compilers. 4556 # On the NeXT, cc -E runs the code through the compiler's parser, 4557 # not just through cpp. "Syntax error" is here to catch this case. 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4559/* end confdefs.h. */ 4560#ifdef __STDC__ 4561# include <limits.h> 4562#else 4563# include <assert.h> 4564#endif 4565 Syntax error 4566_ACEOF 4567if ac_fn_c_try_cpp "$LINENO"; then : 4568 4569else 4570 # Broken: fails on valid input. 4571continue 4572fi 4573rm -f conftest.err conftest.$ac_ext 4574 4575 # OK, works on sane cases. Now check whether nonexistent headers 4576 # can be detected and how. 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4578/* end confdefs.h. */ 4579#include <ac_nonexistent.h> 4580_ACEOF 4581if ac_fn_c_try_cpp "$LINENO"; then : 4582 # Broken: success on invalid input. 4583continue 4584else 4585 # Passes both tests. 4586ac_preproc_ok=: 4587break 4588fi 4589rm -f conftest.err conftest.$ac_ext 4590 4591done 4592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4593rm -f conftest.err conftest.$ac_ext 4594if $ac_preproc_ok; then : 4595 4596else 4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4599as_fn_error "C preprocessor \"$CPP\" fails sanity check 4600See \`config.log' for more details." "$LINENO" 5; } 4601fi 4602 4603ac_ext=c 4604ac_cpp='$CPP $CPPFLAGS' 4605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4607ac_compiler_gnu=$ac_cv_c_compiler_gnu 4608 4609 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4611$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4612if test "${ac_cv_path_GREP+set}" = set; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 if test -z "$GREP"; then 4616 ac_path_GREP_found=false 4617 # Loop through the user's path and test for each of PROGNAME-LIST 4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4619for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4620do 4621 IFS=$as_save_IFS 4622 test -z "$as_dir" && as_dir=. 4623 for ac_prog in grep ggrep; do 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4626 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4627# Check for GNU ac_path_GREP and select it if it is found. 4628 # Check for GNU $ac_path_GREP 4629case `"$ac_path_GREP" --version 2>&1` in 4630*GNU*) 4631 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4632*) 4633 ac_count=0 4634 $as_echo_n 0123456789 >"conftest.in" 4635 while : 4636 do 4637 cat "conftest.in" "conftest.in" >"conftest.tmp" 4638 mv "conftest.tmp" "conftest.in" 4639 cp "conftest.in" "conftest.nl" 4640 $as_echo 'GREP' >> "conftest.nl" 4641 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4643 as_fn_arith $ac_count + 1 && ac_count=$as_val 4644 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4645 # Best one so far, save it but keep looking for a better one 4646 ac_cv_path_GREP="$ac_path_GREP" 4647 ac_path_GREP_max=$ac_count 4648 fi 4649 # 10*(2^10) chars as input seems more than enough 4650 test $ac_count -gt 10 && break 4651 done 4652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4653esac 4654 4655 $ac_path_GREP_found && break 3 4656 done 4657 done 4658 done 4659IFS=$as_save_IFS 4660 if test -z "$ac_cv_path_GREP"; then 4661 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4662 fi 4663else 4664 ac_cv_path_GREP=$GREP 4665fi 4666 4667fi 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4669$as_echo "$ac_cv_path_GREP" >&6; } 4670 GREP="$ac_cv_path_GREP" 4671 4672 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4674$as_echo_n "checking for egrep... " >&6; } 4675if test "${ac_cv_path_EGREP+set}" = set; then : 4676 $as_echo_n "(cached) " >&6 4677else 4678 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4679 then ac_cv_path_EGREP="$GREP -E" 4680 else 4681 if test -z "$EGREP"; then 4682 ac_path_EGREP_found=false 4683 # Loop through the user's path and test for each of PROGNAME-LIST 4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4685for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4686do 4687 IFS=$as_save_IFS 4688 test -z "$as_dir" && as_dir=. 4689 for ac_prog in egrep; do 4690 for ac_exec_ext in '' $ac_executable_extensions; do 4691 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4692 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4693# Check for GNU ac_path_EGREP and select it if it is found. 4694 # Check for GNU $ac_path_EGREP 4695case `"$ac_path_EGREP" --version 2>&1` in 4696*GNU*) 4697 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4698*) 4699 ac_count=0 4700 $as_echo_n 0123456789 >"conftest.in" 4701 while : 4702 do 4703 cat "conftest.in" "conftest.in" >"conftest.tmp" 4704 mv "conftest.tmp" "conftest.in" 4705 cp "conftest.in" "conftest.nl" 4706 $as_echo 'EGREP' >> "conftest.nl" 4707 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4709 as_fn_arith $ac_count + 1 && ac_count=$as_val 4710 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4711 # Best one so far, save it but keep looking for a better one 4712 ac_cv_path_EGREP="$ac_path_EGREP" 4713 ac_path_EGREP_max=$ac_count 4714 fi 4715 # 10*(2^10) chars as input seems more than enough 4716 test $ac_count -gt 10 && break 4717 done 4718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4719esac 4720 4721 $ac_path_EGREP_found && break 3 4722 done 4723 done 4724 done 4725IFS=$as_save_IFS 4726 if test -z "$ac_cv_path_EGREP"; then 4727 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4728 fi 4729else 4730 ac_cv_path_EGREP=$EGREP 4731fi 4732 4733 fi 4734fi 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4736$as_echo "$ac_cv_path_EGREP" >&6; } 4737 EGREP="$ac_cv_path_EGREP" 4738 4739 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4741$as_echo_n "checking for ANSI C header files... " >&6; } 4742if test "${ac_cv_header_stdc+set}" = set; then : 4743 $as_echo_n "(cached) " >&6 4744else 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4746/* end confdefs.h. */ 4747#include <stdlib.h> 4748#include <stdarg.h> 4749#include <string.h> 4750#include <float.h> 4751 4752int 4753main () 4754{ 4755 4756 ; 4757 return 0; 4758} 4759_ACEOF 4760if ac_fn_c_try_compile "$LINENO"; then : 4761 ac_cv_header_stdc=yes 4762else 4763 ac_cv_header_stdc=no 4764fi 4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4766 4767if test $ac_cv_header_stdc = yes; then 4768 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770/* end confdefs.h. */ 4771#include <string.h> 4772 4773_ACEOF 4774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4775 $EGREP "memchr" >/dev/null 2>&1; then : 4776 4777else 4778 ac_cv_header_stdc=no 4779fi 4780rm -f conftest* 4781 4782fi 4783 4784if test $ac_cv_header_stdc = yes; then 4785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788#include <stdlib.h> 4789 4790_ACEOF 4791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4792 $EGREP "free" >/dev/null 2>&1; then : 4793 4794else 4795 ac_cv_header_stdc=no 4796fi 4797rm -f conftest* 4798 4799fi 4800 4801if test $ac_cv_header_stdc = yes; then 4802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4803 if test "$cross_compiling" = yes; then : 4804 : 4805else 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4807/* end confdefs.h. */ 4808#include <ctype.h> 4809#include <stdlib.h> 4810#if ((' ' & 0x0FF) == 0x020) 4811# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4812# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4813#else 4814# define ISLOWER(c) \ 4815 (('a' <= (c) && (c) <= 'i') \ 4816 || ('j' <= (c) && (c) <= 'r') \ 4817 || ('s' <= (c) && (c) <= 'z')) 4818# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4819#endif 4820 4821#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4822int 4823main () 4824{ 4825 int i; 4826 for (i = 0; i < 256; i++) 4827 if (XOR (islower (i), ISLOWER (i)) 4828 || toupper (i) != TOUPPER (i)) 4829 return 2; 4830 return 0; 4831} 4832_ACEOF 4833if ac_fn_c_try_run "$LINENO"; then : 4834 4835else 4836 ac_cv_header_stdc=no 4837fi 4838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4839 conftest.$ac_objext conftest.beam conftest.$ac_ext 4840fi 4841 4842fi 4843fi 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4845$as_echo "$ac_cv_header_stdc" >&6; } 4846if test $ac_cv_header_stdc = yes; then 4847 4848$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4849 4850fi 4851 4852# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4853for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4854 inttypes.h stdint.h unistd.h 4855do : 4856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4857ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4858" 4859eval as_val=\$$as_ac_Header 4860 if test "x$as_val" = x""yes; then : 4861 cat >>confdefs.h <<_ACEOF 4862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4863_ACEOF 4864 4865fi 4866 4867done 4868 4869 4870for ac_header in dlfcn.h 4871do : 4872 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 4873if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 4874 cat >>confdefs.h <<_ACEOF 4875#define HAVE_DLFCN_H 1 4876_ACEOF 4877 4878fi 4879 4880done 4881 4882 4883 4884 4885 4886 4887# Only perform the check for file, if the check method requires it 4888case $deplibs_check_method in 4889file_magic*) 4890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 4892$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 4893if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 4894 $as_echo_n "(cached) " >&6 4895else 4896 case $MAGIC_CMD in 4897 /*) 4898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4899 ;; 4900 ?:/*) 4901 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4902 ;; 4903 *) 4904 ac_save_MAGIC_CMD="$MAGIC_CMD" 4905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4906 ac_dummy="/usr/bin:$PATH" 4907 for ac_dir in $ac_dummy; do 4908 test -z "$ac_dir" && ac_dir=. 4909 if test -f $ac_dir/${ac_tool_prefix}file; then 4910 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4911 if test -n "$file_magic_test_file"; then 4912 case $deplibs_check_method in 4913 "file_magic "*) 4914 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4917 egrep "$file_magic_regex" > /dev/null; then 4918 : 4919 else 4920 cat <<EOF 1>&2 4921 4922*** Warning: the command libtool uses to detect shared libraries, 4923*** $file_magic_cmd, produces output that libtool cannot recognize. 4924*** The result is that libtool may fail to recognize shared libraries 4925*** as such. This will affect the creation of libtool libraries that 4926*** depend on shared libraries, but programs linked with such libtool 4927*** libraries will work regardless of this problem. Nevertheless, you 4928*** may want to report the problem to your system manager and/or to 4929*** bug-libtool@gnu.org 4930 4931EOF 4932 fi ;; 4933 esac 4934 fi 4935 break 4936 fi 4937 done 4938 IFS="$ac_save_ifs" 4939 MAGIC_CMD="$ac_save_MAGIC_CMD" 4940 ;; 4941esac 4942fi 4943 4944MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4945if test -n "$MAGIC_CMD"; then 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 4947$as_echo "$MAGIC_CMD" >&6; } 4948else 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4950$as_echo "no" >&6; } 4951fi 4952 4953if test -z "$lt_cv_path_MAGIC_CMD"; then 4954 if test -n "$ac_tool_prefix"; then 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 4956$as_echo_n "checking for file... " >&6; } 4957if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 case $MAGIC_CMD in 4961 /*) 4962 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4963 ;; 4964 ?:/*) 4965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4966 ;; 4967 *) 4968 ac_save_MAGIC_CMD="$MAGIC_CMD" 4969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4970 ac_dummy="/usr/bin:$PATH" 4971 for ac_dir in $ac_dummy; do 4972 test -z "$ac_dir" && ac_dir=. 4973 if test -f $ac_dir/file; then 4974 lt_cv_path_MAGIC_CMD="$ac_dir/file" 4975 if test -n "$file_magic_test_file"; then 4976 case $deplibs_check_method in 4977 "file_magic "*) 4978 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4981 egrep "$file_magic_regex" > /dev/null; then 4982 : 4983 else 4984 cat <<EOF 1>&2 4985 4986*** Warning: the command libtool uses to detect shared libraries, 4987*** $file_magic_cmd, produces output that libtool cannot recognize. 4988*** The result is that libtool may fail to recognize shared libraries 4989*** as such. This will affect the creation of libtool libraries that 4990*** depend on shared libraries, but programs linked with such libtool 4991*** libraries will work regardless of this problem. Nevertheless, you 4992*** may want to report the problem to your system manager and/or to 4993*** bug-libtool@gnu.org 4994 4995EOF 4996 fi ;; 4997 esac 4998 fi 4999 break 5000 fi 5001 done 5002 IFS="$ac_save_ifs" 5003 MAGIC_CMD="$ac_save_MAGIC_CMD" 5004 ;; 5005esac 5006fi 5007 5008MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5009if test -n "$MAGIC_CMD"; then 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 5011$as_echo "$MAGIC_CMD" >&6; } 5012else 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5014$as_echo "no" >&6; } 5015fi 5016 5017 else 5018 MAGIC_CMD=: 5019 fi 5020fi 5021 5022 fi 5023 ;; 5024esac 5025 5026if test -n "$ac_tool_prefix"; then 5027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5028set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5030$as_echo_n "checking for $ac_word... " >&6; } 5031if test "${ac_cv_prog_RANLIB+set}" = set; then : 5032 $as_echo_n "(cached) " >&6 5033else 5034 if test -n "$RANLIB"; then 5035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5036else 5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5038for as_dir in $PATH 5039do 5040 IFS=$as_save_IFS 5041 test -z "$as_dir" && as_dir=. 5042 for ac_exec_ext in '' $ac_executable_extensions; do 5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5046 break 2 5047 fi 5048done 5049 done 5050IFS=$as_save_IFS 5051 5052fi 5053fi 5054RANLIB=$ac_cv_prog_RANLIB 5055if test -n "$RANLIB"; then 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5057$as_echo "$RANLIB" >&6; } 5058else 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5060$as_echo "no" >&6; } 5061fi 5062 5063 5064fi 5065if test -z "$ac_cv_prog_RANLIB"; then 5066 ac_ct_RANLIB=$RANLIB 5067 # Extract the first word of "ranlib", so it can be a program name with args. 5068set dummy ranlib; ac_word=$2 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5070$as_echo_n "checking for $ac_word... " >&6; } 5071if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 if test -n "$ac_ct_RANLIB"; then 5075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5076else 5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5078for as_dir in $PATH 5079do 5080 IFS=$as_save_IFS 5081 test -z "$as_dir" && as_dir=. 5082 for ac_exec_ext in '' $ac_executable_extensions; do 5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5084 ac_cv_prog_ac_ct_RANLIB="ranlib" 5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5086 break 2 5087 fi 5088done 5089 done 5090IFS=$as_save_IFS 5091 5092fi 5093fi 5094ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5095if test -n "$ac_ct_RANLIB"; then 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5097$as_echo "$ac_ct_RANLIB" >&6; } 5098else 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5100$as_echo "no" >&6; } 5101fi 5102 5103 if test "x$ac_ct_RANLIB" = x; then 5104 RANLIB=":" 5105 else 5106 case $cross_compiling:$ac_tool_warned in 5107yes:) 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5110ac_tool_warned=yes ;; 5111esac 5112 RANLIB=$ac_ct_RANLIB 5113 fi 5114else 5115 RANLIB="$ac_cv_prog_RANLIB" 5116fi 5117 5118if test -n "$ac_tool_prefix"; then 5119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5120set dummy ${ac_tool_prefix}strip; ac_word=$2 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5122$as_echo_n "checking for $ac_word... " >&6; } 5123if test "${ac_cv_prog_STRIP+set}" = set; then : 5124 $as_echo_n "(cached) " >&6 5125else 5126 if test -n "$STRIP"; then 5127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5128else 5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5130for as_dir in $PATH 5131do 5132 IFS=$as_save_IFS 5133 test -z "$as_dir" && as_dir=. 5134 for ac_exec_ext in '' $ac_executable_extensions; do 5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5136 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5138 break 2 5139 fi 5140done 5141 done 5142IFS=$as_save_IFS 5143 5144fi 5145fi 5146STRIP=$ac_cv_prog_STRIP 5147if test -n "$STRIP"; then 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5149$as_echo "$STRIP" >&6; } 5150else 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5152$as_echo "no" >&6; } 5153fi 5154 5155 5156fi 5157if test -z "$ac_cv_prog_STRIP"; then 5158 ac_ct_STRIP=$STRIP 5159 # Extract the first word of "strip", so it can be a program name with args. 5160set dummy strip; ac_word=$2 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5162$as_echo_n "checking for $ac_word... " >&6; } 5163if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5164 $as_echo_n "(cached) " >&6 5165else 5166 if test -n "$ac_ct_STRIP"; then 5167 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5168else 5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5170for as_dir in $PATH 5171do 5172 IFS=$as_save_IFS 5173 test -z "$as_dir" && as_dir=. 5174 for ac_exec_ext in '' $ac_executable_extensions; do 5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5176 ac_cv_prog_ac_ct_STRIP="strip" 5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5178 break 2 5179 fi 5180done 5181 done 5182IFS=$as_save_IFS 5183 5184fi 5185fi 5186ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5187if test -n "$ac_ct_STRIP"; then 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5189$as_echo "$ac_ct_STRIP" >&6; } 5190else 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5192$as_echo "no" >&6; } 5193fi 5194 5195 if test "x$ac_ct_STRIP" = x; then 5196 STRIP=":" 5197 else 5198 case $cross_compiling:$ac_tool_warned in 5199yes:) 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5202ac_tool_warned=yes ;; 5203esac 5204 STRIP=$ac_ct_STRIP 5205 fi 5206else 5207 STRIP="$ac_cv_prog_STRIP" 5208fi 5209 5210 5211enable_dlopen=no 5212enable_win32_dll=no 5213 5214# Check whether --enable-libtool-lock was given. 5215if test "${enable_libtool_lock+set}" = set; then : 5216 enableval=$enable_libtool_lock; 5217fi 5218 5219test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5220 5221# Some flags need to be propagated to the compiler or linker for good 5222# libtool support. 5223case $host in 5224*-*-irix6*) 5225 # Find out which ABI we are using. 5226 echo '#line 5226 "configure"' > conftest.$ac_ext 5227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5228 (eval $ac_compile) 2>&5 5229 ac_status=$? 5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5231 test $ac_status = 0; }; then 5232 case `/usr/bin/file conftest.$ac_objext` in 5233 *32-bit*) 5234 LD="${LD-ld} -32" 5235 ;; 5236 *N32*) 5237 LD="${LD-ld} -n32" 5238 ;; 5239 *64-bit*) 5240 LD="${LD-ld} -64" 5241 ;; 5242 esac 5243 fi 5244 rm -rf conftest* 5245 ;; 5246 5247*-*-sco3.2v5*) 5248 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5249 SAVE_CFLAGS="$CFLAGS" 5250 CFLAGS="$CFLAGS -belf" 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5252$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5253if test "${lt_cv_cc_needs_belf+set}" = set; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 5257 ac_ext=c 5258ac_cpp='$CPP $CPPFLAGS' 5259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5261ac_compiler_gnu=$ac_cv_c_compiler_gnu 5262 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5264/* end confdefs.h. */ 5265 5266int 5267main () 5268{ 5269 5270 ; 5271 return 0; 5272} 5273_ACEOF 5274if ac_fn_c_try_link "$LINENO"; then : 5275 lt_cv_cc_needs_belf=yes 5276else 5277 lt_cv_cc_needs_belf=no 5278fi 5279rm -f core conftest.err conftest.$ac_objext \ 5280 conftest$ac_exeext conftest.$ac_ext 5281 ac_ext=c 5282ac_cpp='$CPP $CPPFLAGS' 5283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5285ac_compiler_gnu=$ac_cv_c_compiler_gnu 5286 5287fi 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5289$as_echo "$lt_cv_cc_needs_belf" >&6; } 5290 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5291 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5292 CFLAGS="$SAVE_CFLAGS" 5293 fi 5294 ;; 5295 5296 5297esac 5298 5299# Sed substitution that helps us do robust quoting. It backslashifies 5300# metacharacters that are still active within double-quoted strings. 5301Xsed='sed -e s/^X//' 5302sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5303 5304# Same as above, but do not quote variable references. 5305double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5306 5307# Sed substitution to delay expansion of an escaped shell variable in a 5308# double_quote_subst'ed string. 5309delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5310 5311# Constants: 5312rm="rm -f" 5313 5314# Global variables: 5315default_ofile=libtool 5316can_build_shared=yes 5317 5318# All known linkers require a `.a' archive for static linking (except M$VC, 5319# which needs '.lib'). 5320libext=a 5321ltmain="$ac_aux_dir/ltmain.sh" 5322ofile="$default_ofile" 5323with_gnu_ld="$lt_cv_prog_gnu_ld" 5324need_locks="$enable_libtool_lock" 5325 5326old_CC="$CC" 5327old_CFLAGS="$CFLAGS" 5328 5329# Set sane defaults for various variables 5330test -z "$AR" && AR=ar 5331test -z "$AR_FLAGS" && AR_FLAGS=cru 5332test -z "$AS" && AS=as 5333test -z "$CC" && CC=cc 5334test -z "$DLLTOOL" && DLLTOOL=dlltool 5335test -z "$LD" && LD=ld 5336test -z "$LN_S" && LN_S="ln -s" 5337test -z "$MAGIC_CMD" && MAGIC_CMD=file 5338test -z "$NM" && NM=nm 5339test -z "$OBJDUMP" && OBJDUMP=objdump 5340test -z "$RANLIB" && RANLIB=: 5341test -z "$STRIP" && STRIP=: 5342test -z "$ac_objext" && ac_objext=o 5343 5344if test x"$host" != x"$build"; then 5345 ac_tool_prefix=${host_alias}- 5346else 5347 ac_tool_prefix= 5348fi 5349 5350# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 5351case $host_os in 5352linux-gnu*) ;; 5353linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 5354esac 5355 5356case $host_os in 5357aix3*) 5358 # AIX sometimes has problems with the GCC collect2 program. For some 5359 # reason, if we set the COLLECT_NAMES environment variable, the problems 5360 # vanish in a puff of smoke. 5361 if test "X${COLLECT_NAMES+set}" != Xset; then 5362 COLLECT_NAMES= 5363 export COLLECT_NAMES 5364 fi 5365 ;; 5366esac 5367 5368# Determine commands to create old-style static archives. 5369old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5370old_postinstall_cmds='chmod 644 $oldlib' 5371old_postuninstall_cmds= 5372 5373if test -n "$RANLIB"; then 5374 case $host_os in 5375 openbsd*) 5376 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5377 ;; 5378 *) 5379 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5380 ;; 5381 esac 5382 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5383fi 5384 5385# Allow CC to be a program name with arguments. 5386set dummy $CC 5387compiler="$2" 5388 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 5390$as_echo_n "checking for objdir... " >&6; } 5391rm -f .libs 2>/dev/null 5392mkdir .libs 2>/dev/null 5393if test -d .libs; then 5394 objdir=.libs 5395else 5396 # MS-DOS does not allow filenames that begin with a dot. 5397 objdir=_libs 5398fi 5399rmdir .libs 2>/dev/null 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $objdir" >&5 5401$as_echo "$objdir" >&6; } 5402 5403 5404 5405# Check whether --with-pic was given. 5406if test "${with_pic+set}" = set; then : 5407 withval=$with_pic; pic_mode="$withval" 5408else 5409 pic_mode=default 5410fi 5411 5412test -z "$pic_mode" && pic_mode=default 5413 5414# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5415# in isolation, and that seeing it set (from the cache) indicates that 5416# the associated values are set (in the cache) correctly too. 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 5418$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 5419if test "${lt_cv_prog_cc_pic+set}" = set; then : 5420 $as_echo_n "(cached) " >&6 5421else 5422 lt_cv_prog_cc_pic= 5423 lt_cv_prog_cc_shlib= 5424 lt_cv_prog_cc_wl= 5425 lt_cv_prog_cc_static= 5426 lt_cv_prog_cc_no_builtin= 5427 lt_cv_prog_cc_can_build_shared=$can_build_shared 5428 5429 if test "$GCC" = yes; then 5430 lt_cv_prog_cc_wl='-Wl,' 5431 lt_cv_prog_cc_static='-static' 5432 5433 case $host_os in 5434 aix*) 5435 # Below there is a dirty hack to force normal static linking with -ldl 5436 # The problem is because libdl dynamically linked with both libc and 5437 # libC (AIX C++ library), which obviously doesn't included in libraries 5438 # list by gcc. This cause undefined symbols with -static flags. 5439 # This hack allows C programs to be linked with "-static -ldl", but 5440 # not sure about C++ programs. 5441 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 5442 ;; 5443 amigaos*) 5444 # FIXME: we need at least 68020 code to build shared libraries, but 5445 # adding the `-m68020' flag to GCC prevents building anything better, 5446 # like `-m68040'. 5447 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 5448 ;; 5449 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5450 # PIC is the default for these OSes. 5451 ;; 5452 darwin* | rhapsody*) 5453 # PIC is the default on this platform 5454 # Common symbols not allowed in MH_DYLIB files 5455 lt_cv_prog_cc_pic='-fno-common' 5456 ;; 5457 cygwin* | mingw* | pw32* | os2*) 5458 # This hack is so that the source file can tell whether it is being 5459 # built for inclusion in a dll (and should export symbols for example). 5460 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5461 ;; 5462 sysv4*MP*) 5463 if test -d /usr/nec; then 5464 lt_cv_prog_cc_pic=-Kconform_pic 5465 fi 5466 ;; 5467 *) 5468 lt_cv_prog_cc_pic='-fPIC' 5469 ;; 5470 esac 5471 else 5472 # PORTME Check for PIC flags for the system compiler. 5473 case $host_os in 5474 aix3* | aix4* | aix5*) 5475 lt_cv_prog_cc_wl='-Wl,' 5476 # All AIX code is PIC. 5477 if test "$host_cpu" = ia64; then 5478 # AIX 5 now supports IA64 processor 5479 lt_cv_prog_cc_static='-Bstatic' 5480 else 5481 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 5482 fi 5483 ;; 5484 5485 hpux9* | hpux10* | hpux11*) 5486 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 5487 lt_cv_prog_cc_wl='-Wl,' 5488 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 5489 lt_cv_prog_cc_pic='+Z' 5490 ;; 5491 5492 irix5* | irix6* | nonstopux*) 5493 lt_cv_prog_cc_wl='-Wl,' 5494 lt_cv_prog_cc_static='-non_shared' 5495 # PIC (with -KPIC) is the default. 5496 ;; 5497 5498 cygwin* | mingw* | pw32* | os2*) 5499 # This hack is so that the source file can tell whether it is being 5500 # built for inclusion in a dll (and should export symbols for example). 5501 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5502 ;; 5503 5504 newsos6) 5505 lt_cv_prog_cc_pic='-KPIC' 5506 lt_cv_prog_cc_static='-Bstatic' 5507 ;; 5508 5509 osf3* | osf4* | osf5*) 5510 # All OSF/1 code is PIC. 5511 lt_cv_prog_cc_wl='-Wl,' 5512 lt_cv_prog_cc_static='-non_shared' 5513 ;; 5514 5515 sco3.2v5*) 5516 lt_cv_prog_cc_pic='-Kpic' 5517 lt_cv_prog_cc_static='-dn' 5518 lt_cv_prog_cc_shlib='-belf' 5519 ;; 5520 5521 solaris*) 5522 lt_cv_prog_cc_pic='-KPIC' 5523 lt_cv_prog_cc_static='-Bstatic' 5524 lt_cv_prog_cc_wl='-Wl,' 5525 ;; 5526 5527 sunos4*) 5528 lt_cv_prog_cc_pic='-PIC' 5529 lt_cv_prog_cc_static='-Bstatic' 5530 lt_cv_prog_cc_wl='-Qoption ld ' 5531 ;; 5532 5533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5534 lt_cv_prog_cc_pic='-KPIC' 5535 lt_cv_prog_cc_static='-Bstatic' 5536 lt_cv_prog_cc_wl='-Wl,' 5537 ;; 5538 5539 uts4*) 5540 lt_cv_prog_cc_pic='-pic' 5541 lt_cv_prog_cc_static='-Bstatic' 5542 ;; 5543 5544 sysv4*MP*) 5545 if test -d /usr/nec ;then 5546 lt_cv_prog_cc_pic='-Kconform_pic' 5547 lt_cv_prog_cc_static='-Bstatic' 5548 fi 5549 ;; 5550 5551 *) 5552 lt_cv_prog_cc_can_build_shared=no 5553 ;; 5554 esac 5555 fi 5556 5557fi 5558 5559if test -z "$lt_cv_prog_cc_pic"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5561$as_echo "none" >&6; } 5562else 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_cc_pic" >&5 5564$as_echo "$lt_cv_prog_cc_pic" >&6; } 5565 5566 # Check to make sure the pic_flag actually works. 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 5568$as_echo_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... " >&6; } 5569 if test "${lt_cv_prog_cc_pic_works+set}" = set; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 save_CFLAGS="$CFLAGS" 5573 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576 5577int 5578main () 5579{ 5580 5581 ; 5582 return 0; 5583} 5584_ACEOF 5585if ac_fn_c_try_compile "$LINENO"; then : 5586 case $host_os in 5587 hpux9* | hpux10* | hpux11*) 5588 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5589 # they create non-PIC objects. So, if there were any warnings, we 5590 # assume that PIC is not supported. 5591 if test -s conftest.err; then 5592 lt_cv_prog_cc_pic_works=no 5593 else 5594 lt_cv_prog_cc_pic_works=yes 5595 fi 5596 ;; 5597 *) 5598 lt_cv_prog_cc_pic_works=yes 5599 ;; 5600 esac 5601 5602else 5603 lt_cv_prog_cc_pic_works=no 5604 5605fi 5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5607 CFLAGS="$save_CFLAGS" 5608 5609fi 5610 5611 5612 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5613 lt_cv_prog_cc_pic= 5614 lt_cv_prog_cc_can_build_shared=no 5615 else 5616 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5617 fi 5618 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_cc_pic_works" >&5 5620$as_echo "$lt_cv_prog_cc_pic_works" >&6; } 5621fi 5622 5623# Check for any special shared library compilation flags. 5624if test -n "$lt_cv_prog_cc_shlib"; then 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 5626$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 5627 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 5628 else 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5630$as_echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5631 lt_cv_prog_cc_can_build_shared=no 5632 fi 5633fi 5634 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 5636$as_echo_n "checking if $compiler static flag $lt_cv_prog_cc_static works... " >&6; } 5637if test "${lt_cv_prog_cc_static_works+set}" = set; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 lt_cv_prog_cc_static_works=no 5641 save_LDFLAGS="$LDFLAGS" 5642 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5644/* end confdefs.h. */ 5645 5646int 5647main () 5648{ 5649 5650 ; 5651 return 0; 5652} 5653_ACEOF 5654if ac_fn_c_try_link "$LINENO"; then : 5655 lt_cv_prog_cc_static_works=yes 5656fi 5657rm -f core conftest.err conftest.$ac_objext \ 5658 conftest$ac_exeext conftest.$ac_ext 5659 LDFLAGS="$save_LDFLAGS" 5660 5661fi 5662 5663 5664# Belt *and* braces to stop my trousers falling down: 5665test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_cc_static_works" >&5 5667$as_echo "$lt_cv_prog_cc_static_works" >&6; } 5668 5669pic_flag="$lt_cv_prog_cc_pic" 5670special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5671wl="$lt_cv_prog_cc_wl" 5672link_static_flag="$lt_cv_prog_cc_static" 5673no_builtin_flag="$lt_cv_prog_cc_no_builtin" 5674can_build_shared="$lt_cv_prog_cc_can_build_shared" 5675 5676 5677# Check to see if options -o and -c are simultaneously supported by compiler 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 5679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 5680if test "${lt_cv_compiler_c_o+set}" = set; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 5684$rm -r conftest 2>/dev/null 5685mkdir conftest 5686cd conftest 5687echo "int some_variable = 0;" > conftest.$ac_ext 5688mkdir out 5689# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 5690# that will create temporary files in the current directory regardless of 5691# the output directory. Thus, making CWD read-only will cause this test 5692# to fail, enabling locking or at least warning the user not to do parallel 5693# builds. 5694chmod -w . 5695save_CFLAGS="$CFLAGS" 5696CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5697compiler_c_o=no 5698if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 5699 # The compiler can only warn and ignore the option if not recognized 5700 # So say no if there are warnings 5701 if test -s out/conftest.err; then 5702 lt_cv_compiler_c_o=no 5703 else 5704 lt_cv_compiler_c_o=yes 5705 fi 5706else 5707 # Append any errors to the config.log. 5708 cat out/conftest.err 1>&5 5709 lt_cv_compiler_c_o=no 5710fi 5711CFLAGS="$save_CFLAGS" 5712chmod u+w . 5713$rm conftest* out/* 5714rmdir out 5715cd .. 5716rmdir conftest 5717$rm -r conftest 2>/dev/null 5718 5719fi 5720 5721compiler_c_o=$lt_cv_compiler_c_o 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_c_o" >&5 5723$as_echo "$compiler_c_o" >&6; } 5724 5725if test x"$compiler_c_o" = x"yes"; then 5726 # Check to see if we can write to a .lo 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.lo" >&5 5728$as_echo_n "checking if $compiler supports -c -o file.lo... " >&6; } 5729 if test "${lt_cv_compiler_o_lo+set}" = set; then : 5730 $as_echo_n "(cached) " >&6 5731else 5732 5733 lt_cv_compiler_o_lo=no 5734 save_CFLAGS="$CFLAGS" 5735 CFLAGS="$CFLAGS -c -o conftest.lo" 5736 save_objext="$ac_objext" 5737 ac_objext=lo 5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739/* end confdefs.h. */ 5740 5741int 5742main () 5743{ 5744int some_variable = 0; 5745 ; 5746 return 0; 5747} 5748_ACEOF 5749if ac_fn_c_try_compile "$LINENO"; then : 5750 # The compiler can only warn and ignore the option if not recognized 5751 # So say no if there are warnings 5752 if test -s conftest.err; then 5753 lt_cv_compiler_o_lo=no 5754 else 5755 lt_cv_compiler_o_lo=yes 5756 fi 5757 5758fi 5759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5760 ac_objext="$save_objext" 5761 CFLAGS="$save_CFLAGS" 5762 5763fi 5764 5765 compiler_o_lo=$lt_cv_compiler_o_lo 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_o_lo" >&5 5767$as_echo "$compiler_o_lo" >&6; } 5768else 5769 compiler_o_lo=no 5770fi 5771 5772# Check to see if we can do hard links to lock some files if needed 5773hard_links="nottested" 5774if test "$compiler_c_o" = no && test "$need_locks" != no; then 5775 # do not overwrite the value of need_locks provided by the user 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 5777$as_echo_n "checking if we can lock with hard links... " >&6; } 5778 hard_links=yes 5779 $rm conftest* 5780 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5781 touch conftest.a 5782 ln conftest.a conftest.b 2>&5 || hard_links=no 5783 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 5785$as_echo "$hard_links" >&6; } 5786 if test "$hard_links" = no; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 5788$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 5789 need_locks=warn 5790 fi 5791else 5792 need_locks=no 5793fi 5794 5795if test "$GCC" = yes; then 5796 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5798$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 5799 echo "int some_variable = 0;" > conftest.$ac_ext 5800 save_CFLAGS="$CFLAGS" 5801 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5802 compiler_rtti_exceptions=no 5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5804/* end confdefs.h. */ 5805 5806int 5807main () 5808{ 5809int some_variable = 0; 5810 ; 5811 return 0; 5812} 5813_ACEOF 5814if ac_fn_c_try_compile "$LINENO"; then : 5815 # The compiler can only warn and ignore the option if not recognized 5816 # So say no if there are warnings 5817 if test -s conftest.err; then 5818 compiler_rtti_exceptions=no 5819 else 5820 compiler_rtti_exceptions=yes 5821 fi 5822 5823fi 5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5825 CFLAGS="$save_CFLAGS" 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_rtti_exceptions" >&5 5827$as_echo "$compiler_rtti_exceptions" >&6; } 5828 5829 if test "$compiler_rtti_exceptions" = "yes"; then 5830 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5831 else 5832 no_builtin_flag=' -fno-builtin' 5833 fi 5834fi 5835 5836# See if the linker supports building shared libraries. 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker ($LD) supports shared libraries" >&5 5838$as_echo_n "checking whether the linker ($LD) supports shared libraries... " >&6; } 5839 5840allow_undefined_flag= 5841no_undefined_flag= 5842need_lib_prefix=unknown 5843need_version=unknown 5844# when you set need_version to no, make sure it does not cause -set_version 5845# flags to be left without arguments 5846archive_cmds= 5847archive_expsym_cmds= 5848old_archive_from_new_cmds= 5849old_archive_from_expsyms_cmds= 5850export_dynamic_flag_spec= 5851whole_archive_flag_spec= 5852thread_safe_flag_spec= 5853hardcode_into_libs=no 5854hardcode_libdir_flag_spec= 5855hardcode_libdir_separator= 5856hardcode_direct=no 5857hardcode_minus_L=no 5858hardcode_shlibpath_var=unsupported 5859runpath_var= 5860link_all_deplibs=unknown 5861always_export_symbols=no 5862export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 5863# include_expsyms should be a list of space-separated symbols to be *always* 5864# included in the symbol list 5865include_expsyms= 5866# exclude_expsyms can be an egrep regular expression of symbols to exclude 5867# it will be wrapped by ` (' and `)$', so one must not match beginning or 5868# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5869# as well as any symbol that contains `d'. 5870exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5871# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5872# platforms (ab)use it in PIC code, but their linkers get confused if 5873# the symbol is explicitly referenced. Since portable code cannot 5874# rely on this symbol name, it's probably fine to never include it in 5875# preloaded symbol tables. 5876extract_expsyms_cmds= 5877 5878case $host_os in 5879cygwin* | mingw* | pw32*) 5880 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5881 # When not using gcc, we currently assume that we are using 5882 # Microsoft Visual C++. 5883 if test "$GCC" != yes; then 5884 with_gnu_ld=no 5885 fi 5886 ;; 5887openbsd*) 5888 with_gnu_ld=no 5889 ;; 5890esac 5891 5892ld_shlibs=yes 5893if test "$with_gnu_ld" = yes; then 5894 # If archive_cmds runs LD, not CC, wlarc should be empty 5895 wlarc='${wl}' 5896 5897 # See if GNU ld supports shared libraries. 5898 case $host_os in 5899 aix3* | aix4* | aix5*) 5900 # On AIX, the GNU linker is very broken 5901 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 5902 ld_shlibs=no 5903 cat <<EOF 1>&2 5904 5905*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5906*** to be unable to reliably create shared libraries on AIX. 5907*** Therefore, libtool is disabling shared libraries support. If you 5908*** really care for shared libraries, you may want to modify your PATH 5909*** so that a non-GNU linker is found, and then restart. 5910 5911EOF 5912 ;; 5913 5914 amigaos*) 5915 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)' 5916 hardcode_libdir_flag_spec='-L$libdir' 5917 hardcode_minus_L=yes 5918 5919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5920 # that the semantics of dynamic libraries on AmigaOS, at least up 5921 # to version 4, is to share data among multiple programs linked 5922 # with the same dynamic library. Since this doesn't match the 5923 # behavior of shared libraries on other platforms, we can use 5924 # them. 5925 ld_shlibs=no 5926 ;; 5927 5928 beos*) 5929 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5930 allow_undefined_flag=unsupported 5931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5932 # support --undefined. This deserves some investigation. FIXME 5933 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5934 else 5935 ld_shlibs=no 5936 fi 5937 ;; 5938 5939 cygwin* | mingw* | pw32*) 5940 # hardcode_libdir_flag_spec is actually meaningless, as there is 5941 # no search path for DLLs. 5942 hardcode_libdir_flag_spec='-L$libdir' 5943 allow_undefined_flag=unsupported 5944 always_export_symbols=yes 5945 5946 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 5947 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 5948 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 5949 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 5950 else $CC -o impgen impgen.c ; fi)~ 5951 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 5952 5953 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 5954 5955 # cygwin and mingw dlls have different entry points and sets of symbols 5956 # to exclude. 5957 # FIXME: what about values for MSVC? 5958 dll_entry=__cygwin_dll_entry@12 5959 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 5960 case $host_os in 5961 mingw*) 5962 # mingw values 5963 dll_entry=_DllMainCRTStartup@12 5964 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 5965 ;; 5966 esac 5967 5968 # mingw and cygwin differ, and it's simplest to just exclude the union 5969 # of the two symbol sets. 5970 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 5971 5972 # recent cygwin and mingw systems supply a stub DllMain which the user 5973 # can override, but on older systems we have to supply one (in ltdll.c) 5974 if test "x$lt_cv_need_dllmain" = "xyes"; then 5975 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 5976 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 5977 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 5978 else 5979 ltdll_obj= 5980 ltdll_cmds= 5981 fi 5982 5983 # Extract the symbol export list from an `--export-all' def file, 5984 # then regenerate the def file from the symbol export list, so that 5985 # the compiled dll only exports the symbol export list. 5986 # Be careful not to strip the DATA tag left be newer dlltools. 5987 export_symbols_cmds="$ltdll_cmds"' 5988 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 5989 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 5990 5991 # If the export-symbols file already is a .def file (1st line 5992 # is EXPORTS), use it as is. 5993 # If DATA tags from a recent dlltool are present, honour them! 5994 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then 5995 cp $export_symbols $output_objdir/$soname-def; 5996 else 5997 echo EXPORTS > $output_objdir/$soname-def; 5998 _lt_hint=1; 5999 cat $export_symbols | while read symbol; do 6000 set dummy \$symbol; 6001 case \$# in 6002 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 6003 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; 6004 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 6005 esac; 6006 _lt_hint=`expr 1 + \$_lt_hint`; 6007 done; 6008 fi~ 6009 '"$ltdll_cmds"' 6010 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6011 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 6012 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6013 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 6014 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 6015 ;; 6016 6017 netbsd*) 6018 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6019 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6020 wlarc= 6021 else 6022 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6023 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6024 fi 6025 ;; 6026 6027 solaris* | sysv5*) 6028 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 6029 ld_shlibs=no 6030 cat <<EOF 1>&2 6031 6032*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6033*** create shared libraries on Solaris systems. Therefore, libtool 6034*** is disabling shared libraries support. We urge you to upgrade GNU 6035*** binutils to release 2.9.1 or newer. Another option is to modify 6036*** your PATH or compiler configuration so that the native linker is 6037*** used, and then restart. 6038 6039EOF 6040 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6043 else 6044 ld_shlibs=no 6045 fi 6046 ;; 6047 6048 sunos4*) 6049 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6050 wlarc= 6051 hardcode_direct=yes 6052 hardcode_shlibpath_var=no 6053 ;; 6054 6055 *) 6056 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6059 else 6060 ld_shlibs=no 6061 fi 6062 ;; 6063 esac 6064 6065 if test "$ld_shlibs" = yes; then 6066 runpath_var=LD_RUN_PATH 6067 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6068 export_dynamic_flag_spec='${wl}--export-dynamic' 6069 case $host_os in 6070 cygwin* | mingw* | pw32*) 6071 # dlltool doesn't understand --whole-archive et. al. 6072 whole_archive_flag_spec= 6073 ;; 6074 *) 6075 # ancient GNU ld didn't support --whole-archive et. al. 6076 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 6077 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6078 else 6079 whole_archive_flag_spec= 6080 fi 6081 ;; 6082 esac 6083 fi 6084else 6085 # PORTME fill in a description of your system's linker (not GNU ld) 6086 case $host_os in 6087 aix3*) 6088 allow_undefined_flag=unsupported 6089 always_export_symbols=yes 6090 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' 6091 # Note: this linker hardcodes the directories in LIBPATH if there 6092 # are no directories specified by -L. 6093 hardcode_minus_L=yes 6094 if test "$GCC" = yes && test -z "$link_static_flag"; then 6095 # Neither direct hardcoding nor static linking is supported with a 6096 # broken collect2. 6097 hardcode_direct=unsupported 6098 fi 6099 ;; 6100 6101 aix4* | aix5*) 6102 if test "$host_cpu" = ia64; then 6103 # On IA64, the linker does run time linking by default, so we don't 6104 # have to do anything special. 6105 aix_use_runtimelinking=no 6106 exp_sym_flag='-Bexport' 6107 no_entry_flag="" 6108 else 6109 aix_use_runtimelinking=no 6110 6111 # Test if we are trying to use run time linking or normal 6112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6113 # need to do runtime linking. 6114 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6115 for ld_flag in $LDFLAGS; do 6116 case $ld_flag in 6117 *-brtl*) 6118 aix_use_runtimelinking=yes 6119 break 6120 ;; 6121 esac 6122 done 6123 esac 6124 6125 exp_sym_flag='-bexport' 6126 no_entry_flag='-bnoentry' 6127 fi 6128 6129 # When large executables or shared objects are built, AIX ld can 6130 # have problems creating the table of contents. If linking a library 6131 # or program results in "error TOC overflow" add -mminimal-toc to 6132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6134 6135 hardcode_direct=yes 6136 archive_cmds='' 6137 hardcode_libdir_separator=':' 6138 if test "$GCC" = yes; then 6139 case $host_os in aix4.[012]|aix4.[012].*) 6140 collect2name=`${CC} -print-prog-name=collect2` 6141 if test -f "$collect2name" && \ 6142 strings "$collect2name" | grep resolve_lib_name >/dev/null 6143 then 6144 # We have reworked collect2 6145 hardcode_direct=yes 6146 else 6147 # We have old collect2 6148 hardcode_direct=unsupported 6149 # It fails to find uninstalled libraries when the uninstalled 6150 # path is not listed in the libpath. Setting hardcode_minus_L 6151 # to unsupported forces relinking 6152 hardcode_minus_L=yes 6153 hardcode_libdir_flag_spec='-L$libdir' 6154 hardcode_libdir_separator= 6155 fi 6156 esac 6157 6158 shared_flag='-shared' 6159 else 6160 # not using gcc 6161 if test "$host_cpu" = ia64; then 6162 shared_flag='${wl}-G' 6163 else 6164 if test "$aix_use_runtimelinking" = yes; then 6165 shared_flag='${wl}-G' 6166 else 6167 shared_flag='${wl}-bM:SRE' 6168 fi 6169 fi 6170 fi 6171 6172 # It seems that -bexpall can do strange things, so it is better to 6173 # generate a list of symbols to export. 6174 always_export_symbols=yes 6175 if test "$aix_use_runtimelinking" = yes; then 6176 # Warning - without using the other runtime loading flags (-brtl), 6177 # -berok will link without error, but may produce a broken library. 6178 allow_undefined_flag='-berok' 6179 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 6180 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6181 else 6182 if test "$host_cpu" = ia64; then 6183 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6184 allow_undefined_flag="-z nodefs" 6185 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6186 else 6187 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 6188 # Warning - without using the other run time loading flags, 6189 # -berok will link without error, but may produce a broken library. 6190 allow_undefined_flag='${wl}-berok' 6191 # This is a bit strange, but is similar to how AIX traditionally builds 6192 # it's shared libraries. 6193 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname' 6194 fi 6195 fi 6196 ;; 6197 6198 amigaos*) 6199 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)' 6200 hardcode_libdir_flag_spec='-L$libdir' 6201 hardcode_minus_L=yes 6202 # see comment about different semantics on the GNU ld section 6203 ld_shlibs=no 6204 ;; 6205 6206 cygwin* | mingw* | pw32*) 6207 # When not using gcc, we currently assume that we are using 6208 # Microsoft Visual C++. 6209 # hardcode_libdir_flag_spec is actually meaningless, as there is 6210 # no search path for DLLs. 6211 hardcode_libdir_flag_spec=' ' 6212 allow_undefined_flag=unsupported 6213 # Tell ltmain to make .lib files, not .a files. 6214 libext=lib 6215 # FIXME: Setting linknames here is a bad hack. 6216 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6217 # The linker will automatically build a .lib file if we build a DLL. 6218 old_archive_from_new_cmds='true' 6219 # FIXME: Should let the user specify the lib program. 6220 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6221 fix_srcfile_path='`cygpath -w "$srcfile"`' 6222 ;; 6223 6224 darwin* | rhapsody*) 6225 case "$host_os" in 6226 rhapsody* | darwin1.[012]) 6227 allow_undefined_flag='-undefined suppress' 6228 ;; 6229 *) # Darwin 1.3 on 6230 allow_undefined_flag='-flat_namespace -undefined suppress' 6231 ;; 6232 esac 6233 # FIXME: Relying on posixy $() will cause problems for 6234 # cross-compilation, but unfortunately the echo tests do not 6235 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 6236 # `"' quotes if we put them in here... so don't! 6237 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' 6238 # We need to add '_' to the symbols in $export_symbols first 6239 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 6240 hardcode_direct=yes 6241 hardcode_shlibpath_var=no 6242 whole_archive_flag_spec='-all_load $convenience' 6243 ;; 6244 6245 freebsd1*) 6246 ld_shlibs=no 6247 ;; 6248 6249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6250 # support. Future versions do this automatically, but an explicit c++rt0.o 6251 # does not break anything, and helps significantly (at the cost of a little 6252 # extra space). 6253 freebsd2.2*) 6254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6255 hardcode_libdir_flag_spec='-R$libdir' 6256 hardcode_direct=yes 6257 hardcode_shlibpath_var=no 6258 ;; 6259 6260 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6261 freebsd2*) 6262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6263 hardcode_direct=yes 6264 hardcode_minus_L=yes 6265 hardcode_shlibpath_var=no 6266 ;; 6267 6268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6269 freebsd*) 6270 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6271 hardcode_libdir_flag_spec='-R$libdir' 6272 hardcode_direct=yes 6273 hardcode_shlibpath_var=no 6274 ;; 6275 6276 hpux9* | hpux10* | hpux11*) 6277 case $host_os in 6278 hpux9*) 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' ;; 6279 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 6280 esac 6281 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6282 hardcode_libdir_separator=: 6283 hardcode_direct=yes 6284 hardcode_minus_L=yes # Not in the search PATH, but as the default 6285 # location of the library. 6286 export_dynamic_flag_spec='${wl}-E' 6287 ;; 6288 6289 irix5* | irix6* | nonstopux*) 6290 if test "$GCC" = yes; then 6291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6293 else 6294 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6295 hardcode_libdir_flag_spec='-rpath $libdir' 6296 fi 6297 hardcode_libdir_separator=: 6298 link_all_deplibs=yes 6299 ;; 6300 6301 netbsd*) 6302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6304 else 6305 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6306 fi 6307 hardcode_libdir_flag_spec='-R$libdir' 6308 hardcode_direct=yes 6309 hardcode_shlibpath_var=no 6310 ;; 6311 6312 newsos6) 6313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6314 hardcode_direct=yes 6315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6316 hardcode_libdir_separator=: 6317 hardcode_shlibpath_var=no 6318 ;; 6319 6320 openbsd*) 6321 hardcode_direct=yes 6322 hardcode_shlibpath_var=no 6323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6326 export_dynamic_flag_spec='${wl}-E' 6327 else 6328 case "$host_os" in 6329 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6331 hardcode_libdir_flag_spec='-R$libdir' 6332 ;; 6333 *) 6334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6336 ;; 6337 esac 6338 fi 6339 ;; 6340 6341 os2*) 6342 hardcode_libdir_flag_spec='-L$libdir' 6343 hardcode_minus_L=yes 6344 allow_undefined_flag=unsupported 6345 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' 6346 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6347 ;; 6348 6349 osf3*) 6350 if test "$GCC" = yes; then 6351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6352 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6353 else 6354 allow_undefined_flag=' -expect_unresolved \*' 6355 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6356 fi 6357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6358 hardcode_libdir_separator=: 6359 ;; 6360 6361 osf4* | osf5*) # as osf3* with the addition of -msym flag 6362 if test "$GCC" = yes; then 6363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6364 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6366 else 6367 allow_undefined_flag=' -expect_unresolved \*' 6368 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6369 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6370 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6371 6372 #Both c and cxx compiler support -rpath directly 6373 hardcode_libdir_flag_spec='-rpath $libdir' 6374 fi 6375 hardcode_libdir_separator=: 6376 ;; 6377 6378 sco3.2v5*) 6379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6380 hardcode_shlibpath_var=no 6381 runpath_var=LD_RUN_PATH 6382 hardcode_runpath_var=yes 6383 export_dynamic_flag_spec='${wl}-Bexport' 6384 ;; 6385 6386 solaris*) 6387 # gcc --version < 3.0 without binutils cannot create self contained 6388 # shared libraries reliably, requiring libgcc.a to resolve some of 6389 # the object symbols generated in some cases. Libraries that use 6390 # assert need libgcc.a to resolve __eprintf, for example. Linking 6391 # a copy of libgcc.a into every shared library to guarantee resolving 6392 # such symbols causes other problems: According to Tim Van Holder 6393 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 6394 # (to the application) exception stack for one thing. 6395 no_undefined_flag=' -z defs' 6396 if test "$GCC" = yes; then 6397 case `$CC --version 2>/dev/null` in 6398 [12].*) 6399 cat <<EOF 1>&2 6400 6401*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 6402*** create self contained shared libraries on Solaris systems, without 6403*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 6404*** -no-undefined support, which will at least allow you to build shared 6405*** libraries. However, you may find that when you link such libraries 6406*** into an application without using GCC, you have to manually add 6407*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 6408*** upgrade to a newer version of GCC. Another option is to rebuild your 6409*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 6410 6411EOF 6412 no_undefined_flag= 6413 ;; 6414 esac 6415 fi 6416 # $CC -shared without GNU ld will not create a library from C++ 6417 # object files and a static libstdc++, better avoid it by now 6418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6419 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6421 hardcode_libdir_flag_spec='-R$libdir' 6422 hardcode_shlibpath_var=no 6423 case $host_os in 6424 solaris2.[0-5] | solaris2.[0-5].*) ;; 6425 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6427 esac 6428 link_all_deplibs=yes 6429 ;; 6430 6431 sunos4*) 6432 if test "x$host_vendor" = xsequent; then 6433 # Use $CC to link under sequent, because it throws in some extra .o 6434 # files that make .init and .fini sections work. 6435 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6436 else 6437 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6438 fi 6439 hardcode_libdir_flag_spec='-L$libdir' 6440 hardcode_direct=yes 6441 hardcode_minus_L=yes 6442 hardcode_shlibpath_var=no 6443 ;; 6444 6445 sysv4) 6446 case $host_vendor in 6447 sni) 6448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6449 hardcode_direct=yes # is this really true??? 6450 ;; 6451 siemens) 6452 ## LD is ld it makes a PLAMLIB 6453 ## CC just makes a GrossModule. 6454 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6455 reload_cmds='$CC -r -o $output$reload_objs' 6456 hardcode_direct=no 6457 ;; 6458 motorola) 6459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6460 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6461 ;; 6462 esac 6463 runpath_var='LD_RUN_PATH' 6464 hardcode_shlibpath_var=no 6465 ;; 6466 6467 sysv4.3*) 6468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6469 hardcode_shlibpath_var=no 6470 export_dynamic_flag_spec='-Bexport' 6471 ;; 6472 6473 sysv5*) 6474 no_undefined_flag=' -z text' 6475 # $CC -shared without GNU ld will not create a library from C++ 6476 # object files and a static libstdc++, better avoid it by now 6477 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6478 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6480 hardcode_libdir_flag_spec= 6481 hardcode_shlibpath_var=no 6482 runpath_var='LD_RUN_PATH' 6483 ;; 6484 6485 uts4*) 6486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6487 hardcode_libdir_flag_spec='-L$libdir' 6488 hardcode_shlibpath_var=no 6489 ;; 6490 6491 dgux*) 6492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6493 hardcode_libdir_flag_spec='-L$libdir' 6494 hardcode_shlibpath_var=no 6495 ;; 6496 6497 sysv4*MP*) 6498 if test -d /usr/nec; then 6499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6500 hardcode_shlibpath_var=no 6501 runpath_var=LD_RUN_PATH 6502 hardcode_runpath_var=yes 6503 ld_shlibs=yes 6504 fi 6505 ;; 6506 6507 sysv4.2uw2*) 6508 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6509 hardcode_direct=yes 6510 hardcode_minus_L=no 6511 hardcode_shlibpath_var=no 6512 hardcode_runpath_var=yes 6513 runpath_var=LD_RUN_PATH 6514 ;; 6515 6516 sysv5uw7* | unixware7*) 6517 no_undefined_flag='${wl}-z ${wl}text' 6518 if test "$GCC" = yes; then 6519 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6520 else 6521 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6522 fi 6523 runpath_var='LD_RUN_PATH' 6524 hardcode_shlibpath_var=no 6525 ;; 6526 6527 *) 6528 ld_shlibs=no 6529 ;; 6530 esac 6531fi 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 6533$as_echo "$ld_shlibs" >&6; } 6534test "$ld_shlibs" = no && can_build_shared=no 6535 6536# Check hardcoding attributes. 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 6538$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 6539hardcode_action= 6540if test -n "$hardcode_libdir_flag_spec" || \ 6541 test -n "$runpath_var"; then 6542 6543 # We can hardcode non-existant directories. 6544 if test "$hardcode_direct" != no && 6545 # If the only mechanism to avoid hardcoding is shlibpath_var, we 6546 # have to relink, otherwise we might link with an installed library 6547 # when we should be linking with a yet-to-be-installed one 6548 ## test "$hardcode_shlibpath_var" != no && 6549 test "$hardcode_minus_L" != no; then 6550 # Linking always hardcodes the temporary library directory. 6551 hardcode_action=relink 6552 else 6553 # We can link without hardcoding, and we can hardcode nonexisting dirs. 6554 hardcode_action=immediate 6555 fi 6556else 6557 # We cannot hardcode anything, or else we can only hardcode existing 6558 # directories. 6559 hardcode_action=unsupported 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 6562$as_echo "$hardcode_action" >&6; } 6563 6564striplib= 6565old_striplib= 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 6567$as_echo_n "checking whether stripping libraries is possible... " >&6; } 6568if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 6569 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6570 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6572$as_echo "yes" >&6; } 6573else 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6575$as_echo "no" >&6; } 6576fi 6577 6578reload_cmds='$LD$reload_flag -o $output$reload_objs' 6579test -z "$deplibs_check_method" && deplibs_check_method=unknown 6580 6581# PORTME Fill in your ld.so characteristics 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 6583$as_echo_n "checking dynamic linker characteristics... " >&6; } 6584library_names_spec= 6585libname_spec='lib$name' 6586soname_spec= 6587postinstall_cmds= 6588postuninstall_cmds= 6589finish_cmds= 6590finish_eval= 6591shlibpath_var= 6592shlibpath_overrides_runpath=unknown 6593version_type=none 6594dynamic_linker="$host_os ld.so" 6595sys_lib_dlsearch_path_spec="/lib /usr/lib" 6596sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6597 6598case $host_os in 6599aix3*) 6600 version_type=linux 6601 library_names_spec='${libname}${release}.so$versuffix $libname.a' 6602 shlibpath_var=LIBPATH 6603 6604 # AIX has no versioning support, so we append a major version to the name. 6605 soname_spec='${libname}${release}.so$major' 6606 ;; 6607 6608aix4* | aix5*) 6609 version_type=linux 6610 need_lib_prefix=no 6611 need_version=no 6612 hardcode_into_libs=yes 6613 if test "$host_cpu" = ia64; then 6614 # AIX 5 supports IA64 6615 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 6616 shlibpath_var=LD_LIBRARY_PATH 6617 else 6618 # With GCC up to 2.95.x, collect2 would create an import file 6619 # for dependence libraries. The import file would start with 6620 # the line `#! .'. This would cause the generated library to 6621 # depend on `.', always an invalid library. This was fixed in 6622 # development snapshots of GCC prior to 3.0. 6623 case $host_os in 6624 aix4 | aix4.[01] | aix4.[01].*) 6625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6626 echo ' yes ' 6627 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6628 : 6629 else 6630 can_build_shared=no 6631 fi 6632 ;; 6633 esac 6634 # AIX (on Power*) has no versioning support, so currently we can 6635 # not hardcode correct soname into executable. Probably we can 6636 # add versioning support to collect2, so additional links can 6637 # be useful in future. 6638 if test "$aix_use_runtimelinking" = yes; then 6639 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 6640 # instead of lib<name>.a to let people know that these are not 6641 # typical AIX shared libraries. 6642 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6643 else 6644 # We preserve .a as extension for shared libraries through AIX4.2 6645 # and later when we are not doing run time linking. 6646 library_names_spec='${libname}${release}.a $libname.a' 6647 soname_spec='${libname}${release}.so$major' 6648 fi 6649 shlibpath_var=LIBPATH 6650 fi 6651 hardcode_into_libs=yes 6652 ;; 6653 6654amigaos*) 6655 library_names_spec='$libname.ixlibrary $libname.a' 6656 # Create ${libname}_ixlibrary.a entries in /sys/libs. 6657 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' 6658 ;; 6659 6660beos*) 6661 library_names_spec='${libname}.so' 6662 dynamic_linker="$host_os ld.so" 6663 shlibpath_var=LIBRARY_PATH 6664 ;; 6665 6666bsdi4*) 6667 version_type=linux 6668 need_version=no 6669 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6670 soname_spec='${libname}${release}.so$major' 6671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 6672 shlibpath_var=LD_LIBRARY_PATH 6673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 6674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 6675 export_dynamic_flag_spec=-rdynamic 6676 # the default ld.so.conf also contains /usr/contrib/lib and 6677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 6678 # libtool to hard-code these into programs 6679 ;; 6680 6681cygwin* | mingw* | pw32*) 6682 version_type=windows 6683 need_version=no 6684 need_lib_prefix=no 6685 case $GCC,$host_os in 6686 yes,cygwin*) 6687 library_names_spec='$libname.dll.a' 6688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6689 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 6690 dldir=$destdir/`dirname \$dlpath`~ 6691 test -d \$dldir || mkdir -p \$dldir~ 6692 $install_prog .libs/$dlname \$dldir/$dlname' 6693 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 6694 dlpath=$dir/\$dldll~ 6695 $rm \$dlpath' 6696 ;; 6697 yes,mingw*) 6698 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` 6700 ;; 6701 yes,pw32*) 6702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 6703 ;; 6704 *) 6705 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 6706 ;; 6707 esac 6708 dynamic_linker='Win32 ld.exe' 6709 # FIXME: first we should search . and the directory the executable is in 6710 shlibpath_var=PATH 6711 ;; 6712 6713darwin* | rhapsody*) 6714 dynamic_linker="$host_os dyld" 6715 version_type=darwin 6716 need_lib_prefix=no 6717 need_version=no 6718 # FIXME: Relying on posixy $() will cause problems for 6719 # cross-compilation, but unfortunately the echo tests do not 6720 # yet detect zsh echo's removal of \ escapes. 6721 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 6722 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 6723 shlibpath_overrides_runpath=yes 6724 shlibpath_var=DYLD_LIBRARY_PATH 6725 ;; 6726 6727freebsd1*) 6728 dynamic_linker=no 6729 ;; 6730 6731freebsd*-gnu*) 6732 version_type=linux 6733 need_lib_prefix=no 6734 need_version=no 6735 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6736 soname_spec='${libname}${release}.so$major' 6737 shlibpath_var=LD_LIBRARY_PATH 6738 shlibpath_overrides_runpath=no 6739 hardcode_into_libs=yes 6740 dynamic_linker='GNU/FreeBSD ld.so' 6741 ;; 6742 6743freebsd*) 6744 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 6745 version_type=freebsd-$objformat 6746 case $version_type in 6747 freebsd-elf*) 6748 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6749 need_version=no 6750 need_lib_prefix=no 6751 ;; 6752 freebsd-*) 6753 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 6754 need_version=yes 6755 ;; 6756 esac 6757 shlibpath_var=LD_LIBRARY_PATH 6758 case $host_os in 6759 freebsd2*) 6760 shlibpath_overrides_runpath=yes 6761 ;; 6762 *) 6763 shlibpath_overrides_runpath=no 6764 hardcode_into_libs=yes 6765 ;; 6766 esac 6767 ;; 6768 6769gnu*) 6770 version_type=linux 6771 need_lib_prefix=no 6772 need_version=no 6773 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 6774 soname_spec='${libname}${release}.so$major' 6775 shlibpath_var=LD_LIBRARY_PATH 6776 hardcode_into_libs=yes 6777 ;; 6778 6779hpux9* | hpux10* | hpux11*) 6780 # Give a soname corresponding to the major version so that dld.sl refuses to 6781 # link against other versions. 6782 dynamic_linker="$host_os dld.sl" 6783 version_type=sunos 6784 need_lib_prefix=no 6785 need_version=no 6786 shlibpath_var=SHLIB_PATH 6787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6788 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 6789 soname_spec='${libname}${release}.sl$major' 6790 # HP-UX runs *really* slowly unless shared libraries are mode 555. 6791 postinstall_cmds='chmod 555 $lib' 6792 ;; 6793 6794irix5* | irix6* | nonstopux*) 6795 case $host_os in 6796 nonstopux*) version_type=nonstopux ;; 6797 *) version_type=irix ;; 6798 esac 6799 need_lib_prefix=no 6800 need_version=no 6801 soname_spec='${libname}${release}.so$major' 6802 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 6803 case $host_os in 6804 irix5* | nonstopux*) 6805 libsuff= shlibsuff= 6806 ;; 6807 *) 6808 case $LD in # libtool.m4 will add one of these switches to LD 6809 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 6810 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 6811 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 6812 *) libsuff= shlibsuff= libmagic=never-match;; 6813 esac 6814 ;; 6815 esac 6816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6817 shlibpath_overrides_runpath=no 6818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 6819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 6820 ;; 6821 6822# No shared lib support for Linux oldld, aout, or coff. 6823linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 6824 dynamic_linker=no 6825 ;; 6826 6827# This must be Linux ELF. 6828linux-gnu*) 6829 version_type=linux 6830 need_lib_prefix=no 6831 need_version=no 6832 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6833 soname_spec='${libname}${release}.so$major' 6834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6835 shlibpath_var=LD_LIBRARY_PATH 6836 shlibpath_overrides_runpath=no 6837 # This implies no fast_install, which is unacceptable. 6838 # Some rework will be needed to allow for fast_install 6839 # before this can be enabled. 6840 hardcode_into_libs=yes 6841 6842 # We used to test for /lib/ld.so.1 and disable shared libraries on 6843 # powerpc, because MkLinux only supported shared libraries with the 6844 # GNU dynamic linker. Since this was broken with cross compilers, 6845 # most powerpc-linux boxes support dynamic linking these days and 6846 # people can always --disable-shared, the test was removed, and we 6847 # assume the GNU/Linux dynamic linker is in use. 6848 dynamic_linker='GNU/Linux ld.so' 6849 ;; 6850 6851netbsd*) 6852 version_type=sunos 6853 need_lib_prefix=no 6854 need_version=no 6855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6856 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6858 dynamic_linker='NetBSD (a.out) ld.so' 6859 else 6860 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 6861 soname_spec='${libname}${release}.so$major' 6862 dynamic_linker='NetBSD ld.elf_so' 6863 fi 6864 shlibpath_var=LD_LIBRARY_PATH 6865 shlibpath_overrides_runpath=yes 6866 hardcode_into_libs=yes 6867 ;; 6868 6869newsos6) 6870 version_type=linux 6871 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6872 shlibpath_var=LD_LIBRARY_PATH 6873 shlibpath_overrides_runpath=yes 6874 ;; 6875 6876openbsd*) 6877 version_type=sunos 6878 need_lib_prefix=no 6879 need_version=no 6880 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6881 case "$host_os" in 6882 openbsd2.[89] | openbsd2.[89].*) 6883 shlibpath_overrides_runpath=no 6884 ;; 6885 *) 6886 shlibpath_overrides_runpath=yes 6887 ;; 6888 esac 6889 else 6890 shlibpath_overrides_runpath=yes 6891 fi 6892 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6894 shlibpath_var=LD_LIBRARY_PATH 6895 ;; 6896 6897os2*) 6898 libname_spec='$name' 6899 need_lib_prefix=no 6900 library_names_spec='$libname.dll $libname.a' 6901 dynamic_linker='OS/2 ld.exe' 6902 shlibpath_var=LIBPATH 6903 ;; 6904 6905osf3* | osf4* | osf5*) 6906 version_type=osf 6907 need_version=no 6908 need_lib_prefix=no 6909 soname_spec='${libname}${release}.so$major' 6910 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6911 shlibpath_var=LD_LIBRARY_PATH 6912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 6914 hardcode_into_libs=yes 6915 ;; 6916 6917sco3.2v5*) 6918 version_type=osf 6919 soname_spec='${libname}${release}.so$major' 6920 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6921 shlibpath_var=LD_LIBRARY_PATH 6922 ;; 6923 6924solaris*) 6925 version_type=linux 6926 need_lib_prefix=no 6927 need_version=no 6928 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6929 soname_spec='${libname}${release}.so$major' 6930 shlibpath_var=LD_LIBRARY_PATH 6931 shlibpath_overrides_runpath=yes 6932 hardcode_into_libs=yes 6933 # ldd complains unless libraries are executable 6934 postinstall_cmds='chmod +x $lib' 6935 ;; 6936 6937sunos4*) 6938 version_type=sunos 6939 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6940 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 6941 shlibpath_var=LD_LIBRARY_PATH 6942 shlibpath_overrides_runpath=yes 6943 if test "$with_gnu_ld" = yes; then 6944 need_lib_prefix=no 6945 fi 6946 need_version=yes 6947 ;; 6948 6949sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6950 version_type=linux 6951 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6952 soname_spec='${libname}${release}.so$major' 6953 shlibpath_var=LD_LIBRARY_PATH 6954 case $host_vendor in 6955 sni) 6956 shlibpath_overrides_runpath=no 6957 need_lib_prefix=no 6958 export_dynamic_flag_spec='${wl}-Blargedynsym' 6959 runpath_var=LD_RUN_PATH 6960 ;; 6961 siemens) 6962 need_lib_prefix=no 6963 ;; 6964 motorola) 6965 need_lib_prefix=no 6966 need_version=no 6967 shlibpath_overrides_runpath=no 6968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 6969 ;; 6970 esac 6971 ;; 6972 6973uts4*) 6974 version_type=linux 6975 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6976 soname_spec='${libname}${release}.so$major' 6977 shlibpath_var=LD_LIBRARY_PATH 6978 ;; 6979 6980dgux*) 6981 version_type=linux 6982 need_lib_prefix=no 6983 need_version=no 6984 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6985 soname_spec='${libname}${release}.so$major' 6986 shlibpath_var=LD_LIBRARY_PATH 6987 ;; 6988 6989sysv4*MP*) 6990 if test -d /usr/nec ;then 6991 version_type=linux 6992 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 6993 soname_spec='$libname.so.$major' 6994 shlibpath_var=LD_LIBRARY_PATH 6995 fi 6996 ;; 6997 6998*) 6999 dynamic_linker=no 7000 ;; 7001esac 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 7003$as_echo "$dynamic_linker" >&6; } 7004test "$dynamic_linker" = no && can_build_shared=no 7005 7006# Report the final consequences. 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 7008$as_echo_n "checking if libtool supports shared libraries... " >&6; } 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 7010$as_echo "$can_build_shared" >&6; } 7011 7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 7013$as_echo_n "checking whether to build shared libraries... " >&6; } 7014test "$can_build_shared" = "no" && enable_shared=no 7015 7016# On AIX, shared libraries and static libraries use the same namespace, and 7017# are all built from PIC. 7018case "$host_os" in 7019aix3*) 7020 test "$enable_shared" = yes && enable_static=no 7021 if test -n "$RANLIB"; then 7022 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7023 postinstall_cmds='$RANLIB $lib' 7024 fi 7025 ;; 7026 7027aix4*) 7028 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7029 test "$enable_shared" = yes && enable_static=no 7030 fi 7031 ;; 7032esac 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 7034$as_echo "$enable_shared" >&6; } 7035 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 7037$as_echo_n "checking whether to build static libraries... " >&6; } 7038# Make sure either enable_shared or enable_static is yes. 7039test "$enable_shared" = yes || enable_static=yes 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 7041$as_echo "$enable_static" >&6; } 7042 7043if test "$hardcode_action" = relink; then 7044 # Fast installation is not supported 7045 enable_fast_install=no 7046elif test "$shlibpath_overrides_runpath" = yes || 7047 test "$enable_shared" = no; then 7048 # Fast installation is not necessary 7049 enable_fast_install=needless 7050fi 7051 7052variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7053if test "$GCC" = yes; then 7054 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7055fi 7056 7057if test "x$enable_dlopen" != xyes; then 7058 enable_dlopen=unknown 7059 enable_dlopen_self=unknown 7060 enable_dlopen_self_static=unknown 7061else 7062 lt_cv_dlopen=no 7063 lt_cv_dlopen_libs= 7064 7065 case $host_os in 7066 beos*) 7067 lt_cv_dlopen="load_add_on" 7068 lt_cv_dlopen_libs= 7069 lt_cv_dlopen_self=yes 7070 ;; 7071 7072 cygwin* | mingw* | pw32*) 7073 lt_cv_dlopen="LoadLibrary" 7074 lt_cv_dlopen_libs= 7075 ;; 7076 7077 *) 7078 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 7079if test "x$ac_cv_func_shl_load" = x""yes; then : 7080 lt_cv_dlopen="shl_load" 7081else 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 7083$as_echo_n "checking for shl_load in -ldld... " >&6; } 7084if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 ac_check_lib_save_LIBS=$LIBS 7088LIBS="-ldld $LIBS" 7089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090/* end confdefs.h. */ 7091 7092/* Override any GCC internal prototype to avoid an error. 7093 Use char because int might match the return type of a GCC 7094 builtin and then its argument prototype would still apply. */ 7095#ifdef __cplusplus 7096extern "C" 7097#endif 7098char shl_load (); 7099int 7100main () 7101{ 7102return shl_load (); 7103 ; 7104 return 0; 7105} 7106_ACEOF 7107if ac_fn_c_try_link "$LINENO"; then : 7108 ac_cv_lib_dld_shl_load=yes 7109else 7110 ac_cv_lib_dld_shl_load=no 7111fi 7112rm -f core conftest.err conftest.$ac_objext \ 7113 conftest$ac_exeext conftest.$ac_ext 7114LIBS=$ac_check_lib_save_LIBS 7115fi 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 7117$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 7118if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 7119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7120else 7121 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 7122if test "x$ac_cv_func_dlopen" = x""yes; then : 7123 lt_cv_dlopen="dlopen" 7124else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7126$as_echo_n "checking for dlopen in -ldl... " >&6; } 7127if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 7128 $as_echo_n "(cached) " >&6 7129else 7130 ac_check_lib_save_LIBS=$LIBS 7131LIBS="-ldl $LIBS" 7132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134 7135/* Override any GCC internal prototype to avoid an error. 7136 Use char because int might match the return type of a GCC 7137 builtin and then its argument prototype would still apply. */ 7138#ifdef __cplusplus 7139extern "C" 7140#endif 7141char dlopen (); 7142int 7143main () 7144{ 7145return dlopen (); 7146 ; 7147 return 0; 7148} 7149_ACEOF 7150if ac_fn_c_try_link "$LINENO"; then : 7151 ac_cv_lib_dl_dlopen=yes 7152else 7153 ac_cv_lib_dl_dlopen=no 7154fi 7155rm -f core conftest.err conftest.$ac_objext \ 7156 conftest$ac_exeext conftest.$ac_ext 7157LIBS=$ac_check_lib_save_LIBS 7158fi 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7160$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7161if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 7162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7163else 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 7165$as_echo_n "checking for dlopen in -lsvld... " >&6; } 7166if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 ac_check_lib_save_LIBS=$LIBS 7170LIBS="-lsvld $LIBS" 7171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7172/* end confdefs.h. */ 7173 7174/* Override any GCC internal prototype to avoid an error. 7175 Use char because int might match the return type of a GCC 7176 builtin and then its argument prototype would still apply. */ 7177#ifdef __cplusplus 7178extern "C" 7179#endif 7180char dlopen (); 7181int 7182main () 7183{ 7184return dlopen (); 7185 ; 7186 return 0; 7187} 7188_ACEOF 7189if ac_fn_c_try_link "$LINENO"; then : 7190 ac_cv_lib_svld_dlopen=yes 7191else 7192 ac_cv_lib_svld_dlopen=no 7193fi 7194rm -f core conftest.err conftest.$ac_objext \ 7195 conftest$ac_exeext conftest.$ac_ext 7196LIBS=$ac_check_lib_save_LIBS 7197fi 7198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 7199$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 7200if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 7201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7202else 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 7204$as_echo_n "checking for dld_link in -ldld... " >&6; } 7205if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 ac_check_lib_save_LIBS=$LIBS 7209LIBS="-ldld $LIBS" 7210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211/* end confdefs.h. */ 7212 7213/* Override any GCC internal prototype to avoid an error. 7214 Use char because int might match the return type of a GCC 7215 builtin and then its argument prototype would still apply. */ 7216#ifdef __cplusplus 7217extern "C" 7218#endif 7219char dld_link (); 7220int 7221main () 7222{ 7223return dld_link (); 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228if ac_fn_c_try_link "$LINENO"; then : 7229 ac_cv_lib_dld_dld_link=yes 7230else 7231 ac_cv_lib_dld_dld_link=no 7232fi 7233rm -f core conftest.err conftest.$ac_objext \ 7234 conftest$ac_exeext conftest.$ac_ext 7235LIBS=$ac_check_lib_save_LIBS 7236fi 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 7238$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 7239if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 7240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7241fi 7242 7243 7244fi 7245 7246 7247fi 7248 7249 7250fi 7251 7252 7253fi 7254 7255 7256fi 7257 7258 ;; 7259 esac 7260 7261 if test "x$lt_cv_dlopen" != xno; then 7262 enable_dlopen=yes 7263 else 7264 enable_dlopen=no 7265 fi 7266 7267 case $lt_cv_dlopen in 7268 dlopen) 7269 save_CPPFLAGS="$CPPFLAGS" 7270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 7271 7272 save_LDFLAGS="$LDFLAGS" 7273 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7274 7275 save_LIBS="$LIBS" 7276 LIBS="$lt_cv_dlopen_libs $LIBS" 7277 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 7279$as_echo_n "checking whether a program can dlopen itself... " >&6; } 7280if test "${lt_cv_dlopen_self+set}" = set; then : 7281 $as_echo_n "(cached) " >&6 7282else 7283 if test "$cross_compiling" = yes; then : 7284 lt_cv_dlopen_self=cross 7285else 7286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7287 lt_status=$lt_dlunknown 7288 cat > conftest.$ac_ext <<EOF 7289#line 7289 "configure" 7290#include "confdefs.h" 7291 7292#if HAVE_DLFCN_H 7293#include <dlfcn.h> 7294#endif 7295 7296#include <stdio.h> 7297 7298#ifdef RTLD_GLOBAL 7299# define LT_DLGLOBAL RTLD_GLOBAL 7300#else 7301# ifdef DL_GLOBAL 7302# define LT_DLGLOBAL DL_GLOBAL 7303# else 7304# define LT_DLGLOBAL 0 7305# endif 7306#endif 7307 7308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7309 find out it does not work in some platform. */ 7310#ifndef LT_DLLAZY_OR_NOW 7311# ifdef RTLD_LAZY 7312# define LT_DLLAZY_OR_NOW RTLD_LAZY 7313# else 7314# ifdef DL_LAZY 7315# define LT_DLLAZY_OR_NOW DL_LAZY 7316# else 7317# ifdef RTLD_NOW 7318# define LT_DLLAZY_OR_NOW RTLD_NOW 7319# else 7320# ifdef DL_NOW 7321# define LT_DLLAZY_OR_NOW DL_NOW 7322# else 7323# define LT_DLLAZY_OR_NOW 0 7324# endif 7325# endif 7326# endif 7327# endif 7328#endif 7329 7330#ifdef __cplusplus 7331extern "C" void exit (int); 7332#endif 7333 7334void fnord() { int i=42;} 7335int main () 7336{ 7337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7338 int status = $lt_dlunknown; 7339 7340 if (self) 7341 { 7342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7344 /* dlclose (self); */ 7345 } 7346 7347 exit (status); 7348} 7349EOF 7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7351 (eval $ac_link) 2>&5 7352 ac_status=$? 7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 7355 (./conftest; exit; ) 2>/dev/null 7356 lt_status=$? 7357 case x$lt_status in 7358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7360 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 7361 esac 7362 else : 7363 # compilation failed 7364 lt_cv_dlopen_self=no 7365 fi 7366fi 7367rm -fr conftest* 7368 7369 7370fi 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 7372$as_echo "$lt_cv_dlopen_self" >&6; } 7373 7374 if test "x$lt_cv_dlopen_self" = xyes; then 7375 LDFLAGS="$LDFLAGS $link_static_flag" 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 7377$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 7378if test "${lt_cv_dlopen_self_static+set}" = set; then : 7379 $as_echo_n "(cached) " >&6 7380else 7381 if test "$cross_compiling" = yes; then : 7382 lt_cv_dlopen_self_static=cross 7383else 7384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7385 lt_status=$lt_dlunknown 7386 cat > conftest.$ac_ext <<EOF 7387#line 7387 "configure" 7388#include "confdefs.h" 7389 7390#if HAVE_DLFCN_H 7391#include <dlfcn.h> 7392#endif 7393 7394#include <stdio.h> 7395 7396#ifdef RTLD_GLOBAL 7397# define LT_DLGLOBAL RTLD_GLOBAL 7398#else 7399# ifdef DL_GLOBAL 7400# define LT_DLGLOBAL DL_GLOBAL 7401# else 7402# define LT_DLGLOBAL 0 7403# endif 7404#endif 7405 7406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7407 find out it does not work in some platform. */ 7408#ifndef LT_DLLAZY_OR_NOW 7409# ifdef RTLD_LAZY 7410# define LT_DLLAZY_OR_NOW RTLD_LAZY 7411# else 7412# ifdef DL_LAZY 7413# define LT_DLLAZY_OR_NOW DL_LAZY 7414# else 7415# ifdef RTLD_NOW 7416# define LT_DLLAZY_OR_NOW RTLD_NOW 7417# else 7418# ifdef DL_NOW 7419# define LT_DLLAZY_OR_NOW DL_NOW 7420# else 7421# define LT_DLLAZY_OR_NOW 0 7422# endif 7423# endif 7424# endif 7425# endif 7426#endif 7427 7428#ifdef __cplusplus 7429extern "C" void exit (int); 7430#endif 7431 7432void fnord() { int i=42;} 7433int main () 7434{ 7435 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7436 int status = $lt_dlunknown; 7437 7438 if (self) 7439 { 7440 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7441 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7442 /* dlclose (self); */ 7443 } 7444 7445 exit (status); 7446} 7447EOF 7448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7449 (eval $ac_link) 2>&5 7450 ac_status=$? 7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7452 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 7453 (./conftest; exit; ) 2>/dev/null 7454 lt_status=$? 7455 case x$lt_status in 7456 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7457 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7458 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 7459 esac 7460 else : 7461 # compilation failed 7462 lt_cv_dlopen_self_static=no 7463 fi 7464fi 7465rm -fr conftest* 7466 7467 7468fi 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 7470$as_echo "$lt_cv_dlopen_self_static" >&6; } 7471 fi 7472 7473 CPPFLAGS="$save_CPPFLAGS" 7474 LDFLAGS="$save_LDFLAGS" 7475 LIBS="$save_LIBS" 7476 ;; 7477 esac 7478 7479 case $lt_cv_dlopen_self in 7480 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 7481 *) enable_dlopen_self=unknown ;; 7482 esac 7483 7484 case $lt_cv_dlopen_self_static in 7485 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 7486 *) enable_dlopen_self_static=unknown ;; 7487 esac 7488fi 7489 7490 7491if test "$enable_shared" = yes && test "$GCC" = yes; then 7492 case $archive_cmds in 7493 *'~'*) 7494 # FIXME: we may have to deal with multi-command sequences. 7495 ;; 7496 '$CC '*) 7497 # Test whether the compiler implicitly links with -lc since on some 7498 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7499 # to ld, don't add -lc before -lgcc. 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 7501$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 7502 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 7503 $as_echo_n "(cached) " >&6 7504else 7505 $rm conftest* 7506 echo 'static int dummy;' > conftest.$ac_ext 7507 7508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7509 (eval $ac_compile) 2>&5 7510 ac_status=$? 7511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7512 test $ac_status = 0; }; then 7513 soname=conftest 7514 lib=conftest 7515 libobjs=conftest.$ac_objext 7516 deplibs= 7517 wl=$lt_cv_prog_cc_wl 7518 compiler_flags=-v 7519 linker_flags=-v 7520 verstring= 7521 output_objdir=. 7522 libname=conftest 7523 save_allow_undefined_flag=$allow_undefined_flag 7524 allow_undefined_flag= 7525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 7526 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7527 ac_status=$? 7528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7529 test $ac_status = 0; } 7530 then 7531 lt_cv_archive_cmds_need_lc=no 7532 else 7533 lt_cv_archive_cmds_need_lc=yes 7534 fi 7535 allow_undefined_flag=$save_allow_undefined_flag 7536 else 7537 cat conftest.err 1>&5 7538 fi 7539fi 7540 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 7542$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 7543 ;; 7544 esac 7545fi 7546need_lc=${lt_cv_archive_cmds_need_lc-yes} 7547 7548# The second clause should only fire when bootstrapping the 7549# libtool distribution, otherwise you forgot to ship ltmain.sh 7550# with your package, and you will get complaints that there are 7551# no rules to generate ltmain.sh. 7552if test -f "$ltmain"; then 7553 : 7554else 7555 # If there is no Makefile yet, we rely on a make rule to execute 7556 # `config.status --recheck' to rerun these tests and create the 7557 # libtool script then. 7558 test -f Makefile && make "$ltmain" 7559fi 7560 7561if test -f "$ltmain"; then 7562 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 7563 $rm -f "${ofile}T" 7564 7565 echo creating $ofile 7566 7567 # Now quote all the things that may contain metacharacters while being 7568 # careful not to overquote the AC_SUBSTed values. We take copies of the 7569 # variables and quote the copies for generation of the libtool script. 7570 for var in echo old_CC old_CFLAGS SED \ 7571 AR AR_FLAGS CC LD LN_S NM SHELL \ 7572 reload_flag reload_cmds wl \ 7573 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 7574 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 7575 library_names_spec soname_spec \ 7576 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 7577 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 7578 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 7579 old_striplib striplib file_magic_cmd export_symbols_cmds \ 7580 deplibs_check_method allow_undefined_flag no_undefined_flag \ 7581 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 7582 global_symbol_to_c_name_address \ 7583 hardcode_libdir_flag_spec hardcode_libdir_separator \ 7584 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 7585 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 7586 7587 case $var in 7588 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 7589 old_postinstall_cmds | old_postuninstall_cmds | \ 7590 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 7591 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 7592 postinstall_cmds | postuninstall_cmds | \ 7593 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 7594 # Double-quote double-evaled strings. 7595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 7596 ;; 7597 *) 7598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 7599 ;; 7600 esac 7601 done 7602 7603 cat <<__EOF__ > "${ofile}T" 7604#! $SHELL 7605 7606# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7607# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 7608# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7609# 7610# Copyright (C) 1996-2000 Free Software Foundation, Inc. 7611# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7612# 7613# This program is free software; you can redistribute it and/or modify 7614# it under the terms of the GNU General Public License as published by 7615# the Free Software Foundation; either version 2 of the License, or 7616# (at your option) any later version. 7617# 7618# This program is distributed in the hope that it will be useful, but 7619# WITHOUT ANY WARRANTY; without even the implied warranty of 7620# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7621# General Public License for more details. 7622# 7623# You should have received a copy of the GNU General Public License 7624# along with this program; if not, write to the Free Software 7625# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7626# 7627# As a special exception to the GNU General Public License, if you 7628# distribute this file as part of a program that contains a 7629# configuration script generated by Autoconf, you may include it under 7630# the same distribution terms that you use for the rest of that program. 7631 7632# A sed that does not truncate output. 7633SED=$lt_SED 7634 7635# Sed that helps us avoid accidentally triggering echo(1) options like -n. 7636Xsed="${SED} -e s/^X//" 7637 7638# The HP-UX ksh and POSIX shell print the target directory to stdout 7639# if CDPATH is set. 7640if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7641 7642# ### BEGIN LIBTOOL CONFIG 7643 7644# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7645 7646# Shell to use when invoking shell scripts. 7647SHELL=$lt_SHELL 7648 7649# Whether or not to build shared libraries. 7650build_libtool_libs=$enable_shared 7651 7652# Whether or not to build static libraries. 7653build_old_libs=$enable_static 7654 7655# Whether or not to add -lc for building shared libraries. 7656build_libtool_need_lc=$need_lc 7657 7658# Whether or not to optimize for fast installation. 7659fast_install=$enable_fast_install 7660 7661# The host system. 7662host_alias=$host_alias 7663host=$host 7664 7665# An echo program that does not interpret backslashes. 7666echo=$lt_echo 7667 7668# The archiver. 7669AR=$lt_AR 7670AR_FLAGS=$lt_AR_FLAGS 7671 7672# The default C compiler. 7673CC=$lt_CC 7674 7675# Is the compiler the GNU C compiler? 7676with_gcc=$GCC 7677 7678# The linker used to build libraries. 7679LD=$lt_LD 7680 7681# Whether we need hard or soft links. 7682LN_S=$lt_LN_S 7683 7684# A BSD-compatible nm program. 7685NM=$lt_NM 7686 7687# A symbol stripping program 7688STRIP=$STRIP 7689 7690# Used to examine libraries when file_magic_cmd begins "file" 7691MAGIC_CMD=$MAGIC_CMD 7692 7693# Used on cygwin: DLL creation program. 7694DLLTOOL="$DLLTOOL" 7695 7696# Used on cygwin: object dumper. 7697OBJDUMP="$OBJDUMP" 7698 7699# Used on cygwin: assembler. 7700AS="$AS" 7701 7702# The name of the directory that contains temporary libtool files. 7703objdir=$objdir 7704 7705# How to create reloadable object files. 7706reload_flag=$lt_reload_flag 7707reload_cmds=$lt_reload_cmds 7708 7709# How to pass a linker flag through the compiler. 7710wl=$lt_wl 7711 7712# Object file suffix (normally "o"). 7713objext="$ac_objext" 7714 7715# Old archive suffix (normally "a"). 7716libext="$libext" 7717 7718# Executable file suffix (normally ""). 7719exeext="$exeext" 7720 7721# Additional compiler flags for building library objects. 7722pic_flag=$lt_pic_flag 7723pic_mode=$pic_mode 7724 7725# Does compiler simultaneously support -c and -o options? 7726compiler_c_o=$lt_compiler_c_o 7727 7728# Can we write directly to a .lo ? 7729compiler_o_lo=$lt_compiler_o_lo 7730 7731# Must we lock files when doing compilation ? 7732need_locks=$lt_need_locks 7733 7734# Do we need the lib prefix for modules? 7735need_lib_prefix=$need_lib_prefix 7736 7737# Do we need a version for libraries? 7738need_version=$need_version 7739 7740# Whether dlopen is supported. 7741dlopen_support=$enable_dlopen 7742 7743# Whether dlopen of programs is supported. 7744dlopen_self=$enable_dlopen_self 7745 7746# Whether dlopen of statically linked programs is supported. 7747dlopen_self_static=$enable_dlopen_self_static 7748 7749# Compiler flag to prevent dynamic linking. 7750link_static_flag=$lt_link_static_flag 7751 7752# Compiler flag to turn off builtin functions. 7753no_builtin_flag=$lt_no_builtin_flag 7754 7755# Compiler flag to allow reflexive dlopens. 7756export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 7757 7758# Compiler flag to generate shared objects directly from archives. 7759whole_archive_flag_spec=$lt_whole_archive_flag_spec 7760 7761# Compiler flag to generate thread-safe objects. 7762thread_safe_flag_spec=$lt_thread_safe_flag_spec 7763 7764# Library versioning type. 7765version_type=$version_type 7766 7767# Format of library name prefix. 7768libname_spec=$lt_libname_spec 7769 7770# List of archive names. First name is the real one, the rest are links. 7771# The last name is the one that the linker finds with -lNAME. 7772library_names_spec=$lt_library_names_spec 7773 7774# The coded name of the library, if different from the real name. 7775soname_spec=$lt_soname_spec 7776 7777# Commands used to build and install an old-style archive. 7778RANLIB=$lt_RANLIB 7779old_archive_cmds=$lt_old_archive_cmds 7780old_postinstall_cmds=$lt_old_postinstall_cmds 7781old_postuninstall_cmds=$lt_old_postuninstall_cmds 7782 7783# Create an old-style archive from a shared archive. 7784old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 7785 7786# Create a temporary old-style archive to link instead of a shared archive. 7787old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 7788 7789# Commands used to build and install a shared archive. 7790archive_cmds=$lt_archive_cmds 7791archive_expsym_cmds=$lt_archive_expsym_cmds 7792postinstall_cmds=$lt_postinstall_cmds 7793postuninstall_cmds=$lt_postuninstall_cmds 7794 7795# Commands to strip libraries. 7796old_striplib=$lt_old_striplib 7797striplib=$lt_striplib 7798 7799# Method to check whether dependent libraries are shared objects. 7800deplibs_check_method=$lt_deplibs_check_method 7801 7802# Command to use when deplibs_check_method == file_magic. 7803file_magic_cmd=$lt_file_magic_cmd 7804 7805# Flag that allows shared libraries with undefined symbols to be built. 7806allow_undefined_flag=$lt_allow_undefined_flag 7807 7808# Flag that forces no undefined symbols. 7809no_undefined_flag=$lt_no_undefined_flag 7810 7811# Commands used to finish a libtool library installation in a directory. 7812finish_cmds=$lt_finish_cmds 7813 7814# Same as above, but a single script fragment to be evaled but not shown. 7815finish_eval=$lt_finish_eval 7816 7817# Take the output of nm and produce a listing of raw symbols and C names. 7818global_symbol_pipe=$lt_global_symbol_pipe 7819 7820# Transform the output of nm in a proper C declaration 7821global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 7822 7823# Transform the output of nm in a C name address pair 7824global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 7825 7826# This is the shared library runtime path variable. 7827runpath_var=$runpath_var 7828 7829# This is the shared library path variable. 7830shlibpath_var=$shlibpath_var 7831 7832# Is shlibpath searched before the hard-coded library search path? 7833shlibpath_overrides_runpath=$shlibpath_overrides_runpath 7834 7835# How to hardcode a shared library path into an executable. 7836hardcode_action=$hardcode_action 7837 7838# Whether we should hardcode library paths into libraries. 7839hardcode_into_libs=$hardcode_into_libs 7840 7841# Flag to hardcode \$libdir into a binary during linking. 7842# This must work even if \$libdir does not exist. 7843hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 7844 7845# Whether we need a single -rpath flag with a separated argument. 7846hardcode_libdir_separator=$lt_hardcode_libdir_separator 7847 7848# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 7849# resulting binary. 7850hardcode_direct=$hardcode_direct 7851 7852# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 7853# resulting binary. 7854hardcode_minus_L=$hardcode_minus_L 7855 7856# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 7857# the resulting binary. 7858hardcode_shlibpath_var=$hardcode_shlibpath_var 7859 7860# Variables whose values should be saved in libtool wrapper scripts and 7861# restored at relink time. 7862variables_saved_for_relink="$variables_saved_for_relink" 7863 7864# Whether libtool must link a program against all its dependency libraries. 7865link_all_deplibs=$link_all_deplibs 7866 7867# Compile-time system search path for libraries 7868sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 7869 7870# Run-time system search path for libraries 7871sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 7872 7873# Fix the shell variable \$srcfile for the compiler. 7874fix_srcfile_path="$fix_srcfile_path" 7875 7876# Set to yes if exported symbols are required. 7877always_export_symbols=$always_export_symbols 7878 7879# The commands to list exported symbols. 7880export_symbols_cmds=$lt_export_symbols_cmds 7881 7882# The commands to extract the exported symbol list from a shared archive. 7883extract_expsyms_cmds=$lt_extract_expsyms_cmds 7884 7885# Symbols that should not be listed in the preloaded symbols. 7886exclude_expsyms=$lt_exclude_expsyms 7887 7888# Symbols that must always be exported. 7889include_expsyms=$lt_include_expsyms 7890 7891# ### END LIBTOOL CONFIG 7892 7893__EOF__ 7894 7895 case $host_os in 7896 aix3*) 7897 cat <<\EOF >> "${ofile}T" 7898 7899# AIX sometimes has problems with the GCC collect2 program. For some 7900# reason, if we set the COLLECT_NAMES environment variable, the problems 7901# vanish in a puff of smoke. 7902if test "X${COLLECT_NAMES+set}" != Xset; then 7903 COLLECT_NAMES= 7904 export COLLECT_NAMES 7905fi 7906EOF 7907 ;; 7908 esac 7909 7910 case $host_os in 7911 cygwin* | mingw* | pw32* | os2*) 7912 cat <<'EOF' >> "${ofile}T" 7913 # This is a source program that is used to create dlls on Windows 7914 # Don't remove nor modify the starting and closing comments 7915# /* ltdll.c starts here */ 7916# #define WIN32_LEAN_AND_MEAN 7917# #include <windows.h> 7918# #undef WIN32_LEAN_AND_MEAN 7919# #include <stdio.h> 7920# 7921# #ifndef __CYGWIN__ 7922# # ifdef __CYGWIN32__ 7923# # define __CYGWIN__ __CYGWIN32__ 7924# # endif 7925# #endif 7926# 7927# #ifdef __cplusplus 7928# extern "C" { 7929# #endif 7930# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 7931# #ifdef __cplusplus 7932# } 7933# #endif 7934# 7935# #ifdef __CYGWIN__ 7936# #include <cygwin/cygwin_dll.h> 7937# DECLARE_CYGWIN_DLL( DllMain ); 7938# #endif 7939# HINSTANCE __hDllInstance_base; 7940# 7941# BOOL APIENTRY 7942# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 7943# { 7944# __hDllInstance_base = hInst; 7945# return TRUE; 7946# } 7947# /* ltdll.c ends here */ 7948 # This is a source program that is used to create import libraries 7949 # on Windows for dlls which lack them. Don't remove nor modify the 7950 # starting and closing comments 7951# /* impgen.c starts here */ 7952# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 7953# 7954# This file is part of GNU libtool. 7955# 7956# This program is free software; you can redistribute it and/or modify 7957# it under the terms of the GNU General Public License as published by 7958# the Free Software Foundation; either version 2 of the License, or 7959# (at your option) any later version. 7960# 7961# This program is distributed in the hope that it will be useful, 7962# but WITHOUT ANY WARRANTY; without even the implied warranty of 7963# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 7964# GNU General Public License for more details. 7965# 7966# You should have received a copy of the GNU General Public License 7967# along with this program; if not, write to the Free Software 7968# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7969# */ 7970# 7971# #include <stdio.h> /* for printf() */ 7972# #include <unistd.h> /* for open(), lseek(), read() */ 7973# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 7974# #include <string.h> /* for strdup() */ 7975# 7976# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 7977# #ifndef O_BINARY 7978# #define O_BINARY 0 7979# #endif 7980# 7981# static unsigned int 7982# pe_get16 (fd, offset) 7983# int fd; 7984# int offset; 7985# { 7986# unsigned char b[2]; 7987# lseek (fd, offset, SEEK_SET); 7988# read (fd, b, 2); 7989# return b[0] + (b[1]<<8); 7990# } 7991# 7992# static unsigned int 7993# pe_get32 (fd, offset) 7994# int fd; 7995# int offset; 7996# { 7997# unsigned char b[4]; 7998# lseek (fd, offset, SEEK_SET); 7999# read (fd, b, 4); 8000# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8001# } 8002# 8003# static unsigned int 8004# pe_as32 (ptr) 8005# void *ptr; 8006# { 8007# unsigned char *b = ptr; 8008# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8009# } 8010# 8011# int 8012# main (argc, argv) 8013# int argc; 8014# char *argv[]; 8015# { 8016# int dll; 8017# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 8018# unsigned long export_rva, export_size, nsections, secptr, expptr; 8019# unsigned long name_rvas, nexp; 8020# unsigned char *expdata, *erva; 8021# char *filename, *dll_name; 8022# 8023# filename = argv[1]; 8024# 8025# dll = open(filename, O_RDONLY|O_BINARY); 8026# if (dll < 1) 8027# return 1; 8028# 8029# dll_name = filename; 8030# 8031# for (i=0; filename[i]; i++) 8032# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 8033# dll_name = filename + i +1; 8034# 8035# pe_header_offset = pe_get32 (dll, 0x3c); 8036# opthdr_ofs = pe_header_offset + 4 + 20; 8037# num_entries = pe_get32 (dll, opthdr_ofs + 92); 8038# 8039# if (num_entries < 1) /* no exports */ 8040# return 1; 8041# 8042# export_rva = pe_get32 (dll, opthdr_ofs + 96); 8043# export_size = pe_get32 (dll, opthdr_ofs + 100); 8044# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 8045# secptr = (pe_header_offset + 4 + 20 + 8046# pe_get16 (dll, pe_header_offset + 4 + 16)); 8047# 8048# expptr = 0; 8049# for (i = 0; i < nsections; i++) 8050# { 8051# char sname[8]; 8052# unsigned long secptr1 = secptr + 40 * i; 8053# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 8054# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 8055# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 8056# lseek(dll, secptr1, SEEK_SET); 8057# read(dll, sname, 8); 8058# if (vaddr <= export_rva && vaddr+vsize > export_rva) 8059# { 8060# expptr = fptr + (export_rva - vaddr); 8061# if (export_rva + export_size > vaddr + vsize) 8062# export_size = vsize - (export_rva - vaddr); 8063# break; 8064# } 8065# } 8066# 8067# expdata = (unsigned char*)malloc(export_size); 8068# lseek (dll, expptr, SEEK_SET); 8069# read (dll, expdata, export_size); 8070# erva = expdata - export_rva; 8071# 8072# nexp = pe_as32 (expdata+24); 8073# name_rvas = pe_as32 (expdata+32); 8074# 8075# printf ("EXPORTS\n"); 8076# for (i = 0; i<nexp; i++) 8077# { 8078# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 8079# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 8080# } 8081# 8082# return 0; 8083# } 8084# /* impgen.c ends here */ 8085 8086EOF 8087 ;; 8088 esac 8089 8090 # We use sed instead of cat because bash on DJGPP gets confused if 8091 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8092 # text mode, it properly converts lines to CR/LF. This bash problem 8093 # is reportedly fixed, but why not run on old versions too? 8094 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 8095 8096 mv -f "${ofile}T" "$ofile" || \ 8097 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 8098 chmod +x "$ofile" 8099fi 8100 8101 8102 8103 8104 8105# This can be used to rebuild libtool when needed 8106LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 8107 8108# Always use our own libtool. 8109LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8110 8111# Prevent multiple expansion 8112 8113 8114 8115 8116 8117 8118arch="" 8119debug="" 8120optimize="" 8121profile="" 8122 8123set -- $CFLAGS 8124CFLAGS="" 8125 8126if test "$GCC" = yes 8127then 8128 CFLAGS="-Wall" 8129fi 8130 8131while test $# -gt 0 8132do 8133 case "$1" in 8134 -Wall) 8135 if test "$GCC" = yes 8136 then 8137 : 8138 else 8139 CFLAGS="$CFLAGS $1" 8140 fi 8141 shift 8142 ;; 8143 -g) 8144 debug="-g" 8145 shift 8146 ;; 8147 -mno-cygwin) 8148 shift 8149 ;; 8150 -m*) 8151 arch="$arch $1" 8152 shift 8153 ;; 8154 -fomit-frame-pointer) 8155 shift 8156 ;; 8157 -O*|-f*) 8158 optimize="$1" 8159 shift 8160 ;; 8161 *) 8162 CFLAGS="$CFLAGS $1" 8163 shift 8164 ;; 8165 esac 8166done 8167 8168 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8170$as_echo_n "checking for ANSI C header files... " >&6; } 8171if test "${ac_cv_header_stdc+set}" = set; then : 8172 $as_echo_n "(cached) " >&6 8173else 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176#include <stdlib.h> 8177#include <stdarg.h> 8178#include <string.h> 8179#include <float.h> 8180 8181int 8182main () 8183{ 8184 8185 ; 8186 return 0; 8187} 8188_ACEOF 8189if ac_fn_c_try_compile "$LINENO"; then : 8190 ac_cv_header_stdc=yes 8191else 8192 ac_cv_header_stdc=no 8193fi 8194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8195 8196if test $ac_cv_header_stdc = yes; then 8197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200#include <string.h> 8201 8202_ACEOF 8203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8204 $EGREP "memchr" >/dev/null 2>&1; then : 8205 8206else 8207 ac_cv_header_stdc=no 8208fi 8209rm -f conftest* 8210 8211fi 8212 8213if test $ac_cv_header_stdc = yes; then 8214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8216/* end confdefs.h. */ 8217#include <stdlib.h> 8218 8219_ACEOF 8220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8221 $EGREP "free" >/dev/null 2>&1; then : 8222 8223else 8224 ac_cv_header_stdc=no 8225fi 8226rm -f conftest* 8227 8228fi 8229 8230if test $ac_cv_header_stdc = yes; then 8231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8232 if test "$cross_compiling" = yes; then : 8233 : 8234else 8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8236/* end confdefs.h. */ 8237#include <ctype.h> 8238#include <stdlib.h> 8239#if ((' ' & 0x0FF) == 0x020) 8240# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8241# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8242#else 8243# define ISLOWER(c) \ 8244 (('a' <= (c) && (c) <= 'i') \ 8245 || ('j' <= (c) && (c) <= 'r') \ 8246 || ('s' <= (c) && (c) <= 'z')) 8247# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8248#endif 8249 8250#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8251int 8252main () 8253{ 8254 int i; 8255 for (i = 0; i < 256; i++) 8256 if (XOR (islower (i), ISLOWER (i)) 8257 || toupper (i) != TOUPPER (i)) 8258 return 2; 8259 return 0; 8260} 8261_ACEOF 8262if ac_fn_c_try_run "$LINENO"; then : 8263 8264else 8265 ac_cv_header_stdc=no 8266fi 8267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8268 conftest.$ac_objext conftest.beam conftest.$ac_ext 8269fi 8270 8271fi 8272fi 8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8274$as_echo "$ac_cv_header_stdc" >&6; } 8275if test $ac_cv_header_stdc = yes; then 8276 8277$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8278 8279fi 8280 8281for ac_header in assert.h unistd.h 8282do : 8283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8284ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8285eval as_val=\$$as_ac_Header 8286 if test "x$as_val" = x""yes; then : 8287 cat >>confdefs.h <<_ACEOF 8288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8289_ACEOF 8290 8291fi 8292 8293done 8294 8295 8296ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 8297if test "x$ac_cv_header_zlib_h" = x""yes; then : 8298 8299else 8300 8301 as_fn_error "zlib.h was not found 8302*** You must first install zlib (libz) before you can build this package. 8303*** If zlib is already installed, you may need to use the CPPFLAGS 8304*** environment variable to specify its installed location, e.g. -I<dir>." "$LINENO" 5 8305 8306fi 8307 8308 8309 8310 8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8312$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8313if test "${ac_cv_c_const+set}" = set; then : 8314 $as_echo_n "(cached) " >&6 8315else 8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8317/* end confdefs.h. */ 8318 8319int 8320main () 8321{ 8322/* FIXME: Include the comments suggested by Paul. */ 8323#ifndef __cplusplus 8324 /* Ultrix mips cc rejects this. */ 8325 typedef int charset[2]; 8326 const charset cs; 8327 /* SunOS 4.1.1 cc rejects this. */ 8328 char const *const *pcpcc; 8329 char **ppc; 8330 /* NEC SVR4.0.2 mips cc rejects this. */ 8331 struct point {int x, y;}; 8332 static struct point const zero = {0,0}; 8333 /* AIX XL C 1.02.0.0 rejects this. 8334 It does not let you subtract one const X* pointer from another in 8335 an arm of an if-expression whose if-part is not a constant 8336 expression */ 8337 const char *g = "string"; 8338 pcpcc = &g + (g ? g-g : 0); 8339 /* HPUX 7.0 cc rejects these. */ 8340 ++pcpcc; 8341 ppc = (char**) pcpcc; 8342 pcpcc = (char const *const *) ppc; 8343 { /* SCO 3.2v4 cc rejects this. */ 8344 char *t; 8345 char const *s = 0 ? (char *) 0 : (char const *) 0; 8346 8347 *t++ = 0; 8348 if (s) return 0; 8349 } 8350 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8351 int x[] = {25, 17}; 8352 const int *foo = &x[0]; 8353 ++foo; 8354 } 8355 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8356 typedef const int *iptr; 8357 iptr p = 0; 8358 ++p; 8359 } 8360 { /* AIX XL C 1.02.0.0 rejects this saying 8361 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8362 struct s { int j; const int *ap[3]; }; 8363 struct s *b; b->j = 5; 8364 } 8365 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8366 const int foo = 10; 8367 if (!foo) return 0; 8368 } 8369 return !cs[0] && !zero.x; 8370#endif 8371 8372 ; 8373 return 0; 8374} 8375_ACEOF 8376if ac_fn_c_try_compile "$LINENO"; then : 8377 ac_cv_c_const=yes 8378else 8379 ac_cv_c_const=no 8380fi 8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8384$as_echo "$ac_cv_c_const" >&6; } 8385if test $ac_cv_c_const = no; then 8386 8387$as_echo "#define const /**/" >>confdefs.h 8388 8389fi 8390 8391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8392$as_echo_n "checking for inline... " >&6; } 8393if test "${ac_cv_c_inline+set}" = set; then : 8394 $as_echo_n "(cached) " >&6 8395else 8396 ac_cv_c_inline=no 8397for ac_kw in inline __inline__ __inline; do 8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8399/* end confdefs.h. */ 8400#ifndef __cplusplus 8401typedef int foo_t; 8402static $ac_kw foo_t static_foo () {return 0; } 8403$ac_kw foo_t foo () {return 0; } 8404#endif 8405 8406_ACEOF 8407if ac_fn_c_try_compile "$LINENO"; then : 8408 ac_cv_c_inline=$ac_kw 8409fi 8410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8411 test "$ac_cv_c_inline" != no && break 8412done 8413 8414fi 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8416$as_echo "$ac_cv_c_inline" >&6; } 8417 8418case $ac_cv_c_inline in 8419 inline | yes) ;; 8420 *) 8421 case $ac_cv_c_inline in 8422 no) ac_val=;; 8423 *) ac_val=$ac_cv_c_inline;; 8424 esac 8425 cat >>confdefs.h <<_ACEOF 8426#ifndef __cplusplus 8427#define inline $ac_val 8428#endif 8429_ACEOF 8430 ;; 8431esac 8432 8433 8434 8435for ac_func in ftruncate 8436do : 8437 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 8438if test "x$ac_cv_func_ftruncate" = x""yes; then : 8439 cat >>confdefs.h <<_ACEOF 8440#define HAVE_FTRUNCATE 1 8441_ACEOF 8442 8443fi 8444done 8445 8446 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5 8448$as_echo_n "checking for compress2 in -lz... " >&6; } 8449if test "${ac_cv_lib_z_compress2+set}" = set; then : 8450 $as_echo_n "(cached) " >&6 8451else 8452 ac_check_lib_save_LIBS=$LIBS 8453LIBS="-lz $LIBS" 8454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8455/* end confdefs.h. */ 8456 8457/* Override any GCC internal prototype to avoid an error. 8458 Use char because int might match the return type of a GCC 8459 builtin and then its argument prototype would still apply. */ 8460#ifdef __cplusplus 8461extern "C" 8462#endif 8463char compress2 (); 8464int 8465main () 8466{ 8467return compress2 (); 8468 ; 8469 return 0; 8470} 8471_ACEOF 8472if ac_fn_c_try_link "$LINENO"; then : 8473 ac_cv_lib_z_compress2=yes 8474else 8475 ac_cv_lib_z_compress2=no 8476fi 8477rm -f core conftest.err conftest.$ac_objext \ 8478 conftest$ac_exeext conftest.$ac_ext 8479LIBS=$ac_check_lib_save_LIBS 8480fi 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5 8482$as_echo "$ac_cv_lib_z_compress2" >&6; } 8483if test "x$ac_cv_lib_z_compress2" = x""yes; then : 8484 cat >>confdefs.h <<_ACEOF 8485#define HAVE_LIBZ 1 8486_ACEOF 8487 8488 LIBS="-lz $LIBS" 8489 8490else 8491 8492 as_fn_error "libz was not found 8493*** You must first install zlib (libz) before you can build this package. 8494*** If zlib is already installed, you may need to use the LDFLAGS 8495*** environment variable to specify its installed location, e.g. -L<dir>." "$LINENO" 5 8496 8497fi 8498 8499 8500 8501cat >confcache <<\_ACEOF 8502# This file is a shell script that caches the results of configure 8503# tests run on this system so they can be shared between configure 8504# scripts and configure runs, see configure's option --config-cache. 8505# It is not useful on other systems. If it contains results you don't 8506# want to keep, you may remove or edit it. 8507# 8508# config.status only pays attention to the cache file if you give it 8509# the --recheck option to rerun configure. 8510# 8511# `ac_cv_env_foo' variables (set or unset) will be overridden when 8512# loading this file, other *unset* `ac_cv_foo' will be assigned the 8513# following values. 8514 8515_ACEOF 8516 8517# The following way of writing the cache mishandles newlines in values, 8518# but we know of no workaround that is simple, portable, and efficient. 8519# So, we kill variables containing newlines. 8520# Ultrix sh set writes to stderr and can't be redirected directly, 8521# and sets the high bit in the cache file unless we assign to the vars. 8522( 8523 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8524 eval ac_val=\$$ac_var 8525 case $ac_val in #( 8526 *${as_nl}*) 8527 case $ac_var in #( 8528 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8529$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8530 esac 8531 case $ac_var in #( 8532 _ | IFS | as_nl) ;; #( 8533 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8534 *) { eval $ac_var=; unset $ac_var;} ;; 8535 esac ;; 8536 esac 8537 done 8538 8539 (set) 2>&1 | 8540 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8541 *${as_nl}ac_space=\ *) 8542 # `set' does not quote correctly, so add quotes: double-quote 8543 # substitution turns \\\\ into \\, and sed turns \\ into \. 8544 sed -n \ 8545 "s/'/'\\\\''/g; 8546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8547 ;; #( 8548 *) 8549 # `set' quotes correctly as required by POSIX, so do not add quotes. 8550 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8551 ;; 8552 esac | 8553 sort 8554) | 8555 sed ' 8556 /^ac_cv_env_/b end 8557 t clear 8558 :clear 8559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8560 t end 8561 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8562 :end' >>confcache 8563if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8564 if test -w "$cache_file"; then 8565 test "x$cache_file" != "x/dev/null" && 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8567$as_echo "$as_me: updating cache $cache_file" >&6;} 8568 cat confcache >$cache_file 8569 else 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8571$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8572 fi 8573fi 8574rm -f confcache 8575 8576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5 8577$as_echo_n "checking whether to enable profiling... " >&6; } 8578# Check whether --enable-profiling was given. 8579if test "${enable_profiling+set}" = set; then : 8580 enableval=$enable_profiling; 8581 case "$enableval" in 8582 yes) profile="-pg" ;; 8583 esac 8584 8585fi 8586 8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5 8588$as_echo "${enable_profiling-no}" >&6; } 8589 8590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 8591$as_echo_n "checking whether to enable debugging... " >&6; } 8592# Check whether --enable-debugging was given. 8593if test "${enable_debugging+set}" = set; then : 8594 enableval=$enable_debugging; 8595 case "$enableval" in 8596 yes) 8597 8598$as_echo "#define DEBUG 1" >>confdefs.h 8599 8600 optimize="" 8601 ;; 8602 no) 8603 if test -n "$profile" 8604 then 8605 as_fn_error "--enable-profiling and --disable-debugging are incompatible" "$LINENO" 5 8606 fi 8607 8608 8609$as_echo "#define NDEBUG 1" >>confdefs.h 8610 8611 debug="" 8612 if test "$GCC" = yes 8613 then 8614 optimize="$optimize -fomit-frame-pointer" 8615 fi 8616 ;; 8617 esac 8618 8619fi 8620 8621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_debugging-default}" >&5 8622$as_echo "${enable_debugging-default}" >&6; } 8623 8624 8625if test ${enable_debugging-default} = yes; then 8626 DEBUG_TRUE= 8627 DEBUG_FALSE='#' 8628else 8629 DEBUG_TRUE='#' 8630 DEBUG_FALSE= 8631fi 8632 8633 8634 8635test -n "$arch" && CFLAGS="$CFLAGS $arch" 8636test -n "$debug" && CFLAGS="$CFLAGS $debug" 8637test -n "$optimize" && CFLAGS="$CFLAGS $optimize" 8638test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile" 8639 8640 8641ac_config_files="$ac_config_files Makefile msvc++/Makefile libid3tag.list" 8642 8643cat >confcache <<\_ACEOF 8644# This file is a shell script that caches the results of configure 8645# tests run on this system so they can be shared between configure 8646# scripts and configure runs, see configure's option --config-cache. 8647# It is not useful on other systems. If it contains results you don't 8648# want to keep, you may remove or edit it. 8649# 8650# config.status only pays attention to the cache file if you give it 8651# the --recheck option to rerun configure. 8652# 8653# `ac_cv_env_foo' variables (set or unset) will be overridden when 8654# loading this file, other *unset* `ac_cv_foo' will be assigned the 8655# following values. 8656 8657_ACEOF 8658 8659# The following way of writing the cache mishandles newlines in values, 8660# but we know of no workaround that is simple, portable, and efficient. 8661# So, we kill variables containing newlines. 8662# Ultrix sh set writes to stderr and can't be redirected directly, 8663# and sets the high bit in the cache file unless we assign to the vars. 8664( 8665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8666 eval ac_val=\$$ac_var 8667 case $ac_val in #( 8668 *${as_nl}*) 8669 case $ac_var in #( 8670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8671$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8672 esac 8673 case $ac_var in #( 8674 _ | IFS | as_nl) ;; #( 8675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8676 *) { eval $ac_var=; unset $ac_var;} ;; 8677 esac ;; 8678 esac 8679 done 8680 8681 (set) 2>&1 | 8682 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8683 *${as_nl}ac_space=\ *) 8684 # `set' does not quote correctly, so add quotes: double-quote 8685 # substitution turns \\\\ into \\, and sed turns \\ into \. 8686 sed -n \ 8687 "s/'/'\\\\''/g; 8688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8689 ;; #( 8690 *) 8691 # `set' quotes correctly as required by POSIX, so do not add quotes. 8692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8693 ;; 8694 esac | 8695 sort 8696) | 8697 sed ' 8698 /^ac_cv_env_/b end 8699 t clear 8700 :clear 8701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8702 t end 8703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8704 :end' >>confcache 8705if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8706 if test -w "$cache_file"; then 8707 test "x$cache_file" != "x/dev/null" && 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8709$as_echo "$as_me: updating cache $cache_file" >&6;} 8710 cat confcache >$cache_file 8711 else 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8713$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8714 fi 8715fi 8716rm -f confcache 8717 8718test "x$prefix" = xNONE && prefix=$ac_default_prefix 8719# Let make expand exec_prefix. 8720test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8721 8722DEFS=-DHAVE_CONFIG_H 8723 8724ac_libobjs= 8725ac_ltlibobjs= 8726for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8727 # 1. Remove the extension, and $U if already installed. 8728 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8729 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8730 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8731 # will be set to the directory where LIBOBJS objects are built. 8732 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8733 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8734done 8735LIBOBJS=$ac_libobjs 8736 8737LTLIBOBJS=$ac_ltlibobjs 8738 8739 8740if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 8741 as_fn_error "conditional \"AMDEP\" was never defined. 8742Usually this means the macro was only invoked conditionally." "$LINENO" 5 8743fi 8744if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 8745 as_fn_error "conditional \"am__fastdepCC\" was never defined. 8746Usually this means the macro was only invoked conditionally." "$LINENO" 5 8747fi 8748if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 8749 as_fn_error "conditional \"DEBUG\" was never defined. 8750Usually this means the macro was only invoked conditionally." "$LINENO" 5 8751fi 8752 8753: ${CONFIG_STATUS=./config.status} 8754ac_write_fail=0 8755ac_clean_files_save=$ac_clean_files 8756ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8757{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8758$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8759as_write_fail=0 8760cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8761#! $SHELL 8762# Generated by $as_me. 8763# Run this file to recreate the current configuration. 8764# Compiler output produced by configure, useful for debugging 8765# configure, is in config.log if it exists. 8766 8767debug=false 8768ac_cs_recheck=false 8769ac_cs_silent=false 8770 8771SHELL=\${CONFIG_SHELL-$SHELL} 8772export SHELL 8773_ASEOF 8774cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8775## -------------------- ## 8776## M4sh Initialization. ## 8777## -------------------- ## 8778 8779# Be more Bourne compatible 8780DUALCASE=1; export DUALCASE # for MKS sh 8781if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8782 emulate sh 8783 NULLCMD=: 8784 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8785 # is contrary to our usage. Disable this feature. 8786 alias -g '${1+"$@"}'='"$@"' 8787 setopt NO_GLOB_SUBST 8788else 8789 case `(set -o) 2>/dev/null` in #( 8790 *posix*) : 8791 set -o posix ;; #( 8792 *) : 8793 ;; 8794esac 8795fi 8796 8797 8798as_nl=' 8799' 8800export as_nl 8801# Printing a long string crashes Solaris 7 /usr/bin/printf. 8802as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8803as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8804as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8805# Prefer a ksh shell builtin over an external printf program on Solaris, 8806# but without wasting forks for bash or zsh. 8807if test -z "$BASH_VERSION$ZSH_VERSION" \ 8808 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8809 as_echo='print -r --' 8810 as_echo_n='print -rn --' 8811elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8812 as_echo='printf %s\n' 8813 as_echo_n='printf %s' 8814else 8815 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8816 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8817 as_echo_n='/usr/ucb/echo -n' 8818 else 8819 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8820 as_echo_n_body='eval 8821 arg=$1; 8822 case $arg in #( 8823 *"$as_nl"*) 8824 expr "X$arg" : "X\\(.*\\)$as_nl"; 8825 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8826 esac; 8827 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8828 ' 8829 export as_echo_n_body 8830 as_echo_n='sh -c $as_echo_n_body as_echo' 8831 fi 8832 export as_echo_body 8833 as_echo='sh -c $as_echo_body as_echo' 8834fi 8835 8836# The user is always right. 8837if test "${PATH_SEPARATOR+set}" != set; then 8838 PATH_SEPARATOR=: 8839 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8840 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8841 PATH_SEPARATOR=';' 8842 } 8843fi 8844 8845 8846# IFS 8847# We need space, tab and new line, in precisely that order. Quoting is 8848# there to prevent editors from complaining about space-tab. 8849# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8850# splitting by setting IFS to empty value.) 8851IFS=" "" $as_nl" 8852 8853# Find who we are. Look in the path if we contain no directory separator. 8854case $0 in #(( 8855 *[\\/]* ) as_myself=$0 ;; 8856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8857for as_dir in $PATH 8858do 8859 IFS=$as_save_IFS 8860 test -z "$as_dir" && as_dir=. 8861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8862 done 8863IFS=$as_save_IFS 8864 8865 ;; 8866esac 8867# We did not find ourselves, most probably we were run as `sh COMMAND' 8868# in which case we are not to be found in the path. 8869if test "x$as_myself" = x; then 8870 as_myself=$0 8871fi 8872if test ! -f "$as_myself"; then 8873 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8874 exit 1 8875fi 8876 8877# Unset variables that we do not need and which cause bugs (e.g. in 8878# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8879# suppresses any "Segmentation fault" message there. '((' could 8880# trigger a bug in pdksh 5.2.14. 8881for as_var in BASH_ENV ENV MAIL MAILPATH 8882do eval test x\${$as_var+set} = xset \ 8883 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8884done 8885PS1='$ ' 8886PS2='> ' 8887PS4='+ ' 8888 8889# NLS nuisances. 8890LC_ALL=C 8891export LC_ALL 8892LANGUAGE=C 8893export LANGUAGE 8894 8895# CDPATH. 8896(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8897 8898 8899# as_fn_error ERROR [LINENO LOG_FD] 8900# --------------------------------- 8901# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8902# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8903# script with status $?, using 1 if that was 0. 8904as_fn_error () 8905{ 8906 as_status=$?; test $as_status -eq 0 && as_status=1 8907 if test "$3"; then 8908 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8909 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 8910 fi 8911 $as_echo "$as_me: error: $1" >&2 8912 as_fn_exit $as_status 8913} # as_fn_error 8914 8915 8916# as_fn_set_status STATUS 8917# ----------------------- 8918# Set $? to STATUS, without forking. 8919as_fn_set_status () 8920{ 8921 return $1 8922} # as_fn_set_status 8923 8924# as_fn_exit STATUS 8925# ----------------- 8926# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8927as_fn_exit () 8928{ 8929 set +e 8930 as_fn_set_status $1 8931 exit $1 8932} # as_fn_exit 8933 8934# as_fn_unset VAR 8935# --------------- 8936# Portably unset VAR. 8937as_fn_unset () 8938{ 8939 { eval $1=; unset $1;} 8940} 8941as_unset=as_fn_unset 8942# as_fn_append VAR VALUE 8943# ---------------------- 8944# Append the text in VALUE to the end of the definition contained in VAR. Take 8945# advantage of any shell optimizations that allow amortized linear growth over 8946# repeated appends, instead of the typical quadratic growth present in naive 8947# implementations. 8948if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8949 eval 'as_fn_append () 8950 { 8951 eval $1+=\$2 8952 }' 8953else 8954 as_fn_append () 8955 { 8956 eval $1=\$$1\$2 8957 } 8958fi # as_fn_append 8959 8960# as_fn_arith ARG... 8961# ------------------ 8962# Perform arithmetic evaluation on the ARGs, and store the result in the 8963# global $as_val. Take advantage of shells that can avoid forks. The arguments 8964# must be portable across $(()) and expr. 8965if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8966 eval 'as_fn_arith () 8967 { 8968 as_val=$(( $* )) 8969 }' 8970else 8971 as_fn_arith () 8972 { 8973 as_val=`expr "$@" || test $? -eq 1` 8974 } 8975fi # as_fn_arith 8976 8977 8978if expr a : '\(a\)' >/dev/null 2>&1 && 8979 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8980 as_expr=expr 8981else 8982 as_expr=false 8983fi 8984 8985if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8986 as_basename=basename 8987else 8988 as_basename=false 8989fi 8990 8991if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8992 as_dirname=dirname 8993else 8994 as_dirname=false 8995fi 8996 8997as_me=`$as_basename -- "$0" || 8998$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8999 X"$0" : 'X\(//\)$' \| \ 9000 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9001$as_echo X/"$0" | 9002 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9003 s//\1/ 9004 q 9005 } 9006 /^X\/\(\/\/\)$/{ 9007 s//\1/ 9008 q 9009 } 9010 /^X\/\(\/\).*/{ 9011 s//\1/ 9012 q 9013 } 9014 s/.*/./; q'` 9015 9016# Avoid depending upon Character Ranges. 9017as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9018as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9019as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9020as_cr_digits='0123456789' 9021as_cr_alnum=$as_cr_Letters$as_cr_digits 9022 9023ECHO_C= ECHO_N= ECHO_T= 9024case `echo -n x` in #((((( 9025-n*) 9026 case `echo 'xy\c'` in 9027 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9028 xy) ECHO_C='\c';; 9029 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9030 ECHO_T=' ';; 9031 esac;; 9032*) 9033 ECHO_N='-n';; 9034esac 9035 9036rm -f conf$$ conf$$.exe conf$$.file 9037if test -d conf$$.dir; then 9038 rm -f conf$$.dir/conf$$.file 9039else 9040 rm -f conf$$.dir 9041 mkdir conf$$.dir 2>/dev/null 9042fi 9043if (echo >conf$$.file) 2>/dev/null; then 9044 if ln -s conf$$.file conf$$ 2>/dev/null; then 9045 as_ln_s='ln -s' 9046 # ... but there are two gotchas: 9047 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9048 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9049 # In both cases, we have to default to `cp -p'. 9050 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9051 as_ln_s='cp -p' 9052 elif ln conf$$.file conf$$ 2>/dev/null; then 9053 as_ln_s=ln 9054 else 9055 as_ln_s='cp -p' 9056 fi 9057else 9058 as_ln_s='cp -p' 9059fi 9060rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9061rmdir conf$$.dir 2>/dev/null 9062 9063 9064# as_fn_mkdir_p 9065# ------------- 9066# Create "$as_dir" as a directory, including parents if necessary. 9067as_fn_mkdir_p () 9068{ 9069 9070 case $as_dir in #( 9071 -*) as_dir=./$as_dir;; 9072 esac 9073 test -d "$as_dir" || eval $as_mkdir_p || { 9074 as_dirs= 9075 while :; do 9076 case $as_dir in #( 9077 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9078 *) as_qdir=$as_dir;; 9079 esac 9080 as_dirs="'$as_qdir' $as_dirs" 9081 as_dir=`$as_dirname -- "$as_dir" || 9082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9083 X"$as_dir" : 'X\(//\)[^/]' \| \ 9084 X"$as_dir" : 'X\(//\)$' \| \ 9085 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9086$as_echo X"$as_dir" | 9087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9088 s//\1/ 9089 q 9090 } 9091 /^X\(\/\/\)[^/].*/{ 9092 s//\1/ 9093 q 9094 } 9095 /^X\(\/\/\)$/{ 9096 s//\1/ 9097 q 9098 } 9099 /^X\(\/\).*/{ 9100 s//\1/ 9101 q 9102 } 9103 s/.*/./; q'` 9104 test -d "$as_dir" && break 9105 done 9106 test -z "$as_dirs" || eval "mkdir $as_dirs" 9107 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 9108 9109 9110} # as_fn_mkdir_p 9111if mkdir -p . 2>/dev/null; then 9112 as_mkdir_p='mkdir -p "$as_dir"' 9113else 9114 test -d ./-p && rmdir ./-p 9115 as_mkdir_p=false 9116fi 9117 9118if test -x / >/dev/null 2>&1; then 9119 as_test_x='test -x' 9120else 9121 if ls -dL / >/dev/null 2>&1; then 9122 as_ls_L_option=L 9123 else 9124 as_ls_L_option= 9125 fi 9126 as_test_x=' 9127 eval sh -c '\'' 9128 if test -d "$1"; then 9129 test -d "$1/."; 9130 else 9131 case $1 in #( 9132 -*)set "./$1";; 9133 esac; 9134 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 9135 ???[sx]*):;;*)false;;esac;fi 9136 '\'' sh 9137 ' 9138fi 9139as_executable_p=$as_test_x 9140 9141# Sed expression to map a string onto a valid CPP name. 9142as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9143 9144# Sed expression to map a string onto a valid variable name. 9145as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9146 9147 9148exec 6>&1 9149## ----------------------------------- ## 9150## Main body of $CONFIG_STATUS script. ## 9151## ----------------------------------- ## 9152_ASEOF 9153test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9154 9155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9156# Save the log message, to keep $0 and so on meaningful, and to 9157# report actual input values of CONFIG_FILES etc. instead of their 9158# values after options handling. 9159ac_log=" 9160This file was extended by ID3 Tag $as_me 0.15.0b, which was 9161generated by GNU Autoconf 2.65. Invocation command line was 9162 9163 CONFIG_FILES = $CONFIG_FILES 9164 CONFIG_HEADERS = $CONFIG_HEADERS 9165 CONFIG_LINKS = $CONFIG_LINKS 9166 CONFIG_COMMANDS = $CONFIG_COMMANDS 9167 $ $0 $@ 9168 9169on `(hostname || uname -n) 2>/dev/null | sed 1q` 9170" 9171 9172_ACEOF 9173 9174case $ac_config_files in *" 9175"*) set x $ac_config_files; shift; ac_config_files=$*;; 9176esac 9177 9178case $ac_config_headers in *" 9179"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9180esac 9181 9182 9183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9184# Files that config.status was made for. 9185config_files="$ac_config_files" 9186config_headers="$ac_config_headers" 9187config_commands="$ac_config_commands" 9188 9189_ACEOF 9190 9191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9192ac_cs_usage="\ 9193\`$as_me' instantiates files and other configuration actions 9194from templates according to the current configuration. Unless the files 9195and actions are specified as TAGs, all are instantiated by default. 9196 9197Usage: $0 [OPTION]... [TAG]... 9198 9199 -h, --help print this help, then exit 9200 -V, --version print version number and configuration settings, then exit 9201 --config print configuration, then exit 9202 -q, --quiet, --silent 9203 do not print progress messages 9204 -d, --debug don't remove temporary files 9205 --recheck update $as_me by reconfiguring in the same conditions 9206 --file=FILE[:TEMPLATE] 9207 instantiate the configuration file FILE 9208 --header=FILE[:TEMPLATE] 9209 instantiate the configuration header FILE 9210 9211Configuration files: 9212$config_files 9213 9214Configuration headers: 9215$config_headers 9216 9217Configuration commands: 9218$config_commands 9219 9220Report bugs to <support@underbit.com>." 9221 9222_ACEOF 9223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9224ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9225ac_cs_version="\\ 9226ID3 Tag config.status 0.15.0b 9227configured by $0, generated by GNU Autoconf 2.65, 9228 with options \\"\$ac_cs_config\\" 9229 9230Copyright (C) 2009 Free Software Foundation, Inc. 9231This config.status script is free software; the Free Software Foundation 9232gives unlimited permission to copy, distribute and modify it." 9233 9234ac_pwd='$ac_pwd' 9235srcdir='$srcdir' 9236INSTALL='$INSTALL' 9237AWK='$AWK' 9238test -n "\$AWK" || AWK=awk 9239_ACEOF 9240 9241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9242# The default lists apply if the user does not specify any file. 9243ac_need_defaults=: 9244while test $# != 0 9245do 9246 case $1 in 9247 --*=*) 9248 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9250 ac_shift=: 9251 ;; 9252 *) 9253 ac_option=$1 9254 ac_optarg=$2 9255 ac_shift=shift 9256 ;; 9257 esac 9258 9259 case $ac_option in 9260 # Handling of the options. 9261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9262 ac_cs_recheck=: ;; 9263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9264 $as_echo "$ac_cs_version"; exit ;; 9265 --config | --confi | --conf | --con | --co | --c ) 9266 $as_echo "$ac_cs_config"; exit ;; 9267 --debug | --debu | --deb | --de | --d | -d ) 9268 debug=: ;; 9269 --file | --fil | --fi | --f ) 9270 $ac_shift 9271 case $ac_optarg in 9272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9273 esac 9274 as_fn_append CONFIG_FILES " '$ac_optarg'" 9275 ac_need_defaults=false;; 9276 --header | --heade | --head | --hea ) 9277 $ac_shift 9278 case $ac_optarg in 9279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9280 esac 9281 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9282 ac_need_defaults=false;; 9283 --he | --h) 9284 # Conflict between --help and --header 9285 as_fn_error "ambiguous option: \`$1' 9286Try \`$0 --help' for more information.";; 9287 --help | --hel | -h ) 9288 $as_echo "$ac_cs_usage"; exit ;; 9289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9290 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9291 ac_cs_silent=: ;; 9292 9293 # This is an error. 9294 -*) as_fn_error "unrecognized option: \`$1' 9295Try \`$0 --help' for more information." ;; 9296 9297 *) as_fn_append ac_config_targets " $1" 9298 ac_need_defaults=false ;; 9299 9300 esac 9301 shift 9302done 9303 9304ac_configure_extra_args= 9305 9306if $ac_cs_silent; then 9307 exec 6>/dev/null 9308 ac_configure_extra_args="$ac_configure_extra_args --silent" 9309fi 9310 9311_ACEOF 9312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9313if \$ac_cs_recheck; then 9314 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9315 shift 9316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9317 CONFIG_SHELL='$SHELL' 9318 export CONFIG_SHELL 9319 exec "\$@" 9320fi 9321 9322_ACEOF 9323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9324exec 5>>config.log 9325{ 9326 echo 9327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9328## Running $as_me. ## 9329_ASBOX 9330 $as_echo "$ac_log" 9331} >&5 9332 9333_ACEOF 9334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9335# 9336# INIT-COMMANDS 9337# 9338AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 9339 9340_ACEOF 9341 9342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9343 9344# Handling of arguments. 9345for ac_config_target in $ac_config_targets 9346do 9347 case $ac_config_target in 9348 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 9349 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 9350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9351 "msvc++/Makefile") CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;; 9352 "libid3tag.list") CONFIG_FILES="$CONFIG_FILES libid3tag.list" ;; 9353 9354 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9355 esac 9356done 9357 9358 9359# If the user did not use the arguments to specify the items to instantiate, 9360# then the envvar interface is used. Set only those that are not. 9361# We use the long form for the default assignment because of an extremely 9362# bizarre bug on SunOS 4.1.3. 9363if $ac_need_defaults; then 9364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9366 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9367fi 9368 9369# Have a temporary directory for convenience. Make it in the build tree 9370# simply because there is no reason against having it here, and in addition, 9371# creating and moving files from /tmp can sometimes cause problems. 9372# Hook for its removal unless debugging. 9373# Note that there is a small window in which the directory will not be cleaned: 9374# after its creation but before its name has been assigned to `$tmp'. 9375$debug || 9376{ 9377 tmp= 9378 trap 'exit_status=$? 9379 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 9380' 0 9381 trap 'as_fn_exit 1' 1 2 13 15 9382} 9383# Create a (secure) tmp directory for tmp files. 9384 9385{ 9386 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9387 test -n "$tmp" && test -d "$tmp" 9388} || 9389{ 9390 tmp=./conf$$-$RANDOM 9391 (umask 077 && mkdir "$tmp") 9392} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 9393 9394# Set up the scripts for CONFIG_FILES section. 9395# No need to generate them if there are no CONFIG_FILES. 9396# This happens for instance with `./config.status config.h'. 9397if test -n "$CONFIG_FILES"; then 9398 9399 9400ac_cr=`echo X | tr X '\015'` 9401# On cygwin, bash can eat \r inside `` if the user requested igncr. 9402# But we know of no other shell where ac_cr would be empty at this 9403# point, so we can use a bashism as a fallback. 9404if test "x$ac_cr" = x; then 9405 eval ac_cr=\$\'\\r\' 9406fi 9407ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9408if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9409 ac_cs_awk_cr='\r' 9410else 9411 ac_cs_awk_cr=$ac_cr 9412fi 9413 9414echo 'BEGIN {' >"$tmp/subs1.awk" && 9415_ACEOF 9416 9417 9418{ 9419 echo "cat >conf$$subs.awk <<_ACEOF" && 9420 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9421 echo "_ACEOF" 9422} >conf$$subs.sh || 9423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 9424ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 9425ac_delim='%!_!# ' 9426for ac_last_try in false false false false false :; do 9427 . ./conf$$subs.sh || 9428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 9429 9430 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9431 if test $ac_delim_n = $ac_delim_num; then 9432 break 9433 elif $ac_last_try; then 9434 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 9435 else 9436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9437 fi 9438done 9439rm -f conf$$subs.sh 9440 9441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9442cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 9443_ACEOF 9444sed -n ' 9445h 9446s/^/S["/; s/!.*/"]=/ 9447p 9448g 9449s/^[^!]*!// 9450:repl 9451t repl 9452s/'"$ac_delim"'$// 9453t delim 9454:nl 9455h 9456s/\(.\{148\}\)..*/\1/ 9457t more1 9458s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9459p 9460n 9461b repl 9462:more1 9463s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9464p 9465g 9466s/.\{148\}// 9467t nl 9468:delim 9469h 9470s/\(.\{148\}\)..*/\1/ 9471t more2 9472s/["\\]/\\&/g; s/^/"/; s/$/"/ 9473p 9474b 9475:more2 9476s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9477p 9478g 9479s/.\{148\}// 9480t delim 9481' <conf$$subs.awk | sed ' 9482/^[^""]/{ 9483 N 9484 s/\n// 9485} 9486' >>$CONFIG_STATUS || ac_write_fail=1 9487rm -f conf$$subs.awk 9488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9489_ACAWK 9490cat >>"\$tmp/subs1.awk" <<_ACAWK && 9491 for (key in S) S_is_set[key] = 1 9492 FS = "" 9493 9494} 9495{ 9496 line = $ 0 9497 nfields = split(line, field, "@") 9498 substed = 0 9499 len = length(field[1]) 9500 for (i = 2; i < nfields; i++) { 9501 key = field[i] 9502 keylen = length(key) 9503 if (S_is_set[key]) { 9504 value = S[key] 9505 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9506 len += length(value) + length(field[++i]) 9507 substed = 1 9508 } else 9509 len += 1 + keylen 9510 } 9511 9512 print line 9513} 9514 9515_ACAWK 9516_ACEOF 9517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9518if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9519 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9520else 9521 cat 9522fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 9523 || as_fn_error "could not setup config files machinery" "$LINENO" 5 9524_ACEOF 9525 9526# VPATH may cause trouble with some makes, so we remove $(srcdir), 9527# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9528# trailing colons and then remove the whole line if VPATH becomes empty 9529# (actually we leave an empty line to preserve line numbers). 9530if test "x$srcdir" = x.; then 9531 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9532s/:*\$(srcdir):*/:/ 9533s/:*\${srcdir}:*/:/ 9534s/:*@srcdir@:*/:/ 9535s/^\([^=]*=[ ]*\):*/\1/ 9536s/:*$// 9537s/^[^=]*=[ ]*$// 9538}' 9539fi 9540 9541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9542fi # test -n "$CONFIG_FILES" 9543 9544# Set up the scripts for CONFIG_HEADERS section. 9545# No need to generate them if there are no CONFIG_HEADERS. 9546# This happens for instance with `./config.status Makefile'. 9547if test -n "$CONFIG_HEADERS"; then 9548cat >"$tmp/defines.awk" <<\_ACAWK || 9549BEGIN { 9550_ACEOF 9551 9552# Transform confdefs.h into an awk script `defines.awk', embedded as 9553# here-document in config.status, that substitutes the proper values into 9554# config.h.in to produce config.h. 9555 9556# Create a delimiter string that does not exist in confdefs.h, to ease 9557# handling of long lines. 9558ac_delim='%!_!# ' 9559for ac_last_try in false false :; do 9560 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 9561 if test -z "$ac_t"; then 9562 break 9563 elif $ac_last_try; then 9564 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 9565 else 9566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9567 fi 9568done 9569 9570# For the awk script, D is an array of macro values keyed by name, 9571# likewise P contains macro parameters if any. Preserve backslash 9572# newline sequences. 9573 9574ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9575sed -n ' 9576s/.\{148\}/&'"$ac_delim"'/g 9577t rset 9578:rset 9579s/^[ ]*#[ ]*define[ ][ ]*/ / 9580t def 9581d 9582:def 9583s/\\$// 9584t bsnl 9585s/["\\]/\\&/g 9586s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9587D["\1"]=" \3"/p 9588s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9589d 9590:bsnl 9591s/["\\]/\\&/g 9592s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9593D["\1"]=" \3\\\\\\n"\\/p 9594t cont 9595s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9596t cont 9597d 9598:cont 9599n 9600s/.\{148\}/&'"$ac_delim"'/g 9601t clear 9602:clear 9603s/\\$// 9604t bsnlc 9605s/["\\]/\\&/g; s/^/"/; s/$/"/p 9606d 9607:bsnlc 9608s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9609b cont 9610' <confdefs.h | sed ' 9611s/'"$ac_delim"'/"\\\ 9612"/g' >>$CONFIG_STATUS || ac_write_fail=1 9613 9614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9615 for (key in D) D_is_set[key] = 1 9616 FS = "" 9617} 9618/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9619 line = \$ 0 9620 split(line, arg, " ") 9621 if (arg[1] == "#") { 9622 defundef = arg[2] 9623 mac1 = arg[3] 9624 } else { 9625 defundef = substr(arg[1], 2) 9626 mac1 = arg[2] 9627 } 9628 split(mac1, mac2, "(") #) 9629 macro = mac2[1] 9630 prefix = substr(line, 1, index(line, defundef) - 1) 9631 if (D_is_set[macro]) { 9632 # Preserve the white space surrounding the "#". 9633 print prefix "define", macro P[macro] D[macro] 9634 next 9635 } else { 9636 # Replace #undef with comments. This is necessary, for example, 9637 # in the case of _POSIX_SOURCE, which is predefined and required 9638 # on some systems where configure will not decide to define it. 9639 if (defundef == "undef") { 9640 print "/*", prefix defundef, macro, "*/" 9641 next 9642 } 9643 } 9644} 9645{ print } 9646_ACAWK 9647_ACEOF 9648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9649 as_fn_error "could not setup config headers machinery" "$LINENO" 5 9650fi # test -n "$CONFIG_HEADERS" 9651 9652 9653eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 9654shift 9655for ac_tag 9656do 9657 case $ac_tag in 9658 :[FHLC]) ac_mode=$ac_tag; continue;; 9659 esac 9660 case $ac_mode$ac_tag in 9661 :[FHL]*:*);; 9662 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 9663 :[FH]-) ac_tag=-:-;; 9664 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9665 esac 9666 ac_save_IFS=$IFS 9667 IFS=: 9668 set x $ac_tag 9669 IFS=$ac_save_IFS 9670 shift 9671 ac_file=$1 9672 shift 9673 9674 case $ac_mode in 9675 :L) ac_source=$1;; 9676 :[FH]) 9677 ac_file_inputs= 9678 for ac_f 9679 do 9680 case $ac_f in 9681 -) ac_f="$tmp/stdin";; 9682 *) # Look for the file first in the build tree, then in the source tree 9683 # (if the path is not absolute). The absolute path cannot be DOS-style, 9684 # because $ac_f cannot contain `:'. 9685 test -f "$ac_f" || 9686 case $ac_f in 9687 [\\/$]*) false;; 9688 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9689 esac || 9690 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9691 esac 9692 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9693 as_fn_append ac_file_inputs " '$ac_f'" 9694 done 9695 9696 # Let's still pretend it is `configure' which instantiates (i.e., don't 9697 # use $as_me), people would be surprised to read: 9698 # /* config.h. Generated by config.status. */ 9699 configure_input='Generated from '` 9700 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9701 `' by configure.' 9702 if test x"$ac_file" != x-; then 9703 configure_input="$ac_file. $configure_input" 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9705$as_echo "$as_me: creating $ac_file" >&6;} 9706 fi 9707 # Neutralize special characters interpreted by sed in replacement strings. 9708 case $configure_input in #( 9709 *\&* | *\|* | *\\* ) 9710 ac_sed_conf_input=`$as_echo "$configure_input" | 9711 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9712 *) ac_sed_conf_input=$configure_input;; 9713 esac 9714 9715 case $ac_tag in 9716 *:-:* | *:-) cat >"$tmp/stdin" \ 9717 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 9718 esac 9719 ;; 9720 esac 9721 9722 ac_dir=`$as_dirname -- "$ac_file" || 9723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9724 X"$ac_file" : 'X\(//\)[^/]' \| \ 9725 X"$ac_file" : 'X\(//\)$' \| \ 9726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9727$as_echo X"$ac_file" | 9728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9729 s//\1/ 9730 q 9731 } 9732 /^X\(\/\/\)[^/].*/{ 9733 s//\1/ 9734 q 9735 } 9736 /^X\(\/\/\)$/{ 9737 s//\1/ 9738 q 9739 } 9740 /^X\(\/\).*/{ 9741 s//\1/ 9742 q 9743 } 9744 s/.*/./; q'` 9745 as_dir="$ac_dir"; as_fn_mkdir_p 9746 ac_builddir=. 9747 9748case "$ac_dir" in 9749.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9750*) 9751 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9752 # A ".." for each directory in $ac_dir_suffix. 9753 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9754 case $ac_top_builddir_sub in 9755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9757 esac ;; 9758esac 9759ac_abs_top_builddir=$ac_pwd 9760ac_abs_builddir=$ac_pwd$ac_dir_suffix 9761# for backward compatibility: 9762ac_top_builddir=$ac_top_build_prefix 9763 9764case $srcdir in 9765 .) # We are building in place. 9766 ac_srcdir=. 9767 ac_top_srcdir=$ac_top_builddir_sub 9768 ac_abs_top_srcdir=$ac_pwd ;; 9769 [\\/]* | ?:[\\/]* ) # Absolute name. 9770 ac_srcdir=$srcdir$ac_dir_suffix; 9771 ac_top_srcdir=$srcdir 9772 ac_abs_top_srcdir=$srcdir ;; 9773 *) # Relative name. 9774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9775 ac_top_srcdir=$ac_top_build_prefix$srcdir 9776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9777esac 9778ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9779 9780 9781 case $ac_mode in 9782 :F) 9783 # 9784 # CONFIG_FILE 9785 # 9786 9787 case $INSTALL in 9788 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9789 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9790 esac 9791_ACEOF 9792 9793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9794# If the template does not know about datarootdir, expand it. 9795# FIXME: This hack should be removed a few years after 2.60. 9796ac_datarootdir_hack=; ac_datarootdir_seen= 9797ac_sed_dataroot=' 9798/datarootdir/ { 9799 p 9800 q 9801} 9802/@datadir@/p 9803/@docdir@/p 9804/@infodir@/p 9805/@localedir@/p 9806/@mandir@/p' 9807case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9808*datarootdir*) ac_datarootdir_seen=yes;; 9809*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9811$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9812_ACEOF 9813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9814 ac_datarootdir_hack=' 9815 s&@datadir@&$datadir&g 9816 s&@docdir@&$docdir&g 9817 s&@infodir@&$infodir&g 9818 s&@localedir@&$localedir&g 9819 s&@mandir@&$mandir&g 9820 s&\\\${datarootdir}&$datarootdir&g' ;; 9821esac 9822_ACEOF 9823 9824# Neutralize VPATH when `$srcdir' = `.'. 9825# Shell code in configure.ac might set extrasub. 9826# FIXME: do we really want to maintain this feature? 9827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9828ac_sed_extra="$ac_vpsub 9829$extrasub 9830_ACEOF 9831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9832:t 9833/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9834s|@configure_input@|$ac_sed_conf_input|;t t 9835s&@top_builddir@&$ac_top_builddir_sub&;t t 9836s&@top_build_prefix@&$ac_top_build_prefix&;t t 9837s&@srcdir@&$ac_srcdir&;t t 9838s&@abs_srcdir@&$ac_abs_srcdir&;t t 9839s&@top_srcdir@&$ac_top_srcdir&;t t 9840s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9841s&@builddir@&$ac_builddir&;t t 9842s&@abs_builddir@&$ac_abs_builddir&;t t 9843s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9844s&@INSTALL@&$ac_INSTALL&;t t 9845$ac_datarootdir_hack 9846" 9847eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 9848 || as_fn_error "could not create $ac_file" "$LINENO" 5 9849 9850test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9851 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9852 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9854which seems to be undefined. Please make sure it is defined." >&5 9855$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9856which seems to be undefined. Please make sure it is defined." >&2;} 9857 9858 rm -f "$tmp/stdin" 9859 case $ac_file in 9860 -) cat "$tmp/out" && rm -f "$tmp/out";; 9861 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 9862 esac \ 9863 || as_fn_error "could not create $ac_file" "$LINENO" 5 9864 ;; 9865 :H) 9866 # 9867 # CONFIG_HEADER 9868 # 9869 if test x"$ac_file" != x-; then 9870 { 9871 $as_echo "/* $configure_input */" \ 9872 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 9873 } >"$tmp/config.h" \ 9874 || as_fn_error "could not create $ac_file" "$LINENO" 5 9875 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 9876 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9877$as_echo "$as_me: $ac_file is unchanged" >&6;} 9878 else 9879 rm -f "$ac_file" 9880 mv "$tmp/config.h" "$ac_file" \ 9881 || as_fn_error "could not create $ac_file" "$LINENO" 5 9882 fi 9883 else 9884 $as_echo "/* $configure_input */" \ 9885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 9886 || as_fn_error "could not create -" "$LINENO" 5 9887 fi 9888# Compute "$ac_file"'s index in $config_headers. 9889_am_stamp_count=1 9890for _am_header in $config_headers :; do 9891 case $_am_header in 9892 "$ac_file" | "$ac_file":* ) 9893 break ;; 9894 * ) 9895 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9896 esac 9897done 9898echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 9899$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9900 X"$ac_file" : 'X\(//\)[^/]' \| \ 9901 X"$ac_file" : 'X\(//\)$' \| \ 9902 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9903$as_echo X"$ac_file" | 9904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9905 s//\1/ 9906 q 9907 } 9908 /^X\(\/\/\)[^/].*/{ 9909 s//\1/ 9910 q 9911 } 9912 /^X\(\/\/\)$/{ 9913 s//\1/ 9914 q 9915 } 9916 /^X\(\/\).*/{ 9917 s//\1/ 9918 q 9919 } 9920 s/.*/./; q'`/stamp-h$_am_stamp_count 9921 ;; 9922 9923 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9924$as_echo "$as_me: executing $ac_file commands" >&6;} 9925 ;; 9926 esac 9927 9928 9929 case $ac_file$ac_mode in 9930 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 9931 # Strip MF so we end up with the name of the file. 9932 mf=`echo "$mf" | sed -e 's/:.*$//'` 9933 # Check whether this is an Automake generated Makefile or not. 9934 # We used to match only the files named `Makefile.in', but 9935 # some people rename them; so instead we look at the file content. 9936 # Grep'ing the first line is not enough: some people post-process 9937 # each Makefile.in and add a new line on top of each file to say so. 9938 # So let's grep whole file. 9939 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 9940 dirpart=`$as_dirname -- "$mf" || 9941$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9942 X"$mf" : 'X\(//\)[^/]' \| \ 9943 X"$mf" : 'X\(//\)$' \| \ 9944 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 9945$as_echo X"$mf" | 9946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9947 s//\1/ 9948 q 9949 } 9950 /^X\(\/\/\)[^/].*/{ 9951 s//\1/ 9952 q 9953 } 9954 /^X\(\/\/\)$/{ 9955 s//\1/ 9956 q 9957 } 9958 /^X\(\/\).*/{ 9959 s//\1/ 9960 q 9961 } 9962 s/.*/./; q'` 9963 else 9964 continue 9965 fi 9966 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 9967 # Extract the definition of DEP_FILES from the Makefile without 9968 # running `make'. 9969 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 9970 test -z "$DEPDIR" && continue 9971 # When using ansi2knr, U may be empty or an underscore; expand it 9972 U=`sed -n -e '/^U = / s///p' < "$mf"` 9973 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 9974 # We invoke sed twice because it is the simplest approach to 9975 # changing $(DEPDIR) to its actual value in the expansion. 9976 for file in `sed -n -e ' 9977 /^DEP_FILES = .*\\\\$/ { 9978 s/^DEP_FILES = // 9979 :loop 9980 s/\\\\$// 9981 p 9982 n 9983 /\\\\$/ b loop 9984 p 9985 } 9986 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 9987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9988 # Make sure the directory exists. 9989 test -f "$dirpart/$file" && continue 9990 fdir=`$as_dirname -- "$file" || 9991$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9992 X"$file" : 'X\(//\)[^/]' \| \ 9993 X"$file" : 'X\(//\)$' \| \ 9994 X"$file" : 'X\(/\)' \| . 2>/dev/null || 9995$as_echo X"$file" | 9996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9997 s//\1/ 9998 q 9999 } 10000 /^X\(\/\/\)[^/].*/{ 10001 s//\1/ 10002 q 10003 } 10004 /^X\(\/\/\)$/{ 10005 s//\1/ 10006 q 10007 } 10008 /^X\(\/\).*/{ 10009 s//\1/ 10010 q 10011 } 10012 s/.*/./; q'` 10013 as_dir=$dirpart/$fdir; as_fn_mkdir_p 10014 # echo "creating $dirpart/$file" 10015 echo '# dummy' > "$dirpart/$file" 10016 done 10017done 10018 ;; 10019 10020 esac 10021done # for ac_tag 10022 10023 10024as_fn_exit 0 10025_ACEOF 10026ac_clean_files=$ac_clean_files_save 10027 10028test $ac_write_fail = 0 || 10029 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 10030 10031 10032# configure is writing to config.log, and then calls config.status. 10033# config.status does its own redirection, appending to config.log. 10034# Unfortunately, on DOS this fails, as config.log is still kept open 10035# by configure, so config.status won't be able to write to it; its 10036# output is simply discarded. So we exec the FD to /dev/null, 10037# effectively closing config.log, so it can be properly (re)opened and 10038# appended to by config.status. When coming back to configure, we 10039# need to make the FD available again. 10040if test "$no_create" != yes; then 10041 ac_cs_success=: 10042 ac_config_status_args= 10043 test "$silent" = yes && 10044 ac_config_status_args="$ac_config_status_args --quiet" 10045 exec 5>/dev/null 10046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10047 exec 5>>config.log 10048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10049 # would make configure fail if this is the last instruction. 10050 $ac_cs_success || as_fn_exit $? 10051fi 10052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10054$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10055fi 10056 10057