1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for file 5.11. 4# 5# Report bugs to <christos@astron.com>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: christos@astron.com about your system, including any 243$0: error possibly output before this message. Then install 244$0: a modern shell, or manually run the script under such a 245$0: shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541# Check that we are running under the correct shell. 542SHELL=${CONFIG_SHELL-/bin/sh} 543 544case X$lt_ECHO in 545X*--fallback-echo) 546 # Remove one level of quotation (which was required for Make). 547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 548 ;; 549esac 550 551ECHO=${lt_ECHO-echo} 552if test "X$1" = X--no-reexec; then 553 # Discard the --no-reexec flag, and continue. 554 shift 555elif test "X$1" = X--fallback-echo; then 556 # Avoid inline document here, it may be left over 557 : 558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 559 # Yippee, $ECHO works! 560 : 561else 562 # Restart under the correct shell. 563 exec $SHELL "$0" --no-reexec ${1+"$@"} 564fi 565 566if test "X$1" = X--fallback-echo; then 567 # used as fallback echo 568 shift 569 cat <<_LT_EOF 570$* 571_LT_EOF 572 exit 0 573fi 574 575# The HP-UX ksh and POSIX shell print the target directory to stdout 576# if CDPATH is set. 577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 578 579if test -z "$lt_ECHO"; then 580 if test "X${echo_test_string+set}" != Xset; then 581 # find a string as large as possible, as long as the shell can cope with it 582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 584 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 586 then 587 break 588 fi 589 done 590 fi 591 592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596 else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 ECHO="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$ECHO" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 ECHO='print -r' 623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 ECHO='printf %s\n' 634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 ECHO="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 ECHO="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 ECHO=echo 672 fi 673 fi 674 fi 675 fi 676 fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681lt_ECHO=$ECHO 682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689test -n "$DJDIR" || exec 7<&0 </dev/null 690exec 6>&1 691 692# Name of the host. 693# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 694# so uname gets run too. 695ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 696 697# 698# Initializations. 699# 700ac_default_prefix=/usr/local 701ac_clean_files= 702ac_config_libobj_dir=. 703LIBOBJS= 704cross_compiling=no 705subdirs= 706MFLAGS= 707MAKEFLAGS= 708 709# Identity of this package. 710PACKAGE_NAME='file' 711PACKAGE_TARNAME='file' 712PACKAGE_VERSION='5.11' 713PACKAGE_STRING='file 5.11' 714PACKAGE_BUGREPORT='christos@astron.com' 715PACKAGE_URL='' 716 717# Factoring default headers for most tests. 718ac_includes_default="\ 719#include <stdio.h> 720#ifdef HAVE_SYS_TYPES_H 721# include <sys/types.h> 722#endif 723#ifdef HAVE_SYS_STAT_H 724# include <sys/stat.h> 725#endif 726#ifdef STDC_HEADERS 727# include <stdlib.h> 728# include <stddef.h> 729#else 730# ifdef HAVE_STDLIB_H 731# include <stdlib.h> 732# endif 733#endif 734#ifdef HAVE_STRING_H 735# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 736# include <memory.h> 737# endif 738# include <string.h> 739#endif 740#ifdef HAVE_STRINGS_H 741# include <strings.h> 742#endif 743#ifdef HAVE_INTTYPES_H 744# include <inttypes.h> 745#endif 746#ifdef HAVE_STDINT_H 747# include <stdint.h> 748#endif 749#ifdef HAVE_UNISTD_H 750# include <unistd.h> 751#endif" 752 753ac_subst_vars='am__EXEEXT_FALSE 754am__EXEEXT_TRUE 755LTLIBOBJS 756IS_CROSS_COMPILE_FALSE 757IS_CROSS_COMPILE_TRUE 758LIBOBJS 759OTOOL64 760OTOOL 761LIPO 762NMEDIT 763DSYMUTIL 764lt_ECHO 765RANLIB 766AR 767OBJDUMP 768NM 769ac_ct_DUMPBIN 770DUMPBIN 771LD 772FGREP 773SED 774LIBTOOL 775LN_S 776EGREP 777GREP 778CPP 779am__fastdepCC_FALSE 780am__fastdepCC_TRUE 781CCDEPMODE 782AMDEPBACKSLASH 783AMDEP_FALSE 784AMDEP_TRUE 785am__quote 786am__include 787DEPDIR 788OBJEXT 789EXEEXT 790ac_ct_CC 791CPPFLAGS 792LDFLAGS 793CFLAGS 794CC 795WARNINGS 796FSECT5_FALSE 797FSECT5_TRUE 798fsect 799pkgdatadir 800MINGW_FALSE 801MINGW_TRUE 802MINGW 803host_os 804host_vendor 805host_cpu 806host 807build_os 808build_vendor 809build_cpu 810build 811AM_BACKSLASH 812AM_DEFAULT_VERBOSITY 813am__untar 814am__tar 815AMTAR 816am__leading_dot 817SET_MAKE 818AWK 819mkdir_p 820MKDIR_P 821INSTALL_STRIP_PROGRAM 822STRIP 823install_sh 824MAKEINFO 825AUTOHEADER 826AUTOMAKE 827AUTOCONF 828ACLOCAL 829VERSION 830PACKAGE 831CYGPATH_W 832am__isrc 833INSTALL_DATA 834INSTALL_SCRIPT 835INSTALL_PROGRAM 836target_alias 837host_alias 838build_alias 839LIBS 840ECHO_T 841ECHO_N 842ECHO_C 843DEFS 844mandir 845localedir 846libdir 847psdir 848pdfdir 849dvidir 850htmldir 851infodir 852docdir 853oldincludedir 854includedir 855localstatedir 856sharedstatedir 857sysconfdir 858datadir 859datarootdir 860libexecdir 861sbindir 862bindir 863program_transform_name 864prefix 865exec_prefix 866PACKAGE_URL 867PACKAGE_BUGREPORT 868PACKAGE_STRING 869PACKAGE_VERSION 870PACKAGE_TARNAME 871PACKAGE_NAME 872PATH_SEPARATOR 873SHELL' 874ac_subst_files='' 875ac_user_opts=' 876enable_option_checking 877enable_silent_rules 878enable_elf 879enable_elf_core 880enable_fsect_man5 881enable_dependency_tracking 882enable_shared 883enable_static 884with_pic 885enable_fast_install 886with_gnu_ld 887enable_libtool_lock 888enable_largefile 889enable_warnings 890' 891 ac_precious_vars='build_alias 892host_alias 893target_alias 894CC 895CFLAGS 896LDFLAGS 897LIBS 898CPPFLAGS 899CPP' 900 901 902# Initialize some variables set by options. 903ac_init_help= 904ac_init_version=false 905ac_unrecognized_opts= 906ac_unrecognized_sep= 907# The variables have the same names as the options, with 908# dashes changed to underlines. 909cache_file=/dev/null 910exec_prefix=NONE 911no_create= 912no_recursion= 913prefix=NONE 914program_prefix=NONE 915program_suffix=NONE 916program_transform_name=s,x,x, 917silent= 918site= 919srcdir= 920verbose= 921x_includes=NONE 922x_libraries=NONE 923 924# Installation directory options. 925# These are left unexpanded so users can "make install exec_prefix=/foo" 926# and all the variables that are supposed to be based on exec_prefix 927# by default will actually change. 928# Use braces instead of parens because sh, perl, etc. also accept them. 929# (The list follows the same order as the GNU Coding Standards.) 930bindir='${exec_prefix}/bin' 931sbindir='${exec_prefix}/sbin' 932libexecdir='${exec_prefix}/libexec' 933datarootdir='${prefix}/share' 934datadir='${datarootdir}' 935sysconfdir='${prefix}/etc' 936sharedstatedir='${prefix}/com' 937localstatedir='${prefix}/var' 938includedir='${prefix}/include' 939oldincludedir='/usr/include' 940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 941infodir='${datarootdir}/info' 942htmldir='${docdir}' 943dvidir='${docdir}' 944pdfdir='${docdir}' 945psdir='${docdir}' 946libdir='${exec_prefix}/lib' 947localedir='${datarootdir}/locale' 948mandir='${datarootdir}/man' 949 950ac_prev= 951ac_dashdash= 952for ac_option 953do 954 # If the previous option needs an argument, assign it. 955 if test -n "$ac_prev"; then 956 eval $ac_prev=\$ac_option 957 ac_prev= 958 continue 959 fi 960 961 case $ac_option in 962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 963 *=) ac_optarg= ;; 964 *) ac_optarg=yes ;; 965 esac 966 967 # Accept the important Cygnus configure options, so we can diagnose typos. 968 969 case $ac_dashdash$ac_option in 970 --) 971 ac_dashdash=yes ;; 972 973 -bindir | --bindir | --bindi | --bind | --bin | --bi) 974 ac_prev=bindir ;; 975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 976 bindir=$ac_optarg ;; 977 978 -build | --build | --buil | --bui | --bu) 979 ac_prev=build_alias ;; 980 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 981 build_alias=$ac_optarg ;; 982 983 -cache-file | --cache-file | --cache-fil | --cache-fi \ 984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 985 ac_prev=cache_file ;; 986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 988 cache_file=$ac_optarg ;; 989 990 --config-cache | -C) 991 cache_file=config.cache ;; 992 993 -datadir | --datadir | --datadi | --datad) 994 ac_prev=datadir ;; 995 -datadir=* | --datadir=* | --datadi=* | --datad=*) 996 datadir=$ac_optarg ;; 997 998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 999 | --dataroo | --dataro | --datar) 1000 ac_prev=datarootdir ;; 1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1003 datarootdir=$ac_optarg ;; 1004 1005 -disable-* | --disable-*) 1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1007 # Reject names that are not valid shell variable names. 1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1009 as_fn_error $? "invalid feature name: $ac_useropt" 1010 ac_useropt_orig=$ac_useropt 1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1012 case $ac_user_opts in 1013 *" 1014"enable_$ac_useropt" 1015"*) ;; 1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1017 ac_unrecognized_sep=', ';; 1018 esac 1019 eval enable_$ac_useropt=no ;; 1020 1021 -docdir | --docdir | --docdi | --doc | --do) 1022 ac_prev=docdir ;; 1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1024 docdir=$ac_optarg ;; 1025 1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1027 ac_prev=dvidir ;; 1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1029 dvidir=$ac_optarg ;; 1030 1031 -enable-* | --enable-*) 1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1033 # Reject names that are not valid shell variable names. 1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1035 as_fn_error $? "invalid feature name: $ac_useropt" 1036 ac_useropt_orig=$ac_useropt 1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1038 case $ac_user_opts in 1039 *" 1040"enable_$ac_useropt" 1041"*) ;; 1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1043 ac_unrecognized_sep=', ';; 1044 esac 1045 eval enable_$ac_useropt=\$ac_optarg ;; 1046 1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1049 | --exec | --exe | --ex) 1050 ac_prev=exec_prefix ;; 1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1053 | --exec=* | --exe=* | --ex=*) 1054 exec_prefix=$ac_optarg ;; 1055 1056 -gas | --gas | --ga | --g) 1057 # Obsolete; use --with-gas. 1058 with_gas=yes ;; 1059 1060 -help | --help | --hel | --he | -h) 1061 ac_init_help=long ;; 1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1063 ac_init_help=recursive ;; 1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1065 ac_init_help=short ;; 1066 1067 -host | --host | --hos | --ho) 1068 ac_prev=host_alias ;; 1069 -host=* | --host=* | --hos=* | --ho=*) 1070 host_alias=$ac_optarg ;; 1071 1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1073 ac_prev=htmldir ;; 1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1075 | --ht=*) 1076 htmldir=$ac_optarg ;; 1077 1078 -includedir | --includedir | --includedi | --included | --include \ 1079 | --includ | --inclu | --incl | --inc) 1080 ac_prev=includedir ;; 1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1082 | --includ=* | --inclu=* | --incl=* | --inc=*) 1083 includedir=$ac_optarg ;; 1084 1085 -infodir | --infodir | --infodi | --infod | --info | --inf) 1086 ac_prev=infodir ;; 1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1088 infodir=$ac_optarg ;; 1089 1090 -libdir | --libdir | --libdi | --libd) 1091 ac_prev=libdir ;; 1092 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1093 libdir=$ac_optarg ;; 1094 1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1096 | --libexe | --libex | --libe) 1097 ac_prev=libexecdir ;; 1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1099 | --libexe=* | --libex=* | --libe=*) 1100 libexecdir=$ac_optarg ;; 1101 1102 -localedir | --localedir | --localedi | --localed | --locale) 1103 ac_prev=localedir ;; 1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1105 localedir=$ac_optarg ;; 1106 1107 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1108 | --localstate | --localstat | --localsta | --localst | --locals) 1109 ac_prev=localstatedir ;; 1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1112 localstatedir=$ac_optarg ;; 1113 1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1115 ac_prev=mandir ;; 1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1117 mandir=$ac_optarg ;; 1118 1119 -nfp | --nfp | --nf) 1120 # Obsolete; use --without-fp. 1121 with_fp=no ;; 1122 1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1124 | --no-cr | --no-c | -n) 1125 no_create=yes ;; 1126 1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1129 no_recursion=yes ;; 1130 1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1133 | --oldin | --oldi | --old | --ol | --o) 1134 ac_prev=oldincludedir ;; 1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1138 oldincludedir=$ac_optarg ;; 1139 1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1141 ac_prev=prefix ;; 1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1143 prefix=$ac_optarg ;; 1144 1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1146 | --program-pre | --program-pr | --program-p) 1147 ac_prev=program_prefix ;; 1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1150 program_prefix=$ac_optarg ;; 1151 1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1153 | --program-suf | --program-su | --program-s) 1154 ac_prev=program_suffix ;; 1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1157 program_suffix=$ac_optarg ;; 1158 1159 -program-transform-name | --program-transform-name \ 1160 | --program-transform-nam | --program-transform-na \ 1161 | --program-transform-n | --program-transform- \ 1162 | --program-transform | --program-transfor \ 1163 | --program-transfo | --program-transf \ 1164 | --program-trans | --program-tran \ 1165 | --progr-tra | --program-tr | --program-t) 1166 ac_prev=program_transform_name ;; 1167 -program-transform-name=* | --program-transform-name=* \ 1168 | --program-transform-nam=* | --program-transform-na=* \ 1169 | --program-transform-n=* | --program-transform-=* \ 1170 | --program-transform=* | --program-transfor=* \ 1171 | --program-transfo=* | --program-transf=* \ 1172 | --program-trans=* | --program-tran=* \ 1173 | --progr-tra=* | --program-tr=* | --program-t=*) 1174 program_transform_name=$ac_optarg ;; 1175 1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1177 ac_prev=pdfdir ;; 1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1179 pdfdir=$ac_optarg ;; 1180 1181 -psdir | --psdir | --psdi | --psd | --ps) 1182 ac_prev=psdir ;; 1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1184 psdir=$ac_optarg ;; 1185 1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1187 | -silent | --silent | --silen | --sile | --sil) 1188 silent=yes ;; 1189 1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1191 ac_prev=sbindir ;; 1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1193 | --sbi=* | --sb=*) 1194 sbindir=$ac_optarg ;; 1195 1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1198 | --sharedst | --shareds | --shared | --share | --shar \ 1199 | --sha | --sh) 1200 ac_prev=sharedstatedir ;; 1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1204 | --sha=* | --sh=*) 1205 sharedstatedir=$ac_optarg ;; 1206 1207 -site | --site | --sit) 1208 ac_prev=site ;; 1209 -site=* | --site=* | --sit=*) 1210 site=$ac_optarg ;; 1211 1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1213 ac_prev=srcdir ;; 1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1215 srcdir=$ac_optarg ;; 1216 1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1218 | --syscon | --sysco | --sysc | --sys | --sy) 1219 ac_prev=sysconfdir ;; 1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1222 sysconfdir=$ac_optarg ;; 1223 1224 -target | --target | --targe | --targ | --tar | --ta | --t) 1225 ac_prev=target_alias ;; 1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1227 target_alias=$ac_optarg ;; 1228 1229 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1230 verbose=yes ;; 1231 1232 -version | --version | --versio | --versi | --vers | -V) 1233 ac_init_version=: ;; 1234 1235 -with-* | --with-*) 1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1239 as_fn_error $? "invalid package name: $ac_useropt" 1240 ac_useropt_orig=$ac_useropt 1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1242 case $ac_user_opts in 1243 *" 1244"with_$ac_useropt" 1245"*) ;; 1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1247 ac_unrecognized_sep=', ';; 1248 esac 1249 eval with_$ac_useropt=\$ac_optarg ;; 1250 1251 -without-* | --without-*) 1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1255 as_fn_error $? "invalid package name: $ac_useropt" 1256 ac_useropt_orig=$ac_useropt 1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1258 case $ac_user_opts in 1259 *" 1260"with_$ac_useropt" 1261"*) ;; 1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1263 ac_unrecognized_sep=', ';; 1264 esac 1265 eval with_$ac_useropt=no ;; 1266 1267 --x) 1268 # Obsolete; use --with-x. 1269 with_x=yes ;; 1270 1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1272 | --x-incl | --x-inc | --x-in | --x-i) 1273 ac_prev=x_includes ;; 1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1276 x_includes=$ac_optarg ;; 1277 1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1280 ac_prev=x_libraries ;; 1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1283 x_libraries=$ac_optarg ;; 1284 1285 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1286Try \`$0 --help' for more information" 1287 ;; 1288 1289 *=*) 1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1291 # Reject names that are not valid shell variable names. 1292 case $ac_envvar in #( 1293 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1295 esac 1296 eval $ac_envvar=\$ac_optarg 1297 export $ac_envvar ;; 1298 1299 *) 1300 # FIXME: should be removed in autoconf 3.0. 1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1305 ;; 1306 1307 esac 1308done 1309 1310if test -n "$ac_prev"; then 1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1312 as_fn_error $? "missing argument to $ac_option" 1313fi 1314 1315if test -n "$ac_unrecognized_opts"; then 1316 case $enable_option_checking in 1317 no) ;; 1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1320 esac 1321fi 1322 1323# Check all directory arguments for consistency. 1324for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1325 datadir sysconfdir sharedstatedir localstatedir includedir \ 1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1327 libdir localedir mandir 1328do 1329 eval ac_val=\$$ac_var 1330 # Remove trailing slashes. 1331 case $ac_val in 1332 */ ) 1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1334 eval $ac_var=\$ac_val;; 1335 esac 1336 # Be sure to have absolute directory names. 1337 case $ac_val in 1338 [\\/$]* | ?:[\\/]* ) continue;; 1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1340 esac 1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1342done 1343 1344# There might be people who depend on the old broken behavior: `$host' 1345# used to hold the argument of --host etc. 1346# FIXME: To remove some day. 1347build=$build_alias 1348host=$host_alias 1349target=$target_alias 1350 1351# FIXME: To remove some day. 1352if test "x$host_alias" != x; then 1353 if test "x$build_alias" = x; then 1354 cross_compiling=maybe 1355 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1356 If a cross compiler is detected then cross compile mode will be used" >&2 1357 elif test "x$build_alias" != "x$host_alias"; then 1358 cross_compiling=yes 1359 fi 1360fi 1361 1362ac_tool_prefix= 1363test -n "$host_alias" && ac_tool_prefix=$host_alias- 1364 1365test "$silent" = yes && exec 6>/dev/null 1366 1367 1368ac_pwd=`pwd` && test -n "$ac_pwd" && 1369ac_ls_di=`ls -di .` && 1370ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1371 as_fn_error $? "working directory cannot be determined" 1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1373 as_fn_error $? "pwd does not report name of working directory" 1374 1375 1376# Find the source files, if location was not specified. 1377if test -z "$srcdir"; then 1378 ac_srcdir_defaulted=yes 1379 # Try the directory containing this script, then the parent directory. 1380 ac_confdir=`$as_dirname -- "$as_myself" || 1381$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1382 X"$as_myself" : 'X\(//\)[^/]' \| \ 1383 X"$as_myself" : 'X\(//\)$' \| \ 1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1385$as_echo X"$as_myself" | 1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\/\)[^/].*/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\/\)$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\).*/{ 1399 s//\1/ 1400 q 1401 } 1402 s/.*/./; q'` 1403 srcdir=$ac_confdir 1404 if test ! -r "$srcdir/$ac_unique_file"; then 1405 srcdir=.. 1406 fi 1407else 1408 ac_srcdir_defaulted=no 1409fi 1410if test ! -r "$srcdir/$ac_unique_file"; then 1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1413fi 1414ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1415ac_abs_confdir=`( 1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1417 pwd)` 1418# When building in place, set srcdir=. 1419if test "$ac_abs_confdir" = "$ac_pwd"; then 1420 srcdir=. 1421fi 1422# Remove unnecessary trailing slashes from srcdir. 1423# Double slashes in file names in object file debugging info 1424# mess up M-x gdb in Emacs. 1425case $srcdir in 1426*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1427esac 1428for ac_var in $ac_precious_vars; do 1429 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1430 eval ac_env_${ac_var}_value=\$${ac_var} 1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1432 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1433done 1434 1435# 1436# Report the --help message. 1437# 1438if test "$ac_init_help" = "long"; then 1439 # Omit some internal or obsolete options to make the list less imposing. 1440 # This message is too long to be a string in the A/UX 3.1 sh. 1441 cat <<_ACEOF 1442\`configure' configures file 5.11 to adapt to many kinds of systems. 1443 1444Usage: $0 [OPTION]... [VAR=VALUE]... 1445 1446To assign environment variables (e.g., CC, CFLAGS...), specify them as 1447VAR=VALUE. See below for descriptions of some of the useful variables. 1448 1449Defaults for the options are specified in brackets. 1450 1451Configuration: 1452 -h, --help display this help and exit 1453 --help=short display options specific to this package 1454 --help=recursive display the short help of all the included packages 1455 -V, --version display version information and exit 1456 -q, --quiet, --silent do not print \`checking ...' messages 1457 --cache-file=FILE cache test results in FILE [disabled] 1458 -C, --config-cache alias for \`--cache-file=config.cache' 1459 -n, --no-create do not create output files 1460 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1461 1462Installation directories: 1463 --prefix=PREFIX install architecture-independent files in PREFIX 1464 [$ac_default_prefix] 1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1466 [PREFIX] 1467 1468By default, \`make install' will install all the files in 1469\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1470an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1471for instance \`--prefix=\$HOME'. 1472 1473For better control, use the options below. 1474 1475Fine tuning of the installation directories: 1476 --bindir=DIR user executables [EPREFIX/bin] 1477 --sbindir=DIR system admin executables [EPREFIX/sbin] 1478 --libexecdir=DIR program executables [EPREFIX/libexec] 1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1482 --libdir=DIR object code libraries [EPREFIX/lib] 1483 --includedir=DIR C header files [PREFIX/include] 1484 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1487 --infodir=DIR info documentation [DATAROOTDIR/info] 1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1489 --mandir=DIR man documentation [DATAROOTDIR/man] 1490 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1491 --htmldir=DIR html documentation [DOCDIR] 1492 --dvidir=DIR dvi documentation [DOCDIR] 1493 --pdfdir=DIR pdf documentation [DOCDIR] 1494 --psdir=DIR ps documentation [DOCDIR] 1495_ACEOF 1496 1497 cat <<\_ACEOF 1498 1499Program names: 1500 --program-prefix=PREFIX prepend PREFIX to installed program names 1501 --program-suffix=SUFFIX append SUFFIX to installed program names 1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1503 1504System types: 1505 --build=BUILD configure for building on BUILD [guessed] 1506 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1507_ACEOF 1508fi 1509 1510if test -n "$ac_init_help"; then 1511 case $ac_init_help in 1512 short | recursive ) echo "Configuration of file 5.11:";; 1513 esac 1514 cat <<\_ACEOF 1515 1516Optional Features: 1517 --disable-option-checking ignore unrecognized --enable/--with options 1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1520 --enable-silent-rules less verbose build output (undo: `make V=1') 1521 --disable-silent-rules verbose build output (undo: `make V=0') 1522 --disable-elf disable builtin ELF support 1523 --disable-elf-core disable ELF core file support 1524 --enable-fsect-man5 enable file formats in man section 5 1525 --disable-dependency-tracking speeds up one-time build 1526 --enable-dependency-tracking do not reject slow dependency extractors 1527 --enable-shared[=PKGS] build shared libraries [default=yes] 1528 --enable-static[=PKGS] build static libraries [default=yes] 1529 --enable-fast-install[=PKGS] 1530 optimize for fast installation [default=yes] 1531 --disable-libtool-lock avoid locking (might break parallel builds) 1532 --disable-largefile omit support for large files 1533 --disable-warnings disable compiler warnings 1534 1535Optional Packages: 1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1538 --with-pic try to use only PIC/non-PIC objects [default=use 1539 both] 1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1541 1542Some influential environment variables: 1543 CC C compiler command 1544 CFLAGS C compiler flags 1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1546 nonstandard directory <lib dir> 1547 LIBS libraries to pass to the linker, e.g. -l<library> 1548 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1549 you have headers in a nonstandard directory <include dir> 1550 CPP C preprocessor 1551 1552Use these variables to override the choices made by `configure' or to help 1553it to find libraries and programs with nonstandard names/locations. 1554 1555Report bugs to <christos@astron.com>. 1556_ACEOF 1557ac_status=$? 1558fi 1559 1560if test "$ac_init_help" = "recursive"; then 1561 # If there are subdirs, report their specific --help. 1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1563 test -d "$ac_dir" || 1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1565 continue 1566 ac_builddir=. 1567 1568case "$ac_dir" in 1569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570*) 1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1572 # A ".." for each directory in $ac_dir_suffix. 1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1574 case $ac_top_builddir_sub in 1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1577 esac ;; 1578esac 1579ac_abs_top_builddir=$ac_pwd 1580ac_abs_builddir=$ac_pwd$ac_dir_suffix 1581# for backward compatibility: 1582ac_top_builddir=$ac_top_build_prefix 1583 1584case $srcdir in 1585 .) # We are building in place. 1586 ac_srcdir=. 1587 ac_top_srcdir=$ac_top_builddir_sub 1588 ac_abs_top_srcdir=$ac_pwd ;; 1589 [\\/]* | ?:[\\/]* ) # Absolute name. 1590 ac_srcdir=$srcdir$ac_dir_suffix; 1591 ac_top_srcdir=$srcdir 1592 ac_abs_top_srcdir=$srcdir ;; 1593 *) # Relative name. 1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1595 ac_top_srcdir=$ac_top_build_prefix$srcdir 1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1597esac 1598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1599 1600 cd "$ac_dir" || { ac_status=$?; continue; } 1601 # Check for guested configure. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618file configure 5.11 1619generated by GNU Autoconf 2.68 1620 1621Copyright (C) 2010 Free Software Foundation, Inc. 1622This configure script is free software; the Free Software Foundation 1623gives unlimited permission to copy, distribute and modify it. 1624_ACEOF 1625 exit 1626fi 1627 1628## ------------------------ ## 1629## Autoconf initialization. ## 1630## ------------------------ ## 1631 1632# ac_fn_c_try_compile LINENO 1633# -------------------------- 1634# Try to compile conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_c_try_compile () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext 1639 if { { ac_try="$ac_compile" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_compile") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest.$ac_objext; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_compile 1669 1670# ac_fn_c_try_cpp LINENO 1671# ---------------------- 1672# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_cpp () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 if { { ac_try="$ac_cpp conftest.$ac_ext" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } > conftest.i && { 1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 }; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 1701fi 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_cpp 1706 1707# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1708# ------------------------------------------------------- 1709# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1710# the include files in INCLUDES and setting the cache variable VAR 1711# accordingly. 1712ac_fn_c_check_header_mongrel () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 if eval \${$3+:} false; then : 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1717$as_echo_n "checking for $2... " >&6; } 1718if eval \${$3+:} false; then : 1719 $as_echo_n "(cached) " >&6 1720fi 1721eval ac_res=\$$3 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1723$as_echo "$ac_res" >&6; } 1724else 1725 # Is the header compilable? 1726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1727$as_echo_n "checking $2 usability... " >&6; } 1728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1729/* end confdefs.h. */ 1730$4 1731#include <$2> 1732_ACEOF 1733if ac_fn_c_try_compile "$LINENO"; then : 1734 ac_header_compiler=yes 1735else 1736 ac_header_compiler=no 1737fi 1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1740$as_echo "$ac_header_compiler" >&6; } 1741 1742# Is the header present? 1743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1744$as_echo_n "checking $2 presence... " >&6; } 1745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1746/* end confdefs.h. */ 1747#include <$2> 1748_ACEOF 1749if ac_fn_c_try_cpp "$LINENO"; then : 1750 ac_header_preproc=yes 1751else 1752 ac_header_preproc=no 1753fi 1754rm -f conftest.err conftest.i conftest.$ac_ext 1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1756$as_echo "$ac_header_preproc" >&6; } 1757 1758# So? What about this header? 1759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1760 yes:no: ) 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1762$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1764$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1765 ;; 1766 no:yes:* ) 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1768$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1770$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1772$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1774$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1777( $as_echo "## ---------------------------------- ## 1778## Report this to christos@astron.com ## 1779## ---------------------------------- ##" 1780 ) | sed "s/^/$as_me: WARNING: /" >&2 1781 ;; 1782esac 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1784$as_echo_n "checking for $2... " >&6; } 1785if eval \${$3+:} false; then : 1786 $as_echo_n "(cached) " >&6 1787else 1788 eval "$3=\$ac_header_compiler" 1789fi 1790eval ac_res=\$$3 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1792$as_echo "$ac_res" >&6; } 1793fi 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 1796} # ac_fn_c_check_header_mongrel 1797 1798# ac_fn_c_try_run LINENO 1799# ---------------------- 1800# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1801# that executables *can* be run. 1802ac_fn_c_try_run () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 if { { ac_try="$ac_link" 1806case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811$as_echo "$ac_try_echo"; } >&5 1812 (eval "$ac_link") 2>&5 1813 ac_status=$? 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1816 { { case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_try") 2>&5 1823 ac_status=$? 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1825 test $ac_status = 0; }; }; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: program exited with status $ac_status" >&5 1829 $as_echo "$as_me: failed program was:" >&5 1830sed 's/^/| /' conftest.$ac_ext >&5 1831 1832 ac_retval=$ac_status 1833fi 1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_c_try_run 1839 1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1841# ------------------------------------------------------- 1842# Tests whether HEADER exists and can be compiled using the include files in 1843# INCLUDES, setting the cache variable VAR accordingly. 1844ac_fn_c_check_header_compile () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1848$as_echo_n "checking for $2... " >&6; } 1849if eval \${$3+:} false; then : 1850 $as_echo_n "(cached) " >&6 1851else 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$4 1855#include <$2> 1856_ACEOF 1857if ac_fn_c_try_compile "$LINENO"; then : 1858 eval "$3=yes" 1859else 1860 eval "$3=no" 1861fi 1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1863fi 1864eval ac_res=\$$3 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866$as_echo "$ac_res" >&6; } 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 1869} # ac_fn_c_check_header_compile 1870 1871# ac_fn_c_try_link LINENO 1872# ----------------------- 1873# Try to link conftest.$ac_ext, and return whether this succeeded. 1874ac_fn_c_try_link () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 rm -f conftest.$ac_objext conftest$ac_exeext 1878 if { { ac_try="$ac_link" 1879case "(($ac_try" in 1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1881 *) ac_try_echo=$ac_try;; 1882esac 1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1884$as_echo "$ac_try_echo"; } >&5 1885 (eval "$ac_link") 2>conftest.err 1886 ac_status=$? 1887 if test -s conftest.err; then 1888 grep -v '^ *+' conftest.err >conftest.er1 1889 cat conftest.er1 >&5 1890 mv -f conftest.er1 conftest.err 1891 fi 1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1893 test $ac_status = 0; } && { 1894 test -z "$ac_c_werror_flag" || 1895 test ! -s conftest.err 1896 } && test -s conftest$ac_exeext && { 1897 test "$cross_compiling" = yes || 1898 $as_test_x conftest$ac_exeext 1899 }; then : 1900 ac_retval=0 1901else 1902 $as_echo "$as_me: failed program was:" >&5 1903sed 's/^/| /' conftest.$ac_ext >&5 1904 1905 ac_retval=1 1906fi 1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1909 # interfere with the next link command; also delete a directory that is 1910 # left behind by Apple's compiler. We do this before executing the actions. 1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 as_fn_set_status $ac_retval 1914 1915} # ac_fn_c_try_link 1916 1917# ac_fn_c_check_func LINENO FUNC VAR 1918# ---------------------------------- 1919# Tests whether FUNC exists, setting the cache variable VAR accordingly 1920ac_fn_c_check_func () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1924$as_echo_n "checking for $2... " >&6; } 1925if eval \${$3+:} false; then : 1926 $as_echo_n "(cached) " >&6 1927else 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1929/* end confdefs.h. */ 1930/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1932#define $2 innocuous_$2 1933 1934/* System header to define __stub macros and hopefully few prototypes, 1935 which can conflict with char $2 (); below. 1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1937 <limits.h> exists even on freestanding compilers. */ 1938 1939#ifdef __STDC__ 1940# include <limits.h> 1941#else 1942# include <assert.h> 1943#endif 1944 1945#undef $2 1946 1947/* Override any GCC internal prototype to avoid an error. 1948 Use char because int might match the return type of a GCC 1949 builtin and then its argument prototype would still apply. */ 1950#ifdef __cplusplus 1951extern "C" 1952#endif 1953char $2 (); 1954/* The GNU C library defines this for functions which it implements 1955 to always fail with ENOSYS. Some functions are actually named 1956 something starting with __ and the normal name is an alias. */ 1957#if defined __stub_$2 || defined __stub___$2 1958choke me 1959#endif 1960 1961int 1962main () 1963{ 1964return $2 (); 1965 ; 1966 return 0; 1967} 1968_ACEOF 1969if ac_fn_c_try_link "$LINENO"; then : 1970 eval "$3=yes" 1971else 1972 eval "$3=no" 1973fi 1974rm -f core conftest.err conftest.$ac_objext \ 1975 conftest$ac_exeext conftest.$ac_ext 1976fi 1977eval ac_res=\$$3 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1979$as_echo "$ac_res" >&6; } 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 1982} # ac_fn_c_check_func 1983 1984# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1985# ------------------------------------------- 1986# Tests whether TYPE exists after having included INCLUDES, setting cache 1987# variable VAR accordingly. 1988ac_fn_c_check_type () 1989{ 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1992$as_echo_n "checking for $2... " >&6; } 1993if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995else 1996 eval "$3=no" 1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1998/* end confdefs.h. */ 1999$4 2000int 2001main () 2002{ 2003if (sizeof ($2)) 2004 return 0; 2005 ; 2006 return 0; 2007} 2008_ACEOF 2009if ac_fn_c_try_compile "$LINENO"; then : 2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2011/* end confdefs.h. */ 2012$4 2013int 2014main () 2015{ 2016if (sizeof (($2))) 2017 return 0; 2018 ; 2019 return 0; 2020} 2021_ACEOF 2022if ac_fn_c_try_compile "$LINENO"; then : 2023 2024else 2025 eval "$3=yes" 2026fi 2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2028fi 2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2030fi 2031eval ac_res=\$$3 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2033$as_echo "$ac_res" >&6; } 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2035 2036} # ac_fn_c_check_type 2037 2038# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2039# ---------------------------------------------------- 2040# Tries to find if the field MEMBER exists in type AGGR, after including 2041# INCLUDES, setting cache variable VAR accordingly. 2042ac_fn_c_check_member () 2043{ 2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2046$as_echo_n "checking for $2.$3... " >&6; } 2047if eval \${$4+:} false; then : 2048 $as_echo_n "(cached) " >&6 2049else 2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052$5 2053int 2054main () 2055{ 2056static $2 ac_aggr; 2057if (ac_aggr.$3) 2058return 0; 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO"; then : 2064 eval "$4=yes" 2065else 2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2067/* end confdefs.h. */ 2068$5 2069int 2070main () 2071{ 2072static $2 ac_aggr; 2073if (sizeof ac_aggr.$3) 2074return 0; 2075 ; 2076 return 0; 2077} 2078_ACEOF 2079if ac_fn_c_try_compile "$LINENO"; then : 2080 eval "$4=yes" 2081else 2082 eval "$4=no" 2083fi 2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085fi 2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2087fi 2088eval ac_res=\$$4 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2090$as_echo "$ac_res" >&6; } 2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2092 2093} # ac_fn_c_check_member 2094 2095# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2096# --------------------------------------------- 2097# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2098# accordingly. 2099ac_fn_c_check_decl () 2100{ 2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2102 as_decl_name=`echo $2|sed 's/ *(.*//'` 2103 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2105$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2106if eval \${$3+:} false; then : 2107 $as_echo_n "(cached) " >&6 2108else 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$4 2112int 2113main () 2114{ 2115#ifndef $as_decl_name 2116#ifdef __cplusplus 2117 (void) $as_decl_use; 2118#else 2119 (void) $as_decl_name; 2120#endif 2121#endif 2122 2123 ; 2124 return 0; 2125} 2126_ACEOF 2127if ac_fn_c_try_compile "$LINENO"; then : 2128 eval "$3=yes" 2129else 2130 eval "$3=no" 2131fi 2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2133fi 2134eval ac_res=\$$3 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2136$as_echo "$ac_res" >&6; } 2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2138 2139} # ac_fn_c_check_decl 2140 2141# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2142# -------------------------------------------- 2143# Tries to find the compile-time value of EXPR in a program that includes 2144# INCLUDES, setting VAR accordingly. Returns whether the value could be 2145# computed 2146ac_fn_c_compute_int () 2147{ 2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2149 if test "$cross_compiling" = yes; then 2150 # Depending upon the size, compute the lo and hi bounds. 2151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152/* end confdefs.h. */ 2153$4 2154int 2155main () 2156{ 2157static int test_array [1 - 2 * !(($2) >= 0)]; 2158test_array [0] = 0 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 ac_lo=0 ac_mid=0 2166 while :; do 2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2168/* end confdefs.h. */ 2169$4 2170int 2171main () 2172{ 2173static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2174test_array [0] = 0 2175 2176 ; 2177 return 0; 2178} 2179_ACEOF 2180if ac_fn_c_try_compile "$LINENO"; then : 2181 ac_hi=$ac_mid; break 2182else 2183 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2184 if test $ac_lo -le $ac_mid; then 2185 ac_lo= ac_hi= 2186 break 2187 fi 2188 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2191 done 2192else 2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2194/* end confdefs.h. */ 2195$4 2196int 2197main () 2198{ 2199static int test_array [1 - 2 * !(($2) < 0)]; 2200test_array [0] = 0 2201 2202 ; 2203 return 0; 2204} 2205_ACEOF 2206if ac_fn_c_try_compile "$LINENO"; then : 2207 ac_hi=-1 ac_mid=-1 2208 while :; do 2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2210/* end confdefs.h. */ 2211$4 2212int 2213main () 2214{ 2215static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2216test_array [0] = 0 2217 2218 ; 2219 return 0; 2220} 2221_ACEOF 2222if ac_fn_c_try_compile "$LINENO"; then : 2223 ac_lo=$ac_mid; break 2224else 2225 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2226 if test $ac_mid -le $ac_hi; then 2227 ac_lo= ac_hi= 2228 break 2229 fi 2230 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2233 done 2234else 2235 ac_lo= ac_hi= 2236fi 2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2238fi 2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2240# Binary search between lo and hi bounds. 2241while test "x$ac_lo" != "x$ac_hi"; do 2242 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2244/* end confdefs.h. */ 2245$4 2246int 2247main () 2248{ 2249static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2250test_array [0] = 0 2251 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256if ac_fn_c_try_compile "$LINENO"; then : 2257 ac_hi=$ac_mid 2258else 2259 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2260fi 2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2262done 2263case $ac_lo in #(( 2264?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2265'') ac_retval=1 ;; 2266esac 2267 else 2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2269/* end confdefs.h. */ 2270$4 2271static long int longval () { return $2; } 2272static unsigned long int ulongval () { return $2; } 2273#include <stdio.h> 2274#include <stdlib.h> 2275int 2276main () 2277{ 2278 2279 FILE *f = fopen ("conftest.val", "w"); 2280 if (! f) 2281 return 1; 2282 if (($2) < 0) 2283 { 2284 long int i = longval (); 2285 if (i != ($2)) 2286 return 1; 2287 fprintf (f, "%ld", i); 2288 } 2289 else 2290 { 2291 unsigned long int i = ulongval (); 2292 if (i != ($2)) 2293 return 1; 2294 fprintf (f, "%lu", i); 2295 } 2296 /* Do not output a trailing newline, as this causes \r\n confusion 2297 on some platforms. */ 2298 return ferror (f) || fclose (f) != 0; 2299 2300 ; 2301 return 0; 2302} 2303_ACEOF 2304if ac_fn_c_try_run "$LINENO"; then : 2305 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2306else 2307 ac_retval=1 2308fi 2309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2310 conftest.$ac_objext conftest.beam conftest.$ac_ext 2311rm -f conftest.val 2312 2313 fi 2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2315 as_fn_set_status $ac_retval 2316 2317} # ac_fn_c_compute_int 2318cat >config.log <<_ACEOF 2319This file contains any messages produced by compilers while 2320running configure, to aid debugging if configure makes a mistake. 2321 2322It was created by file $as_me 5.11, which was 2323generated by GNU Autoconf 2.68. Invocation command line was 2324 2325 $ $0 $@ 2326 2327_ACEOF 2328exec 5>>config.log 2329{ 2330cat <<_ASUNAME 2331## --------- ## 2332## Platform. ## 2333## --------- ## 2334 2335hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2336uname -m = `(uname -m) 2>/dev/null || echo unknown` 2337uname -r = `(uname -r) 2>/dev/null || echo unknown` 2338uname -s = `(uname -s) 2>/dev/null || echo unknown` 2339uname -v = `(uname -v) 2>/dev/null || echo unknown` 2340 2341/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2342/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2343 2344/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2345/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2346/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2347/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2348/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2349/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2350/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2351 2352_ASUNAME 2353 2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2355for as_dir in $PATH 2356do 2357 IFS=$as_save_IFS 2358 test -z "$as_dir" && as_dir=. 2359 $as_echo "PATH: $as_dir" 2360 done 2361IFS=$as_save_IFS 2362 2363} >&5 2364 2365cat >&5 <<_ACEOF 2366 2367 2368## ----------- ## 2369## Core tests. ## 2370## ----------- ## 2371 2372_ACEOF 2373 2374 2375# Keep a trace of the command line. 2376# Strip out --no-create and --no-recursion so they do not pile up. 2377# Strip out --silent because we don't want to record it for future runs. 2378# Also quote any args containing shell meta-characters. 2379# Make two passes to allow for proper duplicate-argument suppression. 2380ac_configure_args= 2381ac_configure_args0= 2382ac_configure_args1= 2383ac_must_keep_next=false 2384for ac_pass in 1 2 2385do 2386 for ac_arg 2387 do 2388 case $ac_arg in 2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2391 | -silent | --silent | --silen | --sile | --sil) 2392 continue ;; 2393 *\'*) 2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2395 esac 2396 case $ac_pass in 2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2398 2) 2399 as_fn_append ac_configure_args1 " '$ac_arg'" 2400 if test $ac_must_keep_next = true; then 2401 ac_must_keep_next=false # Got value, back to normal. 2402 else 2403 case $ac_arg in 2404 *=* | --config-cache | -C | -disable-* | --disable-* \ 2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2407 | -with-* | --with-* | -without-* | --without-* | --x) 2408 case "$ac_configure_args0 " in 2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2410 esac 2411 ;; 2412 -* ) ac_must_keep_next=true ;; 2413 esac 2414 fi 2415 as_fn_append ac_configure_args " '$ac_arg'" 2416 ;; 2417 esac 2418 done 2419done 2420{ ac_configure_args0=; unset ac_configure_args0;} 2421{ ac_configure_args1=; unset ac_configure_args1;} 2422 2423# When interrupted or exit'd, cleanup temporary files, and complete 2424# config.log. We remove comments because anyway the quotes in there 2425# would cause problems or look ugly. 2426# WARNING: Use '\'' to represent an apostrophe within the trap. 2427# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2428trap 'exit_status=$? 2429 # Save into config.log some information that might help in debugging. 2430 { 2431 echo 2432 2433 $as_echo "## ---------------- ## 2434## Cache variables. ## 2435## ---------------- ##" 2436 echo 2437 # The following way of writing the cache mishandles newlines in values, 2438( 2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2440 eval ac_val=\$$ac_var 2441 case $ac_val in #( 2442 *${as_nl}*) 2443 case $ac_var in #( 2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2445$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2446 esac 2447 case $ac_var in #( 2448 _ | IFS | as_nl) ;; #( 2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2450 *) { eval $ac_var=; unset $ac_var;} ;; 2451 esac ;; 2452 esac 2453 done 2454 (set) 2>&1 | 2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2456 *${as_nl}ac_space=\ *) 2457 sed -n \ 2458 "s/'\''/'\''\\\\'\'''\''/g; 2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2460 ;; #( 2461 *) 2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2463 ;; 2464 esac | 2465 sort 2466) 2467 echo 2468 2469 $as_echo "## ----------------- ## 2470## Output variables. ## 2471## ----------------- ##" 2472 echo 2473 for ac_var in $ac_subst_vars 2474 do 2475 eval ac_val=\$$ac_var 2476 case $ac_val in 2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2478 esac 2479 $as_echo "$ac_var='\''$ac_val'\''" 2480 done | sort 2481 echo 2482 2483 if test -n "$ac_subst_files"; then 2484 $as_echo "## ------------------- ## 2485## File substitutions. ## 2486## ------------------- ##" 2487 echo 2488 for ac_var in $ac_subst_files 2489 do 2490 eval ac_val=\$$ac_var 2491 case $ac_val in 2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2493 esac 2494 $as_echo "$ac_var='\''$ac_val'\''" 2495 done | sort 2496 echo 2497 fi 2498 2499 if test -s confdefs.h; then 2500 $as_echo "## ----------- ## 2501## confdefs.h. ## 2502## ----------- ##" 2503 echo 2504 cat confdefs.h 2505 echo 2506 fi 2507 test "$ac_signal" != 0 && 2508 $as_echo "$as_me: caught signal $ac_signal" 2509 $as_echo "$as_me: exit $exit_status" 2510 } >&5 2511 rm -f core *.core core.conftest.* && 2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2513 exit $exit_status 2514' 0 2515for ac_signal in 1 2 13 15; do 2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2517done 2518ac_signal=0 2519 2520# confdefs.h avoids OS command line length limits that DEFS can exceed. 2521rm -f -r conftest* confdefs.h 2522 2523$as_echo "/* confdefs.h */" > confdefs.h 2524 2525# Predefined preprocessor variables. 2526 2527cat >>confdefs.h <<_ACEOF 2528#define PACKAGE_NAME "$PACKAGE_NAME" 2529_ACEOF 2530 2531cat >>confdefs.h <<_ACEOF 2532#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2533_ACEOF 2534 2535cat >>confdefs.h <<_ACEOF 2536#define PACKAGE_VERSION "$PACKAGE_VERSION" 2537_ACEOF 2538 2539cat >>confdefs.h <<_ACEOF 2540#define PACKAGE_STRING "$PACKAGE_STRING" 2541_ACEOF 2542 2543cat >>confdefs.h <<_ACEOF 2544#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2545_ACEOF 2546 2547cat >>confdefs.h <<_ACEOF 2548#define PACKAGE_URL "$PACKAGE_URL" 2549_ACEOF 2550 2551 2552# Let the site file select an alternate cache file if it wants to. 2553# Prefer an explicitly selected file to automatically selected ones. 2554ac_site_file1=NONE 2555ac_site_file2=NONE 2556if test -n "$CONFIG_SITE"; then 2557 # We do not want a PATH search for config.site. 2558 case $CONFIG_SITE in #(( 2559 -*) ac_site_file1=./$CONFIG_SITE;; 2560 */*) ac_site_file1=$CONFIG_SITE;; 2561 *) ac_site_file1=./$CONFIG_SITE;; 2562 esac 2563elif test "x$prefix" != xNONE; then 2564 ac_site_file1=$prefix/share/config.site 2565 ac_site_file2=$prefix/etc/config.site 2566else 2567 ac_site_file1=$ac_default_prefix/share/config.site 2568 ac_site_file2=$ac_default_prefix/etc/config.site 2569fi 2570for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2571do 2572 test "x$ac_site_file" = xNONE && continue 2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2575$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2576 sed 's/^/| /' "$ac_site_file" >&5 2577 . "$ac_site_file" \ 2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2580as_fn_error $? "failed to load site script $ac_site_file 2581See \`config.log' for more details" "$LINENO" 5; } 2582 fi 2583done 2584 2585if test -r "$cache_file"; then 2586 # Some versions of bash will fail to source /dev/null (special files 2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2590$as_echo "$as_me: loading cache $cache_file" >&6;} 2591 case $cache_file in 2592 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2593 *) . "./$cache_file";; 2594 esac 2595 fi 2596else 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2598$as_echo "$as_me: creating cache $cache_file" >&6;} 2599 >$cache_file 2600fi 2601 2602# Check that the precious variables saved in the cache have kept the same 2603# value. 2604ac_cache_corrupted=false 2605for ac_var in $ac_precious_vars; do 2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2607 eval ac_new_set=\$ac_env_${ac_var}_set 2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2609 eval ac_new_val=\$ac_env_${ac_var}_value 2610 case $ac_old_set,$ac_new_set in 2611 set,) 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2613$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2614 ac_cache_corrupted=: ;; 2615 ,set) 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2617$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2618 ac_cache_corrupted=: ;; 2619 ,);; 2620 *) 2621 if test "x$ac_old_val" != "x$ac_new_val"; then 2622 # differences in whitespace do not lead to failure. 2623 ac_old_val_w=`echo x $ac_old_val` 2624 ac_new_val_w=`echo x $ac_new_val` 2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2627$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2628 ac_cache_corrupted=: 2629 else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2631$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2632 eval $ac_var=\$ac_old_val 2633 fi 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2635$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2637$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2638 fi;; 2639 esac 2640 # Pass precious variables to config.status. 2641 if test "$ac_new_set" = set; then 2642 case $ac_new_val in 2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2644 *) ac_arg=$ac_var=$ac_new_val ;; 2645 esac 2646 case " $ac_configure_args " in 2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2649 esac 2650 fi 2651done 2652if $ac_cache_corrupted; then 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2656$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2658fi 2659## -------------------- ## 2660## Main body of script. ## 2661## -------------------- ## 2662 2663ac_ext=c 2664ac_cpp='$CPP $CPPFLAGS' 2665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2667ac_compiler_gnu=$ac_cv_c_compiler_gnu 2668 2669 2670am__api_version='1.11' 2671 2672ac_aux_dir= 2673for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2674 if test -f "$ac_dir/install-sh"; then 2675 ac_aux_dir=$ac_dir 2676 ac_install_sh="$ac_aux_dir/install-sh -c" 2677 break 2678 elif test -f "$ac_dir/install.sh"; then 2679 ac_aux_dir=$ac_dir 2680 ac_install_sh="$ac_aux_dir/install.sh -c" 2681 break 2682 elif test -f "$ac_dir/shtool"; then 2683 ac_aux_dir=$ac_dir 2684 ac_install_sh="$ac_aux_dir/shtool install -c" 2685 break 2686 fi 2687done 2688if test -z "$ac_aux_dir"; then 2689 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2690fi 2691 2692# These three variables are undocumented and unsupported, 2693# and are intended to be withdrawn in a future Autoconf release. 2694# They can cause serious problems if a builder's source tree is in a directory 2695# whose full name contains unusual characters. 2696ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2697ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2698ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2699 2700 2701# Find a good install program. We prefer a C program (faster), 2702# so one script is as good as another. But avoid the broken or 2703# incompatible versions: 2704# SysV /etc/install, /usr/sbin/install 2705# SunOS /usr/etc/install 2706# IRIX /sbin/install 2707# AIX /bin/install 2708# AmigaOS /C/install, which installs bootblocks on floppy discs 2709# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2710# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2711# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2712# OS/2's system install, which has a completely different semantic 2713# ./install, which can be erroneously created by make from ./install.sh. 2714# Reject install programs that cannot install multiple files. 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2716$as_echo_n "checking for a BSD-compatible install... " >&6; } 2717if test -z "$INSTALL"; then 2718if ${ac_cv_path_install+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 # Account for people who put trailing slashes in PATH elements. 2727case $as_dir/ in #(( 2728 ./ | .// | /[cC]/* | \ 2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2731 /usr/ucb/* ) ;; 2732 *) 2733 # OSF1 and SCO ODT 3.0 have their own names for install. 2734 # Don't use installbsd from OSF since it installs stuff as root 2735 # by default. 2736 for ac_prog in ginstall scoinst install; do 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2739 if test $ac_prog = install && 2740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2741 # AIX install. It has an incompatible calling convention. 2742 : 2743 elif test $ac_prog = install && 2744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2745 # program-specific install script used by HP pwplus--don't use. 2746 : 2747 else 2748 rm -rf conftest.one conftest.two conftest.dir 2749 echo one > conftest.one 2750 echo two > conftest.two 2751 mkdir conftest.dir 2752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2753 test -s conftest.one && test -s conftest.two && 2754 test -s conftest.dir/conftest.one && 2755 test -s conftest.dir/conftest.two 2756 then 2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2758 break 3 2759 fi 2760 fi 2761 fi 2762 done 2763 done 2764 ;; 2765esac 2766 2767 done 2768IFS=$as_save_IFS 2769 2770rm -rf conftest.one conftest.two conftest.dir 2771 2772fi 2773 if test "${ac_cv_path_install+set}" = set; then 2774 INSTALL=$ac_cv_path_install 2775 else 2776 # As a last resort, use the slow shell script. Don't cache a 2777 # value for INSTALL within a source directory, because that will 2778 # break other packages using the cache if that directory is 2779 # removed, or if the value is a relative name. 2780 INSTALL=$ac_install_sh 2781 fi 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2784$as_echo "$INSTALL" >&6; } 2785 2786# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2787# It thinks the first close brace ends the variable substitution. 2788test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2789 2790test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2791 2792test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2793 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2795$as_echo_n "checking whether build environment is sane... " >&6; } 2796# Just in case 2797sleep 1 2798echo timestamp > conftest.file 2799# Reject unsafe characters in $srcdir or the absolute working directory 2800# name. Accept space and tab only in the latter. 2801am_lf=' 2802' 2803case `pwd` in 2804 *[\\\"\#\$\&\'\`$am_lf]*) 2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2806esac 2807case $srcdir in 2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2809 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2810esac 2811 2812# Do `set' in a subshell so we don't clobber the current shell's 2813# arguments. Must try -L first in case configure is actually a 2814# symlink; some systems play weird games with the mod time of symlinks 2815# (eg FreeBSD returns the mod time of the symlink's containing 2816# directory). 2817if ( 2818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2819 if test "$*" = "X"; then 2820 # -L didn't work. 2821 set X `ls -t "$srcdir/configure" conftest.file` 2822 fi 2823 rm -f conftest.file 2824 if test "$*" != "X $srcdir/configure conftest.file" \ 2825 && test "$*" != "X conftest.file $srcdir/configure"; then 2826 2827 # If neither matched, then we have a broken ls. This can happen 2828 # if, for instance, CONFIG_SHELL is bash and it inherits a 2829 # broken ls alias from the environment. This has actually 2830 # happened. Such a system could not be considered "sane". 2831 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2832alias in your environment" "$LINENO" 5 2833 fi 2834 2835 test "$2" = conftest.file 2836 ) 2837then 2838 # Ok. 2839 : 2840else 2841 as_fn_error $? "newly created file is older than distributed files! 2842Check your system clock" "$LINENO" 5 2843fi 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2845$as_echo "yes" >&6; } 2846test "$program_prefix" != NONE && 2847 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2848# Use a double $ so make ignores it. 2849test "$program_suffix" != NONE && 2850 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2851# Double any \ or $. 2852# By default was `s,x,x', remove it if useless. 2853ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2854program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2855 2856# expand $ac_aux_dir to an absolute path 2857am_aux_dir=`cd $ac_aux_dir && pwd` 2858 2859if test x"${MISSING+set}" != xset; then 2860 case $am_aux_dir in 2861 *\ * | *\ *) 2862 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2863 *) 2864 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2865 esac 2866fi 2867# Use eval to expand $SHELL 2868if eval "$MISSING --run true"; then 2869 am_missing_run="$MISSING --run " 2870else 2871 am_missing_run= 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2873$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2874fi 2875 2876if test x"${install_sh}" != xset; then 2877 case $am_aux_dir in 2878 *\ * | *\ *) 2879 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2880 *) 2881 install_sh="\${SHELL} $am_aux_dir/install-sh" 2882 esac 2883fi 2884 2885# Installed binaries are usually stripped using `strip' when the user 2886# run `make install-strip'. However `strip' might not be the right 2887# tool to use in cross-compilation environments, therefore Automake 2888# will honor the `STRIP' environment variable to overrule this program. 2889if test "$cross_compiling" != no; then 2890 if test -n "$ac_tool_prefix"; then 2891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2892set dummy ${ac_tool_prefix}strip; ac_word=$2 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894$as_echo_n "checking for $ac_word... " >&6; } 2895if ${ac_cv_prog_STRIP+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test -n "$STRIP"; then 2899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2900else 2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902for as_dir in $PATH 2903do 2904 IFS=$as_save_IFS 2905 test -z "$as_dir" && as_dir=. 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2908 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913 done 2914IFS=$as_save_IFS 2915 2916fi 2917fi 2918STRIP=$ac_cv_prog_STRIP 2919if test -n "$STRIP"; then 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2921$as_echo "$STRIP" >&6; } 2922else 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924$as_echo "no" >&6; } 2925fi 2926 2927 2928fi 2929if test -z "$ac_cv_prog_STRIP"; then 2930 ac_ct_STRIP=$STRIP 2931 # Extract the first word of "strip", so it can be a program name with args. 2932set dummy strip; ac_word=$2 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2934$as_echo_n "checking for $ac_word... " >&6; } 2935if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937else 2938 if test -n "$ac_ct_STRIP"; then 2939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2940else 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2948 ac_cv_prog_ac_ct_STRIP="strip" 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956fi 2957fi 2958ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2959if test -n "$ac_ct_STRIP"; then 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2961$as_echo "$ac_ct_STRIP" >&6; } 2962else 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964$as_echo "no" >&6; } 2965fi 2966 2967 if test "x$ac_ct_STRIP" = x; then 2968 STRIP=":" 2969 else 2970 case $cross_compiling:$ac_tool_warned in 2971yes:) 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2974ac_tool_warned=yes ;; 2975esac 2976 STRIP=$ac_ct_STRIP 2977 fi 2978else 2979 STRIP="$ac_cv_prog_STRIP" 2980fi 2981 2982fi 2983INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2984 2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2986$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2987if test -z "$MKDIR_P"; then 2988 if ${ac_cv_path_mkdir+:} false; then : 2989 $as_echo_n "(cached) " >&6 2990else 2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2993do 2994 IFS=$as_save_IFS 2995 test -z "$as_dir" && as_dir=. 2996 for ac_prog in mkdir gmkdir; do 2997 for ac_exec_ext in '' $ac_executable_extensions; do 2998 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2999 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3000 'mkdir (GNU coreutils) '* | \ 3001 'mkdir (coreutils) '* | \ 3002 'mkdir (fileutils) '4.1*) 3003 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3004 break 3;; 3005 esac 3006 done 3007 done 3008 done 3009IFS=$as_save_IFS 3010 3011fi 3012 3013 test -d ./--version && rmdir ./--version 3014 if test "${ac_cv_path_mkdir+set}" = set; then 3015 MKDIR_P="$ac_cv_path_mkdir -p" 3016 else 3017 # As a last resort, use the slow shell script. Don't cache a 3018 # value for MKDIR_P within a source directory, because that will 3019 # break other packages using the cache if that directory is 3020 # removed, or if the value is a relative name. 3021 MKDIR_P="$ac_install_sh -d" 3022 fi 3023fi 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3025$as_echo "$MKDIR_P" >&6; } 3026 3027mkdir_p="$MKDIR_P" 3028case $mkdir_p in 3029 [\\/$]* | ?:[\\/]*) ;; 3030 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3031esac 3032 3033for ac_prog in gawk mawk nawk awk 3034do 3035 # Extract the first word of "$ac_prog", so it can be a program name with args. 3036set dummy $ac_prog; ac_word=$2 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038$as_echo_n "checking for $ac_word... " >&6; } 3039if ${ac_cv_prog_AWK+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 if test -n "$AWK"; then 3043 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3044else 3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH 3047do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3052 ac_cv_prog_AWK="$ac_prog" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056done 3057 done 3058IFS=$as_save_IFS 3059 3060fi 3061fi 3062AWK=$ac_cv_prog_AWK 3063if test -n "$AWK"; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3065$as_echo "$AWK" >&6; } 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068$as_echo "no" >&6; } 3069fi 3070 3071 3072 test -n "$AWK" && break 3073done 3074 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3076$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3077set x ${MAKE-make} 3078ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3079if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081else 3082 cat >conftest.make <<\_ACEOF 3083SHELL = /bin/sh 3084all: 3085 @echo '@@@%%%=$(MAKE)=@@@%%%' 3086_ACEOF 3087# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3088case `${MAKE-make} -f conftest.make 2>/dev/null` in 3089 *@@@%%%=?*=@@@%%%*) 3090 eval ac_cv_prog_make_${ac_make}_set=yes;; 3091 *) 3092 eval ac_cv_prog_make_${ac_make}_set=no;; 3093esac 3094rm -f conftest.make 3095fi 3096if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3098$as_echo "yes" >&6; } 3099 SET_MAKE= 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103 SET_MAKE="MAKE=${MAKE-make}" 3104fi 3105 3106rm -rf .tst 2>/dev/null 3107mkdir .tst 2>/dev/null 3108if test -d .tst; then 3109 am__leading_dot=. 3110else 3111 am__leading_dot=_ 3112fi 3113rmdir .tst 2>/dev/null 3114 3115if test "`cd $srcdir && pwd`" != "`pwd`"; then 3116 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3117 # is not polluted with repeated "-I." 3118 am__isrc=' -I$(srcdir)' 3119 # test to see if srcdir already configured 3120 if test -f $srcdir/config.status; then 3121 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3122 fi 3123fi 3124 3125# test whether we have cygpath 3126if test -z "$CYGPATH_W"; then 3127 if (cygpath --version) >/dev/null 2>/dev/null; then 3128 CYGPATH_W='cygpath -w' 3129 else 3130 CYGPATH_W=echo 3131 fi 3132fi 3133 3134 3135# Define the identity of the package. 3136 PACKAGE='file' 3137 VERSION='5.11' 3138 3139 3140cat >>confdefs.h <<_ACEOF 3141#define PACKAGE "$PACKAGE" 3142_ACEOF 3143 3144 3145cat >>confdefs.h <<_ACEOF 3146#define VERSION "$VERSION" 3147_ACEOF 3148 3149# Some tools Automake needs. 3150 3151ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3152 3153 3154AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3155 3156 3157AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3158 3159 3160AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3161 3162 3163MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3164 3165# We need awk for the "check" target. The system "awk" is bad on 3166# some platforms. 3167# Always define AMTAR for backward compatibility. 3168 3169AMTAR=${AMTAR-"${am_missing_run}tar"} 3170 3171am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3172 3173 3174 3175 3176 3177# Check whether --enable-silent-rules was given. 3178if test "${enable_silent_rules+set}" = set; then : 3179 enableval=$enable_silent_rules; 3180fi 3181 3182case $enable_silent_rules in 3183yes) AM_DEFAULT_VERBOSITY=0;; 3184no) AM_DEFAULT_VERBOSITY=1;; 3185*) AM_DEFAULT_VERBOSITY=0;; 3186esac 3187AM_BACKSLASH='\' 3188 3189 3190ac_config_headers="$ac_config_headers config.h" 3191 3192 3193 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3195$as_echo_n "checking for builtin ELF support... " >&6; } 3196# Check whether --enable-elf was given. 3197if test "${enable_elf+set}" = set; then : 3198 enableval=$enable_elf; if test "${enableval}" = yes; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3200$as_echo "yes" >&6; } 3201 3202$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3203 3204else 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206$as_echo "no" >&6; } 3207fi 3208else 3209 3210 # enable by default 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3212$as_echo "yes" >&6; } 3213 3214$as_echo "#define BUILTIN_ELF 1" >>confdefs.h 3215 3216 3217fi 3218 3219 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3221$as_echo_n "checking for ELF core file support... " >&6; } 3222# Check whether --enable-elf-core was given. 3223if test "${enable_elf_core+set}" = set; then : 3224 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3226$as_echo "yes" >&6; } 3227 3228$as_echo "#define ELFCORE 1" >>confdefs.h 3229 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234else 3235 3236 # enable by default 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3238$as_echo "yes" >&6; } 3239 3240$as_echo "#define ELFCORE 1" >>confdefs.h 3241 3242 3243fi 3244 3245 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3247$as_echo_n "checking for file formats in man section 5... " >&6; } 3248# Check whether --enable-fsect-man5 was given. 3249if test "${enable_fsect_man5+set}" = set; then : 3250 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3252$as_echo "yes" >&6; } 3253 fsect=5 3254else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3256$as_echo "no" >&6; } 3257 fsect=4 3258fi 3259else 3260 3261 # disable by default 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3263$as_echo "no" >&6; } 3264 fsect=4 3265 3266fi 3267 3268 3269# Make sure we can run config.sub. 3270$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3271 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3272 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3274$as_echo_n "checking build system type... " >&6; } 3275if ${ac_cv_build+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 ac_build_alias=$build_alias 3279test "x$ac_build_alias" = x && 3280 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3281test "x$ac_build_alias" = x && 3282 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3283ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3284 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3285 3286fi 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3288$as_echo "$ac_cv_build" >&6; } 3289case $ac_cv_build in 3290*-*-*) ;; 3291*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3292esac 3293build=$ac_cv_build 3294ac_save_IFS=$IFS; IFS='-' 3295set x $ac_cv_build 3296shift 3297build_cpu=$1 3298build_vendor=$2 3299shift; shift 3300# Remember, the first character of IFS is used to create $*, 3301# except with old shells: 3302build_os=$* 3303IFS=$ac_save_IFS 3304case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3305 3306 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3308$as_echo_n "checking host system type... " >&6; } 3309if ${ac_cv_host+:} false; then : 3310 $as_echo_n "(cached) " >&6 3311else 3312 if test "x$host_alias" = x; then 3313 ac_cv_host=$ac_cv_build 3314else 3315 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3317fi 3318 3319fi 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3321$as_echo "$ac_cv_host" >&6; } 3322case $ac_cv_host in 3323*-*-*) ;; 3324*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3325esac 3326host=$ac_cv_host 3327ac_save_IFS=$IFS; IFS='-' 3328set x $ac_cv_host 3329shift 3330host_cpu=$1 3331host_vendor=$2 3332shift; shift 3333# Remember, the first character of IFS is used to create $*, 3334# except with old shells: 3335host_os=$* 3336IFS=$ac_save_IFS 3337case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3338 3339 3340case "$host_os" in 3341 mingw32*) 3342 MINGW=1 3343 ;; 3344 *) 3345 MINGW=0 3346 ;; 3347esac 3348 3349 if test "$MINGW" = 1; then 3350 MINGW_TRUE= 3351 MINGW_FALSE='#' 3352else 3353 MINGW_TRUE='#' 3354 MINGW_FALSE= 3355fi 3356 3357 3358pkgdatadir='$(datadir)/misc' 3359 3360 3361 if test x$fsect = x5; then 3362 FSECT5_TRUE= 3363 FSECT5_FALSE='#' 3364else 3365 FSECT5_TRUE='#' 3366 FSECT5_FALSE= 3367fi 3368 3369 3370 3371DEPDIR="${am__leading_dot}deps" 3372 3373ac_config_commands="$ac_config_commands depfiles" 3374 3375 3376am_make=${MAKE-make} 3377cat > confinc << 'END' 3378am__doit: 3379 @echo this is the am__doit target 3380.PHONY: am__doit 3381END 3382# If we don't find an include directive, just comment out the code. 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3384$as_echo_n "checking for style of include used by $am_make... " >&6; } 3385am__include="#" 3386am__quote= 3387_am_result=none 3388# First try GNU make style include. 3389echo "include confinc" > confmf 3390# Ignore all kinds of additional output from `make'. 3391case `$am_make -s -f confmf 2> /dev/null` in #( 3392*the\ am__doit\ target*) 3393 am__include=include 3394 am__quote= 3395 _am_result=GNU 3396 ;; 3397esac 3398# Now try BSD make style include. 3399if test "$am__include" = "#"; then 3400 echo '.include "confinc"' > confmf 3401 case `$am_make -s -f confmf 2> /dev/null` in #( 3402 *the\ am__doit\ target*) 3403 am__include=.include 3404 am__quote="\"" 3405 _am_result=BSD 3406 ;; 3407 esac 3408fi 3409 3410 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3412$as_echo "$_am_result" >&6; } 3413rm -f confinc confmf 3414 3415# Check whether --enable-dependency-tracking was given. 3416if test "${enable_dependency_tracking+set}" = set; then : 3417 enableval=$enable_dependency_tracking; 3418fi 3419 3420if test "x$enable_dependency_tracking" != xno; then 3421 am_depcomp="$ac_aux_dir/depcomp" 3422 AMDEPBACKSLASH='\' 3423fi 3424 if test "x$enable_dependency_tracking" != xno; then 3425 AMDEP_TRUE= 3426 AMDEP_FALSE='#' 3427else 3428 AMDEP_TRUE='#' 3429 AMDEP_FALSE= 3430fi 3431 3432 3433ac_ext=c 3434ac_cpp='$CPP $CPPFLAGS' 3435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3437ac_compiler_gnu=$ac_cv_c_compiler_gnu 3438if test -n "$ac_tool_prefix"; then 3439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3440set dummy ${ac_tool_prefix}gcc; ac_word=$2 3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442$as_echo_n "checking for $ac_word... " >&6; } 3443if ${ac_cv_prog_CC+:} false; then : 3444 $as_echo_n "(cached) " >&6 3445else 3446 if test -n "$CC"; then 3447 ac_cv_prog_CC="$CC" # Let the user override the test. 3448else 3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450for as_dir in $PATH 3451do 3452 IFS=$as_save_IFS 3453 test -z "$as_dir" && as_dir=. 3454 for ac_exec_ext in '' $ac_executable_extensions; do 3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3456 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3458 break 2 3459 fi 3460done 3461 done 3462IFS=$as_save_IFS 3463 3464fi 3465fi 3466CC=$ac_cv_prog_CC 3467if test -n "$CC"; then 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3469$as_echo "$CC" >&6; } 3470else 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3472$as_echo "no" >&6; } 3473fi 3474 3475 3476fi 3477if test -z "$ac_cv_prog_CC"; then 3478 ac_ct_CC=$CC 3479 # Extract the first word of "gcc", so it can be a program name with args. 3480set dummy gcc; ac_word=$2 3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3482$as_echo_n "checking for $ac_word... " >&6; } 3483if ${ac_cv_prog_ac_ct_CC+:} false; then : 3484 $as_echo_n "(cached) " >&6 3485else 3486 if test -n "$ac_ct_CC"; then 3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3488else 3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3490for as_dir in $PATH 3491do 3492 IFS=$as_save_IFS 3493 test -z "$as_dir" && as_dir=. 3494 for ac_exec_ext in '' $ac_executable_extensions; do 3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3496 ac_cv_prog_ac_ct_CC="gcc" 3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3498 break 2 3499 fi 3500done 3501 done 3502IFS=$as_save_IFS 3503 3504fi 3505fi 3506ac_ct_CC=$ac_cv_prog_ac_ct_CC 3507if test -n "$ac_ct_CC"; then 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3509$as_echo "$ac_ct_CC" >&6; } 3510else 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3512$as_echo "no" >&6; } 3513fi 3514 3515 if test "x$ac_ct_CC" = x; then 3516 CC="" 3517 else 3518 case $cross_compiling:$ac_tool_warned in 3519yes:) 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3522ac_tool_warned=yes ;; 3523esac 3524 CC=$ac_ct_CC 3525 fi 3526else 3527 CC="$ac_cv_prog_CC" 3528fi 3529 3530if test -z "$CC"; then 3531 if test -n "$ac_tool_prefix"; then 3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3533set dummy ${ac_tool_prefix}cc; ac_word=$2 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535$as_echo_n "checking for $ac_word... " >&6; } 3536if ${ac_cv_prog_CC+:} false; then : 3537 $as_echo_n "(cached) " >&6 3538else 3539 if test -n "$CC"; then 3540 ac_cv_prog_CC="$CC" # Let the user override the test. 3541else 3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 test -z "$as_dir" && as_dir=. 3547 for ac_exec_ext in '' $ac_executable_extensions; do 3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3549 ac_cv_prog_CC="${ac_tool_prefix}cc" 3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3551 break 2 3552 fi 3553done 3554 done 3555IFS=$as_save_IFS 3556 3557fi 3558fi 3559CC=$ac_cv_prog_CC 3560if test -n "$CC"; then 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3562$as_echo "$CC" >&6; } 3563else 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3565$as_echo "no" >&6; } 3566fi 3567 3568 3569 fi 3570fi 3571if test -z "$CC"; then 3572 # Extract the first word of "cc", so it can be a program name with args. 3573set dummy cc; ac_word=$2 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3575$as_echo_n "checking for $ac_word... " >&6; } 3576if ${ac_cv_prog_CC+:} false; then : 3577 $as_echo_n "(cached) " >&6 3578else 3579 if test -n "$CC"; then 3580 ac_cv_prog_CC="$CC" # Let the user override the test. 3581else 3582 ac_prog_rejected=no 3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3584for as_dir in $PATH 3585do 3586 IFS=$as_save_IFS 3587 test -z "$as_dir" && as_dir=. 3588 for ac_exec_ext in '' $ac_executable_extensions; do 3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3591 ac_prog_rejected=yes 3592 continue 3593 fi 3594 ac_cv_prog_CC="cc" 3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3596 break 2 3597 fi 3598done 3599 done 3600IFS=$as_save_IFS 3601 3602if test $ac_prog_rejected = yes; then 3603 # We found a bogon in the path, so make sure we never use it. 3604 set dummy $ac_cv_prog_CC 3605 shift 3606 if test $# != 0; then 3607 # We chose a different compiler from the bogus one. 3608 # However, it has the same basename, so the bogon will be chosen 3609 # first if we set CC to just the basename; use the full file name. 3610 shift 3611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3612 fi 3613fi 3614fi 3615fi 3616CC=$ac_cv_prog_CC 3617if test -n "$CC"; then 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3619$as_echo "$CC" >&6; } 3620else 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3622$as_echo "no" >&6; } 3623fi 3624 3625 3626fi 3627if test -z "$CC"; then 3628 if test -n "$ac_tool_prefix"; then 3629 for ac_prog in cl.exe 3630 do 3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3632set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634$as_echo_n "checking for $ac_word... " >&6; } 3635if ${ac_cv_prog_CC+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 if test -n "$CC"; then 3639 ac_cv_prog_CC="$CC" # Let the user override the test. 3640else 3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH 3643do 3644 IFS=$as_save_IFS 3645 test -z "$as_dir" && as_dir=. 3646 for ac_exec_ext in '' $ac_executable_extensions; do 3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3650 break 2 3651 fi 3652done 3653 done 3654IFS=$as_save_IFS 3655 3656fi 3657fi 3658CC=$ac_cv_prog_CC 3659if test -n "$CC"; then 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3661$as_echo "$CC" >&6; } 3662else 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664$as_echo "no" >&6; } 3665fi 3666 3667 3668 test -n "$CC" && break 3669 done 3670fi 3671if test -z "$CC"; then 3672 ac_ct_CC=$CC 3673 for ac_prog in cl.exe 3674do 3675 # Extract the first word of "$ac_prog", so it can be a program name with args. 3676set dummy $ac_prog; ac_word=$2 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3678$as_echo_n "checking for $ac_word... " >&6; } 3679if ${ac_cv_prog_ac_ct_CC+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 if test -n "$ac_ct_CC"; then 3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3684else 3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3686for as_dir in $PATH 3687do 3688 IFS=$as_save_IFS 3689 test -z "$as_dir" && as_dir=. 3690 for ac_exec_ext in '' $ac_executable_extensions; do 3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3692 ac_cv_prog_ac_ct_CC="$ac_prog" 3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3694 break 2 3695 fi 3696done 3697 done 3698IFS=$as_save_IFS 3699 3700fi 3701fi 3702ac_ct_CC=$ac_cv_prog_ac_ct_CC 3703if test -n "$ac_ct_CC"; then 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3705$as_echo "$ac_ct_CC" >&6; } 3706else 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3708$as_echo "no" >&6; } 3709fi 3710 3711 3712 test -n "$ac_ct_CC" && break 3713done 3714 3715 if test "x$ac_ct_CC" = x; then 3716 CC="" 3717 else 3718 case $cross_compiling:$ac_tool_warned in 3719yes:) 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3722ac_tool_warned=yes ;; 3723esac 3724 CC=$ac_ct_CC 3725 fi 3726fi 3727 3728fi 3729 3730 3731test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3733as_fn_error $? "no acceptable C compiler found in \$PATH 3734See \`config.log' for more details" "$LINENO" 5; } 3735 3736# Provide some information about the compiler. 3737$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3738set X $ac_compile 3739ac_compiler=$2 3740for ac_option in --version -v -V -qversion; do 3741 { { ac_try="$ac_compiler $ac_option >&5" 3742case "(($ac_try" in 3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3744 *) ac_try_echo=$ac_try;; 3745esac 3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3747$as_echo "$ac_try_echo"; } >&5 3748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3749 ac_status=$? 3750 if test -s conftest.err; then 3751 sed '10a\ 3752... rest of stderr output deleted ... 3753 10q' conftest.err >conftest.er1 3754 cat conftest.er1 >&5 3755 fi 3756 rm -f conftest.er1 conftest.err 3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3758 test $ac_status = 0; } 3759done 3760 3761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763 3764int 3765main () 3766{ 3767 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772ac_clean_files_save=$ac_clean_files 3773ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3774# Try to create an executable without -o first, disregard a.out. 3775# It will help us diagnose broken compilers, and finding out an intuition 3776# of exeext. 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3778$as_echo_n "checking whether the C compiler works... " >&6; } 3779ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3780 3781# The possible output files: 3782ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3783 3784ac_rmfiles= 3785for ac_file in $ac_files 3786do 3787 case $ac_file in 3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3789 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3790 esac 3791done 3792rm -f $ac_rmfiles 3793 3794if { { ac_try="$ac_link_default" 3795case "(($ac_try" in 3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3797 *) ac_try_echo=$ac_try;; 3798esac 3799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3800$as_echo "$ac_try_echo"; } >&5 3801 (eval "$ac_link_default") 2>&5 3802 ac_status=$? 3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3804 test $ac_status = 0; }; then : 3805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3806# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3807# in a Makefile. We should not override ac_cv_exeext if it was cached, 3808# so that the user can short-circuit this test for compilers unknown to 3809# Autoconf. 3810for ac_file in $ac_files '' 3811do 3812 test -f "$ac_file" || continue 3813 case $ac_file in 3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3815 ;; 3816 [ab].out ) 3817 # We found the default executable, but exeext='' is most 3818 # certainly right. 3819 break;; 3820 *.* ) 3821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3822 then :; else 3823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3824 fi 3825 # We set ac_cv_exeext here because the later test for it is not 3826 # safe: cross compilers may not add the suffix if given an `-o' 3827 # argument, so we may need to know it at that point already. 3828 # Even if this section looks crufty: it has the advantage of 3829 # actually working. 3830 break;; 3831 * ) 3832 break;; 3833 esac 3834done 3835test "$ac_cv_exeext" = no && ac_cv_exeext= 3836 3837else 3838 ac_file='' 3839fi 3840if test -z "$ac_file"; then : 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3842$as_echo "no" >&6; } 3843$as_echo "$as_me: failed program was:" >&5 3844sed 's/^/| /' conftest.$ac_ext >&5 3845 3846{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3848as_fn_error 77 "C compiler cannot create executables 3849See \`config.log' for more details" "$LINENO" 5; } 3850else 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3852$as_echo "yes" >&6; } 3853fi 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3855$as_echo_n "checking for C compiler default output file name... " >&6; } 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3857$as_echo "$ac_file" >&6; } 3858ac_exeext=$ac_cv_exeext 3859 3860rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3861ac_clean_files=$ac_clean_files_save 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3863$as_echo_n "checking for suffix of executables... " >&6; } 3864if { { ac_try="$ac_link" 3865case "(($ac_try" in 3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3867 *) ac_try_echo=$ac_try;; 3868esac 3869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3870$as_echo "$ac_try_echo"; } >&5 3871 (eval "$ac_link") 2>&5 3872 ac_status=$? 3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3874 test $ac_status = 0; }; then : 3875 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3876# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3877# work properly (i.e., refer to `conftest.exe'), while it won't with 3878# `rm'. 3879for ac_file in conftest.exe conftest conftest.*; do 3880 test -f "$ac_file" || continue 3881 case $ac_file in 3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3884 break;; 3885 * ) break;; 3886 esac 3887done 3888else 3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3891as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3892See \`config.log' for more details" "$LINENO" 5; } 3893fi 3894rm -f conftest conftest$ac_cv_exeext 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3896$as_echo "$ac_cv_exeext" >&6; } 3897 3898rm -f conftest.$ac_ext 3899EXEEXT=$ac_cv_exeext 3900ac_exeext=$EXEEXT 3901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903#include <stdio.h> 3904int 3905main () 3906{ 3907FILE *f = fopen ("conftest.out", "w"); 3908 return ferror (f) || fclose (f) != 0; 3909 3910 ; 3911 return 0; 3912} 3913_ACEOF 3914ac_clean_files="$ac_clean_files conftest.out" 3915# Check that the compiler produces executables we can run. If not, either 3916# the compiler is broken, or we cross compile. 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3918$as_echo_n "checking whether we are cross compiling... " >&6; } 3919if test "$cross_compiling" != yes; then 3920 { { ac_try="$ac_link" 3921case "(($ac_try" in 3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923 *) ac_try_echo=$ac_try;; 3924esac 3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926$as_echo "$ac_try_echo"; } >&5 3927 (eval "$ac_link") 2>&5 3928 ac_status=$? 3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3930 test $ac_status = 0; } 3931 if { ac_try='./conftest$ac_cv_exeext' 3932 { { case "(($ac_try" in 3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3934 *) ac_try_echo=$ac_try;; 3935esac 3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3937$as_echo "$ac_try_echo"; } >&5 3938 (eval "$ac_try") 2>&5 3939 ac_status=$? 3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3941 test $ac_status = 0; }; }; then 3942 cross_compiling=no 3943 else 3944 if test "$cross_compiling" = maybe; then 3945 cross_compiling=yes 3946 else 3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3949as_fn_error $? "cannot run C compiled programs. 3950If you meant to cross compile, use \`--host'. 3951See \`config.log' for more details" "$LINENO" 5; } 3952 fi 3953 fi 3954fi 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3956$as_echo "$cross_compiling" >&6; } 3957 3958rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3959ac_clean_files=$ac_clean_files_save 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3961$as_echo_n "checking for suffix of object files... " >&6; } 3962if ${ac_cv_objext+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main () 3970{ 3971 3972 ; 3973 return 0; 3974} 3975_ACEOF 3976rm -f conftest.o conftest.obj 3977if { { ac_try="$ac_compile" 3978case "(($ac_try" in 3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3980 *) ac_try_echo=$ac_try;; 3981esac 3982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3983$as_echo "$ac_try_echo"; } >&5 3984 (eval "$ac_compile") 2>&5 3985 ac_status=$? 3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3987 test $ac_status = 0; }; then : 3988 for ac_file in conftest.o conftest.obj conftest.*; do 3989 test -f "$ac_file" || continue; 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3993 break;; 3994 esac 3995done 3996else 3997 $as_echo "$as_me: failed program was:" >&5 3998sed 's/^/| /' conftest.$ac_ext >&5 3999 4000{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4002as_fn_error $? "cannot compute suffix of object files: cannot compile 4003See \`config.log' for more details" "$LINENO" 5; } 4004fi 4005rm -f conftest.$ac_cv_objext conftest.$ac_ext 4006fi 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4008$as_echo "$ac_cv_objext" >&6; } 4009OBJEXT=$ac_cv_objext 4010ac_objext=$OBJEXT 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4012$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4013if ${ac_cv_c_compiler_gnu+:} false; then : 4014 $as_echo_n "(cached) " >&6 4015else 4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4017/* end confdefs.h. */ 4018 4019int 4020main () 4021{ 4022#ifndef __GNUC__ 4023 choke me 4024#endif 4025 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030if ac_fn_c_try_compile "$LINENO"; then : 4031 ac_compiler_gnu=yes 4032else 4033 ac_compiler_gnu=no 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4036ac_cv_c_compiler_gnu=$ac_compiler_gnu 4037 4038fi 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4040$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4041if test $ac_compiler_gnu = yes; then 4042 GCC=yes 4043else 4044 GCC= 4045fi 4046ac_test_CFLAGS=${CFLAGS+set} 4047ac_save_CFLAGS=$CFLAGS 4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4049$as_echo_n "checking whether $CC accepts -g... " >&6; } 4050if ${ac_cv_prog_cc_g+:} false; then : 4051 $as_echo_n "(cached) " >&6 4052else 4053 ac_save_c_werror_flag=$ac_c_werror_flag 4054 ac_c_werror_flag=yes 4055 ac_cv_prog_cc_g=no 4056 CFLAGS="-g" 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059 4060int 4061main () 4062{ 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_cv_prog_cc_g=yes 4070else 4071 CFLAGS="" 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074 4075int 4076main () 4077{ 4078 4079 ; 4080 return 0; 4081} 4082_ACEOF 4083if ac_fn_c_try_compile "$LINENO"; then : 4084 4085else 4086 ac_c_werror_flag=$ac_save_c_werror_flag 4087 CFLAGS="-g" 4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089/* end confdefs.h. */ 4090 4091int 4092main () 4093{ 4094 4095 ; 4096 return 0; 4097} 4098_ACEOF 4099if ac_fn_c_try_compile "$LINENO"; then : 4100 ac_cv_prog_cc_g=yes 4101fi 4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4103fi 4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4105fi 4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4107 ac_c_werror_flag=$ac_save_c_werror_flag 4108fi 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4110$as_echo "$ac_cv_prog_cc_g" >&6; } 4111if test "$ac_test_CFLAGS" = set; then 4112 CFLAGS=$ac_save_CFLAGS 4113elif test $ac_cv_prog_cc_g = yes; then 4114 if test "$GCC" = yes; then 4115 CFLAGS="-g -O2" 4116 else 4117 CFLAGS="-g" 4118 fi 4119else 4120 if test "$GCC" = yes; then 4121 CFLAGS="-O2" 4122 else 4123 CFLAGS= 4124 fi 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4127$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4128if ${ac_cv_prog_cc_c89+:} false; then : 4129 $as_echo_n "(cached) " >&6 4130else 4131 ac_cv_prog_cc_c89=no 4132ac_save_CC=$CC 4133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135#include <stdarg.h> 4136#include <stdio.h> 4137#include <sys/types.h> 4138#include <sys/stat.h> 4139/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4140struct buf { int x; }; 4141FILE * (*rcsopen) (struct buf *, struct stat *, int); 4142static char *e (p, i) 4143 char **p; 4144 int i; 4145{ 4146 return p[i]; 4147} 4148static char *f (char * (*g) (char **, int), char **p, ...) 4149{ 4150 char *s; 4151 va_list v; 4152 va_start (v,p); 4153 s = g (p, va_arg (v,int)); 4154 va_end (v); 4155 return s; 4156} 4157 4158/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4159 function prototypes and stuff, but not '\xHH' hex character constants. 4160 These don't provoke an error unfortunately, instead are silently treated 4161 as 'x'. The following induces an error, until -std is added to get 4162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4163 array size at least. It's necessary to write '\x00'==0 to get something 4164 that's true only with -std. */ 4165int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4166 4167/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4168 inside strings and character constants. */ 4169#define FOO(x) 'x' 4170int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4171 4172int test (int i, double x); 4173struct s1 {int (*f) (int a);}; 4174struct s2 {int (*f) (double a);}; 4175int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4176int argc; 4177char **argv; 4178int 4179main () 4180{ 4181return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4188do 4189 CC="$ac_save_CC $ac_arg" 4190 if ac_fn_c_try_compile "$LINENO"; then : 4191 ac_cv_prog_cc_c89=$ac_arg 4192fi 4193rm -f core conftest.err conftest.$ac_objext 4194 test "x$ac_cv_prog_cc_c89" != "xno" && break 4195done 4196rm -f conftest.$ac_ext 4197CC=$ac_save_CC 4198 4199fi 4200# AC_CACHE_VAL 4201case "x$ac_cv_prog_cc_c89" in 4202 x) 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4204$as_echo "none needed" >&6; } ;; 4205 xno) 4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4207$as_echo "unsupported" >&6; } ;; 4208 *) 4209 CC="$CC $ac_cv_prog_cc_c89" 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4211$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4212esac 4213if test "x$ac_cv_prog_cc_c89" != xno; then : 4214 4215fi 4216 4217ac_ext=c 4218ac_cpp='$CPP $CPPFLAGS' 4219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4221ac_compiler_gnu=$ac_cv_c_compiler_gnu 4222 4223depcc="$CC" am_compiler_list= 4224 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4226$as_echo_n "checking dependency style of $depcc... " >&6; } 4227if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4228 $as_echo_n "(cached) " >&6 4229else 4230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4231 # We make a subdir and do the tests there. Otherwise we can end up 4232 # making bogus files that we don't know about and never remove. For 4233 # instance it was reported that on HP-UX the gcc test will end up 4234 # making a dummy file named `D' -- because `-MD' means `put the output 4235 # in D'. 4236 mkdir conftest.dir 4237 # Copy depcomp to subdir because otherwise we won't find it if we're 4238 # using a relative directory. 4239 cp "$am_depcomp" conftest.dir 4240 cd conftest.dir 4241 # We will build objects and dependencies in a subdirectory because 4242 # it helps to detect inapplicable dependency modes. For instance 4243 # both Tru64's cc and ICC support -MD to output dependencies as a 4244 # side effect of compilation, but ICC will put the dependencies in 4245 # the current directory while Tru64 will put them in the object 4246 # directory. 4247 mkdir sub 4248 4249 am_cv_CC_dependencies_compiler_type=none 4250 if test "$am_compiler_list" = ""; then 4251 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4252 fi 4253 am__universal=false 4254 case " $depcc " in #( 4255 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4256 esac 4257 4258 for depmode in $am_compiler_list; do 4259 # Setup a source with many dependencies, because some compilers 4260 # like to wrap large dependency lists on column 80 (with \), and 4261 # we should not choose a depcomp mode which is confused by this. 4262 # 4263 # We need to recreate these files for each test, as the compiler may 4264 # overwrite some of them when testing with obscure command lines. 4265 # This happens at least with the AIX C compiler. 4266 : > sub/conftest.c 4267 for i in 1 2 3 4 5 6; do 4268 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4269 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4270 # Solaris 8's {/usr,}/bin/sh. 4271 touch sub/conftst$i.h 4272 done 4273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4274 4275 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4276 # mode. It turns out that the SunPro C++ compiler does not properly 4277 # handle `-M -o', and we need to detect this. Also, some Intel 4278 # versions had trouble with output in subdirs 4279 am__obj=sub/conftest.${OBJEXT-o} 4280 am__minus_obj="-o $am__obj" 4281 case $depmode in 4282 gcc) 4283 # This depmode causes a compiler race in universal mode. 4284 test "$am__universal" = false || continue 4285 ;; 4286 nosideeffect) 4287 # after this tag, mechanisms are not by side-effect, so they'll 4288 # only be used when explicitly requested 4289 if test "x$enable_dependency_tracking" = xyes; then 4290 continue 4291 else 4292 break 4293 fi 4294 ;; 4295 msvisualcpp | msvcmsys) 4296 # This compiler won't grok `-c -o', but also, the minuso test has 4297 # not run yet. These depmodes are late enough in the game, and 4298 # so weak that their functioning should not be impacted. 4299 am__obj=conftest.${OBJEXT-o} 4300 am__minus_obj= 4301 ;; 4302 none) break ;; 4303 esac 4304 if depmode=$depmode \ 4305 source=sub/conftest.c object=$am__obj \ 4306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4307 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4308 >/dev/null 2>conftest.err && 4309 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4310 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4311 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4312 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4313 # icc doesn't choke on unknown options, it will just issue warnings 4314 # or remarks (even with -Werror). So we grep stderr for any message 4315 # that says an option was ignored or not supported. 4316 # When given -MP, icc 7.0 and 7.1 complain thusly: 4317 # icc: Command line warning: ignoring option '-M'; no argument required 4318 # The diagnosis changed in icc 8.0: 4319 # icc: Command line remark: option '-MP' not supported 4320 if (grep 'ignoring option' conftest.err || 4321 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4322 am_cv_CC_dependencies_compiler_type=$depmode 4323 break 4324 fi 4325 fi 4326 done 4327 4328 cd .. 4329 rm -rf conftest.dir 4330else 4331 am_cv_CC_dependencies_compiler_type=none 4332fi 4333 4334fi 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4336$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4337CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4338 4339 if 4340 test "x$enable_dependency_tracking" != xno \ 4341 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4342 am__fastdepCC_TRUE= 4343 am__fastdepCC_FALSE='#' 4344else 4345 am__fastdepCC_TRUE='#' 4346 am__fastdepCC_FALSE= 4347fi 4348 4349 4350 4351ac_ext=c 4352ac_cpp='$CPP $CPPFLAGS' 4353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4355ac_compiler_gnu=$ac_cv_c_compiler_gnu 4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4357$as_echo_n "checking how to run the C preprocessor... " >&6; } 4358# On Suns, sometimes $CPP names a directory. 4359if test -n "$CPP" && test -d "$CPP"; then 4360 CPP= 4361fi 4362if test -z "$CPP"; then 4363 if ${ac_cv_prog_CPP+:} false; then : 4364 $as_echo_n "(cached) " >&6 4365else 4366 # Double quotes because CPP needs to be expanded 4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4368 do 4369 ac_preproc_ok=false 4370for ac_c_preproc_warn_flag in '' yes 4371do 4372 # Use a header file that comes with gcc, so configuring glibc 4373 # with a fresh cross-compiler works. 4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4375 # <limits.h> exists even on freestanding compilers. 4376 # On the NeXT, cc -E runs the code through the compiler's parser, 4377 # not just through cpp. "Syntax error" is here to catch this case. 4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4379/* end confdefs.h. */ 4380#ifdef __STDC__ 4381# include <limits.h> 4382#else 4383# include <assert.h> 4384#endif 4385 Syntax error 4386_ACEOF 4387if ac_fn_c_try_cpp "$LINENO"; then : 4388 4389else 4390 # Broken: fails on valid input. 4391continue 4392fi 4393rm -f conftest.err conftest.i conftest.$ac_ext 4394 4395 # OK, works on sane cases. Now check whether nonexistent headers 4396 # can be detected and how. 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399#include <ac_nonexistent.h> 4400_ACEOF 4401if ac_fn_c_try_cpp "$LINENO"; then : 4402 # Broken: success on invalid input. 4403continue 4404else 4405 # Passes both tests. 4406ac_preproc_ok=: 4407break 4408fi 4409rm -f conftest.err conftest.i conftest.$ac_ext 4410 4411done 4412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4413rm -f conftest.i conftest.err conftest.$ac_ext 4414if $ac_preproc_ok; then : 4415 break 4416fi 4417 4418 done 4419 ac_cv_prog_CPP=$CPP 4420 4421fi 4422 CPP=$ac_cv_prog_CPP 4423else 4424 ac_cv_prog_CPP=$CPP 4425fi 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4427$as_echo "$CPP" >&6; } 4428ac_preproc_ok=false 4429for ac_c_preproc_warn_flag in '' yes 4430do 4431 # Use a header file that comes with gcc, so configuring glibc 4432 # with a fresh cross-compiler works. 4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4434 # <limits.h> exists even on freestanding compilers. 4435 # On the NeXT, cc -E runs the code through the compiler's parser, 4436 # not just through cpp. "Syntax error" is here to catch this case. 4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4438/* end confdefs.h. */ 4439#ifdef __STDC__ 4440# include <limits.h> 4441#else 4442# include <assert.h> 4443#endif 4444 Syntax error 4445_ACEOF 4446if ac_fn_c_try_cpp "$LINENO"; then : 4447 4448else 4449 # Broken: fails on valid input. 4450continue 4451fi 4452rm -f conftest.err conftest.i conftest.$ac_ext 4453 4454 # OK, works on sane cases. Now check whether nonexistent headers 4455 # can be detected and how. 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457/* end confdefs.h. */ 4458#include <ac_nonexistent.h> 4459_ACEOF 4460if ac_fn_c_try_cpp "$LINENO"; then : 4461 # Broken: success on invalid input. 4462continue 4463else 4464 # Passes both tests. 4465ac_preproc_ok=: 4466break 4467fi 4468rm -f conftest.err conftest.i conftest.$ac_ext 4469 4470done 4471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4472rm -f conftest.i conftest.err conftest.$ac_ext 4473if $ac_preproc_ok; then : 4474 4475else 4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4478as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4479See \`config.log' for more details" "$LINENO" 5; } 4480fi 4481 4482ac_ext=c 4483ac_cpp='$CPP $CPPFLAGS' 4484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4486ac_compiler_gnu=$ac_cv_c_compiler_gnu 4487 4488 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4490$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4491if ${ac_cv_path_GREP+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493else 4494 if test -z "$GREP"; then 4495 ac_path_GREP_found=false 4496 # Loop through the user's path and test for each of PROGNAME-LIST 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4499do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_prog in grep ggrep; do 4503 for ac_exec_ext in '' $ac_executable_extensions; do 4504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4505 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4506# Check for GNU ac_path_GREP and select it if it is found. 4507 # Check for GNU $ac_path_GREP 4508case `"$ac_path_GREP" --version 2>&1` in 4509*GNU*) 4510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4511*) 4512 ac_count=0 4513 $as_echo_n 0123456789 >"conftest.in" 4514 while : 4515 do 4516 cat "conftest.in" "conftest.in" >"conftest.tmp" 4517 mv "conftest.tmp" "conftest.in" 4518 cp "conftest.in" "conftest.nl" 4519 $as_echo 'GREP' >> "conftest.nl" 4520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4522 as_fn_arith $ac_count + 1 && ac_count=$as_val 4523 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4524 # Best one so far, save it but keep looking for a better one 4525 ac_cv_path_GREP="$ac_path_GREP" 4526 ac_path_GREP_max=$ac_count 4527 fi 4528 # 10*(2^10) chars as input seems more than enough 4529 test $ac_count -gt 10 && break 4530 done 4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4532esac 4533 4534 $ac_path_GREP_found && break 3 4535 done 4536 done 4537 done 4538IFS=$as_save_IFS 4539 if test -z "$ac_cv_path_GREP"; then 4540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4541 fi 4542else 4543 ac_cv_path_GREP=$GREP 4544fi 4545 4546fi 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4548$as_echo "$ac_cv_path_GREP" >&6; } 4549 GREP="$ac_cv_path_GREP" 4550 4551 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4553$as_echo_n "checking for egrep... " >&6; } 4554if ${ac_cv_path_EGREP+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4558 then ac_cv_path_EGREP="$GREP -E" 4559 else 4560 if test -z "$EGREP"; then 4561 ac_path_EGREP_found=false 4562 # Loop through the user's path and test for each of PROGNAME-LIST 4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4565do 4566 IFS=$as_save_IFS 4567 test -z "$as_dir" && as_dir=. 4568 for ac_prog in egrep; do 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4571 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4572# Check for GNU ac_path_EGREP and select it if it is found. 4573 # Check for GNU $ac_path_EGREP 4574case `"$ac_path_EGREP" --version 2>&1` in 4575*GNU*) 4576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4577*) 4578 ac_count=0 4579 $as_echo_n 0123456789 >"conftest.in" 4580 while : 4581 do 4582 cat "conftest.in" "conftest.in" >"conftest.tmp" 4583 mv "conftest.tmp" "conftest.in" 4584 cp "conftest.in" "conftest.nl" 4585 $as_echo 'EGREP' >> "conftest.nl" 4586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4588 as_fn_arith $ac_count + 1 && ac_count=$as_val 4589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4590 # Best one so far, save it but keep looking for a better one 4591 ac_cv_path_EGREP="$ac_path_EGREP" 4592 ac_path_EGREP_max=$ac_count 4593 fi 4594 # 10*(2^10) chars as input seems more than enough 4595 test $ac_count -gt 10 && break 4596 done 4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4598esac 4599 4600 $ac_path_EGREP_found && break 3 4601 done 4602 done 4603 done 4604IFS=$as_save_IFS 4605 if test -z "$ac_cv_path_EGREP"; then 4606 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4607 fi 4608else 4609 ac_cv_path_EGREP=$EGREP 4610fi 4611 4612 fi 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4615$as_echo "$ac_cv_path_EGREP" >&6; } 4616 EGREP="$ac_cv_path_EGREP" 4617 4618 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4620$as_echo_n "checking for ANSI C header files... " >&6; } 4621if ${ac_cv_header_stdc+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626#include <stdlib.h> 4627#include <stdarg.h> 4628#include <string.h> 4629#include <float.h> 4630 4631int 4632main () 4633{ 4634 4635 ; 4636 return 0; 4637} 4638_ACEOF 4639if ac_fn_c_try_compile "$LINENO"; then : 4640 ac_cv_header_stdc=yes 4641else 4642 ac_cv_header_stdc=no 4643fi 4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4645 4646if test $ac_cv_header_stdc = yes; then 4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650#include <string.h> 4651 4652_ACEOF 4653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4654 $EGREP "memchr" >/dev/null 2>&1; then : 4655 4656else 4657 ac_cv_header_stdc=no 4658fi 4659rm -f conftest* 4660 4661fi 4662 4663if test $ac_cv_header_stdc = yes; then 4664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4666/* end confdefs.h. */ 4667#include <stdlib.h> 4668 4669_ACEOF 4670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4671 $EGREP "free" >/dev/null 2>&1; then : 4672 4673else 4674 ac_cv_header_stdc=no 4675fi 4676rm -f conftest* 4677 4678fi 4679 4680if test $ac_cv_header_stdc = yes; then 4681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4682 if test "$cross_compiling" = yes; then : 4683 : 4684else 4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4686/* end confdefs.h. */ 4687#include <ctype.h> 4688#include <stdlib.h> 4689#if ((' ' & 0x0FF) == 0x020) 4690# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4691# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4692#else 4693# define ISLOWER(c) \ 4694 (('a' <= (c) && (c) <= 'i') \ 4695 || ('j' <= (c) && (c) <= 'r') \ 4696 || ('s' <= (c) && (c) <= 'z')) 4697# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4698#endif 4699 4700#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4701int 4702main () 4703{ 4704 int i; 4705 for (i = 0; i < 256; i++) 4706 if (XOR (islower (i), ISLOWER (i)) 4707 || toupper (i) != TOUPPER (i)) 4708 return 2; 4709 return 0; 4710} 4711_ACEOF 4712if ac_fn_c_try_run "$LINENO"; then : 4713 4714else 4715 ac_cv_header_stdc=no 4716fi 4717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4718 conftest.$ac_objext conftest.beam conftest.$ac_ext 4719fi 4720 4721fi 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4724$as_echo "$ac_cv_header_stdc" >&6; } 4725if test $ac_cv_header_stdc = yes; then 4726 4727$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4728 4729fi 4730 4731# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4732for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4733 inttypes.h stdint.h unistd.h 4734do : 4735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4736ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4737" 4738if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4739 cat >>confdefs.h <<_ACEOF 4740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4741_ACEOF 4742 4743fi 4744 4745done 4746 4747 4748 4749 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4750if test "x$ac_cv_header_minix_config_h" = xyes; then : 4751 MINIX=yes 4752else 4753 MINIX= 4754fi 4755 4756 4757 if test "$MINIX" = yes; then 4758 4759$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4760 4761 4762$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4763 4764 4765$as_echo "#define _MINIX 1" >>confdefs.h 4766 4767 fi 4768 4769 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4771$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4772if ${ac_cv_safe_to_define___extensions__+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4776/* end confdefs.h. */ 4777 4778# define __EXTENSIONS__ 1 4779 $ac_includes_default 4780int 4781main () 4782{ 4783 4784 ; 4785 return 0; 4786} 4787_ACEOF 4788if ac_fn_c_try_compile "$LINENO"; then : 4789 ac_cv_safe_to_define___extensions__=yes 4790else 4791 ac_cv_safe_to_define___extensions__=no 4792fi 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4794fi 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4796$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4797 test $ac_cv_safe_to_define___extensions__ = yes && 4798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4799 4800 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4801 4802 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4803 4804 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4805 4806 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4807 4808 4809 4810 4811ac_ext=c 4812ac_cpp='$CPP $CPPFLAGS' 4813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4815ac_compiler_gnu=$ac_cv_c_compiler_gnu 4816if test -n "$ac_tool_prefix"; then 4817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4818set dummy ${ac_tool_prefix}gcc; ac_word=$2 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4820$as_echo_n "checking for $ac_word... " >&6; } 4821if ${ac_cv_prog_CC+:} false; then : 4822 $as_echo_n "(cached) " >&6 4823else 4824 if test -n "$CC"; then 4825 ac_cv_prog_CC="$CC" # Let the user override the test. 4826else 4827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828for as_dir in $PATH 4829do 4830 IFS=$as_save_IFS 4831 test -z "$as_dir" && as_dir=. 4832 for ac_exec_ext in '' $ac_executable_extensions; do 4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4834 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4836 break 2 4837 fi 4838done 4839 done 4840IFS=$as_save_IFS 4841 4842fi 4843fi 4844CC=$ac_cv_prog_CC 4845if test -n "$CC"; then 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4847$as_echo "$CC" >&6; } 4848else 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4850$as_echo "no" >&6; } 4851fi 4852 4853 4854fi 4855if test -z "$ac_cv_prog_CC"; then 4856 ac_ct_CC=$CC 4857 # Extract the first word of "gcc", so it can be a program name with args. 4858set dummy gcc; ac_word=$2 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4860$as_echo_n "checking for $ac_word... " >&6; } 4861if ${ac_cv_prog_ac_ct_CC+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 if test -n "$ac_ct_CC"; then 4865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4866else 4867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868for as_dir in $PATH 4869do 4870 IFS=$as_save_IFS 4871 test -z "$as_dir" && as_dir=. 4872 for ac_exec_ext in '' $ac_executable_extensions; do 4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4874 ac_cv_prog_ac_ct_CC="gcc" 4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4876 break 2 4877 fi 4878done 4879 done 4880IFS=$as_save_IFS 4881 4882fi 4883fi 4884ac_ct_CC=$ac_cv_prog_ac_ct_CC 4885if test -n "$ac_ct_CC"; then 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4887$as_echo "$ac_ct_CC" >&6; } 4888else 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4890$as_echo "no" >&6; } 4891fi 4892 4893 if test "x$ac_ct_CC" = x; then 4894 CC="" 4895 else 4896 case $cross_compiling:$ac_tool_warned in 4897yes:) 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4900ac_tool_warned=yes ;; 4901esac 4902 CC=$ac_ct_CC 4903 fi 4904else 4905 CC="$ac_cv_prog_CC" 4906fi 4907 4908if test -z "$CC"; then 4909 if test -n "$ac_tool_prefix"; then 4910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4911set dummy ${ac_tool_prefix}cc; ac_word=$2 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4913$as_echo_n "checking for $ac_word... " >&6; } 4914if ${ac_cv_prog_CC+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 if test -n "$CC"; then 4918 ac_cv_prog_CC="$CC" # Let the user override the test. 4919else 4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4921for as_dir in $PATH 4922do 4923 IFS=$as_save_IFS 4924 test -z "$as_dir" && as_dir=. 4925 for ac_exec_ext in '' $ac_executable_extensions; do 4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4927 ac_cv_prog_CC="${ac_tool_prefix}cc" 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4929 break 2 4930 fi 4931done 4932 done 4933IFS=$as_save_IFS 4934 4935fi 4936fi 4937CC=$ac_cv_prog_CC 4938if test -n "$CC"; then 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4940$as_echo "$CC" >&6; } 4941else 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4943$as_echo "no" >&6; } 4944fi 4945 4946 4947 fi 4948fi 4949if test -z "$CC"; then 4950 # Extract the first word of "cc", so it can be a program name with args. 4951set dummy cc; ac_word=$2 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4953$as_echo_n "checking for $ac_word... " >&6; } 4954if ${ac_cv_prog_CC+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 if test -n "$CC"; then 4958 ac_cv_prog_CC="$CC" # Let the user override the test. 4959else 4960 ac_prog_rejected=no 4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4962for as_dir in $PATH 4963do 4964 IFS=$as_save_IFS 4965 test -z "$as_dir" && as_dir=. 4966 for ac_exec_ext in '' $ac_executable_extensions; do 4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4969 ac_prog_rejected=yes 4970 continue 4971 fi 4972 ac_cv_prog_CC="cc" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980if test $ac_prog_rejected = yes; then 4981 # We found a bogon in the path, so make sure we never use it. 4982 set dummy $ac_cv_prog_CC 4983 shift 4984 if test $# != 0; then 4985 # We chose a different compiler from the bogus one. 4986 # However, it has the same basename, so the bogon will be chosen 4987 # first if we set CC to just the basename; use the full file name. 4988 shift 4989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4990 fi 4991fi 4992fi 4993fi 4994CC=$ac_cv_prog_CC 4995if test -n "$CC"; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4997$as_echo "$CC" >&6; } 4998else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5000$as_echo "no" >&6; } 5001fi 5002 5003 5004fi 5005if test -z "$CC"; then 5006 if test -n "$ac_tool_prefix"; then 5007 for ac_prog in cl.exe 5008 do 5009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5010set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5012$as_echo_n "checking for $ac_word... " >&6; } 5013if ${ac_cv_prog_CC+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 if test -n "$CC"; then 5017 ac_cv_prog_CC="$CC" # Let the user override the test. 5018else 5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5020for as_dir in $PATH 5021do 5022 IFS=$as_save_IFS 5023 test -z "$as_dir" && as_dir=. 5024 for ac_exec_ext in '' $ac_executable_extensions; do 5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5028 break 2 5029 fi 5030done 5031 done 5032IFS=$as_save_IFS 5033 5034fi 5035fi 5036CC=$ac_cv_prog_CC 5037if test -n "$CC"; then 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5039$as_echo "$CC" >&6; } 5040else 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5042$as_echo "no" >&6; } 5043fi 5044 5045 5046 test -n "$CC" && break 5047 done 5048fi 5049if test -z "$CC"; then 5050 ac_ct_CC=$CC 5051 for ac_prog in cl.exe 5052do 5053 # Extract the first word of "$ac_prog", so it can be a program name with args. 5054set dummy $ac_prog; ac_word=$2 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5056$as_echo_n "checking for $ac_word... " >&6; } 5057if ${ac_cv_prog_ac_ct_CC+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 if test -n "$ac_ct_CC"; then 5061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5062else 5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5064for as_dir in $PATH 5065do 5066 IFS=$as_save_IFS 5067 test -z "$as_dir" && as_dir=. 5068 for ac_exec_ext in '' $ac_executable_extensions; do 5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5070 ac_cv_prog_ac_ct_CC="$ac_prog" 5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5072 break 2 5073 fi 5074done 5075 done 5076IFS=$as_save_IFS 5077 5078fi 5079fi 5080ac_ct_CC=$ac_cv_prog_ac_ct_CC 5081if test -n "$ac_ct_CC"; then 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5083$as_echo "$ac_ct_CC" >&6; } 5084else 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5086$as_echo "no" >&6; } 5087fi 5088 5089 5090 test -n "$ac_ct_CC" && break 5091done 5092 5093 if test "x$ac_ct_CC" = x; then 5094 CC="" 5095 else 5096 case $cross_compiling:$ac_tool_warned in 5097yes:) 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5100ac_tool_warned=yes ;; 5101esac 5102 CC=$ac_ct_CC 5103 fi 5104fi 5105 5106fi 5107 5108 5109test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5111as_fn_error $? "no acceptable C compiler found in \$PATH 5112See \`config.log' for more details" "$LINENO" 5; } 5113 5114# Provide some information about the compiler. 5115$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5116set X $ac_compile 5117ac_compiler=$2 5118for ac_option in --version -v -V -qversion; do 5119 { { ac_try="$ac_compiler $ac_option >&5" 5120case "(($ac_try" in 5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5122 *) ac_try_echo=$ac_try;; 5123esac 5124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5125$as_echo "$ac_try_echo"; } >&5 5126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5127 ac_status=$? 5128 if test -s conftest.err; then 5129 sed '10a\ 5130... rest of stderr output deleted ... 5131 10q' conftest.err >conftest.er1 5132 cat conftest.er1 >&5 5133 fi 5134 rm -f conftest.er1 conftest.err 5135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5136 test $ac_status = 0; } 5137done 5138 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5140$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5141if ${ac_cv_c_compiler_gnu+:} false; then : 5142 $as_echo_n "(cached) " >&6 5143else 5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146 5147int 5148main () 5149{ 5150#ifndef __GNUC__ 5151 choke me 5152#endif 5153 5154 ; 5155 return 0; 5156} 5157_ACEOF 5158if ac_fn_c_try_compile "$LINENO"; then : 5159 ac_compiler_gnu=yes 5160else 5161 ac_compiler_gnu=no 5162fi 5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5164ac_cv_c_compiler_gnu=$ac_compiler_gnu 5165 5166fi 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5168$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5169if test $ac_compiler_gnu = yes; then 5170 GCC=yes 5171else 5172 GCC= 5173fi 5174ac_test_CFLAGS=${CFLAGS+set} 5175ac_save_CFLAGS=$CFLAGS 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5177$as_echo_n "checking whether $CC accepts -g... " >&6; } 5178if ${ac_cv_prog_cc_g+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 ac_save_c_werror_flag=$ac_c_werror_flag 5182 ac_c_werror_flag=yes 5183 ac_cv_prog_cc_g=no 5184 CFLAGS="-g" 5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187 5188int 5189main () 5190{ 5191 5192 ; 5193 return 0; 5194} 5195_ACEOF 5196if ac_fn_c_try_compile "$LINENO"; then : 5197 ac_cv_prog_cc_g=yes 5198else 5199 CFLAGS="" 5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201/* end confdefs.h. */ 5202 5203int 5204main () 5205{ 5206 5207 ; 5208 return 0; 5209} 5210_ACEOF 5211if ac_fn_c_try_compile "$LINENO"; then : 5212 5213else 5214 ac_c_werror_flag=$ac_save_c_werror_flag 5215 CFLAGS="-g" 5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217/* end confdefs.h. */ 5218 5219int 5220main () 5221{ 5222 5223 ; 5224 return 0; 5225} 5226_ACEOF 5227if ac_fn_c_try_compile "$LINENO"; then : 5228 ac_cv_prog_cc_g=yes 5229fi 5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5231fi 5232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5233fi 5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5235 ac_c_werror_flag=$ac_save_c_werror_flag 5236fi 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5238$as_echo "$ac_cv_prog_cc_g" >&6; } 5239if test "$ac_test_CFLAGS" = set; then 5240 CFLAGS=$ac_save_CFLAGS 5241elif test $ac_cv_prog_cc_g = yes; then 5242 if test "$GCC" = yes; then 5243 CFLAGS="-g -O2" 5244 else 5245 CFLAGS="-g" 5246 fi 5247else 5248 if test "$GCC" = yes; then 5249 CFLAGS="-O2" 5250 else 5251 CFLAGS= 5252 fi 5253fi 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5255$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5256if ${ac_cv_prog_cc_c89+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258else 5259 ac_cv_prog_cc_c89=no 5260ac_save_CC=$CC 5261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263#include <stdarg.h> 5264#include <stdio.h> 5265#include <sys/types.h> 5266#include <sys/stat.h> 5267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5268struct buf { int x; }; 5269FILE * (*rcsopen) (struct buf *, struct stat *, int); 5270static char *e (p, i) 5271 char **p; 5272 int i; 5273{ 5274 return p[i]; 5275} 5276static char *f (char * (*g) (char **, int), char **p, ...) 5277{ 5278 char *s; 5279 va_list v; 5280 va_start (v,p); 5281 s = g (p, va_arg (v,int)); 5282 va_end (v); 5283 return s; 5284} 5285 5286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5287 function prototypes and stuff, but not '\xHH' hex character constants. 5288 These don't provoke an error unfortunately, instead are silently treated 5289 as 'x'. The following induces an error, until -std is added to get 5290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5291 array size at least. It's necessary to write '\x00'==0 to get something 5292 that's true only with -std. */ 5293int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5294 5295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5296 inside strings and character constants. */ 5297#define FOO(x) 'x' 5298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5299 5300int test (int i, double x); 5301struct s1 {int (*f) (int a);}; 5302struct s2 {int (*f) (double a);}; 5303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5304int argc; 5305char **argv; 5306int 5307main () 5308{ 5309return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5310 ; 5311 return 0; 5312} 5313_ACEOF 5314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5316do 5317 CC="$ac_save_CC $ac_arg" 5318 if ac_fn_c_try_compile "$LINENO"; then : 5319 ac_cv_prog_cc_c89=$ac_arg 5320fi 5321rm -f core conftest.err conftest.$ac_objext 5322 test "x$ac_cv_prog_cc_c89" != "xno" && break 5323done 5324rm -f conftest.$ac_ext 5325CC=$ac_save_CC 5326 5327fi 5328# AC_CACHE_VAL 5329case "x$ac_cv_prog_cc_c89" in 5330 x) 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5332$as_echo "none needed" >&6; } ;; 5333 xno) 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5335$as_echo "unsupported" >&6; } ;; 5336 *) 5337 CC="$CC $ac_cv_prog_cc_c89" 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5339$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5340esac 5341if test "x$ac_cv_prog_cc_c89" != xno; then : 5342 5343fi 5344 5345ac_ext=c 5346ac_cpp='$CPP $CPPFLAGS' 5347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5349ac_compiler_gnu=$ac_cv_c_compiler_gnu 5350 5351depcc="$CC" am_compiler_list= 5352 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5354$as_echo_n "checking dependency style of $depcc... " >&6; } 5355if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5356 $as_echo_n "(cached) " >&6 5357else 5358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5359 # We make a subdir and do the tests there. Otherwise we can end up 5360 # making bogus files that we don't know about and never remove. For 5361 # instance it was reported that on HP-UX the gcc test will end up 5362 # making a dummy file named `D' -- because `-MD' means `put the output 5363 # in D'. 5364 mkdir conftest.dir 5365 # Copy depcomp to subdir because otherwise we won't find it if we're 5366 # using a relative directory. 5367 cp "$am_depcomp" conftest.dir 5368 cd conftest.dir 5369 # We will build objects and dependencies in a subdirectory because 5370 # it helps to detect inapplicable dependency modes. For instance 5371 # both Tru64's cc and ICC support -MD to output dependencies as a 5372 # side effect of compilation, but ICC will put the dependencies in 5373 # the current directory while Tru64 will put them in the object 5374 # directory. 5375 mkdir sub 5376 5377 am_cv_CC_dependencies_compiler_type=none 5378 if test "$am_compiler_list" = ""; then 5379 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5380 fi 5381 am__universal=false 5382 case " $depcc " in #( 5383 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5384 esac 5385 5386 for depmode in $am_compiler_list; do 5387 # Setup a source with many dependencies, because some compilers 5388 # like to wrap large dependency lists on column 80 (with \), and 5389 # we should not choose a depcomp mode which is confused by this. 5390 # 5391 # We need to recreate these files for each test, as the compiler may 5392 # overwrite some of them when testing with obscure command lines. 5393 # This happens at least with the AIX C compiler. 5394 : > sub/conftest.c 5395 for i in 1 2 3 4 5 6; do 5396 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5397 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5398 # Solaris 8's {/usr,}/bin/sh. 5399 touch sub/conftst$i.h 5400 done 5401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5402 5403 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5404 # mode. It turns out that the SunPro C++ compiler does not properly 5405 # handle `-M -o', and we need to detect this. Also, some Intel 5406 # versions had trouble with output in subdirs 5407 am__obj=sub/conftest.${OBJEXT-o} 5408 am__minus_obj="-o $am__obj" 5409 case $depmode in 5410 gcc) 5411 # This depmode causes a compiler race in universal mode. 5412 test "$am__universal" = false || continue 5413 ;; 5414 nosideeffect) 5415 # after this tag, mechanisms are not by side-effect, so they'll 5416 # only be used when explicitly requested 5417 if test "x$enable_dependency_tracking" = xyes; then 5418 continue 5419 else 5420 break 5421 fi 5422 ;; 5423 msvisualcpp | msvcmsys) 5424 # This compiler won't grok `-c -o', but also, the minuso test has 5425 # not run yet. These depmodes are late enough in the game, and 5426 # so weak that their functioning should not be impacted. 5427 am__obj=conftest.${OBJEXT-o} 5428 am__minus_obj= 5429 ;; 5430 none) break ;; 5431 esac 5432 if depmode=$depmode \ 5433 source=sub/conftest.c object=$am__obj \ 5434 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5435 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5436 >/dev/null 2>conftest.err && 5437 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5438 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5439 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5440 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5441 # icc doesn't choke on unknown options, it will just issue warnings 5442 # or remarks (even with -Werror). So we grep stderr for any message 5443 # that says an option was ignored or not supported. 5444 # When given -MP, icc 7.0 and 7.1 complain thusly: 5445 # icc: Command line warning: ignoring option '-M'; no argument required 5446 # The diagnosis changed in icc 8.0: 5447 # icc: Command line remark: option '-MP' not supported 5448 if (grep 'ignoring option' conftest.err || 5449 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5450 am_cv_CC_dependencies_compiler_type=$depmode 5451 break 5452 fi 5453 fi 5454 done 5455 5456 cd .. 5457 rm -rf conftest.dir 5458else 5459 am_cv_CC_dependencies_compiler_type=none 5460fi 5461 5462fi 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5464$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5465CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5466 5467 if 5468 test "x$enable_dependency_tracking" != xno \ 5469 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5470 am__fastdepCC_TRUE= 5471 am__fastdepCC_FALSE='#' 5472else 5473 am__fastdepCC_TRUE='#' 5474 am__fastdepCC_FALSE= 5475fi 5476 5477 5478if test "x$CC" != xcc; then 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 5480$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 5481else 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 5483$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 5484fi 5485set dummy $CC; ac_cc=`$as_echo "$2" | 5486 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5487if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489else 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491/* end confdefs.h. */ 5492 5493int 5494main () 5495{ 5496 5497 ; 5498 return 0; 5499} 5500_ACEOF 5501# Make sure it works both with $CC and with simple cc. 5502# We do the test twice because some compilers refuse to overwrite an 5503# existing .o file with -o, though they will create one. 5504ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5505rm -f conftest2.* 5506if { { case "(($ac_try" in 5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5508 *) ac_try_echo=$ac_try;; 5509esac 5510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5511$as_echo "$ac_try_echo"; } >&5 5512 (eval "$ac_try") 2>&5 5513 ac_status=$? 5514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5515 test $ac_status = 0; } && 5516 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5518 *) ac_try_echo=$ac_try;; 5519esac 5520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5521$as_echo "$ac_try_echo"; } >&5 5522 (eval "$ac_try") 2>&5 5523 ac_status=$? 5524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5525 test $ac_status = 0; }; 5526then 5527 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 5528 if test "x$CC" != xcc; then 5529 # Test first that cc exists at all. 5530 if { ac_try='cc -c conftest.$ac_ext >&5' 5531 { { case "(($ac_try" in 5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5533 *) ac_try_echo=$ac_try;; 5534esac 5535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5536$as_echo "$ac_try_echo"; } >&5 5537 (eval "$ac_try") 2>&5 5538 ac_status=$? 5539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5540 test $ac_status = 0; }; }; then 5541 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 5542 rm -f conftest2.* 5543 if { { case "(($ac_try" in 5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5545 *) ac_try_echo=$ac_try;; 5546esac 5547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5548$as_echo "$ac_try_echo"; } >&5 5549 (eval "$ac_try") 2>&5 5550 ac_status=$? 5551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5552 test $ac_status = 0; } && 5553 test -f conftest2.$ac_objext && { { case "(($ac_try" in 5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5555 *) ac_try_echo=$ac_try;; 5556esac 5557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5558$as_echo "$ac_try_echo"; } >&5 5559 (eval "$ac_try") 2>&5 5560 ac_status=$? 5561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5562 test $ac_status = 0; }; 5563 then 5564 # cc works too. 5565 : 5566 else 5567 # cc exists but doesn't like -o. 5568 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5569 fi 5570 fi 5571 fi 5572else 5573 eval ac_cv_prog_cc_${ac_cc}_c_o=no 5574fi 5575rm -f core conftest* 5576 5577fi 5578if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5580$as_echo "yes" >&6; } 5581else 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5583$as_echo "no" >&6; } 5584 5585$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 5586 5587fi 5588 5589# FIXME: we rely on the cache variable name because 5590# there is no other way. 5591set dummy $CC 5592am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 5593eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 5594if test "$am_t" != yes; then 5595 # Losing compiler, so override with the script. 5596 # FIXME: It is wrong to rewrite CC. 5597 # But if we don't then we get into trouble of one sort or another. 5598 # A longer-term fix would be to have automake use am__CC in this case, 5599 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5600 CC="$am_aux_dir/compile $CC" 5601fi 5602 5603 5604 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5606$as_echo_n "checking whether ln -s works... " >&6; } 5607LN_S=$as_ln_s 5608if test "$LN_S" = "ln -s"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5610$as_echo "yes" >&6; } 5611else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5613$as_echo "no, using $LN_S" >&6; } 5614fi 5615 5616case `pwd` in 5617 *\ * | *\ *) 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5619$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5620esac 5621 5622 5623 5624macro_version='2.2.6b' 5625macro_revision='1.3017' 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639ltmain="$ac_aux_dir/ltmain.sh" 5640 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5642$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5643if ${ac_cv_path_SED+:} false; then : 5644 $as_echo_n "(cached) " >&6 5645else 5646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5647 for ac_i in 1 2 3 4 5 6 7; do 5648 ac_script="$ac_script$as_nl$ac_script" 5649 done 5650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5651 { ac_script=; unset ac_script;} 5652 if test -z "$SED"; then 5653 ac_path_SED_found=false 5654 # Loop through the user's path and test for each of PROGNAME-LIST 5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5656for as_dir in $PATH 5657do 5658 IFS=$as_save_IFS 5659 test -z "$as_dir" && as_dir=. 5660 for ac_prog in sed gsed; do 5661 for ac_exec_ext in '' $ac_executable_extensions; do 5662 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5663 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5664# Check for GNU ac_path_SED and select it if it is found. 5665 # Check for GNU $ac_path_SED 5666case `"$ac_path_SED" --version 2>&1` in 5667*GNU*) 5668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5669*) 5670 ac_count=0 5671 $as_echo_n 0123456789 >"conftest.in" 5672 while : 5673 do 5674 cat "conftest.in" "conftest.in" >"conftest.tmp" 5675 mv "conftest.tmp" "conftest.in" 5676 cp "conftest.in" "conftest.nl" 5677 $as_echo '' >> "conftest.nl" 5678 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5680 as_fn_arith $ac_count + 1 && ac_count=$as_val 5681 if test $ac_count -gt ${ac_path_SED_max-0}; then 5682 # Best one so far, save it but keep looking for a better one 5683 ac_cv_path_SED="$ac_path_SED" 5684 ac_path_SED_max=$ac_count 5685 fi 5686 # 10*(2^10) chars as input seems more than enough 5687 test $ac_count -gt 10 && break 5688 done 5689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5690esac 5691 5692 $ac_path_SED_found && break 3 5693 done 5694 done 5695 done 5696IFS=$as_save_IFS 5697 if test -z "$ac_cv_path_SED"; then 5698 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5699 fi 5700else 5701 ac_cv_path_SED=$SED 5702fi 5703 5704fi 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5706$as_echo "$ac_cv_path_SED" >&6; } 5707 SED="$ac_cv_path_SED" 5708 rm -f conftest.sed 5709 5710test -z "$SED" && SED=sed 5711Xsed="$SED -e 1s/^X//" 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5724$as_echo_n "checking for fgrep... " >&6; } 5725if ${ac_cv_path_FGREP+:} false; then : 5726 $as_echo_n "(cached) " >&6 5727else 5728 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5729 then ac_cv_path_FGREP="$GREP -F" 5730 else 5731 if test -z "$FGREP"; then 5732 ac_path_FGREP_found=false 5733 # Loop through the user's path and test for each of PROGNAME-LIST 5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5736do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_prog in fgrep; do 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5742 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5743# Check for GNU ac_path_FGREP and select it if it is found. 5744 # Check for GNU $ac_path_FGREP 5745case `"$ac_path_FGREP" --version 2>&1` in 5746*GNU*) 5747 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5748*) 5749 ac_count=0 5750 $as_echo_n 0123456789 >"conftest.in" 5751 while : 5752 do 5753 cat "conftest.in" "conftest.in" >"conftest.tmp" 5754 mv "conftest.tmp" "conftest.in" 5755 cp "conftest.in" "conftest.nl" 5756 $as_echo 'FGREP' >> "conftest.nl" 5757 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5759 as_fn_arith $ac_count + 1 && ac_count=$as_val 5760 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5761 # Best one so far, save it but keep looking for a better one 5762 ac_cv_path_FGREP="$ac_path_FGREP" 5763 ac_path_FGREP_max=$ac_count 5764 fi 5765 # 10*(2^10) chars as input seems more than enough 5766 test $ac_count -gt 10 && break 5767 done 5768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5769esac 5770 5771 $ac_path_FGREP_found && break 3 5772 done 5773 done 5774 done 5775IFS=$as_save_IFS 5776 if test -z "$ac_cv_path_FGREP"; then 5777 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5778 fi 5779else 5780 ac_cv_path_FGREP=$FGREP 5781fi 5782 5783 fi 5784fi 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5786$as_echo "$ac_cv_path_FGREP" >&6; } 5787 FGREP="$ac_cv_path_FGREP" 5788 5789 5790test -z "$GREP" && GREP=grep 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810# Check whether --with-gnu-ld was given. 5811if test "${with_gnu_ld+set}" = set; then : 5812 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5813else 5814 with_gnu_ld=no 5815fi 5816 5817ac_prog=ld 5818if test "$GCC" = yes; then 5819 # Check if gcc -print-prog-name=ld gives a path. 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5821$as_echo_n "checking for ld used by $CC... " >&6; } 5822 case $host in 5823 *-*-mingw*) 5824 # gcc leaves a trailing carriage return which upsets mingw 5825 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5826 *) 5827 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5828 esac 5829 case $ac_prog in 5830 # Accept absolute paths. 5831 [\\/]* | ?:[\\/]*) 5832 re_direlt='/[^/][^/]*/\.\./' 5833 # Canonicalize the pathname of ld 5834 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5835 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5836 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5837 done 5838 test -z "$LD" && LD="$ac_prog" 5839 ;; 5840 "") 5841 # If it fails, then pretend we aren't using GCC. 5842 ac_prog=ld 5843 ;; 5844 *) 5845 # If it is relative, then search for the first ld in PATH. 5846 with_gnu_ld=unknown 5847 ;; 5848 esac 5849elif test "$with_gnu_ld" = yes; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5851$as_echo_n "checking for GNU ld... " >&6; } 5852else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5854$as_echo_n "checking for non-GNU ld... " >&6; } 5855fi 5856if ${lt_cv_path_LD+:} false; then : 5857 $as_echo_n "(cached) " >&6 5858else 5859 if test -z "$LD"; then 5860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5861 for ac_dir in $PATH; do 5862 IFS="$lt_save_ifs" 5863 test -z "$ac_dir" && ac_dir=. 5864 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5865 lt_cv_path_LD="$ac_dir/$ac_prog" 5866 # Check to see if the program is GNU ld. I'd rather use --version, 5867 # but apparently some variants of GNU ld only accept -v. 5868 # Break only if it was the GNU/non-GNU ld that we prefer. 5869 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5870 *GNU* | *'with BFD'*) 5871 test "$with_gnu_ld" != no && break 5872 ;; 5873 *) 5874 test "$with_gnu_ld" != yes && break 5875 ;; 5876 esac 5877 fi 5878 done 5879 IFS="$lt_save_ifs" 5880else 5881 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5882fi 5883fi 5884 5885LD="$lt_cv_path_LD" 5886if test -n "$LD"; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5888$as_echo "$LD" >&6; } 5889else 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891$as_echo "no" >&6; } 5892fi 5893test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5895$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5896if ${lt_cv_prog_gnu_ld+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5900case `$LD -v 2>&1 </dev/null` in 5901*GNU* | *'with BFD'*) 5902 lt_cv_prog_gnu_ld=yes 5903 ;; 5904*) 5905 lt_cv_prog_gnu_ld=no 5906 ;; 5907esac 5908fi 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5910$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5911with_gnu_ld=$lt_cv_prog_gnu_ld 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5922$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5923if ${lt_cv_path_NM+:} false; then : 5924 $as_echo_n "(cached) " >&6 5925else 5926 if test -n "$NM"; then 5927 # Let the user override the test. 5928 lt_cv_path_NM="$NM" 5929else 5930 lt_nm_to_check="${ac_tool_prefix}nm" 5931 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5932 lt_nm_to_check="$lt_nm_to_check nm" 5933 fi 5934 for lt_tmp_nm in $lt_nm_to_check; do 5935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5936 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5937 IFS="$lt_save_ifs" 5938 test -z "$ac_dir" && ac_dir=. 5939 tmp_nm="$ac_dir/$lt_tmp_nm" 5940 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5941 # Check to see if the nm accepts a BSD-compat flag. 5942 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5943 # nm: unknown option "B" ignored 5944 # Tru64's nm complains that /dev/null is an invalid object file 5945 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5946 */dev/null* | *'Invalid file or object type'*) 5947 lt_cv_path_NM="$tmp_nm -B" 5948 break 5949 ;; 5950 *) 5951 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5952 */dev/null*) 5953 lt_cv_path_NM="$tmp_nm -p" 5954 break 5955 ;; 5956 *) 5957 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5958 continue # so that we can try to find one that supports BSD flags 5959 ;; 5960 esac 5961 ;; 5962 esac 5963 fi 5964 done 5965 IFS="$lt_save_ifs" 5966 done 5967 : ${lt_cv_path_NM=no} 5968fi 5969fi 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5971$as_echo "$lt_cv_path_NM" >&6; } 5972if test "$lt_cv_path_NM" != "no"; then 5973 NM="$lt_cv_path_NM" 5974else 5975 # Didn't find any BSD compatible name lister, look for dumpbin. 5976 if test -n "$ac_tool_prefix"; then 5977 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5978 do 5979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5980set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5982$as_echo_n "checking for $ac_word... " >&6; } 5983if ${ac_cv_prog_DUMPBIN+:} false; then : 5984 $as_echo_n "(cached) " >&6 5985else 5986 if test -n "$DUMPBIN"; then 5987 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5988else 5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5990for as_dir in $PATH 5991do 5992 IFS=$as_save_IFS 5993 test -z "$as_dir" && as_dir=. 5994 for ac_exec_ext in '' $ac_executable_extensions; do 5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5996 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5998 break 2 5999 fi 6000done 6001 done 6002IFS=$as_save_IFS 6003 6004fi 6005fi 6006DUMPBIN=$ac_cv_prog_DUMPBIN 6007if test -n "$DUMPBIN"; then 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6009$as_echo "$DUMPBIN" >&6; } 6010else 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6012$as_echo "no" >&6; } 6013fi 6014 6015 6016 test -n "$DUMPBIN" && break 6017 done 6018fi 6019if test -z "$DUMPBIN"; then 6020 ac_ct_DUMPBIN=$DUMPBIN 6021 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6022do 6023 # Extract the first word of "$ac_prog", so it can be a program name with args. 6024set dummy $ac_prog; ac_word=$2 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026$as_echo_n "checking for $ac_word... " >&6; } 6027if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 if test -n "$ac_ct_DUMPBIN"; then 6031 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6032else 6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034for as_dir in $PATH 6035do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6040 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044done 6045 done 6046IFS=$as_save_IFS 6047 6048fi 6049fi 6050ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6051if test -n "$ac_ct_DUMPBIN"; then 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6053$as_echo "$ac_ct_DUMPBIN" >&6; } 6054else 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056$as_echo "no" >&6; } 6057fi 6058 6059 6060 test -n "$ac_ct_DUMPBIN" && break 6061done 6062 6063 if test "x$ac_ct_DUMPBIN" = x; then 6064 DUMPBIN=":" 6065 else 6066 case $cross_compiling:$ac_tool_warned in 6067yes:) 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6070ac_tool_warned=yes ;; 6071esac 6072 DUMPBIN=$ac_ct_DUMPBIN 6073 fi 6074fi 6075 6076 6077 if test "$DUMPBIN" != ":"; then 6078 NM="$DUMPBIN" 6079 fi 6080fi 6081test -z "$NM" && NM=nm 6082 6083 6084 6085 6086 6087 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6089$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6090if ${lt_cv_nm_interface+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 lt_cv_nm_interface="BSD nm" 6094 echo "int some_variable = 0;" > conftest.$ac_ext 6095 (eval echo "\"\$as_me:6095: $ac_compile\"" >&5) 6096 (eval "$ac_compile" 2>conftest.err) 6097 cat conftest.err >&5 6098 (eval echo "\"\$as_me:6098: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6099 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6100 cat conftest.err >&5 6101 (eval echo "\"\$as_me:6101: output\"" >&5) 6102 cat conftest.out >&5 6103 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6104 lt_cv_nm_interface="MS dumpbin" 6105 fi 6106 rm -f conftest* 6107fi 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6109$as_echo "$lt_cv_nm_interface" >&6; } 6110 6111# find the maximum length of command line arguments 6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6113$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6114if ${lt_cv_sys_max_cmd_len+:} false; then : 6115 $as_echo_n "(cached) " >&6 6116else 6117 i=0 6118 teststring="ABCD" 6119 6120 case $build_os in 6121 msdosdjgpp*) 6122 # On DJGPP, this test can blow up pretty badly due to problems in libc 6123 # (any single argument exceeding 2000 bytes causes a buffer overrun 6124 # during glob expansion). Even if it were fixed, the result of this 6125 # check would be larger than it should be. 6126 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6127 ;; 6128 6129 gnu*) 6130 # Under GNU Hurd, this test is not required because there is 6131 # no limit to the length of command line arguments. 6132 # Libtool will interpret -1 as no limit whatsoever 6133 lt_cv_sys_max_cmd_len=-1; 6134 ;; 6135 6136 cygwin* | mingw* | cegcc*) 6137 # On Win9x/ME, this test blows up -- it succeeds, but takes 6138 # about 5 minutes as the teststring grows exponentially. 6139 # Worse, since 9x/ME are not pre-emptively multitasking, 6140 # you end up with a "frozen" computer, even though with patience 6141 # the test eventually succeeds (with a max line length of 256k). 6142 # Instead, let's just punt: use the minimum linelength reported by 6143 # all of the supported platforms: 8192 (on NT/2K/XP). 6144 lt_cv_sys_max_cmd_len=8192; 6145 ;; 6146 6147 amigaos*) 6148 # On AmigaOS with pdksh, this test takes hours, literally. 6149 # So we just punt and use a minimum line length of 8192. 6150 lt_cv_sys_max_cmd_len=8192; 6151 ;; 6152 6153 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6154 # This has been around since 386BSD, at least. Likely further. 6155 if test -x /sbin/sysctl; then 6156 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6157 elif test -x /usr/sbin/sysctl; then 6158 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6159 else 6160 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6161 fi 6162 # And add a safety zone 6163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6165 ;; 6166 6167 interix*) 6168 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6169 lt_cv_sys_max_cmd_len=196608 6170 ;; 6171 6172 osf*) 6173 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6174 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6175 # nice to cause kernel panics so lets avoid the loop below. 6176 # First set a reasonable default. 6177 lt_cv_sys_max_cmd_len=16384 6178 # 6179 if test -x /sbin/sysconfig; then 6180 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6181 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6182 esac 6183 fi 6184 ;; 6185 sco3.2v5*) 6186 lt_cv_sys_max_cmd_len=102400 6187 ;; 6188 sysv5* | sco5v6* | sysv4.2uw2*) 6189 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6190 if test -n "$kargmax"; then 6191 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6192 else 6193 lt_cv_sys_max_cmd_len=32768 6194 fi 6195 ;; 6196 *) 6197 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6198 if test -n "$lt_cv_sys_max_cmd_len"; then 6199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6201 else 6202 # Make teststring a little bigger before we do anything with it. 6203 # a 1K string should be a reasonable start. 6204 for i in 1 2 3 4 5 6 7 8 ; do 6205 teststring=$teststring$teststring 6206 done 6207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6208 # If test is not a shell built-in, we'll probably end up computing a 6209 # maximum length that is only half of the actual maximum length, but 6210 # we can't tell. 6211 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 6212 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 6213 test $i != 17 # 1/2 MB should be enough 6214 do 6215 i=`expr $i + 1` 6216 teststring=$teststring$teststring 6217 done 6218 # Only check the string length outside the loop. 6219 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6220 teststring= 6221 # Add a significant safety factor because C++ compilers can tack on 6222 # massive amounts of additional arguments before passing them to the 6223 # linker. It appears as though 1/2 is a usable value. 6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6225 fi 6226 ;; 6227 esac 6228 6229fi 6230 6231if test -n $lt_cv_sys_max_cmd_len ; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6233$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6234else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6236$as_echo "none" >&6; } 6237fi 6238max_cmd_len=$lt_cv_sys_max_cmd_len 6239 6240 6241 6242 6243 6244 6245: ${CP="cp -f"} 6246: ${MV="mv -f"} 6247: ${RM="rm -f"} 6248 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6250$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6251# Try some XSI features 6252xsi_shell=no 6253( _lt_dummy="a/b/c" 6254 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6255 = c,a/b,, \ 6256 && eval 'test $(( 1 + 1 )) -eq 2 \ 6257 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6258 && xsi_shell=yes 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6260$as_echo "$xsi_shell" >&6; } 6261 6262 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6264$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6265lt_shell_append=no 6266( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6267 >/dev/null 2>&1 \ 6268 && lt_shell_append=yes 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6270$as_echo "$lt_shell_append" >&6; } 6271 6272 6273if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6274 lt_unset=unset 6275else 6276 lt_unset=false 6277fi 6278 6279 6280 6281 6282 6283# test EBCDIC or ASCII 6284case `echo X|tr X '\101'` in 6285 A) # ASCII based system 6286 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6287 lt_SP2NL='tr \040 \012' 6288 lt_NL2SP='tr \015\012 \040\040' 6289 ;; 6290 *) # EBCDIC based system 6291 lt_SP2NL='tr \100 \n' 6292 lt_NL2SP='tr \r\n \100\100' 6293 ;; 6294esac 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6305$as_echo_n "checking for $LD option to reload object files... " >&6; } 6306if ${lt_cv_ld_reload_flag+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 lt_cv_ld_reload_flag='-r' 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6312$as_echo "$lt_cv_ld_reload_flag" >&6; } 6313reload_flag=$lt_cv_ld_reload_flag 6314case $reload_flag in 6315"" | " "*) ;; 6316*) reload_flag=" $reload_flag" ;; 6317esac 6318reload_cmds='$LD$reload_flag -o $output$reload_objs' 6319case $host_os in 6320 darwin*) 6321 if test "$GCC" = yes; then 6322 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6323 else 6324 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6325 fi 6326 ;; 6327esac 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337if test -n "$ac_tool_prefix"; then 6338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6339set dummy ${ac_tool_prefix}objdump; ac_word=$2 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6341$as_echo_n "checking for $ac_word... " >&6; } 6342if ${ac_cv_prog_OBJDUMP+:} false; then : 6343 $as_echo_n "(cached) " >&6 6344else 6345 if test -n "$OBJDUMP"; then 6346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6347else 6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6349for as_dir in $PATH 6350do 6351 IFS=$as_save_IFS 6352 test -z "$as_dir" && as_dir=. 6353 for ac_exec_ext in '' $ac_executable_extensions; do 6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6357 break 2 6358 fi 6359done 6360 done 6361IFS=$as_save_IFS 6362 6363fi 6364fi 6365OBJDUMP=$ac_cv_prog_OBJDUMP 6366if test -n "$OBJDUMP"; then 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6368$as_echo "$OBJDUMP" >&6; } 6369else 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6371$as_echo "no" >&6; } 6372fi 6373 6374 6375fi 6376if test -z "$ac_cv_prog_OBJDUMP"; then 6377 ac_ct_OBJDUMP=$OBJDUMP 6378 # Extract the first word of "objdump", so it can be a program name with args. 6379set dummy objdump; ac_word=$2 6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6381$as_echo_n "checking for $ac_word... " >&6; } 6382if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 if test -n "$ac_ct_OBJDUMP"; then 6386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6387else 6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6389for as_dir in $PATH 6390do 6391 IFS=$as_save_IFS 6392 test -z "$as_dir" && as_dir=. 6393 for ac_exec_ext in '' $ac_executable_extensions; do 6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6395 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6397 break 2 6398 fi 6399done 6400 done 6401IFS=$as_save_IFS 6402 6403fi 6404fi 6405ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6406if test -n "$ac_ct_OBJDUMP"; then 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6408$as_echo "$ac_ct_OBJDUMP" >&6; } 6409else 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6411$as_echo "no" >&6; } 6412fi 6413 6414 if test "x$ac_ct_OBJDUMP" = x; then 6415 OBJDUMP="false" 6416 else 6417 case $cross_compiling:$ac_tool_warned in 6418yes:) 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6421ac_tool_warned=yes ;; 6422esac 6423 OBJDUMP=$ac_ct_OBJDUMP 6424 fi 6425else 6426 OBJDUMP="$ac_cv_prog_OBJDUMP" 6427fi 6428 6429test -z "$OBJDUMP" && OBJDUMP=objdump 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6440$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6441if ${lt_cv_deplibs_check_method+:} false; then : 6442 $as_echo_n "(cached) " >&6 6443else 6444 lt_cv_file_magic_cmd='$MAGIC_CMD' 6445lt_cv_file_magic_test_file= 6446lt_cv_deplibs_check_method='unknown' 6447# Need to set the preceding variable on all platforms that support 6448# interlibrary dependencies. 6449# 'none' -- dependencies not supported. 6450# `unknown' -- same as none, but documents that we really don't know. 6451# 'pass_all' -- all dependencies passed with no checks. 6452# 'test_compile' -- check by making test program. 6453# 'file_magic [[regex]]' -- check by looking for files in library path 6454# which responds to the $file_magic_cmd with a given extended regex. 6455# If you have `file' or equivalent on your system and you're not sure 6456# whether `pass_all' will *always* work, you probably want this one. 6457 6458case $host_os in 6459aix[4-9]*) 6460 lt_cv_deplibs_check_method=pass_all 6461 ;; 6462 6463beos*) 6464 lt_cv_deplibs_check_method=pass_all 6465 ;; 6466 6467bsdi[45]*) 6468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6469 lt_cv_file_magic_cmd='/usr/bin/file -L' 6470 lt_cv_file_magic_test_file=/shlib/libc.so 6471 ;; 6472 6473cygwin*) 6474 # func_win32_libid is a shell function defined in ltmain.sh 6475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6476 lt_cv_file_magic_cmd='func_win32_libid' 6477 ;; 6478 6479mingw* | pw32*) 6480 # Base MSYS/MinGW do not provide the 'file' command needed by 6481 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6482 # unless we find 'file', for example because we are cross-compiling. 6483 if ( file / ) >/dev/null 2>&1; then 6484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6485 lt_cv_file_magic_cmd='func_win32_libid' 6486 else 6487 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6488 lt_cv_file_magic_cmd='$OBJDUMP -f' 6489 fi 6490 ;; 6491 6492cegcc) 6493 # use the weaker test based on 'objdump'. See mingw*. 6494 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6495 lt_cv_file_magic_cmd='$OBJDUMP -f' 6496 ;; 6497 6498darwin* | rhapsody*) 6499 lt_cv_deplibs_check_method=pass_all 6500 ;; 6501 6502freebsd* | dragonfly*) 6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6504 case $host_cpu in 6505 i*86 ) 6506 # Not sure whether the presence of OpenBSD here was a mistake. 6507 # Let's accept both of them until this is cleared up. 6508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6509 lt_cv_file_magic_cmd=/usr/bin/file 6510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6511 ;; 6512 esac 6513 else 6514 lt_cv_deplibs_check_method=pass_all 6515 fi 6516 ;; 6517 6518gnu*) 6519 lt_cv_deplibs_check_method=pass_all 6520 ;; 6521 6522hpux10.20* | hpux11*) 6523 lt_cv_file_magic_cmd=/usr/bin/file 6524 case $host_cpu in 6525 ia64*) 6526 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6527 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6528 ;; 6529 hppa*64*) 6530 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]' 6531 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6532 ;; 6533 *) 6534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6535 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6536 ;; 6537 esac 6538 ;; 6539 6540interix[3-9]*) 6541 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6543 ;; 6544 6545irix5* | irix6* | nonstopux*) 6546 case $LD in 6547 *-32|*"-32 ") libmagic=32-bit;; 6548 *-n32|*"-n32 ") libmagic=N32;; 6549 *-64|*"-64 ") libmagic=64-bit;; 6550 *) libmagic=never-match;; 6551 esac 6552 lt_cv_deplibs_check_method=pass_all 6553 ;; 6554 6555# This must be Linux ELF. 6556linux* | k*bsd*-gnu) 6557 lt_cv_deplibs_check_method=pass_all 6558 ;; 6559 6560netbsd*) 6561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6563 else 6564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6565 fi 6566 ;; 6567 6568newos6*) 6569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6570 lt_cv_file_magic_cmd=/usr/bin/file 6571 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6572 ;; 6573 6574*nto* | *qnx*) 6575 lt_cv_deplibs_check_method=pass_all 6576 ;; 6577 6578openbsd*) 6579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6581 else 6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6583 fi 6584 ;; 6585 6586osf3* | osf4* | osf5*) 6587 lt_cv_deplibs_check_method=pass_all 6588 ;; 6589 6590rdos*) 6591 lt_cv_deplibs_check_method=pass_all 6592 ;; 6593 6594solaris*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6599 lt_cv_deplibs_check_method=pass_all 6600 ;; 6601 6602sysv4 | sysv4.3*) 6603 case $host_vendor in 6604 motorola) 6605 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]' 6606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6607 ;; 6608 ncr) 6609 lt_cv_deplibs_check_method=pass_all 6610 ;; 6611 sequent) 6612 lt_cv_file_magic_cmd='/bin/file' 6613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6614 ;; 6615 sni) 6616 lt_cv_file_magic_cmd='/bin/file' 6617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6618 lt_cv_file_magic_test_file=/lib/libc.so 6619 ;; 6620 siemens) 6621 lt_cv_deplibs_check_method=pass_all 6622 ;; 6623 pc) 6624 lt_cv_deplibs_check_method=pass_all 6625 ;; 6626 esac 6627 ;; 6628 6629tpf*) 6630 lt_cv_deplibs_check_method=pass_all 6631 ;; 6632esac 6633 6634fi 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6636$as_echo "$lt_cv_deplibs_check_method" >&6; } 6637file_magic_cmd=$lt_cv_file_magic_cmd 6638deplibs_check_method=$lt_cv_deplibs_check_method 6639test -z "$deplibs_check_method" && deplibs_check_method=unknown 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}ar; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_AR+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$AR"; then 6661 ac_cv_prog_AR="$AR" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6670 ac_cv_prog_AR="${ac_tool_prefix}ar" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680AR=$ac_cv_prog_AR 6681if test -n "$AR"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6683$as_echo "$AR" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_AR"; then 6692 ac_ct_AR=$AR 6693 # Extract the first word of "ar", so it can be a program name with args. 6694set dummy ar; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_ac_ct_AR+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_AR"; then 6701 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6710 ac_cv_prog_ac_ct_AR="ar" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_AR=$ac_cv_prog_ac_ct_AR 6721if test -n "$ac_ct_AR"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6723$as_echo "$ac_ct_AR" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_AR" = x; then 6730 AR="false" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6736ac_tool_warned=yes ;; 6737esac 6738 AR=$ac_ct_AR 6739 fi 6740else 6741 AR="$ac_cv_prog_AR" 6742fi 6743 6744test -z "$AR" && AR=ar 6745test -z "$AR_FLAGS" && AR_FLAGS=cru 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757if test -n "$ac_tool_prefix"; then 6758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6759set dummy ${ac_tool_prefix}strip; ac_word=$2 6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6761$as_echo_n "checking for $ac_word... " >&6; } 6762if ${ac_cv_prog_STRIP+:} false; then : 6763 $as_echo_n "(cached) " >&6 6764else 6765 if test -n "$STRIP"; then 6766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6775 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780 done 6781IFS=$as_save_IFS 6782 6783fi 6784fi 6785STRIP=$ac_cv_prog_STRIP 6786if test -n "$STRIP"; then 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6788$as_echo "$STRIP" >&6; } 6789else 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6791$as_echo "no" >&6; } 6792fi 6793 6794 6795fi 6796if test -z "$ac_cv_prog_STRIP"; then 6797 ac_ct_STRIP=$STRIP 6798 # Extract the first word of "strip", so it can be a program name with args. 6799set dummy strip; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$ac_ct_STRIP"; then 6806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6815 ac_cv_prog_ac_ct_STRIP="strip" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6826if test -n "$ac_ct_STRIP"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6828$as_echo "$ac_ct_STRIP" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 if test "x$ac_ct_STRIP" = x; then 6835 STRIP=":" 6836 else 6837 case $cross_compiling:$ac_tool_warned in 6838yes:) 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6841ac_tool_warned=yes ;; 6842esac 6843 STRIP=$ac_ct_STRIP 6844 fi 6845else 6846 STRIP="$ac_cv_prog_STRIP" 6847fi 6848 6849test -z "$STRIP" && STRIP=: 6850 6851 6852 6853 6854 6855 6856if test -n "$ac_tool_prefix"; then 6857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6858set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6860$as_echo_n "checking for $ac_word... " >&6; } 6861if ${ac_cv_prog_RANLIB+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 if test -n "$RANLIB"; then 6865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6866else 6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878done 6879 done 6880IFS=$as_save_IFS 6881 6882fi 6883fi 6884RANLIB=$ac_cv_prog_RANLIB 6885if test -n "$RANLIB"; then 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6887$as_echo "$RANLIB" >&6; } 6888else 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890$as_echo "no" >&6; } 6891fi 6892 6893 6894fi 6895if test -z "$ac_cv_prog_RANLIB"; then 6896 ac_ct_RANLIB=$RANLIB 6897 # Extract the first word of "ranlib", so it can be a program name with args. 6898set dummy ranlib; ac_word=$2 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6900$as_echo_n "checking for $ac_word... " >&6; } 6901if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 if test -n "$ac_ct_RANLIB"; then 6905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6914 ac_cv_prog_ac_ct_RANLIB="ranlib" 6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919 done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6925if test -n "$ac_ct_RANLIB"; then 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6927$as_echo "$ac_ct_RANLIB" >&6; } 6928else 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930$as_echo "no" >&6; } 6931fi 6932 6933 if test "x$ac_ct_RANLIB" = x; then 6934 RANLIB=":" 6935 else 6936 case $cross_compiling:$ac_tool_warned in 6937yes:) 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 RANLIB=$ac_ct_RANLIB 6943 fi 6944else 6945 RANLIB="$ac_cv_prog_RANLIB" 6946fi 6947 6948test -z "$RANLIB" && RANLIB=: 6949 6950 6951 6952 6953 6954 6955# Determine commands to create old-style static archives. 6956old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6957old_postinstall_cmds='chmod 644 $oldlib' 6958old_postuninstall_cmds= 6959 6960if test -n "$RANLIB"; then 6961 case $host_os in 6962 openbsd*) 6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6964 ;; 6965 *) 6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6967 ;; 6968 esac 6969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6970fi 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005# If no C compiler was specified, use CC. 7006LTCC=${LTCC-"$CC"} 7007 7008# If no C compiler flags were specified, use CFLAGS. 7009LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7010 7011# Allow CC to be a program name with arguments. 7012compiler=$CC 7013 7014 7015# Check for command to grab the raw symbol name followed by C symbol from nm. 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7017$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7018if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7019 $as_echo_n "(cached) " >&6 7020else 7021 7022# These are sane defaults that work on at least a few old systems. 7023# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7024 7025# Character class describing NM global symbol codes. 7026symcode='[BCDEGRST]' 7027 7028# Regexp to match symbols that can be accessed directly from C. 7029sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7030 7031# Define system-specific variables. 7032case $host_os in 7033aix*) 7034 symcode='[BCDT]' 7035 ;; 7036cygwin* | mingw* | pw32* | cegcc*) 7037 symcode='[ABCDGISTW]' 7038 ;; 7039hpux*) 7040 if test "$host_cpu" = ia64; then 7041 symcode='[ABCDEGRST]' 7042 fi 7043 ;; 7044irix* | nonstopux*) 7045 symcode='[BCDEGRST]' 7046 ;; 7047osf*) 7048 symcode='[BCDEGQRST]' 7049 ;; 7050solaris*) 7051 symcode='[BDRT]' 7052 ;; 7053sco3.2v5*) 7054 symcode='[DT]' 7055 ;; 7056sysv4.2uw2*) 7057 symcode='[DT]' 7058 ;; 7059sysv5* | sco5v6* | unixware* | OpenUNIX*) 7060 symcode='[ABDT]' 7061 ;; 7062sysv4) 7063 symcode='[DFNSTU]' 7064 ;; 7065esac 7066 7067# If we're using GNU nm, then use its standard symbol codes. 7068case `$NM -V 2>&1` in 7069*GNU* | *'with BFD'*) 7070 symcode='[ABCDGIRSTW]' ;; 7071esac 7072 7073# Transform an extracted symbol line into a proper C declaration. 7074# Some systems (esp. on ia64) link data and code symbols differently, 7075# so use this general approach. 7076lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7077 7078# Transform an extracted symbol line into symbol name and symbol address 7079lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7080lt_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'" 7081 7082# Handle CRLF in mingw tool chain 7083opt_cr= 7084case $build_os in 7085mingw*) 7086 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7087 ;; 7088esac 7089 7090# Try without a prefix underscore, then with it. 7091for ac_symprfx in "" "_"; do 7092 7093 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7094 symxfrm="\\1 $ac_symprfx\\2 \\2" 7095 7096 # Write the raw and C identifiers. 7097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7098 # Fake it for dumpbin and say T for any non-static function 7099 # and D for any global variable. 7100 # Also find C++ and __fastcall symbols from MSVC++, 7101 # which start with @ or ?. 7102 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7103" {last_section=section; section=\$ 3};"\ 7104" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7105" \$ 0!~/External *\|/{next};"\ 7106" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7107" {if(hide[section]) next};"\ 7108" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7109" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7110" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7111" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7112" ' prfx=^$ac_symprfx" 7113 else 7114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7115 fi 7116 7117 # Check to see that the pipe works correctly. 7118 pipe_works=no 7119 7120 rm -f conftest* 7121 cat > conftest.$ac_ext <<_LT_EOF 7122#ifdef __cplusplus 7123extern "C" { 7124#endif 7125char nm_test_var; 7126void nm_test_func(void); 7127void nm_test_func(void){} 7128#ifdef __cplusplus 7129} 7130#endif 7131int main(){nm_test_var='a';nm_test_func();return(0);} 7132_LT_EOF 7133 7134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7135 (eval $ac_compile) 2>&5 7136 ac_status=$? 7137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7138 test $ac_status = 0; }; then 7139 # Now try to grab the symbols. 7140 nlist=conftest.nm 7141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7142 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7143 ac_status=$? 7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7145 test $ac_status = 0; } && test -s "$nlist"; then 7146 # Try sorting and uniquifying the output. 7147 if sort "$nlist" | uniq > "$nlist"T; then 7148 mv -f "$nlist"T "$nlist" 7149 else 7150 rm -f "$nlist"T 7151 fi 7152 7153 # Make sure that we snagged all the symbols we need. 7154 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7155 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7156 cat <<_LT_EOF > conftest.$ac_ext 7157#ifdef __cplusplus 7158extern "C" { 7159#endif 7160 7161_LT_EOF 7162 # Now generate the symbol file. 7163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7164 7165 cat <<_LT_EOF >> conftest.$ac_ext 7166 7167/* The mapping between symbol names and symbols. */ 7168const struct { 7169 const char *name; 7170 void *address; 7171} 7172lt__PROGRAM__LTX_preloaded_symbols[] = 7173{ 7174 { "@PROGRAM@", (void *) 0 }, 7175_LT_EOF 7176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7177 cat <<\_LT_EOF >> conftest.$ac_ext 7178 {0, (void *) 0} 7179}; 7180 7181/* This works around a problem in FreeBSD linker */ 7182#ifdef FREEBSD_WORKAROUND 7183static const void *lt_preloaded_setup() { 7184 return lt__PROGRAM__LTX_preloaded_symbols; 7185} 7186#endif 7187 7188#ifdef __cplusplus 7189} 7190#endif 7191_LT_EOF 7192 # Now try linking the two files. 7193 mv conftest.$ac_objext conftstm.$ac_objext 7194 lt_save_LIBS="$LIBS" 7195 lt_save_CFLAGS="$CFLAGS" 7196 LIBS="conftstm.$ac_objext" 7197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7199 (eval $ac_link) 2>&5 7200 ac_status=$? 7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7202 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7203 pipe_works=yes 7204 fi 7205 LIBS="$lt_save_LIBS" 7206 CFLAGS="$lt_save_CFLAGS" 7207 else 7208 echo "cannot find nm_test_func in $nlist" >&5 7209 fi 7210 else 7211 echo "cannot find nm_test_var in $nlist" >&5 7212 fi 7213 else 7214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7215 fi 7216 else 7217 echo "$progname: failed program was:" >&5 7218 cat conftest.$ac_ext >&5 7219 fi 7220 rm -rf conftest* conftst* 7221 7222 # Do not use the global_symbol_pipe unless it works. 7223 if test "$pipe_works" = yes; then 7224 break 7225 else 7226 lt_cv_sys_global_symbol_pipe= 7227 fi 7228done 7229 7230fi 7231 7232if test -z "$lt_cv_sys_global_symbol_pipe"; then 7233 lt_cv_sys_global_symbol_to_cdecl= 7234fi 7235if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7237$as_echo "failed" >&6; } 7238else 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7240$as_echo "ok" >&6; } 7241fi 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264# Check whether --enable-libtool-lock was given. 7265if test "${enable_libtool_lock+set}" = set; then : 7266 enableval=$enable_libtool_lock; 7267fi 7268 7269test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7270 7271# Some flags need to be propagated to the compiler or linker for good 7272# libtool support. 7273case $host in 7274ia64-*-hpux*) 7275 # Find out which ABI we are using. 7276 echo 'int i;' > conftest.$ac_ext 7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7278 (eval $ac_compile) 2>&5 7279 ac_status=$? 7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7281 test $ac_status = 0; }; then 7282 case `/usr/bin/file conftest.$ac_objext` in 7283 *ELF-32*) 7284 HPUX_IA64_MODE="32" 7285 ;; 7286 *ELF-64*) 7287 HPUX_IA64_MODE="64" 7288 ;; 7289 esac 7290 fi 7291 rm -rf conftest* 7292 ;; 7293*-*-irix6*) 7294 # Find out which ABI we are using. 7295 echo '#line 7295 "configure"' > conftest.$ac_ext 7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7297 (eval $ac_compile) 2>&5 7298 ac_status=$? 7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7300 test $ac_status = 0; }; then 7301 if test "$lt_cv_prog_gnu_ld" = yes; then 7302 case `/usr/bin/file conftest.$ac_objext` in 7303 *32-bit*) 7304 LD="${LD-ld} -melf32bsmip" 7305 ;; 7306 *N32*) 7307 LD="${LD-ld} -melf32bmipn32" 7308 ;; 7309 *64-bit*) 7310 LD="${LD-ld} -melf64bmip" 7311 ;; 7312 esac 7313 else 7314 case `/usr/bin/file conftest.$ac_objext` in 7315 *32-bit*) 7316 LD="${LD-ld} -32" 7317 ;; 7318 *N32*) 7319 LD="${LD-ld} -n32" 7320 ;; 7321 *64-bit*) 7322 LD="${LD-ld} -64" 7323 ;; 7324 esac 7325 fi 7326 fi 7327 rm -rf conftest* 7328 ;; 7329 7330x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7331s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7332 # Find out which ABI we are using. 7333 echo 'int i;' > conftest.$ac_ext 7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7335 (eval $ac_compile) 2>&5 7336 ac_status=$? 7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7338 test $ac_status = 0; }; then 7339 case `/usr/bin/file conftest.o` in 7340 *32-bit*) 7341 case $host in 7342 x86_64-*kfreebsd*-gnu) 7343 LD="${LD-ld} -m elf_i386_fbsd" 7344 ;; 7345 x86_64-*linux*) 7346 LD="${LD-ld} -m elf_i386" 7347 ;; 7348 ppc64-*linux*|powerpc64-*linux*) 7349 LD="${LD-ld} -m elf32ppclinux" 7350 ;; 7351 s390x-*linux*) 7352 LD="${LD-ld} -m elf_s390" 7353 ;; 7354 sparc64-*linux*) 7355 LD="${LD-ld} -m elf32_sparc" 7356 ;; 7357 esac 7358 ;; 7359 *64-bit*) 7360 case $host in 7361 x86_64-*kfreebsd*-gnu) 7362 LD="${LD-ld} -m elf_x86_64_fbsd" 7363 ;; 7364 x86_64-*linux*) 7365 LD="${LD-ld} -m elf_x86_64" 7366 ;; 7367 ppc*-*linux*|powerpc*-*linux*) 7368 LD="${LD-ld} -m elf64ppc" 7369 ;; 7370 s390*-*linux*|s390*-*tpf*) 7371 LD="${LD-ld} -m elf64_s390" 7372 ;; 7373 sparc*-*linux*) 7374 LD="${LD-ld} -m elf64_sparc" 7375 ;; 7376 esac 7377 ;; 7378 esac 7379 fi 7380 rm -rf conftest* 7381 ;; 7382 7383*-*-sco3.2v5*) 7384 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7385 SAVE_CFLAGS="$CFLAGS" 7386 CFLAGS="$CFLAGS -belf" 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7388$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7389if ${lt_cv_cc_needs_belf+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 ac_ext=c 7393ac_cpp='$CPP $CPPFLAGS' 7394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7396ac_compiler_gnu=$ac_cv_c_compiler_gnu 7397 7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399/* end confdefs.h. */ 7400 7401int 7402main () 7403{ 7404 7405 ; 7406 return 0; 7407} 7408_ACEOF 7409if ac_fn_c_try_link "$LINENO"; then : 7410 lt_cv_cc_needs_belf=yes 7411else 7412 lt_cv_cc_needs_belf=no 7413fi 7414rm -f core conftest.err conftest.$ac_objext \ 7415 conftest$ac_exeext conftest.$ac_ext 7416 ac_ext=c 7417ac_cpp='$CPP $CPPFLAGS' 7418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7420ac_compiler_gnu=$ac_cv_c_compiler_gnu 7421 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7424$as_echo "$lt_cv_cc_needs_belf" >&6; } 7425 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7426 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7427 CFLAGS="$SAVE_CFLAGS" 7428 fi 7429 ;; 7430sparc*-*solaris*) 7431 # Find out which ABI we are using. 7432 echo 'int i;' > conftest.$ac_ext 7433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7434 (eval $ac_compile) 2>&5 7435 ac_status=$? 7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7437 test $ac_status = 0; }; then 7438 case `/usr/bin/file conftest.o` in 7439 *64-bit*) 7440 case $lt_cv_prog_gnu_ld in 7441 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7442 *) 7443 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7444 LD="${LD-ld} -64" 7445 fi 7446 ;; 7447 esac 7448 ;; 7449 esac 7450 fi 7451 rm -rf conftest* 7452 ;; 7453esac 7454 7455need_locks="$enable_libtool_lock" 7456 7457 7458 case $host_os in 7459 rhapsody* | darwin*) 7460 if test -n "$ac_tool_prefix"; then 7461 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7462set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7464$as_echo_n "checking for $ac_word... " >&6; } 7465if ${ac_cv_prog_DSYMUTIL+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467else 7468 if test -n "$DSYMUTIL"; then 7469 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7470else 7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7472for as_dir in $PATH 7473do 7474 IFS=$as_save_IFS 7475 test -z "$as_dir" && as_dir=. 7476 for ac_exec_ext in '' $ac_executable_extensions; do 7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7478 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7480 break 2 7481 fi 7482done 7483 done 7484IFS=$as_save_IFS 7485 7486fi 7487fi 7488DSYMUTIL=$ac_cv_prog_DSYMUTIL 7489if test -n "$DSYMUTIL"; then 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7491$as_echo "$DSYMUTIL" >&6; } 7492else 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7494$as_echo "no" >&6; } 7495fi 7496 7497 7498fi 7499if test -z "$ac_cv_prog_DSYMUTIL"; then 7500 ac_ct_DSYMUTIL=$DSYMUTIL 7501 # Extract the first word of "dsymutil", so it can be a program name with args. 7502set dummy dsymutil; ac_word=$2 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7504$as_echo_n "checking for $ac_word... " >&6; } 7505if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 if test -n "$ac_ct_DSYMUTIL"; then 7509 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7510else 7511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7512for as_dir in $PATH 7513do 7514 IFS=$as_save_IFS 7515 test -z "$as_dir" && as_dir=. 7516 for ac_exec_ext in '' $ac_executable_extensions; do 7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7518 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7520 break 2 7521 fi 7522done 7523 done 7524IFS=$as_save_IFS 7525 7526fi 7527fi 7528ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7529if test -n "$ac_ct_DSYMUTIL"; then 7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7531$as_echo "$ac_ct_DSYMUTIL" >&6; } 7532else 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7534$as_echo "no" >&6; } 7535fi 7536 7537 if test "x$ac_ct_DSYMUTIL" = x; then 7538 DSYMUTIL=":" 7539 else 7540 case $cross_compiling:$ac_tool_warned in 7541yes:) 7542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7544ac_tool_warned=yes ;; 7545esac 7546 DSYMUTIL=$ac_ct_DSYMUTIL 7547 fi 7548else 7549 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7550fi 7551 7552 if test -n "$ac_tool_prefix"; then 7553 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7554set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7556$as_echo_n "checking for $ac_word... " >&6; } 7557if ${ac_cv_prog_NMEDIT+:} false; then : 7558 $as_echo_n "(cached) " >&6 7559else 7560 if test -n "$NMEDIT"; then 7561 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7562else 7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7564for as_dir in $PATH 7565do 7566 IFS=$as_save_IFS 7567 test -z "$as_dir" && as_dir=. 7568 for ac_exec_ext in '' $ac_executable_extensions; do 7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7570 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7572 break 2 7573 fi 7574done 7575 done 7576IFS=$as_save_IFS 7577 7578fi 7579fi 7580NMEDIT=$ac_cv_prog_NMEDIT 7581if test -n "$NMEDIT"; then 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7583$as_echo "$NMEDIT" >&6; } 7584else 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7586$as_echo "no" >&6; } 7587fi 7588 7589 7590fi 7591if test -z "$ac_cv_prog_NMEDIT"; then 7592 ac_ct_NMEDIT=$NMEDIT 7593 # Extract the first word of "nmedit", so it can be a program name with args. 7594set dummy nmedit; ac_word=$2 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7596$as_echo_n "checking for $ac_word... " >&6; } 7597if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 if test -n "$ac_ct_NMEDIT"; then 7601 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7602else 7603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7604for as_dir in $PATH 7605do 7606 IFS=$as_save_IFS 7607 test -z "$as_dir" && as_dir=. 7608 for ac_exec_ext in '' $ac_executable_extensions; do 7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7610 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7612 break 2 7613 fi 7614done 7615 done 7616IFS=$as_save_IFS 7617 7618fi 7619fi 7620ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7621if test -n "$ac_ct_NMEDIT"; then 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7623$as_echo "$ac_ct_NMEDIT" >&6; } 7624else 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7626$as_echo "no" >&6; } 7627fi 7628 7629 if test "x$ac_ct_NMEDIT" = x; then 7630 NMEDIT=":" 7631 else 7632 case $cross_compiling:$ac_tool_warned in 7633yes:) 7634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7636ac_tool_warned=yes ;; 7637esac 7638 NMEDIT=$ac_ct_NMEDIT 7639 fi 7640else 7641 NMEDIT="$ac_cv_prog_NMEDIT" 7642fi 7643 7644 if test -n "$ac_tool_prefix"; then 7645 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7646set dummy ${ac_tool_prefix}lipo; ac_word=$2 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7648$as_echo_n "checking for $ac_word... " >&6; } 7649if ${ac_cv_prog_LIPO+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 if test -n "$LIPO"; then 7653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7654else 7655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7656for as_dir in $PATH 7657do 7658 IFS=$as_save_IFS 7659 test -z "$as_dir" && as_dir=. 7660 for ac_exec_ext in '' $ac_executable_extensions; do 7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7662 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7664 break 2 7665 fi 7666done 7667 done 7668IFS=$as_save_IFS 7669 7670fi 7671fi 7672LIPO=$ac_cv_prog_LIPO 7673if test -n "$LIPO"; then 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7675$as_echo "$LIPO" >&6; } 7676else 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7678$as_echo "no" >&6; } 7679fi 7680 7681 7682fi 7683if test -z "$ac_cv_prog_LIPO"; then 7684 ac_ct_LIPO=$LIPO 7685 # Extract the first word of "lipo", so it can be a program name with args. 7686set dummy lipo; ac_word=$2 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7688$as_echo_n "checking for $ac_word... " >&6; } 7689if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 if test -n "$ac_ct_LIPO"; then 7693 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7694else 7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7696for as_dir in $PATH 7697do 7698 IFS=$as_save_IFS 7699 test -z "$as_dir" && as_dir=. 7700 for ac_exec_ext in '' $ac_executable_extensions; do 7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7702 ac_cv_prog_ac_ct_LIPO="lipo" 7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7704 break 2 7705 fi 7706done 7707 done 7708IFS=$as_save_IFS 7709 7710fi 7711fi 7712ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7713if test -n "$ac_ct_LIPO"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7715$as_echo "$ac_ct_LIPO" >&6; } 7716else 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7718$as_echo "no" >&6; } 7719fi 7720 7721 if test "x$ac_ct_LIPO" = x; then 7722 LIPO=":" 7723 else 7724 case $cross_compiling:$ac_tool_warned in 7725yes:) 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7728ac_tool_warned=yes ;; 7729esac 7730 LIPO=$ac_ct_LIPO 7731 fi 7732else 7733 LIPO="$ac_cv_prog_LIPO" 7734fi 7735 7736 if test -n "$ac_tool_prefix"; then 7737 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7738set dummy ${ac_tool_prefix}otool; ac_word=$2 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7740$as_echo_n "checking for $ac_word... " >&6; } 7741if ${ac_cv_prog_OTOOL+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 if test -n "$OTOOL"; then 7745 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7746else 7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7748for as_dir in $PATH 7749do 7750 IFS=$as_save_IFS 7751 test -z "$as_dir" && as_dir=. 7752 for ac_exec_ext in '' $ac_executable_extensions; do 7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7754 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7756 break 2 7757 fi 7758done 7759 done 7760IFS=$as_save_IFS 7761 7762fi 7763fi 7764OTOOL=$ac_cv_prog_OTOOL 7765if test -n "$OTOOL"; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7767$as_echo "$OTOOL" >&6; } 7768else 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7770$as_echo "no" >&6; } 7771fi 7772 7773 7774fi 7775if test -z "$ac_cv_prog_OTOOL"; then 7776 ac_ct_OTOOL=$OTOOL 7777 # Extract the first word of "otool", so it can be a program name with args. 7778set dummy otool; ac_word=$2 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7780$as_echo_n "checking for $ac_word... " >&6; } 7781if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 if test -n "$ac_ct_OTOOL"; then 7785 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7786else 7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7788for as_dir in $PATH 7789do 7790 IFS=$as_save_IFS 7791 test -z "$as_dir" && as_dir=. 7792 for ac_exec_ext in '' $ac_executable_extensions; do 7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7794 ac_cv_prog_ac_ct_OTOOL="otool" 7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7796 break 2 7797 fi 7798done 7799 done 7800IFS=$as_save_IFS 7801 7802fi 7803fi 7804ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7805if test -n "$ac_ct_OTOOL"; then 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7807$as_echo "$ac_ct_OTOOL" >&6; } 7808else 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810$as_echo "no" >&6; } 7811fi 7812 7813 if test "x$ac_ct_OTOOL" = x; then 7814 OTOOL=":" 7815 else 7816 case $cross_compiling:$ac_tool_warned in 7817yes:) 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7820ac_tool_warned=yes ;; 7821esac 7822 OTOOL=$ac_ct_OTOOL 7823 fi 7824else 7825 OTOOL="$ac_cv_prog_OTOOL" 7826fi 7827 7828 if test -n "$ac_tool_prefix"; then 7829 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7830set dummy ${ac_tool_prefix}otool64; ac_word=$2 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7832$as_echo_n "checking for $ac_word... " >&6; } 7833if ${ac_cv_prog_OTOOL64+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 if test -n "$OTOOL64"; then 7837 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7838else 7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7840for as_dir in $PATH 7841do 7842 IFS=$as_save_IFS 7843 test -z "$as_dir" && as_dir=. 7844 for ac_exec_ext in '' $ac_executable_extensions; do 7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7846 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7848 break 2 7849 fi 7850done 7851 done 7852IFS=$as_save_IFS 7853 7854fi 7855fi 7856OTOOL64=$ac_cv_prog_OTOOL64 7857if test -n "$OTOOL64"; then 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7859$as_echo "$OTOOL64" >&6; } 7860else 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7862$as_echo "no" >&6; } 7863fi 7864 7865 7866fi 7867if test -z "$ac_cv_prog_OTOOL64"; then 7868 ac_ct_OTOOL64=$OTOOL64 7869 # Extract the first word of "otool64", so it can be a program name with args. 7870set dummy otool64; ac_word=$2 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7872$as_echo_n "checking for $ac_word... " >&6; } 7873if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 if test -n "$ac_ct_OTOOL64"; then 7877 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7878else 7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7880for as_dir in $PATH 7881do 7882 IFS=$as_save_IFS 7883 test -z "$as_dir" && as_dir=. 7884 for ac_exec_ext in '' $ac_executable_extensions; do 7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7886 ac_cv_prog_ac_ct_OTOOL64="otool64" 7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7888 break 2 7889 fi 7890done 7891 done 7892IFS=$as_save_IFS 7893 7894fi 7895fi 7896ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7897if test -n "$ac_ct_OTOOL64"; then 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7899$as_echo "$ac_ct_OTOOL64" >&6; } 7900else 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7902$as_echo "no" >&6; } 7903fi 7904 7905 if test "x$ac_ct_OTOOL64" = x; then 7906 OTOOL64=":" 7907 else 7908 case $cross_compiling:$ac_tool_warned in 7909yes:) 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7912ac_tool_warned=yes ;; 7913esac 7914 OTOOL64=$ac_ct_OTOOL64 7915 fi 7916else 7917 OTOOL64="$ac_cv_prog_OTOOL64" 7918fi 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7947$as_echo_n "checking for -single_module linker flag... " >&6; } 7948if ${lt_cv_apple_cc_single_mod+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950else 7951 lt_cv_apple_cc_single_mod=no 7952 if test -z "${LT_MULTI_MODULE}"; then 7953 # By default we will add the -single_module flag. You can override 7954 # by either setting the environment variable LT_MULTI_MODULE 7955 # non-empty at configure time, or by adding -multi_module to the 7956 # link flags. 7957 rm -rf libconftest.dylib* 7958 echo "int foo(void){return 1;}" > conftest.c 7959 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7960-dynamiclib -Wl,-single_module conftest.c" >&5 7961 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7962 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7963 _lt_result=$? 7964 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7965 lt_cv_apple_cc_single_mod=yes 7966 else 7967 cat conftest.err >&5 7968 fi 7969 rm -rf libconftest.dylib* 7970 rm -f conftest.* 7971 fi 7972fi 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7974$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7976$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7977if ${lt_cv_ld_exported_symbols_list+:} false; then : 7978 $as_echo_n "(cached) " >&6 7979else 7980 lt_cv_ld_exported_symbols_list=no 7981 save_LDFLAGS=$LDFLAGS 7982 echo "_main" > conftest.sym 7983 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985/* end confdefs.h. */ 7986 7987int 7988main () 7989{ 7990 7991 ; 7992 return 0; 7993} 7994_ACEOF 7995if ac_fn_c_try_link "$LINENO"; then : 7996 lt_cv_ld_exported_symbols_list=yes 7997else 7998 lt_cv_ld_exported_symbols_list=no 7999fi 8000rm -f core conftest.err conftest.$ac_objext \ 8001 conftest$ac_exeext conftest.$ac_ext 8002 LDFLAGS="$save_LDFLAGS" 8003 8004fi 8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8006$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8007 case $host_os in 8008 rhapsody* | darwin1.[012]) 8009 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8010 darwin1.*) 8011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8012 darwin*) # darwin 5.x on 8013 # if running on 10.5 or later, the deployment target defaults 8014 # to the OS version, if on x86, and 10.4, the deployment 8015 # target defaults to 10.4. Don't you love it? 8016 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8017 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8019 10.[012]*) 8020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8021 10.*) 8022 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8023 esac 8024 ;; 8025 esac 8026 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8027 _lt_dar_single_mod='$single_module' 8028 fi 8029 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8030 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8031 else 8032 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8033 fi 8034 if test "$DSYMUTIL" != ":"; then 8035 _lt_dsymutil='~$DSYMUTIL $lib || :' 8036 else 8037 _lt_dsymutil= 8038 fi 8039 ;; 8040 esac 8041 8042for ac_header in dlfcn.h 8043do : 8044 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8045" 8046if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8047 cat >>confdefs.h <<_ACEOF 8048#define HAVE_DLFCN_H 1 8049_ACEOF 8050 8051fi 8052 8053done 8054 8055 8056 8057# Set options 8058 8059 8060 8061 enable_dlopen=no 8062 8063 8064 enable_win32_dll=no 8065 8066 8067 # Check whether --enable-shared was given. 8068if test "${enable_shared+set}" = set; then : 8069 enableval=$enable_shared; p=${PACKAGE-default} 8070 case $enableval in 8071 yes) enable_shared=yes ;; 8072 no) enable_shared=no ;; 8073 *) 8074 enable_shared=no 8075 # Look at the argument we got. We use all the common list separators. 8076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8077 for pkg in $enableval; do 8078 IFS="$lt_save_ifs" 8079 if test "X$pkg" = "X$p"; then 8080 enable_shared=yes 8081 fi 8082 done 8083 IFS="$lt_save_ifs" 8084 ;; 8085 esac 8086else 8087 enable_shared=yes 8088fi 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 # Check whether --enable-static was given. 8099if test "${enable_static+set}" = set; then : 8100 enableval=$enable_static; p=${PACKAGE-default} 8101 case $enableval in 8102 yes) enable_static=yes ;; 8103 no) enable_static=no ;; 8104 *) 8105 enable_static=no 8106 # Look at the argument we got. We use all the common list separators. 8107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8108 for pkg in $enableval; do 8109 IFS="$lt_save_ifs" 8110 if test "X$pkg" = "X$p"; then 8111 enable_static=yes 8112 fi 8113 done 8114 IFS="$lt_save_ifs" 8115 ;; 8116 esac 8117else 8118 enable_static=yes 8119fi 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130# Check whether --with-pic was given. 8131if test "${with_pic+set}" = set; then : 8132 withval=$with_pic; pic_mode="$withval" 8133else 8134 pic_mode=default 8135fi 8136 8137 8138test -z "$pic_mode" && pic_mode=default 8139 8140 8141 8142 8143 8144 8145 8146 # Check whether --enable-fast-install was given. 8147if test "${enable_fast_install+set}" = set; then : 8148 enableval=$enable_fast_install; p=${PACKAGE-default} 8149 case $enableval in 8150 yes) enable_fast_install=yes ;; 8151 no) enable_fast_install=no ;; 8152 *) 8153 enable_fast_install=no 8154 # Look at the argument we got. We use all the common list separators. 8155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8156 for pkg in $enableval; do 8157 IFS="$lt_save_ifs" 8158 if test "X$pkg" = "X$p"; then 8159 enable_fast_install=yes 8160 fi 8161 done 8162 IFS="$lt_save_ifs" 8163 ;; 8164 esac 8165else 8166 enable_fast_install=yes 8167fi 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179# This can be used to rebuild libtool when needed 8180LIBTOOL_DEPS="$ltmain" 8181 8182# Always use our own libtool. 8183LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209test -z "$LN_S" && LN_S="ln -s" 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224if test -n "${ZSH_VERSION+set}" ; then 8225 setopt NO_GLOB_SUBST 8226fi 8227 8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8229$as_echo_n "checking for objdir... " >&6; } 8230if ${lt_cv_objdir+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 rm -f .libs 2>/dev/null 8234mkdir .libs 2>/dev/null 8235if test -d .libs; then 8236 lt_cv_objdir=.libs 8237else 8238 # MS-DOS does not allow filenames that begin with a dot. 8239 lt_cv_objdir=_libs 8240fi 8241rmdir .libs 2>/dev/null 8242fi 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8244$as_echo "$lt_cv_objdir" >&6; } 8245objdir=$lt_cv_objdir 8246 8247 8248 8249 8250 8251cat >>confdefs.h <<_ACEOF 8252#define LT_OBJDIR "$lt_cv_objdir/" 8253_ACEOF 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271case $host_os in 8272aix3*) 8273 # AIX sometimes has problems with the GCC collect2 program. For some 8274 # reason, if we set the COLLECT_NAMES environment variable, the problems 8275 # vanish in a puff of smoke. 8276 if test "X${COLLECT_NAMES+set}" != Xset; then 8277 COLLECT_NAMES= 8278 export COLLECT_NAMES 8279 fi 8280 ;; 8281esac 8282 8283# Sed substitution that helps us do robust quoting. It backslashifies 8284# metacharacters that are still active within double-quoted strings. 8285sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8286 8287# Same as above, but do not quote variable references. 8288double_quote_subst='s/\(["`\\]\)/\\\1/g' 8289 8290# Sed substitution to delay expansion of an escaped shell variable in a 8291# double_quote_subst'ed string. 8292delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8293 8294# Sed substitution to delay expansion of an escaped single quote. 8295delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8296 8297# Sed substitution to avoid accidental globbing in evaled expressions 8298no_glob_subst='s/\*/\\\*/g' 8299 8300# Global variables: 8301ofile=libtool 8302can_build_shared=yes 8303 8304# All known linkers require a `.a' archive for static linking (except MSVC, 8305# which needs '.lib'). 8306libext=a 8307 8308with_gnu_ld="$lt_cv_prog_gnu_ld" 8309 8310old_CC="$CC" 8311old_CFLAGS="$CFLAGS" 8312 8313# Set sane defaults for various variables 8314test -z "$CC" && CC=cc 8315test -z "$LTCC" && LTCC=$CC 8316test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8317test -z "$LD" && LD=ld 8318test -z "$ac_objext" && ac_objext=o 8319 8320for cc_temp in $compiler""; do 8321 case $cc_temp in 8322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8324 \-*) ;; 8325 *) break;; 8326 esac 8327done 8328cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8329 8330 8331# Only perform the check for file, if the check method requires it 8332test -z "$MAGIC_CMD" && MAGIC_CMD=file 8333case $deplibs_check_method in 8334file_magic*) 8335 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8337$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8338if ${lt_cv_path_MAGIC_CMD+:} false; then : 8339 $as_echo_n "(cached) " >&6 8340else 8341 case $MAGIC_CMD in 8342[\\/*] | ?:[\\/]*) 8343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8344 ;; 8345*) 8346 lt_save_MAGIC_CMD="$MAGIC_CMD" 8347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8349 for ac_dir in $ac_dummy; do 8350 IFS="$lt_save_ifs" 8351 test -z "$ac_dir" && ac_dir=. 8352 if test -f $ac_dir/${ac_tool_prefix}file; then 8353 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8354 if test -n "$file_magic_test_file"; then 8355 case $deplibs_check_method in 8356 "file_magic "*) 8357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8360 $EGREP "$file_magic_regex" > /dev/null; then 8361 : 8362 else 8363 cat <<_LT_EOF 1>&2 8364 8365*** Warning: the command libtool uses to detect shared libraries, 8366*** $file_magic_cmd, produces output that libtool cannot recognize. 8367*** The result is that libtool may fail to recognize shared libraries 8368*** as such. This will affect the creation of libtool libraries that 8369*** depend on shared libraries, but programs linked with such libtool 8370*** libraries will work regardless of this problem. Nevertheless, you 8371*** may want to report the problem to your system manager and/or to 8372*** bug-libtool@gnu.org 8373 8374_LT_EOF 8375 fi ;; 8376 esac 8377 fi 8378 break 8379 fi 8380 done 8381 IFS="$lt_save_ifs" 8382 MAGIC_CMD="$lt_save_MAGIC_CMD" 8383 ;; 8384esac 8385fi 8386 8387MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8388if test -n "$MAGIC_CMD"; then 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8390$as_echo "$MAGIC_CMD" >&6; } 8391else 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8393$as_echo "no" >&6; } 8394fi 8395 8396 8397 8398 8399 8400if test -z "$lt_cv_path_MAGIC_CMD"; then 8401 if test -n "$ac_tool_prefix"; then 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8403$as_echo_n "checking for file... " >&6; } 8404if ${lt_cv_path_MAGIC_CMD+:} false; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 case $MAGIC_CMD in 8408[\\/*] | ?:[\\/]*) 8409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8410 ;; 8411*) 8412 lt_save_MAGIC_CMD="$MAGIC_CMD" 8413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8415 for ac_dir in $ac_dummy; do 8416 IFS="$lt_save_ifs" 8417 test -z "$ac_dir" && ac_dir=. 8418 if test -f $ac_dir/file; then 8419 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8420 if test -n "$file_magic_test_file"; then 8421 case $deplibs_check_method in 8422 "file_magic "*) 8423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8426 $EGREP "$file_magic_regex" > /dev/null; then 8427 : 8428 else 8429 cat <<_LT_EOF 1>&2 8430 8431*** Warning: the command libtool uses to detect shared libraries, 8432*** $file_magic_cmd, produces output that libtool cannot recognize. 8433*** The result is that libtool may fail to recognize shared libraries 8434*** as such. This will affect the creation of libtool libraries that 8435*** depend on shared libraries, but programs linked with such libtool 8436*** libraries will work regardless of this problem. Nevertheless, you 8437*** may want to report the problem to your system manager and/or to 8438*** bug-libtool@gnu.org 8439 8440_LT_EOF 8441 fi ;; 8442 esac 8443 fi 8444 break 8445 fi 8446 done 8447 IFS="$lt_save_ifs" 8448 MAGIC_CMD="$lt_save_MAGIC_CMD" 8449 ;; 8450esac 8451fi 8452 8453MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8454if test -n "$MAGIC_CMD"; then 8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8456$as_echo "$MAGIC_CMD" >&6; } 8457else 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8459$as_echo "no" >&6; } 8460fi 8461 8462 8463 else 8464 MAGIC_CMD=: 8465 fi 8466fi 8467 8468 fi 8469 ;; 8470esac 8471 8472# Use C for the default configuration in the libtool script 8473 8474lt_save_CC="$CC" 8475ac_ext=c 8476ac_cpp='$CPP $CPPFLAGS' 8477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8479ac_compiler_gnu=$ac_cv_c_compiler_gnu 8480 8481 8482# Source file extension for C test sources. 8483ac_ext=c 8484 8485# Object file extension for compiled C test sources. 8486objext=o 8487objext=$objext 8488 8489# Code to be used in simple compile tests 8490lt_simple_compile_test_code="int some_variable = 0;" 8491 8492# Code to be used in simple link tests 8493lt_simple_link_test_code='int main(){return(0);}' 8494 8495 8496 8497 8498 8499 8500 8501# If no C compiler was specified, use CC. 8502LTCC=${LTCC-"$CC"} 8503 8504# If no C compiler flags were specified, use CFLAGS. 8505LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8506 8507# Allow CC to be a program name with arguments. 8508compiler=$CC 8509 8510# Save the default compiler, since it gets overwritten when the other 8511# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8512compiler_DEFAULT=$CC 8513 8514# save warnings/boilerplate of simple test code 8515ac_outfile=conftest.$ac_objext 8516echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8517eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8518_lt_compiler_boilerplate=`cat conftest.err` 8519$RM conftest* 8520 8521ac_outfile=conftest.$ac_objext 8522echo "$lt_simple_link_test_code" >conftest.$ac_ext 8523eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8524_lt_linker_boilerplate=`cat conftest.err` 8525$RM -r conftest* 8526 8527 8528## CAVEAT EMPTOR: 8529## There is no encapsulation within the following macros, do not change 8530## the running order or otherwise move them around unless you know exactly 8531## what you are doing... 8532if test -n "$compiler"; then 8533 8534lt_prog_compiler_no_builtin_flag= 8535 8536if test "$GCC" = yes; then 8537 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8538 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8540$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8541if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8542 $as_echo_n "(cached) " >&6 8543else 8544 lt_cv_prog_compiler_rtti_exceptions=no 8545 ac_outfile=conftest.$ac_objext 8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8547 lt_compiler_flag="-fno-rtti -fno-exceptions" 8548 # Insert the option either (1) after the last *FLAGS variable, or 8549 # (2) before a word containing "conftest.", or (3) at the end. 8550 # Note that $ac_compile itself does not contain backslashes and begins 8551 # with a dollar sign (not a hyphen), so the echo should work correctly. 8552 # The option is referenced via a variable to avoid confusing sed. 8553 lt_compile=`echo "$ac_compile" | $SED \ 8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8556 -e 's:$: $lt_compiler_flag:'` 8557 (eval echo "\"\$as_me:8557: $lt_compile\"" >&5) 8558 (eval "$lt_compile" 2>conftest.err) 8559 ac_status=$? 8560 cat conftest.err >&5 8561 echo "$as_me:8561: \$? = $ac_status" >&5 8562 if (exit $ac_status) && test -s "$ac_outfile"; then 8563 # The compiler can only warn and ignore the option if not recognized 8564 # So say no if there are warnings other than the usual output. 8565 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8568 lt_cv_prog_compiler_rtti_exceptions=yes 8569 fi 8570 fi 8571 $RM conftest* 8572 8573fi 8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8575$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8576 8577if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8578 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8579else 8580 : 8581fi 8582 8583fi 8584 8585 8586 8587 8588 8589 8590 lt_prog_compiler_wl= 8591lt_prog_compiler_pic= 8592lt_prog_compiler_static= 8593 8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8595$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8596 8597 if test "$GCC" = yes; then 8598 lt_prog_compiler_wl='-Wl,' 8599 lt_prog_compiler_static='-static' 8600 8601 case $host_os in 8602 aix*) 8603 # All AIX code is PIC. 8604 if test "$host_cpu" = ia64; then 8605 # AIX 5 now supports IA64 processor 8606 lt_prog_compiler_static='-Bstatic' 8607 fi 8608 ;; 8609 8610 amigaos*) 8611 case $host_cpu in 8612 powerpc) 8613 # see comment about AmigaOS4 .so support 8614 lt_prog_compiler_pic='-fPIC' 8615 ;; 8616 m68k) 8617 # FIXME: we need at least 68020 code to build shared libraries, but 8618 # adding the `-m68020' flag to GCC prevents building anything better, 8619 # like `-m68040'. 8620 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8621 ;; 8622 esac 8623 ;; 8624 8625 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8626 # PIC is the default for these OSes. 8627 ;; 8628 8629 mingw* | cygwin* | pw32* | os2* | cegcc*) 8630 # This hack is so that the source file can tell whether it is being 8631 # built for inclusion in a dll (and should export symbols for example). 8632 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8633 # (--disable-auto-import) libraries 8634 lt_prog_compiler_pic='-DDLL_EXPORT' 8635 ;; 8636 8637 darwin* | rhapsody*) 8638 # PIC is the default on this platform 8639 # Common symbols not allowed in MH_DYLIB files 8640 lt_prog_compiler_pic='-fno-common' 8641 ;; 8642 8643 hpux*) 8644 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8645 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8646 # sets the default TLS model and affects inlining. 8647 case $host_cpu in 8648 hppa*64*) 8649 # +Z the default 8650 ;; 8651 *) 8652 lt_prog_compiler_pic='-fPIC' 8653 ;; 8654 esac 8655 ;; 8656 8657 interix[3-9]*) 8658 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8659 # Instead, we relocate shared libraries at runtime. 8660 ;; 8661 8662 msdosdjgpp*) 8663 # Just because we use GCC doesn't mean we suddenly get shared libraries 8664 # on systems that don't support them. 8665 lt_prog_compiler_can_build_shared=no 8666 enable_shared=no 8667 ;; 8668 8669 *nto* | *qnx*) 8670 # QNX uses GNU C++, but need to define -shared option too, otherwise 8671 # it will coredump. 8672 lt_prog_compiler_pic='-fPIC -shared' 8673 ;; 8674 8675 sysv4*MP*) 8676 if test -d /usr/nec; then 8677 lt_prog_compiler_pic=-Kconform_pic 8678 fi 8679 ;; 8680 8681 *) 8682 lt_prog_compiler_pic='-fPIC' 8683 ;; 8684 esac 8685 else 8686 # PORTME Check for flag to pass linker flags through the system compiler. 8687 case $host_os in 8688 aix*) 8689 lt_prog_compiler_wl='-Wl,' 8690 if test "$host_cpu" = ia64; then 8691 # AIX 5 now supports IA64 processor 8692 lt_prog_compiler_static='-Bstatic' 8693 else 8694 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8695 fi 8696 ;; 8697 8698 mingw* | cygwin* | pw32* | os2* | cegcc*) 8699 # This hack is so that the source file can tell whether it is being 8700 # built for inclusion in a dll (and should export symbols for example). 8701 lt_prog_compiler_pic='-DDLL_EXPORT' 8702 ;; 8703 8704 hpux9* | hpux10* | hpux11*) 8705 lt_prog_compiler_wl='-Wl,' 8706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8707 # not for PA HP-UX. 8708 case $host_cpu in 8709 hppa*64*|ia64*) 8710 # +Z the default 8711 ;; 8712 *) 8713 lt_prog_compiler_pic='+Z' 8714 ;; 8715 esac 8716 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8717 lt_prog_compiler_static='${wl}-a ${wl}archive' 8718 ;; 8719 8720 irix5* | irix6* | nonstopux*) 8721 lt_prog_compiler_wl='-Wl,' 8722 # PIC (with -KPIC) is the default. 8723 lt_prog_compiler_static='-non_shared' 8724 ;; 8725 8726 linux* | k*bsd*-gnu) 8727 case $cc_basename in 8728 # old Intel for x86_64 which still supported -KPIC. 8729 ecc*) 8730 lt_prog_compiler_wl='-Wl,' 8731 lt_prog_compiler_pic='-KPIC' 8732 lt_prog_compiler_static='-static' 8733 ;; 8734 # icc used to be incompatible with GCC. 8735 # ICC 10 doesn't accept -KPIC any more. 8736 icc* | ifort*) 8737 lt_prog_compiler_wl='-Wl,' 8738 lt_prog_compiler_pic='-fPIC' 8739 lt_prog_compiler_static='-static' 8740 ;; 8741 # Lahey Fortran 8.1. 8742 lf95*) 8743 lt_prog_compiler_wl='-Wl,' 8744 lt_prog_compiler_pic='--shared' 8745 lt_prog_compiler_static='--static' 8746 ;; 8747 pgcc* | pgf77* | pgf90* | pgf95*) 8748 # Portland Group compilers (*not* the Pentium gcc compiler, 8749 # which looks to be a dead project) 8750 lt_prog_compiler_wl='-Wl,' 8751 lt_prog_compiler_pic='-fpic' 8752 lt_prog_compiler_static='-Bstatic' 8753 ;; 8754 ccc*) 8755 lt_prog_compiler_wl='-Wl,' 8756 # All Alpha code is PIC. 8757 lt_prog_compiler_static='-non_shared' 8758 ;; 8759 xl*) 8760 # IBM XL C 8.0/Fortran 10.1 on PPC 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_pic='-qpic' 8763 lt_prog_compiler_static='-qstaticlink' 8764 ;; 8765 *) 8766 case `$CC -V 2>&1 | sed 5q` in 8767 *Sun\ C*) 8768 # Sun C 5.9 8769 lt_prog_compiler_pic='-KPIC' 8770 lt_prog_compiler_static='-Bstatic' 8771 lt_prog_compiler_wl='-Wl,' 8772 ;; 8773 *Sun\ F*) 8774 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8775 lt_prog_compiler_pic='-KPIC' 8776 lt_prog_compiler_static='-Bstatic' 8777 lt_prog_compiler_wl='' 8778 ;; 8779 esac 8780 ;; 8781 esac 8782 ;; 8783 8784 newsos6) 8785 lt_prog_compiler_pic='-KPIC' 8786 lt_prog_compiler_static='-Bstatic' 8787 ;; 8788 8789 *nto* | *qnx*) 8790 # QNX uses GNU C++, but need to define -shared option too, otherwise 8791 # it will coredump. 8792 lt_prog_compiler_pic='-fPIC -shared' 8793 ;; 8794 8795 osf3* | osf4* | osf5*) 8796 lt_prog_compiler_wl='-Wl,' 8797 # All OSF/1 code is PIC. 8798 lt_prog_compiler_static='-non_shared' 8799 ;; 8800 8801 rdos*) 8802 lt_prog_compiler_static='-non_shared' 8803 ;; 8804 8805 solaris*) 8806 lt_prog_compiler_pic='-KPIC' 8807 lt_prog_compiler_static='-Bstatic' 8808 case $cc_basename in 8809 f77* | f90* | f95*) 8810 lt_prog_compiler_wl='-Qoption ld ';; 8811 *) 8812 lt_prog_compiler_wl='-Wl,';; 8813 esac 8814 ;; 8815 8816 sunos4*) 8817 lt_prog_compiler_wl='-Qoption ld ' 8818 lt_prog_compiler_pic='-PIC' 8819 lt_prog_compiler_static='-Bstatic' 8820 ;; 8821 8822 sysv4 | sysv4.2uw2* | sysv4.3*) 8823 lt_prog_compiler_wl='-Wl,' 8824 lt_prog_compiler_pic='-KPIC' 8825 lt_prog_compiler_static='-Bstatic' 8826 ;; 8827 8828 sysv4*MP*) 8829 if test -d /usr/nec ;then 8830 lt_prog_compiler_pic='-Kconform_pic' 8831 lt_prog_compiler_static='-Bstatic' 8832 fi 8833 ;; 8834 8835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8836 lt_prog_compiler_wl='-Wl,' 8837 lt_prog_compiler_pic='-KPIC' 8838 lt_prog_compiler_static='-Bstatic' 8839 ;; 8840 8841 unicos*) 8842 lt_prog_compiler_wl='-Wl,' 8843 lt_prog_compiler_can_build_shared=no 8844 ;; 8845 8846 uts4*) 8847 lt_prog_compiler_pic='-pic' 8848 lt_prog_compiler_static='-Bstatic' 8849 ;; 8850 8851 *) 8852 lt_prog_compiler_can_build_shared=no 8853 ;; 8854 esac 8855 fi 8856 8857case $host_os in 8858 # For platforms which do not support PIC, -DPIC is meaningless: 8859 *djgpp*) 8860 lt_prog_compiler_pic= 8861 ;; 8862 *) 8863 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8864 ;; 8865esac 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8867$as_echo "$lt_prog_compiler_pic" >&6; } 8868 8869 8870 8871 8872 8873 8874# 8875# Check to make sure the PIC flag actually works. 8876# 8877if test -n "$lt_prog_compiler_pic"; then 8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8879$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8880if ${lt_cv_prog_compiler_pic_works+:} false; then : 8881 $as_echo_n "(cached) " >&6 8882else 8883 lt_cv_prog_compiler_pic_works=no 8884 ac_outfile=conftest.$ac_objext 8885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8886 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8887 # Insert the option either (1) after the last *FLAGS variable, or 8888 # (2) before a word containing "conftest.", or (3) at the end. 8889 # Note that $ac_compile itself does not contain backslashes and begins 8890 # with a dollar sign (not a hyphen), so the echo should work correctly. 8891 # The option is referenced via a variable to avoid confusing sed. 8892 lt_compile=`echo "$ac_compile" | $SED \ 8893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8895 -e 's:$: $lt_compiler_flag:'` 8896 (eval echo "\"\$as_me:8896: $lt_compile\"" >&5) 8897 (eval "$lt_compile" 2>conftest.err) 8898 ac_status=$? 8899 cat conftest.err >&5 8900 echo "$as_me:8900: \$? = $ac_status" >&5 8901 if (exit $ac_status) && test -s "$ac_outfile"; then 8902 # The compiler can only warn and ignore the option if not recognized 8903 # So say no if there are warnings other than the usual output. 8904 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8907 lt_cv_prog_compiler_pic_works=yes 8908 fi 8909 fi 8910 $RM conftest* 8911 8912fi 8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8914$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8915 8916if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8917 case $lt_prog_compiler_pic in 8918 "" | " "*) ;; 8919 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8920 esac 8921else 8922 lt_prog_compiler_pic= 8923 lt_prog_compiler_can_build_shared=no 8924fi 8925 8926fi 8927 8928 8929 8930 8931 8932 8933# 8934# Check to make sure the static flag actually works. 8935# 8936wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8938$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8939if ${lt_cv_prog_compiler_static_works+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 lt_cv_prog_compiler_static_works=no 8943 save_LDFLAGS="$LDFLAGS" 8944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8945 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8947 # The linker can only warn and ignore the option if not recognized 8948 # So say no if there are warnings 8949 if test -s conftest.err; then 8950 # Append any errors to the config.log. 8951 cat conftest.err 1>&5 8952 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8954 if diff conftest.exp conftest.er2 >/dev/null; then 8955 lt_cv_prog_compiler_static_works=yes 8956 fi 8957 else 8958 lt_cv_prog_compiler_static_works=yes 8959 fi 8960 fi 8961 $RM -r conftest* 8962 LDFLAGS="$save_LDFLAGS" 8963 8964fi 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8966$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8967 8968if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8969 : 8970else 8971 lt_prog_compiler_static= 8972fi 8973 8974 8975 8976 8977 8978 8979 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8981$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8982if ${lt_cv_prog_compiler_c_o+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 lt_cv_prog_compiler_c_o=no 8986 $RM -r conftest 2>/dev/null 8987 mkdir conftest 8988 cd conftest 8989 mkdir out 8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8991 8992 lt_compiler_flag="-o out/conftest2.$ac_objext" 8993 # Insert the option either (1) after the last *FLAGS variable, or 8994 # (2) before a word containing "conftest.", or (3) at the end. 8995 # Note that $ac_compile itself does not contain backslashes and begins 8996 # with a dollar sign (not a hyphen), so the echo should work correctly. 8997 lt_compile=`echo "$ac_compile" | $SED \ 8998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9000 -e 's:$: $lt_compiler_flag:'` 9001 (eval echo "\"\$as_me:9001: $lt_compile\"" >&5) 9002 (eval "$lt_compile" 2>out/conftest.err) 9003 ac_status=$? 9004 cat out/conftest.err >&5 9005 echo "$as_me:9005: \$? = $ac_status" >&5 9006 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9007 then 9008 # The compiler can only warn and ignore the option if not recognized 9009 # So say no if there are warnings 9010 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9013 lt_cv_prog_compiler_c_o=yes 9014 fi 9015 fi 9016 chmod u+w . 2>&5 9017 $RM conftest* 9018 # SGI C++ compiler will create directory out/ii_files/ for 9019 # template instantiation 9020 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9021 $RM out/* && rmdir out 9022 cd .. 9023 $RM -r conftest 9024 $RM conftest* 9025 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9028$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9029 9030 9031 9032 9033 9034 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9036$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9037if ${lt_cv_prog_compiler_c_o+:} false; then : 9038 $as_echo_n "(cached) " >&6 9039else 9040 lt_cv_prog_compiler_c_o=no 9041 $RM -r conftest 2>/dev/null 9042 mkdir conftest 9043 cd conftest 9044 mkdir out 9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9046 9047 lt_compiler_flag="-o out/conftest2.$ac_objext" 9048 # Insert the option either (1) after the last *FLAGS variable, or 9049 # (2) before a word containing "conftest.", or (3) at the end. 9050 # Note that $ac_compile itself does not contain backslashes and begins 9051 # with a dollar sign (not a hyphen), so the echo should work correctly. 9052 lt_compile=`echo "$ac_compile" | $SED \ 9053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9055 -e 's:$: $lt_compiler_flag:'` 9056 (eval echo "\"\$as_me:9056: $lt_compile\"" >&5) 9057 (eval "$lt_compile" 2>out/conftest.err) 9058 ac_status=$? 9059 cat out/conftest.err >&5 9060 echo "$as_me:9060: \$? = $ac_status" >&5 9061 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9062 then 9063 # The compiler can only warn and ignore the option if not recognized 9064 # So say no if there are warnings 9065 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9068 lt_cv_prog_compiler_c_o=yes 9069 fi 9070 fi 9071 chmod u+w . 2>&5 9072 $RM conftest* 9073 # SGI C++ compiler will create directory out/ii_files/ for 9074 # template instantiation 9075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9076 $RM out/* && rmdir out 9077 cd .. 9078 $RM -r conftest 9079 $RM conftest* 9080 9081fi 9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9083$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9084 9085 9086 9087 9088hard_links="nottested" 9089if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9090 # do not overwrite the value of need_locks provided by the user 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9092$as_echo_n "checking if we can lock with hard links... " >&6; } 9093 hard_links=yes 9094 $RM conftest* 9095 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9096 touch conftest.a 9097 ln conftest.a conftest.b 2>&5 || hard_links=no 9098 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9100$as_echo "$hard_links" >&6; } 9101 if test "$hard_links" = no; then 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9103$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9104 need_locks=warn 9105 fi 9106else 9107 need_locks=no 9108fi 9109 9110 9111 9112 9113 9114 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9116$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9117 9118 runpath_var= 9119 allow_undefined_flag= 9120 always_export_symbols=no 9121 archive_cmds= 9122 archive_expsym_cmds= 9123 compiler_needs_object=no 9124 enable_shared_with_static_runtimes=no 9125 export_dynamic_flag_spec= 9126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9127 hardcode_automatic=no 9128 hardcode_direct=no 9129 hardcode_direct_absolute=no 9130 hardcode_libdir_flag_spec= 9131 hardcode_libdir_flag_spec_ld= 9132 hardcode_libdir_separator= 9133 hardcode_minus_L=no 9134 hardcode_shlibpath_var=unsupported 9135 inherit_rpath=no 9136 link_all_deplibs=unknown 9137 module_cmds= 9138 module_expsym_cmds= 9139 old_archive_from_new_cmds= 9140 old_archive_from_expsyms_cmds= 9141 thread_safe_flag_spec= 9142 whole_archive_flag_spec= 9143 # include_expsyms should be a list of space-separated symbols to be *always* 9144 # included in the symbol list 9145 include_expsyms= 9146 # exclude_expsyms can be an extended regexp of symbols to exclude 9147 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9149 # as well as any symbol that contains `d'. 9150 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9152 # platforms (ab)use it in PIC code, but their linkers get confused if 9153 # the symbol is explicitly referenced. Since portable code cannot 9154 # rely on this symbol name, it's probably fine to never include it in 9155 # preloaded symbol tables. 9156 # Exclude shared library initialization/finalization symbols. 9157 extract_expsyms_cmds= 9158 9159 case $host_os in 9160 cygwin* | mingw* | pw32* | cegcc*) 9161 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9162 # When not using gcc, we currently assume that we are using 9163 # Microsoft Visual C++. 9164 if test "$GCC" != yes; then 9165 with_gnu_ld=no 9166 fi 9167 ;; 9168 interix*) 9169 # we just hope/assume this is gcc and not c89 (= MSVC++) 9170 with_gnu_ld=yes 9171 ;; 9172 openbsd*) 9173 with_gnu_ld=no 9174 ;; 9175 esac 9176 9177 ld_shlibs=yes 9178 if test "$with_gnu_ld" = yes; then 9179 # If archive_cmds runs LD, not CC, wlarc should be empty 9180 wlarc='${wl}' 9181 9182 # Set some defaults for GNU ld with shared library support. These 9183 # are reset later if shared libraries are not supported. Putting them 9184 # here allows them to be overridden if necessary. 9185 runpath_var=LD_RUN_PATH 9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9187 export_dynamic_flag_spec='${wl}--export-dynamic' 9188 # ancient GNU ld didn't support --whole-archive et. al. 9189 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9190 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9191 else 9192 whole_archive_flag_spec= 9193 fi 9194 supports_anon_versioning=no 9195 case `$LD -v 2>&1` in 9196 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9199 *\ 2.11.*) ;; # other 2.11 versions 9200 *) supports_anon_versioning=yes ;; 9201 esac 9202 9203 # See if GNU ld supports shared libraries. 9204 case $host_os in 9205 aix[3-9]*) 9206 # On AIX/PPC, the GNU linker is very broken 9207 if test "$host_cpu" != ia64; then 9208 ld_shlibs=no 9209 cat <<_LT_EOF 1>&2 9210 9211*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9212*** to be unable to reliably create shared libraries on AIX. 9213*** Therefore, libtool is disabling shared libraries support. If you 9214*** really care for shared libraries, you may want to modify your PATH 9215*** so that a non-GNU linker is found, and then restart. 9216 9217_LT_EOF 9218 fi 9219 ;; 9220 9221 amigaos*) 9222 case $host_cpu in 9223 powerpc) 9224 # see comment about AmigaOS4 .so support 9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9226 archive_expsym_cmds='' 9227 ;; 9228 m68k) 9229 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)' 9230 hardcode_libdir_flag_spec='-L$libdir' 9231 hardcode_minus_L=yes 9232 ;; 9233 esac 9234 ;; 9235 9236 beos*) 9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9238 allow_undefined_flag=unsupported 9239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9240 # support --undefined. This deserves some investigation. FIXME 9241 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9242 else 9243 ld_shlibs=no 9244 fi 9245 ;; 9246 9247 cygwin* | mingw* | pw32* | cegcc*) 9248 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9249 # as there is no search path for DLLs. 9250 hardcode_libdir_flag_spec='-L$libdir' 9251 allow_undefined_flag=unsupported 9252 always_export_symbols=no 9253 enable_shared_with_static_runtimes=yes 9254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9255 9256 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9258 # If the export-symbols file already is a .def file (1st line 9259 # is EXPORTS), use it as is; otherwise, prepend... 9260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9261 cp $export_symbols $output_objdir/$soname.def; 9262 else 9263 echo EXPORTS > $output_objdir/$soname.def; 9264 cat $export_symbols >> $output_objdir/$soname.def; 9265 fi~ 9266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9267 else 9268 ld_shlibs=no 9269 fi 9270 ;; 9271 9272 interix[3-9]*) 9273 hardcode_direct=no 9274 hardcode_shlibpath_var=no 9275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9276 export_dynamic_flag_spec='${wl}-E' 9277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9278 # Instead, shared libraries are loaded at an image base (0x10000000 by 9279 # default) and relocated if they conflict, which is a slow very memory 9280 # consuming and fragmenting process. To avoid this, we pick a random, 9281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9282 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9284 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' 9285 ;; 9286 9287 gnu* | linux* | tpf* | k*bsd*-gnu) 9288 tmp_diet=no 9289 if test "$host_os" = linux-dietlibc; then 9290 case $cc_basename in 9291 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9292 esac 9293 fi 9294 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9295 && test "$tmp_diet" = no 9296 then 9297 tmp_addflag= 9298 tmp_sharedflag='-shared' 9299 case $cc_basename,$host_cpu in 9300 pgcc*) # Portland Group C compiler 9301 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' 9302 tmp_addflag=' $pic_flag' 9303 ;; 9304 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9305 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' 9306 tmp_addflag=' $pic_flag -Mnomain' ;; 9307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9308 tmp_addflag=' -i_dynamic' ;; 9309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9310 tmp_addflag=' -i_dynamic -nofor_main' ;; 9311 ifc* | ifort*) # Intel Fortran compiler 9312 tmp_addflag=' -nofor_main' ;; 9313 lf95*) # Lahey Fortran 8.1 9314 whole_archive_flag_spec= 9315 tmp_sharedflag='--shared' ;; 9316 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9317 tmp_sharedflag='-qmkshrobj' 9318 tmp_addflag= ;; 9319 esac 9320 case `$CC -V 2>&1 | sed 5q` in 9321 *Sun\ C*) # Sun C 5.9 9322 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' 9323 compiler_needs_object=yes 9324 tmp_sharedflag='-G' ;; 9325 *Sun\ F*) # Sun Fortran 8.3 9326 tmp_sharedflag='-G' ;; 9327 esac 9328 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9329 9330 if test "x$supports_anon_versioning" = xyes; then 9331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9333 echo "local: *; };" >> $output_objdir/$libname.ver~ 9334 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9335 fi 9336 9337 case $cc_basename in 9338 xlf*) 9339 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9340 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9341 hardcode_libdir_flag_spec= 9342 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9343 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9344 if test "x$supports_anon_versioning" = xyes; then 9345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9347 echo "local: *; };" >> $output_objdir/$libname.ver~ 9348 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9349 fi 9350 ;; 9351 esac 9352 else 9353 ld_shlibs=no 9354 fi 9355 ;; 9356 9357 netbsd*) 9358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9359 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9360 wlarc= 9361 else 9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9364 fi 9365 ;; 9366 9367 solaris*) 9368 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9369 ld_shlibs=no 9370 cat <<_LT_EOF 1>&2 9371 9372*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9373*** create shared libraries on Solaris systems. Therefore, libtool 9374*** is disabling shared libraries support. We urge you to upgrade GNU 9375*** binutils to release 2.9.1 or newer. Another option is to modify 9376*** your PATH or compiler configuration so that the native linker is 9377*** used, and then restart. 9378 9379_LT_EOF 9380 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9383 else 9384 ld_shlibs=no 9385 fi 9386 ;; 9387 9388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9389 case `$LD -v 2>&1` in 9390 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9391 ld_shlibs=no 9392 cat <<_LT_EOF 1>&2 9393 9394*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9395*** reliably create shared libraries on SCO systems. Therefore, libtool 9396*** is disabling shared libraries support. We urge you to upgrade GNU 9397*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9398*** your PATH or compiler configuration so that the native linker is 9399*** used, and then restart. 9400 9401_LT_EOF 9402 ;; 9403 *) 9404 # For security reasons, it is highly recommended that you always 9405 # use absolute paths for naming shared libraries, and exclude the 9406 # DT_RUNPATH tag from executables and libraries. But doing so 9407 # requires that you compile everything twice, which is a pain. 9408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9412 else 9413 ld_shlibs=no 9414 fi 9415 ;; 9416 esac 9417 ;; 9418 9419 sunos4*) 9420 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9421 wlarc= 9422 hardcode_direct=yes 9423 hardcode_shlibpath_var=no 9424 ;; 9425 9426 *) 9427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9430 else 9431 ld_shlibs=no 9432 fi 9433 ;; 9434 esac 9435 9436 if test "$ld_shlibs" = no; then 9437 runpath_var= 9438 hardcode_libdir_flag_spec= 9439 export_dynamic_flag_spec= 9440 whole_archive_flag_spec= 9441 fi 9442 else 9443 # PORTME fill in a description of your system's linker (not GNU ld) 9444 case $host_os in 9445 aix3*) 9446 allow_undefined_flag=unsupported 9447 always_export_symbols=yes 9448 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' 9449 # Note: this linker hardcodes the directories in LIBPATH if there 9450 # are no directories specified by -L. 9451 hardcode_minus_L=yes 9452 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9453 # Neither direct hardcoding nor static linking is supported with a 9454 # broken collect2. 9455 hardcode_direct=unsupported 9456 fi 9457 ;; 9458 9459 aix[4-9]*) 9460 if test "$host_cpu" = ia64; then 9461 # On IA64, the linker does run time linking by default, so we don't 9462 # have to do anything special. 9463 aix_use_runtimelinking=no 9464 exp_sym_flag='-Bexport' 9465 no_entry_flag="" 9466 else 9467 # If we're using GNU nm, then we don't want the "-C" option. 9468 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9470 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' 9471 else 9472 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' 9473 fi 9474 aix_use_runtimelinking=no 9475 9476 # Test if we are trying to use run time linking or normal 9477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9478 # need to do runtime linking. 9479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9480 for ld_flag in $LDFLAGS; do 9481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9482 aix_use_runtimelinking=yes 9483 break 9484 fi 9485 done 9486 ;; 9487 esac 9488 9489 exp_sym_flag='-bexport' 9490 no_entry_flag='-bnoentry' 9491 fi 9492 9493 # When large executables or shared objects are built, AIX ld can 9494 # have problems creating the table of contents. If linking a library 9495 # or program results in "error TOC overflow" add -mminimal-toc to 9496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9498 9499 archive_cmds='' 9500 hardcode_direct=yes 9501 hardcode_direct_absolute=yes 9502 hardcode_libdir_separator=':' 9503 link_all_deplibs=yes 9504 file_list_spec='${wl}-f,' 9505 9506 if test "$GCC" = yes; then 9507 case $host_os in aix4.[012]|aix4.[012].*) 9508 # We only want to do this on AIX 4.2 and lower, the check 9509 # below for broken collect2 doesn't work under 4.3+ 9510 collect2name=`${CC} -print-prog-name=collect2` 9511 if test -f "$collect2name" && 9512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9513 then 9514 # We have reworked collect2 9515 : 9516 else 9517 # We have old collect2 9518 hardcode_direct=unsupported 9519 # It fails to find uninstalled libraries when the uninstalled 9520 # path is not listed in the libpath. Setting hardcode_minus_L 9521 # to unsupported forces relinking 9522 hardcode_minus_L=yes 9523 hardcode_libdir_flag_spec='-L$libdir' 9524 hardcode_libdir_separator= 9525 fi 9526 ;; 9527 esac 9528 shared_flag='-shared' 9529 if test "$aix_use_runtimelinking" = yes; then 9530 shared_flag="$shared_flag "'${wl}-G' 9531 fi 9532 else 9533 # not using gcc 9534 if test "$host_cpu" = ia64; then 9535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9536 # chokes on -Wl,-G. The following line is correct: 9537 shared_flag='-G' 9538 else 9539 if test "$aix_use_runtimelinking" = yes; then 9540 shared_flag='${wl}-G' 9541 else 9542 shared_flag='${wl}-bM:SRE' 9543 fi 9544 fi 9545 fi 9546 9547 export_dynamic_flag_spec='${wl}-bexpall' 9548 # It seems that -bexpall does not export symbols beginning with 9549 # underscore (_), so it is better to generate a list of symbols to export. 9550 always_export_symbols=yes 9551 if test "$aix_use_runtimelinking" = yes; then 9552 # Warning - without using the other runtime loading flags (-brtl), 9553 # -berok will link without error, but may produce a broken library. 9554 allow_undefined_flag='-berok' 9555 # Determine the default libpath from the value encoded in an 9556 # empty executable. 9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9558/* end confdefs.h. */ 9559 9560int 9561main () 9562{ 9563 9564 ; 9565 return 0; 9566} 9567_ACEOF 9568if ac_fn_c_try_link "$LINENO"; then : 9569 9570lt_aix_libpath_sed=' 9571 /Import File Strings/,/^$/ { 9572 /^0/ { 9573 s/^0 *\(.*\)$/\1/ 9574 p 9575 } 9576 }' 9577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9578# Check for a 64-bit object if we didn't find anything. 9579if test -z "$aix_libpath"; then 9580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9581fi 9582fi 9583rm -f core conftest.err conftest.$ac_objext \ 9584 conftest$ac_exeext conftest.$ac_ext 9585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9586 9587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9588 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" 9589 else 9590 if test "$host_cpu" = ia64; then 9591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9592 allow_undefined_flag="-z nodefs" 9593 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" 9594 else 9595 # Determine the default libpath from the value encoded in an 9596 # empty executable. 9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9598/* end confdefs.h. */ 9599 9600int 9601main () 9602{ 9603 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608if ac_fn_c_try_link "$LINENO"; then : 9609 9610lt_aix_libpath_sed=' 9611 /Import File Strings/,/^$/ { 9612 /^0/ { 9613 s/^0 *\(.*\)$/\1/ 9614 p 9615 } 9616 }' 9617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9618# Check for a 64-bit object if we didn't find anything. 9619if test -z "$aix_libpath"; then 9620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9621fi 9622fi 9623rm -f core conftest.err conftest.$ac_objext \ 9624 conftest$ac_exeext conftest.$ac_ext 9625if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9626 9627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9628 # Warning - without using the other run time loading flags, 9629 # -berok will link without error, but may produce a broken library. 9630 no_undefined_flag=' ${wl}-bernotok' 9631 allow_undefined_flag=' ${wl}-berok' 9632 # Exported symbols can be pulled into shared objects from archives 9633 whole_archive_flag_spec='$convenience' 9634 archive_cmds_need_lc=yes 9635 # This is similar to how AIX traditionally builds its shared libraries. 9636 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' 9637 fi 9638 fi 9639 ;; 9640 9641 amigaos*) 9642 case $host_cpu in 9643 powerpc) 9644 # see comment about AmigaOS4 .so support 9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9646 archive_expsym_cmds='' 9647 ;; 9648 m68k) 9649 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)' 9650 hardcode_libdir_flag_spec='-L$libdir' 9651 hardcode_minus_L=yes 9652 ;; 9653 esac 9654 ;; 9655 9656 bsdi[45]*) 9657 export_dynamic_flag_spec=-rdynamic 9658 ;; 9659 9660 cygwin* | mingw* | pw32* | cegcc*) 9661 # When not using gcc, we currently assume that we are using 9662 # Microsoft Visual C++. 9663 # hardcode_libdir_flag_spec is actually meaningless, as there is 9664 # no search path for DLLs. 9665 hardcode_libdir_flag_spec=' ' 9666 allow_undefined_flag=unsupported 9667 # Tell ltmain to make .lib files, not .a files. 9668 libext=lib 9669 # Tell ltmain to make .dll files, not .so files. 9670 shrext_cmds=".dll" 9671 # FIXME: Setting linknames here is a bad hack. 9672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9673 # The linker will automatically build a .lib file if we build a DLL. 9674 old_archive_from_new_cmds='true' 9675 # FIXME: Should let the user specify the lib program. 9676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9677 fix_srcfile_path='`cygpath -w "$srcfile"`' 9678 enable_shared_with_static_runtimes=yes 9679 ;; 9680 9681 darwin* | rhapsody*) 9682 9683 9684 archive_cmds_need_lc=no 9685 hardcode_direct=no 9686 hardcode_automatic=yes 9687 hardcode_shlibpath_var=unsupported 9688 whole_archive_flag_spec='' 9689 link_all_deplibs=yes 9690 allow_undefined_flag="$_lt_dar_allow_undefined" 9691 case $cc_basename in 9692 ifort*) _lt_dar_can_shared=yes ;; 9693 *) _lt_dar_can_shared=$GCC ;; 9694 esac 9695 if test "$_lt_dar_can_shared" = "yes"; then 9696 output_verbose_link_cmd=echo 9697 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9698 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9699 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}" 9700 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}" 9701 9702 else 9703 ld_shlibs=no 9704 fi 9705 9706 ;; 9707 9708 dgux*) 9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9710 hardcode_libdir_flag_spec='-L$libdir' 9711 hardcode_shlibpath_var=no 9712 ;; 9713 9714 freebsd1*) 9715 ld_shlibs=no 9716 ;; 9717 9718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9719 # support. Future versions do this automatically, but an explicit c++rt0.o 9720 # does not break anything, and helps significantly (at the cost of a little 9721 # extra space). 9722 freebsd2.2*) 9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9724 hardcode_libdir_flag_spec='-R$libdir' 9725 hardcode_direct=yes 9726 hardcode_shlibpath_var=no 9727 ;; 9728 9729 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9730 freebsd2*) 9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9732 hardcode_direct=yes 9733 hardcode_minus_L=yes 9734 hardcode_shlibpath_var=no 9735 ;; 9736 9737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9738 freebsd* | dragonfly*) 9739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9740 hardcode_libdir_flag_spec='-R$libdir' 9741 hardcode_direct=yes 9742 hardcode_shlibpath_var=no 9743 ;; 9744 9745 hpux9*) 9746 if test "$GCC" = yes; then 9747 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' 9748 else 9749 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' 9750 fi 9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9752 hardcode_libdir_separator=: 9753 hardcode_direct=yes 9754 9755 # hardcode_minus_L: Not really in the search PATH, 9756 # but as the default location of the library. 9757 hardcode_minus_L=yes 9758 export_dynamic_flag_spec='${wl}-E' 9759 ;; 9760 9761 hpux10*) 9762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9764 else 9765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9766 fi 9767 if test "$with_gnu_ld" = no; then 9768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9769 hardcode_libdir_flag_spec_ld='+b $libdir' 9770 hardcode_libdir_separator=: 9771 hardcode_direct=yes 9772 hardcode_direct_absolute=yes 9773 export_dynamic_flag_spec='${wl}-E' 9774 # hardcode_minus_L: Not really in the search PATH, 9775 # but as the default location of the library. 9776 hardcode_minus_L=yes 9777 fi 9778 ;; 9779 9780 hpux11*) 9781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9782 case $host_cpu in 9783 hppa*64*) 9784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9785 ;; 9786 ia64*) 9787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9788 ;; 9789 *) 9790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9791 ;; 9792 esac 9793 else 9794 case $host_cpu in 9795 hppa*64*) 9796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9797 ;; 9798 ia64*) 9799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9800 ;; 9801 *) 9802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9803 ;; 9804 esac 9805 fi 9806 if test "$with_gnu_ld" = no; then 9807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9808 hardcode_libdir_separator=: 9809 9810 case $host_cpu in 9811 hppa*64*|ia64*) 9812 hardcode_direct=no 9813 hardcode_shlibpath_var=no 9814 ;; 9815 *) 9816 hardcode_direct=yes 9817 hardcode_direct_absolute=yes 9818 export_dynamic_flag_spec='${wl}-E' 9819 9820 # hardcode_minus_L: Not really in the search PATH, 9821 # but as the default location of the library. 9822 hardcode_minus_L=yes 9823 ;; 9824 esac 9825 fi 9826 ;; 9827 9828 irix5* | irix6* | nonstopux*) 9829 if test "$GCC" = yes; then 9830 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' 9831 # Try to use the -exported_symbol ld option, if it does not 9832 # work, assume that -exports_file does not work either and 9833 # implicitly export all symbols. 9834 save_LDFLAGS="$LDFLAGS" 9835 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int foo(void) {} 9839_ACEOF 9840if ac_fn_c_try_link "$LINENO"; then : 9841 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' 9842 9843fi 9844rm -f core conftest.err conftest.$ac_objext \ 9845 conftest$ac_exeext conftest.$ac_ext 9846 LDFLAGS="$save_LDFLAGS" 9847 else 9848 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' 9849 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' 9850 fi 9851 archive_cmds_need_lc='no' 9852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9853 hardcode_libdir_separator=: 9854 inherit_rpath=yes 9855 link_all_deplibs=yes 9856 ;; 9857 9858 netbsd*) 9859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9861 else 9862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9863 fi 9864 hardcode_libdir_flag_spec='-R$libdir' 9865 hardcode_direct=yes 9866 hardcode_shlibpath_var=no 9867 ;; 9868 9869 newsos6) 9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9871 hardcode_direct=yes 9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9873 hardcode_libdir_separator=: 9874 hardcode_shlibpath_var=no 9875 ;; 9876 9877 *nto* | *qnx*) 9878 ;; 9879 9880 openbsd*) 9881 if test -f /usr/libexec/ld.so; then 9882 hardcode_direct=yes 9883 hardcode_shlibpath_var=no 9884 hardcode_direct_absolute=yes 9885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9889 export_dynamic_flag_spec='${wl}-E' 9890 else 9891 case $host_os in 9892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9894 hardcode_libdir_flag_spec='-R$libdir' 9895 ;; 9896 *) 9897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9899 ;; 9900 esac 9901 fi 9902 else 9903 ld_shlibs=no 9904 fi 9905 ;; 9906 9907 os2*) 9908 hardcode_libdir_flag_spec='-L$libdir' 9909 hardcode_minus_L=yes 9910 allow_undefined_flag=unsupported 9911 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' 9912 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9913 ;; 9914 9915 osf3*) 9916 if test "$GCC" = yes; then 9917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9918 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' 9919 else 9920 allow_undefined_flag=' -expect_unresolved \*' 9921 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' 9922 fi 9923 archive_cmds_need_lc='no' 9924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9925 hardcode_libdir_separator=: 9926 ;; 9927 9928 osf4* | osf5*) # as osf3* with the addition of -msym flag 9929 if test "$GCC" = yes; then 9930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9931 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' 9932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9933 else 9934 allow_undefined_flag=' -expect_unresolved \*' 9935 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' 9936 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~ 9937 $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' 9938 9939 # Both c and cxx compiler support -rpath directly 9940 hardcode_libdir_flag_spec='-rpath $libdir' 9941 fi 9942 archive_cmds_need_lc='no' 9943 hardcode_libdir_separator=: 9944 ;; 9945 9946 solaris*) 9947 no_undefined_flag=' -z defs' 9948 if test "$GCC" = yes; then 9949 wlarc='${wl}' 9950 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9952 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9953 else 9954 case `$CC -V 2>&1` in 9955 *"Compilers 5.0"*) 9956 wlarc='' 9957 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9960 ;; 9961 *) 9962 wlarc='${wl}' 9963 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9965 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9966 ;; 9967 esac 9968 fi 9969 hardcode_libdir_flag_spec='-R$libdir' 9970 hardcode_shlibpath_var=no 9971 case $host_os in 9972 solaris2.[0-5] | solaris2.[0-5].*) ;; 9973 *) 9974 # The compiler driver will combine and reorder linker options, 9975 # but understands `-z linker_flag'. GCC discards it without `$wl', 9976 # but is careful enough not to reorder. 9977 # Supported since Solaris 2.6 (maybe 2.5.1?) 9978 if test "$GCC" = yes; then 9979 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9980 else 9981 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9982 fi 9983 ;; 9984 esac 9985 link_all_deplibs=yes 9986 ;; 9987 9988 sunos4*) 9989 if test "x$host_vendor" = xsequent; then 9990 # Use $CC to link under sequent, because it throws in some extra .o 9991 # files that make .init and .fini sections work. 9992 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9993 else 9994 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9995 fi 9996 hardcode_libdir_flag_spec='-L$libdir' 9997 hardcode_direct=yes 9998 hardcode_minus_L=yes 9999 hardcode_shlibpath_var=no 10000 ;; 10001 10002 sysv4) 10003 case $host_vendor in 10004 sni) 10005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10006 hardcode_direct=yes # is this really true??? 10007 ;; 10008 siemens) 10009 ## LD is ld it makes a PLAMLIB 10010 ## CC just makes a GrossModule. 10011 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10012 reload_cmds='$CC -r -o $output$reload_objs' 10013 hardcode_direct=no 10014 ;; 10015 motorola) 10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10017 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10018 ;; 10019 esac 10020 runpath_var='LD_RUN_PATH' 10021 hardcode_shlibpath_var=no 10022 ;; 10023 10024 sysv4.3*) 10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10026 hardcode_shlibpath_var=no 10027 export_dynamic_flag_spec='-Bexport' 10028 ;; 10029 10030 sysv4*MP*) 10031 if test -d /usr/nec; then 10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10033 hardcode_shlibpath_var=no 10034 runpath_var=LD_RUN_PATH 10035 hardcode_runpath_var=yes 10036 ld_shlibs=yes 10037 fi 10038 ;; 10039 10040 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10041 no_undefined_flag='${wl}-z,text' 10042 archive_cmds_need_lc=no 10043 hardcode_shlibpath_var=no 10044 runpath_var='LD_RUN_PATH' 10045 10046 if test "$GCC" = yes; then 10047 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10048 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10049 else 10050 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10051 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10052 fi 10053 ;; 10054 10055 sysv5* | sco3.2v5* | sco5v6*) 10056 # Note: We can NOT use -z defs as we might desire, because we do not 10057 # link with -lc, and that would cause any symbols used from libc to 10058 # always be unresolved, which means just about no library would 10059 # ever link correctly. If we're not using GNU ld we use -z text 10060 # though, which does catch some bad symbols but isn't as heavy-handed 10061 # as -z defs. 10062 no_undefined_flag='${wl}-z,text' 10063 allow_undefined_flag='${wl}-z,nodefs' 10064 archive_cmds_need_lc=no 10065 hardcode_shlibpath_var=no 10066 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10067 hardcode_libdir_separator=':' 10068 link_all_deplibs=yes 10069 export_dynamic_flag_spec='${wl}-Bexport' 10070 runpath_var='LD_RUN_PATH' 10071 10072 if test "$GCC" = yes; then 10073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10075 else 10076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10078 fi 10079 ;; 10080 10081 uts4*) 10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10083 hardcode_libdir_flag_spec='-L$libdir' 10084 hardcode_shlibpath_var=no 10085 ;; 10086 10087 *) 10088 ld_shlibs=no 10089 ;; 10090 esac 10091 10092 if test x$host_vendor = xsni; then 10093 case $host in 10094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10095 export_dynamic_flag_spec='${wl}-Blargedynsym' 10096 ;; 10097 esac 10098 fi 10099 fi 10100 10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10102$as_echo "$ld_shlibs" >&6; } 10103test "$ld_shlibs" = no && can_build_shared=no 10104 10105with_gnu_ld=$with_gnu_ld 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121# 10122# Do we need to explicitly link libc? 10123# 10124case "x$archive_cmds_need_lc" in 10125x|xyes) 10126 # Assume -lc should be added 10127 archive_cmds_need_lc=yes 10128 10129 if test "$enable_shared" = yes && test "$GCC" = yes; then 10130 case $archive_cmds in 10131 *'~'*) 10132 # FIXME: we may have to deal with multi-command sequences. 10133 ;; 10134 '$CC '*) 10135 # Test whether the compiler implicitly links with -lc since on some 10136 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10137 # to ld, don't add -lc before -lgcc. 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10139$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10140 $RM conftest* 10141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10142 10143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10144 (eval $ac_compile) 2>&5 10145 ac_status=$? 10146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10147 test $ac_status = 0; } 2>conftest.err; then 10148 soname=conftest 10149 lib=conftest 10150 libobjs=conftest.$ac_objext 10151 deplibs= 10152 wl=$lt_prog_compiler_wl 10153 pic_flag=$lt_prog_compiler_pic 10154 compiler_flags=-v 10155 linker_flags=-v 10156 verstring= 10157 output_objdir=. 10158 libname=conftest 10159 lt_save_allow_undefined_flag=$allow_undefined_flag 10160 allow_undefined_flag= 10161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10162 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10163 ac_status=$? 10164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10165 test $ac_status = 0; } 10166 then 10167 archive_cmds_need_lc=no 10168 else 10169 archive_cmds_need_lc=yes 10170 fi 10171 allow_undefined_flag=$lt_save_allow_undefined_flag 10172 else 10173 cat conftest.err 1>&5 10174 fi 10175 $RM conftest* 10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10177$as_echo "$archive_cmds_need_lc" >&6; } 10178 ;; 10179 esac 10180 fi 10181 ;; 10182esac 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10341$as_echo_n "checking dynamic linker characteristics... " >&6; } 10342 10343if test "$GCC" = yes; then 10344 case $host_os in 10345 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10346 *) lt_awk_arg="/^libraries:/" ;; 10347 esac 10348 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10349 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10350 # if the path contains ";" then we assume it to be the separator 10351 # otherwise default to the standard path separator (i.e. ":") - it is 10352 # assumed that no part of a normal pathname contains ";" but that should 10353 # okay in the real world where ";" in dirpaths is itself problematic. 10354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10355 else 10356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10357 fi 10358 # Ok, now we have the path, separated by spaces, we can step through it 10359 # and add multilib dir if necessary. 10360 lt_tmp_lt_search_path_spec= 10361 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10362 for lt_sys_path in $lt_search_path_spec; do 10363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10365 else 10366 test -d "$lt_sys_path" && \ 10367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10368 fi 10369 done 10370 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10371BEGIN {RS=" "; FS="/|\n";} { 10372 lt_foo=""; 10373 lt_count=0; 10374 for (lt_i = NF; lt_i > 0; lt_i--) { 10375 if ($lt_i != "" && $lt_i != ".") { 10376 if ($lt_i == "..") { 10377 lt_count++; 10378 } else { 10379 if (lt_count == 0) { 10380 lt_foo="/" $lt_i lt_foo; 10381 } else { 10382 lt_count--; 10383 } 10384 } 10385 } 10386 } 10387 if (lt_foo != "") { lt_freq[lt_foo]++; } 10388 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10389}'` 10390 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10391else 10392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10393fi 10394library_names_spec= 10395libname_spec='lib$name' 10396soname_spec= 10397shrext_cmds=".so" 10398postinstall_cmds= 10399postuninstall_cmds= 10400finish_cmds= 10401finish_eval= 10402shlibpath_var= 10403shlibpath_overrides_runpath=unknown 10404version_type=none 10405dynamic_linker="$host_os ld.so" 10406sys_lib_dlsearch_path_spec="/lib /usr/lib" 10407need_lib_prefix=unknown 10408hardcode_into_libs=no 10409 10410# when you set need_version to no, make sure it does not cause -set_version 10411# flags to be left without arguments 10412need_version=unknown 10413 10414case $host_os in 10415aix3*) 10416 version_type=linux 10417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10418 shlibpath_var=LIBPATH 10419 10420 # AIX 3 has no versioning support, so we append a major version to the name. 10421 soname_spec='${libname}${release}${shared_ext}$major' 10422 ;; 10423 10424aix[4-9]*) 10425 version_type=linux 10426 need_lib_prefix=no 10427 need_version=no 10428 hardcode_into_libs=yes 10429 if test "$host_cpu" = ia64; then 10430 # AIX 5 supports IA64 10431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10432 shlibpath_var=LD_LIBRARY_PATH 10433 else 10434 # With GCC up to 2.95.x, collect2 would create an import file 10435 # for dependence libraries. The import file would start with 10436 # the line `#! .'. This would cause the generated library to 10437 # depend on `.', always an invalid library. This was fixed in 10438 # development snapshots of GCC prior to 3.0. 10439 case $host_os in 10440 aix4 | aix4.[01] | aix4.[01].*) 10441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10442 echo ' yes ' 10443 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10444 : 10445 else 10446 can_build_shared=no 10447 fi 10448 ;; 10449 esac 10450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10451 # soname into executable. Probably we can add versioning support to 10452 # collect2, so additional links can be useful in future. 10453 if test "$aix_use_runtimelinking" = yes; then 10454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10455 # instead of lib<name>.a to let people know that these are not 10456 # typical AIX shared libraries. 10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10458 else 10459 # We preserve .a as extension for shared libraries through AIX4.2 10460 # and later when we are not doing run time linking. 10461 library_names_spec='${libname}${release}.a $libname.a' 10462 soname_spec='${libname}${release}${shared_ext}$major' 10463 fi 10464 shlibpath_var=LIBPATH 10465 fi 10466 ;; 10467 10468amigaos*) 10469 case $host_cpu in 10470 powerpc) 10471 # Since July 2007 AmigaOS4 officially supports .so libraries. 10472 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10474 ;; 10475 m68k) 10476 library_names_spec='$libname.ixlibrary $libname.a' 10477 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10478 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' 10479 ;; 10480 esac 10481 ;; 10482 10483beos*) 10484 library_names_spec='${libname}${shared_ext}' 10485 dynamic_linker="$host_os ld.so" 10486 shlibpath_var=LIBRARY_PATH 10487 ;; 10488 10489bsdi[45]*) 10490 version_type=linux 10491 need_version=no 10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10493 soname_spec='${libname}${release}${shared_ext}$major' 10494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10495 shlibpath_var=LD_LIBRARY_PATH 10496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10498 # the default ld.so.conf also contains /usr/contrib/lib and 10499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10500 # libtool to hard-code these into programs 10501 ;; 10502 10503cygwin* | mingw* | pw32* | cegcc*) 10504 version_type=windows 10505 shrext_cmds=".dll" 10506 need_version=no 10507 need_lib_prefix=no 10508 10509 case $GCC,$host_os in 10510 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10511 library_names_spec='$libname.dll.a' 10512 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10513 postinstall_cmds='base_file=`basename \${file}`~ 10514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10515 dldir=$destdir/`dirname \$dlpath`~ 10516 test -d \$dldir || mkdir -p \$dldir~ 10517 $install_prog $dir/$dlname \$dldir/$dlname~ 10518 chmod a+x \$dldir/$dlname~ 10519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10521 fi' 10522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10523 dlpath=$dir/\$dldll~ 10524 $RM \$dlpath' 10525 shlibpath_overrides_runpath=yes 10526 10527 case $host_os in 10528 cygwin*) 10529 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10531 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10532 ;; 10533 mingw* | cegcc*) 10534 # MinGW DLLs use traditional 'lib' prefix 10535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10536 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10537 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10538 # It is most probably a Windows format PATH printed by 10539 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10540 # path with ; separators, and with drive letters. We can handle the 10541 # drive letters (cygwin fileutils understands them), so leave them, 10542 # especially as we might pass files found there to a mingw objdump, 10543 # which wouldn't understand a cygwinified path. Ahh. 10544 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10545 else 10546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10547 fi 10548 ;; 10549 pw32*) 10550 # pw32 DLLs use 'pw' prefix rather than 'lib' 10551 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10552 ;; 10553 esac 10554 ;; 10555 10556 *) 10557 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10558 ;; 10559 esac 10560 dynamic_linker='Win32 ld.exe' 10561 # FIXME: first we should search . and the directory the executable is in 10562 shlibpath_var=PATH 10563 ;; 10564 10565darwin* | rhapsody*) 10566 dynamic_linker="$host_os dyld" 10567 version_type=darwin 10568 need_lib_prefix=no 10569 need_version=no 10570 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10571 soname_spec='${libname}${release}${major}$shared_ext' 10572 shlibpath_overrides_runpath=yes 10573 shlibpath_var=DYLD_LIBRARY_PATH 10574 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10575 10576 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10578 ;; 10579 10580dgux*) 10581 version_type=linux 10582 need_lib_prefix=no 10583 need_version=no 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10585 soname_spec='${libname}${release}${shared_ext}$major' 10586 shlibpath_var=LD_LIBRARY_PATH 10587 ;; 10588 10589freebsd1*) 10590 dynamic_linker=no 10591 ;; 10592 10593freebsd* | dragonfly*) 10594 # DragonFly does not have aout. When/if they implement a new 10595 # versioning mechanism, adjust this. 10596 if test -x /usr/bin/objformat; then 10597 objformat=`/usr/bin/objformat` 10598 else 10599 case $host_os in 10600 freebsd[123]*) objformat=aout ;; 10601 *) objformat=elf ;; 10602 esac 10603 fi 10604 version_type=freebsd-$objformat 10605 case $version_type in 10606 freebsd-elf*) 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10608 need_version=no 10609 need_lib_prefix=no 10610 ;; 10611 freebsd-*) 10612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10613 need_version=yes 10614 ;; 10615 esac 10616 shlibpath_var=LD_LIBRARY_PATH 10617 case $host_os in 10618 freebsd2*) 10619 shlibpath_overrides_runpath=yes 10620 ;; 10621 freebsd3.[01]* | freebsdelf3.[01]*) 10622 shlibpath_overrides_runpath=yes 10623 hardcode_into_libs=yes 10624 ;; 10625 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10626 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10627 shlibpath_overrides_runpath=no 10628 hardcode_into_libs=yes 10629 ;; 10630 *) # from 4.6 on, and DragonFly 10631 shlibpath_overrides_runpath=yes 10632 hardcode_into_libs=yes 10633 ;; 10634 esac 10635 ;; 10636 10637gnu*) 10638 version_type=linux 10639 need_lib_prefix=no 10640 need_version=no 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10642 soname_spec='${libname}${release}${shared_ext}$major' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 hardcode_into_libs=yes 10645 ;; 10646 10647hpux9* | hpux10* | hpux11*) 10648 # Give a soname corresponding to the major version so that dld.sl refuses to 10649 # link against other versions. 10650 version_type=sunos 10651 need_lib_prefix=no 10652 need_version=no 10653 case $host_cpu in 10654 ia64*) 10655 shrext_cmds='.so' 10656 hardcode_into_libs=yes 10657 dynamic_linker="$host_os dld.so" 10658 shlibpath_var=LD_LIBRARY_PATH 10659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10661 soname_spec='${libname}${release}${shared_ext}$major' 10662 if test "X$HPUX_IA64_MODE" = X32; then 10663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10664 else 10665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10666 fi 10667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10668 ;; 10669 hppa*64*) 10670 shrext_cmds='.sl' 10671 hardcode_into_libs=yes 10672 dynamic_linker="$host_os dld.sl" 10673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10676 soname_spec='${libname}${release}${shared_ext}$major' 10677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10679 ;; 10680 *) 10681 shrext_cmds='.sl' 10682 dynamic_linker="$host_os dld.sl" 10683 shlibpath_var=SHLIB_PATH 10684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10686 soname_spec='${libname}${release}${shared_ext}$major' 10687 ;; 10688 esac 10689 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10690 postinstall_cmds='chmod 555 $lib' 10691 ;; 10692 10693interix[3-9]*) 10694 version_type=linux 10695 need_lib_prefix=no 10696 need_version=no 10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10698 soname_spec='${libname}${release}${shared_ext}$major' 10699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10700 shlibpath_var=LD_LIBRARY_PATH 10701 shlibpath_overrides_runpath=no 10702 hardcode_into_libs=yes 10703 ;; 10704 10705irix5* | irix6* | nonstopux*) 10706 case $host_os in 10707 nonstopux*) version_type=nonstopux ;; 10708 *) 10709 if test "$lt_cv_prog_gnu_ld" = yes; then 10710 version_type=linux 10711 else 10712 version_type=irix 10713 fi ;; 10714 esac 10715 need_lib_prefix=no 10716 need_version=no 10717 soname_spec='${libname}${release}${shared_ext}$major' 10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10719 case $host_os in 10720 irix5* | nonstopux*) 10721 libsuff= shlibsuff= 10722 ;; 10723 *) 10724 case $LD in # libtool.m4 will add one of these switches to LD 10725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10726 libsuff= shlibsuff= libmagic=32-bit;; 10727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10728 libsuff=32 shlibsuff=N32 libmagic=N32;; 10729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10730 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10731 *) libsuff= shlibsuff= libmagic=never-match;; 10732 esac 10733 ;; 10734 esac 10735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10736 shlibpath_overrides_runpath=no 10737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10739 hardcode_into_libs=yes 10740 ;; 10741 10742# No shared lib support for Linux oldld, aout, or coff. 10743linux*oldld* | linux*aout* | linux*coff*) 10744 dynamic_linker=no 10745 ;; 10746 10747# This must be Linux ELF. 10748linux* | k*bsd*-gnu) 10749 version_type=linux 10750 need_lib_prefix=no 10751 need_version=no 10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10753 soname_spec='${libname}${release}${shared_ext}$major' 10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10755 shlibpath_var=LD_LIBRARY_PATH 10756 shlibpath_overrides_runpath=no 10757 # Some binutils ld are patched to set DT_RUNPATH 10758 save_LDFLAGS=$LDFLAGS 10759 save_libdir=$libdir 10760 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10761 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10763/* end confdefs.h. */ 10764 10765int 10766main () 10767{ 10768 10769 ; 10770 return 0; 10771} 10772_ACEOF 10773if ac_fn_c_try_link "$LINENO"; then : 10774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10775 shlibpath_overrides_runpath=yes 10776fi 10777fi 10778rm -f core conftest.err conftest.$ac_objext \ 10779 conftest$ac_exeext conftest.$ac_ext 10780 LDFLAGS=$save_LDFLAGS 10781 libdir=$save_libdir 10782 10783 # This implies no fast_install, which is unacceptable. 10784 # Some rework will be needed to allow for fast_install 10785 # before this can be enabled. 10786 hardcode_into_libs=yes 10787 10788 # Append ld.so.conf contents to the search path 10789 if test -f /etc/ld.so.conf; then 10790 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' ' '` 10791 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10792 fi 10793 10794 # We used to test for /lib/ld.so.1 and disable shared libraries on 10795 # powerpc, because MkLinux only supported shared libraries with the 10796 # GNU dynamic linker. Since this was broken with cross compilers, 10797 # most powerpc-linux boxes support dynamic linking these days and 10798 # people can always --disable-shared, the test was removed, and we 10799 # assume the GNU/Linux dynamic linker is in use. 10800 dynamic_linker='GNU/Linux ld.so' 10801 ;; 10802 10803netbsd*) 10804 version_type=sunos 10805 need_lib_prefix=no 10806 need_version=no 10807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10810 dynamic_linker='NetBSD (a.out) ld.so' 10811 else 10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10813 soname_spec='${libname}${release}${shared_ext}$major' 10814 dynamic_linker='NetBSD ld.elf_so' 10815 fi 10816 shlibpath_var=LD_LIBRARY_PATH 10817 shlibpath_overrides_runpath=yes 10818 hardcode_into_libs=yes 10819 ;; 10820 10821newsos6) 10822 version_type=linux 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10824 shlibpath_var=LD_LIBRARY_PATH 10825 shlibpath_overrides_runpath=yes 10826 ;; 10827 10828*nto* | *qnx*) 10829 version_type=qnx 10830 need_lib_prefix=no 10831 need_version=no 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10833 soname_spec='${libname}${release}${shared_ext}$major' 10834 shlibpath_var=LD_LIBRARY_PATH 10835 shlibpath_overrides_runpath=no 10836 hardcode_into_libs=yes 10837 dynamic_linker='ldqnx.so' 10838 ;; 10839 10840openbsd*) 10841 version_type=sunos 10842 sys_lib_dlsearch_path_spec="/usr/lib" 10843 need_lib_prefix=no 10844 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10845 case $host_os in 10846 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10847 *) need_version=no ;; 10848 esac 10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10851 shlibpath_var=LD_LIBRARY_PATH 10852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10853 case $host_os in 10854 openbsd2.[89] | openbsd2.[89].*) 10855 shlibpath_overrides_runpath=no 10856 ;; 10857 *) 10858 shlibpath_overrides_runpath=yes 10859 ;; 10860 esac 10861 else 10862 shlibpath_overrides_runpath=yes 10863 fi 10864 ;; 10865 10866os2*) 10867 libname_spec='$name' 10868 shrext_cmds=".dll" 10869 need_lib_prefix=no 10870 library_names_spec='$libname${shared_ext} $libname.a' 10871 dynamic_linker='OS/2 ld.exe' 10872 shlibpath_var=LIBPATH 10873 ;; 10874 10875osf3* | osf4* | osf5*) 10876 version_type=osf 10877 need_lib_prefix=no 10878 need_version=no 10879 soname_spec='${libname}${release}${shared_ext}$major' 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10881 shlibpath_var=LD_LIBRARY_PATH 10882 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10883 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10884 ;; 10885 10886rdos*) 10887 dynamic_linker=no 10888 ;; 10889 10890solaris*) 10891 version_type=linux 10892 need_lib_prefix=no 10893 need_version=no 10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10895 soname_spec='${libname}${release}${shared_ext}$major' 10896 shlibpath_var=LD_LIBRARY_PATH 10897 shlibpath_overrides_runpath=yes 10898 hardcode_into_libs=yes 10899 # ldd complains unless libraries are executable 10900 postinstall_cmds='chmod +x $lib' 10901 ;; 10902 10903sunos4*) 10904 version_type=sunos 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10907 shlibpath_var=LD_LIBRARY_PATH 10908 shlibpath_overrides_runpath=yes 10909 if test "$with_gnu_ld" = yes; then 10910 need_lib_prefix=no 10911 fi 10912 need_version=yes 10913 ;; 10914 10915sysv4 | sysv4.3*) 10916 version_type=linux 10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10918 soname_spec='${libname}${release}${shared_ext}$major' 10919 shlibpath_var=LD_LIBRARY_PATH 10920 case $host_vendor in 10921 sni) 10922 shlibpath_overrides_runpath=no 10923 need_lib_prefix=no 10924 runpath_var=LD_RUN_PATH 10925 ;; 10926 siemens) 10927 need_lib_prefix=no 10928 ;; 10929 motorola) 10930 need_lib_prefix=no 10931 need_version=no 10932 shlibpath_overrides_runpath=no 10933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10934 ;; 10935 esac 10936 ;; 10937 10938sysv4*MP*) 10939 if test -d /usr/nec ;then 10940 version_type=linux 10941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10942 soname_spec='$libname${shared_ext}.$major' 10943 shlibpath_var=LD_LIBRARY_PATH 10944 fi 10945 ;; 10946 10947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10948 version_type=freebsd-elf 10949 need_lib_prefix=no 10950 need_version=no 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10952 soname_spec='${libname}${release}${shared_ext}$major' 10953 shlibpath_var=LD_LIBRARY_PATH 10954 shlibpath_overrides_runpath=yes 10955 hardcode_into_libs=yes 10956 if test "$with_gnu_ld" = yes; then 10957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10958 else 10959 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10960 case $host_os in 10961 sco3.2v5*) 10962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10963 ;; 10964 esac 10965 fi 10966 sys_lib_dlsearch_path_spec='/usr/lib' 10967 ;; 10968 10969tpf*) 10970 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10971 version_type=linux 10972 need_lib_prefix=no 10973 need_version=no 10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10975 shlibpath_var=LD_LIBRARY_PATH 10976 shlibpath_overrides_runpath=no 10977 hardcode_into_libs=yes 10978 ;; 10979 10980uts4*) 10981 version_type=linux 10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10983 soname_spec='${libname}${release}${shared_ext}$major' 10984 shlibpath_var=LD_LIBRARY_PATH 10985 ;; 10986 10987*) 10988 dynamic_linker=no 10989 ;; 10990esac 10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10992$as_echo "$dynamic_linker" >&6; } 10993test "$dynamic_linker" = no && can_build_shared=no 10994 10995variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10996if test "$GCC" = yes; then 10997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10998fi 10999 11000if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11001 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11002fi 11003if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11004 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11005fi 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11094$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11095hardcode_action= 11096if test -n "$hardcode_libdir_flag_spec" || 11097 test -n "$runpath_var" || 11098 test "X$hardcode_automatic" = "Xyes" ; then 11099 11100 # We can hardcode non-existent directories. 11101 if test "$hardcode_direct" != no && 11102 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11103 # have to relink, otherwise we might link with an installed library 11104 # when we should be linking with a yet-to-be-installed one 11105 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11106 test "$hardcode_minus_L" != no; then 11107 # Linking always hardcodes the temporary library directory. 11108 hardcode_action=relink 11109 else 11110 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11111 hardcode_action=immediate 11112 fi 11113else 11114 # We cannot hardcode anything, or else we can only hardcode existing 11115 # directories. 11116 hardcode_action=unsupported 11117fi 11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11119$as_echo "$hardcode_action" >&6; } 11120 11121if test "$hardcode_action" = relink || 11122 test "$inherit_rpath" = yes; then 11123 # Fast installation is not supported 11124 enable_fast_install=no 11125elif test "$shlibpath_overrides_runpath" = yes || 11126 test "$enable_shared" = no; then 11127 # Fast installation is not necessary 11128 enable_fast_install=needless 11129fi 11130 11131 11132 11133 11134 11135 11136 if test "x$enable_dlopen" != xyes; then 11137 enable_dlopen=unknown 11138 enable_dlopen_self=unknown 11139 enable_dlopen_self_static=unknown 11140else 11141 lt_cv_dlopen=no 11142 lt_cv_dlopen_libs= 11143 11144 case $host_os in 11145 beos*) 11146 lt_cv_dlopen="load_add_on" 11147 lt_cv_dlopen_libs= 11148 lt_cv_dlopen_self=yes 11149 ;; 11150 11151 mingw* | pw32* | cegcc*) 11152 lt_cv_dlopen="LoadLibrary" 11153 lt_cv_dlopen_libs= 11154 ;; 11155 11156 cygwin*) 11157 lt_cv_dlopen="dlopen" 11158 lt_cv_dlopen_libs= 11159 ;; 11160 11161 darwin*) 11162 # if libdl is installed we need to link against it 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11164$as_echo_n "checking for dlopen in -ldl... " >&6; } 11165if ${ac_cv_lib_dl_dlopen+:} false; then : 11166 $as_echo_n "(cached) " >&6 11167else 11168 ac_check_lib_save_LIBS=$LIBS 11169LIBS="-ldl $LIBS" 11170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171/* end confdefs.h. */ 11172 11173/* Override any GCC internal prototype to avoid an error. 11174 Use char because int might match the return type of a GCC 11175 builtin and then its argument prototype would still apply. */ 11176#ifdef __cplusplus 11177extern "C" 11178#endif 11179char dlopen (); 11180int 11181main () 11182{ 11183return dlopen (); 11184 ; 11185 return 0; 11186} 11187_ACEOF 11188if ac_fn_c_try_link "$LINENO"; then : 11189 ac_cv_lib_dl_dlopen=yes 11190else 11191 ac_cv_lib_dl_dlopen=no 11192fi 11193rm -f core conftest.err conftest.$ac_objext \ 11194 conftest$ac_exeext conftest.$ac_ext 11195LIBS=$ac_check_lib_save_LIBS 11196fi 11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11198$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11199if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11201else 11202 11203 lt_cv_dlopen="dyld" 11204 lt_cv_dlopen_libs= 11205 lt_cv_dlopen_self=yes 11206 11207fi 11208 11209 ;; 11210 11211 *) 11212 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11213if test "x$ac_cv_func_shl_load" = xyes; then : 11214 lt_cv_dlopen="shl_load" 11215else 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11217$as_echo_n "checking for shl_load in -ldld... " >&6; } 11218if ${ac_cv_lib_dld_shl_load+:} false; then : 11219 $as_echo_n "(cached) " >&6 11220else 11221 ac_check_lib_save_LIBS=$LIBS 11222LIBS="-ldld $LIBS" 11223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11224/* end confdefs.h. */ 11225 11226/* Override any GCC internal prototype to avoid an error. 11227 Use char because int might match the return type of a GCC 11228 builtin and then its argument prototype would still apply. */ 11229#ifdef __cplusplus 11230extern "C" 11231#endif 11232char shl_load (); 11233int 11234main () 11235{ 11236return shl_load (); 11237 ; 11238 return 0; 11239} 11240_ACEOF 11241if ac_fn_c_try_link "$LINENO"; then : 11242 ac_cv_lib_dld_shl_load=yes 11243else 11244 ac_cv_lib_dld_shl_load=no 11245fi 11246rm -f core conftest.err conftest.$ac_objext \ 11247 conftest$ac_exeext conftest.$ac_ext 11248LIBS=$ac_check_lib_save_LIBS 11249fi 11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11251$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11252if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11253 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11254else 11255 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11256if test "x$ac_cv_func_dlopen" = xyes; then : 11257 lt_cv_dlopen="dlopen" 11258else 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11260$as_echo_n "checking for dlopen in -ldl... " >&6; } 11261if ${ac_cv_lib_dl_dlopen+:} false; then : 11262 $as_echo_n "(cached) " >&6 11263else 11264 ac_check_lib_save_LIBS=$LIBS 11265LIBS="-ldl $LIBS" 11266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11267/* end confdefs.h. */ 11268 11269/* Override any GCC internal prototype to avoid an error. 11270 Use char because int might match the return type of a GCC 11271 builtin and then its argument prototype would still apply. */ 11272#ifdef __cplusplus 11273extern "C" 11274#endif 11275char dlopen (); 11276int 11277main () 11278{ 11279return dlopen (); 11280 ; 11281 return 0; 11282} 11283_ACEOF 11284if ac_fn_c_try_link "$LINENO"; then : 11285 ac_cv_lib_dl_dlopen=yes 11286else 11287 ac_cv_lib_dl_dlopen=no 11288fi 11289rm -f core conftest.err conftest.$ac_objext \ 11290 conftest$ac_exeext conftest.$ac_ext 11291LIBS=$ac_check_lib_save_LIBS 11292fi 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11294$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11295if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11297else 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11299$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11300if ${ac_cv_lib_svld_dlopen+:} false; then : 11301 $as_echo_n "(cached) " >&6 11302else 11303 ac_check_lib_save_LIBS=$LIBS 11304LIBS="-lsvld $LIBS" 11305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11306/* end confdefs.h. */ 11307 11308/* Override any GCC internal prototype to avoid an error. 11309 Use char because int might match the return type of a GCC 11310 builtin and then its argument prototype would still apply. */ 11311#ifdef __cplusplus 11312extern "C" 11313#endif 11314char dlopen (); 11315int 11316main () 11317{ 11318return dlopen (); 11319 ; 11320 return 0; 11321} 11322_ACEOF 11323if ac_fn_c_try_link "$LINENO"; then : 11324 ac_cv_lib_svld_dlopen=yes 11325else 11326 ac_cv_lib_svld_dlopen=no 11327fi 11328rm -f core conftest.err conftest.$ac_objext \ 11329 conftest$ac_exeext conftest.$ac_ext 11330LIBS=$ac_check_lib_save_LIBS 11331fi 11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11333$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11334if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11336else 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11338$as_echo_n "checking for dld_link in -ldld... " >&6; } 11339if ${ac_cv_lib_dld_dld_link+:} false; then : 11340 $as_echo_n "(cached) " >&6 11341else 11342 ac_check_lib_save_LIBS=$LIBS 11343LIBS="-ldld $LIBS" 11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11345/* end confdefs.h. */ 11346 11347/* Override any GCC internal prototype to avoid an error. 11348 Use char because int might match the return type of a GCC 11349 builtin and then its argument prototype would still apply. */ 11350#ifdef __cplusplus 11351extern "C" 11352#endif 11353char dld_link (); 11354int 11355main () 11356{ 11357return dld_link (); 11358 ; 11359 return 0; 11360} 11361_ACEOF 11362if ac_fn_c_try_link "$LINENO"; then : 11363 ac_cv_lib_dld_dld_link=yes 11364else 11365 ac_cv_lib_dld_dld_link=no 11366fi 11367rm -f core conftest.err conftest.$ac_objext \ 11368 conftest$ac_exeext conftest.$ac_ext 11369LIBS=$ac_check_lib_save_LIBS 11370fi 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11372$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11373if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11374 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11375fi 11376 11377 11378fi 11379 11380 11381fi 11382 11383 11384fi 11385 11386 11387fi 11388 11389 11390fi 11391 11392 ;; 11393 esac 11394 11395 if test "x$lt_cv_dlopen" != xno; then 11396 enable_dlopen=yes 11397 else 11398 enable_dlopen=no 11399 fi 11400 11401 case $lt_cv_dlopen in 11402 dlopen) 11403 save_CPPFLAGS="$CPPFLAGS" 11404 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11405 11406 save_LDFLAGS="$LDFLAGS" 11407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11408 11409 save_LIBS="$LIBS" 11410 LIBS="$lt_cv_dlopen_libs $LIBS" 11411 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11413$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11414if ${lt_cv_dlopen_self+:} false; then : 11415 $as_echo_n "(cached) " >&6 11416else 11417 if test "$cross_compiling" = yes; then : 11418 lt_cv_dlopen_self=cross 11419else 11420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11421 lt_status=$lt_dlunknown 11422 cat > conftest.$ac_ext <<_LT_EOF 11423#line 11423 "configure" 11424#include "confdefs.h" 11425 11426#if HAVE_DLFCN_H 11427#include <dlfcn.h> 11428#endif 11429 11430#include <stdio.h> 11431 11432#ifdef RTLD_GLOBAL 11433# define LT_DLGLOBAL RTLD_GLOBAL 11434#else 11435# ifdef DL_GLOBAL 11436# define LT_DLGLOBAL DL_GLOBAL 11437# else 11438# define LT_DLGLOBAL 0 11439# endif 11440#endif 11441 11442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11443 find out it does not work in some platform. */ 11444#ifndef LT_DLLAZY_OR_NOW 11445# ifdef RTLD_LAZY 11446# define LT_DLLAZY_OR_NOW RTLD_LAZY 11447# else 11448# ifdef DL_LAZY 11449# define LT_DLLAZY_OR_NOW DL_LAZY 11450# else 11451# ifdef RTLD_NOW 11452# define LT_DLLAZY_OR_NOW RTLD_NOW 11453# else 11454# ifdef DL_NOW 11455# define LT_DLLAZY_OR_NOW DL_NOW 11456# else 11457# define LT_DLLAZY_OR_NOW 0 11458# endif 11459# endif 11460# endif 11461# endif 11462#endif 11463 11464void fnord() { int i=42;} 11465int main () 11466{ 11467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11468 int status = $lt_dlunknown; 11469 11470 if (self) 11471 { 11472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11474 /* dlclose (self); */ 11475 } 11476 else 11477 puts (dlerror ()); 11478 11479 return status; 11480} 11481_LT_EOF 11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11483 (eval $ac_link) 2>&5 11484 ac_status=$? 11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11487 (./conftest; exit; ) >&5 2>/dev/null 11488 lt_status=$? 11489 case x$lt_status in 11490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11493 esac 11494 else : 11495 # compilation failed 11496 lt_cv_dlopen_self=no 11497 fi 11498fi 11499rm -fr conftest* 11500 11501 11502fi 11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11504$as_echo "$lt_cv_dlopen_self" >&6; } 11505 11506 if test "x$lt_cv_dlopen_self" = xyes; then 11507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11509$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11510if ${lt_cv_dlopen_self_static+:} false; then : 11511 $as_echo_n "(cached) " >&6 11512else 11513 if test "$cross_compiling" = yes; then : 11514 lt_cv_dlopen_self_static=cross 11515else 11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11517 lt_status=$lt_dlunknown 11518 cat > conftest.$ac_ext <<_LT_EOF 11519#line 11519 "configure" 11520#include "confdefs.h" 11521 11522#if HAVE_DLFCN_H 11523#include <dlfcn.h> 11524#endif 11525 11526#include <stdio.h> 11527 11528#ifdef RTLD_GLOBAL 11529# define LT_DLGLOBAL RTLD_GLOBAL 11530#else 11531# ifdef DL_GLOBAL 11532# define LT_DLGLOBAL DL_GLOBAL 11533# else 11534# define LT_DLGLOBAL 0 11535# endif 11536#endif 11537 11538/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11539 find out it does not work in some platform. */ 11540#ifndef LT_DLLAZY_OR_NOW 11541# ifdef RTLD_LAZY 11542# define LT_DLLAZY_OR_NOW RTLD_LAZY 11543# else 11544# ifdef DL_LAZY 11545# define LT_DLLAZY_OR_NOW DL_LAZY 11546# else 11547# ifdef RTLD_NOW 11548# define LT_DLLAZY_OR_NOW RTLD_NOW 11549# else 11550# ifdef DL_NOW 11551# define LT_DLLAZY_OR_NOW DL_NOW 11552# else 11553# define LT_DLLAZY_OR_NOW 0 11554# endif 11555# endif 11556# endif 11557# endif 11558#endif 11559 11560void fnord() { int i=42;} 11561int main () 11562{ 11563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11564 int status = $lt_dlunknown; 11565 11566 if (self) 11567 { 11568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11570 /* dlclose (self); */ 11571 } 11572 else 11573 puts (dlerror ()); 11574 11575 return status; 11576} 11577_LT_EOF 11578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11579 (eval $ac_link) 2>&5 11580 ac_status=$? 11581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11582 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11583 (./conftest; exit; ) >&5 2>/dev/null 11584 lt_status=$? 11585 case x$lt_status in 11586 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11587 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11588 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11589 esac 11590 else : 11591 # compilation failed 11592 lt_cv_dlopen_self_static=no 11593 fi 11594fi 11595rm -fr conftest* 11596 11597 11598fi 11599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11600$as_echo "$lt_cv_dlopen_self_static" >&6; } 11601 fi 11602 11603 CPPFLAGS="$save_CPPFLAGS" 11604 LDFLAGS="$save_LDFLAGS" 11605 LIBS="$save_LIBS" 11606 ;; 11607 esac 11608 11609 case $lt_cv_dlopen_self in 11610 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11611 *) enable_dlopen_self=unknown ;; 11612 esac 11613 11614 case $lt_cv_dlopen_self_static in 11615 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11616 *) enable_dlopen_self_static=unknown ;; 11617 esac 11618fi 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636striplib= 11637old_striplib= 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11639$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11640if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11641 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11642 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11644$as_echo "yes" >&6; } 11645else 11646# FIXME - insert some real tests, host_os isn't really good enough 11647 case $host_os in 11648 darwin*) 11649 if test -n "$STRIP" ; then 11650 striplib="$STRIP -x" 11651 old_striplib="$STRIP -S" 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11653$as_echo "yes" >&6; } 11654 else 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11656$as_echo "no" >&6; } 11657 fi 11658 ;; 11659 *) 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11661$as_echo "no" >&6; } 11662 ;; 11663 esac 11664fi 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 # Report which library types will actually be built 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11679$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11681$as_echo "$can_build_shared" >&6; } 11682 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11684$as_echo_n "checking whether to build shared libraries... " >&6; } 11685 test "$can_build_shared" = "no" && enable_shared=no 11686 11687 # On AIX, shared libraries and static libraries use the same namespace, and 11688 # are all built from PIC. 11689 case $host_os in 11690 aix3*) 11691 test "$enable_shared" = yes && enable_static=no 11692 if test -n "$RANLIB"; then 11693 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11694 postinstall_cmds='$RANLIB $lib' 11695 fi 11696 ;; 11697 11698 aix[4-9]*) 11699 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11700 test "$enable_shared" = yes && enable_static=no 11701 fi 11702 ;; 11703 esac 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11705$as_echo "$enable_shared" >&6; } 11706 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11708$as_echo_n "checking whether to build static libraries... " >&6; } 11709 # Make sure either enable_shared or enable_static is yes. 11710 test "$enable_shared" = yes || enable_static=yes 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11712$as_echo "$enable_static" >&6; } 11713 11714 11715 11716 11717fi 11718ac_ext=c 11719ac_cpp='$CPP $CPPFLAGS' 11720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11722ac_compiler_gnu=$ac_cv_c_compiler_gnu 11723 11724CC="$lt_save_CC" 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 ac_config_commands="$ac_config_commands libtool" 11739 11740 11741 11742 11743# Only expand once: 11744 11745 11746 11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11748$as_echo_n "checking for ANSI C header files... " >&6; } 11749if ${ac_cv_header_stdc+:} false; then : 11750 $as_echo_n "(cached) " >&6 11751else 11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11753/* end confdefs.h. */ 11754#include <stdlib.h> 11755#include <stdarg.h> 11756#include <string.h> 11757#include <float.h> 11758 11759int 11760main () 11761{ 11762 11763 ; 11764 return 0; 11765} 11766_ACEOF 11767if ac_fn_c_try_compile "$LINENO"; then : 11768 ac_cv_header_stdc=yes 11769else 11770 ac_cv_header_stdc=no 11771fi 11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11773 11774if test $ac_cv_header_stdc = yes; then 11775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11777/* end confdefs.h. */ 11778#include <string.h> 11779 11780_ACEOF 11781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11782 $EGREP "memchr" >/dev/null 2>&1; then : 11783 11784else 11785 ac_cv_header_stdc=no 11786fi 11787rm -f conftest* 11788 11789fi 11790 11791if test $ac_cv_header_stdc = yes; then 11792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11794/* end confdefs.h. */ 11795#include <stdlib.h> 11796 11797_ACEOF 11798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11799 $EGREP "free" >/dev/null 2>&1; then : 11800 11801else 11802 ac_cv_header_stdc=no 11803fi 11804rm -f conftest* 11805 11806fi 11807 11808if test $ac_cv_header_stdc = yes; then 11809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11810 if test "$cross_compiling" = yes; then : 11811 : 11812else 11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11814/* end confdefs.h. */ 11815#include <ctype.h> 11816#include <stdlib.h> 11817#if ((' ' & 0x0FF) == 0x020) 11818# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11819# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11820#else 11821# define ISLOWER(c) \ 11822 (('a' <= (c) && (c) <= 'i') \ 11823 || ('j' <= (c) && (c) <= 'r') \ 11824 || ('s' <= (c) && (c) <= 'z')) 11825# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11826#endif 11827 11828#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11829int 11830main () 11831{ 11832 int i; 11833 for (i = 0; i < 256; i++) 11834 if (XOR (islower (i), ISLOWER (i)) 11835 || toupper (i) != TOUPPER (i)) 11836 return 2; 11837 return 0; 11838} 11839_ACEOF 11840if ac_fn_c_try_run "$LINENO"; then : 11841 11842else 11843 ac_cv_header_stdc=no 11844fi 11845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11846 conftest.$ac_objext conftest.beam conftest.$ac_ext 11847fi 11848 11849fi 11850fi 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11852$as_echo "$ac_cv_header_stdc" >&6; } 11853if test $ac_cv_header_stdc = yes; then 11854 11855$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11856 11857fi 11858 11859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 11860$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 11861if ${ac_cv_header_sys_types_h_makedev+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11865/* end confdefs.h. */ 11866#include <sys/types.h> 11867int 11868main () 11869{ 11870return makedev(0, 0); 11871 ; 11872 return 0; 11873} 11874_ACEOF 11875if ac_fn_c_try_link "$LINENO"; then : 11876 ac_cv_header_sys_types_h_makedev=yes 11877else 11878 ac_cv_header_sys_types_h_makedev=no 11879fi 11880rm -f core conftest.err conftest.$ac_objext \ 11881 conftest$ac_exeext conftest.$ac_ext 11882 11883fi 11884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 11885$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 11886 11887if test $ac_cv_header_sys_types_h_makedev = no; then 11888ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 11889if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 11890 11891$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 11892 11893fi 11894 11895 11896 11897 if test $ac_cv_header_sys_mkdev_h = no; then 11898 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 11899if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 11900 11901$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 11902 11903fi 11904 11905 11906 fi 11907fi 11908 11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 11910$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 11911if ${ac_cv_header_sys_wait_h+:} false; then : 11912 $as_echo_n "(cached) " >&6 11913else 11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11915/* end confdefs.h. */ 11916#include <sys/types.h> 11917#include <sys/wait.h> 11918#ifndef WEXITSTATUS 11919# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 11920#endif 11921#ifndef WIFEXITED 11922# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 11923#endif 11924 11925int 11926main () 11927{ 11928 int s; 11929 wait (&s); 11930 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 11931 ; 11932 return 0; 11933} 11934_ACEOF 11935if ac_fn_c_try_compile "$LINENO"; then : 11936 ac_cv_header_sys_wait_h=yes 11937else 11938 ac_cv_header_sys_wait_h=no 11939fi 11940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11941fi 11942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 11943$as_echo "$ac_cv_header_sys_wait_h" >&6; } 11944if test $ac_cv_header_sys_wait_h = yes; then 11945 11946$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11947 11948fi 11949 11950for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h 11951do : 11952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11953ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11954if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11955 cat >>confdefs.h <<_ACEOF 11956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11957_ACEOF 11958 11959fi 11960 11961done 11962 11963for ac_header in utime.h wchar.h wctype.h limits.h 11964do : 11965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11966ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11968 cat >>confdefs.h <<_ACEOF 11969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11970_ACEOF 11971 11972fi 11973 11974done 11975 11976for ac_header in getopt.h err.h 11977do : 11978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11979ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11980if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11981 cat >>confdefs.h <<_ACEOF 11982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11983_ACEOF 11984 11985fi 11986 11987done 11988 11989for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h 11990do : 11991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11994 cat >>confdefs.h <<_ACEOF 11995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11996_ACEOF 11997 11998fi 11999 12000done 12001 12002for ac_header in zlib.h 12003do : 12004 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12005if test "x$ac_cv_header_zlib_h" = xyes; then : 12006 cat >>confdefs.h <<_ACEOF 12007#define HAVE_ZLIB_H 1 12008_ACEOF 12009 12010fi 12011 12012done 12013 12014 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12016$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12017if ${ac_cv_c_const+:} false; then : 12018 $as_echo_n "(cached) " >&6 12019else 12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12021/* end confdefs.h. */ 12022 12023int 12024main () 12025{ 12026/* FIXME: Include the comments suggested by Paul. */ 12027#ifndef __cplusplus 12028 /* Ultrix mips cc rejects this. */ 12029 typedef int charset[2]; 12030 const charset cs; 12031 /* SunOS 4.1.1 cc rejects this. */ 12032 char const *const *pcpcc; 12033 char **ppc; 12034 /* NEC SVR4.0.2 mips cc rejects this. */ 12035 struct point {int x, y;}; 12036 static struct point const zero = {0,0}; 12037 /* AIX XL C 1.02.0.0 rejects this. 12038 It does not let you subtract one const X* pointer from another in 12039 an arm of an if-expression whose if-part is not a constant 12040 expression */ 12041 const char *g = "string"; 12042 pcpcc = &g + (g ? g-g : 0); 12043 /* HPUX 7.0 cc rejects these. */ 12044 ++pcpcc; 12045 ppc = (char**) pcpcc; 12046 pcpcc = (char const *const *) ppc; 12047 { /* SCO 3.2v4 cc rejects this. */ 12048 char *t; 12049 char const *s = 0 ? (char *) 0 : (char const *) 0; 12050 12051 *t++ = 0; 12052 if (s) return 0; 12053 } 12054 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12055 int x[] = {25, 17}; 12056 const int *foo = &x[0]; 12057 ++foo; 12058 } 12059 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12060 typedef const int *iptr; 12061 iptr p = 0; 12062 ++p; 12063 } 12064 { /* AIX XL C 1.02.0.0 rejects this saying 12065 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12066 struct s { int j; const int *ap[3]; }; 12067 struct s *b; b->j = 5; 12068 } 12069 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12070 const int foo = 10; 12071 if (!foo) return 0; 12072 } 12073 return !cs[0] && !zero.x; 12074#endif 12075 12076 ; 12077 return 0; 12078} 12079_ACEOF 12080if ac_fn_c_try_compile "$LINENO"; then : 12081 ac_cv_c_const=yes 12082else 12083 ac_cv_c_const=no 12084fi 12085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12086fi 12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12088$as_echo "$ac_cv_c_const" >&6; } 12089if test $ac_cv_c_const = no; then 12090 12091$as_echo "#define const /**/" >>confdefs.h 12092 12093fi 12094 12095ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12096if test "x$ac_cv_type_off_t" = xyes; then : 12097 12098else 12099 12100cat >>confdefs.h <<_ACEOF 12101#define off_t long int 12102_ACEOF 12103 12104fi 12105 12106ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12107if test "x$ac_cv_type_size_t" = xyes; then : 12108 12109else 12110 12111cat >>confdefs.h <<_ACEOF 12112#define size_t unsigned int 12113_ACEOF 12114 12115fi 12116 12117ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12118if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12119 12120cat >>confdefs.h <<_ACEOF 12121#define HAVE_STRUCT_STAT_ST_RDEV 1 12122_ACEOF 12123 12124 12125fi 12126 12127 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12129$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12130if ${ac_cv_struct_tm+:} false; then : 12131 $as_echo_n "(cached) " >&6 12132else 12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135#include <sys/types.h> 12136#include <time.h> 12137 12138int 12139main () 12140{ 12141struct tm tm; 12142 int *p = &tm.tm_sec; 12143 return !p; 12144 ; 12145 return 0; 12146} 12147_ACEOF 12148if ac_fn_c_try_compile "$LINENO"; then : 12149 ac_cv_struct_tm=time.h 12150else 12151 ac_cv_struct_tm=sys/time.h 12152fi 12153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12154fi 12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 12156$as_echo "$ac_cv_struct_tm" >&6; } 12157if test $ac_cv_struct_tm = sys/time.h; then 12158 12159$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 12160 12161fi 12162 12163ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default" 12164if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 12165 12166cat >>confdefs.h <<_ACEOF 12167#define HAVE_STRUCT_TM_TM_GMTOFF 1 12168_ACEOF 12169 12170 12171fi 12172ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "$ac_includes_default" 12173if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 12174 12175cat >>confdefs.h <<_ACEOF 12176#define HAVE_STRUCT_TM_TM_ZONE 1 12177_ACEOF 12178 12179 12180fi 12181 12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 12183$as_echo_n "checking for tm_zone in struct tm... " >&6; } 12184if ${ac_cv_struct_tm_zone+:} false; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12188/* end confdefs.h. */ 12189#include <sys/types.h> 12190#include <$ac_cv_struct_tm> 12191int 12192main () 12193{ 12194struct tm tm; tm.tm_zone; 12195 ; 12196 return 0; 12197} 12198_ACEOF 12199if ac_fn_c_try_compile "$LINENO"; then : 12200 ac_cv_struct_tm_zone=yes 12201else 12202 ac_cv_struct_tm_zone=no 12203fi 12204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12205fi 12206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 12207$as_echo "$ac_cv_struct_tm_zone" >&6; } 12208if test "$ac_cv_struct_tm_zone" = yes; then 12209 12210$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 12211 12212fi 12213 12214# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 12215# consider it declared and we won't give our own extern. 12216ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 12217" 12218if test "x$ac_cv_have_decl_tzname" = xyes; then : 12219 ac_have_decl=1 12220else 12221 ac_have_decl=0 12222fi 12223 12224cat >>confdefs.h <<_ACEOF 12225#define HAVE_DECL_TZNAME $ac_have_decl 12226_ACEOF 12227 12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 12229$as_echo_n "checking for tzname... " >&6; } 12230if ${ac_cv_var_tzname+:} false; then : 12231 $as_echo_n "(cached) " >&6 12232else 12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12234/* end confdefs.h. */ 12235#include <time.h> 12236#if !HAVE_DECL_TZNAME 12237extern char *tzname[]; 12238#endif 12239int 12240main () 12241{ 12242return tzname[0][0]; 12243 ; 12244 return 0; 12245} 12246_ACEOF 12247if ac_fn_c_try_link "$LINENO"; then : 12248 ac_cv_var_tzname=yes 12249else 12250 ac_cv_var_tzname=no 12251fi 12252rm -f core conftest.err conftest.$ac_objext \ 12253 conftest$ac_exeext conftest.$ac_ext 12254fi 12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 12256$as_echo "$ac_cv_var_tzname" >&6; } 12257 if test $ac_cv_var_tzname = yes; then 12258 12259$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 12260 12261 fi 12262 12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 12264$as_echo_n "checking for tm_isdst in struct tm... " >&6; } 12265if ${ac_cv_struct_tm_isdst+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267else 12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12269/* end confdefs.h. */ 12270#include <sys/types.h> 12271#include <$ac_cv_struct_tm> 12272int 12273main () 12274{ 12275struct tm tm; tm.tm_isdst; 12276 ; 12277 return 0; 12278} 12279_ACEOF 12280if ac_fn_c_try_compile "$LINENO"; then : 12281 ac_cv_struct_tm_isdst=yes 12282else 12283 ac_cv_struct_tm_isdst=no 12284fi 12285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12286fi 12287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 12288$as_echo "$ac_cv_struct_tm_isdst" >&6; } 12289if test "$ac_cv_struct_tm_isdst" = yes; then 12290 12291$as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h 12292 12293fi 12294 12295 12296ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 12297" 12298if test "x$ac_cv_have_decl_daylight" = xyes; then : 12299 ac_have_decl=1 12300else 12301 ac_have_decl=0 12302fi 12303 12304cat >>confdefs.h <<_ACEOF 12305#define HAVE_DECL_DAYLIGHT $ac_have_decl 12306_ACEOF 12307 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 12309$as_echo_n "checking for daylight... " >&6; } 12310if ${ac_cv_var_daylight+:} false; then : 12311 $as_echo_n "(cached) " >&6 12312else 12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12314/* end confdefs.h. */ 12315#include <time.h> 12316#if !HAVE_DECL_DAYLIGHT 12317extern int daylight; 12318#endif 12319int 12320main () 12321{ 12322atoi(daylight); 12323 ; 12324 return 0; 12325} 12326_ACEOF 12327if ac_fn_c_try_link "$LINENO"; then : 12328 ac_cv_var_daylight=yes 12329else 12330 ac_cv_var_daylight=no 12331fi 12332rm -f core conftest.err conftest.$ac_objext \ 12333 conftest$ac_exeext conftest.$ac_ext 12334fi 12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 12336$as_echo "$ac_cv_var_daylight" >&6; } 12337 if test $ac_cv_var_daylight = yes; then 12338 12339$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h 12340 12341 fi 12342 12343# Check whether --enable-largefile was given. 12344if test "${enable_largefile+set}" = set; then : 12345 enableval=$enable_largefile; 12346fi 12347 12348if test "$enable_largefile" != no; then 12349 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12351$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12352if ${ac_cv_sys_largefile_CC+:} false; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 ac_cv_sys_largefile_CC=no 12356 if test "$GCC" != yes; then 12357 ac_save_CC=$CC 12358 while :; do 12359 # IRIX 6.2 and later do not support large files by default, 12360 # so use the C compiler's -n32 option if that helps. 12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12362/* end confdefs.h. */ 12363#include <sys/types.h> 12364 /* Check that off_t can represent 2**63 - 1 correctly. 12365 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12366 since some C++ compilers masquerading as C compilers 12367 incorrectly reject 9223372036854775807. */ 12368#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12370 && LARGE_OFF_T % 2147483647 == 1) 12371 ? 1 : -1]; 12372int 12373main () 12374{ 12375 12376 ; 12377 return 0; 12378} 12379_ACEOF 12380 if ac_fn_c_try_compile "$LINENO"; then : 12381 break 12382fi 12383rm -f core conftest.err conftest.$ac_objext 12384 CC="$CC -n32" 12385 if ac_fn_c_try_compile "$LINENO"; then : 12386 ac_cv_sys_largefile_CC=' -n32'; break 12387fi 12388rm -f core conftest.err conftest.$ac_objext 12389 break 12390 done 12391 CC=$ac_save_CC 12392 rm -f conftest.$ac_ext 12393 fi 12394fi 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12396$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12397 if test "$ac_cv_sys_largefile_CC" != no; then 12398 CC=$CC$ac_cv_sys_largefile_CC 12399 fi 12400 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12402$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12403if ${ac_cv_sys_file_offset_bits+:} false; then : 12404 $as_echo_n "(cached) " >&6 12405else 12406 while :; do 12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12408/* end confdefs.h. */ 12409#include <sys/types.h> 12410 /* Check that off_t can represent 2**63 - 1 correctly. 12411 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12412 since some C++ compilers masquerading as C compilers 12413 incorrectly reject 9223372036854775807. */ 12414#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12416 && LARGE_OFF_T % 2147483647 == 1) 12417 ? 1 : -1]; 12418int 12419main () 12420{ 12421 12422 ; 12423 return 0; 12424} 12425_ACEOF 12426if ac_fn_c_try_compile "$LINENO"; then : 12427 ac_cv_sys_file_offset_bits=no; break 12428fi 12429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12431/* end confdefs.h. */ 12432#define _FILE_OFFSET_BITS 64 12433#include <sys/types.h> 12434 /* Check that off_t can represent 2**63 - 1 correctly. 12435 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12436 since some C++ compilers masquerading as C compilers 12437 incorrectly reject 9223372036854775807. */ 12438#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12440 && LARGE_OFF_T % 2147483647 == 1) 12441 ? 1 : -1]; 12442int 12443main () 12444{ 12445 12446 ; 12447 return 0; 12448} 12449_ACEOF 12450if ac_fn_c_try_compile "$LINENO"; then : 12451 ac_cv_sys_file_offset_bits=64; break 12452fi 12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12454 ac_cv_sys_file_offset_bits=unknown 12455 break 12456done 12457fi 12458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12459$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12460case $ac_cv_sys_file_offset_bits in #( 12461 no | unknown) ;; 12462 *) 12463cat >>confdefs.h <<_ACEOF 12464#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12465_ACEOF 12466;; 12467esac 12468rm -rf conftest* 12469 if test $ac_cv_sys_file_offset_bits = unknown; then 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12471$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12472if ${ac_cv_sys_large_files+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474else 12475 while :; do 12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12477/* end confdefs.h. */ 12478#include <sys/types.h> 12479 /* Check that off_t can represent 2**63 - 1 correctly. 12480 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12481 since some C++ compilers masquerading as C compilers 12482 incorrectly reject 9223372036854775807. */ 12483#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12485 && LARGE_OFF_T % 2147483647 == 1) 12486 ? 1 : -1]; 12487int 12488main () 12489{ 12490 12491 ; 12492 return 0; 12493} 12494_ACEOF 12495if ac_fn_c_try_compile "$LINENO"; then : 12496 ac_cv_sys_large_files=no; break 12497fi 12498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501#define _LARGE_FILES 1 12502#include <sys/types.h> 12503 /* Check that off_t can represent 2**63 - 1 correctly. 12504 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12505 since some C++ compilers masquerading as C compilers 12506 incorrectly reject 9223372036854775807. */ 12507#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12509 && LARGE_OFF_T % 2147483647 == 1) 12510 ? 1 : -1]; 12511int 12512main () 12513{ 12514 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519if ac_fn_c_try_compile "$LINENO"; then : 12520 ac_cv_sys_large_files=1; break 12521fi 12522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12523 ac_cv_sys_large_files=unknown 12524 break 12525done 12526fi 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12528$as_echo "$ac_cv_sys_large_files" >&6; } 12529case $ac_cv_sys_large_files in #( 12530 no | unknown) ;; 12531 *) 12532cat >>confdefs.h <<_ACEOF 12533#define _LARGE_FILES $ac_cv_sys_large_files 12534_ACEOF 12535;; 12536esac 12537rm -rf conftest* 12538 fi 12539fi 12540 12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12542$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12543if ${ac_cv_sys_largefile_source+:} false; then : 12544 $as_echo_n "(cached) " >&6 12545else 12546 while :; do 12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12548/* end confdefs.h. */ 12549#include <sys/types.h> /* for off_t */ 12550 #include <stdio.h> 12551int 12552main () 12553{ 12554int (*fp) (FILE *, off_t, int) = fseeko; 12555 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12556 ; 12557 return 0; 12558} 12559_ACEOF 12560if ac_fn_c_try_link "$LINENO"; then : 12561 ac_cv_sys_largefile_source=no; break 12562fi 12563rm -f core conftest.err conftest.$ac_objext \ 12564 conftest$ac_exeext conftest.$ac_ext 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567#define _LARGEFILE_SOURCE 1 12568#include <sys/types.h> /* for off_t */ 12569 #include <stdio.h> 12570int 12571main () 12572{ 12573int (*fp) (FILE *, off_t, int) = fseeko; 12574 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12575 ; 12576 return 0; 12577} 12578_ACEOF 12579if ac_fn_c_try_link "$LINENO"; then : 12580 ac_cv_sys_largefile_source=1; break 12581fi 12582rm -f core conftest.err conftest.$ac_objext \ 12583 conftest$ac_exeext conftest.$ac_ext 12584 ac_cv_sys_largefile_source=unknown 12585 break 12586done 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12589$as_echo "$ac_cv_sys_largefile_source" >&6; } 12590case $ac_cv_sys_largefile_source in #( 12591 no | unknown) ;; 12592 *) 12593cat >>confdefs.h <<_ACEOF 12594#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12595_ACEOF 12596;; 12597esac 12598rm -rf conftest* 12599 12600# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12601# in glibc 2.1.3, but that breaks too many other things. 12602# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12603if test $ac_cv_sys_largefile_source != unknown; then 12604 12605$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12606 12607fi 12608 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 12610$as_echo_n "checking for mbstate_t... " >&6; } 12611if ${ac_cv_type_mbstate_t+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616$ac_includes_default 12617# include <wchar.h> 12618int 12619main () 12620{ 12621mbstate_t x; return sizeof x; 12622 ; 12623 return 0; 12624} 12625_ACEOF 12626if ac_fn_c_try_compile "$LINENO"; then : 12627 ac_cv_type_mbstate_t=yes 12628else 12629 ac_cv_type_mbstate_t=no 12630fi 12631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12632fi 12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 12634$as_echo "$ac_cv_type_mbstate_t" >&6; } 12635 if test $ac_cv_type_mbstate_t = yes; then 12636 12637$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 12638 12639 else 12640 12641$as_echo "#define mbstate_t int" >>confdefs.h 12642 12643 fi 12644 12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 12646$as_echo_n "checking for struct option in getopt... " >&6; } 12647if ${ac_cv_struct_option_getopt_h+:} false; then : 12648 $as_echo_n "(cached) " >&6 12649else 12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12651/* end confdefs.h. */ 12652#include <getopt.h> 12653int 12654main () 12655{ 12656struct option op; op.name; 12657 ; 12658 return 0; 12659} 12660_ACEOF 12661if ac_fn_c_try_compile "$LINENO"; then : 12662 ac_cv_struct_option_getopt_h=yes 12663else 12664 ac_cv_struct_option_getopt_h=no 12665fi 12666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12667fi 12668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 12669$as_echo "$ac_cv_struct_option_getopt_h" >&6; } 12670if test "$ac_cv_struct_option_getopt_h" = yes; then 12671 12672$as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 12673 12674fi 12675 12676 12677ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12678if test "x$ac_cv_type_pid_t" = xyes; then : 12679 12680cat >>confdefs.h <<_ACEOF 12681#define HAVE_PID_T 1 12682_ACEOF 12683 12684 12685fi 12686ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 12687if test "x$ac_cv_type_uint8_t" = xyes; then : 12688 12689cat >>confdefs.h <<_ACEOF 12690#define HAVE_UINT8_T 1 12691_ACEOF 12692 12693 12694fi 12695ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 12696if test "x$ac_cv_type_uint16_t" = xyes; then : 12697 12698cat >>confdefs.h <<_ACEOF 12699#define HAVE_UINT16_T 1 12700_ACEOF 12701 12702 12703fi 12704ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 12705if test "x$ac_cv_type_uint32_t" = xyes; then : 12706 12707cat >>confdefs.h <<_ACEOF 12708#define HAVE_UINT32_T 1 12709_ACEOF 12710 12711 12712fi 12713ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 12714if test "x$ac_cv_type_int32_t" = xyes; then : 12715 12716cat >>confdefs.h <<_ACEOF 12717#define HAVE_INT32_T 1 12718_ACEOF 12719 12720 12721fi 12722ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 12723if test "x$ac_cv_type_uint64_t" = xyes; then : 12724 12725cat >>confdefs.h <<_ACEOF 12726#define HAVE_UINT64_T 1 12727_ACEOF 12728 12729 12730fi 12731ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 12732if test "x$ac_cv_type_int64_t" = xyes; then : 12733 12734cat >>confdefs.h <<_ACEOF 12735#define HAVE_INT64_T 1 12736_ACEOF 12737 12738 12739fi 12740 12741# The cast to long int works around a bug in the HP C Compiler 12742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12744# This bug is HP SR number 8606223364. 12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12746$as_echo_n "checking size of long long... " >&6; } 12747if ${ac_cv_sizeof_long_long+:} false; then : 12748 $as_echo_n "(cached) " >&6 12749else 12750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 12751 12752else 12753 if test "$ac_cv_type_long_long" = yes; then 12754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12756as_fn_error 77 "cannot compute sizeof (long long) 12757See \`config.log' for more details" "$LINENO" 5; } 12758 else 12759 ac_cv_sizeof_long_long=0 12760 fi 12761fi 12762 12763fi 12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12765$as_echo "$ac_cv_sizeof_long_long" >&6; } 12766 12767 12768 12769cat >>confdefs.h <<_ACEOF 12770#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12771_ACEOF 12772 12773 12774 12775 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 12777$as_echo_n "checking for gcc compiler warnings... " >&6; } 12778# Check whether --enable-warnings was given. 12779if test "${enable_warnings+set}" = set; then : 12780 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12782$as_echo "no" >&6; } 12783 WARNINGS= 12784else 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12786$as_echo "yes" >&6; } 12787 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 12788 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 12789 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 12790 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 12791fi 12792else 12793 12794if test "$GCC" = yes; then 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12796$as_echo "yes" >&6; } 12797 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 12798 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 12799 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 12800 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 12801else 12802 WARNINGS= 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12804$as_echo "no" >&6; } 12805fi 12806fi 12807 12808 12809for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof fork 12810do : 12811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12812ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12813if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12814 cat >>confdefs.h <<_ACEOF 12815#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12816_ACEOF 12817 12818fi 12819done 12820 12821 12822ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 12823if test "x$ac_cv_func_getopt_long" = xyes; then : 12824 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 12825 12826else 12827 case " $LIBOBJS " in 12828 *" getopt_long.$ac_objext "* ) ;; 12829 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 12830 ;; 12831esac 12832 12833fi 12834 12835ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 12836if test "x$ac_cv_func_asprintf" = xyes; then : 12837 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 12838 12839else 12840 case " $LIBOBJS " in 12841 *" asprintf.$ac_objext "* ) ;; 12842 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 12843 ;; 12844esac 12845 12846fi 12847 12848ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 12849if test "x$ac_cv_func_vasprintf" = xyes; then : 12850 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h 12851 12852else 12853 case " $LIBOBJS " in 12854 *" vasprintf.$ac_objext "* ) ;; 12855 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 12856 ;; 12857esac 12858 12859fi 12860 12861ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 12862if test "x$ac_cv_func_strlcpy" = xyes; then : 12863 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 12864 12865else 12866 case " $LIBOBJS " in 12867 *" strlcpy.$ac_objext "* ) ;; 12868 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 12869 ;; 12870esac 12871 12872fi 12873 12874ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 12875if test "x$ac_cv_func_strlcat" = xyes; then : 12876 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 12877 12878else 12879 case " $LIBOBJS " in 12880 *" strlcat.$ac_objext "* ) ;; 12881 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 12882 ;; 12883esac 12884 12885fi 12886 12887ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 12888if test "x$ac_cv_func_getline" = xyes; then : 12889 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 12890 12891else 12892 case " $LIBOBJS " in 12893 *" getline.$ac_objext "* ) ;; 12894 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 12895 ;; 12896esac 12897 12898fi 12899 12900 12901 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 12903$as_echo_n "checking for gzopen in -lz... " >&6; } 12904if ${ac_cv_lib_z_gzopen+:} false; then : 12905 $as_echo_n "(cached) " >&6 12906else 12907 ac_check_lib_save_LIBS=$LIBS 12908LIBS="-lz $LIBS" 12909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12910/* end confdefs.h. */ 12911 12912/* Override any GCC internal prototype to avoid an error. 12913 Use char because int might match the return type of a GCC 12914 builtin and then its argument prototype would still apply. */ 12915#ifdef __cplusplus 12916extern "C" 12917#endif 12918char gzopen (); 12919int 12920main () 12921{ 12922return gzopen (); 12923 ; 12924 return 0; 12925} 12926_ACEOF 12927if ac_fn_c_try_link "$LINENO"; then : 12928 ac_cv_lib_z_gzopen=yes 12929else 12930 ac_cv_lib_z_gzopen=no 12931fi 12932rm -f core conftest.err conftest.$ac_objext \ 12933 conftest$ac_exeext conftest.$ac_ext 12934LIBS=$ac_check_lib_save_LIBS 12935fi 12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 12937$as_echo "$ac_cv_lib_z_gzopen" >&6; } 12938if test "x$ac_cv_lib_z_gzopen" = xyes; then : 12939 cat >>confdefs.h <<_ACEOF 12940#define HAVE_LIBZ 1 12941_ACEOF 12942 12943 LIBS="-lz $LIBS" 12944 12945fi 12946 12947if test "$MINGW" = 1; then 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 12949$as_echo_n "checking for regexec in -lgnurx... " >&6; } 12950if ${ac_cv_lib_gnurx_regexec+:} false; then : 12951 $as_echo_n "(cached) " >&6 12952else 12953 ac_check_lib_save_LIBS=$LIBS 12954LIBS="-lgnurx $LIBS" 12955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12956/* end confdefs.h. */ 12957 12958/* Override any GCC internal prototype to avoid an error. 12959 Use char because int might match the return type of a GCC 12960 builtin and then its argument prototype would still apply. */ 12961#ifdef __cplusplus 12962extern "C" 12963#endif 12964char regexec (); 12965int 12966main () 12967{ 12968return regexec (); 12969 ; 12970 return 0; 12971} 12972_ACEOF 12973if ac_fn_c_try_link "$LINENO"; then : 12974 ac_cv_lib_gnurx_regexec=yes 12975else 12976 ac_cv_lib_gnurx_regexec=no 12977fi 12978rm -f core conftest.err conftest.$ac_objext \ 12979 conftest$ac_exeext conftest.$ac_ext 12980LIBS=$ac_check_lib_save_LIBS 12981fi 12982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 12983$as_echo "$ac_cv_lib_gnurx_regexec" >&6; } 12984if test "x$ac_cv_lib_gnurx_regexec" = xyes; then : 12985 cat >>confdefs.h <<_ACEOF 12986#define HAVE_LIBGNURX 1 12987_ACEOF 12988 12989 LIBS="-lgnurx $LIBS" 12990 12991else 12992 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 12993fi 12994 12995fi 12996 12997 if test "$cross_compiling" = yes; then 12998 IS_CROSS_COMPILE_TRUE= 12999 IS_CROSS_COMPILE_FALSE='#' 13000else 13001 IS_CROSS_COMPILE_TRUE='#' 13002 IS_CROSS_COMPILE_FALSE= 13003fi 13004 13005 13006ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile" 13007 13008cat >confcache <<\_ACEOF 13009# This file is a shell script that caches the results of configure 13010# tests run on this system so they can be shared between configure 13011# scripts and configure runs, see configure's option --config-cache. 13012# It is not useful on other systems. If it contains results you don't 13013# want to keep, you may remove or edit it. 13014# 13015# config.status only pays attention to the cache file if you give it 13016# the --recheck option to rerun configure. 13017# 13018# `ac_cv_env_foo' variables (set or unset) will be overridden when 13019# loading this file, other *unset* `ac_cv_foo' will be assigned the 13020# following values. 13021 13022_ACEOF 13023 13024# The following way of writing the cache mishandles newlines in values, 13025# but we know of no workaround that is simple, portable, and efficient. 13026# So, we kill variables containing newlines. 13027# Ultrix sh set writes to stderr and can't be redirected directly, 13028# and sets the high bit in the cache file unless we assign to the vars. 13029( 13030 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13031 eval ac_val=\$$ac_var 13032 case $ac_val in #( 13033 *${as_nl}*) 13034 case $ac_var in #( 13035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13037 esac 13038 case $ac_var in #( 13039 _ | IFS | as_nl) ;; #( 13040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13041 *) { eval $ac_var=; unset $ac_var;} ;; 13042 esac ;; 13043 esac 13044 done 13045 13046 (set) 2>&1 | 13047 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13048 *${as_nl}ac_space=\ *) 13049 # `set' does not quote correctly, so add quotes: double-quote 13050 # substitution turns \\\\ into \\, and sed turns \\ into \. 13051 sed -n \ 13052 "s/'/'\\\\''/g; 13053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13054 ;; #( 13055 *) 13056 # `set' quotes correctly as required by POSIX, so do not add quotes. 13057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13058 ;; 13059 esac | 13060 sort 13061) | 13062 sed ' 13063 /^ac_cv_env_/b end 13064 t clear 13065 :clear 13066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13067 t end 13068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13069 :end' >>confcache 13070if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13071 if test -w "$cache_file"; then 13072 if test "x$cache_file" != "x/dev/null"; then 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13074$as_echo "$as_me: updating cache $cache_file" >&6;} 13075 if test ! -f "$cache_file" || test -h "$cache_file"; then 13076 cat confcache >"$cache_file" 13077 else 13078 case $cache_file in #( 13079 */* | ?:*) 13080 mv -f confcache "$cache_file"$$ && 13081 mv -f "$cache_file"$$ "$cache_file" ;; #( 13082 *) 13083 mv -f confcache "$cache_file" ;; 13084 esac 13085 fi 13086 fi 13087 else 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13089$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13090 fi 13091fi 13092rm -f confcache 13093 13094test "x$prefix" = xNONE && prefix=$ac_default_prefix 13095# Let make expand exec_prefix. 13096test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13097 13098DEFS=-DHAVE_CONFIG_H 13099 13100ac_libobjs= 13101ac_ltlibobjs= 13102U= 13103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13104 # 1. Remove the extension, and $U if already installed. 13105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13108 # will be set to the directory where LIBOBJS objects are built. 13109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13111done 13112LIBOBJS=$ac_libobjs 13113 13114LTLIBOBJS=$ac_ltlibobjs 13115 13116 13117 if test -n "$EXEEXT"; then 13118 am__EXEEXT_TRUE= 13119 am__EXEEXT_FALSE='#' 13120else 13121 am__EXEEXT_TRUE='#' 13122 am__EXEEXT_FALSE= 13123fi 13124 13125if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 13126 as_fn_error $? "conditional \"MINGW\" was never defined. 13127Usually this means the macro was only invoked conditionally." "$LINENO" 5 13128fi 13129if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 13130 as_fn_error $? "conditional \"FSECT5\" was never defined. 13131Usually this means the macro was only invoked conditionally." "$LINENO" 5 13132fi 13133if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13134 as_fn_error $? "conditional \"AMDEP\" was never defined. 13135Usually this means the macro was only invoked conditionally." "$LINENO" 5 13136fi 13137if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13138 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13139Usually this means the macro was only invoked conditionally." "$LINENO" 5 13140fi 13141if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13142 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13143Usually this means the macro was only invoked conditionally." "$LINENO" 5 13144fi 13145if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 13146 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 13147Usually this means the macro was only invoked conditionally." "$LINENO" 5 13148fi 13149 13150: "${CONFIG_STATUS=./config.status}" 13151ac_write_fail=0 13152ac_clean_files_save=$ac_clean_files 13153ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13154{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13155$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13156as_write_fail=0 13157cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13158#! $SHELL 13159# Generated by $as_me. 13160# Run this file to recreate the current configuration. 13161# Compiler output produced by configure, useful for debugging 13162# configure, is in config.log if it exists. 13163 13164debug=false 13165ac_cs_recheck=false 13166ac_cs_silent=false 13167 13168SHELL=\${CONFIG_SHELL-$SHELL} 13169export SHELL 13170_ASEOF 13171cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13172## -------------------- ## 13173## M4sh Initialization. ## 13174## -------------------- ## 13175 13176# Be more Bourne compatible 13177DUALCASE=1; export DUALCASE # for MKS sh 13178if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13179 emulate sh 13180 NULLCMD=: 13181 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13182 # is contrary to our usage. Disable this feature. 13183 alias -g '${1+"$@"}'='"$@"' 13184 setopt NO_GLOB_SUBST 13185else 13186 case `(set -o) 2>/dev/null` in #( 13187 *posix*) : 13188 set -o posix ;; #( 13189 *) : 13190 ;; 13191esac 13192fi 13193 13194 13195as_nl=' 13196' 13197export as_nl 13198# Printing a long string crashes Solaris 7 /usr/bin/printf. 13199as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13200as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13201as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13202# Prefer a ksh shell builtin over an external printf program on Solaris, 13203# but without wasting forks for bash or zsh. 13204if test -z "$BASH_VERSION$ZSH_VERSION" \ 13205 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13206 as_echo='print -r --' 13207 as_echo_n='print -rn --' 13208elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13209 as_echo='printf %s\n' 13210 as_echo_n='printf %s' 13211else 13212 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13213 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13214 as_echo_n='/usr/ucb/echo -n' 13215 else 13216 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13217 as_echo_n_body='eval 13218 arg=$1; 13219 case $arg in #( 13220 *"$as_nl"*) 13221 expr "X$arg" : "X\\(.*\\)$as_nl"; 13222 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13223 esac; 13224 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13225 ' 13226 export as_echo_n_body 13227 as_echo_n='sh -c $as_echo_n_body as_echo' 13228 fi 13229 export as_echo_body 13230 as_echo='sh -c $as_echo_body as_echo' 13231fi 13232 13233# The user is always right. 13234if test "${PATH_SEPARATOR+set}" != set; then 13235 PATH_SEPARATOR=: 13236 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13237 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13238 PATH_SEPARATOR=';' 13239 } 13240fi 13241 13242 13243# IFS 13244# We need space, tab and new line, in precisely that order. Quoting is 13245# there to prevent editors from complaining about space-tab. 13246# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13247# splitting by setting IFS to empty value.) 13248IFS=" "" $as_nl" 13249 13250# Find who we are. Look in the path if we contain no directory separator. 13251as_myself= 13252case $0 in #(( 13253 *[\\/]* ) as_myself=$0 ;; 13254 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13255for as_dir in $PATH 13256do 13257 IFS=$as_save_IFS 13258 test -z "$as_dir" && as_dir=. 13259 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13260 done 13261IFS=$as_save_IFS 13262 13263 ;; 13264esac 13265# We did not find ourselves, most probably we were run as `sh COMMAND' 13266# in which case we are not to be found in the path. 13267if test "x$as_myself" = x; then 13268 as_myself=$0 13269fi 13270if test ! -f "$as_myself"; then 13271 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13272 exit 1 13273fi 13274 13275# Unset variables that we do not need and which cause bugs (e.g. in 13276# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13277# suppresses any "Segmentation fault" message there. '((' could 13278# trigger a bug in pdksh 5.2.14. 13279for as_var in BASH_ENV ENV MAIL MAILPATH 13280do eval test x\${$as_var+set} = xset \ 13281 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13282done 13283PS1='$ ' 13284PS2='> ' 13285PS4='+ ' 13286 13287# NLS nuisances. 13288LC_ALL=C 13289export LC_ALL 13290LANGUAGE=C 13291export LANGUAGE 13292 13293# CDPATH. 13294(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13295 13296 13297# as_fn_error STATUS ERROR [LINENO LOG_FD] 13298# ---------------------------------------- 13299# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13300# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13301# script with STATUS, using 1 if that was 0. 13302as_fn_error () 13303{ 13304 as_status=$1; test $as_status -eq 0 && as_status=1 13305 if test "$4"; then 13306 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13307 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13308 fi 13309 $as_echo "$as_me: error: $2" >&2 13310 as_fn_exit $as_status 13311} # as_fn_error 13312 13313 13314# as_fn_set_status STATUS 13315# ----------------------- 13316# Set $? to STATUS, without forking. 13317as_fn_set_status () 13318{ 13319 return $1 13320} # as_fn_set_status 13321 13322# as_fn_exit STATUS 13323# ----------------- 13324# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13325as_fn_exit () 13326{ 13327 set +e 13328 as_fn_set_status $1 13329 exit $1 13330} # as_fn_exit 13331 13332# as_fn_unset VAR 13333# --------------- 13334# Portably unset VAR. 13335as_fn_unset () 13336{ 13337 { eval $1=; unset $1;} 13338} 13339as_unset=as_fn_unset 13340# as_fn_append VAR VALUE 13341# ---------------------- 13342# Append the text in VALUE to the end of the definition contained in VAR. Take 13343# advantage of any shell optimizations that allow amortized linear growth over 13344# repeated appends, instead of the typical quadratic growth present in naive 13345# implementations. 13346if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13347 eval 'as_fn_append () 13348 { 13349 eval $1+=\$2 13350 }' 13351else 13352 as_fn_append () 13353 { 13354 eval $1=\$$1\$2 13355 } 13356fi # as_fn_append 13357 13358# as_fn_arith ARG... 13359# ------------------ 13360# Perform arithmetic evaluation on the ARGs, and store the result in the 13361# global $as_val. Take advantage of shells that can avoid forks. The arguments 13362# must be portable across $(()) and expr. 13363if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13364 eval 'as_fn_arith () 13365 { 13366 as_val=$(( $* )) 13367 }' 13368else 13369 as_fn_arith () 13370 { 13371 as_val=`expr "$@" || test $? -eq 1` 13372 } 13373fi # as_fn_arith 13374 13375 13376if expr a : '\(a\)' >/dev/null 2>&1 && 13377 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13378 as_expr=expr 13379else 13380 as_expr=false 13381fi 13382 13383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13384 as_basename=basename 13385else 13386 as_basename=false 13387fi 13388 13389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13390 as_dirname=dirname 13391else 13392 as_dirname=false 13393fi 13394 13395as_me=`$as_basename -- "$0" || 13396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13397 X"$0" : 'X\(//\)$' \| \ 13398 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13399$as_echo X/"$0" | 13400 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13401 s//\1/ 13402 q 13403 } 13404 /^X\/\(\/\/\)$/{ 13405 s//\1/ 13406 q 13407 } 13408 /^X\/\(\/\).*/{ 13409 s//\1/ 13410 q 13411 } 13412 s/.*/./; q'` 13413 13414# Avoid depending upon Character Ranges. 13415as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13417as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13418as_cr_digits='0123456789' 13419as_cr_alnum=$as_cr_Letters$as_cr_digits 13420 13421ECHO_C= ECHO_N= ECHO_T= 13422case `echo -n x` in #((((( 13423-n*) 13424 case `echo 'xy\c'` in 13425 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13426 xy) ECHO_C='\c';; 13427 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13428 ECHO_T=' ';; 13429 esac;; 13430*) 13431 ECHO_N='-n';; 13432esac 13433 13434rm -f conf$$ conf$$.exe conf$$.file 13435if test -d conf$$.dir; then 13436 rm -f conf$$.dir/conf$$.file 13437else 13438 rm -f conf$$.dir 13439 mkdir conf$$.dir 2>/dev/null 13440fi 13441if (echo >conf$$.file) 2>/dev/null; then 13442 if ln -s conf$$.file conf$$ 2>/dev/null; then 13443 as_ln_s='ln -s' 13444 # ... but there are two gotchas: 13445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13447 # In both cases, we have to default to `cp -p'. 13448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13449 as_ln_s='cp -p' 13450 elif ln conf$$.file conf$$ 2>/dev/null; then 13451 as_ln_s=ln 13452 else 13453 as_ln_s='cp -p' 13454 fi 13455else 13456 as_ln_s='cp -p' 13457fi 13458rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13459rmdir conf$$.dir 2>/dev/null 13460 13461 13462# as_fn_mkdir_p 13463# ------------- 13464# Create "$as_dir" as a directory, including parents if necessary. 13465as_fn_mkdir_p () 13466{ 13467 13468 case $as_dir in #( 13469 -*) as_dir=./$as_dir;; 13470 esac 13471 test -d "$as_dir" || eval $as_mkdir_p || { 13472 as_dirs= 13473 while :; do 13474 case $as_dir in #( 13475 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13476 *) as_qdir=$as_dir;; 13477 esac 13478 as_dirs="'$as_qdir' $as_dirs" 13479 as_dir=`$as_dirname -- "$as_dir" || 13480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13481 X"$as_dir" : 'X\(//\)[^/]' \| \ 13482 X"$as_dir" : 'X\(//\)$' \| \ 13483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13484$as_echo X"$as_dir" | 13485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13486 s//\1/ 13487 q 13488 } 13489 /^X\(\/\/\)[^/].*/{ 13490 s//\1/ 13491 q 13492 } 13493 /^X\(\/\/\)$/{ 13494 s//\1/ 13495 q 13496 } 13497 /^X\(\/\).*/{ 13498 s//\1/ 13499 q 13500 } 13501 s/.*/./; q'` 13502 test -d "$as_dir" && break 13503 done 13504 test -z "$as_dirs" || eval "mkdir $as_dirs" 13505 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13506 13507 13508} # as_fn_mkdir_p 13509if mkdir -p . 2>/dev/null; then 13510 as_mkdir_p='mkdir -p "$as_dir"' 13511else 13512 test -d ./-p && rmdir ./-p 13513 as_mkdir_p=false 13514fi 13515 13516if test -x / >/dev/null 2>&1; then 13517 as_test_x='test -x' 13518else 13519 if ls -dL / >/dev/null 2>&1; then 13520 as_ls_L_option=L 13521 else 13522 as_ls_L_option= 13523 fi 13524 as_test_x=' 13525 eval sh -c '\'' 13526 if test -d "$1"; then 13527 test -d "$1/."; 13528 else 13529 case $1 in #( 13530 -*)set "./$1";; 13531 esac; 13532 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13533 ???[sx]*):;;*)false;;esac;fi 13534 '\'' sh 13535 ' 13536fi 13537as_executable_p=$as_test_x 13538 13539# Sed expression to map a string onto a valid CPP name. 13540as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13541 13542# Sed expression to map a string onto a valid variable name. 13543as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13544 13545 13546exec 6>&1 13547## ----------------------------------- ## 13548## Main body of $CONFIG_STATUS script. ## 13549## ----------------------------------- ## 13550_ASEOF 13551test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13552 13553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13554# Save the log message, to keep $0 and so on meaningful, and to 13555# report actual input values of CONFIG_FILES etc. instead of their 13556# values after options handling. 13557ac_log=" 13558This file was extended by file $as_me 5.11, which was 13559generated by GNU Autoconf 2.68. Invocation command line was 13560 13561 CONFIG_FILES = $CONFIG_FILES 13562 CONFIG_HEADERS = $CONFIG_HEADERS 13563 CONFIG_LINKS = $CONFIG_LINKS 13564 CONFIG_COMMANDS = $CONFIG_COMMANDS 13565 $ $0 $@ 13566 13567on `(hostname || uname -n) 2>/dev/null | sed 1q` 13568" 13569 13570_ACEOF 13571 13572case $ac_config_files in *" 13573"*) set x $ac_config_files; shift; ac_config_files=$*;; 13574esac 13575 13576case $ac_config_headers in *" 13577"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13578esac 13579 13580 13581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13582# Files that config.status was made for. 13583config_files="$ac_config_files" 13584config_headers="$ac_config_headers" 13585config_commands="$ac_config_commands" 13586 13587_ACEOF 13588 13589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13590ac_cs_usage="\ 13591\`$as_me' instantiates files and other configuration actions 13592from templates according to the current configuration. Unless the files 13593and actions are specified as TAGs, all are instantiated by default. 13594 13595Usage: $0 [OPTION]... [TAG]... 13596 13597 -h, --help print this help, then exit 13598 -V, --version print version number and configuration settings, then exit 13599 --config print configuration, then exit 13600 -q, --quiet, --silent 13601 do not print progress messages 13602 -d, --debug don't remove temporary files 13603 --recheck update $as_me by reconfiguring in the same conditions 13604 --file=FILE[:TEMPLATE] 13605 instantiate the configuration file FILE 13606 --header=FILE[:TEMPLATE] 13607 instantiate the configuration header FILE 13608 13609Configuration files: 13610$config_files 13611 13612Configuration headers: 13613$config_headers 13614 13615Configuration commands: 13616$config_commands 13617 13618Report bugs to <christos@astron.com>." 13619 13620_ACEOF 13621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13622ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13623ac_cs_version="\\ 13624file config.status 5.11 13625configured by $0, generated by GNU Autoconf 2.68, 13626 with options \\"\$ac_cs_config\\" 13627 13628Copyright (C) 2010 Free Software Foundation, Inc. 13629This config.status script is free software; the Free Software Foundation 13630gives unlimited permission to copy, distribute and modify it." 13631 13632ac_pwd='$ac_pwd' 13633srcdir='$srcdir' 13634INSTALL='$INSTALL' 13635MKDIR_P='$MKDIR_P' 13636AWK='$AWK' 13637test -n "\$AWK" || AWK=awk 13638_ACEOF 13639 13640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13641# The default lists apply if the user does not specify any file. 13642ac_need_defaults=: 13643while test $# != 0 13644do 13645 case $1 in 13646 --*=?*) 13647 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13649 ac_shift=: 13650 ;; 13651 --*=) 13652 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13653 ac_optarg= 13654 ac_shift=: 13655 ;; 13656 *) 13657 ac_option=$1 13658 ac_optarg=$2 13659 ac_shift=shift 13660 ;; 13661 esac 13662 13663 case $ac_option in 13664 # Handling of the options. 13665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13666 ac_cs_recheck=: ;; 13667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13668 $as_echo "$ac_cs_version"; exit ;; 13669 --config | --confi | --conf | --con | --co | --c ) 13670 $as_echo "$ac_cs_config"; exit ;; 13671 --debug | --debu | --deb | --de | --d | -d ) 13672 debug=: ;; 13673 --file | --fil | --fi | --f ) 13674 $ac_shift 13675 case $ac_optarg in 13676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13677 '') as_fn_error $? "missing file argument" ;; 13678 esac 13679 as_fn_append CONFIG_FILES " '$ac_optarg'" 13680 ac_need_defaults=false;; 13681 --header | --heade | --head | --hea ) 13682 $ac_shift 13683 case $ac_optarg in 13684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13685 esac 13686 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13687 ac_need_defaults=false;; 13688 --he | --h) 13689 # Conflict between --help and --header 13690 as_fn_error $? "ambiguous option: \`$1' 13691Try \`$0 --help' for more information.";; 13692 --help | --hel | -h ) 13693 $as_echo "$ac_cs_usage"; exit ;; 13694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13695 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13696 ac_cs_silent=: ;; 13697 13698 # This is an error. 13699 -*) as_fn_error $? "unrecognized option: \`$1' 13700Try \`$0 --help' for more information." ;; 13701 13702 *) as_fn_append ac_config_targets " $1" 13703 ac_need_defaults=false ;; 13704 13705 esac 13706 shift 13707done 13708 13709ac_configure_extra_args= 13710 13711if $ac_cs_silent; then 13712 exec 6>/dev/null 13713 ac_configure_extra_args="$ac_configure_extra_args --silent" 13714fi 13715 13716_ACEOF 13717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13718if \$ac_cs_recheck; then 13719 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13720 shift 13721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13722 CONFIG_SHELL='$SHELL' 13723 export CONFIG_SHELL 13724 exec "\$@" 13725fi 13726 13727_ACEOF 13728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13729exec 5>>config.log 13730{ 13731 echo 13732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13733## Running $as_me. ## 13734_ASBOX 13735 $as_echo "$ac_log" 13736} >&5 13737 13738_ACEOF 13739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13740# 13741# INIT-COMMANDS 13742# 13743AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13744 13745 13746# The HP-UX ksh and POSIX shell print the target directory to stdout 13747# if CDPATH is set. 13748(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13749 13750sed_quote_subst='$sed_quote_subst' 13751double_quote_subst='$double_quote_subst' 13752delay_variable_subst='$delay_variable_subst' 13753macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13754macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13755enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13756enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13757pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13758enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13759host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13760host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13761host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13762build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13763build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13764build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13765SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13766Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13767GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13768EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13769FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13770LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13771NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13772LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13773max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13774ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13775exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13776lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13777lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13778lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13779reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13780reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13781OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13782deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13783file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13784AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13785AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13786STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13787RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13788old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13789old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13790old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13791CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13792CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13793compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13794GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13795lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13796lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13797lt_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"`' 13798lt_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"`' 13799objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13800SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13801ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13802MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13803lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13804lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13805lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13806lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13807lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13808need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13809DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13810NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13811LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13812OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13813OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13814libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13815shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13816extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13817archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13818enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13819export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13820whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13821compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13822old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13823old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13824archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13825archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13826module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13827module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13828with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13829allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13830no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13831hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13832hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13833hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13834hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13835hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13836hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13837hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13838hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13839inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13840link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13841fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13842always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13843export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13844exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13845include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13846prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13847file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13848variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13849need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13850need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13851version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13852runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13853shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13854shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13855libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13856library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13857soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13858postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13859postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13860finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13861finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13862hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13863sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13864sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13865hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13866enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13867enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13868enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13869old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13870striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13871 13872LTCC='$LTCC' 13873LTCFLAGS='$LTCFLAGS' 13874compiler='$compiler_DEFAULT' 13875 13876# Quote evaled strings. 13877for var in SED \ 13878GREP \ 13879EGREP \ 13880FGREP \ 13881LD \ 13882NM \ 13883LN_S \ 13884lt_SP2NL \ 13885lt_NL2SP \ 13886reload_flag \ 13887OBJDUMP \ 13888deplibs_check_method \ 13889file_magic_cmd \ 13890AR \ 13891AR_FLAGS \ 13892STRIP \ 13893RANLIB \ 13894CC \ 13895CFLAGS \ 13896compiler \ 13897lt_cv_sys_global_symbol_pipe \ 13898lt_cv_sys_global_symbol_to_cdecl \ 13899lt_cv_sys_global_symbol_to_c_name_address \ 13900lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13901SHELL \ 13902ECHO \ 13903lt_prog_compiler_no_builtin_flag \ 13904lt_prog_compiler_wl \ 13905lt_prog_compiler_pic \ 13906lt_prog_compiler_static \ 13907lt_cv_prog_compiler_c_o \ 13908need_locks \ 13909DSYMUTIL \ 13910NMEDIT \ 13911LIPO \ 13912OTOOL \ 13913OTOOL64 \ 13914shrext_cmds \ 13915export_dynamic_flag_spec \ 13916whole_archive_flag_spec \ 13917compiler_needs_object \ 13918with_gnu_ld \ 13919allow_undefined_flag \ 13920no_undefined_flag \ 13921hardcode_libdir_flag_spec \ 13922hardcode_libdir_flag_spec_ld \ 13923hardcode_libdir_separator \ 13924fix_srcfile_path \ 13925exclude_expsyms \ 13926include_expsyms \ 13927file_list_spec \ 13928variables_saved_for_relink \ 13929libname_spec \ 13930library_names_spec \ 13931soname_spec \ 13932finish_eval \ 13933old_striplib \ 13934striplib; do 13935 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13936 *[\\\\\\\`\\"\\\$]*) 13937 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13938 ;; 13939 *) 13940 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13941 ;; 13942 esac 13943done 13944 13945# Double-quote double-evaled strings. 13946for var in reload_cmds \ 13947old_postinstall_cmds \ 13948old_postuninstall_cmds \ 13949old_archive_cmds \ 13950extract_expsyms_cmds \ 13951old_archive_from_new_cmds \ 13952old_archive_from_expsyms_cmds \ 13953archive_cmds \ 13954archive_expsym_cmds \ 13955module_cmds \ 13956module_expsym_cmds \ 13957export_symbols_cmds \ 13958prelink_cmds \ 13959postinstall_cmds \ 13960postuninstall_cmds \ 13961finish_cmds \ 13962sys_lib_search_path_spec \ 13963sys_lib_dlsearch_path_spec; do 13964 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13965 *[\\\\\\\`\\"\\\$]*) 13966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13967 ;; 13968 *) 13969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13970 ;; 13971 esac 13972done 13973 13974# Fix-up fallback echo if it was mangled by the above quoting rules. 13975case \$lt_ECHO in 13976*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13977 ;; 13978esac 13979 13980ac_aux_dir='$ac_aux_dir' 13981xsi_shell='$xsi_shell' 13982lt_shell_append='$lt_shell_append' 13983 13984# See if we are running on zsh, and set the options which allow our 13985# commands through without removal of \ escapes INIT. 13986if test -n "\${ZSH_VERSION+set}" ; then 13987 setopt NO_GLOB_SUBST 13988fi 13989 13990 13991 PACKAGE='$PACKAGE' 13992 VERSION='$VERSION' 13993 TIMESTAMP='$TIMESTAMP' 13994 RM='$RM' 13995 ofile='$ofile' 13996 13997 13998 13999 14000_ACEOF 14001 14002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14003 14004# Handling of arguments. 14005for ac_config_target in $ac_config_targets 14006do 14007 case $ac_config_target in 14008 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14009 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14010 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14012 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14013 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 14014 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14015 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14016 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 14017 14018 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14019 esac 14020done 14021 14022 14023# If the user did not use the arguments to specify the items to instantiate, 14024# then the envvar interface is used. Set only those that are not. 14025# We use the long form for the default assignment because of an extremely 14026# bizarre bug on SunOS 4.1.3. 14027if $ac_need_defaults; then 14028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14031fi 14032 14033# Have a temporary directory for convenience. Make it in the build tree 14034# simply because there is no reason against having it here, and in addition, 14035# creating and moving files from /tmp can sometimes cause problems. 14036# Hook for its removal unless debugging. 14037# Note that there is a small window in which the directory will not be cleaned: 14038# after its creation but before its name has been assigned to `$tmp'. 14039$debug || 14040{ 14041 tmp= ac_tmp= 14042 trap 'exit_status=$? 14043 : "${ac_tmp:=$tmp}" 14044 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14045' 0 14046 trap 'as_fn_exit 1' 1 2 13 15 14047} 14048# Create a (secure) tmp directory for tmp files. 14049 14050{ 14051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14052 test -d "$tmp" 14053} || 14054{ 14055 tmp=./conf$$-$RANDOM 14056 (umask 077 && mkdir "$tmp") 14057} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14058ac_tmp=$tmp 14059 14060# Set up the scripts for CONFIG_FILES section. 14061# No need to generate them if there are no CONFIG_FILES. 14062# This happens for instance with `./config.status config.h'. 14063if test -n "$CONFIG_FILES"; then 14064 14065 14066ac_cr=`echo X | tr X '\015'` 14067# On cygwin, bash can eat \r inside `` if the user requested igncr. 14068# But we know of no other shell where ac_cr would be empty at this 14069# point, so we can use a bashism as a fallback. 14070if test "x$ac_cr" = x; then 14071 eval ac_cr=\$\'\\r\' 14072fi 14073ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14074if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14075 ac_cs_awk_cr='\\r' 14076else 14077 ac_cs_awk_cr=$ac_cr 14078fi 14079 14080echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14081_ACEOF 14082 14083 14084{ 14085 echo "cat >conf$$subs.awk <<_ACEOF" && 14086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14087 echo "_ACEOF" 14088} >conf$$subs.sh || 14089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14090ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14091ac_delim='%!_!# ' 14092for ac_last_try in false false false false false :; do 14093 . ./conf$$subs.sh || 14094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14095 14096 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14097 if test $ac_delim_n = $ac_delim_num; then 14098 break 14099 elif $ac_last_try; then 14100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14101 else 14102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14103 fi 14104done 14105rm -f conf$$subs.sh 14106 14107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14108cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14109_ACEOF 14110sed -n ' 14111h 14112s/^/S["/; s/!.*/"]=/ 14113p 14114g 14115s/^[^!]*!// 14116:repl 14117t repl 14118s/'"$ac_delim"'$// 14119t delim 14120:nl 14121h 14122s/\(.\{148\}\)..*/\1/ 14123t more1 14124s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14125p 14126n 14127b repl 14128:more1 14129s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14130p 14131g 14132s/.\{148\}// 14133t nl 14134:delim 14135h 14136s/\(.\{148\}\)..*/\1/ 14137t more2 14138s/["\\]/\\&/g; s/^/"/; s/$/"/ 14139p 14140b 14141:more2 14142s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14143p 14144g 14145s/.\{148\}// 14146t delim 14147' <conf$$subs.awk | sed ' 14148/^[^""]/{ 14149 N 14150 s/\n// 14151} 14152' >>$CONFIG_STATUS || ac_write_fail=1 14153rm -f conf$$subs.awk 14154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14155_ACAWK 14156cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14157 for (key in S) S_is_set[key] = 1 14158 FS = "" 14159 14160} 14161{ 14162 line = $ 0 14163 nfields = split(line, field, "@") 14164 substed = 0 14165 len = length(field[1]) 14166 for (i = 2; i < nfields; i++) { 14167 key = field[i] 14168 keylen = length(key) 14169 if (S_is_set[key]) { 14170 value = S[key] 14171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14172 len += length(value) + length(field[++i]) 14173 substed = 1 14174 } else 14175 len += 1 + keylen 14176 } 14177 14178 print line 14179} 14180 14181_ACAWK 14182_ACEOF 14183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14184if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14186else 14187 cat 14188fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14189 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14190_ACEOF 14191 14192# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14193# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14194# trailing colons and then remove the whole line if VPATH becomes empty 14195# (actually we leave an empty line to preserve line numbers). 14196if test "x$srcdir" = x.; then 14197 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14198h 14199s/// 14200s/^/:/ 14201s/[ ]*$/:/ 14202s/:\$(srcdir):/:/g 14203s/:\${srcdir}:/:/g 14204s/:@srcdir@:/:/g 14205s/^:*// 14206s/:*$// 14207x 14208s/\(=[ ]*\).*/\1/ 14209G 14210s/\n// 14211s/^[^=]*=[ ]*$// 14212}' 14213fi 14214 14215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14216fi # test -n "$CONFIG_FILES" 14217 14218# Set up the scripts for CONFIG_HEADERS section. 14219# No need to generate them if there are no CONFIG_HEADERS. 14220# This happens for instance with `./config.status Makefile'. 14221if test -n "$CONFIG_HEADERS"; then 14222cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14223BEGIN { 14224_ACEOF 14225 14226# Transform confdefs.h into an awk script `defines.awk', embedded as 14227# here-document in config.status, that substitutes the proper values into 14228# config.h.in to produce config.h. 14229 14230# Create a delimiter string that does not exist in confdefs.h, to ease 14231# handling of long lines. 14232ac_delim='%!_!# ' 14233for ac_last_try in false false :; do 14234 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14235 if test -z "$ac_tt"; then 14236 break 14237 elif $ac_last_try; then 14238 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14239 else 14240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14241 fi 14242done 14243 14244# For the awk script, D is an array of macro values keyed by name, 14245# likewise P contains macro parameters if any. Preserve backslash 14246# newline sequences. 14247 14248ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14249sed -n ' 14250s/.\{148\}/&'"$ac_delim"'/g 14251t rset 14252:rset 14253s/^[ ]*#[ ]*define[ ][ ]*/ / 14254t def 14255d 14256:def 14257s/\\$// 14258t bsnl 14259s/["\\]/\\&/g 14260s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14261D["\1"]=" \3"/p 14262s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14263d 14264:bsnl 14265s/["\\]/\\&/g 14266s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14267D["\1"]=" \3\\\\\\n"\\/p 14268t cont 14269s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14270t cont 14271d 14272:cont 14273n 14274s/.\{148\}/&'"$ac_delim"'/g 14275t clear 14276:clear 14277s/\\$// 14278t bsnlc 14279s/["\\]/\\&/g; s/^/"/; s/$/"/p 14280d 14281:bsnlc 14282s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14283b cont 14284' <confdefs.h | sed ' 14285s/'"$ac_delim"'/"\\\ 14286"/g' >>$CONFIG_STATUS || ac_write_fail=1 14287 14288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14289 for (key in D) D_is_set[key] = 1 14290 FS = "" 14291} 14292/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14293 line = \$ 0 14294 split(line, arg, " ") 14295 if (arg[1] == "#") { 14296 defundef = arg[2] 14297 mac1 = arg[3] 14298 } else { 14299 defundef = substr(arg[1], 2) 14300 mac1 = arg[2] 14301 } 14302 split(mac1, mac2, "(") #) 14303 macro = mac2[1] 14304 prefix = substr(line, 1, index(line, defundef) - 1) 14305 if (D_is_set[macro]) { 14306 # Preserve the white space surrounding the "#". 14307 print prefix "define", macro P[macro] D[macro] 14308 next 14309 } else { 14310 # Replace #undef with comments. This is necessary, for example, 14311 # in the case of _POSIX_SOURCE, which is predefined and required 14312 # on some systems where configure will not decide to define it. 14313 if (defundef == "undef") { 14314 print "/*", prefix defundef, macro, "*/" 14315 next 14316 } 14317 } 14318} 14319{ print } 14320_ACAWK 14321_ACEOF 14322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14323 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14324fi # test -n "$CONFIG_HEADERS" 14325 14326 14327eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14328shift 14329for ac_tag 14330do 14331 case $ac_tag in 14332 :[FHLC]) ac_mode=$ac_tag; continue;; 14333 esac 14334 case $ac_mode$ac_tag in 14335 :[FHL]*:*);; 14336 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14337 :[FH]-) ac_tag=-:-;; 14338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14339 esac 14340 ac_save_IFS=$IFS 14341 IFS=: 14342 set x $ac_tag 14343 IFS=$ac_save_IFS 14344 shift 14345 ac_file=$1 14346 shift 14347 14348 case $ac_mode in 14349 :L) ac_source=$1;; 14350 :[FH]) 14351 ac_file_inputs= 14352 for ac_f 14353 do 14354 case $ac_f in 14355 -) ac_f="$ac_tmp/stdin";; 14356 *) # Look for the file first in the build tree, then in the source tree 14357 # (if the path is not absolute). The absolute path cannot be DOS-style, 14358 # because $ac_f cannot contain `:'. 14359 test -f "$ac_f" || 14360 case $ac_f in 14361 [\\/$]*) false;; 14362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14363 esac || 14364 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14365 esac 14366 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14367 as_fn_append ac_file_inputs " '$ac_f'" 14368 done 14369 14370 # Let's still pretend it is `configure' which instantiates (i.e., don't 14371 # use $as_me), people would be surprised to read: 14372 # /* config.h. Generated by config.status. */ 14373 configure_input='Generated from '` 14374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14375 `' by configure.' 14376 if test x"$ac_file" != x-; then 14377 configure_input="$ac_file. $configure_input" 14378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14379$as_echo "$as_me: creating $ac_file" >&6;} 14380 fi 14381 # Neutralize special characters interpreted by sed in replacement strings. 14382 case $configure_input in #( 14383 *\&* | *\|* | *\\* ) 14384 ac_sed_conf_input=`$as_echo "$configure_input" | 14385 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14386 *) ac_sed_conf_input=$configure_input;; 14387 esac 14388 14389 case $ac_tag in 14390 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14392 esac 14393 ;; 14394 esac 14395 14396 ac_dir=`$as_dirname -- "$ac_file" || 14397$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14398 X"$ac_file" : 'X\(//\)[^/]' \| \ 14399 X"$ac_file" : 'X\(//\)$' \| \ 14400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14401$as_echo X"$ac_file" | 14402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14403 s//\1/ 14404 q 14405 } 14406 /^X\(\/\/\)[^/].*/{ 14407 s//\1/ 14408 q 14409 } 14410 /^X\(\/\/\)$/{ 14411 s//\1/ 14412 q 14413 } 14414 /^X\(\/\).*/{ 14415 s//\1/ 14416 q 14417 } 14418 s/.*/./; q'` 14419 as_dir="$ac_dir"; as_fn_mkdir_p 14420 ac_builddir=. 14421 14422case "$ac_dir" in 14423.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14424*) 14425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14426 # A ".." for each directory in $ac_dir_suffix. 14427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14428 case $ac_top_builddir_sub in 14429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14431 esac ;; 14432esac 14433ac_abs_top_builddir=$ac_pwd 14434ac_abs_builddir=$ac_pwd$ac_dir_suffix 14435# for backward compatibility: 14436ac_top_builddir=$ac_top_build_prefix 14437 14438case $srcdir in 14439 .) # We are building in place. 14440 ac_srcdir=. 14441 ac_top_srcdir=$ac_top_builddir_sub 14442 ac_abs_top_srcdir=$ac_pwd ;; 14443 [\\/]* | ?:[\\/]* ) # Absolute name. 14444 ac_srcdir=$srcdir$ac_dir_suffix; 14445 ac_top_srcdir=$srcdir 14446 ac_abs_top_srcdir=$srcdir ;; 14447 *) # Relative name. 14448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14449 ac_top_srcdir=$ac_top_build_prefix$srcdir 14450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14451esac 14452ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14453 14454 14455 case $ac_mode in 14456 :F) 14457 # 14458 # CONFIG_FILE 14459 # 14460 14461 case $INSTALL in 14462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14463 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14464 esac 14465 ac_MKDIR_P=$MKDIR_P 14466 case $MKDIR_P in 14467 [\\/$]* | ?:[\\/]* ) ;; 14468 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14469 esac 14470_ACEOF 14471 14472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14473# If the template does not know about datarootdir, expand it. 14474# FIXME: This hack should be removed a few years after 2.60. 14475ac_datarootdir_hack=; ac_datarootdir_seen= 14476ac_sed_dataroot=' 14477/datarootdir/ { 14478 p 14479 q 14480} 14481/@datadir@/p 14482/@docdir@/p 14483/@infodir@/p 14484/@localedir@/p 14485/@mandir@/p' 14486case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14487*datarootdir*) ac_datarootdir_seen=yes;; 14488*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14490$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14491_ACEOF 14492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14493 ac_datarootdir_hack=' 14494 s&@datadir@&$datadir&g 14495 s&@docdir@&$docdir&g 14496 s&@infodir@&$infodir&g 14497 s&@localedir@&$localedir&g 14498 s&@mandir@&$mandir&g 14499 s&\\\${datarootdir}&$datarootdir&g' ;; 14500esac 14501_ACEOF 14502 14503# Neutralize VPATH when `$srcdir' = `.'. 14504# Shell code in configure.ac might set extrasub. 14505# FIXME: do we really want to maintain this feature? 14506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14507ac_sed_extra="$ac_vpsub 14508$extrasub 14509_ACEOF 14510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14511:t 14512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14513s|@configure_input@|$ac_sed_conf_input|;t t 14514s&@top_builddir@&$ac_top_builddir_sub&;t t 14515s&@top_build_prefix@&$ac_top_build_prefix&;t t 14516s&@srcdir@&$ac_srcdir&;t t 14517s&@abs_srcdir@&$ac_abs_srcdir&;t t 14518s&@top_srcdir@&$ac_top_srcdir&;t t 14519s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14520s&@builddir@&$ac_builddir&;t t 14521s&@abs_builddir@&$ac_abs_builddir&;t t 14522s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14523s&@INSTALL@&$ac_INSTALL&;t t 14524s&@MKDIR_P@&$ac_MKDIR_P&;t t 14525$ac_datarootdir_hack 14526" 14527eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14528 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14529 14530test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14531 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14533 "$ac_tmp/out"`; test -z "$ac_out"; } && 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14535which seems to be undefined. Please make sure it is defined" >&5 14536$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14537which seems to be undefined. Please make sure it is defined" >&2;} 14538 14539 rm -f "$ac_tmp/stdin" 14540 case $ac_file in 14541 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14542 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14543 esac \ 14544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14545 ;; 14546 :H) 14547 # 14548 # CONFIG_HEADER 14549 # 14550 if test x"$ac_file" != x-; then 14551 { 14552 $as_echo "/* $configure_input */" \ 14553 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14554 } >"$ac_tmp/config.h" \ 14555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14556 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14558$as_echo "$as_me: $ac_file is unchanged" >&6;} 14559 else 14560 rm -f "$ac_file" 14561 mv "$ac_tmp/config.h" "$ac_file" \ 14562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14563 fi 14564 else 14565 $as_echo "/* $configure_input */" \ 14566 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14567 || as_fn_error $? "could not create -" "$LINENO" 5 14568 fi 14569# Compute "$ac_file"'s index in $config_headers. 14570_am_arg="$ac_file" 14571_am_stamp_count=1 14572for _am_header in $config_headers :; do 14573 case $_am_header in 14574 $_am_arg | $_am_arg:* ) 14575 break ;; 14576 * ) 14577 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14578 esac 14579done 14580echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14581$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14582 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14583 X"$_am_arg" : 'X\(//\)$' \| \ 14584 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14585$as_echo X"$_am_arg" | 14586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14587 s//\1/ 14588 q 14589 } 14590 /^X\(\/\/\)[^/].*/{ 14591 s//\1/ 14592 q 14593 } 14594 /^X\(\/\/\)$/{ 14595 s//\1/ 14596 q 14597 } 14598 /^X\(\/\).*/{ 14599 s//\1/ 14600 q 14601 } 14602 s/.*/./; q'`/stamp-h$_am_stamp_count 14603 ;; 14604 14605 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14606$as_echo "$as_me: executing $ac_file commands" >&6;} 14607 ;; 14608 esac 14609 14610 14611 case $ac_file$ac_mode in 14612 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14613 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14614 # are listed without --file. Let's play safe and only enable the eval 14615 # if we detect the quoting. 14616 case $CONFIG_FILES in 14617 *\'*) eval set x "$CONFIG_FILES" ;; 14618 *) set x $CONFIG_FILES ;; 14619 esac 14620 shift 14621 for mf 14622 do 14623 # Strip MF so we end up with the name of the file. 14624 mf=`echo "$mf" | sed -e 's/:.*$//'` 14625 # Check whether this is an Automake generated Makefile or not. 14626 # We used to match only the files named `Makefile.in', but 14627 # some people rename them; so instead we look at the file content. 14628 # Grep'ing the first line is not enough: some people post-process 14629 # each Makefile.in and add a new line on top of each file to say so. 14630 # Grep'ing the whole file is not good either: AIX grep has a line 14631 # limit of 2048, but all sed's we know have understand at least 4000. 14632 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14633 dirpart=`$as_dirname -- "$mf" || 14634$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14635 X"$mf" : 'X\(//\)[^/]' \| \ 14636 X"$mf" : 'X\(//\)$' \| \ 14637 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14638$as_echo X"$mf" | 14639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14640 s//\1/ 14641 q 14642 } 14643 /^X\(\/\/\)[^/].*/{ 14644 s//\1/ 14645 q 14646 } 14647 /^X\(\/\/\)$/{ 14648 s//\1/ 14649 q 14650 } 14651 /^X\(\/\).*/{ 14652 s//\1/ 14653 q 14654 } 14655 s/.*/./; q'` 14656 else 14657 continue 14658 fi 14659 # Extract the definition of DEPDIR, am__include, and am__quote 14660 # from the Makefile without running `make'. 14661 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14662 test -z "$DEPDIR" && continue 14663 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14664 test -z "am__include" && continue 14665 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14666 # When using ansi2knr, U may be empty or an underscore; expand it 14667 U=`sed -n 's/^U = //p' < "$mf"` 14668 # Find all dependency output files, they are included files with 14669 # $(DEPDIR) in their names. We invoke sed twice because it is the 14670 # simplest approach to changing $(DEPDIR) to its actual value in the 14671 # expansion. 14672 for file in `sed -n " 14673 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14674 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14675 # Make sure the directory exists. 14676 test -f "$dirpart/$file" && continue 14677 fdir=`$as_dirname -- "$file" || 14678$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14679 X"$file" : 'X\(//\)[^/]' \| \ 14680 X"$file" : 'X\(//\)$' \| \ 14681 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14682$as_echo X"$file" | 14683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14684 s//\1/ 14685 q 14686 } 14687 /^X\(\/\/\)[^/].*/{ 14688 s//\1/ 14689 q 14690 } 14691 /^X\(\/\/\)$/{ 14692 s//\1/ 14693 q 14694 } 14695 /^X\(\/\).*/{ 14696 s//\1/ 14697 q 14698 } 14699 s/.*/./; q'` 14700 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14701 # echo "creating $dirpart/$file" 14702 echo '# dummy' > "$dirpart/$file" 14703 done 14704 done 14705} 14706 ;; 14707 "libtool":C) 14708 14709 # See if we are running on zsh, and set the options which allow our 14710 # commands through without removal of \ escapes. 14711 if test -n "${ZSH_VERSION+set}" ; then 14712 setopt NO_GLOB_SUBST 14713 fi 14714 14715 cfgfile="${ofile}T" 14716 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14717 $RM "$cfgfile" 14718 14719 cat <<_LT_EOF >> "$cfgfile" 14720#! $SHELL 14721 14722# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14723# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14724# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14725# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14726# 14727# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14728# 2006, 2007, 2008 Free Software Foundation, Inc. 14729# Written by Gordon Matzigkeit, 1996 14730# 14731# This file is part of GNU Libtool. 14732# 14733# GNU Libtool is free software; you can redistribute it and/or 14734# modify it under the terms of the GNU General Public License as 14735# published by the Free Software Foundation; either version 2 of 14736# the License, or (at your option) any later version. 14737# 14738# As a special exception to the GNU General Public License, 14739# if you distribute this file as part of a program or library that 14740# is built using GNU Libtool, you may include this file under the 14741# same distribution terms that you use for the rest of that program. 14742# 14743# GNU Libtool is distributed in the hope that it will be useful, 14744# but WITHOUT ANY WARRANTY; without even the implied warranty of 14745# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14746# GNU General Public License for more details. 14747# 14748# You should have received a copy of the GNU General Public License 14749# along with GNU Libtool; see the file COPYING. If not, a copy 14750# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14751# obtained by writing to the Free Software Foundation, Inc., 14752# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14753 14754 14755# The names of the tagged configurations supported by this script. 14756available_tags="" 14757 14758# ### BEGIN LIBTOOL CONFIG 14759 14760# Which release of libtool.m4 was used? 14761macro_version=$macro_version 14762macro_revision=$macro_revision 14763 14764# Whether or not to build shared libraries. 14765build_libtool_libs=$enable_shared 14766 14767# Whether or not to build static libraries. 14768build_old_libs=$enable_static 14769 14770# What type of objects to build. 14771pic_mode=$pic_mode 14772 14773# Whether or not to optimize for fast installation. 14774fast_install=$enable_fast_install 14775 14776# The host system. 14777host_alias=$host_alias 14778host=$host 14779host_os=$host_os 14780 14781# The build system. 14782build_alias=$build_alias 14783build=$build 14784build_os=$build_os 14785 14786# A sed program that does not truncate output. 14787SED=$lt_SED 14788 14789# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14790Xsed="\$SED -e 1s/^X//" 14791 14792# A grep program that handles long lines. 14793GREP=$lt_GREP 14794 14795# An ERE matcher. 14796EGREP=$lt_EGREP 14797 14798# A literal string matcher. 14799FGREP=$lt_FGREP 14800 14801# A BSD- or MS-compatible name lister. 14802NM=$lt_NM 14803 14804# Whether we need soft or hard links. 14805LN_S=$lt_LN_S 14806 14807# What is the maximum length of a command? 14808max_cmd_len=$max_cmd_len 14809 14810# Object file suffix (normally "o"). 14811objext=$ac_objext 14812 14813# Executable file suffix (normally ""). 14814exeext=$exeext 14815 14816# whether the shell understands "unset". 14817lt_unset=$lt_unset 14818 14819# turn spaces into newlines. 14820SP2NL=$lt_lt_SP2NL 14821 14822# turn newlines into spaces. 14823NL2SP=$lt_lt_NL2SP 14824 14825# How to create reloadable object files. 14826reload_flag=$lt_reload_flag 14827reload_cmds=$lt_reload_cmds 14828 14829# An object symbol dumper. 14830OBJDUMP=$lt_OBJDUMP 14831 14832# Method to check whether dependent libraries are shared objects. 14833deplibs_check_method=$lt_deplibs_check_method 14834 14835# Command to use when deplibs_check_method == "file_magic". 14836file_magic_cmd=$lt_file_magic_cmd 14837 14838# The archiver. 14839AR=$lt_AR 14840AR_FLAGS=$lt_AR_FLAGS 14841 14842# A symbol stripping program. 14843STRIP=$lt_STRIP 14844 14845# Commands used to install an old-style archive. 14846RANLIB=$lt_RANLIB 14847old_postinstall_cmds=$lt_old_postinstall_cmds 14848old_postuninstall_cmds=$lt_old_postuninstall_cmds 14849 14850# A C compiler. 14851LTCC=$lt_CC 14852 14853# LTCC compiler flags. 14854LTCFLAGS=$lt_CFLAGS 14855 14856# Take the output of nm and produce a listing of raw symbols and C names. 14857global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14858 14859# Transform the output of nm in a proper C declaration. 14860global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14861 14862# Transform the output of nm in a C name address pair. 14863global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14864 14865# Transform the output of nm in a C name address pair when lib prefix is needed. 14866global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14867 14868# The name of the directory that contains temporary libtool files. 14869objdir=$objdir 14870 14871# Shell to use when invoking shell scripts. 14872SHELL=$lt_SHELL 14873 14874# An echo program that does not interpret backslashes. 14875ECHO=$lt_ECHO 14876 14877# Used to examine libraries when file_magic_cmd begins with "file". 14878MAGIC_CMD=$MAGIC_CMD 14879 14880# Must we lock files when doing compilation? 14881need_locks=$lt_need_locks 14882 14883# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14884DSYMUTIL=$lt_DSYMUTIL 14885 14886# Tool to change global to local symbols on Mac OS X. 14887NMEDIT=$lt_NMEDIT 14888 14889# Tool to manipulate fat objects and archives on Mac OS X. 14890LIPO=$lt_LIPO 14891 14892# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14893OTOOL=$lt_OTOOL 14894 14895# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14896OTOOL64=$lt_OTOOL64 14897 14898# Old archive suffix (normally "a"). 14899libext=$libext 14900 14901# Shared library suffix (normally ".so"). 14902shrext_cmds=$lt_shrext_cmds 14903 14904# The commands to extract the exported symbol list from a shared archive. 14905extract_expsyms_cmds=$lt_extract_expsyms_cmds 14906 14907# Variables whose values should be saved in libtool wrapper scripts and 14908# restored at link time. 14909variables_saved_for_relink=$lt_variables_saved_for_relink 14910 14911# Do we need the "lib" prefix for modules? 14912need_lib_prefix=$need_lib_prefix 14913 14914# Do we need a version for libraries? 14915need_version=$need_version 14916 14917# Library versioning type. 14918version_type=$version_type 14919 14920# Shared library runtime path variable. 14921runpath_var=$runpath_var 14922 14923# Shared library path variable. 14924shlibpath_var=$shlibpath_var 14925 14926# Is shlibpath searched before the hard-coded library search path? 14927shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14928 14929# Format of library name prefix. 14930libname_spec=$lt_libname_spec 14931 14932# List of archive names. First name is the real one, the rest are links. 14933# The last name is the one that the linker finds with -lNAME 14934library_names_spec=$lt_library_names_spec 14935 14936# The coded name of the library, if different from the real name. 14937soname_spec=$lt_soname_spec 14938 14939# Command to use after installation of a shared archive. 14940postinstall_cmds=$lt_postinstall_cmds 14941 14942# Command to use after uninstallation of a shared archive. 14943postuninstall_cmds=$lt_postuninstall_cmds 14944 14945# Commands used to finish a libtool library installation in a directory. 14946finish_cmds=$lt_finish_cmds 14947 14948# As "finish_cmds", except a single script fragment to be evaled but 14949# not shown. 14950finish_eval=$lt_finish_eval 14951 14952# Whether we should hardcode library paths into libraries. 14953hardcode_into_libs=$hardcode_into_libs 14954 14955# Compile-time system search path for libraries. 14956sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14957 14958# Run-time system search path for libraries. 14959sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14960 14961# Whether dlopen is supported. 14962dlopen_support=$enable_dlopen 14963 14964# Whether dlopen of programs is supported. 14965dlopen_self=$enable_dlopen_self 14966 14967# Whether dlopen of statically linked programs is supported. 14968dlopen_self_static=$enable_dlopen_self_static 14969 14970# Commands to strip libraries. 14971old_striplib=$lt_old_striplib 14972striplib=$lt_striplib 14973 14974 14975# The linker used to build libraries. 14976LD=$lt_LD 14977 14978# Commands used to build an old-style archive. 14979old_archive_cmds=$lt_old_archive_cmds 14980 14981# A language specific compiler. 14982CC=$lt_compiler 14983 14984# Is the compiler the GNU compiler? 14985with_gcc=$GCC 14986 14987# Compiler flag to turn off builtin functions. 14988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14989 14990# How to pass a linker flag through the compiler. 14991wl=$lt_lt_prog_compiler_wl 14992 14993# Additional compiler flags for building library objects. 14994pic_flag=$lt_lt_prog_compiler_pic 14995 14996# Compiler flag to prevent dynamic linking. 14997link_static_flag=$lt_lt_prog_compiler_static 14998 14999# Does compiler simultaneously support -c and -o options? 15000compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15001 15002# Whether or not to add -lc for building shared libraries. 15003build_libtool_need_lc=$archive_cmds_need_lc 15004 15005# Whether or not to disallow shared libs when runtime libs are static. 15006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15007 15008# Compiler flag to allow reflexive dlopens. 15009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15010 15011# Compiler flag to generate shared objects directly from archives. 15012whole_archive_flag_spec=$lt_whole_archive_flag_spec 15013 15014# Whether the compiler copes with passing no objects directly. 15015compiler_needs_object=$lt_compiler_needs_object 15016 15017# Create an old-style archive from a shared archive. 15018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15019 15020# Create a temporary old-style archive to link instead of a shared archive. 15021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15022 15023# Commands used to build a shared archive. 15024archive_cmds=$lt_archive_cmds 15025archive_expsym_cmds=$lt_archive_expsym_cmds 15026 15027# Commands used to build a loadable module if different from building 15028# a shared archive. 15029module_cmds=$lt_module_cmds 15030module_expsym_cmds=$lt_module_expsym_cmds 15031 15032# Whether we are building with GNU ld or not. 15033with_gnu_ld=$lt_with_gnu_ld 15034 15035# Flag that allows shared libraries with undefined symbols to be built. 15036allow_undefined_flag=$lt_allow_undefined_flag 15037 15038# Flag that enforces no undefined symbols. 15039no_undefined_flag=$lt_no_undefined_flag 15040 15041# Flag to hardcode \$libdir into a binary during linking. 15042# This must work even if \$libdir does not exist 15043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15044 15045# If ld is used when linking, flag to hardcode \$libdir into a binary 15046# during linking. This must work even if \$libdir does not exist. 15047hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15048 15049# Whether we need a single "-rpath" flag with a separated argument. 15050hardcode_libdir_separator=$lt_hardcode_libdir_separator 15051 15052# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15053# DIR into the resulting binary. 15054hardcode_direct=$hardcode_direct 15055 15056# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15057# DIR into the resulting binary and the resulting library dependency is 15058# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15059# library is relocated. 15060hardcode_direct_absolute=$hardcode_direct_absolute 15061 15062# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15063# into the resulting binary. 15064hardcode_minus_L=$hardcode_minus_L 15065 15066# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15067# into the resulting binary. 15068hardcode_shlibpath_var=$hardcode_shlibpath_var 15069 15070# Set to "yes" if building a shared library automatically hardcodes DIR 15071# into the library and all subsequent libraries and executables linked 15072# against it. 15073hardcode_automatic=$hardcode_automatic 15074 15075# Set to yes if linker adds runtime paths of dependent libraries 15076# to runtime path list. 15077inherit_rpath=$inherit_rpath 15078 15079# Whether libtool must link a program against all its dependency libraries. 15080link_all_deplibs=$link_all_deplibs 15081 15082# Fix the shell variable \$srcfile for the compiler. 15083fix_srcfile_path=$lt_fix_srcfile_path 15084 15085# Set to "yes" if exported symbols are required. 15086always_export_symbols=$always_export_symbols 15087 15088# The commands to list exported symbols. 15089export_symbols_cmds=$lt_export_symbols_cmds 15090 15091# Symbols that should not be listed in the preloaded symbols. 15092exclude_expsyms=$lt_exclude_expsyms 15093 15094# Symbols that must always be exported. 15095include_expsyms=$lt_include_expsyms 15096 15097# Commands necessary for linking programs (against libraries) with templates. 15098prelink_cmds=$lt_prelink_cmds 15099 15100# Specify filename containing input files. 15101file_list_spec=$lt_file_list_spec 15102 15103# How to hardcode a shared library path into an executable. 15104hardcode_action=$hardcode_action 15105 15106# ### END LIBTOOL CONFIG 15107 15108_LT_EOF 15109 15110 case $host_os in 15111 aix3*) 15112 cat <<\_LT_EOF >> "$cfgfile" 15113# AIX sometimes has problems with the GCC collect2 program. For some 15114# reason, if we set the COLLECT_NAMES environment variable, the problems 15115# vanish in a puff of smoke. 15116if test "X${COLLECT_NAMES+set}" != Xset; then 15117 COLLECT_NAMES= 15118 export COLLECT_NAMES 15119fi 15120_LT_EOF 15121 ;; 15122 esac 15123 15124 15125ltmain="$ac_aux_dir/ltmain.sh" 15126 15127 15128 # We use sed instead of cat because bash on DJGPP gets confused if 15129 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15130 # text mode, it properly converts lines to CR/LF. This bash problem 15131 # is reportedly fixed, but why not run on old versions too? 15132 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15133 || (rm -f "$cfgfile"; exit 1) 15134 15135 case $xsi_shell in 15136 yes) 15137 cat << \_LT_EOF >> "$cfgfile" 15138 15139# func_dirname file append nondir_replacement 15140# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15141# otherwise set result to NONDIR_REPLACEMENT. 15142func_dirname () 15143{ 15144 case ${1} in 15145 */*) func_dirname_result="${1%/*}${2}" ;; 15146 * ) func_dirname_result="${3}" ;; 15147 esac 15148} 15149 15150# func_basename file 15151func_basename () 15152{ 15153 func_basename_result="${1##*/}" 15154} 15155 15156# func_dirname_and_basename file append nondir_replacement 15157# perform func_basename and func_dirname in a single function 15158# call: 15159# dirname: Compute the dirname of FILE. If nonempty, 15160# add APPEND to the result, otherwise set result 15161# to NONDIR_REPLACEMENT. 15162# value returned in "$func_dirname_result" 15163# basename: Compute filename of FILE. 15164# value retuned in "$func_basename_result" 15165# Implementation must be kept synchronized with func_dirname 15166# and func_basename. For efficiency, we do not delegate to 15167# those functions but instead duplicate the functionality here. 15168func_dirname_and_basename () 15169{ 15170 case ${1} in 15171 */*) func_dirname_result="${1%/*}${2}" ;; 15172 * ) func_dirname_result="${3}" ;; 15173 esac 15174 func_basename_result="${1##*/}" 15175} 15176 15177# func_stripname prefix suffix name 15178# strip PREFIX and SUFFIX off of NAME. 15179# PREFIX and SUFFIX must not contain globbing or regex special 15180# characters, hashes, percent signs, but SUFFIX may contain a leading 15181# dot (in which case that matches only a dot). 15182func_stripname () 15183{ 15184 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15185 # positional parameters, so assign one to ordinary parameter first. 15186 func_stripname_result=${3} 15187 func_stripname_result=${func_stripname_result#"${1}"} 15188 func_stripname_result=${func_stripname_result%"${2}"} 15189} 15190 15191# func_opt_split 15192func_opt_split () 15193{ 15194 func_opt_split_opt=${1%%=*} 15195 func_opt_split_arg=${1#*=} 15196} 15197 15198# func_lo2o object 15199func_lo2o () 15200{ 15201 case ${1} in 15202 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15203 *) func_lo2o_result=${1} ;; 15204 esac 15205} 15206 15207# func_xform libobj-or-source 15208func_xform () 15209{ 15210 func_xform_result=${1%.*}.lo 15211} 15212 15213# func_arith arithmetic-term... 15214func_arith () 15215{ 15216 func_arith_result=$(( $* )) 15217} 15218 15219# func_len string 15220# STRING may not start with a hyphen. 15221func_len () 15222{ 15223 func_len_result=${#1} 15224} 15225 15226_LT_EOF 15227 ;; 15228 *) # Bourne compatible functions. 15229 cat << \_LT_EOF >> "$cfgfile" 15230 15231# func_dirname file append nondir_replacement 15232# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15233# otherwise set result to NONDIR_REPLACEMENT. 15234func_dirname () 15235{ 15236 # Extract subdirectory from the argument. 15237 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15238 if test "X$func_dirname_result" = "X${1}"; then 15239 func_dirname_result="${3}" 15240 else 15241 func_dirname_result="$func_dirname_result${2}" 15242 fi 15243} 15244 15245# func_basename file 15246func_basename () 15247{ 15248 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15249} 15250 15251 15252# func_stripname prefix suffix name 15253# strip PREFIX and SUFFIX off of NAME. 15254# PREFIX and SUFFIX must not contain globbing or regex special 15255# characters, hashes, percent signs, but SUFFIX may contain a leading 15256# dot (in which case that matches only a dot). 15257# func_strip_suffix prefix name 15258func_stripname () 15259{ 15260 case ${2} in 15261 .*) func_stripname_result=`$ECHO "X${3}" \ 15262 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15263 *) func_stripname_result=`$ECHO "X${3}" \ 15264 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15265 esac 15266} 15267 15268# sed scripts: 15269my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15270my_sed_long_arg='1s/^-[^=]*=//' 15271 15272# func_opt_split 15273func_opt_split () 15274{ 15275 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15276 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15277} 15278 15279# func_lo2o object 15280func_lo2o () 15281{ 15282 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15283} 15284 15285# func_xform libobj-or-source 15286func_xform () 15287{ 15288 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15289} 15290 15291# func_arith arithmetic-term... 15292func_arith () 15293{ 15294 func_arith_result=`expr "$@"` 15295} 15296 15297# func_len string 15298# STRING may not start with a hyphen. 15299func_len () 15300{ 15301 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15302} 15303 15304_LT_EOF 15305esac 15306 15307case $lt_shell_append in 15308 yes) 15309 cat << \_LT_EOF >> "$cfgfile" 15310 15311# func_append var value 15312# Append VALUE to the end of shell variable VAR. 15313func_append () 15314{ 15315 eval "$1+=\$2" 15316} 15317_LT_EOF 15318 ;; 15319 *) 15320 cat << \_LT_EOF >> "$cfgfile" 15321 15322# func_append var value 15323# Append VALUE to the end of shell variable VAR. 15324func_append () 15325{ 15326 eval "$1=\$$1\$2" 15327} 15328 15329_LT_EOF 15330 ;; 15331 esac 15332 15333 15334 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15335 || (rm -f "$cfgfile"; exit 1) 15336 15337 mv -f "$cfgfile" "$ofile" || 15338 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15339 chmod +x "$ofile" 15340 15341 ;; 15342 15343 esac 15344done # for ac_tag 15345 15346 15347as_fn_exit 0 15348_ACEOF 15349ac_clean_files=$ac_clean_files_save 15350 15351test $ac_write_fail = 0 || 15352 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15353 15354 15355# configure is writing to config.log, and then calls config.status. 15356# config.status does its own redirection, appending to config.log. 15357# Unfortunately, on DOS this fails, as config.log is still kept open 15358# by configure, so config.status won't be able to write to it; its 15359# output is simply discarded. So we exec the FD to /dev/null, 15360# effectively closing config.log, so it can be properly (re)opened and 15361# appended to by config.status. When coming back to configure, we 15362# need to make the FD available again. 15363if test "$no_create" != yes; then 15364 ac_cs_success=: 15365 ac_config_status_args= 15366 test "$silent" = yes && 15367 ac_config_status_args="$ac_config_status_args --quiet" 15368 exec 5>/dev/null 15369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15370 exec 5>>config.log 15371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15372 # would make configure fail if this is the last instruction. 15373 $ac_cs_success || as_fn_exit 1 15374fi 15375if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15377$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15378fi 15379 15380