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 ;; 7336 7337 sysv4*MP*) 7338 if test -d /usr/nec; then 7339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7340 hardcode_shlibpath_var=no 7341 runpath_var=LD_RUN_PATH 7342 hardcode_runpath_var=yes 7343 ld_shlibs=yes 7344 fi 7345 ;; 7346 7347 sysv4.2uw2*) 7348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7349 hardcode_direct=yes 7350 hardcode_minus_L=no 7351 hardcode_shlibpath_var=no 7352 hardcode_runpath_var=yes 7353 runpath_var=LD_RUN_PATH 7354 ;; 7355 7356 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7357 no_undefined_flag='${wl}-z ${wl}text' 7358 if test "$GCC" = yes; then 7359 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7360 else 7361 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7362 fi 7363 runpath_var='LD_RUN_PATH' 7364 hardcode_shlibpath_var=no 7365 ;; 7366 7367 sysv5*) 7368 no_undefined_flag=' -z text' 7369 # $CC -shared without GNU ld will not create a library from C++ 7370 # object files and a static libstdc++, better avoid it by now 7371 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7372 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7373 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7374 hardcode_libdir_flag_spec= 7375 hardcode_shlibpath_var=no 7376 runpath_var='LD_RUN_PATH' 7377 ;; 7378 7379 uts4*) 7380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7381 hardcode_libdir_flag_spec='-L$libdir' 7382 hardcode_shlibpath_var=no 7383 ;; 7384 7385 *) 7386 ld_shlibs=no 7387 ;; 7388 esac 7389 fi 7390 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 7392$as_echo "$ld_shlibs" >&6; } 7393test "$ld_shlibs" = no && can_build_shared=no 7394 7395variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7396if test "$GCC" = yes; then 7397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7398fi 7399 7400# 7401# Do we need to explicitly link libc? 7402# 7403case "x$archive_cmds_need_lc" in 7404x|xyes) 7405 # Assume -lc should be added 7406 archive_cmds_need_lc=yes 7407 7408 if test "$enable_shared" = yes && test "$GCC" = yes; then 7409 case $archive_cmds in 7410 *'~'*) 7411 # FIXME: we may have to deal with multi-command sequences. 7412 ;; 7413 '$CC '*) 7414 # Test whether the compiler implicitly links with -lc since on some 7415 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7416 # to ld, don't add -lc before -lgcc. 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 7418$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 7419 $rm conftest* 7420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7421 7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7423 (eval $ac_compile) 2>&5 7424 ac_status=$? 7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7426 test $ac_status = 0; } 2>conftest.err; then 7427 soname=conftest 7428 lib=conftest 7429 libobjs=conftest.$ac_objext 7430 deplibs= 7431 wl=$lt_prog_compiler_wl 7432 compiler_flags=-v 7433 linker_flags=-v 7434 verstring= 7435 output_objdir=. 7436 libname=conftest 7437 lt_save_allow_undefined_flag=$allow_undefined_flag 7438 allow_undefined_flag= 7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 7440 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7441 ac_status=$? 7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7443 test $ac_status = 0; } 7444 then 7445 archive_cmds_need_lc=no 7446 else 7447 archive_cmds_need_lc=yes 7448 fi 7449 allow_undefined_flag=$lt_save_allow_undefined_flag 7450 else 7451 cat conftest.err 1>&5 7452 fi 7453 $rm conftest* 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 7455$as_echo "$archive_cmds_need_lc" >&6; } 7456 ;; 7457 esac 7458 fi 7459 ;; 7460esac 7461 7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 7463$as_echo_n "checking dynamic linker characteristics... " >&6; } 7464library_names_spec= 7465libname_spec='lib$name' 7466soname_spec= 7467shrext_cmds=".so" 7468postinstall_cmds= 7469postuninstall_cmds= 7470finish_cmds= 7471finish_eval= 7472shlibpath_var= 7473shlibpath_overrides_runpath=unknown 7474version_type=none 7475dynamic_linker="$host_os ld.so" 7476sys_lib_dlsearch_path_spec="/lib /usr/lib" 7477if test "$GCC" = yes; then 7478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7480 # if the path contains ";" then we assume it to be the separator 7481 # otherwise default to the standard path separator (i.e. ":") - it is 7482 # assumed that no part of a normal pathname contains ";" but that should 7483 # okay in the real world where ";" in dirpaths is itself problematic. 7484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7485 else 7486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7487 fi 7488else 7489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7490fi 7491need_lib_prefix=unknown 7492hardcode_into_libs=no 7493 7494# when you set need_version to no, make sure it does not cause -set_version 7495# flags to be left without arguments 7496need_version=unknown 7497 7498case $host_os in 7499aix3*) 7500 version_type=linux 7501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7502 shlibpath_var=LIBPATH 7503 7504 # AIX 3 has no versioning support, so we append a major version to the name. 7505 soname_spec='${libname}${release}${shared_ext}$major' 7506 ;; 7507 7508aix4* | aix5*) 7509 version_type=linux 7510 need_lib_prefix=no 7511 need_version=no 7512 hardcode_into_libs=yes 7513 if test "$host_cpu" = ia64; then 7514 # AIX 5 supports IA64 7515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7516 shlibpath_var=LD_LIBRARY_PATH 7517 else 7518 # With GCC up to 2.95.x, collect2 would create an import file 7519 # for dependence libraries. The import file would start with 7520 # the line `#! .'. This would cause the generated library to 7521 # depend on `.', always an invalid library. This was fixed in 7522 # development snapshots of GCC prior to 3.0. 7523 case $host_os in 7524 aix4 | aix4.[01] | aix4.[01].*) 7525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7526 echo ' yes ' 7527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7528 : 7529 else 7530 can_build_shared=no 7531 fi 7532 ;; 7533 esac 7534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7535 # soname into executable. Probably we can add versioning support to 7536 # collect2, so additional links can be useful in future. 7537 if test "$aix_use_runtimelinking" = yes; then 7538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7539 # instead of lib<name>.a to let people know that these are not 7540 # typical AIX shared libraries. 7541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7542 else 7543 # We preserve .a as extension for shared libraries through AIX4.2 7544 # and later when we are not doing run time linking. 7545 library_names_spec='${libname}${release}.a $libname.a' 7546 soname_spec='${libname}${release}${shared_ext}$major' 7547 fi 7548 shlibpath_var=LIBPATH 7549 fi 7550 ;; 7551 7552amigaos*) 7553 library_names_spec='$libname.ixlibrary $libname.a' 7554 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7555 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 7556 ;; 7557 7558beos*) 7559 library_names_spec='${libname}${shared_ext}' 7560 dynamic_linker="$host_os ld.so" 7561 shlibpath_var=LIBRARY_PATH 7562 ;; 7563 7564bsdi[45]*) 7565 version_type=linux 7566 need_version=no 7567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7568 soname_spec='${libname}${release}${shared_ext}$major' 7569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7570 shlibpath_var=LD_LIBRARY_PATH 7571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7573 # the default ld.so.conf also contains /usr/contrib/lib and 7574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7575 # libtool to hard-code these into programs 7576 ;; 7577 7578cygwin* | mingw* | pw32*) 7579 version_type=windows 7580 shrext_cmds=".dll" 7581 need_version=no 7582 need_lib_prefix=no 7583 7584 case $GCC,$host_os in 7585 yes,cygwin* | yes,mingw* | yes,pw32*) 7586 library_names_spec='$libname.dll.a' 7587 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7588 postinstall_cmds='base_file=`basename \${file}`~ 7589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7590 dldir=$destdir/`dirname \$dlpath`~ 7591 test -d \$dldir || mkdir -p \$dldir~ 7592 $install_prog $dir/$dlname \$dldir/$dlname~ 7593 chmod a+x \$dldir/$dlname' 7594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7595 dlpath=$dir/\$dldll~ 7596 $rm \$dlpath' 7597 shlibpath_overrides_runpath=yes 7598 7599 case $host_os in 7600 cygwin*) 7601 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7604 ;; 7605 mingw*) 7606 # MinGW DLLs use traditional 'lib' prefix 7607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7610 # It is most probably a Windows format PATH printed by 7611 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7612 # path with ; separators, and with drive letters. We can handle the 7613 # drive letters (cygwin fileutils understands them), so leave them, 7614 # especially as we might pass files found there to a mingw objdump, 7615 # which wouldn't understand a cygwinified path. Ahh. 7616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7617 else 7618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7619 fi 7620 ;; 7621 pw32*) 7622 # pw32 DLLs use 'pw' prefix rather than 'lib' 7623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7624 ;; 7625 esac 7626 ;; 7627 7628 *) 7629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7630 ;; 7631 esac 7632 dynamic_linker='Win32 ld.exe' 7633 # FIXME: first we should search . and the directory the executable is in 7634 shlibpath_var=PATH 7635 ;; 7636 7637darwin* | rhapsody*) 7638 dynamic_linker="$host_os dyld" 7639 version_type=darwin 7640 need_lib_prefix=no 7641 need_version=no 7642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7643 soname_spec='${libname}${release}${major}$shared_ext' 7644 shlibpath_overrides_runpath=yes 7645 shlibpath_var=DYLD_LIBRARY_PATH 7646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7648 if test "$GCC" = yes; then 7649 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 7650 else 7651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7652 fi 7653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7654 ;; 7655 7656dgux*) 7657 version_type=linux 7658 need_lib_prefix=no 7659 need_version=no 7660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7661 soname_spec='${libname}${release}${shared_ext}$major' 7662 shlibpath_var=LD_LIBRARY_PATH 7663 ;; 7664 7665freebsd1*) 7666 dynamic_linker=no 7667 ;; 7668 7669kfreebsd*-gnu) 7670 version_type=linux 7671 need_lib_prefix=no 7672 need_version=no 7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7674 soname_spec='${libname}${release}${shared_ext}$major' 7675 shlibpath_var=LD_LIBRARY_PATH 7676 shlibpath_overrides_runpath=no 7677 hardcode_into_libs=yes 7678 dynamic_linker='GNU ld.so' 7679 ;; 7680 7681freebsd* | dragonfly*) 7682 # DragonFly does not have aout. When/if they implement a new 7683 # versioning mechanism, adjust this. 7684 if test -x /usr/bin/objformat; then 7685 objformat=`/usr/bin/objformat` 7686 else 7687 case $host_os in 7688 freebsd[123]*) objformat=aout ;; 7689 *) objformat=elf ;; 7690 esac 7691 fi 7692 version_type=freebsd-$objformat 7693 case $version_type in 7694 freebsd-elf*) 7695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7696 need_version=no 7697 need_lib_prefix=no 7698 ;; 7699 freebsd-*) 7700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7701 need_version=yes 7702 ;; 7703 esac 7704 shlibpath_var=LD_LIBRARY_PATH 7705 case $host_os in 7706 freebsd2*) 7707 shlibpath_overrides_runpath=yes 7708 ;; 7709 freebsd3.[01]* | freebsdelf3.[01]*) 7710 shlibpath_overrides_runpath=yes 7711 hardcode_into_libs=yes 7712 ;; 7713 *) # from 3.2 on 7714 shlibpath_overrides_runpath=no 7715 hardcode_into_libs=yes 7716 ;; 7717 esac 7718 ;; 7719 7720gnu*) 7721 version_type=linux 7722 need_lib_prefix=no 7723 need_version=no 7724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7725 soname_spec='${libname}${release}${shared_ext}$major' 7726 shlibpath_var=LD_LIBRARY_PATH 7727 hardcode_into_libs=yes 7728 ;; 7729 7730hpux9* | hpux10* | hpux11*) 7731 # Give a soname corresponding to the major version so that dld.sl refuses to 7732 # link against other versions. 7733 version_type=sunos 7734 need_lib_prefix=no 7735 need_version=no 7736 case $host_cpu in 7737 ia64*) 7738 shrext_cmds='.so' 7739 hardcode_into_libs=yes 7740 dynamic_linker="$host_os dld.so" 7741 shlibpath_var=LD_LIBRARY_PATH 7742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7744 soname_spec='${libname}${release}${shared_ext}$major' 7745 if test "X$HPUX_IA64_MODE" = X32; then 7746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7747 else 7748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7749 fi 7750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7751 ;; 7752 hppa*64*) 7753 shrext_cmds='.sl' 7754 hardcode_into_libs=yes 7755 dynamic_linker="$host_os dld.sl" 7756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7759 soname_spec='${libname}${release}${shared_ext}$major' 7760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7762 ;; 7763 *) 7764 shrext_cmds='.sl' 7765 dynamic_linker="$host_os dld.sl" 7766 shlibpath_var=SHLIB_PATH 7767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7769 soname_spec='${libname}${release}${shared_ext}$major' 7770 ;; 7771 esac 7772 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7773 postinstall_cmds='chmod 555 $lib' 7774 ;; 7775 7776irix5* | irix6* | nonstopux*) 7777 case $host_os in 7778 nonstopux*) version_type=nonstopux ;; 7779 *) 7780 if test "$lt_cv_prog_gnu_ld" = yes; then 7781 version_type=linux 7782 else 7783 version_type=irix 7784 fi ;; 7785 esac 7786 need_lib_prefix=no 7787 need_version=no 7788 soname_spec='${libname}${release}${shared_ext}$major' 7789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7790 case $host_os in 7791 irix5* | nonstopux*) 7792 libsuff= shlibsuff= 7793 ;; 7794 *) 7795 case $LD in # libtool.m4 will add one of these switches to LD 7796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7797 libsuff= shlibsuff= libmagic=32-bit;; 7798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7799 libsuff=32 shlibsuff=N32 libmagic=N32;; 7800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7801 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7802 *) libsuff= shlibsuff= libmagic=never-match;; 7803 esac 7804 ;; 7805 esac 7806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7807 shlibpath_overrides_runpath=no 7808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7810 hardcode_into_libs=yes 7811 ;; 7812 7813# No shared lib support for Linux oldld, aout, or coff. 7814linux*oldld* | linux*aout* | linux*coff*) 7815 dynamic_linker=no 7816 ;; 7817 7818# This must be Linux ELF. 7819linux*) 7820 version_type=linux 7821 need_lib_prefix=no 7822 need_version=no 7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7824 soname_spec='${libname}${release}${shared_ext}$major' 7825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7826 shlibpath_var=LD_LIBRARY_PATH 7827 shlibpath_overrides_runpath=no 7828 # This implies no fast_install, which is unacceptable. 7829 # Some rework will be needed to allow for fast_install 7830 # before this can be enabled. 7831 hardcode_into_libs=yes 7832 7833 # Append ld.so.conf contents to the search path 7834 if test -f /etc/ld.so.conf; then 7835 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 7836 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7837 fi 7838 7839 # We used to test for /lib/ld.so.1 and disable shared libraries on 7840 # powerpc, because MkLinux only supported shared libraries with the 7841 # GNU dynamic linker. Since this was broken with cross compilers, 7842 # most powerpc-linux boxes support dynamic linking these days and 7843 # people can always --disable-shared, the test was removed, and we 7844 # assume the GNU/Linux dynamic linker is in use. 7845 dynamic_linker='GNU/Linux ld.so' 7846 ;; 7847 7848knetbsd*-gnu) 7849 version_type=linux 7850 need_lib_prefix=no 7851 need_version=no 7852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7853 soname_spec='${libname}${release}${shared_ext}$major' 7854 shlibpath_var=LD_LIBRARY_PATH 7855 shlibpath_overrides_runpath=no 7856 hardcode_into_libs=yes 7857 dynamic_linker='GNU ld.so' 7858 ;; 7859 7860netbsd*) 7861 version_type=sunos 7862 need_lib_prefix=no 7863 need_version=no 7864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7867 dynamic_linker='NetBSD (a.out) ld.so' 7868 else 7869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7870 soname_spec='${libname}${release}${shared_ext}$major' 7871 dynamic_linker='NetBSD ld.elf_so' 7872 fi 7873 shlibpath_var=LD_LIBRARY_PATH 7874 shlibpath_overrides_runpath=yes 7875 hardcode_into_libs=yes 7876 ;; 7877 7878newsos6) 7879 version_type=linux 7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7881 shlibpath_var=LD_LIBRARY_PATH 7882 shlibpath_overrides_runpath=yes 7883 ;; 7884 7885nto-qnx*) 7886 version_type=linux 7887 need_lib_prefix=no 7888 need_version=no 7889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7890 soname_spec='${libname}${release}${shared_ext}$major' 7891 shlibpath_var=LD_LIBRARY_PATH 7892 shlibpath_overrides_runpath=yes 7893 ;; 7894 7895openbsd*) 7896 version_type=sunos 7897 need_lib_prefix=no 7898 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 7899 case $host_os in 7900 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 7901 *) need_version=no ;; 7902 esac 7903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7905 shlibpath_var=LD_LIBRARY_PATH 7906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7907 case $host_os in 7908 openbsd2.[89] | openbsd2.[89].*) 7909 shlibpath_overrides_runpath=no 7910 ;; 7911 *) 7912 shlibpath_overrides_runpath=yes 7913 ;; 7914 esac 7915 else 7916 shlibpath_overrides_runpath=yes 7917 fi 7918 ;; 7919 7920os2*) 7921 libname_spec='$name' 7922 shrext_cmds=".dll" 7923 need_lib_prefix=no 7924 library_names_spec='$libname${shared_ext} $libname.a' 7925 dynamic_linker='OS/2 ld.exe' 7926 shlibpath_var=LIBPATH 7927 ;; 7928 7929osf3* | osf4* | osf5*) 7930 version_type=osf 7931 need_lib_prefix=no 7932 need_version=no 7933 soname_spec='${libname}${release}${shared_ext}$major' 7934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7935 shlibpath_var=LD_LIBRARY_PATH 7936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7938 ;; 7939 7940sco3.2v5*) 7941 version_type=osf 7942 soname_spec='${libname}${release}${shared_ext}$major' 7943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7944 shlibpath_var=LD_LIBRARY_PATH 7945 ;; 7946 7947solaris*) 7948 version_type=linux 7949 need_lib_prefix=no 7950 need_version=no 7951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7952 soname_spec='${libname}${release}${shared_ext}$major' 7953 shlibpath_var=LD_LIBRARY_PATH 7954 shlibpath_overrides_runpath=yes 7955 hardcode_into_libs=yes 7956 # ldd complains unless libraries are executable 7957 postinstall_cmds='chmod +x $lib' 7958 ;; 7959 7960sunos4*) 7961 version_type=sunos 7962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7964 shlibpath_var=LD_LIBRARY_PATH 7965 shlibpath_overrides_runpath=yes 7966 if test "$with_gnu_ld" = yes; then 7967 need_lib_prefix=no 7968 fi 7969 need_version=yes 7970 ;; 7971 7972sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7973 version_type=linux 7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7975 soname_spec='${libname}${release}${shared_ext}$major' 7976 shlibpath_var=LD_LIBRARY_PATH 7977 case $host_vendor in 7978 sni) 7979 shlibpath_overrides_runpath=no 7980 need_lib_prefix=no 7981 export_dynamic_flag_spec='${wl}-Blargedynsym' 7982 runpath_var=LD_RUN_PATH 7983 ;; 7984 siemens) 7985 need_lib_prefix=no 7986 ;; 7987 motorola) 7988 need_lib_prefix=no 7989 need_version=no 7990 shlibpath_overrides_runpath=no 7991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7992 ;; 7993 esac 7994 ;; 7995 7996sysv4*MP*) 7997 if test -d /usr/nec ;then 7998 version_type=linux 7999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8000 soname_spec='$libname${shared_ext}.$major' 8001 shlibpath_var=LD_LIBRARY_PATH 8002 fi 8003 ;; 8004 8005uts4*) 8006 version_type=linux 8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8008 soname_spec='${libname}${release}${shared_ext}$major' 8009 shlibpath_var=LD_LIBRARY_PATH 8010 ;; 8011 8012*) 8013 dynamic_linker=no 8014 ;; 8015esac 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 8017$as_echo "$dynamic_linker" >&6; } 8018test "$dynamic_linker" = no && can_build_shared=no 8019 8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 8021$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 8022hardcode_action= 8023if test -n "$hardcode_libdir_flag_spec" || \ 8024 test -n "$runpath_var" || \ 8025 test "X$hardcode_automatic" = "Xyes" ; then 8026 8027 # We can hardcode non-existant directories. 8028 if test "$hardcode_direct" != no && 8029 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8030 # have to relink, otherwise we might link with an installed library 8031 # when we should be linking with a yet-to-be-installed one 8032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8033 test "$hardcode_minus_L" != no; then 8034 # Linking always hardcodes the temporary library directory. 8035 hardcode_action=relink 8036 else 8037 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8038 hardcode_action=immediate 8039 fi 8040else 8041 # We cannot hardcode anything, or else we can only hardcode existing 8042 # directories. 8043 hardcode_action=unsupported 8044fi 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 8046$as_echo "$hardcode_action" >&6; } 8047 8048if test "$hardcode_action" = relink; then 8049 # Fast installation is not supported 8050 enable_fast_install=no 8051elif test "$shlibpath_overrides_runpath" = yes || 8052 test "$enable_shared" = no; then 8053 # Fast installation is not necessary 8054 enable_fast_install=needless 8055fi 8056 8057striplib= 8058old_striplib= 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 8060$as_echo_n "checking whether stripping libraries is possible... " >&6; } 8061if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8062 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8063 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8065$as_echo "yes" >&6; } 8066else 8067# FIXME - insert some real tests, host_os isn't really good enough 8068 case $host_os in 8069 darwin*) 8070 if test -n "$STRIP" ; then 8071 striplib="$STRIP -x" 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8073$as_echo "yes" >&6; } 8074 else 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8076$as_echo "no" >&6; } 8077fi 8078 ;; 8079 *) 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8081$as_echo "no" >&6; } 8082 ;; 8083 esac 8084fi 8085 8086if test "x$enable_dlopen" != xyes; then 8087 enable_dlopen=unknown 8088 enable_dlopen_self=unknown 8089 enable_dlopen_self_static=unknown 8090else 8091 lt_cv_dlopen=no 8092 lt_cv_dlopen_libs= 8093 8094 case $host_os in 8095 beos*) 8096 lt_cv_dlopen="load_add_on" 8097 lt_cv_dlopen_libs= 8098 lt_cv_dlopen_self=yes 8099 ;; 8100 8101 mingw* | pw32*) 8102 lt_cv_dlopen="LoadLibrary" 8103 lt_cv_dlopen_libs= 8104 ;; 8105 8106 cygwin*) 8107 lt_cv_dlopen="dlopen" 8108 lt_cv_dlopen_libs= 8109 ;; 8110 8111 darwin*) 8112 # if libdl is installed we need to link against it 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8114$as_echo_n "checking for dlopen in -ldl... " >&6; } 8115if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 8116 $as_echo_n "(cached) " >&6 8117else 8118 ac_check_lib_save_LIBS=$LIBS 8119LIBS="-ldl $LIBS" 8120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8121/* end confdefs.h. */ 8122 8123/* Override any GCC internal prototype to avoid an error. 8124 Use char because int might match the return type of a GCC 8125 builtin and then its argument prototype would still apply. */ 8126#ifdef __cplusplus 8127extern "C" 8128#endif 8129char dlopen (); 8130int 8131main () 8132{ 8133return dlopen (); 8134 ; 8135 return 0; 8136} 8137_ACEOF 8138if ac_fn_c_try_link "$LINENO"; then : 8139 ac_cv_lib_dl_dlopen=yes 8140else 8141 ac_cv_lib_dl_dlopen=no 8142fi 8143rm -f core conftest.err conftest.$ac_objext \ 8144 conftest$ac_exeext conftest.$ac_ext 8145LIBS=$ac_check_lib_save_LIBS 8146fi 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 8148$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 8149if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 8150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8151else 8152 8153 lt_cv_dlopen="dyld" 8154 lt_cv_dlopen_libs= 8155 lt_cv_dlopen_self=yes 8156 8157fi 8158 8159 ;; 8160 8161 *) 8162 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 8163if test "x$ac_cv_func_shl_load" = x""yes; then : 8164 lt_cv_dlopen="shl_load" 8165else 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 8167$as_echo_n "checking for shl_load in -ldld... " >&6; } 8168if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 ac_check_lib_save_LIBS=$LIBS 8172LIBS="-ldld $LIBS" 8173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8174/* end confdefs.h. */ 8175 8176/* Override any GCC internal prototype to avoid an error. 8177 Use char because int might match the return type of a GCC 8178 builtin and then its argument prototype would still apply. */ 8179#ifdef __cplusplus 8180extern "C" 8181#endif 8182char shl_load (); 8183int 8184main () 8185{ 8186return shl_load (); 8187 ; 8188 return 0; 8189} 8190_ACEOF 8191if ac_fn_c_try_link "$LINENO"; then : 8192 ac_cv_lib_dld_shl_load=yes 8193else 8194 ac_cv_lib_dld_shl_load=no 8195fi 8196rm -f core conftest.err conftest.$ac_objext \ 8197 conftest$ac_exeext conftest.$ac_ext 8198LIBS=$ac_check_lib_save_LIBS 8199fi 8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 8201$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 8202if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 8203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8204else 8205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 8206if test "x$ac_cv_func_dlopen" = x""yes; then : 8207 lt_cv_dlopen="dlopen" 8208else 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8210$as_echo_n "checking for dlopen in -ldl... " >&6; } 8211if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 8212 $as_echo_n "(cached) " >&6 8213else 8214 ac_check_lib_save_LIBS=$LIBS 8215LIBS="-ldl $LIBS" 8216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217/* end confdefs.h. */ 8218 8219/* Override any GCC internal prototype to avoid an error. 8220 Use char because int might match the return type of a GCC 8221 builtin and then its argument prototype would still apply. */ 8222#ifdef __cplusplus 8223extern "C" 8224#endif 8225char dlopen (); 8226int 8227main () 8228{ 8229return dlopen (); 8230 ; 8231 return 0; 8232} 8233_ACEOF 8234if ac_fn_c_try_link "$LINENO"; then : 8235 ac_cv_lib_dl_dlopen=yes 8236else 8237 ac_cv_lib_dl_dlopen=no 8238fi 8239rm -f core conftest.err conftest.$ac_objext \ 8240 conftest$ac_exeext conftest.$ac_ext 8241LIBS=$ac_check_lib_save_LIBS 8242fi 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 8244$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 8245if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 8246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8247else 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 8249$as_echo_n "checking for dlopen in -lsvld... " >&6; } 8250if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 ac_check_lib_save_LIBS=$LIBS 8254LIBS="-lsvld $LIBS" 8255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8256/* end confdefs.h. */ 8257 8258/* Override any GCC internal prototype to avoid an error. 8259 Use char because int might match the return type of a GCC 8260 builtin and then its argument prototype would still apply. */ 8261#ifdef __cplusplus 8262extern "C" 8263#endif 8264char dlopen (); 8265int 8266main () 8267{ 8268return dlopen (); 8269 ; 8270 return 0; 8271} 8272_ACEOF 8273if ac_fn_c_try_link "$LINENO"; then : 8274 ac_cv_lib_svld_dlopen=yes 8275else 8276 ac_cv_lib_svld_dlopen=no 8277fi 8278rm -f core conftest.err conftest.$ac_objext \ 8279 conftest$ac_exeext conftest.$ac_ext 8280LIBS=$ac_check_lib_save_LIBS 8281fi 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 8283$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 8284if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 8285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8286else 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 8288$as_echo_n "checking for dld_link in -ldld... " >&6; } 8289if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 8290 $as_echo_n "(cached) " >&6 8291else 8292 ac_check_lib_save_LIBS=$LIBS 8293LIBS="-ldld $LIBS" 8294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8295/* end confdefs.h. */ 8296 8297/* Override any GCC internal prototype to avoid an error. 8298 Use char because int might match the return type of a GCC 8299 builtin and then its argument prototype would still apply. */ 8300#ifdef __cplusplus 8301extern "C" 8302#endif 8303char dld_link (); 8304int 8305main () 8306{ 8307return dld_link (); 8308 ; 8309 return 0; 8310} 8311_ACEOF 8312if ac_fn_c_try_link "$LINENO"; then : 8313 ac_cv_lib_dld_dld_link=yes 8314else 8315 ac_cv_lib_dld_dld_link=no 8316fi 8317rm -f core conftest.err conftest.$ac_objext \ 8318 conftest$ac_exeext conftest.$ac_ext 8319LIBS=$ac_check_lib_save_LIBS 8320fi 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 8322$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 8323if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 8324 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8325fi 8326 8327 8328fi 8329 8330 8331fi 8332 8333 8334fi 8335 8336 8337fi 8338 8339 8340fi 8341 8342 ;; 8343 esac 8344 8345 if test "x$lt_cv_dlopen" != xno; then 8346 enable_dlopen=yes 8347 else 8348 enable_dlopen=no 8349 fi 8350 8351 case $lt_cv_dlopen in 8352 dlopen) 8353 save_CPPFLAGS="$CPPFLAGS" 8354 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8355 8356 save_LDFLAGS="$LDFLAGS" 8357 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8358 8359 save_LIBS="$LIBS" 8360 LIBS="$lt_cv_dlopen_libs $LIBS" 8361 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 8363$as_echo_n "checking whether a program can dlopen itself... " >&6; } 8364if test "${lt_cv_dlopen_self+set}" = set; then : 8365 $as_echo_n "(cached) " >&6 8366else 8367 if test "$cross_compiling" = yes; then : 8368 lt_cv_dlopen_self=cross 8369else 8370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8371 lt_status=$lt_dlunknown 8372 cat > conftest.$ac_ext <<EOF 8373#line 8373 "configure" 8374#include "confdefs.h" 8375 8376#if HAVE_DLFCN_H 8377#include <dlfcn.h> 8378#endif 8379 8380#include <stdio.h> 8381 8382#ifdef RTLD_GLOBAL 8383# define LT_DLGLOBAL RTLD_GLOBAL 8384#else 8385# ifdef DL_GLOBAL 8386# define LT_DLGLOBAL DL_GLOBAL 8387# else 8388# define LT_DLGLOBAL 0 8389# endif 8390#endif 8391 8392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8393 find out it does not work in some platform. */ 8394#ifndef LT_DLLAZY_OR_NOW 8395# ifdef RTLD_LAZY 8396# define LT_DLLAZY_OR_NOW RTLD_LAZY 8397# else 8398# ifdef DL_LAZY 8399# define LT_DLLAZY_OR_NOW DL_LAZY 8400# else 8401# ifdef RTLD_NOW 8402# define LT_DLLAZY_OR_NOW RTLD_NOW 8403# else 8404# ifdef DL_NOW 8405# define LT_DLLAZY_OR_NOW DL_NOW 8406# else 8407# define LT_DLLAZY_OR_NOW 0 8408# endif 8409# endif 8410# endif 8411# endif 8412#endif 8413 8414#ifdef __cplusplus 8415extern "C" void exit (int); 8416#endif 8417 8418void fnord() { int i=42;} 8419int main () 8420{ 8421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8422 int status = $lt_dlunknown; 8423 8424 if (self) 8425 { 8426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8428 /* dlclose (self); */ 8429 } 8430 8431 exit (status); 8432} 8433EOF 8434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8435 (eval $ac_link) 2>&5 8436 ac_status=$? 8437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8438 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 8439 (./conftest; exit; ) >&5 2>/dev/null 8440 lt_status=$? 8441 case x$lt_status in 8442 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8443 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8444 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8445 esac 8446 else : 8447 # compilation failed 8448 lt_cv_dlopen_self=no 8449 fi 8450fi 8451rm -fr conftest* 8452 8453 8454fi 8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 8456$as_echo "$lt_cv_dlopen_self" >&6; } 8457 8458 if test "x$lt_cv_dlopen_self" = xyes; then 8459 LDFLAGS="$LDFLAGS $link_static_flag" 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 8461$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 8462if test "${lt_cv_dlopen_self_static+set}" = set; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 if test "$cross_compiling" = yes; then : 8466 lt_cv_dlopen_self_static=cross 8467else 8468 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8469 lt_status=$lt_dlunknown 8470 cat > conftest.$ac_ext <<EOF 8471#line 8471 "configure" 8472#include "confdefs.h" 8473 8474#if HAVE_DLFCN_H 8475#include <dlfcn.h> 8476#endif 8477 8478#include <stdio.h> 8479 8480#ifdef RTLD_GLOBAL 8481# define LT_DLGLOBAL RTLD_GLOBAL 8482#else 8483# ifdef DL_GLOBAL 8484# define LT_DLGLOBAL DL_GLOBAL 8485# else 8486# define LT_DLGLOBAL 0 8487# endif 8488#endif 8489 8490/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8491 find out it does not work in some platform. */ 8492#ifndef LT_DLLAZY_OR_NOW 8493# ifdef RTLD_LAZY 8494# define LT_DLLAZY_OR_NOW RTLD_LAZY 8495# else 8496# ifdef DL_LAZY 8497# define LT_DLLAZY_OR_NOW DL_LAZY 8498# else 8499# ifdef RTLD_NOW 8500# define LT_DLLAZY_OR_NOW RTLD_NOW 8501# else 8502# ifdef DL_NOW 8503# define LT_DLLAZY_OR_NOW DL_NOW 8504# else 8505# define LT_DLLAZY_OR_NOW 0 8506# endif 8507# endif 8508# endif 8509# endif 8510#endif 8511 8512#ifdef __cplusplus 8513extern "C" void exit (int); 8514#endif 8515 8516void fnord() { int i=42;} 8517int main () 8518{ 8519 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8520 int status = $lt_dlunknown; 8521 8522 if (self) 8523 { 8524 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8525 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8526 /* dlclose (self); */ 8527 } 8528 8529 exit (status); 8530} 8531EOF 8532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8533 (eval $ac_link) 2>&5 8534 ac_status=$? 8535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8536 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 8537 (./conftest; exit; ) >&5 2>/dev/null 8538 lt_status=$? 8539 case x$lt_status in 8540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8542 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8543 esac 8544 else : 8545 # compilation failed 8546 lt_cv_dlopen_self_static=no 8547 fi 8548fi 8549rm -fr conftest* 8550 8551 8552fi 8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 8554$as_echo "$lt_cv_dlopen_self_static" >&6; } 8555 fi 8556 8557 CPPFLAGS="$save_CPPFLAGS" 8558 LDFLAGS="$save_LDFLAGS" 8559 LIBS="$save_LIBS" 8560 ;; 8561 esac 8562 8563 case $lt_cv_dlopen_self in 8564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8565 *) enable_dlopen_self=unknown ;; 8566 esac 8567 8568 case $lt_cv_dlopen_self_static in 8569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8570 *) enable_dlopen_self_static=unknown ;; 8571 esac 8572fi 8573 8574 8575# Report which librarie types wil actually be built 8576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 8577$as_echo_n "checking if libtool supports shared libraries... " >&6; } 8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 8579$as_echo "$can_build_shared" >&6; } 8580 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 8582$as_echo_n "checking whether to build shared libraries... " >&6; } 8583test "$can_build_shared" = "no" && enable_shared=no 8584 8585# On AIX, shared libraries and static libraries use the same namespace, and 8586# are all built from PIC. 8587case $host_os in 8588aix3*) 8589 test "$enable_shared" = yes && enable_static=no 8590 if test -n "$RANLIB"; then 8591 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8592 postinstall_cmds='$RANLIB $lib' 8593 fi 8594 ;; 8595 8596aix4* | aix5*) 8597 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8598 test "$enable_shared" = yes && enable_static=no 8599 fi 8600 ;; 8601esac 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 8603$as_echo "$enable_shared" >&6; } 8604 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 8606$as_echo_n "checking whether to build static libraries... " >&6; } 8607# Make sure either enable_shared or enable_static is yes. 8608test "$enable_shared" = yes || enable_static=yes 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 8610$as_echo "$enable_static" >&6; } 8611 8612# The else clause should only fire when bootstrapping the 8613# libtool distribution, otherwise you forgot to ship ltmain.sh 8614# with your package, and you will get complaints that there are 8615# no rules to generate ltmain.sh. 8616if test -f "$ltmain"; then 8617 # See if we are running on zsh, and set the options which allow our commands through 8618 # without removal of \ escapes. 8619 if test -n "${ZSH_VERSION+set}" ; then 8620 setopt NO_GLOB_SUBST 8621 fi 8622 # Now quote all the things that may contain metacharacters while being 8623 # careful not to overquote the AC_SUBSTed values. We take copies of the 8624 # variables and quote the copies for generation of the libtool script. 8625 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 8626 SED SHELL STRIP \ 8627 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8628 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8629 deplibs_check_method reload_flag reload_cmds need_locks \ 8630 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8631 lt_cv_sys_global_symbol_to_c_name_address \ 8632 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8633 old_postinstall_cmds old_postuninstall_cmds \ 8634 compiler \ 8635 CC \ 8636 LD \ 8637 lt_prog_compiler_wl \ 8638 lt_prog_compiler_pic \ 8639 lt_prog_compiler_static \ 8640 lt_prog_compiler_no_builtin_flag \ 8641 export_dynamic_flag_spec \ 8642 thread_safe_flag_spec \ 8643 whole_archive_flag_spec \ 8644 enable_shared_with_static_runtimes \ 8645 old_archive_cmds \ 8646 old_archive_from_new_cmds \ 8647 predep_objects \ 8648 postdep_objects \ 8649 predeps \ 8650 postdeps \ 8651 compiler_lib_search_path \ 8652 archive_cmds \ 8653 archive_expsym_cmds \ 8654 postinstall_cmds \ 8655 postuninstall_cmds \ 8656 old_archive_from_expsyms_cmds \ 8657 allow_undefined_flag \ 8658 no_undefined_flag \ 8659 export_symbols_cmds \ 8660 hardcode_libdir_flag_spec \ 8661 hardcode_libdir_flag_spec_ld \ 8662 hardcode_libdir_separator \ 8663 hardcode_automatic \ 8664 module_cmds \ 8665 module_expsym_cmds \ 8666 lt_cv_prog_compiler_c_o \ 8667 exclude_expsyms \ 8668 include_expsyms; do 8669 8670 case $var in 8671 old_archive_cmds | \ 8672 old_archive_from_new_cmds | \ 8673 archive_cmds | \ 8674 archive_expsym_cmds | \ 8675 module_cmds | \ 8676 module_expsym_cmds | \ 8677 old_archive_from_expsyms_cmds | \ 8678 export_symbols_cmds | \ 8679 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8680 postinstall_cmds | postuninstall_cmds | \ 8681 old_postinstall_cmds | old_postuninstall_cmds | \ 8682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8683 # Double-quote double-evaled strings. 8684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8685 ;; 8686 *) 8687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8688 ;; 8689 esac 8690 done 8691 8692 case $lt_echo in 8693 *'\$0 --fallback-echo"') 8694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8695 ;; 8696 esac 8697 8698cfgfile="${ofile}T" 8699 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8700 $rm -f "$cfgfile" 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 8702$as_echo "$as_me: creating $ofile" >&6;} 8703 8704 cat <<__EOF__ >> "$cfgfile" 8705#! $SHELL 8706 8707# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8708# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8709# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8710# 8711# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8712# Free Software Foundation, Inc. 8713# 8714# This file is part of GNU Libtool: 8715# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8716# 8717# This program is free software; you can redistribute it and/or modify 8718# it under the terms of the GNU General Public License as published by 8719# the Free Software Foundation; either version 2 of the License, or 8720# (at your option) any later version. 8721# 8722# This program is distributed in the hope that it will be useful, but 8723# WITHOUT ANY WARRANTY; without even the implied warranty of 8724# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8725# General Public License for more details. 8726# 8727# You should have received a copy of the GNU General Public License 8728# along with this program; if not, write to the Free Software 8729# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 8730# 8731# As a special exception to the GNU General Public License, if you 8732# distribute this file as part of a program that contains a 8733# configuration script generated by Autoconf, you may include it under 8734# the same distribution terms that you use for the rest of that program. 8735 8736# A sed program that does not truncate output. 8737SED=$lt_SED 8738 8739# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8740Xsed="$SED -e 1s/^X//" 8741 8742# The HP-UX ksh and POSIX shell print the target directory to stdout 8743# if CDPATH is set. 8744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8745 8746# The names of the tagged configurations supported by this script. 8747available_tags= 8748 8749# ### BEGIN LIBTOOL CONFIG 8750 8751# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8752 8753# Shell to use when invoking shell scripts. 8754SHELL=$lt_SHELL 8755 8756# Whether or not to build shared libraries. 8757build_libtool_libs=$enable_shared 8758 8759# Whether or not to build static libraries. 8760build_old_libs=$enable_static 8761 8762# Whether or not to add -lc for building shared libraries. 8763build_libtool_need_lc=$archive_cmds_need_lc 8764 8765# Whether or not to disallow shared libs when runtime libs are static 8766allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8767 8768# Whether or not to optimize for fast installation. 8769fast_install=$enable_fast_install 8770 8771# The host system. 8772host_alias=$host_alias 8773host=$host 8774host_os=$host_os 8775 8776# The build system. 8777build_alias=$build_alias 8778build=$build 8779build_os=$build_os 8780 8781# An echo program that does not interpret backslashes. 8782echo=$lt_echo 8783 8784# The archiver. 8785AR=$lt_AR 8786AR_FLAGS=$lt_AR_FLAGS 8787 8788# A C compiler. 8789LTCC=$lt_LTCC 8790 8791# A language-specific compiler. 8792CC=$lt_compiler 8793 8794# Is the compiler the GNU C compiler? 8795with_gcc=$GCC 8796 8797# An ERE matcher. 8798EGREP=$lt_EGREP 8799 8800# The linker used to build libraries. 8801LD=$lt_LD 8802 8803# Whether we need hard or soft links. 8804LN_S=$lt_LN_S 8805 8806# A BSD-compatible nm program. 8807NM=$lt_NM 8808 8809# A symbol stripping program 8810STRIP=$lt_STRIP 8811 8812# Used to examine libraries when file_magic_cmd begins "file" 8813MAGIC_CMD=$MAGIC_CMD 8814 8815# Used on cygwin: DLL creation program. 8816DLLTOOL="$DLLTOOL" 8817 8818# Used on cygwin: object dumper. 8819OBJDUMP="$OBJDUMP" 8820 8821# Used on cygwin: assembler. 8822AS="$AS" 8823 8824# The name of the directory that contains temporary libtool files. 8825objdir=$objdir 8826 8827# How to create reloadable object files. 8828reload_flag=$lt_reload_flag 8829reload_cmds=$lt_reload_cmds 8830 8831# How to pass a linker flag through the compiler. 8832wl=$lt_lt_prog_compiler_wl 8833 8834# Object file suffix (normally "o"). 8835objext="$ac_objext" 8836 8837# Old archive suffix (normally "a"). 8838libext="$libext" 8839 8840# Shared library suffix (normally ".so"). 8841shrext_cmds='$shrext_cmds' 8842 8843# Executable file suffix (normally ""). 8844exeext="$exeext" 8845 8846# Additional compiler flags for building library objects. 8847pic_flag=$lt_lt_prog_compiler_pic 8848pic_mode=$pic_mode 8849 8850# What is the maximum length of a command? 8851max_cmd_len=$lt_cv_sys_max_cmd_len 8852 8853# Does compiler simultaneously support -c and -o options? 8854compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8855 8856# Must we lock files when doing compilation? 8857need_locks=$lt_need_locks 8858 8859# Do we need the lib prefix for modules? 8860need_lib_prefix=$need_lib_prefix 8861 8862# Do we need a version for libraries? 8863need_version=$need_version 8864 8865# Whether dlopen is supported. 8866dlopen_support=$enable_dlopen 8867 8868# Whether dlopen of programs is supported. 8869dlopen_self=$enable_dlopen_self 8870 8871# Whether dlopen of statically linked programs is supported. 8872dlopen_self_static=$enable_dlopen_self_static 8873 8874# Compiler flag to prevent dynamic linking. 8875link_static_flag=$lt_lt_prog_compiler_static 8876 8877# Compiler flag to turn off builtin functions. 8878no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8879 8880# Compiler flag to allow reflexive dlopens. 8881export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8882 8883# Compiler flag to generate shared objects directly from archives. 8884whole_archive_flag_spec=$lt_whole_archive_flag_spec 8885 8886# Compiler flag to generate thread-safe objects. 8887thread_safe_flag_spec=$lt_thread_safe_flag_spec 8888 8889# Library versioning type. 8890version_type=$version_type 8891 8892# Format of library name prefix. 8893libname_spec=$lt_libname_spec 8894 8895# List of archive names. First name is the real one, the rest are links. 8896# The last name is the one that the linker finds with -lNAME. 8897library_names_spec=$lt_library_names_spec 8898 8899# The coded name of the library, if different from the real name. 8900soname_spec=$lt_soname_spec 8901 8902# Commands used to build and install an old-style archive. 8903RANLIB=$lt_RANLIB 8904old_archive_cmds=$lt_old_archive_cmds 8905old_postinstall_cmds=$lt_old_postinstall_cmds 8906old_postuninstall_cmds=$lt_old_postuninstall_cmds 8907 8908# Create an old-style archive from a shared archive. 8909old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8910 8911# Create a temporary old-style archive to link instead of a shared archive. 8912old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8913 8914# Commands used to build and install a shared archive. 8915archive_cmds=$lt_archive_cmds 8916archive_expsym_cmds=$lt_archive_expsym_cmds 8917postinstall_cmds=$lt_postinstall_cmds 8918postuninstall_cmds=$lt_postuninstall_cmds 8919 8920# Commands used to build a loadable module (assumed same as above if empty) 8921module_cmds=$lt_module_cmds 8922module_expsym_cmds=$lt_module_expsym_cmds 8923 8924# Commands to strip libraries. 8925old_striplib=$lt_old_striplib 8926striplib=$lt_striplib 8927 8928# Dependencies to place before the objects being linked to create a 8929# shared library. 8930predep_objects=$lt_predep_objects 8931 8932# Dependencies to place after the objects being linked to create a 8933# shared library. 8934postdep_objects=$lt_postdep_objects 8935 8936# Dependencies to place before the objects being linked to create a 8937# shared library. 8938predeps=$lt_predeps 8939 8940# Dependencies to place after the objects being linked to create a 8941# shared library. 8942postdeps=$lt_postdeps 8943 8944# The library search path used internally by the compiler when linking 8945# a shared library. 8946compiler_lib_search_path=$lt_compiler_lib_search_path 8947 8948# Method to check whether dependent libraries are shared objects. 8949deplibs_check_method=$lt_deplibs_check_method 8950 8951# Command to use when deplibs_check_method == file_magic. 8952file_magic_cmd=$lt_file_magic_cmd 8953 8954# Flag that allows shared libraries with undefined symbols to be built. 8955allow_undefined_flag=$lt_allow_undefined_flag 8956 8957# Flag that forces no undefined symbols. 8958no_undefined_flag=$lt_no_undefined_flag 8959 8960# Commands used to finish a libtool library installation in a directory. 8961finish_cmds=$lt_finish_cmds 8962 8963# Same as above, but a single script fragment to be evaled but not shown. 8964finish_eval=$lt_finish_eval 8965 8966# Take the output of nm and produce a listing of raw symbols and C names. 8967global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8968 8969# Transform the output of nm in a proper C declaration 8970global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8971 8972# Transform the output of nm in a C name address pair 8973global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8974 8975# This is the shared library runtime path variable. 8976runpath_var=$runpath_var 8977 8978# This is the shared library path variable. 8979shlibpath_var=$shlibpath_var 8980 8981# Is shlibpath searched before the hard-coded library search path? 8982shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8983 8984# How to hardcode a shared library path into an executable. 8985hardcode_action=$hardcode_action 8986 8987# Whether we should hardcode library paths into libraries. 8988hardcode_into_libs=$hardcode_into_libs 8989 8990# Flag to hardcode \$libdir into a binary during linking. 8991# This must work even if \$libdir does not exist. 8992hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8993 8994# If ld is used when linking, flag to hardcode \$libdir into 8995# a binary during linking. This must work even if \$libdir does 8996# not exist. 8997hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 8998 8999# Whether we need a single -rpath flag with a separated argument. 9000hardcode_libdir_separator=$lt_hardcode_libdir_separator 9001 9002# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9003# resulting binary. 9004hardcode_direct=$hardcode_direct 9005 9006# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9007# resulting binary. 9008hardcode_minus_L=$hardcode_minus_L 9009 9010# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9011# the resulting binary. 9012hardcode_shlibpath_var=$hardcode_shlibpath_var 9013 9014# Set to yes if building a shared library automatically hardcodes DIR into the library 9015# and all subsequent libraries and executables linked against it. 9016hardcode_automatic=$hardcode_automatic 9017 9018# Variables whose values should be saved in libtool wrapper scripts and 9019# restored at relink time. 9020variables_saved_for_relink="$variables_saved_for_relink" 9021 9022# Whether libtool must link a program against all its dependency libraries. 9023link_all_deplibs=$link_all_deplibs 9024 9025# Compile-time system search path for libraries 9026sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9027 9028# Run-time system search path for libraries 9029sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9030 9031# Fix the shell variable \$srcfile for the compiler. 9032fix_srcfile_path="$fix_srcfile_path" 9033 9034# Set to yes if exported symbols are required. 9035always_export_symbols=$always_export_symbols 9036 9037# The commands to list exported symbols. 9038export_symbols_cmds=$lt_export_symbols_cmds 9039 9040# The commands to extract the exported symbol list from a shared archive. 9041extract_expsyms_cmds=$lt_extract_expsyms_cmds 9042 9043# Symbols that should not be listed in the preloaded symbols. 9044exclude_expsyms=$lt_exclude_expsyms 9045 9046# Symbols that must always be exported. 9047include_expsyms=$lt_include_expsyms 9048 9049# ### END LIBTOOL CONFIG 9050 9051__EOF__ 9052 9053 9054 case $host_os in 9055 aix3*) 9056 cat <<\EOF >> "$cfgfile" 9057 9058# AIX sometimes has problems with the GCC collect2 program. For some 9059# reason, if we set the COLLECT_NAMES environment variable, the problems 9060# vanish in a puff of smoke. 9061if test "X${COLLECT_NAMES+set}" != Xset; then 9062 COLLECT_NAMES= 9063 export COLLECT_NAMES 9064fi 9065EOF 9066 ;; 9067 esac 9068 9069 # We use sed instead of cat because bash on DJGPP gets confused if 9070 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9071 # text mode, it properly converts lines to CR/LF. This bash problem 9072 # is reportedly fixed, but why not run on old versions too? 9073 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9074 9075 mv -f "$cfgfile" "$ofile" || \ 9076 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9077 chmod +x "$ofile" 9078 9079else 9080 # If there is no Makefile yet, we rely on a make rule to execute 9081 # `config.status --recheck' to rerun these tests and create the 9082 # libtool script then. 9083 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9084 if test -f "$ltmain_in"; then 9085 test -f Makefile && make "$ltmain" 9086 fi 9087fi 9088 9089 9090ac_ext=c 9091ac_cpp='$CPP $CPPFLAGS' 9092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9094ac_compiler_gnu=$ac_cv_c_compiler_gnu 9095 9096CC="$lt_save_CC" 9097 9098 9099# Check whether --with-tags was given. 9100if test "${with_tags+set}" = set; then : 9101 withval=$with_tags; tagnames="$withval" 9102fi 9103 9104 9105if test -f "$ltmain" && test -n "$tagnames"; then 9106 if test ! -f "${ofile}"; then 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 9108$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9109 fi 9110 9111 if test -z "$LTCC"; then 9112 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9113 if test -z "$LTCC"; then 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9115$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9116 else 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9118$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9119 fi 9120 fi 9121 9122 # Extract list of available tagged configurations in $ofile. 9123 # Note that this assumes the entire list is on one line. 9124 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9125 9126 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9127 for tagname in $tagnames; do 9128 IFS="$lt_save_ifs" 9129 # Check whether tagname contains only valid characters 9130 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9131 "") ;; 9132 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 9133 ;; 9134 esac 9135 9136 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9137 then 9138 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 9139 fi 9140 9141 # Update the list of available tags. 9142 if test -n "$tagname"; then 9143 echo appending configuration tag \"$tagname\" to $ofile 9144 9145 case $tagname in 9146 CXX) 9147 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9148 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9149 (test "X$CXX" != "Xg++"))) ; then 9150 : 9151 else 9152 tagname="" 9153 fi 9154 ;; 9155 9156 F77) 9157 if test -n "$F77" && test "X$F77" != "Xno"; then 9158 : 9159 else 9160 tagname="" 9161 fi 9162 ;; 9163 9164 GCJ) 9165 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 9166 9167 9168# Source file extension for Java test sources. 9169ac_ext=java 9170 9171# Object file extension for compiled Java test sources. 9172objext=o 9173objext_GCJ=$objext 9174 9175# Code to be used in simple compile tests 9176lt_simple_compile_test_code="class foo {}\n" 9177 9178# Code to be used in simple link tests 9179lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 9180 9181# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9182 9183# If no C compiler was specified, use CC. 9184LTCC=${LTCC-"$CC"} 9185 9186# Allow CC to be a program name with arguments. 9187compiler=$CC 9188 9189 9190# save warnings/boilerplate of simple test code 9191ac_outfile=conftest.$ac_objext 9192printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9193eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9194_lt_compiler_boilerplate=`cat conftest.err` 9195$rm conftest* 9196 9197ac_outfile=conftest.$ac_objext 9198printf "$lt_simple_link_test_code" >conftest.$ac_ext 9199eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9200_lt_linker_boilerplate=`cat conftest.err` 9201$rm conftest* 9202 9203 9204# Allow CC to be a program name with arguments. 9205lt_save_CC="$CC" 9206CC=${GCJ-"gcj"} 9207compiler=$CC 9208compiler_GCJ=$CC 9209for cc_temp in $compiler""; do 9210 case $cc_temp in 9211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9213 \-*) ;; 9214 *) break;; 9215 esac 9216done 9217cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9218 9219 9220# GCJ did not exist at the time GCC didn't implicitly link libc in. 9221archive_cmds_need_lc_GCJ=no 9222 9223old_archive_cmds_GCJ=$old_archive_cmds 9224 9225 9226lt_prog_compiler_no_builtin_flag_GCJ= 9227 9228if test "$GCC" = yes; then 9229 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 9230 9231 9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9233$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9234if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 9235 $as_echo_n "(cached) " >&6 9236else 9237 lt_cv_prog_compiler_rtti_exceptions=no 9238 ac_outfile=conftest.$ac_objext 9239 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9240 lt_compiler_flag="-fno-rtti -fno-exceptions" 9241 # Insert the option either (1) after the last *FLAGS variable, or 9242 # (2) before a word containing "conftest.", or (3) at the end. 9243 # Note that $ac_compile itself does not contain backslashes and begins 9244 # with a dollar sign (not a hyphen), so the echo should work correctly. 9245 # The option is referenced via a variable to avoid confusing sed. 9246 lt_compile=`echo "$ac_compile" | $SED \ 9247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9249 -e 's:$: $lt_compiler_flag:'` 9250 (eval echo "\"\$as_me:9250: $lt_compile\"" >&5) 9251 (eval "$lt_compile" 2>conftest.err) 9252 ac_status=$? 9253 cat conftest.err >&5 9254 echo "$as_me:9254: \$? = $ac_status" >&5 9255 if (exit $ac_status) && test -s "$ac_outfile"; then 9256 # The compiler can only warn and ignore the option if not recognized 9257 # So say no if there are warnings other than the usual output. 9258 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 9259 $SED '/^$/d' conftest.err >conftest.er2 9260 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 9261 lt_cv_prog_compiler_rtti_exceptions=yes 9262 fi 9263 fi 9264 $rm conftest* 9265 9266fi 9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9268$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9269 9270if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9271 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 9272else 9273 : 9274fi 9275 9276fi 9277 9278lt_prog_compiler_wl_GCJ= 9279lt_prog_compiler_pic_GCJ= 9280lt_prog_compiler_static_GCJ= 9281 9282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9283$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9284 9285 if test "$GCC" = yes; then 9286 lt_prog_compiler_wl_GCJ='-Wl,' 9287 lt_prog_compiler_static_GCJ='-static' 9288 9289 case $host_os in 9290 aix*) 9291 # All AIX code is PIC. 9292 if test "$host_cpu" = ia64; then 9293 # AIX 5 now supports IA64 processor 9294 lt_prog_compiler_static_GCJ='-Bstatic' 9295 fi 9296 ;; 9297 9298 amigaos*) 9299 # FIXME: we need at least 68020 code to build shared libraries, but 9300 # adding the `-m68020' flag to GCC prevents building anything better, 9301 # like `-m68040'. 9302 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 9303 ;; 9304 9305 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9306 # PIC is the default for these OSes. 9307 ;; 9308 9309 mingw* | pw32* | os2*) 9310 # This hack is so that the source file can tell whether it is being 9311 # built for inclusion in a dll (and should export symbols for example). 9312 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 9313 ;; 9314 9315 darwin* | rhapsody*) 9316 # PIC is the default on this platform 9317 # Common symbols not allowed in MH_DYLIB files 9318 lt_prog_compiler_pic_GCJ='-fno-common' 9319 ;; 9320 9321 msdosdjgpp*) 9322 # Just because we use GCC doesn't mean we suddenly get shared libraries 9323 # on systems that don't support them. 9324 lt_prog_compiler_can_build_shared_GCJ=no 9325 enable_shared=no 9326 ;; 9327 9328 sysv4*MP*) 9329 if test -d /usr/nec; then 9330 lt_prog_compiler_pic_GCJ=-Kconform_pic 9331 fi 9332 ;; 9333 9334 hpux*) 9335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9336 # not for PA HP-UX. 9337 case $host_cpu in 9338 hppa*64*|ia64*) 9339 # +Z the default 9340 ;; 9341 *) 9342 lt_prog_compiler_pic_GCJ='-fPIC' 9343 ;; 9344 esac 9345 ;; 9346 9347 *) 9348 lt_prog_compiler_pic_GCJ='-fPIC' 9349 ;; 9350 esac 9351 else 9352 # PORTME Check for flag to pass linker flags through the system compiler. 9353 case $host_os in 9354 aix*) 9355 lt_prog_compiler_wl_GCJ='-Wl,' 9356 if test "$host_cpu" = ia64; then 9357 # AIX 5 now supports IA64 processor 9358 lt_prog_compiler_static_GCJ='-Bstatic' 9359 else 9360 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 9361 fi 9362 ;; 9363 darwin*) 9364 # PIC is the default on this platform 9365 # Common symbols not allowed in MH_DYLIB files 9366 case $cc_basename in 9367 xlc*) 9368 lt_prog_compiler_pic_GCJ='-qnocommon' 9369 lt_prog_compiler_wl_GCJ='-Wl,' 9370 ;; 9371 esac 9372 ;; 9373 9374 mingw* | pw32* | os2*) 9375 # This hack is so that the source file can tell whether it is being 9376 # built for inclusion in a dll (and should export symbols for example). 9377 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 9378 ;; 9379 9380 hpux9* | hpux10* | hpux11*) 9381 lt_prog_compiler_wl_GCJ='-Wl,' 9382 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9383 # not for PA HP-UX. 9384 case $host_cpu in 9385 hppa*64*|ia64*) 9386 # +Z the default 9387 ;; 9388 *) 9389 lt_prog_compiler_pic_GCJ='+Z' 9390 ;; 9391 esac 9392 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9393 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 9394 ;; 9395 9396 irix5* | irix6* | nonstopux*) 9397 lt_prog_compiler_wl_GCJ='-Wl,' 9398 # PIC (with -KPIC) is the default. 9399 lt_prog_compiler_static_GCJ='-non_shared' 9400 ;; 9401 9402 newsos6) 9403 lt_prog_compiler_pic_GCJ='-KPIC' 9404 lt_prog_compiler_static_GCJ='-Bstatic' 9405 ;; 9406 9407 linux*) 9408 case $cc_basename in 9409 icc* | ecc*) 9410 lt_prog_compiler_wl_GCJ='-Wl,' 9411 lt_prog_compiler_pic_GCJ='-KPIC' 9412 lt_prog_compiler_static_GCJ='-static' 9413 ;; 9414 pgcc* | pgf77* | pgf90* | pgf95*) 9415 # Portland Group compilers (*not* the Pentium gcc compiler, 9416 # which looks to be a dead project) 9417 lt_prog_compiler_wl_GCJ='-Wl,' 9418 lt_prog_compiler_pic_GCJ='-fpic' 9419 lt_prog_compiler_static_GCJ='-Bstatic' 9420 ;; 9421 ccc*) 9422 lt_prog_compiler_wl_GCJ='-Wl,' 9423 # All Alpha code is PIC. 9424 lt_prog_compiler_static_GCJ='-non_shared' 9425 ;; 9426 esac 9427 ;; 9428 9429 osf3* | osf4* | osf5*) 9430 lt_prog_compiler_wl_GCJ='-Wl,' 9431 # All OSF/1 code is PIC. 9432 lt_prog_compiler_static_GCJ='-non_shared' 9433 ;; 9434 9435 sco3.2v5*) 9436 lt_prog_compiler_pic_GCJ='-Kpic' 9437 lt_prog_compiler_static_GCJ='-dn' 9438 ;; 9439 9440 solaris*) 9441 lt_prog_compiler_pic_GCJ='-KPIC' 9442 lt_prog_compiler_static_GCJ='-Bstatic' 9443 case $cc_basename in 9444 f77* | f90* | f95*) 9445 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 9446 *) 9447 lt_prog_compiler_wl_GCJ='-Wl,';; 9448 esac 9449 ;; 9450 9451 sunos4*) 9452 lt_prog_compiler_wl_GCJ='-Qoption ld ' 9453 lt_prog_compiler_pic_GCJ='-PIC' 9454 lt_prog_compiler_static_GCJ='-Bstatic' 9455 ;; 9456 9457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9458 lt_prog_compiler_wl_GCJ='-Wl,' 9459 lt_prog_compiler_pic_GCJ='-KPIC' 9460 lt_prog_compiler_static_GCJ='-Bstatic' 9461 ;; 9462 9463 sysv4*MP*) 9464 if test -d /usr/nec ;then 9465 lt_prog_compiler_pic_GCJ='-Kconform_pic' 9466 lt_prog_compiler_static_GCJ='-Bstatic' 9467 fi 9468 ;; 9469 9470 unicos*) 9471 lt_prog_compiler_wl_GCJ='-Wl,' 9472 lt_prog_compiler_can_build_shared_GCJ=no 9473 ;; 9474 9475 uts4*) 9476 lt_prog_compiler_pic_GCJ='-pic' 9477 lt_prog_compiler_static_GCJ='-Bstatic' 9478 ;; 9479 9480 *) 9481 lt_prog_compiler_can_build_shared_GCJ=no 9482 ;; 9483 esac 9484 fi 9485 9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 9487$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 9488 9489# 9490# Check to make sure the PIC flag actually works. 9491# 9492if test -n "$lt_prog_compiler_pic_GCJ"; then 9493 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 9495$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 9496if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 lt_prog_compiler_pic_works_GCJ=no 9500 ac_outfile=conftest.$ac_objext 9501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9502 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 9503 # Insert the option either (1) after the last *FLAGS variable, or 9504 # (2) before a word containing "conftest.", or (3) at the end. 9505 # Note that $ac_compile itself does not contain backslashes and begins 9506 # with a dollar sign (not a hyphen), so the echo should work correctly. 9507 # The option is referenced via a variable to avoid confusing sed. 9508 lt_compile=`echo "$ac_compile" | $SED \ 9509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9511 -e 's:$: $lt_compiler_flag:'` 9512 (eval echo "\"\$as_me:9512: $lt_compile\"" >&5) 9513 (eval "$lt_compile" 2>conftest.err) 9514 ac_status=$? 9515 cat conftest.err >&5 9516 echo "$as_me:9516: \$? = $ac_status" >&5 9517 if (exit $ac_status) && test -s "$ac_outfile"; then 9518 # The compiler can only warn and ignore the option if not recognized 9519 # So say no if there are warnings other than the usual output. 9520 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 9521 $SED '/^$/d' conftest.err >conftest.er2 9522 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 9523 lt_prog_compiler_pic_works_GCJ=yes 9524 fi 9525 fi 9526 $rm conftest* 9527 9528fi 9529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5 9530$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; } 9531 9532if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 9533 case $lt_prog_compiler_pic_GCJ in 9534 "" | " "*) ;; 9535 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 9536 esac 9537else 9538 lt_prog_compiler_pic_GCJ= 9539 lt_prog_compiler_can_build_shared_GCJ=no 9540fi 9541 9542fi 9543case $host_os in 9544 # For platforms which do not support PIC, -DPIC is meaningless: 9545 *djgpp*) 9546 lt_prog_compiler_pic_GCJ= 9547 ;; 9548 *) 9549 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 9550 ;; 9551esac 9552 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9554$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9555if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 lt_cv_prog_compiler_c_o_GCJ=no 9559 $rm -r conftest 2>/dev/null 9560 mkdir conftest 9561 cd conftest 9562 mkdir out 9563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9564 9565 lt_compiler_flag="-o out/conftest2.$ac_objext" 9566 # Insert the option either (1) after the last *FLAGS variable, or 9567 # (2) before a word containing "conftest.", or (3) at the end. 9568 # Note that $ac_compile itself does not contain backslashes and begins 9569 # with a dollar sign (not a hyphen), so the echo should work correctly. 9570 lt_compile=`echo "$ac_compile" | $SED \ 9571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9573 -e 's:$: $lt_compiler_flag:'` 9574 (eval echo "\"\$as_me:9574: $lt_compile\"" >&5) 9575 (eval "$lt_compile" 2>out/conftest.err) 9576 ac_status=$? 9577 cat out/conftest.err >&5 9578 echo "$as_me:9578: \$? = $ac_status" >&5 9579 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9580 then 9581 # The compiler can only warn and ignore the option if not recognized 9582 # So say no if there are warnings 9583 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 9584 $SED '/^$/d' out/conftest.err >out/conftest.er2 9585 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9586 lt_cv_prog_compiler_c_o_GCJ=yes 9587 fi 9588 fi 9589 chmod u+w . 2>&5 9590 $rm conftest* 9591 # SGI C++ compiler will create directory out/ii_files/ for 9592 # template instantiation 9593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 9594 $rm out/* && rmdir out 9595 cd .. 9596 rmdir conftest 9597 $rm conftest* 9598 9599fi 9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 9601$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 9602 9603 9604hard_links="nottested" 9605if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 9606 # do not overwrite the value of need_locks provided by the user 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9608$as_echo_n "checking if we can lock with hard links... " >&6; } 9609 hard_links=yes 9610 $rm conftest* 9611 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9612 touch conftest.a 9613 ln conftest.a conftest.b 2>&5 || hard_links=no 9614 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9616$as_echo "$hard_links" >&6; } 9617 if test "$hard_links" = no; then 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9619$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9620 need_locks=warn 9621 fi 9622else 9623 need_locks=no 9624fi 9625 9626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9627$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9628 9629 runpath_var= 9630 allow_undefined_flag_GCJ= 9631 enable_shared_with_static_runtimes_GCJ=no 9632 archive_cmds_GCJ= 9633 archive_expsym_cmds_GCJ= 9634 old_archive_From_new_cmds_GCJ= 9635 old_archive_from_expsyms_cmds_GCJ= 9636 export_dynamic_flag_spec_GCJ= 9637 whole_archive_flag_spec_GCJ= 9638 thread_safe_flag_spec_GCJ= 9639 hardcode_libdir_flag_spec_GCJ= 9640 hardcode_libdir_flag_spec_ld_GCJ= 9641 hardcode_libdir_separator_GCJ= 9642 hardcode_direct_GCJ=no 9643 hardcode_minus_L_GCJ=no 9644 hardcode_shlibpath_var_GCJ=unsupported 9645 link_all_deplibs_GCJ=unknown 9646 hardcode_automatic_GCJ=no 9647 module_cmds_GCJ= 9648 module_expsym_cmds_GCJ= 9649 always_export_symbols_GCJ=no 9650 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9651 # include_expsyms should be a list of space-separated symbols to be *always* 9652 # included in the symbol list 9653 include_expsyms_GCJ= 9654 # exclude_expsyms can be an extended regexp of symbols to exclude 9655 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9657 # as well as any symbol that contains `d'. 9658 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 9659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9660 # platforms (ab)use it in PIC code, but their linkers get confused if 9661 # the symbol is explicitly referenced. Since portable code cannot 9662 # rely on this symbol name, it's probably fine to never include it in 9663 # preloaded symbol tables. 9664 extract_expsyms_cmds= 9665 # Just being paranoid about ensuring that cc_basename is set. 9666 for cc_temp in $compiler""; do 9667 case $cc_temp in 9668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9670 \-*) ;; 9671 *) break;; 9672 esac 9673done 9674cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9675 9676 case $host_os in 9677 cygwin* | mingw* | pw32*) 9678 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9679 # When not using gcc, we currently assume that we are using 9680 # Microsoft Visual C++. 9681 if test "$GCC" != yes; then 9682 with_gnu_ld=no 9683 fi 9684 ;; 9685 openbsd*) 9686 with_gnu_ld=no 9687 ;; 9688 esac 9689 9690 ld_shlibs_GCJ=yes 9691 if test "$with_gnu_ld" = yes; then 9692 # If archive_cmds runs LD, not CC, wlarc should be empty 9693 wlarc='${wl}' 9694 9695 # Set some defaults for GNU ld with shared library support. These 9696 # are reset later if shared libraries are not supported. Putting them 9697 # here allows them to be overridden if necessary. 9698 runpath_var=LD_RUN_PATH 9699 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 9700 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 9701 # ancient GNU ld didn't support --whole-archive et. al. 9702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9703 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9704 else 9705 whole_archive_flag_spec_GCJ= 9706 fi 9707 supports_anon_versioning=no 9708 case `$LD -v 2>/dev/null` in 9709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9712 *\ 2.11.*) ;; # other 2.11 versions 9713 *) supports_anon_versioning=yes ;; 9714 esac 9715 9716 # See if GNU ld supports shared libraries. 9717 case $host_os in 9718 aix3* | aix4* | aix5*) 9719 # On AIX/PPC, the GNU linker is very broken 9720 if test "$host_cpu" != ia64; then 9721 ld_shlibs_GCJ=no 9722 cat <<EOF 1>&2 9723 9724*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9725*** to be unable to reliably create shared libraries on AIX. 9726*** Therefore, libtool is disabling shared libraries support. If you 9727*** really care for shared libraries, you may want to modify your PATH 9728*** so that a non-GNU linker is found, and then restart. 9729 9730EOF 9731 fi 9732 ;; 9733 9734 amigaos*) 9735 archive_cmds_GCJ='$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)' 9736 hardcode_libdir_flag_spec_GCJ='-L$libdir' 9737 hardcode_minus_L_GCJ=yes 9738 9739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 9740 # that the semantics of dynamic libraries on AmigaOS, at least up 9741 # to version 4, is to share data among multiple programs linked 9742 # with the same dynamic library. Since this doesn't match the 9743 # behavior of shared libraries on other platforms, we can't use 9744 # them. 9745 ld_shlibs_GCJ=no 9746 ;; 9747 9748 beos*) 9749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9750 allow_undefined_flag_GCJ=unsupported 9751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9752 # support --undefined. This deserves some investigation. FIXME 9753 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9754 else 9755 ld_shlibs_GCJ=no 9756 fi 9757 ;; 9758 9759 cygwin* | mingw* | pw32*) 9760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 9761 # as there is no search path for DLLs. 9762 hardcode_libdir_flag_spec_GCJ='-L$libdir' 9763 allow_undefined_flag_GCJ=unsupported 9764 always_export_symbols_GCJ=no 9765 enable_shared_with_static_runtimes_GCJ=yes 9766 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 9767 9768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9769 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9770 # If the export-symbols file already is a .def file (1st line 9771 # is EXPORTS), use it as is; otherwise, prepend... 9772 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9773 cp $export_symbols $output_objdir/$soname.def; 9774 else 9775 echo EXPORTS > $output_objdir/$soname.def; 9776 cat $export_symbols >> $output_objdir/$soname.def; 9777 fi~ 9778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9779 else 9780 ld_shlibs_GCJ=no 9781 fi 9782 ;; 9783 9784 linux*) 9785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9786 tmp_addflag= 9787 case $cc_basename,$host_cpu in 9788 pgcc*) # Portland Group C compiler 9789 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9790 tmp_addflag=' $pic_flag' 9791 ;; 9792 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9793 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9794 tmp_addflag=' $pic_flag -Mnomain' ;; 9795 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9796 tmp_addflag=' -i_dynamic' ;; 9797 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9798 tmp_addflag=' -i_dynamic -nofor_main' ;; 9799 ifc* | ifort*) # Intel Fortran compiler 9800 tmp_addflag=' -nofor_main' ;; 9801 esac 9802 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9803 9804 if test $supports_anon_versioning = yes; then 9805 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 9806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9807 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9808 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9809 fi 9810 else 9811 ld_shlibs_GCJ=no 9812 fi 9813 ;; 9814 9815 netbsd*) 9816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9817 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9818 wlarc= 9819 else 9820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9822 fi 9823 ;; 9824 9825 solaris* | sysv5*) 9826 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9827 ld_shlibs_GCJ=no 9828 cat <<EOF 1>&2 9829 9830*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9831*** create shared libraries on Solaris systems. Therefore, libtool 9832*** is disabling shared libraries support. We urge you to upgrade GNU 9833*** binutils to release 2.9.1 or newer. Another option is to modify 9834*** your PATH or compiler configuration so that the native linker is 9835*** used, and then restart. 9836 9837EOF 9838 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9839 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9840 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9841 else 9842 ld_shlibs_GCJ=no 9843 fi 9844 ;; 9845 9846 sunos4*) 9847 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9848 wlarc= 9849 hardcode_direct_GCJ=yes 9850 hardcode_shlibpath_var_GCJ=no 9851 ;; 9852 9853 *) 9854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9857 else 9858 ld_shlibs_GCJ=no 9859 fi 9860 ;; 9861 esac 9862 9863 if test "$ld_shlibs_GCJ" = no; then 9864 runpath_var= 9865 hardcode_libdir_flag_spec_GCJ= 9866 export_dynamic_flag_spec_GCJ= 9867 whole_archive_flag_spec_GCJ= 9868 fi 9869 else 9870 # PORTME fill in a description of your system's linker (not GNU ld) 9871 case $host_os in 9872 aix3*) 9873 allow_undefined_flag_GCJ=unsupported 9874 always_export_symbols_GCJ=yes 9875 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9876 # Note: this linker hardcodes the directories in LIBPATH if there 9877 # are no directories specified by -L. 9878 hardcode_minus_L_GCJ=yes 9879 if test "$GCC" = yes && test -z "$link_static_flag"; then 9880 # Neither direct hardcoding nor static linking is supported with a 9881 # broken collect2. 9882 hardcode_direct_GCJ=unsupported 9883 fi 9884 ;; 9885 9886 aix4* | aix5*) 9887 if test "$host_cpu" = ia64; then 9888 # On IA64, the linker does run time linking by default, so we don't 9889 # have to do anything special. 9890 aix_use_runtimelinking=no 9891 exp_sym_flag='-Bexport' 9892 no_entry_flag="" 9893 else 9894 # If we're using GNU nm, then we don't want the "-C" option. 9895 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9896 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9897 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 9898 else 9899 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 9900 fi 9901 aix_use_runtimelinking=no 9902 9903 # Test if we are trying to use run time linking or normal 9904 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9905 # need to do runtime linking. 9906 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9907 for ld_flag in $LDFLAGS; do 9908 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9909 aix_use_runtimelinking=yes 9910 break 9911 fi 9912 done 9913 esac 9914 9915 exp_sym_flag='-bexport' 9916 no_entry_flag='-bnoentry' 9917 fi 9918 9919 # When large executables or shared objects are built, AIX ld can 9920 # have problems creating the table of contents. If linking a library 9921 # or program results in "error TOC overflow" add -mminimal-toc to 9922 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9923 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9924 9925 archive_cmds_GCJ='' 9926 hardcode_direct_GCJ=yes 9927 hardcode_libdir_separator_GCJ=':' 9928 link_all_deplibs_GCJ=yes 9929 9930 if test "$GCC" = yes; then 9931 case $host_os in aix4.[012]|aix4.[012].*) 9932 # We only want to do this on AIX 4.2 and lower, the check 9933 # below for broken collect2 doesn't work under 4.3+ 9934 collect2name=`${CC} -print-prog-name=collect2` 9935 if test -f "$collect2name" && \ 9936 strings "$collect2name" | grep resolve_lib_name >/dev/null 9937 then 9938 # We have reworked collect2 9939 hardcode_direct_GCJ=yes 9940 else 9941 # We have old collect2 9942 hardcode_direct_GCJ=unsupported 9943 # It fails to find uninstalled libraries when the uninstalled 9944 # path is not listed in the libpath. Setting hardcode_minus_L 9945 # to unsupported forces relinking 9946 hardcode_minus_L_GCJ=yes 9947 hardcode_libdir_flag_spec_GCJ='-L$libdir' 9948 hardcode_libdir_separator_GCJ= 9949 fi 9950 esac 9951 shared_flag='-shared' 9952 if test "$aix_use_runtimelinking" = yes; then 9953 shared_flag="$shared_flag "'${wl}-G' 9954 fi 9955 else 9956 # not using gcc 9957 if test "$host_cpu" = ia64; then 9958 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9959 # chokes on -Wl,-G. The following line is correct: 9960 shared_flag='-G' 9961 else 9962 if test "$aix_use_runtimelinking" = yes; then 9963 shared_flag='${wl}-G' 9964 else 9965 shared_flag='${wl}-bM:SRE' 9966 fi 9967 fi 9968 fi 9969 9970 # It seems that -bexpall does not export symbols beginning with 9971 # underscore (_), so it is better to generate a list of symbols to export. 9972 always_export_symbols_GCJ=yes 9973 if test "$aix_use_runtimelinking" = yes; then 9974 # Warning - without using the other runtime loading flags (-brtl), 9975 # -berok will link without error, but may produce a broken library. 9976 allow_undefined_flag_GCJ='-berok' 9977 # Determine the default libpath from the value encoded in an empty executable. 9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979/* end confdefs.h. */ 9980 9981int 9982main () 9983{ 9984 9985 ; 9986 return 0; 9987} 9988_ACEOF 9989if ac_fn_c_try_link "$LINENO"; then : 9990 9991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9992}'` 9993# Check for a 64-bit object if we didn't find anything. 9994if 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; } 9995}'`; fi 9996fi 9997rm -f core conftest.err conftest.$ac_objext \ 9998 conftest$ac_exeext conftest.$ac_ext 9999if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10000 10001 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 10002 archive_expsym_cmds_GCJ="\$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" 10003 else 10004 if test "$host_cpu" = ia64; then 10005 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 10006 allow_undefined_flag_GCJ="-z nodefs" 10007 archive_expsym_cmds_GCJ="\$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" 10008 else 10009 # Determine the default libpath from the value encoded in an empty executable. 10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012 10013int 10014main () 10015{ 10016 10017 ; 10018 return 0; 10019} 10020_ACEOF 10021if ac_fn_c_try_link "$LINENO"; then : 10022 10023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10024}'` 10025# Check for a 64-bit object if we didn't find anything. 10026if 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; } 10027}'`; fi 10028fi 10029rm -f core conftest.err conftest.$ac_objext \ 10030 conftest$ac_exeext conftest.$ac_ext 10031if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10032 10033 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 10034 # Warning - without using the other run time loading flags, 10035 # -berok will link without error, but may produce a broken library. 10036 no_undefined_flag_GCJ=' ${wl}-bernotok' 10037 allow_undefined_flag_GCJ=' ${wl}-berok' 10038 # -bexpall does not export symbols beginning with underscore (_) 10039 always_export_symbols_GCJ=yes 10040 # Exported symbols can be pulled into shared objects from archives 10041 whole_archive_flag_spec_GCJ=' ' 10042 archive_cmds_need_lc_GCJ=yes 10043 # This is similar to how AIX traditionally builds its shared libraries. 10044 archive_expsym_cmds_GCJ="\$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' 10045 fi 10046 fi 10047 ;; 10048 10049 amigaos*) 10050 archive_cmds_GCJ='$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)' 10051 hardcode_libdir_flag_spec_GCJ='-L$libdir' 10052 hardcode_minus_L_GCJ=yes 10053 # see comment about different semantics on the GNU ld section 10054 ld_shlibs_GCJ=no 10055 ;; 10056 10057 bsdi[45]*) 10058 export_dynamic_flag_spec_GCJ=-rdynamic 10059 ;; 10060 10061 cygwin* | mingw* | pw32*) 10062 # When not using gcc, we currently assume that we are using 10063 # Microsoft Visual C++. 10064 # hardcode_libdir_flag_spec is actually meaningless, as there is 10065 # no search path for DLLs. 10066 hardcode_libdir_flag_spec_GCJ=' ' 10067 allow_undefined_flag_GCJ=unsupported 10068 # Tell ltmain to make .lib files, not .a files. 10069 libext=lib 10070 # Tell ltmain to make .dll files, not .so files. 10071 shrext_cmds=".dll" 10072 # FIXME: Setting linknames here is a bad hack. 10073 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10074 # The linker will automatically build a .lib file if we build a DLL. 10075 old_archive_From_new_cmds_GCJ='true' 10076 # FIXME: Should let the user specify the lib program. 10077 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 10078 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 10079 enable_shared_with_static_runtimes_GCJ=yes 10080 ;; 10081 10082 darwin* | rhapsody*) 10083 case $host_os in 10084 rhapsody* | darwin1.[012]) 10085 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 10086 ;; 10087 *) # Darwin 1.3 on 10088 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10089 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10090 else 10091 case ${MACOSX_DEPLOYMENT_TARGET} in 10092 10.[012]) 10093 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10094 ;; 10095 10.*) 10096 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 10097 ;; 10098 esac 10099 fi 10100 ;; 10101 esac 10102 archive_cmds_need_lc_GCJ=no 10103 hardcode_direct_GCJ=no 10104 hardcode_automatic_GCJ=yes 10105 hardcode_shlibpath_var_GCJ=unsupported 10106 whole_archive_flag_spec_GCJ='' 10107 link_all_deplibs_GCJ=yes 10108 if test "$GCC" = yes ; then 10109 output_verbose_link_cmd='echo' 10110 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10111 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10112 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10113 archive_expsym_cmds_GCJ='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}' 10114 module_expsym_cmds_GCJ='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}' 10115 else 10116 case $cc_basename in 10117 xlc*) 10118 output_verbose_link_cmd='echo' 10119 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10120 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10121 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10122 archive_expsym_cmds_GCJ='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}' 10123 module_expsym_cmds_GCJ='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}' 10124 ;; 10125 *) 10126 ld_shlibs_GCJ=no 10127 ;; 10128 esac 10129 fi 10130 ;; 10131 10132 dgux*) 10133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10134 hardcode_libdir_flag_spec_GCJ='-L$libdir' 10135 hardcode_shlibpath_var_GCJ=no 10136 ;; 10137 10138 freebsd1*) 10139 ld_shlibs_GCJ=no 10140 ;; 10141 10142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10143 # support. Future versions do this automatically, but an explicit c++rt0.o 10144 # does not break anything, and helps significantly (at the cost of a little 10145 # extra space). 10146 freebsd2.2*) 10147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10148 hardcode_libdir_flag_spec_GCJ='-R$libdir' 10149 hardcode_direct_GCJ=yes 10150 hardcode_shlibpath_var_GCJ=no 10151 ;; 10152 10153 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10154 freebsd2*) 10155 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10156 hardcode_direct_GCJ=yes 10157 hardcode_minus_L_GCJ=yes 10158 hardcode_shlibpath_var_GCJ=no 10159 ;; 10160 10161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10162 freebsd* | kfreebsd*-gnu | dragonfly*) 10163 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10164 hardcode_libdir_flag_spec_GCJ='-R$libdir' 10165 hardcode_direct_GCJ=yes 10166 hardcode_shlibpath_var_GCJ=no 10167 ;; 10168 10169 hpux9*) 10170 if test "$GCC" = yes; then 10171 archive_cmds_GCJ='$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' 10172 else 10173 archive_cmds_GCJ='$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' 10174 fi 10175 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 10176 hardcode_libdir_separator_GCJ=: 10177 hardcode_direct_GCJ=yes 10178 10179 # hardcode_minus_L: Not really in the search PATH, 10180 # but as the default location of the library. 10181 hardcode_minus_L_GCJ=yes 10182 export_dynamic_flag_spec_GCJ='${wl}-E' 10183 ;; 10184 10185 hpux10* | hpux11*) 10186 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10187 case $host_cpu in 10188 hppa*64*|ia64*) 10189 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10190 ;; 10191 *) 10192 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10193 ;; 10194 esac 10195 else 10196 case $host_cpu in 10197 hppa*64*|ia64*) 10198 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 10199 ;; 10200 *) 10201 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10202 ;; 10203 esac 10204 fi 10205 if test "$with_gnu_ld" = no; then 10206 case $host_cpu in 10207 hppa*64*) 10208 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 10209 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 10210 hardcode_libdir_separator_GCJ=: 10211 hardcode_direct_GCJ=no 10212 hardcode_shlibpath_var_GCJ=no 10213 ;; 10214 ia64*) 10215 hardcode_libdir_flag_spec_GCJ='-L$libdir' 10216 hardcode_direct_GCJ=no 10217 hardcode_shlibpath_var_GCJ=no 10218 10219 # hardcode_minus_L: Not really in the search PATH, 10220 # but as the default location of the library. 10221 hardcode_minus_L_GCJ=yes 10222 ;; 10223 *) 10224 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 10225 hardcode_libdir_separator_GCJ=: 10226 hardcode_direct_GCJ=yes 10227 export_dynamic_flag_spec_GCJ='${wl}-E' 10228 10229 # hardcode_minus_L: Not really in the search PATH, 10230 # but as the default location of the library. 10231 hardcode_minus_L_GCJ=yes 10232 ;; 10233 esac 10234 fi 10235 ;; 10236 10237 irix5* | irix6* | nonstopux*) 10238 if test "$GCC" = yes; then 10239 archive_cmds_GCJ='$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' 10240 else 10241 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10242 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 10243 fi 10244 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 10245 hardcode_libdir_separator_GCJ=: 10246 link_all_deplibs_GCJ=yes 10247 ;; 10248 10249 netbsd*) 10250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10251 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10252 else 10253 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10254 fi 10255 hardcode_libdir_flag_spec_GCJ='-R$libdir' 10256 hardcode_direct_GCJ=yes 10257 hardcode_shlibpath_var_GCJ=no 10258 ;; 10259 10260 newsos6) 10261 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10262 hardcode_direct_GCJ=yes 10263 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 10264 hardcode_libdir_separator_GCJ=: 10265 hardcode_shlibpath_var_GCJ=no 10266 ;; 10267 10268 openbsd*) 10269 hardcode_direct_GCJ=yes 10270 hardcode_shlibpath_var_GCJ=no 10271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10272 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10273 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10274 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 10275 export_dynamic_flag_spec_GCJ='${wl}-E' 10276 else 10277 case $host_os in 10278 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10279 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10280 hardcode_libdir_flag_spec_GCJ='-R$libdir' 10281 ;; 10282 *) 10283 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10284 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 10285 ;; 10286 esac 10287 fi 10288 ;; 10289 10290 os2*) 10291 hardcode_libdir_flag_spec_GCJ='-L$libdir' 10292 hardcode_minus_L_GCJ=yes 10293 allow_undefined_flag_GCJ=unsupported 10294 archive_cmds_GCJ='$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' 10295 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10296 ;; 10297 10298 osf3*) 10299 if test "$GCC" = yes; then 10300 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 10301 archive_cmds_GCJ='$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' 10302 else 10303 allow_undefined_flag_GCJ=' -expect_unresolved \*' 10304 archive_cmds_GCJ='$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' 10305 fi 10306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 10307 hardcode_libdir_separator_GCJ=: 10308 ;; 10309 10310 osf4* | osf5*) # as osf3* with the addition of -msym flag 10311 if test "$GCC" = yes; then 10312 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 10313 archive_cmds_GCJ='$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' 10314 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 10315 else 10316 allow_undefined_flag_GCJ=' -expect_unresolved \*' 10317 archive_cmds_GCJ='$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' 10318 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 10319 $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' 10320 10321 # Both c and cxx compiler support -rpath directly 10322 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 10323 fi 10324 hardcode_libdir_separator_GCJ=: 10325 ;; 10326 10327 sco3.2v5*) 10328 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10329 hardcode_shlibpath_var_GCJ=no 10330 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 10331 runpath_var=LD_RUN_PATH 10332 hardcode_runpath_var=yes 10333 ;; 10334 10335 solaris*) 10336 no_undefined_flag_GCJ=' -z text' 10337 if test "$GCC" = yes; then 10338 wlarc='${wl}' 10339 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10340 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10341 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 10342 else 10343 wlarc='' 10344 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10345 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10346 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10347 fi 10348 hardcode_libdir_flag_spec_GCJ='-R$libdir' 10349 hardcode_shlibpath_var_GCJ=no 10350 case $host_os in 10351 solaris2.[0-5] | solaris2.[0-5].*) ;; 10352 *) 10353 # The compiler driver will combine linker options so we 10354 # cannot just pass the convience library names through 10355 # without $wl, iff we do not link with $LD. 10356 # Luckily, gcc supports the same syntax we need for Sun Studio. 10357 # Supported since Solaris 2.6 (maybe 2.5.1?) 10358 case $wlarc in 10359 '') 10360 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 10361 *) 10362 whole_archive_flag_spec_GCJ='${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' ;; 10363 esac ;; 10364 esac 10365 link_all_deplibs_GCJ=yes 10366 ;; 10367 10368 sunos4*) 10369 if test "x$host_vendor" = xsequent; then 10370 # Use $CC to link under sequent, because it throws in some extra .o 10371 # files that make .init and .fini sections work. 10372 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10373 else 10374 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10375 fi 10376 hardcode_libdir_flag_spec_GCJ='-L$libdir' 10377 hardcode_direct_GCJ=yes 10378 hardcode_minus_L_GCJ=yes 10379 hardcode_shlibpath_var_GCJ=no 10380 ;; 10381 10382 sysv4) 10383 case $host_vendor in 10384 sni) 10385 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10386 hardcode_direct_GCJ=yes # is this really true??? 10387 ;; 10388 siemens) 10389 ## LD is ld it makes a PLAMLIB 10390 ## CC just makes a GrossModule. 10391 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10392 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 10393 hardcode_direct_GCJ=no 10394 ;; 10395 motorola) 10396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10397 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 10398 ;; 10399 esac 10400 runpath_var='LD_RUN_PATH' 10401 hardcode_shlibpath_var_GCJ=no 10402 ;; 10403 10404 sysv4.3*) 10405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10406 hardcode_shlibpath_var_GCJ=no 10407 export_dynamic_flag_spec_GCJ='-Bexport' 10408 ;; 10409 10410 sysv4*MP*) 10411 if test -d /usr/nec; then 10412 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10413 hardcode_shlibpath_var_GCJ=no 10414 runpath_var=LD_RUN_PATH 10415 hardcode_runpath_var=yes 10416 ld_shlibs_GCJ=yes 10417 fi 10418 ;; 10419 10420 sysv4.2uw2*) 10421 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10422 hardcode_direct_GCJ=yes 10423 hardcode_minus_L_GCJ=no 10424 hardcode_shlibpath_var_GCJ=no 10425 hardcode_runpath_var=yes 10426 runpath_var=LD_RUN_PATH 10427 ;; 10428 10429 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10430 no_undefined_flag_GCJ='${wl}-z ${wl}text' 10431 if test "$GCC" = yes; then 10432 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10433 else 10434 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10435 fi 10436 runpath_var='LD_RUN_PATH' 10437 hardcode_shlibpath_var_GCJ=no 10438 ;; 10439 10440 sysv5*) 10441 no_undefined_flag_GCJ=' -z text' 10442 # $CC -shared without GNU ld will not create a library from C++ 10443 # object files and a static libstdc++, better avoid it by now 10444 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10445 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10447 hardcode_libdir_flag_spec_GCJ= 10448 hardcode_shlibpath_var_GCJ=no 10449 runpath_var='LD_RUN_PATH' 10450 ;; 10451 10452 uts4*) 10453 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10454 hardcode_libdir_flag_spec_GCJ='-L$libdir' 10455 hardcode_shlibpath_var_GCJ=no 10456 ;; 10457 10458 *) 10459 ld_shlibs_GCJ=no 10460 ;; 10461 esac 10462 fi 10463 10464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 10465$as_echo "$ld_shlibs_GCJ" >&6; } 10466test "$ld_shlibs_GCJ" = no && can_build_shared=no 10467 10468variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10469if test "$GCC" = yes; then 10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10471fi 10472 10473# 10474# Do we need to explicitly link libc? 10475# 10476case "x$archive_cmds_need_lc_GCJ" in 10477x|xyes) 10478 # Assume -lc should be added 10479 archive_cmds_need_lc_GCJ=yes 10480 10481 if test "$enable_shared" = yes && test "$GCC" = yes; then 10482 case $archive_cmds_GCJ in 10483 *'~'*) 10484 # FIXME: we may have to deal with multi-command sequences. 10485 ;; 10486 '$CC '*) 10487 # Test whether the compiler implicitly links with -lc since on some 10488 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10489 # to ld, don't add -lc before -lgcc. 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10491$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10492 $rm conftest* 10493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10494 10495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10496 (eval $ac_compile) 2>&5 10497 ac_status=$? 10498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10499 test $ac_status = 0; } 2>conftest.err; then 10500 soname=conftest 10501 lib=conftest 10502 libobjs=conftest.$ac_objext 10503 deplibs= 10504 wl=$lt_prog_compiler_wl_GCJ 10505 compiler_flags=-v 10506 linker_flags=-v 10507 verstring= 10508 output_objdir=. 10509 libname=conftest 10510 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 10511 allow_undefined_flag_GCJ= 10512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10513 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10514 ac_status=$? 10515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10516 test $ac_status = 0; } 10517 then 10518 archive_cmds_need_lc_GCJ=no 10519 else 10520 archive_cmds_need_lc_GCJ=yes 10521 fi 10522 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 10523 else 10524 cat conftest.err 1>&5 10525 fi 10526 $rm conftest* 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 10528$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 10529 ;; 10530 esac 10531 fi 10532 ;; 10533esac 10534 10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10536$as_echo_n "checking dynamic linker characteristics... " >&6; } 10537library_names_spec= 10538libname_spec='lib$name' 10539soname_spec= 10540shrext_cmds=".so" 10541postinstall_cmds= 10542postuninstall_cmds= 10543finish_cmds= 10544finish_eval= 10545shlibpath_var= 10546shlibpath_overrides_runpath=unknown 10547version_type=none 10548dynamic_linker="$host_os ld.so" 10549sys_lib_dlsearch_path_spec="/lib /usr/lib" 10550if test "$GCC" = yes; then 10551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10553 # if the path contains ";" then we assume it to be the separator 10554 # otherwise default to the standard path separator (i.e. ":") - it is 10555 # assumed that no part of a normal pathname contains ";" but that should 10556 # okay in the real world where ";" in dirpaths is itself problematic. 10557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10558 else 10559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10560 fi 10561else 10562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10563fi 10564need_lib_prefix=unknown 10565hardcode_into_libs=no 10566 10567# when you set need_version to no, make sure it does not cause -set_version 10568# flags to be left without arguments 10569need_version=unknown 10570 10571case $host_os in 10572aix3*) 10573 version_type=linux 10574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10575 shlibpath_var=LIBPATH 10576 10577 # AIX 3 has no versioning support, so we append a major version to the name. 10578 soname_spec='${libname}${release}${shared_ext}$major' 10579 ;; 10580 10581aix4* | aix5*) 10582 version_type=linux 10583 need_lib_prefix=no 10584 need_version=no 10585 hardcode_into_libs=yes 10586 if test "$host_cpu" = ia64; then 10587 # AIX 5 supports IA64 10588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 else 10591 # With GCC up to 2.95.x, collect2 would create an import file 10592 # for dependence libraries. The import file would start with 10593 # the line `#! .'. This would cause the generated library to 10594 # depend on `.', always an invalid library. This was fixed in 10595 # development snapshots of GCC prior to 3.0. 10596 case $host_os in 10597 aix4 | aix4.[01] | aix4.[01].*) 10598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10599 echo ' yes ' 10600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10601 : 10602 else 10603 can_build_shared=no 10604 fi 10605 ;; 10606 esac 10607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10608 # soname into executable. Probably we can add versioning support to 10609 # collect2, so additional links can be useful in future. 10610 if test "$aix_use_runtimelinking" = yes; then 10611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10612 # instead of lib<name>.a to let people know that these are not 10613 # typical AIX shared libraries. 10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10615 else 10616 # We preserve .a as extension for shared libraries through AIX4.2 10617 # and later when we are not doing run time linking. 10618 library_names_spec='${libname}${release}.a $libname.a' 10619 soname_spec='${libname}${release}${shared_ext}$major' 10620 fi 10621 shlibpath_var=LIBPATH 10622 fi 10623 ;; 10624 10625amigaos*) 10626 library_names_spec='$libname.ixlibrary $libname.a' 10627 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10628 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10629 ;; 10630 10631beos*) 10632 library_names_spec='${libname}${shared_ext}' 10633 dynamic_linker="$host_os ld.so" 10634 shlibpath_var=LIBRARY_PATH 10635 ;; 10636 10637bsdi[45]*) 10638 version_type=linux 10639 need_version=no 10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10641 soname_spec='${libname}${release}${shared_ext}$major' 10642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10646 # the default ld.so.conf also contains /usr/contrib/lib and 10647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10648 # libtool to hard-code these into programs 10649 ;; 10650 10651cygwin* | mingw* | pw32*) 10652 version_type=windows 10653 shrext_cmds=".dll" 10654 need_version=no 10655 need_lib_prefix=no 10656 10657 case $GCC,$host_os in 10658 yes,cygwin* | yes,mingw* | yes,pw32*) 10659 library_names_spec='$libname.dll.a' 10660 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10661 postinstall_cmds='base_file=`basename \${file}`~ 10662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10663 dldir=$destdir/`dirname \$dlpath`~ 10664 test -d \$dldir || mkdir -p \$dldir~ 10665 $install_prog $dir/$dlname \$dldir/$dlname~ 10666 chmod a+x \$dldir/$dlname' 10667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10668 dlpath=$dir/\$dldll~ 10669 $rm \$dlpath' 10670 shlibpath_overrides_runpath=yes 10671 10672 case $host_os in 10673 cygwin*) 10674 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10677 ;; 10678 mingw*) 10679 # MinGW DLLs use traditional 'lib' prefix 10680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10683 # It is most probably a Windows format PATH printed by 10684 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10685 # path with ; separators, and with drive letters. We can handle the 10686 # drive letters (cygwin fileutils understands them), so leave them, 10687 # especially as we might pass files found there to a mingw objdump, 10688 # which wouldn't understand a cygwinified path. Ahh. 10689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10690 else 10691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10692 fi 10693 ;; 10694 pw32*) 10695 # pw32 DLLs use 'pw' prefix rather than 'lib' 10696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10697 ;; 10698 esac 10699 ;; 10700 10701 *) 10702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10703 ;; 10704 esac 10705 dynamic_linker='Win32 ld.exe' 10706 # FIXME: first we should search . and the directory the executable is in 10707 shlibpath_var=PATH 10708 ;; 10709 10710darwin* | rhapsody*) 10711 dynamic_linker="$host_os dyld" 10712 version_type=darwin 10713 need_lib_prefix=no 10714 need_version=no 10715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10716 soname_spec='${libname}${release}${major}$shared_ext' 10717 shlibpath_overrides_runpath=yes 10718 shlibpath_var=DYLD_LIBRARY_PATH 10719 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10721 if test "$GCC" = yes; then 10722 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 10723 else 10724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10725 fi 10726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10727 ;; 10728 10729dgux*) 10730 version_type=linux 10731 need_lib_prefix=no 10732 need_version=no 10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10734 soname_spec='${libname}${release}${shared_ext}$major' 10735 shlibpath_var=LD_LIBRARY_PATH 10736 ;; 10737 10738freebsd1*) 10739 dynamic_linker=no 10740 ;; 10741 10742kfreebsd*-gnu) 10743 version_type=linux 10744 need_lib_prefix=no 10745 need_version=no 10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10747 soname_spec='${libname}${release}${shared_ext}$major' 10748 shlibpath_var=LD_LIBRARY_PATH 10749 shlibpath_overrides_runpath=no 10750 hardcode_into_libs=yes 10751 dynamic_linker='GNU ld.so' 10752 ;; 10753 10754freebsd* | dragonfly*) 10755 # DragonFly does not have aout. When/if they implement a new 10756 # versioning mechanism, adjust this. 10757 if test -x /usr/bin/objformat; then 10758 objformat=`/usr/bin/objformat` 10759 else 10760 case $host_os in 10761 freebsd[123]*) objformat=aout ;; 10762 *) objformat=elf ;; 10763 esac 10764 fi 10765 version_type=freebsd-$objformat 10766 case $version_type in 10767 freebsd-elf*) 10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10769 need_version=no 10770 need_lib_prefix=no 10771 ;; 10772 freebsd-*) 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10774 need_version=yes 10775 ;; 10776 esac 10777 shlibpath_var=LD_LIBRARY_PATH 10778 case $host_os in 10779 freebsd2*) 10780 shlibpath_overrides_runpath=yes 10781 ;; 10782 freebsd3.[01]* | freebsdelf3.[01]*) 10783 shlibpath_overrides_runpath=yes 10784 hardcode_into_libs=yes 10785 ;; 10786 *) # from 3.2 on 10787 shlibpath_overrides_runpath=no 10788 hardcode_into_libs=yes 10789 ;; 10790 esac 10791 ;; 10792 10793gnu*) 10794 version_type=linux 10795 need_lib_prefix=no 10796 need_version=no 10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10798 soname_spec='${libname}${release}${shared_ext}$major' 10799 shlibpath_var=LD_LIBRARY_PATH 10800 hardcode_into_libs=yes 10801 ;; 10802 10803hpux9* | hpux10* | hpux11*) 10804 # Give a soname corresponding to the major version so that dld.sl refuses to 10805 # link against other versions. 10806 version_type=sunos 10807 need_lib_prefix=no 10808 need_version=no 10809 case $host_cpu in 10810 ia64*) 10811 shrext_cmds='.so' 10812 hardcode_into_libs=yes 10813 dynamic_linker="$host_os dld.so" 10814 shlibpath_var=LD_LIBRARY_PATH 10815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10817 soname_spec='${libname}${release}${shared_ext}$major' 10818 if test "X$HPUX_IA64_MODE" = X32; then 10819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10820 else 10821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10822 fi 10823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10824 ;; 10825 hppa*64*) 10826 shrext_cmds='.sl' 10827 hardcode_into_libs=yes 10828 dynamic_linker="$host_os dld.sl" 10829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10835 ;; 10836 *) 10837 shrext_cmds='.sl' 10838 dynamic_linker="$host_os dld.sl" 10839 shlibpath_var=SHLIB_PATH 10840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10842 soname_spec='${libname}${release}${shared_ext}$major' 10843 ;; 10844 esac 10845 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10846 postinstall_cmds='chmod 555 $lib' 10847 ;; 10848 10849irix5* | irix6* | nonstopux*) 10850 case $host_os in 10851 nonstopux*) version_type=nonstopux ;; 10852 *) 10853 if test "$lt_cv_prog_gnu_ld" = yes; then 10854 version_type=linux 10855 else 10856 version_type=irix 10857 fi ;; 10858 esac 10859 need_lib_prefix=no 10860 need_version=no 10861 soname_spec='${libname}${release}${shared_ext}$major' 10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10863 case $host_os in 10864 irix5* | nonstopux*) 10865 libsuff= shlibsuff= 10866 ;; 10867 *) 10868 case $LD in # libtool.m4 will add one of these switches to LD 10869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10870 libsuff= shlibsuff= libmagic=32-bit;; 10871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10872 libsuff=32 shlibsuff=N32 libmagic=N32;; 10873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10874 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10875 *) libsuff= shlibsuff= libmagic=never-match;; 10876 esac 10877 ;; 10878 esac 10879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10880 shlibpath_overrides_runpath=no 10881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10883 hardcode_into_libs=yes 10884 ;; 10885 10886# No shared lib support for Linux oldld, aout, or coff. 10887linux*oldld* | linux*aout* | linux*coff*) 10888 dynamic_linker=no 10889 ;; 10890 10891# This must be Linux ELF. 10892linux*) 10893 version_type=linux 10894 need_lib_prefix=no 10895 need_version=no 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10897 soname_spec='${libname}${release}${shared_ext}$major' 10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10899 shlibpath_var=LD_LIBRARY_PATH 10900 shlibpath_overrides_runpath=no 10901 # This implies no fast_install, which is unacceptable. 10902 # Some rework will be needed to allow for fast_install 10903 # before this can be enabled. 10904 hardcode_into_libs=yes 10905 10906 # Append ld.so.conf contents to the search path 10907 if test -f /etc/ld.so.conf; then 10908 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10910 fi 10911 10912 # We used to test for /lib/ld.so.1 and disable shared libraries on 10913 # powerpc, because MkLinux only supported shared libraries with the 10914 # GNU dynamic linker. Since this was broken with cross compilers, 10915 # most powerpc-linux boxes support dynamic linking these days and 10916 # people can always --disable-shared, the test was removed, and we 10917 # assume the GNU/Linux dynamic linker is in use. 10918 dynamic_linker='GNU/Linux ld.so' 10919 ;; 10920 10921knetbsd*-gnu) 10922 version_type=linux 10923 need_lib_prefix=no 10924 need_version=no 10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10926 soname_spec='${libname}${release}${shared_ext}$major' 10927 shlibpath_var=LD_LIBRARY_PATH 10928 shlibpath_overrides_runpath=no 10929 hardcode_into_libs=yes 10930 dynamic_linker='GNU ld.so' 10931 ;; 10932 10933netbsd*) 10934 version_type=sunos 10935 need_lib_prefix=no 10936 need_version=no 10937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10940 dynamic_linker='NetBSD (a.out) ld.so' 10941 else 10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10943 soname_spec='${libname}${release}${shared_ext}$major' 10944 dynamic_linker='NetBSD ld.elf_so' 10945 fi 10946 shlibpath_var=LD_LIBRARY_PATH 10947 shlibpath_overrides_runpath=yes 10948 hardcode_into_libs=yes 10949 ;; 10950 10951newsos6) 10952 version_type=linux 10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 shlibpath_overrides_runpath=yes 10956 ;; 10957 10958nto-qnx*) 10959 version_type=linux 10960 need_lib_prefix=no 10961 need_version=no 10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10963 soname_spec='${libname}${release}${shared_ext}$major' 10964 shlibpath_var=LD_LIBRARY_PATH 10965 shlibpath_overrides_runpath=yes 10966 ;; 10967 10968openbsd*) 10969 version_type=sunos 10970 need_lib_prefix=no 10971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10972 case $host_os in 10973 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10974 *) need_version=no ;; 10975 esac 10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10978 shlibpath_var=LD_LIBRARY_PATH 10979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10980 case $host_os in 10981 openbsd2.[89] | openbsd2.[89].*) 10982 shlibpath_overrides_runpath=no 10983 ;; 10984 *) 10985 shlibpath_overrides_runpath=yes 10986 ;; 10987 esac 10988 else 10989 shlibpath_overrides_runpath=yes 10990 fi 10991 ;; 10992 10993os2*) 10994 libname_spec='$name' 10995 shrext_cmds=".dll" 10996 need_lib_prefix=no 10997 library_names_spec='$libname${shared_ext} $libname.a' 10998 dynamic_linker='OS/2 ld.exe' 10999 shlibpath_var=LIBPATH 11000 ;; 11001 11002osf3* | osf4* | osf5*) 11003 version_type=osf 11004 need_lib_prefix=no 11005 need_version=no 11006 soname_spec='${libname}${release}${shared_ext}$major' 11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11008 shlibpath_var=LD_LIBRARY_PATH 11009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11011 ;; 11012 11013sco3.2v5*) 11014 version_type=osf 11015 soname_spec='${libname}${release}${shared_ext}$major' 11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11017 shlibpath_var=LD_LIBRARY_PATH 11018 ;; 11019 11020solaris*) 11021 version_type=linux 11022 need_lib_prefix=no 11023 need_version=no 11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11025 soname_spec='${libname}${release}${shared_ext}$major' 11026 shlibpath_var=LD_LIBRARY_PATH 11027 shlibpath_overrides_runpath=yes 11028 hardcode_into_libs=yes 11029 # ldd complains unless libraries are executable 11030 postinstall_cmds='chmod +x $lib' 11031 ;; 11032 11033sunos4*) 11034 version_type=sunos 11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11037 shlibpath_var=LD_LIBRARY_PATH 11038 shlibpath_overrides_runpath=yes 11039 if test "$with_gnu_ld" = yes; then 11040 need_lib_prefix=no 11041 fi 11042 need_version=yes 11043 ;; 11044 11045sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11046 version_type=linux 11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11048 soname_spec='${libname}${release}${shared_ext}$major' 11049 shlibpath_var=LD_LIBRARY_PATH 11050 case $host_vendor in 11051 sni) 11052 shlibpath_overrides_runpath=no 11053 need_lib_prefix=no 11054 export_dynamic_flag_spec='${wl}-Blargedynsym' 11055 runpath_var=LD_RUN_PATH 11056 ;; 11057 siemens) 11058 need_lib_prefix=no 11059 ;; 11060 motorola) 11061 need_lib_prefix=no 11062 need_version=no 11063 shlibpath_overrides_runpath=no 11064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11065 ;; 11066 esac 11067 ;; 11068 11069sysv4*MP*) 11070 if test -d /usr/nec ;then 11071 version_type=linux 11072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11073 soname_spec='$libname${shared_ext}.$major' 11074 shlibpath_var=LD_LIBRARY_PATH 11075 fi 11076 ;; 11077 11078uts4*) 11079 version_type=linux 11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11081 soname_spec='${libname}${release}${shared_ext}$major' 11082 shlibpath_var=LD_LIBRARY_PATH 11083 ;; 11084 11085*) 11086 dynamic_linker=no 11087 ;; 11088esac 11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11090$as_echo "$dynamic_linker" >&6; } 11091test "$dynamic_linker" = no && can_build_shared=no 11092 11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11094$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11095hardcode_action_GCJ= 11096if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 11097 test -n "$runpath_var_GCJ" || \ 11098 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 11099 11100 # We can hardcode non-existant directories. 11101 if test "$hardcode_direct_GCJ" != no && 11102 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11103 # have to relink, otherwise we might link with an installed library 11104 # when we should be linking with a yet-to-be-installed one 11105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 11106 test "$hardcode_minus_L_GCJ" != no; then 11107 # Linking always hardcodes the temporary library directory. 11108 hardcode_action_GCJ=relink 11109 else 11110 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11111 hardcode_action_GCJ=immediate 11112 fi 11113else 11114 # We cannot hardcode anything, or else we can only hardcode existing 11115 # directories. 11116 hardcode_action_GCJ=unsupported 11117fi 11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 11119$as_echo "$hardcode_action_GCJ" >&6; } 11120 11121if test "$hardcode_action_GCJ" = relink; then 11122 # Fast installation is not supported 11123 enable_fast_install=no 11124elif test "$shlibpath_overrides_runpath" = yes || 11125 test "$enable_shared" = no; then 11126 # Fast installation is not necessary 11127 enable_fast_install=needless 11128fi 11129 11130striplib= 11131old_striplib= 11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11133$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11134if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11136 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11138$as_echo "yes" >&6; } 11139else 11140# FIXME - insert some real tests, host_os isn't really good enough 11141 case $host_os in 11142 darwin*) 11143 if test -n "$STRIP" ; then 11144 striplib="$STRIP -x" 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11146$as_echo "yes" >&6; } 11147 else 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11149$as_echo "no" >&6; } 11150fi 11151 ;; 11152 *) 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11154$as_echo "no" >&6; } 11155 ;; 11156 esac 11157fi 11158 11159if test "x$enable_dlopen" != xyes; then 11160 enable_dlopen=unknown 11161 enable_dlopen_self=unknown 11162 enable_dlopen_self_static=unknown 11163else 11164 lt_cv_dlopen=no 11165 lt_cv_dlopen_libs= 11166 11167 case $host_os in 11168 beos*) 11169 lt_cv_dlopen="load_add_on" 11170 lt_cv_dlopen_libs= 11171 lt_cv_dlopen_self=yes 11172 ;; 11173 11174 mingw* | pw32*) 11175 lt_cv_dlopen="LoadLibrary" 11176 lt_cv_dlopen_libs= 11177 ;; 11178 11179 cygwin*) 11180 lt_cv_dlopen="dlopen" 11181 lt_cv_dlopen_libs= 11182 ;; 11183 11184 darwin*) 11185 # if libdl is installed we need to link against it 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11187$as_echo_n "checking for dlopen in -ldl... " >&6; } 11188if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 ac_check_lib_save_LIBS=$LIBS 11192LIBS="-ldl $LIBS" 11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195 11196/* Override any GCC internal prototype to avoid an error. 11197 Use char because int might match the return type of a GCC 11198 builtin and then its argument prototype would still apply. */ 11199#ifdef __cplusplus 11200extern "C" 11201#endif 11202char dlopen (); 11203int 11204main () 11205{ 11206return dlopen (); 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211if ac_fn_c_try_link "$LINENO"; then : 11212 ac_cv_lib_dl_dlopen=yes 11213else 11214 ac_cv_lib_dl_dlopen=no 11215fi 11216rm -f core conftest.err conftest.$ac_objext \ 11217 conftest$ac_exeext conftest.$ac_ext 11218LIBS=$ac_check_lib_save_LIBS 11219fi 11220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11221$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11222if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11224else 11225 11226 lt_cv_dlopen="dyld" 11227 lt_cv_dlopen_libs= 11228 lt_cv_dlopen_self=yes 11229 11230fi 11231 11232 ;; 11233 11234 *) 11235 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11236if test "x$ac_cv_func_shl_load" = x""yes; then : 11237 lt_cv_dlopen="shl_load" 11238else 11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11240$as_echo_n "checking for shl_load in -ldld... " >&6; } 11241if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11242 $as_echo_n "(cached) " >&6 11243else 11244 ac_check_lib_save_LIBS=$LIBS 11245LIBS="-ldld $LIBS" 11246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11247/* end confdefs.h. */ 11248 11249/* Override any GCC internal prototype to avoid an error. 11250 Use char because int might match the return type of a GCC 11251 builtin and then its argument prototype would still apply. */ 11252#ifdef __cplusplus 11253extern "C" 11254#endif 11255char shl_load (); 11256int 11257main () 11258{ 11259return shl_load (); 11260 ; 11261 return 0; 11262} 11263_ACEOF 11264if ac_fn_c_try_link "$LINENO"; then : 11265 ac_cv_lib_dld_shl_load=yes 11266else 11267 ac_cv_lib_dld_shl_load=no 11268fi 11269rm -f core conftest.err conftest.$ac_objext \ 11270 conftest$ac_exeext conftest.$ac_ext 11271LIBS=$ac_check_lib_save_LIBS 11272fi 11273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11274$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11275if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11276 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11277else 11278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11279if test "x$ac_cv_func_dlopen" = x""yes; then : 11280 lt_cv_dlopen="dlopen" 11281else 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11283$as_echo_n "checking for dlopen in -ldl... " >&6; } 11284if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11285 $as_echo_n "(cached) " >&6 11286else 11287 ac_check_lib_save_LIBS=$LIBS 11288LIBS="-ldl $LIBS" 11289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11290/* end confdefs.h. */ 11291 11292/* Override any GCC internal prototype to avoid an error. 11293 Use char because int might match the return type of a GCC 11294 builtin and then its argument prototype would still apply. */ 11295#ifdef __cplusplus 11296extern "C" 11297#endif 11298char dlopen (); 11299int 11300main () 11301{ 11302return dlopen (); 11303 ; 11304 return 0; 11305} 11306_ACEOF 11307if ac_fn_c_try_link "$LINENO"; then : 11308 ac_cv_lib_dl_dlopen=yes 11309else 11310 ac_cv_lib_dl_dlopen=no 11311fi 11312rm -f core conftest.err conftest.$ac_objext \ 11313 conftest$ac_exeext conftest.$ac_ext 11314LIBS=$ac_check_lib_save_LIBS 11315fi 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11317$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11318if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11320else 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11322$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11323if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11324 $as_echo_n "(cached) " >&6 11325else 11326 ac_check_lib_save_LIBS=$LIBS 11327LIBS="-lsvld $LIBS" 11328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11329/* end confdefs.h. */ 11330 11331/* Override any GCC internal prototype to avoid an error. 11332 Use char because int might match the return type of a GCC 11333 builtin and then its argument prototype would still apply. */ 11334#ifdef __cplusplus 11335extern "C" 11336#endif 11337char dlopen (); 11338int 11339main () 11340{ 11341return dlopen (); 11342 ; 11343 return 0; 11344} 11345_ACEOF 11346if ac_fn_c_try_link "$LINENO"; then : 11347 ac_cv_lib_svld_dlopen=yes 11348else 11349 ac_cv_lib_svld_dlopen=no 11350fi 11351rm -f core conftest.err conftest.$ac_objext \ 11352 conftest$ac_exeext conftest.$ac_ext 11353LIBS=$ac_check_lib_save_LIBS 11354fi 11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11356$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11357if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11358 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11359else 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11361$as_echo_n "checking for dld_link in -ldld... " >&6; } 11362if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11363 $as_echo_n "(cached) " >&6 11364else 11365 ac_check_lib_save_LIBS=$LIBS 11366LIBS="-ldld $LIBS" 11367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11368/* end confdefs.h. */ 11369 11370/* Override any GCC internal prototype to avoid an error. 11371 Use char because int might match the return type of a GCC 11372 builtin and then its argument prototype would still apply. */ 11373#ifdef __cplusplus 11374extern "C" 11375#endif 11376char dld_link (); 11377int 11378main () 11379{ 11380return dld_link (); 11381 ; 11382 return 0; 11383} 11384_ACEOF 11385if ac_fn_c_try_link "$LINENO"; then : 11386 ac_cv_lib_dld_dld_link=yes 11387else 11388 ac_cv_lib_dld_dld_link=no 11389fi 11390rm -f core conftest.err conftest.$ac_objext \ 11391 conftest$ac_exeext conftest.$ac_ext 11392LIBS=$ac_check_lib_save_LIBS 11393fi 11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11395$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11396if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11397 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11398fi 11399 11400 11401fi 11402 11403 11404fi 11405 11406 11407fi 11408 11409 11410fi 11411 11412 11413fi 11414 11415 ;; 11416 esac 11417 11418 if test "x$lt_cv_dlopen" != xno; then 11419 enable_dlopen=yes 11420 else 11421 enable_dlopen=no 11422 fi 11423 11424 case $lt_cv_dlopen in 11425 dlopen) 11426 save_CPPFLAGS="$CPPFLAGS" 11427 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11428 11429 save_LDFLAGS="$LDFLAGS" 11430 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11431 11432 save_LIBS="$LIBS" 11433 LIBS="$lt_cv_dlopen_libs $LIBS" 11434 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11436$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11437if test "${lt_cv_dlopen_self+set}" = set; then : 11438 $as_echo_n "(cached) " >&6 11439else 11440 if test "$cross_compiling" = yes; then : 11441 lt_cv_dlopen_self=cross 11442else 11443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11444 lt_status=$lt_dlunknown 11445 cat > conftest.$ac_ext <<EOF 11446#line 11446 "configure" 11447#include "confdefs.h" 11448 11449#if HAVE_DLFCN_H 11450#include <dlfcn.h> 11451#endif 11452 11453#include <stdio.h> 11454 11455#ifdef RTLD_GLOBAL 11456# define LT_DLGLOBAL RTLD_GLOBAL 11457#else 11458# ifdef DL_GLOBAL 11459# define LT_DLGLOBAL DL_GLOBAL 11460# else 11461# define LT_DLGLOBAL 0 11462# endif 11463#endif 11464 11465/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11466 find out it does not work in some platform. */ 11467#ifndef LT_DLLAZY_OR_NOW 11468# ifdef RTLD_LAZY 11469# define LT_DLLAZY_OR_NOW RTLD_LAZY 11470# else 11471# ifdef DL_LAZY 11472# define LT_DLLAZY_OR_NOW DL_LAZY 11473# else 11474# ifdef RTLD_NOW 11475# define LT_DLLAZY_OR_NOW RTLD_NOW 11476# else 11477# ifdef DL_NOW 11478# define LT_DLLAZY_OR_NOW DL_NOW 11479# else 11480# define LT_DLLAZY_OR_NOW 0 11481# endif 11482# endif 11483# endif 11484# endif 11485#endif 11486 11487#ifdef __cplusplus 11488extern "C" void exit (int); 11489#endif 11490 11491void fnord() { int i=42;} 11492int main () 11493{ 11494 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11495 int status = $lt_dlunknown; 11496 11497 if (self) 11498 { 11499 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11500 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11501 /* dlclose (self); */ 11502 } 11503 11504 exit (status); 11505} 11506EOF 11507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11508 (eval $ac_link) 2>&5 11509 ac_status=$? 11510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11511 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11512 (./conftest; exit; ) >&5 2>/dev/null 11513 lt_status=$? 11514 case x$lt_status in 11515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11517 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11518 esac 11519 else : 11520 # compilation failed 11521 lt_cv_dlopen_self=no 11522 fi 11523fi 11524rm -fr conftest* 11525 11526 11527fi 11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11529$as_echo "$lt_cv_dlopen_self" >&6; } 11530 11531 if test "x$lt_cv_dlopen_self" = xyes; then 11532 LDFLAGS="$LDFLAGS $link_static_flag" 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11534$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11535if test "${lt_cv_dlopen_self_static+set}" = set; then : 11536 $as_echo_n "(cached) " >&6 11537else 11538 if test "$cross_compiling" = yes; then : 11539 lt_cv_dlopen_self_static=cross 11540else 11541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11542 lt_status=$lt_dlunknown 11543 cat > conftest.$ac_ext <<EOF 11544#line 11544 "configure" 11545#include "confdefs.h" 11546 11547#if HAVE_DLFCN_H 11548#include <dlfcn.h> 11549#endif 11550 11551#include <stdio.h> 11552 11553#ifdef RTLD_GLOBAL 11554# define LT_DLGLOBAL RTLD_GLOBAL 11555#else 11556# ifdef DL_GLOBAL 11557# define LT_DLGLOBAL DL_GLOBAL 11558# else 11559# define LT_DLGLOBAL 0 11560# endif 11561#endif 11562 11563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11564 find out it does not work in some platform. */ 11565#ifndef LT_DLLAZY_OR_NOW 11566# ifdef RTLD_LAZY 11567# define LT_DLLAZY_OR_NOW RTLD_LAZY 11568# else 11569# ifdef DL_LAZY 11570# define LT_DLLAZY_OR_NOW DL_LAZY 11571# else 11572# ifdef RTLD_NOW 11573# define LT_DLLAZY_OR_NOW RTLD_NOW 11574# else 11575# ifdef DL_NOW 11576# define LT_DLLAZY_OR_NOW DL_NOW 11577# else 11578# define LT_DLLAZY_OR_NOW 0 11579# endif 11580# endif 11581# endif 11582# endif 11583#endif 11584 11585#ifdef __cplusplus 11586extern "C" void exit (int); 11587#endif 11588 11589void fnord() { int i=42;} 11590int main () 11591{ 11592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11593 int status = $lt_dlunknown; 11594 11595 if (self) 11596 { 11597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11599 /* dlclose (self); */ 11600 } 11601 11602 exit (status); 11603} 11604EOF 11605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11606 (eval $ac_link) 2>&5 11607 ac_status=$? 11608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11609 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11610 (./conftest; exit; ) >&5 2>/dev/null 11611 lt_status=$? 11612 case x$lt_status in 11613 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11614 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11615 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11616 esac 11617 else : 11618 # compilation failed 11619 lt_cv_dlopen_self_static=no 11620 fi 11621fi 11622rm -fr conftest* 11623 11624 11625fi 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11627$as_echo "$lt_cv_dlopen_self_static" >&6; } 11628 fi 11629 11630 CPPFLAGS="$save_CPPFLAGS" 11631 LDFLAGS="$save_LDFLAGS" 11632 LIBS="$save_LIBS" 11633 ;; 11634 esac 11635 11636 case $lt_cv_dlopen_self in 11637 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11638 *) enable_dlopen_self=unknown ;; 11639 esac 11640 11641 case $lt_cv_dlopen_self_static in 11642 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11643 *) enable_dlopen_self_static=unknown ;; 11644 esac 11645fi 11646 11647 11648# The else clause should only fire when bootstrapping the 11649# libtool distribution, otherwise you forgot to ship ltmain.sh 11650# with your package, and you will get complaints that there are 11651# no rules to generate ltmain.sh. 11652if test -f "$ltmain"; then 11653 # See if we are running on zsh, and set the options which allow our commands through 11654 # without removal of \ escapes. 11655 if test -n "${ZSH_VERSION+set}" ; then 11656 setopt NO_GLOB_SUBST 11657 fi 11658 # Now quote all the things that may contain metacharacters while being 11659 # careful not to overquote the AC_SUBSTed values. We take copies of the 11660 # variables and quote the copies for generation of the libtool script. 11661 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 11662 SED SHELL STRIP \ 11663 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11664 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11665 deplibs_check_method reload_flag reload_cmds need_locks \ 11666 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11667 lt_cv_sys_global_symbol_to_c_name_address \ 11668 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11669 old_postinstall_cmds old_postuninstall_cmds \ 11670 compiler_GCJ \ 11671 CC_GCJ \ 11672 LD_GCJ \ 11673 lt_prog_compiler_wl_GCJ \ 11674 lt_prog_compiler_pic_GCJ \ 11675 lt_prog_compiler_static_GCJ \ 11676 lt_prog_compiler_no_builtin_flag_GCJ \ 11677 export_dynamic_flag_spec_GCJ \ 11678 thread_safe_flag_spec_GCJ \ 11679 whole_archive_flag_spec_GCJ \ 11680 enable_shared_with_static_runtimes_GCJ \ 11681 old_archive_cmds_GCJ \ 11682 old_archive_from_new_cmds_GCJ \ 11683 predep_objects_GCJ \ 11684 postdep_objects_GCJ \ 11685 predeps_GCJ \ 11686 postdeps_GCJ \ 11687 compiler_lib_search_path_GCJ \ 11688 archive_cmds_GCJ \ 11689 archive_expsym_cmds_GCJ \ 11690 postinstall_cmds_GCJ \ 11691 postuninstall_cmds_GCJ \ 11692 old_archive_from_expsyms_cmds_GCJ \ 11693 allow_undefined_flag_GCJ \ 11694 no_undefined_flag_GCJ \ 11695 export_symbols_cmds_GCJ \ 11696 hardcode_libdir_flag_spec_GCJ \ 11697 hardcode_libdir_flag_spec_ld_GCJ \ 11698 hardcode_libdir_separator_GCJ \ 11699 hardcode_automatic_GCJ \ 11700 module_cmds_GCJ \ 11701 module_expsym_cmds_GCJ \ 11702 lt_cv_prog_compiler_c_o_GCJ \ 11703 exclude_expsyms_GCJ \ 11704 include_expsyms_GCJ; do 11705 11706 case $var in 11707 old_archive_cmds_GCJ | \ 11708 old_archive_from_new_cmds_GCJ | \ 11709 archive_cmds_GCJ | \ 11710 archive_expsym_cmds_GCJ | \ 11711 module_cmds_GCJ | \ 11712 module_expsym_cmds_GCJ | \ 11713 old_archive_from_expsyms_cmds_GCJ | \ 11714 export_symbols_cmds_GCJ | \ 11715 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11716 postinstall_cmds | postuninstall_cmds | \ 11717 old_postinstall_cmds | old_postuninstall_cmds | \ 11718 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11719 # Double-quote double-evaled strings. 11720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11721 ;; 11722 *) 11723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11724 ;; 11725 esac 11726 done 11727 11728 case $lt_echo in 11729 *'\$0 --fallback-echo"') 11730 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11731 ;; 11732 esac 11733 11734cfgfile="$ofile" 11735 11736 cat <<__EOF__ >> "$cfgfile" 11737# ### BEGIN LIBTOOL TAG CONFIG: $tagname 11738 11739# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11740 11741# Shell to use when invoking shell scripts. 11742SHELL=$lt_SHELL 11743 11744# Whether or not to build shared libraries. 11745build_libtool_libs=$enable_shared 11746 11747# Whether or not to build static libraries. 11748build_old_libs=$enable_static 11749 11750# Whether or not to add -lc for building shared libraries. 11751build_libtool_need_lc=$archive_cmds_need_lc_GCJ 11752 11753# Whether or not to disallow shared libs when runtime libs are static 11754allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 11755 11756# Whether or not to optimize for fast installation. 11757fast_install=$enable_fast_install 11758 11759# The host system. 11760host_alias=$host_alias 11761host=$host 11762host_os=$host_os 11763 11764# The build system. 11765build_alias=$build_alias 11766build=$build 11767build_os=$build_os 11768 11769# An echo program that does not interpret backslashes. 11770echo=$lt_echo 11771 11772# The archiver. 11773AR=$lt_AR 11774AR_FLAGS=$lt_AR_FLAGS 11775 11776# A C compiler. 11777LTCC=$lt_LTCC 11778 11779# A language-specific compiler. 11780CC=$lt_compiler_GCJ 11781 11782# Is the compiler the GNU C compiler? 11783with_gcc=$GCC_GCJ 11784 11785# An ERE matcher. 11786EGREP=$lt_EGREP 11787 11788# The linker used to build libraries. 11789LD=$lt_LD_GCJ 11790 11791# Whether we need hard or soft links. 11792LN_S=$lt_LN_S 11793 11794# A BSD-compatible nm program. 11795NM=$lt_NM 11796 11797# A symbol stripping program 11798STRIP=$lt_STRIP 11799 11800# Used to examine libraries when file_magic_cmd begins "file" 11801MAGIC_CMD=$MAGIC_CMD 11802 11803# Used on cygwin: DLL creation program. 11804DLLTOOL="$DLLTOOL" 11805 11806# Used on cygwin: object dumper. 11807OBJDUMP="$OBJDUMP" 11808 11809# Used on cygwin: assembler. 11810AS="$AS" 11811 11812# The name of the directory that contains temporary libtool files. 11813objdir=$objdir 11814 11815# How to create reloadable object files. 11816reload_flag=$lt_reload_flag 11817reload_cmds=$lt_reload_cmds 11818 11819# How to pass a linker flag through the compiler. 11820wl=$lt_lt_prog_compiler_wl_GCJ 11821 11822# Object file suffix (normally "o"). 11823objext="$ac_objext" 11824 11825# Old archive suffix (normally "a"). 11826libext="$libext" 11827 11828# Shared library suffix (normally ".so"). 11829shrext_cmds='$shrext_cmds' 11830 11831# Executable file suffix (normally ""). 11832exeext="$exeext" 11833 11834# Additional compiler flags for building library objects. 11835pic_flag=$lt_lt_prog_compiler_pic_GCJ 11836pic_mode=$pic_mode 11837 11838# What is the maximum length of a command? 11839max_cmd_len=$lt_cv_sys_max_cmd_len 11840 11841# Does compiler simultaneously support -c and -o options? 11842compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 11843 11844# Must we lock files when doing compilation? 11845need_locks=$lt_need_locks 11846 11847# Do we need the lib prefix for modules? 11848need_lib_prefix=$need_lib_prefix 11849 11850# Do we need a version for libraries? 11851need_version=$need_version 11852 11853# Whether dlopen is supported. 11854dlopen_support=$enable_dlopen 11855 11856# Whether dlopen of programs is supported. 11857dlopen_self=$enable_dlopen_self 11858 11859# Whether dlopen of statically linked programs is supported. 11860dlopen_self_static=$enable_dlopen_self_static 11861 11862# Compiler flag to prevent dynamic linking. 11863link_static_flag=$lt_lt_prog_compiler_static_GCJ 11864 11865# Compiler flag to turn off builtin functions. 11866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 11867 11868# Compiler flag to allow reflexive dlopens. 11869export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 11870 11871# Compiler flag to generate shared objects directly from archives. 11872whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 11873 11874# Compiler flag to generate thread-safe objects. 11875thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 11876 11877# Library versioning type. 11878version_type=$version_type 11879 11880# Format of library name prefix. 11881libname_spec=$lt_libname_spec 11882 11883# List of archive names. First name is the real one, the rest are links. 11884# The last name is the one that the linker finds with -lNAME. 11885library_names_spec=$lt_library_names_spec 11886 11887# The coded name of the library, if different from the real name. 11888soname_spec=$lt_soname_spec 11889 11890# Commands used to build and install an old-style archive. 11891RANLIB=$lt_RANLIB 11892old_archive_cmds=$lt_old_archive_cmds_GCJ 11893old_postinstall_cmds=$lt_old_postinstall_cmds 11894old_postuninstall_cmds=$lt_old_postuninstall_cmds 11895 11896# Create an old-style archive from a shared archive. 11897old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 11898 11899# Create a temporary old-style archive to link instead of a shared archive. 11900old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 11901 11902# Commands used to build and install a shared archive. 11903archive_cmds=$lt_archive_cmds_GCJ 11904archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 11905postinstall_cmds=$lt_postinstall_cmds 11906postuninstall_cmds=$lt_postuninstall_cmds 11907 11908# Commands used to build a loadable module (assumed same as above if empty) 11909module_cmds=$lt_module_cmds_GCJ 11910module_expsym_cmds=$lt_module_expsym_cmds_GCJ 11911 11912# Commands to strip libraries. 11913old_striplib=$lt_old_striplib 11914striplib=$lt_striplib 11915 11916# Dependencies to place before the objects being linked to create a 11917# shared library. 11918predep_objects=$lt_predep_objects_GCJ 11919 11920# Dependencies to place after the objects being linked to create a 11921# shared library. 11922postdep_objects=$lt_postdep_objects_GCJ 11923 11924# Dependencies to place before the objects being linked to create a 11925# shared library. 11926predeps=$lt_predeps_GCJ 11927 11928# Dependencies to place after the objects being linked to create a 11929# shared library. 11930postdeps=$lt_postdeps_GCJ 11931 11932# The library search path used internally by the compiler when linking 11933# a shared library. 11934compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 11935 11936# Method to check whether dependent libraries are shared objects. 11937deplibs_check_method=$lt_deplibs_check_method 11938 11939# Command to use when deplibs_check_method == file_magic. 11940file_magic_cmd=$lt_file_magic_cmd 11941 11942# Flag that allows shared libraries with undefined symbols to be built. 11943allow_undefined_flag=$lt_allow_undefined_flag_GCJ 11944 11945# Flag that forces no undefined symbols. 11946no_undefined_flag=$lt_no_undefined_flag_GCJ 11947 11948# Commands used to finish a libtool library installation in a directory. 11949finish_cmds=$lt_finish_cmds 11950 11951# Same as above, but a single script fragment to be evaled but not shown. 11952finish_eval=$lt_finish_eval 11953 11954# Take the output of nm and produce a listing of raw symbols and C names. 11955global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11956 11957# Transform the output of nm in a proper C declaration 11958global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11959 11960# Transform the output of nm in a C name address pair 11961global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11962 11963# This is the shared library runtime path variable. 11964runpath_var=$runpath_var 11965 11966# This is the shared library path variable. 11967shlibpath_var=$shlibpath_var 11968 11969# Is shlibpath searched before the hard-coded library search path? 11970shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11971 11972# How to hardcode a shared library path into an executable. 11973hardcode_action=$hardcode_action_GCJ 11974 11975# Whether we should hardcode library paths into libraries. 11976hardcode_into_libs=$hardcode_into_libs 11977 11978# Flag to hardcode \$libdir into a binary during linking. 11979# This must work even if \$libdir does not exist. 11980hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 11981 11982# If ld is used when linking, flag to hardcode \$libdir into 11983# a binary during linking. This must work even if \$libdir does 11984# not exist. 11985hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 11986 11987# Whether we need a single -rpath flag with a separated argument. 11988hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 11989 11990# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11991# resulting binary. 11992hardcode_direct=$hardcode_direct_GCJ 11993 11994# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11995# resulting binary. 11996hardcode_minus_L=$hardcode_minus_L_GCJ 11997 11998# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11999# the resulting binary. 12000hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 12001 12002# Set to yes if building a shared library automatically hardcodes DIR into the library 12003# and all subsequent libraries and executables linked against it. 12004hardcode_automatic=$hardcode_automatic_GCJ 12005 12006# Variables whose values should be saved in libtool wrapper scripts and 12007# restored at relink time. 12008variables_saved_for_relink="$variables_saved_for_relink" 12009 12010# Whether libtool must link a program against all its dependency libraries. 12011link_all_deplibs=$link_all_deplibs_GCJ 12012 12013# Compile-time system search path for libraries 12014sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12015 12016# Run-time system search path for libraries 12017sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12018 12019# Fix the shell variable \$srcfile for the compiler. 12020fix_srcfile_path="$fix_srcfile_path_GCJ" 12021 12022# Set to yes if exported symbols are required. 12023always_export_symbols=$always_export_symbols_GCJ 12024 12025# The commands to list exported symbols. 12026export_symbols_cmds=$lt_export_symbols_cmds_GCJ 12027 12028# The commands to extract the exported symbol list from a shared archive. 12029extract_expsyms_cmds=$lt_extract_expsyms_cmds 12030 12031# Symbols that should not be listed in the preloaded symbols. 12032exclude_expsyms=$lt_exclude_expsyms_GCJ 12033 12034# Symbols that must always be exported. 12035include_expsyms=$lt_include_expsyms_GCJ 12036 12037# ### END LIBTOOL TAG CONFIG: $tagname 12038 12039__EOF__ 12040 12041 12042else 12043 # If there is no Makefile yet, we rely on a make rule to execute 12044 # `config.status --recheck' to rerun these tests and create the 12045 # libtool script then. 12046 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12047 if test -f "$ltmain_in"; then 12048 test -f Makefile && make "$ltmain" 12049 fi 12050fi 12051 12052 12053ac_ext=c 12054ac_cpp='$CPP $CPPFLAGS' 12055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12057ac_compiler_gnu=$ac_cv_c_compiler_gnu 12058 12059CC="$lt_save_CC" 12060 12061 else 12062 tagname="" 12063 fi 12064 ;; 12065 12066 RC) 12067 12068 12069# Source file extension for RC test sources. 12070ac_ext=rc 12071 12072# Object file extension for compiled RC test sources. 12073objext=o 12074objext_RC=$objext 12075 12076# Code to be used in simple compile tests 12077lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 12078 12079# Code to be used in simple link tests 12080lt_simple_link_test_code="$lt_simple_compile_test_code" 12081 12082# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12083 12084# If no C compiler was specified, use CC. 12085LTCC=${LTCC-"$CC"} 12086 12087# Allow CC to be a program name with arguments. 12088compiler=$CC 12089 12090 12091# save warnings/boilerplate of simple test code 12092ac_outfile=conftest.$ac_objext 12093printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12094eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 12095_lt_compiler_boilerplate=`cat conftest.err` 12096$rm conftest* 12097 12098ac_outfile=conftest.$ac_objext 12099printf "$lt_simple_link_test_code" >conftest.$ac_ext 12100eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 12101_lt_linker_boilerplate=`cat conftest.err` 12102$rm conftest* 12103 12104 12105# Allow CC to be a program name with arguments. 12106lt_save_CC="$CC" 12107CC=${RC-"windres"} 12108compiler=$CC 12109compiler_RC=$CC 12110for cc_temp in $compiler""; do 12111 case $cc_temp in 12112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12114 \-*) ;; 12115 *) break;; 12116 esac 12117done 12118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12119 12120lt_cv_prog_compiler_c_o_RC=yes 12121 12122# The else clause should only fire when bootstrapping the 12123# libtool distribution, otherwise you forgot to ship ltmain.sh 12124# with your package, and you will get complaints that there are 12125# no rules to generate ltmain.sh. 12126if test -f "$ltmain"; then 12127 # See if we are running on zsh, and set the options which allow our commands through 12128 # without removal of \ escapes. 12129 if test -n "${ZSH_VERSION+set}" ; then 12130 setopt NO_GLOB_SUBST 12131 fi 12132 # Now quote all the things that may contain metacharacters while being 12133 # careful not to overquote the AC_SUBSTed values. We take copies of the 12134 # variables and quote the copies for generation of the libtool script. 12135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12136 SED SHELL STRIP \ 12137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12139 deplibs_check_method reload_flag reload_cmds need_locks \ 12140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12141 lt_cv_sys_global_symbol_to_c_name_address \ 12142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12143 old_postinstall_cmds old_postuninstall_cmds \ 12144 compiler_RC \ 12145 CC_RC \ 12146 LD_RC \ 12147 lt_prog_compiler_wl_RC \ 12148 lt_prog_compiler_pic_RC \ 12149 lt_prog_compiler_static_RC \ 12150 lt_prog_compiler_no_builtin_flag_RC \ 12151 export_dynamic_flag_spec_RC \ 12152 thread_safe_flag_spec_RC \ 12153 whole_archive_flag_spec_RC \ 12154 enable_shared_with_static_runtimes_RC \ 12155 old_archive_cmds_RC \ 12156 old_archive_from_new_cmds_RC \ 12157 predep_objects_RC \ 12158 postdep_objects_RC \ 12159 predeps_RC \ 12160 postdeps_RC \ 12161 compiler_lib_search_path_RC \ 12162 archive_cmds_RC \ 12163 archive_expsym_cmds_RC \ 12164 postinstall_cmds_RC \ 12165 postuninstall_cmds_RC \ 12166 old_archive_from_expsyms_cmds_RC \ 12167 allow_undefined_flag_RC \ 12168 no_undefined_flag_RC \ 12169 export_symbols_cmds_RC \ 12170 hardcode_libdir_flag_spec_RC \ 12171 hardcode_libdir_flag_spec_ld_RC \ 12172 hardcode_libdir_separator_RC \ 12173 hardcode_automatic_RC \ 12174 module_cmds_RC \ 12175 module_expsym_cmds_RC \ 12176 lt_cv_prog_compiler_c_o_RC \ 12177 exclude_expsyms_RC \ 12178 include_expsyms_RC; do 12179 12180 case $var in 12181 old_archive_cmds_RC | \ 12182 old_archive_from_new_cmds_RC | \ 12183 archive_cmds_RC | \ 12184 archive_expsym_cmds_RC | \ 12185 module_cmds_RC | \ 12186 module_expsym_cmds_RC | \ 12187 old_archive_from_expsyms_cmds_RC | \ 12188 export_symbols_cmds_RC | \ 12189 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12190 postinstall_cmds | postuninstall_cmds | \ 12191 old_postinstall_cmds | old_postuninstall_cmds | \ 12192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12193 # Double-quote double-evaled strings. 12194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12195 ;; 12196 *) 12197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12198 ;; 12199 esac 12200 done 12201 12202 case $lt_echo in 12203 *'\$0 --fallback-echo"') 12204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12205 ;; 12206 esac 12207 12208cfgfile="$ofile" 12209 12210 cat <<__EOF__ >> "$cfgfile" 12211# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12212 12213# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12214 12215# Shell to use when invoking shell scripts. 12216SHELL=$lt_SHELL 12217 12218# Whether or not to build shared libraries. 12219build_libtool_libs=$enable_shared 12220 12221# Whether or not to build static libraries. 12222build_old_libs=$enable_static 12223 12224# Whether or not to add -lc for building shared libraries. 12225build_libtool_need_lc=$archive_cmds_need_lc_RC 12226 12227# Whether or not to disallow shared libs when runtime libs are static 12228allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 12229 12230# Whether or not to optimize for fast installation. 12231fast_install=$enable_fast_install 12232 12233# The host system. 12234host_alias=$host_alias 12235host=$host 12236host_os=$host_os 12237 12238# The build system. 12239build_alias=$build_alias 12240build=$build 12241build_os=$build_os 12242 12243# An echo program that does not interpret backslashes. 12244echo=$lt_echo 12245 12246# The archiver. 12247AR=$lt_AR 12248AR_FLAGS=$lt_AR_FLAGS 12249 12250# A C compiler. 12251LTCC=$lt_LTCC 12252 12253# A language-specific compiler. 12254CC=$lt_compiler_RC 12255 12256# Is the compiler the GNU C compiler? 12257with_gcc=$GCC_RC 12258 12259# An ERE matcher. 12260EGREP=$lt_EGREP 12261 12262# The linker used to build libraries. 12263LD=$lt_LD_RC 12264 12265# Whether we need hard or soft links. 12266LN_S=$lt_LN_S 12267 12268# A BSD-compatible nm program. 12269NM=$lt_NM 12270 12271# A symbol stripping program 12272STRIP=$lt_STRIP 12273 12274# Used to examine libraries when file_magic_cmd begins "file" 12275MAGIC_CMD=$MAGIC_CMD 12276 12277# Used on cygwin: DLL creation program. 12278DLLTOOL="$DLLTOOL" 12279 12280# Used on cygwin: object dumper. 12281OBJDUMP="$OBJDUMP" 12282 12283# Used on cygwin: assembler. 12284AS="$AS" 12285 12286# The name of the directory that contains temporary libtool files. 12287objdir=$objdir 12288 12289# How to create reloadable object files. 12290reload_flag=$lt_reload_flag 12291reload_cmds=$lt_reload_cmds 12292 12293# How to pass a linker flag through the compiler. 12294wl=$lt_lt_prog_compiler_wl_RC 12295 12296# Object file suffix (normally "o"). 12297objext="$ac_objext" 12298 12299# Old archive suffix (normally "a"). 12300libext="$libext" 12301 12302# Shared library suffix (normally ".so"). 12303shrext_cmds='$shrext_cmds' 12304 12305# Executable file suffix (normally ""). 12306exeext="$exeext" 12307 12308# Additional compiler flags for building library objects. 12309pic_flag=$lt_lt_prog_compiler_pic_RC 12310pic_mode=$pic_mode 12311 12312# What is the maximum length of a command? 12313max_cmd_len=$lt_cv_sys_max_cmd_len 12314 12315# Does compiler simultaneously support -c and -o options? 12316compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 12317 12318# Must we lock files when doing compilation? 12319need_locks=$lt_need_locks 12320 12321# Do we need the lib prefix for modules? 12322need_lib_prefix=$need_lib_prefix 12323 12324# Do we need a version for libraries? 12325need_version=$need_version 12326 12327# Whether dlopen is supported. 12328dlopen_support=$enable_dlopen 12329 12330# Whether dlopen of programs is supported. 12331dlopen_self=$enable_dlopen_self 12332 12333# Whether dlopen of statically linked programs is supported. 12334dlopen_self_static=$enable_dlopen_self_static 12335 12336# Compiler flag to prevent dynamic linking. 12337link_static_flag=$lt_lt_prog_compiler_static_RC 12338 12339# Compiler flag to turn off builtin functions. 12340no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 12341 12342# Compiler flag to allow reflexive dlopens. 12343export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 12344 12345# Compiler flag to generate shared objects directly from archives. 12346whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 12347 12348# Compiler flag to generate thread-safe objects. 12349thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 12350 12351# Library versioning type. 12352version_type=$version_type 12353 12354# Format of library name prefix. 12355libname_spec=$lt_libname_spec 12356 12357# List of archive names. First name is the real one, the rest are links. 12358# The last name is the one that the linker finds with -lNAME. 12359library_names_spec=$lt_library_names_spec 12360 12361# The coded name of the library, if different from the real name. 12362soname_spec=$lt_soname_spec 12363 12364# Commands used to build and install an old-style archive. 12365RANLIB=$lt_RANLIB 12366old_archive_cmds=$lt_old_archive_cmds_RC 12367old_postinstall_cmds=$lt_old_postinstall_cmds 12368old_postuninstall_cmds=$lt_old_postuninstall_cmds 12369 12370# Create an old-style archive from a shared archive. 12371old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 12372 12373# Create a temporary old-style archive to link instead of a shared archive. 12374old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 12375 12376# Commands used to build and install a shared archive. 12377archive_cmds=$lt_archive_cmds_RC 12378archive_expsym_cmds=$lt_archive_expsym_cmds_RC 12379postinstall_cmds=$lt_postinstall_cmds 12380postuninstall_cmds=$lt_postuninstall_cmds 12381 12382# Commands used to build a loadable module (assumed same as above if empty) 12383module_cmds=$lt_module_cmds_RC 12384module_expsym_cmds=$lt_module_expsym_cmds_RC 12385 12386# Commands to strip libraries. 12387old_striplib=$lt_old_striplib 12388striplib=$lt_striplib 12389 12390# Dependencies to place before the objects being linked to create a 12391# shared library. 12392predep_objects=$lt_predep_objects_RC 12393 12394# Dependencies to place after the objects being linked to create a 12395# shared library. 12396postdep_objects=$lt_postdep_objects_RC 12397 12398# Dependencies to place before the objects being linked to create a 12399# shared library. 12400predeps=$lt_predeps_RC 12401 12402# Dependencies to place after the objects being linked to create a 12403# shared library. 12404postdeps=$lt_postdeps_RC 12405 12406# The library search path used internally by the compiler when linking 12407# a shared library. 12408compiler_lib_search_path=$lt_compiler_lib_search_path_RC 12409 12410# Method to check whether dependent libraries are shared objects. 12411deplibs_check_method=$lt_deplibs_check_method 12412 12413# Command to use when deplibs_check_method == file_magic. 12414file_magic_cmd=$lt_file_magic_cmd 12415 12416# Flag that allows shared libraries with undefined symbols to be built. 12417allow_undefined_flag=$lt_allow_undefined_flag_RC 12418 12419# Flag that forces no undefined symbols. 12420no_undefined_flag=$lt_no_undefined_flag_RC 12421 12422# Commands used to finish a libtool library installation in a directory. 12423finish_cmds=$lt_finish_cmds 12424 12425# Same as above, but a single script fragment to be evaled but not shown. 12426finish_eval=$lt_finish_eval 12427 12428# Take the output of nm and produce a listing of raw symbols and C names. 12429global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12430 12431# Transform the output of nm in a proper C declaration 12432global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12433 12434# Transform the output of nm in a C name address pair 12435global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12436 12437# This is the shared library runtime path variable. 12438runpath_var=$runpath_var 12439 12440# This is the shared library path variable. 12441shlibpath_var=$shlibpath_var 12442 12443# Is shlibpath searched before the hard-coded library search path? 12444shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12445 12446# How to hardcode a shared library path into an executable. 12447hardcode_action=$hardcode_action_RC 12448 12449# Whether we should hardcode library paths into libraries. 12450hardcode_into_libs=$hardcode_into_libs 12451 12452# Flag to hardcode \$libdir into a binary during linking. 12453# This must work even if \$libdir does not exist. 12454hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 12455 12456# If ld is used when linking, flag to hardcode \$libdir into 12457# a binary during linking. This must work even if \$libdir does 12458# not exist. 12459hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 12460 12461# Whether we need a single -rpath flag with a separated argument. 12462hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 12463 12464# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12465# resulting binary. 12466hardcode_direct=$hardcode_direct_RC 12467 12468# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12469# resulting binary. 12470hardcode_minus_L=$hardcode_minus_L_RC 12471 12472# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12473# the resulting binary. 12474hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 12475 12476# Set to yes if building a shared library automatically hardcodes DIR into the library 12477# and all subsequent libraries and executables linked against it. 12478hardcode_automatic=$hardcode_automatic_RC 12479 12480# Variables whose values should be saved in libtool wrapper scripts and 12481# restored at relink time. 12482variables_saved_for_relink="$variables_saved_for_relink" 12483 12484# Whether libtool must link a program against all its dependency libraries. 12485link_all_deplibs=$link_all_deplibs_RC 12486 12487# Compile-time system search path for libraries 12488sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12489 12490# Run-time system search path for libraries 12491sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12492 12493# Fix the shell variable \$srcfile for the compiler. 12494fix_srcfile_path="$fix_srcfile_path_RC" 12495 12496# Set to yes if exported symbols are required. 12497always_export_symbols=$always_export_symbols_RC 12498 12499# The commands to list exported symbols. 12500export_symbols_cmds=$lt_export_symbols_cmds_RC 12501 12502# The commands to extract the exported symbol list from a shared archive. 12503extract_expsyms_cmds=$lt_extract_expsyms_cmds 12504 12505# Symbols that should not be listed in the preloaded symbols. 12506exclude_expsyms=$lt_exclude_expsyms_RC 12507 12508# Symbols that must always be exported. 12509include_expsyms=$lt_include_expsyms_RC 12510 12511# ### END LIBTOOL TAG CONFIG: $tagname 12512 12513__EOF__ 12514 12515 12516else 12517 # If there is no Makefile yet, we rely on a make rule to execute 12518 # `config.status --recheck' to rerun these tests and create the 12519 # libtool script then. 12520 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12521 if test -f "$ltmain_in"; then 12522 test -f Makefile && make "$ltmain" 12523 fi 12524fi 12525 12526 12527ac_ext=c 12528ac_cpp='$CPP $CPPFLAGS' 12529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12531ac_compiler_gnu=$ac_cv_c_compiler_gnu 12532 12533CC="$lt_save_CC" 12534 12535 ;; 12536 12537 *) 12538 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 12539 ;; 12540 esac 12541 12542 # Append the new tag name to the list of available tags. 12543 if test -n "$tagname" ; then 12544 available_tags="$available_tags $tagname" 12545 fi 12546 fi 12547 done 12548 IFS="$lt_save_ifs" 12549 12550 # Now substitute the updated list of available tags. 12551 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 12552 mv "${ofile}T" "$ofile" 12553 chmod +x "$ofile" 12554 else 12555 rm -f "${ofile}T" 12556 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 12557 fi 12558fi 12559 12560 12561 12562# This can be used to rebuild libtool when needed 12563LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 12564 12565# Always use our own libtool. 12566LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12567 12568# Prevent multiple expansion 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579# NTP has (so far) been relying on leading-edge autogen. 12580# Therefore, by default: 12581# - use the version we ship with 12582# - do not install it 12583# - build a static copy (AC_DISABLE_SHARED - done earlier) 12584case "${enable_local_libopts+set}" in 12585 set) ;; 12586 *) enable_local_libopts=yes ;; 12587esac 12588case "${enable_libopts_install+set}" in 12589 set) ;; 12590 *) enable_libopts_install=no ;; 12591esac 12592 12593 NEED_LIBOPTS_DIR='' 12594 12595 LIBOPTS_DIR=libopts 12596 12597 # Check whether --enable-local-libopts was given. 12598if test "${enable_local_libopts+set}" = set; then : 12599 enableval=$enable_local_libopts; 12600 if test x$enableval = xyes ; then 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5 12602$as_echo "$as_me: Using supplied libopts tearoff" >&6;} 12603 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 12604 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 12605 NEED_LIBOPTS_DIR=true 12606 fi 12607fi 12608 12609 12610 # Check whether --enable-libopts-install was given. 12611if test "${enable_libopts_install+set}" = set; then : 12612 enableval=$enable_libopts_install; 12613fi 12614 12615 if test "X${enable_libopts_install}" != Xno; then 12616 INSTALL_LIBOPTS_TRUE= 12617 INSTALL_LIBOPTS_FALSE='#' 12618else 12619 INSTALL_LIBOPTS_TRUE='#' 12620 INSTALL_LIBOPTS_FALSE= 12621fi 12622 12623 12624 if test -z "${NEED_LIBOPTS_DIR}" ; then 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5 12626$as_echo_n "checking whether autoopts-config can be found... " >&6; } 12627 12628# Check whether --with-autoopts-config was given. 12629if test "${with_autoopts_config+set}" = set; then : 12630 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config} 12631else 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5 12633$as_echo_n "checking whether autoopts-config is specified... " >&6; } 12634if test "${lo_cv_with_autoopts_config+set}" = set; then : 12635 $as_echo_n "(cached) " >&6 12636else 12637 if autoopts-config --help 2>/dev/null 1>&2 12638 then lo_cv_with_autoopts_config=autoopts-config 12639 elif libopts-config --help 2>/dev/null 1>&2 12640 then lo_cv_with_autoopts_config=libopts-config 12641 else lo_cv_with_autoopts_config=no ; fi 12642fi 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5 12644$as_echo "$lo_cv_with_autoopts_config" >&6; } 12645 12646fi 12647 # end of AC_ARG_WITH 12648 12649 if test "${lo_cv_test_autoopts+set}" = set; then : 12650 $as_echo_n "(cached) " >&6 12651else 12652 12653 if test -z "${lo_cv_with_autoopts_config}" \ 12654 -o X"${lo_cv_with_autoopts_config}" = Xno 12655 then 12656 if autoopts-config --help 2>/dev/null 1>&2 12657 then lo_cv_with_autoopts_config=autoopts-config 12658 elif libopts-config --help 2>/dev/null 1>&2 12659 then lo_cv_with_autoopts_config=libopts-config 12660 else lo_cv_with_autoopts_config=false ; fi 12661 fi 12662 lo_cv_test_autoopts=` 12663 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null 12664 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}" 12665 then lo_cv_test_autoopts=no ; fi 12666 12667fi 12668 # end of CACHE_VAL 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5 12670$as_echo "${lo_cv_test_autoopts}" >&6; } 12671 12672 if test "X${lo_cv_test_autoopts}" != Xno 12673 then 12674 LIBOPTS_LDADD="${lo_cv_test_autoopts}" 12675 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`" 12676 else 12677 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la' 12678 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts' 12679 NEED_LIBOPTS_DIR=true 12680 fi 12681 fi # end of if test -z "${NEED_LIBOPTS_DIR}" 12682 12683 if test -n "${NEED_LIBOPTS_DIR}"; then 12684 NEED_LIBOPTS_TRUE= 12685 NEED_LIBOPTS_FALSE='#' 12686else 12687 NEED_LIBOPTS_TRUE='#' 12688 NEED_LIBOPTS_FALSE= 12689fi 12690 12691 12692 12693 LIBOPTS_DIR=libopts 12694 12695 ac_config_files="$ac_config_files libopts/Makefile" 12696 12697 12698 12699 if test -n "${NEED_LIBOPTS_DIR}" ; then 12700 12701 12702if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 12703 # ================= 12704 # AC_HEADER_STDC 12705 # ================= 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12707$as_echo_n "checking for ANSI C header files... " >&6; } 12708if test "${ac_cv_header_stdc+set}" = set; then : 12709 $as_echo_n "(cached) " >&6 12710else 12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12712/* end confdefs.h. */ 12713#include <stdlib.h> 12714#include <stdarg.h> 12715#include <string.h> 12716#include <float.h> 12717 12718int 12719main () 12720{ 12721 12722 ; 12723 return 0; 12724} 12725_ACEOF 12726if ac_fn_c_try_compile "$LINENO"; then : 12727 ac_cv_header_stdc=yes 12728else 12729 ac_cv_header_stdc=no 12730fi 12731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12732 12733if test $ac_cv_header_stdc = yes; then 12734 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737#include <string.h> 12738 12739_ACEOF 12740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12741 $EGREP "memchr" >/dev/null 2>&1; then : 12742 12743else 12744 ac_cv_header_stdc=no 12745fi 12746rm -f conftest* 12747 12748fi 12749 12750if test $ac_cv_header_stdc = yes; then 12751 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12753/* end confdefs.h. */ 12754#include <stdlib.h> 12755 12756_ACEOF 12757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12758 $EGREP "free" >/dev/null 2>&1; then : 12759 12760else 12761 ac_cv_header_stdc=no 12762fi 12763rm -f conftest* 12764 12765fi 12766 12767if test $ac_cv_header_stdc = yes; then 12768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12769 if test "$cross_compiling" = yes; then : 12770 : 12771else 12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12773/* end confdefs.h. */ 12774#include <ctype.h> 12775#include <stdlib.h> 12776#if ((' ' & 0x0FF) == 0x020) 12777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12779#else 12780# define ISLOWER(c) \ 12781 (('a' <= (c) && (c) <= 'i') \ 12782 || ('j' <= (c) && (c) <= 'r') \ 12783 || ('s' <= (c) && (c) <= 'z')) 12784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12785#endif 12786 12787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12788int 12789main () 12790{ 12791 int i; 12792 for (i = 0; i < 256; i++) 12793 if (XOR (islower (i), ISLOWER (i)) 12794 || toupper (i) != TOUPPER (i)) 12795 return 2; 12796 return 0; 12797} 12798_ACEOF 12799if ac_fn_c_try_run "$LINENO"; then : 12800 12801else 12802 ac_cv_header_stdc=no 12803fi 12804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12805 conftest.$ac_objext conftest.beam conftest.$ac_ext 12806fi 12807 12808fi 12809fi 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12811$as_echo "$ac_cv_header_stdc" >&6; } 12812if test $ac_cv_header_stdc = yes; then 12813 12814$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12815 12816fi 12817 12818 # ================= 12819 # AC_HEADER_DIRENT 12820 # ================= 12821 ac_header_dirent=no 12822for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 12823 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 12824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 12825$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 12826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 12827 $as_echo_n "(cached) " >&6 12828else 12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12830/* end confdefs.h. */ 12831#include <sys/types.h> 12832#include <$ac_hdr> 12833 12834int 12835main () 12836{ 12837if ((DIR *) 0) 12838return 0; 12839 ; 12840 return 0; 12841} 12842_ACEOF 12843if ac_fn_c_try_compile "$LINENO"; then : 12844 eval "$as_ac_Header=yes" 12845else 12846 eval "$as_ac_Header=no" 12847fi 12848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12849fi 12850eval ac_res=\$$as_ac_Header 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12852$as_echo "$ac_res" >&6; } 12853eval as_val=\$$as_ac_Header 12854 if test "x$as_val" = x""yes; then : 12855 cat >>confdefs.h <<_ACEOF 12856#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 12857_ACEOF 12858 12859ac_header_dirent=$ac_hdr; break 12860fi 12861 12862done 12863# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 12864if test $ac_header_dirent = dirent.h; then 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12866$as_echo_n "checking for library containing opendir... " >&6; } 12867if test "${ac_cv_search_opendir+set}" = set; then : 12868 $as_echo_n "(cached) " >&6 12869else 12870 ac_func_search_save_LIBS=$LIBS 12871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12872/* end confdefs.h. */ 12873 12874/* Override any GCC internal prototype to avoid an error. 12875 Use char because int might match the return type of a GCC 12876 builtin and then its argument prototype would still apply. */ 12877#ifdef __cplusplus 12878extern "C" 12879#endif 12880char opendir (); 12881int 12882main () 12883{ 12884return opendir (); 12885 ; 12886 return 0; 12887} 12888_ACEOF 12889for ac_lib in '' dir; do 12890 if test -z "$ac_lib"; then 12891 ac_res="none required" 12892 else 12893 ac_res=-l$ac_lib 12894 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12895 fi 12896 if ac_fn_c_try_link "$LINENO"; then : 12897 ac_cv_search_opendir=$ac_res 12898fi 12899rm -f core conftest.err conftest.$ac_objext \ 12900 conftest$ac_exeext 12901 if test "${ac_cv_search_opendir+set}" = set; then : 12902 break 12903fi 12904done 12905if test "${ac_cv_search_opendir+set}" = set; then : 12906 12907else 12908 ac_cv_search_opendir=no 12909fi 12910rm conftest.$ac_ext 12911LIBS=$ac_func_search_save_LIBS 12912fi 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12914$as_echo "$ac_cv_search_opendir" >&6; } 12915ac_res=$ac_cv_search_opendir 12916if test "$ac_res" != no; then : 12917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12918 12919fi 12920 12921else 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 12923$as_echo_n "checking for library containing opendir... " >&6; } 12924if test "${ac_cv_search_opendir+set}" = set; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 ac_func_search_save_LIBS=$LIBS 12928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929/* end confdefs.h. */ 12930 12931/* Override any GCC internal prototype to avoid an error. 12932 Use char because int might match the return type of a GCC 12933 builtin and then its argument prototype would still apply. */ 12934#ifdef __cplusplus 12935extern "C" 12936#endif 12937char opendir (); 12938int 12939main () 12940{ 12941return opendir (); 12942 ; 12943 return 0; 12944} 12945_ACEOF 12946for ac_lib in '' x; do 12947 if test -z "$ac_lib"; then 12948 ac_res="none required" 12949 else 12950 ac_res=-l$ac_lib 12951 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12952 fi 12953 if ac_fn_c_try_link "$LINENO"; then : 12954 ac_cv_search_opendir=$ac_res 12955fi 12956rm -f core conftest.err conftest.$ac_objext \ 12957 conftest$ac_exeext 12958 if test "${ac_cv_search_opendir+set}" = set; then : 12959 break 12960fi 12961done 12962if test "${ac_cv_search_opendir+set}" = set; then : 12963 12964else 12965 ac_cv_search_opendir=no 12966fi 12967rm conftest.$ac_ext 12968LIBS=$ac_func_search_save_LIBS 12969fi 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 12971$as_echo "$ac_cv_search_opendir" >&6; } 12972ac_res=$ac_cv_search_opendir 12973if test "$ac_res" != no; then : 12974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12975 12976fi 12977 12978fi 12979 12980 12981 # ================= 12982 # AC_CHECK_HEADERS 12983 # ================= 12984 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 12985 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 12986 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 12987 utime.h sysexits.h 12988do : 12989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12990ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12991eval as_val=\$$as_ac_Header 12992 if test "x$as_val" = x""yes; then : 12993 cat >>confdefs.h <<_ACEOF 12994#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12995_ACEOF 12996 12997fi 12998 12999done 13000 13001 13002 # -------------------------------------------- 13003 # Verify certain entries from AC_CHECK_HEADERS 13004 # -------------------------------------------- 13005 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 13006 string errno stdlib memory setjmp 13007 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 13008 test "${as_ac_var}" = set || \ 13009 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5 13010 done 13011 13012 # ================================================ 13013 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 13014 # if varargs.h is present define HAVE_VARARGS_H. 13015 # ================================================ 13016 for ac_header in stdarg.h varargs.h 13017do : 13018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13019ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13020eval as_val=\$$as_ac_Header 13021 if test "x$as_val" = x""yes; then : 13022 cat >>confdefs.h <<_ACEOF 13023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13024_ACEOF 13025 break 13026fi 13027 13028done 13029 13030 if test `eval echo '${'$as_ac_Header'}'` != yes; then 13031 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5 13032 fi 13033 13034 # ================================================ 13035 # Similarly for the string.h and strings.h headers 13036 # ================================================ 13037 for ac_header in string.h strings.h 13038do : 13039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13040ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13041eval as_val=\$$as_ac_Header 13042 if test "x$as_val" = x""yes; then : 13043 cat >>confdefs.h <<_ACEOF 13044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13045_ACEOF 13046 break 13047fi 13048 13049done 13050 13051 if test `eval echo '${'$as_ac_Header'}'` != yes; then 13052 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5 13053 fi 13054 13055 # ===================== 13056 # ...and limits headers 13057 # ===================== 13058 for ac_header in limits.h sys/limits.h values.h 13059do : 13060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13061ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13062eval as_val=\$$as_ac_Header 13063 if test "x$as_val" = x""yes; then : 13064 cat >>confdefs.h <<_ACEOF 13065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13066_ACEOF 13067 break 13068fi 13069 13070done 13071 13072 if test `eval echo '${'$as_ac_Header'}'` != yes; then 13073 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 13074 fi 13075 13076 # ======================== 13077 # ...and int types headers 13078 # ======================== 13079 for ac_header in stdint.h inttypes.h 13080do : 13081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13082ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13083eval as_val=\$$as_ac_Header 13084 if test "x$as_val" = x""yes; then : 13085 cat >>confdefs.h <<_ACEOF 13086#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13087_ACEOF 13088 break 13089fi 13090 13091done 13092 13093 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 13094if test "x$ac_cv_type_int8_t" = x""yes; then : 13095 13096cat >>confdefs.h <<_ACEOF 13097#define HAVE_INT8_T 1 13098_ACEOF 13099 13100 13101fi 13102ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 13103if test "x$ac_cv_type_uint8_t" = x""yes; then : 13104 13105cat >>confdefs.h <<_ACEOF 13106#define HAVE_UINT8_T 1 13107_ACEOF 13108 13109 13110fi 13111ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 13112if test "x$ac_cv_type_int16_t" = x""yes; then : 13113 13114cat >>confdefs.h <<_ACEOF 13115#define HAVE_INT16_T 1 13116_ACEOF 13117 13118 13119fi 13120ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 13121if test "x$ac_cv_type_uint16_t" = x""yes; then : 13122 13123cat >>confdefs.h <<_ACEOF 13124#define HAVE_UINT16_T 1 13125_ACEOF 13126 13127 13128fi 13129ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 13130if test "x$ac_cv_type_int32_t" = x""yes; then : 13131 13132cat >>confdefs.h <<_ACEOF 13133#define HAVE_INT32_T 1 13134_ACEOF 13135 13136 13137fi 13138ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 13139if test "x$ac_cv_type_uint32_t" = x""yes; then : 13140 13141cat >>confdefs.h <<_ACEOF 13142#define HAVE_UINT32_T 1 13143_ACEOF 13144 13145 13146fi 13147ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 13148if test "x$ac_cv_type_intptr_t" = x""yes; then : 13149 13150cat >>confdefs.h <<_ACEOF 13151#define HAVE_INTPTR_T 1 13152_ACEOF 13153 13154 13155fi 13156ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 13157if test "x$ac_cv_type_uint_t" = x""yes; then : 13158 13159cat >>confdefs.h <<_ACEOF 13160#define HAVE_UINT_T 1 13161_ACEOF 13162 13163 13164fi 13165 13166 13167 # ==================== 13168 # uintptr type & sizes 13169 # ==================== 13170 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 13171if test "x$ac_cv_type_uintptr_t" = x""yes; then : 13172 13173cat >>confdefs.h <<_ACEOF 13174#define HAVE_UINTPTR_T 1 13175_ACEOF 13176 13177 13178else 13179 13180$as_echo "#define uintptr_t unsigned long" >>confdefs.h 13181 13182fi 13183 13184 # The cast to long int works around a bug in the HP C Compiler 13185# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13186# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13187# This bug is HP SR number 8606223364. 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 13189$as_echo_n "checking size of char*... " >&6; } 13190if test "${ac_cv_sizeof_charp+set}" = set; then : 13191 $as_echo_n "(cached) " >&6 13192else 13193 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 13194 13195else 13196 if test "$ac_cv_type_charp" = yes; then 13197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13199{ as_fn_set_status 77 13200as_fn_error "cannot compute sizeof (char*) 13201See \`config.log' for more details." "$LINENO" 5; }; } 13202 else 13203 ac_cv_sizeof_charp=0 13204 fi 13205fi 13206 13207fi 13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 13209$as_echo "$ac_cv_sizeof_charp" >&6; } 13210 13211 13212 13213cat >>confdefs.h <<_ACEOF 13214#define SIZEOF_CHARP $ac_cv_sizeof_charp 13215_ACEOF 13216 13217 13218 # The cast to long int works around a bug in the HP C Compiler 13219# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13220# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13221# This bug is HP SR number 8606223364. 13222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13223$as_echo_n "checking size of int... " >&6; } 13224if test "${ac_cv_sizeof_int+set}" = set; then : 13225 $as_echo_n "(cached) " >&6 13226else 13227 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13228 13229else 13230 if test "$ac_cv_type_int" = yes; then 13231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13233{ as_fn_set_status 77 13234as_fn_error "cannot compute sizeof (int) 13235See \`config.log' for more details." "$LINENO" 5; }; } 13236 else 13237 ac_cv_sizeof_int=0 13238 fi 13239fi 13240 13241fi 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13243$as_echo "$ac_cv_sizeof_int" >&6; } 13244 13245 13246 13247cat >>confdefs.h <<_ACEOF 13248#define SIZEOF_INT $ac_cv_sizeof_int 13249_ACEOF 13250 13251 13252 # The cast to long int works around a bug in the HP C Compiler 13253# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13254# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13255# This bug is HP SR number 8606223364. 13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13257$as_echo_n "checking size of long... " >&6; } 13258if test "${ac_cv_sizeof_long+set}" = set; then : 13259 $as_echo_n "(cached) " >&6 13260else 13261 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13262 13263else 13264 if test "$ac_cv_type_long" = yes; then 13265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13267{ as_fn_set_status 77 13268as_fn_error "cannot compute sizeof (long) 13269See \`config.log' for more details." "$LINENO" 5; }; } 13270 else 13271 ac_cv_sizeof_long=0 13272 fi 13273fi 13274 13275fi 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13277$as_echo "$ac_cv_sizeof_long" >&6; } 13278 13279 13280 13281cat >>confdefs.h <<_ACEOF 13282#define SIZEOF_LONG $ac_cv_sizeof_long 13283_ACEOF 13284 13285 13286 # The cast to long int works around a bug in the HP C Compiler 13287# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13288# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13289# This bug is HP SR number 8606223364. 13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 13291$as_echo_n "checking size of short... " >&6; } 13292if test "${ac_cv_sizeof_short+set}" = set; then : 13293 $as_echo_n "(cached) " >&6 13294else 13295 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 13296 13297else 13298 if test "$ac_cv_type_short" = yes; then 13299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13301{ as_fn_set_status 77 13302as_fn_error "cannot compute sizeof (short) 13303See \`config.log' for more details." "$LINENO" 5; }; } 13304 else 13305 ac_cv_sizeof_short=0 13306 fi 13307fi 13308 13309fi 13310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 13311$as_echo "$ac_cv_sizeof_short" >&6; } 13312 13313 13314 13315cat >>confdefs.h <<_ACEOF 13316#define SIZEOF_SHORT $ac_cv_sizeof_short 13317_ACEOF 13318 13319 13320 13321 # ---------------------------------------------------------------------- 13322 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 13323 # ---------------------------------------------------------------------- 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 13325$as_echo_n "checking for pathfind in -lgen... " >&6; } 13326if test "${ac_cv_lib_gen_pathfind+set}" = set; then : 13327 $as_echo_n "(cached) " >&6 13328else 13329 ac_check_lib_save_LIBS=$LIBS 13330LIBS="-lgen $LIBS" 13331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13332/* end confdefs.h. */ 13333 13334/* Override any GCC internal prototype to avoid an error. 13335 Use char because int might match the return type of a GCC 13336 builtin and then its argument prototype would still apply. */ 13337#ifdef __cplusplus 13338extern "C" 13339#endif 13340char pathfind (); 13341int 13342main () 13343{ 13344return pathfind (); 13345 ; 13346 return 0; 13347} 13348_ACEOF 13349if ac_fn_c_try_link "$LINENO"; then : 13350 ac_cv_lib_gen_pathfind=yes 13351else 13352 ac_cv_lib_gen_pathfind=no 13353fi 13354rm -f core conftest.err conftest.$ac_objext \ 13355 conftest$ac_exeext conftest.$ac_ext 13356LIBS=$ac_check_lib_save_LIBS 13357fi 13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 13359$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 13360if test "x$ac_cv_lib_gen_pathfind" = x""yes; then : 13361 cat >>confdefs.h <<_ACEOF 13362#define HAVE_LIBGEN 1 13363_ACEOF 13364 13365 LIBS="-lgen $LIBS" 13366 13367fi 13368 13369 for ac_func in vprintf 13370do : 13371 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 13372if test "x$ac_cv_func_vprintf" = x""yes; then : 13373 cat >>confdefs.h <<_ACEOF 13374#define HAVE_VPRINTF 1 13375_ACEOF 13376 13377ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 13378if test "x$ac_cv_func__doprnt" = x""yes; then : 13379 13380$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 13381 13382fi 13383 13384fi 13385done 13386 13387 13388 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr 13389do : 13390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13391ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13392eval as_val=\$$as_ac_var 13393 if test "x$as_val" = x""yes; then : 13394 cat >>confdefs.h <<_ACEOF 13395#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13396_ACEOF 13397 13398fi 13399done 13400 13401 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 13402fi 13403 # Check to see if a reg expr header is specified. 13404 13405 13406# Check whether --with-regex-header was given. 13407if test "${with_regex_header+set}" = set; then : 13408 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header} 13409else 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5 13411$as_echo_n "checking whether a reg expr header is specified... " >&6; } 13412if test "${libopts_cv_with_regex_header+set}" = set; then : 13413 $as_echo_n "(cached) " >&6 13414else 13415 libopts_cv_with_regex_header=no 13416fi 13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5 13418$as_echo "$libopts_cv_with_regex_header" >&6; } 13419 13420fi 13421 # end of AC_ARG_WITH 13422 13423 if test "X${libopts_cv_with_regex_header}" != Xno 13424 then 13425 cat >>confdefs.h <<_ACEOF 13426#define REGEX_HEADER <${libopts_cv_with_regex_header}> 13427_ACEOF 13428 13429 else 13430 13431$as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h 13432 13433 fi 13434 13435 13436 13437 # Check to see if a working libregex can be found. 13438 13439 13440# Check whether --with-libregex was given. 13441if test "${with_libregex+set}" = set; then : 13442 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex} 13443else 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5 13445$as_echo_n "checking whether with-libregex was specified... " >&6; } 13446if test "${libopts_cv_with_libregex_root+set}" = set; then : 13447 $as_echo_n "(cached) " >&6 13448else 13449 libopts_cv_with_libregex_root=no 13450fi 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5 13452$as_echo "$libopts_cv_with_libregex_root" >&6; } 13453 13454fi 13455 # end of AC_ARG_WITH libregex 13456 13457 if test "${with_libguile+set}" = set && \ 13458 test "${withval}" = no 13459 then ## disabled by request 13460 libopts_cv_with_libregex_root=no 13461 libopts_cv_with_libregex_cflags=no 13462 libopts_cv_with_libregex_libs=no 13463 else 13464 13465 13466# Check whether --with-libregex-cflags was given. 13467if test "${with_libregex_cflags+set}" = set; then : 13468 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags} 13469else 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5 13471$as_echo_n "checking whether with-libregex-cflags was specified... " >&6; } 13472if test "${libopts_cv_with_libregex_cflags+set}" = set; then : 13473 $as_echo_n "(cached) " >&6 13474else 13475 libopts_cv_with_libregex_cflags=no 13476fi 13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5 13478$as_echo "$libopts_cv_with_libregex_cflags" >&6; } 13479 13480fi 13481 # end of AC_ARG_WITH libregex-cflags 13482 13483 13484# Check whether --with-libregex-libs was given. 13485if test "${with_libregex_libs+set}" = set; then : 13486 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs} 13487else 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5 13489$as_echo_n "checking whether with-libregex-libs was specified... " >&6; } 13490if test "${libopts_cv_with_libregex_libs+set}" = set; then : 13491 $as_echo_n "(cached) " >&6 13492else 13493 libopts_cv_with_libregex_libs=no 13494fi 13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5 13496$as_echo "$libopts_cv_with_libregex_libs" >&6; } 13497 13498fi 13499 # end of AC_ARG_WITH libregex-libs 13500 13501 case "X${libopts_cv_with_libregex_cflags}" in 13502 Xyes|Xno|X ) 13503 case "X${libopts_cv_with_libregex_root}" in 13504 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;; 13505 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;; 13506 esac 13507 esac 13508 case "X${libopts_cv_with_libregex_libs}" in 13509 Xyes|Xno|X ) 13510 case "X${libopts_cv_with_libregex_root}" in 13511 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;; 13512 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";; 13513 esac 13514 esac 13515 libopts_save_CPPFLAGS="${CPPFLAGS}" 13516 libopts_save_LIBS="${LIBS}" 13517 fi ## disabled by request 13518 13519 case "X${libopts_cv_with_libregex_cflags}" in 13520 Xyes|Xno|X ) 13521 libopts_cv_with_libregex_cflags="" ;; 13522 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;; 13523 esac 13524 case "X${libopts_cv_with_libregex_libs}" in 13525 Xyes|Xno|X ) 13526 libopts_cv_with_libregex_libs="" ;; 13527 * ) 13528 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;; 13529 esac 13530 LIBREGEX_CFLAGS="" 13531 LIBREGEX_LIBS="" 13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5 13533$as_echo_n "checking whether libregex functions properly... " >&6; } 13534 if test "${libopts_cv_with_libregex+set}" = set; then : 13535 $as_echo_n "(cached) " >&6 13536else 13537 13538 if test "$cross_compiling" = yes; then : 13539 libopts_cv_with_libregex=no 13540else 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543#include <stdio.h> 13544#include <stdlib.h> 13545#include <sys/types.h> 13546#include REGEX_HEADER 13547static regex_t re; 13548void comp_re( char const* pzPat ) { 13549 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE ); 13550 if (res == 0) return; 13551 exit( res ); } 13552int main() { 13553 regmatch_t m[2]; 13554 comp_re( "^.*\$" ); 13555 comp_re( "()|no.*" ); 13556 comp_re( "." ); 13557 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1; 13558 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) { 13559 fputs( "error: regex -->.<-- did not match\n", stderr ); 13560 return 1; 13561 } 13562 return 0; } 13563_ACEOF 13564if ac_fn_c_try_run "$LINENO"; then : 13565 libopts_cv_with_libregex=yes 13566else 13567 libopts_cv_with_libregex=no 13568fi 13569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13570 conftest.$ac_objext conftest.beam conftest.$ac_ext 13571fi 13572 # end of AC_TRY_RUN 13573 13574fi 13575 # end of AC_CACHE_VAL for libopts_cv_with_libregex 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5 13577$as_echo "${libopts_cv_with_libregex}" >&6; } 13578 13579 if test "X${libopts_cv_with_libregex}" != Xno 13580 then 13581 13582$as_echo "#define WITH_LIBREGEX 1" >>confdefs.h 13583 13584 else 13585 CPPFLAGS="${libopts_save_CPPFLAGS}" 13586 LIBS="${libopts_save_LIBS}" 13587 fi 13588 13589 13590 13591 # Check to see if pathfind(3) works. 13592 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5 13594$as_echo_n "checking whether pathfind(3) works... " >&6; } 13595 if test "${libopts_cv_run_pathfind+set}" = set; then : 13596 $as_echo_n "(cached) " >&6 13597else 13598 13599 if test "$cross_compiling" = yes; then : 13600 libopts_cv_run_pathfind=no 13601 13602else 13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13604/* end confdefs.h. */ 13605#include <string.h> 13606#include <stdlib.h> 13607int main (int argc, char** argv) { 13608 char* pz = pathfind( getenv( "PATH" ), "sh", "x" ); 13609 return (pz == 0) ? 1 : 0; 13610} 13611_ACEOF 13612if ac_fn_c_try_run "$LINENO"; then : 13613 libopts_cv_run_pathfind=yes 13614else 13615 libopts_cv_run_pathfind=no 13616fi 13617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13618 conftest.$ac_objext conftest.beam conftest.$ac_ext 13619fi 13620 # end of TRY_RUN 13621 13622fi 13623 # end of AC_CACHE_VAL for libopts_cv_run_pathfind 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5 13625$as_echo "${libopts_cv_run_pathfind}" >&6; } 13626 13627 if test "X${libopts_cv_run_pathfind}" != Xno 13628 then 13629 13630$as_echo "#define HAVE_PATHFIND 1" >>confdefs.h 13631 13632 fi 13633 13634 13635 13636 # Check to see if /dev/zero is readable device. 13637 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5 13639$as_echo_n "checking whether /dev/zero is readable device... " >&6; } 13640 if test "${libopts_cv_test_dev_zero+set}" = set; then : 13641 $as_echo_n "(cached) " >&6 13642else 13643 13644 libopts_cv_test_dev_zero=`exec 2> /dev/null 13645dzero=\`ls -lL /dev/zero | egrep ^c......r\` 13646test -z "${dzero}" && exit 1 13647echo ${dzero}` 13648 if test $? -ne 0 13649 then libopts_cv_test_dev_zero=no 13650 elif test -z "$libopts_cv_test_dev_zero" 13651 then libopts_cv_test_dev_zero=no 13652 fi 13653 13654fi 13655 # end of CACHE_VAL of libopts_cv_test_dev_zero 13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5 13657$as_echo "${libopts_cv_test_dev_zero}" >&6; } 13658 13659 if test "X${libopts_cv_test_dev_zero}" != Xno 13660 then 13661 13662$as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h 13663 13664 fi 13665 13666 13667 13668 # Check to see if we have a functional realpath(3C). 13669 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5 13671$as_echo_n "checking whether we have a functional realpath(3C)... " >&6; } 13672 if test "${libopts_cv_run_realpath+set}" = set; then : 13673 $as_echo_n "(cached) " >&6 13674else 13675 13676 if test "$cross_compiling" = yes; then : 13677 libopts_cv_run_realpath=no 13678 13679else 13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13681/* end confdefs.h. */ 13682#include <limits.h> 13683#include <stdlib.h> 13684int main (int argc, char** argv) { 13685#ifndef PATH_MAX 13686choke me!! 13687#else 13688 char zPath[PATH_MAX+1]; 13689#endif 13690 char *pz = realpath(argv[0], zPath); 13691 return (pz == zPath) ? 0 : 1; 13692} 13693_ACEOF 13694if ac_fn_c_try_run "$LINENO"; then : 13695 libopts_cv_run_realpath=yes 13696else 13697 libopts_cv_run_realpath=no 13698fi 13699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13700 conftest.$ac_objext conftest.beam conftest.$ac_ext 13701fi 13702 # end of TRY_RUN 13703 13704fi 13705 # end of AC_CACHE_VAL for libopts_cv_run_realpath 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5 13707$as_echo "${libopts_cv_run_realpath}" >&6; } 13708 13709 if test "X${libopts_cv_run_realpath}" != Xno 13710 then 13711 13712$as_echo "#define HAVE_REALPATH 1" >>confdefs.h 13713 13714 fi 13715 13716 13717 13718 # Check to see if strftime() works. 13719 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5 13721$as_echo_n "checking whether strftime() works... " >&6; } 13722 if test "${libopts_cv_run_strftime+set}" = set; then : 13723 $as_echo_n "(cached) " >&6 13724else 13725 13726 if test "$cross_compiling" = yes; then : 13727 libopts_cv_run_strftime=no 13728 13729else 13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13731/* end confdefs.h. */ 13732#include <time.h> 13733#include <string.h> 13734char t_buf[ 64 ]; 13735int main() { 13736 static char const z[] = "Thursday Aug 28 240"; 13737 struct tm tm; 13738 tm.tm_sec = 36; /* seconds after the minute [0, 61] */ 13739 tm.tm_min = 44; /* minutes after the hour [0, 59] */ 13740 tm.tm_hour = 12; /* hour since midnight [0, 23] */ 13741 tm.tm_mday = 28; /* day of the month [1, 31] */ 13742 tm.tm_mon = 7; /* months since January [0, 11] */ 13743 tm.tm_year = 86; /* years since 1900 */ 13744 tm.tm_wday = 4; /* days since Sunday [0, 6] */ 13745 tm.tm_yday = 239; /* days since January 1 [0, 365] */ 13746 tm.tm_isdst = 1; /* flag for daylight savings time */ 13747 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm ); 13748 return (strcmp( t_buf, z ) != 0); } 13749_ACEOF 13750if ac_fn_c_try_run "$LINENO"; then : 13751 libopts_cv_run_strftime=yes 13752else 13753 libopts_cv_run_strftime=no 13754fi 13755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13756 conftest.$ac_objext conftest.beam conftest.$ac_ext 13757fi 13758 # end of TRY_RUN 13759 13760fi 13761 # end of AC_CACHE_VAL for libopts_cv_run_strftime 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5 13763$as_echo "${libopts_cv_run_strftime}" >&6; } 13764 13765 if test "X${libopts_cv_run_strftime}" != Xno 13766 then 13767 13768$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 13769 13770 fi 13771 13772 13773 13774 # Check to see if fopen accepts "b" mode. 13775 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5 13777$as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; } 13778 if test "${libopts_cv_run_fopen_binary+set}" = set; then : 13779 $as_echo_n "(cached) " >&6 13780else 13781 13782 if test "$cross_compiling" = yes; then : 13783 libopts_cv_run_fopen_binary=no 13784 13785else 13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13787/* end confdefs.h. */ 13788#include <stdio.h> 13789int main (int argc, char** argv) { 13790FILE* fp = fopen("conftest.$ac_ext", "rb"); 13791return (fp == NULL) ? 1 : fclose(fp); } 13792_ACEOF 13793if ac_fn_c_try_run "$LINENO"; then : 13794 libopts_cv_run_fopen_binary=yes 13795else 13796 libopts_cv_run_fopen_binary=no 13797fi 13798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13799 conftest.$ac_objext conftest.beam conftest.$ac_ext 13800fi 13801 # end of TRY_RUN 13802 13803fi 13804 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5 13806$as_echo "${libopts_cv_run_fopen_binary}" >&6; } 13807 13808 if test "X${libopts_cv_run_fopen_binary}" != Xno 13809 then 13810 13811$as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h 13812 13813 else 13814 13815$as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h 13816 13817 fi 13818 13819 13820 13821 # Check to see if fopen accepts "t" mode. 13822 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5 13824$as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; } 13825 if test "${libopts_cv_run_fopen_text+set}" = set; then : 13826 $as_echo_n "(cached) " >&6 13827else 13828 13829 if test "$cross_compiling" = yes; then : 13830 libopts_cv_run_fopen_text=no 13831 13832else 13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13834/* end confdefs.h. */ 13835#include <stdio.h> 13836int main (int argc, char** argv) { 13837FILE* fp = fopen("conftest.$ac_ext", "rt"); 13838return (fp == NULL) ? 1 : fclose(fp); } 13839_ACEOF 13840if ac_fn_c_try_run "$LINENO"; then : 13841 libopts_cv_run_fopen_text=yes 13842else 13843 libopts_cv_run_fopen_text=no 13844fi 13845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13846 conftest.$ac_objext conftest.beam conftest.$ac_ext 13847fi 13848 # end of TRY_RUN 13849 13850fi 13851 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text 13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5 13853$as_echo "${libopts_cv_run_fopen_text}" >&6; } 13854 13855 if test "X${libopts_cv_run_fopen_text}" != Xno 13856 then 13857 13858$as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h 13859 13860 else 13861 13862$as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h 13863 13864 fi 13865 13866 13867 13868 # Check to see if not wanting optional option args. 13869 13870 # Check whether --enable-optional-args was given. 13871if test "${enable_optional_args+set}" = set; then : 13872 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args} 13873else 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5 13875$as_echo_n "checking whether not wanting optional option args... " >&6; } 13876if test "${libopts_cv_enable_optional_args+set}" = set; then : 13877 $as_echo_n "(cached) " >&6 13878else 13879 libopts_cv_enable_optional_args=yes 13880fi 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5 13882$as_echo "$libopts_cv_enable_optional_args" >&6; } 13883 13884fi 13885 # end of AC_ARG_ENABLE 13886 13887 if test "X${libopts_cv_enable_optional_args}" = Xno 13888 then 13889 13890$as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h 13891 13892 fi 13893 13894 13895 13896 13897 else 13898 13899if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then 13900 # ================= 13901 # AC_HEADER_STDC 13902 # ================= 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13904$as_echo_n "checking for ANSI C header files... " >&6; } 13905if test "${ac_cv_header_stdc+set}" = set; then : 13906 $as_echo_n "(cached) " >&6 13907else 13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909/* end confdefs.h. */ 13910#include <stdlib.h> 13911#include <stdarg.h> 13912#include <string.h> 13913#include <float.h> 13914 13915int 13916main () 13917{ 13918 13919 ; 13920 return 0; 13921} 13922_ACEOF 13923if ac_fn_c_try_compile "$LINENO"; then : 13924 ac_cv_header_stdc=yes 13925else 13926 ac_cv_header_stdc=no 13927fi 13928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13929 13930if test $ac_cv_header_stdc = yes; then 13931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934#include <string.h> 13935 13936_ACEOF 13937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13938 $EGREP "memchr" >/dev/null 2>&1; then : 13939 13940else 13941 ac_cv_header_stdc=no 13942fi 13943rm -f conftest* 13944 13945fi 13946 13947if test $ac_cv_header_stdc = yes; then 13948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13950/* end confdefs.h. */ 13951#include <stdlib.h> 13952 13953_ACEOF 13954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13955 $EGREP "free" >/dev/null 2>&1; then : 13956 13957else 13958 ac_cv_header_stdc=no 13959fi 13960rm -f conftest* 13961 13962fi 13963 13964if test $ac_cv_header_stdc = yes; then 13965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13966 if test "$cross_compiling" = yes; then : 13967 : 13968else 13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970/* end confdefs.h. */ 13971#include <ctype.h> 13972#include <stdlib.h> 13973#if ((' ' & 0x0FF) == 0x020) 13974# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13975# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13976#else 13977# define ISLOWER(c) \ 13978 (('a' <= (c) && (c) <= 'i') \ 13979 || ('j' <= (c) && (c) <= 'r') \ 13980 || ('s' <= (c) && (c) <= 'z')) 13981# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13982#endif 13983 13984#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13985int 13986main () 13987{ 13988 int i; 13989 for (i = 0; i < 256; i++) 13990 if (XOR (islower (i), ISLOWER (i)) 13991 || toupper (i) != TOUPPER (i)) 13992 return 2; 13993 return 0; 13994} 13995_ACEOF 13996if ac_fn_c_try_run "$LINENO"; then : 13997 13998else 13999 ac_cv_header_stdc=no 14000fi 14001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14002 conftest.$ac_objext conftest.beam conftest.$ac_ext 14003fi 14004 14005fi 14006fi 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14008$as_echo "$ac_cv_header_stdc" >&6; } 14009if test $ac_cv_header_stdc = yes; then 14010 14011$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14012 14013fi 14014 14015 # ================= 14016 # AC_HEADER_DIRENT 14017 # ================= 14018 ac_header_dirent=no 14019for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14020 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 14022$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 14023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 14024 $as_echo_n "(cached) " >&6 14025else 14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14027/* end confdefs.h. */ 14028#include <sys/types.h> 14029#include <$ac_hdr> 14030 14031int 14032main () 14033{ 14034if ((DIR *) 0) 14035return 0; 14036 ; 14037 return 0; 14038} 14039_ACEOF 14040if ac_fn_c_try_compile "$LINENO"; then : 14041 eval "$as_ac_Header=yes" 14042else 14043 eval "$as_ac_Header=no" 14044fi 14045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14046fi 14047eval ac_res=\$$as_ac_Header 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14049$as_echo "$ac_res" >&6; } 14050eval as_val=\$$as_ac_Header 14051 if test "x$as_val" = x""yes; then : 14052 cat >>confdefs.h <<_ACEOF 14053#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14054_ACEOF 14055 14056ac_header_dirent=$ac_hdr; break 14057fi 14058 14059done 14060# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14061if test $ac_header_dirent = dirent.h; then 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14063$as_echo_n "checking for library containing opendir... " >&6; } 14064if test "${ac_cv_search_opendir+set}" = set; then : 14065 $as_echo_n "(cached) " >&6 14066else 14067 ac_func_search_save_LIBS=$LIBS 14068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14069/* end confdefs.h. */ 14070 14071/* Override any GCC internal prototype to avoid an error. 14072 Use char because int might match the return type of a GCC 14073 builtin and then its argument prototype would still apply. */ 14074#ifdef __cplusplus 14075extern "C" 14076#endif 14077char opendir (); 14078int 14079main () 14080{ 14081return opendir (); 14082 ; 14083 return 0; 14084} 14085_ACEOF 14086for ac_lib in '' dir; do 14087 if test -z "$ac_lib"; then 14088 ac_res="none required" 14089 else 14090 ac_res=-l$ac_lib 14091 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14092 fi 14093 if ac_fn_c_try_link "$LINENO"; then : 14094 ac_cv_search_opendir=$ac_res 14095fi 14096rm -f core conftest.err conftest.$ac_objext \ 14097 conftest$ac_exeext 14098 if test "${ac_cv_search_opendir+set}" = set; then : 14099 break 14100fi 14101done 14102if test "${ac_cv_search_opendir+set}" = set; then : 14103 14104else 14105 ac_cv_search_opendir=no 14106fi 14107rm conftest.$ac_ext 14108LIBS=$ac_func_search_save_LIBS 14109fi 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14111$as_echo "$ac_cv_search_opendir" >&6; } 14112ac_res=$ac_cv_search_opendir 14113if test "$ac_res" != no; then : 14114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14115 14116fi 14117 14118else 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14120$as_echo_n "checking for library containing opendir... " >&6; } 14121if test "${ac_cv_search_opendir+set}" = set; then : 14122 $as_echo_n "(cached) " >&6 14123else 14124 ac_func_search_save_LIBS=$LIBS 14125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14126/* end confdefs.h. */ 14127 14128/* Override any GCC internal prototype to avoid an error. 14129 Use char because int might match the return type of a GCC 14130 builtin and then its argument prototype would still apply. */ 14131#ifdef __cplusplus 14132extern "C" 14133#endif 14134char opendir (); 14135int 14136main () 14137{ 14138return opendir (); 14139 ; 14140 return 0; 14141} 14142_ACEOF 14143for ac_lib in '' x; do 14144 if test -z "$ac_lib"; then 14145 ac_res="none required" 14146 else 14147 ac_res=-l$ac_lib 14148 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14149 fi 14150 if ac_fn_c_try_link "$LINENO"; then : 14151 ac_cv_search_opendir=$ac_res 14152fi 14153rm -f core conftest.err conftest.$ac_objext \ 14154 conftest$ac_exeext 14155 if test "${ac_cv_search_opendir+set}" = set; then : 14156 break 14157fi 14158done 14159if test "${ac_cv_search_opendir+set}" = set; then : 14160 14161else 14162 ac_cv_search_opendir=no 14163fi 14164rm conftest.$ac_ext 14165LIBS=$ac_func_search_save_LIBS 14166fi 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14168$as_echo "$ac_cv_search_opendir" >&6; } 14169ac_res=$ac_cv_search_opendir 14170if test "$ac_res" != no; then : 14171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14172 14173fi 14174 14175fi 14176 14177 14178 # ================= 14179 # AC_CHECK_HEADERS 14180 # ================= 14181 for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \ 14182 setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \ 14183 sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \ 14184 utime.h sysexits.h 14185do : 14186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14187ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14188eval as_val=\$$as_ac_Header 14189 if test "x$as_val" = x""yes; then : 14190 cat >>confdefs.h <<_ACEOF 14191#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14192_ACEOF 14193 14194fi 14195 14196done 14197 14198 14199 # -------------------------------------------- 14200 # Verify certain entries from AC_CHECK_HEADERS 14201 # -------------------------------------------- 14202 for f in sys_types sys_mman sys_param sys_stat sys_wait \ 14203 string errno stdlib memory setjmp 14204 do eval as_ac_var=\${ac_cv_header_${f}_h+set} 14205 test "${as_ac_var}" = set || \ 14206 as_fn_error "You must have ${f}.h on your system" "$LINENO" 5 14207 done 14208 14209 # ================================================ 14210 # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise 14211 # if varargs.h is present define HAVE_VARARGS_H. 14212 # ================================================ 14213 for ac_header in stdarg.h varargs.h 14214do : 14215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14216ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14217eval as_val=\$$as_ac_Header 14218 if test "x$as_val" = x""yes; then : 14219 cat >>confdefs.h <<_ACEOF 14220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14221_ACEOF 14222 break 14223fi 14224 14225done 14226 14227 if test `eval echo '${'$as_ac_Header'}'` != yes; then 14228 as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5 14229 fi 14230 14231 # ================================================ 14232 # Similarly for the string.h and strings.h headers 14233 # ================================================ 14234 for ac_header in string.h strings.h 14235do : 14236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14237ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14238eval as_val=\$$as_ac_Header 14239 if test "x$as_val" = x""yes; then : 14240 cat >>confdefs.h <<_ACEOF 14241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14242_ACEOF 14243 break 14244fi 14245 14246done 14247 14248 if test `eval echo '${'$as_ac_Header'}'` != yes; then 14249 as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5 14250 fi 14251 14252 # ===================== 14253 # ...and limits headers 14254 # ===================== 14255 for ac_header in limits.h sys/limits.h values.h 14256do : 14257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14258ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14259eval as_val=\$$as_ac_Header 14260 if test "x$as_val" = x""yes; then : 14261 cat >>confdefs.h <<_ACEOF 14262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14263_ACEOF 14264 break 14265fi 14266 14267done 14268 14269 if test `eval echo '${'$as_ac_Header'}'` != yes; then 14270 as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5 14271 fi 14272 14273 # ======================== 14274 # ...and int types headers 14275 # ======================== 14276 for ac_header in stdint.h inttypes.h 14277do : 14278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14279ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14280eval as_val=\$$as_ac_Header 14281 if test "x$as_val" = x""yes; then : 14282 cat >>confdefs.h <<_ACEOF 14283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14284_ACEOF 14285 break 14286fi 14287 14288done 14289 14290 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 14291if test "x$ac_cv_type_int8_t" = x""yes; then : 14292 14293cat >>confdefs.h <<_ACEOF 14294#define HAVE_INT8_T 1 14295_ACEOF 14296 14297 14298fi 14299ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 14300if test "x$ac_cv_type_uint8_t" = x""yes; then : 14301 14302cat >>confdefs.h <<_ACEOF 14303#define HAVE_UINT8_T 1 14304_ACEOF 14305 14306 14307fi 14308ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 14309if test "x$ac_cv_type_int16_t" = x""yes; then : 14310 14311cat >>confdefs.h <<_ACEOF 14312#define HAVE_INT16_T 1 14313_ACEOF 14314 14315 14316fi 14317ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 14318if test "x$ac_cv_type_uint16_t" = x""yes; then : 14319 14320cat >>confdefs.h <<_ACEOF 14321#define HAVE_UINT16_T 1 14322_ACEOF 14323 14324 14325fi 14326ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 14327if test "x$ac_cv_type_int32_t" = x""yes; then : 14328 14329cat >>confdefs.h <<_ACEOF 14330#define HAVE_INT32_T 1 14331_ACEOF 14332 14333 14334fi 14335ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 14336if test "x$ac_cv_type_uint32_t" = x""yes; then : 14337 14338cat >>confdefs.h <<_ACEOF 14339#define HAVE_UINT32_T 1 14340_ACEOF 14341 14342 14343fi 14344ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 14345if test "x$ac_cv_type_intptr_t" = x""yes; then : 14346 14347cat >>confdefs.h <<_ACEOF 14348#define HAVE_INTPTR_T 1 14349_ACEOF 14350 14351 14352fi 14353ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default" 14354if test "x$ac_cv_type_uint_t" = x""yes; then : 14355 14356cat >>confdefs.h <<_ACEOF 14357#define HAVE_UINT_T 1 14358_ACEOF 14359 14360 14361fi 14362 14363 14364 # ==================== 14365 # uintptr type & sizes 14366 # ==================== 14367 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 14368if test "x$ac_cv_type_uintptr_t" = x""yes; then : 14369 14370cat >>confdefs.h <<_ACEOF 14371#define HAVE_UINTPTR_T 1 14372_ACEOF 14373 14374 14375else 14376 14377$as_echo "#define uintptr_t unsigned long" >>confdefs.h 14378 14379fi 14380 14381 # The cast to long int works around a bug in the HP C Compiler 14382# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14383# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14384# This bug is HP SR number 8606223364. 14385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5 14386$as_echo_n "checking size of char*... " >&6; } 14387if test "${ac_cv_sizeof_charp+set}" = set; then : 14388 $as_echo_n "(cached) " >&6 14389else 14390 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then : 14391 14392else 14393 if test "$ac_cv_type_charp" = yes; then 14394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14396{ as_fn_set_status 77 14397as_fn_error "cannot compute sizeof (char*) 14398See \`config.log' for more details." "$LINENO" 5; }; } 14399 else 14400 ac_cv_sizeof_charp=0 14401 fi 14402fi 14403 14404fi 14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5 14406$as_echo "$ac_cv_sizeof_charp" >&6; } 14407 14408 14409 14410cat >>confdefs.h <<_ACEOF 14411#define SIZEOF_CHARP $ac_cv_sizeof_charp 14412_ACEOF 14413 14414 14415 # The cast to long int works around a bug in the HP C Compiler 14416# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14417# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14418# This bug is HP SR number 8606223364. 14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14420$as_echo_n "checking size of int... " >&6; } 14421if test "${ac_cv_sizeof_int+set}" = set; then : 14422 $as_echo_n "(cached) " >&6 14423else 14424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14425 14426else 14427 if test "$ac_cv_type_int" = yes; then 14428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14430{ as_fn_set_status 77 14431as_fn_error "cannot compute sizeof (int) 14432See \`config.log' for more details." "$LINENO" 5; }; } 14433 else 14434 ac_cv_sizeof_int=0 14435 fi 14436fi 14437 14438fi 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14440$as_echo "$ac_cv_sizeof_int" >&6; } 14441 14442 14443 14444cat >>confdefs.h <<_ACEOF 14445#define SIZEOF_INT $ac_cv_sizeof_int 14446_ACEOF 14447 14448 14449 # The cast to long int works around a bug in the HP C Compiler 14450# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14451# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14452# This bug is HP SR number 8606223364. 14453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14454$as_echo_n "checking size of long... " >&6; } 14455if test "${ac_cv_sizeof_long+set}" = set; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14459 14460else 14461 if test "$ac_cv_type_long" = yes; then 14462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14464{ as_fn_set_status 77 14465as_fn_error "cannot compute sizeof (long) 14466See \`config.log' for more details." "$LINENO" 5; }; } 14467 else 14468 ac_cv_sizeof_long=0 14469 fi 14470fi 14471 14472fi 14473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14474$as_echo "$ac_cv_sizeof_long" >&6; } 14475 14476 14477 14478cat >>confdefs.h <<_ACEOF 14479#define SIZEOF_LONG $ac_cv_sizeof_long 14480_ACEOF 14481 14482 14483 # The cast to long int works around a bug in the HP C Compiler 14484# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14485# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14486# This bug is HP SR number 8606223364. 14487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14488$as_echo_n "checking size of short... " >&6; } 14489if test "${ac_cv_sizeof_short+set}" = set; then : 14490 $as_echo_n "(cached) " >&6 14491else 14492 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14493 14494else 14495 if test "$ac_cv_type_short" = yes; then 14496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14498{ as_fn_set_status 77 14499as_fn_error "cannot compute sizeof (short) 14500See \`config.log' for more details." "$LINENO" 5; }; } 14501 else 14502 ac_cv_sizeof_short=0 14503 fi 14504fi 14505 14506fi 14507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14508$as_echo "$ac_cv_sizeof_short" >&6; } 14509 14510 14511 14512cat >>confdefs.h <<_ACEOF 14513#define SIZEOF_SHORT $ac_cv_sizeof_short 14514_ACEOF 14515 14516 14517 14518 # ---------------------------------------------------------------------- 14519 # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind. 14520 # ---------------------------------------------------------------------- 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5 14522$as_echo_n "checking for pathfind in -lgen... " >&6; } 14523if test "${ac_cv_lib_gen_pathfind+set}" = set; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 ac_check_lib_save_LIBS=$LIBS 14527LIBS="-lgen $LIBS" 14528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14529/* end confdefs.h. */ 14530 14531/* Override any GCC internal prototype to avoid an error. 14532 Use char because int might match the return type of a GCC 14533 builtin and then its argument prototype would still apply. */ 14534#ifdef __cplusplus 14535extern "C" 14536#endif 14537char pathfind (); 14538int 14539main () 14540{ 14541return pathfind (); 14542 ; 14543 return 0; 14544} 14545_ACEOF 14546if ac_fn_c_try_link "$LINENO"; then : 14547 ac_cv_lib_gen_pathfind=yes 14548else 14549 ac_cv_lib_gen_pathfind=no 14550fi 14551rm -f core conftest.err conftest.$ac_objext \ 14552 conftest$ac_exeext conftest.$ac_ext 14553LIBS=$ac_check_lib_save_LIBS 14554fi 14555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5 14556$as_echo "$ac_cv_lib_gen_pathfind" >&6; } 14557if test "x$ac_cv_lib_gen_pathfind" = x""yes; then : 14558 cat >>confdefs.h <<_ACEOF 14559#define HAVE_LIBGEN 1 14560_ACEOF 14561 14562 LIBS="-lgen $LIBS" 14563 14564fi 14565 14566 for ac_func in vprintf 14567do : 14568 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 14569if test "x$ac_cv_func_vprintf" = x""yes; then : 14570 cat >>confdefs.h <<_ACEOF 14571#define HAVE_VPRINTF 1 14572_ACEOF 14573 14574ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 14575if test "x$ac_cv_func__doprnt" = x""yes; then : 14576 14577$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 14578 14579fi 14580 14581fi 14582done 14583 14584 14585 for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr 14586do : 14587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14588ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14589eval as_val=\$$as_ac_var 14590 if test "x$as_val" = x""yes; then : 14591 cat >>confdefs.h <<_ACEOF 14592#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14593_ACEOF 14594 14595fi 14596done 14597 14598 INVOKE_LIBOPTS_MACROS_FIRST_done=yes 14599fi 14600 fi 14601# end of AC_DEFUN of LIBOPTS_CHECK 14602 14603 14604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5 14605$as_echo_n "checking if $CC can handle #warning... " >&6; } 14606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14607/* end confdefs.h. */ 14608 14609int 14610main () 14611{ 14612#warning foo 14613 ; 14614 return 0; 14615} 14616_ACEOF 14617if ac_fn_c_try_compile "$LINENO"; then : 14618 ac_cv_cpp_warning=yes 14619else 14620 ac_cv_cpp_warning=no 14621fi 14622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5 14624$as_echo "$ac_cv_cpp_warning" >&6; } 14625 14626case "$ac_cv_cpp_warning" in 14627 no) 14628 14629$as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h 14630 14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5 14632$as_echo "Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6; } 14633 ;; 14634esac 14635 14636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14637$as_echo_n "checking for inline... " >&6; } 14638if test "${ac_cv_c_inline+set}" = set; then : 14639 $as_echo_n "(cached) " >&6 14640else 14641 ac_cv_c_inline=no 14642for ac_kw in inline __inline__ __inline; do 14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14644/* end confdefs.h. */ 14645#ifndef __cplusplus 14646typedef int foo_t; 14647static $ac_kw foo_t static_foo () {return 0; } 14648$ac_kw foo_t foo () {return 0; } 14649#endif 14650 14651_ACEOF 14652if ac_fn_c_try_compile "$LINENO"; then : 14653 ac_cv_c_inline=$ac_kw 14654fi 14655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14656 test "$ac_cv_c_inline" != no && break 14657done 14658 14659fi 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14661$as_echo "$ac_cv_c_inline" >&6; } 14662 14663case $ac_cv_c_inline in 14664 inline | yes) ;; 14665 *) 14666 case $ac_cv_c_inline in 14667 no) ac_val=;; 14668 *) ac_val=$ac_cv_c_inline;; 14669 esac 14670 cat >>confdefs.h <<_ACEOF 14671#ifndef __cplusplus 14672#define inline $ac_val 14673#endif 14674_ACEOF 14675 ;; 14676esac 14677 14678 14679case "$ac_cv_c_inline" in 14680 '') 14681 ;; 14682 *) 14683 14684$as_echo "#define HAVE_INLINE 1" >>confdefs.h 14685 14686 14687esac 14688 14689 14690# Checks for libraries. 14691 14692# Checks for header files. 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14694$as_echo_n "checking for ANSI C header files... " >&6; } 14695if test "${ac_cv_header_stdc+set}" = set; then : 14696 $as_echo_n "(cached) " >&6 14697else 14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14699/* end confdefs.h. */ 14700#include <stdlib.h> 14701#include <stdarg.h> 14702#include <string.h> 14703#include <float.h> 14704 14705int 14706main () 14707{ 14708 14709 ; 14710 return 0; 14711} 14712_ACEOF 14713if ac_fn_c_try_compile "$LINENO"; then : 14714 ac_cv_header_stdc=yes 14715else 14716 ac_cv_header_stdc=no 14717fi 14718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14719 14720if test $ac_cv_header_stdc = yes; then 14721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14723/* end confdefs.h. */ 14724#include <string.h> 14725 14726_ACEOF 14727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14728 $EGREP "memchr" >/dev/null 2>&1; then : 14729 14730else 14731 ac_cv_header_stdc=no 14732fi 14733rm -f conftest* 14734 14735fi 14736 14737if test $ac_cv_header_stdc = yes; then 14738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14740/* end confdefs.h. */ 14741#include <stdlib.h> 14742 14743_ACEOF 14744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14745 $EGREP "free" >/dev/null 2>&1; then : 14746 14747else 14748 ac_cv_header_stdc=no 14749fi 14750rm -f conftest* 14751 14752fi 14753 14754if test $ac_cv_header_stdc = yes; then 14755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14756 if test "$cross_compiling" = yes; then : 14757 : 14758else 14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14760/* end confdefs.h. */ 14761#include <ctype.h> 14762#include <stdlib.h> 14763#if ((' ' & 0x0FF) == 0x020) 14764# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14765# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14766#else 14767# define ISLOWER(c) \ 14768 (('a' <= (c) && (c) <= 'i') \ 14769 || ('j' <= (c) && (c) <= 'r') \ 14770 || ('s' <= (c) && (c) <= 'z')) 14771# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14772#endif 14773 14774#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14775int 14776main () 14777{ 14778 int i; 14779 for (i = 0; i < 256; i++) 14780 if (XOR (islower (i), ISLOWER (i)) 14781 || toupper (i) != TOUPPER (i)) 14782 return 2; 14783 return 0; 14784} 14785_ACEOF 14786if ac_fn_c_try_run "$LINENO"; then : 14787 14788else 14789 ac_cv_header_stdc=no 14790fi 14791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14792 conftest.$ac_objext conftest.beam conftest.$ac_ext 14793fi 14794 14795fi 14796fi 14797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14798$as_echo "$ac_cv_header_stdc" >&6; } 14799if test $ac_cv_header_stdc = yes; then 14800 14801$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14802 14803fi 14804 14805for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h 14806do : 14807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14808ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14809eval as_val=\$$as_ac_Header 14810 if test "x$as_val" = x""yes; then : 14811 cat >>confdefs.h <<_ACEOF 14812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14813_ACEOF 14814 14815fi 14816 14817done 14818 14819 14820# Checks for typedefs, structures, and compiler characteristics. 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14822$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14823if test "${ac_cv_c_const+set}" = set; then : 14824 $as_echo_n "(cached) " >&6 14825else 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827/* end confdefs.h. */ 14828 14829int 14830main () 14831{ 14832/* FIXME: Include the comments suggested by Paul. */ 14833#ifndef __cplusplus 14834 /* Ultrix mips cc rejects this. */ 14835 typedef int charset[2]; 14836 const charset cs; 14837 /* SunOS 4.1.1 cc rejects this. */ 14838 char const *const *pcpcc; 14839 char **ppc; 14840 /* NEC SVR4.0.2 mips cc rejects this. */ 14841 struct point {int x, y;}; 14842 static struct point const zero = {0,0}; 14843 /* AIX XL C 1.02.0.0 rejects this. 14844 It does not let you subtract one const X* pointer from another in 14845 an arm of an if-expression whose if-part is not a constant 14846 expression */ 14847 const char *g = "string"; 14848 pcpcc = &g + (g ? g-g : 0); 14849 /* HPUX 7.0 cc rejects these. */ 14850 ++pcpcc; 14851 ppc = (char**) pcpcc; 14852 pcpcc = (char const *const *) ppc; 14853 { /* SCO 3.2v4 cc rejects this. */ 14854 char *t; 14855 char const *s = 0 ? (char *) 0 : (char const *) 0; 14856 14857 *t++ = 0; 14858 if (s) return 0; 14859 } 14860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14861 int x[] = {25, 17}; 14862 const int *foo = &x[0]; 14863 ++foo; 14864 } 14865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14866 typedef const int *iptr; 14867 iptr p = 0; 14868 ++p; 14869 } 14870 { /* AIX XL C 1.02.0.0 rejects this saying 14871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14872 struct s { int j; const int *ap[3]; }; 14873 struct s *b; b->j = 5; 14874 } 14875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14876 const int foo = 10; 14877 if (!foo) return 0; 14878 } 14879 return !cs[0] && !zero.x; 14880#endif 14881 14882 ; 14883 return 0; 14884} 14885_ACEOF 14886if ac_fn_c_try_compile "$LINENO"; then : 14887 ac_cv_c_const=yes 14888else 14889 ac_cv_c_const=no 14890fi 14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14892fi 14893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14894$as_echo "$ac_cv_c_const" >&6; } 14895if test $ac_cv_c_const = no; then 14896 14897$as_echo "#define const /**/" >>confdefs.h 14898 14899fi 14900 14901ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14902if test "x$ac_cv_type_size_t" = x""yes; then : 14903 14904else 14905 14906cat >>confdefs.h <<_ACEOF 14907#define size_t unsigned int 14908_ACEOF 14909 14910fi 14911 14912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14913$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14914if test "${ac_cv_header_time+set}" = set; then : 14915 $as_echo_n "(cached) " >&6 14916else 14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14918/* end confdefs.h. */ 14919#include <sys/types.h> 14920#include <sys/time.h> 14921#include <time.h> 14922 14923int 14924main () 14925{ 14926if ((struct tm *) 0) 14927return 0; 14928 ; 14929 return 0; 14930} 14931_ACEOF 14932if ac_fn_c_try_compile "$LINENO"; then : 14933 ac_cv_header_time=yes 14934else 14935 ac_cv_header_time=no 14936fi 14937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14938fi 14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14940$as_echo "$ac_cv_header_time" >&6; } 14941if test $ac_cv_header_time = yes; then 14942 14943$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14944 14945fi 14946 14947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 14948$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 14949if test "${ac_cv_struct_tm+set}" = set; then : 14950 $as_echo_n "(cached) " >&6 14951else 14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14953/* end confdefs.h. */ 14954#include <sys/types.h> 14955#include <time.h> 14956 14957int 14958main () 14959{ 14960struct tm tm; 14961 int *p = &tm.tm_sec; 14962 return !p; 14963 ; 14964 return 0; 14965} 14966_ACEOF 14967if ac_fn_c_try_compile "$LINENO"; then : 14968 ac_cv_struct_tm=time.h 14969else 14970 ac_cv_struct_tm=sys/time.h 14971fi 14972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14973fi 14974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 14975$as_echo "$ac_cv_struct_tm" >&6; } 14976if test $ac_cv_struct_tm = sys/time.h; then 14977 14978$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 14979 14980fi 14981 14982 14983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5 14984$as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; } 14985if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then : 14986 $as_echo_n "(cached) " >&6 14987else 14988 14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14990/* end confdefs.h. */ 14991 14992#include <sys/types.h> 14993#include <sys/socket.h> 14994 14995int 14996main () 14997{ 14998 struct sockaddr_storage s; s.ss_family = 1; 14999 ; 15000 return 0; 15001} 15002_ACEOF 15003if ac_fn_c_try_compile "$LINENO"; then : 15004 ac_cv_have_ss_family_in_struct_ss="yes" 15005else 15006 ac_cv_have_ss_family_in_struct_ss="no" 15007fi 15008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15009 15010fi 15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5 15012$as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; } 15013case "$ac_cv_have_ss_family_in_struct_ss" in 15014 yes) 15015 15016$as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h 15017 15018 ;; 15019esac 15020 15021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5 15022$as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; } 15023if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then : 15024 $as_echo_n "(cached) " >&6 15025else 15026 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029 15030#include <sys/types.h> 15031#include <sys/socket.h> 15032 15033int 15034main () 15035{ 15036 struct sockaddr_storage s; s.__ss_family = 1; 15037 ; 15038 return 0; 15039} 15040_ACEOF 15041if ac_fn_c_try_compile "$LINENO"; then : 15042 ac_cv_have___ss_family_in_struct_ss="yes" 15043else 15044 ac_cv_have___ss_family_in_struct_ss="no" 15045 15046fi 15047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15048 15049fi 15050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5 15051$as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; } 15052case "$ac_cv_have___ss_family_in_struct_ss" in 15053 yes) 15054 15055$as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h 15056 15057 ;; 15058esac 15059 15060case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in 15061 noyes) 15062 15063cat >>confdefs.h <<_ACEOF 15064#define ss_family __ss_family 15065_ACEOF 15066 15067 15068cat >>confdefs.h <<_ACEOF 15069#define ss_len __ss_len 15070_ACEOF 15071 15072 ;; 15073esac 15074 15075# Checks for library functions. 15076#AC_FUNC_MEMCMP dnl HMS: we don't have a memcmp.c to use here, so why bother? 15077if test "${ac_cv_func_setvbuf_reversed+set}" = set; then : 15078 $as_echo_n "(cached) " >&6 15079else 15080 ac_cv_func_setvbuf_reversed=no 15081fi 15082 15083 15084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 15085$as_echo_n "checking return type of signal handlers... " >&6; } 15086if test "${ac_cv_type_signal+set}" = set; then : 15087 $as_echo_n "(cached) " >&6 15088else 15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15090/* end confdefs.h. */ 15091#include <sys/types.h> 15092#include <signal.h> 15093 15094int 15095main () 15096{ 15097return *(signal (0, 0)) (0) == 1; 15098 ; 15099 return 0; 15100} 15101_ACEOF 15102if ac_fn_c_try_compile "$LINENO"; then : 15103 ac_cv_type_signal=int 15104else 15105 ac_cv_type_signal=void 15106fi 15107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15108fi 15109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 15110$as_echo "$ac_cv_type_signal" >&6; } 15111 15112cat >>confdefs.h <<_ACEOF 15113#define RETSIGTYPE $ac_cv_type_signal 15114_ACEOF 15115 15116 15117for ac_func in alarm 15118do : 15119 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 15120if test "x$ac_cv_func_alarm" = x""yes; then : 15121 cat >>confdefs.h <<_ACEOF 15122#define HAVE_ALARM 1 15123_ACEOF 15124 15125fi 15126done 15127 15128ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" 15129if test "x$ac_cv_func_gethostent" = x""yes; then : 15130 15131else 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5 15133$as_echo_n "checking for library containing gethostent... " >&6; } 15134if test "${ac_cv_search_gethostent+set}" = set; then : 15135 $as_echo_n "(cached) " >&6 15136else 15137 ac_func_search_save_LIBS=$LIBS 15138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140 15141/* Override any GCC internal prototype to avoid an error. 15142 Use char because int might match the return type of a GCC 15143 builtin and then its argument prototype would still apply. */ 15144#ifdef __cplusplus 15145extern "C" 15146#endif 15147char gethostent (); 15148int 15149main () 15150{ 15151return gethostent (); 15152 ; 15153 return 0; 15154} 15155_ACEOF 15156for ac_lib in '' nsl; do 15157 if test -z "$ac_lib"; then 15158 ac_res="none required" 15159 else 15160 ac_res=-l$ac_lib 15161 LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS" 15162 fi 15163 if ac_fn_c_try_link "$LINENO"; then : 15164 ac_cv_search_gethostent=$ac_res 15165fi 15166rm -f core conftest.err conftest.$ac_objext \ 15167 conftest$ac_exeext 15168 if test "${ac_cv_search_gethostent+set}" = set; then : 15169 break 15170fi 15171done 15172if test "${ac_cv_search_gethostent+set}" = set; then : 15173 15174else 15175 ac_cv_search_gethostent=no 15176fi 15177rm conftest.$ac_ext 15178LIBS=$ac_func_search_save_LIBS 15179fi 15180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5 15181$as_echo "$ac_cv_search_gethostent" >&6; } 15182ac_res=$ac_cv_search_gethostent 15183if test "$ac_res" != no; then : 15184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15185 15186fi 15187 15188fi 15189 15190for ac_func in gettimeofday inet_ntoa memset 15191do : 15192 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15193ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15194eval as_val=\$$as_ac_var 15195 if test "x$as_val" = x""yes; then : 15196 cat >>confdefs.h <<_ACEOF 15197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15198_ACEOF 15199 15200fi 15201done 15202 15203for ac_func in socket 15204do : 15205 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 15206if test "x$ac_cv_func_socket" = x""yes; then : 15207 cat >>confdefs.h <<_ACEOF 15208#define HAVE_SOCKET 1 15209_ACEOF 15210 15211else 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 15213$as_echo_n "checking for library containing socket... " >&6; } 15214if test "${ac_cv_search_socket+set}" = set; then : 15215 $as_echo_n "(cached) " >&6 15216else 15217 ac_func_search_save_LIBS=$LIBS 15218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15219/* end confdefs.h. */ 15220 15221/* Override any GCC internal prototype to avoid an error. 15222 Use char because int might match the return type of a GCC 15223 builtin and then its argument prototype would still apply. */ 15224#ifdef __cplusplus 15225extern "C" 15226#endif 15227char socket (); 15228int 15229main () 15230{ 15231return socket (); 15232 ; 15233 return 0; 15234} 15235_ACEOF 15236for ac_lib in '' socket; do 15237 if test -z "$ac_lib"; then 15238 ac_res="none required" 15239 else 15240 ac_res=-l$ac_lib 15241 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15242 fi 15243 if ac_fn_c_try_link "$LINENO"; then : 15244 ac_cv_search_socket=$ac_res 15245fi 15246rm -f core conftest.err conftest.$ac_objext \ 15247 conftest$ac_exeext 15248 if test "${ac_cv_search_socket+set}" = set; then : 15249 break 15250fi 15251done 15252if test "${ac_cv_search_socket+set}" = set; then : 15253 15254else 15255 ac_cv_search_socket=no 15256fi 15257rm conftest.$ac_ext 15258LIBS=$ac_func_search_save_LIBS 15259fi 15260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 15261$as_echo "$ac_cv_search_socket" >&6; } 15262ac_res=$ac_cv_search_socket 15263if test "$ac_res" != no; then : 15264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15265 15266fi 15267 15268fi 15269done 15270 15271for ac_func in sqrt 15272do : 15273 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" 15274if test "x$ac_cv_func_sqrt" = x""yes; then : 15275 cat >>confdefs.h <<_ACEOF 15276#define HAVE_SQRT 1 15277_ACEOF 15278 15279else 15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5 15281$as_echo_n "checking for library containing sqrt... " >&6; } 15282if test "${ac_cv_search_sqrt+set}" = set; then : 15283 $as_echo_n "(cached) " >&6 15284else 15285 ac_func_search_save_LIBS=$LIBS 15286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15287/* end confdefs.h. */ 15288 15289/* Override any GCC internal prototype to avoid an error. 15290 Use char because int might match the return type of a GCC 15291 builtin and then its argument prototype would still apply. */ 15292#ifdef __cplusplus 15293extern "C" 15294#endif 15295char sqrt (); 15296int 15297main () 15298{ 15299return sqrt (); 15300 ; 15301 return 0; 15302} 15303_ACEOF 15304for ac_lib in '' m; do 15305 if test -z "$ac_lib"; then 15306 ac_res="none required" 15307 else 15308 ac_res=-l$ac_lib 15309 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15310 fi 15311 if ac_fn_c_try_link "$LINENO"; then : 15312 ac_cv_search_sqrt=$ac_res 15313fi 15314rm -f core conftest.err conftest.$ac_objext \ 15315 conftest$ac_exeext 15316 if test "${ac_cv_search_sqrt+set}" = set; then : 15317 break 15318fi 15319done 15320if test "${ac_cv_search_sqrt+set}" = set; then : 15321 15322else 15323 ac_cv_search_sqrt=no 15324fi 15325rm conftest.$ac_ext 15326LIBS=$ac_func_search_save_LIBS 15327fi 15328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5 15329$as_echo "$ac_cv_search_sqrt" >&6; } 15330ac_res=$ac_cv_search_sqrt 15331if test "$ac_res" != no; then : 15332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15333 15334fi 15335 15336fi 15337done 15338 15339for ac_func in strrchr 15340do : 15341 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" 15342if test "x$ac_cv_func_strrchr" = x""yes; then : 15343 cat >>confdefs.h <<_ACEOF 15344#define HAVE_STRRCHR 1 15345_ACEOF 15346 15347fi 15348done 15349 15350 15351case "$host" in 15352 *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20 15353 case "$GCC" in 15354 yes) 15355 ;; 15356 *) CFLAGS="$CFLAGS -Wp,-H18816" 15357 ;; 15358 esac 15359 ;; 15360 *-*-linux*) 15361 CFLAGS="$CFLAGS -DADJTIME_MISSING" 15362 ;; 15363 *-*-sunos*) 15364 CFLAGS="$CFLAGS -DNONBLOCK_BROKEN" 15365 ;; 15366esac 15367 15368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5 15369$as_echo_n "checking for bin subdirectory... " >&6; } 15370 15371# Check whether --with-binsubdir was given. 15372if test "${with_binsubdir+set}" = set; then : 15373 withval=$with_binsubdir; use_binsubdir="$withval" 15374else 15375 use_binsubdir="bin" 15376fi 15377 15378 15379case "$use_binsubdir" in 15380 bin) 15381 ;; 15382 sbin) 15383 ;; 15384 *) 15385 as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5 15386 ;; 15387esac 15388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5 15389$as_echo "$use_binsubdir" >&6; } 15390BINSUBDIR=$use_binsubdir 15391 15392 15393ac_config_files="$ac_config_files Makefile" 15394 15395cat >confcache <<\_ACEOF 15396# This file is a shell script that caches the results of configure 15397# tests run on this system so they can be shared between configure 15398# scripts and configure runs, see configure's option --config-cache. 15399# It is not useful on other systems. If it contains results you don't 15400# want to keep, you may remove or edit it. 15401# 15402# config.status only pays attention to the cache file if you give it 15403# the --recheck option to rerun configure. 15404# 15405# `ac_cv_env_foo' variables (set or unset) will be overridden when 15406# loading this file, other *unset* `ac_cv_foo' will be assigned the 15407# following values. 15408 15409_ACEOF 15410 15411# The following way of writing the cache mishandles newlines in values, 15412# but we know of no workaround that is simple, portable, and efficient. 15413# So, we kill variables containing newlines. 15414# Ultrix sh set writes to stderr and can't be redirected directly, 15415# and sets the high bit in the cache file unless we assign to the vars. 15416( 15417 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15418 eval ac_val=\$$ac_var 15419 case $ac_val in #( 15420 *${as_nl}*) 15421 case $ac_var in #( 15422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15423$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15424 esac 15425 case $ac_var in #( 15426 _ | IFS | as_nl) ;; #( 15427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15428 *) { eval $ac_var=; unset $ac_var;} ;; 15429 esac ;; 15430 esac 15431 done 15432 15433 (set) 2>&1 | 15434 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15435 *${as_nl}ac_space=\ *) 15436 # `set' does not quote correctly, so add quotes: double-quote 15437 # substitution turns \\\\ into \\, and sed turns \\ into \. 15438 sed -n \ 15439 "s/'/'\\\\''/g; 15440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15441 ;; #( 15442 *) 15443 # `set' quotes correctly as required by POSIX, so do not add quotes. 15444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15445 ;; 15446 esac | 15447 sort 15448) | 15449 sed ' 15450 /^ac_cv_env_/b end 15451 t clear 15452 :clear 15453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15454 t end 15455 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15456 :end' >>confcache 15457if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15458 if test -w "$cache_file"; then 15459 test "x$cache_file" != "x/dev/null" && 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15461$as_echo "$as_me: updating cache $cache_file" >&6;} 15462 cat confcache >$cache_file 15463 else 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15465$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15466 fi 15467fi 15468rm -f confcache 15469 15470test "x$prefix" = xNONE && prefix=$ac_default_prefix 15471# Let make expand exec_prefix. 15472test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15473 15474DEFS=-DHAVE_CONFIG_H 15475 15476ac_libobjs= 15477ac_ltlibobjs= 15478for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15479 # 1. Remove the extension, and $U if already installed. 15480 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15481 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15482 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15483 # will be set to the directory where LIBOBJS objects are built. 15484 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15485 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15486done 15487LIBOBJS=$ac_libobjs 15488 15489LTLIBOBJS=$ac_ltlibobjs 15490 15491 15492 if test -n "$EXEEXT"; then 15493 am__EXEEXT_TRUE= 15494 am__EXEEXT_FALSE='#' 15495else 15496 am__EXEEXT_TRUE='#' 15497 am__EXEEXT_FALSE= 15498fi 15499 15500if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15501 as_fn_error "conditional \"AMDEP\" was never defined. 15502Usually this means the macro was only invoked conditionally." "$LINENO" 5 15503fi 15504if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15505 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15506Usually this means the macro was only invoked conditionally." "$LINENO" 5 15507fi 15508if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then 15509 as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined. 15510Usually this means the macro was only invoked conditionally." "$LINENO" 5 15511fi 15512if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then 15513 as_fn_error "conditional \"NEED_LIBOPTS\" was never defined. 15514Usually this means the macro was only invoked conditionally." "$LINENO" 5 15515fi 15516 15517: ${CONFIG_STATUS=./config.status} 15518ac_write_fail=0 15519ac_clean_files_save=$ac_clean_files 15520ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15521{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15522$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15523as_write_fail=0 15524cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15525#! $SHELL 15526# Generated by $as_me. 15527# Run this file to recreate the current configuration. 15528# Compiler output produced by configure, useful for debugging 15529# configure, is in config.log if it exists. 15530 15531debug=false 15532ac_cs_recheck=false 15533ac_cs_silent=false 15534 15535SHELL=\${CONFIG_SHELL-$SHELL} 15536export SHELL 15537_ASEOF 15538cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15539## -------------------- ## 15540## M4sh Initialization. ## 15541## -------------------- ## 15542 15543# Be more Bourne compatible 15544DUALCASE=1; export DUALCASE # for MKS sh 15545if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15546 emulate sh 15547 NULLCMD=: 15548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15549 # is contrary to our usage. Disable this feature. 15550 alias -g '${1+"$@"}'='"$@"' 15551 setopt NO_GLOB_SUBST 15552else 15553 case `(set -o) 2>/dev/null` in #( 15554 *posix*) : 15555 set -o posix ;; #( 15556 *) : 15557 ;; 15558esac 15559fi 15560 15561 15562as_nl=' 15563' 15564export as_nl 15565# Printing a long string crashes Solaris 7 /usr/bin/printf. 15566as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15567as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15568as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15569# Prefer a ksh shell builtin over an external printf program on Solaris, 15570# but without wasting forks for bash or zsh. 15571if test -z "$BASH_VERSION$ZSH_VERSION" \ 15572 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15573 as_echo='print -r --' 15574 as_echo_n='print -rn --' 15575elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15576 as_echo='printf %s\n' 15577 as_echo_n='printf %s' 15578else 15579 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15580 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15581 as_echo_n='/usr/ucb/echo -n' 15582 else 15583 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15584 as_echo_n_body='eval 15585 arg=$1; 15586 case $arg in #( 15587 *"$as_nl"*) 15588 expr "X$arg" : "X\\(.*\\)$as_nl"; 15589 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15590 esac; 15591 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15592 ' 15593 export as_echo_n_body 15594 as_echo_n='sh -c $as_echo_n_body as_echo' 15595 fi 15596 export as_echo_body 15597 as_echo='sh -c $as_echo_body as_echo' 15598fi 15599 15600# The user is always right. 15601if test "${PATH_SEPARATOR+set}" != set; then 15602 PATH_SEPARATOR=: 15603 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15604 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15605 PATH_SEPARATOR=';' 15606 } 15607fi 15608 15609 15610# IFS 15611# We need space, tab and new line, in precisely that order. Quoting is 15612# there to prevent editors from complaining about space-tab. 15613# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15614# splitting by setting IFS to empty value.) 15615IFS=" "" $as_nl" 15616 15617# Find who we are. Look in the path if we contain no directory separator. 15618case $0 in #(( 15619 *[\\/]* ) as_myself=$0 ;; 15620 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15621for as_dir in $PATH 15622do 15623 IFS=$as_save_IFS 15624 test -z "$as_dir" && as_dir=. 15625 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15626 done 15627IFS=$as_save_IFS 15628 15629 ;; 15630esac 15631# We did not find ourselves, most probably we were run as `sh COMMAND' 15632# in which case we are not to be found in the path. 15633if test "x$as_myself" = x; then 15634 as_myself=$0 15635fi 15636if test ! -f "$as_myself"; then 15637 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15638 exit 1 15639fi 15640 15641# Unset variables that we do not need and which cause bugs (e.g. in 15642# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15643# suppresses any "Segmentation fault" message there. '((' could 15644# trigger a bug in pdksh 5.2.14. 15645for as_var in BASH_ENV ENV MAIL MAILPATH 15646do eval test x\${$as_var+set} = xset \ 15647 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15648done 15649PS1='$ ' 15650PS2='> ' 15651PS4='+ ' 15652 15653# NLS nuisances. 15654LC_ALL=C 15655export LC_ALL 15656LANGUAGE=C 15657export LANGUAGE 15658 15659# CDPATH. 15660(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15661 15662 15663# as_fn_error ERROR [LINENO LOG_FD] 15664# --------------------------------- 15665# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15666# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15667# script with status $?, using 1 if that was 0. 15668as_fn_error () 15669{ 15670 as_status=$?; test $as_status -eq 0 && as_status=1 15671 if test "$3"; then 15672 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15673 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15674 fi 15675 $as_echo "$as_me: error: $1" >&2 15676 as_fn_exit $as_status 15677} # as_fn_error 15678 15679 15680# as_fn_set_status STATUS 15681# ----------------------- 15682# Set $? to STATUS, without forking. 15683as_fn_set_status () 15684{ 15685 return $1 15686} # as_fn_set_status 15687 15688# as_fn_exit STATUS 15689# ----------------- 15690# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15691as_fn_exit () 15692{ 15693 set +e 15694 as_fn_set_status $1 15695 exit $1 15696} # as_fn_exit 15697 15698# as_fn_unset VAR 15699# --------------- 15700# Portably unset VAR. 15701as_fn_unset () 15702{ 15703 { eval $1=; unset $1;} 15704} 15705as_unset=as_fn_unset 15706# as_fn_append VAR VALUE 15707# ---------------------- 15708# Append the text in VALUE to the end of the definition contained in VAR. Take 15709# advantage of any shell optimizations that allow amortized linear growth over 15710# repeated appends, instead of the typical quadratic growth present in naive 15711# implementations. 15712if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15713 eval 'as_fn_append () 15714 { 15715 eval $1+=\$2 15716 }' 15717else 15718 as_fn_append () 15719 { 15720 eval $1=\$$1\$2 15721 } 15722fi # as_fn_append 15723 15724# as_fn_arith ARG... 15725# ------------------ 15726# Perform arithmetic evaluation on the ARGs, and store the result in the 15727# global $as_val. Take advantage of shells that can avoid forks. The arguments 15728# must be portable across $(()) and expr. 15729if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15730 eval 'as_fn_arith () 15731 { 15732 as_val=$(( $* )) 15733 }' 15734else 15735 as_fn_arith () 15736 { 15737 as_val=`expr "$@" || test $? -eq 1` 15738 } 15739fi # as_fn_arith 15740 15741 15742if expr a : '\(a\)' >/dev/null 2>&1 && 15743 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15744 as_expr=expr 15745else 15746 as_expr=false 15747fi 15748 15749if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15750 as_basename=basename 15751else 15752 as_basename=false 15753fi 15754 15755if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15756 as_dirname=dirname 15757else 15758 as_dirname=false 15759fi 15760 15761as_me=`$as_basename -- "$0" || 15762$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15763 X"$0" : 'X\(//\)$' \| \ 15764 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15765$as_echo X/"$0" | 15766 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15767 s//\1/ 15768 q 15769 } 15770 /^X\/\(\/\/\)$/{ 15771 s//\1/ 15772 q 15773 } 15774 /^X\/\(\/\).*/{ 15775 s//\1/ 15776 q 15777 } 15778 s/.*/./; q'` 15779 15780# Avoid depending upon Character Ranges. 15781as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15782as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15783as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15784as_cr_digits='0123456789' 15785as_cr_alnum=$as_cr_Letters$as_cr_digits 15786 15787ECHO_C= ECHO_N= ECHO_T= 15788case `echo -n x` in #((((( 15789-n*) 15790 case `echo 'xy\c'` in 15791 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15792 xy) ECHO_C='\c';; 15793 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15794 ECHO_T=' ';; 15795 esac;; 15796*) 15797 ECHO_N='-n';; 15798esac 15799 15800rm -f conf$$ conf$$.exe conf$$.file 15801if test -d conf$$.dir; then 15802 rm -f conf$$.dir/conf$$.file 15803else 15804 rm -f conf$$.dir 15805 mkdir conf$$.dir 2>/dev/null 15806fi 15807if (echo >conf$$.file) 2>/dev/null; then 15808 if ln -s conf$$.file conf$$ 2>/dev/null; then 15809 as_ln_s='ln -s' 15810 # ... but there are two gotchas: 15811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15813 # In both cases, we have to default to `cp -p'. 15814 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15815 as_ln_s='cp -p' 15816 elif ln conf$$.file conf$$ 2>/dev/null; then 15817 as_ln_s=ln 15818 else 15819 as_ln_s='cp -p' 15820 fi 15821else 15822 as_ln_s='cp -p' 15823fi 15824rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15825rmdir conf$$.dir 2>/dev/null 15826 15827 15828# as_fn_mkdir_p 15829# ------------- 15830# Create "$as_dir" as a directory, including parents if necessary. 15831as_fn_mkdir_p () 15832{ 15833 15834 case $as_dir in #( 15835 -*) as_dir=./$as_dir;; 15836 esac 15837 test -d "$as_dir" || eval $as_mkdir_p || { 15838 as_dirs= 15839 while :; do 15840 case $as_dir in #( 15841 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15842 *) as_qdir=$as_dir;; 15843 esac 15844 as_dirs="'$as_qdir' $as_dirs" 15845 as_dir=`$as_dirname -- "$as_dir" || 15846$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15847 X"$as_dir" : 'X\(//\)[^/]' \| \ 15848 X"$as_dir" : 'X\(//\)$' \| \ 15849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15850$as_echo X"$as_dir" | 15851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15852 s//\1/ 15853 q 15854 } 15855 /^X\(\/\/\)[^/].*/{ 15856 s//\1/ 15857 q 15858 } 15859 /^X\(\/\/\)$/{ 15860 s//\1/ 15861 q 15862 } 15863 /^X\(\/\).*/{ 15864 s//\1/ 15865 q 15866 } 15867 s/.*/./; q'` 15868 test -d "$as_dir" && break 15869 done 15870 test -z "$as_dirs" || eval "mkdir $as_dirs" 15871 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15872 15873 15874} # as_fn_mkdir_p 15875if mkdir -p . 2>/dev/null; then 15876 as_mkdir_p='mkdir -p "$as_dir"' 15877else 15878 test -d ./-p && rmdir ./-p 15879 as_mkdir_p=false 15880fi 15881 15882if test -x / >/dev/null 2>&1; then 15883 as_test_x='test -x' 15884else 15885 if ls -dL / >/dev/null 2>&1; then 15886 as_ls_L_option=L 15887 else 15888 as_ls_L_option= 15889 fi 15890 as_test_x=' 15891 eval sh -c '\'' 15892 if test -d "$1"; then 15893 test -d "$1/."; 15894 else 15895 case $1 in #( 15896 -*)set "./$1";; 15897 esac; 15898 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15899 ???[sx]*):;;*)false;;esac;fi 15900 '\'' sh 15901 ' 15902fi 15903as_executable_p=$as_test_x 15904 15905# Sed expression to map a string onto a valid CPP name. 15906as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15907 15908# Sed expression to map a string onto a valid variable name. 15909as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15910 15911 15912exec 6>&1 15913## ----------------------------------- ## 15914## Main body of $CONFIG_STATUS script. ## 15915## ----------------------------------- ## 15916_ASEOF 15917test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15918 15919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15920# Save the log message, to keep $0 and so on meaningful, and to 15921# report actual input values of CONFIG_FILES etc. instead of their 15922# values after options handling. 15923ac_log=" 15924This file was extended by $as_me, which was 15925generated by GNU Autoconf 2.65. Invocation command line was 15926 15927 CONFIG_FILES = $CONFIG_FILES 15928 CONFIG_HEADERS = $CONFIG_HEADERS 15929 CONFIG_LINKS = $CONFIG_LINKS 15930 CONFIG_COMMANDS = $CONFIG_COMMANDS 15931 $ $0 $@ 15932 15933on `(hostname || uname -n) 2>/dev/null | sed 1q` 15934" 15935 15936_ACEOF 15937 15938case $ac_config_files in *" 15939"*) set x $ac_config_files; shift; ac_config_files=$*;; 15940esac 15941 15942case $ac_config_headers in *" 15943"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15944esac 15945 15946 15947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15948# Files that config.status was made for. 15949config_files="$ac_config_files" 15950config_headers="$ac_config_headers" 15951config_commands="$ac_config_commands" 15952 15953_ACEOF 15954 15955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15956ac_cs_usage="\ 15957\`$as_me' instantiates files and other configuration actions 15958from templates according to the current configuration. Unless the files 15959and actions are specified as TAGs, all are instantiated by default. 15960 15961Usage: $0 [OPTION]... [TAG]... 15962 15963 -h, --help print this help, then exit 15964 -V, --version print version number and configuration settings, then exit 15965 --config print configuration, then exit 15966 -q, --quiet, --silent 15967 do not print progress messages 15968 -d, --debug don't remove temporary files 15969 --recheck update $as_me by reconfiguring in the same conditions 15970 --file=FILE[:TEMPLATE] 15971 instantiate the configuration file FILE 15972 --header=FILE[:TEMPLATE] 15973 instantiate the configuration header FILE 15974 15975Configuration files: 15976$config_files 15977 15978Configuration headers: 15979$config_headers 15980 15981Configuration commands: 15982$config_commands 15983 15984Report bugs to the package provider." 15985 15986_ACEOF 15987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15988ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15989ac_cs_version="\\ 15990config.status 15991configured by $0, generated by GNU Autoconf 2.65, 15992 with options \\"\$ac_cs_config\\" 15993 15994Copyright (C) 2009 Free Software Foundation, Inc. 15995This config.status script is free software; the Free Software Foundation 15996gives unlimited permission to copy, distribute and modify it." 15997 15998ac_pwd='$ac_pwd' 15999srcdir='$srcdir' 16000INSTALL='$INSTALL' 16001MKDIR_P='$MKDIR_P' 16002AWK='$AWK' 16003test -n "\$AWK" || AWK=awk 16004_ACEOF 16005 16006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16007# The default lists apply if the user does not specify any file. 16008ac_need_defaults=: 16009while test $# != 0 16010do 16011 case $1 in 16012 --*=*) 16013 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16015 ac_shift=: 16016 ;; 16017 *) 16018 ac_option=$1 16019 ac_optarg=$2 16020 ac_shift=shift 16021 ;; 16022 esac 16023 16024 case $ac_option in 16025 # Handling of the options. 16026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16027 ac_cs_recheck=: ;; 16028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16029 $as_echo "$ac_cs_version"; exit ;; 16030 --config | --confi | --conf | --con | --co | --c ) 16031 $as_echo "$ac_cs_config"; exit ;; 16032 --debug | --debu | --deb | --de | --d | -d ) 16033 debug=: ;; 16034 --file | --fil | --fi | --f ) 16035 $ac_shift 16036 case $ac_optarg in 16037 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16038 esac 16039 as_fn_append CONFIG_FILES " '$ac_optarg'" 16040 ac_need_defaults=false;; 16041 --header | --heade | --head | --hea ) 16042 $ac_shift 16043 case $ac_optarg in 16044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16045 esac 16046 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16047 ac_need_defaults=false;; 16048 --he | --h) 16049 # Conflict between --help and --header 16050 as_fn_error "ambiguous option: \`$1' 16051Try \`$0 --help' for more information.";; 16052 --help | --hel | -h ) 16053 $as_echo "$ac_cs_usage"; exit ;; 16054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16055 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16056 ac_cs_silent=: ;; 16057 16058 # This is an error. 16059 -*) as_fn_error "unrecognized option: \`$1' 16060Try \`$0 --help' for more information." ;; 16061 16062 *) as_fn_append ac_config_targets " $1" 16063 ac_need_defaults=false ;; 16064 16065 esac 16066 shift 16067done 16068 16069ac_configure_extra_args= 16070 16071if $ac_cs_silent; then 16072 exec 6>/dev/null 16073 ac_configure_extra_args="$ac_configure_extra_args --silent" 16074fi 16075 16076_ACEOF 16077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16078if \$ac_cs_recheck; then 16079 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16080 shift 16081 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16082 CONFIG_SHELL='$SHELL' 16083 export CONFIG_SHELL 16084 exec "\$@" 16085fi 16086 16087_ACEOF 16088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16089exec 5>>config.log 16090{ 16091 echo 16092 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16093## Running $as_me. ## 16094_ASBOX 16095 $as_echo "$ac_log" 16096} >&5 16097 16098_ACEOF 16099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16100# 16101# INIT-COMMANDS 16102# 16103AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16104 16105_ACEOF 16106 16107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16108 16109# Handling of arguments. 16110for ac_config_target in $ac_config_targets 16111do 16112 case $ac_config_target in 16113 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16114 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16115 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;; 16116 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16117 16118 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16119 esac 16120done 16121 16122 16123# If the user did not use the arguments to specify the items to instantiate, 16124# then the envvar interface is used. Set only those that are not. 16125# We use the long form for the default assignment because of an extremely 16126# bizarre bug on SunOS 4.1.3. 16127if $ac_need_defaults; then 16128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16131fi 16132 16133# Have a temporary directory for convenience. Make it in the build tree 16134# simply because there is no reason against having it here, and in addition, 16135# creating and moving files from /tmp can sometimes cause problems. 16136# Hook for its removal unless debugging. 16137# Note that there is a small window in which the directory will not be cleaned: 16138# after its creation but before its name has been assigned to `$tmp'. 16139$debug || 16140{ 16141 tmp= 16142 trap 'exit_status=$? 16143 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16144' 0 16145 trap 'as_fn_exit 1' 1 2 13 15 16146} 16147# Create a (secure) tmp directory for tmp files. 16148 16149{ 16150 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16151 test -n "$tmp" && test -d "$tmp" 16152} || 16153{ 16154 tmp=./conf$$-$RANDOM 16155 (umask 077 && mkdir "$tmp") 16156} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16157 16158# Set up the scripts for CONFIG_FILES section. 16159# No need to generate them if there are no CONFIG_FILES. 16160# This happens for instance with `./config.status config.h'. 16161if test -n "$CONFIG_FILES"; then 16162 16163 16164ac_cr=`echo X | tr X '\015'` 16165# On cygwin, bash can eat \r inside `` if the user requested igncr. 16166# But we know of no other shell where ac_cr would be empty at this 16167# point, so we can use a bashism as a fallback. 16168if test "x$ac_cr" = x; then 16169 eval ac_cr=\$\'\\r\' 16170fi 16171ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16172if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16173 ac_cs_awk_cr='\r' 16174else 16175 ac_cs_awk_cr=$ac_cr 16176fi 16177 16178echo 'BEGIN {' >"$tmp/subs1.awk" && 16179_ACEOF 16180 16181 16182{ 16183 echo "cat >conf$$subs.awk <<_ACEOF" && 16184 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16185 echo "_ACEOF" 16186} >conf$$subs.sh || 16187 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16188ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16189ac_delim='%!_!# ' 16190for ac_last_try in false false false false false :; do 16191 . ./conf$$subs.sh || 16192 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16193 16194 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16195 if test $ac_delim_n = $ac_delim_num; then 16196 break 16197 elif $ac_last_try; then 16198 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16199 else 16200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16201 fi 16202done 16203rm -f conf$$subs.sh 16204 16205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16206cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16207_ACEOF 16208sed -n ' 16209h 16210s/^/S["/; s/!.*/"]=/ 16211p 16212g 16213s/^[^!]*!// 16214:repl 16215t repl 16216s/'"$ac_delim"'$// 16217t delim 16218:nl 16219h 16220s/\(.\{148\}\)..*/\1/ 16221t more1 16222s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16223p 16224n 16225b repl 16226:more1 16227s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16228p 16229g 16230s/.\{148\}// 16231t nl 16232:delim 16233h 16234s/\(.\{148\}\)..*/\1/ 16235t more2 16236s/["\\]/\\&/g; s/^/"/; s/$/"/ 16237p 16238b 16239:more2 16240s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16241p 16242g 16243s/.\{148\}// 16244t delim 16245' <conf$$subs.awk | sed ' 16246/^[^""]/{ 16247 N 16248 s/\n// 16249} 16250' >>$CONFIG_STATUS || ac_write_fail=1 16251rm -f conf$$subs.awk 16252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16253_ACAWK 16254cat >>"\$tmp/subs1.awk" <<_ACAWK && 16255 for (key in S) S_is_set[key] = 1 16256 FS = "" 16257 16258} 16259{ 16260 line = $ 0 16261 nfields = split(line, field, "@") 16262 substed = 0 16263 len = length(field[1]) 16264 for (i = 2; i < nfields; i++) { 16265 key = field[i] 16266 keylen = length(key) 16267 if (S_is_set[key]) { 16268 value = S[key] 16269 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16270 len += length(value) + length(field[++i]) 16271 substed = 1 16272 } else 16273 len += 1 + keylen 16274 } 16275 16276 print line 16277} 16278 16279_ACAWK 16280_ACEOF 16281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16282if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16283 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16284else 16285 cat 16286fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16287 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16288_ACEOF 16289 16290# VPATH may cause trouble with some makes, so we remove $(srcdir), 16291# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16292# trailing colons and then remove the whole line if VPATH becomes empty 16293# (actually we leave an empty line to preserve line numbers). 16294if test "x$srcdir" = x.; then 16295 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16296s/:*\$(srcdir):*/:/ 16297s/:*\${srcdir}:*/:/ 16298s/:*@srcdir@:*/:/ 16299s/^\([^=]*=[ ]*\):*/\1/ 16300s/:*$// 16301s/^[^=]*=[ ]*$// 16302}' 16303fi 16304 16305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16306fi # test -n "$CONFIG_FILES" 16307 16308# Set up the scripts for CONFIG_HEADERS section. 16309# No need to generate them if there are no CONFIG_HEADERS. 16310# This happens for instance with `./config.status Makefile'. 16311if test -n "$CONFIG_HEADERS"; then 16312cat >"$tmp/defines.awk" <<\_ACAWK || 16313BEGIN { 16314_ACEOF 16315 16316# Transform confdefs.h into an awk script `defines.awk', embedded as 16317# here-document in config.status, that substitutes the proper values into 16318# config.h.in to produce config.h. 16319 16320# Create a delimiter string that does not exist in confdefs.h, to ease 16321# handling of long lines. 16322ac_delim='%!_!# ' 16323for ac_last_try in false false :; do 16324 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16325 if test -z "$ac_t"; then 16326 break 16327 elif $ac_last_try; then 16328 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 16329 else 16330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16331 fi 16332done 16333 16334# For the awk script, D is an array of macro values keyed by name, 16335# likewise P contains macro parameters if any. Preserve backslash 16336# newline sequences. 16337 16338ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16339sed -n ' 16340s/.\{148\}/&'"$ac_delim"'/g 16341t rset 16342:rset 16343s/^[ ]*#[ ]*define[ ][ ]*/ / 16344t def 16345d 16346:def 16347s/\\$// 16348t bsnl 16349s/["\\]/\\&/g 16350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16351D["\1"]=" \3"/p 16352s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16353d 16354:bsnl 16355s/["\\]/\\&/g 16356s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16357D["\1"]=" \3\\\\\\n"\\/p 16358t cont 16359s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16360t cont 16361d 16362:cont 16363n 16364s/.\{148\}/&'"$ac_delim"'/g 16365t clear 16366:clear 16367s/\\$// 16368t bsnlc 16369s/["\\]/\\&/g; s/^/"/; s/$/"/p 16370d 16371:bsnlc 16372s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16373b cont 16374' <confdefs.h | sed ' 16375s/'"$ac_delim"'/"\\\ 16376"/g' >>$CONFIG_STATUS || ac_write_fail=1 16377 16378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16379 for (key in D) D_is_set[key] = 1 16380 FS = "" 16381} 16382/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16383 line = \$ 0 16384 split(line, arg, " ") 16385 if (arg[1] == "#") { 16386 defundef = arg[2] 16387 mac1 = arg[3] 16388 } else { 16389 defundef = substr(arg[1], 2) 16390 mac1 = arg[2] 16391 } 16392 split(mac1, mac2, "(") #) 16393 macro = mac2[1] 16394 prefix = substr(line, 1, index(line, defundef) - 1) 16395 if (D_is_set[macro]) { 16396 # Preserve the white space surrounding the "#". 16397 print prefix "define", macro P[macro] D[macro] 16398 next 16399 } else { 16400 # Replace #undef with comments. This is necessary, for example, 16401 # in the case of _POSIX_SOURCE, which is predefined and required 16402 # on some systems where configure will not decide to define it. 16403 if (defundef == "undef") { 16404 print "/*", prefix defundef, macro, "*/" 16405 next 16406 } 16407 } 16408} 16409{ print } 16410_ACAWK 16411_ACEOF 16412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16413 as_fn_error "could not setup config headers machinery" "$LINENO" 5 16414fi # test -n "$CONFIG_HEADERS" 16415 16416 16417eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16418shift 16419for ac_tag 16420do 16421 case $ac_tag in 16422 :[FHLC]) ac_mode=$ac_tag; continue;; 16423 esac 16424 case $ac_mode$ac_tag in 16425 :[FHL]*:*);; 16426 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16427 :[FH]-) ac_tag=-:-;; 16428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16429 esac 16430 ac_save_IFS=$IFS 16431 IFS=: 16432 set x $ac_tag 16433 IFS=$ac_save_IFS 16434 shift 16435 ac_file=$1 16436 shift 16437 16438 case $ac_mode in 16439 :L) ac_source=$1;; 16440 :[FH]) 16441 ac_file_inputs= 16442 for ac_f 16443 do 16444 case $ac_f in 16445 -) ac_f="$tmp/stdin";; 16446 *) # Look for the file first in the build tree, then in the source tree 16447 # (if the path is not absolute). The absolute path cannot be DOS-style, 16448 # because $ac_f cannot contain `:'. 16449 test -f "$ac_f" || 16450 case $ac_f in 16451 [\\/$]*) false;; 16452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16453 esac || 16454 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16455 esac 16456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16457 as_fn_append ac_file_inputs " '$ac_f'" 16458 done 16459 16460 # Let's still pretend it is `configure' which instantiates (i.e., don't 16461 # use $as_me), people would be surprised to read: 16462 # /* config.h. Generated by config.status. */ 16463 configure_input='Generated from '` 16464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16465 `' by configure.' 16466 if test x"$ac_file" != x-; then 16467 configure_input="$ac_file. $configure_input" 16468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16469$as_echo "$as_me: creating $ac_file" >&6;} 16470 fi 16471 # Neutralize special characters interpreted by sed in replacement strings. 16472 case $configure_input in #( 16473 *\&* | *\|* | *\\* ) 16474 ac_sed_conf_input=`$as_echo "$configure_input" | 16475 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16476 *) ac_sed_conf_input=$configure_input;; 16477 esac 16478 16479 case $ac_tag in 16480 *:-:* | *:-) cat >"$tmp/stdin" \ 16481 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16482 esac 16483 ;; 16484 esac 16485 16486 ac_dir=`$as_dirname -- "$ac_file" || 16487$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16488 X"$ac_file" : 'X\(//\)[^/]' \| \ 16489 X"$ac_file" : 'X\(//\)$' \| \ 16490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16491$as_echo X"$ac_file" | 16492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16493 s//\1/ 16494 q 16495 } 16496 /^X\(\/\/\)[^/].*/{ 16497 s//\1/ 16498 q 16499 } 16500 /^X\(\/\/\)$/{ 16501 s//\1/ 16502 q 16503 } 16504 /^X\(\/\).*/{ 16505 s//\1/ 16506 q 16507 } 16508 s/.*/./; q'` 16509 as_dir="$ac_dir"; as_fn_mkdir_p 16510 ac_builddir=. 16511 16512case "$ac_dir" in 16513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16514*) 16515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16516 # A ".." for each directory in $ac_dir_suffix. 16517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16518 case $ac_top_builddir_sub in 16519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16521 esac ;; 16522esac 16523ac_abs_top_builddir=$ac_pwd 16524ac_abs_builddir=$ac_pwd$ac_dir_suffix 16525# for backward compatibility: 16526ac_top_builddir=$ac_top_build_prefix 16527 16528case $srcdir in 16529 .) # We are building in place. 16530 ac_srcdir=. 16531 ac_top_srcdir=$ac_top_builddir_sub 16532 ac_abs_top_srcdir=$ac_pwd ;; 16533 [\\/]* | ?:[\\/]* ) # Absolute name. 16534 ac_srcdir=$srcdir$ac_dir_suffix; 16535 ac_top_srcdir=$srcdir 16536 ac_abs_top_srcdir=$srcdir ;; 16537 *) # Relative name. 16538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16539 ac_top_srcdir=$ac_top_build_prefix$srcdir 16540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16541esac 16542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16543 16544 16545 case $ac_mode in 16546 :F) 16547 # 16548 # CONFIG_FILE 16549 # 16550 16551 case $INSTALL in 16552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16554 esac 16555 ac_MKDIR_P=$MKDIR_P 16556 case $MKDIR_P in 16557 [\\/$]* | ?:[\\/]* ) ;; 16558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16559 esac 16560_ACEOF 16561 16562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16563# If the template does not know about datarootdir, expand it. 16564# FIXME: This hack should be removed a few years after 2.60. 16565ac_datarootdir_hack=; ac_datarootdir_seen= 16566ac_sed_dataroot=' 16567/datarootdir/ { 16568 p 16569 q 16570} 16571/@datadir@/p 16572/@docdir@/p 16573/@infodir@/p 16574/@localedir@/p 16575/@mandir@/p' 16576case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16577*datarootdir*) ac_datarootdir_seen=yes;; 16578*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16580$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16581_ACEOF 16582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16583 ac_datarootdir_hack=' 16584 s&@datadir@&$datadir&g 16585 s&@docdir@&$docdir&g 16586 s&@infodir@&$infodir&g 16587 s&@localedir@&$localedir&g 16588 s&@mandir@&$mandir&g 16589 s&\\\${datarootdir}&$datarootdir&g' ;; 16590esac 16591_ACEOF 16592 16593# Neutralize VPATH when `$srcdir' = `.'. 16594# Shell code in configure.ac might set extrasub. 16595# FIXME: do we really want to maintain this feature? 16596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16597ac_sed_extra="$ac_vpsub 16598$extrasub 16599_ACEOF 16600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16601:t 16602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16603s|@configure_input@|$ac_sed_conf_input|;t t 16604s&@top_builddir@&$ac_top_builddir_sub&;t t 16605s&@top_build_prefix@&$ac_top_build_prefix&;t t 16606s&@srcdir@&$ac_srcdir&;t t 16607s&@abs_srcdir@&$ac_abs_srcdir&;t t 16608s&@top_srcdir@&$ac_top_srcdir&;t t 16609s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16610s&@builddir@&$ac_builddir&;t t 16611s&@abs_builddir@&$ac_abs_builddir&;t t 16612s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16613s&@INSTALL@&$ac_INSTALL&;t t 16614s&@MKDIR_P@&$ac_MKDIR_P&;t t 16615$ac_datarootdir_hack 16616" 16617eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16618 || as_fn_error "could not create $ac_file" "$LINENO" 5 16619 16620test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16621 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16624which seems to be undefined. Please make sure it is defined." >&5 16625$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16626which seems to be undefined. Please make sure it is defined." >&2;} 16627 16628 rm -f "$tmp/stdin" 16629 case $ac_file in 16630 -) cat "$tmp/out" && rm -f "$tmp/out";; 16631 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16632 esac \ 16633 || as_fn_error "could not create $ac_file" "$LINENO" 5 16634 ;; 16635 :H) 16636 # 16637 # CONFIG_HEADER 16638 # 16639 if test x"$ac_file" != x-; then 16640 { 16641 $as_echo "/* $configure_input */" \ 16642 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16643 } >"$tmp/config.h" \ 16644 || as_fn_error "could not create $ac_file" "$LINENO" 5 16645 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16646 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16647$as_echo "$as_me: $ac_file is unchanged" >&6;} 16648 else 16649 rm -f "$ac_file" 16650 mv "$tmp/config.h" "$ac_file" \ 16651 || as_fn_error "could not create $ac_file" "$LINENO" 5 16652 fi 16653 else 16654 $as_echo "/* $configure_input */" \ 16655 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16656 || as_fn_error "could not create -" "$LINENO" 5 16657 fi 16658# Compute "$ac_file"'s index in $config_headers. 16659_am_arg="$ac_file" 16660_am_stamp_count=1 16661for _am_header in $config_headers :; do 16662 case $_am_header in 16663 $_am_arg | $_am_arg:* ) 16664 break ;; 16665 * ) 16666 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16667 esac 16668done 16669echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16670$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16671 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16672 X"$_am_arg" : 'X\(//\)$' \| \ 16673 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16674$as_echo X"$_am_arg" | 16675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16676 s//\1/ 16677 q 16678 } 16679 /^X\(\/\/\)[^/].*/{ 16680 s//\1/ 16681 q 16682 } 16683 /^X\(\/\/\)$/{ 16684 s//\1/ 16685 q 16686 } 16687 /^X\(\/\).*/{ 16688 s//\1/ 16689 q 16690 } 16691 s/.*/./; q'`/stamp-h$_am_stamp_count 16692 ;; 16693 16694 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16695$as_echo "$as_me: executing $ac_file commands" >&6;} 16696 ;; 16697 esac 16698 16699 16700 case $ac_file$ac_mode in 16701 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16702 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16703 # are listed without --file. Let's play safe and only enable the eval 16704 # if we detect the quoting. 16705 case $CONFIG_FILES in 16706 *\'*) eval set x "$CONFIG_FILES" ;; 16707 *) set x $CONFIG_FILES ;; 16708 esac 16709 shift 16710 for mf 16711 do 16712 # Strip MF so we end up with the name of the file. 16713 mf=`echo "$mf" | sed -e 's/:.*$//'` 16714 # Check whether this is an Automake generated Makefile or not. 16715 # We used to match only the files named `Makefile.in', but 16716 # some people rename them; so instead we look at the file content. 16717 # Grep'ing the first line is not enough: some people post-process 16718 # each Makefile.in and add a new line on top of each file to say so. 16719 # Grep'ing the whole file is not good either: AIX grep has a line 16720 # limit of 2048, but all sed's we know have understand at least 4000. 16721 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16722 dirpart=`$as_dirname -- "$mf" || 16723$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16724 X"$mf" : 'X\(//\)[^/]' \| \ 16725 X"$mf" : 'X\(//\)$' \| \ 16726 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16727$as_echo X"$mf" | 16728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16729 s//\1/ 16730 q 16731 } 16732 /^X\(\/\/\)[^/].*/{ 16733 s//\1/ 16734 q 16735 } 16736 /^X\(\/\/\)$/{ 16737 s//\1/ 16738 q 16739 } 16740 /^X\(\/\).*/{ 16741 s//\1/ 16742 q 16743 } 16744 s/.*/./; q'` 16745 else 16746 continue 16747 fi 16748 # Extract the definition of DEPDIR, am__include, and am__quote 16749 # from the Makefile without running `make'. 16750 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16751 test -z "$DEPDIR" && continue 16752 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16753 test -z "am__include" && continue 16754 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16755 # When using ansi2knr, U may be empty or an underscore; expand it 16756 U=`sed -n 's/^U = //p' < "$mf"` 16757 # Find all dependency output files, they are included files with 16758 # $(DEPDIR) in their names. We invoke sed twice because it is the 16759 # simplest approach to changing $(DEPDIR) to its actual value in the 16760 # expansion. 16761 for file in `sed -n " 16762 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16764 # Make sure the directory exists. 16765 test -f "$dirpart/$file" && continue 16766 fdir=`$as_dirname -- "$file" || 16767$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16768 X"$file" : 'X\(//\)[^/]' \| \ 16769 X"$file" : 'X\(//\)$' \| \ 16770 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16771$as_echo X"$file" | 16772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16773 s//\1/ 16774 q 16775 } 16776 /^X\(\/\/\)[^/].*/{ 16777 s//\1/ 16778 q 16779 } 16780 /^X\(\/\/\)$/{ 16781 s//\1/ 16782 q 16783 } 16784 /^X\(\/\).*/{ 16785 s//\1/ 16786 q 16787 } 16788 s/.*/./; q'` 16789 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16790 # echo "creating $dirpart/$file" 16791 echo '# dummy' > "$dirpart/$file" 16792 done 16793 done 16794} 16795 ;; 16796 16797 esac 16798done # for ac_tag 16799 16800 16801as_fn_exit 0 16802_ACEOF 16803ac_clean_files=$ac_clean_files_save 16804 16805test $ac_write_fail = 0 || 16806 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 16807 16808 16809# configure is writing to config.log, and then calls config.status. 16810# config.status does its own redirection, appending to config.log. 16811# Unfortunately, on DOS this fails, as config.log is still kept open 16812# by configure, so config.status won't be able to write to it; its 16813# output is simply discarded. So we exec the FD to /dev/null, 16814# effectively closing config.log, so it can be properly (re)opened and 16815# appended to by config.status. When coming back to configure, we 16816# need to make the FD available again. 16817if test "$no_create" != yes; then 16818 ac_cs_success=: 16819 ac_config_status_args= 16820 test "$silent" = yes && 16821 ac_config_status_args="$ac_config_status_args --quiet" 16822 exec 5>/dev/null 16823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16824 exec 5>>config.log 16825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16826 # would make configure fail if this is the last instruction. 16827 $ac_cs_success || as_fn_exit $? 16828fi 16829if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16831$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16832fi 16833 16834