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='am__EXEEXT_FALSE 772am__EXEEXT_TRUE 773LTLIBOBJS 774LIBOBJS 775IMG_LIBS 776LIBWEBP_LIBS 777LIBWEBP_CFLAGS 778LIBPNG_LIBS 779LIBPNG_CFLAGS 780SDL2_CONFIG 781SDL_LIBS 782SDL_CFLAGS 783PKG_CONFIG 784SDL_VERSION 785USE_VERSION_RC_FALSE 786USE_VERSION_RC_TRUE 787USE_IMAGEIO_FALSE 788USE_IMAGEIO_TRUE 789WINDRES 790am__fastdepOBJC_FALSE 791am__fastdepOBJC_TRUE 792OBJCDEPMODE 793ac_ct_OBJC 794OBJCFLAGS 795OBJC 796AM_BACKSLASH 797AM_DEFAULT_VERBOSITY 798AM_DEFAULT_V 799AM_V 800am__fastdepCC_FALSE 801am__fastdepCC_TRUE 802CCDEPMODE 803am__nodep 804AMDEPBACKSLASH 805AMDEP_FALSE 806AMDEP_TRUE 807am__include 808DEPDIR 809am__untar 810am__tar 811AMTAR 812am__leading_dot 813SET_MAKE 814AWK 815mkdir_p 816MKDIR_P 817INSTALL_STRIP_PROGRAM 818install_sh 819MAKEINFO 820AUTOHEADER 821AUTOMAKE 822AUTOCONF 823ACLOCAL 824PACKAGE 825CYGPATH_W 826am__isrc 827INSTALL_DATA 828INSTALL_SCRIPT 829INSTALL_PROGRAM 830LT_AGE 831LT_REVISION 832LT_CURRENT 833LT_RELEASE 834CPP 835OTOOL64 836OTOOL 837LIPO 838NMEDIT 839DSYMUTIL 840lt_ECHO 841RANLIB 842STRIP 843AR 844LN_S 845NM 846ac_ct_DUMPBIN 847DUMPBIN 848LD 849FGREP 850EGREP 851GREP 852SED 853OBJEXT 854EXEEXT 855ac_ct_CC 856CPPFLAGS 857LDFLAGS 858CFLAGS 859CC 860host_os 861host_vendor 862host_cpu 863host 864build_os 865build_vendor 866build_cpu 867build 868LIBTOOL 869OBJDUMP 870DLLTOOL 871AS 872VERSION 873BINARY_AGE 874INTERFACE_AGE 875MICRO_VERSION 876MINOR_VERSION 877MAJOR_VERSION 878target_alias 879host_alias 880build_alias 881LIBS 882ECHO_T 883ECHO_N 884ECHO_C 885DEFS 886mandir 887localedir 888libdir 889psdir 890pdfdir 891dvidir 892htmldir 893infodir 894docdir 895oldincludedir 896includedir 897localstatedir 898sharedstatedir 899sysconfdir 900datadir 901datarootdir 902libexecdir 903sbindir 904bindir 905program_transform_name 906prefix 907exec_prefix 908PACKAGE_URL 909PACKAGE_BUGREPORT 910PACKAGE_STRING 911PACKAGE_VERSION 912PACKAGE_TARNAME 913PACKAGE_NAME 914PATH_SEPARATOR 915SHELL 916am__quote' 917ac_subst_files='' 918ac_user_opts=' 919enable_option_checking 920enable_shared 921enable_static 922with_pic 923enable_fast_install 924with_gnu_ld 925enable_libtool_lock 926enable_dependency_tracking 927enable_silent_rules 928enable_imageio 929with_sdl_prefix 930with_sdl_exec_prefix 931enable_sdltest 932enable_bmp 933enable_gif 934enable_jpg 935enable_jpg_shared 936enable_lbm 937enable_pcx 938enable_png 939enable_png_shared 940enable_pnm 941enable_svg 942enable_tga 943enable_tif 944enable_tif_shared 945enable_xcf 946enable_xpm 947enable_xv 948enable_webp 949enable_webp_shared 950' 951 ac_precious_vars='build_alias 952host_alias 953target_alias 954CC 955CFLAGS 956LDFLAGS 957LIBS 958CPPFLAGS 959CPP 960OBJC 961OBJCFLAGS 962PKG_CONFIG 963SDL_CFLAGS 964SDL_LIBS 965LIBPNG_CFLAGS 966LIBPNG_LIBS 967LIBWEBP_CFLAGS 968LIBWEBP_LIBS' 969 970 971# Initialize some variables set by options. 972ac_init_help= 973ac_init_version=false 974ac_unrecognized_opts= 975ac_unrecognized_sep= 976# The variables have the same names as the options, with 977# dashes changed to underlines. 978cache_file=/dev/null 979exec_prefix=NONE 980no_create= 981no_recursion= 982prefix=NONE 983program_prefix=NONE 984program_suffix=NONE 985program_transform_name=s,x,x, 986silent= 987site= 988srcdir= 989verbose= 990x_includes=NONE 991x_libraries=NONE 992 993# Installation directory options. 994# These are left unexpanded so users can "make install exec_prefix=/foo" 995# and all the variables that are supposed to be based on exec_prefix 996# by default will actually change. 997# Use braces instead of parens because sh, perl, etc. also accept them. 998# (The list follows the same order as the GNU Coding Standards.) 999bindir='${exec_prefix}/bin' 1000sbindir='${exec_prefix}/sbin' 1001libexecdir='${exec_prefix}/libexec' 1002datarootdir='${prefix}/share' 1003datadir='${datarootdir}' 1004sysconfdir='${prefix}/etc' 1005sharedstatedir='${prefix}/com' 1006localstatedir='${prefix}/var' 1007includedir='${prefix}/include' 1008oldincludedir='/usr/include' 1009docdir='${datarootdir}/doc/${PACKAGE}' 1010infodir='${datarootdir}/info' 1011htmldir='${docdir}' 1012dvidir='${docdir}' 1013pdfdir='${docdir}' 1014psdir='${docdir}' 1015libdir='${exec_prefix}/lib' 1016localedir='${datarootdir}/locale' 1017mandir='${datarootdir}/man' 1018 1019ac_prev= 1020ac_dashdash= 1021for ac_option 1022do 1023 # If the previous option needs an argument, assign it. 1024 if test -n "$ac_prev"; then 1025 eval $ac_prev=\$ac_option 1026 ac_prev= 1027 continue 1028 fi 1029 1030 case $ac_option in 1031 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1032 *=) ac_optarg= ;; 1033 *) ac_optarg=yes ;; 1034 esac 1035 1036 # Accept the important Cygnus configure options, so we can diagnose typos. 1037 1038 case $ac_dashdash$ac_option in 1039 --) 1040 ac_dashdash=yes ;; 1041 1042 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1043 ac_prev=bindir ;; 1044 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1045 bindir=$ac_optarg ;; 1046 1047 -build | --build | --buil | --bui | --bu) 1048 ac_prev=build_alias ;; 1049 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1050 build_alias=$ac_optarg ;; 1051 1052 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1053 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1054 ac_prev=cache_file ;; 1055 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1056 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1057 cache_file=$ac_optarg ;; 1058 1059 --config-cache | -C) 1060 cache_file=config.cache ;; 1061 1062 -datadir | --datadir | --datadi | --datad) 1063 ac_prev=datadir ;; 1064 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1065 datadir=$ac_optarg ;; 1066 1067 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1068 | --dataroo | --dataro | --datar) 1069 ac_prev=datarootdir ;; 1070 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1071 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1072 datarootdir=$ac_optarg ;; 1073 1074 -disable-* | --disable-*) 1075 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1078 as_fn_error $? "invalid feature name: $ac_useropt" 1079 ac_useropt_orig=$ac_useropt 1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1081 case $ac_user_opts in 1082 *" 1083"enable_$ac_useropt" 1084"*) ;; 1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1086 ac_unrecognized_sep=', ';; 1087 esac 1088 eval enable_$ac_useropt=no ;; 1089 1090 -docdir | --docdir | --docdi | --doc | --do) 1091 ac_prev=docdir ;; 1092 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1093 docdir=$ac_optarg ;; 1094 1095 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1096 ac_prev=dvidir ;; 1097 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1098 dvidir=$ac_optarg ;; 1099 1100 -enable-* | --enable-*) 1101 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1102 # Reject names that are not valid shell variable names. 1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1104 as_fn_error $? "invalid feature name: $ac_useropt" 1105 ac_useropt_orig=$ac_useropt 1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1107 case $ac_user_opts in 1108 *" 1109"enable_$ac_useropt" 1110"*) ;; 1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1112 ac_unrecognized_sep=', ';; 1113 esac 1114 eval enable_$ac_useropt=\$ac_optarg ;; 1115 1116 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1117 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1118 | --exec | --exe | --ex) 1119 ac_prev=exec_prefix ;; 1120 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1121 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1122 | --exec=* | --exe=* | --ex=*) 1123 exec_prefix=$ac_optarg ;; 1124 1125 -gas | --gas | --ga | --g) 1126 # Obsolete; use --with-gas. 1127 with_gas=yes ;; 1128 1129 -help | --help | --hel | --he | -h) 1130 ac_init_help=long ;; 1131 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1132 ac_init_help=recursive ;; 1133 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1134 ac_init_help=short ;; 1135 1136 -host | --host | --hos | --ho) 1137 ac_prev=host_alias ;; 1138 -host=* | --host=* | --hos=* | --ho=*) 1139 host_alias=$ac_optarg ;; 1140 1141 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1142 ac_prev=htmldir ;; 1143 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1144 | --ht=*) 1145 htmldir=$ac_optarg ;; 1146 1147 -includedir | --includedir | --includedi | --included | --include \ 1148 | --includ | --inclu | --incl | --inc) 1149 ac_prev=includedir ;; 1150 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1151 | --includ=* | --inclu=* | --incl=* | --inc=*) 1152 includedir=$ac_optarg ;; 1153 1154 -infodir | --infodir | --infodi | --infod | --info | --inf) 1155 ac_prev=infodir ;; 1156 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1157 infodir=$ac_optarg ;; 1158 1159 -libdir | --libdir | --libdi | --libd) 1160 ac_prev=libdir ;; 1161 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1162 libdir=$ac_optarg ;; 1163 1164 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1165 | --libexe | --libex | --libe) 1166 ac_prev=libexecdir ;; 1167 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1168 | --libexe=* | --libex=* | --libe=*) 1169 libexecdir=$ac_optarg ;; 1170 1171 -localedir | --localedir | --localedi | --localed | --locale) 1172 ac_prev=localedir ;; 1173 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1174 localedir=$ac_optarg ;; 1175 1176 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1177 | --localstate | --localstat | --localsta | --localst | --locals) 1178 ac_prev=localstatedir ;; 1179 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1180 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1181 localstatedir=$ac_optarg ;; 1182 1183 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1184 ac_prev=mandir ;; 1185 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1186 mandir=$ac_optarg ;; 1187 1188 -nfp | --nfp | --nf) 1189 # Obsolete; use --without-fp. 1190 with_fp=no ;; 1191 1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1193 | --no-cr | --no-c | -n) 1194 no_create=yes ;; 1195 1196 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1197 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1198 no_recursion=yes ;; 1199 1200 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1201 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1202 | --oldin | --oldi | --old | --ol | --o) 1203 ac_prev=oldincludedir ;; 1204 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1205 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1206 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1207 oldincludedir=$ac_optarg ;; 1208 1209 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1210 ac_prev=prefix ;; 1211 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1212 prefix=$ac_optarg ;; 1213 1214 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1215 | --program-pre | --program-pr | --program-p) 1216 ac_prev=program_prefix ;; 1217 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1218 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1219 program_prefix=$ac_optarg ;; 1220 1221 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1222 | --program-suf | --program-su | --program-s) 1223 ac_prev=program_suffix ;; 1224 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1225 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1226 program_suffix=$ac_optarg ;; 1227 1228 -program-transform-name | --program-transform-name \ 1229 | --program-transform-nam | --program-transform-na \ 1230 | --program-transform-n | --program-transform- \ 1231 | --program-transform | --program-transfor \ 1232 | --program-transfo | --program-transf \ 1233 | --program-trans | --program-tran \ 1234 | --progr-tra | --program-tr | --program-t) 1235 ac_prev=program_transform_name ;; 1236 -program-transform-name=* | --program-transform-name=* \ 1237 | --program-transform-nam=* | --program-transform-na=* \ 1238 | --program-transform-n=* | --program-transform-=* \ 1239 | --program-transform=* | --program-transfor=* \ 1240 | --program-transfo=* | --program-transf=* \ 1241 | --program-trans=* | --program-tran=* \ 1242 | --progr-tra=* | --program-tr=* | --program-t=*) 1243 program_transform_name=$ac_optarg ;; 1244 1245 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1246 ac_prev=pdfdir ;; 1247 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1248 pdfdir=$ac_optarg ;; 1249 1250 -psdir | --psdir | --psdi | --psd | --ps) 1251 ac_prev=psdir ;; 1252 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1253 psdir=$ac_optarg ;; 1254 1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1256 | -silent | --silent | --silen | --sile | --sil) 1257 silent=yes ;; 1258 1259 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1260 ac_prev=sbindir ;; 1261 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1262 | --sbi=* | --sb=*) 1263 sbindir=$ac_optarg ;; 1264 1265 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1266 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1267 | --sharedst | --shareds | --shared | --share | --shar \ 1268 | --sha | --sh) 1269 ac_prev=sharedstatedir ;; 1270 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1271 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1272 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1273 | --sha=* | --sh=*) 1274 sharedstatedir=$ac_optarg ;; 1275 1276 -site | --site | --sit) 1277 ac_prev=site ;; 1278 -site=* | --site=* | --sit=*) 1279 site=$ac_optarg ;; 1280 1281 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1282 ac_prev=srcdir ;; 1283 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1284 srcdir=$ac_optarg ;; 1285 1286 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1287 | --syscon | --sysco | --sysc | --sys | --sy) 1288 ac_prev=sysconfdir ;; 1289 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1290 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1291 sysconfdir=$ac_optarg ;; 1292 1293 -target | --target | --targe | --targ | --tar | --ta | --t) 1294 ac_prev=target_alias ;; 1295 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1296 target_alias=$ac_optarg ;; 1297 1298 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1299 verbose=yes ;; 1300 1301 -version | --version | --versio | --versi | --vers | -V) 1302 ac_init_version=: ;; 1303 1304 -with-* | --with-*) 1305 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1306 # Reject names that are not valid shell variable names. 1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1308 as_fn_error $? "invalid package name: $ac_useropt" 1309 ac_useropt_orig=$ac_useropt 1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1311 case $ac_user_opts in 1312 *" 1313"with_$ac_useropt" 1314"*) ;; 1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1316 ac_unrecognized_sep=', ';; 1317 esac 1318 eval with_$ac_useropt=\$ac_optarg ;; 1319 1320 -without-* | --without-*) 1321 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1322 # Reject names that are not valid shell variable names. 1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1324 as_fn_error $? "invalid package name: $ac_useropt" 1325 ac_useropt_orig=$ac_useropt 1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1327 case $ac_user_opts in 1328 *" 1329"with_$ac_useropt" 1330"*) ;; 1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1332 ac_unrecognized_sep=', ';; 1333 esac 1334 eval with_$ac_useropt=no ;; 1335 1336 --x) 1337 # Obsolete; use --with-x. 1338 with_x=yes ;; 1339 1340 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1341 | --x-incl | --x-inc | --x-in | --x-i) 1342 ac_prev=x_includes ;; 1343 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1344 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1345 x_includes=$ac_optarg ;; 1346 1347 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1348 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1349 ac_prev=x_libraries ;; 1350 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1351 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1352 x_libraries=$ac_optarg ;; 1353 1354 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1355Try \`$0 --help' for more information" 1356 ;; 1357 1358 *=*) 1359 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1360 # Reject names that are not valid shell variable names. 1361 case $ac_envvar in #( 1362 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1363 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1364 esac 1365 eval $ac_envvar=\$ac_optarg 1366 export $ac_envvar ;; 1367 1368 *) 1369 # FIXME: should be removed in autoconf 3.0. 1370 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1371 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1372 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1373 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1374 ;; 1375 1376 esac 1377done 1378 1379if test -n "$ac_prev"; then 1380 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1381 as_fn_error $? "missing argument to $ac_option" 1382fi 1383 1384if test -n "$ac_unrecognized_opts"; then 1385 case $enable_option_checking in 1386 no) ;; 1387 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1388 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1389 esac 1390fi 1391 1392# Check all directory arguments for consistency. 1393for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1394 datadir sysconfdir sharedstatedir localstatedir includedir \ 1395 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1396 libdir localedir mandir 1397do 1398 eval ac_val=\$$ac_var 1399 # Remove trailing slashes. 1400 case $ac_val in 1401 */ ) 1402 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1403 eval $ac_var=\$ac_val;; 1404 esac 1405 # Be sure to have absolute directory names. 1406 case $ac_val in 1407 [\\/$]* | ?:[\\/]* ) continue;; 1408 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1409 esac 1410 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1411done 1412 1413# There might be people who depend on the old broken behavior: `$host' 1414# used to hold the argument of --host etc. 1415# FIXME: To remove some day. 1416build=$build_alias 1417host=$host_alias 1418target=$target_alias 1419 1420# FIXME: To remove some day. 1421if test "x$host_alias" != x; then 1422 if test "x$build_alias" = x; then 1423 cross_compiling=maybe 1424 elif test "x$build_alias" != "x$host_alias"; then 1425 cross_compiling=yes 1426 fi 1427fi 1428 1429ac_tool_prefix= 1430test -n "$host_alias" && ac_tool_prefix=$host_alias- 1431 1432test "$silent" = yes && exec 6>/dev/null 1433 1434 1435ac_pwd=`pwd` && test -n "$ac_pwd" && 1436ac_ls_di=`ls -di .` && 1437ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1438 as_fn_error $? "working directory cannot be determined" 1439test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1440 as_fn_error $? "pwd does not report name of working directory" 1441 1442 1443# Find the source files, if location was not specified. 1444if test -z "$srcdir"; then 1445 ac_srcdir_defaulted=yes 1446 # Try the directory containing this script, then the parent directory. 1447 ac_confdir=`$as_dirname -- "$as_myself" || 1448$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1449 X"$as_myself" : 'X\(//\)[^/]' \| \ 1450 X"$as_myself" : 'X\(//\)$' \| \ 1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1452$as_echo X"$as_myself" | 1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\/\)[^/].*/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\/\)$/{ 1462 s//\1/ 1463 q 1464 } 1465 /^X\(\/\).*/{ 1466 s//\1/ 1467 q 1468 } 1469 s/.*/./; q'` 1470 srcdir=$ac_confdir 1471 if test ! -r "$srcdir/$ac_unique_file"; then 1472 srcdir=.. 1473 fi 1474else 1475 ac_srcdir_defaulted=no 1476fi 1477if test ! -r "$srcdir/$ac_unique_file"; then 1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1479 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1480fi 1481ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1482ac_abs_confdir=`( 1483 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1484 pwd)` 1485# When building in place, set srcdir=. 1486if test "$ac_abs_confdir" = "$ac_pwd"; then 1487 srcdir=. 1488fi 1489# Remove unnecessary trailing slashes from srcdir. 1490# Double slashes in file names in object file debugging info 1491# mess up M-x gdb in Emacs. 1492case $srcdir in 1493*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1494esac 1495for ac_var in $ac_precious_vars; do 1496 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_env_${ac_var}_value=\$${ac_var} 1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1499 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1500done 1501 1502# 1503# Report the --help message. 1504# 1505if test "$ac_init_help" = "long"; then 1506 # Omit some internal or obsolete options to make the list less imposing. 1507 # This message is too long to be a string in the A/UX 3.1 sh. 1508 cat <<_ACEOF 1509\`configure' configures this package to adapt to many kinds of systems. 1510 1511Usage: $0 [OPTION]... [VAR=VALUE]... 1512 1513To assign environment variables (e.g., CC, CFLAGS...), specify them as 1514VAR=VALUE. See below for descriptions of some of the useful variables. 1515 1516Defaults for the options are specified in brackets. 1517 1518Configuration: 1519 -h, --help display this help and exit 1520 --help=short display options specific to this package 1521 --help=recursive display the short help of all the included packages 1522 -V, --version display version information and exit 1523 -q, --quiet, --silent do not print \`checking ...' messages 1524 --cache-file=FILE cache test results in FILE [disabled] 1525 -C, --config-cache alias for \`--cache-file=config.cache' 1526 -n, --no-create do not create output files 1527 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1528 1529Installation directories: 1530 --prefix=PREFIX install architecture-independent files in PREFIX 1531 [$ac_default_prefix] 1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1533 [PREFIX] 1534 1535By default, \`make install' will install all the files in 1536\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1537an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1538for instance \`--prefix=\$HOME'. 1539 1540For better control, use the options below. 1541 1542Fine tuning of the installation directories: 1543 --bindir=DIR user executables [EPREFIX/bin] 1544 --sbindir=DIR system admin executables [EPREFIX/sbin] 1545 --libexecdir=DIR program executables [EPREFIX/libexec] 1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1549 --libdir=DIR object code libraries [EPREFIX/lib] 1550 --includedir=DIR C header files [PREFIX/include] 1551 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1552 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1553 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1554 --infodir=DIR info documentation [DATAROOTDIR/info] 1555 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1556 --mandir=DIR man documentation [DATAROOTDIR/man] 1557 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1558 --htmldir=DIR html documentation [DOCDIR] 1559 --dvidir=DIR dvi documentation [DOCDIR] 1560 --pdfdir=DIR pdf documentation [DOCDIR] 1561 --psdir=DIR ps documentation [DOCDIR] 1562_ACEOF 1563 1564 cat <<\_ACEOF 1565 1566Program names: 1567 --program-prefix=PREFIX prepend PREFIX to installed program names 1568 --program-suffix=SUFFIX append SUFFIX to installed program names 1569 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1570 1571System types: 1572 --build=BUILD configure for building on BUILD [guessed] 1573 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1574_ACEOF 1575fi 1576 1577if test -n "$ac_init_help"; then 1578 1579 cat <<\_ACEOF 1580 1581Optional Features: 1582 --disable-option-checking ignore unrecognized --enable/--with options 1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1585 --enable-shared[=PKGS] build shared libraries [default=yes] 1586 --enable-static[=PKGS] build static libraries [default=yes] 1587 --enable-fast-install[=PKGS] 1588 optimize for fast installation [default=yes] 1589 --disable-libtool-lock avoid locking (might break parallel builds) 1590 --enable-dependency-tracking 1591 do not reject slow dependency extractors 1592 --disable-dependency-tracking 1593 speeds up one-time build 1594 --enable-silent-rules less verbose build output (undo: "make V=1") 1595 --disable-silent-rules verbose build output (undo: "make V=0") 1596 --enable-imageio use native Mac OS X frameworks for loading images 1597 [default=yes] 1598 --disable-sdltest Do not try to compile and run a test SDL program 1599 --enable-bmp support loading BMP/ICO/CUR images [default=yes] 1600 --enable-gif support loading GIF images [default=yes] 1601 --enable-jpg support loading JPG images [default=yes] 1602 --enable-jpg-shared dynamically load JPG support [[default=yes]] 1603 --enable-lbm support loading LBM images [default=yes] 1604 --enable-pcx support loading PCX images [default=yes] 1605 --enable-png support loading PNG images [default=yes] 1606 --enable-png-shared dynamically load PNG support [[default=yes]] 1607 --enable-pnm support loading PNM images [default=yes] 1608 --enable-svg support loading SVG images [default=yes] 1609 --enable-tga support loading TGA images [default=yes] 1610 --enable-tif support loading TIFF images [default=yes] 1611 --enable-tif-shared dynamically load TIFF support [[default=yes]] 1612 --enable-xcf support loading XCF images [default=yes] 1613 --enable-xpm support loading XPM images [default=yes] 1614 --enable-xv support loading XV images [default=yes] 1615 --enable-webp support loading WEBP images [default=yes] 1616 --enable-webp-shared dynamically load WEBP support [[default=yes]] 1617 1618Optional Packages: 1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1621 --with-pic try to use only PIC/non-PIC objects [default=use 1622 both] 1623 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1624 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1625 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1626 1627Some influential environment variables: 1628 CC C compiler command 1629 CFLAGS C compiler flags 1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1631 nonstandard directory <lib dir> 1632 LIBS libraries to pass to the linker, e.g. -l<library> 1633 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1634 you have headers in a nonstandard directory <include dir> 1635 CPP C preprocessor 1636 OBJC Objective C compiler command 1637 OBJCFLAGS Objective C compiler flags 1638 PKG_CONFIG path to pkg-config utility 1639 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config 1640 SDL_LIBS linker flags for SDL, overriding pkg-config 1641 LIBPNG_CFLAGS 1642 C compiler flags for LIBPNG, overriding pkg-config 1643 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config 1644 LIBWEBP_CFLAGS 1645 C compiler flags for LIBWEBP, overriding pkg-config 1646 LIBWEBP_LIBS 1647 linker flags for LIBWEBP, overriding pkg-config 1648 1649Use these variables to override the choices made by `configure' or to help 1650it to find libraries and programs with nonstandard names/locations. 1651 1652Report bugs to the package provider. 1653_ACEOF 1654ac_status=$? 1655fi 1656 1657if test "$ac_init_help" = "recursive"; then 1658 # If there are subdirs, report their specific --help. 1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1660 test -d "$ac_dir" || 1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1662 continue 1663 ac_builddir=. 1664 1665case "$ac_dir" in 1666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1667*) 1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1669 # A ".." for each directory in $ac_dir_suffix. 1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1671 case $ac_top_builddir_sub in 1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1674 esac ;; 1675esac 1676ac_abs_top_builddir=$ac_pwd 1677ac_abs_builddir=$ac_pwd$ac_dir_suffix 1678# for backward compatibility: 1679ac_top_builddir=$ac_top_build_prefix 1680 1681case $srcdir in 1682 .) # We are building in place. 1683 ac_srcdir=. 1684 ac_top_srcdir=$ac_top_builddir_sub 1685 ac_abs_top_srcdir=$ac_pwd ;; 1686 [\\/]* | ?:[\\/]* ) # Absolute name. 1687 ac_srcdir=$srcdir$ac_dir_suffix; 1688 ac_top_srcdir=$srcdir 1689 ac_abs_top_srcdir=$srcdir ;; 1690 *) # Relative name. 1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1692 ac_top_srcdir=$ac_top_build_prefix$srcdir 1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1694esac 1695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1696 1697 cd "$ac_dir" || { ac_status=$?; continue; } 1698 # Check for guested configure. 1699 if test -f "$ac_srcdir/configure.gnu"; then 1700 echo && 1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1702 elif test -f "$ac_srcdir/configure"; then 1703 echo && 1704 $SHELL "$ac_srcdir/configure" --help=recursive 1705 else 1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1707 fi || ac_status=$? 1708 cd "$ac_pwd" || { ac_status=$?; break; } 1709 done 1710fi 1711 1712test -n "$ac_init_help" && exit $ac_status 1713if $ac_init_version; then 1714 cat <<\_ACEOF 1715configure 1716generated by GNU Autoconf 2.69 1717 1718Copyright (C) 2012 Free Software Foundation, Inc. 1719This configure script is free software; the Free Software Foundation 1720gives unlimited permission to copy, distribute and modify it. 1721_ACEOF 1722 exit 1723fi 1724 1725## ------------------------ ## 1726## Autoconf initialization. ## 1727## ------------------------ ## 1728 1729# ac_fn_c_try_compile LINENO 1730# -------------------------- 1731# Try to compile conftest.$ac_ext, and return whether this succeeded. 1732ac_fn_c_try_compile () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 rm -f conftest.$ac_objext 1736 if { { ac_try="$ac_compile" 1737case "(($ac_try" in 1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1739 *) ac_try_echo=$ac_try;; 1740esac 1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1742$as_echo "$ac_try_echo"; } >&5 1743 (eval "$ac_compile") 2>conftest.err 1744 ac_status=$? 1745 if test -s conftest.err; then 1746 grep -v '^ *+' conftest.err >conftest.er1 1747 cat conftest.er1 >&5 1748 mv -f conftest.er1 conftest.err 1749 fi 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } && { 1752 test -z "$ac_c_werror_flag" || 1753 test ! -s conftest.err 1754 } && test -s conftest.$ac_objext; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: failed program was:" >&5 1758sed 's/^/| /' conftest.$ac_ext >&5 1759 1760 ac_retval=1 1761fi 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763 as_fn_set_status $ac_retval 1764 1765} # ac_fn_c_try_compile 1766 1767# ac_fn_c_try_link LINENO 1768# ----------------------- 1769# Try to link conftest.$ac_ext, and return whether this succeeded. 1770ac_fn_c_try_link () 1771{ 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 rm -f conftest.$ac_objext conftest$ac_exeext 1774 if { { ac_try="$ac_link" 1775case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_link") 2>conftest.err 1782 ac_status=$? 1783 if test -s conftest.err; then 1784 grep -v '^ *+' conftest.err >conftest.er1 1785 cat conftest.er1 >&5 1786 mv -f conftest.er1 conftest.err 1787 fi 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; } && { 1790 test -z "$ac_c_werror_flag" || 1791 test ! -s conftest.err 1792 } && test -s conftest$ac_exeext && { 1793 test "$cross_compiling" = yes || 1794 test -x conftest$ac_exeext 1795 }; then : 1796 ac_retval=0 1797else 1798 $as_echo "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=1 1802fi 1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1805 # interfere with the next link command; also delete a directory that is 1806 # left behind by Apple's compiler. We do this before executing the actions. 1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 as_fn_set_status $ac_retval 1810 1811} # ac_fn_c_try_link 1812 1813# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1814# ------------------------------------------------------- 1815# Tests whether HEADER exists and can be compiled using the include files in 1816# INCLUDES, setting the cache variable VAR accordingly. 1817ac_fn_c_check_header_compile () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1821$as_echo_n "checking for $2... " >&6; } 1822if eval \${$3+:} false; then : 1823 $as_echo_n "(cached) " >&6 1824else 1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827$4 1828#include <$2> 1829_ACEOF 1830if ac_fn_c_try_compile "$LINENO"; then : 1831 eval "$3=yes" 1832else 1833 eval "$3=no" 1834fi 1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1836fi 1837eval ac_res=\$$3 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1839$as_echo "$ac_res" >&6; } 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 1842} # ac_fn_c_check_header_compile 1843 1844# ac_fn_c_try_cpp LINENO 1845# ---------------------- 1846# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1847ac_fn_c_try_cpp () 1848{ 1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1850 if { { ac_try="$ac_cpp conftest.$ac_ext" 1851case "(($ac_try" in 1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1853 *) ac_try_echo=$ac_try;; 1854esac 1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1856$as_echo "$ac_try_echo"; } >&5 1857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1858 ac_status=$? 1859 if test -s conftest.err; then 1860 grep -v '^ *+' conftest.err >conftest.er1 1861 cat conftest.er1 >&5 1862 mv -f conftest.er1 conftest.err 1863 fi 1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1865 test $ac_status = 0; } > conftest.i && { 1866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1867 test ! -s conftest.err 1868 }; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: failed program was:" >&5 1872sed 's/^/| /' conftest.$ac_ext >&5 1873 1874 ac_retval=1 1875fi 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877 as_fn_set_status $ac_retval 1878 1879} # ac_fn_c_try_cpp 1880 1881# ac_fn_c_try_run LINENO 1882# ---------------------- 1883# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1884# that executables *can* be run. 1885ac_fn_c_try_run () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 if { { ac_try="$ac_link" 1889case "(($ac_try" in 1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1891 *) ac_try_echo=$ac_try;; 1892esac 1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1894$as_echo "$ac_try_echo"; } >&5 1895 (eval "$ac_link") 2>&5 1896 ac_status=$? 1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1899 { { case "(($ac_try" in 1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1901 *) ac_try_echo=$ac_try;; 1902esac 1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1904$as_echo "$ac_try_echo"; } >&5 1905 (eval "$ac_try") 2>&5 1906 ac_status=$? 1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1908 test $ac_status = 0; }; }; then : 1909 ac_retval=0 1910else 1911 $as_echo "$as_me: program exited with status $ac_status" >&5 1912 $as_echo "$as_me: failed program was:" >&5 1913sed 's/^/| /' conftest.$ac_ext >&5 1914 1915 ac_retval=$ac_status 1916fi 1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 as_fn_set_status $ac_retval 1920 1921} # ac_fn_c_try_run 1922 1923# ac_fn_c_check_func LINENO FUNC VAR 1924# ---------------------------------- 1925# Tests whether FUNC exists, setting the cache variable VAR accordingly 1926ac_fn_c_check_func () 1927{ 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1930$as_echo_n "checking for $2... " >&6; } 1931if eval \${$3+:} false; then : 1932 $as_echo_n "(cached) " >&6 1933else 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935/* end confdefs.h. */ 1936/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1937 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1938#define $2 innocuous_$2 1939 1940/* System header to define __stub macros and hopefully few prototypes, 1941 which can conflict with char $2 (); below. 1942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1943 <limits.h> exists even on freestanding compilers. */ 1944 1945#ifdef __STDC__ 1946# include <limits.h> 1947#else 1948# include <assert.h> 1949#endif 1950 1951#undef $2 1952 1953/* Override any GCC internal prototype to avoid an error. 1954 Use char because int might match the return type of a GCC 1955 builtin and then its argument prototype would still apply. */ 1956#ifdef __cplusplus 1957extern "C" 1958#endif 1959char $2 (); 1960/* The GNU C library defines this for functions which it implements 1961 to always fail with ENOSYS. Some functions are actually named 1962 something starting with __ and the normal name is an alias. */ 1963#if defined __stub_$2 || defined __stub___$2 1964choke me 1965#endif 1966 1967int 1968main () 1969{ 1970return $2 (); 1971 ; 1972 return 0; 1973} 1974_ACEOF 1975if ac_fn_c_try_link "$LINENO"; then : 1976 eval "$3=yes" 1977else 1978 eval "$3=no" 1979fi 1980rm -f core conftest.err conftest.$ac_objext \ 1981 conftest$ac_exeext conftest.$ac_ext 1982fi 1983eval ac_res=\$$3 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1985$as_echo "$ac_res" >&6; } 1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 1988} # ac_fn_c_check_func 1989 1990# ac_fn_objc_try_compile LINENO 1991# ----------------------------- 1992# Try to compile conftest.$ac_ext, and return whether this succeeded. 1993ac_fn_objc_try_compile () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 rm -f conftest.$ac_objext 1997 if { { ac_try="$ac_compile" 1998case "(($ac_try" in 1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2000 *) ac_try_echo=$ac_try;; 2001esac 2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2003$as_echo "$ac_try_echo"; } >&5 2004 (eval "$ac_compile") 2>conftest.err 2005 ac_status=$? 2006 if test -s conftest.err; then 2007 grep -v '^ *+' conftest.err >conftest.er1 2008 cat conftest.er1 >&5 2009 mv -f conftest.er1 conftest.err 2010 fi 2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2012 test $ac_status = 0; } && { 2013 test -z "$ac_objc_werror_flag" || 2014 test ! -s conftest.err 2015 } && test -s conftest.$ac_objext; then : 2016 ac_retval=0 2017else 2018 $as_echo "$as_me: failed program was:" >&5 2019sed 's/^/| /' conftest.$ac_ext >&5 2020 2021 ac_retval=1 2022fi 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 as_fn_set_status $ac_retval 2025 2026} # ac_fn_objc_try_compile 2027 2028# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2029# ------------------------------------------------------- 2030# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2031# the include files in INCLUDES and setting the cache variable VAR 2032# accordingly. 2033ac_fn_c_check_header_mongrel () 2034{ 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 if eval \${$3+:} false; then : 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2038$as_echo_n "checking for $2... " >&6; } 2039if eval \${$3+:} false; then : 2040 $as_echo_n "(cached) " >&6 2041fi 2042eval ac_res=\$$3 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2044$as_echo "$ac_res" >&6; } 2045else 2046 # Is the header compilable? 2047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2048$as_echo_n "checking $2 usability... " >&6; } 2049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2050/* end confdefs.h. */ 2051$4 2052#include <$2> 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 ac_header_compiler=yes 2056else 2057 ac_header_compiler=no 2058fi 2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2061$as_echo "$ac_header_compiler" >&6; } 2062 2063# Is the header present? 2064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2065$as_echo_n "checking $2 presence... " >&6; } 2066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2067/* end confdefs.h. */ 2068#include <$2> 2069_ACEOF 2070if ac_fn_c_try_cpp "$LINENO"; then : 2071 ac_header_preproc=yes 2072else 2073 ac_header_preproc=no 2074fi 2075rm -f conftest.err conftest.i conftest.$ac_ext 2076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2077$as_echo "$ac_header_preproc" >&6; } 2078 2079# So? What about this header? 2080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2081 yes:no: ) 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2083$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2085$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2086 ;; 2087 no:yes:* ) 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2089$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2091$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2093$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2095$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2097$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2098 ;; 2099esac 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2101$as_echo_n "checking for $2... " >&6; } 2102if eval \${$3+:} false; then : 2103 $as_echo_n "(cached) " >&6 2104else 2105 eval "$3=\$ac_header_compiler" 2106fi 2107eval ac_res=\$$3 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2109$as_echo "$ac_res" >&6; } 2110fi 2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2112 2113} # ac_fn_c_check_header_mongrel 2114cat >config.log <<_ACEOF 2115This file contains any messages produced by compilers while 2116running configure, to aid debugging if configure makes a mistake. 2117 2118It was created by $as_me, which was 2119generated by GNU Autoconf 2.69. Invocation command line was 2120 2121 $ $0 $@ 2122 2123_ACEOF 2124exec 5>>config.log 2125{ 2126cat <<_ASUNAME 2127## --------- ## 2128## Platform. ## 2129## --------- ## 2130 2131hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2132uname -m = `(uname -m) 2>/dev/null || echo unknown` 2133uname -r = `(uname -r) 2>/dev/null || echo unknown` 2134uname -s = `(uname -s) 2>/dev/null || echo unknown` 2135uname -v = `(uname -v) 2>/dev/null || echo unknown` 2136 2137/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2138/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2139 2140/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2141/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2142/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2143/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2144/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2145/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2146/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2147 2148_ASUNAME 2149 2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151for as_dir in $PATH 2152do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 $as_echo "PATH: $as_dir" 2156 done 2157IFS=$as_save_IFS 2158 2159} >&5 2160 2161cat >&5 <<_ACEOF 2162 2163 2164## ----------- ## 2165## Core tests. ## 2166## ----------- ## 2167 2168_ACEOF 2169 2170 2171# Keep a trace of the command line. 2172# Strip out --no-create and --no-recursion so they do not pile up. 2173# Strip out --silent because we don't want to record it for future runs. 2174# Also quote any args containing shell meta-characters. 2175# Make two passes to allow for proper duplicate-argument suppression. 2176ac_configure_args= 2177ac_configure_args0= 2178ac_configure_args1= 2179ac_must_keep_next=false 2180for ac_pass in 1 2 2181do 2182 for ac_arg 2183 do 2184 case $ac_arg in 2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2187 | -silent | --silent | --silen | --sile | --sil) 2188 continue ;; 2189 *\'*) 2190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2191 esac 2192 case $ac_pass in 2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2194 2) 2195 as_fn_append ac_configure_args1 " '$ac_arg'" 2196 if test $ac_must_keep_next = true; then 2197 ac_must_keep_next=false # Got value, back to normal. 2198 else 2199 case $ac_arg in 2200 *=* | --config-cache | -C | -disable-* | --disable-* \ 2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2203 | -with-* | --with-* | -without-* | --without-* | --x) 2204 case "$ac_configure_args0 " in 2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2206 esac 2207 ;; 2208 -* ) ac_must_keep_next=true ;; 2209 esac 2210 fi 2211 as_fn_append ac_configure_args " '$ac_arg'" 2212 ;; 2213 esac 2214 done 2215done 2216{ ac_configure_args0=; unset ac_configure_args0;} 2217{ ac_configure_args1=; unset ac_configure_args1;} 2218 2219# When interrupted or exit'd, cleanup temporary files, and complete 2220# config.log. We remove comments because anyway the quotes in there 2221# would cause problems or look ugly. 2222# WARNING: Use '\'' to represent an apostrophe within the trap. 2223# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2224trap 'exit_status=$? 2225 # Save into config.log some information that might help in debugging. 2226 { 2227 echo 2228 2229 $as_echo "## ---------------- ## 2230## Cache variables. ## 2231## ---------------- ##" 2232 echo 2233 # The following way of writing the cache mishandles newlines in values, 2234( 2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2236 eval ac_val=\$$ac_var 2237 case $ac_val in #( 2238 *${as_nl}*) 2239 case $ac_var in #( 2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2241$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2242 esac 2243 case $ac_var in #( 2244 _ | IFS | as_nl) ;; #( 2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2246 *) { eval $ac_var=; unset $ac_var;} ;; 2247 esac ;; 2248 esac 2249 done 2250 (set) 2>&1 | 2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2252 *${as_nl}ac_space=\ *) 2253 sed -n \ 2254 "s/'\''/'\''\\\\'\'''\''/g; 2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2256 ;; #( 2257 *) 2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2259 ;; 2260 esac | 2261 sort 2262) 2263 echo 2264 2265 $as_echo "## ----------------- ## 2266## Output variables. ## 2267## ----------------- ##" 2268 echo 2269 for ac_var in $ac_subst_vars 2270 do 2271 eval ac_val=\$$ac_var 2272 case $ac_val in 2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2274 esac 2275 $as_echo "$ac_var='\''$ac_val'\''" 2276 done | sort 2277 echo 2278 2279 if test -n "$ac_subst_files"; then 2280 $as_echo "## ------------------- ## 2281## File substitutions. ## 2282## ------------------- ##" 2283 echo 2284 for ac_var in $ac_subst_files 2285 do 2286 eval ac_val=\$$ac_var 2287 case $ac_val in 2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2289 esac 2290 $as_echo "$ac_var='\''$ac_val'\''" 2291 done | sort 2292 echo 2293 fi 2294 2295 if test -s confdefs.h; then 2296 $as_echo "## ----------- ## 2297## confdefs.h. ## 2298## ----------- ##" 2299 echo 2300 cat confdefs.h 2301 echo 2302 fi 2303 test "$ac_signal" != 0 && 2304 $as_echo "$as_me: caught signal $ac_signal" 2305 $as_echo "$as_me: exit $exit_status" 2306 } >&5 2307 rm -f core *.core core.conftest.* && 2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2309 exit $exit_status 2310' 0 2311for ac_signal in 1 2 13 15; do 2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2313done 2314ac_signal=0 2315 2316# confdefs.h avoids OS command line length limits that DEFS can exceed. 2317rm -f -r conftest* confdefs.h 2318 2319$as_echo "/* confdefs.h */" > confdefs.h 2320 2321# Predefined preprocessor variables. 2322 2323cat >>confdefs.h <<_ACEOF 2324#define PACKAGE_NAME "$PACKAGE_NAME" 2325_ACEOF 2326 2327cat >>confdefs.h <<_ACEOF 2328#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2329_ACEOF 2330 2331cat >>confdefs.h <<_ACEOF 2332#define PACKAGE_VERSION "$PACKAGE_VERSION" 2333_ACEOF 2334 2335cat >>confdefs.h <<_ACEOF 2336#define PACKAGE_STRING "$PACKAGE_STRING" 2337_ACEOF 2338 2339cat >>confdefs.h <<_ACEOF 2340#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2341_ACEOF 2342 2343cat >>confdefs.h <<_ACEOF 2344#define PACKAGE_URL "$PACKAGE_URL" 2345_ACEOF 2346 2347 2348# Let the site file select an alternate cache file if it wants to. 2349# Prefer an explicitly selected file to automatically selected ones. 2350ac_site_file1=NONE 2351ac_site_file2=NONE 2352if test -n "$CONFIG_SITE"; then 2353 # We do not want a PATH search for config.site. 2354 case $CONFIG_SITE in #(( 2355 -*) ac_site_file1=./$CONFIG_SITE;; 2356 */*) ac_site_file1=$CONFIG_SITE;; 2357 *) ac_site_file1=./$CONFIG_SITE;; 2358 esac 2359elif test "x$prefix" != xNONE; then 2360 ac_site_file1=$prefix/share/config.site 2361 ac_site_file2=$prefix/etc/config.site 2362else 2363 ac_site_file1=$ac_default_prefix/share/config.site 2364 ac_site_file2=$ac_default_prefix/etc/config.site 2365fi 2366for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2367do 2368 test "x$ac_site_file" = xNONE && continue 2369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2371$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2372 sed 's/^/| /' "$ac_site_file" >&5 2373 . "$ac_site_file" \ 2374 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2376as_fn_error $? "failed to load site script $ac_site_file 2377See \`config.log' for more details" "$LINENO" 5; } 2378 fi 2379done 2380 2381if test -r "$cache_file"; then 2382 # Some versions of bash will fail to source /dev/null (special files 2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2386$as_echo "$as_me: loading cache $cache_file" >&6;} 2387 case $cache_file in 2388 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2389 *) . "./$cache_file";; 2390 esac 2391 fi 2392else 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2394$as_echo "$as_me: creating cache $cache_file" >&6;} 2395 >$cache_file 2396fi 2397 2398# Check that the precious variables saved in the cache have kept the same 2399# value. 2400ac_cache_corrupted=false 2401for ac_var in $ac_precious_vars; do 2402 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2403 eval ac_new_set=\$ac_env_${ac_var}_set 2404 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2405 eval ac_new_val=\$ac_env_${ac_var}_value 2406 case $ac_old_set,$ac_new_set in 2407 set,) 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2409$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2410 ac_cache_corrupted=: ;; 2411 ,set) 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2413$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2414 ac_cache_corrupted=: ;; 2415 ,);; 2416 *) 2417 if test "x$ac_old_val" != "x$ac_new_val"; then 2418 # differences in whitespace do not lead to failure. 2419 ac_old_val_w=`echo x $ac_old_val` 2420 ac_new_val_w=`echo x $ac_new_val` 2421 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2423$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2424 ac_cache_corrupted=: 2425 else 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2427$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2428 eval $ac_var=\$ac_old_val 2429 fi 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2431$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2433$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2434 fi;; 2435 esac 2436 # Pass precious variables to config.status. 2437 if test "$ac_new_set" = set; then 2438 case $ac_new_val in 2439 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2440 *) ac_arg=$ac_var=$ac_new_val ;; 2441 esac 2442 case " $ac_configure_args " in 2443 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2444 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2445 esac 2446 fi 2447done 2448if $ac_cache_corrupted; then 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2452$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2453 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2454fi 2455## -------------------- ## 2456## Main body of script. ## 2457## -------------------- ## 2458 2459ac_ext=c 2460ac_cpp='$CPP $CPPFLAGS' 2461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2463ac_compiler_gnu=$ac_cv_c_compiler_gnu 2464 2465 2466 2467 2468# Making releases: 2469# MICRO_VERSION += 1; 2470# INTERFACE_AGE += 1; 2471# BINARY_AGE += 1; 2472# if any functions have been added, set INTERFACE_AGE to 0. 2473# if backwards compatibility has been broken, 2474# set BINARY_AGE and INTERFACE_AGE to 0. 2475 2476MAJOR_VERSION=2 2477MINOR_VERSION=0 2478MICRO_VERSION=5 2479INTERFACE_AGE=3 2480BINARY_AGE=5 2481VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION 2482 2483 2484 2485 2486 2487 2488 2489 2490# libtool versioning 2491case `pwd` in 2492 *\ * | *\ *) 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2494$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2495esac 2496 2497 2498 2499macro_version='2.2.6' 2500macro_revision='1.3012' 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514ltmain="$ac_aux_dir/ltmain.sh" 2515 2516ac_aux_dir= 2517for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2518 if test -f "$ac_dir/install-sh"; then 2519 ac_aux_dir=$ac_dir 2520 ac_install_sh="$ac_aux_dir/install-sh -c" 2521 break 2522 elif test -f "$ac_dir/install.sh"; then 2523 ac_aux_dir=$ac_dir 2524 ac_install_sh="$ac_aux_dir/install.sh -c" 2525 break 2526 elif test -f "$ac_dir/shtool"; then 2527 ac_aux_dir=$ac_dir 2528 ac_install_sh="$ac_aux_dir/shtool install -c" 2529 break 2530 fi 2531done 2532if test -z "$ac_aux_dir"; then 2533 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2534fi 2535 2536# These three variables are undocumented and unsupported, 2537# and are intended to be withdrawn in a future Autoconf release. 2538# They can cause serious problems if a builder's source tree is in a directory 2539# whose full name contains unusual characters. 2540ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2541ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2542ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2543 2544 2545# Make sure we can run config.sub. 2546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2547 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2548 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2550$as_echo_n "checking build system type... " >&6; } 2551if ${ac_cv_build+:} false; then : 2552 $as_echo_n "(cached) " >&6 2553else 2554 ac_build_alias=$build_alias 2555test "x$ac_build_alias" = x && 2556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2557test "x$ac_build_alias" = x && 2558 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2559ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2561 2562fi 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2564$as_echo "$ac_cv_build" >&6; } 2565case $ac_cv_build in 2566*-*-*) ;; 2567*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2568esac 2569build=$ac_cv_build 2570ac_save_IFS=$IFS; IFS='-' 2571set x $ac_cv_build 2572shift 2573build_cpu=$1 2574build_vendor=$2 2575shift; shift 2576# Remember, the first character of IFS is used to create $*, 2577# except with old shells: 2578build_os=$* 2579IFS=$ac_save_IFS 2580case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2581 2582 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2584$as_echo_n "checking host system type... " >&6; } 2585if ${ac_cv_host+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test "x$host_alias" = x; then 2589 ac_cv_host=$ac_cv_build 2590else 2591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2593fi 2594 2595fi 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2597$as_echo "$ac_cv_host" >&6; } 2598case $ac_cv_host in 2599*-*-*) ;; 2600*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2601esac 2602host=$ac_cv_host 2603ac_save_IFS=$IFS; IFS='-' 2604set x $ac_cv_host 2605shift 2606host_cpu=$1 2607host_vendor=$2 2608shift; shift 2609# Remember, the first character of IFS is used to create $*, 2610# except with old shells: 2611host_os=$* 2612IFS=$ac_save_IFS 2613case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2614 2615 2616# Expand $ac_aux_dir to an absolute path. 2617am_aux_dir=`cd "$ac_aux_dir" && pwd` 2618 2619ac_ext=c 2620ac_cpp='$CPP $CPPFLAGS' 2621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2623ac_compiler_gnu=$ac_cv_c_compiler_gnu 2624if test -n "$ac_tool_prefix"; then 2625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2626set dummy ${ac_tool_prefix}gcc; ac_word=$2 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2628$as_echo_n "checking for $ac_word... " >&6; } 2629if ${ac_cv_prog_CC+:} false; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test -n "$CC"; then 2633 ac_cv_prog_CC="$CC" # Let the user override the test. 2634else 2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2636for as_dir in $PATH 2637do 2638 IFS=$as_save_IFS 2639 test -z "$as_dir" && as_dir=. 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2642 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647 done 2648IFS=$as_save_IFS 2649 2650fi 2651fi 2652CC=$ac_cv_prog_CC 2653if test -n "$CC"; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2655$as_echo "$CC" >&6; } 2656else 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2658$as_echo "no" >&6; } 2659fi 2660 2661 2662fi 2663if test -z "$ac_cv_prog_CC"; then 2664 ac_ct_CC=$CC 2665 # Extract the first word of "gcc", so it can be a program name with args. 2666set dummy gcc; ac_word=$2 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if ${ac_cv_prog_ac_ct_CC+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$ac_ct_CC"; then 2673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2682 ac_cv_prog_ac_ct_CC="gcc" 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687 done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692ac_ct_CC=$ac_cv_prog_ac_ct_CC 2693if test -n "$ac_ct_CC"; then 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2695$as_echo "$ac_ct_CC" >&6; } 2696else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 if test "x$ac_ct_CC" = x; then 2702 CC="" 2703 else 2704 case $cross_compiling:$ac_tool_warned in 2705yes:) 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2708ac_tool_warned=yes ;; 2709esac 2710 CC=$ac_ct_CC 2711 fi 2712else 2713 CC="$ac_cv_prog_CC" 2714fi 2715 2716if test -z "$CC"; then 2717 if test -n "$ac_tool_prefix"; then 2718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2719set dummy ${ac_tool_prefix}cc; ac_word=$2 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2721$as_echo_n "checking for $ac_word... " >&6; } 2722if ${ac_cv_prog_CC+:} false; then : 2723 $as_echo_n "(cached) " >&6 2724else 2725 if test -n "$CC"; then 2726 ac_cv_prog_CC="$CC" # Let the user override the test. 2727else 2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2729for as_dir in $PATH 2730do 2731 IFS=$as_save_IFS 2732 test -z "$as_dir" && as_dir=. 2733 for ac_exec_ext in '' $ac_executable_extensions; do 2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2735 ac_cv_prog_CC="${ac_tool_prefix}cc" 2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2737 break 2 2738 fi 2739done 2740 done 2741IFS=$as_save_IFS 2742 2743fi 2744fi 2745CC=$ac_cv_prog_CC 2746if test -n "$CC"; then 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2748$as_echo "$CC" >&6; } 2749else 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2751$as_echo "no" >&6; } 2752fi 2753 2754 2755 fi 2756fi 2757if test -z "$CC"; then 2758 # Extract the first word of "cc", so it can be a program name with args. 2759set dummy cc; ac_word=$2 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2761$as_echo_n "checking for $ac_word... " >&6; } 2762if ${ac_cv_prog_CC+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if test -n "$CC"; then 2766 ac_cv_prog_CC="$CC" # Let the user override the test. 2767else 2768 ac_prog_rejected=no 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2777 ac_prog_rejected=yes 2778 continue 2779 fi 2780 ac_cv_prog_CC="cc" 2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2782 break 2 2783 fi 2784done 2785 done 2786IFS=$as_save_IFS 2787 2788if test $ac_prog_rejected = yes; then 2789 # We found a bogon in the path, so make sure we never use it. 2790 set dummy $ac_cv_prog_CC 2791 shift 2792 if test $# != 0; then 2793 # We chose a different compiler from the bogus one. 2794 # However, it has the same basename, so the bogon will be chosen 2795 # first if we set CC to just the basename; use the full file name. 2796 shift 2797 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2798 fi 2799fi 2800fi 2801fi 2802CC=$ac_cv_prog_CC 2803if test -n "$CC"; then 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2805$as_echo "$CC" >&6; } 2806else 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2808$as_echo "no" >&6; } 2809fi 2810 2811 2812fi 2813if test -z "$CC"; then 2814 if test -n "$ac_tool_prefix"; then 2815 for ac_prog in cl.exe 2816 do 2817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2818set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2820$as_echo_n "checking for $ac_word... " >&6; } 2821if ${ac_cv_prog_CC+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 if test -n "$CC"; then 2825 ac_cv_prog_CC="$CC" # Let the user override the test. 2826else 2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828for as_dir in $PATH 2829do 2830 IFS=$as_save_IFS 2831 test -z "$as_dir" && as_dir=. 2832 for ac_exec_ext in '' $ac_executable_extensions; do 2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2834 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2836 break 2 2837 fi 2838done 2839 done 2840IFS=$as_save_IFS 2841 2842fi 2843fi 2844CC=$ac_cv_prog_CC 2845if test -n "$CC"; then 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2847$as_echo "$CC" >&6; } 2848else 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2850$as_echo "no" >&6; } 2851fi 2852 2853 2854 test -n "$CC" && break 2855 done 2856fi 2857if test -z "$CC"; then 2858 ac_ct_CC=$CC 2859 for ac_prog in cl.exe 2860do 2861 # Extract the first word of "$ac_prog", so it can be a program name with args. 2862set dummy $ac_prog; ac_word=$2 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if ${ac_cv_prog_ac_ct_CC+:} false; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$ac_ct_CC"; then 2869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2878 ac_cv_prog_ac_ct_CC="$ac_prog" 2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888ac_ct_CC=$ac_cv_prog_ac_ct_CC 2889if test -n "$ac_ct_CC"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2891$as_echo "$ac_ct_CC" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898 test -n "$ac_ct_CC" && break 2899done 2900 2901 if test "x$ac_ct_CC" = x; then 2902 CC="" 2903 else 2904 case $cross_compiling:$ac_tool_warned in 2905yes:) 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2908ac_tool_warned=yes ;; 2909esac 2910 CC=$ac_ct_CC 2911 fi 2912fi 2913 2914fi 2915 2916 2917test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2919as_fn_error $? "no acceptable C compiler found in \$PATH 2920See \`config.log' for more details" "$LINENO" 5; } 2921 2922# Provide some information about the compiler. 2923$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2924set X $ac_compile 2925ac_compiler=$2 2926for ac_option in --version -v -V -qversion; do 2927 { { ac_try="$ac_compiler $ac_option >&5" 2928case "(($ac_try" in 2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2930 *) ac_try_echo=$ac_try;; 2931esac 2932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2933$as_echo "$ac_try_echo"; } >&5 2934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2935 ac_status=$? 2936 if test -s conftest.err; then 2937 sed '10a\ 2938... rest of stderr output deleted ... 2939 10q' conftest.err >conftest.er1 2940 cat conftest.er1 >&5 2941 fi 2942 rm -f conftest.er1 conftest.err 2943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2944 test $ac_status = 0; } 2945done 2946 2947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2948/* end confdefs.h. */ 2949 2950int 2951main () 2952{ 2953 2954 ; 2955 return 0; 2956} 2957_ACEOF 2958ac_clean_files_save=$ac_clean_files 2959ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2960# Try to create an executable without -o first, disregard a.out. 2961# It will help us diagnose broken compilers, and finding out an intuition 2962# of exeext. 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2964$as_echo_n "checking whether the C compiler works... " >&6; } 2965ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2966 2967# The possible output files: 2968ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2969 2970ac_rmfiles= 2971for ac_file in $ac_files 2972do 2973 case $ac_file in 2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2975 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2976 esac 2977done 2978rm -f $ac_rmfiles 2979 2980if { { ac_try="$ac_link_default" 2981case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2986$as_echo "$ac_try_echo"; } >&5 2987 (eval "$ac_link_default") 2>&5 2988 ac_status=$? 2989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2990 test $ac_status = 0; }; then : 2991 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2992# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2993# in a Makefile. We should not override ac_cv_exeext if it was cached, 2994# so that the user can short-circuit this test for compilers unknown to 2995# Autoconf. 2996for ac_file in $ac_files '' 2997do 2998 test -f "$ac_file" || continue 2999 case $ac_file in 3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3001 ;; 3002 [ab].out ) 3003 # We found the default executable, but exeext='' is most 3004 # certainly right. 3005 break;; 3006 *.* ) 3007 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3008 then :; else 3009 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3010 fi 3011 # We set ac_cv_exeext here because the later test for it is not 3012 # safe: cross compilers may not add the suffix if given an `-o' 3013 # argument, so we may need to know it at that point already. 3014 # Even if this section looks crufty: it has the advantage of 3015 # actually working. 3016 break;; 3017 * ) 3018 break;; 3019 esac 3020done 3021test "$ac_cv_exeext" = no && ac_cv_exeext= 3022 3023else 3024 ac_file='' 3025fi 3026if test -z "$ac_file"; then : 3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028$as_echo "no" >&6; } 3029$as_echo "$as_me: failed program was:" >&5 3030sed 's/^/| /' conftest.$ac_ext >&5 3031 3032{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3034as_fn_error 77 "C compiler cannot create executables 3035See \`config.log' for more details" "$LINENO" 5; } 3036else 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3038$as_echo "yes" >&6; } 3039fi 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3041$as_echo_n "checking for C compiler default output file name... " >&6; } 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3043$as_echo "$ac_file" >&6; } 3044ac_exeext=$ac_cv_exeext 3045 3046rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3047ac_clean_files=$ac_clean_files_save 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3049$as_echo_n "checking for suffix of executables... " >&6; } 3050if { { ac_try="$ac_link" 3051case "(($ac_try" in 3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3053 *) ac_try_echo=$ac_try;; 3054esac 3055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3056$as_echo "$ac_try_echo"; } >&5 3057 (eval "$ac_link") 2>&5 3058 ac_status=$? 3059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3060 test $ac_status = 0; }; then : 3061 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3062# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3063# work properly (i.e., refer to `conftest.exe'), while it won't with 3064# `rm'. 3065for ac_file in conftest.exe conftest conftest.*; do 3066 test -f "$ac_file" || continue 3067 case $ac_file in 3068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3069 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3070 break;; 3071 * ) break;; 3072 esac 3073done 3074else 3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3077as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3078See \`config.log' for more details" "$LINENO" 5; } 3079fi 3080rm -f conftest conftest$ac_cv_exeext 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3082$as_echo "$ac_cv_exeext" >&6; } 3083 3084rm -f conftest.$ac_ext 3085EXEEXT=$ac_cv_exeext 3086ac_exeext=$EXEEXT 3087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3088/* end confdefs.h. */ 3089#include <stdio.h> 3090int 3091main () 3092{ 3093FILE *f = fopen ("conftest.out", "w"); 3094 return ferror (f) || fclose (f) != 0; 3095 3096 ; 3097 return 0; 3098} 3099_ACEOF 3100ac_clean_files="$ac_clean_files conftest.out" 3101# Check that the compiler produces executables we can run. If not, either 3102# the compiler is broken, or we cross compile. 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3104$as_echo_n "checking whether we are cross compiling... " >&6; } 3105if test "$cross_compiling" != yes; then 3106 { { ac_try="$ac_link" 3107case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110esac 3111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3112$as_echo "$ac_try_echo"; } >&5 3113 (eval "$ac_link") 2>&5 3114 ac_status=$? 3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3116 test $ac_status = 0; } 3117 if { ac_try='./conftest$ac_cv_exeext' 3118 { { case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3123$as_echo "$ac_try_echo"; } >&5 3124 (eval "$ac_try") 2>&5 3125 ac_status=$? 3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3127 test $ac_status = 0; }; }; then 3128 cross_compiling=no 3129 else 3130 if test "$cross_compiling" = maybe; then 3131 cross_compiling=yes 3132 else 3133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3135as_fn_error $? "cannot run C compiled programs. 3136If you meant to cross compile, use \`--host'. 3137See \`config.log' for more details" "$LINENO" 5; } 3138 fi 3139 fi 3140fi 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3142$as_echo "$cross_compiling" >&6; } 3143 3144rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3145ac_clean_files=$ac_clean_files_save 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3147$as_echo_n "checking for suffix of object files... " >&6; } 3148if ${ac_cv_objext+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3152/* end confdefs.h. */ 3153 3154int 3155main () 3156{ 3157 3158 ; 3159 return 0; 3160} 3161_ACEOF 3162rm -f conftest.o conftest.obj 3163if { { ac_try="$ac_compile" 3164case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3169$as_echo "$ac_try_echo"; } >&5 3170 (eval "$ac_compile") 2>&5 3171 ac_status=$? 3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3173 test $ac_status = 0; }; then : 3174 for ac_file in conftest.o conftest.obj conftest.*; do 3175 test -f "$ac_file" || continue; 3176 case $ac_file in 3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3179 break;; 3180 esac 3181done 3182else 3183 $as_echo "$as_me: failed program was:" >&5 3184sed 's/^/| /' conftest.$ac_ext >&5 3185 3186{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3188as_fn_error $? "cannot compute suffix of object files: cannot compile 3189See \`config.log' for more details" "$LINENO" 5; } 3190fi 3191rm -f conftest.$ac_cv_objext conftest.$ac_ext 3192fi 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3194$as_echo "$ac_cv_objext" >&6; } 3195OBJEXT=$ac_cv_objext 3196ac_objext=$OBJEXT 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3198$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3199if ${ac_cv_c_compiler_gnu+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204 3205int 3206main () 3207{ 3208#ifndef __GNUC__ 3209 choke me 3210#endif 3211 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216if ac_fn_c_try_compile "$LINENO"; then : 3217 ac_compiler_gnu=yes 3218else 3219 ac_compiler_gnu=no 3220fi 3221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3222ac_cv_c_compiler_gnu=$ac_compiler_gnu 3223 3224fi 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3226$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3227if test $ac_compiler_gnu = yes; then 3228 GCC=yes 3229else 3230 GCC= 3231fi 3232ac_test_CFLAGS=${CFLAGS+set} 3233ac_save_CFLAGS=$CFLAGS 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3235$as_echo_n "checking whether $CC accepts -g... " >&6; } 3236if ${ac_cv_prog_cc_g+:} false; then : 3237 $as_echo_n "(cached) " >&6 3238else 3239 ac_save_c_werror_flag=$ac_c_werror_flag 3240 ac_c_werror_flag=yes 3241 ac_cv_prog_cc_g=no 3242 CFLAGS="-g" 3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244/* end confdefs.h. */ 3245 3246int 3247main () 3248{ 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254if ac_fn_c_try_compile "$LINENO"; then : 3255 ac_cv_prog_cc_g=yes 3256else 3257 CFLAGS="" 3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3259/* end confdefs.h. */ 3260 3261int 3262main () 3263{ 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269if ac_fn_c_try_compile "$LINENO"; then : 3270 3271else 3272 ac_c_werror_flag=$ac_save_c_werror_flag 3273 CFLAGS="-g" 3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285if ac_fn_c_try_compile "$LINENO"; then : 3286 ac_cv_prog_cc_g=yes 3287fi 3288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3289fi 3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3291fi 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293 ac_c_werror_flag=$ac_save_c_werror_flag 3294fi 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3296$as_echo "$ac_cv_prog_cc_g" >&6; } 3297if test "$ac_test_CFLAGS" = set; then 3298 CFLAGS=$ac_save_CFLAGS 3299elif test $ac_cv_prog_cc_g = yes; then 3300 if test "$GCC" = yes; then 3301 CFLAGS="-g -O2" 3302 else 3303 CFLAGS="-g" 3304 fi 3305else 3306 if test "$GCC" = yes; then 3307 CFLAGS="-O2" 3308 else 3309 CFLAGS= 3310 fi 3311fi 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3313$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3314if ${ac_cv_prog_cc_c89+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 ac_cv_prog_cc_c89=no 3318ac_save_CC=$CC 3319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321#include <stdarg.h> 3322#include <stdio.h> 3323struct stat; 3324/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3325struct buf { int x; }; 3326FILE * (*rcsopen) (struct buf *, struct stat *, int); 3327static char *e (p, i) 3328 char **p; 3329 int i; 3330{ 3331 return p[i]; 3332} 3333static char *f (char * (*g) (char **, int), char **p, ...) 3334{ 3335 char *s; 3336 va_list v; 3337 va_start (v,p); 3338 s = g (p, va_arg (v,int)); 3339 va_end (v); 3340 return s; 3341} 3342 3343/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3344 function prototypes and stuff, but not '\xHH' hex character constants. 3345 These don't provoke an error unfortunately, instead are silently treated 3346 as 'x'. The following induces an error, until -std is added to get 3347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3348 array size at least. It's necessary to write '\x00'==0 to get something 3349 that's true only with -std. */ 3350int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3351 3352/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3353 inside strings and character constants. */ 3354#define FOO(x) 'x' 3355int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3356 3357int test (int i, double x); 3358struct s1 {int (*f) (int a);}; 3359struct s2 {int (*f) (double a);}; 3360int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3361int argc; 3362char **argv; 3363int 3364main () 3365{ 3366return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3373do 3374 CC="$ac_save_CC $ac_arg" 3375 if ac_fn_c_try_compile "$LINENO"; then : 3376 ac_cv_prog_cc_c89=$ac_arg 3377fi 3378rm -f core conftest.err conftest.$ac_objext 3379 test "x$ac_cv_prog_cc_c89" != "xno" && break 3380done 3381rm -f conftest.$ac_ext 3382CC=$ac_save_CC 3383 3384fi 3385# AC_CACHE_VAL 3386case "x$ac_cv_prog_cc_c89" in 3387 x) 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3389$as_echo "none needed" >&6; } ;; 3390 xno) 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3392$as_echo "unsupported" >&6; } ;; 3393 *) 3394 CC="$CC $ac_cv_prog_cc_c89" 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3396$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3397esac 3398if test "x$ac_cv_prog_cc_c89" != xno; then : 3399 3400fi 3401 3402ac_ext=c 3403ac_cpp='$CPP $CPPFLAGS' 3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3406ac_compiler_gnu=$ac_cv_c_compiler_gnu 3407 3408ac_ext=c 3409ac_cpp='$CPP $CPPFLAGS' 3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3412ac_compiler_gnu=$ac_cv_c_compiler_gnu 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3414$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3415if ${am_cv_prog_cc_c_o+:} false; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420 3421int 3422main () 3423{ 3424 3425 ; 3426 return 0; 3427} 3428_ACEOF 3429 # Make sure it works both with $CC and with simple cc. 3430 # Following AC_PROG_CC_C_O, we do the test twice because some 3431 # compilers refuse to overwrite an existing .o file with -o, 3432 # though they will create one. 3433 am_cv_prog_cc_c_o=yes 3434 for am_i in 1 2; do 3435 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3436 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3437 ac_status=$? 3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3439 (exit $ac_status); } \ 3440 && test -f conftest2.$ac_objext; then 3441 : OK 3442 else 3443 am_cv_prog_cc_c_o=no 3444 break 3445 fi 3446 done 3447 rm -f core conftest* 3448 unset am_i 3449fi 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3451$as_echo "$am_cv_prog_cc_c_o" >&6; } 3452if test "$am_cv_prog_cc_c_o" != yes; then 3453 # Losing compiler, so override with the script. 3454 # FIXME: It is wrong to rewrite CC. 3455 # But if we don't then we get into trouble of one sort or another. 3456 # A longer-term fix would be to have automake use am__CC in this case, 3457 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3458 CC="$am_aux_dir/compile $CC" 3459fi 3460ac_ext=c 3461ac_cpp='$CPP $CPPFLAGS' 3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3464ac_compiler_gnu=$ac_cv_c_compiler_gnu 3465 3466 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3468$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3469if ${ac_cv_path_SED+:} false; then : 3470 $as_echo_n "(cached) " >&6 3471else 3472 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3473 for ac_i in 1 2 3 4 5 6 7; do 3474 ac_script="$ac_script$as_nl$ac_script" 3475 done 3476 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3477 { ac_script=; unset ac_script;} 3478 if test -z "$SED"; then 3479 ac_path_SED_found=false 3480 # Loop through the user's path and test for each of PROGNAME-LIST 3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482for as_dir in $PATH 3483do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_prog in sed gsed; do 3487 for ac_exec_ext in '' $ac_executable_extensions; do 3488 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3489 as_fn_executable_p "$ac_path_SED" || continue 3490# Check for GNU ac_path_SED and select it if it is found. 3491 # Check for GNU $ac_path_SED 3492case `"$ac_path_SED" --version 2>&1` in 3493*GNU*) 3494 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3495*) 3496 ac_count=0 3497 $as_echo_n 0123456789 >"conftest.in" 3498 while : 3499 do 3500 cat "conftest.in" "conftest.in" >"conftest.tmp" 3501 mv "conftest.tmp" "conftest.in" 3502 cp "conftest.in" "conftest.nl" 3503 $as_echo '' >> "conftest.nl" 3504 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3506 as_fn_arith $ac_count + 1 && ac_count=$as_val 3507 if test $ac_count -gt ${ac_path_SED_max-0}; then 3508 # Best one so far, save it but keep looking for a better one 3509 ac_cv_path_SED="$ac_path_SED" 3510 ac_path_SED_max=$ac_count 3511 fi 3512 # 10*(2^10) chars as input seems more than enough 3513 test $ac_count -gt 10 && break 3514 done 3515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3516esac 3517 3518 $ac_path_SED_found && break 3 3519 done 3520 done 3521 done 3522IFS=$as_save_IFS 3523 if test -z "$ac_cv_path_SED"; then 3524 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3525 fi 3526else 3527 ac_cv_path_SED=$SED 3528fi 3529 3530fi 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3532$as_echo "$ac_cv_path_SED" >&6; } 3533 SED="$ac_cv_path_SED" 3534 rm -f conftest.sed 3535 3536test -z "$SED" && SED=sed 3537Xsed="$SED -e 1s/^X//" 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3550$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3551if ${ac_cv_path_GREP+:} false; then : 3552 $as_echo_n "(cached) " >&6 3553else 3554 if test -z "$GREP"; then 3555 ac_path_GREP_found=false 3556 # Loop through the user's path and test for each of PROGNAME-LIST 3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3558for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3559do 3560 IFS=$as_save_IFS 3561 test -z "$as_dir" && as_dir=. 3562 for ac_prog in grep ggrep; do 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3565 as_fn_executable_p "$ac_path_GREP" || continue 3566# Check for GNU ac_path_GREP and select it if it is found. 3567 # Check for GNU $ac_path_GREP 3568case `"$ac_path_GREP" --version 2>&1` in 3569*GNU*) 3570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3571*) 3572 ac_count=0 3573 $as_echo_n 0123456789 >"conftest.in" 3574 while : 3575 do 3576 cat "conftest.in" "conftest.in" >"conftest.tmp" 3577 mv "conftest.tmp" "conftest.in" 3578 cp "conftest.in" "conftest.nl" 3579 $as_echo 'GREP' >> "conftest.nl" 3580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3582 as_fn_arith $ac_count + 1 && ac_count=$as_val 3583 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3584 # Best one so far, save it but keep looking for a better one 3585 ac_cv_path_GREP="$ac_path_GREP" 3586 ac_path_GREP_max=$ac_count 3587 fi 3588 # 10*(2^10) chars as input seems more than enough 3589 test $ac_count -gt 10 && break 3590 done 3591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3592esac 3593 3594 $ac_path_GREP_found && break 3 3595 done 3596 done 3597 done 3598IFS=$as_save_IFS 3599 if test -z "$ac_cv_path_GREP"; then 3600 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3601 fi 3602else 3603 ac_cv_path_GREP=$GREP 3604fi 3605 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3608$as_echo "$ac_cv_path_GREP" >&6; } 3609 GREP="$ac_cv_path_GREP" 3610 3611 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3613$as_echo_n "checking for egrep... " >&6; } 3614if ${ac_cv_path_EGREP+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3618 then ac_cv_path_EGREP="$GREP -E" 3619 else 3620 if test -z "$EGREP"; then 3621 ac_path_EGREP_found=false 3622 # Loop through the user's path and test for each of PROGNAME-LIST 3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3624for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3625do 3626 IFS=$as_save_IFS 3627 test -z "$as_dir" && as_dir=. 3628 for ac_prog in egrep; do 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3631 as_fn_executable_p "$ac_path_EGREP" || continue 3632# Check for GNU ac_path_EGREP and select it if it is found. 3633 # Check for GNU $ac_path_EGREP 3634case `"$ac_path_EGREP" --version 2>&1` in 3635*GNU*) 3636 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3637*) 3638 ac_count=0 3639 $as_echo_n 0123456789 >"conftest.in" 3640 while : 3641 do 3642 cat "conftest.in" "conftest.in" >"conftest.tmp" 3643 mv "conftest.tmp" "conftest.in" 3644 cp "conftest.in" "conftest.nl" 3645 $as_echo 'EGREP' >> "conftest.nl" 3646 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3648 as_fn_arith $ac_count + 1 && ac_count=$as_val 3649 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3650 # Best one so far, save it but keep looking for a better one 3651 ac_cv_path_EGREP="$ac_path_EGREP" 3652 ac_path_EGREP_max=$ac_count 3653 fi 3654 # 10*(2^10) chars as input seems more than enough 3655 test $ac_count -gt 10 && break 3656 done 3657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3658esac 3659 3660 $ac_path_EGREP_found && break 3 3661 done 3662 done 3663 done 3664IFS=$as_save_IFS 3665 if test -z "$ac_cv_path_EGREP"; then 3666 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3667 fi 3668else 3669 ac_cv_path_EGREP=$EGREP 3670fi 3671 3672 fi 3673fi 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3675$as_echo "$ac_cv_path_EGREP" >&6; } 3676 EGREP="$ac_cv_path_EGREP" 3677 3678 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3680$as_echo_n "checking for fgrep... " >&6; } 3681if ${ac_cv_path_FGREP+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3685 then ac_cv_path_FGREP="$GREP -F" 3686 else 3687 if test -z "$FGREP"; then 3688 ac_path_FGREP_found=false 3689 # Loop through the user's path and test for each of PROGNAME-LIST 3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3691for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3692do 3693 IFS=$as_save_IFS 3694 test -z "$as_dir" && as_dir=. 3695 for ac_prog in fgrep; do 3696 for ac_exec_ext in '' $ac_executable_extensions; do 3697 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3698 as_fn_executable_p "$ac_path_FGREP" || continue 3699# Check for GNU ac_path_FGREP and select it if it is found. 3700 # Check for GNU $ac_path_FGREP 3701case `"$ac_path_FGREP" --version 2>&1` in 3702*GNU*) 3703 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3704*) 3705 ac_count=0 3706 $as_echo_n 0123456789 >"conftest.in" 3707 while : 3708 do 3709 cat "conftest.in" "conftest.in" >"conftest.tmp" 3710 mv "conftest.tmp" "conftest.in" 3711 cp "conftest.in" "conftest.nl" 3712 $as_echo 'FGREP' >> "conftest.nl" 3713 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3715 as_fn_arith $ac_count + 1 && ac_count=$as_val 3716 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3717 # Best one so far, save it but keep looking for a better one 3718 ac_cv_path_FGREP="$ac_path_FGREP" 3719 ac_path_FGREP_max=$ac_count 3720 fi 3721 # 10*(2^10) chars as input seems more than enough 3722 test $ac_count -gt 10 && break 3723 done 3724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3725esac 3726 3727 $ac_path_FGREP_found && break 3 3728 done 3729 done 3730 done 3731IFS=$as_save_IFS 3732 if test -z "$ac_cv_path_FGREP"; then 3733 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3734 fi 3735else 3736 ac_cv_path_FGREP=$FGREP 3737fi 3738 3739 fi 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3742$as_echo "$ac_cv_path_FGREP" >&6; } 3743 FGREP="$ac_cv_path_FGREP" 3744 3745 3746test -z "$GREP" && GREP=grep 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766# Check whether --with-gnu-ld was given. 3767if test "${with_gnu_ld+set}" = set; then : 3768 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3769else 3770 with_gnu_ld=no 3771fi 3772 3773ac_prog=ld 3774if test "$GCC" = yes; then 3775 # Check if gcc -print-prog-name=ld gives a path. 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3777$as_echo_n "checking for ld used by $CC... " >&6; } 3778 case $host in 3779 *-*-mingw*) 3780 # gcc leaves a trailing carriage return which upsets mingw 3781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3782 *) 3783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3784 esac 3785 case $ac_prog in 3786 # Accept absolute paths. 3787 [\\/]* | ?:[\\/]*) 3788 re_direlt='/[^/][^/]*/\.\./' 3789 # Canonicalize the pathname of ld 3790 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3791 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3792 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3793 done 3794 test -z "$LD" && LD="$ac_prog" 3795 ;; 3796 "") 3797 # If it fails, then pretend we aren't using GCC. 3798 ac_prog=ld 3799 ;; 3800 *) 3801 # If it is relative, then search for the first ld in PATH. 3802 with_gnu_ld=unknown 3803 ;; 3804 esac 3805elif test "$with_gnu_ld" = yes; then 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3807$as_echo_n "checking for GNU ld... " >&6; } 3808else 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3810$as_echo_n "checking for non-GNU ld... " >&6; } 3811fi 3812if ${lt_cv_path_LD+:} false; then : 3813 $as_echo_n "(cached) " >&6 3814else 3815 if test -z "$LD"; then 3816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3817 for ac_dir in $PATH; do 3818 IFS="$lt_save_ifs" 3819 test -z "$ac_dir" && ac_dir=. 3820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3821 lt_cv_path_LD="$ac_dir/$ac_prog" 3822 # Check to see if the program is GNU ld. I'd rather use --version, 3823 # but apparently some variants of GNU ld only accept -v. 3824 # Break only if it was the GNU/non-GNU ld that we prefer. 3825 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3826 *GNU* | *'with BFD'*) 3827 test "$with_gnu_ld" != no && break 3828 ;; 3829 *) 3830 test "$with_gnu_ld" != yes && break 3831 ;; 3832 esac 3833 fi 3834 done 3835 IFS="$lt_save_ifs" 3836else 3837 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3838fi 3839fi 3840 3841LD="$lt_cv_path_LD" 3842if test -n "$LD"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3844$as_echo "$LD" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3851$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3852if ${lt_cv_prog_gnu_ld+:} false; then : 3853 $as_echo_n "(cached) " >&6 3854else 3855 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3856case `$LD -v 2>&1 </dev/null` in 3857*GNU* | *'with BFD'*) 3858 lt_cv_prog_gnu_ld=yes 3859 ;; 3860*) 3861 lt_cv_prog_gnu_ld=no 3862 ;; 3863esac 3864fi 3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3866$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3867with_gnu_ld=$lt_cv_prog_gnu_ld 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3878$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3879if ${lt_cv_path_NM+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 if test -n "$NM"; then 3883 # Let the user override the test. 3884 lt_cv_path_NM="$NM" 3885else 3886 lt_nm_to_check="${ac_tool_prefix}nm" 3887 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3888 lt_nm_to_check="$lt_nm_to_check nm" 3889 fi 3890 for lt_tmp_nm in $lt_nm_to_check; do 3891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3892 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3893 IFS="$lt_save_ifs" 3894 test -z "$ac_dir" && ac_dir=. 3895 tmp_nm="$ac_dir/$lt_tmp_nm" 3896 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3897 # Check to see if the nm accepts a BSD-compat flag. 3898 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3899 # nm: unknown option "B" ignored 3900 # Tru64's nm complains that /dev/null is an invalid object file 3901 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3902 */dev/null* | *'Invalid file or object type'*) 3903 lt_cv_path_NM="$tmp_nm -B" 3904 break 3905 ;; 3906 *) 3907 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3908 */dev/null*) 3909 lt_cv_path_NM="$tmp_nm -p" 3910 break 3911 ;; 3912 *) 3913 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3914 continue # so that we can try to find one that supports BSD flags 3915 ;; 3916 esac 3917 ;; 3918 esac 3919 fi 3920 done 3921 IFS="$lt_save_ifs" 3922 done 3923 : ${lt_cv_path_NM=no} 3924fi 3925fi 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3927$as_echo "$lt_cv_path_NM" >&6; } 3928if test "$lt_cv_path_NM" != "no"; then 3929 NM="$lt_cv_path_NM" 3930else 3931 # Didn't find any BSD compatible name lister, look for dumpbin. 3932 if test -n "$ac_tool_prefix"; then 3933 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3934 do 3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3936set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3938$as_echo_n "checking for $ac_word... " >&6; } 3939if ${ac_cv_prog_DUMPBIN+:} false; then : 3940 $as_echo_n "(cached) " >&6 3941else 3942 if test -n "$DUMPBIN"; then 3943 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3944else 3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3946for as_dir in $PATH 3947do 3948 IFS=$as_save_IFS 3949 test -z "$as_dir" && as_dir=. 3950 for ac_exec_ext in '' $ac_executable_extensions; do 3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3952 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3954 break 2 3955 fi 3956done 3957 done 3958IFS=$as_save_IFS 3959 3960fi 3961fi 3962DUMPBIN=$ac_cv_prog_DUMPBIN 3963if test -n "$DUMPBIN"; then 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 3965$as_echo "$DUMPBIN" >&6; } 3966else 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3968$as_echo "no" >&6; } 3969fi 3970 3971 3972 test -n "$DUMPBIN" && break 3973 done 3974fi 3975if test -z "$DUMPBIN"; then 3976 ac_ct_DUMPBIN=$DUMPBIN 3977 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 3978do 3979 # Extract the first word of "$ac_prog", so it can be a program name with args. 3980set dummy $ac_prog; ac_word=$2 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3982$as_echo_n "checking for $ac_word... " >&6; } 3983if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 if test -n "$ac_ct_DUMPBIN"; then 3987 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 3988else 3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3990for as_dir in $PATH 3991do 3992 IFS=$as_save_IFS 3993 test -z "$as_dir" && as_dir=. 3994 for ac_exec_ext in '' $ac_executable_extensions; do 3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3996 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3998 break 2 3999 fi 4000done 4001 done 4002IFS=$as_save_IFS 4003 4004fi 4005fi 4006ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4007if test -n "$ac_ct_DUMPBIN"; then 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4009$as_echo "$ac_ct_DUMPBIN" >&6; } 4010else 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4012$as_echo "no" >&6; } 4013fi 4014 4015 4016 test -n "$ac_ct_DUMPBIN" && break 4017done 4018 4019 if test "x$ac_ct_DUMPBIN" = x; then 4020 DUMPBIN=":" 4021 else 4022 case $cross_compiling:$ac_tool_warned in 4023yes:) 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4026ac_tool_warned=yes ;; 4027esac 4028 DUMPBIN=$ac_ct_DUMPBIN 4029 fi 4030fi 4031 4032 4033 if test "$DUMPBIN" != ":"; then 4034 NM="$DUMPBIN" 4035 fi 4036fi 4037test -z "$NM" && NM=nm 4038 4039 4040 4041 4042 4043 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4045$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4046if ${lt_cv_nm_interface+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 lt_cv_nm_interface="BSD nm" 4050 echo "int some_variable = 0;" > conftest.$ac_ext 4051 (eval echo "\"\$as_me:4051: $ac_compile\"" >&5) 4052 (eval "$ac_compile" 2>conftest.err) 4053 cat conftest.err >&5 4054 (eval echo "\"\$as_me:4054: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4055 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4056 cat conftest.err >&5 4057 (eval echo "\"\$as_me:4057: output\"" >&5) 4058 cat conftest.out >&5 4059 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4060 lt_cv_nm_interface="MS dumpbin" 4061 fi 4062 rm -f conftest* 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4065$as_echo "$lt_cv_nm_interface" >&6; } 4066 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4068$as_echo_n "checking whether ln -s works... " >&6; } 4069LN_S=$as_ln_s 4070if test "$LN_S" = "ln -s"; then 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4072$as_echo "yes" >&6; } 4073else 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4075$as_echo "no, using $LN_S" >&6; } 4076fi 4077 4078# find the maximum length of command line arguments 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4080$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4081if ${lt_cv_sys_max_cmd_len+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 i=0 4085 teststring="ABCD" 4086 4087 case $build_os in 4088 msdosdjgpp*) 4089 # On DJGPP, this test can blow up pretty badly due to problems in libc 4090 # (any single argument exceeding 2000 bytes causes a buffer overrun 4091 # during glob expansion). Even if it were fixed, the result of this 4092 # check would be larger than it should be. 4093 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4094 ;; 4095 4096 gnu*) 4097 # Under GNU Hurd, this test is not required because there is 4098 # no limit to the length of command line arguments. 4099 # Libtool will interpret -1 as no limit whatsoever 4100 lt_cv_sys_max_cmd_len=-1; 4101 ;; 4102 4103 cygwin* | mingw* | cegcc*) 4104 # On Win9x/ME, this test blows up -- it succeeds, but takes 4105 # about 5 minutes as the teststring grows exponentially. 4106 # Worse, since 9x/ME are not pre-emptively multitasking, 4107 # you end up with a "frozen" computer, even though with patience 4108 # the test eventually succeeds (with a max line length of 256k). 4109 # Instead, let's just punt: use the minimum linelength reported by 4110 # all of the supported platforms: 8192 (on NT/2K/XP). 4111 lt_cv_sys_max_cmd_len=8192; 4112 ;; 4113 4114 beos*) 4115 # On BeOS, this test takes a really really long time. 4116 # So we just punt and use a minimum line length of 8192. 4117 lt_cv_sys_max_cmd_len=8192; 4118 ;; 4119 4120 amigaos*) 4121 # On AmigaOS with pdksh, this test takes hours, literally. 4122 # So we just punt and use a minimum line length of 8192. 4123 lt_cv_sys_max_cmd_len=8192; 4124 ;; 4125 4126 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4127 # This has been around since 386BSD, at least. Likely further. 4128 if test -x /sbin/sysctl; then 4129 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4130 elif test -x /usr/sbin/sysctl; then 4131 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4132 else 4133 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4134 fi 4135 # And add a safety zone 4136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4138 ;; 4139 4140 interix*) 4141 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4142 lt_cv_sys_max_cmd_len=196608 4143 ;; 4144 4145 osf*) 4146 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4147 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4148 # nice to cause kernel panics so lets avoid the loop below. 4149 # First set a reasonable default. 4150 lt_cv_sys_max_cmd_len=16384 4151 # 4152 if test -x /sbin/sysconfig; then 4153 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4154 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4155 esac 4156 fi 4157 ;; 4158 sco3.2v5*) 4159 lt_cv_sys_max_cmd_len=102400 4160 ;; 4161 sysv5* | sco5v6* | sysv4.2uw2*) 4162 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4163 if test -n "$kargmax"; then 4164 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4165 else 4166 lt_cv_sys_max_cmd_len=32768 4167 fi 4168 ;; 4169 *) 4170 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4171 if test -n "$lt_cv_sys_max_cmd_len"; then 4172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4174 else 4175 # Make teststring a little bigger before we do anything with it. 4176 # a 1K string should be a reasonable start. 4177 for i in 1 2 3 4 5 6 7 8 ; do 4178 teststring=$teststring$teststring 4179 done 4180 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4181 # If test is not a shell built-in, we'll probably end up computing a 4182 # maximum length that is only half of the actual maximum length, but 4183 # we can't tell. 4184 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4185 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4186 test $i != 17 # 1/2 MB should be enough 4187 do 4188 i=`expr $i + 1` 4189 teststring=$teststring$teststring 4190 done 4191 # Only check the string length outside the loop. 4192 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4193 teststring= 4194 # Add a significant safety factor because C++ compilers can tack on 4195 # massive amounts of additional arguments before passing them to the 4196 # linker. It appears as though 1/2 is a usable value. 4197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4198 fi 4199 ;; 4200 esac 4201 4202fi 4203 4204if test -n $lt_cv_sys_max_cmd_len ; then 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4206$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4207else 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4209$as_echo "none" >&6; } 4210fi 4211max_cmd_len=$lt_cv_sys_max_cmd_len 4212 4213 4214 4215 4216 4217 4218: ${CP="cp -f"} 4219: ${MV="mv -f"} 4220: ${RM="rm -f"} 4221 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4223$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4224# Try some XSI features 4225xsi_shell=no 4226( _lt_dummy="a/b/c" 4227 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4228 = c,a/b,, \ 4229 && eval 'test $(( 1 + 1 )) -eq 2 \ 4230 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4231 && xsi_shell=yes 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4233$as_echo "$xsi_shell" >&6; } 4234 4235 4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4237$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4238lt_shell_append=no 4239( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4240 >/dev/null 2>&1 \ 4241 && lt_shell_append=yes 4242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4243$as_echo "$lt_shell_append" >&6; } 4244 4245 4246if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4247 lt_unset=unset 4248else 4249 lt_unset=false 4250fi 4251 4252 4253 4254 4255 4256# test EBCDIC or ASCII 4257case `echo X|tr X '\101'` in 4258 A) # ASCII based system 4259 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4260 lt_SP2NL='tr \040 \012' 4261 lt_NL2SP='tr \015\012 \040\040' 4262 ;; 4263 *) # EBCDIC based system 4264 lt_SP2NL='tr \100 \n' 4265 lt_NL2SP='tr \r\n \100\100' 4266 ;; 4267esac 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4278$as_echo_n "checking for $LD option to reload object files... " >&6; } 4279if ${lt_cv_ld_reload_flag+:} false; then : 4280 $as_echo_n "(cached) " >&6 4281else 4282 lt_cv_ld_reload_flag='-r' 4283fi 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4285$as_echo "$lt_cv_ld_reload_flag" >&6; } 4286reload_flag=$lt_cv_ld_reload_flag 4287case $reload_flag in 4288"" | " "*) ;; 4289*) reload_flag=" $reload_flag" ;; 4290esac 4291reload_cmds='$LD$reload_flag -o $output$reload_objs' 4292case $host_os in 4293 darwin*) 4294 if test "$GCC" = yes; then 4295 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4296 else 4297 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4298 fi 4299 ;; 4300esac 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310if test -n "$ac_tool_prefix"; then 4311 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4312set dummy ${ac_tool_prefix}objdump; ac_word=$2 4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4314$as_echo_n "checking for $ac_word... " >&6; } 4315if ${ac_cv_prog_OBJDUMP+:} false; then : 4316 $as_echo_n "(cached) " >&6 4317else 4318 if test -n "$OBJDUMP"; then 4319 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4320else 4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4322for as_dir in $PATH 4323do 4324 IFS=$as_save_IFS 4325 test -z "$as_dir" && as_dir=. 4326 for ac_exec_ext in '' $ac_executable_extensions; do 4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4328 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4330 break 2 4331 fi 4332done 4333 done 4334IFS=$as_save_IFS 4335 4336fi 4337fi 4338OBJDUMP=$ac_cv_prog_OBJDUMP 4339if test -n "$OBJDUMP"; then 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4341$as_echo "$OBJDUMP" >&6; } 4342else 4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4344$as_echo "no" >&6; } 4345fi 4346 4347 4348fi 4349if test -z "$ac_cv_prog_OBJDUMP"; then 4350 ac_ct_OBJDUMP=$OBJDUMP 4351 # Extract the first word of "objdump", so it can be a program name with args. 4352set dummy objdump; ac_word=$2 4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4354$as_echo_n "checking for $ac_word... " >&6; } 4355if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357else 4358 if test -n "$ac_ct_OBJDUMP"; then 4359 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4360else 4361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362for as_dir in $PATH 4363do 4364 IFS=$as_save_IFS 4365 test -z "$as_dir" && as_dir=. 4366 for ac_exec_ext in '' $ac_executable_extensions; do 4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4368 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4370 break 2 4371 fi 4372done 4373 done 4374IFS=$as_save_IFS 4375 4376fi 4377fi 4378ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4379if test -n "$ac_ct_OBJDUMP"; then 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4381$as_echo "$ac_ct_OBJDUMP" >&6; } 4382else 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4384$as_echo "no" >&6; } 4385fi 4386 4387 if test "x$ac_ct_OBJDUMP" = x; then 4388 OBJDUMP="false" 4389 else 4390 case $cross_compiling:$ac_tool_warned in 4391yes:) 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4394ac_tool_warned=yes ;; 4395esac 4396 OBJDUMP=$ac_ct_OBJDUMP 4397 fi 4398else 4399 OBJDUMP="$ac_cv_prog_OBJDUMP" 4400fi 4401 4402test -z "$OBJDUMP" && OBJDUMP=objdump 4403 4404 4405 4406 4407 4408 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4410$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4411if ${lt_cv_deplibs_check_method+:} false; then : 4412 $as_echo_n "(cached) " >&6 4413else 4414 lt_cv_file_magic_cmd='$MAGIC_CMD' 4415lt_cv_file_magic_test_file= 4416lt_cv_deplibs_check_method='unknown' 4417# Need to set the preceding variable on all platforms that support 4418# interlibrary dependencies. 4419# 'none' -- dependencies not supported. 4420# `unknown' -- same as none, but documents that we really don't know. 4421# 'pass_all' -- all dependencies passed with no checks. 4422# 'test_compile' -- check by making test program. 4423# 'file_magic [[regex]]' -- check by looking for files in library path 4424# which responds to the $file_magic_cmd with a given extended regex. 4425# If you have `file' or equivalent on your system and you're not sure 4426# whether `pass_all' will *always* work, you probably want this one. 4427 4428case $host_os in 4429aix[4-9]*) 4430 lt_cv_deplibs_check_method=pass_all 4431 ;; 4432 4433beos*) 4434 lt_cv_deplibs_check_method=pass_all 4435 ;; 4436 4437bsdi[45]*) 4438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4439 lt_cv_file_magic_cmd='/usr/bin/file -L' 4440 lt_cv_file_magic_test_file=/shlib/libc.so 4441 ;; 4442 4443cygwin*) 4444 # func_win32_libid is a shell function defined in ltmain.sh 4445 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4446 lt_cv_deplibs_check_method=pass_all 4447 lt_cv_file_magic_cmd='func_win32_libid' 4448 ;; 4449 4450mingw* | pw32*) 4451 # Base MSYS/MinGW do not provide the 'file' command needed by 4452 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4453 # unless we find 'file', for example because we are cross-compiling. 4454 if ( file / ) >/dev/null 2>&1; then 4455 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4456 lt_cv_file_magic_cmd='func_win32_libid' 4457 else 4458 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4459 lt_cv_file_magic_cmd='$OBJDUMP -f' 4460 fi 4461 lt_cv_deplibs_check_method=pass_all 4462 ;; 4463 4464cegcc) 4465 # use the weaker test based on 'objdump'. See mingw*. 4466 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4467 lt_cv_file_magic_cmd='$OBJDUMP -f' 4468 ;; 4469 4470darwin* | rhapsody*) 4471 lt_cv_deplibs_check_method=pass_all 4472 ;; 4473 4474freebsd* | dragonfly*) 4475 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4476 case $host_cpu in 4477 i*86 ) 4478 # Not sure whether the presence of OpenBSD here was a mistake. 4479 # Let's accept both of them until this is cleared up. 4480 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4481 lt_cv_file_magic_cmd=/usr/bin/file 4482 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4483 ;; 4484 esac 4485 else 4486 lt_cv_deplibs_check_method=pass_all 4487 fi 4488 ;; 4489 4490gnu*) 4491 lt_cv_deplibs_check_method=pass_all 4492 ;; 4493 4494hpux10.20* | hpux11*) 4495 lt_cv_file_magic_cmd=/usr/bin/file 4496 case $host_cpu in 4497 ia64*) 4498 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4499 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4500 ;; 4501 hppa*64*) 4502 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]' 4503 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4504 ;; 4505 *) 4506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4507 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4508 ;; 4509 esac 4510 ;; 4511 4512interix[3-9]*) 4513 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4515 ;; 4516 4517irix5* | irix6* | nonstopux*) 4518 case $LD in 4519 *-32|*"-32 ") libmagic=32-bit;; 4520 *-n32|*"-n32 ") libmagic=N32;; 4521 *-64|*"-64 ") libmagic=64-bit;; 4522 *) libmagic=never-match;; 4523 esac 4524 lt_cv_deplibs_check_method=pass_all 4525 ;; 4526 4527# This must be Linux ELF. 4528linux* | k*bsd*-gnu) 4529 lt_cv_deplibs_check_method=pass_all 4530 ;; 4531 4532netbsd*) 4533 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4535 else 4536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4537 fi 4538 ;; 4539 4540newos6*) 4541 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4542 lt_cv_file_magic_cmd=/usr/bin/file 4543 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4544 ;; 4545 4546*nto* | *qnx*) 4547 lt_cv_deplibs_check_method=pass_all 4548 ;; 4549 4550openbsd*) 4551 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4553 else 4554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4555 fi 4556 ;; 4557 4558osf3* | osf4* | osf5*) 4559 lt_cv_deplibs_check_method=pass_all 4560 ;; 4561 4562rdos*) 4563 lt_cv_deplibs_check_method=pass_all 4564 ;; 4565 4566solaris*) 4567 lt_cv_deplibs_check_method=pass_all 4568 ;; 4569 4570sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4571 lt_cv_deplibs_check_method=pass_all 4572 ;; 4573 4574sysv4 | sysv4.3*) 4575 case $host_vendor in 4576 motorola) 4577 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]' 4578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4579 ;; 4580 ncr) 4581 lt_cv_deplibs_check_method=pass_all 4582 ;; 4583 sequent) 4584 lt_cv_file_magic_cmd='/bin/file' 4585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4586 ;; 4587 sni) 4588 lt_cv_file_magic_cmd='/bin/file' 4589 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4590 lt_cv_file_magic_test_file=/lib/libc.so 4591 ;; 4592 siemens) 4593 lt_cv_deplibs_check_method=pass_all 4594 ;; 4595 pc) 4596 lt_cv_deplibs_check_method=pass_all 4597 ;; 4598 esac 4599 ;; 4600 4601tpf*) 4602 lt_cv_deplibs_check_method=pass_all 4603 ;; 4604esac 4605 4606fi 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4608$as_echo "$lt_cv_deplibs_check_method" >&6; } 4609file_magic_cmd=$lt_cv_file_magic_cmd 4610deplibs_check_method=$lt_cv_deplibs_check_method 4611test -z "$deplibs_check_method" && deplibs_check_method=unknown 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624if test -n "$ac_tool_prefix"; then 4625 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4626set dummy ${ac_tool_prefix}ar; ac_word=$2 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4628$as_echo_n "checking for $ac_word... " >&6; } 4629if ${ac_cv_prog_AR+:} false; then : 4630 $as_echo_n "(cached) " >&6 4631else 4632 if test -n "$AR"; then 4633 ac_cv_prog_AR="$AR" # Let the user override the test. 4634else 4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636for as_dir in $PATH 4637do 4638 IFS=$as_save_IFS 4639 test -z "$as_dir" && as_dir=. 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4642 ac_cv_prog_AR="${ac_tool_prefix}ar" 4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4644 break 2 4645 fi 4646done 4647 done 4648IFS=$as_save_IFS 4649 4650fi 4651fi 4652AR=$ac_cv_prog_AR 4653if test -n "$AR"; then 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4655$as_echo "$AR" >&6; } 4656else 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4658$as_echo "no" >&6; } 4659fi 4660 4661 4662fi 4663if test -z "$ac_cv_prog_AR"; then 4664 ac_ct_AR=$AR 4665 # Extract the first word of "ar", so it can be a program name with args. 4666set dummy ar; ac_word=$2 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4668$as_echo_n "checking for $ac_word... " >&6; } 4669if ${ac_cv_prog_ac_ct_AR+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 if test -n "$ac_ct_AR"; then 4673 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4674else 4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4676for as_dir in $PATH 4677do 4678 IFS=$as_save_IFS 4679 test -z "$as_dir" && as_dir=. 4680 for ac_exec_ext in '' $ac_executable_extensions; do 4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4682 ac_cv_prog_ac_ct_AR="ar" 4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4684 break 2 4685 fi 4686done 4687 done 4688IFS=$as_save_IFS 4689 4690fi 4691fi 4692ac_ct_AR=$ac_cv_prog_ac_ct_AR 4693if test -n "$ac_ct_AR"; then 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4695$as_echo "$ac_ct_AR" >&6; } 4696else 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698$as_echo "no" >&6; } 4699fi 4700 4701 if test "x$ac_ct_AR" = x; then 4702 AR="false" 4703 else 4704 case $cross_compiling:$ac_tool_warned in 4705yes:) 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4708ac_tool_warned=yes ;; 4709esac 4710 AR=$ac_ct_AR 4711 fi 4712else 4713 AR="$ac_cv_prog_AR" 4714fi 4715 4716test -z "$AR" && AR=ar 4717test -z "$AR_FLAGS" && AR_FLAGS=cru 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729if test -n "$ac_tool_prefix"; then 4730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4731set dummy ${ac_tool_prefix}strip; ac_word=$2 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4733$as_echo_n "checking for $ac_word... " >&6; } 4734if ${ac_cv_prog_STRIP+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 if test -n "$STRIP"; then 4738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4739else 4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4741for as_dir in $PATH 4742do 4743 IFS=$as_save_IFS 4744 test -z "$as_dir" && as_dir=. 4745 for ac_exec_ext in '' $ac_executable_extensions; do 4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4747 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4749 break 2 4750 fi 4751done 4752 done 4753IFS=$as_save_IFS 4754 4755fi 4756fi 4757STRIP=$ac_cv_prog_STRIP 4758if test -n "$STRIP"; then 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4760$as_echo "$STRIP" >&6; } 4761else 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4763$as_echo "no" >&6; } 4764fi 4765 4766 4767fi 4768if test -z "$ac_cv_prog_STRIP"; then 4769 ac_ct_STRIP=$STRIP 4770 # Extract the first word of "strip", so it can be a program name with args. 4771set dummy strip; ac_word=$2 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4773$as_echo_n "checking for $ac_word... " >&6; } 4774if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 if test -n "$ac_ct_STRIP"; then 4778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4779else 4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4781for as_dir in $PATH 4782do 4783 IFS=$as_save_IFS 4784 test -z "$as_dir" && as_dir=. 4785 for ac_exec_ext in '' $ac_executable_extensions; do 4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4787 ac_cv_prog_ac_ct_STRIP="strip" 4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4789 break 2 4790 fi 4791done 4792 done 4793IFS=$as_save_IFS 4794 4795fi 4796fi 4797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4798if test -n "$ac_ct_STRIP"; then 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4800$as_echo "$ac_ct_STRIP" >&6; } 4801else 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4803$as_echo "no" >&6; } 4804fi 4805 4806 if test "x$ac_ct_STRIP" = x; then 4807 STRIP=":" 4808 else 4809 case $cross_compiling:$ac_tool_warned in 4810yes:) 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4813ac_tool_warned=yes ;; 4814esac 4815 STRIP=$ac_ct_STRIP 4816 fi 4817else 4818 STRIP="$ac_cv_prog_STRIP" 4819fi 4820 4821test -z "$STRIP" && STRIP=: 4822 4823 4824 4825 4826 4827 4828if test -n "$ac_tool_prefix"; then 4829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4830set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4832$as_echo_n "checking for $ac_word... " >&6; } 4833if ${ac_cv_prog_RANLIB+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 if test -n "$RANLIB"; then 4837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4838else 4839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4840for as_dir in $PATH 4841do 4842 IFS=$as_save_IFS 4843 test -z "$as_dir" && as_dir=. 4844 for ac_exec_ext in '' $ac_executable_extensions; do 4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4848 break 2 4849 fi 4850done 4851 done 4852IFS=$as_save_IFS 4853 4854fi 4855fi 4856RANLIB=$ac_cv_prog_RANLIB 4857if test -n "$RANLIB"; then 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4859$as_echo "$RANLIB" >&6; } 4860else 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4862$as_echo "no" >&6; } 4863fi 4864 4865 4866fi 4867if test -z "$ac_cv_prog_RANLIB"; then 4868 ac_ct_RANLIB=$RANLIB 4869 # Extract the first word of "ranlib", so it can be a program name with args. 4870set dummy ranlib; ac_word=$2 4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4872$as_echo_n "checking for $ac_word... " >&6; } 4873if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4874 $as_echo_n "(cached) " >&6 4875else 4876 if test -n "$ac_ct_RANLIB"; then 4877 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4878else 4879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4880for as_dir in $PATH 4881do 4882 IFS=$as_save_IFS 4883 test -z "$as_dir" && as_dir=. 4884 for ac_exec_ext in '' $ac_executable_extensions; do 4885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4886 ac_cv_prog_ac_ct_RANLIB="ranlib" 4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4888 break 2 4889 fi 4890done 4891 done 4892IFS=$as_save_IFS 4893 4894fi 4895fi 4896ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4897if test -n "$ac_ct_RANLIB"; then 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4899$as_echo "$ac_ct_RANLIB" >&6; } 4900else 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4902$as_echo "no" >&6; } 4903fi 4904 4905 if test "x$ac_ct_RANLIB" = x; then 4906 RANLIB=":" 4907 else 4908 case $cross_compiling:$ac_tool_warned in 4909yes:) 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4912ac_tool_warned=yes ;; 4913esac 4914 RANLIB=$ac_ct_RANLIB 4915 fi 4916else 4917 RANLIB="$ac_cv_prog_RANLIB" 4918fi 4919 4920test -z "$RANLIB" && RANLIB=: 4921 4922 4923 4924 4925 4926 4927# Determine commands to create old-style static archives. 4928old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 4929old_postinstall_cmds='chmod 644 $oldlib' 4930old_postuninstall_cmds= 4931 4932if test -n "$RANLIB"; then 4933 case $host_os in 4934 openbsd*) 4935 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4936 ;; 4937 *) 4938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4939 ;; 4940 esac 4941 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4942fi 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977# If no C compiler was specified, use CC. 4978LTCC=${LTCC-"$CC"} 4979 4980# If no C compiler flags were specified, use CFLAGS. 4981LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4982 4983# Allow CC to be a program name with arguments. 4984compiler=$CC 4985 4986 4987# Check for command to grab the raw symbol name followed by C symbol from nm. 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 4989$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 4990if ${lt_cv_sys_global_symbol_pipe+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 4994# These are sane defaults that work on at least a few old systems. 4995# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4996 4997# Character class describing NM global symbol codes. 4998symcode='[BCDEGRST]' 4999 5000# Regexp to match symbols that can be accessed directly from C. 5001sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5002 5003# Define system-specific variables. 5004case $host_os in 5005aix*) 5006 symcode='[BCDT]' 5007 ;; 5008cygwin* | mingw* | pw32* | cegcc*) 5009 symcode='[ABCDGISTW]' 5010 ;; 5011hpux*) 5012 if test "$host_cpu" = ia64; then 5013 symcode='[ABCDEGRST]' 5014 fi 5015 ;; 5016irix* | nonstopux*) 5017 symcode='[BCDEGRST]' 5018 ;; 5019osf*) 5020 symcode='[BCDEGQRST]' 5021 ;; 5022solaris*) 5023 symcode='[BDRT]' 5024 ;; 5025sco3.2v5*) 5026 symcode='[DT]' 5027 ;; 5028sysv4.2uw2*) 5029 symcode='[DT]' 5030 ;; 5031sysv5* | sco5v6* | unixware* | OpenUNIX*) 5032 symcode='[ABDT]' 5033 ;; 5034sysv4) 5035 symcode='[DFNSTU]' 5036 ;; 5037esac 5038 5039# If we're using GNU nm, then use its standard symbol codes. 5040case `$NM -V 2>&1` in 5041*GNU* | *'with BFD'*) 5042 symcode='[ABCDGIRSTW]' ;; 5043esac 5044 5045# Transform an extracted symbol line into a proper C declaration. 5046# Some systems (esp. on ia64) link data and code symbols differently, 5047# so use this general approach. 5048lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5049 5050# Transform an extracted symbol line into symbol name and symbol address 5051lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5052lt_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'" 5053 5054# Handle CRLF in mingw tool chain 5055opt_cr= 5056case $build_os in 5057mingw*) 5058 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5059 ;; 5060esac 5061 5062# Try without a prefix underscore, then with it. 5063for ac_symprfx in "" "_"; do 5064 5065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5066 symxfrm="\\1 $ac_symprfx\\2 \\2" 5067 5068 # Write the raw and C identifiers. 5069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5070 # Fake it for dumpbin and say T for any non-static function 5071 # and D for any global variable. 5072 # Also find C++ and __fastcall symbols from MSVC++, 5073 # which start with @ or ?. 5074 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5075" {last_section=section; section=\$ 3};"\ 5076" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5077" \$ 0!~/External *\|/{next};"\ 5078" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5079" {if(hide[section]) next};"\ 5080" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5081" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5082" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5083" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5084" ' prfx=^$ac_symprfx" 5085 else 5086 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5087 fi 5088 5089 # Check to see that the pipe works correctly. 5090 pipe_works=no 5091 5092 rm -f conftest* 5093 cat > conftest.$ac_ext <<_LT_EOF 5094#ifdef __cplusplus 5095extern "C" { 5096#endif 5097char nm_test_var; 5098void nm_test_func(void); 5099void nm_test_func(void){} 5100#ifdef __cplusplus 5101} 5102#endif 5103int main(){nm_test_var='a';nm_test_func();return(0);} 5104_LT_EOF 5105 5106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5107 (eval $ac_compile) 2>&5 5108 ac_status=$? 5109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5110 test $ac_status = 0; }; then 5111 # Now try to grab the symbols. 5112 nlist=conftest.nm 5113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5114 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5115 ac_status=$? 5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5117 test $ac_status = 0; } && test -s "$nlist"; then 5118 # Try sorting and uniquifying the output. 5119 if sort "$nlist" | uniq > "$nlist"T; then 5120 mv -f "$nlist"T "$nlist" 5121 else 5122 rm -f "$nlist"T 5123 fi 5124 5125 # Make sure that we snagged all the symbols we need. 5126 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5127 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5128 cat <<_LT_EOF > conftest.$ac_ext 5129#ifdef __cplusplus 5130extern "C" { 5131#endif 5132 5133_LT_EOF 5134 # Now generate the symbol file. 5135 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5136 5137 cat <<_LT_EOF >> conftest.$ac_ext 5138 5139/* The mapping between symbol names and symbols. */ 5140const struct { 5141 const char *name; 5142 void *address; 5143} 5144lt__PROGRAM__LTX_preloaded_symbols[] = 5145{ 5146 { "@PROGRAM@", (void *) 0 }, 5147_LT_EOF 5148 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5149 cat <<\_LT_EOF >> conftest.$ac_ext 5150 {0, (void *) 0} 5151}; 5152 5153/* This works around a problem in FreeBSD linker */ 5154#ifdef FREEBSD_WORKAROUND 5155static const void *lt_preloaded_setup() { 5156 return lt__PROGRAM__LTX_preloaded_symbols; 5157} 5158#endif 5159 5160#ifdef __cplusplus 5161} 5162#endif 5163_LT_EOF 5164 # Now try linking the two files. 5165 mv conftest.$ac_objext conftstm.$ac_objext 5166 lt_save_LIBS="$LIBS" 5167 lt_save_CFLAGS="$CFLAGS" 5168 LIBS="conftstm.$ac_objext" 5169 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5171 (eval $ac_link) 2>&5 5172 ac_status=$? 5173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5174 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5175 pipe_works=yes 5176 fi 5177 LIBS="$lt_save_LIBS" 5178 CFLAGS="$lt_save_CFLAGS" 5179 else 5180 echo "cannot find nm_test_func in $nlist" >&5 5181 fi 5182 else 5183 echo "cannot find nm_test_var in $nlist" >&5 5184 fi 5185 else 5186 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5187 fi 5188 else 5189 echo "$progname: failed program was:" >&5 5190 cat conftest.$ac_ext >&5 5191 fi 5192 rm -rf conftest* conftst* 5193 5194 # Do not use the global_symbol_pipe unless it works. 5195 if test "$pipe_works" = yes; then 5196 break 5197 else 5198 lt_cv_sys_global_symbol_pipe= 5199 fi 5200done 5201 5202fi 5203 5204if test -z "$lt_cv_sys_global_symbol_pipe"; then 5205 lt_cv_sys_global_symbol_to_cdecl= 5206fi 5207if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5209$as_echo "failed" >&6; } 5210else 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5212$as_echo "ok" >&6; } 5213fi 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237# Check whether --enable-libtool-lock was given. 5238if test "${enable_libtool_lock+set}" = set; then : 5239 enableval=$enable_libtool_lock; 5240fi 5241 5242test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5243 5244# Some flags need to be propagated to the compiler or linker for good 5245# libtool support. 5246case $host in 5247ia64-*-hpux*) 5248 # Find out which ABI we are using. 5249 echo 'int i;' > conftest.$ac_ext 5250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5251 (eval $ac_compile) 2>&5 5252 ac_status=$? 5253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5254 test $ac_status = 0; }; then 5255 case `/usr/bin/file conftest.$ac_objext` in 5256 *ELF-32*) 5257 HPUX_IA64_MODE="32" 5258 ;; 5259 *ELF-64*) 5260 HPUX_IA64_MODE="64" 5261 ;; 5262 esac 5263 fi 5264 rm -rf conftest* 5265 ;; 5266*-*-irix6*) 5267 # Find out which ABI we are using. 5268 echo '#line 5268 "configure"' > conftest.$ac_ext 5269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5270 (eval $ac_compile) 2>&5 5271 ac_status=$? 5272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5273 test $ac_status = 0; }; then 5274 if test "$lt_cv_prog_gnu_ld" = yes; then 5275 case `/usr/bin/file conftest.$ac_objext` in 5276 *32-bit*) 5277 LD="${LD-ld} -melf32bsmip" 5278 ;; 5279 *N32*) 5280 LD="${LD-ld} -melf32bmipn32" 5281 ;; 5282 *64-bit*) 5283 LD="${LD-ld} -melf64bmip" 5284 ;; 5285 esac 5286 else 5287 case `/usr/bin/file conftest.$ac_objext` in 5288 *32-bit*) 5289 LD="${LD-ld} -32" 5290 ;; 5291 *N32*) 5292 LD="${LD-ld} -n32" 5293 ;; 5294 *64-bit*) 5295 LD="${LD-ld} -64" 5296 ;; 5297 esac 5298 fi 5299 fi 5300 rm -rf conftest* 5301 ;; 5302 5303x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5304s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5305 # Find out which ABI we are using. 5306 echo 'int i;' > conftest.$ac_ext 5307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5308 (eval $ac_compile) 2>&5 5309 ac_status=$? 5310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5311 test $ac_status = 0; }; then 5312 case `/usr/bin/file conftest.o` in 5313 *32-bit*) 5314 case $host in 5315 x86_64-*kfreebsd*-gnu) 5316 LD="${LD-ld} -m elf_i386_fbsd" 5317 ;; 5318 x86_64-*linux*) 5319 LD="${LD-ld} -m elf_i386" 5320 ;; 5321 ppc64-*linux*|powerpc64-*linux*) 5322 LD="${LD-ld} -m elf32ppclinux" 5323 ;; 5324 s390x-*linux*) 5325 LD="${LD-ld} -m elf_s390" 5326 ;; 5327 sparc64-*linux*) 5328 LD="${LD-ld} -m elf32_sparc" 5329 ;; 5330 esac 5331 ;; 5332 *64-bit*) 5333 case $host in 5334 x86_64-*kfreebsd*-gnu) 5335 LD="${LD-ld} -m elf_x86_64_fbsd" 5336 ;; 5337 x86_64-*linux*) 5338 LD="${LD-ld} -m elf_x86_64" 5339 ;; 5340 powerpc64le-*linux*) 5341 LD="${LD-ld} -m elf64lppc" 5342 ;; 5343 powerpc64-*linux*) 5344 LD="${LD-ld} -m elf64ppc" 5345 ;; 5346 s390*-*linux*|s390*-*tpf*) 5347 LD="${LD-ld} -m elf64_s390" 5348 ;; 5349 sparc*-*linux*) 5350 LD="${LD-ld} -m elf64_sparc" 5351 ;; 5352 esac 5353 ;; 5354 esac 5355 fi 5356 rm -rf conftest* 5357 ;; 5358 5359*-*-sco3.2v5*) 5360 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5361 SAVE_CFLAGS="$CFLAGS" 5362 CFLAGS="$CFLAGS -belf" 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5364$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5365if ${lt_cv_cc_needs_belf+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 ac_ext=c 5369ac_cpp='$CPP $CPPFLAGS' 5370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5372ac_compiler_gnu=$ac_cv_c_compiler_gnu 5373 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376 5377int 5378main () 5379{ 5380 5381 ; 5382 return 0; 5383} 5384_ACEOF 5385if ac_fn_c_try_link "$LINENO"; then : 5386 lt_cv_cc_needs_belf=yes 5387else 5388 lt_cv_cc_needs_belf=no 5389fi 5390rm -f core conftest.err conftest.$ac_objext \ 5391 conftest$ac_exeext conftest.$ac_ext 5392 ac_ext=c 5393ac_cpp='$CPP $CPPFLAGS' 5394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5396ac_compiler_gnu=$ac_cv_c_compiler_gnu 5397 5398fi 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5400$as_echo "$lt_cv_cc_needs_belf" >&6; } 5401 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5402 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5403 CFLAGS="$SAVE_CFLAGS" 5404 fi 5405 ;; 5406sparc*-*solaris*) 5407 # Find out which ABI we are using. 5408 echo 'int i;' > conftest.$ac_ext 5409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5410 (eval $ac_compile) 2>&5 5411 ac_status=$? 5412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5413 test $ac_status = 0; }; then 5414 case `/usr/bin/file conftest.o` in 5415 *64-bit*) 5416 case $lt_cv_prog_gnu_ld in 5417 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5418 *) 5419 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5420 LD="${LD-ld} -64" 5421 fi 5422 ;; 5423 esac 5424 ;; 5425 esac 5426 fi 5427 rm -rf conftest* 5428 ;; 5429esac 5430 5431need_locks="$enable_libtool_lock" 5432 5433 5434 case $host_os in 5435 rhapsody* | darwin*) 5436 if test -n "$ac_tool_prefix"; then 5437 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5438set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5440$as_echo_n "checking for $ac_word... " >&6; } 5441if ${ac_cv_prog_DSYMUTIL+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 if test -n "$DSYMUTIL"; then 5445 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5446else 5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5448for as_dir in $PATH 5449do 5450 IFS=$as_save_IFS 5451 test -z "$as_dir" && as_dir=. 5452 for ac_exec_ext in '' $ac_executable_extensions; do 5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5454 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5456 break 2 5457 fi 5458done 5459 done 5460IFS=$as_save_IFS 5461 5462fi 5463fi 5464DSYMUTIL=$ac_cv_prog_DSYMUTIL 5465if test -n "$DSYMUTIL"; then 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 5467$as_echo "$DSYMUTIL" >&6; } 5468else 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5470$as_echo "no" >&6; } 5471fi 5472 5473 5474fi 5475if test -z "$ac_cv_prog_DSYMUTIL"; then 5476 ac_ct_DSYMUTIL=$DSYMUTIL 5477 # Extract the first word of "dsymutil", so it can be a program name with args. 5478set dummy dsymutil; ac_word=$2 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480$as_echo_n "checking for $ac_word... " >&6; } 5481if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 if test -n "$ac_ct_DSYMUTIL"; then 5485 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5486else 5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5488for as_dir in $PATH 5489do 5490 IFS=$as_save_IFS 5491 test -z "$as_dir" && as_dir=. 5492 for ac_exec_ext in '' $ac_executable_extensions; do 5493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5494 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5496 break 2 5497 fi 5498done 5499 done 5500IFS=$as_save_IFS 5501 5502fi 5503fi 5504ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5505if test -n "$ac_ct_DSYMUTIL"; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 5507$as_echo "$ac_ct_DSYMUTIL" >&6; } 5508else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510$as_echo "no" >&6; } 5511fi 5512 5513 if test "x$ac_ct_DSYMUTIL" = x; then 5514 DSYMUTIL=":" 5515 else 5516 case $cross_compiling:$ac_tool_warned in 5517yes:) 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5520ac_tool_warned=yes ;; 5521esac 5522 DSYMUTIL=$ac_ct_DSYMUTIL 5523 fi 5524else 5525 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5526fi 5527 5528 if test -n "$ac_tool_prefix"; then 5529 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5530set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5532$as_echo_n "checking for $ac_word... " >&6; } 5533if ${ac_cv_prog_NMEDIT+:} false; then : 5534 $as_echo_n "(cached) " >&6 5535else 5536 if test -n "$NMEDIT"; then 5537 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5538else 5539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5540for as_dir in $PATH 5541do 5542 IFS=$as_save_IFS 5543 test -z "$as_dir" && as_dir=. 5544 for ac_exec_ext in '' $ac_executable_extensions; do 5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5546 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5548 break 2 5549 fi 5550done 5551 done 5552IFS=$as_save_IFS 5553 5554fi 5555fi 5556NMEDIT=$ac_cv_prog_NMEDIT 5557if test -n "$NMEDIT"; then 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 5559$as_echo "$NMEDIT" >&6; } 5560else 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5562$as_echo "no" >&6; } 5563fi 5564 5565 5566fi 5567if test -z "$ac_cv_prog_NMEDIT"; then 5568 ac_ct_NMEDIT=$NMEDIT 5569 # Extract the first word of "nmedit", so it can be a program name with args. 5570set dummy nmedit; ac_word=$2 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5572$as_echo_n "checking for $ac_word... " >&6; } 5573if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 if test -n "$ac_ct_NMEDIT"; then 5577 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 5578else 5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5580for as_dir in $PATH 5581do 5582 IFS=$as_save_IFS 5583 test -z "$as_dir" && as_dir=. 5584 for ac_exec_ext in '' $ac_executable_extensions; do 5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5586 ac_cv_prog_ac_ct_NMEDIT="nmedit" 5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5588 break 2 5589 fi 5590done 5591 done 5592IFS=$as_save_IFS 5593 5594fi 5595fi 5596ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 5597if test -n "$ac_ct_NMEDIT"; then 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 5599$as_echo "$ac_ct_NMEDIT" >&6; } 5600else 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5602$as_echo "no" >&6; } 5603fi 5604 5605 if test "x$ac_ct_NMEDIT" = x; then 5606 NMEDIT=":" 5607 else 5608 case $cross_compiling:$ac_tool_warned in 5609yes:) 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5612ac_tool_warned=yes ;; 5613esac 5614 NMEDIT=$ac_ct_NMEDIT 5615 fi 5616else 5617 NMEDIT="$ac_cv_prog_NMEDIT" 5618fi 5619 5620 if test -n "$ac_tool_prefix"; then 5621 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 5622set dummy ${ac_tool_prefix}lipo; ac_word=$2 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5624$as_echo_n "checking for $ac_word... " >&6; } 5625if ${ac_cv_prog_LIPO+:} false; then : 5626 $as_echo_n "(cached) " >&6 5627else 5628 if test -n "$LIPO"; then 5629 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 5630else 5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5632for as_dir in $PATH 5633do 5634 IFS=$as_save_IFS 5635 test -z "$as_dir" && as_dir=. 5636 for ac_exec_ext in '' $ac_executable_extensions; do 5637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5638 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 5639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5640 break 2 5641 fi 5642done 5643 done 5644IFS=$as_save_IFS 5645 5646fi 5647fi 5648LIPO=$ac_cv_prog_LIPO 5649if test -n "$LIPO"; then 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 5651$as_echo "$LIPO" >&6; } 5652else 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5654$as_echo "no" >&6; } 5655fi 5656 5657 5658fi 5659if test -z "$ac_cv_prog_LIPO"; then 5660 ac_ct_LIPO=$LIPO 5661 # Extract the first word of "lipo", so it can be a program name with args. 5662set dummy lipo; ac_word=$2 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5664$as_echo_n "checking for $ac_word... " >&6; } 5665if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667else 5668 if test -n "$ac_ct_LIPO"; then 5669 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 5670else 5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_exec_ext in '' $ac_executable_extensions; do 5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5678 ac_cv_prog_ac_ct_LIPO="lipo" 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680 break 2 5681 fi 5682done 5683 done 5684IFS=$as_save_IFS 5685 5686fi 5687fi 5688ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 5689if test -n "$ac_ct_LIPO"; then 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 5691$as_echo "$ac_ct_LIPO" >&6; } 5692else 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5694$as_echo "no" >&6; } 5695fi 5696 5697 if test "x$ac_ct_LIPO" = x; then 5698 LIPO=":" 5699 else 5700 case $cross_compiling:$ac_tool_warned in 5701yes:) 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5704ac_tool_warned=yes ;; 5705esac 5706 LIPO=$ac_ct_LIPO 5707 fi 5708else 5709 LIPO="$ac_cv_prog_LIPO" 5710fi 5711 5712 if test -n "$ac_tool_prefix"; then 5713 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 5714set dummy ${ac_tool_prefix}otool; ac_word=$2 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5716$as_echo_n "checking for $ac_word... " >&6; } 5717if ${ac_cv_prog_OTOOL+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 if test -n "$OTOOL"; then 5721 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 5722else 5723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5724for as_dir in $PATH 5725do 5726 IFS=$as_save_IFS 5727 test -z "$as_dir" && as_dir=. 5728 for ac_exec_ext in '' $ac_executable_extensions; do 5729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5730 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5732 break 2 5733 fi 5734done 5735 done 5736IFS=$as_save_IFS 5737 5738fi 5739fi 5740OTOOL=$ac_cv_prog_OTOOL 5741if test -n "$OTOOL"; then 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 5743$as_echo "$OTOOL" >&6; } 5744else 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5746$as_echo "no" >&6; } 5747fi 5748 5749 5750fi 5751if test -z "$ac_cv_prog_OTOOL"; then 5752 ac_ct_OTOOL=$OTOOL 5753 # Extract the first word of "otool", so it can be a program name with args. 5754set dummy otool; ac_word=$2 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5756$as_echo_n "checking for $ac_word... " >&6; } 5757if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 if test -n "$ac_ct_OTOOL"; then 5761 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 5762else 5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5764for as_dir in $PATH 5765do 5766 IFS=$as_save_IFS 5767 test -z "$as_dir" && as_dir=. 5768 for ac_exec_ext in '' $ac_executable_extensions; do 5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5770 ac_cv_prog_ac_ct_OTOOL="otool" 5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5772 break 2 5773 fi 5774done 5775 done 5776IFS=$as_save_IFS 5777 5778fi 5779fi 5780ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 5781if test -n "$ac_ct_OTOOL"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 5783$as_echo "$ac_ct_OTOOL" >&6; } 5784else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5786$as_echo "no" >&6; } 5787fi 5788 5789 if test "x$ac_ct_OTOOL" = x; then 5790 OTOOL=":" 5791 else 5792 case $cross_compiling:$ac_tool_warned in 5793yes:) 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5796ac_tool_warned=yes ;; 5797esac 5798 OTOOL=$ac_ct_OTOOL 5799 fi 5800else 5801 OTOOL="$ac_cv_prog_OTOOL" 5802fi 5803 5804 if test -n "$ac_tool_prefix"; then 5805 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 5806set dummy ${ac_tool_prefix}otool64; ac_word=$2 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5808$as_echo_n "checking for $ac_word... " >&6; } 5809if ${ac_cv_prog_OTOOL64+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 if test -n "$OTOOL64"; then 5813 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 5814else 5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5816for as_dir in $PATH 5817do 5818 IFS=$as_save_IFS 5819 test -z "$as_dir" && as_dir=. 5820 for ac_exec_ext in '' $ac_executable_extensions; do 5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5822 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5824 break 2 5825 fi 5826done 5827 done 5828IFS=$as_save_IFS 5829 5830fi 5831fi 5832OTOOL64=$ac_cv_prog_OTOOL64 5833if test -n "$OTOOL64"; then 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 5835$as_echo "$OTOOL64" >&6; } 5836else 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5838$as_echo "no" >&6; } 5839fi 5840 5841 5842fi 5843if test -z "$ac_cv_prog_OTOOL64"; then 5844 ac_ct_OTOOL64=$OTOOL64 5845 # Extract the first word of "otool64", so it can be a program name with args. 5846set dummy otool64; ac_word=$2 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5848$as_echo_n "checking for $ac_word... " >&6; } 5849if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 if test -n "$ac_ct_OTOOL64"; then 5853 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 5854else 5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5856for as_dir in $PATH 5857do 5858 IFS=$as_save_IFS 5859 test -z "$as_dir" && as_dir=. 5860 for ac_exec_ext in '' $ac_executable_extensions; do 5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5862 ac_cv_prog_ac_ct_OTOOL64="otool64" 5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5864 break 2 5865 fi 5866done 5867 done 5868IFS=$as_save_IFS 5869 5870fi 5871fi 5872ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 5873if test -n "$ac_ct_OTOOL64"; then 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 5875$as_echo "$ac_ct_OTOOL64" >&6; } 5876else 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5878$as_echo "no" >&6; } 5879fi 5880 5881 if test "x$ac_ct_OTOOL64" = x; then 5882 OTOOL64=":" 5883 else 5884 case $cross_compiling:$ac_tool_warned in 5885yes:) 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5888ac_tool_warned=yes ;; 5889esac 5890 OTOOL64=$ac_ct_OTOOL64 5891 fi 5892else 5893 OTOOL64="$ac_cv_prog_OTOOL64" 5894fi 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 5923$as_echo_n "checking for -single_module linker flag... " >&6; } 5924if ${lt_cv_apple_cc_single_mod+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 lt_cv_apple_cc_single_mod=no 5928 if test -z "${LT_MULTI_MODULE}"; then 5929 # By default we will add the -single_module flag. You can override 5930 # by either setting the environment variable LT_MULTI_MODULE 5931 # non-empty at configure time, or by adding -multi_module to the 5932 # link flags. 5933 rm -rf libconftest.dylib* 5934 echo "int foo(void){return 1;}" > conftest.c 5935 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5936-dynamiclib -Wl,-single_module conftest.c" >&5 5937 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 5938 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 5939 _lt_result=$? 5940 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 5941 lt_cv_apple_cc_single_mod=yes 5942 else 5943 cat conftest.err >&5 5944 fi 5945 rm -rf libconftest.dylib* 5946 rm -f conftest.* 5947 fi 5948fi 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 5950$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 5952$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 5953if ${lt_cv_ld_exported_symbols_list+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 lt_cv_ld_exported_symbols_list=no 5957 save_LDFLAGS=$LDFLAGS 5958 echo "_main" > conftest.sym 5959 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961/* end confdefs.h. */ 5962 5963int 5964main () 5965{ 5966 5967 ; 5968 return 0; 5969} 5970_ACEOF 5971if ac_fn_c_try_link "$LINENO"; then : 5972 lt_cv_ld_exported_symbols_list=yes 5973else 5974 lt_cv_ld_exported_symbols_list=no 5975fi 5976rm -f core conftest.err conftest.$ac_objext \ 5977 conftest$ac_exeext conftest.$ac_ext 5978 LDFLAGS="$save_LDFLAGS" 5979 5980fi 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 5982$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 5983 case $host_os in 5984 rhapsody* | darwin1.[012]) 5985 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 5986 darwin1.*) 5987 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5988 darwin*) # darwin 5.x on 5989 # if running on 10.5 or later, the deployment target defaults 5990 # to the OS version, if on x86, and 10.4, the deployment 5991 # target defaults to 10.4. Don't you love it? 5992 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 5993 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 5994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5995 10.[012]*) 5996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 5997 10.*) 5998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 5999 esac 6000 ;; 6001 esac 6002 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6003 _lt_dar_single_mod='$single_module' 6004 fi 6005 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6006 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6007 else 6008 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6009 fi 6010 if test "$DSYMUTIL" != ":"; then 6011 _lt_dsymutil='~$DSYMUTIL $lib || :' 6012 else 6013 _lt_dsymutil= 6014 fi 6015 ;; 6016 esac 6017 6018ac_ext=c 6019ac_cpp='$CPP $CPPFLAGS' 6020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6022ac_compiler_gnu=$ac_cv_c_compiler_gnu 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6024$as_echo_n "checking how to run the C preprocessor... " >&6; } 6025# On Suns, sometimes $CPP names a directory. 6026if test -n "$CPP" && test -d "$CPP"; then 6027 CPP= 6028fi 6029if test -z "$CPP"; then 6030 if ${ac_cv_prog_CPP+:} false; then : 6031 $as_echo_n "(cached) " >&6 6032else 6033 # Double quotes because CPP needs to be expanded 6034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6035 do 6036 ac_preproc_ok=false 6037for ac_c_preproc_warn_flag in '' yes 6038do 6039 # Use a header file that comes with gcc, so configuring glibc 6040 # with a fresh cross-compiler works. 6041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6042 # <limits.h> exists even on freestanding compilers. 6043 # On the NeXT, cc -E runs the code through the compiler's parser, 6044 # not just through cpp. "Syntax error" is here to catch this case. 6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6046/* end confdefs.h. */ 6047#ifdef __STDC__ 6048# include <limits.h> 6049#else 6050# include <assert.h> 6051#endif 6052 Syntax error 6053_ACEOF 6054if ac_fn_c_try_cpp "$LINENO"; then : 6055 6056else 6057 # Broken: fails on valid input. 6058continue 6059fi 6060rm -f conftest.err conftest.i conftest.$ac_ext 6061 6062 # OK, works on sane cases. Now check whether nonexistent headers 6063 # can be detected and how. 6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065/* end confdefs.h. */ 6066#include <ac_nonexistent.h> 6067_ACEOF 6068if ac_fn_c_try_cpp "$LINENO"; then : 6069 # Broken: success on invalid input. 6070continue 6071else 6072 # Passes both tests. 6073ac_preproc_ok=: 6074break 6075fi 6076rm -f conftest.err conftest.i conftest.$ac_ext 6077 6078done 6079# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6080rm -f conftest.i conftest.err conftest.$ac_ext 6081if $ac_preproc_ok; then : 6082 break 6083fi 6084 6085 done 6086 ac_cv_prog_CPP=$CPP 6087 6088fi 6089 CPP=$ac_cv_prog_CPP 6090else 6091 ac_cv_prog_CPP=$CPP 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6094$as_echo "$CPP" >&6; } 6095ac_preproc_ok=false 6096for ac_c_preproc_warn_flag in '' yes 6097do 6098 # Use a header file that comes with gcc, so configuring glibc 6099 # with a fresh cross-compiler works. 6100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6101 # <limits.h> exists even on freestanding compilers. 6102 # On the NeXT, cc -E runs the code through the compiler's parser, 6103 # not just through cpp. "Syntax error" is here to catch this case. 6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6105/* end confdefs.h. */ 6106#ifdef __STDC__ 6107# include <limits.h> 6108#else 6109# include <assert.h> 6110#endif 6111 Syntax error 6112_ACEOF 6113if ac_fn_c_try_cpp "$LINENO"; then : 6114 6115else 6116 # Broken: fails on valid input. 6117continue 6118fi 6119rm -f conftest.err conftest.i conftest.$ac_ext 6120 6121 # OK, works on sane cases. Now check whether nonexistent headers 6122 # can be detected and how. 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6124/* end confdefs.h. */ 6125#include <ac_nonexistent.h> 6126_ACEOF 6127if ac_fn_c_try_cpp "$LINENO"; then : 6128 # Broken: success on invalid input. 6129continue 6130else 6131 # Passes both tests. 6132ac_preproc_ok=: 6133break 6134fi 6135rm -f conftest.err conftest.i conftest.$ac_ext 6136 6137done 6138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6139rm -f conftest.i conftest.err conftest.$ac_ext 6140if $ac_preproc_ok; then : 6141 6142else 6143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6145as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6146See \`config.log' for more details" "$LINENO" 5; } 6147fi 6148 6149ac_ext=c 6150ac_cpp='$CPP $CPPFLAGS' 6151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6153ac_compiler_gnu=$ac_cv_c_compiler_gnu 6154 6155 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6157$as_echo_n "checking for ANSI C header files... " >&6; } 6158if ${ac_cv_header_stdc+:} false; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162/* end confdefs.h. */ 6163#include <stdlib.h> 6164#include <stdarg.h> 6165#include <string.h> 6166#include <float.h> 6167 6168int 6169main () 6170{ 6171 6172 ; 6173 return 0; 6174} 6175_ACEOF 6176if ac_fn_c_try_compile "$LINENO"; then : 6177 ac_cv_header_stdc=yes 6178else 6179 ac_cv_header_stdc=no 6180fi 6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6182 6183if test $ac_cv_header_stdc = yes; then 6184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187#include <string.h> 6188 6189_ACEOF 6190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6191 $EGREP "memchr" >/dev/null 2>&1; then : 6192 6193else 6194 ac_cv_header_stdc=no 6195fi 6196rm -f conftest* 6197 6198fi 6199 6200if test $ac_cv_header_stdc = yes; then 6201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6203/* end confdefs.h. */ 6204#include <stdlib.h> 6205 6206_ACEOF 6207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6208 $EGREP "free" >/dev/null 2>&1; then : 6209 6210else 6211 ac_cv_header_stdc=no 6212fi 6213rm -f conftest* 6214 6215fi 6216 6217if test $ac_cv_header_stdc = yes; then 6218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6219 if test "$cross_compiling" = yes; then : 6220 : 6221else 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224#include <ctype.h> 6225#include <stdlib.h> 6226#if ((' ' & 0x0FF) == 0x020) 6227# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6228# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6229#else 6230# define ISLOWER(c) \ 6231 (('a' <= (c) && (c) <= 'i') \ 6232 || ('j' <= (c) && (c) <= 'r') \ 6233 || ('s' <= (c) && (c) <= 'z')) 6234# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6235#endif 6236 6237#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6238int 6239main () 6240{ 6241 int i; 6242 for (i = 0; i < 256; i++) 6243 if (XOR (islower (i), ISLOWER (i)) 6244 || toupper (i) != TOUPPER (i)) 6245 return 2; 6246 return 0; 6247} 6248_ACEOF 6249if ac_fn_c_try_run "$LINENO"; then : 6250 6251else 6252 ac_cv_header_stdc=no 6253fi 6254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6255 conftest.$ac_objext conftest.beam conftest.$ac_ext 6256fi 6257 6258fi 6259fi 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6261$as_echo "$ac_cv_header_stdc" >&6; } 6262if test $ac_cv_header_stdc = yes; then 6263 6264$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6265 6266fi 6267 6268# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6269for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6270 inttypes.h stdint.h unistd.h 6271do : 6272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6273ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6274" 6275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6276 cat >>confdefs.h <<_ACEOF 6277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6278_ACEOF 6279 6280fi 6281 6282done 6283 6284 6285for ac_header in dlfcn.h 6286do : 6287 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6288" 6289if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6290 cat >>confdefs.h <<_ACEOF 6291#define HAVE_DLFCN_H 1 6292_ACEOF 6293 6294fi 6295 6296done 6297 6298 6299 6300# Set options 6301enable_win32_dll=yes 6302 6303case $host in 6304*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 6305 if test -n "$ac_tool_prefix"; then 6306 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6307set dummy ${ac_tool_prefix}as; ac_word=$2 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6309$as_echo_n "checking for $ac_word... " >&6; } 6310if ${ac_cv_prog_AS+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 if test -n "$AS"; then 6314 ac_cv_prog_AS="$AS" # Let the user override the test. 6315else 6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6317for as_dir in $PATH 6318do 6319 IFS=$as_save_IFS 6320 test -z "$as_dir" && as_dir=. 6321 for ac_exec_ext in '' $ac_executable_extensions; do 6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6323 ac_cv_prog_AS="${ac_tool_prefix}as" 6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6325 break 2 6326 fi 6327done 6328 done 6329IFS=$as_save_IFS 6330 6331fi 6332fi 6333AS=$ac_cv_prog_AS 6334if test -n "$AS"; then 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6336$as_echo "$AS" >&6; } 6337else 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6339$as_echo "no" >&6; } 6340fi 6341 6342 6343fi 6344if test -z "$ac_cv_prog_AS"; then 6345 ac_ct_AS=$AS 6346 # Extract the first word of "as", so it can be a program name with args. 6347set dummy as; ac_word=$2 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6349$as_echo_n "checking for $ac_word... " >&6; } 6350if ${ac_cv_prog_ac_ct_AS+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 if test -n "$ac_ct_AS"; then 6354 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6355else 6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6357for as_dir in $PATH 6358do 6359 IFS=$as_save_IFS 6360 test -z "$as_dir" && as_dir=. 6361 for ac_exec_ext in '' $ac_executable_extensions; do 6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6363 ac_cv_prog_ac_ct_AS="as" 6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6365 break 2 6366 fi 6367done 6368 done 6369IFS=$as_save_IFS 6370 6371fi 6372fi 6373ac_ct_AS=$ac_cv_prog_ac_ct_AS 6374if test -n "$ac_ct_AS"; then 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6376$as_echo "$ac_ct_AS" >&6; } 6377else 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6379$as_echo "no" >&6; } 6380fi 6381 6382 if test "x$ac_ct_AS" = x; then 6383 AS="false" 6384 else 6385 case $cross_compiling:$ac_tool_warned in 6386yes:) 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6389ac_tool_warned=yes ;; 6390esac 6391 AS=$ac_ct_AS 6392 fi 6393else 6394 AS="$ac_cv_prog_AS" 6395fi 6396 6397 if test -n "$ac_tool_prefix"; then 6398 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6399set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6401$as_echo_n "checking for $ac_word... " >&6; } 6402if ${ac_cv_prog_DLLTOOL+:} false; then : 6403 $as_echo_n "(cached) " >&6 6404else 6405 if test -n "$DLLTOOL"; then 6406 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6407else 6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6409for as_dir in $PATH 6410do 6411 IFS=$as_save_IFS 6412 test -z "$as_dir" && as_dir=. 6413 for ac_exec_ext in '' $ac_executable_extensions; do 6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6415 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6417 break 2 6418 fi 6419done 6420 done 6421IFS=$as_save_IFS 6422 6423fi 6424fi 6425DLLTOOL=$ac_cv_prog_DLLTOOL 6426if test -n "$DLLTOOL"; then 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6428$as_echo "$DLLTOOL" >&6; } 6429else 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6431$as_echo "no" >&6; } 6432fi 6433 6434 6435fi 6436if test -z "$ac_cv_prog_DLLTOOL"; then 6437 ac_ct_DLLTOOL=$DLLTOOL 6438 # Extract the first word of "dlltool", so it can be a program name with args. 6439set dummy dlltool; ac_word=$2 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6441$as_echo_n "checking for $ac_word... " >&6; } 6442if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 if test -n "$ac_ct_DLLTOOL"; then 6446 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6447else 6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6449for as_dir in $PATH 6450do 6451 IFS=$as_save_IFS 6452 test -z "$as_dir" && as_dir=. 6453 for ac_exec_ext in '' $ac_executable_extensions; do 6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6455 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6457 break 2 6458 fi 6459done 6460 done 6461IFS=$as_save_IFS 6462 6463fi 6464fi 6465ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6466if test -n "$ac_ct_DLLTOOL"; then 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6468$as_echo "$ac_ct_DLLTOOL" >&6; } 6469else 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471$as_echo "no" >&6; } 6472fi 6473 6474 if test "x$ac_ct_DLLTOOL" = x; then 6475 DLLTOOL="false" 6476 else 6477 case $cross_compiling:$ac_tool_warned in 6478yes:) 6479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6481ac_tool_warned=yes ;; 6482esac 6483 DLLTOOL=$ac_ct_DLLTOOL 6484 fi 6485else 6486 DLLTOOL="$ac_cv_prog_DLLTOOL" 6487fi 6488 6489 if test -n "$ac_tool_prefix"; then 6490 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6491set dummy ${ac_tool_prefix}objdump; ac_word=$2 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6493$as_echo_n "checking for $ac_word... " >&6; } 6494if ${ac_cv_prog_OBJDUMP+:} false; then : 6495 $as_echo_n "(cached) " >&6 6496else 6497 if test -n "$OBJDUMP"; then 6498 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6499else 6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6501for as_dir in $PATH 6502do 6503 IFS=$as_save_IFS 6504 test -z "$as_dir" && as_dir=. 6505 for ac_exec_ext in '' $ac_executable_extensions; do 6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6507 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6509 break 2 6510 fi 6511done 6512 done 6513IFS=$as_save_IFS 6514 6515fi 6516fi 6517OBJDUMP=$ac_cv_prog_OBJDUMP 6518if test -n "$OBJDUMP"; then 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6520$as_echo "$OBJDUMP" >&6; } 6521else 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6523$as_echo "no" >&6; } 6524fi 6525 6526 6527fi 6528if test -z "$ac_cv_prog_OBJDUMP"; then 6529 ac_ct_OBJDUMP=$OBJDUMP 6530 # Extract the first word of "objdump", so it can be a program name with args. 6531set dummy objdump; ac_word=$2 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6533$as_echo_n "checking for $ac_word... " >&6; } 6534if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6535 $as_echo_n "(cached) " >&6 6536else 6537 if test -n "$ac_ct_OBJDUMP"; then 6538 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6539else 6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6541for as_dir in $PATH 6542do 6543 IFS=$as_save_IFS 6544 test -z "$as_dir" && as_dir=. 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6547 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551done 6552 done 6553IFS=$as_save_IFS 6554 6555fi 6556fi 6557ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6558if test -n "$ac_ct_OBJDUMP"; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6560$as_echo "$ac_ct_OBJDUMP" >&6; } 6561else 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563$as_echo "no" >&6; } 6564fi 6565 6566 if test "x$ac_ct_OBJDUMP" = x; then 6567 OBJDUMP="false" 6568 else 6569 case $cross_compiling:$ac_tool_warned in 6570yes:) 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6573ac_tool_warned=yes ;; 6574esac 6575 OBJDUMP=$ac_ct_OBJDUMP 6576 fi 6577else 6578 OBJDUMP="$ac_cv_prog_OBJDUMP" 6579fi 6580 6581 ;; 6582esac 6583 6584test -z "$AS" && AS=as 6585 6586 6587 6588 6589 6590test -z "$DLLTOOL" && DLLTOOL=dlltool 6591 6592 6593 6594 6595 6596test -z "$OBJDUMP" && OBJDUMP=objdump 6597 6598 6599 6600 6601 6602 6603 6604 enable_dlopen=no 6605 6606 6607 6608 # Check whether --enable-shared was given. 6609if test "${enable_shared+set}" = set; then : 6610 enableval=$enable_shared; p=${PACKAGE-default} 6611 case $enableval in 6612 yes) enable_shared=yes ;; 6613 no) enable_shared=no ;; 6614 *) 6615 enable_shared=no 6616 # Look at the argument we got. We use all the common list separators. 6617 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6618 for pkg in $enableval; do 6619 IFS="$lt_save_ifs" 6620 if test "X$pkg" = "X$p"; then 6621 enable_shared=yes 6622 fi 6623 done 6624 IFS="$lt_save_ifs" 6625 ;; 6626 esac 6627else 6628 enable_shared=yes 6629fi 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 # Check whether --enable-static was given. 6640if test "${enable_static+set}" = set; then : 6641 enableval=$enable_static; p=${PACKAGE-default} 6642 case $enableval in 6643 yes) enable_static=yes ;; 6644 no) enable_static=no ;; 6645 *) 6646 enable_static=no 6647 # Look at the argument we got. We use all the common list separators. 6648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6649 for pkg in $enableval; do 6650 IFS="$lt_save_ifs" 6651 if test "X$pkg" = "X$p"; then 6652 enable_static=yes 6653 fi 6654 done 6655 IFS="$lt_save_ifs" 6656 ;; 6657 esac 6658else 6659 enable_static=yes 6660fi 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671# Check whether --with-pic was given. 6672if test "${with_pic+set}" = set; then : 6673 withval=$with_pic; pic_mode="$withval" 6674else 6675 pic_mode=default 6676fi 6677 6678 6679test -z "$pic_mode" && pic_mode=default 6680 6681 6682 6683 6684 6685 6686 6687 # Check whether --enable-fast-install was given. 6688if test "${enable_fast_install+set}" = set; then : 6689 enableval=$enable_fast_install; p=${PACKAGE-default} 6690 case $enableval in 6691 yes) enable_fast_install=yes ;; 6692 no) enable_fast_install=no ;; 6693 *) 6694 enable_fast_install=no 6695 # Look at the argument we got. We use all the common list separators. 6696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6697 for pkg in $enableval; do 6698 IFS="$lt_save_ifs" 6699 if test "X$pkg" = "X$p"; then 6700 enable_fast_install=yes 6701 fi 6702 done 6703 IFS="$lt_save_ifs" 6704 ;; 6705 esac 6706else 6707 enable_fast_install=yes 6708fi 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720# This can be used to rebuild libtool when needed 6721LIBTOOL_DEPS="$ltmain" 6722 6723# Always use our own libtool. 6724LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750test -z "$LN_S" && LN_S="ln -s" 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765if test -n "${ZSH_VERSION+set}" ; then 6766 setopt NO_GLOB_SUBST 6767fi 6768 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6770$as_echo_n "checking for objdir... " >&6; } 6771if ${lt_cv_objdir+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 rm -f .libs 2>/dev/null 6775mkdir .libs 2>/dev/null 6776if test -d .libs; then 6777 lt_cv_objdir=.libs 6778else 6779 # MS-DOS does not allow filenames that begin with a dot. 6780 lt_cv_objdir=_libs 6781fi 6782rmdir .libs 2>/dev/null 6783fi 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6785$as_echo "$lt_cv_objdir" >&6; } 6786objdir=$lt_cv_objdir 6787 6788 6789 6790 6791 6792cat >>confdefs.h <<_ACEOF 6793#define LT_OBJDIR "$lt_cv_objdir/" 6794_ACEOF 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812case $host_os in 6813aix3*) 6814 # AIX sometimes has problems with the GCC collect2 program. For some 6815 # reason, if we set the COLLECT_NAMES environment variable, the problems 6816 # vanish in a puff of smoke. 6817 if test "X${COLLECT_NAMES+set}" != Xset; then 6818 COLLECT_NAMES= 6819 export COLLECT_NAMES 6820 fi 6821 ;; 6822esac 6823 6824# Sed substitution that helps us do robust quoting. It backslashifies 6825# metacharacters that are still active within double-quoted strings. 6826sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6827 6828# Same as above, but do not quote variable references. 6829double_quote_subst='s/\(["`\\]\)/\\\1/g' 6830 6831# Sed substitution to delay expansion of an escaped shell variable in a 6832# double_quote_subst'ed string. 6833delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6834 6835# Sed substitution to delay expansion of an escaped single quote. 6836delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6837 6838# Sed substitution to avoid accidental globbing in evaled expressions 6839no_glob_subst='s/\*/\\\*/g' 6840 6841# Global variables: 6842ofile=libtool 6843can_build_shared=yes 6844 6845# All known linkers require a `.a' archive for static linking (except MSVC, 6846# which needs '.lib'). 6847libext=a 6848 6849with_gnu_ld="$lt_cv_prog_gnu_ld" 6850 6851old_CC="$CC" 6852old_CFLAGS="$CFLAGS" 6853 6854# Set sane defaults for various variables 6855test -z "$CC" && CC=cc 6856test -z "$LTCC" && LTCC=$CC 6857test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6858test -z "$LD" && LD=ld 6859test -z "$ac_objext" && ac_objext=o 6860 6861for cc_temp in $compiler""; do 6862 case $cc_temp in 6863 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6864 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6865 \-*) ;; 6866 *) break;; 6867 esac 6868done 6869cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6870 6871 6872# Only perform the check for file, if the check method requires it 6873test -z "$MAGIC_CMD" && MAGIC_CMD=file 6874case $deplibs_check_method in 6875file_magic*) 6876 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 6878$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6879if ${lt_cv_path_MAGIC_CMD+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 case $MAGIC_CMD in 6883[\\/*] | ?:[\\/]*) 6884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6885 ;; 6886*) 6887 lt_save_MAGIC_CMD="$MAGIC_CMD" 6888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6890 for ac_dir in $ac_dummy; do 6891 IFS="$lt_save_ifs" 6892 test -z "$ac_dir" && ac_dir=. 6893 if test -f $ac_dir/${ac_tool_prefix}file; then 6894 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6895 if test -n "$file_magic_test_file"; then 6896 case $deplibs_check_method in 6897 "file_magic "*) 6898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6901 $EGREP "$file_magic_regex" > /dev/null; then 6902 : 6903 else 6904 cat <<_LT_EOF 1>&2 6905 6906*** Warning: the command libtool uses to detect shared libraries, 6907*** $file_magic_cmd, produces output that libtool cannot recognize. 6908*** The result is that libtool may fail to recognize shared libraries 6909*** as such. This will affect the creation of libtool libraries that 6910*** depend on shared libraries, but programs linked with such libtool 6911*** libraries will work regardless of this problem. Nevertheless, you 6912*** may want to report the problem to your system manager and/or to 6913*** bug-libtool@gnu.org 6914 6915_LT_EOF 6916 fi ;; 6917 esac 6918 fi 6919 break 6920 fi 6921 done 6922 IFS="$lt_save_ifs" 6923 MAGIC_CMD="$lt_save_MAGIC_CMD" 6924 ;; 6925esac 6926fi 6927 6928MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6929if test -n "$MAGIC_CMD"; then 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6931$as_echo "$MAGIC_CMD" >&6; } 6932else 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6934$as_echo "no" >&6; } 6935fi 6936 6937 6938 6939 6940 6941if test -z "$lt_cv_path_MAGIC_CMD"; then 6942 if test -n "$ac_tool_prefix"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 6944$as_echo_n "checking for file... " >&6; } 6945if ${lt_cv_path_MAGIC_CMD+:} false; then : 6946 $as_echo_n "(cached) " >&6 6947else 6948 case $MAGIC_CMD in 6949[\\/*] | ?:[\\/]*) 6950 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6951 ;; 6952*) 6953 lt_save_MAGIC_CMD="$MAGIC_CMD" 6954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6955 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6956 for ac_dir in $ac_dummy; do 6957 IFS="$lt_save_ifs" 6958 test -z "$ac_dir" && ac_dir=. 6959 if test -f $ac_dir/file; then 6960 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6961 if test -n "$file_magic_test_file"; then 6962 case $deplibs_check_method in 6963 "file_magic "*) 6964 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6965 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6966 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6967 $EGREP "$file_magic_regex" > /dev/null; then 6968 : 6969 else 6970 cat <<_LT_EOF 1>&2 6971 6972*** Warning: the command libtool uses to detect shared libraries, 6973*** $file_magic_cmd, produces output that libtool cannot recognize. 6974*** The result is that libtool may fail to recognize shared libraries 6975*** as such. This will affect the creation of libtool libraries that 6976*** depend on shared libraries, but programs linked with such libtool 6977*** libraries will work regardless of this problem. Nevertheless, you 6978*** may want to report the problem to your system manager and/or to 6979*** bug-libtool@gnu.org 6980 6981_LT_EOF 6982 fi ;; 6983 esac 6984 fi 6985 break 6986 fi 6987 done 6988 IFS="$lt_save_ifs" 6989 MAGIC_CMD="$lt_save_MAGIC_CMD" 6990 ;; 6991esac 6992fi 6993 6994MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6995if test -n "$MAGIC_CMD"; then 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6997$as_echo "$MAGIC_CMD" >&6; } 6998else 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7000$as_echo "no" >&6; } 7001fi 7002 7003 7004 else 7005 MAGIC_CMD=: 7006 fi 7007fi 7008 7009 fi 7010 ;; 7011esac 7012 7013# Use C for the default configuration in the libtool script 7014 7015lt_save_CC="$CC" 7016ac_ext=c 7017ac_cpp='$CPP $CPPFLAGS' 7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7020ac_compiler_gnu=$ac_cv_c_compiler_gnu 7021 7022 7023# Source file extension for C test sources. 7024ac_ext=c 7025 7026# Object file extension for compiled C test sources. 7027objext=o 7028objext=$objext 7029 7030# Code to be used in simple compile tests 7031lt_simple_compile_test_code="int some_variable = 0;" 7032 7033# Code to be used in simple link tests 7034lt_simple_link_test_code='int main(){return(0);}' 7035 7036 7037 7038 7039 7040 7041 7042# If no C compiler was specified, use CC. 7043LTCC=${LTCC-"$CC"} 7044 7045# If no C compiler flags were specified, use CFLAGS. 7046LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7047 7048# Allow CC to be a program name with arguments. 7049compiler=$CC 7050 7051# Save the default compiler, since it gets overwritten when the other 7052# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7053compiler_DEFAULT=$CC 7054 7055# save warnings/boilerplate of simple test code 7056ac_outfile=conftest.$ac_objext 7057echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7058eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7059_lt_compiler_boilerplate=`cat conftest.err` 7060$RM conftest* 7061 7062ac_outfile=conftest.$ac_objext 7063echo "$lt_simple_link_test_code" >conftest.$ac_ext 7064eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7065_lt_linker_boilerplate=`cat conftest.err` 7066$RM -r conftest* 7067 7068 7069## CAVEAT EMPTOR: 7070## There is no encapsulation within the following macros, do not change 7071## the running order or otherwise move them around unless you know exactly 7072## what you are doing... 7073if test -n "$compiler"; then 7074 7075lt_prog_compiler_no_builtin_flag= 7076 7077if test "$GCC" = yes; then 7078 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7079 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7081$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7082if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 lt_cv_prog_compiler_rtti_exceptions=no 7086 ac_outfile=conftest.$ac_objext 7087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7088 lt_compiler_flag="-fno-rtti -fno-exceptions" 7089 # Insert the option either (1) after the last *FLAGS variable, or 7090 # (2) before a word containing "conftest.", or (3) at the end. 7091 # Note that $ac_compile itself does not contain backslashes and begins 7092 # with a dollar sign (not a hyphen), so the echo should work correctly. 7093 # The option is referenced via a variable to avoid confusing sed. 7094 lt_compile=`echo "$ac_compile" | $SED \ 7095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7097 -e 's:$: $lt_compiler_flag:'` 7098 (eval echo "\"\$as_me:7098: $lt_compile\"" >&5) 7099 (eval "$lt_compile" 2>conftest.err) 7100 ac_status=$? 7101 cat conftest.err >&5 7102 echo "$as_me:7102: \$? = $ac_status" >&5 7103 if (exit $ac_status) && test -s "$ac_outfile"; then 7104 # The compiler can only warn and ignore the option if not recognized 7105 # So say no if there are warnings other than the usual output. 7106 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7109 lt_cv_prog_compiler_rtti_exceptions=yes 7110 fi 7111 fi 7112 $RM conftest* 7113 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7116$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7117 7118if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7119 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7120else 7121 : 7122fi 7123 7124fi 7125 7126 7127 7128 7129 7130 7131 lt_prog_compiler_wl= 7132lt_prog_compiler_pic= 7133lt_prog_compiler_static= 7134 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7136$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7137 7138 if test "$GCC" = yes; then 7139 lt_prog_compiler_wl='-Wl,' 7140 lt_prog_compiler_static='-static' 7141 7142 case $host_os in 7143 aix*) 7144 # All AIX code is PIC. 7145 if test "$host_cpu" = ia64; then 7146 # AIX 5 now supports IA64 processor 7147 lt_prog_compiler_static='-Bstatic' 7148 fi 7149 ;; 7150 7151 amigaos*) 7152 case $host_cpu in 7153 powerpc) 7154 # see comment about AmigaOS4 .so support 7155 lt_prog_compiler_pic='-fPIC' 7156 ;; 7157 m68k) 7158 # FIXME: we need at least 68020 code to build shared libraries, but 7159 # adding the `-m68020' flag to GCC prevents building anything better, 7160 # like `-m68040'. 7161 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7162 ;; 7163 esac 7164 ;; 7165 7166 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7167 # PIC is the default for these OSes. 7168 ;; 7169 7170 mingw* | cygwin* | pw32* | os2* | cegcc*) 7171 # This hack is so that the source file can tell whether it is being 7172 # built for inclusion in a dll (and should export symbols for example). 7173 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7174 # (--disable-auto-import) libraries 7175 lt_prog_compiler_pic='-DDLL_EXPORT' 7176 ;; 7177 7178 darwin* | rhapsody*) 7179 # PIC is the default on this platform 7180 # Common symbols not allowed in MH_DYLIB files 7181 lt_prog_compiler_pic='-fno-common' 7182 ;; 7183 7184 hpux*) 7185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7187 # sets the default TLS model and affects inlining. 7188 case $host_cpu in 7189 hppa*64*) 7190 # +Z the default 7191 ;; 7192 *) 7193 lt_prog_compiler_pic='-fPIC' 7194 ;; 7195 esac 7196 ;; 7197 7198 interix[3-9]*) 7199 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7200 # Instead, we relocate shared libraries at runtime. 7201 ;; 7202 7203 msdosdjgpp*) 7204 # Just because we use GCC doesn't mean we suddenly get shared libraries 7205 # on systems that don't support them. 7206 lt_prog_compiler_can_build_shared=no 7207 enable_shared=no 7208 ;; 7209 7210 *nto* | *qnx*) 7211 # QNX uses GNU C++, but need to define -shared option too, otherwise 7212 # it will coredump. 7213 lt_prog_compiler_pic='-fPIC -shared' 7214 ;; 7215 7216 sysv4*MP*) 7217 if test -d /usr/nec; then 7218 lt_prog_compiler_pic=-Kconform_pic 7219 fi 7220 ;; 7221 7222 *) 7223 lt_prog_compiler_pic='-fPIC' 7224 ;; 7225 esac 7226 else 7227 # PORTME Check for flag to pass linker flags through the system compiler. 7228 case $host_os in 7229 aix*) 7230 lt_prog_compiler_wl='-Wl,' 7231 if test "$host_cpu" = ia64; then 7232 # AIX 5 now supports IA64 processor 7233 lt_prog_compiler_static='-Bstatic' 7234 else 7235 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7236 fi 7237 ;; 7238 7239 mingw* | cygwin* | pw32* | os2* | cegcc*) 7240 # This hack is so that the source file can tell whether it is being 7241 # built for inclusion in a dll (and should export symbols for example). 7242 lt_prog_compiler_pic='-DDLL_EXPORT' 7243 ;; 7244 7245 hpux9* | hpux10* | hpux11*) 7246 lt_prog_compiler_wl='-Wl,' 7247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7248 # not for PA HP-UX. 7249 case $host_cpu in 7250 hppa*64*|ia64*) 7251 # +Z the default 7252 ;; 7253 *) 7254 lt_prog_compiler_pic='+Z' 7255 ;; 7256 esac 7257 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7258 lt_prog_compiler_static='${wl}-a ${wl}archive' 7259 ;; 7260 7261 irix5* | irix6* | nonstopux*) 7262 lt_prog_compiler_wl='-Wl,' 7263 # PIC (with -KPIC) is the default. 7264 lt_prog_compiler_static='-non_shared' 7265 ;; 7266 7267 linux* | k*bsd*-gnu) 7268 case $cc_basename in 7269 # old Intel for x86_64 which still supported -KPIC. 7270 ecc*) 7271 lt_prog_compiler_wl='-Wl,' 7272 lt_prog_compiler_pic='-KPIC' 7273 lt_prog_compiler_static='-static' 7274 ;; 7275 # icc used to be incompatible with GCC. 7276 # ICC 10 doesn't accept -KPIC any more. 7277 icc* | ifort*) 7278 lt_prog_compiler_wl='-Wl,' 7279 lt_prog_compiler_pic='-fPIC' 7280 lt_prog_compiler_static='-static' 7281 ;; 7282 # Lahey Fortran 8.1. 7283 lf95*) 7284 lt_prog_compiler_wl='-Wl,' 7285 lt_prog_compiler_pic='--shared' 7286 lt_prog_compiler_static='--static' 7287 ;; 7288 pgcc* | pgf77* | pgf90* | pgf95*) 7289 # Portland Group compilers (*not* the Pentium gcc compiler, 7290 # which looks to be a dead project) 7291 lt_prog_compiler_wl='-Wl,' 7292 lt_prog_compiler_pic='-fpic' 7293 lt_prog_compiler_static='-Bstatic' 7294 ;; 7295 ccc*) 7296 lt_prog_compiler_wl='-Wl,' 7297 # All Alpha code is PIC. 7298 lt_prog_compiler_static='-non_shared' 7299 ;; 7300 xl*) 7301 # IBM XL C 8.0/Fortran 10.1 on PPC 7302 lt_prog_compiler_wl='-Wl,' 7303 lt_prog_compiler_pic='-qpic' 7304 lt_prog_compiler_static='-qstaticlink' 7305 ;; 7306 *) 7307 case `$CC -V 2>&1 | sed 5q` in 7308 *Sun\ C*) 7309 # Sun C 5.9 7310 lt_prog_compiler_pic='-KPIC' 7311 lt_prog_compiler_static='-Bstatic' 7312 lt_prog_compiler_wl='-Wl,' 7313 ;; 7314 *Sun\ F*) 7315 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7316 lt_prog_compiler_pic='-KPIC' 7317 lt_prog_compiler_static='-Bstatic' 7318 lt_prog_compiler_wl='' 7319 ;; 7320 esac 7321 ;; 7322 esac 7323 ;; 7324 7325 newsos6) 7326 lt_prog_compiler_pic='-KPIC' 7327 lt_prog_compiler_static='-Bstatic' 7328 ;; 7329 7330 *nto* | *qnx*) 7331 # QNX uses GNU C++, but need to define -shared option too, otherwise 7332 # it will coredump. 7333 lt_prog_compiler_pic='-fPIC -shared' 7334 ;; 7335 7336 osf3* | osf4* | osf5*) 7337 lt_prog_compiler_wl='-Wl,' 7338 # All OSF/1 code is PIC. 7339 lt_prog_compiler_static='-non_shared' 7340 ;; 7341 7342 rdos*) 7343 lt_prog_compiler_static='-non_shared' 7344 ;; 7345 7346 solaris*) 7347 lt_prog_compiler_pic='-KPIC' 7348 lt_prog_compiler_static='-Bstatic' 7349 case $cc_basename in 7350 f77* | f90* | f95*) 7351 lt_prog_compiler_wl='-Qoption ld ';; 7352 *) 7353 lt_prog_compiler_wl='-Wl,';; 7354 esac 7355 ;; 7356 7357 sunos4*) 7358 lt_prog_compiler_wl='-Qoption ld ' 7359 lt_prog_compiler_pic='-PIC' 7360 lt_prog_compiler_static='-Bstatic' 7361 ;; 7362 7363 sysv4 | sysv4.2uw2* | sysv4.3*) 7364 lt_prog_compiler_wl='-Wl,' 7365 lt_prog_compiler_pic='-KPIC' 7366 lt_prog_compiler_static='-Bstatic' 7367 ;; 7368 7369 sysv4*MP*) 7370 if test -d /usr/nec ;then 7371 lt_prog_compiler_pic='-Kconform_pic' 7372 lt_prog_compiler_static='-Bstatic' 7373 fi 7374 ;; 7375 7376 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7377 lt_prog_compiler_wl='-Wl,' 7378 lt_prog_compiler_pic='-KPIC' 7379 lt_prog_compiler_static='-Bstatic' 7380 ;; 7381 7382 unicos*) 7383 lt_prog_compiler_wl='-Wl,' 7384 lt_prog_compiler_can_build_shared=no 7385 ;; 7386 7387 uts4*) 7388 lt_prog_compiler_pic='-pic' 7389 lt_prog_compiler_static='-Bstatic' 7390 ;; 7391 7392 *) 7393 lt_prog_compiler_can_build_shared=no 7394 ;; 7395 esac 7396 fi 7397 7398case $host_os in 7399 # For platforms which do not support PIC, -DPIC is meaningless: 7400 *djgpp*) 7401 lt_prog_compiler_pic= 7402 ;; 7403 *) 7404 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7405 ;; 7406esac 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7408$as_echo "$lt_prog_compiler_pic" >&6; } 7409 7410 7411 7412 7413 7414 7415# 7416# Check to make sure the PIC flag actually works. 7417# 7418if test -n "$lt_prog_compiler_pic"; then 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7420$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7421if ${lt_cv_prog_compiler_pic_works+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 lt_cv_prog_compiler_pic_works=no 7425 ac_outfile=conftest.$ac_objext 7426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7427 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7428 # Insert the option either (1) after the last *FLAGS variable, or 7429 # (2) before a word containing "conftest.", or (3) at the end. 7430 # Note that $ac_compile itself does not contain backslashes and begins 7431 # with a dollar sign (not a hyphen), so the echo should work correctly. 7432 # The option is referenced via a variable to avoid confusing sed. 7433 lt_compile=`echo "$ac_compile" | $SED \ 7434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7436 -e 's:$: $lt_compiler_flag:'` 7437 (eval echo "\"\$as_me:7437: $lt_compile\"" >&5) 7438 (eval "$lt_compile" 2>conftest.err) 7439 ac_status=$? 7440 cat conftest.err >&5 7441 echo "$as_me:7441: \$? = $ac_status" >&5 7442 if (exit $ac_status) && test -s "$ac_outfile"; then 7443 # The compiler can only warn and ignore the option if not recognized 7444 # So say no if there are warnings other than the usual output. 7445 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7448 lt_cv_prog_compiler_pic_works=yes 7449 fi 7450 fi 7451 $RM conftest* 7452 7453fi 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7455$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7456 7457if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7458 case $lt_prog_compiler_pic in 7459 "" | " "*) ;; 7460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7461 esac 7462else 7463 lt_prog_compiler_pic= 7464 lt_prog_compiler_can_build_shared=no 7465fi 7466 7467fi 7468 7469 7470 7471 7472 7473 7474# 7475# Check to make sure the static flag actually works. 7476# 7477wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7479$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7480if ${lt_cv_prog_compiler_static_works+:} false; then : 7481 $as_echo_n "(cached) " >&6 7482else 7483 lt_cv_prog_compiler_static_works=no 7484 save_LDFLAGS="$LDFLAGS" 7485 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7486 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7488 # The linker can only warn and ignore the option if not recognized 7489 # So say no if there are warnings 7490 if test -s conftest.err; then 7491 # Append any errors to the config.log. 7492 cat conftest.err 1>&5 7493 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7495 if diff conftest.exp conftest.er2 >/dev/null; then 7496 lt_cv_prog_compiler_static_works=yes 7497 fi 7498 else 7499 lt_cv_prog_compiler_static_works=yes 7500 fi 7501 fi 7502 $RM -r conftest* 7503 LDFLAGS="$save_LDFLAGS" 7504 7505fi 7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7507$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7508 7509if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7510 : 7511else 7512 lt_prog_compiler_static= 7513fi 7514 7515 7516 7517 7518 7519 7520 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7522$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7523if ${lt_cv_prog_compiler_c_o+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 lt_cv_prog_compiler_c_o=no 7527 $RM -r conftest 2>/dev/null 7528 mkdir conftest 7529 cd conftest 7530 mkdir out 7531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7532 7533 lt_compiler_flag="-o out/conftest2.$ac_objext" 7534 # Insert the option either (1) after the last *FLAGS variable, or 7535 # (2) before a word containing "conftest.", or (3) at the end. 7536 # Note that $ac_compile itself does not contain backslashes and begins 7537 # with a dollar sign (not a hyphen), so the echo should work correctly. 7538 lt_compile=`echo "$ac_compile" | $SED \ 7539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7541 -e 's:$: $lt_compiler_flag:'` 7542 (eval echo "\"\$as_me:7542: $lt_compile\"" >&5) 7543 (eval "$lt_compile" 2>out/conftest.err) 7544 ac_status=$? 7545 cat out/conftest.err >&5 7546 echo "$as_me:7546: \$? = $ac_status" >&5 7547 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7548 then 7549 # The compiler can only warn and ignore the option if not recognized 7550 # So say no if there are warnings 7551 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7554 lt_cv_prog_compiler_c_o=yes 7555 fi 7556 fi 7557 chmod u+w . 2>&5 7558 $RM conftest* 7559 # SGI C++ compiler will create directory out/ii_files/ for 7560 # template instantiation 7561 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7562 $RM out/* && rmdir out 7563 cd .. 7564 $RM -r conftest 7565 $RM conftest* 7566 7567fi 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7569$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7570 7571 7572 7573 7574 7575 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7577$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7578if ${lt_cv_prog_compiler_c_o+:} false; then : 7579 $as_echo_n "(cached) " >&6 7580else 7581 lt_cv_prog_compiler_c_o=no 7582 $RM -r conftest 2>/dev/null 7583 mkdir conftest 7584 cd conftest 7585 mkdir out 7586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7587 7588 lt_compiler_flag="-o out/conftest2.$ac_objext" 7589 # Insert the option either (1) after the last *FLAGS variable, or 7590 # (2) before a word containing "conftest.", or (3) at the end. 7591 # Note that $ac_compile itself does not contain backslashes and begins 7592 # with a dollar sign (not a hyphen), so the echo should work correctly. 7593 lt_compile=`echo "$ac_compile" | $SED \ 7594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7596 -e 's:$: $lt_compiler_flag:'` 7597 (eval echo "\"\$as_me:7597: $lt_compile\"" >&5) 7598 (eval "$lt_compile" 2>out/conftest.err) 7599 ac_status=$? 7600 cat out/conftest.err >&5 7601 echo "$as_me:7601: \$? = $ac_status" >&5 7602 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7603 then 7604 # The compiler can only warn and ignore the option if not recognized 7605 # So say no if there are warnings 7606 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7607 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7608 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7609 lt_cv_prog_compiler_c_o=yes 7610 fi 7611 fi 7612 chmod u+w . 2>&5 7613 $RM conftest* 7614 # SGI C++ compiler will create directory out/ii_files/ for 7615 # template instantiation 7616 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7617 $RM out/* && rmdir out 7618 cd .. 7619 $RM -r conftest 7620 $RM conftest* 7621 7622fi 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7624$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7625 7626 7627 7628 7629hard_links="nottested" 7630if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7631 # do not overwrite the value of need_locks provided by the user 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7633$as_echo_n "checking if we can lock with hard links... " >&6; } 7634 hard_links=yes 7635 $RM conftest* 7636 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7637 touch conftest.a 7638 ln conftest.a conftest.b 2>&5 || hard_links=no 7639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7641$as_echo "$hard_links" >&6; } 7642 if test "$hard_links" = no; then 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7644$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7645 need_locks=warn 7646 fi 7647else 7648 need_locks=no 7649fi 7650 7651 7652 7653 7654 7655 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7657$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7658 7659 runpath_var= 7660 allow_undefined_flag= 7661 always_export_symbols=no 7662 archive_cmds= 7663 archive_expsym_cmds= 7664 compiler_needs_object=no 7665 enable_shared_with_static_runtimes=no 7666 export_dynamic_flag_spec= 7667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7668 hardcode_automatic=no 7669 hardcode_direct=no 7670 hardcode_direct_absolute=no 7671 hardcode_libdir_flag_spec= 7672 hardcode_libdir_flag_spec_ld= 7673 hardcode_libdir_separator= 7674 hardcode_minus_L=no 7675 hardcode_shlibpath_var=unsupported 7676 inherit_rpath=no 7677 link_all_deplibs=unknown 7678 module_cmds= 7679 module_expsym_cmds= 7680 old_archive_from_new_cmds= 7681 old_archive_from_expsyms_cmds= 7682 thread_safe_flag_spec= 7683 whole_archive_flag_spec= 7684 # include_expsyms should be a list of space-separated symbols to be *always* 7685 # included in the symbol list 7686 include_expsyms= 7687 # exclude_expsyms can be an extended regexp of symbols to exclude 7688 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7689 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7690 # as well as any symbol that contains `d'. 7691 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7692 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7693 # platforms (ab)use it in PIC code, but their linkers get confused if 7694 # the symbol is explicitly referenced. Since portable code cannot 7695 # rely on this symbol name, it's probably fine to never include it in 7696 # preloaded symbol tables. 7697 # Exclude shared library initialization/finalization symbols. 7698 extract_expsyms_cmds= 7699 7700 case $host_os in 7701 cygwin* | mingw* | pw32* | cegcc*) 7702 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7703 # When not using gcc, we currently assume that we are using 7704 # Microsoft Visual C++. 7705 if test "$GCC" != yes; then 7706 with_gnu_ld=no 7707 fi 7708 ;; 7709 interix*) 7710 # we just hope/assume this is gcc and not c89 (= MSVC++) 7711 with_gnu_ld=yes 7712 ;; 7713 openbsd*) 7714 with_gnu_ld=no 7715 ;; 7716 esac 7717 7718 ld_shlibs=yes 7719 if test "$with_gnu_ld" = yes; then 7720 # If archive_cmds runs LD, not CC, wlarc should be empty 7721 wlarc='${wl}' 7722 7723 # Set some defaults for GNU ld with shared library support. These 7724 # are reset later if shared libraries are not supported. Putting them 7725 # here allows them to be overridden if necessary. 7726 runpath_var=LD_RUN_PATH 7727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7728 export_dynamic_flag_spec='${wl}--export-dynamic' 7729 # ancient GNU ld didn't support --whole-archive et. al. 7730 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7731 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7732 else 7733 whole_archive_flag_spec= 7734 fi 7735 supports_anon_versioning=no 7736 case `$LD -v 2>&1` in 7737 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7738 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7739 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7740 *\ 2.11.*) ;; # other 2.11 versions 7741 *) supports_anon_versioning=yes ;; 7742 esac 7743 7744 # See if GNU ld supports shared libraries. 7745 case $host_os in 7746 aix[3-9]*) 7747 # On AIX/PPC, the GNU linker is very broken 7748 if test "$host_cpu" != ia64; then 7749 ld_shlibs=no 7750 cat <<_LT_EOF 1>&2 7751 7752*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7753*** to be unable to reliably create shared libraries on AIX. 7754*** Therefore, libtool is disabling shared libraries support. If you 7755*** really care for shared libraries, you may want to modify your PATH 7756*** so that a non-GNU linker is found, and then restart. 7757 7758_LT_EOF 7759 fi 7760 ;; 7761 7762 amigaos*) 7763 case $host_cpu in 7764 powerpc) 7765 # see comment about AmigaOS4 .so support 7766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7767 archive_expsym_cmds='' 7768 ;; 7769 m68k) 7770 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)' 7771 hardcode_libdir_flag_spec='-L$libdir' 7772 hardcode_minus_L=yes 7773 ;; 7774 esac 7775 ;; 7776 7777 beos*) 7778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7779 allow_undefined_flag=unsupported 7780 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7781 # support --undefined. This deserves some investigation. FIXME 7782 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7783 else 7784 ld_shlibs=no 7785 fi 7786 ;; 7787 7788 cygwin* | mingw* | pw32* | cegcc*) 7789 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7790 # as there is no search path for DLLs. 7791 hardcode_libdir_flag_spec='-L$libdir' 7792 allow_undefined_flag=unsupported 7793 always_export_symbols=no 7794 enable_shared_with_static_runtimes=yes 7795 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7796 7797 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7799 # If the export-symbols file already is a .def file (1st line 7800 # is EXPORTS), use it as is; otherwise, prepend... 7801 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7802 cp $export_symbols $output_objdir/$soname.def; 7803 else 7804 echo EXPORTS > $output_objdir/$soname.def; 7805 cat $export_symbols >> $output_objdir/$soname.def; 7806 fi~ 7807 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7808 else 7809 ld_shlibs=no 7810 fi 7811 ;; 7812 7813 interix[3-9]*) 7814 hardcode_direct=no 7815 hardcode_shlibpath_var=no 7816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7817 export_dynamic_flag_spec='${wl}-E' 7818 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7819 # Instead, shared libraries are loaded at an image base (0x10000000 by 7820 # default) and relocated if they conflict, which is a slow very memory 7821 # consuming and fragmenting process. To avoid this, we pick a random, 7822 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7823 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7825 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' 7826 ;; 7827 7828 gnu* | linux* | tpf* | k*bsd*-gnu) 7829 tmp_diet=no 7830 if test "$host_os" = linux-dietlibc; then 7831 case $cc_basename in 7832 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7833 esac 7834 fi 7835 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7836 && test "$tmp_diet" = no 7837 then 7838 tmp_addflag= 7839 tmp_sharedflag='-shared' 7840 case $cc_basename,$host_cpu in 7841 pgcc*) # Portland Group C compiler 7842 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' 7843 tmp_addflag=' $pic_flag' 7844 ;; 7845 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7846 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' 7847 tmp_addflag=' $pic_flag -Mnomain' ;; 7848 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7849 tmp_addflag=' -i_dynamic' ;; 7850 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7851 tmp_addflag=' -i_dynamic -nofor_main' ;; 7852 ifc* | ifort*) # Intel Fortran compiler 7853 tmp_addflag=' -nofor_main' ;; 7854 lf95*) # Lahey Fortran 8.1 7855 whole_archive_flag_spec= 7856 tmp_sharedflag='--shared' ;; 7857 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 7858 tmp_sharedflag='-qmkshrobj' 7859 tmp_addflag= ;; 7860 esac 7861 case `$CC -V 2>&1 | sed 5q` in 7862 *Sun\ C*) # Sun C 5.9 7863 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' 7864 compiler_needs_object=yes 7865 tmp_sharedflag='-G' ;; 7866 *Sun\ F*) # Sun Fortran 8.3 7867 tmp_sharedflag='-G' ;; 7868 esac 7869 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7870 7871 if test "x$supports_anon_versioning" = xyes; then 7872 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7874 echo "local: *; };" >> $output_objdir/$libname.ver~ 7875 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7876 fi 7877 7878 case $cc_basename in 7879 xlf*) 7880 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 7881 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 7882 hardcode_libdir_flag_spec= 7883 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7884 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 7885 if test "x$supports_anon_versioning" = xyes; then 7886 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7887 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7888 echo "local: *; };" >> $output_objdir/$libname.ver~ 7889 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 7890 fi 7891 ;; 7892 esac 7893 else 7894 ld_shlibs=no 7895 fi 7896 ;; 7897 7898 netbsd*) 7899 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7900 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7901 wlarc= 7902 else 7903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7904 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7905 fi 7906 ;; 7907 7908 solaris*) 7909 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7910 ld_shlibs=no 7911 cat <<_LT_EOF 1>&2 7912 7913*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7914*** create shared libraries on Solaris systems. Therefore, libtool 7915*** is disabling shared libraries support. We urge you to upgrade GNU 7916*** binutils to release 2.9.1 or newer. Another option is to modify 7917*** your PATH or compiler configuration so that the native linker is 7918*** used, and then restart. 7919 7920_LT_EOF 7921 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7923 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7924 else 7925 ld_shlibs=no 7926 fi 7927 ;; 7928 7929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7930 case `$LD -v 2>&1` in 7931 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7932 ld_shlibs=no 7933 cat <<_LT_EOF 1>&2 7934 7935*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7936*** reliably create shared libraries on SCO systems. Therefore, libtool 7937*** is disabling shared libraries support. We urge you to upgrade GNU 7938*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7939*** your PATH or compiler configuration so that the native linker is 7940*** used, and then restart. 7941 7942_LT_EOF 7943 ;; 7944 *) 7945 # For security reasons, it is highly recommended that you always 7946 # use absolute paths for naming shared libraries, and exclude the 7947 # DT_RUNPATH tag from executables and libraries. But doing so 7948 # requires that you compile everything twice, which is a pain. 7949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7953 else 7954 ld_shlibs=no 7955 fi 7956 ;; 7957 esac 7958 ;; 7959 7960 sunos4*) 7961 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7962 wlarc= 7963 hardcode_direct=yes 7964 hardcode_shlibpath_var=no 7965 ;; 7966 7967 *) 7968 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7971 else 7972 ld_shlibs=no 7973 fi 7974 ;; 7975 esac 7976 7977 if test "$ld_shlibs" = no; then 7978 runpath_var= 7979 hardcode_libdir_flag_spec= 7980 export_dynamic_flag_spec= 7981 whole_archive_flag_spec= 7982 fi 7983 else 7984 # PORTME fill in a description of your system's linker (not GNU ld) 7985 case $host_os in 7986 aix3*) 7987 allow_undefined_flag=unsupported 7988 always_export_symbols=yes 7989 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' 7990 # Note: this linker hardcodes the directories in LIBPATH if there 7991 # are no directories specified by -L. 7992 hardcode_minus_L=yes 7993 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7994 # Neither direct hardcoding nor static linking is supported with a 7995 # broken collect2. 7996 hardcode_direct=unsupported 7997 fi 7998 ;; 7999 8000 aix[4-9]*) 8001 if test "$host_cpu" = ia64; then 8002 # On IA64, the linker does run time linking by default, so we don't 8003 # have to do anything special. 8004 aix_use_runtimelinking=no 8005 exp_sym_flag='-Bexport' 8006 no_entry_flag="" 8007 else 8008 # If we're using GNU nm, then we don't want the "-C" option. 8009 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8010 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8011 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' 8012 else 8013 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' 8014 fi 8015 aix_use_runtimelinking=no 8016 8017 # Test if we are trying to use run time linking or normal 8018 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8019 # need to do runtime linking. 8020 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8021 for ld_flag in $LDFLAGS; do 8022 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8023 aix_use_runtimelinking=yes 8024 break 8025 fi 8026 done 8027 ;; 8028 esac 8029 8030 exp_sym_flag='-bexport' 8031 no_entry_flag='-bnoentry' 8032 fi 8033 8034 # When large executables or shared objects are built, AIX ld can 8035 # have problems creating the table of contents. If linking a library 8036 # or program results in "error TOC overflow" add -mminimal-toc to 8037 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8038 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8039 8040 archive_cmds='' 8041 hardcode_direct=yes 8042 hardcode_direct_absolute=yes 8043 hardcode_libdir_separator=':' 8044 link_all_deplibs=yes 8045 file_list_spec='${wl}-f,' 8046 8047 if test "$GCC" = yes; then 8048 case $host_os in aix4.[012]|aix4.[012].*) 8049 # We only want to do this on AIX 4.2 and lower, the check 8050 # below for broken collect2 doesn't work under 4.3+ 8051 collect2name=`${CC} -print-prog-name=collect2` 8052 if test -f "$collect2name" && 8053 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8054 then 8055 # We have reworked collect2 8056 : 8057 else 8058 # We have old collect2 8059 hardcode_direct=unsupported 8060 # It fails to find uninstalled libraries when the uninstalled 8061 # path is not listed in the libpath. Setting hardcode_minus_L 8062 # to unsupported forces relinking 8063 hardcode_minus_L=yes 8064 hardcode_libdir_flag_spec='-L$libdir' 8065 hardcode_libdir_separator= 8066 fi 8067 ;; 8068 esac 8069 shared_flag='-shared' 8070 if test "$aix_use_runtimelinking" = yes; then 8071 shared_flag="$shared_flag "'${wl}-G' 8072 fi 8073 else 8074 # not using gcc 8075 if test "$host_cpu" = ia64; then 8076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8077 # chokes on -Wl,-G. The following line is correct: 8078 shared_flag='-G' 8079 else 8080 if test "$aix_use_runtimelinking" = yes; then 8081 shared_flag='${wl}-G' 8082 else 8083 shared_flag='${wl}-bM:SRE' 8084 fi 8085 fi 8086 fi 8087 8088 export_dynamic_flag_spec='${wl}-bexpall' 8089 # It seems that -bexpall does not export symbols beginning with 8090 # underscore (_), so it is better to generate a list of symbols to export. 8091 always_export_symbols=yes 8092 if test "$aix_use_runtimelinking" = yes; then 8093 # Warning - without using the other runtime loading flags (-brtl), 8094 # -berok will link without error, but may produce a broken library. 8095 allow_undefined_flag='-berok' 8096 # Determine the default libpath from the value encoded in an 8097 # empty executable. 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099/* end confdefs.h. */ 8100 8101int 8102main () 8103{ 8104 8105 ; 8106 return 0; 8107} 8108_ACEOF 8109if ac_fn_c_try_link "$LINENO"; then : 8110 8111lt_aix_libpath_sed=' 8112 /Import File Strings/,/^$/ { 8113 /^0/ { 8114 s/^0 *\(.*\)$/\1/ 8115 p 8116 } 8117 }' 8118aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8119# Check for a 64-bit object if we didn't find anything. 8120if test -z "$aix_libpath"; then 8121 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8122fi 8123fi 8124rm -f core conftest.err conftest.$ac_objext \ 8125 conftest$ac_exeext conftest.$ac_ext 8126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8127 8128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8129 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" 8130 else 8131 if test "$host_cpu" = ia64; then 8132 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8133 allow_undefined_flag="-z nodefs" 8134 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" 8135 else 8136 # Determine the default libpath from the value encoded in an 8137 # empty executable. 8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8139/* end confdefs.h. */ 8140 8141int 8142main () 8143{ 8144 8145 ; 8146 return 0; 8147} 8148_ACEOF 8149if ac_fn_c_try_link "$LINENO"; then : 8150 8151lt_aix_libpath_sed=' 8152 /Import File Strings/,/^$/ { 8153 /^0/ { 8154 s/^0 *\(.*\)$/\1/ 8155 p 8156 } 8157 }' 8158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8159# Check for a 64-bit object if we didn't find anything. 8160if test -z "$aix_libpath"; then 8161 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8162fi 8163fi 8164rm -f core conftest.err conftest.$ac_objext \ 8165 conftest$ac_exeext conftest.$ac_ext 8166if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8167 8168 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8169 # Warning - without using the other run time loading flags, 8170 # -berok will link without error, but may produce a broken library. 8171 no_undefined_flag=' ${wl}-bernotok' 8172 allow_undefined_flag=' ${wl}-berok' 8173 # Exported symbols can be pulled into shared objects from archives 8174 whole_archive_flag_spec='$convenience' 8175 archive_cmds_need_lc=yes 8176 # This is similar to how AIX traditionally builds its shared libraries. 8177 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' 8178 fi 8179 fi 8180 ;; 8181 8182 amigaos*) 8183 case $host_cpu in 8184 powerpc) 8185 # see comment about AmigaOS4 .so support 8186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8187 archive_expsym_cmds='' 8188 ;; 8189 m68k) 8190 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)' 8191 hardcode_libdir_flag_spec='-L$libdir' 8192 hardcode_minus_L=yes 8193 ;; 8194 esac 8195 ;; 8196 8197 bsdi[45]*) 8198 export_dynamic_flag_spec=-rdynamic 8199 ;; 8200 8201 cygwin* | mingw* | pw32* | cegcc*) 8202 # When not using gcc, we currently assume that we are using 8203 # Microsoft Visual C++. 8204 # hardcode_libdir_flag_spec is actually meaningless, as there is 8205 # no search path for DLLs. 8206 hardcode_libdir_flag_spec=' ' 8207 allow_undefined_flag=unsupported 8208 # Tell ltmain to make .lib files, not .a files. 8209 libext=lib 8210 # Tell ltmain to make .dll files, not .so files. 8211 shrext_cmds=".dll" 8212 # FIXME: Setting linknames here is a bad hack. 8213 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8214 # The linker will automatically build a .lib file if we build a DLL. 8215 old_archive_from_new_cmds='true' 8216 # FIXME: Should let the user specify the lib program. 8217 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8218 fix_srcfile_path='`cygpath -w "$srcfile"`' 8219 enable_shared_with_static_runtimes=yes 8220 ;; 8221 8222 darwin* | rhapsody*) 8223 8224 8225 archive_cmds_need_lc=no 8226 hardcode_direct=no 8227 hardcode_automatic=yes 8228 hardcode_shlibpath_var=unsupported 8229 whole_archive_flag_spec='' 8230 link_all_deplibs=yes 8231 allow_undefined_flag="$_lt_dar_allow_undefined" 8232 case $cc_basename in 8233 ifort*) _lt_dar_can_shared=yes ;; 8234 *) _lt_dar_can_shared=$GCC ;; 8235 esac 8236 if test "$_lt_dar_can_shared" = "yes"; then 8237 output_verbose_link_cmd=echo 8238 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8239 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8240 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}" 8241 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}" 8242 8243 else 8244 ld_shlibs=no 8245 fi 8246 8247 ;; 8248 8249 dgux*) 8250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8251 hardcode_libdir_flag_spec='-L$libdir' 8252 hardcode_shlibpath_var=no 8253 ;; 8254 8255 freebsd1*) 8256 ld_shlibs=no 8257 ;; 8258 8259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8260 # support. Future versions do this automatically, but an explicit c++rt0.o 8261 # does not break anything, and helps significantly (at the cost of a little 8262 # extra space). 8263 freebsd2.2*) 8264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8265 hardcode_libdir_flag_spec='-R$libdir' 8266 hardcode_direct=yes 8267 hardcode_shlibpath_var=no 8268 ;; 8269 8270 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8271 freebsd2*) 8272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8273 hardcode_direct=yes 8274 hardcode_minus_L=yes 8275 hardcode_shlibpath_var=no 8276 ;; 8277 8278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8279 freebsd* | dragonfly*) 8280 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8281 hardcode_libdir_flag_spec='-R$libdir' 8282 hardcode_direct=yes 8283 hardcode_shlibpath_var=no 8284 ;; 8285 8286 hpux9*) 8287 if test "$GCC" = yes; then 8288 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' 8289 else 8290 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' 8291 fi 8292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8293 hardcode_libdir_separator=: 8294 hardcode_direct=yes 8295 8296 # hardcode_minus_L: Not really in the search PATH, 8297 # but as the default location of the library. 8298 hardcode_minus_L=yes 8299 export_dynamic_flag_spec='${wl}-E' 8300 ;; 8301 8302 hpux10*) 8303 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8304 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8305 else 8306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8307 fi 8308 if test "$with_gnu_ld" = no; then 8309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8310 hardcode_libdir_flag_spec_ld='+b $libdir' 8311 hardcode_libdir_separator=: 8312 hardcode_direct=yes 8313 hardcode_direct_absolute=yes 8314 export_dynamic_flag_spec='${wl}-E' 8315 # hardcode_minus_L: Not really in the search PATH, 8316 # but as the default location of the library. 8317 hardcode_minus_L=yes 8318 fi 8319 ;; 8320 8321 hpux11*) 8322 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8323 case $host_cpu in 8324 hppa*64*) 8325 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8326 ;; 8327 ia64*) 8328 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8329 ;; 8330 *) 8331 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8332 ;; 8333 esac 8334 else 8335 case $host_cpu in 8336 hppa*64*) 8337 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8338 ;; 8339 ia64*) 8340 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8341 ;; 8342 *) 8343 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8344 ;; 8345 esac 8346 fi 8347 if test "$with_gnu_ld" = no; then 8348 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8349 hardcode_libdir_separator=: 8350 8351 case $host_cpu in 8352 hppa*64*|ia64*) 8353 hardcode_direct=no 8354 hardcode_shlibpath_var=no 8355 ;; 8356 *) 8357 hardcode_direct=yes 8358 hardcode_direct_absolute=yes 8359 export_dynamic_flag_spec='${wl}-E' 8360 8361 # hardcode_minus_L: Not really in the search PATH, 8362 # but as the default location of the library. 8363 hardcode_minus_L=yes 8364 ;; 8365 esac 8366 fi 8367 ;; 8368 8369 irix5* | irix6* | nonstopux*) 8370 if test "$GCC" = yes; then 8371 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' 8372 # Try to use the -exported_symbol ld option, if it does not 8373 # work, assume that -exports_file does not work either and 8374 # implicitly export all symbols. 8375 save_LDFLAGS="$LDFLAGS" 8376 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8378/* end confdefs.h. */ 8379int foo(void) {} 8380_ACEOF 8381if ac_fn_c_try_link "$LINENO"; then : 8382 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' 8383 8384fi 8385rm -f core conftest.err conftest.$ac_objext \ 8386 conftest$ac_exeext conftest.$ac_ext 8387 LDFLAGS="$save_LDFLAGS" 8388 else 8389 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' 8390 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' 8391 fi 8392 archive_cmds_need_lc='no' 8393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8394 hardcode_libdir_separator=: 8395 inherit_rpath=yes 8396 link_all_deplibs=yes 8397 ;; 8398 8399 netbsd*) 8400 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8402 else 8403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8404 fi 8405 hardcode_libdir_flag_spec='-R$libdir' 8406 hardcode_direct=yes 8407 hardcode_shlibpath_var=no 8408 ;; 8409 8410 newsos6) 8411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8412 hardcode_direct=yes 8413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8414 hardcode_libdir_separator=: 8415 hardcode_shlibpath_var=no 8416 ;; 8417 8418 *nto* | *qnx*) 8419 ;; 8420 8421 openbsd*) 8422 if test -f /usr/libexec/ld.so; then 8423 hardcode_direct=yes 8424 hardcode_shlibpath_var=no 8425 hardcode_direct_absolute=yes 8426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8428 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8429 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8430 export_dynamic_flag_spec='${wl}-E' 8431 else 8432 case $host_os in 8433 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8434 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8435 hardcode_libdir_flag_spec='-R$libdir' 8436 ;; 8437 *) 8438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8440 ;; 8441 esac 8442 fi 8443 else 8444 ld_shlibs=no 8445 fi 8446 ;; 8447 8448 os2*) 8449 hardcode_libdir_flag_spec='-L$libdir' 8450 hardcode_minus_L=yes 8451 allow_undefined_flag=unsupported 8452 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' 8453 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8454 ;; 8455 8456 osf3*) 8457 if test "$GCC" = yes; then 8458 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8459 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' 8460 else 8461 allow_undefined_flag=' -expect_unresolved \*' 8462 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' 8463 fi 8464 archive_cmds_need_lc='no' 8465 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8466 hardcode_libdir_separator=: 8467 ;; 8468 8469 osf4* | osf5*) # as osf3* with the addition of -msym flag 8470 if test "$GCC" = yes; then 8471 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8472 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' 8473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8474 else 8475 allow_undefined_flag=' -expect_unresolved \*' 8476 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' 8477 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~ 8478 $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' 8479 8480 # Both c and cxx compiler support -rpath directly 8481 hardcode_libdir_flag_spec='-rpath $libdir' 8482 fi 8483 archive_cmds_need_lc='no' 8484 hardcode_libdir_separator=: 8485 ;; 8486 8487 solaris*) 8488 no_undefined_flag=' -z defs' 8489 if test "$GCC" = yes; then 8490 wlarc='${wl}' 8491 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8493 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8494 else 8495 case `$CC -V 2>&1` in 8496 *"Compilers 5.0"*) 8497 wlarc='' 8498 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8500 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8501 ;; 8502 *) 8503 wlarc='${wl}' 8504 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8505 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8506 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8507 ;; 8508 esac 8509 fi 8510 hardcode_libdir_flag_spec='-R$libdir' 8511 hardcode_shlibpath_var=no 8512 case $host_os in 8513 solaris2.[0-5] | solaris2.[0-5].*) ;; 8514 *) 8515 # The compiler driver will combine and reorder linker options, 8516 # but understands `-z linker_flag'. GCC discards it without `$wl', 8517 # but is careful enough not to reorder. 8518 # Supported since Solaris 2.6 (maybe 2.5.1?) 8519 if test "$GCC" = yes; then 8520 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8521 else 8522 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8523 fi 8524 ;; 8525 esac 8526 link_all_deplibs=yes 8527 ;; 8528 8529 sunos4*) 8530 if test "x$host_vendor" = xsequent; then 8531 # Use $CC to link under sequent, because it throws in some extra .o 8532 # files that make .init and .fini sections work. 8533 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8534 else 8535 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8536 fi 8537 hardcode_libdir_flag_spec='-L$libdir' 8538 hardcode_direct=yes 8539 hardcode_minus_L=yes 8540 hardcode_shlibpath_var=no 8541 ;; 8542 8543 sysv4) 8544 case $host_vendor in 8545 sni) 8546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8547 hardcode_direct=yes # is this really true??? 8548 ;; 8549 siemens) 8550 ## LD is ld it makes a PLAMLIB 8551 ## CC just makes a GrossModule. 8552 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8553 reload_cmds='$CC -r -o $output$reload_objs' 8554 hardcode_direct=no 8555 ;; 8556 motorola) 8557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8558 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8559 ;; 8560 esac 8561 runpath_var='LD_RUN_PATH' 8562 hardcode_shlibpath_var=no 8563 ;; 8564 8565 sysv4.3*) 8566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8567 hardcode_shlibpath_var=no 8568 export_dynamic_flag_spec='-Bexport' 8569 ;; 8570 8571 sysv4*MP*) 8572 if test -d /usr/nec; then 8573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8574 hardcode_shlibpath_var=no 8575 runpath_var=LD_RUN_PATH 8576 hardcode_runpath_var=yes 8577 ld_shlibs=yes 8578 fi 8579 ;; 8580 8581 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8582 no_undefined_flag='${wl}-z,text' 8583 archive_cmds_need_lc=no 8584 hardcode_shlibpath_var=no 8585 runpath_var='LD_RUN_PATH' 8586 8587 if test "$GCC" = yes; then 8588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8590 else 8591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8593 fi 8594 ;; 8595 8596 sysv5* | sco3.2v5* | sco5v6*) 8597 # Note: We can NOT use -z defs as we might desire, because we do not 8598 # link with -lc, and that would cause any symbols used from libc to 8599 # always be unresolved, which means just about no library would 8600 # ever link correctly. If we're not using GNU ld we use -z text 8601 # though, which does catch some bad symbols but isn't as heavy-handed 8602 # as -z defs. 8603 no_undefined_flag='${wl}-z,text' 8604 allow_undefined_flag='${wl}-z,nodefs' 8605 archive_cmds_need_lc=no 8606 hardcode_shlibpath_var=no 8607 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8608 hardcode_libdir_separator=':' 8609 link_all_deplibs=yes 8610 export_dynamic_flag_spec='${wl}-Bexport' 8611 runpath_var='LD_RUN_PATH' 8612 8613 if test "$GCC" = yes; then 8614 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8615 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8616 else 8617 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8618 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8619 fi 8620 ;; 8621 8622 uts4*) 8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8624 hardcode_libdir_flag_spec='-L$libdir' 8625 hardcode_shlibpath_var=no 8626 ;; 8627 8628 *) 8629 ld_shlibs=no 8630 ;; 8631 esac 8632 8633 if test x$host_vendor = xsni; then 8634 case $host in 8635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8636 export_dynamic_flag_spec='${wl}-Blargedynsym' 8637 ;; 8638 esac 8639 fi 8640 fi 8641 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8643$as_echo "$ld_shlibs" >&6; } 8644test "$ld_shlibs" = no && can_build_shared=no 8645 8646with_gnu_ld=$with_gnu_ld 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662# 8663# Do we need to explicitly link libc? 8664# 8665case "x$archive_cmds_need_lc" in 8666x|xyes) 8667 # Assume -lc should be added 8668 archive_cmds_need_lc=yes 8669 8670 if test "$enable_shared" = yes && test "$GCC" = yes; then 8671 case $archive_cmds in 8672 *'~'*) 8673 # FIXME: we may have to deal with multi-command sequences. 8674 ;; 8675 '$CC '*) 8676 # Test whether the compiler implicitly links with -lc since on some 8677 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8678 # to ld, don't add -lc before -lgcc. 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 8680$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8681 $RM conftest* 8682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8683 8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8685 (eval $ac_compile) 2>&5 8686 ac_status=$? 8687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8688 test $ac_status = 0; } 2>conftest.err; then 8689 soname=conftest 8690 lib=conftest 8691 libobjs=conftest.$ac_objext 8692 deplibs= 8693 wl=$lt_prog_compiler_wl 8694 pic_flag=$lt_prog_compiler_pic 8695 compiler_flags=-v 8696 linker_flags=-v 8697 verstring= 8698 output_objdir=. 8699 libname=conftest 8700 lt_save_allow_undefined_flag=$allow_undefined_flag 8701 allow_undefined_flag= 8702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 8703 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8704 ac_status=$? 8705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8706 test $ac_status = 0; } 8707 then 8708 archive_cmds_need_lc=no 8709 else 8710 archive_cmds_need_lc=yes 8711 fi 8712 allow_undefined_flag=$lt_save_allow_undefined_flag 8713 else 8714 cat conftest.err 1>&5 8715 fi 8716 $RM conftest* 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 8718$as_echo "$archive_cmds_need_lc" >&6; } 8719 ;; 8720 esac 8721 fi 8722 ;; 8723esac 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 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 8882$as_echo_n "checking dynamic linker characteristics... " >&6; } 8883 8884if test "$GCC" = yes; then 8885 case $host_os in 8886 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8887 *) lt_awk_arg="/^libraries:/" ;; 8888 esac 8889 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8890 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8891 # if the path contains ";" then we assume it to be the separator 8892 # otherwise default to the standard path separator (i.e. ":") - it is 8893 # assumed that no part of a normal pathname contains ";" but that should 8894 # okay in the real world where ";" in dirpaths is itself problematic. 8895 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8896 else 8897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8898 fi 8899 # Ok, now we have the path, separated by spaces, we can step through it 8900 # and add multilib dir if necessary. 8901 lt_tmp_lt_search_path_spec= 8902 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8903 for lt_sys_path in $lt_search_path_spec; do 8904 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8906 else 8907 test -d "$lt_sys_path" && \ 8908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8909 fi 8910 done 8911 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8912BEGIN {RS=" "; FS="/|\n";} { 8913 lt_foo=""; 8914 lt_count=0; 8915 for (lt_i = NF; lt_i > 0; lt_i--) { 8916 if ($lt_i != "" && $lt_i != ".") { 8917 if ($lt_i == "..") { 8918 lt_count++; 8919 } else { 8920 if (lt_count == 0) { 8921 lt_foo="/" $lt_i lt_foo; 8922 } else { 8923 lt_count--; 8924 } 8925 } 8926 } 8927 } 8928 if (lt_foo != "") { lt_freq[lt_foo]++; } 8929 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8930}'` 8931 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8932else 8933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8934fi 8935library_names_spec= 8936libname_spec='lib$name' 8937soname_spec= 8938shrext_cmds=".so" 8939postinstall_cmds= 8940postuninstall_cmds= 8941finish_cmds= 8942finish_eval= 8943shlibpath_var= 8944shlibpath_overrides_runpath=unknown 8945version_type=none 8946dynamic_linker="$host_os ld.so" 8947sys_lib_dlsearch_path_spec="/lib /usr/lib" 8948need_lib_prefix=unknown 8949hardcode_into_libs=no 8950 8951# when you set need_version to no, make sure it does not cause -set_version 8952# flags to be left without arguments 8953need_version=unknown 8954 8955case $host_os in 8956aix3*) 8957 version_type=linux 8958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8959 shlibpath_var=LIBPATH 8960 8961 # AIX 3 has no versioning support, so we append a major version to the name. 8962 soname_spec='${libname}${release}${shared_ext}$major' 8963 ;; 8964 8965aix[4-9]*) 8966 version_type=linux 8967 need_lib_prefix=no 8968 need_version=no 8969 hardcode_into_libs=yes 8970 if test "$host_cpu" = ia64; then 8971 # AIX 5 supports IA64 8972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8973 shlibpath_var=LD_LIBRARY_PATH 8974 else 8975 # With GCC up to 2.95.x, collect2 would create an import file 8976 # for dependence libraries. The import file would start with 8977 # the line `#! .'. This would cause the generated library to 8978 # depend on `.', always an invalid library. This was fixed in 8979 # development snapshots of GCC prior to 3.0. 8980 case $host_os in 8981 aix4 | aix4.[01] | aix4.[01].*) 8982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8983 echo ' yes ' 8984 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8985 : 8986 else 8987 can_build_shared=no 8988 fi 8989 ;; 8990 esac 8991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8992 # soname into executable. Probably we can add versioning support to 8993 # collect2, so additional links can be useful in future. 8994 if test "$aix_use_runtimelinking" = yes; then 8995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8996 # instead of lib<name>.a to let people know that these are not 8997 # typical AIX shared libraries. 8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8999 else 9000 # We preserve .a as extension for shared libraries through AIX4.2 9001 # and later when we are not doing run time linking. 9002 library_names_spec='${libname}${release}.a $libname.a' 9003 soname_spec='${libname}${release}${shared_ext}$major' 9004 fi 9005 shlibpath_var=LIBPATH 9006 fi 9007 ;; 9008 9009amigaos*) 9010 case $host_cpu in 9011 powerpc) 9012 # Since July 2007 AmigaOS4 officially supports .so libraries. 9013 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9015 ;; 9016 m68k) 9017 library_names_spec='$libname.ixlibrary $libname.a' 9018 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9019 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' 9020 ;; 9021 esac 9022 ;; 9023 9024beos*) 9025 library_names_spec='${libname}${shared_ext}' 9026 dynamic_linker="$host_os ld.so" 9027 shlibpath_var=LIBRARY_PATH 9028 ;; 9029 9030bsdi[45]*) 9031 version_type=linux 9032 need_version=no 9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9034 soname_spec='${libname}${release}${shared_ext}$major' 9035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9036 shlibpath_var=LD_LIBRARY_PATH 9037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9039 # the default ld.so.conf also contains /usr/contrib/lib and 9040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9041 # libtool to hard-code these into programs 9042 ;; 9043 9044cygwin* | mingw* | pw32* | cegcc*) 9045 version_type=windows 9046 shrext_cmds=".dll" 9047 need_version=no 9048 need_lib_prefix=no 9049 9050 case $GCC,$host_os in 9051 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9052 library_names_spec='$libname.dll.a' 9053 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9054 postinstall_cmds='base_file=`basename \${file}`~ 9055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9056 dldir=$destdir/`dirname \$dlpath`~ 9057 test -d \$dldir || mkdir -p \$dldir~ 9058 $install_prog $dir/$dlname \$dldir/$dlname~ 9059 chmod a+x \$dldir/$dlname~ 9060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9062 fi' 9063 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9064 dlpath=$dir/\$dldll~ 9065 $RM \$dlpath' 9066 shlibpath_overrides_runpath=yes 9067 9068 case $host_os in 9069 cygwin*) 9070 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9071 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 9072 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}' 9073 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9074 ;; 9075 mingw* | cegcc*) 9076 # MinGW DLLs use traditional 'lib' prefix 9077 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 9078 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}' 9079 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9080 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9081 # It is most probably a Windows format PATH printed by 9082 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9083 # path with ; separators, and with drive letters. We can handle the 9084 # drive letters (cygwin fileutils understands them), so leave them, 9085 # especially as we might pass files found there to a mingw objdump, 9086 # which wouldn't understand a cygwinified path. Ahh. 9087 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9088 else 9089 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9090 fi 9091 ;; 9092 pw32*) 9093 # pw32 DLLs use 'pw' prefix rather than 'lib' 9094 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9095 ;; 9096 esac 9097 ;; 9098 9099 *) 9100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9101 ;; 9102 esac 9103 dynamic_linker='Win32 ld.exe' 9104 # FIXME: first we should search . and the directory the executable is in 9105 shlibpath_var=PATH 9106 ;; 9107 9108darwin* | rhapsody*) 9109 dynamic_linker="$host_os dyld" 9110 version_type=darwin 9111 need_lib_prefix=no 9112 need_version=no 9113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9114 soname_spec='${libname}${release}${major}$shared_ext' 9115 shlibpath_overrides_runpath=yes 9116 shlibpath_var=DYLD_LIBRARY_PATH 9117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9118 9119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9120 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9121 ;; 9122 9123dgux*) 9124 version_type=linux 9125 need_lib_prefix=no 9126 need_version=no 9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9128 soname_spec='${libname}${release}${shared_ext}$major' 9129 shlibpath_var=LD_LIBRARY_PATH 9130 ;; 9131 9132freebsd1*) 9133 dynamic_linker=no 9134 ;; 9135 9136freebsd* | dragonfly*) 9137 # DragonFly does not have aout. When/if they implement a new 9138 # versioning mechanism, adjust this. 9139 if test -x /usr/bin/objformat; then 9140 objformat=`/usr/bin/objformat` 9141 else 9142 case $host_os in 9143 freebsd[123]*) objformat=aout ;; 9144 *) objformat=elf ;; 9145 esac 9146 fi 9147 version_type=freebsd-$objformat 9148 case $version_type in 9149 freebsd-elf*) 9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9151 need_version=no 9152 need_lib_prefix=no 9153 ;; 9154 freebsd-*) 9155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9156 need_version=yes 9157 ;; 9158 esac 9159 shlibpath_var=LD_LIBRARY_PATH 9160 case $host_os in 9161 freebsd2*) 9162 shlibpath_overrides_runpath=yes 9163 ;; 9164 freebsd3.[01]* | freebsdelf3.[01]*) 9165 shlibpath_overrides_runpath=yes 9166 hardcode_into_libs=yes 9167 ;; 9168 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9169 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9170 shlibpath_overrides_runpath=no 9171 hardcode_into_libs=yes 9172 ;; 9173 *) # from 4.6 on, and DragonFly 9174 shlibpath_overrides_runpath=yes 9175 hardcode_into_libs=yes 9176 ;; 9177 esac 9178 ;; 9179 9180gnu*) 9181 version_type=linux 9182 need_lib_prefix=no 9183 need_version=no 9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9185 soname_spec='${libname}${release}${shared_ext}$major' 9186 shlibpath_var=LD_LIBRARY_PATH 9187 hardcode_into_libs=yes 9188 ;; 9189 9190hpux9* | hpux10* | hpux11*) 9191 # Give a soname corresponding to the major version so that dld.sl refuses to 9192 # link against other versions. 9193 version_type=sunos 9194 need_lib_prefix=no 9195 need_version=no 9196 case $host_cpu in 9197 ia64*) 9198 shrext_cmds='.so' 9199 hardcode_into_libs=yes 9200 dynamic_linker="$host_os dld.so" 9201 shlibpath_var=LD_LIBRARY_PATH 9202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9204 soname_spec='${libname}${release}${shared_ext}$major' 9205 if test "X$HPUX_IA64_MODE" = X32; then 9206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9207 else 9208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9209 fi 9210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9211 ;; 9212 hppa*64*) 9213 shrext_cmds='.sl' 9214 hardcode_into_libs=yes 9215 dynamic_linker="$host_os dld.sl" 9216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9219 soname_spec='${libname}${release}${shared_ext}$major' 9220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9222 ;; 9223 *) 9224 shrext_cmds='.sl' 9225 dynamic_linker="$host_os dld.sl" 9226 shlibpath_var=SHLIB_PATH 9227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9229 soname_spec='${libname}${release}${shared_ext}$major' 9230 ;; 9231 esac 9232 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9233 postinstall_cmds='chmod 555 $lib' 9234 ;; 9235 9236interix[3-9]*) 9237 version_type=linux 9238 need_lib_prefix=no 9239 need_version=no 9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9241 soname_spec='${libname}${release}${shared_ext}$major' 9242 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9243 shlibpath_var=LD_LIBRARY_PATH 9244 shlibpath_overrides_runpath=no 9245 hardcode_into_libs=yes 9246 ;; 9247 9248irix5* | irix6* | nonstopux*) 9249 case $host_os in 9250 nonstopux*) version_type=nonstopux ;; 9251 *) 9252 if test "$lt_cv_prog_gnu_ld" = yes; then 9253 version_type=linux 9254 else 9255 version_type=irix 9256 fi ;; 9257 esac 9258 need_lib_prefix=no 9259 need_version=no 9260 soname_spec='${libname}${release}${shared_ext}$major' 9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9262 case $host_os in 9263 irix5* | nonstopux*) 9264 libsuff= shlibsuff= 9265 ;; 9266 *) 9267 case $LD in # libtool.m4 will add one of these switches to LD 9268 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9269 libsuff= shlibsuff= libmagic=32-bit;; 9270 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9271 libsuff=32 shlibsuff=N32 libmagic=N32;; 9272 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9273 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9274 *) libsuff= shlibsuff= libmagic=never-match;; 9275 esac 9276 ;; 9277 esac 9278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9279 shlibpath_overrides_runpath=no 9280 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9281 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9282 hardcode_into_libs=yes 9283 ;; 9284 9285# No shared lib support for Linux oldld, aout, or coff. 9286linux*oldld* | linux*aout* | linux*coff*) 9287 dynamic_linker=no 9288 ;; 9289 9290# This must be Linux ELF. 9291linux* | k*bsd*-gnu) 9292 version_type=linux 9293 need_lib_prefix=no 9294 need_version=no 9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9296 soname_spec='${libname}${release}${shared_ext}$major' 9297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9298 shlibpath_var=LD_LIBRARY_PATH 9299 shlibpath_overrides_runpath=no 9300 # Some binutils ld are patched to set DT_RUNPATH 9301 save_LDFLAGS=$LDFLAGS 9302 save_libdir=$libdir 9303 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9304 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9306/* end confdefs.h. */ 9307 9308int 9309main () 9310{ 9311 9312 ; 9313 return 0; 9314} 9315_ACEOF 9316if ac_fn_c_try_link "$LINENO"; then : 9317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9318 shlibpath_overrides_runpath=yes 9319fi 9320fi 9321rm -f core conftest.err conftest.$ac_objext \ 9322 conftest$ac_exeext conftest.$ac_ext 9323 LDFLAGS=$save_LDFLAGS 9324 libdir=$save_libdir 9325 9326 # This implies no fast_install, which is unacceptable. 9327 # Some rework will be needed to allow for fast_install 9328 # before this can be enabled. 9329 hardcode_into_libs=yes 9330 9331 # Append ld.so.conf contents to the search path 9332 if test -f /etc/ld.so.conf; then 9333 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' ' '` 9334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9335 fi 9336 9337 # We used to test for /lib/ld.so.1 and disable shared libraries on 9338 # powerpc, because MkLinux only supported shared libraries with the 9339 # GNU dynamic linker. Since this was broken with cross compilers, 9340 # most powerpc-linux boxes support dynamic linking these days and 9341 # people can always --disable-shared, the test was removed, and we 9342 # assume the GNU/Linux dynamic linker is in use. 9343 dynamic_linker='GNU/Linux ld.so' 9344 ;; 9345 9346netbsd*) 9347 version_type=sunos 9348 need_lib_prefix=no 9349 need_version=no 9350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9353 dynamic_linker='NetBSD (a.out) ld.so' 9354 else 9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9356 soname_spec='${libname}${release}${shared_ext}$major' 9357 dynamic_linker='NetBSD ld.elf_so' 9358 fi 9359 shlibpath_var=LD_LIBRARY_PATH 9360 shlibpath_overrides_runpath=yes 9361 hardcode_into_libs=yes 9362 ;; 9363 9364newsos6) 9365 version_type=linux 9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9367 shlibpath_var=LD_LIBRARY_PATH 9368 shlibpath_overrides_runpath=yes 9369 ;; 9370 9371*nto* | *qnx*) 9372 version_type=qnx 9373 need_lib_prefix=no 9374 need_version=no 9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9376 soname_spec='${libname}${release}${shared_ext}$major' 9377 shlibpath_var=LD_LIBRARY_PATH 9378 shlibpath_overrides_runpath=no 9379 hardcode_into_libs=yes 9380 dynamic_linker='ldqnx.so' 9381 ;; 9382 9383openbsd*) 9384 version_type=sunos 9385 sys_lib_dlsearch_path_spec="/usr/lib" 9386 need_lib_prefix=no 9387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9388 case $host_os in 9389 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9390 *) need_version=no ;; 9391 esac 9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9394 shlibpath_var=LD_LIBRARY_PATH 9395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9396 case $host_os in 9397 openbsd2.[89] | openbsd2.[89].*) 9398 shlibpath_overrides_runpath=no 9399 ;; 9400 *) 9401 shlibpath_overrides_runpath=yes 9402 ;; 9403 esac 9404 else 9405 shlibpath_overrides_runpath=yes 9406 fi 9407 ;; 9408 9409os2*) 9410 libname_spec='$name' 9411 shrext_cmds=".dll" 9412 need_lib_prefix=no 9413 library_names_spec='$libname${shared_ext} $libname.a' 9414 dynamic_linker='OS/2 ld.exe' 9415 shlibpath_var=LIBPATH 9416 ;; 9417 9418osf3* | osf4* | osf5*) 9419 version_type=osf 9420 need_lib_prefix=no 9421 need_version=no 9422 soname_spec='${libname}${release}${shared_ext}$major' 9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9424 shlibpath_var=LD_LIBRARY_PATH 9425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9427 ;; 9428 9429rdos*) 9430 dynamic_linker=no 9431 ;; 9432 9433solaris*) 9434 version_type=linux 9435 need_lib_prefix=no 9436 need_version=no 9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9438 soname_spec='${libname}${release}${shared_ext}$major' 9439 shlibpath_var=LD_LIBRARY_PATH 9440 shlibpath_overrides_runpath=yes 9441 hardcode_into_libs=yes 9442 # ldd complains unless libraries are executable 9443 postinstall_cmds='chmod +x $lib' 9444 ;; 9445 9446sunos4*) 9447 version_type=sunos 9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9450 shlibpath_var=LD_LIBRARY_PATH 9451 shlibpath_overrides_runpath=yes 9452 if test "$with_gnu_ld" = yes; then 9453 need_lib_prefix=no 9454 fi 9455 need_version=yes 9456 ;; 9457 9458sysv4 | sysv4.3*) 9459 version_type=linux 9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9461 soname_spec='${libname}${release}${shared_ext}$major' 9462 shlibpath_var=LD_LIBRARY_PATH 9463 case $host_vendor in 9464 sni) 9465 shlibpath_overrides_runpath=no 9466 need_lib_prefix=no 9467 runpath_var=LD_RUN_PATH 9468 ;; 9469 siemens) 9470 need_lib_prefix=no 9471 ;; 9472 motorola) 9473 need_lib_prefix=no 9474 need_version=no 9475 shlibpath_overrides_runpath=no 9476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9477 ;; 9478 esac 9479 ;; 9480 9481sysv4*MP*) 9482 if test -d /usr/nec ;then 9483 version_type=linux 9484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9485 soname_spec='$libname${shared_ext}.$major' 9486 shlibpath_var=LD_LIBRARY_PATH 9487 fi 9488 ;; 9489 9490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9491 version_type=freebsd-elf 9492 need_lib_prefix=no 9493 need_version=no 9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9495 soname_spec='${libname}${release}${shared_ext}$major' 9496 shlibpath_var=LD_LIBRARY_PATH 9497 shlibpath_overrides_runpath=yes 9498 hardcode_into_libs=yes 9499 if test "$with_gnu_ld" = yes; then 9500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9501 else 9502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9503 case $host_os in 9504 sco3.2v5*) 9505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9506 ;; 9507 esac 9508 fi 9509 sys_lib_dlsearch_path_spec='/usr/lib' 9510 ;; 9511 9512tpf*) 9513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9514 version_type=linux 9515 need_lib_prefix=no 9516 need_version=no 9517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9518 shlibpath_var=LD_LIBRARY_PATH 9519 shlibpath_overrides_runpath=no 9520 hardcode_into_libs=yes 9521 ;; 9522 9523uts4*) 9524 version_type=linux 9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9526 soname_spec='${libname}${release}${shared_ext}$major' 9527 shlibpath_var=LD_LIBRARY_PATH 9528 ;; 9529 9530*) 9531 dynamic_linker=no 9532 ;; 9533esac 9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9535$as_echo "$dynamic_linker" >&6; } 9536test "$dynamic_linker" = no && can_build_shared=no 9537 9538variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9539if test "$GCC" = yes; then 9540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9541fi 9542 9543if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9544 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9545fi 9546if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9548fi 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9637$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9638hardcode_action= 9639if test -n "$hardcode_libdir_flag_spec" || 9640 test -n "$runpath_var" || 9641 test "X$hardcode_automatic" = "Xyes" ; then 9642 9643 # We can hardcode non-existent directories. 9644 if test "$hardcode_direct" != no && 9645 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9646 # have to relink, otherwise we might link with an installed library 9647 # when we should be linking with a yet-to-be-installed one 9648 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9649 test "$hardcode_minus_L" != no; then 9650 # Linking always hardcodes the temporary library directory. 9651 hardcode_action=relink 9652 else 9653 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9654 hardcode_action=immediate 9655 fi 9656else 9657 # We cannot hardcode anything, or else we can only hardcode existing 9658 # directories. 9659 hardcode_action=unsupported 9660fi 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9662$as_echo "$hardcode_action" >&6; } 9663 9664if test "$hardcode_action" = relink || 9665 test "$inherit_rpath" = yes; then 9666 # Fast installation is not supported 9667 enable_fast_install=no 9668elif test "$shlibpath_overrides_runpath" = yes || 9669 test "$enable_shared" = no; then 9670 # Fast installation is not necessary 9671 enable_fast_install=needless 9672fi 9673 9674 9675 9676 9677 9678 9679 if test "x$enable_dlopen" != xyes; then 9680 enable_dlopen=unknown 9681 enable_dlopen_self=unknown 9682 enable_dlopen_self_static=unknown 9683else 9684 lt_cv_dlopen=no 9685 lt_cv_dlopen_libs= 9686 9687 case $host_os in 9688 beos*) 9689 lt_cv_dlopen="load_add_on" 9690 lt_cv_dlopen_libs= 9691 lt_cv_dlopen_self=yes 9692 ;; 9693 9694 mingw* | pw32* | cegcc*) 9695 lt_cv_dlopen="LoadLibrary" 9696 lt_cv_dlopen_libs= 9697 ;; 9698 9699 cygwin*) 9700 lt_cv_dlopen="dlopen" 9701 lt_cv_dlopen_libs= 9702 ;; 9703 9704 darwin*) 9705 # if libdl is installed we need to link against it 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9707$as_echo_n "checking for dlopen in -ldl... " >&6; } 9708if ${ac_cv_lib_dl_dlopen+:} false; then : 9709 $as_echo_n "(cached) " >&6 9710else 9711 ac_check_lib_save_LIBS=$LIBS 9712LIBS="-ldl $LIBS" 9713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714/* end confdefs.h. */ 9715 9716/* Override any GCC internal prototype to avoid an error. 9717 Use char because int might match the return type of a GCC 9718 builtin and then its argument prototype would still apply. */ 9719#ifdef __cplusplus 9720extern "C" 9721#endif 9722char dlopen (); 9723int 9724main () 9725{ 9726return dlopen (); 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731if ac_fn_c_try_link "$LINENO"; then : 9732 ac_cv_lib_dl_dlopen=yes 9733else 9734 ac_cv_lib_dl_dlopen=no 9735fi 9736rm -f core conftest.err conftest.$ac_objext \ 9737 conftest$ac_exeext conftest.$ac_ext 9738LIBS=$ac_check_lib_save_LIBS 9739fi 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9741$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9742if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9744else 9745 9746 lt_cv_dlopen="dyld" 9747 lt_cv_dlopen_libs= 9748 lt_cv_dlopen_self=yes 9749 9750fi 9751 9752 ;; 9753 9754 *) 9755 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 9756if test "x$ac_cv_func_shl_load" = xyes; then : 9757 lt_cv_dlopen="shl_load" 9758else 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9760$as_echo_n "checking for shl_load in -ldld... " >&6; } 9761if ${ac_cv_lib_dld_shl_load+:} 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 shl_load (); 9776int 9777main () 9778{ 9779return shl_load (); 9780 ; 9781 return 0; 9782} 9783_ACEOF 9784if ac_fn_c_try_link "$LINENO"; then : 9785 ac_cv_lib_dld_shl_load=yes 9786else 9787 ac_cv_lib_dld_shl_load=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_shl_load" >&5 9794$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9795if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9796 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9797else 9798 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 9799if test "x$ac_cv_func_dlopen" = xyes; then : 9800 lt_cv_dlopen="dlopen" 9801else 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9803$as_echo_n "checking for dlopen in -ldl... " >&6; } 9804if ${ac_cv_lib_dl_dlopen+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806else 9807 ac_check_lib_save_LIBS=$LIBS 9808LIBS="-ldl $LIBS" 9809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9810/* end confdefs.h. */ 9811 9812/* Override any GCC internal prototype to avoid an error. 9813 Use char because int might match the return type of a GCC 9814 builtin and then its argument prototype would still apply. */ 9815#ifdef __cplusplus 9816extern "C" 9817#endif 9818char dlopen (); 9819int 9820main () 9821{ 9822return dlopen (); 9823 ; 9824 return 0; 9825} 9826_ACEOF 9827if ac_fn_c_try_link "$LINENO"; then : 9828 ac_cv_lib_dl_dlopen=yes 9829else 9830 ac_cv_lib_dl_dlopen=no 9831fi 9832rm -f core conftest.err conftest.$ac_objext \ 9833 conftest$ac_exeext conftest.$ac_ext 9834LIBS=$ac_check_lib_save_LIBS 9835fi 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9837$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9838if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9839 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9840else 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 9842$as_echo_n "checking for dlopen in -lsvld... " >&6; } 9843if ${ac_cv_lib_svld_dlopen+:} false; then : 9844 $as_echo_n "(cached) " >&6 9845else 9846 ac_check_lib_save_LIBS=$LIBS 9847LIBS="-lsvld $LIBS" 9848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9849/* end confdefs.h. */ 9850 9851/* Override any GCC internal prototype to avoid an error. 9852 Use char because int might match the return type of a GCC 9853 builtin and then its argument prototype would still apply. */ 9854#ifdef __cplusplus 9855extern "C" 9856#endif 9857char dlopen (); 9858int 9859main () 9860{ 9861return dlopen (); 9862 ; 9863 return 0; 9864} 9865_ACEOF 9866if ac_fn_c_try_link "$LINENO"; then : 9867 ac_cv_lib_svld_dlopen=yes 9868else 9869 ac_cv_lib_svld_dlopen=no 9870fi 9871rm -f core conftest.err conftest.$ac_objext \ 9872 conftest$ac_exeext conftest.$ac_ext 9873LIBS=$ac_check_lib_save_LIBS 9874fi 9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 9876$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 9877if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 9878 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9879else 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 9881$as_echo_n "checking for dld_link in -ldld... " >&6; } 9882if ${ac_cv_lib_dld_dld_link+:} false; then : 9883 $as_echo_n "(cached) " >&6 9884else 9885 ac_check_lib_save_LIBS=$LIBS 9886LIBS="-ldld $LIBS" 9887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9888/* end confdefs.h. */ 9889 9890/* Override any GCC internal prototype to avoid an error. 9891 Use char because int might match the return type of a GCC 9892 builtin and then its argument prototype would still apply. */ 9893#ifdef __cplusplus 9894extern "C" 9895#endif 9896char dld_link (); 9897int 9898main () 9899{ 9900return dld_link (); 9901 ; 9902 return 0; 9903} 9904_ACEOF 9905if ac_fn_c_try_link "$LINENO"; then : 9906 ac_cv_lib_dld_dld_link=yes 9907else 9908 ac_cv_lib_dld_dld_link=no 9909fi 9910rm -f core conftest.err conftest.$ac_objext \ 9911 conftest$ac_exeext conftest.$ac_ext 9912LIBS=$ac_check_lib_save_LIBS 9913fi 9914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 9915$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 9916if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 9917 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 9918fi 9919 9920 9921fi 9922 9923 9924fi 9925 9926 9927fi 9928 9929 9930fi 9931 9932 9933fi 9934 9935 ;; 9936 esac 9937 9938 if test "x$lt_cv_dlopen" != xno; then 9939 enable_dlopen=yes 9940 else 9941 enable_dlopen=no 9942 fi 9943 9944 case $lt_cv_dlopen in 9945 dlopen) 9946 save_CPPFLAGS="$CPPFLAGS" 9947 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9948 9949 save_LDFLAGS="$LDFLAGS" 9950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9951 9952 save_LIBS="$LIBS" 9953 LIBS="$lt_cv_dlopen_libs $LIBS" 9954 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 9956$as_echo_n "checking whether a program can dlopen itself... " >&6; } 9957if ${lt_cv_dlopen_self+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959else 9960 if test "$cross_compiling" = yes; then : 9961 lt_cv_dlopen_self=cross 9962else 9963 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9964 lt_status=$lt_dlunknown 9965 cat > conftest.$ac_ext <<_LT_EOF 9966#line 9966 "configure" 9967#include "confdefs.h" 9968 9969#if HAVE_DLFCN_H 9970#include <dlfcn.h> 9971#endif 9972 9973#include <stdio.h> 9974 9975#ifdef RTLD_GLOBAL 9976# define LT_DLGLOBAL RTLD_GLOBAL 9977#else 9978# ifdef DL_GLOBAL 9979# define LT_DLGLOBAL DL_GLOBAL 9980# else 9981# define LT_DLGLOBAL 0 9982# endif 9983#endif 9984 9985/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9986 find out it does not work in some platform. */ 9987#ifndef LT_DLLAZY_OR_NOW 9988# ifdef RTLD_LAZY 9989# define LT_DLLAZY_OR_NOW RTLD_LAZY 9990# else 9991# ifdef DL_LAZY 9992# define LT_DLLAZY_OR_NOW DL_LAZY 9993# else 9994# ifdef RTLD_NOW 9995# define LT_DLLAZY_OR_NOW RTLD_NOW 9996# else 9997# ifdef DL_NOW 9998# define LT_DLLAZY_OR_NOW DL_NOW 9999# else 10000# define LT_DLLAZY_OR_NOW 0 10001# endif 10002# endif 10003# endif 10004# endif 10005#endif 10006 10007void fnord() { int i=42;} 10008int main () 10009{ 10010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10011 int status = $lt_dlunknown; 10012 10013 if (self) 10014 { 10015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10017 /* dlclose (self); */ 10018 } 10019 else 10020 puts (dlerror ()); 10021 10022 return status; 10023} 10024_LT_EOF 10025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10026 (eval $ac_link) 2>&5 10027 ac_status=$? 10028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10029 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10030 (./conftest; exit; ) >&5 2>/dev/null 10031 lt_status=$? 10032 case x$lt_status in 10033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10035 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10036 esac 10037 else : 10038 # compilation failed 10039 lt_cv_dlopen_self=no 10040 fi 10041fi 10042rm -fr conftest* 10043 10044 10045fi 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10047$as_echo "$lt_cv_dlopen_self" >&6; } 10048 10049 if test "x$lt_cv_dlopen_self" = xyes; then 10050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10052$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10053if ${lt_cv_dlopen_self_static+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 if test "$cross_compiling" = yes; then : 10057 lt_cv_dlopen_self_static=cross 10058else 10059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10060 lt_status=$lt_dlunknown 10061 cat > conftest.$ac_ext <<_LT_EOF 10062#line 10062 "configure" 10063#include "confdefs.h" 10064 10065#if HAVE_DLFCN_H 10066#include <dlfcn.h> 10067#endif 10068 10069#include <stdio.h> 10070 10071#ifdef RTLD_GLOBAL 10072# define LT_DLGLOBAL RTLD_GLOBAL 10073#else 10074# ifdef DL_GLOBAL 10075# define LT_DLGLOBAL DL_GLOBAL 10076# else 10077# define LT_DLGLOBAL 0 10078# endif 10079#endif 10080 10081/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10082 find out it does not work in some platform. */ 10083#ifndef LT_DLLAZY_OR_NOW 10084# ifdef RTLD_LAZY 10085# define LT_DLLAZY_OR_NOW RTLD_LAZY 10086# else 10087# ifdef DL_LAZY 10088# define LT_DLLAZY_OR_NOW DL_LAZY 10089# else 10090# ifdef RTLD_NOW 10091# define LT_DLLAZY_OR_NOW RTLD_NOW 10092# else 10093# ifdef DL_NOW 10094# define LT_DLLAZY_OR_NOW DL_NOW 10095# else 10096# define LT_DLLAZY_OR_NOW 0 10097# endif 10098# endif 10099# endif 10100# endif 10101#endif 10102 10103void fnord() { int i=42;} 10104int main () 10105{ 10106 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10107 int status = $lt_dlunknown; 10108 10109 if (self) 10110 { 10111 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10112 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10113 /* dlclose (self); */ 10114 } 10115 else 10116 puts (dlerror ()); 10117 10118 return status; 10119} 10120_LT_EOF 10121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10122 (eval $ac_link) 2>&5 10123 ac_status=$? 10124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10125 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10126 (./conftest; exit; ) >&5 2>/dev/null 10127 lt_status=$? 10128 case x$lt_status in 10129 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10131 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10132 esac 10133 else : 10134 # compilation failed 10135 lt_cv_dlopen_self_static=no 10136 fi 10137fi 10138rm -fr conftest* 10139 10140 10141fi 10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10143$as_echo "$lt_cv_dlopen_self_static" >&6; } 10144 fi 10145 10146 CPPFLAGS="$save_CPPFLAGS" 10147 LDFLAGS="$save_LDFLAGS" 10148 LIBS="$save_LIBS" 10149 ;; 10150 esac 10151 10152 case $lt_cv_dlopen_self in 10153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10154 *) enable_dlopen_self=unknown ;; 10155 esac 10156 10157 case $lt_cv_dlopen_self_static in 10158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10159 *) enable_dlopen_self_static=unknown ;; 10160 esac 10161fi 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179striplib= 10180old_striplib= 10181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10182$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10183if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10184 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10185 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10187$as_echo "yes" >&6; } 10188else 10189# FIXME - insert some real tests, host_os isn't really good enough 10190 case $host_os in 10191 darwin*) 10192 if test -n "$STRIP" ; then 10193 striplib="$STRIP -x" 10194 old_striplib="$STRIP -S" 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10196$as_echo "yes" >&6; } 10197 else 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10199$as_echo "no" >&6; } 10200 fi 10201 ;; 10202 *) 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10204$as_echo "no" >&6; } 10205 ;; 10206 esac 10207fi 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 # Report which library types will actually be built 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10222$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10224$as_echo "$can_build_shared" >&6; } 10225 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10227$as_echo_n "checking whether to build shared libraries... " >&6; } 10228 test "$can_build_shared" = "no" && enable_shared=no 10229 10230 # On AIX, shared libraries and static libraries use the same namespace, and 10231 # are all built from PIC. 10232 case $host_os in 10233 aix3*) 10234 test "$enable_shared" = yes && enable_static=no 10235 if test -n "$RANLIB"; then 10236 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10237 postinstall_cmds='$RANLIB $lib' 10238 fi 10239 ;; 10240 10241 aix[4-9]*) 10242 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10243 test "$enable_shared" = yes && enable_static=no 10244 fi 10245 ;; 10246 esac 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10248$as_echo "$enable_shared" >&6; } 10249 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10251$as_echo_n "checking whether to build static libraries... " >&6; } 10252 # Make sure either enable_shared or enable_static is yes. 10253 test "$enable_shared" = yes || enable_static=yes 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10255$as_echo "$enable_static" >&6; } 10256 10257 10258 10259 10260fi 10261ac_ext=c 10262ac_cpp='$CPP $CPPFLAGS' 10263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10265ac_compiler_gnu=$ac_cv_c_compiler_gnu 10266 10267CC="$lt_save_CC" 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 ac_config_commands="$ac_config_commands libtool" 10282 10283 10284 10285 10286# Only expand once: 10287 10288 10289 10290LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION 10291LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE` 10292LT_REVISION=$INTERFACE_AGE 10293LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE` 10294 10295 10296 10297 10298 10299 10300 10301 10302am__api_version='1.16' 10303 10304# Find a good install program. We prefer a C program (faster), 10305# so one script is as good as another. But avoid the broken or 10306# incompatible versions: 10307# SysV /etc/install, /usr/sbin/install 10308# SunOS /usr/etc/install 10309# IRIX /sbin/install 10310# AIX /bin/install 10311# AmigaOS /C/install, which installs bootblocks on floppy discs 10312# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10313# AFS /usr/afsws/bin/install, which mishandles nonexistent args 10314# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10315# OS/2's system install, which has a completely different semantic 10316# ./install, which can be erroneously created by make from ./install.sh. 10317# Reject install programs that cannot install multiple files. 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 10319$as_echo_n "checking for a BSD-compatible install... " >&6; } 10320if test -z "$INSTALL"; then 10321if ${ac_cv_path_install+:} false; then : 10322 $as_echo_n "(cached) " >&6 10323else 10324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10325for as_dir in $PATH 10326do 10327 IFS=$as_save_IFS 10328 test -z "$as_dir" && as_dir=. 10329 # Account for people who put trailing slashes in PATH elements. 10330case $as_dir/ in #(( 10331 ./ | .// | /[cC]/* | \ 10332 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10333 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 10334 /usr/ucb/* ) ;; 10335 *) 10336 # OSF1 and SCO ODT 3.0 have their own names for install. 10337 # Don't use installbsd from OSF since it installs stuff as root 10338 # by default. 10339 for ac_prog in ginstall scoinst install; do 10340 for ac_exec_ext in '' $ac_executable_extensions; do 10341 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 10342 if test $ac_prog = install && 10343 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10344 # AIX install. It has an incompatible calling convention. 10345 : 10346 elif test $ac_prog = install && 10347 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10348 # program-specific install script used by HP pwplus--don't use. 10349 : 10350 else 10351 rm -rf conftest.one conftest.two conftest.dir 10352 echo one > conftest.one 10353 echo two > conftest.two 10354 mkdir conftest.dir 10355 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 10356 test -s conftest.one && test -s conftest.two && 10357 test -s conftest.dir/conftest.one && 10358 test -s conftest.dir/conftest.two 10359 then 10360 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10361 break 3 10362 fi 10363 fi 10364 fi 10365 done 10366 done 10367 ;; 10368esac 10369 10370 done 10371IFS=$as_save_IFS 10372 10373rm -rf conftest.one conftest.two conftest.dir 10374 10375fi 10376 if test "${ac_cv_path_install+set}" = set; then 10377 INSTALL=$ac_cv_path_install 10378 else 10379 # As a last resort, use the slow shell script. Don't cache a 10380 # value for INSTALL within a source directory, because that will 10381 # break other packages using the cache if that directory is 10382 # removed, or if the value is a relative name. 10383 INSTALL=$ac_install_sh 10384 fi 10385fi 10386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 10387$as_echo "$INSTALL" >&6; } 10388 10389# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10390# It thinks the first close brace ends the variable substitution. 10391test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10392 10393test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10394 10395test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10396 10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10398$as_echo_n "checking whether build environment is sane... " >&6; } 10399# Reject unsafe characters in $srcdir or the absolute working directory 10400# name. Accept space and tab only in the latter. 10401am_lf=' 10402' 10403case `pwd` in 10404 *[\\\"\#\$\&\'\`$am_lf]*) 10405 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10406esac 10407case $srcdir in 10408 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10409 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10410esac 10411 10412# Do 'set' in a subshell so we don't clobber the current shell's 10413# arguments. Must try -L first in case configure is actually a 10414# symlink; some systems play weird games with the mod time of symlinks 10415# (eg FreeBSD returns the mod time of the symlink's containing 10416# directory). 10417if ( 10418 am_has_slept=no 10419 for am_try in 1 2; do 10420 echo "timestamp, slept: $am_has_slept" > conftest.file 10421 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10422 if test "$*" = "X"; then 10423 # -L didn't work. 10424 set X `ls -t "$srcdir/configure" conftest.file` 10425 fi 10426 if test "$*" != "X $srcdir/configure conftest.file" \ 10427 && test "$*" != "X conftest.file $srcdir/configure"; then 10428 10429 # If neither matched, then we have a broken ls. This can happen 10430 # if, for instance, CONFIG_SHELL is bash and it inherits a 10431 # broken ls alias from the environment. This has actually 10432 # happened. Such a system could not be considered "sane". 10433 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10434 alias in your environment" "$LINENO" 5 10435 fi 10436 if test "$2" = conftest.file || test $am_try -eq 2; then 10437 break 10438 fi 10439 # Just in case. 10440 sleep 1 10441 am_has_slept=yes 10442 done 10443 test "$2" = conftest.file 10444 ) 10445then 10446 # Ok. 10447 : 10448else 10449 as_fn_error $? "newly created file is older than distributed files! 10450Check your system clock" "$LINENO" 5 10451fi 10452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10453$as_echo "yes" >&6; } 10454# If we didn't sleep, we still need to ensure time stamps of config.status and 10455# generated files are strictly newer. 10456am_sleep_pid= 10457if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10458 ( sleep 1 ) & 10459 am_sleep_pid=$! 10460fi 10461 10462rm -f conftest.file 10463 10464test "$program_prefix" != NONE && 10465 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10466# Use a double $ so make ignores it. 10467test "$program_suffix" != NONE && 10468 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10469# Double any \ or $. 10470# By default was `s,x,x', remove it if useless. 10471ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10472program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 10473 10474if test x"${MISSING+set}" != xset; then 10475 case $am_aux_dir in 10476 *\ * | *\ *) 10477 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 10478 *) 10479 MISSING="\${SHELL} $am_aux_dir/missing" ;; 10480 esac 10481fi 10482# Use eval to expand $SHELL 10483if eval "$MISSING --is-lightweight"; then 10484 am_missing_run="$MISSING " 10485else 10486 am_missing_run= 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10488$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10489fi 10490 10491if test x"${install_sh+set}" != xset; then 10492 case $am_aux_dir in 10493 *\ * | *\ *) 10494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10495 *) 10496 install_sh="\${SHELL} $am_aux_dir/install-sh" 10497 esac 10498fi 10499 10500# Installed binaries are usually stripped using 'strip' when the user 10501# run "make install-strip". However 'strip' might not be the right 10502# tool to use in cross-compilation environments, therefore Automake 10503# will honor the 'STRIP' environment variable to overrule this program. 10504if test "$cross_compiling" != no; then 10505 if test -n "$ac_tool_prefix"; then 10506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10507set dummy ${ac_tool_prefix}strip; ac_word=$2 10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10509$as_echo_n "checking for $ac_word... " >&6; } 10510if ${ac_cv_prog_STRIP+:} false; then : 10511 $as_echo_n "(cached) " >&6 10512else 10513 if test -n "$STRIP"; then 10514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10515else 10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10517for as_dir in $PATH 10518do 10519 IFS=$as_save_IFS 10520 test -z "$as_dir" && as_dir=. 10521 for ac_exec_ext in '' $ac_executable_extensions; do 10522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10523 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10525 break 2 10526 fi 10527done 10528 done 10529IFS=$as_save_IFS 10530 10531fi 10532fi 10533STRIP=$ac_cv_prog_STRIP 10534if test -n "$STRIP"; then 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10536$as_echo "$STRIP" >&6; } 10537else 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10539$as_echo "no" >&6; } 10540fi 10541 10542 10543fi 10544if test -z "$ac_cv_prog_STRIP"; then 10545 ac_ct_STRIP=$STRIP 10546 # Extract the first word of "strip", so it can be a program name with args. 10547set dummy strip; ac_word=$2 10548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10549$as_echo_n "checking for $ac_word... " >&6; } 10550if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10551 $as_echo_n "(cached) " >&6 10552else 10553 if test -n "$ac_ct_STRIP"; then 10554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10555else 10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10557for as_dir in $PATH 10558do 10559 IFS=$as_save_IFS 10560 test -z "$as_dir" && as_dir=. 10561 for ac_exec_ext in '' $ac_executable_extensions; do 10562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10563 ac_cv_prog_ac_ct_STRIP="strip" 10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10565 break 2 10566 fi 10567done 10568 done 10569IFS=$as_save_IFS 10570 10571fi 10572fi 10573ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10574if test -n "$ac_ct_STRIP"; then 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10576$as_echo "$ac_ct_STRIP" >&6; } 10577else 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10579$as_echo "no" >&6; } 10580fi 10581 10582 if test "x$ac_ct_STRIP" = x; then 10583 STRIP=":" 10584 else 10585 case $cross_compiling:$ac_tool_warned in 10586yes:) 10587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10589ac_tool_warned=yes ;; 10590esac 10591 STRIP=$ac_ct_STRIP 10592 fi 10593else 10594 STRIP="$ac_cv_prog_STRIP" 10595fi 10596 10597fi 10598INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10599 10600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 10601$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 10602if test -z "$MKDIR_P"; then 10603 if ${ac_cv_path_mkdir+:} false; then : 10604 $as_echo_n "(cached) " >&6 10605else 10606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10607for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10608do 10609 IFS=$as_save_IFS 10610 test -z "$as_dir" && as_dir=. 10611 for ac_prog in mkdir gmkdir; do 10612 for ac_exec_ext in '' $ac_executable_extensions; do 10613 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 10614 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 10615 'mkdir (GNU coreutils) '* | \ 10616 'mkdir (coreutils) '* | \ 10617 'mkdir (fileutils) '4.1*) 10618 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 10619 break 3;; 10620 esac 10621 done 10622 done 10623 done 10624IFS=$as_save_IFS 10625 10626fi 10627 10628 test -d ./--version && rmdir ./--version 10629 if test "${ac_cv_path_mkdir+set}" = set; then 10630 MKDIR_P="$ac_cv_path_mkdir -p" 10631 else 10632 # As a last resort, use the slow shell script. Don't cache a 10633 # value for MKDIR_P within a source directory, because that will 10634 # break other packages using the cache if that directory is 10635 # removed, or if the value is a relative name. 10636 MKDIR_P="$ac_install_sh -d" 10637 fi 10638fi 10639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10640$as_echo "$MKDIR_P" >&6; } 10641 10642for ac_prog in gawk mawk nawk awk 10643do 10644 # Extract the first word of "$ac_prog", so it can be a program name with args. 10645set dummy $ac_prog; ac_word=$2 10646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10647$as_echo_n "checking for $ac_word... " >&6; } 10648if ${ac_cv_prog_AWK+:} false; then : 10649 $as_echo_n "(cached) " >&6 10650else 10651 if test -n "$AWK"; then 10652 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10653else 10654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10655for as_dir in $PATH 10656do 10657 IFS=$as_save_IFS 10658 test -z "$as_dir" && as_dir=. 10659 for ac_exec_ext in '' $ac_executable_extensions; do 10660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10661 ac_cv_prog_AWK="$ac_prog" 10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10663 break 2 10664 fi 10665done 10666 done 10667IFS=$as_save_IFS 10668 10669fi 10670fi 10671AWK=$ac_cv_prog_AWK 10672if test -n "$AWK"; then 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10674$as_echo "$AWK" >&6; } 10675else 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10677$as_echo "no" >&6; } 10678fi 10679 10680 10681 test -n "$AWK" && break 10682done 10683 10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10685$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10686set x ${MAKE-make} 10687ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10688if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 10689 $as_echo_n "(cached) " >&6 10690else 10691 cat >conftest.make <<\_ACEOF 10692SHELL = /bin/sh 10693all: 10694 @echo '@@@%%%=$(MAKE)=@@@%%%' 10695_ACEOF 10696# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10697case `${MAKE-make} -f conftest.make 2>/dev/null` in 10698 *@@@%%%=?*=@@@%%%*) 10699 eval ac_cv_prog_make_${ac_make}_set=yes;; 10700 *) 10701 eval ac_cv_prog_make_${ac_make}_set=no;; 10702esac 10703rm -f conftest.make 10704fi 10705if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10707$as_echo "yes" >&6; } 10708 SET_MAKE= 10709else 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10711$as_echo "no" >&6; } 10712 SET_MAKE="MAKE=${MAKE-make}" 10713fi 10714 10715rm -rf .tst 2>/dev/null 10716mkdir .tst 2>/dev/null 10717if test -d .tst; then 10718 am__leading_dot=. 10719else 10720 am__leading_dot=_ 10721fi 10722rmdir .tst 2>/dev/null 10723 10724DEPDIR="${am__leading_dot}deps" 10725 10726ac_config_commands="$ac_config_commands depfiles" 10727 10728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 10729$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 10730cat > confinc.mk << 'END' 10731am__doit: 10732 @echo this is the am__doit target >confinc.out 10733.PHONY: am__doit 10734END 10735am__include="#" 10736am__quote= 10737# BSD make does it like this. 10738echo '.include "confinc.mk" # ignored' > confmf.BSD 10739# Other make implementations (GNU, Solaris 10, AIX) do it like this. 10740echo 'include confinc.mk # ignored' > confmf.GNU 10741_am_result=no 10742for s in GNU BSD; do 10743 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 10744 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 10745 ac_status=$? 10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10747 (exit $ac_status); } 10748 case $?:`cat confinc.out 2>/dev/null` in #( 10749 '0:this is the am__doit target') : 10750 case $s in #( 10751 BSD) : 10752 am__include='.include' am__quote='"' ;; #( 10753 *) : 10754 am__include='include' am__quote='' ;; 10755esac ;; #( 10756 *) : 10757 ;; 10758esac 10759 if test "$am__include" != "#"; then 10760 _am_result="yes ($s style)" 10761 break 10762 fi 10763done 10764rm -f confinc.* confmf.* 10765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 10766$as_echo "${_am_result}" >&6; } 10767 10768# Check whether --enable-dependency-tracking was given. 10769if test "${enable_dependency_tracking+set}" = set; then : 10770 enableval=$enable_dependency_tracking; 10771fi 10772 10773if test "x$enable_dependency_tracking" != xno; then 10774 am_depcomp="$ac_aux_dir/depcomp" 10775 AMDEPBACKSLASH='\' 10776 am__nodep='_no' 10777fi 10778 if test "x$enable_dependency_tracking" != xno; then 10779 AMDEP_TRUE= 10780 AMDEP_FALSE='#' 10781else 10782 AMDEP_TRUE='#' 10783 AMDEP_FALSE= 10784fi 10785 10786 10787# Check whether --enable-silent-rules was given. 10788if test "${enable_silent_rules+set}" = set; then : 10789 enableval=$enable_silent_rules; 10790fi 10791 10792case $enable_silent_rules in # ((( 10793 yes) AM_DEFAULT_VERBOSITY=0;; 10794 no) AM_DEFAULT_VERBOSITY=1;; 10795 *) AM_DEFAULT_VERBOSITY=1;; 10796esac 10797am_make=${MAKE-make} 10798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10799$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10800if ${am_cv_make_support_nested_variables+:} false; then : 10801 $as_echo_n "(cached) " >&6 10802else 10803 if $as_echo 'TRUE=$(BAR$(V)) 10804BAR0=false 10805BAR1=true 10806V=1 10807am__doit: 10808 @$(TRUE) 10809.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10810 am_cv_make_support_nested_variables=yes 10811else 10812 am_cv_make_support_nested_variables=no 10813fi 10814fi 10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10816$as_echo "$am_cv_make_support_nested_variables" >&6; } 10817if test $am_cv_make_support_nested_variables = yes; then 10818 AM_V='$(V)' 10819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10820else 10821 AM_V=$AM_DEFAULT_VERBOSITY 10822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10823fi 10824AM_BACKSLASH='\' 10825 10826if test "`cd $srcdir && pwd`" != "`pwd`"; then 10827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10828 # is not polluted with repeated "-I." 10829 am__isrc=' -I$(srcdir)' 10830 # test to see if srcdir already configured 10831 if test -f $srcdir/config.status; then 10832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 10833 fi 10834fi 10835 10836# test whether we have cygpath 10837if test -z "$CYGPATH_W"; then 10838 if (cygpath --version) >/dev/null 2>/dev/null; then 10839 CYGPATH_W='cygpath -w' 10840 else 10841 CYGPATH_W=echo 10842 fi 10843fi 10844 10845 10846# Define the identity of the package. 10847 10848 PACKAGE=SDL2_image 10849 VERSION=$VERSION 10850 10851 10852cat >>confdefs.h <<_ACEOF 10853#define PACKAGE "$PACKAGE" 10854_ACEOF 10855 10856 10857cat >>confdefs.h <<_ACEOF 10858#define VERSION "$VERSION" 10859_ACEOF 10860 10861# Some tools Automake needs. 10862 10863ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 10864 10865 10866AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 10867 10868 10869AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 10870 10871 10872AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 10873 10874 10875MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 10876 10877# For better backward compatibility. To be removed once Automake 1.9.x 10878# dies out for good. For more background, see: 10879# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 10880# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 10881mkdir_p='$(MKDIR_P)' 10882 10883# We need awk for the "check" target (and possibly the TAP driver). The 10884# system "awk" is bad on some platforms. 10885# Always define AMTAR for backward compatibility. Yes, it's still used 10886# in the wild :-( We should find a proper way to deprecate it ... 10887AMTAR='$${TAR-tar}' 10888 10889 10890# We'll loop over all known methods to create a tar archive until one works. 10891_am_tools='gnutar pax cpio none' 10892 10893am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 10894 10895 10896 10897 10898 10899depcc="$CC" am_compiler_list= 10900 10901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 10902$as_echo_n "checking dependency style of $depcc... " >&6; } 10903if ${am_cv_CC_dependencies_compiler_type+:} false; then : 10904 $as_echo_n "(cached) " >&6 10905else 10906 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10907 # We make a subdir and do the tests there. Otherwise we can end up 10908 # making bogus files that we don't know about and never remove. For 10909 # instance it was reported that on HP-UX the gcc test will end up 10910 # making a dummy file named 'D' -- because '-MD' means "put the output 10911 # in D". 10912 rm -rf conftest.dir 10913 mkdir conftest.dir 10914 # Copy depcomp to subdir because otherwise we won't find it if we're 10915 # using a relative directory. 10916 cp "$am_depcomp" conftest.dir 10917 cd conftest.dir 10918 # We will build objects and dependencies in a subdirectory because 10919 # it helps to detect inapplicable dependency modes. For instance 10920 # both Tru64's cc and ICC support -MD to output dependencies as a 10921 # side effect of compilation, but ICC will put the dependencies in 10922 # the current directory while Tru64 will put them in the object 10923 # directory. 10924 mkdir sub 10925 10926 am_cv_CC_dependencies_compiler_type=none 10927 if test "$am_compiler_list" = ""; then 10928 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 10929 fi 10930 am__universal=false 10931 case " $depcc " in #( 10932 *\ -arch\ *\ -arch\ *) am__universal=true ;; 10933 esac 10934 10935 for depmode in $am_compiler_list; do 10936 # Setup a source with many dependencies, because some compilers 10937 # like to wrap large dependency lists on column 80 (with \), and 10938 # we should not choose a depcomp mode which is confused by this. 10939 # 10940 # We need to recreate these files for each test, as the compiler may 10941 # overwrite some of them when testing with obscure command lines. 10942 # This happens at least with the AIX C compiler. 10943 : > sub/conftest.c 10944 for i in 1 2 3 4 5 6; do 10945 echo '#include "conftst'$i'.h"' >> sub/conftest.c 10946 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 10947 # Solaris 10 /bin/sh. 10948 echo '/* dummy */' > sub/conftst$i.h 10949 done 10950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 10951 10952 # We check with '-c' and '-o' for the sake of the "dashmstdout" 10953 # mode. It turns out that the SunPro C++ compiler does not properly 10954 # handle '-M -o', and we need to detect this. Also, some Intel 10955 # versions had trouble with output in subdirs. 10956 am__obj=sub/conftest.${OBJEXT-o} 10957 am__minus_obj="-o $am__obj" 10958 case $depmode in 10959 gcc) 10960 # This depmode causes a compiler race in universal mode. 10961 test "$am__universal" = false || continue 10962 ;; 10963 nosideeffect) 10964 # After this tag, mechanisms are not by side-effect, so they'll 10965 # only be used when explicitly requested. 10966 if test "x$enable_dependency_tracking" = xyes; then 10967 continue 10968 else 10969 break 10970 fi 10971 ;; 10972 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 10973 # This compiler won't grok '-c -o', but also, the minuso test has 10974 # not run yet. These depmodes are late enough in the game, and 10975 # so weak that their functioning should not be impacted. 10976 am__obj=conftest.${OBJEXT-o} 10977 am__minus_obj= 10978 ;; 10979 none) break ;; 10980 esac 10981 if depmode=$depmode \ 10982 source=sub/conftest.c object=$am__obj \ 10983 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 10984 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 10985 >/dev/null 2>conftest.err && 10986 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 10987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 10988 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 10989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10990 # icc doesn't choke on unknown options, it will just issue warnings 10991 # or remarks (even with -Werror). So we grep stderr for any message 10992 # that says an option was ignored or not supported. 10993 # When given -MP, icc 7.0 and 7.1 complain thusly: 10994 # icc: Command line warning: ignoring option '-M'; no argument required 10995 # The diagnosis changed in icc 8.0: 10996 # icc: Command line remark: option '-MP' not supported 10997 if (grep 'ignoring option' conftest.err || 10998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 10999 am_cv_CC_dependencies_compiler_type=$depmode 11000 break 11001 fi 11002 fi 11003 done 11004 11005 cd .. 11006 rm -rf conftest.dir 11007else 11008 am_cv_CC_dependencies_compiler_type=none 11009fi 11010 11011fi 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11013$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11014CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11015 11016 if 11017 test "x$enable_dependency_tracking" != xno \ 11018 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11019 am__fastdepCC_TRUE= 11020 am__fastdepCC_FALSE='#' 11021else 11022 am__fastdepCC_TRUE='#' 11023 am__fastdepCC_FALSE= 11024fi 11025 11026 11027 11028# POSIX will say in a future version that running "rm -f" with no argument 11029# is OK; and we want to be able to make that assumption in our Makefile 11030# recipes. So use an aggressive probe to check that the usage we want is 11031# actually supported "in the wild" to an acceptable degree. 11032# See automake bug#10828. 11033# To make any issue more visible, cause the running configure to be aborted 11034# by default if the 'rm' program in use doesn't match our expectations; the 11035# user can still override this though. 11036if rm -f && rm -fr && rm -rf; then : OK; else 11037 cat >&2 <<'END' 11038Oops! 11039 11040Your 'rm' program seems unable to run without file operands specified 11041on the command line, even when the '-f' option is present. This is contrary 11042to the behaviour of most rm programs out there, and not conforming with 11043the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 11044 11045Please tell bug-automake@gnu.org about your system, including the value 11046of your $PATH and any error possibly output before this message. This 11047can help us improve future automake versions. 11048 11049END 11050 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 11051 echo 'Configuration will proceed anyway, since you have set the' >&2 11052 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 11053 echo >&2 11054 else 11055 cat >&2 <<'END' 11056Aborting the configuration process, to ensure you take notice of the issue. 11057 11058You can download and install GNU coreutils to get an 'rm' implementation 11059that behaves properly: <https://www.gnu.org/software/coreutils/>. 11060 11061If you want to complete the configuration process using your problematic 11062'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 11063to "yes", and re-run configure. 11064 11065END 11066 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 11067 fi 11068fi 11069 11070 11071 11072ac_ext=c 11073ac_cpp='$CPP $CPPFLAGS' 11074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11076ac_compiler_gnu=$ac_cv_c_compiler_gnu 11077if test -n "$ac_tool_prefix"; then 11078 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11079set dummy ${ac_tool_prefix}gcc; ac_word=$2 11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11081$as_echo_n "checking for $ac_word... " >&6; } 11082if ${ac_cv_prog_CC+:} false; then : 11083 $as_echo_n "(cached) " >&6 11084else 11085 if test -n "$CC"; then 11086 ac_cv_prog_CC="$CC" # Let the user override the test. 11087else 11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11089for as_dir in $PATH 11090do 11091 IFS=$as_save_IFS 11092 test -z "$as_dir" && as_dir=. 11093 for ac_exec_ext in '' $ac_executable_extensions; do 11094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11095 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11097 break 2 11098 fi 11099done 11100 done 11101IFS=$as_save_IFS 11102 11103fi 11104fi 11105CC=$ac_cv_prog_CC 11106if test -n "$CC"; then 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11108$as_echo "$CC" >&6; } 11109else 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11111$as_echo "no" >&6; } 11112fi 11113 11114 11115fi 11116if test -z "$ac_cv_prog_CC"; then 11117 ac_ct_CC=$CC 11118 # Extract the first word of "gcc", so it can be a program name with args. 11119set dummy gcc; ac_word=$2 11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11121$as_echo_n "checking for $ac_word... " >&6; } 11122if ${ac_cv_prog_ac_ct_CC+:} false; then : 11123 $as_echo_n "(cached) " >&6 11124else 11125 if test -n "$ac_ct_CC"; then 11126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11127else 11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11129for as_dir in $PATH 11130do 11131 IFS=$as_save_IFS 11132 test -z "$as_dir" && as_dir=. 11133 for ac_exec_ext in '' $ac_executable_extensions; do 11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11135 ac_cv_prog_ac_ct_CC="gcc" 11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11137 break 2 11138 fi 11139done 11140 done 11141IFS=$as_save_IFS 11142 11143fi 11144fi 11145ac_ct_CC=$ac_cv_prog_ac_ct_CC 11146if test -n "$ac_ct_CC"; then 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11148$as_echo "$ac_ct_CC" >&6; } 11149else 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11151$as_echo "no" >&6; } 11152fi 11153 11154 if test "x$ac_ct_CC" = x; then 11155 CC="" 11156 else 11157 case $cross_compiling:$ac_tool_warned in 11158yes:) 11159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11161ac_tool_warned=yes ;; 11162esac 11163 CC=$ac_ct_CC 11164 fi 11165else 11166 CC="$ac_cv_prog_CC" 11167fi 11168 11169if test -z "$CC"; then 11170 if test -n "$ac_tool_prefix"; then 11171 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11172set dummy ${ac_tool_prefix}cc; ac_word=$2 11173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11174$as_echo_n "checking for $ac_word... " >&6; } 11175if ${ac_cv_prog_CC+:} false; then : 11176 $as_echo_n "(cached) " >&6 11177else 11178 if test -n "$CC"; then 11179 ac_cv_prog_CC="$CC" # Let the user override the test. 11180else 11181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11182for as_dir in $PATH 11183do 11184 IFS=$as_save_IFS 11185 test -z "$as_dir" && as_dir=. 11186 for ac_exec_ext in '' $ac_executable_extensions; do 11187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11188 ac_cv_prog_CC="${ac_tool_prefix}cc" 11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11190 break 2 11191 fi 11192done 11193 done 11194IFS=$as_save_IFS 11195 11196fi 11197fi 11198CC=$ac_cv_prog_CC 11199if test -n "$CC"; then 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11201$as_echo "$CC" >&6; } 11202else 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11204$as_echo "no" >&6; } 11205fi 11206 11207 11208 fi 11209fi 11210if test -z "$CC"; then 11211 # Extract the first word of "cc", so it can be a program name with args. 11212set dummy cc; ac_word=$2 11213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11214$as_echo_n "checking for $ac_word... " >&6; } 11215if ${ac_cv_prog_CC+:} false; then : 11216 $as_echo_n "(cached) " >&6 11217else 11218 if test -n "$CC"; then 11219 ac_cv_prog_CC="$CC" # Let the user override the test. 11220else 11221 ac_prog_rejected=no 11222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11223for as_dir in $PATH 11224do 11225 IFS=$as_save_IFS 11226 test -z "$as_dir" && as_dir=. 11227 for ac_exec_ext in '' $ac_executable_extensions; do 11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11229 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11230 ac_prog_rejected=yes 11231 continue 11232 fi 11233 ac_cv_prog_CC="cc" 11234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11235 break 2 11236 fi 11237done 11238 done 11239IFS=$as_save_IFS 11240 11241if test $ac_prog_rejected = yes; then 11242 # We found a bogon in the path, so make sure we never use it. 11243 set dummy $ac_cv_prog_CC 11244 shift 11245 if test $# != 0; then 11246 # We chose a different compiler from the bogus one. 11247 # However, it has the same basename, so the bogon will be chosen 11248 # first if we set CC to just the basename; use the full file name. 11249 shift 11250 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11251 fi 11252fi 11253fi 11254fi 11255CC=$ac_cv_prog_CC 11256if test -n "$CC"; then 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11258$as_echo "$CC" >&6; } 11259else 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11261$as_echo "no" >&6; } 11262fi 11263 11264 11265fi 11266if test -z "$CC"; then 11267 if test -n "$ac_tool_prefix"; then 11268 for ac_prog in cl.exe 11269 do 11270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11271set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11273$as_echo_n "checking for $ac_word... " >&6; } 11274if ${ac_cv_prog_CC+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276else 11277 if test -n "$CC"; then 11278 ac_cv_prog_CC="$CC" # Let the user override the test. 11279else 11280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11281for as_dir in $PATH 11282do 11283 IFS=$as_save_IFS 11284 test -z "$as_dir" && as_dir=. 11285 for ac_exec_ext in '' $ac_executable_extensions; do 11286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11289 break 2 11290 fi 11291done 11292 done 11293IFS=$as_save_IFS 11294 11295fi 11296fi 11297CC=$ac_cv_prog_CC 11298if test -n "$CC"; then 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11300$as_echo "$CC" >&6; } 11301else 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11303$as_echo "no" >&6; } 11304fi 11305 11306 11307 test -n "$CC" && break 11308 done 11309fi 11310if test -z "$CC"; then 11311 ac_ct_CC=$CC 11312 for ac_prog in cl.exe 11313do 11314 # Extract the first word of "$ac_prog", so it can be a program name with args. 11315set dummy $ac_prog; ac_word=$2 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11317$as_echo_n "checking for $ac_word... " >&6; } 11318if ${ac_cv_prog_ac_ct_CC+:} false; then : 11319 $as_echo_n "(cached) " >&6 11320else 11321 if test -n "$ac_ct_CC"; then 11322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11323else 11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11325for as_dir in $PATH 11326do 11327 IFS=$as_save_IFS 11328 test -z "$as_dir" && as_dir=. 11329 for ac_exec_ext in '' $ac_executable_extensions; do 11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11331 ac_cv_prog_ac_ct_CC="$ac_prog" 11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11333 break 2 11334 fi 11335done 11336 done 11337IFS=$as_save_IFS 11338 11339fi 11340fi 11341ac_ct_CC=$ac_cv_prog_ac_ct_CC 11342if test -n "$ac_ct_CC"; then 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11344$as_echo "$ac_ct_CC" >&6; } 11345else 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11347$as_echo "no" >&6; } 11348fi 11349 11350 11351 test -n "$ac_ct_CC" && break 11352done 11353 11354 if test "x$ac_ct_CC" = x; then 11355 CC="" 11356 else 11357 case $cross_compiling:$ac_tool_warned in 11358yes:) 11359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11361ac_tool_warned=yes ;; 11362esac 11363 CC=$ac_ct_CC 11364 fi 11365fi 11366 11367fi 11368 11369 11370test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11372as_fn_error $? "no acceptable C compiler found in \$PATH 11373See \`config.log' for more details" "$LINENO" 5; } 11374 11375# Provide some information about the compiler. 11376$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11377set X $ac_compile 11378ac_compiler=$2 11379for ac_option in --version -v -V -qversion; do 11380 { { ac_try="$ac_compiler $ac_option >&5" 11381case "(($ac_try" in 11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11383 *) ac_try_echo=$ac_try;; 11384esac 11385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11386$as_echo "$ac_try_echo"; } >&5 11387 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11388 ac_status=$? 11389 if test -s conftest.err; then 11390 sed '10a\ 11391... rest of stderr output deleted ... 11392 10q' conftest.err >conftest.er1 11393 cat conftest.er1 >&5 11394 fi 11395 rm -f conftest.er1 conftest.err 11396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11397 test $ac_status = 0; } 11398done 11399 11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11401$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11402if ${ac_cv_c_compiler_gnu+:} false; then : 11403 $as_echo_n "(cached) " >&6 11404else 11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11406/* end confdefs.h. */ 11407 11408int 11409main () 11410{ 11411#ifndef __GNUC__ 11412 choke me 11413#endif 11414 11415 ; 11416 return 0; 11417} 11418_ACEOF 11419if ac_fn_c_try_compile "$LINENO"; then : 11420 ac_compiler_gnu=yes 11421else 11422 ac_compiler_gnu=no 11423fi 11424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11425ac_cv_c_compiler_gnu=$ac_compiler_gnu 11426 11427fi 11428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11429$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11430if test $ac_compiler_gnu = yes; then 11431 GCC=yes 11432else 11433 GCC= 11434fi 11435ac_test_CFLAGS=${CFLAGS+set} 11436ac_save_CFLAGS=$CFLAGS 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11438$as_echo_n "checking whether $CC accepts -g... " >&6; } 11439if ${ac_cv_prog_cc_g+:} false; then : 11440 $as_echo_n "(cached) " >&6 11441else 11442 ac_save_c_werror_flag=$ac_c_werror_flag 11443 ac_c_werror_flag=yes 11444 ac_cv_prog_cc_g=no 11445 CFLAGS="-g" 11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11447/* end confdefs.h. */ 11448 11449int 11450main () 11451{ 11452 11453 ; 11454 return 0; 11455} 11456_ACEOF 11457if ac_fn_c_try_compile "$LINENO"; then : 11458 ac_cv_prog_cc_g=yes 11459else 11460 CFLAGS="" 11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11462/* end confdefs.h. */ 11463 11464int 11465main () 11466{ 11467 11468 ; 11469 return 0; 11470} 11471_ACEOF 11472if ac_fn_c_try_compile "$LINENO"; then : 11473 11474else 11475 ac_c_werror_flag=$ac_save_c_werror_flag 11476 CFLAGS="-g" 11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11478/* end confdefs.h. */ 11479 11480int 11481main () 11482{ 11483 11484 ; 11485 return 0; 11486} 11487_ACEOF 11488if ac_fn_c_try_compile "$LINENO"; then : 11489 ac_cv_prog_cc_g=yes 11490fi 11491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11492fi 11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11494fi 11495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11496 ac_c_werror_flag=$ac_save_c_werror_flag 11497fi 11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11499$as_echo "$ac_cv_prog_cc_g" >&6; } 11500if test "$ac_test_CFLAGS" = set; then 11501 CFLAGS=$ac_save_CFLAGS 11502elif test $ac_cv_prog_cc_g = yes; then 11503 if test "$GCC" = yes; then 11504 CFLAGS="-g -O2" 11505 else 11506 CFLAGS="-g" 11507 fi 11508else 11509 if test "$GCC" = yes; then 11510 CFLAGS="-O2" 11511 else 11512 CFLAGS= 11513 fi 11514fi 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11516$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11517if ${ac_cv_prog_cc_c89+:} false; then : 11518 $as_echo_n "(cached) " >&6 11519else 11520 ac_cv_prog_cc_c89=no 11521ac_save_CC=$CC 11522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11523/* end confdefs.h. */ 11524#include <stdarg.h> 11525#include <stdio.h> 11526struct stat; 11527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11528struct buf { int x; }; 11529FILE * (*rcsopen) (struct buf *, struct stat *, int); 11530static char *e (p, i) 11531 char **p; 11532 int i; 11533{ 11534 return p[i]; 11535} 11536static char *f (char * (*g) (char **, int), char **p, ...) 11537{ 11538 char *s; 11539 va_list v; 11540 va_start (v,p); 11541 s = g (p, va_arg (v,int)); 11542 va_end (v); 11543 return s; 11544} 11545 11546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11547 function prototypes and stuff, but not '\xHH' hex character constants. 11548 These don't provoke an error unfortunately, instead are silently treated 11549 as 'x'. The following induces an error, until -std is added to get 11550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11551 array size at least. It's necessary to write '\x00'==0 to get something 11552 that's true only with -std. */ 11553int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11554 11555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11556 inside strings and character constants. */ 11557#define FOO(x) 'x' 11558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11559 11560int test (int i, double x); 11561struct s1 {int (*f) (int a);}; 11562struct s2 {int (*f) (double a);}; 11563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11564int argc; 11565char **argv; 11566int 11567main () 11568{ 11569return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11570 ; 11571 return 0; 11572} 11573_ACEOF 11574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11576do 11577 CC="$ac_save_CC $ac_arg" 11578 if ac_fn_c_try_compile "$LINENO"; then : 11579 ac_cv_prog_cc_c89=$ac_arg 11580fi 11581rm -f core conftest.err conftest.$ac_objext 11582 test "x$ac_cv_prog_cc_c89" != "xno" && break 11583done 11584rm -f conftest.$ac_ext 11585CC=$ac_save_CC 11586 11587fi 11588# AC_CACHE_VAL 11589case "x$ac_cv_prog_cc_c89" in 11590 x) 11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11592$as_echo "none needed" >&6; } ;; 11593 xno) 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11595$as_echo "unsupported" >&6; } ;; 11596 *) 11597 CC="$CC $ac_cv_prog_cc_c89" 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11599$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11600esac 11601if test "x$ac_cv_prog_cc_c89" != xno; then : 11602 11603fi 11604 11605ac_ext=c 11606ac_cpp='$CPP $CPPFLAGS' 11607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11609ac_compiler_gnu=$ac_cv_c_compiler_gnu 11610 11611ac_ext=c 11612ac_cpp='$CPP $CPPFLAGS' 11613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11615ac_compiler_gnu=$ac_cv_c_compiler_gnu 11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 11617$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 11618if ${am_cv_prog_cc_c_o+:} false; then : 11619 $as_echo_n "(cached) " >&6 11620else 11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11622/* end confdefs.h. */ 11623 11624int 11625main () 11626{ 11627 11628 ; 11629 return 0; 11630} 11631_ACEOF 11632 # Make sure it works both with $CC and with simple cc. 11633 # Following AC_PROG_CC_C_O, we do the test twice because some 11634 # compilers refuse to overwrite an existing .o file with -o, 11635 # though they will create one. 11636 am_cv_prog_cc_c_o=yes 11637 for am_i in 1 2; do 11638 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 11639 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 11640 ac_status=$? 11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11642 (exit $ac_status); } \ 11643 && test -f conftest2.$ac_objext; then 11644 : OK 11645 else 11646 am_cv_prog_cc_c_o=no 11647 break 11648 fi 11649 done 11650 rm -f core conftest* 11651 unset am_i 11652fi 11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 11654$as_echo "$am_cv_prog_cc_c_o" >&6; } 11655if test "$am_cv_prog_cc_c_o" != yes; then 11656 # Losing compiler, so override with the script. 11657 # FIXME: It is wrong to rewrite CC. 11658 # But if we don't then we get into trouble of one sort or another. 11659 # A longer-term fix would be to have automake use am__CC in this case, 11660 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11661 CC="$am_aux_dir/compile $CC" 11662fi 11663ac_ext=c 11664ac_cpp='$CPP $CPPFLAGS' 11665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11667ac_compiler_gnu=$ac_cv_c_compiler_gnu 11668 11669 11670ac_ext=m 11671ac_cpp='$OBJCPP $CPPFLAGS' 11672ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11673ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11674ac_compiler_gnu=$ac_cv_objc_compiler_gnu 11675if test -n "$ac_tool_prefix"; then 11676 for ac_prog in gcc objcc objc cc CC 11677 do 11678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11679set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11681$as_echo_n "checking for $ac_word... " >&6; } 11682if ${ac_cv_prog_OBJC+:} false; then : 11683 $as_echo_n "(cached) " >&6 11684else 11685 if test -n "$OBJC"; then 11686 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 11687else 11688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11689for as_dir in $PATH 11690do 11691 IFS=$as_save_IFS 11692 test -z "$as_dir" && as_dir=. 11693 for ac_exec_ext in '' $ac_executable_extensions; do 11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11695 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11697 break 2 11698 fi 11699done 11700 done 11701IFS=$as_save_IFS 11702 11703fi 11704fi 11705OBJC=$ac_cv_prog_OBJC 11706if test -n "$OBJC"; then 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 11708$as_echo "$OBJC" >&6; } 11709else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711$as_echo "no" >&6; } 11712fi 11713 11714 11715 test -n "$OBJC" && break 11716 done 11717fi 11718if test -z "$OBJC"; then 11719 ac_ct_OBJC=$OBJC 11720 for ac_prog in gcc objcc objc cc CC 11721do 11722 # Extract the first word of "$ac_prog", so it can be a program name with args. 11723set dummy $ac_prog; ac_word=$2 11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11725$as_echo_n "checking for $ac_word... " >&6; } 11726if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 11727 $as_echo_n "(cached) " >&6 11728else 11729 if test -n "$ac_ct_OBJC"; then 11730 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 11731else 11732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11733for as_dir in $PATH 11734do 11735 IFS=$as_save_IFS 11736 test -z "$as_dir" && as_dir=. 11737 for ac_exec_ext in '' $ac_executable_extensions; do 11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11739 ac_cv_prog_ac_ct_OBJC="$ac_prog" 11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11741 break 2 11742 fi 11743done 11744 done 11745IFS=$as_save_IFS 11746 11747fi 11748fi 11749ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 11750if test -n "$ac_ct_OBJC"; then 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 11752$as_echo "$ac_ct_OBJC" >&6; } 11753else 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11755$as_echo "no" >&6; } 11756fi 11757 11758 11759 test -n "$ac_ct_OBJC" && break 11760done 11761 11762 if test "x$ac_ct_OBJC" = x; then 11763 OBJC="gcc" 11764 else 11765 case $cross_compiling:$ac_tool_warned in 11766yes:) 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11769ac_tool_warned=yes ;; 11770esac 11771 OBJC=$ac_ct_OBJC 11772 fi 11773fi 11774 11775# Provide some information about the compiler. 11776$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 11777set X $ac_compile 11778ac_compiler=$2 11779for ac_option in --version -v -V -qversion; do 11780 { { ac_try="$ac_compiler $ac_option >&5" 11781case "(($ac_try" in 11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11783 *) ac_try_echo=$ac_try;; 11784esac 11785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11786$as_echo "$ac_try_echo"; } >&5 11787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11788 ac_status=$? 11789 if test -s conftest.err; then 11790 sed '10a\ 11791... rest of stderr output deleted ... 11792 10q' conftest.err >conftest.er1 11793 cat conftest.er1 >&5 11794 fi 11795 rm -f conftest.er1 conftest.err 11796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11797 test $ac_status = 0; } 11798done 11799 11800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 11801$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 11802if ${ac_cv_objc_compiler_gnu+:} false; then : 11803 $as_echo_n "(cached) " >&6 11804else 11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11806/* end confdefs.h. */ 11807 11808int 11809main () 11810{ 11811#ifndef __GNUC__ 11812 choke me 11813#endif 11814 11815 ; 11816 return 0; 11817} 11818_ACEOF 11819if ac_fn_objc_try_compile "$LINENO"; then : 11820 ac_compiler_gnu=yes 11821else 11822 ac_compiler_gnu=no 11823fi 11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11825ac_cv_objc_compiler_gnu=$ac_compiler_gnu 11826 11827fi 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 11829$as_echo "$ac_cv_objc_compiler_gnu" >&6; } 11830if test $ac_compiler_gnu = yes; then 11831 GOBJC=yes 11832else 11833 GOBJC= 11834fi 11835ac_test_OBJCFLAGS=${OBJCFLAGS+set} 11836ac_save_OBJCFLAGS=$OBJCFLAGS 11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 11838$as_echo_n "checking whether $OBJC accepts -g... " >&6; } 11839if ${ac_cv_prog_objc_g+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 ac_save_objc_werror_flag=$ac_objc_werror_flag 11843 ac_objc_werror_flag=yes 11844 ac_cv_prog_objc_g=no 11845 OBJCFLAGS="-g" 11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11847/* end confdefs.h. */ 11848 11849int 11850main () 11851{ 11852 11853 ; 11854 return 0; 11855} 11856_ACEOF 11857if ac_fn_objc_try_compile "$LINENO"; then : 11858 ac_cv_prog_objc_g=yes 11859else 11860 OBJCFLAGS="" 11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11862/* end confdefs.h. */ 11863 11864int 11865main () 11866{ 11867 11868 ; 11869 return 0; 11870} 11871_ACEOF 11872if ac_fn_objc_try_compile "$LINENO"; then : 11873 11874else 11875 ac_objc_werror_flag=$ac_save_objc_werror_flag 11876 OBJCFLAGS="-g" 11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11878/* end confdefs.h. */ 11879 11880int 11881main () 11882{ 11883 11884 ; 11885 return 0; 11886} 11887_ACEOF 11888if ac_fn_objc_try_compile "$LINENO"; then : 11889 ac_cv_prog_objc_g=yes 11890fi 11891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11892fi 11893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11894fi 11895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11896 ac_objc_werror_flag=$ac_save_objc_werror_flag 11897fi 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 11899$as_echo "$ac_cv_prog_objc_g" >&6; } 11900if test "$ac_test_OBJCFLAGS" = set; then 11901 OBJCFLAGS=$ac_save_OBJCFLAGS 11902elif test $ac_cv_prog_objc_g = yes; then 11903 if test "$GOBJC" = yes; then 11904 OBJCFLAGS="-g -O2" 11905 else 11906 OBJCFLAGS="-g" 11907 fi 11908else 11909 if test "$GOBJC" = yes; then 11910 OBJCFLAGS="-O2" 11911 else 11912 OBJCFLAGS= 11913 fi 11914fi 11915ac_ext=c 11916ac_cpp='$CPP $CPPFLAGS' 11917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11919ac_compiler_gnu=$ac_cv_c_compiler_gnu 11920 11921depcc="$OBJC" am_compiler_list='gcc3 gcc' 11922 11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11924$as_echo_n "checking dependency style of $depcc... " >&6; } 11925if ${am_cv_OBJC_dependencies_compiler_type+:} false; then : 11926 $as_echo_n "(cached) " >&6 11927else 11928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11929 # We make a subdir and do the tests there. Otherwise we can end up 11930 # making bogus files that we don't know about and never remove. For 11931 # instance it was reported that on HP-UX the gcc test will end up 11932 # making a dummy file named 'D' -- because '-MD' means "put the output 11933 # in D". 11934 rm -rf conftest.dir 11935 mkdir conftest.dir 11936 # Copy depcomp to subdir because otherwise we won't find it if we're 11937 # using a relative directory. 11938 cp "$am_depcomp" conftest.dir 11939 cd conftest.dir 11940 # We will build objects and dependencies in a subdirectory because 11941 # it helps to detect inapplicable dependency modes. For instance 11942 # both Tru64's cc and ICC support -MD to output dependencies as a 11943 # side effect of compilation, but ICC will put the dependencies in 11944 # the current directory while Tru64 will put them in the object 11945 # directory. 11946 mkdir sub 11947 11948 am_cv_OBJC_dependencies_compiler_type=none 11949 if test "$am_compiler_list" = ""; then 11950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11951 fi 11952 am__universal=false 11953 11954 11955 for depmode in $am_compiler_list; do 11956 # Setup a source with many dependencies, because some compilers 11957 # like to wrap large dependency lists on column 80 (with \), and 11958 # we should not choose a depcomp mode which is confused by this. 11959 # 11960 # We need to recreate these files for each test, as the compiler may 11961 # overwrite some of them when testing with obscure command lines. 11962 # This happens at least with the AIX C compiler. 11963 : > sub/conftest.c 11964 for i in 1 2 3 4 5 6; do 11965 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11966 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11967 # Solaris 10 /bin/sh. 11968 echo '/* dummy */' > sub/conftst$i.h 11969 done 11970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11971 11972 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11973 # mode. It turns out that the SunPro C++ compiler does not properly 11974 # handle '-M -o', and we need to detect this. Also, some Intel 11975 # versions had trouble with output in subdirs. 11976 am__obj=sub/conftest.${OBJEXT-o} 11977 am__minus_obj="-o $am__obj" 11978 case $depmode in 11979 gcc) 11980 # This depmode causes a compiler race in universal mode. 11981 test "$am__universal" = false || continue 11982 ;; 11983 nosideeffect) 11984 # After this tag, mechanisms are not by side-effect, so they'll 11985 # only be used when explicitly requested. 11986 if test "x$enable_dependency_tracking" = xyes; then 11987 continue 11988 else 11989 break 11990 fi 11991 ;; 11992 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11993 # This compiler won't grok '-c -o', but also, the minuso test has 11994 # not run yet. These depmodes are late enough in the game, and 11995 # so weak that their functioning should not be impacted. 11996 am__obj=conftest.${OBJEXT-o} 11997 am__minus_obj= 11998 ;; 11999 none) break ;; 12000 esac 12001 if depmode=$depmode \ 12002 source=sub/conftest.c object=$am__obj \ 12003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12005 >/dev/null 2>conftest.err && 12006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12010 # icc doesn't choke on unknown options, it will just issue warnings 12011 # or remarks (even with -Werror). So we grep stderr for any message 12012 # that says an option was ignored or not supported. 12013 # When given -MP, icc 7.0 and 7.1 complain thusly: 12014 # icc: Command line warning: ignoring option '-M'; no argument required 12015 # The diagnosis changed in icc 8.0: 12016 # icc: Command line remark: option '-MP' not supported 12017 if (grep 'ignoring option' conftest.err || 12018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12019 am_cv_OBJC_dependencies_compiler_type=$depmode 12020 break 12021 fi 12022 fi 12023 done 12024 12025 cd .. 12026 rm -rf conftest.dir 12027else 12028 am_cv_OBJC_dependencies_compiler_type=none 12029fi 12030 12031fi 12032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5 12033$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; } 12034OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type 12035 12036 if 12037 test "x$enable_dependency_tracking" != xno \ 12038 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then 12039 am__fastdepOBJC_TRUE= 12040 am__fastdepOBJC_FALSE='#' 12041else 12042 am__fastdepOBJC_TRUE='#' 12043 am__fastdepOBJC_FALSE= 12044fi 12045 12046 12047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12048$as_echo_n "checking for inline... " >&6; } 12049if ${ac_cv_c_inline+:} false; then : 12050 $as_echo_n "(cached) " >&6 12051else 12052 ac_cv_c_inline=no 12053for ac_kw in inline __inline__ __inline; do 12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12055/* end confdefs.h. */ 12056#ifndef __cplusplus 12057typedef int foo_t; 12058static $ac_kw foo_t static_foo () {return 0; } 12059$ac_kw foo_t foo () {return 0; } 12060#endif 12061 12062_ACEOF 12063if ac_fn_c_try_compile "$LINENO"; then : 12064 ac_cv_c_inline=$ac_kw 12065fi 12066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12067 test "$ac_cv_c_inline" != no && break 12068done 12069 12070fi 12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12072$as_echo "$ac_cv_c_inline" >&6; } 12073 12074case $ac_cv_c_inline in 12075 inline | yes) ;; 12076 *) 12077 case $ac_cv_c_inline in 12078 no) ac_val=;; 12079 *) ac_val=$ac_cv_c_inline;; 12080 esac 12081 cat >>confdefs.h <<_ACEOF 12082#ifndef __cplusplus 12083#define inline $ac_val 12084#endif 12085_ACEOF 12086 ;; 12087esac 12088 12089 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12091$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12092set x ${MAKE-make} 12093ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12094if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12095 $as_echo_n "(cached) " >&6 12096else 12097 cat >conftest.make <<\_ACEOF 12098SHELL = /bin/sh 12099all: 12100 @echo '@@@%%%=$(MAKE)=@@@%%%' 12101_ACEOF 12102# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12103case `${MAKE-make} -f conftest.make 2>/dev/null` in 12104 *@@@%%%=?*=@@@%%%*) 12105 eval ac_cv_prog_make_${ac_make}_set=yes;; 12106 *) 12107 eval ac_cv_prog_make_${ac_make}_set=no;; 12108esac 12109rm -f conftest.make 12110fi 12111if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12113$as_echo "yes" >&6; } 12114 SET_MAKE= 12115else 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12117$as_echo "no" >&6; } 12118 SET_MAKE="MAKE=${MAKE-make}" 12119fi 12120 12121if test -z "$host_alias"; then 12122 hostaliaswindres= 12123else 12124 hostaliaswindres="$host_alias-windres" 12125fi 12126for ac_prog in windres $hostaliaswindres $host_os-windres 12127do 12128 # Extract the first word of "$ac_prog", so it can be a program name with args. 12129set dummy $ac_prog; ac_word=$2 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12131$as_echo_n "checking for $ac_word... " >&6; } 12132if ${ac_cv_prog_WINDRES+:} false; then : 12133 $as_echo_n "(cached) " >&6 12134else 12135 if test -n "$WINDRES"; then 12136 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 12137else 12138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12139for as_dir in $PATH 12140do 12141 IFS=$as_save_IFS 12142 test -z "$as_dir" && as_dir=. 12143 for ac_exec_ext in '' $ac_executable_extensions; do 12144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12145 ac_cv_prog_WINDRES="$ac_prog" 12146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12147 break 2 12148 fi 12149done 12150 done 12151IFS=$as_save_IFS 12152 12153fi 12154fi 12155WINDRES=$ac_cv_prog_WINDRES 12156if test -n "$WINDRES"; then 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 12158$as_echo "$WINDRES" >&6; } 12159else 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12161$as_echo "no" >&6; } 12162fi 12163 12164 12165 test -n "$WINDRES" && break 12166done 12167 12168 12169case "$host" in 12170 *-*-beos*) 12171 ac_default_prefix=/boot/develop/tools/gnupro 12172 ;; 12173 *-*-cygwin* | *-*-mingw32*) 12174 if test "$build" != "$host"; then # cross-compiling 12175 # Default cross-compile location 12176 ac_default_prefix=/usr/local/cross-tools/$host 12177 else 12178 # Look for the location of the tools and install there 12179 if test "$BUILD_PREFIX" != ""; then 12180 ac_default_prefix=$BUILD_PREFIX 12181 fi 12182 fi 12183 if test x$WINDRES != x; then 12184 use_version_rc=true 12185 fi 12186 ;; 12187 *-*-darwin*) 12188 # Check whether --enable-imageio was given. 12189if test "${enable_imageio+set}" = set; then : 12190 enableval=$enable_imageio; 12191else 12192 enable_imageio=yes 12193fi 12194 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageIO support" >&5 12196$as_echo_n "checking for ImageIO support... " >&6; } 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_imageio" >&5 12198$as_echo "$enable_imageio" >&6; } 12199 if test x$enable_imageio = xyes; then 12200 IMG_LIBS="-Wl,-framework,ApplicationServices -lobjc $IMG_LIBS" 12201 else 12202 CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND" 12203 fi 12204 ;; 12205esac 12206 if test x$enable_imageio = xyes; then 12207 USE_IMAGEIO_TRUE= 12208 USE_IMAGEIO_FALSE='#' 12209else 12210 USE_IMAGEIO_TRUE='#' 12211 USE_IMAGEIO_FALSE= 12212fi 12213 12214 if test x$use_version_rc = xtrue; then 12215 USE_VERSION_RC_TRUE= 12216 USE_VERSION_RC_FALSE='#' 12217else 12218 USE_VERSION_RC_TRUE='#' 12219 USE_VERSION_RC_FALSE= 12220fi 12221 12222 12223base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'` 12224 12225find_lib() 12226{ 12227 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 12228 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'` 12229 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'` 12230 if test "$cross_compiling" = yes; then 12231 host_lib_path="" 12232 else 12233 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" 12234 fi 12235 for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do 12236 lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1` 12237 if test x$lib != x; then 12238 echo $lib 12239 return 12240 fi 12241 done 12242} 12243 12244SDL_VERSION=2.0.8 12245 12246 12247 12248if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12249 if test -n "$ac_tool_prefix"; then 12250 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12251set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12253$as_echo_n "checking for $ac_word... " >&6; } 12254if ${ac_cv_path_PKG_CONFIG+:} false; then : 12255 $as_echo_n "(cached) " >&6 12256else 12257 case $PKG_CONFIG in 12258 [\\/]* | ?:[\\/]*) 12259 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12260 ;; 12261 *) 12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12263for as_dir in $PATH 12264do 12265 IFS=$as_save_IFS 12266 test -z "$as_dir" && as_dir=. 12267 for ac_exec_ext in '' $ac_executable_extensions; do 12268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12269 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12271 break 2 12272 fi 12273done 12274 done 12275IFS=$as_save_IFS 12276 12277 ;; 12278esac 12279fi 12280PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12281if test -n "$PKG_CONFIG"; then 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12283$as_echo "$PKG_CONFIG" >&6; } 12284else 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12286$as_echo "no" >&6; } 12287fi 12288 12289 12290fi 12291if test -z "$ac_cv_path_PKG_CONFIG"; then 12292 ac_pt_PKG_CONFIG=$PKG_CONFIG 12293 # Extract the first word of "pkg-config", so it can be a program name with args. 12294set dummy pkg-config; ac_word=$2 12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12296$as_echo_n "checking for $ac_word... " >&6; } 12297if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12298 $as_echo_n "(cached) " >&6 12299else 12300 case $ac_pt_PKG_CONFIG in 12301 [\\/]* | ?:[\\/]*) 12302 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12303 ;; 12304 *) 12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12306for as_dir in $PATH 12307do 12308 IFS=$as_save_IFS 12309 test -z "$as_dir" && as_dir=. 12310 for ac_exec_ext in '' $ac_executable_extensions; do 12311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12312 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12314 break 2 12315 fi 12316done 12317 done 12318IFS=$as_save_IFS 12319 12320 ;; 12321esac 12322fi 12323ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12324if test -n "$ac_pt_PKG_CONFIG"; then 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12326$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12327else 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12329$as_echo "no" >&6; } 12330fi 12331 12332 if test "x$ac_pt_PKG_CONFIG" = x; then 12333 PKG_CONFIG="" 12334 else 12335 case $cross_compiling:$ac_tool_warned in 12336yes:) 12337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12339ac_tool_warned=yes ;; 12340esac 12341 PKG_CONFIG=$ac_pt_PKG_CONFIG 12342 fi 12343else 12344 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12345fi 12346 12347fi 12348if test -n "$PKG_CONFIG"; then 12349 _pkg_min_version=0.9.0 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12351$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12352 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12354$as_echo "yes" >&6; } 12355 else 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12357$as_echo "no" >&6; } 12358 PKG_CONFIG="" 12359 fi 12360 12361fi 12362 12363# Check whether --with-sdl-prefix was given. 12364if test "${with_sdl_prefix+set}" = set; then : 12365 withval=$with_sdl_prefix; sdl_prefix="$withval" 12366else 12367 sdl_prefix="" 12368fi 12369 12370 12371# Check whether --with-sdl-exec-prefix was given. 12372if test "${with_sdl_exec_prefix+set}" = set; then : 12373 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 12374else 12375 sdl_exec_prefix="" 12376fi 12377 12378# Check whether --enable-sdltest was given. 12379if test "${enable_sdltest+set}" = set; then : 12380 enableval=$enable_sdltest; 12381else 12382 enable_sdltest=yes 12383fi 12384 12385 12386 min_sdl_version=$SDL_VERSION 12387 12388 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then 12389 12390pkg_failed=no 12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 12392$as_echo_n "checking for SDL... " >&6; } 12393 12394if test -n "$PKG_CONFIG"; then 12395 if test -n "$SDL_CFLAGS"; then 12396 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" 12397 else 12398 if test -n "$PKG_CONFIG" && \ 12399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 12400 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 12401 ac_status=$? 12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12403 test $ac_status = 0; }; then 12404 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null` 12405else 12406 pkg_failed=yes 12407fi 12408 fi 12409else 12410 pkg_failed=untried 12411fi 12412if test -n "$PKG_CONFIG"; then 12413 if test -n "$SDL_LIBS"; then 12414 pkg_cv_SDL_LIBS="$SDL_LIBS" 12415 else 12416 if test -n "$PKG_CONFIG" && \ 12417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 12418 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 12419 ac_status=$? 12420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12421 test $ac_status = 0; }; then 12422 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null` 12423else 12424 pkg_failed=yes 12425fi 12426 fi 12427else 12428 pkg_failed=untried 12429fi 12430 12431 12432 12433if test $pkg_failed = yes; then 12434 12435if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12436 _pkg_short_errors_supported=yes 12437else 12438 _pkg_short_errors_supported=no 12439fi 12440 if test $_pkg_short_errors_supported = yes; then 12441 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"` 12442 else 12443 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl2 >= $min_sdl_version"` 12444 fi 12445 # Put the nasty error message in config.log where it belongs 12446 echo "$SDL_PKG_ERRORS" >&5 12447 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12449$as_echo "no" >&6; } 12450 sdl_pc=no 12451elif test $pkg_failed = untried; then 12452 sdl_pc=no 12453else 12454 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS 12455 SDL_LIBS=$pkg_cv_SDL_LIBS 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12457$as_echo "yes" >&6; } 12458 sdl_pc=yes 12459fi 12460 else 12461 sdl_pc=no 12462 if test x$sdl_exec_prefix != x ; then 12463 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 12464 if test x${SDL2_CONFIG+set} != xset ; then 12465 SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config 12466 fi 12467 fi 12468 if test x$sdl_prefix != x ; then 12469 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 12470 if test x${SDL2_CONFIG+set} != xset ; then 12471 SDL2_CONFIG=$sdl_prefix/bin/sdl2-config 12472 fi 12473 fi 12474 fi 12475 12476 if test "x$sdl_pc" = xyes ; then 12477 no_sdl="" 12478 SDL2_CONFIG="pkg-config sdl2" 12479 else 12480 as_save_PATH="$PATH" 12481 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 12482 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 12483 fi 12484 # Extract the first word of "sdl2-config", so it can be a program name with args. 12485set dummy sdl2-config; ac_word=$2 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12487$as_echo_n "checking for $ac_word... " >&6; } 12488if ${ac_cv_path_SDL2_CONFIG+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490else 12491 case $SDL2_CONFIG in 12492 [\\/]* | ?:[\\/]*) 12493 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path. 12494 ;; 12495 *) 12496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12497for as_dir in $PATH 12498do 12499 IFS=$as_save_IFS 12500 test -z "$as_dir" && as_dir=. 12501 for ac_exec_ext in '' $ac_executable_extensions; do 12502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12503 ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12505 break 2 12506 fi 12507done 12508 done 12509IFS=$as_save_IFS 12510 12511 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no" 12512 ;; 12513esac 12514fi 12515SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG 12516if test -n "$SDL2_CONFIG"; then 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5 12518$as_echo "$SDL2_CONFIG" >&6; } 12519else 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12521$as_echo "no" >&6; } 12522fi 12523 12524 12525 PATH="$as_save_PATH" 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 12527$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 12528 no_sdl="" 12529 12530 if test "$SDL2_CONFIG" = "no" ; then 12531 no_sdl=yes 12532 else 12533 SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags` 12534 SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs` 12535 12536 sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \ 12537 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 12538 sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \ 12539 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 12540 sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \ 12541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 12542 if test "x$enable_sdltest" = "xyes" ; then 12543 ac_save_CFLAGS="$CFLAGS" 12544 ac_save_CXXFLAGS="$CXXFLAGS" 12545 ac_save_LIBS="$LIBS" 12546 CFLAGS="$CFLAGS $SDL_CFLAGS" 12547 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 12548 LIBS="$LIBS $SDL_LIBS" 12549 rm -f conf.sdltest 12550 if test "$cross_compiling" = yes; then : 12551 echo $ac_n "cross compiling; assumed OK... $ac_c" 12552else 12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12554/* end confdefs.h. */ 12555 12556#include <stdio.h> 12557#include <stdlib.h> 12558#include <string.h> 12559#include "SDL.h" 12560 12561char* 12562my_strdup (char *str) 12563{ 12564 char *new_str; 12565 12566 if (str) 12567 { 12568 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 12569 strcpy (new_str, str); 12570 } 12571 else 12572 new_str = NULL; 12573 12574 return new_str; 12575} 12576 12577int main (int argc, char *argv[]) 12578{ 12579 int major, minor, micro; 12580 char *tmp_version; 12581 12582 /* This hangs on some systems (?) 12583 system ("touch conf.sdltest"); 12584 */ 12585 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 12586 12587 /* HP/UX 9 (%@#!) writes to sscanf strings */ 12588 tmp_version = my_strdup("$min_sdl_version"); 12589 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 12590 printf("%s, bad version string\n", "$min_sdl_version"); 12591 exit(1); 12592 } 12593 12594 if (($sdl_major_version > major) || 12595 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 12596 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 12597 { 12598 return 0; 12599 } 12600 else 12601 { 12602 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 12603 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 12604 printf("*** best to upgrade to the required version.\n"); 12605 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n"); 12606 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 12607 printf("*** config.cache before re-running configure\n"); 12608 return 1; 12609 } 12610} 12611 12612 12613_ACEOF 12614if ac_fn_c_try_run "$LINENO"; then : 12615 12616else 12617 no_sdl=yes 12618fi 12619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12620 conftest.$ac_objext conftest.beam conftest.$ac_ext 12621fi 12622 12623 CFLAGS="$ac_save_CFLAGS" 12624 CXXFLAGS="$ac_save_CXXFLAGS" 12625 LIBS="$ac_save_LIBS" 12626 fi 12627 fi 12628 if test "x$no_sdl" = x ; then 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12630$as_echo "yes" >&6; } 12631 else 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12633$as_echo "no" >&6; } 12634 fi 12635 fi 12636 if test "x$no_sdl" = x ; then 12637 : 12638 else 12639 if test "$SDL2_CONFIG" = "no" ; then 12640 echo "*** The sdl2-config script installed by SDL could not be found" 12641 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 12642 echo "*** your path, or set the SDL2_CONFIG environment variable to the" 12643 echo "*** full path to sdl2-config." 12644 else 12645 if test -f conf.sdltest ; then 12646 : 12647 else 12648 echo "*** Could not run SDL test program, checking why..." 12649 CFLAGS="$CFLAGS $SDL_CFLAGS" 12650 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 12651 LIBS="$LIBS $SDL_LIBS" 12652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12653/* end confdefs.h. */ 12654 12655#include <stdio.h> 12656#include "SDL.h" 12657 12658int main(int argc, char *argv[]) 12659{ return 0; } 12660#undef main 12661#define main K_and_R_C_main 12662 12663int 12664main () 12665{ 12666 return 0; 12667 ; 12668 return 0; 12669} 12670_ACEOF 12671if ac_fn_c_try_link "$LINENO"; then : 12672 echo "*** The test program compiled, but did not run. This usually means" 12673 echo "*** that the run-time linker is not finding SDL or finding the wrong" 12674 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 12675 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 12676 echo "*** to the installed location Also, make sure you have run ldconfig if that" 12677 echo "*** is required on your system" 12678 echo "***" 12679 echo "*** If you have an old version installed, it is best to remove it, although" 12680 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 12681else 12682 echo "*** The test program failed to compile or link. See the file config.log for the" 12683 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 12684 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 12685 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG" 12686fi 12687rm -f core conftest.err conftest.$ac_objext \ 12688 conftest$ac_exeext conftest.$ac_ext 12689 CFLAGS="$ac_save_CFLAGS" 12690 CXXFLAGS="$ac_save_CXXFLAGS" 12691 LIBS="$ac_save_LIBS" 12692 fi 12693 fi 12694 SDL_CFLAGS="" 12695 SDL_LIBS="" 12696 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5 12697 12698 fi 12699 12700 12701 rm -f conf.sdltest 12702 12703CFLAGS="$CFLAGS $SDL_CFLAGS" 12704LIBS="$LIBS $SDL_LIBS" 12705saved_LIBS="$LIBS" 12706 12707# Check whether --enable-bmp was given. 12708if test "${enable_bmp+set}" = set; then : 12709 enableval=$enable_bmp; 12710else 12711 enable_bmp=yes 12712fi 12713 12714# Check whether --enable-gif was given. 12715if test "${enable_gif+set}" = set; then : 12716 enableval=$enable_gif; 12717else 12718 enable_gif=yes 12719fi 12720 12721# Check whether --enable-jpg was given. 12722if test "${enable_jpg+set}" = set; then : 12723 enableval=$enable_jpg; 12724else 12725 enable_jpg=yes 12726fi 12727 12728# Check whether --enable-jpg-shared was given. 12729if test "${enable_jpg_shared+set}" = set; then : 12730 enableval=$enable_jpg_shared; 12731else 12732 enable_jpg_shared=yes 12733fi 12734 12735# Check whether --enable-lbm was given. 12736if test "${enable_lbm+set}" = set; then : 12737 enableval=$enable_lbm; 12738else 12739 enable_lbm=yes 12740fi 12741 12742# Check whether --enable-pcx was given. 12743if test "${enable_pcx+set}" = set; then : 12744 enableval=$enable_pcx; 12745else 12746 enable_pcx=yes 12747fi 12748 12749# Check whether --enable-png was given. 12750if test "${enable_png+set}" = set; then : 12751 enableval=$enable_png; 12752else 12753 enable_png=yes 12754fi 12755 12756# Check whether --enable-png-shared was given. 12757if test "${enable_png_shared+set}" = set; then : 12758 enableval=$enable_png_shared; 12759else 12760 enable_png_shared=yes 12761fi 12762 12763# Check whether --enable-pnm was given. 12764if test "${enable_pnm+set}" = set; then : 12765 enableval=$enable_pnm; 12766else 12767 enable_pnm=yes 12768fi 12769 12770# Check whether --enable-svg was given. 12771if test "${enable_svg+set}" = set; then : 12772 enableval=$enable_svg; 12773else 12774 enable_svg=yes 12775fi 12776 12777# Check whether --enable-tga was given. 12778if test "${enable_tga+set}" = set; then : 12779 enableval=$enable_tga; 12780else 12781 enable_tga=yes 12782fi 12783 12784# Check whether --enable-tif was given. 12785if test "${enable_tif+set}" = set; then : 12786 enableval=$enable_tif; 12787else 12788 enable_tif=yes 12789fi 12790 12791# Check whether --enable-tif-shared was given. 12792if test "${enable_tif_shared+set}" = set; then : 12793 enableval=$enable_tif_shared; 12794else 12795 enable_tif_shared=yes 12796fi 12797 12798# Check whether --enable-xcf was given. 12799if test "${enable_xcf+set}" = set; then : 12800 enableval=$enable_xcf; 12801else 12802 enable_xcf=yes 12803fi 12804 12805# Check whether --enable-xpm was given. 12806if test "${enable_xpm+set}" = set; then : 12807 enableval=$enable_xpm; 12808else 12809 enable_xpm=yes 12810fi 12811 12812# Check whether --enable-xv was given. 12813if test "${enable_xv+set}" = set; then : 12814 enableval=$enable_xv; 12815else 12816 enable_xv=yes 12817fi 12818 12819# Check whether --enable-webp was given. 12820if test "${enable_webp+set}" = set; then : 12821 enableval=$enable_webp; 12822else 12823 enable_webp=yes 12824fi 12825 12826# Check whether --enable-webp-shared was given. 12827if test "${enable_webp_shared+set}" = set; then : 12828 enableval=$enable_webp_shared; 12829else 12830 enable_webp_shared=yes 12831fi 12832 12833 12834if (test x$enable_jpg = xyes || test x$enable_tif = xyes) && test x$enable_imageio != xyes; then 12835 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 12836if test "x$ac_cv_header_jpeglib_h" = xyes; then : 12837 have_jpg_hdr=yes 12838fi 12839 12840 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 12842$as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 12843if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 12844 $as_echo_n "(cached) " >&6 12845else 12846 ac_check_lib_save_LIBS=$LIBS 12847LIBS="-ljpeg $LIBS" 12848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12849/* end confdefs.h. */ 12850 12851/* Override any GCC internal prototype to avoid an error. 12852 Use char because int might match the return type of a GCC 12853 builtin and then its argument prototype would still apply. */ 12854#ifdef __cplusplus 12855extern "C" 12856#endif 12857char jpeg_CreateDecompress (); 12858int 12859main () 12860{ 12861return jpeg_CreateDecompress (); 12862 ; 12863 return 0; 12864} 12865_ACEOF 12866if ac_fn_c_try_link "$LINENO"; then : 12867 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 12868else 12869 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 12870fi 12871rm -f core conftest.err conftest.$ac_objext \ 12872 conftest$ac_exeext conftest.$ac_ext 12873LIBS=$ac_check_lib_save_LIBS 12874fi 12875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 12876$as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 12877if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 12878 have_jpg_lib=yes 12879fi 12880 12881 if test x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then 12882 if test x$enable_jpg = xyes; then 12883 $as_echo "#define LOAD_JPG 1" >>confdefs.h 12884 12885 fi 12886 LIBS="-ljpeg $LIBS" 12887 12888 case "$host" in 12889 *-*-darwin*) 12890 jpg_lib=`find_lib libjpeg.dylib` 12891 ;; 12892 *-*-cygwin* | *-*-mingw32*) 12893 jpg_lib=`find_lib "libjpeg*.dll"` 12894 ;; 12895 *) 12896 jpg_lib=`find_lib "libjpeg[0-9]*.so.*"` 12897 if test x$jpg_lib = x; then 12898 jpg_lib=`find_lib "libjpeg.so.*"` 12899 fi 12900 ;; 12901 esac 12902 elif test x$enable_jpg = xyes; then 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&5 12904$as_echo "$as_me: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&2;} 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JPG image loading disabled" >&5 12906$as_echo "$as_me: WARNING: JPG image loading disabled" >&2;} 12907 fi 12908fi 12909 12910if test x$enable_png = xyes -a x$enable_imageio != xyes; then 12911 12912pkg_failed=no 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5 12914$as_echo_n "checking for LIBPNG... " >&6; } 12915 12916if test -n "$PKG_CONFIG"; then 12917 if test -n "$LIBPNG_CFLAGS"; then 12918 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS" 12919 else 12920 if test -n "$PKG_CONFIG" && \ 12921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 12922 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 12923 ac_status=$? 12924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12925 test $ac_status = 0; }; then 12926 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 12927else 12928 pkg_failed=yes 12929fi 12930 fi 12931else 12932 pkg_failed=untried 12933fi 12934if test -n "$PKG_CONFIG"; then 12935 if test -n "$LIBPNG_LIBS"; then 12936 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS" 12937 else 12938 if test -n "$PKG_CONFIG" && \ 12939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 12940 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 12941 ac_status=$? 12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12943 test $ac_status = 0; }; then 12944 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 12945else 12946 pkg_failed=yes 12947fi 12948 fi 12949else 12950 pkg_failed=untried 12951fi 12952 12953 12954 12955if test $pkg_failed = yes; then 12956 12957if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12958 _pkg_short_errors_supported=yes 12959else 12960 _pkg_short_errors_supported=no 12961fi 12962 if test $_pkg_short_errors_supported = yes; then 12963 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"` 12964 else 12965 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"` 12966 fi 12967 # Put the nasty error message in config.log where it belongs 12968 echo "$LIBPNG_PKG_ERRORS" >&5 12969 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12971$as_echo "no" >&6; } 12972 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 12973if test "x$ac_cv_header_png_h" = xyes; then : 12974 12975 have_png_hdr=yes 12976 LIBPNG_CFLAGS="" 12977 12978fi 12979 12980 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5 12982$as_echo_n "checking for png_create_read_struct in -lpng... " >&6; } 12983if ${ac_cv_lib_png_png_create_read_struct+:} false; then : 12984 $as_echo_n "(cached) " >&6 12985else 12986 ac_check_lib_save_LIBS=$LIBS 12987LIBS="-lpng -lz $LIBS" 12988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12989/* end confdefs.h. */ 12990 12991/* Override any GCC internal prototype to avoid an error. 12992 Use char because int might match the return type of a GCC 12993 builtin and then its argument prototype would still apply. */ 12994#ifdef __cplusplus 12995extern "C" 12996#endif 12997char png_create_read_struct (); 12998int 12999main () 13000{ 13001return png_create_read_struct (); 13002 ; 13003 return 0; 13004} 13005_ACEOF 13006if ac_fn_c_try_link "$LINENO"; then : 13007 ac_cv_lib_png_png_create_read_struct=yes 13008else 13009 ac_cv_lib_png_png_create_read_struct=no 13010fi 13011rm -f core conftest.err conftest.$ac_objext \ 13012 conftest$ac_exeext conftest.$ac_ext 13013LIBS=$ac_check_lib_save_LIBS 13014fi 13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5 13016$as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; } 13017if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then : 13018 13019 have_png_lib=yes 13020 LIBPNG_LIBS="-lpng -lz" 13021 13022fi 13023 13024 13025elif test $pkg_failed = untried; then 13026 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" 13027if test "x$ac_cv_header_png_h" = xyes; then : 13028 13029 have_png_hdr=yes 13030 LIBPNG_CFLAGS="" 13031 13032fi 13033 13034 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5 13036$as_echo_n "checking for png_create_read_struct in -lpng... " >&6; } 13037if ${ac_cv_lib_png_png_create_read_struct+:} false; then : 13038 $as_echo_n "(cached) " >&6 13039else 13040 ac_check_lib_save_LIBS=$LIBS 13041LIBS="-lpng -lz $LIBS" 13042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13043/* end confdefs.h. */ 13044 13045/* Override any GCC internal prototype to avoid an error. 13046 Use char because int might match the return type of a GCC 13047 builtin and then its argument prototype would still apply. */ 13048#ifdef __cplusplus 13049extern "C" 13050#endif 13051char png_create_read_struct (); 13052int 13053main () 13054{ 13055return png_create_read_struct (); 13056 ; 13057 return 0; 13058} 13059_ACEOF 13060if ac_fn_c_try_link "$LINENO"; then : 13061 ac_cv_lib_png_png_create_read_struct=yes 13062else 13063 ac_cv_lib_png_png_create_read_struct=no 13064fi 13065rm -f core conftest.err conftest.$ac_objext \ 13066 conftest$ac_exeext conftest.$ac_ext 13067LIBS=$ac_check_lib_save_LIBS 13068fi 13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5 13070$as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; } 13071if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then : 13072 13073 have_png_lib=yes 13074 LIBPNG_LIBS="-lpng -lz" 13075 13076fi 13077 13078 13079else 13080 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS 13081 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13083$as_echo "yes" >&6; } 13084 have_png_hdr=yes 13085 have_png_lib=yes 13086 13087fi 13088 if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then 13089 $as_echo "#define LOAD_PNG 1" >>confdefs.h 13090 13091 13092 case "$host" in 13093 *-*-darwin*) 13094 png_lib=`find_lib libpng.dylib` 13095 ;; 13096 *-*-cygwin* | *-*-mingw32*) 13097 png_lib=`find_lib "libpng*.dll"` 13098 ;; 13099 *) 13100 png_lib=`find_lib "libpng[0-9]*.so.*"` 13101 if test x$png_lib = x; then 13102 png_lib=`find_lib "libpng.so.*"` 13103 fi 13104 ;; 13105 esac 13106 else 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&5 13108$as_echo "$as_me: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&2;} 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PNG image loading disabled" >&5 13110$as_echo "$as_me: WARNING: PNG image loading disabled" >&2;} 13111 fi 13112fi 13113 13114if test x$enable_tif = xyes -a x$enable_imageio != xyes; then 13115 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 13116if test "x$ac_cv_header_tiffio_h" = xyes; then : 13117 have_tif_hdr=yes 13118fi 13119 13120 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 13122$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } 13123if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : 13124 $as_echo_n "(cached) " >&6 13125else 13126 ac_check_lib_save_LIBS=$LIBS 13127LIBS="-ltiff -lz $LIBS" 13128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130 13131/* Override any GCC internal prototype to avoid an error. 13132 Use char because int might match the return type of a GCC 13133 builtin and then its argument prototype would still apply. */ 13134#ifdef __cplusplus 13135extern "C" 13136#endif 13137char TIFFClientOpen (); 13138int 13139main () 13140{ 13141return TIFFClientOpen (); 13142 ; 13143 return 0; 13144} 13145_ACEOF 13146if ac_fn_c_try_link "$LINENO"; then : 13147 ac_cv_lib_tiff_TIFFClientOpen=yes 13148else 13149 ac_cv_lib_tiff_TIFFClientOpen=no 13150fi 13151rm -f core conftest.err conftest.$ac_objext \ 13152 conftest$ac_exeext conftest.$ac_ext 13153LIBS=$ac_check_lib_save_LIBS 13154fi 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 13156$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } 13157if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : 13158 have_tif_lib=yes 13159fi 13160 13161 if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then 13162 $as_echo "#define LOAD_TIF 1" >>confdefs.h 13163 13164 13165 case "$host" in 13166 *-*-darwin*) 13167 tif_lib=`find_lib libtiff.dylib` 13168 ;; 13169 *-*-cygwin* | *-*-mingw32*) 13170 tif_lib=`find_lib "libtiff-*.dll"` 13171 ;; 13172 *) 13173 tif_lib=`find_lib "libtiff[0-9]*.so.*"` 13174 if test x$tif_lib = x; then 13175 tif_lib=`find_lib "libtiff.so.*"` 13176 fi 13177 ;; 13178 esac 13179 else 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&5 13181$as_echo "$as_me: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&2;} 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TIF image loading disabled" >&5 13183$as_echo "$as_me: WARNING: TIF image loading disabled" >&2;} 13184 fi 13185fi 13186 13187if test x$enable_webp = xyes; then 13188 13189pkg_failed=no 13190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBWEBP" >&5 13191$as_echo_n "checking for LIBWEBP... " >&6; } 13192 13193if test -n "$PKG_CONFIG"; then 13194 if test -n "$LIBWEBP_CFLAGS"; then 13195 pkg_cv_LIBWEBP_CFLAGS="$LIBWEBP_CFLAGS" 13196 else 13197 if test -n "$PKG_CONFIG" && \ 13198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 13199 ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 13200 ac_status=$? 13201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13202 test $ac_status = 0; }; then 13203 pkg_cv_LIBWEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null` 13204else 13205 pkg_failed=yes 13206fi 13207 fi 13208else 13209 pkg_failed=untried 13210fi 13211if test -n "$PKG_CONFIG"; then 13212 if test -n "$LIBWEBP_LIBS"; then 13213 pkg_cv_LIBWEBP_LIBS="$LIBWEBP_LIBS" 13214 else 13215 if test -n "$PKG_CONFIG" && \ 13216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5 13217 ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5 13218 ac_status=$? 13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13220 test $ac_status = 0; }; then 13221 pkg_cv_LIBWEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null` 13222else 13223 pkg_failed=yes 13224fi 13225 fi 13226else 13227 pkg_failed=untried 13228fi 13229 13230 13231 13232if test $pkg_failed = yes; then 13233 13234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13235 _pkg_short_errors_supported=yes 13236else 13237 _pkg_short_errors_supported=no 13238fi 13239 if test $_pkg_short_errors_supported = yes; then 13240 LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libwebp"` 13241 else 13242 LIBWEBP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libwebp"` 13243 fi 13244 # Put the nasty error message in config.log where it belongs 13245 echo "$LIBWEBP_PKG_ERRORS" >&5 13246 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248$as_echo "no" >&6; } 13249 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 13250if test "x$ac_cv_header_webp_decode_h" = xyes; then : 13251 13252 have_webp_hdr=yes 13253 LIBWEBP_CFLAGS="" 13254 13255fi 13256 13257 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetDecoderVersion in -lwebp" >&5 13259$as_echo_n "checking for WebPGetDecoderVersion in -lwebp... " >&6; } 13260if ${ac_cv_lib_webp_WebPGetDecoderVersion+:} false; then : 13261 $as_echo_n "(cached) " >&6 13262else 13263 ac_check_lib_save_LIBS=$LIBS 13264LIBS="-lwebp -lm $LIBS" 13265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266/* end confdefs.h. */ 13267 13268/* Override any GCC internal prototype to avoid an error. 13269 Use char because int might match the return type of a GCC 13270 builtin and then its argument prototype would still apply. */ 13271#ifdef __cplusplus 13272extern "C" 13273#endif 13274char WebPGetDecoderVersion (); 13275int 13276main () 13277{ 13278return WebPGetDecoderVersion (); 13279 ; 13280 return 0; 13281} 13282_ACEOF 13283if ac_fn_c_try_link "$LINENO"; then : 13284 ac_cv_lib_webp_WebPGetDecoderVersion=yes 13285else 13286 ac_cv_lib_webp_WebPGetDecoderVersion=no 13287fi 13288rm -f core conftest.err conftest.$ac_objext \ 13289 conftest$ac_exeext conftest.$ac_ext 13290LIBS=$ac_check_lib_save_LIBS 13291fi 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetDecoderVersion" >&5 13293$as_echo "$ac_cv_lib_webp_WebPGetDecoderVersion" >&6; } 13294if test "x$ac_cv_lib_webp_WebPGetDecoderVersion" = xyes; then : 13295 13296 have_webp_lib=yes 13297 LIBWEBP_LIBS="-lwebp" 13298 13299fi 13300 13301 13302elif test $pkg_failed = untried; then 13303 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" 13304if test "x$ac_cv_header_webp_decode_h" = xyes; then : 13305 13306 have_webp_hdr=yes 13307 LIBWEBP_CFLAGS="" 13308 13309fi 13310 13311 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetDecoderVersion in -lwebp" >&5 13313$as_echo_n "checking for WebPGetDecoderVersion in -lwebp... " >&6; } 13314if ${ac_cv_lib_webp_WebPGetDecoderVersion+:} false; then : 13315 $as_echo_n "(cached) " >&6 13316else 13317 ac_check_lib_save_LIBS=$LIBS 13318LIBS="-lwebp -lm $LIBS" 13319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13320/* end confdefs.h. */ 13321 13322/* Override any GCC internal prototype to avoid an error. 13323 Use char because int might match the return type of a GCC 13324 builtin and then its argument prototype would still apply. */ 13325#ifdef __cplusplus 13326extern "C" 13327#endif 13328char WebPGetDecoderVersion (); 13329int 13330main () 13331{ 13332return WebPGetDecoderVersion (); 13333 ; 13334 return 0; 13335} 13336_ACEOF 13337if ac_fn_c_try_link "$LINENO"; then : 13338 ac_cv_lib_webp_WebPGetDecoderVersion=yes 13339else 13340 ac_cv_lib_webp_WebPGetDecoderVersion=no 13341fi 13342rm -f core conftest.err conftest.$ac_objext \ 13343 conftest$ac_exeext conftest.$ac_ext 13344LIBS=$ac_check_lib_save_LIBS 13345fi 13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetDecoderVersion" >&5 13347$as_echo "$ac_cv_lib_webp_WebPGetDecoderVersion" >&6; } 13348if test "x$ac_cv_lib_webp_WebPGetDecoderVersion" = xyes; then : 13349 13350 have_webp_lib=yes 13351 LIBWEBP_LIBS="-lwebp" 13352 13353fi 13354 13355 13356else 13357 LIBWEBP_CFLAGS=$pkg_cv_LIBWEBP_CFLAGS 13358 LIBWEBP_LIBS=$pkg_cv_LIBWEBP_LIBS 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13360$as_echo "yes" >&6; } 13361 have_webp_hdr=yes 13362 have_webp_lib=yes 13363 13364fi 13365 if test x$have_webp_hdr = xyes -a x$have_webp_lib = xyes; then 13366 $as_echo "#define LOAD_WEBP 1" >>confdefs.h 13367 13368 13369 case "$host" in 13370 *-*-darwin*) 13371 webp_lib=`find_lib libwebp.dylib` 13372 ;; 13373 *-*-cygwin* | *-*-mingw32*) 13374 webp_lib=`find_lib "libwebp-*.dll"` 13375 ;; 13376 *) 13377 webp_lib=`find_lib "libwebp[0-9]*.so.*"` 13378 if test x$webp_lib = x; then 13379 webp_lib=`find_lib "libwebp.so.*"` 13380 fi 13381 ;; 13382 esac 13383 else 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Unable to find WEBP library (http://code.google.com/intl/en-US/speed/webp/index.html)" >&5 13385$as_echo "$as_me: WARNING: *** Unable to find WEBP library (http://code.google.com/intl/en-US/speed/webp/index.html)" >&2;} 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WEBP Pimage loading disabled" >&5 13387$as_echo "$as_me: WARNING: WEBP Pimage loading disabled" >&2;} 13388 fi 13389fi 13390 13391if test x$enable_bmp = xyes; then 13392 $as_echo "#define LOAD_BMP 1" >>confdefs.h 13393 13394fi 13395 13396if test x$enable_gif = xyes; then 13397 $as_echo "#define LOAD_GIF 1" >>confdefs.h 13398 13399fi 13400 13401if test x$enable_lbm = xyes; then 13402 $as_echo "#define LOAD_LBM 1" >>confdefs.h 13403 13404fi 13405 13406if test x$enable_pcx = xyes; then 13407 $as_echo "#define LOAD_PCX 1" >>confdefs.h 13408 13409fi 13410 13411if test x$enable_pnm = xyes; then 13412 $as_echo "#define LOAD_PNM 1" >>confdefs.h 13413 13414fi 13415 13416if test x$enable_svg = xyes; then 13417 $as_echo "#define LOAD_SVG 1" >>confdefs.h 13418 13419fi 13420 13421if test x$enable_tga = xyes; then 13422 $as_echo "#define LOAD_TGA 1" >>confdefs.h 13423 13424fi 13425 13426if test x$enable_xcf = xyes; then 13427 $as_echo "#define LOAD_XCF 1" >>confdefs.h 13428 13429fi 13430 13431if test x$enable_xpm = xyes; then 13432 $as_echo "#define LOAD_XPM 1" >>confdefs.h 13433 13434fi 13435 13436if test x$enable_xv = xyes; then 13437 $as_echo "#define LOAD_XV 1" >>confdefs.h 13438 13439fi 13440 13441if test x$enable_webp = xyes -a x$have_webp_hdr = xyes -a x$have_webp_lib = xyes; then 13442 CFLAGS="$LIBWEBP_CFLAGS $CFLAGS" 13443 if test x$enable_webp_shared = xyes && test x$webp_lib != x; then 13444 echo "-- dynamic libwebp -> $webp_lib" 13445 cat >>confdefs.h <<_ACEOF 13446#define LOAD_WEBP_DYNAMIC "$webp_lib" 13447_ACEOF 13448 13449 else 13450 IMG_LIBS="$LIBWEBP_LIBS $IMG_LIBS" 13451 fi 13452fi 13453 13454if test x$enable_tif = xyes -a x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then 13455 if test x$enable_tif_shared = xyes && test x$tif_lib != x; then 13456 echo "-- dynamic libtiff -> $tif_lib" 13457 cat >>confdefs.h <<_ACEOF 13458#define LOAD_TIF_DYNAMIC "$tif_lib" 13459_ACEOF 13460 13461 else 13462 if test x$have_libjpeg = xyes; then 13463 # Disable dynamic jpeg since we're linking it explicitly 13464 jpg_lib='' 13465 fi 13466 IMG_LIBS="-ltiff -lz $IMG_LIBS" 13467 fi 13468fi 13469if test x$enable_jpg = xyes -a x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then 13470 if test x$enable_jpg_shared = xyes && test x$jpg_lib != x; then 13471 echo "-- dynamic libjpeg -> $jpg_lib" 13472 cat >>confdefs.h <<_ACEOF 13473#define LOAD_JPG_DYNAMIC "$jpg_lib" 13474_ACEOF 13475 13476 else 13477 IMG_LIBS="-ljpeg $IMG_LIBS" 13478 fi 13479fi 13480if test x$enable_png = xyes -a x$have_png_hdr = xyes -a x$have_png_lib = xyes; then 13481 CFLAGS="$LIBPNG_CFLAGS $CFLAGS" 13482 if test x$enable_png_shared = xyes && test x$png_lib != x; then 13483 echo "-- dynamic libpng -> $png_lib" 13484 cat >>confdefs.h <<_ACEOF 13485#define LOAD_PNG_DYNAMIC "$png_lib" 13486_ACEOF 13487 13488 else 13489 IMG_LIBS="$LIBPNG_LIBS $IMG_LIBS" 13490 fi 13491fi 13492 13493LIBS="$saved_LIBS" 13494 13495 13496 13497 13498OBJCFLAGS=$CFLAGS 13499 13500# Finally create all the generated files 13501ac_config_files="$ac_config_files Makefile SDL2_image.spec SDL2_image.pc" 13502 13503cat >confcache <<\_ACEOF 13504# This file is a shell script that caches the results of configure 13505# tests run on this system so they can be shared between configure 13506# scripts and configure runs, see configure's option --config-cache. 13507# It is not useful on other systems. If it contains results you don't 13508# want to keep, you may remove or edit it. 13509# 13510# config.status only pays attention to the cache file if you give it 13511# the --recheck option to rerun configure. 13512# 13513# `ac_cv_env_foo' variables (set or unset) will be overridden when 13514# loading this file, other *unset* `ac_cv_foo' will be assigned the 13515# following values. 13516 13517_ACEOF 13518 13519# The following way of writing the cache mishandles newlines in values, 13520# but we know of no workaround that is simple, portable, and efficient. 13521# So, we kill variables containing newlines. 13522# Ultrix sh set writes to stderr and can't be redirected directly, 13523# and sets the high bit in the cache file unless we assign to the vars. 13524( 13525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13526 eval ac_val=\$$ac_var 13527 case $ac_val in #( 13528 *${as_nl}*) 13529 case $ac_var in #( 13530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13531$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13532 esac 13533 case $ac_var in #( 13534 _ | IFS | as_nl) ;; #( 13535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13536 *) { eval $ac_var=; unset $ac_var;} ;; 13537 esac ;; 13538 esac 13539 done 13540 13541 (set) 2>&1 | 13542 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13543 *${as_nl}ac_space=\ *) 13544 # `set' does not quote correctly, so add quotes: double-quote 13545 # substitution turns \\\\ into \\, and sed turns \\ into \. 13546 sed -n \ 13547 "s/'/'\\\\''/g; 13548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13549 ;; #( 13550 *) 13551 # `set' quotes correctly as required by POSIX, so do not add quotes. 13552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13553 ;; 13554 esac | 13555 sort 13556) | 13557 sed ' 13558 /^ac_cv_env_/b end 13559 t clear 13560 :clear 13561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13562 t end 13563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13564 :end' >>confcache 13565if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13566 if test -w "$cache_file"; then 13567 if test "x$cache_file" != "x/dev/null"; then 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13569$as_echo "$as_me: updating cache $cache_file" >&6;} 13570 if test ! -f "$cache_file" || test -h "$cache_file"; then 13571 cat confcache >"$cache_file" 13572 else 13573 case $cache_file in #( 13574 */* | ?:*) 13575 mv -f confcache "$cache_file"$$ && 13576 mv -f "$cache_file"$$ "$cache_file" ;; #( 13577 *) 13578 mv -f confcache "$cache_file" ;; 13579 esac 13580 fi 13581 fi 13582 else 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13584$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13585 fi 13586fi 13587rm -f confcache 13588 13589test "x$prefix" = xNONE && prefix=$ac_default_prefix 13590# Let make expand exec_prefix. 13591test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13592 13593# Transform confdefs.h into DEFS. 13594# Protect against shell expansion while executing Makefile rules. 13595# Protect against Makefile macro expansion. 13596# 13597# If the first sed substitution is executed (which looks for macros that 13598# take arguments), then branch to the quote section. Otherwise, 13599# look for a macro that doesn't take arguments. 13600ac_script=' 13601:mline 13602/\\$/{ 13603 N 13604 s,\\\n,, 13605 b mline 13606} 13607t clear 13608:clear 13609s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 13610t quote 13611s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 13612t quote 13613b any 13614:quote 13615s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 13616s/\[/\\&/g 13617s/\]/\\&/g 13618s/\$/$$/g 13619H 13620:any 13621${ 13622 g 13623 s/^\n// 13624 s/\n/ /g 13625 p 13626} 13627' 13628DEFS=`sed -n "$ac_script" confdefs.h` 13629 13630 13631ac_libobjs= 13632ac_ltlibobjs= 13633U= 13634for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13635 # 1. Remove the extension, and $U if already installed. 13636 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13637 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13638 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13639 # will be set to the directory where LIBOBJS objects are built. 13640 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13641 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13642done 13643LIBOBJS=$ac_libobjs 13644 13645LTLIBOBJS=$ac_ltlibobjs 13646 13647 13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13649$as_echo_n "checking that generated files are newer than configure... " >&6; } 13650 if test -n "$am_sleep_pid"; then 13651 # Hide warnings about reused PIDs. 13652 wait $am_sleep_pid 2>/dev/null 13653 fi 13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13655$as_echo "done" >&6; } 13656if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13657 as_fn_error $? "conditional \"AMDEP\" was never defined. 13658Usually this means the macro was only invoked conditionally." "$LINENO" 5 13659fi 13660if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13661 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13662Usually this means the macro was only invoked conditionally." "$LINENO" 5 13663fi 13664 if test -n "$EXEEXT"; then 13665 am__EXEEXT_TRUE= 13666 am__EXEEXT_FALSE='#' 13667else 13668 am__EXEEXT_TRUE='#' 13669 am__EXEEXT_FALSE= 13670fi 13671 13672if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then 13673 as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined. 13674Usually this means the macro was only invoked conditionally." "$LINENO" 5 13675fi 13676if test -z "${USE_IMAGEIO_TRUE}" && test -z "${USE_IMAGEIO_FALSE}"; then 13677 as_fn_error $? "conditional \"USE_IMAGEIO\" was never defined. 13678Usually this means the macro was only invoked conditionally." "$LINENO" 5 13679fi 13680if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then 13681 as_fn_error $? "conditional \"USE_VERSION_RC\" was never defined. 13682Usually this means the macro was only invoked conditionally." "$LINENO" 5 13683fi 13684 13685: "${CONFIG_STATUS=./config.status}" 13686ac_write_fail=0 13687ac_clean_files_save=$ac_clean_files 13688ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13689{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13690$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13691as_write_fail=0 13692cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13693#! $SHELL 13694# Generated by $as_me. 13695# Run this file to recreate the current configuration. 13696# Compiler output produced by configure, useful for debugging 13697# configure, is in config.log if it exists. 13698 13699debug=false 13700ac_cs_recheck=false 13701ac_cs_silent=false 13702 13703SHELL=\${CONFIG_SHELL-$SHELL} 13704export SHELL 13705_ASEOF 13706cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13707## -------------------- ## 13708## M4sh Initialization. ## 13709## -------------------- ## 13710 13711# Be more Bourne compatible 13712DUALCASE=1; export DUALCASE # for MKS sh 13713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13714 emulate sh 13715 NULLCMD=: 13716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13717 # is contrary to our usage. Disable this feature. 13718 alias -g '${1+"$@"}'='"$@"' 13719 setopt NO_GLOB_SUBST 13720else 13721 case `(set -o) 2>/dev/null` in #( 13722 *posix*) : 13723 set -o posix ;; #( 13724 *) : 13725 ;; 13726esac 13727fi 13728 13729 13730as_nl=' 13731' 13732export as_nl 13733# Printing a long string crashes Solaris 7 /usr/bin/printf. 13734as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13737# Prefer a ksh shell builtin over an external printf program on Solaris, 13738# but without wasting forks for bash or zsh. 13739if test -z "$BASH_VERSION$ZSH_VERSION" \ 13740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13741 as_echo='print -r --' 13742 as_echo_n='print -rn --' 13743elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13744 as_echo='printf %s\n' 13745 as_echo_n='printf %s' 13746else 13747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13749 as_echo_n='/usr/ucb/echo -n' 13750 else 13751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13752 as_echo_n_body='eval 13753 arg=$1; 13754 case $arg in #( 13755 *"$as_nl"*) 13756 expr "X$arg" : "X\\(.*\\)$as_nl"; 13757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13758 esac; 13759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13760 ' 13761 export as_echo_n_body 13762 as_echo_n='sh -c $as_echo_n_body as_echo' 13763 fi 13764 export as_echo_body 13765 as_echo='sh -c $as_echo_body as_echo' 13766fi 13767 13768# The user is always right. 13769if test "${PATH_SEPARATOR+set}" != set; then 13770 PATH_SEPARATOR=: 13771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13773 PATH_SEPARATOR=';' 13774 } 13775fi 13776 13777 13778# IFS 13779# We need space, tab and new line, in precisely that order. Quoting is 13780# there to prevent editors from complaining about space-tab. 13781# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13782# splitting by setting IFS to empty value.) 13783IFS=" "" $as_nl" 13784 13785# Find who we are. Look in the path if we contain no directory separator. 13786as_myself= 13787case $0 in #(( 13788 *[\\/]* ) as_myself=$0 ;; 13789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13790for as_dir in $PATH 13791do 13792 IFS=$as_save_IFS 13793 test -z "$as_dir" && as_dir=. 13794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13795 done 13796IFS=$as_save_IFS 13797 13798 ;; 13799esac 13800# We did not find ourselves, most probably we were run as `sh COMMAND' 13801# in which case we are not to be found in the path. 13802if test "x$as_myself" = x; then 13803 as_myself=$0 13804fi 13805if test ! -f "$as_myself"; then 13806 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13807 exit 1 13808fi 13809 13810# Unset variables that we do not need and which cause bugs (e.g. in 13811# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13812# suppresses any "Segmentation fault" message there. '((' could 13813# trigger a bug in pdksh 5.2.14. 13814for as_var in BASH_ENV ENV MAIL MAILPATH 13815do eval test x\${$as_var+set} = xset \ 13816 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13817done 13818PS1='$ ' 13819PS2='> ' 13820PS4='+ ' 13821 13822# NLS nuisances. 13823LC_ALL=C 13824export LC_ALL 13825LANGUAGE=C 13826export LANGUAGE 13827 13828# CDPATH. 13829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13830 13831 13832# as_fn_error STATUS ERROR [LINENO LOG_FD] 13833# ---------------------------------------- 13834# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13835# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13836# script with STATUS, using 1 if that was 0. 13837as_fn_error () 13838{ 13839 as_status=$1; test $as_status -eq 0 && as_status=1 13840 if test "$4"; then 13841 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13842 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13843 fi 13844 $as_echo "$as_me: error: $2" >&2 13845 as_fn_exit $as_status 13846} # as_fn_error 13847 13848 13849# as_fn_set_status STATUS 13850# ----------------------- 13851# Set $? to STATUS, without forking. 13852as_fn_set_status () 13853{ 13854 return $1 13855} # as_fn_set_status 13856 13857# as_fn_exit STATUS 13858# ----------------- 13859# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13860as_fn_exit () 13861{ 13862 set +e 13863 as_fn_set_status $1 13864 exit $1 13865} # as_fn_exit 13866 13867# as_fn_unset VAR 13868# --------------- 13869# Portably unset VAR. 13870as_fn_unset () 13871{ 13872 { eval $1=; unset $1;} 13873} 13874as_unset=as_fn_unset 13875# as_fn_append VAR VALUE 13876# ---------------------- 13877# Append the text in VALUE to the end of the definition contained in VAR. Take 13878# advantage of any shell optimizations that allow amortized linear growth over 13879# repeated appends, instead of the typical quadratic growth present in naive 13880# implementations. 13881if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13882 eval 'as_fn_append () 13883 { 13884 eval $1+=\$2 13885 }' 13886else 13887 as_fn_append () 13888 { 13889 eval $1=\$$1\$2 13890 } 13891fi # as_fn_append 13892 13893# as_fn_arith ARG... 13894# ------------------ 13895# Perform arithmetic evaluation on the ARGs, and store the result in the 13896# global $as_val. Take advantage of shells that can avoid forks. The arguments 13897# must be portable across $(()) and expr. 13898if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13899 eval 'as_fn_arith () 13900 { 13901 as_val=$(( $* )) 13902 }' 13903else 13904 as_fn_arith () 13905 { 13906 as_val=`expr "$@" || test $? -eq 1` 13907 } 13908fi # as_fn_arith 13909 13910 13911if expr a : '\(a\)' >/dev/null 2>&1 && 13912 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13913 as_expr=expr 13914else 13915 as_expr=false 13916fi 13917 13918if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13919 as_basename=basename 13920else 13921 as_basename=false 13922fi 13923 13924if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13925 as_dirname=dirname 13926else 13927 as_dirname=false 13928fi 13929 13930as_me=`$as_basename -- "$0" || 13931$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13932 X"$0" : 'X\(//\)$' \| \ 13933 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13934$as_echo X/"$0" | 13935 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13936 s//\1/ 13937 q 13938 } 13939 /^X\/\(\/\/\)$/{ 13940 s//\1/ 13941 q 13942 } 13943 /^X\/\(\/\).*/{ 13944 s//\1/ 13945 q 13946 } 13947 s/.*/./; q'` 13948 13949# Avoid depending upon Character Ranges. 13950as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13951as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13952as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13953as_cr_digits='0123456789' 13954as_cr_alnum=$as_cr_Letters$as_cr_digits 13955 13956ECHO_C= ECHO_N= ECHO_T= 13957case `echo -n x` in #((((( 13958-n*) 13959 case `echo 'xy\c'` in 13960 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13961 xy) ECHO_C='\c';; 13962 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13963 ECHO_T=' ';; 13964 esac;; 13965*) 13966 ECHO_N='-n';; 13967esac 13968 13969rm -f conf$$ conf$$.exe conf$$.file 13970if test -d conf$$.dir; then 13971 rm -f conf$$.dir/conf$$.file 13972else 13973 rm -f conf$$.dir 13974 mkdir conf$$.dir 2>/dev/null 13975fi 13976if (echo >conf$$.file) 2>/dev/null; then 13977 if ln -s conf$$.file conf$$ 2>/dev/null; then 13978 as_ln_s='ln -s' 13979 # ... but there are two gotchas: 13980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13982 # In both cases, we have to default to `cp -pR'. 13983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13984 as_ln_s='cp -pR' 13985 elif ln conf$$.file conf$$ 2>/dev/null; then 13986 as_ln_s=ln 13987 else 13988 as_ln_s='cp -pR' 13989 fi 13990else 13991 as_ln_s='cp -pR' 13992fi 13993rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13994rmdir conf$$.dir 2>/dev/null 13995 13996 13997# as_fn_mkdir_p 13998# ------------- 13999# Create "$as_dir" as a directory, including parents if necessary. 14000as_fn_mkdir_p () 14001{ 14002 14003 case $as_dir in #( 14004 -*) as_dir=./$as_dir;; 14005 esac 14006 test -d "$as_dir" || eval $as_mkdir_p || { 14007 as_dirs= 14008 while :; do 14009 case $as_dir in #( 14010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14011 *) as_qdir=$as_dir;; 14012 esac 14013 as_dirs="'$as_qdir' $as_dirs" 14014 as_dir=`$as_dirname -- "$as_dir" || 14015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14016 X"$as_dir" : 'X\(//\)[^/]' \| \ 14017 X"$as_dir" : 'X\(//\)$' \| \ 14018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14019$as_echo X"$as_dir" | 14020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14021 s//\1/ 14022 q 14023 } 14024 /^X\(\/\/\)[^/].*/{ 14025 s//\1/ 14026 q 14027 } 14028 /^X\(\/\/\)$/{ 14029 s//\1/ 14030 q 14031 } 14032 /^X\(\/\).*/{ 14033 s//\1/ 14034 q 14035 } 14036 s/.*/./; q'` 14037 test -d "$as_dir" && break 14038 done 14039 test -z "$as_dirs" || eval "mkdir $as_dirs" 14040 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14041 14042 14043} # as_fn_mkdir_p 14044if mkdir -p . 2>/dev/null; then 14045 as_mkdir_p='mkdir -p "$as_dir"' 14046else 14047 test -d ./-p && rmdir ./-p 14048 as_mkdir_p=false 14049fi 14050 14051 14052# as_fn_executable_p FILE 14053# ----------------------- 14054# Test if FILE is an executable regular file. 14055as_fn_executable_p () 14056{ 14057 test -f "$1" && test -x "$1" 14058} # as_fn_executable_p 14059as_test_x='test -x' 14060as_executable_p=as_fn_executable_p 14061 14062# Sed expression to map a string onto a valid CPP name. 14063as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14064 14065# Sed expression to map a string onto a valid variable name. 14066as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14067 14068 14069exec 6>&1 14070## ----------------------------------- ## 14071## Main body of $CONFIG_STATUS script. ## 14072## ----------------------------------- ## 14073_ASEOF 14074test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14075 14076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14077# Save the log message, to keep $0 and so on meaningful, and to 14078# report actual input values of CONFIG_FILES etc. instead of their 14079# values after options handling. 14080ac_log=" 14081This file was extended by $as_me, which was 14082generated by GNU Autoconf 2.69. Invocation command line was 14083 14084 CONFIG_FILES = $CONFIG_FILES 14085 CONFIG_HEADERS = $CONFIG_HEADERS 14086 CONFIG_LINKS = $CONFIG_LINKS 14087 CONFIG_COMMANDS = $CONFIG_COMMANDS 14088 $ $0 $@ 14089 14090on `(hostname || uname -n) 2>/dev/null | sed 1q` 14091" 14092 14093_ACEOF 14094 14095case $ac_config_files in *" 14096"*) set x $ac_config_files; shift; ac_config_files=$*;; 14097esac 14098 14099 14100 14101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14102# Files that config.status was made for. 14103config_files="$ac_config_files" 14104config_commands="$ac_config_commands" 14105 14106_ACEOF 14107 14108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14109ac_cs_usage="\ 14110\`$as_me' instantiates files and other configuration actions 14111from templates according to the current configuration. Unless the files 14112and actions are specified as TAGs, all are instantiated by default. 14113 14114Usage: $0 [OPTION]... [TAG]... 14115 14116 -h, --help print this help, then exit 14117 -V, --version print version number and configuration settings, then exit 14118 --config print configuration, then exit 14119 -q, --quiet, --silent 14120 do not print progress messages 14121 -d, --debug don't remove temporary files 14122 --recheck update $as_me by reconfiguring in the same conditions 14123 --file=FILE[:TEMPLATE] 14124 instantiate the configuration file FILE 14125 14126Configuration files: 14127$config_files 14128 14129Configuration commands: 14130$config_commands 14131 14132Report bugs to the package provider." 14133 14134_ACEOF 14135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14136ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14137ac_cs_version="\\ 14138config.status 14139configured by $0, generated by GNU Autoconf 2.69, 14140 with options \\"\$ac_cs_config\\" 14141 14142Copyright (C) 2012 Free Software Foundation, Inc. 14143This config.status script is free software; the Free Software Foundation 14144gives unlimited permission to copy, distribute and modify it." 14145 14146ac_pwd='$ac_pwd' 14147srcdir='$srcdir' 14148INSTALL='$INSTALL' 14149MKDIR_P='$MKDIR_P' 14150AWK='$AWK' 14151test -n "\$AWK" || AWK=awk 14152_ACEOF 14153 14154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14155# The default lists apply if the user does not specify any file. 14156ac_need_defaults=: 14157while test $# != 0 14158do 14159 case $1 in 14160 --*=?*) 14161 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14163 ac_shift=: 14164 ;; 14165 --*=) 14166 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14167 ac_optarg= 14168 ac_shift=: 14169 ;; 14170 *) 14171 ac_option=$1 14172 ac_optarg=$2 14173 ac_shift=shift 14174 ;; 14175 esac 14176 14177 case $ac_option in 14178 # Handling of the options. 14179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14180 ac_cs_recheck=: ;; 14181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14182 $as_echo "$ac_cs_version"; exit ;; 14183 --config | --confi | --conf | --con | --co | --c ) 14184 $as_echo "$ac_cs_config"; exit ;; 14185 --debug | --debu | --deb | --de | --d | -d ) 14186 debug=: ;; 14187 --file | --fil | --fi | --f ) 14188 $ac_shift 14189 case $ac_optarg in 14190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14191 '') as_fn_error $? "missing file argument" ;; 14192 esac 14193 as_fn_append CONFIG_FILES " '$ac_optarg'" 14194 ac_need_defaults=false;; 14195 --he | --h | --help | --hel | -h ) 14196 $as_echo "$ac_cs_usage"; exit ;; 14197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14198 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14199 ac_cs_silent=: ;; 14200 14201 # This is an error. 14202 -*) as_fn_error $? "unrecognized option: \`$1' 14203Try \`$0 --help' for more information." ;; 14204 14205 *) as_fn_append ac_config_targets " $1" 14206 ac_need_defaults=false ;; 14207 14208 esac 14209 shift 14210done 14211 14212ac_configure_extra_args= 14213 14214if $ac_cs_silent; then 14215 exec 6>/dev/null 14216 ac_configure_extra_args="$ac_configure_extra_args --silent" 14217fi 14218 14219_ACEOF 14220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14221if \$ac_cs_recheck; then 14222 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14223 shift 14224 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14225 CONFIG_SHELL='$SHELL' 14226 export CONFIG_SHELL 14227 exec "\$@" 14228fi 14229 14230_ACEOF 14231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14232exec 5>>config.log 14233{ 14234 echo 14235 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14236## Running $as_me. ## 14237_ASBOX 14238 $as_echo "$ac_log" 14239} >&5 14240 14241_ACEOF 14242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14243# 14244# INIT-COMMANDS 14245# 14246 14247 14248# The HP-UX ksh and POSIX shell print the target directory to stdout 14249# if CDPATH is set. 14250(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14251 14252sed_quote_subst='$sed_quote_subst' 14253double_quote_subst='$double_quote_subst' 14254delay_variable_subst='$delay_variable_subst' 14255macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 14256macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 14257AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 14258DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14259OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 14260enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 14261enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 14262pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 14263enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 14264host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 14265host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 14266host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 14267build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 14268build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 14269build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 14270SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 14271Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 14272GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 14273EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 14274FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 14275LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 14276NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 14277LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 14278max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 14279ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 14280exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 14281lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 14282lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 14283lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 14284reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 14285reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14286deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 14287file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 14288AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 14289AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14290STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 14291RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 14292old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14293old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14294old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14295CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 14296CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 14297compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 14298GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 14299lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 14300lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 14301lt_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"`' 14302lt_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"`' 14303objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 14304SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 14305ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 14306MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 14307lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 14308lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 14309lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 14310lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 14311lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 14312need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 14313DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 14314NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 14315LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 14316OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 14317OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 14318libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 14319shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14320extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14321archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 14322enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 14323export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14324whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14325compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 14326old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14327old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14328archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14329archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14330module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14331module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14332with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 14333allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14334no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 14335hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 14336hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 14337hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 14338hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 14339hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 14340hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 14341hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14342hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 14343inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 14344link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 14345fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 14346always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 14347export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14348exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14349include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 14350prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14351file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 14352variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 14353need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 14354need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 14355version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 14356runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14357shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 14358shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 14359libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14360library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 14361soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 14362postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14363postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14364finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 14365finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 14366hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 14367sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14368sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 14369hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 14370enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 14371enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 14372enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 14373old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 14374striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 14375 14376LTCC='$LTCC' 14377LTCFLAGS='$LTCFLAGS' 14378compiler='$compiler_DEFAULT' 14379 14380# Quote evaled strings. 14381for var in SED \ 14382GREP \ 14383EGREP \ 14384FGREP \ 14385LD \ 14386NM \ 14387LN_S \ 14388lt_SP2NL \ 14389lt_NL2SP \ 14390reload_flag \ 14391deplibs_check_method \ 14392file_magic_cmd \ 14393AR \ 14394AR_FLAGS \ 14395STRIP \ 14396RANLIB \ 14397CC \ 14398CFLAGS \ 14399compiler \ 14400lt_cv_sys_global_symbol_pipe \ 14401lt_cv_sys_global_symbol_to_cdecl \ 14402lt_cv_sys_global_symbol_to_c_name_address \ 14403lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14404SHELL \ 14405ECHO \ 14406lt_prog_compiler_no_builtin_flag \ 14407lt_prog_compiler_wl \ 14408lt_prog_compiler_pic \ 14409lt_prog_compiler_static \ 14410lt_cv_prog_compiler_c_o \ 14411need_locks \ 14412DSYMUTIL \ 14413NMEDIT \ 14414LIPO \ 14415OTOOL \ 14416OTOOL64 \ 14417shrext_cmds \ 14418export_dynamic_flag_spec \ 14419whole_archive_flag_spec \ 14420compiler_needs_object \ 14421with_gnu_ld \ 14422allow_undefined_flag \ 14423no_undefined_flag \ 14424hardcode_libdir_flag_spec \ 14425hardcode_libdir_flag_spec_ld \ 14426hardcode_libdir_separator \ 14427fix_srcfile_path \ 14428exclude_expsyms \ 14429include_expsyms \ 14430file_list_spec \ 14431variables_saved_for_relink \ 14432libname_spec \ 14433library_names_spec \ 14434soname_spec \ 14435finish_eval \ 14436old_striplib \ 14437striplib; do 14438 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14439 *[\\\\\\\`\\"\\\$]*) 14440 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14441 ;; 14442 *) 14443 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14444 ;; 14445 esac 14446done 14447 14448# Double-quote double-evaled strings. 14449for var in reload_cmds \ 14450old_postinstall_cmds \ 14451old_postuninstall_cmds \ 14452old_archive_cmds \ 14453extract_expsyms_cmds \ 14454old_archive_from_new_cmds \ 14455old_archive_from_expsyms_cmds \ 14456archive_cmds \ 14457archive_expsym_cmds \ 14458module_cmds \ 14459module_expsym_cmds \ 14460export_symbols_cmds \ 14461prelink_cmds \ 14462postinstall_cmds \ 14463postuninstall_cmds \ 14464finish_cmds \ 14465sys_lib_search_path_spec \ 14466sys_lib_dlsearch_path_spec; do 14467 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 14468 *[\\\\\\\`\\"\\\$]*) 14469 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14470 ;; 14471 *) 14472 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14473 ;; 14474 esac 14475done 14476 14477# Fix-up fallback echo if it was mangled by the above quoting rules. 14478case \$lt_ECHO in 14479*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 14480 ;; 14481esac 14482 14483ac_aux_dir='$ac_aux_dir' 14484xsi_shell='$xsi_shell' 14485lt_shell_append='$lt_shell_append' 14486 14487# See if we are running on zsh, and set the options which allow our 14488# commands through without removal of \ escapes INIT. 14489if test -n "\${ZSH_VERSION+set}" ; then 14490 setopt NO_GLOB_SUBST 14491fi 14492 14493 14494 PACKAGE='$PACKAGE' 14495 VERSION='$VERSION' 14496 TIMESTAMP='$TIMESTAMP' 14497 RM='$RM' 14498 ofile='$ofile' 14499 14500 14501 14502AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14503 14504_ACEOF 14505 14506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14507 14508# Handling of arguments. 14509for ac_config_target in $ac_config_targets 14510do 14511 case $ac_config_target in 14512 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14513 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14514 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14515 "SDL2_image.spec") CONFIG_FILES="$CONFIG_FILES SDL2_image.spec" ;; 14516 "SDL2_image.pc") CONFIG_FILES="$CONFIG_FILES SDL2_image.pc" ;; 14517 14518 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14519 esac 14520done 14521 14522 14523# If the user did not use the arguments to specify the items to instantiate, 14524# then the envvar interface is used. Set only those that are not. 14525# We use the long form for the default assignment because of an extremely 14526# bizarre bug on SunOS 4.1.3. 14527if $ac_need_defaults; then 14528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14530fi 14531 14532# Have a temporary directory for convenience. Make it in the build tree 14533# simply because there is no reason against having it here, and in addition, 14534# creating and moving files from /tmp can sometimes cause problems. 14535# Hook for its removal unless debugging. 14536# Note that there is a small window in which the directory will not be cleaned: 14537# after its creation but before its name has been assigned to `$tmp'. 14538$debug || 14539{ 14540 tmp= ac_tmp= 14541 trap 'exit_status=$? 14542 : "${ac_tmp:=$tmp}" 14543 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14544' 0 14545 trap 'as_fn_exit 1' 1 2 13 15 14546} 14547# Create a (secure) tmp directory for tmp files. 14548 14549{ 14550 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14551 test -d "$tmp" 14552} || 14553{ 14554 tmp=./conf$$-$RANDOM 14555 (umask 077 && mkdir "$tmp") 14556} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14557ac_tmp=$tmp 14558 14559# Set up the scripts for CONFIG_FILES section. 14560# No need to generate them if there are no CONFIG_FILES. 14561# This happens for instance with `./config.status config.h'. 14562if test -n "$CONFIG_FILES"; then 14563 14564 14565ac_cr=`echo X | tr X '\015'` 14566# On cygwin, bash can eat \r inside `` if the user requested igncr. 14567# But we know of no other shell where ac_cr would be empty at this 14568# point, so we can use a bashism as a fallback. 14569if test "x$ac_cr" = x; then 14570 eval ac_cr=\$\'\\r\' 14571fi 14572ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14573if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14574 ac_cs_awk_cr='\\r' 14575else 14576 ac_cs_awk_cr=$ac_cr 14577fi 14578 14579echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14580_ACEOF 14581 14582 14583{ 14584 echo "cat >conf$$subs.awk <<_ACEOF" && 14585 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14586 echo "_ACEOF" 14587} >conf$$subs.sh || 14588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14589ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14590ac_delim='%!_!# ' 14591for ac_last_try in false false false false false :; do 14592 . ./conf$$subs.sh || 14593 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14594 14595 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14596 if test $ac_delim_n = $ac_delim_num; then 14597 break 14598 elif $ac_last_try; then 14599 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14600 else 14601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14602 fi 14603done 14604rm -f conf$$subs.sh 14605 14606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14607cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14608_ACEOF 14609sed -n ' 14610h 14611s/^/S["/; s/!.*/"]=/ 14612p 14613g 14614s/^[^!]*!// 14615:repl 14616t repl 14617s/'"$ac_delim"'$// 14618t delim 14619:nl 14620h 14621s/\(.\{148\}\)..*/\1/ 14622t more1 14623s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14624p 14625n 14626b repl 14627:more1 14628s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14629p 14630g 14631s/.\{148\}// 14632t nl 14633:delim 14634h 14635s/\(.\{148\}\)..*/\1/ 14636t more2 14637s/["\\]/\\&/g; s/^/"/; s/$/"/ 14638p 14639b 14640:more2 14641s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14642p 14643g 14644s/.\{148\}// 14645t delim 14646' <conf$$subs.awk | sed ' 14647/^[^""]/{ 14648 N 14649 s/\n// 14650} 14651' >>$CONFIG_STATUS || ac_write_fail=1 14652rm -f conf$$subs.awk 14653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14654_ACAWK 14655cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14656 for (key in S) S_is_set[key] = 1 14657 FS = "" 14658 14659} 14660{ 14661 line = $ 0 14662 nfields = split(line, field, "@") 14663 substed = 0 14664 len = length(field[1]) 14665 for (i = 2; i < nfields; i++) { 14666 key = field[i] 14667 keylen = length(key) 14668 if (S_is_set[key]) { 14669 value = S[key] 14670 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14671 len += length(value) + length(field[++i]) 14672 substed = 1 14673 } else 14674 len += 1 + keylen 14675 } 14676 14677 print line 14678} 14679 14680_ACAWK 14681_ACEOF 14682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14683if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14684 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14685else 14686 cat 14687fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14688 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14689_ACEOF 14690 14691# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14692# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14693# trailing colons and then remove the whole line if VPATH becomes empty 14694# (actually we leave an empty line to preserve line numbers). 14695if test "x$srcdir" = x.; then 14696 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14697h 14698s/// 14699s/^/:/ 14700s/[ ]*$/:/ 14701s/:\$(srcdir):/:/g 14702s/:\${srcdir}:/:/g 14703s/:@srcdir@:/:/g 14704s/^:*// 14705s/:*$// 14706x 14707s/\(=[ ]*\).*/\1/ 14708G 14709s/\n// 14710s/^[^=]*=[ ]*$// 14711}' 14712fi 14713 14714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14715fi # test -n "$CONFIG_FILES" 14716 14717 14718eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 14719shift 14720for ac_tag 14721do 14722 case $ac_tag in 14723 :[FHLC]) ac_mode=$ac_tag; continue;; 14724 esac 14725 case $ac_mode$ac_tag in 14726 :[FHL]*:*);; 14727 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14728 :[FH]-) ac_tag=-:-;; 14729 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14730 esac 14731 ac_save_IFS=$IFS 14732 IFS=: 14733 set x $ac_tag 14734 IFS=$ac_save_IFS 14735 shift 14736 ac_file=$1 14737 shift 14738 14739 case $ac_mode in 14740 :L) ac_source=$1;; 14741 :[FH]) 14742 ac_file_inputs= 14743 for ac_f 14744 do 14745 case $ac_f in 14746 -) ac_f="$ac_tmp/stdin";; 14747 *) # Look for the file first in the build tree, then in the source tree 14748 # (if the path is not absolute). The absolute path cannot be DOS-style, 14749 # because $ac_f cannot contain `:'. 14750 test -f "$ac_f" || 14751 case $ac_f in 14752 [\\/$]*) false;; 14753 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14754 esac || 14755 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14756 esac 14757 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14758 as_fn_append ac_file_inputs " '$ac_f'" 14759 done 14760 14761 # Let's still pretend it is `configure' which instantiates (i.e., don't 14762 # use $as_me), people would be surprised to read: 14763 # /* config.h. Generated by config.status. */ 14764 configure_input='Generated from '` 14765 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14766 `' by configure.' 14767 if test x"$ac_file" != x-; then 14768 configure_input="$ac_file. $configure_input" 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14770$as_echo "$as_me: creating $ac_file" >&6;} 14771 fi 14772 # Neutralize special characters interpreted by sed in replacement strings. 14773 case $configure_input in #( 14774 *\&* | *\|* | *\\* ) 14775 ac_sed_conf_input=`$as_echo "$configure_input" | 14776 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14777 *) ac_sed_conf_input=$configure_input;; 14778 esac 14779 14780 case $ac_tag in 14781 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14783 esac 14784 ;; 14785 esac 14786 14787 ac_dir=`$as_dirname -- "$ac_file" || 14788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14789 X"$ac_file" : 'X\(//\)[^/]' \| \ 14790 X"$ac_file" : 'X\(//\)$' \| \ 14791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14792$as_echo X"$ac_file" | 14793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14794 s//\1/ 14795 q 14796 } 14797 /^X\(\/\/\)[^/].*/{ 14798 s//\1/ 14799 q 14800 } 14801 /^X\(\/\/\)$/{ 14802 s//\1/ 14803 q 14804 } 14805 /^X\(\/\).*/{ 14806 s//\1/ 14807 q 14808 } 14809 s/.*/./; q'` 14810 as_dir="$ac_dir"; as_fn_mkdir_p 14811 ac_builddir=. 14812 14813case "$ac_dir" in 14814.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14815*) 14816 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14817 # A ".." for each directory in $ac_dir_suffix. 14818 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14819 case $ac_top_builddir_sub in 14820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14822 esac ;; 14823esac 14824ac_abs_top_builddir=$ac_pwd 14825ac_abs_builddir=$ac_pwd$ac_dir_suffix 14826# for backward compatibility: 14827ac_top_builddir=$ac_top_build_prefix 14828 14829case $srcdir in 14830 .) # We are building in place. 14831 ac_srcdir=. 14832 ac_top_srcdir=$ac_top_builddir_sub 14833 ac_abs_top_srcdir=$ac_pwd ;; 14834 [\\/]* | ?:[\\/]* ) # Absolute name. 14835 ac_srcdir=$srcdir$ac_dir_suffix; 14836 ac_top_srcdir=$srcdir 14837 ac_abs_top_srcdir=$srcdir ;; 14838 *) # Relative name. 14839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14840 ac_top_srcdir=$ac_top_build_prefix$srcdir 14841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14842esac 14843ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14844 14845 14846 case $ac_mode in 14847 :F) 14848 # 14849 # CONFIG_FILE 14850 # 14851 14852 case $INSTALL in 14853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14854 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14855 esac 14856 ac_MKDIR_P=$MKDIR_P 14857 case $MKDIR_P in 14858 [\\/$]* | ?:[\\/]* ) ;; 14859 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14860 esac 14861_ACEOF 14862 14863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14864# If the template does not know about datarootdir, expand it. 14865# FIXME: This hack should be removed a few years after 2.60. 14866ac_datarootdir_hack=; ac_datarootdir_seen= 14867ac_sed_dataroot=' 14868/datarootdir/ { 14869 p 14870 q 14871} 14872/@datadir@/p 14873/@docdir@/p 14874/@infodir@/p 14875/@localedir@/p 14876/@mandir@/p' 14877case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14878*datarootdir*) ac_datarootdir_seen=yes;; 14879*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14881$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14882_ACEOF 14883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14884 ac_datarootdir_hack=' 14885 s&@datadir@&$datadir&g 14886 s&@docdir@&$docdir&g 14887 s&@infodir@&$infodir&g 14888 s&@localedir@&$localedir&g 14889 s&@mandir@&$mandir&g 14890 s&\\\${datarootdir}&$datarootdir&g' ;; 14891esac 14892_ACEOF 14893 14894# Neutralize VPATH when `$srcdir' = `.'. 14895# Shell code in configure.ac might set extrasub. 14896# FIXME: do we really want to maintain this feature? 14897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14898ac_sed_extra="$ac_vpsub 14899$extrasub 14900_ACEOF 14901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14902:t 14903/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14904s|@configure_input@|$ac_sed_conf_input|;t t 14905s&@top_builddir@&$ac_top_builddir_sub&;t t 14906s&@top_build_prefix@&$ac_top_build_prefix&;t t 14907s&@srcdir@&$ac_srcdir&;t t 14908s&@abs_srcdir@&$ac_abs_srcdir&;t t 14909s&@top_srcdir@&$ac_top_srcdir&;t t 14910s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14911s&@builddir@&$ac_builddir&;t t 14912s&@abs_builddir@&$ac_abs_builddir&;t t 14913s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14914s&@INSTALL@&$ac_INSTALL&;t t 14915s&@MKDIR_P@&$ac_MKDIR_P&;t t 14916$ac_datarootdir_hack 14917" 14918eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14919 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14920 14921test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14922 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14924 "$ac_tmp/out"`; test -z "$ac_out"; } && 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14926which seems to be undefined. Please make sure it is defined" >&5 14927$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14928which seems to be undefined. Please make sure it is defined" >&2;} 14929 14930 rm -f "$ac_tmp/stdin" 14931 case $ac_file in 14932 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14933 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14934 esac \ 14935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14936 ;; 14937 14938 14939 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14940$as_echo "$as_me: executing $ac_file commands" >&6;} 14941 ;; 14942 esac 14943 14944 14945 case $ac_file$ac_mode in 14946 "libtool":C) 14947 14948 # See if we are running on zsh, and set the options which allow our 14949 # commands through without removal of \ escapes. 14950 if test -n "${ZSH_VERSION+set}" ; then 14951 setopt NO_GLOB_SUBST 14952 fi 14953 14954 cfgfile="${ofile}T" 14955 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14956 $RM "$cfgfile" 14957 14958 cat <<_LT_EOF >> "$cfgfile" 14959#! $SHELL 14960 14961# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14962# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14963# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14964# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14965# 14966# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14967# 2006, 2007, 2008 Free Software Foundation, Inc. 14968# Written by Gordon Matzigkeit, 1996 14969# 14970# This file is part of GNU Libtool. 14971# 14972# GNU Libtool is free software; you can redistribute it and/or 14973# modify it under the terms of the GNU General Public License as 14974# published by the Free Software Foundation; either version 2 of 14975# the License, or (at your option) any later version. 14976# 14977# As a special exception to the GNU General Public License, 14978# if you distribute this file as part of a program or library that 14979# is built using GNU Libtool, you may include this file under the 14980# same distribution terms that you use for the rest of that program. 14981# 14982# GNU Libtool is distributed in the hope that it will be useful, 14983# but WITHOUT ANY WARRANTY; without even the implied warranty of 14984# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14985# GNU General Public License for more details. 14986# 14987# You should have received a copy of the GNU General Public License 14988# along with GNU Libtool; see the file COPYING. If not, a copy 14989# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14990# obtained by writing to the Free Software Foundation, Inc., 14991# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14992 14993 14994# The names of the tagged configurations supported by this script. 14995available_tags="" 14996 14997# ### BEGIN LIBTOOL CONFIG 14998 14999# Which release of libtool.m4 was used? 15000macro_version=$macro_version 15001macro_revision=$macro_revision 15002 15003# Assembler program. 15004AS=$AS 15005 15006# DLL creation program. 15007DLLTOOL=$DLLTOOL 15008 15009# Object dumper program. 15010OBJDUMP=$OBJDUMP 15011 15012# Whether or not to build shared libraries. 15013build_libtool_libs=$enable_shared 15014 15015# Whether or not to build static libraries. 15016build_old_libs=$enable_static 15017 15018# What type of objects to build. 15019pic_mode=$pic_mode 15020 15021# Whether or not to optimize for fast installation. 15022fast_install=$enable_fast_install 15023 15024# The host system. 15025host_alias=$host_alias 15026host=$host 15027host_os=$host_os 15028 15029# The build system. 15030build_alias=$build_alias 15031build=$build 15032build_os=$build_os 15033 15034# A sed program that does not truncate output. 15035SED=$lt_SED 15036 15037# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15038Xsed="\$SED -e 1s/^X//" 15039 15040# A grep program that handles long lines. 15041GREP=$lt_GREP 15042 15043# An ERE matcher. 15044EGREP=$lt_EGREP 15045 15046# A literal string matcher. 15047FGREP=$lt_FGREP 15048 15049# A BSD- or MS-compatible name lister. 15050NM=$lt_NM 15051 15052# Whether we need soft or hard links. 15053LN_S=$lt_LN_S 15054 15055# What is the maximum length of a command? 15056max_cmd_len=$max_cmd_len 15057 15058# Object file suffix (normally "o"). 15059objext=$ac_objext 15060 15061# Executable file suffix (normally ""). 15062exeext=$exeext 15063 15064# whether the shell understands "unset". 15065lt_unset=$lt_unset 15066 15067# turn spaces into newlines. 15068SP2NL=$lt_lt_SP2NL 15069 15070# turn newlines into spaces. 15071NL2SP=$lt_lt_NL2SP 15072 15073# How to create reloadable object files. 15074reload_flag=$lt_reload_flag 15075reload_cmds=$lt_reload_cmds 15076 15077# Method to check whether dependent libraries are shared objects. 15078deplibs_check_method=$lt_deplibs_check_method 15079 15080# Command to use when deplibs_check_method == "file_magic". 15081file_magic_cmd=$lt_file_magic_cmd 15082 15083# The archiver. 15084AR=$lt_AR 15085AR_FLAGS=$lt_AR_FLAGS 15086 15087# A symbol stripping program. 15088STRIP=$lt_STRIP 15089 15090# Commands used to install an old-style archive. 15091RANLIB=$lt_RANLIB 15092old_postinstall_cmds=$lt_old_postinstall_cmds 15093old_postuninstall_cmds=$lt_old_postuninstall_cmds 15094 15095# A C compiler. 15096LTCC=$lt_CC 15097 15098# LTCC compiler flags. 15099LTCFLAGS=$lt_CFLAGS 15100 15101# Take the output of nm and produce a listing of raw symbols and C names. 15102global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15103 15104# Transform the output of nm in a proper C declaration. 15105global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15106 15107# Transform the output of nm in a C name address pair. 15108global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15109 15110# Transform the output of nm in a C name address pair when lib prefix is needed. 15111global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15112 15113# The name of the directory that contains temporary libtool files. 15114objdir=$objdir 15115 15116# Shell to use when invoking shell scripts. 15117SHELL=$lt_SHELL 15118 15119# An echo program that does not interpret backslashes. 15120ECHO=$lt_ECHO 15121 15122# Used to examine libraries when file_magic_cmd begins with "file". 15123MAGIC_CMD=$MAGIC_CMD 15124 15125# Must we lock files when doing compilation? 15126need_locks=$lt_need_locks 15127 15128# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15129DSYMUTIL=$lt_DSYMUTIL 15130 15131# Tool to change global to local symbols on Mac OS X. 15132NMEDIT=$lt_NMEDIT 15133 15134# Tool to manipulate fat objects and archives on Mac OS X. 15135LIPO=$lt_LIPO 15136 15137# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15138OTOOL=$lt_OTOOL 15139 15140# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15141OTOOL64=$lt_OTOOL64 15142 15143# Old archive suffix (normally "a"). 15144libext=$libext 15145 15146# Shared library suffix (normally ".so"). 15147shrext_cmds=$lt_shrext_cmds 15148 15149# The commands to extract the exported symbol list from a shared archive. 15150extract_expsyms_cmds=$lt_extract_expsyms_cmds 15151 15152# Variables whose values should be saved in libtool wrapper scripts and 15153# restored at link time. 15154variables_saved_for_relink=$lt_variables_saved_for_relink 15155 15156# Do we need the "lib" prefix for modules? 15157need_lib_prefix=$need_lib_prefix 15158 15159# Do we need a version for libraries? 15160need_version=$need_version 15161 15162# Library versioning type. 15163version_type=$version_type 15164 15165# Shared library runtime path variable. 15166runpath_var=$runpath_var 15167 15168# Shared library path variable. 15169shlibpath_var=$shlibpath_var 15170 15171# Is shlibpath searched before the hard-coded library search path? 15172shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15173 15174# Format of library name prefix. 15175libname_spec=$lt_libname_spec 15176 15177# List of archive names. First name is the real one, the rest are links. 15178# The last name is the one that the linker finds with -lNAME 15179library_names_spec=$lt_library_names_spec 15180 15181# The coded name of the library, if different from the real name. 15182soname_spec=$lt_soname_spec 15183 15184# Command to use after installation of a shared archive. 15185postinstall_cmds=$lt_postinstall_cmds 15186 15187# Command to use after uninstallation of a shared archive. 15188postuninstall_cmds=$lt_postuninstall_cmds 15189 15190# Commands used to finish a libtool library installation in a directory. 15191finish_cmds=$lt_finish_cmds 15192 15193# As "finish_cmds", except a single script fragment to be evaled but 15194# not shown. 15195finish_eval=$lt_finish_eval 15196 15197# Whether we should hardcode library paths into libraries. 15198hardcode_into_libs=$hardcode_into_libs 15199 15200# Compile-time system search path for libraries. 15201sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15202 15203# Run-time system search path for libraries. 15204sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15205 15206# Whether dlopen is supported. 15207dlopen_support=$enable_dlopen 15208 15209# Whether dlopen of programs is supported. 15210dlopen_self=$enable_dlopen_self 15211 15212# Whether dlopen of statically linked programs is supported. 15213dlopen_self_static=$enable_dlopen_self_static 15214 15215# Commands to strip libraries. 15216old_striplib=$lt_old_striplib 15217striplib=$lt_striplib 15218 15219 15220# The linker used to build libraries. 15221LD=$lt_LD 15222 15223# Commands used to build an old-style archive. 15224old_archive_cmds=$lt_old_archive_cmds 15225 15226# A language specific compiler. 15227CC=$lt_compiler 15228 15229# Is the compiler the GNU compiler? 15230with_gcc=$GCC 15231 15232# Compiler flag to turn off builtin functions. 15233no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15234 15235# How to pass a linker flag through the compiler. 15236wl=$lt_lt_prog_compiler_wl 15237 15238# Additional compiler flags for building library objects. 15239pic_flag=$lt_lt_prog_compiler_pic 15240 15241# Compiler flag to prevent dynamic linking. 15242link_static_flag=$lt_lt_prog_compiler_static 15243 15244# Does compiler simultaneously support -c and -o options? 15245compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15246 15247# Whether or not to add -lc for building shared libraries. 15248build_libtool_need_lc=$archive_cmds_need_lc 15249 15250# Whether or not to disallow shared libs when runtime libs are static. 15251allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15252 15253# Compiler flag to allow reflexive dlopens. 15254export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15255 15256# Compiler flag to generate shared objects directly from archives. 15257whole_archive_flag_spec=$lt_whole_archive_flag_spec 15258 15259# Whether the compiler copes with passing no objects directly. 15260compiler_needs_object=$lt_compiler_needs_object 15261 15262# Create an old-style archive from a shared archive. 15263old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15264 15265# Create a temporary old-style archive to link instead of a shared archive. 15266old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15267 15268# Commands used to build a shared archive. 15269archive_cmds=$lt_archive_cmds 15270archive_expsym_cmds=$lt_archive_expsym_cmds 15271 15272# Commands used to build a loadable module if different from building 15273# a shared archive. 15274module_cmds=$lt_module_cmds 15275module_expsym_cmds=$lt_module_expsym_cmds 15276 15277# Whether we are building with GNU ld or not. 15278with_gnu_ld=$lt_with_gnu_ld 15279 15280# Flag that allows shared libraries with undefined symbols to be built. 15281allow_undefined_flag=$lt_allow_undefined_flag 15282 15283# Flag that enforces no undefined symbols. 15284no_undefined_flag=$lt_no_undefined_flag 15285 15286# Flag to hardcode \$libdir into a binary during linking. 15287# This must work even if \$libdir does not exist 15288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15289 15290# If ld is used when linking, flag to hardcode \$libdir into a binary 15291# during linking. This must work even if \$libdir does not exist. 15292hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15293 15294# Whether we need a single "-rpath" flag with a separated argument. 15295hardcode_libdir_separator=$lt_hardcode_libdir_separator 15296 15297# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15298# DIR into the resulting binary. 15299hardcode_direct=$hardcode_direct 15300 15301# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15302# DIR into the resulting binary and the resulting library dependency is 15303# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15304# library is relocated. 15305hardcode_direct_absolute=$hardcode_direct_absolute 15306 15307# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15308# into the resulting binary. 15309hardcode_minus_L=$hardcode_minus_L 15310 15311# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15312# into the resulting binary. 15313hardcode_shlibpath_var=$hardcode_shlibpath_var 15314 15315# Set to "yes" if building a shared library automatically hardcodes DIR 15316# into the library and all subsequent libraries and executables linked 15317# against it. 15318hardcode_automatic=$hardcode_automatic 15319 15320# Set to yes if linker adds runtime paths of dependent libraries 15321# to runtime path list. 15322inherit_rpath=$inherit_rpath 15323 15324# Whether libtool must link a program against all its dependency libraries. 15325link_all_deplibs=$link_all_deplibs 15326 15327# Fix the shell variable \$srcfile for the compiler. 15328fix_srcfile_path=$lt_fix_srcfile_path 15329 15330# Set to "yes" if exported symbols are required. 15331always_export_symbols=$always_export_symbols 15332 15333# The commands to list exported symbols. 15334export_symbols_cmds=$lt_export_symbols_cmds 15335 15336# Symbols that should not be listed in the preloaded symbols. 15337exclude_expsyms=$lt_exclude_expsyms 15338 15339# Symbols that must always be exported. 15340include_expsyms=$lt_include_expsyms 15341 15342# Commands necessary for linking programs (against libraries) with templates. 15343prelink_cmds=$lt_prelink_cmds 15344 15345# Specify filename containing input files. 15346file_list_spec=$lt_file_list_spec 15347 15348# How to hardcode a shared library path into an executable. 15349hardcode_action=$hardcode_action 15350 15351# ### END LIBTOOL CONFIG 15352 15353_LT_EOF 15354 15355 case $host_os in 15356 aix3*) 15357 cat <<\_LT_EOF >> "$cfgfile" 15358# AIX sometimes has problems with the GCC collect2 program. For some 15359# reason, if we set the COLLECT_NAMES environment variable, the problems 15360# vanish in a puff of smoke. 15361if test "X${COLLECT_NAMES+set}" != Xset; then 15362 COLLECT_NAMES= 15363 export COLLECT_NAMES 15364fi 15365_LT_EOF 15366 ;; 15367 esac 15368 15369 15370ltmain="$ac_aux_dir/ltmain.sh" 15371 15372 15373 # We use sed instead of cat because bash on DJGPP gets confused if 15374 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15375 # text mode, it properly converts lines to CR/LF. This bash problem 15376 # is reportedly fixed, but why not run on old versions too? 15377 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15378 || (rm -f "$cfgfile"; exit 1) 15379 15380 case $xsi_shell in 15381 yes) 15382 cat << \_LT_EOF >> "$cfgfile" 15383 15384# func_dirname file append nondir_replacement 15385# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15386# otherwise set result to NONDIR_REPLACEMENT. 15387func_dirname () 15388{ 15389 case ${1} in 15390 */*) func_dirname_result="${1%/*}${2}" ;; 15391 * ) func_dirname_result="${3}" ;; 15392 esac 15393} 15394 15395# func_basename file 15396func_basename () 15397{ 15398 func_basename_result="${1##*/}" 15399} 15400 15401# func_dirname_and_basename file append nondir_replacement 15402# perform func_basename and func_dirname in a single function 15403# call: 15404# dirname: Compute the dirname of FILE. If nonempty, 15405# add APPEND to the result, otherwise set result 15406# to NONDIR_REPLACEMENT. 15407# value returned in "$func_dirname_result" 15408# basename: Compute filename of FILE. 15409# value retuned in "$func_basename_result" 15410# Implementation must be kept synchronized with func_dirname 15411# and func_basename. For efficiency, we do not delegate to 15412# those functions but instead duplicate the functionality here. 15413func_dirname_and_basename () 15414{ 15415 case ${1} in 15416 */*) func_dirname_result="${1%/*}${2}" ;; 15417 * ) func_dirname_result="${3}" ;; 15418 esac 15419 func_basename_result="${1##*/}" 15420} 15421 15422# func_stripname prefix suffix name 15423# strip PREFIX and SUFFIX off of NAME. 15424# PREFIX and SUFFIX must not contain globbing or regex special 15425# characters, hashes, percent signs, but SUFFIX may contain a leading 15426# dot (in which case that matches only a dot). 15427func_stripname () 15428{ 15429 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15430 # positional parameters, so assign one to ordinary parameter first. 15431 func_stripname_result=${3} 15432 func_stripname_result=${func_stripname_result#"${1}"} 15433 func_stripname_result=${func_stripname_result%"${2}"} 15434} 15435 15436# func_opt_split 15437func_opt_split () 15438{ 15439 func_opt_split_opt=${1%%=*} 15440 func_opt_split_arg=${1#*=} 15441} 15442 15443# func_lo2o object 15444func_lo2o () 15445{ 15446 case ${1} in 15447 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15448 *) func_lo2o_result=${1} ;; 15449 esac 15450} 15451 15452# func_xform libobj-or-source 15453func_xform () 15454{ 15455 func_xform_result=${1%.*}.lo 15456} 15457 15458# func_arith arithmetic-term... 15459func_arith () 15460{ 15461 func_arith_result=$(( $* )) 15462} 15463 15464# func_len string 15465# STRING may not start with a hyphen. 15466func_len () 15467{ 15468 func_len_result=${#1} 15469} 15470 15471_LT_EOF 15472 ;; 15473 *) # Bourne compatible functions. 15474 cat << \_LT_EOF >> "$cfgfile" 15475 15476# func_dirname file append nondir_replacement 15477# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15478# otherwise set result to NONDIR_REPLACEMENT. 15479func_dirname () 15480{ 15481 # Extract subdirectory from the argument. 15482 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15483 if test "X$func_dirname_result" = "X${1}"; then 15484 func_dirname_result="${3}" 15485 else 15486 func_dirname_result="$func_dirname_result${2}" 15487 fi 15488} 15489 15490# func_basename file 15491func_basename () 15492{ 15493 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15494} 15495 15496 15497# func_stripname prefix suffix name 15498# strip PREFIX and SUFFIX off of NAME. 15499# PREFIX and SUFFIX must not contain globbing or regex special 15500# characters, hashes, percent signs, but SUFFIX may contain a leading 15501# dot (in which case that matches only a dot). 15502# func_strip_suffix prefix name 15503func_stripname () 15504{ 15505 case ${2} in 15506 .*) func_stripname_result=`$ECHO "X${3}" \ 15507 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15508 *) func_stripname_result=`$ECHO "X${3}" \ 15509 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15510 esac 15511} 15512 15513# sed scripts: 15514my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15515my_sed_long_arg='1s/^-[^=]*=//' 15516 15517# func_opt_split 15518func_opt_split () 15519{ 15520 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15521 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15522} 15523 15524# func_lo2o object 15525func_lo2o () 15526{ 15527 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15528} 15529 15530# func_xform libobj-or-source 15531func_xform () 15532{ 15533 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15534} 15535 15536# func_arith arithmetic-term... 15537func_arith () 15538{ 15539 func_arith_result=`expr "$@"` 15540} 15541 15542# func_len string 15543# STRING may not start with a hyphen. 15544func_len () 15545{ 15546 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15547} 15548 15549_LT_EOF 15550esac 15551 15552case $lt_shell_append in 15553 yes) 15554 cat << \_LT_EOF >> "$cfgfile" 15555 15556# func_append var value 15557# Append VALUE to the end of shell variable VAR. 15558func_append () 15559{ 15560 eval "$1+=\$2" 15561} 15562_LT_EOF 15563 ;; 15564 *) 15565 cat << \_LT_EOF >> "$cfgfile" 15566 15567# func_append var value 15568# Append VALUE to the end of shell variable VAR. 15569func_append () 15570{ 15571 eval "$1=\$$1\$2" 15572} 15573 15574_LT_EOF 15575 ;; 15576 esac 15577 15578 15579 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15580 || (rm -f "$cfgfile"; exit 1) 15581 15582 mv -f "$cfgfile" "$ofile" || 15583 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15584 chmod +x "$ofile" 15585 15586 ;; 15587 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15588 # Older Autoconf quotes --file arguments for eval, but not when files 15589 # are listed without --file. Let's play safe and only enable the eval 15590 # if we detect the quoting. 15591 # TODO: see whether this extra hack can be removed once we start 15592 # requiring Autoconf 2.70 or later. 15593 case $CONFIG_FILES in #( 15594 *\'*) : 15595 eval set x "$CONFIG_FILES" ;; #( 15596 *) : 15597 set x $CONFIG_FILES ;; #( 15598 *) : 15599 ;; 15600esac 15601 shift 15602 # Used to flag and report bootstrapping failures. 15603 am_rc=0 15604 for am_mf 15605 do 15606 # Strip MF so we end up with the name of the file. 15607 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15608 # Check whether this is an Automake generated Makefile which includes 15609 # dependency-tracking related rules and includes. 15610 # Grep'ing the whole file directly is not great: AIX grep has a line 15611 # limit of 2048, but all sed's we know have understand at least 4000. 15612 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15613 || continue 15614 am_dirpart=`$as_dirname -- "$am_mf" || 15615$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15616 X"$am_mf" : 'X\(//\)[^/]' \| \ 15617 X"$am_mf" : 'X\(//\)$' \| \ 15618 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15619$as_echo X"$am_mf" | 15620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15621 s//\1/ 15622 q 15623 } 15624 /^X\(\/\/\)[^/].*/{ 15625 s//\1/ 15626 q 15627 } 15628 /^X\(\/\/\)$/{ 15629 s//\1/ 15630 q 15631 } 15632 /^X\(\/\).*/{ 15633 s//\1/ 15634 q 15635 } 15636 s/.*/./; q'` 15637 am_filepart=`$as_basename -- "$am_mf" || 15638$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15639 X"$am_mf" : 'X\(//\)$' \| \ 15640 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15641$as_echo X/"$am_mf" | 15642 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15643 s//\1/ 15644 q 15645 } 15646 /^X\/\(\/\/\)$/{ 15647 s//\1/ 15648 q 15649 } 15650 /^X\/\(\/\).*/{ 15651 s//\1/ 15652 q 15653 } 15654 s/.*/./; q'` 15655 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15656 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15657 | $MAKE -f - am--depfiles" >&5 15658 (cd "$am_dirpart" \ 15659 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15660 | $MAKE -f - am--depfiles) >&5 2>&5 15661 ac_status=$? 15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15663 (exit $ac_status); } || am_rc=$? 15664 done 15665 if test $am_rc -ne 0; then 15666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15668as_fn_error $? "Something went wrong bootstrapping makefile fragments 15669 for automatic dependency tracking. Try re-running configure with the 15670 '--disable-dependency-tracking' option to at least be able to build 15671 the package (albeit without support for automatic dependency tracking). 15672See \`config.log' for more details" "$LINENO" 5; } 15673 fi 15674 { am_dirpart=; unset am_dirpart;} 15675 { am_filepart=; unset am_filepart;} 15676 { am_mf=; unset am_mf;} 15677 { am_rc=; unset am_rc;} 15678 rm -f conftest-deps.mk 15679} 15680 ;; 15681 15682 esac 15683done # for ac_tag 15684 15685 15686as_fn_exit 0 15687_ACEOF 15688ac_clean_files=$ac_clean_files_save 15689 15690test $ac_write_fail = 0 || 15691 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15692 15693 15694# configure is writing to config.log, and then calls config.status. 15695# config.status does its own redirection, appending to config.log. 15696# Unfortunately, on DOS this fails, as config.log is still kept open 15697# by configure, so config.status won't be able to write to it; its 15698# output is simply discarded. So we exec the FD to /dev/null, 15699# effectively closing config.log, so it can be properly (re)opened and 15700# appended to by config.status. When coming back to configure, we 15701# need to make the FD available again. 15702if test "$no_create" != yes; then 15703 ac_cs_success=: 15704 ac_config_status_args= 15705 test "$silent" = yes && 15706 ac_config_status_args="$ac_config_status_args --quiet" 15707 exec 5>/dev/null 15708 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15709 exec 5>>config.log 15710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15711 # would make configure fail if this is the last instruction. 15712 $ac_cs_success || as_fn_exit 1 15713fi 15714if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15716$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15717fi 15718 15719