1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 558# Check that we are running under the correct shell. 559SHELL=${CONFIG_SHELL-/bin/sh} 560 561case X$lt_ECHO in 562X*--fallback-echo) 563 # Remove one level of quotation (which was required for Make). 564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 565 ;; 566esac 567 568ECHO=${lt_ECHO-echo} 569if test "X$1" = X--no-reexec; then 570 # Discard the --no-reexec flag, and continue. 571 shift 572elif test "X$1" = X--fallback-echo; then 573 # Avoid inline document here, it may be left over 574 : 575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 576 # Yippee, $ECHO works! 577 : 578else 579 # Restart under the correct shell. 580 exec $SHELL "$0" --no-reexec ${1+"$@"} 581fi 582 583if test "X$1" = X--fallback-echo; then 584 # used as fallback echo 585 shift 586 cat <<_LT_EOF 587$* 588_LT_EOF 589 exit 0 590fi 591 592# The HP-UX ksh and POSIX shell print the target directory to stdout 593# if CDPATH is set. 594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 595 596if test -z "$lt_ECHO"; then 597 if test "X${echo_test_string+set}" != Xset; then 598 # find a string as large as possible, as long as the shell can cope with it 599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 601 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 603 then 604 break 605 fi 606 done 607 fi 608 609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 611 test "X$echo_testing_string" = "X$echo_test_string"; then 612 : 613 else 614 # The Solaris, AIX, and Digital Unix default echo programs unquote 615 # backslashes. This makes it impossible to quote backslashes using 616 # echo "$something" | sed 's/\\/\\\\/g' 617 # 618 # So, first we look for a working echo in the user's PATH. 619 620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 621 for dir in $PATH /usr/ucb; do 622 IFS="$lt_save_ifs" 623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 ECHO="$dir/echo" 628 break 629 fi 630 done 631 IFS="$lt_save_ifs" 632 633 if test "X$ECHO" = Xecho; then 634 # We didn't find a better echo, so look for alternatives. 635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 637 test "X$echo_testing_string" = "X$echo_test_string"; then 638 # This shell has a builtin print -r that does the trick. 639 ECHO='print -r' 640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 641 test "X$CONFIG_SHELL" != X/bin/ksh; then 642 # If we have ksh, try running configure again with it. 643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 644 export ORIGINAL_CONFIG_SHELL 645 CONFIG_SHELL=/bin/ksh 646 export CONFIG_SHELL 647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 648 else 649 # Try using printf. 650 ECHO='printf %s\n' 651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 653 test "X$echo_testing_string" = "X$echo_test_string"; then 654 # Cool, printf works 655 : 656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 657 test "X$echo_testing_string" = 'X\t' && 658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 659 test "X$echo_testing_string" = "X$echo_test_string"; then 660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 661 export CONFIG_SHELL 662 SHELL="$CONFIG_SHELL" 663 export SHELL 664 ECHO="$CONFIG_SHELL $0 --fallback-echo" 665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 666 test "X$echo_testing_string" = 'X\t' && 667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 668 test "X$echo_testing_string" = "X$echo_test_string"; then 669 ECHO="$CONFIG_SHELL $0 --fallback-echo" 670 else 671 # maybe with a smaller string... 672 prev=: 673 674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 676 then 677 break 678 fi 679 prev="$cmd" 680 done 681 682 if test "$prev" != 'sed 50q "$0"'; then 683 echo_test_string=`eval $prev` 684 export echo_test_string 685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 686 else 687 # Oops. We lost completely, so just stick with echo. 688 ECHO=echo 689 fi 690 fi 691 fi 692 fi 693 fi 694fi 695 696# Copy echo and quote the copy suitably for passing to libtool from 697# the Makefile, instead of quoting the original, which is used later. 698lt_ECHO=$ECHO 699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 701fi 702 703 704 705 706test -n "$DJDIR" || exec 7<&0 </dev/null 707exec 6>&1 708 709# Name of the host. 710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 711# so uname gets run too. 712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 713 714# 715# Initializations. 716# 717ac_default_prefix=/usr/local 718ac_clean_files= 719ac_config_libobj_dir=. 720LIBOBJS= 721cross_compiling=no 722subdirs= 723MFLAGS= 724MAKEFLAGS= 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732PACKAGE_URL= 733 734ac_unique_file="README.txt" 735# Factoring default headers for most tests. 736ac_includes_default="\ 737#include <stdio.h> 738#ifdef HAVE_SYS_TYPES_H 739# include <sys/types.h> 740#endif 741#ifdef HAVE_SYS_STAT_H 742# include <sys/stat.h> 743#endif 744#ifdef STDC_HEADERS 745# include <stdlib.h> 746# include <stddef.h> 747#else 748# ifdef HAVE_STDLIB_H 749# include <stdlib.h> 750# endif 751#endif 752#ifdef HAVE_STRING_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754# include <memory.h> 755# endif 756# include <string.h> 757#endif 758#ifdef HAVE_STRINGS_H 759# include <strings.h> 760#endif 761#ifdef HAVE_INTTYPES_H 762# include <inttypes.h> 763#endif 764#ifdef HAVE_STDINT_H 765# include <stdint.h> 766#endif 767#ifdef HAVE_UNISTD_H 768# include <unistd.h> 769#endif" 770 771ac_subst_vars='LTLIBOBJS 772LIBOBJS 773SDL_VERSION 774EXE 775EXTRA_LDFLAGS 776BUILD_LDFLAGS 777EXTRA_CFLAGS 778BUILD_CFLAGS 779PLAYMUS_OBJECTS 780PLAYWAVE_OBJECTS 781VERSION_OBJECTS 782OBJECTS 783ac_aux_dir 784OPUSFILE_LIBS 785OPUSFILE_CFLAGS 786LIBMIKMOD_CONFIG 787MODPLUG_LIBS 788MODPLUG_CFLAGS 789SDL2_CONFIG 790SDL_LIBS 791SDL_CFLAGS 792PKG_CONFIG 793WINDRES 794SET_MAKE 795INSTALL_DATA 796INSTALL_SCRIPT 797INSTALL_PROGRAM 798LT_AGE 799LT_REVISION 800LT_CURRENT 801LT_RELEASE 802CPP 803OTOOL64 804OTOOL 805LIPO 806NMEDIT 807DSYMUTIL 808lt_ECHO 809RANLIB 810STRIP 811AR 812LN_S 813NM 814ac_ct_DUMPBIN 815DUMPBIN 816LD 817FGREP 818EGREP 819GREP 820SED 821OBJEXT 822EXEEXT 823ac_ct_CC 824CPPFLAGS 825LDFLAGS 826CFLAGS 827CC 828host_os 829host_vendor 830host_cpu 831host 832build_os 833build_vendor 834build_cpu 835build 836LIBTOOL 837OBJDUMP 838DLLTOOL 839AS 840VERSION 841BINARY_AGE 842INTERFACE_AGE 843MICRO_VERSION 844MINOR_VERSION 845MAJOR_VERSION 846target_alias 847host_alias 848build_alias 849LIBS 850ECHO_T 851ECHO_N 852ECHO_C 853DEFS 854mandir 855localedir 856libdir 857psdir 858pdfdir 859dvidir 860htmldir 861infodir 862docdir 863oldincludedir 864includedir 865localstatedir 866sharedstatedir 867sysconfdir 868datadir 869datarootdir 870libexecdir 871sbindir 872bindir 873program_transform_name 874prefix 875exec_prefix 876PACKAGE_URL 877PACKAGE_BUGREPORT 878PACKAGE_STRING 879PACKAGE_VERSION 880PACKAGE_TARNAME 881PACKAGE_NAME 882PATH_SEPARATOR 883SHELL' 884ac_subst_files='' 885ac_user_opts=' 886enable_option_checking 887enable_shared 888enable_static 889with_pic 890enable_fast_install 891with_gnu_ld 892enable_libtool_lock 893enable_dependency_tracking 894with_sdl_prefix 895with_sdl_exec_prefix 896enable_sdltest 897enable_music_cmd 898enable_music_wave 899enable_music_mod 900enable_music_mod_modplug 901enable_music_mod_modplug_shared 902enable_music_mod_mikmod 903enable_music_mod_mikmod_shared 904enable_music_midi 905enable_music_midi_timidity 906enable_music_midi_native 907enable_music_midi_fluidsynth 908enable_music_midi_fluidsynth_shared 909enable_music_ogg 910enable_music_ogg_tremor 911enable_music_ogg_shared 912enable_music_flac 913enable_music_flac_shared 914enable_music_mp3 915enable_music_mp3_mad_gpl 916enable_music_mp3_mad_gpl_dithering 917enable_music_mp3_mpg123 918enable_music_mp3_mpg123_shared 919enable_music_opus 920enable_music_opus_shared 921' 922 ac_precious_vars='build_alias 923host_alias 924target_alias 925CC 926CFLAGS 927LDFLAGS 928LIBS 929CPPFLAGS 930CPP 931PKG_CONFIG 932SDL_CFLAGS 933SDL_LIBS 934MODPLUG_CFLAGS 935MODPLUG_LIBS 936OPUSFILE_CFLAGS 937OPUSFILE_LIBS' 938 939 940# Initialize some variables set by options. 941ac_init_help= 942ac_init_version=false 943ac_unrecognized_opts= 944ac_unrecognized_sep= 945# The variables have the same names as the options, with 946# dashes changed to underlines. 947cache_file=/dev/null 948exec_prefix=NONE 949no_create= 950no_recursion= 951prefix=NONE 952program_prefix=NONE 953program_suffix=NONE 954program_transform_name=s,x,x, 955silent= 956site= 957srcdir= 958verbose= 959x_includes=NONE 960x_libraries=NONE 961 962# Installation directory options. 963# These are left unexpanded so users can "make install exec_prefix=/foo" 964# and all the variables that are supposed to be based on exec_prefix 965# by default will actually change. 966# Use braces instead of parens because sh, perl, etc. also accept them. 967# (The list follows the same order as the GNU Coding Standards.) 968bindir='${exec_prefix}/bin' 969sbindir='${exec_prefix}/sbin' 970libexecdir='${exec_prefix}/libexec' 971datarootdir='${prefix}/share' 972datadir='${datarootdir}' 973sysconfdir='${prefix}/etc' 974sharedstatedir='${prefix}/com' 975localstatedir='${prefix}/var' 976includedir='${prefix}/include' 977oldincludedir='/usr/include' 978docdir='${datarootdir}/doc/${PACKAGE}' 979infodir='${datarootdir}/info' 980htmldir='${docdir}' 981dvidir='${docdir}' 982pdfdir='${docdir}' 983psdir='${docdir}' 984libdir='${exec_prefix}/lib' 985localedir='${datarootdir}/locale' 986mandir='${datarootdir}/man' 987 988ac_prev= 989ac_dashdash= 990for ac_option 991do 992 # If the previous option needs an argument, assign it. 993 if test -n "$ac_prev"; then 994 eval $ac_prev=\$ac_option 995 ac_prev= 996 continue 997 fi 998 999 case $ac_option in 1000 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1001 *=) ac_optarg= ;; 1002 *) ac_optarg=yes ;; 1003 esac 1004 1005 # Accept the important Cygnus configure options, so we can diagnose typos. 1006 1007 case $ac_dashdash$ac_option in 1008 --) 1009 ac_dashdash=yes ;; 1010 1011 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1012 ac_prev=bindir ;; 1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1014 bindir=$ac_optarg ;; 1015 1016 -build | --build | --buil | --bui | --bu) 1017 ac_prev=build_alias ;; 1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1019 build_alias=$ac_optarg ;; 1020 1021 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1023 ac_prev=cache_file ;; 1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1026 cache_file=$ac_optarg ;; 1027 1028 --config-cache | -C) 1029 cache_file=config.cache ;; 1030 1031 -datadir | --datadir | --datadi | --datad) 1032 ac_prev=datadir ;; 1033 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1034 datadir=$ac_optarg ;; 1035 1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1037 | --dataroo | --dataro | --datar) 1038 ac_prev=datarootdir ;; 1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1041 datarootdir=$ac_optarg ;; 1042 1043 -disable-* | --disable-*) 1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1045 # Reject names that are not valid shell variable names. 1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1047 as_fn_error $? "invalid feature name: $ac_useropt" 1048 ac_useropt_orig=$ac_useropt 1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1050 case $ac_user_opts in 1051 *" 1052"enable_$ac_useropt" 1053"*) ;; 1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1055 ac_unrecognized_sep=', ';; 1056 esac 1057 eval enable_$ac_useropt=no ;; 1058 1059 -docdir | --docdir | --docdi | --doc | --do) 1060 ac_prev=docdir ;; 1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1062 docdir=$ac_optarg ;; 1063 1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1065 ac_prev=dvidir ;; 1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1067 dvidir=$ac_optarg ;; 1068 1069 -enable-* | --enable-*) 1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1071 # Reject names that are not valid shell variable names. 1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1073 as_fn_error $? "invalid feature name: $ac_useropt" 1074 ac_useropt_orig=$ac_useropt 1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1076 case $ac_user_opts in 1077 *" 1078"enable_$ac_useropt" 1079"*) ;; 1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1081 ac_unrecognized_sep=', ';; 1082 esac 1083 eval enable_$ac_useropt=\$ac_optarg ;; 1084 1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1087 | --exec | --exe | --ex) 1088 ac_prev=exec_prefix ;; 1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1091 | --exec=* | --exe=* | --ex=*) 1092 exec_prefix=$ac_optarg ;; 1093 1094 -gas | --gas | --ga | --g) 1095 # Obsolete; use --with-gas. 1096 with_gas=yes ;; 1097 1098 -help | --help | --hel | --he | -h) 1099 ac_init_help=long ;; 1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1101 ac_init_help=recursive ;; 1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1103 ac_init_help=short ;; 1104 1105 -host | --host | --hos | --ho) 1106 ac_prev=host_alias ;; 1107 -host=* | --host=* | --hos=* | --ho=*) 1108 host_alias=$ac_optarg ;; 1109 1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1111 ac_prev=htmldir ;; 1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1113 | --ht=*) 1114 htmldir=$ac_optarg ;; 1115 1116 -includedir | --includedir | --includedi | --included | --include \ 1117 | --includ | --inclu | --incl | --inc) 1118 ac_prev=includedir ;; 1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1120 | --includ=* | --inclu=* | --incl=* | --inc=*) 1121 includedir=$ac_optarg ;; 1122 1123 -infodir | --infodir | --infodi | --infod | --info | --inf) 1124 ac_prev=infodir ;; 1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1126 infodir=$ac_optarg ;; 1127 1128 -libdir | --libdir | --libdi | --libd) 1129 ac_prev=libdir ;; 1130 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1131 libdir=$ac_optarg ;; 1132 1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1134 | --libexe | --libex | --libe) 1135 ac_prev=libexecdir ;; 1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1137 | --libexe=* | --libex=* | --libe=*) 1138 libexecdir=$ac_optarg ;; 1139 1140 -localedir | --localedir | --localedi | --localed | --locale) 1141 ac_prev=localedir ;; 1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1143 localedir=$ac_optarg ;; 1144 1145 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1146 | --localstate | --localstat | --localsta | --localst | --locals) 1147 ac_prev=localstatedir ;; 1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1150 localstatedir=$ac_optarg ;; 1151 1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1153 ac_prev=mandir ;; 1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1155 mandir=$ac_optarg ;; 1156 1157 -nfp | --nfp | --nf) 1158 # Obsolete; use --without-fp. 1159 with_fp=no ;; 1160 1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1162 | --no-cr | --no-c | -n) 1163 no_create=yes ;; 1164 1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1167 no_recursion=yes ;; 1168 1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1171 | --oldin | --oldi | --old | --ol | --o) 1172 ac_prev=oldincludedir ;; 1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1176 oldincludedir=$ac_optarg ;; 1177 1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1179 ac_prev=prefix ;; 1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1181 prefix=$ac_optarg ;; 1182 1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1184 | --program-pre | --program-pr | --program-p) 1185 ac_prev=program_prefix ;; 1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1188 program_prefix=$ac_optarg ;; 1189 1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1191 | --program-suf | --program-su | --program-s) 1192 ac_prev=program_suffix ;; 1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1195 program_suffix=$ac_optarg ;; 1196 1197 -program-transform-name | --program-transform-name \ 1198 | --program-transform-nam | --program-transform-na \ 1199 | --program-transform-n | --program-transform- \ 1200 | --program-transform | --program-transfor \ 1201 | --program-transfo | --program-transf \ 1202 | --program-trans | --program-tran \ 1203 | --progr-tra | --program-tr | --program-t) 1204 ac_prev=program_transform_name ;; 1205 -program-transform-name=* | --program-transform-name=* \ 1206 | --program-transform-nam=* | --program-transform-na=* \ 1207 | --program-transform-n=* | --program-transform-=* \ 1208 | --program-transform=* | --program-transfor=* \ 1209 | --program-transfo=* | --program-transf=* \ 1210 | --program-trans=* | --program-tran=* \ 1211 | --progr-tra=* | --program-tr=* | --program-t=*) 1212 program_transform_name=$ac_optarg ;; 1213 1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1215 ac_prev=pdfdir ;; 1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1217 pdfdir=$ac_optarg ;; 1218 1219 -psdir | --psdir | --psdi | --psd | --ps) 1220 ac_prev=psdir ;; 1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1222 psdir=$ac_optarg ;; 1223 1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1225 | -silent | --silent | --silen | --sile | --sil) 1226 silent=yes ;; 1227 1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1229 ac_prev=sbindir ;; 1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1231 | --sbi=* | --sb=*) 1232 sbindir=$ac_optarg ;; 1233 1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1236 | --sharedst | --shareds | --shared | --share | --shar \ 1237 | --sha | --sh) 1238 ac_prev=sharedstatedir ;; 1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1242 | --sha=* | --sh=*) 1243 sharedstatedir=$ac_optarg ;; 1244 1245 -site | --site | --sit) 1246 ac_prev=site ;; 1247 -site=* | --site=* | --sit=*) 1248 site=$ac_optarg ;; 1249 1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1251 ac_prev=srcdir ;; 1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1253 srcdir=$ac_optarg ;; 1254 1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1256 | --syscon | --sysco | --sysc | --sys | --sy) 1257 ac_prev=sysconfdir ;; 1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1260 sysconfdir=$ac_optarg ;; 1261 1262 -target | --target | --targe | --targ | --tar | --ta | --t) 1263 ac_prev=target_alias ;; 1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1265 target_alias=$ac_optarg ;; 1266 1267 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1268 verbose=yes ;; 1269 1270 -version | --version | --versio | --versi | --vers | -V) 1271 ac_init_version=: ;; 1272 1273 -with-* | --with-*) 1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1275 # Reject names that are not valid shell variable names. 1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1277 as_fn_error $? "invalid package name: $ac_useropt" 1278 ac_useropt_orig=$ac_useropt 1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1280 case $ac_user_opts in 1281 *" 1282"with_$ac_useropt" 1283"*) ;; 1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1285 ac_unrecognized_sep=', ';; 1286 esac 1287 eval with_$ac_useropt=\$ac_optarg ;; 1288 1289 -without-* | --without-*) 1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1291 # Reject names that are not valid shell variable names. 1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1293 as_fn_error $? "invalid package name: $ac_useropt" 1294 ac_useropt_orig=$ac_useropt 1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1296 case $ac_user_opts in 1297 *" 1298"with_$ac_useropt" 1299"*) ;; 1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1301 ac_unrecognized_sep=', ';; 1302 esac 1303 eval with_$ac_useropt=no ;; 1304 1305 --x) 1306 # Obsolete; use --with-x. 1307 with_x=yes ;; 1308 1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1310 | --x-incl | --x-inc | --x-in | --x-i) 1311 ac_prev=x_includes ;; 1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1314 x_includes=$ac_optarg ;; 1315 1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1318 ac_prev=x_libraries ;; 1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1321 x_libraries=$ac_optarg ;; 1322 1323 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1324Try \`$0 --help' for more information" 1325 ;; 1326 1327 *=*) 1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1329 # Reject names that are not valid shell variable names. 1330 case $ac_envvar in #( 1331 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1332 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1333 esac 1334 eval $ac_envvar=\$ac_optarg 1335 export $ac_envvar ;; 1336 1337 *) 1338 # FIXME: should be removed in autoconf 3.0. 1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1342 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1343 ;; 1344 1345 esac 1346done 1347 1348if test -n "$ac_prev"; then 1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1350 as_fn_error $? "missing argument to $ac_option" 1351fi 1352 1353if test -n "$ac_unrecognized_opts"; then 1354 case $enable_option_checking in 1355 no) ;; 1356 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1358 esac 1359fi 1360 1361# Check all directory arguments for consistency. 1362for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1363 datadir sysconfdir sharedstatedir localstatedir includedir \ 1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1365 libdir localedir mandir 1366do 1367 eval ac_val=\$$ac_var 1368 # Remove trailing slashes. 1369 case $ac_val in 1370 */ ) 1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1372 eval $ac_var=\$ac_val;; 1373 esac 1374 # Be sure to have absolute directory names. 1375 case $ac_val in 1376 [\\/$]* | ?:[\\/]* ) continue;; 1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1378 esac 1379 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1380done 1381 1382# There might be people who depend on the old broken behavior: `$host' 1383# used to hold the argument of --host etc. 1384# FIXME: To remove some day. 1385build=$build_alias 1386host=$host_alias 1387target=$target_alias 1388 1389# FIXME: To remove some day. 1390if test "x$host_alias" != x; then 1391 if test "x$build_alias" = x; then 1392 cross_compiling=maybe 1393 elif test "x$build_alias" != "x$host_alias"; then 1394 cross_compiling=yes 1395 fi 1396fi 1397 1398ac_tool_prefix= 1399test -n "$host_alias" && ac_tool_prefix=$host_alias- 1400 1401test "$silent" = yes && exec 6>/dev/null 1402 1403 1404ac_pwd=`pwd` && test -n "$ac_pwd" && 1405ac_ls_di=`ls -di .` && 1406ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1407 as_fn_error $? "working directory cannot be determined" 1408test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1409 as_fn_error $? "pwd does not report name of working directory" 1410 1411 1412# Find the source files, if location was not specified. 1413if test -z "$srcdir"; then 1414 ac_srcdir_defaulted=yes 1415 # Try the directory containing this script, then the parent directory. 1416 ac_confdir=`$as_dirname -- "$as_myself" || 1417$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1418 X"$as_myself" : 'X\(//\)[^/]' \| \ 1419 X"$as_myself" : 'X\(//\)$' \| \ 1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1421$as_echo X"$as_myself" | 1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\/\)[^/].*/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\/\)$/{ 1431 s//\1/ 1432 q 1433 } 1434 /^X\(\/\).*/{ 1435 s//\1/ 1436 q 1437 } 1438 s/.*/./; q'` 1439 srcdir=$ac_confdir 1440 if test ! -r "$srcdir/$ac_unique_file"; then 1441 srcdir=.. 1442 fi 1443else 1444 ac_srcdir_defaulted=no 1445fi 1446if test ! -r "$srcdir/$ac_unique_file"; then 1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1448 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1449fi 1450ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1451ac_abs_confdir=`( 1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1453 pwd)` 1454# When building in place, set srcdir=. 1455if test "$ac_abs_confdir" = "$ac_pwd"; then 1456 srcdir=. 1457fi 1458# Remove unnecessary trailing slashes from srcdir. 1459# Double slashes in file names in object file debugging info 1460# mess up M-x gdb in Emacs. 1461case $srcdir in 1462*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1463esac 1464for ac_var in $ac_precious_vars; do 1465 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1466 eval ac_env_${ac_var}_value=\$${ac_var} 1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1468 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1469done 1470 1471# 1472# Report the --help message. 1473# 1474if test "$ac_init_help" = "long"; then 1475 # Omit some internal or obsolete options to make the list less imposing. 1476 # This message is too long to be a string in the A/UX 3.1 sh. 1477 cat <<_ACEOF 1478\`configure' configures this package to adapt to many kinds of systems. 1479 1480Usage: $0 [OPTION]... [VAR=VALUE]... 1481 1482To assign environment variables (e.g., CC, CFLAGS...), specify them as 1483VAR=VALUE. See below for descriptions of some of the useful variables. 1484 1485Defaults for the options are specified in brackets. 1486 1487Configuration: 1488 -h, --help display this help and exit 1489 --help=short display options specific to this package 1490 --help=recursive display the short help of all the included packages 1491 -V, --version display version information and exit 1492 -q, --quiet, --silent do not print \`checking ...' messages 1493 --cache-file=FILE cache test results in FILE [disabled] 1494 -C, --config-cache alias for \`--cache-file=config.cache' 1495 -n, --no-create do not create output files 1496 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1497 1498Installation directories: 1499 --prefix=PREFIX install architecture-independent files in PREFIX 1500 [$ac_default_prefix] 1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1502 [PREFIX] 1503 1504By default, \`make install' will install all the files in 1505\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1506an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1507for instance \`--prefix=\$HOME'. 1508 1509For better control, use the options below. 1510 1511Fine tuning of the installation directories: 1512 --bindir=DIR user executables [EPREFIX/bin] 1513 --sbindir=DIR system admin executables [EPREFIX/sbin] 1514 --libexecdir=DIR program executables [EPREFIX/libexec] 1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1518 --libdir=DIR object code libraries [EPREFIX/lib] 1519 --includedir=DIR C header files [PREFIX/include] 1520 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1523 --infodir=DIR info documentation [DATAROOTDIR/info] 1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1525 --mandir=DIR man documentation [DATAROOTDIR/man] 1526 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1527 --htmldir=DIR html documentation [DOCDIR] 1528 --dvidir=DIR dvi documentation [DOCDIR] 1529 --pdfdir=DIR pdf documentation [DOCDIR] 1530 --psdir=DIR ps documentation [DOCDIR] 1531_ACEOF 1532 1533 cat <<\_ACEOF 1534 1535System types: 1536 --build=BUILD configure for building on BUILD [guessed] 1537 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1538_ACEOF 1539fi 1540 1541if test -n "$ac_init_help"; then 1542 1543 cat <<\_ACEOF 1544 1545Optional Features: 1546 --disable-option-checking ignore unrecognized --enable/--with options 1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1549 --enable-shared[=PKGS] build shared libraries [default=yes] 1550 --enable-static[=PKGS] build static libraries [default=yes] 1551 --enable-fast-install[=PKGS] 1552 optimize for fast installation [default=yes] 1553 --disable-libtool-lock avoid locking (might break parallel builds) 1554 --enable-dependency-tracking 1555 Use gcc -MMD -MT dependency tracking [[default=yes]] 1556 --disable-sdltest Do not try to compile and run a test SDL program 1557 --enable-music-cmd support an external music player [[default=yes]] 1558 --enable-music-wave enable streaming WAVE music [[default=yes]] 1559 --enable-music-mod enable MOD music [[default=yes]] 1560 --enable-music-mod-modplug 1561 enable MOD music via modplug [[default=yes]] 1562 --enable-music-mod-modplug-shared 1563 dynamically load modplug library [[default=yes]] 1564 --enable-music-mod-mikmod 1565 enable MOD music via mikmod [[default=no]] 1566 --enable-music-mod-mikmod-shared 1567 dynamically load mikmod library [[default=yes]] 1568 --enable-music-midi enable MIDI music [[default=yes]] 1569 --enable-music-midi-timidity 1570 enable timidity MIDI output [[default=yes]] 1571 --enable-music-midi-native 1572 enable native MIDI music output [[default=yes]] 1573 --enable-music-midi-fluidsynth 1574 enable FluidSynth MIDI output [[default=yes]] 1575 --enable-music-midi-fluidsynth-shared 1576 dynamically load FluidSynth library [[default=yes]] 1577 --enable-music-ogg enable Ogg Vorbis music [[default=yes]] 1578 --enable-music-ogg-tremor 1579 enable OGG Vorbis music via libtremor [[default=no]] 1580 --enable-music-ogg-shared 1581 dynamically load Ogg Vorbis library [[default=yes]] 1582 --enable-music-flac enable FLAC music [[default=yes]] 1583 --enable-music-flac-shared 1584 dynamically load FLAC library [[default=yes]] 1585 --enable-music-mp3 enable MP3 music [[default=yes]] 1586 --enable-music-mp3-mad-gpl 1587 enable MP3 music via libmad GPL code [[default=no]] 1588 --enable-music-mp3-mad-gpl-dithering 1589 enable MP3 music via libmad GPL code [[default=yes]] 1590 --enable-music-mp3-mpg123 1591 enable MP3 music via libmpg123 [[default=yes]] 1592 --enable-music-mp3-mpg123-shared 1593 dynamically load libmpg123 library [[default=yes]] 1594 --enable-music-opus enable Opus music [[default=yes]] 1595 --enable-music-opus-shared 1596 dynamically load opusfile library [[default=yes]] 1597 1598Optional Packages: 1599 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1600 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1601 --with-pic try to use only PIC/non-PIC objects [default=use 1602 both] 1603 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1604 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1605 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1606 1607Some influential environment variables: 1608 CC C compiler command 1609 CFLAGS C compiler flags 1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1611 nonstandard directory <lib dir> 1612 LIBS libraries to pass to the linker, e.g. -l<library> 1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1614 you have headers in a nonstandard directory <include dir> 1615 CPP C preprocessor 1616 PKG_CONFIG path to pkg-config utility 1617 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config 1618 SDL_LIBS linker flags for SDL, overriding pkg-config 1619 MODPLUG_CFLAGS 1620 C compiler flags for MODPLUG, overriding pkg-config 1621 MODPLUG_LIBS 1622 linker flags for MODPLUG, overriding pkg-config 1623 OPUSFILE_CFLAGS 1624 C compiler flags for OPUSFILE, overriding pkg-config 1625 OPUSFILE_LIBS 1626 linker flags for OPUSFILE, overriding pkg-config 1627 1628Use these variables to override the choices made by `configure' or to help 1629it to find libraries and programs with nonstandard names/locations. 1630 1631Report bugs to the package provider. 1632_ACEOF 1633ac_status=$? 1634fi 1635 1636if test "$ac_init_help" = "recursive"; then 1637 # If there are subdirs, report their specific --help. 1638 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1639 test -d "$ac_dir" || 1640 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1641 continue 1642 ac_builddir=. 1643 1644case "$ac_dir" in 1645.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646*) 1647 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1648 # A ".." for each directory in $ac_dir_suffix. 1649 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1650 case $ac_top_builddir_sub in 1651 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1652 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1653 esac ;; 1654esac 1655ac_abs_top_builddir=$ac_pwd 1656ac_abs_builddir=$ac_pwd$ac_dir_suffix 1657# for backward compatibility: 1658ac_top_builddir=$ac_top_build_prefix 1659 1660case $srcdir in 1661 .) # We are building in place. 1662 ac_srcdir=. 1663 ac_top_srcdir=$ac_top_builddir_sub 1664 ac_abs_top_srcdir=$ac_pwd ;; 1665 [\\/]* | ?:[\\/]* ) # Absolute name. 1666 ac_srcdir=$srcdir$ac_dir_suffix; 1667 ac_top_srcdir=$srcdir 1668 ac_abs_top_srcdir=$srcdir ;; 1669 *) # Relative name. 1670 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1671 ac_top_srcdir=$ac_top_build_prefix$srcdir 1672 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1673esac 1674ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1675 1676 cd "$ac_dir" || { ac_status=$?; continue; } 1677 # Check for guested configure. 1678 if test -f "$ac_srcdir/configure.gnu"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1681 elif test -f "$ac_srcdir/configure"; then 1682 echo && 1683 $SHELL "$ac_srcdir/configure" --help=recursive 1684 else 1685 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1686 fi || ac_status=$? 1687 cd "$ac_pwd" || { ac_status=$?; break; } 1688 done 1689fi 1690 1691test -n "$ac_init_help" && exit $ac_status 1692if $ac_init_version; then 1693 cat <<\_ACEOF 1694configure 1695generated by GNU Autoconf 2.69 1696 1697Copyright (C) 2012 Free Software Foundation, Inc. 1698This configure script is free software; the Free Software Foundation 1699gives unlimited permission to copy, distribute and modify it. 1700_ACEOF 1701 exit 1702fi 1703 1704## ------------------------ ## 1705## Autoconf initialization. ## 1706## ------------------------ ## 1707 1708# ac_fn_c_try_compile LINENO 1709# -------------------------- 1710# Try to compile conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_compile () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext 1715 if { { ac_try="$ac_compile" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_compile") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest.$ac_objext; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: failed program was:" >&5 1737sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740fi 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 as_fn_set_status $ac_retval 1743 1744} # ac_fn_c_try_compile 1745 1746# ac_fn_c_try_link LINENO 1747# ----------------------- 1748# Try to link conftest.$ac_ext, and return whether this succeeded. 1749ac_fn_c_try_link () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 rm -f conftest.$ac_objext conftest$ac_exeext 1753 if { { ac_try="$ac_link" 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_link") 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; } && { 1769 test -z "$ac_c_werror_flag" || 1770 test ! -s conftest.err 1771 } && test -s conftest$ac_exeext && { 1772 test "$cross_compiling" = yes || 1773 test -x conftest$ac_exeext 1774 }; then : 1775 ac_retval=0 1776else 1777 $as_echo "$as_me: failed program was:" >&5 1778sed 's/^/| /' conftest.$ac_ext >&5 1779 1780 ac_retval=1 1781fi 1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1784 # interfere with the next link command; also delete a directory that is 1785 # left behind by Apple's compiler. We do this before executing the actions. 1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_link 1791 1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1793# ------------------------------------------------------- 1794# Tests whether HEADER exists and can be compiled using the include files in 1795# INCLUDES, setting the cache variable VAR accordingly. 1796ac_fn_c_check_header_compile () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1800$as_echo_n "checking for $2... " >&6; } 1801if eval \${$3+:} false; then : 1802 $as_echo_n "(cached) " >&6 1803else 1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806$4 1807#include <$2> 1808_ACEOF 1809if ac_fn_c_try_compile "$LINENO"; then : 1810 eval "$3=yes" 1811else 1812 eval "$3=no" 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1815fi 1816eval ac_res=\$$3 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1818$as_echo "$ac_res" >&6; } 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 1821} # ac_fn_c_check_header_compile 1822 1823# ac_fn_c_try_cpp LINENO 1824# ---------------------- 1825# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1826ac_fn_c_try_cpp () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 if { { ac_try="$ac_cpp conftest.$ac_ext" 1830case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833esac 1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1835$as_echo "$ac_try_echo"; } >&5 1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1837 ac_status=$? 1838 if test -s conftest.err; then 1839 grep -v '^ *+' conftest.err >conftest.er1 1840 cat conftest.er1 >&5 1841 mv -f conftest.er1 conftest.err 1842 fi 1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1844 test $ac_status = 0; } > conftest.i && { 1845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1846 test ! -s conftest.err 1847 }; then : 1848 ac_retval=0 1849else 1850 $as_echo "$as_me: failed program was:" >&5 1851sed 's/^/| /' conftest.$ac_ext >&5 1852 1853 ac_retval=1 1854fi 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 as_fn_set_status $ac_retval 1857 1858} # ac_fn_c_try_cpp 1859 1860# ac_fn_c_try_run LINENO 1861# ---------------------- 1862# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1863# that executables *can* be run. 1864ac_fn_c_try_run () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 if { { ac_try="$ac_link" 1868case "(($ac_try" in 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1870 *) ac_try_echo=$ac_try;; 1871esac 1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1873$as_echo "$ac_try_echo"; } >&5 1874 (eval "$ac_link") 2>&5 1875 ac_status=$? 1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1878 { { case "(($ac_try" in 1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1880 *) ac_try_echo=$ac_try;; 1881esac 1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1883$as_echo "$ac_try_echo"; } >&5 1884 (eval "$ac_try") 2>&5 1885 ac_status=$? 1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1887 test $ac_status = 0; }; }; then : 1888 ac_retval=0 1889else 1890 $as_echo "$as_me: program exited with status $ac_status" >&5 1891 $as_echo "$as_me: failed program was:" >&5 1892sed 's/^/| /' conftest.$ac_ext >&5 1893 1894 ac_retval=$ac_status 1895fi 1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 as_fn_set_status $ac_retval 1899 1900} # ac_fn_c_try_run 1901 1902# ac_fn_c_check_func LINENO FUNC VAR 1903# ---------------------------------- 1904# Tests whether FUNC exists, setting the cache variable VAR accordingly 1905ac_fn_c_check_func () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1909$as_echo_n "checking for $2... " >&6; } 1910if eval \${$3+:} false; then : 1911 $as_echo_n "(cached) " >&6 1912else 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1916 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1917#define $2 innocuous_$2 1918 1919/* System header to define __stub macros and hopefully few prototypes, 1920 which can conflict with char $2 (); below. 1921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1922 <limits.h> exists even on freestanding compilers. */ 1923 1924#ifdef __STDC__ 1925# include <limits.h> 1926#else 1927# include <assert.h> 1928#endif 1929 1930#undef $2 1931 1932/* Override any GCC internal prototype to avoid an error. 1933 Use char because int might match the return type of a GCC 1934 builtin and then its argument prototype would still apply. */ 1935#ifdef __cplusplus 1936extern "C" 1937#endif 1938char $2 (); 1939/* The GNU C library defines this for functions which it implements 1940 to always fail with ENOSYS. Some functions are actually named 1941 something starting with __ and the normal name is an alias. */ 1942#if defined __stub_$2 || defined __stub___$2 1943choke me 1944#endif 1945 1946int 1947main () 1948{ 1949return $2 (); 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_link "$LINENO"; then : 1955 eval "$3=yes" 1956else 1957 eval "$3=no" 1958fi 1959rm -f core conftest.err conftest.$ac_objext \ 1960 conftest$ac_exeext conftest.$ac_ext 1961fi 1962eval ac_res=\$$3 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1964$as_echo "$ac_res" >&6; } 1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1966 1967} # ac_fn_c_check_func 1968 1969# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1970# ------------------------------------------------------- 1971# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1972# the include files in INCLUDES and setting the cache variable VAR 1973# accordingly. 1974ac_fn_c_check_header_mongrel () 1975{ 1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1977 if eval \${$3+:} false; then : 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1979$as_echo_n "checking for $2... " >&6; } 1980if eval \${$3+:} false; then : 1981 $as_echo_n "(cached) " >&6 1982fi 1983eval ac_res=\$$3 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1985$as_echo "$ac_res" >&6; } 1986else 1987 # Is the header compilable? 1988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1989$as_echo_n "checking $2 usability... " >&6; } 1990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$4 1993#include <$2> 1994_ACEOF 1995if ac_fn_c_try_compile "$LINENO"; then : 1996 ac_header_compiler=yes 1997else 1998 ac_header_compiler=no 1999fi 2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2002$as_echo "$ac_header_compiler" >&6; } 2003 2004# Is the header present? 2005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2006$as_echo_n "checking $2 presence... " >&6; } 2007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2008/* end confdefs.h. */ 2009#include <$2> 2010_ACEOF 2011if ac_fn_c_try_cpp "$LINENO"; then : 2012 ac_header_preproc=yes 2013else 2014 ac_header_preproc=no 2015fi 2016rm -f conftest.err conftest.i conftest.$ac_ext 2017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2018$as_echo "$ac_header_preproc" >&6; } 2019 2020# So? What about this header? 2021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2022 yes:no: ) 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2024$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2026$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2027 ;; 2028 no:yes:* ) 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2030$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2032$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2034$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2036$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2038$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2039 ;; 2040esac 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2042$as_echo_n "checking for $2... " >&6; } 2043if eval \${$3+:} false; then : 2044 $as_echo_n "(cached) " >&6 2045else 2046 eval "$3=\$ac_header_compiler" 2047fi 2048eval ac_res=\$$3 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2050$as_echo "$ac_res" >&6; } 2051fi 2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2053 2054} # ac_fn_c_check_header_mongrel 2055cat >config.log <<_ACEOF 2056This file contains any messages produced by compilers while 2057running configure, to aid debugging if configure makes a mistake. 2058 2059It was created by $as_me, which was 2060generated by GNU Autoconf 2.69. Invocation command line was 2061 2062 $ $0 $@ 2063 2064_ACEOF 2065exec 5>>config.log 2066{ 2067cat <<_ASUNAME 2068## --------- ## 2069## Platform. ## 2070## --------- ## 2071 2072hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2073uname -m = `(uname -m) 2>/dev/null || echo unknown` 2074uname -r = `(uname -r) 2>/dev/null || echo unknown` 2075uname -s = `(uname -s) 2>/dev/null || echo unknown` 2076uname -v = `(uname -v) 2>/dev/null || echo unknown` 2077 2078/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2079/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2080 2081/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2082/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2083/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2084/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2085/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2086/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2087/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2088 2089_ASUNAME 2090 2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2092for as_dir in $PATH 2093do 2094 IFS=$as_save_IFS 2095 test -z "$as_dir" && as_dir=. 2096 $as_echo "PATH: $as_dir" 2097 done 2098IFS=$as_save_IFS 2099 2100} >&5 2101 2102cat >&5 <<_ACEOF 2103 2104 2105## ----------- ## 2106## Core tests. ## 2107## ----------- ## 2108 2109_ACEOF 2110 2111 2112# Keep a trace of the command line. 2113# Strip out --no-create and --no-recursion so they do not pile up. 2114# Strip out --silent because we don't want to record it for future runs. 2115# Also quote any args containing shell meta-characters. 2116# Make two passes to allow for proper duplicate-argument suppression. 2117ac_configure_args= 2118ac_configure_args0= 2119ac_configure_args1= 2120ac_must_keep_next=false 2121for ac_pass in 1 2 2122do 2123 for ac_arg 2124 do 2125 case $ac_arg in 2126 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2128 | -silent | --silent | --silen | --sile | --sil) 2129 continue ;; 2130 *\'*) 2131 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2132 esac 2133 case $ac_pass in 2134 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2135 2) 2136 as_fn_append ac_configure_args1 " '$ac_arg'" 2137 if test $ac_must_keep_next = true; then 2138 ac_must_keep_next=false # Got value, back to normal. 2139 else 2140 case $ac_arg in 2141 *=* | --config-cache | -C | -disable-* | --disable-* \ 2142 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2143 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2144 | -with-* | --with-* | -without-* | --without-* | --x) 2145 case "$ac_configure_args0 " in 2146 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2147 esac 2148 ;; 2149 -* ) ac_must_keep_next=true ;; 2150 esac 2151 fi 2152 as_fn_append ac_configure_args " '$ac_arg'" 2153 ;; 2154 esac 2155 done 2156done 2157{ ac_configure_args0=; unset ac_configure_args0;} 2158{ ac_configure_args1=; unset ac_configure_args1;} 2159 2160# When interrupted or exit'd, cleanup temporary files, and complete 2161# config.log. We remove comments because anyway the quotes in there 2162# would cause problems or look ugly. 2163# WARNING: Use '\'' to represent an apostrophe within the trap. 2164# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2165trap 'exit_status=$? 2166 # Save into config.log some information that might help in debugging. 2167 { 2168 echo 2169 2170 $as_echo "## ---------------- ## 2171## Cache variables. ## 2172## ---------------- ##" 2173 echo 2174 # The following way of writing the cache mishandles newlines in values, 2175( 2176 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2177 eval ac_val=\$$ac_var 2178 case $ac_val in #( 2179 *${as_nl}*) 2180 case $ac_var in #( 2181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2183 esac 2184 case $ac_var in #( 2185 _ | IFS | as_nl) ;; #( 2186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2187 *) { eval $ac_var=; unset $ac_var;} ;; 2188 esac ;; 2189 esac 2190 done 2191 (set) 2>&1 | 2192 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2193 *${as_nl}ac_space=\ *) 2194 sed -n \ 2195 "s/'\''/'\''\\\\'\'''\''/g; 2196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2197 ;; #( 2198 *) 2199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2200 ;; 2201 esac | 2202 sort 2203) 2204 echo 2205 2206 $as_echo "## ----------------- ## 2207## Output variables. ## 2208## ----------------- ##" 2209 echo 2210 for ac_var in $ac_subst_vars 2211 do 2212 eval ac_val=\$$ac_var 2213 case $ac_val in 2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2215 esac 2216 $as_echo "$ac_var='\''$ac_val'\''" 2217 done | sort 2218 echo 2219 2220 if test -n "$ac_subst_files"; then 2221 $as_echo "## ------------------- ## 2222## File substitutions. ## 2223## ------------------- ##" 2224 echo 2225 for ac_var in $ac_subst_files 2226 do 2227 eval ac_val=\$$ac_var 2228 case $ac_val in 2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2230 esac 2231 $as_echo "$ac_var='\''$ac_val'\''" 2232 done | sort 2233 echo 2234 fi 2235 2236 if test -s confdefs.h; then 2237 $as_echo "## ----------- ## 2238## confdefs.h. ## 2239## ----------- ##" 2240 echo 2241 cat confdefs.h 2242 echo 2243 fi 2244 test "$ac_signal" != 0 && 2245 $as_echo "$as_me: caught signal $ac_signal" 2246 $as_echo "$as_me: exit $exit_status" 2247 } >&5 2248 rm -f core *.core core.conftest.* && 2249 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2250 exit $exit_status 2251' 0 2252for ac_signal in 1 2 13 15; do 2253 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2254done 2255ac_signal=0 2256 2257# confdefs.h avoids OS command line length limits that DEFS can exceed. 2258rm -f -r conftest* confdefs.h 2259 2260$as_echo "/* confdefs.h */" > confdefs.h 2261 2262# Predefined preprocessor variables. 2263 2264cat >>confdefs.h <<_ACEOF 2265#define PACKAGE_NAME "$PACKAGE_NAME" 2266_ACEOF 2267 2268cat >>confdefs.h <<_ACEOF 2269#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2270_ACEOF 2271 2272cat >>confdefs.h <<_ACEOF 2273#define PACKAGE_VERSION "$PACKAGE_VERSION" 2274_ACEOF 2275 2276cat >>confdefs.h <<_ACEOF 2277#define PACKAGE_STRING "$PACKAGE_STRING" 2278_ACEOF 2279 2280cat >>confdefs.h <<_ACEOF 2281#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2282_ACEOF 2283 2284cat >>confdefs.h <<_ACEOF 2285#define PACKAGE_URL "$PACKAGE_URL" 2286_ACEOF 2287 2288 2289# Let the site file select an alternate cache file if it wants to. 2290# Prefer an explicitly selected file to automatically selected ones. 2291ac_site_file1=NONE 2292ac_site_file2=NONE 2293if test -n "$CONFIG_SITE"; then 2294 # We do not want a PATH search for config.site. 2295 case $CONFIG_SITE in #(( 2296 -*) ac_site_file1=./$CONFIG_SITE;; 2297 */*) ac_site_file1=$CONFIG_SITE;; 2298 *) ac_site_file1=./$CONFIG_SITE;; 2299 esac 2300elif test "x$prefix" != xNONE; then 2301 ac_site_file1=$prefix/share/config.site 2302 ac_site_file2=$prefix/etc/config.site 2303else 2304 ac_site_file1=$ac_default_prefix/share/config.site 2305 ac_site_file2=$ac_default_prefix/etc/config.site 2306fi 2307for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2308do 2309 test "x$ac_site_file" = xNONE && continue 2310 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2312$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2313 sed 's/^/| /' "$ac_site_file" >&5 2314 . "$ac_site_file" \ 2315 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2317as_fn_error $? "failed to load site script $ac_site_file 2318See \`config.log' for more details" "$LINENO" 5; } 2319 fi 2320done 2321 2322if test -r "$cache_file"; then 2323 # Some versions of bash will fail to source /dev/null (special files 2324 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2325 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2327$as_echo "$as_me: loading cache $cache_file" >&6;} 2328 case $cache_file in 2329 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2330 *) . "./$cache_file";; 2331 esac 2332 fi 2333else 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2335$as_echo "$as_me: creating cache $cache_file" >&6;} 2336 >$cache_file 2337fi 2338 2339# Check that the precious variables saved in the cache have kept the same 2340# value. 2341ac_cache_corrupted=false 2342for ac_var in $ac_precious_vars; do 2343 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2344 eval ac_new_set=\$ac_env_${ac_var}_set 2345 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2346 eval ac_new_val=\$ac_env_${ac_var}_value 2347 case $ac_old_set,$ac_new_set in 2348 set,) 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2350$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2351 ac_cache_corrupted=: ;; 2352 ,set) 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2354$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2355 ac_cache_corrupted=: ;; 2356 ,);; 2357 *) 2358 if test "x$ac_old_val" != "x$ac_new_val"; then 2359 # differences in whitespace do not lead to failure. 2360 ac_old_val_w=`echo x $ac_old_val` 2361 ac_new_val_w=`echo x $ac_new_val` 2362 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2364$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2365 ac_cache_corrupted=: 2366 else 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2368$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2369 eval $ac_var=\$ac_old_val 2370 fi 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2372$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2374$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2375 fi;; 2376 esac 2377 # Pass precious variables to config.status. 2378 if test "$ac_new_set" = set; then 2379 case $ac_new_val in 2380 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2381 *) ac_arg=$ac_var=$ac_new_val ;; 2382 esac 2383 case " $ac_configure_args " in 2384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2385 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2386 esac 2387 fi 2388done 2389if $ac_cache_corrupted; then 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2393$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2394 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2395fi 2396## -------------------- ## 2397## Main body of script. ## 2398## -------------------- ## 2399 2400ac_ext=c 2401ac_cpp='$CPP $CPPFLAGS' 2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2404ac_compiler_gnu=$ac_cv_c_compiler_gnu 2405 2406 2407ac_aux_dir= 2408for ac_dir in build-scripts "$srcdir"/build-scripts; do 2409 if test -f "$ac_dir/install-sh"; then 2410 ac_aux_dir=$ac_dir 2411 ac_install_sh="$ac_aux_dir/install-sh -c" 2412 break 2413 elif test -f "$ac_dir/install.sh"; then 2414 ac_aux_dir=$ac_dir 2415 ac_install_sh="$ac_aux_dir/install.sh -c" 2416 break 2417 elif test -f "$ac_dir/shtool"; then 2418 ac_aux_dir=$ac_dir 2419 ac_install_sh="$ac_aux_dir/shtool install -c" 2420 break 2421 fi 2422done 2423if test -z "$ac_aux_dir"; then 2424 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5 2425fi 2426 2427# These three variables are undocumented and unsupported, 2428# and are intended to be withdrawn in a future Autoconf release. 2429# They can cause serious problems if a builder's source tree is in a directory 2430# whose full name contains unusual characters. 2431ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2432ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2433ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2434 2435 2436 2437 2438# Making releases: 2439# MICRO_VERSION += 1; 2440# INTERFACE_AGE += 1; 2441# BINARY_AGE += 1; 2442# if any functions have been added, set INTERFACE_AGE to 0. 2443# if backwards compatibility has been broken, 2444# set BINARY_AGE and INTERFACE_AGE to 0. 2445# 2446MAJOR_VERSION=2 2447MINOR_VERSION=0 2448MICRO_VERSION=4 2449INTERFACE_AGE=2 2450BINARY_AGE=4 2451VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION 2452 2453 2454 2455 2456 2457 2458 2459 2460# libtool versioning 2461case `pwd` in 2462 *\ * | *\ *) 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2464$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2465esac 2466 2467 2468 2469macro_version='2.2.6' 2470macro_revision='1.3012' 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484ltmain="$ac_aux_dir/ltmain.sh" 2485 2486# Make sure we can run config.sub. 2487$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2488 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2489 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2491$as_echo_n "checking build system type... " >&6; } 2492if ${ac_cv_build+:} false; then : 2493 $as_echo_n "(cached) " >&6 2494else 2495 ac_build_alias=$build_alias 2496test "x$ac_build_alias" = x && 2497 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2498test "x$ac_build_alias" = x && 2499 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2500ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2502 2503fi 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2505$as_echo "$ac_cv_build" >&6; } 2506case $ac_cv_build in 2507*-*-*) ;; 2508*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2509esac 2510build=$ac_cv_build 2511ac_save_IFS=$IFS; IFS='-' 2512set x $ac_cv_build 2513shift 2514build_cpu=$1 2515build_vendor=$2 2516shift; shift 2517# Remember, the first character of IFS is used to create $*, 2518# except with old shells: 2519build_os=$* 2520IFS=$ac_save_IFS 2521case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2522 2523 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2525$as_echo_n "checking host system type... " >&6; } 2526if ${ac_cv_host+:} false; then : 2527 $as_echo_n "(cached) " >&6 2528else 2529 if test "x$host_alias" = x; then 2530 ac_cv_host=$ac_cv_build 2531else 2532 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2533 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2534fi 2535 2536fi 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2538$as_echo "$ac_cv_host" >&6; } 2539case $ac_cv_host in 2540*-*-*) ;; 2541*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2542esac 2543host=$ac_cv_host 2544ac_save_IFS=$IFS; IFS='-' 2545set x $ac_cv_host 2546shift 2547host_cpu=$1 2548host_vendor=$2 2549shift; shift 2550# Remember, the first character of IFS is used to create $*, 2551# except with old shells: 2552host_os=$* 2553IFS=$ac_save_IFS 2554case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2555 2556 2557ac_ext=c 2558ac_cpp='$CPP $CPPFLAGS' 2559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2561ac_compiler_gnu=$ac_cv_c_compiler_gnu 2562if test -n "$ac_tool_prefix"; then 2563 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2564set dummy ${ac_tool_prefix}gcc; ac_word=$2 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2566$as_echo_n "checking for $ac_word... " >&6; } 2567if ${ac_cv_prog_CC+:} false; then : 2568 $as_echo_n "(cached) " >&6 2569else 2570 if test -n "$CC"; then 2571 ac_cv_prog_CC="$CC" # Let the user override the test. 2572else 2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2574for as_dir in $PATH 2575do 2576 IFS=$as_save_IFS 2577 test -z "$as_dir" && as_dir=. 2578 for ac_exec_ext in '' $ac_executable_extensions; do 2579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2580 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2582 break 2 2583 fi 2584done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589fi 2590CC=$ac_cv_prog_CC 2591if test -n "$CC"; then 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2593$as_echo "$CC" >&6; } 2594else 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2596$as_echo "no" >&6; } 2597fi 2598 2599 2600fi 2601if test -z "$ac_cv_prog_CC"; then 2602 ac_ct_CC=$CC 2603 # Extract the first word of "gcc", so it can be a program name with args. 2604set dummy gcc; ac_word=$2 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2606$as_echo_n "checking for $ac_word... " >&6; } 2607if ${ac_cv_prog_ac_ct_CC+:} false; then : 2608 $as_echo_n "(cached) " >&6 2609else 2610 if test -n "$ac_ct_CC"; then 2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2612else 2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2614for as_dir in $PATH 2615do 2616 IFS=$as_save_IFS 2617 test -z "$as_dir" && as_dir=. 2618 for ac_exec_ext in '' $ac_executable_extensions; do 2619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2620 ac_cv_prog_ac_ct_CC="gcc" 2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2622 break 2 2623 fi 2624done 2625 done 2626IFS=$as_save_IFS 2627 2628fi 2629fi 2630ac_ct_CC=$ac_cv_prog_ac_ct_CC 2631if test -n "$ac_ct_CC"; then 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2633$as_echo "$ac_ct_CC" >&6; } 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2636$as_echo "no" >&6; } 2637fi 2638 2639 if test "x$ac_ct_CC" = x; then 2640 CC="" 2641 else 2642 case $cross_compiling:$ac_tool_warned in 2643yes:) 2644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2646ac_tool_warned=yes ;; 2647esac 2648 CC=$ac_ct_CC 2649 fi 2650else 2651 CC="$ac_cv_prog_CC" 2652fi 2653 2654if test -z "$CC"; then 2655 if test -n "$ac_tool_prefix"; then 2656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2657set dummy ${ac_tool_prefix}cc; ac_word=$2 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2659$as_echo_n "checking for $ac_word... " >&6; } 2660if ${ac_cv_prog_CC+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 if test -n "$CC"; then 2664 ac_cv_prog_CC="$CC" # Let the user override the test. 2665else 2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2673 ac_cv_prog_CC="${ac_tool_prefix}cc" 2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2675 break 2 2676 fi 2677done 2678 done 2679IFS=$as_save_IFS 2680 2681fi 2682fi 2683CC=$ac_cv_prog_CC 2684if test -n "$CC"; then 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2686$as_echo "$CC" >&6; } 2687else 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2689$as_echo "no" >&6; } 2690fi 2691 2692 2693 fi 2694fi 2695if test -z "$CC"; then 2696 # Extract the first word of "cc", so it can be a program name with args. 2697set dummy cc; ac_word=$2 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2699$as_echo_n "checking for $ac_word... " >&6; } 2700if ${ac_cv_prog_CC+:} false; then : 2701 $as_echo_n "(cached) " >&6 2702else 2703 if test -n "$CC"; then 2704 ac_cv_prog_CC="$CC" # Let the user override the test. 2705else 2706 ac_prog_rejected=no 2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2708for as_dir in $PATH 2709do 2710 IFS=$as_save_IFS 2711 test -z "$as_dir" && as_dir=. 2712 for ac_exec_ext in '' $ac_executable_extensions; do 2713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2715 ac_prog_rejected=yes 2716 continue 2717 fi 2718 ac_cv_prog_CC="cc" 2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2720 break 2 2721 fi 2722done 2723 done 2724IFS=$as_save_IFS 2725 2726if test $ac_prog_rejected = yes; then 2727 # We found a bogon in the path, so make sure we never use it. 2728 set dummy $ac_cv_prog_CC 2729 shift 2730 if test $# != 0; then 2731 # We chose a different compiler from the bogus one. 2732 # However, it has the same basename, so the bogon will be chosen 2733 # first if we set CC to just the basename; use the full file name. 2734 shift 2735 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2736 fi 2737fi 2738fi 2739fi 2740CC=$ac_cv_prog_CC 2741if test -n "$CC"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2743$as_echo "$CC" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 2750fi 2751if test -z "$CC"; then 2752 if test -n "$ac_tool_prefix"; then 2753 for ac_prog in cl.exe 2754 do 2755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2756set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2758$as_echo_n "checking for $ac_word... " >&6; } 2759if ${ac_cv_prog_CC+:} false; then : 2760 $as_echo_n "(cached) " >&6 2761else 2762 if test -n "$CC"; then 2763 ac_cv_prog_CC="$CC" # Let the user override the test. 2764else 2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766for as_dir in $PATH 2767do 2768 IFS=$as_save_IFS 2769 test -z "$as_dir" && as_dir=. 2770 for ac_exec_ext in '' $ac_executable_extensions; do 2771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777 done 2778IFS=$as_save_IFS 2779 2780fi 2781fi 2782CC=$ac_cv_prog_CC 2783if test -n "$CC"; then 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2785$as_echo "$CC" >&6; } 2786else 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2788$as_echo "no" >&6; } 2789fi 2790 2791 2792 test -n "$CC" && break 2793 done 2794fi 2795if test -z "$CC"; then 2796 ac_ct_CC=$CC 2797 for ac_prog in cl.exe 2798do 2799 # Extract the first word of "$ac_prog", so it can be a program name with args. 2800set dummy $ac_prog; ac_word=$2 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2802$as_echo_n "checking for $ac_word... " >&6; } 2803if ${ac_cv_prog_ac_ct_CC+:} false; then : 2804 $as_echo_n "(cached) " >&6 2805else 2806 if test -n "$ac_ct_CC"; then 2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2808else 2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2816 ac_cv_prog_ac_ct_CC="$ac_prog" 2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2818 break 2 2819 fi 2820done 2821 done 2822IFS=$as_save_IFS 2823 2824fi 2825fi 2826ac_ct_CC=$ac_cv_prog_ac_ct_CC 2827if test -n "$ac_ct_CC"; then 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2829$as_echo "$ac_ct_CC" >&6; } 2830else 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832$as_echo "no" >&6; } 2833fi 2834 2835 2836 test -n "$ac_ct_CC" && break 2837done 2838 2839 if test "x$ac_ct_CC" = x; then 2840 CC="" 2841 else 2842 case $cross_compiling:$ac_tool_warned in 2843yes:) 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2846ac_tool_warned=yes ;; 2847esac 2848 CC=$ac_ct_CC 2849 fi 2850fi 2851 2852fi 2853 2854 2855test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2857as_fn_error $? "no acceptable C compiler found in \$PATH 2858See \`config.log' for more details" "$LINENO" 5; } 2859 2860# Provide some information about the compiler. 2861$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2862set X $ac_compile 2863ac_compiler=$2 2864for ac_option in --version -v -V -qversion; do 2865 { { ac_try="$ac_compiler $ac_option >&5" 2866case "(($ac_try" in 2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2868 *) ac_try_echo=$ac_try;; 2869esac 2870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2871$as_echo "$ac_try_echo"; } >&5 2872 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2873 ac_status=$? 2874 if test -s conftest.err; then 2875 sed '10a\ 2876... rest of stderr output deleted ... 2877 10q' conftest.err >conftest.er1 2878 cat conftest.er1 >&5 2879 fi 2880 rm -f conftest.er1 conftest.err 2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2882 test $ac_status = 0; } 2883done 2884 2885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2886/* end confdefs.h. */ 2887 2888int 2889main () 2890{ 2891 2892 ; 2893 return 0; 2894} 2895_ACEOF 2896ac_clean_files_save=$ac_clean_files 2897ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2898# Try to create an executable without -o first, disregard a.out. 2899# It will help us diagnose broken compilers, and finding out an intuition 2900# of exeext. 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2902$as_echo_n "checking whether the C compiler works... " >&6; } 2903ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2904 2905# The possible output files: 2906ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2907 2908ac_rmfiles= 2909for ac_file in $ac_files 2910do 2911 case $ac_file in 2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2913 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2914 esac 2915done 2916rm -f $ac_rmfiles 2917 2918if { { ac_try="$ac_link_default" 2919case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922esac 2923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2924$as_echo "$ac_try_echo"; } >&5 2925 (eval "$ac_link_default") 2>&5 2926 ac_status=$? 2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2928 test $ac_status = 0; }; then : 2929 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2930# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2931# in a Makefile. We should not override ac_cv_exeext if it was cached, 2932# so that the user can short-circuit this test for compilers unknown to 2933# Autoconf. 2934for ac_file in $ac_files '' 2935do 2936 test -f "$ac_file" || continue 2937 case $ac_file in 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2939 ;; 2940 [ab].out ) 2941 # We found the default executable, but exeext='' is most 2942 # certainly right. 2943 break;; 2944 *.* ) 2945 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2946 then :; else 2947 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2948 fi 2949 # We set ac_cv_exeext here because the later test for it is not 2950 # safe: cross compilers may not add the suffix if given an `-o' 2951 # argument, so we may need to know it at that point already. 2952 # Even if this section looks crufty: it has the advantage of 2953 # actually working. 2954 break;; 2955 * ) 2956 break;; 2957 esac 2958done 2959test "$ac_cv_exeext" = no && ac_cv_exeext= 2960 2961else 2962 ac_file='' 2963fi 2964if test -z "$ac_file"; then : 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2966$as_echo "no" >&6; } 2967$as_echo "$as_me: failed program was:" >&5 2968sed 's/^/| /' conftest.$ac_ext >&5 2969 2970{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2972as_fn_error 77 "C compiler cannot create executables 2973See \`config.log' for more details" "$LINENO" 5; } 2974else 2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2976$as_echo "yes" >&6; } 2977fi 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2979$as_echo_n "checking for C compiler default output file name... " >&6; } 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2981$as_echo "$ac_file" >&6; } 2982ac_exeext=$ac_cv_exeext 2983 2984rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2985ac_clean_files=$ac_clean_files_save 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2987$as_echo_n "checking for suffix of executables... " >&6; } 2988if { { ac_try="$ac_link" 2989case "(($ac_try" in 2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2991 *) ac_try_echo=$ac_try;; 2992esac 2993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2994$as_echo "$ac_try_echo"; } >&5 2995 (eval "$ac_link") 2>&5 2996 ac_status=$? 2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2998 test $ac_status = 0; }; then : 2999 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3000# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3001# work properly (i.e., refer to `conftest.exe'), while it won't with 3002# `rm'. 3003for ac_file in conftest.exe conftest conftest.*; do 3004 test -f "$ac_file" || continue 3005 case $ac_file in 3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3007 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3008 break;; 3009 * ) break;; 3010 esac 3011done 3012else 3013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3015as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3016See \`config.log' for more details" "$LINENO" 5; } 3017fi 3018rm -f conftest conftest$ac_cv_exeext 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3020$as_echo "$ac_cv_exeext" >&6; } 3021 3022rm -f conftest.$ac_ext 3023EXEEXT=$ac_cv_exeext 3024ac_exeext=$EXEEXT 3025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3026/* end confdefs.h. */ 3027#include <stdio.h> 3028int 3029main () 3030{ 3031FILE *f = fopen ("conftest.out", "w"); 3032 return ferror (f) || fclose (f) != 0; 3033 3034 ; 3035 return 0; 3036} 3037_ACEOF 3038ac_clean_files="$ac_clean_files conftest.out" 3039# Check that the compiler produces executables we can run. If not, either 3040# the compiler is broken, or we cross compile. 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3042$as_echo_n "checking whether we are cross compiling... " >&6; } 3043if test "$cross_compiling" != yes; then 3044 { { ac_try="$ac_link" 3045case "(($ac_try" in 3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3047 *) ac_try_echo=$ac_try;; 3048esac 3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3050$as_echo "$ac_try_echo"; } >&5 3051 (eval "$ac_link") 2>&5 3052 ac_status=$? 3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3054 test $ac_status = 0; } 3055 if { ac_try='./conftest$ac_cv_exeext' 3056 { { case "(($ac_try" in 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *) ac_try_echo=$ac_try;; 3059esac 3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3061$as_echo "$ac_try_echo"; } >&5 3062 (eval "$ac_try") 2>&5 3063 ac_status=$? 3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065 test $ac_status = 0; }; }; then 3066 cross_compiling=no 3067 else 3068 if test "$cross_compiling" = maybe; then 3069 cross_compiling=yes 3070 else 3071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3073as_fn_error $? "cannot run C compiled programs. 3074If you meant to cross compile, use \`--host'. 3075See \`config.log' for more details" "$LINENO" 5; } 3076 fi 3077 fi 3078fi 3079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3080$as_echo "$cross_compiling" >&6; } 3081 3082rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3083ac_clean_files=$ac_clean_files_save 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3085$as_echo_n "checking for suffix of object files... " >&6; } 3086if ${ac_cv_objext+:} false; then : 3087 $as_echo_n "(cached) " >&6 3088else 3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3090/* end confdefs.h. */ 3091 3092int 3093main () 3094{ 3095 3096 ; 3097 return 0; 3098} 3099_ACEOF 3100rm -f conftest.o conftest.obj 3101if { { ac_try="$ac_compile" 3102case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3107$as_echo "$ac_try_echo"; } >&5 3108 (eval "$ac_compile") 2>&5 3109 ac_status=$? 3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; }; then : 3112 for ac_file in conftest.o conftest.obj conftest.*; do 3113 test -f "$ac_file" || continue; 3114 case $ac_file in 3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3117 break;; 3118 esac 3119done 3120else 3121 $as_echo "$as_me: failed program was:" >&5 3122sed 's/^/| /' conftest.$ac_ext >&5 3123 3124{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3126as_fn_error $? "cannot compute suffix of object files: cannot compile 3127See \`config.log' for more details" "$LINENO" 5; } 3128fi 3129rm -f conftest.$ac_cv_objext conftest.$ac_ext 3130fi 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3132$as_echo "$ac_cv_objext" >&6; } 3133OBJEXT=$ac_cv_objext 3134ac_objext=$OBJEXT 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3136$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3137if ${ac_cv_c_compiler_gnu+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3141/* end confdefs.h. */ 3142 3143int 3144main () 3145{ 3146#ifndef __GNUC__ 3147 choke me 3148#endif 3149 3150 ; 3151 return 0; 3152} 3153_ACEOF 3154if ac_fn_c_try_compile "$LINENO"; then : 3155 ac_compiler_gnu=yes 3156else 3157 ac_compiler_gnu=no 3158fi 3159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3160ac_cv_c_compiler_gnu=$ac_compiler_gnu 3161 3162fi 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3164$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3165if test $ac_compiler_gnu = yes; then 3166 GCC=yes 3167else 3168 GCC= 3169fi 3170ac_test_CFLAGS=${CFLAGS+set} 3171ac_save_CFLAGS=$CFLAGS 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3173$as_echo_n "checking whether $CC accepts -g... " >&6; } 3174if ${ac_cv_prog_cc_g+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 ac_save_c_werror_flag=$ac_c_werror_flag 3178 ac_c_werror_flag=yes 3179 ac_cv_prog_cc_g=no 3180 CFLAGS="-g" 3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3182/* end confdefs.h. */ 3183 3184int 3185main () 3186{ 3187 3188 ; 3189 return 0; 3190} 3191_ACEOF 3192if ac_fn_c_try_compile "$LINENO"; then : 3193 ac_cv_prog_cc_g=yes 3194else 3195 CFLAGS="" 3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3197/* end confdefs.h. */ 3198 3199int 3200main () 3201{ 3202 3203 ; 3204 return 0; 3205} 3206_ACEOF 3207if ac_fn_c_try_compile "$LINENO"; then : 3208 3209else 3210 ac_c_werror_flag=$ac_save_c_werror_flag 3211 CFLAGS="-g" 3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3213/* end confdefs.h. */ 3214 3215int 3216main () 3217{ 3218 3219 ; 3220 return 0; 3221} 3222_ACEOF 3223if ac_fn_c_try_compile "$LINENO"; then : 3224 ac_cv_prog_cc_g=yes 3225fi 3226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3227fi 3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3229fi 3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3231 ac_c_werror_flag=$ac_save_c_werror_flag 3232fi 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3234$as_echo "$ac_cv_prog_cc_g" >&6; } 3235if test "$ac_test_CFLAGS" = set; then 3236 CFLAGS=$ac_save_CFLAGS 3237elif test $ac_cv_prog_cc_g = yes; then 3238 if test "$GCC" = yes; then 3239 CFLAGS="-g -O2" 3240 else 3241 CFLAGS="-g" 3242 fi 3243else 3244 if test "$GCC" = yes; then 3245 CFLAGS="-O2" 3246 else 3247 CFLAGS= 3248 fi 3249fi 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3251$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3252if ${ac_cv_prog_cc_c89+:} false; then : 3253 $as_echo_n "(cached) " >&6 3254else 3255 ac_cv_prog_cc_c89=no 3256ac_save_CC=$CC 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258/* end confdefs.h. */ 3259#include <stdarg.h> 3260#include <stdio.h> 3261struct stat; 3262/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3263struct buf { int x; }; 3264FILE * (*rcsopen) (struct buf *, struct stat *, int); 3265static char *e (p, i) 3266 char **p; 3267 int i; 3268{ 3269 return p[i]; 3270} 3271static char *f (char * (*g) (char **, int), char **p, ...) 3272{ 3273 char *s; 3274 va_list v; 3275 va_start (v,p); 3276 s = g (p, va_arg (v,int)); 3277 va_end (v); 3278 return s; 3279} 3280 3281/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3282 function prototypes and stuff, but not '\xHH' hex character constants. 3283 These don't provoke an error unfortunately, instead are silently treated 3284 as 'x'. The following induces an error, until -std is added to get 3285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3286 array size at least. It's necessary to write '\x00'==0 to get something 3287 that's true only with -std. */ 3288int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3289 3290/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3291 inside strings and character constants. */ 3292#define FOO(x) 'x' 3293int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3294 3295int test (int i, double x); 3296struct s1 {int (*f) (int a);}; 3297struct s2 {int (*f) (double a);}; 3298int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3299int argc; 3300char **argv; 3301int 3302main () 3303{ 3304return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3311do 3312 CC="$ac_save_CC $ac_arg" 3313 if ac_fn_c_try_compile "$LINENO"; then : 3314 ac_cv_prog_cc_c89=$ac_arg 3315fi 3316rm -f core conftest.err conftest.$ac_objext 3317 test "x$ac_cv_prog_cc_c89" != "xno" && break 3318done 3319rm -f conftest.$ac_ext 3320CC=$ac_save_CC 3321 3322fi 3323# AC_CACHE_VAL 3324case "x$ac_cv_prog_cc_c89" in 3325 x) 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3327$as_echo "none needed" >&6; } ;; 3328 xno) 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3330$as_echo "unsupported" >&6; } ;; 3331 *) 3332 CC="$CC $ac_cv_prog_cc_c89" 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3334$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3335esac 3336if test "x$ac_cv_prog_cc_c89" != xno; then : 3337 3338fi 3339 3340ac_ext=c 3341ac_cpp='$CPP $CPPFLAGS' 3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3344ac_compiler_gnu=$ac_cv_c_compiler_gnu 3345 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3347$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3348if ${ac_cv_path_SED+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3352 for ac_i in 1 2 3 4 5 6 7; do 3353 ac_script="$ac_script$as_nl$ac_script" 3354 done 3355 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3356 { ac_script=; unset ac_script;} 3357 if test -z "$SED"; then 3358 ac_path_SED_found=false 3359 # Loop through the user's path and test for each of PROGNAME-LIST 3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3361for as_dir in $PATH 3362do 3363 IFS=$as_save_IFS 3364 test -z "$as_dir" && as_dir=. 3365 for ac_prog in sed gsed; do 3366 for ac_exec_ext in '' $ac_executable_extensions; do 3367 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3368 as_fn_executable_p "$ac_path_SED" || continue 3369# Check for GNU ac_path_SED and select it if it is found. 3370 # Check for GNU $ac_path_SED 3371case `"$ac_path_SED" --version 2>&1` in 3372*GNU*) 3373 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3374*) 3375 ac_count=0 3376 $as_echo_n 0123456789 >"conftest.in" 3377 while : 3378 do 3379 cat "conftest.in" "conftest.in" >"conftest.tmp" 3380 mv "conftest.tmp" "conftest.in" 3381 cp "conftest.in" "conftest.nl" 3382 $as_echo '' >> "conftest.nl" 3383 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3385 as_fn_arith $ac_count + 1 && ac_count=$as_val 3386 if test $ac_count -gt ${ac_path_SED_max-0}; then 3387 # Best one so far, save it but keep looking for a better one 3388 ac_cv_path_SED="$ac_path_SED" 3389 ac_path_SED_max=$ac_count 3390 fi 3391 # 10*(2^10) chars as input seems more than enough 3392 test $ac_count -gt 10 && break 3393 done 3394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3395esac 3396 3397 $ac_path_SED_found && break 3 3398 done 3399 done 3400 done 3401IFS=$as_save_IFS 3402 if test -z "$ac_cv_path_SED"; then 3403 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3404 fi 3405else 3406 ac_cv_path_SED=$SED 3407fi 3408 3409fi 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3411$as_echo "$ac_cv_path_SED" >&6; } 3412 SED="$ac_cv_path_SED" 3413 rm -f conftest.sed 3414 3415test -z "$SED" && SED=sed 3416Xsed="$SED -e 1s/^X//" 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3429$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3430if ${ac_cv_path_GREP+:} false; then : 3431 $as_echo_n "(cached) " >&6 3432else 3433 if test -z "$GREP"; then 3434 ac_path_GREP_found=false 3435 # Loop through the user's path and test for each of PROGNAME-LIST 3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3438do 3439 IFS=$as_save_IFS 3440 test -z "$as_dir" && as_dir=. 3441 for ac_prog in grep ggrep; do 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3444 as_fn_executable_p "$ac_path_GREP" || continue 3445# Check for GNU ac_path_GREP and select it if it is found. 3446 # Check for GNU $ac_path_GREP 3447case `"$ac_path_GREP" --version 2>&1` in 3448*GNU*) 3449 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3450*) 3451 ac_count=0 3452 $as_echo_n 0123456789 >"conftest.in" 3453 while : 3454 do 3455 cat "conftest.in" "conftest.in" >"conftest.tmp" 3456 mv "conftest.tmp" "conftest.in" 3457 cp "conftest.in" "conftest.nl" 3458 $as_echo 'GREP' >> "conftest.nl" 3459 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3461 as_fn_arith $ac_count + 1 && ac_count=$as_val 3462 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3463 # Best one so far, save it but keep looking for a better one 3464 ac_cv_path_GREP="$ac_path_GREP" 3465 ac_path_GREP_max=$ac_count 3466 fi 3467 # 10*(2^10) chars as input seems more than enough 3468 test $ac_count -gt 10 && break 3469 done 3470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3471esac 3472 3473 $ac_path_GREP_found && break 3 3474 done 3475 done 3476 done 3477IFS=$as_save_IFS 3478 if test -z "$ac_cv_path_GREP"; then 3479 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3480 fi 3481else 3482 ac_cv_path_GREP=$GREP 3483fi 3484 3485fi 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3487$as_echo "$ac_cv_path_GREP" >&6; } 3488 GREP="$ac_cv_path_GREP" 3489 3490 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3492$as_echo_n "checking for egrep... " >&6; } 3493if ${ac_cv_path_EGREP+:} false; then : 3494 $as_echo_n "(cached) " >&6 3495else 3496 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3497 then ac_cv_path_EGREP="$GREP -E" 3498 else 3499 if test -z "$EGREP"; then 3500 ac_path_EGREP_found=false 3501 # Loop through the user's path and test for each of PROGNAME-LIST 3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3504do 3505 IFS=$as_save_IFS 3506 test -z "$as_dir" && as_dir=. 3507 for ac_prog in egrep; do 3508 for ac_exec_ext in '' $ac_executable_extensions; do 3509 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3510 as_fn_executable_p "$ac_path_EGREP" || continue 3511# Check for GNU ac_path_EGREP and select it if it is found. 3512 # Check for GNU $ac_path_EGREP 3513case `"$ac_path_EGREP" --version 2>&1` in 3514*GNU*) 3515 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3516*) 3517 ac_count=0 3518 $as_echo_n 0123456789 >"conftest.in" 3519 while : 3520 do 3521 cat "conftest.in" "conftest.in" >"conftest.tmp" 3522 mv "conftest.tmp" "conftest.in" 3523 cp "conftest.in" "conftest.nl" 3524 $as_echo 'EGREP' >> "conftest.nl" 3525 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3527 as_fn_arith $ac_count + 1 && ac_count=$as_val 3528 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3529 # Best one so far, save it but keep looking for a better one 3530 ac_cv_path_EGREP="$ac_path_EGREP" 3531 ac_path_EGREP_max=$ac_count 3532 fi 3533 # 10*(2^10) chars as input seems more than enough 3534 test $ac_count -gt 10 && break 3535 done 3536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3537esac 3538 3539 $ac_path_EGREP_found && break 3 3540 done 3541 done 3542 done 3543IFS=$as_save_IFS 3544 if test -z "$ac_cv_path_EGREP"; then 3545 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3546 fi 3547else 3548 ac_cv_path_EGREP=$EGREP 3549fi 3550 3551 fi 3552fi 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3554$as_echo "$ac_cv_path_EGREP" >&6; } 3555 EGREP="$ac_cv_path_EGREP" 3556 3557 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3559$as_echo_n "checking for fgrep... " >&6; } 3560if ${ac_cv_path_FGREP+:} false; then : 3561 $as_echo_n "(cached) " >&6 3562else 3563 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3564 then ac_cv_path_FGREP="$GREP -F" 3565 else 3566 if test -z "$FGREP"; then 3567 ac_path_FGREP_found=false 3568 # Loop through the user's path and test for each of PROGNAME-LIST 3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3571do 3572 IFS=$as_save_IFS 3573 test -z "$as_dir" && as_dir=. 3574 for ac_prog in fgrep; do 3575 for ac_exec_ext in '' $ac_executable_extensions; do 3576 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3577 as_fn_executable_p "$ac_path_FGREP" || continue 3578# Check for GNU ac_path_FGREP and select it if it is found. 3579 # Check for GNU $ac_path_FGREP 3580case `"$ac_path_FGREP" --version 2>&1` in 3581*GNU*) 3582 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3583*) 3584 ac_count=0 3585 $as_echo_n 0123456789 >"conftest.in" 3586 while : 3587 do 3588 cat "conftest.in" "conftest.in" >"conftest.tmp" 3589 mv "conftest.tmp" "conftest.in" 3590 cp "conftest.in" "conftest.nl" 3591 $as_echo 'FGREP' >> "conftest.nl" 3592 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3594 as_fn_arith $ac_count + 1 && ac_count=$as_val 3595 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3596 # Best one so far, save it but keep looking for a better one 3597 ac_cv_path_FGREP="$ac_path_FGREP" 3598 ac_path_FGREP_max=$ac_count 3599 fi 3600 # 10*(2^10) chars as input seems more than enough 3601 test $ac_count -gt 10 && break 3602 done 3603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3604esac 3605 3606 $ac_path_FGREP_found && break 3 3607 done 3608 done 3609 done 3610IFS=$as_save_IFS 3611 if test -z "$ac_cv_path_FGREP"; then 3612 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3613 fi 3614else 3615 ac_cv_path_FGREP=$FGREP 3616fi 3617 3618 fi 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3621$as_echo "$ac_cv_path_FGREP" >&6; } 3622 FGREP="$ac_cv_path_FGREP" 3623 3624 3625test -z "$GREP" && GREP=grep 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645# Check whether --with-gnu-ld was given. 3646if test "${with_gnu_ld+set}" = set; then : 3647 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3648else 3649 with_gnu_ld=no 3650fi 3651 3652ac_prog=ld 3653if test "$GCC" = yes; then 3654 # Check if gcc -print-prog-name=ld gives a path. 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3656$as_echo_n "checking for ld used by $CC... " >&6; } 3657 case $host in 3658 *-*-mingw*) 3659 # gcc leaves a trailing carriage return which upsets mingw 3660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3661 *) 3662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3663 esac 3664 case $ac_prog in 3665 # Accept absolute paths. 3666 [\\/]* | ?:[\\/]*) 3667 re_direlt='/[^/][^/]*/\.\./' 3668 # Canonicalize the pathname of ld 3669 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3670 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3671 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3672 done 3673 test -z "$LD" && LD="$ac_prog" 3674 ;; 3675 "") 3676 # If it fails, then pretend we aren't using GCC. 3677 ac_prog=ld 3678 ;; 3679 *) 3680 # If it is relative, then search for the first ld in PATH. 3681 with_gnu_ld=unknown 3682 ;; 3683 esac 3684elif test "$with_gnu_ld" = yes; then 3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3686$as_echo_n "checking for GNU ld... " >&6; } 3687else 3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3689$as_echo_n "checking for non-GNU ld... " >&6; } 3690fi 3691if ${lt_cv_path_LD+:} false; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 if test -z "$LD"; then 3695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3696 for ac_dir in $PATH; do 3697 IFS="$lt_save_ifs" 3698 test -z "$ac_dir" && ac_dir=. 3699 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3700 lt_cv_path_LD="$ac_dir/$ac_prog" 3701 # Check to see if the program is GNU ld. I'd rather use --version, 3702 # but apparently some variants of GNU ld only accept -v. 3703 # Break only if it was the GNU/non-GNU ld that we prefer. 3704 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3705 *GNU* | *'with BFD'*) 3706 test "$with_gnu_ld" != no && break 3707 ;; 3708 *) 3709 test "$with_gnu_ld" != yes && break 3710 ;; 3711 esac 3712 fi 3713 done 3714 IFS="$lt_save_ifs" 3715else 3716 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3717fi 3718fi 3719 3720LD="$lt_cv_path_LD" 3721if test -n "$LD"; then 3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3723$as_echo "$LD" >&6; } 3724else 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3726$as_echo "no" >&6; } 3727fi 3728test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3730$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3731if ${lt_cv_prog_gnu_ld+:} false; then : 3732 $as_echo_n "(cached) " >&6 3733else 3734 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3735case `$LD -v 2>&1 </dev/null` in 3736*GNU* | *'with BFD'*) 3737 lt_cv_prog_gnu_ld=yes 3738 ;; 3739*) 3740 lt_cv_prog_gnu_ld=no 3741 ;; 3742esac 3743fi 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3745$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3746with_gnu_ld=$lt_cv_prog_gnu_ld 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3757$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3758if ${lt_cv_path_NM+:} false; then : 3759 $as_echo_n "(cached) " >&6 3760else 3761 if test -n "$NM"; then 3762 # Let the user override the test. 3763 lt_cv_path_NM="$NM" 3764else 3765 lt_nm_to_check="${ac_tool_prefix}nm" 3766 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3767 lt_nm_to_check="$lt_nm_to_check nm" 3768 fi 3769 for lt_tmp_nm in $lt_nm_to_check; do 3770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3771 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3772 IFS="$lt_save_ifs" 3773 test -z "$ac_dir" && ac_dir=. 3774 tmp_nm="$ac_dir/$lt_tmp_nm" 3775 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3776 # Check to see if the nm accepts a BSD-compat flag. 3777 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3778 # nm: unknown option "B" ignored 3779 # Tru64's nm complains that /dev/null is an invalid object file 3780 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3781 */dev/null* | *'Invalid file or object type'*) 3782 lt_cv_path_NM="$tmp_nm -B" 3783 break 3784 ;; 3785 *) 3786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3787 */dev/null*) 3788 lt_cv_path_NM="$tmp_nm -p" 3789 break 3790 ;; 3791 *) 3792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3793 continue # so that we can try to find one that supports BSD flags 3794 ;; 3795 esac 3796 ;; 3797 esac 3798 fi 3799 done 3800 IFS="$lt_save_ifs" 3801 done 3802 : ${lt_cv_path_NM=no} 3803fi 3804fi 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3806$as_echo "$lt_cv_path_NM" >&6; } 3807if test "$lt_cv_path_NM" != "no"; then 3808 NM="$lt_cv_path_NM" 3809else 3810 # Didn't find any BSD compatible name lister, look for dumpbin. 3811 if test -n "$ac_tool_prefix"; then 3812 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3813 do 3814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3815set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3817$as_echo_n "checking for $ac_word... " >&6; } 3818if ${ac_cv_prog_DUMPBIN+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 if test -n "$DUMPBIN"; then 3822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841DUMPBIN=$ac_cv_prog_DUMPBIN 3842if test -n "$DUMPBIN"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3844$as_echo "$DUMPBIN" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849 3850 3851 test -n "$DUMPBIN" && break 3852 done 3853fi 3854if test -z "$DUMPBIN"; then 3855 ac_ct_DUMPBIN=$DUMPBIN 3856 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3857do 3858 # Extract the first word of "$ac_prog", so it can be a program name with args. 3859set dummy $ac_prog; ac_word=$2 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861$as_echo_n "checking for $ac_word... " >&6; } 3862if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -n "$ac_ct_DUMPBIN"; then 3866 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 3886if test -n "$ac_ct_DUMPBIN"; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 3888$as_echo "$ac_ct_DUMPBIN" >&6; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3891$as_echo "no" >&6; } 3892fi 3893 3894 3895 test -n "$ac_ct_DUMPBIN" && break 3896done 3897 3898 if test "x$ac_ct_DUMPBIN" = x; then 3899 DUMPBIN=":" 3900 else 3901 case $cross_compiling:$ac_tool_warned in 3902yes:) 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3905ac_tool_warned=yes ;; 3906esac 3907 DUMPBIN=$ac_ct_DUMPBIN 3908 fi 3909fi 3910 3911 3912 if test "$DUMPBIN" != ":"; then 3913 NM="$DUMPBIN" 3914 fi 3915fi 3916test -z "$NM" && NM=nm 3917 3918 3919 3920 3921 3922 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 3924$as_echo_n "checking the name lister ($NM) interface... " >&6; } 3925if ${lt_cv_nm_interface+:} false; then : 3926 $as_echo_n "(cached) " >&6 3927else 3928 lt_cv_nm_interface="BSD nm" 3929 echo "int some_variable = 0;" > conftest.$ac_ext 3930 (eval echo "\"\$as_me:3930: $ac_compile\"" >&5) 3931 (eval "$ac_compile" 2>conftest.err) 3932 cat conftest.err >&5 3933 (eval echo "\"\$as_me:3933: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 3934 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3935 cat conftest.err >&5 3936 (eval echo "\"\$as_me:3936: output\"" >&5) 3937 cat conftest.out >&5 3938 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3939 lt_cv_nm_interface="MS dumpbin" 3940 fi 3941 rm -f conftest* 3942fi 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 3944$as_echo "$lt_cv_nm_interface" >&6; } 3945 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3947$as_echo_n "checking whether ln -s works... " >&6; } 3948LN_S=$as_ln_s 3949if test "$LN_S" = "ln -s"; then 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3951$as_echo "yes" >&6; } 3952else 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3954$as_echo "no, using $LN_S" >&6; } 3955fi 3956 3957# find the maximum length of command line arguments 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 3959$as_echo_n "checking the maximum length of command line arguments... " >&6; } 3960if ${lt_cv_sys_max_cmd_len+:} false; then : 3961 $as_echo_n "(cached) " >&6 3962else 3963 i=0 3964 teststring="ABCD" 3965 3966 case $build_os in 3967 msdosdjgpp*) 3968 # On DJGPP, this test can blow up pretty badly due to problems in libc 3969 # (any single argument exceeding 2000 bytes causes a buffer overrun 3970 # during glob expansion). Even if it were fixed, the result of this 3971 # check would be larger than it should be. 3972 lt_cv_sys_max_cmd_len=12288; # 12K is about right 3973 ;; 3974 3975 gnu*) 3976 # Under GNU Hurd, this test is not required because there is 3977 # no limit to the length of command line arguments. 3978 # Libtool will interpret -1 as no limit whatsoever 3979 lt_cv_sys_max_cmd_len=-1; 3980 ;; 3981 3982 cygwin* | mingw* | cegcc*) 3983 # On Win9x/ME, this test blows up -- it succeeds, but takes 3984 # about 5 minutes as the teststring grows exponentially. 3985 # Worse, since 9x/ME are not pre-emptively multitasking, 3986 # you end up with a "frozen" computer, even though with patience 3987 # the test eventually succeeds (with a max line length of 256k). 3988 # Instead, let's just punt: use the minimum linelength reported by 3989 # all of the supported platforms: 8192 (on NT/2K/XP). 3990 lt_cv_sys_max_cmd_len=8192; 3991 ;; 3992 3993 beos*) 3994 # On BeOS, this test takes a really really long time. 3995 # So we just punt and use a minimum line length of 8192. 3996 lt_cv_sys_max_cmd_len=8192; 3997 ;; 3998 3999 amigaos*) 4000 # On AmigaOS with pdksh, this test takes hours, literally. 4001 # So we just punt and use a minimum line length of 8192. 4002 lt_cv_sys_max_cmd_len=8192; 4003 ;; 4004 4005 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4006 # This has been around since 386BSD, at least. Likely further. 4007 if test -x /sbin/sysctl; then 4008 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4009 elif test -x /usr/sbin/sysctl; then 4010 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4011 else 4012 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4013 fi 4014 # And add a safety zone 4015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4017 ;; 4018 4019 interix*) 4020 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4021 lt_cv_sys_max_cmd_len=196608 4022 ;; 4023 4024 osf*) 4025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4027 # nice to cause kernel panics so lets avoid the loop below. 4028 # First set a reasonable default. 4029 lt_cv_sys_max_cmd_len=16384 4030 # 4031 if test -x /sbin/sysconfig; then 4032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4033 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4034 esac 4035 fi 4036 ;; 4037 sco3.2v5*) 4038 lt_cv_sys_max_cmd_len=102400 4039 ;; 4040 sysv5* | sco5v6* | sysv4.2uw2*) 4041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4042 if test -n "$kargmax"; then 4043 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4044 else 4045 lt_cv_sys_max_cmd_len=32768 4046 fi 4047 ;; 4048 *) 4049 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4050 if test -n "$lt_cv_sys_max_cmd_len"; then 4051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4053 else 4054 # Make teststring a little bigger before we do anything with it. 4055 # a 1K string should be a reasonable start. 4056 for i in 1 2 3 4 5 6 7 8 ; do 4057 teststring=$teststring$teststring 4058 done 4059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4060 # If test is not a shell built-in, we'll probably end up computing a 4061 # maximum length that is only half of the actual maximum length, but 4062 # we can't tell. 4063 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4064 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4065 test $i != 17 # 1/2 MB should be enough 4066 do 4067 i=`expr $i + 1` 4068 teststring=$teststring$teststring 4069 done 4070 # Only check the string length outside the loop. 4071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4072 teststring= 4073 # Add a significant safety factor because C++ compilers can tack on 4074 # massive amounts of additional arguments before passing them to the 4075 # linker. It appears as though 1/2 is a usable value. 4076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4077 fi 4078 ;; 4079 esac 4080 4081fi 4082 4083if test -n $lt_cv_sys_max_cmd_len ; then 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4085$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4086else 4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4088$as_echo "none" >&6; } 4089fi 4090max_cmd_len=$lt_cv_sys_max_cmd_len 4091 4092 4093 4094 4095 4096 4097: ${CP="cp -f"} 4098: ${MV="mv -f"} 4099: ${RM="rm -f"} 4100 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4102$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4103# Try some XSI features 4104xsi_shell=no 4105( _lt_dummy="a/b/c" 4106 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4107 = c,a/b,, \ 4108 && eval 'test $(( 1 + 1 )) -eq 2 \ 4109 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4110 && xsi_shell=yes 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4112$as_echo "$xsi_shell" >&6; } 4113 4114 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4116$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4117lt_shell_append=no 4118( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4119 >/dev/null 2>&1 \ 4120 && lt_shell_append=yes 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4122$as_echo "$lt_shell_append" >&6; } 4123 4124 4125if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4126 lt_unset=unset 4127else 4128 lt_unset=false 4129fi 4130 4131 4132 4133 4134 4135# test EBCDIC or ASCII 4136case `echo X|tr X '\101'` in 4137 A) # ASCII based system 4138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4139 lt_SP2NL='tr \040 \012' 4140 lt_NL2SP='tr \015\012 \040\040' 4141 ;; 4142 *) # EBCDIC based system 4143 lt_SP2NL='tr \100 \n' 4144 lt_NL2SP='tr \r\n \100\100' 4145 ;; 4146esac 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4157$as_echo_n "checking for $LD option to reload object files... " >&6; } 4158if ${lt_cv_ld_reload_flag+:} false; then : 4159 $as_echo_n "(cached) " >&6 4160else 4161 lt_cv_ld_reload_flag='-r' 4162fi 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4164$as_echo "$lt_cv_ld_reload_flag" >&6; } 4165reload_flag=$lt_cv_ld_reload_flag 4166case $reload_flag in 4167"" | " "*) ;; 4168*) reload_flag=" $reload_flag" ;; 4169esac 4170reload_cmds='$LD$reload_flag -o $output$reload_objs' 4171case $host_os in 4172 darwin*) 4173 if test "$GCC" = yes; then 4174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4175 else 4176 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4177 fi 4178 ;; 4179esac 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189if test -n "$ac_tool_prefix"; then 4190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4191set dummy ${ac_tool_prefix}objdump; ac_word=$2 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4193$as_echo_n "checking for $ac_word... " >&6; } 4194if ${ac_cv_prog_OBJDUMP+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 if test -n "$OBJDUMP"; then 4198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4199else 4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4201for as_dir in $PATH 4202do 4203 IFS=$as_save_IFS 4204 test -z "$as_dir" && as_dir=. 4205 for ac_exec_ext in '' $ac_executable_extensions; do 4206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4207 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4209 break 2 4210 fi 4211done 4212 done 4213IFS=$as_save_IFS 4214 4215fi 4216fi 4217OBJDUMP=$ac_cv_prog_OBJDUMP 4218if test -n "$OBJDUMP"; then 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4220$as_echo "$OBJDUMP" >&6; } 4221else 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4223$as_echo "no" >&6; } 4224fi 4225 4226 4227fi 4228if test -z "$ac_cv_prog_OBJDUMP"; then 4229 ac_ct_OBJDUMP=$OBJDUMP 4230 # Extract the first word of "objdump", so it can be a program name with args. 4231set dummy objdump; ac_word=$2 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4233$as_echo_n "checking for $ac_word... " >&6; } 4234if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4235 $as_echo_n "(cached) " >&6 4236else 4237 if test -n "$ac_ct_OBJDUMP"; then 4238 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4239else 4240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4241for as_dir in $PATH 4242do 4243 IFS=$as_save_IFS 4244 test -z "$as_dir" && as_dir=. 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4247 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4249 break 2 4250 fi 4251done 4252 done 4253IFS=$as_save_IFS 4254 4255fi 4256fi 4257ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4258if test -n "$ac_ct_OBJDUMP"; then 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4260$as_echo "$ac_ct_OBJDUMP" >&6; } 4261else 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4263$as_echo "no" >&6; } 4264fi 4265 4266 if test "x$ac_ct_OBJDUMP" = x; then 4267 OBJDUMP="false" 4268 else 4269 case $cross_compiling:$ac_tool_warned in 4270yes:) 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4273ac_tool_warned=yes ;; 4274esac 4275 OBJDUMP=$ac_ct_OBJDUMP 4276 fi 4277else 4278 OBJDUMP="$ac_cv_prog_OBJDUMP" 4279fi 4280 4281test -z "$OBJDUMP" && OBJDUMP=objdump 4282 4283 4284 4285 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4289$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4290if ${lt_cv_deplibs_check_method+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 lt_cv_file_magic_cmd='$MAGIC_CMD' 4294lt_cv_file_magic_test_file= 4295lt_cv_deplibs_check_method='unknown' 4296# Need to set the preceding variable on all platforms that support 4297# interlibrary dependencies. 4298# 'none' -- dependencies not supported. 4299# `unknown' -- same as none, but documents that we really don't know. 4300# 'pass_all' -- all dependencies passed with no checks. 4301# 'test_compile' -- check by making test program. 4302# 'file_magic [[regex]]' -- check by looking for files in library path 4303# which responds to the $file_magic_cmd with a given extended regex. 4304# If you have `file' or equivalent on your system and you're not sure 4305# whether `pass_all' will *always* work, you probably want this one. 4306 4307case $host_os in 4308aix[4-9]*) 4309 lt_cv_deplibs_check_method=pass_all 4310 ;; 4311 4312beos*) 4313 lt_cv_deplibs_check_method=pass_all 4314 ;; 4315 4316bsdi[45]*) 4317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4318 lt_cv_file_magic_cmd='/usr/bin/file -L' 4319 lt_cv_file_magic_test_file=/shlib/libc.so 4320 ;; 4321 4322cygwin*) 4323 # func_win32_libid is a shell function defined in ltmain.sh 4324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4325 lt_cv_deplibs_check_method=pass_all 4326 lt_cv_file_magic_cmd='func_win32_libid' 4327 ;; 4328 4329mingw* | pw32*) 4330 # Base MSYS/MinGW do not provide the 'file' command needed by 4331 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4332 # unless we find 'file', for example because we are cross-compiling. 4333 if ( file / ) >/dev/null 2>&1; then 4334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4335 lt_cv_file_magic_cmd='func_win32_libid' 4336 else 4337 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4338 lt_cv_file_magic_cmd='$OBJDUMP -f' 4339 fi 4340 lt_cv_deplibs_check_method=pass_all 4341 ;; 4342 4343cegcc) 4344 # use the weaker test based on 'objdump'. See mingw*. 4345 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4346 lt_cv_file_magic_cmd='$OBJDUMP -f' 4347 ;; 4348 4349darwin* | rhapsody*) 4350 lt_cv_deplibs_check_method=pass_all 4351 ;; 4352 4353freebsd* | dragonfly*) 4354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4355 case $host_cpu in 4356 i*86 ) 4357 # Not sure whether the presence of OpenBSD here was a mistake. 4358 # Let's accept both of them until this is cleared up. 4359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4360 lt_cv_file_magic_cmd=/usr/bin/file 4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4362 ;; 4363 esac 4364 else 4365 lt_cv_deplibs_check_method=pass_all 4366 fi 4367 ;; 4368 4369gnu*) 4370 lt_cv_deplibs_check_method=pass_all 4371 ;; 4372 4373hpux10.20* | hpux11*) 4374 lt_cv_file_magic_cmd=/usr/bin/file 4375 case $host_cpu in 4376 ia64*) 4377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4379 ;; 4380 hppa*64*) 4381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 4382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4383 ;; 4384 *) 4385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4386 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4387 ;; 4388 esac 4389 ;; 4390 4391interix[3-9]*) 4392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4394 ;; 4395 4396irix5* | irix6* | nonstopux*) 4397 case $LD in 4398 *-32|*"-32 ") libmagic=32-bit;; 4399 *-n32|*"-n32 ") libmagic=N32;; 4400 *-64|*"-64 ") libmagic=64-bit;; 4401 *) libmagic=never-match;; 4402 esac 4403 lt_cv_deplibs_check_method=pass_all 4404 ;; 4405 4406# This must be Linux ELF. 4407linux* | k*bsd*-gnu) 4408 lt_cv_deplibs_check_method=pass_all 4409 ;; 4410 4411netbsd*) 4412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4414 else 4415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4416 fi 4417 ;; 4418 4419newos6*) 4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4421 lt_cv_file_magic_cmd=/usr/bin/file 4422 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4423 ;; 4424 4425*nto* | *qnx*) 4426 lt_cv_deplibs_check_method=pass_all 4427 ;; 4428 4429openbsd*) 4430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4432 else 4433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4434 fi 4435 ;; 4436 4437osf3* | osf4* | osf5*) 4438 lt_cv_deplibs_check_method=pass_all 4439 ;; 4440 4441rdos*) 4442 lt_cv_deplibs_check_method=pass_all 4443 ;; 4444 4445solaris*) 4446 lt_cv_deplibs_check_method=pass_all 4447 ;; 4448 4449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4450 lt_cv_deplibs_check_method=pass_all 4451 ;; 4452 4453sysv4 | sysv4.3*) 4454 case $host_vendor in 4455 motorola) 4456 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]' 4457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4458 ;; 4459 ncr) 4460 lt_cv_deplibs_check_method=pass_all 4461 ;; 4462 sequent) 4463 lt_cv_file_magic_cmd='/bin/file' 4464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4465 ;; 4466 sni) 4467 lt_cv_file_magic_cmd='/bin/file' 4468 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4469 lt_cv_file_magic_test_file=/lib/libc.so 4470 ;; 4471 siemens) 4472 lt_cv_deplibs_check_method=pass_all 4473 ;; 4474 pc) 4475 lt_cv_deplibs_check_method=pass_all 4476 ;; 4477 esac 4478 ;; 4479 4480tpf*) 4481 lt_cv_deplibs_check_method=pass_all 4482 ;; 4483esac 4484 4485fi 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4487$as_echo "$lt_cv_deplibs_check_method" >&6; } 4488file_magic_cmd=$lt_cv_file_magic_cmd 4489deplibs_check_method=$lt_cv_deplibs_check_method 4490test -z "$deplibs_check_method" && deplibs_check_method=unknown 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503if test -n "$ac_tool_prefix"; then 4504 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4505set dummy ${ac_tool_prefix}ar; ac_word=$2 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4507$as_echo_n "checking for $ac_word... " >&6; } 4508if ${ac_cv_prog_AR+:} false; then : 4509 $as_echo_n "(cached) " >&6 4510else 4511 if test -n "$AR"; then 4512 ac_cv_prog_AR="$AR" # Let the user override the test. 4513else 4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4515for as_dir in $PATH 4516do 4517 IFS=$as_save_IFS 4518 test -z "$as_dir" && as_dir=. 4519 for ac_exec_ext in '' $ac_executable_extensions; do 4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4521 ac_cv_prog_AR="${ac_tool_prefix}ar" 4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4523 break 2 4524 fi 4525done 4526 done 4527IFS=$as_save_IFS 4528 4529fi 4530fi 4531AR=$ac_cv_prog_AR 4532if test -n "$AR"; then 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4534$as_echo "$AR" >&6; } 4535else 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4537$as_echo "no" >&6; } 4538fi 4539 4540 4541fi 4542if test -z "$ac_cv_prog_AR"; then 4543 ac_ct_AR=$AR 4544 # Extract the first word of "ar", so it can be a program name with args. 4545set dummy ar; ac_word=$2 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4547$as_echo_n "checking for $ac_word... " >&6; } 4548if ${ac_cv_prog_ac_ct_AR+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 if test -n "$ac_ct_AR"; then 4552 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4553else 4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH 4556do 4557 IFS=$as_save_IFS 4558 test -z "$as_dir" && as_dir=. 4559 for ac_exec_ext in '' $ac_executable_extensions; do 4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4561 ac_cv_prog_ac_ct_AR="ar" 4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4563 break 2 4564 fi 4565done 4566 done 4567IFS=$as_save_IFS 4568 4569fi 4570fi 4571ac_ct_AR=$ac_cv_prog_ac_ct_AR 4572if test -n "$ac_ct_AR"; then 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4574$as_echo "$ac_ct_AR" >&6; } 4575else 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4577$as_echo "no" >&6; } 4578fi 4579 4580 if test "x$ac_ct_AR" = x; then 4581 AR="false" 4582 else 4583 case $cross_compiling:$ac_tool_warned in 4584yes:) 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4587ac_tool_warned=yes ;; 4588esac 4589 AR=$ac_ct_AR 4590 fi 4591else 4592 AR="$ac_cv_prog_AR" 4593fi 4594 4595test -z "$AR" && AR=ar 4596test -z "$AR_FLAGS" && AR_FLAGS=cru 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608if test -n "$ac_tool_prefix"; then 4609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4610set dummy ${ac_tool_prefix}strip; ac_word=$2 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4612$as_echo_n "checking for $ac_word... " >&6; } 4613if ${ac_cv_prog_STRIP+:} false; then : 4614 $as_echo_n "(cached) " >&6 4615else 4616 if test -n "$STRIP"; then 4617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4618else 4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620for as_dir in $PATH 4621do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4626 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4628 break 2 4629 fi 4630done 4631 done 4632IFS=$as_save_IFS 4633 4634fi 4635fi 4636STRIP=$ac_cv_prog_STRIP 4637if test -n "$STRIP"; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4639$as_echo "$STRIP" >&6; } 4640else 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4642$as_echo "no" >&6; } 4643fi 4644 4645 4646fi 4647if test -z "$ac_cv_prog_STRIP"; then 4648 ac_ct_STRIP=$STRIP 4649 # Extract the first word of "strip", so it can be a program name with args. 4650set dummy strip; ac_word=$2 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652$as_echo_n "checking for $ac_word... " >&6; } 4653if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 if test -n "$ac_ct_STRIP"; then 4657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4658else 4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4666 ac_cv_prog_ac_ct_STRIP="strip" 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670done 4671 done 4672IFS=$as_save_IFS 4673 4674fi 4675fi 4676ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4677if test -n "$ac_ct_STRIP"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4679$as_echo "$ac_ct_STRIP" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684 4685 if test "x$ac_ct_STRIP" = x; then 4686 STRIP=":" 4687 else 4688 case $cross_compiling:$ac_tool_warned in 4689yes:) 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4692ac_tool_warned=yes ;; 4693esac 4694 STRIP=$ac_ct_STRIP 4695 fi 4696else 4697 STRIP="$ac_cv_prog_STRIP" 4698fi 4699 4700test -z "$STRIP" && STRIP=: 4701 4702 4703 4704 4705 4706 4707if test -n "$ac_tool_prefix"; then 4708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4709set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4711$as_echo_n "checking for $ac_word... " >&6; } 4712if ${ac_cv_prog_RANLIB+:} false; then : 4713 $as_echo_n "(cached) " >&6 4714else 4715 if test -n "$RANLIB"; then 4716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4717else 4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 test -z "$as_dir" && as_dir=. 4723 for ac_exec_ext in '' $ac_executable_extensions; do 4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4727 break 2 4728 fi 4729done 4730 done 4731IFS=$as_save_IFS 4732 4733fi 4734fi 4735RANLIB=$ac_cv_prog_RANLIB 4736if test -n "$RANLIB"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4738$as_echo "$RANLIB" >&6; } 4739else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741$as_echo "no" >&6; } 4742fi 4743 4744 4745fi 4746if test -z "$ac_cv_prog_RANLIB"; then 4747 ac_ct_RANLIB=$RANLIB 4748 # Extract the first word of "ranlib", so it can be a program name with args. 4749set dummy ranlib; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 if test -n "$ac_ct_RANLIB"; then 4756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4757else 4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4759for as_dir in $PATH 4760do 4761 IFS=$as_save_IFS 4762 test -z "$as_dir" && as_dir=. 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4765 ac_cv_prog_ac_ct_RANLIB="ranlib" 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4776if test -n "$ac_ct_RANLIB"; then 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4778$as_echo "$ac_ct_RANLIB" >&6; } 4779else 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781$as_echo "no" >&6; } 4782fi 4783 4784 if test "x$ac_ct_RANLIB" = x; then 4785 RANLIB=":" 4786 else 4787 case $cross_compiling:$ac_tool_warned in 4788yes:) 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4791ac_tool_warned=yes ;; 4792esac 4793 RANLIB=$ac_ct_RANLIB 4794 fi 4795else 4796 RANLIB="$ac_cv_prog_RANLIB" 4797fi 4798 4799test -z "$RANLIB" && RANLIB=: 4800 4801 4802 4803 4804 4805 4806# Determine commands to create old-style static archives. 4807old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4808old_postinstall_cmds='chmod 644 $oldlib' 4809old_postuninstall_cmds= 4810 4811if test -n "$RANLIB"; then 4812 case $host_os in 4813 openbsd*) 4814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4815 ;; 4816 *) 4817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4818 ;; 4819 esac 4820 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4821fi 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856# If no C compiler was specified, use CC. 4857LTCC=${LTCC-"$CC"} 4858 4859# If no C compiler flags were specified, use CFLAGS. 4860LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4861 4862# Allow CC to be a program name with arguments. 4863compiler=$CC 4864 4865 4866# Check for command to grab the raw symbol name followed by C symbol from nm. 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 4868$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4869if ${lt_cv_sys_global_symbol_pipe+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 4873# These are sane defaults that work on at least a few old systems. 4874# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4875 4876# Character class describing NM global symbol codes. 4877symcode='[BCDEGRST]' 4878 4879# Regexp to match symbols that can be accessed directly from C. 4880sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4881 4882# Define system-specific variables. 4883case $host_os in 4884aix*) 4885 symcode='[BCDT]' 4886 ;; 4887cygwin* | mingw* | pw32* | cegcc*) 4888 symcode='[ABCDGISTW]' 4889 ;; 4890hpux*) 4891 if test "$host_cpu" = ia64; then 4892 symcode='[ABCDEGRST]' 4893 fi 4894 ;; 4895irix* | nonstopux*) 4896 symcode='[BCDEGRST]' 4897 ;; 4898osf*) 4899 symcode='[BCDEGQRST]' 4900 ;; 4901solaris*) 4902 symcode='[BDRT]' 4903 ;; 4904sco3.2v5*) 4905 symcode='[DT]' 4906 ;; 4907sysv4.2uw2*) 4908 symcode='[DT]' 4909 ;; 4910sysv5* | sco5v6* | unixware* | OpenUNIX*) 4911 symcode='[ABDT]' 4912 ;; 4913sysv4) 4914 symcode='[DFNSTU]' 4915 ;; 4916esac 4917 4918# If we're using GNU nm, then use its standard symbol codes. 4919case `$NM -V 2>&1` in 4920*GNU* | *'with BFD'*) 4921 symcode='[ABCDGIRSTW]' ;; 4922esac 4923 4924# Transform an extracted symbol line into a proper C declaration. 4925# Some systems (esp. on ia64) link data and code symbols differently, 4926# so use this general approach. 4927lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4928 4929# Transform an extracted symbol line into symbol name and symbol address 4930lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 4931lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 4932 4933# Handle CRLF in mingw tool chain 4934opt_cr= 4935case $build_os in 4936mingw*) 4937 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4938 ;; 4939esac 4940 4941# Try without a prefix underscore, then with it. 4942for ac_symprfx in "" "_"; do 4943 4944 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4945 symxfrm="\\1 $ac_symprfx\\2 \\2" 4946 4947 # Write the raw and C identifiers. 4948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4949 # Fake it for dumpbin and say T for any non-static function 4950 # and D for any global variable. 4951 # Also find C++ and __fastcall symbols from MSVC++, 4952 # which start with @ or ?. 4953 lt_cv_sys_global_symbol_pipe="$AWK '"\ 4954" {last_section=section; section=\$ 3};"\ 4955" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4956" \$ 0!~/External *\|/{next};"\ 4957" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4958" {if(hide[section]) next};"\ 4959" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 4960" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 4961" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 4962" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 4963" ' prfx=^$ac_symprfx" 4964 else 4965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4966 fi 4967 4968 # Check to see that the pipe works correctly. 4969 pipe_works=no 4970 4971 rm -f conftest* 4972 cat > conftest.$ac_ext <<_LT_EOF 4973#ifdef __cplusplus 4974extern "C" { 4975#endif 4976char nm_test_var; 4977void nm_test_func(void); 4978void nm_test_func(void){} 4979#ifdef __cplusplus 4980} 4981#endif 4982int main(){nm_test_var='a';nm_test_func();return(0);} 4983_LT_EOF 4984 4985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4986 (eval $ac_compile) 2>&5 4987 ac_status=$? 4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4989 test $ac_status = 0; }; then 4990 # Now try to grab the symbols. 4991 nlist=conftest.nm 4992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 4993 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4994 ac_status=$? 4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4996 test $ac_status = 0; } && test -s "$nlist"; then 4997 # Try sorting and uniquifying the output. 4998 if sort "$nlist" | uniq > "$nlist"T; then 4999 mv -f "$nlist"T "$nlist" 5000 else 5001 rm -f "$nlist"T 5002 fi 5003 5004 # Make sure that we snagged all the symbols we need. 5005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5007 cat <<_LT_EOF > conftest.$ac_ext 5008#ifdef __cplusplus 5009extern "C" { 5010#endif 5011 5012_LT_EOF 5013 # Now generate the symbol file. 5014 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5015 5016 cat <<_LT_EOF >> conftest.$ac_ext 5017 5018/* The mapping between symbol names and symbols. */ 5019const struct { 5020 const char *name; 5021 void *address; 5022} 5023lt__PROGRAM__LTX_preloaded_symbols[] = 5024{ 5025 { "@PROGRAM@", (void *) 0 }, 5026_LT_EOF 5027 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5028 cat <<\_LT_EOF >> conftest.$ac_ext 5029 {0, (void *) 0} 5030}; 5031 5032/* This works around a problem in FreeBSD linker */ 5033#ifdef FREEBSD_WORKAROUND 5034static const void *lt_preloaded_setup() { 5035 return lt__PROGRAM__LTX_preloaded_symbols; 5036} 5037#endif 5038 5039#ifdef __cplusplus 5040} 5041#endif 5042_LT_EOF 5043 # Now try linking the two files. 5044 mv conftest.$ac_objext conftstm.$ac_objext 5045 lt_save_LIBS="$LIBS" 5046 lt_save_CFLAGS="$CFLAGS" 5047 LIBS="conftstm.$ac_objext" 5048 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5050 (eval $ac_link) 2>&5 5051 ac_status=$? 5052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5053 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5054 pipe_works=yes 5055 fi 5056 LIBS="$lt_save_LIBS" 5057 CFLAGS="$lt_save_CFLAGS" 5058 else 5059 echo "cannot find nm_test_func in $nlist" >&5 5060 fi 5061 else 5062 echo "cannot find nm_test_var in $nlist" >&5 5063 fi 5064 else 5065 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5066 fi 5067 else 5068 echo "$progname: failed program was:" >&5 5069 cat conftest.$ac_ext >&5 5070 fi 5071 rm -rf conftest* conftst* 5072 5073 # Do not use the global_symbol_pipe unless it works. 5074 if test "$pipe_works" = yes; then 5075 break 5076 else 5077 lt_cv_sys_global_symbol_pipe= 5078 fi 5079done 5080 5081fi 5082 5083if test -z "$lt_cv_sys_global_symbol_pipe"; then 5084 lt_cv_sys_global_symbol_to_cdecl= 5085fi 5086if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5088$as_echo "failed" >&6; } 5089else 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5091$as_echo "ok" >&6; } 5092fi 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116# Check whether --enable-libtool-lock was given. 5117if test "${enable_libtool_lock+set}" = set; then : 5118 enableval=$enable_libtool_lock; 5119fi 5120 5121test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5122 5123# Some flags need to be propagated to the compiler or linker for good 5124# libtool support. 5125case $host in 5126ia64-*-hpux*) 5127 # Find out which ABI we are using. 5128 echo 'int i;' > conftest.$ac_ext 5129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5130 (eval $ac_compile) 2>&5 5131 ac_status=$? 5132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5133 test $ac_status = 0; }; then 5134 case `/usr/bin/file conftest.$ac_objext` in 5135 *ELF-32*) 5136 HPUX_IA64_MODE="32" 5137 ;; 5138 *ELF-64*) 5139 HPUX_IA64_MODE="64" 5140 ;; 5141 esac 5142 fi 5143 rm -rf conftest* 5144 ;; 5145*-*-irix6*) 5146 # Find out which ABI we are using. 5147 echo '#line 5147 "configure"' > conftest.$ac_ext 5148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5149 (eval $ac_compile) 2>&5 5150 ac_status=$? 5151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5152 test $ac_status = 0; }; then 5153 if test "$lt_cv_prog_gnu_ld" = yes; then 5154 case `/usr/bin/file conftest.$ac_objext` in 5155 *32-bit*) 5156 LD="${LD-ld} -melf32bsmip" 5157 ;; 5158 *N32*) 5159 LD="${LD-ld} -melf32bmipn32" 5160 ;; 5161 *64-bit*) 5162 LD="${LD-ld} -melf64bmip" 5163 ;; 5164 esac 5165 else 5166 case `/usr/bin/file conftest.$ac_objext` in 5167 *32-bit*) 5168 LD="${LD-ld} -32" 5169 ;; 5170 *N32*) 5171 LD="${LD-ld} -n32" 5172 ;; 5173 *64-bit*) 5174 LD="${LD-ld} -64" 5175 ;; 5176 esac 5177 fi 5178 fi 5179 rm -rf conftest* 5180 ;; 5181 5182x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5183s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5184 # Find out which ABI we are using. 5185 echo 'int i;' > conftest.$ac_ext 5186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5187 (eval $ac_compile) 2>&5 5188 ac_status=$? 5189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5190 test $ac_status = 0; }; then 5191 case `/usr/bin/file conftest.o` in 5192 *32-bit*) 5193 case $host in 5194 x86_64-*kfreebsd*-gnu) 5195 LD="${LD-ld} -m elf_i386_fbsd" 5196 ;; 5197 x86_64-*linux*) 5198 LD="${LD-ld} -m elf_i386" 5199 ;; 5200 ppc64-*linux*|powerpc64-*linux*) 5201 LD="${LD-ld} -m elf32ppclinux" 5202 ;; 5203 s390x-*linux*) 5204 LD="${LD-ld} -m elf_s390" 5205 ;; 5206 sparc64-*linux*) 5207 LD="${LD-ld} -m elf32_sparc" 5208 ;; 5209 esac 5210 ;; 5211 *64-bit*) 5212 case $host in 5213 x86_64-*kfreebsd*-gnu) 5214 LD="${LD-ld} -m elf_x86_64_fbsd" 5215 ;; 5216 x86_64-*linux*) 5217 LD="${LD-ld} -m elf_x86_64" 5218 ;; 5219 powerpc64le-*linux*) 5220 LD="${LD-ld} -m elf64lppc" 5221 ;; 5222 powerpc64-*linux*) 5223 LD="${LD-ld} -m elf64ppc" 5224 ;; 5225 s390*-*linux*|s390*-*tpf*) 5226 LD="${LD-ld} -m elf64_s390" 5227 ;; 5228 sparc*-*linux*) 5229 LD="${LD-ld} -m elf64_sparc" 5230 ;; 5231 esac 5232 ;; 5233 esac 5234 fi 5235 rm -rf conftest* 5236 ;; 5237 5238*-*-sco3.2v5*) 5239 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5240 SAVE_CFLAGS="$CFLAGS" 5241 CFLAGS="$CFLAGS -belf" 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5243$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5244if ${lt_cv_cc_needs_belf+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 ac_ext=c 5248ac_cpp='$CPP $CPPFLAGS' 5249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5251ac_compiler_gnu=$ac_cv_c_compiler_gnu 5252 5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254/* end confdefs.h. */ 5255 5256int 5257main () 5258{ 5259 5260 ; 5261 return 0; 5262} 5263_ACEOF 5264if ac_fn_c_try_link "$LINENO"; then : 5265 lt_cv_cc_needs_belf=yes 5266else 5267 lt_cv_cc_needs_belf=no 5268fi 5269rm -f core conftest.err conftest.$ac_objext \ 5270 conftest$ac_exeext conftest.$ac_ext 5271 ac_ext=c 5272ac_cpp='$CPP $CPPFLAGS' 5273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5275ac_compiler_gnu=$ac_cv_c_compiler_gnu 5276 5277fi 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5279$as_echo "$lt_cv_cc_needs_belf" >&6; } 5280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5282 CFLAGS="$SAVE_CFLAGS" 5283 fi 5284 ;; 5285sparc*-*solaris*) 5286 # Find out which ABI we are using. 5287 echo 'int i;' > conftest.$ac_ext 5288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5289 (eval $ac_compile) 2>&5 5290 ac_status=$? 5291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5292 test $ac_status = 0; }; then 5293 case `/usr/bin/file conftest.o` in 5294 *64-bit*) 5295 case $lt_cv_prog_gnu_ld in 5296 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5297 *) 5298 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5299 LD="${LD-ld} -64" 5300 fi 5301 ;; 5302 esac 5303 ;; 5304 esac 5305 fi 5306 rm -rf conftest* 5307 ;; 5308esac 5309 5310need_locks="$enable_libtool_lock" 5311 5312 5313 case $host_os in 5314 rhapsody* | darwin*) 5315 if test -n "$ac_tool_prefix"; then 5316 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5317set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319$as_echo_n "checking for $ac_word... " >&6; } 5320if ${ac_cv_prog_DSYMUTIL+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 if test -n "$DSYMUTIL"; then 5324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5325else 5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327for as_dir in $PATH 5328do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337done 5338 done 5339IFS=$as_save_IFS 5340 5341fi 5342fi 5343DSYMUTIL=$ac_cv_prog_DSYMUTIL 5344if test -n "$DSYMUTIL"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5346$as_echo "$DSYMUTIL" >&6; } 5347else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5349$as_echo "no" >&6; } 5350fi 5351 5352 5353fi 5354if test -z "$ac_cv_prog_DSYMUTIL"; then 5355 ac_ct_DSYMUTIL=$DSYMUTIL 5356 # Extract the first word of "dsymutil", so it can be a program name with args. 5357set dummy dsymutil; ac_word=$2 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5359$as_echo_n "checking for $ac_word... " >&6; } 5360if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 if test -n "$ac_ct_DSYMUTIL"; then 5364 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5365else 5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367for as_dir in $PATH 5368do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5373 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377done 5378 done 5379IFS=$as_save_IFS 5380 5381fi 5382fi 5383ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5384if test -n "$ac_ct_DSYMUTIL"; then 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5386$as_echo "$ac_ct_DSYMUTIL" >&6; } 5387else 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5389$as_echo "no" >&6; } 5390fi 5391 5392 if test "x$ac_ct_DSYMUTIL" = x; then 5393 DSYMUTIL=":" 5394 else 5395 case $cross_compiling:$ac_tool_warned in 5396yes:) 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5399ac_tool_warned=yes ;; 5400esac 5401 DSYMUTIL=$ac_ct_DSYMUTIL 5402 fi 5403else 5404 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5405fi 5406 5407 if test -n "$ac_tool_prefix"; then 5408 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5409set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5411$as_echo_n "checking for $ac_word... " >&6; } 5412if ${ac_cv_prog_NMEDIT+:} false; then : 5413 $as_echo_n "(cached) " >&6 5414else 5415 if test -n "$NMEDIT"; then 5416 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5417else 5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5419for as_dir in $PATH 5420do 5421 IFS=$as_save_IFS 5422 test -z "$as_dir" && as_dir=. 5423 for ac_exec_ext in '' $ac_executable_extensions; do 5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5425 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5427 break 2 5428 fi 5429done 5430 done 5431IFS=$as_save_IFS 5432 5433fi 5434fi 5435NMEDIT=$ac_cv_prog_NMEDIT 5436if test -n "$NMEDIT"; then 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 5438$as_echo "$NMEDIT" >&6; } 5439else 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5441$as_echo "no" >&6; } 5442fi 5443 5444 5445fi 5446if test -z "$ac_cv_prog_NMEDIT"; then 5447 ac_ct_NMEDIT=$NMEDIT 5448 # Extract the first word of "nmedit", so it can be a program name with args. 5449set dummy nmedit; ac_word=$2 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5451$as_echo_n "checking for $ac_word... " >&6; } 5452if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 if test -n "$ac_ct_NMEDIT"; then 5456 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5457else 5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5459for as_dir in $PATH 5460do 5461 IFS=$as_save_IFS 5462 test -z "$as_dir" && as_dir=. 5463 for ac_exec_ext in '' $ac_executable_extensions; do 5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5465 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5467 break 2 5468 fi 5469done 5470 done 5471IFS=$as_save_IFS 5472 5473fi 5474fi 5475ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5476if test -n "$ac_ct_NMEDIT"; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 5478$as_echo "$ac_ct_NMEDIT" >&6; } 5479else 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5481$as_echo "no" >&6; } 5482fi 5483 5484 if test "x$ac_ct_NMEDIT" = x; then 5485 NMEDIT=":" 5486 else 5487 case $cross_compiling:$ac_tool_warned in 5488yes:) 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5491ac_tool_warned=yes ;; 5492esac 5493 NMEDIT=$ac_ct_NMEDIT 5494 fi 5495else 5496 NMEDIT="$ac_cv_prog_NMEDIT" 5497fi 5498 5499 if test -n "$ac_tool_prefix"; then 5500 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5501set dummy ${ac_tool_prefix}lipo; ac_word=$2 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5503$as_echo_n "checking for $ac_word... " >&6; } 5504if ${ac_cv_prog_LIPO+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506else 5507 if test -n "$LIPO"; then 5508 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5509else 5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5511for as_dir in $PATH 5512do 5513 IFS=$as_save_IFS 5514 test -z "$as_dir" && as_dir=. 5515 for ac_exec_ext in '' $ac_executable_extensions; do 5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5517 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5519 break 2 5520 fi 5521done 5522 done 5523IFS=$as_save_IFS 5524 5525fi 5526fi 5527LIPO=$ac_cv_prog_LIPO 5528if test -n "$LIPO"; then 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 5530$as_echo "$LIPO" >&6; } 5531else 5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5533$as_echo "no" >&6; } 5534fi 5535 5536 5537fi 5538if test -z "$ac_cv_prog_LIPO"; then 5539 ac_ct_LIPO=$LIPO 5540 # Extract the first word of "lipo", so it can be a program name with args. 5541set dummy lipo; ac_word=$2 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5543$as_echo_n "checking for $ac_word... " >&6; } 5544if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 if test -n "$ac_ct_LIPO"; then 5548 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5549else 5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551for as_dir in $PATH 5552do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5557 ac_cv_prog_ac_ct_LIPO="lipo" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561done 5562 done 5563IFS=$as_save_IFS 5564 5565fi 5566fi 5567ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5568if test -n "$ac_ct_LIPO"; then 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 5570$as_echo "$ac_ct_LIPO" >&6; } 5571else 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573$as_echo "no" >&6; } 5574fi 5575 5576 if test "x$ac_ct_LIPO" = x; then 5577 LIPO=":" 5578 else 5579 case $cross_compiling:$ac_tool_warned in 5580yes:) 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5583ac_tool_warned=yes ;; 5584esac 5585 LIPO=$ac_ct_LIPO 5586 fi 5587else 5588 LIPO="$ac_cv_prog_LIPO" 5589fi 5590 5591 if test -n "$ac_tool_prefix"; then 5592 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5593set dummy ${ac_tool_prefix}otool; ac_word=$2 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5595$as_echo_n "checking for $ac_word... " >&6; } 5596if ${ac_cv_prog_OTOOL+:} false; then : 5597 $as_echo_n "(cached) " >&6 5598else 5599 if test -n "$OTOOL"; then 5600 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5601else 5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5603for as_dir in $PATH 5604do 5605 IFS=$as_save_IFS 5606 test -z "$as_dir" && as_dir=. 5607 for ac_exec_ext in '' $ac_executable_extensions; do 5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5609 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5611 break 2 5612 fi 5613done 5614 done 5615IFS=$as_save_IFS 5616 5617fi 5618fi 5619OTOOL=$ac_cv_prog_OTOOL 5620if test -n "$OTOOL"; then 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5622$as_echo "$OTOOL" >&6; } 5623else 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5625$as_echo "no" >&6; } 5626fi 5627 5628 5629fi 5630if test -z "$ac_cv_prog_OTOOL"; then 5631 ac_ct_OTOOL=$OTOOL 5632 # Extract the first word of "otool", so it can be a program name with args. 5633set dummy otool; ac_word=$2 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635$as_echo_n "checking for $ac_word... " >&6; } 5636if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 if test -n "$ac_ct_OTOOL"; then 5640 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5641else 5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5643for as_dir in $PATH 5644do 5645 IFS=$as_save_IFS 5646 test -z "$as_dir" && as_dir=. 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5649 ac_cv_prog_ac_ct_OTOOL="otool" 5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5651 break 2 5652 fi 5653done 5654 done 5655IFS=$as_save_IFS 5656 5657fi 5658fi 5659ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5660if test -n "$ac_ct_OTOOL"; then 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 5662$as_echo "$ac_ct_OTOOL" >&6; } 5663else 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5665$as_echo "no" >&6; } 5666fi 5667 5668 if test "x$ac_ct_OTOOL" = x; then 5669 OTOOL=":" 5670 else 5671 case $cross_compiling:$ac_tool_warned in 5672yes:) 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5675ac_tool_warned=yes ;; 5676esac 5677 OTOOL=$ac_ct_OTOOL 5678 fi 5679else 5680 OTOOL="$ac_cv_prog_OTOOL" 5681fi 5682 5683 if test -n "$ac_tool_prefix"; then 5684 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5685set dummy ${ac_tool_prefix}otool64; ac_word=$2 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5687$as_echo_n "checking for $ac_word... " >&6; } 5688if ${ac_cv_prog_OTOOL64+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 if test -n "$OTOOL64"; then 5692 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5693else 5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5695for as_dir in $PATH 5696do 5697 IFS=$as_save_IFS 5698 test -z "$as_dir" && as_dir=. 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705done 5706 done 5707IFS=$as_save_IFS 5708 5709fi 5710fi 5711OTOOL64=$ac_cv_prog_OTOOL64 5712if test -n "$OTOOL64"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 5714$as_echo "$OTOOL64" >&6; } 5715else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717$as_echo "no" >&6; } 5718fi 5719 5720 5721fi 5722if test -z "$ac_cv_prog_OTOOL64"; then 5723 ac_ct_OTOOL64=$OTOOL64 5724 # Extract the first word of "otool64", so it can be a program name with args. 5725set dummy otool64; ac_word=$2 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5727$as_echo_n "checking for $ac_word... " >&6; } 5728if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730else 5731 if test -n "$ac_ct_OTOOL64"; then 5732 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5733else 5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735for as_dir in $PATH 5736do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_exec_ext in '' $ac_executable_extensions; do 5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5741 ac_cv_prog_ac_ct_OTOOL64="otool64" 5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745done 5746 done 5747IFS=$as_save_IFS 5748 5749fi 5750fi 5751ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5752if test -n "$ac_ct_OTOOL64"; then 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 5754$as_echo "$ac_ct_OTOOL64" >&6; } 5755else 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5757$as_echo "no" >&6; } 5758fi 5759 5760 if test "x$ac_ct_OTOOL64" = x; then 5761 OTOOL64=":" 5762 else 5763 case $cross_compiling:$ac_tool_warned in 5764yes:) 5765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5767ac_tool_warned=yes ;; 5768esac 5769 OTOOL64=$ac_ct_OTOOL64 5770 fi 5771else 5772 OTOOL64="$ac_cv_prog_OTOOL64" 5773fi 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 5802$as_echo_n "checking for -single_module linker flag... " >&6; } 5803if ${lt_cv_apple_cc_single_mod+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 lt_cv_apple_cc_single_mod=no 5807 if test -z "${LT_MULTI_MODULE}"; then 5808 # By default we will add the -single_module flag. You can override 5809 # by either setting the environment variable LT_MULTI_MODULE 5810 # non-empty at configure time, or by adding -multi_module to the 5811 # link flags. 5812 rm -rf libconftest.dylib* 5813 echo "int foo(void){return 1;}" > conftest.c 5814 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5815-dynamiclib -Wl,-single_module conftest.c" >&5 5816 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5817 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5818 _lt_result=$? 5819 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5820 lt_cv_apple_cc_single_mod=yes 5821 else 5822 cat conftest.err >&5 5823 fi 5824 rm -rf libconftest.dylib* 5825 rm -f conftest.* 5826 fi 5827fi 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 5829$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 5831$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5832if ${lt_cv_ld_exported_symbols_list+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 lt_cv_ld_exported_symbols_list=no 5836 save_LDFLAGS=$LDFLAGS 5837 echo "_main" > conftest.sym 5838 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841 5842int 5843main () 5844{ 5845 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_c_try_link "$LINENO"; then : 5851 lt_cv_ld_exported_symbols_list=yes 5852else 5853 lt_cv_ld_exported_symbols_list=no 5854fi 5855rm -f core conftest.err conftest.$ac_objext \ 5856 conftest$ac_exeext conftest.$ac_ext 5857 LDFLAGS="$save_LDFLAGS" 5858 5859fi 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 5861$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5862 case $host_os in 5863 rhapsody* | darwin1.[012]) 5864 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5865 darwin1.*) 5866 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5867 darwin*) # darwin 5.x on 5868 # if running on 10.5 or later, the deployment target defaults 5869 # to the OS version, if on x86, and 10.4, the deployment 5870 # target defaults to 10.4. Don't you love it? 5871 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5872 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5873 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5874 10.[012]*) 5875 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5876 10.*) 5877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5878 esac 5879 ;; 5880 esac 5881 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 5882 _lt_dar_single_mod='$single_module' 5883 fi 5884 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 5885 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 5886 else 5887 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 5888 fi 5889 if test "$DSYMUTIL" != ":"; then 5890 _lt_dsymutil='~$DSYMUTIL $lib || :' 5891 else 5892 _lt_dsymutil= 5893 fi 5894 ;; 5895 esac 5896 5897ac_ext=c 5898ac_cpp='$CPP $CPPFLAGS' 5899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5901ac_compiler_gnu=$ac_cv_c_compiler_gnu 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5903$as_echo_n "checking how to run the C preprocessor... " >&6; } 5904# On Suns, sometimes $CPP names a directory. 5905if test -n "$CPP" && test -d "$CPP"; then 5906 CPP= 5907fi 5908if test -z "$CPP"; then 5909 if ${ac_cv_prog_CPP+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 # Double quotes because CPP needs to be expanded 5913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5914 do 5915 ac_preproc_ok=false 5916for ac_c_preproc_warn_flag in '' yes 5917do 5918 # Use a header file that comes with gcc, so configuring glibc 5919 # with a fresh cross-compiler works. 5920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5921 # <limits.h> exists even on freestanding compilers. 5922 # On the NeXT, cc -E runs the code through the compiler's parser, 5923 # not just through cpp. "Syntax error" is here to catch this case. 5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5925/* end confdefs.h. */ 5926#ifdef __STDC__ 5927# include <limits.h> 5928#else 5929# include <assert.h> 5930#endif 5931 Syntax error 5932_ACEOF 5933if ac_fn_c_try_cpp "$LINENO"; then : 5934 5935else 5936 # Broken: fails on valid input. 5937continue 5938fi 5939rm -f conftest.err conftest.i conftest.$ac_ext 5940 5941 # OK, works on sane cases. Now check whether nonexistent headers 5942 # can be detected and how. 5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5944/* end confdefs.h. */ 5945#include <ac_nonexistent.h> 5946_ACEOF 5947if ac_fn_c_try_cpp "$LINENO"; then : 5948 # Broken: success on invalid input. 5949continue 5950else 5951 # Passes both tests. 5952ac_preproc_ok=: 5953break 5954fi 5955rm -f conftest.err conftest.i conftest.$ac_ext 5956 5957done 5958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5959rm -f conftest.i conftest.err conftest.$ac_ext 5960if $ac_preproc_ok; then : 5961 break 5962fi 5963 5964 done 5965 ac_cv_prog_CPP=$CPP 5966 5967fi 5968 CPP=$ac_cv_prog_CPP 5969else 5970 ac_cv_prog_CPP=$CPP 5971fi 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5973$as_echo "$CPP" >&6; } 5974ac_preproc_ok=false 5975for ac_c_preproc_warn_flag in '' yes 5976do 5977 # Use a header file that comes with gcc, so configuring glibc 5978 # with a fresh cross-compiler works. 5979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5980 # <limits.h> exists even on freestanding compilers. 5981 # On the NeXT, cc -E runs the code through the compiler's parser, 5982 # not just through cpp. "Syntax error" is here to catch this case. 5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5984/* end confdefs.h. */ 5985#ifdef __STDC__ 5986# include <limits.h> 5987#else 5988# include <assert.h> 5989#endif 5990 Syntax error 5991_ACEOF 5992if ac_fn_c_try_cpp "$LINENO"; then : 5993 5994else 5995 # Broken: fails on valid input. 5996continue 5997fi 5998rm -f conftest.err conftest.i conftest.$ac_ext 5999 6000 # OK, works on sane cases. Now check whether nonexistent headers 6001 # can be detected and how. 6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6003/* end confdefs.h. */ 6004#include <ac_nonexistent.h> 6005_ACEOF 6006if ac_fn_c_try_cpp "$LINENO"; then : 6007 # Broken: success on invalid input. 6008continue 6009else 6010 # Passes both tests. 6011ac_preproc_ok=: 6012break 6013fi 6014rm -f conftest.err conftest.i conftest.$ac_ext 6015 6016done 6017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6018rm -f conftest.i conftest.err conftest.$ac_ext 6019if $ac_preproc_ok; then : 6020 6021else 6022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6024as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6025See \`config.log' for more details" "$LINENO" 5; } 6026fi 6027 6028ac_ext=c 6029ac_cpp='$CPP $CPPFLAGS' 6030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6032ac_compiler_gnu=$ac_cv_c_compiler_gnu 6033 6034 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6036$as_echo_n "checking for ANSI C header files... " >&6; } 6037if ${ac_cv_header_stdc+:} false; then : 6038 $as_echo_n "(cached) " >&6 6039else 6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6041/* end confdefs.h. */ 6042#include <stdlib.h> 6043#include <stdarg.h> 6044#include <string.h> 6045#include <float.h> 6046 6047int 6048main () 6049{ 6050 6051 ; 6052 return 0; 6053} 6054_ACEOF 6055if ac_fn_c_try_compile "$LINENO"; then : 6056 ac_cv_header_stdc=yes 6057else 6058 ac_cv_header_stdc=no 6059fi 6060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6061 6062if test $ac_cv_header_stdc = yes; then 6063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065/* end confdefs.h. */ 6066#include <string.h> 6067 6068_ACEOF 6069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6070 $EGREP "memchr" >/dev/null 2>&1; then : 6071 6072else 6073 ac_cv_header_stdc=no 6074fi 6075rm -f conftest* 6076 6077fi 6078 6079if test $ac_cv_header_stdc = yes; then 6080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6082/* end confdefs.h. */ 6083#include <stdlib.h> 6084 6085_ACEOF 6086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6087 $EGREP "free" >/dev/null 2>&1; then : 6088 6089else 6090 ac_cv_header_stdc=no 6091fi 6092rm -f conftest* 6093 6094fi 6095 6096if test $ac_cv_header_stdc = yes; then 6097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6098 if test "$cross_compiling" = yes; then : 6099 : 6100else 6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6102/* end confdefs.h. */ 6103#include <ctype.h> 6104#include <stdlib.h> 6105#if ((' ' & 0x0FF) == 0x020) 6106# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6107# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6108#else 6109# define ISLOWER(c) \ 6110 (('a' <= (c) && (c) <= 'i') \ 6111 || ('j' <= (c) && (c) <= 'r') \ 6112 || ('s' <= (c) && (c) <= 'z')) 6113# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6114#endif 6115 6116#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6117int 6118main () 6119{ 6120 int i; 6121 for (i = 0; i < 256; i++) 6122 if (XOR (islower (i), ISLOWER (i)) 6123 || toupper (i) != TOUPPER (i)) 6124 return 2; 6125 return 0; 6126} 6127_ACEOF 6128if ac_fn_c_try_run "$LINENO"; then : 6129 6130else 6131 ac_cv_header_stdc=no 6132fi 6133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6134 conftest.$ac_objext conftest.beam conftest.$ac_ext 6135fi 6136 6137fi 6138fi 6139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6140$as_echo "$ac_cv_header_stdc" >&6; } 6141if test $ac_cv_header_stdc = yes; then 6142 6143$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6144 6145fi 6146 6147# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6148for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6149 inttypes.h stdint.h unistd.h 6150do : 6151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6152ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6153" 6154if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6155 cat >>confdefs.h <<_ACEOF 6156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6157_ACEOF 6158 6159fi 6160 6161done 6162 6163 6164for ac_header in dlfcn.h 6165do : 6166 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6167" 6168if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6169 cat >>confdefs.h <<_ACEOF 6170#define HAVE_DLFCN_H 1 6171_ACEOF 6172 6173fi 6174 6175done 6176 6177 6178 6179# Set options 6180enable_win32_dll=yes 6181 6182case $host in 6183*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 6184 if test -n "$ac_tool_prefix"; then 6185 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6186set dummy ${ac_tool_prefix}as; ac_word=$2 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6188$as_echo_n "checking for $ac_word... " >&6; } 6189if ${ac_cv_prog_AS+:} false; then : 6190 $as_echo_n "(cached) " >&6 6191else 6192 if test -n "$AS"; then 6193 ac_cv_prog_AS="$AS" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 test -z "$as_dir" && as_dir=. 6200 for ac_exec_ext in '' $ac_executable_extensions; do 6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6202 ac_cv_prog_AS="${ac_tool_prefix}as" 6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6204 break 2 6205 fi 6206done 6207 done 6208IFS=$as_save_IFS 6209 6210fi 6211fi 6212AS=$ac_cv_prog_AS 6213if test -n "$AS"; then 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6215$as_echo "$AS" >&6; } 6216else 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6218$as_echo "no" >&6; } 6219fi 6220 6221 6222fi 6223if test -z "$ac_cv_prog_AS"; then 6224 ac_ct_AS=$AS 6225 # Extract the first word of "as", so it can be a program name with args. 6226set dummy as; ac_word=$2 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228$as_echo_n "checking for $ac_word... " >&6; } 6229if ${ac_cv_prog_ac_ct_AS+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 if test -n "$ac_ct_AS"; then 6233 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6242 ac_cv_prog_ac_ct_AS="as" 6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246done 6247 done 6248IFS=$as_save_IFS 6249 6250fi 6251fi 6252ac_ct_AS=$ac_cv_prog_ac_ct_AS 6253if test -n "$ac_ct_AS"; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6255$as_echo "$ac_ct_AS" >&6; } 6256else 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6258$as_echo "no" >&6; } 6259fi 6260 6261 if test "x$ac_ct_AS" = x; then 6262 AS="false" 6263 else 6264 case $cross_compiling:$ac_tool_warned in 6265yes:) 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6268ac_tool_warned=yes ;; 6269esac 6270 AS=$ac_ct_AS 6271 fi 6272else 6273 AS="$ac_cv_prog_AS" 6274fi 6275 6276 if test -n "$ac_tool_prefix"; then 6277 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6278set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6280$as_echo_n "checking for $ac_word... " >&6; } 6281if ${ac_cv_prog_DLLTOOL+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 if test -n "$DLLTOOL"; then 6285 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6286else 6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288for as_dir in $PATH 6289do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6294 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298done 6299 done 6300IFS=$as_save_IFS 6301 6302fi 6303fi 6304DLLTOOL=$ac_cv_prog_DLLTOOL 6305if test -n "$DLLTOOL"; then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6307$as_echo "$DLLTOOL" >&6; } 6308else 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310$as_echo "no" >&6; } 6311fi 6312 6313 6314fi 6315if test -z "$ac_cv_prog_DLLTOOL"; then 6316 ac_ct_DLLTOOL=$DLLTOOL 6317 # Extract the first word of "dlltool", so it can be a program name with args. 6318set dummy dlltool; ac_word=$2 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6320$as_echo_n "checking for $ac_word... " >&6; } 6321if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 if test -n "$ac_ct_DLLTOOL"; then 6325 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6326else 6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6328for as_dir in $PATH 6329do 6330 IFS=$as_save_IFS 6331 test -z "$as_dir" && as_dir=. 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6334 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338done 6339 done 6340IFS=$as_save_IFS 6341 6342fi 6343fi 6344ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6345if test -n "$ac_ct_DLLTOOL"; then 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6347$as_echo "$ac_ct_DLLTOOL" >&6; } 6348else 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6350$as_echo "no" >&6; } 6351fi 6352 6353 if test "x$ac_ct_DLLTOOL" = x; then 6354 DLLTOOL="false" 6355 else 6356 case $cross_compiling:$ac_tool_warned in 6357yes:) 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6360ac_tool_warned=yes ;; 6361esac 6362 DLLTOOL=$ac_ct_DLLTOOL 6363 fi 6364else 6365 DLLTOOL="$ac_cv_prog_DLLTOOL" 6366fi 6367 6368 if test -n "$ac_tool_prefix"; then 6369 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6370set dummy ${ac_tool_prefix}objdump; ac_word=$2 6371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6372$as_echo_n "checking for $ac_word... " >&6; } 6373if ${ac_cv_prog_OBJDUMP+:} false; then : 6374 $as_echo_n "(cached) " >&6 6375else 6376 if test -n "$OBJDUMP"; then 6377 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6378else 6379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6380for as_dir in $PATH 6381do 6382 IFS=$as_save_IFS 6383 test -z "$as_dir" && as_dir=. 6384 for ac_exec_ext in '' $ac_executable_extensions; do 6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6386 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6388 break 2 6389 fi 6390done 6391 done 6392IFS=$as_save_IFS 6393 6394fi 6395fi 6396OBJDUMP=$ac_cv_prog_OBJDUMP 6397if test -n "$OBJDUMP"; then 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6399$as_echo "$OBJDUMP" >&6; } 6400else 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6402$as_echo "no" >&6; } 6403fi 6404 6405 6406fi 6407if test -z "$ac_cv_prog_OBJDUMP"; then 6408 ac_ct_OBJDUMP=$OBJDUMP 6409 # Extract the first word of "objdump", so it can be a program name with args. 6410set dummy objdump; ac_word=$2 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6412$as_echo_n "checking for $ac_word... " >&6; } 6413if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 if test -n "$ac_ct_OBJDUMP"; then 6417 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6418else 6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6420for as_dir in $PATH 6421do 6422 IFS=$as_save_IFS 6423 test -z "$as_dir" && as_dir=. 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6426 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6428 break 2 6429 fi 6430done 6431 done 6432IFS=$as_save_IFS 6433 6434fi 6435fi 6436ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6437if test -n "$ac_ct_OBJDUMP"; then 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6439$as_echo "$ac_ct_OBJDUMP" >&6; } 6440else 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6442$as_echo "no" >&6; } 6443fi 6444 6445 if test "x$ac_ct_OBJDUMP" = x; then 6446 OBJDUMP="false" 6447 else 6448 case $cross_compiling:$ac_tool_warned in 6449yes:) 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6452ac_tool_warned=yes ;; 6453esac 6454 OBJDUMP=$ac_ct_OBJDUMP 6455 fi 6456else 6457 OBJDUMP="$ac_cv_prog_OBJDUMP" 6458fi 6459 6460 ;; 6461esac 6462 6463test -z "$AS" && AS=as 6464 6465 6466 6467 6468 6469test -z "$DLLTOOL" && DLLTOOL=dlltool 6470 6471 6472 6473 6474 6475test -z "$OBJDUMP" && OBJDUMP=objdump 6476 6477 6478 6479 6480 6481 6482 6483 enable_dlopen=no 6484 6485 6486 6487 # Check whether --enable-shared was given. 6488if test "${enable_shared+set}" = set; then : 6489 enableval=$enable_shared; p=${PACKAGE-default} 6490 case $enableval in 6491 yes) enable_shared=yes ;; 6492 no) enable_shared=no ;; 6493 *) 6494 enable_shared=no 6495 # Look at the argument we got. We use all the common list separators. 6496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6497 for pkg in $enableval; do 6498 IFS="$lt_save_ifs" 6499 if test "X$pkg" = "X$p"; then 6500 enable_shared=yes 6501 fi 6502 done 6503 IFS="$lt_save_ifs" 6504 ;; 6505 esac 6506else 6507 enable_shared=yes 6508fi 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 # Check whether --enable-static was given. 6519if test "${enable_static+set}" = set; then : 6520 enableval=$enable_static; p=${PACKAGE-default} 6521 case $enableval in 6522 yes) enable_static=yes ;; 6523 no) enable_static=no ;; 6524 *) 6525 enable_static=no 6526 # Look at the argument we got. We use all the common list separators. 6527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6528 for pkg in $enableval; do 6529 IFS="$lt_save_ifs" 6530 if test "X$pkg" = "X$p"; then 6531 enable_static=yes 6532 fi 6533 done 6534 IFS="$lt_save_ifs" 6535 ;; 6536 esac 6537else 6538 enable_static=yes 6539fi 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550# Check whether --with-pic was given. 6551if test "${with_pic+set}" = set; then : 6552 withval=$with_pic; pic_mode="$withval" 6553else 6554 pic_mode=default 6555fi 6556 6557 6558test -z "$pic_mode" && pic_mode=default 6559 6560 6561 6562 6563 6564 6565 6566 # Check whether --enable-fast-install was given. 6567if test "${enable_fast_install+set}" = set; then : 6568 enableval=$enable_fast_install; p=${PACKAGE-default} 6569 case $enableval in 6570 yes) enable_fast_install=yes ;; 6571 no) enable_fast_install=no ;; 6572 *) 6573 enable_fast_install=no 6574 # Look at the argument we got. We use all the common list separators. 6575 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6576 for pkg in $enableval; do 6577 IFS="$lt_save_ifs" 6578 if test "X$pkg" = "X$p"; then 6579 enable_fast_install=yes 6580 fi 6581 done 6582 IFS="$lt_save_ifs" 6583 ;; 6584 esac 6585else 6586 enable_fast_install=yes 6587fi 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599# This can be used to rebuild libtool when needed 6600LIBTOOL_DEPS="$ltmain" 6601 6602# Always use our own libtool. 6603LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629test -z "$LN_S" && LN_S="ln -s" 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644if test -n "${ZSH_VERSION+set}" ; then 6645 setopt NO_GLOB_SUBST 6646fi 6647 6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6649$as_echo_n "checking for objdir... " >&6; } 6650if ${lt_cv_objdir+:} false; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 rm -f .libs 2>/dev/null 6654mkdir .libs 2>/dev/null 6655if test -d .libs; then 6656 lt_cv_objdir=.libs 6657else 6658 # MS-DOS does not allow filenames that begin with a dot. 6659 lt_cv_objdir=_libs 6660fi 6661rmdir .libs 2>/dev/null 6662fi 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6664$as_echo "$lt_cv_objdir" >&6; } 6665objdir=$lt_cv_objdir 6666 6667 6668 6669 6670 6671cat >>confdefs.h <<_ACEOF 6672#define LT_OBJDIR "$lt_cv_objdir/" 6673_ACEOF 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691case $host_os in 6692aix3*) 6693 # AIX sometimes has problems with the GCC collect2 program. For some 6694 # reason, if we set the COLLECT_NAMES environment variable, the problems 6695 # vanish in a puff of smoke. 6696 if test "X${COLLECT_NAMES+set}" != Xset; then 6697 COLLECT_NAMES= 6698 export COLLECT_NAMES 6699 fi 6700 ;; 6701esac 6702 6703# Sed substitution that helps us do robust quoting. It backslashifies 6704# metacharacters that are still active within double-quoted strings. 6705sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6706 6707# Same as above, but do not quote variable references. 6708double_quote_subst='s/\(["`\\]\)/\\\1/g' 6709 6710# Sed substitution to delay expansion of an escaped shell variable in a 6711# double_quote_subst'ed string. 6712delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6713 6714# Sed substitution to delay expansion of an escaped single quote. 6715delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6716 6717# Sed substitution to avoid accidental globbing in evaled expressions 6718no_glob_subst='s/\*/\\\*/g' 6719 6720# Global variables: 6721ofile=libtool 6722can_build_shared=yes 6723 6724# All known linkers require a `.a' archive for static linking (except MSVC, 6725# which needs '.lib'). 6726libext=a 6727 6728with_gnu_ld="$lt_cv_prog_gnu_ld" 6729 6730old_CC="$CC" 6731old_CFLAGS="$CFLAGS" 6732 6733# Set sane defaults for various variables 6734test -z "$CC" && CC=cc 6735test -z "$LTCC" && LTCC=$CC 6736test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6737test -z "$LD" && LD=ld 6738test -z "$ac_objext" && ac_objext=o 6739 6740for cc_temp in $compiler""; do 6741 case $cc_temp in 6742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6744 \-*) ;; 6745 *) break;; 6746 esac 6747done 6748cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6749 6750 6751# Only perform the check for file, if the check method requires it 6752test -z "$MAGIC_CMD" && MAGIC_CMD=file 6753case $deplibs_check_method in 6754file_magic*) 6755 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6757$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6758if ${lt_cv_path_MAGIC_CMD+:} false; then : 6759 $as_echo_n "(cached) " >&6 6760else 6761 case $MAGIC_CMD in 6762[\\/*] | ?:[\\/]*) 6763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6764 ;; 6765*) 6766 lt_save_MAGIC_CMD="$MAGIC_CMD" 6767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6769 for ac_dir in $ac_dummy; do 6770 IFS="$lt_save_ifs" 6771 test -z "$ac_dir" && ac_dir=. 6772 if test -f $ac_dir/${ac_tool_prefix}file; then 6773 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6774 if test -n "$file_magic_test_file"; then 6775 case $deplibs_check_method in 6776 "file_magic "*) 6777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6780 $EGREP "$file_magic_regex" > /dev/null; then 6781 : 6782 else 6783 cat <<_LT_EOF 1>&2 6784 6785*** Warning: the command libtool uses to detect shared libraries, 6786*** $file_magic_cmd, produces output that libtool cannot recognize. 6787*** The result is that libtool may fail to recognize shared libraries 6788*** as such. This will affect the creation of libtool libraries that 6789*** depend on shared libraries, but programs linked with such libtool 6790*** libraries will work regardless of this problem. Nevertheless, you 6791*** may want to report the problem to your system manager and/or to 6792*** bug-libtool@gnu.org 6793 6794_LT_EOF 6795 fi ;; 6796 esac 6797 fi 6798 break 6799 fi 6800 done 6801 IFS="$lt_save_ifs" 6802 MAGIC_CMD="$lt_save_MAGIC_CMD" 6803 ;; 6804esac 6805fi 6806 6807MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6808if test -n "$MAGIC_CMD"; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6810$as_echo "$MAGIC_CMD" >&6; } 6811else 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6813$as_echo "no" >&6; } 6814fi 6815 6816 6817 6818 6819 6820if test -z "$lt_cv_path_MAGIC_CMD"; then 6821 if test -n "$ac_tool_prefix"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 6823$as_echo_n "checking for file... " >&6; } 6824if ${lt_cv_path_MAGIC_CMD+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826else 6827 case $MAGIC_CMD in 6828[\\/*] | ?:[\\/]*) 6829 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6830 ;; 6831*) 6832 lt_save_MAGIC_CMD="$MAGIC_CMD" 6833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6834 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6835 for ac_dir in $ac_dummy; do 6836 IFS="$lt_save_ifs" 6837 test -z "$ac_dir" && ac_dir=. 6838 if test -f $ac_dir/file; then 6839 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6840 if test -n "$file_magic_test_file"; then 6841 case $deplibs_check_method in 6842 "file_magic "*) 6843 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6845 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6846 $EGREP "$file_magic_regex" > /dev/null; then 6847 : 6848 else 6849 cat <<_LT_EOF 1>&2 6850 6851*** Warning: the command libtool uses to detect shared libraries, 6852*** $file_magic_cmd, produces output that libtool cannot recognize. 6853*** The result is that libtool may fail to recognize shared libraries 6854*** as such. This will affect the creation of libtool libraries that 6855*** depend on shared libraries, but programs linked with such libtool 6856*** libraries will work regardless of this problem. Nevertheless, you 6857*** may want to report the problem to your system manager and/or to 6858*** bug-libtool@gnu.org 6859 6860_LT_EOF 6861 fi ;; 6862 esac 6863 fi 6864 break 6865 fi 6866 done 6867 IFS="$lt_save_ifs" 6868 MAGIC_CMD="$lt_save_MAGIC_CMD" 6869 ;; 6870esac 6871fi 6872 6873MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6874if test -n "$MAGIC_CMD"; then 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6876$as_echo "$MAGIC_CMD" >&6; } 6877else 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6879$as_echo "no" >&6; } 6880fi 6881 6882 6883 else 6884 MAGIC_CMD=: 6885 fi 6886fi 6887 6888 fi 6889 ;; 6890esac 6891 6892# Use C for the default configuration in the libtool script 6893 6894lt_save_CC="$CC" 6895ac_ext=c 6896ac_cpp='$CPP $CPPFLAGS' 6897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6899ac_compiler_gnu=$ac_cv_c_compiler_gnu 6900 6901 6902# Source file extension for C test sources. 6903ac_ext=c 6904 6905# Object file extension for compiled C test sources. 6906objext=o 6907objext=$objext 6908 6909# Code to be used in simple compile tests 6910lt_simple_compile_test_code="int some_variable = 0;" 6911 6912# Code to be used in simple link tests 6913lt_simple_link_test_code='int main(){return(0);}' 6914 6915 6916 6917 6918 6919 6920 6921# If no C compiler was specified, use CC. 6922LTCC=${LTCC-"$CC"} 6923 6924# If no C compiler flags were specified, use CFLAGS. 6925LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6926 6927# Allow CC to be a program name with arguments. 6928compiler=$CC 6929 6930# Save the default compiler, since it gets overwritten when the other 6931# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6932compiler_DEFAULT=$CC 6933 6934# save warnings/boilerplate of simple test code 6935ac_outfile=conftest.$ac_objext 6936echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6937eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6938_lt_compiler_boilerplate=`cat conftest.err` 6939$RM conftest* 6940 6941ac_outfile=conftest.$ac_objext 6942echo "$lt_simple_link_test_code" >conftest.$ac_ext 6943eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6944_lt_linker_boilerplate=`cat conftest.err` 6945$RM -r conftest* 6946 6947 6948## CAVEAT EMPTOR: 6949## There is no encapsulation within the following macros, do not change 6950## the running order or otherwise move them around unless you know exactly 6951## what you are doing... 6952if test -n "$compiler"; then 6953 6954lt_prog_compiler_no_builtin_flag= 6955 6956if test "$GCC" = yes; then 6957 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6958 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6960$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6961if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 lt_cv_prog_compiler_rtti_exceptions=no 6965 ac_outfile=conftest.$ac_objext 6966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6967 lt_compiler_flag="-fno-rtti -fno-exceptions" 6968 # Insert the option either (1) after the last *FLAGS variable, or 6969 # (2) before a word containing "conftest.", or (3) at the end. 6970 # Note that $ac_compile itself does not contain backslashes and begins 6971 # with a dollar sign (not a hyphen), so the echo should work correctly. 6972 # The option is referenced via a variable to avoid confusing sed. 6973 lt_compile=`echo "$ac_compile" | $SED \ 6974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6976 -e 's:$: $lt_compiler_flag:'` 6977 (eval echo "\"\$as_me:6977: $lt_compile\"" >&5) 6978 (eval "$lt_compile" 2>conftest.err) 6979 ac_status=$? 6980 cat conftest.err >&5 6981 echo "$as_me:6981: \$? = $ac_status" >&5 6982 if (exit $ac_status) && test -s "$ac_outfile"; then 6983 # The compiler can only warn and ignore the option if not recognized 6984 # So say no if there are warnings other than the usual output. 6985 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6988 lt_cv_prog_compiler_rtti_exceptions=yes 6989 fi 6990 fi 6991 $RM conftest* 6992 6993fi 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6995$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6996 6997if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6998 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6999else 7000 : 7001fi 7002 7003fi 7004 7005 7006 7007 7008 7009 7010 lt_prog_compiler_wl= 7011lt_prog_compiler_pic= 7012lt_prog_compiler_static= 7013 7014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7015$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7016 7017 if test "$GCC" = yes; then 7018 lt_prog_compiler_wl='-Wl,' 7019 lt_prog_compiler_static='-static' 7020 7021 case $host_os in 7022 aix*) 7023 # All AIX code is PIC. 7024 if test "$host_cpu" = ia64; then 7025 # AIX 5 now supports IA64 processor 7026 lt_prog_compiler_static='-Bstatic' 7027 fi 7028 ;; 7029 7030 amigaos*) 7031 case $host_cpu in 7032 powerpc) 7033 # see comment about AmigaOS4 .so support 7034 lt_prog_compiler_pic='-fPIC' 7035 ;; 7036 m68k) 7037 # FIXME: we need at least 68020 code to build shared libraries, but 7038 # adding the `-m68020' flag to GCC prevents building anything better, 7039 # like `-m68040'. 7040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7041 ;; 7042 esac 7043 ;; 7044 7045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7046 # PIC is the default for these OSes. 7047 ;; 7048 7049 mingw* | cygwin* | pw32* | os2* | cegcc*) 7050 # This hack is so that the source file can tell whether it is being 7051 # built for inclusion in a dll (and should export symbols for example). 7052 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7053 # (--disable-auto-import) libraries 7054 lt_prog_compiler_pic='-DDLL_EXPORT' 7055 ;; 7056 7057 darwin* | rhapsody*) 7058 # PIC is the default on this platform 7059 # Common symbols not allowed in MH_DYLIB files 7060 lt_prog_compiler_pic='-fno-common' 7061 ;; 7062 7063 hpux*) 7064 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7065 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7066 # sets the default TLS model and affects inlining. 7067 case $host_cpu in 7068 hppa*64*) 7069 # +Z the default 7070 ;; 7071 *) 7072 lt_prog_compiler_pic='-fPIC' 7073 ;; 7074 esac 7075 ;; 7076 7077 interix[3-9]*) 7078 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7079 # Instead, we relocate shared libraries at runtime. 7080 ;; 7081 7082 msdosdjgpp*) 7083 # Just because we use GCC doesn't mean we suddenly get shared libraries 7084 # on systems that don't support them. 7085 lt_prog_compiler_can_build_shared=no 7086 enable_shared=no 7087 ;; 7088 7089 *nto* | *qnx*) 7090 # QNX uses GNU C++, but need to define -shared option too, otherwise 7091 # it will coredump. 7092 lt_prog_compiler_pic='-fPIC -shared' 7093 ;; 7094 7095 sysv4*MP*) 7096 if test -d /usr/nec; then 7097 lt_prog_compiler_pic=-Kconform_pic 7098 fi 7099 ;; 7100 7101 *) 7102 lt_prog_compiler_pic='-fPIC' 7103 ;; 7104 esac 7105 else 7106 # PORTME Check for flag to pass linker flags through the system compiler. 7107 case $host_os in 7108 aix*) 7109 lt_prog_compiler_wl='-Wl,' 7110 if test "$host_cpu" = ia64; then 7111 # AIX 5 now supports IA64 processor 7112 lt_prog_compiler_static='-Bstatic' 7113 else 7114 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7115 fi 7116 ;; 7117 7118 mingw* | cygwin* | pw32* | os2* | cegcc*) 7119 # This hack is so that the source file can tell whether it is being 7120 # built for inclusion in a dll (and should export symbols for example). 7121 lt_prog_compiler_pic='-DDLL_EXPORT' 7122 ;; 7123 7124 hpux9* | hpux10* | hpux11*) 7125 lt_prog_compiler_wl='-Wl,' 7126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7127 # not for PA HP-UX. 7128 case $host_cpu in 7129 hppa*64*|ia64*) 7130 # +Z the default 7131 ;; 7132 *) 7133 lt_prog_compiler_pic='+Z' 7134 ;; 7135 esac 7136 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7137 lt_prog_compiler_static='${wl}-a ${wl}archive' 7138 ;; 7139 7140 irix5* | irix6* | nonstopux*) 7141 lt_prog_compiler_wl='-Wl,' 7142 # PIC (with -KPIC) is the default. 7143 lt_prog_compiler_static='-non_shared' 7144 ;; 7145 7146 linux* | k*bsd*-gnu) 7147 case $cc_basename in 7148 # old Intel for x86_64 which still supported -KPIC. 7149 ecc*) 7150 lt_prog_compiler_wl='-Wl,' 7151 lt_prog_compiler_pic='-KPIC' 7152 lt_prog_compiler_static='-static' 7153 ;; 7154 # icc used to be incompatible with GCC. 7155 # ICC 10 doesn't accept -KPIC any more. 7156 icc* | ifort*) 7157 lt_prog_compiler_wl='-Wl,' 7158 lt_prog_compiler_pic='-fPIC' 7159 lt_prog_compiler_static='-static' 7160 ;; 7161 # Lahey Fortran 8.1. 7162 lf95*) 7163 lt_prog_compiler_wl='-Wl,' 7164 lt_prog_compiler_pic='--shared' 7165 lt_prog_compiler_static='--static' 7166 ;; 7167 pgcc* | pgf77* | pgf90* | pgf95*) 7168 # Portland Group compilers (*not* the Pentium gcc compiler, 7169 # which looks to be a dead project) 7170 lt_prog_compiler_wl='-Wl,' 7171 lt_prog_compiler_pic='-fpic' 7172 lt_prog_compiler_static='-Bstatic' 7173 ;; 7174 ccc*) 7175 lt_prog_compiler_wl='-Wl,' 7176 # All Alpha code is PIC. 7177 lt_prog_compiler_static='-non_shared' 7178 ;; 7179 xl*) 7180 # IBM XL C 8.0/Fortran 10.1 on PPC 7181 lt_prog_compiler_wl='-Wl,' 7182 lt_prog_compiler_pic='-qpic' 7183 lt_prog_compiler_static='-qstaticlink' 7184 ;; 7185 *) 7186 case `$CC -V 2>&1 | sed 5q` in 7187 *Sun\ C*) 7188 # Sun C 5.9 7189 lt_prog_compiler_pic='-KPIC' 7190 lt_prog_compiler_static='-Bstatic' 7191 lt_prog_compiler_wl='-Wl,' 7192 ;; 7193 *Sun\ F*) 7194 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7195 lt_prog_compiler_pic='-KPIC' 7196 lt_prog_compiler_static='-Bstatic' 7197 lt_prog_compiler_wl='' 7198 ;; 7199 esac 7200 ;; 7201 esac 7202 ;; 7203 7204 newsos6) 7205 lt_prog_compiler_pic='-KPIC' 7206 lt_prog_compiler_static='-Bstatic' 7207 ;; 7208 7209 *nto* | *qnx*) 7210 # QNX uses GNU C++, but need to define -shared option too, otherwise 7211 # it will coredump. 7212 lt_prog_compiler_pic='-fPIC -shared' 7213 ;; 7214 7215 osf3* | osf4* | osf5*) 7216 lt_prog_compiler_wl='-Wl,' 7217 # All OSF/1 code is PIC. 7218 lt_prog_compiler_static='-non_shared' 7219 ;; 7220 7221 rdos*) 7222 lt_prog_compiler_static='-non_shared' 7223 ;; 7224 7225 solaris*) 7226 lt_prog_compiler_pic='-KPIC' 7227 lt_prog_compiler_static='-Bstatic' 7228 case $cc_basename in 7229 f77* | f90* | f95*) 7230 lt_prog_compiler_wl='-Qoption ld ';; 7231 *) 7232 lt_prog_compiler_wl='-Wl,';; 7233 esac 7234 ;; 7235 7236 sunos4*) 7237 lt_prog_compiler_wl='-Qoption ld ' 7238 lt_prog_compiler_pic='-PIC' 7239 lt_prog_compiler_static='-Bstatic' 7240 ;; 7241 7242 sysv4 | sysv4.2uw2* | sysv4.3*) 7243 lt_prog_compiler_wl='-Wl,' 7244 lt_prog_compiler_pic='-KPIC' 7245 lt_prog_compiler_static='-Bstatic' 7246 ;; 7247 7248 sysv4*MP*) 7249 if test -d /usr/nec ;then 7250 lt_prog_compiler_pic='-Kconform_pic' 7251 lt_prog_compiler_static='-Bstatic' 7252 fi 7253 ;; 7254 7255 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7256 lt_prog_compiler_wl='-Wl,' 7257 lt_prog_compiler_pic='-KPIC' 7258 lt_prog_compiler_static='-Bstatic' 7259 ;; 7260 7261 unicos*) 7262 lt_prog_compiler_wl='-Wl,' 7263 lt_prog_compiler_can_build_shared=no 7264 ;; 7265 7266 uts4*) 7267 lt_prog_compiler_pic='-pic' 7268 lt_prog_compiler_static='-Bstatic' 7269 ;; 7270 7271 *) 7272 lt_prog_compiler_can_build_shared=no 7273 ;; 7274 esac 7275 fi 7276 7277case $host_os in 7278 # For platforms which do not support PIC, -DPIC is meaningless: 7279 *djgpp*) 7280 lt_prog_compiler_pic= 7281 ;; 7282 *) 7283 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7284 ;; 7285esac 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7287$as_echo "$lt_prog_compiler_pic" >&6; } 7288 7289 7290 7291 7292 7293 7294# 7295# Check to make sure the PIC flag actually works. 7296# 7297if test -n "$lt_prog_compiler_pic"; then 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7299$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7300if ${lt_cv_prog_compiler_pic_works+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 lt_cv_prog_compiler_pic_works=no 7304 ac_outfile=conftest.$ac_objext 7305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7306 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7307 # Insert the option either (1) after the last *FLAGS variable, or 7308 # (2) before a word containing "conftest.", or (3) at the end. 7309 # Note that $ac_compile itself does not contain backslashes and begins 7310 # with a dollar sign (not a hyphen), so the echo should work correctly. 7311 # The option is referenced via a variable to avoid confusing sed. 7312 lt_compile=`echo "$ac_compile" | $SED \ 7313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7315 -e 's:$: $lt_compiler_flag:'` 7316 (eval echo "\"\$as_me:7316: $lt_compile\"" >&5) 7317 (eval "$lt_compile" 2>conftest.err) 7318 ac_status=$? 7319 cat conftest.err >&5 7320 echo "$as_me:7320: \$? = $ac_status" >&5 7321 if (exit $ac_status) && test -s "$ac_outfile"; then 7322 # The compiler can only warn and ignore the option if not recognized 7323 # So say no if there are warnings other than the usual output. 7324 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7327 lt_cv_prog_compiler_pic_works=yes 7328 fi 7329 fi 7330 $RM conftest* 7331 7332fi 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7334$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7335 7336if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7337 case $lt_prog_compiler_pic in 7338 "" | " "*) ;; 7339 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7340 esac 7341else 7342 lt_prog_compiler_pic= 7343 lt_prog_compiler_can_build_shared=no 7344fi 7345 7346fi 7347 7348 7349 7350 7351 7352 7353# 7354# Check to make sure the static flag actually works. 7355# 7356wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7358$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7359if ${lt_cv_prog_compiler_static_works+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 lt_cv_prog_compiler_static_works=no 7363 save_LDFLAGS="$LDFLAGS" 7364 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7365 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7366 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7367 # The linker can only warn and ignore the option if not recognized 7368 # So say no if there are warnings 7369 if test -s conftest.err; then 7370 # Append any errors to the config.log. 7371 cat conftest.err 1>&5 7372 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7374 if diff conftest.exp conftest.er2 >/dev/null; then 7375 lt_cv_prog_compiler_static_works=yes 7376 fi 7377 else 7378 lt_cv_prog_compiler_static_works=yes 7379 fi 7380 fi 7381 $RM -r conftest* 7382 LDFLAGS="$save_LDFLAGS" 7383 7384fi 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7386$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7387 7388if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7389 : 7390else 7391 lt_prog_compiler_static= 7392fi 7393 7394 7395 7396 7397 7398 7399 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7401$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7402if ${lt_cv_prog_compiler_c_o+:} false; then : 7403 $as_echo_n "(cached) " >&6 7404else 7405 lt_cv_prog_compiler_c_o=no 7406 $RM -r conftest 2>/dev/null 7407 mkdir conftest 7408 cd conftest 7409 mkdir out 7410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7411 7412 lt_compiler_flag="-o out/conftest2.$ac_objext" 7413 # Insert the option either (1) after the last *FLAGS variable, or 7414 # (2) before a word containing "conftest.", or (3) at the end. 7415 # Note that $ac_compile itself does not contain backslashes and begins 7416 # with a dollar sign (not a hyphen), so the echo should work correctly. 7417 lt_compile=`echo "$ac_compile" | $SED \ 7418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7420 -e 's:$: $lt_compiler_flag:'` 7421 (eval echo "\"\$as_me:7421: $lt_compile\"" >&5) 7422 (eval "$lt_compile" 2>out/conftest.err) 7423 ac_status=$? 7424 cat out/conftest.err >&5 7425 echo "$as_me:7425: \$? = $ac_status" >&5 7426 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7427 then 7428 # The compiler can only warn and ignore the option if not recognized 7429 # So say no if there are warnings 7430 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7433 lt_cv_prog_compiler_c_o=yes 7434 fi 7435 fi 7436 chmod u+w . 2>&5 7437 $RM conftest* 7438 # SGI C++ compiler will create directory out/ii_files/ for 7439 # template instantiation 7440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7441 $RM out/* && rmdir out 7442 cd .. 7443 $RM -r conftest 7444 $RM conftest* 7445 7446fi 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7448$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7449 7450 7451 7452 7453 7454 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7456$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7457if ${lt_cv_prog_compiler_c_o+:} false; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 lt_cv_prog_compiler_c_o=no 7461 $RM -r conftest 2>/dev/null 7462 mkdir conftest 7463 cd conftest 7464 mkdir out 7465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7466 7467 lt_compiler_flag="-o out/conftest2.$ac_objext" 7468 # Insert the option either (1) after the last *FLAGS variable, or 7469 # (2) before a word containing "conftest.", or (3) at the end. 7470 # Note that $ac_compile itself does not contain backslashes and begins 7471 # with a dollar sign (not a hyphen), so the echo should work correctly. 7472 lt_compile=`echo "$ac_compile" | $SED \ 7473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7475 -e 's:$: $lt_compiler_flag:'` 7476 (eval echo "\"\$as_me:7476: $lt_compile\"" >&5) 7477 (eval "$lt_compile" 2>out/conftest.err) 7478 ac_status=$? 7479 cat out/conftest.err >&5 7480 echo "$as_me:7480: \$? = $ac_status" >&5 7481 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7482 then 7483 # The compiler can only warn and ignore the option if not recognized 7484 # So say no if there are warnings 7485 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7488 lt_cv_prog_compiler_c_o=yes 7489 fi 7490 fi 7491 chmod u+w . 2>&5 7492 $RM conftest* 7493 # SGI C++ compiler will create directory out/ii_files/ for 7494 # template instantiation 7495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7496 $RM out/* && rmdir out 7497 cd .. 7498 $RM -r conftest 7499 $RM conftest* 7500 7501fi 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7503$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7504 7505 7506 7507 7508hard_links="nottested" 7509if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7510 # do not overwrite the value of need_locks provided by the user 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7512$as_echo_n "checking if we can lock with hard links... " >&6; } 7513 hard_links=yes 7514 $RM conftest* 7515 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7516 touch conftest.a 7517 ln conftest.a conftest.b 2>&5 || hard_links=no 7518 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7520$as_echo "$hard_links" >&6; } 7521 if test "$hard_links" = no; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7523$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7524 need_locks=warn 7525 fi 7526else 7527 need_locks=no 7528fi 7529 7530 7531 7532 7533 7534 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7536$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7537 7538 runpath_var= 7539 allow_undefined_flag= 7540 always_export_symbols=no 7541 archive_cmds= 7542 archive_expsym_cmds= 7543 compiler_needs_object=no 7544 enable_shared_with_static_runtimes=no 7545 export_dynamic_flag_spec= 7546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7547 hardcode_automatic=no 7548 hardcode_direct=no 7549 hardcode_direct_absolute=no 7550 hardcode_libdir_flag_spec= 7551 hardcode_libdir_flag_spec_ld= 7552 hardcode_libdir_separator= 7553 hardcode_minus_L=no 7554 hardcode_shlibpath_var=unsupported 7555 inherit_rpath=no 7556 link_all_deplibs=unknown 7557 module_cmds= 7558 module_expsym_cmds= 7559 old_archive_from_new_cmds= 7560 old_archive_from_expsyms_cmds= 7561 thread_safe_flag_spec= 7562 whole_archive_flag_spec= 7563 # include_expsyms should be a list of space-separated symbols to be *always* 7564 # included in the symbol list 7565 include_expsyms= 7566 # exclude_expsyms can be an extended regexp of symbols to exclude 7567 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7569 # as well as any symbol that contains `d'. 7570 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7572 # platforms (ab)use it in PIC code, but their linkers get confused if 7573 # the symbol is explicitly referenced. Since portable code cannot 7574 # rely on this symbol name, it's probably fine to never include it in 7575 # preloaded symbol tables. 7576 # Exclude shared library initialization/finalization symbols. 7577 extract_expsyms_cmds= 7578 7579 case $host_os in 7580 cygwin* | mingw* | pw32* | cegcc*) 7581 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7582 # When not using gcc, we currently assume that we are using 7583 # Microsoft Visual C++. 7584 if test "$GCC" != yes; then 7585 with_gnu_ld=no 7586 fi 7587 ;; 7588 interix*) 7589 # we just hope/assume this is gcc and not c89 (= MSVC++) 7590 with_gnu_ld=yes 7591 ;; 7592 openbsd*) 7593 with_gnu_ld=no 7594 ;; 7595 esac 7596 7597 ld_shlibs=yes 7598 if test "$with_gnu_ld" = yes; then 7599 # If archive_cmds runs LD, not CC, wlarc should be empty 7600 wlarc='${wl}' 7601 7602 # Set some defaults for GNU ld with shared library support. These 7603 # are reset later if shared libraries are not supported. Putting them 7604 # here allows them to be overridden if necessary. 7605 runpath_var=LD_RUN_PATH 7606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7607 export_dynamic_flag_spec='${wl}--export-dynamic' 7608 # ancient GNU ld didn't support --whole-archive et. al. 7609 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7610 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7611 else 7612 whole_archive_flag_spec= 7613 fi 7614 supports_anon_versioning=no 7615 case `$LD -v 2>&1` in 7616 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7617 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7618 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7619 *\ 2.11.*) ;; # other 2.11 versions 7620 *) supports_anon_versioning=yes ;; 7621 esac 7622 7623 # See if GNU ld supports shared libraries. 7624 case $host_os in 7625 aix[3-9]*) 7626 # On AIX/PPC, the GNU linker is very broken 7627 if test "$host_cpu" != ia64; then 7628 ld_shlibs=no 7629 cat <<_LT_EOF 1>&2 7630 7631*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7632*** to be unable to reliably create shared libraries on AIX. 7633*** Therefore, libtool is disabling shared libraries support. If you 7634*** really care for shared libraries, you may want to modify your PATH 7635*** so that a non-GNU linker is found, and then restart. 7636 7637_LT_EOF 7638 fi 7639 ;; 7640 7641 amigaos*) 7642 case $host_cpu in 7643 powerpc) 7644 # see comment about AmigaOS4 .so support 7645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7646 archive_expsym_cmds='' 7647 ;; 7648 m68k) 7649 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)' 7650 hardcode_libdir_flag_spec='-L$libdir' 7651 hardcode_minus_L=yes 7652 ;; 7653 esac 7654 ;; 7655 7656 beos*) 7657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7658 allow_undefined_flag=unsupported 7659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7660 # support --undefined. This deserves some investigation. FIXME 7661 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7662 else 7663 ld_shlibs=no 7664 fi 7665 ;; 7666 7667 cygwin* | mingw* | pw32* | cegcc*) 7668 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7669 # as there is no search path for DLLs. 7670 hardcode_libdir_flag_spec='-L$libdir' 7671 allow_undefined_flag=unsupported 7672 always_export_symbols=no 7673 enable_shared_with_static_runtimes=yes 7674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7675 7676 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7678 # If the export-symbols file already is a .def file (1st line 7679 # is EXPORTS), use it as is; otherwise, prepend... 7680 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7681 cp $export_symbols $output_objdir/$soname.def; 7682 else 7683 echo EXPORTS > $output_objdir/$soname.def; 7684 cat $export_symbols >> $output_objdir/$soname.def; 7685 fi~ 7686 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7687 else 7688 ld_shlibs=no 7689 fi 7690 ;; 7691 7692 interix[3-9]*) 7693 hardcode_direct=no 7694 hardcode_shlibpath_var=no 7695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7696 export_dynamic_flag_spec='${wl}-E' 7697 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7698 # Instead, shared libraries are loaded at an image base (0x10000000 by 7699 # default) and relocated if they conflict, which is a slow very memory 7700 # consuming and fragmenting process. To avoid this, we pick a random, 7701 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7702 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7704 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7705 ;; 7706 7707 gnu* | linux* | tpf* | k*bsd*-gnu) 7708 tmp_diet=no 7709 if test "$host_os" = linux-dietlibc; then 7710 case $cc_basename in 7711 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7712 esac 7713 fi 7714 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7715 && test "$tmp_diet" = no 7716 then 7717 tmp_addflag= 7718 tmp_sharedflag='-shared' 7719 case $cc_basename,$host_cpu in 7720 pgcc*) # Portland Group C compiler 7721 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 7722 tmp_addflag=' $pic_flag' 7723 ;; 7724 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7725 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 7726 tmp_addflag=' $pic_flag -Mnomain' ;; 7727 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7728 tmp_addflag=' -i_dynamic' ;; 7729 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7730 tmp_addflag=' -i_dynamic -nofor_main' ;; 7731 ifc* | ifort*) # Intel Fortran compiler 7732 tmp_addflag=' -nofor_main' ;; 7733 lf95*) # Lahey Fortran 8.1 7734 whole_archive_flag_spec= 7735 tmp_sharedflag='--shared' ;; 7736 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7737 tmp_sharedflag='-qmkshrobj' 7738 tmp_addflag= ;; 7739 esac 7740 case `$CC -V 2>&1 | sed 5q` in 7741 *Sun\ C*) # Sun C 5.9 7742 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 7743 compiler_needs_object=yes 7744 tmp_sharedflag='-G' ;; 7745 *Sun\ F*) # Sun Fortran 8.3 7746 tmp_sharedflag='-G' ;; 7747 esac 7748 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7749 7750 if test "x$supports_anon_versioning" = xyes; then 7751 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7753 echo "local: *; };" >> $output_objdir/$libname.ver~ 7754 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7755 fi 7756 7757 case $cc_basename in 7758 xlf*) 7759 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7760 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7761 hardcode_libdir_flag_spec= 7762 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7763 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7764 if test "x$supports_anon_versioning" = xyes; then 7765 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7767 echo "local: *; };" >> $output_objdir/$libname.ver~ 7768 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7769 fi 7770 ;; 7771 esac 7772 else 7773 ld_shlibs=no 7774 fi 7775 ;; 7776 7777 netbsd*) 7778 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7780 wlarc= 7781 else 7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7784 fi 7785 ;; 7786 7787 solaris*) 7788 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7789 ld_shlibs=no 7790 cat <<_LT_EOF 1>&2 7791 7792*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7793*** create shared libraries on Solaris systems. Therefore, libtool 7794*** is disabling shared libraries support. We urge you to upgrade GNU 7795*** binutils to release 2.9.1 or newer. Another option is to modify 7796*** your PATH or compiler configuration so that the native linker is 7797*** used, and then restart. 7798 7799_LT_EOF 7800 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7803 else 7804 ld_shlibs=no 7805 fi 7806 ;; 7807 7808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7809 case `$LD -v 2>&1` in 7810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7811 ld_shlibs=no 7812 cat <<_LT_EOF 1>&2 7813 7814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7815*** reliably create shared libraries on SCO systems. Therefore, libtool 7816*** is disabling shared libraries support. We urge you to upgrade GNU 7817*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7818*** your PATH or compiler configuration so that the native linker is 7819*** used, and then restart. 7820 7821_LT_EOF 7822 ;; 7823 *) 7824 # For security reasons, it is highly recommended that you always 7825 # use absolute paths for naming shared libraries, and exclude the 7826 # DT_RUNPATH tag from executables and libraries. But doing so 7827 # requires that you compile everything twice, which is a pain. 7828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7832 else 7833 ld_shlibs=no 7834 fi 7835 ;; 7836 esac 7837 ;; 7838 7839 sunos4*) 7840 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7841 wlarc= 7842 hardcode_direct=yes 7843 hardcode_shlibpath_var=no 7844 ;; 7845 7846 *) 7847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7850 else 7851 ld_shlibs=no 7852 fi 7853 ;; 7854 esac 7855 7856 if test "$ld_shlibs" = no; then 7857 runpath_var= 7858 hardcode_libdir_flag_spec= 7859 export_dynamic_flag_spec= 7860 whole_archive_flag_spec= 7861 fi 7862 else 7863 # PORTME fill in a description of your system's linker (not GNU ld) 7864 case $host_os in 7865 aix3*) 7866 allow_undefined_flag=unsupported 7867 always_export_symbols=yes 7868 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' 7869 # Note: this linker hardcodes the directories in LIBPATH if there 7870 # are no directories specified by -L. 7871 hardcode_minus_L=yes 7872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7873 # Neither direct hardcoding nor static linking is supported with a 7874 # broken collect2. 7875 hardcode_direct=unsupported 7876 fi 7877 ;; 7878 7879 aix[4-9]*) 7880 if test "$host_cpu" = ia64; then 7881 # On IA64, the linker does run time linking by default, so we don't 7882 # have to do anything special. 7883 aix_use_runtimelinking=no 7884 exp_sym_flag='-Bexport' 7885 no_entry_flag="" 7886 else 7887 # If we're using GNU nm, then we don't want the "-C" option. 7888 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7889 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7890 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 7891 else 7892 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 7893 fi 7894 aix_use_runtimelinking=no 7895 7896 # Test if we are trying to use run time linking or normal 7897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7898 # need to do runtime linking. 7899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7900 for ld_flag in $LDFLAGS; do 7901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7902 aix_use_runtimelinking=yes 7903 break 7904 fi 7905 done 7906 ;; 7907 esac 7908 7909 exp_sym_flag='-bexport' 7910 no_entry_flag='-bnoentry' 7911 fi 7912 7913 # When large executables or shared objects are built, AIX ld can 7914 # have problems creating the table of contents. If linking a library 7915 # or program results in "error TOC overflow" add -mminimal-toc to 7916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7918 7919 archive_cmds='' 7920 hardcode_direct=yes 7921 hardcode_direct_absolute=yes 7922 hardcode_libdir_separator=':' 7923 link_all_deplibs=yes 7924 file_list_spec='${wl}-f,' 7925 7926 if test "$GCC" = yes; then 7927 case $host_os in aix4.[012]|aix4.[012].*) 7928 # We only want to do this on AIX 4.2 and lower, the check 7929 # below for broken collect2 doesn't work under 4.3+ 7930 collect2name=`${CC} -print-prog-name=collect2` 7931 if test -f "$collect2name" && 7932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7933 then 7934 # We have reworked collect2 7935 : 7936 else 7937 # We have old collect2 7938 hardcode_direct=unsupported 7939 # It fails to find uninstalled libraries when the uninstalled 7940 # path is not listed in the libpath. Setting hardcode_minus_L 7941 # to unsupported forces relinking 7942 hardcode_minus_L=yes 7943 hardcode_libdir_flag_spec='-L$libdir' 7944 hardcode_libdir_separator= 7945 fi 7946 ;; 7947 esac 7948 shared_flag='-shared' 7949 if test "$aix_use_runtimelinking" = yes; then 7950 shared_flag="$shared_flag "'${wl}-G' 7951 fi 7952 else 7953 # not using gcc 7954 if test "$host_cpu" = ia64; then 7955 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7956 # chokes on -Wl,-G. The following line is correct: 7957 shared_flag='-G' 7958 else 7959 if test "$aix_use_runtimelinking" = yes; then 7960 shared_flag='${wl}-G' 7961 else 7962 shared_flag='${wl}-bM:SRE' 7963 fi 7964 fi 7965 fi 7966 7967 export_dynamic_flag_spec='${wl}-bexpall' 7968 # It seems that -bexpall does not export symbols beginning with 7969 # underscore (_), so it is better to generate a list of symbols to export. 7970 always_export_symbols=yes 7971 if test "$aix_use_runtimelinking" = yes; then 7972 # Warning - without using the other runtime loading flags (-brtl), 7973 # -berok will link without error, but may produce a broken library. 7974 allow_undefined_flag='-berok' 7975 # Determine the default libpath from the value encoded in an 7976 # empty executable. 7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979 7980int 7981main () 7982{ 7983 7984 ; 7985 return 0; 7986} 7987_ACEOF 7988if ac_fn_c_try_link "$LINENO"; then : 7989 7990lt_aix_libpath_sed=' 7991 /Import File Strings/,/^$/ { 7992 /^0/ { 7993 s/^0 *\(.*\)$/\1/ 7994 p 7995 } 7996 }' 7997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7998# Check for a 64-bit object if we didn't find anything. 7999if test -z "$aix_libpath"; then 8000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8001fi 8002fi 8003rm -f core conftest.err conftest.$ac_objext \ 8004 conftest$ac_exeext conftest.$ac_ext 8005if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8006 8007 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8008 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8009 else 8010 if test "$host_cpu" = ia64; then 8011 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8012 allow_undefined_flag="-z nodefs" 8013 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 8014 else 8015 # Determine the default libpath from the value encoded in an 8016 # empty executable. 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019 8020int 8021main () 8022{ 8023 8024 ; 8025 return 0; 8026} 8027_ACEOF 8028if ac_fn_c_try_link "$LINENO"; then : 8029 8030lt_aix_libpath_sed=' 8031 /Import File Strings/,/^$/ { 8032 /^0/ { 8033 s/^0 *\(.*\)$/\1/ 8034 p 8035 } 8036 }' 8037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8038# Check for a 64-bit object if we didn't find anything. 8039if test -z "$aix_libpath"; then 8040 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8041fi 8042fi 8043rm -f core conftest.err conftest.$ac_objext \ 8044 conftest$ac_exeext conftest.$ac_ext 8045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8046 8047 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8048 # Warning - without using the other run time loading flags, 8049 # -berok will link without error, but may produce a broken library. 8050 no_undefined_flag=' ${wl}-bernotok' 8051 allow_undefined_flag=' ${wl}-berok' 8052 # Exported symbols can be pulled into shared objects from archives 8053 whole_archive_flag_spec='$convenience' 8054 archive_cmds_need_lc=yes 8055 # This is similar to how AIX traditionally builds its shared libraries. 8056 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8057 fi 8058 fi 8059 ;; 8060 8061 amigaos*) 8062 case $host_cpu in 8063 powerpc) 8064 # see comment about AmigaOS4 .so support 8065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8066 archive_expsym_cmds='' 8067 ;; 8068 m68k) 8069 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)' 8070 hardcode_libdir_flag_spec='-L$libdir' 8071 hardcode_minus_L=yes 8072 ;; 8073 esac 8074 ;; 8075 8076 bsdi[45]*) 8077 export_dynamic_flag_spec=-rdynamic 8078 ;; 8079 8080 cygwin* | mingw* | pw32* | cegcc*) 8081 # When not using gcc, we currently assume that we are using 8082 # Microsoft Visual C++. 8083 # hardcode_libdir_flag_spec is actually meaningless, as there is 8084 # no search path for DLLs. 8085 hardcode_libdir_flag_spec=' ' 8086 allow_undefined_flag=unsupported 8087 # Tell ltmain to make .lib files, not .a files. 8088 libext=lib 8089 # Tell ltmain to make .dll files, not .so files. 8090 shrext_cmds=".dll" 8091 # FIXME: Setting linknames here is a bad hack. 8092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8093 # The linker will automatically build a .lib file if we build a DLL. 8094 old_archive_from_new_cmds='true' 8095 # FIXME: Should let the user specify the lib program. 8096 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8097 fix_srcfile_path='`cygpath -w "$srcfile"`' 8098 enable_shared_with_static_runtimes=yes 8099 ;; 8100 8101 darwin* | rhapsody*) 8102 8103 8104 archive_cmds_need_lc=no 8105 hardcode_direct=no 8106 hardcode_automatic=yes 8107 hardcode_shlibpath_var=unsupported 8108 whole_archive_flag_spec='' 8109 link_all_deplibs=yes 8110 allow_undefined_flag="$_lt_dar_allow_undefined" 8111 case $cc_basename in 8112 ifort*) _lt_dar_can_shared=yes ;; 8113 *) _lt_dar_can_shared=$GCC ;; 8114 esac 8115 if test "$_lt_dar_can_shared" = "yes"; then 8116 output_verbose_link_cmd=echo 8117 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8118 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8119 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8120 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8121 8122 else 8123 ld_shlibs=no 8124 fi 8125 8126 ;; 8127 8128 dgux*) 8129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8130 hardcode_libdir_flag_spec='-L$libdir' 8131 hardcode_shlibpath_var=no 8132 ;; 8133 8134 freebsd1*) 8135 ld_shlibs=no 8136 ;; 8137 8138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8139 # support. Future versions do this automatically, but an explicit c++rt0.o 8140 # does not break anything, and helps significantly (at the cost of a little 8141 # extra space). 8142 freebsd2.2*) 8143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8144 hardcode_libdir_flag_spec='-R$libdir' 8145 hardcode_direct=yes 8146 hardcode_shlibpath_var=no 8147 ;; 8148 8149 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8150 freebsd2*) 8151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8152 hardcode_direct=yes 8153 hardcode_minus_L=yes 8154 hardcode_shlibpath_var=no 8155 ;; 8156 8157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8158 freebsd* | dragonfly*) 8159 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8160 hardcode_libdir_flag_spec='-R$libdir' 8161 hardcode_direct=yes 8162 hardcode_shlibpath_var=no 8163 ;; 8164 8165 hpux9*) 8166 if test "$GCC" = yes; then 8167 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8168 else 8169 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' 8170 fi 8171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8172 hardcode_libdir_separator=: 8173 hardcode_direct=yes 8174 8175 # hardcode_minus_L: Not really in the search PATH, 8176 # but as the default location of the library. 8177 hardcode_minus_L=yes 8178 export_dynamic_flag_spec='${wl}-E' 8179 ;; 8180 8181 hpux10*) 8182 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8183 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8184 else 8185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8186 fi 8187 if test "$with_gnu_ld" = no; then 8188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8189 hardcode_libdir_flag_spec_ld='+b $libdir' 8190 hardcode_libdir_separator=: 8191 hardcode_direct=yes 8192 hardcode_direct_absolute=yes 8193 export_dynamic_flag_spec='${wl}-E' 8194 # hardcode_minus_L: Not really in the search PATH, 8195 # but as the default location of the library. 8196 hardcode_minus_L=yes 8197 fi 8198 ;; 8199 8200 hpux11*) 8201 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8202 case $host_cpu in 8203 hppa*64*) 8204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8205 ;; 8206 ia64*) 8207 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8208 ;; 8209 *) 8210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8211 ;; 8212 esac 8213 else 8214 case $host_cpu in 8215 hppa*64*) 8216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8217 ;; 8218 ia64*) 8219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8220 ;; 8221 *) 8222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8223 ;; 8224 esac 8225 fi 8226 if test "$with_gnu_ld" = no; then 8227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8228 hardcode_libdir_separator=: 8229 8230 case $host_cpu in 8231 hppa*64*|ia64*) 8232 hardcode_direct=no 8233 hardcode_shlibpath_var=no 8234 ;; 8235 *) 8236 hardcode_direct=yes 8237 hardcode_direct_absolute=yes 8238 export_dynamic_flag_spec='${wl}-E' 8239 8240 # hardcode_minus_L: Not really in the search PATH, 8241 # but as the default location of the library. 8242 hardcode_minus_L=yes 8243 ;; 8244 esac 8245 fi 8246 ;; 8247 8248 irix5* | irix6* | nonstopux*) 8249 if test "$GCC" = yes; then 8250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8251 # Try to use the -exported_symbol ld option, if it does not 8252 # work, assume that -exports_file does not work either and 8253 # implicitly export all symbols. 8254 save_LDFLAGS="$LDFLAGS" 8255 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258int foo(void) {} 8259_ACEOF 8260if ac_fn_c_try_link "$LINENO"; then : 8261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8262 8263fi 8264rm -f core conftest.err conftest.$ac_objext \ 8265 conftest$ac_exeext conftest.$ac_ext 8266 LDFLAGS="$save_LDFLAGS" 8267 else 8268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8269 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8270 fi 8271 archive_cmds_need_lc='no' 8272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8273 hardcode_libdir_separator=: 8274 inherit_rpath=yes 8275 link_all_deplibs=yes 8276 ;; 8277 8278 netbsd*) 8279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8281 else 8282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8283 fi 8284 hardcode_libdir_flag_spec='-R$libdir' 8285 hardcode_direct=yes 8286 hardcode_shlibpath_var=no 8287 ;; 8288 8289 newsos6) 8290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8291 hardcode_direct=yes 8292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8293 hardcode_libdir_separator=: 8294 hardcode_shlibpath_var=no 8295 ;; 8296 8297 *nto* | *qnx*) 8298 ;; 8299 8300 openbsd*) 8301 if test -f /usr/libexec/ld.so; then 8302 hardcode_direct=yes 8303 hardcode_shlibpath_var=no 8304 hardcode_direct_absolute=yes 8305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8309 export_dynamic_flag_spec='${wl}-E' 8310 else 8311 case $host_os in 8312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8314 hardcode_libdir_flag_spec='-R$libdir' 8315 ;; 8316 *) 8317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8319 ;; 8320 esac 8321 fi 8322 else 8323 ld_shlibs=no 8324 fi 8325 ;; 8326 8327 os2*) 8328 hardcode_libdir_flag_spec='-L$libdir' 8329 hardcode_minus_L=yes 8330 allow_undefined_flag=unsupported 8331 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' 8332 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8333 ;; 8334 8335 osf3*) 8336 if test "$GCC" = yes; then 8337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8338 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8339 else 8340 allow_undefined_flag=' -expect_unresolved \*' 8341 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8342 fi 8343 archive_cmds_need_lc='no' 8344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8345 hardcode_libdir_separator=: 8346 ;; 8347 8348 osf4* | osf5*) # as osf3* with the addition of -msym flag 8349 if test "$GCC" = yes; then 8350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8351 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8353 else 8354 allow_undefined_flag=' -expect_unresolved \*' 8355 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8356 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 8357 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8358 8359 # Both c and cxx compiler support -rpath directly 8360 hardcode_libdir_flag_spec='-rpath $libdir' 8361 fi 8362 archive_cmds_need_lc='no' 8363 hardcode_libdir_separator=: 8364 ;; 8365 8366 solaris*) 8367 no_undefined_flag=' -z defs' 8368 if test "$GCC" = yes; then 8369 wlarc='${wl}' 8370 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8371 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8372 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8373 else 8374 case `$CC -V 2>&1` in 8375 *"Compilers 5.0"*) 8376 wlarc='' 8377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8380 ;; 8381 *) 8382 wlarc='${wl}' 8383 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8385 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8386 ;; 8387 esac 8388 fi 8389 hardcode_libdir_flag_spec='-R$libdir' 8390 hardcode_shlibpath_var=no 8391 case $host_os in 8392 solaris2.[0-5] | solaris2.[0-5].*) ;; 8393 *) 8394 # The compiler driver will combine and reorder linker options, 8395 # but understands `-z linker_flag'. GCC discards it without `$wl', 8396 # but is careful enough not to reorder. 8397 # Supported since Solaris 2.6 (maybe 2.5.1?) 8398 if test "$GCC" = yes; then 8399 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8400 else 8401 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8402 fi 8403 ;; 8404 esac 8405 link_all_deplibs=yes 8406 ;; 8407 8408 sunos4*) 8409 if test "x$host_vendor" = xsequent; then 8410 # Use $CC to link under sequent, because it throws in some extra .o 8411 # files that make .init and .fini sections work. 8412 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8413 else 8414 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8415 fi 8416 hardcode_libdir_flag_spec='-L$libdir' 8417 hardcode_direct=yes 8418 hardcode_minus_L=yes 8419 hardcode_shlibpath_var=no 8420 ;; 8421 8422 sysv4) 8423 case $host_vendor in 8424 sni) 8425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8426 hardcode_direct=yes # is this really true??? 8427 ;; 8428 siemens) 8429 ## LD is ld it makes a PLAMLIB 8430 ## CC just makes a GrossModule. 8431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8432 reload_cmds='$CC -r -o $output$reload_objs' 8433 hardcode_direct=no 8434 ;; 8435 motorola) 8436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8437 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8438 ;; 8439 esac 8440 runpath_var='LD_RUN_PATH' 8441 hardcode_shlibpath_var=no 8442 ;; 8443 8444 sysv4.3*) 8445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8446 hardcode_shlibpath_var=no 8447 export_dynamic_flag_spec='-Bexport' 8448 ;; 8449 8450 sysv4*MP*) 8451 if test -d /usr/nec; then 8452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8453 hardcode_shlibpath_var=no 8454 runpath_var=LD_RUN_PATH 8455 hardcode_runpath_var=yes 8456 ld_shlibs=yes 8457 fi 8458 ;; 8459 8460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8461 no_undefined_flag='${wl}-z,text' 8462 archive_cmds_need_lc=no 8463 hardcode_shlibpath_var=no 8464 runpath_var='LD_RUN_PATH' 8465 8466 if test "$GCC" = yes; then 8467 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8468 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8469 else 8470 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8471 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8472 fi 8473 ;; 8474 8475 sysv5* | sco3.2v5* | sco5v6*) 8476 # Note: We can NOT use -z defs as we might desire, because we do not 8477 # link with -lc, and that would cause any symbols used from libc to 8478 # always be unresolved, which means just about no library would 8479 # ever link correctly. If we're not using GNU ld we use -z text 8480 # though, which does catch some bad symbols but isn't as heavy-handed 8481 # as -z defs. 8482 no_undefined_flag='${wl}-z,text' 8483 allow_undefined_flag='${wl}-z,nodefs' 8484 archive_cmds_need_lc=no 8485 hardcode_shlibpath_var=no 8486 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8487 hardcode_libdir_separator=':' 8488 link_all_deplibs=yes 8489 export_dynamic_flag_spec='${wl}-Bexport' 8490 runpath_var='LD_RUN_PATH' 8491 8492 if test "$GCC" = yes; then 8493 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8494 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8495 else 8496 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8497 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8498 fi 8499 ;; 8500 8501 uts4*) 8502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8503 hardcode_libdir_flag_spec='-L$libdir' 8504 hardcode_shlibpath_var=no 8505 ;; 8506 8507 *) 8508 ld_shlibs=no 8509 ;; 8510 esac 8511 8512 if test x$host_vendor = xsni; then 8513 case $host in 8514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8515 export_dynamic_flag_spec='${wl}-Blargedynsym' 8516 ;; 8517 esac 8518 fi 8519 fi 8520 8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8522$as_echo "$ld_shlibs" >&6; } 8523test "$ld_shlibs" = no && can_build_shared=no 8524 8525with_gnu_ld=$with_gnu_ld 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541# 8542# Do we need to explicitly link libc? 8543# 8544case "x$archive_cmds_need_lc" in 8545x|xyes) 8546 # Assume -lc should be added 8547 archive_cmds_need_lc=yes 8548 8549 if test "$enable_shared" = yes && test "$GCC" = yes; then 8550 case $archive_cmds in 8551 *'~'*) 8552 # FIXME: we may have to deal with multi-command sequences. 8553 ;; 8554 '$CC '*) 8555 # Test whether the compiler implicitly links with -lc since on some 8556 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8557 # to ld, don't add -lc before -lgcc. 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8559$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8560 $RM conftest* 8561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8562 8563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8564 (eval $ac_compile) 2>&5 8565 ac_status=$? 8566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8567 test $ac_status = 0; } 2>conftest.err; then 8568 soname=conftest 8569 lib=conftest 8570 libobjs=conftest.$ac_objext 8571 deplibs= 8572 wl=$lt_prog_compiler_wl 8573 pic_flag=$lt_prog_compiler_pic 8574 compiler_flags=-v 8575 linker_flags=-v 8576 verstring= 8577 output_objdir=. 8578 libname=conftest 8579 lt_save_allow_undefined_flag=$allow_undefined_flag 8580 allow_undefined_flag= 8581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8582 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8583 ac_status=$? 8584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8585 test $ac_status = 0; } 8586 then 8587 archive_cmds_need_lc=no 8588 else 8589 archive_cmds_need_lc=yes 8590 fi 8591 allow_undefined_flag=$lt_save_allow_undefined_flag 8592 else 8593 cat conftest.err 1>&5 8594 fi 8595 $RM conftest* 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8597$as_echo "$archive_cmds_need_lc" >&6; } 8598 ;; 8599 esac 8600 fi 8601 ;; 8602esac 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8761$as_echo_n "checking dynamic linker characteristics... " >&6; } 8762 8763if test "$GCC" = yes; then 8764 case $host_os in 8765 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8766 *) lt_awk_arg="/^libraries:/" ;; 8767 esac 8768 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8769 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8770 # if the path contains ";" then we assume it to be the separator 8771 # otherwise default to the standard path separator (i.e. ":") - it is 8772 # assumed that no part of a normal pathname contains ";" but that should 8773 # okay in the real world where ";" in dirpaths is itself problematic. 8774 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8775 else 8776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8777 fi 8778 # Ok, now we have the path, separated by spaces, we can step through it 8779 # and add multilib dir if necessary. 8780 lt_tmp_lt_search_path_spec= 8781 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8782 for lt_sys_path in $lt_search_path_spec; do 8783 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8784 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8785 else 8786 test -d "$lt_sys_path" && \ 8787 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8788 fi 8789 done 8790 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8791BEGIN {RS=" "; FS="/|\n";} { 8792 lt_foo=""; 8793 lt_count=0; 8794 for (lt_i = NF; lt_i > 0; lt_i--) { 8795 if ($lt_i != "" && $lt_i != ".") { 8796 if ($lt_i == "..") { 8797 lt_count++; 8798 } else { 8799 if (lt_count == 0) { 8800 lt_foo="/" $lt_i lt_foo; 8801 } else { 8802 lt_count--; 8803 } 8804 } 8805 } 8806 } 8807 if (lt_foo != "") { lt_freq[lt_foo]++; } 8808 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8809}'` 8810 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8811else 8812 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8813fi 8814library_names_spec= 8815libname_spec='lib$name' 8816soname_spec= 8817shrext_cmds=".so" 8818postinstall_cmds= 8819postuninstall_cmds= 8820finish_cmds= 8821finish_eval= 8822shlibpath_var= 8823shlibpath_overrides_runpath=unknown 8824version_type=none 8825dynamic_linker="$host_os ld.so" 8826sys_lib_dlsearch_path_spec="/lib /usr/lib" 8827need_lib_prefix=unknown 8828hardcode_into_libs=no 8829 8830# when you set need_version to no, make sure it does not cause -set_version 8831# flags to be left without arguments 8832need_version=unknown 8833 8834case $host_os in 8835aix3*) 8836 version_type=linux 8837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8838 shlibpath_var=LIBPATH 8839 8840 # AIX 3 has no versioning support, so we append a major version to the name. 8841 soname_spec='${libname}${release}${shared_ext}$major' 8842 ;; 8843 8844aix[4-9]*) 8845 version_type=linux 8846 need_lib_prefix=no 8847 need_version=no 8848 hardcode_into_libs=yes 8849 if test "$host_cpu" = ia64; then 8850 # AIX 5 supports IA64 8851 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8852 shlibpath_var=LD_LIBRARY_PATH 8853 else 8854 # With GCC up to 2.95.x, collect2 would create an import file 8855 # for dependence libraries. The import file would start with 8856 # the line `#! .'. This would cause the generated library to 8857 # depend on `.', always an invalid library. This was fixed in 8858 # development snapshots of GCC prior to 3.0. 8859 case $host_os in 8860 aix4 | aix4.[01] | aix4.[01].*) 8861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8862 echo ' yes ' 8863 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8864 : 8865 else 8866 can_build_shared=no 8867 fi 8868 ;; 8869 esac 8870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8871 # soname into executable. Probably we can add versioning support to 8872 # collect2, so additional links can be useful in future. 8873 if test "$aix_use_runtimelinking" = yes; then 8874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8875 # instead of lib<name>.a to let people know that these are not 8876 # typical AIX shared libraries. 8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8878 else 8879 # We preserve .a as extension for shared libraries through AIX4.2 8880 # and later when we are not doing run time linking. 8881 library_names_spec='${libname}${release}.a $libname.a' 8882 soname_spec='${libname}${release}${shared_ext}$major' 8883 fi 8884 shlibpath_var=LIBPATH 8885 fi 8886 ;; 8887 8888amigaos*) 8889 case $host_cpu in 8890 powerpc) 8891 # Since July 2007 AmigaOS4 officially supports .so libraries. 8892 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8894 ;; 8895 m68k) 8896 library_names_spec='$libname.ixlibrary $libname.a' 8897 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8898 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' 8899 ;; 8900 esac 8901 ;; 8902 8903beos*) 8904 library_names_spec='${libname}${shared_ext}' 8905 dynamic_linker="$host_os ld.so" 8906 shlibpath_var=LIBRARY_PATH 8907 ;; 8908 8909bsdi[45]*) 8910 version_type=linux 8911 need_version=no 8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8913 soname_spec='${libname}${release}${shared_ext}$major' 8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8915 shlibpath_var=LD_LIBRARY_PATH 8916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8918 # the default ld.so.conf also contains /usr/contrib/lib and 8919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8920 # libtool to hard-code these into programs 8921 ;; 8922 8923cygwin* | mingw* | pw32* | cegcc*) 8924 version_type=windows 8925 shrext_cmds=".dll" 8926 need_version=no 8927 need_lib_prefix=no 8928 8929 case $GCC,$host_os in 8930 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 8931 library_names_spec='$libname.dll.a' 8932 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8933 postinstall_cmds='base_file=`basename \${file}`~ 8934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8935 dldir=$destdir/`dirname \$dlpath`~ 8936 test -d \$dldir || mkdir -p \$dldir~ 8937 $install_prog $dir/$dlname \$dldir/$dlname~ 8938 chmod a+x \$dldir/$dlname~ 8939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8941 fi' 8942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8943 dlpath=$dir/\$dldll~ 8944 $RM \$dlpath' 8945 shlibpath_overrides_runpath=yes 8946 8947 case $host_os in 8948 cygwin*) 8949 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8950 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 8951 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 8952 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8953 ;; 8954 mingw* | cegcc*) 8955 # MinGW DLLs use traditional 'lib' prefix 8956 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 8957 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 8958 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8959 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8960 # It is most probably a Windows format PATH printed by 8961 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8962 # path with ; separators, and with drive letters. We can handle the 8963 # drive letters (cygwin fileutils understands them), so leave them, 8964 # especially as we might pass files found there to a mingw objdump, 8965 # which wouldn't understand a cygwinified path. Ahh. 8966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8967 else 8968 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8969 fi 8970 ;; 8971 pw32*) 8972 # pw32 DLLs use 'pw' prefix rather than 'lib' 8973 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8974 ;; 8975 esac 8976 ;; 8977 8978 *) 8979 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8980 ;; 8981 esac 8982 dynamic_linker='Win32 ld.exe' 8983 # FIXME: first we should search . and the directory the executable is in 8984 shlibpath_var=PATH 8985 ;; 8986 8987darwin* | rhapsody*) 8988 dynamic_linker="$host_os dyld" 8989 version_type=darwin 8990 need_lib_prefix=no 8991 need_version=no 8992 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8993 soname_spec='${libname}${release}${major}$shared_ext' 8994 shlibpath_overrides_runpath=yes 8995 shlibpath_var=DYLD_LIBRARY_PATH 8996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8997 8998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9000 ;; 9001 9002dgux*) 9003 version_type=linux 9004 need_lib_prefix=no 9005 need_version=no 9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9007 soname_spec='${libname}${release}${shared_ext}$major' 9008 shlibpath_var=LD_LIBRARY_PATH 9009 ;; 9010 9011freebsd1*) 9012 dynamic_linker=no 9013 ;; 9014 9015freebsd* | dragonfly*) 9016 # DragonFly does not have aout. When/if they implement a new 9017 # versioning mechanism, adjust this. 9018 if test -x /usr/bin/objformat; then 9019 objformat=`/usr/bin/objformat` 9020 else 9021 case $host_os in 9022 freebsd[123]*) objformat=aout ;; 9023 *) objformat=elf ;; 9024 esac 9025 fi 9026 version_type=freebsd-$objformat 9027 case $version_type in 9028 freebsd-elf*) 9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9030 need_version=no 9031 need_lib_prefix=no 9032 ;; 9033 freebsd-*) 9034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9035 need_version=yes 9036 ;; 9037 esac 9038 shlibpath_var=LD_LIBRARY_PATH 9039 case $host_os in 9040 freebsd2*) 9041 shlibpath_overrides_runpath=yes 9042 ;; 9043 freebsd3.[01]* | freebsdelf3.[01]*) 9044 shlibpath_overrides_runpath=yes 9045 hardcode_into_libs=yes 9046 ;; 9047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9049 shlibpath_overrides_runpath=no 9050 hardcode_into_libs=yes 9051 ;; 9052 *) # from 4.6 on, and DragonFly 9053 shlibpath_overrides_runpath=yes 9054 hardcode_into_libs=yes 9055 ;; 9056 esac 9057 ;; 9058 9059gnu*) 9060 version_type=linux 9061 need_lib_prefix=no 9062 need_version=no 9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9064 soname_spec='${libname}${release}${shared_ext}$major' 9065 shlibpath_var=LD_LIBRARY_PATH 9066 hardcode_into_libs=yes 9067 ;; 9068 9069hpux9* | hpux10* | hpux11*) 9070 # Give a soname corresponding to the major version so that dld.sl refuses to 9071 # link against other versions. 9072 version_type=sunos 9073 need_lib_prefix=no 9074 need_version=no 9075 case $host_cpu in 9076 ia64*) 9077 shrext_cmds='.so' 9078 hardcode_into_libs=yes 9079 dynamic_linker="$host_os dld.so" 9080 shlibpath_var=LD_LIBRARY_PATH 9081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9083 soname_spec='${libname}${release}${shared_ext}$major' 9084 if test "X$HPUX_IA64_MODE" = X32; then 9085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9086 else 9087 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9088 fi 9089 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9090 ;; 9091 hppa*64*) 9092 shrext_cmds='.sl' 9093 hardcode_into_libs=yes 9094 dynamic_linker="$host_os dld.sl" 9095 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9096 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9098 soname_spec='${libname}${release}${shared_ext}$major' 9099 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9101 ;; 9102 *) 9103 shrext_cmds='.sl' 9104 dynamic_linker="$host_os dld.sl" 9105 shlibpath_var=SHLIB_PATH 9106 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9108 soname_spec='${libname}${release}${shared_ext}$major' 9109 ;; 9110 esac 9111 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9112 postinstall_cmds='chmod 555 $lib' 9113 ;; 9114 9115interix[3-9]*) 9116 version_type=linux 9117 need_lib_prefix=no 9118 need_version=no 9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9120 soname_spec='${libname}${release}${shared_ext}$major' 9121 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9122 shlibpath_var=LD_LIBRARY_PATH 9123 shlibpath_overrides_runpath=no 9124 hardcode_into_libs=yes 9125 ;; 9126 9127irix5* | irix6* | nonstopux*) 9128 case $host_os in 9129 nonstopux*) version_type=nonstopux ;; 9130 *) 9131 if test "$lt_cv_prog_gnu_ld" = yes; then 9132 version_type=linux 9133 else 9134 version_type=irix 9135 fi ;; 9136 esac 9137 need_lib_prefix=no 9138 need_version=no 9139 soname_spec='${libname}${release}${shared_ext}$major' 9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9141 case $host_os in 9142 irix5* | nonstopux*) 9143 libsuff= shlibsuff= 9144 ;; 9145 *) 9146 case $LD in # libtool.m4 will add one of these switches to LD 9147 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9148 libsuff= shlibsuff= libmagic=32-bit;; 9149 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9150 libsuff=32 shlibsuff=N32 libmagic=N32;; 9151 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9152 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9153 *) libsuff= shlibsuff= libmagic=never-match;; 9154 esac 9155 ;; 9156 esac 9157 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9158 shlibpath_overrides_runpath=no 9159 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9160 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9161 hardcode_into_libs=yes 9162 ;; 9163 9164# No shared lib support for Linux oldld, aout, or coff. 9165linux*oldld* | linux*aout* | linux*coff*) 9166 dynamic_linker=no 9167 ;; 9168 9169# This must be Linux ELF. 9170linux* | k*bsd*-gnu) 9171 version_type=linux 9172 need_lib_prefix=no 9173 need_version=no 9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9175 soname_spec='${libname}${release}${shared_ext}$major' 9176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9177 shlibpath_var=LD_LIBRARY_PATH 9178 shlibpath_overrides_runpath=no 9179 # Some binutils ld are patched to set DT_RUNPATH 9180 save_LDFLAGS=$LDFLAGS 9181 save_libdir=$libdir 9182 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9183 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186 9187int 9188main () 9189{ 9190 9191 ; 9192 return 0; 9193} 9194_ACEOF 9195if ac_fn_c_try_link "$LINENO"; then : 9196 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9197 shlibpath_overrides_runpath=yes 9198fi 9199fi 9200rm -f core conftest.err conftest.$ac_objext \ 9201 conftest$ac_exeext conftest.$ac_ext 9202 LDFLAGS=$save_LDFLAGS 9203 libdir=$save_libdir 9204 9205 # This implies no fast_install, which is unacceptable. 9206 # Some rework will be needed to allow for fast_install 9207 # before this can be enabled. 9208 hardcode_into_libs=yes 9209 9210 # Append ld.so.conf contents to the search path 9211 if test -f /etc/ld.so.conf; then 9212 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9213 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9214 fi 9215 9216 # We used to test for /lib/ld.so.1 and disable shared libraries on 9217 # powerpc, because MkLinux only supported shared libraries with the 9218 # GNU dynamic linker. Since this was broken with cross compilers, 9219 # most powerpc-linux boxes support dynamic linking these days and 9220 # people can always --disable-shared, the test was removed, and we 9221 # assume the GNU/Linux dynamic linker is in use. 9222 dynamic_linker='GNU/Linux ld.so' 9223 ;; 9224 9225netbsd*) 9226 version_type=sunos 9227 need_lib_prefix=no 9228 need_version=no 9229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9232 dynamic_linker='NetBSD (a.out) ld.so' 9233 else 9234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9235 soname_spec='${libname}${release}${shared_ext}$major' 9236 dynamic_linker='NetBSD ld.elf_so' 9237 fi 9238 shlibpath_var=LD_LIBRARY_PATH 9239 shlibpath_overrides_runpath=yes 9240 hardcode_into_libs=yes 9241 ;; 9242 9243newsos6) 9244 version_type=linux 9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9246 shlibpath_var=LD_LIBRARY_PATH 9247 shlibpath_overrides_runpath=yes 9248 ;; 9249 9250*nto* | *qnx*) 9251 version_type=qnx 9252 need_lib_prefix=no 9253 need_version=no 9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9255 soname_spec='${libname}${release}${shared_ext}$major' 9256 shlibpath_var=LD_LIBRARY_PATH 9257 shlibpath_overrides_runpath=no 9258 hardcode_into_libs=yes 9259 dynamic_linker='ldqnx.so' 9260 ;; 9261 9262openbsd*) 9263 version_type=sunos 9264 sys_lib_dlsearch_path_spec="/usr/lib" 9265 need_lib_prefix=no 9266 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9267 case $host_os in 9268 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9269 *) need_version=no ;; 9270 esac 9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9273 shlibpath_var=LD_LIBRARY_PATH 9274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9275 case $host_os in 9276 openbsd2.[89] | openbsd2.[89].*) 9277 shlibpath_overrides_runpath=no 9278 ;; 9279 *) 9280 shlibpath_overrides_runpath=yes 9281 ;; 9282 esac 9283 else 9284 shlibpath_overrides_runpath=yes 9285 fi 9286 ;; 9287 9288os2*) 9289 libname_spec='$name' 9290 shrext_cmds=".dll" 9291 need_lib_prefix=no 9292 library_names_spec='$libname${shared_ext} $libname.a' 9293 dynamic_linker='OS/2 ld.exe' 9294 shlibpath_var=LIBPATH 9295 ;; 9296 9297osf3* | osf4* | osf5*) 9298 version_type=osf 9299 need_lib_prefix=no 9300 need_version=no 9301 soname_spec='${libname}${release}${shared_ext}$major' 9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9303 shlibpath_var=LD_LIBRARY_PATH 9304 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9305 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9306 ;; 9307 9308rdos*) 9309 dynamic_linker=no 9310 ;; 9311 9312solaris*) 9313 version_type=linux 9314 need_lib_prefix=no 9315 need_version=no 9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9317 soname_spec='${libname}${release}${shared_ext}$major' 9318 shlibpath_var=LD_LIBRARY_PATH 9319 shlibpath_overrides_runpath=yes 9320 hardcode_into_libs=yes 9321 # ldd complains unless libraries are executable 9322 postinstall_cmds='chmod +x $lib' 9323 ;; 9324 9325sunos4*) 9326 version_type=sunos 9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9329 shlibpath_var=LD_LIBRARY_PATH 9330 shlibpath_overrides_runpath=yes 9331 if test "$with_gnu_ld" = yes; then 9332 need_lib_prefix=no 9333 fi 9334 need_version=yes 9335 ;; 9336 9337sysv4 | sysv4.3*) 9338 version_type=linux 9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9340 soname_spec='${libname}${release}${shared_ext}$major' 9341 shlibpath_var=LD_LIBRARY_PATH 9342 case $host_vendor in 9343 sni) 9344 shlibpath_overrides_runpath=no 9345 need_lib_prefix=no 9346 runpath_var=LD_RUN_PATH 9347 ;; 9348 siemens) 9349 need_lib_prefix=no 9350 ;; 9351 motorola) 9352 need_lib_prefix=no 9353 need_version=no 9354 shlibpath_overrides_runpath=no 9355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9356 ;; 9357 esac 9358 ;; 9359 9360sysv4*MP*) 9361 if test -d /usr/nec ;then 9362 version_type=linux 9363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9364 soname_spec='$libname${shared_ext}.$major' 9365 shlibpath_var=LD_LIBRARY_PATH 9366 fi 9367 ;; 9368 9369sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9370 version_type=freebsd-elf 9371 need_lib_prefix=no 9372 need_version=no 9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9374 soname_spec='${libname}${release}${shared_ext}$major' 9375 shlibpath_var=LD_LIBRARY_PATH 9376 shlibpath_overrides_runpath=yes 9377 hardcode_into_libs=yes 9378 if test "$with_gnu_ld" = yes; then 9379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9380 else 9381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9382 case $host_os in 9383 sco3.2v5*) 9384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9385 ;; 9386 esac 9387 fi 9388 sys_lib_dlsearch_path_spec='/usr/lib' 9389 ;; 9390 9391tpf*) 9392 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9393 version_type=linux 9394 need_lib_prefix=no 9395 need_version=no 9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9397 shlibpath_var=LD_LIBRARY_PATH 9398 shlibpath_overrides_runpath=no 9399 hardcode_into_libs=yes 9400 ;; 9401 9402uts4*) 9403 version_type=linux 9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9405 soname_spec='${libname}${release}${shared_ext}$major' 9406 shlibpath_var=LD_LIBRARY_PATH 9407 ;; 9408 9409*) 9410 dynamic_linker=no 9411 ;; 9412esac 9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9414$as_echo "$dynamic_linker" >&6; } 9415test "$dynamic_linker" = no && can_build_shared=no 9416 9417variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9418if test "$GCC" = yes; then 9419 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9420fi 9421 9422if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9423 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9424fi 9425if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9426 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9427fi 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9516$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9517hardcode_action= 9518if test -n "$hardcode_libdir_flag_spec" || 9519 test -n "$runpath_var" || 9520 test "X$hardcode_automatic" = "Xyes" ; then 9521 9522 # We can hardcode non-existent directories. 9523 if test "$hardcode_direct" != no && 9524 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9525 # have to relink, otherwise we might link with an installed library 9526 # when we should be linking with a yet-to-be-installed one 9527 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9528 test "$hardcode_minus_L" != no; then 9529 # Linking always hardcodes the temporary library directory. 9530 hardcode_action=relink 9531 else 9532 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9533 hardcode_action=immediate 9534 fi 9535else 9536 # We cannot hardcode anything, or else we can only hardcode existing 9537 # directories. 9538 hardcode_action=unsupported 9539fi 9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9541$as_echo "$hardcode_action" >&6; } 9542 9543if test "$hardcode_action" = relink || 9544 test "$inherit_rpath" = yes; then 9545 # Fast installation is not supported 9546 enable_fast_install=no 9547elif test "$shlibpath_overrides_runpath" = yes || 9548 test "$enable_shared" = no; then 9549 # Fast installation is not necessary 9550 enable_fast_install=needless 9551fi 9552 9553 9554 9555 9556 9557 9558 if test "x$enable_dlopen" != xyes; then 9559 enable_dlopen=unknown 9560 enable_dlopen_self=unknown 9561 enable_dlopen_self_static=unknown 9562else 9563 lt_cv_dlopen=no 9564 lt_cv_dlopen_libs= 9565 9566 case $host_os in 9567 beos*) 9568 lt_cv_dlopen="load_add_on" 9569 lt_cv_dlopen_libs= 9570 lt_cv_dlopen_self=yes 9571 ;; 9572 9573 mingw* | pw32* | cegcc*) 9574 lt_cv_dlopen="LoadLibrary" 9575 lt_cv_dlopen_libs= 9576 ;; 9577 9578 cygwin*) 9579 lt_cv_dlopen="dlopen" 9580 lt_cv_dlopen_libs= 9581 ;; 9582 9583 darwin*) 9584 # if libdl is installed we need to link against it 9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9586$as_echo_n "checking for dlopen in -ldl... " >&6; } 9587if ${ac_cv_lib_dl_dlopen+:} false; then : 9588 $as_echo_n "(cached) " >&6 9589else 9590 ac_check_lib_save_LIBS=$LIBS 9591LIBS="-ldl $LIBS" 9592cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594 9595/* Override any GCC internal prototype to avoid an error. 9596 Use char because int might match the return type of a GCC 9597 builtin and then its argument prototype would still apply. */ 9598#ifdef __cplusplus 9599extern "C" 9600#endif 9601char dlopen (); 9602int 9603main () 9604{ 9605return dlopen (); 9606 ; 9607 return 0; 9608} 9609_ACEOF 9610if ac_fn_c_try_link "$LINENO"; then : 9611 ac_cv_lib_dl_dlopen=yes 9612else 9613 ac_cv_lib_dl_dlopen=no 9614fi 9615rm -f core conftest.err conftest.$ac_objext \ 9616 conftest$ac_exeext conftest.$ac_ext 9617LIBS=$ac_check_lib_save_LIBS 9618fi 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9620$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9621if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9623else 9624 9625 lt_cv_dlopen="dyld" 9626 lt_cv_dlopen_libs= 9627 lt_cv_dlopen_self=yes 9628 9629fi 9630 9631 ;; 9632 9633 *) 9634 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9635if test "x$ac_cv_func_shl_load" = xyes; then : 9636 lt_cv_dlopen="shl_load" 9637else 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9639$as_echo_n "checking for shl_load in -ldld... " >&6; } 9640if ${ac_cv_lib_dld_shl_load+:} false; then : 9641 $as_echo_n "(cached) " >&6 9642else 9643 ac_check_lib_save_LIBS=$LIBS 9644LIBS="-ldld $LIBS" 9645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9646/* end confdefs.h. */ 9647 9648/* Override any GCC internal prototype to avoid an error. 9649 Use char because int might match the return type of a GCC 9650 builtin and then its argument prototype would still apply. */ 9651#ifdef __cplusplus 9652extern "C" 9653#endif 9654char shl_load (); 9655int 9656main () 9657{ 9658return shl_load (); 9659 ; 9660 return 0; 9661} 9662_ACEOF 9663if ac_fn_c_try_link "$LINENO"; then : 9664 ac_cv_lib_dld_shl_load=yes 9665else 9666 ac_cv_lib_dld_shl_load=no 9667fi 9668rm -f core conftest.err conftest.$ac_objext \ 9669 conftest$ac_exeext conftest.$ac_ext 9670LIBS=$ac_check_lib_save_LIBS 9671fi 9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9673$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9674if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9675 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9676else 9677 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9678if test "x$ac_cv_func_dlopen" = xyes; then : 9679 lt_cv_dlopen="dlopen" 9680else 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9682$as_echo_n "checking for dlopen in -ldl... " >&6; } 9683if ${ac_cv_lib_dl_dlopen+:} false; then : 9684 $as_echo_n "(cached) " >&6 9685else 9686 ac_check_lib_save_LIBS=$LIBS 9687LIBS="-ldl $LIBS" 9688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9689/* end confdefs.h. */ 9690 9691/* Override any GCC internal prototype to avoid an error. 9692 Use char because int might match the return type of a GCC 9693 builtin and then its argument prototype would still apply. */ 9694#ifdef __cplusplus 9695extern "C" 9696#endif 9697char dlopen (); 9698int 9699main () 9700{ 9701return dlopen (); 9702 ; 9703 return 0; 9704} 9705_ACEOF 9706if ac_fn_c_try_link "$LINENO"; then : 9707 ac_cv_lib_dl_dlopen=yes 9708else 9709 ac_cv_lib_dl_dlopen=no 9710fi 9711rm -f core conftest.err conftest.$ac_objext \ 9712 conftest$ac_exeext conftest.$ac_ext 9713LIBS=$ac_check_lib_save_LIBS 9714fi 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9716$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9717if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9719else 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9721$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9722if ${ac_cv_lib_svld_dlopen+:} false; then : 9723 $as_echo_n "(cached) " >&6 9724else 9725 ac_check_lib_save_LIBS=$LIBS 9726LIBS="-lsvld $LIBS" 9727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9728/* end confdefs.h. */ 9729 9730/* Override any GCC internal prototype to avoid an error. 9731 Use char because int might match the return type of a GCC 9732 builtin and then its argument prototype would still apply. */ 9733#ifdef __cplusplus 9734extern "C" 9735#endif 9736char dlopen (); 9737int 9738main () 9739{ 9740return dlopen (); 9741 ; 9742 return 0; 9743} 9744_ACEOF 9745if ac_fn_c_try_link "$LINENO"; then : 9746 ac_cv_lib_svld_dlopen=yes 9747else 9748 ac_cv_lib_svld_dlopen=no 9749fi 9750rm -f core conftest.err conftest.$ac_objext \ 9751 conftest$ac_exeext conftest.$ac_ext 9752LIBS=$ac_check_lib_save_LIBS 9753fi 9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9755$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9756if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 9757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9758else 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9760$as_echo_n "checking for dld_link in -ldld... " >&6; } 9761if ${ac_cv_lib_dld_dld_link+:} false; then : 9762 $as_echo_n "(cached) " >&6 9763else 9764 ac_check_lib_save_LIBS=$LIBS 9765LIBS="-ldld $LIBS" 9766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9767/* end confdefs.h. */ 9768 9769/* Override any GCC internal prototype to avoid an error. 9770 Use char because int might match the return type of a GCC 9771 builtin and then its argument prototype would still apply. */ 9772#ifdef __cplusplus 9773extern "C" 9774#endif 9775char dld_link (); 9776int 9777main () 9778{ 9779return dld_link (); 9780 ; 9781 return 0; 9782} 9783_ACEOF 9784if ac_fn_c_try_link "$LINENO"; then : 9785 ac_cv_lib_dld_dld_link=yes 9786else 9787 ac_cv_lib_dld_dld_link=no 9788fi 9789rm -f core conftest.err conftest.$ac_objext \ 9790 conftest$ac_exeext conftest.$ac_ext 9791LIBS=$ac_check_lib_save_LIBS 9792fi 9793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9794$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9795if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 9796 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9797fi 9798 9799 9800fi 9801 9802 9803fi 9804 9805 9806fi 9807 9808 9809fi 9810 9811 9812fi 9813 9814 ;; 9815 esac 9816 9817 if test "x$lt_cv_dlopen" != xno; then 9818 enable_dlopen=yes 9819 else 9820 enable_dlopen=no 9821 fi 9822 9823 case $lt_cv_dlopen in 9824 dlopen) 9825 save_CPPFLAGS="$CPPFLAGS" 9826 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9827 9828 save_LDFLAGS="$LDFLAGS" 9829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9830 9831 save_LIBS="$LIBS" 9832 LIBS="$lt_cv_dlopen_libs $LIBS" 9833 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9835$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9836if ${lt_cv_dlopen_self+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 if test "$cross_compiling" = yes; then : 9840 lt_cv_dlopen_self=cross 9841else 9842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9843 lt_status=$lt_dlunknown 9844 cat > conftest.$ac_ext <<_LT_EOF 9845#line 9845 "configure" 9846#include "confdefs.h" 9847 9848#if HAVE_DLFCN_H 9849#include <dlfcn.h> 9850#endif 9851 9852#include <stdio.h> 9853 9854#ifdef RTLD_GLOBAL 9855# define LT_DLGLOBAL RTLD_GLOBAL 9856#else 9857# ifdef DL_GLOBAL 9858# define LT_DLGLOBAL DL_GLOBAL 9859# else 9860# define LT_DLGLOBAL 0 9861# endif 9862#endif 9863 9864/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9865 find out it does not work in some platform. */ 9866#ifndef LT_DLLAZY_OR_NOW 9867# ifdef RTLD_LAZY 9868# define LT_DLLAZY_OR_NOW RTLD_LAZY 9869# else 9870# ifdef DL_LAZY 9871# define LT_DLLAZY_OR_NOW DL_LAZY 9872# else 9873# ifdef RTLD_NOW 9874# define LT_DLLAZY_OR_NOW RTLD_NOW 9875# else 9876# ifdef DL_NOW 9877# define LT_DLLAZY_OR_NOW DL_NOW 9878# else 9879# define LT_DLLAZY_OR_NOW 0 9880# endif 9881# endif 9882# endif 9883# endif 9884#endif 9885 9886void fnord() { int i=42;} 9887int main () 9888{ 9889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9890 int status = $lt_dlunknown; 9891 9892 if (self) 9893 { 9894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9896 /* dlclose (self); */ 9897 } 9898 else 9899 puts (dlerror ()); 9900 9901 return status; 9902} 9903_LT_EOF 9904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9905 (eval $ac_link) 2>&5 9906 ac_status=$? 9907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9908 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 9909 (./conftest; exit; ) >&5 2>/dev/null 9910 lt_status=$? 9911 case x$lt_status in 9912 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9913 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9914 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9915 esac 9916 else : 9917 # compilation failed 9918 lt_cv_dlopen_self=no 9919 fi 9920fi 9921rm -fr conftest* 9922 9923 9924fi 9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 9926$as_echo "$lt_cv_dlopen_self" >&6; } 9927 9928 if test "x$lt_cv_dlopen_self" = xyes; then 9929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 9931$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 9932if ${lt_cv_dlopen_self_static+:} false; then : 9933 $as_echo_n "(cached) " >&6 9934else 9935 if test "$cross_compiling" = yes; then : 9936 lt_cv_dlopen_self_static=cross 9937else 9938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9939 lt_status=$lt_dlunknown 9940 cat > conftest.$ac_ext <<_LT_EOF 9941#line 9941 "configure" 9942#include "confdefs.h" 9943 9944#if HAVE_DLFCN_H 9945#include <dlfcn.h> 9946#endif 9947 9948#include <stdio.h> 9949 9950#ifdef RTLD_GLOBAL 9951# define LT_DLGLOBAL RTLD_GLOBAL 9952#else 9953# ifdef DL_GLOBAL 9954# define LT_DLGLOBAL DL_GLOBAL 9955# else 9956# define LT_DLGLOBAL 0 9957# endif 9958#endif 9959 9960/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9961 find out it does not work in some platform. */ 9962#ifndef LT_DLLAZY_OR_NOW 9963# ifdef RTLD_LAZY 9964# define LT_DLLAZY_OR_NOW RTLD_LAZY 9965# else 9966# ifdef DL_LAZY 9967# define LT_DLLAZY_OR_NOW DL_LAZY 9968# else 9969# ifdef RTLD_NOW 9970# define LT_DLLAZY_OR_NOW RTLD_NOW 9971# else 9972# ifdef DL_NOW 9973# define LT_DLLAZY_OR_NOW DL_NOW 9974# else 9975# define LT_DLLAZY_OR_NOW 0 9976# endif 9977# endif 9978# endif 9979# endif 9980#endif 9981 9982void fnord() { int i=42;} 9983int main () 9984{ 9985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9986 int status = $lt_dlunknown; 9987 9988 if (self) 9989 { 9990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9992 /* dlclose (self); */ 9993 } 9994 else 9995 puts (dlerror ()); 9996 9997 return status; 9998} 9999_LT_EOF 10000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10001 (eval $ac_link) 2>&5 10002 ac_status=$? 10003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10004 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10005 (./conftest; exit; ) >&5 2>/dev/null 10006 lt_status=$? 10007 case x$lt_status in 10008 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10009 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10010 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10011 esac 10012 else : 10013 # compilation failed 10014 lt_cv_dlopen_self_static=no 10015 fi 10016fi 10017rm -fr conftest* 10018 10019 10020fi 10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10022$as_echo "$lt_cv_dlopen_self_static" >&6; } 10023 fi 10024 10025 CPPFLAGS="$save_CPPFLAGS" 10026 LDFLAGS="$save_LDFLAGS" 10027 LIBS="$save_LIBS" 10028 ;; 10029 esac 10030 10031 case $lt_cv_dlopen_self in 10032 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10033 *) enable_dlopen_self=unknown ;; 10034 esac 10035 10036 case $lt_cv_dlopen_self_static in 10037 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10038 *) enable_dlopen_self_static=unknown ;; 10039 esac 10040fi 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058striplib= 10059old_striplib= 10060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10061$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10062if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10063 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10064 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10066$as_echo "yes" >&6; } 10067else 10068# FIXME - insert some real tests, host_os isn't really good enough 10069 case $host_os in 10070 darwin*) 10071 if test -n "$STRIP" ; then 10072 striplib="$STRIP -x" 10073 old_striplib="$STRIP -S" 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10075$as_echo "yes" >&6; } 10076 else 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10078$as_echo "no" >&6; } 10079 fi 10080 ;; 10081 *) 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10083$as_echo "no" >&6; } 10084 ;; 10085 esac 10086fi 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 # Report which library types will actually be built 10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10101$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10103$as_echo "$can_build_shared" >&6; } 10104 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10106$as_echo_n "checking whether to build shared libraries... " >&6; } 10107 test "$can_build_shared" = "no" && enable_shared=no 10108 10109 # On AIX, shared libraries and static libraries use the same namespace, and 10110 # are all built from PIC. 10111 case $host_os in 10112 aix3*) 10113 test "$enable_shared" = yes && enable_static=no 10114 if test -n "$RANLIB"; then 10115 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10116 postinstall_cmds='$RANLIB $lib' 10117 fi 10118 ;; 10119 10120 aix[4-9]*) 10121 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10122 test "$enable_shared" = yes && enable_static=no 10123 fi 10124 ;; 10125 esac 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10127$as_echo "$enable_shared" >&6; } 10128 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10130$as_echo_n "checking whether to build static libraries... " >&6; } 10131 # Make sure either enable_shared or enable_static is yes. 10132 test "$enable_shared" = yes || enable_static=yes 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10134$as_echo "$enable_static" >&6; } 10135 10136 10137 10138 10139fi 10140ac_ext=c 10141ac_cpp='$CPP $CPPFLAGS' 10142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10144ac_compiler_gnu=$ac_cv_c_compiler_gnu 10145 10146CC="$lt_save_CC" 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 ac_config_commands="$ac_config_commands libtool" 10161 10162 10163 10164 10165# Only expand once: 10166 10167 10168 10169LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION 10170LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` 10171LT_REVISION=$INTERFACE_AGE 10172LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` 10173 10174 10175 10176 10177 10178 10179 10180ac_aux_dir= 10181for ac_dir in $srcdir/build-scripts; do 10182 if test -f "$ac_dir/install-sh"; then 10183 ac_aux_dir=$ac_dir 10184 ac_install_sh="$ac_aux_dir/install-sh -c" 10185 break 10186 elif test -f "$ac_dir/install.sh"; then 10187 ac_aux_dir=$ac_dir 10188 ac_install_sh="$ac_aux_dir/install.sh -c" 10189 break 10190 elif test -f "$ac_dir/shtool"; then 10191 ac_aux_dir=$ac_dir 10192 ac_install_sh="$ac_aux_dir/shtool install -c" 10193 break 10194 fi 10195done 10196if test -z "$ac_aux_dir"; then 10197 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/build-scripts" "$LINENO" 5 10198fi 10199 10200# These three variables are undocumented and unsupported, 10201# and are intended to be withdrawn in a future Autoconf release. 10202# They can cause serious problems if a builder's source tree is in a directory 10203# whose full name contains unusual characters. 10204ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 10205ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 10206ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 10207 10208 10209 10210 10211ac_ext=c 10212ac_cpp='$CPP $CPPFLAGS' 10213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10215ac_compiler_gnu=$ac_cv_c_compiler_gnu 10216if test -n "$ac_tool_prefix"; then 10217 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 10218set dummy ${ac_tool_prefix}gcc; ac_word=$2 10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10220$as_echo_n "checking for $ac_word... " >&6; } 10221if ${ac_cv_prog_CC+:} false; then : 10222 $as_echo_n "(cached) " >&6 10223else 10224 if test -n "$CC"; then 10225 ac_cv_prog_CC="$CC" # Let the user override the test. 10226else 10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10228for as_dir in $PATH 10229do 10230 IFS=$as_save_IFS 10231 test -z "$as_dir" && as_dir=. 10232 for ac_exec_ext in '' $ac_executable_extensions; do 10233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10234 ac_cv_prog_CC="${ac_tool_prefix}gcc" 10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10236 break 2 10237 fi 10238done 10239 done 10240IFS=$as_save_IFS 10241 10242fi 10243fi 10244CC=$ac_cv_prog_CC 10245if test -n "$CC"; then 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10247$as_echo "$CC" >&6; } 10248else 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10250$as_echo "no" >&6; } 10251fi 10252 10253 10254fi 10255if test -z "$ac_cv_prog_CC"; then 10256 ac_ct_CC=$CC 10257 # Extract the first word of "gcc", so it can be a program name with args. 10258set dummy gcc; ac_word=$2 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10260$as_echo_n "checking for $ac_word... " >&6; } 10261if ${ac_cv_prog_ac_ct_CC+:} false; then : 10262 $as_echo_n "(cached) " >&6 10263else 10264 if test -n "$ac_ct_CC"; then 10265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 10266else 10267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10268for as_dir in $PATH 10269do 10270 IFS=$as_save_IFS 10271 test -z "$as_dir" && as_dir=. 10272 for ac_exec_ext in '' $ac_executable_extensions; do 10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10274 ac_cv_prog_ac_ct_CC="gcc" 10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10276 break 2 10277 fi 10278done 10279 done 10280IFS=$as_save_IFS 10281 10282fi 10283fi 10284ac_ct_CC=$ac_cv_prog_ac_ct_CC 10285if test -n "$ac_ct_CC"; then 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 10287$as_echo "$ac_ct_CC" >&6; } 10288else 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10290$as_echo "no" >&6; } 10291fi 10292 10293 if test "x$ac_ct_CC" = x; then 10294 CC="" 10295 else 10296 case $cross_compiling:$ac_tool_warned in 10297yes:) 10298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10300ac_tool_warned=yes ;; 10301esac 10302 CC=$ac_ct_CC 10303 fi 10304else 10305 CC="$ac_cv_prog_CC" 10306fi 10307 10308if test -z "$CC"; then 10309 if test -n "$ac_tool_prefix"; then 10310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 10311set dummy ${ac_tool_prefix}cc; ac_word=$2 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10313$as_echo_n "checking for $ac_word... " >&6; } 10314if ${ac_cv_prog_CC+:} false; then : 10315 $as_echo_n "(cached) " >&6 10316else 10317 if test -n "$CC"; then 10318 ac_cv_prog_CC="$CC" # Let the user override the test. 10319else 10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10321for as_dir in $PATH 10322do 10323 IFS=$as_save_IFS 10324 test -z "$as_dir" && as_dir=. 10325 for ac_exec_ext in '' $ac_executable_extensions; do 10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10327 ac_cv_prog_CC="${ac_tool_prefix}cc" 10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10329 break 2 10330 fi 10331done 10332 done 10333IFS=$as_save_IFS 10334 10335fi 10336fi 10337CC=$ac_cv_prog_CC 10338if test -n "$CC"; then 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10340$as_echo "$CC" >&6; } 10341else 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10343$as_echo "no" >&6; } 10344fi 10345 10346 10347 fi 10348fi 10349if test -z "$CC"; then 10350 # Extract the first word of "cc", so it can be a program name with args. 10351set dummy cc; ac_word=$2 10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10353$as_echo_n "checking for $ac_word... " >&6; } 10354if ${ac_cv_prog_CC+:} false; then : 10355 $as_echo_n "(cached) " >&6 10356else 10357 if test -n "$CC"; then 10358 ac_cv_prog_CC="$CC" # Let the user override the test. 10359else 10360 ac_prog_rejected=no 10361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10362for as_dir in $PATH 10363do 10364 IFS=$as_save_IFS 10365 test -z "$as_dir" && as_dir=. 10366 for ac_exec_ext in '' $ac_executable_extensions; do 10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 10369 ac_prog_rejected=yes 10370 continue 10371 fi 10372 ac_cv_prog_CC="cc" 10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10374 break 2 10375 fi 10376done 10377 done 10378IFS=$as_save_IFS 10379 10380if test $ac_prog_rejected = yes; then 10381 # We found a bogon in the path, so make sure we never use it. 10382 set dummy $ac_cv_prog_CC 10383 shift 10384 if test $# != 0; then 10385 # We chose a different compiler from the bogus one. 10386 # However, it has the same basename, so the bogon will be chosen 10387 # first if we set CC to just the basename; use the full file name. 10388 shift 10389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 10390 fi 10391fi 10392fi 10393fi 10394CC=$ac_cv_prog_CC 10395if test -n "$CC"; then 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10397$as_echo "$CC" >&6; } 10398else 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10400$as_echo "no" >&6; } 10401fi 10402 10403 10404fi 10405if test -z "$CC"; then 10406 if test -n "$ac_tool_prefix"; then 10407 for ac_prog in cl.exe 10408 do 10409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10410set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10412$as_echo_n "checking for $ac_word... " >&6; } 10413if ${ac_cv_prog_CC+:} false; then : 10414 $as_echo_n "(cached) " >&6 10415else 10416 if test -n "$CC"; then 10417 ac_cv_prog_CC="$CC" # Let the user override the test. 10418else 10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10420for as_dir in $PATH 10421do 10422 IFS=$as_save_IFS 10423 test -z "$as_dir" && as_dir=. 10424 for ac_exec_ext in '' $ac_executable_extensions; do 10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10428 break 2 10429 fi 10430done 10431 done 10432IFS=$as_save_IFS 10433 10434fi 10435fi 10436CC=$ac_cv_prog_CC 10437if test -n "$CC"; then 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10439$as_echo "$CC" >&6; } 10440else 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10442$as_echo "no" >&6; } 10443fi 10444 10445 10446 test -n "$CC" && break 10447 done 10448fi 10449if test -z "$CC"; then 10450 ac_ct_CC=$CC 10451 for ac_prog in cl.exe 10452do 10453 # Extract the first word of "$ac_prog", so it can be a program name with args. 10454set dummy $ac_prog; ac_word=$2 10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10456$as_echo_n "checking for $ac_word... " >&6; } 10457if ${ac_cv_prog_ac_ct_CC+:} false; then : 10458 $as_echo_n "(cached) " >&6 10459else 10460 if test -n "$ac_ct_CC"; then 10461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 10462else 10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10464for as_dir in $PATH 10465do 10466 IFS=$as_save_IFS 10467 test -z "$as_dir" && as_dir=. 10468 for ac_exec_ext in '' $ac_executable_extensions; do 10469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10470 ac_cv_prog_ac_ct_CC="$ac_prog" 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10472 break 2 10473 fi 10474done 10475 done 10476IFS=$as_save_IFS 10477 10478fi 10479fi 10480ac_ct_CC=$ac_cv_prog_ac_ct_CC 10481if test -n "$ac_ct_CC"; then 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 10483$as_echo "$ac_ct_CC" >&6; } 10484else 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10486$as_echo "no" >&6; } 10487fi 10488 10489 10490 test -n "$ac_ct_CC" && break 10491done 10492 10493 if test "x$ac_ct_CC" = x; then 10494 CC="" 10495 else 10496 case $cross_compiling:$ac_tool_warned in 10497yes:) 10498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10500ac_tool_warned=yes ;; 10501esac 10502 CC=$ac_ct_CC 10503 fi 10504fi 10505 10506fi 10507 10508 10509test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10511as_fn_error $? "no acceptable C compiler found in \$PATH 10512See \`config.log' for more details" "$LINENO" 5; } 10513 10514# Provide some information about the compiler. 10515$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 10516set X $ac_compile 10517ac_compiler=$2 10518for ac_option in --version -v -V -qversion; do 10519 { { ac_try="$ac_compiler $ac_option >&5" 10520case "(($ac_try" in 10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10522 *) ac_try_echo=$ac_try;; 10523esac 10524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10525$as_echo "$ac_try_echo"; } >&5 10526 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 10527 ac_status=$? 10528 if test -s conftest.err; then 10529 sed '10a\ 10530... rest of stderr output deleted ... 10531 10q' conftest.err >conftest.er1 10532 cat conftest.er1 >&5 10533 fi 10534 rm -f conftest.er1 conftest.err 10535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10536 test $ac_status = 0; } 10537done 10538 10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 10540$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 10541if ${ac_cv_c_compiler_gnu+:} false; then : 10542 $as_echo_n "(cached) " >&6 10543else 10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10545/* end confdefs.h. */ 10546 10547int 10548main () 10549{ 10550#ifndef __GNUC__ 10551 choke me 10552#endif 10553 10554 ; 10555 return 0; 10556} 10557_ACEOF 10558if ac_fn_c_try_compile "$LINENO"; then : 10559 ac_compiler_gnu=yes 10560else 10561 ac_compiler_gnu=no 10562fi 10563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10564ac_cv_c_compiler_gnu=$ac_compiler_gnu 10565 10566fi 10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 10568$as_echo "$ac_cv_c_compiler_gnu" >&6; } 10569if test $ac_compiler_gnu = yes; then 10570 GCC=yes 10571else 10572 GCC= 10573fi 10574ac_test_CFLAGS=${CFLAGS+set} 10575ac_save_CFLAGS=$CFLAGS 10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 10577$as_echo_n "checking whether $CC accepts -g... " >&6; } 10578if ${ac_cv_prog_cc_g+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580else 10581 ac_save_c_werror_flag=$ac_c_werror_flag 10582 ac_c_werror_flag=yes 10583 ac_cv_prog_cc_g=no 10584 CFLAGS="-g" 10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10586/* end confdefs.h. */ 10587 10588int 10589main () 10590{ 10591 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596if ac_fn_c_try_compile "$LINENO"; then : 10597 ac_cv_prog_cc_g=yes 10598else 10599 CFLAGS="" 10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10601/* end confdefs.h. */ 10602 10603int 10604main () 10605{ 10606 10607 ; 10608 return 0; 10609} 10610_ACEOF 10611if ac_fn_c_try_compile "$LINENO"; then : 10612 10613else 10614 ac_c_werror_flag=$ac_save_c_werror_flag 10615 CFLAGS="-g" 10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618 10619int 10620main () 10621{ 10622 10623 ; 10624 return 0; 10625} 10626_ACEOF 10627if ac_fn_c_try_compile "$LINENO"; then : 10628 ac_cv_prog_cc_g=yes 10629fi 10630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10631fi 10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10633fi 10634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10635 ac_c_werror_flag=$ac_save_c_werror_flag 10636fi 10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 10638$as_echo "$ac_cv_prog_cc_g" >&6; } 10639if test "$ac_test_CFLAGS" = set; then 10640 CFLAGS=$ac_save_CFLAGS 10641elif test $ac_cv_prog_cc_g = yes; then 10642 if test "$GCC" = yes; then 10643 CFLAGS="-g -O2" 10644 else 10645 CFLAGS="-g" 10646 fi 10647else 10648 if test "$GCC" = yes; then 10649 CFLAGS="-O2" 10650 else 10651 CFLAGS= 10652 fi 10653fi 10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 10655$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 10656if ${ac_cv_prog_cc_c89+:} false; then : 10657 $as_echo_n "(cached) " >&6 10658else 10659 ac_cv_prog_cc_c89=no 10660ac_save_CC=$CC 10661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10662/* end confdefs.h. */ 10663#include <stdarg.h> 10664#include <stdio.h> 10665struct stat; 10666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 10667struct buf { int x; }; 10668FILE * (*rcsopen) (struct buf *, struct stat *, int); 10669static char *e (p, i) 10670 char **p; 10671 int i; 10672{ 10673 return p[i]; 10674} 10675static char *f (char * (*g) (char **, int), char **p, ...) 10676{ 10677 char *s; 10678 va_list v; 10679 va_start (v,p); 10680 s = g (p, va_arg (v,int)); 10681 va_end (v); 10682 return s; 10683} 10684 10685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 10686 function prototypes and stuff, but not '\xHH' hex character constants. 10687 These don't provoke an error unfortunately, instead are silently treated 10688 as 'x'. The following induces an error, until -std is added to get 10689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 10690 array size at least. It's necessary to write '\x00'==0 to get something 10691 that's true only with -std. */ 10692int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 10693 10694/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 10695 inside strings and character constants. */ 10696#define FOO(x) 'x' 10697int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 10698 10699int test (int i, double x); 10700struct s1 {int (*f) (int a);}; 10701struct s2 {int (*f) (double a);}; 10702int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 10703int argc; 10704char **argv; 10705int 10706main () 10707{ 10708return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 10709 ; 10710 return 0; 10711} 10712_ACEOF 10713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 10714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 10715do 10716 CC="$ac_save_CC $ac_arg" 10717 if ac_fn_c_try_compile "$LINENO"; then : 10718 ac_cv_prog_cc_c89=$ac_arg 10719fi 10720rm -f core conftest.err conftest.$ac_objext 10721 test "x$ac_cv_prog_cc_c89" != "xno" && break 10722done 10723rm -f conftest.$ac_ext 10724CC=$ac_save_CC 10725 10726fi 10727# AC_CACHE_VAL 10728case "x$ac_cv_prog_cc_c89" in 10729 x) 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 10731$as_echo "none needed" >&6; } ;; 10732 xno) 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 10734$as_echo "unsupported" >&6; } ;; 10735 *) 10736 CC="$CC $ac_cv_prog_cc_c89" 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 10738$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 10739esac 10740if test "x$ac_cv_prog_cc_c89" != xno; then : 10741 10742fi 10743 10744ac_ext=c 10745ac_cpp='$CPP $CPPFLAGS' 10746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10748ac_compiler_gnu=$ac_cv_c_compiler_gnu 10749 10750# Find a good install program. We prefer a C program (faster), 10751# so one script is as good as another. But avoid the broken or 10752# incompatible versions: 10753# SysV /etc/install, /usr/sbin/install 10754# SunOS /usr/etc/install 10755# IRIX /sbin/install 10756# AIX /bin/install 10757# AmigaOS /C/install, which installs bootblocks on floppy discs 10758# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10759# AFS /usr/afsws/bin/install, which mishandles nonexistent args 10760# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10761# OS/2's system install, which has a completely different semantic 10762# ./install, which can be erroneously created by make from ./install.sh. 10763# Reject install programs that cannot install multiple files. 10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 10765$as_echo_n "checking for a BSD-compatible install... " >&6; } 10766if test -z "$INSTALL"; then 10767if ${ac_cv_path_install+:} false; then : 10768 $as_echo_n "(cached) " >&6 10769else 10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10771for as_dir in $PATH 10772do 10773 IFS=$as_save_IFS 10774 test -z "$as_dir" && as_dir=. 10775 # Account for people who put trailing slashes in PATH elements. 10776case $as_dir/ in #(( 10777 ./ | .// | /[cC]/* | \ 10778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10779 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 10780 /usr/ucb/* ) ;; 10781 *) 10782 # OSF1 and SCO ODT 3.0 have their own names for install. 10783 # Don't use installbsd from OSF since it installs stuff as root 10784 # by default. 10785 for ac_prog in ginstall scoinst install; do 10786 for ac_exec_ext in '' $ac_executable_extensions; do 10787 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 10788 if test $ac_prog = install && 10789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10790 # AIX install. It has an incompatible calling convention. 10791 : 10792 elif test $ac_prog = install && 10793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10794 # program-specific install script used by HP pwplus--don't use. 10795 : 10796 else 10797 rm -rf conftest.one conftest.two conftest.dir 10798 echo one > conftest.one 10799 echo two > conftest.two 10800 mkdir conftest.dir 10801 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 10802 test -s conftest.one && test -s conftest.two && 10803 test -s conftest.dir/conftest.one && 10804 test -s conftest.dir/conftest.two 10805 then 10806 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10807 break 3 10808 fi 10809 fi 10810 fi 10811 done 10812 done 10813 ;; 10814esac 10815 10816 done 10817IFS=$as_save_IFS 10818 10819rm -rf conftest.one conftest.two conftest.dir 10820 10821fi 10822 if test "${ac_cv_path_install+set}" = set; then 10823 INSTALL=$ac_cv_path_install 10824 else 10825 # As a last resort, use the slow shell script. Don't cache a 10826 # value for INSTALL within a source directory, because that will 10827 # break other packages using the cache if that directory is 10828 # removed, or if the value is a relative name. 10829 INSTALL=$ac_install_sh 10830 fi 10831fi 10832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 10833$as_echo "$INSTALL" >&6; } 10834 10835# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10836# It thinks the first close brace ends the variable substitution. 10837test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10838 10839test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10840 10841test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10842 10843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10844$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10845set x ${MAKE-make} 10846ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10847if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 10848 $as_echo_n "(cached) " >&6 10849else 10850 cat >conftest.make <<\_ACEOF 10851SHELL = /bin/sh 10852all: 10853 @echo '@@@%%%=$(MAKE)=@@@%%%' 10854_ACEOF 10855# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10856case `${MAKE-make} -f conftest.make 2>/dev/null` in 10857 *@@@%%%=?*=@@@%%%*) 10858 eval ac_cv_prog_make_${ac_make}_set=yes;; 10859 *) 10860 eval ac_cv_prog_make_${ac_make}_set=no;; 10861esac 10862rm -f conftest.make 10863fi 10864if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10866$as_echo "yes" >&6; } 10867 SET_MAKE= 10868else 10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10870$as_echo "no" >&6; } 10871 SET_MAKE="MAKE=${MAKE-make}" 10872fi 10873 10874if test -z "$host_alias"; then 10875 hostaliaswindres= 10876else 10877 hostaliaswindres="$host_alias-windres" 10878fi 10879for ac_prog in windres $hostaliaswindres $host_os-windres 10880do 10881 # Extract the first word of "$ac_prog", so it can be a program name with args. 10882set dummy $ac_prog; ac_word=$2 10883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10884$as_echo_n "checking for $ac_word... " >&6; } 10885if ${ac_cv_prog_WINDRES+:} false; then : 10886 $as_echo_n "(cached) " >&6 10887else 10888 if test -n "$WINDRES"; then 10889 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 10890else 10891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10892for as_dir in $PATH 10893do 10894 IFS=$as_save_IFS 10895 test -z "$as_dir" && as_dir=. 10896 for ac_exec_ext in '' $ac_executable_extensions; do 10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10898 ac_cv_prog_WINDRES="$ac_prog" 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10900 break 2 10901 fi 10902done 10903 done 10904IFS=$as_save_IFS 10905 10906fi 10907fi 10908WINDRES=$ac_cv_prog_WINDRES 10909if test -n "$WINDRES"; then 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 10911$as_echo "$WINDRES" >&6; } 10912else 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10914$as_echo "no" >&6; } 10915fi 10916 10917 10918 test -n "$WINDRES" && break 10919done 10920 10921 10922case "$host" in 10923 *-*-cygwin*) 10924 # We build SDL on cygwin without the UNIX emulation layer 10925 BASE_CFLAGS="-I/usr/include/mingw -mno-cygwin" 10926 BASE_LDFLAGS="-mno-cygwin" 10927 ;; 10928 *) 10929 BASE_CFLAGS="-D_GNU_SOURCE=1" 10930 BASE_LDFLAGS="" 10931 ;; 10932esac 10933BUILD_CFLAGS="$CFLAGS $CPPFLAGS" 10934EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS" 10935BUILD_LDFLAGS="$LDFLAGS" 10936EXTRA_LDFLAGS="$BASE_LDFLAGS" 10937## These are common directories to find software packages 10938#for path in /usr/freeware /usr/pkg /usr/local; do 10939# if test -d $path/include; then 10940# EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include" 10941# fi 10942# if test -d $path/lib; then 10943# EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib" 10944# fi 10945#done 10946CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS" 10947CFLAGS="$CFLAGS $EXTRA_CFLAGS" 10948LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS" 10949 10950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10951$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10952if ${ac_cv_c_const+:} false; then : 10953 $as_echo_n "(cached) " >&6 10954else 10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10956/* end confdefs.h. */ 10957 10958int 10959main () 10960{ 10961 10962#ifndef __cplusplus 10963 /* Ultrix mips cc rejects this sort of thing. */ 10964 typedef int charset[2]; 10965 const charset cs = { 0, 0 }; 10966 /* SunOS 4.1.1 cc rejects this. */ 10967 char const *const *pcpcc; 10968 char **ppc; 10969 /* NEC SVR4.0.2 mips cc rejects this. */ 10970 struct point {int x, y;}; 10971 static struct point const zero = {0,0}; 10972 /* AIX XL C 1.02.0.0 rejects this. 10973 It does not let you subtract one const X* pointer from another in 10974 an arm of an if-expression whose if-part is not a constant 10975 expression */ 10976 const char *g = "string"; 10977 pcpcc = &g + (g ? g-g : 0); 10978 /* HPUX 7.0 cc rejects these. */ 10979 ++pcpcc; 10980 ppc = (char**) pcpcc; 10981 pcpcc = (char const *const *) ppc; 10982 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10983 char tx; 10984 char *t = &tx; 10985 char const *s = 0 ? (char *) 0 : (char const *) 0; 10986 10987 *t++ = 0; 10988 if (s) return 0; 10989 } 10990 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10991 int x[] = {25, 17}; 10992 const int *foo = &x[0]; 10993 ++foo; 10994 } 10995 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10996 typedef const int *iptr; 10997 iptr p = 0; 10998 ++p; 10999 } 11000 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11001 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11002 struct s { int j; const int *ap[3]; } bx; 11003 struct s *b = &bx; b->j = 5; 11004 } 11005 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11006 const int foo = 10; 11007 if (!foo) return 0; 11008 } 11009 return !cs[0] && !zero.x; 11010#endif 11011 11012 ; 11013 return 0; 11014} 11015_ACEOF 11016if ac_fn_c_try_compile "$LINENO"; then : 11017 ac_cv_c_const=yes 11018else 11019 ac_cv_c_const=no 11020fi 11021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11022fi 11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11024$as_echo "$ac_cv_c_const" >&6; } 11025if test $ac_cv_c_const = no; then 11026 11027$as_echo "#define const /**/" >>confdefs.h 11028 11029fi 11030 11031 11032# Check whether --enable-dependency-tracking was given. 11033if test "${enable_dependency_tracking+set}" = set; then : 11034 enableval=$enable_dependency_tracking; 11035else 11036 enable_dependency_tracking=yes 11037fi 11038 11039if test x$enable_dependency_tracking = xyes; then 11040 have_gcc_mmd_mt=no 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5 11042$as_echo_n "checking for GCC -MMD -MT option... " >&6; } 11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11044/* end confdefs.h. */ 11045 11046 #if !defined(__GNUC__) || __GNUC__ < 3 11047 #error Dependency tracking requires GCC 3.0 or newer 11048 #endif 11049 11050int 11051main () 11052{ 11053 11054 11055 ; 11056 return 0; 11057} 11058_ACEOF 11059if ac_fn_c_try_compile "$LINENO"; then : 11060 11061 have_gcc_mmd_mt=yes 11062 11063fi 11064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5 11066$as_echo "$have_gcc_mmd_mt" >&6; } 11067 11068 if test x$have_gcc_mmd_mt = xyes; then 11069 DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@" 11070 fi 11071fi 11072 11073case "$host" in 11074 *mingw32ce*) 11075 #VERSION_SOURCES="$srcdir/version.rc" 11076 EXE=".exe" 11077 ;; 11078 *-*-cygwin* | *-*-mingw32*) 11079 VERSION_SOURCES="$srcdir/version.rc" 11080 EXE=".exe" 11081 if test "$build" != "$host"; then # cross-compiling 11082 # Default cross-compile location 11083 ac_default_prefix=/usr/local/cross-tools/$host 11084 else 11085 # Look for the location of the tools and install there 11086 if test "$BUILD_PREFIX" != ""; then 11087 ac_default_prefix=$BUILD_PREFIX 11088 fi 11089 fi 11090 ;; 11091 *) 11092 EXE="" 11093 ;; 11094esac 11095 11096# Standard C sources 11097SOURCES=`ls $srcdir/*.c | fgrep -v playwave.c | fgrep -v playmus.c` 11098 11099base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` 11100 11101CheckVisibilityHidden() 11102{ 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5 11104$as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; } 11105 have_gcc_fvisibility=no 11106 11107 visibility_CFLAGS="-fvisibility=hidden" 11108 save_CFLAGS="$CFLAGS" 11109 CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror" 11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11111/* end confdefs.h. */ 11112 11113 #if !defined(__GNUC__) || __GNUC__ < 4 11114 #error SDL only uses visibility attributes in GCC 4 or newer 11115 #endif 11116 11117int 11118main () 11119{ 11120 11121 11122 ; 11123 return 0; 11124} 11125_ACEOF 11126if ac_fn_c_try_compile "$LINENO"; then : 11127 11128 have_gcc_fvisibility=yes 11129 11130fi 11131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5 11133$as_echo "$have_gcc_fvisibility" >&6; } 11134 CFLAGS="$save_CFLAGS" 11135 11136 if test x$have_gcc_fvisibility = xyes; then 11137 EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS" 11138 fi 11139} 11140 11141 11142find_lib() 11143{ 11144 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 11145 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 11146 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'` 11147 if test "$cross_compiling" = yes; then 11148 host_lib_path="" 11149 else 11150 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" 11151 fi 11152 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do 11153 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1` 11154 if test x$lib != x; then 11155 echo $lib 11156 return 11157 fi 11158 done 11159} 11160 11161SDL_VERSION=2.0.7 11162 11163 11164if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11165 if test -n "$ac_tool_prefix"; then 11166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11167set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11169$as_echo_n "checking for $ac_word... " >&6; } 11170if ${ac_cv_path_PKG_CONFIG+:} false; then : 11171 $as_echo_n "(cached) " >&6 11172else 11173 case $PKG_CONFIG in 11174 [\\/]* | ?:[\\/]*) 11175 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11176 ;; 11177 *) 11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11179for as_dir in $PATH 11180do 11181 IFS=$as_save_IFS 11182 test -z "$as_dir" && as_dir=. 11183 for ac_exec_ext in '' $ac_executable_extensions; do 11184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11185 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11187 break 2 11188 fi 11189done 11190 done 11191IFS=$as_save_IFS 11192 11193 ;; 11194esac 11195fi 11196PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11197if test -n "$PKG_CONFIG"; then 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11199$as_echo "$PKG_CONFIG" >&6; } 11200else 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11202$as_echo "no" >&6; } 11203fi 11204 11205 11206fi 11207if test -z "$ac_cv_path_PKG_CONFIG"; then 11208 ac_pt_PKG_CONFIG=$PKG_CONFIG 11209 # Extract the first word of "pkg-config", so it can be a program name with args. 11210set dummy pkg-config; ac_word=$2 11211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11212$as_echo_n "checking for $ac_word... " >&6; } 11213if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11214 $as_echo_n "(cached) " >&6 11215else 11216 case $ac_pt_PKG_CONFIG in 11217 [\\/]* | ?:[\\/]*) 11218 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11219 ;; 11220 *) 11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11222for as_dir in $PATH 11223do 11224 IFS=$as_save_IFS 11225 test -z "$as_dir" && as_dir=. 11226 for ac_exec_ext in '' $ac_executable_extensions; do 11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11228 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11230 break 2 11231 fi 11232done 11233 done 11234IFS=$as_save_IFS 11235 11236 ;; 11237esac 11238fi 11239ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11240if test -n "$ac_pt_PKG_CONFIG"; then 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11242$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11243else 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11245$as_echo "no" >&6; } 11246fi 11247 11248 if test "x$ac_pt_PKG_CONFIG" = x; then 11249 PKG_CONFIG="" 11250 else 11251 case $cross_compiling:$ac_tool_warned in 11252yes:) 11253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11255ac_tool_warned=yes ;; 11256esac 11257 PKG_CONFIG=$ac_pt_PKG_CONFIG 11258 fi 11259else 11260 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11261fi 11262 11263fi 11264if test -n "$PKG_CONFIG"; then 11265 _pkg_min_version=0.9.0 11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11267$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11268 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11270$as_echo "yes" >&6; } 11271 else 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11273$as_echo "no" >&6; } 11274 PKG_CONFIG="" 11275 fi 11276 11277fi 11278 11279# Check whether --with-sdl-prefix was given. 11280if test "${with_sdl_prefix+set}" = set; then : 11281 withval=$with_sdl_prefix; sdl_prefix="$withval" 11282else 11283 sdl_prefix="" 11284fi 11285 11286 11287# Check whether --with-sdl-exec-prefix was given. 11288if test "${with_sdl_exec_prefix+set}" = set; then : 11289 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 11290else 11291 sdl_exec_prefix="" 11292fi 11293 11294# Check whether --enable-sdltest was given. 11295if test "${enable_sdltest+set}" = set; then : 11296 enableval=$enable_sdltest; 11297else 11298 enable_sdltest=yes 11299fi 11300 11301 11302 min_sdl_version=$SDL_VERSION 11303 11304 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then 11305 11306pkg_failed=no 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 11308$as_echo_n "checking for SDL... " >&6; } 11309 11310if test -n "$PKG_CONFIG"; then 11311 if test -n "$SDL_CFLAGS"; then 11312 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" 11313 else 11314 if test -n "$PKG_CONFIG" && \ 11315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 11316 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 11317 ac_status=$? 11318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11319 test $ac_status = 0; }; then 11320 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null` 11321else 11322 pkg_failed=yes 11323fi 11324 fi 11325else 11326 pkg_failed=untried 11327fi 11328if test -n "$PKG_CONFIG"; then 11329 if test -n "$SDL_LIBS"; then 11330 pkg_cv_SDL_LIBS="$SDL_LIBS" 11331 else 11332 if test -n "$PKG_CONFIG" && \ 11333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 11334 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 11335 ac_status=$? 11336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11337 test $ac_status = 0; }; then 11338 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null` 11339else 11340 pkg_failed=yes 11341fi 11342 fi 11343else 11344 pkg_failed=untried 11345fi 11346 11347 11348 11349if test $pkg_failed = yes; then 11350 11351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11352 _pkg_short_errors_supported=yes 11353else 11354 _pkg_short_errors_supported=no 11355fi 11356 if test $_pkg_short_errors_supported = yes; then 11357 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"` 11358 else 11359 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"` 11360 fi 11361 # Put the nasty error message in config.log where it belongs 11362 echo "$SDL_PKG_ERRORS" >&5 11363 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11365$as_echo "no" >&6; } 11366 sdl_pc=no 11367elif test $pkg_failed = untried; then 11368 sdl_pc=no 11369else 11370 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS 11371 SDL_LIBS=$pkg_cv_SDL_LIBS 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11373$as_echo "yes" >&6; } 11374 sdl_pc=yes 11375fi 11376 else 11377 sdl_pc=no 11378 if test x$sdl_exec_prefix != x ; then 11379 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 11380 if test x${SDL2_CONFIG+set} != xset ; then 11381 SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config 11382 fi 11383 fi 11384 if test x$sdl_prefix != x ; then 11385 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 11386 if test x${SDL2_CONFIG+set} != xset ; then 11387 SDL2_CONFIG=$sdl_prefix/bin/sdl2-config 11388 fi 11389 fi 11390 fi 11391 11392 if test "x$sdl_pc" = xyes ; then 11393 no_sdl="" 11394 SDL2_CONFIG="pkg-config sdl2" 11395 else 11396 as_save_PATH="$PATH" 11397 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 11398 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 11399 fi 11400 # Extract the first word of "sdl2-config", so it can be a program name with args. 11401set dummy sdl2-config; ac_word=$2 11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11403$as_echo_n "checking for $ac_word... " >&6; } 11404if ${ac_cv_path_SDL2_CONFIG+:} false; then : 11405 $as_echo_n "(cached) " >&6 11406else 11407 case $SDL2_CONFIG in 11408 [\\/]* | ?:[\\/]*) 11409 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path. 11410 ;; 11411 *) 11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11413for as_dir in $PATH 11414do 11415 IFS=$as_save_IFS 11416 test -z "$as_dir" && as_dir=. 11417 for ac_exec_ext in '' $ac_executable_extensions; do 11418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11419 ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11421 break 2 11422 fi 11423done 11424 done 11425IFS=$as_save_IFS 11426 11427 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no" 11428 ;; 11429esac 11430fi 11431SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG 11432if test -n "$SDL2_CONFIG"; then 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5 11434$as_echo "$SDL2_CONFIG" >&6; } 11435else 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11437$as_echo "no" >&6; } 11438fi 11439 11440 11441 PATH="$as_save_PATH" 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 11443$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 11444 no_sdl="" 11445 11446 if test "$SDL2_CONFIG" = "no" ; then 11447 no_sdl=yes 11448 else 11449 SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags` 11450 SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs` 11451 11452 sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \ 11453 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 11454 sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \ 11455 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 11456 sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \ 11457 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 11458 if test "x$enable_sdltest" = "xyes" ; then 11459 ac_save_CFLAGS="$CFLAGS" 11460 ac_save_CXXFLAGS="$CXXFLAGS" 11461 ac_save_LIBS="$LIBS" 11462 CFLAGS="$CFLAGS $SDL_CFLAGS" 11463 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 11464 LIBS="$LIBS $SDL_LIBS" 11465 rm -f conf.sdltest 11466 if test "$cross_compiling" = yes; then : 11467 echo $ac_n "cross compiling; assumed OK... $ac_c" 11468else 11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11470/* end confdefs.h. */ 11471 11472#include <stdio.h> 11473#include <stdlib.h> 11474#include <string.h> 11475#include "SDL.h" 11476 11477char* 11478my_strdup (char *str) 11479{ 11480 char *new_str; 11481 11482 if (str) 11483 { 11484 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 11485 strcpy (new_str, str); 11486 } 11487 else 11488 new_str = NULL; 11489 11490 return new_str; 11491} 11492 11493int main (int argc, char *argv[]) 11494{ 11495 int major, minor, micro; 11496 char *tmp_version; 11497 11498 /* This hangs on some systems (?) 11499 system ("touch conf.sdltest"); 11500 */ 11501 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 11502 11503 /* HP/UX 9 (%@#!) writes to sscanf strings */ 11504 tmp_version = my_strdup("$min_sdl_version"); 11505 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 11506 printf("%s, bad version string\n", "$min_sdl_version"); 11507 exit(1); 11508 } 11509 11510 if (($sdl_major_version > major) || 11511 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 11512 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 11513 { 11514 return 0; 11515 } 11516 else 11517 { 11518 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 11519 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 11520 printf("*** best to upgrade to the required version.\n"); 11521 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); 11522 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 11523 printf("*** config.cache before re-running configure\n"); 11524 return 1; 11525 } 11526} 11527 11528 11529_ACEOF 11530if ac_fn_c_try_run "$LINENO"; then : 11531 11532else 11533 no_sdl=yes 11534fi 11535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11536 conftest.$ac_objext conftest.beam conftest.$ac_ext 11537fi 11538 11539 CFLAGS="$ac_save_CFLAGS" 11540 CXXFLAGS="$ac_save_CXXFLAGS" 11541 LIBS="$ac_save_LIBS" 11542 fi 11543 fi 11544 if test "x$no_sdl" = x ; then 11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11546$as_echo "yes" >&6; } 11547 else 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11549$as_echo "no" >&6; } 11550 fi 11551 fi 11552 if test "x$no_sdl" = x ; then 11553 : 11554 else 11555 if test "$SDL2_CONFIG" = "no" ; then 11556 echo "*** The sdl2-config script installed by SDL could not be found" 11557 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 11558 echo "*** your path, or set the SDL2_CONFIG environment variable to the" 11559 echo "*** full path to sdl2-config." 11560 else 11561 if test -f conf.sdltest ; then 11562 : 11563 else 11564 echo "*** Could not run SDL test program, checking why..." 11565 CFLAGS="$CFLAGS $SDL_CFLAGS" 11566 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 11567 LIBS="$LIBS $SDL_LIBS" 11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11569/* end confdefs.h. */ 11570 11571#include <stdio.h> 11572#include "SDL.h" 11573 11574int main(int argc, char *argv[]) 11575{ return 0; } 11576#undef main 11577#define main K_and_R_C_main 11578 11579int 11580main () 11581{ 11582 return 0; 11583 ; 11584 return 0; 11585} 11586_ACEOF 11587if ac_fn_c_try_link "$LINENO"; then : 11588 echo "*** The test program compiled, but did not run. This usually means" 11589 echo "*** that the run-time linker is not finding SDL or finding the wrong" 11590 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 11591 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 11592 echo "*** to the installed location Also, make sure you have run ldconfig if that" 11593 echo "*** is required on your system" 11594 echo "***" 11595 echo "*** If you have an old version installed, it is best to remove it, although" 11596 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 11597else 11598 echo "*** The test program failed to compile or link. See the file config.log for the" 11599 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 11600 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 11601 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG" 11602fi 11603rm -f core conftest.err conftest.$ac_objext \ 11604 conftest$ac_exeext conftest.$ac_ext 11605 CFLAGS="$ac_save_CFLAGS" 11606 CXXFLAGS="$ac_save_CXXFLAGS" 11607 LIBS="$ac_save_LIBS" 11608 fi 11609 fi 11610 SDL_CFLAGS="" 11611 SDL_LIBS="" 11612 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5 11613 11614 fi 11615 11616 11617 rm -f conf.sdltest 11618 11619EXTRA_CFLAGS="$EXTRA_CFLAGS $SDL_CFLAGS" 11620EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SDL_LIBS" 11621 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 11623$as_echo_n "checking for pow in -lm... " >&6; } 11624if ${ac_cv_lib_m_pow+:} false; then : 11625 $as_echo_n "(cached) " >&6 11626else 11627 ac_check_lib_save_LIBS=$LIBS 11628LIBS="-lm $LIBS" 11629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11630/* end confdefs.h. */ 11631 11632/* Override any GCC internal prototype to avoid an error. 11633 Use char because int might match the return type of a GCC 11634 builtin and then its argument prototype would still apply. */ 11635#ifdef __cplusplus 11636extern "C" 11637#endif 11638char pow (); 11639int 11640main () 11641{ 11642return pow (); 11643 ; 11644 return 0; 11645} 11646_ACEOF 11647if ac_fn_c_try_link "$LINENO"; then : 11648 ac_cv_lib_m_pow=yes 11649else 11650 ac_cv_lib_m_pow=no 11651fi 11652rm -f core conftest.err conftest.$ac_objext \ 11653 conftest$ac_exeext conftest.$ac_ext 11654LIBS=$ac_check_lib_save_LIBS 11655fi 11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 11657$as_echo "$ac_cv_lib_m_pow" >&6; } 11658if test "x$ac_cv_lib_m_pow" = xyes; then : 11659 LIBM="-lm" 11660fi 11661 11662 11663for ac_header in signal.h 11664do : 11665 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 11666if test "x$ac_cv_header_signal_h" = xyes; then : 11667 cat >>confdefs.h <<_ACEOF 11668#define HAVE_SIGNAL_H 1 11669_ACEOF 11670 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_SIGNAL_H" 11671fi 11672 11673done 11674 11675for ac_func in setbuf 11676do : 11677 ac_fn_c_check_func "$LINENO" "setbuf" "ac_cv_func_setbuf" 11678if test "x$ac_cv_func_setbuf" = xyes; then : 11679 cat >>confdefs.h <<_ACEOF 11680#define HAVE_SETBUF 1 11681_ACEOF 11682 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_SETBUF" 11683fi 11684done 11685 11686 11687 11688CheckVisibilityHidden 11689 11690# Check whether --enable-music-cmd was given. 11691if test "${enable_music_cmd+set}" = set; then : 11692 enableval=$enable_music_cmd; 11693else 11694 enable_music_cmd=detect 11695fi 11696 11697if test "x$enable_music_cmd" != xno; then 11698 for ac_func in fork vfork 11699do : 11700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11701ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11702if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11703 cat >>confdefs.h <<_ACEOF 11704#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11705_ACEOF 11706 11707fi 11708done 11709 11710 if test "x$ac_cv_func_fork" = "xyes"; then 11711 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_FORK" 11712 elif test "x$ac_cv_func_vfork" = "xyes"; then 11713 EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_VFORK" 11714 elif test "x$enable_music_cmd" = "xyes"; then 11715 as_fn_error $? "external music player not available on your platform" "$LINENO" 5 11716 else 11717 enable_music_cmd=no 11718 fi 11719 if test "x$enable_music_cmd" != xno; then 11720 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_CMD" 11721 fi 11722fi 11723 11724# Check whether --enable-music-wave was given. 11725if test "${enable_music_wave+set}" = set; then : 11726 enableval=$enable_music_wave; 11727else 11728 enable_music_wave=yes 11729fi 11730 11731if test x$enable_music_wave = xyes; then 11732 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_WAV" 11733fi 11734 11735# Check whether --enable-music-mod was given. 11736if test "${enable_music_mod+set}" = set; then : 11737 enableval=$enable_music_mod; 11738else 11739 enable_music_mod=yes 11740fi 11741 11742 11743# Check whether --enable-music-mod-modplug was given. 11744if test "${enable_music_mod_modplug+set}" = set; then : 11745 enableval=$enable_music_mod_modplug; 11746else 11747 enable_music_mod_modplug=yes 11748fi 11749 11750# Check whether --enable-music-mod-modplug-shared was given. 11751if test "${enable_music_mod_modplug_shared+set}" = set; then : 11752 enableval=$enable_music_mod_modplug_shared; 11753else 11754 enable_music_mod_modplug_shared=yes 11755fi 11756 11757if test x$enable_music_mod = xyes -a x$enable_music_mod_modplug = xyes; then 11758 11759pkg_failed=no 11760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MODPLUG" >&5 11761$as_echo_n "checking for MODPLUG... " >&6; } 11762 11763if test -n "$PKG_CONFIG"; then 11764 if test -n "$MODPLUG_CFLAGS"; then 11765 pkg_cv_MODPLUG_CFLAGS="$MODPLUG_CFLAGS" 11766 else 11767 if test -n "$PKG_CONFIG" && \ 11768 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.8\""; } >&5 11769 ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.8") 2>&5 11770 ac_status=$? 11771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11772 test $ac_status = 0; }; then 11773 pkg_cv_MODPLUG_CFLAGS=`$PKG_CONFIG --cflags "libmodplug >= 0.8.8" 2>/dev/null` 11774else 11775 pkg_failed=yes 11776fi 11777 fi 11778else 11779 pkg_failed=untried 11780fi 11781if test -n "$PKG_CONFIG"; then 11782 if test -n "$MODPLUG_LIBS"; then 11783 pkg_cv_MODPLUG_LIBS="$MODPLUG_LIBS" 11784 else 11785 if test -n "$PKG_CONFIG" && \ 11786 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmodplug >= 0.8.8\""; } >&5 11787 ($PKG_CONFIG --exists --print-errors "libmodplug >= 0.8.8") 2>&5 11788 ac_status=$? 11789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11790 test $ac_status = 0; }; then 11791 pkg_cv_MODPLUG_LIBS=`$PKG_CONFIG --libs "libmodplug >= 0.8.8" 2>/dev/null` 11792else 11793 pkg_failed=yes 11794fi 11795 fi 11796else 11797 pkg_failed=untried 11798fi 11799 11800 11801 11802if test $pkg_failed = yes; then 11803 11804if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11805 _pkg_short_errors_supported=yes 11806else 11807 _pkg_short_errors_supported=no 11808fi 11809 if test $_pkg_short_errors_supported = yes; then 11810 MODPLUG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmodplug >= 0.8.8"` 11811 else 11812 MODPLUG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmodplug >= 0.8.8"` 11813 fi 11814 # Put the nasty error message in config.log where it belongs 11815 echo "$MODPLUG_PKG_ERRORS" >&5 11816 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11818$as_echo "no" >&6; } 11819 ac_fn_c_check_header_mongrel "$LINENO" "libmodplug/modplug.h" "ac_cv_header_libmodplug_modplug_h" "$ac_includes_default" 11820if test "x$ac_cv_header_libmodplug_modplug_h" = xyes; then : 11821 have_libmodplug_hdr=yes 11822fi 11823 11824 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ModPlug_Load in -lmodplug" >&5 11826$as_echo_n "checking for ModPlug_Load in -lmodplug... " >&6; } 11827if ${ac_cv_lib_modplug_ModPlug_Load+:} false; then : 11828 $as_echo_n "(cached) " >&6 11829else 11830 ac_check_lib_save_LIBS=$LIBS 11831LIBS="-lmodplug $LIBS" 11832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11833/* end confdefs.h. */ 11834 11835/* Override any GCC internal prototype to avoid an error. 11836 Use char because int might match the return type of a GCC 11837 builtin and then its argument prototype would still apply. */ 11838#ifdef __cplusplus 11839extern "C" 11840#endif 11841char ModPlug_Load (); 11842int 11843main () 11844{ 11845return ModPlug_Load (); 11846 ; 11847 return 0; 11848} 11849_ACEOF 11850if ac_fn_c_try_link "$LINENO"; then : 11851 ac_cv_lib_modplug_ModPlug_Load=yes 11852else 11853 ac_cv_lib_modplug_ModPlug_Load=no 11854fi 11855rm -f core conftest.err conftest.$ac_objext \ 11856 conftest$ac_exeext conftest.$ac_ext 11857LIBS=$ac_check_lib_save_LIBS 11858fi 11859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_modplug_ModPlug_Load" >&5 11860$as_echo "$ac_cv_lib_modplug_ModPlug_Load" >&6; } 11861if test "x$ac_cv_lib_modplug_ModPlug_Load" = xyes; then : 11862 have_libmodplug_lib=yes;MODPLUG_LIBS="-lmodplug" 11863fi 11864 11865 11866elif test $pkg_failed = untried; then 11867 ac_fn_c_check_header_mongrel "$LINENO" "libmodplug/modplug.h" "ac_cv_header_libmodplug_modplug_h" "$ac_includes_default" 11868if test "x$ac_cv_header_libmodplug_modplug_h" = xyes; then : 11869 have_libmodplug_hdr=yes 11870fi 11871 11872 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ModPlug_Load in -lmodplug" >&5 11874$as_echo_n "checking for ModPlug_Load in -lmodplug... " >&6; } 11875if ${ac_cv_lib_modplug_ModPlug_Load+:} false; then : 11876 $as_echo_n "(cached) " >&6 11877else 11878 ac_check_lib_save_LIBS=$LIBS 11879LIBS="-lmodplug $LIBS" 11880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11881/* end confdefs.h. */ 11882 11883/* Override any GCC internal prototype to avoid an error. 11884 Use char because int might match the return type of a GCC 11885 builtin and then its argument prototype would still apply. */ 11886#ifdef __cplusplus 11887extern "C" 11888#endif 11889char ModPlug_Load (); 11890int 11891main () 11892{ 11893return ModPlug_Load (); 11894 ; 11895 return 0; 11896} 11897_ACEOF 11898if ac_fn_c_try_link "$LINENO"; then : 11899 ac_cv_lib_modplug_ModPlug_Load=yes 11900else 11901 ac_cv_lib_modplug_ModPlug_Load=no 11902fi 11903rm -f core conftest.err conftest.$ac_objext \ 11904 conftest$ac_exeext conftest.$ac_ext 11905LIBS=$ac_check_lib_save_LIBS 11906fi 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_modplug_ModPlug_Load" >&5 11908$as_echo "$ac_cv_lib_modplug_ModPlug_Load" >&6; } 11909if test "x$ac_cv_lib_modplug_ModPlug_Load" = xyes; then : 11910 have_libmodplug_lib=yes;MODPLUG_LIBS="-lmodplug" 11911fi 11912 11913 11914else 11915 MODPLUG_CFLAGS=$pkg_cv_MODPLUG_CFLAGS 11916 MODPLUG_LIBS=$pkg_cv_MODPLUG_LIBS 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11918$as_echo "yes" >&6; } 11919 have_libmodplug_hdr=yes 11920 have_libmodplug_lib=yes 11921 11922fi 11923 11924 if test x$have_libmodplug_hdr = xyes -a x$have_libmodplug_lib = xyes; then 11925 have_libmodplug=yes 11926 case "$host" in 11927 *-*-darwin*) 11928 modplug_lib=`find_lib libmodplug.dylib` 11929 ;; 11930 *-*-cygwin* | *-*-mingw32*) 11931 modplug_lib=`find_lib "libmodplug*.dll"` 11932 ;; 11933 *) 11934 modplug_lib=`find_lib "libmodplug[0-9]*.so.*"` 11935 if test x$modplug_lib = x; then 11936 modplug_lib=`find_lib "libmodplug.so.*"` 11937 fi 11938 ;; 11939 esac 11940 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MOD_MODPLUG $MODPLUG_CFLAGS" 11941 if test x$enable_music_mod_modplug_shared = xyes && test x$modplug_lib != x; then 11942 echo "-- dynamic libmodplug -> $modplug_lib" 11943 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMODPLUG_DYNAMIC=\\\"$modplug_lib\\\"" 11944 else 11945 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MODPLUG_LIBS" 11946 fi 11947 else 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find ModPlug library (http://modplug-xmms.sourceforge.net/)" >&5 11949$as_echo "$as_me: WARNING: *** Unable to find ModPlug library (http://modplug-xmms.sourceforge.net/)" >&2;} 11950 fi 11951fi 11952 11953# Check whether --enable-music-mod-mikmod was given. 11954if test "${enable_music_mod_mikmod+set}" = set; then : 11955 enableval=$enable_music_mod_mikmod; 11956else 11957 enable_music_mod_mikmod=no 11958fi 11959 11960# Check whether --enable-music-mod-mikmod-shared was given. 11961if test "${enable_music_mod_mikmod_shared+set}" = set; then : 11962 enableval=$enable_music_mod_mikmod_shared; 11963else 11964 enable_music_mod_mikmod_shared=yes 11965fi 11966 11967if test x$enable_music_mod = xyes -a x$enable_music_mod_mikmod = xyes; then 11968 have_libmikmod=no 11969 libmikmod_maj=3 11970 libmikmod_min=1 11971 libmikmod_rev=10 11972 libmikmod_ver="$libmikmod_maj.$libmikmod_min.$libmikmod_rev" 11973 CFLAGS_SAVED="$CFLAGS" 11974 LIBS_SAVED="$LIBS" 11975 # Extract the first word of "libmikmod-config", so it can be a program name with args. 11976set dummy libmikmod-config; ac_word=$2 11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11978$as_echo_n "checking for $ac_word... " >&6; } 11979if ${ac_cv_path_LIBMIKMOD_CONFIG+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 case $LIBMIKMOD_CONFIG in 11983 [\\/]* | ?:[\\/]*) 11984 ac_cv_path_LIBMIKMOD_CONFIG="$LIBMIKMOD_CONFIG" # Let the user override the test with a path. 11985 ;; 11986 *) 11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11988for as_dir in $PATH 11989do 11990 IFS=$as_save_IFS 11991 test -z "$as_dir" && as_dir=. 11992 for ac_exec_ext in '' $ac_executable_extensions; do 11993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11994 ac_cv_path_LIBMIKMOD_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11996 break 2 11997 fi 11998done 11999 done 12000IFS=$as_save_IFS 12001 12002 test -z "$ac_cv_path_LIBMIKMOD_CONFIG" && ac_cv_path_LIBMIKMOD_CONFIG="no" 12003 ;; 12004esac 12005fi 12006LIBMIKMOD_CONFIG=$ac_cv_path_LIBMIKMOD_CONFIG 12007if test -n "$LIBMIKMOD_CONFIG"; then 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMIKMOD_CONFIG" >&5 12009$as_echo "$LIBMIKMOD_CONFIG" >&6; } 12010else 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12012$as_echo "no" >&6; } 12013fi 12014 12015 12016 if test "$LIBMIKMOD_CONFIG" != "no" ; then 12017 CFLAGS="$CFLAGS `$LIBMIKMOD_CONFIG --cflags`" 12018 LIBS="$LIBS `$LIBMIKMOD_CONFIG --libs`" 12019 have_libmikmod=yes 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmikmod - version >= $libmikmod_ver" >&5 12021$as_echo_n "checking for libmikmod - version >= $libmikmod_ver... " >&6; } 12022 if test "$cross_compiling" = yes; then : 12023 echo $ac_n "cross compiling; assumed OK... $ac_c" 12024else 12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12026/* end confdefs.h. */ 12027 12028#include "mikmod.h" 12029#include "stdio.h" 12030 12031int main(int argc, char **argv) 12032{ 12033long maj=$libmikmod_maj,min=$libmikmod_min,rev=$libmikmod_rev,ver=MikMod_GetVersion(); 12034/*printf("(%d.%d.%d) ",ver>>16,(ver>>8)&0xff,ver&0xff);*/ 12035if(ver>=((maj<<16)|(min<<8)|(rev))) { 12036 printf("yes\n"); 12037 return 0; 12038} 12039printf("no\n*** libmikmod is older than %d.%d.%d, not using.\n",maj,min,rev); 12040return 1; 12041} 12042 12043_ACEOF 12044if ac_fn_c_try_run "$LINENO"; then : 12045 12046else 12047 have_libmikmod=no 12048fi 12049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12050 conftest.$ac_objext conftest.beam conftest.$ac_ext 12051fi 12052 12053 fi 12054 12055 if test x$have_libmikmod = xyes; then 12056 case "$host" in 12057 *-*-darwin*) 12058 mikmod_lib=`find_lib libmikmod.dylib` 12059 ;; 12060 *-*-cygwin* | *-*-mingw32*) 12061 mikmod_lib=`find_lib "libmikmod*.dll"` 12062 ;; 12063 *) 12064 mikmod_lib=`find_lib "libmikmod[0-9]*.so.*"` 12065 if test x$mikmod_lib = x; then 12066 mikmod_lib=`find_lib "libmikmod.so.*"` 12067 fi 12068 ;; 12069 esac 12070 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MOD_MIKMOD `$LIBMIKMOD_CONFIG --cflags`" 12071 if test x$enable_music_mod_mikmod_shared = xyes && test x$mikmod_lib != x; then 12072 echo "-- dynamic libmikmod -> $mikmod_lib" 12073 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMIKMOD_DYNAMIC=\\\"$mikmod_lib\\\"" 12074 else 12075 EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$LIBMIKMOD_CONFIG --libs`" 12076 fi 12077 else 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&5 12079$as_echo "$as_me: WARNING: *** Unable to find MikMod library (http://mikmod.raphnet.net/)" >&2;} 12080 fi 12081 LIBS="$LIBS_SAVED" 12082 CFLAGS="$CFLAGS_SAVED" 12083fi 12084 12085if test x$have_libmodplug != xyes -a x$have_libmikmod != xyes ; then 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MOD support disabled" >&5 12087$as_echo "$as_me: WARNING: MOD support disabled" >&2;} 12088fi 12089 12090# Check whether --enable-music-midi was given. 12091if test "${enable_music_midi+set}" = set; then : 12092 enableval=$enable_music_midi; 12093else 12094 enable_music_midi=yes 12095fi 12096 12097if test x$enable_music_midi = xyes; then 12098 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID" 12099 # Check whether --enable-music-midi-timidity was given. 12100if test "${enable_music_midi_timidity+set}" = set; then : 12101 enableval=$enable_music_midi_timidity; 12102else 12103 enable_music_midi_timidity=yes 12104fi 12105 12106 if test x$enable_music_midi_timidity = xyes; then 12107 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_TIMIDITY -I\$(srcdir)/timidity" 12108 SOURCES="$SOURCES $srcdir/timidity/*.c" 12109 fi 12110 # Check whether --enable-music-midi-native was given. 12111if test "${enable_music_midi_native+set}" = set; then : 12112 enableval=$enable_music_midi_native; 12113else 12114 enable_music_midi_native=yes 12115fi 12116 12117 if test x$enable_music_midi_native = xyes; then 12118 use_music_midi_native=no 12119 case "$host" in 12120 *mingw32ce*) 12121 use_music_midi_native=no 12122 ;; 12123 *-*-cygwin* | *-*-mingw32*) 12124 use_music_midi_native=yes 12125 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lwinmm" 12126 ;; 12127 *-*-darwin*) 12128 use_music_midi_native=yes 12129 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,CoreServices" 12130 ;; 12131 *-*-haiku*) 12132 use_music_midi_native=yes_cpp 12133 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmidi" 12134 ;; 12135 esac 12136 if test x$use_music_midi_native = xyes; then 12137 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_NATIVE -I\$(srcdir)/native_midi" 12138 SOURCES="$SOURCES $srcdir/native_midi/*.c" 12139 elif test x$use_music_midi_native = xyes_cpp; then 12140 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_NATIVE -I\$(srcdir)/native_midi" 12141 SOURCES="$SOURCES $srcdir/native_midi/*.c" 12142 SOURCES_CXX="$SOURCES_CXX $srcdir/native_midi/*.cpp" 12143 fi 12144 fi 12145 # Check whether --enable-music-midi-fluidsynth was given. 12146if test "${enable_music_midi_fluidsynth+set}" = set; then : 12147 enableval=$enable_music_midi_fluidsynth; 12148else 12149 enable_music_midi_fluidsynth=yes 12150fi 12151 12152 # Check whether --enable-music-midi-fluidsynth-shared was given. 12153if test "${enable_music_midi_fluidsynth_shared+set}" = set; then : 12154 enableval=$enable_music_midi_fluidsynth_shared; 12155else 12156 enable_music_midi_fluidsynth_shared=yes 12157fi 12158 12159 if test x$enable_music_midi_fluidsynth = xyes; then 12160 ac_fn_c_check_header_mongrel "$LINENO" "fluidsynth.h" "ac_cv_header_fluidsynth_h" "$ac_includes_default" 12161if test "x$ac_cv_header_fluidsynth_h" = xyes; then : 12162 have_fluidsynth_hdr=yes 12163fi 12164 12165 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fluid_player_add_mem in -lfluidsynth" >&5 12167$as_echo_n "checking for fluid_player_add_mem in -lfluidsynth... " >&6; } 12168if ${ac_cv_lib_fluidsynth_fluid_player_add_mem+:} false; then : 12169 $as_echo_n "(cached) " >&6 12170else 12171 ac_check_lib_save_LIBS=$LIBS 12172LIBS="-lfluidsynth $LIBS" 12173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12174/* end confdefs.h. */ 12175 12176/* Override any GCC internal prototype to avoid an error. 12177 Use char because int might match the return type of a GCC 12178 builtin and then its argument prototype would still apply. */ 12179#ifdef __cplusplus 12180extern "C" 12181#endif 12182char fluid_player_add_mem (); 12183int 12184main () 12185{ 12186return fluid_player_add_mem (); 12187 ; 12188 return 0; 12189} 12190_ACEOF 12191if ac_fn_c_try_link "$LINENO"; then : 12192 ac_cv_lib_fluidsynth_fluid_player_add_mem=yes 12193else 12194 ac_cv_lib_fluidsynth_fluid_player_add_mem=no 12195fi 12196rm -f core conftest.err conftest.$ac_objext \ 12197 conftest$ac_exeext conftest.$ac_ext 12198LIBS=$ac_check_lib_save_LIBS 12199fi 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fluidsynth_fluid_player_add_mem" >&5 12201$as_echo "$ac_cv_lib_fluidsynth_fluid_player_add_mem" >&6; } 12202if test "x$ac_cv_lib_fluidsynth_fluid_player_add_mem" = xyes; then : 12203 have_fluidsynth_lib=yes 12204fi 12205 12206 if test x$have_fluidsynth_hdr = xyes -a x$have_fluidsynth_lib = xyes; then 12207 have_fluidsynth=yes 12208 case "$host" in 12209 *-*-darwin*) 12210 fluidsynth_lib=`find_lib libfluidsynth.dylib` 12211 ;; 12212 *-*-cygwin* | *-*-mingw32*) 12213 fluidsynth_lib=`find_lib "fluidsynth*.dll"` 12214 ;; 12215 *) 12216 fluidsynth_lib=`find_lib "libfluidsynth[0-9]*.so.*"` 12217 if test x$fluidsynth_lib = x; then 12218 fluidsynth_lib=`find_lib "libfluidsynth.so.*"` 12219 fi 12220 ;; 12221 esac 12222 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MID_FLUIDSYNTH" 12223 if test x$enable_music_midi_fluidsynth_shared = xyes && test x$fluidsynth_lib != x; then 12224 echo "-- dynamic libfluidsynth -> $fluidsynth_lib" 12225 EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLUIDSYNTH_DYNAMIC=\\\"$fluidsynth_lib\\\"" 12226 else 12227 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lfluidsynth" 12228 fi 12229 else 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find FluidSynth library (http://www.fluidsynth.org/)" >&5 12231$as_echo "$as_me: WARNING: *** Unable to find FluidSynth library (http://www.fluidsynth.org/)" >&2;} 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FluidSynth support disabled" >&5 12233$as_echo "$as_me: WARNING: FluidSynth support disabled" >&2;} 12234 fi 12235 fi 12236fi 12237 12238if test x$enable_music_midi_timidity != xyes -a \ 12239 x$use_music_midi_native != xyes -a x$use_music_midi_native != xyes_cpp -a \ 12240 x$have_fluidsynth != xyes; then 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MIDI support disabled" >&5 12242$as_echo "$as_me: WARNING: MIDI support disabled" >&2;} 12243fi 12244 12245# Check whether --enable-music-ogg was given. 12246if test "${enable_music_ogg+set}" = set; then : 12247 enableval=$enable_music_ogg; 12248else 12249 enable_music_ogg=yes 12250fi 12251 12252# Check whether --enable-music-ogg-tremor was given. 12253if test "${enable_music_ogg_tremor+set}" = set; then : 12254 enableval=$enable_music_ogg_tremor; 12255else 12256 enable_music_ogg_tremor=no 12257fi 12258 12259# Check whether --enable-music-ogg-shared was given. 12260if test "${enable_music_ogg_shared+set}" = set; then : 12261 enableval=$enable_music_ogg_shared; 12262else 12263 enable_music_ogg_shared=yes 12264fi 12265 12266if test x$enable_music_ogg = xyes; then 12267 LIBS_SAVED="$LIBS" 12268 if test x$enable_music_ogg_tremor = xyes; then 12269 ac_fn_c_check_header_mongrel "$LINENO" "tremor/ivorbisfile.h" "ac_cv_header_tremor_ivorbisfile_h" "$ac_includes_default" 12270if test "x$ac_cv_header_tremor_ivorbisfile_h" = xyes; then : 12271 have_tremor_hdr=yes 12272fi 12273 12274 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open_callbacks in -lvorbisidec" >&5 12276$as_echo_n "checking for ov_open_callbacks in -lvorbisidec... " >&6; } 12277if ${ac_cv_lib_vorbisidec_ov_open_callbacks+:} false; then : 12278 $as_echo_n "(cached) " >&6 12279else 12280 ac_check_lib_save_LIBS=$LIBS 12281LIBS="-lvorbisidec -logg $LIBS" 12282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12283/* end confdefs.h. */ 12284 12285/* Override any GCC internal prototype to avoid an error. 12286 Use char because int might match the return type of a GCC 12287 builtin and then its argument prototype would still apply. */ 12288#ifdef __cplusplus 12289extern "C" 12290#endif 12291char ov_open_callbacks (); 12292int 12293main () 12294{ 12295return ov_open_callbacks (); 12296 ; 12297 return 0; 12298} 12299_ACEOF 12300if ac_fn_c_try_link "$LINENO"; then : 12301 ac_cv_lib_vorbisidec_ov_open_callbacks=yes 12302else 12303 ac_cv_lib_vorbisidec_ov_open_callbacks=no 12304fi 12305rm -f core conftest.err conftest.$ac_objext \ 12306 conftest$ac_exeext conftest.$ac_ext 12307LIBS=$ac_check_lib_save_LIBS 12308fi 12309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisidec_ov_open_callbacks" >&5 12310$as_echo "$ac_cv_lib_vorbisidec_ov_open_callbacks" >&6; } 12311if test "x$ac_cv_lib_vorbisidec_ov_open_callbacks" = xyes; then : 12312 have_tremor_lib=yes 12313fi 12314 12315 if test x$have_tremor_hdr = xyes -a x$have_tremor_lib = xyes; then 12316 case "$host" in 12317 *-*-darwin*) 12318 ogg_lib=`find_lib libvorbisidec.dylib` 12319 ;; 12320 *-*-cygwin* | *-*-mingw32*) 12321 ogg_lib=`find_lib "vorbisidec*.dll"` 12322 ;; 12323 *) 12324 ogg_lib=`find_lib "libvorbisidec[0-9]*.so.*"` 12325 if test x$ogg_lib = x; then 12326 ogg_lib=`find_lib "libvorbisidec.so.*"` 12327 fi 12328 ;; 12329 esac 12330 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_OGG -DOGG_USE_TREMOR" 12331 if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then 12332 echo "-- dynamic libvorbisidec -> $ogg_lib" 12333 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\"" 12334 else 12335 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisidec -lvorbis" 12336 fi 12337 else 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)" >&5 12339$as_echo "$as_me: WARNING: *** Unable to find Ogg Vorbis Tremor library (http://www.xiph.org/)" >&2;} 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ogg Vorbis support disabled" >&5 12341$as_echo "$as_me: WARNING: Ogg Vorbis support disabled" >&2;} 12342 fi 12343 else 12344 ac_fn_c_check_header_mongrel "$LINENO" "vorbis/vorbisfile.h" "ac_cv_header_vorbis_vorbisfile_h" "$ac_includes_default" 12345if test "x$ac_cv_header_vorbis_vorbisfile_h" = xyes; then : 12346 have_ogg_hdr=yes 12347fi 12348 12349 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ov_open_callbacks in -lvorbisfile" >&5 12351$as_echo_n "checking for ov_open_callbacks in -lvorbisfile... " >&6; } 12352if ${ac_cv_lib_vorbisfile_ov_open_callbacks+:} false; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 ac_check_lib_save_LIBS=$LIBS 12356LIBS="-lvorbisfile -lvorbis -logg -lm $LIBS" 12357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12358/* end confdefs.h. */ 12359 12360/* Override any GCC internal prototype to avoid an error. 12361 Use char because int might match the return type of a GCC 12362 builtin and then its argument prototype would still apply. */ 12363#ifdef __cplusplus 12364extern "C" 12365#endif 12366char ov_open_callbacks (); 12367int 12368main () 12369{ 12370return ov_open_callbacks (); 12371 ; 12372 return 0; 12373} 12374_ACEOF 12375if ac_fn_c_try_link "$LINENO"; then : 12376 ac_cv_lib_vorbisfile_ov_open_callbacks=yes 12377else 12378 ac_cv_lib_vorbisfile_ov_open_callbacks=no 12379fi 12380rm -f core conftest.err conftest.$ac_objext \ 12381 conftest$ac_exeext conftest.$ac_ext 12382LIBS=$ac_check_lib_save_LIBS 12383fi 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbisfile_ov_open_callbacks" >&5 12385$as_echo "$ac_cv_lib_vorbisfile_ov_open_callbacks" >&6; } 12386if test "x$ac_cv_lib_vorbisfile_ov_open_callbacks" = xyes; then : 12387 have_ogg_lib=yes 12388fi 12389 12390 if test x$have_ogg_hdr = xyes -a x$have_ogg_lib = xyes; then 12391 case "$host" in 12392 *-*-darwin*) 12393 ogg_lib=`find_lib libvorbisfile.dylib` 12394 ;; 12395 *-*-cygwin* | *-*-mingw32*) 12396 ogg_lib=`find_lib "libvorbisfile*.dll"` 12397 ;; 12398 *) 12399 ogg_lib=`find_lib "libvorbisfile[0-9]*.so.*"` 12400 if test x$ogg_lib = x; then 12401 ogg_lib=`find_lib "libvorbisfile.so.*"` 12402 fi 12403 ;; 12404 esac 12405 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_OGG" 12406 if test x$enable_music_ogg_shared = xyes && test x$ogg_lib != x; then 12407 echo "-- dynamic libvorbisfile -> $ogg_lib" 12408 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOGG_DYNAMIC=\\\"$ogg_lib\\\"" 12409 else 12410 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lvorbisfile -lvorbis" 12411 fi 12412 else 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)" >&5 12414$as_echo "$as_me: WARNING: *** Unable to find Ogg Vorbis library (http://www.xiph.org/)" >&2;} 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ogg Vorbis support disabled" >&5 12416$as_echo "$as_me: WARNING: Ogg Vorbis support disabled" >&2;} 12417 fi 12418 fi 12419 LIBS="$LIBS_SAVED" 12420fi 12421 12422libflac_ver=8 12423# Check whether --enable-music-flac was given. 12424if test "${enable_music_flac+set}" = set; then : 12425 enableval=$enable_music_flac; 12426else 12427 enable_music_flac=yes 12428fi 12429 12430# Check whether --enable-music-flac-shared was given. 12431if test "${enable_music_flac_shared+set}" = set; then : 12432 enableval=$enable_music_flac_shared; 12433else 12434 enable_music_flac_shared=yes 12435fi 12436 12437if test x$enable_music_flac = xyes; then 12438 ac_fn_c_check_header_mongrel "$LINENO" "FLAC/export.h" "ac_cv_header_FLAC_export_h" "$ac_includes_default" 12439if test "x$ac_cv_header_FLAC_export_h" = xyes; then : 12440 have_flac_export=yes 12441fi 12442 12443 12444 if test x$have_flac_export = xyes; then 12445 LIBS_SAVED="$LIBS" 12446 LIBS="-lFLAC" 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libflac so-name version >= $libflac_ver" >&5 12448$as_echo_n "checking for libflac so-name version >= $libflac_ver... " >&6; } 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451 12452#include "FLAC/export.h" 12453#include "stdio.h" 12454 12455int 12456main () 12457{ 12458 12459#if defined(FLAC_API_VERSION_CURRENT) && (FLAC_API_VERSION_CURRENT >= $libflac_ver) 12460#else 12461#error "old-flac" 12462#endif 12463 12464 ; 12465 return 0; 12466} 12467_ACEOF 12468if ac_fn_c_try_compile "$LINENO"; then : 12469 have_flac_ver=yes 12470else 12471 have_flac_ver=no 12472fi 12473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12474 LIBS="$LIBS_SAVED" 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_flac_ver" >&5 12476$as_echo "$have_flac_ver" >&6; } 12477 fi 12478 12479 if test x$have_flac_ver = xyes; then 12480 ac_fn_c_check_header_mongrel "$LINENO" "FLAC/stream_decoder.h" "ac_cv_header_FLAC_stream_decoder_h" "$ac_includes_default" 12481if test "x$ac_cv_header_FLAC_stream_decoder_h" = xyes; then : 12482 have_flac_hdr=yes 12483fi 12484 12485 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLAC__stream_decoder_new in -lFLAC" >&5 12487$as_echo_n "checking for FLAC__stream_decoder_new in -lFLAC... " >&6; } 12488if ${ac_cv_lib_FLAC_FLAC__stream_decoder_new+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490else 12491 ac_check_lib_save_LIBS=$LIBS 12492LIBS="-lFLAC $LIBS" 12493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12494/* end confdefs.h. */ 12495 12496/* Override any GCC internal prototype to avoid an error. 12497 Use char because int might match the return type of a GCC 12498 builtin and then its argument prototype would still apply. */ 12499#ifdef __cplusplus 12500extern "C" 12501#endif 12502char FLAC__stream_decoder_new (); 12503int 12504main () 12505{ 12506return FLAC__stream_decoder_new (); 12507 ; 12508 return 0; 12509} 12510_ACEOF 12511if ac_fn_c_try_link "$LINENO"; then : 12512 ac_cv_lib_FLAC_FLAC__stream_decoder_new=yes 12513else 12514 ac_cv_lib_FLAC_FLAC__stream_decoder_new=no 12515fi 12516rm -f core conftest.err conftest.$ac_objext \ 12517 conftest$ac_exeext conftest.$ac_ext 12518LIBS=$ac_check_lib_save_LIBS 12519fi 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&5 12521$as_echo "$ac_cv_lib_FLAC_FLAC__stream_decoder_new" >&6; } 12522if test "x$ac_cv_lib_FLAC_FLAC__stream_decoder_new" = xyes; then : 12523 have_flac_lib=yes 12524fi 12525 12526 if test x$have_flac_hdr = xyes -a x$have_flac_lib = xyes; then 12527 case "$host" in 12528 *-*-darwin*) 12529 flac_lib=`find_lib libFLAC.dylib` 12530 ;; 12531 *-*-cygwin* | *-*-mingw32*) 12532 flac_lib=`find_lib "libFLAC-*.dll"` 12533 ;; 12534 *) 12535 flac_lib=`find_lib "libFLAC[0-9]*.so.*"` 12536 if test x$flac_lib = x; then 12537 flac_lib=`find_lib "libFLAC.so.*"` 12538 fi 12539 ;; 12540 esac 12541 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_FLAC" 12542 if test x$enable_music_flac_shared = xyes && test x$flac_lib != x; then 12543 echo "-- dynamic libFLAC -> $flac_lib" 12544 EXTRA_CFLAGS="$EXTRA_CFLAGS -DFLAC_DYNAMIC=\\\"$flac_lib\\\"" 12545 else 12546 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lFLAC" 12547 fi 12548 fi 12549 else 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find FLAC library (http://flac.sourceforge.net/)" >&5 12551$as_echo "$as_me: WARNING: *** Unable to find FLAC library (http://flac.sourceforge.net/)" >&2;} 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FLAC support disabled" >&5 12553$as_echo "$as_me: WARNING: FLAC support disabled" >&2;} 12554 fi 12555fi 12556 12557# Check whether --enable-music-mp3 was given. 12558if test "${enable_music_mp3+set}" = set; then : 12559 enableval=$enable_music_mp3; 12560else 12561 enable_music_mp3=yes 12562fi 12563 12564 12565# Check whether --enable-music-mp3-mad-gpl was given. 12566if test "${enable_music_mp3_mad_gpl+set}" = set; then : 12567 enableval=$enable_music_mp3_mad_gpl; 12568else 12569 enable_music_mp3_mad_gpl=no 12570fi 12571 12572# Check whether --enable-music-mp3-mad-gpl-dithering was given. 12573if test "${enable_music_mp3_mad_gpl_dithering+set}" = set; then : 12574 enableval=$enable_music_mp3_mad_gpl_dithering; 12575else 12576 enable_music_mp3_mad_gpl_dithering=yes 12577fi 12578 12579if test x$enable_music_mp3 = xyes -a x$enable_music_mp3_mad_gpl = xyes; then 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmad headers" >&5 12581$as_echo_n "checking for libmad headers... " >&6; } 12582 have_libmad=no 12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12584/* end confdefs.h. */ 12585 12586 #include "mad.h" 12587 12588int 12589main () 12590{ 12591 12592 12593 ; 12594 return 0; 12595} 12596_ACEOF 12597if ac_fn_c_try_compile "$LINENO"; then : 12598 12599 have_libmad=yes 12600 12601fi 12602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libmad" >&5 12604$as_echo "$have_libmad" >&6; } 12605 if test x$have_libmad = xyes; then 12606 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MP3_MAD" 12607 if test x$enable_music_mp3_mad_gpl_dithering = xyes; then 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Using GPL libmad and MP3 dithering routines, this build of SDL_mixer is now under the GPL" >&5 12609$as_echo "$as_me: WARNING: *** Using GPL libmad and MP3 dithering routines, this build of SDL_mixer is now under the GPL" >&2;} 12610 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MP3_MAD_GPL_DITHERING" 12611 fi 12612 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmad" 12613 else 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&5 12615$as_echo "$as_me: WARNING: *** Unable to find MAD library (http://www.underbit.com/products/mad/)" >&2;} 12616 fi 12617fi 12618 12619# Check whether --enable-music-mp3-mpg123 was given. 12620if test "${enable_music_mp3_mpg123+set}" = set; then : 12621 enableval=$enable_music_mp3_mpg123; 12622else 12623 enable_music_mp3_mpg123=yes 12624fi 12625 12626# Check whether --enable-music-mp3-mpg123-shared was given. 12627if test "${enable_music_mp3_mpg123_shared+set}" = set; then : 12628 enableval=$enable_music_mp3_mpg123_shared; 12629else 12630 enable_music_mp3_mpg123_shared=yes 12631fi 12632 12633if test x$enable_music_mp3_mpg123 = xyes; then 12634 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default" 12635if test "x$ac_cv_header_mpg123_h" = xyes; then : 12636 have_mpg123_hdr=yes 12637fi 12638 12639 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_replace_reader_handle in -lmpg123" >&5 12641$as_echo_n "checking for mpg123_replace_reader_handle in -lmpg123... " >&6; } 12642if ${ac_cv_lib_mpg123_mpg123_replace_reader_handle+:} false; then : 12643 $as_echo_n "(cached) " >&6 12644else 12645 ac_check_lib_save_LIBS=$LIBS 12646LIBS="-lmpg123 $LIBS" 12647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649 12650/* Override any GCC internal prototype to avoid an error. 12651 Use char because int might match the return type of a GCC 12652 builtin and then its argument prototype would still apply. */ 12653#ifdef __cplusplus 12654extern "C" 12655#endif 12656char mpg123_replace_reader_handle (); 12657int 12658main () 12659{ 12660return mpg123_replace_reader_handle (); 12661 ; 12662 return 0; 12663} 12664_ACEOF 12665if ac_fn_c_try_link "$LINENO"; then : 12666 ac_cv_lib_mpg123_mpg123_replace_reader_handle=yes 12667else 12668 ac_cv_lib_mpg123_mpg123_replace_reader_handle=no 12669fi 12670rm -f core conftest.err conftest.$ac_objext \ 12671 conftest$ac_exeext conftest.$ac_ext 12672LIBS=$ac_check_lib_save_LIBS 12673fi 12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_replace_reader_handle" >&5 12675$as_echo "$ac_cv_lib_mpg123_mpg123_replace_reader_handle" >&6; } 12676if test "x$ac_cv_lib_mpg123_mpg123_replace_reader_handle" = xyes; then : 12677 have_mpg123_lib=yes 12678fi 12679 12680 if test x$have_mpg123_hdr = xyes -a x$have_mpg123_lib = xyes; then 12681 have_libmpg123=yes 12682 case "$host" in 12683 *-*-darwin*) 12684 mpg123_lib=`find_lib libmpg123.dylib` 12685 ;; 12686 *-*-cygwin* | *-*-mingw32*) 12687 mpg123_lib=`find_lib "libmpg123*.dll"` 12688 ;; 12689 *) 12690 mpg123_lib=`find_lib "libmpg123.so.*"` 12691 ;; 12692 esac 12693 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_MP3_MPG123" 12694 if test x$enable_music_mp3_mpg123_shared = xyes && test x$mpg123_lib != x; then 12695 echo "-- dynamic libmpg123 -> $mpg123_lib" 12696 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMPG123_DYNAMIC=\\\"$mpg123_lib\\\"" 12697 else 12698 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmpg123" 12699 fi 12700 else 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find mpg123 library (https://www.mpg123.de)" >&5 12702$as_echo "$as_me: WARNING: *** Unable to find mpg123 library (https://www.mpg123.de)" >&2;} 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mpg123 support disabled" >&5 12704$as_echo "$as_me: WARNING: mpg123 support disabled" >&2;} 12705 fi 12706fi 12707 12708if test x$have_libmad = xyes -o x$have_libmpg123 = xyes; then 12709 : 12710else 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MP3 support disabled" >&5 12712$as_echo "$as_me: WARNING: MP3 support disabled" >&2;} 12713fi 12714 12715# Check whether --enable-music-opus was given. 12716if test "${enable_music_opus+set}" = set; then : 12717 enableval=$enable_music_opus; 12718else 12719 enable_music_opus=yes 12720fi 12721 12722 12723# Check whether --enable-music-opus-shared was given. 12724if test "${enable_music_opus_shared+set}" = set; then : 12725 enableval=$enable_music_opus_shared; 12726else 12727 enable_music_opus_shared=yes 12728fi 12729 12730if test x$enable_music_opus = xyes; then 12731 LIBS_SAVED="$LIBS" 12732 12733pkg_failed=no 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPUSFILE" >&5 12735$as_echo_n "checking for OPUSFILE... " >&6; } 12736 12737if test -n "$PKG_CONFIG"; then 12738 if test -n "$OPUSFILE_CFLAGS"; then 12739 pkg_cv_OPUSFILE_CFLAGS="$OPUSFILE_CFLAGS" 12740 else 12741 if test -n "$PKG_CONFIG" && \ 12742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusfile >= 0.2\""; } >&5 12743 ($PKG_CONFIG --exists --print-errors "opusfile >= 0.2") 2>&5 12744 ac_status=$? 12745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12746 test $ac_status = 0; }; then 12747 pkg_cv_OPUSFILE_CFLAGS=`$PKG_CONFIG --cflags "opusfile >= 0.2" 2>/dev/null` 12748else 12749 pkg_failed=yes 12750fi 12751 fi 12752else 12753 pkg_failed=untried 12754fi 12755if test -n "$PKG_CONFIG"; then 12756 if test -n "$OPUSFILE_LIBS"; then 12757 pkg_cv_OPUSFILE_LIBS="$OPUSFILE_LIBS" 12758 else 12759 if test -n "$PKG_CONFIG" && \ 12760 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opusfile >= 0.2\""; } >&5 12761 ($PKG_CONFIG --exists --print-errors "opusfile >= 0.2") 2>&5 12762 ac_status=$? 12763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12764 test $ac_status = 0; }; then 12765 pkg_cv_OPUSFILE_LIBS=`$PKG_CONFIG --libs "opusfile >= 0.2" 2>/dev/null` 12766else 12767 pkg_failed=yes 12768fi 12769 fi 12770else 12771 pkg_failed=untried 12772fi 12773 12774 12775 12776if test $pkg_failed = yes; then 12777 12778if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12779 _pkg_short_errors_supported=yes 12780else 12781 _pkg_short_errors_supported=no 12782fi 12783 if test $_pkg_short_errors_supported = yes; then 12784 OPUSFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opusfile >= 0.2"` 12785 else 12786 OPUSFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opusfile >= 0.2"` 12787 fi 12788 # Put the nasty error message in config.log where it belongs 12789 echo "$OPUSFILE_PKG_ERRORS" >&5 12790 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12792$as_echo "no" >&6; } 12793 ac_fn_c_check_header_mongrel "$LINENO" "opus/opusfile.h" "ac_cv_header_opus_opusfile_h" "$ac_includes_default" 12794if test "x$ac_cv_header_opus_opusfile_h" = xyes; then : 12795 have_opusfile_hdr=yes 12796fi 12797 12798 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for op_open_callbacks in -lopusfile" >&5 12800$as_echo_n "checking for op_open_callbacks in -lopusfile... " >&6; } 12801if ${ac_cv_lib_opusfile_op_open_callbacks+:} false; then : 12802 $as_echo_n "(cached) " >&6 12803else 12804 ac_check_lib_save_LIBS=$LIBS 12805LIBS="-lopusfile -lopus -logg -lm $LIBS" 12806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12807/* end confdefs.h. */ 12808 12809/* Override any GCC internal prototype to avoid an error. 12810 Use char because int might match the return type of a GCC 12811 builtin and then its argument prototype would still apply. */ 12812#ifdef __cplusplus 12813extern "C" 12814#endif 12815char op_open_callbacks (); 12816int 12817main () 12818{ 12819return op_open_callbacks (); 12820 ; 12821 return 0; 12822} 12823_ACEOF 12824if ac_fn_c_try_link "$LINENO"; then : 12825 ac_cv_lib_opusfile_op_open_callbacks=yes 12826else 12827 ac_cv_lib_opusfile_op_open_callbacks=no 12828fi 12829rm -f core conftest.err conftest.$ac_objext \ 12830 conftest$ac_exeext conftest.$ac_ext 12831LIBS=$ac_check_lib_save_LIBS 12832fi 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opusfile_op_open_callbacks" >&5 12834$as_echo "$ac_cv_lib_opusfile_op_open_callbacks" >&6; } 12835if test "x$ac_cv_lib_opusfile_op_open_callbacks" = xyes; then : 12836 have_opusfile_lib=yes;OPUSFILE_LIBS="-lopusfile -lopus" 12837fi 12838 12839 12840elif test $pkg_failed = untried; then 12841 ac_fn_c_check_header_mongrel "$LINENO" "opus/opusfile.h" "ac_cv_header_opus_opusfile_h" "$ac_includes_default" 12842if test "x$ac_cv_header_opus_opusfile_h" = xyes; then : 12843 have_opusfile_hdr=yes 12844fi 12845 12846 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for op_open_callbacks in -lopusfile" >&5 12848$as_echo_n "checking for op_open_callbacks in -lopusfile... " >&6; } 12849if ${ac_cv_lib_opusfile_op_open_callbacks+:} false; then : 12850 $as_echo_n "(cached) " >&6 12851else 12852 ac_check_lib_save_LIBS=$LIBS 12853LIBS="-lopusfile -lopus -logg -lm $LIBS" 12854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856 12857/* Override any GCC internal prototype to avoid an error. 12858 Use char because int might match the return type of a GCC 12859 builtin and then its argument prototype would still apply. */ 12860#ifdef __cplusplus 12861extern "C" 12862#endif 12863char op_open_callbacks (); 12864int 12865main () 12866{ 12867return op_open_callbacks (); 12868 ; 12869 return 0; 12870} 12871_ACEOF 12872if ac_fn_c_try_link "$LINENO"; then : 12873 ac_cv_lib_opusfile_op_open_callbacks=yes 12874else 12875 ac_cv_lib_opusfile_op_open_callbacks=no 12876fi 12877rm -f core conftest.err conftest.$ac_objext \ 12878 conftest$ac_exeext conftest.$ac_ext 12879LIBS=$ac_check_lib_save_LIBS 12880fi 12881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opusfile_op_open_callbacks" >&5 12882$as_echo "$ac_cv_lib_opusfile_op_open_callbacks" >&6; } 12883if test "x$ac_cv_lib_opusfile_op_open_callbacks" = xyes; then : 12884 have_opusfile_lib=yes;OPUSFILE_LIBS="-lopusfile -lopus" 12885fi 12886 12887 12888else 12889 OPUSFILE_CFLAGS=$pkg_cv_OPUSFILE_CFLAGS 12890 OPUSFILE_LIBS=$pkg_cv_OPUSFILE_LIBS 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12892$as_echo "yes" >&6; } 12893 have_opusfile_hdr=yes 12894 have_opusfile_lib=yes 12895 12896fi 12897 LIBS="$LIBS_SAVED" 12898 12899 if test x$have_opusfile_hdr = xyes -a x$have_opusfile_lib = xyes; then 12900 have_opusfile=yes 12901 case "$host" in 12902 *-*-darwin*) 12903 opusfile_lib=`find_lib libopusfile.dylib` 12904 ;; 12905 *-*-cygwin* | *-*-mingw32*) 12906 opusfile_lib=`find_lib "libopusfile*.dll"` 12907 ;; 12908 *) 12909 opusfile_lib=`find_lib "libopusfile[0-9]*.so.*"` 12910 if test x$opusfile_lib = x; then 12911 opusfile_lib=`find_lib "libopusfile.so.*"` 12912 fi 12913 ;; 12914 esac 12915 EXTRA_CFLAGS="$EXTRA_CFLAGS -DMUSIC_OPUS $OPUSFILE_CFLAGS" 12916 if test x$enable_music_opus_shared = xyes && test x$opusfile_lib != x; then 12917 echo "-- dynamic opusfile -> $opusfile_lib" 12918 EXTRA_CFLAGS="$EXTRA_CFLAGS -DOPUS_DYNAMIC=\\\"$opusfile_lib\\\"" 12919 else 12920 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $OPUSFILE_LIBS" 12921 fi 12922 else 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find opusfile library (http://opus-codec.org/)" >&5 12924$as_echo "$as_me: WARNING: *** Unable to find opusfile library (http://opus-codec.org/)" >&2;} 12925 fi 12926fi 12927 12928EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBM" 12929 12930OBJECTS=`echo $SOURCES` 12931DEPENDS=`echo $SOURCES` 12932OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 12933DEPENDS=`echo "$DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\ 12934$(objects)/\2.lo: \1/\2.c\\ 12935 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'` 12936 12937OBJECTS_CXX=`echo $SOURCES_CXX` 12938DEPENDS_CXX=`echo $SOURCES_CXX` 12939OBJECTS_CXX=`echo "$OBJECTS_CXX" | sed 's,[^ ]*/\([^ ]*\)\.cpp,$(objects)/\1.lo,g'` 12940DEPENDS_CXX=`echo "$DEPENDS_CXX" | sed 's,\([^ ]*\)/\([^ ]*\)\.cpp,\\ 12941$(objects)/\2.lo: \1/\2.cpp\\ 12942 \$(LIBTOOL) --mode=compile \$(CXX) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'` 12943OBJECTS="$OBJECTS $OBJECTS_CXX" 12944DEPENDS="$DEPENDS $DEPENDS_CXX" 12945DEPENDS=`echo "$DEPENDS" | sed 's,\\$,\\\\$,g'` 12946 12947VERSION_OBJECTS=`echo $VERSION_SOURCES` 12948VERSION_DEPENDS=`echo $VERSION_SOURCES` 12949VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'` 12950VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.rc,\\ 12951$(objects)/\2.o: \1/\2.rc\\ 12952 \$(WINDRES) \$< \$@,g'` 12953VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\\$,\\\\$,g'` 12954 12955PLAYWAVE_SOURCES="$srcdir/playwave.c" 12956PLAYWAVE_OBJECTS=`echo $PLAYWAVE_SOURCES` 12957PLAYWAVE_DEPENDS=`echo $PLAYWAVE_SOURCES` 12958PLAYWAVE_OBJECTS=`echo "$PLAYWAVE_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 12959PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\ 12960$(objects)/\2.lo: \1/\2.c\\ 12961 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'` 12962PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,\\$,\\\\$,g'` 12963 12964PLAYMUS_SOURCES="$srcdir/playmus.c" 12965PLAYMUS_OBJECTS=`echo $PLAYMUS_SOURCES` 12966PLAYMUS_DEPENDS=`echo $PLAYMUS_SOURCES` 12967PLAYMUS_OBJECTS=`echo "$PLAYMUS_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'` 12968PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\([^ ]*\)/\([^ ]*\)\.c,\\ 12969$(objects)/\2.lo: \1/\2.c\\ 12970 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) '"$DEPENDENCY_TRACKING_OPTIONS"' -c \$< -o \$@,g'` 12971PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\\$,\\\\$,g'` 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988ac_config_files="$ac_config_files " 12989 12990cat >confcache <<\_ACEOF 12991# This file is a shell script that caches the results of configure 12992# tests run on this system so they can be shared between configure 12993# scripts and configure runs, see configure's option --config-cache. 12994# It is not useful on other systems. If it contains results you don't 12995# want to keep, you may remove or edit it. 12996# 12997# config.status only pays attention to the cache file if you give it 12998# the --recheck option to rerun configure. 12999# 13000# `ac_cv_env_foo' variables (set or unset) will be overridden when 13001# loading this file, other *unset* `ac_cv_foo' will be assigned the 13002# following values. 13003 13004_ACEOF 13005 13006# The following way of writing the cache mishandles newlines in values, 13007# but we know of no workaround that is simple, portable, and efficient. 13008# So, we kill variables containing newlines. 13009# Ultrix sh set writes to stderr and can't be redirected directly, 13010# and sets the high bit in the cache file unless we assign to the vars. 13011( 13012 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13013 eval ac_val=\$$ac_var 13014 case $ac_val in #( 13015 *${as_nl}*) 13016 case $ac_var in #( 13017 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13018$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13019 esac 13020 case $ac_var in #( 13021 _ | IFS | as_nl) ;; #( 13022 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13023 *) { eval $ac_var=; unset $ac_var;} ;; 13024 esac ;; 13025 esac 13026 done 13027 13028 (set) 2>&1 | 13029 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13030 *${as_nl}ac_space=\ *) 13031 # `set' does not quote correctly, so add quotes: double-quote 13032 # substitution turns \\\\ into \\, and sed turns \\ into \. 13033 sed -n \ 13034 "s/'/'\\\\''/g; 13035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13036 ;; #( 13037 *) 13038 # `set' quotes correctly as required by POSIX, so do not add quotes. 13039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13040 ;; 13041 esac | 13042 sort 13043) | 13044 sed ' 13045 /^ac_cv_env_/b end 13046 t clear 13047 :clear 13048 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13049 t end 13050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13051 :end' >>confcache 13052if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13053 if test -w "$cache_file"; then 13054 if test "x$cache_file" != "x/dev/null"; then 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13056$as_echo "$as_me: updating cache $cache_file" >&6;} 13057 if test ! -f "$cache_file" || test -h "$cache_file"; then 13058 cat confcache >"$cache_file" 13059 else 13060 case $cache_file in #( 13061 */* | ?:*) 13062 mv -f confcache "$cache_file"$$ && 13063 mv -f "$cache_file"$$ "$cache_file" ;; #( 13064 *) 13065 mv -f confcache "$cache_file" ;; 13066 esac 13067 fi 13068 fi 13069 else 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13071$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13072 fi 13073fi 13074rm -f confcache 13075 13076test "x$prefix" = xNONE && prefix=$ac_default_prefix 13077# Let make expand exec_prefix. 13078test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13079 13080# Transform confdefs.h into DEFS. 13081# Protect against shell expansion while executing Makefile rules. 13082# Protect against Makefile macro expansion. 13083# 13084# If the first sed substitution is executed (which looks for macros that 13085# take arguments), then branch to the quote section. Otherwise, 13086# look for a macro that doesn't take arguments. 13087ac_script=' 13088:mline 13089/\\$/{ 13090 N 13091 s,\\\n,, 13092 b mline 13093} 13094t clear 13095:clear 13096s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13097t quote 13098s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13099t quote 13100b any 13101:quote 13102s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13103s/\[/\\&/g 13104s/\]/\\&/g 13105s/\$/$$/g 13106H 13107:any 13108${ 13109 g 13110 s/^\n// 13111 s/\n/ /g 13112 p 13113} 13114' 13115DEFS=`sed -n "$ac_script" confdefs.h` 13116 13117 13118ac_libobjs= 13119ac_ltlibobjs= 13120U= 13121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13122 # 1. Remove the extension, and $U if already installed. 13123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13126 # will be set to the directory where LIBOBJS objects are built. 13127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13129done 13130LIBOBJS=$ac_libobjs 13131 13132LTLIBOBJS=$ac_ltlibobjs 13133 13134 13135 13136: "${CONFIG_STATUS=./config.status}" 13137ac_write_fail=0 13138ac_clean_files_save=$ac_clean_files 13139ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13140{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13141$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13142as_write_fail=0 13143cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13144#! $SHELL 13145# Generated by $as_me. 13146# Run this file to recreate the current configuration. 13147# Compiler output produced by configure, useful for debugging 13148# configure, is in config.log if it exists. 13149 13150debug=false 13151ac_cs_recheck=false 13152ac_cs_silent=false 13153 13154SHELL=\${CONFIG_SHELL-$SHELL} 13155export SHELL 13156_ASEOF 13157cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13158## -------------------- ## 13159## M4sh Initialization. ## 13160## -------------------- ## 13161 13162# Be more Bourne compatible 13163DUALCASE=1; export DUALCASE # for MKS sh 13164if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13165 emulate sh 13166 NULLCMD=: 13167 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13168 # is contrary to our usage. Disable this feature. 13169 alias -g '${1+"$@"}'='"$@"' 13170 setopt NO_GLOB_SUBST 13171else 13172 case `(set -o) 2>/dev/null` in #( 13173 *posix*) : 13174 set -o posix ;; #( 13175 *) : 13176 ;; 13177esac 13178fi 13179 13180 13181as_nl=' 13182' 13183export as_nl 13184# Printing a long string crashes Solaris 7 /usr/bin/printf. 13185as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13186as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13187as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13188# Prefer a ksh shell builtin over an external printf program on Solaris, 13189# but without wasting forks for bash or zsh. 13190if test -z "$BASH_VERSION$ZSH_VERSION" \ 13191 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13192 as_echo='print -r --' 13193 as_echo_n='print -rn --' 13194elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13195 as_echo='printf %s\n' 13196 as_echo_n='printf %s' 13197else 13198 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13199 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13200 as_echo_n='/usr/ucb/echo -n' 13201 else 13202 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13203 as_echo_n_body='eval 13204 arg=$1; 13205 case $arg in #( 13206 *"$as_nl"*) 13207 expr "X$arg" : "X\\(.*\\)$as_nl"; 13208 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13209 esac; 13210 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13211 ' 13212 export as_echo_n_body 13213 as_echo_n='sh -c $as_echo_n_body as_echo' 13214 fi 13215 export as_echo_body 13216 as_echo='sh -c $as_echo_body as_echo' 13217fi 13218 13219# The user is always right. 13220if test "${PATH_SEPARATOR+set}" != set; then 13221 PATH_SEPARATOR=: 13222 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13223 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13224 PATH_SEPARATOR=';' 13225 } 13226fi 13227 13228 13229# IFS 13230# We need space, tab and new line, in precisely that order. Quoting is 13231# there to prevent editors from complaining about space-tab. 13232# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13233# splitting by setting IFS to empty value.) 13234IFS=" "" $as_nl" 13235 13236# Find who we are. Look in the path if we contain no directory separator. 13237as_myself= 13238case $0 in #(( 13239 *[\\/]* ) as_myself=$0 ;; 13240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13241for as_dir in $PATH 13242do 13243 IFS=$as_save_IFS 13244 test -z "$as_dir" && as_dir=. 13245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13246 done 13247IFS=$as_save_IFS 13248 13249 ;; 13250esac 13251# We did not find ourselves, most probably we were run as `sh COMMAND' 13252# in which case we are not to be found in the path. 13253if test "x$as_myself" = x; then 13254 as_myself=$0 13255fi 13256if test ! -f "$as_myself"; then 13257 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13258 exit 1 13259fi 13260 13261# Unset variables that we do not need and which cause bugs (e.g. in 13262# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13263# suppresses any "Segmentation fault" message there. '((' could 13264# trigger a bug in pdksh 5.2.14. 13265for as_var in BASH_ENV ENV MAIL MAILPATH 13266do eval test x\${$as_var+set} = xset \ 13267 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13268done 13269PS1='$ ' 13270PS2='> ' 13271PS4='+ ' 13272 13273# NLS nuisances. 13274LC_ALL=C 13275export LC_ALL 13276LANGUAGE=C 13277export LANGUAGE 13278 13279# CDPATH. 13280(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13281 13282 13283# as_fn_error STATUS ERROR [LINENO LOG_FD] 13284# ---------------------------------------- 13285# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13286# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13287# script with STATUS, using 1 if that was 0. 13288as_fn_error () 13289{ 13290 as_status=$1; test $as_status -eq 0 && as_status=1 13291 if test "$4"; then 13292 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13293 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13294 fi 13295 $as_echo "$as_me: error: $2" >&2 13296 as_fn_exit $as_status 13297} # as_fn_error 13298 13299 13300# as_fn_set_status STATUS 13301# ----------------------- 13302# Set $? to STATUS, without forking. 13303as_fn_set_status () 13304{ 13305 return $1 13306} # as_fn_set_status 13307 13308# as_fn_exit STATUS 13309# ----------------- 13310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13311as_fn_exit () 13312{ 13313 set +e 13314 as_fn_set_status $1 13315 exit $1 13316} # as_fn_exit 13317 13318# as_fn_unset VAR 13319# --------------- 13320# Portably unset VAR. 13321as_fn_unset () 13322{ 13323 { eval $1=; unset $1;} 13324} 13325as_unset=as_fn_unset 13326# as_fn_append VAR VALUE 13327# ---------------------- 13328# Append the text in VALUE to the end of the definition contained in VAR. Take 13329# advantage of any shell optimizations that allow amortized linear growth over 13330# repeated appends, instead of the typical quadratic growth present in naive 13331# implementations. 13332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13333 eval 'as_fn_append () 13334 { 13335 eval $1+=\$2 13336 }' 13337else 13338 as_fn_append () 13339 { 13340 eval $1=\$$1\$2 13341 } 13342fi # as_fn_append 13343 13344# as_fn_arith ARG... 13345# ------------------ 13346# Perform arithmetic evaluation on the ARGs, and store the result in the 13347# global $as_val. Take advantage of shells that can avoid forks. The arguments 13348# must be portable across $(()) and expr. 13349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13350 eval 'as_fn_arith () 13351 { 13352 as_val=$(( $* )) 13353 }' 13354else 13355 as_fn_arith () 13356 { 13357 as_val=`expr "$@" || test $? -eq 1` 13358 } 13359fi # as_fn_arith 13360 13361 13362if expr a : '\(a\)' >/dev/null 2>&1 && 13363 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13364 as_expr=expr 13365else 13366 as_expr=false 13367fi 13368 13369if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13370 as_basename=basename 13371else 13372 as_basename=false 13373fi 13374 13375if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13376 as_dirname=dirname 13377else 13378 as_dirname=false 13379fi 13380 13381as_me=`$as_basename -- "$0" || 13382$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13383 X"$0" : 'X\(//\)$' \| \ 13384 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13385$as_echo X/"$0" | 13386 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13387 s//\1/ 13388 q 13389 } 13390 /^X\/\(\/\/\)$/{ 13391 s//\1/ 13392 q 13393 } 13394 /^X\/\(\/\).*/{ 13395 s//\1/ 13396 q 13397 } 13398 s/.*/./; q'` 13399 13400# Avoid depending upon Character Ranges. 13401as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13402as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13403as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13404as_cr_digits='0123456789' 13405as_cr_alnum=$as_cr_Letters$as_cr_digits 13406 13407ECHO_C= ECHO_N= ECHO_T= 13408case `echo -n x` in #((((( 13409-n*) 13410 case `echo 'xy\c'` in 13411 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13412 xy) ECHO_C='\c';; 13413 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13414 ECHO_T=' ';; 13415 esac;; 13416*) 13417 ECHO_N='-n';; 13418esac 13419 13420rm -f conf$$ conf$$.exe conf$$.file 13421if test -d conf$$.dir; then 13422 rm -f conf$$.dir/conf$$.file 13423else 13424 rm -f conf$$.dir 13425 mkdir conf$$.dir 2>/dev/null 13426fi 13427if (echo >conf$$.file) 2>/dev/null; then 13428 if ln -s conf$$.file conf$$ 2>/dev/null; then 13429 as_ln_s='ln -s' 13430 # ... but there are two gotchas: 13431 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13432 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13433 # In both cases, we have to default to `cp -pR'. 13434 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13435 as_ln_s='cp -pR' 13436 elif ln conf$$.file conf$$ 2>/dev/null; then 13437 as_ln_s=ln 13438 else 13439 as_ln_s='cp -pR' 13440 fi 13441else 13442 as_ln_s='cp -pR' 13443fi 13444rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13445rmdir conf$$.dir 2>/dev/null 13446 13447 13448# as_fn_mkdir_p 13449# ------------- 13450# Create "$as_dir" as a directory, including parents if necessary. 13451as_fn_mkdir_p () 13452{ 13453 13454 case $as_dir in #( 13455 -*) as_dir=./$as_dir;; 13456 esac 13457 test -d "$as_dir" || eval $as_mkdir_p || { 13458 as_dirs= 13459 while :; do 13460 case $as_dir in #( 13461 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13462 *) as_qdir=$as_dir;; 13463 esac 13464 as_dirs="'$as_qdir' $as_dirs" 13465 as_dir=`$as_dirname -- "$as_dir" || 13466$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13467 X"$as_dir" : 'X\(//\)[^/]' \| \ 13468 X"$as_dir" : 'X\(//\)$' \| \ 13469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13470$as_echo X"$as_dir" | 13471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13472 s//\1/ 13473 q 13474 } 13475 /^X\(\/\/\)[^/].*/{ 13476 s//\1/ 13477 q 13478 } 13479 /^X\(\/\/\)$/{ 13480 s//\1/ 13481 q 13482 } 13483 /^X\(\/\).*/{ 13484 s//\1/ 13485 q 13486 } 13487 s/.*/./; q'` 13488 test -d "$as_dir" && break 13489 done 13490 test -z "$as_dirs" || eval "mkdir $as_dirs" 13491 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13492 13493 13494} # as_fn_mkdir_p 13495if mkdir -p . 2>/dev/null; then 13496 as_mkdir_p='mkdir -p "$as_dir"' 13497else 13498 test -d ./-p && rmdir ./-p 13499 as_mkdir_p=false 13500fi 13501 13502 13503# as_fn_executable_p FILE 13504# ----------------------- 13505# Test if FILE is an executable regular file. 13506as_fn_executable_p () 13507{ 13508 test -f "$1" && test -x "$1" 13509} # as_fn_executable_p 13510as_test_x='test -x' 13511as_executable_p=as_fn_executable_p 13512 13513# Sed expression to map a string onto a valid CPP name. 13514as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13515 13516# Sed expression to map a string onto a valid variable name. 13517as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13518 13519 13520exec 6>&1 13521## ----------------------------------- ## 13522## Main body of $CONFIG_STATUS script. ## 13523## ----------------------------------- ## 13524_ASEOF 13525test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13526 13527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13528# Save the log message, to keep $0 and so on meaningful, and to 13529# report actual input values of CONFIG_FILES etc. instead of their 13530# values after options handling. 13531ac_log=" 13532This file was extended by $as_me, which was 13533generated by GNU Autoconf 2.69. Invocation command line was 13534 13535 CONFIG_FILES = $CONFIG_FILES 13536 CONFIG_HEADERS = $CONFIG_HEADERS 13537 CONFIG_LINKS = $CONFIG_LINKS 13538 CONFIG_COMMANDS = $CONFIG_COMMANDS 13539 $ $0 $@ 13540 13541on `(hostname || uname -n) 2>/dev/null | sed 1q` 13542" 13543 13544_ACEOF 13545 13546case $ac_config_files in *" 13547"*) set x $ac_config_files; shift; ac_config_files=$*;; 13548esac 13549 13550 13551 13552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13553# Files that config.status was made for. 13554config_files="$ac_config_files" 13555config_commands="$ac_config_commands" 13556 13557_ACEOF 13558 13559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13560ac_cs_usage="\ 13561\`$as_me' instantiates files and other configuration actions 13562from templates according to the current configuration. Unless the files 13563and actions are specified as TAGs, all are instantiated by default. 13564 13565Usage: $0 [OPTION]... [TAG]... 13566 13567 -h, --help print this help, then exit 13568 -V, --version print version number and configuration settings, then exit 13569 --config print configuration, then exit 13570 -q, --quiet, --silent 13571 do not print progress messages 13572 -d, --debug don't remove temporary files 13573 --recheck update $as_me by reconfiguring in the same conditions 13574 --file=FILE[:TEMPLATE] 13575 instantiate the configuration file FILE 13576 13577Configuration files: 13578$config_files 13579 13580Configuration commands: 13581$config_commands 13582 13583Report bugs to the package provider." 13584 13585_ACEOF 13586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13587ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13588ac_cs_version="\\ 13589config.status 13590configured by $0, generated by GNU Autoconf 2.69, 13591 with options \\"\$ac_cs_config\\" 13592 13593Copyright (C) 2012 Free Software Foundation, Inc. 13594This config.status script is free software; the Free Software Foundation 13595gives unlimited permission to copy, distribute and modify it." 13596 13597ac_pwd='$ac_pwd' 13598srcdir='$srcdir' 13599INSTALL='$INSTALL' 13600test -n "\$AWK" || AWK=awk 13601_ACEOF 13602 13603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13604# The default lists apply if the user does not specify any file. 13605ac_need_defaults=: 13606while test $# != 0 13607do 13608 case $1 in 13609 --*=?*) 13610 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13611 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13612 ac_shift=: 13613 ;; 13614 --*=) 13615 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13616 ac_optarg= 13617 ac_shift=: 13618 ;; 13619 *) 13620 ac_option=$1 13621 ac_optarg=$2 13622 ac_shift=shift 13623 ;; 13624 esac 13625 13626 case $ac_option in 13627 # Handling of the options. 13628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13629 ac_cs_recheck=: ;; 13630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13631 $as_echo "$ac_cs_version"; exit ;; 13632 --config | --confi | --conf | --con | --co | --c ) 13633 $as_echo "$ac_cs_config"; exit ;; 13634 --debug | --debu | --deb | --de | --d | -d ) 13635 debug=: ;; 13636 --file | --fil | --fi | --f ) 13637 $ac_shift 13638 case $ac_optarg in 13639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13640 '') as_fn_error $? "missing file argument" ;; 13641 esac 13642 as_fn_append CONFIG_FILES " '$ac_optarg'" 13643 ac_need_defaults=false;; 13644 --he | --h | --help | --hel | -h ) 13645 $as_echo "$ac_cs_usage"; exit ;; 13646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13647 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13648 ac_cs_silent=: ;; 13649 13650 # This is an error. 13651 -*) as_fn_error $? "unrecognized option: \`$1' 13652Try \`$0 --help' for more information." ;; 13653 13654 *) as_fn_append ac_config_targets " $1" 13655 ac_need_defaults=false ;; 13656 13657 esac 13658 shift 13659done 13660 13661ac_configure_extra_args= 13662 13663if $ac_cs_silent; then 13664 exec 6>/dev/null 13665 ac_configure_extra_args="$ac_configure_extra_args --silent" 13666fi 13667 13668_ACEOF 13669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13670if \$ac_cs_recheck; then 13671 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13672 shift 13673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13674 CONFIG_SHELL='$SHELL' 13675 export CONFIG_SHELL 13676 exec "\$@" 13677fi 13678 13679_ACEOF 13680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13681exec 5>>config.log 13682{ 13683 echo 13684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13685## Running $as_me. ## 13686_ASBOX 13687 $as_echo "$ac_log" 13688} >&5 13689 13690_ACEOF 13691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13692# 13693# INIT-COMMANDS 13694# 13695 13696 13697# The HP-UX ksh and POSIX shell print the target directory to stdout 13698# if CDPATH is set. 13699(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13700 13701sed_quote_subst='$sed_quote_subst' 13702double_quote_subst='$double_quote_subst' 13703delay_variable_subst='$delay_variable_subst' 13704macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13705macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13706AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 13707DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13708OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13709enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13710enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13711pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13712enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13713host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13714host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13715host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13716build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13717build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13718build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13719SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13720Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13721GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13722EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13723FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13724LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13725NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13726LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13727max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13728ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13729exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13730lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13731lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13732lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13733reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13734reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13735deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13736file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13737AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13738AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13739STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13740RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13741old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13742old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13743old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13744CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13745CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13746compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13747GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13748lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13749lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13750lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13751lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13752objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13753SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13754ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13755MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13756lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13757lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13758lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13759lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13760lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13761need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13762DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13763NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13764LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13765OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13766OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13767libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13768shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13769extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13770archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13771enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13772export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13773whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13774compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13775old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13776old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13777archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13778archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13779module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13780module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13781with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13782allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13783no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13784hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13785hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13786hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13787hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13788hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13789hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13790hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13791hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13792inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13793link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13794fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13795always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13796export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13797exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13798include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13799prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13800file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13801variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13802need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13803need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13804version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13805runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13806shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13807shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13808libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13809library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13810soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13811postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13812postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13813finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13814finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13815hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13816sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13817sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13818hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13819enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13820enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13821enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13822old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13823striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13824 13825LTCC='$LTCC' 13826LTCFLAGS='$LTCFLAGS' 13827compiler='$compiler_DEFAULT' 13828 13829# Quote evaled strings. 13830for var in SED \ 13831GREP \ 13832EGREP \ 13833FGREP \ 13834LD \ 13835NM \ 13836LN_S \ 13837lt_SP2NL \ 13838lt_NL2SP \ 13839reload_flag \ 13840deplibs_check_method \ 13841file_magic_cmd \ 13842AR \ 13843AR_FLAGS \ 13844STRIP \ 13845RANLIB \ 13846CC \ 13847CFLAGS \ 13848compiler \ 13849lt_cv_sys_global_symbol_pipe \ 13850lt_cv_sys_global_symbol_to_cdecl \ 13851lt_cv_sys_global_symbol_to_c_name_address \ 13852lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13853SHELL \ 13854ECHO \ 13855lt_prog_compiler_no_builtin_flag \ 13856lt_prog_compiler_wl \ 13857lt_prog_compiler_pic \ 13858lt_prog_compiler_static \ 13859lt_cv_prog_compiler_c_o \ 13860need_locks \ 13861DSYMUTIL \ 13862NMEDIT \ 13863LIPO \ 13864OTOOL \ 13865OTOOL64 \ 13866shrext_cmds \ 13867export_dynamic_flag_spec \ 13868whole_archive_flag_spec \ 13869compiler_needs_object \ 13870with_gnu_ld \ 13871allow_undefined_flag \ 13872no_undefined_flag \ 13873hardcode_libdir_flag_spec \ 13874hardcode_libdir_flag_spec_ld \ 13875hardcode_libdir_separator \ 13876fix_srcfile_path \ 13877exclude_expsyms \ 13878include_expsyms \ 13879file_list_spec \ 13880variables_saved_for_relink \ 13881libname_spec \ 13882library_names_spec \ 13883soname_spec \ 13884finish_eval \ 13885old_striplib \ 13886striplib; do 13887 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13888 *[\\\\\\\`\\"\\\$]*) 13889 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13890 ;; 13891 *) 13892 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13893 ;; 13894 esac 13895done 13896 13897# Double-quote double-evaled strings. 13898for var in reload_cmds \ 13899old_postinstall_cmds \ 13900old_postuninstall_cmds \ 13901old_archive_cmds \ 13902extract_expsyms_cmds \ 13903old_archive_from_new_cmds \ 13904old_archive_from_expsyms_cmds \ 13905archive_cmds \ 13906archive_expsym_cmds \ 13907module_cmds \ 13908module_expsym_cmds \ 13909export_symbols_cmds \ 13910prelink_cmds \ 13911postinstall_cmds \ 13912postuninstall_cmds \ 13913finish_cmds \ 13914sys_lib_search_path_spec \ 13915sys_lib_dlsearch_path_spec; do 13916 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13917 *[\\\\\\\`\\"\\\$]*) 13918 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13919 ;; 13920 *) 13921 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13922 ;; 13923 esac 13924done 13925 13926# Fix-up fallback echo if it was mangled by the above quoting rules. 13927case \$lt_ECHO in 13928*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13929 ;; 13930esac 13931 13932ac_aux_dir='$ac_aux_dir' 13933xsi_shell='$xsi_shell' 13934lt_shell_append='$lt_shell_append' 13935 13936# See if we are running on zsh, and set the options which allow our 13937# commands through without removal of \ escapes INIT. 13938if test -n "\${ZSH_VERSION+set}" ; then 13939 setopt NO_GLOB_SUBST 13940fi 13941 13942 13943 PACKAGE='$PACKAGE' 13944 VERSION='$VERSION' 13945 TIMESTAMP='$TIMESTAMP' 13946 RM='$RM' 13947 ofile='$ofile' 13948 13949 13950 13951 13952_ACEOF 13953 13954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13955 13956# Handling of arguments. 13957for ac_config_target in $ac_config_targets 13958do 13959 case $ac_config_target in 13960 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13961 13962 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13963 esac 13964done 13965 13966 13967# If the user did not use the arguments to specify the items to instantiate, 13968# then the envvar interface is used. Set only those that are not. 13969# We use the long form for the default assignment because of an extremely 13970# bizarre bug on SunOS 4.1.3. 13971if $ac_need_defaults; then 13972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13973 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13974fi 13975 13976# Have a temporary directory for convenience. Make it in the build tree 13977# simply because there is no reason against having it here, and in addition, 13978# creating and moving files from /tmp can sometimes cause problems. 13979# Hook for its removal unless debugging. 13980# Note that there is a small window in which the directory will not be cleaned: 13981# after its creation but before its name has been assigned to `$tmp'. 13982$debug || 13983{ 13984 tmp= ac_tmp= 13985 trap 'exit_status=$? 13986 : "${ac_tmp:=$tmp}" 13987 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13988' 0 13989 trap 'as_fn_exit 1' 1 2 13 15 13990} 13991# Create a (secure) tmp directory for tmp files. 13992 13993{ 13994 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13995 test -d "$tmp" 13996} || 13997{ 13998 tmp=./conf$$-$RANDOM 13999 (umask 077 && mkdir "$tmp") 14000} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14001ac_tmp=$tmp 14002 14003# Set up the scripts for CONFIG_FILES section. 14004# No need to generate them if there are no CONFIG_FILES. 14005# This happens for instance with `./config.status config.h'. 14006if test -n "$CONFIG_FILES"; then 14007 14008 14009ac_cr=`echo X | tr X '\015'` 14010# On cygwin, bash can eat \r inside `` if the user requested igncr. 14011# But we know of no other shell where ac_cr would be empty at this 14012# point, so we can use a bashism as a fallback. 14013if test "x$ac_cr" = x; then 14014 eval ac_cr=\$\'\\r\' 14015fi 14016ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14017if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14018 ac_cs_awk_cr='\\r' 14019else 14020 ac_cs_awk_cr=$ac_cr 14021fi 14022 14023echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14024_ACEOF 14025 14026 14027{ 14028 echo "cat >conf$$subs.awk <<_ACEOF" && 14029 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14030 echo "_ACEOF" 14031} >conf$$subs.sh || 14032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14033ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14034ac_delim='%!_!# ' 14035for ac_last_try in false false false false false :; do 14036 . ./conf$$subs.sh || 14037 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14038 14039 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14040 if test $ac_delim_n = $ac_delim_num; then 14041 break 14042 elif $ac_last_try; then 14043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14044 else 14045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14046 fi 14047done 14048rm -f conf$$subs.sh 14049 14050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14051cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14052_ACEOF 14053sed -n ' 14054h 14055s/^/S["/; s/!.*/"]=/ 14056p 14057g 14058s/^[^!]*!// 14059:repl 14060t repl 14061s/'"$ac_delim"'$// 14062t delim 14063:nl 14064h 14065s/\(.\{148\}\)..*/\1/ 14066t more1 14067s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14068p 14069n 14070b repl 14071:more1 14072s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14073p 14074g 14075s/.\{148\}// 14076t nl 14077:delim 14078h 14079s/\(.\{148\}\)..*/\1/ 14080t more2 14081s/["\\]/\\&/g; s/^/"/; s/$/"/ 14082p 14083b 14084:more2 14085s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14086p 14087g 14088s/.\{148\}// 14089t delim 14090' <conf$$subs.awk | sed ' 14091/^[^""]/{ 14092 N 14093 s/\n// 14094} 14095' >>$CONFIG_STATUS || ac_write_fail=1 14096rm -f conf$$subs.awk 14097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14098_ACAWK 14099cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14100 for (key in S) S_is_set[key] = 1 14101 FS = "" 14102 14103} 14104{ 14105 line = $ 0 14106 nfields = split(line, field, "@") 14107 substed = 0 14108 len = length(field[1]) 14109 for (i = 2; i < nfields; i++) { 14110 key = field[i] 14111 keylen = length(key) 14112 if (S_is_set[key]) { 14113 value = S[key] 14114 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14115 len += length(value) + length(field[++i]) 14116 substed = 1 14117 } else 14118 len += 1 + keylen 14119 } 14120 14121 print line 14122} 14123 14124_ACAWK 14125_ACEOF 14126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14127if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14128 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14129else 14130 cat 14131fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14132 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14133_ACEOF 14134 14135# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14136# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14137# trailing colons and then remove the whole line if VPATH becomes empty 14138# (actually we leave an empty line to preserve line numbers). 14139if test "x$srcdir" = x.; then 14140 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14141h 14142s/// 14143s/^/:/ 14144s/[ ]*$/:/ 14145s/:\$(srcdir):/:/g 14146s/:\${srcdir}:/:/g 14147s/:@srcdir@:/:/g 14148s/^:*// 14149s/:*$// 14150x 14151s/\(=[ ]*\).*/\1/ 14152G 14153s/\n// 14154s/^[^=]*=[ ]*$// 14155}' 14156fi 14157 14158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14159fi # test -n "$CONFIG_FILES" 14160 14161 14162eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 14163shift 14164for ac_tag 14165do 14166 case $ac_tag in 14167 :[FHLC]) ac_mode=$ac_tag; continue;; 14168 esac 14169 case $ac_mode$ac_tag in 14170 :[FHL]*:*);; 14171 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14172 :[FH]-) ac_tag=-:-;; 14173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14174 esac 14175 ac_save_IFS=$IFS 14176 IFS=: 14177 set x $ac_tag 14178 IFS=$ac_save_IFS 14179 shift 14180 ac_file=$1 14181 shift 14182 14183 case $ac_mode in 14184 :L) ac_source=$1;; 14185 :[FH]) 14186 ac_file_inputs= 14187 for ac_f 14188 do 14189 case $ac_f in 14190 -) ac_f="$ac_tmp/stdin";; 14191 *) # Look for the file first in the build tree, then in the source tree 14192 # (if the path is not absolute). The absolute path cannot be DOS-style, 14193 # because $ac_f cannot contain `:'. 14194 test -f "$ac_f" || 14195 case $ac_f in 14196 [\\/$]*) false;; 14197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14198 esac || 14199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14200 esac 14201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14202 as_fn_append ac_file_inputs " '$ac_f'" 14203 done 14204 14205 # Let's still pretend it is `configure' which instantiates (i.e., don't 14206 # use $as_me), people would be surprised to read: 14207 # /* config.h. Generated by config.status. */ 14208 configure_input='Generated from '` 14209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14210 `' by configure.' 14211 if test x"$ac_file" != x-; then 14212 configure_input="$ac_file. $configure_input" 14213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14214$as_echo "$as_me: creating $ac_file" >&6;} 14215 fi 14216 # Neutralize special characters interpreted by sed in replacement strings. 14217 case $configure_input in #( 14218 *\&* | *\|* | *\\* ) 14219 ac_sed_conf_input=`$as_echo "$configure_input" | 14220 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14221 *) ac_sed_conf_input=$configure_input;; 14222 esac 14223 14224 case $ac_tag in 14225 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14227 esac 14228 ;; 14229 esac 14230 14231 ac_dir=`$as_dirname -- "$ac_file" || 14232$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14233 X"$ac_file" : 'X\(//\)[^/]' \| \ 14234 X"$ac_file" : 'X\(//\)$' \| \ 14235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14236$as_echo X"$ac_file" | 14237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14238 s//\1/ 14239 q 14240 } 14241 /^X\(\/\/\)[^/].*/{ 14242 s//\1/ 14243 q 14244 } 14245 /^X\(\/\/\)$/{ 14246 s//\1/ 14247 q 14248 } 14249 /^X\(\/\).*/{ 14250 s//\1/ 14251 q 14252 } 14253 s/.*/./; q'` 14254 as_dir="$ac_dir"; as_fn_mkdir_p 14255 ac_builddir=. 14256 14257case "$ac_dir" in 14258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14259*) 14260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14261 # A ".." for each directory in $ac_dir_suffix. 14262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14263 case $ac_top_builddir_sub in 14264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14266 esac ;; 14267esac 14268ac_abs_top_builddir=$ac_pwd 14269ac_abs_builddir=$ac_pwd$ac_dir_suffix 14270# for backward compatibility: 14271ac_top_builddir=$ac_top_build_prefix 14272 14273case $srcdir in 14274 .) # We are building in place. 14275 ac_srcdir=. 14276 ac_top_srcdir=$ac_top_builddir_sub 14277 ac_abs_top_srcdir=$ac_pwd ;; 14278 [\\/]* | ?:[\\/]* ) # Absolute name. 14279 ac_srcdir=$srcdir$ac_dir_suffix; 14280 ac_top_srcdir=$srcdir 14281 ac_abs_top_srcdir=$srcdir ;; 14282 *) # Relative name. 14283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14284 ac_top_srcdir=$ac_top_build_prefix$srcdir 14285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14286esac 14287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14288 14289 14290 case $ac_mode in 14291 :F) 14292 # 14293 # CONFIG_FILE 14294 # 14295 14296 case $INSTALL in 14297 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14298 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14299 esac 14300_ACEOF 14301 14302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14303# If the template does not know about datarootdir, expand it. 14304# FIXME: This hack should be removed a few years after 2.60. 14305ac_datarootdir_hack=; ac_datarootdir_seen= 14306ac_sed_dataroot=' 14307/datarootdir/ { 14308 p 14309 q 14310} 14311/@datadir@/p 14312/@docdir@/p 14313/@infodir@/p 14314/@localedir@/p 14315/@mandir@/p' 14316case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14317*datarootdir*) ac_datarootdir_seen=yes;; 14318*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14320$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14321_ACEOF 14322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14323 ac_datarootdir_hack=' 14324 s&@datadir@&$datadir&g 14325 s&@docdir@&$docdir&g 14326 s&@infodir@&$infodir&g 14327 s&@localedir@&$localedir&g 14328 s&@mandir@&$mandir&g 14329 s&\\\${datarootdir}&$datarootdir&g' ;; 14330esac 14331_ACEOF 14332 14333# Neutralize VPATH when `$srcdir' = `.'. 14334# Shell code in configure.ac might set extrasub. 14335# FIXME: do we really want to maintain this feature? 14336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14337ac_sed_extra="$ac_vpsub 14338$extrasub 14339_ACEOF 14340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14341:t 14342/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14343s|@configure_input@|$ac_sed_conf_input|;t t 14344s&@top_builddir@&$ac_top_builddir_sub&;t t 14345s&@top_build_prefix@&$ac_top_build_prefix&;t t 14346s&@srcdir@&$ac_srcdir&;t t 14347s&@abs_srcdir@&$ac_abs_srcdir&;t t 14348s&@top_srcdir@&$ac_top_srcdir&;t t 14349s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14350s&@builddir@&$ac_builddir&;t t 14351s&@abs_builddir@&$ac_abs_builddir&;t t 14352s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14353s&@INSTALL@&$ac_INSTALL&;t t 14354$ac_datarootdir_hack 14355" 14356eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14357 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14358 14359test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14360 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14361 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14362 "$ac_tmp/out"`; test -z "$ac_out"; } && 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14364which seems to be undefined. Please make sure it is defined" >&5 14365$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14366which seems to be undefined. Please make sure it is defined" >&2;} 14367 14368 rm -f "$ac_tmp/stdin" 14369 case $ac_file in 14370 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14371 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14372 esac \ 14373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14374 ;; 14375 14376 14377 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14378$as_echo "$as_me: executing $ac_file commands" >&6;} 14379 ;; 14380 esac 14381 14382 14383 case $ac_file$ac_mode in 14384 "libtool":C) 14385 14386 # See if we are running on zsh, and set the options which allow our 14387 # commands through without removal of \ escapes. 14388 if test -n "${ZSH_VERSION+set}" ; then 14389 setopt NO_GLOB_SUBST 14390 fi 14391 14392 cfgfile="${ofile}T" 14393 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14394 $RM "$cfgfile" 14395 14396 cat <<_LT_EOF >> "$cfgfile" 14397#! $SHELL 14398 14399# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14400# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14401# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14402# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14403# 14404# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14405# 2006, 2007, 2008 Free Software Foundation, Inc. 14406# Written by Gordon Matzigkeit, 1996 14407# 14408# This file is part of GNU Libtool. 14409# 14410# GNU Libtool is free software; you can redistribute it and/or 14411# modify it under the terms of the GNU General Public License as 14412# published by the Free Software Foundation; either version 2 of 14413# the License, or (at your option) any later version. 14414# 14415# As a special exception to the GNU General Public License, 14416# if you distribute this file as part of a program or library that 14417# is built using GNU Libtool, you may include this file under the 14418# same distribution terms that you use for the rest of that program. 14419# 14420# GNU Libtool is distributed in the hope that it will be useful, 14421# but WITHOUT ANY WARRANTY; without even the implied warranty of 14422# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14423# GNU General Public License for more details. 14424# 14425# You should have received a copy of the GNU General Public License 14426# along with GNU Libtool; see the file COPYING. If not, a copy 14427# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14428# obtained by writing to the Free Software Foundation, Inc., 14429# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14430 14431 14432# The names of the tagged configurations supported by this script. 14433available_tags="" 14434 14435# ### BEGIN LIBTOOL CONFIG 14436 14437# Which release of libtool.m4 was used? 14438macro_version=$macro_version 14439macro_revision=$macro_revision 14440 14441# Assembler program. 14442AS=$AS 14443 14444# DLL creation program. 14445DLLTOOL=$DLLTOOL 14446 14447# Object dumper program. 14448OBJDUMP=$OBJDUMP 14449 14450# Whether or not to build shared libraries. 14451build_libtool_libs=$enable_shared 14452 14453# Whether or not to build static libraries. 14454build_old_libs=$enable_static 14455 14456# What type of objects to build. 14457pic_mode=$pic_mode 14458 14459# Whether or not to optimize for fast installation. 14460fast_install=$enable_fast_install 14461 14462# The host system. 14463host_alias=$host_alias 14464host=$host 14465host_os=$host_os 14466 14467# The build system. 14468build_alias=$build_alias 14469build=$build 14470build_os=$build_os 14471 14472# A sed program that does not truncate output. 14473SED=$lt_SED 14474 14475# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14476Xsed="\$SED -e 1s/^X//" 14477 14478# A grep program that handles long lines. 14479GREP=$lt_GREP 14480 14481# An ERE matcher. 14482EGREP=$lt_EGREP 14483 14484# A literal string matcher. 14485FGREP=$lt_FGREP 14486 14487# A BSD- or MS-compatible name lister. 14488NM=$lt_NM 14489 14490# Whether we need soft or hard links. 14491LN_S=$lt_LN_S 14492 14493# What is the maximum length of a command? 14494max_cmd_len=$max_cmd_len 14495 14496# Object file suffix (normally "o"). 14497objext=$ac_objext 14498 14499# Executable file suffix (normally ""). 14500exeext=$exeext 14501 14502# whether the shell understands "unset". 14503lt_unset=$lt_unset 14504 14505# turn spaces into newlines. 14506SP2NL=$lt_lt_SP2NL 14507 14508# turn newlines into spaces. 14509NL2SP=$lt_lt_NL2SP 14510 14511# How to create reloadable object files. 14512reload_flag=$lt_reload_flag 14513reload_cmds=$lt_reload_cmds 14514 14515# Method to check whether dependent libraries are shared objects. 14516deplibs_check_method=$lt_deplibs_check_method 14517 14518# Command to use when deplibs_check_method == "file_magic". 14519file_magic_cmd=$lt_file_magic_cmd 14520 14521# The archiver. 14522AR=$lt_AR 14523AR_FLAGS=$lt_AR_FLAGS 14524 14525# A symbol stripping program. 14526STRIP=$lt_STRIP 14527 14528# Commands used to install an old-style archive. 14529RANLIB=$lt_RANLIB 14530old_postinstall_cmds=$lt_old_postinstall_cmds 14531old_postuninstall_cmds=$lt_old_postuninstall_cmds 14532 14533# A C compiler. 14534LTCC=$lt_CC 14535 14536# LTCC compiler flags. 14537LTCFLAGS=$lt_CFLAGS 14538 14539# Take the output of nm and produce a listing of raw symbols and C names. 14540global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14541 14542# Transform the output of nm in a proper C declaration. 14543global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14544 14545# Transform the output of nm in a C name address pair. 14546global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14547 14548# Transform the output of nm in a C name address pair when lib prefix is needed. 14549global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14550 14551# The name of the directory that contains temporary libtool files. 14552objdir=$objdir 14553 14554# Shell to use when invoking shell scripts. 14555SHELL=$lt_SHELL 14556 14557# An echo program that does not interpret backslashes. 14558ECHO=$lt_ECHO 14559 14560# Used to examine libraries when file_magic_cmd begins with "file". 14561MAGIC_CMD=$MAGIC_CMD 14562 14563# Must we lock files when doing compilation? 14564need_locks=$lt_need_locks 14565 14566# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14567DSYMUTIL=$lt_DSYMUTIL 14568 14569# Tool to change global to local symbols on Mac OS X. 14570NMEDIT=$lt_NMEDIT 14571 14572# Tool to manipulate fat objects and archives on Mac OS X. 14573LIPO=$lt_LIPO 14574 14575# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14576OTOOL=$lt_OTOOL 14577 14578# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14579OTOOL64=$lt_OTOOL64 14580 14581# Old archive suffix (normally "a"). 14582libext=$libext 14583 14584# Shared library suffix (normally ".so"). 14585shrext_cmds=$lt_shrext_cmds 14586 14587# The commands to extract the exported symbol list from a shared archive. 14588extract_expsyms_cmds=$lt_extract_expsyms_cmds 14589 14590# Variables whose values should be saved in libtool wrapper scripts and 14591# restored at link time. 14592variables_saved_for_relink=$lt_variables_saved_for_relink 14593 14594# Do we need the "lib" prefix for modules? 14595need_lib_prefix=$need_lib_prefix 14596 14597# Do we need a version for libraries? 14598need_version=$need_version 14599 14600# Library versioning type. 14601version_type=$version_type 14602 14603# Shared library runtime path variable. 14604runpath_var=$runpath_var 14605 14606# Shared library path variable. 14607shlibpath_var=$shlibpath_var 14608 14609# Is shlibpath searched before the hard-coded library search path? 14610shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14611 14612# Format of library name prefix. 14613libname_spec=$lt_libname_spec 14614 14615# List of archive names. First name is the real one, the rest are links. 14616# The last name is the one that the linker finds with -lNAME 14617library_names_spec=$lt_library_names_spec 14618 14619# The coded name of the library, if different from the real name. 14620soname_spec=$lt_soname_spec 14621 14622# Command to use after installation of a shared archive. 14623postinstall_cmds=$lt_postinstall_cmds 14624 14625# Command to use after uninstallation of a shared archive. 14626postuninstall_cmds=$lt_postuninstall_cmds 14627 14628# Commands used to finish a libtool library installation in a directory. 14629finish_cmds=$lt_finish_cmds 14630 14631# As "finish_cmds", except a single script fragment to be evaled but 14632# not shown. 14633finish_eval=$lt_finish_eval 14634 14635# Whether we should hardcode library paths into libraries. 14636hardcode_into_libs=$hardcode_into_libs 14637 14638# Compile-time system search path for libraries. 14639sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14640 14641# Run-time system search path for libraries. 14642sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14643 14644# Whether dlopen is supported. 14645dlopen_support=$enable_dlopen 14646 14647# Whether dlopen of programs is supported. 14648dlopen_self=$enable_dlopen_self 14649 14650# Whether dlopen of statically linked programs is supported. 14651dlopen_self_static=$enable_dlopen_self_static 14652 14653# Commands to strip libraries. 14654old_striplib=$lt_old_striplib 14655striplib=$lt_striplib 14656 14657 14658# The linker used to build libraries. 14659LD=$lt_LD 14660 14661# Commands used to build an old-style archive. 14662old_archive_cmds=$lt_old_archive_cmds 14663 14664# A language specific compiler. 14665CC=$lt_compiler 14666 14667# Is the compiler the GNU compiler? 14668with_gcc=$GCC 14669 14670# Compiler flag to turn off builtin functions. 14671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14672 14673# How to pass a linker flag through the compiler. 14674wl=$lt_lt_prog_compiler_wl 14675 14676# Additional compiler flags for building library objects. 14677pic_flag=$lt_lt_prog_compiler_pic 14678 14679# Compiler flag to prevent dynamic linking. 14680link_static_flag=$lt_lt_prog_compiler_static 14681 14682# Does compiler simultaneously support -c and -o options? 14683compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14684 14685# Whether or not to add -lc for building shared libraries. 14686build_libtool_need_lc=$archive_cmds_need_lc 14687 14688# Whether or not to disallow shared libs when runtime libs are static. 14689allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14690 14691# Compiler flag to allow reflexive dlopens. 14692export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14693 14694# Compiler flag to generate shared objects directly from archives. 14695whole_archive_flag_spec=$lt_whole_archive_flag_spec 14696 14697# Whether the compiler copes with passing no objects directly. 14698compiler_needs_object=$lt_compiler_needs_object 14699 14700# Create an old-style archive from a shared archive. 14701old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14702 14703# Create a temporary old-style archive to link instead of a shared archive. 14704old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14705 14706# Commands used to build a shared archive. 14707archive_cmds=$lt_archive_cmds 14708archive_expsym_cmds=$lt_archive_expsym_cmds 14709 14710# Commands used to build a loadable module if different from building 14711# a shared archive. 14712module_cmds=$lt_module_cmds 14713module_expsym_cmds=$lt_module_expsym_cmds 14714 14715# Whether we are building with GNU ld or not. 14716with_gnu_ld=$lt_with_gnu_ld 14717 14718# Flag that allows shared libraries with undefined symbols to be built. 14719allow_undefined_flag=$lt_allow_undefined_flag 14720 14721# Flag that enforces no undefined symbols. 14722no_undefined_flag=$lt_no_undefined_flag 14723 14724# Flag to hardcode \$libdir into a binary during linking. 14725# This must work even if \$libdir does not exist 14726hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14727 14728# If ld is used when linking, flag to hardcode \$libdir into a binary 14729# during linking. This must work even if \$libdir does not exist. 14730hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14731 14732# Whether we need a single "-rpath" flag with a separated argument. 14733hardcode_libdir_separator=$lt_hardcode_libdir_separator 14734 14735# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14736# DIR into the resulting binary. 14737hardcode_direct=$hardcode_direct 14738 14739# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14740# DIR into the resulting binary and the resulting library dependency is 14741# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14742# library is relocated. 14743hardcode_direct_absolute=$hardcode_direct_absolute 14744 14745# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14746# into the resulting binary. 14747hardcode_minus_L=$hardcode_minus_L 14748 14749# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14750# into the resulting binary. 14751hardcode_shlibpath_var=$hardcode_shlibpath_var 14752 14753# Set to "yes" if building a shared library automatically hardcodes DIR 14754# into the library and all subsequent libraries and executables linked 14755# against it. 14756hardcode_automatic=$hardcode_automatic 14757 14758# Set to yes if linker adds runtime paths of dependent libraries 14759# to runtime path list. 14760inherit_rpath=$inherit_rpath 14761 14762# Whether libtool must link a program against all its dependency libraries. 14763link_all_deplibs=$link_all_deplibs 14764 14765# Fix the shell variable \$srcfile for the compiler. 14766fix_srcfile_path=$lt_fix_srcfile_path 14767 14768# Set to "yes" if exported symbols are required. 14769always_export_symbols=$always_export_symbols 14770 14771# The commands to list exported symbols. 14772export_symbols_cmds=$lt_export_symbols_cmds 14773 14774# Symbols that should not be listed in the preloaded symbols. 14775exclude_expsyms=$lt_exclude_expsyms 14776 14777# Symbols that must always be exported. 14778include_expsyms=$lt_include_expsyms 14779 14780# Commands necessary for linking programs (against libraries) with templates. 14781prelink_cmds=$lt_prelink_cmds 14782 14783# Specify filename containing input files. 14784file_list_spec=$lt_file_list_spec 14785 14786# How to hardcode a shared library path into an executable. 14787hardcode_action=$hardcode_action 14788 14789# ### END LIBTOOL CONFIG 14790 14791_LT_EOF 14792 14793 case $host_os in 14794 aix3*) 14795 cat <<\_LT_EOF >> "$cfgfile" 14796# AIX sometimes has problems with the GCC collect2 program. For some 14797# reason, if we set the COLLECT_NAMES environment variable, the problems 14798# vanish in a puff of smoke. 14799if test "X${COLLECT_NAMES+set}" != Xset; then 14800 COLLECT_NAMES= 14801 export COLLECT_NAMES 14802fi 14803_LT_EOF 14804 ;; 14805 esac 14806 14807 14808ltmain="$ac_aux_dir/ltmain.sh" 14809 14810 14811 # We use sed instead of cat because bash on DJGPP gets confused if 14812 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14813 # text mode, it properly converts lines to CR/LF. This bash problem 14814 # is reportedly fixed, but why not run on old versions too? 14815 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14816 || (rm -f "$cfgfile"; exit 1) 14817 14818 case $xsi_shell in 14819 yes) 14820 cat << \_LT_EOF >> "$cfgfile" 14821 14822# func_dirname file append nondir_replacement 14823# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14824# otherwise set result to NONDIR_REPLACEMENT. 14825func_dirname () 14826{ 14827 case ${1} in 14828 */*) func_dirname_result="${1%/*}${2}" ;; 14829 * ) func_dirname_result="${3}" ;; 14830 esac 14831} 14832 14833# func_basename file 14834func_basename () 14835{ 14836 func_basename_result="${1##*/}" 14837} 14838 14839# func_dirname_and_basename file append nondir_replacement 14840# perform func_basename and func_dirname in a single function 14841# call: 14842# dirname: Compute the dirname of FILE. If nonempty, 14843# add APPEND to the result, otherwise set result 14844# to NONDIR_REPLACEMENT. 14845# value returned in "$func_dirname_result" 14846# basename: Compute filename of FILE. 14847# value retuned in "$func_basename_result" 14848# Implementation must be kept synchronized with func_dirname 14849# and func_basename. For efficiency, we do not delegate to 14850# those functions but instead duplicate the functionality here. 14851func_dirname_and_basename () 14852{ 14853 case ${1} in 14854 */*) func_dirname_result="${1%/*}${2}" ;; 14855 * ) func_dirname_result="${3}" ;; 14856 esac 14857 func_basename_result="${1##*/}" 14858} 14859 14860# func_stripname prefix suffix name 14861# strip PREFIX and SUFFIX off of NAME. 14862# PREFIX and SUFFIX must not contain globbing or regex special 14863# characters, hashes, percent signs, but SUFFIX may contain a leading 14864# dot (in which case that matches only a dot). 14865func_stripname () 14866{ 14867 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14868 # positional parameters, so assign one to ordinary parameter first. 14869 func_stripname_result=${3} 14870 func_stripname_result=${func_stripname_result#"${1}"} 14871 func_stripname_result=${func_stripname_result%"${2}"} 14872} 14873 14874# func_opt_split 14875func_opt_split () 14876{ 14877 func_opt_split_opt=${1%%=*} 14878 func_opt_split_arg=${1#*=} 14879} 14880 14881# func_lo2o object 14882func_lo2o () 14883{ 14884 case ${1} in 14885 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14886 *) func_lo2o_result=${1} ;; 14887 esac 14888} 14889 14890# func_xform libobj-or-source 14891func_xform () 14892{ 14893 func_xform_result=${1%.*}.lo 14894} 14895 14896# func_arith arithmetic-term... 14897func_arith () 14898{ 14899 func_arith_result=$(( $* )) 14900} 14901 14902# func_len string 14903# STRING may not start with a hyphen. 14904func_len () 14905{ 14906 func_len_result=${#1} 14907} 14908 14909_LT_EOF 14910 ;; 14911 *) # Bourne compatible functions. 14912 cat << \_LT_EOF >> "$cfgfile" 14913 14914# func_dirname file append nondir_replacement 14915# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14916# otherwise set result to NONDIR_REPLACEMENT. 14917func_dirname () 14918{ 14919 # Extract subdirectory from the argument. 14920 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14921 if test "X$func_dirname_result" = "X${1}"; then 14922 func_dirname_result="${3}" 14923 else 14924 func_dirname_result="$func_dirname_result${2}" 14925 fi 14926} 14927 14928# func_basename file 14929func_basename () 14930{ 14931 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14932} 14933 14934 14935# func_stripname prefix suffix name 14936# strip PREFIX and SUFFIX off of NAME. 14937# PREFIX and SUFFIX must not contain globbing or regex special 14938# characters, hashes, percent signs, but SUFFIX may contain a leading 14939# dot (in which case that matches only a dot). 14940# func_strip_suffix prefix name 14941func_stripname () 14942{ 14943 case ${2} in 14944 .*) func_stripname_result=`$ECHO "X${3}" \ 14945 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14946 *) func_stripname_result=`$ECHO "X${3}" \ 14947 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14948 esac 14949} 14950 14951# sed scripts: 14952my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14953my_sed_long_arg='1s/^-[^=]*=//' 14954 14955# func_opt_split 14956func_opt_split () 14957{ 14958 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14959 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14960} 14961 14962# func_lo2o object 14963func_lo2o () 14964{ 14965 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14966} 14967 14968# func_xform libobj-or-source 14969func_xform () 14970{ 14971 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14972} 14973 14974# func_arith arithmetic-term... 14975func_arith () 14976{ 14977 func_arith_result=`expr "$@"` 14978} 14979 14980# func_len string 14981# STRING may not start with a hyphen. 14982func_len () 14983{ 14984 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14985} 14986 14987_LT_EOF 14988esac 14989 14990case $lt_shell_append in 14991 yes) 14992 cat << \_LT_EOF >> "$cfgfile" 14993 14994# func_append var value 14995# Append VALUE to the end of shell variable VAR. 14996func_append () 14997{ 14998 eval "$1+=\$2" 14999} 15000_LT_EOF 15001 ;; 15002 *) 15003 cat << \_LT_EOF >> "$cfgfile" 15004 15005# func_append var value 15006# Append VALUE to the end of shell variable VAR. 15007func_append () 15008{ 15009 eval "$1=\$$1\$2" 15010} 15011 15012_LT_EOF 15013 ;; 15014 esac 15015 15016 15017 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15018 || (rm -f "$cfgfile"; exit 1) 15019 15020 mv -f "$cfgfile" "$ofile" || 15021 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15022 chmod +x "$ofile" 15023 15024 ;; 15025 15026 esac 15027done # for ac_tag 15028 15029 15030as_fn_exit 0 15031_ACEOF 15032ac_clean_files=$ac_clean_files_save 15033 15034test $ac_write_fail = 0 || 15035 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15036 15037 15038# configure is writing to config.log, and then calls config.status. 15039# config.status does its own redirection, appending to config.log. 15040# Unfortunately, on DOS this fails, as config.log is still kept open 15041# by configure, so config.status won't be able to write to it; its 15042# output is simply discarded. So we exec the FD to /dev/null, 15043# effectively closing config.log, so it can be properly (re)opened and 15044# appended to by config.status. When coming back to configure, we 15045# need to make the FD available again. 15046if test "$no_create" != yes; then 15047 ac_cs_success=: 15048 ac_config_status_args= 15049 test "$silent" = yes && 15050 ac_config_status_args="$ac_config_status_args --quiet" 15051 exec 5>/dev/null 15052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15053 exec 5>>config.log 15054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15055 # would make configure fail if this is the last instruction. 15056 $ac_cs_success || as_fn_exit 1 15057fi 15058if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15060$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15061fi 15062 15063ac_config_files="$ac_config_files Makefile SDL2_mixer.spec SDL2_mixer.pc" 15064 15065ac_config_commands="$ac_config_commands default" 15066 15067cat >confcache <<\_ACEOF 15068# This file is a shell script that caches the results of configure 15069# tests run on this system so they can be shared between configure 15070# scripts and configure runs, see configure's option --config-cache. 15071# It is not useful on other systems. If it contains results you don't 15072# want to keep, you may remove or edit it. 15073# 15074# config.status only pays attention to the cache file if you give it 15075# the --recheck option to rerun configure. 15076# 15077# `ac_cv_env_foo' variables (set or unset) will be overridden when 15078# loading this file, other *unset* `ac_cv_foo' will be assigned the 15079# following values. 15080 15081_ACEOF 15082 15083# The following way of writing the cache mishandles newlines in values, 15084# but we know of no workaround that is simple, portable, and efficient. 15085# So, we kill variables containing newlines. 15086# Ultrix sh set writes to stderr and can't be redirected directly, 15087# and sets the high bit in the cache file unless we assign to the vars. 15088( 15089 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15090 eval ac_val=\$$ac_var 15091 case $ac_val in #( 15092 *${as_nl}*) 15093 case $ac_var in #( 15094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15095$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15096 esac 15097 case $ac_var in #( 15098 _ | IFS | as_nl) ;; #( 15099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15100 *) { eval $ac_var=; unset $ac_var;} ;; 15101 esac ;; 15102 esac 15103 done 15104 15105 (set) 2>&1 | 15106 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15107 *${as_nl}ac_space=\ *) 15108 # `set' does not quote correctly, so add quotes: double-quote 15109 # substitution turns \\\\ into \\, and sed turns \\ into \. 15110 sed -n \ 15111 "s/'/'\\\\''/g; 15112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15113 ;; #( 15114 *) 15115 # `set' quotes correctly as required by POSIX, so do not add quotes. 15116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15117 ;; 15118 esac | 15119 sort 15120) | 15121 sed ' 15122 /^ac_cv_env_/b end 15123 t clear 15124 :clear 15125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15126 t end 15127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15128 :end' >>confcache 15129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15130 if test -w "$cache_file"; then 15131 if test "x$cache_file" != "x/dev/null"; then 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15133$as_echo "$as_me: updating cache $cache_file" >&6;} 15134 if test ! -f "$cache_file" || test -h "$cache_file"; then 15135 cat confcache >"$cache_file" 15136 else 15137 case $cache_file in #( 15138 */* | ?:*) 15139 mv -f confcache "$cache_file"$$ && 15140 mv -f "$cache_file"$$ "$cache_file" ;; #( 15141 *) 15142 mv -f confcache "$cache_file" ;; 15143 esac 15144 fi 15145 fi 15146 else 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15148$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15149 fi 15150fi 15151rm -f confcache 15152 15153test "x$prefix" = xNONE && prefix=$ac_default_prefix 15154# Let make expand exec_prefix. 15155test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15156 15157# Transform confdefs.h into DEFS. 15158# Protect against shell expansion while executing Makefile rules. 15159# Protect against Makefile macro expansion. 15160# 15161# If the first sed substitution is executed (which looks for macros that 15162# take arguments), then branch to the quote section. Otherwise, 15163# look for a macro that doesn't take arguments. 15164ac_script=' 15165:mline 15166/\\$/{ 15167 N 15168 s,\\\n,, 15169 b mline 15170} 15171t clear 15172:clear 15173s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15174t quote 15175s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15176t quote 15177b any 15178:quote 15179s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15180s/\[/\\&/g 15181s/\]/\\&/g 15182s/\$/$$/g 15183H 15184:any 15185${ 15186 g 15187 s/^\n// 15188 s/\n/ /g 15189 p 15190} 15191' 15192DEFS=`sed -n "$ac_script" confdefs.h` 15193 15194 15195ac_libobjs= 15196ac_ltlibobjs= 15197U= 15198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15199 # 1. Remove the extension, and $U if already installed. 15200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15203 # will be set to the directory where LIBOBJS objects are built. 15204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15206done 15207LIBOBJS=$ac_libobjs 15208 15209LTLIBOBJS=$ac_ltlibobjs 15210 15211 15212 15213: "${CONFIG_STATUS=./config.status}" 15214ac_write_fail=0 15215ac_clean_files_save=$ac_clean_files 15216ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15217{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15218$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15219as_write_fail=0 15220cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15221#! $SHELL 15222# Generated by $as_me. 15223# Run this file to recreate the current configuration. 15224# Compiler output produced by configure, useful for debugging 15225# configure, is in config.log if it exists. 15226 15227debug=false 15228ac_cs_recheck=false 15229ac_cs_silent=false 15230 15231SHELL=\${CONFIG_SHELL-$SHELL} 15232export SHELL 15233_ASEOF 15234cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15235## -------------------- ## 15236## M4sh Initialization. ## 15237## -------------------- ## 15238 15239# Be more Bourne compatible 15240DUALCASE=1; export DUALCASE # for MKS sh 15241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15242 emulate sh 15243 NULLCMD=: 15244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15245 # is contrary to our usage. Disable this feature. 15246 alias -g '${1+"$@"}'='"$@"' 15247 setopt NO_GLOB_SUBST 15248else 15249 case `(set -o) 2>/dev/null` in #( 15250 *posix*) : 15251 set -o posix ;; #( 15252 *) : 15253 ;; 15254esac 15255fi 15256 15257 15258as_nl=' 15259' 15260export as_nl 15261# Printing a long string crashes Solaris 7 /usr/bin/printf. 15262as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15263as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15265# Prefer a ksh shell builtin over an external printf program on Solaris, 15266# but without wasting forks for bash or zsh. 15267if test -z "$BASH_VERSION$ZSH_VERSION" \ 15268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15269 as_echo='print -r --' 15270 as_echo_n='print -rn --' 15271elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15272 as_echo='printf %s\n' 15273 as_echo_n='printf %s' 15274else 15275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15277 as_echo_n='/usr/ucb/echo -n' 15278 else 15279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15280 as_echo_n_body='eval 15281 arg=$1; 15282 case $arg in #( 15283 *"$as_nl"*) 15284 expr "X$arg" : "X\\(.*\\)$as_nl"; 15285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15286 esac; 15287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15288 ' 15289 export as_echo_n_body 15290 as_echo_n='sh -c $as_echo_n_body as_echo' 15291 fi 15292 export as_echo_body 15293 as_echo='sh -c $as_echo_body as_echo' 15294fi 15295 15296# The user is always right. 15297if test "${PATH_SEPARATOR+set}" != set; then 15298 PATH_SEPARATOR=: 15299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15301 PATH_SEPARATOR=';' 15302 } 15303fi 15304 15305 15306# IFS 15307# We need space, tab and new line, in precisely that order. Quoting is 15308# there to prevent editors from complaining about space-tab. 15309# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15310# splitting by setting IFS to empty value.) 15311IFS=" "" $as_nl" 15312 15313# Find who we are. Look in the path if we contain no directory separator. 15314as_myself= 15315case $0 in #(( 15316 *[\\/]* ) as_myself=$0 ;; 15317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15318for as_dir in $PATH 15319do 15320 IFS=$as_save_IFS 15321 test -z "$as_dir" && as_dir=. 15322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15323 done 15324IFS=$as_save_IFS 15325 15326 ;; 15327esac 15328# We did not find ourselves, most probably we were run as `sh COMMAND' 15329# in which case we are not to be found in the path. 15330if test "x$as_myself" = x; then 15331 as_myself=$0 15332fi 15333if test ! -f "$as_myself"; then 15334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15335 exit 1 15336fi 15337 15338# Unset variables that we do not need and which cause bugs (e.g. in 15339# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15340# suppresses any "Segmentation fault" message there. '((' could 15341# trigger a bug in pdksh 5.2.14. 15342for as_var in BASH_ENV ENV MAIL MAILPATH 15343do eval test x\${$as_var+set} = xset \ 15344 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15345done 15346PS1='$ ' 15347PS2='> ' 15348PS4='+ ' 15349 15350# NLS nuisances. 15351LC_ALL=C 15352export LC_ALL 15353LANGUAGE=C 15354export LANGUAGE 15355 15356# CDPATH. 15357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15358 15359 15360# as_fn_error STATUS ERROR [LINENO LOG_FD] 15361# ---------------------------------------- 15362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15364# script with STATUS, using 1 if that was 0. 15365as_fn_error () 15366{ 15367 as_status=$1; test $as_status -eq 0 && as_status=1 15368 if test "$4"; then 15369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15371 fi 15372 $as_echo "$as_me: error: $2" >&2 15373 as_fn_exit $as_status 15374} # as_fn_error 15375 15376 15377# as_fn_set_status STATUS 15378# ----------------------- 15379# Set $? to STATUS, without forking. 15380as_fn_set_status () 15381{ 15382 return $1 15383} # as_fn_set_status 15384 15385# as_fn_exit STATUS 15386# ----------------- 15387# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15388as_fn_exit () 15389{ 15390 set +e 15391 as_fn_set_status $1 15392 exit $1 15393} # as_fn_exit 15394 15395# as_fn_unset VAR 15396# --------------- 15397# Portably unset VAR. 15398as_fn_unset () 15399{ 15400 { eval $1=; unset $1;} 15401} 15402as_unset=as_fn_unset 15403# as_fn_append VAR VALUE 15404# ---------------------- 15405# Append the text in VALUE to the end of the definition contained in VAR. Take 15406# advantage of any shell optimizations that allow amortized linear growth over 15407# repeated appends, instead of the typical quadratic growth present in naive 15408# implementations. 15409if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15410 eval 'as_fn_append () 15411 { 15412 eval $1+=\$2 15413 }' 15414else 15415 as_fn_append () 15416 { 15417 eval $1=\$$1\$2 15418 } 15419fi # as_fn_append 15420 15421# as_fn_arith ARG... 15422# ------------------ 15423# Perform arithmetic evaluation on the ARGs, and store the result in the 15424# global $as_val. Take advantage of shells that can avoid forks. The arguments 15425# must be portable across $(()) and expr. 15426if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15427 eval 'as_fn_arith () 15428 { 15429 as_val=$(( $* )) 15430 }' 15431else 15432 as_fn_arith () 15433 { 15434 as_val=`expr "$@" || test $? -eq 1` 15435 } 15436fi # as_fn_arith 15437 15438 15439if expr a : '\(a\)' >/dev/null 2>&1 && 15440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15441 as_expr=expr 15442else 15443 as_expr=false 15444fi 15445 15446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15447 as_basename=basename 15448else 15449 as_basename=false 15450fi 15451 15452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15453 as_dirname=dirname 15454else 15455 as_dirname=false 15456fi 15457 15458as_me=`$as_basename -- "$0" || 15459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15460 X"$0" : 'X\(//\)$' \| \ 15461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15462$as_echo X/"$0" | 15463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15464 s//\1/ 15465 q 15466 } 15467 /^X\/\(\/\/\)$/{ 15468 s//\1/ 15469 q 15470 } 15471 /^X\/\(\/\).*/{ 15472 s//\1/ 15473 q 15474 } 15475 s/.*/./; q'` 15476 15477# Avoid depending upon Character Ranges. 15478as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15481as_cr_digits='0123456789' 15482as_cr_alnum=$as_cr_Letters$as_cr_digits 15483 15484ECHO_C= ECHO_N= ECHO_T= 15485case `echo -n x` in #((((( 15486-n*) 15487 case `echo 'xy\c'` in 15488 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15489 xy) ECHO_C='\c';; 15490 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15491 ECHO_T=' ';; 15492 esac;; 15493*) 15494 ECHO_N='-n';; 15495esac 15496 15497rm -f conf$$ conf$$.exe conf$$.file 15498if test -d conf$$.dir; then 15499 rm -f conf$$.dir/conf$$.file 15500else 15501 rm -f conf$$.dir 15502 mkdir conf$$.dir 2>/dev/null 15503fi 15504if (echo >conf$$.file) 2>/dev/null; then 15505 if ln -s conf$$.file conf$$ 2>/dev/null; then 15506 as_ln_s='ln -s' 15507 # ... but there are two gotchas: 15508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15510 # In both cases, we have to default to `cp -pR'. 15511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15512 as_ln_s='cp -pR' 15513 elif ln conf$$.file conf$$ 2>/dev/null; then 15514 as_ln_s=ln 15515 else 15516 as_ln_s='cp -pR' 15517 fi 15518else 15519 as_ln_s='cp -pR' 15520fi 15521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15522rmdir conf$$.dir 2>/dev/null 15523 15524 15525# as_fn_mkdir_p 15526# ------------- 15527# Create "$as_dir" as a directory, including parents if necessary. 15528as_fn_mkdir_p () 15529{ 15530 15531 case $as_dir in #( 15532 -*) as_dir=./$as_dir;; 15533 esac 15534 test -d "$as_dir" || eval $as_mkdir_p || { 15535 as_dirs= 15536 while :; do 15537 case $as_dir in #( 15538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15539 *) as_qdir=$as_dir;; 15540 esac 15541 as_dirs="'$as_qdir' $as_dirs" 15542 as_dir=`$as_dirname -- "$as_dir" || 15543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15544 X"$as_dir" : 'X\(//\)[^/]' \| \ 15545 X"$as_dir" : 'X\(//\)$' \| \ 15546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15547$as_echo X"$as_dir" | 15548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15549 s//\1/ 15550 q 15551 } 15552 /^X\(\/\/\)[^/].*/{ 15553 s//\1/ 15554 q 15555 } 15556 /^X\(\/\/\)$/{ 15557 s//\1/ 15558 q 15559 } 15560 /^X\(\/\).*/{ 15561 s//\1/ 15562 q 15563 } 15564 s/.*/./; q'` 15565 test -d "$as_dir" && break 15566 done 15567 test -z "$as_dirs" || eval "mkdir $as_dirs" 15568 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15569 15570 15571} # as_fn_mkdir_p 15572if mkdir -p . 2>/dev/null; then 15573 as_mkdir_p='mkdir -p "$as_dir"' 15574else 15575 test -d ./-p && rmdir ./-p 15576 as_mkdir_p=false 15577fi 15578 15579 15580# as_fn_executable_p FILE 15581# ----------------------- 15582# Test if FILE is an executable regular file. 15583as_fn_executable_p () 15584{ 15585 test -f "$1" && test -x "$1" 15586} # as_fn_executable_p 15587as_test_x='test -x' 15588as_executable_p=as_fn_executable_p 15589 15590# Sed expression to map a string onto a valid CPP name. 15591as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15592 15593# Sed expression to map a string onto a valid variable name. 15594as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15595 15596 15597exec 6>&1 15598## ----------------------------------- ## 15599## Main body of $CONFIG_STATUS script. ## 15600## ----------------------------------- ## 15601_ASEOF 15602test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15603 15604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15605# Save the log message, to keep $0 and so on meaningful, and to 15606# report actual input values of CONFIG_FILES etc. instead of their 15607# values after options handling. 15608ac_log=" 15609This file was extended by $as_me, which was 15610generated by GNU Autoconf 2.69. Invocation command line was 15611 15612 CONFIG_FILES = $CONFIG_FILES 15613 CONFIG_HEADERS = $CONFIG_HEADERS 15614 CONFIG_LINKS = $CONFIG_LINKS 15615 CONFIG_COMMANDS = $CONFIG_COMMANDS 15616 $ $0 $@ 15617 15618on `(hostname || uname -n) 2>/dev/null | sed 1q` 15619" 15620 15621_ACEOF 15622 15623case $ac_config_files in *" 15624"*) set x $ac_config_files; shift; ac_config_files=$*;; 15625esac 15626 15627 15628 15629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15630# Files that config.status was made for. 15631config_files="$ac_config_files" 15632config_commands="$ac_config_commands" 15633 15634_ACEOF 15635 15636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15637ac_cs_usage="\ 15638\`$as_me' instantiates files and other configuration actions 15639from templates according to the current configuration. Unless the files 15640and actions are specified as TAGs, all are instantiated by default. 15641 15642Usage: $0 [OPTION]... [TAG]... 15643 15644 -h, --help print this help, then exit 15645 -V, --version print version number and configuration settings, then exit 15646 --config print configuration, then exit 15647 -q, --quiet, --silent 15648 do not print progress messages 15649 -d, --debug don't remove temporary files 15650 --recheck update $as_me by reconfiguring in the same conditions 15651 --file=FILE[:TEMPLATE] 15652 instantiate the configuration file FILE 15653 15654Configuration files: 15655$config_files 15656 15657Configuration commands: 15658$config_commands 15659 15660Report bugs to the package provider." 15661 15662_ACEOF 15663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15664ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15665ac_cs_version="\\ 15666config.status 15667configured by $0, generated by GNU Autoconf 2.69, 15668 with options \\"\$ac_cs_config\\" 15669 15670Copyright (C) 2012 Free Software Foundation, Inc. 15671This config.status script is free software; the Free Software Foundation 15672gives unlimited permission to copy, distribute and modify it." 15673 15674ac_pwd='$ac_pwd' 15675srcdir='$srcdir' 15676INSTALL='$INSTALL' 15677test -n "\$AWK" || AWK=awk 15678_ACEOF 15679 15680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15681# The default lists apply if the user does not specify any file. 15682ac_need_defaults=: 15683while test $# != 0 15684do 15685 case $1 in 15686 --*=?*) 15687 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15688 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15689 ac_shift=: 15690 ;; 15691 --*=) 15692 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15693 ac_optarg= 15694 ac_shift=: 15695 ;; 15696 *) 15697 ac_option=$1 15698 ac_optarg=$2 15699 ac_shift=shift 15700 ;; 15701 esac 15702 15703 case $ac_option in 15704 # Handling of the options. 15705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15706 ac_cs_recheck=: ;; 15707 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15708 $as_echo "$ac_cs_version"; exit ;; 15709 --config | --confi | --conf | --con | --co | --c ) 15710 $as_echo "$ac_cs_config"; exit ;; 15711 --debug | --debu | --deb | --de | --d | -d ) 15712 debug=: ;; 15713 --file | --fil | --fi | --f ) 15714 $ac_shift 15715 case $ac_optarg in 15716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15717 '') as_fn_error $? "missing file argument" ;; 15718 esac 15719 as_fn_append CONFIG_FILES " '$ac_optarg'" 15720 ac_need_defaults=false;; 15721 --he | --h | --help | --hel | -h ) 15722 $as_echo "$ac_cs_usage"; exit ;; 15723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15724 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15725 ac_cs_silent=: ;; 15726 15727 # This is an error. 15728 -*) as_fn_error $? "unrecognized option: \`$1' 15729Try \`$0 --help' for more information." ;; 15730 15731 *) as_fn_append ac_config_targets " $1" 15732 ac_need_defaults=false ;; 15733 15734 esac 15735 shift 15736done 15737 15738ac_configure_extra_args= 15739 15740if $ac_cs_silent; then 15741 exec 6>/dev/null 15742 ac_configure_extra_args="$ac_configure_extra_args --silent" 15743fi 15744 15745_ACEOF 15746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15747if \$ac_cs_recheck; then 15748 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15749 shift 15750 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15751 CONFIG_SHELL='$SHELL' 15752 export CONFIG_SHELL 15753 exec "\$@" 15754fi 15755 15756_ACEOF 15757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15758exec 5>>config.log 15759{ 15760 echo 15761 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15762## Running $as_me. ## 15763_ASBOX 15764 $as_echo "$ac_log" 15765} >&5 15766 15767_ACEOF 15768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15769# 15770# INIT-COMMANDS 15771# 15772 15773 15774# The HP-UX ksh and POSIX shell print the target directory to stdout 15775# if CDPATH is set. 15776(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15777 15778sed_quote_subst='$sed_quote_subst' 15779double_quote_subst='$double_quote_subst' 15780delay_variable_subst='$delay_variable_subst' 15781macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 15782macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 15783AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 15784DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15785OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 15786enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 15787enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 15788pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 15789enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 15790host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 15791host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 15792host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 15793build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 15794build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 15795build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 15796SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 15797Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 15798GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 15799EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 15800FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 15801LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 15802NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 15803LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 15804max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 15805ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 15806exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 15807lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 15808lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 15809lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 15810reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 15811reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15812deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 15813file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 15814AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 15815AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15816STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 15817RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 15818old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15819old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15820old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15821CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 15822CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 15823compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 15824GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 15825lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 15826lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 15827lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 15828lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15829objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 15830SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 15831ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 15832MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 15833lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 15834lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 15835lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 15836lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 15837lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 15838need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 15839DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 15840NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 15841LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 15842OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 15843OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 15844libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 15845shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15846extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15847archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 15848enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 15849export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15850whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15851compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 15852old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15853old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15854archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15855archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15856module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15857module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15858with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 15859allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15860no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 15861hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 15862hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 15863hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 15864hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 15865hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 15866hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 15867hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15868hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 15869inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 15870link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 15871fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 15872always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 15873export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15874exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15875include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 15876prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15877file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 15878variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 15879need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 15880need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 15881version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 15882runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15883shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 15884shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 15885libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15886library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 15887soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 15888postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15889postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15890finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 15891finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 15892hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 15893sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15894sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 15895hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 15896enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 15897enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 15898enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 15899old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 15900striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 15901 15902LTCC='$LTCC' 15903LTCFLAGS='$LTCFLAGS' 15904compiler='$compiler_DEFAULT' 15905 15906# Quote evaled strings. 15907for var in SED \ 15908GREP \ 15909EGREP \ 15910FGREP \ 15911LD \ 15912NM \ 15913LN_S \ 15914lt_SP2NL \ 15915lt_NL2SP \ 15916reload_flag \ 15917deplibs_check_method \ 15918file_magic_cmd \ 15919AR \ 15920AR_FLAGS \ 15921STRIP \ 15922RANLIB \ 15923CC \ 15924CFLAGS \ 15925compiler \ 15926lt_cv_sys_global_symbol_pipe \ 15927lt_cv_sys_global_symbol_to_cdecl \ 15928lt_cv_sys_global_symbol_to_c_name_address \ 15929lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15930SHELL \ 15931ECHO \ 15932lt_prog_compiler_no_builtin_flag \ 15933lt_prog_compiler_wl \ 15934lt_prog_compiler_pic \ 15935lt_prog_compiler_static \ 15936lt_cv_prog_compiler_c_o \ 15937need_locks \ 15938DSYMUTIL \ 15939NMEDIT \ 15940LIPO \ 15941OTOOL \ 15942OTOOL64 \ 15943shrext_cmds \ 15944export_dynamic_flag_spec \ 15945whole_archive_flag_spec \ 15946compiler_needs_object \ 15947with_gnu_ld \ 15948allow_undefined_flag \ 15949no_undefined_flag \ 15950hardcode_libdir_flag_spec \ 15951hardcode_libdir_flag_spec_ld \ 15952hardcode_libdir_separator \ 15953fix_srcfile_path \ 15954exclude_expsyms \ 15955include_expsyms \ 15956file_list_spec \ 15957variables_saved_for_relink \ 15958libname_spec \ 15959library_names_spec \ 15960soname_spec \ 15961finish_eval \ 15962old_striplib \ 15963striplib; do 15964 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15965 *[\\\\\\\`\\"\\\$]*) 15966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15967 ;; 15968 *) 15969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15970 ;; 15971 esac 15972done 15973 15974# Double-quote double-evaled strings. 15975for var in reload_cmds \ 15976old_postinstall_cmds \ 15977old_postuninstall_cmds \ 15978old_archive_cmds \ 15979extract_expsyms_cmds \ 15980old_archive_from_new_cmds \ 15981old_archive_from_expsyms_cmds \ 15982archive_cmds \ 15983archive_expsym_cmds \ 15984module_cmds \ 15985module_expsym_cmds \ 15986export_symbols_cmds \ 15987prelink_cmds \ 15988postinstall_cmds \ 15989postuninstall_cmds \ 15990finish_cmds \ 15991sys_lib_search_path_spec \ 15992sys_lib_dlsearch_path_spec; do 15993 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 15994 *[\\\\\\\`\\"\\\$]*) 15995 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15996 ;; 15997 *) 15998 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15999 ;; 16000 esac 16001done 16002 16003# Fix-up fallback echo if it was mangled by the above quoting rules. 16004case \$lt_ECHO in 16005*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 16006 ;; 16007esac 16008 16009ac_aux_dir='$ac_aux_dir' 16010xsi_shell='$xsi_shell' 16011lt_shell_append='$lt_shell_append' 16012 16013# See if we are running on zsh, and set the options which allow our 16014# commands through without removal of \ escapes INIT. 16015if test -n "\${ZSH_VERSION+set}" ; then 16016 setopt NO_GLOB_SUBST 16017fi 16018 16019 16020 PACKAGE='$PACKAGE' 16021 VERSION='$VERSION' 16022 TIMESTAMP='$TIMESTAMP' 16023 RM='$RM' 16024 ofile='$ofile' 16025 16026ac_aux_dir='$ac_aux_dir' 16027 16028 16029 16030DEPENDS="$DEPENDS" 16031VERSION_DEPENDS="$VERSION_DEPENDS" 16032PLAYWAVE_DEPENDS="$PLAYWAVE_DEPENDS" 16033PLAYMUS_DEPENDS="$PLAYMUS_DEPENDS" 16034 16035 16036_ACEOF 16037 16038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16039 16040# Handling of arguments. 16041for ac_config_target in $ac_config_targets 16042do 16043 case $ac_config_target in 16044 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16045 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16046 "SDL2_mixer.spec") CONFIG_FILES="$CONFIG_FILES SDL2_mixer.spec" ;; 16047 "SDL2_mixer.pc") CONFIG_FILES="$CONFIG_FILES SDL2_mixer.pc" ;; 16048 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 16049 16050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16051 esac 16052done 16053 16054 16055# If the user did not use the arguments to specify the items to instantiate, 16056# then the envvar interface is used. Set only those that are not. 16057# We use the long form for the default assignment because of an extremely 16058# bizarre bug on SunOS 4.1.3. 16059if $ac_need_defaults; then 16060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16062fi 16063 16064# Have a temporary directory for convenience. Make it in the build tree 16065# simply because there is no reason against having it here, and in addition, 16066# creating and moving files from /tmp can sometimes cause problems. 16067# Hook for its removal unless debugging. 16068# Note that there is a small window in which the directory will not be cleaned: 16069# after its creation but before its name has been assigned to `$tmp'. 16070$debug || 16071{ 16072 tmp= ac_tmp= 16073 trap 'exit_status=$? 16074 : "${ac_tmp:=$tmp}" 16075 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16076' 0 16077 trap 'as_fn_exit 1' 1 2 13 15 16078} 16079# Create a (secure) tmp directory for tmp files. 16080 16081{ 16082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16083 test -d "$tmp" 16084} || 16085{ 16086 tmp=./conf$$-$RANDOM 16087 (umask 077 && mkdir "$tmp") 16088} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16089ac_tmp=$tmp 16090 16091# Set up the scripts for CONFIG_FILES section. 16092# No need to generate them if there are no CONFIG_FILES. 16093# This happens for instance with `./config.status config.h'. 16094if test -n "$CONFIG_FILES"; then 16095 16096 16097ac_cr=`echo X | tr X '\015'` 16098# On cygwin, bash can eat \r inside `` if the user requested igncr. 16099# But we know of no other shell where ac_cr would be empty at this 16100# point, so we can use a bashism as a fallback. 16101if test "x$ac_cr" = x; then 16102 eval ac_cr=\$\'\\r\' 16103fi 16104ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16105if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16106 ac_cs_awk_cr='\\r' 16107else 16108 ac_cs_awk_cr=$ac_cr 16109fi 16110 16111echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16112_ACEOF 16113 16114 16115{ 16116 echo "cat >conf$$subs.awk <<_ACEOF" && 16117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16118 echo "_ACEOF" 16119} >conf$$subs.sh || 16120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16121ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16122ac_delim='%!_!# ' 16123for ac_last_try in false false false false false :; do 16124 . ./conf$$subs.sh || 16125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16126 16127 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16128 if test $ac_delim_n = $ac_delim_num; then 16129 break 16130 elif $ac_last_try; then 16131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16132 else 16133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16134 fi 16135done 16136rm -f conf$$subs.sh 16137 16138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16139cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16140_ACEOF 16141sed -n ' 16142h 16143s/^/S["/; s/!.*/"]=/ 16144p 16145g 16146s/^[^!]*!// 16147:repl 16148t repl 16149s/'"$ac_delim"'$// 16150t delim 16151:nl 16152h 16153s/\(.\{148\}\)..*/\1/ 16154t more1 16155s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16156p 16157n 16158b repl 16159:more1 16160s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16161p 16162g 16163s/.\{148\}// 16164t nl 16165:delim 16166h 16167s/\(.\{148\}\)..*/\1/ 16168t more2 16169s/["\\]/\\&/g; s/^/"/; s/$/"/ 16170p 16171b 16172:more2 16173s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16174p 16175g 16176s/.\{148\}// 16177t delim 16178' <conf$$subs.awk | sed ' 16179/^[^""]/{ 16180 N 16181 s/\n// 16182} 16183' >>$CONFIG_STATUS || ac_write_fail=1 16184rm -f conf$$subs.awk 16185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16186_ACAWK 16187cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16188 for (key in S) S_is_set[key] = 1 16189 FS = "" 16190 16191} 16192{ 16193 line = $ 0 16194 nfields = split(line, field, "@") 16195 substed = 0 16196 len = length(field[1]) 16197 for (i = 2; i < nfields; i++) { 16198 key = field[i] 16199 keylen = length(key) 16200 if (S_is_set[key]) { 16201 value = S[key] 16202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16203 len += length(value) + length(field[++i]) 16204 substed = 1 16205 } else 16206 len += 1 + keylen 16207 } 16208 16209 print line 16210} 16211 16212_ACAWK 16213_ACEOF 16214cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16215if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16217else 16218 cat 16219fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16220 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16221_ACEOF 16222 16223# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16224# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16225# trailing colons and then remove the whole line if VPATH becomes empty 16226# (actually we leave an empty line to preserve line numbers). 16227if test "x$srcdir" = x.; then 16228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16229h 16230s/// 16231s/^/:/ 16232s/[ ]*$/:/ 16233s/:\$(srcdir):/:/g 16234s/:\${srcdir}:/:/g 16235s/:@srcdir@:/:/g 16236s/^:*// 16237s/:*$// 16238x 16239s/\(=[ ]*\).*/\1/ 16240G 16241s/\n// 16242s/^[^=]*=[ ]*$// 16243}' 16244fi 16245 16246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16247fi # test -n "$CONFIG_FILES" 16248 16249 16250eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 16251shift 16252for ac_tag 16253do 16254 case $ac_tag in 16255 :[FHLC]) ac_mode=$ac_tag; continue;; 16256 esac 16257 case $ac_mode$ac_tag in 16258 :[FHL]*:*);; 16259 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16260 :[FH]-) ac_tag=-:-;; 16261 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16262 esac 16263 ac_save_IFS=$IFS 16264 IFS=: 16265 set x $ac_tag 16266 IFS=$ac_save_IFS 16267 shift 16268 ac_file=$1 16269 shift 16270 16271 case $ac_mode in 16272 :L) ac_source=$1;; 16273 :[FH]) 16274 ac_file_inputs= 16275 for ac_f 16276 do 16277 case $ac_f in 16278 -) ac_f="$ac_tmp/stdin";; 16279 *) # Look for the file first in the build tree, then in the source tree 16280 # (if the path is not absolute). The absolute path cannot be DOS-style, 16281 # because $ac_f cannot contain `:'. 16282 test -f "$ac_f" || 16283 case $ac_f in 16284 [\\/$]*) false;; 16285 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16286 esac || 16287 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16288 esac 16289 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16290 as_fn_append ac_file_inputs " '$ac_f'" 16291 done 16292 16293 # Let's still pretend it is `configure' which instantiates (i.e., don't 16294 # use $as_me), people would be surprised to read: 16295 # /* config.h. Generated by config.status. */ 16296 configure_input='Generated from '` 16297 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16298 `' by configure.' 16299 if test x"$ac_file" != x-; then 16300 configure_input="$ac_file. $configure_input" 16301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16302$as_echo "$as_me: creating $ac_file" >&6;} 16303 fi 16304 # Neutralize special characters interpreted by sed in replacement strings. 16305 case $configure_input in #( 16306 *\&* | *\|* | *\\* ) 16307 ac_sed_conf_input=`$as_echo "$configure_input" | 16308 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16309 *) ac_sed_conf_input=$configure_input;; 16310 esac 16311 16312 case $ac_tag in 16313 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16315 esac 16316 ;; 16317 esac 16318 16319 ac_dir=`$as_dirname -- "$ac_file" || 16320$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16321 X"$ac_file" : 'X\(//\)[^/]' \| \ 16322 X"$ac_file" : 'X\(//\)$' \| \ 16323 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16324$as_echo X"$ac_file" | 16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16326 s//\1/ 16327 q 16328 } 16329 /^X\(\/\/\)[^/].*/{ 16330 s//\1/ 16331 q 16332 } 16333 /^X\(\/\/\)$/{ 16334 s//\1/ 16335 q 16336 } 16337 /^X\(\/\).*/{ 16338 s//\1/ 16339 q 16340 } 16341 s/.*/./; q'` 16342 as_dir="$ac_dir"; as_fn_mkdir_p 16343 ac_builddir=. 16344 16345case "$ac_dir" in 16346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16347*) 16348 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16349 # A ".." for each directory in $ac_dir_suffix. 16350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16351 case $ac_top_builddir_sub in 16352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16354 esac ;; 16355esac 16356ac_abs_top_builddir=$ac_pwd 16357ac_abs_builddir=$ac_pwd$ac_dir_suffix 16358# for backward compatibility: 16359ac_top_builddir=$ac_top_build_prefix 16360 16361case $srcdir in 16362 .) # We are building in place. 16363 ac_srcdir=. 16364 ac_top_srcdir=$ac_top_builddir_sub 16365 ac_abs_top_srcdir=$ac_pwd ;; 16366 [\\/]* | ?:[\\/]* ) # Absolute name. 16367 ac_srcdir=$srcdir$ac_dir_suffix; 16368 ac_top_srcdir=$srcdir 16369 ac_abs_top_srcdir=$srcdir ;; 16370 *) # Relative name. 16371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16372 ac_top_srcdir=$ac_top_build_prefix$srcdir 16373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16374esac 16375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16376 16377 16378 case $ac_mode in 16379 :F) 16380 # 16381 # CONFIG_FILE 16382 # 16383 16384 case $INSTALL in 16385 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16386 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16387 esac 16388_ACEOF 16389 16390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16391# If the template does not know about datarootdir, expand it. 16392# FIXME: This hack should be removed a few years after 2.60. 16393ac_datarootdir_hack=; ac_datarootdir_seen= 16394ac_sed_dataroot=' 16395/datarootdir/ { 16396 p 16397 q 16398} 16399/@datadir@/p 16400/@docdir@/p 16401/@infodir@/p 16402/@localedir@/p 16403/@mandir@/p' 16404case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16405*datarootdir*) ac_datarootdir_seen=yes;; 16406*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16408$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16409_ACEOF 16410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16411 ac_datarootdir_hack=' 16412 s&@datadir@&$datadir&g 16413 s&@docdir@&$docdir&g 16414 s&@infodir@&$infodir&g 16415 s&@localedir@&$localedir&g 16416 s&@mandir@&$mandir&g 16417 s&\\\${datarootdir}&$datarootdir&g' ;; 16418esac 16419_ACEOF 16420 16421# Neutralize VPATH when `$srcdir' = `.'. 16422# Shell code in configure.ac might set extrasub. 16423# FIXME: do we really want to maintain this feature? 16424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16425ac_sed_extra="$ac_vpsub 16426$extrasub 16427_ACEOF 16428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16429:t 16430/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16431s|@configure_input@|$ac_sed_conf_input|;t t 16432s&@top_builddir@&$ac_top_builddir_sub&;t t 16433s&@top_build_prefix@&$ac_top_build_prefix&;t t 16434s&@srcdir@&$ac_srcdir&;t t 16435s&@abs_srcdir@&$ac_abs_srcdir&;t t 16436s&@top_srcdir@&$ac_top_srcdir&;t t 16437s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16438s&@builddir@&$ac_builddir&;t t 16439s&@abs_builddir@&$ac_abs_builddir&;t t 16440s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16441s&@INSTALL@&$ac_INSTALL&;t t 16442$ac_datarootdir_hack 16443" 16444eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16445 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16446 16447test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16448 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16449 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16450 "$ac_tmp/out"`; test -z "$ac_out"; } && 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16452which seems to be undefined. Please make sure it is defined" >&5 16453$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16454which seems to be undefined. Please make sure it is defined" >&2;} 16455 16456 rm -f "$ac_tmp/stdin" 16457 case $ac_file in 16458 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16459 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16460 esac \ 16461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16462 ;; 16463 16464 16465 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16466$as_echo "$as_me: executing $ac_file commands" >&6;} 16467 ;; 16468 esac 16469 16470 16471 case $ac_file$ac_mode in 16472 "libtool":C) 16473 16474 # See if we are running on zsh, and set the options which allow our 16475 # commands through without removal of \ escapes. 16476 if test -n "${ZSH_VERSION+set}" ; then 16477 setopt NO_GLOB_SUBST 16478 fi 16479 16480 cfgfile="${ofile}T" 16481 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16482 $RM "$cfgfile" 16483 16484 cat <<_LT_EOF >> "$cfgfile" 16485#! $SHELL 16486 16487# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16488# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16490# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16491# 16492# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16493# 2006, 2007, 2008 Free Software Foundation, Inc. 16494# Written by Gordon Matzigkeit, 1996 16495# 16496# This file is part of GNU Libtool. 16497# 16498# GNU Libtool is free software; you can redistribute it and/or 16499# modify it under the terms of the GNU General Public License as 16500# published by the Free Software Foundation; either version 2 of 16501# the License, or (at your option) any later version. 16502# 16503# As a special exception to the GNU General Public License, 16504# if you distribute this file as part of a program or library that 16505# is built using GNU Libtool, you may include this file under the 16506# same distribution terms that you use for the rest of that program. 16507# 16508# GNU Libtool is distributed in the hope that it will be useful, 16509# but WITHOUT ANY WARRANTY; without even the implied warranty of 16510# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16511# GNU General Public License for more details. 16512# 16513# You should have received a copy of the GNU General Public License 16514# along with GNU Libtool; see the file COPYING. If not, a copy 16515# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16516# obtained by writing to the Free Software Foundation, Inc., 16517# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16518 16519 16520# The names of the tagged configurations supported by this script. 16521available_tags="" 16522 16523# ### BEGIN LIBTOOL CONFIG 16524 16525# Which release of libtool.m4 was used? 16526macro_version=$macro_version 16527macro_revision=$macro_revision 16528 16529# Assembler program. 16530AS=$AS 16531 16532# DLL creation program. 16533DLLTOOL=$DLLTOOL 16534 16535# Object dumper program. 16536OBJDUMP=$OBJDUMP 16537 16538# Whether or not to build shared libraries. 16539build_libtool_libs=$enable_shared 16540 16541# Whether or not to build static libraries. 16542build_old_libs=$enable_static 16543 16544# What type of objects to build. 16545pic_mode=$pic_mode 16546 16547# Whether or not to optimize for fast installation. 16548fast_install=$enable_fast_install 16549 16550# The host system. 16551host_alias=$host_alias 16552host=$host 16553host_os=$host_os 16554 16555# The build system. 16556build_alias=$build_alias 16557build=$build 16558build_os=$build_os 16559 16560# A sed program that does not truncate output. 16561SED=$lt_SED 16562 16563# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16564Xsed="\$SED -e 1s/^X//" 16565 16566# A grep program that handles long lines. 16567GREP=$lt_GREP 16568 16569# An ERE matcher. 16570EGREP=$lt_EGREP 16571 16572# A literal string matcher. 16573FGREP=$lt_FGREP 16574 16575# A BSD- or MS-compatible name lister. 16576NM=$lt_NM 16577 16578# Whether we need soft or hard links. 16579LN_S=$lt_LN_S 16580 16581# What is the maximum length of a command? 16582max_cmd_len=$max_cmd_len 16583 16584# Object file suffix (normally "o"). 16585objext=$ac_objext 16586 16587# Executable file suffix (normally ""). 16588exeext=$exeext 16589 16590# whether the shell understands "unset". 16591lt_unset=$lt_unset 16592 16593# turn spaces into newlines. 16594SP2NL=$lt_lt_SP2NL 16595 16596# turn newlines into spaces. 16597NL2SP=$lt_lt_NL2SP 16598 16599# How to create reloadable object files. 16600reload_flag=$lt_reload_flag 16601reload_cmds=$lt_reload_cmds 16602 16603# Method to check whether dependent libraries are shared objects. 16604deplibs_check_method=$lt_deplibs_check_method 16605 16606# Command to use when deplibs_check_method == "file_magic". 16607file_magic_cmd=$lt_file_magic_cmd 16608 16609# The archiver. 16610AR=$lt_AR 16611AR_FLAGS=$lt_AR_FLAGS 16612 16613# A symbol stripping program. 16614STRIP=$lt_STRIP 16615 16616# Commands used to install an old-style archive. 16617RANLIB=$lt_RANLIB 16618old_postinstall_cmds=$lt_old_postinstall_cmds 16619old_postuninstall_cmds=$lt_old_postuninstall_cmds 16620 16621# A C compiler. 16622LTCC=$lt_CC 16623 16624# LTCC compiler flags. 16625LTCFLAGS=$lt_CFLAGS 16626 16627# Take the output of nm and produce a listing of raw symbols and C names. 16628global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16629 16630# Transform the output of nm in a proper C declaration. 16631global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16632 16633# Transform the output of nm in a C name address pair. 16634global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16635 16636# Transform the output of nm in a C name address pair when lib prefix is needed. 16637global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16638 16639# The name of the directory that contains temporary libtool files. 16640objdir=$objdir 16641 16642# Shell to use when invoking shell scripts. 16643SHELL=$lt_SHELL 16644 16645# An echo program that does not interpret backslashes. 16646ECHO=$lt_ECHO 16647 16648# Used to examine libraries when file_magic_cmd begins with "file". 16649MAGIC_CMD=$MAGIC_CMD 16650 16651# Must we lock files when doing compilation? 16652need_locks=$lt_need_locks 16653 16654# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16655DSYMUTIL=$lt_DSYMUTIL 16656 16657# Tool to change global to local symbols on Mac OS X. 16658NMEDIT=$lt_NMEDIT 16659 16660# Tool to manipulate fat objects and archives on Mac OS X. 16661LIPO=$lt_LIPO 16662 16663# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16664OTOOL=$lt_OTOOL 16665 16666# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16667OTOOL64=$lt_OTOOL64 16668 16669# Old archive suffix (normally "a"). 16670libext=$libext 16671 16672# Shared library suffix (normally ".so"). 16673shrext_cmds=$lt_shrext_cmds 16674 16675# The commands to extract the exported symbol list from a shared archive. 16676extract_expsyms_cmds=$lt_extract_expsyms_cmds 16677 16678# Variables whose values should be saved in libtool wrapper scripts and 16679# restored at link time. 16680variables_saved_for_relink=$lt_variables_saved_for_relink 16681 16682# Do we need the "lib" prefix for modules? 16683need_lib_prefix=$need_lib_prefix 16684 16685# Do we need a version for libraries? 16686need_version=$need_version 16687 16688# Library versioning type. 16689version_type=$version_type 16690 16691# Shared library runtime path variable. 16692runpath_var=$runpath_var 16693 16694# Shared library path variable. 16695shlibpath_var=$shlibpath_var 16696 16697# Is shlibpath searched before the hard-coded library search path? 16698shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16699 16700# Format of library name prefix. 16701libname_spec=$lt_libname_spec 16702 16703# List of archive names. First name is the real one, the rest are links. 16704# The last name is the one that the linker finds with -lNAME 16705library_names_spec=$lt_library_names_spec 16706 16707# The coded name of the library, if different from the real name. 16708soname_spec=$lt_soname_spec 16709 16710# Command to use after installation of a shared archive. 16711postinstall_cmds=$lt_postinstall_cmds 16712 16713# Command to use after uninstallation of a shared archive. 16714postuninstall_cmds=$lt_postuninstall_cmds 16715 16716# Commands used to finish a libtool library installation in a directory. 16717finish_cmds=$lt_finish_cmds 16718 16719# As "finish_cmds", except a single script fragment to be evaled but 16720# not shown. 16721finish_eval=$lt_finish_eval 16722 16723# Whether we should hardcode library paths into libraries. 16724hardcode_into_libs=$hardcode_into_libs 16725 16726# Compile-time system search path for libraries. 16727sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16728 16729# Run-time system search path for libraries. 16730sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16731 16732# Whether dlopen is supported. 16733dlopen_support=$enable_dlopen 16734 16735# Whether dlopen of programs is supported. 16736dlopen_self=$enable_dlopen_self 16737 16738# Whether dlopen of statically linked programs is supported. 16739dlopen_self_static=$enable_dlopen_self_static 16740 16741# Commands to strip libraries. 16742old_striplib=$lt_old_striplib 16743striplib=$lt_striplib 16744 16745 16746# The linker used to build libraries. 16747LD=$lt_LD 16748 16749# Commands used to build an old-style archive. 16750old_archive_cmds=$lt_old_archive_cmds 16751 16752# A language specific compiler. 16753CC=$lt_compiler 16754 16755# Is the compiler the GNU compiler? 16756with_gcc=$GCC 16757 16758# Compiler flag to turn off builtin functions. 16759no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16760 16761# How to pass a linker flag through the compiler. 16762wl=$lt_lt_prog_compiler_wl 16763 16764# Additional compiler flags for building library objects. 16765pic_flag=$lt_lt_prog_compiler_pic 16766 16767# Compiler flag to prevent dynamic linking. 16768link_static_flag=$lt_lt_prog_compiler_static 16769 16770# Does compiler simultaneously support -c and -o options? 16771compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16772 16773# Whether or not to add -lc for building shared libraries. 16774build_libtool_need_lc=$archive_cmds_need_lc 16775 16776# Whether or not to disallow shared libs when runtime libs are static. 16777allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16778 16779# Compiler flag to allow reflexive dlopens. 16780export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16781 16782# Compiler flag to generate shared objects directly from archives. 16783whole_archive_flag_spec=$lt_whole_archive_flag_spec 16784 16785# Whether the compiler copes with passing no objects directly. 16786compiler_needs_object=$lt_compiler_needs_object 16787 16788# Create an old-style archive from a shared archive. 16789old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16790 16791# Create a temporary old-style archive to link instead of a shared archive. 16792old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16793 16794# Commands used to build a shared archive. 16795archive_cmds=$lt_archive_cmds 16796archive_expsym_cmds=$lt_archive_expsym_cmds 16797 16798# Commands used to build a loadable module if different from building 16799# a shared archive. 16800module_cmds=$lt_module_cmds 16801module_expsym_cmds=$lt_module_expsym_cmds 16802 16803# Whether we are building with GNU ld or not. 16804with_gnu_ld=$lt_with_gnu_ld 16805 16806# Flag that allows shared libraries with undefined symbols to be built. 16807allow_undefined_flag=$lt_allow_undefined_flag 16808 16809# Flag that enforces no undefined symbols. 16810no_undefined_flag=$lt_no_undefined_flag 16811 16812# Flag to hardcode \$libdir into a binary during linking. 16813# This must work even if \$libdir does not exist 16814hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16815 16816# If ld is used when linking, flag to hardcode \$libdir into a binary 16817# during linking. This must work even if \$libdir does not exist. 16818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16819 16820# Whether we need a single "-rpath" flag with a separated argument. 16821hardcode_libdir_separator=$lt_hardcode_libdir_separator 16822 16823# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16824# DIR into the resulting binary. 16825hardcode_direct=$hardcode_direct 16826 16827# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16828# DIR into the resulting binary and the resulting library dependency is 16829# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16830# library is relocated. 16831hardcode_direct_absolute=$hardcode_direct_absolute 16832 16833# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16834# into the resulting binary. 16835hardcode_minus_L=$hardcode_minus_L 16836 16837# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16838# into the resulting binary. 16839hardcode_shlibpath_var=$hardcode_shlibpath_var 16840 16841# Set to "yes" if building a shared library automatically hardcodes DIR 16842# into the library and all subsequent libraries and executables linked 16843# against it. 16844hardcode_automatic=$hardcode_automatic 16845 16846# Set to yes if linker adds runtime paths of dependent libraries 16847# to runtime path list. 16848inherit_rpath=$inherit_rpath 16849 16850# Whether libtool must link a program against all its dependency libraries. 16851link_all_deplibs=$link_all_deplibs 16852 16853# Fix the shell variable \$srcfile for the compiler. 16854fix_srcfile_path=$lt_fix_srcfile_path 16855 16856# Set to "yes" if exported symbols are required. 16857always_export_symbols=$always_export_symbols 16858 16859# The commands to list exported symbols. 16860export_symbols_cmds=$lt_export_symbols_cmds 16861 16862# Symbols that should not be listed in the preloaded symbols. 16863exclude_expsyms=$lt_exclude_expsyms 16864 16865# Symbols that must always be exported. 16866include_expsyms=$lt_include_expsyms 16867 16868# Commands necessary for linking programs (against libraries) with templates. 16869prelink_cmds=$lt_prelink_cmds 16870 16871# Specify filename containing input files. 16872file_list_spec=$lt_file_list_spec 16873 16874# How to hardcode a shared library path into an executable. 16875hardcode_action=$hardcode_action 16876 16877# ### END LIBTOOL CONFIG 16878 16879_LT_EOF 16880 16881 case $host_os in 16882 aix3*) 16883 cat <<\_LT_EOF >> "$cfgfile" 16884# AIX sometimes has problems with the GCC collect2 program. For some 16885# reason, if we set the COLLECT_NAMES environment variable, the problems 16886# vanish in a puff of smoke. 16887if test "X${COLLECT_NAMES+set}" != Xset; then 16888 COLLECT_NAMES= 16889 export COLLECT_NAMES 16890fi 16891_LT_EOF 16892 ;; 16893 esac 16894 16895 16896ltmain="$ac_aux_dir/ltmain.sh" 16897 16898 16899 # We use sed instead of cat because bash on DJGPP gets confused if 16900 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16901 # text mode, it properly converts lines to CR/LF. This bash problem 16902 # is reportedly fixed, but why not run on old versions too? 16903 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16904 || (rm -f "$cfgfile"; exit 1) 16905 16906 case $xsi_shell in 16907 yes) 16908 cat << \_LT_EOF >> "$cfgfile" 16909 16910# func_dirname file append nondir_replacement 16911# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16912# otherwise set result to NONDIR_REPLACEMENT. 16913func_dirname () 16914{ 16915 case ${1} in 16916 */*) func_dirname_result="${1%/*}${2}" ;; 16917 * ) func_dirname_result="${3}" ;; 16918 esac 16919} 16920 16921# func_basename file 16922func_basename () 16923{ 16924 func_basename_result="${1##*/}" 16925} 16926 16927# func_dirname_and_basename file append nondir_replacement 16928# perform func_basename and func_dirname in a single function 16929# call: 16930# dirname: Compute the dirname of FILE. If nonempty, 16931# add APPEND to the result, otherwise set result 16932# to NONDIR_REPLACEMENT. 16933# value returned in "$func_dirname_result" 16934# basename: Compute filename of FILE. 16935# value retuned in "$func_basename_result" 16936# Implementation must be kept synchronized with func_dirname 16937# and func_basename. For efficiency, we do not delegate to 16938# those functions but instead duplicate the functionality here. 16939func_dirname_and_basename () 16940{ 16941 case ${1} in 16942 */*) func_dirname_result="${1%/*}${2}" ;; 16943 * ) func_dirname_result="${3}" ;; 16944 esac 16945 func_basename_result="${1##*/}" 16946} 16947 16948# func_stripname prefix suffix name 16949# strip PREFIX and SUFFIX off of NAME. 16950# PREFIX and SUFFIX must not contain globbing or regex special 16951# characters, hashes, percent signs, but SUFFIX may contain a leading 16952# dot (in which case that matches only a dot). 16953func_stripname () 16954{ 16955 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16956 # positional parameters, so assign one to ordinary parameter first. 16957 func_stripname_result=${3} 16958 func_stripname_result=${func_stripname_result#"${1}"} 16959 func_stripname_result=${func_stripname_result%"${2}"} 16960} 16961 16962# func_opt_split 16963func_opt_split () 16964{ 16965 func_opt_split_opt=${1%%=*} 16966 func_opt_split_arg=${1#*=} 16967} 16968 16969# func_lo2o object 16970func_lo2o () 16971{ 16972 case ${1} in 16973 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16974 *) func_lo2o_result=${1} ;; 16975 esac 16976} 16977 16978# func_xform libobj-or-source 16979func_xform () 16980{ 16981 func_xform_result=${1%.*}.lo 16982} 16983 16984# func_arith arithmetic-term... 16985func_arith () 16986{ 16987 func_arith_result=$(( $* )) 16988} 16989 16990# func_len string 16991# STRING may not start with a hyphen. 16992func_len () 16993{ 16994 func_len_result=${#1} 16995} 16996 16997_LT_EOF 16998 ;; 16999 *) # Bourne compatible functions. 17000 cat << \_LT_EOF >> "$cfgfile" 17001 17002# func_dirname file append nondir_replacement 17003# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17004# otherwise set result to NONDIR_REPLACEMENT. 17005func_dirname () 17006{ 17007 # Extract subdirectory from the argument. 17008 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 17009 if test "X$func_dirname_result" = "X${1}"; then 17010 func_dirname_result="${3}" 17011 else 17012 func_dirname_result="$func_dirname_result${2}" 17013 fi 17014} 17015 17016# func_basename file 17017func_basename () 17018{ 17019 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 17020} 17021 17022 17023# func_stripname prefix suffix name 17024# strip PREFIX and SUFFIX off of NAME. 17025# PREFIX and SUFFIX must not contain globbing or regex special 17026# characters, hashes, percent signs, but SUFFIX may contain a leading 17027# dot (in which case that matches only a dot). 17028# func_strip_suffix prefix name 17029func_stripname () 17030{ 17031 case ${2} in 17032 .*) func_stripname_result=`$ECHO "X${3}" \ 17033 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 17034 *) func_stripname_result=`$ECHO "X${3}" \ 17035 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 17036 esac 17037} 17038 17039# sed scripts: 17040my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17041my_sed_long_arg='1s/^-[^=]*=//' 17042 17043# func_opt_split 17044func_opt_split () 17045{ 17046 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 17047 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 17048} 17049 17050# func_lo2o object 17051func_lo2o () 17052{ 17053 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 17054} 17055 17056# func_xform libobj-or-source 17057func_xform () 17058{ 17059 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 17060} 17061 17062# func_arith arithmetic-term... 17063func_arith () 17064{ 17065 func_arith_result=`expr "$@"` 17066} 17067 17068# func_len string 17069# STRING may not start with a hyphen. 17070func_len () 17071{ 17072 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17073} 17074 17075_LT_EOF 17076esac 17077 17078case $lt_shell_append in 17079 yes) 17080 cat << \_LT_EOF >> "$cfgfile" 17081 17082# func_append var value 17083# Append VALUE to the end of shell variable VAR. 17084func_append () 17085{ 17086 eval "$1+=\$2" 17087} 17088_LT_EOF 17089 ;; 17090 *) 17091 cat << \_LT_EOF >> "$cfgfile" 17092 17093# func_append var value 17094# Append VALUE to the end of shell variable VAR. 17095func_append () 17096{ 17097 eval "$1=\$$1\$2" 17098} 17099 17100_LT_EOF 17101 ;; 17102 esac 17103 17104 17105 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17106 || (rm -f "$cfgfile"; exit 1) 17107 17108 mv -f "$cfgfile" "$ofile" || 17109 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17110 chmod +x "$ofile" 17111 17112 ;; 17113 "default":C) cat >>Makefile <<__EOF__ 17114 17115# Build rules for objects 17116-include \$(OBJECTS:.lo=.d) 17117$DEPENDS 17118$VERSION_DEPENDS 17119 17120-include \$(PLAYWAVE_OBJECTS:.lo=.d) 17121$PLAYWAVE_DEPENDS 17122 17123-include \$(PLAYMUS_OBJECTS:.lo=.d) 17124$PLAYMUS_DEPENDS 17125__EOF__ 17126 ;; 17127 17128 esac 17129done # for ac_tag 17130 17131 17132as_fn_exit 0 17133_ACEOF 17134ac_clean_files=$ac_clean_files_save 17135 17136test $ac_write_fail = 0 || 17137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17138 17139 17140# configure is writing to config.log, and then calls config.status. 17141# config.status does its own redirection, appending to config.log. 17142# Unfortunately, on DOS this fails, as config.log is still kept open 17143# by configure, so config.status won't be able to write to it; its 17144# output is simply discarded. So we exec the FD to /dev/null, 17145# effectively closing config.log, so it can be properly (re)opened and 17146# appended to by config.status. When coming back to configure, we 17147# need to make the FD available again. 17148if test "$no_create" != yes; then 17149 ac_cs_success=: 17150 ac_config_status_args= 17151 test "$silent" = yes && 17152 ac_config_status_args="$ac_config_status_args --quiet" 17153 exec 5>/dev/null 17154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17155 exec 5>>config.log 17156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17157 # would make configure fail if this is the last instruction. 17158 $ac_cs_success || as_fn_exit 1 17159fi 17160if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17162$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17163fi 17164 17165