1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for archiveInflate 0.5.0. 4# 5# Report bugs to <https://sourceforge.net/apps/trac/razorbacktm/>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://sourceforge.net/apps/trac/razorbacktm/ about 235$0: your system, including any error possibly output before 236$0: this message. Then install a modern shell, or manually 237$0: run the script under such a shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error STATUS ERROR [LINENO LOG_FD] 363# ---------------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with STATUS, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$1; test $as_status -eq 0 && as_status=1 370 if test "$4"; then 371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 373 fi 374 $as_echo "$as_me: error: $2" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$lt_ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543ECHO=${lt_ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $ECHO works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<_LT_EOF 562$* 563_LT_EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$lt_ECHO"; then 572 if test "X${echo_test_string+set}" != Xset; then 573 # find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 578 then 579 break 580 fi 581 done 582 fi 583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 586 test "X$echo_testing_string" = "X$echo_test_string"; then 587 : 588 else 589 # The Solaris, AIX, and Digital Unix default echo programs unquote 590 # backslashes. This makes it impossible to quote backslashes using 591 # echo "$something" | sed 's/\\/\\\\/g' 592 # 593 # So, first we look for a working echo in the user's PATH. 594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 596 for dir in $PATH /usr/ucb; do 597 IFS="$lt_save_ifs" 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 601 test "X$echo_testing_string" = "X$echo_test_string"; then 602 ECHO="$dir/echo" 603 break 604 fi 605 done 606 IFS="$lt_save_ifs" 607 608 if test "X$ECHO" = Xecho; then 609 # We didn't find a better echo, so look for alternatives. 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 612 test "X$echo_testing_string" = "X$echo_test_string"; then 613 # This shell has a builtin print -r that does the trick. 614 ECHO='print -r' 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 616 test "X$CONFIG_SHELL" != X/bin/ksh; then 617 # If we have ksh, try running configure again with it. 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 619 export ORIGINAL_CONFIG_SHELL 620 CONFIG_SHELL=/bin/ksh 621 export CONFIG_SHELL 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 623 else 624 # Try using printf. 625 ECHO='printf %s\n' 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 # Cool, printf works 630 : 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 632 test "X$echo_testing_string" = 'X\t' && 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 636 export CONFIG_SHELL 637 SHELL="$CONFIG_SHELL" 638 export SHELL 639 ECHO="$CONFIG_SHELL $0 --fallback-echo" 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 641 test "X$echo_testing_string" = 'X\t' && 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" 645 else 646 # maybe with a smaller string... 647 prev=: 648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 651 then 652 break 653 fi 654 prev="$cmd" 655 done 656 657 if test "$prev" != 'sed 50q "$0"'; then 658 echo_test_string=`eval $prev` 659 export echo_test_string 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 661 else 662 # Oops. We lost completely, so just stick with echo. 663 ECHO=echo 664 fi 665 fi 666 fi 667 fi 668 fi 669fi 670 671# Copy echo and quote the copy suitably for passing to libtool from 672# the Makefile, instead of quoting the original, which is used later. 673lt_ECHO=$ECHO 674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 676fi 677 678 679 680 681test -n "$DJDIR" || exec 7<&0 </dev/null 682exec 6>&1 683 684# Name of the host. 685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 686# so uname gets run too. 687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 688 689# 690# Initializations. 691# 692ac_default_prefix=/usr/local 693ac_clean_files= 694ac_config_libobj_dir=. 695LIBOBJS= 696cross_compiling=no 697subdirs= 698MFLAGS= 699MAKEFLAGS= 700 701# Identity of this package. 702PACKAGE_NAME='archiveInflate' 703PACKAGE_TARNAME='archiveInflate' 704PACKAGE_VERSION='0.5.0' 705PACKAGE_STRING='archiveInflate 0.5.0' 706PACKAGE_BUGREPORT='https://sourceforge.net/apps/trac/razorbacktm/' 707PACKAGE_URL='' 708 709ac_unique_file="src/archive.c" 710# Factoring default headers for most tests. 711ac_includes_default="\ 712#include <stdio.h> 713#ifdef HAVE_SYS_TYPES_H 714# include <sys/types.h> 715#endif 716#ifdef HAVE_SYS_STAT_H 717# include <sys/stat.h> 718#endif 719#ifdef STDC_HEADERS 720# include <stdlib.h> 721# include <stddef.h> 722#else 723# ifdef HAVE_STDLIB_H 724# include <stdlib.h> 725# endif 726#endif 727#ifdef HAVE_STRING_H 728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729# include <memory.h> 730# endif 731# include <string.h> 732#endif 733#ifdef HAVE_STRINGS_H 734# include <strings.h> 735#endif 736#ifdef HAVE_INTTYPES_H 737# include <inttypes.h> 738#endif 739#ifdef HAVE_STDINT_H 740# include <stdint.h> 741#endif 742#ifdef HAVE_UNISTD_H 743# include <unistd.h> 744#endif" 745 746ac_header_list= 747ac_subst_vars='am__EXEEXT_FALSE 748am__EXEEXT_TRUE 749LTLIBOBJS 750PKGLIBDIR 751XCCFLAGS 752extra_incl 753NUGGET_VERSION 754NUGGET_LIBRARIES 755NUGGET_INCLUDES 756LIBOBJS 757ARCHIVE_LIBS 758ARCHIVE_CFLAGS 759MASTER_NUGGET 760RAZORBACK_LIBS 761RAZORBACK_CFLAGS 762JSON_LIBS 763JSON_CFLAGS 764LIBCONFIG_LIBS 765LIBCONFIG_CFLAGS 766PKG_CONFIG_LIBDIR 767PKG_CONFIG_PATH 768PKG_CONFIG 769LIBEXECDIR 770SYSCONFDIR 771PLATFORM_FREEBSD_FALSE 772PLATFORM_FREEBSD_TRUE 773PLATFORM_LINUX_FALSE 774PLATFORM_LINUX_TRUE 775CPP 776OTOOL64 777OTOOL 778LIPO 779NMEDIT 780DSYMUTIL 781lt_ECHO 782RANLIB 783AR 784OBJDUMP 785LN_S 786NM 787ac_ct_DUMPBIN 788DUMPBIN 789LD 790FGREP 791EGREP 792GREP 793SED 794LIBTOOL 795am__fastdepCC_FALSE 796am__fastdepCC_TRUE 797CCDEPMODE 798AMDEPBACKSLASH 799AMDEP_FALSE 800AMDEP_TRUE 801am__quote 802am__include 803DEPDIR 804OBJEXT 805EXEEXT 806ac_ct_CC 807CPPFLAGS 808LDFLAGS 809CFLAGS 810CC 811host_os 812host_vendor 813host_cpu 814host 815build_os 816build_vendor 817build_cpu 818build 819am__untar 820am__tar 821AMTAR 822am__leading_dot 823SET_MAKE 824AWK 825mkdir_p 826MKDIR_P 827INSTALL_STRIP_PROGRAM 828STRIP 829install_sh 830MAKEINFO 831AUTOHEADER 832AUTOMAKE 833AUTOCONF 834ACLOCAL 835VERSION 836PACKAGE 837CYGPATH_W 838am__isrc 839INSTALL_DATA 840INSTALL_SCRIPT 841INSTALL_PROGRAM 842target_alias 843host_alias 844build_alias 845LIBS 846ECHO_T 847ECHO_N 848ECHO_C 849DEFS 850mandir 851localedir 852libdir 853psdir 854pdfdir 855dvidir 856htmldir 857infodir 858docdir 859oldincludedir 860includedir 861localstatedir 862sharedstatedir 863sysconfdir 864datadir 865datarootdir 866libexecdir 867sbindir 868bindir 869program_transform_name 870prefix 871exec_prefix 872PACKAGE_URL 873PACKAGE_BUGREPORT 874PACKAGE_STRING 875PACKAGE_VERSION 876PACKAGE_TARNAME 877PACKAGE_NAME 878PATH_SEPARATOR 879SHELL' 880ac_subst_files='' 881ac_user_opts=' 882enable_option_checking 883enable_dependency_tracking 884enable_shared 885enable_static 886with_pic 887enable_fast_install 888with_gnu_ld 889enable_libtool_lock 890enable_debug 891enable_assert 892enable_unimplemented 893enable_inline 894enable_perf 895enable_profile 896with_with_api 897enable_master_nugget_check 898' 899 ac_precious_vars='build_alias 900host_alias 901target_alias 902CC 903CFLAGS 904LDFLAGS 905LIBS 906CPPFLAGS 907CPP 908PKG_CONFIG 909PKG_CONFIG_PATH 910PKG_CONFIG_LIBDIR 911LIBCONFIG_CFLAGS 912LIBCONFIG_LIBS 913JSON_CFLAGS 914JSON_LIBS 915RAZORBACK_CFLAGS 916RAZORBACK_LIBS 917ARCHIVE_CFLAGS 918ARCHIVE_LIBS' 919 920 921# Initialize some variables set by options. 922ac_init_help= 923ac_init_version=false 924ac_unrecognized_opts= 925ac_unrecognized_sep= 926# The variables have the same names as the options, with 927# dashes changed to underlines. 928cache_file=/dev/null 929exec_prefix=NONE 930no_create= 931no_recursion= 932prefix=NONE 933program_prefix=NONE 934program_suffix=NONE 935program_transform_name=s,x,x, 936silent= 937site= 938srcdir= 939verbose= 940x_includes=NONE 941x_libraries=NONE 942 943# Installation directory options. 944# These are left unexpanded so users can "make install exec_prefix=/foo" 945# and all the variables that are supposed to be based on exec_prefix 946# by default will actually change. 947# Use braces instead of parens because sh, perl, etc. also accept them. 948# (The list follows the same order as the GNU Coding Standards.) 949bindir='${exec_prefix}/bin' 950sbindir='${exec_prefix}/sbin' 951libexecdir='${exec_prefix}/libexec' 952datarootdir='${prefix}/share' 953datadir='${datarootdir}' 954sysconfdir='${prefix}/etc' 955sharedstatedir='${prefix}/com' 956localstatedir='${prefix}/var' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *=) ac_optarg= ;; 983 *) ac_optarg=yes ;; 984 esac 985 986 # Accept the important Cygnus configure options, so we can diagnose typos. 987 988 case $ac_dashdash$ac_option in 989 --) 990 ac_dashdash=yes ;; 991 992 -bindir | --bindir | --bindi | --bind | --bin | --bi) 993 ac_prev=bindir ;; 994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 995 bindir=$ac_optarg ;; 996 997 -build | --build | --buil | --bui | --bu) 998 ac_prev=build_alias ;; 999 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1000 build_alias=$ac_optarg ;; 1001 1002 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1004 ac_prev=cache_file ;; 1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1007 cache_file=$ac_optarg ;; 1008 1009 --config-cache | -C) 1010 cache_file=config.cache ;; 1011 1012 -datadir | --datadir | --datadi | --datad) 1013 ac_prev=datadir ;; 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1015 datadir=$ac_optarg ;; 1016 1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1018 | --dataroo | --dataro | --datar) 1019 ac_prev=datarootdir ;; 1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1022 datarootdir=$ac_optarg ;; 1023 1024 -disable-* | --disable-*) 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1026 # Reject names that are not valid shell variable names. 1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1028 as_fn_error $? "invalid feature name: $ac_useropt" 1029 ac_useropt_orig=$ac_useropt 1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1031 case $ac_user_opts in 1032 *" 1033"enable_$ac_useropt" 1034"*) ;; 1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1036 ac_unrecognized_sep=', ';; 1037 esac 1038 eval enable_$ac_useropt=no ;; 1039 1040 -docdir | --docdir | --docdi | --doc | --do) 1041 ac_prev=docdir ;; 1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1043 docdir=$ac_optarg ;; 1044 1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1046 ac_prev=dvidir ;; 1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1048 dvidir=$ac_optarg ;; 1049 1050 -enable-* | --enable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 as_fn_error $? "invalid feature name: $ac_useropt" 1055 ac_useropt_orig=$ac_useropt 1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1057 case $ac_user_opts in 1058 *" 1059"enable_$ac_useropt" 1060"*) ;; 1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1062 ac_unrecognized_sep=', ';; 1063 esac 1064 eval enable_$ac_useropt=\$ac_optarg ;; 1065 1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1068 | --exec | --exe | --ex) 1069 ac_prev=exec_prefix ;; 1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1072 | --exec=* | --exe=* | --ex=*) 1073 exec_prefix=$ac_optarg ;; 1074 1075 -gas | --gas | --ga | --g) 1076 # Obsolete; use --with-gas. 1077 with_gas=yes ;; 1078 1079 -help | --help | --hel | --he | -h) 1080 ac_init_help=long ;; 1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1082 ac_init_help=recursive ;; 1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1084 ac_init_help=short ;; 1085 1086 -host | --host | --hos | --ho) 1087 ac_prev=host_alias ;; 1088 -host=* | --host=* | --hos=* | --ho=*) 1089 host_alias=$ac_optarg ;; 1090 1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1092 ac_prev=htmldir ;; 1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1094 | --ht=*) 1095 htmldir=$ac_optarg ;; 1096 1097 -includedir | --includedir | --includedi | --included | --include \ 1098 | --includ | --inclu | --incl | --inc) 1099 ac_prev=includedir ;; 1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1101 | --includ=* | --inclu=* | --incl=* | --inc=*) 1102 includedir=$ac_optarg ;; 1103 1104 -infodir | --infodir | --infodi | --infod | --info | --inf) 1105 ac_prev=infodir ;; 1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1107 infodir=$ac_optarg ;; 1108 1109 -libdir | --libdir | --libdi | --libd) 1110 ac_prev=libdir ;; 1111 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1112 libdir=$ac_optarg ;; 1113 1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1115 | --libexe | --libex | --libe) 1116 ac_prev=libexecdir ;; 1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1118 | --libexe=* | --libex=* | --libe=*) 1119 libexecdir=$ac_optarg ;; 1120 1121 -localedir | --localedir | --localedi | --localed | --locale) 1122 ac_prev=localedir ;; 1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1124 localedir=$ac_optarg ;; 1125 1126 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1127 | --localstate | --localstat | --localsta | --localst | --locals) 1128 ac_prev=localstatedir ;; 1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1131 localstatedir=$ac_optarg ;; 1132 1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1134 ac_prev=mandir ;; 1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1136 mandir=$ac_optarg ;; 1137 1138 -nfp | --nfp | --nf) 1139 # Obsolete; use --without-fp. 1140 with_fp=no ;; 1141 1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1143 | --no-cr | --no-c | -n) 1144 no_create=yes ;; 1145 1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1148 no_recursion=yes ;; 1149 1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1152 | --oldin | --oldi | --old | --ol | --o) 1153 ac_prev=oldincludedir ;; 1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1157 oldincludedir=$ac_optarg ;; 1158 1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1160 ac_prev=prefix ;; 1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1162 prefix=$ac_optarg ;; 1163 1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1165 | --program-pre | --program-pr | --program-p) 1166 ac_prev=program_prefix ;; 1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1169 program_prefix=$ac_optarg ;; 1170 1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1172 | --program-suf | --program-su | --program-s) 1173 ac_prev=program_suffix ;; 1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1176 program_suffix=$ac_optarg ;; 1177 1178 -program-transform-name | --program-transform-name \ 1179 | --program-transform-nam | --program-transform-na \ 1180 | --program-transform-n | --program-transform- \ 1181 | --program-transform | --program-transfor \ 1182 | --program-transfo | --program-transf \ 1183 | --program-trans | --program-tran \ 1184 | --progr-tra | --program-tr | --program-t) 1185 ac_prev=program_transform_name ;; 1186 -program-transform-name=* | --program-transform-name=* \ 1187 | --program-transform-nam=* | --program-transform-na=* \ 1188 | --program-transform-n=* | --program-transform-=* \ 1189 | --program-transform=* | --program-transfor=* \ 1190 | --program-transfo=* | --program-transf=* \ 1191 | --program-trans=* | --program-tran=* \ 1192 | --progr-tra=* | --program-tr=* | --program-t=*) 1193 program_transform_name=$ac_optarg ;; 1194 1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1196 ac_prev=pdfdir ;; 1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1198 pdfdir=$ac_optarg ;; 1199 1200 -psdir | --psdir | --psdi | --psd | --ps) 1201 ac_prev=psdir ;; 1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1203 psdir=$ac_optarg ;; 1204 1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1206 | -silent | --silent | --silen | --sile | --sil) 1207 silent=yes ;; 1208 1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1210 ac_prev=sbindir ;; 1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1212 | --sbi=* | --sb=*) 1213 sbindir=$ac_optarg ;; 1214 1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1217 | --sharedst | --shareds | --shared | --share | --shar \ 1218 | --sha | --sh) 1219 ac_prev=sharedstatedir ;; 1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1223 | --sha=* | --sh=*) 1224 sharedstatedir=$ac_optarg ;; 1225 1226 -site | --site | --sit) 1227 ac_prev=site ;; 1228 -site=* | --site=* | --sit=*) 1229 site=$ac_optarg ;; 1230 1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1232 ac_prev=srcdir ;; 1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1234 srcdir=$ac_optarg ;; 1235 1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1237 | --syscon | --sysco | --sysc | --sys | --sy) 1238 ac_prev=sysconfdir ;; 1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1241 sysconfdir=$ac_optarg ;; 1242 1243 -target | --target | --targe | --targ | --tar | --ta | --t) 1244 ac_prev=target_alias ;; 1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1246 target_alias=$ac_optarg ;; 1247 1248 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1249 verbose=yes ;; 1250 1251 -version | --version | --versio | --versi | --vers | -V) 1252 ac_init_version=: ;; 1253 1254 -with-* | --with-*) 1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1258 as_fn_error $? "invalid package name: $ac_useropt" 1259 ac_useropt_orig=$ac_useropt 1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1261 case $ac_user_opts in 1262 *" 1263"with_$ac_useropt" 1264"*) ;; 1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1266 ac_unrecognized_sep=', ';; 1267 esac 1268 eval with_$ac_useropt=\$ac_optarg ;; 1269 1270 -without-* | --without-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 as_fn_error $? "invalid package name: $ac_useropt" 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=no ;; 1285 1286 --x) 1287 # Obsolete; use --with-x. 1288 with_x=yes ;; 1289 1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1291 | --x-incl | --x-inc | --x-in | --x-i) 1292 ac_prev=x_includes ;; 1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1295 x_includes=$ac_optarg ;; 1296 1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1299 ac_prev=x_libraries ;; 1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1302 x_libraries=$ac_optarg ;; 1303 1304 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1305Try \`$0 --help' for more information" 1306 ;; 1307 1308 *=*) 1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1310 # Reject names that are not valid shell variable names. 1311 case $ac_envvar in #( 1312 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1314 esac 1315 eval $ac_envvar=\$ac_optarg 1316 export $ac_envvar ;; 1317 1318 *) 1319 # FIXME: should be removed in autoconf 3.0. 1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1324 ;; 1325 1326 esac 1327done 1328 1329if test -n "$ac_prev"; then 1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1331 as_fn_error $? "missing argument to $ac_option" 1332fi 1333 1334if test -n "$ac_unrecognized_opts"; then 1335 case $enable_option_checking in 1336 no) ;; 1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1339 esac 1340fi 1341 1342# Check all directory arguments for consistency. 1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1344 datadir sysconfdir sharedstatedir localstatedir includedir \ 1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1346 libdir localedir mandir 1347do 1348 eval ac_val=\$$ac_var 1349 # Remove trailing slashes. 1350 case $ac_val in 1351 */ ) 1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1353 eval $ac_var=\$ac_val;; 1354 esac 1355 # Be sure to have absolute directory names. 1356 case $ac_val in 1357 [\\/$]* | ?:[\\/]* ) continue;; 1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1359 esac 1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1361done 1362 1363# There might be people who depend on the old broken behavior: `$host' 1364# used to hold the argument of --host etc. 1365# FIXME: To remove some day. 1366build=$build_alias 1367host=$host_alias 1368target=$target_alias 1369 1370# FIXME: To remove some day. 1371if test "x$host_alias" != x; then 1372 if test "x$build_alias" = x; then 1373 cross_compiling=maybe 1374 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1375 If a cross compiler is detected then cross compile mode will be used" >&2 1376 elif test "x$build_alias" != "x$host_alias"; then 1377 cross_compiling=yes 1378 fi 1379fi 1380 1381ac_tool_prefix= 1382test -n "$host_alias" && ac_tool_prefix=$host_alias- 1383 1384test "$silent" = yes && exec 6>/dev/null 1385 1386 1387ac_pwd=`pwd` && test -n "$ac_pwd" && 1388ac_ls_di=`ls -di .` && 1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1390 as_fn_error $? "working directory cannot be determined" 1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1392 as_fn_error $? "pwd does not report name of working directory" 1393 1394 1395# Find the source files, if location was not specified. 1396if test -z "$srcdir"; then 1397 ac_srcdir_defaulted=yes 1398 # Try the directory containing this script, then the parent directory. 1399 ac_confdir=`$as_dirname -- "$as_myself" || 1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1401 X"$as_myself" : 'X\(//\)[^/]' \| \ 1402 X"$as_myself" : 'X\(//\)$' \| \ 1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1404$as_echo X"$as_myself" | 1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1406 s//\1/ 1407 q 1408 } 1409 /^X\(\/\/\)[^/].*/{ 1410 s//\1/ 1411 q 1412 } 1413 /^X\(\/\/\)$/{ 1414 s//\1/ 1415 q 1416 } 1417 /^X\(\/\).*/{ 1418 s//\1/ 1419 q 1420 } 1421 s/.*/./; q'` 1422 srcdir=$ac_confdir 1423 if test ! -r "$srcdir/$ac_unique_file"; then 1424 srcdir=.. 1425 fi 1426else 1427 ac_srcdir_defaulted=no 1428fi 1429if test ! -r "$srcdir/$ac_unique_file"; then 1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1431 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1432fi 1433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1434ac_abs_confdir=`( 1435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1436 pwd)` 1437# When building in place, set srcdir=. 1438if test "$ac_abs_confdir" = "$ac_pwd"; then 1439 srcdir=. 1440fi 1441# Remove unnecessary trailing slashes from srcdir. 1442# Double slashes in file names in object file debugging info 1443# mess up M-x gdb in Emacs. 1444case $srcdir in 1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1446esac 1447for ac_var in $ac_precious_vars; do 1448 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1449 eval ac_env_${ac_var}_value=\$${ac_var} 1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1451 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1452done 1453 1454# 1455# Report the --help message. 1456# 1457if test "$ac_init_help" = "long"; then 1458 # Omit some internal or obsolete options to make the list less imposing. 1459 # This message is too long to be a string in the A/UX 3.1 sh. 1460 cat <<_ACEOF 1461\`configure' configures archiveInflate 0.5.0 to adapt to many kinds of systems. 1462 1463Usage: $0 [OPTION]... [VAR=VALUE]... 1464 1465To assign environment variables (e.g., CC, CFLAGS...), specify them as 1466VAR=VALUE. See below for descriptions of some of the useful variables. 1467 1468Defaults for the options are specified in brackets. 1469 1470Configuration: 1471 -h, --help display this help and exit 1472 --help=short display options specific to this package 1473 --help=recursive display the short help of all the included packages 1474 -V, --version display version information and exit 1475 -q, --quiet, --silent do not print \`checking ...' messages 1476 --cache-file=FILE cache test results in FILE [disabled] 1477 -C, --config-cache alias for \`--cache-file=config.cache' 1478 -n, --no-create do not create output files 1479 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1480 1481Installation directories: 1482 --prefix=PREFIX install architecture-independent files in PREFIX 1483 [$ac_default_prefix] 1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1485 [PREFIX] 1486 1487By default, \`make install' will install all the files in 1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1489an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1490for instance \`--prefix=\$HOME'. 1491 1492For better control, use the options below. 1493 1494Fine tuning of the installation directories: 1495 --bindir=DIR user executables [EPREFIX/bin] 1496 --sbindir=DIR system admin executables [EPREFIX/sbin] 1497 --libexecdir=DIR program executables [EPREFIX/libexec] 1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1501 --libdir=DIR object code libraries [EPREFIX/lib] 1502 --includedir=DIR C header files [PREFIX/include] 1503 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1506 --infodir=DIR info documentation [DATAROOTDIR/info] 1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1508 --mandir=DIR man documentation [DATAROOTDIR/man] 1509 --docdir=DIR documentation root [DATAROOTDIR/doc/archiveInflate] 1510 --htmldir=DIR html documentation [DOCDIR] 1511 --dvidir=DIR dvi documentation [DOCDIR] 1512 --pdfdir=DIR pdf documentation [DOCDIR] 1513 --psdir=DIR ps documentation [DOCDIR] 1514_ACEOF 1515 1516 cat <<\_ACEOF 1517 1518Program names: 1519 --program-prefix=PREFIX prepend PREFIX to installed program names 1520 --program-suffix=SUFFIX append SUFFIX to installed program names 1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1522 1523System types: 1524 --build=BUILD configure for building on BUILD [guessed] 1525 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1526_ACEOF 1527fi 1528 1529if test -n "$ac_init_help"; then 1530 case $ac_init_help in 1531 short | recursive ) echo "Configuration of archiveInflate 0.5.0:";; 1532 esac 1533 cat <<\_ACEOF 1534 1535Optional Features: 1536 --disable-option-checking ignore unrecognized --enable/--with options 1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1539 --disable-dependency-tracking speeds up one-time build 1540 --enable-dependency-tracking do not reject slow dependency extractors 1541 --enable-shared[=PKGS] build shared libraries [default=yes] 1542 --enable-static[=PKGS] build static libraries [default=yes] 1543 --enable-fast-install[=PKGS] 1544 optimize for fast installation [default=yes] 1545 --disable-libtool-lock avoid locking (might break parallel builds) 1546 --enable-debug Enable debug build options 1547 --enable-assert Enable assert build options 1548 --enable-unimplemented Enable unimplemented asserts options 1549 --disable-inline Do not use inline functions 1550 --disable-perf Disable performance statistics 1551 --enable-profile Enable profile build options 1552 --disable-master-nugget-check 1553 Do not check for the presence of master_nugget even 1554 if its required. 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-pic try to use only PIC/non-PIC objects [default=use 1560 both] 1561 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1562 --with-api Location of the API 1563 1564Some influential environment variables: 1565 CC C compiler command 1566 CFLAGS C compiler flags 1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1568 nonstandard directory <lib dir> 1569 LIBS libraries to pass to the linker, e.g. -l<library> 1570 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1571 you have headers in a nonstandard directory <include dir> 1572 CPP C preprocessor 1573 PKG_CONFIG path to pkg-config utility 1574 PKG_CONFIG_PATH 1575 directories to add to pkg-config's search path 1576 PKG_CONFIG_LIBDIR 1577 path overriding pkg-config's built-in search path 1578 LIBCONFIG_CFLAGS 1579 C compiler flags for LIBCONFIG, overriding pkg-config 1580 LIBCONFIG_LIBS 1581 linker flags for LIBCONFIG, overriding pkg-config 1582 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config 1583 JSON_LIBS linker flags for JSON, overriding pkg-config 1584 RAZORBACK_CFLAGS 1585 C compiler flags for RAZORBACK, overriding pkg-config 1586 RAZORBACK_LIBS 1587 linker flags for RAZORBACK, overriding pkg-config 1588 ARCHIVE_CFLAGS 1589 C compiler flags for ARCHIVE, overriding pkg-config 1590 ARCHIVE_LIBS 1591 linker flags for ARCHIVE, overriding pkg-config 1592 1593Use these variables to override the choices made by `configure' or to help 1594it to find libraries and programs with nonstandard names/locations. 1595 1596Report bugs to <https://sourceforge.net/apps/trac/razorbacktm/>. 1597_ACEOF 1598ac_status=$? 1599fi 1600 1601if test "$ac_init_help" = "recursive"; then 1602 # If there are subdirs, report their specific --help. 1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1604 test -d "$ac_dir" || 1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1606 continue 1607 ac_builddir=. 1608 1609case "$ac_dir" in 1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1611*) 1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1613 # A ".." for each directory in $ac_dir_suffix. 1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1615 case $ac_top_builddir_sub in 1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1618 esac ;; 1619esac 1620ac_abs_top_builddir=$ac_pwd 1621ac_abs_builddir=$ac_pwd$ac_dir_suffix 1622# for backward compatibility: 1623ac_top_builddir=$ac_top_build_prefix 1624 1625case $srcdir in 1626 .) # We are building in place. 1627 ac_srcdir=. 1628 ac_top_srcdir=$ac_top_builddir_sub 1629 ac_abs_top_srcdir=$ac_pwd ;; 1630 [\\/]* | ?:[\\/]* ) # Absolute name. 1631 ac_srcdir=$srcdir$ac_dir_suffix; 1632 ac_top_srcdir=$srcdir 1633 ac_abs_top_srcdir=$srcdir ;; 1634 *) # Relative name. 1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1636 ac_top_srcdir=$ac_top_build_prefix$srcdir 1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1638esac 1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1640 1641 cd "$ac_dir" || { ac_status=$?; continue; } 1642 # Check for guested configure. 1643 if test -f "$ac_srcdir/configure.gnu"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1646 elif test -f "$ac_srcdir/configure"; then 1647 echo && 1648 $SHELL "$ac_srcdir/configure" --help=recursive 1649 else 1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1651 fi || ac_status=$? 1652 cd "$ac_pwd" || { ac_status=$?; break; } 1653 done 1654fi 1655 1656test -n "$ac_init_help" && exit $ac_status 1657if $ac_init_version; then 1658 cat <<\_ACEOF 1659archiveInflate configure 0.5.0 1660generated by GNU Autoconf 2.67 1661 1662Copyright (C) 2010 Free Software Foundation, Inc. 1663This configure script is free software; the Free Software Foundation 1664gives unlimited permission to copy, distribute and modify it. 1665_ACEOF 1666 exit 1667fi 1668 1669## ------------------------ ## 1670## Autoconf initialization. ## 1671## ------------------------ ## 1672 1673# ac_fn_c_try_compile LINENO 1674# -------------------------- 1675# Try to compile conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext 1680 if { { ac_try="$ac_compile" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686$as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_compile") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest.$ac_objext; then : 1699 ac_retval=0 1700else 1701 $as_echo "$as_me: failed program was:" >&5 1702sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 1705fi 1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1707 as_fn_set_status $ac_retval 1708 1709} # ac_fn_c_try_compile 1710 1711# ac_fn_c_try_link LINENO 1712# ----------------------- 1713# Try to link conftest.$ac_ext, and return whether this succeeded. 1714ac_fn_c_try_link () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext conftest$ac_exeext 1718 if { { ac_try="$ac_link" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_link") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest$ac_exeext && { 1737 test "$cross_compiling" = yes || 1738 $as_test_x conftest$ac_exeext 1739 }; then : 1740 ac_retval=0 1741else 1742 $as_echo "$as_me: failed program was:" >&5 1743sed 's/^/| /' conftest.$ac_ext >&5 1744 1745 ac_retval=1 1746fi 1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1749 # interfere with the next link command; also delete a directory that is 1750 # left behind by Apple's compiler. We do this before executing the actions. 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_link 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval "test \"\${$3+set}\"" = set; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_try_cpp LINENO 1789# ---------------------- 1790# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_cpp () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 if { { ac_try="$ac_cpp conftest.$ac_ext" 1795case "(($ac_try" in 1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1797 *) ac_try_echo=$ac_try;; 1798esac 1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1800$as_echo "$ac_try_echo"; } >&5 1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1802 ac_status=$? 1803 if test -s conftest.err; then 1804 grep -v '^ *+' conftest.err >conftest.er1 1805 cat conftest.er1 >&5 1806 mv -f conftest.er1 conftest.err 1807 fi 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; } > conftest.i && { 1810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1811 test ! -s conftest.err 1812 }; then : 1813 ac_retval=0 1814else 1815 $as_echo "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=1 1819fi 1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_cpp 1824 1825# ac_fn_c_try_run LINENO 1826# ---------------------- 1827# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1828# that executables *can* be run. 1829ac_fn_c_try_run () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 if { { ac_try="$ac_link" 1833case "(($ac_try" in 1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1835 *) ac_try_echo=$ac_try;; 1836esac 1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1838$as_echo "$ac_try_echo"; } >&5 1839 (eval "$ac_link") 2>&5 1840 ac_status=$? 1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1842 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1843 { { case "(($ac_try" in 1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1845 *) ac_try_echo=$ac_try;; 1846esac 1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1848$as_echo "$ac_try_echo"; } >&5 1849 (eval "$ac_try") 2>&5 1850 ac_status=$? 1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; }; }; then : 1853 ac_retval=0 1854else 1855 $as_echo "$as_me: program exited with status $ac_status" >&5 1856 $as_echo "$as_me: failed program was:" >&5 1857sed 's/^/| /' conftest.$ac_ext >&5 1858 1859 ac_retval=$ac_status 1860fi 1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1863 as_fn_set_status $ac_retval 1864 1865} # ac_fn_c_try_run 1866 1867# ac_fn_c_check_func LINENO FUNC VAR 1868# ---------------------------------- 1869# Tests whether FUNC exists, setting the cache variable VAR accordingly 1870ac_fn_c_check_func () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval "test \"\${$3+set}\"" = set; then : 1876 $as_echo_n "(cached) " >&6 1877else 1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1882#define $2 innocuous_$2 1883 1884/* System header to define __stub macros and hopefully few prototypes, 1885 which can conflict with char $2 (); below. 1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1887 <limits.h> exists even on freestanding compilers. */ 1888 1889#ifdef __STDC__ 1890# include <limits.h> 1891#else 1892# include <assert.h> 1893#endif 1894 1895#undef $2 1896 1897/* Override any GCC internal prototype to avoid an error. 1898 Use char because int might match the return type of a GCC 1899 builtin and then its argument prototype would still apply. */ 1900#ifdef __cplusplus 1901extern "C" 1902#endif 1903char $2 (); 1904/* The GNU C library defines this for functions which it implements 1905 to always fail with ENOSYS. Some functions are actually named 1906 something starting with __ and the normal name is an alias. */ 1907#if defined __stub_$2 || defined __stub___$2 1908choke me 1909#endif 1910 1911int 1912main () 1913{ 1914return $2 (); 1915 ; 1916 return 0; 1917} 1918_ACEOF 1919if ac_fn_c_try_link "$LINENO"; then : 1920 eval "$3=yes" 1921else 1922 eval "$3=no" 1923fi 1924rm -f core conftest.err conftest.$ac_objext \ 1925 conftest$ac_exeext conftest.$ac_ext 1926fi 1927eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929$as_echo "$ac_res" >&6; } 1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1931 1932} # ac_fn_c_check_func 1933 1934# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1935# ------------------------------------------------------- 1936# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1937# the include files in INCLUDES and setting the cache variable VAR 1938# accordingly. 1939ac_fn_c_check_header_mongrel () 1940{ 1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1942 if eval "test \"\${$3+set}\"" = set; then : 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1944$as_echo_n "checking for $2... " >&6; } 1945if eval "test \"\${$3+set}\"" = set; then : 1946 $as_echo_n "(cached) " >&6 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951else 1952 # Is the header compilable? 1953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1954$as_echo_n "checking $2 usability... " >&6; } 1955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956/* end confdefs.h. */ 1957$4 1958#include <$2> 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO"; then : 1961 ac_header_compiler=yes 1962else 1963 ac_header_compiler=no 1964fi 1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1967$as_echo "$ac_header_compiler" >&6; } 1968 1969# Is the header present? 1970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1971$as_echo_n "checking $2 presence... " >&6; } 1972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1973/* end confdefs.h. */ 1974#include <$2> 1975_ACEOF 1976if ac_fn_c_try_cpp "$LINENO"; then : 1977 ac_header_preproc=yes 1978else 1979 ac_header_preproc=no 1980fi 1981rm -f conftest.err conftest.i conftest.$ac_ext 1982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1983$as_echo "$ac_header_preproc" >&6; } 1984 1985# So? What about this header? 1986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1987 yes:no: ) 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1989$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1991$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1992 ;; 1993 no:yes:* ) 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1995$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1997$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1999$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2001$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2003$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2004( $as_echo "## ------------------------------------------------------------- ## 2005## Report this to https://sourceforge.net/apps/trac/razorbacktm/ ## 2006## ------------------------------------------------------------- ##" 2007 ) | sed "s/^/$as_me: WARNING: /" >&2 2008 ;; 2009esac 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2011$as_echo_n "checking for $2... " >&6; } 2012if eval "test \"\${$3+set}\"" = set; then : 2013 $as_echo_n "(cached) " >&6 2014else 2015 eval "$3=\$ac_header_compiler" 2016fi 2017eval ac_res=\$$3 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2019$as_echo "$ac_res" >&6; } 2020fi 2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2022 2023} # ac_fn_c_check_header_mongrel 2024 2025# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2026# ------------------------------------------- 2027# Tests whether TYPE exists after having included INCLUDES, setting cache 2028# variable VAR accordingly. 2029ac_fn_c_check_type () 2030{ 2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2033$as_echo_n "checking for $2... " >&6; } 2034if eval "test \"\${$3+set}\"" = set; then : 2035 $as_echo_n "(cached) " >&6 2036else 2037 eval "$3=no" 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040$4 2041int 2042main () 2043{ 2044if (sizeof ($2)) 2045 return 0; 2046 ; 2047 return 0; 2048} 2049_ACEOF 2050if ac_fn_c_try_compile "$LINENO"; then : 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054int 2055main () 2056{ 2057if (sizeof (($2))) 2058 return 0; 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO"; then : 2064 2065else 2066 eval "$3=yes" 2067fi 2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2069fi 2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2071fi 2072eval ac_res=\$$3 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2074$as_echo "$ac_res" >&6; } 2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2076 2077} # ac_fn_c_check_type 2078 2079# ac_fn_c_find_uintX_t LINENO BITS VAR 2080# ------------------------------------ 2081# Finds an unsigned integer type with width BITS, setting cache variable VAR 2082# accordingly. 2083ac_fn_c_find_uintX_t () 2084{ 2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2087$as_echo_n "checking for uint$2_t... " >&6; } 2088if eval "test \"\${$3+set}\"" = set; then : 2089 $as_echo_n "(cached) " >&6 2090else 2091 eval "$3=no" 2092 # Order is important - never check a type that is potentially smaller 2093 # than half of the expected target width. 2094 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2095 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2097/* end confdefs.h. */ 2098$ac_includes_default 2099int 2100main () 2101{ 2102static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2103test_array [0] = 0 2104 2105 ; 2106 return 0; 2107} 2108_ACEOF 2109if ac_fn_c_try_compile "$LINENO"; then : 2110 case $ac_type in #( 2111 uint$2_t) : 2112 eval "$3=yes" ;; #( 2113 *) : 2114 eval "$3=\$ac_type" ;; 2115esac 2116fi 2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2118 if eval test \"x\$"$3"\" = x"no"; then : 2119 2120else 2121 break 2122fi 2123 done 2124fi 2125eval ac_res=\$$3 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2127$as_echo "$ac_res" >&6; } 2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2129 2130} # ac_fn_c_find_uintX_t 2131cat >config.log <<_ACEOF 2132This file contains any messages produced by compilers while 2133running configure, to aid debugging if configure makes a mistake. 2134 2135It was created by archiveInflate $as_me 0.5.0, which was 2136generated by GNU Autoconf 2.67. Invocation command line was 2137 2138 $ $0 $@ 2139 2140_ACEOF 2141exec 5>>config.log 2142{ 2143cat <<_ASUNAME 2144## --------- ## 2145## Platform. ## 2146## --------- ## 2147 2148hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2149uname -m = `(uname -m) 2>/dev/null || echo unknown` 2150uname -r = `(uname -r) 2>/dev/null || echo unknown` 2151uname -s = `(uname -s) 2>/dev/null || echo unknown` 2152uname -v = `(uname -v) 2>/dev/null || echo unknown` 2153 2154/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2155/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2156 2157/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2158/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2159/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2160/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2161/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2162/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2163/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2164 2165_ASUNAME 2166 2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2168for as_dir in $PATH 2169do 2170 IFS=$as_save_IFS 2171 test -z "$as_dir" && as_dir=. 2172 $as_echo "PATH: $as_dir" 2173 done 2174IFS=$as_save_IFS 2175 2176} >&5 2177 2178cat >&5 <<_ACEOF 2179 2180 2181## ----------- ## 2182## Core tests. ## 2183## ----------- ## 2184 2185_ACEOF 2186 2187 2188# Keep a trace of the command line. 2189# Strip out --no-create and --no-recursion so they do not pile up. 2190# Strip out --silent because we don't want to record it for future runs. 2191# Also quote any args containing shell meta-characters. 2192# Make two passes to allow for proper duplicate-argument suppression. 2193ac_configure_args= 2194ac_configure_args0= 2195ac_configure_args1= 2196ac_must_keep_next=false 2197for ac_pass in 1 2 2198do 2199 for ac_arg 2200 do 2201 case $ac_arg in 2202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2204 | -silent | --silent | --silen | --sile | --sil) 2205 continue ;; 2206 *\'*) 2207 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2208 esac 2209 case $ac_pass in 2210 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2211 2) 2212 as_fn_append ac_configure_args1 " '$ac_arg'" 2213 if test $ac_must_keep_next = true; then 2214 ac_must_keep_next=false # Got value, back to normal. 2215 else 2216 case $ac_arg in 2217 *=* | --config-cache | -C | -disable-* | --disable-* \ 2218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2220 | -with-* | --with-* | -without-* | --without-* | --x) 2221 case "$ac_configure_args0 " in 2222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2223 esac 2224 ;; 2225 -* ) ac_must_keep_next=true ;; 2226 esac 2227 fi 2228 as_fn_append ac_configure_args " '$ac_arg'" 2229 ;; 2230 esac 2231 done 2232done 2233{ ac_configure_args0=; unset ac_configure_args0;} 2234{ ac_configure_args1=; unset ac_configure_args1;} 2235 2236# When interrupted or exit'd, cleanup temporary files, and complete 2237# config.log. We remove comments because anyway the quotes in there 2238# would cause problems or look ugly. 2239# WARNING: Use '\'' to represent an apostrophe within the trap. 2240# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2241trap 'exit_status=$? 2242 # Save into config.log some information that might help in debugging. 2243 { 2244 echo 2245 2246 $as_echo "## ---------------- ## 2247## Cache variables. ## 2248## ---------------- ##" 2249 echo 2250 # The following way of writing the cache mishandles newlines in values, 2251( 2252 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2253 eval ac_val=\$$ac_var 2254 case $ac_val in #( 2255 *${as_nl}*) 2256 case $ac_var in #( 2257 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2258$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2259 esac 2260 case $ac_var in #( 2261 _ | IFS | as_nl) ;; #( 2262 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2263 *) { eval $ac_var=; unset $ac_var;} ;; 2264 esac ;; 2265 esac 2266 done 2267 (set) 2>&1 | 2268 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2269 *${as_nl}ac_space=\ *) 2270 sed -n \ 2271 "s/'\''/'\''\\\\'\'''\''/g; 2272 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2273 ;; #( 2274 *) 2275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2276 ;; 2277 esac | 2278 sort 2279) 2280 echo 2281 2282 $as_echo "## ----------------- ## 2283## Output variables. ## 2284## ----------------- ##" 2285 echo 2286 for ac_var in $ac_subst_vars 2287 do 2288 eval ac_val=\$$ac_var 2289 case $ac_val in 2290 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2291 esac 2292 $as_echo "$ac_var='\''$ac_val'\''" 2293 done | sort 2294 echo 2295 2296 if test -n "$ac_subst_files"; then 2297 $as_echo "## ------------------- ## 2298## File substitutions. ## 2299## ------------------- ##" 2300 echo 2301 for ac_var in $ac_subst_files 2302 do 2303 eval ac_val=\$$ac_var 2304 case $ac_val in 2305 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2306 esac 2307 $as_echo "$ac_var='\''$ac_val'\''" 2308 done | sort 2309 echo 2310 fi 2311 2312 if test -s confdefs.h; then 2313 $as_echo "## ----------- ## 2314## confdefs.h. ## 2315## ----------- ##" 2316 echo 2317 cat confdefs.h 2318 echo 2319 fi 2320 test "$ac_signal" != 0 && 2321 $as_echo "$as_me: caught signal $ac_signal" 2322 $as_echo "$as_me: exit $exit_status" 2323 } >&5 2324 rm -f core *.core core.conftest.* && 2325 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2326 exit $exit_status 2327' 0 2328for ac_signal in 1 2 13 15; do 2329 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2330done 2331ac_signal=0 2332 2333# confdefs.h avoids OS command line length limits that DEFS can exceed. 2334rm -f -r conftest* confdefs.h 2335 2336$as_echo "/* confdefs.h */" > confdefs.h 2337 2338# Predefined preprocessor variables. 2339 2340cat >>confdefs.h <<_ACEOF 2341#define PACKAGE_NAME "$PACKAGE_NAME" 2342_ACEOF 2343 2344cat >>confdefs.h <<_ACEOF 2345#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2346_ACEOF 2347 2348cat >>confdefs.h <<_ACEOF 2349#define PACKAGE_VERSION "$PACKAGE_VERSION" 2350_ACEOF 2351 2352cat >>confdefs.h <<_ACEOF 2353#define PACKAGE_STRING "$PACKAGE_STRING" 2354_ACEOF 2355 2356cat >>confdefs.h <<_ACEOF 2357#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2358_ACEOF 2359 2360cat >>confdefs.h <<_ACEOF 2361#define PACKAGE_URL "$PACKAGE_URL" 2362_ACEOF 2363 2364 2365# Let the site file select an alternate cache file if it wants to. 2366# Prefer an explicitly selected file to automatically selected ones. 2367ac_site_file1=NONE 2368ac_site_file2=NONE 2369if test -n "$CONFIG_SITE"; then 2370 # We do not want a PATH search for config.site. 2371 case $CONFIG_SITE in #(( 2372 -*) ac_site_file1=./$CONFIG_SITE;; 2373 */*) ac_site_file1=$CONFIG_SITE;; 2374 *) ac_site_file1=./$CONFIG_SITE;; 2375 esac 2376elif test "x$prefix" != xNONE; then 2377 ac_site_file1=$prefix/share/config.site 2378 ac_site_file2=$prefix/etc/config.site 2379else 2380 ac_site_file1=$ac_default_prefix/share/config.site 2381 ac_site_file2=$ac_default_prefix/etc/config.site 2382fi 2383for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2384do 2385 test "x$ac_site_file" = xNONE && continue 2386 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2388$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2389 sed 's/^/| /' "$ac_site_file" >&5 2390 . "$ac_site_file" \ 2391 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2393as_fn_error $? "failed to load site script $ac_site_file 2394See \`config.log' for more details" "$LINENO" 5 ; } 2395 fi 2396done 2397 2398if test -r "$cache_file"; then 2399 # Some versions of bash will fail to source /dev/null (special files 2400 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2401 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2403$as_echo "$as_me: loading cache $cache_file" >&6;} 2404 case $cache_file in 2405 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2406 *) . "./$cache_file";; 2407 esac 2408 fi 2409else 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2411$as_echo "$as_me: creating cache $cache_file" >&6;} 2412 >$cache_file 2413fi 2414 2415as_fn_append ac_header_list " stdlib.h" 2416as_fn_append ac_header_list " unistd.h" 2417as_fn_append ac_header_list " sys/param.h" 2418# Check that the precious variables saved in the cache have kept the same 2419# value. 2420ac_cache_corrupted=false 2421for ac_var in $ac_precious_vars; do 2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2423 eval ac_new_set=\$ac_env_${ac_var}_set 2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2425 eval ac_new_val=\$ac_env_${ac_var}_value 2426 case $ac_old_set,$ac_new_set in 2427 set,) 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2429$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2430 ac_cache_corrupted=: ;; 2431 ,set) 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2433$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2434 ac_cache_corrupted=: ;; 2435 ,);; 2436 *) 2437 if test "x$ac_old_val" != "x$ac_new_val"; then 2438 # differences in whitespace do not lead to failure. 2439 ac_old_val_w=`echo x $ac_old_val` 2440 ac_new_val_w=`echo x $ac_new_val` 2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2443$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2444 ac_cache_corrupted=: 2445 else 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2447$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2448 eval $ac_var=\$ac_old_val 2449 fi 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2451$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2453$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2454 fi;; 2455 esac 2456 # Pass precious variables to config.status. 2457 if test "$ac_new_set" = set; then 2458 case $ac_new_val in 2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2460 *) ac_arg=$ac_var=$ac_new_val ;; 2461 esac 2462 case " $ac_configure_args " in 2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2465 esac 2466 fi 2467done 2468if $ac_cache_corrupted; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2472$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2473 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2474fi 2475## -------------------- ## 2476## Main body of script. ## 2477## -------------------- ## 2478 2479ac_ext=c 2480ac_cpp='$CPP $CPPFLAGS' 2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2483ac_compiler_gnu=$ac_cv_c_compiler_gnu 2484 2485 2486ac_aux_dir= 2487for ac_dir in . "$srcdir"/.; do 2488 if test -f "$ac_dir/install-sh"; then 2489 ac_aux_dir=$ac_dir 2490 ac_install_sh="$ac_aux_dir/install-sh -c" 2491 break 2492 elif test -f "$ac_dir/install.sh"; then 2493 ac_aux_dir=$ac_dir 2494 ac_install_sh="$ac_aux_dir/install.sh -c" 2495 break 2496 elif test -f "$ac_dir/shtool"; then 2497 ac_aux_dir=$ac_dir 2498 ac_install_sh="$ac_aux_dir/shtool install -c" 2499 break 2500 fi 2501done 2502if test -z "$ac_aux_dir"; then 2503 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2504fi 2505 2506# These three variables are undocumented and unsupported, 2507# and are intended to be withdrawn in a future Autoconf release. 2508# They can cause serious problems if a builder's source tree is in a directory 2509# whose full name contains unusual characters. 2510ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2511ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2512ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2513 2514 2515 2516 2517ac_config_headers="$ac_config_headers config.h" 2518 2519am__api_version='1.11' 2520 2521# Find a good install program. We prefer a C program (faster), 2522# so one script is as good as another. But avoid the broken or 2523# incompatible versions: 2524# SysV /etc/install, /usr/sbin/install 2525# SunOS /usr/etc/install 2526# IRIX /sbin/install 2527# AIX /bin/install 2528# AmigaOS /C/install, which installs bootblocks on floppy discs 2529# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2530# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2531# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2532# OS/2's system install, which has a completely different semantic 2533# ./install, which can be erroneously created by make from ./install.sh. 2534# Reject install programs that cannot install multiple files. 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2536$as_echo_n "checking for a BSD-compatible install... " >&6; } 2537if test -z "$INSTALL"; then 2538if test "${ac_cv_path_install+set}" = set; then : 2539 $as_echo_n "(cached) " >&6 2540else 2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 # Account for people who put trailing slashes in PATH elements. 2547case $as_dir/ in #(( 2548 ./ | .// | /[cC]/* | \ 2549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2550 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2551 /usr/ucb/* ) ;; 2552 *) 2553 # OSF1 and SCO ODT 3.0 have their own names for install. 2554 # Don't use installbsd from OSF since it installs stuff as root 2555 # by default. 2556 for ac_prog in ginstall scoinst install; do 2557 for ac_exec_ext in '' $ac_executable_extensions; do 2558 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2559 if test $ac_prog = install && 2560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2561 # AIX install. It has an incompatible calling convention. 2562 : 2563 elif test $ac_prog = install && 2564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2565 # program-specific install script used by HP pwplus--don't use. 2566 : 2567 else 2568 rm -rf conftest.one conftest.two conftest.dir 2569 echo one > conftest.one 2570 echo two > conftest.two 2571 mkdir conftest.dir 2572 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2573 test -s conftest.one && test -s conftest.two && 2574 test -s conftest.dir/conftest.one && 2575 test -s conftest.dir/conftest.two 2576 then 2577 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2578 break 3 2579 fi 2580 fi 2581 fi 2582 done 2583 done 2584 ;; 2585esac 2586 2587 done 2588IFS=$as_save_IFS 2589 2590rm -rf conftest.one conftest.two conftest.dir 2591 2592fi 2593 if test "${ac_cv_path_install+set}" = set; then 2594 INSTALL=$ac_cv_path_install 2595 else 2596 # As a last resort, use the slow shell script. Don't cache a 2597 # value for INSTALL within a source directory, because that will 2598 # break other packages using the cache if that directory is 2599 # removed, or if the value is a relative name. 2600 INSTALL=$ac_install_sh 2601 fi 2602fi 2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2604$as_echo "$INSTALL" >&6; } 2605 2606# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2607# It thinks the first close brace ends the variable substitution. 2608test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2609 2610test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2611 2612test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2613 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2615$as_echo_n "checking whether build environment is sane... " >&6; } 2616# Just in case 2617sleep 1 2618echo timestamp > conftest.file 2619# Reject unsafe characters in $srcdir or the absolute working directory 2620# name. Accept space and tab only in the latter. 2621am_lf=' 2622' 2623case `pwd` in 2624 *[\\\"\#\$\&\'\`$am_lf]*) 2625 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;; 2626esac 2627case $srcdir in 2628 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2629 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;; 2630esac 2631 2632# Do `set' in a subshell so we don't clobber the current shell's 2633# arguments. Must try -L first in case configure is actually a 2634# symlink; some systems play weird games with the mod time of symlinks 2635# (eg FreeBSD returns the mod time of the symlink's containing 2636# directory). 2637if ( 2638 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2639 if test "$*" = "X"; then 2640 # -L didn't work. 2641 set X `ls -t "$srcdir/configure" conftest.file` 2642 fi 2643 rm -f conftest.file 2644 if test "$*" != "X $srcdir/configure conftest.file" \ 2645 && test "$*" != "X conftest.file $srcdir/configure"; then 2646 2647 # If neither matched, then we have a broken ls. This can happen 2648 # if, for instance, CONFIG_SHELL is bash and it inherits a 2649 # broken ls alias from the environment. This has actually 2650 # happened. Such a system could not be considered "sane". 2651 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2652alias in your environment" "$LINENO" 5 2653 fi 2654 2655 test "$2" = conftest.file 2656 ) 2657then 2658 # Ok. 2659 : 2660else 2661 as_fn_error $? "newly created file is older than distributed files! 2662Check your system clock" "$LINENO" 5 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2665$as_echo "yes" >&6; } 2666test "$program_prefix" != NONE && 2667 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2668# Use a double $ so make ignores it. 2669test "$program_suffix" != NONE && 2670 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2671# Double any \ or $. 2672# By default was `s,x,x', remove it if useless. 2673ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2674program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2675 2676# expand $ac_aux_dir to an absolute path 2677am_aux_dir=`cd $ac_aux_dir && pwd` 2678 2679if test x"${MISSING+set}" != xset; then 2680 case $am_aux_dir in 2681 *\ * | *\ *) 2682 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2683 *) 2684 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2685 esac 2686fi 2687# Use eval to expand $SHELL 2688if eval "$MISSING --run true"; then 2689 am_missing_run="$MISSING --run " 2690else 2691 am_missing_run= 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2693$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2694fi 2695 2696if test x"${install_sh}" != xset; then 2697 case $am_aux_dir in 2698 *\ * | *\ *) 2699 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2700 *) 2701 install_sh="\${SHELL} $am_aux_dir/install-sh" 2702 esac 2703fi 2704 2705# Installed binaries are usually stripped using `strip' when the user 2706# run `make install-strip'. However `strip' might not be the right 2707# tool to use in cross-compilation environments, therefore Automake 2708# will honor the `STRIP' environment variable to overrule this program. 2709if test "$cross_compiling" != no; then 2710 if test -n "$ac_tool_prefix"; then 2711 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2712set dummy ${ac_tool_prefix}strip; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if test "${ac_cv_prog_STRIP+set}" = set; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$STRIP"; then 2719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2720else 2721as_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 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2728 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738STRIP=$ac_cv_prog_STRIP 2739if test -n "$STRIP"; then 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2741$as_echo "$STRIP" >&6; } 2742else 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744$as_echo "no" >&6; } 2745fi 2746 2747 2748fi 2749if test -z "$ac_cv_prog_STRIP"; then 2750 ac_ct_STRIP=$STRIP 2751 # Extract the first word of "strip", so it can be a program name with args. 2752set dummy strip; ac_word=$2 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754$as_echo_n "checking for $ac_word... " >&6; } 2755if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2756 $as_echo_n "(cached) " >&6 2757else 2758 if test -n "$ac_ct_STRIP"; then 2759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2760else 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2768 ac_cv_prog_ac_ct_STRIP="strip" 2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777fi 2778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2779if test -n "$ac_ct_STRIP"; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2781$as_echo "$ac_ct_STRIP" >&6; } 2782else 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784$as_echo "no" >&6; } 2785fi 2786 2787 if test "x$ac_ct_STRIP" = x; then 2788 STRIP=":" 2789 else 2790 case $cross_compiling:$ac_tool_warned in 2791yes:) 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2794ac_tool_warned=yes ;; 2795esac 2796 STRIP=$ac_ct_STRIP 2797 fi 2798else 2799 STRIP="$ac_cv_prog_STRIP" 2800fi 2801 2802fi 2803INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2804 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2806$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2807if test -z "$MKDIR_P"; then 2808 if test "${ac_cv_path_mkdir+set}" = set; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2813do 2814 IFS=$as_save_IFS 2815 test -z "$as_dir" && as_dir=. 2816 for ac_prog in mkdir gmkdir; do 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2819 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2820 'mkdir (GNU coreutils) '* | \ 2821 'mkdir (coreutils) '* | \ 2822 'mkdir (fileutils) '4.1*) 2823 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2824 break 3;; 2825 esac 2826 done 2827 done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832 2833 test -d ./--version && rmdir ./--version 2834 if test "${ac_cv_path_mkdir+set}" = set; then 2835 MKDIR_P="$ac_cv_path_mkdir -p" 2836 else 2837 # As a last resort, use the slow shell script. Don't cache a 2838 # value for MKDIR_P within a source directory, because that will 2839 # break other packages using the cache if that directory is 2840 # removed, or if the value is a relative name. 2841 MKDIR_P="$ac_install_sh -d" 2842 fi 2843fi 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2845$as_echo "$MKDIR_P" >&6; } 2846 2847mkdir_p="$MKDIR_P" 2848case $mkdir_p in 2849 [\\/$]* | ?:[\\/]*) ;; 2850 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2851esac 2852 2853for ac_prog in gawk mawk nawk awk 2854do 2855 # Extract the first word of "$ac_prog", so it can be a program name with args. 2856set dummy $ac_prog; ac_word=$2 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2858$as_echo_n "checking for $ac_word... " >&6; } 2859if test "${ac_cv_prog_AWK+set}" = set; then : 2860 $as_echo_n "(cached) " >&6 2861else 2862 if test -n "$AWK"; then 2863 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2864else 2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866for as_dir in $PATH 2867do 2868 IFS=$as_save_IFS 2869 test -z "$as_dir" && as_dir=. 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2872 ac_cv_prog_AWK="$ac_prog" 2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876done 2877 done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882AWK=$ac_cv_prog_AWK 2883if test -n "$AWK"; then 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2885$as_echo "$AWK" >&6; } 2886else 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888$as_echo "no" >&6; } 2889fi 2890 2891 2892 test -n "$AWK" && break 2893done 2894 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2896$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2897set x ${MAKE-make} 2898ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2899if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2900 $as_echo_n "(cached) " >&6 2901else 2902 cat >conftest.make <<\_ACEOF 2903SHELL = /bin/sh 2904all: 2905 @echo '@@@%%%=$(MAKE)=@@@%%%' 2906_ACEOF 2907# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2908case `${MAKE-make} -f conftest.make 2>/dev/null` in 2909 *@@@%%%=?*=@@@%%%*) 2910 eval ac_cv_prog_make_${ac_make}_set=yes;; 2911 *) 2912 eval ac_cv_prog_make_${ac_make}_set=no;; 2913esac 2914rm -f conftest.make 2915fi 2916if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2918$as_echo "yes" >&6; } 2919 SET_MAKE= 2920else 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922$as_echo "no" >&6; } 2923 SET_MAKE="MAKE=${MAKE-make}" 2924fi 2925 2926rm -rf .tst 2>/dev/null 2927mkdir .tst 2>/dev/null 2928if test -d .tst; then 2929 am__leading_dot=. 2930else 2931 am__leading_dot=_ 2932fi 2933rmdir .tst 2>/dev/null 2934 2935if test "`cd $srcdir && pwd`" != "`pwd`"; then 2936 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2937 # is not polluted with repeated "-I." 2938 am__isrc=' -I$(srcdir)' 2939 # test to see if srcdir already configured 2940 if test -f $srcdir/config.status; then 2941 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2942 fi 2943fi 2944 2945# test whether we have cygpath 2946if test -z "$CYGPATH_W"; then 2947 if (cygpath --version) >/dev/null 2>/dev/null; then 2948 CYGPATH_W='cygpath -w' 2949 else 2950 CYGPATH_W=echo 2951 fi 2952fi 2953 2954 2955# Define the identity of the package. 2956 PACKAGE='archiveInflate' 2957 VERSION='0.5.0' 2958 2959 2960# Some tools Automake needs. 2961 2962ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2963 2964 2965AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2966 2967 2968AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2969 2970 2971AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2972 2973 2974MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2975 2976# We need awk for the "check" target. The system "awk" is bad on 2977# some platforms. 2978# Always define AMTAR for backward compatibility. 2979 2980AMTAR=${AMTAR-"${am_missing_run}tar"} 2981 2982 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 2984$as_echo_n "checking how to create a ustar tar archive... " >&6; } 2985# Loop over all known methods to create a tar archive until one works. 2986_am_tools='gnutar plaintar pax cpio none' 2987_am_tools=${am_cv_prog_tar_ustar-$_am_tools} 2988# Do not fold the above two line into one, because Tru64 sh and 2989# Solaris sh will not grok spaces in the rhs of `-'. 2990for _am_tool in $_am_tools 2991do 2992 case $_am_tool in 2993 gnutar) 2994 for _am_tar in tar gnutar gtar; 2995 do 2996 { echo "$as_me:$LINENO: $_am_tar --version" >&5 2997 ($_am_tar --version) >&5 2>&5 2998 ac_status=$? 2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3000 (exit $ac_status); } && break 3001 done 3002 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3003 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3004 am__untar="$_am_tar -xf -" 3005 ;; 3006 plaintar) 3007 # Must skip GNU tar: if it does not support --format= it doesn't create 3008 # ustar tarball either. 3009 (tar --version) >/dev/null 2>&1 && continue 3010 am__tar='tar chf - "$$tardir"' 3011 am__tar_='tar chf - "$tardir"' 3012 am__untar='tar xf -' 3013 ;; 3014 pax) 3015 am__tar='pax -L -x ustar -w "$$tardir"' 3016 am__tar_='pax -L -x ustar -w "$tardir"' 3017 am__untar='pax -r' 3018 ;; 3019 cpio) 3020 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3021 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3022 am__untar='cpio -i -H ustar -d' 3023 ;; 3024 none) 3025 am__tar=false 3026 am__tar_=false 3027 am__untar=false 3028 ;; 3029 esac 3030 3031 # If the value was cached, stop now. We just wanted to have am__tar 3032 # and am__untar set. 3033 test -n "${am_cv_prog_tar_ustar}" && break 3034 3035 # tar/untar a dummy directory, and stop if the command works 3036 rm -rf conftest.dir 3037 mkdir conftest.dir 3038 echo GrepMe > conftest.dir/file 3039 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3040 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3041 ac_status=$? 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } 3044 rm -rf conftest.dir 3045 if test -s conftest.tar; then 3046 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3047 ($am__untar <conftest.tar) >&5 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); } 3051 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3052 fi 3053done 3054rm -rf conftest.dir 3055 3056if test "${am_cv_prog_tar_ustar+set}" = set; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 am_cv_prog_tar_ustar=$_am_tool 3060fi 3061 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3063$as_echo "$am_cv_prog_tar_ustar" >&6; } 3064 3065 3066 3067 3068 3069 3070# Pull in the checks for the build tools. 3071 3072# Make sure we can run config.sub. 3073$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3074 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3075 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3077$as_echo_n "checking build system type... " >&6; } 3078if test "${ac_cv_build+set}" = set; then : 3079 $as_echo_n "(cached) " >&6 3080else 3081 ac_build_alias=$build_alias 3082test "x$ac_build_alias" = x && 3083 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3084test "x$ac_build_alias" = x && 3085 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3086ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3087 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3088 3089fi 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3091$as_echo "$ac_cv_build" >&6; } 3092case $ac_cv_build in 3093*-*-*) ;; 3094*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;; 3095esac 3096build=$ac_cv_build 3097ac_save_IFS=$IFS; IFS='-' 3098set x $ac_cv_build 3099shift 3100build_cpu=$1 3101build_vendor=$2 3102shift; shift 3103# Remember, the first character of IFS is used to create $*, 3104# except with old shells: 3105build_os=$* 3106IFS=$ac_save_IFS 3107case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3108 3109 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3111$as_echo_n "checking host system type... " >&6; } 3112if test "${ac_cv_host+set}" = set; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 if test "x$host_alias" = x; then 3116 ac_cv_host=$ac_cv_build 3117else 3118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3119 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3120fi 3121 3122fi 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3124$as_echo "$ac_cv_host" >&6; } 3125case $ac_cv_host in 3126*-*-*) ;; 3127*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;; 3128esac 3129host=$ac_cv_host 3130ac_save_IFS=$IFS; IFS='-' 3131set x $ac_cv_host 3132shift 3133host_cpu=$1 3134host_vendor=$2 3135shift; shift 3136# Remember, the first character of IFS is used to create $*, 3137# except with old shells: 3138host_os=$* 3139IFS=$ac_save_IFS 3140case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3141 3142 3143 3144ac_ext=c 3145ac_cpp='$CPP $CPPFLAGS' 3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3148ac_compiler_gnu=$ac_cv_c_compiler_gnu 3149if test -n "$ac_tool_prefix"; then 3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3151set dummy ${ac_tool_prefix}gcc; ac_word=$2 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3153$as_echo_n "checking for $ac_word... " >&6; } 3154if test "${ac_cv_prog_CC+set}" = set; then : 3155 $as_echo_n "(cached) " >&6 3156else 3157 if test -n "$CC"; then 3158 ac_cv_prog_CC="$CC" # Let the user override the test. 3159else 3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3161for as_dir in $PATH 3162do 3163 IFS=$as_save_IFS 3164 test -z "$as_dir" && as_dir=. 3165 for ac_exec_ext in '' $ac_executable_extensions; do 3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3167 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3169 break 2 3170 fi 3171done 3172 done 3173IFS=$as_save_IFS 3174 3175fi 3176fi 3177CC=$ac_cv_prog_CC 3178if test -n "$CC"; then 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3180$as_echo "$CC" >&6; } 3181else 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3183$as_echo "no" >&6; } 3184fi 3185 3186 3187fi 3188if test -z "$ac_cv_prog_CC"; then 3189 ac_ct_CC=$CC 3190 # Extract the first word of "gcc", so it can be a program name with args. 3191set dummy gcc; ac_word=$2 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3193$as_echo_n "checking for $ac_word... " >&6; } 3194if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3195 $as_echo_n "(cached) " >&6 3196else 3197 if test -n "$ac_ct_CC"; then 3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3199else 3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3201for as_dir in $PATH 3202do 3203 IFS=$as_save_IFS 3204 test -z "$as_dir" && as_dir=. 3205 for ac_exec_ext in '' $ac_executable_extensions; do 3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3207 ac_cv_prog_ac_ct_CC="gcc" 3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3209 break 2 3210 fi 3211done 3212 done 3213IFS=$as_save_IFS 3214 3215fi 3216fi 3217ac_ct_CC=$ac_cv_prog_ac_ct_CC 3218if test -n "$ac_ct_CC"; then 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3220$as_echo "$ac_ct_CC" >&6; } 3221else 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3223$as_echo "no" >&6; } 3224fi 3225 3226 if test "x$ac_ct_CC" = x; then 3227 CC="" 3228 else 3229 case $cross_compiling:$ac_tool_warned in 3230yes:) 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3233ac_tool_warned=yes ;; 3234esac 3235 CC=$ac_ct_CC 3236 fi 3237else 3238 CC="$ac_cv_prog_CC" 3239fi 3240 3241if test -z "$CC"; then 3242 if test -n "$ac_tool_prefix"; then 3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3244set dummy ${ac_tool_prefix}cc; ac_word=$2 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3246$as_echo_n "checking for $ac_word... " >&6; } 3247if test "${ac_cv_prog_CC+set}" = set; then : 3248 $as_echo_n "(cached) " >&6 3249else 3250 if test -n "$CC"; then 3251 ac_cv_prog_CC="$CC" # Let the user override the test. 3252else 3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254for as_dir in $PATH 3255do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for ac_exec_ext in '' $ac_executable_extensions; do 3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3260 ac_cv_prog_CC="${ac_tool_prefix}cc" 3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3262 break 2 3263 fi 3264done 3265 done 3266IFS=$as_save_IFS 3267 3268fi 3269fi 3270CC=$ac_cv_prog_CC 3271if test -n "$CC"; then 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3273$as_echo "$CC" >&6; } 3274else 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276$as_echo "no" >&6; } 3277fi 3278 3279 3280 fi 3281fi 3282if test -z "$CC"; then 3283 # Extract the first word of "cc", so it can be a program name with args. 3284set dummy cc; ac_word=$2 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3286$as_echo_n "checking for $ac_word... " >&6; } 3287if test "${ac_cv_prog_CC+set}" = set; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 if test -n "$CC"; then 3291 ac_cv_prog_CC="$CC" # Let the user override the test. 3292else 3293 ac_prog_rejected=no 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH 3296do 3297 IFS=$as_save_IFS 3298 test -z "$as_dir" && as_dir=. 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3302 ac_prog_rejected=yes 3303 continue 3304 fi 3305 ac_cv_prog_CC="cc" 3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3307 break 2 3308 fi 3309done 3310 done 3311IFS=$as_save_IFS 3312 3313if test $ac_prog_rejected = yes; then 3314 # We found a bogon in the path, so make sure we never use it. 3315 set dummy $ac_cv_prog_CC 3316 shift 3317 if test $# != 0; then 3318 # We chose a different compiler from the bogus one. 3319 # However, it has the same basename, so the bogon will be chosen 3320 # first if we set CC to just the basename; use the full file name. 3321 shift 3322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3323 fi 3324fi 3325fi 3326fi 3327CC=$ac_cv_prog_CC 3328if test -n "$CC"; then 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3330$as_echo "$CC" >&6; } 3331else 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3333$as_echo "no" >&6; } 3334fi 3335 3336 3337fi 3338if test -z "$CC"; then 3339 if test -n "$ac_tool_prefix"; then 3340 for ac_prog in cl.exe 3341 do 3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3343set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3345$as_echo_n "checking for $ac_word... " >&6; } 3346if test "${ac_cv_prog_CC+set}" = set; then : 3347 $as_echo_n "(cached) " >&6 3348else 3349 if test -n "$CC"; then 3350 ac_cv_prog_CC="$CC" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367fi 3368fi 3369CC=$ac_cv_prog_CC 3370if test -n "$CC"; then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3372$as_echo "$CC" >&6; } 3373else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375$as_echo "no" >&6; } 3376fi 3377 3378 3379 test -n "$CC" && break 3380 done 3381fi 3382if test -z "$CC"; then 3383 ac_ct_CC=$CC 3384 for ac_prog in cl.exe 3385do 3386 # Extract the first word of "$ac_prog", so it can be a program name with args. 3387set dummy $ac_prog; ac_word=$2 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389$as_echo_n "checking for $ac_word... " >&6; } 3390if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3391 $as_echo_n "(cached) " >&6 3392else 3393 if test -n "$ac_ct_CC"; then 3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3395else 3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3397for as_dir in $PATH 3398do 3399 IFS=$as_save_IFS 3400 test -z "$as_dir" && as_dir=. 3401 for ac_exec_ext in '' $ac_executable_extensions; do 3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3403 ac_cv_prog_ac_ct_CC="$ac_prog" 3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3405 break 2 3406 fi 3407done 3408 done 3409IFS=$as_save_IFS 3410 3411fi 3412fi 3413ac_ct_CC=$ac_cv_prog_ac_ct_CC 3414if test -n "$ac_ct_CC"; then 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3416$as_echo "$ac_ct_CC" >&6; } 3417else 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419$as_echo "no" >&6; } 3420fi 3421 3422 3423 test -n "$ac_ct_CC" && break 3424done 3425 3426 if test "x$ac_ct_CC" = x; then 3427 CC="" 3428 else 3429 case $cross_compiling:$ac_tool_warned in 3430yes:) 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3433ac_tool_warned=yes ;; 3434esac 3435 CC=$ac_ct_CC 3436 fi 3437fi 3438 3439fi 3440 3441 3442test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3444as_fn_error $? "no acceptable C compiler found in \$PATH 3445See \`config.log' for more details" "$LINENO" 5 ; } 3446 3447# Provide some information about the compiler. 3448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3449set X $ac_compile 3450ac_compiler=$2 3451for ac_option in --version -v -V -qversion; do 3452 { { ac_try="$ac_compiler $ac_option >&5" 3453case "(($ac_try" in 3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3455 *) ac_try_echo=$ac_try;; 3456esac 3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3458$as_echo "$ac_try_echo"; } >&5 3459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3460 ac_status=$? 3461 if test -s conftest.err; then 3462 sed '10a\ 3463... rest of stderr output deleted ... 3464 10q' conftest.err >conftest.er1 3465 cat conftest.er1 >&5 3466 fi 3467 rm -f conftest.er1 conftest.err 3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3469 test $ac_status = 0; } 3470done 3471 3472cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3473/* end confdefs.h. */ 3474 3475int 3476main () 3477{ 3478 3479 ; 3480 return 0; 3481} 3482_ACEOF 3483ac_clean_files_save=$ac_clean_files 3484ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3485# Try to create an executable without -o first, disregard a.out. 3486# It will help us diagnose broken compilers, and finding out an intuition 3487# of exeext. 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3489$as_echo_n "checking whether the C compiler works... " >&6; } 3490ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3491 3492# The possible output files: 3493ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3494 3495ac_rmfiles= 3496for ac_file in $ac_files 3497do 3498 case $ac_file in 3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3500 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3501 esac 3502done 3503rm -f $ac_rmfiles 3504 3505if { { ac_try="$ac_link_default" 3506case "(($ac_try" in 3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3508 *) ac_try_echo=$ac_try;; 3509esac 3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3511$as_echo "$ac_try_echo"; } >&5 3512 (eval "$ac_link_default") 2>&5 3513 ac_status=$? 3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3515 test $ac_status = 0; }; then : 3516 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3517# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3518# in a Makefile. We should not override ac_cv_exeext if it was cached, 3519# so that the user can short-circuit this test for compilers unknown to 3520# Autoconf. 3521for ac_file in $ac_files '' 3522do 3523 test -f "$ac_file" || continue 3524 case $ac_file in 3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3526 ;; 3527 [ab].out ) 3528 # We found the default executable, but exeext='' is most 3529 # certainly right. 3530 break;; 3531 *.* ) 3532 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3533 then :; else 3534 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3535 fi 3536 # We set ac_cv_exeext here because the later test for it is not 3537 # safe: cross compilers may not add the suffix if given an `-o' 3538 # argument, so we may need to know it at that point already. 3539 # Even if this section looks crufty: it has the advantage of 3540 # actually working. 3541 break;; 3542 * ) 3543 break;; 3544 esac 3545done 3546test "$ac_cv_exeext" = no && ac_cv_exeext= 3547 3548else 3549 ac_file='' 3550fi 3551if test -z "$ac_file"; then : 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553$as_echo "no" >&6; } 3554$as_echo "$as_me: failed program was:" >&5 3555sed 's/^/| /' conftest.$ac_ext >&5 3556 3557{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3559as_fn_error 77 "C compiler cannot create executables 3560See \`config.log' for more details" "$LINENO" 5 ; } 3561else 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3563$as_echo "yes" >&6; } 3564fi 3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3566$as_echo_n "checking for C compiler default output file name... " >&6; } 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3568$as_echo "$ac_file" >&6; } 3569ac_exeext=$ac_cv_exeext 3570 3571rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3572ac_clean_files=$ac_clean_files_save 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3574$as_echo_n "checking for suffix of executables... " >&6; } 3575if { { ac_try="$ac_link" 3576case "(($ac_try" in 3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3578 *) ac_try_echo=$ac_try;; 3579esac 3580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3581$as_echo "$ac_try_echo"; } >&5 3582 (eval "$ac_link") 2>&5 3583 ac_status=$? 3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3585 test $ac_status = 0; }; then : 3586 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3587# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3588# work properly (i.e., refer to `conftest.exe'), while it won't with 3589# `rm'. 3590for ac_file in conftest.exe conftest conftest.*; do 3591 test -f "$ac_file" || continue 3592 case $ac_file in 3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3594 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3595 break;; 3596 * ) break;; 3597 esac 3598done 3599else 3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3602as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3603See \`config.log' for more details" "$LINENO" 5 ; } 3604fi 3605rm -f conftest conftest$ac_cv_exeext 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3607$as_echo "$ac_cv_exeext" >&6; } 3608 3609rm -f conftest.$ac_ext 3610EXEEXT=$ac_cv_exeext 3611ac_exeext=$EXEEXT 3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613/* end confdefs.h. */ 3614#include <stdio.h> 3615int 3616main () 3617{ 3618FILE *f = fopen ("conftest.out", "w"); 3619 return ferror (f) || fclose (f) != 0; 3620 3621 ; 3622 return 0; 3623} 3624_ACEOF 3625ac_clean_files="$ac_clean_files conftest.out" 3626# Check that the compiler produces executables we can run. If not, either 3627# the compiler is broken, or we cross compile. 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3629$as_echo_n "checking whether we are cross compiling... " >&6; } 3630if test "$cross_compiling" != yes; then 3631 { { ac_try="$ac_link" 3632case "(($ac_try" in 3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3634 *) ac_try_echo=$ac_try;; 3635esac 3636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3637$as_echo "$ac_try_echo"; } >&5 3638 (eval "$ac_link") 2>&5 3639 ac_status=$? 3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3641 test $ac_status = 0; } 3642 if { ac_try='./conftest$ac_cv_exeext' 3643 { { case "(($ac_try" in 3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3645 *) ac_try_echo=$ac_try;; 3646esac 3647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3648$as_echo "$ac_try_echo"; } >&5 3649 (eval "$ac_try") 2>&5 3650 ac_status=$? 3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3652 test $ac_status = 0; }; }; then 3653 cross_compiling=no 3654 else 3655 if test "$cross_compiling" = maybe; then 3656 cross_compiling=yes 3657 else 3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3660as_fn_error $? "cannot run C compiled programs. 3661If you meant to cross compile, use \`--host'. 3662See \`config.log' for more details" "$LINENO" 5 ; } 3663 fi 3664 fi 3665fi 3666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3667$as_echo "$cross_compiling" >&6; } 3668 3669rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3670ac_clean_files=$ac_clean_files_save 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3672$as_echo_n "checking for suffix of object files... " >&6; } 3673if test "${ac_cv_objext+set}" = set; then : 3674 $as_echo_n "(cached) " >&6 3675else 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678 3679int 3680main () 3681{ 3682 3683 ; 3684 return 0; 3685} 3686_ACEOF 3687rm -f conftest.o conftest.obj 3688if { { ac_try="$ac_compile" 3689case "(($ac_try" in 3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3691 *) ac_try_echo=$ac_try;; 3692esac 3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3694$as_echo "$ac_try_echo"; } >&5 3695 (eval "$ac_compile") 2>&5 3696 ac_status=$? 3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3698 test $ac_status = 0; }; then : 3699 for ac_file in conftest.o conftest.obj conftest.*; do 3700 test -f "$ac_file" || continue; 3701 case $ac_file in 3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3703 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3704 break;; 3705 esac 3706done 3707else 3708 $as_echo "$as_me: failed program was:" >&5 3709sed 's/^/| /' conftest.$ac_ext >&5 3710 3711{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3713as_fn_error $? "cannot compute suffix of object files: cannot compile 3714See \`config.log' for more details" "$LINENO" 5 ; } 3715fi 3716rm -f conftest.$ac_cv_objext conftest.$ac_ext 3717fi 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3719$as_echo "$ac_cv_objext" >&6; } 3720OBJEXT=$ac_cv_objext 3721ac_objext=$OBJEXT 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3723$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3724if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730int 3731main () 3732{ 3733#ifndef __GNUC__ 3734 choke me 3735#endif 3736 3737 ; 3738 return 0; 3739} 3740_ACEOF 3741if ac_fn_c_try_compile "$LINENO"; then : 3742 ac_compiler_gnu=yes 3743else 3744 ac_compiler_gnu=no 3745fi 3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3747ac_cv_c_compiler_gnu=$ac_compiler_gnu 3748 3749fi 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3751$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3752if test $ac_compiler_gnu = yes; then 3753 GCC=yes 3754else 3755 GCC= 3756fi 3757ac_test_CFLAGS=${CFLAGS+set} 3758ac_save_CFLAGS=$CFLAGS 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3760$as_echo_n "checking whether $CC accepts -g... " >&6; } 3761if test "${ac_cv_prog_cc_g+set}" = set; then : 3762 $as_echo_n "(cached) " >&6 3763else 3764 ac_save_c_werror_flag=$ac_c_werror_flag 3765 ac_c_werror_flag=yes 3766 ac_cv_prog_cc_g=no 3767 CFLAGS="-g" 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771int 3772main () 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779if ac_fn_c_try_compile "$LINENO"; then : 3780 ac_cv_prog_cc_g=yes 3781else 3782 CFLAGS="" 3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785 3786int 3787main () 3788{ 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794if ac_fn_c_try_compile "$LINENO"; then : 3795 3796else 3797 ac_c_werror_flag=$ac_save_c_werror_flag 3798 CFLAGS="-g" 3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3800/* end confdefs.h. */ 3801 3802int 3803main () 3804{ 3805 3806 ; 3807 return 0; 3808} 3809_ACEOF 3810if ac_fn_c_try_compile "$LINENO"; then : 3811 ac_cv_prog_cc_g=yes 3812fi 3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3814fi 3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3816fi 3817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3818 ac_c_werror_flag=$ac_save_c_werror_flag 3819fi 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3821$as_echo "$ac_cv_prog_cc_g" >&6; } 3822if test "$ac_test_CFLAGS" = set; then 3823 CFLAGS=$ac_save_CFLAGS 3824elif test $ac_cv_prog_cc_g = yes; then 3825 if test "$GCC" = yes; then 3826 CFLAGS="-g -O2" 3827 else 3828 CFLAGS="-g" 3829 fi 3830else 3831 if test "$GCC" = yes; then 3832 CFLAGS="-O2" 3833 else 3834 CFLAGS= 3835 fi 3836fi 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3838$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3839if test "${ac_cv_prog_cc_c89+set}" = set; then : 3840 $as_echo_n "(cached) " >&6 3841else 3842 ac_cv_prog_cc_c89=no 3843ac_save_CC=$CC 3844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846#include <stdarg.h> 3847#include <stdio.h> 3848#include <sys/types.h> 3849#include <sys/stat.h> 3850/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3851struct buf { int x; }; 3852FILE * (*rcsopen) (struct buf *, struct stat *, int); 3853static char *e (p, i) 3854 char **p; 3855 int i; 3856{ 3857 return p[i]; 3858} 3859static char *f (char * (*g) (char **, int), char **p, ...) 3860{ 3861 char *s; 3862 va_list v; 3863 va_start (v,p); 3864 s = g (p, va_arg (v,int)); 3865 va_end (v); 3866 return s; 3867} 3868 3869/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3870 function prototypes and stuff, but not '\xHH' hex character constants. 3871 These don't provoke an error unfortunately, instead are silently treated 3872 as 'x'. The following induces an error, until -std is added to get 3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3874 array size at least. It's necessary to write '\x00'==0 to get something 3875 that's true only with -std. */ 3876int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3877 3878/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3879 inside strings and character constants. */ 3880#define FOO(x) 'x' 3881int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3882 3883int test (int i, double x); 3884struct s1 {int (*f) (int a);}; 3885struct s2 {int (*f) (double a);}; 3886int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3887int argc; 3888char **argv; 3889int 3890main () 3891{ 3892return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3899do 3900 CC="$ac_save_CC $ac_arg" 3901 if ac_fn_c_try_compile "$LINENO"; then : 3902 ac_cv_prog_cc_c89=$ac_arg 3903fi 3904rm -f core conftest.err conftest.$ac_objext 3905 test "x$ac_cv_prog_cc_c89" != "xno" && break 3906done 3907rm -f conftest.$ac_ext 3908CC=$ac_save_CC 3909 3910fi 3911# AC_CACHE_VAL 3912case "x$ac_cv_prog_cc_c89" in 3913 x) 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3915$as_echo "none needed" >&6; } ;; 3916 xno) 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3918$as_echo "unsupported" >&6; } ;; 3919 *) 3920 CC="$CC $ac_cv_prog_cc_c89" 3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3922$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3923esac 3924if test "x$ac_cv_prog_cc_c89" != xno; then : 3925 3926fi 3927 3928ac_ext=c 3929ac_cpp='$CPP $CPPFLAGS' 3930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3932ac_compiler_gnu=$ac_cv_c_compiler_gnu 3933DEPDIR="${am__leading_dot}deps" 3934 3935ac_config_commands="$ac_config_commands depfiles" 3936 3937 3938am_make=${MAKE-make} 3939cat > confinc << 'END' 3940am__doit: 3941 @echo this is the am__doit target 3942.PHONY: am__doit 3943END 3944# If we don't find an include directive, just comment out the code. 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3946$as_echo_n "checking for style of include used by $am_make... " >&6; } 3947am__include="#" 3948am__quote= 3949_am_result=none 3950# First try GNU make style include. 3951echo "include confinc" > confmf 3952# Ignore all kinds of additional output from `make'. 3953case `$am_make -s -f confmf 2> /dev/null` in #( 3954*the\ am__doit\ target*) 3955 am__include=include 3956 am__quote= 3957 _am_result=GNU 3958 ;; 3959esac 3960# Now try BSD make style include. 3961if test "$am__include" = "#"; then 3962 echo '.include "confinc"' > confmf 3963 case `$am_make -s -f confmf 2> /dev/null` in #( 3964 *the\ am__doit\ target*) 3965 am__include=.include 3966 am__quote="\"" 3967 _am_result=BSD 3968 ;; 3969 esac 3970fi 3971 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3974$as_echo "$_am_result" >&6; } 3975rm -f confinc confmf 3976 3977# Check whether --enable-dependency-tracking was given. 3978if test "${enable_dependency_tracking+set}" = set; then : 3979 enableval=$enable_dependency_tracking; 3980fi 3981 3982if test "x$enable_dependency_tracking" != xno; then 3983 am_depcomp="$ac_aux_dir/depcomp" 3984 AMDEPBACKSLASH='\' 3985fi 3986 if test "x$enable_dependency_tracking" != xno; then 3987 AMDEP_TRUE= 3988 AMDEP_FALSE='#' 3989else 3990 AMDEP_TRUE='#' 3991 AMDEP_FALSE= 3992fi 3993 3994 3995 3996depcc="$CC" am_compiler_list= 3997 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3999$as_echo_n "checking dependency style of $depcc... " >&6; } 4000if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4004 # We make a subdir and do the tests there. Otherwise we can end up 4005 # making bogus files that we don't know about and never remove. For 4006 # instance it was reported that on HP-UX the gcc test will end up 4007 # making a dummy file named `D' -- because `-MD' means `put the output 4008 # in D'. 4009 mkdir conftest.dir 4010 # Copy depcomp to subdir because otherwise we won't find it if we're 4011 # using a relative directory. 4012 cp "$am_depcomp" conftest.dir 4013 cd conftest.dir 4014 # We will build objects and dependencies in a subdirectory because 4015 # it helps to detect inapplicable dependency modes. For instance 4016 # both Tru64's cc and ICC support -MD to output dependencies as a 4017 # side effect of compilation, but ICC will put the dependencies in 4018 # the current directory while Tru64 will put them in the object 4019 # directory. 4020 mkdir sub 4021 4022 am_cv_CC_dependencies_compiler_type=none 4023 if test "$am_compiler_list" = ""; then 4024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4025 fi 4026 am__universal=false 4027 case " $depcc " in #( 4028 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4029 esac 4030 4031 for depmode in $am_compiler_list; do 4032 # Setup a source with many dependencies, because some compilers 4033 # like to wrap large dependency lists on column 80 (with \), and 4034 # we should not choose a depcomp mode which is confused by this. 4035 # 4036 # We need to recreate these files for each test, as the compiler may 4037 # overwrite some of them when testing with obscure command lines. 4038 # This happens at least with the AIX C compiler. 4039 : > sub/conftest.c 4040 for i in 1 2 3 4 5 6; do 4041 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4043 # Solaris 8's {/usr,}/bin/sh. 4044 touch sub/conftst$i.h 4045 done 4046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4047 4048 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4049 # mode. It turns out that the SunPro C++ compiler does not properly 4050 # handle `-M -o', and we need to detect this. Also, some Intel 4051 # versions had trouble with output in subdirs 4052 am__obj=sub/conftest.${OBJEXT-o} 4053 am__minus_obj="-o $am__obj" 4054 case $depmode in 4055 gcc) 4056 # This depmode causes a compiler race in universal mode. 4057 test "$am__universal" = false || continue 4058 ;; 4059 nosideeffect) 4060 # after this tag, mechanisms are not by side-effect, so they'll 4061 # only be used when explicitly requested 4062 if test "x$enable_dependency_tracking" = xyes; then 4063 continue 4064 else 4065 break 4066 fi 4067 ;; 4068 msvisualcpp | msvcmsys) 4069 # This compiler won't grok `-c -o', but also, the minuso test has 4070 # not run yet. These depmodes are late enough in the game, and 4071 # so weak that their functioning should not be impacted. 4072 am__obj=conftest.${OBJEXT-o} 4073 am__minus_obj= 4074 ;; 4075 none) break ;; 4076 esac 4077 if depmode=$depmode \ 4078 source=sub/conftest.c object=$am__obj \ 4079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4080 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4081 >/dev/null 2>conftest.err && 4082 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4084 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4086 # icc doesn't choke on unknown options, it will just issue warnings 4087 # or remarks (even with -Werror). So we grep stderr for any message 4088 # that says an option was ignored or not supported. 4089 # When given -MP, icc 7.0 and 7.1 complain thusly: 4090 # icc: Command line warning: ignoring option '-M'; no argument required 4091 # The diagnosis changed in icc 8.0: 4092 # icc: Command line remark: option '-MP' not supported 4093 if (grep 'ignoring option' conftest.err || 4094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4095 am_cv_CC_dependencies_compiler_type=$depmode 4096 break 4097 fi 4098 fi 4099 done 4100 4101 cd .. 4102 rm -rf conftest.dir 4103else 4104 am_cv_CC_dependencies_compiler_type=none 4105fi 4106 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4109$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4110CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4111 4112 if 4113 test "x$enable_dependency_tracking" != xno \ 4114 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4115 am__fastdepCC_TRUE= 4116 am__fastdepCC_FALSE='#' 4117else 4118 am__fastdepCC_TRUE='#' 4119 am__fastdepCC_FALSE= 4120fi 4121 4122 4123 4124case `pwd` in 4125 *\ * | *\ *) 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4127$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4128esac 4129 4130 4131 4132macro_version='2.2.6b' 4133macro_revision='1.3017' 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147ltmain="$ac_aux_dir/ltmain.sh" 4148 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4150$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4151if test "${ac_cv_path_SED+set}" = set; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4155 for ac_i in 1 2 3 4 5 6 7; do 4156 ac_script="$ac_script$as_nl$ac_script" 4157 done 4158 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4159 { ac_script=; unset ac_script;} 4160 if test -z "$SED"; then 4161 ac_path_SED_found=false 4162 # Loop through the user's path and test for each of PROGNAME-LIST 4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH 4165do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_prog in sed gsed; do 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4171 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4172# Check for GNU ac_path_SED and select it if it is found. 4173 # Check for GNU $ac_path_SED 4174case `"$ac_path_SED" --version 2>&1` in 4175*GNU*) 4176 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4177*) 4178 ac_count=0 4179 $as_echo_n 0123456789 >"conftest.in" 4180 while : 4181 do 4182 cat "conftest.in" "conftest.in" >"conftest.tmp" 4183 mv "conftest.tmp" "conftest.in" 4184 cp "conftest.in" "conftest.nl" 4185 $as_echo '' >> "conftest.nl" 4186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4188 as_fn_arith $ac_count + 1 && ac_count=$as_val 4189 if test $ac_count -gt ${ac_path_SED_max-0}; then 4190 # Best one so far, save it but keep looking for a better one 4191 ac_cv_path_SED="$ac_path_SED" 4192 ac_path_SED_max=$ac_count 4193 fi 4194 # 10*(2^10) chars as input seems more than enough 4195 test $ac_count -gt 10 && break 4196 done 4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4198esac 4199 4200 $ac_path_SED_found && break 3 4201 done 4202 done 4203 done 4204IFS=$as_save_IFS 4205 if test -z "$ac_cv_path_SED"; then 4206 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4207 fi 4208else 4209 ac_cv_path_SED=$SED 4210fi 4211 4212fi 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4214$as_echo "$ac_cv_path_SED" >&6; } 4215 SED="$ac_cv_path_SED" 4216 rm -f conftest.sed 4217 4218test -z "$SED" && SED=sed 4219Xsed="$SED -e 1s/^X//" 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4232$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4233if test "${ac_cv_path_GREP+set}" = set; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 if test -z "$GREP"; then 4237 ac_path_GREP_found=false 4238 # Loop through the user's path and test for each of PROGNAME-LIST 4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4241do 4242 IFS=$as_save_IFS 4243 test -z "$as_dir" && as_dir=. 4244 for ac_prog in grep ggrep; do 4245 for ac_exec_ext in '' $ac_executable_extensions; do 4246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4247 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4248# Check for GNU ac_path_GREP and select it if it is found. 4249 # Check for GNU $ac_path_GREP 4250case `"$ac_path_GREP" --version 2>&1` in 4251*GNU*) 4252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4253*) 4254 ac_count=0 4255 $as_echo_n 0123456789 >"conftest.in" 4256 while : 4257 do 4258 cat "conftest.in" "conftest.in" >"conftest.tmp" 4259 mv "conftest.tmp" "conftest.in" 4260 cp "conftest.in" "conftest.nl" 4261 $as_echo 'GREP' >> "conftest.nl" 4262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4264 as_fn_arith $ac_count + 1 && ac_count=$as_val 4265 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4266 # Best one so far, save it but keep looking for a better one 4267 ac_cv_path_GREP="$ac_path_GREP" 4268 ac_path_GREP_max=$ac_count 4269 fi 4270 # 10*(2^10) chars as input seems more than enough 4271 test $ac_count -gt 10 && break 4272 done 4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4274esac 4275 4276 $ac_path_GREP_found && break 3 4277 done 4278 done 4279 done 4280IFS=$as_save_IFS 4281 if test -z "$ac_cv_path_GREP"; then 4282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4283 fi 4284else 4285 ac_cv_path_GREP=$GREP 4286fi 4287 4288fi 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4290$as_echo "$ac_cv_path_GREP" >&6; } 4291 GREP="$ac_cv_path_GREP" 4292 4293 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4295$as_echo_n "checking for egrep... " >&6; } 4296if test "${ac_cv_path_EGREP+set}" = set; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4300 then ac_cv_path_EGREP="$GREP -E" 4301 else 4302 if test -z "$EGREP"; then 4303 ac_path_EGREP_found=false 4304 # Loop through the user's path and test for each of PROGNAME-LIST 4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4307do 4308 IFS=$as_save_IFS 4309 test -z "$as_dir" && as_dir=. 4310 for ac_prog in egrep; do 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4314# Check for GNU ac_path_EGREP and select it if it is found. 4315 # Check for GNU $ac_path_EGREP 4316case `"$ac_path_EGREP" --version 2>&1` in 4317*GNU*) 4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4319*) 4320 ac_count=0 4321 $as_echo_n 0123456789 >"conftest.in" 4322 while : 4323 do 4324 cat "conftest.in" "conftest.in" >"conftest.tmp" 4325 mv "conftest.tmp" "conftest.in" 4326 cp "conftest.in" "conftest.nl" 4327 $as_echo 'EGREP' >> "conftest.nl" 4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4330 as_fn_arith $ac_count + 1 && ac_count=$as_val 4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4332 # Best one so far, save it but keep looking for a better one 4333 ac_cv_path_EGREP="$ac_path_EGREP" 4334 ac_path_EGREP_max=$ac_count 4335 fi 4336 # 10*(2^10) chars as input seems more than enough 4337 test $ac_count -gt 10 && break 4338 done 4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4340esac 4341 4342 $ac_path_EGREP_found && break 3 4343 done 4344 done 4345 done 4346IFS=$as_save_IFS 4347 if test -z "$ac_cv_path_EGREP"; then 4348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4349 fi 4350else 4351 ac_cv_path_EGREP=$EGREP 4352fi 4353 4354 fi 4355fi 4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4357$as_echo "$ac_cv_path_EGREP" >&6; } 4358 EGREP="$ac_cv_path_EGREP" 4359 4360 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4362$as_echo_n "checking for fgrep... " >&6; } 4363if test "${ac_cv_path_FGREP+set}" = set; then : 4364 $as_echo_n "(cached) " >&6 4365else 4366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4367 then ac_cv_path_FGREP="$GREP -F" 4368 else 4369 if test -z "$FGREP"; then 4370 ac_path_FGREP_found=false 4371 # Loop through the user's path and test for each of PROGNAME-LIST 4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4374do 4375 IFS=$as_save_IFS 4376 test -z "$as_dir" && as_dir=. 4377 for ac_prog in fgrep; do 4378 for ac_exec_ext in '' $ac_executable_extensions; do 4379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4380 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4381# Check for GNU ac_path_FGREP and select it if it is found. 4382 # Check for GNU $ac_path_FGREP 4383case `"$ac_path_FGREP" --version 2>&1` in 4384*GNU*) 4385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4386*) 4387 ac_count=0 4388 $as_echo_n 0123456789 >"conftest.in" 4389 while : 4390 do 4391 cat "conftest.in" "conftest.in" >"conftest.tmp" 4392 mv "conftest.tmp" "conftest.in" 4393 cp "conftest.in" "conftest.nl" 4394 $as_echo 'FGREP' >> "conftest.nl" 4395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4397 as_fn_arith $ac_count + 1 && ac_count=$as_val 4398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4399 # Best one so far, save it but keep looking for a better one 4400 ac_cv_path_FGREP="$ac_path_FGREP" 4401 ac_path_FGREP_max=$ac_count 4402 fi 4403 # 10*(2^10) chars as input seems more than enough 4404 test $ac_count -gt 10 && break 4405 done 4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4407esac 4408 4409 $ac_path_FGREP_found && break 3 4410 done 4411 done 4412 done 4413IFS=$as_save_IFS 4414 if test -z "$ac_cv_path_FGREP"; then 4415 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4416 fi 4417else 4418 ac_cv_path_FGREP=$FGREP 4419fi 4420 4421 fi 4422fi 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4424$as_echo "$ac_cv_path_FGREP" >&6; } 4425 FGREP="$ac_cv_path_FGREP" 4426 4427 4428test -z "$GREP" && GREP=grep 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448# Check whether --with-gnu-ld was given. 4449if test "${with_gnu_ld+set}" = set; then : 4450 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4451else 4452 with_gnu_ld=no 4453fi 4454 4455ac_prog=ld 4456if test "$GCC" = yes; then 4457 # Check if gcc -print-prog-name=ld gives a path. 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4459$as_echo_n "checking for ld used by $CC... " >&6; } 4460 case $host in 4461 *-*-mingw*) 4462 # gcc leaves a trailing carriage return which upsets mingw 4463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4464 *) 4465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4466 esac 4467 case $ac_prog in 4468 # Accept absolute paths. 4469 [\\/]* | ?:[\\/]*) 4470 re_direlt='/[^/][^/]*/\.\./' 4471 # Canonicalize the pathname of ld 4472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4475 done 4476 test -z "$LD" && LD="$ac_prog" 4477 ;; 4478 "") 4479 # If it fails, then pretend we aren't using GCC. 4480 ac_prog=ld 4481 ;; 4482 *) 4483 # If it is relative, then search for the first ld in PATH. 4484 with_gnu_ld=unknown 4485 ;; 4486 esac 4487elif test "$with_gnu_ld" = yes; then 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4489$as_echo_n "checking for GNU ld... " >&6; } 4490else 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4492$as_echo_n "checking for non-GNU ld... " >&6; } 4493fi 4494if test "${lt_cv_path_LD+set}" = set; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 if test -z "$LD"; then 4498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4499 for ac_dir in $PATH; do 4500 IFS="$lt_save_ifs" 4501 test -z "$ac_dir" && ac_dir=. 4502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4503 lt_cv_path_LD="$ac_dir/$ac_prog" 4504 # Check to see if the program is GNU ld. I'd rather use --version, 4505 # but apparently some variants of GNU ld only accept -v. 4506 # Break only if it was the GNU/non-GNU ld that we prefer. 4507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4508 *GNU* | *'with BFD'*) 4509 test "$with_gnu_ld" != no && break 4510 ;; 4511 *) 4512 test "$with_gnu_ld" != yes && break 4513 ;; 4514 esac 4515 fi 4516 done 4517 IFS="$lt_save_ifs" 4518else 4519 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4520fi 4521fi 4522 4523LD="$lt_cv_path_LD" 4524if test -n "$LD"; then 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4526$as_echo "$LD" >&6; } 4527else 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4529$as_echo "no" >&6; } 4530fi 4531test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4533$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4534if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4538case `$LD -v 2>&1 </dev/null` in 4539*GNU* | *'with BFD'*) 4540 lt_cv_prog_gnu_ld=yes 4541 ;; 4542*) 4543 lt_cv_prog_gnu_ld=no 4544 ;; 4545esac 4546fi 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4548$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4549with_gnu_ld=$lt_cv_prog_gnu_ld 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4560$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4561if test "${lt_cv_path_NM+set}" = set; then : 4562 $as_echo_n "(cached) " >&6 4563else 4564 if test -n "$NM"; then 4565 # Let the user override the test. 4566 lt_cv_path_NM="$NM" 4567else 4568 lt_nm_to_check="${ac_tool_prefix}nm" 4569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4570 lt_nm_to_check="$lt_nm_to_check nm" 4571 fi 4572 for lt_tmp_nm in $lt_nm_to_check; do 4573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4575 IFS="$lt_save_ifs" 4576 test -z "$ac_dir" && ac_dir=. 4577 tmp_nm="$ac_dir/$lt_tmp_nm" 4578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4579 # Check to see if the nm accepts a BSD-compat flag. 4580 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4581 # nm: unknown option "B" ignored 4582 # Tru64's nm complains that /dev/null is an invalid object file 4583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4584 */dev/null* | *'Invalid file or object type'*) 4585 lt_cv_path_NM="$tmp_nm -B" 4586 break 4587 ;; 4588 *) 4589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4590 */dev/null*) 4591 lt_cv_path_NM="$tmp_nm -p" 4592 break 4593 ;; 4594 *) 4595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4596 continue # so that we can try to find one that supports BSD flags 4597 ;; 4598 esac 4599 ;; 4600 esac 4601 fi 4602 done 4603 IFS="$lt_save_ifs" 4604 done 4605 : ${lt_cv_path_NM=no} 4606fi 4607fi 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4609$as_echo "$lt_cv_path_NM" >&6; } 4610if test "$lt_cv_path_NM" != "no"; then 4611 NM="$lt_cv_path_NM" 4612else 4613 # Didn't find any BSD compatible name lister, look for dumpbin. 4614 if test -n "$ac_tool_prefix"; then 4615 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4616 do 4617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4618set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4620$as_echo_n "checking for $ac_word... " >&6; } 4621if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 if test -n "$DUMPBIN"; then 4625 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4626else 4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4634 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4636 break 2 4637 fi 4638done 4639 done 4640IFS=$as_save_IFS 4641 4642fi 4643fi 4644DUMPBIN=$ac_cv_prog_DUMPBIN 4645if test -n "$DUMPBIN"; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4647$as_echo "$DUMPBIN" >&6; } 4648else 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4650$as_echo "no" >&6; } 4651fi 4652 4653 4654 test -n "$DUMPBIN" && break 4655 done 4656fi 4657if test -z "$DUMPBIN"; then 4658 ac_ct_DUMPBIN=$DUMPBIN 4659 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4660do 4661 # Extract the first word of "$ac_prog", so it can be a program name with args. 4662set dummy $ac_prog; ac_word=$2 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4664$as_echo_n "checking for $ac_word... " >&6; } 4665if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 if test -n "$ac_ct_DUMPBIN"; then 4669 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4670else 4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4672for as_dir in $PATH 4673do 4674 IFS=$as_save_IFS 4675 test -z "$as_dir" && as_dir=. 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4678 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4680 break 2 4681 fi 4682done 4683 done 4684IFS=$as_save_IFS 4685 4686fi 4687fi 4688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4689if test -n "$ac_ct_DUMPBIN"; then 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4691$as_echo "$ac_ct_DUMPBIN" >&6; } 4692else 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4694$as_echo "no" >&6; } 4695fi 4696 4697 4698 test -n "$ac_ct_DUMPBIN" && break 4699done 4700 4701 if test "x$ac_ct_DUMPBIN" = x; then 4702 DUMPBIN=":" 4703 else 4704 case $cross_compiling:$ac_tool_warned in 4705yes:) 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4708ac_tool_warned=yes ;; 4709esac 4710 DUMPBIN=$ac_ct_DUMPBIN 4711 fi 4712fi 4713 4714 4715 if test "$DUMPBIN" != ":"; then 4716 NM="$DUMPBIN" 4717 fi 4718fi 4719test -z "$NM" && NM=nm 4720 4721 4722 4723 4724 4725 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4727$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4728if test "${lt_cv_nm_interface+set}" = set; then : 4729 $as_echo_n "(cached) " >&6 4730else 4731 lt_cv_nm_interface="BSD nm" 4732 echo "int some_variable = 0;" > conftest.$ac_ext 4733 (eval echo "\"\$as_me:4733: $ac_compile\"" >&5) 4734 (eval "$ac_compile" 2>conftest.err) 4735 cat conftest.err >&5 4736 (eval echo "\"\$as_me:4736: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4737 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4738 cat conftest.err >&5 4739 (eval echo "\"\$as_me:4739: output\"" >&5) 4740 cat conftest.out >&5 4741 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4742 lt_cv_nm_interface="MS dumpbin" 4743 fi 4744 rm -f conftest* 4745fi 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4747$as_echo "$lt_cv_nm_interface" >&6; } 4748 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4750$as_echo_n "checking whether ln -s works... " >&6; } 4751LN_S=$as_ln_s 4752if test "$LN_S" = "ln -s"; then 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4754$as_echo "yes" >&6; } 4755else 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4757$as_echo "no, using $LN_S" >&6; } 4758fi 4759 4760# find the maximum length of command line arguments 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4762$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4763if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4764 $as_echo_n "(cached) " >&6 4765else 4766 i=0 4767 teststring="ABCD" 4768 4769 case $build_os in 4770 msdosdjgpp*) 4771 # On DJGPP, this test can blow up pretty badly due to problems in libc 4772 # (any single argument exceeding 2000 bytes causes a buffer overrun 4773 # during glob expansion). Even if it were fixed, the result of this 4774 # check would be larger than it should be. 4775 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4776 ;; 4777 4778 gnu*) 4779 # Under GNU Hurd, this test is not required because there is 4780 # no limit to the length of command line arguments. 4781 # Libtool will interpret -1 as no limit whatsoever 4782 lt_cv_sys_max_cmd_len=-1; 4783 ;; 4784 4785 cygwin* | mingw* | cegcc*) 4786 # On Win9x/ME, this test blows up -- it succeeds, but takes 4787 # about 5 minutes as the teststring grows exponentially. 4788 # Worse, since 9x/ME are not pre-emptively multitasking, 4789 # you end up with a "frozen" computer, even though with patience 4790 # the test eventually succeeds (with a max line length of 256k). 4791 # Instead, let's just punt: use the minimum linelength reported by 4792 # all of the supported platforms: 8192 (on NT/2K/XP). 4793 lt_cv_sys_max_cmd_len=8192; 4794 ;; 4795 4796 amigaos*) 4797 # On AmigaOS with pdksh, this test takes hours, literally. 4798 # So we just punt and use a minimum line length of 8192. 4799 lt_cv_sys_max_cmd_len=8192; 4800 ;; 4801 4802 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4803 # This has been around since 386BSD, at least. Likely further. 4804 if test -x /sbin/sysctl; then 4805 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4806 elif test -x /usr/sbin/sysctl; then 4807 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4808 else 4809 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4810 fi 4811 # And add a safety zone 4812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4814 ;; 4815 4816 interix*) 4817 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4818 lt_cv_sys_max_cmd_len=196608 4819 ;; 4820 4821 osf*) 4822 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4823 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4824 # nice to cause kernel panics so lets avoid the loop below. 4825 # First set a reasonable default. 4826 lt_cv_sys_max_cmd_len=16384 4827 # 4828 if test -x /sbin/sysconfig; then 4829 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4830 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4831 esac 4832 fi 4833 ;; 4834 sco3.2v5*) 4835 lt_cv_sys_max_cmd_len=102400 4836 ;; 4837 sysv5* | sco5v6* | sysv4.2uw2*) 4838 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4839 if test -n "$kargmax"; then 4840 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4841 else 4842 lt_cv_sys_max_cmd_len=32768 4843 fi 4844 ;; 4845 *) 4846 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4847 if test -n "$lt_cv_sys_max_cmd_len"; then 4848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4850 else 4851 # Make teststring a little bigger before we do anything with it. 4852 # a 1K string should be a reasonable start. 4853 for i in 1 2 3 4 5 6 7 8 ; do 4854 teststring=$teststring$teststring 4855 done 4856 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4857 # If test is not a shell built-in, we'll probably end up computing a 4858 # maximum length that is only half of the actual maximum length, but 4859 # we can't tell. 4860 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4861 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4862 test $i != 17 # 1/2 MB should be enough 4863 do 4864 i=`expr $i + 1` 4865 teststring=$teststring$teststring 4866 done 4867 # Only check the string length outside the loop. 4868 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4869 teststring= 4870 # Add a significant safety factor because C++ compilers can tack on 4871 # massive amounts of additional arguments before passing them to the 4872 # linker. It appears as though 1/2 is a usable value. 4873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4874 fi 4875 ;; 4876 esac 4877 4878fi 4879 4880if test -n $lt_cv_sys_max_cmd_len ; then 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4882$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4883else 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4885$as_echo "none" >&6; } 4886fi 4887max_cmd_len=$lt_cv_sys_max_cmd_len 4888 4889 4890 4891 4892 4893 4894: ${CP="cp -f"} 4895: ${MV="mv -f"} 4896: ${RM="rm -f"} 4897 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4899$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4900# Try some XSI features 4901xsi_shell=no 4902( _lt_dummy="a/b/c" 4903 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4904 = c,a/b,, \ 4905 && eval 'test $(( 1 + 1 )) -eq 2 \ 4906 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4907 && xsi_shell=yes 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4909$as_echo "$xsi_shell" >&6; } 4910 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4913$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4914lt_shell_append=no 4915( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4916 >/dev/null 2>&1 \ 4917 && lt_shell_append=yes 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4919$as_echo "$lt_shell_append" >&6; } 4920 4921 4922if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4923 lt_unset=unset 4924else 4925 lt_unset=false 4926fi 4927 4928 4929 4930 4931 4932# test EBCDIC or ASCII 4933case `echo X|tr X '\101'` in 4934 A) # ASCII based system 4935 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4936 lt_SP2NL='tr \040 \012' 4937 lt_NL2SP='tr \015\012 \040\040' 4938 ;; 4939 *) # EBCDIC based system 4940 lt_SP2NL='tr \100 \n' 4941 lt_NL2SP='tr \r\n \100\100' 4942 ;; 4943esac 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4954$as_echo_n "checking for $LD option to reload object files... " >&6; } 4955if test "${lt_cv_ld_reload_flag+set}" = set; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 lt_cv_ld_reload_flag='-r' 4959fi 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4961$as_echo "$lt_cv_ld_reload_flag" >&6; } 4962reload_flag=$lt_cv_ld_reload_flag 4963case $reload_flag in 4964"" | " "*) ;; 4965*) reload_flag=" $reload_flag" ;; 4966esac 4967reload_cmds='$LD$reload_flag -o $output$reload_objs' 4968case $host_os in 4969 darwin*) 4970 if test "$GCC" = yes; then 4971 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4972 else 4973 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4974 fi 4975 ;; 4976esac 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986if test -n "$ac_tool_prefix"; then 4987 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4988set dummy ${ac_tool_prefix}objdump; ac_word=$2 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4990$as_echo_n "checking for $ac_word... " >&6; } 4991if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 if test -n "$OBJDUMP"; then 4995 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4996else 4997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4998for as_dir in $PATH 4999do 5000 IFS=$as_save_IFS 5001 test -z "$as_dir" && as_dir=. 5002 for ac_exec_ext in '' $ac_executable_extensions; do 5003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5004 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5006 break 2 5007 fi 5008done 5009 done 5010IFS=$as_save_IFS 5011 5012fi 5013fi 5014OBJDUMP=$ac_cv_prog_OBJDUMP 5015if test -n "$OBJDUMP"; then 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5017$as_echo "$OBJDUMP" >&6; } 5018else 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5020$as_echo "no" >&6; } 5021fi 5022 5023 5024fi 5025if test -z "$ac_cv_prog_OBJDUMP"; then 5026 ac_ct_OBJDUMP=$OBJDUMP 5027 # Extract the first word of "objdump", so it can be a program name with args. 5028set dummy objdump; ac_word=$2 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5030$as_echo_n "checking for $ac_word... " >&6; } 5031if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5032 $as_echo_n "(cached) " >&6 5033else 5034 if test -n "$ac_ct_OBJDUMP"; then 5035 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5036else 5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5038for as_dir in $PATH 5039do 5040 IFS=$as_save_IFS 5041 test -z "$as_dir" && as_dir=. 5042 for ac_exec_ext in '' $ac_executable_extensions; do 5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5044 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5046 break 2 5047 fi 5048done 5049 done 5050IFS=$as_save_IFS 5051 5052fi 5053fi 5054ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5055if test -n "$ac_ct_OBJDUMP"; then 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5057$as_echo "$ac_ct_OBJDUMP" >&6; } 5058else 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5060$as_echo "no" >&6; } 5061fi 5062 5063 if test "x$ac_ct_OBJDUMP" = x; then 5064 OBJDUMP="false" 5065 else 5066 case $cross_compiling:$ac_tool_warned in 5067yes:) 5068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5070ac_tool_warned=yes ;; 5071esac 5072 OBJDUMP=$ac_ct_OBJDUMP 5073 fi 5074else 5075 OBJDUMP="$ac_cv_prog_OBJDUMP" 5076fi 5077 5078test -z "$OBJDUMP" && OBJDUMP=objdump 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5089$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5090if test "${lt_cv_deplibs_check_method+set}" = set; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 lt_cv_file_magic_cmd='$MAGIC_CMD' 5094lt_cv_file_magic_test_file= 5095lt_cv_deplibs_check_method='unknown' 5096# Need to set the preceding variable on all platforms that support 5097# interlibrary dependencies. 5098# 'none' -- dependencies not supported. 5099# `unknown' -- same as none, but documents that we really don't know. 5100# 'pass_all' -- all dependencies passed with no checks. 5101# 'test_compile' -- check by making test program. 5102# 'file_magic [[regex]]' -- check by looking for files in library path 5103# which responds to the $file_magic_cmd with a given extended regex. 5104# If you have `file' or equivalent on your system and you're not sure 5105# whether `pass_all' will *always* work, you probably want this one. 5106 5107case $host_os in 5108aix[4-9]*) 5109 lt_cv_deplibs_check_method=pass_all 5110 ;; 5111 5112beos*) 5113 lt_cv_deplibs_check_method=pass_all 5114 ;; 5115 5116bsdi[45]*) 5117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5118 lt_cv_file_magic_cmd='/usr/bin/file -L' 5119 lt_cv_file_magic_test_file=/shlib/libc.so 5120 ;; 5121 5122cygwin*) 5123 # func_win32_libid is a shell function defined in ltmain.sh 5124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5125 lt_cv_file_magic_cmd='func_win32_libid' 5126 ;; 5127 5128mingw* | pw32*) 5129 # Base MSYS/MinGW do not provide the 'file' command needed by 5130 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5131 # unless we find 'file', for example because we are cross-compiling. 5132 if ( file / ) >/dev/null 2>&1; then 5133 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5134 lt_cv_file_magic_cmd='func_win32_libid' 5135 else 5136 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5137 lt_cv_file_magic_cmd='$OBJDUMP -f' 5138 fi 5139 ;; 5140 5141cegcc) 5142 # use the weaker test based on 'objdump'. See mingw*. 5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5144 lt_cv_file_magic_cmd='$OBJDUMP -f' 5145 ;; 5146 5147darwin* | rhapsody*) 5148 lt_cv_deplibs_check_method=pass_all 5149 ;; 5150 5151freebsd* | dragonfly*) 5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5153 case $host_cpu in 5154 i*86 ) 5155 # Not sure whether the presence of OpenBSD here was a mistake. 5156 # Let's accept both of them until this is cleared up. 5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5158 lt_cv_file_magic_cmd=/usr/bin/file 5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5160 ;; 5161 esac 5162 else 5163 lt_cv_deplibs_check_method=pass_all 5164 fi 5165 ;; 5166 5167gnu*) 5168 lt_cv_deplibs_check_method=pass_all 5169 ;; 5170 5171hpux10.20* | hpux11*) 5172 lt_cv_file_magic_cmd=/usr/bin/file 5173 case $host_cpu in 5174 ia64*) 5175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5176 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5177 ;; 5178 hppa*64*) 5179 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]' 5180 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5181 ;; 5182 *) 5183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5184 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5185 ;; 5186 esac 5187 ;; 5188 5189interix[3-9]*) 5190 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5192 ;; 5193 5194irix5* | irix6* | nonstopux*) 5195 case $LD in 5196 *-32|*"-32 ") libmagic=32-bit;; 5197 *-n32|*"-n32 ") libmagic=N32;; 5198 *-64|*"-64 ") libmagic=64-bit;; 5199 *) libmagic=never-match;; 5200 esac 5201 lt_cv_deplibs_check_method=pass_all 5202 ;; 5203 5204# This must be Linux ELF. 5205linux* | k*bsd*-gnu | kopensolaris*-gnu) 5206 lt_cv_deplibs_check_method=pass_all 5207 ;; 5208 5209netbsd* | netbsdelf*-gnu) 5210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5212 else 5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5214 fi 5215 ;; 5216 5217newos6*) 5218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5219 lt_cv_file_magic_cmd=/usr/bin/file 5220 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5221 ;; 5222 5223*nto* | *qnx*) 5224 lt_cv_deplibs_check_method=pass_all 5225 ;; 5226 5227openbsd*) 5228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5230 else 5231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5232 fi 5233 ;; 5234 5235osf3* | osf4* | osf5*) 5236 lt_cv_deplibs_check_method=pass_all 5237 ;; 5238 5239rdos*) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 5243solaris*) 5244 lt_cv_deplibs_check_method=pass_all 5245 ;; 5246 5247sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 5251sysv4 | sysv4.3*) 5252 case $host_vendor in 5253 motorola) 5254 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]' 5255 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5256 ;; 5257 ncr) 5258 lt_cv_deplibs_check_method=pass_all 5259 ;; 5260 sequent) 5261 lt_cv_file_magic_cmd='/bin/file' 5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5263 ;; 5264 sni) 5265 lt_cv_file_magic_cmd='/bin/file' 5266 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5267 lt_cv_file_magic_test_file=/lib/libc.so 5268 ;; 5269 siemens) 5270 lt_cv_deplibs_check_method=pass_all 5271 ;; 5272 pc) 5273 lt_cv_deplibs_check_method=pass_all 5274 ;; 5275 esac 5276 ;; 5277 5278tpf*) 5279 lt_cv_deplibs_check_method=pass_all 5280 ;; 5281esac 5282 5283fi 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5285$as_echo "$lt_cv_deplibs_check_method" >&6; } 5286file_magic_cmd=$lt_cv_file_magic_cmd 5287deplibs_check_method=$lt_cv_deplibs_check_method 5288test -z "$deplibs_check_method" && deplibs_check_method=unknown 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301if test -n "$ac_tool_prefix"; then 5302 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5303set dummy ${ac_tool_prefix}ar; ac_word=$2 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305$as_echo_n "checking for $ac_word... " >&6; } 5306if test "${ac_cv_prog_AR+set}" = set; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if test -n "$AR"; then 5310 ac_cv_prog_AR="$AR" # Let the user override the test. 5311else 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5319 ac_cv_prog_AR="${ac_tool_prefix}ar" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323done 5324 done 5325IFS=$as_save_IFS 5326 5327fi 5328fi 5329AR=$ac_cv_prog_AR 5330if test -n "$AR"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5332$as_echo "$AR" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339fi 5340if test -z "$ac_cv_prog_AR"; then 5341 ac_ct_AR=$AR 5342 # Extract the first word of "ar", so it can be a program name with args. 5343set dummy ar; ac_word=$2 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5345$as_echo_n "checking for $ac_word... " >&6; } 5346if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5347 $as_echo_n "(cached) " >&6 5348else 5349 if test -n "$ac_ct_AR"; then 5350 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5351else 5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353for as_dir in $PATH 5354do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_exec_ext in '' $ac_executable_extensions; do 5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5359 ac_cv_prog_ac_ct_AR="ar" 5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5361 break 2 5362 fi 5363done 5364 done 5365IFS=$as_save_IFS 5366 5367fi 5368fi 5369ac_ct_AR=$ac_cv_prog_ac_ct_AR 5370if test -n "$ac_ct_AR"; then 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5372$as_echo "$ac_ct_AR" >&6; } 5373else 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5375$as_echo "no" >&6; } 5376fi 5377 5378 if test "x$ac_ct_AR" = x; then 5379 AR="false" 5380 else 5381 case $cross_compiling:$ac_tool_warned in 5382yes:) 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5385ac_tool_warned=yes ;; 5386esac 5387 AR=$ac_ct_AR 5388 fi 5389else 5390 AR="$ac_cv_prog_AR" 5391fi 5392 5393test -z "$AR" && AR=ar 5394test -z "$AR_FLAGS" && AR_FLAGS=cru 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406if test -n "$ac_tool_prefix"; then 5407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5408set dummy ${ac_tool_prefix}strip; ac_word=$2 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5410$as_echo_n "checking for $ac_word... " >&6; } 5411if test "${ac_cv_prog_STRIP+set}" = set; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 if test -n "$STRIP"; then 5415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5416else 5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418for as_dir in $PATH 5419do 5420 IFS=$as_save_IFS 5421 test -z "$as_dir" && as_dir=. 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5424 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5426 break 2 5427 fi 5428done 5429 done 5430IFS=$as_save_IFS 5431 5432fi 5433fi 5434STRIP=$ac_cv_prog_STRIP 5435if test -n "$STRIP"; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5437$as_echo "$STRIP" >&6; } 5438else 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 5443 5444fi 5445if test -z "$ac_cv_prog_STRIP"; then 5446 ac_ct_STRIP=$STRIP 5447 # Extract the first word of "strip", so it can be a program name with args. 5448set dummy strip; ac_word=$2 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 if test -n "$ac_ct_STRIP"; then 5455 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5456else 5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5458for as_dir in $PATH 5459do 5460 IFS=$as_save_IFS 5461 test -z "$as_dir" && as_dir=. 5462 for ac_exec_ext in '' $ac_executable_extensions; do 5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5464 ac_cv_prog_ac_ct_STRIP="strip" 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5466 break 2 5467 fi 5468done 5469 done 5470IFS=$as_save_IFS 5471 5472fi 5473fi 5474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5475if test -n "$ac_ct_STRIP"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5477$as_echo "$ac_ct_STRIP" >&6; } 5478else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5480$as_echo "no" >&6; } 5481fi 5482 5483 if test "x$ac_ct_STRIP" = x; then 5484 STRIP=":" 5485 else 5486 case $cross_compiling:$ac_tool_warned in 5487yes:) 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5490ac_tool_warned=yes ;; 5491esac 5492 STRIP=$ac_ct_STRIP 5493 fi 5494else 5495 STRIP="$ac_cv_prog_STRIP" 5496fi 5497 5498test -z "$STRIP" && STRIP=: 5499 5500 5501 5502 5503 5504 5505if test -n "$ac_tool_prefix"; then 5506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5507set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5509$as_echo_n "checking for $ac_word... " >&6; } 5510if test "${ac_cv_prog_RANLIB+set}" = set; then : 5511 $as_echo_n "(cached) " >&6 5512else 5513 if test -n "$RANLIB"; then 5514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5515else 5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517for as_dir in $PATH 5518do 5519 IFS=$as_save_IFS 5520 test -z "$as_dir" && as_dir=. 5521 for ac_exec_ext in '' $ac_executable_extensions; do 5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5525 break 2 5526 fi 5527done 5528 done 5529IFS=$as_save_IFS 5530 5531fi 5532fi 5533RANLIB=$ac_cv_prog_RANLIB 5534if test -n "$RANLIB"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5536$as_echo "$RANLIB" >&6; } 5537else 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5539$as_echo "no" >&6; } 5540fi 5541 5542 5543fi 5544if test -z "$ac_cv_prog_RANLIB"; then 5545 ac_ct_RANLIB=$RANLIB 5546 # Extract the first word of "ranlib", so it can be a program name with args. 5547set dummy ranlib; ac_word=$2 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5549$as_echo_n "checking for $ac_word... " >&6; } 5550if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 if test -n "$ac_ct_RANLIB"; then 5554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5555else 5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5557for as_dir in $PATH 5558do 5559 IFS=$as_save_IFS 5560 test -z "$as_dir" && as_dir=. 5561 for ac_exec_ext in '' $ac_executable_extensions; do 5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5563 ac_cv_prog_ac_ct_RANLIB="ranlib" 5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5565 break 2 5566 fi 5567done 5568 done 5569IFS=$as_save_IFS 5570 5571fi 5572fi 5573ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5574if test -n "$ac_ct_RANLIB"; then 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5576$as_echo "$ac_ct_RANLIB" >&6; } 5577else 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5579$as_echo "no" >&6; } 5580fi 5581 5582 if test "x$ac_ct_RANLIB" = x; then 5583 RANLIB=":" 5584 else 5585 case $cross_compiling:$ac_tool_warned in 5586yes:) 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5589ac_tool_warned=yes ;; 5590esac 5591 RANLIB=$ac_ct_RANLIB 5592 fi 5593else 5594 RANLIB="$ac_cv_prog_RANLIB" 5595fi 5596 5597test -z "$RANLIB" && RANLIB=: 5598 5599 5600 5601 5602 5603 5604# Determine commands to create old-style static archives. 5605old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5606old_postinstall_cmds='chmod 644 $oldlib' 5607old_postuninstall_cmds= 5608 5609if test -n "$RANLIB"; then 5610 case $host_os in 5611 openbsd*) 5612 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5613 ;; 5614 *) 5615 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5616 ;; 5617 esac 5618 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5619fi 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654# If no C compiler was specified, use CC. 5655LTCC=${LTCC-"$CC"} 5656 5657# If no C compiler flags were specified, use CFLAGS. 5658LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5659 5660# Allow CC to be a program name with arguments. 5661compiler=$CC 5662 5663 5664# Check for command to grab the raw symbol name followed by C symbol from nm. 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5666$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5667if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5668 $as_echo_n "(cached) " >&6 5669else 5670 5671# These are sane defaults that work on at least a few old systems. 5672# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5673 5674# Character class describing NM global symbol codes. 5675symcode='[BCDEGRST]' 5676 5677# Regexp to match symbols that can be accessed directly from C. 5678sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5679 5680# Define system-specific variables. 5681case $host_os in 5682aix*) 5683 symcode='[BCDT]' 5684 ;; 5685cygwin* | mingw* | pw32* | cegcc*) 5686 symcode='[ABCDGISTW]' 5687 ;; 5688hpux*) 5689 if test "$host_cpu" = ia64; then 5690 symcode='[ABCDEGRST]' 5691 fi 5692 ;; 5693irix* | nonstopux*) 5694 symcode='[BCDEGRST]' 5695 ;; 5696osf*) 5697 symcode='[BCDEGQRST]' 5698 ;; 5699solaris*) 5700 symcode='[BDRT]' 5701 ;; 5702sco3.2v5*) 5703 symcode='[DT]' 5704 ;; 5705sysv4.2uw2*) 5706 symcode='[DT]' 5707 ;; 5708sysv5* | sco5v6* | unixware* | OpenUNIX*) 5709 symcode='[ABDT]' 5710 ;; 5711sysv4) 5712 symcode='[DFNSTU]' 5713 ;; 5714esac 5715 5716# If we're using GNU nm, then use its standard symbol codes. 5717case `$NM -V 2>&1` in 5718*GNU* | *'with BFD'*) 5719 symcode='[ABCDGIRSTW]' ;; 5720esac 5721 5722# Transform an extracted symbol line into a proper C declaration. 5723# Some systems (esp. on ia64) link data and code symbols differently, 5724# so use this general approach. 5725lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5726 5727# Transform an extracted symbol line into symbol name and symbol address 5728lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5729lt_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'" 5730 5731# Handle CRLF in mingw tool chain 5732opt_cr= 5733case $build_os in 5734mingw*) 5735 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5736 ;; 5737esac 5738 5739# Try without a prefix underscore, then with it. 5740for ac_symprfx in "" "_"; do 5741 5742 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5743 symxfrm="\\1 $ac_symprfx\\2 \\2" 5744 5745 # Write the raw and C identifiers. 5746 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5747 # Fake it for dumpbin and say T for any non-static function 5748 # and D for any global variable. 5749 # Also find C++ and __fastcall symbols from MSVC++, 5750 # which start with @ or ?. 5751 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5752" {last_section=section; section=\$ 3};"\ 5753" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5754" \$ 0!~/External *\|/{next};"\ 5755" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5756" {if(hide[section]) next};"\ 5757" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5758" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5759" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5760" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5761" ' prfx=^$ac_symprfx" 5762 else 5763 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5764 fi 5765 5766 # Check to see that the pipe works correctly. 5767 pipe_works=no 5768 5769 rm -f conftest* 5770 cat > conftest.$ac_ext <<_LT_EOF 5771#ifdef __cplusplus 5772extern "C" { 5773#endif 5774char nm_test_var; 5775void nm_test_func(void); 5776void nm_test_func(void){} 5777#ifdef __cplusplus 5778} 5779#endif 5780int main(){nm_test_var='a';nm_test_func();return(0);} 5781_LT_EOF 5782 5783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5784 (eval $ac_compile) 2>&5 5785 ac_status=$? 5786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5787 test $ac_status = 0; }; then 5788 # Now try to grab the symbols. 5789 nlist=conftest.nm 5790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5791 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5792 ac_status=$? 5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5794 test $ac_status = 0; } && test -s "$nlist"; then 5795 # Try sorting and uniquifying the output. 5796 if sort "$nlist" | uniq > "$nlist"T; then 5797 mv -f "$nlist"T "$nlist" 5798 else 5799 rm -f "$nlist"T 5800 fi 5801 5802 # Make sure that we snagged all the symbols we need. 5803 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5804 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5805 cat <<_LT_EOF > conftest.$ac_ext 5806#ifdef __cplusplus 5807extern "C" { 5808#endif 5809 5810_LT_EOF 5811 # Now generate the symbol file. 5812 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5813 5814 cat <<_LT_EOF >> conftest.$ac_ext 5815 5816/* The mapping between symbol names and symbols. */ 5817const struct { 5818 const char *name; 5819 void *address; 5820} 5821lt__PROGRAM__LTX_preloaded_symbols[] = 5822{ 5823 { "@PROGRAM@", (void *) 0 }, 5824_LT_EOF 5825 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5826 cat <<\_LT_EOF >> conftest.$ac_ext 5827 {0, (void *) 0} 5828}; 5829 5830/* This works around a problem in FreeBSD linker */ 5831#ifdef FREEBSD_WORKAROUND 5832static const void *lt_preloaded_setup() { 5833 return lt__PROGRAM__LTX_preloaded_symbols; 5834} 5835#endif 5836 5837#ifdef __cplusplus 5838} 5839#endif 5840_LT_EOF 5841 # Now try linking the two files. 5842 mv conftest.$ac_objext conftstm.$ac_objext 5843 lt_save_LIBS="$LIBS" 5844 lt_save_CFLAGS="$CFLAGS" 5845 LIBS="conftstm.$ac_objext" 5846 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5848 (eval $ac_link) 2>&5 5849 ac_status=$? 5850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5851 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5852 pipe_works=yes 5853 fi 5854 LIBS="$lt_save_LIBS" 5855 CFLAGS="$lt_save_CFLAGS" 5856 else 5857 echo "cannot find nm_test_func in $nlist" >&5 5858 fi 5859 else 5860 echo "cannot find nm_test_var in $nlist" >&5 5861 fi 5862 else 5863 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5864 fi 5865 else 5866 echo "$progname: failed program was:" >&5 5867 cat conftest.$ac_ext >&5 5868 fi 5869 rm -rf conftest* conftst* 5870 5871 # Do not use the global_symbol_pipe unless it works. 5872 if test "$pipe_works" = yes; then 5873 break 5874 else 5875 lt_cv_sys_global_symbol_pipe= 5876 fi 5877done 5878 5879fi 5880 5881if test -z "$lt_cv_sys_global_symbol_pipe"; then 5882 lt_cv_sys_global_symbol_to_cdecl= 5883fi 5884if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5886$as_echo "failed" >&6; } 5887else 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5889$as_echo "ok" >&6; } 5890fi 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914# Check whether --enable-libtool-lock was given. 5915if test "${enable_libtool_lock+set}" = set; then : 5916 enableval=$enable_libtool_lock; 5917fi 5918 5919test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5920 5921# Some flags need to be propagated to the compiler or linker for good 5922# libtool support. 5923case $host in 5924ia64-*-hpux*) 5925 # Find out which ABI we are using. 5926 echo 'int i;' > conftest.$ac_ext 5927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5928 (eval $ac_compile) 2>&5 5929 ac_status=$? 5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5931 test $ac_status = 0; }; then 5932 case `/usr/bin/file conftest.$ac_objext` in 5933 *ELF-32*) 5934 HPUX_IA64_MODE="32" 5935 ;; 5936 *ELF-64*) 5937 HPUX_IA64_MODE="64" 5938 ;; 5939 esac 5940 fi 5941 rm -rf conftest* 5942 ;; 5943*-*-irix6*) 5944 # Find out which ABI we are using. 5945 echo '#line 5945 "configure"' > conftest.$ac_ext 5946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5947 (eval $ac_compile) 2>&5 5948 ac_status=$? 5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5950 test $ac_status = 0; }; then 5951 if test "$lt_cv_prog_gnu_ld" = yes; then 5952 case `/usr/bin/file conftest.$ac_objext` in 5953 *32-bit*) 5954 LD="${LD-ld} -melf32bsmip" 5955 ;; 5956 *N32*) 5957 LD="${LD-ld} -melf32bmipn32" 5958 ;; 5959 *64-bit*) 5960 LD="${LD-ld} -melf64bmip" 5961 ;; 5962 esac 5963 else 5964 case `/usr/bin/file conftest.$ac_objext` in 5965 *32-bit*) 5966 LD="${LD-ld} -32" 5967 ;; 5968 *N32*) 5969 LD="${LD-ld} -n32" 5970 ;; 5971 *64-bit*) 5972 LD="${LD-ld} -64" 5973 ;; 5974 esac 5975 fi 5976 fi 5977 rm -rf conftest* 5978 ;; 5979 5980x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5981s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5982 # Find out which ABI we are using. 5983 echo 'int i;' > conftest.$ac_ext 5984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5985 (eval $ac_compile) 2>&5 5986 ac_status=$? 5987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5988 test $ac_status = 0; }; then 5989 case `/usr/bin/file conftest.o` in 5990 *32-bit*) 5991 case $host in 5992 x86_64-*kfreebsd*-gnu) 5993 LD="${LD-ld} -m elf_i386_fbsd" 5994 ;; 5995 x86_64-*linux*) 5996 LD="${LD-ld} -m elf_i386" 5997 ;; 5998 ppc64-*linux*|powerpc64-*linux*) 5999 LD="${LD-ld} -m elf32ppclinux" 6000 ;; 6001 s390x-*linux*) 6002 LD="${LD-ld} -m elf_s390" 6003 ;; 6004 sparc64-*linux*) 6005 LD="${LD-ld} -m elf32_sparc" 6006 ;; 6007 esac 6008 ;; 6009 *64-bit*) 6010 case $host in 6011 x86_64-*kfreebsd*-gnu) 6012 LD="${LD-ld} -m elf_x86_64_fbsd" 6013 ;; 6014 x86_64-*linux*) 6015 LD="${LD-ld} -m elf_x86_64" 6016 ;; 6017 ppc*-*linux*|powerpc*-*linux*) 6018 LD="${LD-ld} -m elf64ppc" 6019 ;; 6020 s390*-*linux*|s390*-*tpf*) 6021 LD="${LD-ld} -m elf64_s390" 6022 ;; 6023 sparc*-*linux*) 6024 LD="${LD-ld} -m elf64_sparc" 6025 ;; 6026 esac 6027 ;; 6028 esac 6029 fi 6030 rm -rf conftest* 6031 ;; 6032 6033*-*-sco3.2v5*) 6034 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6035 SAVE_CFLAGS="$CFLAGS" 6036 CFLAGS="$CFLAGS -belf" 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6038$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6039if test "${lt_cv_cc_needs_belf+set}" = set; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 ac_ext=c 6043ac_cpp='$CPP $CPPFLAGS' 6044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6046ac_compiler_gnu=$ac_cv_c_compiler_gnu 6047 6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6049/* end confdefs.h. */ 6050 6051int 6052main () 6053{ 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059if ac_fn_c_try_link "$LINENO"; then : 6060 lt_cv_cc_needs_belf=yes 6061else 6062 lt_cv_cc_needs_belf=no 6063fi 6064rm -f core conftest.err conftest.$ac_objext \ 6065 conftest$ac_exeext conftest.$ac_ext 6066 ac_ext=c 6067ac_cpp='$CPP $CPPFLAGS' 6068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6070ac_compiler_gnu=$ac_cv_c_compiler_gnu 6071 6072fi 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6074$as_echo "$lt_cv_cc_needs_belf" >&6; } 6075 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6076 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6077 CFLAGS="$SAVE_CFLAGS" 6078 fi 6079 ;; 6080sparc*-*solaris*) 6081 # Find out which ABI we are using. 6082 echo 'int i;' > conftest.$ac_ext 6083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6084 (eval $ac_compile) 2>&5 6085 ac_status=$? 6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6087 test $ac_status = 0; }; then 6088 case `/usr/bin/file conftest.o` in 6089 *64-bit*) 6090 case $lt_cv_prog_gnu_ld in 6091 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6092 *) 6093 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6094 LD="${LD-ld} -64" 6095 fi 6096 ;; 6097 esac 6098 ;; 6099 esac 6100 fi 6101 rm -rf conftest* 6102 ;; 6103esac 6104 6105need_locks="$enable_libtool_lock" 6106 6107 6108 case $host_os in 6109 rhapsody* | darwin*) 6110 if test -n "$ac_tool_prefix"; then 6111 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6112set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6114$as_echo_n "checking for $ac_word... " >&6; } 6115if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6116 $as_echo_n "(cached) " >&6 6117else 6118 if test -n "$DSYMUTIL"; then 6119 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6120else 6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6122for as_dir in $PATH 6123do 6124 IFS=$as_save_IFS 6125 test -z "$as_dir" && as_dir=. 6126 for ac_exec_ext in '' $ac_executable_extensions; do 6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6128 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6130 break 2 6131 fi 6132done 6133 done 6134IFS=$as_save_IFS 6135 6136fi 6137fi 6138DSYMUTIL=$ac_cv_prog_DSYMUTIL 6139if test -n "$DSYMUTIL"; then 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6141$as_echo "$DSYMUTIL" >&6; } 6142else 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6144$as_echo "no" >&6; } 6145fi 6146 6147 6148fi 6149if test -z "$ac_cv_prog_DSYMUTIL"; then 6150 ac_ct_DSYMUTIL=$DSYMUTIL 6151 # Extract the first word of "dsymutil", so it can be a program name with args. 6152set dummy dsymutil; ac_word=$2 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6154$as_echo_n "checking for $ac_word... " >&6; } 6155if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 if test -n "$ac_ct_DSYMUTIL"; then 6159 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6160else 6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162for as_dir in $PATH 6163do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6168 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172done 6173 done 6174IFS=$as_save_IFS 6175 6176fi 6177fi 6178ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6179if test -n "$ac_ct_DSYMUTIL"; then 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6181$as_echo "$ac_ct_DSYMUTIL" >&6; } 6182else 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6184$as_echo "no" >&6; } 6185fi 6186 6187 if test "x$ac_ct_DSYMUTIL" = x; then 6188 DSYMUTIL=":" 6189 else 6190 case $cross_compiling:$ac_tool_warned in 6191yes:) 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6194ac_tool_warned=yes ;; 6195esac 6196 DSYMUTIL=$ac_ct_DSYMUTIL 6197 fi 6198else 6199 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6200fi 6201 6202 if test -n "$ac_tool_prefix"; then 6203 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6204set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6206$as_echo_n "checking for $ac_word... " >&6; } 6207if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6208 $as_echo_n "(cached) " >&6 6209else 6210 if test -n "$NMEDIT"; then 6211 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6212else 6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6214for as_dir in $PATH 6215do 6216 IFS=$as_save_IFS 6217 test -z "$as_dir" && as_dir=. 6218 for ac_exec_ext in '' $ac_executable_extensions; do 6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6220 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6222 break 2 6223 fi 6224done 6225 done 6226IFS=$as_save_IFS 6227 6228fi 6229fi 6230NMEDIT=$ac_cv_prog_NMEDIT 6231if test -n "$NMEDIT"; then 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6233$as_echo "$NMEDIT" >&6; } 6234else 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6236$as_echo "no" >&6; } 6237fi 6238 6239 6240fi 6241if test -z "$ac_cv_prog_NMEDIT"; then 6242 ac_ct_NMEDIT=$NMEDIT 6243 # Extract the first word of "nmedit", so it can be a program name with args. 6244set dummy nmedit; ac_word=$2 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6246$as_echo_n "checking for $ac_word... " >&6; } 6247if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6248 $as_echo_n "(cached) " >&6 6249else 6250 if test -n "$ac_ct_NMEDIT"; then 6251 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6252else 6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6254for as_dir in $PATH 6255do 6256 IFS=$as_save_IFS 6257 test -z "$as_dir" && as_dir=. 6258 for ac_exec_ext in '' $ac_executable_extensions; do 6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6260 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6262 break 2 6263 fi 6264done 6265 done 6266IFS=$as_save_IFS 6267 6268fi 6269fi 6270ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6271if test -n "$ac_ct_NMEDIT"; then 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6273$as_echo "$ac_ct_NMEDIT" >&6; } 6274else 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6276$as_echo "no" >&6; } 6277fi 6278 6279 if test "x$ac_ct_NMEDIT" = x; then 6280 NMEDIT=":" 6281 else 6282 case $cross_compiling:$ac_tool_warned in 6283yes:) 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6286ac_tool_warned=yes ;; 6287esac 6288 NMEDIT=$ac_ct_NMEDIT 6289 fi 6290else 6291 NMEDIT="$ac_cv_prog_NMEDIT" 6292fi 6293 6294 if test -n "$ac_tool_prefix"; then 6295 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6296set dummy ${ac_tool_prefix}lipo; ac_word=$2 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6298$as_echo_n "checking for $ac_word... " >&6; } 6299if test "${ac_cv_prog_LIPO+set}" = set; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 if test -n "$LIPO"; then 6303 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6304else 6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6306for as_dir in $PATH 6307do 6308 IFS=$as_save_IFS 6309 test -z "$as_dir" && as_dir=. 6310 for ac_exec_ext in '' $ac_executable_extensions; do 6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6312 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6314 break 2 6315 fi 6316done 6317 done 6318IFS=$as_save_IFS 6319 6320fi 6321fi 6322LIPO=$ac_cv_prog_LIPO 6323if test -n "$LIPO"; then 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6325$as_echo "$LIPO" >&6; } 6326else 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6328$as_echo "no" >&6; } 6329fi 6330 6331 6332fi 6333if test -z "$ac_cv_prog_LIPO"; then 6334 ac_ct_LIPO=$LIPO 6335 # Extract the first word of "lipo", so it can be a program name with args. 6336set dummy lipo; ac_word=$2 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6338$as_echo_n "checking for $ac_word... " >&6; } 6339if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 if test -n "$ac_ct_LIPO"; then 6343 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6344else 6345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6346for as_dir in $PATH 6347do 6348 IFS=$as_save_IFS 6349 test -z "$as_dir" && as_dir=. 6350 for ac_exec_ext in '' $ac_executable_extensions; do 6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6352 ac_cv_prog_ac_ct_LIPO="lipo" 6353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6354 break 2 6355 fi 6356done 6357 done 6358IFS=$as_save_IFS 6359 6360fi 6361fi 6362ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6363if test -n "$ac_ct_LIPO"; then 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6365$as_echo "$ac_ct_LIPO" >&6; } 6366else 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6368$as_echo "no" >&6; } 6369fi 6370 6371 if test "x$ac_ct_LIPO" = x; then 6372 LIPO=":" 6373 else 6374 case $cross_compiling:$ac_tool_warned in 6375yes:) 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6378ac_tool_warned=yes ;; 6379esac 6380 LIPO=$ac_ct_LIPO 6381 fi 6382else 6383 LIPO="$ac_cv_prog_LIPO" 6384fi 6385 6386 if test -n "$ac_tool_prefix"; then 6387 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6388set dummy ${ac_tool_prefix}otool; ac_word=$2 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6390$as_echo_n "checking for $ac_word... " >&6; } 6391if test "${ac_cv_prog_OTOOL+set}" = set; then : 6392 $as_echo_n "(cached) " >&6 6393else 6394 if test -n "$OTOOL"; then 6395 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6396else 6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6398for as_dir in $PATH 6399do 6400 IFS=$as_save_IFS 6401 test -z "$as_dir" && as_dir=. 6402 for ac_exec_ext in '' $ac_executable_extensions; do 6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6404 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6406 break 2 6407 fi 6408done 6409 done 6410IFS=$as_save_IFS 6411 6412fi 6413fi 6414OTOOL=$ac_cv_prog_OTOOL 6415if test -n "$OTOOL"; then 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6417$as_echo "$OTOOL" >&6; } 6418else 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6420$as_echo "no" >&6; } 6421fi 6422 6423 6424fi 6425if test -z "$ac_cv_prog_OTOOL"; then 6426 ac_ct_OTOOL=$OTOOL 6427 # Extract the first word of "otool", so it can be a program name with args. 6428set dummy otool; ac_word=$2 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6430$as_echo_n "checking for $ac_word... " >&6; } 6431if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 if test -n "$ac_ct_OTOOL"; then 6435 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6436else 6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438for as_dir in $PATH 6439do 6440 IFS=$as_save_IFS 6441 test -z "$as_dir" && as_dir=. 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6444 ac_cv_prog_ac_ct_OTOOL="otool" 6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448done 6449 done 6450IFS=$as_save_IFS 6451 6452fi 6453fi 6454ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6455if test -n "$ac_ct_OTOOL"; then 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6457$as_echo "$ac_ct_OTOOL" >&6; } 6458else 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6460$as_echo "no" >&6; } 6461fi 6462 6463 if test "x$ac_ct_OTOOL" = x; then 6464 OTOOL=":" 6465 else 6466 case $cross_compiling:$ac_tool_warned in 6467yes:) 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6470ac_tool_warned=yes ;; 6471esac 6472 OTOOL=$ac_ct_OTOOL 6473 fi 6474else 6475 OTOOL="$ac_cv_prog_OTOOL" 6476fi 6477 6478 if test -n "$ac_tool_prefix"; then 6479 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6480set dummy ${ac_tool_prefix}otool64; ac_word=$2 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6482$as_echo_n "checking for $ac_word... " >&6; } 6483if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6484 $as_echo_n "(cached) " >&6 6485else 6486 if test -n "$OTOOL64"; then 6487 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6488else 6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490for as_dir in $PATH 6491do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6496 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500done 6501 done 6502IFS=$as_save_IFS 6503 6504fi 6505fi 6506OTOOL64=$ac_cv_prog_OTOOL64 6507if test -n "$OTOOL64"; then 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6509$as_echo "$OTOOL64" >&6; } 6510else 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6512$as_echo "no" >&6; } 6513fi 6514 6515 6516fi 6517if test -z "$ac_cv_prog_OTOOL64"; then 6518 ac_ct_OTOOL64=$OTOOL64 6519 # Extract the first word of "otool64", so it can be a program name with args. 6520set dummy otool64; ac_word=$2 6521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6522$as_echo_n "checking for $ac_word... " >&6; } 6523if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6524 $as_echo_n "(cached) " >&6 6525else 6526 if test -n "$ac_ct_OTOOL64"; then 6527 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6528else 6529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6530for as_dir in $PATH 6531do 6532 IFS=$as_save_IFS 6533 test -z "$as_dir" && as_dir=. 6534 for ac_exec_ext in '' $ac_executable_extensions; do 6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6536 ac_cv_prog_ac_ct_OTOOL64="otool64" 6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6538 break 2 6539 fi 6540done 6541 done 6542IFS=$as_save_IFS 6543 6544fi 6545fi 6546ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6547if test -n "$ac_ct_OTOOL64"; then 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6549$as_echo "$ac_ct_OTOOL64" >&6; } 6550else 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6552$as_echo "no" >&6; } 6553fi 6554 6555 if test "x$ac_ct_OTOOL64" = x; then 6556 OTOOL64=":" 6557 else 6558 case $cross_compiling:$ac_tool_warned in 6559yes:) 6560{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6561$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6562ac_tool_warned=yes ;; 6563esac 6564 OTOOL64=$ac_ct_OTOOL64 6565 fi 6566else 6567 OTOOL64="$ac_cv_prog_OTOOL64" 6568fi 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6597$as_echo_n "checking for -single_module linker flag... " >&6; } 6598if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6599 $as_echo_n "(cached) " >&6 6600else 6601 lt_cv_apple_cc_single_mod=no 6602 if test -z "${LT_MULTI_MODULE}"; then 6603 # By default we will add the -single_module flag. You can override 6604 # by either setting the environment variable LT_MULTI_MODULE 6605 # non-empty at configure time, or by adding -multi_module to the 6606 # link flags. 6607 rm -rf libconftest.dylib* 6608 echo "int foo(void){return 1;}" > conftest.c 6609 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6610-dynamiclib -Wl,-single_module conftest.c" >&5 6611 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6612 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6613 _lt_result=$? 6614 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6615 lt_cv_apple_cc_single_mod=yes 6616 else 6617 cat conftest.err >&5 6618 fi 6619 rm -rf libconftest.dylib* 6620 rm -f conftest.* 6621 fi 6622fi 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6624$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6626$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6627if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 lt_cv_ld_exported_symbols_list=no 6631 save_LDFLAGS=$LDFLAGS 6632 echo "_main" > conftest.sym 6633 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635/* end confdefs.h. */ 6636 6637int 6638main () 6639{ 6640 6641 ; 6642 return 0; 6643} 6644_ACEOF 6645if ac_fn_c_try_link "$LINENO"; then : 6646 lt_cv_ld_exported_symbols_list=yes 6647else 6648 lt_cv_ld_exported_symbols_list=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext \ 6651 conftest$ac_exeext conftest.$ac_ext 6652 LDFLAGS="$save_LDFLAGS" 6653 6654fi 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6656$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6657 case $host_os in 6658 rhapsody* | darwin1.[012]) 6659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6660 darwin1.*) 6661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6662 darwin*) # darwin 5.x on 6663 # if running on 10.5 or later, the deployment target defaults 6664 # to the OS version, if on x86, and 10.4, the deployment 6665 # target defaults to 10.4. Don't you love it? 6666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6667 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6668 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6669 10.[012]*) 6670 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6671 10.*) 6672 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6673 esac 6674 ;; 6675 esac 6676 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6677 _lt_dar_single_mod='$single_module' 6678 fi 6679 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6680 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6681 else 6682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6683 fi 6684 if test "$DSYMUTIL" != ":"; then 6685 _lt_dsymutil='~$DSYMUTIL $lib || :' 6686 else 6687 _lt_dsymutil= 6688 fi 6689 ;; 6690 esac 6691 6692ac_ext=c 6693ac_cpp='$CPP $CPPFLAGS' 6694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6696ac_compiler_gnu=$ac_cv_c_compiler_gnu 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6698$as_echo_n "checking how to run the C preprocessor... " >&6; } 6699# On Suns, sometimes $CPP names a directory. 6700if test -n "$CPP" && test -d "$CPP"; then 6701 CPP= 6702fi 6703if test -z "$CPP"; then 6704 if test "${ac_cv_prog_CPP+set}" = set; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 # Double quotes because CPP needs to be expanded 6708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6709 do 6710 ac_preproc_ok=false 6711for ac_c_preproc_warn_flag in '' yes 6712do 6713 # Use a header file that comes with gcc, so configuring glibc 6714 # with a fresh cross-compiler works. 6715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6716 # <limits.h> exists even on freestanding compilers. 6717 # On the NeXT, cc -E runs the code through the compiler's parser, 6718 # not just through cpp. "Syntax error" is here to catch this case. 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720/* end confdefs.h. */ 6721#ifdef __STDC__ 6722# include <limits.h> 6723#else 6724# include <assert.h> 6725#endif 6726 Syntax error 6727_ACEOF 6728if ac_fn_c_try_cpp "$LINENO"; then : 6729 6730else 6731 # Broken: fails on valid input. 6732continue 6733fi 6734rm -f conftest.err conftest.i conftest.$ac_ext 6735 6736 # OK, works on sane cases. Now check whether nonexistent headers 6737 # can be detected and how. 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740#include <ac_nonexistent.h> 6741_ACEOF 6742if ac_fn_c_try_cpp "$LINENO"; then : 6743 # Broken: success on invalid input. 6744continue 6745else 6746 # Passes both tests. 6747ac_preproc_ok=: 6748break 6749fi 6750rm -f conftest.err conftest.i conftest.$ac_ext 6751 6752done 6753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6754rm -f conftest.i conftest.err conftest.$ac_ext 6755if $ac_preproc_ok; then : 6756 break 6757fi 6758 6759 done 6760 ac_cv_prog_CPP=$CPP 6761 6762fi 6763 CPP=$ac_cv_prog_CPP 6764else 6765 ac_cv_prog_CPP=$CPP 6766fi 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6768$as_echo "$CPP" >&6; } 6769ac_preproc_ok=false 6770for ac_c_preproc_warn_flag in '' yes 6771do 6772 # Use a header file that comes with gcc, so configuring glibc 6773 # with a fresh cross-compiler works. 6774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6775 # <limits.h> exists even on freestanding compilers. 6776 # On the NeXT, cc -E runs the code through the compiler's parser, 6777 # not just through cpp. "Syntax error" is here to catch this case. 6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6779/* end confdefs.h. */ 6780#ifdef __STDC__ 6781# include <limits.h> 6782#else 6783# include <assert.h> 6784#endif 6785 Syntax error 6786_ACEOF 6787if ac_fn_c_try_cpp "$LINENO"; then : 6788 6789else 6790 # Broken: fails on valid input. 6791continue 6792fi 6793rm -f conftest.err conftest.i conftest.$ac_ext 6794 6795 # OK, works on sane cases. Now check whether nonexistent headers 6796 # can be detected and how. 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798/* end confdefs.h. */ 6799#include <ac_nonexistent.h> 6800_ACEOF 6801if ac_fn_c_try_cpp "$LINENO"; then : 6802 # Broken: success on invalid input. 6803continue 6804else 6805 # Passes both tests. 6806ac_preproc_ok=: 6807break 6808fi 6809rm -f conftest.err conftest.i conftest.$ac_ext 6810 6811done 6812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6813rm -f conftest.i conftest.err conftest.$ac_ext 6814if $ac_preproc_ok; then : 6815 6816else 6817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6819as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6820See \`config.log' for more details" "$LINENO" 5 ; } 6821fi 6822 6823ac_ext=c 6824ac_cpp='$CPP $CPPFLAGS' 6825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6827ac_compiler_gnu=$ac_cv_c_compiler_gnu 6828 6829 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6831$as_echo_n "checking for ANSI C header files... " >&6; } 6832if test "${ac_cv_header_stdc+set}" = set; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836/* end confdefs.h. */ 6837#include <stdlib.h> 6838#include <stdarg.h> 6839#include <string.h> 6840#include <float.h> 6841 6842int 6843main () 6844{ 6845 6846 ; 6847 return 0; 6848} 6849_ACEOF 6850if ac_fn_c_try_compile "$LINENO"; then : 6851 ac_cv_header_stdc=yes 6852else 6853 ac_cv_header_stdc=no 6854fi 6855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6856 6857if test $ac_cv_header_stdc = yes; then 6858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860/* end confdefs.h. */ 6861#include <string.h> 6862 6863_ACEOF 6864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6865 $EGREP "memchr" >/dev/null 2>&1; then : 6866 6867else 6868 ac_cv_header_stdc=no 6869fi 6870rm -f conftest* 6871 6872fi 6873 6874if test $ac_cv_header_stdc = yes; then 6875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6877/* end confdefs.h. */ 6878#include <stdlib.h> 6879 6880_ACEOF 6881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6882 $EGREP "free" >/dev/null 2>&1; then : 6883 6884else 6885 ac_cv_header_stdc=no 6886fi 6887rm -f conftest* 6888 6889fi 6890 6891if test $ac_cv_header_stdc = yes; then 6892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6893 if test "$cross_compiling" = yes; then : 6894 : 6895else 6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6897/* end confdefs.h. */ 6898#include <ctype.h> 6899#include <stdlib.h> 6900#if ((' ' & 0x0FF) == 0x020) 6901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6903#else 6904# define ISLOWER(c) \ 6905 (('a' <= (c) && (c) <= 'i') \ 6906 || ('j' <= (c) && (c) <= 'r') \ 6907 || ('s' <= (c) && (c) <= 'z')) 6908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6909#endif 6910 6911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6912int 6913main () 6914{ 6915 int i; 6916 for (i = 0; i < 256; i++) 6917 if (XOR (islower (i), ISLOWER (i)) 6918 || toupper (i) != TOUPPER (i)) 6919 return 2; 6920 return 0; 6921} 6922_ACEOF 6923if ac_fn_c_try_run "$LINENO"; then : 6924 6925else 6926 ac_cv_header_stdc=no 6927fi 6928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6929 conftest.$ac_objext conftest.beam conftest.$ac_ext 6930fi 6931 6932fi 6933fi 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6935$as_echo "$ac_cv_header_stdc" >&6; } 6936if test $ac_cv_header_stdc = yes; then 6937 6938$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6939 6940fi 6941 6942# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6943for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6944 inttypes.h stdint.h unistd.h 6945do : 6946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6947ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6948" 6949if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6950 cat >>confdefs.h <<_ACEOF 6951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6952_ACEOF 6953 6954fi 6955 6956done 6957 6958 6959for ac_header in dlfcn.h 6960do : 6961 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6962" 6963if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6964 cat >>confdefs.h <<_ACEOF 6965#define HAVE_DLFCN_H 1 6966_ACEOF 6967 6968fi 6969 6970done 6971 6972 6973 6974# Set options 6975 6976 6977 6978 enable_dlopen=no 6979 6980 6981 enable_win32_dll=no 6982 6983 6984 # Check whether --enable-shared was given. 6985if test "${enable_shared+set}" = set; then : 6986 enableval=$enable_shared; p=${PACKAGE-default} 6987 case $enableval in 6988 yes) enable_shared=yes ;; 6989 no) enable_shared=no ;; 6990 *) 6991 enable_shared=no 6992 # Look at the argument we got. We use all the common list separators. 6993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6994 for pkg in $enableval; do 6995 IFS="$lt_save_ifs" 6996 if test "X$pkg" = "X$p"; then 6997 enable_shared=yes 6998 fi 6999 done 7000 IFS="$lt_save_ifs" 7001 ;; 7002 esac 7003else 7004 enable_shared=yes 7005fi 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 # Check whether --enable-static was given. 7016if test "${enable_static+set}" = set; then : 7017 enableval=$enable_static; p=${PACKAGE-default} 7018 case $enableval in 7019 yes) enable_static=yes ;; 7020 no) enable_static=no ;; 7021 *) 7022 enable_static=no 7023 # Look at the argument we got. We use all the common list separators. 7024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7025 for pkg in $enableval; do 7026 IFS="$lt_save_ifs" 7027 if test "X$pkg" = "X$p"; then 7028 enable_static=yes 7029 fi 7030 done 7031 IFS="$lt_save_ifs" 7032 ;; 7033 esac 7034else 7035 enable_static=yes 7036fi 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047# Check whether --with-pic was given. 7048if test "${with_pic+set}" = set; then : 7049 withval=$with_pic; pic_mode="$withval" 7050else 7051 pic_mode=default 7052fi 7053 7054 7055test -z "$pic_mode" && pic_mode=default 7056 7057 7058 7059 7060 7061 7062 7063 # Check whether --enable-fast-install was given. 7064if test "${enable_fast_install+set}" = set; then : 7065 enableval=$enable_fast_install; p=${PACKAGE-default} 7066 case $enableval in 7067 yes) enable_fast_install=yes ;; 7068 no) enable_fast_install=no ;; 7069 *) 7070 enable_fast_install=no 7071 # Look at the argument we got. We use all the common list separators. 7072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7073 for pkg in $enableval; do 7074 IFS="$lt_save_ifs" 7075 if test "X$pkg" = "X$p"; then 7076 enable_fast_install=yes 7077 fi 7078 done 7079 IFS="$lt_save_ifs" 7080 ;; 7081 esac 7082else 7083 enable_fast_install=yes 7084fi 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096# This can be used to rebuild libtool when needed 7097LIBTOOL_DEPS="$ltmain" 7098 7099# Always use our own libtool. 7100LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126test -z "$LN_S" && LN_S="ln -s" 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141if test -n "${ZSH_VERSION+set}" ; then 7142 setopt NO_GLOB_SUBST 7143fi 7144 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7146$as_echo_n "checking for objdir... " >&6; } 7147if test "${lt_cv_objdir+set}" = set; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 rm -f .libs 2>/dev/null 7151mkdir .libs 2>/dev/null 7152if test -d .libs; then 7153 lt_cv_objdir=.libs 7154else 7155 # MS-DOS does not allow filenames that begin with a dot. 7156 lt_cv_objdir=_libs 7157fi 7158rmdir .libs 2>/dev/null 7159fi 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7161$as_echo "$lt_cv_objdir" >&6; } 7162objdir=$lt_cv_objdir 7163 7164 7165 7166 7167 7168cat >>confdefs.h <<_ACEOF 7169#define LT_OBJDIR "$lt_cv_objdir/" 7170_ACEOF 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188case $host_os in 7189aix3*) 7190 # AIX sometimes has problems with the GCC collect2 program. For some 7191 # reason, if we set the COLLECT_NAMES environment variable, the problems 7192 # vanish in a puff of smoke. 7193 if test "X${COLLECT_NAMES+set}" != Xset; then 7194 COLLECT_NAMES= 7195 export COLLECT_NAMES 7196 fi 7197 ;; 7198esac 7199 7200# Sed substitution that helps us do robust quoting. It backslashifies 7201# metacharacters that are still active within double-quoted strings. 7202sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7203 7204# Same as above, but do not quote variable references. 7205double_quote_subst='s/\(["`\\]\)/\\\1/g' 7206 7207# Sed substitution to delay expansion of an escaped shell variable in a 7208# double_quote_subst'ed string. 7209delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7210 7211# Sed substitution to delay expansion of an escaped single quote. 7212delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7213 7214# Sed substitution to avoid accidental globbing in evaled expressions 7215no_glob_subst='s/\*/\\\*/g' 7216 7217# Global variables: 7218ofile=libtool 7219can_build_shared=yes 7220 7221# All known linkers require a `.a' archive for static linking (except MSVC, 7222# which needs '.lib'). 7223libext=a 7224 7225with_gnu_ld="$lt_cv_prog_gnu_ld" 7226 7227old_CC="$CC" 7228old_CFLAGS="$CFLAGS" 7229 7230# Set sane defaults for various variables 7231test -z "$CC" && CC=cc 7232test -z "$LTCC" && LTCC=$CC 7233test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7234test -z "$LD" && LD=ld 7235test -z "$ac_objext" && ac_objext=o 7236 7237for cc_temp in $compiler""; do 7238 case $cc_temp in 7239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7241 \-*) ;; 7242 *) break;; 7243 esac 7244done 7245cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7246 7247 7248# Only perform the check for file, if the check method requires it 7249test -z "$MAGIC_CMD" && MAGIC_CMD=file 7250case $deplibs_check_method in 7251file_magic*) 7252 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7254$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7255if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 case $MAGIC_CMD in 7259[\\/*] | ?:[\\/]*) 7260 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7261 ;; 7262*) 7263 lt_save_MAGIC_CMD="$MAGIC_CMD" 7264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7265 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7266 for ac_dir in $ac_dummy; do 7267 IFS="$lt_save_ifs" 7268 test -z "$ac_dir" && ac_dir=. 7269 if test -f $ac_dir/${ac_tool_prefix}file; then 7270 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7271 if test -n "$file_magic_test_file"; then 7272 case $deplibs_check_method in 7273 "file_magic "*) 7274 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7275 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7276 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7277 $EGREP "$file_magic_regex" > /dev/null; then 7278 : 7279 else 7280 cat <<_LT_EOF 1>&2 7281 7282*** Warning: the command libtool uses to detect shared libraries, 7283*** $file_magic_cmd, produces output that libtool cannot recognize. 7284*** The result is that libtool may fail to recognize shared libraries 7285*** as such. This will affect the creation of libtool libraries that 7286*** depend on shared libraries, but programs linked with such libtool 7287*** libraries will work regardless of this problem. Nevertheless, you 7288*** may want to report the problem to your system manager and/or to 7289*** bug-libtool@gnu.org 7290 7291_LT_EOF 7292 fi ;; 7293 esac 7294 fi 7295 break 7296 fi 7297 done 7298 IFS="$lt_save_ifs" 7299 MAGIC_CMD="$lt_save_MAGIC_CMD" 7300 ;; 7301esac 7302fi 7303 7304MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7305if test -n "$MAGIC_CMD"; then 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7307$as_echo "$MAGIC_CMD" >&6; } 7308else 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7310$as_echo "no" >&6; } 7311fi 7312 7313 7314 7315 7316 7317if test -z "$lt_cv_path_MAGIC_CMD"; then 7318 if test -n "$ac_tool_prefix"; then 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7320$as_echo_n "checking for file... " >&6; } 7321if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 case $MAGIC_CMD in 7325[\\/*] | ?:[\\/]*) 7326 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7327 ;; 7328*) 7329 lt_save_MAGIC_CMD="$MAGIC_CMD" 7330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7331 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7332 for ac_dir in $ac_dummy; do 7333 IFS="$lt_save_ifs" 7334 test -z "$ac_dir" && ac_dir=. 7335 if test -f $ac_dir/file; then 7336 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7337 if test -n "$file_magic_test_file"; then 7338 case $deplibs_check_method in 7339 "file_magic "*) 7340 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7342 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7343 $EGREP "$file_magic_regex" > /dev/null; then 7344 : 7345 else 7346 cat <<_LT_EOF 1>&2 7347 7348*** Warning: the command libtool uses to detect shared libraries, 7349*** $file_magic_cmd, produces output that libtool cannot recognize. 7350*** The result is that libtool may fail to recognize shared libraries 7351*** as such. This will affect the creation of libtool libraries that 7352*** depend on shared libraries, but programs linked with such libtool 7353*** libraries will work regardless of this problem. Nevertheless, you 7354*** may want to report the problem to your system manager and/or to 7355*** bug-libtool@gnu.org 7356 7357_LT_EOF 7358 fi ;; 7359 esac 7360 fi 7361 break 7362 fi 7363 done 7364 IFS="$lt_save_ifs" 7365 MAGIC_CMD="$lt_save_MAGIC_CMD" 7366 ;; 7367esac 7368fi 7369 7370MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7371if test -n "$MAGIC_CMD"; then 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7373$as_echo "$MAGIC_CMD" >&6; } 7374else 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7376$as_echo "no" >&6; } 7377fi 7378 7379 7380 else 7381 MAGIC_CMD=: 7382 fi 7383fi 7384 7385 fi 7386 ;; 7387esac 7388 7389# Use C for the default configuration in the libtool script 7390 7391lt_save_CC="$CC" 7392ac_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 7399# Source file extension for C test sources. 7400ac_ext=c 7401 7402# Object file extension for compiled C test sources. 7403objext=o 7404objext=$objext 7405 7406# Code to be used in simple compile tests 7407lt_simple_compile_test_code="int some_variable = 0;" 7408 7409# Code to be used in simple link tests 7410lt_simple_link_test_code='int main(){return(0);}' 7411 7412 7413 7414 7415 7416 7417 7418# If no C compiler was specified, use CC. 7419LTCC=${LTCC-"$CC"} 7420 7421# If no C compiler flags were specified, use CFLAGS. 7422LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7423 7424# Allow CC to be a program name with arguments. 7425compiler=$CC 7426 7427# Save the default compiler, since it gets overwritten when the other 7428# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7429compiler_DEFAULT=$CC 7430 7431# save warnings/boilerplate of simple test code 7432ac_outfile=conftest.$ac_objext 7433echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7434eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7435_lt_compiler_boilerplate=`cat conftest.err` 7436$RM conftest* 7437 7438ac_outfile=conftest.$ac_objext 7439echo "$lt_simple_link_test_code" >conftest.$ac_ext 7440eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7441_lt_linker_boilerplate=`cat conftest.err` 7442$RM -r conftest* 7443 7444 7445## CAVEAT EMPTOR: 7446## There is no encapsulation within the following macros, do not change 7447## the running order or otherwise move them around unless you know exactly 7448## what you are doing... 7449if test -n "$compiler"; then 7450 7451lt_prog_compiler_no_builtin_flag= 7452 7453if test "$GCC" = yes; then 7454 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7455 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7457$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7458if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7459 $as_echo_n "(cached) " >&6 7460else 7461 lt_cv_prog_compiler_rtti_exceptions=no 7462 ac_outfile=conftest.$ac_objext 7463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7464 lt_compiler_flag="-fno-rtti -fno-exceptions" 7465 # Insert the option either (1) after the last *FLAGS variable, or 7466 # (2) before a word containing "conftest.", or (3) at the end. 7467 # Note that $ac_compile itself does not contain backslashes and begins 7468 # with a dollar sign (not a hyphen), so the echo should work correctly. 7469 # The option is referenced via a variable to avoid confusing sed. 7470 lt_compile=`echo "$ac_compile" | $SED \ 7471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7473 -e 's:$: $lt_compiler_flag:'` 7474 (eval echo "\"\$as_me:7474: $lt_compile\"" >&5) 7475 (eval "$lt_compile" 2>conftest.err) 7476 ac_status=$? 7477 cat conftest.err >&5 7478 echo "$as_me:7478: \$? = $ac_status" >&5 7479 if (exit $ac_status) && test -s "$ac_outfile"; then 7480 # The compiler can only warn and ignore the option if not recognized 7481 # So say no if there are warnings other than the usual output. 7482 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7485 lt_cv_prog_compiler_rtti_exceptions=yes 7486 fi 7487 fi 7488 $RM conftest* 7489 7490fi 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7492$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7493 7494if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7496else 7497 : 7498fi 7499 7500fi 7501 7502 7503 7504 7505 7506 7507 lt_prog_compiler_wl= 7508lt_prog_compiler_pic= 7509lt_prog_compiler_static= 7510 7511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7512$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7513 7514 if test "$GCC" = yes; then 7515 lt_prog_compiler_wl='-Wl,' 7516 lt_prog_compiler_static='-static' 7517 7518 case $host_os in 7519 aix*) 7520 # All AIX code is PIC. 7521 if test "$host_cpu" = ia64; then 7522 # AIX 5 now supports IA64 processor 7523 lt_prog_compiler_static='-Bstatic' 7524 fi 7525 ;; 7526 7527 amigaos*) 7528 case $host_cpu in 7529 powerpc) 7530 # see comment about AmigaOS4 .so support 7531 lt_prog_compiler_pic='-fPIC' 7532 ;; 7533 m68k) 7534 # FIXME: we need at least 68020 code to build shared libraries, but 7535 # adding the `-m68020' flag to GCC prevents building anything better, 7536 # like `-m68040'. 7537 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7538 ;; 7539 esac 7540 ;; 7541 7542 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7543 # PIC is the default for these OSes. 7544 ;; 7545 7546 mingw* | cygwin* | pw32* | os2* | cegcc*) 7547 # This hack is so that the source file can tell whether it is being 7548 # built for inclusion in a dll (and should export symbols for example). 7549 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7550 # (--disable-auto-import) libraries 7551 lt_prog_compiler_pic='-DDLL_EXPORT' 7552 ;; 7553 7554 darwin* | rhapsody*) 7555 # PIC is the default on this platform 7556 # Common symbols not allowed in MH_DYLIB files 7557 lt_prog_compiler_pic='-fno-common' 7558 ;; 7559 7560 hpux*) 7561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7563 # sets the default TLS model and affects inlining. 7564 case $host_cpu in 7565 hppa*64*) 7566 # +Z the default 7567 ;; 7568 *) 7569 lt_prog_compiler_pic='-fPIC' 7570 ;; 7571 esac 7572 ;; 7573 7574 interix[3-9]*) 7575 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7576 # Instead, we relocate shared libraries at runtime. 7577 ;; 7578 7579 msdosdjgpp*) 7580 # Just because we use GCC doesn't mean we suddenly get shared libraries 7581 # on systems that don't support them. 7582 lt_prog_compiler_can_build_shared=no 7583 enable_shared=no 7584 ;; 7585 7586 *nto* | *qnx*) 7587 # QNX uses GNU C++, but need to define -shared option too, otherwise 7588 # it will coredump. 7589 lt_prog_compiler_pic='-fPIC -shared' 7590 ;; 7591 7592 sysv4*MP*) 7593 if test -d /usr/nec; then 7594 lt_prog_compiler_pic=-Kconform_pic 7595 fi 7596 ;; 7597 7598 *) 7599 lt_prog_compiler_pic='-fPIC' 7600 ;; 7601 esac 7602 else 7603 # PORTME Check for flag to pass linker flags through the system compiler. 7604 case $host_os in 7605 aix*) 7606 lt_prog_compiler_wl='-Wl,' 7607 if test "$host_cpu" = ia64; then 7608 # AIX 5 now supports IA64 processor 7609 lt_prog_compiler_static='-Bstatic' 7610 else 7611 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7612 fi 7613 ;; 7614 7615 mingw* | cygwin* | pw32* | os2* | cegcc*) 7616 # This hack is so that the source file can tell whether it is being 7617 # built for inclusion in a dll (and should export symbols for example). 7618 lt_prog_compiler_pic='-DDLL_EXPORT' 7619 ;; 7620 7621 hpux9* | hpux10* | hpux11*) 7622 lt_prog_compiler_wl='-Wl,' 7623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7624 # not for PA HP-UX. 7625 case $host_cpu in 7626 hppa*64*|ia64*) 7627 # +Z the default 7628 ;; 7629 *) 7630 lt_prog_compiler_pic='+Z' 7631 ;; 7632 esac 7633 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7634 lt_prog_compiler_static='${wl}-a ${wl}archive' 7635 ;; 7636 7637 irix5* | irix6* | nonstopux*) 7638 lt_prog_compiler_wl='-Wl,' 7639 # PIC (with -KPIC) is the default. 7640 lt_prog_compiler_static='-non_shared' 7641 ;; 7642 7643 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7644 case $cc_basename in 7645 # old Intel for x86_64 which still supported -KPIC. 7646 ecc*) 7647 lt_prog_compiler_wl='-Wl,' 7648 lt_prog_compiler_pic='-KPIC' 7649 lt_prog_compiler_static='-static' 7650 ;; 7651 # icc used to be incompatible with GCC. 7652 # ICC 10 doesn't accept -KPIC any more. 7653 icc* | ifort*) 7654 lt_prog_compiler_wl='-Wl,' 7655 lt_prog_compiler_pic='-fPIC' 7656 lt_prog_compiler_static='-static' 7657 ;; 7658 # Lahey Fortran 8.1. 7659 lf95*) 7660 lt_prog_compiler_wl='-Wl,' 7661 lt_prog_compiler_pic='--shared' 7662 lt_prog_compiler_static='--static' 7663 ;; 7664 pgcc* | pgf77* | pgf90* | pgf95*) 7665 # Portland Group compilers (*not* the Pentium gcc compiler, 7666 # which looks to be a dead project) 7667 lt_prog_compiler_wl='-Wl,' 7668 lt_prog_compiler_pic='-fpic' 7669 lt_prog_compiler_static='-Bstatic' 7670 ;; 7671 ccc*) 7672 lt_prog_compiler_wl='-Wl,' 7673 # All Alpha code is PIC. 7674 lt_prog_compiler_static='-non_shared' 7675 ;; 7676 xl*) 7677 # IBM XL C 8.0/Fortran 10.1 on PPC 7678 lt_prog_compiler_wl='-Wl,' 7679 lt_prog_compiler_pic='-qpic' 7680 lt_prog_compiler_static='-qstaticlink' 7681 ;; 7682 *) 7683 case `$CC -V 2>&1 | sed 5q` in 7684 *Sun\ C*) 7685 # Sun C 5.9 7686 lt_prog_compiler_pic='-KPIC' 7687 lt_prog_compiler_static='-Bstatic' 7688 lt_prog_compiler_wl='-Wl,' 7689 ;; 7690 *Sun\ F*) 7691 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7692 lt_prog_compiler_pic='-KPIC' 7693 lt_prog_compiler_static='-Bstatic' 7694 lt_prog_compiler_wl='' 7695 ;; 7696 esac 7697 ;; 7698 esac 7699 ;; 7700 7701 newsos6) 7702 lt_prog_compiler_pic='-KPIC' 7703 lt_prog_compiler_static='-Bstatic' 7704 ;; 7705 7706 *nto* | *qnx*) 7707 # QNX uses GNU C++, but need to define -shared option too, otherwise 7708 # it will coredump. 7709 lt_prog_compiler_pic='-fPIC -shared' 7710 ;; 7711 7712 osf3* | osf4* | osf5*) 7713 lt_prog_compiler_wl='-Wl,' 7714 # All OSF/1 code is PIC. 7715 lt_prog_compiler_static='-non_shared' 7716 ;; 7717 7718 rdos*) 7719 lt_prog_compiler_static='-non_shared' 7720 ;; 7721 7722 solaris*) 7723 lt_prog_compiler_pic='-KPIC' 7724 lt_prog_compiler_static='-Bstatic' 7725 case $cc_basename in 7726 f77* | f90* | f95*) 7727 lt_prog_compiler_wl='-Qoption ld ';; 7728 *) 7729 lt_prog_compiler_wl='-Wl,';; 7730 esac 7731 ;; 7732 7733 sunos4*) 7734 lt_prog_compiler_wl='-Qoption ld ' 7735 lt_prog_compiler_pic='-PIC' 7736 lt_prog_compiler_static='-Bstatic' 7737 ;; 7738 7739 sysv4 | sysv4.2uw2* | sysv4.3*) 7740 lt_prog_compiler_wl='-Wl,' 7741 lt_prog_compiler_pic='-KPIC' 7742 lt_prog_compiler_static='-Bstatic' 7743 ;; 7744 7745 sysv4*MP*) 7746 if test -d /usr/nec ;then 7747 lt_prog_compiler_pic='-Kconform_pic' 7748 lt_prog_compiler_static='-Bstatic' 7749 fi 7750 ;; 7751 7752 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7753 lt_prog_compiler_wl='-Wl,' 7754 lt_prog_compiler_pic='-KPIC' 7755 lt_prog_compiler_static='-Bstatic' 7756 ;; 7757 7758 unicos*) 7759 lt_prog_compiler_wl='-Wl,' 7760 lt_prog_compiler_can_build_shared=no 7761 ;; 7762 7763 uts4*) 7764 lt_prog_compiler_pic='-pic' 7765 lt_prog_compiler_static='-Bstatic' 7766 ;; 7767 7768 *) 7769 lt_prog_compiler_can_build_shared=no 7770 ;; 7771 esac 7772 fi 7773 7774case $host_os in 7775 # For platforms which do not support PIC, -DPIC is meaningless: 7776 *djgpp*) 7777 lt_prog_compiler_pic= 7778 ;; 7779 *) 7780 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7781 ;; 7782esac 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7784$as_echo "$lt_prog_compiler_pic" >&6; } 7785 7786 7787 7788 7789 7790 7791# 7792# Check to make sure the PIC flag actually works. 7793# 7794if test -n "$lt_prog_compiler_pic"; then 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7796$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7797if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 lt_cv_prog_compiler_pic_works=no 7801 ac_outfile=conftest.$ac_objext 7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7803 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7804 # Insert the option either (1) after the last *FLAGS variable, or 7805 # (2) before a word containing "conftest.", or (3) at the end. 7806 # Note that $ac_compile itself does not contain backslashes and begins 7807 # with a dollar sign (not a hyphen), so the echo should work correctly. 7808 # The option is referenced via a variable to avoid confusing sed. 7809 lt_compile=`echo "$ac_compile" | $SED \ 7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7812 -e 's:$: $lt_compiler_flag:'` 7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5) 7814 (eval "$lt_compile" 2>conftest.err) 7815 ac_status=$? 7816 cat conftest.err >&5 7817 echo "$as_me:7817: \$? = $ac_status" >&5 7818 if (exit $ac_status) && test -s "$ac_outfile"; then 7819 # The compiler can only warn and ignore the option if not recognized 7820 # So say no if there are warnings other than the usual output. 7821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7824 lt_cv_prog_compiler_pic_works=yes 7825 fi 7826 fi 7827 $RM conftest* 7828 7829fi 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7831$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7832 7833if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7834 case $lt_prog_compiler_pic in 7835 "" | " "*) ;; 7836 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7837 esac 7838else 7839 lt_prog_compiler_pic= 7840 lt_prog_compiler_can_build_shared=no 7841fi 7842 7843fi 7844 7845 7846 7847 7848 7849 7850# 7851# Check to make sure the static flag actually works. 7852# 7853wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7855$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7856if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7857 $as_echo_n "(cached) " >&6 7858else 7859 lt_cv_prog_compiler_static_works=no 7860 save_LDFLAGS="$LDFLAGS" 7861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7862 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7864 # The linker can only warn and ignore the option if not recognized 7865 # So say no if there are warnings 7866 if test -s conftest.err; then 7867 # Append any errors to the config.log. 7868 cat conftest.err 1>&5 7869 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7871 if diff conftest.exp conftest.er2 >/dev/null; then 7872 lt_cv_prog_compiler_static_works=yes 7873 fi 7874 else 7875 lt_cv_prog_compiler_static_works=yes 7876 fi 7877 fi 7878 $RM -r conftest* 7879 LDFLAGS="$save_LDFLAGS" 7880 7881fi 7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7883$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7884 7885if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7886 : 7887else 7888 lt_prog_compiler_static= 7889fi 7890 7891 7892 7893 7894 7895 7896 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7898$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7899if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 lt_cv_prog_compiler_c_o=no 7903 $RM -r conftest 2>/dev/null 7904 mkdir conftest 7905 cd conftest 7906 mkdir out 7907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7908 7909 lt_compiler_flag="-o out/conftest2.$ac_objext" 7910 # Insert the option either (1) after the last *FLAGS variable, or 7911 # (2) before a word containing "conftest.", or (3) at the end. 7912 # Note that $ac_compile itself does not contain backslashes and begins 7913 # with a dollar sign (not a hyphen), so the echo should work correctly. 7914 lt_compile=`echo "$ac_compile" | $SED \ 7915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7917 -e 's:$: $lt_compiler_flag:'` 7918 (eval echo "\"\$as_me:7918: $lt_compile\"" >&5) 7919 (eval "$lt_compile" 2>out/conftest.err) 7920 ac_status=$? 7921 cat out/conftest.err >&5 7922 echo "$as_me:7922: \$? = $ac_status" >&5 7923 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7924 then 7925 # The compiler can only warn and ignore the option if not recognized 7926 # So say no if there are warnings 7927 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7930 lt_cv_prog_compiler_c_o=yes 7931 fi 7932 fi 7933 chmod u+w . 2>&5 7934 $RM conftest* 7935 # SGI C++ compiler will create directory out/ii_files/ for 7936 # template instantiation 7937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7938 $RM out/* && rmdir out 7939 cd .. 7940 $RM -r conftest 7941 $RM conftest* 7942 7943fi 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7945$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7946 7947 7948 7949 7950 7951 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7953$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7954if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7955 $as_echo_n "(cached) " >&6 7956else 7957 lt_cv_prog_compiler_c_o=no 7958 $RM -r conftest 2>/dev/null 7959 mkdir conftest 7960 cd conftest 7961 mkdir out 7962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7963 7964 lt_compiler_flag="-o out/conftest2.$ac_objext" 7965 # Insert the option either (1) after the last *FLAGS variable, or 7966 # (2) before a word containing "conftest.", or (3) at the end. 7967 # Note that $ac_compile itself does not contain backslashes and begins 7968 # with a dollar sign (not a hyphen), so the echo should work correctly. 7969 lt_compile=`echo "$ac_compile" | $SED \ 7970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7972 -e 's:$: $lt_compiler_flag:'` 7973 (eval echo "\"\$as_me:7973: $lt_compile\"" >&5) 7974 (eval "$lt_compile" 2>out/conftest.err) 7975 ac_status=$? 7976 cat out/conftest.err >&5 7977 echo "$as_me:7977: \$? = $ac_status" >&5 7978 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7979 then 7980 # The compiler can only warn and ignore the option if not recognized 7981 # So say no if there are warnings 7982 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7985 lt_cv_prog_compiler_c_o=yes 7986 fi 7987 fi 7988 chmod u+w . 2>&5 7989 $RM conftest* 7990 # SGI C++ compiler will create directory out/ii_files/ for 7991 # template instantiation 7992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7993 $RM out/* && rmdir out 7994 cd .. 7995 $RM -r conftest 7996 $RM conftest* 7997 7998fi 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8000$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8001 8002 8003 8004 8005hard_links="nottested" 8006if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8007 # do not overwrite the value of need_locks provided by the user 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8009$as_echo_n "checking if we can lock with hard links... " >&6; } 8010 hard_links=yes 8011 $RM conftest* 8012 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8013 touch conftest.a 8014 ln conftest.a conftest.b 2>&5 || hard_links=no 8015 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8017$as_echo "$hard_links" >&6; } 8018 if test "$hard_links" = no; then 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8020$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8021 need_locks=warn 8022 fi 8023else 8024 need_locks=no 8025fi 8026 8027 8028 8029 8030 8031 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8033$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8034 8035 runpath_var= 8036 allow_undefined_flag= 8037 always_export_symbols=no 8038 archive_cmds= 8039 archive_expsym_cmds= 8040 compiler_needs_object=no 8041 enable_shared_with_static_runtimes=no 8042 export_dynamic_flag_spec= 8043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8044 hardcode_automatic=no 8045 hardcode_direct=no 8046 hardcode_direct_absolute=no 8047 hardcode_libdir_flag_spec= 8048 hardcode_libdir_flag_spec_ld= 8049 hardcode_libdir_separator= 8050 hardcode_minus_L=no 8051 hardcode_shlibpath_var=unsupported 8052 inherit_rpath=no 8053 link_all_deplibs=unknown 8054 module_cmds= 8055 module_expsym_cmds= 8056 old_archive_from_new_cmds= 8057 old_archive_from_expsyms_cmds= 8058 thread_safe_flag_spec= 8059 whole_archive_flag_spec= 8060 # include_expsyms should be a list of space-separated symbols to be *always* 8061 # included in the symbol list 8062 include_expsyms= 8063 # exclude_expsyms can be an extended regexp of symbols to exclude 8064 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8065 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8066 # as well as any symbol that contains `d'. 8067 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8069 # platforms (ab)use it in PIC code, but their linkers get confused if 8070 # the symbol is explicitly referenced. Since portable code cannot 8071 # rely on this symbol name, it's probably fine to never include it in 8072 # preloaded symbol tables. 8073 # Exclude shared library initialization/finalization symbols. 8074 extract_expsyms_cmds= 8075 8076 case $host_os in 8077 cygwin* | mingw* | pw32* | cegcc*) 8078 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8079 # When not using gcc, we currently assume that we are using 8080 # Microsoft Visual C++. 8081 if test "$GCC" != yes; then 8082 with_gnu_ld=no 8083 fi 8084 ;; 8085 interix*) 8086 # we just hope/assume this is gcc and not c89 (= MSVC++) 8087 with_gnu_ld=yes 8088 ;; 8089 openbsd*) 8090 with_gnu_ld=no 8091 ;; 8092 linux* | k*bsd*-gnu) 8093 link_all_deplibs=no 8094 ;; 8095 esac 8096 8097 ld_shlibs=yes 8098 if test "$with_gnu_ld" = yes; then 8099 # If archive_cmds runs LD, not CC, wlarc should be empty 8100 wlarc='${wl}' 8101 8102 # Set some defaults for GNU ld with shared library support. These 8103 # are reset later if shared libraries are not supported. Putting them 8104 # here allows them to be overridden if necessary. 8105 runpath_var=LD_RUN_PATH 8106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8107 export_dynamic_flag_spec='${wl}--export-dynamic' 8108 # ancient GNU ld didn't support --whole-archive et. al. 8109 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8110 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8111 else 8112 whole_archive_flag_spec= 8113 fi 8114 supports_anon_versioning=no 8115 case `$LD -v 2>&1` in 8116 *GNU\ gold*) supports_anon_versioning=yes ;; 8117 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8118 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8119 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8120 *\ 2.11.*) ;; # other 2.11 versions 8121 *) supports_anon_versioning=yes ;; 8122 esac 8123 8124 # See if GNU ld supports shared libraries. 8125 case $host_os in 8126 aix[3-9]*) 8127 # On AIX/PPC, the GNU linker is very broken 8128 if test "$host_cpu" != ia64; then 8129 ld_shlibs=no 8130 cat <<_LT_EOF 1>&2 8131 8132*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8133*** to be unable to reliably create shared libraries on AIX. 8134*** Therefore, libtool is disabling shared libraries support. If you 8135*** really care for shared libraries, you may want to modify your PATH 8136*** so that a non-GNU linker is found, and then restart. 8137 8138_LT_EOF 8139 fi 8140 ;; 8141 8142 amigaos*) 8143 case $host_cpu in 8144 powerpc) 8145 # see comment about AmigaOS4 .so support 8146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8147 archive_expsym_cmds='' 8148 ;; 8149 m68k) 8150 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)' 8151 hardcode_libdir_flag_spec='-L$libdir' 8152 hardcode_minus_L=yes 8153 ;; 8154 esac 8155 ;; 8156 8157 beos*) 8158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8159 allow_undefined_flag=unsupported 8160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8161 # support --undefined. This deserves some investigation. FIXME 8162 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8163 else 8164 ld_shlibs=no 8165 fi 8166 ;; 8167 8168 cygwin* | mingw* | pw32* | cegcc*) 8169 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8170 # as there is no search path for DLLs. 8171 hardcode_libdir_flag_spec='-L$libdir' 8172 allow_undefined_flag=unsupported 8173 always_export_symbols=no 8174 enable_shared_with_static_runtimes=yes 8175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8176 8177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8179 # If the export-symbols file already is a .def file (1st line 8180 # is EXPORTS), use it as is; otherwise, prepend... 8181 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8182 cp $export_symbols $output_objdir/$soname.def; 8183 else 8184 echo EXPORTS > $output_objdir/$soname.def; 8185 cat $export_symbols >> $output_objdir/$soname.def; 8186 fi~ 8187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8188 else 8189 ld_shlibs=no 8190 fi 8191 ;; 8192 8193 interix[3-9]*) 8194 hardcode_direct=no 8195 hardcode_shlibpath_var=no 8196 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8197 export_dynamic_flag_spec='${wl}-E' 8198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8199 # Instead, shared libraries are loaded at an image base (0x10000000 by 8200 # default) and relocated if they conflict, which is a slow very memory 8201 # consuming and fragmenting process. To avoid this, we pick a random, 8202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8203 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8205 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' 8206 ;; 8207 8208 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8209 tmp_diet=no 8210 if test "$host_os" = linux-dietlibc; then 8211 case $cc_basename in 8212 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8213 esac 8214 fi 8215 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8216 && test "$tmp_diet" = no 8217 then 8218 tmp_addflag= 8219 tmp_sharedflag='-shared' 8220 case $cc_basename,$host_cpu in 8221 pgcc*) # Portland Group C compiler 8222 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' 8223 tmp_addflag=' $pic_flag' 8224 ;; 8225 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8226 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' 8227 tmp_addflag=' $pic_flag -Mnomain' ;; 8228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8229 tmp_addflag=' -i_dynamic' ;; 8230 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8231 tmp_addflag=' -i_dynamic -nofor_main' ;; 8232 ifc* | ifort*) # Intel Fortran compiler 8233 tmp_addflag=' -nofor_main' ;; 8234 lf95*) # Lahey Fortran 8.1 8235 whole_archive_flag_spec= 8236 tmp_sharedflag='--shared' ;; 8237 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8238 tmp_sharedflag='-qmkshrobj' 8239 tmp_addflag= ;; 8240 esac 8241 case `$CC -V 2>&1 | sed 5q` in 8242 *Sun\ C*) # Sun C 5.9 8243 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' 8244 compiler_needs_object=yes 8245 tmp_sharedflag='-G' ;; 8246 *Sun\ F*) # Sun Fortran 8.3 8247 tmp_sharedflag='-G' ;; 8248 esac 8249 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8250 8251 if test "x$supports_anon_versioning" = xyes; then 8252 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8253 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8254 echo "local: *; };" >> $output_objdir/$libname.ver~ 8255 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8256 fi 8257 8258 case $cc_basename in 8259 xlf*) 8260 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8261 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8262 hardcode_libdir_flag_spec= 8263 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8264 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8265 if test "x$supports_anon_versioning" = xyes; then 8266 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8268 echo "local: *; };" >> $output_objdir/$libname.ver~ 8269 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8270 fi 8271 ;; 8272 esac 8273 else 8274 ld_shlibs=no 8275 fi 8276 ;; 8277 8278 netbsd* | netbsdelf*-gnu) 8279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8280 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8281 wlarc= 8282 else 8283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8285 fi 8286 ;; 8287 8288 solaris*) 8289 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8290 ld_shlibs=no 8291 cat <<_LT_EOF 1>&2 8292 8293*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8294*** create shared libraries on Solaris systems. Therefore, libtool 8295*** is disabling shared libraries support. We urge you to upgrade GNU 8296*** binutils to release 2.9.1 or newer. Another option is to modify 8297*** your PATH or compiler configuration so that the native linker is 8298*** used, and then restart. 8299 8300_LT_EOF 8301 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8304 else 8305 ld_shlibs=no 8306 fi 8307 ;; 8308 8309 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8310 case `$LD -v 2>&1` in 8311 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8312 ld_shlibs=no 8313 cat <<_LT_EOF 1>&2 8314 8315*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8316*** reliably create shared libraries on SCO systems. Therefore, libtool 8317*** is disabling shared libraries support. We urge you to upgrade GNU 8318*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8319*** your PATH or compiler configuration so that the native linker is 8320*** used, and then restart. 8321 8322_LT_EOF 8323 ;; 8324 *) 8325 # For security reasons, it is highly recommended that you always 8326 # use absolute paths for naming shared libraries, and exclude the 8327 # DT_RUNPATH tag from executables and libraries. But doing so 8328 # requires that you compile everything twice, which is a pain. 8329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8330 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8333 else 8334 ld_shlibs=no 8335 fi 8336 ;; 8337 esac 8338 ;; 8339 8340 sunos4*) 8341 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8342 wlarc= 8343 hardcode_direct=yes 8344 hardcode_shlibpath_var=no 8345 ;; 8346 8347 *) 8348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8351 else 8352 ld_shlibs=no 8353 fi 8354 ;; 8355 esac 8356 8357 if test "$ld_shlibs" = no; then 8358 runpath_var= 8359 hardcode_libdir_flag_spec= 8360 export_dynamic_flag_spec= 8361 whole_archive_flag_spec= 8362 fi 8363 else 8364 # PORTME fill in a description of your system's linker (not GNU ld) 8365 case $host_os in 8366 aix3*) 8367 allow_undefined_flag=unsupported 8368 always_export_symbols=yes 8369 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' 8370 # Note: this linker hardcodes the directories in LIBPATH if there 8371 # are no directories specified by -L. 8372 hardcode_minus_L=yes 8373 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8374 # Neither direct hardcoding nor static linking is supported with a 8375 # broken collect2. 8376 hardcode_direct=unsupported 8377 fi 8378 ;; 8379 8380 aix[4-9]*) 8381 if test "$host_cpu" = ia64; then 8382 # On IA64, the linker does run time linking by default, so we don't 8383 # have to do anything special. 8384 aix_use_runtimelinking=no 8385 exp_sym_flag='-Bexport' 8386 no_entry_flag="" 8387 else 8388 # If we're using GNU nm, then we don't want the "-C" option. 8389 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8391 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' 8392 else 8393 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' 8394 fi 8395 aix_use_runtimelinking=no 8396 8397 # Test if we are trying to use run time linking or normal 8398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8399 # need to do runtime linking. 8400 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8401 for ld_flag in $LDFLAGS; do 8402 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8403 aix_use_runtimelinking=yes 8404 break 8405 fi 8406 done 8407 ;; 8408 esac 8409 8410 exp_sym_flag='-bexport' 8411 no_entry_flag='-bnoentry' 8412 fi 8413 8414 # When large executables or shared objects are built, AIX ld can 8415 # have problems creating the table of contents. If linking a library 8416 # or program results in "error TOC overflow" add -mminimal-toc to 8417 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8418 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8419 8420 archive_cmds='' 8421 hardcode_direct=yes 8422 hardcode_direct_absolute=yes 8423 hardcode_libdir_separator=':' 8424 link_all_deplibs=yes 8425 file_list_spec='${wl}-f,' 8426 8427 if test "$GCC" = yes; then 8428 case $host_os in aix4.[012]|aix4.[012].*) 8429 # We only want to do this on AIX 4.2 and lower, the check 8430 # below for broken collect2 doesn't work under 4.3+ 8431 collect2name=`${CC} -print-prog-name=collect2` 8432 if test -f "$collect2name" && 8433 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8434 then 8435 # We have reworked collect2 8436 : 8437 else 8438 # We have old collect2 8439 hardcode_direct=unsupported 8440 # It fails to find uninstalled libraries when the uninstalled 8441 # path is not listed in the libpath. Setting hardcode_minus_L 8442 # to unsupported forces relinking 8443 hardcode_minus_L=yes 8444 hardcode_libdir_flag_spec='-L$libdir' 8445 hardcode_libdir_separator= 8446 fi 8447 ;; 8448 esac 8449 shared_flag='-shared' 8450 if test "$aix_use_runtimelinking" = yes; then 8451 shared_flag="$shared_flag "'${wl}-G' 8452 fi 8453 link_all_deplibs=no 8454 else 8455 # not using gcc 8456 if test "$host_cpu" = ia64; then 8457 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8458 # chokes on -Wl,-G. The following line is correct: 8459 shared_flag='-G' 8460 else 8461 if test "$aix_use_runtimelinking" = yes; then 8462 shared_flag='${wl}-G' 8463 else 8464 shared_flag='${wl}-bM:SRE' 8465 fi 8466 fi 8467 fi 8468 8469 export_dynamic_flag_spec='${wl}-bexpall' 8470 # It seems that -bexpall does not export symbols beginning with 8471 # underscore (_), so it is better to generate a list of symbols to export. 8472 always_export_symbols=yes 8473 if test "$aix_use_runtimelinking" = yes; then 8474 # Warning - without using the other runtime loading flags (-brtl), 8475 # -berok will link without error, but may produce a broken library. 8476 allow_undefined_flag='-berok' 8477 # Determine the default libpath from the value encoded in an 8478 # empty executable. 8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480/* end confdefs.h. */ 8481 8482int 8483main () 8484{ 8485 8486 ; 8487 return 0; 8488} 8489_ACEOF 8490if ac_fn_c_try_link "$LINENO"; then : 8491 8492lt_aix_libpath_sed=' 8493 /Import File Strings/,/^$/ { 8494 /^0/ { 8495 s/^0 *\(.*\)$/\1/ 8496 p 8497 } 8498 }' 8499aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8500# Check for a 64-bit object if we didn't find anything. 8501if test -z "$aix_libpath"; then 8502 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8503fi 8504fi 8505rm -f core conftest.err conftest.$ac_objext \ 8506 conftest$ac_exeext conftest.$ac_ext 8507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8508 8509 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8510 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" 8511 else 8512 if test "$host_cpu" = ia64; then 8513 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8514 allow_undefined_flag="-z nodefs" 8515 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" 8516 else 8517 # Determine the default libpath from the value encoded in an 8518 # empty executable. 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521 8522int 8523main () 8524{ 8525 8526 ; 8527 return 0; 8528} 8529_ACEOF 8530if ac_fn_c_try_link "$LINENO"; then : 8531 8532lt_aix_libpath_sed=' 8533 /Import File Strings/,/^$/ { 8534 /^0/ { 8535 s/^0 *\(.*\)$/\1/ 8536 p 8537 } 8538 }' 8539aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8540# Check for a 64-bit object if we didn't find anything. 8541if test -z "$aix_libpath"; then 8542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8543fi 8544fi 8545rm -f core conftest.err conftest.$ac_objext \ 8546 conftest$ac_exeext conftest.$ac_ext 8547if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8548 8549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8550 # Warning - without using the other run time loading flags, 8551 # -berok will link without error, but may produce a broken library. 8552 no_undefined_flag=' ${wl}-bernotok' 8553 allow_undefined_flag=' ${wl}-berok' 8554 # Exported symbols can be pulled into shared objects from archives 8555 whole_archive_flag_spec='$convenience' 8556 archive_cmds_need_lc=yes 8557 # This is similar to how AIX traditionally builds its shared libraries. 8558 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' 8559 fi 8560 fi 8561 ;; 8562 8563 amigaos*) 8564 case $host_cpu in 8565 powerpc) 8566 # see comment about AmigaOS4 .so support 8567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8568 archive_expsym_cmds='' 8569 ;; 8570 m68k) 8571 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)' 8572 hardcode_libdir_flag_spec='-L$libdir' 8573 hardcode_minus_L=yes 8574 ;; 8575 esac 8576 ;; 8577 8578 bsdi[45]*) 8579 export_dynamic_flag_spec=-rdynamic 8580 ;; 8581 8582 cygwin* | mingw* | pw32* | cegcc*) 8583 # When not using gcc, we currently assume that we are using 8584 # Microsoft Visual C++. 8585 # hardcode_libdir_flag_spec is actually meaningless, as there is 8586 # no search path for DLLs. 8587 hardcode_libdir_flag_spec=' ' 8588 allow_undefined_flag=unsupported 8589 # Tell ltmain to make .lib files, not .a files. 8590 libext=lib 8591 # Tell ltmain to make .dll files, not .so files. 8592 shrext_cmds=".dll" 8593 # FIXME: Setting linknames here is a bad hack. 8594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8595 # The linker will automatically build a .lib file if we build a DLL. 8596 old_archive_from_new_cmds='true' 8597 # FIXME: Should let the user specify the lib program. 8598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8599 fix_srcfile_path='`cygpath -w "$srcfile"`' 8600 enable_shared_with_static_runtimes=yes 8601 ;; 8602 8603 darwin* | rhapsody*) 8604 8605 8606 archive_cmds_need_lc=no 8607 hardcode_direct=no 8608 hardcode_automatic=yes 8609 hardcode_shlibpath_var=unsupported 8610 whole_archive_flag_spec='' 8611 link_all_deplibs=yes 8612 allow_undefined_flag="$_lt_dar_allow_undefined" 8613 case $cc_basename in 8614 ifort*) _lt_dar_can_shared=yes ;; 8615 *) _lt_dar_can_shared=$GCC ;; 8616 esac 8617 if test "$_lt_dar_can_shared" = "yes"; then 8618 output_verbose_link_cmd=echo 8619 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8620 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8621 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}" 8622 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}" 8623 8624 else 8625 ld_shlibs=no 8626 fi 8627 8628 ;; 8629 8630 dgux*) 8631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8632 hardcode_libdir_flag_spec='-L$libdir' 8633 hardcode_shlibpath_var=no 8634 ;; 8635 8636 freebsd1*) 8637 ld_shlibs=no 8638 ;; 8639 8640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8641 # support. Future versions do this automatically, but an explicit c++rt0.o 8642 # does not break anything, and helps significantly (at the cost of a little 8643 # extra space). 8644 freebsd2.2*) 8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8646 hardcode_libdir_flag_spec='-R$libdir' 8647 hardcode_direct=yes 8648 hardcode_shlibpath_var=no 8649 ;; 8650 8651 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8652 freebsd2*) 8653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8654 hardcode_direct=yes 8655 hardcode_minus_L=yes 8656 hardcode_shlibpath_var=no 8657 ;; 8658 8659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8660 freebsd* | dragonfly*) 8661 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8662 hardcode_libdir_flag_spec='-R$libdir' 8663 hardcode_direct=yes 8664 hardcode_shlibpath_var=no 8665 ;; 8666 8667 hpux9*) 8668 if test "$GCC" = yes; then 8669 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' 8670 else 8671 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' 8672 fi 8673 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8674 hardcode_libdir_separator=: 8675 hardcode_direct=yes 8676 8677 # hardcode_minus_L: Not really in the search PATH, 8678 # but as the default location of the library. 8679 hardcode_minus_L=yes 8680 export_dynamic_flag_spec='${wl}-E' 8681 ;; 8682 8683 hpux10*) 8684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8686 else 8687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8688 fi 8689 if test "$with_gnu_ld" = no; then 8690 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8691 hardcode_libdir_flag_spec_ld='+b $libdir' 8692 hardcode_libdir_separator=: 8693 hardcode_direct=yes 8694 hardcode_direct_absolute=yes 8695 export_dynamic_flag_spec='${wl}-E' 8696 # hardcode_minus_L: Not really in the search PATH, 8697 # but as the default location of the library. 8698 hardcode_minus_L=yes 8699 fi 8700 ;; 8701 8702 hpux11*) 8703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8704 case $host_cpu in 8705 hppa*64*) 8706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8707 ;; 8708 ia64*) 8709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8710 ;; 8711 *) 8712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8713 ;; 8714 esac 8715 else 8716 case $host_cpu in 8717 hppa*64*) 8718 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8719 ;; 8720 ia64*) 8721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8722 ;; 8723 *) 8724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8725 ;; 8726 esac 8727 fi 8728 if test "$with_gnu_ld" = no; then 8729 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8730 hardcode_libdir_separator=: 8731 8732 case $host_cpu in 8733 hppa*64*|ia64*) 8734 hardcode_direct=no 8735 hardcode_shlibpath_var=no 8736 ;; 8737 *) 8738 hardcode_direct=yes 8739 hardcode_direct_absolute=yes 8740 export_dynamic_flag_spec='${wl}-E' 8741 8742 # hardcode_minus_L: Not really in the search PATH, 8743 # but as the default location of the library. 8744 hardcode_minus_L=yes 8745 ;; 8746 esac 8747 fi 8748 ;; 8749 8750 irix5* | irix6* | nonstopux*) 8751 if test "$GCC" = yes; then 8752 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' 8753 # Try to use the -exported_symbol ld option, if it does not 8754 # work, assume that -exports_file does not work either and 8755 # implicitly export all symbols. 8756 save_LDFLAGS="$LDFLAGS" 8757 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8759/* end confdefs.h. */ 8760int foo(void) {} 8761_ACEOF 8762if ac_fn_c_try_link "$LINENO"; then : 8763 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' 8764 8765fi 8766rm -f core conftest.err conftest.$ac_objext \ 8767 conftest$ac_exeext conftest.$ac_ext 8768 LDFLAGS="$save_LDFLAGS" 8769 else 8770 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' 8771 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' 8772 fi 8773 archive_cmds_need_lc='no' 8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8775 hardcode_libdir_separator=: 8776 inherit_rpath=yes 8777 link_all_deplibs=yes 8778 ;; 8779 8780 netbsd* | netbsdelf*-gnu) 8781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8783 else 8784 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8785 fi 8786 hardcode_libdir_flag_spec='-R$libdir' 8787 hardcode_direct=yes 8788 hardcode_shlibpath_var=no 8789 ;; 8790 8791 newsos6) 8792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8793 hardcode_direct=yes 8794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8795 hardcode_libdir_separator=: 8796 hardcode_shlibpath_var=no 8797 ;; 8798 8799 *nto* | *qnx*) 8800 ;; 8801 8802 openbsd*) 8803 if test -f /usr/libexec/ld.so; then 8804 hardcode_direct=yes 8805 hardcode_shlibpath_var=no 8806 hardcode_direct_absolute=yes 8807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8809 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8810 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8811 export_dynamic_flag_spec='${wl}-E' 8812 else 8813 case $host_os in 8814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8816 hardcode_libdir_flag_spec='-R$libdir' 8817 ;; 8818 *) 8819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8821 ;; 8822 esac 8823 fi 8824 else 8825 ld_shlibs=no 8826 fi 8827 ;; 8828 8829 os2*) 8830 hardcode_libdir_flag_spec='-L$libdir' 8831 hardcode_minus_L=yes 8832 allow_undefined_flag=unsupported 8833 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' 8834 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8835 ;; 8836 8837 osf3*) 8838 if test "$GCC" = yes; then 8839 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8840 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' 8841 else 8842 allow_undefined_flag=' -expect_unresolved \*' 8843 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' 8844 fi 8845 archive_cmds_need_lc='no' 8846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8847 hardcode_libdir_separator=: 8848 ;; 8849 8850 osf4* | osf5*) # as osf3* with the addition of -msym flag 8851 if test "$GCC" = yes; then 8852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8853 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' 8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8855 else 8856 allow_undefined_flag=' -expect_unresolved \*' 8857 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' 8858 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~ 8859 $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' 8860 8861 # Both c and cxx compiler support -rpath directly 8862 hardcode_libdir_flag_spec='-rpath $libdir' 8863 fi 8864 archive_cmds_need_lc='no' 8865 hardcode_libdir_separator=: 8866 ;; 8867 8868 solaris*) 8869 no_undefined_flag=' -z defs' 8870 if test "$GCC" = yes; then 8871 wlarc='${wl}' 8872 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8874 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8875 else 8876 case `$CC -V 2>&1` in 8877 *"Compilers 5.0"*) 8878 wlarc='' 8879 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8881 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8882 ;; 8883 *) 8884 wlarc='${wl}' 8885 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8887 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8888 ;; 8889 esac 8890 fi 8891 hardcode_libdir_flag_spec='-R$libdir' 8892 hardcode_shlibpath_var=no 8893 case $host_os in 8894 solaris2.[0-5] | solaris2.[0-5].*) ;; 8895 *) 8896 # The compiler driver will combine and reorder linker options, 8897 # but understands `-z linker_flag'. GCC discards it without `$wl', 8898 # but is careful enough not to reorder. 8899 # Supported since Solaris 2.6 (maybe 2.5.1?) 8900 if test "$GCC" = yes; then 8901 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8902 else 8903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8904 fi 8905 ;; 8906 esac 8907 link_all_deplibs=yes 8908 ;; 8909 8910 sunos4*) 8911 if test "x$host_vendor" = xsequent; then 8912 # Use $CC to link under sequent, because it throws in some extra .o 8913 # files that make .init and .fini sections work. 8914 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8915 else 8916 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8917 fi 8918 hardcode_libdir_flag_spec='-L$libdir' 8919 hardcode_direct=yes 8920 hardcode_minus_L=yes 8921 hardcode_shlibpath_var=no 8922 ;; 8923 8924 sysv4) 8925 case $host_vendor in 8926 sni) 8927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8928 hardcode_direct=yes # is this really true??? 8929 ;; 8930 siemens) 8931 ## LD is ld it makes a PLAMLIB 8932 ## CC just makes a GrossModule. 8933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8934 reload_cmds='$CC -r -o $output$reload_objs' 8935 hardcode_direct=no 8936 ;; 8937 motorola) 8938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8940 ;; 8941 esac 8942 runpath_var='LD_RUN_PATH' 8943 hardcode_shlibpath_var=no 8944 ;; 8945 8946 sysv4.3*) 8947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8948 hardcode_shlibpath_var=no 8949 export_dynamic_flag_spec='-Bexport' 8950 ;; 8951 8952 sysv4*MP*) 8953 if test -d /usr/nec; then 8954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8955 hardcode_shlibpath_var=no 8956 runpath_var=LD_RUN_PATH 8957 hardcode_runpath_var=yes 8958 ld_shlibs=yes 8959 fi 8960 ;; 8961 8962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8963 no_undefined_flag='${wl}-z,text' 8964 archive_cmds_need_lc=no 8965 hardcode_shlibpath_var=no 8966 runpath_var='LD_RUN_PATH' 8967 8968 if test "$GCC" = yes; then 8969 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8970 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8971 else 8972 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8973 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8974 fi 8975 ;; 8976 8977 sysv5* | sco3.2v5* | sco5v6*) 8978 # Note: We can NOT use -z defs as we might desire, because we do not 8979 # link with -lc, and that would cause any symbols used from libc to 8980 # always be unresolved, which means just about no library would 8981 # ever link correctly. If we're not using GNU ld we use -z text 8982 # though, which does catch some bad symbols but isn't as heavy-handed 8983 # as -z defs. 8984 no_undefined_flag='${wl}-z,text' 8985 allow_undefined_flag='${wl}-z,nodefs' 8986 archive_cmds_need_lc=no 8987 hardcode_shlibpath_var=no 8988 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8989 hardcode_libdir_separator=':' 8990 link_all_deplibs=yes 8991 export_dynamic_flag_spec='${wl}-Bexport' 8992 runpath_var='LD_RUN_PATH' 8993 8994 if test "$GCC" = yes; then 8995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8997 else 8998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9000 fi 9001 ;; 9002 9003 uts4*) 9004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9005 hardcode_libdir_flag_spec='-L$libdir' 9006 hardcode_shlibpath_var=no 9007 ;; 9008 9009 *) 9010 ld_shlibs=no 9011 ;; 9012 esac 9013 9014 if test x$host_vendor = xsni; then 9015 case $host in 9016 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9017 export_dynamic_flag_spec='${wl}-Blargedynsym' 9018 ;; 9019 esac 9020 fi 9021 fi 9022 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9024$as_echo "$ld_shlibs" >&6; } 9025test "$ld_shlibs" = no && can_build_shared=no 9026 9027with_gnu_ld=$with_gnu_ld 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043# 9044# Do we need to explicitly link libc? 9045# 9046case "x$archive_cmds_need_lc" in 9047x|xyes) 9048 # Assume -lc should be added 9049 archive_cmds_need_lc=yes 9050 9051 if test "$enable_shared" = yes && test "$GCC" = yes; then 9052 case $archive_cmds in 9053 *'~'*) 9054 # FIXME: we may have to deal with multi-command sequences. 9055 ;; 9056 '$CC '*) 9057 # Test whether the compiler implicitly links with -lc since on some 9058 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9059 # to ld, don't add -lc before -lgcc. 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9061$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9062 $RM conftest* 9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9064 9065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9066 (eval $ac_compile) 2>&5 9067 ac_status=$? 9068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9069 test $ac_status = 0; } 2>conftest.err; then 9070 soname=conftest 9071 lib=conftest 9072 libobjs=conftest.$ac_objext 9073 deplibs= 9074 wl=$lt_prog_compiler_wl 9075 pic_flag=$lt_prog_compiler_pic 9076 compiler_flags=-v 9077 linker_flags=-v 9078 verstring= 9079 output_objdir=. 9080 libname=conftest 9081 lt_save_allow_undefined_flag=$allow_undefined_flag 9082 allow_undefined_flag= 9083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9084 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9085 ac_status=$? 9086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9087 test $ac_status = 0; } 9088 then 9089 archive_cmds_need_lc=no 9090 else 9091 archive_cmds_need_lc=yes 9092 fi 9093 allow_undefined_flag=$lt_save_allow_undefined_flag 9094 else 9095 cat conftest.err 1>&5 9096 fi 9097 $RM conftest* 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9099$as_echo "$archive_cmds_need_lc" >&6; } 9100 ;; 9101 esac 9102 fi 9103 ;; 9104esac 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9263$as_echo_n "checking dynamic linker characteristics... " >&6; } 9264 9265if test "$GCC" = yes; then 9266 case $host_os in 9267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9268 *) lt_awk_arg="/^libraries:/" ;; 9269 esac 9270 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9271 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9272 # if the path contains ";" then we assume it to be the separator 9273 # otherwise default to the standard path separator (i.e. ":") - it is 9274 # assumed that no part of a normal pathname contains ";" but that should 9275 # okay in the real world where ";" in dirpaths is itself problematic. 9276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9277 else 9278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9279 fi 9280 # Ok, now we have the path, separated by spaces, we can step through it 9281 # and add multilib dir if necessary. 9282 lt_tmp_lt_search_path_spec= 9283 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9284 for lt_sys_path in $lt_search_path_spec; do 9285 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9287 else 9288 test -d "$lt_sys_path" && \ 9289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9290 fi 9291 done 9292 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9293BEGIN {RS=" "; FS="/|\n";} { 9294 lt_foo=""; 9295 lt_count=0; 9296 for (lt_i = NF; lt_i > 0; lt_i--) { 9297 if ($lt_i != "" && $lt_i != ".") { 9298 if ($lt_i == "..") { 9299 lt_count++; 9300 } else { 9301 if (lt_count == 0) { 9302 lt_foo="/" $lt_i lt_foo; 9303 } else { 9304 lt_count--; 9305 } 9306 } 9307 } 9308 } 9309 if (lt_foo != "") { lt_freq[lt_foo]++; } 9310 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9311}'` 9312 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9313else 9314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9315fi 9316library_names_spec= 9317libname_spec='lib$name' 9318soname_spec= 9319shrext_cmds=".so" 9320postinstall_cmds= 9321postuninstall_cmds= 9322finish_cmds= 9323finish_eval= 9324shlibpath_var= 9325shlibpath_overrides_runpath=unknown 9326version_type=none 9327dynamic_linker="$host_os ld.so" 9328sys_lib_dlsearch_path_spec="/lib /usr/lib" 9329need_lib_prefix=unknown 9330hardcode_into_libs=no 9331 9332# when you set need_version to no, make sure it does not cause -set_version 9333# flags to be left without arguments 9334need_version=unknown 9335 9336case $host_os in 9337aix3*) 9338 version_type=linux 9339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9340 shlibpath_var=LIBPATH 9341 9342 # AIX 3 has no versioning support, so we append a major version to the name. 9343 soname_spec='${libname}${release}${shared_ext}$major' 9344 ;; 9345 9346aix[4-9]*) 9347 version_type=linux 9348 need_lib_prefix=no 9349 need_version=no 9350 hardcode_into_libs=yes 9351 if test "$host_cpu" = ia64; then 9352 # AIX 5 supports IA64 9353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9354 shlibpath_var=LD_LIBRARY_PATH 9355 else 9356 # With GCC up to 2.95.x, collect2 would create an import file 9357 # for dependence libraries. The import file would start with 9358 # the line `#! .'. This would cause the generated library to 9359 # depend on `.', always an invalid library. This was fixed in 9360 # development snapshots of GCC prior to 3.0. 9361 case $host_os in 9362 aix4 | aix4.[01] | aix4.[01].*) 9363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9364 echo ' yes ' 9365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9366 : 9367 else 9368 can_build_shared=no 9369 fi 9370 ;; 9371 esac 9372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9373 # soname into executable. Probably we can add versioning support to 9374 # collect2, so additional links can be useful in future. 9375 if test "$aix_use_runtimelinking" = yes; then 9376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9377 # instead of lib<name>.a to let people know that these are not 9378 # typical AIX shared libraries. 9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9380 else 9381 # We preserve .a as extension for shared libraries through AIX4.2 9382 # and later when we are not doing run time linking. 9383 library_names_spec='${libname}${release}.a $libname.a' 9384 soname_spec='${libname}${release}${shared_ext}$major' 9385 fi 9386 shlibpath_var=LIBPATH 9387 fi 9388 ;; 9389 9390amigaos*) 9391 case $host_cpu in 9392 powerpc) 9393 # Since July 2007 AmigaOS4 officially supports .so libraries. 9394 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9396 ;; 9397 m68k) 9398 library_names_spec='$libname.ixlibrary $libname.a' 9399 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9400 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' 9401 ;; 9402 esac 9403 ;; 9404 9405beos*) 9406 library_names_spec='${libname}${shared_ext}' 9407 dynamic_linker="$host_os ld.so" 9408 shlibpath_var=LIBRARY_PATH 9409 ;; 9410 9411bsdi[45]*) 9412 version_type=linux 9413 need_version=no 9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9415 soname_spec='${libname}${release}${shared_ext}$major' 9416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9417 shlibpath_var=LD_LIBRARY_PATH 9418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9420 # the default ld.so.conf also contains /usr/contrib/lib and 9421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9422 # libtool to hard-code these into programs 9423 ;; 9424 9425cygwin* | mingw* | pw32* | cegcc*) 9426 version_type=windows 9427 shrext_cmds=".dll" 9428 need_version=no 9429 need_lib_prefix=no 9430 9431 case $GCC,$host_os in 9432 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9433 library_names_spec='$libname.dll.a' 9434 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9435 postinstall_cmds='base_file=`basename \${file}`~ 9436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9437 dldir=$destdir/`dirname \$dlpath`~ 9438 test -d \$dldir || mkdir -p \$dldir~ 9439 $install_prog $dir/$dlname \$dldir/$dlname~ 9440 chmod a+x \$dldir/$dlname~ 9441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9443 fi' 9444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9445 dlpath=$dir/\$dldll~ 9446 $RM \$dlpath' 9447 shlibpath_overrides_runpath=yes 9448 9449 case $host_os in 9450 cygwin*) 9451 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9453 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9454 ;; 9455 mingw* | cegcc*) 9456 # MinGW DLLs use traditional 'lib' prefix 9457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9458 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9459 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9460 # It is most probably a Windows format PATH printed by 9461 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9462 # path with ; separators, and with drive letters. We can handle the 9463 # drive letters (cygwin fileutils understands them), so leave them, 9464 # especially as we might pass files found there to a mingw objdump, 9465 # which wouldn't understand a cygwinified path. Ahh. 9466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9467 else 9468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9469 fi 9470 ;; 9471 pw32*) 9472 # pw32 DLLs use 'pw' prefix rather than 'lib' 9473 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9474 ;; 9475 esac 9476 ;; 9477 9478 *) 9479 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9480 ;; 9481 esac 9482 dynamic_linker='Win32 ld.exe' 9483 # FIXME: first we should search . and the directory the executable is in 9484 shlibpath_var=PATH 9485 ;; 9486 9487darwin* | rhapsody*) 9488 dynamic_linker="$host_os dyld" 9489 version_type=darwin 9490 need_lib_prefix=no 9491 need_version=no 9492 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9493 soname_spec='${libname}${release}${major}$shared_ext' 9494 shlibpath_overrides_runpath=yes 9495 shlibpath_var=DYLD_LIBRARY_PATH 9496 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9497 9498 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9499 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9500 ;; 9501 9502dgux*) 9503 version_type=linux 9504 need_lib_prefix=no 9505 need_version=no 9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9507 soname_spec='${libname}${release}${shared_ext}$major' 9508 shlibpath_var=LD_LIBRARY_PATH 9509 ;; 9510 9511freebsd1*) 9512 dynamic_linker=no 9513 ;; 9514 9515freebsd* | dragonfly*) 9516 # DragonFly does not have aout. When/if they implement a new 9517 # versioning mechanism, adjust this. 9518 if test -x /usr/bin/objformat; then 9519 objformat=`/usr/bin/objformat` 9520 else 9521 case $host_os in 9522 freebsd[123]*) objformat=aout ;; 9523 *) objformat=elf ;; 9524 esac 9525 fi 9526 version_type=freebsd-$objformat 9527 case $version_type in 9528 freebsd-elf*) 9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9530 need_version=no 9531 need_lib_prefix=no 9532 ;; 9533 freebsd-*) 9534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9535 need_version=yes 9536 ;; 9537 esac 9538 shlibpath_var=LD_LIBRARY_PATH 9539 case $host_os in 9540 freebsd2*) 9541 shlibpath_overrides_runpath=yes 9542 ;; 9543 freebsd3.[01]* | freebsdelf3.[01]*) 9544 shlibpath_overrides_runpath=yes 9545 hardcode_into_libs=yes 9546 ;; 9547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9549 shlibpath_overrides_runpath=no 9550 hardcode_into_libs=yes 9551 ;; 9552 *) # from 4.6 on, and DragonFly 9553 shlibpath_overrides_runpath=yes 9554 hardcode_into_libs=yes 9555 ;; 9556 esac 9557 ;; 9558 9559gnu*) 9560 version_type=linux 9561 need_lib_prefix=no 9562 need_version=no 9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9564 soname_spec='${libname}${release}${shared_ext}$major' 9565 shlibpath_var=LD_LIBRARY_PATH 9566 hardcode_into_libs=yes 9567 ;; 9568 9569hpux9* | hpux10* | hpux11*) 9570 # Give a soname corresponding to the major version so that dld.sl refuses to 9571 # link against other versions. 9572 version_type=sunos 9573 need_lib_prefix=no 9574 need_version=no 9575 case $host_cpu in 9576 ia64*) 9577 shrext_cmds='.so' 9578 hardcode_into_libs=yes 9579 dynamic_linker="$host_os dld.so" 9580 shlibpath_var=LD_LIBRARY_PATH 9581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9583 soname_spec='${libname}${release}${shared_ext}$major' 9584 if test "X$HPUX_IA64_MODE" = X32; then 9585 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9586 else 9587 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9588 fi 9589 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9590 ;; 9591 hppa*64*) 9592 shrext_cmds='.sl' 9593 hardcode_into_libs=yes 9594 dynamic_linker="$host_os dld.sl" 9595 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9598 soname_spec='${libname}${release}${shared_ext}$major' 9599 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9600 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9601 ;; 9602 *) 9603 shrext_cmds='.sl' 9604 dynamic_linker="$host_os dld.sl" 9605 shlibpath_var=SHLIB_PATH 9606 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9608 soname_spec='${libname}${release}${shared_ext}$major' 9609 ;; 9610 esac 9611 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9612 postinstall_cmds='chmod 555 $lib' 9613 ;; 9614 9615interix[3-9]*) 9616 version_type=linux 9617 need_lib_prefix=no 9618 need_version=no 9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9620 soname_spec='${libname}${release}${shared_ext}$major' 9621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9622 shlibpath_var=LD_LIBRARY_PATH 9623 shlibpath_overrides_runpath=no 9624 hardcode_into_libs=yes 9625 ;; 9626 9627irix5* | irix6* | nonstopux*) 9628 case $host_os in 9629 nonstopux*) version_type=nonstopux ;; 9630 *) 9631 if test "$lt_cv_prog_gnu_ld" = yes; then 9632 version_type=linux 9633 else 9634 version_type=irix 9635 fi ;; 9636 esac 9637 need_lib_prefix=no 9638 need_version=no 9639 soname_spec='${libname}${release}${shared_ext}$major' 9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9641 case $host_os in 9642 irix5* | nonstopux*) 9643 libsuff= shlibsuff= 9644 ;; 9645 *) 9646 case $LD in # libtool.m4 will add one of these switches to LD 9647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9648 libsuff= shlibsuff= libmagic=32-bit;; 9649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9650 libsuff=32 shlibsuff=N32 libmagic=N32;; 9651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9652 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9653 *) libsuff= shlibsuff= libmagic=never-match;; 9654 esac 9655 ;; 9656 esac 9657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9658 shlibpath_overrides_runpath=no 9659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9661 hardcode_into_libs=yes 9662 ;; 9663 9664# No shared lib support for Linux oldld, aout, or coff. 9665linux*oldld* | linux*aout* | linux*coff*) 9666 dynamic_linker=no 9667 ;; 9668 9669# This must be Linux ELF. 9670linux* | k*bsd*-gnu | kopensolaris*-gnu) 9671 version_type=linux 9672 need_lib_prefix=no 9673 need_version=no 9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9675 soname_spec='${libname}${release}${shared_ext}$major' 9676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9677 shlibpath_var=LD_LIBRARY_PATH 9678 shlibpath_overrides_runpath=no 9679 # Some binutils ld are patched to set DT_RUNPATH 9680 save_LDFLAGS=$LDFLAGS 9681 save_libdir=$libdir 9682 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9683 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9685/* end confdefs.h. */ 9686 9687int 9688main () 9689{ 9690 9691 ; 9692 return 0; 9693} 9694_ACEOF 9695if ac_fn_c_try_link "$LINENO"; then : 9696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9697 shlibpath_overrides_runpath=yes 9698fi 9699fi 9700rm -f core conftest.err conftest.$ac_objext \ 9701 conftest$ac_exeext conftest.$ac_ext 9702 LDFLAGS=$save_LDFLAGS 9703 libdir=$save_libdir 9704 9705 # This implies no fast_install, which is unacceptable. 9706 # Some rework will be needed to allow for fast_install 9707 # before this can be enabled. 9708 hardcode_into_libs=yes 9709 9710 # Append ld.so.conf contents to the search path 9711 if test -f /etc/ld.so.conf; then 9712 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' ' '` 9713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9714 fi 9715 9716 # We used to test for /lib/ld.so.1 and disable shared libraries on 9717 # powerpc, because MkLinux only supported shared libraries with the 9718 # GNU dynamic linker. Since this was broken with cross compilers, 9719 # most powerpc-linux boxes support dynamic linking these days and 9720 # people can always --disable-shared, the test was removed, and we 9721 # assume the GNU/Linux dynamic linker is in use. 9722 dynamic_linker='GNU/Linux ld.so' 9723 ;; 9724 9725netbsdelf*-gnu) 9726 version_type=linux 9727 need_lib_prefix=no 9728 need_version=no 9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9730 soname_spec='${libname}${release}${shared_ext}$major' 9731 shlibpath_var=LD_LIBRARY_PATH 9732 shlibpath_overrides_runpath=no 9733 hardcode_into_libs=yes 9734 dynamic_linker='NetBSD ld.elf_so' 9735 ;; 9736 9737netbsd*) 9738 version_type=sunos 9739 need_lib_prefix=no 9740 need_version=no 9741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9744 dynamic_linker='NetBSD (a.out) ld.so' 9745 else 9746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9747 soname_spec='${libname}${release}${shared_ext}$major' 9748 dynamic_linker='NetBSD ld.elf_so' 9749 fi 9750 shlibpath_var=LD_LIBRARY_PATH 9751 shlibpath_overrides_runpath=yes 9752 hardcode_into_libs=yes 9753 ;; 9754 9755newsos6) 9756 version_type=linux 9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9758 shlibpath_var=LD_LIBRARY_PATH 9759 shlibpath_overrides_runpath=yes 9760 ;; 9761 9762*nto* | *qnx*) 9763 version_type=qnx 9764 need_lib_prefix=no 9765 need_version=no 9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9767 soname_spec='${libname}${release}${shared_ext}$major' 9768 shlibpath_var=LD_LIBRARY_PATH 9769 shlibpath_overrides_runpath=no 9770 hardcode_into_libs=yes 9771 dynamic_linker='ldqnx.so' 9772 ;; 9773 9774openbsd*) 9775 version_type=sunos 9776 sys_lib_dlsearch_path_spec="/usr/lib" 9777 need_lib_prefix=no 9778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9779 case $host_os in 9780 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9781 *) need_version=no ;; 9782 esac 9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9785 shlibpath_var=LD_LIBRARY_PATH 9786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9787 case $host_os in 9788 openbsd2.[89] | openbsd2.[89].*) 9789 shlibpath_overrides_runpath=no 9790 ;; 9791 *) 9792 shlibpath_overrides_runpath=yes 9793 ;; 9794 esac 9795 else 9796 shlibpath_overrides_runpath=yes 9797 fi 9798 ;; 9799 9800os2*) 9801 libname_spec='$name' 9802 shrext_cmds=".dll" 9803 need_lib_prefix=no 9804 library_names_spec='$libname${shared_ext} $libname.a' 9805 dynamic_linker='OS/2 ld.exe' 9806 shlibpath_var=LIBPATH 9807 ;; 9808 9809osf3* | osf4* | osf5*) 9810 version_type=osf 9811 need_lib_prefix=no 9812 need_version=no 9813 soname_spec='${libname}${release}${shared_ext}$major' 9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9815 shlibpath_var=LD_LIBRARY_PATH 9816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9818 ;; 9819 9820rdos*) 9821 dynamic_linker=no 9822 ;; 9823 9824solaris*) 9825 version_type=linux 9826 need_lib_prefix=no 9827 need_version=no 9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9829 soname_spec='${libname}${release}${shared_ext}$major' 9830 shlibpath_var=LD_LIBRARY_PATH 9831 shlibpath_overrides_runpath=yes 9832 hardcode_into_libs=yes 9833 # ldd complains unless libraries are executable 9834 postinstall_cmds='chmod +x $lib' 9835 ;; 9836 9837sunos4*) 9838 version_type=sunos 9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9841 shlibpath_var=LD_LIBRARY_PATH 9842 shlibpath_overrides_runpath=yes 9843 if test "$with_gnu_ld" = yes; then 9844 need_lib_prefix=no 9845 fi 9846 need_version=yes 9847 ;; 9848 9849sysv4 | sysv4.3*) 9850 version_type=linux 9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9852 soname_spec='${libname}${release}${shared_ext}$major' 9853 shlibpath_var=LD_LIBRARY_PATH 9854 case $host_vendor in 9855 sni) 9856 shlibpath_overrides_runpath=no 9857 need_lib_prefix=no 9858 runpath_var=LD_RUN_PATH 9859 ;; 9860 siemens) 9861 need_lib_prefix=no 9862 ;; 9863 motorola) 9864 need_lib_prefix=no 9865 need_version=no 9866 shlibpath_overrides_runpath=no 9867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9868 ;; 9869 esac 9870 ;; 9871 9872sysv4*MP*) 9873 if test -d /usr/nec ;then 9874 version_type=linux 9875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9876 soname_spec='$libname${shared_ext}.$major' 9877 shlibpath_var=LD_LIBRARY_PATH 9878 fi 9879 ;; 9880 9881sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9882 version_type=freebsd-elf 9883 need_lib_prefix=no 9884 need_version=no 9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9886 soname_spec='${libname}${release}${shared_ext}$major' 9887 shlibpath_var=LD_LIBRARY_PATH 9888 shlibpath_overrides_runpath=yes 9889 hardcode_into_libs=yes 9890 if test "$with_gnu_ld" = yes; then 9891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9892 else 9893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9894 case $host_os in 9895 sco3.2v5*) 9896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9897 ;; 9898 esac 9899 fi 9900 sys_lib_dlsearch_path_spec='/usr/lib' 9901 ;; 9902 9903tpf*) 9904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9905 version_type=linux 9906 need_lib_prefix=no 9907 need_version=no 9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9909 shlibpath_var=LD_LIBRARY_PATH 9910 shlibpath_overrides_runpath=no 9911 hardcode_into_libs=yes 9912 ;; 9913 9914uts4*) 9915 version_type=linux 9916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9917 soname_spec='${libname}${release}${shared_ext}$major' 9918 shlibpath_var=LD_LIBRARY_PATH 9919 ;; 9920 9921*) 9922 dynamic_linker=no 9923 ;; 9924esac 9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9926$as_echo "$dynamic_linker" >&6; } 9927test "$dynamic_linker" = no && can_build_shared=no 9928 9929variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9930if test "$GCC" = yes; then 9931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9932fi 9933 9934if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9935 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9936fi 9937if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9938 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9939fi 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10028$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10029hardcode_action= 10030if test -n "$hardcode_libdir_flag_spec" || 10031 test -n "$runpath_var" || 10032 test "X$hardcode_automatic" = "Xyes" ; then 10033 10034 # We can hardcode non-existent directories. 10035 if test "$hardcode_direct" != no && 10036 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10037 # have to relink, otherwise we might link with an installed library 10038 # when we should be linking with a yet-to-be-installed one 10039 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10040 test "$hardcode_minus_L" != no; then 10041 # Linking always hardcodes the temporary library directory. 10042 hardcode_action=relink 10043 else 10044 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10045 hardcode_action=immediate 10046 fi 10047else 10048 # We cannot hardcode anything, or else we can only hardcode existing 10049 # directories. 10050 hardcode_action=unsupported 10051fi 10052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10053$as_echo "$hardcode_action" >&6; } 10054 10055if test "$hardcode_action" = relink || 10056 test "$inherit_rpath" = yes; then 10057 # Fast installation is not supported 10058 enable_fast_install=no 10059elif test "$shlibpath_overrides_runpath" = yes || 10060 test "$enable_shared" = no; then 10061 # Fast installation is not necessary 10062 enable_fast_install=needless 10063fi 10064 10065 10066 10067 10068 10069 10070 if test "x$enable_dlopen" != xyes; then 10071 enable_dlopen=unknown 10072 enable_dlopen_self=unknown 10073 enable_dlopen_self_static=unknown 10074else 10075 lt_cv_dlopen=no 10076 lt_cv_dlopen_libs= 10077 10078 case $host_os in 10079 beos*) 10080 lt_cv_dlopen="load_add_on" 10081 lt_cv_dlopen_libs= 10082 lt_cv_dlopen_self=yes 10083 ;; 10084 10085 mingw* | pw32* | cegcc*) 10086 lt_cv_dlopen="LoadLibrary" 10087 lt_cv_dlopen_libs= 10088 ;; 10089 10090 cygwin*) 10091 lt_cv_dlopen="dlopen" 10092 lt_cv_dlopen_libs= 10093 ;; 10094 10095 darwin*) 10096 # if libdl is installed we need to link against it 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10098$as_echo_n "checking for dlopen in -ldl... " >&6; } 10099if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10100 $as_echo_n "(cached) " >&6 10101else 10102 ac_check_lib_save_LIBS=$LIBS 10103LIBS="-ldl $LIBS" 10104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10105/* end confdefs.h. */ 10106 10107/* Override any GCC internal prototype to avoid an error. 10108 Use char because int might match the return type of a GCC 10109 builtin and then its argument prototype would still apply. */ 10110#ifdef __cplusplus 10111extern "C" 10112#endif 10113char dlopen (); 10114int 10115main () 10116{ 10117return dlopen (); 10118 ; 10119 return 0; 10120} 10121_ACEOF 10122if ac_fn_c_try_link "$LINENO"; then : 10123 ac_cv_lib_dl_dlopen=yes 10124else 10125 ac_cv_lib_dl_dlopen=no 10126fi 10127rm -f core conftest.err conftest.$ac_objext \ 10128 conftest$ac_exeext conftest.$ac_ext 10129LIBS=$ac_check_lib_save_LIBS 10130fi 10131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10132$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10133if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10135else 10136 10137 lt_cv_dlopen="dyld" 10138 lt_cv_dlopen_libs= 10139 lt_cv_dlopen_self=yes 10140 10141fi 10142 10143 ;; 10144 10145 *) 10146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10147if test "x$ac_cv_func_shl_load" = x""yes; then : 10148 lt_cv_dlopen="shl_load" 10149else 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10151$as_echo_n "checking for shl_load in -ldld... " >&6; } 10152if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10153 $as_echo_n "(cached) " >&6 10154else 10155 ac_check_lib_save_LIBS=$LIBS 10156LIBS="-ldld $LIBS" 10157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10158/* end confdefs.h. */ 10159 10160/* Override any GCC internal prototype to avoid an error. 10161 Use char because int might match the return type of a GCC 10162 builtin and then its argument prototype would still apply. */ 10163#ifdef __cplusplus 10164extern "C" 10165#endif 10166char shl_load (); 10167int 10168main () 10169{ 10170return shl_load (); 10171 ; 10172 return 0; 10173} 10174_ACEOF 10175if ac_fn_c_try_link "$LINENO"; then : 10176 ac_cv_lib_dld_shl_load=yes 10177else 10178 ac_cv_lib_dld_shl_load=no 10179fi 10180rm -f core conftest.err conftest.$ac_objext \ 10181 conftest$ac_exeext conftest.$ac_ext 10182LIBS=$ac_check_lib_save_LIBS 10183fi 10184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10185$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10186if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10187 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10188else 10189 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10190if test "x$ac_cv_func_dlopen" = x""yes; then : 10191 lt_cv_dlopen="dlopen" 10192else 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10194$as_echo_n "checking for dlopen in -ldl... " >&6; } 10195if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10196 $as_echo_n "(cached) " >&6 10197else 10198 ac_check_lib_save_LIBS=$LIBS 10199LIBS="-ldl $LIBS" 10200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10201/* end confdefs.h. */ 10202 10203/* Override any GCC internal prototype to avoid an error. 10204 Use char because int might match the return type of a GCC 10205 builtin and then its argument prototype would still apply. */ 10206#ifdef __cplusplus 10207extern "C" 10208#endif 10209char dlopen (); 10210int 10211main () 10212{ 10213return dlopen (); 10214 ; 10215 return 0; 10216} 10217_ACEOF 10218if ac_fn_c_try_link "$LINENO"; then : 10219 ac_cv_lib_dl_dlopen=yes 10220else 10221 ac_cv_lib_dl_dlopen=no 10222fi 10223rm -f core conftest.err conftest.$ac_objext \ 10224 conftest$ac_exeext conftest.$ac_ext 10225LIBS=$ac_check_lib_save_LIBS 10226fi 10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10228$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10229if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10231else 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10233$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10234if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 ac_check_lib_save_LIBS=$LIBS 10238LIBS="-lsvld $LIBS" 10239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240/* end confdefs.h. */ 10241 10242/* Override any GCC internal prototype to avoid an error. 10243 Use char because int might match the return type of a GCC 10244 builtin and then its argument prototype would still apply. */ 10245#ifdef __cplusplus 10246extern "C" 10247#endif 10248char dlopen (); 10249int 10250main () 10251{ 10252return dlopen (); 10253 ; 10254 return 0; 10255} 10256_ACEOF 10257if ac_fn_c_try_link "$LINENO"; then : 10258 ac_cv_lib_svld_dlopen=yes 10259else 10260 ac_cv_lib_svld_dlopen=no 10261fi 10262rm -f core conftest.err conftest.$ac_objext \ 10263 conftest$ac_exeext conftest.$ac_ext 10264LIBS=$ac_check_lib_save_LIBS 10265fi 10266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10267$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10268if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10270else 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10272$as_echo_n "checking for dld_link in -ldld... " >&6; } 10273if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10274 $as_echo_n "(cached) " >&6 10275else 10276 ac_check_lib_save_LIBS=$LIBS 10277LIBS="-ldld $LIBS" 10278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280 10281/* Override any GCC internal prototype to avoid an error. 10282 Use char because int might match the return type of a GCC 10283 builtin and then its argument prototype would still apply. */ 10284#ifdef __cplusplus 10285extern "C" 10286#endif 10287char dld_link (); 10288int 10289main () 10290{ 10291return dld_link (); 10292 ; 10293 return 0; 10294} 10295_ACEOF 10296if ac_fn_c_try_link "$LINENO"; then : 10297 ac_cv_lib_dld_dld_link=yes 10298else 10299 ac_cv_lib_dld_dld_link=no 10300fi 10301rm -f core conftest.err conftest.$ac_objext \ 10302 conftest$ac_exeext conftest.$ac_ext 10303LIBS=$ac_check_lib_save_LIBS 10304fi 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10306$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10307if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10309fi 10310 10311 10312fi 10313 10314 10315fi 10316 10317 10318fi 10319 10320 10321fi 10322 10323 10324fi 10325 10326 ;; 10327 esac 10328 10329 if test "x$lt_cv_dlopen" != xno; then 10330 enable_dlopen=yes 10331 else 10332 enable_dlopen=no 10333 fi 10334 10335 case $lt_cv_dlopen in 10336 dlopen) 10337 save_CPPFLAGS="$CPPFLAGS" 10338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10339 10340 save_LDFLAGS="$LDFLAGS" 10341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10342 10343 save_LIBS="$LIBS" 10344 LIBS="$lt_cv_dlopen_libs $LIBS" 10345 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10347$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10348if test "${lt_cv_dlopen_self+set}" = set; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 if test "$cross_compiling" = yes; then : 10352 lt_cv_dlopen_self=cross 10353else 10354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10355 lt_status=$lt_dlunknown 10356 cat > conftest.$ac_ext <<_LT_EOF 10357#line 10357 "configure" 10358#include "confdefs.h" 10359 10360#if HAVE_DLFCN_H 10361#include <dlfcn.h> 10362#endif 10363 10364#include <stdio.h> 10365 10366#ifdef RTLD_GLOBAL 10367# define LT_DLGLOBAL RTLD_GLOBAL 10368#else 10369# ifdef DL_GLOBAL 10370# define LT_DLGLOBAL DL_GLOBAL 10371# else 10372# define LT_DLGLOBAL 0 10373# endif 10374#endif 10375 10376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10377 find out it does not work in some platform. */ 10378#ifndef LT_DLLAZY_OR_NOW 10379# ifdef RTLD_LAZY 10380# define LT_DLLAZY_OR_NOW RTLD_LAZY 10381# else 10382# ifdef DL_LAZY 10383# define LT_DLLAZY_OR_NOW DL_LAZY 10384# else 10385# ifdef RTLD_NOW 10386# define LT_DLLAZY_OR_NOW RTLD_NOW 10387# else 10388# ifdef DL_NOW 10389# define LT_DLLAZY_OR_NOW DL_NOW 10390# else 10391# define LT_DLLAZY_OR_NOW 0 10392# endif 10393# endif 10394# endif 10395# endif 10396#endif 10397 10398void fnord() { int i=42;} 10399int main () 10400{ 10401 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10402 int status = $lt_dlunknown; 10403 10404 if (self) 10405 { 10406 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10407 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10408 /* dlclose (self); */ 10409 } 10410 else 10411 puts (dlerror ()); 10412 10413 return status; 10414} 10415_LT_EOF 10416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10417 (eval $ac_link) 2>&5 10418 ac_status=$? 10419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10421 (./conftest; exit; ) >&5 2>/dev/null 10422 lt_status=$? 10423 case x$lt_status in 10424 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10425 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10426 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10427 esac 10428 else : 10429 # compilation failed 10430 lt_cv_dlopen_self=no 10431 fi 10432fi 10433rm -fr conftest* 10434 10435 10436fi 10437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10438$as_echo "$lt_cv_dlopen_self" >&6; } 10439 10440 if test "x$lt_cv_dlopen_self" = xyes; then 10441 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10443$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10444if test "${lt_cv_dlopen_self_static+set}" = set; then : 10445 $as_echo_n "(cached) " >&6 10446else 10447 if test "$cross_compiling" = yes; then : 10448 lt_cv_dlopen_self_static=cross 10449else 10450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10451 lt_status=$lt_dlunknown 10452 cat > conftest.$ac_ext <<_LT_EOF 10453#line 10453 "configure" 10454#include "confdefs.h" 10455 10456#if HAVE_DLFCN_H 10457#include <dlfcn.h> 10458#endif 10459 10460#include <stdio.h> 10461 10462#ifdef RTLD_GLOBAL 10463# define LT_DLGLOBAL RTLD_GLOBAL 10464#else 10465# ifdef DL_GLOBAL 10466# define LT_DLGLOBAL DL_GLOBAL 10467# else 10468# define LT_DLGLOBAL 0 10469# endif 10470#endif 10471 10472/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10473 find out it does not work in some platform. */ 10474#ifndef LT_DLLAZY_OR_NOW 10475# ifdef RTLD_LAZY 10476# define LT_DLLAZY_OR_NOW RTLD_LAZY 10477# else 10478# ifdef DL_LAZY 10479# define LT_DLLAZY_OR_NOW DL_LAZY 10480# else 10481# ifdef RTLD_NOW 10482# define LT_DLLAZY_OR_NOW RTLD_NOW 10483# else 10484# ifdef DL_NOW 10485# define LT_DLLAZY_OR_NOW DL_NOW 10486# else 10487# define LT_DLLAZY_OR_NOW 0 10488# endif 10489# endif 10490# endif 10491# endif 10492#endif 10493 10494void fnord() { int i=42;} 10495int main () 10496{ 10497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10498 int status = $lt_dlunknown; 10499 10500 if (self) 10501 { 10502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10504 /* dlclose (self); */ 10505 } 10506 else 10507 puts (dlerror ()); 10508 10509 return status; 10510} 10511_LT_EOF 10512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10513 (eval $ac_link) 2>&5 10514 ac_status=$? 10515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10516 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10517 (./conftest; exit; ) >&5 2>/dev/null 10518 lt_status=$? 10519 case x$lt_status in 10520 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10521 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10522 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10523 esac 10524 else : 10525 # compilation failed 10526 lt_cv_dlopen_self_static=no 10527 fi 10528fi 10529rm -fr conftest* 10530 10531 10532fi 10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10534$as_echo "$lt_cv_dlopen_self_static" >&6; } 10535 fi 10536 10537 CPPFLAGS="$save_CPPFLAGS" 10538 LDFLAGS="$save_LDFLAGS" 10539 LIBS="$save_LIBS" 10540 ;; 10541 esac 10542 10543 case $lt_cv_dlopen_self in 10544 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10545 *) enable_dlopen_self=unknown ;; 10546 esac 10547 10548 case $lt_cv_dlopen_self_static in 10549 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10550 *) enable_dlopen_self_static=unknown ;; 10551 esac 10552fi 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570striplib= 10571old_striplib= 10572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10573$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10574if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10576 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10578$as_echo "yes" >&6; } 10579else 10580# FIXME - insert some real tests, host_os isn't really good enough 10581 case $host_os in 10582 darwin*) 10583 if test -n "$STRIP" ; then 10584 striplib="$STRIP -x" 10585 old_striplib="$STRIP -S" 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10587$as_echo "yes" >&6; } 10588 else 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10590$as_echo "no" >&6; } 10591 fi 10592 ;; 10593 *) 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10595$as_echo "no" >&6; } 10596 ;; 10597 esac 10598fi 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 # Report which library types will actually be built 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10613$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10615$as_echo "$can_build_shared" >&6; } 10616 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10618$as_echo_n "checking whether to build shared libraries... " >&6; } 10619 test "$can_build_shared" = "no" && enable_shared=no 10620 10621 # On AIX, shared libraries and static libraries use the same namespace, and 10622 # are all built from PIC. 10623 case $host_os in 10624 aix3*) 10625 test "$enable_shared" = yes && enable_static=no 10626 if test -n "$RANLIB"; then 10627 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10628 postinstall_cmds='$RANLIB $lib' 10629 fi 10630 ;; 10631 10632 aix[4-9]*) 10633 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10634 test "$enable_shared" = yes && enable_static=no 10635 fi 10636 ;; 10637 esac 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10639$as_echo "$enable_shared" >&6; } 10640 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10642$as_echo_n "checking whether to build static libraries... " >&6; } 10643 # Make sure either enable_shared or enable_static is yes. 10644 test "$enable_shared" = yes || enable_static=yes 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10646$as_echo "$enable_static" >&6; } 10647 10648 10649 10650 10651fi 10652ac_ext=c 10653ac_cpp='$CPP $CPPFLAGS' 10654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10656ac_compiler_gnu=$ac_cv_c_compiler_gnu 10657 10658CC="$lt_save_CC" 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 ac_config_commands="$ac_config_commands libtool" 10673 10674 10675 10676 10677# Only expand once: 10678 10679 10680enable_dlopen=yes 10681 10682 10683 10684 10685 10686# CFLAGS Can go away with its annoying default -g -O2 10687CFLAGS='' 10688 10689 10690# Pull in the platform specific build/configure environment options. 10691extra_incl= 10692case "$host" in 10693 *-openbsd*) 10694 10695$as_echo "#define C_BSD 1" >>confdefs.h 10696 10697 LDFLAGS="${LDFLAGS} -L/usr/local/lib -luuid" 10698 extra_incl="-I/usr/local/include" 10699 CPPFLAGS="${CPPFLAGS} -I/usr/local/include" 10700 platform="openbsd" 10701 ;; 10702 *-linux*) 10703 10704$as_echo "#define C_LINUX 1" >>confdefs.h 10705 10706 CDEFINE="-D_GNU_SOURCE" 10707 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE" 10708 platform="linux" 10709 ;; 10710 *-freebsd*) 10711 10712$as_echo "#define C_BSD 1" >>confdefs.h 10713 10714 LDFLAGS="${LDFLAGS} -L/usr/local/lib -luuid" 10715 extra_incl="-I/usr/local/include" 10716 CPPFLAGS="${CPPFLAGS} -I/usr/local/include" 10717 platform="freebsd" 10718 ;; 10719 *-apple*) 10720 10721$as_echo "#define BROKEN_SIOCGIFMTU /**/" >>confdefs.h 10722 10723 10724$as_echo "#define C_BSD 1" >>confdefs.h 10725 10726 e2fs_uuid=yes 10727 if test -d "/sw"; then 10728 LDFLAGS="${LDFLAGS} -L/sw/lib" 10729 extra_incl="-I/sw/include" 10730 CPPFLAGS="${CPPFLAGS} -I/sw/include" 10731 fi 10732 if test -d "/opt/local"; then 10733 LDFLAGS="${LDFLAGS} -L/opt/local/lib" 10734 extra_incl="-I/opt/local/include" 10735 CPPFLAGS="${CPPFLAGS} -I/opt/local/include" 10736 fi 10737 LIBTOOL=glibtool 10738 LIBTOOLIZE=glibtoolize 10739 CDEFINE="-Ds6_addr32=__u6_addr.__u6_addr32" 10740 platform="apple" 10741esac 10742 10743 if test x$platform = xlinux; then 10744 PLATFORM_LINUX_TRUE= 10745 PLATFORM_LINUX_FALSE='#' 10746else 10747 PLATFORM_LINUX_TRUE='#' 10748 PLATFORM_LINUX_FALSE= 10749fi 10750 10751 if test x$platform = xfreebsd; then 10752 PLATFORM_FREEBSD_TRUE= 10753 PLATFORM_FREEBSD_FALSE='#' 10754else 10755 PLATFORM_FREEBSD_TRUE='#' 10756 PLATFORM_FREEBSD_FALSE= 10757fi 10758 10759 10760 10761# Pull in the standard options for all components 10762# Check whether --enable-debug was given. 10763if test "${enable_debug+set}" = set; then : 10764 enableval=$enable_debug; enable_debug=$enableval 10765else 10766 enable_debug="no" 10767fi 10768 10769if test "x$enable_debug" = "xyes"; then 10770 10771$as_echo "#define DEBUG 1" >>confdefs.h 10772 10773fi 10774# Check whether --enable-assert was given. 10775if test "${enable_assert+set}" = set; then : 10776 enableval=$enable_assert; enable_assert=$enableval 10777else 10778 enable_assert="no" 10779fi 10780 10781if test "x$enable_assert" = "xyes"; then 10782 10783$as_echo "#define ENABLE_ASSERT 1" >>confdefs.h 10784 10785fi 10786 10787# Check whether --enable-unimplemented was given. 10788if test "${enable_unimplemented+set}" = set; then : 10789 enableval=$enable_unimplemented; enable_unimplemented=$enableval 10790else 10791 enable_unimplemented="no" 10792fi 10793 10794if test "x$enable_unimplemented" = "xyes"; then 10795 10796$as_echo "#define ENABLE_UNIMPLEMENTED_ASSERT 1" >>confdefs.h 10797 10798fi 10799 10800 10801INLINE='' 10802# Check whether --enable-inline was given. 10803if test "${enable_inline+set}" = set; then : 10804 enableval=$enable_inline; enable_inline=$enableval 10805else 10806 enable_inline="yes" 10807fi 10808 10809if test "x$enable_inline" = "xyes"; then 10810 INLINE="inline" 10811fi 10812 10813cat >>confdefs.h <<_ACEOF 10814#define INLINE $INLINE 10815_ACEOF 10816 10817 10818# Check whether --enable-perf was given. 10819if test "${enable_perf+set}" = set; then : 10820 enableval=$enable_perf; enable_perf=$enableval 10821else 10822 enable_perf="yes" 10823fi 10824 10825if test "x$enable_perf" = "xyes"; then 10826 10827$as_echo "#define RZB_PERF 1" >>confdefs.h 10828 10829fi 10830 10831# Check whether --enable-profile was given. 10832if test "${enable_profile+set}" = set; then : 10833 enableval=$enable_profile; enable_profile=$enableval 10834else 10835 enable_profile="no" 10836fi 10837 10838if test "x$enable_profile" = "xyes"; then 10839 10840$as_echo "#define PROFILE 1" >>confdefs.h 10841 10842 PROFILE_LDFLAGS="-XCClinker -pg" 10843fi 10844 10845 10846 10847 10848# Check whether --with-with_api was given. 10849if test "${with_with_api+set}" = set; then : 10850 withval=$with_with_api; with_api=$withval 10851fi 10852 10853 10854# Check whether --enable-master-nugget-check was given. 10855if test "${enable_master_nugget_check+set}" = set; then : 10856 enableval=$enable_master_nugget_check; enable_master_nugget_check=$enableval 10857else 10858 enable_master_nugget_check="yes" 10859fi 10860 10861 10862 10863 10864# Pull in the library requirements for a simple .so loadable nugget. 10865# This filw provides the basic autoconf macros for creating a simple .so loadable nugget for use behind master_nugget. 10866 10867# Setup the sysconfdir for all consumers. 10868 10869 10870 10871 10872## Expand ${prefix} in sysconfdir if its the default value. 10873 10874 10875 EXP_VAR=SYSCONFDIR 10876 FROM_VAR="$sysconfdir/razorback" 10877 10878 prefix_save=$prefix 10879 exec_prefix_save=$exec_prefix 10880 10881 if test "x$prefix" = "xNONE"; then 10882 prefix=$ac_default_prefix 10883 fi 10884 if test "x$exec_prefix" = "xNONE"; then 10885 exec_prefix=$prefix 10886 fi 10887 10888 full_var="$FROM_VAR" 10889 while true; do 10890 new_full_var="`eval echo $full_var`" 10891 if test "x$new_full_var"="x$full_var"; then break; fi 10892 full_var=$new_full_var 10893 done 10894 10895 full_var=$new_full_var 10896 SYSCONFDIR="$full_var" 10897 10898 10899 prefix=$prefix_save 10900 exec_prefix=$exec_prefix_save 10901 10902sysconfdir=$SYSCONFDIR 10903 10904 10905 EXP_VAR=LIBEXECDIR 10906 FROM_VAR="$libexecdir/razorback/$PACKAGE_NAME" 10907 10908 prefix_save=$prefix 10909 exec_prefix_save=$exec_prefix 10910 10911 if test "x$prefix" = "xNONE"; then 10912 prefix=$ac_default_prefix 10913 fi 10914 if test "x$exec_prefix" = "xNONE"; then 10915 exec_prefix=$prefix 10916 fi 10917 10918 full_var="$FROM_VAR" 10919 while true; do 10920 new_full_var="`eval echo $full_var`" 10921 if test "x$new_full_var"="x$full_var"; then break; fi 10922 full_var=$new_full_var 10923 done 10924 10925 full_var=$new_full_var 10926 LIBEXECDIR="$full_var" 10927 10928 10929 prefix=$prefix_save 10930 exec_prefix=$exec_prefix_save 10931 10932libexecdir=$LIBEXECDIR 10933 10934 10935cat >>confdefs.h <<_ACEOF 10936#define ETC_DIR "$SYSCONFDIR" 10937_ACEOF 10938 10939 10940 10941cat >>confdefs.h <<_ACEOF 10942#define DEFAULT_CONFIG_FILE "$SYSCONFDIR/rzb.conf" 10943_ACEOF 10944 10945 10946 10947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timer_create in -lrt" >&5 10948$as_echo_n "checking for timer_create in -lrt... " >&6; } 10949if test "${ac_cv_lib_rt_timer_create+set}" = set; then : 10950 $as_echo_n "(cached) " >&6 10951else 10952 ac_check_lib_save_LIBS=$LIBS 10953LIBS="-lrt $LIBS" 10954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10955/* end confdefs.h. */ 10956 10957/* Override any GCC internal prototype to avoid an error. 10958 Use char because int might match the return type of a GCC 10959 builtin and then its argument prototype would still apply. */ 10960#ifdef __cplusplus 10961extern "C" 10962#endif 10963char timer_create (); 10964int 10965main () 10966{ 10967return timer_create (); 10968 ; 10969 return 0; 10970} 10971_ACEOF 10972if ac_fn_c_try_link "$LINENO"; then : 10973 ac_cv_lib_rt_timer_create=yes 10974else 10975 ac_cv_lib_rt_timer_create=no 10976fi 10977rm -f core conftest.err conftest.$ac_objext \ 10978 conftest$ac_exeext conftest.$ac_ext 10979LIBS=$ac_check_lib_save_LIBS 10980fi 10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 10982$as_echo "$ac_cv_lib_rt_timer_create" >&6; } 10983if test "x$ac_cv_lib_rt_timer_create" = x""yes; then : 10984 cat >>confdefs.h <<_ACEOF 10985#define HAVE_LIBRT 1 10986_ACEOF 10987 10988 LIBS="-lrt $LIBS" 10989 10990fi 10991 10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 10993$as_echo_n "checking for floor in -lm... " >&6; } 10994if test "${ac_cv_lib_m_floor+set}" = set; then : 10995 $as_echo_n "(cached) " >&6 10996else 10997 ac_check_lib_save_LIBS=$LIBS 10998LIBS="-lm $LIBS" 10999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11000/* end confdefs.h. */ 11001 11002/* Override any GCC internal prototype to avoid an error. 11003 Use char because int might match the return type of a GCC 11004 builtin and then its argument prototype would still apply. */ 11005#ifdef __cplusplus 11006extern "C" 11007#endif 11008char floor (); 11009int 11010main () 11011{ 11012return floor (); 11013 ; 11014 return 0; 11015} 11016_ACEOF 11017if ac_fn_c_try_link "$LINENO"; then : 11018 ac_cv_lib_m_floor=yes 11019else 11020 ac_cv_lib_m_floor=no 11021fi 11022rm -f core conftest.err conftest.$ac_objext \ 11023 conftest$ac_exeext conftest.$ac_ext 11024LIBS=$ac_check_lib_save_LIBS 11025fi 11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 11027$as_echo "$ac_cv_lib_m_floor" >&6; } 11028if test "x$ac_cv_lib_m_floor" = x""yes; then : 11029 cat >>confdefs.h <<_ACEOF 11030#define HAVE_LIBM 1 11031_ACEOF 11032 11033 LIBS="-lm $LIBS" 11034 11035fi 11036 11037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 11038$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 11039if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 11040 $as_echo_n "(cached) " >&6 11041else 11042 ac_check_lib_save_LIBS=$LIBS 11043LIBS="-lpthread $LIBS" 11044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11045/* end confdefs.h. */ 11046 11047/* Override any GCC internal prototype to avoid an error. 11048 Use char because int might match the return type of a GCC 11049 builtin and then its argument prototype would still apply. */ 11050#ifdef __cplusplus 11051extern "C" 11052#endif 11053char pthread_create (); 11054int 11055main () 11056{ 11057return pthread_create (); 11058 ; 11059 return 0; 11060} 11061_ACEOF 11062if ac_fn_c_try_link "$LINENO"; then : 11063 ac_cv_lib_pthread_pthread_create=yes 11064else 11065 ac_cv_lib_pthread_pthread_create=no 11066fi 11067rm -f core conftest.err conftest.$ac_objext \ 11068 conftest$ac_exeext conftest.$ac_ext 11069LIBS=$ac_check_lib_save_LIBS 11070fi 11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 11072$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 11073if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 11074 cat >>confdefs.h <<_ACEOF 11075#define HAVE_LIBPTHREAD 1 11076_ACEOF 11077 11078 LIBS="-lpthread $LIBS" 11079 11080fi 11081 11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestInit in -lcrypto" >&5 11083$as_echo_n "checking for EVP_DigestInit in -lcrypto... " >&6; } 11084if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then : 11085 $as_echo_n "(cached) " >&6 11086else 11087 ac_check_lib_save_LIBS=$LIBS 11088LIBS="-lcrypto $LIBS" 11089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11090/* end confdefs.h. */ 11091 11092/* Override any GCC internal prototype to avoid an error. 11093 Use char because int might match the return type of a GCC 11094 builtin and then its argument prototype would still apply. */ 11095#ifdef __cplusplus 11096extern "C" 11097#endif 11098char EVP_DigestInit (); 11099int 11100main () 11101{ 11102return EVP_DigestInit (); 11103 ; 11104 return 0; 11105} 11106_ACEOF 11107if ac_fn_c_try_link "$LINENO"; then : 11108 ac_cv_lib_crypto_EVP_DigestInit=yes 11109else 11110 ac_cv_lib_crypto_EVP_DigestInit=no 11111fi 11112rm -f core conftest.err conftest.$ac_objext \ 11113 conftest$ac_exeext conftest.$ac_ext 11114LIBS=$ac_check_lib_save_LIBS 11115fi 11116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5 11117$as_echo "$ac_cv_lib_crypto_EVP_DigestInit" >&6; } 11118if test "x$ac_cv_lib_crypto_EVP_DigestInit" = x""yes; then : 11119 cat >>confdefs.h <<_ACEOF 11120#define HAVE_LIBCRYPTO 1 11121_ACEOF 11122 11123 LIBS="-lcrypto $LIBS" 11124 11125fi 11126 11127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_write in -lssl" >&5 11128$as_echo_n "checking for SSL_write in -lssl... " >&6; } 11129if test "${ac_cv_lib_ssl_SSL_write+set}" = set; then : 11130 $as_echo_n "(cached) " >&6 11131else 11132 ac_check_lib_save_LIBS=$LIBS 11133LIBS="-lssl $LIBS" 11134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11135/* end confdefs.h. */ 11136 11137/* Override any GCC internal prototype to avoid an error. 11138 Use char because int might match the return type of a GCC 11139 builtin and then its argument prototype would still apply. */ 11140#ifdef __cplusplus 11141extern "C" 11142#endif 11143char SSL_write (); 11144int 11145main () 11146{ 11147return SSL_write (); 11148 ; 11149 return 0; 11150} 11151_ACEOF 11152if ac_fn_c_try_link "$LINENO"; then : 11153 ac_cv_lib_ssl_SSL_write=yes 11154else 11155 ac_cv_lib_ssl_SSL_write=no 11156fi 11157rm -f core conftest.err conftest.$ac_objext \ 11158 conftest$ac_exeext conftest.$ac_ext 11159LIBS=$ac_check_lib_save_LIBS 11160fi 11161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_write" >&5 11162$as_echo "$ac_cv_lib_ssl_SSL_write" >&6; } 11163if test "x$ac_cv_lib_ssl_SSL_write" = x""yes; then : 11164 cat >>confdefs.h <<_ACEOF 11165#define HAVE_LIBSSL 1 11166_ACEOF 11167 11168 LIBS="-lssl $LIBS" 11169 11170fi 11171 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 11173$as_echo_n "checking for magic_open in -lmagic... " >&6; } 11174if test "${ac_cv_lib_magic_magic_open+set}" = set; then : 11175 $as_echo_n "(cached) " >&6 11176else 11177 ac_check_lib_save_LIBS=$LIBS 11178LIBS="-lmagic $LIBS" 11179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11180/* end confdefs.h. */ 11181 11182/* Override any GCC internal prototype to avoid an error. 11183 Use char because int might match the return type of a GCC 11184 builtin and then its argument prototype would still apply. */ 11185#ifdef __cplusplus 11186extern "C" 11187#endif 11188char magic_open (); 11189int 11190main () 11191{ 11192return magic_open (); 11193 ; 11194 return 0; 11195} 11196_ACEOF 11197if ac_fn_c_try_link "$LINENO"; then : 11198 ac_cv_lib_magic_magic_open=yes 11199else 11200 ac_cv_lib_magic_magic_open=no 11201fi 11202rm -f core conftest.err conftest.$ac_objext \ 11203 conftest$ac_exeext conftest.$ac_ext 11204LIBS=$ac_check_lib_save_LIBS 11205fi 11206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 11207$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 11208if test "x$ac_cv_lib_magic_magic_open" = x""yes; then : 11209 cat >>confdefs.h <<_ACEOF 11210#define HAVE_LIBMAGIC 1 11211_ACEOF 11212 11213 LIBS="-lmagic $LIBS" 11214 11215fi 11216 11217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11218$as_echo_n "checking for dlopen in -ldl... " >&6; } 11219if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11220 $as_echo_n "(cached) " >&6 11221else 11222 ac_check_lib_save_LIBS=$LIBS 11223LIBS="-ldl $LIBS" 11224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11225/* end confdefs.h. */ 11226 11227/* Override any GCC internal prototype to avoid an error. 11228 Use char because int might match the return type of a GCC 11229 builtin and then its argument prototype would still apply. */ 11230#ifdef __cplusplus 11231extern "C" 11232#endif 11233char dlopen (); 11234int 11235main () 11236{ 11237return dlopen (); 11238 ; 11239 return 0; 11240} 11241_ACEOF 11242if ac_fn_c_try_link "$LINENO"; then : 11243 ac_cv_lib_dl_dlopen=yes 11244else 11245 ac_cv_lib_dl_dlopen=no 11246fi 11247rm -f core conftest.err conftest.$ac_objext \ 11248 conftest$ac_exeext conftest.$ac_ext 11249LIBS=$ac_check_lib_save_LIBS 11250fi 11251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11252$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11253if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11254 cat >>confdefs.h <<_ACEOF 11255#define HAVE_LIBDL 1 11256_ACEOF 11257 11258 LIBS="-ldl $LIBS" 11259 11260fi 11261 11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 11263$as_echo_n "checking for pcre_compile in -lpcre... " >&6; } 11264if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then : 11265 $as_echo_n "(cached) " >&6 11266else 11267 ac_check_lib_save_LIBS=$LIBS 11268LIBS="-lpcre $LIBS" 11269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11270/* end confdefs.h. */ 11271 11272/* Override any GCC internal prototype to avoid an error. 11273 Use char because int might match the return type of a GCC 11274 builtin and then its argument prototype would still apply. */ 11275#ifdef __cplusplus 11276extern "C" 11277#endif 11278char pcre_compile (); 11279int 11280main () 11281{ 11282return pcre_compile (); 11283 ; 11284 return 0; 11285} 11286_ACEOF 11287if ac_fn_c_try_link "$LINENO"; then : 11288 ac_cv_lib_pcre_pcre_compile=yes 11289else 11290 ac_cv_lib_pcre_pcre_compile=no 11291fi 11292rm -f core conftest.err conftest.$ac_objext \ 11293 conftest$ac_exeext conftest.$ac_ext 11294LIBS=$ac_check_lib_save_LIBS 11295fi 11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 11297$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; } 11298if test "x$ac_cv_lib_pcre_pcre_compile" = x""yes; then : 11299 cat >>confdefs.h <<_ACEOF 11300#define HAVE_LIBPCRE 1 11301_ACEOF 11302 11303 LIBS="-lpcre $LIBS" 11304 11305fi 11306 11307 11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_copy in -luuid" >&5 11309$as_echo_n "checking for uuid_copy in -luuid... " >&6; } 11310if test "${ac_cv_lib_uuid_uuid_copy+set}" = set; then : 11311 $as_echo_n "(cached) " >&6 11312else 11313 ac_check_lib_save_LIBS=$LIBS 11314LIBS="-luuid $LIBS" 11315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11316/* end confdefs.h. */ 11317 11318/* Override any GCC internal prototype to avoid an error. 11319 Use char because int might match the return type of a GCC 11320 builtin and then its argument prototype would still apply. */ 11321#ifdef __cplusplus 11322extern "C" 11323#endif 11324char uuid_copy (); 11325int 11326main () 11327{ 11328return uuid_copy (); 11329 ; 11330 return 0; 11331} 11332_ACEOF 11333if ac_fn_c_try_link "$LINENO"; then : 11334 ac_cv_lib_uuid_uuid_copy=yes 11335else 11336 ac_cv_lib_uuid_uuid_copy=no 11337fi 11338rm -f core conftest.err conftest.$ac_objext \ 11339 conftest$ac_exeext conftest.$ac_ext 11340LIBS=$ac_check_lib_save_LIBS 11341fi 11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_copy" >&5 11343$as_echo "$ac_cv_lib_uuid_uuid_copy" >&6; } 11344if test "x$ac_cv_lib_uuid_uuid_copy" = x""yes; then : 11345 cat >>confdefs.h <<_ACEOF 11346#define HAVE_LIBUUID 1 11347_ACEOF 11348 11349 LIBS="-luuid $LIBS" 11350 11351else 11352 UUID="no" 11353fi 11354 11355if test "x$UUID" = "xno"; then : 11356 as_fn_error $? "\"uuid library not found\"" "$LINENO" 5 11357 11358fi 11359 11360#AC_CHECK_LIB([curl], [curl_easy_perform], [ 11361# CURL_CFLAGS=`curl-config --cflags` 11362# CURL_LIBS=`curl-config --libs` 11363# CFLAGS="$CFLAGS $CURL_CFLAGS" 11364# LIBS="$CURL_LIBS $LIBS" 11365#], [CURL="no"]) 11366#AS_IF([test "x$CURL" = "xno"], 11367# [AC_MSG_ERROR("curl library not found")] 11368# ) 11369 11370for ac_header in uuid/uuid.h 11371do : 11372 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 11373if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then : 11374 cat >>confdefs.h <<_ACEOF 11375#define HAVE_UUID_UUID_H 1 11376_ACEOF 11377 11378else 11379 UUID_HEADER="no" 11380fi 11381 11382done 11383 11384if test "x$UUID_HEADER" = "xno"; then : 11385 as_fn_error $? "\"uuid header file not found\"" "$LINENO" 5 11386 11387fi 11388 11389for ac_header in openssl/evp.h 11390do : 11391 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default" 11392if test "x$ac_cv_header_openssl_evp_h" = x""yes; then : 11393 cat >>confdefs.h <<_ACEOF 11394#define HAVE_OPENSSL_EVP_H 1 11395_ACEOF 11396 11397else 11398 OPENSSL_HEADER="no" 11399fi 11400 11401done 11402 11403if test "x$OPENSSL_HEADER" = "xno"; then : 11404 as_fn_error $? "\"openssl header file not found\"" "$LINENO" 5 11405 11406fi 11407 11408#AC_CHECK_HEADERS([magic.h], [], [MAGIC_HEADER="no"]) 11409#AS_IF([test "x$MAGIC_HEADER" = "xno"], 11410# [AC_MSG_ERROR("magic header file not found")] 11411# ) 11412 11413#AC_CHECK_HEADERS([pcre.h], [], [PCRE_HEADER="no"]) 11414#AS_IF([test "x$PCRE_HEADER" = "xno"], 11415# [AC_MSG_ERROR("pcre header file not found")] 11416# ) 11417 11418 11419 11420 11421 11422 11423 11424if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11425 if test -n "$ac_tool_prefix"; then 11426 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11427set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11429$as_echo_n "checking for $ac_word... " >&6; } 11430if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11431 $as_echo_n "(cached) " >&6 11432else 11433 case $PKG_CONFIG in 11434 [\\/]* | ?:[\\/]*) 11435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11436 ;; 11437 *) 11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11439for as_dir in $PATH 11440do 11441 IFS=$as_save_IFS 11442 test -z "$as_dir" && as_dir=. 11443 for ac_exec_ext in '' $ac_executable_extensions; do 11444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11447 break 2 11448 fi 11449done 11450 done 11451IFS=$as_save_IFS 11452 11453 ;; 11454esac 11455fi 11456PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11457if test -n "$PKG_CONFIG"; then 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11459$as_echo "$PKG_CONFIG" >&6; } 11460else 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11462$as_echo "no" >&6; } 11463fi 11464 11465 11466fi 11467if test -z "$ac_cv_path_PKG_CONFIG"; then 11468 ac_pt_PKG_CONFIG=$PKG_CONFIG 11469 # Extract the first word of "pkg-config", so it can be a program name with args. 11470set dummy pkg-config; ac_word=$2 11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11472$as_echo_n "checking for $ac_word... " >&6; } 11473if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 11474 $as_echo_n "(cached) " >&6 11475else 11476 case $ac_pt_PKG_CONFIG in 11477 [\\/]* | ?:[\\/]*) 11478 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11479 ;; 11480 *) 11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11482for as_dir in $PATH 11483do 11484 IFS=$as_save_IFS 11485 test -z "$as_dir" && as_dir=. 11486 for ac_exec_ext in '' $ac_executable_extensions; do 11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11488 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11490 break 2 11491 fi 11492done 11493 done 11494IFS=$as_save_IFS 11495 11496 ;; 11497esac 11498fi 11499ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11500if test -n "$ac_pt_PKG_CONFIG"; then 11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11502$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11503else 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11505$as_echo "no" >&6; } 11506fi 11507 11508 if test "x$ac_pt_PKG_CONFIG" = x; then 11509 PKG_CONFIG="" 11510 else 11511 case $cross_compiling:$ac_tool_warned in 11512yes:) 11513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11515ac_tool_warned=yes ;; 11516esac 11517 PKG_CONFIG=$ac_pt_PKG_CONFIG 11518 fi 11519else 11520 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11521fi 11522 11523fi 11524if test -n "$PKG_CONFIG"; then 11525 _pkg_min_version=0.9.0 11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11527$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11528 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11530$as_echo "yes" >&6; } 11531 else 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11533$as_echo "no" >&6; } 11534 PKG_CONFIG="" 11535 fi 11536fi 11537 11538pkg_failed=no 11539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCONFIG" >&5 11540$as_echo_n "checking for LIBCONFIG... " >&6; } 11541 11542if test -n "$LIBCONFIG_CFLAGS"; then 11543 pkg_cv_LIBCONFIG_CFLAGS="$LIBCONFIG_CFLAGS" 11544 elif test -n "$PKG_CONFIG"; then 11545 if test -n "$PKG_CONFIG" && \ 11546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfig >= 1.3.2\""; } >&5 11547 ($PKG_CONFIG --exists --print-errors "libconfig >= 1.3.2") 2>&5 11548 ac_status=$? 11549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11550 test $ac_status = 0; }; then 11551 pkg_cv_LIBCONFIG_CFLAGS=`$PKG_CONFIG --cflags "libconfig >= 1.3.2" 2>/dev/null` 11552else 11553 pkg_failed=yes 11554fi 11555 else 11556 pkg_failed=untried 11557fi 11558if test -n "$LIBCONFIG_LIBS"; then 11559 pkg_cv_LIBCONFIG_LIBS="$LIBCONFIG_LIBS" 11560 elif test -n "$PKG_CONFIG"; then 11561 if test -n "$PKG_CONFIG" && \ 11562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfig >= 1.3.2\""; } >&5 11563 ($PKG_CONFIG --exists --print-errors "libconfig >= 1.3.2") 2>&5 11564 ac_status=$? 11565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11566 test $ac_status = 0; }; then 11567 pkg_cv_LIBCONFIG_LIBS=`$PKG_CONFIG --libs "libconfig >= 1.3.2" 2>/dev/null` 11568else 11569 pkg_failed=yes 11570fi 11571 else 11572 pkg_failed=untried 11573fi 11574 11575 11576 11577if test $pkg_failed = yes; then 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11579$as_echo "no" >&6; } 11580 11581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11582 _pkg_short_errors_supported=yes 11583else 11584 _pkg_short_errors_supported=no 11585fi 11586 if test $_pkg_short_errors_supported = yes; then 11587 LIBCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfig >= 1.3.2" 2>&1` 11588 else 11589 LIBCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfig >= 1.3.2" 2>&1` 11590 fi 11591 # Put the nasty error message in config.log where it belongs 11592 echo "$LIBCONFIG_PKG_ERRORS" >&5 11593 11594 as_fn_error $? "Package requirements (libconfig >= 1.3.2) were not met: 11595 11596$LIBCONFIG_PKG_ERRORS 11597 11598Consider adjusting the PKG_CONFIG_PATH environment variable if you 11599installed software in a non-standard prefix. 11600 11601Alternatively, you may set the environment variables LIBCONFIG_CFLAGS 11602and LIBCONFIG_LIBS to avoid the need to call pkg-config. 11603See the pkg-config man page for more details." "$LINENO" 5 11604elif test $pkg_failed = untried; then 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11606$as_echo "no" >&6; } 11607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11609as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11610is in your PATH or set the PKG_CONFIG environment variable to the full 11611path to pkg-config. 11612 11613Alternatively, you may set the environment variables LIBCONFIG_CFLAGS 11614and LIBCONFIG_LIBS to avoid the need to call pkg-config. 11615See the pkg-config man page for more details. 11616 11617To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11618See \`config.log' for more details" "$LINENO" 5 ; } 11619else 11620 LIBCONFIG_CFLAGS=$pkg_cv_LIBCONFIG_CFLAGS 11621 LIBCONFIG_LIBS=$pkg_cv_LIBCONFIG_LIBS 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11623$as_echo "yes" >&6; } 11624 11625fi 11626CFLAGS="$LIBCONFIG_CFLAGS $CFLAGS" 11627LIBS="$LIBCONFIG_LIBS $LIBS" 11628 11629#AC_CHECK_HEADERS([curl/curl.h], [], [CURL_HEADER="no"]) 11630#AS_IF([test "x$CURL_HEADER" = "xno"], 11631# [AC_MSG_ERROR("curl header file not found")] 11632# ) 11633 11634 11635pkg_failed=no 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5 11637$as_echo_n "checking for JSON... " >&6; } 11638 11639if test -n "$JSON_CFLAGS"; then 11640 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS" 11641 elif test -n "$PKG_CONFIG"; then 11642 if test -n "$PKG_CONFIG" && \ 11643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.9\""; } >&5 11644 ($PKG_CONFIG --exists --print-errors "json >= 0.9") 2>&5 11645 ac_status=$? 11646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11647 test $ac_status = 0; }; then 11648 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json >= 0.9" 2>/dev/null` 11649else 11650 pkg_failed=yes 11651fi 11652 else 11653 pkg_failed=untried 11654fi 11655if test -n "$JSON_LIBS"; then 11656 pkg_cv_JSON_LIBS="$JSON_LIBS" 11657 elif test -n "$PKG_CONFIG"; then 11658 if test -n "$PKG_CONFIG" && \ 11659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json >= 0.9\""; } >&5 11660 ($PKG_CONFIG --exists --print-errors "json >= 0.9") 2>&5 11661 ac_status=$? 11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11663 test $ac_status = 0; }; then 11664 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json >= 0.9" 2>/dev/null` 11665else 11666 pkg_failed=yes 11667fi 11668 else 11669 pkg_failed=untried 11670fi 11671 11672 11673 11674if test $pkg_failed = yes; then 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11676$as_echo "no" >&6; } 11677 11678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11679 _pkg_short_errors_supported=yes 11680else 11681 _pkg_short_errors_supported=no 11682fi 11683 if test $_pkg_short_errors_supported = yes; then 11684 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "json >= 0.9" 2>&1` 11685 else 11686 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "json >= 0.9" 2>&1` 11687 fi 11688 # Put the nasty error message in config.log where it belongs 11689 echo "$JSON_PKG_ERRORS" >&5 11690 11691 as_fn_error $? "Package requirements (json >= 0.9) were not met: 11692 11693$JSON_PKG_ERRORS 11694 11695Consider adjusting the PKG_CONFIG_PATH environment variable if you 11696installed software in a non-standard prefix. 11697 11698Alternatively, you may set the environment variables JSON_CFLAGS 11699and JSON_LIBS to avoid the need to call pkg-config. 11700See the pkg-config man page for more details." "$LINENO" 5 11701elif test $pkg_failed = untried; then 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11703$as_echo "no" >&6; } 11704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11706as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11707is in your PATH or set the PKG_CONFIG environment variable to the full 11708path to pkg-config. 11709 11710Alternatively, you may set the environment variables JSON_CFLAGS 11711and JSON_LIBS to avoid the need to call pkg-config. 11712See the pkg-config man page for more details. 11713 11714To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11715See \`config.log' for more details" "$LINENO" 5 ; } 11716else 11717 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS 11718 JSON_LIBS=$pkg_cv_JSON_LIBS 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11720$as_echo "yes" >&6; } 11721 11722fi 11723 11724CFLAGS="$JSON_CFLAGS $CFLAGS" 11725LIBS="$JSON_LIBS $LIBS" 11726 11727 11728 11729NUGGET_VERSION=2:0:0 11730 11731# Support searching the for the API in $prefix and in the argument to --with-api 11732export PKG_CONFIG_PATH=$prefix/lib/pkgconfig:$PKG_CONFIG_PATH 11733if test "x$with_api" != "x"; then 11734 export PKG_CONFIG_PATH=$with_api:$PKG_CONFIG_PATH 11735fi 11736 11737 11738pkg_failed=no 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAZORBACK" >&5 11740$as_echo_n "checking for RAZORBACK... " >&6; } 11741 11742if test -n "$RAZORBACK_CFLAGS"; then 11743 pkg_cv_RAZORBACK_CFLAGS="$RAZORBACK_CFLAGS" 11744 elif test -n "$PKG_CONFIG"; then 11745 if test -n "$PKG_CONFIG" && \ 11746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"razorback >= 0.1.3\""; } >&5 11747 ($PKG_CONFIG --exists --print-errors "razorback >= 0.1.3") 2>&5 11748 ac_status=$? 11749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11750 test $ac_status = 0; }; then 11751 pkg_cv_RAZORBACK_CFLAGS=`$PKG_CONFIG --cflags "razorback >= 0.1.3" 2>/dev/null` 11752else 11753 pkg_failed=yes 11754fi 11755 else 11756 pkg_failed=untried 11757fi 11758if test -n "$RAZORBACK_LIBS"; then 11759 pkg_cv_RAZORBACK_LIBS="$RAZORBACK_LIBS" 11760 elif test -n "$PKG_CONFIG"; then 11761 if test -n "$PKG_CONFIG" && \ 11762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"razorback >= 0.1.3\""; } >&5 11763 ($PKG_CONFIG --exists --print-errors "razorback >= 0.1.3") 2>&5 11764 ac_status=$? 11765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11766 test $ac_status = 0; }; then 11767 pkg_cv_RAZORBACK_LIBS=`$PKG_CONFIG --libs "razorback >= 0.1.3" 2>/dev/null` 11768else 11769 pkg_failed=yes 11770fi 11771 else 11772 pkg_failed=untried 11773fi 11774 11775 11776 11777if test $pkg_failed = yes; then 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11779$as_echo "no" >&6; } 11780 11781if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11782 _pkg_short_errors_supported=yes 11783else 11784 _pkg_short_errors_supported=no 11785fi 11786 if test $_pkg_short_errors_supported = yes; then 11787 RAZORBACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "razorback >= 0.1.3" 2>&1` 11788 else 11789 RAZORBACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "razorback >= 0.1.3" 2>&1` 11790 fi 11791 # Put the nasty error message in config.log where it belongs 11792 echo "$RAZORBACK_PKG_ERRORS" >&5 11793 11794 as_fn_error $? "Package requirements (razorback >= 0.1.3) were not met: 11795 11796$RAZORBACK_PKG_ERRORS 11797 11798Consider adjusting the PKG_CONFIG_PATH environment variable if you 11799installed software in a non-standard prefix. 11800 11801Alternatively, you may set the environment variables RAZORBACK_CFLAGS 11802and RAZORBACK_LIBS to avoid the need to call pkg-config. 11803See the pkg-config man page for more details." "$LINENO" 5 11804elif test $pkg_failed = untried; then 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11806$as_echo "no" >&6; } 11807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11809as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11810is in your PATH or set the PKG_CONFIG environment variable to the full 11811path to pkg-config. 11812 11813Alternatively, you may set the environment variables RAZORBACK_CFLAGS 11814and RAZORBACK_LIBS to avoid the need to call pkg-config. 11815See the pkg-config man page for more details. 11816 11817To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11818See \`config.log' for more details" "$LINENO" 5 ; } 11819else 11820 RAZORBACK_CFLAGS=$pkg_cv_RAZORBACK_CFLAGS 11821 RAZORBACK_LIBS=$pkg_cv_RAZORBACK_LIBS 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11823$as_echo "yes" >&6; } 11824 11825fi 11826 11827# Munge the compiler flags if we specify where the API is located. 11828if test "x$with_api" != "x"; then 11829 RAZORBACK_CFLAGS="-I$with_api/include -I$with_api/libssh/include" 11830 RAZORBACK_LIBS="-L$with_api/src -lrazorback_api" 11831else 11832 RAZORBACK_CFLAGS="-I${includedir} -I${includedir}/razorback" 11833fi 11834 11835 11836if test "x$enable_master_nugget_check" = "xyes"; then 11837 export PATH=$prefix/bin:$PATH 11838 # Extract the first word of "masterNugget", so it can be a program name with args. 11839set dummy masterNugget; ac_word=$2 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11841$as_echo_n "checking for $ac_word... " >&6; } 11842if test "${ac_cv_prog_MASTER_NUGGET+set}" = set; then : 11843 $as_echo_n "(cached) " >&6 11844else 11845 if test -n "$MASTER_NUGGET"; then 11846 ac_cv_prog_MASTER_NUGGET="$MASTER_NUGGET" # Let the user override the test. 11847else 11848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11849for as_dir in $PATH 11850do 11851 IFS=$as_save_IFS 11852 test -z "$as_dir" && as_dir=. 11853 for ac_exec_ext in '' $ac_executable_extensions; do 11854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11855 ac_cv_prog_MASTER_NUGGET="masterNugget" 11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11857 break 2 11858 fi 11859done 11860 done 11861IFS=$as_save_IFS 11862 11863 test -z "$ac_cv_prog_MASTER_NUGGET" && ac_cv_prog_MASTER_NUGGET=""no"" 11864fi 11865fi 11866MASTER_NUGGET=$ac_cv_prog_MASTER_NUGGET 11867if test -n "$MASTER_NUGGET"; then 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MASTER_NUGGET" >&5 11869$as_echo "$MASTER_NUGGET" >&6; } 11870else 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11872$as_echo "no" >&6; } 11873fi 11874 11875 11876 if test "x$MASTER_NUGGET" = "xno"; then : 11877 as_fn_error $? "\"master_nugget not found\"" "$LINENO" 5 11878 11879fi 11880fi 11881# This file provides the macros to work with rzb_visibility.h provided by the razorback_utils library. 11882 11883# modified from gnulib/m4/visibility.m4 11884 11885 11886 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility support" >&5 11888$as_echo_n "checking for visibility support... " >&6; } 11889 if test "${gl_cv_cc_visibility+set}" = set; then : 11890 $as_echo_n "(cached) " >&6 11891else 11892 11893 gl_save_CFLAGS="$CFLAGS" 11894 # Add -Werror flag since some compilers, e.g. icc 7.1, don't support it, 11895 # but only warn about it instead of compilation failing, This is done in 11896 # compiler_options.m4 11897 CFLAGS="$CFLAGS -fvisibility=hidden" 11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11899/* end confdefs.h. */ 11900 11901 extern __attribute__((__visibility__("hidden"))) int hiddenvar; 11902 extern __attribute__((__visibility__("default"))) int exportedvar; 11903 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 11904 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 11905int 11906main () 11907{ 11908 11909 ; 11910 return 0; 11911} 11912_ACEOF 11913if ac_fn_c_try_compile "$LINENO"; then : 11914 gl_cv_cc_visibility="yes" 11915else 11916 gl_cv_cc_visibility="no" 11917fi 11918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11919 11920fi 11921 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 11923$as_echo "$gl_cv_cc_visibility" >&6; } 11924 if test "x$gl_cv_cc_visibility" = "xyes"; then 11925 CFLAGS="$gl_save_CFLAGS -fvisibility=hidden" 11926 11927$as_echo "#define HAVE_VISIBILITY 1" >>confdefs.h 11928 11929 else 11930 CFLAGS="$gl_save_CFLAGS" 11931 fi 11932 11933 11934 11935 11936 11937case "$host" in 11938 *-linux*) 11939 11940pkg_failed=no 11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARCHIVE" >&5 11942$as_echo_n "checking for ARCHIVE... " >&6; } 11943 11944if test -n "$ARCHIVE_CFLAGS"; then 11945 pkg_cv_ARCHIVE_CFLAGS="$ARCHIVE_CFLAGS" 11946 elif test -n "$PKG_CONFIG"; then 11947 if test -n "$PKG_CONFIG" && \ 11948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libarchive >= 2.7.902a\""; } >&5 11949 ($PKG_CONFIG --exists --print-errors "libarchive >= 2.7.902a") 2>&5 11950 ac_status=$? 11951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11952 test $ac_status = 0; }; then 11953 pkg_cv_ARCHIVE_CFLAGS=`$PKG_CONFIG --cflags "libarchive >= 2.7.902a" 2>/dev/null` 11954else 11955 pkg_failed=yes 11956fi 11957 else 11958 pkg_failed=untried 11959fi 11960if test -n "$ARCHIVE_LIBS"; then 11961 pkg_cv_ARCHIVE_LIBS="$ARCHIVE_LIBS" 11962 elif test -n "$PKG_CONFIG"; then 11963 if test -n "$PKG_CONFIG" && \ 11964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libarchive >= 2.7.902a\""; } >&5 11965 ($PKG_CONFIG --exists --print-errors "libarchive >= 2.7.902a") 2>&5 11966 ac_status=$? 11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11968 test $ac_status = 0; }; then 11969 pkg_cv_ARCHIVE_LIBS=`$PKG_CONFIG --libs "libarchive >= 2.7.902a" 2>/dev/null` 11970else 11971 pkg_failed=yes 11972fi 11973 else 11974 pkg_failed=untried 11975fi 11976 11977 11978 11979if test $pkg_failed = yes; then 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11981$as_echo "no" >&6; } 11982 11983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11984 _pkg_short_errors_supported=yes 11985else 11986 _pkg_short_errors_supported=no 11987fi 11988 if test $_pkg_short_errors_supported = yes; then 11989 ARCHIVE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libarchive >= 2.7.902a" 2>&1` 11990 else 11991 ARCHIVE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libarchive >= 2.7.902a" 2>&1` 11992 fi 11993 # Put the nasty error message in config.log where it belongs 11994 echo "$ARCHIVE_PKG_ERRORS" >&5 11995 11996 as_fn_error $? "Package requirements (libarchive >= 2.7.902a) were not met: 11997 11998$ARCHIVE_PKG_ERRORS 11999 12000Consider adjusting the PKG_CONFIG_PATH environment variable if you 12001installed software in a non-standard prefix. 12002 12003Alternatively, you may set the environment variables ARCHIVE_CFLAGS 12004and ARCHIVE_LIBS to avoid the need to call pkg-config. 12005See the pkg-config man page for more details." "$LINENO" 5 12006elif test $pkg_failed = untried; then 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12008$as_echo "no" >&6; } 12009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12011as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12012is in your PATH or set the PKG_CONFIG environment variable to the full 12013path to pkg-config. 12014 12015Alternatively, you may set the environment variables ARCHIVE_CFLAGS 12016and ARCHIVE_LIBS to avoid the need to call pkg-config. 12017See the pkg-config man page for more details. 12018 12019To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12020See \`config.log' for more details" "$LINENO" 5 ; } 12021else 12022 ARCHIVE_CFLAGS=$pkg_cv_ARCHIVE_CFLAGS 12023 ARCHIVE_LIBS=$pkg_cv_ARCHIVE_LIBS 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12025$as_echo "yes" >&6; } 12026 12027fi 12028 CFLAGS="$ARCHIVE_CFLAGS $CFALGS" 12029 LIBS="$ARCHIVE_LIBS $LIBS" 12030 ;; 12031 *-freebsd*) 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5 12033$as_echo_n "checking for archive_read_new in -larchive... " >&6; } 12034if test "${ac_cv_lib_archive_archive_read_new+set}" = set; then : 12035 $as_echo_n "(cached) " >&6 12036else 12037 ac_check_lib_save_LIBS=$LIBS 12038LIBS="-larchive $LIBS" 12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12040/* end confdefs.h. */ 12041 12042/* Override any GCC internal prototype to avoid an error. 12043 Use char because int might match the return type of a GCC 12044 builtin and then its argument prototype would still apply. */ 12045#ifdef __cplusplus 12046extern "C" 12047#endif 12048char archive_read_new (); 12049int 12050main () 12051{ 12052return archive_read_new (); 12053 ; 12054 return 0; 12055} 12056_ACEOF 12057if ac_fn_c_try_link "$LINENO"; then : 12058 ac_cv_lib_archive_archive_read_new=yes 12059else 12060 ac_cv_lib_archive_archive_read_new=no 12061fi 12062rm -f core conftest.err conftest.$ac_objext \ 12063 conftest$ac_exeext conftest.$ac_ext 12064LIBS=$ac_check_lib_save_LIBS 12065fi 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5 12067$as_echo "$ac_cv_lib_archive_archive_read_new" >&6; } 12068if test "x$ac_cv_lib_archive_archive_read_new" = x""yes; then : 12069 cat >>confdefs.h <<_ACEOF 12070#define HAVE_LIBARCHIVE 1 12071_ACEOF 12072 12073 LIBS="-larchive $LIBS" 12074 12075else 12076 ARCHIVE="no" 12077fi 12078 12079 if test "x$ARCHIVE" = "xno"; then : 12080 as_fn_error $? "\"archive library not found\"" "$LINENO" 5 12081 12082fi 12083 12084 for ac_header in archive.h 12085do : 12086 ac_fn_c_check_header_mongrel "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default" 12087if test "x$ac_cv_header_archive_h" = x""yes; then : 12088 cat >>confdefs.h <<_ACEOF 12089#define HAVE_ARCHIVE_H 1 12090_ACEOF 12091 12092else 12093 ARCHIVE_HEADER="no" 12094fi 12095 12096done 12097 12098 if test "x$ARCHIVE_HEADER" = "xno"; then : 12099 as_fn_error $? "\"archive header file not found\"" "$LINENO" 5 12100 12101fi 12102 12103 ;; 12104esac 12105 12106 12107# Pull in the standard header and function checks. 12108# Checks for header files. 12109for ac_header in arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h unistd.h stdarg.h 12110do : 12111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12112ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12113if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12114 cat >>confdefs.h <<_ACEOF 12115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12116_ACEOF 12117 12118fi 12119 12120done 12121 12122 12123# Checks for typedefs, structures, and compiler characteristics. 12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12125$as_echo_n "checking for inline... " >&6; } 12126if test "${ac_cv_c_inline+set}" = set; then : 12127 $as_echo_n "(cached) " >&6 12128else 12129 ac_cv_c_inline=no 12130for ac_kw in inline __inline__ __inline; do 12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12132/* end confdefs.h. */ 12133#ifndef __cplusplus 12134typedef int foo_t; 12135static $ac_kw foo_t static_foo () {return 0; } 12136$ac_kw foo_t foo () {return 0; } 12137#endif 12138 12139_ACEOF 12140if ac_fn_c_try_compile "$LINENO"; then : 12141 ac_cv_c_inline=$ac_kw 12142fi 12143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12144 test "$ac_cv_c_inline" != no && break 12145done 12146 12147fi 12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12149$as_echo "$ac_cv_c_inline" >&6; } 12150 12151case $ac_cv_c_inline in 12152 inline | yes) ;; 12153 *) 12154 case $ac_cv_c_inline in 12155 no) ac_val=;; 12156 *) ac_val=$ac_cv_c_inline;; 12157 esac 12158 cat >>confdefs.h <<_ACEOF 12159#ifndef __cplusplus 12160#define inline $ac_val 12161#endif 12162_ACEOF 12163 ;; 12164esac 12165 12166ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12167if test "x$ac_cv_type_size_t" = x""yes; then : 12168 12169else 12170 12171cat >>confdefs.h <<_ACEOF 12172#define size_t unsigned int 12173_ACEOF 12174 12175fi 12176 12177ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 12178if test "x$ac_cv_type_ssize_t" = x""yes; then : 12179 12180else 12181 12182cat >>confdefs.h <<_ACEOF 12183#define ssize_t int 12184_ACEOF 12185 12186fi 12187 12188ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 12189case $ac_cv_c_uint16_t in #( 12190 no|yes) ;; #( 12191 *) 12192 12193 12194cat >>confdefs.h <<_ACEOF 12195#define uint16_t $ac_cv_c_uint16_t 12196_ACEOF 12197;; 12198 esac 12199 12200ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 12201case $ac_cv_c_uint32_t in #( 12202 no|yes) ;; #( 12203 *) 12204 12205$as_echo "#define _UINT32_T 1" >>confdefs.h 12206 12207 12208cat >>confdefs.h <<_ACEOF 12209#define uint32_t $ac_cv_c_uint32_t 12210_ACEOF 12211;; 12212 esac 12213 12214ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 12215case $ac_cv_c_uint8_t in #( 12216 no|yes) ;; #( 12217 *) 12218 12219$as_echo "#define _UINT8_T 1" >>confdefs.h 12220 12221 12222cat >>confdefs.h <<_ACEOF 12223#define uint8_t $ac_cv_c_uint8_t 12224_ACEOF 12225;; 12226 esac 12227 12228 12229 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 12230if test "x$ac_cv_type_uintptr_t" = x""yes; then : 12231 12232$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 12233 12234else 12235 for ac_type in 'unsigned int' 'unsigned long int' \ 12236 'unsigned long long int'; do 12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12238/* end confdefs.h. */ 12239$ac_includes_default 12240int 12241main () 12242{ 12243static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 12244test_array [0] = 0 12245 12246 ; 12247 return 0; 12248} 12249_ACEOF 12250if ac_fn_c_try_compile "$LINENO"; then : 12251 12252cat >>confdefs.h <<_ACEOF 12253#define uintptr_t $ac_type 12254_ACEOF 12255 12256 ac_type= 12257fi 12258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12259 test -z "$ac_type" && break 12260 done 12261fi 12262 12263 12264 12265 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 12266if test "x$ac_cv_type_intptr_t" = x""yes; then : 12267 12268$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 12269 12270else 12271 for ac_type in 'int' 'long int' 'long long int'; do 12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273/* end confdefs.h. */ 12274$ac_includes_default 12275int 12276main () 12277{ 12278static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 12279test_array [0] = 0 12280 12281 ; 12282 return 0; 12283} 12284_ACEOF 12285if ac_fn_c_try_compile "$LINENO"; then : 12286 12287cat >>confdefs.h <<_ACEOF 12288#define intptr_t $ac_type 12289_ACEOF 12290 12291 ac_type= 12292fi 12293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12294 test -z "$ac_type" && break 12295 done 12296fi 12297 12298 12299 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 12301$as_echo_n "checking for long long int... " >&6; } 12302if test "${ac_cv_type_long_long_int+set}" = set; then : 12303 $as_echo_n "(cached) " >&6 12304else 12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12306/* end confdefs.h. */ 12307 12308 /* For now, do not test the preprocessor; as of 2007 there are too many 12309 implementations with broken preprocessors. Perhaps this can 12310 be revisited in 2012. In the meantime, code should not expect 12311 #if to work with literals wider than 32 bits. */ 12312 /* Test literals. */ 12313 long long int ll = 9223372036854775807ll; 12314 long long int nll = -9223372036854775807LL; 12315 unsigned long long int ull = 18446744073709551615ULL; 12316 /* Test constant expressions. */ 12317 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 12318 ? 1 : -1)]; 12319 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 12320 ? 1 : -1)]; 12321 int i = 63; 12322int 12323main () 12324{ 12325/* Test availability of runtime routines for shift and division. */ 12326 long long int llmax = 9223372036854775807ll; 12327 unsigned long long int ullmax = 18446744073709551615ull; 12328 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 12329 | (llmax / ll) | (llmax % ll) 12330 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 12331 | (ullmax / ull) | (ullmax % ull)); 12332 ; 12333 return 0; 12334} 12335 12336_ACEOF 12337if ac_fn_c_try_link "$LINENO"; then : 12338 if test "$cross_compiling" = yes; then : 12339 ac_cv_type_long_long_int=yes 12340else 12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343#include <limits.h> 12344 #ifndef LLONG_MAX 12345 # define HALF \ 12346 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 12347 # define LLONG_MAX (HALF - 1 + HALF) 12348 #endif 12349int 12350main () 12351{ 12352long long int n = 1; 12353 int i; 12354 for (i = 0; ; i++) 12355 { 12356 long long int m = n << i; 12357 if (m >> i != n) 12358 return 1; 12359 if (LLONG_MAX / 2 < m) 12360 break; 12361 } 12362 return 0; 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367if ac_fn_c_try_run "$LINENO"; then : 12368 ac_cv_type_long_long_int=yes 12369else 12370 ac_cv_type_long_long_int=no 12371fi 12372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12373 conftest.$ac_objext conftest.beam conftest.$ac_ext 12374fi 12375 12376else 12377 ac_cv_type_long_long_int=no 12378fi 12379rm -f core conftest.err conftest.$ac_objext \ 12380 conftest$ac_exeext conftest.$ac_ext 12381fi 12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 12383$as_echo "$ac_cv_type_long_long_int" >&6; } 12384 if test $ac_cv_type_long_long_int = yes; then 12385 12386$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 12387 12388 fi 12389 12390 12391 12392 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 12393if test "x$ac_cv_type_intmax_t" = x""yes; then : 12394 12395$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 12396 12397else 12398 test $ac_cv_type_long_long_int = yes \ 12399 && ac_type='long long int' \ 12400 || ac_type='long int' 12401 12402cat >>confdefs.h <<_ACEOF 12403#define intmax_t $ac_type 12404_ACEOF 12405 12406fi 12407 12408 12409 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 12411$as_echo_n "checking for unsigned long long int... " >&6; } 12412if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417 12418 /* For now, do not test the preprocessor; as of 2007 there are too many 12419 implementations with broken preprocessors. Perhaps this can 12420 be revisited in 2012. In the meantime, code should not expect 12421 #if to work with literals wider than 32 bits. */ 12422 /* Test literals. */ 12423 long long int ll = 9223372036854775807ll; 12424 long long int nll = -9223372036854775807LL; 12425 unsigned long long int ull = 18446744073709551615ULL; 12426 /* Test constant expressions. */ 12427 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 12428 ? 1 : -1)]; 12429 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 12430 ? 1 : -1)]; 12431 int i = 63; 12432int 12433main () 12434{ 12435/* Test availability of runtime routines for shift and division. */ 12436 long long int llmax = 9223372036854775807ll; 12437 unsigned long long int ullmax = 18446744073709551615ull; 12438 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 12439 | (llmax / ll) | (llmax % ll) 12440 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 12441 | (ullmax / ull) | (ullmax % ull)); 12442 ; 12443 return 0; 12444} 12445 12446_ACEOF 12447if ac_fn_c_try_link "$LINENO"; then : 12448 ac_cv_type_unsigned_long_long_int=yes 12449else 12450 ac_cv_type_unsigned_long_long_int=no 12451fi 12452rm -f core conftest.err conftest.$ac_objext \ 12453 conftest$ac_exeext conftest.$ac_ext 12454fi 12455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 12456$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 12457 if test $ac_cv_type_unsigned_long_long_int = yes; then 12458 12459$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 12460 12461 fi 12462 12463 12464 12465 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 12466if test "x$ac_cv_type_uintmax_t" = x""yes; then : 12467 12468$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 12469 12470else 12471 test $ac_cv_type_unsigned_long_long_int = yes \ 12472 && ac_type='unsigned long long int' \ 12473 || ac_type='unsigned long int' 12474 12475cat >>confdefs.h <<_ACEOF 12476#define uintmax_t $ac_type 12477_ACEOF 12478 12479fi 12480 12481 12482ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12483if test "x$ac_cv_type_size_t" = x""yes; then : 12484 12485cat >>confdefs.h <<_ACEOF 12486#define HAVE_SIZE_T 1 12487_ACEOF 12488 12489 12490fi 12491 12492ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 12493if test "x$ac_cv_type_ssize_t" = x""yes; then : 12494 12495cat >>confdefs.h <<_ACEOF 12496#define HAVE_SSIZE_T 1 12497_ACEOF 12498 12499 12500fi 12501 12502ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 12503if test "x$ac_cv_type_uint16_t" = x""yes; then : 12504 12505cat >>confdefs.h <<_ACEOF 12506#define HAVE_UINT16_T 1 12507_ACEOF 12508 12509 12510fi 12511 12512ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 12513if test "x$ac_cv_type_uint32_t" = x""yes; then : 12514 12515cat >>confdefs.h <<_ACEOF 12516#define HAVE_UINT32_T 1 12517_ACEOF 12518 12519 12520fi 12521 12522ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 12523if test "x$ac_cv_type_uint8_t" = x""yes; then : 12524 12525cat >>confdefs.h <<_ACEOF 12526#define HAVE_UINT8_T 1 12527_ACEOF 12528 12529 12530fi 12531 12532ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 12533if test "x$ac_cv_type_uintptr_t" = x""yes; then : 12534 12535cat >>confdefs.h <<_ACEOF 12536#define HAVE_UINTPTR_T 1 12537_ACEOF 12538 12539 12540fi 12541 12542ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 12543if test "x$ac_cv_type_intptr_t" = x""yes; then : 12544 12545cat >>confdefs.h <<_ACEOF 12546#define HAVE_INTPTR_T 1 12547_ACEOF 12548 12549 12550fi 12551 12552ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 12553if test "x$ac_cv_type_intmax_t" = x""yes; then : 12554 12555cat >>confdefs.h <<_ACEOF 12556#define HAVE_INTMAX_T 1 12557_ACEOF 12558 12559 12560fi 12561 12562ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 12563if test "x$ac_cv_type_uintmax_t" = x""yes; then : 12564 12565cat >>confdefs.h <<_ACEOF 12566#define HAVE_UINTMAX_T 1 12567_ACEOF 12568 12569 12570fi 12571 12572 12573# Checks for library functions. 12574for ac_header in stdlib.h 12575do : 12576 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12577if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12578 cat >>confdefs.h <<_ACEOF 12579#define HAVE_STDLIB_H 1 12580_ACEOF 12581 12582fi 12583 12584done 12585 12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 12587$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 12588if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 if test "$cross_compiling" = yes; then : 12592 ac_cv_func_malloc_0_nonnull=no 12593else 12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12595/* end confdefs.h. */ 12596#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12597# include <stdlib.h> 12598#else 12599char *malloc (); 12600#endif 12601 12602int 12603main () 12604{ 12605return ! malloc (0); 12606 ; 12607 return 0; 12608} 12609_ACEOF 12610if ac_fn_c_try_run "$LINENO"; then : 12611 ac_cv_func_malloc_0_nonnull=yes 12612else 12613 ac_cv_func_malloc_0_nonnull=no 12614fi 12615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12616 conftest.$ac_objext conftest.beam conftest.$ac_ext 12617fi 12618 12619fi 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 12621$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 12622if test $ac_cv_func_malloc_0_nonnull = yes; then : 12623 12624$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 12625 12626else 12627 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 12628 12629 case " $LIBOBJS " in 12630 *" malloc.$ac_objext "* ) ;; 12631 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 12632 ;; 12633esac 12634 12635 12636$as_echo "#define malloc rpl_malloc" >>confdefs.h 12637 12638fi 12639 12640 12641 12642 12643 12644 for ac_header in $ac_header_list 12645do : 12646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12647ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12648" 12649if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12650 cat >>confdefs.h <<_ACEOF 12651#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12652_ACEOF 12653 12654fi 12655 12656done 12657 12658 12659 12660 12661 12662 12663 12664 12665for ac_func in getpagesize 12666do : 12667 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12668if test "x$ac_cv_func_getpagesize" = x""yes; then : 12669 cat >>confdefs.h <<_ACEOF 12670#define HAVE_GETPAGESIZE 1 12671_ACEOF 12672 12673fi 12674done 12675 12676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12677$as_echo_n "checking for working mmap... " >&6; } 12678if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 12679 $as_echo_n "(cached) " >&6 12680else 12681 if test "$cross_compiling" = yes; then : 12682 ac_cv_func_mmap_fixed_mapped=no 12683else 12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686$ac_includes_default 12687/* malloc might have been renamed as rpl_malloc. */ 12688#undef malloc 12689 12690/* Thanks to Mike Haertel and Jim Avera for this test. 12691 Here is a matrix of mmap possibilities: 12692 mmap private not fixed 12693 mmap private fixed at somewhere currently unmapped 12694 mmap private fixed at somewhere already mapped 12695 mmap shared not fixed 12696 mmap shared fixed at somewhere currently unmapped 12697 mmap shared fixed at somewhere already mapped 12698 For private mappings, we should verify that changes cannot be read() 12699 back from the file, nor mmap's back from the file at a different 12700 address. (There have been systems where private was not correctly 12701 implemented like the infamous i386 svr4.0, and systems where the 12702 VM page cache was not coherent with the file system buffer cache 12703 like early versions of FreeBSD and possibly contemporary NetBSD.) 12704 For shared mappings, we should conversely verify that changes get 12705 propagated back to all the places they're supposed to be. 12706 12707 Grep wants private fixed already mapped. 12708 The main things grep needs to know about mmap are: 12709 * does it exist and is it safe to write into the mmap'd area 12710 * how to use it (BSD variants) */ 12711 12712#include <fcntl.h> 12713#include <sys/mman.h> 12714 12715#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12716char *malloc (); 12717#endif 12718 12719/* This mess was copied from the GNU getpagesize.h. */ 12720#ifndef HAVE_GETPAGESIZE 12721# ifdef _SC_PAGESIZE 12722# define getpagesize() sysconf(_SC_PAGESIZE) 12723# else /* no _SC_PAGESIZE */ 12724# ifdef HAVE_SYS_PARAM_H 12725# include <sys/param.h> 12726# ifdef EXEC_PAGESIZE 12727# define getpagesize() EXEC_PAGESIZE 12728# else /* no EXEC_PAGESIZE */ 12729# ifdef NBPG 12730# define getpagesize() NBPG * CLSIZE 12731# ifndef CLSIZE 12732# define CLSIZE 1 12733# endif /* no CLSIZE */ 12734# else /* no NBPG */ 12735# ifdef NBPC 12736# define getpagesize() NBPC 12737# else /* no NBPC */ 12738# ifdef PAGESIZE 12739# define getpagesize() PAGESIZE 12740# endif /* PAGESIZE */ 12741# endif /* no NBPC */ 12742# endif /* no NBPG */ 12743# endif /* no EXEC_PAGESIZE */ 12744# else /* no HAVE_SYS_PARAM_H */ 12745# define getpagesize() 8192 /* punt totally */ 12746# endif /* no HAVE_SYS_PARAM_H */ 12747# endif /* no _SC_PAGESIZE */ 12748 12749#endif /* no HAVE_GETPAGESIZE */ 12750 12751int 12752main () 12753{ 12754 char *data, *data2, *data3; 12755 const char *cdata2; 12756 int i, pagesize; 12757 int fd, fd2; 12758 12759 pagesize = getpagesize (); 12760 12761 /* First, make a file with some known garbage in it. */ 12762 data = (char *) malloc (pagesize); 12763 if (!data) 12764 return 1; 12765 for (i = 0; i < pagesize; ++i) 12766 *(data + i) = rand (); 12767 umask (0); 12768 fd = creat ("conftest.mmap", 0600); 12769 if (fd < 0) 12770 return 2; 12771 if (write (fd, data, pagesize) != pagesize) 12772 return 3; 12773 close (fd); 12774 12775 /* Next, check that the tail of a page is zero-filled. File must have 12776 non-zero length, otherwise we risk SIGBUS for entire page. */ 12777 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12778 if (fd2 < 0) 12779 return 4; 12780 cdata2 = ""; 12781 if (write (fd2, cdata2, 1) != 1) 12782 return 5; 12783 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12784 if (data2 == MAP_FAILED) 12785 return 6; 12786 for (i = 0; i < pagesize; ++i) 12787 if (*(data2 + i)) 12788 return 7; 12789 close (fd2); 12790 if (munmap (data2, pagesize)) 12791 return 8; 12792 12793 /* Next, try to mmap the file at a fixed address which already has 12794 something else allocated at it. If we can, also make sure that 12795 we see the same garbage. */ 12796 fd = open ("conftest.mmap", O_RDWR); 12797 if (fd < 0) 12798 return 9; 12799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12800 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12801 return 10; 12802 for (i = 0; i < pagesize; ++i) 12803 if (*(data + i) != *(data2 + i)) 12804 return 11; 12805 12806 /* Finally, make sure that changes to the mapped area do not 12807 percolate back to the file as seen by read(). (This is a bug on 12808 some variants of i386 svr4.0.) */ 12809 for (i = 0; i < pagesize; ++i) 12810 *(data2 + i) = *(data2 + i) + 1; 12811 data3 = (char *) malloc (pagesize); 12812 if (!data3) 12813 return 12; 12814 if (read (fd, data3, pagesize) != pagesize) 12815 return 13; 12816 for (i = 0; i < pagesize; ++i) 12817 if (*(data + i) != *(data3 + i)) 12818 return 14; 12819 close (fd); 12820 return 0; 12821} 12822_ACEOF 12823if ac_fn_c_try_run "$LINENO"; then : 12824 ac_cv_func_mmap_fixed_mapped=yes 12825else 12826 ac_cv_func_mmap_fixed_mapped=no 12827fi 12828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12829 conftest.$ac_objext conftest.beam conftest.$ac_ext 12830fi 12831 12832fi 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 12834$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 12835if test $ac_cv_func_mmap_fixed_mapped = yes; then 12836 12837$as_echo "#define HAVE_MMAP 1" >>confdefs.h 12838 12839fi 12840rm -f conftest.mmap conftest.txt 12841 12842for ac_header in stdlib.h 12843do : 12844 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12845if test "x$ac_cv_header_stdlib_h" = x""yes; then : 12846 cat >>confdefs.h <<_ACEOF 12847#define HAVE_STDLIB_H 1 12848_ACEOF 12849 12850fi 12851 12852done 12853 12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 12855$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12856if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : 12857 $as_echo_n "(cached) " >&6 12858else 12859 if test "$cross_compiling" = yes; then : 12860 ac_cv_func_realloc_0_nonnull=no 12861else 12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12863/* end confdefs.h. */ 12864#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12865# include <stdlib.h> 12866#else 12867char *realloc (); 12868#endif 12869 12870int 12871main () 12872{ 12873return ! realloc (0, 0); 12874 ; 12875 return 0; 12876} 12877_ACEOF 12878if ac_fn_c_try_run "$LINENO"; then : 12879 ac_cv_func_realloc_0_nonnull=yes 12880else 12881 ac_cv_func_realloc_0_nonnull=no 12882fi 12883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12884 conftest.$ac_objext conftest.beam conftest.$ac_ext 12885fi 12886 12887fi 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 12889$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12890if test $ac_cv_func_realloc_0_nonnull = yes; then : 12891 12892$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12893 12894else 12895 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 12896 12897 case " $LIBOBJS " in 12898 *" realloc.$ac_objext "* ) ;; 12899 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 12900 ;; 12901esac 12902 12903 12904$as_echo "#define realloc rpl_realloc" >>confdefs.h 12905 12906fi 12907 12908 12909for ac_func in inet_ntoa memset munmap socket strdup strerror strncasecmp strstr strtoul 12910do : 12911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12912ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12913if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12914 cat >>confdefs.h <<_ACEOF 12915#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12916_ACEOF 12917 12918fi 12919done 12920 12921 12922 12923 12924# Pull in the compiler customisation options for different compilers. 12925ICC=no 12926if eval "echo $CC|grep icc >/dev/null" ; then 12927 if eval "$CC -help |grep libcxa >/dev/null" ; then 12928 CFLAGS="$CFLAGS -ip -static-libcxa" 12929 XCCFLAGS="-XCClinker -static-libcxa" 12930 else 12931 CFLAGS="$CFLAGS -ip -static-intel" 12932 XCCFLAGS="-XCClinker -static-intel" 12933 fi 12934 if test "$COPT" = "-O2" ; then 12935 COPT="-O3" 12936 fi 12937 CWARNINGS="-wd869" 12938 ICC=yes 12939 GCC=no 12940fi 12941 12942if test "$GCC" = yes ; then 12943 if test "x$enable_debug" = "xyes"; then 12944 CFLAGS="-ggdb $CFLAGS" 12945 else 12946 CFLAGS="-O2 $CFLAGS" 12947 fi 12948 12949 if test "x$enable_profile" = "xyes"; then 12950 LDFLAGS="$LDFLAGS -XCClinker -pg" 12951 fi 12952 12953 CFLAGS="$CFLAGS -std=c99 -fno-strict-aliasing" 12954 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing" 12955 CWARNINGS="$CWARNINGS -Wall -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wformat-security -Wsign-compare -Wcast-align -Wno-unused-parameter" 12956 if test "x$NOT_PEDANTIC" = "x"; then 12957 CWARNINGS="$CWARNINGS -pedantic" 12958 fi 12959 echo $CFLAGS 12960fi 12961 12962 12963 12964# Pull in the standard compiler and linker flags. 12965CFLAGS="$CFLAGS $CWARNINGS $RAZORBACK_CFLAGS" 12966LDFLAGS="$LDFLAGS $PROFILE_LDFLAGS" 12967 12968echo "LDFLAGS set to $LDFLAGS" 12969echo "CFLAGS set to $CFLAGS" 12970 12971 12972 12973 12974# Pulling configuration for standard nugget substituions. 12975NUGGET_INCLUDES='-I$(top_srcdir)/src' 12976NUGGET_LIBRARIES='$(RAZORBACK_LIBS)' 12977 12978 12979 12980 12981 12982 12983 12984 EXP_VAR=PKGLIBDIR 12985 FROM_VAR="${libdir}/razorback" 12986 12987 prefix_save=$prefix 12988 exec_prefix_save=$exec_prefix 12989 12990 if test "x$prefix" = "xNONE"; then 12991 prefix=$ac_default_prefix 12992 fi 12993 if test "x$exec_prefix" = "xNONE"; then 12994 exec_prefix=$prefix 12995 fi 12996 12997 full_var="$FROM_VAR" 12998 while true; do 12999 new_full_var="`eval echo $full_var`" 13000 if test "x$new_full_var"="x$full_var"; then break; fi 13001 full_var=$new_full_var 13002 done 13003 13004 full_var=$new_full_var 13005 PKGLIBDIR="$full_var" 13006 13007 13008 prefix=$prefix_save 13009 exec_prefix=$exec_prefix_save 13010 13011 13012 13013 13014 13015ac_config_files="$ac_config_files Makefile etc/Makefile m4/Makefile src/Makefile" 13016 13017cat >confcache <<\_ACEOF 13018# This file is a shell script that caches the results of configure 13019# tests run on this system so they can be shared between configure 13020# scripts and configure runs, see configure's option --config-cache. 13021# It is not useful on other systems. If it contains results you don't 13022# want to keep, you may remove or edit it. 13023# 13024# config.status only pays attention to the cache file if you give it 13025# the --recheck option to rerun configure. 13026# 13027# `ac_cv_env_foo' variables (set or unset) will be overridden when 13028# loading this file, other *unset* `ac_cv_foo' will be assigned the 13029# following values. 13030 13031_ACEOF 13032 13033# The following way of writing the cache mishandles newlines in values, 13034# but we know of no workaround that is simple, portable, and efficient. 13035# So, we kill variables containing newlines. 13036# Ultrix sh set writes to stderr and can't be redirected directly, 13037# and sets the high bit in the cache file unless we assign to the vars. 13038( 13039 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13040 eval ac_val=\$$ac_var 13041 case $ac_val in #( 13042 *${as_nl}*) 13043 case $ac_var in #( 13044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13046 esac 13047 case $ac_var in #( 13048 _ | IFS | as_nl) ;; #( 13049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13050 *) { eval $ac_var=; unset $ac_var;} ;; 13051 esac ;; 13052 esac 13053 done 13054 13055 (set) 2>&1 | 13056 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13057 *${as_nl}ac_space=\ *) 13058 # `set' does not quote correctly, so add quotes: double-quote 13059 # substitution turns \\\\ into \\, and sed turns \\ into \. 13060 sed -n \ 13061 "s/'/'\\\\''/g; 13062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13063 ;; #( 13064 *) 13065 # `set' quotes correctly as required by POSIX, so do not add quotes. 13066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13067 ;; 13068 esac | 13069 sort 13070) | 13071 sed ' 13072 /^ac_cv_env_/b end 13073 t clear 13074 :clear 13075 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13076 t end 13077 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13078 :end' >>confcache 13079if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13080 if test -w "$cache_file"; then 13081 test "x$cache_file" != "x/dev/null" && 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13083$as_echo "$as_me: updating cache $cache_file" >&6;} 13084 cat confcache >$cache_file 13085 else 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13087$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13088 fi 13089fi 13090rm -f confcache 13091 13092test "x$prefix" = xNONE && prefix=$ac_default_prefix 13093# Let make expand exec_prefix. 13094test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13095 13096DEFS=-DHAVE_CONFIG_H 13097 13098ac_libobjs= 13099ac_ltlibobjs= 13100U= 13101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13102 # 1. Remove the extension, and $U if already installed. 13103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13106 # will be set to the directory where LIBOBJS objects are built. 13107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13109done 13110LIBOBJS=$ac_libobjs 13111 13112LTLIBOBJS=$ac_ltlibobjs 13113 13114 13115 if test -n "$EXEEXT"; then 13116 am__EXEEXT_TRUE= 13117 am__EXEEXT_FALSE='#' 13118else 13119 am__EXEEXT_TRUE='#' 13120 am__EXEEXT_FALSE= 13121fi 13122 13123if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13124 as_fn_error $? "conditional \"AMDEP\" was never defined. 13125Usually this means the macro was only invoked conditionally." "$LINENO" 5 13126fi 13127if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13128 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13129Usually this means the macro was only invoked conditionally." "$LINENO" 5 13130fi 13131if test -z "${PLATFORM_LINUX_TRUE}" && test -z "${PLATFORM_LINUX_FALSE}"; then 13132 as_fn_error $? "conditional \"PLATFORM_LINUX\" was never defined. 13133Usually this means the macro was only invoked conditionally." "$LINENO" 5 13134fi 13135if test -z "${PLATFORM_FREEBSD_TRUE}" && test -z "${PLATFORM_FREEBSD_FALSE}"; then 13136 as_fn_error $? "conditional \"PLATFORM_FREEBSD\" was never defined. 13137Usually this means the macro was only invoked conditionally." "$LINENO" 5 13138fi 13139 13140: ${CONFIG_STATUS=./config.status} 13141ac_write_fail=0 13142ac_clean_files_save=$ac_clean_files 13143ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13144{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13145$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13146as_write_fail=0 13147cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13148#! $SHELL 13149# Generated by $as_me. 13150# Run this file to recreate the current configuration. 13151# Compiler output produced by configure, useful for debugging 13152# configure, is in config.log if it exists. 13153 13154debug=false 13155ac_cs_recheck=false 13156ac_cs_silent=false 13157 13158SHELL=\${CONFIG_SHELL-$SHELL} 13159export SHELL 13160_ASEOF 13161cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13162## -------------------- ## 13163## M4sh Initialization. ## 13164## -------------------- ## 13165 13166# Be more Bourne compatible 13167DUALCASE=1; export DUALCASE # for MKS sh 13168if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13169 emulate sh 13170 NULLCMD=: 13171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13172 # is contrary to our usage. Disable this feature. 13173 alias -g '${1+"$@"}'='"$@"' 13174 setopt NO_GLOB_SUBST 13175else 13176 case `(set -o) 2>/dev/null` in #( 13177 *posix*) : 13178 set -o posix ;; #( 13179 *) : 13180 ;; 13181esac 13182fi 13183 13184 13185as_nl=' 13186' 13187export as_nl 13188# Printing a long string crashes Solaris 7 /usr/bin/printf. 13189as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13191as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13192# Prefer a ksh shell builtin over an external printf program on Solaris, 13193# but without wasting forks for bash or zsh. 13194if test -z "$BASH_VERSION$ZSH_VERSION" \ 13195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13196 as_echo='print -r --' 13197 as_echo_n='print -rn --' 13198elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13199 as_echo='printf %s\n' 13200 as_echo_n='printf %s' 13201else 13202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13204 as_echo_n='/usr/ucb/echo -n' 13205 else 13206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13207 as_echo_n_body='eval 13208 arg=$1; 13209 case $arg in #( 13210 *"$as_nl"*) 13211 expr "X$arg" : "X\\(.*\\)$as_nl"; 13212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13213 esac; 13214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13215 ' 13216 export as_echo_n_body 13217 as_echo_n='sh -c $as_echo_n_body as_echo' 13218 fi 13219 export as_echo_body 13220 as_echo='sh -c $as_echo_body as_echo' 13221fi 13222 13223# The user is always right. 13224if test "${PATH_SEPARATOR+set}" != set; then 13225 PATH_SEPARATOR=: 13226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13228 PATH_SEPARATOR=';' 13229 } 13230fi 13231 13232 13233# IFS 13234# We need space, tab and new line, in precisely that order. Quoting is 13235# there to prevent editors from complaining about space-tab. 13236# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13237# splitting by setting IFS to empty value.) 13238IFS=" "" $as_nl" 13239 13240# Find who we are. Look in the path if we contain no directory separator. 13241case $0 in #(( 13242 *[\\/]* ) as_myself=$0 ;; 13243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13244for as_dir in $PATH 13245do 13246 IFS=$as_save_IFS 13247 test -z "$as_dir" && as_dir=. 13248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13249 done 13250IFS=$as_save_IFS 13251 13252 ;; 13253esac 13254# We did not find ourselves, most probably we were run as `sh COMMAND' 13255# in which case we are not to be found in the path. 13256if test "x$as_myself" = x; then 13257 as_myself=$0 13258fi 13259if test ! -f "$as_myself"; then 13260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13261 exit 1 13262fi 13263 13264# Unset variables that we do not need and which cause bugs (e.g. in 13265# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13266# suppresses any "Segmentation fault" message there. '((' could 13267# trigger a bug in pdksh 5.2.14. 13268for as_var in BASH_ENV ENV MAIL MAILPATH 13269do eval test x\${$as_var+set} = xset \ 13270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13271done 13272PS1='$ ' 13273PS2='> ' 13274PS4='+ ' 13275 13276# NLS nuisances. 13277LC_ALL=C 13278export LC_ALL 13279LANGUAGE=C 13280export LANGUAGE 13281 13282# CDPATH. 13283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13284 13285 13286# as_fn_error STATUS ERROR [LINENO LOG_FD] 13287# ---------------------------------------- 13288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13290# script with STATUS, using 1 if that was 0. 13291as_fn_error () 13292{ 13293 as_status=$1; test $as_status -eq 0 && as_status=1 13294 if test "$4"; then 13295 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13297 fi 13298 $as_echo "$as_me: error: $2" >&2 13299 as_fn_exit $as_status 13300} # as_fn_error 13301 13302 13303# as_fn_set_status STATUS 13304# ----------------------- 13305# Set $? to STATUS, without forking. 13306as_fn_set_status () 13307{ 13308 return $1 13309} # as_fn_set_status 13310 13311# as_fn_exit STATUS 13312# ----------------- 13313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13314as_fn_exit () 13315{ 13316 set +e 13317 as_fn_set_status $1 13318 exit $1 13319} # as_fn_exit 13320 13321# as_fn_unset VAR 13322# --------------- 13323# Portably unset VAR. 13324as_fn_unset () 13325{ 13326 { eval $1=; unset $1;} 13327} 13328as_unset=as_fn_unset 13329# as_fn_append VAR VALUE 13330# ---------------------- 13331# Append the text in VALUE to the end of the definition contained in VAR. Take 13332# advantage of any shell optimizations that allow amortized linear growth over 13333# repeated appends, instead of the typical quadratic growth present in naive 13334# implementations. 13335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13336 eval 'as_fn_append () 13337 { 13338 eval $1+=\$2 13339 }' 13340else 13341 as_fn_append () 13342 { 13343 eval $1=\$$1\$2 13344 } 13345fi # as_fn_append 13346 13347# as_fn_arith ARG... 13348# ------------------ 13349# Perform arithmetic evaluation on the ARGs, and store the result in the 13350# global $as_val. Take advantage of shells that can avoid forks. The arguments 13351# must be portable across $(()) and expr. 13352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13353 eval 'as_fn_arith () 13354 { 13355 as_val=$(( $* )) 13356 }' 13357else 13358 as_fn_arith () 13359 { 13360 as_val=`expr "$@" || test $? -eq 1` 13361 } 13362fi # as_fn_arith 13363 13364 13365if expr a : '\(a\)' >/dev/null 2>&1 && 13366 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13367 as_expr=expr 13368else 13369 as_expr=false 13370fi 13371 13372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13373 as_basename=basename 13374else 13375 as_basename=false 13376fi 13377 13378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13379 as_dirname=dirname 13380else 13381 as_dirname=false 13382fi 13383 13384as_me=`$as_basename -- "$0" || 13385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13386 X"$0" : 'X\(//\)$' \| \ 13387 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13388$as_echo X/"$0" | 13389 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13390 s//\1/ 13391 q 13392 } 13393 /^X\/\(\/\/\)$/{ 13394 s//\1/ 13395 q 13396 } 13397 /^X\/\(\/\).*/{ 13398 s//\1/ 13399 q 13400 } 13401 s/.*/./; q'` 13402 13403# Avoid depending upon Character Ranges. 13404as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13406as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13407as_cr_digits='0123456789' 13408as_cr_alnum=$as_cr_Letters$as_cr_digits 13409 13410ECHO_C= ECHO_N= ECHO_T= 13411case `echo -n x` in #((((( 13412-n*) 13413 case `echo 'xy\c'` in 13414 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13415 xy) ECHO_C='\c';; 13416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13417 ECHO_T=' ';; 13418 esac;; 13419*) 13420 ECHO_N='-n';; 13421esac 13422 13423rm -f conf$$ conf$$.exe conf$$.file 13424if test -d conf$$.dir; then 13425 rm -f conf$$.dir/conf$$.file 13426else 13427 rm -f conf$$.dir 13428 mkdir conf$$.dir 2>/dev/null 13429fi 13430if (echo >conf$$.file) 2>/dev/null; then 13431 if ln -s conf$$.file conf$$ 2>/dev/null; then 13432 as_ln_s='ln -s' 13433 # ... but there are two gotchas: 13434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13436 # In both cases, we have to default to `cp -p'. 13437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13438 as_ln_s='cp -p' 13439 elif ln conf$$.file conf$$ 2>/dev/null; then 13440 as_ln_s=ln 13441 else 13442 as_ln_s='cp -p' 13443 fi 13444else 13445 as_ln_s='cp -p' 13446fi 13447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13448rmdir conf$$.dir 2>/dev/null 13449 13450 13451# as_fn_mkdir_p 13452# ------------- 13453# Create "$as_dir" as a directory, including parents if necessary. 13454as_fn_mkdir_p () 13455{ 13456 13457 case $as_dir in #( 13458 -*) as_dir=./$as_dir;; 13459 esac 13460 test -d "$as_dir" || eval $as_mkdir_p || { 13461 as_dirs= 13462 while :; do 13463 case $as_dir in #( 13464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13465 *) as_qdir=$as_dir;; 13466 esac 13467 as_dirs="'$as_qdir' $as_dirs" 13468 as_dir=`$as_dirname -- "$as_dir" || 13469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13470 X"$as_dir" : 'X\(//\)[^/]' \| \ 13471 X"$as_dir" : 'X\(//\)$' \| \ 13472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13473$as_echo X"$as_dir" | 13474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13475 s//\1/ 13476 q 13477 } 13478 /^X\(\/\/\)[^/].*/{ 13479 s//\1/ 13480 q 13481 } 13482 /^X\(\/\/\)$/{ 13483 s//\1/ 13484 q 13485 } 13486 /^X\(\/\).*/{ 13487 s//\1/ 13488 q 13489 } 13490 s/.*/./; q'` 13491 test -d "$as_dir" && break 13492 done 13493 test -z "$as_dirs" || eval "mkdir $as_dirs" 13494 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13495 13496 13497} # as_fn_mkdir_p 13498if mkdir -p . 2>/dev/null; then 13499 as_mkdir_p='mkdir -p "$as_dir"' 13500else 13501 test -d ./-p && rmdir ./-p 13502 as_mkdir_p=false 13503fi 13504 13505if test -x / >/dev/null 2>&1; then 13506 as_test_x='test -x' 13507else 13508 if ls -dL / >/dev/null 2>&1; then 13509 as_ls_L_option=L 13510 else 13511 as_ls_L_option= 13512 fi 13513 as_test_x=' 13514 eval sh -c '\'' 13515 if test -d "$1"; then 13516 test -d "$1/."; 13517 else 13518 case $1 in #( 13519 -*)set "./$1";; 13520 esac; 13521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13522 ???[sx]*):;;*)false;;esac;fi 13523 '\'' sh 13524 ' 13525fi 13526as_executable_p=$as_test_x 13527 13528# Sed expression to map a string onto a valid CPP name. 13529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13530 13531# Sed expression to map a string onto a valid variable name. 13532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13533 13534 13535exec 6>&1 13536## ----------------------------------- ## 13537## Main body of $CONFIG_STATUS script. ## 13538## ----------------------------------- ## 13539_ASEOF 13540test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13541 13542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13543# Save the log message, to keep $0 and so on meaningful, and to 13544# report actual input values of CONFIG_FILES etc. instead of their 13545# values after options handling. 13546ac_log=" 13547This file was extended by archiveInflate $as_me 0.5.0, which was 13548generated by GNU Autoconf 2.67. Invocation command line was 13549 13550 CONFIG_FILES = $CONFIG_FILES 13551 CONFIG_HEADERS = $CONFIG_HEADERS 13552 CONFIG_LINKS = $CONFIG_LINKS 13553 CONFIG_COMMANDS = $CONFIG_COMMANDS 13554 $ $0 $@ 13555 13556on `(hostname || uname -n) 2>/dev/null | sed 1q` 13557" 13558 13559_ACEOF 13560 13561case $ac_config_files in *" 13562"*) set x $ac_config_files; shift; ac_config_files=$*;; 13563esac 13564 13565case $ac_config_headers in *" 13566"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13567esac 13568 13569 13570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13571# Files that config.status was made for. 13572config_files="$ac_config_files" 13573config_headers="$ac_config_headers" 13574config_commands="$ac_config_commands" 13575 13576_ACEOF 13577 13578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13579ac_cs_usage="\ 13580\`$as_me' instantiates files and other configuration actions 13581from templates according to the current configuration. Unless the files 13582and actions are specified as TAGs, all are instantiated by default. 13583 13584Usage: $0 [OPTION]... [TAG]... 13585 13586 -h, --help print this help, then exit 13587 -V, --version print version number and configuration settings, then exit 13588 --config print configuration, then exit 13589 -q, --quiet, --silent 13590 do not print progress messages 13591 -d, --debug don't remove temporary files 13592 --recheck update $as_me by reconfiguring in the same conditions 13593 --file=FILE[:TEMPLATE] 13594 instantiate the configuration file FILE 13595 --header=FILE[:TEMPLATE] 13596 instantiate the configuration header FILE 13597 13598Configuration files: 13599$config_files 13600 13601Configuration headers: 13602$config_headers 13603 13604Configuration commands: 13605$config_commands 13606 13607Report bugs to <https://sourceforge.net/apps/trac/razorbacktm/>." 13608 13609_ACEOF 13610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13611ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13612ac_cs_version="\\ 13613archiveInflate config.status 0.5.0 13614configured by $0, generated by GNU Autoconf 2.67, 13615 with options \\"\$ac_cs_config\\" 13616 13617Copyright (C) 2010 Free Software Foundation, Inc. 13618This config.status script is free software; the Free Software Foundation 13619gives unlimited permission to copy, distribute and modify it." 13620 13621ac_pwd='$ac_pwd' 13622srcdir='$srcdir' 13623INSTALL='$INSTALL' 13624MKDIR_P='$MKDIR_P' 13625AWK='$AWK' 13626test -n "\$AWK" || AWK=awk 13627_ACEOF 13628 13629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13630# The default lists apply if the user does not specify any file. 13631ac_need_defaults=: 13632while test $# != 0 13633do 13634 case $1 in 13635 --*=?*) 13636 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13637 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13638 ac_shift=: 13639 ;; 13640 --*=) 13641 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13642 ac_optarg= 13643 ac_shift=: 13644 ;; 13645 *) 13646 ac_option=$1 13647 ac_optarg=$2 13648 ac_shift=shift 13649 ;; 13650 esac 13651 13652 case $ac_option in 13653 # Handling of the options. 13654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13655 ac_cs_recheck=: ;; 13656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13657 $as_echo "$ac_cs_version"; exit ;; 13658 --config | --confi | --conf | --con | --co | --c ) 13659 $as_echo "$ac_cs_config"; exit ;; 13660 --debug | --debu | --deb | --de | --d | -d ) 13661 debug=: ;; 13662 --file | --fil | --fi | --f ) 13663 $ac_shift 13664 case $ac_optarg in 13665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13666 '') as_fn_error $? "missing file argument" ;; 13667 esac 13668 as_fn_append CONFIG_FILES " '$ac_optarg'" 13669 ac_need_defaults=false;; 13670 --header | --heade | --head | --hea ) 13671 $ac_shift 13672 case $ac_optarg in 13673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13674 esac 13675 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13676 ac_need_defaults=false;; 13677 --he | --h) 13678 # Conflict between --help and --header 13679 as_fn_error $? "ambiguous option: \`$1' 13680Try \`$0 --help' for more information.";; 13681 --help | --hel | -h ) 13682 $as_echo "$ac_cs_usage"; exit ;; 13683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13684 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13685 ac_cs_silent=: ;; 13686 13687 # This is an error. 13688 -*) as_fn_error $? "unrecognized option: \`$1' 13689Try \`$0 --help' for more information." ;; 13690 13691 *) as_fn_append ac_config_targets " $1" 13692 ac_need_defaults=false ;; 13693 13694 esac 13695 shift 13696done 13697 13698ac_configure_extra_args= 13699 13700if $ac_cs_silent; then 13701 exec 6>/dev/null 13702 ac_configure_extra_args="$ac_configure_extra_args --silent" 13703fi 13704 13705_ACEOF 13706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13707if \$ac_cs_recheck; then 13708 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13709 shift 13710 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13711 CONFIG_SHELL='$SHELL' 13712 export CONFIG_SHELL 13713 exec "\$@" 13714fi 13715 13716_ACEOF 13717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13718exec 5>>config.log 13719{ 13720 echo 13721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13722## Running $as_me. ## 13723_ASBOX 13724 $as_echo "$ac_log" 13725} >&5 13726 13727_ACEOF 13728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13729# 13730# INIT-COMMANDS 13731# 13732AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13733 13734 13735# The HP-UX ksh and POSIX shell print the target directory to stdout 13736# if CDPATH is set. 13737(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13738 13739sed_quote_subst='$sed_quote_subst' 13740double_quote_subst='$double_quote_subst' 13741delay_variable_subst='$delay_variable_subst' 13742macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13743macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13744enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13745enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13746pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13747enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13748host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13749host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13750host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13751build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13752build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13753build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13754SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13755Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13756GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13757EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13758FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13759LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13760NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13761LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13762max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13763ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13764exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13765lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13766lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13767lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13768reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13769reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13770OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13771deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13772file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13773AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13774AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13775STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13776RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13777old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13778old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13779old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13780CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13781CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13782compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13783GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13784lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13785lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13786lt_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"`' 13787lt_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"`' 13788objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13789SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13790ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13791MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13792lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13793lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13794lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13795lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13796lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13797need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13798DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13799NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13800LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13801OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13802OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13803libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13804shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13805extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13806archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13807enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13808export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13809whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13810compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13811old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13812old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13813archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13814archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13815module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13816module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13817with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13818allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13819no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13820hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13821hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13822hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13823hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13824hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13825hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13826hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13827hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13828inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13829link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13830fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13831always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13832export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13833exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13834include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13835prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13836file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13837variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13838need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13839need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13840version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13841runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13842shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13843shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13844libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13845library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13846soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13847postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13848postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13849finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13850finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13851hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13852sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13853sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13854hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13855enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13856enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13857enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13858old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13859striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13860 13861LTCC='$LTCC' 13862LTCFLAGS='$LTCFLAGS' 13863compiler='$compiler_DEFAULT' 13864 13865# Quote evaled strings. 13866for var in SED \ 13867GREP \ 13868EGREP \ 13869FGREP \ 13870LD \ 13871NM \ 13872LN_S \ 13873lt_SP2NL \ 13874lt_NL2SP \ 13875reload_flag \ 13876OBJDUMP \ 13877deplibs_check_method \ 13878file_magic_cmd \ 13879AR \ 13880AR_FLAGS \ 13881STRIP \ 13882RANLIB \ 13883CC \ 13884CFLAGS \ 13885compiler \ 13886lt_cv_sys_global_symbol_pipe \ 13887lt_cv_sys_global_symbol_to_cdecl \ 13888lt_cv_sys_global_symbol_to_c_name_address \ 13889lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13890SHELL \ 13891ECHO \ 13892lt_prog_compiler_no_builtin_flag \ 13893lt_prog_compiler_wl \ 13894lt_prog_compiler_pic \ 13895lt_prog_compiler_static \ 13896lt_cv_prog_compiler_c_o \ 13897need_locks \ 13898DSYMUTIL \ 13899NMEDIT \ 13900LIPO \ 13901OTOOL \ 13902OTOOL64 \ 13903shrext_cmds \ 13904export_dynamic_flag_spec \ 13905whole_archive_flag_spec \ 13906compiler_needs_object \ 13907with_gnu_ld \ 13908allow_undefined_flag \ 13909no_undefined_flag \ 13910hardcode_libdir_flag_spec \ 13911hardcode_libdir_flag_spec_ld \ 13912hardcode_libdir_separator \ 13913fix_srcfile_path \ 13914exclude_expsyms \ 13915include_expsyms \ 13916file_list_spec \ 13917variables_saved_for_relink \ 13918libname_spec \ 13919library_names_spec \ 13920soname_spec \ 13921finish_eval \ 13922old_striplib \ 13923striplib; do 13924 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13925 *[\\\\\\\`\\"\\\$]*) 13926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13927 ;; 13928 *) 13929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13930 ;; 13931 esac 13932done 13933 13934# Double-quote double-evaled strings. 13935for var in reload_cmds \ 13936old_postinstall_cmds \ 13937old_postuninstall_cmds \ 13938old_archive_cmds \ 13939extract_expsyms_cmds \ 13940old_archive_from_new_cmds \ 13941old_archive_from_expsyms_cmds \ 13942archive_cmds \ 13943archive_expsym_cmds \ 13944module_cmds \ 13945module_expsym_cmds \ 13946export_symbols_cmds \ 13947prelink_cmds \ 13948postinstall_cmds \ 13949postuninstall_cmds \ 13950finish_cmds \ 13951sys_lib_search_path_spec \ 13952sys_lib_dlsearch_path_spec; do 13953 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13954 *[\\\\\\\`\\"\\\$]*) 13955 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13956 ;; 13957 *) 13958 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13959 ;; 13960 esac 13961done 13962 13963# Fix-up fallback echo if it was mangled by the above quoting rules. 13964case \$lt_ECHO in 13965*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13966 ;; 13967esac 13968 13969ac_aux_dir='$ac_aux_dir' 13970xsi_shell='$xsi_shell' 13971lt_shell_append='$lt_shell_append' 13972 13973# See if we are running on zsh, and set the options which allow our 13974# commands through without removal of \ escapes INIT. 13975if test -n "\${ZSH_VERSION+set}" ; then 13976 setopt NO_GLOB_SUBST 13977fi 13978 13979 13980 PACKAGE='$PACKAGE' 13981 VERSION='$VERSION' 13982 TIMESTAMP='$TIMESTAMP' 13983 RM='$RM' 13984 ofile='$ofile' 13985 13986 13987 13988 13989_ACEOF 13990 13991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13992 13993# Handling of arguments. 13994for ac_config_target in $ac_config_targets 13995do 13996 case $ac_config_target in 13997 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13998 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13999 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14000 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14001 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 14002 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 14003 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14004 14005 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 14006 esac 14007done 14008 14009 14010# If the user did not use the arguments to specify the items to instantiate, 14011# then the envvar interface is used. Set only those that are not. 14012# We use the long form for the default assignment because of an extremely 14013# bizarre bug on SunOS 4.1.3. 14014if $ac_need_defaults; then 14015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14018fi 14019 14020# Have a temporary directory for convenience. Make it in the build tree 14021# simply because there is no reason against having it here, and in addition, 14022# creating and moving files from /tmp can sometimes cause problems. 14023# Hook for its removal unless debugging. 14024# Note that there is a small window in which the directory will not be cleaned: 14025# after its creation but before its name has been assigned to `$tmp'. 14026$debug || 14027{ 14028 tmp= 14029 trap 'exit_status=$? 14030 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14031' 0 14032 trap 'as_fn_exit 1' 1 2 13 15 14033} 14034# Create a (secure) tmp directory for tmp files. 14035 14036{ 14037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14038 test -n "$tmp" && test -d "$tmp" 14039} || 14040{ 14041 tmp=./conf$$-$RANDOM 14042 (umask 077 && mkdir "$tmp") 14043} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14044 14045# Set up the scripts for CONFIG_FILES section. 14046# No need to generate them if there are no CONFIG_FILES. 14047# This happens for instance with `./config.status config.h'. 14048if test -n "$CONFIG_FILES"; then 14049 14050 14051ac_cr=`echo X | tr X '\015'` 14052# On cygwin, bash can eat \r inside `` if the user requested igncr. 14053# But we know of no other shell where ac_cr would be empty at this 14054# point, so we can use a bashism as a fallback. 14055if test "x$ac_cr" = x; then 14056 eval ac_cr=\$\'\\r\' 14057fi 14058ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14059if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14060 ac_cs_awk_cr='\\r' 14061else 14062 ac_cs_awk_cr=$ac_cr 14063fi 14064 14065echo 'BEGIN {' >"$tmp/subs1.awk" && 14066_ACEOF 14067 14068 14069{ 14070 echo "cat >conf$$subs.awk <<_ACEOF" && 14071 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14072 echo "_ACEOF" 14073} >conf$$subs.sh || 14074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14075ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14076ac_delim='%!_!# ' 14077for ac_last_try in false false false false false :; do 14078 . ./conf$$subs.sh || 14079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14080 14081 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14082 if test $ac_delim_n = $ac_delim_num; then 14083 break 14084 elif $ac_last_try; then 14085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14086 else 14087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14088 fi 14089done 14090rm -f conf$$subs.sh 14091 14092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14093cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14094_ACEOF 14095sed -n ' 14096h 14097s/^/S["/; s/!.*/"]=/ 14098p 14099g 14100s/^[^!]*!// 14101:repl 14102t repl 14103s/'"$ac_delim"'$// 14104t delim 14105:nl 14106h 14107s/\(.\{148\}\)..*/\1/ 14108t more1 14109s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14110p 14111n 14112b repl 14113:more1 14114s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14115p 14116g 14117s/.\{148\}// 14118t nl 14119:delim 14120h 14121s/\(.\{148\}\)..*/\1/ 14122t more2 14123s/["\\]/\\&/g; s/^/"/; s/$/"/ 14124p 14125b 14126:more2 14127s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14128p 14129g 14130s/.\{148\}// 14131t delim 14132' <conf$$subs.awk | sed ' 14133/^[^""]/{ 14134 N 14135 s/\n// 14136} 14137' >>$CONFIG_STATUS || ac_write_fail=1 14138rm -f conf$$subs.awk 14139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14140_ACAWK 14141cat >>"\$tmp/subs1.awk" <<_ACAWK && 14142 for (key in S) S_is_set[key] = 1 14143 FS = "" 14144 14145} 14146{ 14147 line = $ 0 14148 nfields = split(line, field, "@") 14149 substed = 0 14150 len = length(field[1]) 14151 for (i = 2; i < nfields; i++) { 14152 key = field[i] 14153 keylen = length(key) 14154 if (S_is_set[key]) { 14155 value = S[key] 14156 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14157 len += length(value) + length(field[++i]) 14158 substed = 1 14159 } else 14160 len += 1 + keylen 14161 } 14162 14163 print line 14164} 14165 14166_ACAWK 14167_ACEOF 14168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14169if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14170 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14171else 14172 cat 14173fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14174 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14175_ACEOF 14176 14177# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14178# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14179# trailing colons and then remove the whole line if VPATH becomes empty 14180# (actually we leave an empty line to preserve line numbers). 14181if test "x$srcdir" = x.; then 14182 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14183h 14184s/// 14185s/^/:/ 14186s/[ ]*$/:/ 14187s/:\$(srcdir):/:/g 14188s/:\${srcdir}:/:/g 14189s/:@srcdir@:/:/g 14190s/^:*// 14191s/:*$// 14192x 14193s/\(=[ ]*\).*/\1/ 14194G 14195s/\n// 14196s/^[^=]*=[ ]*$// 14197}' 14198fi 14199 14200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14201fi # test -n "$CONFIG_FILES" 14202 14203# Set up the scripts for CONFIG_HEADERS section. 14204# No need to generate them if there are no CONFIG_HEADERS. 14205# This happens for instance with `./config.status Makefile'. 14206if test -n "$CONFIG_HEADERS"; then 14207cat >"$tmp/defines.awk" <<\_ACAWK || 14208BEGIN { 14209_ACEOF 14210 14211# Transform confdefs.h into an awk script `defines.awk', embedded as 14212# here-document in config.status, that substitutes the proper values into 14213# config.h.in to produce config.h. 14214 14215# Create a delimiter string that does not exist in confdefs.h, to ease 14216# handling of long lines. 14217ac_delim='%!_!# ' 14218for ac_last_try in false false :; do 14219 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14220 if test -z "$ac_t"; then 14221 break 14222 elif $ac_last_try; then 14223 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14224 else 14225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14226 fi 14227done 14228 14229# For the awk script, D is an array of macro values keyed by name, 14230# likewise P contains macro parameters if any. Preserve backslash 14231# newline sequences. 14232 14233ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14234sed -n ' 14235s/.\{148\}/&'"$ac_delim"'/g 14236t rset 14237:rset 14238s/^[ ]*#[ ]*define[ ][ ]*/ / 14239t def 14240d 14241:def 14242s/\\$// 14243t bsnl 14244s/["\\]/\\&/g 14245s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14246D["\1"]=" \3"/p 14247s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14248d 14249:bsnl 14250s/["\\]/\\&/g 14251s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14252D["\1"]=" \3\\\\\\n"\\/p 14253t cont 14254s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14255t cont 14256d 14257:cont 14258n 14259s/.\{148\}/&'"$ac_delim"'/g 14260t clear 14261:clear 14262s/\\$// 14263t bsnlc 14264s/["\\]/\\&/g; s/^/"/; s/$/"/p 14265d 14266:bsnlc 14267s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14268b cont 14269' <confdefs.h | sed ' 14270s/'"$ac_delim"'/"\\\ 14271"/g' >>$CONFIG_STATUS || ac_write_fail=1 14272 14273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14274 for (key in D) D_is_set[key] = 1 14275 FS = "" 14276} 14277/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14278 line = \$ 0 14279 split(line, arg, " ") 14280 if (arg[1] == "#") { 14281 defundef = arg[2] 14282 mac1 = arg[3] 14283 } else { 14284 defundef = substr(arg[1], 2) 14285 mac1 = arg[2] 14286 } 14287 split(mac1, mac2, "(") #) 14288 macro = mac2[1] 14289 prefix = substr(line, 1, index(line, defundef) - 1) 14290 if (D_is_set[macro]) { 14291 # Preserve the white space surrounding the "#". 14292 print prefix "define", macro P[macro] D[macro] 14293 next 14294 } else { 14295 # Replace #undef with comments. This is necessary, for example, 14296 # in the case of _POSIX_SOURCE, which is predefined and required 14297 # on some systems where configure will not decide to define it. 14298 if (defundef == "undef") { 14299 print "/*", prefix defundef, macro, "*/" 14300 next 14301 } 14302 } 14303} 14304{ print } 14305_ACAWK 14306_ACEOF 14307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14308 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14309fi # test -n "$CONFIG_HEADERS" 14310 14311 14312eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14313shift 14314for ac_tag 14315do 14316 case $ac_tag in 14317 :[FHLC]) ac_mode=$ac_tag; continue;; 14318 esac 14319 case $ac_mode$ac_tag in 14320 :[FHL]*:*);; 14321 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 14322 :[FH]-) ac_tag=-:-;; 14323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14324 esac 14325 ac_save_IFS=$IFS 14326 IFS=: 14327 set x $ac_tag 14328 IFS=$ac_save_IFS 14329 shift 14330 ac_file=$1 14331 shift 14332 14333 case $ac_mode in 14334 :L) ac_source=$1;; 14335 :[FH]) 14336 ac_file_inputs= 14337 for ac_f 14338 do 14339 case $ac_f in 14340 -) ac_f="$tmp/stdin";; 14341 *) # Look for the file first in the build tree, then in the source tree 14342 # (if the path is not absolute). The absolute path cannot be DOS-style, 14343 # because $ac_f cannot contain `:'. 14344 test -f "$ac_f" || 14345 case $ac_f in 14346 [\\/$]*) false;; 14347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14348 esac || 14349 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 14350 esac 14351 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14352 as_fn_append ac_file_inputs " '$ac_f'" 14353 done 14354 14355 # Let's still pretend it is `configure' which instantiates (i.e., don't 14356 # use $as_me), people would be surprised to read: 14357 # /* config.h. Generated by config.status. */ 14358 configure_input='Generated from '` 14359 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14360 `' by configure.' 14361 if test x"$ac_file" != x-; then 14362 configure_input="$ac_file. $configure_input" 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14364$as_echo "$as_me: creating $ac_file" >&6;} 14365 fi 14366 # Neutralize special characters interpreted by sed in replacement strings. 14367 case $configure_input in #( 14368 *\&* | *\|* | *\\* ) 14369 ac_sed_conf_input=`$as_echo "$configure_input" | 14370 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14371 *) ac_sed_conf_input=$configure_input;; 14372 esac 14373 14374 case $ac_tag in 14375 *:-:* | *:-) cat >"$tmp/stdin" \ 14376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14377 esac 14378 ;; 14379 esac 14380 14381 ac_dir=`$as_dirname -- "$ac_file" || 14382$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14383 X"$ac_file" : 'X\(//\)[^/]' \| \ 14384 X"$ac_file" : 'X\(//\)$' \| \ 14385 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14386$as_echo X"$ac_file" | 14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14388 s//\1/ 14389 q 14390 } 14391 /^X\(\/\/\)[^/].*/{ 14392 s//\1/ 14393 q 14394 } 14395 /^X\(\/\/\)$/{ 14396 s//\1/ 14397 q 14398 } 14399 /^X\(\/\).*/{ 14400 s//\1/ 14401 q 14402 } 14403 s/.*/./; q'` 14404 as_dir="$ac_dir"; as_fn_mkdir_p 14405 ac_builddir=. 14406 14407case "$ac_dir" in 14408.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14409*) 14410 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14411 # A ".." for each directory in $ac_dir_suffix. 14412 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14413 case $ac_top_builddir_sub in 14414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14416 esac ;; 14417esac 14418ac_abs_top_builddir=$ac_pwd 14419ac_abs_builddir=$ac_pwd$ac_dir_suffix 14420# for backward compatibility: 14421ac_top_builddir=$ac_top_build_prefix 14422 14423case $srcdir in 14424 .) # We are building in place. 14425 ac_srcdir=. 14426 ac_top_srcdir=$ac_top_builddir_sub 14427 ac_abs_top_srcdir=$ac_pwd ;; 14428 [\\/]* | ?:[\\/]* ) # Absolute name. 14429 ac_srcdir=$srcdir$ac_dir_suffix; 14430 ac_top_srcdir=$srcdir 14431 ac_abs_top_srcdir=$srcdir ;; 14432 *) # Relative name. 14433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14434 ac_top_srcdir=$ac_top_build_prefix$srcdir 14435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14436esac 14437ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14438 14439 14440 case $ac_mode in 14441 :F) 14442 # 14443 # CONFIG_FILE 14444 # 14445 14446 case $INSTALL in 14447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14449 esac 14450 ac_MKDIR_P=$MKDIR_P 14451 case $MKDIR_P in 14452 [\\/$]* | ?:[\\/]* ) ;; 14453 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14454 esac 14455_ACEOF 14456 14457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14458# If the template does not know about datarootdir, expand it. 14459# FIXME: This hack should be removed a few years after 2.60. 14460ac_datarootdir_hack=; ac_datarootdir_seen= 14461ac_sed_dataroot=' 14462/datarootdir/ { 14463 p 14464 q 14465} 14466/@datadir@/p 14467/@docdir@/p 14468/@infodir@/p 14469/@localedir@/p 14470/@mandir@/p' 14471case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14472*datarootdir*) ac_datarootdir_seen=yes;; 14473*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14475$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14476_ACEOF 14477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14478 ac_datarootdir_hack=' 14479 s&@datadir@&$datadir&g 14480 s&@docdir@&$docdir&g 14481 s&@infodir@&$infodir&g 14482 s&@localedir@&$localedir&g 14483 s&@mandir@&$mandir&g 14484 s&\\\${datarootdir}&$datarootdir&g' ;; 14485esac 14486_ACEOF 14487 14488# Neutralize VPATH when `$srcdir' = `.'. 14489# Shell code in configure.ac might set extrasub. 14490# FIXME: do we really want to maintain this feature? 14491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14492ac_sed_extra="$ac_vpsub 14493$extrasub 14494_ACEOF 14495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14496:t 14497/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14498s|@configure_input@|$ac_sed_conf_input|;t t 14499s&@top_builddir@&$ac_top_builddir_sub&;t t 14500s&@top_build_prefix@&$ac_top_build_prefix&;t t 14501s&@srcdir@&$ac_srcdir&;t t 14502s&@abs_srcdir@&$ac_abs_srcdir&;t t 14503s&@top_srcdir@&$ac_top_srcdir&;t t 14504s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14505s&@builddir@&$ac_builddir&;t t 14506s&@abs_builddir@&$ac_abs_builddir&;t t 14507s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14508s&@INSTALL@&$ac_INSTALL&;t t 14509s&@MKDIR_P@&$ac_MKDIR_P&;t t 14510$ac_datarootdir_hack 14511" 14512eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14513 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14514 14515test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14516 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14517 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14519which seems to be undefined. Please make sure it is defined" >&5 14520$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14521which seems to be undefined. Please make sure it is defined" >&2;} 14522 14523 rm -f "$tmp/stdin" 14524 case $ac_file in 14525 -) cat "$tmp/out" && rm -f "$tmp/out";; 14526 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14527 esac \ 14528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14529 ;; 14530 :H) 14531 # 14532 # CONFIG_HEADER 14533 # 14534 if test x"$ac_file" != x-; then 14535 { 14536 $as_echo "/* $configure_input */" \ 14537 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14538 } >"$tmp/config.h" \ 14539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14540 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14542$as_echo "$as_me: $ac_file is unchanged" >&6;} 14543 else 14544 rm -f "$ac_file" 14545 mv "$tmp/config.h" "$ac_file" \ 14546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14547 fi 14548 else 14549 $as_echo "/* $configure_input */" \ 14550 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14551 || as_fn_error $? "could not create -" "$LINENO" 5 14552 fi 14553# Compute "$ac_file"'s index in $config_headers. 14554_am_arg="$ac_file" 14555_am_stamp_count=1 14556for _am_header in $config_headers :; do 14557 case $_am_header in 14558 $_am_arg | $_am_arg:* ) 14559 break ;; 14560 * ) 14561 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14562 esac 14563done 14564echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14565$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14566 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14567 X"$_am_arg" : 'X\(//\)$' \| \ 14568 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14569$as_echo X"$_am_arg" | 14570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14571 s//\1/ 14572 q 14573 } 14574 /^X\(\/\/\)[^/].*/{ 14575 s//\1/ 14576 q 14577 } 14578 /^X\(\/\/\)$/{ 14579 s//\1/ 14580 q 14581 } 14582 /^X\(\/\).*/{ 14583 s//\1/ 14584 q 14585 } 14586 s/.*/./; q'`/stamp-h$_am_stamp_count 14587 ;; 14588 14589 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14590$as_echo "$as_me: executing $ac_file commands" >&6;} 14591 ;; 14592 esac 14593 14594 14595 case $ac_file$ac_mode in 14596 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14597 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14598 # are listed without --file. Let's play safe and only enable the eval 14599 # if we detect the quoting. 14600 case $CONFIG_FILES in 14601 *\'*) eval set x "$CONFIG_FILES" ;; 14602 *) set x $CONFIG_FILES ;; 14603 esac 14604 shift 14605 for mf 14606 do 14607 # Strip MF so we end up with the name of the file. 14608 mf=`echo "$mf" | sed -e 's/:.*$//'` 14609 # Check whether this is an Automake generated Makefile or not. 14610 # We used to match only the files named `Makefile.in', but 14611 # some people rename them; so instead we look at the file content. 14612 # Grep'ing the first line is not enough: some people post-process 14613 # each Makefile.in and add a new line on top of each file to say so. 14614 # Grep'ing the whole file is not good either: AIX grep has a line 14615 # limit of 2048, but all sed's we know have understand at least 4000. 14616 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14617 dirpart=`$as_dirname -- "$mf" || 14618$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14619 X"$mf" : 'X\(//\)[^/]' \| \ 14620 X"$mf" : 'X\(//\)$' \| \ 14621 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14622$as_echo X"$mf" | 14623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14624 s//\1/ 14625 q 14626 } 14627 /^X\(\/\/\)[^/].*/{ 14628 s//\1/ 14629 q 14630 } 14631 /^X\(\/\/\)$/{ 14632 s//\1/ 14633 q 14634 } 14635 /^X\(\/\).*/{ 14636 s//\1/ 14637 q 14638 } 14639 s/.*/./; q'` 14640 else 14641 continue 14642 fi 14643 # Extract the definition of DEPDIR, am__include, and am__quote 14644 # from the Makefile without running `make'. 14645 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14646 test -z "$DEPDIR" && continue 14647 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14648 test -z "am__include" && continue 14649 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14650 # When using ansi2knr, U may be empty or an underscore; expand it 14651 U=`sed -n 's/^U = //p' < "$mf"` 14652 # Find all dependency output files, they are included files with 14653 # $(DEPDIR) in their names. We invoke sed twice because it is the 14654 # simplest approach to changing $(DEPDIR) to its actual value in the 14655 # expansion. 14656 for file in `sed -n " 14657 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14658 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14659 # Make sure the directory exists. 14660 test -f "$dirpart/$file" && continue 14661 fdir=`$as_dirname -- "$file" || 14662$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14663 X"$file" : 'X\(//\)[^/]' \| \ 14664 X"$file" : 'X\(//\)$' \| \ 14665 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14666$as_echo X"$file" | 14667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14668 s//\1/ 14669 q 14670 } 14671 /^X\(\/\/\)[^/].*/{ 14672 s//\1/ 14673 q 14674 } 14675 /^X\(\/\/\)$/{ 14676 s//\1/ 14677 q 14678 } 14679 /^X\(\/\).*/{ 14680 s//\1/ 14681 q 14682 } 14683 s/.*/./; q'` 14684 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14685 # echo "creating $dirpart/$file" 14686 echo '# dummy' > "$dirpart/$file" 14687 done 14688 done 14689} 14690 ;; 14691 "libtool":C) 14692 14693 # See if we are running on zsh, and set the options which allow our 14694 # commands through without removal of \ escapes. 14695 if test -n "${ZSH_VERSION+set}" ; then 14696 setopt NO_GLOB_SUBST 14697 fi 14698 14699 cfgfile="${ofile}T" 14700 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14701 $RM "$cfgfile" 14702 14703 cat <<_LT_EOF >> "$cfgfile" 14704#! $SHELL 14705 14706# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14707# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14708# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14709# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14710# 14711# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14712# 2006, 2007, 2008 Free Software Foundation, Inc. 14713# Written by Gordon Matzigkeit, 1996 14714# 14715# This file is part of GNU Libtool. 14716# 14717# GNU Libtool is free software; you can redistribute it and/or 14718# modify it under the terms of the GNU General Public License as 14719# published by the Free Software Foundation; either version 2 of 14720# the License, or (at your option) any later version. 14721# 14722# As a special exception to the GNU General Public License, 14723# if you distribute this file as part of a program or library that 14724# is built using GNU Libtool, you may include this file under the 14725# same distribution terms that you use for the rest of that program. 14726# 14727# GNU Libtool is distributed in the hope that it will be useful, 14728# but WITHOUT ANY WARRANTY; without even the implied warranty of 14729# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14730# GNU General Public License for more details. 14731# 14732# You should have received a copy of the GNU General Public License 14733# along with GNU Libtool; see the file COPYING. If not, a copy 14734# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14735# obtained by writing to the Free Software Foundation, Inc., 14736# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14737 14738 14739# The names of the tagged configurations supported by this script. 14740available_tags="" 14741 14742# ### BEGIN LIBTOOL CONFIG 14743 14744# Which release of libtool.m4 was used? 14745macro_version=$macro_version 14746macro_revision=$macro_revision 14747 14748# Whether or not to build shared libraries. 14749build_libtool_libs=$enable_shared 14750 14751# Whether or not to build static libraries. 14752build_old_libs=$enable_static 14753 14754# What type of objects to build. 14755pic_mode=$pic_mode 14756 14757# Whether or not to optimize for fast installation. 14758fast_install=$enable_fast_install 14759 14760# The host system. 14761host_alias=$host_alias 14762host=$host 14763host_os=$host_os 14764 14765# The build system. 14766build_alias=$build_alias 14767build=$build 14768build_os=$build_os 14769 14770# A sed program that does not truncate output. 14771SED=$lt_SED 14772 14773# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14774Xsed="\$SED -e 1s/^X//" 14775 14776# A grep program that handles long lines. 14777GREP=$lt_GREP 14778 14779# An ERE matcher. 14780EGREP=$lt_EGREP 14781 14782# A literal string matcher. 14783FGREP=$lt_FGREP 14784 14785# A BSD- or MS-compatible name lister. 14786NM=$lt_NM 14787 14788# Whether we need soft or hard links. 14789LN_S=$lt_LN_S 14790 14791# What is the maximum length of a command? 14792max_cmd_len=$max_cmd_len 14793 14794# Object file suffix (normally "o"). 14795objext=$ac_objext 14796 14797# Executable file suffix (normally ""). 14798exeext=$exeext 14799 14800# whether the shell understands "unset". 14801lt_unset=$lt_unset 14802 14803# turn spaces into newlines. 14804SP2NL=$lt_lt_SP2NL 14805 14806# turn newlines into spaces. 14807NL2SP=$lt_lt_NL2SP 14808 14809# How to create reloadable object files. 14810reload_flag=$lt_reload_flag 14811reload_cmds=$lt_reload_cmds 14812 14813# An object symbol dumper. 14814OBJDUMP=$lt_OBJDUMP 14815 14816# Method to check whether dependent libraries are shared objects. 14817deplibs_check_method=$lt_deplibs_check_method 14818 14819# Command to use when deplibs_check_method == "file_magic". 14820file_magic_cmd=$lt_file_magic_cmd 14821 14822# The archiver. 14823AR=$lt_AR 14824AR_FLAGS=$lt_AR_FLAGS 14825 14826# A symbol stripping program. 14827STRIP=$lt_STRIP 14828 14829# Commands used to install an old-style archive. 14830RANLIB=$lt_RANLIB 14831old_postinstall_cmds=$lt_old_postinstall_cmds 14832old_postuninstall_cmds=$lt_old_postuninstall_cmds 14833 14834# A C compiler. 14835LTCC=$lt_CC 14836 14837# LTCC compiler flags. 14838LTCFLAGS=$lt_CFLAGS 14839 14840# Take the output of nm and produce a listing of raw symbols and C names. 14841global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14842 14843# Transform the output of nm in a proper C declaration. 14844global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14845 14846# Transform the output of nm in a C name address pair. 14847global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14848 14849# Transform the output of nm in a C name address pair when lib prefix is needed. 14850global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14851 14852# The name of the directory that contains temporary libtool files. 14853objdir=$objdir 14854 14855# Shell to use when invoking shell scripts. 14856SHELL=$lt_SHELL 14857 14858# An echo program that does not interpret backslashes. 14859ECHO=$lt_ECHO 14860 14861# Used to examine libraries when file_magic_cmd begins with "file". 14862MAGIC_CMD=$MAGIC_CMD 14863 14864# Must we lock files when doing compilation? 14865need_locks=$lt_need_locks 14866 14867# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14868DSYMUTIL=$lt_DSYMUTIL 14869 14870# Tool to change global to local symbols on Mac OS X. 14871NMEDIT=$lt_NMEDIT 14872 14873# Tool to manipulate fat objects and archives on Mac OS X. 14874LIPO=$lt_LIPO 14875 14876# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14877OTOOL=$lt_OTOOL 14878 14879# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14880OTOOL64=$lt_OTOOL64 14881 14882# Old archive suffix (normally "a"). 14883libext=$libext 14884 14885# Shared library suffix (normally ".so"). 14886shrext_cmds=$lt_shrext_cmds 14887 14888# The commands to extract the exported symbol list from a shared archive. 14889extract_expsyms_cmds=$lt_extract_expsyms_cmds 14890 14891# Variables whose values should be saved in libtool wrapper scripts and 14892# restored at link time. 14893variables_saved_for_relink=$lt_variables_saved_for_relink 14894 14895# Do we need the "lib" prefix for modules? 14896need_lib_prefix=$need_lib_prefix 14897 14898# Do we need a version for libraries? 14899need_version=$need_version 14900 14901# Library versioning type. 14902version_type=$version_type 14903 14904# Shared library runtime path variable. 14905runpath_var=$runpath_var 14906 14907# Shared library path variable. 14908shlibpath_var=$shlibpath_var 14909 14910# Is shlibpath searched before the hard-coded library search path? 14911shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14912 14913# Format of library name prefix. 14914libname_spec=$lt_libname_spec 14915 14916# List of archive names. First name is the real one, the rest are links. 14917# The last name is the one that the linker finds with -lNAME 14918library_names_spec=$lt_library_names_spec 14919 14920# The coded name of the library, if different from the real name. 14921soname_spec=$lt_soname_spec 14922 14923# Command to use after installation of a shared archive. 14924postinstall_cmds=$lt_postinstall_cmds 14925 14926# Command to use after uninstallation of a shared archive. 14927postuninstall_cmds=$lt_postuninstall_cmds 14928 14929# Commands used to finish a libtool library installation in a directory. 14930finish_cmds=$lt_finish_cmds 14931 14932# As "finish_cmds", except a single script fragment to be evaled but 14933# not shown. 14934finish_eval=$lt_finish_eval 14935 14936# Whether we should hardcode library paths into libraries. 14937hardcode_into_libs=$hardcode_into_libs 14938 14939# Compile-time system search path for libraries. 14940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14941 14942# Run-time system search path for libraries. 14943sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14944 14945# Whether dlopen is supported. 14946dlopen_support=$enable_dlopen 14947 14948# Whether dlopen of programs is supported. 14949dlopen_self=$enable_dlopen_self 14950 14951# Whether dlopen of statically linked programs is supported. 14952dlopen_self_static=$enable_dlopen_self_static 14953 14954# Commands to strip libraries. 14955old_striplib=$lt_old_striplib 14956striplib=$lt_striplib 14957 14958 14959# The linker used to build libraries. 14960LD=$lt_LD 14961 14962# Commands used to build an old-style archive. 14963old_archive_cmds=$lt_old_archive_cmds 14964 14965# A language specific compiler. 14966CC=$lt_compiler 14967 14968# Is the compiler the GNU compiler? 14969with_gcc=$GCC 14970 14971# Compiler flag to turn off builtin functions. 14972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14973 14974# How to pass a linker flag through the compiler. 14975wl=$lt_lt_prog_compiler_wl 14976 14977# Additional compiler flags for building library objects. 14978pic_flag=$lt_lt_prog_compiler_pic 14979 14980# Compiler flag to prevent dynamic linking. 14981link_static_flag=$lt_lt_prog_compiler_static 14982 14983# Does compiler simultaneously support -c and -o options? 14984compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14985 14986# Whether or not to add -lc for building shared libraries. 14987build_libtool_need_lc=$archive_cmds_need_lc 14988 14989# Whether or not to disallow shared libs when runtime libs are static. 14990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14991 14992# Compiler flag to allow reflexive dlopens. 14993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14994 14995# Compiler flag to generate shared objects directly from archives. 14996whole_archive_flag_spec=$lt_whole_archive_flag_spec 14997 14998# Whether the compiler copes with passing no objects directly. 14999compiler_needs_object=$lt_compiler_needs_object 15000 15001# Create an old-style archive from a shared archive. 15002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15003 15004# Create a temporary old-style archive to link instead of a shared archive. 15005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15006 15007# Commands used to build a shared archive. 15008archive_cmds=$lt_archive_cmds 15009archive_expsym_cmds=$lt_archive_expsym_cmds 15010 15011# Commands used to build a loadable module if different from building 15012# a shared archive. 15013module_cmds=$lt_module_cmds 15014module_expsym_cmds=$lt_module_expsym_cmds 15015 15016# Whether we are building with GNU ld or not. 15017with_gnu_ld=$lt_with_gnu_ld 15018 15019# Flag that allows shared libraries with undefined symbols to be built. 15020allow_undefined_flag=$lt_allow_undefined_flag 15021 15022# Flag that enforces no undefined symbols. 15023no_undefined_flag=$lt_no_undefined_flag 15024 15025# Flag to hardcode \$libdir into a binary during linking. 15026# This must work even if \$libdir does not exist 15027hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15028 15029# If ld is used when linking, flag to hardcode \$libdir into a binary 15030# during linking. This must work even if \$libdir does not exist. 15031hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15032 15033# Whether we need a single "-rpath" flag with a separated argument. 15034hardcode_libdir_separator=$lt_hardcode_libdir_separator 15035 15036# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15037# DIR into the resulting binary. 15038hardcode_direct=$hardcode_direct 15039 15040# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15041# DIR into the resulting binary and the resulting library dependency is 15042# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15043# library is relocated. 15044hardcode_direct_absolute=$hardcode_direct_absolute 15045 15046# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15047# into the resulting binary. 15048hardcode_minus_L=$hardcode_minus_L 15049 15050# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15051# into the resulting binary. 15052hardcode_shlibpath_var=$hardcode_shlibpath_var 15053 15054# Set to "yes" if building a shared library automatically hardcodes DIR 15055# into the library and all subsequent libraries and executables linked 15056# against it. 15057hardcode_automatic=$hardcode_automatic 15058 15059# Set to yes if linker adds runtime paths of dependent libraries 15060# to runtime path list. 15061inherit_rpath=$inherit_rpath 15062 15063# Whether libtool must link a program against all its dependency libraries. 15064link_all_deplibs=$link_all_deplibs 15065 15066# Fix the shell variable \$srcfile for the compiler. 15067fix_srcfile_path=$lt_fix_srcfile_path 15068 15069# Set to "yes" if exported symbols are required. 15070always_export_symbols=$always_export_symbols 15071 15072# The commands to list exported symbols. 15073export_symbols_cmds=$lt_export_symbols_cmds 15074 15075# Symbols that should not be listed in the preloaded symbols. 15076exclude_expsyms=$lt_exclude_expsyms 15077 15078# Symbols that must always be exported. 15079include_expsyms=$lt_include_expsyms 15080 15081# Commands necessary for linking programs (against libraries) with templates. 15082prelink_cmds=$lt_prelink_cmds 15083 15084# Specify filename containing input files. 15085file_list_spec=$lt_file_list_spec 15086 15087# How to hardcode a shared library path into an executable. 15088hardcode_action=$hardcode_action 15089 15090# ### END LIBTOOL CONFIG 15091 15092_LT_EOF 15093 15094 case $host_os in 15095 aix3*) 15096 cat <<\_LT_EOF >> "$cfgfile" 15097# AIX sometimes has problems with the GCC collect2 program. For some 15098# reason, if we set the COLLECT_NAMES environment variable, the problems 15099# vanish in a puff of smoke. 15100if test "X${COLLECT_NAMES+set}" != Xset; then 15101 COLLECT_NAMES= 15102 export COLLECT_NAMES 15103fi 15104_LT_EOF 15105 ;; 15106 esac 15107 15108 15109ltmain="$ac_aux_dir/ltmain.sh" 15110 15111 15112 # We use sed instead of cat because bash on DJGPP gets confused if 15113 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15114 # text mode, it properly converts lines to CR/LF. This bash problem 15115 # is reportedly fixed, but why not run on old versions too? 15116 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15117 || (rm -f "$cfgfile"; exit 1) 15118 15119 case $xsi_shell in 15120 yes) 15121 cat << \_LT_EOF >> "$cfgfile" 15122 15123# func_dirname file append nondir_replacement 15124# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15125# otherwise set result to NONDIR_REPLACEMENT. 15126func_dirname () 15127{ 15128 case ${1} in 15129 */*) func_dirname_result="${1%/*}${2}" ;; 15130 * ) func_dirname_result="${3}" ;; 15131 esac 15132} 15133 15134# func_basename file 15135func_basename () 15136{ 15137 func_basename_result="${1##*/}" 15138} 15139 15140# func_dirname_and_basename file append nondir_replacement 15141# perform func_basename and func_dirname in a single function 15142# call: 15143# dirname: Compute the dirname of FILE. If nonempty, 15144# add APPEND to the result, otherwise set result 15145# to NONDIR_REPLACEMENT. 15146# value returned in "$func_dirname_result" 15147# basename: Compute filename of FILE. 15148# value retuned in "$func_basename_result" 15149# Implementation must be kept synchronized with func_dirname 15150# and func_basename. For efficiency, we do not delegate to 15151# those functions but instead duplicate the functionality here. 15152func_dirname_and_basename () 15153{ 15154 case ${1} in 15155 */*) func_dirname_result="${1%/*}${2}" ;; 15156 * ) func_dirname_result="${3}" ;; 15157 esac 15158 func_basename_result="${1##*/}" 15159} 15160 15161# func_stripname prefix suffix name 15162# strip PREFIX and SUFFIX off of NAME. 15163# PREFIX and SUFFIX must not contain globbing or regex special 15164# characters, hashes, percent signs, but SUFFIX may contain a leading 15165# dot (in which case that matches only a dot). 15166func_stripname () 15167{ 15168 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15169 # positional parameters, so assign one to ordinary parameter first. 15170 func_stripname_result=${3} 15171 func_stripname_result=${func_stripname_result#"${1}"} 15172 func_stripname_result=${func_stripname_result%"${2}"} 15173} 15174 15175# func_opt_split 15176func_opt_split () 15177{ 15178 func_opt_split_opt=${1%%=*} 15179 func_opt_split_arg=${1#*=} 15180} 15181 15182# func_lo2o object 15183func_lo2o () 15184{ 15185 case ${1} in 15186 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15187 *) func_lo2o_result=${1} ;; 15188 esac 15189} 15190 15191# func_xform libobj-or-source 15192func_xform () 15193{ 15194 func_xform_result=${1%.*}.lo 15195} 15196 15197# func_arith arithmetic-term... 15198func_arith () 15199{ 15200 func_arith_result=$(( $* )) 15201} 15202 15203# func_len string 15204# STRING may not start with a hyphen. 15205func_len () 15206{ 15207 func_len_result=${#1} 15208} 15209 15210_LT_EOF 15211 ;; 15212 *) # Bourne compatible functions. 15213 cat << \_LT_EOF >> "$cfgfile" 15214 15215# func_dirname file append nondir_replacement 15216# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15217# otherwise set result to NONDIR_REPLACEMENT. 15218func_dirname () 15219{ 15220 # Extract subdirectory from the argument. 15221 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 15222 if test "X$func_dirname_result" = "X${1}"; then 15223 func_dirname_result="${3}" 15224 else 15225 func_dirname_result="$func_dirname_result${2}" 15226 fi 15227} 15228 15229# func_basename file 15230func_basename () 15231{ 15232 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 15233} 15234 15235 15236# func_stripname prefix suffix name 15237# strip PREFIX and SUFFIX off of NAME. 15238# PREFIX and SUFFIX must not contain globbing or regex special 15239# characters, hashes, percent signs, but SUFFIX may contain a leading 15240# dot (in which case that matches only a dot). 15241# func_strip_suffix prefix name 15242func_stripname () 15243{ 15244 case ${2} in 15245 .*) func_stripname_result=`$ECHO "X${3}" \ 15246 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 15247 *) func_stripname_result=`$ECHO "X${3}" \ 15248 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 15249 esac 15250} 15251 15252# sed scripts: 15253my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15254my_sed_long_arg='1s/^-[^=]*=//' 15255 15256# func_opt_split 15257func_opt_split () 15258{ 15259 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 15260 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 15261} 15262 15263# func_lo2o object 15264func_lo2o () 15265{ 15266 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 15267} 15268 15269# func_xform libobj-or-source 15270func_xform () 15271{ 15272 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 15273} 15274 15275# func_arith arithmetic-term... 15276func_arith () 15277{ 15278 func_arith_result=`expr "$@"` 15279} 15280 15281# func_len string 15282# STRING may not start with a hyphen. 15283func_len () 15284{ 15285 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15286} 15287 15288_LT_EOF 15289esac 15290 15291case $lt_shell_append in 15292 yes) 15293 cat << \_LT_EOF >> "$cfgfile" 15294 15295# func_append var value 15296# Append VALUE to the end of shell variable VAR. 15297func_append () 15298{ 15299 eval "$1+=\$2" 15300} 15301_LT_EOF 15302 ;; 15303 *) 15304 cat << \_LT_EOF >> "$cfgfile" 15305 15306# func_append var value 15307# Append VALUE to the end of shell variable VAR. 15308func_append () 15309{ 15310 eval "$1=\$$1\$2" 15311} 15312 15313_LT_EOF 15314 ;; 15315 esac 15316 15317 15318 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15319 || (rm -f "$cfgfile"; exit 1) 15320 15321 mv -f "$cfgfile" "$ofile" || 15322 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15323 chmod +x "$ofile" 15324 15325 ;; 15326 15327 esac 15328done # for ac_tag 15329 15330 15331as_fn_exit 0 15332_ACEOF 15333ac_clean_files=$ac_clean_files_save 15334 15335test $ac_write_fail = 0 || 15336 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15337 15338 15339# configure is writing to config.log, and then calls config.status. 15340# config.status does its own redirection, appending to config.log. 15341# Unfortunately, on DOS this fails, as config.log is still kept open 15342# by configure, so config.status won't be able to write to it; its 15343# output is simply discarded. So we exec the FD to /dev/null, 15344# effectively closing config.log, so it can be properly (re)opened and 15345# appended to by config.status. When coming back to configure, we 15346# need to make the FD available again. 15347if test "$no_create" != yes; then 15348 ac_cs_success=: 15349 ac_config_status_args= 15350 test "$silent" = yes && 15351 ac_config_status_args="$ac_config_status_args --quiet" 15352 exec 5>/dev/null 15353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15354 exec 5>>config.log 15355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15356 # would make configure fail if this is the last instruction. 15357 $ac_cs_success || as_fn_exit 1 15358fi 15359if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15361$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15362fi 15363 15364