/contrib/ntp/sntp/configure
Shell | 16325 lines | 14479 code | 853 blank | 993 comment | 611 complexity | ea6637b1311adfb56a4d88b35e9037a7 MD5 | raw file
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529 530# Check that we are running under the correct shell. 531SHELL=${CONFIG_SHELL-/bin/sh} 532 533case X$ECHO in 534X*--fallback-echo) 535 # Remove one level of quotation (which was required for Make). 536 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 537 ;; 538esac 539 540echo=${ECHO-echo} 541if test "X$1" = X--no-reexec; then 542 # Discard the --no-reexec flag, and continue. 543 shift 544elif test "X$1" = X--fallback-echo; then 545 # Avoid inline document here, it may be left over 546 : 547elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 548 # Yippee, $echo works! 549 : 550else 551 # Restart under the correct shell. 552 exec $SHELL "$0" --no-reexec ${1+"$@"} 553fi 554 555if test "X$1" = X--fallback-echo; then 556 # used as fallback echo 557 shift 558 cat <<EOF 559$* 560EOF 561 exit 0 562fi 563 564# The HP-UX ksh and POSIX shell print the target directory to stdout 565# if CDPATH is set. 566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 567 568if test -z "$ECHO"; then 569if test "X${echo_test_string+set}" != Xset; then 570# find a string as large as possible, as long as the shell can cope with it 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 573 if (echo_test_string=`eval $cmd`) 2>/dev/null && 574 echo_test_string=`eval $cmd` && 575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 576 then 577 break 578 fi 579 done 580fi 581 582if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 583 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 584 test "X$echo_testing_string" = "X$echo_test_string"; then 585 : 586else 587 # The Solaris, AIX, and Digital Unix default echo programs unquote 588 # backslashes. This makes it impossible to quote backslashes using 589 # echo "$something" | sed 's/\\/\\\\/g' 590 # 591 # So, first we look for a working echo in the user's PATH. 592 593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 594 for dir in $PATH /usr/ucb; do 595 IFS="$lt_save_ifs" 596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 599 test "X$echo_testing_string" = "X$echo_test_string"; then 600 echo="$dir/echo" 601 break 602 fi 603 done 604 IFS="$lt_save_ifs" 605 606 if test "X$echo" = Xecho; then 607 # We didn't find a better echo, so look for alternatives. 608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 # This shell has a builtin print -r that does the trick. 612 echo='print -r' 613 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 614 test "X$CONFIG_SHELL" != X/bin/ksh; then 615 # If we have ksh, try running configure again with it. 616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 617 export ORIGINAL_CONFIG_SHELL 618 CONFIG_SHELL=/bin/ksh 619 export CONFIG_SHELL 620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 621 else 622 # Try using printf. 623 echo='printf %s\n' 624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 626 test "X$echo_testing_string" = "X$echo_test_string"; then 627 # Cool, printf works 628 : 629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 630 test "X$echo_testing_string" = 'X\t' && 631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 632 test "X$echo_testing_string" = "X$echo_test_string"; then 633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 634 export CONFIG_SHELL 635 SHELL="$CONFIG_SHELL" 636 export SHELL 637 echo="$CONFIG_SHELL $0 --fallback-echo" 638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 639 test "X$echo_testing_string" = 'X\t' && 640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 641 test "X$echo_testing_string" = "X$echo_test_string"; then 642 echo="$CONFIG_SHELL $0 --fallback-echo" 643 else 644 # maybe with a smaller string... 645 prev=: 646 647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 649 then 650 break 651 fi 652 prev="$cmd" 653 done 654 655 if test "$prev" != 'sed 50q "$0"'; then 656 echo_test_string=`eval $prev` 657 export echo_test_string 658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 659 else 660 # Oops. We lost completely, so just stick with echo. 661 echo=echo 662 fi 663 fi 664 fi 665 fi 666fi 667fi 668 669# Copy echo and quote the copy suitably for passing to libtool from 670# the Makefile, instead of quoting the original, which is used later. 671ECHO=$echo 672if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 673 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 674fi 675 676 677 678 679test -n "$DJDIR" || exec 7<&0 </dev/null 680exec 6>&1 681 682# Name of the host. 683# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 684# so uname gets run too. 685ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 686 687# 688# Initializations. 689# 690ac_default_prefix=/usr/local 691ac_clean_files= 692ac_config_libobj_dir=. 693LIBOBJS= 694cross_compiling=no 695subdirs= 696MFLAGS= 697MAKEFLAGS= 698 699# Identity of this package. 700PACKAGE_NAME= 701PACKAGE_TARNAME= 702PACKAGE_VERSION= 703PACKAGE_STRING= 704PACKAGE_BUGREPORT= 705PACKAGE_URL= 706 707ac_unique_file="main.c" 708ac_unique_file="header.h" 709# Factoring default headers for most tests. 710ac_includes_default="\ 711#include <stdio.h> 712#ifdef HAVE_SYS_TYPES_H 713# include <sys/types.h> 714#endif 715#ifdef HAVE_SYS_STAT_H 716# include <sys/stat.h> 717#endif 718#ifdef STDC_HEADERS 719# include <stdlib.h> 720# include <stddef.h> 721#else 722# ifdef HAVE_STDLIB_H 723# include <stdlib.h> 724# endif 725#endif 726#ifdef HAVE_STRING_H 727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 728# include <memory.h> 729# endif 730# include <string.h> 731#endif 732#ifdef HAVE_STRINGS_H 733# include <strings.h> 734#endif 735#ifdef HAVE_INTTYPES_H 736# include <inttypes.h> 737#endif 738#ifdef HAVE_STDINT_H 739# include <stdint.h> 740#endif 741#ifdef HAVE_UNISTD_H 742# include <unistd.h> 743#endif" 744 745ac_subst_vars='am__EXEEXT_FALSE 746am__EXEEXT_TRUE 747LTLIBOBJS 748LIBOBJS 749BINSUBDIR 750HAVE_INLINE 751LIBOPTS_CFLAGS 752LIBOPTS_LDADD 753NEED_LIBOPTS_FALSE 754NEED_LIBOPTS_TRUE 755INSTALL_LIBOPTS_FALSE 756INSTALL_LIBOPTS_TRUE 757LIBOPTS_DIR 758LIBTOOL 759CPP 760RANLIB 761AR 762ECHO 763LN_S 764EGREP 765GREP 766am__fastdepCC_FALSE 767am__fastdepCC_TRUE 768CCDEPMODE 769AMDEPBACKSLASH 770AMDEP_FALSE 771AMDEP_TRUE 772am__quote 773am__include 774DEPDIR 775OBJEXT 776EXEEXT 777ac_ct_CC 778CPPFLAGS 779LDFLAGS 780CFLAGS 781CC 782host_os 783host_vendor 784host_cpu 785host 786build_os 787build_vendor 788build_cpu 789build 790am__untar 791am__tar 792AMTAR 793am__leading_dot 794SET_MAKE 795AWK 796mkdir_p 797MKDIR_P 798INSTALL_STRIP_PROGRAM 799STRIP 800install_sh 801MAKEINFO 802AUTOHEADER 803AUTOMAKE 804AUTOCONF 805ACLOCAL 806VERSION 807PACKAGE 808CYGPATH_W 809am__isrc 810INSTALL_DATA 811INSTALL_SCRIPT 812INSTALL_PROGRAM 813target_alias 814host_alias 815build_alias 816LIBS 817ECHO_T 818ECHO_N 819ECHO_C 820DEFS 821mandir 822localedir 823libdir 824psdir 825pdfdir 826dvidir 827htmldir 828infodir 829docdir 830oldincludedir 831includedir 832localstatedir 833sharedstatedir 834sysconfdir 835datadir 836datarootdir 837libexecdir 838sbindir 839bindir 840program_transform_name 841prefix 842exec_prefix 843PACKAGE_URL 844PACKAGE_BUGREPORT 845PACKAGE_STRING 846PACKAGE_VERSION 847PACKAGE_TARNAME 848PACKAGE_NAME 849PATH_SEPARATOR 850SHELL' 851ac_subst_files='' 852ac_user_opts=' 853enable_option_checking 854enable_dependency_tracking 855enable_shared 856enable_static 857enable_fast_install 858with_gnu_ld 859enable_libtool_lock 860with_pic 861with_tags 862enable_local_libopts 863enable_libopts_install 864with_autoopts_config 865with_regex_header 866with_libregex 867with_libregex_cflags 868with_libregex_libs 869enable_optional_args 870with_binsubdir 871' 872 ac_precious_vars='build_alias 873host_alias 874target_alias 875CC 876CFLAGS 877LDFLAGS 878LIBS 879CPPFLAGS 880CPP' 881 882 883# Initialize some variables set by options. 884ac_init_help= 885ac_init_version=false 886ac_unrecognized_opts= 887ac_unrecognized_sep= 888# The variables have the same names as the options, with 889# dashes changed to underlines. 890cache_file=/dev/null 891exec_prefix=NONE 892no_create= 893no_recursion= 894prefix=NONE 895program_prefix=NONE 896program_suffix=NONE 897program_transform_name=s,x,x, 898silent= 899site= 900srcdir= 901verbose= 902x_includes=NONE 903x_libraries=NONE 904 905# Installation directory options. 906# These are left unexpanded so users can "make install exec_prefix=/foo" 907# and all the variables that are supposed to be based on exec_prefix 908# by default will actually change. 909# Use braces instead of parens because sh, perl, etc. also accept them. 910# (The list follows the same order as the GNU Coding Standards.) 911bindir='${exec_prefix}/bin' 912sbindir='${exec_prefix}/sbin' 913libexecdir='${exec_prefix}/libexec' 914datarootdir='${prefix}/share' 915datadir='${datarootdir}' 916sysconfdir='${prefix}/etc' 917sharedstatedir='${prefix}/com' 918localstatedir='${prefix}/var' 919includedir='${prefix}/include' 920oldincludedir='/usr/include' 921docdir='${datarootdir}/doc/${PACKAGE}' 922infodir='${datarootdir}/info' 923htmldir='${docdir}' 924dvidir='${docdir}' 925pdfdir='${docdir}' 926psdir='${docdir}' 927libdir='${exec_prefix}/lib' 928localedir='${datarootdir}/locale' 929mandir='${datarootdir}/man' 930 931ac_prev= 932ac_dashdash= 933for ac_option 934do 935 # If the previous option needs an argument, assign it. 936 if test -n "$ac_prev"; then 937 eval $ac_prev=\$ac_option 938 ac_prev= 939 continue 940 fi 941 942 case $ac_option in 943 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 944 *) ac_optarg=yes ;; 945 esac 946 947 # Accept the important Cygnus configure options, so we can diagnose typos. 948 949 case $ac_dashdash$ac_option in 950 --) 951 ac_dashdash=yes ;; 952 953 -bindir | --bindir | --bindi | --bind | --bin | --bi) 954 ac_prev=bindir ;; 955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 956 bindir=$ac_optarg ;; 957 958 -build | --build | --buil | --bui | --bu) 959 ac_prev=build_alias ;; 960 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 961 build_alias=$ac_optarg ;; 962 963 -cache-file | --cache-file | --cache-fil | --cache-fi \ 964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 965 ac_prev=cache_file ;; 966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 968 cache_file=$ac_optarg ;; 969 970 --config-cache | -C) 971 cache_file=config.cache ;; 972 973 -datadir | --datadir | --datadi | --datad) 974 ac_prev=datadir ;; 975 -datadir=* | --datadir=* | --datadi=* | --datad=*) 976 datadir=$ac_optarg ;; 977 978 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 979 | --dataroo | --dataro | --datar) 980 ac_prev=datarootdir ;; 981 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 982 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 983 datarootdir=$ac_optarg ;; 984 985 -disable-* | --disable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=no ;; 1000 1001 -docdir | --docdir | --docdi | --doc | --do) 1002 ac_prev=docdir ;; 1003 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1004 docdir=$ac_optarg ;; 1005 1006 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1007 ac_prev=dvidir ;; 1008 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1009 dvidir=$ac_optarg ;; 1010 1011 -enable-* | --enable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=\$ac_optarg ;; 1026 1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029 | --exec | --exe | --ex) 1030 ac_prev=exec_prefix ;; 1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033 | --exec=* | --exe=* | --ex=*) 1034 exec_prefix=$ac_optarg ;; 1035 1036 -gas | --gas | --ga | --g) 1037 # Obsolete; use --with-gas. 1038 with_gas=yes ;; 1039 1040 -help | --help | --hel | --he | -h) 1041 ac_init_help=long ;; 1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043 ac_init_help=recursive ;; 1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045 ac_init_help=short ;; 1046 1047 -host | --host | --hos | --ho) 1048 ac_prev=host_alias ;; 1049 -host=* | --host=* | --hos=* | --ho=*) 1050 host_alias=$ac_optarg ;; 1051 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053 ac_prev=htmldir ;; 1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055 | --ht=*) 1056 htmldir=$ac_optarg ;; 1057 1058 -includedir | --includedir | --includedi | --included | --include \ 1059 | --includ | --inclu | --incl | --inc) 1060 ac_prev=includedir ;; 1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062 | --includ=* | --inclu=* | --incl=* | --inc=*) 1063 includedir=$ac_optarg ;; 1064 1065 -infodir | --infodir | --infodi | --infod | --info | --inf) 1066 ac_prev=infodir ;; 1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068 infodir=$ac_optarg ;; 1069 1070 -libdir | --libdir | --libdi | --libd) 1071 ac_prev=libdir ;; 1072 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073 libdir=$ac_optarg ;; 1074 1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076 | --libexe | --libex | --libe) 1077 ac_prev=libexecdir ;; 1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079 | --libexe=* | --libex=* | --libe=*) 1080 libexecdir=$ac_optarg ;; 1081 1082 -localedir | --localedir | --localedi | --localed | --locale) 1083 ac_prev=localedir ;; 1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085 localedir=$ac_optarg ;; 1086 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088 | --localstate | --localstat | --localsta | --localst | --locals) 1089 ac_prev=localstatedir ;; 1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092 localstatedir=$ac_optarg ;; 1093 1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095 ac_prev=mandir ;; 1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097 mandir=$ac_optarg ;; 1098 1099 -nfp | --nfp | --nf) 1100 # Obsolete; use --without-fp. 1101 with_fp=no ;; 1102 1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104 | --no-cr | --no-c | -n) 1105 no_create=yes ;; 1106 1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109 no_recursion=yes ;; 1110 1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113 | --oldin | --oldi | --old | --ol | --o) 1114 ac_prev=oldincludedir ;; 1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118 oldincludedir=$ac_optarg ;; 1119 1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121 ac_prev=prefix ;; 1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123 prefix=$ac_optarg ;; 1124 1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126 | --program-pre | --program-pr | --program-p) 1127 ac_prev=program_prefix ;; 1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130 program_prefix=$ac_optarg ;; 1131 1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133 | --program-suf | --program-su | --program-s) 1134 ac_prev=program_suffix ;; 1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137 program_suffix=$ac_optarg ;; 1138 1139 -program-transform-name | --program-transform-name \ 1140 | --program-transform-nam | --program-transform-na \ 1141 | --program-transform-n | --program-transform- \ 1142 | --program-transform | --program-transfor \ 1143 | --program-transfo | --program-transf \ 1144 | --program-trans | --program-tran \ 1145 | --progr-tra | --program-tr | --program-t) 1146 ac_prev=program_transform_name ;; 1147 -program-transform-name=* | --program-transform-name=* \ 1148 | --program-transform-nam=* | --program-transform-na=* \ 1149 | --program-transform-n=* | --program-transform-=* \ 1150 | --program-transform=* | --program-transfor=* \ 1151 | --program-transfo=* | --program-transf=* \ 1152 | --program-trans=* | --program-tran=* \ 1153 | --progr-tra=* | --program-tr=* | --program-t=*) 1154 program_transform_name=$ac_optarg ;; 1155 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157 ac_prev=pdfdir ;; 1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159 pdfdir=$ac_optarg ;; 1160 1161 -psdir | --psdir | --psdi | --psd | --ps) 1162 ac_prev=psdir ;; 1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164 psdir=$ac_optarg ;; 1165 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167 | -silent | --silent | --silen | --sile | --sil) 1168 silent=yes ;; 1169 1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171 ac_prev=sbindir ;; 1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173 | --sbi=* | --sb=*) 1174 sbindir=$ac_optarg ;; 1175 1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178 | --sharedst | --shareds | --shared | --share | --shar \ 1179 | --sha | --sh) 1180 ac_prev=sharedstatedir ;; 1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184 | --sha=* | --sh=*) 1185 sharedstatedir=$ac_optarg ;; 1186 1187 -site | --site | --sit) 1188 ac_prev=site ;; 1189 -site=* | --site=* | --sit=*) 1190 site=$ac_optarg ;; 1191 1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193 ac_prev=srcdir ;; 1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195 srcdir=$ac_optarg ;; 1196 1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198 | --syscon | --sysco | --sysc | --sys | --sy) 1199 ac_prev=sysconfdir ;; 1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202 sysconfdir=$ac_optarg ;; 1203 1204 -target | --target | --targe | --targ | --tar | --ta | --t) 1205 ac_prev=target_alias ;; 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207 target_alias=$ac_optarg ;; 1208 1209 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210 verbose=yes ;; 1211 1212 -version | --version | --versio | --versi | --vers | -V) 1213 ac_init_version=: ;; 1214 1215 -with-* | --with-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error "invalid package name: $ac_useropt" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=\$ac_optarg ;; 1230 1231 -without-* | --without-*) 1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1235 as_fn_error "invalid package name: $ac_useropt" 1236 ac_useropt_orig=$ac_useropt 1237 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1238 case $ac_user_opts in 1239 *" 1240"with_$ac_useropt" 1241"*) ;; 1242 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1243 ac_unrecognized_sep=', ';; 1244 esac 1245 eval with_$ac_useropt=no ;; 1246 1247 --x) 1248 # Obsolete; use --with-x. 1249 with_x=yes ;; 1250 1251 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1252 | --x-incl | --x-inc | --x-in | --x-i) 1253 ac_prev=x_includes ;; 1254 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1255 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1256 x_includes=$ac_optarg ;; 1257 1258 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1259 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1260 ac_prev=x_libraries ;; 1261 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1262 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1263 x_libraries=$ac_optarg ;; 1264 1265 -*) as_fn_error "unrecognized option: \`$ac_option' 1266Try \`$0 --help' for more information." 1267 ;; 1268 1269 *=*) 1270 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1271 # Reject names that are not valid shell variable names. 1272 case $ac_envvar in #( 1273 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1274 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1275 esac 1276 eval $ac_envvar=\$ac_optarg 1277 export $ac_envvar ;; 1278 1279 *) 1280 # FIXME: should be removed in autoconf 3.0. 1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1285 ;; 1286 1287 esac 1288done 1289 1290if test -n "$ac_prev"; then 1291 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1292 as_fn_error "missing argument to $ac_option" 1293fi 1294 1295if test -n "$ac_unrecognized_opts"; then 1296 case $enable_option_checking in 1297 no) ;; 1298 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1299 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1300 esac 1301fi 1302 1303# Check all directory arguments for consistency. 1304for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1305 datadir sysconfdir sharedstatedir localstatedir includedir \ 1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1307 libdir localedir mandir 1308do 1309 eval ac_val=\$$ac_var 1310 # Remove trailing slashes. 1311 case $ac_val in 1312 */ ) 1313 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1314 eval $ac_var=\$ac_val;; 1315 esac 1316 # Be sure to have absolute directory names. 1317 case $ac_val in 1318 [\\/$]* | ?:[\\/]* ) continue;; 1319 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1320 esac 1321 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1322done 1323 1324# There might be people who depend on the old broken behavior: `$host' 1325# used to hold the argument of --host etc. 1326# FIXME: To remove some day. 1327build=$build_alias 1328host=$host_alias 1329target=$target_alias 1330 1331# FIXME: To remove some day. 1332if test "x$host_alias" != x; then 1333 if test "x$build_alias" = x; then 1334 cross_compiling=maybe 1335 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1336 If a cross compiler is detected then cross compile mode will be used." >&2 1337 elif test "x$build_alias" != "x$host_alias"; then 1338 cross_compiling=yes 1339 fi 1340fi 1341 1342ac_tool_prefix= 1343test -n "$host_alias" && ac_tool_prefix=$host_alias- 1344 1345test "$silent" = yes && exec 6>/dev/null 1346 1347 1348ac_pwd=`pwd` && test -n "$ac_pwd" && 1349ac_ls_di=`ls -di .` && 1350ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1351 as_fn_error "working directory cannot be determined" 1352test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1353 as_fn_error "pwd does not report name of working directory" 1354 1355 1356# Find the source files, if location was not specified. 1357if test -z "$srcdir"; then 1358 ac_srcdir_defaulted=yes 1359 # Try the directory containing this script, then the parent directory. 1360 ac_confdir=`$as_dirname -- "$as_myself" || 1361$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1362 X"$as_myself" : 'X\(//\)[^/]' \| \ 1363 X"$as_myself" : 'X\(//\)$' \| \ 1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1365$as_echo X"$as_myself" | 1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)[^/].*/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\).*/{ 1379 s//\1/ 1380 q 1381 } 1382 s/.*/./; q'` 1383 srcdir=$ac_confdir 1384 if test ! -r "$srcdir/$ac_unique_file"; then 1385 srcdir=.. 1386 fi 1387else 1388 ac_srcdir_defaulted=no 1389fi 1390if test ! -r "$srcdir/$ac_unique_file"; then 1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1393fi 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1397 pwd)` 1398# When building in place, set srcdir=. 1399if test "$ac_abs_confdir" = "$ac_pwd"; then 1400 srcdir=. 1401fi 1402# Remove unnecessary trailing slashes from srcdir. 1403# Double slashes in file names in object file debugging info 1404# mess up M-x gdb in Emacs. 1405case $srcdir in 1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1407esac 1408for ac_var in $ac_precious_vars; do 1409 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_env_${ac_var}_value=\$${ac_var} 1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1412 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1413done 1414 1415# 1416# Report the --help message. 1417# 1418if test "$ac_init_help" = "long"; then 1419 # Omit some internal or obsolete options to make the list less imposing. 1420 # This message is too long to be a string in the A/UX 3.1 sh. 1421 cat <<_ACEOF 1422\`configure' configures this package to adapt to many kinds of systems. 1423 1424Usage: $0 [OPTION]... [VAR=VALUE]... 1425 1426To assign environment variables (e.g., CC, CFLAGS...), specify them as 1427VAR=VALUE. See below for descriptions of some of the useful variables. 1428 1429Defaults for the options are specified in brackets. 1430 1431Configuration: 1432 -h, --help display this help and exit 1433 --help=short display options specific to this package 1434 --help=recursive display the short help of all the included packages 1435 -V, --version display version information and exit 1436 -q, --quiet, --silent do not print \`checking...' messages 1437 --cache-file=FILE cache test results in FILE [disabled] 1438 -C, --config-cache alias for \`--cache-file=config.cache' 1439 -n, --no-create do not create output files 1440 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1441 1442Installation directories: 1443 --prefix=PREFIX install architecture-independent files in PREFIX 1444 [$ac_default_prefix] 1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1446 [PREFIX] 1447 1448By default, \`make install' will install all the files in 1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1450an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1451for instance \`--prefix=\$HOME'. 1452 1453For better control, use the options below. 1454 1455Fine tuning of the installation directories: 1456 --bindir=DIR user executables [EPREFIX/bin] 1457 --sbindir=DIR system admin executables [EPREFIX/sbin] 1458 --libexecdir=DIR program executables [EPREFIX/libexec] 1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1462 --libdir=DIR object code libraries [EPREFIX/lib] 1463 --includedir=DIR C header files [PREFIX/include] 1464 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1467 --infodir=DIR info documentation [DATAROOTDIR/info] 1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1469 --mandir=DIR man documentation [DATAROOTDIR/man] 1470 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1471 --htmldir=DIR html documentation [DOCDIR] 1472 --dvidir=DIR dvi documentation [DOCDIR] 1473 --pdfdir=DIR pdf documentation [DOCDIR] 1474 --psdir=DIR ps documentation [DOCDIR] 1475_ACEOF 1476 1477 cat <<\_ACEOF 1478 1479Program names: 1480 --program-prefix=PREFIX prepend PREFIX to installed program names 1481 --program-suffix=SUFFIX append SUFFIX to installed program names 1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1483 1484System types: 1485 --build=BUILD configure for building on BUILD [guessed] 1486 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1487_ACEOF 1488fi 1489 1490if test -n "$ac_init_help"; then 1491 1492 cat <<\_ACEOF 1493 1494Optional Features: 1495 --disable-option-checking ignore unrecognized --enable/--with options 1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1498 --disable-dependency-tracking speeds up one-time build 1499 --enable-dependency-tracking do not reject slow dependency extractors 1500 --enable-shared[=PKGS] build shared libraries [default=no] 1501 --enable-static[=PKGS] build static libraries [default=yes] 1502 --enable-fast-install[=PKGS] 1503 optimize for fast installation [default=yes] 1504 --disable-libtool-lock avoid locking (might break parallel builds) 1505 --enable-local-libopts Force using the supplied libopts tearoff code 1506 --disable-libopts-install 1507 Do not install libopts with client installation 1508 --disable-optional-args not wanting optional option args 1509 1510Optional Packages: 1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1514 --with-pic try to use only PIC/non-PIC objects [default=use 1515 both] 1516 --with-tags[=TAGS] include additional configurations [automatic] 1517 --with-autoopts-config specify the config-info script 1518 --with-regex-header a reg expr header is specified 1519 --with-libregex libregex installation prefix 1520 --with-libregex-cflags libregex compile flags 1521 --with-libregex-libs libregex link command arguments 1522 --with-binsubdir bin ={bin,sbin} 1523 1524Some influential environment variables: 1525 CC C compiler command 1526 CFLAGS C compiler flags 1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1528 nonstandard directory <lib dir> 1529 LIBS libraries to pass to the linker, e.g. -l<library> 1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1531 you have headers in a nonstandard directory <include dir> 1532 CPP C preprocessor 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to the package provider. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || 1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1547 continue 1548 ac_builddir=. 1549 1550case "$ac_dir" in 1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552*) 1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1554 # A ".." for each directory in $ac_dir_suffix. 1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1556 case $ac_top_builddir_sub in 1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1559 esac ;; 1560esac 1561ac_abs_top_builddir=$ac_pwd 1562ac_abs_builddir=$ac_pwd$ac_dir_suffix 1563# for backward compatibility: 1564ac_top_builddir=$ac_top_build_prefix 1565 1566case $srcdir in 1567 .) # We are building in place. 1568 ac_srcdir=. 1569 ac_top_srcdir=$ac_top_builddir_sub 1570 ac_abs_top_srcdir=$ac_pwd ;; 1571 [\\/]* | ?:[\\/]* ) # Absolute name. 1572 ac_srcdir=$srcdir$ac_dir_suffix; 1573 ac_top_srcdir=$srcdir 1574 ac_abs_top_srcdir=$srcdir ;; 1575 *) # Relative name. 1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1577 ac_top_srcdir=$ac_top_build_prefix$srcdir 1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1579esac 1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1581 1582 cd "$ac_dir" || { ac_status=$?; continue; } 1583 # Check for guested configure. 1584 if test -f "$ac_srcdir/configure.gnu"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1587 elif test -f "$ac_srcdir/configure"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure" --help=recursive 1590 else 1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1592 fi || ac_status=$? 1593 cd "$ac_pwd" || { ac_status=$?; break; } 1594 done 1595fi 1596 1597test -n "$ac_init_help" && exit $ac_status 1598if $ac_init_version; then 1599 cat <<\_ACEOF 1600configure 1601generated by GNU Autoconf 2.65 1602 1603Copyright (C) 2009 Free Software Foundation, Inc. 1604This configure script is free software; the Free Software Foundation 1605gives unlimited permission to copy, distribute and modify it. 1606_ACEOF 1607 exit 1608fi 1609 1610## ------------------------ ## 1611## Autoconf initialization. ## 1612## ------------------------ ## 1613 1614# ac_fn_c_try_compile LINENO 1615# -------------------------- 1616# Try to compile conftest.$ac_ext, and return whether this succeeded. 1617ac_fn_c_try_compile () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 rm -f conftest.$ac_objext 1621 if { { ac_try="$ac_compile" 1622case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625esac 1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627$as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_compile") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { 1637 test -z "$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 } && test -s conftest.$ac_objext; then : 1640 ac_retval=0 1641else 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_compile 1651 1652# ac_fn_c_try_link LINENO 1653# ----------------------- 1654# Try to link conftest.$ac_ext, and return whether this succeeded. 1655ac_fn_c_try_link () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 rm -f conftest.$ac_objext conftest$ac_exeext 1659 if { { ac_try="$ac_link" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_link") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } && { 1675 test -z "$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 } && test -s conftest$ac_exeext && { 1678 test "$cross_compiling" = yes || 1679 $as_test_x conftest$ac_exeext 1680 }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1690 # interfere with the next link command; also delete a directory that is 1691 # left behind by Apple's compiler. We do this before executing the actions. 1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_link 1697 1698# ac_fn_c_try_cpp LINENO 1699# ---------------------- 1700# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1701ac_fn_c_try_cpp () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 if { { ac_try="$ac_cpp conftest.$ac_ext" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1712 ac_status=$? 1713 if test -s conftest.err; then 1714 grep -v '^ *+' conftest.err >conftest.er1 1715 cat conftest.er1 >&5 1716 mv -f conftest.er1 conftest.err 1717 fi 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; } >/dev/null && { 1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1721 test ! -s conftest.err 1722 }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729fi 1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_cpp 1734 1735# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1736# ------------------------------------------------------- 1737# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1738# the include files in INCLUDES and setting the cache variable VAR 1739# accordingly. 1740ac_fn_c_check_header_mongrel () 1741{ 1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1743 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1747 $as_echo_n "(cached) " >&6 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752else 1753 # Is the header compilable? 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1755$as_echo_n "checking $2 usability... " >&6; } 1756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758$4 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO"; then : 1762 ac_header_compiler=yes 1763else 1764 ac_header_compiler=no 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1768$as_echo "$ac_header_compiler" >&6; } 1769 1770# Is the header present? 1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1772$as_echo_n "checking $2 presence... " >&6; } 1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775#include <$2> 1776_ACEOF 1777if ac_fn_c_try_cpp "$LINENO"; then : 1778 ac_header_preproc=yes 1779else 1780 ac_header_preproc=no 1781fi 1782rm -f conftest.err conftest.$ac_ext 1783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1784$as_echo "$ac_header_preproc" >&6; } 1785 1786# So? What about this header? 1787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1788 yes:no: ) 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1790$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1793 ;; 1794 no:yes:* ) 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1796$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1798$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1800$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1802$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1804$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1805 ;; 1806esac 1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1808$as_echo_n "checking for $2... " >&6; } 1809if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1810 $as_echo_n "(cached) " >&6 1811else 1812 eval "$3=\$ac_header_compiler" 1813fi 1814eval ac_res=\$$3 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1816$as_echo "$ac_res" >&6; } 1817fi 1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1819 1820} # ac_fn_c_check_header_mongrel 1821 1822# ac_fn_c_try_run LINENO 1823# ---------------------- 1824# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1825# that executables *can* be run. 1826ac_fn_c_try_run () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 if { { ac_try="$ac_link" 1830case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833esac 1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1835$as_echo "$ac_try_echo"; } >&5 1836 (eval "$ac_link") 2>&5 1837 ac_status=$? 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1840 { { case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_try") 2>&5 1847 ac_status=$? 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; }; }; then : 1850 ac_retval=0 1851else 1852 $as_echo "$as_me: program exited with status $ac_status" >&5 1853 $as_echo "$as_me: failed program was:" >&5 1854sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=$ac_status 1857fi 1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1860 as_fn_set_status $ac_retval 1861 1862} # ac_fn_c_try_run 1863 1864# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1865# ------------------------------------------------------- 1866# Tests whether HEADER exists and can be compiled using the include files in 1867# INCLUDES, setting the cache variable VAR accordingly. 1868ac_fn_c_check_header_compile () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1872$as_echo_n "checking for $2... " >&6; } 1873if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1874 $as_echo_n "(cached) " >&6 1875else 1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1877/* end confdefs.h. */ 1878$4 1879#include <$2> 1880_ACEOF 1881if ac_fn_c_try_compile "$LINENO"; then : 1882 eval "$3=yes" 1883else 1884 eval "$3=no" 1885fi 1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1887fi 1888eval ac_res=\$$3 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890$as_echo "$ac_res" >&6; } 1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1892 1893} # ac_fn_c_check_header_compile 1894 1895# ac_fn_c_check_func LINENO FUNC VAR 1896# ---------------------------------- 1897# Tests whether FUNC exists, setting the cache variable VAR accordingly 1898ac_fn_c_check_func () 1899{ 1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1902$as_echo_n "checking for $2... " >&6; } 1903if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1904 $as_echo_n "(cached) " >&6 1905else 1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1907/* end confdefs.h. */ 1908/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1910#define $2 innocuous_$2 1911 1912/* System header to define __stub macros and hopefully few prototypes, 1913 which can conflict with char $2 (); below. 1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1915 <limits.h> exists even on freestanding compilers. */ 1916 1917#ifdef __STDC__ 1918# include <limits.h> 1919#else 1920# include <assert.h> 1921#endif 1922 1923#undef $2 1924 1925/* Override any GCC internal prototype to avoid an error. 1926 Use char because int might match the return type of a GCC 1927 builtin and then its argument prototype would still apply. */ 1928#ifdef __cplusplus 1929extern "C" 1930#endif 1931char $2 (); 1932/* The GNU C library defines this for functions which it implements 1933 to always fail with ENOSYS. Some functions are actually named 1934 something starting with __ and the normal name is an alias. */ 1935#if defined __stub_$2 || defined __stub___$2 1936choke me 1937#endif 1938 1939int 1940main () 1941{ 1942return $2 (); 1943 ; 1944 return 0; 1945} 1946_ACEOF 1947if ac_fn_c_try_link "$LINENO"; then : 1948 eval "$3=yes" 1949else 1950 eval "$3=no" 1951fi 1952rm -f core conftest.err conftest.$ac_objext \ 1953 conftest$ac_exeext conftest.$ac_ext 1954fi 1955eval ac_res=\$$3 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1957$as_echo "$ac_res" >&6; } 1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1959 1960} # ac_fn_c_check_func 1961 1962# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1963# ------------------------------------------- 1964# Tests whether TYPE exists after having included INCLUDES, setting cache 1965# variable VAR accordingly. 1966ac_fn_c_check_type () 1967{ 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1970$as_echo_n "checking for $2... " >&6; } 1971if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1972 $as_echo_n "(cached) " >&6 1973else 1974 eval "$3=no" 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977$4 1978int 1979main () 1980{ 1981if (sizeof ($2)) 1982 return 0; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1989/* end confdefs.h. */ 1990$4 1991int 1992main () 1993{ 1994if (sizeof (($2))) 1995 return 0; 1996 ; 1997 return 0; 1998} 1999_ACEOF 2000if ac_fn_c_try_compile "$LINENO"; then : 2001 2002else 2003 eval "$3=yes" 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2013 2014} # ac_fn_c_check_type 2015 2016# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2017# -------------------------------------------- 2018# Tries to find the compile-time value of EXPR in a program that includes 2019# INCLUDES, setting VAR accordingly. Returns whether the value could be 2020# computed 2021ac_fn_c_compute_int () 2022{ 2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2024 if test "$cross_compiling" = yes; then 2025 # Depending upon the size, compute the lo and hi bounds. 2026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2027/* end confdefs.h. */ 2028$4 2029int 2030main () 2031{ 2032static int test_array [1 - 2 * !(($2) >= 0)]; 2033test_array [0] = 0 2034 2035 ; 2036 return 0; 2037} 2038_ACEOF 2039if ac_fn_c_try_compile "$LINENO"; then : 2040 ac_lo=0 ac_mid=0 2041 while :; do 2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044$4 2045int 2046main () 2047{ 2048static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2049test_array [0] = 0 2050 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 ac_hi=$ac_mid; break 2057else 2058 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2059 if test $ac_lo -le $ac_mid; then 2060 ac_lo= ac_hi= 2061 break 2062 fi 2063 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2066 done 2067else 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070$4 2071int 2072main () 2073{ 2074static int test_array [1 - 2 * !(($2) < 0)]; 2075test_array [0] = 0 2076 2077 ; 2078 return 0; 2079} 2080_ACEOF 2081if ac_fn_c_try_compile "$LINENO"; then : 2082 ac_hi=-1 ac_mid=-1 2083 while :; do 2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2085/* end confdefs.h. */ 2086$4 2087int 2088main () 2089{ 2090static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2091test_array [0] = 0 2092 2093 ; 2094 return 0; 2095} 2096_ACEOF 2097if ac_fn_c_try_compile "$LINENO"; then : 2098 ac_lo=$ac_mid; break 2099else 2100 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2101 if test $ac_mid -le $ac_hi; then 2102 ac_lo= ac_hi= 2103 break 2104 fi 2105 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2106fi 2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2108 done 2109else 2110 ac_lo= ac_hi= 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113fi 2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2115# Binary search between lo and hi bounds. 2116while test "x$ac_lo" != "x$ac_hi"; do 2117 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119/* end confdefs.h. */ 2120$4 2121int 2122main () 2123{ 2124static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2125test_array [0] = 0 2126 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 ac_hi=$ac_mid 2133else 2134 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2135fi 2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2137done 2138case $ac_lo in #(( 2139?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2140'') ac_retval=1 ;; 2141esac 2142 else 2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2144/* end confdefs.h. */ 2145$4 2146static long int longval () { return $2; } 2147static unsigned long int ulongval () { return $2; } 2148#include <stdio.h> 2149#include <stdlib.h> 2150int 2151main () 2152{ 2153 2154 FILE *f = fopen ("conftest.val", "w"); 2155 if (! f) 2156 return 1; 2157 if (($2) < 0) 2158 { 2159 long int i = longval (); 2160 if (i != ($2)) 2161 return 1; 2162 fprintf (f, "%ld", i); 2163 } 2164 else 2165 { 2166 unsigned long int i = ulongval (); 2167 if (i != ($2)) 2168 return 1; 2169 fprintf (f, "%lu", i); 2170 } 2171 /* Do not output a trailing newline, as this causes \r\n confusion 2172 on some platforms. */ 2173 return ferror (f) || fclose (f) != 0; 2174 2175 ; 2176 return 0; 2177} 2178_ACEOF 2179if ac_fn_c_try_run "$LINENO"; then : 2180 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2181else 2182 ac_retval=1 2183fi 2184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2185 conftest.$ac_objext conftest.beam conftest.$ac_ext 2186rm -f conftest.val 2187 2188 fi 2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2190 as_fn_set_status $ac_retval 2191 2192} # ac_fn_c_compute_int 2193cat >config.log <<_ACEOF 2194This file contains any messages produced by compilers while 2195running configure, to aid debugging if configure makes a mistake. 2196 2197It was created by $as_me, which was 2198generated by GNU Autoconf 2.65. Invocation command line was 2199 2200 $ $0 $@ 2201 2202_ACEOF 2203exec 5>>config.log 2204{ 2205cat <<_ASUNAME 2206## --------- ## 2207## Platform. ## 2208## --------- ## 2209 2210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2211uname -m = `(uname -m) 2>/dev/null || echo unknown` 2212uname -r = `(uname -r) 2>/dev/null || echo unknown` 2213uname -s = `(uname -s) 2>/dev/null || echo unknown` 2214uname -v = `(uname -v) 2>/dev/null || echo unknown` 2215 2216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2217/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2218 2219/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2220/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2222/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2223/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2224/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2225/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2226 2227_ASUNAME 2228 2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2230for as_dir in $PATH 2231do 2232 IFS=$as_save_IFS 2233 test -z "$as_dir" && as_dir=. 2234 $as_echo "PATH: $as_dir" 2235 done 2236IFS=$as_save_IFS 2237 2238} >&5 2239 2240cat >&5 <<_ACEOF 2241 2242 2243## ----------- ## 2244## Core tests. ## 2245## ----------- ## 2246 2247_ACEOF 2248 2249 2250# Keep a trace of the command line. 2251# Strip out --no-create and --no-recursion so they do not pile up. 2252# Strip out --silent because we don't want to record it for future runs. 2253# Also quote any args containing shell meta-characters. 2254# Make two passes to allow for proper duplicate-argument suppression. 2255ac_configure_args= 2256ac_configure_args0= 2257ac_configure_args1= 2258ac_must_keep_next=false 2259for ac_pass in 1 2 2260do 2261 for ac_arg 2262 do 2263 case $ac_arg in 2264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2266 | -silent | --silent | --silen | --sile | --sil) 2267 continue ;; 2268 *\'*) 2269 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2270 esac 2271 case $ac_pass in 2272 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2273 2) 2274 as_fn_append ac_configure_args1 " '$ac_arg'" 2275 if test $ac_must_keep_next = true; then 2276 ac_must_keep_next=false # Got value, back to normal. 2277 else 2278 case $ac_arg in 2279 *=* | --config-cache | -C | -disable-* | --disable-* \ 2280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2282 | -with-* | --with-* | -without-* | --without-* | --x) 2283 case "$ac_configure_args0 " in 2284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2285 esac 2286 ;; 2287 -* ) ac_must_keep_next=true ;; 2288 esac 2289 fi 2290 as_fn_append ac_configure_args " '$ac_arg'" 2291 ;; 2292 esac 2293 done 2294done 2295{ ac_configure_args0=; unset ac_configure_args0;} 2296{ ac_configure_args1=; unset ac_configure_args1;} 2297 2298# When interrupted or exit'd, cleanup temporary files, and complete 2299# config.log. We remove comments because anyway the quotes in there 2300# would cause problems or look ugly. 2301# WARNING: Use '\'' to represent an apostrophe within the trap. 2302# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2303trap 'exit_status=$? 2304 # Save into config.log some information that might help in debugging. 2305 { 2306 echo 2307 2308 cat <<\_ASBOX 2309## ---------------- ## 2310## Cache variables. ## 2311## ---------------- ## 2312_ASBOX 2313 echo 2314 # The following way of writing the cache mishandles newlines in values, 2315( 2316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2317 eval ac_val=\$$ac_var 2318 case $ac_val in #( 2319 *${as_nl}*) 2320 case $ac_var in #( 2321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2323 esac 2324 case $ac_var in #( 2325 _ | IFS | as_nl) ;; #( 2326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2327 *) { eval $ac_var=; unset $ac_var;} ;; 2328 esac ;; 2329 esac 2330 done 2331 (set) 2>&1 | 2332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2333 *${as_nl}ac_space=\ *) 2334 sed -n \ 2335 "s/'\''/'\''\\\\'\'''\''/g; 2336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2337 ;; #( 2338 *) 2339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2340 ;; 2341 esac | 2342 sort 2343) 2344 echo 2345 2346 cat <<\_ASBOX 2347## ----------------- ## 2348## Output variables. ## 2349## ----------------- ## 2350_ASBOX 2351 echo 2352 for ac_var in $ac_subst_vars 2353 do 2354 eval ac_val=\$$ac_var 2355 case $ac_val in 2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2357 esac 2358 $as_echo "$ac_var='\''$ac_val'\''" 2359 done | sort 2360 echo 2361 2362 if test -n "$ac_subst_files"; then 2363 cat <<\_ASBOX 2364## ------------------- ## 2365## File substitutions. ## 2366## ------------------- ## 2367_ASBOX 2368 echo 2369 for ac_var in $ac_subst_files 2370 do 2371 eval ac_val=\$$ac_var 2372 case $ac_val in 2373 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2374 esac 2375 $as_echo "$ac_var='\''$ac_val'\''" 2376 done | sort 2377 echo 2378 fi 2379 2380 if test -s confdefs.h; then 2381 cat <<\_ASBOX 2382## ----------- ## 2383## confdefs.h. ## 2384## ----------- ## 2385_ASBOX 2386 echo 2387 cat confdefs.h 2388 echo 2389 fi 2390 test "$ac_signal" != 0 && 2391 $as_echo "$as_me: caught signal $ac_signal" 2392 $as_echo "$as_me: exit $exit_status" 2393 } >&5 2394 rm -f core *.core core.conftest.* && 2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2396 exit $exit_status 2397' 0 2398for ac_signal in 1 2 13 15; do 2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2400done 2401ac_signal=0 2402 2403# confdefs.h avoids OS command line length limits that DEFS can exceed. 2404rm -f -r conftest* confdefs.h 2405 2406$as_echo "/* confdefs.h */" > confdefs.h 2407 2408# Predefined preprocessor variables. 2409 2410cat >>confdefs.h <<_ACEOF 2411#define PACKAGE_NAME "$PACKAGE_NAME" 2412_ACEOF 2413 2414cat >>confdefs.h <<_ACEOF 2415#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2416_ACEOF 2417 2418cat >>confdefs.h <<_ACEOF 2419#define PACKAGE_VERSION "$PACKAGE_VERSION" 2420_ACEOF 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_STRING "$PACKAGE_STRING" 2424_ACEOF 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2428_ACEOF 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_URL "$PACKAGE_URL" 2432_ACEOF 2433 2434 2435# Let the site file select an alternate cache file if it wants to. 2436# Prefer an explicitly selected file to automatically selected ones. 2437ac_site_file1=NONE 2438ac_site_file2=NONE 2439if test -n "$CONFIG_SITE"; then 2440 ac_site_file1=$CONFIG_SITE 2441elif test "x$prefix" != xNONE; then 2442 ac_site_file1=$prefix/share/config.site 2443 ac_site_file2=$prefix/etc/config.site 2444else 2445 ac_site_file1=$ac_default_prefix/share/config.site 2446 ac_site_file2=$ac_default_prefix/etc/config.site 2447fi 2448for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2449do 2450 test "x$ac_site_file" = xNONE && continue 2451 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2453$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2454 sed 's/^/| /' "$ac_site_file" >&5 2455 . "$ac_site_file" 2456 fi 2457done 2458 2459if test -r "$cache_file"; then 2460 # Some versions of bash will fail to source /dev/null (special files 2461 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2462 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2464$as_echo "$as_me: loading cache $cache_file" >&6;} 2465 case $cache_file in 2466 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2467 *) . "./$cache_file";; 2468 esac 2469 fi 2470else 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2472$as_echo "$as_me: creating cache $cache_file" >&6;} 2473 >$cache_file 2474fi 2475 2476# Check that the precious variables saved in the cache have kept the same 2477# value. 2478ac_cache_corrupted=false 2479for ac_var in $ac_precious_vars; do 2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2481 eval ac_new_set=\$ac_env_${ac_var}_set 2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2483 eval ac_new_val=\$ac_env_${ac_var}_value 2484 case $ac_old_set,$ac_new_set in 2485 set,) 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2487$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2488 ac_cache_corrupted=: ;; 2489 ,set) 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2491$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,);; 2494 *) 2495 if test "x$ac_old_val" != "x$ac_new_val"; then 2496 # differences in whitespace do not lead to failure. 2497 ac_old_val_w=`echo x $ac_old_val` 2498 ac_new_val_w=`echo x $ac_new_val` 2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2501$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2502 ac_cache_corrupted=: 2503 else 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2505$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2506 eval $ac_var=\$ac_old_val 2507 fi 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2509$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2511$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2512 fi;; 2513 esac 2514 # Pass precious variables to config.status. 2515 if test "$ac_new_set" = set; then 2516 case $ac_new_val in 2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2518 *) ac_arg=$ac_var=$ac_new_val ;; 2519 esac 2520 case " $ac_configure_args " in 2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2523 esac 2524 fi 2525done 2526if $ac_cache_corrupted; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2530$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2531 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2532fi 2533## -------------------- ## 2534## Main body of script. ## 2535## -------------------- ## 2536 2537ac_ext=c 2538ac_cpp='$CPP $CPPFLAGS' 2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2541ac_compiler_gnu=$ac_cv_c_compiler_gnu 2542 2543 2544am__api_version='1.11' 2545 2546ac_aux_dir= 2547for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2548 for ac_t in install-sh install.sh shtool; do 2549 if test -f "$ac_dir/$ac_t"; then 2550 ac_aux_dir=$ac_dir 2551 ac_install_sh="$ac_aux_dir/$ac_t -c" 2552 break 2 2553 fi 2554 done 2555done 2556if test -z "$ac_aux_dir"; then 2557 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2558fi 2559 2560# These three variables are undocumented and unsupported, 2561# and are intended to be withdrawn in a future Autoconf release. 2562# They can cause serious problems if a builder's source tree is in a directory 2563# whose full name contains unusual characters. 2564ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2565ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2566ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2567 2568 2569# Find a good install program. We prefer a C program (faster), 2570# so one script is as good as another. But avoid the broken or 2571# incompatible versions: 2572# SysV /etc/install, /usr/sbin/install 2573# SunOS /usr/etc/install 2574# IRIX /sbin/install 2575# AIX /bin/install 2576# AmigaOS /C/install, which installs bootblocks on floppy discs 2577# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2578# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2580# OS/2's system install, which has a completely different semantic 2581# ./install, which can be erroneously created by make from ./install.sh. 2582# Reject install programs that cannot install multiple files. 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2584$as_echo_n "checking for a BSD-compatible install... " >&6; } 2585if test -z "$INSTALL"; then 2586if test "${ac_cv_path_install+set}" = set; then : 2587 $as_echo_n "(cached) " >&6 2588else 2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2590for as_dir in $PATH 2591do 2592 IFS=$as_save_IFS 2593 test -z "$as_dir" && as_dir=. 2594 # Account for people who put trailing slashes in PATH elements. 2595case $as_dir/ in #(( 2596 ./ | .// | /[cC]/* | \ 2597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2599 /usr/ucb/* ) ;; 2600 *) 2601 # OSF1 and SCO ODT 3.0 have their own names for install. 2602 # Don't use installbsd from OSF since it installs stuff as root 2603 # by default. 2604 for ac_prog in ginstall scoinst install; do 2605 for ac_exec_ext in '' $ac_executable_extensions; do 2606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2607 if test $ac_prog = install && 2608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2609 # AIX install. It has an incompatible calling convention. 2610 : 2611 elif test $ac_prog = install && 2612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2613 # program-specific install script used by HP pwplus--don't use. 2614 : 2615 else 2616 rm -rf conftest.one conftest.two conftest.dir 2617 echo one > conftest.one 2618 echo two > conftest.two 2619 mkdir conftest.dir 2620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2621 test -s conftest.one && test -s conftest.two && 2622 test -s conftest.dir/conftest.one && 2623 test -s conftest.dir/conftest.two 2624 then 2625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2626 break 3 2627 fi 2628 fi 2629 fi 2630 done 2631 done 2632 ;; 2633esac 2634 2635 done 2636IFS=$as_save_IFS 2637 2638rm -rf conftest.one conftest.two conftest.dir 2639 2640fi 2641 if test "${ac_cv_path_install+set}" = set; then 2642 INSTALL=$ac_cv_path_install 2643 else 2644 # As a last resort, use the slow shell script. Don't cache a 2645 # value for INSTALL within a source directory, because that will 2646 # break other packages using the cache if that directory is 2647 # removed, or if the value is a relative name. 2648 INSTALL=$ac_install_sh 2649 fi 2650fi 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2652$as_echo "$INSTALL" >&6; } 2653 2654# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2655# It thinks the first close brace ends the variable substitution. 2656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2657 2658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2659 2660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2661 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2663$as_echo_n "checking whether build environment is sane... " >&6; } 2664# Just in case 2665sleep 1 2666echo timestamp > conftest.file 2667# Reject unsafe characters in $srcdir or the absolute working directory 2668# name. Accept space and tab only in the latter. 2669am_lf=' 2670' 2671case `pwd` in 2672 *[\\\"\#\$\&\'\`$am_lf]*) 2673 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2674esac 2675case $srcdir in 2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2677 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2678esac 2679 2680# Do `set' in a subshell so we don't clobber the current shell's 2681# arguments. Must try -L first in case configure is actually a 2682# symlink; some systems play weird games with the mod time of symlinks 2683# (eg FreeBSD returns the mod time of the symlink's containing 2684# directory). 2685if ( 2686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2687 if test "$*" = "X"; then 2688 # -L didn't work. 2689 set X `ls -t "$srcdir/configure" conftest.file` 2690 fi 2691 rm -f conftest.file 2692 if test "$*" != "X $srcdir/configure conftest.file" \ 2693 && test "$*" != "X conftest.file $srcdir/configure"; then 2694 2695 # If neither matched, then we have a broken ls. This can happen 2696 # if, for instance, CONFIG_SHELL is bash and it inherits a 2697 # broken ls alias from the environment. This has actually 2698 # happened. Such a system could not be considered "sane". 2699 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2700alias in your environment" "$LINENO" 5 2701 fi 2702 2703 test "$2" = conftest.file 2704 ) 2705then 2706 # Ok. 2707 : 2708else 2709 as_fn_error "newly created file is older than distributed files! 2710Check your system clock" "$LINENO" 5 2711fi 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2713$as_echo "yes" >&6; } 2714test "$program_prefix" != NONE && 2715 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2716# Use a double $ so make ignores it. 2717test "$program_suffix" != NONE && 2718 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2719# Double any \ or $. 2720# By default was `s,x,x', remove it if useless. 2721ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2722program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2723 2724# expand $ac_aux_dir to an absolute path 2725am_aux_dir=`cd $ac_aux_dir && pwd` 2726 2727if test x"${MISSING+set}" != xset; then 2728 case $am_aux_dir in 2729 *\ * | *\ *) 2730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2731 *) 2732 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2733 esac 2734fi 2735# Use eval to expand $SHELL 2736if eval "$MISSING --run true"; then 2737 am_missing_run="$MISSING --run " 2738else 2739 am_missing_run= 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2741$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2742fi 2743 2744if test x"${install_sh}" != xset; then 2745 case $am_aux_dir in 2746 *\ * | *\ *) 2747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2748 *) 2749 install_sh="\${SHELL} $am_aux_dir/install-sh" 2750 esac 2751fi 2752 2753# Installed binaries are usually stripped using `strip' when the user 2754# run `make install-strip'. However `strip' might not be the right 2755# tool to use in cross-compilation environments, therefore Automake 2756# will honor the `STRIP' environment variable to overrule this program. 2757if test "$cross_compiling" != no; then 2758 if test -n "$ac_tool_prefix"; then 2759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2760set dummy ${ac_tool_prefix}strip; ac_word=$2 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2762$as_echo_n "checking for $ac_word... " >&6; } 2763if test "${ac_cv_prog_STRIP+set}" = set; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 if test -n "$STRIP"; then 2767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2768else 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2776 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2778 break 2 2779 fi 2780done 2781 done 2782IFS=$as_save_IFS 2783 2784fi 2785fi 2786STRIP=$ac_cv_prog_STRIP 2787if test -n "$STRIP"; then 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2789$as_echo "$STRIP" >&6; } 2790else 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2792$as_echo "no" >&6; } 2793fi 2794 2795 2796fi 2797if test -z "$ac_cv_prog_STRIP"; then 2798 ac_ct_STRIP=$STRIP 2799 # Extract the first word of "strip", so it can be a program name with args. 2800set dummy strip; ac_word=$2 2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2802$as_echo_n "checking for $ac_word... " >&6; } 2803if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2804 $as_echo_n "(cached) " >&6 2805else 2806 if test -n "$ac_ct_STRIP"; then 2807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2808else 2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2816 ac_cv_prog_ac_ct_STRIP="strip" 2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2818 break 2 2819 fi 2820done 2821 done 2822IFS=$as_save_IFS 2823 2824fi 2825fi 2826ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2827if test -n "$ac_ct_STRIP"; then 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2829$as_echo "$ac_ct_STRIP" >&6; } 2830else 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832$as_echo "no" >&6; } 2833fi 2834 2835 if test "x$ac_ct_STRIP" = x; then 2836 STRIP=":" 2837 else 2838 case $cross_compiling:$ac_tool_warned in 2839yes:) 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2842ac_tool_warned=yes ;; 2843esac 2844 STRIP=$ac_ct_STRIP 2845 fi 2846else 2847 STRIP="$ac_cv_prog_STRIP" 2848fi 2849 2850fi 2851INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2852 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2854$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2855if test -z "$MKDIR_P"; then 2856 if test "${ac_cv_path_mkdir+set}" = set; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2861do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 for ac_prog in mkdir gmkdir; do 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2868 'mkdir (GNU coreutils) '* | \ 2869 'mkdir (coreutils) '* | \ 2870 'mkdir (fileutils) '4.1*) 2871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2872 break 3;; 2873 esac 2874 done 2875 done 2876 done 2877IFS=$as_save_IFS 2878 2879fi 2880 2881 test -d ./--version && rmdir ./--version 2882 if test "${ac_cv_path_mkdir+set}" = set; then 2883 MKDIR_P="$ac_cv_path_mkdir -p" 2884 else 2885 # As a last resort, use the slow shell script. Don't cache a 2886 # value for MKDIR_P within a source directory, because that will 2887 # break other packages using the cache if that directory is 2888 # removed, or if the value is a relative name. 2889 MKDIR_P="$ac_install_sh -d" 2890 fi 2891fi 2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2893$as_echo "$MKDIR_P" >&6; } 2894 2895mkdir_p="$MKDIR_P" 2896case $mkdir_p in 2897 [\\/$]* | ?:[\\/]*) ;; 2898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2899esac 2900 2901for ac_prog in gawk mawk nawk awk 2902do 2903 # Extract the first word of "$ac_prog", so it can be a program name with args. 2904set dummy $ac_prog; ac_word=$2 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2906$as_echo_n "checking for $ac_word... " >&6; } 2907if test "${ac_cv_prog_AWK+set}" = set; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 if test -n "$AWK"; then 2911 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2920 ac_cv_prog_AWK="$ac_prog" 2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930AWK=$ac_cv_prog_AWK 2931if test -n "$AWK"; then 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2933$as_echo "$AWK" >&6; } 2934else 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 2940 test -n "$AWK" && break 2941done 2942 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2944$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2945set x ${MAKE-make} 2946ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2947if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 cat >conftest.make <<\_ACEOF 2951SHELL = /bin/sh 2952all: 2953 @echo '@@@%%%=$(MAKE)=@@@%%%' 2954_ACEOF 2955# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2956case `${MAKE-make} -f conftest.make 2>/dev/null` in 2957 *@@@%%%=?*=@@@%%%*) 2958 eval ac_cv_prog_make_${ac_make}_set=yes;; 2959 *) 2960 eval ac_cv_prog_make_${ac_make}_set=no;; 2961esac 2962rm -f conftest.make 2963fi 2964if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2966$as_echo "yes" >&6; } 2967 SET_MAKE= 2968else 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970$as_echo "no" >&6; } 2971 SET_MAKE="MAKE=${MAKE-make}" 2972fi 2973 2974rm -rf .tst 2>/dev/null 2975mkdir .tst 2>/dev/null 2976if test -d .tst; then 2977 am__leading_dot=. 2978else 2979 am__leading_dot=_ 2980fi 2981rmdir .tst 2>/dev/null 2982 2983if test "`cd $srcdir && pwd`" != "`pwd`"; then 2984 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2985 # is not polluted with repeated "-I." 2986 am__isrc=' -I$(srcdir)' 2987 # test to see if srcdir already configured 2988 if test -f $srcdir/config.status; then 2989 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2990 fi 2991fi 2992 2993# test whether we have cygpath 2994if test -z "$CYGPATH_W"; then 2995 if (cygpath --version) >/dev/null 2>/dev/null; then 2996 CYGPATH_W='cygpath -w' 2997 else 2998 CYGPATH_W=echo 2999 fi 3000fi 3001 3002 3003# Define the identity of the package. 3004 PACKAGE=msntp 3005 VERSION=1.6 3006 3007 3008cat >>confdefs.h <<_ACEOF 3009#define PACKAGE "$PACKAGE" 3010_ACEOF 3011 3012 3013cat >>confdefs.h <<_ACEOF 3014#define VERSION "$VERSION" 3015_ACEOF 3016 3017# Some tools Automake needs. 3018 3019ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3020 3021 3022AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3023 3024 3025AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3026 3027 3028AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3029 3030 3031MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3032 3033# We need awk for the "check" target. The system "awk" is bad on 3034# some platforms. 3035# Always define AMTAR for backward compatibility. 3036 3037AMTAR=${AMTAR-"${am_missing_run}tar"} 3038 3039am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3040 3041 3042 3043 3044 3045 3046# Make sure we can run config.sub. 3047$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3048 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3049 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3051$as_echo_n "checking build system type... " >&6; } 3052if test "${ac_cv_build+set}" = set; then : 3053 $as_echo_n "(cached) " >&6 3054else 3055 ac_build_alias=$build_alias 3056test "x$ac_build_alias" = x && 3057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3058test "x$ac_build_alias" = x && 3059 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3060ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3061 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3062 3063fi 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3065$as_echo "$ac_cv_build" >&6; } 3066case $ac_cv_build in 3067*-*-*) ;; 3068*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3069esac 3070build=$ac_cv_build 3071ac_save_IFS=$IFS; IFS='-' 3072set x $ac_cv_build 3073shift 3074build_cpu=$1 3075build_vendor=$2 3076shift; shift 3077# Remember, the first character of IFS is used to create $*, 3078# except with old shells: 3079build_os=$* 3080IFS=$ac_save_IFS 3081case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3082 3083 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3085$as_echo_n "checking host system type... " >&6; } 3086if test "${ac_cv_host+set}" = set; then : 3087 $as_echo_n "(cached) " >&6 3088else 3089 if test "x$host_alias" = x; then 3090 ac_cv_host=$ac_cv_build 3091else 3092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3093 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3094fi 3095 3096fi 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3098$as_echo "$ac_cv_host" >&6; } 3099case $ac_cv_host in 3100*-*-*) ;; 3101*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3102esac 3103host=$ac_cv_host 3104ac_save_IFS=$IFS; IFS='-' 3105set x $ac_cv_host 3106shift 3107host_cpu=$1 3108host_vendor=$2 3109shift; shift 3110# Remember, the first character of IFS is used to create $*, 3111# except with old shells: 3112host_os=$* 3113IFS=$ac_save_IFS 3114case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3115 3116 3117ac_config_headers="$ac_config_headers config.h" 3118 3119 3120# Checks for programs. 3121ac_ext=c 3122ac_cpp='$CPP $CPPFLAGS' 3123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3125ac_compiler_gnu=$ac_cv_c_compiler_gnu 3126if test -n "$ac_tool_prefix"; then 3127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3128set dummy ${ac_tool_prefix}gcc; ac_word=$2 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3130$as_echo_n "checking for $ac_word... " >&6; } 3131if test "${ac_cv_prog_CC+set}" = set; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if test -n "$CC"; then 3135 ac_cv_prog_CC="$CC" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 test -z "$as_dir" && as_dir=. 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3144 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157$as_echo "$CC" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 3164fi 3165if test -z "$ac_cv_prog_CC"; then 3166 ac_ct_CC=$CC 3167 # Extract the first word of "gcc", so it can be a program name with args. 3168set dummy gcc; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$ac_ct_CC"; then 3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3176else 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3184 ac_cv_prog_ac_ct_CC="gcc" 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194ac_ct_CC=$ac_cv_prog_ac_ct_CC 3195if test -n "$ac_ct_CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3197$as_echo "$ac_ct_CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 if test "x$ac_ct_CC" = x; then 3204 CC="" 3205 else 3206 case $cross_compiling:$ac_tool_warned in 3207yes:) 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210ac_tool_warned=yes ;; 3211esac 3212 CC=$ac_ct_CC 3213 fi 3214else 3215 CC="$ac_cv_prog_CC" 3216fi 3217 3218if test -z "$CC"; then 3219 if test -n "$ac_tool_prefix"; then 3220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3221set dummy ${ac_tool_prefix}cc; ac_word=$2 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3223$as_echo_n "checking for $ac_word... " >&6; } 3224if test "${ac_cv_prog_CC+set}" = set; then : 3225 $as_echo_n "(cached) " >&6 3226else 3227 if test -n "$CC"; then 3228 ac_cv_prog_CC="$CC" # Let the user override the test. 3229else 3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_exec_ext in '' $ac_executable_extensions; do 3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3237 ac_cv_prog_CC="${ac_tool_prefix}cc" 3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3239 break 2 3240 fi 3241done 3242 done 3243IFS=$as_save_IFS 3244 3245fi 3246fi 3247CC=$ac_cv_prog_CC 3248if test -n "$CC"; then 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3250$as_echo "$CC" >&6; } 3251else 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253$as_echo "no" >&6; } 3254fi 3255 3256 3257 fi 3258fi 3259if test -z "$CC"; then 3260 # Extract the first word of "cc", so it can be a program name with args. 3261set dummy cc; ac_word=$2 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3263$as_echo_n "checking for $ac_word... " >&6; } 3264if test "${ac_cv_prog_CC+set}" = set; then : 3265 $as_echo_n "(cached) " >&6 3266else 3267 if test -n "$CC"; then 3268 ac_cv_prog_CC="$CC" # Let the user override the test. 3269else 3270 ac_prog_rejected=no 3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3272for as_dir in $PATH 3273do 3274 IFS=$as_save_IFS 3275 test -z "$as_dir" && as_dir=. 3276 for ac_exec_ext in '' $ac_executable_extensions; do 3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3279 ac_prog_rejected=yes 3280 continue 3281 fi 3282 ac_cv_prog_CC="cc" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290if test $ac_prog_rejected = yes; then 3291 # We found a bogon in the path, so make sure we never use it. 3292 set dummy $ac_cv_prog_CC 3293 shift 3294 if test $# != 0; then 3295 # We chose a different compiler from the bogus one. 3296 # However, it has the same basename, so the bogon will be chosen 3297 # first if we set CC to just the basename; use the full file name. 3298 shift 3299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3300 fi 3301fi 3302fi 3303fi 3304CC=$ac_cv_prog_CC 3305if test -n "$CC"; then 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3307$as_echo "$CC" >&6; } 3308else 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3310$as_echo "no" >&6; } 3311fi 3312 3313 3314fi 3315if test -z "$CC"; then 3316 if test -n "$ac_tool_prefix"; then 3317 for ac_prog in cl.exe 3318 do 3319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3320set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3322$as_echo_n "checking for $ac_word... " >&6; } 3323if test "${ac_cv_prog_CC+set}" = set; then : 3324 $as_echo_n "(cached) " >&6 3325else 3326 if test -n "$CC"; then 3327 ac_cv_prog_CC="$CC" # Let the user override the test. 3328else 3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3330for as_dir in $PATH 3331do 3332 IFS=$as_save_IFS 3333 test -z "$as_dir" && as_dir=. 3334 for ac_exec_ext in '' $ac_executable_extensions; do 3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3338 break 2 3339 fi 3340done 3341 done 3342IFS=$as_save_IFS 3343 3344fi 3345fi 3346CC=$ac_cv_prog_CC 3347if test -n "$CC"; then 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3349$as_echo "$CC" >&6; } 3350else 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3352$as_echo "no" >&6; } 3353fi 3354 3355 3356 test -n "$CC" && break 3357 done 3358fi 3359if test -z "$CC"; then 3360 ac_ct_CC=$CC 3361 for ac_prog in cl.exe 3362do 3363 # Extract the first word of "$ac_prog", so it can be a program name with args. 3364set dummy $ac_prog; ac_word=$2 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3366$as_echo_n "checking for $ac_word... " >&6; } 3367if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3368 $as_echo_n "(cached) " >&6 3369else 3370 if test -n "$ac_ct_CC"; then 3371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3372else 3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3374for as_dir in $PATH 3375do 3376 IFS=$as_save_IFS 3377 test -z "$as_dir" && as_dir=. 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3380 ac_cv_prog_ac_ct_CC="$ac_prog" 3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388fi 3389fi 3390ac_ct_CC=$ac_cv_prog_ac_ct_CC 3391if test -n "$ac_ct_CC"; then 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3393$as_echo "$ac_ct_CC" >&6; } 3394else 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3396$as_echo "no" >&6; } 3397fi 3398 3399 3400 test -n "$ac_ct_CC" && break 3401done 3402 3403 if test "x$ac_ct_CC" = x; then 3404 CC="" 3405 else 3406 case $cross_compiling:$ac_tool_warned in 3407yes:) 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3410ac_tool_warned=yes ;; 3411esac 3412 CC=$ac_ct_CC 3413 fi 3414fi 3415 3416fi 3417 3418 3419test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3421as_fn_error "no acceptable C compiler found in \$PATH 3422See \`config.log' for more details." "$LINENO" 5; } 3423 3424# Provide some information about the compiler. 3425$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3426set X $ac_compile 3427ac_compiler=$2 3428for ac_option in --version -v -V -qversion; do 3429 { { ac_try="$ac_compiler $ac_option >&5" 3430case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433esac 3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435$as_echo "$ac_try_echo"; } >&5 3436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3437 ac_status=$? 3438 if test -s conftest.err; then 3439 sed '10a\ 3440... rest of stderr output deleted ... 3441 10q' conftest.err >conftest.er1 3442 cat conftest.er1 >&5 3443 fi 3444 rm -f conftest.er1 conftest.err 3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3446 test $ac_status = 0; } 3447done 3448 3449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450/* end confdefs.h. */ 3451 3452int 3453main () 3454{ 3455 3456 ; 3457 return 0; 3458} 3459_ACEOF 3460ac_clean_files_save=$ac_clean_files 3461ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3462# Try to create an executable without -o first, disregard a.out. 3463# It will help us diagnose broken compilers, and finding out an intuition 3464# of exeext. 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3466$as_echo_n "checking whether the C compiler works... " >&6; } 3467ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3468 3469# The possible output files: 3470ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3471 3472ac_rmfiles= 3473for ac_file in $ac_files 3474do 3475 case $ac_file in 3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3477 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3478 esac 3479done 3480rm -f $ac_rmfiles 3481 3482if { { ac_try="$ac_link_default" 3483case "(($ac_try" in 3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3485 *) ac_try_echo=$ac_try;; 3486esac 3487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3488$as_echo "$ac_try_echo"; } >&5 3489 (eval "$ac_link_default") 2>&5 3490 ac_status=$? 3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3492 test $ac_status = 0; }; then : 3493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3494# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3495# in a Makefile. We should not override ac_cv_exeext if it was cached, 3496# so that the user can short-circuit this test for compilers unknown to 3497# Autoconf. 3498for ac_file in $ac_files '' 3499do 3500 test -f "$ac_file" || continue 3501 case $ac_file in 3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3503 ;; 3504 [ab].out ) 3505 # We found the default executable, but exeext='' is most 3506 # certainly right. 3507 break;; 3508 *.* ) 3509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3510 then :; else 3511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3512 fi 3513 # We set ac_cv_exeext here because the later test for it is not 3514 # safe: cross compilers may not add the suffix if given an `-o' 3515 # argument, so we may need to know it at that point already. 3516 # Even if this section looks crufty: it has the advantage of 3517 # actually working. 3518 break;; 3519 * ) 3520 break;; 3521 esac 3522done 3523test "$ac_cv_exeext" = no && ac_cv_exeext= 3524 3525else 3526 ac_file='' 3527fi 3528if test -z "$ac_file"; then : 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3530$as_echo "no" >&6; } 3531$as_echo "$as_me: failed program was:" >&5 3532sed 's/^/| /' conftest.$ac_ext >&5 3533 3534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3536{ as_fn_set_status 77 3537as_fn_error "C compiler cannot create executables 3538See \`config.log' for more details." "$LINENO" 5; }; } 3539else 3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3541$as_echo "yes" >&6; } 3542fi 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3544$as_echo_n "checking for C compiler default output file name... " >&6; } 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3546$as_echo "$ac_file" >&6; } 3547ac_exeext=$ac_cv_exeext 3548 3549rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3550ac_clean_files=$ac_clean_files_save 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3552$as_echo_n "checking for suffix of executables... " >&6; } 3553if { { ac_try="$ac_link" 3554case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3559$as_echo "$ac_try_echo"; } >&5 3560 (eval "$ac_link") 2>&5 3561 ac_status=$? 3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3563 test $ac_status = 0; }; then : 3564 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3565# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3566# work properly (i.e., refer to `conftest.exe'), while it won't with 3567# `rm'. 3568for ac_file in conftest.exe conftest conftest.*; do 3569 test -f "$ac_file" || continue 3570 case $ac_file in 3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3573 break;; 3574 * ) break;; 3575 esac 3576done 3577else 3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3580as_fn_error "cannot compute suffix of executables: cannot compile and link 3581See \`config.log' for more details." "$LINENO" 5; } 3582fi 3583rm -f conftest conftest$ac_cv_exeext 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3585$as_echo "$ac_cv_exeext" >&6; } 3586 3587rm -f conftest.$ac_ext 3588EXEEXT=$ac_cv_exeext 3589ac_exeext=$EXEEXT 3590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3591/* end confdefs.h. */ 3592#include <stdio.h> 3593int 3594main () 3595{ 3596FILE *f = fopen ("conftest.out", "w"); 3597 return ferror (f) || fclose (f) != 0; 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603ac_clean_files="$ac_clean_files conftest.out" 3604# Check that the compiler produces executables we can run. If not, either 3605# the compiler is broken, or we cross compile. 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3607$as_echo_n "checking whether we are cross compiling... " >&6; } 3608if test "$cross_compiling" != yes; then 3609 { { ac_try="$ac_link" 3610case "(($ac_try" in 3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3612 *) ac_try_echo=$ac_try;; 3613esac 3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3615$as_echo "$ac_try_echo"; } >&5 3616 (eval "$ac_link") 2>&5 3617 ac_status=$? 3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3619 test $ac_status = 0; } 3620 if { ac_try='./conftest$ac_cv_exeext' 3621 { { case "(($ac_try" in 3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623 *) ac_try_echo=$ac_try;; 3624esac 3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3626$as_echo "$ac_try_echo"; } >&5 3627 (eval "$ac_try") 2>&5 3628 ac_status=$? 3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3630 test $ac_status = 0; }; }; then 3631 cross_compiling=no 3632 else 3633 if test "$cross_compiling" = maybe; then 3634 cross_compiling=yes 3635 else 3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3638as_fn_error "cannot run C compiled programs. 3639If you meant to cross compile, use \`--host'. 3640See \`config.log' for more details." "$LINENO" 5; } 3641 fi 3642 fi 3643fi 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3645$as_echo "$cross_compiling" >&6; } 3646 3647rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3648ac_clean_files=$ac_clean_files_save 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3650$as_echo_n "checking for suffix of object files... " >&6; } 3651if test "${ac_cv_objext+set}" = set; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main () 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665rm -f conftest.o conftest.obj 3666if { { ac_try="$ac_compile" 3667case "(($ac_try" in 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3669 *) ac_try_echo=$ac_try;; 3670esac 3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3672$as_echo "$ac_try_echo"; } >&5 3673 (eval "$ac_compile") 2>&5 3674 ac_status=$? 3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3676 test $ac_status = 0; }; then : 3677 for ac_file in conftest.o conftest.obj conftest.*; do 3678 test -f "$ac_file" || continue; 3679 case $ac_file in 3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3682 break;; 3683 esac 3684done 3685else 3686 $as_echo "$as_me: failed program was:" >&5 3687sed 's/^/| /' conftest.$ac_ext >&5 3688 3689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3691as_fn_error "cannot compute suffix of object files: cannot compile 3692See \`config.log' for more details." "$LINENO" 5; } 3693fi 3694rm -f conftest.$ac_cv_objext conftest.$ac_ext 3695fi 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3697$as_echo "$ac_cv_objext" >&6; } 3698OBJEXT=$ac_cv_objext 3699ac_objext=$OBJEXT 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3701$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3702if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3703 $as_echo_n "(cached) " >&6 3704else 3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706/* end confdefs.h. */ 3707 3708int 3709main () 3710{ 3711#ifndef __GNUC__ 3712 choke me 3713#endif 3714 3715 ; 3716 return 0; 3717} 3718_ACEOF 3719if ac_fn_c_try_compile "$LINENO"; then : 3720 ac_compiler_gnu=yes 3721else 3722 ac_compiler_gnu=no 3723fi 3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3725ac_cv_c_compiler_gnu=$ac_compiler_gnu 3726 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3729$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3730if test $ac_compiler_gnu = yes; then 3731 GCC=yes 3732else 3733 GCC= 3734fi 3735ac_test_CFLAGS=${CFLAGS+set} 3736ac_save_CFLAGS=$CFLAGS 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3738$as_echo_n "checking whether $CC accepts -g... " >&6; } 3739if test "${ac_cv_prog_cc_g+set}" = set; then : 3740 $as_echo_n "(cached) " >&6 3741else 3742 ac_save_c_werror_flag=$ac_c_werror_flag 3743 ac_c_werror_flag=yes 3744 ac_cv_prog_cc_g=no 3745 CFLAGS="-g" 3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748 3749int 3750main () 3751{ 3752 3753 ; 3754 return 0; 3755} 3756_ACEOF 3757if ac_fn_c_try_compile "$LINENO"; then : 3758 ac_cv_prog_cc_g=yes 3759else 3760 CFLAGS="" 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763 3764int 3765main () 3766{ 3767 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772if ac_fn_c_try_compile "$LINENO"; then : 3773 3774else 3775 ac_c_werror_flag=$ac_save_c_werror_flag 3776 CFLAGS="-g" 3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779 3780int 3781main () 3782{ 3783 3784 ; 3785 return 0; 3786} 3787_ACEOF 3788if ac_fn_c_try_compile "$LINENO"; then : 3789 ac_cv_prog_cc_g=yes 3790fi 3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3792fi 3793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3794fi 3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3796 ac_c_werror_flag=$ac_save_c_werror_flag 3797fi 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3799$as_echo "$ac_cv_prog_cc_g" >&6; } 3800if test "$ac_test_CFLAGS" = set; then 3801 CFLAGS=$ac_save_CFLAGS 3802elif test $ac_cv_prog_cc_g = yes; then 3803 if test "$GCC" = yes; then 3804 CFLAGS="-g -O2" 3805 else 3806 CFLAGS="-g" 3807 fi 3808else 3809 if test "$GCC" = yes; then 3810 CFLAGS="-O2" 3811 else 3812 CFLAGS= 3813 fi 3814fi 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3816$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3817if test "${ac_cv_prog_cc_c89+set}" = set; then : 3818 $as_echo_n "(cached) " >&6 3819else 3820 ac_cv_prog_cc_c89=no 3821ac_save_CC=$CC 3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824#include <stdarg.h> 3825#include <stdio.h> 3826#include <sys/types.h> 3827#include <sys/stat.h> 3828/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3829struct buf { int x; }; 3830FILE * (*rcsopen) (struct buf *, struct stat *, int); 3831static char *e (p, i) 3832 char **p; 3833 int i; 3834{ 3835 return p[i]; 3836} 3837static char *f (char * (*g) (char **, int), char **p, ...) 3838{ 3839 char *s; 3840 va_list v; 3841 va_start (v,p); 3842 s = g (p, va_arg (v,int)); 3843 va_end (v); 3844 return s; 3845} 3846 3847/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3848 function prototypes and stuff, but not '\xHH' hex character constants. 3849 These don't provoke an error unfortunately, instead are silently treated 3850 as 'x'. The following induces an error, until -std is added to get 3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3852 array size at least. It's necessary to write '\x00'==0 to get something 3853 that's true only with -std. */ 3854int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3855 3856/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3857 inside strings and character constants. */ 3858#define FOO(x) 'x' 3859int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3860 3861int test (int i, double x); 3862struct s1 {int (*f) (int a);}; 3863struct s2 {int (*f) (double a);}; 3864int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3865int argc; 3866char **argv; 3867int 3868main () 3869{ 3870return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3877do 3878 CC="$ac_save_CC $ac_arg" 3879 if ac_fn_c_try_compile "$LINENO"; then : 3880 ac_cv_prog_cc_c89=$ac_arg 3881fi 3882rm -f core conftest.err conftest.$ac_objext 3883 test "x$ac_cv_prog_cc_c89" != "xno" && break 3884done 3885rm -f conftest.$ac_ext 3886CC=$ac_save_CC 3887 3888fi 3889# AC_CACHE_VAL 3890case "x$ac_cv_prog_cc_c89" in 3891 x) 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3893$as_echo "none needed" >&6; } ;; 3894 xno) 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3896$as_echo "unsupported" >&6; } ;; 3897 *) 3898 CC="$CC $ac_cv_prog_cc_c89" 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3900$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3901esac 3902if test "x$ac_cv_prog_cc_c89" != xno; then : 3903 3904fi 3905 3906ac_ext=c 3907ac_cpp='$CPP $CPPFLAGS' 3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3910ac_compiler_gnu=$ac_cv_c_compiler_gnu 3911DEPDIR="${am__leading_dot}deps" 3912 3913ac_config_commands="$ac_config_commands depfiles" 3914 3915 3916am_make=${MAKE-make} 3917cat > confinc << 'END' 3918am__doit: 3919 @echo this is the am__doit target 3920.PHONY: am__doit 3921END 3922# If we don't find an include directive, just comment out the code. 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3924$as_echo_n "checking for style of include used by $am_make... " >&6; } 3925am__include="#" 3926am__quote= 3927_am_result=none 3928# First try GNU make style include. 3929echo "include confinc" > confmf 3930# Ignore all kinds of additional output from `make'. 3931case `$am_make -s -f confmf 2> /dev/null` in #( 3932*the\ am__doit\ target*) 3933 am__include=include 3934 am__quote= 3935 _am_result=GNU 3936 ;; 3937esac 3938# Now try BSD make style include. 3939if test "$am__include" = "#"; then 3940 echo '.include "confinc"' > confmf 3941 case `$am_make -s -f confmf 2> /dev/null` in #( 3942 *the\ am__doit\ target*) 3943 am__include=.include 3944 am__quote="\"" 3945 _am_result=BSD 3946 ;; 3947 esac 3948fi 3949 3950 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3952$as_echo "$_am_result" >&6; } 3953rm -f confinc confmf 3954 3955# Check whether --enable-dependency-tracking was given. 3956if test "${enable_dependency_tracking+set}" = set; then : 3957 enableval=$enable_dependency_tracking; 3958fi 3959 3960if test "x$enable_dependency_tracking" != xno; then 3961 am_depcomp="$ac_aux_dir/depcomp" 3962 AMDEPBACKSLASH='\' 3963fi 3964 if test "x$enable_dependency_tracking" != xno; then 3965 AMDEP_TRUE= 3966 AMDEP_FALSE='#' 3967else 3968 AMDEP_TRUE='#' 3969 AMDEP_FALSE= 3970fi 3971 3972 3973 3974depcc="$CC" am_compiler_list= 3975 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3977$as_echo_n "checking dependency style of $depcc... " >&6; } 3978if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3982 # We make a subdir and do the tests there. Otherwise we can end up 3983 # making bogus files that we don't know about and never remove. For 3984 # instance it was reported that on HP-UX the gcc test will end up 3985 # making a dummy file named `D' -- because `-MD' means `put the output 3986 # in D'. 3987 mkdir conftest.dir 3988 # Copy depcomp to subdir because otherwise we won't find it if we're 3989 # using a relative directory. 3990 cp "$am_depcomp" conftest.dir 3991 cd conftest.dir 3992 # We will build objects and dependencies in a subdirectory because 3993 # it helps to detect inapplicable dependency modes. For instance 3994 # both Tru64's cc and ICC support -MD to output dependencies as a 3995 # side effect of compilation, but ICC will put the dependencies in 3996 # the current directory while Tru64 will put them in the object 3997 # directory. 3998 mkdir sub 3999 4000 am_cv_CC_dependencies_compiler_type=none 4001 if test "$am_compiler_list" = ""; then 4002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4003 fi 4004 am__universal=false 4005 case " $depcc " in #( 4006 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4007 esac 4008 4009 for depmode in $am_compiler_list; do 4010 # Setup a source with many dependencies, because some compilers 4011 # like to wrap large dependency lists on column 80 (with \), and 4012 # we should not choose a depcomp mode which is confused by this. 4013 # 4014 # We need to recreate these files for each test, as the compiler may 4015 # overwrite some of them when testing with obscure command lines. 4016 # This happens at least with the AIX C compiler. 4017 : > sub/conftest.c 4018 for i in 1 2 3 4 5 6; do 4019 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4021 # Solaris 8's {/usr,}/bin/sh. 4022 touch sub/conftst$i.h 4023 done 4024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4025 4026 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4027 # mode. It turns out that the SunPro C++ compiler does not properly 4028 # handle `-M -o', and we need to detect this. Also, some Intel 4029 # versions had trouble with output in subdirs 4030 am__obj=sub/conftest.${OBJEXT-o} 4031 am__minus_obj="-o $am__obj" 4032 case $depmode in 4033 gcc) 4034 # This depmode causes a compiler race in universal mode. 4035 test "$am__universal" = false || continue 4036 ;; 4037 nosideeffect) 4038 # after this tag, mechanisms are not by side-effect, so they'll 4039 # only be used when explicitly requested 4040 if test "x$enable_dependency_tracking" = xyes; then 4041 continue 4042 else 4043 break 4044 fi 4045 ;; 4046 msvisualcpp | msvcmsys) 4047 # This compiler won't grok `-c -o', but also, the minuso test has 4048 # not run yet. These depmodes are late enough in the game, and 4049 # so weak that their functioning should not be impacted. 4050 am__obj=conftest.${OBJEXT-o} 4051 am__minus_obj= 4052 ;; 4053 none) break ;; 4054 esac 4055 if depmode=$depmode \ 4056 source=sub/conftest.c object=$am__obj \ 4057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4059 >/dev/null 2>conftest.err && 4060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4064 # icc doesn't choke on unknown options, it will just issue warnings 4065 # or remarks (even with -Werror). So we grep stderr for any message 4066 # that says an option was ignored or not supported. 4067 # When given -MP, icc 7.0 and 7.1 complain thusly: 4068 # icc: Command line warning: ignoring option '-M'; no argument required 4069 # The diagnosis changed in icc 8.0: 4070 # icc: Command line remark: option '-MP' not supported 4071 if (grep 'ignoring option' conftest.err || 4072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4073 am_cv_CC_dependencies_compiler_type=$depmode 4074 break 4075 fi 4076 fi 4077 done 4078 4079 cd .. 4080 rm -rf conftest.dir 4081else 4082 am_cv_CC_dependencies_compiler_type=none 4083fi 4084 4085fi 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4087$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4088CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4089 4090 if 4091 test "x$enable_dependency_tracking" != xno \ 4092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4093 am__fastdepCC_TRUE= 4094 am__fastdepCC_FALSE='#' 4095else 4096 am__fastdepCC_TRUE='#' 4097 am__fastdepCC_FALSE= 4098fi 4099 4100 4101 4102# So far, the only shared library we might use is libopts. 4103# It's a small library - we might as well use a static version of it. 4104# Check whether --enable-shared was given. 4105if test "${enable_shared+set}" = set; then : 4106 enableval=$enable_shared; p=${PACKAGE-default} 4107 case $enableval in 4108 yes) enable_shared=yes ;; 4109 no) enable_shared=no ;; 4110 *) 4111 enable_shared=no 4112 # Look at the argument we got. We use all the common list separators. 4113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4114 for pkg in $enableval; do 4115 IFS="$lt_save_ifs" 4116 if test "X$pkg" = "X$p"; then 4117 enable_shared=yes 4118 fi 4119 done 4120 IFS="$lt_save_ifs" 4121 ;; 4122 esac 4123else 4124 enable_shared=no 4125fi 4126 4127 4128 4129 4130 4131 4132 4133# Check whether --enable-static was given. 4134if test "${enable_static+set}" = set; then : 4135 enableval=$enable_static; p=${PACKAGE-default} 4136 case $enableval in 4137 yes) enable_static=yes ;; 4138 no) enable_static=no ;; 4139 *) 4140 enable_static=no 4141 # Look at the argument we got. We use all the common list separators. 4142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4143 for pkg in $enableval; do 4144 IFS="$lt_save_ifs" 4145 if test "X$pkg" = "X$p"; then 4146 enable_static=yes 4147 fi 4148 done 4149 IFS="$lt_save_ifs" 4150 ;; 4151 esac 4152else 4153 enable_static=yes 4154fi 4155 4156 4157# Check whether --enable-fast-install was given. 4158if test "${enable_fast_install+set}" = set; then : 4159 enableval=$enable_fast_install; p=${PACKAGE-default} 4160 case $enableval in 4161 yes) enable_fast_install=yes ;; 4162 no) enable_fast_install=no ;; 4163 *) 4164 enable_fast_install=no 4165 # Look at the argument we got. We use all the common list separators. 4166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4167 for pkg in $enableval; do 4168 IFS="$lt_save_ifs" 4169 if test "X$pkg" = "X$p"; then 4170 enable_fast_install=yes 4171 fi 4172 done 4173 IFS="$lt_save_ifs" 4174 ;; 4175 esac 4176else 4177 enable_fast_install=yes 4178fi 4179 4180 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4182$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4183if test "${lt_cv_path_SED+set}" = set; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 # Loop through the user's path and test for sed and gsed. 4187# Then use that list of sed's as ones to test for truncation. 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 test -z "$as_dir" && as_dir=. 4193 for lt_ac_prog in sed gsed; do 4194 for ac_exec_ext in '' $ac_executable_extensions; do 4195 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 4196 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4197 fi 4198 done 4199 done 4200done 4201lt_ac_max=0 4202lt_ac_count=0 4203# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4204# along with /bin/sed that truncates output. 4205for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4206 test ! -f $lt_ac_sed && continue 4207 cat /dev/null > conftest.in 4208 lt_ac_count=0 4209 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4210 # Check for GNU sed and select it if it is found. 4211 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4212 lt_cv_path_SED=$lt_ac_sed 4213 break 4214 fi 4215 while true; do 4216 cat conftest.in conftest.in >conftest.tmp 4217 mv conftest.tmp conftest.in 4218 cp conftest.in conftest.nl 4219 echo >>conftest.nl 4220 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4221 cmp -s conftest.out conftest.nl || break 4222 # 10000 chars as input seems more than enough 4223 test $lt_ac_count -gt 10 && break 4224 lt_ac_count=`expr $lt_ac_count + 1` 4225 if test $lt_ac_count -gt $lt_ac_max; then 4226 lt_ac_max=$lt_ac_count 4227 lt_cv_path_SED=$lt_ac_sed 4228 fi 4229 done 4230done 4231 4232fi 4233 4234SED=$lt_cv_path_SED 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4236$as_echo "$SED" >&6; } 4237 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4239$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4240if test "${ac_cv_path_GREP+set}" = set; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 if test -z "$GREP"; then 4244 ac_path_GREP_found=false 4245 # Loop through the user's path and test for each of PROGNAME-LIST 4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_prog in grep ggrep; do 4252 for ac_exec_ext in '' $ac_executable_extensions; do 4253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4254 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4255# Check for GNU ac_path_GREP and select it if it is found. 4256 # Check for GNU $ac_path_GREP 4257case `"$ac_path_GREP" --version 2>&1` in 4258*GNU*) 4259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4260*) 4261 ac_count=0 4262 $as_echo_n 0123456789 >"conftest.in" 4263 while : 4264 do 4265 cat "conftest.in" "conftest.in" >"conftest.tmp" 4266 mv "conftest.tmp" "conftest.in" 4267 cp "conftest.in" "conftest.nl" 4268 $as_echo 'GREP' >> "conftest.nl" 4269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4271 as_fn_arith $ac_count + 1 && ac_count=$as_val 4272 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4273 # Best one so far, save it but keep looking for a better one 4274 ac_cv_path_GREP="$ac_path_GREP" 4275 ac_path_GREP_max=$ac_count 4276 fi 4277 # 10*(2^10) chars as input seems more than enough 4278 test $ac_count -gt 10 && break 4279 done 4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4281esac 4282 4283 $ac_path_GREP_found && break 3 4284 done 4285 done 4286 done 4287IFS=$as_save_IFS 4288 if test -z "$ac_cv_path_GREP"; then 4289 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4290 fi 4291else 4292 ac_cv_path_GREP=$GREP 4293fi 4294 4295fi 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4297$as_echo "$ac_cv_path_GREP" >&6; } 4298 GREP="$ac_cv_path_GREP" 4299 4300 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4302$as_echo_n "checking for egrep... " >&6; } 4303if test "${ac_cv_path_EGREP+set}" = set; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4307 then ac_cv_path_EGREP="$GREP -E" 4308 else 4309 if test -z "$EGREP"; then 4310 ac_path_EGREP_found=false 4311 # Loop through the user's path and test for each of PROGNAME-LIST 4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4314do 4315 IFS=$as_save_IFS 4316 test -z "$as_dir" && as_dir=. 4317 for ac_prog in egrep; do 4318 for ac_exec_ext in '' $ac_executable_extensions; do 4319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4320 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4321# Check for GNU ac_path_EGREP and select it if it is found. 4322 # Check for GNU $ac_path_EGREP 4323case `"$ac_path_EGREP" --version 2>&1` in 4324*GNU*) 4325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4326*) 4327 ac_count=0 4328 $as_echo_n 0123456789 >"conftest.in" 4329 while : 4330 do 4331 cat "conftest.in" "conftest.in" >"conftest.tmp" 4332 mv "conftest.tmp" "conftest.in" 4333 cp "conftest.in" "conftest.nl" 4334 $as_echo 'EGREP' >> "conftest.nl" 4335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4337 as_fn_arith $ac_count + 1 && ac_count=$as_val 4338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4339 # Best one so far, save it but keep looking for a better one 4340 ac_cv_path_EGREP="$ac_path_EGREP" 4341 ac_path_EGREP_max=$ac_count 4342 fi 4343 # 10*(2^10) chars as input seems more than enough 4344 test $ac_count -gt 10 && break 4345 done 4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4347esac 4348 4349 $ac_path_EGREP_found && break 3 4350 done 4351 done 4352 done 4353IFS=$as_save_IFS 4354 if test -z "$ac_cv_path_EGREP"; then 4355 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4356 fi 4357else 4358 ac_cv_path_EGREP=$EGREP 4359fi 4360 4361 fi 4362fi 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4364$as_echo "$ac_cv_path_EGREP" >&6; } 4365 EGREP="$ac_cv_path_EGREP" 4366 4367 4368 4369# Check whether --with-gnu-ld was given. 4370if test "${with_gnu_ld+set}" = set; then : 4371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4372else 4373 with_gnu_ld=no 4374fi 4375 4376ac_prog=ld 4377if test "$GCC" = yes; then 4378 # Check if gcc -print-prog-name=ld gives a path. 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4380$as_echo_n "checking for ld used by $CC... " >&6; } 4381 case $host in 4382 *-*-mingw*) 4383 # gcc leaves a trailing carriage return which upsets mingw 4384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4385 *) 4386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4387 esac 4388 case $ac_prog in 4389 # Accept absolute paths. 4390 [\\/]* | ?:[\\/]*) 4391 re_direlt='/[^/][^/]*/\.\./' 4392 # Canonicalize the pathname of ld 4393 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4395 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4396 done 4397 test -z "$LD" && LD="$ac_prog" 4398 ;; 4399 "") 4400 # If it fails, then pretend we aren't using GCC. 4401 ac_prog=ld 4402 ;; 4403 *) 4404 # If it is relative, then search for the first ld in PATH. 4405 with_gnu_ld=unknown 4406 ;; 4407 esac 4408elif test "$with_gnu_ld" = yes; then 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4410$as_echo_n "checking for GNU ld... " >&6; } 4411else 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4413$as_echo_n "checking for non-GNU ld... " >&6; } 4414fi 4415if test "${lt_cv_path_LD+set}" = set; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 if test -z "$LD"; then 4419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4420 for ac_dir in $PATH; do 4421 IFS="$lt_save_ifs" 4422 test -z "$ac_dir" && ac_dir=. 4423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4424 lt_cv_path_LD="$ac_dir/$ac_prog" 4425 # Check to see if the program is GNU ld. I'd rather use --version, 4426 # but apparently some variants of GNU ld only accept -v. 4427 # Break only if it was the GNU/non-GNU ld that we prefer. 4428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4429 *GNU* | *'with BFD'*) 4430 test "$with_gnu_ld" != no && break 4431 ;; 4432 *) 4433 test "$with_gnu_ld" != yes && break 4434 ;; 4435 esac 4436 fi 4437 done 4438 IFS="$lt_save_ifs" 4439else 4440 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4441fi 4442fi 4443 4444LD="$lt_cv_path_LD" 4445if test -n "$LD"; then 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4447$as_echo "$LD" >&6; } 4448else 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4450$as_echo "no" >&6; } 4451fi 4452test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4454$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4455if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4456 $as_echo_n "(cached) " >&6 4457else 4458 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4459case `$LD -v 2>&1 </dev/null` in 4460*GNU* | *'with BFD'*) 4461 lt_cv_prog_gnu_ld=yes 4462 ;; 4463*) 4464 lt_cv_prog_gnu_ld=no 4465 ;; 4466esac 4467fi 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4469$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4470with_gnu_ld=$lt_cv_prog_gnu_ld 4471 4472 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4474$as_echo_n "checking for $LD option to reload object files... " >&6; } 4475if test "${lt_cv_ld_reload_flag+set}" = set; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 lt_cv_ld_reload_flag='-r' 4479fi 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4481$as_echo "$lt_cv_ld_reload_flag" >&6; } 4482reload_flag=$lt_cv_ld_reload_flag 4483case $reload_flag in 4484"" | " "*) ;; 4485*) reload_flag=" $reload_flag" ;; 4486esac 4487reload_cmds='$LD$reload_flag -o $output$reload_objs' 4488case $host_os in 4489 darwin*) 4490 if test "$GCC" = yes; then 4491 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 4492 else 4493 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4494 fi 4495 ;; 4496esac 4497 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 4499$as_echo_n "checking for BSD-compatible nm... " >&6; } 4500if test "${lt_cv_path_NM+set}" = set; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 if test -n "$NM"; then 4504 # Let the user override the test. 4505 lt_cv_path_NM="$NM" 4506else 4507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4508 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4509 IFS="$lt_save_ifs" 4510 test -z "$ac_dir" && ac_dir=. 4511 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 4512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4513 # Check to see if the nm accepts a BSD-compat flag. 4514 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4515 # nm: unknown option "B" ignored 4516 # Tru64's nm complains that /dev/null is an invalid object file 4517 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4518 */dev/null* | *'Invalid file or object type'*) 4519 lt_cv_path_NM="$tmp_nm -B" 4520 break 4521 ;; 4522 *) 4523 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4524 */dev/null*) 4525 lt_cv_path_NM="$tmp_nm -p" 4526 break 4527 ;; 4528 *) 4529 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4530 continue # so that we can try to find one that supports BSD flags 4531 ;; 4532 esac 4533 esac 4534 fi 4535 done 4536 IFS="$lt_save_ifs" 4537 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4538fi 4539fi 4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4541$as_echo "$lt_cv_path_NM" >&6; } 4542NM="$lt_cv_path_NM" 4543 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4545$as_echo_n "checking whether ln -s works... " >&6; } 4546LN_S=$as_ln_s 4547if test "$LN_S" = "ln -s"; then 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4549$as_echo "yes" >&6; } 4550else 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4552$as_echo "no, using $LN_S" >&6; } 4553fi 4554 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5 4556$as_echo_n "checking how to recognise dependent libraries... " >&6; } 4557if test "${lt_cv_deplibs_check_method+set}" = set; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 lt_cv_file_magic_cmd='$MAGIC_CMD' 4561lt_cv_file_magic_test_file= 4562lt_cv_deplibs_check_method='unknown' 4563# Need to set the preceding variable on all platforms that support 4564# interlibrary dependencies. 4565# 'none' -- dependencies not supported. 4566# `unknown' -- same as none, but documents that we really don't know. 4567# 'pass_all' -- all dependencies passed with no checks. 4568# 'test_compile' -- check by making test program. 4569# 'file_magic [[regex]]' -- check by looking for files in library path 4570# which responds to the $file_magic_cmd with a given extended regex. 4571# If you have `file' or equivalent on your system and you're not sure 4572# whether `pass_all' will *always* work, you probably want this one. 4573 4574case $host_os in 4575aix4* | aix5*) 4576 lt_cv_deplibs_check_method=pass_all 4577 ;; 4578 4579beos*) 4580 lt_cv_deplibs_check_method=pass_all 4581 ;; 4582 4583bsdi[45]*) 4584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4585 lt_cv_file_magic_cmd='/usr/bin/file -L' 4586 lt_cv_file_magic_test_file=/shlib/libc.so 4587 ;; 4588 4589cygwin*) 4590 # func_win32_libid is a shell function defined in ltmain.sh 4591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4592 lt_cv_file_magic_cmd='func_win32_libid' 4593 ;; 4594 4595mingw* | pw32*) 4596 # Base MSYS/MinGW do not provide the 'file' command needed by 4597 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4598 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4599 lt_cv_file_magic_cmd='$OBJDUMP -f' 4600 ;; 4601 4602darwin* | rhapsody*) 4603 lt_cv_deplibs_check_method=pass_all 4604 ;; 4605 4606freebsd* | kfreebsd*-gnu | dragonfly*) 4607 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4608 case $host_cpu in 4609 i*86 ) 4610 # Not sure whether the presence of OpenBSD here was a mistake. 4611 # Let's accept both of them until this is cleared up. 4612 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4613 lt_cv_file_magic_cmd=/usr/bin/file 4614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4615 ;; 4616 esac 4617 else 4618 lt_cv_deplibs_check_method=pass_all 4619 fi 4620 ;; 4621 4622gnu*) 4623 lt_cv_deplibs_check_method=pass_all 4624 ;; 4625 4626hpux10.20* | hpux11*) 4627 lt_cv_file_magic_cmd=/usr/bin/file 4628 case $host_cpu in 4629 ia64*) 4630 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4631 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4632 ;; 4633 hppa*64*) 4634 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]' 4635 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4636 ;; 4637 *) 4638 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4639 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4640 ;; 4641 esac 4642 ;; 4643 4644irix5* | irix6* | nonstopux*) 4645 case $LD in 4646 *-32|*"-32 ") libmagic=32-bit;; 4647 *-n32|*"-n32 ") libmagic=N32;; 4648 *-64|*"-64 ") libmagic=64-bit;; 4649 *) libmagic=never-match;; 4650 esac 4651 lt_cv_deplibs_check_method=pass_all 4652 ;; 4653 4654# This must be Linux ELF. 4655linux*) 4656 lt_cv_deplibs_check_method=pass_all 4657 ;; 4658 4659netbsd*) 4660 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4662 else 4663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4664 fi 4665 ;; 4666 4667newos6*) 4668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4669 lt_cv_file_magic_cmd=/usr/bin/file 4670 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4671 ;; 4672 4673nto-qnx*) 4674 lt_cv_deplibs_check_method=unknown 4675 ;; 4676 4677openbsd*) 4678 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4680 else 4681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4682 fi 4683 ;; 4684 4685osf3* | osf4* | osf5*) 4686 lt_cv_deplibs_check_method=pass_all 4687 ;; 4688 4689sco3.2v5*) 4690 lt_cv_deplibs_check_method=pass_all 4691 ;; 4692 4693solaris*) 4694 lt_cv_deplibs_check_method=pass_all 4695 ;; 4696 4697sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4698 case $host_vendor in 4699 motorola) 4700 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]' 4701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4702 ;; 4703 ncr) 4704 lt_cv_deplibs_check_method=pass_all 4705 ;; 4706 sequent) 4707 lt_cv_file_magic_cmd='/bin/file' 4708 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4709 ;; 4710 sni) 4711 lt_cv_file_magic_cmd='/bin/file' 4712 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4713 lt_cv_file_magic_test_file=/lib/libc.so 4714 ;; 4715 siemens) 4716 lt_cv_deplibs_check_method=pass_all 4717 ;; 4718 esac 4719 ;; 4720 4721sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 4722 lt_cv_deplibs_check_method=pass_all 4723 ;; 4724esac 4725 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4728$as_echo "$lt_cv_deplibs_check_method" >&6; } 4729file_magic_cmd=$lt_cv_file_magic_cmd 4730deplibs_check_method=$lt_cv_deplibs_check_method 4731test -z "$deplibs_check_method" && deplibs_check_method=unknown 4732 4733 4734 4735 4736# If no C compiler was specified, use CC. 4737LTCC=${LTCC-"$CC"} 4738 4739# Allow CC to be a program name with arguments. 4740compiler=$CC 4741 4742 4743# Check whether --enable-libtool-lock was given. 4744if test "${enable_libtool_lock+set}" = set; then : 4745 enableval=$enable_libtool_lock; 4746fi 4747 4748test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4749 4750# Some flags need to be propagated to the compiler or linker for good 4751# libtool support. 4752case $host in 4753ia64-*-hpux*) 4754 # Find out which ABI we are using. 4755 echo 'int i;' > conftest.$ac_ext 4756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4757 (eval $ac_compile) 2>&5 4758 ac_status=$? 4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4760 test $ac_status = 0; }; then 4761 case `/usr/bin/file conftest.$ac_objext` in 4762 *ELF-32*) 4763 HPUX_IA64_MODE="32" 4764 ;; 4765 *ELF-64*) 4766 HPUX_IA64_MODE="64" 4767 ;; 4768 esac 4769 fi 4770 rm -rf conftest* 4771 ;; 4772*-*-irix6*) 4773 # Find out which ABI we are using. 4774 echo '#line 4774 "configure"' > conftest.$ac_ext 4775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4776 (eval $ac_compile) 2>&5 4777 ac_status=$? 4778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4779 test $ac_status = 0; }; then 4780 if test "$lt_cv_prog_gnu_ld" = yes; then 4781 case `/usr/bin/file conftest.$ac_objext` in 4782 *32-bit*) 4783 LD="${LD-ld} -melf32bsmip" 4784 ;; 4785 *N32*) 4786 LD="${LD-ld} -melf32bmipn32" 4787 ;; 4788 *64-bit*) 4789 LD="${LD-ld} -melf64bmip" 4790 ;; 4791 esac 4792 else 4793 case `/usr/bin/file conftest.$ac_objext` in 4794 *32-bit*) 4795 LD="${LD-ld} -32" 4796 ;; 4797 *N32*) 4798 LD="${LD-ld} -n32" 4799 ;; 4800 *64-bit*) 4801 LD="${LD-ld} -64" 4802 ;; 4803 esac 4804 fi 4805 fi 4806 rm -rf conftest* 4807 ;; 4808 4809x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4810 # Find out which ABI we are using. 4811 echo 'int i;' > conftest.$ac_ext 4812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 4813 (eval $ac_compile) 2>&5 4814 ac_status=$? 4815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4816 test $ac_status = 0; }; then 4817 case `/usr/bin/file conftest.o` in 4818 *32-bit*) 4819 case $host in 4820 x86_64-*linux*) 4821 LD="${LD-ld} -m elf_i386" 4822 ;; 4823 ppc64-*linux*|powerpc64-*linux*) 4824 LD="${LD-ld} -m elf32ppclinux" 4825 ;; 4826 s390x-*linux*) 4827 LD="${LD-ld} -m elf_s390" 4828 ;; 4829 sparc64-*linux*) 4830 LD="${LD-ld} -m elf32_sparc" 4831 ;; 4832 esac 4833 ;; 4834 *64-bit*) 4835 case $host in 4836 x86_64-*linux*) 4837 LD="${LD-ld} -m elf_x86_64" 4838 ;; 4839 ppc*-*linux*|powerpc*-*linux*) 4840 LD="${LD-ld} -m elf64ppc" 4841 ;; 4842 s390*-*linux*) 4843 LD="${LD-ld} -m elf64_s390" 4844 ;; 4845 sparc*-*linux*) 4846 LD="${LD-ld} -m elf64_sparc" 4847 ;; 4848 esac 4849 ;; 4850 esac 4851 fi 4852 rm -rf conftest* 4853 ;; 4854 4855*-*-sco3.2v5*) 4856 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4857 SAVE_CFLAGS="$CFLAGS" 4858 CFLAGS="$CFLAGS -belf" 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 4860$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4861if test "${lt_cv_cc_needs_belf+set}" = set; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 ac_ext=c 4865ac_cpp='$CPP $CPPFLAGS' 4866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4868ac_compiler_gnu=$ac_cv_c_compiler_gnu 4869 4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4871/* end confdefs.h. */ 4872 4873int 4874main () 4875{ 4876 4877 ; 4878 return 0; 4879} 4880_ACEOF 4881if ac_fn_c_try_link "$LINENO"; then : 4882 lt_cv_cc_needs_belf=yes 4883else 4884 lt_cv_cc_needs_belf=no 4885fi 4886rm -f core conftest.err conftest.$ac_objext \ 4887 conftest$ac_exeext conftest.$ac_ext 4888 ac_ext=c 4889ac_cpp='$CPP $CPPFLAGS' 4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4892ac_compiler_gnu=$ac_cv_c_compiler_gnu 4893 4894fi 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 4896$as_echo "$lt_cv_cc_needs_belf" >&6; } 4897 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4898 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4899 CFLAGS="$SAVE_CFLAGS" 4900 fi 4901 ;; 4902 4903esac 4904 4905need_locks="$enable_libtool_lock" 4906 4907 4908ac_ext=c 4909ac_cpp='$CPP $CPPFLAGS' 4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4912ac_compiler_gnu=$ac_cv_c_compiler_gnu 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4914$as_echo_n "checking how to run the C preprocessor... " >&6; } 4915# On Suns, sometimes $CPP names a directory. 4916if test -n "$CPP" && test -d "$CPP"; then 4917 CPP= 4918fi 4919if test -z "$CPP"; then 4920 if test "${ac_cv_prog_CPP+set}" = set; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 # Double quotes because CPP needs to be expanded 4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4925 do 4926 ac_preproc_ok=false 4927for ac_c_preproc_warn_flag in '' yes 4928do 4929 # Use a header file that comes with gcc, so configuring glibc 4930 # with a fresh cross-compiler works. 4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4932 # <limits.h> exists even on freestanding compilers. 4933 # On the NeXT, cc -E runs the code through the compiler's parser, 4934 # not just through cpp. "Syntax error" is here to catch this case. 4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936/* end confdefs.h. */ 4937#ifdef __STDC__ 4938# include <limits.h> 4939#else 4940# include <assert.h> 4941#endif 4942 Syntax error 4943_ACEOF 4944if ac_fn_c_try_cpp "$LINENO"; then : 4945 4946else 4947 # Broken: fails on valid input. 4948continue 4949fi 4950rm -f conftest.err conftest.$ac_ext 4951 4952 # OK, works on sane cases. Now check whether nonexistent headers 4953 # can be detected and how. 4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4955/* end confdefs.h. */ 4956#include <ac_nonexistent.h> 4957_ACEOF 4958if ac_fn_c_try_cpp "$LINENO"; then : 4959 # Broken: success on invalid input. 4960continue 4961else 4962 # Passes both tests. 4963ac_preproc_ok=: 4964break 4965fi 4966rm -f conftest.err conftest.$ac_ext 4967 4968done 4969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4970rm -f conftest.err conftest.$ac_ext 4971if $ac_preproc_ok; then : 4972 break 4973fi 4974 4975 done 4976 ac_cv_prog_CPP=$CPP 4977 4978fi 4979 CPP=$ac_cv_prog_CPP 4980else 4981 ac_cv_prog_CPP=$CPP 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4984$as_echo "$CPP" >&6; } 4985ac_preproc_ok=false 4986for ac_c_preproc_warn_flag in '' yes 4987do 4988 # Use a header file that comes with gcc, so configuring glibc 4989 # with a fresh cross-compiler works. 4990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4991 # <limits.h> exists even on freestanding compilers. 4992 # On the NeXT, cc -E runs the code through the compiler's parser, 4993 # not just through cpp. "Syntax error" is here to catch this case. 4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996#ifdef __STDC__ 4997# include <limits.h> 4998#else 4999# include <assert.h> 5000#endif 5001 Syntax error 5002_ACEOF 5003if ac_fn_c_try_cpp "$LINENO"; then : 5004 5005else 5006 # Broken: fails on valid input. 5007continue 5008fi 5009rm -f conftest.err conftest.$ac_ext 5010 5011 # OK, works on sane cases. Now check whether nonexistent headers 5012 # can be detected and how. 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014/* end confdefs.h. */ 5015#include <ac_nonexistent.h> 5016_ACEOF 5017if ac_fn_c_try_cpp "$LINENO"; then : 5018 # Broken: success on invalid input. 5019continue 5020else 5021 # Passes both tests. 5022ac_preproc_ok=: 5023break 5024fi 5025rm -f conftest.err conftest.$ac_ext 5026 5027done 5028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5029rm -f conftest.err conftest.$ac_ext 5030if $ac_preproc_ok; then : 5031 5032else 5033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5035as_fn_error "C preprocessor \"$CPP\" fails sanity check 5036See \`config.log' for more details." "$LINENO" 5; } 5037fi 5038 5039ac_ext=c 5040ac_cpp='$CPP $CPPFLAGS' 5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5043ac_compiler_gnu=$ac_cv_c_compiler_gnu 5044 5045 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5047$as_echo_n "checking for ANSI C header files... " >&6; } 5048if test "${ac_cv_header_stdc+set}" = set; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053#include <stdlib.h> 5054#include <stdarg.h> 5055#include <string.h> 5056#include <float.h> 5057 5058int 5059main () 5060{ 5061 5062 ; 5063 return 0; 5064} 5065_ACEOF 5066if ac_fn_c_try_compile "$LINENO"; then : 5067 ac_cv_header_stdc=yes 5068else 5069 ac_cv_header_stdc=no 5070fi 5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5072 5073if test $ac_cv_header_stdc = yes; then 5074 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076/* end confdefs.h. */ 5077#include <string.h> 5078 5079_ACEOF 5080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5081 $EGREP "memchr" >/dev/null 2>&1; then : 5082 5083else 5084 ac_cv_header_stdc=no 5085fi 5086rm -f conftest* 5087 5088fi 5089 5090if test $ac_cv_header_stdc = yes; then 5091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5093/* end confdefs.h. */ 5094#include <stdlib.h> 5095 5096_ACEOF 5097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5098 $EGREP "free" >/dev/null 2>&1; then : 5099 5100else 5101 ac_cv_header_stdc=no 5102fi 5103rm -f conftest* 5104 5105fi 5106 5107if test $ac_cv_header_stdc = yes; then 5108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5109 if test "$cross_compiling" = yes; then : 5110 : 5111else 5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113/* end confdefs.h. */ 5114#include <ctype.h> 5115#include <stdlib.h> 5116#if ((' ' & 0x0FF) == 0x020) 5117# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5118# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5119#else 5120# define ISLOWER(c) \ 5121 (('a' <= (c) && (c) <= 'i') \ 5122 || ('j' <= (c) && (c) <= 'r') \ 5123 || ('s' <= (c) && (c) <= 'z')) 5124# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5125#endif 5126 5127#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5128int 5129main () 5130{ 5131 int i; 5132 for (i = 0; i < 256; i++) 5133 if (XOR (islower (i), ISLOWER (i)) 5134 || toupper (i) != TOUPPER (i)) 5135 return 2; 5136 return 0; 5137} 5138_ACEOF 5139if ac_fn_c_try_run "$LINENO"; then : 5140 5141else 5142 ac_cv_header_stdc=no 5143fi 5144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5145 conftest.$ac_objext conftest.beam conftest.$ac_ext 5146fi 5147 5148fi 5149fi 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5151$as_echo "$ac_cv_header_stdc" >&6; } 5152if test $ac_cv_header_stdc = yes; then 5153 5154$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5155 5156fi 5157 5158# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5159for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5160 inttypes.h stdint.h unistd.h 5161do : 5162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5163ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5164" 5165eval as_val=\$$as_ac_Header 5166 if test "x$as_val" = x""yes; then : 5167 cat >>confdefs.h <<_ACEOF 5168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5169_ACEOF 5170 5171fi 5172 5173done 5174 5175 5176for ac_header in dlfcn.h 5177do : 5178 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 5179if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 5180 cat >>confdefs.h <<_ACEOF 5181#define HAVE_DLFCN_H 1 5182_ACEOF 5183 5184fi 5185 5186done 5187 5188 5189# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5190 5191# find the maximum length of command line arguments 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5193$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5194if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 i=0 5198 teststring="ABCD" 5199 5200 case $build_os in 5201 msdosdjgpp*) 5202 # On DJGPP, this test can blow up pretty badly due to problems in libc 5203 # (any single argument exceeding 2000 bytes causes a buffer overrun 5204 # during glob expansion). Even if it were fixed, the result of this 5205 # check would be larger than it should be. 5206 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5207 ;; 5208 5209 gnu*) 5210 # Under GNU Hurd, this test is not required because there is 5211 # no limit to the length of command line arguments. 5212 # Libtool will interpret -1 as no limit whatsoever 5213 lt_cv_sys_max_cmd_len=-1; 5214 ;; 5215 5216 cygwin* | mingw*) 5217 # On Win9x/ME, this test blows up -- it succeeds, but takes 5218 # about 5 minutes as the teststring grows exponentially. 5219 # Worse, since 9x/ME are not pre-emptively multitasking, 5220 # you end up with a "frozen" computer, even though with patience 5221 # the test eventually succeeds (with a max line length of 256k). 5222 # Instead, let's just punt: use the minimum linelength reported by 5223 # all of the supported platforms: 8192 (on NT/2K/XP). 5224 lt_cv_sys_max_cmd_len=8192; 5225 ;; 5226 5227 amigaos*) 5228 # On AmigaOS with pdksh, this test takes hours, literally. 5229 # So we just punt and use a minimum line length of 8192. 5230 lt_cv_sys_max_cmd_len=8192; 5231 ;; 5232 5233 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5234 # This has been around since 386BSD, at least. Likely further. 5235 if test -x /sbin/sysctl; then 5236 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5237 elif test -x /usr/sbin/sysctl; then 5238 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5239 else 5240 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5241 fi 5242 # And add a safety zone 5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5245 ;; 5246 osf*) 5247 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5248 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5249 # nice to cause kernel panics so lets avoid the loop below. 5250 # First set a reasonable default. 5251 lt_cv_sys_max_cmd_len=16384 5252 # 5253 if test -x /sbin/sysconfig; then 5254 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5255 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5256 esac 5257 fi 5258 ;; 5259 *) 5260 # If test is not a shell built-in, we'll probably end up computing a 5261 # maximum length that is only half of the actual maximum length, but 5262 # we can't tell. 5263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5264 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5265 = "XX$teststring") >/dev/null 2>&1 && 5266 new_result=`expr "X$teststring" : ".*" 2>&1` && 5267 lt_cv_sys_max_cmd_len=$new_result && 5268 test $i != 17 # 1/2 MB should be enough 5269 do 5270 i=`expr $i + 1` 5271 teststring=$teststring$teststring 5272 done 5273 teststring= 5274 # Add a significant safety factor because C++ compilers can tack on massive 5275 # amounts of additional arguments before passing them to the linker. 5276 # It appears as though 1/2 is a usable value. 5277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5278 ;; 5279 esac 5280 5281fi 5282 5283if test -n $lt_cv_sys_max_cmd_len ; then 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5285$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5286else 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5288$as_echo "none" >&6; } 5289fi 5290 5291 5292 5293 5294# Check for command to grab the raw symbol name followed by C symbol from nm. 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5296$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5297if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 5301# These are sane defaults that work on at least a few old systems. 5302# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5303 5304# Character class describing NM global symbol codes. 5305symcode='[BCDEGRST]' 5306 5307# Regexp to match symbols that can be accessed directly from C. 5308sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5309 5310# Transform an extracted symbol line into a proper C declaration 5311lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5312 5313# Transform an extracted symbol line into symbol name and symbol address 5314lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5315 5316# Define system-specific variables. 5317case $host_os in 5318aix*) 5319 symcode='[BCDT]' 5320 ;; 5321cygwin* | mingw* | pw32*) 5322 symcode='[ABCDGISTW]' 5323 ;; 5324hpux*) # Its linker distinguishes data from code symbols 5325 if test "$host_cpu" = ia64; then 5326 symcode='[ABCDEGRST]' 5327 fi 5328 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5329 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5330 ;; 5331linux*) 5332 if test "$host_cpu" = ia64; then 5333 symcode='[ABCDGIRSTW]' 5334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5335 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5336 fi 5337 ;; 5338irix* | nonstopux*) 5339 symcode='[BCDEGRST]' 5340 ;; 5341osf*) 5342 symcode='[BCDEGQRST]' 5343 ;; 5344solaris* | sysv5*) 5345 symcode='[BDRT]' 5346 ;; 5347sysv4) 5348 symcode='[DFNSTU]' 5349 ;; 5350esac 5351 5352# Handle CRLF in mingw tool chain 5353opt_cr= 5354case $build_os in 5355mingw*) 5356 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5357 ;; 5358esac 5359 5360# If we're using GNU nm, then use its standard symbol codes. 5361case `$NM -V 2>&1` in 5362*GNU* | *'with BFD'*) 5363 symcode='[ABCDGIRSTW]' ;; 5364esac 5365 5366# Try without a prefix undercore, then with it. 5367for ac_symprfx in "" "_"; do 5368 5369 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5370 symxfrm="\\1 $ac_symprfx\\2 \\2" 5371 5372 # Write the raw and C identifiers. 5373 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5374 5375 # Check to see that the pipe works correctly. 5376 pipe_works=no 5377 5378 rm -f conftest* 5379 cat > conftest.$ac_ext <<EOF 5380#ifdef __cplusplus 5381extern "C" { 5382#endif 5383char nm_test_var; 5384void nm_test_func(){} 5385#ifdef __cplusplus 5386} 5387#endif 5388int main(){nm_test_var='a';nm_test_func();return(0);} 5389EOF 5390 5391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5392 (eval $ac_compile) 2>&5 5393 ac_status=$? 5394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5395 test $ac_status = 0; }; then 5396 # Now try to grab the symbols. 5397 nlist=conftest.nm 5398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5399 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5400 ac_status=$? 5401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5402 test $ac_status = 0; } && test -s "$nlist"; then 5403 # Try sorting and uniquifying the output. 5404 if sort "$nlist" | uniq > "$nlist"T; then 5405 mv -f "$nlist"T "$nlist" 5406 else 5407 rm -f "$nlist"T 5408 fi 5409 5410 # Make sure that we snagged all the symbols we need. 5411 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5412 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5413 cat <<EOF > conftest.$ac_ext 5414#ifdef __cplusplus 5415extern "C" { 5416#endif 5417 5418EOF 5419 # Now generate the symbol file. 5420 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5421 5422 cat <<EOF >> conftest.$ac_ext 5423#if defined (__STDC__) && __STDC__ 5424# define lt_ptr_t void * 5425#else 5426# define lt_ptr_t char * 5427# define const 5428#endif 5429 5430/* The mapping between symbol names and symbols. */ 5431const struct { 5432 const char *name; 5433 lt_ptr_t address; 5434} 5435lt_preloaded_symbols[] = 5436{ 5437EOF 5438 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5439 cat <<\EOF >> conftest.$ac_ext 5440 {0, (lt_ptr_t) 0} 5441}; 5442 5443#ifdef __cplusplus 5444} 5445#endif 5446EOF 5447 # Now try linking the two files. 5448 mv conftest.$ac_objext conftstm.$ac_objext 5449 lt_save_LIBS="$LIBS" 5450 lt_save_CFLAGS="$CFLAGS" 5451 LIBS="conftstm.$ac_objext" 5452 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5454 (eval $ac_link) 2>&5 5455 ac_status=$? 5456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5457 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5458 pipe_works=yes 5459 fi 5460 LIBS="$lt_save_LIBS" 5461 CFLAGS="$lt_save_CFLAGS" 5462 else 5463 echo "cannot find nm_test_func in $nlist" >&5 5464 fi 5465 else 5466 echo "cannot find nm_test_var in $nlist" >&5 5467 fi 5468 else 5469 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5470 fi 5471 else 5472 echo "$progname: failed program was:" >&5 5473 cat conftest.$ac_ext >&5 5474 fi 5475 rm -f conftest* conftst* 5476 5477 # Do not use the global_symbol_pipe unless it works. 5478 if test "$pipe_works" = yes; then 5479 break 5480 else 5481 lt_cv_sys_global_symbol_pipe= 5482 fi 5483done 5484 5485fi 5486 5487if test -z "$lt_cv_sys_global_symbol_pipe"; then 5488 lt_cv_sys_global_symbol_to_cdecl= 5489fi 5490if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5492$as_echo "failed" >&6; } 5493else 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5495$as_echo "ok" >&6; } 5496fi 5497 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 5499$as_echo_n "checking for objdir... " >&6; } 5500if test "${lt_cv_objdir+set}" = set; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 rm -f .libs 2>/dev/null 5504mkdir .libs 2>/dev/null 5505if test -d .libs; then 5506 lt_cv_objdir=.libs 5507else 5508 # MS-DOS does not allow filenames that begin with a dot. 5509 lt_cv_objdir=_libs 5510fi 5511rmdir .libs 2>/dev/null 5512fi 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 5514$as_echo "$lt_cv_objdir" >&6; } 5515objdir=$lt_cv_objdir 5516 5517 5518 5519 5520 5521case $host_os in 5522aix3*) 5523 # AIX sometimes has problems with the GCC collect2 program. For some 5524 # reason, if we set the COLLECT_NAMES environment variable, the problems 5525 # vanish in a puff of smoke. 5526 if test "X${COLLECT_NAMES+set}" != Xset; then 5527 COLLECT_NAMES= 5528 export COLLECT_NAMES 5529 fi 5530 ;; 5531esac 5532 5533# Sed substitution that helps us do robust quoting. It backslashifies 5534# metacharacters that are still active within double-quoted strings. 5535Xsed='sed -e 1s/^X//' 5536sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5537 5538# Same as above, but do not quote variable references. 5539double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5540 5541# Sed substitution to delay expansion of an escaped shell variable in a 5542# double_quote_subst'ed string. 5543delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5544 5545# Sed substitution to avoid accidental globbing in evaled expressions 5546no_glob_subst='s/\*/\\\*/g' 5547 5548# Constants: 5549rm="rm -f" 5550 5551# Global variables: 5552default_ofile=libtool 5553can_build_shared=yes 5554 5555# All known linkers require a `.a' archive for static linking (except MSVC, 5556# which needs '.lib'). 5557libext=a 5558ltmain="$ac_aux_dir/ltmain.sh" 5559ofile="$default_ofile" 5560with_gnu_ld="$lt_cv_prog_gnu_ld" 5561 5562if test -n "$ac_tool_prefix"; then 5563 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5564set dummy ${ac_tool_prefix}ar; ac_word=$2 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5566$as_echo_n "checking for $ac_word... " >&6; } 5567if test "${ac_cv_prog_AR+set}" = set; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 if test -n "$AR"; then 5571 ac_cv_prog_AR="$AR" # Let the user override the test. 5572else 5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5574for as_dir in $PATH 5575do 5576 IFS=$as_save_IFS 5577 test -z "$as_dir" && as_dir=. 5578 for ac_exec_ext in '' $ac_executable_extensions; do 5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5580 ac_cv_prog_AR="${ac_tool_prefix}ar" 5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5582 break 2 5583 fi 5584done 5585 done 5586IFS=$as_save_IFS 5587 5588fi 5589fi 5590AR=$ac_cv_prog_AR 5591if test -n "$AR"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5593$as_echo "$AR" >&6; } 5594else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5596$as_echo "no" >&6; } 5597fi 5598 5599 5600fi 5601if test -z "$ac_cv_prog_AR"; then 5602 ac_ct_AR=$AR 5603 # Extract the first word of "ar", so it can be a program name with args. 5604set dummy ar; ac_word=$2 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5606$as_echo_n "checking for $ac_word... " >&6; } 5607if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 if test -n "$ac_ct_AR"; then 5611 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5612else 5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5614for as_dir in $PATH 5615do 5616 IFS=$as_save_IFS 5617 test -z "$as_dir" && as_dir=. 5618 for ac_exec_ext in '' $ac_executable_extensions; do 5619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5620 ac_cv_prog_ac_ct_AR="ar" 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5622 break 2 5623 fi 5624done 5625 done 5626IFS=$as_save_IFS 5627 5628fi 5629fi 5630ac_ct_AR=$ac_cv_prog_ac_ct_AR 5631if test -n "$ac_ct_AR"; then 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5633$as_echo "$ac_ct_AR" >&6; } 5634else 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5636$as_echo "no" >&6; } 5637fi 5638 5639 if test "x$ac_ct_AR" = x; then 5640 AR="false" 5641 else 5642 case $cross_compiling:$ac_tool_warned in 5643yes:) 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5646ac_tool_warned=yes ;; 5647esac 5648 AR=$ac_ct_AR 5649 fi 5650else 5651 AR="$ac_cv_prog_AR" 5652fi 5653 5654if test -n "$ac_tool_prefix"; then 5655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5656set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5658$as_echo_n "checking for $ac_word... " >&6; } 5659if test "${ac_cv_prog_RANLIB+set}" = set; then : 5660 $as_echo_n "(cached) " >&6 5661else 5662 if test -n "$RANLIB"; then 5663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5664else 5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5666for as_dir in $PATH 5667do 5668 IFS=$as_save_IFS 5669 test -z "$as_dir" && as_dir=. 5670 for ac_exec_ext in '' $ac_executable_extensions; do 5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5674 break 2 5675 fi 5676done 5677 done 5678IFS=$as_save_IFS 5679 5680fi 5681fi 5682RANLIB=$ac_cv_prog_RANLIB 5683if test -n "$RANLIB"; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5685$as_echo "$RANLIB" >&6; } 5686else 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5688$as_echo "no" >&6; } 5689fi 5690 5691 5692fi 5693if test -z "$ac_cv_prog_RANLIB"; then 5694 ac_ct_RANLIB=$RANLIB 5695 # Extract the first word of "ranlib", so it can be a program name with args. 5696set dummy ranlib; ac_word=$2 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5698$as_echo_n "checking for $ac_word... " >&6; } 5699if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5700 $as_echo_n "(cached) " >&6 5701else 5702 if test -n "$ac_ct_RANLIB"; then 5703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5704else 5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5706for as_dir in $PATH 5707do 5708 IFS=$as_save_IFS 5709 test -z "$as_dir" && as_dir=. 5710 for ac_exec_ext in '' $ac_executable_extensions; do 5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5712 ac_cv_prog_ac_ct_RANLIB="ranlib" 5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5714 break 2 5715 fi 5716done 5717 done 5718IFS=$as_save_IFS 5719 5720fi 5721fi 5722ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5723if test -n "$ac_ct_RANLIB"; then 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5725$as_echo "$ac_ct_RANLIB" >&6; } 5726else 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5728$as_echo "no" >&6; } 5729fi 5730 5731 if test "x$ac_ct_RANLIB" = x; then 5732 RANLIB=":" 5733 else 5734 case $cross_compiling:$ac_tool_warned in 5735yes:) 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5738ac_tool_warned=yes ;; 5739esac 5740 RANLIB=$ac_ct_RANLIB 5741 fi 5742else 5743 RANLIB="$ac_cv_prog_RANLIB" 5744fi 5745 5746if test -n "$ac_tool_prefix"; then 5747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5748set dummy ${ac_tool_prefix}strip; ac_word=$2 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5750$as_echo_n "checking for $ac_word... " >&6; } 5751if test "${ac_cv_prog_STRIP+set}" = set; then : 5752 $as_echo_n "(cached) " >&6 5753else 5754 if test -n "$STRIP"; then 5755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5756else 5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5758for as_dir in $PATH 5759do 5760 IFS=$as_save_IFS 5761 test -z "$as_dir" && as_dir=. 5762 for ac_exec_ext in '' $ac_executable_extensions; do 5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5764 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5766 break 2 5767 fi 5768done 5769 done 5770IFS=$as_save_IFS 5771 5772fi 5773fi 5774STRIP=$ac_cv_prog_STRIP 5775if test -n "$STRIP"; then 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5777$as_echo "$STRIP" >&6; } 5778else 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5780$as_echo "no" >&6; } 5781fi 5782 5783 5784fi 5785if test -z "$ac_cv_prog_STRIP"; then 5786 ac_ct_STRIP=$STRIP 5787 # Extract the first word of "strip", so it can be a program name with args. 5788set dummy strip; ac_word=$2 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790$as_echo_n "checking for $ac_word... " >&6; } 5791if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 if test -n "$ac_ct_STRIP"; then 5795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5796else 5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5798for as_dir in $PATH 5799do 5800 IFS=$as_save_IFS 5801 test -z "$as_dir" && as_dir=. 5802 for ac_exec_ext in '' $ac_executable_extensions; do 5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5804 ac_cv_prog_ac_ct_STRIP="strip" 5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5806 break 2 5807 fi 5808done 5809 done 5810IFS=$as_save_IFS 5811 5812fi 5813fi 5814ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5815if test -n "$ac_ct_STRIP"; then 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5817$as_echo "$ac_ct_STRIP" >&6; } 5818else 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5820$as_echo "no" >&6; } 5821fi 5822 5823 if test "x$ac_ct_STRIP" = x; then 5824 STRIP=":" 5825 else 5826 case $cross_compiling:$ac_tool_warned in 5827yes:) 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5830ac_tool_warned=yes ;; 5831esac 5832 STRIP=$ac_ct_STRIP 5833 fi 5834else 5835 STRIP="$ac_cv_prog_STRIP" 5836fi 5837 5838 5839old_CC="$CC" 5840old_CFLAGS="$CFLAGS" 5841 5842# Set sane defaults for various variables 5843test -z "$AR" && AR=ar 5844test -z "$AR_FLAGS" && AR_FLAGS=cru 5845test -z "$AS" && AS=as 5846test -z "$CC" && CC=cc 5847test -z "$LTCC" && LTCC=$CC 5848test -z "$DLLTOOL" && DLLTOOL=dlltool 5849test -z "$LD" && LD=ld 5850test -z "$LN_S" && LN_S="ln -s" 5851test -z "$MAGIC_CMD" && MAGIC_CMD=file 5852test -z "$NM" && NM=nm 5853test -z "$SED" && SED=sed 5854test -z "$OBJDUMP" && OBJDUMP=objdump 5855test -z "$RANLIB" && RANLIB=: 5856test -z "$STRIP" && STRIP=: 5857test -z "$ac_objext" && ac_objext=o 5858 5859# Determine commands to create old-style static archives. 5860old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5861old_postinstall_cmds='chmod 644 $oldlib' 5862old_postuninstall_cmds= 5863 5864if test -n "$RANLIB"; then 5865 case $host_os in 5866 openbsd*) 5867 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5868 ;; 5869 *) 5870 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5871 ;; 5872 esac 5873 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5874fi 5875 5876for cc_temp in $compiler""; do 5877 case $cc_temp in 5878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5880 \-*) ;; 5881 *) break;; 5882 esac 5883done 5884cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 5885 5886 5887# Only perform the check for file, if the check method requires it 5888case $deplibs_check_method in 5889file_magic*) 5890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 5892$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 5893if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 case $MAGIC_CMD in 5897[\\/*] | ?:[\\/]*) 5898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5899 ;; 5900*) 5901 lt_save_MAGIC_CMD="$MAGIC_CMD" 5902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5904 for ac_dir in $ac_dummy; do 5905 IFS="$lt_save_ifs" 5906 test -z "$ac_dir" && ac_dir=. 5907 if test -f $ac_dir/${ac_tool_prefix}file; then 5908 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5909 if test -n "$file_magic_test_file"; then 5910 case $deplibs_check_method in 5911 "file_magic "*) 5912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5915 $EGREP "$file_magic_regex" > /dev/null; then 5916 : 5917 else 5918 cat <<EOF 1>&2 5919 5920*** Warning: the command libtool uses to detect shared libraries, 5921*** $file_magic_cmd, produces output that libtool cannot recognize. 5922*** The result is that libtool may fail to recognize shared libraries 5923*** as such. This will affect the creation of libtool libraries that 5924*** depend on shared libraries, but programs linked with such libtool 5925*** libraries will work regardless of this problem. Nevertheless, you 5926*** may want to report the problem to your system manager and/or to 5927*** bug-libtool@gnu.org 5928 5929EOF 5930 fi ;; 5931 esac 5932 fi 5933 break 5934 fi 5935 done 5936 IFS="$lt_save_ifs" 5937 MAGIC_CMD="$lt_save_MAGIC_CMD" 5938 ;; 5939esac 5940fi 5941 5942MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5943if test -n "$MAGIC_CMD"; then 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 5945$as_echo "$MAGIC_CMD" >&6; } 5946else 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5948$as_echo "no" >&6; } 5949fi 5950 5951if test -z "$lt_cv_path_MAGIC_CMD"; then 5952 if test -n "$ac_tool_prefix"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 5954$as_echo_n "checking for file... " >&6; } 5955if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 case $MAGIC_CMD in 5959[\\/*] | ?:[\\/]*) 5960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5961 ;; 5962*) 5963 lt_save_MAGIC_CMD="$MAGIC_CMD" 5964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5966 for ac_dir in $ac_dummy; do 5967 IFS="$lt_save_ifs" 5968 test -z "$ac_dir" && ac_dir=. 5969 if test -f $ac_dir/file; then 5970 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5971 if test -n "$file_magic_test_file"; then 5972 case $deplibs_check_method in 5973 "file_magic "*) 5974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 5975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5977 $EGREP "$file_magic_regex" > /dev/null; then 5978 : 5979 else 5980 cat <<EOF 1>&2 5981 5982*** Warning: the command libtool uses to detect shared libraries, 5983*** $file_magic_cmd, produces output that libtool cannot recognize. 5984*** The result is that libtool may fail to recognize shared libraries 5985*** as such. This will affect the creation of libtool libraries that 5986*** depend on shared libraries, but programs linked with such libtool 5987*** libraries will work regardless of this problem. Nevertheless, you 5988*** may want to report the problem to your system manager and/or to 5989*** bug-libtool@gnu.org 5990 5991EOF 5992 fi ;; 5993 esac 5994 fi 5995 break 5996 fi 5997 done 5998 IFS="$lt_save_ifs" 5999 MAGIC_CMD="$lt_save_MAGIC_CMD" 6000 ;; 6001esac 6002fi 6003 6004MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6005if test -n "$MAGIC_CMD"; then 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 6007$as_echo "$MAGIC_CMD" >&6; } 6008else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010$as_echo "no" >&6; } 6011fi 6012 6013 else 6014 MAGIC_CMD=: 6015 fi 6016fi 6017 6018 fi 6019 ;; 6020esac 6021 6022enable_dlopen=no 6023enable_win32_dll=no 6024 6025# Check whether --enable-libtool-lock was given. 6026if test "${enable_libtool_lock+set}" = set; then : 6027 enableval=$enable_libtool_lock; 6028fi 6029 6030test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6031 6032 6033# Check whether --with-pic was given. 6034if test "${with_pic+set}" = set; then : 6035 withval=$with_pic; pic_mode="$withval" 6036else 6037 pic_mode=default 6038fi 6039 6040test -z "$pic_mode" && pic_mode=default 6041 6042# Use C for the default configuration in the libtool script 6043tagname= 6044lt_save_CC="$CC" 6045ac_ext=c 6046ac_cpp='$CPP $CPPFLAGS' 6047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6049ac_compiler_gnu=$ac_cv_c_compiler_gnu 6050 6051 6052# Source file extension for C test sources. 6053ac_ext=c 6054 6055# Object file extension for compiled C test sources. 6056objext=o 6057objext=$objext 6058 6059# Code to be used in simple compile tests 6060lt_simple_compile_test_code="int some_variable = 0;\n" 6061 6062# Code to be used in simple link tests 6063lt_simple_link_test_code='int main(){return(0);}\n' 6064 6065 6066# If no C compiler was specified, use CC. 6067LTCC=${LTCC-"$CC"} 6068 6069# Allow CC to be a program name with arguments. 6070compiler=$CC 6071 6072 6073# save warnings/boilerplate of simple test code 6074ac_outfile=conftest.$ac_objext 6075printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6076eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6077_lt_compiler_boilerplate=`cat conftest.err` 6078$rm conftest* 6079 6080ac_outfile=conftest.$ac_objext 6081printf "$lt_simple_link_test_code" >conftest.$ac_ext 6082eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6083_lt_linker_boilerplate=`cat conftest.err` 6084$rm conftest* 6085 6086 6087# 6088# Check for any special shared library compilation flags. 6089# 6090lt_prog_cc_shlib= 6091if test "$GCC" = no; then 6092 case $host_os in 6093 sco3.2v5*) 6094 lt_prog_cc_shlib='-belf' 6095 ;; 6096 esac 6097fi 6098if test -n "$lt_prog_cc_shlib"; then 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6100$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6101 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6102 else 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6104$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6105 lt_cv_prog_cc_can_build_shared=no 6106 fi 6107fi 6108 6109 6110# 6111# Check to make sure the static flag actually works. 6112# 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6114$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; } 6115if test "${lt_prog_compiler_static_works+set}" = set; then : 6116 $as_echo_n "(cached) " >&6 6117else 6118 lt_prog_compiler_static_works=no 6119 save_LDFLAGS="$LDFLAGS" 6120 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6121 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6123 # The linker can only warn and ignore the option if not recognized 6124 # So say no if there are warnings 6125 if test -s conftest.err; then 6126 # Append any errors to the config.log. 6127 cat conftest.err 1>&5 6128 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6129 $SED '/^$/d' conftest.err >conftest.er2 6130 if diff conftest.exp conftest.er2 >/dev/null; then 6131 lt_prog_compiler_static_works=yes 6132 fi 6133 else 6134 lt_prog_compiler_static_works=yes 6135 fi 6136 fi 6137 $rm conftest* 6138 LDFLAGS="$save_LDFLAGS" 6139 6140fi 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5 6142$as_echo "$lt_prog_compiler_static_works" >&6; } 6143 6144if test x"$lt_prog_compiler_static_works" = xyes; then 6145 : 6146else 6147 lt_prog_compiler_static= 6148fi 6149 6150 6151 6152 6153lt_prog_compiler_no_builtin_flag= 6154 6155if test "$GCC" = yes; then 6156 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6157 6158 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6160$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 6161if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 lt_cv_prog_compiler_rtti_exceptions=no 6165 ac_outfile=conftest.$ac_objext 6166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6167 lt_compiler_flag="-fno-rtti -fno-exceptions" 6168 # Insert the option either (1) after the last *FLAGS variable, or 6169 # (2) before a word containing "conftest.", or (3) at the end. 6170 # Note that $ac_compile itself does not contain backslashes and begins 6171 # with a dollar sign (not a hyphen), so the echo should work correctly. 6172 # The option is referenced via a variable to avoid confusing sed. 6173 lt_compile=`echo "$ac_compile" | $SED \ 6174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6176 -e 's:$: $lt_compiler_flag:'` 6177 (eval echo "\"\$as_me:6177: $lt_compile\"" >&5) 6178 (eval "$lt_compile" 2>conftest.err) 6179 ac_status=$? 6180 cat conftest.err >&5 6181 echo "$as_me:6181: \$? = $ac_status" >&5 6182 if (exit $ac_status) && test -s "$ac_outfile"; then 6183 # The compiler can only warn and ignore the option if not recognized 6184 # So say no if there are warnings other than the usual output. 6185 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6186 $SED '/^$/d' conftest.err >conftest.er2 6187 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6188 lt_cv_prog_compiler_rtti_exceptions=yes 6189 fi 6190 fi 6191 $rm conftest* 6192 6193fi 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6195$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 6196 6197if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6198 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6199else 6200 : 6201fi 6202 6203fi 6204 6205lt_prog_compiler_wl= 6206lt_prog_compiler_pic= 6207lt_prog_compiler_static= 6208 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 6210$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 6211 6212 if test "$GCC" = yes; then 6213 lt_prog_compiler_wl='-Wl,' 6214 lt_prog_compiler_static='-static' 6215 6216 case $host_os in 6217 aix*) 6218 # All AIX code is PIC. 6219 if test "$host_cpu" = ia64; then 6220 # AIX 5 now supports IA64 processor 6221 lt_prog_compiler_static='-Bstatic' 6222 fi 6223 ;; 6224 6225 amigaos*) 6226 # FIXME: we need at least 68020 code to build shared libraries, but 6227 # adding the `-m68020' flag to GCC prevents building anything better, 6228 # like `-m68040'. 6229 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6230 ;; 6231 6232 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6233 # PIC is the default for these OSes. 6234 ;; 6235 6236 mingw* | pw32* | os2*) 6237 # This hack is so that the source file can tell whether it is being 6238 # built for inclusion in a dll (and should export symbols for example). 6239 lt_prog_compiler_pic='-DDLL_EXPORT' 6240 ;; 6241 6242 darwin* | rhapsody*) 6243 # PIC is the default on this platform 6244 # Common symbols not allowed in MH_DYLIB files 6245 lt_prog_compiler_pic='-fno-common' 6246 ;; 6247 6248 msdosdjgpp*) 6249 # Just because we use GCC doesn't mean we suddenly get shared libraries 6250 # on systems that don't support them. 6251 lt_prog_compiler_can_build_shared=no 6252 enable_shared=no 6253 ;; 6254 6255 sysv4*MP*) 6256 if test -d /usr/nec; then 6257 lt_prog_compiler_pic=-Kconform_pic 6258 fi 6259 ;; 6260 6261 hpux*) 6262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6263 # not for PA HP-UX. 6264 case $host_cpu in 6265 hppa*64*|ia64*) 6266 # +Z the default 6267 ;; 6268 *) 6269 lt_prog_compiler_pic='-fPIC' 6270 ;; 6271 esac 6272 ;; 6273 6274 *) 6275 lt_prog_compiler_pic='-fPIC' 6276 ;; 6277 esac 6278 else 6279 # PORTME Check for flag to pass linker flags through the system compiler. 6280 case $host_os in 6281 aix*) 6282 lt_prog_compiler_wl='-Wl,' 6283 if test "$host_cpu" = ia64; then 6284 # AIX 5 now supports IA64 processor 6285 lt_prog_compiler_static='-Bstatic' 6286 else 6287 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6288 fi 6289 ;; 6290 darwin*) 6291 # PIC is the default on this platform 6292 # Common symbols not allowed in MH_DYLIB files 6293 case $cc_basename in 6294 xlc*) 6295 lt_prog_compiler_pic='-qnocommon' 6296 lt_prog_compiler_wl='-Wl,' 6297 ;; 6298 esac 6299 ;; 6300 6301 mingw* | pw32* | os2*) 6302 # This hack is so that the source file can tell whether it is being 6303 # built for inclusion in a dll (and should export symbols for example). 6304 lt_prog_compiler_pic='-DDLL_EXPORT' 6305 ;; 6306 6307 hpux9* | hpux10* | hpux11*) 6308 lt_prog_compiler_wl='-Wl,' 6309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6310 # not for PA HP-UX. 6311 case $host_cpu in 6312 hppa*64*|ia64*) 6313 # +Z the default 6314 ;; 6315 *) 6316 lt_prog_compiler_pic='+Z' 6317 ;; 6318 esac 6319 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6320 lt_prog_compiler_static='${wl}-a ${wl}archive' 6321 ;; 6322 6323 irix5* | irix6* | nonstopux*) 6324 lt_prog_compiler_wl='-Wl,' 6325 # PIC (with -KPIC) is the default. 6326 lt_prog_compiler_static='-non_shared' 6327 ;; 6328 6329 newsos6) 6330 lt_prog_compiler_pic='-KPIC' 6331 lt_prog_compiler_static='-Bstatic' 6332 ;; 6333 6334 linux*) 6335 case $cc_basename in 6336 icc* | ecc*) 6337 lt_prog_compiler_wl='-Wl,' 6338 lt_prog_compiler_pic='-KPIC' 6339 lt_prog_compiler_static='-static' 6340 ;; 6341 pgcc* | pgf77* | pgf90* | pgf95*) 6342 # Portland Group compilers (*not* the Pentium gcc compiler, 6343 # which looks to be a dead project) 6344 lt_prog_compiler_wl='-Wl,' 6345 lt_prog_compiler_pic='-fpic' 6346 lt_prog_compiler_static='-Bstatic' 6347 ;; 6348 ccc*) 6349 lt_prog_compiler_wl='-Wl,' 6350 # All Alpha code is PIC. 6351 lt_prog_compiler_static='-non_shared' 6352 ;; 6353 esac 6354 ;; 6355 6356 osf3* | osf4* | osf5*) 6357 lt_prog_compiler_wl='-Wl,' 6358 # All OSF/1 code is PIC. 6359 lt_prog_compiler_static='-non_shared' 6360 ;; 6361 6362 sco3.2v5*) 6363 lt_prog_compiler_pic='-Kpic' 6364 lt_prog_compiler_static='-dn' 6365 ;; 6366 6367 solaris*) 6368 lt_prog_compiler_pic='-KPIC' 6369 lt_prog_compiler_static='-Bstatic' 6370 case $cc_basename in 6371 f77* | f90* | f95*) 6372 lt_prog_compiler_wl='-Qoption ld ';; 6373 *) 6374 lt_prog_compiler_wl='-Wl,';; 6375 esac 6376 ;; 6377 6378 sunos4*) 6379 lt_prog_compiler_wl='-Qoption ld ' 6380 lt_prog_compiler_pic='-PIC' 6381 lt_prog_compiler_static='-Bstatic' 6382 ;; 6383 6384 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6385 lt_prog_compiler_wl='-Wl,' 6386 lt_prog_compiler_pic='-KPIC' 6387 lt_prog_compiler_static='-Bstatic' 6388 ;; 6389 6390 sysv4*MP*) 6391 if test -d /usr/nec ;then 6392 lt_prog_compiler_pic='-Kconform_pic' 6393 lt_prog_compiler_static='-Bstatic' 6394 fi 6395 ;; 6396 6397 unicos*) 6398 lt_prog_compiler_wl='-Wl,' 6399 lt_prog_compiler_can_build_shared=no 6400 ;; 6401 6402 uts4*) 6403 lt_prog_compiler_pic='-pic' 6404 lt_prog_compiler_static='-Bstatic' 6405 ;; 6406 6407 *) 6408 lt_prog_compiler_can_build_shared=no 6409 ;; 6410 esac 6411 fi 6412 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 6414$as_echo "$lt_prog_compiler_pic" >&6; } 6415 6416# 6417# Check to make sure the PIC flag actually works. 6418# 6419if test -n "$lt_prog_compiler_pic"; then 6420 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6422$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 6423if test "${lt_prog_compiler_pic_works+set}" = set; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 lt_prog_compiler_pic_works=no 6427 ac_outfile=conftest.$ac_objext 6428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6429 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6430 # Insert the option either (1) after the last *FLAGS variable, or 6431 # (2) before a word containing "conftest.", or (3) at the end. 6432 # Note that $ac_compile itself does not contain backslashes and begins 6433 # with a dollar sign (not a hyphen), so the echo should work correctly. 6434 # The option is referenced via a variable to avoid confusing sed. 6435 lt_compile=`echo "$ac_compile" | $SED \ 6436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6438 -e 's:$: $lt_compiler_flag:'` 6439 (eval echo "\"\$as_me:6439: $lt_compile\"" >&5) 6440 (eval "$lt_compile" 2>conftest.err) 6441 ac_status=$? 6442 cat conftest.err >&5 6443 echo "$as_me:6443: \$? = $ac_status" >&5 6444 if (exit $ac_status) && test -s "$ac_outfile"; then 6445 # The compiler can only warn and ignore the option if not recognized 6446 # So say no if there are warnings other than the usual output. 6447 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6448 $SED '/^$/d' conftest.err >conftest.er2 6449 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6450 lt_prog_compiler_pic_works=yes 6451 fi 6452 fi 6453 $rm conftest* 6454 6455fi 6456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5 6457$as_echo "$lt_prog_compiler_pic_works" >&6; } 6458 6459if test x"$lt_prog_compiler_pic_works" = xyes; then 6460 case $lt_prog_compiler_pic in 6461 "" | " "*) ;; 6462 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6463 esac 6464else 6465 lt_prog_compiler_pic= 6466 lt_prog_compiler_can_build_shared=no 6467fi 6468 6469fi 6470case $host_os in 6471 # For platforms which do not support PIC, -DPIC is meaningless: 6472 *djgpp*) 6473 lt_prog_compiler_pic= 6474 ;; 6475 *) 6476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6477 ;; 6478esac 6479 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 6481$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 6482if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 lt_cv_prog_compiler_c_o=no 6486 $rm -r conftest 2>/dev/null 6487 mkdir conftest 6488 cd conftest 6489 mkdir out 6490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6491 6492 lt_compiler_flag="-o out/conftest2.$ac_objext" 6493 # Insert the option either (1) after the last *FLAGS variable, or 6494 # (2) before a word containing "conftest.", or (3) at the end. 6495 # Note that $ac_compile itself does not contain backslashes and begins 6496 # with a dollar sign (not a hyphen), so the echo should work correctly. 6497 lt_compile=`echo "$ac_compile" | $SED \ 6498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6500 -e 's:$: $lt_compiler_flag:'` 6501 (eval echo "\"\$as_me:6501: $lt_compile\"" >&5) 6502 (eval "$lt_compile" 2>out/conftest.err) 6503 ac_status=$? 6504 cat out/conftest.err >&5 6505 echo "$as_me:6505: \$? = $ac_status" >&5 6506 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6507 then 6508 # The compiler can only warn and ignore the option if not recognized 6509 # So say no if there are warnings 6510 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6511 $SED '/^$/d' out/conftest.err >out/conftest.er2 6512 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6513 lt_cv_prog_compiler_c_o=yes 6514 fi 6515 fi 6516 chmod u+w . 2>&5 6517 $rm conftest* 6518 # SGI C++ compiler will create directory out/ii_files/ for 6519 # template instantiation 6520 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6521 $rm out/* && rmdir out 6522 cd .. 6523 rmdir conftest 6524 $rm conftest* 6525 6526fi 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 6528$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 6529 6530 6531hard_links="nottested" 6532if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6533 # do not overwrite the value of need_locks provided by the user 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 6535$as_echo_n "checking if we can lock with hard links... " >&6; } 6536 hard_links=yes 6537 $rm conftest* 6538 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6539 touch conftest.a 6540 ln conftest.a conftest.b 2>&5 || hard_links=no 6541 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 6543$as_echo "$hard_links" >&6; } 6544 if test "$hard_links" = no; then 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6546$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6547 need_locks=warn 6548 fi 6549else 6550 need_locks=no 6551fi 6552 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6554$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 6555 6556 runpath_var= 6557 allow_undefined_flag= 6558 enable_shared_with_static_runtimes=no 6559 archive_cmds= 6560 archive_expsym_cmds= 6561 old_archive_From_new_cmds= 6562 old_archive_from_expsyms_cmds= 6563 export_dynamic_flag_spec= 6564 whole_archive_flag_spec= 6565 thread_safe_flag_spec= 6566 hardcode_libdir_flag_spec= 6567 hardcode_libdir_flag_spec_ld= 6568 hardcode_libdir_separator= 6569 hardcode_direct=no 6570 hardcode_minus_L=no 6571 hardcode_shlibpath_var=unsupported 6572 link_all_deplibs=unknown 6573 hardcode_automatic=no 6574 module_cmds= 6575 module_expsym_cmds= 6576 always_export_symbols=no 6577 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6578 # include_expsyms should be a list of space-separated symbols to be *always* 6579 # included in the symbol list 6580 include_expsyms= 6581 # exclude_expsyms can be an extended regexp of symbols to exclude 6582 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6584 # as well as any symbol that contains `d'. 6585 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6587 # platforms (ab)use it in PIC code, but their linkers get confused if 6588 # the symbol is explicitly referenced. Since portable code cannot 6589 # rely on this symbol name, it's probably fine to never include it in 6590 # preloaded symbol tables. 6591 extract_expsyms_cmds= 6592 # Just being paranoid about ensuring that cc_basename is set. 6593 for cc_temp in $compiler""; do 6594 case $cc_temp in 6595 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6596 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6597 \-*) ;; 6598 *) break;; 6599 esac 6600done 6601cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6602 6603 case $host_os in 6604 cygwin* | mingw* | pw32*) 6605 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6606 # When not using gcc, we currently assume that we are using 6607 # Microsoft Visual C++. 6608 if test "$GCC" != yes; then 6609 with_gnu_ld=no 6610 fi 6611 ;; 6612 openbsd*) 6613 with_gnu_ld=no 6614 ;; 6615 esac 6616 6617 ld_shlibs=yes 6618 if test "$with_gnu_ld" = yes; then 6619 # If archive_cmds runs LD, not CC, wlarc should be empty 6620 wlarc='${wl}' 6621 6622 # Set some defaults for GNU ld with shared library support. These 6623 # are reset later if shared libraries are not supported. Putting them 6624 # here allows them to be overridden if necessary. 6625 runpath_var=LD_RUN_PATH 6626 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6627 export_dynamic_flag_spec='${wl}--export-dynamic' 6628 # ancient GNU ld didn't support --whole-archive et. al. 6629 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6630 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6631 else 6632 whole_archive_flag_spec= 6633 fi 6634 supports_anon_versioning=no 6635 case `$LD -v 2>/dev/null` in 6636 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6639 *\ 2.11.*) ;; # other 2.11 versions 6640 *) supports_anon_versioning=yes ;; 6641 esac 6642 6643 # See if GNU ld supports shared libraries. 6644 case $host_os in 6645 aix3* | aix4* | aix5*) 6646 # On AIX/PPC, the GNU linker is very broken 6647 if test "$host_cpu" != ia64; then 6648 ld_shlibs=no 6649 cat <<EOF 1>&2 6650 6651*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6652*** to be unable to reliably create shared libraries on AIX. 6653*** Therefore, libtool is disabling shared libraries support. If you 6654*** really care for shared libraries, you may want to modify your PATH 6655*** so that a non-GNU linker is found, and then restart. 6656 6657EOF 6658 fi 6659 ;; 6660 6661 amigaos*) 6662 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)' 6663 hardcode_libdir_flag_spec='-L$libdir' 6664 hardcode_minus_L=yes 6665 6666 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6667 # that the semantics of dynamic libraries on AmigaOS, at least up 6668 # to version 4, is to share data among multiple programs linked 6669 # with the same dynamic library. Since this doesn't match the 6670 # behavior of shared libraries on other platforms, we can't use 6671 # them. 6672 ld_shlibs=no 6673 ;; 6674 6675 beos*) 6676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6677 allow_undefined_flag=unsupported 6678 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6679 # support --undefined. This deserves some investigation. FIXME 6680 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6681 else 6682 ld_shlibs=no 6683 fi 6684 ;; 6685 6686 cygwin* | mingw* | pw32*) 6687 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6688 # as there is no search path for DLLs. 6689 hardcode_libdir_flag_spec='-L$libdir' 6690 allow_undefined_flag=unsupported 6691 always_export_symbols=no 6692 enable_shared_with_static_runtimes=yes 6693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6694 6695 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6697 # If the export-symbols file already is a .def file (1st line 6698 # is EXPORTS), use it as is; otherwise, prepend... 6699 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6700 cp $export_symbols $output_objdir/$soname.def; 6701 else 6702 echo EXPORTS > $output_objdir/$soname.def; 6703 cat $export_symbols >> $output_objdir/$soname.def; 6704 fi~ 6705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6706 else 6707 ld_shlibs=no 6708 fi 6709 ;; 6710 6711 linux*) 6712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6713 tmp_addflag= 6714 case $cc_basename,$host_cpu in 6715 pgcc*) # Portland Group C compiler 6716 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' 6717 tmp_addflag=' $pic_flag' 6718 ;; 6719 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6720 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' 6721 tmp_addflag=' $pic_flag -Mnomain' ;; 6722 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6723 tmp_addflag=' -i_dynamic' ;; 6724 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6725 tmp_addflag=' -i_dynamic -nofor_main' ;; 6726 ifc* | ifort*) # Intel Fortran compiler 6727 tmp_addflag=' -nofor_main' ;; 6728 esac 6729 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6730 6731 if test $supports_anon_versioning = yes; then 6732 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6734 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6735 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6736 fi 6737 else 6738 ld_shlibs=no 6739 fi 6740 ;; 6741 6742 netbsd*) 6743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6744 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6745 wlarc= 6746 else 6747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6748 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6749 fi 6750 ;; 6751 6752 solaris* | sysv5*) 6753 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6754 ld_shlibs=no 6755 cat <<EOF 1>&2 6756 6757*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6758*** create shared libraries on Solaris systems. Therefore, libtool 6759*** is disabling shared libraries support. We urge you to upgrade GNU 6760*** binutils to release 2.9.1 or newer. Another option is to modify 6761*** your PATH or compiler configuration so that the native linker is 6762*** used, and then restart. 6763 6764EOF 6765 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6768 else 6769 ld_shlibs=no 6770 fi 6771 ;; 6772 6773 sunos4*) 6774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6775 wlarc= 6776 hardcode_direct=yes 6777 hardcode_shlibpath_var=no 6778 ;; 6779 6780 *) 6781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6784 else 6785 ld_shlibs=no 6786 fi 6787 ;; 6788 esac 6789 6790 if test "$ld_shlibs" = no; then 6791 runpath_var= 6792 hardcode_libdir_flag_spec= 6793 export_dynamic_flag_spec= 6794 whole_archive_flag_spec= 6795 fi 6796 else 6797 # PORTME fill in a description of your system's linker (not GNU ld) 6798 case $host_os in 6799 aix3*) 6800 allow_undefined_flag=unsupported 6801 always_export_symbols=yes 6802 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' 6803 # Note: this linker hardcodes the directories in LIBPATH if there 6804 # are no directories specified by -L. 6805 hardcode_minus_L=yes 6806 if test "$GCC" = yes && test -z "$link_static_flag"; then 6807 # Neither direct hardcoding nor static linking is supported with a 6808 # broken collect2. 6809 hardcode_direct=unsupported 6810 fi 6811 ;; 6812 6813 aix4* | aix5*) 6814 if test "$host_cpu" = ia64; then 6815 # On IA64, the linker does run time linking by default, so we don't 6816 # have to do anything special. 6817 aix_use_runtimelinking=no 6818 exp_sym_flag='-Bexport' 6819 no_entry_flag="" 6820 else 6821 # If we're using GNU nm, then we don't want the "-C" option. 6822 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6824 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' 6825 else 6826 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' 6827 fi 6828 aix_use_runtimelinking=no 6829 6830 # Test if we are trying to use run time linking or normal 6831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6832 # need to do runtime linking. 6833 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6834 for ld_flag in $LDFLAGS; do 6835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6836 aix_use_runtimelinking=yes 6837 break 6838 fi 6839 done 6840 esac 6841 6842 exp_sym_flag='-bexport' 6843 no_entry_flag='-bnoentry' 6844 fi 6845 6846 # When large executables or shared objects are built, AIX ld can 6847 # have problems creating the table of contents. If linking a library 6848 # or program results in "error TOC overflow" add -mminimal-toc to 6849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6851 6852 archive_cmds='' 6853 hardcode_direct=yes 6854 hardcode_libdir_separator=':' 6855 link_all_deplibs=yes 6856 6857 if test "$GCC" = yes; then 6858 case $host_os in aix4.[012]|aix4.[012].*) 6859 # We only want to do this on AIX 4.2 and lower, the check 6860 # below for broken collect2 doesn't work under 4.3+ 6861 collect2name=`${CC} -print-prog-name=collect2` 6862 if test -f "$collect2name" && \ 6863 strings "$collect2name" | grep resolve_lib_name >/dev/null 6864 then 6865 # We have reworked collect2 6866 hardcode_direct=yes 6867 else 6868 # We have old collect2 6869 hardcode_direct=unsupported 6870 # It fails to find uninstalled libraries when the uninstalled 6871 # path is not listed in the libpath. Setting hardcode_minus_L 6872 # to unsupported forces relinking 6873 hardcode_minus_L=yes 6874 hardcode_libdir_flag_spec='-L$libdir' 6875 hardcode_libdir_separator= 6876 fi 6877 esac 6878 shared_flag='-shared' 6879 if test "$aix_use_runtimelinking" = yes; then 6880 shared_flag="$shared_flag "'${wl}-G' 6881 fi 6882 else 6883 # not using gcc 6884 if test "$host_cpu" = ia64; then 6885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6886 # chokes on -Wl,-G. The following line is correct: 6887 shared_flag='-G' 6888 else 6889 if test "$aix_use_runtimelinking" = yes; then 6890 shared_flag='${wl}-G' 6891 else 6892 shared_flag='${wl}-bM:SRE' 6893 fi 6894 fi 6895 fi 6896 6897 # It seems that -bexpall does not export symbols beginning with 6898 # underscore (_), so it is better to generate a list of symbols to export. 6899 always_export_symbols=yes 6900 if test "$aix_use_runtimelinking" = yes; then 6901 # Warning - without using the other runtime loading flags (-brtl), 6902 # -berok will link without error, but may produce a broken library. 6903 allow_undefined_flag='-berok' 6904 # Determine the default libpath from the value encoded in an empty executable. 6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6906/* end confdefs.h. */ 6907 6908int 6909main () 6910{ 6911 6912 ; 6913 return 0; 6914} 6915_ACEOF 6916if ac_fn_c_try_link "$LINENO"; then : 6917 6918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6919}'` 6920# Check for a 64-bit object if we didn't find anything. 6921if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6922}'`; fi 6923fi 6924rm -f core conftest.err conftest.$ac_objext \ 6925 conftest$ac_exeext conftest.$ac_ext 6926if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6927 6928 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6929 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6930 else 6931 if test "$host_cpu" = ia64; then 6932 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6933 allow_undefined_flag="-z nodefs" 6934 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6935 else 6936 # Determine the default libpath from the value encoded in an empty executable. 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939 6940int 6941main () 6942{ 6943 6944 ; 6945 return 0; 6946} 6947_ACEOF 6948if ac_fn_c_try_link "$LINENO"; then : 6949 6950aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6951}'` 6952# Check for a 64-bit object if we didn't find anything. 6953if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6954}'`; fi 6955fi 6956rm -f core conftest.err conftest.$ac_objext \ 6957 conftest$ac_exeext conftest.$ac_ext 6958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6959 6960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6961 # Warning - without using the other run time loading flags, 6962 # -berok will link without error, but may produce a broken library. 6963 no_undefined_flag=' ${wl}-bernotok' 6964 allow_undefined_flag=' ${wl}-berok' 6965 # -bexpall does not export symbols beginning with underscore (_) 6966 always_export_symbols=yes 6967 # Exported symbols can be pulled into shared objects from archives 6968 whole_archive_flag_spec=' ' 6969 archive_cmds_need_lc=yes 6970 # This is similar to how AIX traditionally builds its shared libraries. 6971 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6972 fi 6973 fi 6974 ;; 6975 6976 amigaos*) 6977 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)' 6978 hardcode_libdir_flag_spec='-L$libdir' 6979 hardcode_minus_L=yes 6980 # see comment about different semantics on the GNU ld section 6981 ld_shlibs=no 6982 ;; 6983 6984 bsdi[45]*) 6985 export_dynamic_flag_spec=-rdynamic 6986 ;; 6987 6988 cygwin* | mingw* | pw32*) 6989 # When not using gcc, we currently assume that we are using 6990 # Microsoft Visual C++. 6991 # hardcode_libdir_flag_spec is actually meaningless, as there is 6992 # no search path for DLLs. 6993 hardcode_libdir_flag_spec=' ' 6994 allow_undefined_flag=unsupported 6995 # Tell ltmain to make .lib files, not .a files. 6996 libext=lib 6997 # Tell ltmain to make .dll files, not .so files. 6998 shrext_cmds=".dll" 6999 # FIXME: Setting linknames here is a bad hack. 7000 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7001 # The linker will automatically build a .lib file if we build a DLL. 7002 old_archive_From_new_cmds='true' 7003 # FIXME: Should let the user specify the lib program. 7004 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7005 fix_srcfile_path='`cygpath -w "$srcfile"`' 7006 enable_shared_with_static_runtimes=yes 7007 ;; 7008 7009 darwin* | rhapsody*) 7010 case $host_os in 7011 rhapsody* | darwin1.[012]) 7012 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7013 ;; 7014 *) # Darwin 1.3 on 7015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7016 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7017 else 7018 case ${MACOSX_DEPLOYMENT_TARGET} in 7019 10.[012]) 7020 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7021 ;; 7022 10.*) 7023 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7024 ;; 7025 esac 7026 fi 7027 ;; 7028 esac 7029 archive_cmds_need_lc=no 7030 hardcode_direct=no 7031 hardcode_automatic=yes 7032 hardcode_shlibpath_var=unsupported 7033 whole_archive_flag_spec='' 7034 link_all_deplibs=yes 7035 if test "$GCC" = yes ; then 7036 output_verbose_link_cmd='echo' 7037 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7038 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7040 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7041 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7042 else 7043 case $cc_basename in 7044 xlc*) 7045 output_verbose_link_cmd='echo' 7046 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7047 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7049 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7050 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7051 ;; 7052 *) 7053 ld_shlibs=no 7054 ;; 7055 esac 7056 fi 7057 ;; 7058 7059 dgux*) 7060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7061 hardcode_libdir_flag_spec='-L$libdir' 7062 hardcode_shlibpath_var=no 7063 ;; 7064 7065 freebsd1*) 7066 ld_shlibs=no 7067 ;; 7068 7069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7070 # support. Future versions do this automatically, but an explicit c++rt0.o 7071 # does not break anything, and helps significantly (at the cost of a little 7072 # extra space). 7073 freebsd2.2*) 7074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7075 hardcode_libdir_flag_spec='-R$libdir' 7076 hardcode_direct=yes 7077 hardcode_shlibpath_var=no 7078 ;; 7079 7080 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7081 freebsd2*) 7082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7083 hardcode_direct=yes 7084 hardcode_minus_L=yes 7085 hardcode_shlibpath_var=no 7086 ;; 7087 7088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7089 freebsd* | kfreebsd*-gnu | dragonfly*) 7090 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7091 hardcode_libdir_flag_spec='-R$libdir' 7092 hardcode_direct=yes 7093 hardcode_shlibpath_var=no 7094 ;; 7095 7096 hpux9*) 7097 if test "$GCC" = yes; then 7098 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' 7099 else 7100 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' 7101 fi 7102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7103 hardcode_libdir_separator=: 7104 hardcode_direct=yes 7105 7106 # hardcode_minus_L: Not really in the search PATH, 7107 # but as the default location of the library. 7108 hardcode_minus_L=yes 7109 export_dynamic_flag_spec='${wl}-E' 7110 ;; 7111 7112 hpux10* | hpux11*) 7113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7114 case $host_cpu in 7115 hppa*64*|ia64*) 7116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7117 ;; 7118 *) 7119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7120 ;; 7121 esac 7122 else 7123 case $host_cpu in 7124 hppa*64*|ia64*) 7125 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7126 ;; 7127 *) 7128 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7129 ;; 7130 esac 7131 fi 7132 if test "$with_gnu_ld" = no; then 7133 case $host_cpu in 7134 hppa*64*) 7135 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7136 hardcode_libdir_flag_spec_ld='+b $libdir' 7137 hardcode_libdir_separator=: 7138 hardcode_direct=no 7139 hardcode_shlibpath_var=no 7140 ;; 7141 ia64*) 7142 hardcode_libdir_flag_spec='-L$libdir' 7143 hardcode_direct=no 7144 hardcode_shlibpath_var=no 7145 7146 # hardcode_minus_L: Not really in the search PATH, 7147 # but as the default location of the library. 7148 hardcode_minus_L=yes 7149 ;; 7150 *) 7151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7152 hardcode_libdir_separator=: 7153 hardcode_direct=yes 7154 export_dynamic_flag_spec='${wl}-E' 7155 7156 # hardcode_minus_L: Not really in the search PATH, 7157 # but as the default location of the library. 7158 hardcode_minus_L=yes 7159 ;; 7160 esac 7161 fi 7162 ;; 7163 7164 irix5* | irix6* | nonstopux*) 7165 if test "$GCC" = yes; then 7166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7167 else 7168 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7169 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7170 fi 7171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7172 hardcode_libdir_separator=: 7173 link_all_deplibs=yes 7174 ;; 7175 7176 netbsd*) 7177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7179 else 7180 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7181 fi 7182 hardcode_libdir_flag_spec='-R$libdir' 7183 hardcode_direct=yes 7184 hardcode_shlibpath_var=no 7185 ;; 7186 7187 newsos6) 7188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7189 hardcode_direct=yes 7190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7191 hardcode_libdir_separator=: 7192 hardcode_shlibpath_var=no 7193 ;; 7194 7195 openbsd*) 7196 hardcode_direct=yes 7197 hardcode_shlibpath_var=no 7198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7202 export_dynamic_flag_spec='${wl}-E' 7203 else 7204 case $host_os in 7205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7207 hardcode_libdir_flag_spec='-R$libdir' 7208 ;; 7209 *) 7210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7212 ;; 7213 esac 7214 fi 7215 ;; 7216 7217 os2*) 7218 hardcode_libdir_flag_spec='-L$libdir' 7219 hardcode_minus_L=yes 7220 allow_undefined_flag=unsupported 7221 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' 7222 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7223 ;; 7224 7225 osf3*) 7226 if test "$GCC" = yes; then 7227 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7228 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7229 else 7230 allow_undefined_flag=' -expect_unresolved \*' 7231 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7232 fi 7233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7234 hardcode_libdir_separator=: 7235 ;; 7236 7237 osf4* | osf5*) # as osf3* with the addition of -msym flag 7238 if test "$GCC" = yes; then 7239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7240 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7242 else 7243 allow_undefined_flag=' -expect_unresolved \*' 7244 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7245 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7246 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7247 7248 # Both c and cxx compiler support -rpath directly 7249 hardcode_libdir_flag_spec='-rpath $libdir' 7250 fi 7251 hardcode_libdir_separator=: 7252 ;; 7253 7254 sco3.2v5*) 7255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7256 hardcode_shlibpath_var=no 7257 export_dynamic_flag_spec='${wl}-Bexport' 7258 runpath_var=LD_RUN_PATH 7259 hardcode_runpath_var=yes 7260 ;; 7261 7262 solaris*) 7263 no_undefined_flag=' -z text' 7264 if test "$GCC" = yes; then 7265 wlarc='${wl}' 7266 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7267 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7268 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7269 else 7270 wlarc='' 7271 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7272 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7273 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7274 fi 7275 hardcode_libdir_flag_spec='-R$libdir' 7276 hardcode_shlibpath_var=no 7277 case $host_os in 7278 solaris2.[0-5] | solaris2.[0-5].*) ;; 7279 *) 7280 # The compiler driver will combine linker options so we 7281 # cannot just pass the convience library names through 7282 # without $wl, iff we do not link with $LD. 7283 # Luckily, gcc supports the same syntax we need for Sun Studio. 7284 # Supported since Solaris 2.6 (maybe 2.5.1?) 7285 case $wlarc in 7286 '') 7287 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7288 *) 7289 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7290 esac ;; 7291 esac 7292 link_all_deplibs=yes 7293 ;; 7294 7295 sunos4*) 7296 if test "x$host_vendor" = xsequent; then 7297 # Use $CC to link under sequent, because it throws in some extra .o 7298 # files that make .init and .fini sections work. 7299 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7300 else 7301 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7302 fi 7303 hardcode_libdir_flag_spec='-L$libdir' 7304 hardcode_direct=yes 7305 hardcode_minus_L=yes 7306 hardcode_shlibpath_var=no 7307 ;; 7308 7309 sysv4) 7310 case $host_vendor in 7311 sni) 7312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7313 hardcode_direct=yes # is this really true??? 7314 ;; 7315 siemens) 7316 ## LD is ld it makes a PLAMLIB 7317 ## CC just makes a GrossModule. 7318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7319 reload_cmds='$CC -r -o $output$reload_objs' 7320 hardcode_direct=no 7321 ;; 7322 motorola) 7323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7324 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7325 ;; 7326 esac 7327 runpath_var='LD_RUN_PATH' 7328 hardcode_shlibpath_var=no 7329 ;; 7330 7331 sysv4.3*) 7332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7333 hardcode_shlibpath_var=no 7334 export_dynamic_flag_spec='-Bexport' 7335 ;;